Changeset 4c001a in git
- Timestamp:
- Jun 4, 1997, 9:45:25 PM (26 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 2206a717d905cdcfb54e169f7df11258eb0eae8b
- Parents:
- 99be05a16bba53f0fffb47fbae6830f04636e00a
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.in
r99be05 r4c001a 5 5 6 6 DISTNAME = ${PRODUCT}-full-${VERSION} 7 BINDISTNAME = ${PRODUCT}-${VERSION}.@host@ 8 SHAREDISTNAME = ${PRODUCT}-${VERSION}-share 9 MKINSTALLDIRS = ./mkinstalldirs 7 10 8 11 @SET_MAKE@ 9 12 BUILD_SUBDIRS = @CONFIG_SUBDIRS@ 10 13 SUBDIRS = @SUBDIRS@ 14 15 prefix = @prefix@ 16 exec_prefix = @exec_prefix@ 17 infodir = @infodir@ 18 datadir = @datadir@ 19 bindir = @bindir@ 11 20 12 21 TEMPDIR = /tmp … … 40 49 41 50 dist: 42 rm -rf ${DISTNAME}.tar* ${TEMPDIR}/${DISTNAME}* 51 rm -rf ${DISTNAME}.tar* ${TEMPDIR}/${DISTNAME}* 43 52 mkdir ${TEMPDIR}/${DISTNAME} 44 53 - cp -pR . ${TEMPDIR}/${DISTNAME} … … 48 57 - gzip -9 ${TEMPDIR}/${DISTNAME}.tar 49 58 - mv ${TEMPDIR}/${DISTNAME}.tar.gz . 59 60 bindist: ${bindir}/Singular 61 rm -rf ${BINDISTNAME}* 62 if test "${datadir}" != /usr/local/share || \ 63 test "${infodir}" != /usr/local/info; then \ 64 cd Singular ;\ 65 mv mod2.h mod2.h.orig ;\ 66 sed -f ../sed.bindist.cmd mod2.h.orig > mod2.h ;\ 67 /bin/rm -f febase.o misc.o;\ 68 ${MAKE} Singular ;\ 69 /bin/rm -f febase.o misc.o;\ 70 mv mod2.h.orig mod2.h;\ 71 fi 72 mv Singular/Singular ${BINDISTNAME} 73 strip ${BINDISTNAME} 74 gzip -9 ${BINDISTNAME} 75 76 sharedist: ${bindir}/Singular 77 cd Singular; ${MAKE} dvi; ${MAKE} info 78 /bin/rm -rf ${TEMPDIR}/Singular-share 79 ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/info 80 ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/doc 81 ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/gftables 82 cp Singular/LIB/*.lib ${TEMPDIR}/Singular-share/share/Singular 83 cp Singular/LIB/gftables/[0-9]* \ 84 ${TEMPDIR}/Singular-share/share/Singular/gftables 85 cp Singular/doc/singular.hlp ${TEMPDIR}/Singular-share/info 86 cp Singular/doc/singular.dvi Singular/doc/tutor.dvi \ 87 ${TEMPDIR}/Singular-share/share/Singular/doc 88 cd ${TEMPDIR}/Singular-share/share/Singular/; \ 89 ln -s ../../info/singular.hlp singular.hlp 90 cp COPYING.share README.share ${TEMPDIR}/Singular-share 91 cd ${TEMPDIR}/Singular-share;\ 92 tar cf ${SHAREDISTNAME}.tar * ;\ 93 gzip -9 ${SHAREDISTNAME}.tar 94 mv ${TEMPDIR}/Singular-share/${SHAREDISTNAME}.tar.gz . 95 /bin/rm -rf ${TEMPDIR}/Singular-share 96 97 ${bindir}/Singular: 98 ${MAKE} install 50 99 51 100 Singular factory libfac MP gmp: -
Singular/ChangeLog
r99be05 r4c001a 20 20 * misc.cc: Added / to Help_File and Info_File 21 21 22 Sun May 25 14:06:12 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 23 24 * configure.in: Fixed handling of CXXFLAGS -- it is not touched if 25 set as env var 26 27 Fri May 23 11:40:14 1997 Olaf Bachmann <obachman@schlupp.mathematik.uni-kl.de (Olaf Bachmann)> 28 29 * Makefile.in: Changed dist target to cp; make distclean 30 22 31 Wed May 21 08:56:19 1997 Olaf Bachmann <obachman@ratchwum.mathematik.uni-kl.de (Olaf Bachmann)> 32 33 * mpsr_Tok.cc: fixed dependencies/generation of mpsr_Tok.inc 23 34 24 35 * tesths.cc (main): made -v option gmp v1.3 clean -
Singular/LIB/all.lib
r99be05 r4c001a 1 // $Id: all.lib,v 1. 1 1997-05-01 17:50:40 SingularExp $1 // $Id: all.lib,v 1.2 1997-06-04 19:45:25 obachman Exp $ 2 2 /////////////////////////////////////////////////////////////////////////////// 3 3 … … 6 6 /////////////////////////////////////////////////////////////////////////////// 7 7 8 LIB "cs.lib";9 8 LIB "deform.lib"; 10 9 LIB "elim.lib"; -
Singular/README
r99be05 r4c001a 24 24 25 25 If you receive this file as part of a complete Singular distribution, 26 see also the README , COPYING, and INSTALL files contained in the top26 see also the README.src, COPYING.src, and INSTALL files contained in the top 27 27 directory of the full Singular distribution. 28 28 … … 68 68 www.mathematik.uni-kl.de:/pub/Math/Singular 69 69 70 Binary versions of Singular for somecommon hard- and software70 Binary versions of Singular for common hard- and software 71 71 platforms are contained in the files Singular-1.0.<platform>.gz where 72 72 <platform> is, for example, 'linux', 'SunOS', etc. See the file … … 74 74 binaries. 75 75 76 The source code of Singular is distributed in two versions: 76 Architecture - independent files (such as libraries written in the 77 Singular programming language, and the Singular documentation) are 78 distributed as Singular-1.0-share.tar.gz. See the file README.share 79 for more information. 80 81 In general, Singular is only available as binary program. For 82 exceptions, you may contact us at 83 singular@mathematik.uni-kl.de 84 85 The source is distributed in two versions: 77 86 1. A full source distribution of Singular is contained in 78 87 Singular-full-1.0.tar.gz. This (gzip'ed and tar'ed) file … … 86 95 only, i.e., it comes WITHOUT the sources for any of the add-on 87 96 packages. 88 See the file README.src for further information on the distribution of 89 Singular sources. 97 90 98 91 99 Documentation to Singular is distributed as: … … 96 104 singular.hlp.gz - Reference manual in Info format 97 105 Singular-1.0.html.tar.gz - Reference manual in html format 98 See the file README.doc for further information on the distribution of99 Singular documentation.100 101 Libraries written in Singular's programming language are contained in102 the file Singular-1.0.LIB.tar.gz.103 106 104 107 -
Singular/attrib.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: attrib.cc,v 1.6 1997-05-22 16:05:04 Singular Exp $ */5 6 4 /* 7 5 * ABSTRACT: attributes to leftv and idhdl -
Singular/clapsing.cc
r99be05 r4c001a 3 3 * Computer Algebra System SINGULAR * 4 4 ****************************************/ 5 // $Id: clapsing.cc,v 1. 6 1997-05-05 13:40:03obachman Exp $5 // $Id: clapsing.cc,v 1.7 1997-06-04 19:45:09 obachman Exp $ 6 6 /* 7 7 * ABSTRACT: interface between Singular and factory … … 225 225 if ( nGetChar() == 1 ) 226 226 setCharacteristic( 0 ); 227 else if ( nGetChar() == -1 ) 228 return; /* not implemented for R */ 227 229 else if ( nGetChar() < 0 ) 228 230 setCharacteristic( -nGetChar() ); … … 279 281 280 282 ideal res=NULL; 283 if (f==NULL) 284 { 285 res=idInit(1,1); 286 if (with_exps!=1) 287 { 288 (*v)=new intvec(1); 289 } 290 return res; 291 } 281 292 Off(SW_RATIONAL); 282 293 On(SW_SYMMETRIC_FF); … … 362 373 if (with_exps!=1) 363 374 { 364 if ( with_exps==2)375 if ((with_exps==2)&&(n>1)) 365 376 { 366 377 n--; -
Singular/configure
r99be05 r4c001a 590 590 591 591 if test "${CXXFLAGS+set}" != set; then 592 ac_cxxflags_set=no 592 593 CXXFLAGS="-O" 593 594 fi 594 595 if test "${CFLAGS+set}" != set; then 595 596 CFLAGS="-O" 597 ac_cflags_set=no 596 598 fi 597 599 … … 682 684 #endif 683 685 EOF 684 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:68 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then686 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 685 687 ac_cv_prog_gcc=yes 686 688 else … … 734 736 # not just through cpp. 735 737 cat > conftest.$ac_ext <<EOF 736 #line 73 7"configure"738 #line 739 "configure" 737 739 #include "confdefs.h" 738 740 #include <assert.h> … … 740 742 EOF 741 743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 742 { (eval echo configure:74 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }744 { (eval echo configure:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 743 745 ac_err=`grep -v '^ *+' conftest.out` 744 746 if test -z "$ac_err"; then … … 749 751 CPP="${CC-cc} -E -traditional-cpp" 750 752 cat > conftest.$ac_ext <<EOF 751 #line 75 2"configure"753 #line 754 "configure" 752 754 #include "confdefs.h" 753 755 #include <assert.h> … … 755 757 EOF 756 758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 757 { (eval echo configure:7 58: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }759 { (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 758 760 ac_err=`grep -v '^ *+' conftest.out` 759 761 if test -z "$ac_err"; then … … 818 820 #endif 819 821 EOF 820 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:82 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then822 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 821 823 ac_cv_prog_gxx=yes 822 824 else … … 1011 1013 LIBS="-lm $LIBS" 1012 1014 cat > conftest.$ac_ext <<EOF 1013 #line 101 4"configure"1015 #line 1016 "configure" 1014 1016 #include "confdefs.h" 1015 1017 /* Override any gcc2 internal prototype to avoid an error. */ … … 1021 1023 ; return 0; } 1022 1024 EOF 1023 if { (eval echo configure:102 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1025 if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1024 1026 rm -rf conftest* 1025 1027 eval "ac_cv_lib_$ac_lib_var=yes" … … 1053 1055 LIBS="-lbsd $LIBS" 1054 1056 cat > conftest.$ac_ext <<EOF 1055 #line 105 6"configure"1057 #line 1058 "configure" 1056 1058 #include "confdefs.h" 1057 1059 /* Override any gcc2 internal prototype to avoid an error. */ … … 1063 1065 ; return 0; } 1064 1066 EOF 1065 if { (eval echo configure:106 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1067 if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1066 1068 rm -rf conftest* 1067 1069 eval "ac_cv_lib_$ac_lib_var=yes" … … 1095 1097 LIBS="-lsocket $LIBS" 1096 1098 cat > conftest.$ac_ext <<EOF 1097 #line 1 098"configure"1099 #line 1100 "configure" 1098 1100 #include "confdefs.h" 1099 1101 /* Override any gcc2 internal prototype to avoid an error. */ … … 1105 1107 ; return 0; } 1106 1108 EOF 1107 if { (eval echo configure:11 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1109 if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1108 1110 rm -rf conftest* 1109 1111 eval "ac_cv_lib_$ac_lib_var=yes" … … 1137 1139 LIBS="-lnsl $LIBS" 1138 1140 cat > conftest.$ac_ext <<EOF 1139 #line 114 0"configure"1141 #line 1142 "configure" 1140 1142 #include "confdefs.h" 1141 1143 /* Override any gcc2 internal prototype to avoid an error. */ … … 1147 1149 ; return 0; } 1148 1150 EOF 1149 if { (eval echo configure:115 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1151 if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1150 1152 rm -rf conftest* 1151 1153 eval "ac_cv_lib_$ac_lib_var=yes" … … 1181 1183 LIBS="-lncurses $LIBS" 1182 1184 cat > conftest.$ac_ext <<EOF 1183 #line 118 4"configure"1185 #line 1186 "configure" 1184 1186 #include "confdefs.h" 1185 1187 /* Override any gcc2 internal prototype to avoid an error. */ … … 1191 1193 ; return 0; } 1192 1194 EOF 1193 if { (eval echo configure:119 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1195 if { (eval echo configure:1196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1194 1196 rm -rf conftest* 1195 1197 eval "ac_cv_lib_$ac_lib_var=yes" … … 1222 1224 LIBS="-lcurses $LIBS" 1223 1225 cat > conftest.$ac_ext <<EOF 1224 #line 122 5"configure"1226 #line 1227 "configure" 1225 1227 #include "confdefs.h" 1226 1228 /* Override any gcc2 internal prototype to avoid an error. */ … … 1232 1234 ; return 0; } 1233 1235 EOF 1234 if { (eval echo configure:123 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1236 if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1235 1237 rm -rf conftest* 1236 1238 eval "ac_cv_lib_$ac_lib_var=yes" … … 1263 1265 LIBS="-ltermcap $LIBS" 1264 1266 cat > conftest.$ac_ext <<EOF 1265 #line 126 6"configure"1267 #line 1268 "configure" 1266 1268 #include "confdefs.h" 1267 1269 /* Override any gcc2 internal prototype to avoid an error. */ … … 1273 1275 ; return 0; } 1274 1276 EOF 1275 if { (eval echo configure:127 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1277 if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1276 1278 rm -rf conftest* 1277 1279 eval "ac_cv_lib_$ac_lib_var=yes" … … 1309 1311 LIBS="-lreadline $LIBS" 1310 1312 cat > conftest.$ac_ext <<EOF 1311 #line 131 2"configure"1313 #line 1314 "configure" 1312 1314 #include "confdefs.h" 1313 1315 /* Override any gcc2 internal prototype to avoid an error. */ … … 1319 1321 ; return 0; } 1320 1322 EOF 1321 if { (eval echo configure:132 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1323 if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1322 1324 rm -rf conftest* 1323 1325 eval "ac_cv_lib_$ac_lib_var=yes" … … 1352 1354 else 1353 1355 cat > conftest.$ac_ext <<EOF 1354 #line 135 5"configure"1356 #line 1357 "configure" 1355 1357 #include "confdefs.h" 1356 1358 #include <$ac_hdr> 1357 1359 EOF 1358 1360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1359 { (eval echo configure:136 0: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1361 { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1360 1362 ac_err=`grep -v '^ *+' conftest.out` 1361 1363 if test -z "$ac_err"; then … … 1411 1413 LIBS="-ldbm $LIBS" 1412 1414 cat > conftest.$ac_ext <<EOF 1413 #line 141 4"configure"1415 #line 1416 "configure" 1414 1416 #include "confdefs.h" 1415 1417 /* Override any gcc2 internal prototype to avoid an error. */ … … 1421 1423 ; return 0; } 1422 1424 EOF 1423 if { (eval echo configure:142 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1425 if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1424 1426 rm -rf conftest* 1425 1427 eval "ac_cv_lib_$ac_lib_var=yes" … … 1448 1450 LIBS="-lgdbm $LIBS" 1449 1451 cat > conftest.$ac_ext <<EOF 1450 #line 145 1"configure"1452 #line 1453 "configure" 1451 1453 #include "confdefs.h" 1452 1454 /* Override any gcc2 internal prototype to avoid an error. */ … … 1458 1460 ; return 0; } 1459 1461 EOF 1460 if { (eval echo configure:146 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1462 if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1461 1463 rm -rf conftest* 1462 1464 eval "ac_cv_lib_$ac_lib_var=yes" … … 1493 1495 LIBS="-ldld $LIBS" 1494 1496 cat > conftest.$ac_ext <<EOF 1495 #line 149 6"configure"1497 #line 1498 "configure" 1496 1498 #include "confdefs.h" 1497 1499 /* Override any gcc2 internal prototype to avoid an error. */ … … 1503 1505 ; return 0; } 1504 1506 EOF 1505 if { (eval echo configure:150 6: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1506 1508 rm -rf conftest* 1507 1509 eval "ac_cv_lib_$ac_lib_var=yes" … … 1545 1547 LIBS="-lgmp $LIBS" 1546 1548 cat > conftest.$ac_ext <<EOF 1547 #line 15 48"configure"1549 #line 1550 "configure" 1548 1550 #include "confdefs.h" 1549 1551 /* Override any gcc2 internal prototype to avoid an error. */ … … 1555 1557 ; return 0; } 1556 1558 EOF 1557 if { (eval echo configure:15 58: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1558 1560 rm -rf conftest* 1559 1561 eval "ac_cv_lib_$ac_lib_var=yes" … … 1585 1587 else 1586 1588 cat > conftest.$ac_ext <<EOF 1587 #line 15 88"configure"1589 #line 1590 "configure" 1588 1590 #include "confdefs.h" 1589 1591 #include <gmp.h> 1590 1592 EOF 1591 1593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1592 { (eval echo configure:159 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1594 { (eval echo configure:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1593 1595 ac_err=`grep -v '^ *+' conftest.out` 1594 1596 if test -z "$ac_err"; then … … 1644 1646 LIBS="-lMP $LIBS" 1645 1647 cat > conftest.$ac_ext <<EOF 1646 #line 164 7"configure"1648 #line 1649 "configure" 1647 1649 #include "confdefs.h" 1648 1650 /* Override any gcc2 internal prototype to avoid an error. */ … … 1654 1656 ; return 0; } 1655 1657 EOF 1656 if { (eval echo configure:165 7: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1658 if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1657 1659 rm -rf conftest* 1658 1660 eval "ac_cv_lib_$ac_lib_var=yes" … … 1686 1688 LIBS="-lMPT $LIBS" 1687 1689 cat > conftest.$ac_ext <<EOF 1688 #line 16 89"configure"1690 #line 1691 "configure" 1689 1691 #include "confdefs.h" 1690 1692 /* Override any gcc2 internal prototype to avoid an error. */ … … 1696 1698 ; return 0; } 1697 1699 EOF 1698 if { (eval echo configure:1 699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1700 if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1699 1701 rm -rf conftest* 1700 1702 eval "ac_cv_lib_$ac_lib_var=yes" … … 1729 1731 else 1730 1732 cat > conftest.$ac_ext <<EOF 1731 #line 173 2"configure"1733 #line 1734 "configure" 1732 1734 #include "confdefs.h" 1733 1735 #include <$ac_hdr> 1734 1736 EOF 1735 1737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1736 { (eval echo configure:173 7: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1738 { (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1737 1739 ac_err=`grep -v '^ *+' conftest.out` 1738 1740 if test -z "$ac_err"; then … … 1797 1799 LIBS="-lsingcf $LIBS" 1798 1800 cat > conftest.$ac_ext <<EOF 1799 #line 180 0"configure"1801 #line 1802 "configure" 1800 1802 #include "confdefs.h" 1801 1803 /* Override any gcc2 internal prototype to avoid an error. */ … … 1807 1809 ; return 0; } 1808 1810 EOF 1809 if { (eval echo configure:181 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1811 if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1810 1812 rm -rf conftest* 1811 1813 eval "ac_cv_lib_$ac_lib_var=yes" … … 1840 1842 else 1841 1843 cat > conftest.$ac_ext <<EOF 1842 #line 184 3"configure"1844 #line 1845 "configure" 1843 1845 #include "confdefs.h" 1844 1846 #include <$ac_hdr> 1845 1847 EOF 1846 1848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1847 { (eval echo configure:18 48: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1849 { (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1848 1850 ac_err=`grep -v '^ *+' conftest.out` 1849 1851 if test -z "$ac_err"; then … … 1906 1908 LIBS="-lsingfac $LIBS" 1907 1909 cat > conftest.$ac_ext <<EOF 1908 #line 19 09"configure"1910 #line 1911 "configure" 1909 1911 #include "confdefs.h" 1910 1912 /* Override any gcc2 internal prototype to avoid an error. */ … … 1916 1918 ; return 0; } 1917 1919 EOF 1918 if { (eval echo configure:19 19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1920 if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1919 1921 rm -rf conftest* 1920 1922 eval "ac_cv_lib_$ac_lib_var=yes" … … 1949 1951 else 1950 1952 cat > conftest.$ac_ext <<EOF 1951 #line 195 2"configure"1953 #line 1954 "configure" 1952 1954 #include "confdefs.h" 1953 1955 #include <$ac_hdr> 1954 1956 EOF 1955 1957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1956 { (eval echo configure:195 7: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1958 { (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1957 1959 ac_err=`grep -v '^ *+' conftest.out` 1958 1960 if test -z "$ac_err"; then … … 2013 2015 else 2014 2016 cat > conftest.$ac_ext <<EOF 2015 #line 201 6"configure"2017 #line 2018 "configure" 2016 2018 #include "confdefs.h" 2017 2019 main(){return(0);} 2018 2020 EOF 2019 { (eval echo configure:202 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2021 { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2020 2022 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2021 2023 ac_cv_c_cross=no … … 2035 2037 else 2036 2038 cat > conftest.$ac_ext <<EOF 2037 #line 20 38"configure"2039 #line 2040 "configure" 2038 2040 #include "confdefs.h" 2039 2041 #include <stdlib.h> … … 2043 2045 EOF 2044 2046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2045 { (eval echo configure:204 6: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2047 { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2046 2048 ac_err=`grep -v '^ *+' conftest.out` 2047 2049 if test -z "$ac_err"; then … … 2058 2060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2059 2061 cat > conftest.$ac_ext <<EOF 2060 #line 206 1"configure"2062 #line 2063 "configure" 2061 2063 #include "confdefs.h" 2062 2064 #include <string.h> … … 2076 2078 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2077 2079 cat > conftest.$ac_ext <<EOF 2078 #line 20 79"configure"2080 #line 2081 "configure" 2079 2081 #include "confdefs.h" 2080 2082 #include <stdlib.h> … … 2097 2099 else 2098 2100 cat > conftest.$ac_ext <<EOF 2099 #line 210 0"configure"2101 #line 2102 "configure" 2100 2102 #include "confdefs.h" 2101 2103 #include <ctype.h> … … 2108 2110 2109 2111 EOF 2110 { (eval echo configure:211 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2112 { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2111 2113 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2112 2114 : … … 2136 2138 else 2137 2139 cat > conftest.$ac_ext <<EOF 2138 #line 21 39"configure"2140 #line 2141 "configure" 2139 2141 #include "confdefs.h" 2140 2142 #include <$ac_hdr> 2141 2143 EOF 2142 2144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2143 { (eval echo configure:214 4: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2145 { (eval echo configure:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2144 2146 ac_err=`grep -v '^ *+' conftest.out` 2145 2147 if test -z "$ac_err"; then … … 2175 2177 else 2176 2178 cat > conftest.$ac_ext <<EOF 2177 #line 21 78"configure"2179 #line 2180 "configure" 2178 2180 #include "confdefs.h" 2179 2181 #include <$ac_hdr> 2180 2182 EOF 2181 2183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2182 { (eval echo configure:218 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2184 { (eval echo configure:2185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2183 2185 ac_err=`grep -v '^ *+' conftest.out` 2184 2186 if test -z "$ac_err"; then … … 2210 2212 else 2211 2213 cat > conftest.$ac_ext <<EOF 2212 #line 221 3"configure"2214 #line 2215 "configure" 2213 2215 #include "confdefs.h" 2214 2216 … … 2260 2262 ; return 0; } 2261 2263 EOF 2262 if { (eval echo configure:226 3: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2264 if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2263 2265 rm -rf conftest* 2264 2266 ac_cv_c_const=yes … … 2286 2288 for ac_kw in inline __inline__ __inline; do 2287 2289 cat > conftest.$ac_ext <<EOF 2288 #line 22 89"configure"2290 #line 2291 "configure" 2289 2291 #include "confdefs.h" 2290 2292 … … 2294 2296 ; return 0; } 2295 2297 EOF 2296 if { (eval echo configure:229 7: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2298 if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2297 2299 rm -rf conftest* 2298 2300 ac_cv_c_inline=$ac_kw; break … … 2322 2324 else 2323 2325 cat > conftest.$ac_ext <<EOF 2324 #line 232 5"configure"2326 #line 2327 "configure" 2325 2327 #include "confdefs.h" 2326 2328 #include <sys/types.h> … … 2353 2355 else 2354 2356 cat > conftest.$ac_ext <<EOF 2355 #line 235 6"configure"2357 #line 2358 "configure" 2356 2358 #include "confdefs.h" 2357 2359 #include <sys/types.h> … … 2363 2365 ; return 0; } 2364 2366 EOF 2365 if { (eval echo configure:236 6: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2367 if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2366 2368 rm -rf conftest* 2367 2369 ac_cv_header_time=yes … … 2387 2389 else 2388 2390 cat > conftest.$ac_ext <<EOF 2389 #line 239 0"configure"2391 #line 2392 "configure" 2390 2392 #include "confdefs.h" 2391 2393 #include <sys/types.h> … … 2396 2398 ; return 0; } 2397 2399 EOF 2398 if { (eval echo configure:2 399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2400 if { (eval echo configure:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2399 2401 rm -rf conftest* 2400 2402 ac_cv_struct_tm=time.h … … 2423 2425 else 2424 2426 cat > conftest.$ac_ext <<EOF 2425 #line 242 6"configure"2427 #line 2428 "configure" 2426 2428 #include "confdefs.h" 2427 2429 #include <alloca.h> … … 2431 2433 ; return 0; } 2432 2434 EOF 2433 if { (eval echo configure:243 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2435 if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2434 2436 rm -rf conftest* 2435 2437 ac_cv_header_alloca_h=yes … … 2455 2457 else 2456 2458 cat > conftest.$ac_ext <<EOF 2457 #line 24 58"configure"2459 #line 2460 "configure" 2458 2460 #include "confdefs.h" 2459 2461 … … 2479 2481 ; return 0; } 2480 2482 EOF 2481 if { (eval echo configure:248 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2482 2484 rm -rf conftest* 2483 2485 ac_cv_func_alloca=yes … … 2514 2516 else 2515 2517 cat > conftest.$ac_ext <<EOF 2516 #line 251 7"configure"2518 #line 2519 "configure" 2517 2519 #include "confdefs.h" 2518 2520 #if defined(CRAY) && ! defined(CRAY2) … … 2543 2545 else 2544 2546 cat > conftest.$ac_ext <<EOF 2545 #line 254 6"configure"2547 #line 2548 "configure" 2546 2548 #include "confdefs.h" 2547 2549 /* System header to define __stub macros and hopefully few prototypes, … … 2565 2567 ; return 0; } 2566 2568 EOF 2567 if { (eval echo configure:25 68: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2568 2570 rm -rf conftest* 2569 2571 eval "ac_cv_func_$ac_func=yes" … … 2597 2599 else 2598 2600 cat > conftest.$ac_ext <<EOF 2599 #line 260 0"configure"2601 #line 2602 "configure" 2600 2602 #include "confdefs.h" 2601 2603 find_stack_direction () … … 2616 2618 } 2617 2619 EOF 2618 { (eval echo configure:26 19: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2620 { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2619 2621 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2620 2622 ac_cv_c_stack_direction=1 … … 2640 2642 ac_pattern="Autoconf.*'x'" 2641 2643 cat > conftest.$ac_ext <<EOF 2642 #line 264 3"configure"2644 #line 2645 "configure" 2643 2645 #include "confdefs.h" 2644 2646 #include <sgtty.h> … … 2658 2660 if test $ac_cv_prog_gcc_traditional = no; then 2659 2661 cat > conftest.$ac_ext <<EOF 2660 #line 266 1"configure"2662 #line 2663 "configure" 2661 2663 #include "confdefs.h" 2662 2664 #include <termio.h> … … 2686 2688 else 2687 2689 cat > conftest.$ac_ext <<EOF 2688 #line 26 89"configure"2690 #line 2691 "configure" 2689 2691 #include "confdefs.h" 2690 2692 /* System header to define __stub macros and hopefully few prototypes, … … 2708 2710 ; return 0; } 2709 2711 EOF 2710 if { (eval echo configure:271 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2712 if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2711 2713 rm -rf conftest* 2712 2714 eval "ac_cv_func_$ac_func=yes" … … 2738 2740 else 2739 2741 cat > conftest.$ac_ext <<EOF 2740 #line 274 1"configure"2742 #line 2743 "configure" 2741 2743 #include "confdefs.h" 2742 2744 … … 2807 2809 2808 2810 EOF 2809 { (eval echo configure:281 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }2811 { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 2810 2812 if test -s conftest && (./conftest; exit) 2>/dev/null; then 2811 2813 ac_cv_func_mmap=yes … … 2830 2832 else 2831 2833 cat > conftest.$ac_ext <<EOF 2832 #line 283 3"configure"2834 #line 2835 "configure" 2833 2835 #include "confdefs.h" 2834 2836 #include <sys/types.h> … … 2848 2850 ; return 0; } 2849 2851 EOF 2850 if { (eval echo configure:285 1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2852 if { (eval echo configure:2853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2851 2853 rm -rf conftest* 2852 2854 ac_cv_type_signal=void … … 2870 2872 else 2871 2873 cat > conftest.$ac_ext <<EOF 2872 #line 287 3"configure"2874 #line 2875 "configure" 2873 2875 #include "confdefs.h" 2874 2876 /* System header to define __stub macros and hopefully few prototypes, … … 2892 2894 ; return 0; } 2893 2895 EOF 2894 if { (eval echo configure:289 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2896 if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2895 2897 rm -rf conftest* 2896 2898 eval "ac_cv_func_vprintf=yes" … … 2918 2920 else 2919 2921 cat > conftest.$ac_ext <<EOF 2920 #line 292 1"configure"2922 #line 2923 "configure" 2921 2923 #include "confdefs.h" 2922 2924 /* System header to define __stub macros and hopefully few prototypes, … … 2940 2942 ; return 0; } 2941 2943 EOF 2942 if { (eval echo configure:294 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2944 if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2943 2945 rm -rf conftest* 2944 2946 eval "ac_cv_func__doprnt=yes" … … 2969 2971 else 2970 2972 cat > conftest.$ac_ext <<EOF 2971 #line 297 2"configure"2973 #line 2974 "configure" 2972 2974 #include "confdefs.h" 2973 2975 /* System header to define __stub macros and hopefully few prototypes, … … 2991 2993 ; return 0; } 2992 2994 EOF 2993 if { (eval echo configure:299 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 2994 2996 rm -rf conftest* 2995 2997 eval "ac_cv_func_$ac_func=yes" … … 3023 3025 else 3024 3026 cat > conftest.$ac_ext <<EOF 3025 #line 302 6"configure"3027 #line 3028 "configure" 3026 3028 #include "confdefs.h" 3027 3029 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 3028 3030 EOF 3029 { (eval echo configure:303 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3031 { (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3030 3032 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3031 3033 ac_cv_shift=yes … … 3053 3055 else 3054 3056 cat > conftest.$ac_ext <<EOF 3055 #line 305 6"configure"3057 #line 3058 "configure" 3056 3058 #include "confdefs.h" 3057 3059 int main() {if (sizeof(int) == 4) exit(0); else exit(1); } 3058 3060 EOF 3059 { (eval echo configure:306 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3061 { (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3060 3062 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3061 3063 ac_cv_sizeof_int_equals_four=yes … … 3083 3085 else 3084 3086 cat > conftest.$ac_ext <<EOF 3085 #line 308 6"configure"3087 #line 3088 "configure" 3086 3088 #include "confdefs.h" 3087 3089 int main() {if (sizeof(long) == sizeof(void*)) exit(0); else exit(1); } 3088 3090 EOF 3089 { (eval echo configure:309 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3091 { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3090 3092 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3091 3093 ac_cv_sizeof_long_equals_voidp=yes … … 3112 3114 else 3113 3115 cat > conftest.$ac_ext <<EOF 3114 #line 311 5"configure"3116 #line 3117 "configure" 3115 3117 #include "confdefs.h" 3116 3118 #include <stdio.h> 3117 3119 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3118 3120 EOF 3119 { (eval echo configure:312 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3121 { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3120 3122 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3121 3123 ac_cv_returns_n_of_chars=yes … … 3145 3147 else 3146 3148 cat > conftest.$ac_ext <<EOF 3147 #line 31 48"configure"3149 #line 3150 "configure" 3148 3150 #include "confdefs.h" 3149 3151 #include <stdio.h> … … 3156 3158 } 3157 3159 EOF 3158 { (eval echo configure:31 59: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }3160 { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } 3159 3161 if test -s conftest && (./conftest; exit) 2>/dev/null; then 3160 3162 ac_cv_sizeof_voidp=`cat conftestval` … … 3178 3180 else 3179 3181 cat > conftest.$ac_ext <<EOF 3180 #line 318 1"configure"3182 #line 3183 "configure" 3181 3183 #include "confdefs.h" 3182 3184 #ifdef _AIX … … 3205 3207 3206 3208 if test ${GXX} = yes; then 3207 CXXFLAGS="-O3 -w -fomit-frame-pointer" 3209 if test "$ac_cxxflags_set" = no; then 3210 CXXFLAGS="-O3 -w -fomit-frame-pointer" 3211 fi 3208 3212 CXXTEMPLFLAGS="-fno-implicit-templates" 3209 3213 if test "$ac_cv_is_aix" = yes; then 3210 CXXNOOPTFLAGS="- O -w -fomit-frame-pointer"3214 CXXNOOPTFLAGS="-w" 3211 3215 else 3212 3216 CXXNOOPTFLAGS=$CXXFLAGS … … 3219 3223 3220 3224 3221 if test ${GCC} = yes ; then3225 if test ${GCC} = yes && test "$ac_cflags_set" = no ; then 3222 3226 CFLAGS="-O3 -w -fomit-frame-pointer" 3223 3227 fi -
Singular/configure.in
r99be05 r4c001a 55 55 dnl we do not want to have "-g -O" for CFLAGS 56 56 if test "${CXXFLAGS+set}" != set; then 57 ac_cxxflags_set=no 57 58 CXXFLAGS="-O" 58 59 fi 59 60 if test "${CFLAGS+set}" != set; then 60 61 CFLAGS="-O" 62 ac_cflags_set=no 61 63 fi 62 64 … … 417 419 418 420 if test ${GXX} = yes; then 419 CXXFLAGS="-O3 -w -fomit-frame-pointer" 421 if test "$ac_cxxflags_set" = no; then 422 CXXFLAGS="-O3 -w -fomit-frame-pointer" 423 fi 420 424 CXXTEMPLFLAGS="-fno-implicit-templates" 421 425 if test "$ac_cv_is_aix" = yes; then 422 CXXNOOPTFLAGS="- O -w -fomit-frame-pointer"426 CXXNOOPTFLAGS="-w" 423 427 else 424 428 CXXNOOPTFLAGS=$CXXFLAGS … … 431 435 AC_SUBST(CXXNOOPTFLAGS) 432 436 433 if test ${GCC} = yes ; then437 if test ${GCC} = yes && test "$ac_cflags_set" = no ; then 434 438 CFLAGS="-O3 -w -fomit-frame-pointer" 435 439 fi -
Singular/grammar.y
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: grammar.y,v 1. 9 1997-04-30 17:44:37 SingularExp $ */4 /* $Id: grammar.y,v 1.10 1997-06-04 19:45:14 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: SINGULAR shell grammatik … … 1072 1072 | HELP_CMD 1073 1073 { 1074 #ifdef buildin_help1075 1074 char *s=(char *)Alloc(10); 1076 1075 strcpy(s,"index"); 1077 1076 singular_help(s,FALSE); 1078 1077 Free((ADDRESS)s,10); 1079 #else1080 system("info singular");1081 #endif1082 1078 } 1083 1079 | EXAMPLE_CMD STRINGTOK -
Singular/ideals.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ideals.cc,v 1.7 1997-05-21 13:05:12 obachman Exp $ */5 4 /* 6 5 * ABSTRACT - all basic methods to manipulate ideals … … 949 948 ideal first=h2,second=h1,temp,temp1,result; 950 949 int i,j,k,flength,slength,length,rank=min(h1->rank,h2->rank); 950 intvec *w; 951 951 poly p,q; 952 952 … … 994 994 } 995 995 pSetSyzComp(length); 996 temp1 = std(temp,currQuotient,(tHomog)FALSE,NULL,NULL,length); 996 temp1 = std(temp,currQuotient,testHomog,&w,NULL,length); 997 if (w!=NULL) delete w; 997 998 pSetSyzComp(0); 998 999 idDelete(&temp); … … 2659 2660 ideal temp,temp1; 2660 2661 int i,j,k,rk,flength=0,slength,length; 2662 intvec * w; 2661 2663 poly p,q; 2662 2664 … … 2703 2705 } 2704 2706 pSetSyzComp(length); 2705 temp1 = std(temp,currQuotient, (tHomog)FALSE,NULL,NULL,length);2707 temp1 = std(temp,currQuotient,testHomog,&w,NULL,length); 2706 2708 pSetSyzComp(0); 2707 2709 idDelete(&temp); 2710 if (w!=NULL) delete w; 2708 2711 for (i=0;i<IDELEMS(temp1);i++) 2709 2712 { -
Singular/iparith.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.27 1997-05-20 08:52:05 Singular Exp $ */5 4 /* 6 5 * ABSTRACT: table driven kernel interface, used by interpreter … … 3693 3692 ,{jjRES3, MRES_CMD, NONE, MODUL_CMD, INT_CMD, ANY_TYPE } 3694 3693 ,{jjPREIMAGE, PREIMAGE_CMD, IDEAL_CMD, RING_CMD, ANY_TYPE, ANY_TYPE } 3694 ,{jjPREIMAGE, PREIMAGE_CMD, IDEAL_CMD, QRING_CMD, ANY_TYPE, ANY_TYPE } 3695 3695 ,{jjRANDOM_Im, RANDOM_CMD, INTMAT_CMD, INT_CMD, INT_CMD, INT_CMD } 3696 3696 ,{jjREDUCE3_P, REDUCE_CMD, POLY_CMD, POLY_CMD, IDEAL_CMD, INT_CMD } -
Singular/ipassign.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ipassign.cc,v 1.11 1997-05-23 15:00:01 Singular Exp $ */5 6 4 /* 7 5 * ABSTRACT: interpreter: … … 261 259 j=i; i=1; 262 260 // for ideal/module: check indices 263 if ((res->rtyp!=MAP_CMD) &&(j>MATCOLS(m))) 264 { 265 pEnlargeSet(&(m->m),MATCOLS(m),j-MATCOLS(m)); 266 MATCOLS(m)=j; 267 } 261 if (res->rtyp!=MAP_CMD) 262 { 263 if (j>MATCOLS(m)) 264 { 265 pEnlargeSet(&(m->m),MATCOLS(m),j-MATCOLS(m)); 266 MATCOLS(m)=j; 267 } 268 else if (j<=0) 269 { 270 Werror("index[%d] must be positive",j/*e->start*/); 271 return TRUE; 272 } 273 } 268 274 } 269 275 else -
Singular/kstd2.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: kstd2.cc,v 1. 3 1997-04-02 15:07:16 SingularExp $ */4 /* $Id: kstd2.cc,v 1.4 1997-06-04 19:45:20 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - Kernel: alg. of Buchberger … … 284 284 return; 285 285 } 286 else if (strat->syzComp!=0)287 {288 if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp))289 {290 //pContent((*h).p);291 pCleardenom((*h).p);// also does a pContent286 // else if (strat->syzComp!=0) 287 // { 288 // if ((strat->syzComp>0) && (pMinComp((*h).p) > strat->syzComp)) 289 // { 290 // //pContent((*h).p); 291 // pCleardenom((*h).p);// also does a pContent 292 292 /* 293 293 * (*h).length=pLength0((*h).p); 294 294 */ 295 k=strat->posInT(strat->T,strat->tl,(*h));296 enterTBba((*h),k,strat);297 return;298 }299 }295 // k=strat->posInT(strat->T,strat->tl,(*h)); 296 // enterTBba((*h),k,strat); 297 // return; 298 // } 299 // } 300 300 /*- try to reduce the s-polynomial -*/ 301 301 j = 0; -
Singular/longrat0.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longrat0.cc,v 1. 4 1997-04-12 16:04:41 SingularExp $ */4 /* $Id: longrat0.cc,v 1.5 1997-06-04 19:45:21 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - … … 74 74 if (mpz_cmp_si(n,(long)0)==0) 75 75 { 76 PrintS("\nZero Denominator\n");76 WerrorS("Zero Denominator"); 77 77 mpz_clear(n); 78 78 (*a)->s = 3; -
Singular/misc.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: misc.cc,v 1.14 1997-05-21 13:05:15 obachman Exp $ */5 4 /* 6 5 * ABSTRACT: … … 386 385 #else 387 386 char tmp[150]; 387 char tmp2[150]; 388 char strstr[100]; 388 389 sprintf(tmp,"%s/singular.hlp", SINGULAR_INFODIR); 390 if (strcmp(str,"index")==0) 391 strstr[0]='\0'; 392 else 393 sprintf(strstr," Index \"%s\"",str); 389 394 if (!access(tmp, R_OK)) 390 sprintf(tmp, "info -f %s/singular.hlp Index \"%s\"", 391 SINGULAR_INFODIR, str); 395 { 396 sprintf(tmp, "info -f %s/singular.hlp %s", SINGULAR_INFODIR, strstr); 397 } 392 398 else 393 sprintf(tmp,"info singular Index \"%s\"",str); 399 { 400 FILE *fd = feFopen("singular.hlp", "r", tmp2, FALSE); 401 if (fd != NULL) 402 { 403 fclose(fd); 404 sprintf(tmp, "info -f %s %s", tmp2,strstr); 405 } 406 else 407 sprintf(tmp,"info singular %s",strstr); 408 } 394 409 system(tmp); 395 410 #ifndef MSDOS -
Singular/modulop.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: modulop.cc,v 1. 6 1997-05-02 15:10:22 SingularExp $ */4 /* $Id: modulop.cc,v 1.7 1997-06-04 19:45:22 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: numbers modulo p (<=32003) … … 92 92 BOOLEAN npIsMOne (number a) 93 93 { 94 return npPminus1M == (int)a;94 return ((npPminus1M == (int)a)&&(1!=(int)a)); 95 95 } 96 96 97 97 number npDiv (number a,number b) 98 98 { 99 #ifdef LDEBUG100 99 if ((int)a==0) 101 100 return (number)0; … … 105 104 return (number)0; 106 105 } 107 #else108 if (((int)a==0) || ((int)b==0))109 return (number)0;110 #endif111 106 else 112 107 { -
Singular/polys.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys.cc,v 1. 3 1997-04-02 15:07:44 SingularExp $ */4 /* $Id: polys.cc,v 1.4 1997-06-04 19:45:23 obachman Exp $ */ 5 5 6 6 /* … … 1371 1371 case ringorder_c: 1372 1372 case ringorder_C: 1373 break; 1373 1374 case ringorder_a: 1374 break; 1375 for (k=block0[i];k<=block1[i];k++) 1376 { // only one line 1377 j+=p->exp[k]*polys_wv[i][k-block0[i]]; 1378 } 1379 return j; 1375 1380 } 1376 1381 } … … 1783 1788 else 1784 1789 { 1785 pLexOrder=TRUE;1790 //pLexOrder=TRUE; 1786 1791 pVectorOut=orders[0]==ringorder_c; 1792 if ((pVectorOut)||(orders[0]==ringorder_C)) 1793 { 1794 if(block1[1]!=pVariables) pLexOrder=TRUE; 1795 } 1796 else 1797 { 1798 if(block1[0]!=pVariables) pLexOrder=TRUE; 1799 } 1787 1800 /*the number of orderings:*/ 1788 1801 i = 0; -
Singular/subexpr.cc
r99be05 r4c001a 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: subexpr.cc,v 1.19 1997-05-23 18:08:27 Singular Exp $ */5 6 4 /* 7 5 * ABSTRACT: handling of leftv … … 505 503 void *x=data; 506 504 if (rtyp==VNOETHER) x=(void *)pCopy(ppNoether); 505 else if ((rtyp==VMINPOLY)&& (currRing->minpoly!=NULL)&&(currRing->ch<2)) 506 x=(void *)nCopy(currRing->minpoly); 507 507 data=NULL; 508 508 return x; … … 576 576 void * sleftv::CopyD() 577 577 { 578 if ((rtyp!=IDHDL)&&(e==NULL)) 578 if ((rtyp!=IDHDL)&&(e==NULL) 579 &&(rtyp!=VNOETHER)&&(rtyp!=VMINPOLY)) 579 580 { 580 581 void *x=data; 581 if (rtyp==VNOETHER) x=(void *)pCopy(ppNoether);582 582 data=NULL; 583 583 return x; -
configure
r99be05 r4c001a 556 556 557 557 558 # Do some error checking and defaulting for the host and target type.559 # The inputs are:560 # configure --host=HOST --target=TARGET --build=BUILD NONOPT561 #562 # The rules are:563 # 1. You are not allowed to specify --host, --target, and nonopt at the564 # same time.565 # 2. Host defaults to nonopt.566 # 3. If nonopt is not specified, then host defaults to the current host,567 # as determined by config.guess.568 # 4. Target and build default to nonopt.569 # 5. If nonopt is not specified, then target and build default to host.570 571 # The aliases save the names the user supplied, while $host etc.572 # will get canonicalized.573 case $host---$target---$nonopt in574 NONE---*---* | *---NONE---* | *---*---NONE) ;;575 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;576 esac577 578 579 558 # Make sure we can run config.sub. 580 559 if $ac_config_sub sun4 >/dev/null 2>&1; then : … … 602 581 echo "$ac_t""$host" 1>&6 603 582 604 echo $ac_n "checking target system type""... $ac_c" 1>&6605 606 target_alias=$target607 case "$target_alias" in608 NONE)609 case $nonopt in610 NONE) target_alias=$host_alias ;;611 *) target_alias=$nonopt ;;612 esac ;;613 esac614 615 target=`$ac_config_sub $target_alias`616 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`617 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`618 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`619 echo "$ac_t""$target" 1>&6620 621 echo $ac_n "checking build system type""... $ac_c" 1>&6622 623 build_alias=$build624 case "$build_alias" in625 NONE)626 case $nonopt in627 NONE) build_alias=$host_alias ;;628 *) build_alias=$nonopt ;;629 esac ;;630 esac631 632 build=`$ac_config_sub $build_alias`633 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`634 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`635 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`636 echo "$ac_t""$build" 1>&6637 638 test "$host_alias" != "$target_alias" &&639 test "$program_prefix$program_suffix$program_transform_name" = \640 NONENONEs,x,x, &&641 program_prefix=${target_alias}-642 583 643 584 … … 729 670 #endif 730 671 EOF 731 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure: 732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then672 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 732 673 ac_cv_prog_gcc=yes 733 674 else … … 781 722 # not just through cpp. 782 723 cat > conftest.$ac_ext <<EOF 783 #line 7 84"configure"724 #line 725 "configure" 784 725 #include "confdefs.h" 785 726 #include <assert.h> … … 787 728 EOF 788 729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 789 { (eval echo configure:7 90: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }730 { (eval echo configure:731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 790 731 ac_err=`grep -v '^ *+' conftest.out` 791 732 if test -z "$ac_err"; then … … 796 737 CPP="${CC-cc} -E -traditional-cpp" 797 738 cat > conftest.$ac_ext <<EOF 798 #line 7 99"configure"739 #line 740 "configure" 799 740 #include "confdefs.h" 800 741 #include <assert.h> … … 802 743 EOF 803 744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 804 { (eval echo configure: 805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }745 { (eval echo configure:746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 805 746 ac_err=`grep -v '^ *+' conftest.out` 806 747 if test -z "$ac_err"; then … … 824 765 echo $ac_n "checking for AIX""... $ac_c" 1>&6 825 766 cat > conftest.$ac_ext <<EOF 826 #line 827"configure"767 #line 768 "configure" 827 768 #include "confdefs.h" 828 769 #ifdef _AIX … … 879 820 else 880 821 cat > conftest.$ac_ext <<EOF 881 #line 8 82"configure"822 #line 823 "configure" 882 823 #include "confdefs.h" 883 824 #ifdef _AIX … … 913 854 LIBS="-lm $LIBS" 914 855 cat > conftest.$ac_ext <<EOF 915 #line 916"configure"856 #line 857 "configure" 916 857 #include "confdefs.h" 917 858 /* Override any gcc2 internal prototype to avoid an error. */ … … 923 864 ; return 0; } 924 865 EOF 925 if { (eval echo configure: 926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then866 if { (eval echo configure:867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 926 867 rm -rf conftest* 927 868 eval "ac_cv_lib_$ac_lib_var=yes" … … 955 896 LIBS="-lgmp $LIBS" 956 897 cat > conftest.$ac_ext <<EOF 957 #line 958"configure"898 #line 899 "configure" 958 899 #include "confdefs.h" 959 900 /* Override any gcc2 internal prototype to avoid an error. */ … … 965 906 ; return 0; } 966 907 EOF 967 if { (eval echo configure:9 68: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then908 if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 968 909 rm -rf conftest* 969 910 eval "ac_cv_lib_$ac_lib_var=yes" … … 997 938 LIBS="-lMP $LIBS" 998 939 cat > conftest.$ac_ext <<EOF 999 #line 1000"configure"940 #line 941 "configure" 1000 941 #include "confdefs.h" 1001 942 /* Override any gcc2 internal prototype to avoid an error. */ … … 1007 948 ; return 0; } 1008 949 EOF 1009 if { (eval echo configure: 1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then950 if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1010 951 rm -rf conftest* 1011 952 eval "ac_cv_lib_$ac_lib_var=yes" … … 1039 980 LIBS="-lMPT $LIBS" 1040 981 cat > conftest.$ac_ext <<EOF 1041 #line 1042"configure"982 #line 983 "configure" 1042 983 #include "confdefs.h" 1043 984 /* Override any gcc2 internal prototype to avoid an error. */ … … 1049 990 ; return 0; } 1050 991 EOF 1051 if { (eval echo configure: 1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then992 if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1052 993 rm -rf conftest* 1053 994 eval "ac_cv_lib_$ac_lib_var=yes" … … 1081 1022 LIBS="-lsingcf $LIBS" 1082 1023 cat > conftest.$ac_ext <<EOF 1083 #line 10 84"configure"1024 #line 1025 "configure" 1084 1025 #include "confdefs.h" 1085 1026 /* Override any gcc2 internal prototype to avoid an error. */ … … 1091 1032 ; return 0; } 1092 1033 EOF 1093 if { (eval echo configure:10 94: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1034 if { (eval echo configure:1035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1094 1035 rm -rf conftest* 1095 1036 eval "ac_cv_lib_$ac_lib_var=yes" … … 1123 1064 LIBS="-lsingfac $LIBS" 1124 1065 cat > conftest.$ac_ext <<EOF 1125 #line 1 126"configure"1066 #line 1067 "configure" 1126 1067 #include "confdefs.h" 1127 1068 /* Override any gcc2 internal prototype to avoid an error. */ … … 1133 1074 ; return 0; } 1134 1075 EOF 1135 if { (eval echo configure:1 136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then1076 if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1136 1077 rm -rf conftest* 1137 1078 eval "ac_cv_lib_$ac_lib_var=yes" … … 1166 1107 else 1167 1108 cat > conftest.$ac_ext <<EOF 1168 #line 11 69"configure"1109 #line 1110 "configure" 1169 1110 #include "confdefs.h" 1170 1111 #include <$ac_hdr> 1171 1112 EOF 1172 1113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1173 { (eval echo configure:11 74: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1114 { (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1174 1115 ac_err=`grep -v '^ *+' conftest.out` 1175 1116 if test -z "$ac_err"; then … … 1208 1149 fi 1209 1150 1210 if test "$ac_cv_lib_singcf_ initCanonicalForm" = yes && \1151 if test "$ac_cv_lib_singcf_atof" = yes && \ 1211 1152 test "$ac_cv_header_factory_h" = yes; then 1212 1153 ac_factory_ok=yes 1213 1154 fi 1214 1155 1215 if test "$ac_cv_lib_singfac_ IrrCharSeries" = yes && \1156 if test "$ac_cv_lib_singfac_atof" = yes && \ 1216 1157 test "$ac_cv_header_factor_h" = yes; then 1217 1158 ac_libfac_ok=yes … … 1649 1590 s%@host_vendor@%$host_vendor%g 1650 1591 s%@host_os@%$host_os%g 1651 s%@target@%$target%g1652 s%@target_alias@%$target_alias%g1653 s%@target_cpu@%$target_cpu%g1654 s%@target_vendor@%$target_vendor%g1655 s%@target_os@%$target_os%g1656 s%@build@%$build%g1657 s%@build_alias@%$build_alias%g1658 s%@build_cpu@%$build_cpu%g1659 s%@build_vendor@%$build_vendor%g1660 s%@build_os@%$build_os%g1661 1592 s%@CC@%$CC%g 1662 1593 s%@CPP@%$CPP%g -
configure.in
r99be05 r4c001a 3 3 AC_PREFIX_DEFAULT(`pwd`) 4 4 5 AC_CANONICAL_SYSTEM 5 AC_CANONICAL_HOST 6 AC_SUBST(host) 6 7 7 8 … … 81 82 fi 82 83 83 if test "$ac_cv_lib_singcf_ initCanonicalForm" = yes && \84 if test "$ac_cv_lib_singcf_atof" = yes && \ 84 85 test "$ac_cv_header_factory_h" = yes; then 85 86 ac_factory_ok=yes 86 87 fi 87 88 88 if test "$ac_cv_lib_singfac_ IrrCharSeries" = yes && \89 if test "$ac_cv_lib_singfac_atof" = yes && \ 89 90 test "$ac_cv_header_factor_h" = yes; then 90 91 ac_libfac_ok=yes
Note: See TracChangeset
for help on using the changeset viewer.