Changeset 05fc79 in git
- Timestamp:
- May 6, 1997, 10:31:05 AM (27 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 9e5e191dde2d31704b667e7cc56dd7fa4431506e
- Parents:
- 62bcaaad67d045162aa38c0840c82852cc7935d6
- Location:
- Singular
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
r62bcaaa r05fc79 1 Tue May 6 08:29:57 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 2 3 * added factorycheck target in Makefile.in 4 5 * Makefile.in (configure): took out rules which automatically 6 reruns autoconf. Print out warning, instead 7 8 * misc.cc, configure.in, mod2.h.in: 9 added SINGULAR_INFODIR to search for info files 10 11 * configure.in: Added AC_SUBST(WITH_LIBFAC, WITH_MP, WITH_FACTORY) 12 1 13 Mon May 5 10:31:15 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 2 14 -
Singular/Makefile.in
r62bcaaa r05fc79 58 58 # where the tests files are 59 59 testdir = tests 60 61 ## 62 ## the configuration 63 ## 64 WITH_MP = @WITH_MP@ 65 WITH_FACTORY = @WITH_FACTORY@ 66 WITH_LIBFAC = @WITH_LIBFAC@ 60 67 61 68 ## … … 183 190 184 191 configure: configure.in 185 autoconf 192 echo "You need to rerun autoconf. I am proceeding, for now." 193 touch configure 194 # autoconf 186 195 187 196 ## … … 246 255 check: Singular ${testdir}/check ${testdir}/out.should 247 256 cd ${testdir}; SINGULARPATH=./../LIB/ ./check ./../Singular 248 if test -n "@HAVE_MPSR@"; then echo; ${MAKE} mpcheck; fi 257 if test "$WITH_MP" = yes; then echo; ${MAKE} mpcheck; fi 258 if test "$WITH_FACTORY" = yes && test "$WITH_LIBFAC" = yes; then \ 259 ${MAKE} factorycheck;\ 260 fi 261 249 262 250 263 mpcheck: Singular ${testdir}/mpcheck ${testdir}/mpcheck.data 251 264 cd ${testdir}; ./mpcheck `pwd`/.. mpcheck.data 252 265 266 factorycheck: Singular ${testdir}/comparecheck ${testdir}/fac_test.in \ 267 ${testdir}/fac_test.out 268 SINGULARPATH=`pwd`/LIB; export SINGULARPATH; \ 269 PATH=`pwd`:${PATH}; export PATH;\ 270 cd ${testdir}; ./comparecheck fac_test.in fac_test.out 271 253 272 ## 254 273 ## miscellanous targets -
Singular/configure
r62bcaaa r05fc79 566 566 fi 567 567 568 if test "x$infodir" = 'x${prefix}/info'; then 569 if test "x${prefix}" = xNONE; then 570 singularinfodir=${ac_default_prefix}/info; 571 else 572 singularinfodir=${prefix}/info; 573 fi 574 else 575 singularinfodir=$infodir; 576 fi 568 577 cat >> confdefs.h <<EOF 569 578 #define SINGULAR_DATADIR "${singulardatadir}" 579 EOF 580 581 cat >> confdefs.h <<EOF 582 #define SINGULAR_INFODIR "${singularinfodir}" 570 583 EOF 571 584 … … 667 680 #endif 668 681 EOF 669 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6 70: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then682 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 670 683 ac_cv_prog_gcc=yes 671 684 else … … 719 732 # not just through cpp. 720 733 cat > conftest.$ac_ext <<EOF 721 #line 7 22"configure"734 #line 735 "configure" 722 735 #include "confdefs.h" 723 736 #include <assert.h> … … 725 738 EOF 726 739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 727 { (eval echo configure:7 28: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }740 { (eval echo configure:741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 728 741 ac_err=`grep -v '^ *+' conftest.out` 729 742 if test -z "$ac_err"; then … … 734 747 CPP="${CC-cc} -E -traditional-cpp" 735 748 cat > conftest.$ac_ext <<EOF 736 #line 7 37"configure"749 #line 750 "configure" 737 750 #include "confdefs.h" 738 751 #include <assert.h> … … 740 753 EOF 741 754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 742 { (eval echo configure:7 43: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }755 { (eval echo configure:756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 743 756 ac_err=`grep -v '^ *+' conftest.out` 744 757 if test -z "$ac_err"; then … … 803 816 #endif 804 817 EOF 805 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8 06: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then818 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 806 819 ac_cv_prog_gxx=yes 807 820 else … … 1103 1116 LIBS="-lm $LIBS" 1104 1117 cat > conftest.$ac_ext <<EOF 1105 #line 11 06"configure"1118 #line 1119 "configure" 1106 1119 #include "confdefs.h" 1107 1120 /* Override any gcc2 internal prototype to avoid an error. */ … … 1113 1126 ; return 0; } 1114 1127 EOF 1115 if { (eval echo configure:11 16: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1128 if { (eval echo configure:1129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1116 1129 rm -rf conftest* 1117 1130 eval "ac_cv_lib_$ac_lib_var=yes" … … 1145 1158 LIBS="-lbsd $LIBS" 1146 1159 cat > conftest.$ac_ext <<EOF 1147 #line 11 48"configure"1160 #line 1161 "configure" 1148 1161 #include "confdefs.h" 1149 1162 /* Override any gcc2 internal prototype to avoid an error. */ … … 1155 1168 ; return 0; } 1156 1169 EOF 1157 if { (eval echo configure:11 58: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1170 if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1158 1171 rm -rf conftest* 1159 1172 eval "ac_cv_lib_$ac_lib_var=yes" … … 1189 1202 LIBS="-lncurses $LIBS" 1190 1203 cat > conftest.$ac_ext <<EOF 1191 #line 1 192"configure"1204 #line 1205 "configure" 1192 1205 #include "confdefs.h" 1193 1206 /* Override any gcc2 internal prototype to avoid an error. */ … … 1199 1212 ; return 0; } 1200 1213 EOF 1201 if { (eval echo configure:12 02: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1214 if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1202 1215 rm -rf conftest* 1203 1216 eval "ac_cv_lib_$ac_lib_var=yes" … … 1230 1243 LIBS="-lcurses $LIBS" 1231 1244 cat > conftest.$ac_ext <<EOF 1232 #line 12 33"configure"1245 #line 1246 "configure" 1233 1246 #include "confdefs.h" 1234 1247 /* Override any gcc2 internal prototype to avoid an error. */ … … 1240 1253 ; return 0; } 1241 1254 EOF 1242 if { (eval echo configure:12 43: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1255 if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1243 1256 rm -rf conftest* 1244 1257 eval "ac_cv_lib_$ac_lib_var=yes" … … 1271 1284 LIBS="-ltermcap $LIBS" 1272 1285 cat > conftest.$ac_ext <<EOF 1273 #line 12 74"configure"1286 #line 1287 "configure" 1274 1287 #include "confdefs.h" 1275 1288 /* Override any gcc2 internal prototype to avoid an error. */ … … 1281 1294 ; return 0; } 1282 1295 EOF 1283 if { (eval echo configure:12 84: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1296 if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1284 1297 rm -rf conftest* 1285 1298 eval "ac_cv_lib_$ac_lib_var=yes" … … 1317 1330 LIBS="-lreadline $LIBS" 1318 1331 cat > conftest.$ac_ext <<EOF 1319 #line 13 20"configure"1332 #line 1333 "configure" 1320 1333 #include "confdefs.h" 1321 1334 /* Override any gcc2 internal prototype to avoid an error. */ … … 1327 1340 ; return 0; } 1328 1341 EOF 1329 if { (eval echo configure:13 30: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1342 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1330 1343 rm -rf conftest* 1331 1344 eval "ac_cv_lib_$ac_lib_var=yes" … … 1360 1373 else 1361 1374 cat > conftest.$ac_ext <<EOF 1362 #line 13 63"configure"1375 #line 1376 "configure" 1363 1376 #include "confdefs.h" 1364 1377 #include <$ac_hdr> 1365 1378 EOF 1366 1379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1367 { (eval echo configure:13 68: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1380 { (eval echo configure:1381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1368 1381 ac_err=`grep -v '^ *+' conftest.out` 1369 1382 if test -z "$ac_err"; then … … 1419 1432 LIBS="-ldbm $LIBS" 1420 1433 cat > conftest.$ac_ext <<EOF 1421 #line 14 22"configure"1434 #line 1435 "configure" 1422 1435 #include "confdefs.h" 1423 1436 /* Override any gcc2 internal prototype to avoid an error. */ … … 1429 1442 ; return 0; } 1430 1443 EOF 1431 if { (eval echo configure:14 32: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1444 if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1432 1445 rm -rf conftest* 1433 1446 eval "ac_cv_lib_$ac_lib_var=yes" … … 1456 1469 LIBS="-lgdbm $LIBS" 1457 1470 cat > conftest.$ac_ext <<EOF 1458 #line 14 59"configure"1471 #line 1472 "configure" 1459 1472 #include "confdefs.h" 1460 1473 /* Override any gcc2 internal prototype to avoid an error. */ … … 1466 1479 ; return 0; } 1467 1480 EOF 1468 if { (eval echo configure:14 69: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1481 if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1469 1482 rm -rf conftest* 1470 1483 eval "ac_cv_lib_$ac_lib_var=yes" … … 1501 1514 LIBS="-ldld $LIBS" 1502 1515 cat > conftest.$ac_ext <<EOF 1503 #line 15 04"configure"1516 #line 1517 "configure" 1504 1517 #include "confdefs.h" 1505 1518 /* Override any gcc2 internal prototype to avoid an error. */ … … 1511 1524 ; return 0; } 1512 1525 EOF 1513 if { (eval echo configure:15 14: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1526 if { (eval echo configure:1527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1514 1527 rm -rf conftest* 1515 1528 eval "ac_cv_lib_$ac_lib_var=yes" … … 1543 1556 LIBS="-lgmp $LIBS" 1544 1557 cat > conftest.$ac_ext <<EOF 1545 #line 15 46"configure"1558 #line 1559 "configure" 1546 1559 #include "confdefs.h" 1547 1560 /* Override any gcc2 internal prototype to avoid an error. */ … … 1553 1566 ; return 0; } 1554 1567 EOF 1555 if { (eval echo configure:15 56: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1568 if { (eval echo configure:1569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1556 1569 rm -rf conftest* 1557 1570 eval "ac_cv_lib_$ac_lib_var=yes" … … 1583 1596 else 1584 1597 cat > conftest.$ac_ext <<EOF 1585 #line 15 86"configure"1598 #line 1599 "configure" 1586 1599 #include "confdefs.h" 1587 1600 #include <gmp.h> 1588 1601 EOF 1589 1602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1590 { (eval echo configure:1 591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1603 { (eval echo configure:1604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1591 1604 ac_err=`grep -v '^ *+' conftest.out` 1592 1605 if test -z "$ac_err"; then … … 1628 1641 fi 1629 1642 1643 WITH_MP=no 1630 1644 if test "$with_MP" != no; then 1631 1645 if test "$ac_gmp_ok" != yes; then … … 1641 1655 LIBS="-lMP $LIBS" 1642 1656 cat > conftest.$ac_ext <<EOF 1643 #line 16 44"configure"1657 #line 1658 "configure" 1644 1658 #include "confdefs.h" 1645 1659 /* Override any gcc2 internal prototype to avoid an error. */ … … 1651 1665 ; return 0; } 1652 1666 EOF 1653 if { (eval echo configure:16 54: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1667 if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1654 1668 rm -rf conftest* 1655 1669 eval "ac_cv_lib_$ac_lib_var=yes" … … 1683 1697 LIBS="-lMPT $LIBS" 1684 1698 cat > conftest.$ac_ext <<EOF 1685 #line 1 686"configure"1699 #line 1700 "configure" 1686 1700 #include "confdefs.h" 1687 1701 /* Override any gcc2 internal prototype to avoid an error. */ … … 1693 1707 ; return 0; } 1694 1708 EOF 1695 if { (eval echo configure:1 696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1696 1710 rm -rf conftest* 1697 1711 eval "ac_cv_lib_$ac_lib_var=yes" … … 1726 1740 else 1727 1741 cat > conftest.$ac_ext <<EOF 1728 #line 17 29"configure"1742 #line 1743 "configure" 1729 1743 #include "confdefs.h" 1730 1744 #include <$ac_hdr> 1731 1745 EOF 1732 1746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1733 { (eval echo configure:17 34: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1747 { (eval echo configure:1748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1734 1748 ac_err=`grep -v '^ *+' conftest.out` 1735 1749 if test -z "$ac_err"; then … … 1764 1778 1765 1779 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 1766 HAVE_MPSR=HAVE_MP1780 WITH_MP=yes 1767 1781 elif test "$enable_MP" = yes; then 1768 1782 cat >> confdefs.h <<\EOF … … 1771 1785 1772 1786 NEED_LIBS="-lMPT -lMP ${NEED_LIBS}" 1773 HAVE_MPSR=HAVE_MP1787 WITH_MP=yes 1774 1788 echo "configure: warning: install MP before making Singular or configure --without-MP" 1>&2 1775 1789 else … … 1780 1794 1781 1795 1796 WITH_FACTORY=no 1782 1797 if test "$with_factory" != no; then 1783 1798 if test "$ac_gmp_ok" != yes; then … … 1793 1808 LIBS="-lsingcf $LIBS" 1794 1809 cat > conftest.$ac_ext <<EOF 1795 #line 1 796"configure"1810 #line 1811 "configure" 1796 1811 #include "confdefs.h" 1797 1812 /* Override any gcc2 internal prototype to avoid an error. */ … … 1803 1818 ; return 0; } 1804 1819 EOF 1805 if { (eval echo configure:18 06: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1820 if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1806 1821 rm -rf conftest* 1807 1822 eval "ac_cv_lib_$ac_lib_var=yes" … … 1836 1851 else 1837 1852 cat > conftest.$ac_ext <<EOF 1838 #line 18 39"configure"1853 #line 1854 "configure" 1839 1854 #include "confdefs.h" 1840 1855 #include <$ac_hdr> 1841 1856 EOF 1842 1857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1843 { (eval echo configure:18 44: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1858 { (eval echo configure:1859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1844 1859 ac_err=`grep -v '^ *+' conftest.out` 1845 1860 if test -z "$ac_err"; then … … 1872 1887 1873 1888 NEED_LIBS="-lsingcf ${NEED_LIBS}" 1874 ac_factory_ok=yes1889 WITH_FACTORY=yes 1875 1890 elif test "$enable_factory" = yes; then 1876 1891 NEED_LIBS="-lsingcf ${NEED_LIBS}" … … 1879 1894 EOF 1880 1895 1881 ac_factory_ok=yes1896 WITH_FACTORY=yes 1882 1897 echo "configure: warning: install factory before making Singular or configure --without-factory" 1>&2 1883 1898 else … … 1887 1902 fi 1888 1903 1904 1905 WITH_LIBFAC=no 1889 1906 if test "$with_libfac" != no; then 1890 1907 if test "$ac_factory_ok" != yes; then … … 1900 1917 LIBS="-lsingfac $LIBS" 1901 1918 cat > conftest.$ac_ext <<EOF 1902 #line 19 03"configure"1919 #line 1920 "configure" 1903 1920 #include "confdefs.h" 1904 1921 /* Override any gcc2 internal prototype to avoid an error. */ … … 1910 1927 ; return 0; } 1911 1928 EOF 1912 if { (eval echo configure:19 13: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1929 if { (eval echo configure:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1913 1930 rm -rf conftest* 1914 1931 eval "ac_cv_lib_$ac_lib_var=yes" … … 1943 1960 else 1944 1961 cat > conftest.$ac_ext <<EOF 1945 #line 19 46"configure"1962 #line 1963 "configure" 1946 1963 #include "confdefs.h" 1947 1964 #include <$ac_hdr> 1948 1965 EOF 1949 1966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1950 { (eval echo configure:19 51: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1967 { (eval echo configure:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1951 1968 ac_err=`grep -v '^ *+' conftest.out` 1952 1969 if test -z "$ac_err"; then … … 1979 1996 EOF 1980 1997 1998 WITH_LIBFAC=yes 1981 1999 elif test "$enable_libfac" = yes; then 1982 2000 NEED_LIBS="-lsingfac ${NEED_LIBS}" … … 1985 2003 EOF 1986 2004 2005 WITH_LIBFAC=yes 1987 2006 echo "configure: warning: install libfac before making Singular or configure --without-libfac" 1>&2 1988 2007 else … … 1995 2014 1996 2015 2016 1997 2017 # If we cannot run a trivial program, we must be cross compiling. 1998 2018 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 … … 2004 2024 else 2005 2025 cat > conftest.$ac_ext <<EOF 2006 #line 20 07 "configure"2026 #line 2027 "configure" 2007 2027 #include "confdefs.h" 2008 2028 main(){return(0);} 2009 2029 EOF 2010 { (eval echo configure:20 11: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2030 { (eval echo configure:2031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2011 2031 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2012 2032 ac_cv_c_cross=no … … 2026 2046 else 2027 2047 cat > conftest.$ac_ext <<EOF 2028 #line 20 29 "configure"2048 #line 2049 "configure" 2029 2049 #include "confdefs.h" 2030 2050 #include <stdlib.h> … … 2034 2054 EOF 2035 2055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2036 { (eval echo configure:20 37: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2056 { (eval echo configure:2057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2037 2057 ac_err=`grep -v '^ *+' conftest.out` 2038 2058 if test -z "$ac_err"; then … … 2049 2069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2050 2070 cat > conftest.$ac_ext <<EOF 2051 #line 20 52 "configure"2071 #line 2072 "configure" 2052 2072 #include "confdefs.h" 2053 2073 #include <string.h> … … 2067 2087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2068 2088 cat > conftest.$ac_ext <<EOF 2069 #line 20 70 "configure"2089 #line 2090 "configure" 2070 2090 #include "confdefs.h" 2071 2091 #include <stdlib.h> … … 2088 2108 else 2089 2109 cat > conftest.$ac_ext <<EOF 2090 #line 2 091 "configure"2110 #line 2111 "configure" 2091 2111 #include "confdefs.h" 2092 2112 #include <ctype.h> … … 2099 2119 2100 2120 EOF 2101 { (eval echo configure:21 02: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2121 { (eval echo configure:2122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2102 2122 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2103 2123 : … … 2127 2147 else 2128 2148 cat > conftest.$ac_ext <<EOF 2129 #line 21 30 "configure"2149 #line 2150 "configure" 2130 2150 #include "confdefs.h" 2131 2151 #include <$ac_hdr> 2132 2152 EOF 2133 2153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2134 { (eval echo configure:21 35: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2154 { (eval echo configure:2155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2135 2155 ac_err=`grep -v '^ *+' conftest.out` 2136 2156 if test -z "$ac_err"; then … … 2166 2186 else 2167 2187 cat > conftest.$ac_ext <<EOF 2168 #line 21 69 "configure"2188 #line 2189 "configure" 2169 2189 #include "confdefs.h" 2170 2190 #include <$ac_hdr> 2171 2191 EOF 2172 2192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2173 { (eval echo configure:21 74: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2193 { (eval echo configure:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2174 2194 ac_err=`grep -v '^ *+' conftest.out` 2175 2195 if test -z "$ac_err"; then … … 2201 2221 else 2202 2222 cat > conftest.$ac_ext <<EOF 2203 #line 22 04 "configure"2223 #line 2224 "configure" 2204 2224 #include "confdefs.h" 2205 2225 … … 2251 2271 ; return 0; } 2252 2272 EOF 2253 if { (eval echo configure:22 54: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2273 if { (eval echo configure:2274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2254 2274 rm -rf conftest* 2255 2275 ac_cv_c_const=yes … … 2277 2297 for ac_kw in inline __inline__ __inline; do 2278 2298 cat > conftest.$ac_ext <<EOF 2279 #line 2 280 "configure"2299 #line 2300 "configure" 2280 2300 #include "confdefs.h" 2281 2301 … … 2285 2305 ; return 0; } 2286 2306 EOF 2287 if { (eval echo configure:2 288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2307 if { (eval echo configure:2308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2288 2308 rm -rf conftest* 2289 2309 ac_cv_c_inline=$ac_kw; break … … 2313 2333 else 2314 2334 cat > conftest.$ac_ext <<EOF 2315 #line 23 16 "configure"2335 #line 2336 "configure" 2316 2336 #include "confdefs.h" 2317 2337 #include <sys/types.h> … … 2344 2364 else 2345 2365 cat > conftest.$ac_ext <<EOF 2346 #line 23 47 "configure"2366 #line 2367 "configure" 2347 2367 #include "confdefs.h" 2348 2368 #include <sys/types.h> … … 2354 2374 ; return 0; } 2355 2375 EOF 2356 if { (eval echo configure:23 57: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2376 if { (eval echo configure:2377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2357 2377 rm -rf conftest* 2358 2378 ac_cv_header_time=yes … … 2378 2398 else 2379 2399 cat > conftest.$ac_ext <<EOF 2380 #line 2 381 "configure"2400 #line 2401 "configure" 2381 2401 #include "confdefs.h" 2382 2402 #include <sys/types.h> … … 2387 2407 ; return 0; } 2388 2408 EOF 2389 if { (eval echo configure:2 390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2409 if { (eval echo configure:2410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2390 2410 rm -rf conftest* 2391 2411 ac_cv_struct_tm=time.h … … 2414 2434 else 2415 2435 cat > conftest.$ac_ext <<EOF 2416 #line 24 17 "configure"2436 #line 2437 "configure" 2417 2437 #include "confdefs.h" 2418 2438 #include <alloca.h> … … 2422 2442 ; return 0; } 2423 2443 EOF 2424 if { (eval echo configure:24 25: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2444 if { (eval echo configure:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2425 2445 rm -rf conftest* 2426 2446 ac_cv_header_alloca_h=yes … … 2446 2466 else 2447 2467 cat > conftest.$ac_ext <<EOF 2448 #line 24 49 "configure"2468 #line 2469 "configure" 2449 2469 #include "confdefs.h" 2450 2470 … … 2470 2490 ; return 0; } 2471 2491 EOF 2472 if { (eval echo configure:24 73: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2492 if { (eval echo configure:2493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2473 2493 rm -rf conftest* 2474 2494 ac_cv_func_alloca=yes … … 2505 2525 else 2506 2526 cat > conftest.$ac_ext <<EOF 2507 #line 25 08 "configure"2527 #line 2528 "configure" 2508 2528 #include "confdefs.h" 2509 2529 #if defined(CRAY) && ! defined(CRAY2) … … 2534 2554 else 2535 2555 cat > conftest.$ac_ext <<EOF 2536 #line 25 37 "configure"2556 #line 2557 "configure" 2537 2557 #include "confdefs.h" 2538 2558 /* System header to define __stub macros and hopefully few prototypes, … … 2556 2576 ; return 0; } 2557 2577 EOF 2558 if { (eval echo configure:25 59: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2559 2579 rm -rf conftest* 2560 2580 eval "ac_cv_func_$ac_func=yes" … … 2588 2608 else 2589 2609 cat > conftest.$ac_ext <<EOF 2590 #line 2 591 "configure"2610 #line 2611 "configure" 2591 2611 #include "confdefs.h" 2592 2612 find_stack_direction () … … 2607 2627 } 2608 2628 EOF 2609 { (eval echo configure:26 10: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2629 { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2610 2630 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2611 2631 ac_cv_c_stack_direction=1 … … 2631 2651 ac_pattern="Autoconf.*'x'" 2632 2652 cat > conftest.$ac_ext <<EOF 2633 #line 26 34 "configure"2653 #line 2654 "configure" 2634 2654 #include "confdefs.h" 2635 2655 #include <sgtty.h> … … 2649 2669 if test $ac_cv_prog_gcc_traditional = no; then 2650 2670 cat > conftest.$ac_ext <<EOF 2651 #line 26 52 "configure"2671 #line 2672 "configure" 2652 2672 #include "confdefs.h" 2653 2673 #include <termio.h> … … 2677 2697 else 2678 2698 cat > conftest.$ac_ext <<EOF 2679 #line 2 680 "configure"2699 #line 2700 "configure" 2680 2700 #include "confdefs.h" 2681 2701 /* System header to define __stub macros and hopefully few prototypes, … … 2699 2719 ; return 0; } 2700 2720 EOF 2701 if { (eval echo configure:27 02: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2721 if { (eval echo configure:2722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2702 2722 rm -rf conftest* 2703 2723 eval "ac_cv_func_$ac_func=yes" … … 2729 2749 else 2730 2750 cat > conftest.$ac_ext <<EOF 2731 #line 27 32 "configure"2751 #line 2752 "configure" 2732 2752 #include "confdefs.h" 2733 2753 … … 2798 2818 2799 2819 EOF 2800 { (eval echo configure:28 01: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2820 { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2801 2821 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2802 2822 ac_cv_func_mmap=yes … … 2821 2841 else 2822 2842 cat > conftest.$ac_ext <<EOF 2823 #line 28 24 "configure"2843 #line 2844 "configure" 2824 2844 #include "confdefs.h" 2825 2845 #include <sys/types.h> … … 2839 2859 ; return 0; } 2840 2860 EOF 2841 if { (eval echo configure:28 42: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2861 if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2842 2862 rm -rf conftest* 2843 2863 ac_cv_type_signal=void … … 2861 2881 else 2862 2882 cat > conftest.$ac_ext <<EOF 2863 #line 28 64 "configure"2883 #line 2884 "configure" 2864 2884 #include "confdefs.h" 2865 2885 /* System header to define __stub macros and hopefully few prototypes, … … 2883 2903 ; return 0; } 2884 2904 EOF 2885 if { (eval echo configure:2 886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2886 2906 rm -rf conftest* 2887 2907 eval "ac_cv_func_vprintf=yes" … … 2909 2929 else 2910 2930 cat > conftest.$ac_ext <<EOF 2911 #line 29 12 "configure"2931 #line 2932 "configure" 2912 2932 #include "confdefs.h" 2913 2933 /* System header to define __stub macros and hopefully few prototypes, … … 2931 2951 ; return 0; } 2932 2952 EOF 2933 if { (eval echo configure:29 34: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2953 if { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2934 2954 rm -rf conftest* 2935 2955 eval "ac_cv_func__doprnt=yes" … … 2960 2980 else 2961 2981 cat > conftest.$ac_ext <<EOF 2962 #line 29 63 "configure"2982 #line 2983 "configure" 2963 2983 #include "confdefs.h" 2964 2984 /* System header to define __stub macros and hopefully few prototypes, … … 2982 3002 ; return 0; } 2983 3003 EOF 2984 if { (eval echo configure: 2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2985 3005 rm -rf conftest* 2986 3006 eval "ac_cv_func_$ac_func=yes" … … 3014 3034 else 3015 3035 cat > conftest.$ac_ext <<EOF 3016 #line 30 17 "configure"3036 #line 3037 "configure" 3017 3037 #include "confdefs.h" 3018 3038 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 3019 3039 EOF 3020 { (eval echo configure:30 21: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3040 { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3021 3041 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3022 3042 ac_cv_shift=yes … … 3044 3064 else 3045 3065 cat > conftest.$ac_ext <<EOF 3046 #line 30 47 "configure"3066 #line 3067 "configure" 3047 3067 #include "confdefs.h" 3048 3068 int main() {if (sizeof(int) == 4) exit(0); else exit(1); } 3049 3069 EOF 3050 { (eval echo configure:30 51: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3070 { (eval echo configure:3071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3051 3071 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3052 3072 ac_cv_sizeof_int_equals_four=yes … … 3074 3094 else 3075 3095 cat > conftest.$ac_ext <<EOF 3076 #line 30 77 "configure"3096 #line 3097 "configure" 3077 3097 #include "confdefs.h" 3078 3098 int main() {if (sizeof(long) == sizeof(void*)) exit(0); else exit(1); } 3079 3099 EOF 3080 { (eval echo configure:3 081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3100 { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3081 3101 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3082 3102 ac_cv_sizeof_long_equals_voidp=yes … … 3103 3123 else 3104 3124 cat > conftest.$ac_ext <<EOF 3105 #line 31 06 "configure"3125 #line 3126 "configure" 3106 3126 #include "confdefs.h" 3107 3127 #include <stdio.h> 3108 3128 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3109 3129 EOF 3110 { (eval echo configure:31 11: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3130 { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3111 3131 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3112 3132 ac_cv_returns_n_of_chars=yes … … 3136 3156 else 3137 3157 cat > conftest.$ac_ext <<EOF 3138 #line 31 39 "configure"3158 #line 3159 "configure" 3139 3159 #include "confdefs.h" 3140 3160 #include <stdio.h> … … 3147 3167 } 3148 3168 EOF 3149 { (eval echo configure:31 50: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3169 { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3150 3170 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3151 3171 ac_cv_sizeof_voidp=`cat conftestval` … … 3305 3325 s%@INSTALL_DATA@%$INSTALL_DATA%g 3306 3326 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g 3307 s%@HAVE_MPSR@%$HAVE_MPSR%g 3327 s%@WITH_MP@%$WITH_MP%g 3328 s%@WITH_FACTORY@%$WITH_FACTORY%g 3329 s%@WITH_LIBFAC@%$WITH_LIBFAC%g 3308 3330 s%@NEED_LIBS@%$NEED_LIBS%g 3309 3331 s%@ALLOCA@%$ALLOCA%g -
Singular/misc.cc
r62bcaaa r05fc79 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: misc.cc,v 1. 9 1997-05-02 15:10:20 SingularExp $ */4 /* $Id: misc.cc,v 1.10 1997-05-06 08:31:05 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: … … 173 173 #define HELP_NOT_OPEN 1 174 174 #define HELP_NOT_FOUND 2 175 #ifndef macintosh 176 #define Index_File SINGULAR_INFODIR "singular.hlp" 177 #define Help_File SINGULAR_INFODIR "singular.hlp" 178 #else 175 179 #define Index_File "singular.hlp" 176 180 #define Help_File "singular.hlp" 181 #endif 177 182 #define BUF_LEN 128 178 183 #define IDX_LEN 64 … … 371 376 singular_manual(str); 372 377 #else 373 char tmp[100]; 374 sprintf(tmp,"info singular Index \"%s\"",str); 378 char tmp[150]; 379 sprintf(tmp,"%s/singular.hlp", SINGULAR_INFODIR); 380 if (!access(tmp, R_OK)) 381 sprintf(tmp, "info -f %s/singular.hlp Index \"%s\"", 382 SINGULAR_INFODIR, str); 383 else 384 sprintf(tmp,"info singular Index \"%s\"",str); 375 385 system(tmp); 376 386 #ifndef MSDOS -
Singular/mod2.h.in
r62bcaaa r05fc79 76 76 /* Define the data directory where Singular searches for libs and gftables */ 77 77 #define SINGULAR_DATADIR "/usr/local/share/Singular" 78 /* Define the info directory where Singular searches for help files */ 79 #define SINGULAR_INFODIR "/usr/local/info" 78 80 79 81 /*******************************************************************
Note: See TracChangeset
for help on using the changeset viewer.