/[emacs]/emacs/configure
ViewVC logotype

Diff of /emacs/configure

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

revision 1.62.4.2 by gerd, Fri Oct 19 14:11:21 2001 UTC revision 1.62.4.3 by eliz, Wed Oct 31 17:50:05 2001 UTC
# Line 1150  case "${canonical}" in Line 1150  case "${canonical}" in
1150    hppa*-hp-hpux9* )    hppa*-hp-hpux9* )
1151      machine=hp800 opsys=hpux9      machine=hp800 opsys=hpux9
1152    ;;    ;;
1153    hppa*-hp-hpux1[0-9]* )    ;;
1154      hppa*-hp-hpux10* )
1155      machine=hp800 opsys=hpux10      machine=hp800 opsys=hpux10
1156    ;;    ;;
1157      hppa*-hp-hpux1[1-9]* )
1158        machine=hp800 opsys=hpux11
1159      ;;
1160    
1161    ## HP 9000 series 700 and 800, running HP/UX    ## HP 9000 series 700 and 800, running HP/UX
1162    hppa*-hp-hpux* )    hppa*-hp-hpux* )
# Line 1734  case ${with_gcc} in Line 1738  case ${with_gcc} in
1738    * ) # Extract the first word of "gcc", so it can be a program name with args.    * ) # Extract the first word of "gcc", so it can be a program name with args.
1739  set dummy gcc; ac_word=$2  set dummy gcc; ac_word=$2
1740  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741  echo "configure:1738: checking for $ac_word" >&5  echo "configure:1742: checking for $ac_word" >&5
1742  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1743    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1744  else  else
# Line 1764  if test -z "$CC"; then Line 1768  if test -z "$CC"; then
1768    # Extract the first word of "cc", so it can be a program name with args.    # Extract the first word of "cc", so it can be a program name with args.
1769  set dummy cc; ac_word=$2  set dummy cc; ac_word=$2
1770  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1771  echo "configure:1768: checking for $ac_word" >&5  echo "configure:1772: checking for $ac_word" >&5
1772  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1773    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1774  else  else
# Line 1815  fi Line 1819  fi
1819        # Extract the first word of "cl", so it can be a program name with args.        # Extract the first word of "cl", so it can be a program name with args.
1820  set dummy cl; ac_word=$2  set dummy cl; ac_word=$2
1821  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1822  echo "configure:1819: checking for $ac_word" >&5  echo "configure:1823: checking for $ac_word" >&5
1823  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1824    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1825  else  else
# Line 1847  fi Line 1851  fi
1851  fi  fi
1852    
1853  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1854  echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  echo "configure:1855: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1855    
1856  ac_ext=c  ac_ext=c
1857  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
# Line 1858  cross_compiling=$ac_cv_prog_cc_cross Line 1862  cross_compiling=$ac_cv_prog_cc_cross
1862    
1863  cat > conftest.$ac_ext << EOF  cat > conftest.$ac_ext << EOF
1864    
1865  #line 1862 "configure"  #line 1866 "configure"
1866  #include "confdefs.h"  #include "confdefs.h"
1867    
1868  main(){return(0);}  main(){return(0);}
1869  EOF  EOF
1870  if { (eval echo configure:1867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1871    ac_cv_prog_cc_works=yes    ac_cv_prog_cc_works=yes
1872    # If we can't run a trivial program, we are probably using a cross compiler.    # If we can't run a trivial program, we are probably using a cross compiler.
1873    if (./conftest; exit) 2>/dev/null; then    if (./conftest; exit) 2>/dev/null; then
# Line 1889  if test $ac_cv_prog_cc_works = no; then Line 1893  if test $ac_cv_prog_cc_works = no; then
1893    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }    { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1894  fi  fi
1895  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1896  echo "configure:1893: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5  echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1897  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6  echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1898  cross_compiling=$ac_cv_prog_cc_cross  cross_compiling=$ac_cv_prog_cc_cross
1899    
1900  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1901  echo "configure:1898: checking whether we are using GNU C" >&5  echo "configure:1902: checking whether we are using GNU C" >&5
1902  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1903    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1904  else  else
# Line 1903  else Line 1907  else
1907    yes;    yes;
1908  #endif  #endif
1909  EOF  EOF
1910  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1911    ac_cv_prog_gcc=yes    ac_cv_prog_gcc=yes
1912  else  else
1913    ac_cv_prog_gcc=no    ac_cv_prog_gcc=no
# Line 1922  ac_test_CFLAGS="${CFLAGS+set}" Line 1926  ac_test_CFLAGS="${CFLAGS+set}"
1926  ac_save_CFLAGS="$CFLAGS"  ac_save_CFLAGS="$CFLAGS"
1927  CFLAGS=  CFLAGS=
1928  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1929  echo "configure:1926: checking whether ${CC-cc} accepts -g" >&5  echo "configure:1930: checking whether ${CC-cc} accepts -g" >&5
1930  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1931    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
1932  else  else
# Line 2002  fi Line 2006  fi
2006  #### #undef clause to src/config.h.in for autoconf to modify.  #### #undef clause to src/config.h.in for autoconf to modify.
2007    
2008  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2009  echo "configure:2006: checking whether ln -s works" >&5  echo "configure:2010: checking whether ln -s works" >&5
2010  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2011    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2012  else  else
# Line 2023  else Line 2027  else
2027  fi  fi
2028    
2029  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2030  echo "configure:2027: checking how to run the C preprocessor" >&5  echo "configure:2031: checking how to run the C preprocessor" >&5
2031  # On Suns, sometimes $CPP names a directory.  # On Suns, sometimes $CPP names a directory.
2032  if test -n "$CPP" && test -d "$CPP"; then  if test -n "$CPP" && test -d "$CPP"; then
2033    CPP=    CPP=
# Line 2038  else Line 2042  else
2042    # On the NeXT, cc -E runs the code through the compiler's parser,    # On the NeXT, cc -E runs the code through the compiler's parser,
2043    # not just through cpp.    # not just through cpp.
2044    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2045  #line 2042 "configure"  #line 2046 "configure"
2046  #include "confdefs.h"  #include "confdefs.h"
2047  #include <assert.h>  #include <assert.h>
2048  Syntax Error  Syntax Error
2049  EOF  EOF
2050  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2051  { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2052  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2053  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2054    :    :
# Line 2055  else Line 2059  else
2059    rm -rf conftest*    rm -rf conftest*
2060    CPP="${CC-cc} -E -traditional-cpp"    CPP="${CC-cc} -E -traditional-cpp"
2061    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2062  #line 2059 "configure"  #line 2063 "configure"
2063  #include "confdefs.h"  #include "confdefs.h"
2064  #include <assert.h>  #include <assert.h>
2065  Syntax Error  Syntax Error
2066  EOF  EOF
2067  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2068  { (eval echo configure:2065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2069  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2070  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2071    :    :
# Line 2072  else Line 2076  else
2076    rm -rf conftest*    rm -rf conftest*
2077    CPP="${CC-cc} -nologo -E"    CPP="${CC-cc} -nologo -E"
2078    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2079  #line 2076 "configure"  #line 2080 "configure"
2080  #include "confdefs.h"  #include "confdefs.h"
2081  #include <assert.h>  #include <assert.h>
2082  Syntax Error  Syntax Error
2083  EOF  EOF
2084  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2085  { (eval echo configure:2082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2086  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2087  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2088    :    :
# Line 2114  echo "$ac_t""$CPP" 1>&6 Line 2118  echo "$ac_t""$CPP" 1>&6
2118  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2119  # ./install, which can be erroneously created by make from ./install.sh.  # ./install, which can be erroneously created by make from ./install.sh.
2120  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2121  echo "configure:2118: checking for a BSD compatible install" >&5  echo "configure:2122: checking for a BSD compatible install" >&5
2122  if test -z "$INSTALL"; then  if test -z "$INSTALL"; then
2123  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2124    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2171  do Line 2175  do
2175  # Extract the first word of "$ac_prog", so it can be a program name with args.  # Extract the first word of "$ac_prog", so it can be a program name with args.
2176  set dummy $ac_prog; ac_word=$2  set dummy $ac_prog; ac_word=$2
2177  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178  echo "configure:2175: checking for $ac_word" >&5  echo "configure:2179: checking for $ac_word" >&5
2179  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2180    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2181  else  else
# Line 2205  if test "x$RANLIB" = x; then Line 2209  if test "x$RANLIB" = x; then
2209    # Extract the first word of "ranlib", so it can be a program name with args.    # Extract the first word of "ranlib", so it can be a program name with args.
2210  set dummy ranlib; ac_word=$2  set dummy ranlib; ac_word=$2
2211  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212  echo "configure:2209: checking for $ac_word" >&5  echo "configure:2213: checking for $ac_word" >&5
2213  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2214    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2215  else  else
# Line 2235  fi Line 2239  fi
2239  fi  fi
2240    
2241  echo $ac_n "checking for AIX""... $ac_c" 1>&6  echo $ac_n "checking for AIX""... $ac_c" 1>&6
2242  echo "configure:2239: checking for AIX" >&5  echo "configure:2243: checking for AIX" >&5
2243  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2244  #line 2241 "configure"  #line 2245 "configure"
2245  #include "confdefs.h"  #include "confdefs.h"
2246  #ifdef _AIX  #ifdef _AIX
2247    yes    yes
# Line 2264  rm -f conftest* Line 2268  rm -f conftest*
2268  echo "checking the machine- and system-dependent files to find out  echo "checking the machine- and system-dependent files to find out
2269   - which libraries the lib-src programs will want, and   - which libraries the lib-src programs will want, and
2270   - whether the GNU malloc routines are usable" 1>&6   - whether the GNU malloc routines are usable" 1>&6
2271  echo "configure:2268: checking the machine- and system-dependent files to find out  echo "configure:2272: checking the machine- and system-dependent files to find out
2272   - which libraries the lib-src programs will want, and   - which libraries the lib-src programs will want, and
2273   - whether the GNU malloc routines are usable" >&5   - whether the GNU malloc routines are usable" >&5
2274    
# Line 2414  fi Line 2418  fi
2418     if test "$enable_largefile" != no; then     if test "$enable_largefile" != no; then
2419    
2420       echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6       echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
2421  echo "configure:2418: checking for special C compiler options needed for large files" >&5  echo "configure:2422: checking for special C compiler options needed for large files" >&5
2422  if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2423    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2424  else  else
# Line 2423  else Line 2427  else
2427            # IRIX 6.2 and later do not support large files by default,            # IRIX 6.2 and later do not support large files by default,
2428            # so use the C compiler's -n32 option if that helps.            # so use the C compiler's -n32 option if that helps.
2429            cat > conftest.$ac_ext <<EOF            cat > conftest.$ac_ext <<EOF
2430  #line 2427 "configure"  #line 2431 "configure"
2431  #include "confdefs.h"  #include "confdefs.h"
2432  #include <sys/types.h>  #include <sys/types.h>
2433      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
# Line 2432  int main() { Line 2436  int main() {
2436    
2437  ; return 0; }  ; return 0; }
2438  EOF  EOF
2439  if { (eval echo configure:2436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2440    :    :
2441  else  else
2442    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
# Line 2441  else Line 2445  else
2445    ac_save_CC="$CC"    ac_save_CC="$CC"
2446               CC="$CC -n32"               CC="$CC -n32"
2447               cat > conftest.$ac_ext <<EOF               cat > conftest.$ac_ext <<EOF
2448  #line 2445 "configure"  #line 2449 "configure"
2449  #include "confdefs.h"  #include "confdefs.h"
2450  #include <sys/types.h>  #include <sys/types.h>
2451      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
# Line 2450  int main() { Line 2454  int main() {
2454    
2455  ; return 0; }  ; return 0; }
2456  EOF  EOF
2457  if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2458    rm -rf conftest*    rm -rf conftest*
2459    ac_cv_sys_largefile_CC=' -n32'    ac_cv_sys_largefile_CC=' -n32'
2460  else  else
# Line 2470  echo "$ac_t""$ac_cv_sys_largefile_CC" 1> Line 2474  echo "$ac_t""$ac_cv_sys_largefile_CC" 1>
2474       fi       fi
2475    
2476       echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6       echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2477  echo "configure:2474: checking for _FILE_OFFSET_BITS value needed for large files" >&5  echo "configure:2478: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2478  if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2479    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2480  else  else
2481    ac_cv_sys_file_offset_bits=no    ac_cv_sys_file_offset_bits=no
2482        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
2483  #line 2480 "configure"  #line 2484 "configure"
2484  #include "confdefs.h"  #include "confdefs.h"
2485  #include <sys/types.h>  #include <sys/types.h>
2486      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];      int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
# Line 2485  int main() { Line 2489  int main() {
2489    
2490  ; return 0; }  ; return 0; }
2491  EOF  EOF
2492  if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493    :    :
2494  else  else
2495    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
2496    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2497    rm -rf conftest*    rm -rf conftest*
2498    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2499  #line 2496 "configure"  #line 2500 "configure"
2500  #include "confdefs.h"  #include "confdefs.h"
2501  #define _FILE_OFFSET_BITS 64  #define _FILE_OFFSET_BITS 64
2502  #include <sys/types.h>  #include <sys/types.h>
# Line 2503  int main() { Line 2507  int main() {
2507    
2508  ; return 0; }  ; return 0; }
2509  EOF  EOF
2510  if { (eval echo configure:2507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2511    rm -rf conftest*    rm -rf conftest*
2512    ac_cv_sys_file_offset_bits=64    ac_cv_sys_file_offset_bits=64
2513  else  else
# Line 2523  EOF Line 2527  EOF
2527    
2528     fi     fi
2529       echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6       echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2530  echo "configure:2527: checking for _LARGE_FILES value needed for large files" >&5  echo "configure:2531: checking for _LARGE_FILES value needed for large files" >&5
2531  if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2532    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2533  else  else
2534    ac_cv_sys_large_files=no    ac_cv_sys_large_files=no
2535        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
2536  #line 2533 "configure"  #line 2537 "configure"
2537  #include "confdefs.h"  #include "confdefs.h"
2538    
2539  int main() {  int main() {
2540    
2541  ; return 0; }  ; return 0; }
2542  EOF  EOF
2543  if { (eval echo configure:2540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2544    :    :
2545  else  else
2546    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
2547    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
2548    rm -rf conftest*    rm -rf conftest*
2549    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2550  #line 2547 "configure"  #line 2551 "configure"
2551  #include "confdefs.h"  #include "confdefs.h"
2552  #define _LARGE_FILES 1  #define _LARGE_FILES 1
2553    
# Line 2552  int main() { Line 2556  int main() {
2556    
2557  ; return 0; }  ; return 0; }
2558  EOF  EOF
2559  if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2560    rm -rf conftest*    rm -rf conftest*
2561    ac_cv_sys_large_files=1    ac_cv_sys_large_files=1
2562  else  else
# Line 2579  for ac_hdr in machine/soundcard.h sys/so Line 2583  for ac_hdr in machine/soundcard.h sys/so
2583  do  do
2584  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2586  echo "configure:2583: checking for $ac_hdr" >&5  echo "configure:2587: checking for $ac_hdr" >&5
2587  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2588    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2589  else  else
2590    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2591  #line 2588 "configure"  #line 2592 "configure"
2592  #include "confdefs.h"  #include "confdefs.h"
2593  #include <$ac_hdr>  #include <$ac_hdr>
2594  EOF  EOF
2595  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2596  { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2597  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2598  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2599    rm -rf conftest*    rm -rf conftest*
# Line 2617  done Line 2621  done
2621    
2622  # Emulation library used on NetBSD.  # Emulation library used on NetBSD.
2623  echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6  echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6
2624  echo "configure:2621: checking for _oss_ioctl in -lossaudio" >&5  echo "configure:2625: checking for _oss_ioctl in -lossaudio" >&5
2625  ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'`
2626  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
2627    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 2625  else Line 2629  else
2629    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
2630  LIBS="-lossaudio  $LIBS"  LIBS="-lossaudio  $LIBS"
2631  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2632  #line 2629 "configure"  #line 2633 "configure"
2633  #include "confdefs.h"  #include "confdefs.h"
2634  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
2635  /* 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 2636  int main() { Line 2640  int main() {
2640  _oss_ioctl()  _oss_ioctl()
2641  ; return 0; }  ; return 0; }
2642  EOF  EOF
2643  if { (eval echo configure:2640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2644    rm -rf conftest*    rm -rf conftest*
2645    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
2646  else  else
# Line 2665  for ac_hdr in sys/select.h sys/timeb.h s Line 2669  for ac_hdr in sys/select.h sys/timeb.h s
2669  do  do
2670  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2671  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2672  echo "configure:2669: checking for $ac_hdr" >&5  echo "configure:2673: checking for $ac_hdr" >&5
2673  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2674    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2675  else  else
2676    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2677  #line 2674 "configure"  #line 2678 "configure"
2678  #include "confdefs.h"  #include "confdefs.h"
2679  #include <$ac_hdr>  #include <$ac_hdr>
2680  EOF  EOF
2681  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2682  { (eval echo configure:2679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2683  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2684  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2685    rm -rf conftest*    rm -rf conftest*
# Line 2702  fi Line 2706  fi
2706  done  done
2707    
2708  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2709  echo "configure:2706: checking for ANSI C header files" >&5  echo "configure:2710: checking for ANSI C header files" >&5
2710  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2711    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2712  else  else
2713    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2714  #line 2711 "configure"  #line 2715 "configure"
2715  #include "confdefs.h"  #include "confdefs.h"
2716  #include <stdlib.h>  #include <stdlib.h>
2717  #include <stdarg.h>  #include <stdarg.h>
# Line 2715  else Line 2719  else
2719  #include <float.h>  #include <float.h>
2720  EOF  EOF
2721  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722  { (eval echo configure:2719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724  if test -z "$ac_err"; then  if test -z "$ac_err"; then
2725    rm -rf conftest*    rm -rf conftest*
# Line 2732  rm -f conftest* Line 2736  rm -f conftest*
2736  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2737    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2738  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2739  #line 2736 "configure"  #line 2740 "configure"
2740  #include "confdefs.h"  #include "confdefs.h"
2741  #include <string.h>  #include <string.h>
2742  EOF  EOF
# Line 2750  fi Line 2754  fi
2754  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
2755    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2756  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
2757  #line 2754 "configure"  #line 2758 "configure"
2758  #include "confdefs.h"  #include "confdefs.h"
2759  #include <stdlib.h>  #include <stdlib.h>
2760  EOF  EOF
# Line 2771  if test "$cross_compiling" = yes; then Line 2775  if test "$cross_compiling" = yes; then
2775    :    :
2776  else  else
2777    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2778  #line 2775 "configure"  #line 2779 "configure"
2779  #include "confdefs.h"  #include "confdefs.h"
2780  #include <ctype.h>  #include <ctype.h>
2781  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
# Line 2782  if (XOR (islower (i), ISLOWER (i)) || to Line 2786  if (XOR (islower (i), ISLOWER (i)) || to
2786  exit (0); }  exit (0); }
2787    
2788  EOF  EOF
2789  if { (eval echo configure:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2790  then  then
2791    :    :
2792  else  else
# Line 2806  EOF Line 2810  EOF
2810  fi  fi
2811    
2812  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2813  echo "configure:2810: checking whether time.h and sys/time.h may both be included" >&5  echo "configure:2814: checking whether time.h and sys/time.h may both be included" >&5
2814  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2815    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2816  else  else
2817    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2818  #line 2815 "configure"  #line 2819 "configure"
2819  #include "confdefs.h"  #include "confdefs.h"
2820  #include <sys/types.h>  #include <sys/types.h>
2821  #include <sys/time.h>  #include <sys/time.h>
# Line 2820  int main() { Line 2824  int main() {
2824  struct tm *tp;  struct tm *tp;
2825  ; return 0; }  ; return 0; }
2826  EOF  EOF
2827  if { (eval echo configure:2824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2828    rm -rf conftest*    rm -rf conftest*
2829    ac_cv_header_time=yes    ac_cv_header_time=yes
2830  else  else
# Line 2841  EOF Line 2845  EOF
2845  fi  fi
2846    
2847  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6  echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2848  echo "configure:2845: checking for sys_siglist declaration in signal.h or unistd.h" >&5  echo "configure:2849: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2849  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2850    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2851  else  else
2852    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2853  #line 2850 "configure"  #line 2854 "configure"
2854  #include "confdefs.h"  #include "confdefs.h"
2855  #include <sys/types.h>  #include <sys/types.h>
2856  #include <signal.h>  #include <signal.h>
# Line 2858  int main() { Line 2862  int main() {
2862  char *msg = *(sys_siglist + 1);  char *msg = *(sys_siglist + 1);
2863  ; return 0; }  ; return 0; }
2864  EOF  EOF
2865  if { (eval echo configure:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2866    rm -rf conftest*    rm -rf conftest*
2867    ac_cv_decl_sys_siglist=yes    ac_cv_decl_sys_siglist=yes
2868  else  else
# Line 2879  EOF Line 2883  EOF
2883  fi  fi
2884    
2885  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6  echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2886  echo "configure:2883: checking for sys/wait.h that is POSIX.1 compatible" >&5  echo "configure:2887: checking for sys/wait.h that is POSIX.1 compatible" >&5
2887  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2888    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2889  else  else
2890    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2891  #line 2888 "configure"  #line 2892 "configure"
2892  #include "confdefs.h"  #include "confdefs.h"
2893  #include <sys/types.h>  #include <sys/types.h>
2894  #include <sys/wait.h>  #include <sys/wait.h>
# Line 2900  wait (&s); Line 2904  wait (&s);
2904  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2905  ; return 0; }  ; return 0; }
2906  EOF  EOF
2907  if { (eval echo configure:2904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2908    rm -rf conftest*    rm -rf conftest*
2909    ac_cv_header_sys_wait_h=yes    ac_cv_header_sys_wait_h=yes
2910  else  else
# Line 2922  fi Line 2926  fi
2926    
2927    
2928  echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6  echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2929  echo "configure:2926: checking for struct utimbuf" >&5  echo "configure:2930: checking for struct utimbuf" >&5
2930  if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2931    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2932  else  else
2933    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2934  #line 2931 "configure"  #line 2935 "configure"
2935  #include "confdefs.h"  #include "confdefs.h"
2936  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
2937  #include <sys/time.h>  #include <sys/time.h>
# Line 2946  int main() { Line 2950  int main() {
2950  static struct utimbuf x; x.actime = x.modtime;  static struct utimbuf x; x.actime = x.modtime;
2951  ; return 0; }  ; return 0; }
2952  EOF  EOF
2953  if { (eval echo configure:2950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2954    rm -rf conftest*    rm -rf conftest*
2955    emacs_cv_struct_utimbuf=yes    emacs_cv_struct_utimbuf=yes
2956  else  else
# Line 2967  EOF Line 2971  EOF
2971  fi  fi
2972    
2973  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2974  echo "configure:2971: checking return type of signal handlers" >&5  echo "configure:2975: checking return type of signal handlers" >&5
2975  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2976    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
2977  else  else
2978    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
2979  #line 2976 "configure"  #line 2980 "configure"
2980  #include "confdefs.h"  #include "confdefs.h"
2981  #include <sys/types.h>  #include <sys/types.h>
2982  #include <signal.h>  #include <signal.h>
# Line 2989  int main() { Line 2993  int main() {
2993  int i;  int i;
2994  ; return 0; }  ; return 0; }
2995  EOF  EOF
2996  if { (eval echo configure:2993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:2997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2997    rm -rf conftest*    rm -rf conftest*
2998    ac_cv_type_signal=void    ac_cv_type_signal=void
2999  else  else
# Line 3009  EOF Line 3013  EOF
3013    
3014    
3015  echo $ac_n "checking for speed_t""... $ac_c" 1>&6  echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3016  echo "configure:3013: checking for speed_t" >&5  echo "configure:3017: checking for speed_t" >&5
3017  if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
3018    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3019  else  else
3020    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3021  #line 3018 "configure"  #line 3022 "configure"
3022  #include "confdefs.h"  #include "confdefs.h"
3023  #include <termios.h>  #include <termios.h>
3024  int main() {  int main() {
3025  speed_t x = 1;  speed_t x = 1;
3026  ; return 0; }  ; return 0; }
3027  EOF  EOF
3028  if { (eval echo configure:3025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3029    rm -rf conftest*    rm -rf conftest*
3030    emacs_cv_speed_t=yes    emacs_cv_speed_t=yes
3031  else  else
# Line 3040  EOF Line 3044  EOF
3044  fi  fi
3045    
3046  echo $ac_n "checking for struct timeval""... $ac_c" 1>&6  echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3047  echo "configure:3044: checking for struct timeval" >&5  echo "configure:3048: checking for struct timeval" >&5
3048  if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
3049    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3050  else  else
3051    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3052  #line 3049 "configure"  #line 3053 "configure"
3053  #include "confdefs.h"  #include "confdefs.h"
3054  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
3055  #include <sys/time.h>  #include <sys/time.h>
# Line 3061  int main() { Line 3065  int main() {
3065  static struct timeval x; x.tv_sec = x.tv_usec;  static struct timeval x; x.tv_sec = x.tv_usec;
3066  ; return 0; }  ; return 0; }
3067  EOF  EOF
3068  if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3069    rm -rf conftest*    rm -rf conftest*
3070    emacs_cv_struct_timeval=yes    emacs_cv_struct_timeval=yes
3071  else  else
# Line 3083  EOF Line 3087  EOF
3087  fi  fi
3088    
3089  echo $ac_n "checking for struct exception""... $ac_c" 1>&6  echo $ac_n "checking for struct exception""... $ac_c" 1>&6
3090  echo "configure:3087: checking for struct exception" >&5  echo "configure:3091: checking for struct exception" >&5
3091  if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
3092    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3093  else  else
3094    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3095  #line 3092 "configure"  #line 3096 "configure"
3096  #include "confdefs.h"  #include "confdefs.h"
3097  #include <math.h>  #include <math.h>
3098  int main() {  int main() {
3099  static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;  static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
3100  ; return 0; }  ; return 0; }
3101  EOF  EOF
3102  if { (eval echo configure:3099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3103    rm -rf conftest*    rm -rf conftest*
3104    emacs_cv_struct_exception=yes    emacs_cv_struct_exception=yes
3105  else  else
# Line 3117  EOF Line 3121  EOF
3121  fi  fi
3122    
3123  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3124  echo "configure:3121: checking whether struct tm is in sys/time.h or time.h" >&5  echo "configure:3125: checking whether struct tm is in sys/time.h or time.h" >&5
3125  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3126    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3127  else  else
3128    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3129  #line 3126 "configure"  #line 3130 "configure"
3130  #include "confdefs.h"  #include "confdefs.h"
3131  #include <sys/types.h>  #include <sys/types.h>
3132  #include <time.h>  #include <time.h>
# Line 3130  int main() { Line 3134  int main() {
3134  struct tm *tp; tp->tm_sec;  struct tm *tp; tp->tm_sec;
3135  ; return 0; }  ; return 0; }
3136  EOF  EOF
3137  if { (eval echo configure:3134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3138    rm -rf conftest*    rm -rf conftest*
3139    ac_cv_struct_tm=time.h    ac_cv_struct_tm=time.h
3140  else  else
# Line 3151  EOF Line 3155  EOF
3155  fi  fi
3156    
3157  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6  echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3158  echo "configure:3155: checking for tm_zone in struct tm" >&5  echo "configure:3159: checking for tm_zone in struct tm" >&5
3159  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3160    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3161  else  else
3162    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3163  #line 3160 "configure"  #line 3164 "configure"
3164  #include "confdefs.h"  #include "confdefs.h"
3165  #include <sys/types.h>  #include <sys/types.h>
3166  #include <$ac_cv_struct_tm>  #include <$ac_cv_struct_tm>
# Line 3164  int main() { Line 3168  int main() {
3168  struct tm tm; tm.tm_zone;  struct tm tm; tm.tm_zone;
3169  ; return 0; }  ; return 0; }
3170  EOF  EOF
3171  if { (eval echo configure:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3172    rm -rf conftest*    rm -rf conftest*
3173    ac_cv_struct_tm_zone=yes    ac_cv_struct_tm_zone=yes
3174  else  else
# Line 3184  EOF Line 3188  EOF
3188    
3189  else  else
3190    echo $ac_n "checking for tzname""... $ac_c" 1>&6    echo $ac_n "checking for tzname""... $ac_c" 1>&6
3191  echo "configure:3188: checking for tzname" >&5  echo "configure:3192: checking for tzname" >&5
3192  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3193    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3194  else  else
3195    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3196  #line 3193 "configure"  #line 3197 "configure"
3197  #include "confdefs.h"  #include "confdefs.h"
3198  #include <time.h>  #include <time.h>
3199  #ifndef tzname /* For SGI.  */  #ifndef tzname /* For SGI.  */
# Line 3199  int main() { Line 3203  int main() {
3203  atoi(*tzname);  atoi(*tzname);
3204  ; return 0; }  ; return 0; }
3205  EOF  EOF
3206  if { (eval echo configure:3203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3207    rm -rf conftest*    rm -rf conftest*
3208    ac_cv_var_tzname=yes    ac_cv_var_tzname=yes
3209  else  else
# Line 3221  EOF Line 3225  EOF
3225  fi  fi
3226    
3227  echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6  echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3228  echo "configure:3225: checking for tm_gmtoff in struct tm" >&5  echo "configure:3229: checking for tm_gmtoff in struct tm" >&5
3229  if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
3230    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3231  else  else
3232    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3233  #line 3230 "configure"  #line 3234 "configure"
3234  #include "confdefs.h"  #include "confdefs.h"
3235  #include <time.h>  #include <time.h>
3236  int main() {  int main() {
3237  struct tm t; t.tm_gmtoff = 0  struct tm t; t.tm_gmtoff = 0
3238  ; return 0; }  ; return 0; }
3239  EOF  EOF
3240  if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3241    rm -rf conftest*    rm -rf conftest*
3242    emacs_cv_tm_gmtoff=yes    emacs_cv_tm_gmtoff=yes
3243  else  else
# Line 3255  fi Line 3259  fi
3259    
3260    
3261  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3262  echo "configure:3259: checking for ${CC-cc} option to accept ANSI C" >&5  echo "configure:3263: checking for ${CC-cc} option to accept ANSI C" >&5
3263  if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
3264    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3265  else  else
# Line 3272  for ac_arg in "" -qlanglvl=ansi -std1 -A Line 3276  for ac_arg in "" -qlanglvl=ansi -std1 -A
3276  do  do
3277    CC="$ac_save_CC $ac_arg"    CC="$ac_save_CC $ac_arg"
3278    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3279  #line 3276 "configure"  #line 3280 "configure"
3280  #include "confdefs.h"  #include "confdefs.h"
3281  #include <stdarg.h>  #include <stdarg.h>
3282  #include <stdio.h>  #include <stdio.h>
# Line 3306  int main() { Line 3310  int main() {
3310  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];  return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3311  ; return 0; }  ; return 0; }
3312  EOF  EOF
3313  if { (eval echo configure:3310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3314    rm -rf conftest*    rm -rf conftest*
3315    ac_cv_prog_cc_stdc="$ac_arg"; break    ac_cv_prog_cc_stdc="$ac_arg"; break
3316  else  else
# Line 3328  case "x$ac_cv_prog_cc_stdc" in Line 3332  case "x$ac_cv_prog_cc_stdc" in
3332  esac  esac
3333    
3334  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
3335  echo "configure:3332: checking for function prototypes" >&5  echo "configure:3336: checking for function prototypes" >&5
3336  if test "$ac_cv_prog_cc_stdc" != no; then  if test "$ac_cv_prog_cc_stdc" != no; then
3337    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
3338    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
# Line 3340  else Line 3344  else
3344  fi  fi
3345    
3346  echo $ac_n "checking for working volatile""... $ac_c" 1>&6  echo $ac_n "checking for working volatile""... $ac_c" 1>&6
3347  echo "configure:3344: checking for working volatile" >&5  echo "configure:3348: checking for working volatile" >&5
3348  if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
3349    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3350  else  else
3351    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3352  #line 3349 "configure"  #line 3353 "configure"
3353  #include "confdefs.h"  #include "confdefs.h"
3354    
3355  int main() {  int main() {
# Line 3354  volatile int x; Line 3358  volatile int x;
3358  int * volatile y;  int * volatile y;
3359  ; return 0; }  ; return 0; }
3360  EOF  EOF
3361  if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3362    rm -rf conftest*    rm -rf conftest*
3363    ac_cv_c_volatile=yes    ac_cv_c_volatile=yes
3364  else  else
# Line 3375  EOF Line 3379  EOF
3379  fi  fi
3380    
3381  echo $ac_n "checking for working const""... $ac_c" 1>&6  echo $ac_n "checking for working const""... $ac_c" 1>&6
3382  echo "configure:3379: checking for working const" >&5  echo "configure:3383: checking for working const" >&5
3383  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3384    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3385  else  else
3386    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3387  #line 3384 "configure"  #line 3388 "configure"
3388  #include "confdefs.h"  #include "confdefs.h"
3389    
3390  int main() {  int main() {
# Line 3429  ccp = (char const *const *) p; Line 3433  ccp = (char const *const *) p;
3433    
3434  ; return 0; }  ; return 0; }
3435  EOF  EOF
3436  if { (eval echo configure:3433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3437    rm -rf conftest*    rm -rf conftest*
3438    ac_cv_c_const=yes    ac_cv_c_const=yes
3439  else  else
# Line 3450  EOF Line 3454  EOF
3454  fi  fi
3455    
3456  echo $ac_n "checking for void * support""... $ac_c" 1>&6  echo $ac_n "checking for void * support""... $ac_c" 1>&6
3457  echo "configure:3454: checking for void * support" >&5  echo "configure:3458: checking for void * support" >&5
3458  if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3459    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3460  else  else
3461    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3462  #line 3459 "configure"  #line 3463 "configure"
3463  #include "confdefs.h"  #include "confdefs.h"
3464    
3465  int main() {  int main() {
3466  void * foo;  void * foo;
3467  ; return 0; }  ; return 0; }
3468  EOF  EOF
3469  if { (eval echo configure:3466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:3470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470    rm -rf conftest*    rm -rf conftest*
3471    emacs_cv_void_star=yes    emacs_cv_void_star=yes
3472  else  else
# Line 3488  EOF Line 3492  EOF
3492  fi  fi
3493    
3494  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3495  echo "configure:3492: checking whether ${MAKE-make} sets \${MAKE}" >&5  echo "configure:3496: checking whether ${MAKE-make} sets \${MAKE}" >&5
3496  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`  set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3497  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3498    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 3516  fi Line 3520  fi
3520    
3521    
3522  echo $ac_n "checking for long file names""... $ac_c" 1>&6  echo $ac_n "checking for long file names""... $ac_c" 1>&6
3523  echo "configure:3520: checking for long file names" >&5  echo "configure:3524: checking for long file names" >&5
3524  if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3525    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3526  else  else
# Line 3567  fi Line 3571  fi
3571  # 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.
3572  # --without-x overrides everything else, but does not touch the cache.  # --without-x overrides everything else, but does not touch the cache.
3573  echo $ac_n "checking for X""... $ac_c" 1>&6  echo $ac_n "checking for X""... $ac_c" 1>&6
3574  echo "configure:3571: checking for X" >&5  echo "configure:3575: checking for X" >&5
3575    
3576  # Check whether --with-x or --without-x was given.  # Check whether --with-x or --without-x was given.
3577  if test "${with_x+set}" = set; then  if test "${with_x+set}" = set; then
# Line 3629  if test "$ac_x_includes" = NO; then Line 3633  if test "$ac_x_includes" = NO; then
3633    
3634    # First, try using that file with no special directory specified.    # First, try using that file with no special directory specified.
3635  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3636  #line 3633 "configure"  #line 3637 "configure"
3637  #include "confdefs.h"  #include "confdefs.h"
3638  #include <$x_direct_test_include>  #include <$x_direct_test_include>
3639  EOF  EOF
3640  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3641  { (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:3642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3642  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3643  if test -z "$ac_err"; then  if test -z "$ac_err"; then
3644    rm -rf conftest*    rm -rf conftest*
# Line 3703  if test "$ac_x_libraries" = NO; then Line 3707  if test "$ac_x_libraries" = NO; then
3707    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
3708    LIBS="-l$x_direct_test_library $LIBS"    LIBS="-l$x_direct_test_library $LIBS"
3709  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
3710  #line 3707 "configure"  #line 3711 "configure"
3711  #include "confdefs.h"  #include "confdefs.h"
3712    
3713  int main() {  int main() {
3714  ${x_direct_test_function}()  ${x_direct_test_function}()
3715  ; return 0; }  ; return 0; }
3716  EOF  EOF
3717  if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718    rm -rf conftest*    rm -rf conftest*
3719    LIBS="$ac_save_LIBS"    LIBS="$ac_save_LIBS"
3720  # We can link X programs with no special library path.  # We can link X programs with no special library path.
# Line 3891  UNEXEC_SRC="`echo ${unexec} | sed 's/\.o Line 3895  UNEXEC_SRC="`echo ${unexec} | sed 's/\.o
3895  GNU_MALLOC=yes  GNU_MALLOC=yes
3896  doug_lea_malloc=yes  doug_lea_malloc=yes
3897  echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6  echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3898  echo "configure:3895: checking for malloc_get_state" >&5  echo "configure:3899: checking for malloc_get_state" >&5
3899  if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3900    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3901  else  else
3902    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3903  #line 3900 "configure"  #line 3904 "configure"
3904  #include "confdefs.h"  #include "confdefs.h"
3905  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3906      which can conflict with char malloc_get_state(); below.  */      which can conflict with char malloc_get_state(); below.  */
# Line 3919  malloc_get_state(); Line 3923  malloc_get_state();
3923    
3924  ; return 0; }  ; return 0; }
3925  EOF  EOF
3926  if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3927    rm -rf conftest*    rm -rf conftest*
3928    eval "ac_cv_func_malloc_get_state=yes"    eval "ac_cv_func_malloc_get_state=yes"
3929  else  else
# Line 3940  doug_lea_malloc=no Line 3944  doug_lea_malloc=no
3944  fi  fi
3945    
3946  echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6  echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3947  echo "configure:3944: checking for malloc_set_state" >&5  echo "configure:3948: checking for malloc_set_state" >&5
3948  if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3949    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3950  else  else
3951    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
3952  #line 3949 "configure"  #line 3953 "configure"
3953  #include "confdefs.h"  #include "confdefs.h"
3954  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
3955      which can conflict with char malloc_set_state(); below.  */      which can conflict with char malloc_set_state(); below.  */
# Line 3968  malloc_set_state(); Line 3972  malloc_set_state();
3972    
3973  ; return 0; }  ; return 0; }
3974  EOF  EOF
3975  if { (eval echo configure:3972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:3976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3976    rm -rf conftest*    rm -rf conftest*
3977    eval "ac_cv_func_malloc_set_state=yes"    eval "ac_cv_func_malloc_set_state=yes"
3978  else  else
# Line 3989  doug_lea_malloc=no Line 3993  doug_lea_malloc=no
3993  fi  fi
3994    
3995  echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6  echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3996  echo "configure:3993: checking whether __after_morecore_hook exists" >&5  echo "configure:3997: checking whether __after_morecore_hook exists" >&5
3997  if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3998    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
3999  else  else
4000    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4001  #line 3998 "configure"  #line 4002 "configure"
4002  #include "confdefs.h"  #include "confdefs.h"
4003  extern void (* __after_morecore_hook)();  extern void (* __after_morecore_hook)();
4004  int main() {  int main() {
4005  __after_morecore_hook = 0  __after_morecore_hook = 0
4006  ; return 0; }  ; return 0; }
4007  EOF  EOF
4008  if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4009    rm -rf conftest*    rm -rf conftest*
4010    emacs_cv_var___after_morecore_hook=yes    emacs_cv_var___after_morecore_hook=yes
4011  else  else
# Line 4042  for ac_hdr in stdlib.h unistd.h sys/stat Line 4046  for ac_hdr in stdlib.h unistd.h sys/stat
4046  do  do
4047  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4048  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4049  echo "configure:4046: checking for $ac_hdr" >&5  echo "configure:4050: checking for $ac_hdr" >&5
4050  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4051    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4052  else  else
4053    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4054  #line 4051 "configure"  #line 4055 "configure"
4055  #include "confdefs.h"  #include "confdefs.h"
4056  #include <$ac_hdr>  #include <$ac_hdr>
4057  EOF  EOF
4058  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4059  { (eval echo configure:4056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:4060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4060  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4061  if test -z "$ac_err"; then  if test -z "$ac_err"; then
4062    rm -rf conftest*    rm -rf conftest*
# Line 4081  done Line 4085  done
4085  for ac_func in getpagesize  for ac_func in getpagesize
4086  do  do
4087  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4088  echo "configure:4085: checking for $ac_func" >&5  echo "configure:4089: checking for $ac_func" >&5
4089  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4090    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4091  else  else
4092    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4093  #line 4090 "configure"  #line 4094 "configure"
4094  #include "confdefs.h"  #include "confdefs.h"
4095  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4096      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4109  $ac_func(); Line 4113  $ac_func();
4113    
4114  ; return 0; }  ; return 0; }
4115  EOF  EOF
4116  if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4117    rm -rf conftest*    rm -rf conftest*
4118    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
4119  else  else
# Line 4134  fi Line 4138  fi
4138  done  done
4139    
4140  echo $ac_n "checking for working mmap""... $ac_c" 1>&6  echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4141  echo "configure:4138: checking for working mmap" >&5  echo "configure:4142: checking for working mmap" >&5
4142  if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4143    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4144  else  else
# Line 4142  else Line 4146  else
4146    ac_cv_func_mmap_fixed_mapped=no    ac_cv_func_mmap_fixed_mapped=no
4147  else  else
4148    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4149  #line 4146 "configure"  #line 4150 "configure"
4150  #include "confdefs.h"  #include "confdefs.h"
4151  /* Thanks to Mike Haertel and Jim Avera for this test.  /* Thanks to Mike Haertel and Jim Avera for this test.
4152     Here is a matrix of mmap possibilities:     Here is a matrix of mmap possibilities:
# Line 4276  main () Line 4280  main ()
4280    exit (0);    exit (0);
4281  }  }
4282  EOF  EOF
4283  if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4284  then  then
4285    ac_cv_func_mmap_fixed_mapped=yes    ac_cv_func_mmap_fixed_mapped=yes
4286  else  else
# Line 4305  fi Line 4309  fi
4309  LIBS="$libsrc_libs $LIBS"  LIBS="$libsrc_libs $LIBS"
4310    
4311  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
4312  echo "configure:4309: checking for dnet_ntoa in -ldnet" >&5  echo "configure:4313: checking for dnet_ntoa in -ldnet" >&5
4313  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4314  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
4315    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4313  else Line 4317  else
4317    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4318  LIBS="-ldnet  $LIBS"  LIBS="-ldnet  $LIBS"
4319  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4320  #line 4317 "configure"  #line 4321 "configure"
4321  #include "confdefs.h"  #include "confdefs.h"
4322  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4323  /* 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 4324  int main() { Line 4328  int main() {
4328  dnet_ntoa()  dnet_ntoa()
4329  ; return 0; }  ; return 0; }
4330  EOF  EOF
4331  if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4332    rm -rf conftest*    rm -rf conftest*
4333    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4334  else  else
# Line 4353  fi Line 4357  fi
4357    
4358    
4359  echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6  echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
4360  echo "configure:4357: checking for main in -lXbsd" >&5  echo "configure:4361: checking for main in -lXbsd" >&5
4361  ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
4362  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
4363    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4361  else Line 4365  else
4365    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4366  LIBS="-lXbsd  $LIBS"  LIBS="-lXbsd  $LIBS"
4367  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4368  #line 4365 "configure"  #line 4369 "configure"
4369  #include "confdefs.h"  #include "confdefs.h"
4370    
4371  int main() {  int main() {
4372  main()  main()
4373  ; return 0; }  ; return 0; }
4374  EOF  EOF
4375  if { (eval echo configure:4372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4376    rm -rf conftest*    rm -rf conftest*
4377    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4378  else  else
# Line 4390  fi Line 4394  fi
4394    
4395    
4396  echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6  echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4397  echo "configure:4394: checking for cma_open in -lpthreads" >&5  echo "configure:4398: checking for cma_open in -lpthreads" >&5
4398  ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`  ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4399  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
4400    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4398  else Line 4402  else
4402    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4403  LIBS="-lpthreads  $LIBS"  LIBS="-lpthreads  $LIBS"
4404  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4405  #line 4402 "configure"  #line 4406 "configure"
4406  #include "confdefs.h"  #include "confdefs.h"
4407  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4408  /* 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 4409  int main() { Line 4413  int main() {
4413  cma_open()  cma_open()
4414  ; return 0; }  ; return 0; }
4415  EOF  EOF
4416  if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4417    rm -rf conftest*    rm -rf conftest*
4418    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4419  else  else
# Line 4438  fi Line 4442  fi
4442    
4443    
4444  echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6  echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
4445  echo "configure:4442: checking for XFree86 in /usr/X386" >&5  echo "configure:4446: checking for XFree86 in /usr/X386" >&5
4446  if test -d /usr/X386/include; then  if test -d /usr/X386/include; then
4447    HAVE_XFREE386=yes    HAVE_XFREE386=yes
4448    : ${C_SWITCH_X_SITE="-I/usr/X386/include"}    : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
# Line 4470  if test "${HAVE_X11}" = "yes"; then Line 4474  if test "${HAVE_X11}" = "yes"; then
4474    
4475    if test "${opsys}" = "gnu-linux"; then    if test "${opsys}" = "gnu-linux"; then
4476      echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6      echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
4477  echo "configure:4474: checking whether X on GNU/Linux needs -b to link" >&5  echo "configure:4478: checking whether X on GNU/Linux needs -b to link" >&5
4478      cat > conftest.$ac_ext <<EOF      cat > conftest.$ac_ext <<EOF
4479  #line 4476 "configure"  #line 4480 "configure"
4480  #include "confdefs.h"  #include "confdefs.h"
4481    
4482  int main() {  int main() {
4483  XOpenDisplay ("foo");  XOpenDisplay ("foo");
4484  ; return 0; }  ; return 0; }
4485  EOF  EOF
4486  if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4487    rm -rf conftest*    rm -rf conftest*
4488    xlinux_first_failure=no    xlinux_first_failure=no
4489  else  else
# Line 4499  rm -f conftest* Line 4503  rm -f conftest*
4503        CPPFLAGS="$CPPFLAGS -b i486-linuxaout"        CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
4504        LIBS="$LIBS -b i486-linuxaout"        LIBS="$LIBS -b i486-linuxaout"
4505        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
4506  #line 4503 "configure"  #line 4507 "configure"
4507  #include "confdefs.h"  #include "confdefs.h"
4508    
4509  int main() {  int main() {
4510  XOpenDisplay ("foo");  XOpenDisplay ("foo");
4511  ; return 0; }  ; return 0; }
4512  EOF  EOF
4513  if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4514    rm -rf conftest*    rm -rf conftest*
4515    xlinux_second_failure=no    xlinux_second_failure=no
4516  else  else
# Line 4535  rm -f conftest* Line 4539  rm -f conftest*
4539    # Reportedly, some broken Solaris systems have XKBlib.h but are missing    # Reportedly, some broken Solaris systems have XKBlib.h but are missing
4540    # header files included from there.    # header files included from there.
4541    echo $ac_n "checking for Xkb""... $ac_c" 1>&6    echo $ac_n "checking for Xkb""... $ac_c" 1>&6
4542  echo "configure:4539: checking for Xkb" >&5  echo "configure:4543: checking for Xkb" >&5
4543    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4544  #line 4541 "configure"  #line 4545 "configure"
4545  #include "confdefs.h"  #include "confdefs.h"
4546  #include <X11/Xlib.h>  #include <X11/Xlib.h>
4547  #include <X11/XKBlib.h>  #include <X11/XKBlib.h>
# Line 4545  int main() { Line 4549  int main() {
4549  XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);  XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
4550  ; return 0; }  ; return 0; }
4551  EOF  EOF
4552  if { (eval echo configure:4549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4553    rm -rf conftest*    rm -rf conftest*
4554    emacs_xkb=yes    emacs_xkb=yes
4555  else  else
# Line 4567  EOF Line 4571  EOF
4571  XScreenNumberOfScreen XSetWMProtocols  XScreenNumberOfScreen XSetWMProtocols
4572  do  do
4573  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4574  echo "configure:4571: checking for $ac_func" >&5  echo "configure:4575: checking for $ac_func" >&5
4575  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4576    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4577  else  else
4578    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4579  #line 4576 "configure"  #line 4580 "configure"
4580  #include "confdefs.h"  #include "confdefs.h"
4581  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
4582      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 4595  $ac_func(); Line 4599  $ac_func();
4599    
4600  ; return 0; }  ; return 0; }
4601  EOF  EOF
4602  if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4603    rm -rf conftest*    rm -rf conftest*
4604    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
4605  else  else
# Line 4623  fi Line 4627  fi
4627    
4628  if test "${window_system}" = "x11"; then  if test "${window_system}" = "x11"; then
4629    echo $ac_n "checking X11 version 6""... $ac_c" 1>&6    echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4630  echo "configure:4627: checking X11 version 6" >&5  echo "configure:4631: checking X11 version 6" >&5
4631    if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then    if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4632    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4633  else  else
4634    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4635  #line 4632 "configure"  #line 4636 "configure"
4636  #include "confdefs.h"  #include "confdefs.h"
4637  #include <X11/Xlib.h>  #include <X11/Xlib.h>
4638  int main() {  int main() {
# Line 4638  fail; Line 4642  fail;
4642    
4643  ; return 0; }  ; return 0; }
4644  EOF  EOF
4645  if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646    rm -rf conftest*    rm -rf conftest*
4647    emacs_cv_x11_version_6=yes    emacs_cv_x11_version_6=yes
4648  else  else
# Line 4663  fi Line 4667  fi
4667    
4668  if test "${window_system}" = "x11"; then  if test "${window_system}" = "x11"; then
4669    echo $ac_n "checking X11 version 5""... $ac_c" 1>&6    echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4670  echo "configure:4667: checking X11 version 5" >&5  echo "configure:4671: checking X11 version 5" >&5
4671    if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then    if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4672    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4673  else  else
4674    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4675  #line 4672 "configure"  #line 4676 "configure"
4676  #include "confdefs.h"  #include "confdefs.h"
4677  #include <X11/Xlib.h>  #include <X11/Xlib.h>
4678  int main() {  int main() {
# Line 4678  fail; Line 4682  fail;
4682    
4683  ; return 0; }  ; return 0; }
4684  EOF  EOF
4685  if { (eval echo configure:4682: \"$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    emacs_cv_x11_version_5=yes    emacs_cv_x11_version_5=yes
4688  else  else
# Line 4706  fi Line 4710  fi
4710  if test x"${USE_X_TOOLKIT}" = xmaybe; then  if test x"${USE_X_TOOLKIT}" = xmaybe; then
4711    if test x"${HAVE_X11R5}" = xyes; then    if test x"${HAVE_X11R5}" = xyes; then
4712      echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6      echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4713  echo "configure:4710: checking X11 version 5 with Xaw" >&5  echo "configure:4714: checking X11 version 5 with Xaw" >&5
4714      if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then      if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4715    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4716  else  else
4717    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4718  #line 4715 "configure"  #line 4719 "configure"
4719  #include "confdefs.h"  #include "confdefs.h"
4720    
4721  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
# Line 4720  int main() { Line 4724  int main() {
4724    
4725  ; return 0; }  ; return 0; }
4726  EOF  EOF
4727  if { (eval echo configure:4724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728    rm -rf conftest*    rm -rf conftest*
4729    emacs_cv_x11_version_5_with_xaw=yes    emacs_cv_x11_version_5_with_xaw=yes
4730  else  else
# Line 4748  X_TOOLKIT_TYPE=$USE_X_TOOLKIT Line 4752  X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4752    
4753  if test "${USE_X_TOOLKIT}" != "none"; then  if test "${USE_X_TOOLKIT}" != "none"; then
4754    echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6    echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4755  echo "configure:4752: checking X11 toolkit version" >&5  echo "configure:4756: checking X11 toolkit version" >&5
4756    if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then    if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4757    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4758  else  else
4759    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4760  #line 4757 "configure"  #line 4761 "configure"
4761  #include "confdefs.h"  #include "confdefs.h"
4762  #include <X11/Intrinsic.h>  #include <X11/Intrinsic.h>
4763  int main() {  int main() {
# Line 4763  fail; Line 4767  fail;
4767    
4768  ; return 0; }  ; return 0; }
4769  EOF  EOF
4770  if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4771    rm -rf conftest*    rm -rf conftest*
4772    emacs_cv_x11_toolkit_version_6=yes    emacs_cv_x11_toolkit_version_6=yes
4773  else  else
# Line 4793  EOF Line 4797  EOF
4797      LIBS="-lXt $LIBS"      LIBS="-lXt $LIBS"
4798    fi    fi
4799    echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6    echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4800  echo "configure:4797: checking for XmuConvertStandardSelection in -lXmu" >&5  echo "configure:4801: checking for XmuConvertStandardSelection in -lXmu" >&5
4801  ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4802  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
4803    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4801  else Line 4805  else
4805    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4806  LIBS="-lXmu  $LIBS"  LIBS="-lXmu  $LIBS"
4807  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4808  #line 4805 "configure"  #line 4809 "configure"
4809  #include "confdefs.h"  #include "confdefs.h"
4810  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4811  /* 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 4812  int main() { Line 4816  int main() {
4816  XmuConvertStandardSelection()  XmuConvertStandardSelection()
4817  ; return 0; }  ; return 0; }
4818  EOF  EOF
4819  if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4820    rm -rf conftest*    rm -rf conftest*
4821    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4822  else  else
# Line 4846  fi Line 4850  fi
4850  if test "${HAVE_X11}" = "yes"; then  if test "${HAVE_X11}" = "yes"; then
4851    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
4852      echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6      echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6
4853  echo "configure:4850: checking for XShapeQueryExtension in -lXext" >&5  echo "configure:4854: checking for XShapeQueryExtension in -lXext" >&5
4854  ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'`
4855  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
4856    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4854  else Line 4858  else
4858    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4859  LIBS="-lXext  $LIBS"  LIBS="-lXext  $LIBS"
4860  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4861  #line 4858 "configure"  #line 4862 "configure"
4862  #include "confdefs.h"  #include "confdefs.h"
4863  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4864  /* 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 4865  int main() { Line 4869  int main() {
4869  XShapeQueryExtension()  XShapeQueryExtension()
4870  ; return 0; }  ; return 0; }
4871  EOF  EOF
4872  if { (eval echo configure:4869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873    rm -rf conftest*    rm -rf conftest*
4874    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4875  else  else
# Line 4897  fi Line 4901  fi
4901    
4902  if test "${USE_X_TOOLKIT}" = "MOTIF"; then  if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4903    echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6    echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4904  echo "configure:4901: checking for Motif version 2.1" >&5  echo "configure:4905: checking for Motif version 2.1" >&5
4905  if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4906    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4907  else  else
4908    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
4909  #line 4906 "configure"  #line 4910 "configure"
4910  #include "confdefs.h"  #include "confdefs.h"
4911  #include <Xm/Xm.h>  #include <Xm/Xm.h>
4912  int main() {  int main() {
# Line 4913  Motif version prior to 2.1. Line 4917  Motif version prior to 2.1.
4917  #endif  #endif
4918  ; return 0; }  ; return 0; }
4919  EOF  EOF
4920  if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:4921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4921    rm -rf conftest*    rm -rf conftest*
4922    emacs_cv_motif_version_2_1=yes    emacs_cv_motif_version_2_1=yes
4923  else  else
# Line 4934  echo "$ac_t""$emacs_cv_motif_version_2_1 Line 4938  echo "$ac_t""$emacs_cv_motif_version_2_1
4938  EOF  EOF
4939    
4940      echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6      echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4941  echo "configure:4938: checking for XpCreateContext in -lXp" >&5  echo "configure:4942: checking for XpCreateContext in -lXp" >&5
4942  ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4943  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
4944    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 4942  else Line 4946  else
4946    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
4947  LIBS="-lXp  $LIBS"  LIBS="-lXp  $LIBS"
4948  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
4949  #line 4946 "configure"  #line 4950 "configure"
4950  #include "confdefs.h"  #include "confdefs.h"
4951  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
4952  /* 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 4953  int main() { Line 4957  int main() {
4957  XpCreateContext()  XpCreateContext()
4958  ; return 0; }  ; return 0; }
4959  EOF  EOF
4960  if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:4961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961    rm -rf conftest*    rm -rf conftest*
4962    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
4963  else  else
# Line 4988  if test "${HAVE_X11}" = "yes"; then Line 4992  if test "${HAVE_X11}" = "yes"; then
4992    if test "${USE_X_TOOLKIT}" != "none"; then    if test "${USE_X_TOOLKIT}" != "none"; then
4993      ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4994  echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6  echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4995  echo "configure:4992: checking for X11/Xaw3d/Scrollbar.h" >&5  echo "configure:4996: checking for X11/Xaw3d/Scrollbar.h" >&5
4996  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4997    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
4998  else  else
4999    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5000  #line 4997 "configure"  #line 5001 "configure"
5001  #include "confdefs.h"  #include "confdefs.h"
5002  #include <X11/Xaw3d/Scrollbar.h>  #include <X11/Xaw3d/Scrollbar.h>
5003  EOF  EOF
5004  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5005  { (eval echo configure:5002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5006  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5007  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5008    rm -rf conftest*    rm -rf conftest*
# Line 5015  fi Line 5019  fi
5019  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5020    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5021    echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6    echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
5022  echo "configure:5019: checking for XawScrollbarSetThumb in -lXaw3d" >&5  echo "configure:5023: checking for XawScrollbarSetThumb in -lXaw3d" >&5
5023  ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5024  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
5025    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5023  else Line 5027  else
5027    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5028  LIBS="-lXaw3d  $LIBS"  LIBS="-lXaw3d  $LIBS"
5029  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5030  #line 5027 "configure"  #line 5031 "configure"
5031  #include "confdefs.h"  #include "confdefs.h"
5032  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5033  /* 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 5034  int main() { Line 5038  int main() {
5038  XawScrollbarSetThumb()  XawScrollbarSetThumb()
5039  ; return 0; }  ; return 0; }
5040  EOF  EOF
5041  if { (eval echo configure:5038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5042    rm -rf conftest*    rm -rf conftest*
5043    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5044  else  else
# Line 5102  if test "${HAVE_X11}" = "yes"; then Line 5106  if test "${HAVE_X11}" = "yes"; then
5106    if test "${with_xpm}" != "no"; then    if test "${with_xpm}" != "no"; then
5107      ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
5108  echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6  echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
5109  echo "configure:5106: checking for X11/xpm.h" >&5  echo "configure:5110: checking for X11/xpm.h" >&5
5110  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5111    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5112  else  else
5113    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5114  #line 5111 "configure"  #line 5115 "configure"
5115  #include "confdefs.h"  #include "confdefs.h"
5116  #include <X11/xpm.h>  #include <X11/xpm.h>
5117  EOF  EOF
5118  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5119  { (eval echo configure:5116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5120  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5121  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5122    rm -rf conftest*    rm -rf conftest*
# Line 5129  fi Line 5133  fi
5133  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5134    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5135    echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6    echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
5136  echo "configure:5133: checking for XpmReadFileToPixmap in -lXpm" >&5  echo "configure:5137: checking for XpmReadFileToPixmap in -lXpm" >&5
5137  ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`  ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
5138  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
5139    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5137  else Line 5141  else
5141    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5142  LIBS="-lXpm -lX11 $LIBS"  LIBS="-lXpm -lX11 $LIBS"
5143  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5144  #line 5141 "configure"  #line 5145 "configure"
5145  #include "confdefs.h"  #include "confdefs.h"
5146  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5147  /* 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 5148  int main() { Line 5152  int main() {
5152  XpmReadFileToPixmap()  XpmReadFileToPixmap()
5153  ; return 0; }  ; return 0; }
5154  EOF  EOF
5155  if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5156    rm -rf conftest*    rm -rf conftest*
5157    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5158  else  else
# Line 5174  fi Line 5178  fi
5178    
5179      if test "${HAVE_XPM}" = "yes"; then      if test "${HAVE_XPM}" = "yes"; then
5180        echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6        echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6
5181  echo "configure:5178: checking for XpmReturnAllocPixels preprocessor define" >&5  echo "configure:5182: checking for XpmReturnAllocPixels preprocessor define" >&5
5182        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
5183  #line 5180 "configure"  #line 5184 "configure"
5184  #include "confdefs.h"  #include "confdefs.h"
5185  #include "X11/xpm.h"  #include "X11/xpm.h"
5186  #ifndef XpmReturnAllocPixels  #ifndef XpmReturnAllocPixels
# Line 5217  if test "${HAVE_X11}" = "yes"; then Line 5221  if test "${HAVE_X11}" = "yes"; then
5221    if test "${with_jpeg}" != "no"; then    if test "${with_jpeg}" != "no"; then
5222              ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`              ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
5223  echo $ac_n "checking for jerror.h""... $ac_c" 1>&6  echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
5224  echo "configure:5221: checking for jerror.h" >&5  echo "configure:5225: checking for jerror.h" >&5
5225  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5226    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5227  else  else
5228    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5229  #line 5226 "configure"  #line 5230 "configure"
5230  #include "confdefs.h"  #include "confdefs.h"
5231  #include <jerror.h>  #include <jerror.h>
5232  EOF  EOF
5233  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5234  { (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5235  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5236  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5237    rm -rf conftest*    rm -rf conftest*
# Line 5244  fi Line 5248  fi
5248  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5249    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5250    echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6    echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5251  echo "configure:5248: checking for jpeg_destroy_compress in -ljpeg" >&5  echo "configure:5252: checking for jpeg_destroy_compress in -ljpeg" >&5
5252  ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`  ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5253  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
5254    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5252  else Line 5256  else
5256    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5257  LIBS="-ljpeg  $LIBS"  LIBS="-ljpeg  $LIBS"
5258  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5259  #line 5256 "configure"  #line 5260 "configure"
5260  #include "confdefs.h"  #include "confdefs.h"
5261  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5262  /* 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 5263  int main() { Line 5267  int main() {
5267  jpeg_destroy_compress()  jpeg_destroy_compress()
5268  ; return 0; }  ; return 0; }
5269  EOF  EOF
5270  if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5271    rm -rf conftest*    rm -rf conftest*
5272    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5273  else  else
# Line 5303  if test "${HAVE_X11}" = "yes"; then Line 5307  if test "${HAVE_X11}" = "yes"; then
5307    if test "${with_png}" != "no"; then    if test "${with_png}" != "no"; then
5308      ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5309  echo $ac_n "checking for png.h""... $ac_c" 1>&6  echo $ac_n "checking for png.h""... $ac_c" 1>&6
5310  echo "configure:5307: checking for png.h" >&5  echo "configure:5311: checking for png.h" >&5
5311  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5312    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5313  else  else
5314    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5315  #line 5312 "configure"  #line 5316 "configure"
5316  #include "confdefs.h"  #include "confdefs.h"
5317  #include <png.h>  #include <png.h>
5318  EOF  EOF
5319  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5320  { (eval echo configure:5317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5321  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5322  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5323    rm -rf conftest*    rm -rf conftest*
# Line 5330  fi Line 5334  fi
5334  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5335    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5336    echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6    echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6
5337  echo "configure:5334: checking for png_get_channels in -lpng" >&5  echo "configure:5338: checking for png_get_channels in -lpng" >&5
5338  ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`  ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'`
5339  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
5340    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5338  else Line 5342  else
5342    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5343  LIBS="-lpng -lz -lm $LIBS"  LIBS="-lpng -lz -lm $LIBS"
5344  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5345  #line 5342 "configure"  #line 5346 "configure"
5346  #include "confdefs.h"  #include "confdefs.h"
5347  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5348  /* 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 5349  int main() { Line 5353  int main() {
5353  png_get_channels()  png_get_channels()
5354  ; return 0; }  ; return 0; }
5355  EOF  EOF
5356  if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5357    rm -rf conftest*    rm -rf conftest*
5358    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5359  else  else
# Line 5389  if test "${HAVE_X11}" = "yes"; then Line 5393  if test "${HAVE_X11}" = "yes"; then
5393    if test "${with_tiff}" != "no"; then    if test "${with_tiff}" != "no"; then
5394      ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5395  echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6  echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5396  echo "configure:5393: checking for tiffio.h" >&5  echo "configure:5397: checking for tiffio.h" >&5
5397  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5398    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5399  else  else
5400    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5401  #line 5398 "configure"  #line 5402 "configure"
5402  #include "confdefs.h"  #include "confdefs.h"
5403  #include <tiffio.h>  #include <tiffio.h>
5404  EOF  EOF
5405  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5406  { (eval echo configure:5403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5407  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5408  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5409    rm -rf conftest*    rm -rf conftest*
# Line 5419  if eval "test \"`echo '$ac_cv_header_'$a Line 5423  if eval "test \"`echo '$ac_cv_header_'$a
5423        # At least one tiff package requires the jpeg library.        # At least one tiff package requires the jpeg library.
5424        if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi        if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
5425        echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6        echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5426  echo "configure:5423: checking for TIFFGetVersion in -ltiff" >&5  echo "configure:5427: checking for TIFFGetVersion in -ltiff" >&5
5427  ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`  ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5428  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
5429    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5427  else Line 5431  else
5431    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5432  LIBS="-ltiff $tifflibs $LIBS"  LIBS="-ltiff $tifflibs $LIBS"
5433  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5434  #line 5431 "configure"  #line 5435 "configure"
5435  #include "confdefs.h"  #include "confdefs.h"
5436  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5437  /* 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 5438  int main() { Line 5442  int main() {
5442  TIFFGetVersion()  TIFFGetVersion()
5443  ; return 0; }  ; return 0; }
5444  EOF  EOF
5445  if { (eval echo configure:5442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5446    rm -rf conftest*    rm -rf conftest*
5447    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5448  else  else
# Line 5478  if test "${HAVE_X11}" = "yes"; then Line 5482  if test "${HAVE_X11}" = "yes"; then
5482    if test "${with_gif}" != "no"; then    if test "${with_gif}" != "no"; then
5483      ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5484  echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6  echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5485  echo "configure:5482: checking for gif_lib.h" >&5  echo "configure:5486: checking for gif_lib.h" >&5
5486  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5487    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5488  else  else
5489    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5490  #line 5487 "configure"  #line 5491 "configure"
5491  #include "confdefs.h"  #include "confdefs.h"
5492  #include <gif_lib.h>  #include <gif_lib.h>
5493  EOF  EOF
5494  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5495  { (eval echo configure:5492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:5496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5496  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5497  if test -z "$ac_err"; then  if test -z "$ac_err"; then
5498    rm -rf conftest*    rm -rf conftest*
# Line 5505  fi Line 5509  fi
5509  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5510    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
5511    echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6    echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
5512  echo "configure:5509: checking for DGifOpen in -lungif" >&5  echo "configure:5513: checking for DGifOpen in -lungif" >&5
5513  ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
5514  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
5515    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5513  else Line 5517  else
5517    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5518  LIBS="-lungif  $LIBS"  LIBS="-lungif  $LIBS"
5519  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5520  #line 5517 "configure"  #line 5521 "configure"
5521  #include "confdefs.h"  #include "confdefs.h"
5522  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5523  /* 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 5524  int main() { Line 5528  int main() {
5528  DGifOpen()  DGifOpen()
5529  ; return 0; }  ; return 0; }
5530  EOF  EOF
5531  if { (eval echo configure:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532    rm -rf conftest*    rm -rf conftest*
5533    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5534  else  else
# Line 5560  fi Line 5564  fi
5564    
5565  # If netdb.h doesn't declare h_errno, we must declare it by hand.  # If netdb.h doesn't declare h_errno, we must declare it by hand.
5566  echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6  echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
5567  echo "configure:5564: checking whether netdb declares h_errno" >&5  echo "configure:5568: checking whether netdb declares h_errno" >&5
5568  if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
5569    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5570  else  else
5571    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5572  #line 5569 "configure"  #line 5573 "configure"
5573  #include "confdefs.h"  #include "confdefs.h"
5574  #include <netdb.h>  #include <netdb.h>
5575  int main() {  int main() {
5576  return h_errno;  return h_errno;
5577  ; return 0; }  ; return 0; }
5578  EOF  EOF
5579  if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5580    rm -rf conftest*    rm -rf conftest*
5581    emacs_cv_netdb_declares_h_errno=yes    emacs_cv_netdb_declares_h_errno=yes
5582  else  else
# Line 5595  fi Line 5599  fi
5599  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5600  # for constant arguments.  Useless!  # for constant arguments.  Useless!
5601  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5602  echo "configure:5599: checking for working alloca.h" >&5  echo "configure:5603: checking for working alloca.h" >&5
5603  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5604    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5605  else  else
5606    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5607  #line 5604 "configure"  #line 5608 "configure"
5608  #include "confdefs.h"  #include "confdefs.h"
5609  #include <alloca.h>  #include <alloca.h>
5610  int main() {  int main() {
5611  char *p = alloca(2 * sizeof(int));  char *p = alloca(2 * sizeof(int));
5612  ; return 0; }  ; return 0; }
5613  EOF  EOF
5614  if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5615    rm -rf conftest*    rm -rf conftest*
5616    ac_cv_header_alloca_h=yes    ac_cv_header_alloca_h=yes
5617  else  else
# Line 5628  EOF Line 5632  EOF
5632  fi  fi
5633    
5634  echo $ac_n "checking for alloca""... $ac_c" 1>&6  echo $ac_n "checking for alloca""... $ac_c" 1>&6
5635  echo "configure:5632: checking for alloca" >&5  echo "configure:5636: checking for alloca" >&5
5636  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5637    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5638  else  else
5639    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5640  #line 5637 "configure"  #line 5641 "configure"
5641  #include "confdefs.h"  #include "confdefs.h"
5642    
5643  #ifdef __GNUC__  #ifdef __GNUC__
# Line 5661  int main() { Line 5665  int main() {
5665  char *p = (char *) alloca(1);  char *p = (char *) alloca(1);
5666  ; return 0; }  ; return 0; }
5667  EOF  EOF
5668  if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5669    rm -rf conftest*    rm -rf conftest*
5670    ac_cv_func_alloca_works=yes    ac_cv_func_alloca_works=yes
5671  else  else
# Line 5693  EOF Line 5697  EOF
5697    
5698    
5699  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5700  echo "configure:5697: checking whether alloca needs Cray hooks" >&5  echo "configure:5701: checking whether alloca needs Cray hooks" >&5
5701  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5702    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5703  else  else
5704    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5705  #line 5702 "configure"  #line 5706 "configure"
5706  #include "confdefs.h"  #include "confdefs.h"
5707  #if defined(CRAY) && ! defined(CRAY2)  #if defined(CRAY) && ! defined(CRAY2)
5708  webecray  webecray
# Line 5723  echo "$ac_t""$ac_cv_os_cray" 1>&6 Line 5727  echo "$ac_t""$ac_cv_os_cray" 1>&6
5727  if test $ac_cv_os_cray = yes; then  if test $ac_cv_os_cray = yes; then
5728  for ac_func in _getb67 GETB67 getb67; do  for ac_func in _getb67 GETB67 getb67; do
5729    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5730  echo "configure:5727: checking for $ac_func" >&5  echo "configure:5731: checking for $ac_func" >&5
5731  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5732    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5733  else  else
5734    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5735  #line 5732 "configure"  #line 5736 "configure"
5736  #include "confdefs.h"  #include "confdefs.h"
5737  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
5738      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 5751  $ac_func(); Line 5755  $ac_func();
5755    
5756  ; return 0; }  ; return 0; }
5757  EOF  EOF
5758  if { (eval echo configure:5755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5759    rm -rf conftest*    rm -rf conftest*
5760    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
5761  else  else
# Line 5778  done Line 5782  done
5782  fi  fi
5783    
5784  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5785  echo "configure:5782: checking stack direction for C alloca" >&5  echo "configure:5786: checking stack direction for C alloca" >&5
5786  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5787    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5788  else  else
# Line 5786  else Line 5790  else
5790    ac_cv_c_stack_direction=0    ac_cv_c_stack_direction=0
5791  else  else
5792    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
5793  #line 5790 "configure"  #line 5794 "configure"
5794  #include "confdefs.h"  #include "confdefs.h"
5795  find_stack_direction ()  find_stack_direction ()
5796  {  {
# Line 5805  main () Line 5809  main ()
5809    exit (find_stack_direction() < 0);    exit (find_stack_direction() < 0);
5810  }  }
5811  EOF  EOF
5812  if { (eval echo configure:5809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5813  then  then
5814    ac_cv_c_stack_direction=1    ac_cv_c_stack_direction=1
5815  else  else
# Line 5830  fi Line 5834  fi
5834  # fmod, logb, and frexp are found in -lm on most systems.  # fmod, logb, and frexp are found in -lm on most systems.
5835  # On HPUX 9.01, -lm does not contain logb, so check for sqrt.  # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5836  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6  echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5837  echo "configure:5834: checking for sqrt in -lm" >&5  echo "configure:5838: checking for sqrt in -lm" >&5
5838  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5839  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
5840    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5838  else Line 5842  else
5842    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5843  LIBS="-lm  $LIBS"  LIBS="-lm  $LIBS"
5844  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5845  #line 5842 "configure"  #line 5846 "configure"
5846  #include "confdefs.h"  #include "confdefs.h"
5847  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5848  /* 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 5849  int main() { Line 5853  int main() {
5853  sqrt()  sqrt()
5854  ; return 0; }  ; return 0; }
5855  EOF  EOF
5856  if { (eval echo configure:5853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857    rm -rf conftest*    rm -rf conftest*
5858    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5859  else  else
# Line 5879  fi Line 5883  fi
5883    
5884  # Check for mail-locking functions in a "mail" library  # Check for mail-locking functions in a "mail" library
5885  echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6  echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5886  echo "configure:5883: checking for maillock in -lmail" >&5  echo "configure:5887: checking for maillock in -lmail" >&5
5887  ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`  ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5888  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
5889    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5887  else Line 5891  else
5891    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5892  LIBS="-lmail  $LIBS"  LIBS="-lmail  $LIBS"
5893  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5894  #line 5891 "configure"  #line 5895 "configure"
5895  #include "confdefs.h"  #include "confdefs.h"
5896  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5897  /* 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 5898  int main() { Line 5902  int main() {
5902  maillock()  maillock()
5903  ; return 0; }  ; return 0; }
5904  EOF  EOF
5905  if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5906    rm -rf conftest*    rm -rf conftest*
5907    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5908  else  else
# Line 5926  else Line 5930  else
5930  fi  fi
5931    
5932  echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6  echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5933  echo "configure:5930: checking for maillock in -llockfile" >&5  echo "configure:5934: checking for maillock in -llockfile" >&5
5934  ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`  ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5935  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
5936    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 5934  else Line 5938  else
5938    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
5939  LIBS="-llockfile  $LIBS"  LIBS="-llockfile  $LIBS"
5940  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
5941  #line 5938 "configure"  #line 5942 "configure"
5942  #include "confdefs.h"  #include "confdefs.h"
5943  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
5944  /* 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 5945  int main() { Line 5949  int main() {
5949  maillock()  maillock()
5950  ; return 0; }  ; return 0; }
5951  EOF  EOF
5952  if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5953    rm -rf conftest*    rm -rf conftest*
5954    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
5955  else  else
# Line 5979  if test "$ac_cv_lib_lockfile_maillock" = Line 5983  if test "$ac_cv_lib_lockfile_maillock" =
5983        # Extract the first word of "liblockfile.so", so it can be a program name with args.        # Extract the first word of "liblockfile.so", so it can be a program name with args.
5984  set dummy liblockfile.so; ac_word=$2  set dummy liblockfile.so; ac_word=$2
5985  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5986  echo "configure:5983: checking for $ac_word" >&5  echo "configure:5987: checking for $ac_word" >&5
5987  if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5988    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
5989  else  else
# Line 6020  fi Line 6024  fi
6024  for ac_func in touchlock  for ac_func in touchlock
6025  do  do
6026  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6027  echo "configure:6024: checking for $ac_func" >&5  echo "configure:6028: checking for $ac_func" >&5
6028  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6029    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6030  else  else
6031    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6032  #line 6029 "configure"  #line 6033 "configure"
6033  #include "confdefs.h"  #include "confdefs.h"
6034  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6035      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6048  $ac_func(); Line 6052  $ac_func();
6052    
6053  ; return 0; }  ; return 0; }
6054  EOF  EOF
6055  if { (eval echo configure:6052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6056    rm -rf conftest*    rm -rf conftest*
6057    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6058  else  else
# Line 6076  for ac_hdr in maillock.h Line 6080  for ac_hdr in maillock.h
6080  do  do
6081  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6082  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6083  echo "configure:6080: checking for $ac_hdr" >&5  echo "configure:6084: checking for $ac_hdr" >&5
6084  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6085    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6086  else  else
6087    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6088  #line 6085 "configure"  #line 6089 "configure"
6089  #include "confdefs.h"  #include "confdefs.h"
6090  #include <$ac_hdr>  #include <$ac_hdr>
6091  EOF  EOF
6092  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6093  { (eval echo configure:6090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6094  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6095  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6096    rm -rf conftest*    rm -rf conftest*
# Line 6122  __fpending mblen mbrlen strsignal setiti Line 6126  __fpending mblen mbrlen strsignal setiti
6126  gai_strerror mkstemp  gai_strerror mkstemp
6127  do  do
6128  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6129  echo "configure:6126: checking for $ac_func" >&5  echo "configure:6130: checking for $ac_func" >&5
6130  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6131    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6132  else  else
6133    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6134  #line 6131 "configure"  #line 6135 "configure"
6135  #include "confdefs.h"  #include "confdefs.h"
6136  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6137      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6150  $ac_func(); Line 6154  $ac_func();
6154    
6155  ; return 0; }  ; return 0; }
6156  EOF  EOF
6157  if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6158    rm -rf conftest*    rm -rf conftest*
6159    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6160  else  else
# Line 6179  for ac_hdr in sys/time.h unistd.h Line 6183  for ac_hdr in sys/time.h unistd.h
6183  do  do
6184  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6185  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6186  echo "configure:6183: checking for $ac_hdr" >&5  echo "configure:6187: checking for $ac_hdr" >&5
6187  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6188    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6189  else  else
6190    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6191  #line 6188 "configure"  #line 6192 "configure"
6192  #include "confdefs.h"  #include "confdefs.h"
6193  #include <$ac_hdr>  #include <$ac_hdr>
6194  EOF  EOF
6195  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6196  { (eval echo configure:6193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6197  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6198  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6199    rm -rf conftest*    rm -rf conftest*
# Line 6218  done Line 6222  done
6222  for ac_func in alarm  for ac_func in alarm
6223  do  do
6224  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6225  echo "configure:6222: checking for $ac_func" >&5  echo "configure:6226: checking for $ac_func" >&5
6226  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6227    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6228  else  else
6229    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6230  #line 6227 "configure"  #line 6231 "configure"
6231  #include "confdefs.h"  #include "confdefs.h"
6232  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6233      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6246  $ac_func(); Line 6250  $ac_func();
6250    
6251  ; return 0; }  ; return 0; }
6252  EOF  EOF
6253  if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254    rm -rf conftest*    rm -rf conftest*
6255    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6256  else  else
# Line 6271  fi Line 6275  fi
6275  done  done
6276    
6277  echo $ac_n "checking for working mktime""... $ac_c" 1>&6  echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6278  echo "configure:6275: checking for working mktime" >&5  echo "configure:6279: checking for working mktime" >&5
6279  if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6280    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6281  else  else
# Line 6279  else Line 6283  else
6283    ac_cv_func_working_mktime=no    ac_cv_func_working_mktime=no
6284  else  else
6285    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6286  #line 6283 "configure"  #line 6287 "configure"
6287  #include "confdefs.h"  #include "confdefs.h"
6288  /* Test program from Paul Eggert (eggert@twinsun.com)  /* Test program from Paul Eggert (eggert@twinsun.com)
6289     and Tony Leneis (tony@plaza.ds.adp.com).  */     and Tony Leneis (tony@plaza.ds.adp.com).  */
# Line 6428  main () Line 6432  main ()
6432    exit (0);    exit (0);
6433  }  }
6434  EOF  EOF
6435  if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6436  then  then
6437    ac_cv_func_working_mktime=yes    ac_cv_func_working_mktime=yes
6438  else  else
# Line 6456  fi Line 6460  fi
6460    
6461  ac_have_func=no # yes means we've found a way to get the load average.  ac_have_func=no # yes means we've found a way to get the load average.
6462    
6463  # Some systems with -lutil have (and need) -lkvm as well, some do not.  # Some systems have getloadavg without any extra libraries.
6464  # On Solaris, -lkvm requires nlist from -lelf, so check that first  echo $ac_n "checking for getloadavg""... $ac_c" 1>&6
6465  # to get the right answer into the cache.  echo "configure:6466: checking for getloadavg" >&5
6466  echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6  if eval "test \"`echo '$''{'ac_cv_func_getloadavg'+set}'`\" = set"; then
6467  echo "configure:6464: checking for elf_begin in -lelf" >&5    echo $ac_n "(cached) $ac_c" 1>&6
6468    else
6469      cat > conftest.$ac_ext <<EOF
6470    #line 6471 "configure"
6471    #include "confdefs.h"
6472    /* System header to define __stub macros and hopefully few prototypes,
6473        which can conflict with char getloadavg(); below.  */
6474    #include <assert.h>
6475    /* Override any gcc2 internal prototype to avoid an error.  */
6476    /* We use char because int might match the return type of a gcc2
6477        builtin and then its argument prototype would still apply.  */
6478    char getloadavg();
6479    
6480    int main() {
6481    
6482    /* The GNU C library defines this for functions which it implements
6483        to always fail with ENOSYS.  Some functions are actually named
6484        something starting with __ and the normal name is an alias.  */
6485    #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
6486    choke me
6487    #else
6488    getloadavg();
6489    #endif
6490    
6491    ; return 0; }
6492    EOF
6493    if { (eval echo configure:6494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6494      rm -rf conftest*
6495      eval "ac_cv_func_getloadavg=yes"
6496    else
6497      echo "configure: failed program was:" >&5
6498      cat conftest.$ac_ext >&5
6499      rm -rf conftest*
6500      eval "ac_cv_func_getloadavg=no"
6501    fi
6502    rm -f conftest*
6503    fi
6504    
6505    if eval "test \"`echo '$ac_cv_func_'getloadavg`\" = yes"; then
6506      echo "$ac_t""yes" 1>&6
6507      ac_have_func=yes
6508    else
6509      echo "$ac_t""no" 1>&6
6510    fi
6511    
6512    
6513    if test $ac_have_func = no; then
6514      # Some systems with -lutil have (and need) -lkvm as well, some do not.
6515      # On Solaris, -lkvm requires nlist from -lelf, so check that first
6516      # to get the right answer into the cache.
6517      echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6518    echo "configure:6519: checking for elf_begin in -lelf" >&5
6519  ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`  ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6520  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
6521    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6468  else Line 6523  else
6523    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6524  LIBS="-lelf  $LIBS"  LIBS="-lelf  $LIBS"
6525  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6526  #line 6472 "configure"  #line 6527 "configure"
6527  #include "confdefs.h"  #include "confdefs.h"
6528  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6529  /* 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 6479  int main() { Line 6534  int main() {
6534  elf_begin()  elf_begin()
6535  ; return 0; }  ; return 0; }
6536  EOF  EOF
6537  if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6538    rm -rf conftest*    rm -rf conftest*
6539    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6540  else  else
# Line 6499  else Line 6554  else
6554    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
6555  fi  fi
6556    
6557  echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6    echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6558  echo "configure:6504: checking for kvm_open in -lkvm" >&5  echo "configure:6559: checking for kvm_open in -lkvm" >&5
6559  ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`  ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6560  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
6561    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6508  else Line 6563  else
6563    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6564  LIBS="-lkvm  $LIBS"  LIBS="-lkvm  $LIBS"
6565  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6566  #line 6512 "configure"  #line 6567 "configure"
6567  #include "confdefs.h"  #include "confdefs.h"
6568  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6569  /* 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 6519  int main() { Line 6574  int main() {
6574  kvm_open()  kvm_open()
6575  ; return 0; }  ; return 0; }
6576  EOF  EOF
6577  if { (eval echo configure:6523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6578    rm -rf conftest*    rm -rf conftest*
6579    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6580  else  else
# Line 6539  else Line 6594  else
6594    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
6595  fi  fi
6596    
6597  # Check for the 4.4BSD definition of getloadavg.    # Check for the 4.4BSD definition of getloadavg.
6598  echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6    echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6599  echo "configure:6545: checking for getloadavg in -lutil" >&5  echo "configure:6600: checking for getloadavg in -lutil" >&5
6600  ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6601  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
6602    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6549  else Line 6604  else
6604    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6605  LIBS="-lutil  $LIBS"  LIBS="-lutil  $LIBS"
6606  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6607  #line 6553 "configure"  #line 6608 "configure"
6608  #include "confdefs.h"  #include "confdefs.h"
6609  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6610  /* 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 6560  int main() { Line 6615  int main() {
6615  getloadavg()  getloadavg()
6616  ; return 0; }  ; return 0; }
6617  EOF  EOF
6618  if { (eval echo configure:6564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6619    rm -rf conftest*    rm -rf conftest*
6620    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6621  else  else
# Line 6580  else Line 6635  else
6635    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
6636  fi  fi
6637    
6638    fi
6639    
6640  if test $ac_have_func = no; then  if test $ac_have_func = no; then
6641    # There is a commonly available library for RS/6000 AIX.    # There is a commonly available library for RS/6000 AIX.
6642    # Since it is not a standard part of AIX, it might be installed locally.    # Since it is not a standard part of AIX, it might be installed locally.
6643    ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"    ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
6644    echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6    echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6645  echo "configure:6590: checking for getloadavg in -lgetloadavg" >&5  echo "configure:6646: checking for getloadavg in -lgetloadavg" >&5
6646  ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`  ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6647  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
6648    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6594  else Line 6650  else
6650    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6651  LIBS="-lgetloadavg  $LIBS"  LIBS="-lgetloadavg  $LIBS"
6652  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6653  #line 6598 "configure"  #line 6654 "configure"
6654  #include "confdefs.h"  #include "confdefs.h"
6655  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6656  /* 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 6605  int main() { Line 6661  int main() {
6661  getloadavg()  getloadavg()
6662  ; return 0; }  ; return 0; }
6663  EOF  EOF
6664  if { (eval echo configure:6609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6665    rm -rf conftest*    rm -rf conftest*
6666    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6667  else  else
# Line 6632  fi Line 6688  fi
6688  for ac_func in getloadavg  for ac_func in getloadavg
6689  do  do
6690  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6691  echo "configure:6636: checking for $ac_func" >&5  echo "configure:6692: checking for $ac_func" >&5
6692  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6693    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6694  else  else
6695    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6696  #line 6641 "configure"  #line 6697 "configure"
6697  #include "confdefs.h"  #include "confdefs.h"
6698  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
6699      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 6660  $ac_func(); Line 6716  $ac_func();
6716    
6717  ; return 0; }  ; return 0; }
6718  EOF  EOF
6719  if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720    rm -rf conftest*    rm -rf conftest*
6721    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
6722  else  else
# Line 6698  else Line 6754  else
6754    ac_have_func=no    ac_have_func=no
6755    ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6756  echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6  echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6757  echo "configure:6702: checking for sys/dg_sys_info.h" >&5  echo "configure:6758: checking for sys/dg_sys_info.h" >&5
6758  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6759    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6760  else  else
6761    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6762  #line 6707 "configure"  #line 6763 "configure"
6763  #include "confdefs.h"  #include "confdefs.h"
6764  #include <sys/dg_sys_info.h>  #include <sys/dg_sys_info.h>
6765  EOF  EOF
6766  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6767  { (eval echo configure:6712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6768  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6769  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6770    rm -rf conftest*    rm -rf conftest*
# Line 6729  if eval "test \"`echo '$ac_cv_header_'$a Line 6785  if eval "test \"`echo '$ac_cv_header_'$a
6785  EOF  EOF
6786    
6787    echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6    echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6788  echo "configure:6733: checking for dg_sys_info in -ldgc" >&5  echo "configure:6789: checking for dg_sys_info in -ldgc" >&5
6789  ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`  ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6790  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
6791    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 6737  else Line 6793  else
6793    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
6794  LIBS="-ldgc  $LIBS"  LIBS="-ldgc  $LIBS"
6795  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
6796  #line 6741 "configure"  #line 6797 "configure"
6797  #include "confdefs.h"  #include "confdefs.h"
6798  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
6799  /* 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 6748  int main() { Line 6804  int main() {
6804  dg_sys_info()  dg_sys_info()
6805  ; return 0; }  ; return 0; }
6806  EOF  EOF
6807  if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808    rm -rf conftest*    rm -rf conftest*
6809    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
6810  else  else
# Line 6793  EOF Line 6849  EOF
6849    if test $ac_have_func = no; then    if test $ac_have_func = no; then
6850      ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6851  echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6  echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6852  echo "configure:6797: checking for inq_stats/cpustats.h" >&5  echo "configure:6853: checking for inq_stats/cpustats.h" >&5
6853  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6854    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6855  else  else
6856    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6857  #line 6802 "configure"  #line 6858 "configure"
6858  #include "confdefs.h"  #include "confdefs.h"
6859  #include <inq_stats/cpustats.h>  #include <inq_stats/cpustats.h>
6860  EOF  EOF
6861  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6862  { (eval echo configure:6807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6863  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6864  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6865    rm -rf conftest*    rm -rf conftest*
# Line 6836  fi Line 6892  fi
6892    if test $ac_have_func = no; then    if test $ac_have_func = no; then
6893      ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`      ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6894  echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6  echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6895  echo "configure:6840: checking for sys/cpustats.h" >&5  echo "configure:6896: checking for sys/cpustats.h" >&5
6896  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6897    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6898  else  else
6899    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6900  #line 6845 "configure"  #line 6901 "configure"
6901  #include "confdefs.h"  #include "confdefs.h"
6902  #include <sys/cpustats.h>  #include <sys/cpustats.h>
6903  EOF  EOF
6904  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6905  { (eval echo configure:6850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6906  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6907  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6908    rm -rf conftest*    rm -rf conftest*
# Line 6877  fi Line 6933  fi
6933  do  do
6934  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6935  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6936  echo "configure:6881: checking for $ac_hdr" >&5  echo "configure:6937: checking for $ac_hdr" >&5
6937  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6938    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6939  else  else
6940    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6941  #line 6886 "configure"  #line 6942 "configure"
6942  #include "confdefs.h"  #include "confdefs.h"
6943  #include <$ac_hdr>  #include <$ac_hdr>
6944  EOF  EOF
6945  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6946  { (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6947  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6948  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6949    rm -rf conftest*    rm -rf conftest*
# Line 6917  done Line 6973  done
6973    
6974    ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6975  echo $ac_n "checking for nlist.h""... $ac_c" 1>&6  echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6976  echo "configure:6921: checking for nlist.h" >&5  echo "configure:6977: checking for nlist.h" >&5
6977  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6978    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
6979  else  else
6980    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
6981  #line 6926 "configure"  #line 6982 "configure"
6982  #include "confdefs.h"  #include "confdefs.h"
6983  #include <nlist.h>  #include <nlist.h>
6984  EOF  EOF
6985  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6986  { (eval echo configure:6931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:6987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6987  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6988  if test -z "$ac_err"; then  if test -z "$ac_err"; then
6989    rm -rf conftest*    rm -rf conftest*
# Line 6948  if eval "test \"`echo '$ac_cv_header_'$a Line 7004  if eval "test \"`echo '$ac_cv_header_'$a
7004  EOF  EOF
7005    
7006    echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6    echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
7007  echo "configure:6952: checking for n_un in struct nlist" >&5  echo "configure:7008: checking for n_un in struct nlist" >&5
7008  if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
7009    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7010  else  else
7011    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7012  #line 6957 "configure"  #line 7013 "configure"
7013  #include "confdefs.h"  #include "confdefs.h"
7014  #include <nlist.h>  #include <nlist.h>
7015  int main() {  int main() {
7016  struct nlist n; n.n_un.n_name = 0;  struct nlist n; n.n_un.n_name = 0;
7017  ; return 0; }  ; return 0; }
7018  EOF  EOF
7019  if { (eval echo configure:6964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7020    rm -rf conftest*    rm -rf conftest*
7021    ac_cv_struct_nlist_n_un=yes    ac_cv_struct_nlist_n_un=yes
7022  else  else
# Line 6987  fi # Do not have getloadavg in system li Line 7043  fi # Do not have getloadavg in system li
7043    
7044  # Some definitions of getloadavg require that the program be installed setgid.  # Some definitions of getloadavg require that the program be installed setgid.
7045  echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6  echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
7046  echo "configure:6991: checking whether getloadavg requires setgid" >&5  echo "configure:7047: checking whether getloadavg requires setgid" >&5
7047  if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
7048    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7049  else  else
7050    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7051  #line 6996 "configure"  #line 7052 "configure"
7052  #include "confdefs.h"  #include "confdefs.h"
7053  #include "$srcdir/getloadavg.c"  #include "$srcdir/getloadavg.c"
7054  #ifdef LDAV_PRIVILEGED  #ifdef LDAV_PRIVILEGED
# Line 7023  fi Line 7079  fi
7079    
7080  if test $ac_cv_func_getloadavg_setgid = yes; then  if test $ac_cv_func_getloadavg_setgid = yes; then
7081    echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6    echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7082  echo "configure:7027: checking group of /dev/kmem" >&5  echo "configure:7083: checking group of /dev/kmem" >&5
7083  if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7084    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7085  else  else
# Line 7044  fi Line 7100  fi
7100    
7101    
7102  echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6  echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
7103  echo "configure:7048: checking for _LARGEFILE_SOURCE value needed for large files" >&5  echo "configure:7104: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7104  if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
7105    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7106  else  else
7107    ac_cv_sys_largefile_source=no    ac_cv_sys_largefile_source=no
7108        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
7109  #line 7054 "configure"  #line 7110 "configure"
7110  #include "confdefs.h"  #include "confdefs.h"
7111  #include <stdio.h>  #include <stdio.h>
7112  int main() {  int main() {
7113  return !fseeko;  return !fseeko;
7114  ; return 0; }  ; return 0; }
7115  EOF  EOF
7116  if { (eval echo configure:7061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7117    :    :
7118  else  else
7119    echo "configure: failed program was:" >&5    echo "configure: failed program was:" >&5
7120    cat conftest.$ac_ext >&5    cat conftest.$ac_ext >&5
7121    rm -rf conftest*    rm -rf conftest*
7122    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7123  #line 7068 "configure"  #line 7124 "configure"
7124  #include "confdefs.h"  #include "confdefs.h"
7125  #define _LARGEFILE_SOURCE 1  #define _LARGEFILE_SOURCE 1
7126  #include <stdio.h>  #include <stdio.h>
# Line 7073  int main() { Line 7129  int main() {
7129  return !fseeko;  return !fseeko;
7130  ; return 0; }  ; return 0; }
7131  EOF  EOF
7132  if { (eval echo configure:7077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:7133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7133    rm -rf conftest*    rm -rf conftest*
7134    ac_cv_sys_largefile_source=1    ac_cv_sys_largefile_source=1
7135  else  else
# Line 7097  EOF Line 7153  EOF
7153     # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.     # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
7154    
7155     echo $ac_n "checking for fseeko""... $ac_c" 1>&6     echo $ac_n "checking for fseeko""... $ac_c" 1>&6
7156  echo "configure:7101: checking for fseeko" >&5  echo "configure:7157: checking for fseeko" >&5
7157  if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then
7158    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7159  else  else
7160    ac_cv_func_fseeko=no    ac_cv_func_fseeko=no
7161        cat > conftest.$ac_ext <<EOF        cat > conftest.$ac_ext <<EOF
7162  #line 7107 "configure"  #line 7163 "configure"
7163  #include "confdefs.h"  #include "confdefs.h"
7164  #include <stdio.h>  #include <stdio.h>
7165  int main() {  int main() {
7166  return fseeko && fseeko (stdin, 0, 0);  return fseeko && fseeko (stdin, 0, 0);
7167  ; return 0; }  ; return 0; }
7168  EOF  EOF
7169  if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7170    rm -rf conftest*    rm -rf conftest*
7171    ac_cv_func_fseeko=yes    ac_cv_func_fseeko=yes
7172  else  else
# Line 7132  EOF Line 7188  EOF
7188  for ac_func in grantpt  for ac_func in grantpt
7189  do  do
7190  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7191  echo "configure:7136: checking for $ac_func" >&5  echo "configure:7192: checking for $ac_func" >&5
7192  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7193    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7194  else  else
7195    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7196  #line 7141 "configure"  #line 7197 "configure"
7197  #include "confdefs.h"  #include "confdefs.h"
7198  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7199      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 7160  $ac_func(); Line 7216  $ac_func();
7216    
7217  ; return 0; }  ; return 0; }
7218  EOF  EOF
7219  if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220    rm -rf conftest*    rm -rf conftest*
7221    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
7222  else  else
# Line 7189  done Line 7245  done
7245  for ac_func in getpt  for ac_func in getpt
7246  do  do
7247  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7248  echo "configure:7193: checking for $ac_func" >&5  echo "configure:7249: checking for $ac_func" >&5
7249  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7250    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7251  else  else
7252    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7253  #line 7198 "configure"  #line 7254 "configure"
7254  #include "confdefs.h"  #include "confdefs.h"
7255  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7256      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 7217  $ac_func(); Line 7273  $ac_func();
7273    
7274  ; return 0; }  ; return 0; }
7275  EOF  EOF
7276  if { (eval echo configure:7221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7277    rm -rf conftest*    rm -rf conftest*
7278    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
7279  else  else
# Line 7247  done Line 7303  done
7303  # It's better to believe a function is not available  # It's better to believe a function is not available
7304  # than to expect to find it in ncurses.  # than to expect to find it in ncurses.
7305  echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6  echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7306  echo "configure:7251: checking for tparm in -lncurses" >&5  echo "configure:7307: checking for tparm in -lncurses" >&5
7307  ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`  ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7308  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7309    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7255  else Line 7311  else
7311    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7312  LIBS="-lncurses  $LIBS"  LIBS="-lncurses  $LIBS"
7313  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7314  #line 7259 "configure"  #line 7315 "configure"
7315  #include "confdefs.h"  #include "confdefs.h"
7316  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7317  /* 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 7266  int main() { Line 7322  int main() {
7322  tparm()  tparm()
7323  ; return 0; }  ; return 0; }
7324  EOF  EOF
7325  if { (eval echo configure:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7326    rm -rf conftest*    rm -rf conftest*
7327    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7328  else  else
# Line 7299  if test "$with_hesiod" = yes ; then Line 7355  if test "$with_hesiod" = yes ; then
7355    # Don't set $LIBS here -- see comments above.    # Don't set $LIBS here -- see comments above.
7356    resolv=no    resolv=no
7357    echo $ac_n "checking for res_send""... $ac_c" 1>&6    echo $ac_n "checking for res_send""... $ac_c" 1>&6
7358  echo "configure:7303: checking for res_send" >&5  echo "configure:7359: checking for res_send" >&5
7359  if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
7360    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7361  else  else
7362    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7363  #line 7308 "configure"  #line 7364 "configure"
7364  #include "confdefs.h"  #include "confdefs.h"
7365  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7366      which can conflict with char res_send(); below.  */      which can conflict with char res_send(); below.  */
# Line 7327  res_send(); Line 7383  res_send();
7383    
7384  ; return 0; }  ; return 0; }
7385  EOF  EOF
7386  if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7387    rm -rf conftest*    rm -rf conftest*
7388    eval "ac_cv_func_res_send=yes"    eval "ac_cv_func_res_send=yes"
7389  else  else
# Line 7345  if eval "test \"`echo '$ac_cv_func_'res_ Line 7401  if eval "test \"`echo '$ac_cv_func_'res_
7401  else  else
7402    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7403  echo $ac_n "checking for __res_send""... $ac_c" 1>&6  echo $ac_n "checking for __res_send""... $ac_c" 1>&6
7404  echo "configure:7349: checking for __res_send" >&5  echo "configure:7405: checking for __res_send" >&5
7405  if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func___res_send'+set}'`\" = set"; then
7406    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7407  else  else
7408    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7409  #line 7354 "configure"  #line 7410 "configure"
7410  #include "confdefs.h"  #include "confdefs.h"
7411  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7412      which can conflict with char __res_send(); below.  */      which can conflict with char __res_send(); below.  */
# Line 7373  __res_send(); Line 7429  __res_send();
7429    
7430  ; return 0; }  ; return 0; }
7431  EOF  EOF
7432  if { (eval echo configure:7377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7433    rm -rf conftest*    rm -rf conftest*
7434    eval "ac_cv_func___res_send=yes"    eval "ac_cv_func___res_send=yes"
7435  else  else
# Line 7391  if eval "test \"`echo '$ac_cv_func_'__re Line 7447  if eval "test \"`echo '$ac_cv_func_'__re
7447  else  else
7448    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7449  echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6  echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
7450  echo "configure:7395: checking for res_send in -lresolv" >&5  echo "configure:7451: checking for res_send in -lresolv" >&5
7451  ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`  ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
7452  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
7453    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7399  else Line 7455  else
7455    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7456  LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
7457  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7458  #line 7403 "configure"  #line 7459 "configure"
7459  #include "confdefs.h"  #include "confdefs.h"
7460  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7461  /* 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 7410  int main() { Line 7466  int main() {
7466  res_send()  res_send()
7467  ; return 0; }  ; return 0; }
7468  EOF  EOF
7469  if { (eval echo configure:7414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7470    rm -rf conftest*    rm -rf conftest*
7471    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7472  else  else
# Line 7429  if eval "test \"`echo '$ac_cv_lib_'$ac_l Line 7485  if eval "test \"`echo '$ac_cv_lib_'$ac_l
7485  else  else
7486    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7487  echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6  echo $ac_n "checking for __res_send in -lresolv""... $ac_c" 1>&6
7488  echo "configure:7433: checking for __res_send in -lresolv" >&5  echo "configure:7489: checking for __res_send in -lresolv" >&5
7489  ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`  ac_lib_var=`echo resolv'_'__res_send | sed 'y%./+-%__p_%'`
7490  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
7491    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7437  else Line 7493  else
7493    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7494  LIBS="-lresolv  $LIBS"  LIBS="-lresolv  $LIBS"
7495  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7496  #line 7441 "configure"  #line 7497 "configure"
7497  #include "confdefs.h"  #include "confdefs.h"
7498  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7499  /* 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 7448  int main() { Line 7504  int main() {
7504  __res_send()  __res_send()
7505  ; return 0; }  ; return 0; }
7506  EOF  EOF
7507  if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7508    rm -rf conftest*    rm -rf conftest*
7509    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7510  else  else
# Line 7484  EOF Line 7540  EOF
7540      RESOLVLIB=      RESOLVLIB=
7541    fi    fi
7542    echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6    echo $ac_n "checking for hes_getmailhost""... $ac_c" 1>&6
7543  echo "configure:7488: checking for hes_getmailhost" >&5  echo "configure:7544: checking for hes_getmailhost" >&5
7544  if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_hes_getmailhost'+set}'`\" = set"; then
7545    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
7546  else  else
7547    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
7548  #line 7493 "configure"  #line 7549 "configure"
7549  #include "confdefs.h"  #include "confdefs.h"
7550  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
7551      which can conflict with char hes_getmailhost(); below.  */      which can conflict with char hes_getmailhost(); below.  */
# Line 7512  hes_getmailhost(); Line 7568  hes_getmailhost();
7568    
7569  ; return 0; }  ; return 0; }
7570  EOF  EOF
7571  if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7572    rm -rf conftest*    rm -rf conftest*
7573    eval "ac_cv_func_hes_getmailhost=yes"    eval "ac_cv_func_hes_getmailhost=yes"
7574  else  else
# Line 7530  if eval "test \"`echo '$ac_cv_func_'hes_ Line 7586  if eval "test \"`echo '$ac_cv_func_'hes_
7586  else  else
7587    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7588  echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6  echo $ac_n "checking for hes_getmailhost in -lhesiod""... $ac_c" 1>&6
7589  echo "configure:7534: checking for hes_getmailhost in -lhesiod" >&5  echo "configure:7590: checking for hes_getmailhost in -lhesiod" >&5
7590  ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`  ac_lib_var=`echo hesiod'_'hes_getmailhost | sed 'y%./+-%__p_%'`
7591  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
7592    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7538  else Line 7594  else
7594    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7595  LIBS="-lhesiod $RESOLVLIB $LIBS"  LIBS="-lhesiod $RESOLVLIB $LIBS"
7596  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7597  #line 7542 "configure"  #line 7598 "configure"
7598  #include "confdefs.h"  #include "confdefs.h"
7599  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7600  /* 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 7549  int main() { Line 7605  int main() {
7605  hes_getmailhost()  hes_getmailhost()
7606  ; return 0; }  ; return 0; }
7607  EOF  EOF
7608  if { (eval echo configure:7553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7609    rm -rf conftest*    rm -rf conftest*
7610    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7611  else  else
# Line 7580  fi Line 7636  fi
7636  # These tell us which Kerberos-related libraries to use.  # These tell us which Kerberos-related libraries to use.
7637  if test "${with_kerberos+set}" = set; then  if test "${with_kerberos+set}" = set; then
7638    echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6    echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7639  echo "configure:7584: checking for com_err in -lcom_err" >&5  echo "configure:7640: checking for com_err in -lcom_err" >&5
7640  ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`  ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7641  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
7642    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7588  else Line 7644  else
7644    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7645  LIBS="-lcom_err  $LIBS"  LIBS="-lcom_err  $LIBS"
7646  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7647  #line 7592 "configure"  #line 7648 "configure"
7648  #include "confdefs.h"  #include "confdefs.h"
7649  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7650  /* 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 7599  int main() { Line 7655  int main() {
7655  com_err()  com_err()
7656  ; return 0; }  ; return 0; }
7657  EOF  EOF
7658  if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7659    rm -rf conftest*    rm -rf conftest*
7660    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7661  else  else
# Line 7627  else Line 7683  else
7683  fi  fi
7684    
7685    echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6    echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7686  echo "configure:7631: checking for mit_des_cbc_encrypt in -lk5crypto" >&5  echo "configure:7687: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7687  ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7688  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
7689    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7635  else Line 7691  else
7691    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7692  LIBS="-lk5crypto  $LIBS"  LIBS="-lk5crypto  $LIBS"
7693  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7694  #line 7639 "configure"  #line 7695 "configure"
7695  #include "confdefs.h"  #include "confdefs.h"
7696  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7697  /* 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 7646  int main() { Line 7702  int main() {
7702  mit_des_cbc_encrypt()  mit_des_cbc_encrypt()
7703  ; return 0; }  ; return 0; }
7704  EOF  EOF
7705  if { (eval echo configure:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7706    rm -rf conftest*    rm -rf conftest*
7707    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7708  else  else
# Line 7674  else Line 7730  else
7730  fi  fi
7731    
7732    echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6    echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7733  echo "configure:7678: checking for mit_des_cbc_encrypt in -lcrypto" >&5  echo "configure:7734: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7734  ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7735  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
7736    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7682  else Line 7738  else
7738    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7739  LIBS="-lcrypto  $LIBS"  LIBS="-lcrypto  $LIBS"
7740  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7741  #line 7686 "configure"  #line 7742 "configure"
7742  #include "confdefs.h"  #include "confdefs.h"
7743  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7744  /* 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 7693  int main() { Line 7749  int main() {
7749  mit_des_cbc_encrypt()  mit_des_cbc_encrypt()
7750  ; return 0; }  ; return 0; }
7751  EOF  EOF
7752  if { (eval echo configure:7697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7753    rm -rf conftest*    rm -rf conftest*
7754    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7755  else  else
# Line 7721  else Line 7777  else
7777  fi  fi
7778    
7779    echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6    echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7780  echo "configure:7725: checking for krb5_init_context in -lkrb5" >&5  echo "configure:7781: checking for krb5_init_context in -lkrb5" >&5
7781  ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`  ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7782  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
7783    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7729  else Line 7785  else
7785    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7786  LIBS="-lkrb5  $LIBS"  LIBS="-lkrb5  $LIBS"
7787  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7788  #line 7733 "configure"  #line 7789 "configure"
7789  #include "confdefs.h"  #include "confdefs.h"
7790  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7791  /* 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 7740  int main() { Line 7796  int main() {
7796  krb5_init_context()  krb5_init_context()
7797  ; return 0; }  ; return 0; }
7798  EOF  EOF
7799  if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7800    rm -rf conftest*    rm -rf conftest*
7801    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7802  else  else
# Line 7769  fi Line 7825  fi
7825    
7826    if test "${with_kerberos5+set}" != set; then    if test "${with_kerberos5+set}" != set; then
7827      echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6      echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7828  echo "configure:7773: checking for des_cbc_encrypt in -ldes425" >&5  echo "configure:7829: checking for des_cbc_encrypt in -ldes425" >&5
7829  ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7830  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
7831    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7777  else Line 7833  else
7833    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7834  LIBS="-ldes425  $LIBS"  LIBS="-ldes425  $LIBS"
7835  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7836  #line 7781 "configure"  #line 7837 "configure"
7837  #include "confdefs.h"  #include "confdefs.h"
7838  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7839  /* 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 7788  int main() { Line 7844  int main() {
7844  des_cbc_encrypt()  des_cbc_encrypt()
7845  ; return 0; }  ; return 0; }
7846  EOF  EOF
7847  if { (eval echo configure:7792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7848    rm -rf conftest*    rm -rf conftest*
7849    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7850  else  else
# Line 7814  EOF Line 7870  EOF
7870  else  else
7871    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7872  echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6  echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7873  echo "configure:7818: checking for des_cbc_encrypt in -ldes" >&5  echo "configure:7874: checking for des_cbc_encrypt in -ldes" >&5
7874  ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`  ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7875  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
7876    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7822  else Line 7878  else
7878    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7879  LIBS="-ldes  $LIBS"  LIBS="-ldes  $LIBS"
7880  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7881  #line 7826 "configure"  #line 7882 "configure"
7882  #include "confdefs.h"  #include "confdefs.h"
7883  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7884  /* 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 7833  int main() { Line 7889  int main() {
7889  des_cbc_encrypt()  des_cbc_encrypt()
7890  ; return 0; }  ; return 0; }
7891  EOF  EOF
7892  if { (eval echo configure:7837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7893    rm -rf conftest*    rm -rf conftest*
7894    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7895  else  else
# Line 7863  fi Line 7919  fi
7919  fi  fi
7920    
7921      echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6      echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7922  echo "configure:7867: checking for krb_get_cred in -lkrb4" >&5  echo "configure:7923: checking for krb_get_cred in -lkrb4" >&5
7923  ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`  ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7924  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
7925    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7871  else Line 7927  else
7927    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7928  LIBS="-lkrb4  $LIBS"  LIBS="-lkrb4  $LIBS"
7929  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7930  #line 7875 "configure"  #line 7931 "configure"
7931  #include "confdefs.h"  #include "confdefs.h"
7932  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7933  /* 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 7882  int main() { Line 7938  int main() {
7938  krb_get_cred()  krb_get_cred()
7939  ; return 0; }  ; return 0; }
7940  EOF  EOF
7941  if { (eval echo configure:7886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7942    rm -rf conftest*    rm -rf conftest*
7943    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7944  else  else
# Line 7908  EOF Line 7964  EOF
7964  else  else
7965    echo "$ac_t""no" 1>&6    echo "$ac_t""no" 1>&6
7966  echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6  echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7967  echo "configure:7912: checking for krb_get_cred in -lkrb" >&5  echo "configure:7968: checking for krb_get_cred in -lkrb" >&5
7968  ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`  ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7969  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
7970    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 7916  else Line 7972  else
7972    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
7973  LIBS="-lkrb  $LIBS"  LIBS="-lkrb  $LIBS"
7974  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
7975  #line 7920 "configure"  #line 7976 "configure"
7976  #include "confdefs.h"  #include "confdefs.h"
7977  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
7978  /* 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 7927  int main() { Line 7983  int main() {
7983  krb_get_cred()  krb_get_cred()
7984  ; return 0; }  ; return 0; }
7985  EOF  EOF
7986  if { (eval echo configure:7931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7987    rm -rf conftest*    rm -rf conftest*
7988    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
7989  else  else
# Line 7963  fi Line 8019  fi
8019  do  do
8020  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8021  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8022  echo "configure:7967: checking for $ac_hdr" >&5  echo "configure:8023: checking for $ac_hdr" >&5
8023  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8024    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8025  else  else
8026    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8027  #line 7972 "configure"  #line 8028 "configure"
8028  #include "confdefs.h"  #include "confdefs.h"
8029  #include <$ac_hdr>  #include <$ac_hdr>
8030  EOF  EOF
8031  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8032  { (eval echo configure:7977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8033  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8034  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8035    rm -rf conftest*    rm -rf conftest*
# Line 8004  done Line 8060  done
8060  do  do
8061  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8062  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8063  echo "configure:8008: checking for $ac_hdr" >&5  echo "configure:8064: checking for $ac_hdr" >&5
8064  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8065    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8066  else  else
8067    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8068  #line 8013 "configure"  #line 8069 "configure"
8069  #include "confdefs.h"  #include "confdefs.h"
8070  #include <$ac_hdr>  #include <$ac_hdr>
8071  EOF  EOF
8072  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8073  { (eval echo configure:8018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8074  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8075  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8076    rm -rf conftest*    rm -rf conftest*
# Line 8041  for ac_hdr in kerberosIV/des.h Line 8097  for ac_hdr in kerberosIV/des.h
8097  do  do
8098  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8099  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8100  echo "configure:8045: checking for $ac_hdr" >&5  echo "configure:8101: checking for $ac_hdr" >&5
8101  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8102    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8103  else  else
8104    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8105  #line 8050 "configure"  #line 8106 "configure"
8106  #include "confdefs.h"  #include "confdefs.h"
8107  #include <$ac_hdr>  #include <$ac_hdr>
8108  EOF  EOF
8109  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8110  { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8111  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8112  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8113    rm -rf conftest*    rm -rf conftest*
# Line 8078  for ac_hdr in kerberos/des.h Line 8134  for ac_hdr in kerberos/des.h
8134  do  do
8135  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8136  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8137  echo "configure:8082: checking for $ac_hdr" >&5  echo "configure:8138: checking for $ac_hdr" >&5
8138  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8139    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8140  else  else
8141    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8142  #line 8087 "configure"  #line 8143 "configure"
8143  #include "confdefs.h"  #include "confdefs.h"
8144  #include <$ac_hdr>  #include <$ac_hdr>
8145  EOF  EOF
8146  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8147  { (eval echo configure:8092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8148  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8149  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8150    rm -rf conftest*    rm -rf conftest*
# Line 8124  done Line 8180  done
8180  do  do
8181  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8182  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8183  echo "configure:8128: checking for $ac_hdr" >&5  echo "configure:8184: checking for $ac_hdr" >&5
8184  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8185    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8186  else  else
8187    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8188  #line 8133 "configure"  #line 8189 "configure"
8189  #include "confdefs.h"  #include "confdefs.h"
8190  #include <$ac_hdr>  #include <$ac_hdr>
8191  EOF  EOF
8192  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8193  { (eval echo configure:8138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8194  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8195  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8196    rm -rf conftest*    rm -rf conftest*
# Line 8161  for ac_hdr in kerberosIV/krb.h Line 8217  for ac_hdr in kerberosIV/krb.h
8217  do  do
8218  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8219  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8220  echo "configure:8165: checking for $ac_hdr" >&5  echo "configure:8221: checking for $ac_hdr" >&5
8221  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8222    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8223  else  else
8224    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8225  #line 8170 "configure"  #line 8226 "configure"
8226  #include "confdefs.h"  #include "confdefs.h"
8227  #include <$ac_hdr>  #include <$ac_hdr>
8228  EOF  EOF
8229  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8230  { (eval echo configure:8175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8231  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8232  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8233    rm -rf conftest*    rm -rf conftest*
# Line 8198  for ac_hdr in kerberos/krb.h Line 8254  for ac_hdr in kerberos/krb.h
8254  do  do
8255  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8256  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8257  echo "configure:8202: checking for $ac_hdr" >&5  echo "configure:8258: checking for $ac_hdr" >&5
8258  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8259    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8260  else  else
8261    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8262  #line 8207 "configure"  #line 8263 "configure"
8263  #include "confdefs.h"  #include "confdefs.h"
8264  #include <$ac_hdr>  #include <$ac_hdr>
8265  EOF  EOF
8266  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8267  { (eval echo configure:8212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8268  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8269  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8270    rm -rf conftest*    rm -rf conftest*
# Line 8245  done Line 8301  done
8301  do  do
8302  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8303  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8304  echo "configure:8249: checking for $ac_hdr" >&5  echo "configure:8305: checking for $ac_hdr" >&5
8305  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8306    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8307  else  else
8308    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8309  #line 8254 "configure"  #line 8310 "configure"
8310  #include "confdefs.h"  #include "confdefs.h"
8311  #include <$ac_hdr>  #include <$ac_hdr>
8312  EOF  EOF
8313  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8314  { (eval echo configure:8259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8315  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8316  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8317    rm -rf conftest*    rm -rf conftest*
# Line 8286  fi Line 8342  fi
8342  # Solaris requires -lintl if you want strerror (which calls dgettext)  # Solaris requires -lintl if you want strerror (which calls dgettext)
8343  # to return localized messages.  # to return localized messages.
8344  echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6  echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8345  echo "configure:8290: checking for dgettext in -lintl" >&5  echo "configure:8346: checking for dgettext in -lintl" >&5
8346  ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`  ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8347  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
8348    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
# Line 8294  else Line 8350  else
8350    ac_save_LIBS="$LIBS"    ac_save_LIBS="$LIBS"
8351  LIBS="-lintl  $LIBS"  LIBS="-lintl  $LIBS"
8352  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
8353  #line 8298 "configure"  #line 8354 "configure"
8354  #include "confdefs.h"  #include "confdefs.h"
8355  /* Override any gcc2 internal prototype to avoid an error.  */  /* Override any gcc2 internal prototype to avoid an error.  */
8356  /* 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 8305  int main() { Line 8361  int main() {
8361  dgettext()  dgettext()
8362  ; return 0; }  ; return 0; }
8363  EOF  EOF
8364  if { (eval echo configure:8309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8365    rm -rf conftest*    rm -rf conftest*
8366    eval "ac_cv_lib_$ac_lib_var=yes"    eval "ac_cv_lib_$ac_lib_var=yes"
8367  else  else
# Line 8334  fi Line 8390  fi
8390    
8391    
8392  echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6  echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8393  echo "configure:8338: checking whether localtime caches TZ" >&5  echo "configure:8394: checking whether localtime caches TZ" >&5
8394  if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8395    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8396  else  else
# Line 8344  if test "$cross_compiling" = yes; then Line 8400  if test "$cross_compiling" = yes; then
8400  emacs_cv_localtime_cache=yes  emacs_cv_localtime_cache=yes
8401  else  else
8402    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8403  #line 8348 "configure"  #line 8404 "configure"
8404  #include "confdefs.h"  #include "confdefs.h"
8405  #include <time.h>  #include <time.h>
8406  extern char **environ;  extern char **environ;
# Line 8376  main() Line 8432  main()
8432    exit (0);    exit (0);
8433  }  }
8434  EOF  EOF
8435  if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8436  then  then
8437    emacs_cv_localtime_cache=no    emacs_cv_localtime_cache=no
8438  else  else
# Line 8406  if test "x$HAVE_TIMEVAL" = xyes; then Line 8462  if test "x$HAVE_TIMEVAL" = xyes; then
8462    for ac_func in gettimeofday    for ac_func in gettimeofday
8463  do  do
8464  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8465  echo "configure:8410: checking for $ac_func" >&5  echo "configure:8466: checking for $ac_func" >&5
8466  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8467    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8468  else  else
8469    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8470  #line 8415 "configure"  #line 8471 "configure"
8471  #include "confdefs.h"  #include "confdefs.h"
8472  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8473      which can conflict with char $ac_func(); below.  */      which can conflict with char $ac_func(); below.  */
# Line 8434  $ac_func(); Line 8490  $ac_func();
8490    
8491  ; return 0; }  ; return 0; }
8492  EOF  EOF
8493  if { (eval echo configure:8438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8494    rm -rf conftest*    rm -rf conftest*
8495    eval "ac_cv_func_$ac_func=yes"    eval "ac_cv_func_$ac_func=yes"
8496  else  else
# Line 8459  fi Line 8515  fi
8515  done  done
8516    
8517    echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6    echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8518  echo "configure:8463: checking whether gettimeofday can accept two arguments" >&5  echo "configure:8519: checking whether gettimeofday can accept two arguments" >&5
8519  if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8520    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8521  else  else
8522    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8523  #line 8468 "configure"  #line 8524 "configure"
8524  #include "confdefs.h"  #include "confdefs.h"
8525    
8526  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
# Line 8482  struct timeval time; Line 8538  struct timeval time;
8538       gettimeofday (&time, 0);       gettimeofday (&time, 0);
8539  ; return 0; }  ; return 0; }
8540  EOF  EOF
8541  if { (eval echo configure:8486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8542    rm -rf conftest*    rm -rf conftest*
8543    emacs_cv_gettimeofday_two_arguments=yes    emacs_cv_gettimeofday_two_arguments=yes
8544  else  else
# Line 8505  fi Line 8561  fi
8561    
8562  if test "$ac_cv_func_gettimeofday" = yes; then  if test "$ac_cv_func_gettimeofday" = yes; then
8563    echo $ac_n "checking for struct timezone""... $ac_c" 1>&6    echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8564  echo "configure:8509: checking for struct timezone" >&5  echo "configure:8565: checking for struct timezone" >&5
8565  if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then  if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8566    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8567  else  else
8568    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8569  #line 8514 "configure"  #line 8570 "configure"
8570  #include "confdefs.h"  #include "confdefs.h"
8571  #include <sys/time.h>  #include <sys/time.h>
8572  int main() {  int main() {
8573  struct timezone tz;  struct timezone tz;
8574  ; return 0; }  ; return 0; }
8575  EOF  EOF
8576  if { (eval echo configure:8521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  if { (eval echo configure:8577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8577    rm -rf conftest*    rm -rf conftest*
8578                if test "$cross_compiling" = yes; then                if test "$cross_compiling" = yes; then
8579    emacs_cv_struct_timezone=yes    emacs_cv_struct_timezone=yes
8580  else  else
8581    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8582  #line 8527 "configure"  #line 8583 "configure"
8583  #include "confdefs.h"  #include "confdefs.h"
8584    
8585  #ifdef TIME_WITH_SYS_TIME  #ifdef TIME_WITH_SYS_TIME
# Line 8542  main () { Line 8598  main () {
8598    exit (gettimeofday (&time, &dummy));    exit (gettimeofday (&time, &dummy));
8599  }  }
8600  EOF  EOF
8601  if { (eval echo configure:8546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8602  then  then
8603    emacs_cv_struct_timezone=yes    emacs_cv_struct_timezone=yes
8604  else  else
# Line 8568  fi Line 8624  fi
8624    
8625  ok_so_far=yes  ok_so_far=yes
8626  echo $ac_n "checking for socket""... $ac_c" 1>&6  echo $ac_n "checking for socket""... $ac_c" 1>&6
8627  echo "configure:8572: checking for socket" >&5  echo "configure:8628: checking for socket" >&5
8628  if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8629    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8630  else  else
8631    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8632  #line 8577 "configure"  #line 8633 "configure"
8633  #include "confdefs.h"  #include "confdefs.h"
8634  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8635      which can conflict with char socket(); below.  */      which can conflict with char socket(); below.  */
# Line 8596  socket(); Line 8652  socket();
8652    
8653  ; return 0; }  ; return 0; }
8654  EOF  EOF
8655  if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8656    rm -rf conftest*    rm -rf conftest*
8657    eval "ac_cv_func_socket=yes"    eval "ac_cv_func_socket=yes"
8658  else  else
# Line 8619  fi Line 8675  fi
8675  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
8676    ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8677  echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6  echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8678  echo "configure:8623: checking for netinet/in.h" >&5  echo "configure:8679: checking for netinet/in.h" >&5
8679  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8680    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8681  else  else
8682    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8683  #line 8628 "configure"  #line 8684 "configure"
8684  #include "confdefs.h"  #include "confdefs.h"
8685  #include <netinet/in.h>  #include <netinet/in.h>
8686  EOF  EOF
8687  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8688  { (eval echo configure:8633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8689  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8690  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8691    rm -rf conftest*    rm -rf conftest*
# Line 8655  fi Line 8711  fi
8711  if test $ok_so_far = yes; then  if test $ok_so_far = yes; then
8712    ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`    ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8713  echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6  echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8714  echo "configure:8659: checking for arpa/inet.h" >&5  echo "configure:8715: checking for arpa/inet.h" >&5
8715  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8716    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8717  else  else
8718    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8719  #line 8664 "configure"  #line 8720 "configure"
8720  #include "confdefs.h"  #include "confdefs.h"
8721  #include <arpa/inet.h>  #include <arpa/inet.h>
8722  EOF  EOF
8723  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8724  { (eval echo configure:8669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8725  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8726  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8727    rm -rf conftest*    rm -rf conftest*
# Line 8703  EOF Line 8759  EOF
8759  fi  fi
8760    
8761  echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6  echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8762  echo "configure:8707: checking whether system supports dynamic ptys" >&5  echo "configure:8763: checking whether system supports dynamic ptys" >&5
8763  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then  if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8764    echo "$ac_t""yes" 1>&6    echo "$ac_t""yes" 1>&6
8765    cat >> confdefs.h <<\EOF    cat >> confdefs.h <<\EOF
# Line 8715  else Line 8771  else
8771  fi  fi
8772    
8773  echo $ac_n "checking for pid_t""... $ac_c" 1>&6  echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8774  echo "configure:8719: checking for pid_t" >&5  echo "configure:8775: checking for pid_t" >&5
8775  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8776    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8777  else  else
8778    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8779  #line 8724 "configure"  #line 8780 "configure"
8780  #include "confdefs.h"  #include "confdefs.h"
8781  #include <sys/types.h>  #include <sys/types.h>
8782  #if STDC_HEADERS  #if STDC_HEADERS
# Line 8749  fi Line 8805  fi
8805    
8806  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`  ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8807  echo $ac_n "checking for vfork.h""... $ac_c" 1>&6  echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8808  echo "configure:8753: checking for vfork.h" >&5  echo "configure:8809: checking for vfork.h" >&5
8809  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8810    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8811  else  else
8812    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8813  #line 8758 "configure"  #line 8814 "configure"
8814  #include "confdefs.h"  #include "confdefs.h"
8815  #include <vfork.h>  #include <vfork.h>
8816  EOF  EOF
8817  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"  ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8818  { (eval echo configure:8763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }  { (eval echo configure:8819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8819  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8820  if test -z "$ac_err"; then  if test -z "$ac_err"; then
8821    rm -rf conftest*    rm -rf conftest*
# Line 8784  else Line 8840  else
8840  fi  fi
8841    
8842  echo $ac_n "checking for working vfork""... $ac_c" 1>&6  echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8843  echo "configure:8788: checking for working vfork" >&5  echo "configure:8844: checking for working vfork" >&5
8844  if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8845    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8846  else  else
8847    if test "$cross_compiling" = yes; then    if test "$cross_compiling" = yes; then
8848    echo $ac_n "checking for vfork""... $ac_c" 1>&6    echo $ac_n "checking for vfork""... $ac_c" 1>&6
8849  echo "configure:8794: checking for vfork" >&5  echo "configure:8850: checking for vfork" >&5
8850  if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8851    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
8852  else  else
8853    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8854  #line 8799 "configure"  #line 8855 "configure"
8855  #include "confdefs.h"  #include "confdefs.h"
8856  /* System header to define __stub macros and hopefully few prototypes,  /* System header to define __stub macros and hopefully few prototypes,
8857      which can conflict with char vfork(); below.  */      which can conflict with char vfork(); below.  */
# Line 8818  vfork(); Line 8874  vfork();
8874    
8875  ; return 0; }  ; return 0; }
8876  EOF  EOF
8877  if { (eval echo configure:8822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  if { (eval echo configure:8878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8878    rm -rf conftest*    rm -rf conftest*
8879    eval "ac_cv_func_vfork=yes"    eval "ac_cv_func_vfork=yes"
8880  else  else
# Line 8840  fi Line 8896  fi
8896  ac_cv_func_vfork_works=$ac_cv_func_vfork  ac_cv_func_vfork_works=$ac_cv_func_vfork
8897  else  else
8898    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
8899  #line 8844 "configure"  #line 8900 "configure"
8900  #include "confdefs.h"  #include "confdefs.h"
8901  /* Thanks to Paul Eggert for this test.  */  /* Thanks to Paul Eggert for this test.  */
8902  #include <stdio.h>  #include <stdio.h>
# Line 8935  main() { Line 8991  main() {
8991    }    }
8992  }  }
8993  EOF  EOF
8994  if { (eval echo configure:8939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null  if { (eval echo configure:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8995  then  then
8996    ac_cv_func_vfork_works=yes    ac_cv_func_vfork_works=yes
8997  else  else
# Line 8960  fi Line 9016  fi
9016    
9017  # Fixme: This should be replaced when we have autoconf 2.14.  # Fixme: This should be replaced when we have autoconf 2.14.
9018  echo $ac_n "checking for size_t""... $ac_c" 1>&6  echo $ac_n "checking for size_t""... $ac_c" 1>&6
9019  echo "configure:8964: checking for size_t" >&5  echo "configure:9020: checking for size_t" >&5
9020  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
9021    echo $ac_n "(cached) $ac_c" 1>&6    echo $ac_n "(cached) $ac_c" 1>&6
9022  else  else
9023    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
9024  #line 8969 "configure"  #line 9025 "configure"
9025  #include "confdefs.h"  #include "confdefs.h"
9026  #include <sys/types.h>  #include <sys/types.h>
9027  #if STDC_HEADERS  #if STDC_HEADERS
# Line 9159  test "${exec_prefix}" != NONE && Line 9215  test "${exec_prefix}" != NONE &&
9215  ## C preprocessor.  ## C preprocessor.
9216    
9217  cat > conftest.$ac_ext <<EOF  cat > conftest.$ac_ext <<EOF
9218  #line 9163 "configure"  #line 9219 "configure"
9219  #include "confdefs.h"  #include "confdefs.h"
9220  yes..yes  yes..yes
9221  EOF  EOF
# Line 9587  sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' Line 9643  sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /'
9643  `"  `"
9644    
9645  echo creating src/epaths.h  echo creating src/epaths.h
9646  make epaths-force  ${MAKE-make} epaths-force
9647    
9648  # As of 2000-11-19, newest development versions of GNU cpp preprocess  # As of 2000-11-19, newest development versions of GNU cpp preprocess
9649  # `..' to `. .'  unless invoked with -traditional  # `..' to `. .'  unless invoked with -traditional

Legend:
Removed from v.1.62.4.2  
changed lines
  Added in v.1.62.4.3

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