/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.72 by camm, Fri Aug 16 14:27:34 2002 UTC revision 1.73 by camm, Sun Aug 18 16:15:10 2002 UTC
# Line 46  ac_help="$ac_help Line 46  ac_help="$ac_help
46   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb   --enable-debug builds gcl with -g in CFLAGS to enable running under gdb
47          "          "
48  ac_help="$ac_help  ac_help="$ac_help
49   --enable-oldgmp will link agains gmp2 instead of gmp3   --enable-oldgmp will link against gmp2 instead of gmp3
50            "
51    ac_help="$ac_help
52     --enable-dynsysgmp will link against the system libgmp3 overriding certain functions with patched versions from the local source
53          "          "
54  ac_help="$ac_help  ac_help="$ac_help
55  --enable-readine    enables command line completion via the readline library "  --enable-readine    enables command line completion via the readline library "
# Line 679  else { echo "configure: error: can not r Line 682  else { echo "configure: error: can not r
682  fi  fi
683    
684  echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
685  echo "configure:683: checking host system type" >&5  echo "configure:686: checking host system type" >&5
686    
687  host_alias=$host  host_alias=$host
688  case "$host_alias" in  case "$host_alias" in
# Line 936  else Line 939  else
939  fi  fi
940    
941    
942    # Check whether --enable-dynsysgmp or --disable-dynsysgmp was given.
943    if test "${enable_dynsysgmp+set}" = set; then
944      enableval="$enable_dynsysgmp"
945      :
946    else
947      enable_dynsysgmp="no"
948    fi
949    
950    
951  load_opt="0"  load_opt="0"
952  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
953          load_opt=$(($load_opt+1))          load_opt=$(($load_opt+1))
# Line 977  echo "$ac_t""use=$use" 1>&6 Line 989  echo "$ac_t""use=$use" 1>&6
989  # Extract the first word of "gcc", so it can be a program name with args.  # Extract the first word of "gcc", so it can be a program name with args.
990  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
991  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
992  echo "configure:981: checking for $ac_word" >&5  echo "configure:993: checking for $ac_word" >&5
993  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
994    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
995  else  else
# Line 1007  if test -z "$CC"; then Line 1019  if test -z "$CC"; then
1019    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1020  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1021  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022  echo "configure:1011: checking for $ac_word" >&5  echo "configure:1023: checking for $ac_word" >&5
1023  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1024    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1025  else  else
# Line 1058  fi Line 1070  fi
1070        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
1071  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
1072  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1073  echo "configure:1062: checking for $ac_word" >&5  echo "configure:1074: checking for $ac_word" >&5
1074  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1075    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1076  else  else
# Line 1090  fi Line 1102  fi
1102  fi  fi
1103    
1104  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1105  echo "configure:1094: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1106: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1106    
1107  ac_ext=c  ac_ext=c
1108  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 1101  cross_compiling=$ac_cv_prog_cc_cross Line 1113  cross_compiling=$ac_cv_prog_cc_cross
1113    
1114  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1115    
1116  #line 1105 "configure"  #line 1117 "configure"
1117  #include "confdefs.h"  #include "confdefs.h"
1118    
1119  main(){return(0);}  main(){return(0);}
1120  EOF  EOF
1121  if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1122    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1123    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
1124    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1132  if test $ac_cv_prog_cc_works = no; then Line 1144  if test $ac_cv_prog_cc_works = no; then
1144    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1145  fi  fi
1146  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1147  echo "configure:1136: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1148: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1148  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1149  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1150    
1151  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1152  echo "configure:1141: checking whether we are using GNU C" >&5  echo "configure:1153: checking whether we are using GNU C" >&5
1153  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1154    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1155  else  else
# Line 1146  else Line 1158  else
1158    yes;    yes;
1159  #endif  #endif
1160  EOF  EOF
1161  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1162    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1163  else  else
1164    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1165  ac_test_CFLAGS="${CFLAGS+set}" Line 1177  ac_test_CFLAGS="${CFLAGS+set}"
1177  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1178  CFLAGS=  CFLAGS=
1179  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1180  echo "configure:1169: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1181: checking whether ${CC-cc} accepts -g" >&5
1181  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1182    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1183  else  else
# Line 1197  else Line 1209  else
1209  fi  fi
1210    
1211  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1212  echo "configure:1201: checking how to run the C preprocessor" >&5  echo "configure:1213: checking how to run the C preprocessor" >&5
1213  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1214  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1215    CPP=    CPP=
# Line 1212  else Line 1224  else
1224    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
1225    # not just through cpp.    # not just through cpp.
1226    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1227  #line 1216 "configure"  #line 1228 "configure"
1228  #include "confdefs.h"  #include "confdefs.h"
1229  #include <assert.h>  #include <assert.h>
1230  Syntax Error  Syntax Error
1231  EOF  EOF
1232  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1233  { (eval echo configure:1222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1234  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1235  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1236    :    :
# Line 1229  else Line 1241  else
1241    rm -rf conftest*    rm -rf conftest*
1242    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1243    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1244  #line 1233 "configure"  #line 1245 "configure"
1245  #include "confdefs.h"  #include "confdefs.h"
1246  #include <assert.h>  #include <assert.h>
1247  Syntax Error  Syntax Error
1248  EOF  EOF
1249  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1250  { (eval echo configure:1239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1251  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1252  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1253    :    :
# Line 1246  else Line 1258  else
1258    rm -rf conftest*    rm -rf conftest*
1259    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1260    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1261  #line 1250 "configure"  #line 1262 "configure"
1262  #include "confdefs.h"  #include "confdefs.h"
1263  #include <assert.h>  #include <assert.h>
1264  Syntax Error  Syntax Error
1265  EOF  EOF
1266  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1267  { (eval echo configure:1256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1268  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1269  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1270    :    :
# Line 1320  esac Line 1332  esac
1332  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
1333    
1334  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6  echo $ac_n "checking system version (for dynamic loading)""... $ac_c" 1>&6
1335  echo "configure:1324: checking system version (for dynamic loading)" >&5  echo "configure:1336: checking system version (for dynamic loading)" >&5
1336  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
1337    
1338  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
# Line 1328  do Line 1340  do
1340  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1341  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1342  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1343  echo "configure:1332: checking for $ac_word" >&5  echo "configure:1344: checking for $ac_word" >&5
1344  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1345    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1346  else  else
# Line 1364  do Line 1376  do
1376  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
1377  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1378  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1379  echo "configure:1368: checking for $ac_word" >&5  echo "configure:1380: checking for $ac_word" >&5
1380  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1381    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1382  else  else
# Line 1426  rm -f makedefsafter Line 1438  rm -f makedefsafter
1438    
1439  MP_INLCUDE=""  MP_INLCUDE=""
1440  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
1441    
1442   echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6   echo $ac_n "checking use_gmp=yes, doing configure in gmp directory""... $ac_c" 1>&6
1443  echo "configure:1431: checking use_gmp=yes, doing configure in gmp directory" >&5  echo "configure:1444: checking use_gmp=yes, doing configure in gmp directory" >&5
1444   echo   echo
1445   echo "#"   echo "#"
1446   echo "#"   echo "#"
# Line 1455  echo "configure:1431: checking use_gmp=y Line 1468  echo "configure:1431: checking use_gmp=y
1468   echo "# Subconfigure of GMP done"   echo "# Subconfigure of GMP done"
1469   echo "# ------------------------"   echo "# ------------------------"
1470   echo "#"   echo "#"
1471   cp $GMPDIR/gmp.h h/gmp.h  
1472     if test "$enable_dynsysgmp" = "yes" ; then
1473            ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
1474    echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
1475    echo "configure:1476: checking for gmp.h" >&5
1476    if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1477      echo $ac_n "(cached) $ac_c" 1>&6
1478    else
1479      cat > conftest.$ac_ext <<EOF
1480    #line 1481 "configure"
1481    #include "confdefs.h"
1482    #include <gmp.h>
1483    EOF
1484    ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1485    { (eval echo configure:1486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1486    ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1487    if test -z "$ac_err"; then
1488      rm -rf conftest*
1489      eval "ac_cv_header_$ac_safe=yes"
1490    else
1491      echo "$ac_err" >&5
1492      echo "configure: failed program was:" >&5
1493      cat conftest.$ac_ext >&5
1494      rm -rf conftest*
1495      eval "ac_cv_header_$ac_safe=no"
1496    fi
1497    rm -f conftest*
1498    fi
1499    if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1500      echo "$ac_t""yes" 1>&6
1501      echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
1502    echo "configure:1503: checking for __gmpz_init in -lgmp" >&5
1503    ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
1504    if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1505      echo $ac_n "(cached) $ac_c" 1>&6
1506    else
1507      ac_save_LIBS="$LIBS"
1508    LIBS="-lgmp  $LIBS"
1509    cat > conftest.$ac_ext <<EOF
1510    #line 1511 "configure"
1511    #include "confdefs.h"
1512    /* Override any gcc2 internal prototype to avoid an error.  */
1513    /* We use char because int might match the return type of a gcc2
1514        builtin and then its argument prototype would still apply.  */
1515    char __gmpz_init();
1516    
1517    int main() {
1518    __gmpz_init()
1519    ; return 0; }
1520    EOF
1521    if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1522      rm -rf conftest*
1523      eval "ac_cv_lib_$ac_lib_var=yes"
1524    else
1525      echo "configure: failed program was:" >&5
1526      cat conftest.$ac_ext >&5
1527      rm -rf conftest*
1528      eval "ac_cv_lib_$ac_lib_var=no"
1529    fi
1530    rm -f conftest*
1531    LIBS="$ac_save_LIBS"
1532    
1533    fi
1534    if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1535      echo "$ac_t""yes" 1>&6
1536      MPFILES=$GMPDIR/mpn/mul_n.o
1537                            if test "$use" = "m68k-linux" ; then
1538                                    MPFILES="$MPFILES $GMPDIR/mpn/lshift.o $GOMEDIR/mpn/rshift.o"
1539                            fi
1540                            TLIBS="$TLIBS -lgmp"
1541                            echo "#include \"gmp.h\"" >foo.c
1542                            echo "int main() {return 0;}" >>foo.c
1543                            MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`
1544                            rm -f foo.c
1545    else
1546      echo "$ac_t""no" 1>&6
1547    echo "Cannot use dynamic gmp lib" ; exit 1
1548    fi
1549    
1550    else
1551      echo "$ac_t""no" 1>&6
1552    echo "Cannot use dynamic gmp lib" ; exit 1
1553    fi
1554    
1555    
1556    else                    
1557    
1558            cp $GMPDIR/gmp.h h/gmp.h
1559            MP_INCLUDE=h/gmp.h
1560            MPFILES=$GMPDIR/libgmp.a
1561    
1562    fi
1563    
1564   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6   echo $ac_n "checking "for size of gmp limbs"""... $ac_c" 1>&6
1565  echo "configure:1461: checking "for size of gmp limbs"" >&5  echo "configure:1566: checking "for size of gmp limbs"" >&5
1566   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1567    mpsize=0    mpsize=0
1568  else  else
1569    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1570  #line 1466 "configure"  #line 1571 "configure"
1571  #include "confdefs.h"  #include "confdefs.h"
1572  #include <stdio.h>  #include <stdio.h>
1573          #include "h/gmp.h"          #include "$MP_INCLUDE"
1574          int main() {          int main() {
1575          FILE *fp=fopen("conftest1","w");          FILE *fp=fopen("conftest1","w");
1576          fprintf(fp,"%u",sizeof(mp_limb_t));          fprintf(fp,"%u",sizeof(mp_limb_t));
1577          fclose(fp);          fclose(fp);
1578          return 0;          return 0;
1579  }          }
1580  EOF  EOF
1581  if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1582  then  then
1583    mpsize=`cat conftest1`    mpsize=`cat conftest1`
1584  else  else
# Line 1494  fi Line 1599  fi
1599  EOF  EOF
1600    
1601   echo "$ac_t""$mpsize" 1>&6   echo "$ac_t""$mpsize" 1>&6
1602    
1603   GMP=1   GMP=1
1604   cat >> confdefs.h <<\EOF   cat >> confdefs.h <<\EOF
1605  #define GMP 1  #define GMP 1
# Line 1501  EOF Line 1607  EOF
1607    
1608    
1609    
1610   MP_INCLUDE=h/gmp.h  
1611   echo > makedefsafter   echo > makedefsafter
1612   echo 'MPFILES=${GMPDIR}/libgmp.a' >> makedefsafter   echo "MPFILES=$MPFILES" >> makedefsafter
1613   echo >> makedefsafter   echo >> makedefsafter
1614  fi  fi
   
1615    
1616    
1617    
# Line 1517  fi Line 1622  fi
1622  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
1623    
1624          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
1625  echo "configure:1521: checking for dlopen in -ldl" >&5  echo "configure:1626: checking for dlopen in -ldl" >&5
1626  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
1627  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1628    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1525  else Line 1630  else
1630    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1631  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
1632  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1633  #line 1529 "configure"  #line 1634 "configure"
1634  #include "confdefs.h"  #include "confdefs.h"
1635  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1636  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1536  int main() { Line 1641  int main() {
1641  dlopen()  dlopen()
1642  ; return 0; }  ; return 0; }
1643  EOF  EOF
1644  if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1645    rm -rf conftest*    rm -rf conftest*
1646    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1647  else  else
# Line 1572  fi Line 1677  fi
1677  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
1678          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
1679  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
1680  echo "configure:1576: checking for bfd.h" >&5  echo "configure:1681: checking for bfd.h" >&5
1681  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1682    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1683  else  else
1684    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1685  #line 1581 "configure"  #line 1686 "configure"
1686  #include "confdefs.h"  #include "confdefs.h"
1687  #include <bfd.h>  #include <bfd.h>
1688  EOF  EOF
1689  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1690  { (eval echo configure:1586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1691  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1692  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1693    rm -rf conftest*    rm -rf conftest*
# Line 1599  fi Line 1704  fi
1704  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1705    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1706    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6    echo $ac_n "checking for bfd_init in -lbfd""... $ac_c" 1>&6
1707  echo "configure:1603: checking for bfd_init in -lbfd" >&5  echo "configure:1708: checking for bfd_init in -lbfd" >&5
1708  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
1709  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1710    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1607  else Line 1712  else
1712    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1713  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
1714  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1715  #line 1611 "configure"  #line 1716 "configure"
1716  #include "confdefs.h"  #include "confdefs.h"
1717  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1718  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 1618  int main() { Line 1723  int main() {
1723  bfd_init()  bfd_init()
1724  ; return 0; }  ; return 0; }
1725  EOF  EOF
1726  if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1727    rm -rf conftest*    rm -rf conftest*
1728    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1729  else  else
# Line 1637  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 1742  if eval "test \"`echo '$ac_cv_lib_'$ac_l
1742                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
1743                  #                  #
1744                          echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6                          echo $ac_n "checking if need to define CONST for bfd""... $ac_c" 1>&6
1745  echo "configure:1641: checking if need to define CONST for bfd" >&5  echo "configure:1746: checking if need to define CONST for bfd" >&5
1746                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
1747    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
1748  else  else
1749    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1750  #line 1646 "configure"  #line 1751 "configure"
1751  #include "confdefs.h"  #include "confdefs.h"
1752  #define IN_GCC  #define IN_GCC
1753                                      #include <bfd.h>                                      #include <bfd.h>
1754                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
1755  EOF  EOF
1756  if { (eval echo configure:1652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1757  then  then
1758    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1759  else  else
# Line 1659  else Line 1764  else
1764    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
1765  else  else
1766    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1767  #line 1663 "configure"  #line 1768 "configure"
1768  #include "confdefs.h"  #include "confdefs.h"
1769  #define CONST const  #define CONST const
1770                                              #define IN_GCC                                              #define IN_GCC
1771                                              #include <bfd.h>                                              #include <bfd.h>
1772                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
1773  EOF  EOF
1774  if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1775  then  then
1776    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1777                                          cat >> confdefs.h <<\EOF                                          cat >> confdefs.h <<\EOF
# Line 1756  fi Line 1861  fi
1861  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
1862    
1863  echo $ac_n "checking size of long *""... $ac_c" 1>&6  echo $ac_n "checking size of long *""... $ac_c" 1>&6
1864  echo "configure:1760: checking size of long *" >&5  echo "configure:1865: checking size of long *" >&5
1865  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then
1866    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1867  else  else
# Line 1764  else Line 1869  else
1869    ac_cv_sizeof_long_p=0    ac_cv_sizeof_long_p=0
1870  else  else
1871    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1872  #line 1768 "configure"  #line 1873 "configure"
1873  #include "confdefs.h"  #include "confdefs.h"
1874  #include <stdio.h>  #include <stdio.h>
1875  main()  main()
# Line 1775  main() Line 1880  main()
1880    exit(0);    exit(0);
1881  }  }
1882  EOF  EOF
1883  if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1884  then  then
1885    ac_cv_sizeof_long_p=`cat conftestval`    ac_cv_sizeof_long_p=`cat conftestval`
1886  else  else
# Line 1799  for ac_hdr in endian.h Line 1904  for ac_hdr in endian.h
1904  do  do
1905  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1906  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1907  echo "configure:1803: checking for $ac_hdr" >&5  echo "configure:1908: checking for $ac_hdr" >&5
1908  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1909    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1910  else  else
1911    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1912  #line 1808 "configure"  #line 1913 "configure"
1913  #include "confdefs.h"  #include "confdefs.h"
1914  #include <$ac_hdr>  #include <$ac_hdr>
1915  EOF  EOF
1916  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1917  { (eval echo configure:1813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1918  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1919  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1920    rm -rf conftest*    rm -rf conftest*
# Line 1830  if eval "test \"`echo '$ac_cv_header_'$a Line 1935  if eval "test \"`echo '$ac_cv_header_'$a
1935  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
1936  EOF  EOF
1937   echo $ac_n "checking "endianness"""... $ac_c" 1>&6   echo $ac_n "checking "endianness"""... $ac_c" 1>&6
1938  echo "configure:1834: checking "endianness"" >&5  echo "configure:1939: checking "endianness"" >&5
1939          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
1940    echo "$ac_t""big" 1>&6    echo "$ac_t""big" 1>&6
1941  else  else
1942    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1943  #line 1839 "configure"  #line 1944 "configure"
1944  #include "confdefs.h"  #include "confdefs.h"
1945  #define __ARMEB__  #define __ARMEB__
1946                  #include <endian.h>                  #include <endian.h>
1947                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
1948  EOF  EOF
1949  if { (eval echo configure:1845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1950  then  then
1951    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
1952  #define LITTLE_END 1  #define LITTLE_END 1
# Line 1864  done Line 1969  done
1969    
1970    
1971  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
1972  echo "configure:1868: checking "finding DBEGIN"" >&5  echo "configure:1973: checking "finding DBEGIN"" >&5
1973  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
1974    dbegin=0    dbegin=0
1975  else  else
1976    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1977  #line 1873 "configure"  #line 1978 "configure"
1978  #include "confdefs.h"  #include "confdefs.h"
1979  #include <stdio.h>  #include <stdio.h>
1980              #include <stdlib.h>              #include <stdlib.h>
# Line 1886  main() Line 1991  main()
1991    return 0;    return 0;
1992  }  }
1993  EOF  EOF
1994  if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1995  then  then
1996    dbegin=`cat conftest1`    dbegin=`cat conftest1`
1997  else  else
# Line 1908  echo "$ac_t""got $dbegin" 1>&6 Line 2013  echo "$ac_t""got $dbegin" 1>&6
2013    
2014    
2015  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
2016  echo "configure:1912: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:2017: checking "finding CSTACK_ADDRESS"" >&5
2017  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
2018    cstack_address=0    cstack_address=0
2019  else  else
2020    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2021  #line 1917 "configure"  #line 2022 "configure"
2022  #include "confdefs.h"  #include "confdefs.h"
2023  #include <stdio.h>  #include <stdio.h>
2024  main()  main()
# Line 1925  main() Line 2030  main()
2030    return 0;    return 0;
2031  }  }
2032  EOF  EOF
2033  if { (eval echo configure:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2034  then  then
2035    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
2036  else  else
# Line 1947  echo "$ac_t""got $cstack_address" 1>&6 Line 2052  echo "$ac_t""got $cstack_address" 1>&6
2052    
2053    
2054  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
2055  echo "configure:1951: checking "sizeof long long int"" >&5  echo "configure:2056: checking "sizeof long long int"" >&5
2056  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
2057    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2058    
2059  else  else
2060    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2061  #line 1957 "configure"  #line 2062 "configure"
2062  #include "confdefs.h"  #include "confdefs.h"
2063  #include <stdio.h>  #include <stdio.h>
2064  main()  main()
# Line 1963  main() Line 2068  main()
2068  }  }
2069    
2070  EOF  EOF
2071  if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2072  then  then
2073    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2074  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 2016  fi Line 2121  fi
2121    
2122  # pagewidth  # pagewidth
2123  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
2124  echo "configure:2020: checking for pagewidth" >&5  echo "configure:2125: checking for pagewidth" >&5
2125  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
2126    PAGEWIDTH=0    PAGEWIDTH=0
2127  else  else
2128    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2129  #line 2025 "configure"  #line 2130 "configure"
2130  #include "confdefs.h"  #include "confdefs.h"
2131  #include <stdio.h>  #include <stdio.h>
2132              #include <unistd.h>              #include <unistd.h>
# Line 2031  int main() {size_t i=getpagesize(),j; Line 2136  int main() {size_t i=getpagesize(),j;
2136              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
2137              return 0;}              return 0;}
2138  EOF  EOF
2139  if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2140  then  then
2141    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
2142  else  else
# Line 2058  EOF Line 2163  EOF
2163  for ac_func in getcwd  for ac_func in getcwd
2164  do  do
2165  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2166  echo "configure:2062: checking for $ac_func" >&5  echo "configure:2167: checking for $ac_func" >&5
2167  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2168    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2169  else  else
2170    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2171  #line 2067 "configure"  #line 2172 "configure"
2172  #include "confdefs.h"  #include "confdefs.h"
2173  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2174      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 2086  $ac_func(); Line 2191  $ac_func();
2191    
2192  ; return 0; }  ; return 0; }
2193  EOF  EOF
2194  if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2195    rm -rf conftest*    rm -rf conftest*
2196    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
2197  else  else
# Line 2113  done Line 2218  done
2218  for ac_func in getwd  for ac_func in getwd
2219  do  do
2220  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2221  echo "configure:2117: checking for $ac_func" >&5  echo "configure:2222: checking for $ac_func" >&5
2222  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2223    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2224  else  else
2225    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2226  #line 2122 "configure"  #line 2227 "configure"
2227  #include "confdefs.h"  #include "confdefs.h"
2228  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2229      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 2141  $ac_func(); Line 2246  $ac_func();
2246    
2247  ; return 0; }  ; return 0; }
2248  EOF  EOF
2249  if { (eval echo configure:2145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2250    rm -rf conftest*    rm -rf conftest*
2251    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
2252  else  else
# Line 2166  fi Line 2271  fi
2271  done  done
2272    
2273  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
2274  echo "configure:2170: checking for uname" >&5  echo "configure:2275: checking for uname" >&5
2275  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
2276    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2277  else  else
2278    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2279  #line 2175 "configure"  #line 2280 "configure"
2280  #include "confdefs.h"  #include "confdefs.h"
2281  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2282      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 2194  uname(); Line 2299  uname();
2299    
2300  ; return 0; }  ; return 0; }
2301  EOF  EOF
2302  if { (eval echo configure:2198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2303    rm -rf conftest*    rm -rf conftest*
2304    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
2305  else  else
# Line 2218  EOF Line 2323  EOF
2323  fi  fi
2324    
2325  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
2326  echo "configure:2222: checking for gettimeofday" >&5  echo "configure:2327: checking for gettimeofday" >&5
2327  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
2328    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2329  else  else
2330    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2331  #line 2227 "configure"  #line 2332 "configure"
2332  #include "confdefs.h"  #include "confdefs.h"
2333  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2334      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 2246  gettimeofday(); Line 2351  gettimeofday();
2351    
2352  ; return 0; }  ; return 0; }
2353  EOF  EOF
2354  if { (eval echo configure:2250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2355    rm -rf conftest*    rm -rf conftest*
2356    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
2357  else  else
# Line 2275  for ac_hdr in sys/ioctl.h Line 2380  for ac_hdr in sys/ioctl.h
2380  do  do
2381  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2382  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2383  echo "configure:2279: checking for $ac_hdr" >&5  echo "configure:2384: checking for $ac_hdr" >&5
2384  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2385    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2386  else  else
2387    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2388  #line 2284 "configure"  #line 2389 "configure"
2389  #include "confdefs.h"  #include "confdefs.h"
2390  #include <$ac_hdr>  #include <$ac_hdr>
2391  EOF  EOF
2392  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2393  { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2394  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2395  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2396    rm -rf conftest*    rm -rf conftest*
# Line 2325  done Line 2430  done
2430  #--------------------------------------------------------------------  #--------------------------------------------------------------------
2431    
2432  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
2433  echo "configure:2329: checking for BSDgettimeofday" >&5  echo "configure:2434: checking for BSDgettimeofday" >&5
2434  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
2435    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2436  else  else
2437    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2438  #line 2334 "configure"  #line 2439 "configure"
2439  #include "confdefs.h"  #include "confdefs.h"
2440  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2441      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 2353  BSDgettimeofday(); Line 2458  BSDgettimeofday();
2458    
2459  ; return 0; }  ; return 0; }
2460  EOF  EOF
2461  if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462    rm -rf conftest*    rm -rf conftest*
2463    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
2464  else  else
# Line 2374  EOF Line 2479  EOF
2479  else  else
2480    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2481  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
2482  echo "configure:2378: checking for gettimeofday" >&5  echo "configure:2483: checking for gettimeofday" >&5
2483  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
2484    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2485  else  else
2486    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2487  #line 2383 "configure"  #line 2488 "configure"
2488  #include "confdefs.h"  #include "confdefs.h"
2489  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2490      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 2402  gettimeofday(); Line 2507  gettimeofday();
2507    
2508  ; return 0; }  ; return 0; }
2509  EOF  EOF
2510  if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2511    rm -rf conftest*    rm -rf conftest*
2512    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
2513  else  else
# Line 2429  fi Line 2534  fi
2534    
2535    
2536  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
2537  echo "configure:2433: checking for gettimeofday declaration" >&5  echo "configure:2538: checking for gettimeofday declaration" >&5
2538    
2539  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2540  #line 2436 "configure"  #line 2541 "configure"
2541  #include "confdefs.h"  #include "confdefs.h"
2542  #include <sys/time.h>  #include <sys/time.h>
2543  EOF  EOF
# Line 2453  rm -f conftest* Line 2558  rm -f conftest*
2558    
2559    
2560  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
2561  echo "configure:2457: checking for sin in -lm" >&5  echo "configure:2562: checking for sin in -lm" >&5
2562  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2563  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2564    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2461  else Line 2566  else
2566    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2567  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
2568  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2569  #line 2465 "configure"  #line 2570 "configure"
2570  #include "confdefs.h"  #include "confdefs.h"
2571  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2572  /* We use char because int might match the return type of a gcc2  /* We use char because int might match the return type of a gcc2
# Line 2472  int main() { Line 2577  int main() {
2577  sin()  sin()
2578  ; return 0; }  ; return 0; }
2579  EOF  EOF
2580  if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2581    rm -rf conftest*    rm -rf conftest*
2582    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2583  else  else
# Line 2494  true Line 2599  true
2599  fi  fi
2600    
2601  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
2602  echo "configure:2498: checking for main in -lmingwex" >&5  echo "configure:2603: checking for main in -lmingwex" >&5
2603  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
2604  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2605    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2502  else Line 2607  else
2607    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2608  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
2609  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2610  #line 2506 "configure"  #line 2611 "configure"
2611  #include "confdefs.h"  #include "confdefs.h"
2612    
2613  int main() {  int main() {
2614  main()  main()
2615  ; return 0; }  ; return 0; }
2616  EOF  EOF
2617  if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2618    rm -rf conftest*    rm -rf conftest*
2619    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2620  else  else
# Line 2538  for ac_hdr in math.h Line 2643  for ac_hdr in math.h
2643  do  do
2644  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2645  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2646  echo "configure:2542: checking for $ac_hdr" >&5  echo "configure:2647: checking for $ac_hdr" >&5
2647  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2648    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2649  else  else
2650    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2651  #line 2547 "configure"  #line 2652 "configure"
2652  #include "confdefs.h"  #include "confdefs.h"
2653  #include <$ac_hdr>  #include <$ac_hdr>
2654  EOF  EOF
2655  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2656  { (eval echo configure:2552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2657  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2658  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2659    rm -rf conftest*    rm -rf conftest*
# Line 2585  for ac_hdr in values.h Line 2690  for ac_hdr in values.h
2690  do  do
2691  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2692  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2693  echo "configure:2589: checking for $ac_hdr" >&5  echo "configure:2694: checking for $ac_hdr" >&5
2694  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2695    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2696  else  else
2697    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2698  #line 2594 "configure"  #line 2699 "configure"
2699  #include "confdefs.h"  #include "confdefs.h"
2700  #include <$ac_hdr>  #include <$ac_hdr>
2701  EOF  EOF
2702  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703  { (eval echo configure:2599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2706    rm -rf conftest*    rm -rf conftest*
# Line 2631  done Line 2736  done
2736  # test makes sense.  CM  # test makes sense.  CM
2737  #  #
2738  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
2739  echo "configure:2635: checking for isnormal" >&5  echo "configure:2740: checking for isnormal" >&5
2740  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
2741    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
2742  else  else
2743    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2744  #line 2640 "configure"  #line 2745 "configure"
2745  #include "confdefs.h"  #include "confdefs.h"
2746  #define _GNU_SOURCE  #define _GNU_SOURCE
2747              #include <math.h>              #include <math.h>
# Line 2645  else Line 2750  else
2750                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
2751                  }                  }
2752  EOF  EOF
2753  if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2754  then  then
2755    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2756  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 2656  else Line 2761  else
2761    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2762    rm -fr conftest*    rm -fr conftest*
2763    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6    echo $ac_n "checking for fpclass in ieeefp.h""... $ac_c" 1>&6
2764  echo "configure:2660: checking for fpclass in ieeefp.h" >&5  echo "configure:2765: checking for fpclass in ieeefp.h" >&5
2765                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
2766    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
2767  else  else
2768    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2769  #line 2665 "configure"  #line 2770 "configure"
2770  #include "confdefs.h"  #include "confdefs.h"
2771  #include <ieeefp.h>  #include <ieeefp.h>
2772                              int main() {                              int main() {
# Line 2669  else Line 2774  else
2774                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
2775                                  }                                  }
2776  EOF  EOF
2777  if { (eval echo configure:2673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2778  then  then
2779    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2780  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 2691  fi Line 2796  fi
2796    
2797    
2798  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
2799  echo "configure:2695: checking for isfinite" >&5  echo "configure:2800: checking for isfinite" >&5
2800  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
2801    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
2802  else  else
2803    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2804  #line 2700 "configure"  #line 2805 "configure"
2805  #include "confdefs.h"  #include "confdefs.h"
2806  #define _GNU_SOURCE  #define _GNU_SOURCE
2807              #include <math.h>              #include <math.h>
# Line 2705  else Line 2810  else
2810                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
2811                  }                  }
2812  EOF  EOF
2813  if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2814  then  then
2815    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2816  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 2716  else Line 2821  else
2821    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2822    rm -fr conftest*    rm -fr conftest*
2823    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
2824  echo "configure:2720: checking for finite()" >&5  echo "configure:2825: checking for finite()" >&5
2825                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
2826    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
2827  else  else
2828    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2829  #line 2725 "configure"  #line 2830 "configure"
2830  #include "confdefs.h"  #include "confdefs.h"
2831  #include <math.h>  #include <math.h>
2832                              int main() {                              int main() {
# Line 2729  else Line 2834  else
2834                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
2835                                  }                                  }
2836  EOF  EOF
2837  if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2838  then  then
2839    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2840  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 2770  fi Line 2875  fi
2875  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
2876  #--------------------------------------------------------------------  #--------------------------------------------------------------------
2877  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
2878  echo "configure:2774: checking for sockets" >&5  echo "configure:2879: checking for sockets" >&5
2879  tcl_checkBoth=0  tcl_checkBoth=0
2880  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
2881  echo "configure:2777: checking for connect" >&5  echo "configure:2882: checking for connect" >&5
2882  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2883    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2884  else  else
2885    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2886  #line 2782 "configure"  #line 2887 "configure"
2887  #include "confdefs.h"  #include "confdefs.h"
2888  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2889      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 2801  connect(); Line 2906  connect();
2906    
2907  ; return 0; }  ; return 0; }
2908  EOF  EOF
2909  if { (eval echo configure:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2910    rm -rf conftest*    rm -rf conftest*
2911    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
2912  else  else
# Line 2823  fi Line 2928  fi
2928    
2929  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
2930      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2931  echo "configure:2827: checking for main in -lsocket" >&5  echo "configure:2932: checking for main in -lsocket" >&5
2932  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2933  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2934    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2831  else Line 2936  else
2936    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2937  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
2938  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2939  #line 2835 "configure"  #line 2940 "configure"
2940  #include "confdefs.h"  #include "confdefs.h"
2941    
2942  int main() {  int main() {
2943  main()  main()
2944  ; return 0; }  ; return 0; }
2945  EOF  EOF
2946  if { (eval echo configure:2842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2947    rm -rf conftest*    rm -rf conftest*
2948    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2949  else  else
# Line 2866  if test "$tcl_checkBoth" = 1; then Line 2971  if test "$tcl_checkBoth" = 1; then
2971      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
2972      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
2973      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
2974  echo "configure:2870: checking for accept" >&5  echo "configure:2975: checking for accept" >&5
2975  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
2976    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2977  else  else
2978    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2979  #line 2875 "configure"  #line 2980 "configure"
2980  #include "confdefs.h"  #include "confdefs.h"
2981  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2982      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 2894  accept(); Line 2999  accept();
2999    
3000  ; return 0; }  ; return 0; }
3001  EOF  EOF
3002  if { (eval echo configure:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003    rm -rf conftest*    rm -rf conftest*
3004    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
3005  else  else
# Line 2916  fi Line 3021  fi
3021    
3022  fi  fi
3023  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3024  echo "configure:2920: checking for gethostbyname" >&5  echo "configure:3025: checking for gethostbyname" >&5
3025  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3026    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3027  else  else
3028    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3029  #line 2925 "configure"  #line 3030 "configure"
3030  #include "confdefs.h"  #include "confdefs.h"
3031  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3032      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 2944  gethostbyname(); Line 3049  gethostbyname();
3049    
3050  ; return 0; }  ; return 0; }
3051  EOF  EOF
3052  if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3053    rm -rf conftest*    rm -rf conftest*
3054    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
3055  else  else
# Line 2962  if eval "test \"`echo '$ac_cv_func_'geth Line 3067  if eval "test \"`echo '$ac_cv_func_'geth
3067  else  else
3068    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3069  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
3070  echo "configure:2966: checking for main in -lnsl" >&5  echo "configure:3071: checking for main in -lnsl" >&5
3071  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
3072  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3073    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2970  else Line 3075  else
3075    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3076  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
3077  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3078  #line 2974 "configure"  #line 3079 "configure"
3079  #include "confdefs.h"  #include "confdefs.h"
3080    
3081  int main() {  int main() {
3082  main()  main()
3083  ; return 0; }  ; return 0; }
3084  EOF  EOF
3085  if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3086    rm -rf conftest*    rm -rf conftest*
3087    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3088  else  else
# Line 3002  fi Line 3107  fi
3107    
3108  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
3109          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
3110  echo "configure:3006: checking for main in -lreadline" >&5  echo "configure:3111: checking for main in -lreadline" >&5
3111  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
3112  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3113    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3010  else Line 3115  else
3115    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3116  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
3117  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3118  #line 3014 "configure"  #line 3119 "configure"
3119  #include "confdefs.h"  #include "confdefs.h"
3120    
3121  int main() {  int main() {
3122  main()  main()
3123  ; return 0; }  ; return 0; }
3124  EOF  EOF
3125  if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3126    rm -rf conftest*    rm -rf conftest*
3127    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3128  else  else
# Line 3049  fi Line 3154  fi
3154    
3155    
3156  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6  echo $ac_n "checking For network code for nsocket.c""... $ac_c" 1>&6
3157  echo "configure:3053: checking For network code for nsocket.c" >&5  echo "configure:3158: checking For network code for nsocket.c" >&5
3158  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3159  #line 3055 "configure"  #line 3160 "configure"
3160  #include "confdefs.h"  #include "confdefs.h"
3161    
3162  #include <sys/time.h>  #include <sys/time.h>
# Line 3078  int main() { Line 3183  int main() {
3183                    
3184  ; return 0; }  ; return 0; }
3185  EOF  EOF
3186  if { (eval echo configure:3082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3187    rm -rf conftest*    rm -rf conftest*
3188    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3189  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 3095  rm -f conftest* Line 3200  rm -f conftest*
3200    
3201    
3202  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6  echo $ac_n "checking check for listen using fcntl""... $ac_c" 1>&6
3203  echo "configure:3099: checking check for listen using fcntl" >&5  echo "configure:3204: checking check for listen using fcntl" >&5
3204  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3205  #line 3101 "configure"  #line 3206 "configure"
3206  #include "confdefs.h"  #include "confdefs.h"
3207  #include <stdio.h>  #include <stdio.h>
3208  #include <fcntl.h>  #include <fcntl.h>
# Line 3110  FILE *fp=fopen("configure.in","r"); Line 3215  FILE *fp=fopen("configure.in","r");
3215    
3216  ; return 0; }  ; return 0; }
3217  EOF  EOF
3218  if { (eval echo configure:3114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219    rm -rf conftest*    rm -rf conftest*
3220    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3221  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 3129  rm -f conftest* Line 3234  rm -f conftest*
3234    
3235    
3236  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
3237  echo "configure:3133: checking for profil" >&5  echo "configure:3238: checking for profil" >&5
3238  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
3239    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3240  else  else
3241    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3242  #line 3138 "configure"  #line 3243 "configure"
3243  #include "confdefs.h"  #include "confdefs.h"
3244  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3245      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 3157  profil(); Line 3262  profil();
3262    
3263  ; return 0; }  ; return 0; }
3264  EOF  EOF
3265  if { (eval echo configure:3161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3266    rm -rf conftest*    rm -rf conftest*
3267    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
3268  else  else
# Line 3182  fi Line 3287  fi
3287    
3288    
3289  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
3290  echo "configure:3186: checking for setenv" >&5  echo "configure:3291: checking for setenv" >&5
3291  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
3292    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3293  else  else
3294    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3295  #line 3191 "configure"  #line 3296 "configure"
3296  #include "confdefs.h"  #include "confdefs.h"
3297  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3298      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 3210  setenv(); Line 3315  setenv();
3315    
3316  ; return 0; }  ; return 0; }
3317  EOF  EOF
3318  if { (eval echo configure:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319    rm -rf conftest*    rm -rf conftest*
3320    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
3321  else  else
# Line 3236  fi Line 3341  fi
3341    
3342  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
3343  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
3344  echo "configure:3240: checking for putenv" >&5  echo "configure:3345: checking for putenv" >&5
3345  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
3346    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3347  else  else
3348    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3349  #line 3245 "configure"  #line 3350 "configure"
3350  #include "confdefs.h"  #include "confdefs.h"
3351  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3352      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 3264  putenv(); Line 3369  putenv();
3369    
3370  ; return 0; }  ; return 0; }
3371  EOF  EOF
3372  if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373    rm -rf conftest*    rm -rf conftest*
3374    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
3375  else  else
# Line 3290  fi Line 3395  fi
3395  fi  fi
3396    
3397  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
3398  echo "configure:3294: checking for _cleanup" >&5  echo "configure:3399: checking for _cleanup" >&5
3399  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
3400    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3401  else  else
3402    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3403  #line 3299 "configure"  #line 3404 "configure"
3404  #include "confdefs.h"  #include "confdefs.h"
3405  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3406      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 3318  _cleanup(); Line 3423  _cleanup();
3423    
3424  ; return 0; }  ; return 0; }
3425  EOF  EOF
3426  if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3427    rm -rf conftest*    rm -rf conftest*
3428    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
3429  else  else
# Line 3344  fi Line 3449  fi
3449  gcl_ok=no  gcl_ok=no
3450    
3451  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3452  #line 3348 "configure"  #line 3453 "configure"
3453  #include "confdefs.h"  #include "confdefs.h"
3454  #include <ctype.h>  #include <ctype.h>
3455  EOF  EOF
# Line 3372  fi Line 3477  fi
3477    
3478  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
3479  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6  echo $ac_n "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O""... $ac_c" 1>&6
3480  echo "configure:3376: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:3481: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
3481    
3482  case $system in  case $system in
3483         OSF*)         OSF*)
# Line 3403  esac Line 3508  esac
3508    
3509    
3510  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
3511  echo "configure:3407: checking check for SV_ONSTACK" >&5  echo "configure:3512: checking check for SV_ONSTACK" >&5
3512  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3513  #line 3409 "configure"  #line 3514 "configure"
3514  #include "confdefs.h"  #include "confdefs.h"
3515  #include <signal.h>  #include <signal.h>
3516  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 3414  int main() { Line 3519  int main() {
3519    
3520  ; return 0; }  ; return 0; }
3521  EOF  EOF
3522  if { (eval echo configure:3418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3523    rm -rf conftest*    rm -rf conftest*
3524    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3525  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 3431  fi Line 3536  fi
3536  rm -f conftest*  rm -f conftest*
3537    
3538  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
3539  echo "configure:3435: checking check for SIGSYS" >&5  echo "configure:3540: checking check for SIGSYS" >&5
3540  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3541  #line 3437 "configure"  #line 3542 "configure"
3542  #include "confdefs.h"  #include "confdefs.h"
3543  #include <signal.h>  #include <signal.h>
3544  int joe=SIGSYS;  int joe=SIGSYS;
# Line 3442  int main() { Line 3547  int main() {
3547    
3548  ; return 0; }  ; return 0; }
3549  EOF  EOF
3550  if { (eval echo configure:3446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551    rm -rf conftest*    rm -rf conftest*
3552    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3553  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 3460  rm -f conftest* Line 3565  rm -f conftest*
3565    
3566    
3567  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
3568  echo "configure:3464: checking check for SIGEMT" >&5  echo "configure:3569: checking check for SIGEMT" >&5
3569  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3570  #line 3466 "configure"  #line 3571 "configure"
3571  #include "confdefs.h"  #include "confdefs.h"
3572  #include <signal.h>  #include <signal.h>
3573  int joe=SIGEMT;  int joe=SIGEMT;
# Line 3471  int main() { Line 3576  int main() {
3576    
3577  ; return 0; }  ; return 0; }
3578  EOF  EOF
3579  if { (eval echo configure:3475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3580    rm -rf conftest*    rm -rf conftest*
3581    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3582  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 3495  rm -f conftest* Line 3600  rm -f conftest*
3600  do  do
3601  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3602  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3603  echo "configure:3499: checking for $ac_hdr" >&5  echo "configure:3604: checking for $ac_hdr" >&5
3604  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3605    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3606  else  else
3607    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3608  #line 3504 "configure"  #line 3609 "configure"
3609  #include "confdefs.h"  #include "confdefs.h"
3610  #include <$ac_hdr>  #include <$ac_hdr>
3611  EOF  EOF
3612  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3613  { (eval echo configure:3509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3614  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3615  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3616    rm -rf conftest*    rm -rf conftest*
# Line 3535  done Line 3640  done
3640  do  do
3641  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3642  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3643  echo "configure:3539: checking for $ac_hdr" >&5  echo "configure:3644: checking for $ac_hdr" >&5
3644  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3645    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3646  else  else
3647    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3648  #line 3544 "configure"  #line 3649 "configure"
3649  #include "confdefs.h"  #include "confdefs.h"
3650  #include <$ac_hdr>  #include <$ac_hdr>
3651  EOF  EOF
3652  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3653  { (eval echo configure:3549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3654  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3655  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3656    rm -rf conftest*    rm -rf conftest*
# Line 3572  fi Line 3677  fi
3677  done  done
3678    
3679          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
3680  #line 3576 "configure"  #line 3681 "configure"
3681  #include "confdefs.h"  #include "confdefs.h"
3682  #include <signal.h>  #include <signal.h>
3683                          long code;                            long code;  
# Line 3583  int main() { Line 3688  int main() {
3688                
3689  ; return 0; }  ; return 0; }
3690  EOF  EOF
3691  if { (eval echo configure:3587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3692    rm -rf conftest*    rm -rf conftest*
3693        
3694          sigcontext_struct_works=1;          sigcontext_struct_works=1;
# Line 3604  fi Line 3709  fi
3709  rm -f conftest*  rm -f conftest*
3710         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
3711         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
3712  #line 3608 "configure"  #line 3713 "configure"
3713  #include "confdefs.h"  #include "confdefs.h"
3714  #include <signal.h>  #include <signal.h>
3715               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 3621  int main() { Line 3726  int main() {
3726                    
3727  ; return 0; }  ; return 0; }
3728  EOF  EOF
3729  if { (eval echo configure:3625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3730    rm -rf conftest*    rm -rf conftest*
3731        
3732          sigcontext_works=1 ;          sigcontext_works=1 ;
# Line 3664  rm -f conftest* Line 3769  rm -f conftest*
3769  # Extract the first word of "emacs", so it can be a program name with args.  # Extract the first word of "emacs", so it can be a program name with args.
3770  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
3771  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3772  echo "configure:3668: checking for $ac_word" >&5  echo "configure:3773: checking for $ac_word" >&5
3773  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
3774    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3775  else  else
# Line 3712  cat >> conftest.el <<EOF Line 3817  cat >> conftest.el <<EOF
3817  EOF  EOF
3818    
3819  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
3820  echo "configure:3716: checking emacs site lisp directory" >&5  echo "configure:3821: checking emacs site lisp directory" >&5
3821  #EMACS_SITE_LISP=unknown  #EMACS_SITE_LISP=unknown
3822  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
3823          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
# Line 3735  cat >> conftest.el <<EOF Line 3840  cat >> conftest.el <<EOF
3840  EOF  EOF
3841    
3842  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
3843  echo "configure:3739: checking emacs default.el" >&5  echo "configure:3844: checking emacs default.el" >&5
3844  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
3845          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          EMACS_DEFAULT_EL=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
3846  else  else
# Line 3764  cat >> conftest.el <<EOF Line 3869  cat >> conftest.el <<EOF
3869  EOF  EOF
3870    
3871  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
3872  echo "configure:3768: checking emacs info/dir" >&5  echo "configure:3873: checking emacs info/dir" >&5
3873  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
3874          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `          INFO_DIR=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
3875  fi  fi
# Line 3778  echo "$ac_t""$INFO_DIR" 1>&6 Line 3883  echo "$ac_t""$INFO_DIR" 1>&6
3883    
3884    
3885  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
3886  echo "configure:3782: checking for tcl/tk" >&5  echo "configure:3887: checking for tcl/tk" >&5
3887    
3888    
3889  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 3801  EOF Line 3906  EOF
3906  # Extract the first word of "tclsh", so it can be a program name with args.  # Extract the first word of "tclsh", so it can be a program name with args.
3907  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
3908  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3909  echo "configure:3805: checking for $ac_word" >&5  echo "configure:3910: checking for $ac_word" >&5
3910  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
3911    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3912  else  else
# Line 3901  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 4006  if test -f ${TCL_CONFIG_PREFIX}/../inclu
4006    fi    fi
4007  fi  fi
4008  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
4009  echo "configure:3905: checking for main in -llieee" >&5  echo "configure:4010: checking for main in -llieee" >&5
4010  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
4011  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4012    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3909  else Line 4014  else
4014    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4015  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
4016  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4017  #line 3913 "configure"  #line 4018 "configure"
4018  #include "confdefs.h"  #include "confdefs.h"
4019    
4020  int main() {  int main() {
4021  main()  main()
4022  ; return 0; }  ; return 0; }
4023  EOF  EOF
4024  if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4025    rm -rf conftest*    rm -rf conftest*
4026    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4027  else  else
# Line 3981  NOTIFY=$enable_notify Line 4086  NOTIFY=$enable_notify
4086  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
4087    
4088  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
4089  echo "configure:3985: checking alloca" >&5  echo "configure:4090: checking alloca" >&5
4090  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4091    gcl_ok=no    gcl_ok=no
4092  else  else
4093    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4094  #line 3990 "configure"  #line 4095 "configure"
4095  #include "confdefs.h"  #include "confdefs.h"
4096  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
4097  EOF  EOF
4098  if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4099  then  then
4100    :    :
4101  else  else
# Line 4013  else Line 4118  else
4118    gcl_ok=no    gcl_ok=no
4119  else  else
4120    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4121  #line 4017 "configure"  #line 4122 "configure"
4122  #include "confdefs.h"  #include "confdefs.h"
4123  #include <alloca.h>  #include <alloca.h>
4124    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
4125  EOF  EOF
4126  if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4127  then  then
4128    :    :
4129  else  else
# Line 4079  if test $gcl_ok = no ; then     echo "$a Line 4184  if test $gcl_ok = no ; then     echo "$a
4184  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
4185  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
4186  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6
4187  echo "configure:4083: checking Checking for buggy gcc version from redhat" >&5  echo "configure:4188: checking Checking for buggy gcc version from redhat" >&5
4188  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
4189     then     then
4190          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26