Changeset f8dcbcb in git


Ignore:
Timestamp:
Jan 27, 2001, 6:04:59 PM (23 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
995ba8e72c52d5e7ce134eb888bb7682e01af581
Parents:
d83977461ed45e8d1baf489f2bd39e88bd603aa3
Message:
windows port


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

Legend:

Unmodified
Added
Removed
  • Singular/Makefile.in

    rd83977 rf8dcbcb  
    6060LD_LIBC         = -lc
    6161STATIC_LDFLAGS  = @STATIC_LDFLAGS@
     62# under cygwin, do not explicitly link against -lm, for it is the cygwin
     63# lib -- if you really want to do this, use -lm as the _last_ thing on the
     64# arguments to link
     65ifneq ($(SINGUNAME),ix86-Win)
    6266LIBS            = -lm @NEED_LIBS@
     67else
     68LIBS            = @NEED_LIBS@
     69endif
    6370MP_LIBS         = @MP_LIBS@
    6471DL_KERNEL       = @DL_KERNEL@
  • Singular/configure

    rd83977 rf8dcbcb  
    16341634
    16351635# lib checks
     1636# under cygwin, we should not explicitly link with -lm, except for
     1637# it reallz is the last thing to link with
     1638if test "$ac_cv_singuname" != ix86-Win; then
    16361639echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
    1637 echo "configure:1638: checking for atof in -lm" >&5
     1640echo "configure:1641: checking for atof in -lm" >&5
    16381641ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    16391642if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16431646LIBS="-lm  $LIBS"
    16441647cat > conftest.$ac_ext <<EOF
    1645 #line 1646 "configure"
     1648#line 1649 "configure"
    16461649#include "confdefs.h"
    16471650/* Override any gcc2 internal prototype to avoid an error.  */
     
    16541657; return 0; }
    16551658EOF
    1656 if { (eval echo configure:1657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1659if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16571660  rm -rf conftest*
    16581661  eval "ac_cv_lib_$ac_lib_var=yes"
     
    16811684fi
    16821685
     1686fi
    16831687SAVE_LIBS=${LIBS}
    16841688LIBS=
     
    16881692        HPUX*)
    16891693          echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
    1690 echo "configure:1691: checking for shl_load in -ldld" >&5
     1694echo "configure:1695: checking for shl_load in -ldld" >&5
    16911695ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
    16921696if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    16961700LIBS="-ldld  $LIBS"
    16971701cat > conftest.$ac_ext <<EOF
    1698 #line 1699 "configure"
     1702#line 1703 "configure"
    16991703#include "confdefs.h"
    17001704/* Override any gcc2 internal prototype to avoid an error.  */
     
    17071711; return 0; }
    17081712EOF
    1709 if { (eval echo configure:1710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1713if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17101714  rm -rf conftest*
    17111715  eval "ac_cv_lib_$ac_lib_var=yes"
     
    17431747        *Linux*)
    17441748          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
    1745 echo "configure:1746: checking for dlopen in -ldl" >&5
     1749echo "configure:1750: checking for dlopen in -ldl" >&5
    17461750ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
    17471751if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    17511755LIBS="-ldl  $LIBS"
    17521756cat > conftest.$ac_ext <<EOF
    1753 #line 1754 "configure"
     1757#line 1758 "configure"
    17541758#include "confdefs.h"
    17551759/* Override any gcc2 internal prototype to avoid an error.  */
     
    17621766; return 0; }
    17631767EOF
    1764 if { (eval echo configure:1765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1768if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    17651769  rm -rf conftest*
    17661770  eval "ac_cv_lib_$ac_lib_var=yes"
     
    18091813# heder file checks
    18101814echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1811 echo "configure:1812: checking for ANSI C header files" >&5
     1815echo "configure:1816: checking for ANSI C header files" >&5
    18121816if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    18131817  echo $ac_n "(cached) $ac_c" 1>&6
    18141818else
    18151819  cat > conftest.$ac_ext <<EOF
    1816 #line 1817 "configure"
     1820#line 1821 "configure"
    18171821#include "confdefs.h"
    18181822#include <stdlib.h>
     
    18221826EOF
    18231827ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1824 { (eval echo configure:1825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1828{ (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    18251829ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    18261830if test -z "$ac_err"; then
     
    18391843  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    18401844cat > conftest.$ac_ext <<EOF
    1841 #line 1842 "configure"
     1845#line 1846 "configure"
    18421846#include "confdefs.h"
    18431847#include <string.h>
     
    18571861  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    18581862cat > conftest.$ac_ext <<EOF
    1859 #line 1860 "configure"
     1863#line 1864 "configure"
    18601864#include "confdefs.h"
    18611865#include <stdlib.h>
     
    18781882else
    18791883  cat > conftest.$ac_ext <<EOF
    1880 #line 1881 "configure"
     1884#line 1885 "configure"
    18811885#include "confdefs.h"
    18821886#include <ctype.h>
     
    18891893
    18901894EOF
    1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1895if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18921896then
    18931897  :
     
    19161920ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19171921echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1918 echo "configure:1919: checking for $ac_hdr" >&5
     1922echo "configure:1923: checking for $ac_hdr" >&5
    19191923if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19201924  echo $ac_n "(cached) $ac_c" 1>&6
    19211925else
    19221926  cat > conftest.$ac_ext <<EOF
    1923 #line 1924 "configure"
     1927#line 1928 "configure"
    19241928#include "confdefs.h"
    19251929#include <$ac_hdr>
    19261930EOF
    19271931ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1928 { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1932{ (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19291933ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19301934if test -z "$ac_err"; then
     
    19581962ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    19591963echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1960 echo "configure:1961: checking for $ac_hdr" >&5
     1964echo "configure:1965: checking for $ac_hdr" >&5
    19611965if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    19621966  echo $ac_n "(cached) $ac_c" 1>&6
    19631967else
    19641968  cat > conftest.$ac_ext <<EOF
    1965 #line 1966 "configure"
     1969#line 1970 "configure"
    19661970#include "confdefs.h"
    19671971#include <$ac_hdr>
    19681972EOF
    19691973ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1970 { (eval echo configure:1971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1974{ (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    19711975ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    19721976if test -z "$ac_err"; then
     
    19972001# typedefs, structures
    19982002echo $ac_n "checking for working const""... $ac_c" 1>&6
    1999 echo "configure:2000: checking for working const" >&5
     2003echo "configure:2004: checking for working const" >&5
    20002004if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    20012005  echo $ac_n "(cached) $ac_c" 1>&6
    20022006else
    20032007  cat > conftest.$ac_ext <<EOF
    2004 #line 2005 "configure"
     2008#line 2009 "configure"
    20052009#include "confdefs.h"
    20062010
     
    20512055; return 0; }
    20522056EOF
    2053 if { (eval echo configure:2054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2057if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    20542058  rm -rf conftest*
    20552059  ac_cv_c_const=yes
     
    20722076
    20732077echo $ac_n "checking for inline""... $ac_c" 1>&6
    2074 echo "configure:2075: checking for inline" >&5
     2078echo "configure:2079: checking for inline" >&5
    20752079if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    20762080  echo $ac_n "(cached) $ac_c" 1>&6
     
    20792083for ac_kw in inline __inline__ __inline; do
    20802084  cat > conftest.$ac_ext <<EOF
    2081 #line 2082 "configure"
     2085#line 2086 "configure"
    20822086#include "confdefs.h"
    20832087
     
    20862090; return 0; }
    20872091EOF
    2088 if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2092if { (eval echo configure:2093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    20892093  rm -rf conftest*
    20902094  ac_cv_c_inline=$ac_kw; break
     
    21122116
    21132117echo $ac_n "checking for size_t""... $ac_c" 1>&6
    2114 echo "configure:2115: checking for size_t" >&5
     2118echo "configure:2119: checking for size_t" >&5
    21152119if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    21162120  echo $ac_n "(cached) $ac_c" 1>&6
    21172121else
    21182122  cat > conftest.$ac_ext <<EOF
    2119 #line 2120 "configure"
     2123#line 2124 "configure"
    21202124#include "confdefs.h"
    21212125#include <sys/types.h>
     
    21452149
    21462150echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
    2147 echo "configure:2148: checking whether time.h and sys/time.h may both be included" >&5
     2151echo "configure:2152: checking whether time.h and sys/time.h may both be included" >&5
    21482152if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    21492153  echo $ac_n "(cached) $ac_c" 1>&6
    21502154else
    21512155  cat > conftest.$ac_ext <<EOF
    2152 #line 2153 "configure"
     2156#line 2157 "configure"
    21532157#include "confdefs.h"
    21542158#include <sys/types.h>
     
    21592163; return 0; }
    21602164EOF
    2161 if { (eval echo configure:2162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2165if { (eval echo configure:2166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    21622166  rm -rf conftest*
    21632167  ac_cv_header_time=yes
     
    21802184
    21812185echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
    2182 echo "configure:2183: checking whether struct tm is in sys/time.h or time.h" >&5
     2186echo "configure:2187: checking whether struct tm is in sys/time.h or time.h" >&5
    21832187if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    21842188  echo $ac_n "(cached) $ac_c" 1>&6
    21852189else
    21862190  cat > conftest.$ac_ext <<EOF
    2187 #line 2188 "configure"
     2191#line 2192 "configure"
    21882192#include "confdefs.h"
    21892193#include <sys/types.h>
     
    21932197; return 0; }
    21942198EOF
    2195 if { (eval echo configure:2196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2199if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    21962200  rm -rf conftest*
    21972201  ac_cv_struct_tm=time.h
     
    22182222# for constant arguments.  Useless!
    22192223echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
    2220 echo "configure:2221: checking for working alloca.h" >&5
     2224echo "configure:2225: checking for working alloca.h" >&5
    22212225if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    22222226  echo $ac_n "(cached) $ac_c" 1>&6
    22232227else
    22242228  cat > conftest.$ac_ext <<EOF
    2225 #line 2226 "configure"
     2229#line 2230 "configure"
    22262230#include "confdefs.h"
    22272231#include <alloca.h>
     
    22302234; return 0; }
    22312235EOF
    2232 if { (eval echo configure:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2236if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22332237  rm -rf conftest*
    22342238  ac_cv_header_alloca_h=yes
     
    22512255
    22522256echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2253 echo "configure:2254: checking for alloca" >&5
     2257echo "configure:2258: checking for alloca" >&5
    22542258if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    22552259  echo $ac_n "(cached) $ac_c" 1>&6
    22562260else
    22572261  cat > conftest.$ac_ext <<EOF
    2258 #line 2259 "configure"
     2262#line 2263 "configure"
    22592263#include "confdefs.h"
    22602264
     
    22842288; return 0; }
    22852289EOF
    2286 if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2290if { (eval echo configure:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    22872291  rm -rf conftest*
    22882292  ac_cv_func_alloca_works=yes
     
    23162320
    23172321echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
    2318 echo "configure:2319: checking whether alloca needs Cray hooks" >&5
     2322echo "configure:2323: checking whether alloca needs Cray hooks" >&5
    23192323if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    23202324  echo $ac_n "(cached) $ac_c" 1>&6
    23212325else
    23222326  cat > conftest.$ac_ext <<EOF
    2323 #line 2324 "configure"
     2327#line 2328 "configure"
    23242328#include "confdefs.h"
    23252329#if defined(CRAY) && ! defined(CRAY2)
     
    23462350for ac_func in _getb67 GETB67 getb67; do
    23472351  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2348 echo "configure:2349: checking for $ac_func" >&5
     2352echo "configure:2353: checking for $ac_func" >&5
    23492353if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    23502354  echo $ac_n "(cached) $ac_c" 1>&6
    23512355else
    23522356  cat > conftest.$ac_ext <<EOF
    2353 #line 2354 "configure"
     2357#line 2358 "configure"
    23542358#include "confdefs.h"
    23552359/* System header to define __stub macros and hopefully few prototypes,
     
    23742378; return 0; }
    23752379EOF
    2376 if { (eval echo configure:2377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2380if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    23772381  rm -rf conftest*
    23782382  eval "ac_cv_func_$ac_func=yes"
     
    24012405
    24022406echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
    2403 echo "configure:2404: checking stack direction for C alloca" >&5
     2407echo "configure:2408: checking stack direction for C alloca" >&5
    24042408if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    24052409  echo $ac_n "(cached) $ac_c" 1>&6
     
    24092413else
    24102414  cat > conftest.$ac_ext <<EOF
    2411 #line 2412 "configure"
     2415#line 2416 "configure"
    24122416#include "confdefs.h"
    24132417find_stack_direction ()
     
    24282432}
    24292433EOF
    2430 if { (eval echo configure:2431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2434if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    24312435then
    24322436  ac_cv_c_stack_direction=1
     
    24512455if test $ac_cv_prog_gcc = yes; then
    24522456    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
    2453 echo "configure:2454: checking whether ${CC-cc} needs -traditional" >&5
     2457echo "configure:2458: checking whether ${CC-cc} needs -traditional" >&5
    24542458if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    24552459  echo $ac_n "(cached) $ac_c" 1>&6
     
    24572461    ac_pattern="Autoconf.*'x'"
    24582462  cat > conftest.$ac_ext <<EOF
    2459 #line 2460 "configure"
     2463#line 2464 "configure"
    24602464#include "confdefs.h"
    24612465#include <sgtty.h>
     
    24752479  if test $ac_cv_prog_gcc_traditional = no; then
    24762480    cat > conftest.$ac_ext <<EOF
    2477 #line 2478 "configure"
     2481#line 2482 "configure"
    24782482#include "confdefs.h"
    24792483#include <termio.h>
     
    25002504ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    25012505echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    2502 echo "configure:2503: checking for $ac_hdr" >&5
     2506echo "configure:2507: checking for $ac_hdr" >&5
    25032507if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    25042508  echo $ac_n "(cached) $ac_c" 1>&6
    25052509else
    25062510  cat > conftest.$ac_ext <<EOF
    2507 #line 2508 "configure"
     2511#line 2512 "configure"
    25082512#include "confdefs.h"
    25092513#include <$ac_hdr>
    25102514EOF
    25112515ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    2512 { (eval echo configure:2513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2516{ (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    25132517ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    25142518if test -z "$ac_err"; then
     
    25392543do
    25402544echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2541 echo "configure:2542: checking for $ac_func" >&5
     2545echo "configure:2546: checking for $ac_func" >&5
    25422546if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    25432547  echo $ac_n "(cached) $ac_c" 1>&6
    25442548else
    25452549  cat > conftest.$ac_ext <<EOF
    2546 #line 2547 "configure"
     2550#line 2551 "configure"
    25472551#include "confdefs.h"
    25482552/* System header to define __stub macros and hopefully few prototypes,
     
    25672571; return 0; }
    25682572EOF
    2569 if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2573if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    25702574  rm -rf conftest*
    25712575  eval "ac_cv_func_$ac_func=yes"
     
    25922596
    25932597echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2594 echo "configure:2595: checking for working mmap" >&5
     2598echo "configure:2599: checking for working mmap" >&5
    25952599if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    25962600  echo $ac_n "(cached) $ac_c" 1>&6
     
    26002604else
    26012605  cat > conftest.$ac_ext <<EOF
    2602 #line 2603 "configure"
     2606#line 2607 "configure"
    26032607#include "confdefs.h"
    26042608
     
    27402744
    27412745EOF
    2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2746if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    27432747then
    27442748  ac_cv_func_mmap_fixed_mapped=yes
     
    27632767
    27642768echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
    2765 echo "configure:2766: checking return type of signal handlers" >&5
     2769echo "configure:2770: checking return type of signal handlers" >&5
    27662770if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    27672771  echo $ac_n "(cached) $ac_c" 1>&6
    27682772else
    27692773  cat > conftest.$ac_ext <<EOF
    2770 #line 2771 "configure"
     2774#line 2775 "configure"
    27712775#include "confdefs.h"
    27722776#include <sys/types.h>
     
    27852789; return 0; }
    27862790EOF
    2787 if { (eval echo configure:2788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2791if { (eval echo configure:2792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    27882792  rm -rf conftest*
    27892793  ac_cv_type_signal=void
     
    28042808
    28052809echo $ac_n "checking for vprintf""... $ac_c" 1>&6
    2806 echo "configure:2807: checking for vprintf" >&5
     2810echo "configure:2811: checking for vprintf" >&5
    28072811if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    28082812  echo $ac_n "(cached) $ac_c" 1>&6
    28092813else
    28102814  cat > conftest.$ac_ext <<EOF
    2811 #line 2812 "configure"
     2815#line 2816 "configure"
    28122816#include "confdefs.h"
    28132817/* System header to define __stub macros and hopefully few prototypes,
     
    28322836; return 0; }
    28332837EOF
    2834 if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2838if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28352839  rm -rf conftest*
    28362840  eval "ac_cv_func_vprintf=yes"
     
    28562860if test "$ac_cv_func_vprintf" != yes; then
    28572861echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
    2858 echo "configure:2859: checking for _doprnt" >&5
     2862echo "configure:2863: checking for _doprnt" >&5
    28592863if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    28602864  echo $ac_n "(cached) $ac_c" 1>&6
    28612865else
    28622866  cat > conftest.$ac_ext <<EOF
    2863 #line 2864 "configure"
     2867#line 2868 "configure"
    28642868#include "confdefs.h"
    28652869/* System header to define __stub macros and hopefully few prototypes,
     
    28842888; return 0; }
    28852889EOF
    2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2890if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    28872891  rm -rf conftest*
    28882892  eval "ac_cv_func__doprnt=yes"
     
    29102914
    29112915echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6
    2912 echo "configure:2913: checking for library containing setenv" >&5
     2916echo "configure:2917: checking for library containing setenv" >&5
    29132917if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then
    29142918  echo $ac_n "(cached) $ac_c" 1>&6
     
    29172921ac_cv_search_setenv="no"
    29182922cat > conftest.$ac_ext <<EOF
    2919 #line 2920 "configure"
     2923#line 2924 "configure"
    29202924#include "confdefs.h"
    29212925/* Override any gcc2 internal prototype to avoid an error.  */
     
    29282932; return 0; }
    29292933EOF
    2930 if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2934if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29312935  rm -rf conftest*
    29322936  ac_cv_search_setenv="none required"
     
    29392943LIBS="-l$i  $ac_func_search_save_LIBS"
    29402944cat > conftest.$ac_ext <<EOF
    2941 #line 2942 "configure"
     2945#line 2946 "configure"
    29422946#include "confdefs.h"
    29432947/* Override any gcc2 internal prototype to avoid an error.  */
     
    29502954; return 0; }
    29512955EOF
    2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     2956if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    29532957  rm -rf conftest*
    29542958  ac_cv_search_setenv="-l$i"
     
    29732977do
    29742978echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    2975 echo "configure:2976: checking for $ac_func" >&5
     2979echo "configure:2980: checking for $ac_func" >&5
    29762980if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    29772981  echo $ac_n "(cached) $ac_c" 1>&6
    29782982else
    29792983  cat > conftest.$ac_ext <<EOF
    2980 #line 2981 "configure"
     2984#line 2985 "configure"
    29812985#include "confdefs.h"
    29822986/* System header to define __stub macros and hopefully few prototypes,
     
    30013005; return 0; }
    30023006EOF
    3003 if { (eval echo configure:3004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3007if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    30043008  rm -rf conftest*
    30053009  eval "ac_cv_func_$ac_func=yes"
     
    30303034# arithmetic shifts
    30313035echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
    3032 echo "configure:3033: checking whether your machine has correct arithmetic shifts" >&5
     3036echo "configure:3037: checking whether your machine has correct arithmetic shifts" >&5
    30333037if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    30343038  echo $ac_n "(cached) $ac_c" 1>&6
     
    30433047else
    30443048  cat > conftest.$ac_ext <<EOF
    3045 #line 3046 "configure"
     3049#line 3050 "configure"
    30463050#include "confdefs.h"
    30473051 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    30483052EOF
    3049 if { (eval echo configure:3050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3053if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    30503054then
    30513055  ac_cv_shift=yes
     
    30723076# check for a peculiar constructor initialization
    30733077echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
    3074 echo "configure:3075: checking whether explicit C++ constructor calls are allowed" >&5
     3078echo "configure:3079: checking whether explicit C++ constructor calls are allowed" >&5
    30753079
    30763080ac_ext=C
     
    30853089else
    30863090  cat > conftest.$ac_ext <<EOF
    3087 #line 3088 "configure"
     3091#line 3092 "configure"
    30883092#include "confdefs.h"
    30893093
     
    31033107; return 0; }
    31043108EOF
    3105 if { (eval echo configure:3106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3109if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    31063110  rm -rf conftest*
    31073111  ac_cv_explicit_const=yes
     
    31323136# sprintf returns number of printed chars
    31333137echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
    3134 echo "configure:3135: checking whether vsprintf returns number of printed chars" >&5
     3138echo "configure:3139: checking whether vsprintf returns number of printed chars" >&5
    31353139if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    31363140  echo $ac_n "(cached) $ac_c" 1>&6
     
    31403144else
    31413145  cat > conftest.$ac_ext <<EOF
    3142 #line 3143 "configure"
     3146#line 3147 "configure"
    31433147#include "confdefs.h"
    31443148#include <stdio.h>
    31453149 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    31463150EOF
    3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3151if { (eval echo configure:3152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31483152then
    31493153  ac_cv_returns_n_of_chars=yes
     
    31713175# determine ALIGN_8
    31723176echo $ac_n "checking size of char""... $ac_c" 1>&6
    3173 echo "configure:3174: checking size of char" >&5
     3177echo "configure:3178: checking size of char" >&5
    31743178if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    31753179  echo $ac_n "(cached) $ac_c" 1>&6
     
    31793183else
    31803184  cat > conftest.$ac_ext <<EOF
    3181 #line 3182 "configure"
     3185#line 3186 "configure"
    31823186#include "confdefs.h"
    31833187#include <stdio.h>
     
    31903194}
    31913195EOF
    3192 if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3196if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    31933197then
    31943198  ac_cv_sizeof_char=`cat conftestval`
     
    32103214
    32113215echo $ac_n "checking size of short""... $ac_c" 1>&6
    3212 echo "configure:3213: checking size of short" >&5
     3216echo "configure:3217: checking size of short" >&5
    32133217if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    32143218  echo $ac_n "(cached) $ac_c" 1>&6
     
    32183222else
    32193223  cat > conftest.$ac_ext <<EOF
    3220 #line 3221 "configure"
     3224#line 3225 "configure"
    32213225#include "confdefs.h"
    32223226#include <stdio.h>
     
    32293233}
    32303234EOF
    3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3235if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32323236then
    32333237  ac_cv_sizeof_short=`cat conftestval`
     
    32493253
    32503254echo $ac_n "checking size of int""... $ac_c" 1>&6
    3251 echo "configure:3252: checking size of int" >&5
     3255echo "configure:3256: checking size of int" >&5
    32523256if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    32533257  echo $ac_n "(cached) $ac_c" 1>&6
     
    32573261else
    32583262  cat > conftest.$ac_ext <<EOF
    3259 #line 3260 "configure"
     3263#line 3264 "configure"
    32603264#include "confdefs.h"
    32613265#include <stdio.h>
     
    32683272}
    32693273EOF
    3270 if { (eval echo configure:3271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3274if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    32713275then
    32723276  ac_cv_sizeof_int=`cat conftestval`
     
    32883292
    32893293echo $ac_n "checking size of long""... $ac_c" 1>&6
    3290 echo "configure:3291: checking size of long" >&5
     3294echo "configure:3295: checking size of long" >&5
    32913295if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    32923296  echo $ac_n "(cached) $ac_c" 1>&6
     
    32963300else
    32973301  cat > conftest.$ac_ext <<EOF
    3298 #line 3299 "configure"
     3302#line 3303 "configure"
    32993303#include "confdefs.h"
    33003304#include <stdio.h>
     
    33073311}
    33083312EOF
    3309 if { (eval echo configure:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3313if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33103314then
    33113315  ac_cv_sizeof_long=`cat conftestval`
     
    33273331
    33283332echo $ac_n "checking size of void*""... $ac_c" 1>&6
    3329 echo "configure:3330: checking size of void*" >&5
     3333echo "configure:3334: checking size of void*" >&5
    33303334if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    33313335  echo $ac_n "(cached) $ac_c" 1>&6
     
    33353339else
    33363340  cat > conftest.$ac_ext <<EOF
    3337 #line 3338 "configure"
     3341#line 3342 "configure"
    33383342#include "confdefs.h"
    33393343#include <stdio.h>
     
    33463350}
    33473351EOF
    3348 if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3352if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33493353then
    33503354  ac_cv_sizeof_voidp=`cat conftestval`
     
    33663370
    33673371echo $ac_n "checking size of double""... $ac_c" 1>&6
    3368 echo "configure:3369: checking size of double" >&5
     3372echo "configure:3373: checking size of double" >&5
    33693373if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    33703374  echo $ac_n "(cached) $ac_c" 1>&6
     
    33743378else
    33753379  cat > conftest.$ac_ext <<EOF
    3376 #line 3377 "configure"
     3380#line 3381 "configure"
    33773381#include "confdefs.h"
    33783382#include <stdio.h>
     
    33853389}
    33863390EOF
    3387 if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3391if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    33883392then
    33893393  ac_cv_sizeof_double=`cat conftestval`
     
    34053409
    34063410echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
    3407 echo "configure:3408: checking whether byte ordering is bigendian" >&5
     3411echo "configure:3412: checking whether byte ordering is bigendian" >&5
    34083412if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    34093413  echo $ac_n "(cached) $ac_c" 1>&6
     
    34123416# See if sys/param.h defines the BYTE_ORDER macro.
    34133417cat > conftest.$ac_ext <<EOF
    3414 #line 3415 "configure"
     3418#line 3419 "configure"
    34153419#include "confdefs.h"
    34163420#include <sys/types.h>
     
    34233427; return 0; }
    34243428EOF
    3425 if { (eval echo configure:3426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3429if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    34263430  rm -rf conftest*
    34273431  # It does; now see whether it defined to BIG_ENDIAN or not.
    34283432cat > conftest.$ac_ext <<EOF
    3429 #line 3430 "configure"
     3433#line 3434 "configure"
    34303434#include "confdefs.h"
    34313435#include <sys/types.h>
     
    34383442; return 0; }
    34393443EOF
    3440 if { (eval echo configure:3441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3444if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    34413445  rm -rf conftest*
    34423446  ac_cv_c_bigendian=yes
     
    34583462else
    34593463  cat > conftest.$ac_ext <<EOF
    3460 #line 3461 "configure"
     3464#line 3465 "configure"
    34613465#include "confdefs.h"
    34623466main () {
     
    34713475}
    34723476EOF
    3473 if { (eval echo configure:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     3477if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    34743478then
    34753479  ac_cv_c_bigendian=no
     
    35893593
    35903594echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6
    3591 echo "configure:3592: checking whether to use dynamic linking" >&5
     3595echo "configure:3596: checking whether to use dynamic linking" >&5
    35923596if test "$with_dl" != no && test "$ac_lib_dl" = yes; then
    35933597  cat >> confdefs.h <<\EOF
     
    36023606
    36033607echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
    3604 echo "configure:3605: checking for tgetent in -lncurses" >&5
     3608echo "configure:3609: checking for tgetent in -lncurses" >&5
    36053609ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    36063610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    36103614LIBS="-lncurses  $LIBS"
    36113615cat > conftest.$ac_ext <<EOF
    3612 #line 3613 "configure"
     3616#line 3617 "configure"
    36133617#include "confdefs.h"
    36143618/* Override any gcc2 internal prototype to avoid an error.  */
     
    36213625; return 0; }
    36223626EOF
    3623 if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3627if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    36243628  rm -rf conftest*
    36253629  eval "ac_cv_lib_$ac_lib_var=yes"
     
    36483652\
    36493653 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
    3650 echo "configure:3651: checking for tgetent in -lcurses" >&5
     3654echo "configure:3655: checking for tgetent in -lcurses" >&5
    36513655ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    36523656if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    36563660LIBS="-lcurses  $LIBS"
    36573661cat > conftest.$ac_ext <<EOF
    3658 #line 3659 "configure"
     3662#line 3663 "configure"
    36593663#include "confdefs.h"
    36603664/* Override any gcc2 internal prototype to avoid an error.  */
     
    36673671; return 0; }
    36683672EOF
    3669 if { (eval echo configure:3670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3673if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    36703674  rm -rf conftest*
    36713675  eval "ac_cv_lib_$ac_lib_var=yes"
     
    36943698\
    36953699  echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
    3696 echo "configure:3697: checking for tgetent in -ltermcap" >&5
     3700echo "configure:3701: checking for tgetent in -ltermcap" >&5
    36973701ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    36983702if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37023706LIBS="-ltermcap  $LIBS"
    37033707cat > conftest.$ac_ext <<EOF
    3704 #line 3705 "configure"
     3708#line 3709 "configure"
    37053709#include "confdefs.h"
    37063710/* Override any gcc2 internal prototype to avoid an error.  */
     
    37133717; return 0; }
    37143718EOF
    3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3719if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37163720  rm -rf conftest*
    37173721  eval "ac_cv_lib_$ac_lib_var=yes"
     
    37623766
    37633767   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
    3764 echo "configure:3765: checking for rl_abort in -lreadline" >&5
     3768echo "configure:3769: checking for rl_abort in -lreadline" >&5
    37653769ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    37663770if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    37703774LIBS="-lreadline  $LIBS"
    37713775cat > conftest.$ac_ext <<EOF
    3772 #line 3773 "configure"
     3776#line 3777 "configure"
    37733777#include "confdefs.h"
    37743778/* Override any gcc2 internal prototype to avoid an error.  */
     
    37843788; return 0; }
    37853789EOF
    3786 if { (eval echo configure:3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3790if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    37873791  rm -rf conftest*
    37883792  eval "ac_cv_lib_$ac_lib_var=yes"
     
    38123816
    38133817   echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
    3814 echo "configure:3815: checking how to run the C++ preprocessor" >&5
     3818echo "configure:3819: checking how to run the C++ preprocessor" >&5
    38153819if test -z "$CXXCPP"; then
    38163820if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
     
    38253829  CXXCPP="${CXX-g++} -E"
    38263830  cat > conftest.$ac_ext <<EOF
    3827 #line 3828 "configure"
     3831#line 3832 "configure"
    38283832#include "confdefs.h"
    38293833#include <stdlib.h>
    38303834EOF
    38313835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3832 { (eval echo configure:3833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3836{ (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    38333837ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    38343838if test -z "$ac_err"; then
     
    38583862ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    38593863echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    3860 echo "configure:3861: checking for $ac_hdr" >&5
     3864echo "configure:3865: checking for $ac_hdr" >&5
    38613865if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    38623866  echo $ac_n "(cached) $ac_c" 1>&6
    38633867else
    38643868  cat > conftest.$ac_ext <<EOF
    3865 #line 3866 "configure"
     3869#line 3870 "configure"
    38663870#include "confdefs.h"
    38673871#include <$ac_hdr>
    38683872EOF
    38693873ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3870 { (eval echo configure:3871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3874{ (eval echo configure:3875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    38713875ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    38723876if test -z "$ac_err"; then
     
    38973901      test "$ac_cv_header_readline_readline_h" = yes; then
    38983902     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
    3899 echo "configure:3900: checking whether readline.h is ok" >&5
     3903echo "configure:3904: checking whether readline.h is ok" >&5
    39003904     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    39013905  echo $ac_n "(cached) $ac_c" 1>&6
    39023906else
    39033907  cat > conftest.$ac_ext <<EOF
    3904 #line 3905 "configure"
     3908#line 3909 "configure"
    39053909#include "confdefs.h"
    39063910#include<unistd.h>
     
    39273931; return 0; }
    39283932EOF
    3929 if { (eval echo configure:3930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3933if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    39303934  rm -rf conftest*
    39313935  ac_cv_header_readline_readline_h_ok="yes"
     
    39433947#not ok -- try once more with explicitly declaring everything
    39443948      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
    3945 echo "configure:3946: checking whether or not we nevertheless can use readline" >&5
     3949echo "configure:3950: checking whether or not we nevertheless can use readline" >&5
    39463950      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    39473951  echo $ac_n "(cached) $ac_c" 1>&6
    39483952else
    39493953  cat > conftest.$ac_ext <<EOF
    3950 #line 3951 "configure"
     3954#line 3955 "configure"
    39513955#include "confdefs.h"
    39523956#include <stdio.h>
     
    39823986; return 0; }
    39833987EOF
    3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     3988if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    39853989  rm -rf conftest*
    39863990  ac_cv_have_readline="yes"
     
    40214025
    40224026echo $ac_n "checking which readline to use""... $ac_c" 1>&6
    4023 echo "configure:4024: checking which readline to use" >&5
     4027echo "configure:4028: checking which readline to use" >&5
    40244028if test "$ac_cv_with_readline" = dynamic; then
    40254029  echo "$ac_t""dynamic" 1>&6
     
    40394043# gmp, smallgmp, MP, MPT, factory, libfac
    40404044echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
    4041 echo "configure:4042: checking for main in -lgmp" >&5
     4045echo "configure:4046: checking for main in -lgmp" >&5
    40424046ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
    40434047if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40474051LIBS="-lgmp  $LIBS"
    40484052cat > conftest.$ac_ext <<EOF
    4049 #line 4050 "configure"
     4053#line 4054 "configure"
    40504054#include "confdefs.h"
    40514055
     
    40544058; return 0; }
    40554059EOF
    4056 if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4060if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    40574061  rm -rf conftest*
    40584062  eval "ac_cv_lib_$ac_lib_var=yes"
     
    40854089fi
    40864090echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6
    4087 echo "configure:4088: checking for main in -lsmallgmp" >&5
     4091echo "configure:4092: checking for main in -lsmallgmp" >&5
    40884092ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'`
    40894093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    40934097LIBS="-lsmallgmp  $LIBS"
    40944098cat > conftest.$ac_ext <<EOF
    4095 #line 4096 "configure"
     4099#line 4100 "configure"
    40964100#include "confdefs.h"
    40974101
     
    41004104; return 0; }
    41014105EOF
    4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4106if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    41034107  rm -rf conftest*
    41044108  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41294133SAVE_LIBS=$LIBS
    41304134echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
    4131 echo "configure:4132: checking for IMP_PutGmpInt in -lMP" >&5
     4135echo "configure:4136: checking for IMP_PutGmpInt in -lMP" >&5
    41324136ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    41334137if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41374141LIBS="-lMP $MP_LIBS $LIBS"
    41384142cat > conftest.$ac_ext <<EOF
    4139 #line 4140 "configure"
     4143#line 4144 "configure"
    41404144#include "confdefs.h"
    41414145/* Override any gcc2 internal prototype to avoid an error.  */
     
    41484152; return 0; }
    41494153EOF
    4150 if { (eval echo configure:4151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4154if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    41514155  rm -rf conftest*
    41524156  eval "ac_cv_lib_$ac_lib_var=yes"
     
    41764180
    41774181echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
    4178 echo "configure:4179: checking for MPT_GetTree in -lMPT" >&5
     4182echo "configure:4183: checking for MPT_GetTree in -lMPT" >&5
    41794183ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    41804184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    41844188LIBS="-lMPT $MP_LIBS $LIBS"
    41854189cat > conftest.$ac_ext <<EOF
    4186 #line 4187 "configure"
     4190#line 4191 "configure"
    41874191#include "confdefs.h"
    41884192/* Override any gcc2 internal prototype to avoid an error.  */
     
    41954199; return 0; }
    41964200EOF
    4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4201if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    41984202  rm -rf conftest*
    41994203  eval "ac_cv_lib_$ac_lib_var=yes"
     
    42244228LIBS=$SAVE_LIBS
    42254229echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
    4226 echo "configure:4227: checking for atof in -lsingcf" >&5
     4230echo "configure:4231: checking for atof in -lsingcf" >&5
    42274231ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    42284232if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    42324236LIBS="-lsingcf  $LIBS"
    42334237cat > conftest.$ac_ext <<EOF
    4234 #line 4235 "configure"
     4238#line 4239 "configure"
    42354239#include "confdefs.h"
    42364240/* Override any gcc2 internal prototype to avoid an error.  */
     
    42434247; return 0; }
    42444248EOF
    4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4249if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    42464250  rm -rf conftest*
    42474251  eval "ac_cv_lib_$ac_lib_var=yes"
     
    42714275
    42724276echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
    4273 echo "configure:4274: checking for atof in -lsingfac" >&5
     4277echo "configure:4278: checking for atof in -lsingfac" >&5
    42744278ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    42754279if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    42794283LIBS="-lsingfac  $LIBS"
    42804284cat > conftest.$ac_ext <<EOF
    4281 #line 4282 "configure"
     4285#line 4286 "configure"
    42824286#include "confdefs.h"
    42834287/* Override any gcc2 internal prototype to avoid an error.  */
     
    42904294; return 0; }
    42914295EOF
    4292 if { (eval echo configure:4293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4296if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    42934297  rm -rf conftest*
    42944298  eval "ac_cv_lib_$ac_lib_var=yes"
     
    43184322
    43194323echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6
    4320 echo "configure:4321: checking for omTestAddr in -lomalloc" >&5
     4324echo "configure:4325: checking for omTestAddr in -lomalloc" >&5
    43214325ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'`
    43224326if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43264330LIBS="-lomalloc  $LIBS"
    43274331cat > conftest.$ac_ext <<EOF
    4328 #line 4329 "configure"
     4332#line 4333 "configure"
    43294333#include "confdefs.h"
    43304334/* Override any gcc2 internal prototype to avoid an error.  */
     
    43374341; return 0; }
    43384342EOF
    4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4343if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43404344  rm -rf conftest*
    43414345  eval "ac_cv_lib_$ac_lib_var=yes"
     
    43654369
    43664370echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6
    4367 echo "configure:4368: checking for main in -lomalloc_ndebug" >&5
     4371echo "configure:4372: checking for main in -lomalloc_ndebug" >&5
    43684372ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'`
    43694373if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
     
    43734377LIBS="-lomalloc_ndebug  $LIBS"
    43744378cat > conftest.$ac_ext <<EOF
    4375 #line 4376 "configure"
     4379#line 4380 "configure"
    43764380#include "confdefs.h"
    43774381
     
    43804384; return 0; }
    43814385EOF
    4382 if { (eval echo configure:4383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     4386if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    43834387  rm -rf conftest*
    43844388  eval "ac_cv_lib_$ac_lib_var=yes"
     
    44124416ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    44134417echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    4414 echo "configure:4415: checking for $ac_hdr" >&5
     4418echo "configure:4419: checking for $ac_hdr" >&5
    44154419if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    44164420  echo $ac_n "(cached) $ac_c" 1>&6
    44174421else
    44184422  cat > conftest.$ac_ext <<EOF
    4419 #line 4420 "configure"
     4423#line 4424 "configure"
    44204424#include "confdefs.h"
    44214425#include <$ac_hdr>
    44224426EOF
    44234427ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    4424 { (eval echo configure:4425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4428{ (eval echo configure:4429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    44254429ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    44264430if test -z "$ac_err"; then
     
    44914495
    44924496echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
    4493 echo "configure:4494: checking which apint package to use" >&5
     4497echo "configure:4498: checking which apint package to use" >&5
    44944498if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    44954499  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    45334537#
    45344538echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
    4535 echo "configure:4536: checking whether to have MP" >&5
     4539echo "configure:4540: checking whether to have MP" >&5
    45364540if test "${with_MP}" != yes && test "${with_MP}" != no; then
    45374541  if (test "${will_have_gmp}" = yes) && \
     
    45684572
    45694573echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
    4570 echo "configure:4571: checking whether to have factory" >&5
     4574echo "configure:4575: checking whether to have factory" >&5
    45714575if test "${with_factory}" != yes && test "${with_factory}" != no; then
    45724576  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    45994603
    46004604echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
    4601 echo "configure:4602: checking whether to have libfac" >&5
     4605echo "configure:4606: checking whether to have libfac" >&5
    46024606if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    46034607  if (test "${will_have_factory}" = yes) && \
     
    46334637
    46344638echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
    4635 echo "configure:4636: checking whether to have dbm links" >&5
     4639echo "configure:4640: checking whether to have dbm links" >&5
    46364640if test "$with_dbm" != no; then
    46374641  cat >> confdefs.h <<\EOF
     
    46454649
    46464650echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6
    4647 echo "configure:4648: checking whether to have namespaces" >&5
     4651echo "configure:4652: checking whether to have namespaces" >&5
    46484652if test "$with_namespaces" != yes; then
    46494653  echo "$ac_t""no" 1>&6
     
    46574661
    46584662echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6
    4659 echo "configure:4660: checking whether to have dynamic modules" >&5
     4663echo "configure:4664: checking whether to have dynamic modules" >&5
    46604664if test "$with_dynamic_modules" != yes || test "$ac_have_dl" != yes; then
    46614665  echo "$ac_t""no" 1>&6
     
    46694673
    46704674echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6
    4671 echo "configure:4672: checking whether to have dynamic kernel" >&5
     4675echo "configure:4676: checking whether to have dynamic kernel" >&5
    46724676if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then
    46734677  DL_KERNEL=1
    46744678 
    46754679  echo "$ac_t""yes" 1>&6
     4680else
     4681  echo "$ac_t""no" 1>&6
    46764682fi
    46774683
    46784684echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6
    4679 echo "configure:4680: checking whether to have Plural" >&5
     4685echo "configure:4686: checking whether to have Plural" >&5
    46804686if test "$with_plural" != yes; then
    46814687  echo "$ac_t""no" 1>&6
  • Singular/configure.in

    rd83977 rf8dcbcb  
    281281dnl
    282282# lib checks
     283# under cygwin, we should not explicitly link with -lm, except for
     284# it reallz is the last thing to link with
     285if test "$ac_cv_singuname" != ix86-Win; then
    283286AC_CHECK_LIB(m, atof)
     287fi
    284288SAVE_LIBS=${LIBS}
    285289LIBS=
     
    804808  AC_SUBST(DL_KERNEL)
    805809  AC_MSG_RESULT(yes)
     810else
     811  AC_MSG_RESULT(no)
    806812fi
    807813
  • Singular/mmalloc.cc

    rd83977 rf8dcbcb  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmalloc.cc,v 1.2 2000-11-20 10:18:55 hannes Exp $ */
     4/* $Id: mmalloc.cc,v 1.3 2001-01-27 17:04:59 obachman Exp $ */
    55/*
    66* ABSTRACT: standard version of C++-memory management alloc func
     
    1010#include "mod2.h"
    1111
     12#if 0
    1213#include <omalloc.h>
    1314
     
    4041  omfree( block );
    4142}
     43
     44#endif
  • Singular/mminit.cc

    rd83977 rf8dcbcb  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mminit.cc,v 1.21 2000-09-18 09:19:17 obachman Exp $ */
     4/* $Id: mminit.cc,v 1.22 2001-01-27 17:04:59 obachman Exp $ */
    55/*
    66* ABSTRACT: init of memory management
     
    1313#include "mmalloc.h"
    1414#include "structs.h"
    15 // this prevents the definition of malloc/free ad macros
     15// this prevents the definition of malloc/free and macros
    1616// by omalloc
    1717#define OMALLOC_C
     
    4141  if(mmIsInitialized==0)
    4242  {
     43#ifdef OMALLOC_USES_MALLOC
     44    mp_set_memory_functions(omMallocFunc,omReallocSizeFunc,omFreeSizeFunc);
     45#else
    4346    mp_set_memory_functions(malloc,reallocSize,freeSize);
     47#endif
    4448    om_Opts.OutOfMemoryFunc = omSingOutOfMemoryFunc;
    4549#ifndef OM_NDEBUG
  • Singular/mmstd.c

    rd83977 rf8dcbcb  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mmstd.c,v 1.2 2001-01-24 16:54:04 levandov Exp $ */
     4/* $Id: mmstd.c,v 1.3 2001-01-27 17:04:59 obachman Exp $ */
    55/*
    6 * ABSTRACT: standard version of C-memory management alloc func
     6* ABSTRACT: standard version of C-memory management alloc func
     7* i.e. (malloc/realloc/free)
    78*/
    89
    910#include "mod2.h"
    1011
    11 /* We define those, so that our values of
    12    OM_TRACK and OM_CHECK are used  */
     12#define OM_NO_MALLOC_MACROS
     13#include "omalloc.h"
     14
     15// we provide these functions, so that the settings of OM_CHECK
     16// and OM_TRACK are used, but only provide them if omalloc is not based
     17// on them
     18#ifndef OMALLOC_USES_MALLOC
    1319
    1420// define this so that all addr allocated there are marked
    1521// as static, i.e. not metioned by omPrintUsedAddr
    16 #ifndef ix86_Win
    1722#define OM_MALLOC_MARK_AS_STATIC
    1823#include <omalloc.c>
    19 #else
    20 #include <stdlib.h>
    21 void freeSize(void* addr, size_t size)
    22 {
    23   if (addr) free(addr);
    24 }
    25 
    26 void* reallocSize(void* old_addr, size_t old_size, size_t new_size)
    27 {
    28   if (old_addr && new_size)
    29   {
    30    return realloc(old_addr, new_size);
    31   }
    32   else
    33   {
    34     freeSize(old_addr, old_size);
    35     return malloc(new_size);
    36   }
    37 }
    3824#endif
Note: See TracChangeset for help on using the changeset viewer.