Changeset f79b94c in git
- Timestamp:
- Sep 4, 2000, 3:31:31 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ec7aac79223c2edb9fd5358c0f2f3e8ddcd120e6
- Parents:
- 05e7d13dce909dfa04b941da1c487b7c2a3a6044
- Location:
- factory
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/ChangeLog
r05e7d13 rf79b94c 1 2000-09-02 Olaf Bachmann <obachman@mathematik.uni-kl.de> 2 3 * configure.in, etc: support for omalloc 4 1 5 2000-08-04 Olaf Bachmann <obachman@mathematik.uni-kl.de> 2 6 -
factory/canonicalform.cc
r05e7d13 rf79b94c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: canonicalform.cc,v 1.3 0 2000-05-29 15:05:19 SingularExp $ */2 /* $Id: canonicalform.cc,v 1.31 2000-09-04 13:31:25 obachman Exp $ */ 3 3 4 4 #include <config.h> … … 27 27 int initializeCharacteristic(); 28 28 #ifdef SINGULAR 29 int mmInit(void);29 extern int mmInit(void); 30 30 #endif 31 31 -
factory/config.h.in
r05e7d13 rf79b94c 1 1 /* emacs edit mode for this file is -*- C -*- */ 2 /* $Id: config.h.in,v 1. 9 1998-07-01 09:26:12 pohlExp $ */2 /* $Id: config.h.in,v 1.10 2000-09-04 13:31:26 obachman Exp $ */ 3 3 4 4 #ifndef INCL_CONFIG_H … … 53 53 #undef SINGULAR 54 54 55 /* define if build with OMALLOC */ 56 #undef HAVE_OMALLOC 57 55 58 /* define if linked with factory memory manager */ 56 59 #undef USE_MEMUTIL -
factory/configure
r05e7d13 rf79b94c 16 16 --with-memman(=<memman>) specify Factory memory manager. 17 17 <memman> is either \`old' (default), \`new', or \`no'." 18 ac_help="$ac_help 19 --with-omalloc build for use with omalloc" 18 20 ac_help="$ac_help 19 21 --with-gmp(=<gmp_inc_path>(,<gmp_lib_path>)) … … 594 596 # font-lock-trick: ' 595 597 598 # Check whether --with-omalloc or --without-omalloc was given. 599 if test "${with_omalloc+set}" = set; then 600 withval="$with_omalloc" 601 : 602 fi 603 596 604 # Check whether --with-gmp or --without-gmp was given. 597 605 if test "${with_gmp+set}" = set; then … … 706 714 set dummy gcc; ac_word=$2 707 715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 708 echo "configure:7 09: checking for $ac_word" >&5716 echo "configure:717: checking for $ac_word" >&5 709 717 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 710 718 echo $ac_n "(cached) $ac_c" 1>&6 … … 736 744 set dummy cc; ac_word=$2 737 745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 738 echo "configure:7 39: checking for $ac_word" >&5746 echo "configure:747: checking for $ac_word" >&5 739 747 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 740 748 echo $ac_n "(cached) $ac_c" 1>&6 … … 787 795 set dummy cl; ac_word=$2 788 796 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 789 echo "configure:79 0: checking for $ac_word" >&5797 echo "configure:798: checking for $ac_word" >&5 790 798 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 791 799 echo $ac_n "(cached) $ac_c" 1>&6 … … 819 827 820 828 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 821 echo "configure:8 22: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5829 echo "configure:830: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 822 830 823 831 ac_ext=c … … 830 838 cat > conftest.$ac_ext << EOF 831 839 832 #line 8 33"configure"840 #line 841 "configure" 833 841 #include "confdefs.h" 834 842 835 843 main(){return(0);} 836 844 EOF 837 if { (eval echo configure:8 38: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then845 if { (eval echo configure:846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 838 846 ac_cv_prog_cc_works=yes 839 847 # If we can't run a trivial program, we are probably using a cross compiler. … … 861 869 fi 862 870 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 863 echo "configure:8 64: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5871 echo "configure:872: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 864 872 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 865 873 cross_compiling=$ac_cv_prog_cc_cross 866 874 867 875 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 868 echo "configure:8 69: checking whether we are using GNU C" >&5876 echo "configure:877: checking whether we are using GNU C" >&5 869 877 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 870 878 echo $ac_n "(cached) $ac_c" 1>&6 … … 875 883 #endif 876 884 EOF 877 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8 78: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then885 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 878 886 ac_cv_prog_gcc=yes 879 887 else … … 894 902 CFLAGS= 895 903 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 896 echo "configure: 897: checking whether ${CC-cc} accepts -g" >&5904 echo "configure:905: checking whether ${CC-cc} accepts -g" >&5 897 905 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 898 906 echo $ac_n "(cached) $ac_c" 1>&6 … … 931 939 set dummy $ac_prog; ac_word=$2 932 940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 933 echo "configure:9 34: checking for $ac_word" >&5941 echo "configure:942: checking for $ac_word" >&5 934 942 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 935 943 echo $ac_n "(cached) $ac_c" 1>&6 … … 963 971 964 972 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 965 echo "configure:9 66: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5973 echo "configure:974: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 966 974 967 975 ac_ext=C … … 974 982 cat > conftest.$ac_ext << EOF 975 983 976 #line 9 77"configure"984 #line 985 "configure" 977 985 #include "confdefs.h" 978 986 979 987 int main(){return(0);} 980 988 EOF 981 if { (eval echo configure:9 82: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then989 if { (eval echo configure:990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 982 990 ac_cv_prog_cxx_works=yes 983 991 # If we can't run a trivial program, we are probably using a cross compiler. … … 1005 1013 fi 1006 1014 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1007 echo "configure:10 08: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&51015 echo "configure:1016: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1008 1016 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1009 1017 cross_compiling=$ac_cv_prog_cxx_cross 1010 1018 1011 1019 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1012 echo "configure:10 13: checking whether we are using GNU C++" >&51020 echo "configure:1021: checking whether we are using GNU C++" >&5 1013 1021 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1014 1022 echo $ac_n "(cached) $ac_c" 1>&6 … … 1019 1027 #endif 1020 1028 EOF 1021 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:10 22: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1029 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1022 1030 ac_cv_prog_gxx=yes 1023 1031 else … … 1038 1046 CXXFLAGS= 1039 1047 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1040 echo "configure:104 1: checking whether ${CXX-g++} accepts -g" >&51048 echo "configure:1049: checking whether ${CXX-g++} accepts -g" >&5 1041 1049 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1042 1050 echo $ac_n "(cached) $ac_c" 1>&6 … … 1086 1094 # 1087 1095 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1088 echo "configure:10 89: checking how to run the C preprocessor" >&51096 echo "configure:1097: checking how to run the C preprocessor" >&5 1089 1097 # On Suns, sometimes $CPP names a directory. 1090 1098 if test -n "$CPP" && test -d "$CPP"; then … … 1101 1109 # not just through cpp. 1102 1110 cat > conftest.$ac_ext <<EOF 1103 #line 11 04"configure"1111 #line 1112 "configure" 1104 1112 #include "confdefs.h" 1105 1113 #include <assert.h> … … 1107 1115 EOF 1108 1116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1109 { (eval echo configure:111 0: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1117 { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1110 1118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1111 1119 if test -z "$ac_err"; then … … 1118 1126 CPP="${CC-cc} -E -traditional-cpp" 1119 1127 cat > conftest.$ac_ext <<EOF 1120 #line 112 1"configure"1128 #line 1129 "configure" 1121 1129 #include "confdefs.h" 1122 1130 #include <assert.h> … … 1124 1132 EOF 1125 1133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1126 { (eval echo configure:11 27: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1134 { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1127 1135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1128 1136 if test -z "$ac_err"; then … … 1135 1143 CPP="${CC-cc} -nologo -E" 1136 1144 cat > conftest.$ac_ext <<EOF 1137 #line 11 38"configure"1145 #line 1146 "configure" 1138 1146 #include "confdefs.h" 1139 1147 #include <assert.h> … … 1141 1149 EOF 1142 1150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1143 { (eval echo configure:11 44: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1151 { (eval echo configure:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1144 1152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1145 1153 if test -z "$ac_err"; then … … 1166 1174 1167 1175 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 1168 echo "configure:11 69: checking how to run the C++ preprocessor" >&51176 echo "configure:1177: checking how to run the C++ preprocessor" >&5 1169 1177 if test -z "$CXXCPP"; then 1170 1178 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 1179 1187 CXXCPP="${CXX-g++} -E" 1180 1188 cat > conftest.$ac_ext <<EOF 1181 #line 11 82"configure"1189 #line 1190 "configure" 1182 1190 #include "confdefs.h" 1183 1191 #include <stdlib.h> 1184 1192 EOF 1185 1193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1186 { (eval echo configure:11 87: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1194 { (eval echo configure:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1187 1195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1188 1196 if test -z "$ac_err"; then … … 1209 1217 1210 1218 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1211 echo "configure:12 12: checking whether ln -s works" >&51219 echo "configure:1220: checking whether ln -s works" >&5 1212 1220 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1213 1221 echo $ac_n "(cached) $ac_c" 1>&6 … … 1241 1249 # ./install, which can be erroneously created by make from ./install.sh. 1242 1250 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1243 echo "configure:12 44: checking for a BSD compatible install" >&51251 echo "configure:1252: checking for a BSD compatible install" >&5 1244 1252 if test -z "$INSTALL"; then 1245 1253 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1296 1304 set dummy ranlib; ac_word=$2 1297 1305 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1298 echo "configure:1 299: checking for $ac_word" >&51306 echo "configure:1307: checking for $ac_word" >&5 1299 1307 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1300 1308 echo $ac_n "(cached) $ac_c" 1>&6 … … 1324 1332 1325 1333 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1326 echo "configure:13 27: checking whether ${MAKE-make} sets \${MAKE}" >&51334 echo "configure:1335: checking whether ${MAKE-make} sets \${MAKE}" >&5 1327 1335 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1328 1336 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 1353 1361 set dummy ar; ac_word=$2 1354 1362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1355 echo "configure:13 56: checking for $ac_word" >&51363 echo "configure:1364: checking for $ac_word" >&5 1356 1364 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1357 1365 echo $ac_n "(cached) $ac_c" 1>&6 … … 1383 1391 set dummy m4; ac_word=$2 1384 1392 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1385 echo "configure:13 86: checking for $ac_word" >&51393 echo "configure:1394: checking for $ac_word" >&5 1386 1394 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then 1387 1395 echo $ac_n "(cached) $ac_c" 1>&6 … … 1413 1421 set dummy bison; ac_word=$2 1414 1422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1415 echo "configure:14 16: checking for $ac_word" >&51423 echo "configure:1424: checking for $ac_word" >&5 1416 1424 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 1417 1425 echo $ac_n "(cached) $ac_c" 1>&6 … … 1452 1460 set dummy mkinstalldirs; ac_word=$2 1453 1461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1454 echo "configure:14 55: checking for $ac_word" >&51462 echo "configure:1463: checking for $ac_word" >&5 1455 1463 if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MKINSTALLDIRS'+set}'`\" = set"; then 1456 1464 echo $ac_n "(cached) $ac_c" 1>&6 … … 1489 1497 set dummy makeheader; ac_word=$2 1490 1498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1491 echo "configure:1 492: checking for $ac_word" >&51499 echo "configure:1500: checking for $ac_word" >&5 1492 1500 if eval "test \"`echo '$''{'ac_cv_path_FACTORY_MAKEHEADER'+set}'`\" = set"; then 1493 1501 echo $ac_n "(cached) $ac_c" 1>&6 … … 1528 1536 1529 1537 echo $ac_n "checking and generating explicit install paths""... $ac_c" 1>&6 1530 echo "configure:153 1: checking and generating explicit install paths" >&51538 echo "configure:1539: checking and generating explicit install paths" >&5 1531 1539 1532 1540 # generate Makefile … … 1568 1576 # 1569 1577 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1570 echo "configure:157 1: checking for atof in -lm" >&51578 echo "configure:1579: checking for atof in -lm" >&5 1571 1579 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1572 1580 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1576 1584 LIBS="-lm $LIBS" 1577 1585 cat > conftest.$ac_ext <<EOF 1578 #line 15 79"configure"1586 #line 1587 "configure" 1579 1587 #include "confdefs.h" 1580 1588 /* Override any gcc2 internal prototype to avoid an error. */ … … 1587 1595 ; return 0; } 1588 1596 EOF 1589 if { (eval echo configure:159 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1597 if { (eval echo configure:1598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1590 1598 rm -rf conftest* 1591 1599 eval "ac_cv_lib_$ac_lib_var=yes" … … 1618 1626 if test "x$gmp_in_installation" != xyes; then 1619 1627 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 1620 echo "configure:162 1: checking for main in -lgmp" >&51628 echo "configure:1629: checking for main in -lgmp" >&5 1621 1629 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 1622 1630 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1626 1634 LIBS="-lgmp $LIBS" 1627 1635 cat > conftest.$ac_ext <<EOF 1628 #line 16 29"configure"1636 #line 1637 "configure" 1629 1637 #include "confdefs.h" 1630 1638 … … 1633 1641 ; return 0; } 1634 1642 EOF 1635 if { (eval echo configure:16 36: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1636 1644 rm -rf conftest* 1637 1645 eval "ac_cv_lib_$ac_lib_var=yes" … … 1664 1672 LDFLAGS="-L$explicit_libdir $LDFLAGS" 1665 1673 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 1666 echo "configure:16 67: checking for main in -lgmp" >&51674 echo "configure:1675: checking for main in -lgmp" >&5 1667 1675 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 1668 1676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1672 1680 LIBS="-lgmp $LIBS" 1673 1681 cat > conftest.$ac_ext <<EOF 1674 #line 16 75"configure"1682 #line 1683 "configure" 1675 1683 #include "confdefs.h" 1676 1684 … … 1679 1687 ; return 0; } 1680 1688 EOF 1681 if { (eval echo configure:16 82: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1689 if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1682 1690 rm -rf conftest* 1683 1691 eval "ac_cv_lib_$ac_lib_var=yes" … … 1729 1737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1730 1738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1731 echo "configure:17 32: checking for $ac_hdr" >&51739 echo "configure:1740: checking for $ac_hdr" >&5 1732 1740 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1733 1741 echo $ac_n "(cached) $ac_c" 1>&6 1734 1742 else 1735 1743 cat > conftest.$ac_ext <<EOF 1736 #line 17 37"configure"1744 #line 1745 "configure" 1737 1745 #include "confdefs.h" 1738 1746 #include <$ac_hdr> 1739 1747 EOF 1740 1748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1741 { (eval echo configure:17 42: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1749 { (eval echo configure:1750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1742 1750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1743 1751 if test -z "$ac_err"; then … … 1770 1778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1771 1779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1772 echo "configure:17 73: checking for $ac_hdr" >&51780 echo "configure:1781: checking for $ac_hdr" >&5 1773 1781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1774 1782 echo $ac_n "(cached) $ac_c" 1>&6 1775 1783 else 1776 1784 cat > conftest.$ac_ext <<EOF 1777 #line 17 78"configure"1785 #line 1786 "configure" 1778 1786 #include "confdefs.h" 1779 1787 #include <$ac_hdr> 1780 1788 EOF 1781 1789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1782 { (eval echo configure:17 83: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1790 { (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1783 1791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1784 1792 if test -z "$ac_err"; then … … 1814 1822 fi 1815 1823 1816 for ac_hdr in stdio.h stdlib.h string.h time.h math.h 1824 for ac_hdr in stdio.h stdlib.h string.h time.h math.h omalloc.h 1817 1825 do 1818 1826 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1819 1827 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1820 echo "configure:182 1: checking for $ac_hdr" >&51828 echo "configure:1829: checking for $ac_hdr" >&5 1821 1829 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1822 1830 echo $ac_n "(cached) $ac_c" 1>&6 1823 1831 else 1824 1832 cat > conftest.$ac_ext <<EOF 1825 #line 18 26"configure"1833 #line 1834 "configure" 1826 1834 #include "confdefs.h" 1827 1835 #include <$ac_hdr> 1828 1836 EOF 1829 1837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1830 { (eval echo configure:183 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1838 { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1831 1839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1832 1840 if test -z "$ac_err"; then … … 1861 1869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1862 1870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1863 echo "configure:18 64: checking for $ac_hdr" >&51871 echo "configure:1872: checking for $ac_hdr" >&5 1864 1872 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1865 1873 echo $ac_n "(cached) $ac_c" 1>&6 1866 1874 else 1867 1875 cat > conftest.$ac_ext <<EOF 1868 #line 18 69"configure"1876 #line 1877 "configure" 1869 1877 #include "confdefs.h" 1870 1878 #include <$ac_hdr> 1871 1879 EOF 1872 1880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1873 { (eval echo configure:18 74: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1881 { (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1874 1882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1875 1883 if test -z "$ac_err"; then … … 1902 1910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1903 1911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1904 echo "configure:19 05: checking for $ac_hdr" >&51912 echo "configure:1913: checking for $ac_hdr" >&5 1905 1913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1906 1914 echo $ac_n "(cached) $ac_c" 1>&6 1907 1915 else 1908 1916 cat > conftest.$ac_ext <<EOF 1909 #line 191 0"configure"1917 #line 1918 "configure" 1910 1918 #include "confdefs.h" 1911 1919 #include <$ac_hdr> 1912 1920 EOF 1913 1921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1914 { (eval echo configure:19 15: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1922 { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1915 1923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1916 1924 if test -z "$ac_err"; then … … 1946 1954 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1947 1955 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1948 echo "configure:19 49: checking for $ac_hdr" >&51956 echo "configure:1957: checking for $ac_hdr" >&5 1949 1957 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1950 1958 echo $ac_n "(cached) $ac_c" 1>&6 1951 1959 else 1952 1960 cat > conftest.$ac_ext <<EOF 1953 #line 19 54"configure"1961 #line 1962 "configure" 1954 1962 #include "confdefs.h" 1955 1963 #include <$ac_hdr> 1956 1964 EOF 1957 1965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1958 { (eval echo configure:19 59: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1966 { (eval echo configure:1967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1959 1967 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1960 1968 if test -z "$ac_err"; then … … 1992 2000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1993 2001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1994 echo "configure: 1995: checking for $ac_hdr" >&52002 echo "configure:2003: checking for $ac_hdr" >&5 1995 2003 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1996 2004 echo $ac_n "(cached) $ac_c" 1>&6 1997 2005 else 1998 2006 cat > conftest.$ac_ext <<EOF 1999 #line 200 0"configure"2007 #line 2008 "configure" 2000 2008 #include "confdefs.h" 2001 2009 #include <$ac_hdr> 2002 2010 EOF 2003 2011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2004 { (eval echo configure:20 05: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2012 { (eval echo configure:2013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2005 2013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2006 2014 if test -z "$ac_err"; then … … 2061 2069 2062 2070 echo $ac_n "checking for working const""... $ac_c" 1>&6 2063 echo "configure:20 64: checking for working const" >&52071 echo "configure:2072: checking for working const" >&5 2064 2072 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2065 2073 echo $ac_n "(cached) $ac_c" 1>&6 2066 2074 else 2067 2075 cat > conftest.$ac_ext <<EOF 2068 #line 20 69"configure"2076 #line 2077 "configure" 2069 2077 #include "confdefs.h" 2070 2078 … … 2115 2123 ; return 0; } 2116 2124 EOF 2117 if { (eval echo configure:21 18: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2125 if { (eval echo configure:2126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2118 2126 rm -rf conftest* 2119 2127 ac_cv_c_const=yes … … 2136 2144 2137 2145 echo $ac_n "checking for inline""... $ac_c" 1>&6 2138 echo "configure:21 39: checking for inline" >&52146 echo "configure:2147: checking for inline" >&5 2139 2147 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2140 2148 echo $ac_n "(cached) $ac_c" 1>&6 … … 2143 2151 for ac_kw in inline __inline__ __inline; do 2144 2152 cat > conftest.$ac_ext <<EOF 2145 #line 21 46"configure"2153 #line 2154 "configure" 2146 2154 #include "confdefs.h" 2147 2155 … … 2150 2158 ; return 0; } 2151 2159 EOF 2152 if { (eval echo configure:21 53: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2160 if { (eval echo configure:2161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2153 2161 rm -rf conftest* 2154 2162 ac_cv_c_inline=$ac_kw; break … … 2178 2186 # arithmetic shift 2179 2187 echo $ac_n "checking whether your compiler does arithmetic shifts""... $ac_c" 1>&6 2180 echo "configure:218 1: checking whether your compiler does arithmetic shifts" >&52188 echo "configure:2189: checking whether your compiler does arithmetic shifts" >&5 2181 2189 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 2182 2190 echo $ac_n "(cached) $ac_c" 1>&6 … … 2186 2194 else 2187 2195 cat > conftest.$ac_ext <<EOF 2188 #line 21 89"configure"2196 #line 2197 "configure" 2189 2197 #include "confdefs.h" 2190 2198 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 2191 2199 EOF 2192 if { (eval echo configure:2 193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2200 if { (eval echo configure:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2193 2201 then 2194 2202 ac_cv_shift=yes … … 2292 2300 fi 2293 2301 2302 echo $ac_n "checking whether to use omalloc""... $ac_c" 1>&6 2303 echo "configure:2304: checking whether to use omalloc" >&5 2304 2305 if test "$with_omalloc" = yes; then 2306 if test "$ac_cv_header_omalloc_h" != yes; then 2307 if test "$enable_omalloc" = yes; then 2308 echo "configure: warning: did not find omalloc.h" 1>&2 2309 else 2310 with_omalloc=no 2311 fi 2312 fi 2313 else 2314 if test "$with_omalloc" != no; then 2315 if test "$enable_omalloc" = yes; then 2316 if test "$ac_cv_header_omalloc_h" != yes; then 2317 echo "configure: warning: did not find omalloc.h" 1>&2 2318 fi 2319 with_omalloc=yes 2320 else 2321 with_omalloc=no 2322 fi 2323 fi 2324 fi 2325 if test "$with_omalloc" = yes; then 2326 cat >> confdefs.h <<\EOF 2327 #define HAVE_OMALLOC 1 2328 EOF 2329 2330 with_memman=no 2331 fi 2332 echo "$ac_t""$with_omalloc" 1>&6 2333 2294 2334 # memory manager 2295 2335 if test "x$with_memman" != xno; then -
factory/configure.in
r05e7d13 rf79b94c 1 1 dnl # emacs edit mode for this file is -*- sh -*- 2 dnl # $Id: configure.in,v 1.2 5 2000-04-27 10:07:30obachman Exp $2 dnl # $Id: configure.in,v 1.26 2000-09-04 13:31:28 obachman Exp $ 3 3 4 4 dnl # … … 13 13 # - initialisation. 14 14 # 15 AC_REVISION($Id: configure.in,v 1.2 5 2000-04-27 10:07:30obachman Exp $)15 AC_REVISION($Id: configure.in,v 1.26 2000-09-04 13:31:28 obachman Exp $) 16 16 AC_INIT(canonicalform.cc) 17 17 AC_CONFIG_HEADER(config.h) … … 44 44 # font-lock-trick: ' 45 45 46 AC_ARG_WITH( 47 omalloc, 48 [ --with-omalloc build for use with omalloc]) 46 49 AC_ARG_WITH( 47 50 gmp, … … 250 253 fi 251 254 252 AC_CHECK_HEADERS(stdio.h stdlib.h string.h time.h math.h , ,255 AC_CHECK_HEADERS(stdio.h stdlib.h string.h time.h math.h omalloc.h, , 253 256 [ AC_MSG_ERROR(C header files not found) ]) 254 257 … … 385 388 fi 386 389 390 AC_MSG_CHECKING(whether to use omalloc) 391 392 if test "$with_omalloc" = yes; then 393 if test "$ac_cv_header_omalloc_h" != yes; then 394 if test "$enable_omalloc" = yes; then 395 AC_MSG_WARN(did not find omalloc.h, install before compiling) 396 else 397 with_omalloc=no 398 fi 399 fi 400 else 401 if test "$with_omalloc" != no; then 402 if test "$enable_omalloc" = yes; then 403 if test "$ac_cv_header_omalloc_h" != yes; then 404 AC_MSG_WARN(did not find omalloc.h, install before compiling) 405 fi 406 with_omalloc=yes 407 else 408 with_omalloc=no 409 fi 410 fi 411 fi 412 if test "$with_omalloc" = yes; then 413 AC_DEFINE(HAVE_OMALLOC) 414 with_memman=no 415 fi 416 AC_MSG_RESULT($with_omalloc) 417 387 418 # memory manager 388 419 if test "x$with_memman" != xno; then -
factory/int_int.cc
r05e7d13 rf79b94c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_int.cc,v 1.1 4 1998-06-26 16:16:33 schmidtExp $ */2 /* $Id: int_int.cc,v 1.15 2000-09-04 13:31:29 obachman Exp $ */ 3 3 4 4 #include <config.h> … … 11 11 #include "gmpext.h" 12 12 13 #ifdef HAVE_OMALLOC 14 const omBin InternalInteger::InternalInteger_bin = omGetSpecBin(sizeof(InternalInteger)); 15 #endif 16 13 17 InternalInteger::InternalInteger() 14 18 { -
factory/int_int.h
r05e7d13 rf79b94c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_int.h,v 1. 9 1998-06-26 16:16:40 schmidtExp $ */2 /* $Id: int_int.h,v 1.10 2000-09-04 13:31:30 obachman Exp $ */ 3 3 4 4 #ifndef INCL_INT_INT_H … … 17 17 #include "gmpext.h" 18 18 19 20 #ifdef HAVE_OMALLOC 21 #include <omalloc.h> 22 #endif 23 19 24 class InternalInteger : public InternalCF 20 25 { … … 30 35 31 36 static inline MP_INT & MPI ( const InternalCF * const c ); 32 37 #ifdef HAVE_OMALLOC 38 static const omBin InternalInteger_bin; 39 #endif 33 40 public: 41 #ifdef HAVE_OMALLOC 42 void* operator new(size_t size) 43 { 44 void* addr; 45 omTypeAllocBin(void*, addr, InternalInteger_bin); 46 return addr; 47 } 48 void operator delete(void* addr, size_t size) 49 { 50 omFreeBin(addr, InternalInteger_bin); 51 } 52 #endif 53 34 54 InternalInteger(); 35 55 InternalInteger( const InternalCF& ) -
factory/int_poly.cc
r05e7d13 rf79b94c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_poly.cc,v 1.1 2 1998-06-26 16:15:28 schmidtExp $ */2 /* $Id: int_poly.cc,v 1.13 2000-09-04 13:31:29 obachman Exp $ */ 3 3 4 4 #include <config.h> … … 23 23 #include "imm.h" 24 24 25 #ifdef HAVE_OMALLOC 26 const omBin term::term_bin = omGetSpecBin(sizeof(term)); 27 const omBin InternalPoly::InternalPoly_bin = omGetSpecBin(sizeof(InternalPoly)); 28 #endif 25 29 26 30 InternalPoly::InternalPoly( termList first, termList last, const Variable & v ) … … 1453 1457 return first; 1454 1458 } 1459 -
factory/int_poly.h
r05e7d13 rf79b94c 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: int_poly.h,v 1. 6 1998-06-26 16:15:08 schmidtExp $ */2 /* $Id: int_poly.h,v 1.7 2000-09-04 13:31:31 obachman Exp $ */ 3 3 4 4 #ifndef INCL_INT_POLY_H … … 16 16 #include "canonicalform.h" 17 17 18 #ifdef HAVE_OMALLOC 19 #include <omalloc.h> 20 #endif 18 21 19 22 class term { … … 22 25 CanonicalForm coeff; 23 26 int exp; 27 #ifdef HAVE_OMALLOC 28 static const omBin term_bin; 29 #endif 24 30 public: 25 31 term() : next(0), coeff(0), exp(0) {} … … 27 33 friend class InternalPoly; 28 34 friend class CFIterator; 35 #ifdef HAVE_OMALLOC 36 void* operator new(size_t size) 37 { 38 void* addr; 39 omTypeAllocBin(void*, addr, term_bin); 40 return addr; 41 } 42 void operator delete(void* addr, size_t size) 43 { 44 omFreeBin(addr, term_bin); 45 } 46 #endif 29 47 }; 30 48 … … 108 126 int sign() const; 109 127 128 #ifdef HAVE_OMALLOC 129 static const omBin InternalPoly_bin; 130 void* operator new(size_t size) 131 { 132 void* addr; 133 omTypeAllocBin(void*, addr, InternalPoly_bin); 134 return addr; 135 } 136 void operator delete(void* addr, size_t size) 137 { 138 omFreeBin(addr, InternalPoly_bin); 139 } 140 #endif 110 141 friend class CFIterator; 111 142 };
Note: See TracChangeset
for help on using the changeset viewer.