Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

singular-user

git-svn-id: file:///usr/local/Singular/svn/trunk@4184 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Loading branch information...
commit 9c5d435006cd955e36cee6725bb01f5d068e4a46 1 parent 7808dff
Olaf Bachmann authored
Showing with 13 additions and 7 deletions.
  1. +2 −2 Singular/LIB/template.lib
  2. +2 −2 Singular/mod_raw.cc
  3. +9 −3 singuname.sh
View
4 Singular/LIB/template.lib
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////////////
// version string automatically expanded by CVS
-version="$Id: template.lib,v 1.4 1999-08-06 14:06:42 obachman Exp $";
-// summary descriptionof the library
+version="$Id: template.lib,v 1.5 2000-03-08 15:02:43 obachman Exp $";
+// summary description of the library
info="
LIBRARY: template.lib A TEMPLATE FOR A SINGULAR LIBRARY
View
4 Singular/mod_raw.cc
@@ -1,7 +1,7 @@
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
-/* $Id: mod_raw.cc,v 1.6 1999-12-16 14:22:12 Singular Exp $ */
+/* $Id: mod_raw.cc,v 1.7 2000-03-08 15:02:42 obachman Exp $ */
/*
* ABSTRACT: machine depend code for dynamic modules
*
@@ -19,7 +19,7 @@
/*****************************************************************************
* SECTION ix86-linux / alpha-linux *
*****************************************************************************/
-#if defined(ix86_Linux) || defined(DecAlpha_Linux)
+#if defined(ix86_Linux) || defined(DecAlpha_Linux) || defined(ix86_Linux_libc5)
#include <dlfcn.h>
void *dynl_open(
View
12 singuname.sh
@@ -13,7 +13,7 @@ uname_a=`uname -a`
devnull='/dev/null'
file=file
binary='/bin/ls'
-
+ldd='ldd'
# HPUX ########################################################
if (echo $uname_a | $egrep "HP-UX" > $devnull)
@@ -55,8 +55,14 @@ then
exit 0
fi
fi
- # everything else is assumed to be Linux ELF
- echo ${prefix}
+ # everything else is assumed to be Linux ELF
+ # check for libc5
+ if (echo `$ldd $binary` | $egrep "libc.so.5" > $devnull)
+ then
+ echo "${prefix}-libc5"
+ else
+ echo ${prefix}
+ fi
exit 0
else
echo ${prefix}-Unknown
Please sign in to comment.
Something went wrong with that request. Please try again.