Changeset 76b37c in git
- Timestamp:
- Feb 10, 2011, 7:15:30 PM (13 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 08d65ab4c41b40dad43dd4b171c5c2d577ad1661
- Parents:
- c728c0debfe1bf7bd3fba17cdaaa1b6a644cc251
- git-author:
- Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2011-02-10 18:15:30+00:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-02-10 18:15:30+00:00
- Location:
- Singular
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.in
rc728c0 r76b37c 1 ################################################################ 1 ################################################################# 2 2 ### 3 3 ### Makefile for Singular … … 21 21 HAVE_PYTHON = @HAVE_PYTHON_VALUE@ 22 22 PYTHON_CPPFLAGS = @PYTHON_CPPFLAGS@ 23 PYTHON_LDFLAGS = @PYTHON_LDFLAGS@ 24 PYTHON_SITE_PKG = @PYTHON_SITE_PKG@ 25 PYTHON_EXTRA_LIBS = @PYTHON_EXTRA_LIBS@ 26 PYTHON_EXTRA_LDFLAGS = @PYTHON_EXTRA_LDFLAGS@ 27 28 # Note: compiler(!) flags for linking to python 29 # todo: need flags for statically linking dependencies to shared modules 30 PYTHON_LINKFLAGS = ${PYTHON_LDFLAGS} ${PYTHON_EXTRA_LIBS} ${PYTHON_EXTRA_LDFLAGS} 23 PYTHON_MODULE_LIBS = @PYTHON_LDFLAGS@ @PYTHON_EXTRA_LIBS@ 24 PYTHON_MODULE_LDFLAGS = @PYTHON_MODULE_FLAGS@ @PYTHON_EXTRA_LDFLAGS@ 25 26 MODULE_SUFFIX = so 27 28 ifdef LD_STATIC 29 PYTHON_LIBS = @PYTHON_STATIC_LIBS@ 30 else 31 PYTHON_LIBS = @PYTHON_EMBED_LIBS@ 32 ifeq (${HAVE_PYTHON},1) 33 PYOBJECT_MODULE = pyobject.${MODULE_SUFFIX} 34 endif 35 36 endif 31 37 32 38 ## … … 71 77 CXXTEMPLFLAGS = @CXXTEMPLFLAGS@ -I.. -I@prefix@ 72 78 ifneq ($(SINGUNAME),ix86-Win) 73 CPPFLAGS = -I${srcdir} -I.. -I@prefix@ @CPPFLAGS@ ${PYTHON_CPPFLAGS}79 CPPFLAGS = -I${srcdir} -I.. -I@prefix@ @CPPFLAGS@ @PYTHON_CPPFLAGS@ 74 80 else 75 81 ## Dirs after @CPPFLAGS@ are for PySingular 76 CPPFLAGS = -I${srcdir} -I.. -I@prefix@ @CPPFLAGS@ 82 CPPFLAGS = -I${srcdir} -I.. -I@prefix@ @CPPFLAGS@ @PYTHON_CPPFLAGS@ 77 83 ## -I/usr/include/python2.4 -I/usr/local/include -I../modules/python 78 84 endif … … 80 86 LDFLAGS2 = @LDFLAGS@ 81 87 ifneq ($(SINGUNAME),ix86-Win) 82 LDFLAGS = -L@prefix@/kernel -L../kernel -lkernel @LDFLAGS@ 83 LDFLAGSG = -L@prefix@/kernel -L../kernel -lkernel_g @LDFLAGS@ 84 LDFLAGSP = -L@prefix@/kernel -L../kernel -lkernel_p @LDFLAGS@ 88 LDFLAGS = -L@prefix@/kernel -L../kernel -lkernel @LDFLAGS@ 89 LDFLAGSG = -L@prefix@/kernel -L../kernel -lkernel_g @LDFLAGS@ 90 LDFLAGSP = -L@prefix@/kernel -L../kernel -lkernel_p @LDFLAGS@ 85 91 else 86 92 ## -L/usr/local/lib -L@prefix@/modules/python --> PySingular 87 LDFLAGS = -L@prefix@/kernel -L/bin -lkernel @LDFLAGS@ -L/usr/local/lib -L../modules/python 88 LDFLAGSG = -L@prefix@/kernel -L/bin -lkernel_g @LDFLAGS@ 89 LDFLAGSP = -L@prefix@/kernel -L/bin -lkernel_p @LDFLAGS@ 93 LDFLAGS = -L@prefix@/kernel -L/bin -lkernel @LDFLAGS@ -L/usr/local/lib -L../modules/python 94 LDFLAGSG = -L@prefix@/kernel -L/bin -lkernel_g @LDFLAGS@ 95 LDFLAGSP = -L@prefix@/kernel -L/bin -lkernel_p @LDFLAGS@ 90 96 endif 91 97 LD_DYN_FLAGS = @LD_DYN_FLAGS@ … … 102 108 103 109 LD_LIBC = -lc 104 STATIC_LDFLAGS = ${PYTHON_LINKFLAGS}@STATIC_LDFLAGS@110 STATIC_LDFLAGS = @STATIC_LDFLAGS@ 105 111 # under cygwin, do not explicitly link against -lm, for it is the cygwin 106 112 # lib -- if you really want to do this, use -lm as the _last_ thing on the … … 129 135 130 136 SO_SUFFIX = so 131 MODULE_SUFFIX = so132 137 133 138 #LIBSINGULAR_FLAGS = -export-dynamic … … 171 176 LDFLAGS := ${STATIC_LDFLAGS} ${LDFLAGS} 172 177 SING_EXEC = Singular-static 173 LIBS := ${MP_LIBS} ${LIBS} 174 LIBSG := ${MP_LIBS} ${LIBSG} 178 LIBS := ${MP_LIBS} ${LIBS} ${PYTHON_LIBS} 179 LIBSG := ${MP_LIBS} ${LIBSG} ${PYTHON_LIBS} 175 180 DL_KERNEL = 176 181 GLIBC_DYN_FIX= … … 178 183 LDFLAGS := ${LD_DYN_FLAGS} ${LDFLAGS} 179 184 SING_EXEC = Singular 185 LIBS := ${LIBS} ${PYTHON_LIBS} 186 LIBSG := ${LIBSG} ${PYTHON_LIBS} 180 187 DL_KERNEL = @DL_KERNEL@ 181 188 GLIBC_DYN_FIX= @GLIBC_DYN_FIX@ 182 189 endif 183 190 184 185 ifeq (${HAVE_PYTHON},1)186 PYOBJECT_MODULE = pyobject.${MODULE_SUFFIX}187 else188 PYOBJECT_MODULE =189 endif190 191 191 192 # CXXFLAGS = -g -Wall -Wno-unused … … 370 371 -o Singular${S_EXT} \ 371 372 tesths.cc iparith.o mpsr_Tok.o claptmpl.o\ 372 ${OBJS} ${LDFLAGS} ${LIBS} ../kernel/mmalloc.o 373 ${OBJS} ${LDFLAGS} ${LIBS} ../kernel/mmalloc.o 373 374 374 375 libsingular: mod2.h Makefile version.h $(WIN_LIBS) scanner.cc ${OBJS} \ … … 486 487 pyobject.${MODULE_SUFFIX}: pyobject.dl_o 487 488 @echo "build dynamic module pyobject..." 488 $(CXX) $ {SLDFLAGS} ${PYTHON_LINKFLAGS} -o $@ $^ ${GLIBC_DYN_FIX}489 $(CXX) $^ ${PYTHON_MODULE_LDFLAGS} ${SLDFLAGS} ${PYTHON_MODULE_LIBS} ${LD_LIBC} -o $@ 489 490 490 491 src: scanner.cc grammar.h grammar.cc libparse.cc -
Singular/configure
rc728c0 r76b37c 22 22 do use dynamic/static/no readline for fancy display" 23 23 ac_help="$ac_help 24 --with-python=[PYTHON,no] uses PYTHON as python executable, default is python" 24 --with-python[=PYTHON[,embed|module[,static|dynamic]]] 25 uses PYTHON as python executable, default is python; 26 optionally set plug-in and linkage type" 25 27 ac_help="$ac_help 26 28 --without-Boost do not use Boost " … … 569 571 570 572 573 574 575 571 576 echo $ac_n "checking CPU for singular""... $ac_c" 1>&6 572 echo "configure:57 3: checking CPU for singular" >&5577 echo "configure:578: checking CPU for singular" >&5 573 578 ac_cv_singcpuname=`uname -m` 574 579 echo "$ac_t""$ac_cv_singcpuname" 1>&6 575 580 576 581 echo $ac_n "checking uname for singular""... $ac_c" 1>&6 577 echo "configure:5 78: checking uname for singular" >&5582 echo "configure:583: checking uname for singular" >&5 578 583 if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then 579 584 echo $ac_n "(cached) $ac_c" 1>&6 … … 767 772 set dummy gcc; ac_word=$2 768 773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 769 echo "configure:77 0: checking for $ac_word" >&5774 echo "configure:775: checking for $ac_word" >&5 770 775 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 771 776 echo $ac_n "(cached) $ac_c" 1>&6 … … 797 802 set dummy cc; ac_word=$2 798 803 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 799 echo "configure:80 0: checking for $ac_word" >&5804 echo "configure:805: checking for $ac_word" >&5 800 805 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 801 806 echo $ac_n "(cached) $ac_c" 1>&6 … … 848 853 set dummy cl; ac_word=$2 849 854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 850 echo "configure:85 1: checking for $ac_word" >&5855 echo "configure:856: checking for $ac_word" >&5 851 856 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 852 857 echo $ac_n "(cached) $ac_c" 1>&6 … … 880 885 881 886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 882 echo "configure:88 3: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5887 echo "configure:888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 883 888 884 889 ac_ext=c … … 891 896 cat > conftest.$ac_ext << EOF 892 897 893 #line 89 4"configure"898 #line 899 "configure" 894 899 #include "confdefs.h" 895 900 896 901 main(){return(0);} 897 902 EOF 898 if { (eval echo configure: 899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then903 if { (eval echo configure:904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 899 904 ac_cv_prog_cc_works=yes 900 905 # If we can't run a trivial program, we are probably using a cross compiler. … … 922 927 fi 923 928 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 924 echo "configure:9 25: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5929 echo "configure:930: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 925 930 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 926 931 cross_compiling=$ac_cv_prog_cc_cross 927 932 928 933 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 929 echo "configure:93 0: checking whether we are using GNU C" >&5934 echo "configure:935: checking whether we are using GNU C" >&5 930 935 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 931 936 echo $ac_n "(cached) $ac_c" 1>&6 … … 936 941 #endif 937 942 EOF 938 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9 39: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then943 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 939 944 ac_cv_prog_gcc=yes 940 945 else … … 955 960 CFLAGS= 956 961 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 957 echo "configure:9 58: checking whether ${CC-cc} accepts -g" >&5962 echo "configure:963: checking whether ${CC-cc} accepts -g" >&5 958 963 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 959 964 echo $ac_n "(cached) $ac_c" 1>&6 … … 987 992 988 993 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 989 echo "configure:99 0: checking how to run the C preprocessor" >&5994 echo "configure:995: checking how to run the C preprocessor" >&5 990 995 # On Suns, sometimes $CPP names a directory. 991 996 if test -n "$CPP" && test -d "$CPP"; then … … 1002 1007 # not just through cpp. 1003 1008 cat > conftest.$ac_ext <<EOF 1004 #line 10 05"configure"1009 #line 1010 "configure" 1005 1010 #include "confdefs.h" 1006 1011 #include <assert.h> … … 1008 1013 EOF 1009 1014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1010 { (eval echo configure:101 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1015 { (eval echo configure:1016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1011 1016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1012 1017 if test -z "$ac_err"; then … … 1019 1024 CPP="${CC-cc} -E -traditional-cpp" 1020 1025 cat > conftest.$ac_ext <<EOF 1021 #line 102 2"configure"1026 #line 1027 "configure" 1022 1027 #include "confdefs.h" 1023 1028 #include <assert.h> … … 1025 1030 EOF 1026 1031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1027 { (eval echo configure:10 28: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1032 { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1028 1033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1029 1034 if test -z "$ac_err"; then … … 1036 1041 CPP="${CC-cc} -nologo -E" 1037 1042 cat > conftest.$ac_ext <<EOF 1038 #line 10 39"configure"1043 #line 1044 "configure" 1039 1044 #include "confdefs.h" 1040 1045 #include <assert.h> … … 1042 1047 EOF 1043 1048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1044 { (eval echo configure:10 45: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1049 { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1045 1050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1046 1051 if test -z "$ac_err"; then … … 1071 1076 set dummy $ac_prog; ac_word=$2 1072 1077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1073 echo "configure:107 4: checking for $ac_word" >&51078 echo "configure:1079: checking for $ac_word" >&5 1074 1079 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1075 1080 echo $ac_n "(cached) $ac_c" 1>&6 … … 1103 1108 1104 1109 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1105 echo "configure:11 06: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&51110 echo "configure:1111: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1106 1111 1107 1112 ac_ext=C … … 1114 1119 cat > conftest.$ac_ext << EOF 1115 1120 1116 #line 11 17"configure"1121 #line 1122 "configure" 1117 1122 #include "confdefs.h" 1118 1123 1119 1124 int main(){return(0);} 1120 1125 EOF 1121 if { (eval echo configure:112 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1126 if { (eval echo configure:1127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1122 1127 ac_cv_prog_cxx_works=yes 1123 1128 # If we can't run a trivial program, we are probably using a cross compiler. … … 1145 1150 fi 1146 1151 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1147 echo "configure:11 48: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51152 echo "configure:1153: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1148 1153 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1149 1154 cross_compiling=$ac_cv_prog_cxx_cross 1150 1155 1151 1156 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1152 echo "configure:115 3: checking whether we are using GNU C++" >&51157 echo "configure:1158: checking whether we are using GNU C++" >&5 1153 1158 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1154 1159 echo $ac_n "(cached) $ac_c" 1>&6 … … 1159 1164 #endif 1160 1165 EOF 1161 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:116 2: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1166 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1162 1167 ac_cv_prog_gxx=yes 1163 1168 else … … 1178 1183 CXXFLAGS= 1179 1184 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1180 echo "configure:118 1: checking whether ${CXX-g++} accepts -g" >&51185 echo "configure:1186: checking whether ${CXX-g++} accepts -g" >&5 1181 1186 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1182 1187 echo $ac_n "(cached) $ac_c" 1>&6 … … 1240 1245 # ./install, which can be erroneously created by make from ./install.sh. 1241 1246 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1242 echo "configure:124 3: checking for a BSD compatible install" >&51247 echo "configure:1248: checking for a BSD compatible install" >&5 1243 1248 if test -z "$INSTALL"; then 1244 1249 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1293 1298 1294 1299 echo $ac_n "checking for AIX""... $ac_c" 1>&6 1295 echo "configure:1 296: checking for AIX" >&51300 echo "configure:1301: checking for AIX" >&5 1296 1301 cat > conftest.$ac_ext <<EOF 1297 #line 1 298"configure"1302 #line 1303 "configure" 1298 1303 #include "confdefs.h" 1299 1304 #ifdef _AIX … … 1321 1326 # other: CC=cc CXX=c++ 1322 1327 echo $ac_n "checking gcc version""... $ac_c" 1>&6 1323 echo "configure:132 4: checking gcc version" >&51328 echo "configure:1329: checking gcc version" >&5 1324 1329 if eval "test \"`echo '$''{'ac_cv_c_cpp'+set}'`\" = set"; then 1325 1330 echo $ac_n "(cached) $ac_c" 1>&6 … … 1353 1358 # check whether gcc accepts --no-rtti 1354 1359 echo $ac_n "checking whether gcc accepts --no-rtti""... $ac_c" 1>&6 1355 echo "configure:13 56: checking whether gcc accepts --no-rtti" >&51360 echo "configure:1361: checking whether gcc accepts --no-rtti" >&5 1356 1361 CXXFLAGS="${CXXFLAGS} --no-rtti" 1357 1362 if eval "test \"`echo '$''{'ac_cv_cxx_have_rtti'+set}'`\" = set"; then … … 1359 1364 else 1360 1365 cat > conftest.$ac_ext <<EOF 1361 #line 136 2"configure"1366 #line 1367 "configure" 1362 1367 #include "confdefs.h" 1363 1368 … … 1366 1371 ; return 0; } 1367 1372 EOF 1368 if { (eval echo configure:13 69: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1373 if { (eval echo configure:1374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1369 1374 rm -rf conftest* 1370 1375 ac_cv_cxx_have_rtti=yes … … 1389 1394 # check whether gcc accepts --no-exceptions 1390 1395 echo $ac_n "checking whether gcc accepts --no-exceptions""... $ac_c" 1>&6 1391 echo "configure:139 2: checking whether gcc accepts --no-exceptions" >&51396 echo "configure:1397: checking whether gcc accepts --no-exceptions" >&5 1392 1397 CXXFLAGS="${CXXFLAGS} --no-exceptions" 1393 1398 if eval "test \"`echo '$''{'ac_cv_cxx_have_exceptions'+set}'`\" = set"; then … … 1395 1400 else 1396 1401 cat > conftest.$ac_ext <<EOF 1397 #line 1 398"configure"1402 #line 1403 "configure" 1398 1403 #include "confdefs.h" 1399 1404 … … 1402 1407 ; return 0; } 1403 1408 EOF 1404 if { (eval echo configure:14 05: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1405 1410 rm -rf conftest* 1406 1411 ac_cv_cxx_have_exceptions=yes … … 1440 1445 then 1441 1446 echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6 1442 echo "configure:144 3: checking whether compiler accepts -pipe" >&51447 echo "configure:1448: checking whether compiler accepts -pipe" >&5 1443 1448 temp_cflags="${CFLAGS}" 1444 1449 CFLAGS="${CFLAGS} -pipe" … … 1447 1452 else 1448 1453 cat > conftest.$ac_ext <<EOF 1449 #line 145 0"configure"1454 #line 1455 "configure" 1450 1455 #include "confdefs.h" 1451 1456 … … 1454 1459 ; return 0; } 1455 1460 EOF 1456 if { (eval echo configure:14 57: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1461 if { (eval echo configure:1462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1457 1462 rm -rf conftest* 1458 1463 ac_cv_cxx_have_pipe=yes … … 1481 1486 # Customize CFLAGS 1482 1487 echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6 1483 echo "configure:148 4: checking whether _AIX is defined" >&51488 echo "configure:1489: checking whether _AIX is defined" >&5 1484 1489 if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then 1485 1490 echo $ac_n "(cached) $ac_c" 1>&6 1486 1491 else 1487 1492 cat > conftest.$ac_ext <<EOF 1488 #line 14 89"configure"1493 #line 1494 "configure" 1489 1494 #include "confdefs.h" 1490 1495 #ifdef _AIX … … 1545 1550 1546 1551 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1547 echo "configure:15 48: checking whether ${MAKE-make} sets \${MAKE}" >&51552 echo "configure:1553: checking whether ${MAKE-make} sets \${MAKE}" >&5 1548 1553 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1549 1554 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1628 1633 if test "${with_lex+set}" != set; then 1629 1634 echo $ac_n "checking for flex""... $ac_c" 1>&6 1630 echo "configure:163 1: checking for flex" >&51635 echo "configure:1636: checking for flex" >&5 1631 1636 cmd="egrep [2-9]\.[5-9]" 1632 1637 if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then … … 1660 1665 set dummy $ac_prog; ac_word=$2 1661 1666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1662 echo "configure:166 3: checking for $ac_word" >&51667 echo "configure:1668: checking for $ac_word" >&5 1663 1668 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 1664 1669 echo $ac_n "(cached) $ac_c" 1>&6 … … 1700 1705 set dummy $ac_prog; ac_word=$2 1701 1706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1702 echo "configure:170 3: checking for $ac_word" >&51707 echo "configure:1708: checking for $ac_word" >&5 1703 1708 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1704 1709 echo $ac_n "(cached) $ac_c" 1>&6 … … 1735 1740 # ln -s 1736 1741 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1737 echo "configure:17 38: checking whether ln -s works" >&51742 echo "configure:1743: checking whether ln -s works" >&5 1738 1743 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1739 1744 echo $ac_n "(cached) $ac_c" 1>&6 … … 1761 1766 set dummy $ac_prog; ac_word=$2 1762 1767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1763 echo "configure:176 4: checking for $ac_word" >&51768 echo "configure:1769: checking for $ac_word" >&5 1764 1769 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1765 1770 echo $ac_n "(cached) $ac_c" 1>&6 … … 1792 1797 1793 1798 # python 1794 if test "${with_python+set}" != set; then 1795 PYTHON_EXE="no" 1796 else 1797 if test "${with_python}" = yes; then 1798 PYTHON_EXE="python" 1799 else 1800 PYTHON_EXE="${with_python}" 1801 fi 1802 fi 1799 python_exe_name="no" 1800 PYTHON_PLUGIN="module" 1801 PYTHON_LINKAGE="static" 1802 1803 if test "${with_python+set}" == set; then 1804 case "${with_python}" in 1805 yes|static*|dynamic*|shared*|module*|embed*) 1806 python_exe_name="python" 1807 ;; 1808 *) 1809 python_exe_name="${with_python%%,*}" 1810 ;; 1811 esac 1812 1813 case ",${with_python}," in 1814 *,dynamic,*|*,shared,*) 1815 PYTHON_LINKAGE="dynamic" 1816 ;; 1817 *,static,*) 1818 PYTHON_LINKAGE="static" 1819 ;; 1820 esac 1821 1822 case ",${with_python}," in 1823 *,embed,*|*,embedded,*) 1824 PYTHON_PLUGIN="embed" 1825 ;; 1826 *,static,*) 1827 PYTHON_PLUGIN="module" 1828 ;; 1829 esac 1830 fi 1831 1832 PYTHON_EXE=`basename "${python_exe_name}"` 1833 PYTHON_PATH=`dirname "${python_exe_name}"` 1803 1834 1804 1835 if test "${PYTHON_EXE}" = no; then … … 1808 1839 set dummy $PYTHON_EXE; ac_word=$2 1809 1840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1810 echo "configure:18 11: checking for $ac_word" >&51841 echo "configure:1842: checking for $ac_word" >&5 1811 1842 if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then 1812 1843 echo $ac_n "(cached) $ac_c" 1>&6 … … 1821 1852 *) 1822 1853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1823 ac_dummy=" $PATH"1854 ac_dummy=""$PYTHON_PATH:$PATH"" 1824 1855 for ac_dir in $ac_dummy; do 1825 1856 test -z "$ac_dir" && ac_dir=. … … 1854 1885 # 1855 1886 echo $ac_n "checking for a version of Python >= '2.1.0'""... $ac_c" 1>&6 1856 echo "configure:18 57: checking for a version of Python >= '2.1.0'" >&51887 echo "configure:1888: checking for a version of Python >= '2.1.0'" >&5 1857 1888 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 1858 1889 ver = string.split(sys.version)[0]; \ … … 1882 1913 if test -n ">= '2.4'"; then 1883 1914 echo $ac_n "checking for a version of Python >= '2.4'""... $ac_c" 1>&6 1884 echo "configure:1 885: checking for a version of Python >= '2.4'" >&51915 echo "configure:1916: checking for a version of Python >= '2.4'" >&5 1885 1916 ac_supports_python_ver=`$PYTHON -c "import sys, string; \ 1886 1917 ver = string.split(sys.version)[0]; print ver >= '2.4'"` … … 1902 1933 # 1903 1934 echo $ac_n "checking for the distutils Python package""... $ac_c" 1>&6 1904 echo "configure:19 05: checking for the distutils Python package" >&51935 echo "configure:1936: checking for the distutils Python package" >&5 1905 1936 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1` 1906 1937 if test -z "$ac_distutils_result"; then … … 1918 1949 # 1919 1950 echo $ac_n "checking for Python include path""... $ac_c" 1>&6 1920 echo "configure:19 21: checking for Python include path" >&51951 echo "configure:1952: checking for Python include path" >&5 1921 1952 if test -z "$PYTHON_CPPFLAGS"; then 1922 1953 python_path=`$PYTHON -c "import distutils.sysconfig; \ … … 1934 1965 # 1935 1966 echo $ac_n "checking for Python library path""... $ac_c" 1>&6 1936 echo "configure:19 37: checking for Python library path" >&51967 echo "configure:1968: checking for Python library path" >&5 1937 1968 if test -z "$PYTHON_LDFLAGS"; then 1938 1969 # (makes two attempts to ensure we've got a version number … … 1964 1995 # 1965 1996 echo $ac_n "checking for Python site-packages path""... $ac_c" 1>&6 1966 echo "configure:19 67: checking for Python site-packages path" >&51997 echo "configure:1998: checking for Python site-packages path" >&5 1967 1998 if test -z "$PYTHON_SITE_PKG"; then 1968 1999 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \ … … 1976 2007 # 1977 2008 echo $ac_n "checking python extra libraries""... $ac_c" 1>&6 1978 echo "configure: 1979: checking python extra libraries" >&52009 echo "configure:2010: checking python extra libraries" >&5 1979 2010 if test -z "$PYTHON_EXTRA_LIBS"; then 1980 2011 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \ … … 1989 2020 # 1990 2021 echo $ac_n "checking python extra linking flags""... $ac_c" 1>&6 1991 echo "configure: 1992: checking python extra linking flags" >&52022 echo "configure:2023: checking python extra linking flags" >&5 1992 2023 if test -z "$PYTHON_EXTRA_LDFLAGS"; then 1993 2024 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \ … … 2002 2033 # 2003 2034 echo $ac_n "checking consistency of all components of python development environment""... $ac_c" 1>&6 2004 echo "configure:20 05: checking consistency of all components of python development environment" >&52035 echo "configure:2036: checking consistency of all components of python development environment" >&5 2005 2036 # AC_LANG_PUSH([C]) 2006 2037 # save current global flags … … 2010 2041 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS" 2011 2042 cat > conftest.$ac_ext <<EOF 2012 #line 20 13"configure"2043 #line 2044 "configure" 2013 2044 #include "confdefs.h" 2014 2045 … … 2021 2052 ; return 0; } 2022 2053 EOF 2023 if { (eval echo configure:20 24: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2054 if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2024 2055 rm -rf conftest* 2025 2056 pythonexists=yes … … 2053 2084 2054 2085 HAVE_PYTHON_VALUE=1 2055 2086 2056 2087 fi 2088 2057 2089 # AC_LANG_POP 2058 2090 # turn back to default flags … … 2064 2096 # 2065 2097 2098 2099 ac_save_LIBS_for_python="${LIBS}" 2100 ac_save_CPPFLAGS_for_python="${CPPFLAGS}" 2101 2102 echo $ac_n "checking ${try_python_shared_static_flags} for linking \ 2103 python statically""... $ac_c" 1>&6 2104 echo "configure:2105: checking ${try_python_shared_static_flags} for linking \ 2105 python statically" >&5 2106 all_cppflags="${ac_save_CPPFLAGS} ${PYTHON_CPPFLAGS}" 2107 2108 CPPFLAGS="-static ${all_cppflags}" 2109 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS -lc -lm $PYTHON_EXTRA_LDFLAGS" 2110 2111 cat > conftest.$ac_ext <<EOF 2112 #line 2113 "configure" 2113 #include "confdefs.h" 2114 2115 #include <Python.h> 2116 2117 int main() { 2118 2119 Py_Initialize(); 2120 2121 ; return 0; } 2122 EOF 2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2124 rm -rf conftest* 2125 pythonstaticexists=yes 2126 else 2127 echo "configure: failed program was:" >&5 2128 cat conftest.$ac_ext >&5 2129 rm -rf conftest* 2130 pythonstaticexists=no 2131 fi 2132 rm -f conftest* 2133 2134 echo "$ac_t""$pythonstaticexists" 1>&6 2135 2136 if test "$pythonstaticexists" == yes ; then 2137 cat >> confdefs.h <<\EOF 2138 #define HAVE_STATIC_PYTHON 1 2139 EOF 2140 2141 PYTHON_STATIC_LIBS="$PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS" 2142 2143 2144 try_flags="-Xlinker -static -nodefaultlibs" 2145 CPPFLAGS="-shared -fPIC ${try_flags} ${all_cppflags}" 2146 echo $ac_n "checking $try_flags for linking python module statically""... $ac_c" 1>&6 2147 echo "configure:2148: checking $try_flags for linking python module statically" >&5 2148 cat > conftest.$ac_ext <<EOF 2149 #line 2150 "configure" 2150 #include "confdefs.h" 2151 2152 #include <Python.h> 2153 2154 int main() { 2155 2156 Py_Initialize(); 2157 2158 ; return 0; } 2159 EOF 2160 if { (eval echo configure:2161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2161 rm -rf conftest* 2162 pythonsharedstaticexists=yes 2163 else 2164 echo "configure: failed program was:" >&5 2165 cat conftest.$ac_ext >&5 2166 rm -rf conftest* 2167 pythonsharedstaticexists=no 2168 fi 2169 rm -f conftest* 2170 echo "$ac_t""$pythonsharedstaticexists" 1>&6 2171 2172 if test "$pythonsharedstaticexists" = yes; then 2173 PYTHON_MODULE_FLAGS="${try_flags}" 2174 fi 2175 fi 2176 2177 2178 CPPFLAGS="$ac_save_CPPFLAGS_for_python" 2179 LIBS="$ac_save_LIBS_for_python" 2180 2181 2182 if test "${PYTHON_PLUGIN}" = embed; then 2183 cat >> confdefs.h <<\EOF 2184 #define EMBED_PYTHON 1 2185 EOF 2186 2187 EMBED_PYTHON_VALUE=1 2188 2189 PYTHON_EMBED_LIBS="$PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS" 2190 2191 fi 2192 2066 2193 fi 2067 2194 fi 2195 2196 2068 2197 2069 2198 # lib checks … … 2072 2201 if test "$ac_cv_singuname" != ix86-Win; then 2073 2202 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 2074 echo "configure:2 075: checking for atof in -lm" >&52203 echo "configure:2204: checking for atof in -lm" >&5 2075 2204 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 2076 2205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2080 2209 LIBS="-lm $LIBS" 2081 2210 cat > conftest.$ac_ext <<EOF 2082 #line 2 083"configure"2211 #line 2212 "configure" 2083 2212 #include "confdefs.h" 2084 2213 /* Override any gcc2 internal prototype to avoid an error. */ … … 2091 2220 ; return 0; } 2092 2221 EOF 2093 if { (eval echo configure:2 094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2222 if { (eval echo configure:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2094 2223 rm -rf conftest* 2095 2224 eval "ac_cv_lib_$ac_lib_var=yes" … … 2120 2249 fi 2121 2250 echo $ac_n "checking for in -lnsl""... $ac_c" 1>&6 2122 echo "configure:2 123: checking for in -lnsl" >&52251 echo "configure:2252: checking for in -lnsl" >&5 2123 2252 ac_lib_var=`echo nsl'_' | sed 'y%./+-%__p_%'` 2124 2253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2128 2257 LIBS="-lnsl $LIBS" 2129 2258 cat > conftest.$ac_ext <<EOF 2130 #line 2 131"configure"2259 #line 2260 "configure" 2131 2260 #include "confdefs.h" 2132 2261 /* Override any gcc2 internal prototype to avoid an error. */ … … 2139 2268 ; return 0; } 2140 2269 EOF 2141 if { (eval echo configure:2 142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2142 2271 rm -rf conftest* 2143 2272 eval "ac_cv_lib_$ac_lib_var=yes" … … 2167 2296 2168 2297 echo $ac_n "checking for in -lsocket""... $ac_c" 1>&6 2169 echo "configure:2 170: checking for in -lsocket" >&52298 echo "configure:2299: checking for in -lsocket" >&5 2170 2299 ac_lib_var=`echo socket'_' | sed 'y%./+-%__p_%'` 2171 2300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2175 2304 LIBS="-lsocket $LIBS" 2176 2305 cat > conftest.$ac_ext <<EOF 2177 #line 2 178"configure"2306 #line 2307 "configure" 2178 2307 #include "confdefs.h" 2179 2308 /* Override any gcc2 internal prototype to avoid an error. */ … … 2186 2315 ; return 0; } 2187 2316 EOF 2188 if { (eval echo configure:2 189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2317 if { (eval echo configure:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2189 2318 rm -rf conftest* 2190 2319 eval "ac_cv_lib_$ac_lib_var=yes" … … 2217 2346 2218 2347 echo $ac_n "checking for setenv in -lbsd""... $ac_c" 1>&6 2219 echo "configure:2 220: checking for setenv in -lbsd" >&52348 echo "configure:2349: checking for setenv in -lbsd" >&5 2220 2349 ac_lib_var=`echo bsd'_'setenv | sed 'y%./+-%__p_%'` 2221 2350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2225 2354 LIBS="-lbsd $LIBS" 2226 2355 cat > conftest.$ac_ext <<EOF 2227 #line 2 228"configure"2356 #line 2357 "configure" 2228 2357 #include "confdefs.h" 2229 2358 /* Override any gcc2 internal prototype to avoid an error. */ … … 2236 2365 ; return 0; } 2237 2366 EOF 2238 if { (eval echo configure:2 239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2239 2368 rm -rf conftest* 2240 2369 eval "ac_cv_lib_$ac_lib_var=yes" … … 2264 2393 2265 2394 echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6 2266 echo "configure:2 267: checking for listen in -lsocket" >&52395 echo "configure:2396: checking for listen in -lsocket" >&5 2267 2396 ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'` 2268 2397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2272 2401 LIBS="-lsocket $LIBS" 2273 2402 cat > conftest.$ac_ext <<EOF 2274 #line 2 275"configure"2403 #line 2404 "configure" 2275 2404 #include "confdefs.h" 2276 2405 /* Override any gcc2 internal prototype to avoid an error. */ … … 2283 2412 ; return 0; } 2284 2413 EOF 2285 if { (eval echo configure:2 286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2286 2415 rm -rf conftest* 2287 2416 eval "ac_cv_lib_$ac_lib_var=yes" … … 2311 2440 2312 2441 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 2313 echo "configure:2 314: checking for gethostbyname in -lnsl" >&52442 echo "configure:2443: checking for gethostbyname in -lnsl" >&5 2314 2443 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 2315 2444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2319 2448 LIBS="-lnsl $LIBS" 2320 2449 cat > conftest.$ac_ext <<EOF 2321 #line 2 322"configure"2450 #line 2451 "configure" 2322 2451 #include "confdefs.h" 2323 2452 /* Override any gcc2 internal prototype to avoid an error. */ … … 2330 2459 ; return 0; } 2331 2460 EOF 2332 if { (eval echo configure:2 333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2461 if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2333 2462 rm -rf conftest* 2334 2463 eval "ac_cv_lib_$ac_lib_var=yes" … … 2362 2491 HPUX*) 2363 2492 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 2364 echo "configure:2 365: checking for shl_load in -ldld" >&52493 echo "configure:2494: checking for shl_load in -ldld" >&5 2365 2494 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 2366 2495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2370 2499 LIBS="-ldld $LIBS" 2371 2500 cat > conftest.$ac_ext <<EOF 2372 #line 2 373"configure"2501 #line 2502 "configure" 2373 2502 #include "confdefs.h" 2374 2503 /* Override any gcc2 internal prototype to avoid an error. */ … … 2381 2510 ; return 0; } 2382 2511 EOF 2383 if { (eval echo configure:2 384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2512 if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2384 2513 rm -rf conftest* 2385 2514 eval "ac_cv_lib_$ac_lib_var=yes" … … 2420 2549 *Linux*) 2421 2550 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2422 echo "configure:2 423: checking for dlopen in -ldl" >&52551 echo "configure:2552: checking for dlopen in -ldl" >&5 2423 2552 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2424 2553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2428 2557 LIBS="-ldl $LIBS" 2429 2558 cat > conftest.$ac_ext <<EOF 2430 #line 2 431"configure"2559 #line 2560 "configure" 2431 2560 #include "confdefs.h" 2432 2561 /* Override any gcc2 internal prototype to avoid an error. */ … … 2439 2568 ; return 0; } 2440 2569 EOF 2441 if { (eval echo configure:2 442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2442 2571 rm -rf conftest* 2443 2572 eval "ac_cv_lib_$ac_lib_var=yes" … … 2487 2616 SunOS-5) 2488 2617 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2489 echo "configure:2 490: checking for dlopen in -ldl" >&52618 echo "configure:2619: checking for dlopen in -ldl" >&5 2490 2619 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2491 2620 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2495 2624 LIBS="-ldl $LIBS" 2496 2625 cat > conftest.$ac_ext <<EOF 2497 #line 2 498"configure"2626 #line 2627 "configure" 2498 2627 #include "confdefs.h" 2499 2628 /* Override any gcc2 internal prototype to avoid an error. */ … … 2506 2635 ; return 0; } 2507 2636 EOF 2508 if { (eval echo configure:2 509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2637 if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2509 2638 rm -rf conftest* 2510 2639 eval "ac_cv_lib_$ac_lib_var=yes" … … 2546 2675 ppcMac-darwin) 2547 2676 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2548 echo "configure:2 549: checking for dlopen in -ldl" >&52677 echo "configure:2678: checking for dlopen in -ldl" >&5 2549 2678 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2550 2679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2554 2683 LIBS="-ldl $LIBS" 2555 2684 cat > conftest.$ac_ext <<EOF 2556 #line 2 557"configure"2685 #line 2686 "configure" 2557 2686 #include "confdefs.h" 2558 2687 /* Override any gcc2 internal prototype to avoid an error. */ … … 2565 2694 ; return 0; } 2566 2695 EOF 2567 if { (eval echo configure:2 568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2696 if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2568 2697 rm -rf conftest* 2569 2698 eval "ac_cv_lib_$ac_lib_var=yes" … … 2604 2733 ix86Mac-darwin) 2605 2734 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 2606 echo "configure:2 607: checking for dlopen in -ldl" >&52735 echo "configure:2736: checking for dlopen in -ldl" >&5 2607 2736 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 2608 2737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2612 2741 LIBS="-ldl $LIBS" 2613 2742 cat > conftest.$ac_ext <<EOF 2614 #line 2 615"configure"2743 #line 2744 "configure" 2615 2744 #include "confdefs.h" 2616 2745 /* Override any gcc2 internal prototype to avoid an error. */ … … 2623 2752 ; return 0; } 2624 2753 EOF 2625 if { (eval echo configure:2 626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2626 2755 rm -rf conftest* 2627 2756 eval "ac_cv_lib_$ac_lib_var=yes" … … 2662 2791 ix86-freebsd) 2663 2792 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 2664 echo "configure:2 665: checking for dlopen in -lc" >&52793 echo "configure:2794: checking for dlopen in -lc" >&5 2665 2794 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 2666 2795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 2670 2799 LIBS="-lc $LIBS" 2671 2800 cat > conftest.$ac_ext <<EOF 2672 #line 2 673"configure"2801 #line 2802 "configure" 2673 2802 #include "confdefs.h" 2674 2803 /* Override any gcc2 internal prototype to avoid an error. */ … … 2681 2810 ; return 0; } 2682 2811 EOF 2683 if { (eval echo configure:2 684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2812 if { (eval echo configure:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2684 2813 rm -rf conftest* 2685 2814 eval "ac_cv_lib_$ac_lib_var=yes" … … 2728 2857 # heder file checks 2729 2858 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2730 echo "configure:2 731: checking for ANSI C header files" >&52859 echo "configure:2860: checking for ANSI C header files" >&5 2731 2860 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2732 2861 echo $ac_n "(cached) $ac_c" 1>&6 2733 2862 else 2734 2863 cat > conftest.$ac_ext <<EOF 2735 #line 2 736"configure"2864 #line 2865 "configure" 2736 2865 #include "confdefs.h" 2737 2866 #include <stdlib.h> … … 2741 2870 EOF 2742 2871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2743 { (eval echo configure:2 744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2872 { (eval echo configure:2873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2744 2873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2745 2874 if test -z "$ac_err"; then … … 2758 2887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2759 2888 cat > conftest.$ac_ext <<EOF 2760 #line 2 761"configure"2889 #line 2890 "configure" 2761 2890 #include "confdefs.h" 2762 2891 #include <string.h> … … 2776 2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2777 2906 cat > conftest.$ac_ext <<EOF 2778 #line 2 779"configure"2907 #line 2908 "configure" 2779 2908 #include "confdefs.h" 2780 2909 #include <stdlib.h> … … 2797 2926 else 2798 2927 cat > conftest.$ac_ext <<EOF 2799 #line 2 800"configure"2928 #line 2929 "configure" 2800 2929 #include "confdefs.h" 2801 2930 #include <ctype.h> … … 2808 2937 2809 2938 EOF 2810 if { (eval echo configure:2 811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2811 2940 then 2812 2941 : … … 2835 2964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2836 2965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2837 echo "configure:2 838: checking for $ac_hdr" >&52966 echo "configure:2967: checking for $ac_hdr" >&5 2838 2967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2839 2968 echo $ac_n "(cached) $ac_c" 1>&6 2840 2969 else 2841 2970 cat > conftest.$ac_ext <<EOF 2842 #line 2 843"configure"2971 #line 2972 "configure" 2843 2972 #include "confdefs.h" 2844 2973 #include <$ac_hdr> 2845 2974 EOF 2846 2975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2847 { (eval echo configure:2 848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2976 { (eval echo configure:2977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2848 2977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2849 2978 if test -z "$ac_err"; then … … 2879 3008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2880 3009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2881 echo "configure: 2882: checking for $ac_hdr" >&53010 echo "configure:3011: checking for $ac_hdr" >&5 2882 3011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2883 3012 echo $ac_n "(cached) $ac_c" 1>&6 2884 3013 else 2885 3014 cat > conftest.$ac_ext <<EOF 2886 #line 2887"configure"3015 #line 3016 "configure" 2887 3016 #include "confdefs.h" 2888 3017 #include <$ac_hdr> 2889 3018 EOF 2890 3019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2891 { (eval echo configure: 2892: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3020 { (eval echo configure:3021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2892 3021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2893 3022 if test -z "$ac_err"; then … … 2918 3047 # typedefs, structures 2919 3048 echo $ac_n "checking for working const""... $ac_c" 1>&6 2920 echo "configure: 2921: checking for working const" >&53049 echo "configure:3050: checking for working const" >&5 2921 3050 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2922 3051 echo $ac_n "(cached) $ac_c" 1>&6 2923 3052 else 2924 3053 cat > conftest.$ac_ext <<EOF 2925 #line 2926"configure"3054 #line 3055 "configure" 2926 3055 #include "confdefs.h" 2927 3056 … … 2972 3101 ; return 0; } 2973 3102 EOF 2974 if { (eval echo configure: 2975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3103 if { (eval echo configure:3104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2975 3104 rm -rf conftest* 2976 3105 ac_cv_c_const=yes … … 2993 3122 2994 3123 echo $ac_n "checking for inline""... $ac_c" 1>&6 2995 echo "configure: 2996: checking for inline" >&53124 echo "configure:3125: checking for inline" >&5 2996 3125 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2997 3126 echo $ac_n "(cached) $ac_c" 1>&6 … … 3000 3129 for ac_kw in inline __inline__ __inline; do 3001 3130 cat > conftest.$ac_ext <<EOF 3002 #line 3 003"configure"3131 #line 3132 "configure" 3003 3132 #include "confdefs.h" 3004 3133 … … 3007 3136 ; return 0; } 3008 3137 EOF 3009 if { (eval echo configure:3 010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3138 if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3010 3139 rm -rf conftest* 3011 3140 ac_cv_c_inline=$ac_kw; break … … 3033 3162 3034 3163 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3035 echo "configure:3 036: checking for size_t" >&53164 echo "configure:3165: checking for size_t" >&5 3036 3165 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 3037 3166 echo $ac_n "(cached) $ac_c" 1>&6 3038 3167 else 3039 3168 cat > conftest.$ac_ext <<EOF 3040 #line 3 041"configure"3169 #line 3170 "configure" 3041 3170 #include "confdefs.h" 3042 3171 #include <sys/types.h> … … 3066 3195 3067 3196 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3068 echo "configure:3 069: checking whether struct tm is in sys/time.h or time.h" >&53197 echo "configure:3198: checking whether struct tm is in sys/time.h or time.h" >&5 3069 3198 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 3070 3199 echo $ac_n "(cached) $ac_c" 1>&6 3071 3200 else 3072 3201 cat > conftest.$ac_ext <<EOF 3073 #line 3 074"configure"3202 #line 3203 "configure" 3074 3203 #include "confdefs.h" 3075 3204 #include <sys/types.h> … … 3079 3208 ; return 0; } 3080 3209 EOF 3081 if { (eval echo configure:3 082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3210 if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3082 3211 rm -rf conftest* 3083 3212 ac_cv_struct_tm=time.h … … 3100 3229 3101 3230 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3102 echo "configure:3 103: checking whether time.h and sys/time.h may both be included" >&53231 echo "configure:3232: checking whether time.h and sys/time.h may both be included" >&5 3103 3232 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 3104 3233 echo $ac_n "(cached) $ac_c" 1>&6 3105 3234 else 3106 3235 cat > conftest.$ac_ext <<EOF 3107 #line 3 108"configure"3236 #line 3237 "configure" 3108 3237 #include "confdefs.h" 3109 3238 #include <sys/types.h> … … 3114 3243 ; return 0; } 3115 3244 EOF 3116 if { (eval echo configure:3 117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3245 if { (eval echo configure:3246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3117 3246 rm -rf conftest* 3118 3247 ac_cv_header_time=yes … … 3139 3268 # for constant arguments. Useless! 3140 3269 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 3141 echo "configure:3 142: checking for working alloca.h" >&53270 echo "configure:3271: checking for working alloca.h" >&5 3142 3271 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 3143 3272 echo $ac_n "(cached) $ac_c" 1>&6 3144 3273 else 3145 3274 cat > conftest.$ac_ext <<EOF 3146 #line 3 147"configure"3275 #line 3276 "configure" 3147 3276 #include "confdefs.h" 3148 3277 #include <alloca.h> … … 3151 3280 ; return 0; } 3152 3281 EOF 3153 if { (eval echo configure:3 154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3282 if { (eval echo configure:3283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3154 3283 rm -rf conftest* 3155 3284 ac_cv_header_alloca_h=yes … … 3172 3301 3173 3302 echo $ac_n "checking for alloca""... $ac_c" 1>&6 3174 echo "configure:3 175: checking for alloca" >&53303 echo "configure:3304: checking for alloca" >&5 3175 3304 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 3176 3305 echo $ac_n "(cached) $ac_c" 1>&6 3177 3306 else 3178 3307 cat > conftest.$ac_ext <<EOF 3179 #line 3 180"configure"3308 #line 3309 "configure" 3180 3309 #include "confdefs.h" 3181 3310 … … 3205 3334 ; return 0; } 3206 3335 EOF 3207 if { (eval echo configure:3 208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3336 if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3208 3337 rm -rf conftest* 3209 3338 ac_cv_func_alloca_works=yes … … 3237 3366 3238 3367 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 3239 echo "configure:3 240: checking whether alloca needs Cray hooks" >&53368 echo "configure:3369: checking whether alloca needs Cray hooks" >&5 3240 3369 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 3241 3370 echo $ac_n "(cached) $ac_c" 1>&6 3242 3371 else 3243 3372 cat > conftest.$ac_ext <<EOF 3244 #line 3 245"configure"3373 #line 3374 "configure" 3245 3374 #include "confdefs.h" 3246 3375 #if defined(CRAY) && ! defined(CRAY2) … … 3267 3396 for ac_func in _getb67 GETB67 getb67; do 3268 3397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3269 echo "configure:3 270: checking for $ac_func" >&53398 echo "configure:3399: checking for $ac_func" >&5 3270 3399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3271 3400 echo $ac_n "(cached) $ac_c" 1>&6 3272 3401 else 3273 3402 cat > conftest.$ac_ext <<EOF 3274 #line 3 275"configure"3403 #line 3404 "configure" 3275 3404 #include "confdefs.h" 3276 3405 /* System header to define __stub macros and hopefully few prototypes, … … 3295 3424 ; return 0; } 3296 3425 EOF 3297 if { (eval echo configure:3 298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3426 if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3298 3427 rm -rf conftest* 3299 3428 eval "ac_cv_func_$ac_func=yes" … … 3322 3451 3323 3452 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 3324 echo "configure:3 325: checking stack direction for C alloca" >&53453 echo "configure:3454: checking stack direction for C alloca" >&5 3325 3454 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 3326 3455 echo $ac_n "(cached) $ac_c" 1>&6 … … 3330 3459 else 3331 3460 cat > conftest.$ac_ext <<EOF 3332 #line 3 333"configure"3461 #line 3462 "configure" 3333 3462 #include "confdefs.h" 3334 3463 find_stack_direction () … … 3349 3478 } 3350 3479 EOF 3351 if { (eval echo configure:3 352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3352 3481 then 3353 3482 ac_cv_c_stack_direction=1 … … 3372 3501 if test $ac_cv_prog_gcc = yes; then 3373 3502 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 3374 echo "configure:3 375: checking whether ${CC-cc} needs -traditional" >&53503 echo "configure:3504: checking whether ${CC-cc} needs -traditional" >&5 3375 3504 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 3376 3505 echo $ac_n "(cached) $ac_c" 1>&6 … … 3378 3507 ac_pattern="Autoconf.*'x'" 3379 3508 cat > conftest.$ac_ext <<EOF 3380 #line 3 381"configure"3509 #line 3510 "configure" 3381 3510 #include "confdefs.h" 3382 3511 #include <sgtty.h> … … 3396 3525 if test $ac_cv_prog_gcc_traditional = no; then 3397 3526 cat > conftest.$ac_ext <<EOF 3398 #line 3 399"configure"3527 #line 3528 "configure" 3399 3528 #include "confdefs.h" 3400 3529 #include <termio.h> … … 3421 3550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3422 3551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3423 echo "configure:3 424: checking for $ac_hdr" >&53552 echo "configure:3553: checking for $ac_hdr" >&5 3424 3553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3425 3554 echo $ac_n "(cached) $ac_c" 1>&6 3426 3555 else 3427 3556 cat > conftest.$ac_ext <<EOF 3428 #line 3 429"configure"3557 #line 3558 "configure" 3429 3558 #include "confdefs.h" 3430 3559 #include <$ac_hdr> 3431 3560 EOF 3432 3561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3433 { (eval echo configure:3 434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3562 { (eval echo configure:3563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3434 3563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3435 3564 if test -z "$ac_err"; then … … 3460 3589 do 3461 3590 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3462 echo "configure:3 463: checking for $ac_func" >&53591 echo "configure:3592: checking for $ac_func" >&5 3463 3592 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3464 3593 echo $ac_n "(cached) $ac_c" 1>&6 3465 3594 else 3466 3595 cat > conftest.$ac_ext <<EOF 3467 #line 3 468"configure"3596 #line 3597 "configure" 3468 3597 #include "confdefs.h" 3469 3598 /* System header to define __stub macros and hopefully few prototypes, … … 3488 3617 ; return 0; } 3489 3618 EOF 3490 if { (eval echo configure:3 491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3619 if { (eval echo configure:3620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3491 3620 rm -rf conftest* 3492 3621 eval "ac_cv_func_$ac_func=yes" … … 3513 3642 3514 3643 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 3515 echo "configure:3 516: checking for working mmap" >&53644 echo "configure:3645: checking for working mmap" >&5 3516 3645 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 3517 3646 echo $ac_n "(cached) $ac_c" 1>&6 … … 3521 3650 else 3522 3651 cat > conftest.$ac_ext <<EOF 3523 #line 3 524"configure"3652 #line 3653 "configure" 3524 3653 #include "confdefs.h" 3525 3654 … … 3661 3790 3662 3791 EOF 3663 if { (eval echo configure:3 664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3792 if { (eval echo configure:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3664 3793 then 3665 3794 ac_cv_func_mmap_fixed_mapped=yes … … 3684 3813 3685 3814 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3686 echo "configure:3 687: checking return type of signal handlers" >&53815 echo "configure:3816: checking return type of signal handlers" >&5 3687 3816 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 3688 3817 echo $ac_n "(cached) $ac_c" 1>&6 3689 3818 else 3690 3819 cat > conftest.$ac_ext <<EOF 3691 #line 3 692"configure"3820 #line 3821 "configure" 3692 3821 #include "confdefs.h" 3693 3822 #include <sys/types.h> … … 3706 3835 ; return 0; } 3707 3836 EOF 3708 if { (eval echo configure:3 709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3837 if { (eval echo configure:3838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3709 3838 rm -rf conftest* 3710 3839 ac_cv_type_signal=void … … 3725 3854 3726 3855 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 3727 echo "configure:3 728: checking for vprintf" >&53856 echo "configure:3857: checking for vprintf" >&5 3728 3857 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 3729 3858 echo $ac_n "(cached) $ac_c" 1>&6 3730 3859 else 3731 3860 cat > conftest.$ac_ext <<EOF 3732 #line 3 733"configure"3861 #line 3862 "configure" 3733 3862 #include "confdefs.h" 3734 3863 /* System header to define __stub macros and hopefully few prototypes, … … 3753 3882 ; return 0; } 3754 3883 EOF 3755 if { (eval echo configure:3 756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3884 if { (eval echo configure:3885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3756 3885 rm -rf conftest* 3757 3886 eval "ac_cv_func_vprintf=yes" … … 3777 3906 if test "$ac_cv_func_vprintf" != yes; then 3778 3907 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 3779 echo "configure:3 780: checking for _doprnt" >&53908 echo "configure:3909: checking for _doprnt" >&5 3780 3909 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 3781 3910 echo $ac_n "(cached) $ac_c" 1>&6 3782 3911 else 3783 3912 cat > conftest.$ac_ext <<EOF 3784 #line 3 785"configure"3913 #line 3914 "configure" 3785 3914 #include "confdefs.h" 3786 3915 /* System header to define __stub macros and hopefully few prototypes, … … 3805 3934 ; return 0; } 3806 3935 EOF 3807 if { (eval echo configure:3 808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3936 if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3808 3937 rm -rf conftest* 3809 3938 eval "ac_cv_func__doprnt=yes" … … 3831 3960 3832 3961 echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6 3833 echo "configure:3 834: checking for library containing setenv" >&53962 echo "configure:3963: checking for library containing setenv" >&5 3834 3963 if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then 3835 3964 echo $ac_n "(cached) $ac_c" 1>&6 … … 3838 3967 ac_cv_search_setenv="no" 3839 3968 cat > conftest.$ac_ext <<EOF 3840 #line 3 841"configure"3969 #line 3970 "configure" 3841 3970 #include "confdefs.h" 3842 3971 /* Override any gcc2 internal prototype to avoid an error. */ … … 3849 3978 ; return 0; } 3850 3979 EOF 3851 if { (eval echo configure:3 852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3980 if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3852 3981 rm -rf conftest* 3853 3982 ac_cv_search_setenv="none required" … … 3860 3989 LIBS="-l$i $ac_func_search_save_LIBS" 3861 3990 cat > conftest.$ac_ext <<EOF 3862 #line 3 863"configure"3991 #line 3992 "configure" 3863 3992 #include "confdefs.h" 3864 3993 /* Override any gcc2 internal prototype to avoid an error. */ … … 3871 4000 ; return 0; } 3872 4001 EOF 3873 if { (eval echo configure: 3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3874 4003 rm -rf conftest* 3875 4004 ac_cv_search_setenv="-l$i" … … 3895 4024 do 3896 4025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3897 echo "configure: 3898: checking for $ac_func" >&54026 echo "configure:4027: checking for $ac_func" >&5 3898 4027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3899 4028 echo $ac_n "(cached) $ac_c" 1>&6 3900 4029 else 3901 4030 cat > conftest.$ac_ext <<EOF 3902 #line 3903"configure"4031 #line 4032 "configure" 3903 4032 #include "confdefs.h" 3904 4033 /* System header to define __stub macros and hopefully few prototypes, … … 3923 4052 ; return 0; } 3924 4053 EOF 3925 if { (eval echo configure: 3926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4054 if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3926 4055 rm -rf conftest* 3927 4056 eval "ac_cv_func_$ac_func=yes" … … 3973 4102 # check for a peculiar constructor initialization 3974 4103 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 3975 echo "configure: 3976: checking whether explicit C++ constructor calls are allowed" >&54104 echo "configure:4105: checking whether explicit C++ constructor calls are allowed" >&5 3976 4105 3977 4106 ac_ext=C … … 3986 4115 else 3987 4116 cat > conftest.$ac_ext <<EOF 3988 #line 3989"configure"4117 #line 4118 "configure" 3989 4118 #include "confdefs.h" 3990 4119 … … 4004 4133 ; return 0; } 4005 4134 EOF 4006 if { (eval echo configure:4 007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4135 if { (eval echo configure:4136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4007 4136 rm -rf conftest* 4008 4137 ac_cv_explicit_const=yes … … 4033 4162 # sprintf returns number of printed chars 4034 4163 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 4035 echo "configure:4 036: checking whether vsprintf returns number of printed chars" >&54164 echo "configure:4165: checking whether vsprintf returns number of printed chars" >&5 4036 4165 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then 4037 4166 echo $ac_n "(cached) $ac_c" 1>&6 … … 4041 4170 else 4042 4171 cat > conftest.$ac_ext <<EOF 4043 #line 4 044"configure"4172 #line 4173 "configure" 4044 4173 #include "confdefs.h" 4045 4174 #include <stdio.h> 4046 4175 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 4047 4176 EOF 4048 if { (eval echo configure:4 049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4177 if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4049 4178 then 4050 4179 ac_cv_returns_n_of_chars=yes … … 4072 4201 # determine ALIGN_8 4073 4202 echo $ac_n "checking size of char""... $ac_c" 1>&6 4074 echo "configure:4 075: checking size of char" >&54203 echo "configure:4204: checking size of char" >&5 4075 4204 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 4076 4205 echo $ac_n "(cached) $ac_c" 1>&6 … … 4080 4209 else 4081 4210 cat > conftest.$ac_ext <<EOF 4082 #line 4 083"configure"4211 #line 4212 "configure" 4083 4212 #include "confdefs.h" 4084 4213 #include <stdio.h> … … 4091 4220 } 4092 4221 EOF 4093 if { (eval echo configure:4 094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4222 if { (eval echo configure:4223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4094 4223 then 4095 4224 ac_cv_sizeof_char=`cat conftestval` … … 4111 4240 4112 4241 echo $ac_n "checking size of short""... $ac_c" 1>&6 4113 echo "configure:4 114: checking size of short" >&54242 echo "configure:4243: checking size of short" >&5 4114 4243 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 4115 4244 echo $ac_n "(cached) $ac_c" 1>&6 … … 4119 4248 else 4120 4249 cat > conftest.$ac_ext <<EOF 4121 #line 4 122"configure"4250 #line 4251 "configure" 4122 4251 #include "confdefs.h" 4123 4252 #include <stdio.h> … … 4130 4259 } 4131 4260 EOF 4132 if { (eval echo configure:4 133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4261 if { (eval echo configure:4262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4133 4262 then 4134 4263 ac_cv_sizeof_short=`cat conftestval` … … 4150 4279 4151 4280 echo $ac_n "checking size of int""... $ac_c" 1>&6 4152 echo "configure:4 153: checking size of int" >&54281 echo "configure:4282: checking size of int" >&5 4153 4282 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 4154 4283 echo $ac_n "(cached) $ac_c" 1>&6 … … 4158 4287 else 4159 4288 cat > conftest.$ac_ext <<EOF 4160 #line 4 161"configure"4289 #line 4290 "configure" 4161 4290 #include "confdefs.h" 4162 4291 #include <stdio.h> … … 4169 4298 } 4170 4299 EOF 4171 if { (eval echo configure:4 172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4172 4301 then 4173 4302 ac_cv_sizeof_int=`cat conftestval` … … 4189 4318 4190 4319 echo $ac_n "checking size of long""... $ac_c" 1>&6 4191 echo "configure:4 192: checking size of long" >&54320 echo "configure:4321: checking size of long" >&5 4192 4321 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 4193 4322 echo $ac_n "(cached) $ac_c" 1>&6 … … 4197 4326 else 4198 4327 cat > conftest.$ac_ext <<EOF 4199 #line 4 200"configure"4328 #line 4329 "configure" 4200 4329 #include "confdefs.h" 4201 4330 #include <stdio.h> … … 4208 4337 } 4209 4338 EOF 4210 if { (eval echo configure:4 211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4211 4340 then 4212 4341 ac_cv_sizeof_long=`cat conftestval` … … 4228 4357 4229 4358 echo $ac_n "checking size of void*""... $ac_c" 1>&6 4230 echo "configure:4 231: checking size of void*" >&54359 echo "configure:4360: checking size of void*" >&5 4231 4360 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 4232 4361 echo $ac_n "(cached) $ac_c" 1>&6 … … 4236 4365 else 4237 4366 cat > conftest.$ac_ext <<EOF 4238 #line 4 239"configure"4367 #line 4368 "configure" 4239 4368 #include "confdefs.h" 4240 4369 #include <stdio.h> … … 4247 4376 } 4248 4377 EOF 4249 if { (eval echo configure:4 250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4250 4379 then 4251 4380 ac_cv_sizeof_voidp=`cat conftestval` … … 4267 4396 4268 4397 echo $ac_n "checking size of double""... $ac_c" 1>&6 4269 echo "configure:4 270: checking size of double" >&54398 echo "configure:4399: checking size of double" >&5 4270 4399 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 4271 4400 echo $ac_n "(cached) $ac_c" 1>&6 … … 4275 4404 else 4276 4405 cat > conftest.$ac_ext <<EOF 4277 #line 4 278"configure"4406 #line 4407 "configure" 4278 4407 #include "confdefs.h" 4279 4408 #include <stdio.h> … … 4286 4415 } 4287 4416 EOF 4288 if { (eval echo configure:4 289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4289 4418 then 4290 4419 ac_cv_sizeof_double=`cat conftestval` … … 4306 4435 4307 4436 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4308 echo "configure:4 309: checking whether byte ordering is bigendian" >&54437 echo "configure:4438: checking whether byte ordering is bigendian" >&5 4309 4438 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 4310 4439 echo $ac_n "(cached) $ac_c" 1>&6 … … 4313 4442 # See if sys/param.h defines the BYTE_ORDER macro. 4314 4443 cat > conftest.$ac_ext <<EOF 4315 #line 4 316"configure"4444 #line 4445 "configure" 4316 4445 #include "confdefs.h" 4317 4446 #include <sys/types.h> … … 4324 4453 ; return 0; } 4325 4454 EOF 4326 if { (eval echo configure:4 327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4455 if { (eval echo configure:4456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4327 4456 rm -rf conftest* 4328 4457 # It does; now see whether it defined to BIG_ENDIAN or not. 4329 4458 cat > conftest.$ac_ext <<EOF 4330 #line 4 331"configure"4459 #line 4460 "configure" 4331 4460 #include "confdefs.h" 4332 4461 #include <sys/types.h> … … 4339 4468 ; return 0; } 4340 4469 EOF 4341 if { (eval echo configure:4 342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4470 if { (eval echo configure:4471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4342 4471 rm -rf conftest* 4343 4472 ac_cv_c_bigendian=yes … … 4359 4488 else 4360 4489 cat > conftest.$ac_ext <<EOF 4361 #line 4 362"configure"4490 #line 4491 "configure" 4362 4491 #include "confdefs.h" 4363 4492 main () { … … 4372 4501 } 4373 4502 EOF 4374 if { (eval echo configure:4 375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4375 4504 then 4376 4505 ac_cv_c_bigendian=no … … 4526 4655 4527 4656 echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6 4528 echo "configure:4 529: checking whether to use dynamic linking" >&54657 echo "configure:4658: checking whether to use dynamic linking" >&5 4529 4658 if test "$with_dl" != no && test "$ac_lib_dl" = yes; then 4530 4659 cat >> confdefs.h <<\EOF … … 4539 4668 4540 4669 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 4541 echo "configure:4 542: checking for tgetent in -lncurses" >&54670 echo "configure:4671: checking for tgetent in -lncurses" >&5 4542 4671 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 4543 4672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4547 4676 LIBS="-lncurses $LIBS" 4548 4677 cat > conftest.$ac_ext <<EOF 4549 #line 4 550"configure"4678 #line 4679 "configure" 4550 4679 #include "confdefs.h" 4551 4680 /* Override any gcc2 internal prototype to avoid an error. */ … … 4558 4687 ; return 0; } 4559 4688 EOF 4560 if { (eval echo configure:4 561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4561 4690 rm -rf conftest* 4562 4691 eval "ac_cv_lib_$ac_lib_var=yes" … … 4585 4714 \ 4586 4715 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 4587 echo "configure:4 588: checking for tgetent in -lcurses" >&54716 echo "configure:4717: checking for tgetent in -lcurses" >&5 4588 4717 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 4589 4718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4593 4722 LIBS="-lcurses $LIBS" 4594 4723 cat > conftest.$ac_ext <<EOF 4595 #line 4 596"configure"4724 #line 4725 "configure" 4596 4725 #include "confdefs.h" 4597 4726 /* Override any gcc2 internal prototype to avoid an error. */ … … 4604 4733 ; return 0; } 4605 4734 EOF 4606 if { (eval echo configure:4 607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4735 if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4607 4736 rm -rf conftest* 4608 4737 eval "ac_cv_lib_$ac_lib_var=yes" … … 4631 4760 \ 4632 4761 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 4633 echo "configure:4 634: checking for tgetent in -ltermcap" >&54762 echo "configure:4763: checking for tgetent in -ltermcap" >&5 4634 4763 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 4635 4764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4639 4768 LIBS="-ltermcap $LIBS" 4640 4769 cat > conftest.$ac_ext <<EOF 4641 #line 4 642"configure"4770 #line 4771 "configure" 4642 4771 #include "confdefs.h" 4643 4772 /* Override any gcc2 internal prototype to avoid an error. */ … … 4650 4779 ; return 0; } 4651 4780 EOF 4652 if { (eval echo configure:4 653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4653 4782 rm -rf conftest* 4654 4783 eval "ac_cv_lib_$ac_lib_var=yes" … … 4699 4828 4700 4829 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 4701 echo "configure:4 702: checking for rl_abort in -lreadline" >&54830 echo "configure:4831: checking for rl_abort in -lreadline" >&5 4702 4831 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 4703 4832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4707 4836 LIBS="-lreadline $LIBS" 4708 4837 cat > conftest.$ac_ext <<EOF 4709 #line 4 710"configure"4838 #line 4839 "configure" 4710 4839 #include "confdefs.h" 4711 4840 /* Override any gcc2 internal prototype to avoid an error. */ … … 4721 4850 ; return 0; } 4722 4851 EOF 4723 if { (eval echo configure:4 724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4852 if { (eval echo configure:4853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4724 4853 rm -rf conftest* 4725 4854 eval "ac_cv_lib_$ac_lib_var=yes" … … 4749 4878 4750 4879 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 4751 echo "configure:4 752: checking how to run the C++ preprocessor" >&54880 echo "configure:4881: checking how to run the C++ preprocessor" >&5 4752 4881 if test -z "$CXXCPP"; then 4753 4882 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 4762 4891 CXXCPP="${CXX-g++} -E" 4763 4892 cat > conftest.$ac_ext <<EOF 4764 #line 4 765"configure"4893 #line 4894 "configure" 4765 4894 #include "confdefs.h" 4766 4895 #include <stdlib.h> 4767 4896 EOF 4768 4897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4769 { (eval echo configure:4 770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4898 { (eval echo configure:4899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4770 4899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4771 4900 if test -z "$ac_err"; then … … 4795 4924 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4796 4925 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4797 echo "configure:4 798: checking for $ac_hdr" >&54926 echo "configure:4927: checking for $ac_hdr" >&5 4798 4927 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4799 4928 echo $ac_n "(cached) $ac_c" 1>&6 4800 4929 else 4801 4930 cat > conftest.$ac_ext <<EOF 4802 #line 4 803"configure"4931 #line 4932 "configure" 4803 4932 #include "confdefs.h" 4804 4933 #include <$ac_hdr> 4805 4934 EOF 4806 4935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4807 { (eval echo configure:4 808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4936 { (eval echo configure:4937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4808 4937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4809 4938 if test -z "$ac_err"; then … … 4834 4963 test "$ac_cv_header_readline_readline_h" = yes; then 4835 4964 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 4836 echo "configure:4 837: checking whether readline.h is ok" >&54965 echo "configure:4966: checking whether readline.h is ok" >&5 4837 4966 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 4838 4967 echo $ac_n "(cached) $ac_c" 1>&6 4839 4968 else 4840 4969 cat > conftest.$ac_ext <<EOF 4841 #line 4 842"configure"4970 #line 4971 "configure" 4842 4971 #include "confdefs.h" 4843 4972 #include<unistd.h> … … 4852 4981 ; return 0; } 4853 4982 EOF 4854 if { (eval echo configure:4 855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4855 4984 rm -rf conftest* 4856 4985 ac_cv_header_readline_readline_h_ok="yes" … … 4868 4997 #not ok -- try once more with explicitly declaring everything 4869 4998 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 4870 echo "configure: 4871: checking whether or not we nevertheless can use readline" >&54999 echo "configure:5000: checking whether or not we nevertheless can use readline" >&5 4871 5000 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 4872 5001 echo $ac_n "(cached) $ac_c" 1>&6 4873 5002 else 4874 5003 cat > conftest.$ac_ext <<EOF 4875 #line 4876"configure"5004 #line 5005 "configure" 4876 5005 #include "confdefs.h" 4877 5006 #include <stdio.h> … … 4907 5036 ; return 0; } 4908 5037 EOF 4909 if { (eval echo configure: 4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5038 if { (eval echo configure:5039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4910 5039 rm -rf conftest* 4911 5040 ac_cv_have_readline="yes" … … 4946 5075 4947 5076 echo $ac_n "checking which readline to use""... $ac_c" 1>&6 4948 echo "configure: 4949: checking which readline to use" >&55077 echo "configure:5078: checking which readline to use" >&5 4949 5078 if test "$ac_cv_with_readline" = dynamic; then 4950 5079 echo "$ac_t""dynamic" 1>&6 … … 4966 5095 # gmp, MP, MPT, factory, libfac 4967 5096 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4968 echo "configure: 4969: checking for main in -lgmp" >&55097 echo "configure:5098: checking for main in -lgmp" >&5 4969 5098 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 4970 5099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4974 5103 LIBS="-lgmp $LIBS" 4975 5104 cat > conftest.$ac_ext <<EOF 4976 #line 4977"configure"5105 #line 5106 "configure" 4977 5106 #include "confdefs.h" 4978 5107 … … 4981 5110 ; return 0; } 4982 5111 EOF 4983 if { (eval echo configure: 4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4984 5113 rm -rf conftest* 4985 5114 eval "ac_cv_lib_$ac_lib_var=yes" … … 5010 5139 SAVE_LIBS=$LIBS 5011 5140 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 5012 echo "configure:5 013: checking for IMP_PutGmpInt in -lMP" >&55141 echo "configure:5142: checking for IMP_PutGmpInt in -lMP" >&5 5013 5142 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 5014 5143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5018 5147 LIBS="-lMP $MP_LIBS $LIBS" 5019 5148 cat > conftest.$ac_ext <<EOF 5020 #line 5 021"configure"5149 #line 5150 "configure" 5021 5150 #include "confdefs.h" 5022 5151 /* Override any gcc2 internal prototype to avoid an error. */ … … 5029 5158 ; return 0; } 5030 5159 EOF 5031 if { (eval echo configure:5 032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5160 if { (eval echo configure:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5032 5161 rm -rf conftest* 5033 5162 eval "ac_cv_lib_$ac_lib_var=yes" … … 5057 5186 5058 5187 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 5059 echo "configure:5 060: checking for MPT_GetTree in -lMPT" >&55188 echo "configure:5189: checking for MPT_GetTree in -lMPT" >&5 5060 5189 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 5061 5190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5065 5194 LIBS="-lMPT $MP_LIBS $LIBS" 5066 5195 cat > conftest.$ac_ext <<EOF 5067 #line 5 068"configure"5196 #line 5197 "configure" 5068 5197 #include "confdefs.h" 5069 5198 /* Override any gcc2 internal prototype to avoid an error. */ … … 5076 5205 ; return 0; } 5077 5206 EOF 5078 if { (eval echo configure:5 079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5079 5208 rm -rf conftest* 5080 5209 eval "ac_cv_lib_$ac_lib_var=yes" … … 5105 5234 LIBS=$SAVE_LIBS 5106 5235 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 5107 echo "configure:5 108: checking for atof in -lsingcf" >&55236 echo "configure:5237: checking for atof in -lsingcf" >&5 5108 5237 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 5109 5238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5113 5242 LIBS="-lsingcf $LIBS" 5114 5243 cat > conftest.$ac_ext <<EOF 5115 #line 5 116"configure"5244 #line 5245 "configure" 5116 5245 #include "confdefs.h" 5117 5246 /* Override any gcc2 internal prototype to avoid an error. */ … … 5124 5253 ; return 0; } 5125 5254 EOF 5126 if { (eval echo configure:5 127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5255 if { (eval echo configure:5256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5127 5256 rm -rf conftest* 5128 5257 eval "ac_cv_lib_$ac_lib_var=yes" … … 5152 5281 5153 5282 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 5154 echo "configure:5 155: checking for atof in -lsingfac" >&55283 echo "configure:5284: checking for atof in -lsingfac" >&5 5155 5284 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 5156 5285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5160 5289 LIBS="-lsingfac $LIBS" 5161 5290 cat > conftest.$ac_ext <<EOF 5162 #line 5 163"configure"5291 #line 5292 "configure" 5163 5292 #include "confdefs.h" 5164 5293 /* Override any gcc2 internal prototype to avoid an error. */ … … 5171 5300 ; return 0; } 5172 5301 EOF 5173 if { (eval echo configure:5 174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5302 if { (eval echo configure:5303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5174 5303 rm -rf conftest* 5175 5304 eval "ac_cv_lib_$ac_lib_var=yes" … … 5199 5328 5200 5329 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 5201 echo "configure:5 202: checking for omTestAddr in -lomalloc" >&55330 echo "configure:5331: checking for omTestAddr in -lomalloc" >&5 5202 5331 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` 5203 5332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5207 5336 LIBS="-lomalloc $LIBS" 5208 5337 cat > conftest.$ac_ext <<EOF 5209 #line 5 210"configure"5338 #line 5339 "configure" 5210 5339 #include "confdefs.h" 5211 5340 /* Override any gcc2 internal prototype to avoid an error. */ … … 5218 5347 ; return 0; } 5219 5348 EOF 5220 if { (eval echo configure:5 221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5349 if { (eval echo configure:5350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5221 5350 rm -rf conftest* 5222 5351 eval "ac_cv_lib_$ac_lib_var=yes" … … 5246 5375 5247 5376 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 5248 echo "configure:5 249: checking for main in -lomalloc_ndebug" >&55377 echo "configure:5378: checking for main in -lomalloc_ndebug" >&5 5249 5378 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` 5250 5379 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5254 5383 LIBS="-lomalloc_ndebug $LIBS" 5255 5384 cat > conftest.$ac_ext <<EOF 5256 #line 5 257"configure"5385 #line 5386 "configure" 5257 5386 #include "confdefs.h" 5258 5387 … … 5261 5390 ; return 0; } 5262 5391 EOF 5263 if { (eval echo configure:5 264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5264 5393 rm -rf conftest* 5265 5394 eval "ac_cv_lib_$ac_lib_var=yes" … … 5289 5418 5290 5419 echo $ac_n "checking for main in -lntl""... $ac_c" 1>&6 5291 echo "configure:5 292: checking for main in -lntl" >&55420 echo "configure:5421: checking for main in -lntl" >&5 5292 5421 ac_lib_var=`echo ntl'_'main | sed 'y%./+-%__p_%'` 5293 5422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5297 5426 LIBS="-lntl $LIBS" 5298 5427 cat > conftest.$ac_ext <<EOF 5299 #line 5 300"configure"5428 #line 5429 "configure" 5300 5429 #include "confdefs.h" 5301 5430 … … 5304 5433 ; return 0; } 5305 5434 EOF 5306 if { (eval echo configure:5 307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5435 if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5307 5436 rm -rf conftest* 5308 5437 eval "ac_cv_lib_$ac_lib_var=yes" … … 5337 5466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5338 5467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5339 echo "configure:5 340: checking for $ac_hdr" >&55468 echo "configure:5469: checking for $ac_hdr" >&5 5340 5469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5341 5470 echo $ac_n "(cached) $ac_c" 1>&6 5342 5471 else 5343 5472 cat > conftest.$ac_ext <<EOF 5344 #line 5 345"configure"5473 #line 5474 "configure" 5345 5474 #include "confdefs.h" 5346 5475 #include <$ac_hdr> 5347 5476 EOF 5348 5477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5349 { (eval echo configure:5 350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }5478 { (eval echo configure:5479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5350 5479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5351 5480 if test -z "$ac_err"; then … … 5375 5504 5376 5505 echo $ac_n "checking whether to use Boost""... $ac_c" 1>&6 5377 echo "configure:5 378: checking whether to use Boost" >&55506 echo "configure:5507: checking whether to use Boost" >&5 5378 5507 if test "$with_Boost" != no; then 5379 5508 echo "$ac_t""yes" 1>&6 … … 5390 5519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5391 5520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5392 echo "configure:5 393: checking for $ac_hdr" >&55521 echo "configure:5522: checking for $ac_hdr" >&5 5393 5522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5394 5523 echo $ac_n "(cached) $ac_c" 1>&6 5395 5524 else 5396 5525 cat > conftest.$ac_ext <<EOF 5397 #line 5 398"configure"5526 #line 5527 "configure" 5398 5527 #include "confdefs.h" 5399 5528 #include <$ac_hdr> 5400 5529 EOF 5401 5530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5402 { (eval echo configure:5 403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }5531 { (eval echo configure:5532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5403 5532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5404 5533 if test -z "$ac_err"; then … … 5436 5565 echo "$ac_t""no" 1>&6 5437 5566 echo $ac_n "checking whether to use std::vector""... $ac_c" 1>&6 5438 echo "configure:5 439: checking whether to use std::vector" >&55567 echo "configure:5568: checking whether to use std::vector" >&5 5439 5568 if test "$with_stdvec" != yes; then 5440 5569 echo "$ac_t""no" 1>&6 … … 5485 5614 SAVE_LIBS=$LIBS 5486 5615 echo $ac_n "checking for __stack_chk_fail_local in -lc_nonshared""... $ac_c" 1>&6 5487 echo "configure:5 488: checking for __stack_chk_fail_local in -lc_nonshared" >&55616 echo "configure:5617: checking for __stack_chk_fail_local in -lc_nonshared" >&5 5488 5617 ac_lib_var=`echo c_nonshared'_'__stack_chk_fail_local | sed 'y%./+-%__p_%'` 5489 5618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 5493 5622 LIBS="-lc_nonshared $LIBS" 5494 5623 cat > conftest.$ac_ext <<EOF 5495 #line 5 496"configure"5624 #line 5625 "configure" 5496 5625 #include "confdefs.h" 5497 5626 /* Override any gcc2 internal prototype to avoid an error. */ … … 5504 5633 ; return 0; } 5505 5634 EOF 5506 if { (eval echo configure:5 507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5635 if { (eval echo configure:5636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5507 5636 rm -rf conftest* 5508 5637 eval "ac_cv_lib_$ac_lib_var=yes" … … 5528 5657 5529 5658 5659 5530 5660 # evaluate results 5531 5661 if test "$ac_cv_omalloc_ok" != yes && test "$enable_omalloc" != yes; then … … 5534 5664 5535 5665 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 5536 echo "configure:5 537: checking which apint package to use" >&55666 echo "configure:5667: checking which apint package to use" >&5 5537 5667 if test "${with_apint}" != gmp; then 5538 5668 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then … … 5556 5686 5557 5687 echo $ac_n "checking gfanlib""... $ac_c" 1>&6 5558 echo "configure:5 559: checking gfanlib" >&55688 echo "configure:5689: checking gfanlib" >&5 5559 5689 if test "$enable_gfanlib" = yes; then 5560 5690 echo "$ac_t""yes" 1>&6 … … 5565 5695 5566 5696 echo $ac_n "checking whether to use libsvd""... $ac_c" 1>&6 5567 echo "configure:5 568: checking whether to use libsvd" >&55697 echo "configure:5698: checking whether to use libsvd" >&5 5568 5698 if test "$with_svd" = yes; then 5569 5699 echo "$ac_t""yes" 1>&6 … … 5580 5710 # 5581 5711 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 5582 echo "configure:5 583: checking whether to have MP" >&55712 echo "configure:5713: checking whether to have MP" >&5 5583 5713 if test "${with_MP}" != yes && test "${with_MP}" != no; then 5584 5714 if (test "${will_have_gmp}" = yes) && \ … … 5615 5745 5616 5746 echo $ac_n "checking whether to have NTL""... $ac_c" 1>&6 5617 echo "configure:5 618: checking whether to have NTL" >&55747 echo "configure:5748: checking whether to have NTL" >&5 5618 5748 if test "${with_NTL}" = yes ; then 5619 5749 echo "$ac_t""yes" 1>&6 … … 5624 5754 5625 5755 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 5626 echo "configure:5 627: checking whether to have factory" >&55756 echo "configure:5757: checking whether to have factory" >&5 5627 5757 if test "${with_factory}" != yes && test "${with_factory}" != no; then 5628 5758 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 5655 5785 5656 5786 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 5657 echo "configure:5 658: checking whether to have libfac" >&55787 echo "configure:5788: checking whether to have libfac" >&5 5658 5788 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 5659 5789 if (test "${will_have_factory}" = yes) && \ … … 5690 5820 5691 5821 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 5692 echo "configure:5 693: checking whether to have dbm links" >&55822 echo "configure:5823: checking whether to have dbm links" >&5 5693 5823 if test "$with_dbm" != no; then 5694 5824 cat >> confdefs.h <<\EOF … … 5702 5832 5703 5833 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 5704 echo "configure:5 705: checking whether to have dynamic modules" >&55834 echo "configure:5835: checking whether to have dynamic modules" >&5 5705 5835 if test "$with_dynamic_modules" = no || test "$ac_have_dl" != yes; then 5706 5836 echo "$ac_t""no" 1>&6 … … 5714 5844 5715 5845 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 5716 echo "configure:5 717: checking whether to have dynamic kernel" >&55846 echo "configure:5847: checking whether to have dynamic kernel" >&5 5717 5847 if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then 5718 5848 DL_KERNEL=1 … … 5724 5854 5725 5855 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 5726 echo "configure:5 727: checking whether to have Plural" >&55856 echo "configure:5857: checking whether to have Plural" >&5 5727 5857 if test "$with_Plural" != no && test "$enable_Plural" != no; then 5728 5858 cat >> confdefs.h <<\EOF … … 5738 5868 5739 5869 echo $ac_n "checking whether to have ratGB""... $ac_c" 1>&6 5740 echo "configure:5 741: checking whether to have ratGB" >&55870 echo "configure:5871: checking whether to have ratGB" >&5 5741 5871 if test "$with_ratGB" != yes && test "$enable_ratGB" != yes; then 5742 5872 echo "$ac_t""no" 1>&6 … … 5925 6055 s%@PYTHON_EXTRA_LDFLAGS@%$PYTHON_EXTRA_LDFLAGS%g 5926 6056 s%@HAVE_PYTHON_VALUE@%$HAVE_PYTHON_VALUE%g 6057 s%@PYTHON_STATIC_LIBS@%$PYTHON_STATIC_LIBS%g 6058 s%@PYTHON_MODULE_FLAGS@%$PYTHON_MODULE_FLAGS%g 6059 s%@PYTHON_EMBED_LIBS@%$PYTHON_EMBED_LIBS%g 6060 s%@EMBED_PYTHON_VALUE@%$EMBED_PYTHON_VALUE%g 5927 6061 s%@LD_DYN_FLAGS@%$LD_DYN_FLAGS%g 5928 6062 s%@SFLAGS@%$SFLAGS%g -
Singular/configure.in
rc728c0 r76b37c 188 188 AC_DEFINE(HAVE_PYTHON) 189 189 HAVE_PYTHON_VALUE=1 190 AC_SUBST(HAVE_PYTHON_VALUE) 190 AC_SUBST(HAVE_PYTHON_VALUE) 191 191 fi 192 192 193 # AC_LANG_POP 193 194 # turn back to default flags … … 198 199 # all done! 199 200 # 201 ]) 202 203 204 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 205 dnl check whethe python-based module can be build statically 206 dnl 207 AC_DEFUN([AC_PYTHON_TEST_STATIC],[ 208 ac_save_LIBS_for_python="${LIBS}" 209 ac_save_CPPFLAGS_for_python="${CPPFLAGS}" 210 211 AC_MSG_CHECKING([${try_python_shared_static_flags} for linking \ 212 python statically]) 213 all_cppflags="${ac_save_CPPFLAGS} ${PYTHON_CPPFLAGS}" 214 215 CPPFLAGS="-static ${all_cppflags}" 216 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS -lc -lm $PYTHON_EXTRA_LDFLAGS" 217 218 AC_TRY_LINK([ 219 #include <Python.h> 220 ],[ 221 Py_Initialize(); 222 ],[pythonstaticexists=yes],[pythonstaticexists=no]) 223 224 AC_MSG_RESULT([$pythonstaticexists]) 225 226 if test "$pythonstaticexists" == yes ; then 227 AC_DEFINE(HAVE_STATIC_PYTHON) 228 PYTHON_STATIC_LIBS="$PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS" 229 AC_SUBST(PYTHON_STATIC_LIBS) 230 231 try_flags="-Xlinker -static -nodefaultlibs" 232 CPPFLAGS="-shared -fPIC ${try_flags} ${all_cppflags}" 233 AC_MSG_CHECKING([$try_flags for linking python module statically]) 234 AC_TRY_LINK([ 235 #include <Python.h> 236 ],[ 237 Py_Initialize(); 238 ],[pythonsharedstaticexists=yes],[pythonsharedstaticexists=no]) 239 AC_MSG_RESULT([$pythonsharedstaticexists]) 240 241 if test "$pythonsharedstaticexists" = yes; then 242 PYTHON_MODULE_FLAGS="${try_flags}" 243 fi 244 fi 245 246 AC_SUBST(PYTHON_MODULE_FLAGS) 247 CPPFLAGS="$ac_save_CPPFLAGS_for_python" 248 LIBS="$ac_save_LIBS_for_python" 200 249 ]) 201 250 … … 579 628 580 629 # python 581 if test "${with_python+set}" != set; then 582 dnl Default value here! 583 PYTHON_EXE="no" 584 else 585 if test "${with_python}" = yes; then 586 PYTHON_EXE="python" 587 else 588 PYTHON_EXE="${with_python}" 589 fi 590 fi 630 dnl Default values here! 631 python_exe_name="no" 632 PYTHON_PLUGIN="module" 633 PYTHON_LINKAGE="static" 634 635 if test "${with_python+set}" == set; then 636 case "${with_python}" in 637 yes|static*|dynamic*|shared*|module*|embed*) 638 python_exe_name="python" 639 ;; 640 *) 641 python_exe_name="${with_python%%,*}" 642 ;; 643 esac 644 645 case ",${with_python}," in 646 *,dynamic,*|*,shared,*) 647 PYTHON_LINKAGE="dynamic" 648 ;; 649 *,static,*) 650 PYTHON_LINKAGE="static" 651 ;; 652 esac 653 654 case ",${with_python}," in 655 *,embed,*|*,embedded,*) 656 PYTHON_PLUGIN="embed" 657 ;; 658 *,static,*) 659 PYTHON_PLUGIN="module" 660 ;; 661 esac 662 fi 663 664 PYTHON_EXE=`basename "${python_exe_name}"` 665 PYTHON_PATH=`dirname "${python_exe_name}"` 591 666 592 667 if test "${PYTHON_EXE}" = no; then 593 668 AC_MSG_WARN(building without python support) 594 669 else 595 AC_PATH_PROG([PYTHON],[$PYTHON_EXE] )670 AC_PATH_PROG([PYTHON],[$PYTHON_EXE],, "$PYTHON_PATH:$PATH") 596 671 if test -z "$PYTHON"; then 597 672 AC_MSG_WARN([Cannot find $PYTHON_EXE in your system path - skipping python support]) 598 673 else 599 674 AC_PYTHON_DEVEL_SINGULAR(>= '2.4', "${PYTHON}") 600 fi 601 fi 675 AC_PYTHON_TEST_STATIC() 676 677 if test "${PYTHON_PLUGIN}" = embed; then 678 AC_DEFINE(EMBED_PYTHON) 679 EMBED_PYTHON_VALUE=1 680 681 PYTHON_EMBED_LIBS="$PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS" 682 AC_SUBST(PYTHON_EMBED_LIBS) 683 fi 684 685 fi 686 fi 687 AC_SUBST(EMBED_PYTHON_VALUE) 688 602 689 603 690 dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll … … 845 932 AC_ARG_WITH( 846 933 python, 847 [ --with-python=[PYTHON,no] uses PYTHON as python executable, default is python]) 934 [ --with-python[=PYTHON[,embed|module[,static|dynamic]]] 935 uses PYTHON as python executable, default is python; 936 optionally set plug-in and linkage type]) 848 937 AC_ARG_WITH( 849 938 Boost, … … 1078 1167 AC_SUBST(GLIBC_DYN_FIX) 1079 1168 1169 1080 1170 # evaluate results 1081 1171 dnl llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll -
Singular/mod2.h.in
rc728c0 r76b37c 162 162 /* whether development version of python is available */ 163 163 #undef HAVE_PYTHON 164 /* whether static development version of python is available */ 165 #undef HAVE_STATIC_PYTHON 166 /* whether python should be embedded */ 167 #undef EMBED_PYTHON 164 168 165 169 /******************************************************************* -
Singular/pyobject_setup.cc
rc728c0 r76b37c 17 17 #include "static.h" 18 18 19 /* whether development version of python is linked statically or dynamically */ 20 #ifdef HAVE_STATIC 21 #define HAVE_STATIC_PYTHON 1 19 /* whether pyobject module is linked statically or dynamically */ 20 #ifdef HAVE_PYTHON 21 22 #if defined(HAVE_STATIC) 23 #ifdef HAVE_STATIC_PYTHON 24 #define HAVE_STATIC_PYOBJECT 25 #endif 26 #else 27 #ifdef EMBED_PYTHON 28 #define HAVE_STATIC_PYOBJECT 29 #else 30 #define HAVE_DYNAMIC_PYOBJECT 31 #endif 32 #endif 22 33 #endif 23 34 24 #ifdef HAVE_PYTHON // Case: python available (prefered variant) 25 26 27 # ifdef HAVE_STATIC_PYTHON // Case: link pyobject interface statically 35 # ifdef HAVE_STATIC_PYOBJECT // Case: link pyobject interface statically 28 36 #include "pyobject.cc" 29 37 void pyobject_setup() { pyobject_init(); } 30 38 31 39 32 # el se// Case: pyobject is dynamic module (prefered variant)40 # elif defined(HAVE_DYNAMIC_PYOBJECT) // Case: pyobject is dynamic module (prefered variant) 33 41 34 42 // forward declaration for Singular/iplib.cc … … 38 46 void* fktn = binary_module_function("pyobject", "mod_init"); 39 47 if (fktn) (* reinterpret_cast<void (*)()>(fktn) )(); 40 else Werror("python related functions are not av ialable");48 else Werror("python related functions are not available"); 41 49 } 42 43 # endif44 50 45 51 #else // Case: no python
Note: See TracChangeset
for help on using the changeset viewer.