Mercurial > emacs
comparison configure @ 29834:fb20d35ffa9a
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 21 Jun 2000 14:26:56 +0000 |
parents | 6a91d938851d |
children | b37a06f2fbf2 |
comparison
equal
deleted
inserted
replaced
29833:3987b8b9f055 | 29834:fb20d35ffa9a |
---|---|
879 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | 879 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib |
880 case "${canonical}" in | 880 case "${canonical}" in |
881 # This is necessary on 5.0 to avoid mangling src/Makefile. | 881 # This is necessary on 5.0 to avoid mangling src/Makefile. |
882 # Separated out in case it causes problems on earlier versions. | 882 # Separated out in case it causes problems on earlier versions. |
883 alpha*-dec-osf[5-9]*) | 883 alpha*-dec-osf[5-9]*) |
884 opsys=osf5-0 | |
884 NON_GNU_CPP='cpp' ;; | 885 NON_GNU_CPP='cpp' ;; |
885 esac | 886 esac |
886 ;; | 887 ;; |
887 | 888 |
888 alpha*-*-linux-gnu* ) | 889 alpha*-*-linux-gnu* ) |
1712 "yes" ) CC="gcc" GCC=yes ;; | 1713 "yes" ) CC="gcc" GCC=yes ;; |
1713 "no" ) : ${CC=cc} ;; | 1714 "no" ) : ${CC=cc} ;; |
1714 * ) # Extract the first word of "gcc", so it can be a program name with args. | 1715 * ) # Extract the first word of "gcc", so it can be a program name with args. |
1715 set dummy gcc; ac_word=$2 | 1716 set dummy gcc; ac_word=$2 |
1716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1717 echo "configure:1718: checking for $ac_word" >&5 | 1718 echo "configure:1719: checking for $ac_word" >&5 |
1718 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1719 echo $ac_n "(cached) $ac_c" 1>&6 | 1720 echo $ac_n "(cached) $ac_c" 1>&6 |
1720 else | 1721 else |
1721 if test -n "$CC"; then | 1722 if test -n "$CC"; then |
1722 ac_cv_prog_CC="$CC" # Let the user override the test. | 1723 ac_cv_prog_CC="$CC" # Let the user override the test. |
1742 | 1743 |
1743 if test -z "$CC"; then | 1744 if test -z "$CC"; then |
1744 # Extract the first word of "cc", so it can be a program name with args. | 1745 # Extract the first word of "cc", so it can be a program name with args. |
1745 set dummy cc; ac_word=$2 | 1746 set dummy cc; ac_word=$2 |
1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1747 echo "configure:1748: checking for $ac_word" >&5 | 1748 echo "configure:1749: checking for $ac_word" >&5 |
1748 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1749 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1749 echo $ac_n "(cached) $ac_c" 1>&6 | 1750 echo $ac_n "(cached) $ac_c" 1>&6 |
1750 else | 1751 else |
1751 if test -n "$CC"; then | 1752 if test -n "$CC"; then |
1752 ac_cv_prog_CC="$CC" # Let the user override the test. | 1753 ac_cv_prog_CC="$CC" # Let the user override the test. |
1793 case "`uname -s`" in | 1794 case "`uname -s`" in |
1794 *win32* | *WIN32*) | 1795 *win32* | *WIN32*) |
1795 # Extract the first word of "cl", so it can be a program name with args. | 1796 # Extract the first word of "cl", so it can be a program name with args. |
1796 set dummy cl; ac_word=$2 | 1797 set dummy cl; ac_word=$2 |
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1798 echo "configure:1799: checking for $ac_word" >&5 | 1799 echo "configure:1800: checking for $ac_word" >&5 |
1799 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1800 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1800 echo $ac_n "(cached) $ac_c" 1>&6 | 1801 echo $ac_n "(cached) $ac_c" 1>&6 |
1801 else | 1802 else |
1802 if test -n "$CC"; then | 1803 if test -n "$CC"; then |
1803 ac_cv_prog_CC="$CC" # Let the user override the test. | 1804 ac_cv_prog_CC="$CC" # Let the user override the test. |
1825 fi | 1826 fi |
1826 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1827 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1827 fi | 1828 fi |
1828 | 1829 |
1829 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1830 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1830 echo "configure:1831: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1831 echo "configure:1832: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1831 | 1832 |
1832 ac_ext=c | 1833 ac_ext=c |
1833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 1834 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1834 ac_cpp='$CPP $CPPFLAGS' | 1835 ac_cpp='$CPP $CPPFLAGS' |
1835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 1836 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 1837 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1837 cross_compiling=$ac_cv_prog_cc_cross | 1838 cross_compiling=$ac_cv_prog_cc_cross |
1838 | 1839 |
1839 cat > conftest.$ac_ext << EOF | 1840 cat > conftest.$ac_ext << EOF |
1840 | 1841 |
1841 #line 1842 "configure" | 1842 #line 1843 "configure" |
1842 #include "confdefs.h" | 1843 #include "confdefs.h" |
1843 | 1844 |
1844 main(){return(0);} | 1845 main(){return(0);} |
1845 EOF | 1846 EOF |
1846 if { (eval echo configure:1847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1847 if { (eval echo configure:1848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1847 ac_cv_prog_cc_works=yes | 1848 ac_cv_prog_cc_works=yes |
1848 # If we can't run a trivial program, we are probably using a cross compiler. | 1849 # If we can't run a trivial program, we are probably using a cross compiler. |
1849 if (./conftest; exit) 2>/dev/null; then | 1850 if (./conftest; exit) 2>/dev/null; then |
1850 ac_cv_prog_cc_cross=no | 1851 ac_cv_prog_cc_cross=no |
1851 else | 1852 else |
1867 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1868 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1868 if test $ac_cv_prog_cc_works = no; then | 1869 if test $ac_cv_prog_cc_works = no; then |
1869 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1870 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1870 fi | 1871 fi |
1871 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1872 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1872 echo "configure:1873: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1873 echo "configure:1874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1873 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1874 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1874 cross_compiling=$ac_cv_prog_cc_cross | 1875 cross_compiling=$ac_cv_prog_cc_cross |
1875 | 1876 |
1876 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1877 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1877 echo "configure:1878: checking whether we are using GNU C" >&5 | 1878 echo "configure:1879: checking whether we are using GNU C" >&5 |
1878 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 1879 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1879 echo $ac_n "(cached) $ac_c" 1>&6 | 1880 echo $ac_n "(cached) $ac_c" 1>&6 |
1880 else | 1881 else |
1881 cat > conftest.c <<EOF | 1882 cat > conftest.c <<EOF |
1882 #ifdef __GNUC__ | 1883 #ifdef __GNUC__ |
1883 yes; | 1884 yes; |
1884 #endif | 1885 #endif |
1885 EOF | 1886 EOF |
1886 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1887 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1887 ac_cv_prog_gcc=yes | 1888 ac_cv_prog_gcc=yes |
1888 else | 1889 else |
1889 ac_cv_prog_gcc=no | 1890 ac_cv_prog_gcc=no |
1890 fi | 1891 fi |
1891 fi | 1892 fi |
1900 | 1901 |
1901 ac_test_CFLAGS="${CFLAGS+set}" | 1902 ac_test_CFLAGS="${CFLAGS+set}" |
1902 ac_save_CFLAGS="$CFLAGS" | 1903 ac_save_CFLAGS="$CFLAGS" |
1903 CFLAGS= | 1904 CFLAGS= |
1904 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1905 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1905 echo "configure:1906: checking whether ${CC-cc} accepts -g" >&5 | 1906 echo "configure:1907: checking whether ${CC-cc} accepts -g" >&5 |
1906 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 1907 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1907 echo $ac_n "(cached) $ac_c" 1>&6 | 1908 echo $ac_n "(cached) $ac_c" 1>&6 |
1908 else | 1909 else |
1909 echo 'void f(){}' > conftest.c | 1910 echo 'void f(){}' > conftest.c |
1910 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1911 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1980 #### Some other nice autoconf tests. If you add a test here which | 1981 #### Some other nice autoconf tests. If you add a test here which |
1981 #### should make an entry in src/config.h, don't forget to add an | 1982 #### should make an entry in src/config.h, don't forget to add an |
1982 #### #undef clause to src/config.h.in for autoconf to modify. | 1983 #### #undef clause to src/config.h.in for autoconf to modify. |
1983 | 1984 |
1984 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 1985 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1985 echo "configure:1986: checking whether ln -s works" >&5 | 1986 echo "configure:1987: checking whether ln -s works" >&5 |
1986 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 1987 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1987 echo $ac_n "(cached) $ac_c" 1>&6 | 1988 echo $ac_n "(cached) $ac_c" 1>&6 |
1988 else | 1989 else |
1989 rm -f conftestdata | 1990 rm -f conftestdata |
1990 if ln -s X conftestdata 2>/dev/null | 1991 if ln -s X conftestdata 2>/dev/null |
2001 else | 2002 else |
2002 echo "$ac_t""no" 1>&6 | 2003 echo "$ac_t""no" 1>&6 |
2003 fi | 2004 fi |
2004 | 2005 |
2005 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 2006 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2006 echo "configure:2007: checking how to run the C preprocessor" >&5 | 2007 echo "configure:2008: checking how to run the C preprocessor" >&5 |
2007 # On Suns, sometimes $CPP names a directory. | 2008 # On Suns, sometimes $CPP names a directory. |
2008 if test -n "$CPP" && test -d "$CPP"; then | 2009 if test -n "$CPP" && test -d "$CPP"; then |
2009 CPP= | 2010 CPP= |
2010 fi | 2011 fi |
2011 if test -z "$CPP"; then | 2012 if test -z "$CPP"; then |
2016 # substituted into the Makefile and "${CC-cc}" will confuse make. | 2017 # substituted into the Makefile and "${CC-cc}" will confuse make. |
2017 CPP="${CC-cc} -E" | 2018 CPP="${CC-cc} -E" |
2018 # On the NeXT, cc -E runs the code through the compiler's parser, | 2019 # On the NeXT, cc -E runs the code through the compiler's parser, |
2019 # not just through cpp. | 2020 # not just through cpp. |
2020 cat > conftest.$ac_ext <<EOF | 2021 cat > conftest.$ac_ext <<EOF |
2021 #line 2022 "configure" | 2022 #line 2023 "configure" |
2022 #include "confdefs.h" | 2023 #include "confdefs.h" |
2023 #include <assert.h> | 2024 #include <assert.h> |
2024 Syntax Error | 2025 Syntax Error |
2025 EOF | 2026 EOF |
2026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2027 { (eval echo configure:2028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2028 { (eval echo configure:2029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2029 if test -z "$ac_err"; then | 2030 if test -z "$ac_err"; then |
2030 : | 2031 : |
2031 else | 2032 else |
2032 echo "$ac_err" >&5 | 2033 echo "$ac_err" >&5 |
2033 echo "configure: failed program was:" >&5 | 2034 echo "configure: failed program was:" >&5 |
2034 cat conftest.$ac_ext >&5 | 2035 cat conftest.$ac_ext >&5 |
2035 rm -rf conftest* | 2036 rm -rf conftest* |
2036 CPP="${CC-cc} -E -traditional-cpp" | 2037 CPP="${CC-cc} -E -traditional-cpp" |
2037 cat > conftest.$ac_ext <<EOF | 2038 cat > conftest.$ac_ext <<EOF |
2038 #line 2039 "configure" | 2039 #line 2040 "configure" |
2039 #include "confdefs.h" | 2040 #include "confdefs.h" |
2040 #include <assert.h> | 2041 #include <assert.h> |
2041 Syntax Error | 2042 Syntax Error |
2042 EOF | 2043 EOF |
2043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2044 { (eval echo configure:2045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2045 { (eval echo configure:2046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2046 if test -z "$ac_err"; then | 2047 if test -z "$ac_err"; then |
2047 : | 2048 : |
2048 else | 2049 else |
2049 echo "$ac_err" >&5 | 2050 echo "$ac_err" >&5 |
2050 echo "configure: failed program was:" >&5 | 2051 echo "configure: failed program was:" >&5 |
2051 cat conftest.$ac_ext >&5 | 2052 cat conftest.$ac_ext >&5 |
2052 rm -rf conftest* | 2053 rm -rf conftest* |
2053 CPP="${CC-cc} -nologo -E" | 2054 CPP="${CC-cc} -nologo -E" |
2054 cat > conftest.$ac_ext <<EOF | 2055 cat > conftest.$ac_ext <<EOF |
2055 #line 2056 "configure" | 2056 #line 2057 "configure" |
2056 #include "confdefs.h" | 2057 #include "confdefs.h" |
2057 #include <assert.h> | 2058 #include <assert.h> |
2058 Syntax Error | 2059 Syntax Error |
2059 EOF | 2060 EOF |
2060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2061 { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2062 { (eval echo configure:2063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2063 if test -z "$ac_err"; then | 2064 if test -z "$ac_err"; then |
2064 : | 2065 : |
2065 else | 2066 else |
2066 echo "$ac_err" >&5 | 2067 echo "$ac_err" >&5 |
2092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 2093 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 2094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 2095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2095 # ./install, which can be erroneously created by make from ./install.sh. | 2096 # ./install, which can be erroneously created by make from ./install.sh. |
2096 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 2097 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2097 echo "configure:2098: checking for a BSD compatible install" >&5 | 2098 echo "configure:2099: checking for a BSD compatible install" >&5 |
2098 if test -z "$INSTALL"; then | 2099 if test -z "$INSTALL"; then |
2099 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 2100 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
2100 echo $ac_n "(cached) $ac_c" 1>&6 | 2101 echo $ac_n "(cached) $ac_c" 1>&6 |
2101 else | 2102 else |
2102 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | 2103 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
2149 for ac_prog in 'bison -y' byacc | 2150 for ac_prog in 'bison -y' byacc |
2150 do | 2151 do |
2151 # Extract the first word of "$ac_prog", so it can be a program name with args. | 2152 # Extract the first word of "$ac_prog", so it can be a program name with args. |
2152 set dummy $ac_prog; ac_word=$2 | 2153 set dummy $ac_prog; ac_word=$2 |
2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2154 echo "configure:2155: checking for $ac_word" >&5 | 2155 echo "configure:2156: checking for $ac_word" >&5 |
2155 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | 2156 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2156 echo $ac_n "(cached) $ac_c" 1>&6 | 2157 echo $ac_n "(cached) $ac_c" 1>&6 |
2157 else | 2158 else |
2158 if test -n "$YACC"; then | 2159 if test -n "$YACC"; then |
2159 ac_cv_prog_YACC="$YACC" # Let the user override the test. | 2160 ac_cv_prog_YACC="$YACC" # Let the user override the test. |
2183 | 2184 |
2184 if test "x$RANLIB" = x; then | 2185 if test "x$RANLIB" = x; then |
2185 # Extract the first word of "ranlib", so it can be a program name with args. | 2186 # Extract the first word of "ranlib", so it can be a program name with args. |
2186 set dummy ranlib; ac_word=$2 | 2187 set dummy ranlib; ac_word=$2 |
2187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2188 echo "configure:2189: checking for $ac_word" >&5 | 2189 echo "configure:2190: checking for $ac_word" >&5 |
2189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 2190 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2190 echo $ac_n "(cached) $ac_c" 1>&6 | 2191 echo $ac_n "(cached) $ac_c" 1>&6 |
2191 else | 2192 else |
2192 if test -n "$RANLIB"; then | 2193 if test -n "$RANLIB"; then |
2193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 2194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
2213 fi | 2214 fi |
2214 | 2215 |
2215 fi | 2216 fi |
2216 | 2217 |
2217 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 2218 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
2218 echo "configure:2219: checking for AIX" >&5 | 2219 echo "configure:2220: checking for AIX" >&5 |
2219 cat > conftest.$ac_ext <<EOF | 2220 cat > conftest.$ac_ext <<EOF |
2220 #line 2221 "configure" | 2221 #line 2222 "configure" |
2221 #include "confdefs.h" | 2222 #include "confdefs.h" |
2222 #ifdef _AIX | 2223 #ifdef _AIX |
2223 yes | 2224 yes |
2224 #endif | 2225 #endif |
2225 | 2226 |
2242 # Sound support for GNU/Linux and the free BSDs. | 2243 # Sound support for GNU/Linux and the free BSDs. |
2243 for ac_hdr in machine/soundcard.h sys/soundcard.h | 2244 for ac_hdr in machine/soundcard.h sys/soundcard.h |
2244 do | 2245 do |
2245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2247 echo "configure:2248: checking for $ac_hdr" >&5 | 2248 echo "configure:2249: checking for $ac_hdr" >&5 |
2248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2249 echo $ac_n "(cached) $ac_c" 1>&6 | 2250 echo $ac_n "(cached) $ac_c" 1>&6 |
2250 else | 2251 else |
2251 cat > conftest.$ac_ext <<EOF | 2252 cat > conftest.$ac_ext <<EOF |
2252 #line 2253 "configure" | 2253 #line 2254 "configure" |
2253 #include "confdefs.h" | 2254 #include "confdefs.h" |
2254 #include <$ac_hdr> | 2255 #include <$ac_hdr> |
2255 EOF | 2256 EOF |
2256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2257 { (eval echo configure:2258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2258 { (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2259 if test -z "$ac_err"; then | 2260 if test -z "$ac_err"; then |
2260 rm -rf conftest* | 2261 rm -rf conftest* |
2261 eval "ac_cv_header_$ac_safe=yes" | 2262 eval "ac_cv_header_$ac_safe=yes" |
2262 else | 2263 else |
2281 done | 2282 done |
2282 | 2283 |
2283 | 2284 |
2284 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 2285 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
2285 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 2286 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
2286 termcap.h stdio_ext.h | 2287 termcap.h stdio_ext.h fcntl.h sys/fcntl.h |
2287 do | 2288 do |
2288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2290 echo "configure:2291: checking for $ac_hdr" >&5 | 2291 echo "configure:2292: checking for $ac_hdr" >&5 |
2291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2292 echo $ac_n "(cached) $ac_c" 1>&6 | 2293 echo $ac_n "(cached) $ac_c" 1>&6 |
2293 else | 2294 else |
2294 cat > conftest.$ac_ext <<EOF | 2295 cat > conftest.$ac_ext <<EOF |
2295 #line 2296 "configure" | 2296 #line 2297 "configure" |
2296 #include "confdefs.h" | 2297 #include "confdefs.h" |
2297 #include <$ac_hdr> | 2298 #include <$ac_hdr> |
2298 EOF | 2299 EOF |
2299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2300 { (eval echo configure:2301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2301 { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2302 if test -z "$ac_err"; then | 2303 if test -z "$ac_err"; then |
2303 rm -rf conftest* | 2304 rm -rf conftest* |
2304 eval "ac_cv_header_$ac_safe=yes" | 2305 eval "ac_cv_header_$ac_safe=yes" |
2305 else | 2306 else |
2322 echo "$ac_t""no" 1>&6 | 2323 echo "$ac_t""no" 1>&6 |
2323 fi | 2324 fi |
2324 done | 2325 done |
2325 | 2326 |
2326 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 2327 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
2327 echo "configure:2328: checking for ANSI C header files" >&5 | 2328 echo "configure:2329: checking for ANSI C header files" >&5 |
2328 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 2329 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2329 echo $ac_n "(cached) $ac_c" 1>&6 | 2330 echo $ac_n "(cached) $ac_c" 1>&6 |
2330 else | 2331 else |
2331 cat > conftest.$ac_ext <<EOF | 2332 cat > conftest.$ac_ext <<EOF |
2332 #line 2333 "configure" | 2333 #line 2334 "configure" |
2333 #include "confdefs.h" | 2334 #include "confdefs.h" |
2334 #include <stdlib.h> | 2335 #include <stdlib.h> |
2335 #include <stdarg.h> | 2336 #include <stdarg.h> |
2336 #include <string.h> | 2337 #include <string.h> |
2337 #include <float.h> | 2338 #include <float.h> |
2338 EOF | 2339 EOF |
2339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2340 { (eval echo configure:2341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2341 { (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2342 if test -z "$ac_err"; then | 2343 if test -z "$ac_err"; then |
2343 rm -rf conftest* | 2344 rm -rf conftest* |
2344 ac_cv_header_stdc=yes | 2345 ac_cv_header_stdc=yes |
2345 else | 2346 else |
2352 rm -f conftest* | 2353 rm -f conftest* |
2353 | 2354 |
2354 if test $ac_cv_header_stdc = yes; then | 2355 if test $ac_cv_header_stdc = yes; then |
2355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 2356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2356 cat > conftest.$ac_ext <<EOF | 2357 cat > conftest.$ac_ext <<EOF |
2357 #line 2358 "configure" | 2358 #line 2359 "configure" |
2358 #include "confdefs.h" | 2359 #include "confdefs.h" |
2359 #include <string.h> | 2360 #include <string.h> |
2360 EOF | 2361 EOF |
2361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2362 egrep "memchr" >/dev/null 2>&1; then | 2363 egrep "memchr" >/dev/null 2>&1; then |
2370 fi | 2371 fi |
2371 | 2372 |
2372 if test $ac_cv_header_stdc = yes; then | 2373 if test $ac_cv_header_stdc = yes; then |
2373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 2374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2374 cat > conftest.$ac_ext <<EOF | 2375 cat > conftest.$ac_ext <<EOF |
2375 #line 2376 "configure" | 2376 #line 2377 "configure" |
2376 #include "confdefs.h" | 2377 #include "confdefs.h" |
2377 #include <stdlib.h> | 2378 #include <stdlib.h> |
2378 EOF | 2379 EOF |
2379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2380 egrep "free" >/dev/null 2>&1; then | 2381 egrep "free" >/dev/null 2>&1; then |
2391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 2392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2392 if test "$cross_compiling" = yes; then | 2393 if test "$cross_compiling" = yes; then |
2393 : | 2394 : |
2394 else | 2395 else |
2395 cat > conftest.$ac_ext <<EOF | 2396 cat > conftest.$ac_ext <<EOF |
2396 #line 2397 "configure" | 2397 #line 2398 "configure" |
2397 #include "confdefs.h" | 2398 #include "confdefs.h" |
2398 #include <ctype.h> | 2399 #include <ctype.h> |
2399 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 2400 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2400 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 2401 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2401 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 2402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2402 int main () { int i; for (i = 0; i < 256; i++) | 2403 int main () { int i; for (i = 0; i < 256; i++) |
2403 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 2404 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
2404 exit (0); } | 2405 exit (0); } |
2405 | 2406 |
2406 EOF | 2407 EOF |
2407 if { (eval echo configure:2408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 2408 if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2408 then | 2409 then |
2409 : | 2410 : |
2410 else | 2411 else |
2411 echo "configure: failed program was:" >&5 | 2412 echo "configure: failed program was:" >&5 |
2412 cat conftest.$ac_ext >&5 | 2413 cat conftest.$ac_ext >&5 |
2426 EOF | 2427 EOF |
2427 | 2428 |
2428 fi | 2429 fi |
2429 | 2430 |
2430 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2431 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2431 echo "configure:2432: checking whether time.h and sys/time.h may both be included" >&5 | 2432 echo "configure:2433: checking whether time.h and sys/time.h may both be included" >&5 |
2432 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 2433 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2433 echo $ac_n "(cached) $ac_c" 1>&6 | 2434 echo $ac_n "(cached) $ac_c" 1>&6 |
2434 else | 2435 else |
2435 cat > conftest.$ac_ext <<EOF | 2436 cat > conftest.$ac_ext <<EOF |
2436 #line 2437 "configure" | 2437 #line 2438 "configure" |
2437 #include "confdefs.h" | 2438 #include "confdefs.h" |
2438 #include <sys/types.h> | 2439 #include <sys/types.h> |
2439 #include <sys/time.h> | 2440 #include <sys/time.h> |
2440 #include <time.h> | 2441 #include <time.h> |
2441 int main() { | 2442 int main() { |
2442 struct tm *tp; | 2443 struct tm *tp; |
2443 ; return 0; } | 2444 ; return 0; } |
2444 EOF | 2445 EOF |
2445 if { (eval echo configure:2446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2446 if { (eval echo configure:2447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2446 rm -rf conftest* | 2447 rm -rf conftest* |
2447 ac_cv_header_time=yes | 2448 ac_cv_header_time=yes |
2448 else | 2449 else |
2449 echo "configure: failed program was:" >&5 | 2450 echo "configure: failed program was:" >&5 |
2450 cat conftest.$ac_ext >&5 | 2451 cat conftest.$ac_ext >&5 |
2461 EOF | 2462 EOF |
2462 | 2463 |
2463 fi | 2464 fi |
2464 | 2465 |
2465 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 2466 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
2466 echo "configure:2467: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 2467 echo "configure:2468: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
2467 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then | 2468 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2468 echo $ac_n "(cached) $ac_c" 1>&6 | 2469 echo $ac_n "(cached) $ac_c" 1>&6 |
2469 else | 2470 else |
2470 cat > conftest.$ac_ext <<EOF | 2471 cat > conftest.$ac_ext <<EOF |
2471 #line 2472 "configure" | 2472 #line 2473 "configure" |
2472 #include "confdefs.h" | 2473 #include "confdefs.h" |
2473 #include <sys/types.h> | 2474 #include <sys/types.h> |
2474 #include <signal.h> | 2475 #include <signal.h> |
2475 /* NetBSD declares sys_siglist in unistd.h. */ | 2476 /* NetBSD declares sys_siglist in unistd.h. */ |
2476 #ifdef HAVE_UNISTD_H | 2477 #ifdef HAVE_UNISTD_H |
2478 #endif | 2479 #endif |
2479 int main() { | 2480 int main() { |
2480 char *msg = *(sys_siglist + 1); | 2481 char *msg = *(sys_siglist + 1); |
2481 ; return 0; } | 2482 ; return 0; } |
2482 EOF | 2483 EOF |
2483 if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2484 if { (eval echo configure:2485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2484 rm -rf conftest* | 2485 rm -rf conftest* |
2485 ac_cv_decl_sys_siglist=yes | 2486 ac_cv_decl_sys_siglist=yes |
2486 else | 2487 else |
2487 echo "configure: failed program was:" >&5 | 2488 echo "configure: failed program was:" >&5 |
2488 cat conftest.$ac_ext >&5 | 2489 cat conftest.$ac_ext >&5 |
2500 | 2501 |
2501 fi | 2502 fi |
2502 | 2503 |
2503 | 2504 |
2504 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 2505 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 |
2505 echo "configure:2506: checking for struct utimbuf" >&5 | 2506 echo "configure:2507: checking for struct utimbuf" >&5 |
2506 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then | 2507 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2507 echo $ac_n "(cached) $ac_c" 1>&6 | 2508 echo $ac_n "(cached) $ac_c" 1>&6 |
2508 else | 2509 else |
2509 cat > conftest.$ac_ext <<EOF | 2510 cat > conftest.$ac_ext <<EOF |
2510 #line 2511 "configure" | 2511 #line 2512 "configure" |
2511 #include "confdefs.h" | 2512 #include "confdefs.h" |
2512 #ifdef TIME_WITH_SYS_TIME | 2513 #ifdef TIME_WITH_SYS_TIME |
2513 #include <sys/time.h> | 2514 #include <sys/time.h> |
2514 #include <time.h> | 2515 #include <time.h> |
2515 #else | 2516 #else |
2524 #endif | 2525 #endif |
2525 int main() { | 2526 int main() { |
2526 static struct utimbuf x; x.actime = x.modtime; | 2527 static struct utimbuf x; x.actime = x.modtime; |
2527 ; return 0; } | 2528 ; return 0; } |
2528 EOF | 2529 EOF |
2529 if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2530 if { (eval echo configure:2531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2530 rm -rf conftest* | 2531 rm -rf conftest* |
2531 emacs_cv_struct_utimbuf=yes | 2532 emacs_cv_struct_utimbuf=yes |
2532 else | 2533 else |
2533 echo "configure: failed program was:" >&5 | 2534 echo "configure: failed program was:" >&5 |
2534 cat conftest.$ac_ext >&5 | 2535 cat conftest.$ac_ext >&5 |
2545 EOF | 2546 EOF |
2546 | 2547 |
2547 fi | 2548 fi |
2548 | 2549 |
2549 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 2550 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
2550 echo "configure:2551: checking return type of signal handlers" >&5 | 2551 echo "configure:2552: checking return type of signal handlers" >&5 |
2551 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 2552 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2552 echo $ac_n "(cached) $ac_c" 1>&6 | 2553 echo $ac_n "(cached) $ac_c" 1>&6 |
2553 else | 2554 else |
2554 cat > conftest.$ac_ext <<EOF | 2555 cat > conftest.$ac_ext <<EOF |
2555 #line 2556 "configure" | 2556 #line 2557 "configure" |
2556 #include "confdefs.h" | 2557 #include "confdefs.h" |
2557 #include <sys/types.h> | 2558 #include <sys/types.h> |
2558 #include <signal.h> | 2559 #include <signal.h> |
2559 #ifdef signal | 2560 #ifdef signal |
2560 #undef signal | 2561 #undef signal |
2567 | 2568 |
2568 int main() { | 2569 int main() { |
2569 int i; | 2570 int i; |
2570 ; return 0; } | 2571 ; return 0; } |
2571 EOF | 2572 EOF |
2572 if { (eval echo configure:2573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2573 rm -rf conftest* | 2574 rm -rf conftest* |
2574 ac_cv_type_signal=void | 2575 ac_cv_type_signal=void |
2575 else | 2576 else |
2576 echo "configure: failed program was:" >&5 | 2577 echo "configure: failed program was:" >&5 |
2577 cat conftest.$ac_ext >&5 | 2578 cat conftest.$ac_ext >&5 |
2587 EOF | 2588 EOF |
2588 | 2589 |
2589 | 2590 |
2590 | 2591 |
2591 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 | 2592 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 |
2592 echo "configure:2593: checking for speed_t" >&5 | 2593 echo "configure:2594: checking for speed_t" >&5 |
2593 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then | 2594 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then |
2594 echo $ac_n "(cached) $ac_c" 1>&6 | 2595 echo $ac_n "(cached) $ac_c" 1>&6 |
2595 else | 2596 else |
2596 cat > conftest.$ac_ext <<EOF | 2597 cat > conftest.$ac_ext <<EOF |
2597 #line 2598 "configure" | 2598 #line 2599 "configure" |
2598 #include "confdefs.h" | 2599 #include "confdefs.h" |
2599 #include <termios.h> | 2600 #include <termios.h> |
2600 int main() { | 2601 int main() { |
2601 speed_t x = 1; | 2602 speed_t x = 1; |
2602 ; return 0; } | 2603 ; return 0; } |
2603 EOF | 2604 EOF |
2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2605 if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2605 rm -rf conftest* | 2606 rm -rf conftest* |
2606 emacs_cv_speed_t=yes | 2607 emacs_cv_speed_t=yes |
2607 else | 2608 else |
2608 echo "configure: failed program was:" >&5 | 2609 echo "configure: failed program was:" >&5 |
2609 cat conftest.$ac_ext >&5 | 2610 cat conftest.$ac_ext >&5 |
2618 EOF | 2619 EOF |
2619 | 2620 |
2620 fi | 2621 fi |
2621 | 2622 |
2622 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 2623 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
2623 echo "configure:2624: checking for struct timeval" >&5 | 2624 echo "configure:2625: checking for struct timeval" >&5 |
2624 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then | 2625 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2625 echo $ac_n "(cached) $ac_c" 1>&6 | 2626 echo $ac_n "(cached) $ac_c" 1>&6 |
2626 else | 2627 else |
2627 cat > conftest.$ac_ext <<EOF | 2628 cat > conftest.$ac_ext <<EOF |
2628 #line 2629 "configure" | 2629 #line 2630 "configure" |
2629 #include "confdefs.h" | 2630 #include "confdefs.h" |
2630 #ifdef TIME_WITH_SYS_TIME | 2631 #ifdef TIME_WITH_SYS_TIME |
2631 #include <sys/time.h> | 2632 #include <sys/time.h> |
2632 #include <time.h> | 2633 #include <time.h> |
2633 #else | 2634 #else |
2639 #endif | 2640 #endif |
2640 int main() { | 2641 int main() { |
2641 static struct timeval x; x.tv_sec = x.tv_usec; | 2642 static struct timeval x; x.tv_sec = x.tv_usec; |
2642 ; return 0; } | 2643 ; return 0; } |
2643 EOF | 2644 EOF |
2644 if { (eval echo configure:2645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2645 if { (eval echo configure:2646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2645 rm -rf conftest* | 2646 rm -rf conftest* |
2646 emacs_cv_struct_timeval=yes | 2647 emacs_cv_struct_timeval=yes |
2647 else | 2648 else |
2648 echo "configure: failed program was:" >&5 | 2649 echo "configure: failed program was:" >&5 |
2649 cat conftest.$ac_ext >&5 | 2650 cat conftest.$ac_ext >&5 |
2661 EOF | 2662 EOF |
2662 | 2663 |
2663 fi | 2664 fi |
2664 | 2665 |
2665 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 | 2666 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 |
2666 echo "configure:2667: checking for struct exception" >&5 | 2667 echo "configure:2668: checking for struct exception" >&5 |
2667 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then | 2668 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then |
2668 echo $ac_n "(cached) $ac_c" 1>&6 | 2669 echo $ac_n "(cached) $ac_c" 1>&6 |
2669 else | 2670 else |
2670 cat > conftest.$ac_ext <<EOF | 2671 cat > conftest.$ac_ext <<EOF |
2671 #line 2672 "configure" | 2672 #line 2673 "configure" |
2672 #include "confdefs.h" | 2673 #include "confdefs.h" |
2673 #include <math.h> | 2674 #include <math.h> |
2674 int main() { | 2675 int main() { |
2675 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | 2676 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
2676 ; return 0; } | 2677 ; return 0; } |
2677 EOF | 2678 EOF |
2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2679 if { (eval echo configure:2680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2679 rm -rf conftest* | 2680 rm -rf conftest* |
2680 emacs_cv_struct_exception=yes | 2681 emacs_cv_struct_exception=yes |
2681 else | 2682 else |
2682 echo "configure: failed program was:" >&5 | 2683 echo "configure: failed program was:" >&5 |
2683 cat conftest.$ac_ext >&5 | 2684 cat conftest.$ac_ext >&5 |
2695 EOF | 2696 EOF |
2696 | 2697 |
2697 fi | 2698 fi |
2698 | 2699 |
2699 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 2700 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
2700 echo "configure:2701: checking whether struct tm is in sys/time.h or time.h" >&5 | 2701 echo "configure:2702: checking whether struct tm is in sys/time.h or time.h" >&5 |
2701 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 2702 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2702 echo $ac_n "(cached) $ac_c" 1>&6 | 2703 echo $ac_n "(cached) $ac_c" 1>&6 |
2703 else | 2704 else |
2704 cat > conftest.$ac_ext <<EOF | 2705 cat > conftest.$ac_ext <<EOF |
2705 #line 2706 "configure" | 2706 #line 2707 "configure" |
2706 #include "confdefs.h" | 2707 #include "confdefs.h" |
2707 #include <sys/types.h> | 2708 #include <sys/types.h> |
2708 #include <time.h> | 2709 #include <time.h> |
2709 int main() { | 2710 int main() { |
2710 struct tm *tp; tp->tm_sec; | 2711 struct tm *tp; tp->tm_sec; |
2711 ; return 0; } | 2712 ; return 0; } |
2712 EOF | 2713 EOF |
2713 if { (eval echo configure:2714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2714 if { (eval echo configure:2715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2714 rm -rf conftest* | 2715 rm -rf conftest* |
2715 ac_cv_struct_tm=time.h | 2716 ac_cv_struct_tm=time.h |
2716 else | 2717 else |
2717 echo "configure: failed program was:" >&5 | 2718 echo "configure: failed program was:" >&5 |
2718 cat conftest.$ac_ext >&5 | 2719 cat conftest.$ac_ext >&5 |
2729 EOF | 2730 EOF |
2730 | 2731 |
2731 fi | 2732 fi |
2732 | 2733 |
2733 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 2734 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
2734 echo "configure:2735: checking for tm_zone in struct tm" >&5 | 2735 echo "configure:2736: checking for tm_zone in struct tm" >&5 |
2735 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 2736 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2736 echo $ac_n "(cached) $ac_c" 1>&6 | 2737 echo $ac_n "(cached) $ac_c" 1>&6 |
2737 else | 2738 else |
2738 cat > conftest.$ac_ext <<EOF | 2739 cat > conftest.$ac_ext <<EOF |
2739 #line 2740 "configure" | 2740 #line 2741 "configure" |
2740 #include "confdefs.h" | 2741 #include "confdefs.h" |
2741 #include <sys/types.h> | 2742 #include <sys/types.h> |
2742 #include <$ac_cv_struct_tm> | 2743 #include <$ac_cv_struct_tm> |
2743 int main() { | 2744 int main() { |
2744 struct tm tm; tm.tm_zone; | 2745 struct tm tm; tm.tm_zone; |
2745 ; return 0; } | 2746 ; return 0; } |
2746 EOF | 2747 EOF |
2747 if { (eval echo configure:2748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2748 if { (eval echo configure:2749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2748 rm -rf conftest* | 2749 rm -rf conftest* |
2749 ac_cv_struct_tm_zone=yes | 2750 ac_cv_struct_tm_zone=yes |
2750 else | 2751 else |
2751 echo "configure: failed program was:" >&5 | 2752 echo "configure: failed program was:" >&5 |
2752 cat conftest.$ac_ext >&5 | 2753 cat conftest.$ac_ext >&5 |
2762 #define HAVE_TM_ZONE 1 | 2763 #define HAVE_TM_ZONE 1 |
2763 EOF | 2764 EOF |
2764 | 2765 |
2765 else | 2766 else |
2766 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 2767 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
2767 echo "configure:2768: checking for tzname" >&5 | 2768 echo "configure:2769: checking for tzname" >&5 |
2768 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 2769 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
2769 echo $ac_n "(cached) $ac_c" 1>&6 | 2770 echo $ac_n "(cached) $ac_c" 1>&6 |
2770 else | 2771 else |
2771 cat > conftest.$ac_ext <<EOF | 2772 cat > conftest.$ac_ext <<EOF |
2772 #line 2773 "configure" | 2773 #line 2774 "configure" |
2773 #include "confdefs.h" | 2774 #include "confdefs.h" |
2774 #include <time.h> | 2775 #include <time.h> |
2775 #ifndef tzname /* For SGI. */ | 2776 #ifndef tzname /* For SGI. */ |
2776 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 2777 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
2777 #endif | 2778 #endif |
2778 int main() { | 2779 int main() { |
2779 atoi(*tzname); | 2780 atoi(*tzname); |
2780 ; return 0; } | 2781 ; return 0; } |
2781 EOF | 2782 EOF |
2782 if { (eval echo configure:2783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2783 if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2783 rm -rf conftest* | 2784 rm -rf conftest* |
2784 ac_cv_var_tzname=yes | 2785 ac_cv_var_tzname=yes |
2785 else | 2786 else |
2786 echo "configure: failed program was:" >&5 | 2787 echo "configure: failed program was:" >&5 |
2787 cat conftest.$ac_ext >&5 | 2788 cat conftest.$ac_ext >&5 |
2799 | 2800 |
2800 fi | 2801 fi |
2801 fi | 2802 fi |
2802 | 2803 |
2803 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | 2804 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
2804 echo "configure:2805: checking for tm_gmtoff in struct tm" >&5 | 2805 echo "configure:2806: checking for tm_gmtoff in struct tm" >&5 |
2805 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then | 2806 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then |
2806 echo $ac_n "(cached) $ac_c" 1>&6 | 2807 echo $ac_n "(cached) $ac_c" 1>&6 |
2807 else | 2808 else |
2808 cat > conftest.$ac_ext <<EOF | 2809 cat > conftest.$ac_ext <<EOF |
2809 #line 2810 "configure" | 2810 #line 2811 "configure" |
2810 #include "confdefs.h" | 2811 #include "confdefs.h" |
2811 #include <time.h> | 2812 #include <time.h> |
2812 int main() { | 2813 int main() { |
2813 struct tm t; t.tm_gmtoff = 0 | 2814 struct tm t; t.tm_gmtoff = 0 |
2814 ; return 0; } | 2815 ; return 0; } |
2815 EOF | 2816 EOF |
2816 if { (eval echo configure:2817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2817 rm -rf conftest* | 2818 rm -rf conftest* |
2818 emacs_cv_tm_gmtoff=yes | 2819 emacs_cv_tm_gmtoff=yes |
2819 else | 2820 else |
2820 echo "configure: failed program was:" >&5 | 2821 echo "configure: failed program was:" >&5 |
2821 cat conftest.$ac_ext >&5 | 2822 cat conftest.$ac_ext >&5 |
2833 | 2834 |
2834 fi | 2835 fi |
2835 | 2836 |
2836 | 2837 |
2837 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | 2838 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
2838 echo "configure:2839: checking for ${CC-cc} option to accept ANSI C" >&5 | 2839 echo "configure:2840: checking for ${CC-cc} option to accept ANSI C" >&5 |
2839 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then | 2840 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then |
2840 echo $ac_n "(cached) $ac_c" 1>&6 | 2841 echo $ac_n "(cached) $ac_c" 1>&6 |
2841 else | 2842 else |
2842 ac_cv_prog_cc_stdc=no | 2843 ac_cv_prog_cc_stdc=no |
2843 ac_save_CC="$CC" | 2844 ac_save_CC="$CC" |
2850 # SVR4 -Xc -D__EXTENSIONS__ | 2851 # SVR4 -Xc -D__EXTENSIONS__ |
2851 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 2852 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2852 do | 2853 do |
2853 CC="$ac_save_CC $ac_arg" | 2854 CC="$ac_save_CC $ac_arg" |
2854 cat > conftest.$ac_ext <<EOF | 2855 cat > conftest.$ac_ext <<EOF |
2855 #line 2856 "configure" | 2856 #line 2857 "configure" |
2856 #include "confdefs.h" | 2857 #include "confdefs.h" |
2857 #include <stdarg.h> | 2858 #include <stdarg.h> |
2858 #include <stdio.h> | 2859 #include <stdio.h> |
2859 #include <sys/types.h> | 2860 #include <sys/types.h> |
2860 #include <sys/stat.h> | 2861 #include <sys/stat.h> |
2884 char **argv; | 2885 char **argv; |
2885 int main() { | 2886 int main() { |
2886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | 2887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2887 ; return 0; } | 2888 ; return 0; } |
2888 EOF | 2889 EOF |
2889 if { (eval echo configure:2890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2890 if { (eval echo configure:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2890 rm -rf conftest* | 2891 rm -rf conftest* |
2891 ac_cv_prog_cc_stdc="$ac_arg"; break | 2892 ac_cv_prog_cc_stdc="$ac_arg"; break |
2892 else | 2893 else |
2893 echo "configure: failed program was:" >&5 | 2894 echo "configure: failed program was:" >&5 |
2894 cat conftest.$ac_ext >&5 | 2895 cat conftest.$ac_ext >&5 |
2906 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | 2907 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 |
2907 CC="$CC $ac_cv_prog_cc_stdc" ;; | 2908 CC="$CC $ac_cv_prog_cc_stdc" ;; |
2908 esac | 2909 esac |
2909 | 2910 |
2910 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | 2911 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 |
2911 echo "configure:2912: checking for function prototypes" >&5 | 2912 echo "configure:2913: checking for function prototypes" >&5 |
2912 if test "$ac_cv_prog_cc_stdc" != no; then | 2913 if test "$ac_cv_prog_cc_stdc" != no; then |
2913 echo "$ac_t""yes" 1>&6 | 2914 echo "$ac_t""yes" 1>&6 |
2914 cat >> confdefs.h <<\EOF | 2915 cat >> confdefs.h <<\EOF |
2915 #define PROTOTYPES 1 | 2916 #define PROTOTYPES 1 |
2916 EOF | 2917 EOF |
2918 else | 2919 else |
2919 echo "$ac_t""no" 1>&6 | 2920 echo "$ac_t""no" 1>&6 |
2920 fi | 2921 fi |
2921 | 2922 |
2922 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 2923 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
2923 echo "configure:2924: checking for working volatile" >&5 | 2924 echo "configure:2925: checking for working volatile" >&5 |
2924 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then | 2925 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then |
2925 echo $ac_n "(cached) $ac_c" 1>&6 | 2926 echo $ac_n "(cached) $ac_c" 1>&6 |
2926 else | 2927 else |
2927 cat > conftest.$ac_ext <<EOF | 2928 cat > conftest.$ac_ext <<EOF |
2928 #line 2929 "configure" | 2929 #line 2930 "configure" |
2929 #include "confdefs.h" | 2930 #include "confdefs.h" |
2930 | 2931 |
2931 int main() { | 2932 int main() { |
2932 | 2933 |
2933 volatile int x; | 2934 volatile int x; |
2934 int * volatile y; | 2935 int * volatile y; |
2935 ; return 0; } | 2936 ; return 0; } |
2936 EOF | 2937 EOF |
2937 if { (eval echo configure:2938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2938 if { (eval echo configure:2939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2938 rm -rf conftest* | 2939 rm -rf conftest* |
2939 ac_cv_c_volatile=yes | 2940 ac_cv_c_volatile=yes |
2940 else | 2941 else |
2941 echo "configure: failed program was:" >&5 | 2942 echo "configure: failed program was:" >&5 |
2942 cat conftest.$ac_ext >&5 | 2943 cat conftest.$ac_ext >&5 |
2953 EOF | 2954 EOF |
2954 | 2955 |
2955 fi | 2956 fi |
2956 | 2957 |
2957 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 2958 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
2958 echo "configure:2959: checking for working const" >&5 | 2959 echo "configure:2960: checking for working const" >&5 |
2959 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 2960 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2960 echo $ac_n "(cached) $ac_c" 1>&6 | 2961 echo $ac_n "(cached) $ac_c" 1>&6 |
2961 else | 2962 else |
2962 cat > conftest.$ac_ext <<EOF | 2963 cat > conftest.$ac_ext <<EOF |
2963 #line 2964 "configure" | 2964 #line 2965 "configure" |
2964 #include "confdefs.h" | 2965 #include "confdefs.h" |
2965 | 2966 |
2966 int main() { | 2967 int main() { |
2967 | 2968 |
2968 /* Ultrix mips cc rejects this. */ | 2969 /* Ultrix mips cc rejects this. */ |
3007 const int foo = 10; | 3008 const int foo = 10; |
3008 } | 3009 } |
3009 | 3010 |
3010 ; return 0; } | 3011 ; return 0; } |
3011 EOF | 3012 EOF |
3012 if { (eval echo configure:3013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3013 rm -rf conftest* | 3014 rm -rf conftest* |
3014 ac_cv_c_const=yes | 3015 ac_cv_c_const=yes |
3015 else | 3016 else |
3016 echo "configure: failed program was:" >&5 | 3017 echo "configure: failed program was:" >&5 |
3017 cat conftest.$ac_ext >&5 | 3018 cat conftest.$ac_ext >&5 |
3028 EOF | 3029 EOF |
3029 | 3030 |
3030 fi | 3031 fi |
3031 | 3032 |
3032 echo $ac_n "checking for void * support""... $ac_c" 1>&6 | 3033 echo $ac_n "checking for void * support""... $ac_c" 1>&6 |
3033 echo "configure:3034: checking for void * support" >&5 | 3034 echo "configure:3035: checking for void * support" >&5 |
3034 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then | 3035 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then |
3035 echo $ac_n "(cached) $ac_c" 1>&6 | 3036 echo $ac_n "(cached) $ac_c" 1>&6 |
3036 else | 3037 else |
3037 cat > conftest.$ac_ext <<EOF | 3038 cat > conftest.$ac_ext <<EOF |
3038 #line 3039 "configure" | 3039 #line 3040 "configure" |
3039 #include "confdefs.h" | 3040 #include "confdefs.h" |
3040 | 3041 |
3041 int main() { | 3042 int main() { |
3042 void * foo; | 3043 void * foo; |
3043 ; return 0; } | 3044 ; return 0; } |
3044 EOF | 3045 EOF |
3045 if { (eval echo configure:3046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3046 if { (eval echo configure:3047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3046 rm -rf conftest* | 3047 rm -rf conftest* |
3047 emacs_cv_void_star=yes | 3048 emacs_cv_void_star=yes |
3048 else | 3049 else |
3049 echo "configure: failed program was:" >&5 | 3050 echo "configure: failed program was:" >&5 |
3050 cat conftest.$ac_ext >&5 | 3051 cat conftest.$ac_ext >&5 |
3066 EOF | 3067 EOF |
3067 | 3068 |
3068 fi | 3069 fi |
3069 | 3070 |
3070 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 3071 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3071 echo "configure:3072: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 3072 echo "configure:3073: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
3072 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 3073 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3073 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 3074 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
3074 echo $ac_n "(cached) $ac_c" 1>&6 | 3075 echo $ac_n "(cached) $ac_c" 1>&6 |
3075 else | 3076 else |
3076 cat > conftestmake <<\EOF | 3077 cat > conftestmake <<\EOF |
3094 SET_MAKE="MAKE=${MAKE-make}" | 3095 SET_MAKE="MAKE=${MAKE-make}" |
3095 fi | 3096 fi |
3096 | 3097 |
3097 | 3098 |
3098 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 3099 echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
3099 echo "configure:3100: checking for long file names" >&5 | 3100 echo "configure:3101: checking for long file names" >&5 |
3100 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then | 3101 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3101 echo $ac_n "(cached) $ac_c" 1>&6 | 3102 echo $ac_n "(cached) $ac_c" 1>&6 |
3102 else | 3103 else |
3103 ac_cv_sys_long_file_names=yes | 3104 ac_cv_sys_long_file_names=yes |
3104 # Test for long file names in all the places we know might matter: | 3105 # Test for long file names in all the places we know might matter: |
3145 # If we find X, set shell vars x_includes and x_libraries to the | 3146 # If we find X, set shell vars x_includes and x_libraries to the |
3146 # paths, otherwise set no_x=yes. | 3147 # paths, otherwise set no_x=yes. |
3147 # Uses ac_ vars as temps to allow command line to override cache and checks. | 3148 # Uses ac_ vars as temps to allow command line to override cache and checks. |
3148 # --without-x overrides everything else, but does not touch the cache. | 3149 # --without-x overrides everything else, but does not touch the cache. |
3149 echo $ac_n "checking for X""... $ac_c" 1>&6 | 3150 echo $ac_n "checking for X""... $ac_c" 1>&6 |
3150 echo "configure:3151: checking for X" >&5 | 3151 echo "configure:3152: checking for X" >&5 |
3151 | 3152 |
3152 # Check whether --with-x or --without-x was given. | 3153 # Check whether --with-x or --without-x was given. |
3153 if test "${with_x+set}" = set; then | 3154 if test "${with_x+set}" = set; then |
3154 withval="$with_x" | 3155 withval="$with_x" |
3155 : | 3156 : |
3207 # Guess where to find include files, by looking for this one X11 .h file. | 3208 # Guess where to find include files, by looking for this one X11 .h file. |
3208 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 3209 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
3209 | 3210 |
3210 # First, try using that file with no special directory specified. | 3211 # First, try using that file with no special directory specified. |
3211 cat > conftest.$ac_ext <<EOF | 3212 cat > conftest.$ac_ext <<EOF |
3212 #line 3213 "configure" | 3213 #line 3214 "configure" |
3213 #include "confdefs.h" | 3214 #include "confdefs.h" |
3214 #include <$x_direct_test_include> | 3215 #include <$x_direct_test_include> |
3215 EOF | 3216 EOF |
3216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3217 { (eval echo configure:3218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3218 { (eval echo configure:3219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3219 if test -z "$ac_err"; then | 3220 if test -z "$ac_err"; then |
3220 rm -rf conftest* | 3221 rm -rf conftest* |
3221 # We can compile using X headers with no special include directory. | 3222 # We can compile using X headers with no special include directory. |
3222 ac_x_includes= | 3223 ac_x_includes= |
3281 # See if we find them without any special options. | 3282 # See if we find them without any special options. |
3282 # Don't add to $LIBS permanently. | 3283 # Don't add to $LIBS permanently. |
3283 ac_save_LIBS="$LIBS" | 3284 ac_save_LIBS="$LIBS" |
3284 LIBS="-l$x_direct_test_library $LIBS" | 3285 LIBS="-l$x_direct_test_library $LIBS" |
3285 cat > conftest.$ac_ext <<EOF | 3286 cat > conftest.$ac_ext <<EOF |
3286 #line 3287 "configure" | 3287 #line 3288 "configure" |
3287 #include "confdefs.h" | 3288 #include "confdefs.h" |
3288 | 3289 |
3289 int main() { | 3290 int main() { |
3290 ${x_direct_test_function}() | 3291 ${x_direct_test_function}() |
3291 ; return 0; } | 3292 ; return 0; } |
3292 EOF | 3293 EOF |
3293 if { (eval echo configure:3294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3294 if { (eval echo configure:3295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3294 rm -rf conftest* | 3295 rm -rf conftest* |
3295 LIBS="$ac_save_LIBS" | 3296 LIBS="$ac_save_LIBS" |
3296 # We can link X programs with no special library path. | 3297 # We can link X programs with no special library path. |
3297 ac_x_libraries= | 3298 ac_x_libraries= |
3298 else | 3299 else |
3463 #### Extract some information from the operating system and machine files. | 3464 #### Extract some information from the operating system and machine files. |
3464 | 3465 |
3465 echo "checking the machine- and system-dependent files to find out | 3466 echo "checking the machine- and system-dependent files to find out |
3466 - which libraries the lib-src programs will want, and | 3467 - which libraries the lib-src programs will want, and |
3467 - whether the GNU malloc routines are usable" 1>&6 | 3468 - whether the GNU malloc routines are usable" 1>&6 |
3468 echo "configure:3469: checking the machine- and system-dependent files to find out | 3469 echo "configure:3470: checking the machine- and system-dependent files to find out |
3469 - which libraries the lib-src programs will want, and | 3470 - which libraries the lib-src programs will want, and |
3470 - whether the GNU malloc routines are usable" >&5 | 3471 - whether the GNU malloc routines are usable" >&5 |
3471 | 3472 |
3472 ### First figure out CFLAGS (which we use for running the compiler here) | 3473 ### First figure out CFLAGS (which we use for running the compiler here) |
3473 ### and REAL_CFLAGS (which we use for real compilation). | 3474 ### and REAL_CFLAGS (which we use for real compilation). |
3597 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 3598 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
3598 # Assume not, until told otherwise. | 3599 # Assume not, until told otherwise. |
3599 GNU_MALLOC=yes | 3600 GNU_MALLOC=yes |
3600 doug_lea_malloc=yes | 3601 doug_lea_malloc=yes |
3601 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 3602 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 |
3602 echo "configure:3603: checking for malloc_get_state" >&5 | 3603 echo "configure:3604: checking for malloc_get_state" >&5 |
3603 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then | 3604 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3604 echo $ac_n "(cached) $ac_c" 1>&6 | 3605 echo $ac_n "(cached) $ac_c" 1>&6 |
3605 else | 3606 else |
3606 cat > conftest.$ac_ext <<EOF | 3607 cat > conftest.$ac_ext <<EOF |
3607 #line 3608 "configure" | 3608 #line 3609 "configure" |
3608 #include "confdefs.h" | 3609 #include "confdefs.h" |
3609 /* System header to define __stub macros and hopefully few prototypes, | 3610 /* System header to define __stub macros and hopefully few prototypes, |
3610 which can conflict with char malloc_get_state(); below. */ | 3611 which can conflict with char malloc_get_state(); below. */ |
3611 #include <assert.h> | 3612 #include <assert.h> |
3612 /* Override any gcc2 internal prototype to avoid an error. */ | 3613 /* Override any gcc2 internal prototype to avoid an error. */ |
3625 malloc_get_state(); | 3626 malloc_get_state(); |
3626 #endif | 3627 #endif |
3627 | 3628 |
3628 ; return 0; } | 3629 ; return 0; } |
3629 EOF | 3630 EOF |
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3631 if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3631 rm -rf conftest* | 3632 rm -rf conftest* |
3632 eval "ac_cv_func_malloc_get_state=yes" | 3633 eval "ac_cv_func_malloc_get_state=yes" |
3633 else | 3634 else |
3634 echo "configure: failed program was:" >&5 | 3635 echo "configure: failed program was:" >&5 |
3635 cat conftest.$ac_ext >&5 | 3636 cat conftest.$ac_ext >&5 |
3646 echo "$ac_t""no" 1>&6 | 3647 echo "$ac_t""no" 1>&6 |
3647 doug_lea_malloc=no | 3648 doug_lea_malloc=no |
3648 fi | 3649 fi |
3649 | 3650 |
3650 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 3651 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 |
3651 echo "configure:3652: checking for malloc_set_state" >&5 | 3652 echo "configure:3653: checking for malloc_set_state" >&5 |
3652 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then | 3653 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3653 echo $ac_n "(cached) $ac_c" 1>&6 | 3654 echo $ac_n "(cached) $ac_c" 1>&6 |
3654 else | 3655 else |
3655 cat > conftest.$ac_ext <<EOF | 3656 cat > conftest.$ac_ext <<EOF |
3656 #line 3657 "configure" | 3657 #line 3658 "configure" |
3657 #include "confdefs.h" | 3658 #include "confdefs.h" |
3658 /* System header to define __stub macros and hopefully few prototypes, | 3659 /* System header to define __stub macros and hopefully few prototypes, |
3659 which can conflict with char malloc_set_state(); below. */ | 3660 which can conflict with char malloc_set_state(); below. */ |
3660 #include <assert.h> | 3661 #include <assert.h> |
3661 /* Override any gcc2 internal prototype to avoid an error. */ | 3662 /* Override any gcc2 internal prototype to avoid an error. */ |
3674 malloc_set_state(); | 3675 malloc_set_state(); |
3675 #endif | 3676 #endif |
3676 | 3677 |
3677 ; return 0; } | 3678 ; return 0; } |
3678 EOF | 3679 EOF |
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3680 rm -rf conftest* | 3681 rm -rf conftest* |
3681 eval "ac_cv_func_malloc_set_state=yes" | 3682 eval "ac_cv_func_malloc_set_state=yes" |
3682 else | 3683 else |
3683 echo "configure: failed program was:" >&5 | 3684 echo "configure: failed program was:" >&5 |
3684 cat conftest.$ac_ext >&5 | 3685 cat conftest.$ac_ext >&5 |
3695 echo "$ac_t""no" 1>&6 | 3696 echo "$ac_t""no" 1>&6 |
3696 doug_lea_malloc=no | 3697 doug_lea_malloc=no |
3697 fi | 3698 fi |
3698 | 3699 |
3699 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 3700 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 |
3700 echo "configure:3701: checking whether __after_morecore_hook exists" >&5 | 3701 echo "configure:3702: checking whether __after_morecore_hook exists" >&5 |
3701 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then | 3702 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3702 echo $ac_n "(cached) $ac_c" 1>&6 | 3703 echo $ac_n "(cached) $ac_c" 1>&6 |
3703 else | 3704 else |
3704 cat > conftest.$ac_ext <<EOF | 3705 cat > conftest.$ac_ext <<EOF |
3705 #line 3706 "configure" | 3706 #line 3707 "configure" |
3706 #include "confdefs.h" | 3707 #include "confdefs.h" |
3707 extern void (* __after_morecore_hook)(); | 3708 extern void (* __after_morecore_hook)(); |
3708 int main() { | 3709 int main() { |
3709 __after_morecore_hook = 0 | 3710 __after_morecore_hook = 0 |
3710 ; return 0; } | 3711 ; return 0; } |
3711 EOF | 3712 EOF |
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3713 if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3713 rm -rf conftest* | 3714 rm -rf conftest* |
3714 emacs_cv_var___after_morecore_hook=yes | 3715 emacs_cv_var___after_morecore_hook=yes |
3715 else | 3716 else |
3716 echo "configure: failed program was:" >&5 | 3717 echo "configure: failed program was:" >&5 |
3717 cat conftest.$ac_ext >&5 | 3718 cat conftest.$ac_ext >&5 |
3754 fi | 3755 fi |
3755 | 3756 |
3756 LIBS="$libsrc_libs $LIBS" | 3757 LIBS="$libsrc_libs $LIBS" |
3757 | 3758 |
3758 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 3759 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3759 echo "configure:3760: checking for dnet_ntoa in -ldnet" >&5 | 3760 echo "configure:3761: checking for dnet_ntoa in -ldnet" >&5 |
3760 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 3761 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3762 echo $ac_n "(cached) $ac_c" 1>&6 | 3763 echo $ac_n "(cached) $ac_c" 1>&6 |
3763 else | 3764 else |
3764 ac_save_LIBS="$LIBS" | 3765 ac_save_LIBS="$LIBS" |
3765 LIBS="-ldnet $LIBS" | 3766 LIBS="-ldnet $LIBS" |
3766 cat > conftest.$ac_ext <<EOF | 3767 cat > conftest.$ac_ext <<EOF |
3767 #line 3768 "configure" | 3768 #line 3769 "configure" |
3768 #include "confdefs.h" | 3769 #include "confdefs.h" |
3769 /* Override any gcc2 internal prototype to avoid an error. */ | 3770 /* Override any gcc2 internal prototype to avoid an error. */ |
3770 /* We use char because int might match the return type of a gcc2 | 3771 /* We use char because int might match the return type of a gcc2 |
3771 builtin and then its argument prototype would still apply. */ | 3772 builtin and then its argument prototype would still apply. */ |
3772 char dnet_ntoa(); | 3773 char dnet_ntoa(); |
3773 | 3774 |
3774 int main() { | 3775 int main() { |
3775 dnet_ntoa() | 3776 dnet_ntoa() |
3776 ; return 0; } | 3777 ; return 0; } |
3777 EOF | 3778 EOF |
3778 if { (eval echo configure:3779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3779 if { (eval echo configure:3780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3779 rm -rf conftest* | 3780 rm -rf conftest* |
3780 eval "ac_cv_lib_$ac_lib_var=yes" | 3781 eval "ac_cv_lib_$ac_lib_var=yes" |
3781 else | 3782 else |
3782 echo "configure: failed program was:" >&5 | 3783 echo "configure: failed program was:" >&5 |
3783 cat conftest.$ac_ext >&5 | 3784 cat conftest.$ac_ext >&5 |
3802 echo "$ac_t""no" 1>&6 | 3803 echo "$ac_t""no" 1>&6 |
3803 fi | 3804 fi |
3804 | 3805 |
3805 | 3806 |
3806 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 3807 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 |
3807 echo "configure:3808: checking for main in -lXbsd" >&5 | 3808 echo "configure:3809: checking for main in -lXbsd" >&5 |
3808 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 3809 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3810 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3810 echo $ac_n "(cached) $ac_c" 1>&6 | 3811 echo $ac_n "(cached) $ac_c" 1>&6 |
3811 else | 3812 else |
3812 ac_save_LIBS="$LIBS" | 3813 ac_save_LIBS="$LIBS" |
3813 LIBS="-lXbsd $LIBS" | 3814 LIBS="-lXbsd $LIBS" |
3814 cat > conftest.$ac_ext <<EOF | 3815 cat > conftest.$ac_ext <<EOF |
3815 #line 3816 "configure" | 3816 #line 3817 "configure" |
3816 #include "confdefs.h" | 3817 #include "confdefs.h" |
3817 | 3818 |
3818 int main() { | 3819 int main() { |
3819 main() | 3820 main() |
3820 ; return 0; } | 3821 ; return 0; } |
3821 EOF | 3822 EOF |
3822 if { (eval echo configure:3823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3823 if { (eval echo configure:3824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3823 rm -rf conftest* | 3824 rm -rf conftest* |
3824 eval "ac_cv_lib_$ac_lib_var=yes" | 3825 eval "ac_cv_lib_$ac_lib_var=yes" |
3825 else | 3826 else |
3826 echo "configure: failed program was:" >&5 | 3827 echo "configure: failed program was:" >&5 |
3827 cat conftest.$ac_ext >&5 | 3828 cat conftest.$ac_ext >&5 |
3839 echo "$ac_t""no" 1>&6 | 3840 echo "$ac_t""no" 1>&6 |
3840 fi | 3841 fi |
3841 | 3842 |
3842 | 3843 |
3843 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | 3844 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 |
3844 echo "configure:3845: checking for cma_open in -lpthreads" >&5 | 3845 echo "configure:3846: checking for cma_open in -lpthreads" >&5 |
3845 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | 3846 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 3847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3847 echo $ac_n "(cached) $ac_c" 1>&6 | 3848 echo $ac_n "(cached) $ac_c" 1>&6 |
3848 else | 3849 else |
3849 ac_save_LIBS="$LIBS" | 3850 ac_save_LIBS="$LIBS" |
3850 LIBS="-lpthreads $LIBS" | 3851 LIBS="-lpthreads $LIBS" |
3851 cat > conftest.$ac_ext <<EOF | 3852 cat > conftest.$ac_ext <<EOF |
3852 #line 3853 "configure" | 3853 #line 3854 "configure" |
3853 #include "confdefs.h" | 3854 #include "confdefs.h" |
3854 /* Override any gcc2 internal prototype to avoid an error. */ | 3855 /* Override any gcc2 internal prototype to avoid an error. */ |
3855 /* We use char because int might match the return type of a gcc2 | 3856 /* We use char because int might match the return type of a gcc2 |
3856 builtin and then its argument prototype would still apply. */ | 3857 builtin and then its argument prototype would still apply. */ |
3857 char cma_open(); | 3858 char cma_open(); |
3858 | 3859 |
3859 int main() { | 3860 int main() { |
3860 cma_open() | 3861 cma_open() |
3861 ; return 0; } | 3862 ; return 0; } |
3862 EOF | 3863 EOF |
3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3864 rm -rf conftest* | 3865 rm -rf conftest* |
3865 eval "ac_cv_lib_$ac_lib_var=yes" | 3866 eval "ac_cv_lib_$ac_lib_var=yes" |
3866 else | 3867 else |
3867 echo "configure: failed program was:" >&5 | 3868 echo "configure: failed program was:" >&5 |
3868 cat conftest.$ac_ext >&5 | 3869 cat conftest.$ac_ext >&5 |
3887 echo "$ac_t""no" 1>&6 | 3888 echo "$ac_t""no" 1>&6 |
3888 fi | 3889 fi |
3889 | 3890 |
3890 | 3891 |
3891 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | 3892 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 |
3892 echo "configure:3893: checking for XFree86 in /usr/X386" >&5 | 3893 echo "configure:3894: checking for XFree86 in /usr/X386" >&5 |
3893 if test -d /usr/X386/include; then | 3894 if test -d /usr/X386/include; then |
3894 HAVE_XFREE386=yes | 3895 HAVE_XFREE386=yes |
3895 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | 3896 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
3896 else | 3897 else |
3897 HAVE_XFREE386=no | 3898 HAVE_XFREE386=no |
3916 export LD_RUN_PATH | 3917 export LD_RUN_PATH |
3917 fi | 3918 fi |
3918 | 3919 |
3919 if test "${opsys}" = "gnu-linux"; then | 3920 if test "${opsys}" = "gnu-linux"; then |
3920 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | 3921 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 |
3921 echo "configure:3922: checking whether X on GNU/Linux needs -b to link" >&5 | 3922 echo "configure:3923: checking whether X on GNU/Linux needs -b to link" >&5 |
3922 cat > conftest.$ac_ext <<EOF | 3923 cat > conftest.$ac_ext <<EOF |
3923 #line 3924 "configure" | 3924 #line 3925 "configure" |
3924 #include "confdefs.h" | 3925 #include "confdefs.h" |
3925 | 3926 |
3926 int main() { | 3927 int main() { |
3927 XOpenDisplay ("foo"); | 3928 XOpenDisplay ("foo"); |
3928 ; return 0; } | 3929 ; return 0; } |
3929 EOF | 3930 EOF |
3930 if { (eval echo configure:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3931 rm -rf conftest* | 3932 rm -rf conftest* |
3932 xlinux_first_failure=no | 3933 xlinux_first_failure=no |
3933 else | 3934 else |
3934 echo "configure: failed program was:" >&5 | 3935 echo "configure: failed program was:" >&5 |
3935 cat conftest.$ac_ext >&5 | 3936 cat conftest.$ac_ext >&5 |
3945 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 3946 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
3946 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 3947 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
3947 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 3948 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
3948 LIBS="$LIBS -b i486-linuxaout" | 3949 LIBS="$LIBS -b i486-linuxaout" |
3949 cat > conftest.$ac_ext <<EOF | 3950 cat > conftest.$ac_ext <<EOF |
3950 #line 3951 "configure" | 3951 #line 3952 "configure" |
3951 #include "confdefs.h" | 3952 #include "confdefs.h" |
3952 | 3953 |
3953 int main() { | 3954 int main() { |
3954 XOpenDisplay ("foo"); | 3955 XOpenDisplay ("foo"); |
3955 ; return 0; } | 3956 ; return 0; } |
3956 EOF | 3957 EOF |
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3958 rm -rf conftest* | 3959 rm -rf conftest* |
3959 xlinux_second_failure=no | 3960 xlinux_second_failure=no |
3960 else | 3961 else |
3961 echo "configure: failed program was:" >&5 | 3962 echo "configure: failed program was:" >&5 |
3962 cat conftest.$ac_ext >&5 | 3963 cat conftest.$ac_ext >&5 |
3982 | 3983 |
3983 for ac_func in XrmSetDatabase XScreenResourceString \ | 3984 for ac_func in XrmSetDatabase XScreenResourceString \ |
3984 XScreenNumberOfScreen XSetWMProtocols | 3985 XScreenNumberOfScreen XSetWMProtocols |
3985 do | 3986 do |
3986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 3987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3987 echo "configure:3988: checking for $ac_func" >&5 | 3988 echo "configure:3989: checking for $ac_func" >&5 |
3988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 3989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3989 echo $ac_n "(cached) $ac_c" 1>&6 | 3990 echo $ac_n "(cached) $ac_c" 1>&6 |
3990 else | 3991 else |
3991 cat > conftest.$ac_ext <<EOF | 3992 cat > conftest.$ac_ext <<EOF |
3992 #line 3993 "configure" | 3993 #line 3994 "configure" |
3993 #include "confdefs.h" | 3994 #include "confdefs.h" |
3994 /* System header to define __stub macros and hopefully few prototypes, | 3995 /* System header to define __stub macros and hopefully few prototypes, |
3995 which can conflict with char $ac_func(); below. */ | 3996 which can conflict with char $ac_func(); below. */ |
3996 #include <assert.h> | 3997 #include <assert.h> |
3997 /* Override any gcc2 internal prototype to avoid an error. */ | 3998 /* Override any gcc2 internal prototype to avoid an error. */ |
4010 $ac_func(); | 4011 $ac_func(); |
4011 #endif | 4012 #endif |
4012 | 4013 |
4013 ; return 0; } | 4014 ; return 0; } |
4014 EOF | 4015 EOF |
4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4016 if { (eval echo configure:4017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4016 rm -rf conftest* | 4017 rm -rf conftest* |
4017 eval "ac_cv_func_$ac_func=yes" | 4018 eval "ac_cv_func_$ac_func=yes" |
4018 else | 4019 else |
4019 echo "configure: failed program was:" >&5 | 4020 echo "configure: failed program was:" >&5 |
4020 cat conftest.$ac_ext >&5 | 4021 cat conftest.$ac_ext >&5 |
4038 | 4039 |
4039 fi | 4040 fi |
4040 | 4041 |
4041 if test "${window_system}" = "x11"; then | 4042 if test "${window_system}" = "x11"; then |
4042 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 4043 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 |
4043 echo "configure:4044: checking X11 version 6" >&5 | 4044 echo "configure:4045: checking X11 version 6" >&5 |
4044 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 4045 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4045 echo $ac_n "(cached) $ac_c" 1>&6 | 4046 echo $ac_n "(cached) $ac_c" 1>&6 |
4046 else | 4047 else |
4047 cat > conftest.$ac_ext <<EOF | 4048 cat > conftest.$ac_ext <<EOF |
4048 #line 4049 "configure" | 4049 #line 4050 "configure" |
4049 #include "confdefs.h" | 4050 #include "confdefs.h" |
4050 #include <X11/Xlib.h> | 4051 #include <X11/Xlib.h> |
4051 int main() { | 4052 int main() { |
4052 #if XlibSpecificationRelease < 6 | 4053 #if XlibSpecificationRelease < 6 |
4053 fail; | 4054 fail; |
4054 #endif | 4055 #endif |
4055 | 4056 |
4056 ; return 0; } | 4057 ; return 0; } |
4057 EOF | 4058 EOF |
4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4059 rm -rf conftest* | 4060 rm -rf conftest* |
4060 emacs_cv_x11_version_6=yes | 4061 emacs_cv_x11_version_6=yes |
4061 else | 4062 else |
4062 echo "configure: failed program was:" >&5 | 4063 echo "configure: failed program was:" >&5 |
4063 cat conftest.$ac_ext >&5 | 4064 cat conftest.$ac_ext >&5 |
4078 fi | 4079 fi |
4079 fi | 4080 fi |
4080 | 4081 |
4081 if test "${window_system}" = "x11"; then | 4082 if test "${window_system}" = "x11"; then |
4082 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 4083 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 |
4083 echo "configure:4084: checking X11 version 5" >&5 | 4084 echo "configure:4085: checking X11 version 5" >&5 |
4084 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 4085 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4085 echo $ac_n "(cached) $ac_c" 1>&6 | 4086 echo $ac_n "(cached) $ac_c" 1>&6 |
4086 else | 4087 else |
4087 cat > conftest.$ac_ext <<EOF | 4088 cat > conftest.$ac_ext <<EOF |
4088 #line 4089 "configure" | 4089 #line 4090 "configure" |
4089 #include "confdefs.h" | 4090 #include "confdefs.h" |
4090 #include <X11/Xlib.h> | 4091 #include <X11/Xlib.h> |
4091 int main() { | 4092 int main() { |
4092 #if XlibSpecificationRelease < 5 | 4093 #if XlibSpecificationRelease < 5 |
4093 fail; | 4094 fail; |
4094 #endif | 4095 #endif |
4095 | 4096 |
4096 ; return 0; } | 4097 ; return 0; } |
4097 EOF | 4098 EOF |
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4099 if { (eval echo configure:4100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4099 rm -rf conftest* | 4100 rm -rf conftest* |
4100 emacs_cv_x11_version_5=yes | 4101 emacs_cv_x11_version_5=yes |
4101 else | 4102 else |
4102 echo "configure: failed program was:" >&5 | 4103 echo "configure: failed program was:" >&5 |
4103 cat conftest.$ac_ext >&5 | 4104 cat conftest.$ac_ext >&5 |
4121 fi | 4122 fi |
4122 | 4123 |
4123 if test x"${USE_X_TOOLKIT}" = xmaybe; then | 4124 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
4124 if test x"${HAVE_X11R5}" = xyes; then | 4125 if test x"${HAVE_X11R5}" = xyes; then |
4125 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 4126 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 |
4126 echo "configure:4127: checking X11 version 5 with Xaw" >&5 | 4127 echo "configure:4128: checking X11 version 5 with Xaw" >&5 |
4127 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 4128 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4128 echo $ac_n "(cached) $ac_c" 1>&6 | 4129 echo $ac_n "(cached) $ac_c" 1>&6 |
4129 else | 4130 else |
4130 cat > conftest.$ac_ext <<EOF | 4131 cat > conftest.$ac_ext <<EOF |
4131 #line 4132 "configure" | 4132 #line 4133 "configure" |
4132 #include "confdefs.h" | 4133 #include "confdefs.h" |
4133 | 4134 |
4134 #include <X11/Intrinsic.h> | 4135 #include <X11/Intrinsic.h> |
4135 #include <X11/Xaw/Simple.h> | 4136 #include <X11/Xaw/Simple.h> |
4136 int main() { | 4137 int main() { |
4137 | 4138 |
4138 ; return 0; } | 4139 ; return 0; } |
4139 EOF | 4140 EOF |
4140 if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4141 if { (eval echo configure:4142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4141 rm -rf conftest* | 4142 rm -rf conftest* |
4142 emacs_cv_x11_version_5_with_xaw=yes | 4143 emacs_cv_x11_version_5_with_xaw=yes |
4143 else | 4144 else |
4144 echo "configure: failed program was:" >&5 | 4145 echo "configure: failed program was:" >&5 |
4145 cat conftest.$ac_ext >&5 | 4146 cat conftest.$ac_ext >&5 |
4163 | 4164 |
4164 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 4165 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
4165 | 4166 |
4166 if test "${USE_X_TOOLKIT}" != "none"; then | 4167 if test "${USE_X_TOOLKIT}" != "none"; then |
4167 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 4168 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 |
4168 echo "configure:4169: checking X11 toolkit version" >&5 | 4169 echo "configure:4170: checking X11 toolkit version" >&5 |
4169 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 4170 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4170 echo $ac_n "(cached) $ac_c" 1>&6 | 4171 echo $ac_n "(cached) $ac_c" 1>&6 |
4171 else | 4172 else |
4172 cat > conftest.$ac_ext <<EOF | 4173 cat > conftest.$ac_ext <<EOF |
4173 #line 4174 "configure" | 4174 #line 4175 "configure" |
4174 #include "confdefs.h" | 4175 #include "confdefs.h" |
4175 #include <X11/Intrinsic.h> | 4176 #include <X11/Intrinsic.h> |
4176 int main() { | 4177 int main() { |
4177 #if XtSpecificationRelease < 6 | 4178 #if XtSpecificationRelease < 6 |
4178 fail; | 4179 fail; |
4179 #endif | 4180 #endif |
4180 | 4181 |
4181 ; return 0; } | 4182 ; return 0; } |
4182 EOF | 4183 EOF |
4183 if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4184 if { (eval echo configure:4185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4184 rm -rf conftest* | 4185 rm -rf conftest* |
4185 emacs_cv_x11_toolkit_version_6=yes | 4186 emacs_cv_x11_toolkit_version_6=yes |
4186 else | 4187 else |
4187 echo "configure: failed program was:" >&5 | 4188 echo "configure: failed program was:" >&5 |
4188 cat conftest.$ac_ext >&5 | 4189 cat conftest.$ac_ext >&5 |
4208 LIBS="-lXt -lSM -lICE $LIBS" | 4209 LIBS="-lXt -lSM -lICE $LIBS" |
4209 else | 4210 else |
4210 LIBS="-lXt $LIBS" | 4211 LIBS="-lXt $LIBS" |
4211 fi | 4212 fi |
4212 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 4213 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
4213 echo "configure:4214: checking for XmuConvertStandardSelection in -lXmu" >&5 | 4214 echo "configure:4215: checking for XmuConvertStandardSelection in -lXmu" >&5 |
4214 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 4215 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4215 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4216 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4216 echo $ac_n "(cached) $ac_c" 1>&6 | 4217 echo $ac_n "(cached) $ac_c" 1>&6 |
4217 else | 4218 else |
4218 ac_save_LIBS="$LIBS" | 4219 ac_save_LIBS="$LIBS" |
4219 LIBS="-lXmu $LIBS" | 4220 LIBS="-lXmu $LIBS" |
4220 cat > conftest.$ac_ext <<EOF | 4221 cat > conftest.$ac_ext <<EOF |
4221 #line 4222 "configure" | 4222 #line 4223 "configure" |
4222 #include "confdefs.h" | 4223 #include "confdefs.h" |
4223 /* Override any gcc2 internal prototype to avoid an error. */ | 4224 /* Override any gcc2 internal prototype to avoid an error. */ |
4224 /* We use char because int might match the return type of a gcc2 | 4225 /* We use char because int might match the return type of a gcc2 |
4225 builtin and then its argument prototype would still apply. */ | 4226 builtin and then its argument prototype would still apply. */ |
4226 char XmuConvertStandardSelection(); | 4227 char XmuConvertStandardSelection(); |
4227 | 4228 |
4228 int main() { | 4229 int main() { |
4229 XmuConvertStandardSelection() | 4230 XmuConvertStandardSelection() |
4230 ; return 0; } | 4231 ; return 0; } |
4231 EOF | 4232 EOF |
4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4233 if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4233 rm -rf conftest* | 4234 rm -rf conftest* |
4234 eval "ac_cv_lib_$ac_lib_var=yes" | 4235 eval "ac_cv_lib_$ac_lib_var=yes" |
4235 else | 4236 else |
4236 echo "configure: failed program was:" >&5 | 4237 echo "configure: failed program was:" >&5 |
4237 cat conftest.$ac_ext >&5 | 4238 cat conftest.$ac_ext >&5 |
4259 LIBS="$OLDLIBS" | 4260 LIBS="$OLDLIBS" |
4260 fi | 4261 fi |
4261 | 4262 |
4262 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 4263 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
4263 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 4264 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 |
4264 echo "configure:4265: checking for Motif version 2.1" >&5 | 4265 echo "configure:4266: checking for Motif version 2.1" >&5 |
4265 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 4266 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4266 echo $ac_n "(cached) $ac_c" 1>&6 | 4267 echo $ac_n "(cached) $ac_c" 1>&6 |
4267 else | 4268 else |
4268 cat > conftest.$ac_ext <<EOF | 4269 cat > conftest.$ac_ext <<EOF |
4269 #line 4270 "configure" | 4270 #line 4271 "configure" |
4270 #include "confdefs.h" | 4271 #include "confdefs.h" |
4271 #include <Xm/Xm.h> | 4272 #include <Xm/Xm.h> |
4272 int main() { | 4273 int main() { |
4273 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 4274 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
4274 int x = 5; | 4275 int x = 5; |
4275 #else | 4276 #else |
4276 Motif version prior to 2.1. | 4277 Motif version prior to 2.1. |
4277 #endif | 4278 #endif |
4278 ; return 0; } | 4279 ; return 0; } |
4279 EOF | 4280 EOF |
4280 if { (eval echo configure:4281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4281 if { (eval echo configure:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4281 rm -rf conftest* | 4282 rm -rf conftest* |
4282 emacs_cv_motif_version_2_1=yes | 4283 emacs_cv_motif_version_2_1=yes |
4283 else | 4284 else |
4284 echo "configure: failed program was:" >&5 | 4285 echo "configure: failed program was:" >&5 |
4285 cat conftest.$ac_ext >&5 | 4286 cat conftest.$ac_ext >&5 |
4295 cat >> confdefs.h <<\EOF | 4296 cat >> confdefs.h <<\EOF |
4296 #define HAVE_MOTIF_2_1 1 | 4297 #define HAVE_MOTIF_2_1 1 |
4297 EOF | 4298 EOF |
4298 | 4299 |
4299 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 4300 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 |
4300 echo "configure:4301: checking for XpCreateContext in -lXp" >&5 | 4301 echo "configure:4302: checking for XpCreateContext in -lXp" >&5 |
4301 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4302 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4303 echo $ac_n "(cached) $ac_c" 1>&6 | 4304 echo $ac_n "(cached) $ac_c" 1>&6 |
4304 else | 4305 else |
4305 ac_save_LIBS="$LIBS" | 4306 ac_save_LIBS="$LIBS" |
4306 LIBS="-lXp $LIBS" | 4307 LIBS="-lXp $LIBS" |
4307 cat > conftest.$ac_ext <<EOF | 4308 cat > conftest.$ac_ext <<EOF |
4308 #line 4309 "configure" | 4309 #line 4310 "configure" |
4309 #include "confdefs.h" | 4310 #include "confdefs.h" |
4310 /* Override any gcc2 internal prototype to avoid an error. */ | 4311 /* Override any gcc2 internal prototype to avoid an error. */ |
4311 /* We use char because int might match the return type of a gcc2 | 4312 /* We use char because int might match the return type of a gcc2 |
4312 builtin and then its argument prototype would still apply. */ | 4313 builtin and then its argument prototype would still apply. */ |
4313 char XpCreateContext(); | 4314 char XpCreateContext(); |
4314 | 4315 |
4315 int main() { | 4316 int main() { |
4316 XpCreateContext() | 4317 XpCreateContext() |
4317 ; return 0; } | 4318 ; return 0; } |
4318 EOF | 4319 EOF |
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4320 if { (eval echo configure:4321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4320 rm -rf conftest* | 4321 rm -rf conftest* |
4321 eval "ac_cv_lib_$ac_lib_var=yes" | 4322 eval "ac_cv_lib_$ac_lib_var=yes" |
4322 else | 4323 else |
4323 echo "configure: failed program was:" >&5 | 4324 echo "configure: failed program was:" >&5 |
4324 cat conftest.$ac_ext >&5 | 4325 cat conftest.$ac_ext >&5 |
4352 if test "${USE_X_TOOLKIT}" != "none"; then | 4353 if test "${USE_X_TOOLKIT}" != "none"; then |
4353 old_c_flags="${CFLAGS}" | 4354 old_c_flags="${CFLAGS}" |
4354 CFLAGS="${LD_SWITCH_X_SITE}" | 4355 CFLAGS="${LD_SWITCH_X_SITE}" |
4355 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 4356 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4356 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 4357 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4357 echo "configure:4358: checking for X11/Xaw3d/Scrollbar.h" >&5 | 4358 echo "configure:4359: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4359 echo $ac_n "(cached) $ac_c" 1>&6 | 4360 echo $ac_n "(cached) $ac_c" 1>&6 |
4360 else | 4361 else |
4361 cat > conftest.$ac_ext <<EOF | 4362 cat > conftest.$ac_ext <<EOF |
4362 #line 4363 "configure" | 4363 #line 4364 "configure" |
4363 #include "confdefs.h" | 4364 #include "confdefs.h" |
4364 #include <X11/Xaw3d/Scrollbar.h> | 4365 #include <X11/Xaw3d/Scrollbar.h> |
4365 EOF | 4366 EOF |
4366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4367 { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4368 { (eval echo configure:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4369 if test -z "$ac_err"; then | 4370 if test -z "$ac_err"; then |
4370 rm -rf conftest* | 4371 rm -rf conftest* |
4371 eval "ac_cv_header_$ac_safe=yes" | 4372 eval "ac_cv_header_$ac_safe=yes" |
4372 else | 4373 else |
4379 rm -f conftest* | 4380 rm -f conftest* |
4380 fi | 4381 fi |
4381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4382 echo "$ac_t""yes" 1>&6 | 4383 echo "$ac_t""yes" 1>&6 |
4383 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 4384 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
4384 echo "configure:4385: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 4385 echo "configure:4386: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
4385 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 4386 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4386 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4387 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4387 echo $ac_n "(cached) $ac_c" 1>&6 | 4388 echo $ac_n "(cached) $ac_c" 1>&6 |
4388 else | 4389 else |
4389 ac_save_LIBS="$LIBS" | 4390 ac_save_LIBS="$LIBS" |
4390 LIBS="-lXaw3d -lX11 $LIBS" | 4391 LIBS="-lXaw3d -lX11 $LIBS" |
4391 cat > conftest.$ac_ext <<EOF | 4392 cat > conftest.$ac_ext <<EOF |
4392 #line 4393 "configure" | 4393 #line 4394 "configure" |
4393 #include "confdefs.h" | 4394 #include "confdefs.h" |
4394 /* Override any gcc2 internal prototype to avoid an error. */ | 4395 /* Override any gcc2 internal prototype to avoid an error. */ |
4395 /* We use char because int might match the return type of a gcc2 | 4396 /* We use char because int might match the return type of a gcc2 |
4396 builtin and then its argument prototype would still apply. */ | 4397 builtin and then its argument prototype would still apply. */ |
4397 char XawScrollbarSetThumb(); | 4398 char XawScrollbarSetThumb(); |
4398 | 4399 |
4399 int main() { | 4400 int main() { |
4400 XawScrollbarSetThumb() | 4401 XawScrollbarSetThumb() |
4401 ; return 0; } | 4402 ; return 0; } |
4402 EOF | 4403 EOF |
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4404 rm -rf conftest* | 4405 rm -rf conftest* |
4405 eval "ac_cv_lib_$ac_lib_var=yes" | 4406 eval "ac_cv_lib_$ac_lib_var=yes" |
4406 else | 4407 else |
4407 echo "configure: failed program was:" >&5 | 4408 echo "configure: failed program was:" >&5 |
4408 cat conftest.$ac_ext >&5 | 4409 cat conftest.$ac_ext >&5 |
4462 if test "${with_xpm}" != "no"; then | 4463 if test "${with_xpm}" != "no"; then |
4463 old_c_flags="${CFLAGS}" | 4464 old_c_flags="${CFLAGS}" |
4464 CFLAGS="${LD_SWITCH_X_SITE}" | 4465 CFLAGS="${LD_SWITCH_X_SITE}" |
4465 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 4466 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
4466 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 4467 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
4467 echo "configure:4468: checking for X11/xpm.h" >&5 | 4468 echo "configure:4469: checking for X11/xpm.h" >&5 |
4468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4469 echo $ac_n "(cached) $ac_c" 1>&6 | 4470 echo $ac_n "(cached) $ac_c" 1>&6 |
4470 else | 4471 else |
4471 cat > conftest.$ac_ext <<EOF | 4472 cat > conftest.$ac_ext <<EOF |
4472 #line 4473 "configure" | 4473 #line 4474 "configure" |
4473 #include "confdefs.h" | 4474 #include "confdefs.h" |
4474 #include <X11/xpm.h> | 4475 #include <X11/xpm.h> |
4475 EOF | 4476 EOF |
4476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4477 { (eval echo configure:4478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4478 { (eval echo configure:4479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4479 if test -z "$ac_err"; then | 4480 if test -z "$ac_err"; then |
4480 rm -rf conftest* | 4481 rm -rf conftest* |
4481 eval "ac_cv_header_$ac_safe=yes" | 4482 eval "ac_cv_header_$ac_safe=yes" |
4482 else | 4483 else |
4489 rm -f conftest* | 4490 rm -f conftest* |
4490 fi | 4491 fi |
4491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4492 echo "$ac_t""yes" 1>&6 | 4493 echo "$ac_t""yes" 1>&6 |
4493 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 4494 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
4494 echo "configure:4495: checking for XpmReadFileToPixmap in -lXpm" >&5 | 4495 echo "configure:4496: checking for XpmReadFileToPixmap in -lXpm" >&5 |
4495 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 4496 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4497 echo $ac_n "(cached) $ac_c" 1>&6 | 4498 echo $ac_n "(cached) $ac_c" 1>&6 |
4498 else | 4499 else |
4499 ac_save_LIBS="$LIBS" | 4500 ac_save_LIBS="$LIBS" |
4500 LIBS="-lXpm -lX11 $LIBS" | 4501 LIBS="-lXpm -lX11 $LIBS" |
4501 cat > conftest.$ac_ext <<EOF | 4502 cat > conftest.$ac_ext <<EOF |
4502 #line 4503 "configure" | 4503 #line 4504 "configure" |
4503 #include "confdefs.h" | 4504 #include "confdefs.h" |
4504 /* Override any gcc2 internal prototype to avoid an error. */ | 4505 /* Override any gcc2 internal prototype to avoid an error. */ |
4505 /* We use char because int might match the return type of a gcc2 | 4506 /* We use char because int might match the return type of a gcc2 |
4506 builtin and then its argument prototype would still apply. */ | 4507 builtin and then its argument prototype would still apply. */ |
4507 char XpmReadFileToPixmap(); | 4508 char XpmReadFileToPixmap(); |
4508 | 4509 |
4509 int main() { | 4510 int main() { |
4510 XpmReadFileToPixmap() | 4511 XpmReadFileToPixmap() |
4511 ; return 0; } | 4512 ; return 0; } |
4512 EOF | 4513 EOF |
4513 if { (eval echo configure:4514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4514 rm -rf conftest* | 4515 rm -rf conftest* |
4515 eval "ac_cv_lib_$ac_lib_var=yes" | 4516 eval "ac_cv_lib_$ac_lib_var=yes" |
4516 else | 4517 else |
4517 echo "configure: failed program was:" >&5 | 4518 echo "configure: failed program was:" >&5 |
4518 cat conftest.$ac_ext >&5 | 4519 cat conftest.$ac_ext >&5 |
4551 if test "${with_jpeg}" != "no"; then | 4552 if test "${with_jpeg}" != "no"; then |
4552 old_c_flags="${CFLAGS}" | 4553 old_c_flags="${CFLAGS}" |
4553 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4554 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4554 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 4555 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4555 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 4556 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
4556 echo "configure:4557: checking for jerror.h" >&5 | 4557 echo "configure:4558: checking for jerror.h" >&5 |
4557 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4558 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4558 echo $ac_n "(cached) $ac_c" 1>&6 | 4559 echo $ac_n "(cached) $ac_c" 1>&6 |
4559 else | 4560 else |
4560 cat > conftest.$ac_ext <<EOF | 4561 cat > conftest.$ac_ext <<EOF |
4561 #line 4562 "configure" | 4562 #line 4563 "configure" |
4562 #include "confdefs.h" | 4563 #include "confdefs.h" |
4563 #include <jerror.h> | 4564 #include <jerror.h> |
4564 EOF | 4565 EOF |
4565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4566 { (eval echo configure:4567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4567 { (eval echo configure:4568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4568 if test -z "$ac_err"; then | 4569 if test -z "$ac_err"; then |
4569 rm -rf conftest* | 4570 rm -rf conftest* |
4570 eval "ac_cv_header_$ac_safe=yes" | 4571 eval "ac_cv_header_$ac_safe=yes" |
4571 else | 4572 else |
4578 rm -f conftest* | 4579 rm -f conftest* |
4579 fi | 4580 fi |
4580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4581 echo "$ac_t""yes" 1>&6 | 4582 echo "$ac_t""yes" 1>&6 |
4582 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 4583 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 |
4583 echo "configure:4584: checking for jpeg_destroy_compress in -ljpeg" >&5 | 4584 echo "configure:4585: checking for jpeg_destroy_compress in -ljpeg" >&5 |
4584 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 4585 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4586 echo $ac_n "(cached) $ac_c" 1>&6 | 4587 echo $ac_n "(cached) $ac_c" 1>&6 |
4587 else | 4588 else |
4588 ac_save_LIBS="$LIBS" | 4589 ac_save_LIBS="$LIBS" |
4589 LIBS="-ljpeg -lX11 $LIBS" | 4590 LIBS="-ljpeg -lX11 $LIBS" |
4590 cat > conftest.$ac_ext <<EOF | 4591 cat > conftest.$ac_ext <<EOF |
4591 #line 4592 "configure" | 4592 #line 4593 "configure" |
4592 #include "confdefs.h" | 4593 #include "confdefs.h" |
4593 /* Override any gcc2 internal prototype to avoid an error. */ | 4594 /* Override any gcc2 internal prototype to avoid an error. */ |
4594 /* We use char because int might match the return type of a gcc2 | 4595 /* We use char because int might match the return type of a gcc2 |
4595 builtin and then its argument prototype would still apply. */ | 4596 builtin and then its argument prototype would still apply. */ |
4596 char jpeg_destroy_compress(); | 4597 char jpeg_destroy_compress(); |
4597 | 4598 |
4598 int main() { | 4599 int main() { |
4599 jpeg_destroy_compress() | 4600 jpeg_destroy_compress() |
4600 ; return 0; } | 4601 ; return 0; } |
4601 EOF | 4602 EOF |
4602 if { (eval echo configure:4603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4603 rm -rf conftest* | 4604 rm -rf conftest* |
4604 eval "ac_cv_lib_$ac_lib_var=yes" | 4605 eval "ac_cv_lib_$ac_lib_var=yes" |
4605 else | 4606 else |
4606 echo "configure: failed program was:" >&5 | 4607 echo "configure: failed program was:" >&5 |
4607 cat conftest.$ac_ext >&5 | 4608 cat conftest.$ac_ext >&5 |
4640 if test "${with_png}" != "no"; then | 4641 if test "${with_png}" != "no"; then |
4641 old_c_flags="${CFLAGS}" | 4642 old_c_flags="${CFLAGS}" |
4642 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4643 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4643 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 4644 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
4644 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 4645 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
4645 echo "configure:4646: checking for png.h" >&5 | 4646 echo "configure:4647: checking for png.h" >&5 |
4646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4647 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4647 echo $ac_n "(cached) $ac_c" 1>&6 | 4648 echo $ac_n "(cached) $ac_c" 1>&6 |
4648 else | 4649 else |
4649 cat > conftest.$ac_ext <<EOF | 4650 cat > conftest.$ac_ext <<EOF |
4650 #line 4651 "configure" | 4651 #line 4652 "configure" |
4651 #include "confdefs.h" | 4652 #include "confdefs.h" |
4652 #include <png.h> | 4653 #include <png.h> |
4653 EOF | 4654 EOF |
4654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4655 { (eval echo configure:4656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4656 { (eval echo configure:4657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4657 if test -z "$ac_err"; then | 4658 if test -z "$ac_err"; then |
4658 rm -rf conftest* | 4659 rm -rf conftest* |
4659 eval "ac_cv_header_$ac_safe=yes" | 4660 eval "ac_cv_header_$ac_safe=yes" |
4660 else | 4661 else |
4667 rm -f conftest* | 4668 rm -f conftest* |
4668 fi | 4669 fi |
4669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4670 echo "$ac_t""yes" 1>&6 | 4671 echo "$ac_t""yes" 1>&6 |
4671 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | 4672 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 |
4672 echo "configure:4673: checking for png_set_expand in -lpng" >&5 | 4673 echo "configure:4674: checking for png_set_expand in -lpng" >&5 |
4673 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` | 4674 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4675 echo $ac_n "(cached) $ac_c" 1>&6 | 4676 echo $ac_n "(cached) $ac_c" 1>&6 |
4676 else | 4677 else |
4677 ac_save_LIBS="$LIBS" | 4678 ac_save_LIBS="$LIBS" |
4678 LIBS="-lpng -lX11 -lz -lm $LIBS" | 4679 LIBS="-lpng -lX11 -lz -lm $LIBS" |
4679 cat > conftest.$ac_ext <<EOF | 4680 cat > conftest.$ac_ext <<EOF |
4680 #line 4681 "configure" | 4681 #line 4682 "configure" |
4681 #include "confdefs.h" | 4682 #include "confdefs.h" |
4682 /* Override any gcc2 internal prototype to avoid an error. */ | 4683 /* Override any gcc2 internal prototype to avoid an error. */ |
4683 /* We use char because int might match the return type of a gcc2 | 4684 /* We use char because int might match the return type of a gcc2 |
4684 builtin and then its argument prototype would still apply. */ | 4685 builtin and then its argument prototype would still apply. */ |
4685 char png_set_expand(); | 4686 char png_set_expand(); |
4686 | 4687 |
4687 int main() { | 4688 int main() { |
4688 png_set_expand() | 4689 png_set_expand() |
4689 ; return 0; } | 4690 ; return 0; } |
4690 EOF | 4691 EOF |
4691 if { (eval echo configure:4692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4692 rm -rf conftest* | 4693 rm -rf conftest* |
4693 eval "ac_cv_lib_$ac_lib_var=yes" | 4694 eval "ac_cv_lib_$ac_lib_var=yes" |
4694 else | 4695 else |
4695 echo "configure: failed program was:" >&5 | 4696 echo "configure: failed program was:" >&5 |
4696 cat conftest.$ac_ext >&5 | 4697 cat conftest.$ac_ext >&5 |
4729 if test "${with_tiff}" != "no"; then | 4730 if test "${with_tiff}" != "no"; then |
4730 old_c_flags="${CFLAGS}" | 4731 old_c_flags="${CFLAGS}" |
4731 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4732 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4732 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 4733 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
4733 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 4734 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
4734 echo "configure:4735: checking for tiffio.h" >&5 | 4735 echo "configure:4736: checking for tiffio.h" >&5 |
4735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4736 echo $ac_n "(cached) $ac_c" 1>&6 | 4737 echo $ac_n "(cached) $ac_c" 1>&6 |
4737 else | 4738 else |
4738 cat > conftest.$ac_ext <<EOF | 4739 cat > conftest.$ac_ext <<EOF |
4739 #line 4740 "configure" | 4740 #line 4741 "configure" |
4740 #include "confdefs.h" | 4741 #include "confdefs.h" |
4741 #include <tiffio.h> | 4742 #include <tiffio.h> |
4742 EOF | 4743 EOF |
4743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4744 { (eval echo configure:4745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4745 { (eval echo configure:4746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4746 if test -z "$ac_err"; then | 4747 if test -z "$ac_err"; then |
4747 rm -rf conftest* | 4748 rm -rf conftest* |
4748 eval "ac_cv_header_$ac_safe=yes" | 4749 eval "ac_cv_header_$ac_safe=yes" |
4749 else | 4750 else |
4759 echo "$ac_t""yes" 1>&6 | 4760 echo "$ac_t""yes" 1>&6 |
4760 tifflibs="-lX11 -lz -lm" | 4761 tifflibs="-lX11 -lz -lm" |
4761 # At least one tiff package requires the jpeg library. | 4762 # At least one tiff package requires the jpeg library. |
4762 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 4763 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
4763 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 4764 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
4764 echo "configure:4765: checking for TIFFGetVersion in -ltiff" >&5 | 4765 echo "configure:4766: checking for TIFFGetVersion in -ltiff" >&5 |
4765 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 4766 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4767 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4767 echo $ac_n "(cached) $ac_c" 1>&6 | 4768 echo $ac_n "(cached) $ac_c" 1>&6 |
4768 else | 4769 else |
4769 ac_save_LIBS="$LIBS" | 4770 ac_save_LIBS="$LIBS" |
4770 LIBS="-ltiff $tifflibs $LIBS" | 4771 LIBS="-ltiff $tifflibs $LIBS" |
4771 cat > conftest.$ac_ext <<EOF | 4772 cat > conftest.$ac_ext <<EOF |
4772 #line 4773 "configure" | 4773 #line 4774 "configure" |
4773 #include "confdefs.h" | 4774 #include "confdefs.h" |
4774 /* Override any gcc2 internal prototype to avoid an error. */ | 4775 /* Override any gcc2 internal prototype to avoid an error. */ |
4775 /* We use char because int might match the return type of a gcc2 | 4776 /* We use char because int might match the return type of a gcc2 |
4776 builtin and then its argument prototype would still apply. */ | 4777 builtin and then its argument prototype would still apply. */ |
4777 char TIFFGetVersion(); | 4778 char TIFFGetVersion(); |
4778 | 4779 |
4779 int main() { | 4780 int main() { |
4780 TIFFGetVersion() | 4781 TIFFGetVersion() |
4781 ; return 0; } | 4782 ; return 0; } |
4782 EOF | 4783 EOF |
4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4784 if { (eval echo configure:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4784 rm -rf conftest* | 4785 rm -rf conftest* |
4785 eval "ac_cv_lib_$ac_lib_var=yes" | 4786 eval "ac_cv_lib_$ac_lib_var=yes" |
4786 else | 4787 else |
4787 echo "configure: failed program was:" >&5 | 4788 echo "configure: failed program was:" >&5 |
4788 cat conftest.$ac_ext >&5 | 4789 cat conftest.$ac_ext >&5 |
4821 if test "${with_gif}" != "no"; then | 4822 if test "${with_gif}" != "no"; then |
4822 old_c_flags="${CFLAGS}" | 4823 old_c_flags="${CFLAGS}" |
4823 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4824 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4824 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 4825 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
4825 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 4826 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
4826 echo "configure:4827: checking for gif_lib.h" >&5 | 4827 echo "configure:4828: checking for gif_lib.h" >&5 |
4827 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4828 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4828 echo $ac_n "(cached) $ac_c" 1>&6 | 4829 echo $ac_n "(cached) $ac_c" 1>&6 |
4829 else | 4830 else |
4830 cat > conftest.$ac_ext <<EOF | 4831 cat > conftest.$ac_ext <<EOF |
4831 #line 4832 "configure" | 4832 #line 4833 "configure" |
4832 #include "confdefs.h" | 4833 #include "confdefs.h" |
4833 #include <gif_lib.h> | 4834 #include <gif_lib.h> |
4834 EOF | 4835 EOF |
4835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4836 { (eval echo configure:4837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4837 { (eval echo configure:4838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4838 if test -z "$ac_err"; then | 4839 if test -z "$ac_err"; then |
4839 rm -rf conftest* | 4840 rm -rf conftest* |
4840 eval "ac_cv_header_$ac_safe=yes" | 4841 eval "ac_cv_header_$ac_safe=yes" |
4841 else | 4842 else |
4848 rm -f conftest* | 4849 rm -f conftest* |
4849 fi | 4850 fi |
4850 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4851 echo "$ac_t""yes" 1>&6 | 4852 echo "$ac_t""yes" 1>&6 |
4852 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 4853 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
4853 echo "configure:4854: checking for DGifOpen in -lungif" >&5 | 4854 echo "configure:4855: checking for DGifOpen in -lungif" >&5 |
4854 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 4855 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
4855 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4856 echo $ac_n "(cached) $ac_c" 1>&6 | 4857 echo $ac_n "(cached) $ac_c" 1>&6 |
4857 else | 4858 else |
4858 ac_save_LIBS="$LIBS" | 4859 ac_save_LIBS="$LIBS" |
4859 LIBS="-lungif -lX11 $LIBS" | 4860 LIBS="-lungif -lX11 $LIBS" |
4860 cat > conftest.$ac_ext <<EOF | 4861 cat > conftest.$ac_ext <<EOF |
4861 #line 4862 "configure" | 4862 #line 4863 "configure" |
4862 #include "confdefs.h" | 4863 #include "confdefs.h" |
4863 /* Override any gcc2 internal prototype to avoid an error. */ | 4864 /* Override any gcc2 internal prototype to avoid an error. */ |
4864 /* We use char because int might match the return type of a gcc2 | 4865 /* We use char because int might match the return type of a gcc2 |
4865 builtin and then its argument prototype would still apply. */ | 4866 builtin and then its argument prototype would still apply. */ |
4866 char DGifOpen(); | 4867 char DGifOpen(); |
4867 | 4868 |
4868 int main() { | 4869 int main() { |
4869 DGifOpen() | 4870 DGifOpen() |
4870 ; return 0; } | 4871 ; return 0; } |
4871 EOF | 4872 EOF |
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4873 if { (eval echo configure:4874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4873 rm -rf conftest* | 4874 rm -rf conftest* |
4874 eval "ac_cv_lib_$ac_lib_var=yes" | 4875 eval "ac_cv_lib_$ac_lib_var=yes" |
4875 else | 4876 else |
4876 echo "configure: failed program was:" >&5 | 4877 echo "configure: failed program was:" >&5 |
4877 cat conftest.$ac_ext >&5 | 4878 cat conftest.$ac_ext >&5 |
4904 fi | 4905 fi |
4905 fi | 4906 fi |
4906 | 4907 |
4907 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 4908 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
4908 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 4909 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
4909 echo "configure:4910: checking whether netdb declares h_errno" >&5 | 4910 echo "configure:4911: checking whether netdb declares h_errno" >&5 |
4910 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 4911 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
4911 echo $ac_n "(cached) $ac_c" 1>&6 | 4912 echo $ac_n "(cached) $ac_c" 1>&6 |
4912 else | 4913 else |
4913 cat > conftest.$ac_ext <<EOF | 4914 cat > conftest.$ac_ext <<EOF |
4914 #line 4915 "configure" | 4915 #line 4916 "configure" |
4915 #include "confdefs.h" | 4916 #include "confdefs.h" |
4916 #include <netdb.h> | 4917 #include <netdb.h> |
4917 int main() { | 4918 int main() { |
4918 return h_errno; | 4919 return h_errno; |
4919 ; return 0; } | 4920 ; return 0; } |
4920 EOF | 4921 EOF |
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4922 rm -rf conftest* | 4923 rm -rf conftest* |
4923 emacs_cv_netdb_declares_h_errno=yes | 4924 emacs_cv_netdb_declares_h_errno=yes |
4924 else | 4925 else |
4925 echo "configure: failed program was:" >&5 | 4926 echo "configure: failed program was:" >&5 |
4926 cat conftest.$ac_ext >&5 | 4927 cat conftest.$ac_ext >&5 |
4939 fi | 4940 fi |
4940 | 4941 |
4941 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 4942 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4942 # for constant arguments. Useless! | 4943 # for constant arguments. Useless! |
4943 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 4944 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
4944 echo "configure:4945: checking for working alloca.h" >&5 | 4945 echo "configure:4946: checking for working alloca.h" >&5 |
4945 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 4946 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4946 echo $ac_n "(cached) $ac_c" 1>&6 | 4947 echo $ac_n "(cached) $ac_c" 1>&6 |
4947 else | 4948 else |
4948 cat > conftest.$ac_ext <<EOF | 4949 cat > conftest.$ac_ext <<EOF |
4949 #line 4950 "configure" | 4950 #line 4951 "configure" |
4950 #include "confdefs.h" | 4951 #include "confdefs.h" |
4951 #include <alloca.h> | 4952 #include <alloca.h> |
4952 int main() { | 4953 int main() { |
4953 void *p = alloca(2 * sizeof(int)); | 4954 void *p = alloca(2 * sizeof(int)); |
4954 ; return 0; } | 4955 ; return 0; } |
4955 EOF | 4956 EOF |
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4957 rm -rf conftest* | 4958 rm -rf conftest* |
4958 ac_cv_header_alloca_h=yes | 4959 ac_cv_header_alloca_h=yes |
4959 else | 4960 else |
4960 echo "configure: failed program was:" >&5 | 4961 echo "configure: failed program was:" >&5 |
4961 cat conftest.$ac_ext >&5 | 4962 cat conftest.$ac_ext >&5 |
4972 EOF | 4973 EOF |
4973 | 4974 |
4974 fi | 4975 fi |
4975 | 4976 |
4976 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 4977 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
4977 echo "configure:4978: checking for alloca" >&5 | 4978 echo "configure:4979: checking for alloca" >&5 |
4978 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 4979 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4979 echo $ac_n "(cached) $ac_c" 1>&6 | 4980 echo $ac_n "(cached) $ac_c" 1>&6 |
4980 else | 4981 else |
4981 cat > conftest.$ac_ext <<EOF | 4982 cat > conftest.$ac_ext <<EOF |
4982 #line 4983 "configure" | 4983 #line 4984 "configure" |
4983 #include "confdefs.h" | 4984 #include "confdefs.h" |
4984 | 4985 |
4985 #ifdef __GNUC__ | 4986 #ifdef __GNUC__ |
4986 # define alloca __builtin_alloca | 4987 # define alloca __builtin_alloca |
4987 #else | 4988 #else |
5005 | 5006 |
5006 int main() { | 5007 int main() { |
5007 char *p = (char *) alloca(1); | 5008 char *p = (char *) alloca(1); |
5008 ; return 0; } | 5009 ; return 0; } |
5009 EOF | 5010 EOF |
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5011 if { (eval echo configure:5012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5011 rm -rf conftest* | 5012 rm -rf conftest* |
5012 ac_cv_func_alloca_works=yes | 5013 ac_cv_func_alloca_works=yes |
5013 else | 5014 else |
5014 echo "configure: failed program was:" >&5 | 5015 echo "configure: failed program was:" >&5 |
5015 cat conftest.$ac_ext >&5 | 5016 cat conftest.$ac_ext >&5 |
5037 #define C_ALLOCA 1 | 5038 #define C_ALLOCA 1 |
5038 EOF | 5039 EOF |
5039 | 5040 |
5040 | 5041 |
5041 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 5042 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
5042 echo "configure:5043: checking whether alloca needs Cray hooks" >&5 | 5043 echo "configure:5044: checking whether alloca needs Cray hooks" >&5 |
5043 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 5044 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5044 echo $ac_n "(cached) $ac_c" 1>&6 | 5045 echo $ac_n "(cached) $ac_c" 1>&6 |
5045 else | 5046 else |
5046 cat > conftest.$ac_ext <<EOF | 5047 cat > conftest.$ac_ext <<EOF |
5047 #line 5048 "configure" | 5048 #line 5049 "configure" |
5048 #include "confdefs.h" | 5049 #include "confdefs.h" |
5049 #if defined(CRAY) && ! defined(CRAY2) | 5050 #if defined(CRAY) && ! defined(CRAY2) |
5050 webecray | 5051 webecray |
5051 #else | 5052 #else |
5052 wenotbecray | 5053 wenotbecray |
5067 | 5068 |
5068 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 5069 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
5069 if test $ac_cv_os_cray = yes; then | 5070 if test $ac_cv_os_cray = yes; then |
5070 for ac_func in _getb67 GETB67 getb67; do | 5071 for ac_func in _getb67 GETB67 getb67; do |
5071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5072 echo "configure:5073: checking for $ac_func" >&5 | 5073 echo "configure:5074: checking for $ac_func" >&5 |
5073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5074 echo $ac_n "(cached) $ac_c" 1>&6 | 5075 echo $ac_n "(cached) $ac_c" 1>&6 |
5075 else | 5076 else |
5076 cat > conftest.$ac_ext <<EOF | 5077 cat > conftest.$ac_ext <<EOF |
5077 #line 5078 "configure" | 5078 #line 5079 "configure" |
5078 #include "confdefs.h" | 5079 #include "confdefs.h" |
5079 /* System header to define __stub macros and hopefully few prototypes, | 5080 /* System header to define __stub macros and hopefully few prototypes, |
5080 which can conflict with char $ac_func(); below. */ | 5081 which can conflict with char $ac_func(); below. */ |
5081 #include <assert.h> | 5082 #include <assert.h> |
5082 /* Override any gcc2 internal prototype to avoid an error. */ | 5083 /* Override any gcc2 internal prototype to avoid an error. */ |
5095 $ac_func(); | 5096 $ac_func(); |
5096 #endif | 5097 #endif |
5097 | 5098 |
5098 ; return 0; } | 5099 ; return 0; } |
5099 EOF | 5100 EOF |
5100 if { (eval echo configure:5101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5101 if { (eval echo configure:5102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5101 rm -rf conftest* | 5102 rm -rf conftest* |
5102 eval "ac_cv_func_$ac_func=yes" | 5103 eval "ac_cv_func_$ac_func=yes" |
5103 else | 5104 else |
5104 echo "configure: failed program was:" >&5 | 5105 echo "configure: failed program was:" >&5 |
5105 cat conftest.$ac_ext >&5 | 5106 cat conftest.$ac_ext >&5 |
5122 | 5123 |
5123 done | 5124 done |
5124 fi | 5125 fi |
5125 | 5126 |
5126 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 5127 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
5127 echo "configure:5128: checking stack direction for C alloca" >&5 | 5128 echo "configure:5129: checking stack direction for C alloca" >&5 |
5128 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 5129 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5129 echo $ac_n "(cached) $ac_c" 1>&6 | 5130 echo $ac_n "(cached) $ac_c" 1>&6 |
5130 else | 5131 else |
5131 if test "$cross_compiling" = yes; then | 5132 if test "$cross_compiling" = yes; then |
5132 ac_cv_c_stack_direction=0 | 5133 ac_cv_c_stack_direction=0 |
5133 else | 5134 else |
5134 cat > conftest.$ac_ext <<EOF | 5135 cat > conftest.$ac_ext <<EOF |
5135 #line 5136 "configure" | 5136 #line 5137 "configure" |
5136 #include "confdefs.h" | 5137 #include "confdefs.h" |
5137 find_stack_direction () | 5138 find_stack_direction () |
5138 { | 5139 { |
5139 static char *addr = 0; | 5140 static char *addr = 0; |
5140 auto char dummy; | 5141 auto char dummy; |
5149 main () | 5150 main () |
5150 { | 5151 { |
5151 exit (find_stack_direction() < 0); | 5152 exit (find_stack_direction() < 0); |
5152 } | 5153 } |
5153 EOF | 5154 EOF |
5154 if { (eval echo configure:5155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5155 then | 5156 then |
5156 ac_cv_c_stack_direction=1 | 5157 ac_cv_c_stack_direction=1 |
5157 else | 5158 else |
5158 echo "configure: failed program was:" >&5 | 5159 echo "configure: failed program was:" >&5 |
5159 cat conftest.$ac_ext >&5 | 5160 cat conftest.$ac_ext >&5 |
5174 | 5175 |
5175 | 5176 |
5176 # fmod, logb, and frexp are found in -lm on most systems. | 5177 # fmod, logb, and frexp are found in -lm on most systems. |
5177 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 5178 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
5178 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 5179 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
5179 echo "configure:5180: checking for sqrt in -lm" >&5 | 5180 echo "configure:5181: checking for sqrt in -lm" >&5 |
5180 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 5181 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5182 echo $ac_n "(cached) $ac_c" 1>&6 | 5183 echo $ac_n "(cached) $ac_c" 1>&6 |
5183 else | 5184 else |
5184 ac_save_LIBS="$LIBS" | 5185 ac_save_LIBS="$LIBS" |
5185 LIBS="-lm $LIBS" | 5186 LIBS="-lm $LIBS" |
5186 cat > conftest.$ac_ext <<EOF | 5187 cat > conftest.$ac_ext <<EOF |
5187 #line 5188 "configure" | 5188 #line 5189 "configure" |
5188 #include "confdefs.h" | 5189 #include "confdefs.h" |
5189 /* Override any gcc2 internal prototype to avoid an error. */ | 5190 /* Override any gcc2 internal prototype to avoid an error. */ |
5190 /* We use char because int might match the return type of a gcc2 | 5191 /* We use char because int might match the return type of a gcc2 |
5191 builtin and then its argument prototype would still apply. */ | 5192 builtin and then its argument prototype would still apply. */ |
5192 char sqrt(); | 5193 char sqrt(); |
5193 | 5194 |
5194 int main() { | 5195 int main() { |
5195 sqrt() | 5196 sqrt() |
5196 ; return 0; } | 5197 ; return 0; } |
5197 EOF | 5198 EOF |
5198 if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5199 if { (eval echo configure:5200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5199 rm -rf conftest* | 5200 rm -rf conftest* |
5200 eval "ac_cv_lib_$ac_lib_var=yes" | 5201 eval "ac_cv_lib_$ac_lib_var=yes" |
5201 else | 5202 else |
5202 echo "configure: failed program was:" >&5 | 5203 echo "configure: failed program was:" >&5 |
5203 cat conftest.$ac_ext >&5 | 5204 cat conftest.$ac_ext >&5 |
5223 fi | 5224 fi |
5224 | 5225 |
5225 | 5226 |
5226 # Check for mail-locking functions in a "mail" library | 5227 # Check for mail-locking functions in a "mail" library |
5227 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 5228 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
5228 echo "configure:5229: checking for maillock in -lmail" >&5 | 5229 echo "configure:5230: checking for maillock in -lmail" >&5 |
5229 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 5230 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5231 echo $ac_n "(cached) $ac_c" 1>&6 | 5232 echo $ac_n "(cached) $ac_c" 1>&6 |
5232 else | 5233 else |
5233 ac_save_LIBS="$LIBS" | 5234 ac_save_LIBS="$LIBS" |
5234 LIBS="-lmail $LIBS" | 5235 LIBS="-lmail $LIBS" |
5235 cat > conftest.$ac_ext <<EOF | 5236 cat > conftest.$ac_ext <<EOF |
5236 #line 5237 "configure" | 5237 #line 5238 "configure" |
5237 #include "confdefs.h" | 5238 #include "confdefs.h" |
5238 /* Override any gcc2 internal prototype to avoid an error. */ | 5239 /* Override any gcc2 internal prototype to avoid an error. */ |
5239 /* We use char because int might match the return type of a gcc2 | 5240 /* We use char because int might match the return type of a gcc2 |
5240 builtin and then its argument prototype would still apply. */ | 5241 builtin and then its argument prototype would still apply. */ |
5241 char maillock(); | 5242 char maillock(); |
5242 | 5243 |
5243 int main() { | 5244 int main() { |
5244 maillock() | 5245 maillock() |
5245 ; return 0; } | 5246 ; return 0; } |
5246 EOF | 5247 EOF |
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5248 if { (eval echo configure:5249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5248 rm -rf conftest* | 5249 rm -rf conftest* |
5249 eval "ac_cv_lib_$ac_lib_var=yes" | 5250 eval "ac_cv_lib_$ac_lib_var=yes" |
5250 else | 5251 else |
5251 echo "configure: failed program was:" >&5 | 5252 echo "configure: failed program was:" >&5 |
5252 cat conftest.$ac_ext >&5 | 5253 cat conftest.$ac_ext >&5 |
5270 else | 5271 else |
5271 echo "$ac_t""no" 1>&6 | 5272 echo "$ac_t""no" 1>&6 |
5272 fi | 5273 fi |
5273 | 5274 |
5274 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5275 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
5275 echo "configure:5276: checking for maillock in -llockfile" >&5 | 5276 echo "configure:5277: checking for maillock in -llockfile" >&5 |
5276 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5277 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5278 echo $ac_n "(cached) $ac_c" 1>&6 | 5279 echo $ac_n "(cached) $ac_c" 1>&6 |
5279 else | 5280 else |
5280 ac_save_LIBS="$LIBS" | 5281 ac_save_LIBS="$LIBS" |
5281 LIBS="-llockfile $LIBS" | 5282 LIBS="-llockfile $LIBS" |
5282 cat > conftest.$ac_ext <<EOF | 5283 cat > conftest.$ac_ext <<EOF |
5283 #line 5284 "configure" | 5284 #line 5285 "configure" |
5284 #include "confdefs.h" | 5285 #include "confdefs.h" |
5285 /* Override any gcc2 internal prototype to avoid an error. */ | 5286 /* Override any gcc2 internal prototype to avoid an error. */ |
5286 /* We use char because int might match the return type of a gcc2 | 5287 /* We use char because int might match the return type of a gcc2 |
5287 builtin and then its argument prototype would still apply. */ | 5288 builtin and then its argument prototype would still apply. */ |
5288 char maillock(); | 5289 char maillock(); |
5289 | 5290 |
5290 int main() { | 5291 int main() { |
5291 maillock() | 5292 maillock() |
5292 ; return 0; } | 5293 ; return 0; } |
5293 EOF | 5294 EOF |
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5295 rm -rf conftest* | 5296 rm -rf conftest* |
5296 eval "ac_cv_lib_$ac_lib_var=yes" | 5297 eval "ac_cv_lib_$ac_lib_var=yes" |
5297 else | 5298 else |
5298 echo "configure: failed program was:" >&5 | 5299 echo "configure: failed program was:" >&5 |
5299 cat conftest.$ac_ext >&5 | 5300 cat conftest.$ac_ext >&5 |
5323 # (no liblockfile.a installed), ensure that we don't need to. | 5324 # (no liblockfile.a installed), ensure that we don't need to. |
5324 if test "$ac_cv_lib_lockfile_maillock" = no; then | 5325 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5325 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 5326 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5326 set dummy liblockfile.so; ac_word=$2 | 5327 set dummy liblockfile.so; ac_word=$2 |
5327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5328 echo "configure:5329: checking for $ac_word" >&5 | 5329 echo "configure:5330: checking for $ac_word" >&5 |
5329 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 5330 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5330 echo $ac_n "(cached) $ac_c" 1>&6 | 5331 echo $ac_n "(cached) $ac_c" 1>&6 |
5331 else | 5332 else |
5332 if test -n "$liblockfile"; then | 5333 if test -n "$liblockfile"; then |
5333 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 5334 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
5364 else : | 5365 else : |
5365 fi | 5366 fi |
5366 for ac_func in touchlock | 5367 for ac_func in touchlock |
5367 do | 5368 do |
5368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5369 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5369 echo "configure:5370: checking for $ac_func" >&5 | 5370 echo "configure:5371: checking for $ac_func" >&5 |
5370 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5371 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5371 echo $ac_n "(cached) $ac_c" 1>&6 | 5372 echo $ac_n "(cached) $ac_c" 1>&6 |
5372 else | 5373 else |
5373 cat > conftest.$ac_ext <<EOF | 5374 cat > conftest.$ac_ext <<EOF |
5374 #line 5375 "configure" | 5375 #line 5376 "configure" |
5375 #include "confdefs.h" | 5376 #include "confdefs.h" |
5376 /* System header to define __stub macros and hopefully few prototypes, | 5377 /* System header to define __stub macros and hopefully few prototypes, |
5377 which can conflict with char $ac_func(); below. */ | 5378 which can conflict with char $ac_func(); below. */ |
5378 #include <assert.h> | 5379 #include <assert.h> |
5379 /* Override any gcc2 internal prototype to avoid an error. */ | 5380 /* Override any gcc2 internal prototype to avoid an error. */ |
5392 $ac_func(); | 5393 $ac_func(); |
5393 #endif | 5394 #endif |
5394 | 5395 |
5395 ; return 0; } | 5396 ; return 0; } |
5396 EOF | 5397 EOF |
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5398 if { (eval echo configure:5399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5398 rm -rf conftest* | 5399 rm -rf conftest* |
5399 eval "ac_cv_func_$ac_func=yes" | 5400 eval "ac_cv_func_$ac_func=yes" |
5400 else | 5401 else |
5401 echo "configure: failed program was:" >&5 | 5402 echo "configure: failed program was:" >&5 |
5402 cat conftest.$ac_ext >&5 | 5403 cat conftest.$ac_ext >&5 |
5420 | 5421 |
5421 for ac_hdr in maillock.h | 5422 for ac_hdr in maillock.h |
5422 do | 5423 do |
5423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5424 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5424 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5425 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5425 echo "configure:5426: checking for $ac_hdr" >&5 | 5426 echo "configure:5427: checking for $ac_hdr" >&5 |
5426 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5427 echo $ac_n "(cached) $ac_c" 1>&6 | 5428 echo $ac_n "(cached) $ac_c" 1>&6 |
5428 else | 5429 else |
5429 cat > conftest.$ac_ext <<EOF | 5430 cat > conftest.$ac_ext <<EOF |
5430 #line 5431 "configure" | 5431 #line 5432 "configure" |
5431 #include "confdefs.h" | 5432 #include "confdefs.h" |
5432 #include <$ac_hdr> | 5433 #include <$ac_hdr> |
5433 EOF | 5434 EOF |
5434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5435 { (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5436 { (eval echo configure:5437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5437 if test -z "$ac_err"; then | 5438 if test -z "$ac_err"; then |
5438 rm -rf conftest* | 5439 rm -rf conftest* |
5439 eval "ac_cv_header_$ac_safe=yes" | 5440 eval "ac_cv_header_$ac_safe=yes" |
5440 else | 5441 else |
5462 for ac_func in gettimeofday gethostname getdomainname dup2 \ | 5463 for ac_func in gettimeofday gethostname getdomainname dup2 \ |
5463 rename closedir mkdir rmdir sysinfo \ | 5464 rename closedir mkdir rmdir sysinfo \ |
5464 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 5465 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
5465 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 5466 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
5466 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 5467 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
5467 __fpending getloadavg mblen mbrlen strsignal setitimer ualarm | 5468 __fpending mblen mbrlen strsignal setitimer ualarm |
5468 do | 5469 do |
5469 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5470 echo "configure:5471: checking for $ac_func" >&5 | 5471 echo "configure:5472: checking for $ac_func" >&5 |
5471 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5472 echo $ac_n "(cached) $ac_c" 1>&6 | 5473 echo $ac_n "(cached) $ac_c" 1>&6 |
5473 else | 5474 else |
5474 cat > conftest.$ac_ext <<EOF | 5475 cat > conftest.$ac_ext <<EOF |
5475 #line 5476 "configure" | 5476 #line 5477 "configure" |
5476 #include "confdefs.h" | 5477 #include "confdefs.h" |
5477 /* System header to define __stub macros and hopefully few prototypes, | 5478 /* System header to define __stub macros and hopefully few prototypes, |
5478 which can conflict with char $ac_func(); below. */ | 5479 which can conflict with char $ac_func(); below. */ |
5479 #include <assert.h> | 5480 #include <assert.h> |
5480 /* Override any gcc2 internal prototype to avoid an error. */ | 5481 /* Override any gcc2 internal prototype to avoid an error. */ |
5493 $ac_func(); | 5494 $ac_func(); |
5494 #endif | 5495 #endif |
5495 | 5496 |
5496 ; return 0; } | 5497 ; return 0; } |
5497 EOF | 5498 EOF |
5498 if { (eval echo configure:5499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5499 if { (eval echo configure:5500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5499 rm -rf conftest* | 5500 rm -rf conftest* |
5500 eval "ac_cv_func_$ac_func=yes" | 5501 eval "ac_cv_func_$ac_func=yes" |
5501 else | 5502 else |
5502 echo "configure: failed program was:" >&5 | 5503 echo "configure: failed program was:" >&5 |
5503 cat conftest.$ac_ext >&5 | 5504 cat conftest.$ac_ext >&5 |
5522 | 5523 |
5523 for ac_hdr in sys/time.h unistd.h | 5524 for ac_hdr in sys/time.h unistd.h |
5524 do | 5525 do |
5525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5527 echo "configure:5528: checking for $ac_hdr" >&5 | 5528 echo "configure:5529: checking for $ac_hdr" >&5 |
5528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5529 echo $ac_n "(cached) $ac_c" 1>&6 | 5530 echo $ac_n "(cached) $ac_c" 1>&6 |
5530 else | 5531 else |
5531 cat > conftest.$ac_ext <<EOF | 5532 cat > conftest.$ac_ext <<EOF |
5532 #line 5533 "configure" | 5533 #line 5534 "configure" |
5533 #include "confdefs.h" | 5534 #include "confdefs.h" |
5534 #include <$ac_hdr> | 5535 #include <$ac_hdr> |
5535 EOF | 5536 EOF |
5536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5537 { (eval echo configure:5538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5538 { (eval echo configure:5539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5539 if test -z "$ac_err"; then | 5540 if test -z "$ac_err"; then |
5540 rm -rf conftest* | 5541 rm -rf conftest* |
5541 eval "ac_cv_header_$ac_safe=yes" | 5542 eval "ac_cv_header_$ac_safe=yes" |
5542 else | 5543 else |
5561 done | 5562 done |
5562 | 5563 |
5563 for ac_func in alarm | 5564 for ac_func in alarm |
5564 do | 5565 do |
5565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5566 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5566 echo "configure:5567: checking for $ac_func" >&5 | 5567 echo "configure:5568: checking for $ac_func" >&5 |
5567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5568 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5568 echo $ac_n "(cached) $ac_c" 1>&6 | 5569 echo $ac_n "(cached) $ac_c" 1>&6 |
5569 else | 5570 else |
5570 cat > conftest.$ac_ext <<EOF | 5571 cat > conftest.$ac_ext <<EOF |
5571 #line 5572 "configure" | 5572 #line 5573 "configure" |
5572 #include "confdefs.h" | 5573 #include "confdefs.h" |
5573 /* System header to define __stub macros and hopefully few prototypes, | 5574 /* System header to define __stub macros and hopefully few prototypes, |
5574 which can conflict with char $ac_func(); below. */ | 5575 which can conflict with char $ac_func(); below. */ |
5575 #include <assert.h> | 5576 #include <assert.h> |
5576 /* Override any gcc2 internal prototype to avoid an error. */ | 5577 /* Override any gcc2 internal prototype to avoid an error. */ |
5589 $ac_func(); | 5590 $ac_func(); |
5590 #endif | 5591 #endif |
5591 | 5592 |
5592 ; return 0; } | 5593 ; return 0; } |
5593 EOF | 5594 EOF |
5594 if { (eval echo configure:5595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5595 rm -rf conftest* | 5596 rm -rf conftest* |
5596 eval "ac_cv_func_$ac_func=yes" | 5597 eval "ac_cv_func_$ac_func=yes" |
5597 else | 5598 else |
5598 echo "configure: failed program was:" >&5 | 5599 echo "configure: failed program was:" >&5 |
5599 cat conftest.$ac_ext >&5 | 5600 cat conftest.$ac_ext >&5 |
5614 echo "$ac_t""no" 1>&6 | 5615 echo "$ac_t""no" 1>&6 |
5615 fi | 5616 fi |
5616 done | 5617 done |
5617 | 5618 |
5618 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 5619 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 |
5619 echo "configure:5620: checking for working mktime" >&5 | 5620 echo "configure:5621: checking for working mktime" >&5 |
5620 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 5621 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
5621 echo $ac_n "(cached) $ac_c" 1>&6 | 5622 echo $ac_n "(cached) $ac_c" 1>&6 |
5622 else | 5623 else |
5623 if test "$cross_compiling" = yes; then | 5624 if test "$cross_compiling" = yes; then |
5624 ac_cv_func_working_mktime=no | 5625 ac_cv_func_working_mktime=no |
5625 else | 5626 else |
5626 cat > conftest.$ac_ext <<EOF | 5627 cat > conftest.$ac_ext <<EOF |
5627 #line 5628 "configure" | 5628 #line 5629 "configure" |
5628 #include "confdefs.h" | 5629 #include "confdefs.h" |
5629 /* Test program from Paul Eggert (eggert@twinsun.com) | 5630 /* Test program from Paul Eggert (eggert@twinsun.com) |
5630 and Tony Leneis (tony@plaza.ds.adp.com). */ | 5631 and Tony Leneis (tony@plaza.ds.adp.com). */ |
5631 #if TIME_WITH_SYS_TIME | 5632 #if TIME_WITH_SYS_TIME |
5632 # include <sys/time.h> | 5633 # include <sys/time.h> |
5771 irix_6_4_bug (); | 5772 irix_6_4_bug (); |
5772 spring_forward_gap (); | 5773 spring_forward_gap (); |
5773 exit (0); | 5774 exit (0); |
5774 } | 5775 } |
5775 EOF | 5776 EOF |
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5777 then | 5778 then |
5778 ac_cv_func_working_mktime=yes | 5779 ac_cv_func_working_mktime=yes |
5779 else | 5780 else |
5780 echo "configure: failed program was:" >&5 | 5781 echo "configure: failed program was:" >&5 |
5781 cat conftest.$ac_ext >&5 | 5782 cat conftest.$ac_ext >&5 |
5796 cat >> confdefs.h <<\EOF | 5797 cat >> confdefs.h <<\EOF |
5797 #define BROKEN_MKTIME 1 | 5798 #define BROKEN_MKTIME 1 |
5798 EOF | 5799 EOF |
5799 | 5800 |
5800 fi | 5801 fi |
5802 | |
5803 ac_have_func=no # yes means we've found a way to get the load average. | |
5804 | |
5805 # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
5806 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
5807 # to get the right answer into the cache. | |
5808 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | |
5809 echo "configure:5810: checking for elf_begin in -lelf" >&5 | |
5810 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | |
5811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5812 echo $ac_n "(cached) $ac_c" 1>&6 | |
5813 else | |
5814 ac_save_LIBS="$LIBS" | |
5815 LIBS="-lelf $LIBS" | |
5816 cat > conftest.$ac_ext <<EOF | |
5817 #line 5818 "configure" | |
5818 #include "confdefs.h" | |
5819 /* Override any gcc2 internal prototype to avoid an error. */ | |
5820 /* We use char because int might match the return type of a gcc2 | |
5821 builtin and then its argument prototype would still apply. */ | |
5822 char elf_begin(); | |
5823 | |
5824 int main() { | |
5825 elf_begin() | |
5826 ; return 0; } | |
5827 EOF | |
5828 if { (eval echo configure:5829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5829 rm -rf conftest* | |
5830 eval "ac_cv_lib_$ac_lib_var=yes" | |
5831 else | |
5832 echo "configure: failed program was:" >&5 | |
5833 cat conftest.$ac_ext >&5 | |
5834 rm -rf conftest* | |
5835 eval "ac_cv_lib_$ac_lib_var=no" | |
5836 fi | |
5837 rm -f conftest* | |
5838 LIBS="$ac_save_LIBS" | |
5839 | |
5840 fi | |
5841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5842 echo "$ac_t""yes" 1>&6 | |
5843 LIBS="-lelf $LIBS" | |
5844 else | |
5845 echo "$ac_t""no" 1>&6 | |
5846 fi | |
5847 | |
5848 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | |
5849 echo "configure:5850: checking for kvm_open in -lkvm" >&5 | |
5850 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | |
5851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5852 echo $ac_n "(cached) $ac_c" 1>&6 | |
5853 else | |
5854 ac_save_LIBS="$LIBS" | |
5855 LIBS="-lkvm $LIBS" | |
5856 cat > conftest.$ac_ext <<EOF | |
5857 #line 5858 "configure" | |
5858 #include "confdefs.h" | |
5859 /* Override any gcc2 internal prototype to avoid an error. */ | |
5860 /* We use char because int might match the return type of a gcc2 | |
5861 builtin and then its argument prototype would still apply. */ | |
5862 char kvm_open(); | |
5863 | |
5864 int main() { | |
5865 kvm_open() | |
5866 ; return 0; } | |
5867 EOF | |
5868 if { (eval echo configure:5869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5869 rm -rf conftest* | |
5870 eval "ac_cv_lib_$ac_lib_var=yes" | |
5871 else | |
5872 echo "configure: failed program was:" >&5 | |
5873 cat conftest.$ac_ext >&5 | |
5874 rm -rf conftest* | |
5875 eval "ac_cv_lib_$ac_lib_var=no" | |
5876 fi | |
5877 rm -f conftest* | |
5878 LIBS="$ac_save_LIBS" | |
5879 | |
5880 fi | |
5881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5882 echo "$ac_t""yes" 1>&6 | |
5883 LIBS="-lkvm $LIBS" | |
5884 else | |
5885 echo "$ac_t""no" 1>&6 | |
5886 fi | |
5887 | |
5888 # Check for the 4.4BSD definition of getloadavg. | |
5889 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | |
5890 echo "configure:5891: checking for getloadavg in -lutil" >&5 | |
5891 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | |
5892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5893 echo $ac_n "(cached) $ac_c" 1>&6 | |
5894 else | |
5895 ac_save_LIBS="$LIBS" | |
5896 LIBS="-lutil $LIBS" | |
5897 cat > conftest.$ac_ext <<EOF | |
5898 #line 5899 "configure" | |
5899 #include "confdefs.h" | |
5900 /* Override any gcc2 internal prototype to avoid an error. */ | |
5901 /* We use char because int might match the return type of a gcc2 | |
5902 builtin and then its argument prototype would still apply. */ | |
5903 char getloadavg(); | |
5904 | |
5905 int main() { | |
5906 getloadavg() | |
5907 ; return 0; } | |
5908 EOF | |
5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5910 rm -rf conftest* | |
5911 eval "ac_cv_lib_$ac_lib_var=yes" | |
5912 else | |
5913 echo "configure: failed program was:" >&5 | |
5914 cat conftest.$ac_ext >&5 | |
5915 rm -rf conftest* | |
5916 eval "ac_cv_lib_$ac_lib_var=no" | |
5917 fi | |
5918 rm -f conftest* | |
5919 LIBS="$ac_save_LIBS" | |
5920 | |
5921 fi | |
5922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5923 echo "$ac_t""yes" 1>&6 | |
5924 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
5925 else | |
5926 echo "$ac_t""no" 1>&6 | |
5927 fi | |
5928 | |
5929 | |
5930 if test $ac_have_func = no; then | |
5931 # There is a commonly available library for RS/6000 AIX. | |
5932 # Since it is not a standard part of AIX, it might be installed locally. | |
5933 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | |
5934 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | |
5935 echo "configure:5936: checking for getloadavg in -lgetloadavg" >&5 | |
5936 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | |
5937 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5938 echo $ac_n "(cached) $ac_c" 1>&6 | |
5939 else | |
5940 ac_save_LIBS="$LIBS" | |
5941 LIBS="-lgetloadavg $LIBS" | |
5942 cat > conftest.$ac_ext <<EOF | |
5943 #line 5944 "configure" | |
5944 #include "confdefs.h" | |
5945 /* Override any gcc2 internal prototype to avoid an error. */ | |
5946 /* We use char because int might match the return type of a gcc2 | |
5947 builtin and then its argument prototype would still apply. */ | |
5948 char getloadavg(); | |
5949 | |
5950 int main() { | |
5951 getloadavg() | |
5952 ; return 0; } | |
5953 EOF | |
5954 if { (eval echo configure:5955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5955 rm -rf conftest* | |
5956 eval "ac_cv_lib_$ac_lib_var=yes" | |
5957 else | |
5958 echo "configure: failed program was:" >&5 | |
5959 cat conftest.$ac_ext >&5 | |
5960 rm -rf conftest* | |
5961 eval "ac_cv_lib_$ac_lib_var=no" | |
5962 fi | |
5963 rm -f conftest* | |
5964 LIBS="$ac_save_LIBS" | |
5965 | |
5966 fi | |
5967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5968 echo "$ac_t""yes" 1>&6 | |
5969 LIBS="-lgetloadavg $LIBS" | |
5970 else | |
5971 echo "$ac_t""no" 1>&6 | |
5972 LIBS="$ac_getloadavg_LIBS" | |
5973 fi | |
5974 | |
5975 fi | |
5976 | |
5977 # Make sure it is really in the library, if we think we found it. | |
5978 for ac_func in getloadavg | |
5979 do | |
5980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5981 echo "configure:5982: checking for $ac_func" >&5 | |
5982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
5983 echo $ac_n "(cached) $ac_c" 1>&6 | |
5984 else | |
5985 cat > conftest.$ac_ext <<EOF | |
5986 #line 5987 "configure" | |
5987 #include "confdefs.h" | |
5988 /* System header to define __stub macros and hopefully few prototypes, | |
5989 which can conflict with char $ac_func(); below. */ | |
5990 #include <assert.h> | |
5991 /* Override any gcc2 internal prototype to avoid an error. */ | |
5992 /* We use char because int might match the return type of a gcc2 | |
5993 builtin and then its argument prototype would still apply. */ | |
5994 char $ac_func(); | |
5995 | |
5996 int main() { | |
5997 | |
5998 /* The GNU C library defines this for functions which it implements | |
5999 to always fail with ENOSYS. Some functions are actually named | |
6000 something starting with __ and the normal name is an alias. */ | |
6001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6002 choke me | |
6003 #else | |
6004 $ac_func(); | |
6005 #endif | |
6006 | |
6007 ; return 0; } | |
6008 EOF | |
6009 if { (eval echo configure:6010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6010 rm -rf conftest* | |
6011 eval "ac_cv_func_$ac_func=yes" | |
6012 else | |
6013 echo "configure: failed program was:" >&5 | |
6014 cat conftest.$ac_ext >&5 | |
6015 rm -rf conftest* | |
6016 eval "ac_cv_func_$ac_func=no" | |
6017 fi | |
6018 rm -f conftest* | |
6019 fi | |
6020 | |
6021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
6022 echo "$ac_t""yes" 1>&6 | |
6023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
6024 cat >> confdefs.h <<EOF | |
6025 #define $ac_tr_func 1 | |
6026 EOF | |
6027 | |
6028 else | |
6029 echo "$ac_t""no" 1>&6 | |
6030 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | |
6031 fi | |
6032 done | |
6033 | |
6034 | |
6035 | |
6036 if test $ac_cv_func_getloadavg = yes; then | |
6037 cat >> confdefs.h <<\EOF | |
6038 #define HAVE_GETLOADAVG 1 | |
6039 EOF | |
6040 | |
6041 ac_have_func=yes | |
6042 else | |
6043 # Figure out what our getloadavg.c needs. | |
6044 ac_have_func=no | |
6045 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | |
6046 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | |
6047 echo "configure:6048: checking for sys/dg_sys_info.h" >&5 | |
6048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6049 echo $ac_n "(cached) $ac_c" 1>&6 | |
6050 else | |
6051 cat > conftest.$ac_ext <<EOF | |
6052 #line 6053 "configure" | |
6053 #include "confdefs.h" | |
6054 #include <sys/dg_sys_info.h> | |
6055 EOF | |
6056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6057 { (eval echo configure:6058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6059 if test -z "$ac_err"; then | |
6060 rm -rf conftest* | |
6061 eval "ac_cv_header_$ac_safe=yes" | |
6062 else | |
6063 echo "$ac_err" >&5 | |
6064 echo "configure: failed program was:" >&5 | |
6065 cat conftest.$ac_ext >&5 | |
6066 rm -rf conftest* | |
6067 eval "ac_cv_header_$ac_safe=no" | |
6068 fi | |
6069 rm -f conftest* | |
6070 fi | |
6071 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6072 echo "$ac_t""yes" 1>&6 | |
6073 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6074 #define DGUX 1 | |
6075 EOF | |
6076 | |
6077 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | |
6078 echo "configure:6079: checking for dg_sys_info in -ldgc" >&5 | |
6079 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | |
6080 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6081 echo $ac_n "(cached) $ac_c" 1>&6 | |
6082 else | |
6083 ac_save_LIBS="$LIBS" | |
6084 LIBS="-ldgc $LIBS" | |
6085 cat > conftest.$ac_ext <<EOF | |
6086 #line 6087 "configure" | |
6087 #include "confdefs.h" | |
6088 /* Override any gcc2 internal prototype to avoid an error. */ | |
6089 /* We use char because int might match the return type of a gcc2 | |
6090 builtin and then its argument prototype would still apply. */ | |
6091 char dg_sys_info(); | |
6092 | |
6093 int main() { | |
6094 dg_sys_info() | |
6095 ; return 0; } | |
6096 EOF | |
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6098 rm -rf conftest* | |
6099 eval "ac_cv_lib_$ac_lib_var=yes" | |
6100 else | |
6101 echo "configure: failed program was:" >&5 | |
6102 cat conftest.$ac_ext >&5 | |
6103 rm -rf conftest* | |
6104 eval "ac_cv_lib_$ac_lib_var=no" | |
6105 fi | |
6106 rm -f conftest* | |
6107 LIBS="$ac_save_LIBS" | |
6108 | |
6109 fi | |
6110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6111 echo "$ac_t""yes" 1>&6 | |
6112 ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6114 cat >> confdefs.h <<EOF | |
6115 #define $ac_tr_lib 1 | |
6116 EOF | |
6117 | |
6118 LIBS="-ldgc $LIBS" | |
6119 | |
6120 else | |
6121 echo "$ac_t""no" 1>&6 | |
6122 fi | |
6123 | |
6124 else | |
6125 echo "$ac_t""no" 1>&6 | |
6126 fi | |
6127 | |
6128 | |
6129 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
6130 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
6131 # Irix 4.0.5F has the header but not the library. | |
6132 if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then | |
6133 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6134 #define SVR4 1 | |
6135 EOF | |
6136 | |
6137 fi | |
6138 | |
6139 if test $ac_have_func = no; then | |
6140 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | |
6141 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | |
6142 echo "configure:6143: checking for inq_stats/cpustats.h" >&5 | |
6143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6144 echo $ac_n "(cached) $ac_c" 1>&6 | |
6145 else | |
6146 cat > conftest.$ac_ext <<EOF | |
6147 #line 6148 "configure" | |
6148 #include "confdefs.h" | |
6149 #include <inq_stats/cpustats.h> | |
6150 EOF | |
6151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6152 { (eval echo configure:6153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6154 if test -z "$ac_err"; then | |
6155 rm -rf conftest* | |
6156 eval "ac_cv_header_$ac_safe=yes" | |
6157 else | |
6158 echo "$ac_err" >&5 | |
6159 echo "configure: failed program was:" >&5 | |
6160 cat conftest.$ac_ext >&5 | |
6161 rm -rf conftest* | |
6162 eval "ac_cv_header_$ac_safe=no" | |
6163 fi | |
6164 rm -f conftest* | |
6165 fi | |
6166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6167 echo "$ac_t""yes" 1>&6 | |
6168 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6169 #define UMAX 1 | |
6170 EOF | |
6171 | |
6172 cat >> confdefs.h <<\EOF | |
6173 #define UMAX4_3 1 | |
6174 EOF | |
6175 | |
6176 else | |
6177 echo "$ac_t""no" 1>&6 | |
6178 fi | |
6179 | |
6180 fi | |
6181 | |
6182 if test $ac_have_func = no; then | |
6183 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | |
6184 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | |
6185 echo "configure:6186: checking for sys/cpustats.h" >&5 | |
6186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6187 echo $ac_n "(cached) $ac_c" 1>&6 | |
6188 else | |
6189 cat > conftest.$ac_ext <<EOF | |
6190 #line 6191 "configure" | |
6191 #include "confdefs.h" | |
6192 #include <sys/cpustats.h> | |
6193 EOF | |
6194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6195 { (eval echo configure:6196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6197 if test -z "$ac_err"; then | |
6198 rm -rf conftest* | |
6199 eval "ac_cv_header_$ac_safe=yes" | |
6200 else | |
6201 echo "$ac_err" >&5 | |
6202 echo "configure: failed program was:" >&5 | |
6203 cat conftest.$ac_ext >&5 | |
6204 rm -rf conftest* | |
6205 eval "ac_cv_header_$ac_safe=no" | |
6206 fi | |
6207 rm -f conftest* | |
6208 fi | |
6209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6210 echo "$ac_t""yes" 1>&6 | |
6211 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6212 #define UMAX 1 | |
6213 EOF | |
6214 | |
6215 else | |
6216 echo "$ac_t""no" 1>&6 | |
6217 fi | |
6218 | |
6219 fi | |
6220 | |
6221 if test $ac_have_func = no; then | |
6222 for ac_hdr in mach/mach.h | |
6223 do | |
6224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6226 echo "configure:6227: checking for $ac_hdr" >&5 | |
6227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6228 echo $ac_n "(cached) $ac_c" 1>&6 | |
6229 else | |
6230 cat > conftest.$ac_ext <<EOF | |
6231 #line 6232 "configure" | |
6232 #include "confdefs.h" | |
6233 #include <$ac_hdr> | |
6234 EOF | |
6235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6236 { (eval echo configure:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6238 if test -z "$ac_err"; then | |
6239 rm -rf conftest* | |
6240 eval "ac_cv_header_$ac_safe=yes" | |
6241 else | |
6242 echo "$ac_err" >&5 | |
6243 echo "configure: failed program was:" >&5 | |
6244 cat conftest.$ac_ext >&5 | |
6245 rm -rf conftest* | |
6246 eval "ac_cv_header_$ac_safe=no" | |
6247 fi | |
6248 rm -f conftest* | |
6249 fi | |
6250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6251 echo "$ac_t""yes" 1>&6 | |
6252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6253 cat >> confdefs.h <<EOF | |
6254 #define $ac_tr_hdr 1 | |
6255 EOF | |
6256 | |
6257 else | |
6258 echo "$ac_t""no" 1>&6 | |
6259 fi | |
6260 done | |
6261 | |
6262 fi | |
6263 | |
6264 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | |
6265 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | |
6266 echo "configure:6267: checking for nlist.h" >&5 | |
6267 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6268 echo $ac_n "(cached) $ac_c" 1>&6 | |
6269 else | |
6270 cat > conftest.$ac_ext <<EOF | |
6271 #line 6272 "configure" | |
6272 #include "confdefs.h" | |
6273 #include <nlist.h> | |
6274 EOF | |
6275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6276 { (eval echo configure:6277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6278 if test -z "$ac_err"; then | |
6279 rm -rf conftest* | |
6280 eval "ac_cv_header_$ac_safe=yes" | |
6281 else | |
6282 echo "$ac_err" >&5 | |
6283 echo "configure: failed program was:" >&5 | |
6284 cat conftest.$ac_ext >&5 | |
6285 rm -rf conftest* | |
6286 eval "ac_cv_header_$ac_safe=no" | |
6287 fi | |
6288 rm -f conftest* | |
6289 fi | |
6290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6291 echo "$ac_t""yes" 1>&6 | |
6292 cat >> confdefs.h <<\EOF | |
6293 #define NLIST_STRUCT 1 | |
6294 EOF | |
6295 | |
6296 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | |
6297 echo "configure:6298: checking for n_un in struct nlist" >&5 | |
6298 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | |
6299 echo $ac_n "(cached) $ac_c" 1>&6 | |
6300 else | |
6301 cat > conftest.$ac_ext <<EOF | |
6302 #line 6303 "configure" | |
6303 #include "confdefs.h" | |
6304 #include <nlist.h> | |
6305 int main() { | |
6306 struct nlist n; n.n_un.n_name = 0; | |
6307 ; return 0; } | |
6308 EOF | |
6309 if { (eval echo configure:6310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6310 rm -rf conftest* | |
6311 ac_cv_struct_nlist_n_un=yes | |
6312 else | |
6313 echo "configure: failed program was:" >&5 | |
6314 cat conftest.$ac_ext >&5 | |
6315 rm -rf conftest* | |
6316 ac_cv_struct_nlist_n_un=no | |
6317 fi | |
6318 rm -f conftest* | |
6319 fi | |
6320 | |
6321 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 | |
6322 if test $ac_cv_struct_nlist_n_un = yes; then | |
6323 cat >> confdefs.h <<\EOF | |
6324 #define NLIST_NAME_UNION 1 | |
6325 EOF | |
6326 | |
6327 fi | |
6328 | |
6329 else | |
6330 echo "$ac_t""no" 1>&6 | |
6331 fi | |
6332 fi # Do not have getloadavg in system libraries. | |
6333 | |
6334 # Some definitions of getloadavg require that the program be installed setgid. | |
6335 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | |
6336 echo "configure:6337: checking whether getloadavg requires setgid" >&5 | |
6337 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | |
6338 echo $ac_n "(cached) $ac_c" 1>&6 | |
6339 else | |
6340 cat > conftest.$ac_ext <<EOF | |
6341 #line 6342 "configure" | |
6342 #include "confdefs.h" | |
6343 #include "$srcdir/getloadavg.c" | |
6344 #ifdef LDAV_PRIVILEGED | |
6345 Yowza Am I SETGID yet | |
6346 #endif | |
6347 EOF | |
6348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6349 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
6350 rm -rf conftest* | |
6351 ac_cv_func_getloadavg_setgid=yes | |
6352 else | |
6353 rm -rf conftest* | |
6354 ac_cv_func_getloadavg_setgid=no | |
6355 fi | |
6356 rm -f conftest* | |
6357 | |
6358 fi | |
6359 | |
6360 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 | |
6361 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6362 NEED_SETGID=true; cat >> confdefs.h <<\EOF | |
6363 #define GETLOADAVG_PRIVILEGED 1 | |
6364 EOF | |
6365 | |
6366 else | |
6367 NEED_SETGID=false | |
6368 fi | |
6369 | |
6370 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6371 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | |
6372 echo "configure:6373: checking group of /dev/kmem" >&5 | |
6373 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | |
6374 echo $ac_n "(cached) $ac_c" 1>&6 | |
6375 else | |
6376 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
6377 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
6378 # If we got an error (system does not support symlinks), try without -L. | |
6379 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
6380 ac_cv_group_kmem=`echo $ac_ls_output \ | |
6381 | sed -ne 's/[ ][ ]*/ /g; | |
6382 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
6383 / /s/.* //;p;'` | |
6384 | |
6385 fi | |
6386 | |
6387 echo "$ac_t""$ac_cv_group_kmem" 1>&6 | |
6388 KMEM_GROUP=$ac_cv_group_kmem | |
6389 fi | |
6390 | |
5801 | 6391 |
5802 # Check whether --enable-largefile or --disable-largefile was given. | 6392 # Check whether --enable-largefile or --disable-largefile was given. |
5803 if test "${enable_largefile+set}" = set; then | 6393 if test "${enable_largefile+set}" = set; then |
5804 enableval="$enable_largefile" | 6394 enableval="$enable_largefile" |
5805 : | 6395 : |
5806 fi | 6396 fi |
5807 | 6397 |
5808 if test "$enable_largefile" != no; then | 6398 if test "$enable_largefile" != no; then |
5809 | 6399 |
5810 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | 6400 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 |
5811 echo "configure:5812: checking for special C compiler options needed for large files" >&5 | 6401 echo "configure:6402: checking for special C compiler options needed for large files" >&5 |
5812 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then | 6402 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then |
5813 echo $ac_n "(cached) $ac_c" 1>&6 | 6403 echo $ac_n "(cached) $ac_c" 1>&6 |
5814 else | 6404 else |
5815 ac_cv_sys_largefile_CC=no | 6405 ac_cv_sys_largefile_CC=no |
5816 if test "$GCC" != yes; then | 6406 if test "$GCC" != yes; then |
5817 # IRIX 6.2 and later do not support large files by default, | 6407 # IRIX 6.2 and later do not support large files by default, |
5818 # so use the C compiler's -n32 option if that helps. | 6408 # so use the C compiler's -n32 option if that helps. |
5819 cat > conftest.$ac_ext <<EOF | 6409 cat > conftest.$ac_ext <<EOF |
5820 #line 5821 "configure" | 6410 #line 6411 "configure" |
5821 #include "confdefs.h" | 6411 #include "confdefs.h" |
5822 #include <sys/types.h> | 6412 #include <sys/types.h> |
5823 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6413 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
5824 | 6414 |
5825 int main() { | 6415 int main() { |
5826 | 6416 |
5827 ; return 0; } | 6417 ; return 0; } |
5828 EOF | 6418 EOF |
5829 if { (eval echo configure:5830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6419 if { (eval echo configure:6420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5830 : | 6420 : |
5831 else | 6421 else |
5832 echo "configure: failed program was:" >&5 | 6422 echo "configure: failed program was:" >&5 |
5833 cat conftest.$ac_ext >&5 | 6423 cat conftest.$ac_ext >&5 |
5834 rm -rf conftest* | 6424 rm -rf conftest* |
5835 ac_save_CC="$CC" | 6425 ac_save_CC="$CC" |
5836 CC="$CC -n32" | 6426 CC="$CC -n32" |
5837 cat > conftest.$ac_ext <<EOF | 6427 cat > conftest.$ac_ext <<EOF |
5838 #line 5839 "configure" | 6428 #line 6429 "configure" |
5839 #include "confdefs.h" | 6429 #include "confdefs.h" |
5840 #include <sys/types.h> | 6430 #include <sys/types.h> |
5841 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6431 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
5842 | 6432 |
5843 int main() { | 6433 int main() { |
5844 | 6434 |
5845 ; return 0; } | 6435 ; return 0; } |
5846 EOF | 6436 EOF |
5847 if { (eval echo configure:5848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6437 if { (eval echo configure:6438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5848 rm -rf conftest* | 6438 rm -rf conftest* |
5849 ac_cv_sys_largefile_CC=' -n32' | 6439 ac_cv_sys_largefile_CC=' -n32' |
5850 else | 6440 else |
5851 echo "configure: failed program was:" >&5 | 6441 echo "configure: failed program was:" >&5 |
5852 cat conftest.$ac_ext >&5 | 6442 cat conftest.$ac_ext >&5 |
5862 if test "$ac_cv_sys_largefile_CC" != no; then | 6452 if test "$ac_cv_sys_largefile_CC" != no; then |
5863 CC="$CC$ac_cv_sys_largefile_CC" | 6453 CC="$CC$ac_cv_sys_largefile_CC" |
5864 fi | 6454 fi |
5865 | 6455 |
5866 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | 6456 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 |
5867 echo "configure:5868: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | 6457 echo "configure:6458: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5868 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | 6458 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
5869 echo $ac_n "(cached) $ac_c" 1>&6 | 6459 echo $ac_n "(cached) $ac_c" 1>&6 |
5870 else | 6460 else |
5871 ac_cv_sys_file_offset_bits=no | 6461 ac_cv_sys_file_offset_bits=no |
5872 cat > conftest.$ac_ext <<EOF | 6462 cat > conftest.$ac_ext <<EOF |
5873 #line 5874 "configure" | 6463 #line 6464 "configure" |
5874 #include "confdefs.h" | 6464 #include "confdefs.h" |
5875 #include <sys/types.h> | 6465 #include <sys/types.h> |
5876 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6466 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
5877 | 6467 |
5878 | 6468 |
5879 | 6469 |
5880 int main() { | 6470 int main() { |
5881 | 6471 |
5882 ; return 0; } | 6472 ; return 0; } |
5883 EOF | 6473 EOF |
5884 if { (eval echo configure:5885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6474 if { (eval echo configure:6475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5885 : | 6475 : |
5886 else | 6476 else |
5887 echo "configure: failed program was:" >&5 | 6477 echo "configure: failed program was:" >&5 |
5888 cat conftest.$ac_ext >&5 | 6478 cat conftest.$ac_ext >&5 |
5889 rm -rf conftest* | 6479 rm -rf conftest* |
5890 cat > conftest.$ac_ext <<EOF | 6480 cat > conftest.$ac_ext <<EOF |
5891 #line 5892 "configure" | 6481 #line 6482 "configure" |
5892 #include "confdefs.h" | 6482 #include "confdefs.h" |
5893 #define _FILE_OFFSET_BITS 64 | 6483 #define _FILE_OFFSET_BITS 64 |
5894 #include <sys/types.h> | 6484 #include <sys/types.h> |
5895 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6485 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
5896 | 6486 |
5898 | 6488 |
5899 int main() { | 6489 int main() { |
5900 | 6490 |
5901 ; return 0; } | 6491 ; return 0; } |
5902 EOF | 6492 EOF |
5903 if { (eval echo configure:5904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6493 if { (eval echo configure:6494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5904 rm -rf conftest* | 6494 rm -rf conftest* |
5905 ac_cv_sys_file_offset_bits=64 | 6495 ac_cv_sys_file_offset_bits=64 |
5906 else | 6496 else |
5907 echo "configure: failed program was:" >&5 | 6497 echo "configure: failed program was:" >&5 |
5908 cat conftest.$ac_ext >&5 | 6498 cat conftest.$ac_ext >&5 |
5918 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | 6508 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
5919 EOF | 6509 EOF |
5920 | 6510 |
5921 fi | 6511 fi |
5922 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 6512 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 |
5923 echo "configure:5924: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 6513 echo "configure:6514: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
5924 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 6514 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
5925 echo $ac_n "(cached) $ac_c" 1>&6 | 6515 echo $ac_n "(cached) $ac_c" 1>&6 |
5926 else | 6516 else |
5927 ac_cv_sys_largefile_source=no | 6517 ac_cv_sys_largefile_source=no |
5928 cat > conftest.$ac_ext <<EOF | 6518 cat > conftest.$ac_ext <<EOF |
5929 #line 5930 "configure" | 6519 #line 6520 "configure" |
5930 #include "confdefs.h" | 6520 #include "confdefs.h" |
5931 #include <sys/types.h> | 6521 #include <sys/types.h> |
5932 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6522 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
5933 | 6523 |
5934 #include <stdio.h> | 6524 #include <stdio.h> |
5935 | 6525 |
5936 int main() { | 6526 int main() { |
5937 return !ftello; | 6527 return !ftello; |
5938 ; return 0; } | 6528 ; return 0; } |
5939 EOF | 6529 EOF |
5940 if { (eval echo configure:5941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6530 if { (eval echo configure:6531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5941 : | 6531 : |
5942 else | 6532 else |
5943 echo "configure: failed program was:" >&5 | 6533 echo "configure: failed program was:" >&5 |
5944 cat conftest.$ac_ext >&5 | 6534 cat conftest.$ac_ext >&5 |
5945 rm -rf conftest* | 6535 rm -rf conftest* |
5946 cat > conftest.$ac_ext <<EOF | 6536 cat > conftest.$ac_ext <<EOF |
5947 #line 5948 "configure" | 6537 #line 6538 "configure" |
5948 #include "confdefs.h" | 6538 #include "confdefs.h" |
5949 #define _LARGEFILE_SOURCE 1 | 6539 #define _LARGEFILE_SOURCE 1 |
5950 #include <sys/types.h> | 6540 #include <sys/types.h> |
5951 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6541 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
5952 | 6542 |
5954 | 6544 |
5955 int main() { | 6545 int main() { |
5956 return !ftello; | 6546 return !ftello; |
5957 ; return 0; } | 6547 ; return 0; } |
5958 EOF | 6548 EOF |
5959 if { (eval echo configure:5960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6549 if { (eval echo configure:6550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5960 rm -rf conftest* | 6550 rm -rf conftest* |
5961 ac_cv_sys_largefile_source=1 | 6551 ac_cv_sys_largefile_source=1 |
5962 else | 6552 else |
5963 echo "configure: failed program was:" >&5 | 6553 echo "configure: failed program was:" >&5 |
5964 cat conftest.$ac_ext >&5 | 6554 cat conftest.$ac_ext >&5 |
5974 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | 6564 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
5975 EOF | 6565 EOF |
5976 | 6566 |
5977 fi | 6567 fi |
5978 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | 6568 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 |
5979 echo "configure:5980: checking for _LARGE_FILES value needed for large files" >&5 | 6569 echo "configure:6570: checking for _LARGE_FILES value needed for large files" >&5 |
5980 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | 6570 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
5981 echo $ac_n "(cached) $ac_c" 1>&6 | 6571 echo $ac_n "(cached) $ac_c" 1>&6 |
5982 else | 6572 else |
5983 ac_cv_sys_large_files=no | 6573 ac_cv_sys_large_files=no |
5984 cat > conftest.$ac_ext <<EOF | 6574 cat > conftest.$ac_ext <<EOF |
5985 #line 5986 "configure" | 6575 #line 6576 "configure" |
5986 #include "confdefs.h" | 6576 #include "confdefs.h" |
5987 #include <sys/types.h> | 6577 #include <sys/types.h> |
5988 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6578 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
5989 | 6579 |
5990 | 6580 |
5991 | 6581 |
5992 int main() { | 6582 int main() { |
5993 | 6583 |
5994 ; return 0; } | 6584 ; return 0; } |
5995 EOF | 6585 EOF |
5996 if { (eval echo configure:5997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6586 if { (eval echo configure:6587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5997 : | 6587 : |
5998 else | 6588 else |
5999 echo "configure: failed program was:" >&5 | 6589 echo "configure: failed program was:" >&5 |
6000 cat conftest.$ac_ext >&5 | 6590 cat conftest.$ac_ext >&5 |
6001 rm -rf conftest* | 6591 rm -rf conftest* |
6002 cat > conftest.$ac_ext <<EOF | 6592 cat > conftest.$ac_ext <<EOF |
6003 #line 6004 "configure" | 6593 #line 6594 "configure" |
6004 #include "confdefs.h" | 6594 #include "confdefs.h" |
6005 #define _LARGE_FILES 1 | 6595 #define _LARGE_FILES 1 |
6006 #include <sys/types.h> | 6596 #include <sys/types.h> |
6007 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6597 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6008 | 6598 |
6010 | 6600 |
6011 int main() { | 6601 int main() { |
6012 | 6602 |
6013 ; return 0; } | 6603 ; return 0; } |
6014 EOF | 6604 EOF |
6015 if { (eval echo configure:6016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6605 if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6016 rm -rf conftest* | 6606 rm -rf conftest* |
6017 ac_cv_sys_large_files=1 | 6607 ac_cv_sys_large_files=1 |
6018 else | 6608 else |
6019 echo "configure: failed program was:" >&5 | 6609 echo "configure: failed program was:" >&5 |
6020 cat conftest.$ac_ext >&5 | 6610 cat conftest.$ac_ext >&5 |
6030 #define _LARGE_FILES $ac_cv_sys_large_files | 6620 #define _LARGE_FILES $ac_cv_sys_large_files |
6031 EOF | 6621 EOF |
6032 | 6622 |
6033 fi | 6623 fi |
6034 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | 6624 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 |
6035 echo "configure:6036: checking for _XOPEN_SOURCE value needed for large files" >&5 | 6625 echo "configure:6626: checking for _XOPEN_SOURCE value needed for large files" >&5 |
6036 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then | 6626 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then |
6037 echo $ac_n "(cached) $ac_c" 1>&6 | 6627 echo $ac_n "(cached) $ac_c" 1>&6 |
6038 else | 6628 else |
6039 ac_cv_sys_xopen_source=no | 6629 ac_cv_sys_xopen_source=no |
6040 cat > conftest.$ac_ext <<EOF | 6630 cat > conftest.$ac_ext <<EOF |
6041 #line 6042 "configure" | 6631 #line 6632 "configure" |
6042 #include "confdefs.h" | 6632 #include "confdefs.h" |
6043 #include <sys/types.h> | 6633 #include <sys/types.h> |
6044 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6634 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6045 | 6635 |
6046 #include <stdio.h> | 6636 #include <stdio.h> |
6047 | 6637 |
6048 int main() { | 6638 int main() { |
6049 return !ftello; | 6639 return !ftello; |
6050 ; return 0; } | 6640 ; return 0; } |
6051 EOF | 6641 EOF |
6052 if { (eval echo configure:6053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6642 if { (eval echo configure:6643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6053 : | 6643 : |
6054 else | 6644 else |
6055 echo "configure: failed program was:" >&5 | 6645 echo "configure: failed program was:" >&5 |
6056 cat conftest.$ac_ext >&5 | 6646 cat conftest.$ac_ext >&5 |
6057 rm -rf conftest* | 6647 rm -rf conftest* |
6058 cat > conftest.$ac_ext <<EOF | 6648 cat > conftest.$ac_ext <<EOF |
6059 #line 6060 "configure" | 6649 #line 6650 "configure" |
6060 #include "confdefs.h" | 6650 #include "confdefs.h" |
6061 #define _XOPEN_SOURCE 500 | 6651 #define _XOPEN_SOURCE 500 |
6062 #include <sys/types.h> | 6652 #include <sys/types.h> |
6063 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | 6653 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; |
6064 | 6654 |
6066 | 6656 |
6067 int main() { | 6657 int main() { |
6068 return !ftello; | 6658 return !ftello; |
6069 ; return 0; } | 6659 ; return 0; } |
6070 EOF | 6660 EOF |
6071 if { (eval echo configure:6072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6661 if { (eval echo configure:6662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6072 rm -rf conftest* | 6662 rm -rf conftest* |
6073 ac_cv_sys_xopen_source=500 | 6663 ac_cv_sys_xopen_source=500 |
6074 else | 6664 else |
6075 echo "configure: failed program was:" >&5 | 6665 echo "configure: failed program was:" >&5 |
6076 cat conftest.$ac_ext >&5 | 6666 cat conftest.$ac_ext >&5 |
6090 fi | 6680 fi |
6091 | 6681 |
6092 for ac_func in ftello | 6682 for ac_func in ftello |
6093 do | 6683 do |
6094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6095 echo "configure:6096: checking for $ac_func" >&5 | 6685 echo "configure:6686: checking for $ac_func" >&5 |
6096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6097 echo $ac_n "(cached) $ac_c" 1>&6 | 6687 echo $ac_n "(cached) $ac_c" 1>&6 |
6098 else | 6688 else |
6099 cat > conftest.$ac_ext <<EOF | 6689 cat > conftest.$ac_ext <<EOF |
6100 #line 6101 "configure" | 6690 #line 6691 "configure" |
6101 #include "confdefs.h" | 6691 #include "confdefs.h" |
6102 /* System header to define __stub macros and hopefully few prototypes, | 6692 /* System header to define __stub macros and hopefully few prototypes, |
6103 which can conflict with char $ac_func(); below. */ | 6693 which can conflict with char $ac_func(); below. */ |
6104 #include <assert.h> | 6694 #include <assert.h> |
6105 /* Override any gcc2 internal prototype to avoid an error. */ | 6695 /* Override any gcc2 internal prototype to avoid an error. */ |
6118 $ac_func(); | 6708 $ac_func(); |
6119 #endif | 6709 #endif |
6120 | 6710 |
6121 ; return 0; } | 6711 ; return 0; } |
6122 EOF | 6712 EOF |
6123 if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6124 rm -rf conftest* | 6714 rm -rf conftest* |
6125 eval "ac_cv_func_$ac_func=yes" | 6715 eval "ac_cv_func_$ac_func=yes" |
6126 else | 6716 else |
6127 echo "configure: failed program was:" >&5 | 6717 echo "configure: failed program was:" >&5 |
6128 cat conftest.$ac_ext >&5 | 6718 cat conftest.$ac_ext >&5 |
6148 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE | 6738 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE |
6149 # if we need it. | 6739 # if we need it. |
6150 for ac_func in grantpt | 6740 for ac_func in grantpt |
6151 do | 6741 do |
6152 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6742 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6153 echo "configure:6154: checking for $ac_func" >&5 | 6743 echo "configure:6744: checking for $ac_func" >&5 |
6154 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6744 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6155 echo $ac_n "(cached) $ac_c" 1>&6 | 6745 echo $ac_n "(cached) $ac_c" 1>&6 |
6156 else | 6746 else |
6157 cat > conftest.$ac_ext <<EOF | 6747 cat > conftest.$ac_ext <<EOF |
6158 #line 6159 "configure" | 6748 #line 6749 "configure" |
6159 #include "confdefs.h" | 6749 #include "confdefs.h" |
6160 /* System header to define __stub macros and hopefully few prototypes, | 6750 /* System header to define __stub macros and hopefully few prototypes, |
6161 which can conflict with char $ac_func(); below. */ | 6751 which can conflict with char $ac_func(); below. */ |
6162 #include <assert.h> | 6752 #include <assert.h> |
6163 /* Override any gcc2 internal prototype to avoid an error. */ | 6753 /* Override any gcc2 internal prototype to avoid an error. */ |
6176 $ac_func(); | 6766 $ac_func(); |
6177 #endif | 6767 #endif |
6178 | 6768 |
6179 ; return 0; } | 6769 ; return 0; } |
6180 EOF | 6770 EOF |
6181 if { (eval echo configure:6182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6182 rm -rf conftest* | 6772 rm -rf conftest* |
6183 eval "ac_cv_func_$ac_func=yes" | 6773 eval "ac_cv_func_$ac_func=yes" |
6184 else | 6774 else |
6185 echo "configure: failed program was:" >&5 | 6775 echo "configure: failed program was:" >&5 |
6186 cat conftest.$ac_ext >&5 | 6776 cat conftest.$ac_ext >&5 |
6205 | 6795 |
6206 # PTY-related GNU extensions. | 6796 # PTY-related GNU extensions. |
6207 for ac_func in getpt | 6797 for ac_func in getpt |
6208 do | 6798 do |
6209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6210 echo "configure:6211: checking for $ac_func" >&5 | 6800 echo "configure:6801: checking for $ac_func" >&5 |
6211 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6212 echo $ac_n "(cached) $ac_c" 1>&6 | 6802 echo $ac_n "(cached) $ac_c" 1>&6 |
6213 else | 6803 else |
6214 cat > conftest.$ac_ext <<EOF | 6804 cat > conftest.$ac_ext <<EOF |
6215 #line 6216 "configure" | 6805 #line 6806 "configure" |
6216 #include "confdefs.h" | 6806 #include "confdefs.h" |
6217 /* System header to define __stub macros and hopefully few prototypes, | 6807 /* System header to define __stub macros and hopefully few prototypes, |
6218 which can conflict with char $ac_func(); below. */ | 6808 which can conflict with char $ac_func(); below. */ |
6219 #include <assert.h> | 6809 #include <assert.h> |
6220 /* Override any gcc2 internal prototype to avoid an error. */ | 6810 /* Override any gcc2 internal prototype to avoid an error. */ |
6233 $ac_func(); | 6823 $ac_func(); |
6234 #endif | 6824 #endif |
6235 | 6825 |
6236 ; return 0; } | 6826 ; return 0; } |
6237 EOF | 6827 EOF |
6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6828 if { (eval echo configure:6829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6239 rm -rf conftest* | 6829 rm -rf conftest* |
6240 eval "ac_cv_func_$ac_func=yes" | 6830 eval "ac_cv_func_$ac_func=yes" |
6241 else | 6831 else |
6242 echo "configure: failed program was:" >&5 | 6832 echo "configure: failed program was:" >&5 |
6243 cat conftest.$ac_ext >&5 | 6833 cat conftest.$ac_ext >&5 |
6263 # Check this now, so that we will NOT find the above functions in ncurses. | 6853 # Check this now, so that we will NOT find the above functions in ncurses. |
6264 # That is because we have not set up to link ncurses in lib-src. | 6854 # That is because we have not set up to link ncurses in lib-src. |
6265 # It's better to believe a function is not available | 6855 # It's better to believe a function is not available |
6266 # than to expect to find it in ncurses. | 6856 # than to expect to find it in ncurses. |
6267 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 6857 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
6268 echo "configure:6269: checking for tparm in -lncurses" >&5 | 6858 echo "configure:6859: checking for tparm in -lncurses" >&5 |
6269 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 6859 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
6270 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6860 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6271 echo $ac_n "(cached) $ac_c" 1>&6 | 6861 echo $ac_n "(cached) $ac_c" 1>&6 |
6272 else | 6862 else |
6273 ac_save_LIBS="$LIBS" | 6863 ac_save_LIBS="$LIBS" |
6274 LIBS="-lncurses $LIBS" | 6864 LIBS="-lncurses $LIBS" |
6275 cat > conftest.$ac_ext <<EOF | 6865 cat > conftest.$ac_ext <<EOF |
6276 #line 6277 "configure" | 6866 #line 6867 "configure" |
6277 #include "confdefs.h" | 6867 #include "confdefs.h" |
6278 /* Override any gcc2 internal prototype to avoid an error. */ | 6868 /* Override any gcc2 internal prototype to avoid an error. */ |
6279 /* We use char because int might match the return type of a gcc2 | 6869 /* We use char because int might match the return type of a gcc2 |
6280 builtin and then its argument prototype would still apply. */ | 6870 builtin and then its argument prototype would still apply. */ |
6281 char tparm(); | 6871 char tparm(); |
6282 | 6872 |
6283 int main() { | 6873 int main() { |
6284 tparm() | 6874 tparm() |
6285 ; return 0; } | 6875 ; return 0; } |
6286 EOF | 6876 EOF |
6287 if { (eval echo configure:6288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6288 rm -rf conftest* | 6878 rm -rf conftest* |
6289 eval "ac_cv_lib_$ac_lib_var=yes" | 6879 eval "ac_cv_lib_$ac_lib_var=yes" |
6290 else | 6880 else |
6291 echo "configure: failed program was:" >&5 | 6881 echo "configure: failed program was:" >&5 |
6292 cat conftest.$ac_ext >&5 | 6882 cat conftest.$ac_ext >&5 |
6313 | 6903 |
6314 | 6904 |
6315 # These tell us which Kerberos-related libraries to use. | 6905 # These tell us which Kerberos-related libraries to use. |
6316 if test "${with_kerberos+set}" = set; then | 6906 if test "${with_kerberos+set}" = set; then |
6317 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 6907 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
6318 echo "configure:6319: checking for com_err in -lcom_err" >&5 | 6908 echo "configure:6909: checking for com_err in -lcom_err" >&5 |
6319 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 6909 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
6320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6910 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6321 echo $ac_n "(cached) $ac_c" 1>&6 | 6911 echo $ac_n "(cached) $ac_c" 1>&6 |
6322 else | 6912 else |
6323 ac_save_LIBS="$LIBS" | 6913 ac_save_LIBS="$LIBS" |
6324 LIBS="-lcom_err $LIBS" | 6914 LIBS="-lcom_err $LIBS" |
6325 cat > conftest.$ac_ext <<EOF | 6915 cat > conftest.$ac_ext <<EOF |
6326 #line 6327 "configure" | 6916 #line 6917 "configure" |
6327 #include "confdefs.h" | 6917 #include "confdefs.h" |
6328 /* Override any gcc2 internal prototype to avoid an error. */ | 6918 /* Override any gcc2 internal prototype to avoid an error. */ |
6329 /* We use char because int might match the return type of a gcc2 | 6919 /* We use char because int might match the return type of a gcc2 |
6330 builtin and then its argument prototype would still apply. */ | 6920 builtin and then its argument prototype would still apply. */ |
6331 char com_err(); | 6921 char com_err(); |
6332 | 6922 |
6333 int main() { | 6923 int main() { |
6334 com_err() | 6924 com_err() |
6335 ; return 0; } | 6925 ; return 0; } |
6336 EOF | 6926 EOF |
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6927 if { (eval echo configure:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6338 rm -rf conftest* | 6928 rm -rf conftest* |
6339 eval "ac_cv_lib_$ac_lib_var=yes" | 6929 eval "ac_cv_lib_$ac_lib_var=yes" |
6340 else | 6930 else |
6341 echo "configure: failed program was:" >&5 | 6931 echo "configure: failed program was:" >&5 |
6342 cat conftest.$ac_ext >&5 | 6932 cat conftest.$ac_ext >&5 |
6360 else | 6950 else |
6361 echo "$ac_t""no" 1>&6 | 6951 echo "$ac_t""no" 1>&6 |
6362 fi | 6952 fi |
6363 | 6953 |
6364 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 6954 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
6365 echo "configure:6366: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 6955 echo "configure:6956: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
6366 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 6956 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
6367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6368 echo $ac_n "(cached) $ac_c" 1>&6 | 6958 echo $ac_n "(cached) $ac_c" 1>&6 |
6369 else | 6959 else |
6370 ac_save_LIBS="$LIBS" | 6960 ac_save_LIBS="$LIBS" |
6371 LIBS="-lk5crypto $LIBS" | 6961 LIBS="-lk5crypto $LIBS" |
6372 cat > conftest.$ac_ext <<EOF | 6962 cat > conftest.$ac_ext <<EOF |
6373 #line 6374 "configure" | 6963 #line 6964 "configure" |
6374 #include "confdefs.h" | 6964 #include "confdefs.h" |
6375 /* Override any gcc2 internal prototype to avoid an error. */ | 6965 /* Override any gcc2 internal prototype to avoid an error. */ |
6376 /* We use char because int might match the return type of a gcc2 | 6966 /* We use char because int might match the return type of a gcc2 |
6377 builtin and then its argument prototype would still apply. */ | 6967 builtin and then its argument prototype would still apply. */ |
6378 char mit_des_cbc_encrypt(); | 6968 char mit_des_cbc_encrypt(); |
6379 | 6969 |
6380 int main() { | 6970 int main() { |
6381 mit_des_cbc_encrypt() | 6971 mit_des_cbc_encrypt() |
6382 ; return 0; } | 6972 ; return 0; } |
6383 EOF | 6973 EOF |
6384 if { (eval echo configure:6385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6385 rm -rf conftest* | 6975 rm -rf conftest* |
6386 eval "ac_cv_lib_$ac_lib_var=yes" | 6976 eval "ac_cv_lib_$ac_lib_var=yes" |
6387 else | 6977 else |
6388 echo "configure: failed program was:" >&5 | 6978 echo "configure: failed program was:" >&5 |
6389 cat conftest.$ac_ext >&5 | 6979 cat conftest.$ac_ext >&5 |
6407 else | 6997 else |
6408 echo "$ac_t""no" 1>&6 | 6998 echo "$ac_t""no" 1>&6 |
6409 fi | 6999 fi |
6410 | 7000 |
6411 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 7001 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
6412 echo "configure:6413: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 7002 echo "configure:7003: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
6413 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7003 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
6414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6415 echo $ac_n "(cached) $ac_c" 1>&6 | 7005 echo $ac_n "(cached) $ac_c" 1>&6 |
6416 else | 7006 else |
6417 ac_save_LIBS="$LIBS" | 7007 ac_save_LIBS="$LIBS" |
6418 LIBS="-lcrypto $LIBS" | 7008 LIBS="-lcrypto $LIBS" |
6419 cat > conftest.$ac_ext <<EOF | 7009 cat > conftest.$ac_ext <<EOF |
6420 #line 6421 "configure" | 7010 #line 7011 "configure" |
6421 #include "confdefs.h" | 7011 #include "confdefs.h" |
6422 /* Override any gcc2 internal prototype to avoid an error. */ | 7012 /* Override any gcc2 internal prototype to avoid an error. */ |
6423 /* We use char because int might match the return type of a gcc2 | 7013 /* We use char because int might match the return type of a gcc2 |
6424 builtin and then its argument prototype would still apply. */ | 7014 builtin and then its argument prototype would still apply. */ |
6425 char mit_des_cbc_encrypt(); | 7015 char mit_des_cbc_encrypt(); |
6426 | 7016 |
6427 int main() { | 7017 int main() { |
6428 mit_des_cbc_encrypt() | 7018 mit_des_cbc_encrypt() |
6429 ; return 0; } | 7019 ; return 0; } |
6430 EOF | 7020 EOF |
6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7021 if { (eval echo configure:7022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6432 rm -rf conftest* | 7022 rm -rf conftest* |
6433 eval "ac_cv_lib_$ac_lib_var=yes" | 7023 eval "ac_cv_lib_$ac_lib_var=yes" |
6434 else | 7024 else |
6435 echo "configure: failed program was:" >&5 | 7025 echo "configure: failed program was:" >&5 |
6436 cat conftest.$ac_ext >&5 | 7026 cat conftest.$ac_ext >&5 |
6454 else | 7044 else |
6455 echo "$ac_t""no" 1>&6 | 7045 echo "$ac_t""no" 1>&6 |
6456 fi | 7046 fi |
6457 | 7047 |
6458 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 7048 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
6459 echo "configure:6460: checking for krb5_init_context in -lkrb5" >&5 | 7049 echo "configure:7050: checking for krb5_init_context in -lkrb5" >&5 |
6460 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 7050 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
6461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7051 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6462 echo $ac_n "(cached) $ac_c" 1>&6 | 7052 echo $ac_n "(cached) $ac_c" 1>&6 |
6463 else | 7053 else |
6464 ac_save_LIBS="$LIBS" | 7054 ac_save_LIBS="$LIBS" |
6465 LIBS="-lkrb5 $LIBS" | 7055 LIBS="-lkrb5 $LIBS" |
6466 cat > conftest.$ac_ext <<EOF | 7056 cat > conftest.$ac_ext <<EOF |
6467 #line 6468 "configure" | 7057 #line 7058 "configure" |
6468 #include "confdefs.h" | 7058 #include "confdefs.h" |
6469 /* Override any gcc2 internal prototype to avoid an error. */ | 7059 /* Override any gcc2 internal prototype to avoid an error. */ |
6470 /* We use char because int might match the return type of a gcc2 | 7060 /* We use char because int might match the return type of a gcc2 |
6471 builtin and then its argument prototype would still apply. */ | 7061 builtin and then its argument prototype would still apply. */ |
6472 char krb5_init_context(); | 7062 char krb5_init_context(); |
6473 | 7063 |
6474 int main() { | 7064 int main() { |
6475 krb5_init_context() | 7065 krb5_init_context() |
6476 ; return 0; } | 7066 ; return 0; } |
6477 EOF | 7067 EOF |
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6479 rm -rf conftest* | 7069 rm -rf conftest* |
6480 eval "ac_cv_lib_$ac_lib_var=yes" | 7070 eval "ac_cv_lib_$ac_lib_var=yes" |
6481 else | 7071 else |
6482 echo "configure: failed program was:" >&5 | 7072 echo "configure: failed program was:" >&5 |
6483 cat conftest.$ac_ext >&5 | 7073 cat conftest.$ac_ext >&5 |
6502 echo "$ac_t""no" 1>&6 | 7092 echo "$ac_t""no" 1>&6 |
6503 fi | 7093 fi |
6504 | 7094 |
6505 if test "${with_kerberos5+set}" != set; then | 7095 if test "${with_kerberos5+set}" != set; then |
6506 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 7096 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
6507 echo "configure:6508: checking for des_cbc_encrypt in -ldes425" >&5 | 7097 echo "configure:7098: checking for des_cbc_encrypt in -ldes425" >&5 |
6508 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7098 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
6509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6510 echo $ac_n "(cached) $ac_c" 1>&6 | 7100 echo $ac_n "(cached) $ac_c" 1>&6 |
6511 else | 7101 else |
6512 ac_save_LIBS="$LIBS" | 7102 ac_save_LIBS="$LIBS" |
6513 LIBS="-ldes425 $LIBS" | 7103 LIBS="-ldes425 $LIBS" |
6514 cat > conftest.$ac_ext <<EOF | 7104 cat > conftest.$ac_ext <<EOF |
6515 #line 6516 "configure" | 7105 #line 7106 "configure" |
6516 #include "confdefs.h" | 7106 #include "confdefs.h" |
6517 /* Override any gcc2 internal prototype to avoid an error. */ | 7107 /* Override any gcc2 internal prototype to avoid an error. */ |
6518 /* We use char because int might match the return type of a gcc2 | 7108 /* We use char because int might match the return type of a gcc2 |
6519 builtin and then its argument prototype would still apply. */ | 7109 builtin and then its argument prototype would still apply. */ |
6520 char des_cbc_encrypt(); | 7110 char des_cbc_encrypt(); |
6521 | 7111 |
6522 int main() { | 7112 int main() { |
6523 des_cbc_encrypt() | 7113 des_cbc_encrypt() |
6524 ; return 0; } | 7114 ; return 0; } |
6525 EOF | 7115 EOF |
6526 if { (eval echo configure:6527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6527 rm -rf conftest* | 7117 rm -rf conftest* |
6528 eval "ac_cv_lib_$ac_lib_var=yes" | 7118 eval "ac_cv_lib_$ac_lib_var=yes" |
6529 else | 7119 else |
6530 echo "configure: failed program was:" >&5 | 7120 echo "configure: failed program was:" >&5 |
6531 cat conftest.$ac_ext >&5 | 7121 cat conftest.$ac_ext >&5 |
6547 LIBS="-ldes425 $LIBS" | 7137 LIBS="-ldes425 $LIBS" |
6548 | 7138 |
6549 else | 7139 else |
6550 echo "$ac_t""no" 1>&6 | 7140 echo "$ac_t""no" 1>&6 |
6551 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 7141 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
6552 echo "configure:6553: checking for des_cbc_encrypt in -ldes" >&5 | 7142 echo "configure:7143: checking for des_cbc_encrypt in -ldes" >&5 |
6553 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7143 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
6554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7144 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6555 echo $ac_n "(cached) $ac_c" 1>&6 | 7145 echo $ac_n "(cached) $ac_c" 1>&6 |
6556 else | 7146 else |
6557 ac_save_LIBS="$LIBS" | 7147 ac_save_LIBS="$LIBS" |
6558 LIBS="-ldes $LIBS" | 7148 LIBS="-ldes $LIBS" |
6559 cat > conftest.$ac_ext <<EOF | 7149 cat > conftest.$ac_ext <<EOF |
6560 #line 6561 "configure" | 7150 #line 7151 "configure" |
6561 #include "confdefs.h" | 7151 #include "confdefs.h" |
6562 /* Override any gcc2 internal prototype to avoid an error. */ | 7152 /* Override any gcc2 internal prototype to avoid an error. */ |
6563 /* We use char because int might match the return type of a gcc2 | 7153 /* We use char because int might match the return type of a gcc2 |
6564 builtin and then its argument prototype would still apply. */ | 7154 builtin and then its argument prototype would still apply. */ |
6565 char des_cbc_encrypt(); | 7155 char des_cbc_encrypt(); |
6566 | 7156 |
6567 int main() { | 7157 int main() { |
6568 des_cbc_encrypt() | 7158 des_cbc_encrypt() |
6569 ; return 0; } | 7159 ; return 0; } |
6570 EOF | 7160 EOF |
6571 if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7161 if { (eval echo configure:7162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6572 rm -rf conftest* | 7162 rm -rf conftest* |
6573 eval "ac_cv_lib_$ac_lib_var=yes" | 7163 eval "ac_cv_lib_$ac_lib_var=yes" |
6574 else | 7164 else |
6575 echo "configure: failed program was:" >&5 | 7165 echo "configure: failed program was:" >&5 |
6576 cat conftest.$ac_ext >&5 | 7166 cat conftest.$ac_ext >&5 |
6596 fi | 7186 fi |
6597 | 7187 |
6598 fi | 7188 fi |
6599 | 7189 |
6600 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 7190 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
6601 echo "configure:6602: checking for krb_get_cred in -lkrb4" >&5 | 7191 echo "configure:7192: checking for krb_get_cred in -lkrb4" >&5 |
6602 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7192 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
6603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6604 echo $ac_n "(cached) $ac_c" 1>&6 | 7194 echo $ac_n "(cached) $ac_c" 1>&6 |
6605 else | 7195 else |
6606 ac_save_LIBS="$LIBS" | 7196 ac_save_LIBS="$LIBS" |
6607 LIBS="-lkrb4 $LIBS" | 7197 LIBS="-lkrb4 $LIBS" |
6608 cat > conftest.$ac_ext <<EOF | 7198 cat > conftest.$ac_ext <<EOF |
6609 #line 6610 "configure" | 7199 #line 7200 "configure" |
6610 #include "confdefs.h" | 7200 #include "confdefs.h" |
6611 /* Override any gcc2 internal prototype to avoid an error. */ | 7201 /* Override any gcc2 internal prototype to avoid an error. */ |
6612 /* We use char because int might match the return type of a gcc2 | 7202 /* We use char because int might match the return type of a gcc2 |
6613 builtin and then its argument prototype would still apply. */ | 7203 builtin and then its argument prototype would still apply. */ |
6614 char krb_get_cred(); | 7204 char krb_get_cred(); |
6615 | 7205 |
6616 int main() { | 7206 int main() { |
6617 krb_get_cred() | 7207 krb_get_cred() |
6618 ; return 0; } | 7208 ; return 0; } |
6619 EOF | 7209 EOF |
6620 if { (eval echo configure:6621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7210 if { (eval echo configure:7211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6621 rm -rf conftest* | 7211 rm -rf conftest* |
6622 eval "ac_cv_lib_$ac_lib_var=yes" | 7212 eval "ac_cv_lib_$ac_lib_var=yes" |
6623 else | 7213 else |
6624 echo "configure: failed program was:" >&5 | 7214 echo "configure: failed program was:" >&5 |
6625 cat conftest.$ac_ext >&5 | 7215 cat conftest.$ac_ext >&5 |
6641 LIBS="-lkrb4 $LIBS" | 7231 LIBS="-lkrb4 $LIBS" |
6642 | 7232 |
6643 else | 7233 else |
6644 echo "$ac_t""no" 1>&6 | 7234 echo "$ac_t""no" 1>&6 |
6645 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 7235 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
6646 echo "configure:6647: checking for krb_get_cred in -lkrb" >&5 | 7236 echo "configure:7237: checking for krb_get_cred in -lkrb" >&5 |
6647 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7237 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
6648 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6649 echo $ac_n "(cached) $ac_c" 1>&6 | 7239 echo $ac_n "(cached) $ac_c" 1>&6 |
6650 else | 7240 else |
6651 ac_save_LIBS="$LIBS" | 7241 ac_save_LIBS="$LIBS" |
6652 LIBS="-lkrb $LIBS" | 7242 LIBS="-lkrb $LIBS" |
6653 cat > conftest.$ac_ext <<EOF | 7243 cat > conftest.$ac_ext <<EOF |
6654 #line 6655 "configure" | 7244 #line 7245 "configure" |
6655 #include "confdefs.h" | 7245 #include "confdefs.h" |
6656 /* Override any gcc2 internal prototype to avoid an error. */ | 7246 /* Override any gcc2 internal prototype to avoid an error. */ |
6657 /* We use char because int might match the return type of a gcc2 | 7247 /* We use char because int might match the return type of a gcc2 |
6658 builtin and then its argument prototype would still apply. */ | 7248 builtin and then its argument prototype would still apply. */ |
6659 char krb_get_cred(); | 7249 char krb_get_cred(); |
6660 | 7250 |
6661 int main() { | 7251 int main() { |
6662 krb_get_cred() | 7252 krb_get_cred() |
6663 ; return 0; } | 7253 ; return 0; } |
6664 EOF | 7254 EOF |
6665 if { (eval echo configure:6666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7255 if { (eval echo configure:7256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6666 rm -rf conftest* | 7256 rm -rf conftest* |
6667 eval "ac_cv_lib_$ac_lib_var=yes" | 7257 eval "ac_cv_lib_$ac_lib_var=yes" |
6668 else | 7258 else |
6669 echo "configure: failed program was:" >&5 | 7259 echo "configure: failed program was:" >&5 |
6670 cat conftest.$ac_ext >&5 | 7260 cat conftest.$ac_ext >&5 |
6696 if test "${with_kerberos5+set}" = set; then | 7286 if test "${with_kerberos5+set}" = set; then |
6697 for ac_hdr in krb5.h | 7287 for ac_hdr in krb5.h |
6698 do | 7288 do |
6699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6701 echo "configure:6702: checking for $ac_hdr" >&5 | 7291 echo "configure:7292: checking for $ac_hdr" >&5 |
6702 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6703 echo $ac_n "(cached) $ac_c" 1>&6 | 7293 echo $ac_n "(cached) $ac_c" 1>&6 |
6704 else | 7294 else |
6705 cat > conftest.$ac_ext <<EOF | 7295 cat > conftest.$ac_ext <<EOF |
6706 #line 6707 "configure" | 7296 #line 7297 "configure" |
6707 #include "confdefs.h" | 7297 #include "confdefs.h" |
6708 #include <$ac_hdr> | 7298 #include <$ac_hdr> |
6709 EOF | 7299 EOF |
6710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6711 { (eval echo configure:6712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7301 { (eval echo configure:7302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6713 if test -z "$ac_err"; then | 7303 if test -z "$ac_err"; then |
6714 rm -rf conftest* | 7304 rm -rf conftest* |
6715 eval "ac_cv_header_$ac_safe=yes" | 7305 eval "ac_cv_header_$ac_safe=yes" |
6716 else | 7306 else |
6737 else | 7327 else |
6738 for ac_hdr in des.h | 7328 for ac_hdr in des.h |
6739 do | 7329 do |
6740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6742 echo "configure:6743: checking for $ac_hdr" >&5 | 7332 echo "configure:7333: checking for $ac_hdr" >&5 |
6743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6744 echo $ac_n "(cached) $ac_c" 1>&6 | 7334 echo $ac_n "(cached) $ac_c" 1>&6 |
6745 else | 7335 else |
6746 cat > conftest.$ac_ext <<EOF | 7336 cat > conftest.$ac_ext <<EOF |
6747 #line 6748 "configure" | 7337 #line 7338 "configure" |
6748 #include "confdefs.h" | 7338 #include "confdefs.h" |
6749 #include <$ac_hdr> | 7339 #include <$ac_hdr> |
6750 EOF | 7340 EOF |
6751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6752 { (eval echo configure:6753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7342 { (eval echo configure:7343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6754 if test -z "$ac_err"; then | 7344 if test -z "$ac_err"; then |
6755 rm -rf conftest* | 7345 rm -rf conftest* |
6756 eval "ac_cv_header_$ac_safe=yes" | 7346 eval "ac_cv_header_$ac_safe=yes" |
6757 else | 7347 else |
6774 echo "$ac_t""no" 1>&6 | 7364 echo "$ac_t""no" 1>&6 |
6775 for ac_hdr in kerberosIV/des.h | 7365 for ac_hdr in kerberosIV/des.h |
6776 do | 7366 do |
6777 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6778 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6779 echo "configure:6780: checking for $ac_hdr" >&5 | 7369 echo "configure:7370: checking for $ac_hdr" >&5 |
6780 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6781 echo $ac_n "(cached) $ac_c" 1>&6 | 7371 echo $ac_n "(cached) $ac_c" 1>&6 |
6782 else | 7372 else |
6783 cat > conftest.$ac_ext <<EOF | 7373 cat > conftest.$ac_ext <<EOF |
6784 #line 6785 "configure" | 7374 #line 7375 "configure" |
6785 #include "confdefs.h" | 7375 #include "confdefs.h" |
6786 #include <$ac_hdr> | 7376 #include <$ac_hdr> |
6787 EOF | 7377 EOF |
6788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6789 { (eval echo configure:6790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7379 { (eval echo configure:7380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6791 if test -z "$ac_err"; then | 7381 if test -z "$ac_err"; then |
6792 rm -rf conftest* | 7382 rm -rf conftest* |
6793 eval "ac_cv_header_$ac_safe=yes" | 7383 eval "ac_cv_header_$ac_safe=yes" |
6794 else | 7384 else |
6811 echo "$ac_t""no" 1>&6 | 7401 echo "$ac_t""no" 1>&6 |
6812 for ac_hdr in kerberos/des.h | 7402 for ac_hdr in kerberos/des.h |
6813 do | 7403 do |
6814 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6815 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6816 echo "configure:6817: checking for $ac_hdr" >&5 | 7406 echo "configure:7407: checking for $ac_hdr" >&5 |
6817 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6818 echo $ac_n "(cached) $ac_c" 1>&6 | 7408 echo $ac_n "(cached) $ac_c" 1>&6 |
6819 else | 7409 else |
6820 cat > conftest.$ac_ext <<EOF | 7410 cat > conftest.$ac_ext <<EOF |
6821 #line 6822 "configure" | 7411 #line 7412 "configure" |
6822 #include "confdefs.h" | 7412 #include "confdefs.h" |
6823 #include <$ac_hdr> | 7413 #include <$ac_hdr> |
6824 EOF | 7414 EOF |
6825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6826 { (eval echo configure:6827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7416 { (eval echo configure:7417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6828 if test -z "$ac_err"; then | 7418 if test -z "$ac_err"; then |
6829 rm -rf conftest* | 7419 rm -rf conftest* |
6830 eval "ac_cv_header_$ac_safe=yes" | 7420 eval "ac_cv_header_$ac_safe=yes" |
6831 else | 7421 else |
6857 | 7447 |
6858 for ac_hdr in krb.h | 7448 for ac_hdr in krb.h |
6859 do | 7449 do |
6860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6862 echo "configure:6863: checking for $ac_hdr" >&5 | 7452 echo "configure:7453: checking for $ac_hdr" >&5 |
6863 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6864 echo $ac_n "(cached) $ac_c" 1>&6 | 7454 echo $ac_n "(cached) $ac_c" 1>&6 |
6865 else | 7455 else |
6866 cat > conftest.$ac_ext <<EOF | 7456 cat > conftest.$ac_ext <<EOF |
6867 #line 6868 "configure" | 7457 #line 7458 "configure" |
6868 #include "confdefs.h" | 7458 #include "confdefs.h" |
6869 #include <$ac_hdr> | 7459 #include <$ac_hdr> |
6870 EOF | 7460 EOF |
6871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6872 { (eval echo configure:6873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6874 if test -z "$ac_err"; then | 7464 if test -z "$ac_err"; then |
6875 rm -rf conftest* | 7465 rm -rf conftest* |
6876 eval "ac_cv_header_$ac_safe=yes" | 7466 eval "ac_cv_header_$ac_safe=yes" |
6877 else | 7467 else |
6894 echo "$ac_t""no" 1>&6 | 7484 echo "$ac_t""no" 1>&6 |
6895 for ac_hdr in kerberosIV/krb.h | 7485 for ac_hdr in kerberosIV/krb.h |
6896 do | 7486 do |
6897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6899 echo "configure:6900: checking for $ac_hdr" >&5 | 7489 echo "configure:7490: checking for $ac_hdr" >&5 |
6900 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6901 echo $ac_n "(cached) $ac_c" 1>&6 | 7491 echo $ac_n "(cached) $ac_c" 1>&6 |
6902 else | 7492 else |
6903 cat > conftest.$ac_ext <<EOF | 7493 cat > conftest.$ac_ext <<EOF |
6904 #line 6905 "configure" | 7494 #line 7495 "configure" |
6905 #include "confdefs.h" | 7495 #include "confdefs.h" |
6906 #include <$ac_hdr> | 7496 #include <$ac_hdr> |
6907 EOF | 7497 EOF |
6908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6909 { (eval echo configure:6910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7499 { (eval echo configure:7500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6911 if test -z "$ac_err"; then | 7501 if test -z "$ac_err"; then |
6912 rm -rf conftest* | 7502 rm -rf conftest* |
6913 eval "ac_cv_header_$ac_safe=yes" | 7503 eval "ac_cv_header_$ac_safe=yes" |
6914 else | 7504 else |
6931 echo "$ac_t""no" 1>&6 | 7521 echo "$ac_t""no" 1>&6 |
6932 for ac_hdr in kerberos/krb.h | 7522 for ac_hdr in kerberos/krb.h |
6933 do | 7523 do |
6934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6936 echo "configure:6937: checking for $ac_hdr" >&5 | 7526 echo "configure:7527: checking for $ac_hdr" >&5 |
6937 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6938 echo $ac_n "(cached) $ac_c" 1>&6 | 7528 echo $ac_n "(cached) $ac_c" 1>&6 |
6939 else | 7529 else |
6940 cat > conftest.$ac_ext <<EOF | 7530 cat > conftest.$ac_ext <<EOF |
6941 #line 6942 "configure" | 7531 #line 7532 "configure" |
6942 #include "confdefs.h" | 7532 #include "confdefs.h" |
6943 #include <$ac_hdr> | 7533 #include <$ac_hdr> |
6944 EOF | 7534 EOF |
6945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6946 { (eval echo configure:6947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7536 { (eval echo configure:7537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6948 if test -z "$ac_err"; then | 7538 if test -z "$ac_err"; then |
6949 rm -rf conftest* | 7539 rm -rf conftest* |
6950 eval "ac_cv_header_$ac_safe=yes" | 7540 eval "ac_cv_header_$ac_safe=yes" |
6951 else | 7541 else |
6978 fi | 7568 fi |
6979 for ac_hdr in com_err.h | 7569 for ac_hdr in com_err.h |
6980 do | 7570 do |
6981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6983 echo "configure:6984: checking for $ac_hdr" >&5 | 7573 echo "configure:7574: checking for $ac_hdr" >&5 |
6984 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6985 echo $ac_n "(cached) $ac_c" 1>&6 | 7575 echo $ac_n "(cached) $ac_c" 1>&6 |
6986 else | 7576 else |
6987 cat > conftest.$ac_ext <<EOF | 7577 cat > conftest.$ac_ext <<EOF |
6988 #line 6989 "configure" | 7578 #line 7579 "configure" |
6989 #include "confdefs.h" | 7579 #include "confdefs.h" |
6990 #include <$ac_hdr> | 7580 #include <$ac_hdr> |
6991 EOF | 7581 EOF |
6992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6993 { (eval echo configure:6994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7583 { (eval echo configure:7584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6995 if test -z "$ac_err"; then | 7585 if test -z "$ac_err"; then |
6996 rm -rf conftest* | 7586 rm -rf conftest* |
6997 eval "ac_cv_header_$ac_safe=yes" | 7587 eval "ac_cv_header_$ac_safe=yes" |
6998 else | 7588 else |
7019 fi | 7609 fi |
7020 | 7610 |
7021 # Solaris requires -lintl if you want strerror (which calls dgettext) | 7611 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7022 # to return localized messages. | 7612 # to return localized messages. |
7023 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 7613 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
7024 echo "configure:7025: checking for dgettext in -lintl" >&5 | 7614 echo "configure:7615: checking for dgettext in -lintl" >&5 |
7025 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 7615 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7616 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7027 echo $ac_n "(cached) $ac_c" 1>&6 | 7617 echo $ac_n "(cached) $ac_c" 1>&6 |
7028 else | 7618 else |
7029 ac_save_LIBS="$LIBS" | 7619 ac_save_LIBS="$LIBS" |
7030 LIBS="-lintl $LIBS" | 7620 LIBS="-lintl $LIBS" |
7031 cat > conftest.$ac_ext <<EOF | 7621 cat > conftest.$ac_ext <<EOF |
7032 #line 7033 "configure" | 7622 #line 7623 "configure" |
7033 #include "confdefs.h" | 7623 #include "confdefs.h" |
7034 /* Override any gcc2 internal prototype to avoid an error. */ | 7624 /* Override any gcc2 internal prototype to avoid an error. */ |
7035 /* We use char because int might match the return type of a gcc2 | 7625 /* We use char because int might match the return type of a gcc2 |
7036 builtin and then its argument prototype would still apply. */ | 7626 builtin and then its argument prototype would still apply. */ |
7037 char dgettext(); | 7627 char dgettext(); |
7038 | 7628 |
7039 int main() { | 7629 int main() { |
7040 dgettext() | 7630 dgettext() |
7041 ; return 0; } | 7631 ; return 0; } |
7042 EOF | 7632 EOF |
7043 if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7633 if { (eval echo configure:7634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7044 rm -rf conftest* | 7634 rm -rf conftest* |
7045 eval "ac_cv_lib_$ac_lib_var=yes" | 7635 eval "ac_cv_lib_$ac_lib_var=yes" |
7046 else | 7636 else |
7047 echo "configure: failed program was:" >&5 | 7637 echo "configure: failed program was:" >&5 |
7048 cat conftest.$ac_ext >&5 | 7638 cat conftest.$ac_ext >&5 |
7067 echo "$ac_t""no" 1>&6 | 7657 echo "$ac_t""no" 1>&6 |
7068 fi | 7658 fi |
7069 | 7659 |
7070 | 7660 |
7071 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 7661 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
7072 echo "configure:7073: checking whether localtime caches TZ" >&5 | 7662 echo "configure:7663: checking whether localtime caches TZ" >&5 |
7073 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 7663 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7074 echo $ac_n "(cached) $ac_c" 1>&6 | 7664 echo $ac_n "(cached) $ac_c" 1>&6 |
7075 else | 7665 else |
7076 if test x$ac_cv_func_tzset = xyes; then | 7666 if test x$ac_cv_func_tzset = xyes; then |
7077 if test "$cross_compiling" = yes; then | 7667 if test "$cross_compiling" = yes; then |
7078 # If we have tzset, assume the worst when cross-compiling. | 7668 # If we have tzset, assume the worst when cross-compiling. |
7079 emacs_cv_localtime_cache=yes | 7669 emacs_cv_localtime_cache=yes |
7080 else | 7670 else |
7081 cat > conftest.$ac_ext <<EOF | 7671 cat > conftest.$ac_ext <<EOF |
7082 #line 7083 "configure" | 7672 #line 7673 "configure" |
7083 #include "confdefs.h" | 7673 #include "confdefs.h" |
7084 #include <time.h> | 7674 #include <time.h> |
7085 extern char **environ; | 7675 extern char **environ; |
7086 unset_TZ () | 7676 unset_TZ () |
7087 { | 7677 { |
7109 if (localtime (&now)->tm_hour != hour_unset) | 7699 if (localtime (&now)->tm_hour != hour_unset) |
7110 exit (1); | 7700 exit (1); |
7111 exit (0); | 7701 exit (0); |
7112 } | 7702 } |
7113 EOF | 7703 EOF |
7114 if { (eval echo configure:7115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7704 if { (eval echo configure:7705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7115 then | 7705 then |
7116 emacs_cv_localtime_cache=no | 7706 emacs_cv_localtime_cache=no |
7117 else | 7707 else |
7118 echo "configure: failed program was:" >&5 | 7708 echo "configure: failed program was:" >&5 |
7119 cat conftest.$ac_ext >&5 | 7709 cat conftest.$ac_ext >&5 |
7137 | 7727 |
7138 fi | 7728 fi |
7139 | 7729 |
7140 if test "x$HAVE_TIMEVAL" = xyes; then | 7730 if test "x$HAVE_TIMEVAL" = xyes; then |
7141 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 7731 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
7142 echo "configure:7143: checking whether gettimeofday can accept two arguments" >&5 | 7732 echo "configure:7733: checking whether gettimeofday can accept two arguments" >&5 |
7143 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 7733 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
7144 echo $ac_n "(cached) $ac_c" 1>&6 | 7734 echo $ac_n "(cached) $ac_c" 1>&6 |
7145 else | 7735 else |
7146 cat > conftest.$ac_ext <<EOF | 7736 cat > conftest.$ac_ext <<EOF |
7147 #line 7148 "configure" | 7737 #line 7738 "configure" |
7148 #include "confdefs.h" | 7738 #include "confdefs.h" |
7149 | 7739 |
7150 #ifdef TIME_WITH_SYS_TIME | 7740 #ifdef TIME_WITH_SYS_TIME |
7151 #include <sys/time.h> | 7741 #include <sys/time.h> |
7152 #include <time.h> | 7742 #include <time.h> |
7157 #include <time.h> | 7747 #include <time.h> |
7158 #endif | 7748 #endif |
7159 #endif | 7749 #endif |
7160 int main() { | 7750 int main() { |
7161 struct timeval time; | 7751 struct timeval time; |
7162 struct timezone dummy; | 7752 gettimeofday (&time, 0); |
7163 gettimeofday (&time, &dummy); | |
7164 ; return 0; } | 7753 ; return 0; } |
7165 EOF | 7754 EOF |
7166 if { (eval echo configure:7167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7755 if { (eval echo configure:7756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7167 rm -rf conftest* | 7756 rm -rf conftest* |
7168 emacs_cv_gettimeofday_two_arguments=yes | 7757 emacs_cv_gettimeofday_two_arguments=yes |
7169 else | 7758 else |
7170 echo "configure: failed program was:" >&5 | 7759 echo "configure: failed program was:" >&5 |
7171 cat conftest.$ac_ext >&5 | 7760 cat conftest.$ac_ext >&5 |
7172 rm -rf conftest* | 7761 rm -rf conftest* |
7173 cat > conftest.$ac_ext <<EOF | |
7174 #line 7175 "configure" | |
7175 #include "confdefs.h" | |
7176 | |
7177 #ifdef TIME_WITH_SYS_TIME | |
7178 #include <sys/time.h> | |
7179 #include <time.h> | |
7180 #else | |
7181 #ifdef HAVE_SYS_TIME_H | |
7182 #include <sys/time.h> | |
7183 #else | |
7184 #include <time.h> | |
7185 #endif | |
7186 #endif | |
7187 int main() { | |
7188 struct timeval time; | |
7189 int dummy; | |
7190 gettimeofday (&time, &dummy); | |
7191 ; return 0; } | |
7192 EOF | |
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7194 rm -rf conftest* | |
7195 emacs_cv_gettimeofday_two_arguments=yes | |
7196 else | |
7197 echo "configure: failed program was:" >&5 | |
7198 cat conftest.$ac_ext >&5 | |
7199 rm -rf conftest* | |
7200 emacs_cv_gettimeofday_two_arguments=no | 7762 emacs_cv_gettimeofday_two_arguments=no |
7201 fi | |
7202 rm -f conftest* | |
7203 fi | 7763 fi |
7204 rm -f conftest* | 7764 rm -f conftest* |
7205 fi | 7765 fi |
7206 | 7766 |
7207 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 | 7767 echo "$ac_t""$emacs_cv_gettimeofday_two_arguments" 1>&6 |
7213 fi | 7773 fi |
7214 fi | 7774 fi |
7215 | 7775 |
7216 ok_so_far=yes | 7776 ok_so_far=yes |
7217 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 7777 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
7218 echo "configure:7219: checking for socket" >&5 | 7778 echo "configure:7779: checking for socket" >&5 |
7219 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 7779 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
7220 echo $ac_n "(cached) $ac_c" 1>&6 | 7780 echo $ac_n "(cached) $ac_c" 1>&6 |
7221 else | 7781 else |
7222 cat > conftest.$ac_ext <<EOF | 7782 cat > conftest.$ac_ext <<EOF |
7223 #line 7224 "configure" | 7783 #line 7784 "configure" |
7224 #include "confdefs.h" | 7784 #include "confdefs.h" |
7225 /* System header to define __stub macros and hopefully few prototypes, | 7785 /* System header to define __stub macros and hopefully few prototypes, |
7226 which can conflict with char socket(); below. */ | 7786 which can conflict with char socket(); below. */ |
7227 #include <assert.h> | 7787 #include <assert.h> |
7228 /* Override any gcc2 internal prototype to avoid an error. */ | 7788 /* Override any gcc2 internal prototype to avoid an error. */ |
7241 socket(); | 7801 socket(); |
7242 #endif | 7802 #endif |
7243 | 7803 |
7244 ; return 0; } | 7804 ; return 0; } |
7245 EOF | 7805 EOF |
7246 if { (eval echo configure:7247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7806 if { (eval echo configure:7807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7247 rm -rf conftest* | 7807 rm -rf conftest* |
7248 eval "ac_cv_func_socket=yes" | 7808 eval "ac_cv_func_socket=yes" |
7249 else | 7809 else |
7250 echo "configure: failed program was:" >&5 | 7810 echo "configure: failed program was:" >&5 |
7251 cat conftest.$ac_ext >&5 | 7811 cat conftest.$ac_ext >&5 |
7264 fi | 7824 fi |
7265 | 7825 |
7266 if test $ok_so_far = yes; then | 7826 if test $ok_so_far = yes; then |
7267 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 7827 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
7268 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 7828 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
7269 echo "configure:7270: checking for netinet/in.h" >&5 | 7829 echo "configure:7830: checking for netinet/in.h" >&5 |
7270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7830 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7271 echo $ac_n "(cached) $ac_c" 1>&6 | 7831 echo $ac_n "(cached) $ac_c" 1>&6 |
7272 else | 7832 else |
7273 cat > conftest.$ac_ext <<EOF | 7833 cat > conftest.$ac_ext <<EOF |
7274 #line 7275 "configure" | 7834 #line 7835 "configure" |
7275 #include "confdefs.h" | 7835 #include "confdefs.h" |
7276 #include <netinet/in.h> | 7836 #include <netinet/in.h> |
7277 EOF | 7837 EOF |
7278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7279 { (eval echo configure:7280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7839 { (eval echo configure:7840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7281 if test -z "$ac_err"; then | 7841 if test -z "$ac_err"; then |
7282 rm -rf conftest* | 7842 rm -rf conftest* |
7283 eval "ac_cv_header_$ac_safe=yes" | 7843 eval "ac_cv_header_$ac_safe=yes" |
7284 else | 7844 else |
7300 | 7860 |
7301 fi | 7861 fi |
7302 if test $ok_so_far = yes; then | 7862 if test $ok_so_far = yes; then |
7303 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 7863 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
7304 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 7864 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
7305 echo "configure:7306: checking for arpa/inet.h" >&5 | 7865 echo "configure:7866: checking for arpa/inet.h" >&5 |
7306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7866 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7307 echo $ac_n "(cached) $ac_c" 1>&6 | 7867 echo $ac_n "(cached) $ac_c" 1>&6 |
7308 else | 7868 else |
7309 cat > conftest.$ac_ext <<EOF | 7869 cat > conftest.$ac_ext <<EOF |
7310 #line 7311 "configure" | 7870 #line 7871 "configure" |
7311 #include "confdefs.h" | 7871 #include "confdefs.h" |
7312 #include <arpa/inet.h> | 7872 #include <arpa/inet.h> |
7313 EOF | 7873 EOF |
7314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7315 { (eval echo configure:7316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7317 if test -z "$ac_err"; then | 7877 if test -z "$ac_err"; then |
7318 rm -rf conftest* | 7878 rm -rf conftest* |
7319 eval "ac_cv_header_$ac_safe=yes" | 7879 eval "ac_cv_header_$ac_safe=yes" |
7320 else | 7880 else |
7348 EOF | 7908 EOF |
7349 | 7909 |
7350 fi | 7910 fi |
7351 | 7911 |
7352 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 7912 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
7353 echo "configure:7354: checking whether system supports dynamic ptys" >&5 | 7913 echo "configure:7914: checking whether system supports dynamic ptys" >&5 |
7354 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 7914 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
7355 echo "$ac_t""yes" 1>&6 | 7915 echo "$ac_t""yes" 1>&6 |
7356 cat >> confdefs.h <<\EOF | 7916 cat >> confdefs.h <<\EOF |
7357 #define HAVE_DEV_PTMX 1 | 7917 #define HAVE_DEV_PTMX 1 |
7358 EOF | 7918 EOF |
7360 else | 7920 else |
7361 echo "$ac_t""no" 1>&6 | 7921 echo "$ac_t""no" 1>&6 |
7362 fi | 7922 fi |
7363 | 7923 |
7364 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 7924 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
7365 echo "configure:7366: checking for pid_t" >&5 | 7925 echo "configure:7926: checking for pid_t" >&5 |
7366 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 7926 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
7367 echo $ac_n "(cached) $ac_c" 1>&6 | 7927 echo $ac_n "(cached) $ac_c" 1>&6 |
7368 else | 7928 else |
7369 cat > conftest.$ac_ext <<EOF | 7929 cat > conftest.$ac_ext <<EOF |
7370 #line 7371 "configure" | 7930 #line 7931 "configure" |
7371 #include "confdefs.h" | 7931 #include "confdefs.h" |
7372 #include <sys/types.h> | 7932 #include <sys/types.h> |
7373 #if STDC_HEADERS | 7933 #if STDC_HEADERS |
7374 #include <stdlib.h> | 7934 #include <stdlib.h> |
7375 #include <stddef.h> | 7935 #include <stddef.h> |
7394 | 7954 |
7395 fi | 7955 fi |
7396 | 7956 |
7397 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 7957 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
7398 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 7958 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
7399 echo "configure:7400: checking for vfork.h" >&5 | 7959 echo "configure:7960: checking for vfork.h" >&5 |
7400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7960 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7401 echo $ac_n "(cached) $ac_c" 1>&6 | 7961 echo $ac_n "(cached) $ac_c" 1>&6 |
7402 else | 7962 else |
7403 cat > conftest.$ac_ext <<EOF | 7963 cat > conftest.$ac_ext <<EOF |
7404 #line 7405 "configure" | 7964 #line 7965 "configure" |
7405 #include "confdefs.h" | 7965 #include "confdefs.h" |
7406 #include <vfork.h> | 7966 #include <vfork.h> |
7407 EOF | 7967 EOF |
7408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7409 { (eval echo configure:7410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7969 { (eval echo configure:7970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7411 if test -z "$ac_err"; then | 7971 if test -z "$ac_err"; then |
7412 rm -rf conftest* | 7972 rm -rf conftest* |
7413 eval "ac_cv_header_$ac_safe=yes" | 7973 eval "ac_cv_header_$ac_safe=yes" |
7414 else | 7974 else |
7429 else | 7989 else |
7430 echo "$ac_t""no" 1>&6 | 7990 echo "$ac_t""no" 1>&6 |
7431 fi | 7991 fi |
7432 | 7992 |
7433 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 7993 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
7434 echo "configure:7435: checking for working vfork" >&5 | 7994 echo "configure:7995: checking for working vfork" >&5 |
7435 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 7995 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
7436 echo $ac_n "(cached) $ac_c" 1>&6 | 7996 echo $ac_n "(cached) $ac_c" 1>&6 |
7437 else | 7997 else |
7438 if test "$cross_compiling" = yes; then | 7998 if test "$cross_compiling" = yes; then |
7439 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 7999 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
7440 echo "configure:7441: checking for vfork" >&5 | 8000 echo "configure:8001: checking for vfork" >&5 |
7441 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 8001 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
7442 echo $ac_n "(cached) $ac_c" 1>&6 | 8002 echo $ac_n "(cached) $ac_c" 1>&6 |
7443 else | 8003 else |
7444 cat > conftest.$ac_ext <<EOF | 8004 cat > conftest.$ac_ext <<EOF |
7445 #line 7446 "configure" | 8005 #line 8006 "configure" |
7446 #include "confdefs.h" | 8006 #include "confdefs.h" |
7447 /* System header to define __stub macros and hopefully few prototypes, | 8007 /* System header to define __stub macros and hopefully few prototypes, |
7448 which can conflict with char vfork(); below. */ | 8008 which can conflict with char vfork(); below. */ |
7449 #include <assert.h> | 8009 #include <assert.h> |
7450 /* Override any gcc2 internal prototype to avoid an error. */ | 8010 /* Override any gcc2 internal prototype to avoid an error. */ |
7463 vfork(); | 8023 vfork(); |
7464 #endif | 8024 #endif |
7465 | 8025 |
7466 ; return 0; } | 8026 ; return 0; } |
7467 EOF | 8027 EOF |
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8028 if { (eval echo configure:8029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7469 rm -rf conftest* | 8029 rm -rf conftest* |
7470 eval "ac_cv_func_vfork=yes" | 8030 eval "ac_cv_func_vfork=yes" |
7471 else | 8031 else |
7472 echo "configure: failed program was:" >&5 | 8032 echo "configure: failed program was:" >&5 |
7473 cat conftest.$ac_ext >&5 | 8033 cat conftest.$ac_ext >&5 |
7485 fi | 8045 fi |
7486 | 8046 |
7487 ac_cv_func_vfork_works=$ac_cv_func_vfork | 8047 ac_cv_func_vfork_works=$ac_cv_func_vfork |
7488 else | 8048 else |
7489 cat > conftest.$ac_ext <<EOF | 8049 cat > conftest.$ac_ext <<EOF |
7490 #line 7491 "configure" | 8050 #line 8051 "configure" |
7491 #include "confdefs.h" | 8051 #include "confdefs.h" |
7492 /* Thanks to Paul Eggert for this test. */ | 8052 /* Thanks to Paul Eggert for this test. */ |
7493 #include <stdio.h> | 8053 #include <stdio.h> |
7494 #include <sys/types.h> | 8054 #include <sys/types.h> |
7495 #include <sys/stat.h> | 8055 #include <sys/stat.h> |
7580 || fstat(fileno(stdout), &st) != 0 | 8140 || fstat(fileno(stdout), &st) != 0 |
7581 ); | 8141 ); |
7582 } | 8142 } |
7583 } | 8143 } |
7584 EOF | 8144 EOF |
7585 if { (eval echo configure:7586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7586 then | 8146 then |
7587 ac_cv_func_vfork_works=yes | 8147 ac_cv_func_vfork_works=yes |
7588 else | 8148 else |
7589 echo "configure: failed program was:" >&5 | 8149 echo "configure: failed program was:" >&5 |
7590 cat conftest.$ac_ext >&5 | 8150 cat conftest.$ac_ext >&5 |
7615 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } | 8175 { echo "configure: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." 1>&2; exit 1; } |
7616 fi | 8176 fi |
7617 | 8177 |
7618 ### Specify what sort of things we'll be editing into Makefile and config.h. | 8178 ### Specify what sort of things we'll be editing into Makefile and config.h. |
7619 ### Use configuration here uncanonicalized to avoid exceeding size limits. | 8179 ### Use configuration here uncanonicalized to avoid exceeding size limits. |
8180 | |
7620 | 8181 |
7621 | 8182 |
7622 | 8183 |
7623 | 8184 |
7624 | 8185 |
7912 s%@RANLIB@%$RANLIB%g | 8473 s%@RANLIB@%$RANLIB%g |
7913 s%@SET_MAKE@%$SET_MAKE%g | 8474 s%@SET_MAKE@%$SET_MAKE%g |
7914 s%@ALLOCA@%$ALLOCA%g | 8475 s%@ALLOCA@%$ALLOCA%g |
7915 s%@liblockfile@%$liblockfile%g | 8476 s%@liblockfile@%$liblockfile%g |
7916 s%@LIBOBJS@%$LIBOBJS%g | 8477 s%@LIBOBJS@%$LIBOBJS%g |
8478 s%@NEED_SETGID@%$NEED_SETGID%g | |
8479 s%@KMEM_GROUP@%$KMEM_GROUP%g | |
7917 s%@version@%$version%g | 8480 s%@version@%$version%g |
7918 s%@configuration@%$configuration%g | 8481 s%@configuration@%$configuration%g |
7919 s%@canonical@%$canonical%g | 8482 s%@canonical@%$canonical%g |
7920 s%@srcdir@%$srcdir%g | 8483 s%@srcdir@%$srcdir%g |
7921 s%@lispdir@%$lispdir%g | 8484 s%@lispdir@%$lispdir%g |
7932 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g | 8495 s%@LD_SWITCH_X_SITE_AUX@%$LD_SWITCH_X_SITE_AUX%g |
7933 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g | 8496 s%@C_SWITCH_X_SITE@%$C_SWITCH_X_SITE%g |
7934 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g | 8497 s%@X_TOOLKIT_TYPE@%$X_TOOLKIT_TYPE%g |
7935 s%@machfile@%$machfile%g | 8498 s%@machfile@%$machfile%g |
7936 s%@opsysfile@%$opsysfile%g | 8499 s%@opsysfile@%$opsysfile%g |
8500 s%@GETLOADAVG_LIBS@%$GETLOADAVG_LIBS%g | |
7937 | 8501 |
7938 CEOF | 8502 CEOF |
7939 EOF | 8503 EOF |
7940 | 8504 |
7941 cat >> $CONFIG_STATUS <<\EOF | 8505 cat >> $CONFIG_STATUS <<\EOF |