Changeset 16b993 in git


Ignore:
Timestamp:
Jul 14, 1998, 10:14:52 AM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5f5ed99f9b719654ec2840cba9d72efdb02c129b
Parents:
27f5f1edf9475934ab02b6a47a62274167d11887
Message:
* increased version to 1.3


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

Legend:

Unmodified
Added
Removed
  • Singular/configure

    r27f5f1e r16b993  
    22
    33# Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.9
     4# Generated automatically using autoconf version 2.12
    55# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    66#
     
    7979subdirs=
    8080MFLAGS= MAKEFLAGS=
     81# Maximum number of lines to put in a shell here document.
     82ac_max_here_lines=12
    8183
    8284ac_prev=
     
    360362
    361363  -version | --version | --versio | --versi | --vers)
    362     echo "configure generated by autoconf version 2.9"
     364    echo "configure generated by autoconf version 2.12"
    363365    exit 0 ;;
    364366
     
    462464
    463465# NLS nuisances.
    464 # Only set LANG and LC_ALL to C if already set.
    465 # These must not be set unconditionally because not all systems understand
    466 # e.g. LANG=C (notably SCO).
     466# Only set these to C if already set.  These must not be set unconditionally
     467# because not all systems understand e.g. LANG=C (notably SCO).
     468# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
     469# Non-C LC_CTYPE values break the ctype check.
     470if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
    467471if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
    468 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
     472if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
     473if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
    469474
    470475# confdefs.h avoids OS command line length limits that DEFS can exceed.
     
    528533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    529534ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     535cross_compiling=$ac_cv_prog_cc_cross
    530536
    531537if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
     
    546552
    547553echo $ac_n "checking uname for singular""... $ac_c" 1>&6
     554echo "configure:555: checking uname for singular" >&5
    548555if eval "test \"`echo '$''{'ac_cv_singuname'+set}'`\" = set"; then
    549556  echo $ac_n "(cached) $ac_c" 1>&6
     
    565572echo "$ac_t""$ac_cv_singuname" 1>&6
    566573if test "$ac_cv_singuname" = unknown; then
    567   { echo "configure: error: Unknown architecture: Check singuname.sh" 1>&2; exit 1; }
     574  echo "configure: warning: Unknown architecture: Check singuname.sh" 1>&2
     575  ac_cv_singuname="unknown"
    568576fi
    569577cat >> confdefs.h <<EOF
     
    581589
    582590SINGULAR_MAJOR_VERSION=${SINGULAR_MAJOR_VERSION:-1}
    583 SINGULAR_MINOR_VERSION=${SINGULAR_MINOR_VERSION:-2}
     591SINGULAR_MINOR_VERSION=${SINGULAR_MINOR_VERSION:-3}
    584592SINGULAR_SUB_VERSION=${SINGULAR_SUB_VERSION:-0}
    585593SINGULAR_VERSION="${SINGULAR_VERSION:-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}"
    586 VERSION_DATE=${VERSION_DATE:-"June 1998"}
     594VERSION_DATE=${VERSION_DATE:-"July 1998"}
    587595
    588596
     
    631639set dummy gcc; ac_word=$2
    632640echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     641echo "configure:642: checking for $ac_word" >&5
    633642if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    634643  echo $ac_n "(cached) $ac_c" 1>&6
     
    659668set dummy cc; ac_word=$2
    660669echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     670echo "configure:671: checking for $ac_word" >&5
    661671if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    662672  echo $ac_n "(cached) $ac_c" 1>&6
     
    705715fi
    706716
     717echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     718echo "configure:719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
     719
     720ac_ext=c
     721# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     722ac_cpp='$CPP $CPPFLAGS'
     723ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     724ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     725cross_compiling=$ac_cv_prog_cc_cross
     726
     727cat > conftest.$ac_ext <<EOF
     728#line 729 "configure"
     729#include "confdefs.h"
     730main(){return(0);}
     731EOF
     732if { (eval echo configure:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     733  ac_cv_prog_cc_works=yes
     734  # If we can't run a trivial program, we are probably using a cross compiler.
     735  if (./conftest; exit) 2>/dev/null; then
     736    ac_cv_prog_cc_cross=no
     737  else
     738    ac_cv_prog_cc_cross=yes
     739  fi
     740else
     741  echo "configure: failed program was:" >&5
     742  cat conftest.$ac_ext >&5
     743  ac_cv_prog_cc_works=no
     744fi
     745rm -fr conftest*
     746
     747echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
     748if test $ac_cv_prog_cc_works = no; then
     749  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
     750fi
     751echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     752echo "configure:753: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
     753echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
     754cross_compiling=$ac_cv_prog_cc_cross
     755
    707756echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
     757echo "configure:758: checking whether we are using GNU C" >&5
    708758if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    709759  echo $ac_n "(cached) $ac_c" 1>&6
     
    714764#endif
    715765EOF
    716 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     766if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    717767  ac_cv_prog_gcc=yes
    718768else
     
    722772
    723773echo "$ac_t""$ac_cv_prog_gcc" 1>&6
     774
    724775if test $ac_cv_prog_gcc = yes; then
    725776  GCC=yes
    726   if test "${CFLAGS+set}" != set; then
    727     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
    728 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
     777  ac_test_CFLAGS="${CFLAGS+set}"
     778  ac_save_CFLAGS="$CFLAGS"
     779  CFLAGS=
     780  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
     781echo "configure:782: checking whether ${CC-cc} accepts -g" >&5
     782if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    729783  echo $ac_n "(cached) $ac_c" 1>&6
    730784else
    731785  echo 'void f(){}' > conftest.c
    732786if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
    733   ac_cv_prog_gcc_g=yes
    734 else
    735   ac_cv_prog_gcc_g=no
    736 fi
    737 rm -f conftest*
    738 
    739 fi
    740 
    741 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
    742     if test $ac_cv_prog_gcc_g = yes; then
    743       CFLAGS="-g -O"
    744     else
    745       CFLAGS="-O"
    746     fi
     787  ac_cv_prog_cc_g=yes
     788else
     789  ac_cv_prog_cc_g=no
     790fi
     791rm -f conftest*
     792
     793fi
     794
     795echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
     796  if test "$ac_test_CFLAGS" = set; then
     797    CFLAGS="$ac_save_CFLAGS"
     798  elif test $ac_cv_prog_cc_g = yes; then
     799    CFLAGS="-g -O2"
     800  else
     801    CFLAGS="-O2"
    747802  fi
    748803else
     
    752807
    753808echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
     809echo "configure:810: checking how to run the C preprocessor" >&5
    754810# On Suns, sometimes $CPP names a directory.
    755811if test -n "$CPP" && test -d "$CPP"; then
     
    766822  # not just through cpp.
    767823  cat > conftest.$ac_ext <<EOF
    768 #line 769 "configure"
     824#line 825 "configure"
    769825#include "confdefs.h"
    770826#include <assert.h>
     
    772828EOF
    773829ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    774 { (eval echo configure:775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     830{ (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    775831ac_err=`grep -v '^ *+' conftest.out`
    776832if test -z "$ac_err"; then
     
    778834else
    779835  echo "$ac_err" >&5
     836  echo "configure: failed program was:" >&5
     837  cat conftest.$ac_ext >&5
    780838  rm -rf conftest*
    781839  CPP="${CC-cc} -E -traditional-cpp"
    782840  cat > conftest.$ac_ext <<EOF
    783 #line 784 "configure"
     841#line 842 "configure"
    784842#include "confdefs.h"
    785843#include <assert.h>
     
    787845EOF
    788846ac_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; }
     847{ (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    790848ac_err=`grep -v '^ *+' conftest.out`
    791849if test -z "$ac_err"; then
     
    793851else
    794852  echo "$ac_err" >&5
     853  echo "configure: failed program was:" >&5
     854  cat conftest.$ac_ext >&5
    795855  rm -rf conftest*
    796856  CPP=/lib/cpp
     
    807867echo "$ac_t""$CPP" 1>&6
    808868
    809 for ac_prog in $CCC c++ g++ gcc CC cxx
     869for ac_prog in $CCC c++ g++ gcc CC cxx cc++
    810870do
    811871# Extract the first word of "$ac_prog", so it can be a program name with args.
    812872set dummy $ac_prog; ac_word=$2
    813873echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     874echo "configure:875: checking for $ac_word" >&5
    814875if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    815876  echo $ac_n "(cached) $ac_c" 1>&6
     
    841902
    842903
     904echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
     905echo "configure:906: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
     906
     907ac_ext=C
     908# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     909ac_cpp='$CXXCPP $CPPFLAGS'
     910ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     911ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     912cross_compiling=$ac_cv_prog_cxx_cross
     913
     914cat > conftest.$ac_ext <<EOF
     915#line 916 "configure"
     916#include "confdefs.h"
     917main(){return(0);}
     918EOF
     919if { (eval echo configure:920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     920  ac_cv_prog_cxx_works=yes
     921  # If we can't run a trivial program, we are probably using a cross compiler.
     922  if (./conftest; exit) 2>/dev/null; then
     923    ac_cv_prog_cxx_cross=no
     924  else
     925    ac_cv_prog_cxx_cross=yes
     926  fi
     927else
     928  echo "configure: failed program was:" >&5
     929  cat conftest.$ac_ext >&5
     930  ac_cv_prog_cxx_works=no
     931fi
     932rm -fr conftest*
     933ac_ext=c
     934# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
     935ac_cpp='$CPP $CPPFLAGS'
     936ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
     937ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     938cross_compiling=$ac_cv_prog_cc_cross
     939
     940echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
     941if test $ac_cv_prog_cxx_works = no; then
     942  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
     943fi
     944echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
     945echo "configure:946: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
     946echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
     947cross_compiling=$ac_cv_prog_cxx_cross
     948
    843949echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
     950echo "configure:951: checking whether we are using GNU C++" >&5
    844951if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    845952  echo $ac_n "(cached) $ac_c" 1>&6
     
    850957#endif
    851958EOF
    852 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
     959if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    853960  ac_cv_prog_gxx=yes
    854961else
     
    858965
    859966echo "$ac_t""$ac_cv_prog_gxx" 1>&6
     967
    860968if test $ac_cv_prog_gxx = yes; then
    861969  GXX=yes
    862   if test "${CXXFLAGS+set}" != set; then
    863     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
    864 if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
     970  ac_test_CXXFLAGS="${CXXFLAGS+set}"
     971  ac_save_CXXFLAGS="$CXXFLAGS"
     972  CXXFLAGS=
     973  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
     974echo "configure:975: checking whether ${CXX-g++} accepts -g" >&5
     975if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    865976  echo $ac_n "(cached) $ac_c" 1>&6
    866977else
    867978  echo 'void f(){}' > conftest.cc
    868979if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
    869   ac_cv_prog_gxx_g=yes
    870 else
    871   ac_cv_prog_gxx_g=no
    872 fi
    873 rm -f conftest*
    874 
    875 fi
    876 
    877 echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
    878     if test $ac_cv_prog_gxx_g = yes; then
    879       CXXFLAGS="-g -O"
    880     else
    881       CXXFLAGS="-O"
    882     fi
     980  ac_cv_prog_cxx_g=yes
     981else
     982  ac_cv_prog_cxx_g=no
     983fi
     984rm -f conftest*
     985
     986fi
     987
     988echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
     989  if test "$ac_test_CXXFLAGS" = set; then
     990    CXXFLAGS="$ac_save_CXXFLAGS"
     991  elif test $ac_cv_prog_cxx_g = yes; then
     992    CXXFLAGS="-g -O2"
     993  else
     994    CXXFLAGS="-O2"
    883995  fi
    884996else
     
    8881000
    8891001echo $ac_n "checking for AIX""... $ac_c" 1>&6
     1002echo "configure:1003: checking for AIX" >&5
    8901003cat > conftest.$ac_ext <<EOF
    891 #line 892 "configure"
     1004#line 1005 "configure"
    8921005#include "confdefs.h"
    8931006#ifdef _AIX
     
    9191032# check whether the compiler accepts -pipe
    9201033echo $ac_n "checking whether compiler accepts -pipe""... $ac_c" 1>&6
     1034echo "configure:1035: checking whether compiler accepts -pipe" >&5
    9211035temp_cflags=${CFLAGS}
    9221036CFLAGS="${CFLAGS} -pipe"
     
    9251039else
    9261040  cat > conftest.$ac_ext <<EOF
    927 #line 928 "configure"
    928 #include "confdefs.h"
    929 
    930 int main() { return 0; }
    931 int t() {
     1041#line 1042 "configure"
     1042#include "confdefs.h"
     1043
     1044int main() {
    9321045
    9331046; return 0; }
    9341047EOF
    935 if { (eval echo configure:936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1048if { (eval echo configure:1049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    9361049  rm -rf conftest*
    9371050  ac_cv_cxx_have_pipe=yes
    9381051else
     1052  echo "configure: failed program was:" >&5
     1053  cat conftest.$ac_ext >&5
    9391054  rm -rf conftest*
    9401055  ac_cv_cxx_have_pipe=no
    9411056fi
    9421057rm -f conftest*
    943 
    9441058
    9451059fi
     
    9561070# Customize CFLAGS
    9571071echo $ac_n "checking whether _AIX is defined""... $ac_c" 1>&6
     1072echo "configure:1073: checking whether _AIX is defined" >&5
    9581073if eval "test \"`echo '$''{'ac_cv_is_aix'+set}'`\" = set"; then
    9591074  echo $ac_n "(cached) $ac_c" 1>&6
    9601075else
    9611076  cat > conftest.$ac_ext <<EOF
    962 #line 963 "configure"
     1077#line 1078 "configure"
    9631078#include "confdefs.h"
    9641079#ifdef _AIX
     
    10111126
    10121127echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
    1013 set dummy ${MAKE-make}; ac_make=$2
     1128echo "configure:1129: checking whether ${MAKE-make} sets \${MAKE}" >&5
     1129set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
    10141130if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    10151131  echo $ac_n "(cached) $ac_c" 1>&6
     
    10831199if test "${with_lex+set}" != set; then
    10841200  echo $ac_n "checking for flex""... $ac_c" 1>&6
     1201echo "configure:1202: checking for flex" >&5
    10851202    if eval "test \"`echo '$''{'ac_cv_prog_flex'+set}'`\" = set"; then
    10861203  echo $ac_n "(cached) $ac_c" 1>&6
     
    11131230set dummy $ac_prog; ac_word=$2
    11141231echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1232echo "configure:1233: checking for $ac_word" >&5
    11151233if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
    11161234  echo $ac_n "(cached) $ac_c" 1>&6
     
    11481266if test "${with_perl5+set}" != set; then
    11491267  echo $ac_n "checking for perl5""... $ac_c" 1>&6
     1268echo "configure:1269: checking for perl5" >&5
    11501269    if eval "test \"`echo '$''{'ac_cv_prog_perl5'+set}'`\" = set"; then
    11511270  echo $ac_n "(cached) $ac_c" 1>&6
     
    11841303set dummy $ac_prog; ac_word=$2
    11851304echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1305echo "configure:1306: checking for $ac_word" >&5
    11861306if eval "test \"`echo '$''{'ac_cv_prog_PERL5'+set}'`\" = set"; then
    11871307  echo $ac_n "(cached) $ac_c" 1>&6
     
    12221342set dummy $ac_prog; ac_word=$2
    12231343echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1344echo "configure:1345: checking for $ac_word" >&5
    12241345if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
    12251346  echo $ac_n "(cached) $ac_c" 1>&6
     
    12591380set dummy $ac_prog; ac_word=$2
    12601381echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1382echo "configure:1383: checking for $ac_word" >&5
    12611383if eval "test \"`echo '$''{'ac_cv_prog_INFO'+set}'`\" = set"; then
    12621384  echo $ac_n "(cached) $ac_c" 1>&6
     
    13021424set dummy $ac_prog; ac_word=$2
    13031425echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
     1426echo "configure:1427: checking for $ac_word" >&5
    13041427if eval "test \"`echo '$''{'ac_cv_prog_INFO'+set}'`\" = set"; then
    13051428  echo $ac_n "(cached) $ac_c" 1>&6
     
    13411464# ln -s 
    13421465echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
     1466echo "configure:1467: checking whether ln -s works" >&5
    13431467if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    13441468  echo $ac_n "(cached) $ac_c" 1>&6
     
    13621486
    13631487# lib checks
    1364 echo $ac_n "checking for -lm""... $ac_c" 1>&6
    1365 ac_lib_var=`echo m_atof | tr '.-/+' '___p'`
     1488echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6
     1489echo "configure:1490: checking for atof in -lm" >&5
     1490ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'`
    13661491if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    13671492  echo $ac_n "(cached) $ac_c" 1>&6
     
    13701495LIBS="-lm  $LIBS"
    13711496cat > conftest.$ac_ext <<EOF
    1372 #line 1373 "configure"
     1497#line 1498 "configure"
    13731498#include "confdefs.h"
    13741499/* Override any gcc2 internal prototype to avoid an error.  */
     1500/* We use char because int might match the return type of a gcc2
     1501    builtin and then its argument prototype would still apply.  */
    13751502char atof();
    13761503
    1377 int main() { return 0; }
    1378 int t() {
     1504int main() {
    13791505atof()
    13801506; return 0; }
    13811507EOF
    1382 if { (eval echo configure:1383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1508if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    13831509  rm -rf conftest*
    13841510  eval "ac_cv_lib_$ac_lib_var=yes"
    13851511else
     1512  echo "configure: failed program was:" >&5
     1513  cat conftest.$ac_ext >&5
    13861514  rm -rf conftest*
    13871515  eval "ac_cv_lib_$ac_lib_var=no"
     
    13931521if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    13941522  echo "$ac_t""yes" 1>&6
    1395     ac_tr_lib=HAVE_LIB`echo m | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1523    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1524    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    13961525  cat >> confdefs.h <<EOF
    13971526#define $ac_tr_lib 1
     
    14041533fi
    14051534
    1406 echo $ac_n "checking for -lbsd""... $ac_c" 1>&6
    1407 ac_lib_var=`echo bsd_socket | tr '.-/+' '___p'`
     1535echo $ac_n "checking for socket in -lbsd""... $ac_c" 1>&6
     1536echo "configure:1537: checking for socket in -lbsd" >&5
     1537ac_lib_var=`echo bsd'_'socket | sed 'y%./+-%__p_%'`
    14081538if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    14091539  echo $ac_n "(cached) $ac_c" 1>&6
     
    14121542LIBS="-lbsd  $LIBS"
    14131543cat > conftest.$ac_ext <<EOF
    1414 #line 1415 "configure"
     1544#line 1545 "configure"
    14151545#include "confdefs.h"
    14161546/* Override any gcc2 internal prototype to avoid an error.  */
     1547/* We use char because int might match the return type of a gcc2
     1548    builtin and then its argument prototype would still apply.  */
    14171549char socket();
    14181550
    1419 int main() { return 0; }
    1420 int t() {
     1551int main() {
    14211552socket()
    14221553; return 0; }
    14231554EOF
    1424 if { (eval echo configure:1425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1555if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    14251556  rm -rf conftest*
    14261557  eval "ac_cv_lib_$ac_lib_var=yes"
    14271558else
     1559  echo "configure: failed program was:" >&5
     1560  cat conftest.$ac_ext >&5
    14281561  rm -rf conftest*
    14291562  eval "ac_cv_lib_$ac_lib_var=no"
     
    14351568if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    14361569  echo "$ac_t""yes" 1>&6
    1437     ac_tr_lib=HAVE_LIB`echo bsd | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1570    ac_tr_lib=HAVE_LIB`echo bsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1571    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    14381572  cat >> confdefs.h <<EOF
    14391573#define $ac_tr_lib 1
     
    14461580fi
    14471581
    1448 echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
    1449 ac_lib_var=`echo socket_listen | tr '.-/+' '___p'`
     1582echo $ac_n "checking for listen in -lsocket""... $ac_c" 1>&6
     1583echo "configure:1584: checking for listen in -lsocket" >&5
     1584ac_lib_var=`echo socket'_'listen | sed 'y%./+-%__p_%'`
    14501585if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    14511586  echo $ac_n "(cached) $ac_c" 1>&6
     
    14541589LIBS="-lsocket  $LIBS"
    14551590cat > conftest.$ac_ext <<EOF
    1456 #line 1457 "configure"
     1591#line 1592 "configure"
    14571592#include "confdefs.h"
    14581593/* Override any gcc2 internal prototype to avoid an error.  */
     1594/* We use char because int might match the return type of a gcc2
     1595    builtin and then its argument prototype would still apply.  */
    14591596char listen();
    14601597
    1461 int main() { return 0; }
    1462 int t() {
     1598int main() {
    14631599listen()
    14641600; return 0; }
    14651601EOF
    1466 if { (eval echo configure:1467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1602if { (eval echo configure:1603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    14671603  rm -rf conftest*
    14681604  eval "ac_cv_lib_$ac_lib_var=yes"
    14691605else
     1606  echo "configure: failed program was:" >&5
     1607  cat conftest.$ac_ext >&5
    14701608  rm -rf conftest*
    14711609  eval "ac_cv_lib_$ac_lib_var=no"
     
    14771615if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    14781616  echo "$ac_t""yes" 1>&6
    1479     ac_tr_lib=HAVE_LIB`echo socket | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1617    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1618    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    14801619  cat >> confdefs.h <<EOF
    14811620#define $ac_tr_lib 1
     
    14881627fi
    14891628
    1490 echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
    1491 ac_lib_var=`echo nsl_gethostbyname | tr '.-/+' '___p'`
     1629echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
     1630echo "configure:1631: checking for gethostbyname in -lnsl" >&5
     1631ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
    14921632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    14931633  echo $ac_n "(cached) $ac_c" 1>&6
     
    14961636LIBS="-lnsl  $LIBS"
    14971637cat > conftest.$ac_ext <<EOF
    1498 #line 1499 "configure"
     1638#line 1639 "configure"
    14991639#include "confdefs.h"
    15001640/* Override any gcc2 internal prototype to avoid an error.  */
     1641/* We use char because int might match the return type of a gcc2
     1642    builtin and then its argument prototype would still apply.  */
    15011643char gethostbyname();
    15021644
    1503 int main() { return 0; }
    1504 int t() {
     1645int main() {
    15051646gethostbyname()
    15061647; return 0; }
    15071648EOF
    1508 if { (eval echo configure:1509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1649if { (eval echo configure:1650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    15091650  rm -rf conftest*
    15101651  eval "ac_cv_lib_$ac_lib_var=yes"
    15111652else
     1653  echo "configure: failed program was:" >&5
     1654  cat conftest.$ac_ext >&5
    15121655  rm -rf conftest*
    15131656  eval "ac_cv_lib_$ac_lib_var=no"
     
    15191662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    15201663  echo "$ac_t""yes" 1>&6
    1521     ac_tr_lib=HAVE_LIB`echo nsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1664    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1665    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    15221666  cat >> confdefs.h <<EOF
    15231667#define $ac_tr_lib 1
     
    15301674fi
    15311675
    1532 echo $ac_n "checking for -lucb""... $ac_c" 1>&6
    1533 ac_lib_var=`echo ucb_index | tr '.-/+' '___p'`
     1676echo $ac_n "checking for index in -lucb""... $ac_c" 1>&6
     1677echo "configure:1678: checking for index in -lucb" >&5
     1678ac_lib_var=`echo ucb'_'index | sed 'y%./+-%__p_%'`
    15341679if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    15351680  echo $ac_n "(cached) $ac_c" 1>&6
     
    15381683LIBS="-lucb  $LIBS"
    15391684cat > conftest.$ac_ext <<EOF
    1540 #line 1541 "configure"
     1685#line 1686 "configure"
    15411686#include "confdefs.h"
    15421687/* Override any gcc2 internal prototype to avoid an error.  */
    1543 char index();
    1544 
    1545 int main() { return 0; }
    1546 int t() {
     1688/* We use char because int might match the return type of a gcc2
     1689    builtin and then its argument prototype would still apply.  */
     1690char ;
     1691
     1692int main() {
    15471693index()
    15481694; return 0; }
    15491695EOF
    1550 if { (eval echo configure:1551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     1696if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    15511697  rm -rf conftest*
    15521698  eval "ac_cv_lib_$ac_lib_var=yes"
    15531699else
     1700  echo "configure: failed program was:" >&5
     1701  cat conftest.$ac_ext >&5
    15541702  rm -rf conftest*
    15551703  eval "ac_cv_lib_$ac_lib_var=no"
     
    15611709if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    15621710  echo "$ac_t""yes" 1>&6
    1563     ac_tr_lib=HAVE_LIB`echo ucb | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     1711    ac_tr_lib=HAVE_LIB`echo ucb | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     1712    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    15641713  cat >> confdefs.h <<EOF
    15651714#define $ac_tr_lib 1
     
    15741723
    15751724# heder file checks
    1576 # If we cannot run a trivial program, we must be cross compiling.
    1577 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
    1578 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
    1579   echo $ac_n "(cached) $ac_c" 1>&6
    1580 else
    1581   if test "$cross_compiling" = yes; then
    1582   ac_cv_c_cross=yes
    1583 else
    1584 cat > conftest.$ac_ext <<EOF
    1585 #line 1586 "configure"
    1586 #include "confdefs.h"
    1587 main(){return(0);}
    1588 EOF
    1589 { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    1590 if test -s conftest && (./conftest; exit) 2>/dev/null; then
    1591   ac_cv_c_cross=no
    1592 else
    1593   ac_cv_c_cross=yes
    1594 fi
    1595 fi
    1596 rm -fr conftest*
    1597 fi
    1598 
    1599 echo "$ac_t""$ac_cv_c_cross" 1>&6
    1600 cross_compiling=$ac_cv_c_cross
    1601 
    16021725echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
     1726echo "configure:1727: checking for ANSI C header files" >&5
    16031727if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    16041728  echo $ac_n "(cached) $ac_c" 1>&6
    16051729else
    16061730  cat > conftest.$ac_ext <<EOF
    1607 #line 1608 "configure"
     1731#line 1732 "configure"
    16081732#include "confdefs.h"
    16091733#include <stdlib.h>
     
    16131737EOF
    16141738ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1615 { (eval echo configure:1616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1739{ (eval echo configure:1740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    16161740ac_err=`grep -v '^ *+' conftest.out`
    16171741if test -z "$ac_err"; then
     
    16201744else
    16211745  echo "$ac_err" >&5
     1746  echo "configure: failed program was:" >&5
     1747  cat conftest.$ac_ext >&5
    16221748  rm -rf conftest*
    16231749  ac_cv_header_stdc=no
     
    16281754  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    16291755cat > conftest.$ac_ext <<EOF
    1630 #line 1631 "configure"
     1756#line 1757 "configure"
    16311757#include "confdefs.h"
    16321758#include <string.h>
     
    16461772  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    16471773cat > conftest.$ac_ext <<EOF
    1648 #line 1649 "configure"
     1774#line 1775 "configure"
    16491775#include "confdefs.h"
    16501776#include <stdlib.h>
     
    16661792  :
    16671793else
    1668 cat > conftest.$ac_ext <<EOF
    1669 #line 1670 "configure"
     1794  cat > conftest.$ac_ext <<EOF
     1795#line 1796 "configure"
    16701796#include "confdefs.h"
    16711797#include <ctype.h>
     
    16781804
    16791805EOF
    1680 { (eval echo configure:1681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    1681 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     1806if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     1807then
    16821808  :
    16831809else
     1810  echo "configure: failed program was:" >&5
     1811  cat conftest.$ac_ext >&5
     1812  rm -fr conftest*
    16841813  ac_cv_header_stdc=no
    16851814fi
    1686 fi
    16871815rm -fr conftest*
     1816fi
     1817
    16881818fi
    16891819fi
     
    16991829for ac_hdr in limits.h unistd.h
    17001830do
    1701 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     1831ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17021832echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     1833echo "configure:1834: checking for $ac_hdr" >&5
    17031834if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17041835  echo $ac_n "(cached) $ac_c" 1>&6
    17051836else
    17061837  cat > conftest.$ac_ext <<EOF
    1707 #line 1708 "configure"
     1838#line 1839 "configure"
    17081839#include "confdefs.h"
    17091840#include <$ac_hdr>
    17101841EOF
    17111842ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1712 { (eval echo configure:1713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1843{ (eval echo configure:1844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17131844ac_err=`grep -v '^ *+' conftest.out`
    17141845if test -z "$ac_err"; then
     
    17171848else
    17181849  echo "$ac_err" >&5
     1850  echo "configure: failed program was:" >&5
     1851  cat conftest.$ac_ext >&5
    17191852  rm -rf conftest*
    17201853  eval "ac_cv_header_$ac_safe=no"
     
    17241857if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    17251858  echo "$ac_t""yes" 1>&6
    1726     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
     1859    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    17271860  cat >> confdefs.h <<EOF
    17281861#define $ac_tr_hdr 1
     
    17381871for ac_hdr in sys/file.h sys/ioctl.h sys/time.h sys/times.h sys/types.h sys/stat.h fcntl.h sys/param.h pwd.h
    17391872do
    1740 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     1873ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    17411874echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     1875echo "configure:1876: checking for $ac_hdr" >&5
    17421876if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    17431877  echo $ac_n "(cached) $ac_c" 1>&6
    17441878else
    17451879  cat > conftest.$ac_ext <<EOF
    1746 #line 1747 "configure"
     1880#line 1881 "configure"
    17471881#include "confdefs.h"
    17481882#include <$ac_hdr>
    17491883EOF
    17501884ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1751 { (eval echo configure:1752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1885{ (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    17521886ac_err=`grep -v '^ *+' conftest.out`
    17531887if test -z "$ac_err"; then
     
    17561890else
    17571891  echo "$ac_err" >&5
     1892  echo "configure: failed program was:" >&5
     1893  cat conftest.$ac_ext >&5
    17581894  rm -rf conftest*
    17591895  eval "ac_cv_header_$ac_safe=no"
     
    17631899if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    17641900  echo "$ac_t""yes" 1>&6
    1765     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
     1901    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    17661902  cat >> confdefs.h <<EOF
    17671903#define $ac_tr_hdr 1
     
    17761912# typedefs, structures
    17771913echo $ac_n "checking for working const""... $ac_c" 1>&6
     1914echo "configure:1915: checking for working const" >&5
    17781915if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    17791916  echo $ac_n "(cached) $ac_c" 1>&6
    17801917else
    17811918  cat > conftest.$ac_ext <<EOF
    1782 #line 1783 "configure"
    1783 #include "confdefs.h"
    1784 
    1785 int main() { return 0; }
    1786 int t() {
     1919#line 1920 "configure"
     1920#include "confdefs.h"
     1921
     1922int main() {
    17871923
    17881924/* Ultrix mips cc rejects this.  */
     
    18301966; return 0; }
    18311967EOF
    1832 if { (eval echo configure:1833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     1968if { (eval echo configure:1969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18331969  rm -rf conftest*
    18341970  ac_cv_c_const=yes
    18351971else
     1972  echo "configure: failed program was:" >&5
     1973  cat conftest.$ac_ext >&5
    18361974  rm -rf conftest*
    18371975  ac_cv_c_const=no
    18381976fi
    18391977rm -f conftest*
    1840 
    18411978fi
    18421979
     
    18501987
    18511988echo $ac_n "checking for inline""... $ac_c" 1>&6
     1989echo "configure:1990: checking for inline" >&5
    18521990if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
    18531991  echo $ac_n "(cached) $ac_c" 1>&6
     
    18561994for ac_kw in inline __inline__ __inline; do
    18571995  cat > conftest.$ac_ext <<EOF
    1858 #line 1859 "configure"
    1859 #include "confdefs.h"
    1860 
    1861 int main() { return 0; }
    1862 int t() {
     1996#line 1997 "configure"
     1997#include "confdefs.h"
     1998
     1999int main() {
    18632000} $ac_kw foo() {
    18642001; return 0; }
    18652002EOF
    1866 if { (eval echo configure:1867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2003if { (eval echo configure:2004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    18672004  rm -rf conftest*
    18682005  ac_cv_c_inline=$ac_kw; break
    1869 fi
    1870 rm -f conftest*
    1871 
     2006else
     2007  echo "configure: failed program was:" >&5
     2008  cat conftest.$ac_ext >&5
     2009fi
     2010rm -f conftest*
    18722011done
    18732012
     
    18882027
    18892028echo $ac_n "checking for size_t""... $ac_c" 1>&6
     2029echo "configure:2030: checking for size_t" >&5
    18902030if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    18912031  echo $ac_n "(cached) $ac_c" 1>&6
    18922032else
    18932033  cat > conftest.$ac_ext <<EOF
    1894 #line 1895 "configure"
     2034#line 2035 "configure"
    18952035#include "confdefs.h"
    18962036#include <sys/types.h>
    18972037#if STDC_HEADERS
    18982038#include <stdlib.h>
     2039#include <stddef.h>
    18992040#endif
    19002041EOF
    19012042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
    1902   egrep "size_t" >/dev/null 2>&1; then
     2043  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    19032044  rm -rf conftest*
    19042045  ac_cv_type_size_t=yes
     
    19192060
    19202061echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
     2062echo "configure:2063: checking whether time.h and sys/time.h may both be included" >&5
    19212063if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    19222064  echo $ac_n "(cached) $ac_c" 1>&6
    19232065else
    19242066  cat > conftest.$ac_ext <<EOF
    1925 #line 1926 "configure"
     2067#line 2068 "configure"
    19262068#include "confdefs.h"
    19272069#include <sys/types.h>
    19282070#include <sys/time.h>
    19292071#include <time.h>
    1930 int main() { return 0; }
    1931 int t() {
     2072int main() {
    19322073struct tm *tp;
    19332074; return 0; }
    19342075EOF
    1935 if { (eval echo configure:1936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2076if { (eval echo configure:2077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19362077  rm -rf conftest*
    19372078  ac_cv_header_time=yes
    19382079else
     2080  echo "configure: failed program was:" >&5
     2081  cat conftest.$ac_ext >&5
    19392082  rm -rf conftest*
    19402083  ac_cv_header_time=no
    19412084fi
    19422085rm -f conftest*
    1943 
    19442086fi
    19452087
     
    19532095
    19542096echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
     2097echo "configure:2098: checking whether struct tm is in sys/time.h or time.h" >&5
    19552098if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    19562099  echo $ac_n "(cached) $ac_c" 1>&6
    19572100else
    19582101  cat > conftest.$ac_ext <<EOF
    1959 #line 1960 "configure"
     2102#line 2103 "configure"
    19602103#include "confdefs.h"
    19612104#include <sys/types.h>
    19622105#include <time.h>
    1963 int main() { return 0; }
    1964 int t() {
     2106int main() {
    19652107struct tm *tp; tp->tm_sec;
    19662108; return 0; }
    19672109EOF
    1968 if { (eval echo configure:1969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2110if { (eval echo configure:2111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    19692111  rm -rf conftest*
    19702112  ac_cv_struct_tm=time.h
    19712113else
     2114  echo "configure: failed program was:" >&5
     2115  cat conftest.$ac_ext >&5
    19722116  rm -rf conftest*
    19732117  ac_cv_struct_tm=sys/time.h
    19742118fi
    19752119rm -f conftest*
    1976 
    19772120fi
    19782121
     
    19902133# for constant arguments.  Useless!
    19912134echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
     2135echo "configure:2136: checking for working alloca.h" >&5
    19922136if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    19932137  echo $ac_n "(cached) $ac_c" 1>&6
    19942138else
    19952139  cat > conftest.$ac_ext <<EOF
    1996 #line 1997 "configure"
     2140#line 2141 "configure"
    19972141#include "confdefs.h"
    19982142#include <alloca.h>
    1999 int main() { return 0; }
    2000 int t() {
     2143int main() {
    20012144char *p = alloca(2 * sizeof(int));
    20022145; return 0; }
    20032146EOF
    2004 if { (eval echo configure:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2147if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    20052148  rm -rf conftest*
    20062149  ac_cv_header_alloca_h=yes
    20072150else
     2151  echo "configure: failed program was:" >&5
     2152  cat conftest.$ac_ext >&5
    20082153  rm -rf conftest*
    20092154  ac_cv_header_alloca_h=no
    20102155fi
    20112156rm -f conftest*
    2012 
    20132157fi
    20142158
     
    20222166
    20232167echo $ac_n "checking for alloca""... $ac_c" 1>&6
    2024 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
     2168echo "configure:2169: checking for alloca" >&5
     2169if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    20252170  echo $ac_n "(cached) $ac_c" 1>&6
    20262171else
    20272172  cat > conftest.$ac_ext <<EOF
    2028 #line 2029 "configure"
     2173#line 2174 "configure"
    20292174#include "confdefs.h"
    20302175
     
    20452190#endif
    20462191
    2047 int main() { return 0; }
    2048 int t() {
     2192int main() {
    20492193char *p = (char *) alloca(1);
    20502194; return 0; }
    20512195EOF
    2052 if { (eval echo configure:2053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
    2053   rm -rf conftest*
    2054   ac_cv_func_alloca=yes
    2055 else
    2056   rm -rf conftest*
    2057   ac_cv_func_alloca=no
    2058 fi
    2059 rm -f conftest*
    2060 
    2061 fi
    2062 
    2063 echo "$ac_t""$ac_cv_func_alloca" 1>&6
    2064 if test $ac_cv_func_alloca = yes; then
     2196if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
     2197  rm -rf conftest*
     2198  ac_cv_func_alloca_works=yes
     2199else
     2200  echo "configure: failed program was:" >&5
     2201  cat conftest.$ac_ext >&5
     2202  rm -rf conftest*
     2203  ac_cv_func_alloca_works=no
     2204fi
     2205rm -f conftest*
     2206fi
     2207
     2208echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
     2209if test $ac_cv_func_alloca_works = yes; then
    20652210  cat >> confdefs.h <<\EOF
    20662211#define HAVE_ALLOCA 1
     
    20692214fi
    20702215
    2071 if test $ac_cv_func_alloca = no; then
     2216if test $ac_cv_func_alloca_works = no; then
    20722217  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    20732218  # that cause trouble.  Some versions do not even contain alloca or
     
    20812226
    20822227echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
     2228echo "configure:2229: checking whether alloca needs Cray hooks" >&5
    20832229if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    20842230  echo $ac_n "(cached) $ac_c" 1>&6
    20852231else
    20862232  cat > conftest.$ac_ext <<EOF
    2087 #line 2088 "configure"
     2233#line 2234 "configure"
    20882234#include "confdefs.h"
    20892235#if defined(CRAY) && ! defined(CRAY2)
     
    21102256for ac_func in _getb67 GETB67 getb67; do
    21112257  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2258echo "configure:2259: checking for $ac_func" >&5
    21122259if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    21132260  echo $ac_n "(cached) $ac_c" 1>&6
    21142261else
    21152262  cat > conftest.$ac_ext <<EOF
    2116 #line 2117 "configure"
     2263#line 2264 "configure"
    21172264#include "confdefs.h"
    21182265/* System header to define __stub macros and hopefully few prototypes,
     
    21202267#include <assert.h>
    21212268/* Override any gcc2 internal prototype to avoid an error.  */
     2269/* We use char because int might match the return type of a gcc2
     2270    builtin and then its argument prototype would still apply.  */
    21222271char $ac_func();
    21232272
    2124 int main() { return 0; }
    2125 int t() {
     2273int main() {
    21262274
    21272275/* The GNU C library defines this for functions which it implements
     
    21362284; return 0; }
    21372285EOF
    2138 if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2286if { (eval echo configure:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    21392287  rm -rf conftest*
    21402288  eval "ac_cv_func_$ac_func=yes"
    21412289else
     2290  echo "configure: failed program was:" >&5
     2291  cat conftest.$ac_ext >&5
    21422292  rm -rf conftest*
    21432293  eval "ac_cv_func_$ac_func=no"
    21442294fi
    21452295rm -f conftest*
    2146 
    2147 fi
     2296fi
     2297
    21482298if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    21492299  echo "$ac_t""yes" 1>&6
     
    21612311
    21622312echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
     2313echo "configure:2314: checking stack direction for C alloca" >&5
    21632314if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    21642315  echo $ac_n "(cached) $ac_c" 1>&6
     
    21672318  ac_cv_c_stack_direction=0
    21682319else
    2169 cat > conftest.$ac_ext <<EOF
    2170 #line 2171 "configure"
     2320  cat > conftest.$ac_ext <<EOF
     2321#line 2322 "configure"
    21712322#include "confdefs.h"
    21722323find_stack_direction ()
     
    21872338}
    21882339EOF
    2189 { (eval echo configure:2190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2190 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     2340if { (eval echo configure:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2341then
    21912342  ac_cv_c_stack_direction=1
    21922343else
     2344  echo "configure: failed program was:" >&5
     2345  cat conftest.$ac_ext >&5
     2346  rm -fr conftest*
    21932347  ac_cv_c_stack_direction=-1
    21942348fi
    2195 fi
    21962349rm -fr conftest*
     2350fi
     2351
    21972352fi
    21982353
     
    22062361if test $ac_cv_prog_gcc = yes; then
    22072362    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
     2363echo "configure:2364: checking whether ${CC-cc} needs -traditional" >&5
    22082364if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    22092365  echo $ac_n "(cached) $ac_c" 1>&6
     
    22112367    ac_pattern="Autoconf.*'x'"
    22122368  cat > conftest.$ac_ext <<EOF
    2213 #line 2214 "configure"
     2369#line 2370 "configure"
    22142370#include "confdefs.h"
    22152371#include <sgtty.h>
     
    22292385  if test $ac_cv_prog_gcc_traditional = no; then
    22302386    cat > conftest.$ac_ext <<EOF
    2231 #line 2232 "configure"
     2387#line 2388 "configure"
    22322388#include "confdefs.h"
    22332389#include <termio.h>
     
    22502406fi
    22512407
    2252 for ac_func in valloc getpagesize
     2408for ac_hdr in unistd.h
     2409do
     2410ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
     2411echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     2412echo "configure:2413: checking for $ac_hdr" >&5
     2413if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
     2414  echo $ac_n "(cached) $ac_c" 1>&6
     2415else
     2416  cat > conftest.$ac_ext <<EOF
     2417#line 2418 "configure"
     2418#include "confdefs.h"
     2419#include <$ac_hdr>
     2420EOF
     2421ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
     2422{ (eval echo configure:2423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     2423ac_err=`grep -v '^ *+' conftest.out`
     2424if test -z "$ac_err"; then
     2425  rm -rf conftest*
     2426  eval "ac_cv_header_$ac_safe=yes"
     2427else
     2428  echo "$ac_err" >&5
     2429  echo "configure: failed program was:" >&5
     2430  cat conftest.$ac_ext >&5
     2431  rm -rf conftest*
     2432  eval "ac_cv_header_$ac_safe=no"
     2433fi
     2434rm -f conftest*
     2435fi
     2436if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
     2437  echo "$ac_t""yes" 1>&6
     2438    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
     2439  cat >> confdefs.h <<EOF
     2440#define $ac_tr_hdr 1
     2441EOF
     2442 
     2443else
     2444  echo "$ac_t""no" 1>&6
     2445fi
     2446done
     2447
     2448for ac_func in getpagesize
    22532449do
    22542450echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2451echo "configure:2452: checking for $ac_func" >&5
    22552452if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    22562453  echo $ac_n "(cached) $ac_c" 1>&6
    22572454else
    22582455  cat > conftest.$ac_ext <<EOF
    2259 #line 2260 "configure"
     2456#line 2457 "configure"
    22602457#include "confdefs.h"
    22612458/* System header to define __stub macros and hopefully few prototypes,
     
    22632460#include <assert.h>
    22642461/* Override any gcc2 internal prototype to avoid an error.  */
     2462/* We use char because int might match the return type of a gcc2
     2463    builtin and then its argument prototype would still apply.  */
    22652464char $ac_func();
    22662465
    2267 int main() { return 0; }
    2268 int t() {
     2466int main() {
    22692467
    22702468/* The GNU C library defines this for functions which it implements
     
    22792477; return 0; }
    22802478EOF
    2281 if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2479if { (eval echo configure:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    22822480  rm -rf conftest*
    22832481  eval "ac_cv_func_$ac_func=yes"
    22842482else
     2483  echo "configure: failed program was:" >&5
     2484  cat conftest.$ac_ext >&5
    22852485  rm -rf conftest*
    22862486  eval "ac_cv_func_$ac_func=no"
    22872487fi
    22882488rm -f conftest*
    2289 
    2290 fi
     2489fi
     2490
    22912491if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    22922492  echo "$ac_t""yes" 1>&6
     
    23022502
    23032503echo $ac_n "checking for working mmap""... $ac_c" 1>&6
    2304 if eval "test \"`echo '$''{'ac_cv_func_mmap'+set}'`\" = set"; then
     2504echo "configure:2505: checking for working mmap" >&5
     2505if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
    23052506  echo $ac_n "(cached) $ac_c" 1>&6
    23062507else
    23072508  if test "$cross_compiling" = yes; then
    2308   ac_cv_func_mmap=no
    2309 else
    2310 cat > conftest.$ac_ext <<EOF
    2311 #line 2312 "configure"
    2312 #include "confdefs.h"
    2313 
    2314 /* Thanks to Mike Haertel and Jim Avera for this test. */
     2509  ac_cv_func_mmap_fixed_mapped=no
     2510else
     2511  cat > conftest.$ac_ext <<EOF
     2512#line 2513 "configure"
     2513#include "confdefs.h"
     2514
     2515/* Thanks to Mike Haertel and Jim Avera for this test.
     2516   Here is a matrix of mmap possibilities:
     2517        mmap private not fixed
     2518        mmap private fixed at somewhere currently unmapped
     2519        mmap private fixed at somewhere already mapped
     2520        mmap shared not fixed
     2521        mmap shared fixed at somewhere currently unmapped
     2522        mmap shared fixed at somewhere already mapped
     2523   For private mappings, we should verify that changes cannot be read()
     2524   back from the file, nor mmap's back from the file at a different
     2525   address.  (There have been systems where private was not correctly
     2526   implemented like the infamous i386 svr4.0, and systems where the
     2527   VM page cache was not coherent with the filesystem buffer cache
     2528   like early versions of FreeBSD and possibly contemporary NetBSD.)
     2529   For shared mappings, we should conversely verify that changes get
     2530   propogated back to all the places they're supposed to be.
     2531
     2532   Grep wants private fixed already mapped.
     2533   The main things grep needs to know about mmap are:
     2534   * does it exist and is it safe to write into the mmap'd area
     2535   * how to use it (BSD variants)  */
    23152536#include <sys/types.h>
    23162537#include <fcntl.h>
    23172538#include <sys/mman.h>
    23182539
     2540/* This mess was copied from the GNU getpagesize.h.  */
    23192541#ifndef HAVE_GETPAGESIZE
    2320 # include <sys/param.h>
    2321 # ifdef EXEC_PAGESIZE
    2322 #  define getpagesize() EXEC_PAGESIZE
    2323 # else
    2324 #  ifdef NBPG
    2325 #   define getpagesize() NBPG * CLSIZE
    2326 #   ifndef CLSIZE
    2327 #    define CLSIZE 1
    2328 #   endif
    2329 #  else
    2330 #   ifdef NBPC
    2331 #    define getpagesize() NBPC
    2332 #   else
    2333 #    define getpagesize() PAGESIZE /* SVR4 */
    2334 #   endif
    2335 #  endif
     2542# ifdef HAVE_UNISTD_H
     2543#  include <unistd.h>
    23362544# endif
    2337 #endif
    2338 
    2339 #ifndef HAVE_VALLOC
    2340 # define valloc malloc
    2341 #endif
     2545
     2546/* Assume that all systems that can run configure have sys/param.h.  */
     2547# ifndef HAVE_SYS_PARAM_H
     2548#  define HAVE_SYS_PARAM_H 1
     2549# endif
     2550
     2551# ifdef _SC_PAGESIZE
     2552#  define getpagesize() sysconf(_SC_PAGESIZE)
     2553# else /* no _SC_PAGESIZE */
     2554#  ifdef HAVE_SYS_PARAM_H
     2555#   include <sys/param.h>
     2556#   ifdef EXEC_PAGESIZE
     2557#    define getpagesize() EXEC_PAGESIZE
     2558#   else /* no EXEC_PAGESIZE */
     2559#    ifdef NBPG
     2560#     define getpagesize() NBPG * CLSIZE
     2561#     ifndef CLSIZE
     2562#      define CLSIZE 1
     2563#     endif /* no CLSIZE */
     2564#    else /* no NBPG */
     2565#     ifdef NBPC
     2566#      define getpagesize() NBPC
     2567#     else /* no NBPC */
     2568#      ifdef PAGESIZE
     2569#       define getpagesize() PAGESIZE
     2570#      endif /* PAGESIZE */
     2571#     endif /* no NBPC */
     2572#    endif /* no NBPG */
     2573#   endif /* no EXEC_PAGESIZE */
     2574#  else /* no HAVE_SYS_PARAM_H */
     2575#   define getpagesize() 8192   /* punt totally */
     2576#  endif /* no HAVE_SYS_PARAM_H */
     2577# endif /* no _SC_PAGESIZE */
     2578
     2579#endif /* no HAVE_GETPAGESIZE */
    23422580
    23432581#ifdef __cplusplus
    2344 extern "C" { void *valloc(unsigned), *malloc(unsigned); }
     2582extern "C" { void *malloc(unsigned); }
    23452583#else
    2346 char *valloc(), *malloc();
     2584char *malloc();
    23472585#endif
    23482586
     
    23502588main()
    23512589{
    2352   char *buf1, *buf2, *buf3;
    2353   int i = getpagesize(), j;
    2354   int i2 = i * 2;
    2355   int fd;
    2356 
    2357   buf1 = (char *)valloc(i2);
    2358   buf2 = (char *)valloc(i);
    2359   buf3 = (char *)malloc(i2);
    2360   for (j = 0; j < i2; ++j)
    2361     *(buf1 + j) = rand();
    2362   fd = open("conftestmmap", O_CREAT | O_RDWR, 0666);
    2363   write(fd, buf1, i2);
    2364   mmap(buf2, i, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE, fd, 0);
    2365   for (j = 0; j < i; ++j)
    2366     if (*(buf1 + j) != *(buf2 + j))
    2367       exit(1);
    2368   lseek(fd, (long)i, 0);
    2369   read(fd, buf2, i); /* read into mapped memory -- file should not change */
    2370   /* (it does in i386 SVR4.0 - Jim Avera, jima@netcom.com) */
    2371   lseek(fd, (long)0, 0);
    2372   read(fd, buf3, i2);
    2373   for (j = 0; j < i2; ++j)
    2374     if (*(buf1 + j) != *(buf3 + j))
    2375       exit(1);
    2376   exit(0);
     2590        char *data, *data2, *data3;
     2591        int i, pagesize;
     2592        int fd;
     2593
     2594        pagesize = getpagesize();
     2595
     2596        /*
     2597         * First, make a file with some known garbage in it.
     2598         */
     2599        data = malloc(pagesize);
     2600        if (!data)
     2601                exit(1);
     2602        for (i = 0; i < pagesize; ++i)
     2603                *(data + i) = rand();
     2604        umask(0);
     2605        fd = creat("conftestmmap", 0600);
     2606        if (fd < 0)
     2607                exit(1);
     2608        if (write(fd, data, pagesize) != pagesize)
     2609                exit(1);
     2610        close(fd);
     2611
     2612        /*
     2613         * Next, try to mmap the file at a fixed address which
     2614         * already has something else allocated at it.  If we can,
     2615         * also make sure that we see the same garbage.
     2616         */
     2617        fd = open("conftestmmap", O_RDWR);
     2618        if (fd < 0)
     2619                exit(1);
     2620        data2 = malloc(2 * pagesize);
     2621        if (!data2)
     2622                exit(1);
     2623        data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
     2624        if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
     2625            MAP_PRIVATE | MAP_FIXED, fd, 0L))
     2626                exit(1);
     2627        for (i = 0; i < pagesize; ++i)
     2628                if (*(data + i) != *(data2 + i))
     2629                        exit(1);
     2630
     2631        /*
     2632         * Finally, make sure that changes to the mapped area
     2633         * do not percolate back to the file as seen by read().
     2634         * (This is a bug on some variants of i386 svr4.0.)
     2635         */
     2636        for (i = 0; i < pagesize; ++i)
     2637                *(data2 + i) = *(data2 + i) + 1;
     2638        data3 = malloc(pagesize);
     2639        if (!data3)
     2640                exit(1);
     2641        if (read(fd, data3, pagesize) != pagesize)
     2642                exit(1);
     2643        for (i = 0; i < pagesize; ++i)
     2644                if (*(data + i) != *(data3 + i))
     2645                        exit(1);
     2646        close(fd);
     2647        unlink("conftestmmap");
     2648        exit(0);
    23772649}
    23782650
    23792651EOF
    2380 { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2381 if test -s conftest && (./conftest; exit) 2>/dev/null; then
    2382   ac_cv_func_mmap=yes
    2383 else
    2384   ac_cv_func_mmap=no
    2385 fi
     2652if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2653then
     2654  ac_cv_func_mmap_fixed_mapped=yes
     2655else
     2656  echo "configure: failed program was:" >&5
     2657  cat conftest.$ac_ext >&5
     2658  rm -fr conftest*
     2659  ac_cv_func_mmap_fixed_mapped=no
    23862660fi
    23872661rm -fr conftest*
    23882662fi
    23892663
    2390 echo "$ac_t""$ac_cv_func_mmap" 1>&6
    2391 if test $ac_cv_func_mmap = yes; then
     2664fi
     2665
     2666echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
     2667if test $ac_cv_func_mmap_fixed_mapped = yes; then
    23922668  cat >> confdefs.h <<\EOF
    23932669#define HAVE_MMAP 1
     
    23972673
    23982674echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
     2675echo "configure:2676: checking return type of signal handlers" >&5
    23992676if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    24002677  echo $ac_n "(cached) $ac_c" 1>&6
    24012678else
    24022679  cat > conftest.$ac_ext <<EOF
    2403 #line 2404 "configure"
     2680#line 2681 "configure"
    24042681#include "confdefs.h"
    24052682#include <sys/types.h>
     
    24142691#endif
    24152692
    2416 int main() { return 0; }
    2417 int t() {
     2693int main() {
    24182694int i;
    24192695; return 0; }
    24202696EOF
    2421 if { (eval echo configure:2422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2697if { (eval echo configure:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    24222698  rm -rf conftest*
    24232699  ac_cv_type_signal=void
    24242700else
     2701  echo "configure: failed program was:" >&5
     2702  cat conftest.$ac_ext >&5
    24252703  rm -rf conftest*
    24262704  ac_cv_type_signal=int
    24272705fi
    24282706rm -f conftest*
    2429 
    24302707fi
    24312708
     
    24372714
    24382715echo $ac_n "checking for vprintf""... $ac_c" 1>&6
     2716echo "configure:2717: checking for vprintf" >&5
    24392717if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    24402718  echo $ac_n "(cached) $ac_c" 1>&6
    24412719else
    24422720  cat > conftest.$ac_ext <<EOF
    2443 #line 2444 "configure"
     2721#line 2722 "configure"
    24442722#include "confdefs.h"
    24452723/* System header to define __stub macros and hopefully few prototypes,
     
    24472725#include <assert.h>
    24482726/* Override any gcc2 internal prototype to avoid an error.  */
     2727/* We use char because int might match the return type of a gcc2
     2728    builtin and then its argument prototype would still apply.  */
    24492729char vprintf();
    24502730
    2451 int main() { return 0; }
    2452 int t() {
     2731int main() {
    24532732
    24542733/* The GNU C library defines this for functions which it implements
     
    24632742; return 0; }
    24642743EOF
    2465 if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2744if { (eval echo configure:2745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    24662745  rm -rf conftest*
    24672746  eval "ac_cv_func_vprintf=yes"
    24682747else
     2748  echo "configure: failed program was:" >&5
     2749  cat conftest.$ac_ext >&5
    24692750  rm -rf conftest*
    24702751  eval "ac_cv_func_vprintf=no"
    24712752fi
    24722753rm -f conftest*
    2473 
    2474 fi
     2754fi
     2755
    24752756if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    24762757  echo "$ac_t""yes" 1>&6
     
    24852766if test "$ac_cv_func_vprintf" != yes; then
    24862767echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
     2768echo "configure:2769: checking for _doprnt" >&5
    24872769if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    24882770  echo $ac_n "(cached) $ac_c" 1>&6
    24892771else
    24902772  cat > conftest.$ac_ext <<EOF
    2491 #line 2492 "configure"
     2773#line 2774 "configure"
    24922774#include "confdefs.h"
    24932775/* System header to define __stub macros and hopefully few prototypes,
     
    24952777#include <assert.h>
    24962778/* Override any gcc2 internal prototype to avoid an error.  */
     2779/* We use char because int might match the return type of a gcc2
     2780    builtin and then its argument prototype would still apply.  */
    24972781char _doprnt();
    24982782
    2499 int main() { return 0; }
    2500 int t() {
     2783int main() {
    25012784
    25022785/* The GNU C library defines this for functions which it implements
     
    25112794; return 0; }
    25122795EOF
    2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2796if { (eval echo configure:2797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    25142797  rm -rf conftest*
    25152798  eval "ac_cv_func__doprnt=yes"
    25162799else
     2800  echo "configure: failed program was:" >&5
     2801  cat conftest.$ac_ext >&5
    25172802  rm -rf conftest*
    25182803  eval "ac_cv_func__doprnt=no"
    25192804fi
    25202805rm -f conftest*
    2521 
    2522 fi
     2806fi
     2807
    25232808if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    25242809  echo "$ac_t""yes" 1>&6
     
    25362821do
    25372822echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
     2823echo "configure:2824: checking for $ac_func" >&5
    25382824if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    25392825  echo $ac_n "(cached) $ac_c" 1>&6
    25402826else
    25412827  cat > conftest.$ac_ext <<EOF
    2542 #line 2543 "configure"
     2828#line 2829 "configure"
    25432829#include "confdefs.h"
    25442830/* System header to define __stub macros and hopefully few prototypes,
     
    25462832#include <assert.h>
    25472833/* Override any gcc2 internal prototype to avoid an error.  */
     2834/* We use char because int might match the return type of a gcc2
     2835    builtin and then its argument prototype would still apply.  */
    25482836char $ac_func();
    25492837
    2550 int main() { return 0; }
    2551 int t() {
     2838int main() {
    25522839
    25532840/* The GNU C library defines this for functions which it implements
     
    25622849; return 0; }
    25632850EOF
    2564 if { (eval echo configure:2565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     2851if { (eval echo configure:2852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    25652852  rm -rf conftest*
    25662853  eval "ac_cv_func_$ac_func=yes"
    25672854else
     2855  echo "configure: failed program was:" >&5
     2856  cat conftest.$ac_ext >&5
    25682857  rm -rf conftest*
    25692858  eval "ac_cv_func_$ac_func=no"
    25702859fi
    25712860rm -f conftest*
    2572 
    2573 fi
     2861fi
     2862
    25742863if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    25752864  echo "$ac_t""yes" 1>&6
     
    25882877# arithmetic shifts
    25892878echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6
     2879echo "configure:2880: checking whether your machine has correct arithmetic shifts" >&5
    25902880if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then
    25912881  echo $ac_n "(cached) $ac_c" 1>&6
     
    25992889   fi
    26002890else
    2601 cat > conftest.$ac_ext <<EOF
    2602 #line 2603 "configure"
     2891  cat > conftest.$ac_ext <<EOF
     2892#line 2893 "configure"
    26032893#include "confdefs.h"
    26042894 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); }
    26052895EOF
    2606 { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2607 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     2896if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2897then
    26082898  ac_cv_shift=yes
    26092899else
     2900  echo "configure: failed program was:" >&5
     2901  cat conftest.$ac_ext >&5
     2902  rm -fr conftest*
    26102903  ac_cv_shift=no
    26112904fi
    2612 fi
    26132905rm -fr conftest*
     2906fi
     2907
    26142908fi
    26152909
     
    26252919# check for a peculiar constructor initialization
    26262920echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6
     2921echo "configure:2922: checking whether explicit C++ constructor calls are allowed" >&5
    26272922
    26282923ac_ext=C
     
    26312926ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    26322927ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2928cross_compiling=$ac_cv_prog_cxx_cross
    26332929
    26342930if eval "test \"`echo '$''{'ac_cv_explicit_const'+set}'`\" = set"; then
     
    26362932else
    26372933  cat > conftest.$ac_ext <<EOF
    2638 #line 2639 "configure"
    2639 #include "confdefs.h"
    2640 
    2641 int main() { return 0; }
    2642 int t() {
     2934#line 2935 "configure"
     2935#include "confdefs.h"
     2936
     2937int main() {
    26432938class testclass
    26442939  {
     
    26552950; return 0; }
    26562951EOF
    2657 if { (eval echo configure:2658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     2952if { (eval echo configure:2953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    26582953  rm -rf conftest*
    26592954  ac_cv_explicit_const=yes
    26602955else
     2956  echo "configure: failed program was:" >&5
     2957  cat conftest.$ac_ext >&5
    26612958  rm -rf conftest*
    26622959  ac_cv_explicit_const=no
    26632960fi
    26642961rm -f conftest*
    2665 
    26662962fi
    26672963
     
    26712967ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
    26722968ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
     2969cross_compiling=$ac_cv_prog_cc_cross
    26732970
    26742971echo "$ac_t""$ac_cv_explicit_const" 1>&6
     
    26822979# sprintf returns number of printed chars
    26832980echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6
     2981echo "configure:2982: checking whether vsprintf returns number of printed chars" >&5
    26842982if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then
    26852983  echo $ac_n "(cached) $ac_c" 1>&6
     
    26882986  ac_cv_returns_n_of_chars=no
    26892987else
    2690 cat > conftest.$ac_ext <<EOF
    2691 #line 2692 "configure"
     2988  cat > conftest.$ac_ext <<EOF
     2989#line 2990 "configure"
    26922990#include "confdefs.h"
    26932991#include <stdio.h>
    26942992 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); }
    26952993EOF
    2696 { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2697 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     2994if { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     2995then
    26982996  ac_cv_returns_n_of_chars=yes
    26992997else
     2998  echo "configure: failed program was:" >&5
     2999  cat conftest.$ac_ext >&5
     3000  rm -fr conftest*
    27003001  ac_cv_returns_n_of_chars=no
    27013002fi
    2702 fi
    27033003rm -fr conftest*
     3004fi
     3005
    27043006fi
    27053007
     
    27163018# determine ALIGN_8
    27173019echo $ac_n "checking size of char""... $ac_c" 1>&6
     3020echo "configure:3021: checking size of char" >&5
    27183021if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
    27193022  echo $ac_n "(cached) $ac_c" 1>&6
     
    27223025  ac_cv_sizeof_char=1
    27233026else
    2724 cat > conftest.$ac_ext <<EOF
    2725 #line 2726 "configure"
     3027  cat > conftest.$ac_ext <<EOF
     3028#line 3029 "configure"
    27263029#include "confdefs.h"
    27273030#include <stdio.h>
     
    27343037}
    27353038EOF
    2736 { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2737 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     3039if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3040then
    27383041  ac_cv_sizeof_char=`cat conftestval`
    27393042else
     3043  echo "configure: failed program was:" >&5
     3044  cat conftest.$ac_ext >&5
     3045  rm -fr conftest*
    27403046  ac_cv_sizeof_char=0
    27413047fi
    2742 fi
    27433048rm -fr conftest*
     3049fi
     3050
    27443051fi
    27453052echo "$ac_t""$ac_cv_sizeof_char" 1>&6
     
    27503057
    27513058echo $ac_n "checking size of short""... $ac_c" 1>&6
     3059echo "configure:3060: checking size of short" >&5
    27523060if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
    27533061  echo $ac_n "(cached) $ac_c" 1>&6
     
    27563064  ac_cv_sizeof_short=2
    27573065else
    2758 cat > conftest.$ac_ext <<EOF
    2759 #line 2760 "configure"
     3066  cat > conftest.$ac_ext <<EOF
     3067#line 3068 "configure"
    27603068#include "confdefs.h"
    27613069#include <stdio.h>
     
    27683076}
    27693077EOF
    2770 { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2771 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     3078if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3079then
    27723080  ac_cv_sizeof_short=`cat conftestval`
    27733081else
     3082  echo "configure: failed program was:" >&5
     3083  cat conftest.$ac_ext >&5
     3084  rm -fr conftest*
    27743085  ac_cv_sizeof_short=0
    27753086fi
    2776 fi
    27773087rm -fr conftest*
     3088fi
     3089
    27783090fi
    27793091echo "$ac_t""$ac_cv_sizeof_short" 1>&6
     
    27843096
    27853097echo $ac_n "checking size of int""... $ac_c" 1>&6
     3098echo "configure:3099: checking size of int" >&5
    27863099if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
    27873100  echo $ac_n "(cached) $ac_c" 1>&6
     
    27903103  ac_cv_sizeof_int=4
    27913104else
    2792 cat > conftest.$ac_ext <<EOF
    2793 #line 2794 "configure"
     3105  cat > conftest.$ac_ext <<EOF
     3106#line 3107 "configure"
    27943107#include "confdefs.h"
    27953108#include <stdio.h>
     
    28023115}
    28033116EOF
    2804 { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2805 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     3117if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3118then
    28063119  ac_cv_sizeof_int=`cat conftestval`
    28073120else
     3121  echo "configure: failed program was:" >&5
     3122  cat conftest.$ac_ext >&5
     3123  rm -fr conftest*
    28083124  ac_cv_sizeof_int=0
    28093125fi
    2810 fi
    28113126rm -fr conftest*
     3127fi
     3128
    28123129fi
    28133130echo "$ac_t""$ac_cv_sizeof_int" 1>&6
     
    28183135
    28193136echo $ac_n "checking size of long""... $ac_c" 1>&6
     3137echo "configure:3138: checking size of long" >&5
    28203138if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    28213139  echo $ac_n "(cached) $ac_c" 1>&6
     
    28243142  ac_cv_sizeof_long=4
    28253143else
    2826 cat > conftest.$ac_ext <<EOF
    2827 #line 2828 "configure"
     3144  cat > conftest.$ac_ext <<EOF
     3145#line 3146 "configure"
    28283146#include "confdefs.h"
    28293147#include <stdio.h>
     
    28363154}
    28373155EOF
    2838 { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2839 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     3156if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3157then
    28403158  ac_cv_sizeof_long=`cat conftestval`
    28413159else
     3160  echo "configure: failed program was:" >&5
     3161  cat conftest.$ac_ext >&5
     3162  rm -fr conftest*
    28423163  ac_cv_sizeof_long=0
    28433164fi
    2844 fi
    28453165rm -fr conftest*
     3166fi
     3167
    28463168fi
    28473169echo "$ac_t""$ac_cv_sizeof_long" 1>&6
     
    28523174
    28533175echo $ac_n "checking size of void*""... $ac_c" 1>&6
     3176echo "configure:3177: checking size of void*" >&5
    28543177if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    28553178  echo $ac_n "(cached) $ac_c" 1>&6
     
    28583181  ac_cv_sizeof_voidp=4
    28593182else
    2860 cat > conftest.$ac_ext <<EOF
    2861 #line 2862 "configure"
     3183  cat > conftest.$ac_ext <<EOF
     3184#line 3185 "configure"
    28623185#include "confdefs.h"
    28633186#include <stdio.h>
     
    28703193}
    28713194EOF
    2872 { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2873 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     3195if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3196then
    28743197  ac_cv_sizeof_voidp=`cat conftestval`
    28753198else
     3199  echo "configure: failed program was:" >&5
     3200  cat conftest.$ac_ext >&5
     3201  rm -fr conftest*
    28763202  ac_cv_sizeof_voidp=0
    28773203fi
    2878 fi
    28793204rm -fr conftest*
     3205fi
     3206
    28803207fi
    28813208echo "$ac_t""$ac_cv_sizeof_voidp" 1>&6
     
    28863213
    28873214echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
     3215echo "configure:3216: checking whether byte ordering is bigendian" >&5
    28883216if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
    28893217  echo $ac_n "(cached) $ac_c" 1>&6
     
    28923220# See if sys/param.h defines the BYTE_ORDER macro.
    28933221cat > conftest.$ac_ext <<EOF
    2894 #line 2895 "configure"
     3222#line 3223 "configure"
    28953223#include "confdefs.h"
    28963224#include <sys/types.h>
    28973225#include <sys/param.h>
    2898 int main() { return 0; }
    2899 int t() {
     3226int main() {
    29003227
    29013228#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
     
    29043231; return 0; }
    29053232EOF
    2906 if { (eval echo configure:2907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3233if { (eval echo configure:3234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    29073234  rm -rf conftest*
    29083235  # It does; now see whether it defined to BIG_ENDIAN or not.
    29093236cat > conftest.$ac_ext <<EOF
    2910 #line 2911 "configure"
     3237#line 3238 "configure"
    29113238#include "confdefs.h"
    29123239#include <sys/types.h>
    29133240#include <sys/param.h>
    2914 int main() { return 0; }
    2915 int t() {
     3241int main() {
    29163242
    29173243#if BYTE_ORDER != BIG_ENDIAN
     
    29203246; return 0; }
    29213247EOF
    2922 if { (eval echo configure:2923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
     3248if { (eval echo configure:3249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    29233249  rm -rf conftest*
    29243250  ac_cv_c_bigendian=yes
    29253251else
     3252  echo "configure: failed program was:" >&5
     3253  cat conftest.$ac_ext >&5
    29263254  rm -rf conftest*
    29273255  ac_cv_c_bigendian=no
    29283256fi
    29293257rm -f conftest*
    2930 
    2931 fi
    2932 rm -f conftest*
    2933 
     3258else
     3259  echo "configure: failed program was:" >&5
     3260  cat conftest.$ac_ext >&5
     3261fi
     3262rm -f conftest*
    29343263if test $ac_cv_c_bigendian = unknown; then
    29353264if test "$cross_compiling" = yes; then
    29363265    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
    29373266else
    2938 cat > conftest.$ac_ext <<EOF
    2939 #line 2940 "configure"
     3267  cat > conftest.$ac_ext <<EOF
     3268#line 3269 "configure"
    29403269#include "confdefs.h"
    29413270main () {
     
    29503279}
    29513280EOF
    2952 { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
    2953 if test -s conftest && (./conftest; exit) 2>/dev/null; then
     3281if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
     3282then
    29543283  ac_cv_c_bigendian=no
    29553284else
     3285  echo "configure: failed program was:" >&5
     3286  cat conftest.$ac_ext >&5
     3287  rm -fr conftest*
    29563288  ac_cv_c_bigendian=yes
    29573289fi
    2958 fi
    29593290rm -fr conftest*
     3291fi
     3292
    29603293fi
    29613294fi
     
    30563389# readline
    30573390if test "$with_readline" != no; then
    3058   echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
    3059 ac_lib_var=`echo ncurses_tgetent | tr '.-/+' '___p'`
     3391  echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
     3392echo "configure:3393: checking for tgetent in -lncurses" >&5
     3393ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
    30603394if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    30613395  echo $ac_n "(cached) $ac_c" 1>&6
     
    30643398LIBS="-lncurses  $LIBS"
    30653399cat > conftest.$ac_ext <<EOF
    3066 #line 3067 "configure"
     3400#line 3401 "configure"
    30673401#include "confdefs.h"
    30683402/* Override any gcc2 internal prototype to avoid an error.  */
     3403/* We use char because int might match the return type of a gcc2
     3404    builtin and then its argument prototype would still apply.  */
    30693405char tgetent();
    30703406
    3071 int main() { return 0; }
    3072 int t() {
     3407int main() {
    30733408tgetent()
    30743409; return 0; }
    30753410EOF
    3076 if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3411if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    30773412  rm -rf conftest*
    30783413  eval "ac_cv_lib_$ac_lib_var=yes"
    30793414else
     3415  echo "configure: failed program was:" >&5
     3416  cat conftest.$ac_ext >&5
    30803417  rm -rf conftest*
    30813418  eval "ac_cv_lib_$ac_lib_var=no"
     
    30873424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    30883425  echo "$ac_t""yes" 1>&6
    3089     ac_tr_lib=HAVE_LIB`echo ncurses | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3426    ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     3427    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    30903428  cat >> confdefs.h <<EOF
    30913429#define $ac_tr_lib 1
     
    30973435  echo "$ac_t""no" 1>&6
    30983436\
    3099    echo $ac_n "checking for -lcurses""... $ac_c" 1>&6
    3100 ac_lib_var=`echo curses_tgetent | tr '.-/+' '___p'`
     3437   echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
     3438echo "configure:3439: checking for tgetent in -lcurses" >&5
     3439ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
    31013440if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    31023441  echo $ac_n "(cached) $ac_c" 1>&6
     
    31053444LIBS="-lcurses  $LIBS"
    31063445cat > conftest.$ac_ext <<EOF
    3107 #line 3108 "configure"
     3446#line 3447 "configure"
    31083447#include "confdefs.h"
    31093448/* Override any gcc2 internal prototype to avoid an error.  */
     3449/* We use char because int might match the return type of a gcc2
     3450    builtin and then its argument prototype would still apply.  */
    31103451char tgetent();
    31113452
    3112 int main() { return 0; }
    3113 int t() {
     3453int main() {
    31143454tgetent()
    31153455; return 0; }
    31163456EOF
    3117 if { (eval echo configure:3118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3457if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    31183458  rm -rf conftest*
    31193459  eval "ac_cv_lib_$ac_lib_var=yes"
    31203460else
     3461  echo "configure: failed program was:" >&5
     3462  cat conftest.$ac_ext >&5
    31213463  rm -rf conftest*
    31223464  eval "ac_cv_lib_$ac_lib_var=no"
     
    31283470if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    31293471  echo "$ac_t""yes" 1>&6
    3130     ac_tr_lib=HAVE_LIB`echo curses | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3472    ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
     3473    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    31313474  cat >> confdefs.h <<EOF
    31323475#define $ac_tr_lib 1
     
    31383481  echo "$ac_t""no" 1>&6
    31393482\
    3140    echo $ac_n "checking for -ltermcap""... $ac_c" 1>&6
    3141 ac_lib_var=`echo termcap_tgetent | tr '.-/+' '___p'`
     3483   echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
     3484echo "configure:3485: checking for tgetent in -ltermcap" >&5
     3485ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
    31423486if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    31433487  echo $ac_n "(cached) $ac_c" 1>&6
     
    31463490LIBS="-ltermcap  $LIBS"
    31473491cat > conftest.$ac_ext <<EOF
    3148 #line 3149 "configure"
     3492#line 3493 "configure"
    31493493#include "confdefs.h"
    31503494/* Override any gcc2 internal prototype to avoid an error.  */
     3495/* We use char because int might match the return type of a gcc2
     3496    builtin and then its argument prototype would still apply.  */
    31513497char tgetent();
    31523498
    3153 int main() { return 0; }
    3154 int t() {
     3499int main() {
    31553500tgetent()
    31563501; return 0; }
    31573502EOF
    3158 if { (eval echo configure:3159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3503if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    31593504  rm -rf conftest*
    31603505  eval "ac_cv_lib_$ac_lib_var=yes"
    31613506else
     3507  echo "configure: failed program was:" >&5
     3508  cat conftest.$ac_ext >&5
    31623509  rm -rf conftest*
    31633510  eval "ac_cv_lib_$ac_lib_var=no"
     
    31693516if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    31703517  echo "$ac_t""yes" 1>&6
    3171     ac_tr_lib=HAVE_LIB`echo termcap | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3518    ac_tr_lib=HAVE_LIB`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
     3519    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    31723520  cat >> confdefs.h <<EOF
    31733521#define $ac_tr_lib 1
     
    31843532fi
    31853533
    3186    echo $ac_n "checking for -lreadline""... $ac_c" 1>&6
    3187 ac_lib_var=`echo readline_rl_abort | tr '.-/+' '___p'`
     3534   echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6
     3535echo "configure:3536: checking for rl_abort in -lreadline" >&5
     3536ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'`
    31883537if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    31893538  echo $ac_n "(cached) $ac_c" 1>&6
     
    31923541LIBS="-lreadline  $LIBS"
    31933542cat > conftest.$ac_ext <<EOF
    3194 #line 3195 "configure"
     3543#line 3544 "configure"
    31953544#include "confdefs.h"
    31963545/* Override any gcc2 internal prototype to avoid an error.  */
     3546/* We use char because int might match the return type of a gcc2
     3547    builtin and then its argument prototype would still apply.  */
    31973548char rl_abort();
    31983549
    3199 int main() { return 0; }
    3200 int t() {
     3550int main() {
    32013551rl_abort()
    32023552; return 0; }
    32033553EOF
    3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3554if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    32053555  rm -rf conftest*
    32063556  eval "ac_cv_lib_$ac_lib_var=yes"
    32073557else
     3558  echo "configure: failed program was:" >&5
     3559  cat conftest.$ac_ext >&5
    32083560  rm -rf conftest*
    32093561  eval "ac_cv_lib_$ac_lib_var=no"
     
    32153567if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    32163568  echo "$ac_t""yes" 1>&6
    3217     ac_tr_lib=HAVE_LIB`echo readline | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3569    ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     3570    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    32183571  cat >> confdefs.h <<EOF
    32193572#define $ac_tr_lib 1
     
    32283581   for ac_hdr in readline/readline.h readline/history.h
    32293582do
    3230 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     3583ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    32313584echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     3585echo "configure:3586: checking for $ac_hdr" >&5
    32323586if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    32333587  echo $ac_n "(cached) $ac_c" 1>&6
    32343588else
    32353589  cat > conftest.$ac_ext <<EOF
    3236 #line 3237 "configure"
     3590#line 3591 "configure"
    32373591#include "confdefs.h"
    32383592#include <$ac_hdr>
    32393593EOF
    32403594ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3241 { (eval echo configure:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     3595{ (eval echo configure:3596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    32423596ac_err=`grep -v '^ *+' conftest.out`
    32433597if test -z "$ac_err"; then
     
    32463600else
    32473601  echo "$ac_err" >&5
     3602  echo "configure: failed program was:" >&5
     3603  cat conftest.$ac_ext >&5
    32483604  rm -rf conftest*
    32493605  eval "ac_cv_header_$ac_safe=no"
     
    32533609if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    32543610  echo "$ac_t""yes" 1>&6
    3255     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
     3611    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    32563612  cat >> confdefs.h <<EOF
    32573613#define $ac_tr_hdr 1
     
    32663622      test "$ac_cv_header_readline_readline_h" = yes; then
    32673623     echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6
     3624echo "configure:3625: checking whether readline.h is ok" >&5
    32683625     if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then
    32693626  echo $ac_n "(cached) $ac_c" 1>&6
    32703627else
    32713628  cat > conftest.$ac_ext <<EOF
    3272 #line 3273 "configure"
     3629#line 3630 "configure"
    32733630#include "confdefs.h"
    32743631#include<unistd.h>
     
    32793636#endif
    32803637
    3281 int main() { return 0; }
    3282 int t() {
     3638int main() {
    32833639#ifndef NULL
    32843640#define NULL 0
     
    32963652; return 0; }
    32973653EOF
    3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3654if { (eval echo configure:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    32993655  rm -rf conftest*
    33003656  ac_cv_header_readline_readline_h_ok="yes"
    33013657else
     3658  echo "configure: failed program was:" >&5
     3659  cat conftest.$ac_ext >&5
    33023660  rm -rf conftest*
    33033661  ac_cv_header_readline_readline_h_ok="no"
    33043662fi
    33053663rm -f conftest*
    3306 
    33073664fi
    33083665
     
    33113668#not ok -- try once more with explicitly declaring everything
    33123669      echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6
     3670echo "configure:3671: checking whether or not we nevertheless can use readline" >&5
    33133671      if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then
    33143672  echo $ac_n "(cached) $ac_c" 1>&6
    33153673else
    33163674  cat > conftest.$ac_ext <<EOF
    3317 #line 3318 "configure"
     3675#line 3676 "configure"
    33183676#include "confdefs.h"
    33193677#include <stdio.h>
    33203678
    3321 int main() { return 0; }
    3322 int t() {
     3679int main() {
    33233680extern char * rl_readline_name;
    33243681extern char *rl_line_buffer;
     
    33463703; return 0; }
    33473704EOF
    3348 if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3705if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    33493706  rm -rf conftest*
    33503707  ac_cv_have_readline="yes"
    33513708
    33523709else
     3710  echo "configure: failed program was:" >&5
     3711  cat conftest.$ac_ext >&5
    33533712  rm -rf conftest*
    33543713  ac_cv_have_readline="no"
     
    33563715fi
    33573716rm -f conftest*
    3358 
    33593717fi
    33603718
     
    33903748# dld
    33913749if test "$with_dld" = yes; then
    3392   echo $ac_n "checking for -ldld""... $ac_c" 1>&6
    3393 ac_lib_var=`echo dld_dld_init | tr '.-/+' '___p'`
     3750  echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
     3751echo "configure:3752: checking for dld_init in -ldld" >&5
     3752ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
    33943753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    33953754  echo $ac_n "(cached) $ac_c" 1>&6
     
    33983757LIBS="-ldld  $LIBS"
    33993758cat > conftest.$ac_ext <<EOF
    3400 #line 3401 "configure"
     3759#line 3760 "configure"
    34013760#include "confdefs.h"
    34023761/* Override any gcc2 internal prototype to avoid an error.  */
     3762/* We use char because int might match the return type of a gcc2
     3763    builtin and then its argument prototype would still apply.  */
    34033764char dld_init();
    34043765
    3405 int main() { return 0; }
    3406 int t() {
     3766int main() {
    34073767dld_init()
    34083768; return 0; }
    34093769EOF
    3410 if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3770if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    34113771  rm -rf conftest*
    34123772  eval "ac_cv_lib_$ac_lib_var=yes"
    34133773else
     3774  echo "configure: failed program was:" >&5
     3775  cat conftest.$ac_ext >&5
    34143776  rm -rf conftest*
    34153777  eval "ac_cv_lib_$ac_lib_var=no"
     
    34323794
    34333795# gmp, smallgmp, MP, MPT, factory, libfac
    3434 echo $ac_n "checking for -lgmp""... $ac_c" 1>&6
    3435 ac_lib_var=`echo gmp_mpq_init | tr '.-/+' '___p'`
     3796echo $ac_n "checking for mpq_init in -lgmp""... $ac_c" 1>&6
     3797echo "configure:3798: checking for mpq_init in -lgmp" >&5
     3798ac_lib_var=`echo gmp'_'mpq_init | sed 'y%./+-%__p_%'`
    34363799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    34373800  echo $ac_n "(cached) $ac_c" 1>&6
     
    34403803LIBS="-lgmp  $LIBS"
    34413804cat > conftest.$ac_ext <<EOF
    3442 #line 3443 "configure"
     3805#line 3806 "configure"
    34433806#include "confdefs.h"
    34443807/* Override any gcc2 internal prototype to avoid an error.  */
     3808/* We use char because int might match the return type of a gcc2
     3809    builtin and then its argument prototype would still apply.  */
    34453810char mpq_init();
    34463811
    3447 int main() { return 0; }
    3448 int t() {
     3812int main() {
    34493813mpq_init()
    34503814; return 0; }
    34513815EOF
    3452 if { (eval echo configure:3453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3816if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    34533817  rm -rf conftest*
    34543818  eval "ac_cv_lib_$ac_lib_var=yes"
    34553819else
     3820  echo "configure: failed program was:" >&5
     3821  cat conftest.$ac_ext >&5
    34563822  rm -rf conftest*
    34573823  eval "ac_cv_lib_$ac_lib_var=no"
     
    34633829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    34643830  echo "$ac_t""yes" 1>&6
    3465     ac_tr_lib=HAVE_LIB`echo gmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3831    ac_tr_lib=HAVE_LIB`echo gmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     3832    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    34663833  cat >> confdefs.h <<EOF
    34673834#define $ac_tr_lib 1
     
    34773844  LIBS=NEED_LIBS
    34783845fi
    3479 echo $ac_n "checking for -lsmallgmp""... $ac_c" 1>&6
    3480 ac_lib_var=`echo smallgmp_mpz_init | tr '.-/+' '___p'`
     3846echo $ac_n "checking for mpz_init in -lsmallgmp""... $ac_c" 1>&6
     3847echo "configure:3848: checking for mpz_init in -lsmallgmp" >&5
     3848ac_lib_var=`echo smallgmp'_'mpz_init | sed 'y%./+-%__p_%'`
    34813849if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    34823850  echo $ac_n "(cached) $ac_c" 1>&6
     
    34853853LIBS="-lsmallgmp  $LIBS"
    34863854cat > conftest.$ac_ext <<EOF
    3487 #line 3488 "configure"
     3855#line 3856 "configure"
    34883856#include "confdefs.h"
    34893857/* Override any gcc2 internal prototype to avoid an error.  */
     3858/* We use char because int might match the return type of a gcc2
     3859    builtin and then its argument prototype would still apply.  */
    34903860char mpz_init();
    34913861
    3492 int main() { return 0; }
    3493 int t() {
     3862int main() {
    34943863mpz_init()
    34953864; return 0; }
    34963865EOF
    3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3866if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    34983867  rm -rf conftest*
    34993868  eval "ac_cv_lib_$ac_lib_var=yes"
    35003869else
     3870  echo "configure: failed program was:" >&5
     3871  cat conftest.$ac_ext >&5
    35013872  rm -rf conftest*
    35023873  eval "ac_cv_lib_$ac_lib_var=no"
     
    35083879if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    35093880  echo "$ac_t""yes" 1>&6
    3510     ac_tr_lib=HAVE_LIB`echo smallgmp | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3881    ac_tr_lib=HAVE_LIB`echo smallgmp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     3882    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    35113883  cat >> confdefs.h <<EOF
    35123884#define $ac_tr_lib 1
     
    35193891fi
    35203892
    3521 echo $ac_n "checking for -lMP""... $ac_c" 1>&6
    3522 ac_lib_var=`echo MP_IMP_PutGmpInt | tr '.-/+' '___p'`
     3893echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6
     3894echo "configure:3895: checking for IMP_PutGmpInt in -lMP" >&5
     3895ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'`
    35233896if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    35243897  echo $ac_n "(cached) $ac_c" 1>&6
     
    35273900LIBS="-lMP  $LIBS"
    35283901cat > conftest.$ac_ext <<EOF
    3529 #line 3530 "configure"
     3902#line 3903 "configure"
    35303903#include "confdefs.h"
    35313904/* Override any gcc2 internal prototype to avoid an error.  */
     3905/* We use char because int might match the return type of a gcc2
     3906    builtin and then its argument prototype would still apply.  */
    35323907char IMP_PutGmpInt();
    35333908
    3534 int main() { return 0; }
    3535 int t() {
     3909int main() {
    35363910IMP_PutGmpInt()
    35373911; return 0; }
    35383912EOF
    3539 if { (eval echo configure:3540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3913if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    35403914  rm -rf conftest*
    35413915  eval "ac_cv_lib_$ac_lib_var=yes"
    35423916else
     3917  echo "configure: failed program was:" >&5
     3918  cat conftest.$ac_ext >&5
    35433919  rm -rf conftest*
    35443920  eval "ac_cv_lib_$ac_lib_var=no"
     
    35503926if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    35513927  echo "$ac_t""yes" 1>&6
    3552     ac_tr_lib=HAVE_LIB`echo MP | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3928    ac_tr_lib=HAVE_LIB`echo MP | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     3929    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    35533930  cat >> confdefs.h <<EOF
    35543931#define $ac_tr_lib 1
     
    35613938fi
    35623939
    3563 echo $ac_n "checking for -lMPT""... $ac_c" 1>&6
    3564 ac_lib_var=`echo MPT_MPT_GetTree | tr '.-/+' '___p'`
     3940echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6
     3941echo "configure:3942: checking for MPT_GetTree in -lMPT" >&5
     3942ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'`
    35653943if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    35663944  echo $ac_n "(cached) $ac_c" 1>&6
     
    35693947LIBS="-lMPT  $LIBS"
    35703948cat > conftest.$ac_ext <<EOF
    3571 #line 3572 "configure"
     3949#line 3950 "configure"
    35723950#include "confdefs.h"
    35733951/* Override any gcc2 internal prototype to avoid an error.  */
     3952/* We use char because int might match the return type of a gcc2
     3953    builtin and then its argument prototype would still apply.  */
    35743954char MPT_GetTree();
    35753955
    3576 int main() { return 0; }
    3577 int t() {
     3956int main() {
    35783957MPT_GetTree()
    35793958; return 0; }
    35803959EOF
    3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     3960if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    35823961  rm -rf conftest*
    35833962  eval "ac_cv_lib_$ac_lib_var=yes"
    35843963else
     3964  echo "configure: failed program was:" >&5
     3965  cat conftest.$ac_ext >&5
    35853966  rm -rf conftest*
    35863967  eval "ac_cv_lib_$ac_lib_var=no"
     
    35923973if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    35933974  echo "$ac_t""yes" 1>&6
    3594     ac_tr_lib=HAVE_LIB`echo MPT | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     3975    ac_tr_lib=HAVE_LIB`echo MPT | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     3976    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    35953977  cat >> confdefs.h <<EOF
    35963978#define $ac_tr_lib 1
     
    36033985fi
    36043986
    3605 echo $ac_n "checking for -lsingcf""... $ac_c" 1>&6
    3606 ac_lib_var=`echo singcf_atof | tr '.-/+' '___p'`
     3987echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6
     3988echo "configure:3989: checking for atof in -lsingcf" >&5
     3989ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'`
    36073990if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    36083991  echo $ac_n "(cached) $ac_c" 1>&6
     
    36113994LIBS="-lsingcf  $LIBS"
    36123995cat > conftest.$ac_ext <<EOF
    3613 #line 3614 "configure"
     3996#line 3997 "configure"
    36143997#include "confdefs.h"
    36153998/* Override any gcc2 internal prototype to avoid an error.  */
     3999/* We use char because int might match the return type of a gcc2
     4000    builtin and then its argument prototype would still apply.  */
    36164001char atof();
    36174002
    3618 int main() { return 0; }
    3619 int t() {
     4003int main() {
    36204004atof()
    36214005; return 0; }
    36224006EOF
    3623 if { (eval echo configure:3624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     4007if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    36244008  rm -rf conftest*
    36254009  eval "ac_cv_lib_$ac_lib_var=yes"
    36264010else
     4011  echo "configure: failed program was:" >&5
     4012  cat conftest.$ac_ext >&5
    36274013  rm -rf conftest*
    36284014  eval "ac_cv_lib_$ac_lib_var=no"
     
    36344020if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    36354021  echo "$ac_t""yes" 1>&6
    3636     ac_tr_lib=HAVE_LIB`echo singcf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     4022    ac_tr_lib=HAVE_LIB`echo singcf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4023    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    36374024  cat >> confdefs.h <<EOF
    36384025#define $ac_tr_lib 1
     
    36454032fi
    36464033
    3647 echo $ac_n "checking for -lsingfac""... $ac_c" 1>&6
    3648 ac_lib_var=`echo singfac_atof | tr '.-/+' '___p'`
     4034echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6
     4035echo "configure:4036: checking for atof in -lsingfac" >&5
     4036ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'`
    36494037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    36504038  echo $ac_n "(cached) $ac_c" 1>&6
     
    36534041LIBS="-lsingfac  $LIBS"
    36544042cat > conftest.$ac_ext <<EOF
    3655 #line 3656 "configure"
     4043#line 4044 "configure"
    36564044#include "confdefs.h"
    36574045/* Override any gcc2 internal prototype to avoid an error.  */
     4046/* We use char because int might match the return type of a gcc2
     4047    builtin and then its argument prototype would still apply.  */
    36584048char atof();
    36594049
    3660 int main() { return 0; }
    3661 int t() {
     4050int main() {
    36624051atof()
    36634052; return 0; }
    36644053EOF
    3665 if { (eval echo configure:3666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     4054if { (eval echo configure:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    36664055  rm -rf conftest*
    36674056  eval "ac_cv_lib_$ac_lib_var=yes"
    36684057else
     4058  echo "configure: failed program was:" >&5
     4059  cat conftest.$ac_ext >&5
    36694060  rm -rf conftest*
    36704061  eval "ac_cv_lib_$ac_lib_var=no"
     
    36764067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    36774068  echo "$ac_t""yes" 1>&6
    3678     ac_tr_lib=HAVE_LIB`echo singfac | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
     4069    ac_tr_lib=HAVE_LIB`echo singfac | sed -e 's/[^a-zA-Z0-9_]/_/g' \
     4070    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    36794071  cat >> confdefs.h <<EOF
    36804072#define $ac_tr_lib 1
     
    36904082for ac_hdr in gmp.h smallgmp.h MP.h  MPT.h factory.h factor.h
    36914083do
    3692 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
     4084ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    36934085echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
     4086echo "configure:4087: checking for $ac_hdr" >&5
    36944087if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    36954088  echo $ac_n "(cached) $ac_c" 1>&6
    36964089else
    36974090  cat > conftest.$ac_ext <<EOF
    3698 #line 3699 "configure"
     4091#line 4092 "configure"
    36994092#include "confdefs.h"
    37004093#include <$ac_hdr>
    37014094EOF
    37024095ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    3703 { (eval echo configure:3704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     4096{ (eval echo configure:4097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    37044097ac_err=`grep -v '^ *+' conftest.out`
    37054098if test -z "$ac_err"; then
     
    37084101else
    37094102  echo "$ac_err" >&5
     4103  echo "configure: failed program was:" >&5
     4104  cat conftest.$ac_ext >&5
    37104105  rm -rf conftest*
    37114106  eval "ac_cv_header_$ac_safe=no"
     
    37154110if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    37164111  echo "$ac_t""yes" 1>&6
    3717     ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
     4112    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    37184113  cat >> confdefs.h <<EOF
    37194114#define $ac_tr_hdr 1
     
    37564151# evaluate results
    37574152echo $ac_n "checking which apint package to use""... $ac_c" 1>&6
     4153echo "configure:4154: checking which apint package to use" >&5
    37584154if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then
    37594155  if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then
     
    37964192
    37974193echo $ac_n "checking whether to have MP""... $ac_c" 1>&6
     4194echo "configure:4195: checking whether to have MP" >&5
    37984195if test "${with_MP}" != yes && test "${with_MP}" != no; then
    37994196  if (test "${will_have_gmp}" = yes) && \
     
    38264223
    38274224echo $ac_n "checking whether to have factory""... $ac_c" 1>&6
     4225echo "configure:4226: checking whether to have factory" >&5
    38284226if test "${with_factory}" != yes && test "${with_factory}" != no; then
    38294227  if test "$ac_factory_ok" =  yes || test "$enable_factory" = yes; then
     
    38564254     
    38574255echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6
     4256echo "configure:4257: checking whether to have libfac" >&5
    38584257if test "${with_libfac}" != yes && test "${with_libfac}" != no; then
    38594258  if (test "${will_have_factory}" = yes) && \
     
    38874286
    38884287echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6
     4288echo "configure:4289: checking whether to have dbm links" >&5
    38894289if test "$with_dbm" != no; then
    38904290  cat >> confdefs.h <<\EOF
     
    38984298
    38994299echo $ac_n "checking which exponent types to use""... $ac_c" 1>&6
     4300echo "configure:4301: checking which exponent types to use" >&5
    39004301if test "$with_exp_type" = "char"; then
    39014302  echo "$ac_t""char" 1>&6
     
    39474348#
    39484349EOF
     4350# The following way of writing the cache mishandles newlines in values,
     4351# but we know of no workaround that is simple, portable, and efficient.
     4352# So, don't put newlines in cache variables' values.
    39494353# Ultrix sh set writes to stderr and can't be redirected directly,
    39504354# and sets the high bit in the cache file unless we assign to the vars.
    39514355(set) 2>&1 |
    3952   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
    3953   >> confcache
     4356  case `(ac_space=' '; set) 2>&1` in
     4357  *ac_space=\ *)
     4358    # `set' does not quote correctly, so add quotes (double-quote substitution
     4359    # turns \\\\ into \\, and sed turns \\ into \).
     4360    sed -n \
     4361      -e "s/'/'\\\\''/g" \
     4362      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
     4363    ;;
     4364  *)
     4365    # `set' quotes correctly as required by POSIX, so do not add quotes.
     4366    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
     4367    ;;
     4368  esac >> confcache
    39544369if cmp -s $cache_file confcache; then
    39554370  :
     
    40064421    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    40074422  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
    4008     echo "$CONFIG_STATUS generated by autoconf version 2.9"
     4423    echo "$CONFIG_STATUS generated by autoconf version 2.12"
    40094424    exit 0 ;;
    40104425  -help | --help | --hel | --he | --h)
     
    40664481CEOF
    40674482EOF
     4483
     4484cat >> $CONFIG_STATUS <<\EOF
     4485
     4486# Split the substitutions into bite-sized pieces for seds with
     4487# small command number limits, like on Digital OSF/1 and HP-UX.
     4488ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
     4489ac_file=1 # Number of current file.
     4490ac_beg=1 # First line for current file.
     4491ac_end=$ac_max_sed_cmds # Line after last line for current file.
     4492ac_more_lines=:
     4493ac_sed_cmds=""
     4494while $ac_more_lines; do
     4495  if test $ac_beg -gt 1; then
     4496    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
     4497  else
     4498    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
     4499  fi
     4500  if test ! -s conftest.s$ac_file; then
     4501    ac_more_lines=false
     4502    rm -f conftest.s$ac_file
     4503  else
     4504    if test -z "$ac_sed_cmds"; then
     4505      ac_sed_cmds="sed -f conftest.s$ac_file"
     4506    else
     4507      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
     4508    fi
     4509    ac_file=`expr $ac_file + 1`
     4510    ac_beg=$ac_end
     4511    ac_end=`expr $ac_end + $ac_max_sed_cmds`
     4512  fi
     4513done
     4514if test -z "$ac_sed_cmds"; then
     4515  ac_sed_cmds=cat
     4516fi
     4517EOF
     4518
    40684519cat >> $CONFIG_STATUS <<EOF
    40694520
     
    40724523cat >> $CONFIG_STATUS <<\EOF
    40734524for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
    4074   # Support "outfile[:infile]", defaulting infile="outfile.in".
     4525  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    40754526  case "$ac_file" in
    4076   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
     4527  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    40774528       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    40784529  *) ac_file_in="${ac_file}.in" ;;
    40794530  esac
    40804531
    4081   # Adjust relative srcdir, etc. for subdirectories.
     4532  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
    40824533
    40834534  # Remove last slash and all that follows it.  Not all systems have dirname.
     
    41034554  esac
    41044555
     4556
    41054557  echo creating "$ac_file"
    41064558  rm -f "$ac_file"
     
    41114563  *) ac_comsub= ;;
    41124564  esac
     4565
     4566  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    41134567  sed -e "$ac_comsub
    41144568s%@configure_input@%$configure_input%g
    41154569s%@srcdir@%$srcdir%g
    41164570s%@top_srcdir@%$top_srcdir%g
    4117 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
     4571" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
    41184572fi; done
    4119 rm -f conftest.subs
     4573rm -f conftest.s*
    41204574
    41214575# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
     
    41384592ac_eD='%g'
    41394593
    4140 CONFIG_HEADERS=${CONFIG_HEADERS-"mod2.h si_paths.h"}
     4594if test "${CONFIG_HEADERS+set}" != set; then
     4595EOF
     4596cat >> $CONFIG_STATUS <<EOF
     4597  CONFIG_HEADERS="mod2.h si_paths.h"
     4598EOF
     4599cat >> $CONFIG_STATUS <<\EOF
     4600fi
    41414601for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
    4142   # Support "outfile[:infile]", defaulting infile="outfile.in".
     4602  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    41434603  case "$ac_file" in
    4144   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
     4604  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
    41454605       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    41464606  *) ac_file_in="${ac_file}.in" ;;
     
    41504610
    41514611  rm -f conftest.frag conftest.in conftest.out
    4152   cp $ac_given_srcdir/$ac_file_in conftest.in
     4612  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
     4613  cat $ac_file_inputs > conftest.in
    41534614
    41544615EOF
     
    41784639# Break up conftest.vals because some shells have a limit on
    41794640# the size of here documents, and old seds have small limits too.
    4180 # Maximum number of lines to put in a single here document.
    4181 ac_max_here_lines=12
    41824641
    41834642rm -f conftest.tail
     
    42104669    rm -f conftest.h
    42114670  else
     4671    # Remove last slash and all that follows it.  Not all systems have dirname.
     4672      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
     4673      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
     4674      # The file is in a subdirectory.
     4675      test ! -d "$ac_dir" && mkdir "$ac_dir"
     4676    fi
    42124677    rm -f $ac_file
    42134678    mv conftest.h $ac_file
     
    42154680fi; done
    42164681
    4217 
     4682EOF
     4683cat >> $CONFIG_STATUS <<EOF
     4684
     4685EOF
     4686cat >> $CONFIG_STATUS <<\EOF
    42184687\
    42194688 if test "$CONFIG_HEADERS"; then echo timestamp > stamp-h; fi
  • Singular/configure.in

    r27f5f1e r16b993  
    2323AC_MSG_RESULT($ac_cv_singuname)
    2424if test "$ac_cv_singuname" = unknown; then
    25   AC_MSG_ERROR(Unknown architecture: Check singuname.sh)
     25  AC_MSG_WARN(Unknown architecture: Check singuname.sh)
     26  ac_cv_singuname="unknown"
    2627fi
    2728AC_DEFINE_UNQUOTED(S_UNAME, "$ac_cv_singuname")
     
    4041
    4142SINGULAR_MAJOR_VERSION=${SINGULAR_MAJOR_VERSION:-1}
    42 SINGULAR_MINOR_VERSION=${SINGULAR_MINOR_VERSION:-2}
     43SINGULAR_MINOR_VERSION=${SINGULAR_MINOR_VERSION:-3}
    4344SINGULAR_SUB_VERSION=${SINGULAR_SUB_VERSION:-0}
    4445SINGULAR_VERSION="${SINGULAR_VERSION:-$SINGULAR_MAJOR_VERSION${VERSION_SEP}$SINGULAR_MINOR_VERSION${VERSION_SEP}$SINGULAR_SUB_VERSION}"
    45 VERSION_DATE=${VERSION_DATE:-"June 1998"}
     46VERSION_DATE=${VERSION_DATE:-"July 1998"}
    4647
    4748dnl pass them on into the Makefiles
  • configure

    r27f5f1e r16b993  
    599599# pass them indirectly to subsequent configures
    600600SINGULAR_MAJOR_VERSION=1
    601 SINGULAR_MINOR_VERSION=2
     601SINGULAR_MINOR_VERSION=3
    602602SINGULAR_SUB_VERSION=0
    603603SINGULAR_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
    604 VERSION_DATE="June 1998"
     604VERSION_DATE="July 1998"
    605605SINGULAR_DOS_VERSION="${SINGULAR_MAJOR_VERSION}-${SINGULAR_MINOR_VERSION}-${SINGULAR_SUB_VERSION}"
    606606export SINGULAR_MINOR_VERSION
  • configure.in

    r27f5f1e r16b993  
    3838# pass them indirectly to subsequent configures
    3939SINGULAR_MAJOR_VERSION=1
    40 SINGULAR_MINOR_VERSION=2
     40SINGULAR_MINOR_VERSION=3
    4141SINGULAR_SUB_VERSION=0
    4242SINGULAR_VERSION="${SINGULAR_MAJOR_VERSION}${VERSION_SEP}${SINGULAR_MINOR_VERSION}${VERSION_SEP}${SINGULAR_SUB_VERSION}"
    43 VERSION_DATE="June 1998"
     43VERSION_DATE="July 1998"
    4444SINGULAR_DOS_VERSION="${SINGULAR_MAJOR_VERSION}-${SINGULAR_MINOR_VERSION}-${SINGULAR_SUB_VERSION}"
    4545export SINGULAR_MINOR_VERSION
Note: See TracChangeset for help on using the changeset viewer.