/[gcl]/gcl/configure
ViewVC logotype

Diff of /gcl/configure

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

revision 1.107.4.1.2.2.2.12 by camm, Sun Nov 16 19:06:40 2003 UTC revision 1.107.4.1.2.2.2.13 by camm, Mon Nov 17 01:15:17 2003 UTC
# Line 1711  LIBS="$ac_save_LIBS" Line 1711  LIBS="$ac_save_LIBS"
1711  fi  fi
1712  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1713    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
1714      echo $ac_n "checking "for external gmp version"""... $ac_c" 1>&6
1715    echo "configure:1716: checking "for external gmp version"" >&5
1716                            if test "$cross_compiling" = yes; then
1717      echo "Cannot use dynamic gmp lib"
1718    else
1719      cat > conftest.$ac_ext <<EOF
1720    #line 1721 "configure"
1721    #include "confdefs.h"
1722    #include <gmp.h>
1723                                        int main() {
1724                                        #if __GNU_MP_VERSION == 4
1725                                            return 0;
1726                                        #else
1727                                            return -1;
1728                                        #endif
1729                                        }
1730    EOF
1731    if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1732    then
1733    MPFILES=$GMPDIR/mpn/mul_n.o    MPFILES=$GMPDIR/mpn/mul_n.o
1734                          PATCHED_SYMBOLS=__gmpn_toom3_mul_n                                  PATCHED_SYMBOLS=__gmpn_toom3_mul_n
1735                          if test "$use" = "m68k-linux" ; then                                  if test "$use" = "m68k-linux" ; then
1736                                  MPFILES="$MPFILES $GMPDIR/mpn/lshift.o $GMPDIR/mpn/rshift.o"                                          MPFILES="$MPFILES $GMPDIR/mpn/lshift.o $GMPDIR/mpn/rshift.o"
1737                                  PATCHED_SYMBOLS="$PATCHED_SYMBOLS __gmpn_lshift __gmpn_rshift"                                          PATCHED_SYMBOLS="$PATCHED_SYMBOLS __gmpn_lshift __gmpn_rshift"
1738                          fi                                  fi
1739                          TLIBS="$TLIBS -lgmp"                                  TLIBS="$TLIBS -lgmp"
1740                          echo "#include \"gmp.h\"" >foo.c                                  echo "#include \"gmp.h\"" >foo.c
1741                          echo "int main() {return 0;}" >>foo.c                                  echo "int main() {return 0;}" >>foo.c
1742                          MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`                                  MP_INCLUDE=`cpp foo.c | grep /gmp.h | head -1l | $AWK '{print $3}' | tr -d '"'`
1743                          rm -f foo.c                                  rm -f foo.c
1744    else
1745      echo "configure: failed program was:" >&5
1746      cat conftest.$ac_ext >&5
1747      rm -fr conftest*
1748      echo "Cannot use dynamic gmp lib"
1749    fi
1750    rm -fr conftest*
1751    fi
1752    
1753  else  else
1754    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1755  echo "Cannot use dynamic gmp lib" ; exit 1  echo "Cannot use dynamic gmp lib"
1756  fi  fi
1757    
1758  else  else
1759    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1760  echo "Cannot use dynamic gmp lib" ; exit 1  echo "Cannot use dynamic gmp lib"
1761  fi  fi
1762    
1763    fi
1764    
1765  else                      if test "$MP_INCLUDE" = "" ; then                      
1766    
1767          cp $GMPDIR/gmp.h h/gmp.h          cp $GMPDIR/gmp.h h/gmp.h
1768          MP_INCLUDE=h/gmp.h          MP_INCLUDE=h/gmp.h
# Line 1742  else Line 1771  else
1771  fi  fi
1772    
1773   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
1774  echo "configure:1746: checking "for size of gmp limbs"" >&5  echo "configure:1775: checking "for size of gmp limbs"" >&5
1775   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1776    mpsize=0    mpsize=0
1777  else  else
1778    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1779  #line 1751 "configure"  #line 1780 "configure"
1780  #include "confdefs.h"  #include "confdefs.h"
1781  #include <stdio.h>  #include <stdio.h>
1782          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1758  else Line 1787  else
1787          return 0;          return 0;
1788          }          }
1789  EOF  EOF
1790  if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1791  then  then
1792    mpsize=`cat conftest1`    mpsize=`cat conftest1`
1793  else  else
# Line 1781  EOF Line 1810  EOF
1810   echo "$ac_t""$mpsize" 1>&6   echo "$ac_t""$mpsize" 1>&6
1811    
1812   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6   echo $ac_n "checking "_SHORT_LIMB"""... $ac_c" 1>&6
1813  echo "configure:1785: checking "_SHORT_LIMB"" >&5  echo "configure:1814: checking "_SHORT_LIMB"" >&5
1814   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1815    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1816  else  else
1817    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1818  #line 1790 "configure"  #line 1819 "configure"
1819  #include "confdefs.h"  #include "confdefs.h"
1820  #include <stdio.h>  #include <stdio.h>
1821          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1798  else Line 1827  else
1827          #endif          #endif
1828          }          }
1829  EOF  EOF
1830  if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1831  then  then
1832    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
1833  #define __SHORT_LIMB 1  #define __SHORT_LIMB 1
# Line 1814  rm -fr conftest* Line 1843  rm -fr conftest*
1843  fi  fi
1844    
1845   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6   echo $ac_n "checking "_LONG_LONG_LIMB"""... $ac_c" 1>&6
1846  echo "configure:1818: checking "_LONG_LONG_LIMB"" >&5  echo "configure:1847: checking "_LONG_LONG_LIMB"" >&5
1847   if test "$cross_compiling" = yes; then   if test "$cross_compiling" = yes; then
1848    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
1849  else  else
1850    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
1851  #line 1823 "configure"  #line 1852 "configure"
1852  #include "confdefs.h"  #include "confdefs.h"
1853  #include <stdio.h>  #include <stdio.h>
1854          #include "$MP_INCLUDE"          #include "$MP_INCLUDE"
# Line 1831  else Line 1860  else
1860          #endif          #endif
1861          }          }
1862  EOF  EOF
1863  if { (eval echo configure:1835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1864  then  then
1865    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
1866  #define __LONG_LONG_LIMB 1  #define __LONG_LONG_LIMB 1
# Line 1870  fi Line 1899  fi
1899  # 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.
1900  # --without-x overrides everything else, but does not touch the cache.  # --without-x overrides everything else, but does not touch the cache.
1901  echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
1902  echo "configure:1874: checking for X" >&5  echo "configure:1903: checking for X" >&5
1903    
1904  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
1905  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
# Line 1932  if test "$ac_x_includes" = NO; then Line 1961  if test "$ac_x_includes" = NO; then
1961    
1962    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
1963  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
1964  #line 1936 "configure"  #line 1965 "configure"
1965  #include "confdefs.h"  #include "confdefs.h"
1966  #include <$x_direct_test_include>  #include <$x_direct_test_include>
1967  EOF  EOF
1968  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1969  { (eval echo configure:1941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:1970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1970  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1971  if test -z "$ac_err"; then  if test -z "$ac_err"; then
1972    rm -rf conftest*    rm -rf conftest*
# Line 2006  if test "$ac_x_libraries" = NO; then Line 2035  if test "$ac_x_libraries" = NO; then
2035    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2036    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
2037  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2038  #line 2010 "configure"  #line 2039 "configure"
2039  #include "confdefs.h"  #include "confdefs.h"
2040    
2041  int main() {  int main() {
2042  ${x_direct_test_function}()  ${x_direct_test_function}()
2043  ; return 0; }  ; return 0; }
2044  EOF  EOF
2045  if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2046    rm -rf conftest*    rm -rf conftest*
2047    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
2048  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 2119  else Line 2148  else
2148      case "`(uname -sr) 2>/dev/null`" in      case "`(uname -sr) 2>/dev/null`" in
2149      "SunOS 5"*)      "SunOS 5"*)
2150        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
2151  echo "configure:2123: checking whether -R must be followed by a space" >&5  echo "configure:2152: checking whether -R must be followed by a space" >&5
2152        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"        ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2153        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
2154  #line 2126 "configure"  #line 2155 "configure"
2155  #include "confdefs.h"  #include "confdefs.h"
2156    
2157  int main() {  int main() {
2158    
2159  ; return 0; }  ; return 0; }
2160  EOF  EOF
2161  if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2162    rm -rf conftest*    rm -rf conftest*
2163    ac_R_nospace=yes    ac_R_nospace=yes
2164  else  else
# Line 2145  rm -f conftest* Line 2174  rm -f conftest*
2174        else        else
2175          LIBS="$ac_xsave_LIBS -R $x_libraries"          LIBS="$ac_xsave_LIBS -R $x_libraries"
2176          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
2177  #line 2149 "configure"  #line 2178 "configure"
2178  #include "confdefs.h"  #include "confdefs.h"
2179    
2180  int main() {  int main() {
2181    
2182  ; return 0; }  ; return 0; }
2183  EOF  EOF
2184  if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2185    rm -rf conftest*    rm -rf conftest*
2186    ac_R_space=yes    ac_R_space=yes
2187  else  else
# Line 2184  rm -f conftest* Line 2213  rm -f conftest*
2213      # libraries were built with DECnet support.  And karl@cs.umb.edu says      # libraries were built with DECnet support.  And karl@cs.umb.edu says
2214      # the Alpha needs dnet_stub (dnet does not exist).      # the Alpha needs dnet_stub (dnet does not exist).
2215      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
2216  echo "configure:2188: checking for dnet_ntoa in -ldnet" >&5  echo "configure:2217: checking for dnet_ntoa in -ldnet" >&5
2217  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2218  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
2219    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2192  else Line 2221  else
2221    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2222  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
2223  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2224  #line 2196 "configure"  #line 2225 "configure"
2225  #include "confdefs.h"  #include "confdefs.h"
2226  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2227  /* 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 2203  int main() { Line 2232  int main() {
2232  dnet_ntoa()  dnet_ntoa()
2233  ; return 0; }  ; return 0; }
2234  EOF  EOF
2235  if { (eval echo configure:2207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2236    rm -rf conftest*    rm -rf conftest*
2237    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2238  else  else
# Line 2225  fi Line 2254  fi
2254    
2255      if test $ac_cv_lib_dnet_dnet_ntoa = no; then      if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2256        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
2257  echo "configure:2229: checking for dnet_ntoa in -ldnet_stub" >&5  echo "configure:2258: checking for dnet_ntoa in -ldnet_stub" >&5
2258  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2259  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
2260    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2233  else Line 2262  else
2262    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2263  LIBS="-ldnet_stub  $LIBS"  LIBS="-ldnet_stub  $LIBS"
2264  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2265  #line 2237 "configure"  #line 2266 "configure"
2266  #include "confdefs.h"  #include "confdefs.h"
2267  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2268  /* 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 2244  int main() { Line 2273  int main() {
2273  dnet_ntoa()  dnet_ntoa()
2274  ; return 0; }  ; return 0; }
2275  EOF  EOF
2276  if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2277    rm -rf conftest*    rm -rf conftest*
2278    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2279  else  else
# Line 2273  fi Line 2302  fi
2302      # The nsl library prevents programs from opening the X display      # The nsl library prevents programs from opening the X display
2303      # on Irix 5.2, according to dickey@clark.net.      # on Irix 5.2, according to dickey@clark.net.
2304      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6      echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2305  echo "configure:2277: checking for gethostbyname" >&5  echo "configure:2306: checking for gethostbyname" >&5
2306  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2307    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2308  else  else
2309    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2310  #line 2282 "configure"  #line 2311 "configure"
2311  #include "confdefs.h"  #include "confdefs.h"
2312  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2313      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 2301  gethostbyname(); Line 2330  gethostbyname();
2330    
2331  ; return 0; }  ; return 0; }
2332  EOF  EOF
2333  if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2334    rm -rf conftest*    rm -rf conftest*
2335    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
2336  else  else
# Line 2322  fi Line 2351  fi
2351    
2352      if test $ac_cv_func_gethostbyname = no; then      if test $ac_cv_func_gethostbyname = no; then
2353        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2354  echo "configure:2326: checking for gethostbyname in -lnsl" >&5  echo "configure:2355: checking for gethostbyname in -lnsl" >&5
2355  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2356  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
2357    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2330  else Line 2359  else
2359    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2360  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
2361  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2362  #line 2334 "configure"  #line 2363 "configure"
2363  #include "confdefs.h"  #include "confdefs.h"
2364  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2365  /* 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 2341  int main() { Line 2370  int main() {
2370  gethostbyname()  gethostbyname()
2371  ; return 0; }  ; return 0; }
2372  EOF  EOF
2373  if { (eval echo configure:2345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2374    rm -rf conftest*    rm -rf conftest*
2375    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2376  else  else
# Line 2371  fi Line 2400  fi
2400      # -lsocket must be given before -lnsl if both are needed.      # -lsocket must be given before -lnsl if both are needed.
2401      # We assume that if connect needs -lnsl, so does gethostbyname.      # We assume that if connect needs -lnsl, so does gethostbyname.
2402      echo $ac_n "checking for connect""... $ac_c" 1>&6      echo $ac_n "checking for connect""... $ac_c" 1>&6
2403  echo "configure:2375: checking for connect" >&5  echo "configure:2404: checking for connect" >&5
2404  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2405    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2406  else  else
2407    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2408  #line 2380 "configure"  #line 2409 "configure"
2409  #include "confdefs.h"  #include "confdefs.h"
2410  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2411      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 2399  connect(); Line 2428  connect();
2428    
2429  ; return 0; }  ; return 0; }
2430  EOF  EOF
2431  if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2432    rm -rf conftest*    rm -rf conftest*
2433    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
2434  else  else
# Line 2420  fi Line 2449  fi
2449    
2450      if test $ac_cv_func_connect = no; then      if test $ac_cv_func_connect = no; then
2451        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6        echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2452  echo "configure:2424: checking for connect in -lsocket" >&5  echo "configure:2453: checking for connect in -lsocket" >&5
2453  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2454  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
2455    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2428  else Line 2457  else
2457    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2458  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"  LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2459  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2460  #line 2432 "configure"  #line 2461 "configure"
2461  #include "confdefs.h"  #include "confdefs.h"
2462  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2463  /* 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 2439  int main() { Line 2468  int main() {
2468  connect()  connect()
2469  ; return 0; }  ; return 0; }
2470  EOF  EOF
2471  if { (eval echo configure:2443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2472    rm -rf conftest*    rm -rf conftest*
2473    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2474  else  else
# Line 2463  fi Line 2492  fi
2492    
2493      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.      # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2494      echo $ac_n "checking for remove""... $ac_c" 1>&6      echo $ac_n "checking for remove""... $ac_c" 1>&6
2495  echo "configure:2467: checking for remove" >&5  echo "configure:2496: checking for remove" >&5
2496  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2497    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2498  else  else
2499    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2500  #line 2472 "configure"  #line 2501 "configure"
2501  #include "confdefs.h"  #include "confdefs.h"
2502  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2503      which can conflict with char remove(); below.  */      which can conflict with char remove(); below.  */
# Line 2491  remove(); Line 2520  remove();
2520    
2521  ; return 0; }  ; return 0; }
2522  EOF  EOF
2523  if { (eval echo configure:2495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524    rm -rf conftest*    rm -rf conftest*
2525    eval "ac_cv_func_remove=yes"    eval "ac_cv_func_remove=yes"
2526  else  else
# Line 2512  fi Line 2541  fi
2541    
2542      if test $ac_cv_func_remove = no; then      if test $ac_cv_func_remove = no; then
2543        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6        echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2544  echo "configure:2516: checking for remove in -lposix" >&5  echo "configure:2545: checking for remove in -lposix" >&5
2545  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`  ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2546  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
2547    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2520  else Line 2549  else
2549    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2550  LIBS="-lposix  $LIBS"  LIBS="-lposix  $LIBS"
2551  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2552  #line 2524 "configure"  #line 2553 "configure"
2553  #include "confdefs.h"  #include "confdefs.h"
2554  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2555  /* 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 2531  int main() { Line 2560  int main() {
2560  remove()  remove()
2561  ; return 0; }  ; return 0; }
2562  EOF  EOF
2563  if { (eval echo configure:2535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2564    rm -rf conftest*    rm -rf conftest*
2565    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2566  else  else
# Line 2555  fi Line 2584  fi
2584    
2585      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.      # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2586      echo $ac_n "checking for shmat""... $ac_c" 1>&6      echo $ac_n "checking for shmat""... $ac_c" 1>&6
2587  echo "configure:2559: checking for shmat" >&5  echo "configure:2588: checking for shmat" >&5
2588  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2589    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2590  else  else
2591    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2592  #line 2564 "configure"  #line 2593 "configure"
2593  #include "confdefs.h"  #include "confdefs.h"
2594  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
2595      which can conflict with char shmat(); below.  */      which can conflict with char shmat(); below.  */
# Line 2583  shmat(); Line 2612  shmat();
2612    
2613  ; return 0; }  ; return 0; }
2614  EOF  EOF
2615  if { (eval echo configure:2587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2616    rm -rf conftest*    rm -rf conftest*
2617    eval "ac_cv_func_shmat=yes"    eval "ac_cv_func_shmat=yes"
2618  else  else
# Line 2604  fi Line 2633  fi
2633    
2634      if test $ac_cv_func_shmat = no; then      if test $ac_cv_func_shmat = no; then
2635        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6        echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2636  echo "configure:2608: checking for shmat in -lipc" >&5  echo "configure:2637: checking for shmat in -lipc" >&5
2637  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2638  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
2639    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2612  else Line 2641  else
2641    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2642  LIBS="-lipc  $LIBS"  LIBS="-lipc  $LIBS"
2643  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2644  #line 2616 "configure"  #line 2645 "configure"
2645  #include "confdefs.h"  #include "confdefs.h"
2646  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2647  /* 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 2623  int main() { Line 2652  int main() {
2652  shmat()  shmat()
2653  ; return 0; }  ; return 0; }
2654  EOF  EOF
2655  if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2656    rm -rf conftest*    rm -rf conftest*
2657    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2658  else  else
# Line 2656  fi Line 2685  fi
2685    # libraries we check for below, so use a different variable.    # libraries we check for below, so use a different variable.
2686    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.    #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2687    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6    echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2688  echo "configure:2660: checking for IceConnectionNumber in -lICE" >&5  echo "configure:2689: checking for IceConnectionNumber in -lICE" >&5
2689  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2690  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
2691    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2664  else Line 2693  else
2693    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2694  LIBS="-lICE $X_EXTRA_LIBS $LIBS"  LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2695  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2696  #line 2668 "configure"  #line 2697 "configure"
2697  #include "confdefs.h"  #include "confdefs.h"
2698  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2699  /* 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 2704  int main() {
2704  IceConnectionNumber()  IceConnectionNumber()
2705  ; return 0; }  ; return 0; }
2706  EOF  EOF
2707  if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2708    rm -rf conftest*    rm -rf conftest*
2709    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2710  else  else
# Line 2706  echo $X_PRE_LIBS Line 2735  echo $X_PRE_LIBS
2735    
2736  miss=0  miss=0
2737  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
2738  echo "configure:2710: checking for main in -lXmu" >&5  echo "configure:2739: checking for main in -lXmu" >&5
2739  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
2740  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
2741    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2714  else Line 2743  else
2743    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2744  LIBS="-lXmu $X_LIBS $LIBS"  LIBS="-lXmu $X_LIBS $LIBS"
2745  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2746  #line 2718 "configure"  #line 2747 "configure"
2747  #include "confdefs.h"  #include "confdefs.h"
2748    
2749  int main() {  int main() {
2750  main()  main()
2751  ; return 0; }  ; return 0; }
2752  EOF  EOF
2753  if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2754    rm -rf conftest*    rm -rf conftest*
2755    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2756  else  else
# Line 2743  miss=1 Line 2772  miss=1
2772  fi  fi
2773    
2774  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
2775  echo "configure:2747: checking for main in -lXt" >&5  echo "configure:2776: checking for main in -lXt" >&5
2776  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
2777  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
2778    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2751  else Line 2780  else
2780    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2781  LIBS="-lXt $X_LIBS $LIBS"  LIBS="-lXt $X_LIBS $LIBS"
2782  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2783  #line 2755 "configure"  #line 2784 "configure"
2784  #include "confdefs.h"  #include "confdefs.h"
2785    
2786  int main() {  int main() {
2787  main()  main()
2788  ; return 0; }  ; return 0; }
2789  EOF  EOF
2790  if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2791    rm -rf conftest*    rm -rf conftest*
2792    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2793  else  else
# Line 2780  miss=1 Line 2809  miss=1
2809  fi  fi
2810    
2811  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
2812  echo "configure:2784: checking for main in -lXext" >&5  echo "configure:2813: checking for main in -lXext" >&5
2813  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
2814  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
2815    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2788  else Line 2817  else
2817    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2818  LIBS="-lXext $X_LIBS $LIBS"  LIBS="-lXext $X_LIBS $LIBS"
2819  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2820  #line 2792 "configure"  #line 2821 "configure"
2821  #include "confdefs.h"  #include "confdefs.h"
2822    
2823  int main() {  int main() {
2824  main()  main()
2825  ; return 0; }  ; return 0; }
2826  EOF  EOF
2827  if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2828    rm -rf conftest*    rm -rf conftest*
2829    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2830  else  else
# Line 2817  miss=1 Line 2846  miss=1
2846  fi  fi
2847    
2848  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
2849  echo "configure:2821: checking for main in -lXaw" >&5  echo "configure:2850: checking for main in -lXaw" >&5
2850  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
2851  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
2852    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2825  else Line 2854  else
2854    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2855  LIBS="-lXaw $X_LIBS $LIBS"  LIBS="-lXaw $X_LIBS $LIBS"
2856  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2857  #line 2829 "configure"  #line 2858 "configure"
2858  #include "confdefs.h"  #include "confdefs.h"
2859    
2860  int main() {  int main() {
2861  main()  main()
2862  ; return 0; }  ; return 0; }
2863  EOF  EOF
2864  if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2865    rm -rf conftest*    rm -rf conftest*
2866    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2867  else  else
# Line 2854  miss=1 Line 2883  miss=1
2883  fi  fi
2884    
2885  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6  echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
2886  echo "configure:2858: checking for main in -lX11" >&5  echo "configure:2887: checking for main in -lX11" >&5
2887  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
2888  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
2889    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2862  else Line 2891  else
2891    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2892  LIBS="-lX11 $X_LIBS $LIBS"  LIBS="-lX11 $X_LIBS $LIBS"
2893  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2894  #line 2866 "configure"  #line 2895 "configure"
2895  #include "confdefs.h"  #include "confdefs.h"
2896    
2897  int main() {  int main() {
2898  main()  main()
2899  ; return 0; }  ; return 0; }
2900  EOF  EOF
2901  if { (eval echo configure:2873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2902    rm -rf conftest*    rm -rf conftest*
2903    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2904  else  else
# Line 2908  fi Line 2937  fi
2937  if test "$enable_dlopen" = "yes" ; then  if test "$enable_dlopen" = "yes" ; then
2938    
2939          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6          echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2940  echo "configure:2912: checking for dlopen in -ldl" >&5  echo "configure:2941: checking for dlopen in -ldl" >&5
2941  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2942  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
2943    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2916  else Line 2945  else
2945    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2946  LIBS="-ldl  $LIBS"  LIBS="-ldl  $LIBS"
2947  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2948  #line 2920 "configure"  #line 2949 "configure"
2949  #include "confdefs.h"  #include "confdefs.h"
2950  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2951  /* 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 2927  int main() { Line 2956  int main() {
2956  dlopen()  dlopen()
2957  ; return 0; }  ; return 0; }
2958  EOF  EOF
2959  if { (eval echo configure:2931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2960    rm -rf conftest*    rm -rf conftest*
2961    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2962  else  else
# Line 2963  fi Line 2992  fi
2992  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then  if test "$enable_statsysbfd" = "yes" || test "$enable_dynsysbfd" = "yes" ; then
2993          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`          ac_safe=`echo "bfd.h" | sed 'y%./+-%__p_%'`
2994  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6  echo $ac_n "checking for bfd.h""... $ac_c" 1>&6
2995  echo "configure:2967: checking for bfd.h" >&5  echo "configure:2996: checking for bfd.h" >&5
2996  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2997    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2998  else  else
2999    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3000  #line 2972 "configure"  #line 3001 "configure"
3001  #include "confdefs.h"  #include "confdefs.h"
3002  #include <bfd.h>  #include <bfd.h>
3003  EOF  EOF
3004  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3005  { (eval echo configure:2977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3006  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3007  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3008    rm -rf conftest*    rm -rf conftest*
# Line 2990  fi Line 3019  fi
3019  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3020    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3021    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
3022  echo "configure:2994: checking for bfd_init in -lbfd" >&5  echo "configure:3023: checking for bfd_init in -lbfd" >&5
3023  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`  ac_lib_var=`echo bfd'_'bfd_init | sed 'y%./+-%__p_%'`
3024  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
3025    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2998  else Line 3027  else
3027    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3028  LIBS="-lbfd -liberty $LIBS"  LIBS="-lbfd -liberty $LIBS"
3029  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3030  #line 3002 "configure"  #line 3031 "configure"
3031  #include "confdefs.h"  #include "confdefs.h"
3032  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
3033  /* 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 3038  int main() {
3038  bfd_init()  bfd_init()
3039  ; return 0; }  ; return 0; }
3040  EOF  EOF
3041  if { (eval echo configure:3013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3042    rm -rf conftest*    rm -rf conftest*
3043    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
3044  else  else
# Line 3028  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 3057  if eval "test \"`echo '$ac_cv_lib_'$ac_l
3057                  # Old binutils appear to need CONST defined to const                  # Old binutils appear to need CONST defined to const
3058                  #                  #
3059                          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
3060  echo "configure:3032: checking if need to define CONST for bfd" >&5  echo "configure:3061: checking if need to define CONST for bfd" >&5
3061                          if test "$cross_compiling" = yes; then                          if test "$cross_compiling" = yes; then
3062    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
3063  else  else
3064    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3065  #line 3037 "configure"  #line 3066 "configure"
3066  #include "confdefs.h"  #include "confdefs.h"
3067  #define IN_GCC  #define IN_GCC
3068                                      #include <bfd.h>                                      #include <bfd.h>
3069                                      int main() { symbol_info t; return 0;}                                      int main() { symbol_info t; return 0;}
3070  EOF  EOF
3071  if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3072  then  then
3073    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3074  else  else
# Line 3050  else Line 3079  else
3079    echo "$ac_t""cannot use bfd" 1>&6 exit 1;    echo "$ac_t""cannot use bfd" 1>&6 exit 1;
3080  else  else
3081    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3082  #line 3054 "configure"  #line 3083 "configure"
3083  #include "confdefs.h"  #include "confdefs.h"
3084  #define CONST const  #define CONST const
3085                                              #define IN_GCC                                              #define IN_GCC
3086                                              #include <bfd.h>                                              #include <bfd.h>
3087                                              int main() {symbol_info t; return 0;}                                              int main() {symbol_info t; return 0;}
3088  EOF  EOF
3089  if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3090  then  then
3091    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3092                                          cat >> confdefs.h <<\EOF                                          cat >> confdefs.h <<\EOF
# Line 3097  EOF Line 3126  EOF
3126  #  #
3127    
3128          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6          echo $ac_n "checking for useable bfd_boolean""... $ac_c" 1>&6
3129  echo "configure:3101: checking for useable bfd_boolean" >&5  echo "configure:3130: checking for useable bfd_boolean" >&5
3130          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3131    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3132  else  else
3133    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3134  #line 3106 "configure"  #line 3135 "configure"
3135  #include "confdefs.h"  #include "confdefs.h"
3136  #define IN_GCC  #define IN_GCC
3137                      #include <bfd.h>                      #include <bfd.h>
3138                      bfd_boolean foo() {return FALSE;}                      bfd_boolean foo() {return FALSE;}
3139                      int main() {return 0;}                      int main() {return 0;}
3140  EOF  EOF
3141  if { (eval echo configure:3113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3142  then  then
3143    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3144                  cat >> confdefs.h <<\EOF                  cat >> confdefs.h <<\EOF
# Line 3196  fi Line 3225  fi
3225  # addresses, in calculating a page for an address in the heap.  # addresses, in calculating a page for an address in the heap.
3226    
3227  echo $ac_n "checking size of long""... $ac_c" 1>&6  echo $ac_n "checking size of long""... $ac_c" 1>&6
3228  echo "configure:3200: checking size of long" >&5  echo "configure:3229: checking size of long" >&5
3229  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3230    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3231  else  else
# Line 3204  else Line 3233  else
3233    ac_cv_sizeof_long=0    ac_cv_sizeof_long=0
3234  else  else
3235    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3236  #line 3208 "configure"  #line 3237 "configure"
3237  #include "confdefs.h"  #include "confdefs.h"
3238  #include <stdio.h>  #include <stdio.h>
3239  #include <sys/types.h>  #include <sys/types.h>
# Line 3216  main() Line 3245  main()
3245    exit(0);    exit(0);
3246  }  }
3247  EOF  EOF
3248  if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3249  then  then
3250    ac_cv_sizeof_long=`cat conftestval`    ac_cv_sizeof_long=`cat conftestval`
3251  else  else
# Line 3236  EOF Line 3265  EOF
3265    
3266    
3267  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6  echo $ac_n "checking sizeof struct contblock""... $ac_c" 1>&6
3268  echo "configure:3240: checking sizeof struct contblock" >&5  echo "configure:3269: checking sizeof struct contblock" >&5
3269    
3270  # work around MSYS pwd result incompatibility  # work around MSYS pwd result incompatibility
3271  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
# Line 3244  if test "$cross_compiling" = yes; then Line 3273  if test "$cross_compiling" = yes; then
3273    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
3274  else  else
3275    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3276  #line 3248 "configure"  #line 3277 "configure"
3277  #include "confdefs.h"  #include "confdefs.h"
3278  #include <stdio.h>  #include <stdio.h>
3279          #define EXTER          #define EXTER
# Line 3258  else Line 3287  else
3287          return 0;          return 0;
3288          }          }
3289  EOF  EOF
3290  if { (eval echo configure:3262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3291  then  then
3292    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
3293  else  else
# Line 3275  if test "$cross_compiling" = yes; then Line 3304  if test "$cross_compiling" = yes; then
3304    echo Cannot find sizeof struct contblock;exit 1    echo Cannot find sizeof struct contblock;exit 1
3305  else  else
3306    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3307  #line 3279 "configure"  #line 3308 "configure"
3308  #include "confdefs.h"  #include "confdefs.h"
3309  #include <stdio.h>  #include <stdio.h>
3310          #define EXTER          #define EXTER
# Line 3289  else Line 3318  else
3318          return 0;          return 0;
3319          }          }
3320  EOF  EOF
3321  if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3322  then  then
3323    sizeof_contblock=`cat conftest1`    sizeof_contblock=`cat conftest1`
3324  else  else
# Line 3314  for ac_hdr in endian.h Line 3343  for ac_hdr in endian.h
3343  do  do
3344  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3345  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3346  echo "configure:3318: checking for $ac_hdr" >&5  echo "configure:3347: checking for $ac_hdr" >&5
3347  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3348    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3349  else  else
3350    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3351  #line 3323 "configure"  #line 3352 "configure"
3352  #include "confdefs.h"  #include "confdefs.h"
3353  #include <$ac_hdr>  #include <$ac_hdr>
3354  EOF  EOF
3355  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3356  { (eval echo configure:3328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3357  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3358  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3359    rm -rf conftest*    rm -rf conftest*
# Line 3345  if eval "test \"`echo '$ac_cv_header_'$a Line 3374  if eval "test \"`echo '$ac_cv_header_'$a
3374  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
3375  EOF  EOF
3376   echo $ac_n "checking "endianness"""... $ac_c" 1>&6   echo $ac_n "checking "endianness"""... $ac_c" 1>&6
3377  echo "configure:3349: checking "endianness"" >&5  echo "configure:3378: checking "endianness"" >&5
3378          if test "$cross_compiling" = yes; then          if test "$cross_compiling" = yes; then
3379    echo "$ac_t""big" 1>&6    echo "$ac_t""big" 1>&6
3380  else  else
3381    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3382  #line 3354 "configure"  #line 3383 "configure"
3383  #include "confdefs.h"  #include "confdefs.h"
3384  #define __ARMEB__  #define __ARMEB__
3385                  #include <endian.h>                  #include <endian.h>
3386                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}                  int main() { return BYTE_ORDER == __LITTLE_ENDIAN ? 0 : 1;}
3387  EOF  EOF
3388  if { (eval echo configure:3360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3389  then  then
3390    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3391  #define LITTLE_END 1  #define LITTLE_END 1
# Line 3379  done Line 3408  done
3408    
3409    
3410  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6  echo $ac_n "checking "finding DBEGIN"""... $ac_c" 1>&6
3411  echo "configure:3383: checking "finding DBEGIN"" >&5  echo "configure:3412: checking "finding DBEGIN"" >&5
3412  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3413    dbegin=0    dbegin=0
3414  else  else
3415    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3416  #line 3388 "configure"  #line 3417 "configure"
3417  #include "confdefs.h"  #include "confdefs.h"
3418  #include <stdio.h>  #include <stdio.h>
3419              #include <stdlib.h>              #include <stdlib.h>
# Line 3401  main() Line 3430  main()
3430    return 0;    return 0;
3431  }  }
3432  EOF  EOF
3433  if { (eval echo configure:3405: \"$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    dbegin=`cat conftest1`    dbegin=`cat conftest1`
3436  else  else
# Line 3423  echo "$ac_t""got $dbegin" 1>&6 Line 3452  echo "$ac_t""got $dbegin" 1>&6
3452    
3453    
3454  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6  echo $ac_n "checking "finding CSTACK_ADDRESS"""... $ac_c" 1>&6
3455  echo "configure:3427: checking "finding CSTACK_ADDRESS"" >&5  echo "configure:3456: checking "finding CSTACK_ADDRESS"" >&5
3456  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3457    cstack_address=0    cstack_address=0
3458  else  else
3459    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3460  #line 3432 "configure"  #line 3461 "configure"
3461  #include "confdefs.h"  #include "confdefs.h"
3462  #include <stdio.h>  #include <stdio.h>
3463  main()  main()
# Line 3440  main() Line 3469  main()
3469    return 0;    return 0;
3470  }  }
3471  EOF  EOF
3472  if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3473  then  then
3474    cstack_address=`cat conftest1`    cstack_address=`cat conftest1`
3475  else  else
# Line 3462  echo "$ac_t""got $cstack_address" 1>&6 Line 3491  echo "$ac_t""got $cstack_address" 1>&6
3491    
3492    
3493  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6  echo $ac_n "checking "sizeof long long int"""... $ac_c" 1>&6
3494  echo "configure:3466: checking "sizeof long long int"" >&5  echo "configure:3495: checking "sizeof long long int"" >&5
3495  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3496    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3497    
3498  else  else
3499    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3500  #line 3472 "configure"  #line 3501 "configure"
3501  #include "confdefs.h"  #include "confdefs.h"
3502  #include <stdio.h>  #include <stdio.h>
3503  main()  main()
# Line 3478  main() Line 3507  main()
3507  }  }
3508    
3509  EOF  EOF
3510  if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3511  then  then
3512    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
3513  #define HAVE_LONG_LONG 1  #define HAVE_LONG_LONG 1
# Line 3533  FLISP="saved_$SYSTEM" Line 3562  FLISP="saved_$SYSTEM"
3562    
3563  # pagewidth  # pagewidth
3564  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6  echo $ac_n "checking for pagewidth""... $ac_c" 1>&6
3565  echo "configure:3537: checking for pagewidth" >&5  echo "configure:3566: checking for pagewidth" >&5
3566  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
3567    PAGEWIDTH=0    PAGEWIDTH=0
3568  else  else
3569    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3570  #line 3542 "configure"  #line 3571 "configure"
3571  #include "confdefs.h"  #include "confdefs.h"
3572  #include <stdio.h>  #include <stdio.h>
3573              #include <unistd.h>              #include <unistd.h>
# Line 3548  int main() {size_t i=getpagesize(),j; Line 3577  int main() {size_t i=getpagesize(),j;
3577              fprintf(fp,"%u",j);              fprintf(fp,"%u",j);
3578              return 0;}              return 0;}
3579  EOF  EOF
3580  if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:3581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3581  then  then
3582    PAGEWIDTH=`cat conftest1`    PAGEWIDTH=`cat conftest1`
3583  else  else
# Line 3575  EOF Line 3604  EOF
3604  for ac_func in getcwd  for ac_func in getcwd
3605  do  do
3606  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3607  echo "configure:3579: checking for $ac_func" >&5  echo "configure:3608: checking for $ac_func" >&5
3608  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3609    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3610  else  else
3611    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3612  #line 3584 "configure"  #line 3613 "configure"
3613  #include "confdefs.h"  #include "confdefs.h"
3614  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3615      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 3603  $ac_func(); Line 3632  $ac_func();
3632    
3633  ; return 0; }  ; return 0; }
3634  EOF  EOF
3635  if { (eval echo configure:3607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636    rm -rf conftest*    rm -rf conftest*
3637    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
3638  else  else
# Line 3630  done Line 3659  done
3659  for ac_func in getwd  for ac_func in getwd
3660  do  do
3661  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3662  echo "configure:3634: checking for $ac_func" >&5  echo "configure:3663: checking for $ac_func" >&5
3663  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3664    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3665  else  else
3666    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3667  #line 3639 "configure"  #line 3668 "configure"
3668  #include "confdefs.h"  #include "confdefs.h"
3669  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3670      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 3658  $ac_func(); Line 3687  $ac_func();
3687    
3688  ; return 0; }  ; return 0; }
3689  EOF  EOF
3690  if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3691    rm -rf conftest*    rm -rf conftest*
3692    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
3693  else  else
# Line 3683  fi Line 3712  fi
3712  done  done
3713    
3714  echo $ac_n "checking for uname""... $ac_c" 1>&6  echo $ac_n "checking for uname""... $ac_c" 1>&6
3715  echo "configure:3687: checking for uname" >&5  echo "configure:3716: checking for uname" >&5
3716  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
3717    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3718  else  else
3719    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3720  #line 3692 "configure"  #line 3721 "configure"
3721  #include "confdefs.h"  #include "confdefs.h"
3722  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3723      which can conflict with char uname(); below.  */      which can conflict with char uname(); below.  */
# Line 3711  uname(); Line 3740  uname();
3740    
3741  ; return 0; }  ; return 0; }
3742  EOF  EOF
3743  if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3744    rm -rf conftest*    rm -rf conftest*
3745    eval "ac_cv_func_uname=yes"    eval "ac_cv_func_uname=yes"
3746  else  else
# Line 3735  EOF Line 3764  EOF
3764  fi  fi
3765    
3766  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3767  echo "configure:3739: checking for gettimeofday" >&5  echo "configure:3768: checking for gettimeofday" >&5
3768  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3769    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3770  else  else
3771    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3772  #line 3744 "configure"  #line 3773 "configure"
3773  #include "confdefs.h"  #include "confdefs.h"
3774  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3775      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 3763  gettimeofday(); Line 3792  gettimeofday();
3792    
3793  ; return 0; }  ; return 0; }
3794  EOF  EOF
3795  if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796    rm -rf conftest*    rm -rf conftest*
3797    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
3798  else  else
# Line 3792  for ac_hdr in sys/ioctl.h Line 3821  for ac_hdr in sys/ioctl.h
3821  do  do
3822  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3823  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3824  echo "configure:3796: checking for $ac_hdr" >&5  echo "configure:3825: checking for $ac_hdr" >&5
3825  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3826    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3827  else  else
3828    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3829  #line 3801 "configure"  #line 3830 "configure"
3830  #include "confdefs.h"  #include "confdefs.h"
3831  #include <$ac_hdr>  #include <$ac_hdr>
3832  EOF  EOF
3833  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3834  { (eval echo configure:3806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3835  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3836  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3837    rm -rf conftest*    rm -rf conftest*
# Line 3842  done Line 3871  done
3871  #--------------------------------------------------------------------  #--------------------------------------------------------------------
3872    
3873  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for BSDgettimeofday""... $ac_c" 1>&6
3874  echo "configure:3846: checking for BSDgettimeofday" >&5  echo "configure:3875: checking for BSDgettimeofday" >&5
3875  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_BSDgettimeofday'+set}'`\" = set"; then
3876    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3877  else  else
3878    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3879  #line 3851 "configure"  #line 3880 "configure"
3880  #include "confdefs.h"  #include "confdefs.h"
3881  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3882      which can conflict with char BSDgettimeofday(); below.  */      which can conflict with char BSDgettimeofday(); below.  */
# Line 3870  BSDgettimeofday(); Line 3899  BSDgettimeofday();
3899    
3900  ; return 0; }  ; return 0; }
3901  EOF  EOF
3902  if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3903    rm -rf conftest*    rm -rf conftest*
3904    eval "ac_cv_func_BSDgettimeofday=yes"    eval "ac_cv_func_BSDgettimeofday=yes"
3905  else  else
# Line 3891  EOF Line 3920  EOF
3920  else  else
3921    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
3922  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3923  echo "configure:3895: checking for gettimeofday" >&5  echo "configure:3924: checking for gettimeofday" >&5
3924  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
3925    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3926  else  else
3927    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3928  #line 3900 "configure"  #line 3929 "configure"
3929  #include "confdefs.h"  #include "confdefs.h"
3930  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3931      which can conflict with char gettimeofday(); below.  */      which can conflict with char gettimeofday(); below.  */
# Line 3919  gettimeofday(); Line 3948  gettimeofday();
3948    
3949  ; return 0; }  ; return 0; }
3950  EOF  EOF
3951  if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3952    rm -rf conftest*    rm -rf conftest*
3953    eval "ac_cv_func_gettimeofday=yes"    eval "ac_cv_func_gettimeofday=yes"
3954  else  else
# Line 3946  fi Line 3975  fi
3975    
3976    
3977  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6  echo $ac_n "checking for gettimeofday declaration""... $ac_c" 1>&6
3978  echo "configure:3950: checking for gettimeofday declaration" >&5  echo "configure:3979: checking for gettimeofday declaration" >&5
3979    
3980  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3981  #line 3953 "configure"  #line 3982 "configure"
3982  #include "confdefs.h"  #include "confdefs.h"
3983  #include <sys/time.h>  #include <sys/time.h>
3984  EOF  EOF
# Line 3970  rm -f conftest* Line 3999  rm -f conftest*
3999    
4000    
4001  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4002  echo "configure:3974: checking for sin in -lm" >&5  echo "configure:4003: checking for sin in -lm" >&5
4003  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4004  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
4005    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3978  else Line 4007  else
4007    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4008  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
4009  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4010  #line 3982 "configure"  #line 4011 "configure"
4011  #include "confdefs.h"  #include "confdefs.h"
4012  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4013  /* 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 3989  int main() { Line 4018  int main() {
4018  sin()  sin()
4019  ; return 0; }  ; return 0; }
4020  EOF  EOF
4021  if { (eval echo configure:3993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4022    rm -rf conftest*    rm -rf conftest*
4023    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4024  else  else
# Line 4011  true Line 4040  true
4040  fi  fi
4041    
4042  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6  echo $ac_n "checking for main in -lmingwex""... $ac_c" 1>&6
4043  echo "configure:4015: checking for main in -lmingwex" >&5  echo "configure:4044: checking for main in -lmingwex" >&5
4044  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mingwex'_'main | sed 'y%./+-%__p_%'`
4045  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
4046    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4019  else Line 4048  else
4048    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4049  LIBS="-lmingwex  $LIBS"  LIBS="-lmingwex  $LIBS"
4050  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4051  #line 4023 "configure"  #line 4052 "configure"
4052  #include "confdefs.h"  #include "confdefs.h"
4053    
4054  int main() {  int main() {
4055  main()  main()
4056  ; return 0; }  ; return 0; }
4057  EOF  EOF
4058  if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4059    rm -rf conftest*    rm -rf conftest*
4060    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4061  else  else
# Line 4054  if test "$try_japi" = "yes" ; then Line 4083  if test "$try_japi" = "yes" ; then
4083  do  do
4084  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4085  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4086  echo "configure:4058: checking for $ac_hdr" >&5  echo "configure:4087: checking for $ac_hdr" >&5
4087  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4088    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4089  else  else
4090    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4091  #line 4063 "configure"  #line 4092 "configure"
4092  #include "confdefs.h"  #include "confdefs.h"
4093  #include <$ac_hdr>  #include <$ac_hdr>
4094  EOF  EOF
4095  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4096  { (eval echo configure:4068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4097  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4098  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4099    rm -rf conftest*    rm -rf conftest*
# Line 4102  if test "$use" = "mingw" ; then Line 4131  if test "$use" = "mingw" ; then
4131  do  do
4132  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4133  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4134  echo "configure:4106: checking for $ac_hdr" >&5  echo "configure:4135: checking for $ac_hdr" >&5
4135  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4136    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4137  else  else
4138    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4139  #line 4111 "configure"  #line 4140 "configure"
4140  #include "confdefs.h"  #include "confdefs.h"
4141  #include <$ac_hdr>  #include <$ac_hdr>
4142  EOF  EOF
4143  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4144  { (eval echo configure:4116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4145  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4146  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4147    rm -rf conftest*    rm -rf conftest*
# Line 4149  else Line 4178  else
4178  do  do
4179  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4180  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4181  echo "configure:4153: checking for $ac_hdr" >&5  echo "configure:4182: checking for $ac_hdr" >&5
4182  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4183    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4184  else  else
4185    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4186  #line 4158 "configure"  #line 4187 "configure"
4187  #include "confdefs.h"  #include "confdefs.h"
4188  #include <$ac_hdr>  #include <$ac_hdr>
4189  EOF  EOF
4190  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4191  { (eval echo configure:4163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4192  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4193  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4194    rm -rf conftest*    rm -rf conftest*
# Line 4199  for ac_hdr in math.h Line 4228  for ac_hdr in math.h
4228  do  do
4229  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4230  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4231  echo "configure:4203: checking for $ac_hdr" >&5  echo "configure:4232: checking for $ac_hdr" >&5
4232  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4233    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4234  else  else
4235    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4236  #line 4208 "configure"  #line 4237 "configure"
4237  #include "confdefs.h"  #include "confdefs.h"
4238  #include <$ac_hdr>  #include <$ac_hdr>
4239  EOF  EOF
4240  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4241  { (eval echo configure:4213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4242  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4243  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4244    rm -rf conftest*    rm -rf conftest*
# Line 4246  for ac_hdr in values.h Line 4275  for ac_hdr in values.h
4275  do  do
4276  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4277  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4278  echo "configure:4250: checking for $ac_hdr" >&5  echo "configure:4279: checking for $ac_hdr" >&5
4279  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4280    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4281  else  else
4282    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4283  #line 4255 "configure"  #line 4284 "configure"
4284  #include "confdefs.h"  #include "confdefs.h"
4285  #include <$ac_hdr>  #include <$ac_hdr>
4286  EOF  EOF
4287  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4288  { (eval echo configure:4260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4289  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4290  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4291    rm -rf conftest*    rm -rf conftest*
# Line 4293  for ac_hdr in float.h Line 4322  for ac_hdr in float.h
4322  do  do
4323  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4324  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4325  echo "configure:4297: checking for $ac_hdr" >&5  echo "configure:4326: checking for $ac_hdr" >&5
4326  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4327    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4328  else  else
4329    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4330  #line 4302 "configure"  #line 4331 "configure"
4331  #include "confdefs.h"  #include "confdefs.h"
4332  #include <$ac_hdr>  #include <$ac_hdr>
4333  EOF  EOF
4334  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335  { (eval echo configure:4307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4338    rm -rf conftest*    rm -rf conftest*
# Line 4339  done Line 4368  done
4368  # test makes sense.  CM  # test makes sense.  CM
4369  #  #
4370  echo $ac_n "checking for isnormal""... $ac_c" 1>&6  echo $ac_n "checking for isnormal""... $ac_c" 1>&6
4371  echo "configure:4343: checking for isnormal" >&5  echo "configure:4372: checking for isnormal" >&5
4372  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4373    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6    HAVE_ISNORMAL=0 echo "$ac_t""no" 1>&6
4374  else  else
4375    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4376  #line 4348 "configure"  #line 4377 "configure"
4377  #include "confdefs.h"  #include "confdefs.h"
4378  #define _GNU_SOURCE  #define _GNU_SOURCE
4379              #include <math.h>              #include <math.h>
# Line 4353  else Line 4382  else
4382                  return isnormal(f) || !isnormal(f) ? 0 : 1;                  return isnormal(f) || !isnormal(f) ? 0 : 1;
4383                  }                  }
4384  EOF  EOF
4385  if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4386  then  then
4387    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4388  #define HAVE_ISNORMAL 1  #define HAVE_ISNORMAL 1
# Line 4364  else Line 4393  else
4393    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4394    rm -fr conftest*    rm -fr conftest*
4395    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
4396  echo "configure:4368: checking for fpclass in ieeefp.h" >&5  echo "configure:4397: checking for fpclass in ieeefp.h" >&5
4397                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4398    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6    HAVE_IEEEFP=0 echo "$ac_t""no" 1>&6
4399  else  else
4400    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4401  #line 4373 "configure"  #line 4402 "configure"
4402  #include "confdefs.h"  #include "confdefs.h"
4403  #include <ieeefp.h>  #include <ieeefp.h>
4404                              int main() {                              int main() {
# Line 4377  else Line 4406  else
4406                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;                                  return fpclass(f)>=FP_NZERO || fpclass(f)<FP_NZERO ? 0 : 1;
4407                                  }                                  }
4408  EOF  EOF
4409  if { (eval echo configure:4381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4410  then  then
4411    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4412  #define HAVE_IEEEFP 1  #define HAVE_IEEEFP 1
# Line 4399  fi Line 4428  fi
4428    
4429    
4430  echo $ac_n "checking for isfinite""... $ac_c" 1>&6  echo $ac_n "checking for isfinite""... $ac_c" 1>&6
4431  echo "configure:4403: checking for isfinite" >&5  echo "configure:4432: checking for isfinite" >&5
4432  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
4433    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6    HAVE_ISFINITE=0 echo "$ac_t""no" 1>&6
4434  else  else
4435    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4436  #line 4408 "configure"  #line 4437 "configure"
4437  #include "confdefs.h"  #include "confdefs.h"
4438  #define _GNU_SOURCE  #define _GNU_SOURCE
4439              #include <math.h>              #include <math.h>
# Line 4413  else Line 4442  else
4442                  return isfinite(f) || !isfinite(f) ? 0 : 1;                  return isfinite(f) || !isfinite(f) ? 0 : 1;
4443                  }                  }
4444  EOF  EOF
4445  if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4446  then  then
4447    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4448  #define HAVE_ISFINITE 1  #define HAVE_ISFINITE 1
# Line 4424  else Line 4453  else
4453    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
4454    rm -fr conftest*    rm -fr conftest*
4455    echo $ac_n "checking for finite()""... $ac_c" 1>&6    echo $ac_n "checking for finite()""... $ac_c" 1>&6
4456  echo "configure:4428: checking for finite()" >&5  echo "configure:4457: checking for finite()" >&5
4457                  if test "$cross_compiling" = yes; then                  if test "$cross_compiling" = yes; then
4458    HAVE_FINITE=0 echo "$ac_t""no" 1>&6    HAVE_FINITE=0 echo "$ac_t""no" 1>&6
4459  else  else
4460    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4461  #line 4433 "configure"  #line 4462 "configure"
4462  #include "confdefs.h"  #include "confdefs.h"
4463  #include <math.h>  #include <math.h>
4464                              #include <ieeefp.h>                              #include <ieeefp.h>
# Line 4438  else Line 4467  else
4467                                  return finite(f) || !finite(f) ? 0 : 1;                                  return finite(f) || !finite(f) ? 0 : 1;
4468                                  }                                  }
4469  EOF  EOF
4470  if { (eval echo configure:4442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4471  then  then
4472    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4473  #define HAVE_FINITE 1  #define HAVE_FINITE 1
# Line 4479  fi Line 4508  fi
4508  #          if -lsocket doesn't work by itself.  #          if -lsocket doesn't work by itself.
4509  #--------------------------------------------------------------------  #--------------------------------------------------------------------
4510  echo $ac_n "checking for sockets""... $ac_c" 1>&6  echo $ac_n "checking for sockets""... $ac_c" 1>&6
4511  echo "configure:4483: checking for sockets" >&5  echo "configure:4512: checking for sockets" >&5
4512  tcl_checkBoth=0  tcl_checkBoth=0
4513  echo $ac_n "checking for connect""... $ac_c" 1>&6  echo $ac_n "checking for connect""... $ac_c" 1>&6
4514  echo "configure:4486: checking for connect" >&5  echo "configure:4515: checking for connect" >&5
4515  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4516    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4517  else  else
4518    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4519  #line 4491 "configure"  #line 4520 "configure"
4520  #include "confdefs.h"  #include "confdefs.h"
4521  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4522      which can conflict with char connect(); below.  */      which can conflict with char connect(); below.  */
# Line 4510  connect(); Line 4539  connect();
4539    
4540  ; return 0; }  ; return 0; }
4541  EOF  EOF
4542  if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4543    rm -rf conftest*    rm -rf conftest*
4544    eval "ac_cv_func_connect=yes"    eval "ac_cv_func_connect=yes"
4545  else  else
# Line 4532  fi Line 4561  fi
4561    
4562  if test "$tcl_checkSocket" = 1; then  if test "$tcl_checkSocket" = 1; then
4563      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6      echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4564  echo "configure:4536: checking for main in -lsocket" >&5  echo "configure:4565: checking for main in -lsocket" >&5
4565  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
4566  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
4567    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4540  else Line 4569  else
4569    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4570  LIBS="-lsocket  $LIBS"  LIBS="-lsocket  $LIBS"
4571  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4572  #line 4544 "configure"  #line 4573 "configure"
4573  #include "confdefs.h"  #include "confdefs.h"
4574    
4575  int main() {  int main() {
4576  main()  main()
4577  ; return 0; }  ; return 0; }
4578  EOF  EOF
4579  if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4580    rm -rf conftest*    rm -rf conftest*
4581    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4582  else  else
# Line 4575  if test "$tcl_checkBoth" = 1; then Line 4604  if test "$tcl_checkBoth" = 1; then
4604      tk_oldLibs=$TLIBS      tk_oldLibs=$TLIBS
4605      TLIBS="$TLIBS -lsocket -lnsl"      TLIBS="$TLIBS -lsocket -lnsl"
4606      echo $ac_n "checking for accept""... $ac_c" 1>&6      echo $ac_n "checking for accept""... $ac_c" 1>&6
4607  echo "configure:4579: checking for accept" >&5  echo "configure:4608: checking for accept" >&5
4608  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then
4609    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4610  else  else
4611    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4612  #line 4584 "configure"  #line 4613 "configure"
4613  #include "confdefs.h"  #include "confdefs.h"
4614  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4615      which can conflict with char accept(); below.  */      which can conflict with char accept(); below.  */
# Line 4603  accept(); Line 4632  accept();
4632    
4633  ; return 0; }  ; return 0; }
4634  EOF  EOF
4635  if { (eval echo configure:4607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4636    rm -rf conftest*    rm -rf conftest*
4637    eval "ac_cv_func_accept=yes"    eval "ac_cv_func_accept=yes"
4638  else  else
# Line 4625  fi Line 4654  fi
4654    
4655  fi  fi
4656  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6  echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4657  echo "configure:4629: checking for gethostbyname" >&5  echo "configure:4658: checking for gethostbyname" >&5
4658  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
4659    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4660  else  else
4661    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4662  #line 4634 "configure"  #line 4663 "configure"
4663  #include "confdefs.h"  #include "confdefs.h"
4664  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4665      which can conflict with char gethostbyname(); below.  */      which can conflict with char gethostbyname(); below.  */
# Line 4653  gethostbyname(); Line 4682  gethostbyname();
4682    
4683  ; return 0; }  ; return 0; }
4684  EOF  EOF
4685  if { (eval echo configure:4657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686    rm -rf conftest*    rm -rf conftest*
4687    eval "ac_cv_func_gethostbyname=yes"    eval "ac_cv_func_gethostbyname=yes"
4688  else  else
# Line 4671  if eval "test \"`echo '$ac_cv_func_'geth Line 4700  if eval "test \"`echo '$ac_cv_func_'geth
4700  else  else
4701    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
4702  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6  echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4703  echo "configure:4675: checking for main in -lnsl" >&5  echo "configure:4704: checking for main in -lnsl" >&5
4704  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
4705  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
4706    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4679  else Line 4708  else
4708    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4709  LIBS="-lnsl  $LIBS"  LIBS="-lnsl  $LIBS"
4710  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4711  #line 4683 "configure"  #line 4712 "configure"
4712  #include "confdefs.h"  #include "confdefs.h"
4713    
4714  int main() {  int main() {
4715  main()  main()
4716  ; return 0; }  ; return 0; }
4717  EOF  EOF
4718  if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4719    rm -rf conftest*    rm -rf conftest*
4720    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4721  else  else
# Line 4714  if test "$enable_readline" = "yes" ; the Line 4743  if test "$enable_readline" = "yes" ; the
4743  do  do
4744  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4745  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4746  echo "configure:4718: checking for $ac_hdr" >&5  echo "configure:4747: checking for $ac_hdr" >&5
4747  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4748    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4749  else  else
4750    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4751  #line 4723 "configure"  #line 4752 "configure"
4752  #include "confdefs.h"  #include "confdefs.h"
4753  #include <$ac_hdr>  #include <$ac_hdr>
4754  EOF  EOF
4755  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4756  { (eval echo configure:4728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4757  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4758  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4759    rm -rf conftest*    rm -rf conftest*
# Line 4745  if eval "test \"`echo '$ac_cv_header_'$a Line 4774  if eval "test \"`echo '$ac_cv_header_'$a
4774  #define $ac_tr_hdr 1  #define $ac_tr_hdr 1
4775  EOF  EOF
4776   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6   echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
4777  echo "configure:4749: checking for main in -lreadline" >&5  echo "configure:4778: checking for main in -lreadline" >&5
4778  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
4779  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
4780    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4753  else Line 4782  else
4782    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4783  LIBS="-lreadline -lncurses $LIBS"  LIBS="-lreadline -lncurses $LIBS"
4784  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4785  #line 4757 "configure"  #line 4786 "configure"
4786  #include "confdefs.h"  #include "confdefs.h"
4787    
4788  int main() {  int main() {
4789  main()  main()
4790  ; return 0; }  ; return 0; }
4791  EOF  EOF
4792  if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4793    rm -rf conftest*    rm -rf conftest*
4794    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4795  else  else
# Line 4797  fi Line 4826  fi
4826    
4827    
4828  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
4829  echo "configure:4801: checking For network code for nsocket.c" >&5  echo "configure:4830: checking For network code for nsocket.c" >&5
4830  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4831  #line 4803 "configure"  #line 4832 "configure"
4832  #include "confdefs.h"  #include "confdefs.h"
4833    
4834  #include <sys/time.h>  #include <sys/time.h>
# Line 4826  int main() { Line 4855  int main() {
4855                    
4856  ; return 0; }  ; return 0; }
4857  EOF  EOF
4858  if { (eval echo configure:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4859    rm -rf conftest*    rm -rf conftest*
4860    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4861  #define HAVE_NSOCKET 1  #define HAVE_NSOCKET 1
# Line 4843  rm -f conftest* Line 4872  rm -f conftest*
4872    
4873    
4874  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
4875  echo "configure:4847: checking check for listen using fcntl" >&5  echo "configure:4876: checking check for listen using fcntl" >&5
4876  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4877  #line 4849 "configure"  #line 4878 "configure"
4878  #include "confdefs.h"  #include "confdefs.h"
4879  #include <stdio.h>  #include <stdio.h>
4880  #include <fcntl.h>  #include <fcntl.h>
# Line 4858  FILE *fp=fopen("configure.in","r"); Line 4887  FILE *fp=fopen("configure.in","r");
4887    
4888  ; return 0; }  ; return 0; }
4889  EOF  EOF
4890  if { (eval echo configure:4862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4891    rm -rf conftest*    rm -rf conftest*
4892    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
4893  #define LISTEN_USE_FCNTL 1  #define LISTEN_USE_FCNTL 1
# Line 4877  rm -f conftest* Line 4906  rm -f conftest*
4906    
4907    
4908  echo $ac_n "checking for profil""... $ac_c" 1>&6  echo $ac_n "checking for profil""... $ac_c" 1>&6
4909  echo "configure:4881: checking for profil" >&5  echo "configure:4910: checking for profil" >&5
4910  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_profil'+set}'`\" = set"; then
4911    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4912  else  else
4913    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4914  #line 4886 "configure"  #line 4915 "configure"
4915  #include "confdefs.h"  #include "confdefs.h"
4916  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4917      which can conflict with char profil(); below.  */      which can conflict with char profil(); below.  */
# Line 4905  profil(); Line 4934  profil();
4934    
4935  ; return 0; }  ; return 0; }
4936  EOF  EOF
4937  if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938    rm -rf conftest*    rm -rf conftest*
4939    eval "ac_cv_func_profil=yes"    eval "ac_cv_func_profil=yes"
4940  else  else
# Line 4930  fi Line 4959  fi
4959    
4960    
4961  echo $ac_n "checking for setenv""... $ac_c" 1>&6  echo $ac_n "checking for setenv""... $ac_c" 1>&6
4962  echo "configure:4934: checking for setenv" >&5  echo "configure:4963: checking for setenv" >&5
4963  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
4964    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4965  else  else
4966    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4967  #line 4939 "configure"  #line 4968 "configure"
4968  #include "confdefs.h"  #include "confdefs.h"
4969  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4970      which can conflict with char setenv(); below.  */      which can conflict with char setenv(); below.  */
# Line 4958  setenv(); Line 4987  setenv();
4987    
4988  ; return 0; }  ; return 0; }
4989  EOF  EOF
4990  if { (eval echo configure:4962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4991    rm -rf conftest*    rm -rf conftest*
4992    eval "ac_cv_func_setenv=yes"    eval "ac_cv_func_setenv=yes"
4993  else  else
# Line 4984  fi Line 5013  fi
5013    
5014  if test "$no_setenv" = "1" ; then  if test "$no_setenv" = "1" ; then
5015  echo $ac_n "checking for putenv""... $ac_c" 1>&6  echo $ac_n "checking for putenv""... $ac_c" 1>&6
5016  echo "configure:4988: checking for putenv" >&5  echo "configure:5017: checking for putenv" >&5
5017  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_putenv'+set}'`\" = set"; then
5018    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5019  else  else
5020    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5021  #line 4993 "configure"  #line 5022 "configure"
5022  #include "confdefs.h"  #include "confdefs.h"
5023  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5024      which can conflict with char putenv(); below.  */      which can conflict with char putenv(); below.  */
# Line 5012  putenv(); Line 5041  putenv();
5041    
5042  ; return 0; }  ; return 0; }
5043  EOF  EOF
5044  if { (eval echo configure:5016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5045    rm -rf conftest*    rm -rf conftest*
5046    eval "ac_cv_func_putenv=yes"    eval "ac_cv_func_putenv=yes"
5047  else  else
# Line 5038  fi Line 5067  fi
5067  fi  fi
5068    
5069  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6  echo $ac_n "checking for _cleanup""... $ac_c" 1>&6
5070  echo "configure:5042: checking for _cleanup" >&5  echo "configure:5071: checking for _cleanup" >&5
5071  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func__cleanup'+set}'`\" = set"; then
5072    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5073  else  else
5074    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5075  #line 5047 "configure"  #line 5076 "configure"
5076  #include "confdefs.h"  #include "confdefs.h"
5077  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5078      which can conflict with char _cleanup(); below.  */      which can conflict with char _cleanup(); below.  */
# Line 5066  _cleanup(); Line 5095  _cleanup();
5095    
5096  ; return 0; }  ; return 0; }
5097  EOF  EOF
5098  if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5099    rm -rf conftest*    rm -rf conftest*
5100    eval "ac_cv_func__cleanup=yes"    eval "ac_cv_func__cleanup=yes"
5101  else  else
# Line 5092  fi Line 5121  fi
5121  gcl_ok=no  gcl_ok=no
5122    
5123  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5124  #line 5096 "configure"  #line 5125 "configure"
5125  #include "confdefs.h"  #include "confdefs.h"
5126  #include <ctype.h>  #include <ctype.h>
5127  EOF  EOF
# Line 5120  fi Line 5149  fi
5149    
5150  # if test "x$enable_machine" = "x" ; then  # if test "x$enable_machine" = "x" ; then
5151  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
5152  echo "configure:5124: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5  echo "configure:5153: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5
5153    
5154  case $system in  case $system in
5155         OSF*)         OSF*)
# Line 5151  esac Line 5180  esac
5180    
5181    
5182  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6  echo $ac_n "checking check for SV_ONSTACK""... $ac_c" 1>&6
5183  echo "configure:5155: checking check for SV_ONSTACK" >&5  echo "configure:5184: checking check for SV_ONSTACK" >&5
5184  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5185  #line 5157 "configure"  #line 5186 "configure"
5186  #include "confdefs.h"  #include "confdefs.h"
5187  #include <signal.h>  #include <signal.h>
5188  int joe=SV_ONSTACK;  int joe=SV_ONSTACK;
# Line 5162  int main() { Line 5191  int main() {
5191    
5192  ; return 0; }  ; return 0; }
5193  EOF  EOF
5194  if { (eval echo configure:5166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5195    rm -rf conftest*    rm -rf conftest*
5196    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5197  #define HAVE_SV_ONSTACK 1  #define HAVE_SV_ONSTACK 1
# Line 5179  fi Line 5208  fi
5208  rm -f conftest*  rm -f conftest*
5209    
5210  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6  echo $ac_n "checking check for SIGSYS""... $ac_c" 1>&6
5211  echo "configure:5183: checking check for SIGSYS" >&5  echo "configure:5212: checking check for SIGSYS" >&5
5212  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5213  #line 5185 "configure"  #line 5214 "configure"
5214  #include "confdefs.h"  #include "confdefs.h"
5215  #include <signal.h>  #include <signal.h>
5216  int joe=SIGSYS;  int joe=SIGSYS;
# Line 5190  int main() { Line 5219  int main() {
5219    
5220  ; return 0; }  ; return 0; }
5221  EOF  EOF
5222  if { (eval echo configure:5194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5223    rm -rf conftest*    rm -rf conftest*
5224    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5225  #define HAVE_SIGSYS 1  #define HAVE_SIGSYS 1
# Line 5208  rm -f conftest* Line 5237  rm -f conftest*
5237    
5238    
5239  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6  echo $ac_n "checking check for SIGEMT""... $ac_c" 1>&6
5240  echo "configure:5212: checking check for SIGEMT" >&5  echo "configure:5241: checking check for SIGEMT" >&5
5241  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5242  #line 5214 "configure"  #line 5243 "configure"
5243  #include "confdefs.h"  #include "confdefs.h"
5244  #include <signal.h>  #include <signal.h>
5245  int joe=SIGEMT;  int joe=SIGEMT;
# Line 5219  int main() { Line 5248  int main() {
5248    
5249  ; return 0; }  ; return 0; }
5250  EOF  EOF
5251  if { (eval echo configure:5223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5252    rm -rf conftest*    rm -rf conftest*
5253    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
5254  #define HAVE_SIGEMT 1  #define HAVE_SIGEMT 1
# Line 5243  rm -f conftest* Line 5272  rm -f conftest*
5272  do  do
5273  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5274  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5275  echo "configure:5247: checking for $ac_hdr" >&5  echo "configure:5276: checking for $ac_hdr" >&5
5276  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5277    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5278  else  else
5279    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5280  #line 5252 "configure"  #line 5281 "configure"
5281  #include "confdefs.h"  #include "confdefs.h"
5282  #include <$ac_hdr>  #include <$ac_hdr>
5283  EOF  EOF
5284  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5285  { (eval echo configure:5257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5286  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5287  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5288    rm -rf conftest*    rm -rf conftest*
# Line 5283  done Line 5312  done
5312  do  do
5313  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5314  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5315  echo "configure:5287: checking for $ac_hdr" >&5  echo "configure:5316: checking for $ac_hdr" >&5
5316  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5317    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5318  else  else
5319    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5320  #line 5292 "configure"  #line 5321 "configure"
5321  #include "confdefs.h"  #include "confdefs.h"
5322  #include <$ac_hdr>  #include <$ac_hdr>
5323  EOF  EOF
5324  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5325  { (eval echo configure:5297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5326  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5327  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5328    rm -rf conftest*    rm -rf conftest*
# Line 5320  fi Line 5349  fi
5349  done  done
5350    
5351          cat > conftest.$ac_ext <<EOF          cat > conftest.$ac_ext <<EOF
5352  #line 5324 "configure"  #line 5353 "configure"
5353  #include "confdefs.h"  #include "confdefs.h"
5354  #include <signal.h>  #include <signal.h>
5355                          long code;                            long code;  
# Line 5331  int main() { Line 5360  int main() {
5360                
5361  ; return 0; }  ; return 0; }
5362  EOF  EOF
5363  if { (eval echo configure:5335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5364    rm -rf conftest*    rm -rf conftest*
5365        
5366          sigcontext_struct_works=1;          sigcontext_struct_works=1;
# Line 5352  fi Line 5381  fi
5381  rm -f conftest*  rm -f conftest*
5382         if test "$sigcontext_struct_works" = 0 ; then         if test "$sigcontext_struct_works" = 0 ; then
5383         cat > conftest.$ac_ext <<EOF         cat > conftest.$ac_ext <<EOF
5384  #line 5356 "configure"  #line 5385 "configure"
5385  #include "confdefs.h"  #include "confdefs.h"
5386  #include <signal.h>  #include <signal.h>
5387               #ifdef HAVE_ASM_SIGCONTEXT_H                   #ifdef HAVE_ASM_SIGCONTEXT_H    
# Line 5369  int main() { Line 5398  int main() {
5398                    
5399  ; return 0; }  ; return 0; }
5400  EOF  EOF
5401  if { (eval echo configure:5373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:5402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402    rm -rf conftest*    rm -rf conftest*
5403        
5404          sigcontext_works=1 ;          sigcontext_works=1 ;
# Line 5412  rm -f conftest* Line 5441  rm -f conftest*
5441  # 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.
5442  set dummy emacs; ac_word=$2  set dummy emacs; ac_word=$2
5443  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5444  echo "configure:5416: checking for $ac_word" >&5  echo "configure:5445: checking for $ac_word" >&5
5445  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_EMACS'+set}'`\" = set"; then
5446    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5447  else  else
# Line 5460  cat >> conftest.el <<EOF Line 5489  cat >> conftest.el <<EOF
5489  EOF  EOF
5490    
5491  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6  echo $ac_n "checking emacs site lisp directory""... $ac_c" 1>&6
5492  echo "configure:5464: checking emacs site lisp directory" >&5  echo "configure:5493: checking emacs site lisp directory" >&5
5493  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then  if [ "$EMACS_SITE_LISP" = "unknown" ] ; then
5494          if [ "$EMACS" != "" ] ; then          if [ "$EMACS" != "" ] ; then
5495                  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 5484  cat >> conftest.el <<EOF Line 5513  cat >> conftest.el <<EOF
5513  EOF  EOF
5514    
5515  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6  echo $ac_n "checking emacs default.el""... $ac_c" 1>&6
5516  echo "configure:5488: checking emacs default.el" >&5  echo "configure:5517: checking emacs default.el" >&5
5517  if [ "$EMACS" != "" ] ; then  if [ "$EMACS" != "" ] ; then
5518          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 `
5519  else  else
# Line 5513  cat >> conftest.el <<EOF Line 5542  cat >> conftest.el <<EOF
5542  EOF  EOF
5543    
5544  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6  echo $ac_n "checking emacs info/dir""... $ac_c" 1>&6
5545  echo "configure:5517: checking emacs info/dir" >&5  echo "configure:5546: checking emacs info/dir" >&5
5546  if test "$use" = "mingw" ; then  if test "$use" = "mingw" ; then
5547      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/      INFO_DIR=\$\(prefix\)/lib/gcl-$VERSION/info/
5548  else  else
# Line 5531  echo "$ac_t""$INFO_DIR" 1>&6 Line 5560  echo "$ac_t""$INFO_DIR" 1>&6
5560    
5561    
5562  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6  echo $ac_n "checking for tcl/tk""... $ac_c" 1>&6
5563  echo "configure:5535: checking for tcl/tk" >&5  echo "configure:5564: checking for tcl/tk" >&5
5564    
5565    
5566  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else  if test -d "${TCL_CONFIG_PREFIX}"  ; then true ; else
# Line 5554  EOF Line 5583  EOF
5583  # 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.
5584  set dummy tclsh; ac_word=$2  set dummy tclsh; ac_word=$2
5585  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5586  echo "configure:5558: checking for $ac_word" >&5  echo "configure:5587: checking for $ac_word" >&5
5587  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_TCLSH'+set}'`\" = set"; then
5588    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5589  else  else
# Line 5654  if test -f ${TCL_CONFIG_PREFIX}/../inclu Line 5683  if test -f ${TCL_CONFIG_PREFIX}/../inclu
5683    fi    fi
5684  fi  fi
5685  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6  echo $ac_n "checking for main in -llieee""... $ac_c" 1>&6
5686  echo "configure:5658: checking for main in -llieee" >&5  echo "configure:5687: checking for main in -llieee" >&5
5687  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lieee'_'main | sed 'y%./+-%__p_%'`
5688  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
5689    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5662  else Line 5691  else
5691    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5692  LIBS="-llieee  $LIBS"  LIBS="-llieee  $LIBS"
5693  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5694  #line 5666 "configure"  #line 5695 "configure"
5695  #include "confdefs.h"  #include "confdefs.h"
5696    
5697  int main() {  int main() {
5698  main()  main()
5699  ; return 0; }  ; return 0; }
5700  EOF  EOF
5701  if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5702    rm -rf conftest*    rm -rf conftest*
5703    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5704  else  else
# Line 5734  NOTIFY=$enable_notify Line 5763  NOTIFY=$enable_notify
5763  # the time handling for unixtime, add timezone  # the time handling for unixtime, add timezone
5764    
5765  echo $ac_n "checking alloca""... $ac_c" 1>&6  echo $ac_n "checking alloca""... $ac_c" 1>&6
5766  echo "configure:5738: checking alloca" >&5  echo "configure:5767: checking alloca" >&5
5767  if test "$cross_compiling" = yes; then  if test "$cross_compiling" = yes; then
5768    gcl_ok=no    gcl_ok=no
5769  else  else
5770    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5771  #line 5743 "configure"  #line 5772 "configure"
5772  #include "confdefs.h"  #include "confdefs.h"
5773  int main() { exit(alloca(500) != NULL ? 0 : 1);}  int main() { exit(alloca(500) != NULL ? 0 : 1);}
5774  EOF  EOF
5775  if { (eval echo configure:5747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5776  then  then
5777    :    :
5778  else  else
# Line 5766  else Line 5795  else
5795    gcl_ok=no    gcl_ok=no
5796  else  else
5797    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5798  #line 5770 "configure"  #line 5799 "configure"
5799  #include "confdefs.h"  #include "confdefs.h"
5800  #include <alloca.h>  #include <alloca.h>
5801    int main() { exit(alloca(500) != NULL ? 0 : 1)}    int main() { exit(alloca(500) != NULL ? 0 : 1)}
5802  EOF  EOF
5803  if { (eval echo configure:5775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5804  then  then
5805    :    :
5806  else  else
# Line 5832  if test $gcl_ok = no ; then     echo "$a Line 5861  if test $gcl_ok = no ; then     echo "$a
5861  # redhat/cygnus released for some reason a buggy version of gcc,  # redhat/cygnus released for some reason a buggy version of gcc,
5862  # which no one else released.   Catch that here.  # which no one else released.   Catch that here.
5863  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6  echo $ac_n "checking Checking for buggy gcc version from redhat""... $ac_c" 1>&6
5864  echo "configure:5836: checking Checking for buggy gcc version from redhat" >&5  echo "configure:5865: checking Checking for buggy gcc version from redhat" >&5
5865  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null  if  2>&1 $CC -v | fgrep "gcc version 2.96" > /dev/null
5866     then     then
5867          BROKEN_O4_OPT=1          BROKEN_O4_OPT=1
# Line 5850  fi Line 5879  fi
5879    
5880  LIBS="$LIBS $TLIBS"  LIBS="$LIBS $TLIBS"
5881    
5882  FINAL_CFLAGS="$TCFLAGS $PROCESSOR_FLAGS"  FINAL_CFLAGS="$CFLAGS $TCFLAGS $PROCESSOR_FLAGS"
5883    
5884  CFLAGS="$TCFLAGS $TO3FLAGS $PROCESSOR_FLAGS -I\$(GCLDIR)/o"  CFLAGS="$CFLAGS $TCFLAGS $TO3FLAGS $PROCESSOR_FLAGS -I\$(GCLDIR)/o"
5885    
5886  # Work around bug with gcc on ppc -- CM  # Work around bug with gcc on ppc -- CM
5887  NIFLAGS="$TCFLAGS $TONIFLAGS $PROCESSOR_FLAGS -I\$(GCLDIR)/o"  NIFLAGS="$CFLAGS $TCFLAGS $TONIFLAGS $PROCESSOR_FLAGS -I\$(GCLDIR)/o"
5888    
5889  O3FLAGS=$TO3FLAGS  O3FLAGS=$TO3FLAGS
5890    

Legend:
Removed from v.1.107.4.1.2.2.2.12  
changed lines
  Added in v.1.107.4.1.2.2.2.13

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