/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.88 by camm, Fri Nov 1 04:09:33 2002 UTC revision 1.89 by camm, Wed Nov 13 20:28:55 2002 UTC
# Line 28  ac_help="$ac_help Line 28  ac_help="$ac_help
28  ac_help="$ac_help  ac_help="$ac_help
29   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "   --enable-infodir=XXXX will force the use of a INFO_DIR=XXXXX as place to look for info  "
30  ac_help="$ac_help  ac_help="$ac_help
31     --enable-emacsdir=XXXX will manually specify the location for elisp files  "
32    ac_help="$ac_help
33   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images   --enable-dlopen uses dlopen for loading objects, which can then not be retained  in saved images
34          "          "
35  ac_help="$ac_help  ac_help="$ac_help
# Line 656  else Line 658  else
658  fi  fi
659    
660    
661    # Check whether --enable-emacsdir or --disable-emacsdir was given.
662    if test "${enable_emacsdir+set}" = set; then
663      enableval="$enable_emacsdir"
664      EMACS_SITE_LISP=$enableval
665    else
666      EMACS_SITE_LISP="unknown"
667    fi
668    
669    
670  #  #
671  # Host information  # Host information
672  #  #
# Line 687  else { echo "configure: error: can not r Line 698  else { echo "configure: error: can not r
698  fi  fi
699    
700  echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
701  echo "configure:691: checking host system type" >&5  echo "configure:702: checking host system type" >&5
702    
703  host_alias=$host  host_alias=$host
704  case "$host_alias" in  case "$host_alias" in
# Line 1021  echo "$ac_t""use=$use" 1>&6 Line 1032  echo "$ac_t""use=$use" 1>&6
1032  # 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.
1033  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1034  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035  echo "configure:1025: checking for $ac_word" >&5  echo "configure:1036: checking for $ac_word" >&5
1036  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1037    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1038  else  else
# Line 1051  if test -z "$CC"; then Line 1062  if test -z "$CC"; then
1062    # 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.
1063  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1064  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065  echo "configure:1055: checking for $ac_word" >&5  echo "configure:1066: checking for $ac_word" >&5
1066  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1067    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1068  else  else
# Line 1102  fi Line 1113  fi
1113        # 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.
1114  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
1115  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116  echo "configure:1106: checking for $ac_word" >&5  echo "configure:1117: checking for $ac_word" >&5
1117  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1119  else  else
# Line 1134  fi Line 1145  fi
1145  fi  fi
1146    
1147  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
1148  echo "configure:1138: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1149    
1150  ac_ext=c  ac_ext=c
1151  # 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 1145  cross_compiling=$ac_cv_prog_cc_cross Line 1156  cross_compiling=$ac_cv_prog_cc_cross
1156    
1157  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1158    
1159  #line 1149 "configure"  #line 1160 "configure"
1160  #include "confdefs.h"  #include "confdefs.h"
1161    
1162  main(){return(0);}  main(){return(0);}
1163  EOF  EOF
1164  if { (eval echo configure:1154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1165    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1166    # 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.
1167    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1176  if test $ac_cv_prog_cc_works = no; then Line 1187  if test $ac_cv_prog_cc_works = no; then
1187    { 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; }
1188  fi  fi
1189  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
1190  echo "configure:1180: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1191: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1191  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1192  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1193    
1194  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
1195  echo "configure:1185: checking whether we are using GNU C" >&5  echo "configure:1196: checking whether we are using GNU C" >&5
1196  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1197    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1198  else  else
# Line 1190  else Line 1201  else
1201    yes;    yes;
1202  #endif  #endif
1203  EOF  EOF
1204  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1194: \"$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:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1205    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1206  else  else
1207    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1209  ac_test_CFLAGS="${CFLAGS+set}" Line 1220  ac_test_CFLAGS="${CFLAGS+set}"
1220  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1221  CFLAGS=  CFLAGS=
1222  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
1223  echo "configure:1213: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1224: checking whether ${CC-cc} accepts -g" >&5
1224  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1225    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1226  else  else
# Line 1241  else Line 1252  else
1252  fi  fi
1253    
1254  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
1255  echo "configure:1245: checking how to run the C preprocessor" >&5  echo "configure:1256: checking how to run the C preprocessor" >&5
1256  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1257  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1258    CPP=    CPP=
# Line 1256  else Line 1267  else
1267    # 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,
1268    # not just through cpp.    # not just through cpp.
1269    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1270  #line 1260 "configure"  #line 1271 "configure"
1271  #include "confdefs.h"  #include "confdefs.h"
1272  #include <assert.h>  #include <assert.h>
1273  Syntax Error  Syntax Error
1274  EOF  EOF
1275  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276  { (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1279    :    :
# Line 1273  else Line 1284  else
1284    rm -rf conftest*    rm -rf conftest*
1285    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1286    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1287  #line 1277 "configure"  #line 1288 "configure"
1288  #include "confdefs.h"  #include "confdefs.h"
1289  #include <assert.h>  #include <assert.h>
1290  Syntax Error  Syntax Error
1291  EOF  EOF
1292  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1293  { (eval echo configure:1283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1294  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1295  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1296    :    :
# Line 1290  else Line 1301  else
1301    rm -rf conftest*    rm -rf conftest*
1302    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1303    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1304  #line 1294 "configure"  #line 1305 "configure"
1305  #include "confdefs.h"  #include "confdefs.h"
1306  #include <assert.h>  #include <assert.h>
1307  Syntax Error  Syntax Error
1308  EOF  EOF
1309  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1310  { (eval echo configure:1300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1311  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1312  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1313    :    :
# Line 1374  fi Line 1385  fi
1385  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
1386    
1387  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
1388  echo "configure:1378: checking system version (for dynamic loading)" >&5  echo "configure:1389: checking system version (for dynamic loading)" >&5
1389  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
1390    
1391  for ac_prog in gawk nawk awk  for ac_prog in gawk nawk awk
# Line 1382  do Line 1393  do
1393  # 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.
1394  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1395  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396  echo "configure:1386: checking for $ac_word" >&5  echo "configure:1397: checking for $ac_word" >&5
1397  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1398    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1399  else  else
# Line 1418  do Line 1429  do
1429  # 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.
1430  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1431  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432  echo "configure:1422: checking for $ac_word" >&5  echo "configure:1433: checking for $ac_word" >&5
1433  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1434    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1435  else  else
# Line 1482  MP_INLCUDE="" Line 1493  MP_INLCUDE=""
1493  if test $use_gmp = yes ; then  if test $use_gmp = yes ; then
1494    
1495   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
1496  echo "configure:1486: checking use_gmp=yes, doing configure in gmp directory" >&5  echo "configure:1497: checking use_gmp=yes, doing configure in gmp directory" >&5
1497   echo   echo
1498   echo "#"   echo "#"
1499   echo "#"   echo "#"
# Line 1515  echo "configure:1486: checking use_gmp=y Line 1526  echo "configure:1486: checking use_gmp=y
1526   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
1527          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
1528  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
1529  echo "configure:1519: checking for gmp.h" >&5  echo "configure:1530: checking for gmp.h" >&5
1530  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1531    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1532  else  else
1533    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1534  #line 1524 "configure"  #line 1535 "configure"
1535  #include "confdefs.h"  #include "confdefs.h"
1536  #include <gmp.h>  #include <gmp.h>
1537  EOF  EOF
1538  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1539  { (eval echo configure:1529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1540  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1541  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1542    rm -rf conftest*    rm -rf conftest*
# Line 1542  fi Line 1553  fi
1553  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1554    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1555    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6    echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
1556  echo "configure:1546: checking for __gmpz_init in -lgmp" >&5  echo "configure:1557: checking for __gmpz_init in -lgmp" >&5
1557  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
1558  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
1559    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1550  else Line 1561  else
1561    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1562  LIBS="-lgmp  $LIBS"  LIBS="-lgmp  $LIBS"
1563  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1564  #line 1554 "configure"  #line 1565 "configure"
1565  #include "confdefs.h"  #include "confdefs.h"
1566  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1567  /* 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 1561  int main() { Line 1572  int main() {
1572  __gmpz_init()  __gmpz_init()
1573  ; return 0; }  ; return 0; }
1574  EOF  EOF
1575  if { (eval echo configure:1565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1576    rm -rf conftest*    rm -rf conftest*
1577    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1578  else  else
# Line 1607  else Line 1618  else
1618  fi  fi
1619    
1620   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
1621  echo "configure:1611: checking "for size of gmp limbs"" >&5  echo "configure:1622: checking "for size of gmp limbs"" >&5
1622   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1623    mpsize=0    mpsize=0
1624  else  else
1625    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1626  #line 1616 "configure"  #line 1627 "configure"
1627  #include "confdefs.h"  #include "confdefs.h"
1628  #include <stdio.h>  #include <stdio.h>
1629          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1623  else Line 1634  else
1634          return 0;          return 0;
1635          }          }
1636  EOF  EOF
1637  if { (eval echo configure:1627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1638  then  then
1639    mpsize=`cat conftest1`    mpsize=`cat conftest1`
1640  else  else
# Line 1646  EOF Line 1657  EOF
1657   echo "$ac_t""$mpsize" 1>&6   echo "$ac_t""$mpsize" 1>&6
1658    
1659   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6
1660  echo "configure:1650: checking "_SHORT_LIMB"" >&5  echo "configure:1661: checking "_SHORT_LIMB"" >&5
1661   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1662    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1663  else  else
1664    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1665  #line 1655 "configure"  #line 1666 "configure"
1666  #include "confdefs.h"  #include "confdefs.h"
1667  #include <stdio.h>  #include <stdio.h>
1668          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1663  else Line 1674  else
1674          #endif          #endif
1675          }          }
1676  EOF  EOF
1677  if { (eval echo configure:1667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1678  then  then
1679    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
1680  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
# Line 1679  rm -fr conftest* Line 1690  rm -fr conftest*
1690  fi  fi
1691    
1692   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6
1693  echo "configure:1683: checking "_LONG_LONG_LIMB"" >&5  echo "configure:1694: checking "_LONG_LONG_LIMB"" >&5
1694   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1695    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1696  else  else
1697    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1698  #line 1688 "configure"  #line 1699 "configure"
1699  #include "confdefs.h"  #include "confdefs.h"
1700  #include <stdio.h>  #include <stdio.h>
1701          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1696  else Line 1707  else
1707          #endif          #endif
1708          }          }
1709  EOF  EOF
1710  if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1711  then  then
1712    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
1713  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
# Line 1735  fi Line 1746  fi
1746  # Uses ac_ vars as temps to allow command line to override cache and checks.  # Uses ac_ vars as temps to allow command line to override cache and checks.
1747  # --without-x overrides everything else, but does not touch the cache.  # --without-x overrides everything else, but does not touch the cache.
1748  echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
1749  echo "configure:1739: checking for X" >&5  echo "configure:1750: checking for X" >&5
1750    
1751  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
1752  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
# Line 1797  if test "$ac_x_includes" = NO; then Line 1808  if test "$ac_x_includes" = NO; then
1808    
1809    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
1810  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1811  #line 1801 "configure"  #line 1812 "configure"
1812  #include "confdefs.h"  #include "confdefs.h"
1813  #include <$x_direct_test_include>  #include <$x_direct_test_include>
1814  EOF  EOF
1815  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1816  { (eval echo configure:1806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1817  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1818  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1819    rm -rf conftest*    rm -rf conftest*
# Line 1871  if test "$ac_x_libraries" = NO; then Line 1882  if test "$ac_x_libraries" = NO; then
1882    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1883    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
1884  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1885  #line 1875 "configure"  #line 1886 "configure"
1886  #include "confdefs.h"  #include "confdefs.h"
1887    
1888  int main() {  int main() {
1889  ${x_direct_test_function}()  ${x_direct_test_function}()
1890  ; return 0; }  ; return 0; }
1891  EOF  EOF
1892  if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1893    rm -rf conftest*    rm -rf conftest*
1894    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
1895  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 1984  else Line 1995  else
1995      case "`(uname -sr) 2>/dev/null`" in      case "`(uname -sr) 2>/dev/null`" in
1996      "SunOS 5"*)      "SunOS 5"*)
1997        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6        echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1998  echo "configure:1988: checking whether -R must be followed by a space" >&5  echo "configure:1999: checking whether -R must be followed by a space" >&5
1999        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2000        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
2001  #line 1991 "configure"  #line 2002 "configure"
2002  #include "confdefs.h"  #include "confdefs.h"
2003    
2004  int main() {  int main() {
2005    
2006  ; return 0; }  ; return 0; }
2007  EOF  EOF
2008  if { (eval echo configure:1998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2009    rm -rf conftest*    rm -rf conftest*
2010    ac_R_nospace=yes    ac_R_nospace=yes
2011  else  else
# Line 2010  rm -f conftest* Line 2021  rm -f conftest*
2021        else        else
2022          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
2023          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
2024  #line 2014 "configure"  #line 2025 "configure"
2025  #include "confdefs.h"  #include "confdefs.h"
2026    
2027  int main() {  int main() {
2028    
2029  ; return 0; }  ; return 0; }
2030  EOF  EOF
2031  if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2032    rm -rf conftest*    rm -rf conftest*
2033    ac_R_space=yes    ac_R_space=yes
2034  else  else
# Line 2049  rm -f conftest* Line 2060  rm -f conftest*
2060      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And karl@cs.umb.edu says
2061      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
2062      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6      echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2063  echo "configure:2053: checking for dnet_ntoa in -ldnet" >&5  echo "configure:2064: checking for dnet_ntoa in -ldnet" >&5
2064  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2065  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
2066    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2057  else Line 2068  else
2068    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2069  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
2070  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2071  #line 2061 "configure"  #line 2072 "configure"
2072  #include "confdefs.h"  #include "confdefs.h"
2073  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2074  /* 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 2068  int main() { Line 2079  int main() {
2079  dnet_ntoa()  dnet_ntoa()
2080  ; return 0; }  ; return 0; }
2081  EOF  EOF
2082  if { (eval echo configure:2072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2083    rm -rf conftest*    rm -rf conftest*
2084    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2085  else  else
# Line 2090  fi Line 2101  fi
2101    
2102      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2103        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6        echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2104  echo "configure:2094: checking for dnet_ntoa in -ldnet_stub" >&5  echo "configure:2105: checking for dnet_ntoa in -ldnet_stub" >&5
2105  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2106  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
2107    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2098  else Line 2109  else
2109    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2110  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
2111  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2112  #line 2102 "configure"  #line 2113 "configure"
2113  #include "confdefs.h"  #include "confdefs.h"
2114  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2115  /* 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 2109  int main() { Line 2120  int main() {
2120  dnet_ntoa()  dnet_ntoa()
2121  ; return 0; }  ; return 0; }
2122  EOF  EOF
2123  if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2124    rm -rf conftest*    rm -rf conftest*
2125    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2126  else  else
# Line 2138  fi Line 2149  fi
2149      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
2150      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to dickey@clark.net.
2151      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2152  echo "configure:2142: checking for gethostbyname" >&5  echo "configure:2153: checking for gethostbyname" >&5
2153  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2154    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2155  else  else
2156    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2157  #line 2147 "configure"  #line 2158 "configure"
2158  #include "confdefs.h"  #include "confdefs.h"
2159  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2160      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 2166  gethostbyname(); Line 2177  gethostbyname();
2177    
2178  ; return 0; }  ; return 0; }
2179  EOF  EOF
2180  if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2181    rm -rf conftest*    rm -rf conftest*
2182    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
2183  else  else
# Line 2187  fi Line 2198  fi
2198    
2199      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
2200        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2201  echo "configure:2191: checking for gethostbyname in -lnsl" >&5  echo "configure:2202: checking for gethostbyname in -lnsl" >&5
2202  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2203  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
2204    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2195  else Line 2206  else
2206    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2207  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
2208  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2209  #line 2199 "configure"  #line 2210 "configure"
2210  #include "confdefs.h"  #include "confdefs.h"
2211  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2212  /* 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 2206  int main() { Line 2217  int main() {
2217  gethostbyname()  gethostbyname()
2218  ; return 0; }  ; return 0; }
2219  EOF  EOF
2220  if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2221    rm -rf conftest*    rm -rf conftest*
2222    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2223  else  else
# Line 2236  fi Line 2247  fi
2247      # -lsocket must be given before -lnsl if both are needed.      # -lsocket must be given before -lnsl if both are needed.
2248      # We assume that if connect needs -lnsl, so does gethostbyname.      # We assume that if connect needs -lnsl, so does gethostbyname.
2249      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo $ac_n "checking for connect""... $ac_c" 1>&6
2250  echo "configure:2240: checking for connect" >&5  echo "configure:2251: checking for connect" >&5
2251  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2252    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2253  else  else
2254    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2255  #line 2245 "configure"  #line 2256 "configure"
2256  #include "confdefs.h"  #include "confdefs.h"
2257  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2258      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 2264  connect(); Line 2275  connect();
2275    
2276  ; return 0; }  ; return 0; }
2277  EOF  EOF
2278  if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2279    rm -rf conftest*    rm -rf conftest*
2280    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
2281  else  else
# Line 2285  fi Line 2296  fi
2296    
2297      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
2298        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2299  echo "configure:2289: checking for connect in -lsocket" >&5  echo "configure:2300: checking for connect in -lsocket" >&5
2300  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2301  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
2302    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2293  else Line 2304  else
2304    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2305  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2306  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2307  #line 2297 "configure"  #line 2308 "configure"
2308  #include "confdefs.h"  #include "confdefs.h"
2309  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2310  /* 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 2304  int main() { Line 2315  int main() {
2315  connect()  connect()
2316  ; return 0; }  ; return 0; }
2317  EOF  EOF
2318  if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2319    rm -rf conftest*    rm -rf conftest*
2320    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2321  else  else
# Line 2328  fi Line 2339  fi
2339    
2340      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2341      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo $ac_n "checking for remove""... $ac_c" 1>&6
2342  echo "configure:2332: checking for remove" >&5  echo "configure:2343: checking for remove" >&5
2343  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2344    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2345  else  else
2346    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2347  #line 2337 "configure"  #line 2348 "configure"
2348  #include "confdefs.h"  #include "confdefs.h"
2349  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2350      which can conflict with char remove(); below.  */      which can conflict with char remove(); below.  */
# Line 2356  remove(); Line 2367  remove();
2367    
2368  ; return 0; }  ; return 0; }
2369  EOF  EOF
2370  if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2371    rm -rf conftest*    rm -rf conftest*
2372    eval "ac_cv_func_remove=yes"    eval "ac_cv_func_remove=yes"
2373  else  else
# Line 2377  fi Line 2388  fi
2388    
2389      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
2390        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2391  echo "configure:2381: checking for remove in -lposix" >&5  echo "configure:2392: checking for remove in -lposix" >&5
2392  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2393  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
2394    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2385  else Line 2396  else
2396    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2397  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
2398  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2399  #line 2389 "configure"  #line 2400 "configure"
2400  #include "confdefs.h"  #include "confdefs.h"
2401  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2402  /* 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 2396  int main() { Line 2407  int main() {
2407  remove()  remove()
2408  ; return 0; }  ; return 0; }
2409  EOF  EOF
2410  if { (eval echo configure:2400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2411    rm -rf conftest*    rm -rf conftest*
2412    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2413  else  else
# Line 2420  fi Line 2431  fi
2431    
2432      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2433      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo $ac_n "checking for shmat""... $ac_c" 1>&6
2434  echo "configure:2424: checking for shmat" >&5  echo "configure:2435: checking for shmat" >&5
2435  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2436    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2437  else  else
2438    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2439  #line 2429 "configure"  #line 2440 "configure"
2440  #include "confdefs.h"  #include "confdefs.h"
2441  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2442      which can conflict with char shmat(); below.  */      which can conflict with char shmat(); below.  */
# Line 2448  shmat(); Line 2459  shmat();
2459    
2460  ; return 0; }  ; return 0; }
2461  EOF  EOF
2462  if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2463    rm -rf conftest*    rm -rf conftest*
2464    eval "ac_cv_func_shmat=yes"    eval "ac_cv_func_shmat=yes"
2465  else  else
# Line 2469  fi Line 2480  fi
2480    
2481      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
2482        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2483  echo "configure:2473: checking for shmat in -lipc" >&5  echo "configure:2484: checking for shmat in -lipc" >&5
2484  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2485  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
2486    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2477  else Line 2488  else
2488    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2489  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
2490  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2491  #line 2481 "configure"  #line 2492 "configure"
2492  #include "confdefs.h"  #include "confdefs.h"
2493  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2494  /* 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 2488  int main() { Line 2499  int main() {
2499  shmat()  shmat()
2500  ; return 0; }  ; return 0; }
2501  EOF  EOF
2502  if { (eval echo configure:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2503    rm -rf conftest*    rm -rf conftest*
2504    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2505  else  else
# Line 2521  fi Line 2532  fi
2532    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
2533    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2534    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2535  echo "configure:2525: checking for IceConnectionNumber in -lICE" >&5  echo "configure:2536: checking for IceConnectionNumber in -lICE" >&5
2536  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2537  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
2538    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2529  else Line 2540  else
2540    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2541  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2542  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2543  #line 2533 "configure"  #line 2544 "configure"
2544  #include "confdefs.h"  #include "confdefs.h"
2545  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2546  /* 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 2540  int main() { Line 2551  int main() {
2551  IceConnectionNumber()  IceConnectionNumber()
2552  ; return 0; }  ; return 0; }
2553  EOF  EOF
2554  if { (eval echo configure:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2555    rm -rf conftest*    rm -rf conftest*
2556    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2557  else  else
# Line 2570  echo $X_EXTRA_LIBS Line 2581  echo $X_EXTRA_LIBS
2581  echo $X_PRE_LIBS  echo $X_PRE_LIBS
2582    
2583  miss=0  miss=0
2584  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
2585  echo "configure:2575: checking for main in -lXaw" >&5  echo "configure:2586: checking for main in -lXmu" >&5
2586  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
2587  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
2588    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2589  else  else
2590    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2591  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
2592  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2593  #line 2583 "configure"  #line 2594 "configure"
2594  #include "confdefs.h"  #include "confdefs.h"
2595    
2596  int main() {  int main() {
2597  main()  main()
2598  ; return 0; }  ; return 0; }
2599  EOF  EOF
2600  if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2601    rm -rf conftest*    rm -rf conftest*
2602    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2603  else  else
# Line 2601  LIBS="$ac_save_LIBS" Line 2612  LIBS="$ac_save_LIBS"
2612  fi  fi
2613  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2614    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2615    X_LIBS="$X_LIBS -lXaw"    X_LIBS="$X_LIBS -lXmu"
2616  else  else
2617    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2618  miss=1  miss=1
2619  fi  fi
2620    
2621  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
2622  echo "configure:2612: checking for main in -lXmu" >&5  echo "configure:2623: checking for main in -lXt" >&5
2623  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
2624  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
2625    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2626  else  else
2627    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2628  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
2629  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2630  #line 2620 "configure"  #line 2631 "configure"
2631  #include "confdefs.h"  #include "confdefs.h"
2632    
2633  int main() {  int main() {
2634  main()  main()
2635  ; return 0; }  ; return 0; }
2636  EOF  EOF
2637  if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2638    rm -rf conftest*    rm -rf conftest*
2639    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2640  else  else
# Line 2638  LIBS="$ac_save_LIBS" Line 2649  LIBS="$ac_save_LIBS"
2649  fi  fi
2650  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2651    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2652    X_LIBS="$X_LIBS -lXmu"    X_LIBS="$X_LIBS -lXt"
2653  else  else
2654    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2655  miss=1  miss=1
2656  fi  fi
2657    
2658  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
2659  echo "configure:2649: checking for main in -lXt" >&5  echo "configure:2660: checking for main in -lXext" >&5
2660  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
2661  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
2662    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2663  else  else
2664    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2665  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
2666  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2667  #line 2657 "configure"  #line 2668 "configure"
2668  #include "confdefs.h"  #include "confdefs.h"
2669    
2670  int main() {  int main() {
2671  main()  main()
2672  ; return 0; }  ; return 0; }
2673  EOF  EOF
2674  if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2675    rm -rf conftest*    rm -rf conftest*
2676    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2677  else  else
# Line 2675  LIBS="$ac_save_LIBS" Line 2686  LIBS="$ac_save_LIBS"
2686  fi  fi
2687  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2688    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2689    X_LIBS="$X_LIBS -lXt"    X_LIBS="$X_LIBS -lXext"
2690  else  else
2691    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2692  miss=1  miss=1
2693  fi  fi
2694    
2695  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
2696  echo "configure:2686: checking for main in -lXext" >&5  echo "configure:2697: checking for main in -lXaw" >&5
2697  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
2698  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
2699    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2700  else  else
2701    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2702  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
2703  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2704  #line 2694 "configure"  #line 2705 "configure"
2705  #include "confdefs.h"  #include "confdefs.h"
2706    
2707  int main() {  int main() {
2708  main()  main()
2709  ; return 0; }  ; return 0; }
2710  EOF  EOF
2711  if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2712    rm -rf conftest*    rm -rf conftest*
2713    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2714  else  else
# Line 2712  LIBS="$ac_save_LIBS" Line 2723  LIBS="$ac_save_LIBS"
2723  fi  fi
2724  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2725    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2726    X_LIBS="$X_LIBS -lXext"    X_LIBS="$X_LIBS -lXaw"
2727  else  else
2728    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2729  miss=1  miss=1
2730  fi  fi
2731    
2732  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
2733  echo "configure:2723: checking for main in -lX11" >&5  echo "configure:2734: checking for main in -lX11" >&5
2734  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
2735  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
2736    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2727  else Line 2738  else
2738    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2739  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
2740  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2741  #line 2731 "configure"  #line 2742 "configure"
2742  #include "confdefs.h"  #include "confdefs.h"
2743    
2744  int main() {  int main() {
2745  main()  main()
2746  ; return 0; }  ; return 0; }
2747  EOF  EOF
2748  if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2749    rm -rf conftest*    rm -rf conftest*
2750    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2751  else  else
# Line 2773  fi Line 2784  fi
2784  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
2785    
2786          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2787  echo "configure:2777: checking for dlopen in -ldl" >&5  echo "configure:2788: checking for dlopen in -ldl" >&5
2788  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2789  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
2790    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2781  else Line 2792  else
2792    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2793  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
2794  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2795  #line 2785 "configure"  #line 2796 "configure"
2796  #include "confdefs.h"  #include "confdefs.h"
2797  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2798  /* 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 2792  int main() { Line 2803  int main() {
2803  dlopen()  dlopen()
2804  ; return 0; }  ; return 0; }
2805  EOF  EOF
2806  if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2807    rm -rf conftest*    rm -rf conftest*
2808    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2809  else  else
# Line 2828  fi Line 2839  fi
2839  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
2840          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
2841  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
2842  echo "configure:2832: checking for bfd.h" >&5  echo "configure:2843: checking for bfd.h" >&5
2843  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2844    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2845  else  else
2846    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2847  #line 2837 "configure"  #line 2848 "configure"
2848  #include "confdefs.h"  #include "confdefs.h"
2849  #include <bfd.h>  #include <bfd.h>
2850  EOF  EOF
2851  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2852  { (eval echo configure:2842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2853  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2854  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2855    rm -rf conftest*    rm -rf conftest*
# Line 2855  fi Line 2866  fi
2866  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2867    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2868    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
2869  echo "configure:2859: checking for bfd_init in -lbfd" >&5  echo "configure:2870: checking for bfd_init in -lbfd" >&5
2870  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
2871  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
2872    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2863  else Line 2874  else
2874    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2875  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
2876  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2877  #line 2867 "configure"  #line 2878 "configure"
2878  #include "confdefs.h"  #include "confdefs.h"
2879  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2880  /* 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 2874  int main() { Line 2885  int main() {
2885  bfd_init()  bfd_init()
2886  ; return 0; }  ; return 0; }
2887  EOF  EOF
2888  if { (eval echo configure:2878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2889    rm -rf conftest*    rm -rf conftest*
2890    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2891  else  else
# Line 2893  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 2904  if eval "test \"`echo '$ac_cv_lib_'$ac_l
2904                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
2905                  #                  #
2906                          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
2907  echo "configure:2897: checking if need to define CONST for bfd" >&5  echo "configure:2908: checking if need to define CONST for bfd" >&5
2908                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
2909    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
2910  else  else
2911    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2912  #line 2902 "configure"  #line 2913 "configure"
2913  #include "confdefs.h"  #include "confdefs.h"
2914  #define IN_GCC  #define IN_GCC
2915                                      #include <bfd.h>                                      #include <bfd.h>
2916                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
2917  EOF  EOF
2918  if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2919  then  then
2920    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2921  else  else
# Line 2915  else Line 2926  else
2926    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
2927  else  else
2928    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2929  #line 2919 "configure"  #line 2930 "configure"
2930  #include "confdefs.h"  #include "confdefs.h"
2931  #define CONST const  #define CONST const
2932                                              #define IN_GCC                                              #define IN_GCC
2933                                              #include <bfd.h>                                              #include <bfd.h>
2934                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
2935  EOF  EOF
2936  if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2937  then  then
2938    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
2939                                          cat >> confdefs.h <<\EOF                                          cat >> confdefs.h <<\EOF
# Line 3012  fi Line 3023  fi
3023  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
3024    
3025  echo $ac_n "checking size of long *""... $ac_c" 1>&6  echo $ac_n "checking size of long *""... $ac_c" 1>&6
3026  echo "configure:3016: checking size of long *" >&5  echo "configure:3027: checking size of long *" >&5
3027  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long_p'+set}'`\" = set"; then
3028    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3029  else  else
# Line 3020  else Line 3031  else
3031    ac_cv_sizeof_long_p=0    ac_cv_sizeof_long_p=0
3032  else  else
3033    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3034  #line 3024 "configure"  #line 3035 "configure"
3035  #include "confdefs.h"  #include "confdefs.h"
3036  #include <stdio.h>  #include <stdio.h>
3037  #include <sys/types.h>  #include <sys/types.h>
# Line 3032  main() Line 3043  main()
3043    exit(0);    exit(0);
3044  }  }
3045  EOF  EOF
3046  if { (eval echo configure:3036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3047  then  then
3048    ac_cv_sizeof_long_p=`cat conftestval`    ac_cv_sizeof_long_p=`cat conftestval`
3049  else  else
# Line 3056  for ac_hdr in endian.h Line 3067  for ac_hdr in endian.h
3067  do  do
3068  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3069  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3070  echo "configure:3060: checking for $ac_hdr" >&5  echo "configure:3071: checking for $ac_hdr" >&5
3071  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3072    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3073  else  else
3074    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3075  #line 3065 "configure"  #line 3076 "configure"
3076  #include "confdefs.h"  #include "confdefs.h"
3077  #include <$ac_hdr>  #include <$ac_hdr>
3078  EOF  EOF
3079  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3080  { (eval echo configure:3070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3081  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3082  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3083    rm -rf conftest*    rm -rf conftest*
# Line 3087  if eval "test \"`echo '$ac_cv_header_'$a Line 3098  if eval "test \"`echo '$ac_cv_header_'$a
3098  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
3099  EOF  EOF
3100   echo $ac_n "checking "endianness"""... $ac_c" 1>&6   echo $ac_n "checking "endianness"""... $ac_c" 1>&6
3101  echo "configure:3091: checking "endianness"" >&5  echo "configure:3102: checking "endianness"" >&5
3102          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3103    echo "$ac_t""big" 1>&6    echo "$ac_t""big" 1>&6
3104  else  else
3105    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3106  #line 3096 "configure"  #line 3107 "configure"
3107  #include "confdefs.h"  #include "confdefs.h"
3108  #define __ARMEB__  #define __ARMEB__
3109                  #include <endian.h>                  #include <endian.h>
3110                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
3111  EOF  EOF
3112  if { (eval echo configure:3102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3113  then  then
3114    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3115  #define LITTLE_END 1  #define LITTLE_END 1
# Line 3121  done Line 3132  done
3132    
3133    
3134  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
3135  echo "configure:3125: checking "finding DBEGIN"" >&5  echo "configure:3136: checking "finding DBEGIN"" >&5
3136  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3137    dbegin=0    dbegin=0
3138  else  else
3139    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3140  #line 3130 "configure"  #line 3141 "configure"
3141  #include "confdefs.h"  #include "confdefs.h"
3142  #include <stdio.h>  #include <stdio.h>
3143              #include <stdlib.h>              #include <stdlib.h>
# Line 3143  main() Line 3154  main()
3154    return 0;    return 0;
3155  }  }
3156  EOF  EOF
3157  if { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3158  then  then
3159    dbegin=`cat conftest1`    dbegin=`cat conftest1`
3160  else  else
# Line 3165  echo "$ac_t""got $dbegin" 1>&6 Line 3176  echo "$ac_t""got $dbegin" 1>&6
3176    
3177    
3178  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
3179  echo "configure:3169: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:3180: checking "finding CSTACK_ADDRESS"" >&5
3180  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3181    cstack_address=0    cstack_address=0
3182  else  else
3183    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3184  #line 3174 "configure"  #line 3185 "configure"
3185  #include "confdefs.h"  #include "confdefs.h"
3186  #include <stdio.h>  #include <stdio.h>
3187  main()  main()
# Line 3182  main() Line 3193  main()
3193    return 0;    return 0;
3194  }  }
3195  EOF  EOF
3196  if { (eval echo configure:3186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3197  then  then
3198    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
3199  else  else
# Line 3204  echo "$ac_t""got $cstack_address" 1>&6 Line 3215  echo "$ac_t""got $cstack_address" 1>&6
3215    
3216    
3217  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
3218  echo "configure:3208: checking "sizeof long long int"" >&5  echo "configure:3219: checking "sizeof long long int"" >&5
3219  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3220    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3221    
3222  else  else
3223    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3224  #line 3214 "configure"  #line 3225 "configure"
3225  #include "confdefs.h"  #include "confdefs.h"
3226  #include <stdio.h>  #include <stdio.h>
3227  main()  main()
# Line 3220  main() Line 3231  main()
3231  }  }
3232    
3233  EOF  EOF
3234  if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3235  then  then
3236    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3237  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 3273  fi Line 3284  fi
3284    
3285  # pagewidth  # pagewidth
3286  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
3287  echo "configure:3277: checking for pagewidth" >&5  echo "configure:3288: checking for pagewidth" >&5
3288  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3289    PAGEWIDTH=0    PAGEWIDTH=0
3290  else  else
3291    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3292  #line 3282 "configure"  #line 3293 "configure"
3293  #include "confdefs.h"  #include "confdefs.h"
3294  #include <stdio.h>  #include <stdio.h>
3295              #include <unistd.h>              #include <unistd.h>
# Line 3288  int main() {size_t i=getpagesize(),j; Line 3299  int main() {size_t i=getpagesize(),j;
3299              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
3300              return 0;}              return 0;}
3301  EOF  EOF
3302  if { (eval echo configure:3292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3303  then  then
3304    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
3305  else  else
# Line 3315  EOF Line 3326  EOF
3326  for ac_func in getcwd  for ac_func in getcwd
3327  do  do
3328  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3329  echo "configure:3319: checking for $ac_func" >&5  echo "configure:3330: checking for $ac_func" >&5
3330  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3331    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3332  else  else
3333    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3334  #line 3324 "configure"  #line 3335 "configure"
3335  #include "confdefs.h"  #include "confdefs.h"
3336  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3337      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 3343  $ac_func(); Line 3354  $ac_func();
3354    
3355  ; return 0; }  ; return 0; }
3356  EOF  EOF
3357  if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3358    rm -rf conftest*    rm -rf conftest*
3359    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
3360  else  else
# Line 3370  done Line 3381  done
3381  for ac_func in getwd  for ac_func in getwd
3382  do  do
3383  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3384  echo "configure:3374: checking for $ac_func" >&5  echo "configure:3385: checking for $ac_func" >&5
3385  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3386    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3387  else  else
3388    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3389  #line 3379 "configure"  #line 3390 "configure"
3390  #include "confdefs.h"  #include "confdefs.h"
3391  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3392      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 3398  $ac_func(); Line 3409  $ac_func();
3409    
3410  ; return 0; }  ; return 0; }
3411  EOF  EOF
3412  if { (eval echo configure:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413    rm -rf conftest*    rm -rf conftest*
3414    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
3415  else  else
# Line 3423  fi Line 3434  fi
3434  done  done
3435    
3436  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
3437  echo "configure:3427: checking for uname" >&5  echo "configure:3438: checking for uname" >&5
3438  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
3439    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3440  else  else
3441    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3442  #line 3432 "configure"  #line 3443 "configure"
3443  #include "confdefs.h"  #include "confdefs.h"
3444  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3445      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 3451  uname(); Line 3462  uname();
3462    
3463  ; return 0; }  ; return 0; }
3464  EOF  EOF
3465  if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3466    rm -rf conftest*    rm -rf conftest*
3467    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
3468  else  else
# Line 3475  EOF Line 3486  EOF
3486  fi  fi
3487    
3488  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3489  echo "configure:3479: checking for gettimeofday" >&5  echo "configure:3490: checking for gettimeofday" >&5
3490  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3491    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3492  else  else
3493    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3494  #line 3484 "configure"  #line 3495 "configure"
3495  #include "confdefs.h"  #include "confdefs.h"
3496  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3497      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 3503  gettimeofday(); Line 3514  gettimeofday();
3514    
3515  ; return 0; }  ; return 0; }
3516  EOF  EOF
3517  if { (eval echo configure:3507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3518    rm -rf conftest*    rm -rf conftest*
3519    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
3520  else  else
# Line 3532  for ac_hdr in sys/ioctl.h Line 3543  for ac_hdr in sys/ioctl.h
3543  do  do
3544  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3545  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3546  echo "configure:3536: checking for $ac_hdr" >&5  echo "configure:3547: checking for $ac_hdr" >&5
3547  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3548    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3549  else  else
3550    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3551  #line 3541 "configure"  #line 3552 "configure"
3552  #include "confdefs.h"  #include "confdefs.h"
3553  #include <$ac_hdr>  #include <$ac_hdr>
3554  EOF  EOF
3555  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3556  { (eval echo configure:3546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3557  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3558  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3559    rm -rf conftest*    rm -rf conftest*
# Line 3582  done Line 3593  done
3593  #--------------------------------------------------------------------  #--------------------------------------------------------------------
3594    
3595  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
3596  echo "configure:3586: checking for BSDgettimeofday" >&5  echo "configure:3597: checking for BSDgettimeofday" >&5
3597  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
3598    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3599  else  else
3600    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3601  #line 3591 "configure"  #line 3602 "configure"
3602  #include "confdefs.h"  #include "confdefs.h"
3603  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3604      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 3610  BSDgettimeofday(); Line 3621  BSDgettimeofday();
3621    
3622  ; return 0; }  ; return 0; }
3623  EOF  EOF
3624  if { (eval echo configure:3614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3625    rm -rf conftest*    rm -rf conftest*
3626    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
3627  else  else
# Line 3631  EOF Line 3642  EOF
3642  else  else
3643    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3644  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3645  echo "configure:3635: checking for gettimeofday" >&5  echo "configure:3646: checking for gettimeofday" >&5
3646  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3647    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3648  else  else
3649    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3650  #line 3640 "configure"  #line 3651 "configure"
3651  #include "confdefs.h"  #include "confdefs.h"
3652  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3653      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 3659  gettimeofday(); Line 3670  gettimeofday();
3670    
3671  ; return 0; }  ; return 0; }
3672  EOF  EOF
3673  if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3674    rm -rf conftest*    rm -rf conftest*
3675    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
3676  else  else
# Line 3686  fi Line 3697  fi
3697    
3698    
3699  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
3700  echo "configure:3690: checking for gettimeofday declaration" >&5  echo "configure:3701: checking for gettimeofday declaration" >&5
3701    
3702  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3703  #line 3693 "configure"  #line 3704 "configure"
3704  #include "confdefs.h"  #include "confdefs.h"
3705  #include <sys/time.h>  #include <sys/time.h>
3706  EOF  EOF
# Line 3710  rm -f conftest* Line 3721  rm -f conftest*
3721    
3722    
3723  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
3724  echo "configure:3714: checking for sin in -lm" >&5  echo "configure:3725: checking for sin in -lm" >&5
3725  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
3726  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
3727    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3718  else Line 3729  else
3729    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3730  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
3731  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3732  #line 3722 "configure"  #line 3733 "configure"
3733  #include "confdefs.h"  #include "confdefs.h"
3734  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3735  /* 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 3729  int main() { Line 3740  int main() {
3740  sin()  sin()
3741  ; return 0; }  ; return 0; }
3742  EOF  EOF
3743  if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3744    rm -rf conftest*    rm -rf conftest*
3745    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3746  else  else
# Line 3751  true Line 3762  true
3762  fi  fi
3763    
3764  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
3765  echo "configure:3755: checking for main in -lmingwex" >&5  echo "configure:3766: checking for main in -lmingwex" >&5
3766  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
3767  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
3768    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3759  else Line 3770  else
3770    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3771  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
3772  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3773  #line 3763 "configure"  #line 3774 "configure"
3774  #include "confdefs.h"  #include "confdefs.h"
3775    
3776  int main() {  int main() {
3777  main()  main()
3778  ; return 0; }  ; return 0; }
3779  EOF  EOF
3780  if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781    rm -rf conftest*    rm -rf conftest*
3782    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3783  else  else
# Line 3795  for ac_hdr in math.h Line 3806  for ac_hdr in math.h
3806  do  do
3807  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3808  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3809  echo "configure:3799: checking for $ac_hdr" >&5  echo "configure:3810: checking for $ac_hdr" >&5
3810  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3811    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3812  else  else
3813    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3814  #line 3804 "configure"  #line 3815 "configure"
3815  #include "confdefs.h"  #include "confdefs.h"
3816  #include <$ac_hdr>  #include <$ac_hdr>
3817  EOF  EOF
3818  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3819  { (eval echo configure:3809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3820  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3821  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3822    rm -rf conftest*    rm -rf conftest*
# Line 3842  for ac_hdr in values.h Line 3853  for ac_hdr in values.h
3853  do  do
3854  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3855  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3856  echo "configure:3846: checking for $ac_hdr" >&5  echo "configure:3857: checking for $ac_hdr" >&5
3857  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3858    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3859  else  else
3860    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3861  #line 3851 "configure"  #line 3862 "configure"
3862  #include "confdefs.h"  #include "confdefs.h"
3863  #include <$ac_hdr>  #include <$ac_hdr>
3864  EOF  EOF
3865  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3866  { (eval echo configure:3856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3867  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3868  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3869    rm -rf conftest*    rm -rf conftest*
# Line 3889  for ac_hdr in float.h Line 3900  for ac_hdr in float.h
3900  do  do
3901  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3902  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3903  echo "configure:3893: checking for $ac_hdr" >&5  echo "configure:3904: checking for $ac_hdr" >&5
3904  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3905    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3906  else  else
3907    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3908  #line 3898 "configure"  #line 3909 "configure"
3909  #include "confdefs.h"  #include "confdefs.h"
3910  #include <$ac_hdr>  #include <$ac_hdr>
3911  EOF  EOF
3912  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3913  { (eval echo configure:3903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3914  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3915  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3916    rm -rf conftest*    rm -rf conftest*
# Line 3935  done Line 3946  done
3946  # test makes sense.  CM  # test makes sense.  CM
3947  #  #
3948  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
3949  echo "configure:3939: checking for isnormal" >&5  echo "configure:3950: checking for isnormal" >&5
3950  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3951    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
3952  else  else
3953    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3954  #line 3944 "configure"  #line 3955 "configure"
3955  #include "confdefs.h"  #include "confdefs.h"
3956  #define _GNU_SOURCE  #define _GNU_SOURCE
3957              #include <math.h>              #include <math.h>
# Line 3949  else Line 3960  else
3960                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
3961                  }                  }
3962  EOF  EOF
3963  if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3964  then  then
3965    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3966  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 3960  else Line 3971  else
3971    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
3972    rm -fr conftest*    rm -fr conftest*
3973    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
3974  echo "configure:3964: checking for fpclass in ieeefp.h" >&5  echo "configure:3975: checking for fpclass in ieeefp.h" >&5
3975                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
3976    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
3977  else  else
3978    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3979  #line 3969 "configure"  #line 3980 "configure"
3980  #include "confdefs.h"  #include "confdefs.h"
3981  #include <ieeefp.h>  #include <ieeefp.h>
3982                              int main() {                              int main() {
# Line 3973  else Line 3984  else
3984                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
3985                                  }                                  }
3986  EOF  EOF
3987  if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3988  then  then
3989    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3990  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 3995  fi Line 4006  fi
4006    
4007    
4008  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
4009  echo "configure:3999: checking for isfinite" >&5  echo "configure:4010: checking for isfinite" >&5
4010  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4011    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
4012  else  else
4013    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4014  #line 4004 "configure"  #line 4015 "configure"
4015  #include "confdefs.h"  #include "confdefs.h"
4016  #define _GNU_SOURCE  #define _GNU_SOURCE
4017              #include <math.h>              #include <math.h>
# Line 4009  else Line 4020  else
4020                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
4021                  }                  }
4022  EOF  EOF
4023  if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4024  then  then
4025    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4026  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 4020  else Line 4031  else
4031    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4032    rm -fr conftest*    rm -fr conftest*
4033    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
4034  echo "configure:4024: checking for finite()" >&5  echo "configure:4035: checking for finite()" >&5
4035                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4036    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
4037  else  else
4038    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4039  #line 4029 "configure"  #line 4040 "configure"
4040  #include "confdefs.h"  #include "confdefs.h"
4041  #include <math.h>  #include <math.h>
4042                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 4034  else Line 4045  else
4045                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
4046                                  }                                  }
4047  EOF  EOF
4048  if { (eval echo configure:4038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4049  then  then
4050    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4051  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 4075  fi Line 4086  fi
4086  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
4087  #--------------------------------------------------------------------  #--------------------------------------------------------------------
4088  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
4089  echo "configure:4079: checking for sockets" >&5  echo "configure:4090: checking for sockets" >&5
4090  tcl_checkBoth=0  tcl_checkBoth=0
4091  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
4092  echo "configure:4082: checking for connect" >&5  echo "configure:4093: checking for connect" >&5
4093  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4094    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4095  else  else
4096    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4097  #line 4087 "configure"  #line 4098 "configure"
4098  #include "confdefs.h"  #include "confdefs.h"
4099  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4100      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 4106  connect(); Line 4117  connect();
4117    
4118  ; return 0; }  ; return 0; }
4119  EOF  EOF
4120  if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4121    rm -rf conftest*    rm -rf conftest*
4122    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
4123  else  else
# Line 4128  fi Line 4139  fi
4139    
4140  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
4141      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4142  echo "configure:4132: checking for main in -lsocket" >&5  echo "configure:4143: checking for main in -lsocket" >&5
4143  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4144  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
4145    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4136  else Line 4147  else
4147    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4148  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
4149  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4150  #line 4140 "configure"  #line 4151 "configure"
4151  #include "confdefs.h"  #include "confdefs.h"
4152    
4153  int main() {  int main() {
4154  main()  main()
4155  ; return 0; }  ; return 0; }
4156  EOF  EOF
4157  if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4158    rm -rf conftest*    rm -rf conftest*
4159    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4160  else  else
# Line 4171  if test "$tcl_checkBoth" = 1; then Line 4182  if test "$tcl_checkBoth" = 1; then
4182      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
4183      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
4184      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
4185  echo "configure:4175: checking for accept" >&5  echo "configure:4186: checking for accept" >&5
4186  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4187    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4188  else  else
4189    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4190  #line 4180 "configure"  #line 4191 "configure"
4191  #include "confdefs.h"  #include "confdefs.h"
4192  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4193      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 4199  accept(); Line 4210  accept();
4210    
4211  ; return 0; }  ; return 0; }
4212  EOF  EOF
4213  if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4214    rm -rf conftest*    rm -rf conftest*
4215    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
4216  else  else
# Line 4221  fi Line 4232  fi
4232    
4233  fi  fi
4234  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4235  echo "configure:4225: checking for gethostbyname" >&5  echo "configure:4236: checking for gethostbyname" >&5
4236  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4237    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4238  else  else
4239    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4240  #line 4230 "configure"  #line 4241 "configure"
4241  #include "confdefs.h"  #include "confdefs.h"
4242  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4243      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 4249  gethostbyname(); Line 4260  gethostbyname();
4260    
4261  ; return 0; }  ; return 0; }
4262  EOF  EOF
4263  if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264    rm -rf conftest*    rm -rf conftest*
4265    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
4266  else  else
# Line 4267  if eval "test \"`echo '$ac_cv_func_'geth Line 4278  if eval "test \"`echo '$ac_cv_func_'geth
4278  else  else
4279    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
4280  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4281  echo "configure:4271: checking for main in -lnsl" >&5  echo "configure:4282: checking for main in -lnsl" >&5
4282  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4283  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
4284    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4275  else Line 4286  else
4286    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4287  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4288  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4289  #line 4279 "configure"  #line 4290 "configure"
4290  #include "confdefs.h"  #include "confdefs.h"
4291    
4292  int main() {  int main() {
4293  main()  main()
4294  ; return 0; }  ; return 0; }
4295  EOF  EOF
4296  if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4297    rm -rf conftest*    rm -rf conftest*
4298    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4299  else  else
# Line 4307  fi Line 4318  fi
4318    
4319  if test "$enable_readline" = "yes" ; then  if test "$enable_readline" = "yes" ; then
4320          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6          echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
4321  echo "configure:4311: checking for main in -lreadline" >&5  echo "configure:4322: checking for main in -lreadline" >&5
4322  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
4323  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
4324    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4315  else Line 4326  else
4326    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4327  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
4328  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4329  #line 4319 "configure"  #line 4330 "configure"
4330  #include "confdefs.h"  #include "confdefs.h"
4331    
4332  int main() {  int main() {
4333  main()  main()
4334  ; return 0; }  ; return 0; }
4335  EOF  EOF
4336  if { (eval echo configure:4326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4337    rm -rf conftest*    rm -rf conftest*
4338    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4339  else  else
# Line 4354  fi Line 4365  fi
4365    
4366    
4367  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
4368  echo "configure:4358: checking For network code for nsocket.c" >&5  echo "configure:4369: checking For network code for nsocket.c" >&5
4369  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4370  #line 4360 "configure"  #line 4371 "configure"
4371  #include "confdefs.h"  #include "confdefs.h"
4372    
4373  #include <sys/time.h>  #include <sys/time.h>
# Line 4383  int main() { Line 4394  int main() {
4394                    
4395  ; return 0; }  ; return 0; }
4396  EOF  EOF
4397  if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4398    rm -rf conftest*    rm -rf conftest*
4399    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4400  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 4400  rm -f conftest* Line 4411  rm -f conftest*
4411    
4412    
4413  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
4414  echo "configure:4404: checking check for listen using fcntl" >&5  echo "configure:4415: checking check for listen using fcntl" >&5
4415  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4416  #line 4406 "configure"  #line 4417 "configure"
4417  #include "confdefs.h"  #include "confdefs.h"
4418  #include <stdio.h>  #include <stdio.h>
4419  #include <fcntl.h>  #include <fcntl.h>
# Line 4415  FILE *fp=fopen("configure.in","r"); Line 4426  FILE *fp=fopen("configure.in","r");
4426    
4427  ; return 0; }  ; return 0; }
4428  EOF  EOF
4429  if { (eval echo configure:4419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4430    rm -rf conftest*    rm -rf conftest*
4431    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4432  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 4434  rm -f conftest* Line 4445  rm -f conftest*
4445    
4446    
4447  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
4448  echo "configure:4438: checking for profil" >&5  echo "configure:4449: checking for profil" >&5
4449  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
4450    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4451  else  else
4452    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4453  #line 4443 "configure"  #line 4454 "configure"
4454  #include "confdefs.h"  #include "confdefs.h"
4455  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4456      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 4462  profil(); Line 4473  profil();
4473    
4474  ; return 0; }  ; return 0; }
4475  EOF  EOF
4476  if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4477    rm -rf conftest*    rm -rf conftest*
4478    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
4479  else  else
# Line 4487  fi Line 4498  fi
4498    
4499    
4500  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
4501  echo "configure:4491: checking for setenv" >&5  echo "configure:4502: checking for setenv" >&5
4502  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
4503    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4504  else  else
4505    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4506  #line 4496 "configure"  #line 4507 "configure"
4507  #include "confdefs.h"  #include "confdefs.h"
4508  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4509      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 4515  setenv(); Line 4526  setenv();
4526    
4527  ; return 0; }  ; return 0; }
4528  EOF  EOF
4529  if { (eval echo configure:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4530    rm -rf conftest*    rm -rf conftest*
4531    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
4532  else  else
# Line 4541  fi Line 4552  fi
4552    
4553  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
4554  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
4555  echo "configure:4545: checking for putenv" >&5  echo "configure:4556: checking for putenv" >&5
4556  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
4557    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4558  else  else
4559    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4560  #line 4550 "configure"  #line 4561 "configure"
4561  #include "confdefs.h"  #include "confdefs.h"
4562  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4563      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 4569  putenv(); Line 4580  putenv();
4580    
4581  ; return 0; }  ; return 0; }
4582  EOF  EOF
4583  if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4584    rm -rf conftest*    rm -rf conftest*
4585    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
4586  else  else
# Line 4595  fi Line 4606  fi
4606  fi  fi
4607    
4608  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
4609  echo "configure:4599: checking for _cleanup" >&5  echo "configure:4610: checking for _cleanup" >&5
4610  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
4611    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4612  else  else
4613    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4614  #line 4604 "configure"  #line 4615 "configure"
4615  #include "confdefs.h"  #include "confdefs.h"
4616  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4617      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 4623  _cleanup(); Line 4634  _cleanup();
4634    
4635  ; return 0; }  ; return 0; }
4636  EOF  EOF
4637  if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638    rm -rf conftest*    rm -rf conftest*
4639    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
4640  else  else
# Line 4649  fi Line 4660  fi
4660  gcl_ok=no  gcl_ok=no
4661    
4662  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4663  #line 4653 "configure"  #line 4664 "configure"
4664  #include "confdefs.h"  #include "confdefs.h"
4665  #include <ctype.h>  #include <ctype.h>
4666  EOF  EOF
# Line 4677  fi Line 4688  fi
4688    
4689  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
4690  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
4691  echo "configure:4681: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:4692: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
4692    
4693  case $system in  case $system in
4694         OSF*)         OSF*)
# Line 4708  esac Line 4719  esac
4719    
4720    
4721  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
4722  echo "configure:4712: checking check for SV_ONSTACK" >&5  echo "configure:4723: checking check for SV_ONSTACK" >&5
4723  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4724  #line 4714 "configure"  #line 4725 "configure"
4725  #include "confdefs.h"  #include "confdefs.h"
4726  #include <signal.h>  #include <signal.h>
4727  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 4719  int main() { Line 4730  int main() {
4730    
4731  ; return 0; }  ; return 0; }
4732  EOF  EOF
4733  if { (eval echo configure:4723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4734    rm -rf conftest*    rm -rf conftest*
4735    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4736  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 4736  fi Line 4747  fi
4747  rm -f conftest*  rm -f conftest*
4748    
4749  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
4750  echo "configure:4740: checking check for SIGSYS" >&5  echo "configure:4751: checking check for SIGSYS" >&5
4751  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4752  #line 4742 "configure"  #line 4753 "configure"
4753  #include "confdefs.h"  #include "confdefs.h"
4754  #include <signal.h>  #include <signal.h>
4755  int joe=SIGSYS;  int joe=SIGSYS;
# Line 4747  int main() { Line 4758  int main() {
4758    
4759  ; return 0; }  ; return 0; }
4760  EOF  EOF
4761  if { (eval echo configure:4751: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4762    rm -rf conftest*    rm -rf conftest*
4763    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4764  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 4765  rm -f conftest* Line 4776  rm -f conftest*
4776    
4777    
4778  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
4779  echo "configure:4769: checking check for SIGEMT" >&5  echo "configure:4780: checking check for SIGEMT" >&5
4780  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4781  #line 4771 "configure"  #line 4782 "configure"
4782  #include "confdefs.h"  #include "confdefs.h"
4783  #include <signal.h>  #include <signal.h>
4784  int joe=SIGEMT;  int joe=SIGEMT;
# Line 4776  int main() { Line 4787  int main() {
4787    
4788  ; return 0; }  ; return 0; }
4789  EOF  EOF
4790  if { (eval echo configure:4780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4791    rm -rf conftest*    rm -rf conftest*
4792    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4793  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 4800  rm -f conftest* Line 4811  rm -f conftest*
4811  do  do
4812  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4813  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4814  echo "configure:4804: checking for $ac_hdr" >&5  echo "configure:4815: checking for $ac_hdr" >&5
4815  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4816    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4817  else  else
4818    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4819  #line 4809 "configure"  #line 4820 "configure"
4820  #include "confdefs.h"  #include "confdefs.h"
4821  #include <$ac_hdr>  #include <$ac_hdr>
4822  EOF  EOF
4823  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4824  { (eval echo configure:4814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4825  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4826  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4827    rm -rf conftest*    rm -rf conftest*
# Line 4840  done Line 4851  done
4851  do  do
4852  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4853  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4854  echo "configure:4844: checking for $ac_hdr" >&5  echo "configure:4855: checking for $ac_hdr" >&5
4855  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4856    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4857  else  else
4858    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4859  #line 4849 "configure"  #line 4860 "configure"
4860  #include "confdefs.h"  #include "confdefs.h"
4861  #include <$ac_hdr>  #include <$ac_hdr>
4862  EOF  EOF
4863  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4864  { (eval echo configure:4854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4865  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4866  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4867    rm -rf conftest*    rm -rf conftest*
# Line 4877  fi Line 4888  fi
4888  done  done
4889    
4890          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
4891  #line 4881 "configure"  #line 4892 "configure"
4892  #include "confdefs.h"  #include "confdefs.h"
4893  #include <signal.h>  #include <signal.h>
4894                          long code;                            long code;  
# Line 4888  int main() { Line 4899  int main() {
4899                
4900  ; return 0; }  ; return 0; }
4901  EOF  EOF
4902  if { (eval echo configure:4892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4903    rm -rf conftest*    rm -rf conftest*
4904        
4905          sigcontext_struct_works=1;          sigcontext_struct_works=1;
# Line 4909  fi Line 4920  fi
4920  rm -f conftest*  rm -f conftest*
4921         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
4922         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
4923  #line 4913 "configure"  #line 4924 "configure"
4924  #include "confdefs.h"  #include "confdefs.h"
4925  #include <signal.h>  #include <signal.h>
4926               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 4926  int main() { Line 4937  int main() {
4937                    
4938  ; return 0; }  ; return 0; }
4939  EOF  EOF
4940  if { (eval echo configure:4930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4941    rm -rf conftest*    rm -rf conftest*
4942        
4943          sigcontext_works=1 ;          sigcontext_works=1 ;
# Line 4969  rm -f conftest* Line 4980  rm -f conftest*
4980  # 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.
4981  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
4982  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4983  echo "configure:4973: checking for $ac_word" >&5  echo "configure:4984: checking for $ac_word" >&5
4984  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
4985    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4986  else  else
# Line 5017  cat >> conftest.el <<EOF Line 5028  cat >> conftest.el <<EOF
5028  EOF  EOF
5029    
5030  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
5031  echo "configure:5021: checking emacs site lisp directory" >&5  echo "configure:5032: checking emacs site lisp directory" >&5
5032  #EMACS_SITE_LISP=unknown  if [ "$EMACS" != "" ]  && [ "$EMACS_SITE_LISP" = "unknown" ] ; then
 if [ "$EMACS" != "" ] ; then  
5033          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 `
5034  else  else
5035          EMACS_SITE_LISP=""          EMACS_SITE_LISP=""
# Line 5040  cat >> conftest.el <<EOF Line 5050  cat >> conftest.el <<EOF
5050  EOF  EOF
5051    
5052  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
5053  echo "configure:5044: checking emacs default.el" >&5  echo "configure:5054: checking emacs default.el" >&5
5054  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
5055          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 `
5056  else  else
# Line 5069  cat >> conftest.el <<EOF Line 5079  cat >> conftest.el <<EOF
5079  EOF  EOF
5080    
5081  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
5082  echo "configure:5073: checking emacs info/dir" >&5  echo "configure:5083: checking emacs info/dir" >&5
5083  if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then  if [ "$EMACS" != "" ] && [ "$INFO_DIR" = "unknown" ] ; then
5084          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 `
5085  fi  fi
# Line 5083  echo "$ac_t""$INFO_DIR" 1>&6 Line 5093  echo "$ac_t""$INFO_DIR" 1>&6
5093    
5094    
5095  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
5096  echo "configure:5087: checking for tcl/tk" >&5  echo "configure:5097: checking for tcl/tk" >&5
5097    
5098    
5099  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 5106  EOF Line 5116  EOF
5116  # 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.
5117  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
5118  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5119  echo "configure:5110: checking for $ac_word" >&5  echo "configure:5120: checking for $ac_word" >&5
5120  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
5121    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5122  else  else
# Line 5206  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 5216  if test -f ${TCL_CONFIG_PREFIX}/../inclu
5216    fi    fi
5217  fi  fi
5218  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
5219  echo "configure:5210: checking for main in -llieee" >&5  echo "configure:5220: checking for main in -llieee" >&5
5220  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
5221  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
5222    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5214  else Line 5224  else
5224    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5225  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
5226  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5227  #line 5218 "configure"  #line 5228 "configure"
5228  #include "confdefs.h"  #include "confdefs.h"
5229    
5230  int main() {  int main() {
5231  main()  main()
5232  ; return 0; }  ; return 0; }
5233  EOF  EOF
5234  if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5235    rm -rf conftest*    rm -rf conftest*
5236    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5237  else  else
# Line 5286  NOTIFY=$enable_notify Line 5296  NOTIFY=$enable_notify
5296  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
5297    
5298  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
5299  echo "configure:5290: checking alloca" >&5  echo "configure:5300: checking alloca" >&5
5300  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5301    gcl_ok=no    gcl_ok=no
5302  else  else
5303    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5304  #line 5295 "configure"  #line 5305 "configure"
5305  #include "confdefs.h"  #include "confdefs.h"
5306  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
5307  EOF  EOF
5308  if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5309  then  then
5310    :    :
5311  else  else
# Line 5318  else Line 5328  else
5328    gcl_ok=no    gcl_ok=no
5329  else  else
5330    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5331  #line 5322 "configure"  #line 5332 "configure"
5332  #include "confdefs.h"  #include "confdefs.h"
5333  #include <alloca.h>  #include <alloca.h>
5334    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
5335  EOF  EOF
5336  if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5337  then  then
5338    :    :
5339  else  else
# Line 5384  if test $gcl_ok = no ; then     echo "$a Line 5394  if test $gcl_ok = no ; then     echo "$a
5394  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
5395  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
5396  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
5397  echo "configure:5388: checking Checking for buggy gcc version from redhat" >&5  echo "configure:5398: checking Checking for buggy gcc version from redhat" >&5
5398  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
5399     then     then
5400          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.89

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