comparison configure @ 30069:7c51ac7c415f

*** empty log message ***
author Dave Love <fx@gnu.org>
date Wed, 05 Jul 2000 17:07:14 +0000
parents 98af0f021739
children 58ce7aad3fff
comparison
equal deleted inserted replaced
30068:fd80ab818a0c 30069:7c51ac7c415f
1071 ## Encore machines 1071 ## Encore machines
1072 ns16k-encore-bsd* ) 1072 ns16k-encore-bsd* )
1073 machine=ns16000 opsys=umax 1073 machine=ns16000 opsys=umax
1074 ;; 1074 ;;
1075 1075
1076 ## The GEC 93 - apparently, this port isn't really finished yet. 1076 ## The GEC 63 - apparently, this port isn't really finished yet.
1077 # I'm sure we finished off the last of the machines, though. -- fx
1077 1078
1078 ## Gould Power Node and NP1 1079 ## Gould Power Node and NP1
1079 pn-gould-bsd4.2* ) 1080 pn-gould-bsd4.2* )
1080 machine=gould opsys=bsd4-2 1081 machine=gould opsys=bsd4-2
1081 ;; 1082 ;;
1721 "yes" ) CC="gcc" GCC=yes ;; 1722 "yes" ) CC="gcc" GCC=yes ;;
1722 "no" ) : ${CC=cc} ;; 1723 "no" ) : ${CC=cc} ;;
1723 * ) # Extract the first word of "gcc", so it can be a program name with args. 1724 * ) # Extract the first word of "gcc", so it can be a program name with args.
1724 set dummy gcc; ac_word=$2 1725 set dummy gcc; ac_word=$2
1725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_word" >&5 1727 echo "configure:1728: checking for $ac_word" >&5
1727 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6 1729 echo $ac_n "(cached) $ac_c" 1>&6
1729 else 1730 else
1730 if test -n "$CC"; then 1731 if test -n "$CC"; then
1731 ac_cv_prog_CC="$CC" # Let the user override the test. 1732 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 1752
1752 if test -z "$CC"; then 1753 if test -z "$CC"; then
1753 # Extract the first word of "cc", so it can be a program name with args. 1754 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2 1755 set dummy cc; ac_word=$2
1755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_word" >&5 1757 echo "configure:1758: checking for $ac_word" >&5
1757 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6 1759 echo $ac_n "(cached) $ac_c" 1>&6
1759 else 1760 else
1760 if test -n "$CC"; then 1761 if test -n "$CC"; then
1761 ac_cv_prog_CC="$CC" # Let the user override the test. 1762 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 case "`uname -s`" in 1803 case "`uname -s`" in
1803 *win32* | *WIN32*) 1804 *win32* | *WIN32*)
1804 # Extract the first word of "cl", so it can be a program name with args. 1805 # Extract the first word of "cl", so it can be a program name with args.
1805 set dummy cl; ac_word=$2 1806 set dummy cl; ac_word=$2
1806 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1807 echo "configure:1808: checking for $ac_word" >&5 1808 echo "configure:1809: checking for $ac_word" >&5
1808 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1809 echo $ac_n "(cached) $ac_c" 1>&6 1810 echo $ac_n "(cached) $ac_c" 1>&6
1810 else 1811 else
1811 if test -n "$CC"; then 1812 if test -n "$CC"; then
1812 ac_cv_prog_CC="$CC" # Let the user override the test. 1813 ac_cv_prog_CC="$CC" # Let the user override the test.
1834 fi 1835 fi
1835 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1836 fi 1837 fi
1837 1838
1838 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1840 echo "configure:1841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1840 1841
1841 ac_ext=c 1842 ac_ext=c
1842 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1843 ac_cpp='$CPP $CPPFLAGS' 1844 ac_cpp='$CPP $CPPFLAGS'
1844 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1845 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1846 cross_compiling=$ac_cv_prog_cc_cross 1847 cross_compiling=$ac_cv_prog_cc_cross
1847 1848
1848 cat > conftest.$ac_ext << EOF 1849 cat > conftest.$ac_ext << EOF
1849 1850
1850 #line 1851 "configure" 1851 #line 1852 "configure"
1851 #include "confdefs.h" 1852 #include "confdefs.h"
1852 1853
1853 main(){return(0);} 1854 main(){return(0);}
1854 EOF 1855 EOF
1855 if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1856 ac_cv_prog_cc_works=yes 1857 ac_cv_prog_cc_works=yes
1857 # If we can't run a trivial program, we are probably using a cross compiler. 1858 # If we can't run a trivial program, we are probably using a cross compiler.
1858 if (./conftest; exit) 2>/dev/null; then 1859 if (./conftest; exit) 2>/dev/null; then
1859 ac_cv_prog_cc_cross=no 1860 ac_cv_prog_cc_cross=no
1860 else 1861 else
1876 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1877 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1877 if test $ac_cv_prog_cc_works = no; then 1878 if test $ac_cv_prog_cc_works = no; then
1878 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1879 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1879 fi 1880 fi
1880 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1881 echo "configure:1882: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1882 echo "configure:1883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1882 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1883 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1883 cross_compiling=$ac_cv_prog_cc_cross 1884 cross_compiling=$ac_cv_prog_cc_cross
1884 1885
1885 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1886 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1886 echo "configure:1887: checking whether we are using GNU C" >&5 1887 echo "configure:1888: checking whether we are using GNU C" >&5
1887 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1888 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6 1889 echo $ac_n "(cached) $ac_c" 1>&6
1889 else 1890 else
1890 cat > conftest.c <<EOF 1891 cat > conftest.c <<EOF
1891 #ifdef __GNUC__ 1892 #ifdef __GNUC__
1892 yes; 1893 yes;
1893 #endif 1894 #endif
1894 EOF 1895 EOF
1895 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1896 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1896 ac_cv_prog_gcc=yes 1897 ac_cv_prog_gcc=yes
1897 else 1898 else
1898 ac_cv_prog_gcc=no 1899 ac_cv_prog_gcc=no
1899 fi 1900 fi
1900 fi 1901 fi
1909 1910
1910 ac_test_CFLAGS="${CFLAGS+set}" 1911 ac_test_CFLAGS="${CFLAGS+set}"
1911 ac_save_CFLAGS="$CFLAGS" 1912 ac_save_CFLAGS="$CFLAGS"
1912 CFLAGS= 1913 CFLAGS=
1913 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1914 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1914 echo "configure:1915: checking whether ${CC-cc} accepts -g" >&5 1915 echo "configure:1916: checking whether ${CC-cc} accepts -g" >&5
1915 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1916 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1916 echo $ac_n "(cached) $ac_c" 1>&6 1917 echo $ac_n "(cached) $ac_c" 1>&6
1917 else 1918 else
1918 echo 'void f(){}' > conftest.c 1919 echo 'void f(){}' > conftest.c
1919 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1920 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1989 #### Some other nice autoconf tests. If you add a test here which 1990 #### Some other nice autoconf tests. If you add a test here which
1990 #### should make an entry in src/config.h, don't forget to add an 1991 #### should make an entry in src/config.h, don't forget to add an
1991 #### #undef clause to src/config.h.in for autoconf to modify. 1992 #### #undef clause to src/config.h.in for autoconf to modify.
1992 1993
1993 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1994 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1994 echo "configure:1995: checking whether ln -s works" >&5 1995 echo "configure:1996: checking whether ln -s works" >&5
1995 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1996 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6 1997 echo $ac_n "(cached) $ac_c" 1>&6
1997 else 1998 else
1998 rm -f conftestdata 1999 rm -f conftestdata
1999 if ln -s X conftestdata 2>/dev/null 2000 if ln -s X conftestdata 2>/dev/null
2010 else 2011 else
2011 echo "$ac_t""no" 1>&6 2012 echo "$ac_t""no" 1>&6
2012 fi 2013 fi
2013 2014
2014 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2015 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2015 echo "configure:2016: checking how to run the C preprocessor" >&5 2016 echo "configure:2017: checking how to run the C preprocessor" >&5
2016 # On Suns, sometimes $CPP names a directory. 2017 # On Suns, sometimes $CPP names a directory.
2017 if test -n "$CPP" && test -d "$CPP"; then 2018 if test -n "$CPP" && test -d "$CPP"; then
2018 CPP= 2019 CPP=
2019 fi 2020 fi
2020 if test -z "$CPP"; then 2021 if test -z "$CPP"; then
2025 # substituted into the Makefile and "${CC-cc}" will confuse make. 2026 # substituted into the Makefile and "${CC-cc}" will confuse make.
2026 CPP="${CC-cc} -E" 2027 CPP="${CC-cc} -E"
2027 # On the NeXT, cc -E runs the code through the compiler's parser, 2028 # On the NeXT, cc -E runs the code through the compiler's parser,
2028 # not just through cpp. 2029 # not just through cpp.
2029 cat > conftest.$ac_ext <<EOF 2030 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure" 2031 #line 2032 "configure"
2031 #include "confdefs.h" 2032 #include "confdefs.h"
2032 #include <assert.h> 2033 #include <assert.h>
2033 Syntax Error 2034 Syntax Error
2034 EOF 2035 EOF
2035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2036 { (eval echo configure:2037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2037 { (eval echo configure:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2038 if test -z "$ac_err"; then 2039 if test -z "$ac_err"; then
2039 : 2040 :
2040 else 2041 else
2041 echo "$ac_err" >&5 2042 echo "$ac_err" >&5
2042 echo "configure: failed program was:" >&5 2043 echo "configure: failed program was:" >&5
2043 cat conftest.$ac_ext >&5 2044 cat conftest.$ac_ext >&5
2044 rm -rf conftest* 2045 rm -rf conftest*
2045 CPP="${CC-cc} -E -traditional-cpp" 2046 CPP="${CC-cc} -E -traditional-cpp"
2046 cat > conftest.$ac_ext <<EOF 2047 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure" 2048 #line 2049 "configure"
2048 #include "confdefs.h" 2049 #include "confdefs.h"
2049 #include <assert.h> 2050 #include <assert.h>
2050 Syntax Error 2051 Syntax Error
2051 EOF 2052 EOF
2052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2053 { (eval echo configure:2054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2054 { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2055 if test -z "$ac_err"; then 2056 if test -z "$ac_err"; then
2056 : 2057 :
2057 else 2058 else
2058 echo "$ac_err" >&5 2059 echo "$ac_err" >&5
2059 echo "configure: failed program was:" >&5 2060 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5 2061 cat conftest.$ac_ext >&5
2061 rm -rf conftest* 2062 rm -rf conftest*
2062 CPP="${CC-cc} -nologo -E" 2063 CPP="${CC-cc} -nologo -E"
2063 cat > conftest.$ac_ext <<EOF 2064 cat > conftest.$ac_ext <<EOF
2064 #line 2065 "configure" 2065 #line 2066 "configure"
2065 #include "confdefs.h" 2066 #include "confdefs.h"
2066 #include <assert.h> 2067 #include <assert.h>
2067 Syntax Error 2068 Syntax Error
2068 EOF 2069 EOF
2069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2070 { (eval echo configure:2071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2071 { (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2072 if test -z "$ac_err"; then 2073 if test -z "$ac_err"; then
2073 : 2074 :
2074 else 2075 else
2075 echo "$ac_err" >&5 2076 echo "$ac_err" >&5
2101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2104 # ./install, which can be erroneously created by make from ./install.sh. 2105 # ./install, which can be erroneously created by make from ./install.sh.
2105 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2106 echo "configure:2107: checking for a BSD compatible install" >&5 2107 echo "configure:2108: checking for a BSD compatible install" >&5
2107 if test -z "$INSTALL"; then 2108 if test -z "$INSTALL"; then
2108 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6 2110 echo $ac_n "(cached) $ac_c" 1>&6
2110 else 2111 else
2111 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2158 for ac_prog in 'bison -y' byacc 2159 for ac_prog in 'bison -y' byacc
2159 do 2160 do
2160 # Extract the first word of "$ac_prog", so it can be a program name with args. 2161 # Extract the first word of "$ac_prog", so it can be a program name with args.
2161 set dummy $ac_prog; ac_word=$2 2162 set dummy $ac_prog; ac_word=$2
2162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2163 echo "configure:2164: checking for $ac_word" >&5 2164 echo "configure:2165: checking for $ac_word" >&5
2164 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2165 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6 2166 echo $ac_n "(cached) $ac_c" 1>&6
2166 else 2167 else
2167 if test -n "$YACC"; then 2168 if test -n "$YACC"; then
2168 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2169 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2192 2193
2193 if test "x$RANLIB" = x; then 2194 if test "x$RANLIB" = x; then
2194 # Extract the first word of "ranlib", so it can be a program name with args. 2195 # Extract the first word of "ranlib", so it can be a program name with args.
2195 set dummy ranlib; ac_word=$2 2196 set dummy ranlib; ac_word=$2
2196 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2197 echo "configure:2198: checking for $ac_word" >&5 2198 echo "configure:2199: checking for $ac_word" >&5
2198 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2199 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2199 echo $ac_n "(cached) $ac_c" 1>&6 2200 echo $ac_n "(cached) $ac_c" 1>&6
2200 else 2201 else
2201 if test -n "$RANLIB"; then 2202 if test -n "$RANLIB"; then
2202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2222 fi 2223 fi
2223 2224
2224 fi 2225 fi
2225 2226
2226 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2227 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2227 echo "configure:2228: checking for AIX" >&5 2228 echo "configure:2229: checking for AIX" >&5
2228 cat > conftest.$ac_ext <<EOF 2229 cat > conftest.$ac_ext <<EOF
2229 #line 2230 "configure" 2230 #line 2231 "configure"
2230 #include "confdefs.h" 2231 #include "confdefs.h"
2231 #ifdef _AIX 2232 #ifdef _AIX
2232 yes 2233 yes
2233 #endif 2234 #endif
2234 2235
2251 # Sound support for GNU/Linux and the free BSDs. 2252 # Sound support for GNU/Linux and the free BSDs.
2252 for ac_hdr in machine/soundcard.h sys/soundcard.h 2253 for ac_hdr in machine/soundcard.h sys/soundcard.h
2253 do 2254 do
2254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_hdr" >&5 2257 echo "configure:2258: checking for $ac_hdr" >&5
2257 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6 2259 echo $ac_n "(cached) $ac_c" 1>&6
2259 else 2260 else
2260 cat > conftest.$ac_ext <<EOF 2261 cat > conftest.$ac_ext <<EOF
2261 #line 2262 "configure" 2262 #line 2263 "configure"
2262 #include "confdefs.h" 2263 #include "confdefs.h"
2263 #include <$ac_hdr> 2264 #include <$ac_hdr>
2264 EOF 2265 EOF
2265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2266 { (eval echo configure:2267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2267 { (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2268 if test -z "$ac_err"; then 2269 if test -z "$ac_err"; then
2269 rm -rf conftest* 2270 rm -rf conftest*
2270 eval "ac_cv_header_$ac_safe=yes" 2271 eval "ac_cv_header_$ac_safe=yes"
2271 else 2272 else
2294 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2295 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2295 termcap.h stdio_ext.h fcntl.h term.h 2296 termcap.h stdio_ext.h fcntl.h term.h
2296 do 2297 do
2297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2299 echo "configure:2300: checking for $ac_hdr" >&5 2300 echo "configure:2301: checking for $ac_hdr" >&5
2300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2301 echo $ac_n "(cached) $ac_c" 1>&6 2302 echo $ac_n "(cached) $ac_c" 1>&6
2302 else 2303 else
2303 cat > conftest.$ac_ext <<EOF 2304 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure" 2305 #line 2306 "configure"
2305 #include "confdefs.h" 2306 #include "confdefs.h"
2306 #include <$ac_hdr> 2307 #include <$ac_hdr>
2307 EOF 2308 EOF
2308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2309 { (eval echo configure:2310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2311 if test -z "$ac_err"; then 2312 if test -z "$ac_err"; then
2312 rm -rf conftest* 2313 rm -rf conftest*
2313 eval "ac_cv_header_$ac_safe=yes" 2314 eval "ac_cv_header_$ac_safe=yes"
2314 else 2315 else
2331 echo "$ac_t""no" 1>&6 2332 echo "$ac_t""no" 1>&6
2332 fi 2333 fi
2333 done 2334 done
2334 2335
2335 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2336 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2336 echo "configure:2337: checking for ANSI C header files" >&5 2337 echo "configure:2338: checking for ANSI C header files" >&5
2337 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2338 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6 2339 echo $ac_n "(cached) $ac_c" 1>&6
2339 else 2340 else
2340 cat > conftest.$ac_ext <<EOF 2341 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure" 2342 #line 2343 "configure"
2342 #include "confdefs.h" 2343 #include "confdefs.h"
2343 #include <stdlib.h> 2344 #include <stdlib.h>
2344 #include <stdarg.h> 2345 #include <stdarg.h>
2345 #include <string.h> 2346 #include <string.h>
2346 #include <float.h> 2347 #include <float.h>
2347 EOF 2348 EOF
2348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2349 { (eval echo configure:2350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2351 if test -z "$ac_err"; then 2352 if test -z "$ac_err"; then
2352 rm -rf conftest* 2353 rm -rf conftest*
2353 ac_cv_header_stdc=yes 2354 ac_cv_header_stdc=yes
2354 else 2355 else
2361 rm -f conftest* 2362 rm -f conftest*
2362 2363
2363 if test $ac_cv_header_stdc = yes; then 2364 if test $ac_cv_header_stdc = yes; then
2364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2365 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2365 cat > conftest.$ac_ext <<EOF 2366 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure" 2367 #line 2368 "configure"
2367 #include "confdefs.h" 2368 #include "confdefs.h"
2368 #include <string.h> 2369 #include <string.h>
2369 EOF 2370 EOF
2370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2371 egrep "memchr" >/dev/null 2>&1; then 2372 egrep "memchr" >/dev/null 2>&1; then
2379 fi 2380 fi
2380 2381
2381 if test $ac_cv_header_stdc = yes; then 2382 if test $ac_cv_header_stdc = yes; then
2382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2383 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2383 cat > conftest.$ac_ext <<EOF 2384 cat > conftest.$ac_ext <<EOF
2384 #line 2385 "configure" 2385 #line 2386 "configure"
2385 #include "confdefs.h" 2386 #include "confdefs.h"
2386 #include <stdlib.h> 2387 #include <stdlib.h>
2387 EOF 2388 EOF
2388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2389 egrep "free" >/dev/null 2>&1; then 2390 egrep "free" >/dev/null 2>&1; then
2400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2401 if test "$cross_compiling" = yes; then 2402 if test "$cross_compiling" = yes; then
2402 : 2403 :
2403 else 2404 else
2404 cat > conftest.$ac_ext <<EOF 2405 cat > conftest.$ac_ext <<EOF
2405 #line 2406 "configure" 2406 #line 2407 "configure"
2406 #include "confdefs.h" 2407 #include "confdefs.h"
2407 #include <ctype.h> 2408 #include <ctype.h>
2408 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2409 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2409 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2410 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2411 int main () { int i; for (i = 0; i < 256; i++) 2412 int main () { int i; for (i = 0; i < 256; i++)
2412 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2413 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2413 exit (0); } 2414 exit (0); }
2414 2415
2415 EOF 2416 EOF
2416 if { (eval echo configure:2417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2417 then 2418 then
2418 : 2419 :
2419 else 2420 else
2420 echo "configure: failed program was:" >&5 2421 echo "configure: failed program was:" >&5
2421 cat conftest.$ac_ext >&5 2422 cat conftest.$ac_ext >&5
2435 EOF 2436 EOF
2436 2437
2437 fi 2438 fi
2438 2439
2439 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2440 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2440 echo "configure:2441: checking whether time.h and sys/time.h may both be included" >&5 2441 echo "configure:2442: checking whether time.h and sys/time.h may both be included" >&5
2441 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2442 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6 2443 echo $ac_n "(cached) $ac_c" 1>&6
2443 else 2444 else
2444 cat > conftest.$ac_ext <<EOF 2445 cat > conftest.$ac_ext <<EOF
2445 #line 2446 "configure" 2446 #line 2447 "configure"
2446 #include "confdefs.h" 2447 #include "confdefs.h"
2447 #include <sys/types.h> 2448 #include <sys/types.h>
2448 #include <sys/time.h> 2449 #include <sys/time.h>
2449 #include <time.h> 2450 #include <time.h>
2450 int main() { 2451 int main() {
2451 struct tm *tp; 2452 struct tm *tp;
2452 ; return 0; } 2453 ; return 0; }
2453 EOF 2454 EOF
2454 if { (eval echo configure:2455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2455 rm -rf conftest* 2456 rm -rf conftest*
2456 ac_cv_header_time=yes 2457 ac_cv_header_time=yes
2457 else 2458 else
2458 echo "configure: failed program was:" >&5 2459 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5 2460 cat conftest.$ac_ext >&5
2470 EOF 2471 EOF
2471 2472
2472 fi 2473 fi
2473 2474
2474 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2475 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2475 echo "configure:2476: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2476 echo "configure:2477: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2476 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2477 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2477 echo $ac_n "(cached) $ac_c" 1>&6 2478 echo $ac_n "(cached) $ac_c" 1>&6
2478 else 2479 else
2479 cat > conftest.$ac_ext <<EOF 2480 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure" 2481 #line 2482 "configure"
2481 #include "confdefs.h" 2482 #include "confdefs.h"
2482 #include <sys/types.h> 2483 #include <sys/types.h>
2483 #include <signal.h> 2484 #include <signal.h>
2484 /* NetBSD declares sys_siglist in unistd.h. */ 2485 /* NetBSD declares sys_siglist in unistd.h. */
2485 #ifdef HAVE_UNISTD_H 2486 #ifdef HAVE_UNISTD_H
2487 #endif 2488 #endif
2488 int main() { 2489 int main() {
2489 char *msg = *(sys_siglist + 1); 2490 char *msg = *(sys_siglist + 1);
2490 ; return 0; } 2491 ; return 0; }
2491 EOF 2492 EOF
2492 if { (eval echo configure:2493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2493 if { (eval echo configure:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 rm -rf conftest* 2494 rm -rf conftest*
2494 ac_cv_decl_sys_siglist=yes 2495 ac_cv_decl_sys_siglist=yes
2495 else 2496 else
2496 echo "configure: failed program was:" >&5 2497 echo "configure: failed program was:" >&5
2497 cat conftest.$ac_ext >&5 2498 cat conftest.$ac_ext >&5
2507 #define SYS_SIGLIST_DECLARED 1 2508 #define SYS_SIGLIST_DECLARED 1
2508 EOF 2509 EOF
2509 2510
2510 fi 2511 fi
2511 2512
2512 2513 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2513 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2514 echo "configure:2515: checking for sys/wait.h that is POSIX.1 compatible" >&5
2514 echo "configure:2515: checking for struct utimbuf" >&5 2515 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2515 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6 2516 echo $ac_n "(cached) $ac_c" 1>&6
2517 else 2517 else
2518 cat > conftest.$ac_ext <<EOF 2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure" 2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 #include <sys/types.h>
2522 #include <sys/wait.h>
2523 #ifndef WEXITSTATUS
2524 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2525 #endif
2526 #ifndef WIFEXITED
2527 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2528 #endif
2529 int main() {
2530 int s;
2531 wait (&s);
2532 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2533 ; return 0; }
2534 EOF
2535 if { (eval echo configure:2536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2536 rm -rf conftest*
2537 ac_cv_header_sys_wait_h=yes
2538 else
2539 echo "configure: failed program was:" >&5
2540 cat conftest.$ac_ext >&5
2541 rm -rf conftest*
2542 ac_cv_header_sys_wait_h=no
2543 fi
2544 rm -f conftest*
2545 fi
2546
2547 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2548 if test $ac_cv_header_sys_wait_h = yes; then
2549 cat >> confdefs.h <<\EOF
2550 #define HAVE_SYS_WAIT_H 1
2551 EOF
2552
2553 fi
2554
2555
2556 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2557 echo "configure:2558: checking for struct utimbuf" >&5
2558 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2559 echo $ac_n "(cached) $ac_c" 1>&6
2560 else
2561 cat > conftest.$ac_ext <<EOF
2562 #line 2563 "configure"
2520 #include "confdefs.h" 2563 #include "confdefs.h"
2521 #ifdef TIME_WITH_SYS_TIME 2564 #ifdef TIME_WITH_SYS_TIME
2522 #include <sys/time.h> 2565 #include <sys/time.h>
2523 #include <time.h> 2566 #include <time.h>
2524 #else 2567 #else
2533 #endif 2576 #endif
2534 int main() { 2577 int main() {
2535 static struct utimbuf x; x.actime = x.modtime; 2578 static struct utimbuf x; x.actime = x.modtime;
2536 ; return 0; } 2579 ; return 0; }
2537 EOF 2580 EOF
2538 if { (eval echo configure:2539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2581 if { (eval echo configure:2582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2539 rm -rf conftest* 2582 rm -rf conftest*
2540 emacs_cv_struct_utimbuf=yes 2583 emacs_cv_struct_utimbuf=yes
2541 else 2584 else
2542 echo "configure: failed program was:" >&5 2585 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5 2586 cat conftest.$ac_ext >&5
2554 EOF 2597 EOF
2555 2598
2556 fi 2599 fi
2557 2600
2558 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2601 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2559 echo "configure:2560: checking return type of signal handlers" >&5 2602 echo "configure:2603: checking return type of signal handlers" >&5
2560 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2603 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2561 echo $ac_n "(cached) $ac_c" 1>&6 2604 echo $ac_n "(cached) $ac_c" 1>&6
2562 else 2605 else
2563 cat > conftest.$ac_ext <<EOF 2606 cat > conftest.$ac_ext <<EOF
2564 #line 2565 "configure" 2607 #line 2608 "configure"
2565 #include "confdefs.h" 2608 #include "confdefs.h"
2566 #include <sys/types.h> 2609 #include <sys/types.h>
2567 #include <signal.h> 2610 #include <signal.h>
2568 #ifdef signal 2611 #ifdef signal
2569 #undef signal 2612 #undef signal
2576 2619
2577 int main() { 2620 int main() {
2578 int i; 2621 int i;
2579 ; return 0; } 2622 ; return 0; }
2580 EOF 2623 EOF
2581 if { (eval echo configure:2582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2582 rm -rf conftest* 2625 rm -rf conftest*
2583 ac_cv_type_signal=void 2626 ac_cv_type_signal=void
2584 else 2627 else
2585 echo "configure: failed program was:" >&5 2628 echo "configure: failed program was:" >&5
2586 cat conftest.$ac_ext >&5 2629 cat conftest.$ac_ext >&5
2596 EOF 2639 EOF
2597 2640
2598 2641
2599 2642
2600 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 2643 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
2601 echo "configure:2602: checking for speed_t" >&5 2644 echo "configure:2645: checking for speed_t" >&5
2602 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then 2645 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then
2603 echo $ac_n "(cached) $ac_c" 1>&6 2646 echo $ac_n "(cached) $ac_c" 1>&6
2604 else 2647 else
2605 cat > conftest.$ac_ext <<EOF 2648 cat > conftest.$ac_ext <<EOF
2606 #line 2607 "configure" 2649 #line 2650 "configure"
2607 #include "confdefs.h" 2650 #include "confdefs.h"
2608 #include <termios.h> 2651 #include <termios.h>
2609 int main() { 2652 int main() {
2610 speed_t x = 1; 2653 speed_t x = 1;
2611 ; return 0; } 2654 ; return 0; }
2612 EOF 2655 EOF
2613 if { (eval echo configure:2614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2656 if { (eval echo configure:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2614 rm -rf conftest* 2657 rm -rf conftest*
2615 emacs_cv_speed_t=yes 2658 emacs_cv_speed_t=yes
2616 else 2659 else
2617 echo "configure: failed program was:" >&5 2660 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5 2661 cat conftest.$ac_ext >&5
2627 EOF 2670 EOF
2628 2671
2629 fi 2672 fi
2630 2673
2631 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2674 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2632 echo "configure:2633: checking for struct timeval" >&5 2675 echo "configure:2676: checking for struct timeval" >&5
2633 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2676 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6 2677 echo $ac_n "(cached) $ac_c" 1>&6
2635 else 2678 else
2636 cat > conftest.$ac_ext <<EOF 2679 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure" 2680 #line 2681 "configure"
2638 #include "confdefs.h" 2681 #include "confdefs.h"
2639 #ifdef TIME_WITH_SYS_TIME 2682 #ifdef TIME_WITH_SYS_TIME
2640 #include <sys/time.h> 2683 #include <sys/time.h>
2641 #include <time.h> 2684 #include <time.h>
2642 #else 2685 #else
2648 #endif 2691 #endif
2649 int main() { 2692 int main() {
2650 static struct timeval x; x.tv_sec = x.tv_usec; 2693 static struct timeval x; x.tv_sec = x.tv_usec;
2651 ; return 0; } 2694 ; return 0; }
2652 EOF 2695 EOF
2653 if { (eval echo configure:2654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2696 if { (eval echo configure:2697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2654 rm -rf conftest* 2697 rm -rf conftest*
2655 emacs_cv_struct_timeval=yes 2698 emacs_cv_struct_timeval=yes
2656 else 2699 else
2657 echo "configure: failed program was:" >&5 2700 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5 2701 cat conftest.$ac_ext >&5
2670 EOF 2713 EOF
2671 2714
2672 fi 2715 fi
2673 2716
2674 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 2717 echo $ac_n "checking for struct exception""... $ac_c" 1>&6
2675 echo "configure:2676: checking for struct exception" >&5 2718 echo "configure:2719: checking for struct exception" >&5
2676 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then 2719 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6 2720 echo $ac_n "(cached) $ac_c" 1>&6
2678 else 2721 else
2679 cat > conftest.$ac_ext <<EOF 2722 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure" 2723 #line 2724 "configure"
2681 #include "confdefs.h" 2724 #include "confdefs.h"
2682 #include <math.h> 2725 #include <math.h>
2683 int main() { 2726 int main() {
2684 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 2727 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
2685 ; return 0; } 2728 ; return 0; }
2686 EOF 2729 EOF
2687 if { (eval echo configure:2688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2730 if { (eval echo configure:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2688 rm -rf conftest* 2731 rm -rf conftest*
2689 emacs_cv_struct_exception=yes 2732 emacs_cv_struct_exception=yes
2690 else 2733 else
2691 echo "configure: failed program was:" >&5 2734 echo "configure: failed program was:" >&5
2692 cat conftest.$ac_ext >&5 2735 cat conftest.$ac_ext >&5
2704 EOF 2747 EOF
2705 2748
2706 fi 2749 fi
2707 2750
2708 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2751 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2709 echo "configure:2710: checking whether struct tm is in sys/time.h or time.h" >&5 2752 echo "configure:2753: checking whether struct tm is in sys/time.h or time.h" >&5
2710 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2753 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6 2754 echo $ac_n "(cached) $ac_c" 1>&6
2712 else 2755 else
2713 cat > conftest.$ac_ext <<EOF 2756 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure" 2757 #line 2758 "configure"
2715 #include "confdefs.h" 2758 #include "confdefs.h"
2716 #include <sys/types.h> 2759 #include <sys/types.h>
2717 #include <time.h> 2760 #include <time.h>
2718 int main() { 2761 int main() {
2719 struct tm *tp; tp->tm_sec; 2762 struct tm *tp; tp->tm_sec;
2720 ; return 0; } 2763 ; return 0; }
2721 EOF 2764 EOF
2722 if { (eval echo configure:2723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2765 if { (eval echo configure:2766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2723 rm -rf conftest* 2766 rm -rf conftest*
2724 ac_cv_struct_tm=time.h 2767 ac_cv_struct_tm=time.h
2725 else 2768 else
2726 echo "configure: failed program was:" >&5 2769 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5 2770 cat conftest.$ac_ext >&5
2738 EOF 2781 EOF
2739 2782
2740 fi 2783 fi
2741 2784
2742 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2785 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2743 echo "configure:2744: checking for tm_zone in struct tm" >&5 2786 echo "configure:2787: checking for tm_zone in struct tm" >&5
2744 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2787 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6 2788 echo $ac_n "(cached) $ac_c" 1>&6
2746 else 2789 else
2747 cat > conftest.$ac_ext <<EOF 2790 cat > conftest.$ac_ext <<EOF
2748 #line 2749 "configure" 2791 #line 2792 "configure"
2749 #include "confdefs.h" 2792 #include "confdefs.h"
2750 #include <sys/types.h> 2793 #include <sys/types.h>
2751 #include <$ac_cv_struct_tm> 2794 #include <$ac_cv_struct_tm>
2752 int main() { 2795 int main() {
2753 struct tm tm; tm.tm_zone; 2796 struct tm tm; tm.tm_zone;
2754 ; return 0; } 2797 ; return 0; }
2755 EOF 2798 EOF
2756 if { (eval echo configure:2757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2799 if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2757 rm -rf conftest* 2800 rm -rf conftest*
2758 ac_cv_struct_tm_zone=yes 2801 ac_cv_struct_tm_zone=yes
2759 else 2802 else
2760 echo "configure: failed program was:" >&5 2803 echo "configure: failed program was:" >&5
2761 cat conftest.$ac_ext >&5 2804 cat conftest.$ac_ext >&5
2771 #define HAVE_TM_ZONE 1 2814 #define HAVE_TM_ZONE 1
2772 EOF 2815 EOF
2773 2816
2774 else 2817 else
2775 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2818 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2776 echo "configure:2777: checking for tzname" >&5 2819 echo "configure:2820: checking for tzname" >&5
2777 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2820 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6 2821 echo $ac_n "(cached) $ac_c" 1>&6
2779 else 2822 else
2780 cat > conftest.$ac_ext <<EOF 2823 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure" 2824 #line 2825 "configure"
2782 #include "confdefs.h" 2825 #include "confdefs.h"
2783 #include <time.h> 2826 #include <time.h>
2784 #ifndef tzname /* For SGI. */ 2827 #ifndef tzname /* For SGI. */
2785 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2828 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2786 #endif 2829 #endif
2787 int main() { 2830 int main() {
2788 atoi(*tzname); 2831 atoi(*tzname);
2789 ; return 0; } 2832 ; return 0; }
2790 EOF 2833 EOF
2791 if { (eval echo configure:2792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2834 if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2792 rm -rf conftest* 2835 rm -rf conftest*
2793 ac_cv_var_tzname=yes 2836 ac_cv_var_tzname=yes
2794 else 2837 else
2795 echo "configure: failed program was:" >&5 2838 echo "configure: failed program was:" >&5
2796 cat conftest.$ac_ext >&5 2839 cat conftest.$ac_ext >&5
2808 2851
2809 fi 2852 fi
2810 fi 2853 fi
2811 2854
2812 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2855 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2813 echo "configure:2814: checking for tm_gmtoff in struct tm" >&5 2856 echo "configure:2857: checking for tm_gmtoff in struct tm" >&5
2814 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2857 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6 2858 echo $ac_n "(cached) $ac_c" 1>&6
2816 else 2859 else
2817 cat > conftest.$ac_ext <<EOF 2860 cat > conftest.$ac_ext <<EOF
2818 #line 2819 "configure" 2861 #line 2862 "configure"
2819 #include "confdefs.h" 2862 #include "confdefs.h"
2820 #include <time.h> 2863 #include <time.h>
2821 int main() { 2864 int main() {
2822 struct tm t; t.tm_gmtoff = 0 2865 struct tm t; t.tm_gmtoff = 0
2823 ; return 0; } 2866 ; return 0; }
2824 EOF 2867 EOF
2825 if { (eval echo configure:2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2868 if { (eval echo configure:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2826 rm -rf conftest* 2869 rm -rf conftest*
2827 emacs_cv_tm_gmtoff=yes 2870 emacs_cv_tm_gmtoff=yes
2828 else 2871 else
2829 echo "configure: failed program was:" >&5 2872 echo "configure: failed program was:" >&5
2830 cat conftest.$ac_ext >&5 2873 cat conftest.$ac_ext >&5
2842 2885
2843 fi 2886 fi
2844 2887
2845 2888
2846 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 2889 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
2847 echo "configure:2848: checking for ${CC-cc} option to accept ANSI C" >&5 2890 echo "configure:2891: checking for ${CC-cc} option to accept ANSI C" >&5
2848 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then 2891 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
2849 echo $ac_n "(cached) $ac_c" 1>&6 2892 echo $ac_n "(cached) $ac_c" 1>&6
2850 else 2893 else
2851 ac_cv_prog_cc_stdc=no 2894 ac_cv_prog_cc_stdc=no
2852 ac_save_CC="$CC" 2895 ac_save_CC="$CC"
2859 # SVR4 -Xc -D__EXTENSIONS__ 2902 # SVR4 -Xc -D__EXTENSIONS__
2860 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2861 do 2904 do
2862 CC="$ac_save_CC $ac_arg" 2905 CC="$ac_save_CC $ac_arg"
2863 cat > conftest.$ac_ext <<EOF 2906 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure" 2907 #line 2908 "configure"
2865 #include "confdefs.h" 2908 #include "confdefs.h"
2866 #include <stdarg.h> 2909 #include <stdarg.h>
2867 #include <stdio.h> 2910 #include <stdio.h>
2868 #include <sys/types.h> 2911 #include <sys/types.h>
2869 #include <sys/stat.h> 2912 #include <sys/stat.h>
2893 char **argv; 2936 char **argv;
2894 int main() { 2937 int main() {
2895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2938 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 ; return 0; } 2939 ; return 0; }
2897 EOF 2940 EOF
2898 if { (eval echo configure:2899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2941 if { (eval echo configure:2942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2899 rm -rf conftest* 2942 rm -rf conftest*
2900 ac_cv_prog_cc_stdc="$ac_arg"; break 2943 ac_cv_prog_cc_stdc="$ac_arg"; break
2901 else 2944 else
2902 echo "configure: failed program was:" >&5 2945 echo "configure: failed program was:" >&5
2903 cat conftest.$ac_ext >&5 2946 cat conftest.$ac_ext >&5
2915 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 2958 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
2916 CC="$CC $ac_cv_prog_cc_stdc" ;; 2959 CC="$CC $ac_cv_prog_cc_stdc" ;;
2917 esac 2960 esac
2918 2961
2919 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 2962 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
2920 echo "configure:2921: checking for function prototypes" >&5 2963 echo "configure:2964: checking for function prototypes" >&5
2921 if test "$ac_cv_prog_cc_stdc" != no; then 2964 if test "$ac_cv_prog_cc_stdc" != no; then
2922 echo "$ac_t""yes" 1>&6 2965 echo "$ac_t""yes" 1>&6
2923 cat >> confdefs.h <<\EOF 2966 cat >> confdefs.h <<\EOF
2924 #define PROTOTYPES 1 2967 #define PROTOTYPES 1
2925 EOF 2968 EOF
2927 else 2970 else
2928 echo "$ac_t""no" 1>&6 2971 echo "$ac_t""no" 1>&6
2929 fi 2972 fi
2930 2973
2931 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 2974 echo $ac_n "checking for working volatile""... $ac_c" 1>&6
2932 echo "configure:2933: checking for working volatile" >&5 2975 echo "configure:2976: checking for working volatile" >&5
2933 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then 2976 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6 2977 echo $ac_n "(cached) $ac_c" 1>&6
2935 else 2978 else
2936 cat > conftest.$ac_ext <<EOF 2979 cat > conftest.$ac_ext <<EOF
2937 #line 2938 "configure" 2980 #line 2981 "configure"
2938 #include "confdefs.h" 2981 #include "confdefs.h"
2939 2982
2940 int main() { 2983 int main() {
2941 2984
2942 volatile int x; 2985 volatile int x;
2943 int * volatile y; 2986 int * volatile y;
2944 ; return 0; } 2987 ; return 0; }
2945 EOF 2988 EOF
2946 if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2947 rm -rf conftest* 2990 rm -rf conftest*
2948 ac_cv_c_volatile=yes 2991 ac_cv_c_volatile=yes
2949 else 2992 else
2950 echo "configure: failed program was:" >&5 2993 echo "configure: failed program was:" >&5
2951 cat conftest.$ac_ext >&5 2994 cat conftest.$ac_ext >&5
2962 EOF 3005 EOF
2963 3006
2964 fi 3007 fi
2965 3008
2966 echo $ac_n "checking for working const""... $ac_c" 1>&6 3009 echo $ac_n "checking for working const""... $ac_c" 1>&6
2967 echo "configure:2968: checking for working const" >&5 3010 echo "configure:3011: checking for working const" >&5
2968 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 3011 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6 3012 echo $ac_n "(cached) $ac_c" 1>&6
2970 else 3013 else
2971 cat > conftest.$ac_ext <<EOF 3014 cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure" 3015 #line 3016 "configure"
2973 #include "confdefs.h" 3016 #include "confdefs.h"
2974 3017
2975 int main() { 3018 int main() {
2976 3019
2977 /* Ultrix mips cc rejects this. */ 3020 /* Ultrix mips cc rejects this. */
2978 typedef int charset[2]; const charset x; 3021 typedef int charset[2]; const charset x = {0,0};
2979 /* SunOS 4.1.1 cc rejects this. */ 3022 /* SunOS 4.1.1 cc rejects this. */
2980 char const *const *ccp; 3023 char const *const *ccp;
2981 char **p; 3024 char **p;
2982 /* NEC SVR4.0.2 mips cc rejects this. */ 3025 /* NEC SVR4.0.2 mips cc rejects this. */
2983 struct point {int x, y;}; 3026 struct point {int x, y;};
3016 const int foo = 10; 3059 const int foo = 10;
3017 } 3060 }
3018 3061
3019 ; return 0; } 3062 ; return 0; }
3020 EOF 3063 EOF
3021 if { (eval echo configure:3022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3064 if { (eval echo configure:3065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3022 rm -rf conftest* 3065 rm -rf conftest*
3023 ac_cv_c_const=yes 3066 ac_cv_c_const=yes
3024 else 3067 else
3025 echo "configure: failed program was:" >&5 3068 echo "configure: failed program was:" >&5
3026 cat conftest.$ac_ext >&5 3069 cat conftest.$ac_ext >&5
3037 EOF 3080 EOF
3038 3081
3039 fi 3082 fi
3040 3083
3041 echo $ac_n "checking for void * support""... $ac_c" 1>&6 3084 echo $ac_n "checking for void * support""... $ac_c" 1>&6
3042 echo "configure:3043: checking for void * support" >&5 3085 echo "configure:3086: checking for void * support" >&5
3043 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then 3086 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6 3087 echo $ac_n "(cached) $ac_c" 1>&6
3045 else 3088 else
3046 cat > conftest.$ac_ext <<EOF 3089 cat > conftest.$ac_ext <<EOF
3047 #line 3048 "configure" 3090 #line 3091 "configure"
3048 #include "confdefs.h" 3091 #include "confdefs.h"
3049 3092
3050 int main() { 3093 int main() {
3051 void * foo; 3094 void * foo;
3052 ; return 0; } 3095 ; return 0; }
3053 EOF 3096 EOF
3054 if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3055 rm -rf conftest* 3098 rm -rf conftest*
3056 emacs_cv_void_star=yes 3099 emacs_cv_void_star=yes
3057 else 3100 else
3058 echo "configure: failed program was:" >&5 3101 echo "configure: failed program was:" >&5
3059 cat conftest.$ac_ext >&5 3102 cat conftest.$ac_ext >&5
3075 EOF 3118 EOF
3076 3119
3077 fi 3120 fi
3078 3121
3079 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3122 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3080 echo "configure:3081: checking whether ${MAKE-make} sets \${MAKE}" >&5 3123 echo "configure:3124: checking whether ${MAKE-make} sets \${MAKE}" >&5
3081 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3124 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3082 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 3125 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6 3126 echo $ac_n "(cached) $ac_c" 1>&6
3084 else 3127 else
3085 cat > conftestmake <<\EOF 3128 cat > conftestmake <<\EOF
3103 SET_MAKE="MAKE=${MAKE-make}" 3146 SET_MAKE="MAKE=${MAKE-make}"
3104 fi 3147 fi
3105 3148
3106 3149
3107 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3150 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3108 echo "configure:3109: checking for long file names" >&5 3151 echo "configure:3152: checking for long file names" >&5
3109 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 3152 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
3110 echo $ac_n "(cached) $ac_c" 1>&6 3153 echo $ac_n "(cached) $ac_c" 1>&6
3111 else 3154 else
3112 ac_cv_sys_long_file_names=yes 3155 ac_cv_sys_long_file_names=yes
3113 # Test for long file names in all the places we know might matter: 3156 # Test for long file names in all the places we know might matter:
3154 # If we find X, set shell vars x_includes and x_libraries to the 3197 # If we find X, set shell vars x_includes and x_libraries to the
3155 # paths, otherwise set no_x=yes. 3198 # paths, otherwise set no_x=yes.
3156 # Uses ac_ vars as temps to allow command line to override cache and checks. 3199 # Uses ac_ vars as temps to allow command line to override cache and checks.
3157 # --without-x overrides everything else, but does not touch the cache. 3200 # --without-x overrides everything else, but does not touch the cache.
3158 echo $ac_n "checking for X""... $ac_c" 1>&6 3201 echo $ac_n "checking for X""... $ac_c" 1>&6
3159 echo "configure:3160: checking for X" >&5 3202 echo "configure:3203: checking for X" >&5
3160 3203
3161 # Check whether --with-x or --without-x was given. 3204 # Check whether --with-x or --without-x was given.
3162 if test "${with_x+set}" = set; then 3205 if test "${with_x+set}" = set; then
3163 withval="$with_x" 3206 withval="$with_x"
3164 : 3207 :
3216 # Guess where to find include files, by looking for this one X11 .h file. 3259 # Guess where to find include files, by looking for this one X11 .h file.
3217 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 3260 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3218 3261
3219 # First, try using that file with no special directory specified. 3262 # First, try using that file with no special directory specified.
3220 cat > conftest.$ac_ext <<EOF 3263 cat > conftest.$ac_ext <<EOF
3221 #line 3222 "configure" 3264 #line 3265 "configure"
3222 #include "confdefs.h" 3265 #include "confdefs.h"
3223 #include <$x_direct_test_include> 3266 #include <$x_direct_test_include>
3224 EOF 3267 EOF
3225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3226 { (eval echo configure:3227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3228 if test -z "$ac_err"; then 3271 if test -z "$ac_err"; then
3229 rm -rf conftest* 3272 rm -rf conftest*
3230 # We can compile using X headers with no special include directory. 3273 # We can compile using X headers with no special include directory.
3231 ac_x_includes= 3274 ac_x_includes=
3290 # See if we find them without any special options. 3333 # See if we find them without any special options.
3291 # Don't add to $LIBS permanently. 3334 # Don't add to $LIBS permanently.
3292 ac_save_LIBS="$LIBS" 3335 ac_save_LIBS="$LIBS"
3293 LIBS="-l$x_direct_test_library $LIBS" 3336 LIBS="-l$x_direct_test_library $LIBS"
3294 cat > conftest.$ac_ext <<EOF 3337 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure" 3338 #line 3339 "configure"
3296 #include "confdefs.h" 3339 #include "confdefs.h"
3297 3340
3298 int main() { 3341 int main() {
3299 ${x_direct_test_function}() 3342 ${x_direct_test_function}()
3300 ; return 0; } 3343 ; return 0; }
3301 EOF 3344 EOF
3302 if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3303 rm -rf conftest* 3346 rm -rf conftest*
3304 LIBS="$ac_save_LIBS" 3347 LIBS="$ac_save_LIBS"
3305 # We can link X programs with no special library path. 3348 # We can link X programs with no special library path.
3306 ac_x_libraries= 3349 ac_x_libraries=
3307 else 3350 else
3472 #### Extract some information from the operating system and machine files. 3515 #### Extract some information from the operating system and machine files.
3473 3516
3474 echo "checking the machine- and system-dependent files to find out 3517 echo "checking the machine- and system-dependent files to find out
3475 - which libraries the lib-src programs will want, and 3518 - which libraries the lib-src programs will want, and
3476 - whether the GNU malloc routines are usable" 1>&6 3519 - whether the GNU malloc routines are usable" 1>&6
3477 echo "configure:3478: checking the machine- and system-dependent files to find out 3520 echo "configure:3521: checking the machine- and system-dependent files to find out
3478 - which libraries the lib-src programs will want, and 3521 - which libraries the lib-src programs will want, and
3479 - whether the GNU malloc routines are usable" >&5 3522 - whether the GNU malloc routines are usable" >&5
3480 3523
3481 ### First figure out CFLAGS (which we use for running the compiler here) 3524 ### First figure out CFLAGS (which we use for running the compiler here)
3482 ### and REAL_CFLAGS (which we use for real compilation). 3525 ### and REAL_CFLAGS (which we use for real compilation).
3606 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3649 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3607 # Assume not, until told otherwise. 3650 # Assume not, until told otherwise.
3608 GNU_MALLOC=yes 3651 GNU_MALLOC=yes
3609 doug_lea_malloc=yes 3652 doug_lea_malloc=yes
3610 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3653 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3611 echo "configure:3612: checking for malloc_get_state" >&5 3654 echo "configure:3655: checking for malloc_get_state" >&5
3612 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3655 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6 3656 echo $ac_n "(cached) $ac_c" 1>&6
3614 else 3657 else
3615 cat > conftest.$ac_ext <<EOF 3658 cat > conftest.$ac_ext <<EOF
3616 #line 3617 "configure" 3659 #line 3660 "configure"
3617 #include "confdefs.h" 3660 #include "confdefs.h"
3618 /* System header to define __stub macros and hopefully few prototypes, 3661 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char malloc_get_state(); below. */ 3662 which can conflict with char malloc_get_state(); below. */
3620 #include <assert.h> 3663 #include <assert.h>
3621 /* Override any gcc2 internal prototype to avoid an error. */ 3664 /* Override any gcc2 internal prototype to avoid an error. */
3634 malloc_get_state(); 3677 malloc_get_state();
3635 #endif 3678 #endif
3636 3679
3637 ; return 0; } 3680 ; return 0; }
3638 EOF 3681 EOF
3639 if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3640 rm -rf conftest* 3683 rm -rf conftest*
3641 eval "ac_cv_func_malloc_get_state=yes" 3684 eval "ac_cv_func_malloc_get_state=yes"
3642 else 3685 else
3643 echo "configure: failed program was:" >&5 3686 echo "configure: failed program was:" >&5
3644 cat conftest.$ac_ext >&5 3687 cat conftest.$ac_ext >&5
3655 echo "$ac_t""no" 1>&6 3698 echo "$ac_t""no" 1>&6
3656 doug_lea_malloc=no 3699 doug_lea_malloc=no
3657 fi 3700 fi
3658 3701
3659 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3702 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3660 echo "configure:3661: checking for malloc_set_state" >&5 3703 echo "configure:3704: checking for malloc_set_state" >&5
3661 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3704 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6 3705 echo $ac_n "(cached) $ac_c" 1>&6
3663 else 3706 else
3664 cat > conftest.$ac_ext <<EOF 3707 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure" 3708 #line 3709 "configure"
3666 #include "confdefs.h" 3709 #include "confdefs.h"
3667 /* System header to define __stub macros and hopefully few prototypes, 3710 /* System header to define __stub macros and hopefully few prototypes,
3668 which can conflict with char malloc_set_state(); below. */ 3711 which can conflict with char malloc_set_state(); below. */
3669 #include <assert.h> 3712 #include <assert.h>
3670 /* Override any gcc2 internal prototype to avoid an error. */ 3713 /* Override any gcc2 internal prototype to avoid an error. */
3683 malloc_set_state(); 3726 malloc_set_state();
3684 #endif 3727 #endif
3685 3728
3686 ; return 0; } 3729 ; return 0; }
3687 EOF 3730 EOF
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3731 if { (eval echo configure:3732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 rm -rf conftest* 3732 rm -rf conftest*
3690 eval "ac_cv_func_malloc_set_state=yes" 3733 eval "ac_cv_func_malloc_set_state=yes"
3691 else 3734 else
3692 echo "configure: failed program was:" >&5 3735 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5 3736 cat conftest.$ac_ext >&5
3704 echo "$ac_t""no" 1>&6 3747 echo "$ac_t""no" 1>&6
3705 doug_lea_malloc=no 3748 doug_lea_malloc=no
3706 fi 3749 fi
3707 3750
3708 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3751 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3709 echo "configure:3710: checking whether __after_morecore_hook exists" >&5 3752 echo "configure:3753: checking whether __after_morecore_hook exists" >&5
3710 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3753 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6 3754 echo $ac_n "(cached) $ac_c" 1>&6
3712 else 3755 else
3713 cat > conftest.$ac_ext <<EOF 3756 cat > conftest.$ac_ext <<EOF
3714 #line 3715 "configure" 3757 #line 3758 "configure"
3715 #include "confdefs.h" 3758 #include "confdefs.h"
3716 extern void (* __after_morecore_hook)(); 3759 extern void (* __after_morecore_hook)();
3717 int main() { 3760 int main() {
3718 __after_morecore_hook = 0 3761 __after_morecore_hook = 0
3719 ; return 0; } 3762 ; return 0; }
3720 EOF 3763 EOF
3721 if { (eval echo configure:3722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3764 if { (eval echo configure:3765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3722 rm -rf conftest* 3765 rm -rf conftest*
3723 emacs_cv_var___after_morecore_hook=yes 3766 emacs_cv_var___after_morecore_hook=yes
3724 else 3767 else
3725 echo "configure: failed program was:" >&5 3768 echo "configure: failed program was:" >&5
3726 cat conftest.$ac_ext >&5 3769 cat conftest.$ac_ext >&5
3763 fi 3806 fi
3764 3807
3765 LIBS="$libsrc_libs $LIBS" 3808 LIBS="$libsrc_libs $LIBS"
3766 3809
3767 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3810 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3768 echo "configure:3769: checking for dnet_ntoa in -ldnet" >&5 3811 echo "configure:3812: checking for dnet_ntoa in -ldnet" >&5
3769 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3812 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6 3814 echo $ac_n "(cached) $ac_c" 1>&6
3772 else 3815 else
3773 ac_save_LIBS="$LIBS" 3816 ac_save_LIBS="$LIBS"
3774 LIBS="-ldnet $LIBS" 3817 LIBS="-ldnet $LIBS"
3775 cat > conftest.$ac_ext <<EOF 3818 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure" 3819 #line 3820 "configure"
3777 #include "confdefs.h" 3820 #include "confdefs.h"
3778 /* Override any gcc2 internal prototype to avoid an error. */ 3821 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2 3822 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */ 3823 builtin and then its argument prototype would still apply. */
3781 char dnet_ntoa(); 3824 char dnet_ntoa();
3782 3825
3783 int main() { 3826 int main() {
3784 dnet_ntoa() 3827 dnet_ntoa()
3785 ; return 0; } 3828 ; return 0; }
3786 EOF 3829 EOF
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3830 if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3788 rm -rf conftest* 3831 rm -rf conftest*
3789 eval "ac_cv_lib_$ac_lib_var=yes" 3832 eval "ac_cv_lib_$ac_lib_var=yes"
3790 else 3833 else
3791 echo "configure: failed program was:" >&5 3834 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5 3835 cat conftest.$ac_ext >&5
3811 echo "$ac_t""no" 1>&6 3854 echo "$ac_t""no" 1>&6
3812 fi 3855 fi
3813 3856
3814 3857
3815 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3858 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3816 echo "configure:3817: checking for main in -lXbsd" >&5 3859 echo "configure:3860: checking for main in -lXbsd" >&5
3817 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3860 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3818 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6 3862 echo $ac_n "(cached) $ac_c" 1>&6
3820 else 3863 else
3821 ac_save_LIBS="$LIBS" 3864 ac_save_LIBS="$LIBS"
3822 LIBS="-lXbsd $LIBS" 3865 LIBS="-lXbsd $LIBS"
3823 cat > conftest.$ac_ext <<EOF 3866 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure" 3867 #line 3868 "configure"
3825 #include "confdefs.h" 3868 #include "confdefs.h"
3826 3869
3827 int main() { 3870 int main() {
3828 main() 3871 main()
3829 ; return 0; } 3872 ; return 0; }
3830 EOF 3873 EOF
3831 if { (eval echo configure:3832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3874 if { (eval echo configure:3875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3832 rm -rf conftest* 3875 rm -rf conftest*
3833 eval "ac_cv_lib_$ac_lib_var=yes" 3876 eval "ac_cv_lib_$ac_lib_var=yes"
3834 else 3877 else
3835 echo "configure: failed program was:" >&5 3878 echo "configure: failed program was:" >&5
3836 cat conftest.$ac_ext >&5 3879 cat conftest.$ac_ext >&5
3848 echo "$ac_t""no" 1>&6 3891 echo "$ac_t""no" 1>&6
3849 fi 3892 fi
3850 3893
3851 3894
3852 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3895 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3853 echo "configure:3854: checking for cma_open in -lpthreads" >&5 3896 echo "configure:3897: checking for cma_open in -lpthreads" >&5
3854 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3897 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6 3899 echo $ac_n "(cached) $ac_c" 1>&6
3857 else 3900 else
3858 ac_save_LIBS="$LIBS" 3901 ac_save_LIBS="$LIBS"
3859 LIBS="-lpthreads $LIBS" 3902 LIBS="-lpthreads $LIBS"
3860 cat > conftest.$ac_ext <<EOF 3903 cat > conftest.$ac_ext <<EOF
3861 #line 3862 "configure" 3904 #line 3905 "configure"
3862 #include "confdefs.h" 3905 #include "confdefs.h"
3863 /* Override any gcc2 internal prototype to avoid an error. */ 3906 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2 3907 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */ 3908 builtin and then its argument prototype would still apply. */
3866 char cma_open(); 3909 char cma_open();
3867 3910
3868 int main() { 3911 int main() {
3869 cma_open() 3912 cma_open()
3870 ; return 0; } 3913 ; return 0; }
3871 EOF 3914 EOF
3872 if { (eval echo configure:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 rm -rf conftest* 3916 rm -rf conftest*
3874 eval "ac_cv_lib_$ac_lib_var=yes" 3917 eval "ac_cv_lib_$ac_lib_var=yes"
3875 else 3918 else
3876 echo "configure: failed program was:" >&5 3919 echo "configure: failed program was:" >&5
3877 cat conftest.$ac_ext >&5 3920 cat conftest.$ac_ext >&5
3896 echo "$ac_t""no" 1>&6 3939 echo "$ac_t""no" 1>&6
3897 fi 3940 fi
3898 3941
3899 3942
3900 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3943 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3901 echo "configure:3902: checking for XFree86 in /usr/X386" >&5 3944 echo "configure:3945: checking for XFree86 in /usr/X386" >&5
3902 if test -d /usr/X386/include; then 3945 if test -d /usr/X386/include; then
3903 HAVE_XFREE386=yes 3946 HAVE_XFREE386=yes
3904 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3947 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3905 else 3948 else
3906 HAVE_XFREE386=no 3949 HAVE_XFREE386=no
3928 export LD_RUN_PATH 3971 export LD_RUN_PATH
3929 fi 3972 fi
3930 3973
3931 if test "${opsys}" = "gnu-linux"; then 3974 if test "${opsys}" = "gnu-linux"; then
3932 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3975 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3933 echo "configure:3934: checking whether X on GNU/Linux needs -b to link" >&5 3976 echo "configure:3977: checking whether X on GNU/Linux needs -b to link" >&5
3934 cat > conftest.$ac_ext <<EOF 3977 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure" 3978 #line 3979 "configure"
3936 #include "confdefs.h" 3979 #include "confdefs.h"
3937 3980
3938 int main() { 3981 int main() {
3939 XOpenDisplay ("foo"); 3982 XOpenDisplay ("foo");
3940 ; return 0; } 3983 ; return 0; }
3941 EOF 3984 EOF
3942 if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3943 rm -rf conftest* 3986 rm -rf conftest*
3944 xlinux_first_failure=no 3987 xlinux_first_failure=no
3945 else 3988 else
3946 echo "configure: failed program was:" >&5 3989 echo "configure: failed program was:" >&5
3947 cat conftest.$ac_ext >&5 3990 cat conftest.$ac_ext >&5
3957 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 4000 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3958 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 4001 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3959 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 4002 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3960 LIBS="$LIBS -b i486-linuxaout" 4003 LIBS="$LIBS -b i486-linuxaout"
3961 cat > conftest.$ac_ext <<EOF 4004 cat > conftest.$ac_ext <<EOF
3962 #line 3963 "configure" 4005 #line 4006 "configure"
3963 #include "confdefs.h" 4006 #include "confdefs.h"
3964 4007
3965 int main() { 4008 int main() {
3966 XOpenDisplay ("foo"); 4009 XOpenDisplay ("foo");
3967 ; return 0; } 4010 ; return 0; }
3968 EOF 4011 EOF
3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4012 if { (eval echo configure:4013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3970 rm -rf conftest* 4013 rm -rf conftest*
3971 xlinux_second_failure=no 4014 xlinux_second_failure=no
3972 else 4015 else
3973 echo "configure: failed program was:" >&5 4016 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5 4017 cat conftest.$ac_ext >&5
3994 4037
3995 for ac_func in XrmSetDatabase XScreenResourceString \ 4038 for ac_func in XrmSetDatabase XScreenResourceString \
3996 XScreenNumberOfScreen XSetWMProtocols 4039 XScreenNumberOfScreen XSetWMProtocols
3997 do 4040 do
3998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3999 echo "configure:4000: checking for $ac_func" >&5 4042 echo "configure:4043: checking for $ac_func" >&5
4000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4001 echo $ac_n "(cached) $ac_c" 1>&6 4044 echo $ac_n "(cached) $ac_c" 1>&6
4002 else 4045 else
4003 cat > conftest.$ac_ext <<EOF 4046 cat > conftest.$ac_ext <<EOF
4004 #line 4005 "configure" 4047 #line 4048 "configure"
4005 #include "confdefs.h" 4048 #include "confdefs.h"
4006 /* System header to define __stub macros and hopefully few prototypes, 4049 /* System header to define __stub macros and hopefully few prototypes,
4007 which can conflict with char $ac_func(); below. */ 4050 which can conflict with char $ac_func(); below. */
4008 #include <assert.h> 4051 #include <assert.h>
4009 /* Override any gcc2 internal prototype to avoid an error. */ 4052 /* Override any gcc2 internal prototype to avoid an error. */
4022 $ac_func(); 4065 $ac_func();
4023 #endif 4066 #endif
4024 4067
4025 ; return 0; } 4068 ; return 0; }
4026 EOF 4069 EOF
4027 if { (eval echo configure:4028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4028 rm -rf conftest* 4071 rm -rf conftest*
4029 eval "ac_cv_func_$ac_func=yes" 4072 eval "ac_cv_func_$ac_func=yes"
4030 else 4073 else
4031 echo "configure: failed program was:" >&5 4074 echo "configure: failed program was:" >&5
4032 cat conftest.$ac_ext >&5 4075 cat conftest.$ac_ext >&5
4050 4093
4051 fi 4094 fi
4052 4095
4053 if test "${window_system}" = "x11"; then 4096 if test "${window_system}" = "x11"; then
4054 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 4097 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
4055 echo "configure:4056: checking X11 version 6" >&5 4098 echo "configure:4099: checking X11 version 6" >&5
4056 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 4099 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6 4100 echo $ac_n "(cached) $ac_c" 1>&6
4058 else 4101 else
4059 cat > conftest.$ac_ext <<EOF 4102 cat > conftest.$ac_ext <<EOF
4060 #line 4061 "configure" 4103 #line 4104 "configure"
4061 #include "confdefs.h" 4104 #include "confdefs.h"
4062 #include <X11/Xlib.h> 4105 #include <X11/Xlib.h>
4063 int main() { 4106 int main() {
4064 #if XlibSpecificationRelease < 6 4107 #if XlibSpecificationRelease < 6
4065 fail; 4108 fail;
4066 #endif 4109 #endif
4067 4110
4068 ; return 0; } 4111 ; return 0; }
4069 EOF 4112 EOF
4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4071 rm -rf conftest* 4114 rm -rf conftest*
4072 emacs_cv_x11_version_6=yes 4115 emacs_cv_x11_version_6=yes
4073 else 4116 else
4074 echo "configure: failed program was:" >&5 4117 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5 4118 cat conftest.$ac_ext >&5
4090 fi 4133 fi
4091 fi 4134 fi
4092 4135
4093 if test "${window_system}" = "x11"; then 4136 if test "${window_system}" = "x11"; then
4094 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 4137 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
4095 echo "configure:4096: checking X11 version 5" >&5 4138 echo "configure:4139: checking X11 version 5" >&5
4096 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 4139 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6 4140 echo $ac_n "(cached) $ac_c" 1>&6
4098 else 4141 else
4099 cat > conftest.$ac_ext <<EOF 4142 cat > conftest.$ac_ext <<EOF
4100 #line 4101 "configure" 4143 #line 4144 "configure"
4101 #include "confdefs.h" 4144 #include "confdefs.h"
4102 #include <X11/Xlib.h> 4145 #include <X11/Xlib.h>
4103 int main() { 4146 int main() {
4104 #if XlibSpecificationRelease < 5 4147 #if XlibSpecificationRelease < 5
4105 fail; 4148 fail;
4106 #endif 4149 #endif
4107 4150
4108 ; return 0; } 4151 ; return 0; }
4109 EOF 4152 EOF
4110 if { (eval echo configure:4111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4153 if { (eval echo configure:4154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4111 rm -rf conftest* 4154 rm -rf conftest*
4112 emacs_cv_x11_version_5=yes 4155 emacs_cv_x11_version_5=yes
4113 else 4156 else
4114 echo "configure: failed program was:" >&5 4157 echo "configure: failed program was:" >&5
4115 cat conftest.$ac_ext >&5 4158 cat conftest.$ac_ext >&5
4133 fi 4176 fi
4134 4177
4135 if test x"${USE_X_TOOLKIT}" = xmaybe; then 4178 if test x"${USE_X_TOOLKIT}" = xmaybe; then
4136 if test x"${HAVE_X11R5}" = xyes; then 4179 if test x"${HAVE_X11R5}" = xyes; then
4137 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 4180 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
4138 echo "configure:4139: checking X11 version 5 with Xaw" >&5 4181 echo "configure:4182: checking X11 version 5 with Xaw" >&5
4139 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 4182 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6 4183 echo $ac_n "(cached) $ac_c" 1>&6
4141 else 4184 else
4142 cat > conftest.$ac_ext <<EOF 4185 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure" 4186 #line 4187 "configure"
4144 #include "confdefs.h" 4187 #include "confdefs.h"
4145 4188
4146 #include <X11/Intrinsic.h> 4189 #include <X11/Intrinsic.h>
4147 #include <X11/Xaw/Simple.h> 4190 #include <X11/Xaw/Simple.h>
4148 int main() { 4191 int main() {
4149 4192
4150 ; return 0; } 4193 ; return 0; }
4151 EOF 4194 EOF
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4153 rm -rf conftest* 4196 rm -rf conftest*
4154 emacs_cv_x11_version_5_with_xaw=yes 4197 emacs_cv_x11_version_5_with_xaw=yes
4155 else 4198 else
4156 echo "configure: failed program was:" >&5 4199 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5 4200 cat conftest.$ac_ext >&5
4175 4218
4176 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 4219 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
4177 4220
4178 if test "${USE_X_TOOLKIT}" != "none"; then 4221 if test "${USE_X_TOOLKIT}" != "none"; then
4179 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 4222 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
4180 echo "configure:4181: checking X11 toolkit version" >&5 4223 echo "configure:4224: checking X11 toolkit version" >&5
4181 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 4224 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6 4225 echo $ac_n "(cached) $ac_c" 1>&6
4183 else 4226 else
4184 cat > conftest.$ac_ext <<EOF 4227 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure" 4228 #line 4229 "configure"
4186 #include "confdefs.h" 4229 #include "confdefs.h"
4187 #include <X11/Intrinsic.h> 4230 #include <X11/Intrinsic.h>
4188 int main() { 4231 int main() {
4189 #if XtSpecificationRelease < 6 4232 #if XtSpecificationRelease < 6
4190 fail; 4233 fail;
4191 #endif 4234 #endif
4192 4235
4193 ; return 0; } 4236 ; return 0; }
4194 EOF 4237 EOF
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 rm -rf conftest* 4239 rm -rf conftest*
4197 emacs_cv_x11_toolkit_version_6=yes 4240 emacs_cv_x11_toolkit_version_6=yes
4198 else 4241 else
4199 echo "configure: failed program was:" >&5 4242 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5 4243 cat conftest.$ac_ext >&5
4220 LIBS="-lXt -lSM -lICE $LIBS" 4263 LIBS="-lXt -lSM -lICE $LIBS"
4221 else 4264 else
4222 LIBS="-lXt $LIBS" 4265 LIBS="-lXt $LIBS"
4223 fi 4266 fi
4224 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 4267 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
4225 echo "configure:4226: checking for XmuConvertStandardSelection in -lXmu" >&5 4268 echo "configure:4269: checking for XmuConvertStandardSelection in -lXmu" >&5
4226 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 4269 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
4227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4228 echo $ac_n "(cached) $ac_c" 1>&6 4271 echo $ac_n "(cached) $ac_c" 1>&6
4229 else 4272 else
4230 ac_save_LIBS="$LIBS" 4273 ac_save_LIBS="$LIBS"
4231 LIBS="-lXmu $LIBS" 4274 LIBS="-lXmu $LIBS"
4232 cat > conftest.$ac_ext <<EOF 4275 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure" 4276 #line 4277 "configure"
4234 #include "confdefs.h" 4277 #include "confdefs.h"
4235 /* Override any gcc2 internal prototype to avoid an error. */ 4278 /* Override any gcc2 internal prototype to avoid an error. */
4236 /* We use char because int might match the return type of a gcc2 4279 /* We use char because int might match the return type of a gcc2
4237 builtin and then its argument prototype would still apply. */ 4280 builtin and then its argument prototype would still apply. */
4238 char XmuConvertStandardSelection(); 4281 char XmuConvertStandardSelection();
4239 4282
4240 int main() { 4283 int main() {
4241 XmuConvertStandardSelection() 4284 XmuConvertStandardSelection()
4242 ; return 0; } 4285 ; return 0; }
4243 EOF 4286 EOF
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4287 if { (eval echo configure:4288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4245 rm -rf conftest* 4288 rm -rf conftest*
4246 eval "ac_cv_lib_$ac_lib_var=yes" 4289 eval "ac_cv_lib_$ac_lib_var=yes"
4247 else 4290 else
4248 echo "configure: failed program was:" >&5 4291 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5 4292 cat conftest.$ac_ext >&5
4271 LIBS="$OLDLIBS" 4314 LIBS="$OLDLIBS"
4272 fi 4315 fi
4273 4316
4274 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 4317 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
4275 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 4318 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
4276 echo "configure:4277: checking for Motif version 2.1" >&5 4319 echo "configure:4320: checking for Motif version 2.1" >&5
4277 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 4320 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6 4321 echo $ac_n "(cached) $ac_c" 1>&6
4279 else 4322 else
4280 cat > conftest.$ac_ext <<EOF 4323 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure" 4324 #line 4325 "configure"
4282 #include "confdefs.h" 4325 #include "confdefs.h"
4283 #include <Xm/Xm.h> 4326 #include <Xm/Xm.h>
4284 int main() { 4327 int main() {
4285 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 4328 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
4286 int x = 5; 4329 int x = 5;
4287 #else 4330 #else
4288 Motif version prior to 2.1. 4331 Motif version prior to 2.1.
4289 #endif 4332 #endif
4290 ; return 0; } 4333 ; return 0; }
4291 EOF 4334 EOF
4292 if { (eval echo configure:4293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4335 if { (eval echo configure:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4293 rm -rf conftest* 4336 rm -rf conftest*
4294 emacs_cv_motif_version_2_1=yes 4337 emacs_cv_motif_version_2_1=yes
4295 else 4338 else
4296 echo "configure: failed program was:" >&5 4339 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5 4340 cat conftest.$ac_ext >&5
4307 cat >> confdefs.h <<\EOF 4350 cat >> confdefs.h <<\EOF
4308 #define HAVE_MOTIF_2_1 1 4351 #define HAVE_MOTIF_2_1 1
4309 EOF 4352 EOF
4310 4353
4311 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 4354 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
4312 echo "configure:4313: checking for XpCreateContext in -lXp" >&5 4355 echo "configure:4356: checking for XpCreateContext in -lXp" >&5
4313 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 4356 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
4314 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6 4358 echo $ac_n "(cached) $ac_c" 1>&6
4316 else 4359 else
4317 ac_save_LIBS="$LIBS" 4360 ac_save_LIBS="$LIBS"
4318 LIBS="-lXp -lXext $LIBS" 4361 LIBS="-lXp -lXext $LIBS"
4319 cat > conftest.$ac_ext <<EOF 4362 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure" 4363 #line 4364 "configure"
4321 #include "confdefs.h" 4364 #include "confdefs.h"
4322 /* Override any gcc2 internal prototype to avoid an error. */ 4365 /* Override any gcc2 internal prototype to avoid an error. */
4323 /* We use char because int might match the return type of a gcc2 4366 /* We use char because int might match the return type of a gcc2
4324 builtin and then its argument prototype would still apply. */ 4367 builtin and then its argument prototype would still apply. */
4325 char XpCreateContext(); 4368 char XpCreateContext();
4326 4369
4327 int main() { 4370 int main() {
4328 XpCreateContext() 4371 XpCreateContext()
4329 ; return 0; } 4372 ; return 0; }
4330 EOF 4373 EOF
4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4374 if { (eval echo configure:4375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4332 rm -rf conftest* 4375 rm -rf conftest*
4333 eval "ac_cv_lib_$ac_lib_var=yes" 4376 eval "ac_cv_lib_$ac_lib_var=yes"
4334 else 4377 else
4335 echo "configure: failed program was:" >&5 4378 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5 4379 cat conftest.$ac_ext >&5
4363 if test "${USE_X_TOOLKIT}" != "none"; then 4406 if test "${USE_X_TOOLKIT}" != "none"; then
4364 old_c_flags="${CFLAGS}" 4407 old_c_flags="${CFLAGS}"
4365 CFLAGS="${LD_SWITCH_X_SITE}" 4408 CFLAGS="${LD_SWITCH_X_SITE}"
4366 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4409 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4367 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4410 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4368 echo "configure:4369: checking for X11/Xaw3d/Scrollbar.h" >&5 4411 echo "configure:4412: checking for X11/Xaw3d/Scrollbar.h" >&5
4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4412 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6 4413 echo $ac_n "(cached) $ac_c" 1>&6
4371 else 4414 else
4372 cat > conftest.$ac_ext <<EOF 4415 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure" 4416 #line 4417 "configure"
4374 #include "confdefs.h" 4417 #include "confdefs.h"
4375 #include <X11/Xaw3d/Scrollbar.h> 4418 #include <X11/Xaw3d/Scrollbar.h>
4376 EOF 4419 EOF
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4420 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4421 { (eval echo configure:4422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4422 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then 4423 if test -z "$ac_err"; then
4381 rm -rf conftest* 4424 rm -rf conftest*
4382 eval "ac_cv_header_$ac_safe=yes" 4425 eval "ac_cv_header_$ac_safe=yes"
4383 else 4426 else
4390 rm -f conftest* 4433 rm -f conftest*
4391 fi 4434 fi
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4435 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6 4436 echo "$ac_t""yes" 1>&6
4394 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4437 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4395 echo "configure:4396: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4438 echo "configure:4439: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4396 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4439 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4398 echo $ac_n "(cached) $ac_c" 1>&6 4441 echo $ac_n "(cached) $ac_c" 1>&6
4399 else 4442 else
4400 ac_save_LIBS="$LIBS" 4443 ac_save_LIBS="$LIBS"
4401 LIBS="-lXaw3d -lX11 $LIBS" 4444 LIBS="-lXaw3d -lX11 $LIBS"
4402 cat > conftest.$ac_ext <<EOF 4445 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure" 4446 #line 4447 "configure"
4404 #include "confdefs.h" 4447 #include "confdefs.h"
4405 /* Override any gcc2 internal prototype to avoid an error. */ 4448 /* Override any gcc2 internal prototype to avoid an error. */
4406 /* We use char because int might match the return type of a gcc2 4449 /* We use char because int might match the return type of a gcc2
4407 builtin and then its argument prototype would still apply. */ 4450 builtin and then its argument prototype would still apply. */
4408 char XawScrollbarSetThumb(); 4451 char XawScrollbarSetThumb();
4409 4452
4410 int main() { 4453 int main() {
4411 XawScrollbarSetThumb() 4454 XawScrollbarSetThumb()
4412 ; return 0; } 4455 ; return 0; }
4413 EOF 4456 EOF
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4457 if { (eval echo configure:4458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4415 rm -rf conftest* 4458 rm -rf conftest*
4416 eval "ac_cv_lib_$ac_lib_var=yes" 4459 eval "ac_cv_lib_$ac_lib_var=yes"
4417 else 4460 else
4418 echo "configure: failed program was:" >&5 4461 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5 4462 cat conftest.$ac_ext >&5
4481 if test "${with_xpm}" != "no"; then 4524 if test "${with_xpm}" != "no"; then
4482 old_c_flags="${CFLAGS}" 4525 old_c_flags="${CFLAGS}"
4483 CFLAGS="${LD_SWITCH_X_SITE}" 4526 CFLAGS="${LD_SWITCH_X_SITE}"
4484 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4527 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4485 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4528 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4486 echo "configure:4487: checking for X11/xpm.h" >&5 4529 echo "configure:4530: checking for X11/xpm.h" >&5
4487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4488 echo $ac_n "(cached) $ac_c" 1>&6 4531 echo $ac_n "(cached) $ac_c" 1>&6
4489 else 4532 else
4490 cat > conftest.$ac_ext <<EOF 4533 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure" 4534 #line 4535 "configure"
4492 #include "confdefs.h" 4535 #include "confdefs.h"
4493 #include <X11/xpm.h> 4536 #include <X11/xpm.h>
4494 EOF 4537 EOF
4495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4496 { (eval echo configure:4497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4539 { (eval echo configure:4540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4498 if test -z "$ac_err"; then 4541 if test -z "$ac_err"; then
4499 rm -rf conftest* 4542 rm -rf conftest*
4500 eval "ac_cv_header_$ac_safe=yes" 4543 eval "ac_cv_header_$ac_safe=yes"
4501 else 4544 else
4508 rm -f conftest* 4551 rm -f conftest*
4509 fi 4552 fi
4510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4511 echo "$ac_t""yes" 1>&6 4554 echo "$ac_t""yes" 1>&6
4512 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4555 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4513 echo "configure:4514: checking for XpmReadFileToPixmap in -lXpm" >&5 4556 echo "configure:4557: checking for XpmReadFileToPixmap in -lXpm" >&5
4514 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4557 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6 4559 echo $ac_n "(cached) $ac_c" 1>&6
4517 else 4560 else
4518 ac_save_LIBS="$LIBS" 4561 ac_save_LIBS="$LIBS"
4519 LIBS="-lXpm -lX11 $LIBS" 4562 LIBS="-lXpm -lX11 $LIBS"
4520 cat > conftest.$ac_ext <<EOF 4563 cat > conftest.$ac_ext <<EOF
4521 #line 4522 "configure" 4564 #line 4565 "configure"
4522 #include "confdefs.h" 4565 #include "confdefs.h"
4523 /* Override any gcc2 internal prototype to avoid an error. */ 4566 /* Override any gcc2 internal prototype to avoid an error. */
4524 /* We use char because int might match the return type of a gcc2 4567 /* We use char because int might match the return type of a gcc2
4525 builtin and then its argument prototype would still apply. */ 4568 builtin and then its argument prototype would still apply. */
4526 char XpmReadFileToPixmap(); 4569 char XpmReadFileToPixmap();
4527 4570
4528 int main() { 4571 int main() {
4529 XpmReadFileToPixmap() 4572 XpmReadFileToPixmap()
4530 ; return 0; } 4573 ; return 0; }
4531 EOF 4574 EOF
4532 if { (eval echo configure:4533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4575 if { (eval echo configure:4576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4533 rm -rf conftest* 4576 rm -rf conftest*
4534 eval "ac_cv_lib_$ac_lib_var=yes" 4577 eval "ac_cv_lib_$ac_lib_var=yes"
4535 else 4578 else
4536 echo "configure: failed program was:" >&5 4579 echo "configure: failed program was:" >&5
4537 cat conftest.$ac_ext >&5 4580 cat conftest.$ac_ext >&5
4570 if test "${with_jpeg}" != "no"; then 4613 if test "${with_jpeg}" != "no"; then
4571 old_c_flags="${CFLAGS}" 4614 old_c_flags="${CFLAGS}"
4572 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4615 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4573 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` 4616 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'`
4574 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 4617 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6
4575 echo "configure:4576: checking for jerror.h" >&5 4618 echo "configure:4619: checking for jerror.h" >&5
4576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6 4620 echo $ac_n "(cached) $ac_c" 1>&6
4578 else 4621 else
4579 cat > conftest.$ac_ext <<EOF 4622 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure" 4623 #line 4624 "configure"
4581 #include "confdefs.h" 4624 #include "confdefs.h"
4582 #include <jerror.h> 4625 #include <jerror.h>
4583 EOF 4626 EOF
4584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4585 { (eval echo configure:4586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4628 { (eval echo configure:4629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4587 if test -z "$ac_err"; then 4630 if test -z "$ac_err"; then
4588 rm -rf conftest* 4631 rm -rf conftest*
4589 eval "ac_cv_header_$ac_safe=yes" 4632 eval "ac_cv_header_$ac_safe=yes"
4590 else 4633 else
4597 rm -f conftest* 4640 rm -f conftest*
4598 fi 4641 fi
4599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6 4643 echo "$ac_t""yes" 1>&6
4601 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4644 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4602 echo "configure:4603: checking for jpeg_destroy_compress in -ljpeg" >&5 4645 echo "configure:4646: checking for jpeg_destroy_compress in -ljpeg" >&5
4603 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4646 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6 4648 echo $ac_n "(cached) $ac_c" 1>&6
4606 else 4649 else
4607 ac_save_LIBS="$LIBS" 4650 ac_save_LIBS="$LIBS"
4608 LIBS="-ljpeg -lX11 $LIBS" 4651 LIBS="-ljpeg -lX11 $LIBS"
4609 cat > conftest.$ac_ext <<EOF 4652 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure" 4653 #line 4654 "configure"
4611 #include "confdefs.h" 4654 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */ 4655 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2 4656 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */ 4657 builtin and then its argument prototype would still apply. */
4615 char jpeg_destroy_compress(); 4658 char jpeg_destroy_compress();
4616 4659
4617 int main() { 4660 int main() {
4618 jpeg_destroy_compress() 4661 jpeg_destroy_compress()
4619 ; return 0; } 4662 ; return 0; }
4620 EOF 4663 EOF
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622 rm -rf conftest* 4665 rm -rf conftest*
4623 eval "ac_cv_lib_$ac_lib_var=yes" 4666 eval "ac_cv_lib_$ac_lib_var=yes"
4624 else 4667 else
4625 echo "configure: failed program was:" >&5 4668 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5 4669 cat conftest.$ac_ext >&5
4659 if test "${with_png}" != "no"; then 4702 if test "${with_png}" != "no"; then
4660 old_c_flags="${CFLAGS}" 4703 old_c_flags="${CFLAGS}"
4661 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4704 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4662 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4705 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4663 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4706 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4664 echo "configure:4665: checking for png.h" >&5 4707 echo "configure:4708: checking for png.h" >&5
4665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6 4709 echo $ac_n "(cached) $ac_c" 1>&6
4667 else 4710 else
4668 cat > conftest.$ac_ext <<EOF 4711 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure" 4712 #line 4713 "configure"
4670 #include "confdefs.h" 4713 #include "confdefs.h"
4671 #include <png.h> 4714 #include <png.h>
4672 EOF 4715 EOF
4673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4674 { (eval echo configure:4675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4717 { (eval echo configure:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4676 if test -z "$ac_err"; then 4719 if test -z "$ac_err"; then
4677 rm -rf conftest* 4720 rm -rf conftest*
4678 eval "ac_cv_header_$ac_safe=yes" 4721 eval "ac_cv_header_$ac_safe=yes"
4679 else 4722 else
4686 rm -f conftest* 4729 rm -f conftest*
4687 fi 4730 fi
4688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4689 echo "$ac_t""yes" 1>&6 4732 echo "$ac_t""yes" 1>&6
4690 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4733 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4691 echo "configure:4692: checking for png_set_expand in -lpng" >&5 4734 echo "configure:4735: checking for png_set_expand in -lpng" >&5
4692 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4735 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4736 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4694 echo $ac_n "(cached) $ac_c" 1>&6 4737 echo $ac_n "(cached) $ac_c" 1>&6
4695 else 4738 else
4696 ac_save_LIBS="$LIBS" 4739 ac_save_LIBS="$LIBS"
4697 LIBS="-lpng -lX11 -lz -lm $LIBS" 4740 LIBS="-lpng -lX11 -lz -lm $LIBS"
4698 cat > conftest.$ac_ext <<EOF 4741 cat > conftest.$ac_ext <<EOF
4699 #line 4700 "configure" 4742 #line 4743 "configure"
4700 #include "confdefs.h" 4743 #include "confdefs.h"
4701 /* Override any gcc2 internal prototype to avoid an error. */ 4744 /* Override any gcc2 internal prototype to avoid an error. */
4702 /* We use char because int might match the return type of a gcc2 4745 /* We use char because int might match the return type of a gcc2
4703 builtin and then its argument prototype would still apply. */ 4746 builtin and then its argument prototype would still apply. */
4704 char png_set_expand(); 4747 char png_set_expand();
4705 4748
4706 int main() { 4749 int main() {
4707 png_set_expand() 4750 png_set_expand()
4708 ; return 0; } 4751 ; return 0; }
4709 EOF 4752 EOF
4710 if { (eval echo configure:4711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4753 if { (eval echo configure:4754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4711 rm -rf conftest* 4754 rm -rf conftest*
4712 eval "ac_cv_lib_$ac_lib_var=yes" 4755 eval "ac_cv_lib_$ac_lib_var=yes"
4713 else 4756 else
4714 echo "configure: failed program was:" >&5 4757 echo "configure: failed program was:" >&5
4715 cat conftest.$ac_ext >&5 4758 cat conftest.$ac_ext >&5
4748 if test "${with_tiff}" != "no"; then 4791 if test "${with_tiff}" != "no"; then
4749 old_c_flags="${CFLAGS}" 4792 old_c_flags="${CFLAGS}"
4750 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4793 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4751 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4794 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4752 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4795 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4753 echo "configure:4754: checking for tiffio.h" >&5 4796 echo "configure:4797: checking for tiffio.h" >&5
4754 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4797 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4755 echo $ac_n "(cached) $ac_c" 1>&6 4798 echo $ac_n "(cached) $ac_c" 1>&6
4756 else 4799 else
4757 cat > conftest.$ac_ext <<EOF 4800 cat > conftest.$ac_ext <<EOF
4758 #line 4759 "configure" 4801 #line 4802 "configure"
4759 #include "confdefs.h" 4802 #include "confdefs.h"
4760 #include <tiffio.h> 4803 #include <tiffio.h>
4761 EOF 4804 EOF
4762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4763 { (eval echo configure:4764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4806 { (eval echo configure:4807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4765 if test -z "$ac_err"; then 4808 if test -z "$ac_err"; then
4766 rm -rf conftest* 4809 rm -rf conftest*
4767 eval "ac_cv_header_$ac_safe=yes" 4810 eval "ac_cv_header_$ac_safe=yes"
4768 else 4811 else
4778 echo "$ac_t""yes" 1>&6 4821 echo "$ac_t""yes" 1>&6
4779 tifflibs="-lX11 -lz -lm" 4822 tifflibs="-lX11 -lz -lm"
4780 # At least one tiff package requires the jpeg library. 4823 # At least one tiff package requires the jpeg library.
4781 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 4824 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
4782 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4825 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4783 echo "configure:4784: checking for TIFFGetVersion in -ltiff" >&5 4826 echo "configure:4827: checking for TIFFGetVersion in -ltiff" >&5
4784 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4827 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6 4829 echo $ac_n "(cached) $ac_c" 1>&6
4787 else 4830 else
4788 ac_save_LIBS="$LIBS" 4831 ac_save_LIBS="$LIBS"
4789 LIBS="-ltiff $tifflibs $LIBS" 4832 LIBS="-ltiff $tifflibs $LIBS"
4790 cat > conftest.$ac_ext <<EOF 4833 cat > conftest.$ac_ext <<EOF
4791 #line 4792 "configure" 4834 #line 4835 "configure"
4792 #include "confdefs.h" 4835 #include "confdefs.h"
4793 /* Override any gcc2 internal prototype to avoid an error. */ 4836 /* Override any gcc2 internal prototype to avoid an error. */
4794 /* We use char because int might match the return type of a gcc2 4837 /* We use char because int might match the return type of a gcc2
4795 builtin and then its argument prototype would still apply. */ 4838 builtin and then its argument prototype would still apply. */
4796 char TIFFGetVersion(); 4839 char TIFFGetVersion();
4797 4840
4798 int main() { 4841 int main() {
4799 TIFFGetVersion() 4842 TIFFGetVersion()
4800 ; return 0; } 4843 ; return 0; }
4801 EOF 4844 EOF
4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4845 if { (eval echo configure:4846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4803 rm -rf conftest* 4846 rm -rf conftest*
4804 eval "ac_cv_lib_$ac_lib_var=yes" 4847 eval "ac_cv_lib_$ac_lib_var=yes"
4805 else 4848 else
4806 echo "configure: failed program was:" >&5 4849 echo "configure: failed program was:" >&5
4807 cat conftest.$ac_ext >&5 4850 cat conftest.$ac_ext >&5
4840 if test "${with_gif}" != "no"; then 4883 if test "${with_gif}" != "no"; then
4841 old_c_flags="${CFLAGS}" 4884 old_c_flags="${CFLAGS}"
4842 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4885 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4843 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4886 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4844 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4887 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4845 echo "configure:4846: checking for gif_lib.h" >&5 4888 echo "configure:4889: checking for gif_lib.h" >&5
4846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4847 echo $ac_n "(cached) $ac_c" 1>&6 4890 echo $ac_n "(cached) $ac_c" 1>&6
4848 else 4891 else
4849 cat > conftest.$ac_ext <<EOF 4892 cat > conftest.$ac_ext <<EOF
4850 #line 4851 "configure" 4893 #line 4894 "configure"
4851 #include "confdefs.h" 4894 #include "confdefs.h"
4852 #include <gif_lib.h> 4895 #include <gif_lib.h>
4853 EOF 4896 EOF
4854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4855 { (eval echo configure:4856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4898 { (eval echo configure:4899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4857 if test -z "$ac_err"; then 4900 if test -z "$ac_err"; then
4858 rm -rf conftest* 4901 rm -rf conftest*
4859 eval "ac_cv_header_$ac_safe=yes" 4902 eval "ac_cv_header_$ac_safe=yes"
4860 else 4903 else
4867 rm -f conftest* 4910 rm -f conftest*
4868 fi 4911 fi
4869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6 4913 echo "$ac_t""yes" 1>&6
4871 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 4914 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4872 echo "configure:4873: checking for DGifOpen in -lungif" >&5 4915 echo "configure:4916: checking for DGifOpen in -lungif" >&5
4873 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 4916 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4917 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6 4918 echo $ac_n "(cached) $ac_c" 1>&6
4876 else 4919 else
4877 ac_save_LIBS="$LIBS" 4920 ac_save_LIBS="$LIBS"
4878 LIBS="-lungif -lX11 $LIBS" 4921 LIBS="-lungif -lX11 $LIBS"
4879 cat > conftest.$ac_ext <<EOF 4922 cat > conftest.$ac_ext <<EOF
4880 #line 4881 "configure" 4923 #line 4924 "configure"
4881 #include "confdefs.h" 4924 #include "confdefs.h"
4882 /* Override any gcc2 internal prototype to avoid an error. */ 4925 /* Override any gcc2 internal prototype to avoid an error. */
4883 /* We use char because int might match the return type of a gcc2 4926 /* We use char because int might match the return type of a gcc2
4884 builtin and then its argument prototype would still apply. */ 4927 builtin and then its argument prototype would still apply. */
4885 char DGifOpen(); 4928 char DGifOpen();
4886 4929
4887 int main() { 4930 int main() {
4888 DGifOpen() 4931 DGifOpen()
4889 ; return 0; } 4932 ; return 0; }
4890 EOF 4933 EOF
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4892 rm -rf conftest* 4935 rm -rf conftest*
4893 eval "ac_cv_lib_$ac_lib_var=yes" 4936 eval "ac_cv_lib_$ac_lib_var=yes"
4894 else 4937 else
4895 echo "configure: failed program was:" >&5 4938 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5 4939 cat conftest.$ac_ext >&5
4923 fi 4966 fi
4924 fi 4967 fi
4925 4968
4926 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4969 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4927 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4970 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4928 echo "configure:4929: checking whether netdb declares h_errno" >&5 4971 echo "configure:4972: checking whether netdb declares h_errno" >&5
4929 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4972 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6 4973 echo $ac_n "(cached) $ac_c" 1>&6
4931 else 4974 else
4932 cat > conftest.$ac_ext <<EOF 4975 cat > conftest.$ac_ext <<EOF
4933 #line 4934 "configure" 4976 #line 4977 "configure"
4934 #include "confdefs.h" 4977 #include "confdefs.h"
4935 #include <netdb.h> 4978 #include <netdb.h>
4936 int main() { 4979 int main() {
4937 return h_errno; 4980 return h_errno;
4938 ; return 0; } 4981 ; return 0; }
4939 EOF 4982 EOF
4940 if { (eval echo configure:4941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4941 rm -rf conftest* 4984 rm -rf conftest*
4942 emacs_cv_netdb_declares_h_errno=yes 4985 emacs_cv_netdb_declares_h_errno=yes
4943 else 4986 else
4944 echo "configure: failed program was:" >&5 4987 echo "configure: failed program was:" >&5
4945 cat conftest.$ac_ext >&5 4988 cat conftest.$ac_ext >&5
4958 fi 5001 fi
4959 5002
4960 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5003 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4961 # for constant arguments. Useless! 5004 # for constant arguments. Useless!
4962 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 5005 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4963 echo "configure:4964: checking for working alloca.h" >&5 5006 echo "configure:5007: checking for working alloca.h" >&5
4964 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 5007 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6 5008 echo $ac_n "(cached) $ac_c" 1>&6
4966 else 5009 else
4967 cat > conftest.$ac_ext <<EOF 5010 cat > conftest.$ac_ext <<EOF
4968 #line 4969 "configure" 5011 #line 5012 "configure"
4969 #include "confdefs.h" 5012 #include "confdefs.h"
4970 #include <alloca.h> 5013 #include <alloca.h>
4971 int main() { 5014 int main() {
4972 char *p = alloca(2 * sizeof(int)); 5015 void *p = alloca(2 * sizeof(int));
4973 ; return 0; } 5016 ; return 0; }
4974 EOF 5017 EOF
4975 if { (eval echo configure:4976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5018 if { (eval echo configure:5019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4976 rm -rf conftest* 5019 rm -rf conftest*
4977 ac_cv_header_alloca_h=yes 5020 ac_cv_header_alloca_h=yes
4978 else 5021 else
4979 echo "configure: failed program was:" >&5 5022 echo "configure: failed program was:" >&5
4980 cat conftest.$ac_ext >&5 5023 cat conftest.$ac_ext >&5
4991 EOF 5034 EOF
4992 5035
4993 fi 5036 fi
4994 5037
4995 echo $ac_n "checking for alloca""... $ac_c" 1>&6 5038 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4996 echo "configure:4997: checking for alloca" >&5 5039 echo "configure:5040: checking for alloca" >&5
4997 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 5040 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6 5041 echo $ac_n "(cached) $ac_c" 1>&6
4999 else 5042 else
5000 cat > conftest.$ac_ext <<EOF 5043 cat > conftest.$ac_ext <<EOF
5001 #line 5002 "configure" 5044 #line 5045 "configure"
5002 #include "confdefs.h" 5045 #include "confdefs.h"
5003 5046
5004 #ifdef __GNUC__ 5047 #ifdef __GNUC__
5005 # define alloca __builtin_alloca 5048 # define alloca __builtin_alloca
5006 #else 5049 #else
5024 5067
5025 int main() { 5068 int main() {
5026 char *p = (char *) alloca(1); 5069 char *p = (char *) alloca(1);
5027 ; return 0; } 5070 ; return 0; }
5028 EOF 5071 EOF
5029 if { (eval echo configure:5030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5072 if { (eval echo configure:5073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5030 rm -rf conftest* 5073 rm -rf conftest*
5031 ac_cv_func_alloca_works=yes 5074 ac_cv_func_alloca_works=yes
5032 else 5075 else
5033 echo "configure: failed program was:" >&5 5076 echo "configure: failed program was:" >&5
5034 cat conftest.$ac_ext >&5 5077 cat conftest.$ac_ext >&5
5056 #define C_ALLOCA 1 5099 #define C_ALLOCA 1
5057 EOF 5100 EOF
5058 5101
5059 5102
5060 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5103 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5061 echo "configure:5062: checking whether alloca needs Cray hooks" >&5 5104 echo "configure:5105: checking whether alloca needs Cray hooks" >&5
5062 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5105 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5063 echo $ac_n "(cached) $ac_c" 1>&6 5106 echo $ac_n "(cached) $ac_c" 1>&6
5064 else 5107 else
5065 cat > conftest.$ac_ext <<EOF 5108 cat > conftest.$ac_ext <<EOF
5066 #line 5067 "configure" 5109 #line 5110 "configure"
5067 #include "confdefs.h" 5110 #include "confdefs.h"
5068 #if defined(CRAY) && ! defined(CRAY2) 5111 #if defined(CRAY) && ! defined(CRAY2)
5069 webecray 5112 webecray
5070 #else 5113 #else
5071 wenotbecray 5114 wenotbecray
5086 5129
5087 echo "$ac_t""$ac_cv_os_cray" 1>&6 5130 echo "$ac_t""$ac_cv_os_cray" 1>&6
5088 if test $ac_cv_os_cray = yes; then 5131 if test $ac_cv_os_cray = yes; then
5089 for ac_func in _getb67 GETB67 getb67; do 5132 for ac_func in _getb67 GETB67 getb67; do
5090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5091 echo "configure:5092: checking for $ac_func" >&5 5134 echo "configure:5135: checking for $ac_func" >&5
5092 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5093 echo $ac_n "(cached) $ac_c" 1>&6 5136 echo $ac_n "(cached) $ac_c" 1>&6
5094 else 5137 else
5095 cat > conftest.$ac_ext <<EOF 5138 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure" 5139 #line 5140 "configure"
5097 #include "confdefs.h" 5140 #include "confdefs.h"
5098 /* System header to define __stub macros and hopefully few prototypes, 5141 /* System header to define __stub macros and hopefully few prototypes,
5099 which can conflict with char $ac_func(); below. */ 5142 which can conflict with char $ac_func(); below. */
5100 #include <assert.h> 5143 #include <assert.h>
5101 /* Override any gcc2 internal prototype to avoid an error. */ 5144 /* Override any gcc2 internal prototype to avoid an error. */
5114 $ac_func(); 5157 $ac_func();
5115 #endif 5158 #endif
5116 5159
5117 ; return 0; } 5160 ; return 0; }
5118 EOF 5161 EOF
5119 if { (eval echo configure:5120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5120 rm -rf conftest* 5163 rm -rf conftest*
5121 eval "ac_cv_func_$ac_func=yes" 5164 eval "ac_cv_func_$ac_func=yes"
5122 else 5165 else
5123 echo "configure: failed program was:" >&5 5166 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5 5167 cat conftest.$ac_ext >&5
5141 5184
5142 done 5185 done
5143 fi 5186 fi
5144 5187
5145 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5188 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5146 echo "configure:5147: checking stack direction for C alloca" >&5 5189 echo "configure:5190: checking stack direction for C alloca" >&5
5147 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5190 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5148 echo $ac_n "(cached) $ac_c" 1>&6 5191 echo $ac_n "(cached) $ac_c" 1>&6
5149 else 5192 else
5150 if test "$cross_compiling" = yes; then 5193 if test "$cross_compiling" = yes; then
5151 ac_cv_c_stack_direction=0 5194 ac_cv_c_stack_direction=0
5152 else 5195 else
5153 cat > conftest.$ac_ext <<EOF 5196 cat > conftest.$ac_ext <<EOF
5154 #line 5155 "configure" 5197 #line 5198 "configure"
5155 #include "confdefs.h" 5198 #include "confdefs.h"
5156 find_stack_direction () 5199 find_stack_direction ()
5157 { 5200 {
5158 static char *addr = 0; 5201 static char *addr = 0;
5159 auto char dummy; 5202 auto char dummy;
5168 main () 5211 main ()
5169 { 5212 {
5170 exit (find_stack_direction() < 0); 5213 exit (find_stack_direction() < 0);
5171 } 5214 }
5172 EOF 5215 EOF
5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5216 if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5174 then 5217 then
5175 ac_cv_c_stack_direction=1 5218 ac_cv_c_stack_direction=1
5176 else 5219 else
5177 echo "configure: failed program was:" >&5 5220 echo "configure: failed program was:" >&5
5178 cat conftest.$ac_ext >&5 5221 cat conftest.$ac_ext >&5
5193 5236
5194 5237
5195 # fmod, logb, and frexp are found in -lm on most systems. 5238 # fmod, logb, and frexp are found in -lm on most systems.
5196 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 5239 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
5197 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 5240 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
5198 echo "configure:5199: checking for sqrt in -lm" >&5 5241 echo "configure:5242: checking for sqrt in -lm" >&5
5199 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 5242 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
5200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6 5244 echo $ac_n "(cached) $ac_c" 1>&6
5202 else 5245 else
5203 ac_save_LIBS="$LIBS" 5246 ac_save_LIBS="$LIBS"
5204 LIBS="-lm $LIBS" 5247 LIBS="-lm $LIBS"
5205 cat > conftest.$ac_ext <<EOF 5248 cat > conftest.$ac_ext <<EOF
5206 #line 5207 "configure" 5249 #line 5250 "configure"
5207 #include "confdefs.h" 5250 #include "confdefs.h"
5208 /* Override any gcc2 internal prototype to avoid an error. */ 5251 /* Override any gcc2 internal prototype to avoid an error. */
5209 /* We use char because int might match the return type of a gcc2 5252 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */ 5253 builtin and then its argument prototype would still apply. */
5211 char sqrt(); 5254 char sqrt();
5212 5255
5213 int main() { 5256 int main() {
5214 sqrt() 5257 sqrt()
5215 ; return 0; } 5258 ; return 0; }
5216 EOF 5259 EOF
5217 if { (eval echo configure:5218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5260 if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5218 rm -rf conftest* 5261 rm -rf conftest*
5219 eval "ac_cv_lib_$ac_lib_var=yes" 5262 eval "ac_cv_lib_$ac_lib_var=yes"
5220 else 5263 else
5221 echo "configure: failed program was:" >&5 5264 echo "configure: failed program was:" >&5
5222 cat conftest.$ac_ext >&5 5265 cat conftest.$ac_ext >&5
5242 fi 5285 fi
5243 5286
5244 5287
5245 # Check for mail-locking functions in a "mail" library 5288 # Check for mail-locking functions in a "mail" library
5246 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 5289 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
5247 echo "configure:5248: checking for maillock in -lmail" >&5 5290 echo "configure:5291: checking for maillock in -lmail" >&5
5248 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 5291 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
5249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6 5293 echo $ac_n "(cached) $ac_c" 1>&6
5251 else 5294 else
5252 ac_save_LIBS="$LIBS" 5295 ac_save_LIBS="$LIBS"
5253 LIBS="-lmail $LIBS" 5296 LIBS="-lmail $LIBS"
5254 cat > conftest.$ac_ext <<EOF 5297 cat > conftest.$ac_ext <<EOF
5255 #line 5256 "configure" 5298 #line 5299 "configure"
5256 #include "confdefs.h" 5299 #include "confdefs.h"
5257 /* Override any gcc2 internal prototype to avoid an error. */ 5300 /* Override any gcc2 internal prototype to avoid an error. */
5258 /* We use char because int might match the return type of a gcc2 5301 /* We use char because int might match the return type of a gcc2
5259 builtin and then its argument prototype would still apply. */ 5302 builtin and then its argument prototype would still apply. */
5260 char maillock(); 5303 char maillock();
5261 5304
5262 int main() { 5305 int main() {
5263 maillock() 5306 maillock()
5264 ; return 0; } 5307 ; return 0; }
5265 EOF 5308 EOF
5266 if { (eval echo configure:5267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5309 if { (eval echo configure:5310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5267 rm -rf conftest* 5310 rm -rf conftest*
5268 eval "ac_cv_lib_$ac_lib_var=yes" 5311 eval "ac_cv_lib_$ac_lib_var=yes"
5269 else 5312 else
5270 echo "configure: failed program was:" >&5 5313 echo "configure: failed program was:" >&5
5271 cat conftest.$ac_ext >&5 5314 cat conftest.$ac_ext >&5
5289 else 5332 else
5290 echo "$ac_t""no" 1>&6 5333 echo "$ac_t""no" 1>&6
5291 fi 5334 fi
5292 5335
5293 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5336 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
5294 echo "configure:5295: checking for maillock in -llockfile" >&5 5337 echo "configure:5338: checking for maillock in -llockfile" >&5
5295 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5338 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6 5340 echo $ac_n "(cached) $ac_c" 1>&6
5298 else 5341 else
5299 ac_save_LIBS="$LIBS" 5342 ac_save_LIBS="$LIBS"
5300 LIBS="-llockfile $LIBS" 5343 LIBS="-llockfile $LIBS"
5301 cat > conftest.$ac_ext <<EOF 5344 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure" 5345 #line 5346 "configure"
5303 #include "confdefs.h" 5346 #include "confdefs.h"
5304 /* Override any gcc2 internal prototype to avoid an error. */ 5347 /* Override any gcc2 internal prototype to avoid an error. */
5305 /* We use char because int might match the return type of a gcc2 5348 /* We use char because int might match the return type of a gcc2
5306 builtin and then its argument prototype would still apply. */ 5349 builtin and then its argument prototype would still apply. */
5307 char maillock(); 5350 char maillock();
5308 5351
5309 int main() { 5352 int main() {
5310 maillock() 5353 maillock()
5311 ; return 0; } 5354 ; return 0; }
5312 EOF 5355 EOF
5313 if { (eval echo configure:5314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5356 if { (eval echo configure:5357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5314 rm -rf conftest* 5357 rm -rf conftest*
5315 eval "ac_cv_lib_$ac_lib_var=yes" 5358 eval "ac_cv_lib_$ac_lib_var=yes"
5316 else 5359 else
5317 echo "configure: failed program was:" >&5 5360 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5 5361 cat conftest.$ac_ext >&5
5342 # (no liblockfile.a installed), ensure that we don't need to. 5385 # (no liblockfile.a installed), ensure that we don't need to.
5343 if test "$ac_cv_lib_lockfile_maillock" = no; then 5386 if test "$ac_cv_lib_lockfile_maillock" = no; then
5344 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5387 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5345 set dummy liblockfile.so; ac_word=$2 5388 set dummy liblockfile.so; ac_word=$2
5346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5347 echo "configure:5348: checking for $ac_word" >&5 5390 echo "configure:5391: checking for $ac_word" >&5
5348 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5391 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6 5392 echo $ac_n "(cached) $ac_c" 1>&6
5350 else 5393 else
5351 if test -n "$liblockfile"; then 5394 if test -n "$liblockfile"; then
5352 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5395 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5383 else : 5426 else :
5384 fi 5427 fi
5385 for ac_func in touchlock 5428 for ac_func in touchlock
5386 do 5429 do
5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5430 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5388 echo "configure:5389: checking for $ac_func" >&5 5431 echo "configure:5432: checking for $ac_func" >&5
5389 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5432 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6 5433 echo $ac_n "(cached) $ac_c" 1>&6
5391 else 5434 else
5392 cat > conftest.$ac_ext <<EOF 5435 cat > conftest.$ac_ext <<EOF
5393 #line 5394 "configure" 5436 #line 5437 "configure"
5394 #include "confdefs.h" 5437 #include "confdefs.h"
5395 /* System header to define __stub macros and hopefully few prototypes, 5438 /* System header to define __stub macros and hopefully few prototypes,
5396 which can conflict with char $ac_func(); below. */ 5439 which can conflict with char $ac_func(); below. */
5397 #include <assert.h> 5440 #include <assert.h>
5398 /* Override any gcc2 internal prototype to avoid an error. */ 5441 /* Override any gcc2 internal prototype to avoid an error. */
5411 $ac_func(); 5454 $ac_func();
5412 #endif 5455 #endif
5413 5456
5414 ; return 0; } 5457 ; return 0; }
5415 EOF 5458 EOF
5416 if { (eval echo configure:5417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417 rm -rf conftest* 5460 rm -rf conftest*
5418 eval "ac_cv_func_$ac_func=yes" 5461 eval "ac_cv_func_$ac_func=yes"
5419 else 5462 else
5420 echo "configure: failed program was:" >&5 5463 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5 5464 cat conftest.$ac_ext >&5
5439 5482
5440 for ac_hdr in maillock.h 5483 for ac_hdr in maillock.h
5441 do 5484 do
5442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5444 echo "configure:5445: checking for $ac_hdr" >&5 5487 echo "configure:5488: checking for $ac_hdr" >&5
5445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5446 echo $ac_n "(cached) $ac_c" 1>&6 5489 echo $ac_n "(cached) $ac_c" 1>&6
5447 else 5490 else
5448 cat > conftest.$ac_ext <<EOF 5491 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure" 5492 #line 5493 "configure"
5450 #include "confdefs.h" 5493 #include "confdefs.h"
5451 #include <$ac_hdr> 5494 #include <$ac_hdr>
5452 EOF 5495 EOF
5453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5454 { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5497 { (eval echo configure:5498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5456 if test -z "$ac_err"; then 5499 if test -z "$ac_err"; then
5457 rm -rf conftest* 5500 rm -rf conftest*
5458 eval "ac_cv_header_$ac_safe=yes" 5501 eval "ac_cv_header_$ac_safe=yes"
5459 else 5502 else
5484 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5527 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5485 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 5528 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
5486 __fpending mblen mbrlen strsignal setitimer ualarm 5529 __fpending mblen mbrlen strsignal setitimer ualarm
5487 do 5530 do
5488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5531 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5489 echo "configure:5490: checking for $ac_func" >&5 5532 echo "configure:5533: checking for $ac_func" >&5
5490 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5533 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5491 echo $ac_n "(cached) $ac_c" 1>&6 5534 echo $ac_n "(cached) $ac_c" 1>&6
5492 else 5535 else
5493 cat > conftest.$ac_ext <<EOF 5536 cat > conftest.$ac_ext <<EOF
5494 #line 5495 "configure" 5537 #line 5538 "configure"
5495 #include "confdefs.h" 5538 #include "confdefs.h"
5496 /* System header to define __stub macros and hopefully few prototypes, 5539 /* System header to define __stub macros and hopefully few prototypes,
5497 which can conflict with char $ac_func(); below. */ 5540 which can conflict with char $ac_func(); below. */
5498 #include <assert.h> 5541 #include <assert.h>
5499 /* Override any gcc2 internal prototype to avoid an error. */ 5542 /* Override any gcc2 internal prototype to avoid an error. */
5512 $ac_func(); 5555 $ac_func();
5513 #endif 5556 #endif
5514 5557
5515 ; return 0; } 5558 ; return 0; }
5516 EOF 5559 EOF
5517 if { (eval echo configure:5518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5560 if { (eval echo configure:5561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5518 rm -rf conftest* 5561 rm -rf conftest*
5519 eval "ac_cv_func_$ac_func=yes" 5562 eval "ac_cv_func_$ac_func=yes"
5520 else 5563 else
5521 echo "configure: failed program was:" >&5 5564 echo "configure: failed program was:" >&5
5522 cat conftest.$ac_ext >&5 5565 cat conftest.$ac_ext >&5
5541 5584
5542 for ac_hdr in sys/time.h unistd.h 5585 for ac_hdr in sys/time.h unistd.h
5543 do 5586 do
5544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5546 echo "configure:5547: checking for $ac_hdr" >&5 5589 echo "configure:5590: checking for $ac_hdr" >&5
5547 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5590 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5548 echo $ac_n "(cached) $ac_c" 1>&6 5591 echo $ac_n "(cached) $ac_c" 1>&6
5549 else 5592 else
5550 cat > conftest.$ac_ext <<EOF 5593 cat > conftest.$ac_ext <<EOF
5551 #line 5552 "configure" 5594 #line 5595 "configure"
5552 #include "confdefs.h" 5595 #include "confdefs.h"
5553 #include <$ac_hdr> 5596 #include <$ac_hdr>
5554 EOF 5597 EOF
5555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5556 { (eval echo configure:5557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5599 { (eval echo configure:5600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5558 if test -z "$ac_err"; then 5601 if test -z "$ac_err"; then
5559 rm -rf conftest* 5602 rm -rf conftest*
5560 eval "ac_cv_header_$ac_safe=yes" 5603 eval "ac_cv_header_$ac_safe=yes"
5561 else 5604 else
5580 done 5623 done
5581 5624
5582 for ac_func in alarm 5625 for ac_func in alarm
5583 do 5626 do
5584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5585 echo "configure:5586: checking for $ac_func" >&5 5628 echo "configure:5629: checking for $ac_func" >&5
5586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6 5630 echo $ac_n "(cached) $ac_c" 1>&6
5588 else 5631 else
5589 cat > conftest.$ac_ext <<EOF 5632 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure" 5633 #line 5634 "configure"
5591 #include "confdefs.h" 5634 #include "confdefs.h"
5592 /* System header to define __stub macros and hopefully few prototypes, 5635 /* System header to define __stub macros and hopefully few prototypes,
5593 which can conflict with char $ac_func(); below. */ 5636 which can conflict with char $ac_func(); below. */
5594 #include <assert.h> 5637 #include <assert.h>
5595 /* Override any gcc2 internal prototype to avoid an error. */ 5638 /* Override any gcc2 internal prototype to avoid an error. */
5608 $ac_func(); 5651 $ac_func();
5609 #endif 5652 #endif
5610 5653
5611 ; return 0; } 5654 ; return 0; }
5612 EOF 5655 EOF
5613 if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5656 if { (eval echo configure:5657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5614 rm -rf conftest* 5657 rm -rf conftest*
5615 eval "ac_cv_func_$ac_func=yes" 5658 eval "ac_cv_func_$ac_func=yes"
5616 else 5659 else
5617 echo "configure: failed program was:" >&5 5660 echo "configure: failed program was:" >&5
5618 cat conftest.$ac_ext >&5 5661 cat conftest.$ac_ext >&5
5633 echo "$ac_t""no" 1>&6 5676 echo "$ac_t""no" 1>&6
5634 fi 5677 fi
5635 done 5678 done
5636 5679
5637 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 5680 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
5638 echo "configure:5639: checking for working mktime" >&5 5681 echo "configure:5682: checking for working mktime" >&5
5639 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 5682 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6 5683 echo $ac_n "(cached) $ac_c" 1>&6
5641 else 5684 else
5642 if test "$cross_compiling" = yes; then 5685 if test "$cross_compiling" = yes; then
5643 ac_cv_func_working_mktime=no 5686 ac_cv_func_working_mktime=no
5644 else 5687 else
5645 cat > conftest.$ac_ext <<EOF 5688 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure" 5689 #line 5690 "configure"
5647 #include "confdefs.h" 5690 #include "confdefs.h"
5648 /* Test program from Paul Eggert (eggert@twinsun.com) 5691 /* Test program from Paul Eggert (eggert@twinsun.com)
5649 and Tony Leneis (tony@plaza.ds.adp.com). */ 5692 and Tony Leneis (tony@plaza.ds.adp.com). */
5650 #if TIME_WITH_SYS_TIME 5693 #if TIME_WITH_SYS_TIME
5651 # include <sys/time.h> 5694 # include <sys/time.h>
5790 irix_6_4_bug (); 5833 irix_6_4_bug ();
5791 spring_forward_gap (); 5834 spring_forward_gap ();
5792 exit (0); 5835 exit (0);
5793 } 5836 }
5794 EOF 5837 EOF
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5796 then 5839 then
5797 ac_cv_func_working_mktime=yes 5840 ac_cv_func_working_mktime=yes
5798 else 5841 else
5799 echo "configure: failed program was:" >&5 5842 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5 5843 cat conftest.$ac_ext >&5
5822 5865
5823 # Some systems with -lutil have (and need) -lkvm as well, some do not. 5866 # Some systems with -lutil have (and need) -lkvm as well, some do not.
5824 # On Solaris, -lkvm requires nlist from -lelf, so check that first 5867 # On Solaris, -lkvm requires nlist from -lelf, so check that first
5825 # to get the right answer into the cache. 5868 # to get the right answer into the cache.
5826 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 5869 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
5827 echo "configure:5828: checking for elf_begin in -lelf" >&5 5870 echo "configure:5871: checking for elf_begin in -lelf" >&5
5828 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 5871 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
5829 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5830 echo $ac_n "(cached) $ac_c" 1>&6 5873 echo $ac_n "(cached) $ac_c" 1>&6
5831 else 5874 else
5832 ac_save_LIBS="$LIBS" 5875 ac_save_LIBS="$LIBS"
5833 LIBS="-lelf $LIBS" 5876 LIBS="-lelf $LIBS"
5834 cat > conftest.$ac_ext <<EOF 5877 cat > conftest.$ac_ext <<EOF
5835 #line 5836 "configure" 5878 #line 5879 "configure"
5836 #include "confdefs.h" 5879 #include "confdefs.h"
5837 /* Override any gcc2 internal prototype to avoid an error. */ 5880 /* Override any gcc2 internal prototype to avoid an error. */
5838 /* We use char because int might match the return type of a gcc2 5881 /* We use char because int might match the return type of a gcc2
5839 builtin and then its argument prototype would still apply. */ 5882 builtin and then its argument prototype would still apply. */
5840 char elf_begin(); 5883 char elf_begin();
5841 5884
5842 int main() { 5885 int main() {
5843 elf_begin() 5886 elf_begin()
5844 ; return 0; } 5887 ; return 0; }
5845 EOF 5888 EOF
5846 if { (eval echo configure:5847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5889 if { (eval echo configure:5890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5847 rm -rf conftest* 5890 rm -rf conftest*
5848 eval "ac_cv_lib_$ac_lib_var=yes" 5891 eval "ac_cv_lib_$ac_lib_var=yes"
5849 else 5892 else
5850 echo "configure: failed program was:" >&5 5893 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5 5894 cat conftest.$ac_ext >&5
5862 else 5905 else
5863 echo "$ac_t""no" 1>&6 5906 echo "$ac_t""no" 1>&6
5864 fi 5907 fi
5865 5908
5866 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 5909 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
5867 echo "configure:5868: checking for kvm_open in -lkvm" >&5 5910 echo "configure:5911: checking for kvm_open in -lkvm" >&5
5868 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 5911 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
5869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6 5913 echo $ac_n "(cached) $ac_c" 1>&6
5871 else 5914 else
5872 ac_save_LIBS="$LIBS" 5915 ac_save_LIBS="$LIBS"
5873 LIBS="-lkvm $LIBS" 5916 LIBS="-lkvm $LIBS"
5874 cat > conftest.$ac_ext <<EOF 5917 cat > conftest.$ac_ext <<EOF
5875 #line 5876 "configure" 5918 #line 5919 "configure"
5876 #include "confdefs.h" 5919 #include "confdefs.h"
5877 /* Override any gcc2 internal prototype to avoid an error. */ 5920 /* Override any gcc2 internal prototype to avoid an error. */
5878 /* We use char because int might match the return type of a gcc2 5921 /* We use char because int might match the return type of a gcc2
5879 builtin and then its argument prototype would still apply. */ 5922 builtin and then its argument prototype would still apply. */
5880 char kvm_open(); 5923 char kvm_open();
5881 5924
5882 int main() { 5925 int main() {
5883 kvm_open() 5926 kvm_open()
5884 ; return 0; } 5927 ; return 0; }
5885 EOF 5928 EOF
5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5929 if { (eval echo configure:5930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5887 rm -rf conftest* 5930 rm -rf conftest*
5888 eval "ac_cv_lib_$ac_lib_var=yes" 5931 eval "ac_cv_lib_$ac_lib_var=yes"
5889 else 5932 else
5890 echo "configure: failed program was:" >&5 5933 echo "configure: failed program was:" >&5
5891 cat conftest.$ac_ext >&5 5934 cat conftest.$ac_ext >&5
5903 echo "$ac_t""no" 1>&6 5946 echo "$ac_t""no" 1>&6
5904 fi 5947 fi
5905 5948
5906 # Check for the 4.4BSD definition of getloadavg. 5949 # Check for the 4.4BSD definition of getloadavg.
5907 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 5950 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
5908 echo "configure:5909: checking for getloadavg in -lutil" >&5 5951 echo "configure:5952: checking for getloadavg in -lutil" >&5
5909 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 5952 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
5910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5911 echo $ac_n "(cached) $ac_c" 1>&6 5954 echo $ac_n "(cached) $ac_c" 1>&6
5912 else 5955 else
5913 ac_save_LIBS="$LIBS" 5956 ac_save_LIBS="$LIBS"
5914 LIBS="-lutil $LIBS" 5957 LIBS="-lutil $LIBS"
5915 cat > conftest.$ac_ext <<EOF 5958 cat > conftest.$ac_ext <<EOF
5916 #line 5917 "configure" 5959 #line 5960 "configure"
5917 #include "confdefs.h" 5960 #include "confdefs.h"
5918 /* Override any gcc2 internal prototype to avoid an error. */ 5961 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2 5962 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */ 5963 builtin and then its argument prototype would still apply. */
5921 char getloadavg(); 5964 char getloadavg();
5922 5965
5923 int main() { 5966 int main() {
5924 getloadavg() 5967 getloadavg()
5925 ; return 0; } 5968 ; return 0; }
5926 EOF 5969 EOF
5927 if { (eval echo configure:5928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5970 if { (eval echo configure:5971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5928 rm -rf conftest* 5971 rm -rf conftest*
5929 eval "ac_cv_lib_$ac_lib_var=yes" 5972 eval "ac_cv_lib_$ac_lib_var=yes"
5930 else 5973 else
5931 echo "configure: failed program was:" >&5 5974 echo "configure: failed program was:" >&5
5932 cat conftest.$ac_ext >&5 5975 cat conftest.$ac_ext >&5
5948 if test $ac_have_func = no; then 5991 if test $ac_have_func = no; then
5949 # There is a commonly available library for RS/6000 AIX. 5992 # There is a commonly available library for RS/6000 AIX.
5950 # Since it is not a standard part of AIX, it might be installed locally. 5993 # Since it is not a standard part of AIX, it might be installed locally.
5951 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 5994 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
5952 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 5995 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
5953 echo "configure:5954: checking for getloadavg in -lgetloadavg" >&5 5996 echo "configure:5997: checking for getloadavg in -lgetloadavg" >&5
5954 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 5997 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
5955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5956 echo $ac_n "(cached) $ac_c" 1>&6 5999 echo $ac_n "(cached) $ac_c" 1>&6
5957 else 6000 else
5958 ac_save_LIBS="$LIBS" 6001 ac_save_LIBS="$LIBS"
5959 LIBS="-lgetloadavg $LIBS" 6002 LIBS="-lgetloadavg $LIBS"
5960 cat > conftest.$ac_ext <<EOF 6003 cat > conftest.$ac_ext <<EOF
5961 #line 5962 "configure" 6004 #line 6005 "configure"
5962 #include "confdefs.h" 6005 #include "confdefs.h"
5963 /* Override any gcc2 internal prototype to avoid an error. */ 6006 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2 6007 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */ 6008 builtin and then its argument prototype would still apply. */
5966 char getloadavg(); 6009 char getloadavg();
5967 6010
5968 int main() { 6011 int main() {
5969 getloadavg() 6012 getloadavg()
5970 ; return 0; } 6013 ; return 0; }
5971 EOF 6014 EOF
5972 if { (eval echo configure:5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6015 if { (eval echo configure:6016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5973 rm -rf conftest* 6016 rm -rf conftest*
5974 eval "ac_cv_lib_$ac_lib_var=yes" 6017 eval "ac_cv_lib_$ac_lib_var=yes"
5975 else 6018 else
5976 echo "configure: failed program was:" >&5 6019 echo "configure: failed program was:" >&5
5977 cat conftest.$ac_ext >&5 6020 cat conftest.$ac_ext >&5
5994 6037
5995 # Make sure it is really in the library, if we think we found it. 6038 # Make sure it is really in the library, if we think we found it.
5996 for ac_func in getloadavg 6039 for ac_func in getloadavg
5997 do 6040 do
5998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5999 echo "configure:6000: checking for $ac_func" >&5 6042 echo "configure:6043: checking for $ac_func" >&5
6000 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6001 echo $ac_n "(cached) $ac_c" 1>&6 6044 echo $ac_n "(cached) $ac_c" 1>&6
6002 else 6045 else
6003 cat > conftest.$ac_ext <<EOF 6046 cat > conftest.$ac_ext <<EOF
6004 #line 6005 "configure" 6047 #line 6048 "configure"
6005 #include "confdefs.h" 6048 #include "confdefs.h"
6006 /* System header to define __stub macros and hopefully few prototypes, 6049 /* System header to define __stub macros and hopefully few prototypes,
6007 which can conflict with char $ac_func(); below. */ 6050 which can conflict with char $ac_func(); below. */
6008 #include <assert.h> 6051 #include <assert.h>
6009 /* Override any gcc2 internal prototype to avoid an error. */ 6052 /* Override any gcc2 internal prototype to avoid an error. */
6022 $ac_func(); 6065 $ac_func();
6023 #endif 6066 #endif
6024 6067
6025 ; return 0; } 6068 ; return 0; }
6026 EOF 6069 EOF
6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6070 if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6028 rm -rf conftest* 6071 rm -rf conftest*
6029 eval "ac_cv_func_$ac_func=yes" 6072 eval "ac_cv_func_$ac_func=yes"
6030 else 6073 else
6031 echo "configure: failed program was:" >&5 6074 echo "configure: failed program was:" >&5
6032 cat conftest.$ac_ext >&5 6075 cat conftest.$ac_ext >&5
6060 else 6103 else
6061 # Figure out what our getloadavg.c needs. 6104 # Figure out what our getloadavg.c needs.
6062 ac_have_func=no 6105 ac_have_func=no
6063 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 6106 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6064 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 6107 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6065 echo "configure:6066: checking for sys/dg_sys_info.h" >&5 6108 echo "configure:6109: checking for sys/dg_sys_info.h" >&5
6066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6067 echo $ac_n "(cached) $ac_c" 1>&6 6110 echo $ac_n "(cached) $ac_c" 1>&6
6068 else 6111 else
6069 cat > conftest.$ac_ext <<EOF 6112 cat > conftest.$ac_ext <<EOF
6070 #line 6071 "configure" 6113 #line 6114 "configure"
6071 #include "confdefs.h" 6114 #include "confdefs.h"
6072 #include <sys/dg_sys_info.h> 6115 #include <sys/dg_sys_info.h>
6073 EOF 6116 EOF
6074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6075 { (eval echo configure:6076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6118 { (eval echo configure:6119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6077 if test -z "$ac_err"; then 6120 if test -z "$ac_err"; then
6078 rm -rf conftest* 6121 rm -rf conftest*
6079 eval "ac_cv_header_$ac_safe=yes" 6122 eval "ac_cv_header_$ac_safe=yes"
6080 else 6123 else
6091 ac_have_func=yes; cat >> confdefs.h <<\EOF 6134 ac_have_func=yes; cat >> confdefs.h <<\EOF
6092 #define DGUX 1 6135 #define DGUX 1
6093 EOF 6136 EOF
6094 6137
6095 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 6138 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6096 echo "configure:6097: checking for dg_sys_info in -ldgc" >&5 6139 echo "configure:6140: checking for dg_sys_info in -ldgc" >&5
6097 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 6140 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6098 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6 6142 echo $ac_n "(cached) $ac_c" 1>&6
6100 else 6143 else
6101 ac_save_LIBS="$LIBS" 6144 ac_save_LIBS="$LIBS"
6102 LIBS="-ldgc $LIBS" 6145 LIBS="-ldgc $LIBS"
6103 cat > conftest.$ac_ext <<EOF 6146 cat > conftest.$ac_ext <<EOF
6104 #line 6105 "configure" 6147 #line 6148 "configure"
6105 #include "confdefs.h" 6148 #include "confdefs.h"
6106 /* Override any gcc2 internal prototype to avoid an error. */ 6149 /* Override any gcc2 internal prototype to avoid an error. */
6107 /* We use char because int might match the return type of a gcc2 6150 /* We use char because int might match the return type of a gcc2
6108 builtin and then its argument prototype would still apply. */ 6151 builtin and then its argument prototype would still apply. */
6109 char dg_sys_info(); 6152 char dg_sys_info();
6110 6153
6111 int main() { 6154 int main() {
6112 dg_sys_info() 6155 dg_sys_info()
6113 ; return 0; } 6156 ; return 0; }
6114 EOF 6157 EOF
6115 if { (eval echo configure:6116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6116 rm -rf conftest* 6159 rm -rf conftest*
6117 eval "ac_cv_lib_$ac_lib_var=yes" 6160 eval "ac_cv_lib_$ac_lib_var=yes"
6118 else 6161 else
6119 echo "configure: failed program was:" >&5 6162 echo "configure: failed program was:" >&5
6120 cat conftest.$ac_ext >&5 6163 cat conftest.$ac_ext >&5
6155 fi 6198 fi
6156 6199
6157 if test $ac_have_func = no; then 6200 if test $ac_have_func = no; then
6158 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 6201 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6159 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 6202 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6160 echo "configure:6161: checking for inq_stats/cpustats.h" >&5 6203 echo "configure:6204: checking for inq_stats/cpustats.h" >&5
6161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6162 echo $ac_n "(cached) $ac_c" 1>&6 6205 echo $ac_n "(cached) $ac_c" 1>&6
6163 else 6206 else
6164 cat > conftest.$ac_ext <<EOF 6207 cat > conftest.$ac_ext <<EOF
6165 #line 6166 "configure" 6208 #line 6209 "configure"
6166 #include "confdefs.h" 6209 #include "confdefs.h"
6167 #include <inq_stats/cpustats.h> 6210 #include <inq_stats/cpustats.h>
6168 EOF 6211 EOF
6169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6170 { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6172 if test -z "$ac_err"; then 6215 if test -z "$ac_err"; then
6173 rm -rf conftest* 6216 rm -rf conftest*
6174 eval "ac_cv_header_$ac_safe=yes" 6217 eval "ac_cv_header_$ac_safe=yes"
6175 else 6218 else
6198 fi 6241 fi
6199 6242
6200 if test $ac_have_func = no; then 6243 if test $ac_have_func = no; then
6201 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 6244 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6202 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 6245 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6203 echo "configure:6204: checking for sys/cpustats.h" >&5 6246 echo "configure:6247: checking for sys/cpustats.h" >&5
6204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6 6248 echo $ac_n "(cached) $ac_c" 1>&6
6206 else 6249 else
6207 cat > conftest.$ac_ext <<EOF 6250 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure" 6251 #line 6252 "configure"
6209 #include "confdefs.h" 6252 #include "confdefs.h"
6210 #include <sys/cpustats.h> 6253 #include <sys/cpustats.h>
6211 EOF 6254 EOF
6212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6213 { (eval echo configure:6214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6256 { (eval echo configure:6257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6215 if test -z "$ac_err"; then 6258 if test -z "$ac_err"; then
6216 rm -rf conftest* 6259 rm -rf conftest*
6217 eval "ac_cv_header_$ac_safe=yes" 6260 eval "ac_cv_header_$ac_safe=yes"
6218 else 6261 else
6239 if test $ac_have_func = no; then 6282 if test $ac_have_func = no; then
6240 for ac_hdr in mach/mach.h 6283 for ac_hdr in mach/mach.h
6241 do 6284 do
6242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6285 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6286 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6244 echo "configure:6245: checking for $ac_hdr" >&5 6287 echo "configure:6288: checking for $ac_hdr" >&5
6245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6246 echo $ac_n "(cached) $ac_c" 1>&6 6289 echo $ac_n "(cached) $ac_c" 1>&6
6247 else 6290 else
6248 cat > conftest.$ac_ext <<EOF 6291 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure" 6292 #line 6293 "configure"
6250 #include "confdefs.h" 6293 #include "confdefs.h"
6251 #include <$ac_hdr> 6294 #include <$ac_hdr>
6252 EOF 6295 EOF
6253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6254 { (eval echo configure:6255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6297 { (eval echo configure:6298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6256 if test -z "$ac_err"; then 6299 if test -z "$ac_err"; then
6257 rm -rf conftest* 6300 rm -rf conftest*
6258 eval "ac_cv_header_$ac_safe=yes" 6301 eval "ac_cv_header_$ac_safe=yes"
6259 else 6302 else
6279 6322
6280 fi 6323 fi
6281 6324
6282 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 6325 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6283 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 6326 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6284 echo "configure:6285: checking for nlist.h" >&5 6327 echo "configure:6328: checking for nlist.h" >&5
6285 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6286 echo $ac_n "(cached) $ac_c" 1>&6 6329 echo $ac_n "(cached) $ac_c" 1>&6
6287 else 6330 else
6288 cat > conftest.$ac_ext <<EOF 6331 cat > conftest.$ac_ext <<EOF
6289 #line 6290 "configure" 6332 #line 6333 "configure"
6290 #include "confdefs.h" 6333 #include "confdefs.h"
6291 #include <nlist.h> 6334 #include <nlist.h>
6292 EOF 6335 EOF
6293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6294 { (eval echo configure:6295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6337 { (eval echo configure:6338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6296 if test -z "$ac_err"; then 6339 if test -z "$ac_err"; then
6297 rm -rf conftest* 6340 rm -rf conftest*
6298 eval "ac_cv_header_$ac_safe=yes" 6341 eval "ac_cv_header_$ac_safe=yes"
6299 else 6342 else
6310 cat >> confdefs.h <<\EOF 6353 cat >> confdefs.h <<\EOF
6311 #define NLIST_STRUCT 1 6354 #define NLIST_STRUCT 1
6312 EOF 6355 EOF
6313 6356
6314 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 6357 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
6315 echo "configure:6316: checking for n_un in struct nlist" >&5 6358 echo "configure:6359: checking for n_un in struct nlist" >&5
6316 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 6359 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
6317 echo $ac_n "(cached) $ac_c" 1>&6 6360 echo $ac_n "(cached) $ac_c" 1>&6
6318 else 6361 else
6319 cat > conftest.$ac_ext <<EOF 6362 cat > conftest.$ac_ext <<EOF
6320 #line 6321 "configure" 6363 #line 6364 "configure"
6321 #include "confdefs.h" 6364 #include "confdefs.h"
6322 #include <nlist.h> 6365 #include <nlist.h>
6323 int main() { 6366 int main() {
6324 struct nlist n; n.n_un.n_name = 0; 6367 struct nlist n; n.n_un.n_name = 0;
6325 ; return 0; } 6368 ; return 0; }
6326 EOF 6369 EOF
6327 if { (eval echo configure:6328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6370 if { (eval echo configure:6371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6328 rm -rf conftest* 6371 rm -rf conftest*
6329 ac_cv_struct_nlist_n_un=yes 6372 ac_cv_struct_nlist_n_un=yes
6330 else 6373 else
6331 echo "configure: failed program was:" >&5 6374 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5 6375 cat conftest.$ac_ext >&5
6349 fi 6392 fi
6350 fi # Do not have getloadavg in system libraries. 6393 fi # Do not have getloadavg in system libraries.
6351 6394
6352 # Some definitions of getloadavg require that the program be installed setgid. 6395 # Some definitions of getloadavg require that the program be installed setgid.
6353 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 6396 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
6354 echo "configure:6355: checking whether getloadavg requires setgid" >&5 6397 echo "configure:6398: checking whether getloadavg requires setgid" >&5
6355 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 6398 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
6356 echo $ac_n "(cached) $ac_c" 1>&6 6399 echo $ac_n "(cached) $ac_c" 1>&6
6357 else 6400 else
6358 cat > conftest.$ac_ext <<EOF 6401 cat > conftest.$ac_ext <<EOF
6359 #line 6360 "configure" 6402 #line 6403 "configure"
6360 #include "confdefs.h" 6403 #include "confdefs.h"
6361 #include "$srcdir/getloadavg.c" 6404 #include "$srcdir/getloadavg.c"
6362 #ifdef LDAV_PRIVILEGED 6405 #ifdef LDAV_PRIVILEGED
6363 Yowza Am I SETGID yet 6406 Yowza Am I SETGID yet
6364 #endif 6407 #endif
6385 NEED_SETGID=false 6428 NEED_SETGID=false
6386 fi 6429 fi
6387 6430
6388 if test $ac_cv_func_getloadavg_setgid = yes; then 6431 if test $ac_cv_func_getloadavg_setgid = yes; then
6389 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 6432 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
6390 echo "configure:6391: checking group of /dev/kmem" >&5 6433 echo "configure:6434: checking group of /dev/kmem" >&5
6391 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 6434 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
6392 echo $ac_n "(cached) $ac_c" 1>&6 6435 echo $ac_n "(cached) $ac_c" 1>&6
6393 else 6436 else
6394 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 6437 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
6395 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 6438 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
6414 fi 6457 fi
6415 6458
6416 if test "$enable_largefile" != no; then 6459 if test "$enable_largefile" != no; then
6417 6460
6418 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 6461 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6
6419 echo "configure:6420: checking for special C compiler options needed for large files" >&5 6462 echo "configure:6463: checking for special C compiler options needed for large files" >&5
6420 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then 6463 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
6421 echo $ac_n "(cached) $ac_c" 1>&6 6464 echo $ac_n "(cached) $ac_c" 1>&6
6422 else 6465 else
6423 ac_cv_sys_largefile_CC=no 6466 ac_cv_sys_largefile_CC=no
6424 if test "$GCC" != yes; then 6467 if test "$GCC" != yes; then
6425 # IRIX 6.2 and later do not support large files by default, 6468 # IRIX 6.2 and later do not support large files by default,
6426 # so use the C compiler's -n32 option if that helps. 6469 # so use the C compiler's -n32 option if that helps.
6427 cat > conftest.$ac_ext <<EOF 6470 cat > conftest.$ac_ext <<EOF
6428 #line 6429 "configure" 6471 #line 6472 "configure"
6429 #include "confdefs.h" 6472 #include "confdefs.h"
6430 #include <sys/types.h> 6473 #include <sys/types.h>
6431 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6474 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6432 6475
6433 int main() { 6476 int main() {
6434 6477
6435 ; return 0; } 6478 ; return 0; }
6436 EOF 6479 EOF
6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6480 if { (eval echo configure:6481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6438 : 6481 :
6439 else 6482 else
6440 echo "configure: failed program was:" >&5 6483 echo "configure: failed program was:" >&5
6441 cat conftest.$ac_ext >&5 6484 cat conftest.$ac_ext >&5
6442 rm -rf conftest* 6485 rm -rf conftest*
6443 ac_save_CC="$CC" 6486 ac_save_CC="$CC"
6444 CC="$CC -n32" 6487 CC="$CC -n32"
6445 cat > conftest.$ac_ext <<EOF 6488 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure" 6489 #line 6490 "configure"
6447 #include "confdefs.h" 6490 #include "confdefs.h"
6448 #include <sys/types.h> 6491 #include <sys/types.h>
6449 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6492 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6450 6493
6451 int main() { 6494 int main() {
6452 6495
6453 ; return 0; } 6496 ; return 0; }
6454 EOF 6497 EOF
6455 if { (eval echo configure:6456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6498 if { (eval echo configure:6499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6456 rm -rf conftest* 6499 rm -rf conftest*
6457 ac_cv_sys_largefile_CC=' -n32' 6500 ac_cv_sys_largefile_CC=' -n32'
6458 else 6501 else
6459 echo "configure: failed program was:" >&5 6502 echo "configure: failed program was:" >&5
6460 cat conftest.$ac_ext >&5 6503 cat conftest.$ac_ext >&5
6470 if test "$ac_cv_sys_largefile_CC" != no; then 6513 if test "$ac_cv_sys_largefile_CC" != no; then
6471 CC="$CC$ac_cv_sys_largefile_CC" 6514 CC="$CC$ac_cv_sys_largefile_CC"
6472 fi 6515 fi
6473 6516
6474 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 6517 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
6475 echo "configure:6476: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6518 echo "configure:6519: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6476 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then 6519 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
6477 echo $ac_n "(cached) $ac_c" 1>&6 6520 echo $ac_n "(cached) $ac_c" 1>&6
6478 else 6521 else
6479 ac_cv_sys_file_offset_bits=no 6522 ac_cv_sys_file_offset_bits=no
6480 cat > conftest.$ac_ext <<EOF 6523 cat > conftest.$ac_ext <<EOF
6481 #line 6482 "configure" 6524 #line 6525 "configure"
6482 #include "confdefs.h" 6525 #include "confdefs.h"
6483 #include <sys/types.h> 6526 #include <sys/types.h>
6484 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6527 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6485 6528
6486 6529
6487 6530
6488 int main() { 6531 int main() {
6489 6532
6490 ; return 0; } 6533 ; return 0; }
6491 EOF 6534 EOF
6492 if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6535 if { (eval echo configure:6536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6493 : 6536 :
6494 else 6537 else
6495 echo "configure: failed program was:" >&5 6538 echo "configure: failed program was:" >&5
6496 cat conftest.$ac_ext >&5 6539 cat conftest.$ac_ext >&5
6497 rm -rf conftest* 6540 rm -rf conftest*
6498 cat > conftest.$ac_ext <<EOF 6541 cat > conftest.$ac_ext <<EOF
6499 #line 6500 "configure" 6542 #line 6543 "configure"
6500 #include "confdefs.h" 6543 #include "confdefs.h"
6501 #define _FILE_OFFSET_BITS 64 6544 #define _FILE_OFFSET_BITS 64
6502 #include <sys/types.h> 6545 #include <sys/types.h>
6503 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6546 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6504 6547
6506 6549
6507 int main() { 6550 int main() {
6508 6551
6509 ; return 0; } 6552 ; return 0; }
6510 EOF 6553 EOF
6511 if { (eval echo configure:6512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6554 if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6512 rm -rf conftest* 6555 rm -rf conftest*
6513 ac_cv_sys_file_offset_bits=64 6556 ac_cv_sys_file_offset_bits=64
6514 else 6557 else
6515 echo "configure: failed program was:" >&5 6558 echo "configure: failed program was:" >&5
6516 cat conftest.$ac_ext >&5 6559 cat conftest.$ac_ext >&5
6526 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6569 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6527 EOF 6570 EOF
6528 6571
6529 fi 6572 fi
6530 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 6573 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6
6531 echo "configure:6532: checking for _LARGEFILE_SOURCE value needed for large files" >&5 6574 echo "configure:6575: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6532 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then 6575 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
6533 echo $ac_n "(cached) $ac_c" 1>&6 6576 echo $ac_n "(cached) $ac_c" 1>&6
6534 else 6577 else
6535 ac_cv_sys_largefile_source=no 6578 ac_cv_sys_largefile_source=no
6536 cat > conftest.$ac_ext <<EOF 6579 cat > conftest.$ac_ext <<EOF
6537 #line 6538 "configure" 6580 #line 6581 "configure"
6538 #include "confdefs.h" 6581 #include "confdefs.h"
6539 #include <sys/types.h> 6582 #include <sys/types.h>
6540 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6583 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6541 6584
6542 #include <stdio.h> 6585 #include <stdio.h>
6543 6586
6544 int main() { 6587 int main() {
6545 return !ftello; 6588 return !ftello;
6546 ; return 0; } 6589 ; return 0; }
6547 EOF 6590 EOF
6548 if { (eval echo configure:6549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6591 if { (eval echo configure:6592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6549 : 6592 :
6550 else 6593 else
6551 echo "configure: failed program was:" >&5 6594 echo "configure: failed program was:" >&5
6552 cat conftest.$ac_ext >&5 6595 cat conftest.$ac_ext >&5
6553 rm -rf conftest* 6596 rm -rf conftest*
6554 cat > conftest.$ac_ext <<EOF 6597 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure" 6598 #line 6599 "configure"
6556 #include "confdefs.h" 6599 #include "confdefs.h"
6557 #define _LARGEFILE_SOURCE 1 6600 #define _LARGEFILE_SOURCE 1
6558 #include <sys/types.h> 6601 #include <sys/types.h>
6559 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6602 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6560 6603
6562 6605
6563 int main() { 6606 int main() {
6564 return !ftello; 6607 return !ftello;
6565 ; return 0; } 6608 ; return 0; }
6566 EOF 6609 EOF
6567 if { (eval echo configure:6568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6610 if { (eval echo configure:6611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6568 rm -rf conftest* 6611 rm -rf conftest*
6569 ac_cv_sys_largefile_source=1 6612 ac_cv_sys_largefile_source=1
6570 else 6613 else
6571 echo "configure: failed program was:" >&5 6614 echo "configure: failed program was:" >&5
6572 cat conftest.$ac_ext >&5 6615 cat conftest.$ac_ext >&5
6582 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 6625 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
6583 EOF 6626 EOF
6584 6627
6585 fi 6628 fi
6586 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 6629 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
6587 echo "configure:6588: checking for _LARGE_FILES value needed for large files" >&5 6630 echo "configure:6631: checking for _LARGE_FILES value needed for large files" >&5
6588 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then 6631 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
6589 echo $ac_n "(cached) $ac_c" 1>&6 6632 echo $ac_n "(cached) $ac_c" 1>&6
6590 else 6633 else
6591 ac_cv_sys_large_files=no 6634 ac_cv_sys_large_files=no
6592 cat > conftest.$ac_ext <<EOF 6635 cat > conftest.$ac_ext <<EOF
6593 #line 6594 "configure" 6636 #line 6637 "configure"
6594 #include "confdefs.h" 6637 #include "confdefs.h"
6595 #include <sys/types.h> 6638 #include <sys/types.h>
6596 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6639 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6597 6640
6598 6641
6599 6642
6600 int main() { 6643 int main() {
6601 6644
6602 ; return 0; } 6645 ; return 0; }
6603 EOF 6646 EOF
6604 if { (eval echo configure:6605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6647 if { (eval echo configure:6648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6605 : 6648 :
6606 else 6649 else
6607 echo "configure: failed program was:" >&5 6650 echo "configure: failed program was:" >&5
6608 cat conftest.$ac_ext >&5 6651 cat conftest.$ac_ext >&5
6609 rm -rf conftest* 6652 rm -rf conftest*
6610 cat > conftest.$ac_ext <<EOF 6653 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure" 6654 #line 6655 "configure"
6612 #include "confdefs.h" 6655 #include "confdefs.h"
6613 #define _LARGE_FILES 1 6656 #define _LARGE_FILES 1
6614 #include <sys/types.h> 6657 #include <sys/types.h>
6615 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6658 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6616 6659
6618 6661
6619 int main() { 6662 int main() {
6620 6663
6621 ; return 0; } 6664 ; return 0; }
6622 EOF 6665 EOF
6623 if { (eval echo configure:6624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6666 if { (eval echo configure:6667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6624 rm -rf conftest* 6667 rm -rf conftest*
6625 ac_cv_sys_large_files=1 6668 ac_cv_sys_large_files=1
6626 else 6669 else
6627 echo "configure: failed program was:" >&5 6670 echo "configure: failed program was:" >&5
6628 cat conftest.$ac_ext >&5 6671 cat conftest.$ac_ext >&5
6638 #define _LARGE_FILES $ac_cv_sys_large_files 6681 #define _LARGE_FILES $ac_cv_sys_large_files
6639 EOF 6682 EOF
6640 6683
6641 fi 6684 fi
6642 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 6685 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6
6643 echo "configure:6644: checking for _XOPEN_SOURCE value needed for large files" >&5 6686 echo "configure:6687: checking for _XOPEN_SOURCE value needed for large files" >&5
6644 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then 6687 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6 6688 echo $ac_n "(cached) $ac_c" 1>&6
6646 else 6689 else
6647 ac_cv_sys_xopen_source=no 6690 ac_cv_sys_xopen_source=no
6648 cat > conftest.$ac_ext <<EOF 6691 cat > conftest.$ac_ext <<EOF
6649 #line 6650 "configure" 6692 #line 6693 "configure"
6650 #include "confdefs.h" 6693 #include "confdefs.h"
6651 #include <sys/types.h> 6694 #include <sys/types.h>
6652 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6695 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6653 6696
6654 #include <stdio.h> 6697 #include <stdio.h>
6655 6698
6656 int main() { 6699 int main() {
6657 return !ftello; 6700 return !ftello;
6658 ; return 0; } 6701 ; return 0; }
6659 EOF 6702 EOF
6660 if { (eval echo configure:6661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6703 if { (eval echo configure:6704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6661 : 6704 :
6662 else 6705 else
6663 echo "configure: failed program was:" >&5 6706 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5 6707 cat conftest.$ac_ext >&5
6665 rm -rf conftest* 6708 rm -rf conftest*
6666 cat > conftest.$ac_ext <<EOF 6709 cat > conftest.$ac_ext <<EOF
6667 #line 6668 "configure" 6710 #line 6711 "configure"
6668 #include "confdefs.h" 6711 #include "confdefs.h"
6669 #define _XOPEN_SOURCE 500 6712 #define _XOPEN_SOURCE 500
6670 #include <sys/types.h> 6713 #include <sys/types.h>
6671 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; 6714 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
6672 6715
6674 6717
6675 int main() { 6718 int main() {
6676 return !ftello; 6719 return !ftello;
6677 ; return 0; } 6720 ; return 0; }
6678 EOF 6721 EOF
6679 if { (eval echo configure:6680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6722 if { (eval echo configure:6723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6680 rm -rf conftest* 6723 rm -rf conftest*
6681 ac_cv_sys_xopen_source=500 6724 ac_cv_sys_xopen_source=500
6682 else 6725 else
6683 echo "configure: failed program was:" >&5 6726 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5 6727 cat conftest.$ac_ext >&5
6698 fi 6741 fi
6699 6742
6700 for ac_func in ftello 6743 for ac_func in ftello
6701 do 6744 do
6702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6703 echo "configure:6704: checking for $ac_func" >&5 6746 echo "configure:6747: checking for $ac_func" >&5
6704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6705 echo $ac_n "(cached) $ac_c" 1>&6 6748 echo $ac_n "(cached) $ac_c" 1>&6
6706 else 6749 else
6707 cat > conftest.$ac_ext <<EOF 6750 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure" 6751 #line 6752 "configure"
6709 #include "confdefs.h" 6752 #include "confdefs.h"
6710 /* System header to define __stub macros and hopefully few prototypes, 6753 /* System header to define __stub macros and hopefully few prototypes,
6711 which can conflict with char $ac_func(); below. */ 6754 which can conflict with char $ac_func(); below. */
6712 #include <assert.h> 6755 #include <assert.h>
6713 /* Override any gcc2 internal prototype to avoid an error. */ 6756 /* Override any gcc2 internal prototype to avoid an error. */
6726 $ac_func(); 6769 $ac_func();
6727 #endif 6770 #endif
6728 6771
6729 ; return 0; } 6772 ; return 0; }
6730 EOF 6773 EOF
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6732 rm -rf conftest* 6775 rm -rf conftest*
6733 eval "ac_cv_func_$ac_func=yes" 6776 eval "ac_cv_func_$ac_func=yes"
6734 else 6777 else
6735 echo "configure: failed program was:" >&5 6778 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5 6779 cat conftest.$ac_ext >&5
6756 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE 6799 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE
6757 # if we need it. 6800 # if we need it.
6758 for ac_func in grantpt 6801 for ac_func in grantpt
6759 do 6802 do
6760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6761 echo "configure:6762: checking for $ac_func" >&5 6804 echo "configure:6805: checking for $ac_func" >&5
6762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6763 echo $ac_n "(cached) $ac_c" 1>&6 6806 echo $ac_n "(cached) $ac_c" 1>&6
6764 else 6807 else
6765 cat > conftest.$ac_ext <<EOF 6808 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure" 6809 #line 6810 "configure"
6767 #include "confdefs.h" 6810 #include "confdefs.h"
6768 /* System header to define __stub macros and hopefully few prototypes, 6811 /* System header to define __stub macros and hopefully few prototypes,
6769 which can conflict with char $ac_func(); below. */ 6812 which can conflict with char $ac_func(); below. */
6770 #include <assert.h> 6813 #include <assert.h>
6771 /* Override any gcc2 internal prototype to avoid an error. */ 6814 /* Override any gcc2 internal prototype to avoid an error. */
6784 $ac_func(); 6827 $ac_func();
6785 #endif 6828 #endif
6786 6829
6787 ; return 0; } 6830 ; return 0; }
6788 EOF 6831 EOF
6789 if { (eval echo configure:6790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6832 if { (eval echo configure:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6790 rm -rf conftest* 6833 rm -rf conftest*
6791 eval "ac_cv_func_$ac_func=yes" 6834 eval "ac_cv_func_$ac_func=yes"
6792 else 6835 else
6793 echo "configure: failed program was:" >&5 6836 echo "configure: failed program was:" >&5
6794 cat conftest.$ac_ext >&5 6837 cat conftest.$ac_ext >&5
6813 6856
6814 # PTY-related GNU extensions. 6857 # PTY-related GNU extensions.
6815 for ac_func in getpt 6858 for ac_func in getpt
6816 do 6859 do
6817 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6818 echo "configure:6819: checking for $ac_func" >&5 6861 echo "configure:6862: checking for $ac_func" >&5
6819 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6820 echo $ac_n "(cached) $ac_c" 1>&6 6863 echo $ac_n "(cached) $ac_c" 1>&6
6821 else 6864 else
6822 cat > conftest.$ac_ext <<EOF 6865 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure" 6866 #line 6867 "configure"
6824 #include "confdefs.h" 6867 #include "confdefs.h"
6825 /* System header to define __stub macros and hopefully few prototypes, 6868 /* System header to define __stub macros and hopefully few prototypes,
6826 which can conflict with char $ac_func(); below. */ 6869 which can conflict with char $ac_func(); below. */
6827 #include <assert.h> 6870 #include <assert.h>
6828 /* Override any gcc2 internal prototype to avoid an error. */ 6871 /* Override any gcc2 internal prototype to avoid an error. */
6841 $ac_func(); 6884 $ac_func();
6842 #endif 6885 #endif
6843 6886
6844 ; return 0; } 6887 ; return 0; }
6845 EOF 6888 EOF
6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6889 if { (eval echo configure:6890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6847 rm -rf conftest* 6890 rm -rf conftest*
6848 eval "ac_cv_func_$ac_func=yes" 6891 eval "ac_cv_func_$ac_func=yes"
6849 else 6892 else
6850 echo "configure: failed program was:" >&5 6893 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5 6894 cat conftest.$ac_ext >&5
6871 # Check this now, so that we will NOT find the above functions in ncurses. 6914 # Check this now, so that we will NOT find the above functions in ncurses.
6872 # That is because we have not set up to link ncurses in lib-src. 6915 # That is because we have not set up to link ncurses in lib-src.
6873 # It's better to believe a function is not available 6916 # It's better to believe a function is not available
6874 # than to expect to find it in ncurses. 6917 # than to expect to find it in ncurses.
6875 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 6918 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
6876 echo "configure:6877: checking for tparm in -lncurses" >&5 6919 echo "configure:6920: checking for tparm in -lncurses" >&5
6877 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 6920 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
6878 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6 6922 echo $ac_n "(cached) $ac_c" 1>&6
6880 else 6923 else
6881 ac_save_LIBS="$LIBS" 6924 ac_save_LIBS="$LIBS"
6882 LIBS="-lncurses $LIBS" 6925 LIBS="-lncurses $LIBS"
6883 cat > conftest.$ac_ext <<EOF 6926 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure" 6927 #line 6928 "configure"
6885 #include "confdefs.h" 6928 #include "confdefs.h"
6886 /* Override any gcc2 internal prototype to avoid an error. */ 6929 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2 6930 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */ 6931 builtin and then its argument prototype would still apply. */
6889 char tparm(); 6932 char tparm();
6890 6933
6891 int main() { 6934 int main() {
6892 tparm() 6935 tparm()
6893 ; return 0; } 6936 ; return 0; }
6894 EOF 6937 EOF
6895 if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6896 rm -rf conftest* 6939 rm -rf conftest*
6897 eval "ac_cv_lib_$ac_lib_var=yes" 6940 eval "ac_cv_lib_$ac_lib_var=yes"
6898 else 6941 else
6899 echo "configure: failed program was:" >&5 6942 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5 6943 cat conftest.$ac_ext >&5
6921 6964
6922 6965
6923 # These tell us which Kerberos-related libraries to use. 6966 # These tell us which Kerberos-related libraries to use.
6924 if test "${with_kerberos+set}" = set; then 6967 if test "${with_kerberos+set}" = set; then
6925 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 6968 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
6926 echo "configure:6927: checking for com_err in -lcom_err" >&5 6969 echo "configure:6970: checking for com_err in -lcom_err" >&5
6927 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 6970 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
6928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6 6972 echo $ac_n "(cached) $ac_c" 1>&6
6930 else 6973 else
6931 ac_save_LIBS="$LIBS" 6974 ac_save_LIBS="$LIBS"
6932 LIBS="-lcom_err $LIBS" 6975 LIBS="-lcom_err $LIBS"
6933 cat > conftest.$ac_ext <<EOF 6976 cat > conftest.$ac_ext <<EOF
6934 #line 6935 "configure" 6977 #line 6978 "configure"
6935 #include "confdefs.h" 6978 #include "confdefs.h"
6936 /* Override any gcc2 internal prototype to avoid an error. */ 6979 /* Override any gcc2 internal prototype to avoid an error. */
6937 /* We use char because int might match the return type of a gcc2 6980 /* We use char because int might match the return type of a gcc2
6938 builtin and then its argument prototype would still apply. */ 6981 builtin and then its argument prototype would still apply. */
6939 char com_err(); 6982 char com_err();
6940 6983
6941 int main() { 6984 int main() {
6942 com_err() 6985 com_err()
6943 ; return 0; } 6986 ; return 0; }
6944 EOF 6987 EOF
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6988 if { (eval echo configure:6989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6946 rm -rf conftest* 6989 rm -rf conftest*
6947 eval "ac_cv_lib_$ac_lib_var=yes" 6990 eval "ac_cv_lib_$ac_lib_var=yes"
6948 else 6991 else
6949 echo "configure: failed program was:" >&5 6992 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5 6993 cat conftest.$ac_ext >&5
6968 else 7011 else
6969 echo "$ac_t""no" 1>&6 7012 echo "$ac_t""no" 1>&6
6970 fi 7013 fi
6971 7014
6972 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 7015 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
6973 echo "configure:6974: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 7016 echo "configure:7017: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
6974 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7017 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
6975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6976 echo $ac_n "(cached) $ac_c" 1>&6 7019 echo $ac_n "(cached) $ac_c" 1>&6
6977 else 7020 else
6978 ac_save_LIBS="$LIBS" 7021 ac_save_LIBS="$LIBS"
6979 LIBS="-lk5crypto $LIBS" 7022 LIBS="-lk5crypto $LIBS"
6980 cat > conftest.$ac_ext <<EOF 7023 cat > conftest.$ac_ext <<EOF
6981 #line 6982 "configure" 7024 #line 7025 "configure"
6982 #include "confdefs.h" 7025 #include "confdefs.h"
6983 /* Override any gcc2 internal prototype to avoid an error. */ 7026 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2 7027 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */ 7028 builtin and then its argument prototype would still apply. */
6986 char mit_des_cbc_encrypt(); 7029 char mit_des_cbc_encrypt();
6987 7030
6988 int main() { 7031 int main() {
6989 mit_des_cbc_encrypt() 7032 mit_des_cbc_encrypt()
6990 ; return 0; } 7033 ; return 0; }
6991 EOF 7034 EOF
6992 if { (eval echo configure:6993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6993 rm -rf conftest* 7036 rm -rf conftest*
6994 eval "ac_cv_lib_$ac_lib_var=yes" 7037 eval "ac_cv_lib_$ac_lib_var=yes"
6995 else 7038 else
6996 echo "configure: failed program was:" >&5 7039 echo "configure: failed program was:" >&5
6997 cat conftest.$ac_ext >&5 7040 cat conftest.$ac_ext >&5
7015 else 7058 else
7016 echo "$ac_t""no" 1>&6 7059 echo "$ac_t""no" 1>&6
7017 fi 7060 fi
7018 7061
7019 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 7062 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7020 echo "configure:7021: checking for mit_des_cbc_encrypt in -lcrypto" >&5 7063 echo "configure:7064: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7021 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7064 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6 7066 echo $ac_n "(cached) $ac_c" 1>&6
7024 else 7067 else
7025 ac_save_LIBS="$LIBS" 7068 ac_save_LIBS="$LIBS"
7026 LIBS="-lcrypto $LIBS" 7069 LIBS="-lcrypto $LIBS"
7027 cat > conftest.$ac_ext <<EOF 7070 cat > conftest.$ac_ext <<EOF
7028 #line 7029 "configure" 7071 #line 7072 "configure"
7029 #include "confdefs.h" 7072 #include "confdefs.h"
7030 /* Override any gcc2 internal prototype to avoid an error. */ 7073 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2 7074 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */ 7075 builtin and then its argument prototype would still apply. */
7033 char mit_des_cbc_encrypt(); 7076 char mit_des_cbc_encrypt();
7034 7077
7035 int main() { 7078 int main() {
7036 mit_des_cbc_encrypt() 7079 mit_des_cbc_encrypt()
7037 ; return 0; } 7080 ; return 0; }
7038 EOF 7081 EOF
7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7082 if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7040 rm -rf conftest* 7083 rm -rf conftest*
7041 eval "ac_cv_lib_$ac_lib_var=yes" 7084 eval "ac_cv_lib_$ac_lib_var=yes"
7042 else 7085 else
7043 echo "configure: failed program was:" >&5 7086 echo "configure: failed program was:" >&5
7044 cat conftest.$ac_ext >&5 7087 cat conftest.$ac_ext >&5
7062 else 7105 else
7063 echo "$ac_t""no" 1>&6 7106 echo "$ac_t""no" 1>&6
7064 fi 7107 fi
7065 7108
7066 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 7109 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7067 echo "configure:7068: checking for krb5_init_context in -lkrb5" >&5 7110 echo "configure:7111: checking for krb5_init_context in -lkrb5" >&5
7068 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 7111 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7070 echo $ac_n "(cached) $ac_c" 1>&6 7113 echo $ac_n "(cached) $ac_c" 1>&6
7071 else 7114 else
7072 ac_save_LIBS="$LIBS" 7115 ac_save_LIBS="$LIBS"
7073 LIBS="-lkrb5 $LIBS" 7116 LIBS="-lkrb5 $LIBS"
7074 cat > conftest.$ac_ext <<EOF 7117 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure" 7118 #line 7119 "configure"
7076 #include "confdefs.h" 7119 #include "confdefs.h"
7077 /* Override any gcc2 internal prototype to avoid an error. */ 7120 /* Override any gcc2 internal prototype to avoid an error. */
7078 /* We use char because int might match the return type of a gcc2 7121 /* We use char because int might match the return type of a gcc2
7079 builtin and then its argument prototype would still apply. */ 7122 builtin and then its argument prototype would still apply. */
7080 char krb5_init_context(); 7123 char krb5_init_context();
7081 7124
7082 int main() { 7125 int main() {
7083 krb5_init_context() 7126 krb5_init_context()
7084 ; return 0; } 7127 ; return 0; }
7085 EOF 7128 EOF
7086 if { (eval echo configure:7087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7129 if { (eval echo configure:7130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7087 rm -rf conftest* 7130 rm -rf conftest*
7088 eval "ac_cv_lib_$ac_lib_var=yes" 7131 eval "ac_cv_lib_$ac_lib_var=yes"
7089 else 7132 else
7090 echo "configure: failed program was:" >&5 7133 echo "configure: failed program was:" >&5
7091 cat conftest.$ac_ext >&5 7134 cat conftest.$ac_ext >&5
7110 echo "$ac_t""no" 1>&6 7153 echo "$ac_t""no" 1>&6
7111 fi 7154 fi
7112 7155
7113 if test "${with_kerberos5+set}" != set; then 7156 if test "${with_kerberos5+set}" != set; then
7114 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 7157 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7115 echo "configure:7116: checking for des_cbc_encrypt in -ldes425" >&5 7158 echo "configure:7159: checking for des_cbc_encrypt in -ldes425" >&5
7116 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7159 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6 7161 echo $ac_n "(cached) $ac_c" 1>&6
7119 else 7162 else
7120 ac_save_LIBS="$LIBS" 7163 ac_save_LIBS="$LIBS"
7121 LIBS="-ldes425 $LIBS" 7164 LIBS="-ldes425 $LIBS"
7122 cat > conftest.$ac_ext <<EOF 7165 cat > conftest.$ac_ext <<EOF
7123 #line 7124 "configure" 7166 #line 7167 "configure"
7124 #include "confdefs.h" 7167 #include "confdefs.h"
7125 /* Override any gcc2 internal prototype to avoid an error. */ 7168 /* Override any gcc2 internal prototype to avoid an error. */
7126 /* We use char because int might match the return type of a gcc2 7169 /* We use char because int might match the return type of a gcc2
7127 builtin and then its argument prototype would still apply. */ 7170 builtin and then its argument prototype would still apply. */
7128 char des_cbc_encrypt(); 7171 char des_cbc_encrypt();
7129 7172
7130 int main() { 7173 int main() {
7131 des_cbc_encrypt() 7174 des_cbc_encrypt()
7132 ; return 0; } 7175 ; return 0; }
7133 EOF 7176 EOF
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7177 if { (eval echo configure:7178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7135 rm -rf conftest* 7178 rm -rf conftest*
7136 eval "ac_cv_lib_$ac_lib_var=yes" 7179 eval "ac_cv_lib_$ac_lib_var=yes"
7137 else 7180 else
7138 echo "configure: failed program was:" >&5 7181 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5 7182 cat conftest.$ac_ext >&5
7155 LIBS="-ldes425 $LIBS" 7198 LIBS="-ldes425 $LIBS"
7156 7199
7157 else 7200 else
7158 echo "$ac_t""no" 1>&6 7201 echo "$ac_t""no" 1>&6
7159 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 7202 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7160 echo "configure:7161: checking for des_cbc_encrypt in -ldes" >&5 7203 echo "configure:7204: checking for des_cbc_encrypt in -ldes" >&5
7161 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7204 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7163 echo $ac_n "(cached) $ac_c" 1>&6 7206 echo $ac_n "(cached) $ac_c" 1>&6
7164 else 7207 else
7165 ac_save_LIBS="$LIBS" 7208 ac_save_LIBS="$LIBS"
7166 LIBS="-ldes $LIBS" 7209 LIBS="-ldes $LIBS"
7167 cat > conftest.$ac_ext <<EOF 7210 cat > conftest.$ac_ext <<EOF
7168 #line 7169 "configure" 7211 #line 7212 "configure"
7169 #include "confdefs.h" 7212 #include "confdefs.h"
7170 /* Override any gcc2 internal prototype to avoid an error. */ 7213 /* Override any gcc2 internal prototype to avoid an error. */
7171 /* We use char because int might match the return type of a gcc2 7214 /* We use char because int might match the return type of a gcc2
7172 builtin and then its argument prototype would still apply. */ 7215 builtin and then its argument prototype would still apply. */
7173 char des_cbc_encrypt(); 7216 char des_cbc_encrypt();
7174 7217
7175 int main() { 7218 int main() {
7176 des_cbc_encrypt() 7219 des_cbc_encrypt()
7177 ; return 0; } 7220 ; return 0; }
7178 EOF 7221 EOF
7179 if { (eval echo configure:7180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7180 rm -rf conftest* 7223 rm -rf conftest*
7181 eval "ac_cv_lib_$ac_lib_var=yes" 7224 eval "ac_cv_lib_$ac_lib_var=yes"
7182 else 7225 else
7183 echo "configure: failed program was:" >&5 7226 echo "configure: failed program was:" >&5
7184 cat conftest.$ac_ext >&5 7227 cat conftest.$ac_ext >&5
7204 fi 7247 fi
7205 7248
7206 fi 7249 fi
7207 7250
7208 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 7251 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7209 echo "configure:7210: checking for krb_get_cred in -lkrb4" >&5 7252 echo "configure:7253: checking for krb_get_cred in -lkrb4" >&5
7210 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 7253 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7254 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7212 echo $ac_n "(cached) $ac_c" 1>&6 7255 echo $ac_n "(cached) $ac_c" 1>&6
7213 else 7256 else
7214 ac_save_LIBS="$LIBS" 7257 ac_save_LIBS="$LIBS"
7215 LIBS="-lkrb4 $LIBS" 7258 LIBS="-lkrb4 $LIBS"
7216 cat > conftest.$ac_ext <<EOF 7259 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure" 7260 #line 7261 "configure"
7218 #include "confdefs.h" 7261 #include "confdefs.h"
7219 /* Override any gcc2 internal prototype to avoid an error. */ 7262 /* Override any gcc2 internal prototype to avoid an error. */
7220 /* We use char because int might match the return type of a gcc2 7263 /* We use char because int might match the return type of a gcc2
7221 builtin and then its argument prototype would still apply. */ 7264 builtin and then its argument prototype would still apply. */
7222 char krb_get_cred(); 7265 char krb_get_cred();
7223 7266
7224 int main() { 7267 int main() {
7225 krb_get_cred() 7268 krb_get_cred()
7226 ; return 0; } 7269 ; return 0; }
7227 EOF 7270 EOF
7228 if { (eval echo configure:7229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7271 if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7229 rm -rf conftest* 7272 rm -rf conftest*
7230 eval "ac_cv_lib_$ac_lib_var=yes" 7273 eval "ac_cv_lib_$ac_lib_var=yes"
7231 else 7274 else
7232 echo "configure: failed program was:" >&5 7275 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5 7276 cat conftest.$ac_ext >&5
7249 LIBS="-lkrb4 $LIBS" 7292 LIBS="-lkrb4 $LIBS"
7250 7293
7251 else 7294 else
7252 echo "$ac_t""no" 1>&6 7295 echo "$ac_t""no" 1>&6
7253 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 7296 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7254 echo "configure:7255: checking for krb_get_cred in -lkrb" >&5 7297 echo "configure:7298: checking for krb_get_cred in -lkrb" >&5
7255 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 7298 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7257 echo $ac_n "(cached) $ac_c" 1>&6 7300 echo $ac_n "(cached) $ac_c" 1>&6
7258 else 7301 else
7259 ac_save_LIBS="$LIBS" 7302 ac_save_LIBS="$LIBS"
7260 LIBS="-lkrb $LIBS" 7303 LIBS="-lkrb $LIBS"
7261 cat > conftest.$ac_ext <<EOF 7304 cat > conftest.$ac_ext <<EOF
7262 #line 7263 "configure" 7305 #line 7306 "configure"
7263 #include "confdefs.h" 7306 #include "confdefs.h"
7264 /* Override any gcc2 internal prototype to avoid an error. */ 7307 /* Override any gcc2 internal prototype to avoid an error. */
7265 /* We use char because int might match the return type of a gcc2 7308 /* We use char because int might match the return type of a gcc2
7266 builtin and then its argument prototype would still apply. */ 7309 builtin and then its argument prototype would still apply. */
7267 char krb_get_cred(); 7310 char krb_get_cred();
7268 7311
7269 int main() { 7312 int main() {
7270 krb_get_cred() 7313 krb_get_cred()
7271 ; return 0; } 7314 ; return 0; }
7272 EOF 7315 EOF
7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7316 if { (eval echo configure:7317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7274 rm -rf conftest* 7317 rm -rf conftest*
7275 eval "ac_cv_lib_$ac_lib_var=yes" 7318 eval "ac_cv_lib_$ac_lib_var=yes"
7276 else 7319 else
7277 echo "configure: failed program was:" >&5 7320 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5 7321 cat conftest.$ac_ext >&5
7304 if test "${with_kerberos5+set}" = set; then 7347 if test "${with_kerberos5+set}" = set; then
7305 for ac_hdr in krb5.h 7348 for ac_hdr in krb5.h
7306 do 7349 do
7307 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7309 echo "configure:7310: checking for $ac_hdr" >&5 7352 echo "configure:7353: checking for $ac_hdr" >&5
7310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7311 echo $ac_n "(cached) $ac_c" 1>&6 7354 echo $ac_n "(cached) $ac_c" 1>&6
7312 else 7355 else
7313 cat > conftest.$ac_ext <<EOF 7356 cat > conftest.$ac_ext <<EOF
7314 #line 7315 "configure" 7357 #line 7358 "configure"
7315 #include "confdefs.h" 7358 #include "confdefs.h"
7316 #include <$ac_hdr> 7359 #include <$ac_hdr>
7317 EOF 7360 EOF
7318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7319 { (eval echo configure:7320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7362 { (eval echo configure:7363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7321 if test -z "$ac_err"; then 7364 if test -z "$ac_err"; then
7322 rm -rf conftest* 7365 rm -rf conftest*
7323 eval "ac_cv_header_$ac_safe=yes" 7366 eval "ac_cv_header_$ac_safe=yes"
7324 else 7367 else
7345 else 7388 else
7346 for ac_hdr in des.h 7389 for ac_hdr in des.h
7347 do 7390 do
7348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7350 echo "configure:7351: checking for $ac_hdr" >&5 7393 echo "configure:7394: checking for $ac_hdr" >&5
7351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7394 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7352 echo $ac_n "(cached) $ac_c" 1>&6 7395 echo $ac_n "(cached) $ac_c" 1>&6
7353 else 7396 else
7354 cat > conftest.$ac_ext <<EOF 7397 cat > conftest.$ac_ext <<EOF
7355 #line 7356 "configure" 7398 #line 7399 "configure"
7356 #include "confdefs.h" 7399 #include "confdefs.h"
7357 #include <$ac_hdr> 7400 #include <$ac_hdr>
7358 EOF 7401 EOF
7359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7360 { (eval echo configure:7361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7403 { (eval echo configure:7404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7362 if test -z "$ac_err"; then 7405 if test -z "$ac_err"; then
7363 rm -rf conftest* 7406 rm -rf conftest*
7364 eval "ac_cv_header_$ac_safe=yes" 7407 eval "ac_cv_header_$ac_safe=yes"
7365 else 7408 else
7382 echo "$ac_t""no" 1>&6 7425 echo "$ac_t""no" 1>&6
7383 for ac_hdr in kerberosIV/des.h 7426 for ac_hdr in kerberosIV/des.h
7384 do 7427 do
7385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7428 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7429 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7387 echo "configure:7388: checking for $ac_hdr" >&5 7430 echo "configure:7431: checking for $ac_hdr" >&5
7388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7389 echo $ac_n "(cached) $ac_c" 1>&6 7432 echo $ac_n "(cached) $ac_c" 1>&6
7390 else 7433 else
7391 cat > conftest.$ac_ext <<EOF 7434 cat > conftest.$ac_ext <<EOF
7392 #line 7393 "configure" 7435 #line 7436 "configure"
7393 #include "confdefs.h" 7436 #include "confdefs.h"
7394 #include <$ac_hdr> 7437 #include <$ac_hdr>
7395 EOF 7438 EOF
7396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7439 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7397 { (eval echo configure:7398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7440 { (eval echo configure:7441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7441 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7399 if test -z "$ac_err"; then 7442 if test -z "$ac_err"; then
7400 rm -rf conftest* 7443 rm -rf conftest*
7401 eval "ac_cv_header_$ac_safe=yes" 7444 eval "ac_cv_header_$ac_safe=yes"
7402 else 7445 else
7419 echo "$ac_t""no" 1>&6 7462 echo "$ac_t""no" 1>&6
7420 for ac_hdr in kerberos/des.h 7463 for ac_hdr in kerberos/des.h
7421 do 7464 do
7422 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7423 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7424 echo "configure:7425: checking for $ac_hdr" >&5 7467 echo "configure:7468: checking for $ac_hdr" >&5
7425 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7426 echo $ac_n "(cached) $ac_c" 1>&6 7469 echo $ac_n "(cached) $ac_c" 1>&6
7427 else 7470 else
7428 cat > conftest.$ac_ext <<EOF 7471 cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure" 7472 #line 7473 "configure"
7430 #include "confdefs.h" 7473 #include "confdefs.h"
7431 #include <$ac_hdr> 7474 #include <$ac_hdr>
7432 EOF 7475 EOF
7433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7434 { (eval echo configure:7435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7477 { (eval echo configure:7478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7436 if test -z "$ac_err"; then 7479 if test -z "$ac_err"; then
7437 rm -rf conftest* 7480 rm -rf conftest*
7438 eval "ac_cv_header_$ac_safe=yes" 7481 eval "ac_cv_header_$ac_safe=yes"
7439 else 7482 else
7465 7508
7466 for ac_hdr in krb.h 7509 for ac_hdr in krb.h
7467 do 7510 do
7468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7470 echo "configure:7471: checking for $ac_hdr" >&5 7513 echo "configure:7514: checking for $ac_hdr" >&5
7471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7472 echo $ac_n "(cached) $ac_c" 1>&6 7515 echo $ac_n "(cached) $ac_c" 1>&6
7473 else 7516 else
7474 cat > conftest.$ac_ext <<EOF 7517 cat > conftest.$ac_ext <<EOF
7475 #line 7476 "configure" 7518 #line 7519 "configure"
7476 #include "confdefs.h" 7519 #include "confdefs.h"
7477 #include <$ac_hdr> 7520 #include <$ac_hdr>
7478 EOF 7521 EOF
7479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7480 { (eval echo configure:7481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7523 { (eval echo configure:7524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7482 if test -z "$ac_err"; then 7525 if test -z "$ac_err"; then
7483 rm -rf conftest* 7526 rm -rf conftest*
7484 eval "ac_cv_header_$ac_safe=yes" 7527 eval "ac_cv_header_$ac_safe=yes"
7485 else 7528 else
7502 echo "$ac_t""no" 1>&6 7545 echo "$ac_t""no" 1>&6
7503 for ac_hdr in kerberosIV/krb.h 7546 for ac_hdr in kerberosIV/krb.h
7504 do 7547 do
7505 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7506 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7507 echo "configure:7508: checking for $ac_hdr" >&5 7550 echo "configure:7551: checking for $ac_hdr" >&5
7508 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7551 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7509 echo $ac_n "(cached) $ac_c" 1>&6 7552 echo $ac_n "(cached) $ac_c" 1>&6
7510 else 7553 else
7511 cat > conftest.$ac_ext <<EOF 7554 cat > conftest.$ac_ext <<EOF
7512 #line 7513 "configure" 7555 #line 7556 "configure"
7513 #include "confdefs.h" 7556 #include "confdefs.h"
7514 #include <$ac_hdr> 7557 #include <$ac_hdr>
7515 EOF 7558 EOF
7516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7517 { (eval echo configure:7518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7560 { (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7519 if test -z "$ac_err"; then 7562 if test -z "$ac_err"; then
7520 rm -rf conftest* 7563 rm -rf conftest*
7521 eval "ac_cv_header_$ac_safe=yes" 7564 eval "ac_cv_header_$ac_safe=yes"
7522 else 7565 else
7539 echo "$ac_t""no" 1>&6 7582 echo "$ac_t""no" 1>&6
7540 for ac_hdr in kerberos/krb.h 7583 for ac_hdr in kerberos/krb.h
7541 do 7584 do
7542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7544 echo "configure:7545: checking for $ac_hdr" >&5 7587 echo "configure:7588: checking for $ac_hdr" >&5
7545 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7588 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7546 echo $ac_n "(cached) $ac_c" 1>&6 7589 echo $ac_n "(cached) $ac_c" 1>&6
7547 else 7590 else
7548 cat > conftest.$ac_ext <<EOF 7591 cat > conftest.$ac_ext <<EOF
7549 #line 7550 "configure" 7592 #line 7593 "configure"
7550 #include "confdefs.h" 7593 #include "confdefs.h"
7551 #include <$ac_hdr> 7594 #include <$ac_hdr>
7552 EOF 7595 EOF
7553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7554 { (eval echo configure:7555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7597 { (eval echo configure:7598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7556 if test -z "$ac_err"; then 7599 if test -z "$ac_err"; then
7557 rm -rf conftest* 7600 rm -rf conftest*
7558 eval "ac_cv_header_$ac_safe=yes" 7601 eval "ac_cv_header_$ac_safe=yes"
7559 else 7602 else
7586 fi 7629 fi
7587 for ac_hdr in com_err.h 7630 for ac_hdr in com_err.h
7588 do 7631 do
7589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7591 echo "configure:7592: checking for $ac_hdr" >&5 7634 echo "configure:7635: checking for $ac_hdr" >&5
7592 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7593 echo $ac_n "(cached) $ac_c" 1>&6 7636 echo $ac_n "(cached) $ac_c" 1>&6
7594 else 7637 else
7595 cat > conftest.$ac_ext <<EOF 7638 cat > conftest.$ac_ext <<EOF
7596 #line 7597 "configure" 7639 #line 7640 "configure"
7597 #include "confdefs.h" 7640 #include "confdefs.h"
7598 #include <$ac_hdr> 7641 #include <$ac_hdr>
7599 EOF 7642 EOF
7600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7601 { (eval echo configure:7602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7644 { (eval echo configure:7645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7603 if test -z "$ac_err"; then 7646 if test -z "$ac_err"; then
7604 rm -rf conftest* 7647 rm -rf conftest*
7605 eval "ac_cv_header_$ac_safe=yes" 7648 eval "ac_cv_header_$ac_safe=yes"
7606 else 7649 else
7627 fi 7670 fi
7628 7671
7629 # Solaris requires -lintl if you want strerror (which calls dgettext) 7672 # Solaris requires -lintl if you want strerror (which calls dgettext)
7630 # to return localized messages. 7673 # to return localized messages.
7631 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 7674 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
7632 echo "configure:7633: checking for dgettext in -lintl" >&5 7675 echo "configure:7676: checking for dgettext in -lintl" >&5
7633 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 7676 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
7634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6 7678 echo $ac_n "(cached) $ac_c" 1>&6
7636 else 7679 else
7637 ac_save_LIBS="$LIBS" 7680 ac_save_LIBS="$LIBS"
7638 LIBS="-lintl $LIBS" 7681 LIBS="-lintl $LIBS"
7639 cat > conftest.$ac_ext <<EOF 7682 cat > conftest.$ac_ext <<EOF
7640 #line 7641 "configure" 7683 #line 7684 "configure"
7641 #include "confdefs.h" 7684 #include "confdefs.h"
7642 /* Override any gcc2 internal prototype to avoid an error. */ 7685 /* Override any gcc2 internal prototype to avoid an error. */
7643 /* We use char because int might match the return type of a gcc2 7686 /* We use char because int might match the return type of a gcc2
7644 builtin and then its argument prototype would still apply. */ 7687 builtin and then its argument prototype would still apply. */
7645 char dgettext(); 7688 char dgettext();
7646 7689
7647 int main() { 7690 int main() {
7648 dgettext() 7691 dgettext()
7649 ; return 0; } 7692 ; return 0; }
7650 EOF 7693 EOF
7651 if { (eval echo configure:7652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7652 rm -rf conftest* 7695 rm -rf conftest*
7653 eval "ac_cv_lib_$ac_lib_var=yes" 7696 eval "ac_cv_lib_$ac_lib_var=yes"
7654 else 7697 else
7655 echo "configure: failed program was:" >&5 7698 echo "configure: failed program was:" >&5
7656 cat conftest.$ac_ext >&5 7699 cat conftest.$ac_ext >&5
7675 echo "$ac_t""no" 1>&6 7718 echo "$ac_t""no" 1>&6
7676 fi 7719 fi
7677 7720
7678 7721
7679 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7722 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7680 echo "configure:7681: checking whether localtime caches TZ" >&5 7723 echo "configure:7724: checking whether localtime caches TZ" >&5
7681 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 7724 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
7682 echo $ac_n "(cached) $ac_c" 1>&6 7725 echo $ac_n "(cached) $ac_c" 1>&6
7683 else 7726 else
7684 if test x$ac_cv_func_tzset = xyes; then 7727 if test x$ac_cv_func_tzset = xyes; then
7685 if test "$cross_compiling" = yes; then 7728 if test "$cross_compiling" = yes; then
7686 # If we have tzset, assume the worst when cross-compiling. 7729 # If we have tzset, assume the worst when cross-compiling.
7687 emacs_cv_localtime_cache=yes 7730 emacs_cv_localtime_cache=yes
7688 else 7731 else
7689 cat > conftest.$ac_ext <<EOF 7732 cat > conftest.$ac_ext <<EOF
7690 #line 7691 "configure" 7733 #line 7734 "configure"
7691 #include "confdefs.h" 7734 #include "confdefs.h"
7692 #include <time.h> 7735 #include <time.h>
7693 extern char **environ; 7736 extern char **environ;
7694 unset_TZ () 7737 unset_TZ ()
7695 { 7738 {
7717 if (localtime (&now)->tm_hour != hour_unset) 7760 if (localtime (&now)->tm_hour != hour_unset)
7718 exit (1); 7761 exit (1);
7719 exit (0); 7762 exit (0);
7720 } 7763 }
7721 EOF 7764 EOF
7722 if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7765 if { (eval echo configure:7766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7723 then 7766 then
7724 emacs_cv_localtime_cache=no 7767 emacs_cv_localtime_cache=no
7725 else 7768 else
7726 echo "configure: failed program was:" >&5 7769 echo "configure: failed program was:" >&5
7727 cat conftest.$ac_ext >&5 7770 cat conftest.$ac_ext >&5
7747 7790
7748 if test "x$HAVE_TIMEVAL" = xyes; then 7791 if test "x$HAVE_TIMEVAL" = xyes; then
7749 for ac_func in gettimeofday 7792 for ac_func in gettimeofday
7750 do 7793 do
7751 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7752 echo "configure:7753: checking for $ac_func" >&5 7795 echo "configure:7796: checking for $ac_func" >&5
7753 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6 7797 echo $ac_n "(cached) $ac_c" 1>&6
7755 else 7798 else
7756 cat > conftest.$ac_ext <<EOF 7799 cat > conftest.$ac_ext <<EOF
7757 #line 7758 "configure" 7800 #line 7801 "configure"
7758 #include "confdefs.h" 7801 #include "confdefs.h"
7759 /* System header to define __stub macros and hopefully few prototypes, 7802 /* System header to define __stub macros and hopefully few prototypes,
7760 which can conflict with char $ac_func(); below. */ 7803 which can conflict with char $ac_func(); below. */
7761 #include <assert.h> 7804 #include <assert.h>
7762 /* Override any gcc2 internal prototype to avoid an error. */ 7805 /* Override any gcc2 internal prototype to avoid an error. */
7775 $ac_func(); 7818 $ac_func();
7776 #endif 7819 #endif
7777 7820
7778 ; return 0; } 7821 ; return 0; }
7779 EOF 7822 EOF
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7823 if { (eval echo configure:7824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7781 rm -rf conftest* 7824 rm -rf conftest*
7782 eval "ac_cv_func_$ac_func=yes" 7825 eval "ac_cv_func_$ac_func=yes"
7783 else 7826 else
7784 echo "configure: failed program was:" >&5 7827 echo "configure: failed program was:" >&5
7785 cat conftest.$ac_ext >&5 7828 cat conftest.$ac_ext >&5
7800 echo "$ac_t""no" 1>&6 7843 echo "$ac_t""no" 1>&6
7801 fi 7844 fi
7802 done 7845 done
7803 7846
7804 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 7847 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
7805 echo "configure:7806: checking whether gettimeofday can accept two arguments" >&5 7848 echo "configure:7849: checking whether gettimeofday can accept two arguments" >&5
7806 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 7849 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
7807 echo $ac_n "(cached) $ac_c" 1>&6 7850 echo $ac_n "(cached) $ac_c" 1>&6
7808 else 7851 else
7809 cat > conftest.$ac_ext <<EOF 7852 cat > conftest.$ac_ext <<EOF
7810 #line 7811 "configure" 7853 #line 7854 "configure"
7811 #include "confdefs.h" 7854 #include "confdefs.h"
7812 7855
7813 #ifdef TIME_WITH_SYS_TIME 7856 #ifdef TIME_WITH_SYS_TIME
7814 #include <sys/time.h> 7857 #include <sys/time.h>
7815 #include <time.h> 7858 #include <time.h>
7823 int main() { 7866 int main() {
7824 struct timeval time; 7867 struct timeval time;
7825 gettimeofday (&time, 0); 7868 gettimeofday (&time, 0);
7826 ; return 0; } 7869 ; return 0; }
7827 EOF 7870 EOF
7828 if { (eval echo configure:7829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7871 if { (eval echo configure:7872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7829 rm -rf conftest* 7872 rm -rf conftest*
7830 emacs_cv_gettimeofday_two_arguments=yes 7873 emacs_cv_gettimeofday_two_arguments=yes
7831 else 7874 else
7832 echo "configure: failed program was:" >&5 7875 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5 7876 cat conftest.$ac_ext >&5
7846 fi 7889 fi
7847 fi 7890 fi
7848 7891
7849 if test "$ac_cv_func_gettimeofday" = yes; then 7892 if test "$ac_cv_func_gettimeofday" = yes; then
7850 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 7893 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
7851 echo "configure:7852: checking for struct timezone" >&5 7894 echo "configure:7895: checking for struct timezone" >&5
7852 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 7895 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
7853 echo $ac_n "(cached) $ac_c" 1>&6 7896 echo $ac_n "(cached) $ac_c" 1>&6
7854 else 7897 else
7855 cat > conftest.$ac_ext <<EOF 7898 cat > conftest.$ac_ext <<EOF
7856 #line 7857 "configure" 7899 #line 7900 "configure"
7857 #include "confdefs.h" 7900 #include "confdefs.h"
7858 #include <sys/time.h> 7901 #include <sys/time.h>
7859 int main() { 7902 int main() {
7860 struct timezone tz; 7903 struct timezone tz;
7861 ; return 0; } 7904 ; return 0; }
7862 EOF 7905 EOF
7863 if { (eval echo configure:7864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7906 if { (eval echo configure:7907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7864 rm -rf conftest* 7907 rm -rf conftest*
7865 if test "$cross_compiling" = yes; then 7908 if test "$cross_compiling" = yes; then
7866 emacs_cv_struct_timezone=yes 7909 emacs_cv_struct_timezone=yes
7867 else 7910 else
7868 cat > conftest.$ac_ext <<EOF 7911 cat > conftest.$ac_ext <<EOF
7869 #line 7870 "configure" 7912 #line 7913 "configure"
7870 #include "confdefs.h" 7913 #include "confdefs.h"
7871 7914
7872 #ifdef TIME_WITH_SYS_TIME 7915 #ifdef TIME_WITH_SYS_TIME
7873 #include <sys/time.h> 7916 #include <sys/time.h>
7874 #include <time.h> 7917 #include <time.h>
7883 struct timeval time; 7926 struct timeval time;
7884 struct timezone dummy; 7927 struct timezone dummy;
7885 exit (gettimeofday (&time, &dummy)); 7928 exit (gettimeofday (&time, &dummy));
7886 } 7929 }
7887 EOF 7930 EOF
7888 if { (eval echo configure:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7889 then 7932 then
7890 emacs_cv_struct_timezone=yes 7933 emacs_cv_struct_timezone=yes
7891 else 7934 else
7892 echo "configure: failed program was:" >&5 7935 echo "configure: failed program was:" >&5
7893 cat conftest.$ac_ext >&5 7936 cat conftest.$ac_ext >&5
7909 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 7952 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
7910 fi 7953 fi
7911 7954
7912 ok_so_far=yes 7955 ok_so_far=yes
7913 echo $ac_n "checking for socket""... $ac_c" 1>&6 7956 echo $ac_n "checking for socket""... $ac_c" 1>&6
7914 echo "configure:7915: checking for socket" >&5 7957 echo "configure:7958: checking for socket" >&5
7915 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 7958 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
7916 echo $ac_n "(cached) $ac_c" 1>&6 7959 echo $ac_n "(cached) $ac_c" 1>&6
7917 else 7960 else
7918 cat > conftest.$ac_ext <<EOF 7961 cat > conftest.$ac_ext <<EOF
7919 #line 7920 "configure" 7962 #line 7963 "configure"
7920 #include "confdefs.h" 7963 #include "confdefs.h"
7921 /* System header to define __stub macros and hopefully few prototypes, 7964 /* System header to define __stub macros and hopefully few prototypes,
7922 which can conflict with char socket(); below. */ 7965 which can conflict with char socket(); below. */
7923 #include <assert.h> 7966 #include <assert.h>
7924 /* Override any gcc2 internal prototype to avoid an error. */ 7967 /* Override any gcc2 internal prototype to avoid an error. */
7937 socket(); 7980 socket();
7938 #endif 7981 #endif
7939 7982
7940 ; return 0; } 7983 ; return 0; }
7941 EOF 7984 EOF
7942 if { (eval echo configure:7943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7943 rm -rf conftest* 7986 rm -rf conftest*
7944 eval "ac_cv_func_socket=yes" 7987 eval "ac_cv_func_socket=yes"
7945 else 7988 else
7946 echo "configure: failed program was:" >&5 7989 echo "configure: failed program was:" >&5
7947 cat conftest.$ac_ext >&5 7990 cat conftest.$ac_ext >&5
7960 fi 8003 fi
7961 8004
7962 if test $ok_so_far = yes; then 8005 if test $ok_so_far = yes; then
7963 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8006 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
7964 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8007 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
7965 echo "configure:7966: checking for netinet/in.h" >&5 8008 echo "configure:8009: checking for netinet/in.h" >&5
7966 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8009 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6 8010 echo $ac_n "(cached) $ac_c" 1>&6
7968 else 8011 else
7969 cat > conftest.$ac_ext <<EOF 8012 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure" 8013 #line 8014 "configure"
7971 #include "confdefs.h" 8014 #include "confdefs.h"
7972 #include <netinet/in.h> 8015 #include <netinet/in.h>
7973 EOF 8016 EOF
7974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7975 { (eval echo configure:7976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8018 { (eval echo configure:8019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7977 if test -z "$ac_err"; then 8020 if test -z "$ac_err"; then
7978 rm -rf conftest* 8021 rm -rf conftest*
7979 eval "ac_cv_header_$ac_safe=yes" 8022 eval "ac_cv_header_$ac_safe=yes"
7980 else 8023 else
7996 8039
7997 fi 8040 fi
7998 if test $ok_so_far = yes; then 8041 if test $ok_so_far = yes; then
7999 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8042 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8000 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8043 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8001 echo "configure:8002: checking for arpa/inet.h" >&5 8044 echo "configure:8045: checking for arpa/inet.h" >&5
8002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8003 echo $ac_n "(cached) $ac_c" 1>&6 8046 echo $ac_n "(cached) $ac_c" 1>&6
8004 else 8047 else
8005 cat > conftest.$ac_ext <<EOF 8048 cat > conftest.$ac_ext <<EOF
8006 #line 8007 "configure" 8049 #line 8050 "configure"
8007 #include "confdefs.h" 8050 #include "confdefs.h"
8008 #include <arpa/inet.h> 8051 #include <arpa/inet.h>
8009 EOF 8052 EOF
8010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8011 { (eval echo configure:8012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8054 { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8013 if test -z "$ac_err"; then 8056 if test -z "$ac_err"; then
8014 rm -rf conftest* 8057 rm -rf conftest*
8015 eval "ac_cv_header_$ac_safe=yes" 8058 eval "ac_cv_header_$ac_safe=yes"
8016 else 8059 else
8044 EOF 8087 EOF
8045 8088
8046 fi 8089 fi
8047 8090
8048 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 8091 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8049 echo "configure:8050: checking whether system supports dynamic ptys" >&5 8092 echo "configure:8093: checking whether system supports dynamic ptys" >&5
8050 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 8093 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8051 echo "$ac_t""yes" 1>&6 8094 echo "$ac_t""yes" 1>&6
8052 cat >> confdefs.h <<\EOF 8095 cat >> confdefs.h <<\EOF
8053 #define HAVE_DEV_PTMX 1 8096 #define HAVE_DEV_PTMX 1
8054 EOF 8097 EOF
8056 else 8099 else
8057 echo "$ac_t""no" 1>&6 8100 echo "$ac_t""no" 1>&6
8058 fi 8101 fi
8059 8102
8060 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 8103 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8061 echo "configure:8062: checking for pid_t" >&5 8104 echo "configure:8105: checking for pid_t" >&5
8062 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 8105 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8063 echo $ac_n "(cached) $ac_c" 1>&6 8106 echo $ac_n "(cached) $ac_c" 1>&6
8064 else 8107 else
8065 cat > conftest.$ac_ext <<EOF 8108 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure" 8109 #line 8110 "configure"
8067 #include "confdefs.h" 8110 #include "confdefs.h"
8068 #include <sys/types.h> 8111 #include <sys/types.h>
8069 #if STDC_HEADERS 8112 #if STDC_HEADERS
8070 #include <stdlib.h> 8113 #include <stdlib.h>
8071 #include <stddef.h> 8114 #include <stddef.h>
8090 8133
8091 fi 8134 fi
8092 8135
8093 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8136 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8094 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8137 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8095 echo "configure:8096: checking for vfork.h" >&5 8138 echo "configure:8139: checking for vfork.h" >&5
8096 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6 8140 echo $ac_n "(cached) $ac_c" 1>&6
8098 else 8141 else
8099 cat > conftest.$ac_ext <<EOF 8142 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure" 8143 #line 8144 "configure"
8101 #include "confdefs.h" 8144 #include "confdefs.h"
8102 #include <vfork.h> 8145 #include <vfork.h>
8103 EOF 8146 EOF
8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8148 { (eval echo configure:8149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8107 if test -z "$ac_err"; then 8150 if test -z "$ac_err"; then
8108 rm -rf conftest* 8151 rm -rf conftest*
8109 eval "ac_cv_header_$ac_safe=yes" 8152 eval "ac_cv_header_$ac_safe=yes"
8110 else 8153 else
8125 else 8168 else
8126 echo "$ac_t""no" 1>&6 8169 echo "$ac_t""no" 1>&6
8127 fi 8170 fi
8128 8171
8129 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8172 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8130 echo "configure:8131: checking for working vfork" >&5 8173 echo "configure:8174: checking for working vfork" >&5
8131 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 8174 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8132 echo $ac_n "(cached) $ac_c" 1>&6 8175 echo $ac_n "(cached) $ac_c" 1>&6
8133 else 8176 else
8134 if test "$cross_compiling" = yes; then 8177 if test "$cross_compiling" = yes; then
8135 echo $ac_n "checking for vfork""... $ac_c" 1>&6 8178 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8136 echo "configure:8137: checking for vfork" >&5 8179 echo "configure:8180: checking for vfork" >&5
8137 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 8180 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6 8181 echo $ac_n "(cached) $ac_c" 1>&6
8139 else 8182 else
8140 cat > conftest.$ac_ext <<EOF 8183 cat > conftest.$ac_ext <<EOF
8141 #line 8142 "configure" 8184 #line 8185 "configure"
8142 #include "confdefs.h" 8185 #include "confdefs.h"
8143 /* System header to define __stub macros and hopefully few prototypes, 8186 /* System header to define __stub macros and hopefully few prototypes,
8144 which can conflict with char vfork(); below. */ 8187 which can conflict with char vfork(); below. */
8145 #include <assert.h> 8188 #include <assert.h>
8146 /* Override any gcc2 internal prototype to avoid an error. */ 8189 /* Override any gcc2 internal prototype to avoid an error. */
8159 vfork(); 8202 vfork();
8160 #endif 8203 #endif
8161 8204
8162 ; return 0; } 8205 ; return 0; }
8163 EOF 8206 EOF
8164 if { (eval echo configure:8165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8207 if { (eval echo configure:8208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8165 rm -rf conftest* 8208 rm -rf conftest*
8166 eval "ac_cv_func_vfork=yes" 8209 eval "ac_cv_func_vfork=yes"
8167 else 8210 else
8168 echo "configure: failed program was:" >&5 8211 echo "configure: failed program was:" >&5
8169 cat conftest.$ac_ext >&5 8212 cat conftest.$ac_ext >&5
8181 fi 8224 fi
8182 8225
8183 ac_cv_func_vfork_works=$ac_cv_func_vfork 8226 ac_cv_func_vfork_works=$ac_cv_func_vfork
8184 else 8227 else
8185 cat > conftest.$ac_ext <<EOF 8228 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure" 8229 #line 8230 "configure"
8187 #include "confdefs.h" 8230 #include "confdefs.h"
8188 /* Thanks to Paul Eggert for this test. */ 8231 /* Thanks to Paul Eggert for this test. */
8189 #include <stdio.h> 8232 #include <stdio.h>
8190 #include <sys/types.h> 8233 #include <sys/types.h>
8191 #include <sys/stat.h> 8234 #include <sys/stat.h>
8276 || fstat(fileno(stdout), &st) != 0 8319 || fstat(fileno(stdout), &st) != 0
8277 ); 8320 );
8278 } 8321 }
8279 } 8322 }
8280 EOF 8323 EOF
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8324 if { (eval echo configure:8325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8282 then 8325 then
8283 ac_cv_func_vfork_works=yes 8326 ac_cv_func_vfork_works=yes
8284 else 8327 else
8285 echo "configure: failed program was:" >&5 8328 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5 8329 cat conftest.$ac_ext >&5