Changeset 05c6849 in git


Ignore:
Timestamp:
Feb 5, 2008, 5:53:35 PM (15 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
d4eb3f399315195558f76dcdfc526c8c3dd47917
Parents:
8373a71d6a2983af32cc5cf5277712fe65db7b37
Message:
*hannes: GLIBC_DYN_FIX


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

Legend:

Unmodified
Added
Removed
  • Singular/configure

    r8373a7 r05c6849  
    50965096
    50975097SAVE_LIBS=$LIBS
    5098 echo $ac_n "checking for in -lc_nonshared""... $ac_c" 1>&6
    5099 echo "configure:5100: checking for in -lc_nonshared" >&5
    5100 ac_lib_var=`echo c_nonshared'_' | sed 'y%./+-%__p_%'`
     5098echo $ac_n "checking for printf in -lc_nonshared""... $ac_c" 1>&6
     5099echo "configure:5100: checking for printf in -lc_nonshared" >&5
     5100ac_lib_var=`echo c_nonshared'_'printf | sed 'y%./+-%__p_%'`
    51015101if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    51025102  echo $ac_n "(cached) $ac_c" 1>&6
     
    51105110/* We use char because int might match the return type of a gcc2
    51115111    builtin and then its argument prototype would still apply.  */
    5112 char ();
     5112char printf();
    51135113
    51145114int main() {
    5115 ()
     5115printf()
    51165116; return 0; }
    51175117EOF
     
    51315131if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    51325132  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
    5137 EOF
    5138 
    5139   LIBS="-lc_nonshared $LIBS"
    5140 
    5141 else
    5142   echo "$ac_t""no" 1>&6
     5133  GLIBC_DYN_FIX="-lc_nonshared"
     5134else
     5135  echo "$ac_t""no" 1>&6
     5136GLIBC_DYN_FIX=""
    51435137fi
    51445138
    51455139LIBS=$SAVE_LIBS
    5146 if test "$ac_cv_lib_c_nonshared" = yes; then
    5147 GLIBC_DYN_FIX="-lc_nonshared"
    5148 else
    5149 GLIBC_DYN_FIX=""
    5150 fi
    51515140
    51525141
     
    51575146
    51585147echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    5159 echo "configure:5160: checking which apint package to use" >&5
     5148echo "configure:5149: checking which apint package to use" >&5
    51605149if test "${with_apint}" != gmp; then
    51615150  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    51805169#
    51815170echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    5182 echo "configure:5183: checking whether to have MP" >&5
     5171echo "configure:5172: checking whether to have MP" >&5
    51835172if test "${with_MP}" != yes && test "${with_MP}" != no; then
    51845173  if (test "${will_have_gmp}" = yes) && \
     
    52155204
    52165205echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6
    5217 echo "configure:5218: checking whether to have NTL" >&5
     5206echo "configure:5207: checking whether to have NTL" >&5
    52185207if test "${with_NTL}" = yes ; then
    52195208  echo "$ac_t""yes" 1>&6
     
    52245213
    52255214echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    5226 echo "configure:5227: checking whether to have factory" >&5
     5215echo "configure:5216: checking whether to have factory" >&5
    52275216if test "${with_factory}" != yes && test "${with_factory}" != no; then
    52285217  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    52555244
    52565245echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    5257 echo "configure:5258: checking whether to have libfac" >&5
     5246echo "configure:5247: checking whether to have libfac" >&5
    52585247if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    52595248  if (test "${will_have_factory}" = yes) && \
     
    52975286
    52985287echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    5299 echo "configure:5300: checking whether to have dbm links" >&5
     5288echo "configure:5289: checking whether to have dbm links" >&5
    53005289if test "$with_dbm" != no; then
    53015290  cat >> confdefs.h <<\EOF
     
    53095298
    53105299echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    5311 echo "configure:5312: checking whether to have namespaces" >&5
     5300echo "configure:5301: checking whether to have namespaces" >&5
    53125301if test "$with_namespaces" != no; then
    53135302  echo "$ac_t""yes" 1>&6
     
    53215310
    53225311echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
    5323 echo "configure:5324: checking whether to have dynamic modules" >&5
     5312echo "configure:5313: checking whether to have dynamic modules" >&5
    53245313if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then
    53255314  echo "$ac_t""no" 1>&6
     
    53335322
    53345323echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
    5335 echo "configure:5336: checking whether to have dynamic kernel" >&5
     5324echo "configure:5325: checking whether to have dynamic kernel" >&5
    53365325if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
    53375326  DL_KERNEL=1
     
    53435332
    53445333echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
    5345 echo "configure:5346: checking whether to have Plural" >&5
     5334echo "configure:5335: checking whether to have Plural" >&5
    53465335if test "$with_Plural" != no && test "$enable_Plural" != no; then
    53475336  cat >> confdefs.h <<\EOF
  • Singular/configure.in

    r8373a7 r05c6849  
    772772
    773773SAVE_LIBS=$LIBS
    774 AC_CHECK_LIB(c_nonshared)
     774AC_CHECK_LIB(c_nonshared,printf,GLIBC_DYN_FIX="-lc_nonshared",GLIBC_DYN_FIX="")
    775775LIBS=$SAVE_LIBS
    776 if test "$ac_cv_lib_c_nonshared" = yes; then
    777 GLIBC_DYN_FIX="-lc_nonshared"
    778 else
    779 GLIBC_DYN_FIX=""
    780 fi
    781776AC_SUBST(GLIBC_DYN_FIX)
    782777
Note: See TracChangeset for help on using the changeset viewer.