Changeset dbf92f in git


Ignore:
Timestamp:
Oct 9, 1997, 3:04:07 PM (27 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
dff9697247e9ef26631c9d1f096c8a6d92f9640f
Parents:
f890c9293bf8f8471755992d289d913bfcfcdee1
Message:
* added target Singular-static to Makefile
* fixed ndbm.cc for Solaris compatibility


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

Legend:

Unmodified
Added
Removed
  • Singular/ChangeLog

    rf890c9 rdbf92f  
     1Wed Oct  8 12:22:47 1997  Olaf Bachmann  <obachman@mathematik.uni-kl.de>
     2
     3        * increased version number to 1.1.3
     4
     5        * ndbm.cc: Solaris compatibility: #define bcopy bzero, bcmp;
     6                  #include <fcntl.h>
     7        * configure.in: added check for fcntl.h sys/types.h sys/stat.h, ucblib
     8          ensured that either lgmp or lsmallgmp is in $LIBS
     9
    110Tue Sep 16 15:45:44 MET DST 1997
    211        * hannes: changed/corrected/clean naNormalize, naLcm, pCleardenom, pContent
  • Singular/Makefile.in

    rf890c9 rdbf92f  
    4949DEFS            = @DEFS@ -DNDEBUG
    5050LDFLAGS         = @LDFLAGS@
     51STATIC_LDFLAGS  = @STATIC_LDFLAGS@
    5152LIBS            = @NEED_LIBS@
    5253
     
    168169        tesths.cc iparith.o mpsr_Tok.o ${OBJS} ${LDFLAGS} ${LIBS}
    169170
     171Singular-static: mod2.h Makefile version.h scanner.cc ${OBJS} iparith.o \
     172                                                mpsr_Tok.o tesths.cc
     173        ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${DEFS} -o Singular-static \
     174        tesths.cc iparith.o mpsr_Tok.o \
     175        ${OBJS} ${STATIC_LDFLAGS} ${LDFLAGS} ${LIBS}
     176
    170177iparith.o mpsr_Tok.o : iparith.inc mpsr_Tok.inc
    171178
  • Singular/configure

    rf890c9 rdbf92f  
    12271227fi
    12281228
     1229echo $ac_n "checking for -lucb""... $ac_c" 1>&6
     1230ac_lib_var=`echo ucb_index | tr '.-/+' '___p'`
     1231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     1232  echo $ac_n "(cached) $ac_c" 1>&6
     1233else
     1234  ac_save_LIBS="$LIBS"
     1235LIBS="-lucb  $LIBS"
     1236cat > conftest.$ac_ext <<EOF
     1237#line 1238 "configure"
     1238#include "confdefs.h"
     1239/* Override any gcc2 internal prototype to avoid an error.  */
     1240char index();
     1241
     1242int main() { return 0; }
     1243int t() {
     1244index()
     1245; return 0; }
     1246EOF
     1247if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1248  rm -rf conftest*
     1249  eval "ac_cv_lib_$ac_lib_var=yes"
     1250else
     1251  rm -rf conftest*
     1252  eval "ac_cv_lib_$ac_lib_var=no"
     1253fi
     1254rm -f conftest*
     1255LIBS="$ac_save_LIBS"
     1256
     1257fi
     1258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
     1259  echo "$ac_t""yes" 1>&6
     1260    ac_tr_lib=HAVE_LIB`echo ucb | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1261  cat >> confdefs.h <<EOF
     1262#define $ac_tr_lib 1
     1263EOF
     1264
     1265  LIBS="-lucb $LIBS"
     1266
     1267else
     1268  echo "$ac_t""no" 1>&6
     1269fi
     1270
    12291271
    12301272if test "$with_readline" != no; then
     
    12371279LIBS="-lncurses  $LIBS"
    12381280cat > conftest.$ac_ext <<EOF
    1239 #line 1240 "configure"
     1281#line 1282 "configure"
    12401282#include "confdefs.h"
    12411283/* Override any gcc2 internal prototype to avoid an error.  */
     
    12471289; return 0; }
    12481290EOF
    1249 if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1291if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12501292  rm -rf conftest*
    12511293  eval "ac_cv_lib_$ac_lib_var=yes"
     
    12781320LIBS="-lcurses  $LIBS"
    12791321cat > conftest.$ac_ext <<EOF
    1280 #line 1281 "configure"
     1322#line 1323 "configure"
    12811323#include "confdefs.h"
    12821324/* Override any gcc2 internal prototype to avoid an error.  */
     
    12881330; return 0; }
    12891331EOF
    1290 if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1332if { (eval echo configure:1333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    12911333  rm -rf conftest*
    12921334  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13191361LIBS="-ltermcap  $LIBS"
    13201362cat > conftest.$ac_ext <<EOF
    1321 #line 1322 "configure"
     1363#line 1364 "configure"
    13221364#include "confdefs.h"
    13231365/* Override any gcc2 internal prototype to avoid an error.  */
     
    13291371; return 0; }
    13301372EOF
    1331 if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1373if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    13321374  rm -rf conftest*
    13331375  eval "ac_cv_lib_$ac_lib_var=yes"
     
    13651407LIBS="-lreadline  $LIBS"
    13661408cat > conftest.$ac_ext <<EOF
    1367 #line 1368 "configure"
     1409#line 1410 "configure"
    13681410#include "confdefs.h"
    13691411/* Override any gcc2 internal prototype to avoid an error.  */
     
    13751417; return 0; }
    13761418EOF
    1377 if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1419if { (eval echo configure:1420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    13781420  rm -rf conftest*
    13791421  eval "ac_cv_lib_$ac_lib_var=yes"
     
    14081450else
    14091451  cat > conftest.$ac_ext <<EOF
    1410 #line 1411 "configure"
     1452#line 1453 "configure"
    14111453#include "confdefs.h"
    14121454#include <$ac_hdr>
    14131455EOF
    14141456ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1415 { (eval echo configure:1416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1457{ (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14161458ac_err=`grep -v '^ *+' conftest.out`
    14171459if test -z "$ac_err"; then
     
    14671509LIBS="-ldld  $LIBS"
    14681510cat > conftest.$ac_ext <<EOF
    1469 #line 1470 "configure"
     1511#line 1512 "configure"
    14701512#include "confdefs.h"
    14711513/* Override any gcc2 internal prototype to avoid an error.  */
     
    14771519; return 0; }
    14781520EOF
    1479 if { (eval echo configure:1480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1521if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    14801522  rm -rf conftest*
    14811523  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15081550LIBS="-lgmp  $LIBS"
    15091551cat > conftest.$ac_ext <<EOF
    1510 #line 1511 "configure"
     1552#line 1553 "configure"
    15111553#include "confdefs.h"
    15121554/* Override any gcc2 internal prototype to avoid an error.  */
     
    15181560; return 0; }
    15191561EOF
    1520 if { (eval echo configure:1521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1562if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15211563  rm -rf conftest*
    15221564  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15421584fi
    15431585
     1586if test "ac_cv_lib_gmp_mpq_init" = yes && test "$with-apint" = smallgmp; then
     1587  LIBS=NEED_LIBS
     1588fi
    15441589echo $ac_n "checking for -lsmallgmp""... $ac_c" 1>&6
    15451590ac_lib_var=`echo smallgmp_mpz_init | tr '.-/+' '___p'`
     
    15501595LIBS="-lsmallgmp  $LIBS"
    15511596cat > conftest.$ac_ext <<EOF
    1552 #line 1553 "configure"
     1597#line 1598 "configure"
    15531598#include "confdefs.h"
    15541599/* Override any gcc2 internal prototype to avoid an error.  */
     
    15601605; return 0; }
    15611606EOF
    1562 if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1607if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    15631608  rm -rf conftest*
    15641609  eval "ac_cv_lib_$ac_lib_var=yes"
     
    15921637LIBS="-lMP  $LIBS"
    15931638cat > conftest.$ac_ext <<EOF
    1594 #line 1595 "configure"
     1639#line 1640 "configure"
    15951640#include "confdefs.h"
    15961641/* Override any gcc2 internal prototype to avoid an error.  */
     
    16021647; return 0; }
    16031648EOF
    1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1649if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16051650  rm -rf conftest*
    16061651  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16341679LIBS="-lMPT  $LIBS"
    16351680cat > conftest.$ac_ext <<EOF
    1636 #line 1637 "configure"
     1681#line 1682 "configure"
    16371682#include "confdefs.h"
    16381683/* Override any gcc2 internal prototype to avoid an error.  */
     
    16441689; return 0; }
    16451690EOF
    1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1691if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16471692  rm -rf conftest*
    16481693  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16761721LIBS="-lsingcf  $LIBS"
    16771722cat > conftest.$ac_ext <<EOF
    1678 #line 1679 "configure"
     1723#line 1724 "configure"
    16791724#include "confdefs.h"
    16801725/* Override any gcc2 internal prototype to avoid an error.  */
     
    16861731; return 0; }
    16871732EOF
    1688 if { (eval echo configure:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1733if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    16891734  rm -rf conftest*
    16901735  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17181763LIBS="-lsingfac  $LIBS"
    17191764cat > conftest.$ac_ext <<EOF
    1720 #line 1721 "configure"
     1765#line 1766 "configure"
    17211766#include "confdefs.h"
    17221767/* Override any gcc2 internal prototype to avoid an error.  */
     
    17281773; return 0; }
    17291774EOF
    1730 if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1775if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    17311776  rm -rf conftest*
    17321777  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17611806else
    17621807  cat > conftest.$ac_ext <<EOF
    1763 #line 1764 "configure"
     1808#line 1809 "configure"
    17641809#include "confdefs.h"
    17651810#include <$ac_hdr>
    17661811EOF
    17671812ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1768 { (eval echo configure:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1813{ (eval echo configure:1814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17691814ac_err=`grep -v '^ *+' conftest.out`
    17701815if test -z "$ac_err"; then
     
    18321877    if test "$ac_smallgmp_ok" = yes; then
    18331878      ac_will_have_gmp=yes
    1834       ac_will have_smallgmp=yes
     1879      ac_will_have_smallgmp=yes
    18351880    elif test "$enable_smallgmp" = yes; then
    18361881      ac_will_have_gmp=yes
     
    19612006else
    19622007  cat > conftest.$ac_ext <<EOF
    1963 #line 1964 "configure"
     2008#line 2009 "configure"
    19642009#include "confdefs.h"
    19652010#include <stdlib.h>
     
    19692014EOF
    19702015ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1971 { (eval echo configure:1972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2016{ (eval echo configure:2017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19722017ac_err=`grep -v '^ *+' conftest.out`
    19732018if test -z "$ac_err"; then
     
    19842029  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    19852030cat > conftest.$ac_ext <<EOF
    1986 #line 1987 "configure"
     2031#line 2032 "configure"
    19872032#include "confdefs.h"
    19882033#include <string.h>
     
    20022047  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    20032048cat > conftest.$ac_ext <<EOF
    2004 #line 2005 "configure"
     2049#line 2050 "configure"
    20052050#include "confdefs.h"
    20062051#include <stdlib.h>
     
    20232068else
    20242069cat > conftest.$ac_ext <<EOF
    2025 #line 2026 "configure"
     2070#line 2071 "configure"
    20262071#include "confdefs.h"
    20272072#include <ctype.h>
     
    20342079
    20352080EOF
    2036 { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2081{ (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    20372082if test -s conftest && (./conftest; exit) 2>/dev/null; then
    20382083  :
     
    20622107else
    20632108  cat > conftest.$ac_ext <<EOF
    2064 #line 2065 "configure"
     2109#line 2110 "configure"
    20652110#include "confdefs.h"
    20662111#include <$ac_hdr>
    20672112EOF
    20682113ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2069 { (eval echo configure:2070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2114{ (eval echo configure:2115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    20702115ac_err=`grep -v '^ *+' conftest.out`
    20712116if test -z "$ac_err"; then
     
    20932138
    20942139
    2095 for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h
     2140for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h
    20962141do
    20972142ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     
    21012146else
    21022147  cat > conftest.$ac_ext <<EOF
    2103 #line 2104 "configure"
     2148#line 2149 "configure"
    21042149#include "confdefs.h"
    21052150#include <$ac_hdr>
    21062151EOF
    21072152ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2108 { (eval echo configure:2109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2153{ (eval echo configure:2154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    21092154ac_err=`grep -v '^ *+' conftest.out`
    21102155if test -z "$ac_err"; then
     
    21502195else
    21512196  cat > conftest.$ac_ext <<EOF
    2152 #line 2153 "configure"
     2197#line 2198 "configure"
    21532198#include "confdefs.h"
    21542199
     
    22002245; return 0; }
    22012246EOF
    2202 if { (eval echo configure:2203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2247if { (eval echo configure:2248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22032248  rm -rf conftest*
    22042249  ac_cv_c_const=yes
     
    22262271for ac_kw in inline __inline__ __inline; do
    22272272  cat > conftest.$ac_ext <<EOF
    2228 #line 2229 "configure"
     2273#line 2274 "configure"
    22292274#include "confdefs.h"
    22302275
     
    22342279; return 0; }
    22352280EOF
    2236 if { (eval echo configure:2237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2281if { (eval echo configure:2282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    22372282  rm -rf conftest*
    22382283  ac_cv_c_inline=$ac_kw; break
     
    22622307else
    22632308  cat > conftest.$ac_ext <<EOF
    2264 #line 2265 "configure"
     2309#line 2310 "configure"
    22652310#include "confdefs.h"
    22662311#include <sys/types.h>
     
    22932338else
    22942339  cat > conftest.$ac_ext <<EOF
    2295 #line 2296 "configure"
     2340#line 2341 "configure"
    22962341#include "confdefs.h"
    22972342#include <sys/types.h>
     
    23032348; return 0; }
    23042349EOF
    2305 if { (eval echo configure:2306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2350if { (eval echo configure:2351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23062351  rm -rf conftest*
    23072352  ac_cv_header_time=yes
     
    23272372else
    23282373  cat > conftest.$ac_ext <<EOF
    2329 #line 2330 "configure"
     2374#line 2375 "configure"
    23302375#include "confdefs.h"
    23312376#include <sys/types.h>
     
    23362381; return 0; }
    23372382EOF
    2338 if { (eval echo configure:2339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2383if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    23392384  rm -rf conftest*
    23402385  ac_cv_struct_tm=time.h
     
    23632408else
    23642409  cat > conftest.$ac_ext <<EOF
    2365 #line 2366 "configure"
     2410#line 2411 "configure"
    23662411#include "confdefs.h"
    23672412#include <alloca.h>
     
    23712416; return 0; }
    23722417EOF
    2373 if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2418if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    23742419  rm -rf conftest*
    23752420  ac_cv_header_alloca_h=yes
     
    23952440else
    23962441  cat > conftest.$ac_ext <<EOF
    2397 #line 2398 "configure"
     2442#line 2443 "configure"
    23982443#include "confdefs.h"
    23992444
     
    24192464; return 0; }
    24202465EOF
    2421 if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2466if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    24222467  rm -rf conftest*
    24232468  ac_cv_func_alloca=yes
     
    24542499else
    24552500  cat > conftest.$ac_ext <<EOF
    2456 #line 2457 "configure"
     2501#line 2502 "configure"
    24572502#include "confdefs.h"
    24582503#if defined(CRAY) && ! defined(CRAY2)
     
    24832528else
    24842529  cat > conftest.$ac_ext <<EOF
    2485 #line 2486 "configure"
     2530#line 2531 "configure"
    24862531#include "confdefs.h"
    24872532/* System header to define __stub macros and hopefully few prototypes,
     
    25052550; return 0; }
    25062551EOF
    2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2552if { (eval echo configure:2553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    25082553  rm -rf conftest*
    25092554  eval "ac_cv_func_$ac_func=yes"
     
    25372582else
    25382583cat > conftest.$ac_ext <<EOF
    2539 #line 2540 "configure"
     2584#line 2585 "configure"
    25402585#include "confdefs.h"
    25412586find_stack_direction ()
     
    25562601}
    25572602EOF
    2558 { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2603{ (eval echo configure:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    25592604if test -s conftest && (./conftest; exit) 2>/dev/null; then
    25602605  ac_cv_c_stack_direction=1
     
    25802625    ac_pattern="Autoconf.*'x'"
    25812626  cat > conftest.$ac_ext <<EOF
    2582 #line 2583 "configure"
     2627#line 2628 "configure"
    25832628#include "confdefs.h"
    25842629#include <sgtty.h>
     
    25982643  if test $ac_cv_prog_gcc_traditional = no; then
    25992644    cat > conftest.$ac_ext <<EOF
    2600 #line 2601 "configure"
     2645#line 2646 "configure"
    26012646#include "confdefs.h"
    26022647#include <termio.h>
     
    26262671else
    26272672  cat > conftest.$ac_ext <<EOF
    2628 #line 2629 "configure"
     2673#line 2674 "configure"
    26292674#include "confdefs.h"
    26302675/* System header to define __stub macros and hopefully few prototypes,
     
    26482693; return 0; }
    26492694EOF
    2650 if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2695if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    26512696  rm -rf conftest*
    26522697  eval "ac_cv_func_$ac_func=yes"
     
    26782723else
    26792724cat > conftest.$ac_ext <<EOF
    2680 #line 2681 "configure"
     2725#line 2726 "configure"
    26812726#include "confdefs.h"
    26822727
     
    27472792
    27482793EOF
    2749 { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     2794{ (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    27502795if test -s conftest && (./conftest; exit) 2>/dev/null; then
    27512796  ac_cv_func_mmap=yes
     
    27702815else
    27712816  cat > conftest.$ac_ext <<EOF
    2772 #line 2773 "configure"
     2817#line 2818 "configure"
    27732818#include "confdefs.h"
    27742819#include <sys/types.h>
     
    27882833; return 0; }
    27892834EOF
    2790 if { (eval echo configure:2791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2835if { (eval echo configure:2836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    27912836  rm -rf conftest*
    27922837  ac_cv_type_signal=void
     
    28102855else
    28112856  cat > conftest.$ac_ext <<EOF
    2812 #line 2813 "configure"
     2857#line 2858 "configure"
    28132858#include "confdefs.h"
    28142859/* System header to define __stub macros and hopefully few prototypes,
     
    28322877; return 0; }
    28332878EOF
    2834 if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2879if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    28352880  rm -rf conftest*
    28362881  eval "ac_cv_func_vprintf=yes"
     
    28582903else
    28592904  cat > conftest.$ac_ext <<EOF
    2860 #line 2861 "configure"
     2905#line 2906 "configure"
    28612906#include "confdefs.h"
    28622907/* System header to define __stub macros and hopefully few prototypes,
     
    28802925; return 0; }
    28812926EOF
    2882 if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2927if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    28832928  rm -rf conftest*
    28842929  eval "ac_cv_func__doprnt=yes"
     
    29092954else
    29102955  cat > conftest.$ac_ext <<EOF
    2911 #line 2912 "configure"
     2956#line 2957 "configure"
    29122957#include "confdefs.h"
    29132958/* System header to define __stub macros and hopefully few prototypes,
     
    29312976; return 0; }
    29322977EOF
    2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2978if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    29342979  rm -rf conftest*
    29352980  eval "ac_cv_func_$ac_func=yes"
     
    29683013else
    29693014cat > conftest.$ac_ext <<EOF
    2970 #line 2971 "configure"
     3015#line 3016 "configure"
    29713016#include "confdefs.h"
    29723017 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    29733018EOF
    2974 { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3019{ (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    29753020if test -s conftest && (./conftest; exit) 2>/dev/null; then
    29763021  ac_cv_shift=yes
     
    30043049else
    30053050cat > conftest.$ac_ext <<EOF
    3006 #line 3007 "configure"
     3051#line 3052 "configure"
    30073052#include "confdefs.h"
    30083053 int main() {if (sizeof(int) == 4)  exit(0); else exit(1); }
    30093054EOF
    3010 { (eval echo configure:3011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3055{ (eval echo configure:3056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30113056if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30123057  ac_cv_sizeof_int_equals_four=yes
     
    30393084else
    30403085cat > conftest.$ac_ext <<EOF
    3041 #line 3042 "configure"
     3086#line 3087 "configure"
    30423087#include "confdefs.h"
    30433088 int main() {if (sizeof(long) == sizeof(void*))  exit(0); else exit(1); }
    30443089EOF
    3045 { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3090{ (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30463091if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30473092  ac_cv_sizeof_long_equals_voidp=yes
     
    30683113else
    30693114cat > conftest.$ac_ext <<EOF
    3070 #line 3071 "configure"
     3115#line 3116 "configure"
    30713116#include "confdefs.h"
    30723117#include <stdio.h>
    30733118 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    30743119EOF
    3075 { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3120{ (eval echo configure:3121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    30763121if test -s conftest && (./conftest; exit) 2>/dev/null; then
    30773122  ac_cv_returns_n_of_chars=yes
     
    31013146else
    31023147cat > conftest.$ac_ext <<EOF
    3103 #line 3104 "configure"
     3148#line 3149 "configure"
    31043149#include "confdefs.h"
    31053150#include <stdio.h>
     
    31123157}
    31133158EOF
    3114 { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
     3159{ (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    31153160if test -s conftest && (./conftest; exit) 2>/dev/null; then
    31163161  ac_cv_sizeof_voidp=`cat conftestval`
     
    31343179else
    31353180  cat > conftest.$ac_ext <<EOF
    3136 #line 3137 "configure"
     3181#line 3182 "configure"
    31373182#include "confdefs.h"
    31383183#ifdef _AIX
     
    31693214    CXXNOOPTFLAGS=$CXXFLAGS
    31703215  fi
     3216  STATIC_LDFLAGS="-Xlinker -Bstatic"
    31713217else
    31723218  CXXTEMPFLAGS=""
    31733219  CXXNOOPTFLAGS=$CXXFLAGS
    3174 fi
     3220  STATIC_LDFLAGS=""
     3221fi
     3222
    31753223
    31763224
     
    33143362s%@CXXTEMPLFLAGS@%$CXXTEMPLFLAGS%g
    33153363s%@CXXNOOPTFLAGS@%$CXXNOOPTFLAGS%g
     3364s%@STATIC_LDFLAGS@%$STATIC_LDFLAGS%g
    33163365
    33173366CEOF
  • Singular/configure.in

    rf890c9 rdbf92f  
    175175AC_CHECK_LIB(socket, listen)
    176176AC_CHECK_LIB(nsl, gethostbyname)
     177AC_CHECK_LIB(ucb, index)
    177178
    178179dnl Check -lreadline
     
    204205
    205206AC_CHECK_LIB(gmp, mpq_init)
     207if test "ac_cv_lib_gmp_mpq_init" = yes && test "$with-apint" = smallgmp; then
     208  LIBS=NEED_LIBS
     209fi
    206210AC_CHECK_LIB(smallgmp, mpz_init)
    207211AC_CHECK_LIB(MP, IMP_PutGmpInt)
     
    254258    if test "$ac_smallgmp_ok" = yes; then
    255259      ac_will_have_gmp=yes
    256       ac_will have_smallgmp=yes
     260      ac_will_have_smallgmp=yes
    257261    elif test "$enable_smallgmp" = yes; then
    258262      ac_will_have_gmp=yes
     
    374378  AC_MSG_ERROR(Can not compile without limits.h unistd.h))
    375379
    376 AC_CHECK_HEADERS(sys/file.h sys/ioctl.h sys/time.h sys/times.h)
     380AC_CHECK_HEADERS(sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h)
    377381
    378382dnl Check dbm
     
    516520    CXXNOOPTFLAGS=$CXXFLAGS
    517521  fi
     522  STATIC_LDFLAGS="-Xlinker -Bstatic"
    518523else
    519524  CXXTEMPFLAGS=""
    520525  CXXNOOPTFLAGS=$CXXFLAGS
     526  STATIC_LDFLAGS=""
    521527fi
    522528AC_SUBST(CXXTEMPLFLAGS)
    523529AC_SUBST(CXXNOOPTFLAGS)
     530AC_SUBST(STATIC_LDFLAGS)
    524531
    525532if test ${GCC} = yes && test "$ac_cflags_set" = no ; then
  • Singular/ndbm.cc

    rf890c9 rdbf92f  
    55//**************************************************************************/
    66//
    7 // $Id: ndbm.cc,v 1.4 1997-08-15 09:49:13 krueger Exp $
     7// $Id: ndbm.cc,v 1.5 1997-10-09 13:04:07 obachman Exp $
    88//
    99//**************************************************************************/
     
    3939#   define EPERM 1
    4040#   define ENOSPC 28
    41 #   define bcopy(a,b,c) memcpy(b,a,c)
    42 #   define bzero(a,b)   memset(a,0,b)
    43 #   define bcmp(a,b,c)  memcmp(a,b,c)
    4441#else /* not macintosh */
    4542#   include <sys/types.h>
     
    5047#   include <string.h>
    5148#   include <unistd.h>
     49#   include <fcntl.h>
    5250#endif /* macintosh */
     51#   define bcopy(a,b,c) memcpy(b,a,c)
     52#   define bzero(a,b)   memset(a,0,b)
     53#   define bcmp(a,b,c)  memcmp(a,b,c)
    5354#include "ndbm.h"
    5455
Note: See TracChangeset for help on using the changeset viewer.