Changeset 4c001a in git


Ignore:
Timestamp:
Jun 4, 1997, 9:45:25 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b52fc4b2495505785981d640dcf7eb3e456778ef')
Children:
2206a717d905cdcfb54e169f7df11258eb0eae8b
Parents:
99be05a16bba53f0fffb47fbae6830f04636e00a
Message:
Merged fixes from 1-0-0 release


git-svn-id: file:///usr/local/Singular/svn/trunk@358 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    r99be05 r4c001a  
    55
    66DISTNAME        = ${PRODUCT}-full-${VERSION}
     7BINDISTNAME     = ${PRODUCT}-${VERSION}.@host@
     8SHAREDISTNAME   = ${PRODUCT}-${VERSION}-share
     9MKINSTALLDIRS   = ./mkinstalldirs
    710
    811@SET_MAKE@
    912BUILD_SUBDIRS   = @CONFIG_SUBDIRS@
    1013SUBDIRS         = @SUBDIRS@
     14
     15prefix          = @prefix@
     16exec_prefix     = @exec_prefix@
     17infodir         = @infodir@
     18datadir         = @datadir@
     19bindir          = @bindir@
    1120
    1221TEMPDIR         = /tmp
     
    4049
    4150dist:
    42         rm -rf ${DISTNAME}.tar* ${TEMPDIR}/${DISTNAME}*
     51        rm -rf ${DISTNAME}.tar* ${TEMPDIR}/${DISTNAME}* 
    4352        mkdir ${TEMPDIR}/${DISTNAME}
    4453        - cp -pR . ${TEMPDIR}/${DISTNAME}
     
    4857        - gzip -9 ${TEMPDIR}/${DISTNAME}.tar
    4958        - mv ${TEMPDIR}/${DISTNAME}.tar.gz .
     59
     60bindist: ${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
     76sharedist: ${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
    5099
    51100Singular factory libfac MP gmp:
  • Singular/ChangeLog

    r99be05 r4c001a  
    2020        * misc.cc: Added / to Help_File and Info_File
    2121
     22Sun 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
     27Fri 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
    2231Wed 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
    2334
    2435        * 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 Singular Exp $
     1// $Id: all.lib,v 1.2 1997-06-04 19:45:25 obachman Exp $
    22///////////////////////////////////////////////////////////////////////////////
    33
     
    66///////////////////////////////////////////////////////////////////////////////
    77
    8 LIB "cs.lib";
    98LIB "deform.lib";
    109LIB "elim.lib";
  • Singular/README

    r99be05 r4c001a  
    2424
    2525If you receive this file as part of a complete Singular distribution,
    26 see also the README, COPYING, and INSTALL files contained in the top
     26see also the README.src, COPYING.src, and INSTALL files contained in the top
    2727directory of the full Singular distribution.
    2828
     
    6868             www.mathematik.uni-kl.de:/pub/Math/Singular
    6969
    70 Binary versions of Singular for some common hard- and software
     70Binary versions of Singular for common hard- and software
    7171platforms are contained in the files Singular-1.0.<platform>.gz where
    7272<platform> is, for example, 'linux', 'SunOS', etc.  See the file
     
    7474binaries.
    7575
    76 The source code of Singular is distributed in two versions:
     76Architecture - independent files (such as libraries written in the
     77Singular programming language, and the Singular documentation) are
     78distributed as Singular-1.0-share.tar.gz. See the file README.share
     79for more information.
     80
     81In general, Singular is only available as binary program. For
     82exceptions, you may contact us at
     83        singular@mathematik.uni-kl.de
     84
     85The source is distributed in two versions:
    7786  1. A full source distribution of Singular is contained in
    7887     Singular-full-1.0.tar.gz.  This (gzip'ed and tar'ed) file
     
    8695     only, i.e., it comes WITHOUT the sources for any of the add-on
    8796     packages.
    88 See the file README.src for further information on the distribution of
    89 Singular sources.
     97
    9098
    9199Documentation to Singular is distributed as:
     
    96104singular.hlp.gz          - Reference manual in Info format
    97105Singular-1.0.html.tar.gz - Reference manual in html format
    98 See the file README.doc for further information on the distribution of
    99 Singular documentation.
    100 
    101 Libraries written in Singular's programming language are contained in
    102 the file Singular-1.0.LIB.tar.gz.
    103106
    104107
  • Singular/attrib.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: attrib.cc,v 1.6 1997-05-22 16:05:04 Singular Exp $ */
    5 
    64/*
    75* ABSTRACT: attributes to leftv and idhdl
  • Singular/clapsing.cc

    r99be05 r4c001a  
    33*  Computer Algebra System SINGULAR     *
    44****************************************/
    5 // $Id: clapsing.cc,v 1.6 1997-05-05 13:40:03 obachman Exp $
     5// $Id: clapsing.cc,v 1.7 1997-06-04 19:45:09 obachman Exp $
    66/*
    77* ABSTRACT: interface between Singular and factory
     
    225225  if ( nGetChar() == 1 )
    226226    setCharacteristic( 0 );
     227  else  if ( nGetChar() == -1 )
     228    return; /* not implemented for R */
    227229  else  if ( nGetChar() < 0 )
    228230    setCharacteristic( -nGetChar() );
     
    279281
    280282  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  }
    281292  Off(SW_RATIONAL);
    282293  On(SW_SYMMETRIC_FF);
     
    362373    if (with_exps!=1)
    363374    {
    364       if (with_exps==2)
     375      if ((with_exps==2)&&(n>1))
    365376      {
    366377        n--;
  • Singular/configure

    r99be05 r4c001a  
    590590
    591591if test "${CXXFLAGS+set}" != set; then
     592  ac_cxxflags_set=no
    592593  CXXFLAGS="-O"
    593594fi
    594595if test "${CFLAGS+set}" != set; then
    595596  CFLAGS="-O"
     597  ac_cflags_set=no
    596598fi
    597599
     
    682684#endif
    683685EOF
    684 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     686if { 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
    685687  ac_cv_prog_gcc=yes
    686688else
     
    734736  # not just through cpp.
    735737  cat > conftest.$ac_ext <<EOF
    736 #line 737 "configure"
     738#line 739 "configure"
    737739#include "confdefs.h"
    738740#include <assert.h>
     
    740742EOF
    741743ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    742 { (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     744{ (eval echo configure:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    743745ac_err=`grep -v '^ *+' conftest.out`
    744746if test -z "$ac_err"; then
     
    749751  CPP="${CC-cc} -E -traditional-cpp"
    750752  cat > conftest.$ac_ext <<EOF
    751 #line 752 "configure"
     753#line 754 "configure"
    752754#include "confdefs.h"
    753755#include <assert.h>
     
    755757EOF
    756758ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    757 { (eval echo configure:758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     759{ (eval echo configure:760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    758760ac_err=`grep -v '^ *+' conftest.out`
    759761if test -z "$ac_err"; then
     
    818820#endif
    819821EOF
    820 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     822if { 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
    821823  ac_cv_prog_gxx=yes
    822824else
     
    10111013LIBS="-lm  $LIBS"
    10121014cat > conftest.$ac_ext <<EOF
    1013 #line 1014 "configure"
     1015#line 1016 "configure"
    10141016#include "confdefs.h"
    10151017/* Override any gcc2 internal prototype to avoid an error.  */
     
    10211023; return 0; }
    10221024EOF
    1023 if { (eval echo configure:1024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1025if { (eval echo configure:1026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    10241026  rm -rf conftest*
    10251027  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10531055LIBS="-lbsd  $LIBS"
    10541056cat > conftest.$ac_ext <<EOF
    1055 #line 1056 "configure"
     1057#line 1058 "configure"
    10561058#include "confdefs.h"
    10571059/* Override any gcc2 internal prototype to avoid an error.  */
     
    10631065; return 0; }
    10641066EOF
    1065 if { (eval echo configure:1066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1067if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    10661068  rm -rf conftest*
    10671069  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10951097LIBS="-lsocket  $LIBS"
    10961098cat > conftest.$ac_ext <<EOF
    1097 #line 1098 "configure"
     1099#line 1100 "configure"
    10981100#include "confdefs.h"
    10991101/* Override any gcc2 internal prototype to avoid an error.  */
     
    11051107; return 0; }
    11061108EOF
    1107 if { (eval echo configure:1108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1109if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11081110  rm -rf conftest*
    11091111  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11371139LIBS="-lnsl  $LIBS"
    11381140cat > conftest.$ac_ext <<EOF
    1139 #line 1140 "configure"
     1141#line 1142 "configure"
    11401142#include "confdefs.h"
    11411143/* Override any gcc2 internal prototype to avoid an error.  */
     
    11471149; return 0; }
    11481150EOF
    1149 if { (eval echo configure:1150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1151if { (eval echo configure:1152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11501152  rm -rf conftest*
    11511153  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11811183LIBS="-lncurses  $LIBS"
    11821184cat > conftest.$ac_ext <<EOF
    1183 #line 1184 "configure"
     1185#line 1186 "configure"
    11841186#include "confdefs.h"
    11851187/* Override any gcc2 internal prototype to avoid an error.  */
     
    11911193; return 0; }
    11921194EOF
    1193 if { (eval echo configure:1194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1195if { (eval echo configure:1196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11941196  rm -rf conftest*
    11951197  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12221224LIBS="-lcurses  $LIBS"
    12231225cat > conftest.$ac_ext <<EOF
    1224 #line 1225 "configure"
     1226#line 1227 "configure"
    12251227#include "confdefs.h"
    12261228/* Override any gcc2 internal prototype to avoid an error.  */
     
    12321234; return 0; }
    12331235EOF
    1234 if { (eval echo configure:1235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1236if { (eval echo configure:1237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12351237  rm -rf conftest*
    12361238  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12631265LIBS="-ltermcap  $LIBS"
    12641266cat > conftest.$ac_ext <<EOF
    1265 #line 1266 "configure"
     1267#line 1268 "configure"
    12661268#include "confdefs.h"
    12671269/* Override any gcc2 internal prototype to avoid an error.  */
     
    12731275; return 0; }
    12741276EOF
    1275 if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1277if { (eval echo configure:1278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12761278  rm -rf conftest*
    12771279  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13091311LIBS="-lreadline  $LIBS"
    13101312cat > conftest.$ac_ext <<EOF
    1311 #line 1312 "configure"
     1313#line 1314 "configure"
    13121314#include "confdefs.h"
    13131315/* Override any gcc2 internal prototype to avoid an error.  */
     
    13191321; return 0; }
    13201322EOF
    1321 if { (eval echo configure:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1323if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    13221324  rm -rf conftest*
    13231325  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13521354else
    13531355  cat > conftest.$ac_ext <<EOF
    1354 #line 1355 "configure"
     1356#line 1357 "configure"
    13551357#include "confdefs.h"
    13561358#include <$ac_hdr>
    13571359EOF
    13581360ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1359 { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1361{ (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    13601362ac_err=`grep -v '^ *+' conftest.out`
    13611363if test -z "$ac_err"; then
     
    14111413LIBS="-ldbm  $LIBS"
    14121414cat > conftest.$ac_ext <<EOF
    1413 #line 1414 "configure"
     1415#line 1416 "configure"
    14141416#include "confdefs.h"
    14151417/* Override any gcc2 internal prototype to avoid an error.  */
     
    14211423; return 0; }
    14221424EOF
    1423 if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1425if { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    14241426  rm -rf conftest*
    14251427  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14481450LIBS="-lgdbm  $LIBS"
    14491451cat > conftest.$ac_ext <<EOF
    1450 #line 1451 "configure"
     1452#line 1453 "configure"
    14511453#include "confdefs.h"
    14521454/* Override any gcc2 internal prototype to avoid an error.  */
     
    14581460; return 0; }
    14591461EOF
    1460 if { (eval echo configure:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1462if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    14611463  rm -rf conftest*
    14621464  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14931495LIBS="-ldld  $LIBS"
    14941496cat > conftest.$ac_ext <<EOF
    1495 #line 1496 "configure"
     1497#line 1498 "configure"
    14961498#include "confdefs.h"
    14971499/* Override any gcc2 internal prototype to avoid an error.  */
     
    15031505; return 0; }
    15041506EOF
    1505 if { (eval echo configure:1506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1507if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15061508  rm -rf conftest*
    15071509  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15451547LIBS="-lgmp  $LIBS"
    15461548cat > conftest.$ac_ext <<EOF
    1547 #line 1548 "configure"
     1549#line 1550 "configure"
    15481550#include "confdefs.h"
    15491551/* Override any gcc2 internal prototype to avoid an error.  */
     
    15551557; return 0; }
    15561558EOF
    1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1559if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15581560  rm -rf conftest*
    15591561  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15851587else
    15861588  cat > conftest.$ac_ext <<EOF
    1587 #line 1588 "configure"
     1589#line 1590 "configure"
    15881590#include "confdefs.h"
    15891591#include <gmp.h>
    15901592EOF
    15911593ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1592 { (eval echo configure:1593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1594{ (eval echo configure:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15931595ac_err=`grep -v '^ *+' conftest.out`
    15941596if test -z "$ac_err"; then
     
    16441646LIBS="-lMP  $LIBS"
    16451647cat > conftest.$ac_ext <<EOF
    1646 #line 1647 "configure"
     1648#line 1649 "configure"
    16471649#include "confdefs.h"
    16481650/* Override any gcc2 internal prototype to avoid an error.  */
     
    16541656; return 0; }
    16551657EOF
    1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1658if { (eval echo configure:1659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16571659  rm -rf conftest*
    16581660  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16861688LIBS="-lMPT  $LIBS"
    16871689cat > conftest.$ac_ext <<EOF
    1688 #line 1689 "configure"
     1690#line 1691 "configure"
    16891691#include "confdefs.h"
    16901692/* Override any gcc2 internal prototype to avoid an error.  */
     
    16961698; return 0; }
    16971699EOF
    1698 if { (eval echo configure:1699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1700if { (eval echo configure:1701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16991701  rm -rf conftest*
    17001702  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17291731else
    17301732  cat > conftest.$ac_ext <<EOF
    1731 #line 1732 "configure"
     1733#line 1734 "configure"
    17321734#include "confdefs.h"
    17331735#include <$ac_hdr>
    17341736EOF
    17351737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1736 { (eval echo configure:1737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1738{ (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17371739ac_err=`grep -v '^ *+' conftest.out`
    17381740if test -z "$ac_err"; then
     
    17971799LIBS="-lsingcf  $LIBS"
    17981800cat > conftest.$ac_ext <<EOF
    1799 #line 1800 "configure"
     1801#line 1802 "configure"
    18001802#include "confdefs.h"
    18011803/* Override any gcc2 internal prototype to avoid an error.  */
     
    18071809; return 0; }
    18081810EOF
    1809 if { (eval echo configure:1810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1811if { (eval echo configure:1812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    18101812  rm -rf conftest*
    18111813  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18401842else
    18411843  cat > conftest.$ac_ext <<EOF
    1842 #line 1843 "configure"
     1844#line 1845 "configure"
    18431845#include "confdefs.h"
    18441846#include <$ac_hdr>
    18451847EOF
    18461848ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1847 { (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1849{ (eval echo configure:1850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18481850ac_err=`grep -v '^ *+' conftest.out`
    18491851if test -z "$ac_err"; then
     
    19061908LIBS="-lsingfac  $LIBS"
    19071909cat > conftest.$ac_ext <<EOF
    1908 #line 1909 "configure"
     1910#line 1911 "configure"
    19091911#include "confdefs.h"
    19101912/* Override any gcc2 internal prototype to avoid an error.  */
     
    19161918; return 0; }
    19171919EOF
    1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1920if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    19191921  rm -rf conftest*
    19201922  eval "ac_cv_lib_$ac_lib_var=yes"
     
    19491951else
    19501952  cat > conftest.$ac_ext <<EOF
    1951 #line 1952 "configure"
     1953#line 1954 "configure"
    19521954#include "confdefs.h"
    19531955#include <$ac_hdr>
    19541956EOF
    19551957ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1956 { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1958{ (eval echo configure:1959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19571959ac_err=`grep -v '^ *+' conftest.out`
    19581960if test -z "$ac_err"; then
     
    20132015else
    20142016cat > conftest.$ac_ext <<EOF
    2015 #line 2016 "configure"
     2017#line 2018 "configure"
    20162018#include "confdefs.h"
    20172019main(){return(0);}
    20182020EOF
    2019 { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2021{ (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    20202022if test -s conftest && (./conftest; exit) 2>/dev/null; then
    20212023  ac_cv_c_cross=no
     
    20352037else
    20362038  cat > conftest.$ac_ext <<EOF
    2037 #line 2038 "configure"
     2039#line 2040 "configure"
    20382040#include "confdefs.h"
    20392041#include <stdlib.h>
     
    20432045EOF
    20442046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2045 { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2047{ (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20462048ac_err=`grep -v '^ *+' conftest.out`
    20472049if test -z "$ac_err"; then
     
    20582060  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    20592061cat > conftest.$ac_ext <<EOF
    2060 #line 2061 "configure"
     2062#line 2063 "configure"
    20612063#include "confdefs.h"
    20622064#include <string.h>
     
    20762078  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    20772079cat > conftest.$ac_ext <<EOF
    2078 #line 2079 "configure"
     2080#line 2081 "configure"
    20792081#include "confdefs.h"
    20802082#include <stdlib.h>
     
    20972099else
    20982100cat > conftest.$ac_ext <<EOF
    2099 #line 2100 "configure"
     2101#line 2102 "configure"
    21002102#include "confdefs.h"
    21012103#include <ctype.h>
     
    21082110
    21092111EOF
    2110 { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2112{ (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    21112113if test -s conftest && (./conftest; exit) 2>/dev/null; then
    21122114  :
     
    21362138else
    21372139  cat > conftest.$ac_ext <<EOF
    2138 #line 2139 "configure"
     2140#line 2141 "configure"
    21392141#include "confdefs.h"
    21402142#include <$ac_hdr>
    21412143EOF
    21422144ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2143 { (eval echo configure:2144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2145{ (eval echo configure:2146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21442146ac_err=`grep -v '^ *+' conftest.out`
    21452147if test -z "$ac_err"; then
     
    21752177else
    21762178  cat > conftest.$ac_ext <<EOF
    2177 #line 2178 "configure"
     2179#line 2180 "configure"
    21782180#include "confdefs.h"
    21792181#include <$ac_hdr>
    21802182EOF
    21812183ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2182 { (eval echo configure:2183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2184{ (eval echo configure:2185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21832185ac_err=`grep -v '^ *+' conftest.out`
    21842186if test -z "$ac_err"; then
     
    22102212else
    22112213  cat > conftest.$ac_ext <<EOF
    2212 #line 2213 "configure"
     2214#line 2215 "configure"
    22132215#include "confdefs.h"
    22142216
     
    22602262; return 0; }
    22612263EOF
    2262 if { (eval echo configure:2263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2264if { (eval echo configure:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22632265  rm -rf conftest*
    22642266  ac_cv_c_const=yes
     
    22862288for ac_kw in inline __inline__ __inline; do
    22872289  cat > conftest.$ac_ext <<EOF
    2288 #line 2289 "configure"
     2290#line 2291 "configure"
    22892291#include "confdefs.h"
    22902292
     
    22942296; return 0; }
    22952297EOF
    2296 if { (eval echo configure:2297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2298if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22972299  rm -rf conftest*
    22982300  ac_cv_c_inline=$ac_kw; break
     
    23222324else
    23232325  cat > conftest.$ac_ext <<EOF
    2324 #line 2325 "configure"
     2326#line 2327 "configure"
    23252327#include "confdefs.h"
    23262328#include <sys/types.h>
     
    23532355else
    23542356  cat > conftest.$ac_ext <<EOF
    2355 #line 2356 "configure"
     2357#line 2358 "configure"
    23562358#include "confdefs.h"
    23572359#include <sys/types.h>
     
    23632365; return 0; }
    23642366EOF
    2365 if { (eval echo configure:2366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2367if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23662368  rm -rf conftest*
    23672369  ac_cv_header_time=yes
     
    23872389else
    23882390  cat > conftest.$ac_ext <<EOF
    2389 #line 2390 "configure"
     2391#line 2392 "configure"
    23902392#include "confdefs.h"
    23912393#include <sys/types.h>
     
    23962398; return 0; }
    23972399EOF
    2398 if { (eval echo configure:2399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2400if { (eval echo configure:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23992401  rm -rf conftest*
    24002402  ac_cv_struct_tm=time.h
     
    24232425else
    24242426  cat > conftest.$ac_ext <<EOF
    2425 #line 2426 "configure"
     2427#line 2428 "configure"
    24262428#include "confdefs.h"
    24272429#include <alloca.h>
     
    24312433; return 0; }
    24322434EOF
    2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2435if { (eval echo configure:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24342436  rm -rf conftest*
    24352437  ac_cv_header_alloca_h=yes
     
    24552457else
    24562458  cat > conftest.$ac_ext <<EOF
    2457 #line 2458 "configure"
     2459#line 2460 "configure"
    24582460#include "confdefs.h"
    24592461
     
    24792481; return 0; }
    24802482EOF
    2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2483if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24822484  rm -rf conftest*
    24832485  ac_cv_func_alloca=yes
     
    25142516else
    25152517  cat > conftest.$ac_ext <<EOF
    2516 #line 2517 "configure"
     2518#line 2519 "configure"
    25172519#include "confdefs.h"
    25182520#if defined(CRAY) && ! defined(CRAY2)
     
    25432545else
    25442546  cat > conftest.$ac_ext <<EOF
    2545 #line 2546 "configure"
     2547#line 2548 "configure"
    25462548#include "confdefs.h"
    25472549/* System header to define __stub macros and hopefully few prototypes,
     
    25652567; return 0; }
    25662568EOF
    2567 if { (eval echo configure:2568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2569if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    25682570  rm -rf conftest*
    25692571  eval "ac_cv_func_$ac_func=yes"
     
    25972599else
    25982600cat > conftest.$ac_ext <<EOF
    2599 #line 2600 "configure"
     2601#line 2602 "configure"
    26002602#include "confdefs.h"
    26012603find_stack_direction ()
     
    26162618}
    26172619EOF
    2618 { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2620{ (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    26192621if test -s conftest && (./conftest; exit) 2>/dev/null; then
    26202622  ac_cv_c_stack_direction=1
     
    26402642    ac_pattern="Autoconf.*'x'"
    26412643  cat > conftest.$ac_ext <<EOF
    2642 #line 2643 "configure"
     2644#line 2645 "configure"
    26432645#include "confdefs.h"
    26442646#include <sgtty.h>
     
    26582660  if test $ac_cv_prog_gcc_traditional = no; then
    26592661    cat > conftest.$ac_ext <<EOF
    2660 #line 2661 "configure"
     2662#line 2663 "configure"
    26612663#include "confdefs.h"
    26622664#include <termio.h>
     
    26862688else
    26872689  cat > conftest.$ac_ext <<EOF
    2688 #line 2689 "configure"
     2690#line 2691 "configure"
    26892691#include "confdefs.h"
    26902692/* System header to define __stub macros and hopefully few prototypes,
     
    27082710; return 0; }
    27092711EOF
    2710 if { (eval echo configure:2711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2712if { (eval echo configure:2713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    27112713  rm -rf conftest*
    27122714  eval "ac_cv_func_$ac_func=yes"
     
    27382740else
    27392741cat > conftest.$ac_ext <<EOF
    2740 #line 2741 "configure"
     2742#line 2743 "configure"
    27412743#include "confdefs.h"
    27422744
     
    28072809
    28082810EOF
    2809 { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2811{ (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    28102812if test -s conftest && (./conftest; exit) 2>/dev/null; then
    28112813  ac_cv_func_mmap=yes
     
    28302832else
    28312833  cat > conftest.$ac_ext <<EOF
    2832 #line 2833 "configure"
     2834#line 2835 "configure"
    28332835#include "confdefs.h"
    28342836#include <sys/types.h>
     
    28482850; return 0; }
    28492851EOF
    2850 if { (eval echo configure:2851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2852if { (eval echo configure:2853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    28512853  rm -rf conftest*
    28522854  ac_cv_type_signal=void
     
    28702872else
    28712873  cat > conftest.$ac_ext <<EOF
    2872 #line 2873 "configure"
     2874#line 2875 "configure"
    28732875#include "confdefs.h"
    28742876/* System header to define __stub macros and hopefully few prototypes,
     
    28922894; return 0; }
    28932895EOF
    2894 if { (eval echo configure:2895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2896if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    28952897  rm -rf conftest*
    28962898  eval "ac_cv_func_vprintf=yes"
     
    29182920else
    29192921  cat > conftest.$ac_ext <<EOF
    2920 #line 2921 "configure"
     2922#line 2923 "configure"
    29212923#include "confdefs.h"
    29222924/* System header to define __stub macros and hopefully few prototypes,
     
    29402942; return 0; }
    29412943EOF
    2942 if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2944if { (eval echo configure:2945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29432945  rm -rf conftest*
    29442946  eval "ac_cv_func__doprnt=yes"
     
    29692971else
    29702972  cat > conftest.$ac_ext <<EOF
    2971 #line 2972 "configure"
     2973#line 2974 "configure"
    29722974#include "confdefs.h"
    29732975/* System header to define __stub macros and hopefully few prototypes,
     
    29912993; return 0; }
    29922994EOF
    2993 if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2995if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29942996  rm -rf conftest*
    29952997  eval "ac_cv_func_$ac_func=yes"
     
    30233025else
    30243026cat > conftest.$ac_ext <<EOF
    3025 #line 3026 "configure"
     3027#line 3028 "configure"
    30263028#include "confdefs.h"
    30273029 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    30283030EOF
    3029 { (eval echo configure:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3031{ (eval echo configure:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30303032if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30313033  ac_cv_shift=yes
     
    30533055else
    30543056cat > conftest.$ac_ext <<EOF
    3055 #line 3056 "configure"
     3057#line 3058 "configure"
    30563058#include "confdefs.h"
    30573059 int main() {if (sizeof(int) == 4)  exit(0); else exit(1); }
    30583060EOF
    3059 { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3061{ (eval echo configure:3062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30603062if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30613063  ac_cv_sizeof_int_equals_four=yes
     
    30833085else
    30843086cat > conftest.$ac_ext <<EOF
    3085 #line 3086 "configure"
     3087#line 3088 "configure"
    30863088#include "confdefs.h"
    30873089 int main() {if (sizeof(long) == sizeof(void*))  exit(0); else exit(1); }
    30883090EOF
    3089 { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3091{ (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30903092if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30913093  ac_cv_sizeof_long_equals_voidp=yes
     
    31123114else
    31133115cat > conftest.$ac_ext <<EOF
    3114 #line 3115 "configure"
     3116#line 3117 "configure"
    31153117#include "confdefs.h"
    31163118#include <stdio.h>
    31173119 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    31183120EOF
    3119 { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3121{ (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31203122if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31213123  ac_cv_returns_n_of_chars=yes
     
    31453147else
    31463148cat > conftest.$ac_ext <<EOF
    3147 #line 3148 "configure"
     3149#line 3150 "configure"
    31483150#include "confdefs.h"
    31493151#include <stdio.h>
     
    31563158}
    31573159EOF
    3158 { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3160{ (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31593161if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31603162  ac_cv_sizeof_voidp=`cat conftestval`
     
    31783180else
    31793181  cat > conftest.$ac_ext <<EOF
    3180 #line 3181 "configure"
     3182#line 3183 "configure"
    31813183#include "confdefs.h"
    31823184#ifdef _AIX
     
    32053207
    32063208if 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
    32083212  CXXTEMPLFLAGS="-fno-implicit-templates"
    32093213  if test "$ac_cv_is_aix" = yes; then
    3210     CXXNOOPTFLAGS="-O -w -fomit-frame-pointer"
     3214    CXXNOOPTFLAGS="-w"
    32113215  else
    32123216    CXXNOOPTFLAGS=$CXXFLAGS
     
    32193223
    32203224
    3221 if test ${GCC} = yes; then
     3225if test ${GCC} = yes && test "$ac_cflags_set" = no ; then
    32223226  CFLAGS="-O3 -w -fomit-frame-pointer"
    32233227fi
  • Singular/configure.in

    r99be05 r4c001a  
    5555dnl we do not want to have "-g -O" for CFLAGS 
    5656if test "${CXXFLAGS+set}" != set; then
     57  ac_cxxflags_set=no
    5758  CXXFLAGS="-O"
    5859fi
    5960if test "${CFLAGS+set}" != set; then
    6061  CFLAGS="-O"
     62  ac_cflags_set=no
    6163fi
    6264
     
    417419
    418420if 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
    420424  CXXTEMPLFLAGS="-fno-implicit-templates"
    421425  if test "$ac_cv_is_aix" = yes; then
    422     CXXNOOPTFLAGS="-O -w -fomit-frame-pointer"
     426    CXXNOOPTFLAGS="-w"
    423427  else
    424428    CXXNOOPTFLAGS=$CXXFLAGS
     
    431435AC_SUBST(CXXNOOPTFLAGS)
    432436
    433 if test ${GCC} = yes; then
     437if test ${GCC} = yes && test "$ac_cflags_set" = no ; then
    434438  CFLAGS="-O3 -w -fomit-frame-pointer"
    435439fi
  • Singular/grammar.y

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: grammar.y,v 1.9 1997-04-30 17:44:37 Singular Exp $ */
     4/* $Id: grammar.y,v 1.10 1997-06-04 19:45:14 obachman Exp $ */
    55/*
    66* ABSTRACT: SINGULAR shell grammatik
     
    10721072        | HELP_CMD
    10731073          {
    1074 #ifdef buildin_help
    10751074            char *s=(char *)Alloc(10);
    10761075            strcpy(s,"index");
    10771076            singular_help(s,FALSE);
    10781077            Free((ADDRESS)s,10);
    1079 #else
    1080             system("info singular");
    1081 #endif
    10821078          }
    10831079        | EXAMPLE_CMD STRINGTOK
  • Singular/ideals.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.7 1997-05-21 13:05:12 obachman Exp $ */
    54/*
    65* ABSTRACT - all basic methods to manipulate ideals
     
    949948  ideal first=h2,second=h1,temp,temp1,result;
    950949  int i,j,k,flength,slength,length,rank=min(h1->rank,h2->rank);
     950  intvec *w;
    951951  poly p,q;
    952952
     
    994994  }
    995995  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;
    997998  pSetSyzComp(0);
    998999  idDelete(&temp);
     
    26592660  ideal temp,temp1;
    26602661  int i,j,k,rk,flength=0,slength,length;
     2662  intvec * w;
    26612663  poly p,q;
    26622664
     
    27032705  }
    27042706  pSetSyzComp(length);
    2705   temp1 = std(temp,currQuotient,(tHomog)FALSE,NULL,NULL,length);
     2707  temp1 = std(temp,currQuotient,testHomog,&w,NULL,length);
    27062708  pSetSyzComp(0);
    27072709  idDelete(&temp);
     2710  if (w!=NULL) delete w;
    27082711  for (i=0;i<IDELEMS(temp1);i++)
    27092712  {
  • Singular/iparith.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.27 1997-05-20 08:52:05 Singular Exp $ */
    54/*
    65* ABSTRACT: table driven kernel interface, used by interpreter
     
    36933692,{jjRES3,           MRES_CMD,   NONE,       MODUL_CMD,  INT_CMD,    ANY_TYPE }
    36943693,{jjPREIMAGE,       PREIMAGE_CMD, IDEAL_CMD, RING_CMD,  ANY_TYPE,   ANY_TYPE }
     3694,{jjPREIMAGE,       PREIMAGE_CMD, IDEAL_CMD, QRING_CMD, ANY_TYPE,   ANY_TYPE }
    36953695,{jjRANDOM_Im,      RANDOM_CMD, INTMAT_CMD, INT_CMD,    INT_CMD,    INT_CMD }
    36963696,{jjREDUCE3_P,      REDUCE_CMD, POLY_CMD,   POLY_CMD,   IDEAL_CMD,  INT_CMD }
  • Singular/ipassign.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.11 1997-05-23 15:00:01 Singular Exp $ */
    5 
    64/*
    75* ABSTRACT: interpreter:
     
    261259      j=i; i=1;
    262260      // 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      } 
    268274    }
    269275    else
  • Singular/kstd2.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: kstd2.cc,v 1.3 1997-04-02 15:07:16 Singular Exp $ */
     4/* $Id: kstd2.cc,v 1.4 1997-06-04 19:45:20 obachman Exp $ */
    55/*
    66*  ABSTRACT -  Kernel: alg. of Buchberger
     
    284284        return;
    285285      }
    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 pContent
     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 pContent
    292292/*
    293293*         (*h).length=pLength0((*h).p);
    294294*/
    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//      }
    300300      /*- try to reduce the s-polynomial -*/
    301301      j = 0;
  • Singular/longrat0.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longrat0.cc,v 1.4 1997-04-12 16:04:41 Singular Exp $ */
     4/* $Id: longrat0.cc,v 1.5 1997-06-04 19:45:21 obachman Exp $ */
    55/*
    66* ABSTRACT -
     
    7474      if (mpz_cmp_si(n,(long)0)==0)
    7575      {
    76         PrintS("\nZero Denominator\n");
     76        WerrorS("Zero Denominator");
    7777        mpz_clear(n);
    7878        (*a)->s = 3;
  • Singular/misc.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: misc.cc,v 1.14 1997-05-21 13:05:15 obachman Exp $ */
    54/*
    65* ABSTRACT:
     
    386385#else
    387386      char tmp[150];
     387      char tmp2[150];
     388      char strstr[100];
    388389      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); 
    389394      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      }
    392398      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      }
    394409      system(tmp);
    395410#ifndef MSDOS
  • Singular/modulop.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: modulop.cc,v 1.6 1997-05-02 15:10:22 Singular Exp $ */
     4/* $Id: modulop.cc,v 1.7 1997-06-04 19:45:22 obachman Exp $ */
    55/*
    66* ABSTRACT: numbers modulo p (<=32003)
     
    9292BOOLEAN npIsMOne (number a)
    9393{
    94   return npPminus1M == (int)a;
     94  return ((npPminus1M == (int)a)&&(1!=(int)a));
    9595}
    9696
    9797number npDiv (number a,number b)
    9898{
    99 #ifdef LDEBUG
    10099  if ((int)a==0)
    101100    return (number)0;
     
    105104    return (number)0;
    106105  }
    107 #else
    108   if (((int)a==0) || ((int)b==0))
    109     return (number)0;
    110 #endif
    111106  else
    112107  {
  • Singular/polys.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys.cc,v 1.3 1997-04-02 15:07:44 Singular Exp $ */
     4/* $Id: polys.cc,v 1.4 1997-06-04 19:45:23 obachman Exp $ */
    55
    66/*
     
    13711371      case ringorder_c:
    13721372      case ringorder_C:
     1373        break;
    13731374      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;
    13751380    }
    13761381  }
     
    17831788  else
    17841789  {
    1785     pLexOrder=TRUE;
     1790    //pLexOrder=TRUE;
    17861791    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    }
    17871800    /*the number of orderings:*/
    17881801    i = 0;
  • Singular/subexpr.cc

    r99be05 r4c001a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: subexpr.cc,v 1.19 1997-05-23 18:08:27 Singular Exp $ */
    5 
    64/*
    75* ABSTRACT: handling of leftv
     
    505503    void *x=data;
    506504    if (rtyp==VNOETHER) x=(void *)pCopy(ppNoether);
     505    else if ((rtyp==VMINPOLY)&& (currRing->minpoly!=NULL)&&(currRing->ch<2))
     506      x=(void *)nCopy(currRing->minpoly);
    507507    data=NULL;
    508508    return x;
     
    576576void * sleftv::CopyD()
    577577{
    578   if ((rtyp!=IDHDL)&&(e==NULL))
     578  if ((rtyp!=IDHDL)&&(e==NULL)
     579  &&(rtyp!=VNOETHER)&&(rtyp!=VMINPOLY))
    579580  {
    580581    void *x=data;
    581     if (rtyp==VNOETHER) x=(void *)pCopy(ppNoether);
    582582    data=NULL;
    583583    return x;
  • configure

    r99be05 r4c001a  
    556556
    557557
    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 NONOPT
    561 #
    562 # The rules are:
    563 # 1. You are not allowed to specify --host, --target, and nonopt at the
    564 #    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 in
    574 NONE---*---* | *---NONE---* | *---*---NONE) ;;
    575 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
    576 esac
    577 
    578 
    579558# Make sure we can run config.sub.
    580559if $ac_config_sub sun4 >/dev/null 2>&1; then :
     
    602581echo "$ac_t""$host" 1>&6
    603582
    604 echo $ac_n "checking target system type""... $ac_c" 1>&6
    605 
    606 target_alias=$target
    607 case "$target_alias" in
    608 NONE)
    609   case $nonopt in
    610   NONE) target_alias=$host_alias ;;
    611   *) target_alias=$nonopt ;;
    612   esac ;;
    613 esac
    614 
    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>&6
    620 
    621 echo $ac_n "checking build system type""... $ac_c" 1>&6
    622 
    623 build_alias=$build
    624 case "$build_alias" in
    625 NONE)
    626   case $nonopt in
    627   NONE) build_alias=$host_alias ;;
    628   *) build_alias=$nonopt ;;
    629   esac ;;
    630 esac
    631 
    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>&6
    637 
    638 test "$host_alias" != "$target_alias" &&
    639   test "$program_prefix$program_suffix$program_transform_name" = \
    640     NONENONEs,x,x, &&
    641   program_prefix=${target_alias}-
    642583
    643584
     
    729670#endif
    730671EOF
    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; then
     672if { 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
    732673  ac_cv_prog_gcc=yes
    733674else
     
    781722  # not just through cpp.
    782723  cat > conftest.$ac_ext <<EOF
    783 #line 784 "configure"
     724#line 725 "configure"
    784725#include "confdefs.h"
    785726#include <assert.h>
     
    787728EOF
    788729ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    789 { (eval echo configure:790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     730{ (eval echo configure:731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    790731ac_err=`grep -v '^ *+' conftest.out`
    791732if test -z "$ac_err"; then
     
    796737  CPP="${CC-cc} -E -traditional-cpp"
    797738  cat > conftest.$ac_ext <<EOF
    798 #line 799 "configure"
     739#line 740 "configure"
    799740#include "confdefs.h"
    800741#include <assert.h>
     
    802743EOF
    803744ac_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; }
    805746ac_err=`grep -v '^ *+' conftest.out`
    806747if test -z "$ac_err"; then
     
    824765echo $ac_n "checking for AIX""... $ac_c" 1>&6
    825766cat > conftest.$ac_ext <<EOF
    826 #line 827 "configure"
     767#line 768 "configure"
    827768#include "confdefs.h"
    828769#ifdef _AIX
     
    879820else
    880821  cat > conftest.$ac_ext <<EOF
    881 #line 882 "configure"
     822#line 823 "configure"
    882823#include "confdefs.h"
    883824#ifdef _AIX
     
    913854LIBS="-lm  $LIBS"
    914855cat > conftest.$ac_ext <<EOF
    915 #line 916 "configure"
     856#line 857 "configure"
    916857#include "confdefs.h"
    917858/* Override any gcc2 internal prototype to avoid an error.  */
     
    923864; return 0; }
    924865EOF
    925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     866if { (eval echo configure:867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    926867  rm -rf conftest*
    927868  eval "ac_cv_lib_$ac_lib_var=yes"
     
    955896LIBS="-lgmp  $LIBS"
    956897cat > conftest.$ac_ext <<EOF
    957 #line 958 "configure"
     898#line 899 "configure"
    958899#include "confdefs.h"
    959900/* Override any gcc2 internal prototype to avoid an error.  */
     
    965906; return 0; }
    966907EOF
    967 if { (eval echo configure:968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     908if { (eval echo configure:909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    968909  rm -rf conftest*
    969910  eval "ac_cv_lib_$ac_lib_var=yes"
     
    997938LIBS="-lMP  $LIBS"
    998939cat > conftest.$ac_ext <<EOF
    999 #line 1000 "configure"
     940#line 941 "configure"
    1000941#include "confdefs.h"
    1001942/* Override any gcc2 internal prototype to avoid an error.  */
     
    1007948; return 0; }
    1008949EOF
    1009 if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     950if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    1010951  rm -rf conftest*
    1011952  eval "ac_cv_lib_$ac_lib_var=yes"
     
    1039980LIBS="-lMPT  $LIBS"
    1040981cat > conftest.$ac_ext <<EOF
    1041 #line 1042 "configure"
     982#line 983 "configure"
    1042983#include "confdefs.h"
    1043984/* Override any gcc2 internal prototype to avoid an error.  */
     
    1049990; return 0; }
    1050991EOF
    1051 if { (eval echo configure:1052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     992if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    1052993  rm -rf conftest*
    1053994  eval "ac_cv_lib_$ac_lib_var=yes"
     
    10811022LIBS="-lsingcf  $LIBS"
    10821023cat > conftest.$ac_ext <<EOF
    1083 #line 1084 "configure"
     1024#line 1025 "configure"
    10841025#include "confdefs.h"
    10851026/* Override any gcc2 internal prototype to avoid an error.  */
     
    10911032; return 0; }
    10921033EOF
    1093 if { (eval echo configure:1094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1034if { (eval echo configure:1035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    10941035  rm -rf conftest*
    10951036  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11231064LIBS="-lsingfac  $LIBS"
    11241065cat > conftest.$ac_ext <<EOF
    1125 #line 1126 "configure"
     1066#line 1067 "configure"
    11261067#include "confdefs.h"
    11271068/* Override any gcc2 internal prototype to avoid an error.  */
     
    11331074; return 0; }
    11341075EOF
    1135 if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1076if { (eval echo configure:1077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    11361077  rm -rf conftest*
    11371078  eval "ac_cv_lib_$ac_lib_var=yes"
     
    11661107else
    11671108  cat > conftest.$ac_ext <<EOF
    1168 #line 1169 "configure"
     1109#line 1110 "configure"
    11691110#include "confdefs.h"
    11701111#include <$ac_hdr>
    11711112EOF
    11721113ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1173 { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1114{ (eval echo configure:1115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    11741115ac_err=`grep -v '^ *+' conftest.out`
    11751116if test -z "$ac_err"; then
     
    12081149fi
    12091150
    1210 if test "$ac_cv_lib_singcf_initCanonicalForm" = yes && \
     1151if test "$ac_cv_lib_singcf_atof" = yes && \
    12111152 test "$ac_cv_header_factory_h" = yes; then
    12121153  ac_factory_ok=yes
    12131154fi
    12141155
    1215 if test "$ac_cv_lib_singfac_IrrCharSeries" = yes && \
     1156if test "$ac_cv_lib_singfac_atof" = yes && \
    12161157 test "$ac_cv_header_factor_h" = yes; then
    12171158  ac_libfac_ok=yes
     
    16491590s%@host_vendor@%$host_vendor%g
    16501591s%@host_os@%$host_os%g
    1651 s%@target@%$target%g
    1652 s%@target_alias@%$target_alias%g
    1653 s%@target_cpu@%$target_cpu%g
    1654 s%@target_vendor@%$target_vendor%g
    1655 s%@target_os@%$target_os%g
    1656 s%@build@%$build%g
    1657 s%@build_alias@%$build_alias%g
    1658 s%@build_cpu@%$build_cpu%g
    1659 s%@build_vendor@%$build_vendor%g
    1660 s%@build_os@%$build_os%g
    16611592s%@CC@%$CC%g
    16621593s%@CPP@%$CPP%g
  • configure.in

    r99be05 r4c001a  
    33AC_PREFIX_DEFAULT(`pwd`)
    44
    5 AC_CANONICAL_SYSTEM
     5AC_CANONICAL_HOST
     6AC_SUBST(host)
    67
    78
     
    8182fi
    8283
    83 if test "$ac_cv_lib_singcf_initCanonicalForm" = yes && \
     84if test "$ac_cv_lib_singcf_atof" = yes && \
    8485 test "$ac_cv_header_factory_h" = yes; then
    8586  ac_factory_ok=yes
    8687fi
    8788
    88 if test "$ac_cv_lib_singfac_IrrCharSeries" = yes && \
     89if test "$ac_cv_lib_singfac_atof" = yes && \
    8990 test "$ac_cv_header_factor_h" = yes; then
    9091  ac_libfac_ok=yes
Note: See TracChangeset for help on using the changeset viewer.