/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.197 by camm, Wed Oct 12 16:27:10 2005 UTC revision 1.198 by camm, Thu Oct 20 00:28:10 2005 UTC
# Line 12  ac_help= Line 12  ac_help=
12  ac_default_prefix=/usr/local  ac_default_prefix=/usr/local
13  # Any additions from configure.in:  # Any additions from configure.in:
14  ac_help="$ac_help  ac_help="$ac_help
  --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)"  
 ac_help="$ac_help  
15   --enable-holediv=XXXX will specify that 1/XXXX of the core should be used as the hole between the heap and relocatable memory area"   --enable-holediv=XXXX will specify that 1/XXXX of the core should be used as the hole between the heap and relocatable memory area"
16  ac_help="$ac_help  ac_help="$ac_help
17   --enable-vssize=XXXX will compile in a value stack of size XXX"   --enable-vssize=XXXX will compile in a value stack of size XXX"
# Line 77  ac_help="$ac_help Line 75  ac_help="$ac_help
75  ac_help="$ac_help  ac_help="$ac_help
76    --with-x                use the X Window System"    --with-x                use the X Window System"
77  ac_help="$ac_help  ac_help="$ac_help
78     --enable-maxpage=XXXX will compile in a page table of size XXX (eg '--enable-maxpage=64*1024' would give 64K pages allowing 256 MB if pages are 4K each)"
79    ac_help="$ac_help
80  --enable-readine    enables command line completion via the readline library "  --enable-readine    enables command line completion via the readline library "
81  ac_help="$ac_help  ac_help="$ac_help
82  --enable-ansi builds a large gcl aiming for ansi compliance,  --enable-ansi builds a large gcl aiming for ansi compliance,
# Line 602  VERSION=`cat majvers`.`cat minvers` Line 602  VERSION=`cat majvers`.`cat minvers`
602  # Arguments  # Arguments
603  #  #
604    
 help="--enable-maxpage=XXXX will compile in a page table of size XXX (default ${default_maxpage})"  
   
 # Check whether --enable-maxpage or --disable-maxpage was given.  
 if test "${enable_maxpage+set}" = set; then  
   enableval="$enable_maxpage"  
   :  
 else  
   enable_maxpage=262144  
 fi  
   
 #AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)  
   
   
605  # Check whether --enable-holediv or --disable-holediv was given.  # Check whether --enable-holediv or --disable-holediv was given.
606  if test "${enable_holediv+set}" = set; then  if test "${enable_holediv+set}" = set; then
607    enableval="$enable_holediv"    enableval="$enable_holediv"
# Line 822  else { echo "configure: error: can not r Line 809  else { echo "configure: error: can not r
809  fi  fi
810    
811  echo $ac_n "checking host system type""... $ac_c" 1>&6  echo $ac_n "checking host system type""... $ac_c" 1>&6
812  echo "configure:826: checking host system type" >&5  echo "configure:813: checking host system type" >&5
813    
814  host_alias=$host  host_alias=$host
815  case "$host_alias" in  case "$host_alias" in
# Line 1232  fi Line 1219  fi
1219  # 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.
1220  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1221  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222  echo "configure:1236: checking for $ac_word" >&5  echo "configure:1223: checking for $ac_word" >&5
1223  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1224    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1225  else  else
# Line 1262  if test -z "$CC"; then Line 1249  if test -z "$CC"; then
1249    # 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.
1250  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1251  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1252  echo "configure:1266: checking for $ac_word" >&5  echo "configure:1253: checking for $ac_word" >&5
1253  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1254    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1255  else  else
# Line 1313  fi Line 1300  fi
1300        # 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.
1301  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
1302  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1303  echo "configure:1317: checking for $ac_word" >&5  echo "configure:1304: checking for $ac_word" >&5
1304  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1305    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1306  else  else
# Line 1345  fi Line 1332  fi
1332  fi  fi
1333    
1334  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
1335  echo "configure:1349: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1336: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1336    
1337  ac_ext=c  ac_ext=c
1338  # 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 1356  cross_compiling=$ac_cv_prog_cc_cross Line 1343  cross_compiling=$ac_cv_prog_cc_cross
1343    
1344  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1345    
1346  #line 1360 "configure"  #line 1347 "configure"
1347  #include "confdefs.h"  #include "confdefs.h"
1348    
1349  main(){return(0);}  main(){return(0);}
1350  EOF  EOF
1351  if { (eval echo configure:1365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1352    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1353    # 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.
1354    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1387  if test $ac_cv_prog_cc_works = no; then Line 1374  if test $ac_cv_prog_cc_works = no; then
1374    { 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; }
1375  fi  fi
1376  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
1377  echo "configure:1391: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1378: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1378  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1379  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1380    
1381  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
1382  echo "configure:1396: checking whether we are using GNU C" >&5  echo "configure:1383: checking whether we are using GNU C" >&5
1383  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1384    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1385  else  else
# Line 1401  else Line 1388  else
1388    yes;    yes;
1389  #endif  #endif
1390  EOF  EOF
1391  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1405: \"$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:1392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1392    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1393  else  else
1394    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1420  ac_test_CFLAGS="${CFLAGS+set}" Line 1407  ac_test_CFLAGS="${CFLAGS+set}"
1407  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1408  CFLAGS=  CFLAGS=
1409  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
1410  echo "configure:1424: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1411: checking whether ${CC-cc} accepts -g" >&5
1411  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1412    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1413  else  else
# Line 1452  else Line 1439  else
1439  fi  fi
1440    
1441  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
1442  echo "configure:1456: checking how to run the C preprocessor" >&5  echo "configure:1443: checking how to run the C preprocessor" >&5
1443  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
1444  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
1445    CPP=    CPP=
# Line 1467  else Line 1454  else
1454    # 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,
1455    # not just through cpp.    # not just through cpp.
1456    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1457  #line 1471 "configure"  #line 1458 "configure"
1458  #include "confdefs.h"  #include "confdefs.h"
1459  #include <assert.h>  #include <assert.h>
1460  Syntax Error  Syntax Error
1461  EOF  EOF
1462  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1463  { (eval echo configure:1477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1464  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1465  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1466    :    :
# Line 1484  else Line 1471  else
1471    rm -rf conftest*    rm -rf conftest*
1472    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
1473    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1474  #line 1488 "configure"  #line 1475 "configure"
1475  #include "confdefs.h"  #include "confdefs.h"
1476  #include <assert.h>  #include <assert.h>
1477  Syntax Error  Syntax Error
1478  EOF  EOF
1479  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1480  { (eval echo configure:1494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1481  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1482  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1483    :    :
# Line 1501  else Line 1488  else
1488    rm -rf conftest*    rm -rf conftest*
1489    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
1490    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1491  #line 1505 "configure"  #line 1492 "configure"
1492  #include "confdefs.h"  #include "confdefs.h"
1493  #include <assert.h>  #include <assert.h>
1494  Syntax Error  Syntax Error
1495  EOF  EOF
1496  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1497  { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1498  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1499  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1500    :    :
# Line 1580  do Line 1567  do
1567  # 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.
1568  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1569  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1570  echo "configure:1584: checking for $ac_word" >&5  echo "configure:1571: checking for $ac_word" >&5
1571  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1572    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1573  else  else
# Line 1620  if test "$enable_gprof" = "yes" ; then Line 1607  if test "$enable_gprof" = "yes" ; then
1607  EOF  EOF
1608    
1609          echo $ac_n "checking for text start""... $ac_c" 1>&6          echo $ac_n "checking for text start""... $ac_c" 1>&6
1610  echo "configure:1624: checking for text start" >&5  echo "configure:1611: checking for text start" >&5
1611          echo 'int main () {return(0);}' >foo.c          echo 'int main () {return(0);}' >foo.c
1612          $CC foo.c -o foo          $CC foo.c -o foo
1613          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`          GCL_GPROF_START=`nm foo | $AWK  '/  *T  *__*start$/ {print $NF}'`
# Line 1700  fi Line 1687  fi
1687  # there are a few systems, like Next, where this doesn't work.  # there are a few systems, like Next, where this doesn't work.
1688    
1689  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
1690  echo "configure:1704: checking system version (for dynamic loading)" >&5  echo "configure:1691: checking system version (for dynamic loading)" >&5
1691  if machine=`uname -m` ; then true; else machine=unknown ; fi  if machine=`uname -m` ; then true; else machine=unknown ; fi
1692    
1693  for ac_prog in makeinfo  for ac_prog in makeinfo
# Line 1708  do Line 1695  do
1695  # 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.
1696  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
1697  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1698  echo "configure:1712: checking for $ac_word" >&5  echo "configure:1699: checking for $ac_word" >&5
1699  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
1700    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1701  else  else
# Line 1765  fi Line 1752  fi
1752    
1753  ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "unistd.h" | sed 'y%./+-%__p_%'`
1754  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6  echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
1755  echo "configure:1769: checking for unistd.h" >&5  echo "configure:1756: checking for unistd.h" >&5
1756  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1757    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1758  else  else
1759    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1760  #line 1774 "configure"  #line 1761 "configure"
1761  #include "confdefs.h"  #include "confdefs.h"
1762  #include <unistd.h>  #include <unistd.h>
1763  EOF  EOF
1764  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1765  { (eval echo configure:1779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1766  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1767  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1768    rm -rf conftest*    rm -rf conftest*
# Line 1792  fi Line 1779  fi
1779  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1780    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1781    echo $ac_n "checking for sysconf in -lc""... $ac_c" 1>&6    echo $ac_n "checking for sysconf in -lc""... $ac_c" 1>&6
1782  echo "configure:1796: checking for sysconf in -lc" >&5  echo "configure:1783: checking for sysconf in -lc" >&5
1783  ac_lib_var=`echo c'_'sysconf | sed 'y%./+-%__p_%'`  ac_lib_var=`echo c'_'sysconf | sed 'y%./+-%__p_%'`
1784  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
1785    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1800  else Line 1787  else
1787    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1788  LIBS="-lc  $LIBS"  LIBS="-lc  $LIBS"
1789  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1790  #line 1804 "configure"  #line 1791 "configure"
1791  #include "confdefs.h"  #include "confdefs.h"
1792  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1793  /* 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 1811  int main() { Line 1798  int main() {
1798  sysconf()  sysconf()
1799  ; return 0; }  ; return 0; }
1800  EOF  EOF
1801  if { (eval echo configure:1815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1802    rm -rf conftest*    rm -rf conftest*
1803    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1804  else  else
# Line 1827  fi Line 1814  fi
1814  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1815    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1816    echo $ac_n "checking "for _SC_CLK_TCK"""... $ac_c" 1>&6    echo $ac_n "checking "for _SC_CLK_TCK"""... $ac_c" 1>&6
1817  echo "configure:1831: checking "for _SC_CLK_TCK"" >&5  echo "configure:1818: checking "for _SC_CLK_TCK"" >&5
1818                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
1819    hz=0    hz=0
1820  else  else
1821    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1822  #line 1836 "configure"  #line 1823 "configure"
1823  #include "confdefs.h"  #include "confdefs.h"
1824  #include <unistd.h>  #include <unistd.h>
1825                              #include <stdio.h>                              #include <stdio.h>
# Line 1844  else Line 1831  else
1831                                  return 0;                                  return 0;
1832                              }                              }
1833  EOF  EOF
1834  if { (eval echo configure:1848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1835  then  then
1836    hz=`cat conftest1`    hz=`cat conftest1`
1837                              cat >> confdefs.h <<EOF                              cat >> confdefs.h <<EOF
# Line 1888  if test $use_gmp = yes ; then Line 1875  if test $use_gmp = yes ; then
1875   if test "$enable_dynsysgmp" = "yes" ; then   if test "$enable_dynsysgmp" = "yes" ; then
1876          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
1877  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6  echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
1878  echo "configure:1892: checking for gmp.h" >&5  echo "configure:1879: checking for gmp.h" >&5
1879  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1880    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1881  else  else
1882    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1883  #line 1897 "configure"  #line 1884 "configure"
1884  #include "confdefs.h"  #include "confdefs.h"
1885  #include <gmp.h>  #include <gmp.h>
1886  EOF  EOF
1887  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1888  { (eval echo configure:1902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1889  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1890  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1891    rm -rf conftest*    rm -rf conftest*
# Line 1915  fi Line 1902  fi
1902  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1903    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1904    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
1905  echo "configure:1919: checking for __gmpz_init in -lgmp" >&5  echo "configure:1906: checking for __gmpz_init in -lgmp" >&5
1906  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
1907  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
1908    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 1923  else Line 1910  else
1910    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
1911  LIBS="-lgmp  $LIBS"  LIBS="-lgmp  $LIBS"
1912  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1913  #line 1927 "configure"  #line 1914 "configure"
1914  #include "confdefs.h"  #include "confdefs.h"
1915  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
1916  /* 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 1934  int main() { Line 1921  int main() {
1921  __gmpz_init()  __gmpz_init()
1922  ; return 0; }  ; return 0; }
1923  EOF  EOF
1924  if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1925    rm -rf conftest*    rm -rf conftest*
1926    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
1927  else  else
# Line 1950  fi Line 1937  fi
1937  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1938    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1939    echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6    echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6
1940  echo "configure:1954: checking "for external gmp version"" >&5  echo "configure:1941: checking "for external gmp version"" >&5
1941                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
1942    echo "Cannot use dynamic gmp lib"    echo "Cannot use dynamic gmp lib"
1943  else  else
1944    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1945  #line 1959 "configure"  #line 1946 "configure"
1946  #include "confdefs.h"  #include "confdefs.h"
1947  #include <gmp.h>  #include <gmp.h>
1948                                      int main() {                                      int main() {
# Line 1966  else Line 1953  else
1953                                      #endif                                      #endif
1954                                      }                                      }
1955  EOF  EOF
1956  if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1957  then  then
1958    #                             MPFILES=$GMPDIR/mpn/mul_n.o    #                             MPFILES=$GMPDIR/mpn/mul_n.o
1959  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n  #                               PATCHED_SYMBOLS=__gmpn_toom3_mul_n
# Line 2013  fi Line 2000  fi
2000  if test "$NEED_LOCAL_GMP" != "" ; then                    if test "$NEED_LOCAL_GMP" != "" ; then                  
2001    
2002           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
2003  echo "configure:2017: checking use_gmp=yes, doing configure in gmp directory" >&5  echo "configure:2004: checking use_gmp=yes, doing configure in gmp directory" >&5
2004           echo           echo
2005           echo "#"           echo "#"
2006           echo "#"           echo "#"
# Line 2045  echo "configure:2017: checking use_gmp=y Line 2032  echo "configure:2017: checking use_gmp=y
2032  fi  fi
2033    
2034  echo $ac_n "checking "for leading underscore in object symbols"""... $ac_c" 1>&6  echo $ac_n "checking "for leading underscore in object symbols"""... $ac_c" 1>&6
2035  echo "configure:2049: checking "for leading underscore in object symbols"" >&5  echo "configure:2036: checking "for leading underscore in object symbols"" >&5
2036  cat>foo.c <<EOFF  cat>foo.c <<EOFF
2037  #include <math.h>  #include <math.h>
2038  int main() {double d=0.0;cos(d);return 0;}  int main() {double d=0.0;cos(d);return 0;}
# Line 2059  else Line 2046  else
2046          echo "$ac_t"""no"" 1>&6          echo "$ac_t"""no"" 1>&6
2047  fi  fi
2048  echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6  echo $ac_n "checking "for GNU ld option -Map"""... $ac_c" 1>&6
2049  echo "configure:2063: checking "for GNU ld option -Map"" >&5  echo "configure:2050: checking "for GNU ld option -Map"" >&5
2050  touch map  touch map
2051  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1  $CC -o foo  -Wl,-Map  map foo.o >/dev/null 2>&1
2052  if test `cat map | wc -l` != "0" ; then  if test `cat map | wc -l` != "0" ; then
# Line 2076  fi Line 2063  fi
2063  rm -f foo.c foo.o foo map  rm -f foo.c foo.o foo map
2064    
2065   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
2066  echo "configure:2080: checking "for size of gmp limbs"" >&5  echo "configure:2067: checking "for size of gmp limbs"" >&5
2067   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
2068    mpsize=0    mpsize=0
2069  else  else
2070    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2071  #line 2085 "configure"  #line 2072 "configure"
2072  #include "confdefs.h"  #include "confdefs.h"
2073  #include <stdio.h>  #include <stdio.h>
2074          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 2092  else Line 2079  else
2079          return 0;          return 0;
2080          }          }
2081  EOF  EOF
2082  if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2083  then  then
2084    mpsize=`cat conftest1`    mpsize=`cat conftest1`
2085  else  else
# Line 2115  EOF Line 2102  EOF
2102   echo "$ac_t""$mpsize" 1>&6   echo "$ac_t""$mpsize" 1>&6
2103    
2104   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6
2105  echo "configure:2119: checking "_SHORT_LIMB"" >&5  echo "configure:2106: checking "_SHORT_LIMB"" >&5
2106   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
2107    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2108  else  else
2109    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2110  #line 2124 "configure"  #line 2111 "configure"
2111  #include "confdefs.h"  #include "confdefs.h"
2112  #include <stdio.h>  #include <stdio.h>
2113          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 2132  else Line 2119  else
2119          #endif          #endif
2120          }          }
2121  EOF  EOF
2122  if { (eval echo configure:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2123  then  then
2124    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2125  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
# Line 2148  rm -fr conftest* Line 2135  rm -fr conftest*
2135  fi  fi
2136    
2137   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6
2138  echo "configure:2152: checking "_LONG_LONG_LIMB"" >&5  echo "configure:2139: checking "_LONG_LONG_LIMB"" >&5
2139   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
2140    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
2141  else  else
2142    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2143  #line 2157 "configure"  #line 2144 "configure"
2144  #include "confdefs.h"  #include "confdefs.h"
2145  #include <stdio.h>  #include <stdio.h>
2146          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 2165  else Line 2152  else
2152          #endif          #endif
2153          }          }
2154  EOF  EOF
2155  if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2156  then  then
2157    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
2158  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
# Line 2204  fi Line 2191  fi
2191  # 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.
2192  # --without-x overrides everything else, but does not touch the cache.  # --without-x overrides everything else, but does not touch the cache.
2193  echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
2194  echo "configure:2208: checking for X" >&5  echo "configure:2195: checking for X" >&5
2195    
2196  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
2197  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
# Line 2266  if test "$ac_x_includes" = NO; then Line 2253  if test "$ac_x_includes" = NO; then
2253    
2254    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
2255  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2256  #line 2270 "configure"  #line 2257 "configure"
2257  #include "confdefs.h"  #include "confdefs.h"
2258  #include <$x_direct_test_include>  #include <$x_direct_test_include>
2259  EOF  EOF
2260  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2261  { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2262  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2263  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2264    rm -rf conftest*    rm -rf conftest*
# Line 2340  if test "$ac_x_libraries" = NO; then Line 2327  if test "$ac_x_libraries" = NO; then
2327    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2328    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
2329  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2330  #line 2344 "configure"  #line 2331 "configure"
2331  #include "confdefs.h"  #include "confdefs.h"
2332    
2333  int main() {  int main() {
2334  ${x_direct_test_function}()  ${x_direct_test_function}()
2335  ; return 0; }  ; return 0; }
2336  EOF  EOF
2337  if { (eval echo configure:2351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2338    rm -rf conftest*    rm -rf conftest*
2339    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
2340  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 2453  else Line 2440  else
2440      case "`(uname -sr) 2>/dev/null`" in      case "`(uname -sr) 2>/dev/null`" in
2441      "SunOS 5"*)      "SunOS 5"*)
2442        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
2443  echo "configure:2457: checking whether -R must be followed by a space" >&5  echo "configure:2444: checking whether -R must be followed by a space" >&5
2444        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2445        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
2446  #line 2460 "configure"  #line 2447 "configure"
2447  #include "confdefs.h"  #include "confdefs.h"
2448    
2449  int main() {  int main() {
2450    
2451  ; return 0; }  ; return 0; }
2452  EOF  EOF
2453  if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2454    rm -rf conftest*    rm -rf conftest*
2455    ac_R_nospace=yes    ac_R_nospace=yes
2456  else  else
# Line 2479  rm -f conftest* Line 2466  rm -f conftest*
2466        else        else
2467          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
2468          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
2469  #line 2483 "configure"  #line 2470 "configure"
2470  #include "confdefs.h"  #include "confdefs.h"
2471    
2472  int main() {  int main() {
2473    
2474  ; return 0; }  ; return 0; }
2475  EOF  EOF
2476  if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2477    rm -rf conftest*    rm -rf conftest*
2478    ac_R_space=yes    ac_R_space=yes
2479  else  else
# Line 2518  rm -f conftest* Line 2505  rm -f conftest*
2505      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And karl@cs.umb.edu says
2506      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
2507      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
2508  echo "configure:2522: checking for dnet_ntoa in -ldnet" >&5  echo "configure:2509: checking for dnet_ntoa in -ldnet" >&5
2509  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2510  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
2511    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2526  else Line 2513  else
2513    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2514  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
2515  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2516  #line 2530 "configure"  #line 2517 "configure"
2517  #include "confdefs.h"  #include "confdefs.h"
2518  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2519  /* 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 2537  int main() { Line 2524  int main() {
2524  dnet_ntoa()  dnet_ntoa()
2525  ; return 0; }  ; return 0; }
2526  EOF  EOF
2527  if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2528    rm -rf conftest*    rm -rf conftest*
2529    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2530  else  else
# Line 2559  fi Line 2546  fi
2546    
2547      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2548        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
2549  echo "configure:2563: checking for dnet_ntoa in -ldnet_stub" >&5  echo "configure:2550: checking for dnet_ntoa in -ldnet_stub" >&5
2550  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2551  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
2552    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2567  else Line 2554  else
2554    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2555  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
2556  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2557  #line 2571 "configure"  #line 2558 "configure"
2558  #include "confdefs.h"  #include "confdefs.h"
2559  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2560  /* 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 2578  int main() { Line 2565  int main() {
2565  dnet_ntoa()  dnet_ntoa()
2566  ; return 0; }  ; return 0; }
2567  EOF  EOF
2568  if { (eval echo configure:2582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2569    rm -rf conftest*    rm -rf conftest*
2570    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2571  else  else
# Line 2607  fi Line 2594  fi
2594      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
2595      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to dickey@clark.net.
2596      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2597  echo "configure:2611: checking for gethostbyname" >&5  echo "configure:2598: checking for gethostbyname" >&5
2598  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2599    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2600  else  else
2601    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2602  #line 2616 "configure"  #line 2603 "configure"
2603  #include "confdefs.h"  #include "confdefs.h"
2604  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2605      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 2635  gethostbyname(); Line 2622  gethostbyname();
2622    
2623  ; return 0; }  ; return 0; }
2624  EOF  EOF
2625  if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2626    rm -rf conftest*    rm -rf conftest*
2627    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
2628  else  else
# Line 2656  fi Line 2643  fi
2643    
2644      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
2645        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2646  echo "configure:2660: checking for gethostbyname in -lnsl" >&5  echo "configure:2647: checking for gethostbyname in -lnsl" >&5
2647  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2648  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
2649    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2664  else Line 2651  else
2651    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2652  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
2653  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2654  #line 2668 "configure"  #line 2655 "configure"
2655  #include "confdefs.h"  #include "confdefs.h"
2656  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2657  /* 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 2675  int main() { Line 2662  int main() {
2662  gethostbyname()  gethostbyname()
2663  ; return 0; }  ; return 0; }
2664  EOF  EOF
2665  if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2666    rm -rf conftest*    rm -rf conftest*
2667    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2668  else  else
# Line 2705  fi Line 2692  fi
2692      # -lsocket must be given before -lnsl if both are needed.      # -lsocket must be given before -lnsl if both are needed.
2693      # We assume that if connect needs -lnsl, so does gethostbyname.      # We assume that if connect needs -lnsl, so does gethostbyname.
2694      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo $ac_n "checking for connect""... $ac_c" 1>&6
2695  echo "configure:2709: checking for connect" >&5  echo "configure:2696: checking for connect" >&5
2696  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2697    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2698  else  else
2699    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2700  #line 2714 "configure"  #line 2701 "configure"
2701  #include "confdefs.h"  #include "confdefs.h"
2702  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2703      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 2733  connect(); Line 2720  connect();
2720    
2721  ; return 0; }  ; return 0; }
2722  EOF  EOF
2723  if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2724    rm -rf conftest*    rm -rf conftest*
2725    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
2726  else  else
# Line 2754  fi Line 2741  fi
2741    
2742      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
2743        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2744  echo "configure:2758: checking for connect in -lsocket" >&5  echo "configure:2745: checking for connect in -lsocket" >&5
2745  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2746  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
2747    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2762  else Line 2749  else
2749    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2750  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2751  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2752  #line 2766 "configure"  #line 2753 "configure"
2753  #include "confdefs.h"  #include "confdefs.h"
2754  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2755  /* 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 2773  int main() { Line 2760  int main() {
2760  connect()  connect()
2761  ; return 0; }  ; return 0; }
2762  EOF  EOF
2763  if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2764    rm -rf conftest*    rm -rf conftest*
2765    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2766  else  else
# Line 2797  fi Line 2784  fi
2784    
2785      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2786      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo $ac_n "checking for remove""... $ac_c" 1>&6
2787  echo "configure:2801: checking for remove" >&5  echo "configure:2788: checking for remove" >&5
2788  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2789    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2790  else  else
2791    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2792  #line 2806 "configure"  #line 2793 "configure"
2793  #include "confdefs.h"  #include "confdefs.h"
2794  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2795      which can conflict with char remove(); below.  */      which can conflict with char remove(); below.  */
# Line 2825  remove(); Line 2812  remove();
2812    
2813  ; return 0; }  ; return 0; }
2814  EOF  EOF
2815  if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2816    rm -rf conftest*    rm -rf conftest*
2817    eval "ac_cv_func_remove=yes"    eval "ac_cv_func_remove=yes"
2818  else  else
# Line 2846  fi Line 2833  fi
2833    
2834      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
2835        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2836  echo "configure:2850: checking for remove in -lposix" >&5  echo "configure:2837: checking for remove in -lposix" >&5
2837  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2838  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
2839    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2854  else Line 2841  else
2841    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2842  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
2843  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2844  #line 2858 "configure"  #line 2845 "configure"
2845  #include "confdefs.h"  #include "confdefs.h"
2846  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2847  /* 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 2865  int main() { Line 2852  int main() {
2852  remove()  remove()
2853  ; return 0; }  ; return 0; }
2854  EOF  EOF
2855  if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2856    rm -rf conftest*    rm -rf conftest*
2857    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2858  else  else
# Line 2889  fi Line 2876  fi
2876    
2877      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2878      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo $ac_n "checking for shmat""... $ac_c" 1>&6
2879  echo "configure:2893: checking for shmat" >&5  echo "configure:2880: checking for shmat" >&5
2880  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2881    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2882  else  else
2883    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2884  #line 2898 "configure"  #line 2885 "configure"
2885  #include "confdefs.h"  #include "confdefs.h"
2886  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2887      which can conflict with char shmat(); below.  */      which can conflict with char shmat(); below.  */
# Line 2917  shmat(); Line 2904  shmat();
2904    
2905  ; return 0; }  ; return 0; }
2906  EOF  EOF
2907  if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2908    rm -rf conftest*    rm -rf conftest*
2909    eval "ac_cv_func_shmat=yes"    eval "ac_cv_func_shmat=yes"
2910  else  else
# Line 2938  fi Line 2925  fi
2925    
2926      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
2927        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2928  echo "configure:2942: checking for shmat in -lipc" >&5  echo "configure:2929: checking for shmat in -lipc" >&5
2929  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2930  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
2931    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2946  else Line 2933  else
2933    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2934  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
2935  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2936  #line 2950 "configure"  #line 2937 "configure"
2937  #include "confdefs.h"  #include "confdefs.h"
2938  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2939  /* 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 2957  int main() { Line 2944  int main() {
2944  shmat()  shmat()
2945  ; return 0; }  ; return 0; }
2946  EOF  EOF
2947  if { (eval echo configure:2961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2948    rm -rf conftest*    rm -rf conftest*
2949    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2950  else  else
# Line 2990  fi Line 2977  fi
2977    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
2978    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2979    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2980  echo "configure:2994: checking for IceConnectionNumber in -lICE" >&5  echo "configure:2981: checking for IceConnectionNumber in -lICE" >&5
2981  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2982  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
2983    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2998  else Line 2985  else
2985    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2986  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2987  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2988  #line 3002 "configure"  #line 2989 "configure"
2989  #include "confdefs.h"  #include "confdefs.h"
2990  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2991  /* 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 3009  int main() { Line 2996  int main() {
2996  IceConnectionNumber()  IceConnectionNumber()
2997  ; return 0; }  ; return 0; }
2998  EOF  EOF
2999  if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3000    rm -rf conftest*    rm -rf conftest*
3001    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3002  else  else
# Line 3040  echo $X_PRE_LIBS Line 3027  echo $X_PRE_LIBS
3027    
3028  miss=0  miss=0
3029  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
3030  echo "configure:3044: checking for main in -lXmu" >&5  echo "configure:3031: checking for main in -lXmu" >&5
3031  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
3032  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
3033    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3048  else Line 3035  else
3035    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3036  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
3037  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3038  #line 3052 "configure"  #line 3039 "configure"
3039  #include "confdefs.h"  #include "confdefs.h"
3040    
3041  int main() {  int main() {
3042  main()  main()
3043  ; return 0; }  ; return 0; }
3044  EOF  EOF
3045  if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3046    rm -rf conftest*    rm -rf conftest*
3047    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3048  else  else
# Line 3077  miss=1 Line 3064  miss=1
3064  fi  fi
3065    
3066  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
3067  echo "configure:3081: checking for main in -lXt" >&5  echo "configure:3068: checking for main in -lXt" >&5
3068  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
3069  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
3070    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3085  else Line 3072  else
3072    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3073  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
3074  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3075  #line 3089 "configure"  #line 3076 "configure"
3076  #include "confdefs.h"  #include "confdefs.h"
3077    
3078  int main() {  int main() {
3079  main()  main()
3080  ; return 0; }  ; return 0; }
3081  EOF  EOF
3082  if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3083    rm -rf conftest*    rm -rf conftest*
3084    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3085  else  else
# Line 3114  miss=1 Line 3101  miss=1
3101  fi  fi
3102    
3103  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
3104  echo "configure:3118: checking for main in -lXext" >&5  echo "configure:3105: checking for main in -lXext" >&5
3105  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
3106  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
3107    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3122  else Line 3109  else
3109    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3110  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
3111  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3112  #line 3126 "configure"  #line 3113 "configure"
3113  #include "confdefs.h"  #include "confdefs.h"
3114    
3115  int main() {  int main() {
3116  main()  main()
3117  ; return 0; }  ; return 0; }
3118  EOF  EOF
3119  if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3120    rm -rf conftest*    rm -rf conftest*
3121    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3122  else  else
# Line 3151  miss=1 Line 3138  miss=1
3138  fi  fi
3139    
3140  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
3141  echo "configure:3155: checking for main in -lXaw" >&5  echo "configure:3142: checking for main in -lXaw" >&5
3142  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
3143  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
3144    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3159  else Line 3146  else
3146    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3147  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
3148  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3149  #line 3163 "configure"  #line 3150 "configure"
3150  #include "confdefs.h"  #include "confdefs.h"
3151    
3152  int main() {  int main() {
3153  main()  main()
3154  ; return 0; }  ; return 0; }
3155  EOF  EOF
3156  if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3157    rm -rf conftest*    rm -rf conftest*
3158    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3159  else  else
# Line 3188  miss=1 Line 3175  miss=1
3175  fi  fi
3176    
3177  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
3178  echo "configure:3192: checking for main in -lX11" >&5  echo "configure:3179: checking for main in -lX11" >&5
3179  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
3180  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
3181    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3196  else Line 3183  else
3183    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3184  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
3185  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3186  #line 3200 "configure"  #line 3187 "configure"
3187  #include "confdefs.h"  #include "confdefs.h"
3188    
3189  int main() {  int main() {
3190  main()  main()
3191  ; return 0; }  ; return 0; }
3192  EOF  EOF
3193  if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3194    rm -rf conftest*    rm -rf conftest*
3195    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3196  else  else
# Line 3242  fi Line 3229  fi
3229  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
3230    
3231          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3232  echo "configure:3246: checking for dlopen in -ldl" >&5  echo "configure:3233: checking for dlopen in -ldl" >&5
3233  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3234  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
3235    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3250  else Line 3237  else
3237    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3238  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
3239  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3240  #line 3254 "configure"  #line 3241 "configure"
3241  #include "confdefs.h"  #include "confdefs.h"
3242  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3243  /* 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 3261  int main() { Line 3248  int main() {
3248  dlopen()  dlopen()
3249  ; return 0; }  ; return 0; }
3250  EOF  EOF
3251  if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3252    rm -rf conftest*    rm -rf conftest*
3253    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3254  else  else
# Line 3297  fi Line 3284  fi
3284  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
3285          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
3286  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
3287  echo "configure:3301: checking for bfd.h" >&5  echo "configure:3288: checking for bfd.h" >&5
3288  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3289    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3290  else  else
3291    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3292  #line 3306 "configure"  #line 3293 "configure"
3293  #include "confdefs.h"  #include "confdefs.h"
3294  #include <bfd.h>  #include <bfd.h>
3295  EOF  EOF
3296  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297  { (eval echo configure:3311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3300    rm -rf conftest*    rm -rf conftest*
# Line 3324  fi Line 3311  fi
3311  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3312    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3313    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
3314  echo "configure:3328: checking for bfd_init in -lbfd" >&5  echo "configure:3315: checking for bfd_init in -lbfd" >&5
3315  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
3316  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
3317    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3332  else Line 3319  else
3319    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3320  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
3321  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3322  #line 3336 "configure"  #line 3323 "configure"
3323  #include "confdefs.h"  #include "confdefs.h"
3324  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3325  /* 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 3343  int main() { Line 3330  int main() {
3330  bfd_init()  bfd_init()
3331  ; return 0; }  ; return 0; }
3332  EOF  EOF
3333  if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3334    rm -rf conftest*    rm -rf conftest*
3335    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3336  else  else
# Line 3362  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 3349  if eval "test \"`echo '$ac_cv_lib_'$ac_l
3349                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
3350                  #                  #
3351                          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
3352  echo "configure:3366: checking if need to define CONST for bfd" >&5  echo "configure:3353: checking if need to define CONST for bfd" >&5
3353                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
3354    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
3355  else  else
3356    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3357  #line 3371 "configure"  #line 3358 "configure"
3358  #include "confdefs.h"  #include "confdefs.h"
3359  #define IN_GCC  #define IN_GCC
3360                                      #include <bfd.h>                                      #include <bfd.h>
3361                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
3362  EOF  EOF
3363  if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3364  then  then
3365    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3366  else  else
# Line 3384  else Line 3371  else
3371    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
3372  else  else
3373    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3374  #line 3388 "configure"  #line 3375 "configure"
3375  #include "confdefs.h"  #include "confdefs.h"
3376  #define CONST const  #define CONST const
3377                                              #define IN_GCC                                              #define IN_GCC
3378                                              #include <bfd.h>                                              #include <bfd.h>
3379                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
3380  EOF  EOF
3381  if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3382  then  then
3383    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3384                                          cat >> confdefs.h <<\EOF                                          cat >> confdefs.h <<\EOF
# Line 3431  EOF Line 3418  EOF
3418  #  #
3419    
3420          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6
3421  echo "configure:3435: checking for useable bfd_boolean" >&5  echo "configure:3422: checking for useable bfd_boolean" >&5
3422          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3423    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3424  else  else
3425    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3426  #line 3440 "configure"  #line 3427 "configure"
3427  #include "confdefs.h"  #include "confdefs.h"
3428  #define IN_GCC  #define IN_GCC
3429                      #include <bfd.h>                      #include <bfd.h>
3430                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
3431                      int main() {return 0;}                      int main() {return 0;}
3432  EOF  EOF
3433  if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3434  then  then
3435    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3436                  cat >> confdefs.h <<\EOF                  cat >> confdefs.h <<\EOF
# Line 3491  if test "$enable_locbfd" = "yes" ; then Line 3478  if test "$enable_locbfd" = "yes" ; then
3478          # need GNU gettext separately.          # need GNU gettext separately.
3479          ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3480  echo $ac_n "checking for libintl.h""... $ac_c" 1>&6  echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3481  echo "configure:3495: checking for libintl.h" >&5  echo "configure:3482: checking for libintl.h" >&5
3482  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3483    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3484  else  else
3485    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3486  #line 3500 "configure"  #line 3487 "configure"
3487  #include "confdefs.h"  #include "confdefs.h"
3488  #include <libintl.h>  #include <libintl.h>
3489  EOF  EOF
3490  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3491  { (eval echo configure:3505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3492  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3493  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3494    rm -rf conftest*    rm -rf conftest*
# Line 3525  fi Line 3512  fi
3512    
3513                    
3514  echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6  echo $ac_n "checking for library containing dgettext""... $ac_c" 1>&6
3515  echo "configure:3529: checking for library containing dgettext" >&5  echo "configure:3516: checking for library containing dgettext" >&5
3516  if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_search_dgettext'+set}'`\" = set"; then
3517    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3518  else  else
3519    ac_func_search_save_LIBS="$LIBS"    ac_func_search_save_LIBS="$LIBS"
3520  ac_cv_search_dgettext="no"  ac_cv_search_dgettext="no"
3521  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3522  #line 3536 "configure"  #line 3523 "configure"
3523  #include "confdefs.h"  #include "confdefs.h"
3524  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3525  /* 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 3543  int main() { Line 3530  int main() {
3530  dgettext()  dgettext()
3531  ; return 0; }  ; return 0; }
3532  EOF  EOF
3533  if { (eval echo configure:3547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534    rm -rf conftest*    rm -rf conftest*
3535    ac_cv_search_dgettext="none required"    ac_cv_search_dgettext="none required"
3536  else  else
# Line 3554  rm -f conftest* Line 3541  rm -f conftest*
3541  test "$ac_cv_search_dgettext" = "no" && for i in intl; do  test "$ac_cv_search_dgettext" = "no" && for i in intl; do
3542  LIBS="-l$i  $ac_func_search_save_LIBS"  LIBS="-l$i  $ac_func_search_save_LIBS"
3543  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3544  #line 3558 "configure"  #line 3545 "configure"
3545  #include "confdefs.h"  #include "confdefs.h"
3546  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3547  /* 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 3565  int main() { Line 3552  int main() {
3552  dgettext()  dgettext()
3553  ; return 0; }  ; return 0; }
3554  EOF  EOF
3555  if { (eval echo configure:3569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556    rm -rf conftest*    rm -rf conftest*
3557    ac_cv_search_dgettext="-l$i"    ac_cv_search_dgettext="-l$i"
3558  break  break
# Line 3630  fi Line 3617  fi
3617  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
3618    
3619  echo $ac_n "checking size of long""... $ac_c" 1>&6  echo $ac_n "checking size of long""... $ac_c" 1>&6
3620  echo "configure:3634: checking size of long" >&5  echo "configure:3621: checking size of long" >&5
3621  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3622    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3623  else  else
# Line 3638  else Line 3625  else
3625    ac_cv_sizeof_long=0    ac_cv_sizeof_long=0
3626  else  else
3627    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3628  #line 3642 "configure"  #line 3629 "configure"
3629  #include "confdefs.h"  #include "confdefs.h"
3630  #include <stdio.h>  #include <stdio.h>
3631  #include <sys/types.h>  #include <sys/types.h>
# Line 3650  main() Line 3637  main()
3637    exit(0);    exit(0);
3638  }  }
3639  EOF  EOF
3640  if { (eval echo configure:3654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3641  then  then
3642    ac_cv_sizeof_long=`cat conftestval`    ac_cv_sizeof_long=`cat conftestval`
3643  else  else
# Line 3670  EOF Line 3657  EOF
3657    
3658    
3659  echo $ac_n "checking size of int""... $ac_c" 1>&6  echo $ac_n "checking size of int""... $ac_c" 1>&6
3660  echo "configure:3674: checking size of int" >&5  echo "configure:3661: checking size of int" >&5
3661  if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3662    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3663  else  else
# Line 3678  else Line 3665  else
3665    ac_cv_sizeof_int=0    ac_cv_sizeof_int=0
3666  else  else
3667    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3668  #line 3682 "configure"  #line 3669 "configure"
3669  #include "confdefs.h"  #include "confdefs.h"
3670  #include <stdio.h>  #include <stdio.h>
3671  #include <sys/types.h>  #include <sys/types.h>
# Line 3690  main() Line 3677  main()
3677    exit(0);    exit(0);
3678  }  }
3679  EOF  EOF
3680  if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3681  then  then
3682    ac_cv_sizeof_int=`cat conftestval`    ac_cv_sizeof_int=`cat conftestval`
3683  else  else
# Line 3710  EOF Line 3697  EOF
3697    
3698    
3699  echo $ac_n "checking size of short""... $ac_c" 1>&6  echo $ac_n "checking size of short""... $ac_c" 1>&6
3700  echo "configure:3714: checking size of short" >&5  echo "configure:3701: checking size of short" >&5
3701  if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3702    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3703  else  else
# Line 3718  else Line 3705  else
3705    ac_cv_sizeof_short=0    ac_cv_sizeof_short=0
3706  else  else
3707    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3708  #line 3722 "configure"  #line 3709 "configure"
3709  #include "confdefs.h"  #include "confdefs.h"
3710  #include <stdio.h>  #include <stdio.h>
3711  #include <sys/types.h>  #include <sys/types.h>
# Line 3730  main() Line 3717  main()
3717    exit(0);    exit(0);
3718  }  }
3719  EOF  EOF
3720  if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3721  then  then
3722    ac_cv_sizeof_short=`cat conftestval`    ac_cv_sizeof_short=`cat conftestval`
3723  else  else
# Line 3750  EOF Line 3737  EOF
3737    
3738    
3739  echo $ac_n "checking size of char""... $ac_c" 1>&6  echo $ac_n "checking size of char""... $ac_c" 1>&6
3740  echo "configure:3754: checking size of char" >&5  echo "configure:3741: checking size of char" >&5
3741  if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
3742    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3743  else  else
# Line 3758  else Line 3745  else
3745    ac_cv_sizeof_char=0    ac_cv_sizeof_char=0
3746  else  else
3747    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3748  #line 3762 "configure"  #line 3749 "configure"
3749  #include "confdefs.h"  #include "confdefs.h"
3750  #include <stdio.h>  #include <stdio.h>
3751  #include <sys/types.h>  #include <sys/types.h>
# Line 3770  main() Line 3757  main()
3757    exit(0);    exit(0);
3758  }  }
3759  EOF  EOF
3760  if { (eval echo configure:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3761  then  then
3762    ac_cv_sizeof_char=`cat conftestval`    ac_cv_sizeof_char=`cat conftestval`
3763  else  else
# Line 3791  EOF Line 3778  EOF
3778    
3779    
3780  echo $ac_n "checking for number of bits in char""... $ac_c" 1>&6  echo $ac_n "checking for number of bits in char""... $ac_c" 1>&6
3781  echo "configure:3795: checking for number of bits in char" >&5  echo "configure:3782: checking for number of bits in char" >&5
3782  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3783    echo Cannot find char_size;exit 1    echo Cannot find char_size;exit 1
3784  else  else
3785    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3786  #line 3800 "configure"  #line 3787 "configure"
3787  #include "confdefs.h"  #include "confdefs.h"
3788  #include <stdio.h>  #include <stdio.h>
3789  int main() {  int main() {
# Line 3808  fprintf(fp,"%d",i); Line 3795  fprintf(fp,"%d",i);
3795  return 0;  return 0;
3796  }  }
3797  EOF  EOF
3798  if { (eval echo configure:3812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3799  then  then
3800    char_size=`cat conftest1`    char_size=`cat conftest1`
3801  else  else
# Line 3830  for ac_hdr in endian.h Line 3817  for ac_hdr in endian.h
3817  do  do
3818  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3819  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3820  echo "configure:3834: checking for $ac_hdr" >&5  echo "configure:3821: checking for $ac_hdr" >&5
3821  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3822    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3823  else  else
3824    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3825  #line 3839 "configure"  #line 3826 "configure"
3826  #include "confdefs.h"  #include "confdefs.h"
3827  #include <$ac_hdr>  #include <$ac_hdr>
3828  EOF  EOF
3829  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3830  { (eval echo configure:3844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3831  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3832  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3833    rm -rf conftest*    rm -rf conftest*
# Line 3861  if eval "test \"`echo '$ac_cv_header_'$a Line 3848  if eval "test \"`echo '$ac_cv_header_'$a
3848  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
3849  EOF  EOF
3850   echo $ac_n "checking endianness""... $ac_c" 1>&6   echo $ac_n "checking endianness""... $ac_c" 1>&6
3851  echo "configure:3865: checking endianness" >&5  echo "configure:3852: checking endianness" >&5
3852          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3853    echo "$ac_t""big" 1>&6    echo "$ac_t""big" 1>&6
3854  else  else
3855    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3856  #line 3870 "configure"  #line 3857 "configure"
3857  #include "confdefs.h"  #include "confdefs.h"
3858  /*#define __ARMEB__*/  /*#define __ARMEB__*/
3859                  #include <endian.h>                  #include <endian.h>
3860                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
3861  EOF  EOF
3862  if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3863  then  then
3864    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3865  #define LITTLE_END 1  #define LITTLE_END 1
# Line 3899  done Line 3886  done
3886  # this and restore the traditional behavior here  # this and restore the traditional behavior here
3887    
3888  echo $ac_n "checking for sbrk""... $ac_c" 1>&6  echo $ac_n "checking for sbrk""... $ac_c" 1>&6
3889  echo "configure:3903: checking for sbrk" >&5  echo "configure:3890: checking for sbrk" >&5
3890  HAVE_SBRK=""  HAVE_SBRK=""
3891  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3892    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6    echo "$ac_t""no: WARNING you must be able to emulate sbrk: as on mingw or macosx" 1>&6
3893  else  else
3894    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3895  #line 3909 "configure"  #line 3896 "configure"
3896  #include "confdefs.h"  #include "confdefs.h"
3897  #include <unistd.h>  #include <unistd.h>
3898              #include <stdio.h>              #include <stdio.h>
# Line 3917  else Line 3904  else
3904                  return 0;                  return 0;
3905                  }                  }
3906  EOF  EOF
3907  if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3908  then  then
3909    HAVE_SBRK=1    HAVE_SBRK=1
3910                  echo "$ac_t""yes" 1>&6                  echo "$ac_t""yes" 1>&6
# Line 3933  fi Line 3920  fi
3920    
3921  if test "$HAVE_SBRK" = "1" ; then  if test "$HAVE_SBRK" = "1" ; then
3922          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6          echo $ac_n "checking for randomized sbrk""... $ac_c" 1>&6
3923  echo "configure:3937: checking for randomized sbrk" >&5  echo "configure:3924: checking for randomized sbrk" >&5
3924          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3925    SBRK=0    SBRK=0
3926  else  else
3927    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3928  #line 3942 "configure"  #line 3929 "configure"
3929  #include "confdefs.h"  #include "confdefs.h"
3930  #include <unistd.h>  #include <unistd.h>
3931                      #include <stdio.h>                      #include <stdio.h>
# Line 3950  else Line 3937  else
3937                          return 0;                          return 0;
3938                          }                          }
3939  EOF  EOF
3940  if { (eval echo configure:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3941  then  then
3942    SBRK=`cat conftest1`    SBRK=`cat conftest1`
3943  else  else
# Line 3970  fi Line 3957  fi
3957    SBRK1=0    SBRK1=0
3958  else  else
3959    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3960  #line 3974 "configure"  #line 3961 "configure"
3961  #include "confdefs.h"  #include "confdefs.h"
3962  #include <unistd.h>  #include <unistd.h>
3963                      #include <stdio.h>                      #include <stdio.h>
# Line 3982  else Line 3969  else
3969                          return 0;                          return 0;
3970                          }                          }
3971  EOF  EOF
3972  if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3973  then  then
3974    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
3975  else  else
# Line 4029  fi Line 4016  fi
4016  EOF  EOF
4017    
4018                  echo $ac_n "checking for ADDR_NO_RANOMIZE constant""... $ac_c" 1>&6                  echo $ac_n "checking for ADDR_NO_RANOMIZE constant""... $ac_c" 1>&6
4019  echo "configure:4033: checking for ADDR_NO_RANOMIZE constant" >&5  echo "configure:4020: checking for ADDR_NO_RANOMIZE constant" >&5
4020                  echo "$ac_t""$ADDR_NO_RANDOMIZE" 1>&6                  echo "$ac_t""$ADDR_NO_RANDOMIZE" 1>&6
4021                  ac_safe=`echo "sys/personality.h" | sed 'y%./+-%__p_%'`                  ac_safe=`echo "sys/personality.h" | sed 'y%./+-%__p_%'`
4022  echo $ac_n "checking for sys/personality.h""... $ac_c" 1>&6  echo $ac_n "checking for sys/personality.h""... $ac_c" 1>&6
4023  echo "configure:4037: checking for sys/personality.h" >&5  echo "configure:4024: checking for sys/personality.h" >&5
4024  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4025    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4026  else  else
4027    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4028  #line 4042 "configure"  #line 4029 "configure"
4029  #include "confdefs.h"  #include "confdefs.h"
4030  #include <sys/personality.h>  #include <sys/personality.h>
4031  EOF  EOF
4032  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4033  { (eval echo configure:4047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4034  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4035  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4036    rm -rf conftest*    rm -rf conftest*
# Line 4069  fi Line 4056  fi
4056    SBRK=0    SBRK=0
4057  else  else
4058    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4059  #line 4073 "configure"  #line 4060 "configure"
4060  #include "confdefs.h"  #include "confdefs.h"
4061  #include <syscall.h>  #include <syscall.h>
4062                              #include <sys/personality.h>                              #include <sys/personality.h>
# Line 4089  else Line 4076  else
4076                                  return 0;                                  return 0;
4077                                  }                                  }
4078  EOF  EOF
4079  if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4080  then  then
4081    SBRK=`cat conftest1`    SBRK=`cat conftest1`
4082  else  else
# Line 4109  fi Line 4096  fi
4096    SBRK1=0    SBRK1=0
4097  else  else
4098    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4099  #line 4113 "configure"  #line 4100 "configure"
4100  #include "confdefs.h"  #include "confdefs.h"
4101  #include <syscall.h>  #include <syscall.h>
4102                              #include <sys/personality.h>                              #include <sys/personality.h>
# Line 4129  else Line 4116  else
4116                                  return 0;                                  return 0;
4117                                  }                                  }
4118  EOF  EOF
4119  if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4120  then  then
4121    SBRK1=`cat conftest1`    SBRK1=`cat conftest1`
4122  else  else
# Line 4146  fi Line 4133  fi
4133                          exit 1                          exit 1
4134                  fi                  fi
4135                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6                  echo $ac_n "checking for randomized brk remedy""... $ac_c" 1>&6
4136  echo "configure:4150: checking for randomized brk remedy" >&5  echo "configure:4137: checking for randomized brk remedy" >&5
4137                  if test "$SBRK" = "$SBRK1" ; then                  if test "$SBRK" = "$SBRK1" ; then
4138                          echo "$ac_t""yes" 1>&6                          echo "$ac_t""yes" 1>&6
4139                          cat >> confdefs.h <<\EOF                          cat >> confdefs.h <<\EOF
# Line 4166  fi Line 4153  fi
4153  ####  Memory areas and alignment  ####  Memory areas and alignment
4154    
4155  echo $ac_n "checking for required object alignment""... $ac_c" 1>&6  echo $ac_n "checking for required object alignment""... $ac_c" 1>&6
4156  echo "configure:4170: checking for required object alignment" >&5  echo "configure:4157: checking for required object alignment" >&5
4157  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4158    echo Cannot find object alignent;exit -1    echo Cannot find object alignent;exit -1
4159  else  else
4160    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4161  #line 4175 "configure"  #line 4162 "configure"
4162  #include "confdefs.h"  #include "confdefs.h"
4163  #include <stdio.h>  #include <stdio.h>
4164          #define EXTER          #define EXTER
# Line 4188  else Line 4175  else
4175          fclose(fp);          fclose(fp);
4176          return 0;}          return 0;}
4177  EOF  EOF
4178  if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4179  then  then
4180    obj_align=`cat conftest1`    obj_align=`cat conftest1`
4181  else  else
# Line 4203  fi Line 4190  fi
4190  echo "$ac_t""$obj_align" 1>&6  echo "$ac_t""$obj_align" 1>&6
4191    
4192  echo $ac_n "checking for C extension variable alignment""... $ac_c" 1>&6  echo $ac_n "checking for C extension variable alignment""... $ac_c" 1>&6
4193  echo "configure:4207: checking for C extension variable alignment" >&5  echo "configure:4194: checking for C extension variable alignment" >&5
4194  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4195    obj_align=    obj_align=
4196  else  else
4197    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4198  #line 4212 "configure"  #line 4199 "configure"
4199  #include "confdefs.h"  #include "confdefs.h"
4200  int main() {  int main() {
4201              char *v __attribute__ ((aligned ($obj_align)));              char *v __attribute__ ((aligned ($obj_align)));
4202              return 0;}              return 0;}
4203  EOF  EOF
4204  if { (eval echo configure:4218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4205  then  then
4206    obj_align="__attribute__ ((aligned ($obj_align)))"    obj_align="__attribute__ ((aligned ($obj_align)))"
4207  else  else
# Line 4234  EOF Line 4221  EOF
4221    
4222    
4223  echo $ac_n "checking TYPE_BITS macro""... $ac_c" 1>&6  echo $ac_n "checking TYPE_BITS macro""... $ac_c" 1>&6
4224  echo "configure:4238: checking TYPE_BITS macro" >&5  echo "configure:4225: checking TYPE_BITS macro" >&5
4225  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4226    echo Cannot find type_bits;exit 1    echo Cannot find type_bits;exit 1
4227  else  else
4228    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4229  #line 4243 "configure"  #line 4230 "configure"
4230  #include "confdefs.h"  #include "confdefs.h"
4231  #include <stdio.h>  #include <stdio.h>
4232          #define EXTER          #define EXTER
# Line 4257  else Line 4244  else
4244          return 0;          return 0;
4245          }          }
4246  EOF  EOF
4247  if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4248  then  then
4249    type_bits=`cat conftest1`    type_bits=`cat conftest1`
4250  else  else
# Line 4276  EOF Line 4263  EOF
4263    
4264    
4265  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6
4266  echo "configure:4280: checking sizeof struct contblock" >&5  echo "configure:4267: checking sizeof struct contblock" >&5
4267    
4268  # work around MSYS pwd result incompatibility  # work around MSYS pwd result incompatibility
4269  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
# Line 4284  if test "$cross_compiling" = yes; then Line 4271  if test "$cross_compiling" = yes; then
4271    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
4272  else  else
4273    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4274  #line 4288 "configure"  #line 4275 "configure"
4275  #include "confdefs.h"  #include "confdefs.h"
4276  #include <stdio.h>  #include <stdio.h>
4277          #define EXTER          #define EXTER
# Line 4298  else Line 4285  else
4285          return 0;          return 0;
4286          }          }
4287  EOF  EOF
4288  if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4289  then  then
4290    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
4291  else  else
# Line 4315  if test "$cross_compiling" = yes; then Line 4302  if test "$cross_compiling" = yes; then
4302    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
4303  else  else
4304    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4305  #line 4319 "configure"  #line 4306 "configure"
4306  #include "confdefs.h"  #include "confdefs.h"
4307  #include <stdio.h>  #include <stdio.h>
4308          #define EXTER          #define EXTER
# Line 4329  else Line 4316  else
4316          return 0;          return 0;
4317          }          }
4318  EOF  EOF
4319  if { (eval echo configure:4333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4320  then  then
4321    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
4322  else  else
# Line 4350  EOF Line 4337  EOF
4337    
4338    
4339  echo $ac_n "checking DBEGIN""... $ac_c" 1>&6  echo $ac_n "checking DBEGIN""... $ac_c" 1>&6
4340  echo "configure:4354: checking DBEGIN" >&5  echo "configure:4341: checking DBEGIN" >&5
4341  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4342    dbegin=0    dbegin=0
4343  else  else
4344    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4345  #line 4359 "configure"  #line 4346 "configure"
4346  #include "confdefs.h"  #include "confdefs.h"
4347  #include <stdio.h>  #include <stdio.h>
4348              #include <stdlib.h>              #include <stdlib.h>
# Line 4393  main(int argc,char * argv[]) Line 4380  main(int argc,char * argv[])
4380    return 0;    return 0;
4381  }  }
4382  EOF  EOF
4383  if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4384  then  then
4385    dbegin=`cat conftest1`    dbegin=`cat conftest1`
4386  else  else
# Line 4410  echo "$ac_t""$dbegin" 1>&6 Line 4397  echo "$ac_t""$dbegin" 1>&6
4397    
4398  # pagewidth  # pagewidth
4399  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
4400  echo "configure:4414: checking for pagewidth" >&5  echo "configure:4401: checking for pagewidth" >&5
4401  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4402    PAGEWIDTH=0    PAGEWIDTH=0
4403  else  else
4404    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4405  #line 4419 "configure"  #line 4406 "configure"
4406  #include "confdefs.h"  #include "confdefs.h"
4407  #include <stdio.h>  #include <stdio.h>
4408              #include <unistd.h>              #include <unistd.h>
4409  int main() {size_t i=getpagesize(),j;  int main() {size_t i=getpagesize(),j;
4410              FILE *fp=fopen("conftest1","w");              FILE *fp=fopen("conftest1","w");
4411              for (j=0;i>>=1;j++);              for (j=0;i>>=1;j++);
4412                if (j<12) {printf("pagewidth %u is too small\n",j);return -1;}
4413              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
4414              return 0;}              return 0;}
4415  EOF  EOF
4416  if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4417  then  then
4418    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
4419  else  else
# Line 4444  EOF Line 4432  EOF
4432    
4433    
4434    
4435    if test "$cross_compiling" = yes; then
4436      def_maxpage=262144
4437    else
4438      cat > conftest.$ac_ext <<EOF
4439    #line 4440 "configure"
4440    #include "confdefs.h"
4441    #include <stdio.h>
4442                #include <unistd.h>
4443    int main() {FILE *fp=fopen("conftest1","w");
4444                fprintf(fp,"%u",262144*($SIZEOF_LONG>>2)/(1<<($PAGEWIDTH-12)));
4445                return 0;}
4446    EOF
4447    if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4448    then
4449      def_maxpage=`cat conftest1`
4450    else
4451      echo "configure: failed program was:" >&5
4452      cat conftest.$ac_ext >&5
4453      rm -fr conftest*
4454      def_maxpage=262144
4455    fi
4456    rm -fr conftest*
4457    fi
4458    
4459    
4460    help="--enable-maxpage=XXXX will compile in a page table of size XXX (default ${default_maxpage})"
4461    # Check whether --enable-maxpage or --disable-maxpage was given.
4462    if test "${enable_maxpage+set}" = set; then
4463      enableval="$enable_maxpage"
4464      :
4465    else
4466      enable_maxpage=$def_maxpage
4467    fi
4468    
4469    #AC_DEFINE_UNQUOTED(MAXPAGE,$enable_maxpage)
4470    
4471    
4472  echo $ac_n "checking CSTACK_ADDRESS""... $ac_c" 1>&6  echo $ac_n "checking CSTACK_ADDRESS""... $ac_c" 1>&6
4473  echo "configure:4450: checking CSTACK_ADDRESS" >&5  echo "configure:4474: checking CSTACK_ADDRESS" >&5
4474  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4475    cstack_address=0    cstack_address=0
4476  else  else
4477    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4478  #line 4455 "configure"  #line 4479 "configure"
4479  #include "confdefs.h"  #include "confdefs.h"
4480  #include <stdio.h>  #include <stdio.h>
4481  main()  main()
# Line 4472  main() Line 4496  main()
4496    return 0;    return 0;
4497  }  }
4498  EOF  EOF
4499  if { (eval echo configure:4476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4500  then  then
4501    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
4502  else  else
# Line 4491  EOF Line 4515  EOF
4515  echo "$ac_t""$cstack_address" 1>&6  echo "$ac_t""$cstack_address" 1>&6
4516    
4517  echo $ac_n "checking NEG_CSTACK_ADDRESS""... $ac_c" 1>&6  echo $ac_n "checking NEG_CSTACK_ADDRESS""... $ac_c" 1>&6
4518  echo "configure:4495: checking NEG_CSTACK_ADDRESS" >&5  echo "configure:4519: checking NEG_CSTACK_ADDRESS" >&5
4519  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4520    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
4521  else  else
4522    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4523  #line 4500 "configure"  #line 4524 "configure"
4524  #include "confdefs.h"  #include "confdefs.h"
4525  #include <stdio.h>  #include <stdio.h>
4526  main()  main()
# Line 4504  main() Line 4528  main()
4528    return (long)$cstack_address<0 ? 0 : -1;    return (long)$cstack_address<0 ? 0 : -1;
4529  }  }
4530  EOF  EOF
4531  if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4532  then  then
4533    echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF    echo "$ac_t""yes" 1>&6;cat >> confdefs.h <<\EOF
4534  #define NEG_CSTACK_ADDRESS 1  #define NEG_CSTACK_ADDRESS 1
# Line 4522  fi Line 4546  fi
4546    
4547    
4548  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ALIGNMENT"""... $ac_c" 1>&6
4549  echo "configure:4526: checking "finding CSTACK_ALIGNMENT"" >&5  echo "configure:4550: checking "finding CSTACK_ALIGNMENT"" >&5
4550  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4551    cstack_alignment=0    cstack_alignment=0
4552  else  else
4553    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4554  #line 4531 "configure"  #line 4555 "configure"
4555  #include "confdefs.h"  #include "confdefs.h"
4556  #include <stdio.h>  #include <stdio.h>
4557  main()  main()
# Line 4544  main() Line 4568  main()
4568    return 0;    return 0;
4569  }  }
4570  EOF  EOF
4571  if { (eval echo configure:4548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4572  then  then
4573    cstack_alignment=`cat conftest1`    cstack_alignment=`cat conftest1`
4574  else  else
# Line 4563  EOF Line 4587  EOF
4587  echo "$ac_t""$cstack_alignment" 1>&6  echo "$ac_t""$cstack_alignment" 1>&6
4588    
4589  echo $ac_n "checking CSTACK_DIRECTION""... $ac_c" 1>&6  echo $ac_n "checking CSTACK_DIRECTION""... $ac_c" 1>&6
4590  echo "configure:4567: checking CSTACK_DIRECTION" >&5  echo "configure:4591: checking CSTACK_DIRECTION" >&5
4591  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4592    cstack_direction=0    cstack_direction=0
4593  else  else
4594    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4595  #line 4572 "configure"  #line 4596 "configure"
4596  #include "confdefs.h"  #include "confdefs.h"
4597  #include <stdio.h>  #include <stdio.h>
4598  void *  void *
# Line 4587  main() Line 4611  main()
4611    return 0;    return 0;
4612  }  }
4613  EOF  EOF
4614  if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4615  then  then
4616    cstack_direction=`cat conftest1`    cstack_direction=`cat conftest1`
4617  else  else
# Line 4607  echo "$ac_t""$cstack_direction" 1>&6 Line 4631  echo "$ac_t""$cstack_direction" 1>&6
4631    
4632    
4633  echo $ac_n "checking for shared library/C stack ceiling to heap""... $ac_c" 1>&6  echo $ac_n "checking for shared library/C stack ceiling to heap""... $ac_c" 1>&6
4634  echo "configure:4611: checking for shared library/C stack ceiling to heap" >&5  echo "configure:4635: checking for shared library/C stack ceiling to heap" >&5
4635  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
4636    heap_ceiling=2000000000    heap_ceiling=2000000000
4637  else  else
# Line 4621  if test "$cross_compiling" = yes; then Line 4645  if test "$cross_compiling" = yes; then
4645    echo failed;exit 1    echo failed;exit 1
4646  else  else
4647    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4648  #line 4625 "configure"  #line 4649 "configure"
4649  #include "confdefs.h"  #include "confdefs.h"
4650  #include <stdio.h>  #include <stdio.h>
4651  int main() {  int main() {
# Line 4632  int main() { Line 4656  int main() {
4656      fprintf(fp,"0x%lx",h);      fprintf(fp,"0x%lx",h);
4657      return 0;}      return 0;}
4658  EOF  EOF
4659  if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4660  then  then
4661    heap_ceiling=`cat conftest1`    heap_ceiling=`cat conftest1`
4662  else  else
# Line 4659  $CC foo.c -o foo Line 4683  $CC foo.c -o foo
4683  if ./foo ; then  if ./foo ; then
4684    
4685     echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6     echo $ac_n "checking "finding default linker script"""... $ac_c" 1>&6
4686  echo "configure:4663: checking "finding default linker script"" >&5  echo "configure:4687: checking "finding default linker script"" >&5
4687     touch unixport/gcl.script     touch unixport/gcl.script
4688     echo "int main() {return 0;}" >foo.c     echo "int main() {return 0;}" >foo.c
4689     $CC -Wl,--verbose foo.c -o foo 2>&1 | \     $CC -Wl,--verbose foo.c -o foo 2>&1 | \
# Line 4668  echo "configure:4663: checking "finding Line 4692  echo "configure:4663: checking "finding
4692     if test "`cat gcl.script | wc -l`" != "0" ; then     if test "`cat gcl.script | wc -l`" != "0" ; then
4693        echo "$ac_t""got it" 1>&6        echo "$ac_t""got it" 1>&6
4694        echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6        echo $ac_n "checking "trying to lower heap start"""... $ac_c" 1>&6
4695  echo "configure:4672: checking "trying to lower heap start"" >&5  echo "configure:4696: checking "trying to lower heap start"" >&5
4696        cp gcl.script gcl.script.def        cp gcl.script gcl.script.def
4697        cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script        cat gcl.script.def | awk '/SIZEOF_HEADERS/ {gsub("0x...","0x000",$0);} {print}' |  sed 's,\. = 0x10000000;,/*. = 0x10000000;*/,1' >gcl.script
4698        if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then        if diff gcl.script.def gcl.script >/dev/null 2>&1 ; then
# Line 4676  echo "configure:4672: checking "trying t Line 4700  echo "configure:4672: checking "trying t
4700           rm -f gcl.script gcl.script.def           rm -f gcl.script gcl.script.def
4701        else        else
4702           echo $ac_n "checking "linker script"""... $ac_c" 1>&6           echo $ac_n "checking "linker script"""... $ac_c" 1>&6
4703  echo "configure:4680: checking "linker script"" >&5  echo "configure:4704: checking "linker script"" >&5
4704           echo "int main() {return 0;}" >foo.c           echo "int main() {return 0;}" >foo.c
4705           if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then           if $CC -Wl,-T gcl.script foo.c -o foo >/dev/null 2>&1 && ./foo >/dev/null 2>&1 ; then
4706              echo "$ac_t"""done"" 1>&6              echo "$ac_t"""done"" 1>&6
# Line 4697  echo "configure:4680: checking "linker s Line 4721  echo "configure:4680: checking "linker s
4721     old_LDFLAGS="$LDFLAGS"     old_LDFLAGS="$LDFLAGS"
4722     LDFLAGS="$LDFLAGS $TLDFLAGS"     LDFLAGS="$LDFLAGS $TLDFLAGS"
4723     echo $ac_n "checking "revised DBEGIN"""... $ac_c" 1>&6     echo $ac_n "checking "revised DBEGIN"""... $ac_c" 1>&6
4724  echo "configure:4701: checking "revised DBEGIN"" >&5  echo "configure:4725: checking "revised DBEGIN"" >&5
4725     if test "$cross_compiling" = yes; then     if test "$cross_compiling" = yes; then
4726    dbegin=0    dbegin=0
4727  else  else
4728    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4729  #line 4706 "configure"  #line 4730 "configure"
4730  #include "confdefs.h"  #include "confdefs.h"
4731  #include <stdio.h>  #include <stdio.h>
4732                 #include <stdlib.h>                 #include <stdlib.h>
# Line 4740  else Line 4764  else
4764                     fclose(fp);                     fclose(fp);
4765                     return 0;}                     return 0;}
4766  EOF  EOF
4767  if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4768  then  then
4769    dbegin=`cat conftest1`    dbegin=`cat conftest1`
4770  else  else
# Line 4762  EOF Line 4786  EOF
4786  rm -rf foo*  rm -rf foo*
4787    
4788  echo $ac_n "checking for maxpage revision""... $ac_c" 1>&6  echo $ac_n "checking for maxpage revision""... $ac_c" 1>&6
4789  echo "configure:4766: checking for maxpage revision" >&5  echo "configure:4790: checking for maxpage revision" >&5
4790  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4791    tmp_maxpage=0    tmp_maxpage=0
4792  else  else
4793    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4794  #line 4771 "configure"  #line 4795 "configure"
4795  #include "confdefs.h"  #include "confdefs.h"
4796  #include <stdio.h>  #include <stdio.h>
4797  main()  main()
# Line 4785  main() Line 4809  main()
4809    return 0;    return 0;
4810  }  }
4811  EOF  EOF
4812  if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4813  then  then
4814    tmp_maxpage=`cat conftest1`    tmp_maxpage=`cat conftest1`
4815  else  else
# Line 4809  EOF Line 4833  EOF
4833    
4834    
4835  echo $ac_n "checking for C stack size floor from heap""... $ac_c" 1>&6  echo $ac_n "checking for C stack size floor from heap""... $ac_c" 1>&6
4836  echo "configure:4813: checking for C stack size floor from heap" >&5  echo "configure:4837: checking for C stack size floor from heap" >&5
4837  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4838    tmp_cssize=0    tmp_cssize=0
4839  else  else
4840    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4841  #line 4818 "configure"  #line 4842 "configure"
4842  #include "confdefs.h"  #include "confdefs.h"
4843  #include <stdio.h>  #include <stdio.h>
4844  int  int
# Line 4834  main() Line 4858  main()
4858    return 0;    return 0;
4859  }  }
4860  EOF  EOF
4861  if { (eval echo configure:4838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4862  then  then
4863    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
4864  else  else
# Line 4856  fi Line 4880  fi
4880  #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)  #AC_DEFINE_UNQUOTED(CSSIZE,$enable_cssize)
4881    
4882  echo $ac_n "checking for C stack size limit from fixnum table""... $ac_c" 1>&6  echo $ac_n "checking for C stack size limit from fixnum table""... $ac_c" 1>&6
4883  echo "configure:4860: checking for C stack size limit from fixnum table" >&5  echo "configure:4884: checking for C stack size limit from fixnum table" >&5
4884  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4885    tmp_cssize=0    tmp_cssize=0
4886  else  else
4887    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4888  #line 4865 "configure"  #line 4889 "configure"
4889  #include "confdefs.h"  #include "confdefs.h"
4890  #include <stdio.h>  #include <stdio.h>
4891  int  int
# Line 4884  main() Line 4908  main()
4908    return 0;    return 0;
4909  }  }
4910  EOF  EOF
4911  if { (eval echo configure:4888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4912  then  then
4913    tmp_cssize=`cat conftest1`    tmp_cssize=`cat conftest1`
4914  else  else
# Line 4910  EOF Line 4934  EOF
4934  mem_top=0  mem_top=0
4935  mem_range=0  mem_range=0
4936  echo $ac_n "checking mem top""... $ac_c" 1>&6  echo $ac_n "checking mem top""... $ac_c" 1>&6
4937  echo "configure:4914: checking mem top" >&5  echo "configure:4938: checking mem top" >&5
4938  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4939    mem_top=0    mem_top=0
4940  else  else
4941    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4942  #line 4919 "configure"  #line 4943 "configure"
4943  #include "confdefs.h"  #include "confdefs.h"
4944  #include <stdio.h>  #include <stdio.h>
4945  int  int
# Line 4940  main() Line 4964  main()
4964    fclose(fp);    fclose(fp);
4965    return 0;}    return 0;}
4966  EOF  EOF
4967  if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4968  then  then
4969    mem_top=`cat conftest1`    mem_top=`cat conftest1`
4970  else  else
# Line 4955  fi Line 4979  fi
4979  echo "$ac_t""$mem_top" 1>&6  echo "$ac_t""$mem_top" 1>&6
4980  if test "$mem_top" != "0" ; then  if test "$mem_top" != "0" ; then
4981     echo $ac_n "checking finding upper mem half range""... $ac_c" 1>&6     echo $ac_n "checking finding upper mem half range""... $ac_c" 1>&6
4982  echo "configure:4959: checking finding upper mem half range" >&5  echo "configure:4983: checking finding upper mem half range" >&5
4983     if test "$cross_compiling" = yes; then     if test "$cross_compiling" = yes; then
4984    mem_range=0    mem_range=0
4985  else  else
4986    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4987  #line 4964 "configure"  #line 4988 "configure"
4988  #include "confdefs.h"  #include "confdefs.h"
4989  #include <stdio.h>  #include <stdio.h>
4990     int     int
# Line 4975  else Line 4999  else
4999       return 0;       return 0;
5000     }     }
5001  EOF  EOF
5002  if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5003  then  then
5004    mem_range=`cat conftest1`    mem_range=`cat conftest1`
5005  else  else
# Line 5017  fi Line 5041  fi
5041    
5042    
5043  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
5044  echo "configure:5021: checking "sizeof long long int"" >&5  echo "configure:5045: checking "sizeof long long int"" >&5
5045  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5046    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
5047    
5048  else  else
5049    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5050  #line 5027 "configure"  #line 5051 "configure"
5051  #include "confdefs.h"  #include "confdefs.h"
5052  #include <stdio.h>  #include <stdio.h>
5053  main()  main()
# Line 5033  main() Line 5057  main()
5057  }  }
5058    
5059  EOF  EOF
5060  if { (eval echo configure:5037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5061  then  then
5062    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5063  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 5098  FLISP="saved_$SYSTEM" Line 5122  FLISP="saved_$SYSTEM"
5122  for ac_func in getcwd  for ac_func in getcwd
5123  do  do
5124  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5125  echo "configure:5102: checking for $ac_func" >&5  echo "configure:5126: checking for $ac_func" >&5
5126  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5127    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5128  else  else
5129    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5130  #line 5107 "configure"  #line 5131 "configure"
5131  #include "confdefs.h"  #include "confdefs.h"
5132  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5133      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 5126  $ac_func(); Line 5150  $ac_func();
5150    
5151  ; return 0; }  ; return 0; }
5152  EOF  EOF
5153  if { (eval echo configure:5130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154    rm -rf conftest*    rm -rf conftest*
5155    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5156  else  else
# Line 5153  done Line 5177  done
5177  for ac_func in getwd  for ac_func in getwd
5178  do  do
5179  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5180  echo "configure:5157: checking for $ac_func" >&5  echo "configure:5181: checking for $ac_func" >&5
5181  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5182    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5183  else  else
5184    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5185  #line 5162 "configure"  #line 5186 "configure"
5186  #include "confdefs.h"  #include "confdefs.h"
5187  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5188      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 5181  $ac_func(); Line 5205  $ac_func();
5205    
5206  ; return 0; }  ; return 0; }
5207  EOF  EOF
5208  if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209    rm -rf conftest*    rm -rf conftest*
5210    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5211  else  else
# Line 5206  fi Line 5230  fi
5230  done  done
5231    
5232  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
5233  echo "configure:5210: checking for uname" >&5  echo "configure:5234: checking for uname" >&5
5234  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
5235    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5236  else  else
5237    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5238  #line 5215 "configure"  #line 5239 "configure"
5239  #include "confdefs.h"  #include "confdefs.h"
5240  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5241      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 5234  uname(); Line 5258  uname();
5258    
5259  ; return 0; }  ; return 0; }
5260  EOF  EOF
5261  if { (eval echo configure:5238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5262    rm -rf conftest*    rm -rf conftest*
5263    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
5264  else  else
# Line 5258  EOF Line 5282  EOF
5282  fi  fi
5283    
5284  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5285  echo "configure:5262: checking for gettimeofday" >&5  echo "configure:5286: checking for gettimeofday" >&5
5286  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5287    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5288  else  else
5289    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5290  #line 5267 "configure"  #line 5291 "configure"
5291  #include "confdefs.h"  #include "confdefs.h"
5292  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5293      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5286  gettimeofday(); Line 5310  gettimeofday();
5310    
5311  ; return 0; }  ; return 0; }
5312  EOF  EOF
5313  if { (eval echo configure:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314    rm -rf conftest*    rm -rf conftest*
5315    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5316  else  else
# Line 5315  for ac_hdr in sys/ioctl.h Line 5339  for ac_hdr in sys/ioctl.h
5339  do  do
5340  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5341  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5342  echo "configure:5319: checking for $ac_hdr" >&5  echo "configure:5343: checking for $ac_hdr" >&5
5343  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5344    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5345  else  else
5346    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5347  #line 5324 "configure"  #line 5348 "configure"
5348  #include "confdefs.h"  #include "confdefs.h"
5349  #include <$ac_hdr>  #include <$ac_hdr>
5350  EOF  EOF
5351  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5352  { (eval echo configure:5329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5353  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5354  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5355    rm -rf conftest*    rm -rf conftest*
# Line 5357  for ac_hdr in elf.h elf_abi.h Line 5381  for ac_hdr in elf.h elf_abi.h
5381  do  do
5382  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5383  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5384  echo "configure:5361: checking for $ac_hdr" >&5  echo "configure:5385: checking for $ac_hdr" >&5
5385  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5386    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5387  else  else
5388    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5389  #line 5366 "configure"  #line 5390 "configure"
5390  #include "confdefs.h"  #include "confdefs.h"
5391  #include <$ac_hdr>  #include <$ac_hdr>
5392  EOF  EOF
5393  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5394  { (eval echo configure:5371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5395  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5396  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5397    rm -rf conftest*    rm -rf conftest*
# Line 5407  done Line 5431  done
5431  #--------------------------------------------------------------------  #--------------------------------------------------------------------
5432    
5433  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
5434  echo "configure:5411: checking for BSDgettimeofday" >&5  echo "configure:5435: checking for BSDgettimeofday" >&5
5435  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
5436    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5437  else  else
5438    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5439  #line 5416 "configure"  #line 5440 "configure"
5440  #include "confdefs.h"  #include "confdefs.h"
5441  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5442      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 5435  BSDgettimeofday(); Line 5459  BSDgettimeofday();
5459    
5460  ; return 0; }  ; return 0; }
5461  EOF  EOF
5462  if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5463    rm -rf conftest*    rm -rf conftest*
5464    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
5465  else  else
# Line 5456  EOF Line 5480  EOF
5480  else  else
5481    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
5482  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
5483  echo "configure:5460: checking for gettimeofday" >&5  echo "configure:5484: checking for gettimeofday" >&5
5484  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
5485    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5486  else  else
5487    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5488  #line 5465 "configure"  #line 5489 "configure"
5489  #include "confdefs.h"  #include "confdefs.h"
5490  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5491      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 5484  gettimeofday(); Line 5508  gettimeofday();
5508    
5509  ; return 0; }  ; return 0; }
5510  EOF  EOF
5511  if { (eval echo configure:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5512    rm -rf conftest*    rm -rf conftest*
5513    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
5514  else  else
# Line 5511  fi Line 5535  fi
5535    
5536    
5537  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
5538  echo "configure:5515: checking for gettimeofday declaration" >&5  echo "configure:5539: checking for gettimeofday declaration" >&5
5539    
5540  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5541  #line 5518 "configure"  #line 5542 "configure"
5542  #include "confdefs.h"  #include "confdefs.h"
5543  #include <sys/time.h>  #include <sys/time.h>
5544  EOF  EOF
# Line 5535  rm -f conftest* Line 5559  rm -f conftest*
5559    
5560    
5561  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5562  echo "configure:5539: checking for sin in -lm" >&5  echo "configure:5563: checking for sin in -lm" >&5
5563  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5564  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
5565    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5543  else Line 5567  else
5567    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5568  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
5569  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5570  #line 5547 "configure"  #line 5571 "configure"
5571  #include "confdefs.h"  #include "confdefs.h"
5572  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5573  /* 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 5554  int main() { Line 5578  int main() {
5578  sin()  sin()
5579  ; return 0; }  ; return 0; }
5580  EOF  EOF
5581  if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582    rm -rf conftest*    rm -rf conftest*
5583    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5584  else  else
# Line 5576  true Line 5600  true
5600  fi  fi
5601    
5602  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
5603  echo "configure:5580: checking for main in -lmingwex" >&5  echo "configure:5604: checking for main in -lmingwex" >&5
5604  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
5605  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
5606    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5584  else Line 5608  else
5608    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5609  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
5610  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5611  #line 5588 "configure"  #line 5612 "configure"
5612  #include "confdefs.h"  #include "confdefs.h"
5613    
5614  int main() {  int main() {
5615  main()  main()
5616  ; return 0; }  ; return 0; }
5617  EOF  EOF
5618  if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5619    rm -rf conftest*    rm -rf conftest*
5620    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5621  else  else
# Line 5619  if test "$try_japi" = "yes" ; then Line 5643  if test "$try_japi" = "yes" ; then
5643  do  do
5644  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5645  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5646  echo "configure:5623: checking for $ac_hdr" >&5  echo "configure:5647: checking for $ac_hdr" >&5
5647  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5648    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5649  else  else
5650    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5651  #line 5628 "configure"  #line 5652 "configure"
5652  #include "confdefs.h"  #include "confdefs.h"
5653  #include <$ac_hdr>  #include <$ac_hdr>
5654  EOF  EOF
5655  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5656  { (eval echo configure:5633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5657  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5658  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5659    rm -rf conftest*    rm -rf conftest*
# Line 5667  if test "$use" = "mingw" ; then Line 5691  if test "$use" = "mingw" ; then
5691  do  do
5692  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5693  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5694  echo "configure:5671: checking for $ac_hdr" >&5  echo "configure:5695: checking for $ac_hdr" >&5
5695  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5696    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5697  else  else
5698    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5699  #line 5676 "configure"  #line 5700 "configure"
5700  #include "confdefs.h"  #include "confdefs.h"
5701  #include <$ac_hdr>  #include <$ac_hdr>
5702  EOF  EOF
5703  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5704  { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5705  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5706  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5707    rm -rf conftest*    rm -rf conftest*
# Line 5714  else Line 5738  else
5738  do  do
5739  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5740  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5741  echo "configure:5718: checking for $ac_hdr" >&5  echo "configure:5742: checking for $ac_hdr" >&5
5742  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5743    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5744  else  else
5745    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5746  #line 5723 "configure"  #line 5747 "configure"
5747  #include "confdefs.h"  #include "confdefs.h"
5748  #include <$ac_hdr>  #include <$ac_hdr>
5749  EOF  EOF
5750  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5751  { (eval echo configure:5728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5752  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5753  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5754    rm -rf conftest*    rm -rf conftest*
# Line 5764  for ac_hdr in math.h Line 5788  for ac_hdr in math.h
5788  do  do
5789  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5790  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5791  echo "configure:5768: checking for $ac_hdr" >&5  echo "configure:5792: checking for $ac_hdr" >&5
5792  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5793    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5794  else  else
5795    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5796  #line 5773 "configure"  #line 5797 "configure"
5797  #include "confdefs.h"  #include "confdefs.h"
5798  #include <$ac_hdr>  #include <$ac_hdr>
5799  EOF  EOF
5800  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5801  { (eval echo configure:5778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5802  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5803  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5804    rm -rf conftest*    rm -rf conftest*
# Line 5811  for ac_hdr in values.h Line 5835  for ac_hdr in values.h
5835  do  do
5836  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5837  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5838  echo "configure:5815: checking for $ac_hdr" >&5  echo "configure:5839: checking for $ac_hdr" >&5
5839  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5840    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5841  else  else
5842    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5843  #line 5820 "configure"  #line 5844 "configure"
5844  #include "confdefs.h"  #include "confdefs.h"
5845  #include <$ac_hdr>  #include <$ac_hdr>
5846  EOF  EOF
5847  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5848  { (eval echo configure:5825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5849  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5850  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5851    rm -rf conftest*    rm -rf conftest*
# Line 5858  for ac_hdr in float.h Line 5882  for ac_hdr in float.h
5882  do  do
5883  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5884  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5885  echo "configure:5862: checking for $ac_hdr" >&5  echo "configure:5886: checking for $ac_hdr" >&5
5886  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5887    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5888  else  else
5889    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5890  #line 5867 "configure"  #line 5891 "configure"
5891  #include "confdefs.h"  #include "confdefs.h"
5892  #include <$ac_hdr>  #include <$ac_hdr>
5893  EOF  EOF
5894  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5895  { (eval echo configure:5872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5896  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5897  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5898    rm -rf conftest*    rm -rf conftest*
# Line 5904  done Line 5928  done
5928  # test makes sense.  CM  # test makes sense.  CM
5929  #  #
5930  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
5931  echo "configure:5908: checking for isnormal" >&5  echo "configure:5932: checking for isnormal" >&5
5932  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5933    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
5934  else  else
5935    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5936  #line 5913 "configure"  #line 5937 "configure"
5937  #include "confdefs.h"  #include "confdefs.h"
5938  #define _GNU_SOURCE 1  #define _GNU_SOURCE 1
5939              #include <math.h>              #include <math.h>
# Line 5918  else Line 5942  else
5942                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
5943                  }                  }
5944  EOF  EOF
5945  if { (eval echo configure:5922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5946  then  then
5947    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5948  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 5929  else Line 5953  else
5953    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
5954    rm -fr conftest*    rm -fr conftest*
5955    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
5956  echo "configure:5933: checking for fpclass in ieeefp.h" >&5  echo "configure:5957: checking for fpclass in ieeefp.h" >&5
5957                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
5958    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
5959  else  else
5960    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5961  #line 5938 "configure"  #line 5962 "configure"
5962  #include "confdefs.h"  #include "confdefs.h"
5963  #include <ieeefp.h>  #include <ieeefp.h>
5964                              int main() {                              int main() {
# Line 5942  else Line 5966  else
5966                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
5967                                  }                                  }
5968  EOF  EOF
5969  if { (eval echo configure:5946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5970  then  then
5971    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5972  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 5964  fi Line 5988  fi
5988    
5989    
5990  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
5991  echo "configure:5968: checking for isfinite" >&5  echo "configure:5992: checking for isfinite" >&5
5992  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5993    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
5994  else  else
5995    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5996  #line 5973 "configure"  #line 5997 "configure"
5997  #include "confdefs.h"  #include "confdefs.h"
5998  #define _GNU_SOURCE 1  #define _GNU_SOURCE 1
5999              #include <math.h>              #include <math.h>
# Line 5978  else Line 6002  else
6002                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
6003                  }                  }
6004  EOF  EOF
6005  if { (eval echo configure:5982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6006  then  then
6007    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6008  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 5989  else Line 6013  else
6013    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
6014    rm -fr conftest*    rm -fr conftest*
6015    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
6016  echo "configure:5993: checking for finite()" >&5  echo "configure:6017: checking for finite()" >&5
6017                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
6018    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
6019  else  else
6020    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6021  #line 5998 "configure"  #line 6022 "configure"
6022  #include "confdefs.h"  #include "confdefs.h"
6023  #include <math.h>  #include <math.h>
6024                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 6003  else Line 6027  else
6027                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
6028                                  }                                  }
6029  EOF  EOF
6030  if { (eval echo configure:6007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6031  then  then
6032    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6033  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 6044  fi Line 6068  fi
6068  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
6069  #--------------------------------------------------------------------  #--------------------------------------------------------------------
6070  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
6071  echo "configure:6048: checking for sockets" >&5  echo "configure:6072: checking for sockets" >&5
6072  tcl_checkBoth=0  tcl_checkBoth=0
6073  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
6074  echo "configure:6051: checking for connect" >&5  echo "configure:6075: checking for connect" >&5
6075  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6076    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6077  else  else
6078    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6079  #line 6056 "configure"  #line 6080 "configure"
6080  #include "confdefs.h"  #include "confdefs.h"
6081  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6082      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 6075  connect(); Line 6099  connect();
6099    
6100  ; return 0; }  ; return 0; }
6101  EOF  EOF
6102  if { (eval echo configure:6079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6103    rm -rf conftest*    rm -rf conftest*
6104    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
6105  else  else
# Line 6097  fi Line 6121  fi
6121    
6122  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
6123      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
6124  echo "configure:6101: checking for main in -lsocket" >&5  echo "configure:6125: checking for main in -lsocket" >&5
6125  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
6126  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
6127    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6105  else Line 6129  else
6129    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6130  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
6131  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6132  #line 6109 "configure"  #line 6133 "configure"
6133  #include "confdefs.h"  #include "confdefs.h"
6134    
6135  int main() {  int main() {
6136  main()  main()
6137  ; return 0; }  ; return 0; }
6138  EOF  EOF
6139  if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6140    rm -rf conftest*    rm -rf conftest*
6141    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6142  else  else
# Line 6140  if test "$tcl_checkBoth" = 1; then Line 6164  if test "$tcl_checkBoth" = 1; then
6164      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
6165      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
6166      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
6167  echo "configure:6144: checking for accept" >&5  echo "configure:6168: checking for accept" >&5
6168  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
6169    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6170  else  else
6171    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6172  #line 6149 "configure"  #line 6173 "configure"
6173  #include "confdefs.h"  #include "confdefs.h"
6174  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6175      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 6168  accept(); Line 6192  accept();
6192    
6193  ; return 0; }  ; return 0; }
6194  EOF  EOF
6195  if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6196    rm -rf conftest*    rm -rf conftest*
6197    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
6198  else  else
# Line 6190  fi Line 6214  fi
6214    
6215  fi  fi
6216  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6217  echo "configure:6194: checking for gethostbyname" >&5  echo "configure:6218: checking for gethostbyname" >&5
6218  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
6219    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6220  else  else
6221    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6222  #line 6199 "configure"  #line 6223 "configure"
6223  #include "confdefs.h"  #include "confdefs.h"
6224  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6225      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 6218  gethostbyname(); Line 6242  gethostbyname();
6242    
6243  ; return 0; }  ; return 0; }
6244  EOF  EOF
6245  if { (eval echo configure:6222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246    rm -rf conftest*    rm -rf conftest*
6247    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
6248  else  else
# Line 6236  if eval "test \"`echo '$ac_cv_func_'geth Line 6260  if eval "test \"`echo '$ac_cv_func_'geth
6260  else  else
6261    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
6262  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
6263  echo "configure:6240: checking for main in -lnsl" >&5  echo "configure:6264: checking for main in -lnsl" >&5
6264  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
6265  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
6266    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6244  else Line 6268  else
6268    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6269  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
6270  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6271  #line 6248 "configure"  #line 6272 "configure"
6272  #include "confdefs.h"  #include "confdefs.h"
6273    
6274  int main() {  int main() {
6275  main()  main()
6276  ; return 0; }  ; return 0; }
6277  EOF  EOF
6278  if { (eval echo configure:6255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6279    rm -rf conftest*    rm -rf conftest*
6280    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6281  else  else
# Line 6281  if test "$enable_readline" = "yes" ; the Line 6305  if test "$enable_readline" = "yes" ; the
6305  do  do
6306  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6307  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6308  echo "configure:6285: checking for $ac_hdr" >&5  echo "configure:6309: checking for $ac_hdr" >&5
6309  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6310    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6311  else  else
6312    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6313  #line 6290 "configure"  #line 6314 "configure"
6314  #include "confdefs.h"  #include "confdefs.h"
6315  #include <$ac_hdr>  #include <$ac_hdr>
6316  EOF  EOF
6317  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6318  { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6319  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6320  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6321    rm -rf conftest*    rm -rf conftest*
# Line 6312  if eval "test \"`echo '$ac_cv_header_'$a Line 6336  if eval "test \"`echo '$ac_cv_header_'$a
6336  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
6337  EOF  EOF
6338   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
6339  echo "configure:6316: checking for main in -lreadline" >&5  echo "configure:6340: checking for main in -lreadline" >&5
6340  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
6341  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
6342    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6320  else Line 6344  else
6344    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6345  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
6346  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6347  #line 6324 "configure"  #line 6348 "configure"
6348  #include "confdefs.h"  #include "confdefs.h"
6349    
6350  int main() {  int main() {
6351  main()  main()
6352  ; return 0; }  ; return 0; }
6353  EOF  EOF
6354  if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6355    rm -rf conftest*    rm -rf conftest*
6356    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6357  else  else
# Line 6364  done Line 6388  done
6388    
6389  # These tests discover differences between readline 4.1 and 4.3  # These tests discover differences between readline 4.1 and 4.3
6390          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6          echo $ac_n "checking for rl_completion_matches in -lreadline""... $ac_c" 1>&6
6391  echo "configure:6368: checking for rl_completion_matches in -lreadline" >&5  echo "configure:6392: checking for rl_completion_matches in -lreadline" >&5
6392  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'rl_completion_matches | sed 'y%./+-%__p_%'`
6393  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
6394    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6372  else Line 6396  else
6396    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6397  LIBS="-lreadline  $LIBS"  LIBS="-lreadline  $LIBS"
6398  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6399  #line 6376 "configure"  #line 6400 "configure"
6400  #include "confdefs.h"  #include "confdefs.h"
6401  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6402  /* 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 6383  int main() { Line 6407  int main() {
6407  rl_completion_matches()  rl_completion_matches()
6408  ; return 0; }  ; return 0; }
6409  EOF  EOF
6410  if { (eval echo configure:6387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411    rm -rf conftest*    rm -rf conftest*
6412    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6413  else  else
# Line 6416  fi Line 6440  fi
6440    
6441    
6442  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
6443  echo "configure:6420: checking For network code for nsocket.c" >&5  echo "configure:6444: checking For network code for nsocket.c" >&5
6444  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6445  #line 6422 "configure"  #line 6446 "configure"
6446  #include "confdefs.h"  #include "confdefs.h"
6447    
6448  #include <sys/time.h>  #include <sys/time.h>
# Line 6445  int main() { Line 6469  int main() {
6469                    
6470  ; return 0; }  ; return 0; }
6471  EOF  EOF
6472  if { (eval echo configure:6449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473    rm -rf conftest*    rm -rf conftest*
6474    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6475  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 6462  rm -f conftest* Line 6486  rm -f conftest*
6486    
6487    
6488  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
6489  echo "configure:6466: checking check for listen using fcntl" >&5  echo "configure:6490: checking check for listen using fcntl" >&5
6490  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6491  #line 6468 "configure"  #line 6492 "configure"
6492  #include "confdefs.h"  #include "confdefs.h"
6493  #include <stdio.h>  #include <stdio.h>
6494  #include <fcntl.h>  #include <fcntl.h>
# Line 6477  FILE *fp=fopen("configure.in","r"); Line 6501  FILE *fp=fopen("configure.in","r");
6501    
6502  ; return 0; }  ; return 0; }
6503  EOF  EOF
6504  if { (eval echo configure:6481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6505    rm -rf conftest*    rm -rf conftest*
6506    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6507  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 6496  rm -f conftest* Line 6520  rm -f conftest*
6520    
6521    
6522  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
6523  echo "configure:6500: checking for profil" >&5  echo "configure:6524: checking for profil" >&5
6524  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
6525    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6526  else  else
6527    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6528  #line 6505 "configure"  #line 6529 "configure"
6529  #include "confdefs.h"  #include "confdefs.h"
6530  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6531      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 6524  profil(); Line 6548  profil();
6548    
6549  ; return 0; }  ; return 0; }
6550  EOF  EOF
6551  if { (eval echo configure:6528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6552    rm -rf conftest*    rm -rf conftest*
6553    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
6554  else  else
# Line 6549  fi Line 6573  fi
6573    
6574    
6575  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
6576  echo "configure:6553: checking for setenv" >&5  echo "configure:6577: checking for setenv" >&5
6577  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
6578    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6579  else  else
6580    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6581  #line 6558 "configure"  #line 6582 "configure"
6582  #include "confdefs.h"  #include "confdefs.h"
6583  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6584      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 6577  setenv(); Line 6601  setenv();
6601    
6602  ; return 0; }  ; return 0; }
6603  EOF  EOF
6604  if { (eval echo configure:6581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6605    rm -rf conftest*    rm -rf conftest*
6606    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
6607  else  else
# Line 6603  fi Line 6627  fi
6627    
6628  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
6629  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
6630  echo "configure:6607: checking for putenv" >&5  echo "configure:6631: checking for putenv" >&5
6631  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
6632    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6633  else  else
6634    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6635  #line 6612 "configure"  #line 6636 "configure"
6636  #include "confdefs.h"  #include "confdefs.h"
6637  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6638      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 6631  putenv(); Line 6655  putenv();
6655    
6656  ; return 0; }  ; return 0; }
6657  EOF  EOF
6658  if { (eval echo configure:6635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6659    rm -rf conftest*    rm -rf conftest*
6660    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
6661  else  else
# Line 6657  fi Line 6681  fi
6681  fi  fi
6682    
6683  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
6684  echo "configure:6661: checking for _cleanup" >&5  echo "configure:6685: checking for _cleanup" >&5
6685  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
6686    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6687  else  else
6688    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6689  #line 6666 "configure"  #line 6690 "configure"
6690  #include "confdefs.h"  #include "confdefs.h"
6691  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6692      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 6685  _cleanup(); Line 6709  _cleanup();
6709    
6710  ; return 0; }  ; return 0; }
6711  EOF  EOF
6712  if { (eval echo configure:6689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713    rm -rf conftest*    rm -rf conftest*
6714    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
6715  else  else
# Line 6711  fi Line 6735  fi
6735  gcl_ok=no  gcl_ok=no
6736    
6737  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6738  #line 6715 "configure"  #line 6739 "configure"
6739  #include "confdefs.h"  #include "confdefs.h"
6740  #include <ctype.h>  #include <ctype.h>
6741  EOF  EOF
# Line 6739  fi Line 6763  fi
6763    
6764  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
6765  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
6766  echo "configure:6743: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:6767: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
6767    
6768  case $system in  case $system in
6769         OSF*)         OSF*)
# Line 6770  esac Line 6794  esac
6794    
6795    
6796  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
6797  echo "configure:6774: checking check for SV_ONSTACK" >&5  echo "configure:6798: checking check for SV_ONSTACK" >&5
6798  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6799  #line 6776 "configure"  #line 6800 "configure"
6800  #include "confdefs.h"  #include "confdefs.h"
6801  #include <signal.h>  #include <signal.h>
6802  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 6781  int main() { Line 6805  int main() {
6805    
6806  ; return 0; }  ; return 0; }
6807  EOF  EOF
6808  if { (eval echo configure:6785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6809: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6809    rm -rf conftest*    rm -rf conftest*
6810    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6811  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 6798  fi Line 6822  fi
6822  rm -f conftest*  rm -f conftest*
6823    
6824  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
6825  echo "configure:6802: checking check for SIGSYS" >&5  echo "configure:6826: checking check for SIGSYS" >&5
6826  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6827  #line 6804 "configure"  #line 6828 "configure"
6828  #include "confdefs.h"  #include "confdefs.h"
6829  #include <signal.h>  #include <signal.h>
6830  int joe=SIGSYS;  int joe=SIGSYS;
# Line 6809  int main() { Line 6833  int main() {
6833    
6834  ; return 0; }  ; return 0; }
6835  EOF  EOF
6836  if { (eval echo configure:6813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6837    rm -rf conftest*    rm -rf conftest*
6838    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6839  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 6827  rm -f conftest* Line 6851  rm -f conftest*
6851    
6852    
6853  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
6854  echo "configure:6831: checking check for SIGEMT" >&5  echo "configure:6855: checking check for SIGEMT" >&5
6855  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6856  #line 6833 "configure"  #line 6857 "configure"
6857  #include "confdefs.h"  #include "confdefs.h"
6858  #include <signal.h>  #include <signal.h>
6859  int joe=SIGEMT;  int joe=SIGEMT;
# Line 6838  int main() { Line 6862  int main() {
6862    
6863  ; return 0; }  ; return 0; }
6864  EOF  EOF
6865  if { (eval echo configure:6842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6866    rm -rf conftest*    rm -rf conftest*
6867    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
6868  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 6862  rm -f conftest* Line 6886  rm -f conftest*
6886  do  do
6887  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6888  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6889  echo "configure:6866: checking for $ac_hdr" >&5  echo "configure:6890: checking for $ac_hdr" >&5
6890  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6891    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6892  else  else
6893    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6894  #line 6871 "configure"  #line 6895 "configure"
6895  #include "confdefs.h"  #include "confdefs.h"
6896  #include <$ac_hdr>  #include <$ac_hdr>
6897  EOF  EOF
6898  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6899  { (eval echo configure:6876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6900  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6901  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6902    rm -rf conftest*    rm -rf conftest*
# Line 6902  done Line 6926  done
6926  do  do
6927  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6928  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6929  echo "configure:6906: checking for $ac_hdr" >&5  echo "configure:6930: checking for $ac_hdr" >&5
6930  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6931    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6932  else  else
6933    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6934  #line 6911 "configure"  #line 6935 "configure"
6935  #include "confdefs.h"  #include "confdefs.h"
6936  #include <$ac_hdr>  #include <$ac_hdr>
6937  EOF  EOF
6938  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6939  { (eval echo configure:6916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6940  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6941  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6942    rm -rf conftest*    rm -rf conftest*
# Line 6939  fi Line 6963  fi
6963  done  done
6964    
6965          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6          echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6966  echo "configure:6943: checking for sigcontext..." >&5  echo "configure:6967: checking for sigcontext..." >&5
6967          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
6968  #line 6945 "configure"  #line 6969 "configure"
6969  #include "confdefs.h"  #include "confdefs.h"
6970  #include <signal.h>  #include <signal.h>
6971                
# Line 6951  int main() { Line 6975  int main() {
6975                
6976  ; return 0; }  ; return 0; }
6977  EOF  EOF
6978  if { (eval echo configure:6955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:6979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6979    rm -rf conftest*    rm -rf conftest*
6980        
6981          sigcontext_works=1;          sigcontext_works=1;
# Line 6972  fi Line 6996  fi
6996  rm -f conftest*  rm -f conftest*
6997         if test "$sigcontext_works" = 0 ; then         if test "$sigcontext_works" = 0 ; then
6998         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6         echo $ac_n "checking for sigcontext...""... $ac_c" 1>&6
6999  echo "configure:6976: checking for sigcontext..." >&5  echo "configure:7000: checking for sigcontext..." >&5
7000         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
7001  #line 6978 "configure"  #line 7002 "configure"
7002  #include "confdefs.h"  #include "confdefs.h"
7003  #include <signal.h>  #include <signal.h>
7004               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 6990  int main() { Line 7014  int main() {
7014                    
7015  ; return 0; }  ; return 0; }
7016  EOF  EOF
7017  if { (eval echo configure:6994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7018    rm -rf conftest*    rm -rf conftest*
7019        
7020          cat >> confdefs.h <<\EOF          cat >> confdefs.h <<\EOF
# Line 7032  rm -f conftest* Line 7056  rm -f conftest*
7056  # 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.
7057  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
7058  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7059  echo "configure:7036: checking for $ac_word" >&5  echo "configure:7060: checking for $ac_word" >&5
7060  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
7061    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7062  else  else
# Line 7080  cat >> conftest.el <<EOF Line 7104  cat >> conftest.el <<EOF
7104  EOF  EOF
7105    
7106  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
7107  echo "configure:7084: checking emacs site lisp directory" >&5  echo "configure:7108: checking emacs site lisp directory" >&5
7108  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
7109          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
7110                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `                  EMACS_SITE_LISP=`$EMACS -q -batch --no-site-file -l conftest.el 2>&1 | sed -e /Loading/d | sed -e /load/d `
# Line 7104  cat >> conftest.el <<EOF Line 7128  cat >> conftest.el <<EOF
7128  EOF  EOF
7129    
7130  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
7131  echo "configure:7108: checking emacs default.el" >&5  echo "configure:7132: checking emacs default.el" >&5
7132  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
7133          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 `
7134  else  else
# Line 7133  cat >> conftest.el <<EOF Line 7157  cat >> conftest.el <<EOF
7157  EOF  EOF
7158    
7159  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
7160  echo "configure:7137: checking emacs info/dir" >&5  echo "configure:7161: checking emacs info/dir" >&5
7161  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
7162      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
7163  else  else
# Line 7151  echo "$ac_t""$INFO_DIR" 1>&6 Line 7175  echo "$ac_t""$INFO_DIR" 1>&6
7175    
7176    
7177  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
7178  echo "configure:7155: checking for tcl/tk" >&5  echo "configure:7179: checking for tcl/tk" >&5
7179    
7180    
7181  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 7174  EOF Line 7198  EOF
7198  # 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.
7199  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
7200  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7201  echo "configure:7178: checking for $ac_word" >&5  echo "configure:7202: checking for $ac_word" >&5
7202  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
7203    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7204  else  else
# Line 7279  if test -f ${TK_CONFIG_PREFIX}/../bin/tc Line 7303  if test -f ${TK_CONFIG_PREFIX}/../bin/tc
7303     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"     TCL_STUB_LIBS="-L${TK_CONFIG_PREFIX}/lib -ltkstub${TCL_VERSION_DOT_FREE} -ltclstub${TCL_VERSION_DOT_FREE}"
7304  else  else
7305    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6    echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
7306  echo "configure:7283: checking for main in -llieee" >&5  echo "configure:7307: checking for main in -llieee" >&5
7307  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
7308  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
7309    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7287  else Line 7311  else
7311    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7312  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
7313  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7314  #line 7291 "configure"  #line 7315 "configure"
7315  #include "confdefs.h"  #include "confdefs.h"
7316    
7317  int main() {  int main() {
7318  main()  main()
7319  ; return 0; }  ; return 0; }
7320  EOF  EOF
7321  if { (eval echo configure:7298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7322    rm -rf conftest*    rm -rf conftest*
7323    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7324  else  else
# Line 7362  NOTIFY=$enable_notify Line 7386  NOTIFY=$enable_notify
7386    
7387  if test "$use" != "mingw" ; then  if test "$use" != "mingw" ; then
7388    echo $ac_n "checking alloca""... $ac_c" 1>&6    echo $ac_n "checking alloca""... $ac_c" 1>&6
7389  echo "configure:7366: checking alloca" >&5  echo "configure:7390: checking alloca" >&5
7390    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
7391    gcl_ok=no    gcl_ok=no
7392  else  else
7393    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7394  #line 7371 "configure"  #line 7395 "configure"
7395  #include "confdefs.h"  #include "confdefs.h"
7396  #include <stdio.h>  #include <stdio.h>
7397    int main() { exit(alloca(500) != NULL ? 0 : 1);}    int main() { exit(alloca(500) != NULL ? 0 : 1);}
7398  EOF  EOF
7399  if { (eval echo configure:7376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7400  then  then
7401    :    :
7402  else  else
# Line 7395  EOF Line 7419  EOF
7419    gcl_ok=no    gcl_ok=no
7420  else  else
7421    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7422  #line 7399 "configure"  #line 7423 "configure"
7423  #include "confdefs.h"  #include "confdefs.h"
7424  #include <alloca.h>  #include <alloca.h>
7425      int main() { exit(alloca(500) != NULL ? 0 : 1)}      int main() { exit(alloca(500) != NULL ? 0 : 1)}
7426  EOF  EOF
7427  if { (eval echo configure:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7428  then  then
7429    :    :
7430  else  else
# Line 7455  fi Line 7479  fi
7479  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
7480  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
7481  echo $ac_n "checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo $ac_n "checking for buggy gcc version from redhat""... $ac_c" 1>&6
7482  echo "configure:7459: checking for buggy gcc version from redhat" >&5  echo "configure:7483: checking for buggy gcc version from redhat" >&5
7483  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
7484     then     then
7485          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1

Legend:
Removed from v.1.197  
changed lines
  Added in v.1.198

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