Skip to content

Commit

Permalink
singular-user
Browse files Browse the repository at this point in the history
git-svn-id: file:///usr/local/Singular/svn/trunk@4184 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Loading branch information
Olaf Bachmann committed Mar 8, 2000
1 parent 7808dff commit 9c5d435
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Singular/LIB/template.lib
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// version string automatically expanded by CVS // version string automatically expanded by CVS
version="$Id: template.lib,v 1.4 1999-08-06 14:06:42 obachman Exp $"; version="$Id: template.lib,v 1.5 2000-03-08 15:02:43 obachman Exp $";
// summary descriptionof the library // summary description of the library
info=" info="
LIBRARY: template.lib A TEMPLATE FOR A SINGULAR LIBRARY LIBRARY: template.lib A TEMPLATE FOR A SINGULAR LIBRARY


Expand Down
4 changes: 2 additions & 2 deletions Singular/mod_raw.cc
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
/**************************************** /****************************************
* Computer Algebra System SINGULAR * * 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 * ABSTRACT: machine depend code for dynamic modules
* *
Expand All @@ -19,7 +19,7 @@
/***************************************************************************** /*****************************************************************************
* SECTION ix86-linux / alpha-linux * * 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> #include <dlfcn.h>


void *dynl_open( void *dynl_open(
Expand Down
12 changes: 9 additions & 3 deletions singuname.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ uname_a=`uname -a`
devnull='/dev/null' devnull='/dev/null'
file=file file=file
binary='/bin/ls' binary='/bin/ls'

ldd='ldd'


# HPUX ######################################################## # HPUX ########################################################
if (echo $uname_a | $egrep "HP-UX" > $devnull) if (echo $uname_a | $egrep "HP-UX" > $devnull)
Expand Down Expand Up @@ -55,8 +55,14 @@ then
exit 0 exit 0
fi fi
fi fi
# everything else is assumed to be Linux ELF # everything else is assumed to be Linux ELF
echo ${prefix} # check for libc5
if (echo `$ldd $binary` | $egrep "libc.so.5" > $devnull)
then
echo "${prefix}-libc5"
else
echo ${prefix}
fi
exit 0 exit 0
else else
echo ${prefix}-Unknown echo ${prefix}-Unknown
Expand Down

0 comments on commit 9c5d435

Please sign in to comment.