- Timestamp:
- Jun 28, 1997, 4:39:29 PM (26 years ago)
- Branches:
- (u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
- Children:
- cf29809548261e742cf76d96605d660d04dab9de
- Parents:
- a708e05307ead3012a96e3d8308e940ea9cc7be0
- Location:
- MP
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
MP/MP/ChangeLog
ra708e0 r7adb502 11 11 assigned oldval 12 12 13 Fri Jun 6 15:55:04 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 14 15 * MP_Env.c: Used RawMem function for allocation of 16 env->logfilename 17 13 18 Tue May 27 13:57:13 1997 Olaf Bachmann <obachman@ratchwu> 14 19 15 20 * MP_TcpTransp.h: Added fork mode to MPtcp links 21 22 Tue May 27 13:57:13 1997 Olaf Bachmann <obachman@ratchwu> 23 24 * MP_TcpTransp.[h,c]: Added fork mode to MPtcp links 16 25 17 26 Tue May 20 17:38:53 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> -
MP/MP/MP.h
ra708e0 r7adb502 1 1 2 /* MP.h automatically generated by ./makeheader.pl on Wed Jun 11 19:18:33 MESZ 19972 /* MP.h automatically generated by ./makeheader.pl on Sat Jun 28 16:38:23 MESZ 1997 3 3 */ 4 4 /**************************************************************** … … 100 100 101 101 /* For checking the status of a link*/ 102 enum link_status_option {MP_LinkReadyReading, MP_LinkReadyWriting, 103 MP_LinkIsParent}; 102 enum link_status_option {MP_UnknownStatus, MP_LinkReadyReading, 103 MP_LinkReadyWriting, 104 MP_LinkIsParent, MP_LinkIsChild}; 104 105 typedef enum link_status_option MP_LinkStatus_t; 105 106 … … 691 692 692 693 typedef struct { 693 long (*write_buf) ();/* write buffer to transport */694 long (*read_buf) ();/* read transport to buffer */695 MP_Status_t (*flush_buf) ();/* flush buffer to transport */696 MP_Boolean_t (*get_status) ();/* check status of the link */697 MP_Status_t (*open_transp) ();/* open the transport device */698 MP_Status_t (*close_transp) ();/* close the transport device */694 long (*write_buf)VARARGS; /* write buffer to transport */ 695 long (*read_buf)VARARGS; /* read transport to buffer */ 696 MP_Status_t (*flush_buf)VARARGS; /* flush buffer to transport */ 697 MP_Boolean_t (*get_status)VARARGS; /* check status of the link */ 698 MP_Status_t (*open_transp)VARARGS; /* open the transport device */ 699 MP_Status_t (*close_transp)VARARGS; /* close the transport device */ 699 700 } MP_TranspOps_t; 700 701 … … 1458 1459 char *peerhost; 1459 1460 char *myhost; 1460 char isparent;1461 MP_LinkStatus_t status; 1461 1462 } MP_TCP_t; 1462 1463 … … 1622 1623 #ifdef MP_HAVE_PARI 1623 1624 1625 /* Dirty hack with honors to andi: pari defines "overflow" identifier 1626 which conflicts with the definition in some libraries (e.g. in 1627 iostream -- hence, we overshadow this defitnition before includeing 1628 genpari */ 1629 #ifndef overflow 1630 #define overflow muff 1624 1631 #include "genpari.h" 1625 1632 #undef overflow 1633 #endif 1634 1635 1626 1636 EXTERN MP_BigIntOps_t imp_pari_bigint_ops; 1627 1637 … … 1815 1825 #define MP_CopBasicNot 24 1816 1826 #define MP_CopBasicAssign 25 1817 1827 #define MP_CopBasicComplex 26 1818 1828 1819 1829 #endif /* _MP_BasicDict_h */ … … 1892 1902 ***************************************************************************/ 1893 1903 #define MP_CmtNumberRational 1 1904 #define MP_CmtNumberInteger 2 1905 1894 1906 1895 1907 /*************************************************************************** … … 1938 1950 * 1939 1951 ***************************************************************************/ 1952 /* We use the same numerical values as we use for the MP types */ 1953 #define MP_CmtProto_2_MPType(cmt) cmt 1954 1940 1955 #define MP_CmtProtoIMP_Sint8 65 1941 1956 #define MP_CmtProtoIMP_Uint8 67 … … 2118 2133 #define MP_CopPolyResultant 44 2119 2134 2135 /*************************************************************************** 2136 * 2137 * Common Metat Types 2138 * 2139 ***************************************************************************/ 2140 2141 #define MP_CmtPolyExpTreePoly 1 2120 2142 2121 2143 #endif /* _MP_PolyDict_h */ -
MP/MP/MP_Env.c
ra708e0 r7adb502 57 57 58 58 #ifndef lint 59 static char vcid[] = "@(#) $Id: MP_Env.c,v 1.3 1997-06-28 13:30:25 obachman Exp $"; 59 static char vcid[] = "@(#) $Id: MP_Env.c,v 1.1.1.1 1997/06/07 14:07:47 sgray Exp 60 $"; 60 61 #endif /*lint */ 61 62 -
MP/MP/MP_Get.c
ra708e0 r7adb502 65 65 **************************************************************************/ 66 66 67 #ifndef lint68 static char vcid[] = "@(#) $Id: MP_Get.c,v 1.2 1997-06-05 16:38:54 obachman Exp $";69 #endif /* lint */70 71 67 #include "MP.h" 72 68 -
MP/MP/MP_Put.c
ra708e0 r7adb502 77 77 78 78 79 #ifndef lint80 static char vcid[] = "@(#) $Id: MP_Put.c,v 1.2 1997-06-28 13:30:27 obachman Exp $";81 #endif /* lint */82 83 79 #include "MP.h" 84 80 -
MP/MP/MP_TcpTransp.c
ra708e0 r7adb502 74 74 75 75 #ifndef lint 76 static char vcid[] = "@(#) $Id: MP_TcpTransp.c,v 1.2 1997-06-05 16:38:56 obachman Exp $"; 76 static char vcid[] = "@(#) $Id: MP_TcpTransp.c,v 1.1.1.1 1997/06/7 14:05:52 sgr 77 ay Exp $"; 77 78 #endif /* lint */ 78 79 … … 683 684 sprintf(cport,"%d",tcp_rec->peerport); 684 685 argv[7] = cport; 685 tcp_rec->isparent = 0;686 686 687 687 /* establish connection */ … … 701 701 _exit(1); 702 702 else 703 { 704 tcp_rec->status = MP_LinkIsChild; 703 705 return MP_Success; 706 } 704 707 } 705 708 else … … 714 717 /* establish connection */ 715 718 socket_accept_blocking(link, &tcp_rec->sock); 716 tcp_rec-> isparent = 1;719 tcp_rec->status = MP_LinkIsParent; 717 720 718 721 #ifndef NO_LOGGING … … 994 997 if (status_to_check == MP_LinkIsParent) 995 998 { 996 if (((MP_TCP_t *)link->transp.private1)-> isparent)999 if (((MP_TCP_t *)link->transp.private1)->status == MP_LinkIsParent) 997 1000 return MP_TRUE; 998 1001 else 999 1002 return MP_FALSE; 1000 1003 } 1004 else if (status_to_check == MP_LinkIsChild) 1005 { 1006 if (((MP_TCP_t *)link->transp.private1)->status == MP_LinkIsChild) 1007 return MP_TRUE; 1008 else 1009 return MP_FALSE; 1010 } 1011 1001 1012 1002 1013 FD_ZERO(&mask); … … 1243 1254 tcp_rec->myhost = NULL; 1244 1255 tcp_rec->peerhost = NULL; 1245 tcp_rec-> isparent = 0;1256 tcp_rec->status = MP_UnknownStatus; 1246 1257 1247 1258 link->transp.private1 = (char *)tcp_rec; -
MP/MP/Makefile.in
ra708e0 r7adb502 91 91 rm -f $@ 92 92 $(AR) cr $@ $(OBJS) 93 $(RANLIB) $@ 93 if $(RANLIB_TEST) ; then $(RANLIB) $@; else true; fi 94 # $(RANLIB) $@ 94 95 95 96 install: libMP.a -
MP/MP/h/MP_Config.h.in
ra708e0 r7adb502 18 18 /* define ptr to limbs */ 19 19 #define _mp_d _mp_d 20 21 /* Define for use when vfork doesn't exist or is broken*/ 22 #undef vfork 20 23 21 24 /* Define for use with GMP ApReals*/ -
MP/MP/h/MP_TcpTransp.h
ra708e0 r7adb502 95 95 char *peerhost; 96 96 char *myhost; 97 char isparent;97 MP_LinkStatus_t status; 98 98 } MP_TCP_t; 99 99 -
MP/MP/h/MP_Types.h
ra708e0 r7adb502 36 36 37 37 /* For checking the status of a link*/ 38 enum link_status_option {MP_LinkReadyReading, MP_LinkReadyWriting, 39 MP_LinkIsParent}; 38 enum link_status_option {MP_UnknownStatus, MP_LinkReadyReading, 39 MP_LinkReadyWriting, 40 MP_LinkIsParent, MP_LinkIsChild}; 40 41 typedef enum link_status_option MP_LinkStatus_t; 41 42 -
MP/configure
ra708e0 r7adb502 18 18 ac_help="$ac_help 19 19 \ 20 --disable-gmp configure and buil twithout gmp library"20 --disable-gmp configure and build without gmp library" 21 21 ac_help="$ac_help 22 22 \ … … 27 27 ac_help="$ac_help 28 28 \ 29 --enable-mppvm ,enable building of mppvm routines"29 --enable-mppvm enable building of mppvm routines" 30 30 ac_help="$ac_help 31 31 \ 32 32 --with-default_apint=PACKAGE use PACKAGE as MP's default ApInt format 33 where PACKAGE can be none, gmp (default),34 pari, saclib"33 where PACKAGE can be: gmp (default), pari, 34 saclib, none" 35 35 ac_help="$ac_help 36 36 \ 37 37 --with-default_apreal=PACKAGE use PACKAGE as MP's default ApReal format 38 where PACKAGE can be none, gmp (default)"38 where PACKAGE can be: gmp (default), none" 39 39 ac_help="$ac_help 40 40 \ … … 674 674 675 675 676 677 echo $ac_n "checking for architecture identifier""... $ac_c" 1>&6 678 if eval "test \"`echo '$''{'ac_cv_arch'+set}'`\" = set"; then 679 echo $ac_n "(cached) $ac_c" 1>&6 680 else 681 ac_cv_arch=`./pvmgetarch` 682 fi 683 684 echo "$ac_t""$ac_cv_arch" 1>&6 685 686 if test "$libdir" = '${exec_prefix}/lib' && test "$exec_prefix" = "NONE"; then 687 libdir='${prefix}/lib/'$ac_cv_arch 688 fi 689 690 if test "$bindir" = '${exec_prefix}/bin' && test "$exec_prefix" = "NONE"; then 691 bindir='${prefix}/bin/'$ac_cv_arch 692 fi 693 676 694 # Extract the first word of "ranlib", so it can be a program name with args. 677 695 set dummy ranlib; ac_word=$2 … … 839 857 #endif 840 858 EOF 841 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8 42: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then859 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 842 860 ac_cv_prog_gcc=yes 843 861 else … … 891 909 # not just through cpp. 892 910 cat > conftest.$ac_ext <<EOF 893 #line 894"configure"911 #line 912 "configure" 894 912 #include "confdefs.h" 895 913 #include <assert.h> … … 897 915 EOF 898 916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 899 { (eval echo configure:9 00: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }917 { (eval echo configure:918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 900 918 ac_err=`grep -v '^ *+' conftest.out` 901 919 if test -z "$ac_err"; then … … 906 924 CPP="${CC-cc} -E -traditional-cpp" 907 925 cat > conftest.$ac_ext <<EOF 908 #line 9 09"configure"926 #line 927 "configure" 909 927 #include "confdefs.h" 910 928 #include <assert.h> … … 912 930 EOF 913 931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 914 { (eval echo configure:9 15: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }932 { (eval echo configure:933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 915 933 ac_err=`grep -v '^ *+' conftest.out` 916 934 if test -z "$ac_err"; then … … 934 952 echo $ac_n "checking for AIX""... $ac_c" 1>&6 935 953 cat > conftest.$ac_ext <<EOF 936 #line 9 37"configure"954 #line 955 "configure" 937 955 #include "confdefs.h" 938 956 #ifdef _AIX … … 978 996 LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}" 979 997 fi 998 elif test "$libdir" = '${prefix}/lib/'$ac_cv_arch ; then 999 if test "x$prefix" = xNONE; then 1000 LDFLAGS="-L${ac_default_prefix}/lib/$ac_cv_arch ${LDFLAGS}" 1001 else 1002 LDFLAGS="-L${prefix}/lib/$ac_cv_arch ${LDFLAGS}" 1003 fi 980 1004 else 981 1005 LDFLAGS="-L${libdir} ${LDFLAGS}" … … 992 1016 fi 993 1017 994 if test "$enable_mppvm" = yes && test "${PVM_ROOT+set}" = set; then 995 CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include" 996 LDFLAGS="${LDFLAGS} -L${PVM_ROOT}/lib" 1018 if test "${PVM_ROOT+set}" = set; then 1019 if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then 1020 CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include" 1021 if test ${PVM_ARCH+set} = set; then 1022 LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}" 1023 fi 1024 fi 997 1025 fi 998 1026 … … 1032 1060 else 1033 1061 cat > conftest.$ac_ext <<EOF 1034 #line 10 35"configure"1062 #line 1063 "configure" 1035 1063 #include "confdefs.h" 1036 1064 main(){return(0);} 1037 1065 EOF 1038 { (eval echo configure:10 39: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }1066 { (eval echo configure:1067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 1039 1067 if test -s conftest && (./conftest; exit) 2>/dev/null; then 1040 1068 ac_cv_c_cross=no … … 1054 1082 else 1055 1083 cat > conftest.$ac_ext <<EOF 1056 #line 10 57"configure"1084 #line 1085 "configure" 1057 1085 #include "confdefs.h" 1058 1086 #include <stdlib.h> … … 1062 1090 EOF 1063 1091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1064 { (eval echo configure:10 65: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1092 { (eval echo configure:1093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1065 1093 ac_err=`grep -v '^ *+' conftest.out` 1066 1094 if test -z "$ac_err"; then … … 1077 1105 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1078 1106 cat > conftest.$ac_ext <<EOF 1079 #line 1 080"configure"1107 #line 1108 "configure" 1080 1108 #include "confdefs.h" 1081 1109 #include <string.h> … … 1095 1123 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1096 1124 cat > conftest.$ac_ext <<EOF 1097 #line 1 098"configure"1125 #line 1126 "configure" 1098 1126 #include "confdefs.h" 1099 1127 #include <stdlib.h> … … 1116 1144 else 1117 1145 cat > conftest.$ac_ext <<EOF 1118 #line 11 19"configure"1146 #line 1147 "configure" 1119 1147 #include "confdefs.h" 1120 1148 #include <ctype.h> … … 1127 1155 1128 1156 EOF 1129 { (eval echo configure:11 30: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }1157 { (eval echo configure:1158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 1130 1158 if test -s conftest && (./conftest; exit) 2>/dev/null; then 1131 1159 : … … 1151 1179 else 1152 1180 cat > conftest.$ac_ext <<EOF 1153 #line 11 54"configure"1181 #line 1182 "configure" 1154 1182 #include "confdefs.h" 1155 1183 #include <sys/types.h> … … 1183 1211 else 1184 1212 cat > conftest.$ac_ext <<EOF 1185 #line 1 186"configure"1213 #line 1214 "configure" 1186 1214 #include "confdefs.h" 1187 1215 #include <vfork.h> 1188 1216 EOF 1189 1217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1190 { (eval echo configure:1 191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1218 { (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1191 1219 ac_err=`grep -v '^ *+' conftest.out` 1192 1220 if test -z "$ac_err"; then … … 1220 1248 else 1221 1249 cat > conftest.$ac_ext <<EOF 1222 #line 12 23"configure"1250 #line 1251 "configure" 1223 1251 #include "confdefs.h" 1224 1252 /* System header to define __stub macros and hopefully few prototypes, … … 1242 1270 ; return 0; } 1243 1271 EOF 1244 if { (eval echo configure:12 45: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1272 if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1245 1273 rm -rf conftest* 1246 1274 eval "ac_cv_func_vfork=yes" … … 1261 1289 else 1262 1290 cat > conftest.$ac_ext <<EOF 1263 #line 12 64"configure"1291 #line 1292 "configure" 1264 1292 #include "confdefs.h" 1265 1293 /* Thanks to Paul Eggert for this test. */ … … 1354 1382 } 1355 1383 EOF 1356 { (eval echo configure:13 57: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }1384 { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 1357 1385 if test -s conftest && (./conftest; exit) 2>/dev/null; then 1358 1386 ac_cv_func_vfork=yes … … 1415 1443 1416 1444 if test "$enable_MPT" != no && test -d MPT; then 1417 if test "$with_default_apint" = saclib; then1418 echo "configure: warning: Can not build MPT library with saclib ApInt" 1>&21419 elif test "$with_default_apint" = pari; then1420 echo "configure: warning: Can not build MPT library with pari ApInt" 1>&21421 else1422 1445 BUILD_SUBDIRS="${BUILD_SUBDIRS} MPT" 1423 fi1424 1446 fi 1425 1447 … … 1437 1459 BUILD_SUBDIRS="${BUILD_SUBDIRS} mp-pvm3" 1438 1460 ac_check_prog=yes 1439 fi 1461 with_pvm=yes 1462 fi 1463 1440 1464 1441 1465 … … 1450 1474 LIBS="-lm $LIBS" 1451 1475 cat > conftest.$ac_ext <<EOF 1452 #line 14 53"configure"1476 #line 1477 "configure" 1453 1477 #include "confdefs.h" 1454 1478 /* Override any gcc2 internal prototype to avoid an error. */ … … 1460 1484 ; return 0; } 1461 1485 EOF 1462 if { (eval echo configure:14 63: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1486 if { (eval echo configure:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1463 1487 rm -rf conftest* 1464 1488 eval "ac_cv_lib_$ac_lib_var=yes" … … 1492 1516 LIBS="-lbsd $LIBS" 1493 1517 cat > conftest.$ac_ext <<EOF 1494 #line 1 495"configure"1518 #line 1519 "configure" 1495 1519 #include "confdefs.h" 1496 1520 /* Override any gcc2 internal prototype to avoid an error. */ … … 1502 1526 ; return 0; } 1503 1527 EOF 1504 if { (eval echo configure:15 05: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1505 1529 rm -rf conftest* 1506 1530 eval "ac_cv_lib_$ac_lib_var=yes" … … 1534 1558 LIBS="-lgmp $LIBS" 1535 1559 cat > conftest.$ac_ext <<EOF 1536 #line 15 37"configure"1560 #line 1561 "configure" 1537 1561 #include "confdefs.h" 1538 1562 /* Override any gcc2 internal prototype to avoid an error. */ … … 1544 1568 ; return 0; } 1545 1569 EOF 1546 if { (eval echo configure:15 47: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1570 if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1547 1571 rm -rf conftest* 1548 1572 eval "ac_cv_lib_$ac_lib_var=yes" … … 1577 1601 fi 1578 1602 1579 for ac_func in select socket gethostname strtol1603 for ac_func in select socket gethostname gethostbyname strtol 1580 1604 do 1581 1605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 … … 1584 1608 else 1585 1609 cat > conftest.$ac_ext <<EOF 1586 #line 1 587"configure"1610 #line 1611 "configure" 1587 1611 #include "confdefs.h" 1588 1612 /* System header to define __stub macros and hopefully few prototypes, … … 1606 1630 ; return 0; } 1607 1631 EOF 1608 if { (eval echo configure:16 09: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1632 if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1609 1633 rm -rf conftest* 1610 1634 eval "ac_cv_func_$ac_func=yes" … … 1630 1654 if test "$ac_cv_func_select" != yes; then 1631 1655 echo "configure: warning: Did not find library containing function select" 1>&2 1632 echo "configure: warning: Linking programs with MP might fail" 1>&21633 fi1634 if test "$ac_cv_func_socket" != yes; then1635 echo "configure: warning: Did not find library containing socket" 1>&21636 1656 echo "configure: warning: Linking programs with MP might fail" 1>&2 1637 1657 fi … … 1640 1660 echo "configure: warning: Linking programs with MP might fail" 1>&2 1641 1661 fi 1662 1663 if test "$ac_cv_func_gethostbyname" != yes; then 1664 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6 1665 ac_lib_var=`echo nsl_gethostbyname | tr '.-/+' '___p'` 1666 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1667 echo $ac_n "(cached) $ac_c" 1>&6 1668 else 1669 ac_save_LIBS="$LIBS" 1670 LIBS="-lnsl $LIBS" 1671 cat > conftest.$ac_ext <<EOF 1672 #line 1673 "configure" 1673 #include "confdefs.h" 1674 /* Override any gcc2 internal prototype to avoid an error. */ 1675 char gethostbyname(); 1676 1677 int main() { return 0; } 1678 int t() { 1679 gethostbyname() 1680 ; return 0; } 1681 EOF 1682 if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1683 rm -rf conftest* 1684 eval "ac_cv_lib_$ac_lib_var=yes" 1685 else 1686 rm -rf conftest* 1687 eval "ac_cv_lib_$ac_lib_var=no" 1688 fi 1689 rm -f conftest* 1690 LIBS="$ac_save_LIBS" 1691 1692 fi 1693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1694 echo "$ac_t""yes" 1>&6 1695 ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1696 cat >> confdefs.h <<EOF 1697 #define $ac_tr_lib 1 1698 EOF 1699 1700 LIBS="-lnsl $LIBS" 1701 1702 else 1703 echo "$ac_t""no" 1>&6 1704 fi 1705 1706 if test "$ac_cv_lib_nsl_gethostbyname" != yes; then 1707 echo "configure: warning: Did not find library containing gethostname" 1>&2 1708 echo "configure: warning: Linking programs with MP might fail" 1>&2 1709 fi 1710 fi 1711 1712 if test "$ac_cv_func_socket" != yes; then 1713 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6 1714 ac_lib_var=`echo socket_socket | tr '.-/+' '___p'` 1715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1716 echo $ac_n "(cached) $ac_c" 1>&6 1717 else 1718 ac_save_LIBS="$LIBS" 1719 LIBS="-lsocket $LIBS" 1720 cat > conftest.$ac_ext <<EOF 1721 #line 1722 "configure" 1722 #include "confdefs.h" 1723 /* Override any gcc2 internal prototype to avoid an error. */ 1724 char socket(); 1725 1726 int main() { return 0; } 1727 int t() { 1728 socket() 1729 ; return 0; } 1730 EOF 1731 if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1732 rm -rf conftest* 1733 eval "ac_cv_lib_$ac_lib_var=yes" 1734 else 1735 rm -rf conftest* 1736 eval "ac_cv_lib_$ac_lib_var=no" 1737 fi 1738 rm -f conftest* 1739 LIBS="$ac_save_LIBS" 1740 1741 fi 1742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1743 echo "$ac_t""yes" 1>&6 1744 ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 1745 cat >> confdefs.h <<EOF 1746 #define $ac_tr_lib 1 1747 EOF 1748 1749 LIBS="-lsocket $LIBS" 1750 1751 else 1752 echo "$ac_t""no" 1>&6 1753 fi 1754 1755 if test "$ac_cv_lib_socket_socket" != yes; then 1756 echo "configure: warning: Did not find library containing socket" 1>&2 1757 echo "configure: warning: Linking programs with MP might fail" 1>&2 1758 fi 1759 fi 1642 1760 fi 1643 1761 … … 1648 1766 else 1649 1767 cat > conftest.$ac_ext <<EOF 1650 #line 1 651"configure"1768 #line 1769 "configure" 1651 1769 #include "confdefs.h" 1652 1770 #include <stdlib.h> … … 1656 1774 EOF 1657 1775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1658 { (eval echo configure:1 659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1776 { (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1659 1777 ac_err=`grep -v '^ *+' conftest.out` 1660 1778 if test -z "$ac_err"; then … … 1671 1789 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1672 1790 cat > conftest.$ac_ext <<EOF 1673 #line 1 674"configure"1791 #line 1792 "configure" 1674 1792 #include "confdefs.h" 1675 1793 #include <string.h> … … 1689 1807 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1690 1808 cat > conftest.$ac_ext <<EOF 1691 #line 1 692"configure"1809 #line 1810 "configure" 1692 1810 #include "confdefs.h" 1693 1811 #include <stdlib.h> … … 1710 1828 else 1711 1829 cat > conftest.$ac_ext <<EOF 1712 #line 1 713"configure"1830 #line 1831 "configure" 1713 1831 #include "confdefs.h" 1714 1832 #include <ctype.h> … … 1721 1839 1722 1840 EOF 1723 { (eval echo configure:1 724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }1841 { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 1724 1842 if test -s conftest && (./conftest; exit) 2>/dev/null; then 1725 1843 : … … 1746 1864 else 1747 1865 cat > conftest.$ac_ext <<EOF 1748 #line 1 749"configure"1866 #line 1867 "configure" 1749 1867 #include "confdefs.h" 1750 1868 #include <arpa/inet.h> 1751 1869 EOF 1752 1870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1753 { (eval echo configure:1 754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1871 { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1754 1872 ac_err=`grep -v '^ *+' conftest.out` 1755 1873 if test -z "$ac_err"; then … … 1777 1895 else 1778 1896 cat > conftest.$ac_ext <<EOF 1779 #line 1 780"configure"1897 #line 1898 "configure" 1780 1898 #include "confdefs.h" 1781 1899 #include <assert.h> 1782 1900 EOF 1783 1901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1784 { (eval echo configure:1 785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1902 { (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1785 1903 ac_err=`grep -v '^ *+' conftest.out` 1786 1904 if test -z "$ac_err"; then … … 1808 1926 else 1809 1927 cat > conftest.$ac_ext <<EOF 1810 #line 1 811"configure"1928 #line 1929 "configure" 1811 1929 #include "confdefs.h" 1812 1930 #include <ctype.h> 1813 1931 EOF 1814 1932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1815 { (eval echo configure:1 816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1933 { (eval echo configure:1934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1816 1934 ac_err=`grep -v '^ *+' conftest.out` 1817 1935 if test -z "$ac_err"; then … … 1839 1957 else 1840 1958 cat > conftest.$ac_ext <<EOF 1841 #line 1 842"configure"1959 #line 1960 "configure" 1842 1960 #include "confdefs.h" 1843 1961 #include <errno.h> 1844 1962 EOF 1845 1963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1846 { (eval echo configure:1 847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1964 { (eval echo configure:1965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1847 1965 ac_err=`grep -v '^ *+' conftest.out` 1848 1966 if test -z "$ac_err"; then … … 1870 1988 else 1871 1989 cat > conftest.$ac_ext <<EOF 1872 #line 1 873"configure"1990 #line 1991 "configure" 1873 1991 #include "confdefs.h" 1874 1992 #include <netdb.h> 1875 1993 EOF 1876 1994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1877 { (eval echo configure:1 878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1995 { (eval echo configure:1996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1878 1996 ac_err=`grep -v '^ *+' conftest.out` 1879 1997 if test -z "$ac_err"; then … … 1901 2019 else 1902 2020 cat > conftest.$ac_ext <<EOF 1903 #line 1904"configure"2021 #line 2022 "configure" 1904 2022 #include "confdefs.h" 1905 2023 #include <netinet/in.h> 1906 2024 EOF 1907 2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1908 { (eval echo configure: 1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1909 2027 ac_err=`grep -v '^ *+' conftest.out` 1910 2028 if test -z "$ac_err"; then … … 1932 2050 else 1933 2051 cat > conftest.$ac_ext <<EOF 1934 #line 1935"configure"2052 #line 2053 "configure" 1935 2053 #include "confdefs.h" 1936 2054 #include <netinet/tcp.h> 1937 2055 EOF 1938 2056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1939 { (eval echo configure: 1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2057 { (eval echo configure:2058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1940 2058 ac_err=`grep -v '^ *+' conftest.out` 1941 2059 if test -z "$ac_err"; then … … 1963 2081 else 1964 2082 cat > conftest.$ac_ext <<EOF 1965 #line 1966"configure"2083 #line 2084 "configure" 1966 2084 #include "confdefs.h" 1967 2085 #include <signal.h> 1968 2086 EOF 1969 2087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1970 { (eval echo configure: 1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2088 { (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1971 2089 ac_err=`grep -v '^ *+' conftest.out` 1972 2090 if test -z "$ac_err"; then … … 1994 2112 else 1995 2113 cat > conftest.$ac_ext <<EOF 1996 #line 1997"configure"2114 #line 2115 "configure" 1997 2115 #include "confdefs.h" 1998 2116 #include <stdarg.h> 1999 2117 EOF 2000 2118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2001 { (eval echo configure:2 002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2119 { (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2002 2120 ac_err=`grep -v '^ *+' conftest.out` 2003 2121 if test -z "$ac_err"; then … … 2025 2143 else 2026 2144 cat > conftest.$ac_ext <<EOF 2027 #line 2 028"configure"2145 #line 2146 "configure" 2028 2146 #include "confdefs.h" 2029 2147 #include <stdio.h> 2030 2148 EOF 2031 2149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2032 { (eval echo configure:2 033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2150 { (eval echo configure:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2033 2151 ac_err=`grep -v '^ *+' conftest.out` 2034 2152 if test -z "$ac_err"; then … … 2056 2174 else 2057 2175 cat > conftest.$ac_ext <<EOF 2058 #line 2 059"configure"2176 #line 2177 "configure" 2059 2177 #include "confdefs.h" 2060 2178 #include <stdlib.h> 2061 2179 EOF 2062 2180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2063 { (eval echo configure:2 064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2181 { (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2064 2182 ac_err=`grep -v '^ *+' conftest.out` 2065 2183 if test -z "$ac_err"; then … … 2087 2205 else 2088 2206 cat > conftest.$ac_ext <<EOF 2089 #line 2 090"configure"2207 #line 2208 "configure" 2090 2208 #include "confdefs.h" 2091 2209 #include <string.h> 2092 2210 EOF 2093 2211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2094 { (eval echo configure:2 095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2095 2213 ac_err=`grep -v '^ *+' conftest.out` 2096 2214 if test -z "$ac_err"; then … … 2118 2236 else 2119 2237 cat > conftest.$ac_ext <<EOF 2120 #line 2 121"configure"2238 #line 2239 "configure" 2121 2239 #include "confdefs.h" 2122 2240 #include <stddef.h> 2123 2241 EOF 2124 2242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2125 { (eval echo configure:2 126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2126 2244 ac_err=`grep -v '^ *+' conftest.out` 2127 2245 if test -z "$ac_err"; then … … 2149 2267 else 2150 2268 cat > conftest.$ac_ext <<EOF 2151 #line 2 152"configure"2269 #line 2270 "configure" 2152 2270 #include "confdefs.h" 2153 2271 #include <values.h> 2154 2272 EOF 2155 2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2156 { (eval echo configure:2 157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2157 2275 ac_err=`grep -v '^ *+' conftest.out` 2158 2276 if test -z "$ac_err"; then … … 2181 2299 else 2182 2300 cat > conftest.$ac_ext <<EOF 2183 #line 2 184"configure"2301 #line 2302 "configure" 2184 2302 #include "confdefs.h" 2185 2303 #include <fcntl.h> 2186 2304 EOF 2187 2305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2188 { (eval echo configure:2 189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2306 { (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2189 2307 ac_err=`grep -v '^ *+' conftest.out` 2190 2308 if test -z "$ac_err"; then … … 2212 2330 else 2213 2331 cat > conftest.$ac_ext <<EOF 2214 #line 2 215"configure"2332 #line 2333 "configure" 2215 2333 #include "confdefs.h" 2216 2334 #include <sys/ioctl.h> 2217 2335 EOF 2218 2336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2219 { (eval echo configure:2 220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2337 { (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2220 2338 ac_err=`grep -v '^ *+' conftest.out` 2221 2339 if test -z "$ac_err"; then … … 2243 2361 else 2244 2362 cat > conftest.$ac_ext <<EOF 2245 #line 2 246"configure"2363 #line 2364 "configure" 2246 2364 #include "confdefs.h" 2247 2365 #include <sys/param.h> 2248 2366 EOF 2249 2367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2250 { (eval echo configure:2 251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2368 { (eval echo configure:2369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2251 2369 ac_err=`grep -v '^ *+' conftest.out` 2252 2370 if test -z "$ac_err"; then … … 2274 2392 else 2275 2393 cat > conftest.$ac_ext <<EOF 2276 #line 2 277"configure"2394 #line 2395 "configure" 2277 2395 #include "confdefs.h" 2278 2396 #include <sys/socket.h> 2279 2397 EOF 2280 2398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2281 { (eval echo configure:2 282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2399 { (eval echo configure:2400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2282 2400 ac_err=`grep -v '^ *+' conftest.out` 2283 2401 if test -z "$ac_err"; then … … 2305 2423 else 2306 2424 cat > conftest.$ac_ext <<EOF 2307 #line 2 308"configure"2425 #line 2426 "configure" 2308 2426 #include "confdefs.h" 2309 2427 #include <sys/stat.h> 2310 2428 EOF 2311 2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2312 { (eval echo configure:2 313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2313 2431 ac_err=`grep -v '^ *+' conftest.out` 2314 2432 if test -z "$ac_err"; then … … 2336 2454 else 2337 2455 cat > conftest.$ac_ext <<EOF 2338 #line 2 339"configure"2456 #line 2457 "configure" 2339 2457 #include "confdefs.h" 2340 2458 #include <sys/time.h> 2341 2459 EOF 2342 2460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2343 { (eval echo configure:2 344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2461 { (eval echo configure:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2344 2462 ac_err=`grep -v '^ *+' conftest.out` 2345 2463 if test -z "$ac_err"; then … … 2367 2485 else 2368 2486 cat > conftest.$ac_ext <<EOF 2369 #line 2 370"configure"2487 #line 2488 "configure" 2370 2488 #include "confdefs.h" 2371 2489 #include <sys/types.h> 2372 2490 EOF 2373 2491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2374 { (eval echo configure:2 375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2492 { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2375 2493 ac_err=`grep -v '^ *+' conftest.out` 2376 2494 if test -z "$ac_err"; then … … 2398 2516 else 2399 2517 cat > conftest.$ac_ext <<EOF 2400 #line 2 401"configure"2518 #line 2519 "configure" 2401 2519 #include "confdefs.h" 2402 2520 #include <sys/uio.h> 2403 2521 EOF 2404 2522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2405 { (eval echo configure:2 406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2523 { (eval echo configure:2524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2406 2524 ac_err=`grep -v '^ *+' conftest.out` 2407 2525 if test -z "$ac_err"; then … … 2429 2547 else 2430 2548 cat > conftest.$ac_ext <<EOF 2431 #line 2 432"configure"2549 #line 2550 "configure" 2432 2550 #include "confdefs.h" 2433 2551 #include <sys/un.h> 2434 2552 EOF 2435 2553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2436 { (eval echo configure:2 437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2554 { (eval echo configure:2555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2437 2555 ac_err=`grep -v '^ *+' conftest.out` 2438 2556 if test -z "$ac_err"; then … … 2460 2578 else 2461 2579 cat > conftest.$ac_ext <<EOF 2462 #line 2 463"configure"2580 #line 2581 "configure" 2463 2581 #include "confdefs.h" 2464 2582 #include <unistd.h> 2465 2583 EOF 2466 2584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2467 { (eval echo configure:2 468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2585 { (eval echo configure:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2468 2586 ac_err=`grep -v '^ *+' conftest.out` 2469 2587 if test -z "$ac_err"; then … … 2491 2609 else 2492 2610 cat > conftest.$ac_ext <<EOF 2493 #line 2 494"configure"2611 #line 2612 "configure" 2494 2612 #include "confdefs.h" 2495 2613 #include <math.h> 2496 2614 EOF 2497 2615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2498 { (eval echo configure:2 499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2616 { (eval echo configure:2617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2499 2617 ac_err=`grep -v '^ *+' conftest.out` 2500 2618 if test -z "$ac_err"; then … … 2526 2644 else 2527 2645 cat > conftest.$ac_ext <<EOF 2528 #line 2 529"configure"2646 #line 2647 "configure" 2529 2647 #include "confdefs.h" 2530 2648 #include <$ac_hdr> 2531 2649 EOF 2532 2650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2533 { (eval echo configure:2 534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2651 { (eval echo configure:2652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2534 2652 ac_err=`grep -v '^ *+' conftest.out` 2535 2653 if test -z "$ac_err"; then … … 2558 2676 if test "$ac_cv_header_gmp_h" = yes; then 2559 2677 cat > conftest.$ac_ext <<EOF 2560 #line 2 561"configure"2678 #line 2679 "configure" 2561 2679 #include "confdefs.h" 2562 2680 #include <gmp.h> … … 2571 2689 if test ! "$MPZ_PTR" = mpz_ptr; then 2572 2690 cat > conftest.$ac_ext <<EOF 2573 #line 2 574"configure"2691 #line 2692 "configure" 2574 2692 #include "confdefs.h" 2575 2693 #include <gmp.h> … … 2600 2718 fi 2601 2719 cat > conftest.$ac_ext <<EOF 2602 #line 2 603"configure"2720 #line 2721 "configure" 2603 2721 #include "confdefs.h" 2604 2722 #include <gmp.h> … … 2756 2874 fi 2757 2875 2758 2759 2876 if test "$with_default_apreal" = none; then 2760 2877 cat >> confdefs.h <<\EOF … … 2827 2944 EOF 2828 2945 2946 cat >> confdefs.h <<\EOF 2947 #define LONG_IS_32BIT 1 2948 EOF 2949 2950 echo $ac_n "checking for ulong""... $ac_c" 1>&6 2951 if eval "test \"`echo '$''{'ac_cv_type_ulong'+set}'`\" = set"; then 2952 echo $ac_n "(cached) $ac_c" 1>&6 2953 else 2954 cat > conftest.$ac_ext <<EOF 2955 #line 2956 "configure" 2956 #include "confdefs.h" 2957 #include <sys/types.h> 2958 #if STDC_HEADERS 2959 #include <stdlib.h> 2960 #endif 2961 EOF 2962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2963 egrep "ulong" >/dev/null 2>&1; then 2964 rm -rf conftest* 2965 ac_cv_type_ulong=yes 2966 else 2967 rm -rf conftest* 2968 ac_cv_type_ulong=no 2969 fi 2970 rm -f conftest* 2971 2972 fi 2973 echo "$ac_t""$ac_cv_type_ulong" 1>&6 2974 if test $ac_cv_type_ulong = no; then 2975 cat >> confdefs.h <<\EOF 2976 #define ulong no 2977 EOF 2978 2979 fi 2980 2981 if test "$ac_cv_type_ulong" = no; then 2982 cat >> confdefs.h <<\EOF 2983 #define ULONG_NOT_DEFINED 1 2984 EOF 2985 2986 fi 2829 2987 fi 2830 2988 fi 2989 2990 2831 2991 2832 2992 if test "$with_tb" = yes; then … … 2837 2997 else 2838 2998 cat > conftest.$ac_ext <<EOF 2839 #line 2840 "configure"2999 #line 3000 "configure" 2840 3000 #include "confdefs.h" 2841 3001 #include <TB.h> 2842 3002 EOF 2843 3003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2844 { (eval echo configure: 2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3004 { (eval echo configure:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2845 3005 ac_err=`grep -v '^ *+' conftest.out` 2846 3006 if test -z "$ac_err"; then … … 2872 3032 2873 3033 if test "$with_pvm" = yes; then 3034 ac_safe=`echo "pvm3.h" | tr './\055' '___'` 3035 echo $ac_n "checking for pvm3.h""... $ac_c" 1>&6 3036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3037 echo $ac_n "(cached) $ac_c" 1>&6 3038 else 3039 cat > conftest.$ac_ext <<EOF 3040 #line 3041 "configure" 3041 #include "confdefs.h" 3042 #include <pvm3.h> 3043 EOF 3044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3045 { (eval echo configure:3046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3046 ac_err=`grep -v '^ *+' conftest.out` 3047 if test -z "$ac_err"; then 3048 rm -rf conftest* 3049 eval "ac_cv_header_$ac_safe=yes" 3050 else 3051 echo "$ac_err" >&5 3052 rm -rf conftest* 3053 eval "ac_cv_header_$ac_safe=no" 3054 fi 3055 rm -f conftest* 3056 fi 3057 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3058 echo "$ac_t""yes" 1>&6 3059 : 3060 else 3061 echo "$ac_t""no" 1>&6 3062 fi 3063 2874 3064 if test "$ac_cv_header_pvm3_h" != yes; then 2875 3065 echo "configure: warning: Can not build with Pvm: Need pvm3.h" 1>&2 … … 2882 3072 fi 2883 3073 2884 2885 3074 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 2886 3075 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then … … 2890 3079 # See if sys/param.h defines the BYTE_ORDER macro. 2891 3080 cat > conftest.$ac_ext <<EOF 2892 #line 2893"configure"3081 #line 3082 "configure" 2893 3082 #include "confdefs.h" 2894 3083 #include <sys/types.h> … … 2902 3091 ; return 0; } 2903 3092 EOF 2904 if { (eval echo configure: 2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3093 if { (eval echo configure:3094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2905 3094 rm -rf conftest* 2906 3095 # It does; now see whether it defined to BIG_ENDIAN or not. 2907 3096 cat > conftest.$ac_ext <<EOF 2908 #line 2909"configure"3097 #line 3098 "configure" 2909 3098 #include "confdefs.h" 2910 3099 #include <sys/types.h> … … 2918 3107 ; return 0; } 2919 3108 EOF 2920 if { (eval echo configure: 2921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3109 if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2921 3110 rm -rf conftest* 2922 3111 ac_cv_c_bigendian=yes … … 2935 3124 else 2936 3125 cat > conftest.$ac_ext <<EOF 2937 #line 2938"configure"3126 #line 3127 "configure" 2938 3127 #include "confdefs.h" 2939 3128 main () { … … 2948 3137 } 2949 3138 EOF 2950 { (eval echo configure: 2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3139 { (eval echo configure:3140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2951 3140 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2952 3141 ac_cv_c_bigendian=no … … 2972 3161 else 2973 3162 cat > conftest.$ac_ext <<EOF 2974 #line 2975"configure"3163 #line 3164 "configure" 2975 3164 #include "confdefs.h" 2976 3165 … … 3022 3211 ; return 0; } 3023 3212 EOF 3024 if { (eval echo configure:3 025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3213 if { (eval echo configure:3214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3025 3214 rm -rf conftest* 3026 3215 ac_cv_c_const=yes … … 3046 3235 else 3047 3236 cat > conftest.$ac_ext <<EOF 3048 #line 3 049"configure"3237 #line 3238 "configure" 3049 3238 #include "confdefs.h" 3050 3239 #include <sys/types.h> … … 3077 3266 else 3078 3267 cat > conftest.$ac_ext <<EOF 3079 #line 3 080"configure"3268 #line 3269 "configure" 3080 3269 #include "confdefs.h" 3081 3270 #include <sys/types.h> … … 3087 3276 ; return 0; } 3088 3277 EOF 3089 if { (eval echo configure:3 090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3090 3279 rm -rf conftest* 3091 3280 ac_cv_header_time=yes … … 3115 3304 else 3116 3305 cat > conftest.$ac_ext <<EOF 3117 #line 3 118"configure"3306 #line 3307 "configure" 3118 3307 #include "confdefs.h" 3119 3308 #include <stdio.h> … … 3126 3315 } 3127 3316 EOF 3128 { (eval echo configure:3 129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3317 { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3129 3318 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3130 3319 ac_cv_sizeof_long=`cat conftestval` … … 3144 3333 { echo "configure: error: Need sizeof long to equal 4" 1>&2; exit 1; } 3145 3334 fi 3335 3146 3336 3147 3337 CLEAN="rm -f *~ a.out core *.o .log" … … 3159 3349 ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix" 3160 3350 fi 3161 3351 if test "$libdir" = '${prefix}/lib/'$ac_cv_arch; then 3352 if test "$prefix" = NONE; then 3353 ac_configure_args="$ac_configure_args --libdir=$ac_default_prefix/lib/$ac_cv_arch" 3354 else 3355 ac_configure_args="${prefix}/lib/$ac_cv_arch" 3356 fi 3357 fi 3358 if test "$bindir" = '${prefix}/bin/'$ac_cv_arch; then 3359 if test "$prefix" = NONE; then 3360 ac_configure_args="$ac_configure_args --bindir=$ac_default_prefix/bin/$ac_cv_arch" 3361 else 3362 ac_configure_args="${prefix}/bin/$ac_cv_arch" 3363 fi 3364 fi 3365 3366 3162 3367 subdirs="$CONFIG_SUBDIRS" 3163 3368 -
MP/configure.in
ra708e0 r7adb502 1 1 dnl 2 dnl Written by Olaf Bachmann (obachman@mathematik.uni-kl.de) 2 dnl Written by Olaf Bachmann (obachman@mathematik.uni-kl.de) 3 3 dnl 4 4 dnl configure.in for MP … … 15 15 16 16 AC_PREFIX_DEFAULT(`pwd`) 17 18 dnl The "philosophy" is this: 19 dnl 1) by default the libraries are stored in ${prefix}/lib/${ARCH} 20 dnl 2) the user can override this by setting either --exec-prefix 21 dnl or --libdir 22 dnl 3) If --libdir is given, then libraries are put exactly there 23 dnl 4) If --libdir is not given, and --exec-dir is given, then 24 dnl libraries are put into $exec_prefix/lib (as is standard) 25 dnl 5) The same thing applies to bindir 26 27 AC_MSG_CHECKING(for architecture identifier) 28 AC_CACHE_VAL(ac_cv_arch,ac_cv_arch=`./pvmgetarch`) 29 AC_MSG_RESULT($ac_cv_arch) 30 31 if test "$libdir" = '${exec_prefix}/lib' && test "$exec_prefix" = "NONE"; then 32 libdir='${prefix}/lib/'$ac_cv_arch 33 fi 34 35 if test "$bindir" = '${exec_prefix}/bin' && test "$exec_prefix" = "NONE"; then 36 bindir='${prefix}/bin/'$ac_cv_arch 37 fi 17 38 18 39 dnl Check for programs … … 67 88 LDFLAGS="-L${exec_prefix}/lib ${LDFLAGS}" 68 89 fi 90 elif test "$libdir" = '${prefix}/lib/'$ac_cv_arch ; then 91 if test "x$prefix" = xNONE; then 92 LDFLAGS="-L${ac_default_prefix}/lib/$ac_cv_arch ${LDFLAGS}" 93 else 94 LDFLAGS="-L${prefix}/lib/$ac_cv_arch ${LDFLAGS}" 95 fi 69 96 else 70 97 LDFLAGS="-L${libdir} ${LDFLAGS}" … … 81 108 fi 82 109 83 dnl Check for env variable $PVM_ROOT and, it it exists, add $PVM_ROOT/include 84 dnl and PVM_ROOT/lib to flags 85 if test "$enable_mppvm" = yes && test "${PVM_ROOT+set}" = set; then 86 CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include" 87 LDFLAGS="${LDFLAGS} -L${PVM_ROOT}/lib" 110 dnl add to CPPFLAGS and LDFLAGS if PVM_ROOT and PVM_ARCH are set 111 if test "${PVM_ROOT+set}" = set; then 112 if test "$enable_mppvm" = yes || test "$with_pvm" = yes; then 113 CPPFLAGS="${CPPFLAGS} -I${PVM_ROOT}/include" 114 if test ${PVM_ARCH+set} = set; then 115 LDFLAGS="${LDFLAGS} -L{PVM_ROOT}/lib/${PVM_ARCH}" 116 fi 117 fi 88 118 fi 89 119 … … 98 128 99 129 AC_ARG_ENABLE(gmp, \ 100 [ --disable-gmp configure and buil twithout gmp library])130 [ --disable-gmp configure and build without gmp library]) 101 131 102 132 AC_ARG_ENABLE(tests, \ … … 107 137 108 138 AC_ARG_ENABLE(mppvm, \ 109 [ --enable-mppvm ,enable building of mppvm routines])139 [ --enable-mppvm enable building of mppvm routines]) 110 140 111 141 if test "$enable_gmp" != no && test -d gmp; then … … 132 162 BUILD_SUBDIRS="${BUILD_SUBDIRS} mp-pvm3" 133 163 ac_check_prog=yes 134 fi 164 with_pvm=yes 165 fi 166 135 167 AC_SUBST(BUILD_SUBDIRS) 136 168 AC_SUBST(CONFIG_SUBDIRS) … … 149 181 fi 150 182 151 AC_CHECK_FUNCS(select socket gethostname strtol)183 AC_CHECK_FUNCS(select socket gethostname gethostbyname strtol) 152 184 if test "$ac_cv_func_select" != yes; then 153 185 AC_MSG_WARN(Did not find library containing function select) 154 186 AC_MSG_WARN(Linking programs with MP might fail) 155 187 fi 156 if test "$ac_cv_func_socket" != yes; then157 AC_MSG_WARN(Did not find library containing socket)158 AC_MSG_WARN(Linking programs with MP might fail)159 fi160 188 if test "$ac_cv_func_gethostname" != yes; then 161 189 AC_MSG_WARN(Did not find library containing gethostname) 162 190 AC_MSG_WARN(Linking programs with MP might fail) 191 fi 192 193 if test "$ac_cv_func_gethostbyname" != yes; then 194 AC_CHECK_LIB(nsl, gethostbyname) 195 if test "$ac_cv_lib_nsl_gethostbyname" != yes; then 196 AC_MSG_WARN(Did not find library containing gethostname) 197 AC_MSG_WARN(Linking programs with MP might fail) 198 fi 199 fi 200 201 if test "$ac_cv_func_socket" != yes; then 202 AC_CHECK_LIB(socket, socket) 203 if test "$ac_cv_lib_socket_socket" != yes; then 204 AC_MSG_WARN(Did not find library containing socket) 205 AC_MSG_WARN(Linking programs with MP might fail) 206 fi 163 207 fi 164 208 fi … … 215 259 AC_ARG_WITH(apint, \ 216 260 [ --with-default_apint=PACKAGE use PACKAGE as MP's default ApInt format 217 where PACKAGE can be none, gmp (default),218 pari, saclib])261 where PACKAGE can be: gmp (default), pari, 262 saclib, none]) 219 263 AC_ARG_WITH(apreal, \ 220 264 [ --with-default_apreal=PACKAGE use PACKAGE as MP's default ApReal format 221 where PACKAGE can be none, gmp (default)])265 where PACKAGE can be: gmp (default), none]) 222 266 AC_ARG_WITH(gmp, \ 223 267 [ --without-gmp build without gmp ApNumber routines]) … … 282 326 fi 283 327 fi 284 285 328 286 329 if test "$with_default_apreal" = none; then … … 350 393 351 394 if test "$with_pvm" = yes; then 395 AC_CHECK_HEADER(pvm3.h) 352 396 if test "$ac_cv_header_pvm3_h" != yes; then 353 397 AC_MSG_WARN(Can not build with Pvm: Need pvm3.h) … … 357 401 fi 358 402 359 360 403 dnl Checks for typedefs, structures, and compiler characteristics. 361 404 AC_C_BIGENDIAN … … 389 432 ac_configure_args="$ac_configure_args --prefix=$ac_default_prefix" 390 433 fi 391 434 if test "$libdir" = '${prefix}/lib/'$ac_cv_arch; then 435 if test "$prefix" = NONE; then 436 ac_configure_args="$ac_configure_args --libdir=$ac_default_prefix/lib/$ac_cv_arch" 437 else 438 ac_configure_args="${prefix}/lib/$ac_cv_arch" 439 fi 440 fi 441 if test "$bindir" = '${prefix}/bin/'$ac_cv_arch; then 442 if test "$prefix" = NONE; then 443 ac_configure_args="$ac_configure_args --bindir=$ac_default_prefix/bin/$ac_cv_arch" 444 else 445 ac_configure_args="${prefix}/bin/$ac_cv_arch" 446 fi 447 fi 448 449 392 450 AC_CONFIG_SUBDIRS($CONFIG_SUBDIRS) 393 451
Note: See TracChangeset
for help on using the changeset viewer.