Changeset 0fb3336 in git


Ignore:
Timestamp:
Jan 8, 2008, 3:11:04 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c18334b998a8adbf0013b8e1ce0824774019443e')
Children:
f8e54578322ffb83ea92786420613e64ade26d73
Parents:
99019d6f6c54b6c478e47a059ccce9095a09ec86
Message:
*hannes: GLIBC_DYN_FIX: fix glibc 2.5 etc. and DYN_MOD


git-svn-id: file:///usr/local/Singular/svn/trunk@10496 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/configure

    r99019d6 r0fb3336  
    50955095fi
    50965096
     5097SAVE_LIBS=$LIBS
     5098echo $ac_n "checking for  in -lc_nonshared""... $ac_c" 1>&6
     5099echo "configure:5100: checking for  in -lc_nonshared" >&5
     5100ac_lib_var=`echo c_nonshared'_' | sed 'y%./+-%__p_%'`
     5101if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     5102  echo $ac_n "(cached) $ac_c" 1>&6
     5103else
     5104  ac_save_LIBS="$LIBS"
     5105LIBS="-lc_nonshared  $LIBS"
     5106cat > conftest.$ac_ext <<EOF
     5107#line 5108 "configure"
     5108#include "confdefs.h"
     5109/* Override any gcc2 internal prototype to avoid an error.  */
     5110/* We use char because int might match the return type of a gcc2
     5111    builtin and then its argument prototype would still apply.  */
     5112char ();
     5113
     5114int main() {
     5115()
     5116; return 0; }
     5117EOF
     5118if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     5119  rm -rf conftest*
     5120  eval "ac_cv_lib_$ac_lib_var=yes"
     5121else
     5122  echo "configure: failed program was:" >&5
     5123  cat conftest.$ac_ext >&5
     5124  rm -rf conftest*
     5125  eval "ac_cv_lib_$ac_lib_var=no"
     5126fi
     5127rm -f conftest*
     5128LIBS="$ac_save_LIBS"
     5129
     5130fi
     5131if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     5132  echo "$ac_t""yes" 1>&6
     5133    ac_tr_lib=HAVE_LIB`echo c_nonshared | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     5134    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
     5135  cat >> confdefs.h <<EOF
     5136#define $ac_tr_lib 1
     5137EOF
     5138
     5139  LIBS="-lc_nonshared $LIBS"
     5140
     5141else
     5142  echo "$ac_t""no" 1>&6
     5143fi
     5144
     5145LIBS=$SAVE_LIBS
     5146if test "$ac_cv_lib_c_nonshared" = yes; then
     5147GLIBC_DYN_FIX="-lc_nonshared"
     5148else
     5149GLIBC_DYN_FIX=""
     5150fi
     5151
     5152
    50975153# evaluate results
    50985154if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then
     
    51015157
    51025158echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    5103 echo "configure:5104: checking which apint package to use" >&5
     5159echo "configure:5160: checking which apint package to use" >&5
    51045160if test "${with_apint}" != gmp; then
    51055161  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    51245180#
    51255181echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    5126 echo "configure:5127: checking whether to have MP" >&5
     5182echo "configure:5183: checking whether to have MP" >&5
    51275183if test "${with_MP}" != yes && test "${with_MP}" != no; then
    51285184  if (test "${will_have_gmp}" = yes) && \
     
    51595215
    51605216echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6
    5161 echo "configure:5162: checking whether to have NTL" >&5
     5217echo "configure:5218: checking whether to have NTL" >&5
    51625218if test "${with_NTL}" = yes ; then
    51635219  echo "$ac_t""yes" 1>&6
     
    51685224
    51695225echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    5170 echo "configure:5171: checking whether to have factory" >&5
     5226echo "configure:5227: checking whether to have factory" >&5
    51715227if test "${with_factory}" != yes && test "${with_factory}" != no; then
    51725228  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    51995255
    52005256echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    5201 echo "configure:5202: checking whether to have libfac" >&5
     5257echo "configure:5258: checking whether to have libfac" >&5
    52025258if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    52035259  if (test "${will_have_factory}" = yes) && \
     
    52415297
    52425298echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    5243 echo "configure:5244: checking whether to have dbm links" >&5
     5299echo "configure:5300: checking whether to have dbm links" >&5
    52445300if test "$with_dbm" != no; then
    52455301  cat >> confdefs.h <<\EOF
     
    52535309
    52545310echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    5255 echo "configure:5256: checking whether to have namespaces" >&5
     5311echo "configure:5312: checking whether to have namespaces" >&5
    52565312if test "$with_namespaces" != no; then
    52575313  echo "$ac_t""yes" 1>&6
     
    52655321
    52665322echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
    5267 echo "configure:5268: checking whether to have dynamic modules" >&5
     5323echo "configure:5324: checking whether to have dynamic modules" >&5
    52685324if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then
    52695325  echo "$ac_t""no" 1>&6
     
    52775333
    52785334echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
    5279 echo "configure:5280: checking whether to have dynamic kernel" >&5
     5335echo "configure:5336: checking whether to have dynamic kernel" >&5
    52805336if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
    52815337  DL_KERNEL=1
     
    52875343
    52885344echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
    5289 echo "configure:5290: checking whether to have Plural" >&5
     5345echo "configure:5346: checking whether to have Plural" >&5
    52905346if test "$with_Plural" != no && test "$enable_Plural" != no; then
    52915347  cat >> confdefs.h <<\EOF
     
    54715527s%@CXXCPP@%$CXXCPP%g
    54725528s%@USE_STDVECBOOL@%$USE_STDVECBOOL%g
     5529s%@GLIBC_DYN_FIX@%$GLIBC_DYN_FIX%g
    54735530s%@HAVE_MPSR@%$HAVE_MPSR%g
    54745531s%@MP_LIBS@%$MP_LIBS%g
  • Singular/configure.in

    r99019d6 r0fb3336  
    771771fi
    772772
     773SAVE_LIBS=$LIBS
     774AC_CHECK_LIB(c_nonshared)
     775LIBS=$SAVE_LIBS
     776if test "$ac_cv_lib_c_nonshared" = yes; then
     777GLIBC_DYN_FIX="-lc_nonshared"
     778else
     779GLIBC_DYN_FIX=""
     780fi
     781AC_SUBST(GLIBC_DYN_FIX)
     782
    773783# evaluate results
    774784dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
Note: See TracChangeset for help on using the changeset viewer.