Mercurial > emacs
comparison configure @ 30576:e53905a0a16b
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 03 Aug 2000 20:24:26 +0000 |
parents | 3d8d0e78d92c |
children | 49294d7cfd5b |
comparison
equal
deleted
inserted
replaced
30575:e8bd810181fb | 30576:e53905a0a16b |
---|---|
37 --without-toolkit-scroll-bars | 37 --without-toolkit-scroll-bars |
38 don't use Motif or Xaw3d scroll bars" | 38 don't use Motif or Xaw3d scroll bars" |
39 ac_help="$ac_help | 39 ac_help="$ac_help |
40 --without-xim don't use X11 XIM" | 40 --without-xim don't use X11 XIM" |
41 ac_help="$ac_help | 41 ac_help="$ac_help |
42 --disable-largefile omit support for large files" | |
43 ac_help="$ac_help | |
42 --with-x use the X Window System" | 44 --with-x use the X Window System" |
43 ac_help="$ac_help | |
44 --disable-largefile omit support for large files" | |
45 | 45 |
46 # Initialize some variables set by options. | 46 # Initialize some variables set by options. |
47 # The variables have the same names as the options, with | 47 # The variables have the same names as the options, with |
48 # dashes changed to underlines. | 48 # dashes changed to underlines. |
49 build=NONE | 49 build=NONE |
1605 ## Wicat | 1605 ## Wicat |
1606 m68*-wicat-sysv* ) | 1606 m68*-wicat-sysv* ) |
1607 machine=wicat opsys=usg5-2 | 1607 machine=wicat opsys=usg5-2 |
1608 ;; | 1608 ;; |
1609 | 1609 |
1610 ## IA-64 | |
1611 ia64*-*-linux* ) | |
1612 machine=ia64 opsys=gnu-linux | |
1613 ;; | |
1614 | |
1610 ## Intel 386 machines where we don't care about the manufacturer | 1615 ## Intel 386 machines where we don't care about the manufacturer |
1611 i[3456]86-*-* ) | 1616 i[3456]86-*-* ) |
1612 machine=intel386 | 1617 machine=intel386 |
1613 case "${canonical}" in | 1618 case "${canonical}" in |
1614 *-lynxos* ) opsys=lynxos ;; | 1619 *-lynxos* ) opsys=lynxos ;; |
1722 "yes" ) CC="gcc" GCC=yes ;; | 1727 "yes" ) CC="gcc" GCC=yes ;; |
1723 "no" ) : ${CC=cc} ;; | 1728 "no" ) : ${CC=cc} ;; |
1724 * ) # Extract the first word of "gcc", so it can be a program name with args. | 1729 * ) # Extract the first word of "gcc", so it can be a program name with args. |
1725 set dummy gcc; ac_word=$2 | 1730 set dummy gcc; ac_word=$2 |
1726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1727 echo "configure:1728: checking for $ac_word" >&5 | 1732 echo "configure:1733: checking for $ac_word" >&5 |
1728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1733 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1729 echo $ac_n "(cached) $ac_c" 1>&6 | 1734 echo $ac_n "(cached) $ac_c" 1>&6 |
1730 else | 1735 else |
1731 if test -n "$CC"; then | 1736 if test -n "$CC"; then |
1732 ac_cv_prog_CC="$CC" # Let the user override the test. | 1737 ac_cv_prog_CC="$CC" # Let the user override the test. |
1752 | 1757 |
1753 if test -z "$CC"; then | 1758 if test -z "$CC"; then |
1754 # Extract the first word of "cc", so it can be a program name with args. | 1759 # Extract the first word of "cc", so it can be a program name with args. |
1755 set dummy cc; ac_word=$2 | 1760 set dummy cc; ac_word=$2 |
1756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1757 echo "configure:1758: checking for $ac_word" >&5 | 1762 echo "configure:1763: checking for $ac_word" >&5 |
1758 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1763 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1759 echo $ac_n "(cached) $ac_c" 1>&6 | 1764 echo $ac_n "(cached) $ac_c" 1>&6 |
1760 else | 1765 else |
1761 if test -n "$CC"; then | 1766 if test -n "$CC"; then |
1762 ac_cv_prog_CC="$CC" # Let the user override the test. | 1767 ac_cv_prog_CC="$CC" # Let the user override the test. |
1803 case "`uname -s`" in | 1808 case "`uname -s`" in |
1804 *win32* | *WIN32*) | 1809 *win32* | *WIN32*) |
1805 # Extract the first word of "cl", so it can be a program name with args. | 1810 # Extract the first word of "cl", so it can be a program name with args. |
1806 set dummy cl; ac_word=$2 | 1811 set dummy cl; ac_word=$2 |
1807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1808 echo "configure:1809: checking for $ac_word" >&5 | 1813 echo "configure:1814: checking for $ac_word" >&5 |
1809 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 1814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1810 echo $ac_n "(cached) $ac_c" 1>&6 | 1815 echo $ac_n "(cached) $ac_c" 1>&6 |
1811 else | 1816 else |
1812 if test -n "$CC"; then | 1817 if test -n "$CC"; then |
1813 ac_cv_prog_CC="$CC" # Let the user override the test. | 1818 ac_cv_prog_CC="$CC" # Let the user override the test. |
1835 fi | 1840 fi |
1836 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 1841 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1837 fi | 1842 fi |
1838 | 1843 |
1839 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 1844 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1840 echo "configure:1841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 1845 echo "configure:1846: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1841 | 1846 |
1842 ac_ext=c | 1847 ac_ext=c |
1843 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 1848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1844 ac_cpp='$CPP $CPPFLAGS' | 1849 ac_cpp='$CPP $CPPFLAGS' |
1845 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 1850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1846 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 1851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1847 cross_compiling=$ac_cv_prog_cc_cross | 1852 cross_compiling=$ac_cv_prog_cc_cross |
1848 | 1853 |
1849 cat > conftest.$ac_ext << EOF | 1854 cat > conftest.$ac_ext << EOF |
1850 | 1855 |
1851 #line 1852 "configure" | 1856 #line 1857 "configure" |
1852 #include "confdefs.h" | 1857 #include "confdefs.h" |
1853 | 1858 |
1854 main(){return(0);} | 1859 main(){return(0);} |
1855 EOF | 1860 EOF |
1856 if { (eval echo configure:1857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1857 ac_cv_prog_cc_works=yes | 1862 ac_cv_prog_cc_works=yes |
1858 # If we can't run a trivial program, we are probably using a cross compiler. | 1863 # If we can't run a trivial program, we are probably using a cross compiler. |
1859 if (./conftest; exit) 2>/dev/null; then | 1864 if (./conftest; exit) 2>/dev/null; then |
1860 ac_cv_prog_cc_cross=no | 1865 ac_cv_prog_cc_cross=no |
1861 else | 1866 else |
1877 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 1882 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1878 if test $ac_cv_prog_cc_works = no; then | 1883 if test $ac_cv_prog_cc_works = no; then |
1879 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 1884 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1880 fi | 1885 fi |
1881 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 1886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1882 echo "configure:1883: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 1887 echo "configure:1888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1883 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 1888 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1884 cross_compiling=$ac_cv_prog_cc_cross | 1889 cross_compiling=$ac_cv_prog_cc_cross |
1885 | 1890 |
1886 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 1891 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1887 echo "configure:1888: checking whether we are using GNU C" >&5 | 1892 echo "configure:1893: checking whether we are using GNU C" >&5 |
1888 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 1893 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1889 echo $ac_n "(cached) $ac_c" 1>&6 | 1894 echo $ac_n "(cached) $ac_c" 1>&6 |
1890 else | 1895 else |
1891 cat > conftest.c <<EOF | 1896 cat > conftest.c <<EOF |
1892 #ifdef __GNUC__ | 1897 #ifdef __GNUC__ |
1893 yes; | 1898 yes; |
1894 #endif | 1899 #endif |
1895 EOF | 1900 EOF |
1896 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 1901 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1897 ac_cv_prog_gcc=yes | 1902 ac_cv_prog_gcc=yes |
1898 else | 1903 else |
1899 ac_cv_prog_gcc=no | 1904 ac_cv_prog_gcc=no |
1900 fi | 1905 fi |
1901 fi | 1906 fi |
1910 | 1915 |
1911 ac_test_CFLAGS="${CFLAGS+set}" | 1916 ac_test_CFLAGS="${CFLAGS+set}" |
1912 ac_save_CFLAGS="$CFLAGS" | 1917 ac_save_CFLAGS="$CFLAGS" |
1913 CFLAGS= | 1918 CFLAGS= |
1914 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 1919 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1915 echo "configure:1916: checking whether ${CC-cc} accepts -g" >&5 | 1920 echo "configure:1921: checking whether ${CC-cc} accepts -g" >&5 |
1916 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 1921 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1917 echo $ac_n "(cached) $ac_c" 1>&6 | 1922 echo $ac_n "(cached) $ac_c" 1>&6 |
1918 else | 1923 else |
1919 echo 'void f(){}' > conftest.c | 1924 echo 'void f(){}' > conftest.c |
1920 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 1925 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1990 #### Some other nice autoconf tests. If you add a test here which | 1995 #### Some other nice autoconf tests. If you add a test here which |
1991 #### should make an entry in src/config.h, don't forget to add an | 1996 #### should make an entry in src/config.h, don't forget to add an |
1992 #### #undef clause to src/config.h.in for autoconf to modify. | 1997 #### #undef clause to src/config.h.in for autoconf to modify. |
1993 | 1998 |
1994 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 1999 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1995 echo "configure:1996: checking whether ln -s works" >&5 | 2000 echo "configure:2001: checking whether ln -s works" >&5 |
1996 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 2001 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1997 echo $ac_n "(cached) $ac_c" 1>&6 | 2002 echo $ac_n "(cached) $ac_c" 1>&6 |
1998 else | 2003 else |
1999 rm -f conftestdata | 2004 rm -f conftestdata |
2000 if ln -s X conftestdata 2>/dev/null | 2005 if ln -s X conftestdata 2>/dev/null |
2011 else | 2016 else |
2012 echo "$ac_t""no" 1>&6 | 2017 echo "$ac_t""no" 1>&6 |
2013 fi | 2018 fi |
2014 | 2019 |
2015 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 2020 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2016 echo "configure:2017: checking how to run the C preprocessor" >&5 | 2021 echo "configure:2022: checking how to run the C preprocessor" >&5 |
2017 # On Suns, sometimes $CPP names a directory. | 2022 # On Suns, sometimes $CPP names a directory. |
2018 if test -n "$CPP" && test -d "$CPP"; then | 2023 if test -n "$CPP" && test -d "$CPP"; then |
2019 CPP= | 2024 CPP= |
2020 fi | 2025 fi |
2021 if test -z "$CPP"; then | 2026 if test -z "$CPP"; then |
2026 # substituted into the Makefile and "${CC-cc}" will confuse make. | 2031 # substituted into the Makefile and "${CC-cc}" will confuse make. |
2027 CPP="${CC-cc} -E" | 2032 CPP="${CC-cc} -E" |
2028 # On the NeXT, cc -E runs the code through the compiler's parser, | 2033 # On the NeXT, cc -E runs the code through the compiler's parser, |
2029 # not just through cpp. | 2034 # not just through cpp. |
2030 cat > conftest.$ac_ext <<EOF | 2035 cat > conftest.$ac_ext <<EOF |
2031 #line 2032 "configure" | 2036 #line 2037 "configure" |
2032 #include "confdefs.h" | 2037 #include "confdefs.h" |
2033 #include <assert.h> | 2038 #include <assert.h> |
2034 Syntax Error | 2039 Syntax Error |
2035 EOF | 2040 EOF |
2036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2037 { (eval echo configure:2038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2042 { (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2039 if test -z "$ac_err"; then | 2044 if test -z "$ac_err"; then |
2040 : | 2045 : |
2041 else | 2046 else |
2042 echo "$ac_err" >&5 | 2047 echo "$ac_err" >&5 |
2043 echo "configure: failed program was:" >&5 | 2048 echo "configure: failed program was:" >&5 |
2044 cat conftest.$ac_ext >&5 | 2049 cat conftest.$ac_ext >&5 |
2045 rm -rf conftest* | 2050 rm -rf conftest* |
2046 CPP="${CC-cc} -E -traditional-cpp" | 2051 CPP="${CC-cc} -E -traditional-cpp" |
2047 cat > conftest.$ac_ext <<EOF | 2052 cat > conftest.$ac_ext <<EOF |
2048 #line 2049 "configure" | 2053 #line 2054 "configure" |
2049 #include "confdefs.h" | 2054 #include "confdefs.h" |
2050 #include <assert.h> | 2055 #include <assert.h> |
2051 Syntax Error | 2056 Syntax Error |
2052 EOF | 2057 EOF |
2053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2054 { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2059 { (eval echo configure:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2056 if test -z "$ac_err"; then | 2061 if test -z "$ac_err"; then |
2057 : | 2062 : |
2058 else | 2063 else |
2059 echo "$ac_err" >&5 | 2064 echo "$ac_err" >&5 |
2060 echo "configure: failed program was:" >&5 | 2065 echo "configure: failed program was:" >&5 |
2061 cat conftest.$ac_ext >&5 | 2066 cat conftest.$ac_ext >&5 |
2062 rm -rf conftest* | 2067 rm -rf conftest* |
2063 CPP="${CC-cc} -nologo -E" | 2068 CPP="${CC-cc} -nologo -E" |
2064 cat > conftest.$ac_ext <<EOF | 2069 cat > conftest.$ac_ext <<EOF |
2065 #line 2066 "configure" | 2070 #line 2071 "configure" |
2066 #include "confdefs.h" | 2071 #include "confdefs.h" |
2067 #include <assert.h> | 2072 #include <assert.h> |
2068 Syntax Error | 2073 Syntax Error |
2069 EOF | 2074 EOF |
2070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2071 { (eval echo configure:2072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2076 { (eval echo configure:2077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2073 if test -z "$ac_err"; then | 2078 if test -z "$ac_err"; then |
2074 : | 2079 : |
2075 else | 2080 else |
2076 echo "$ac_err" >&5 | 2081 echo "$ac_err" >&5 |
2102 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 2107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2103 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 2108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2104 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 2109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2105 # ./install, which can be erroneously created by make from ./install.sh. | 2110 # ./install, which can be erroneously created by make from ./install.sh. |
2106 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 2111 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2107 echo "configure:2108: checking for a BSD compatible install" >&5 | 2112 echo "configure:2113: checking for a BSD compatible install" >&5 |
2108 if test -z "$INSTALL"; then | 2113 if test -z "$INSTALL"; then |
2109 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 2114 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
2110 echo $ac_n "(cached) $ac_c" 1>&6 | 2115 echo $ac_n "(cached) $ac_c" 1>&6 |
2111 else | 2116 else |
2112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | 2117 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
2159 for ac_prog in 'bison -y' byacc | 2164 for ac_prog in 'bison -y' byacc |
2160 do | 2165 do |
2161 # Extract the first word of "$ac_prog", so it can be a program name with args. | 2166 # Extract the first word of "$ac_prog", so it can be a program name with args. |
2162 set dummy $ac_prog; ac_word=$2 | 2167 set dummy $ac_prog; ac_word=$2 |
2163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2168 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2164 echo "configure:2165: checking for $ac_word" >&5 | 2169 echo "configure:2170: checking for $ac_word" >&5 |
2165 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | 2170 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
2166 echo $ac_n "(cached) $ac_c" 1>&6 | 2171 echo $ac_n "(cached) $ac_c" 1>&6 |
2167 else | 2172 else |
2168 if test -n "$YACC"; then | 2173 if test -n "$YACC"; then |
2169 ac_cv_prog_YACC="$YACC" # Let the user override the test. | 2174 ac_cv_prog_YACC="$YACC" # Let the user override the test. |
2193 | 2198 |
2194 if test "x$RANLIB" = x; then | 2199 if test "x$RANLIB" = x; then |
2195 # Extract the first word of "ranlib", so it can be a program name with args. | 2200 # Extract the first word of "ranlib", so it can be a program name with args. |
2196 set dummy ranlib; ac_word=$2 | 2201 set dummy ranlib; ac_word=$2 |
2197 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 2202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2198 echo "configure:2199: checking for $ac_word" >&5 | 2203 echo "configure:2204: checking for $ac_word" >&5 |
2199 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 2204 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
2200 echo $ac_n "(cached) $ac_c" 1>&6 | 2205 echo $ac_n "(cached) $ac_c" 1>&6 |
2201 else | 2206 else |
2202 if test -n "$RANLIB"; then | 2207 if test -n "$RANLIB"; then |
2203 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 2208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
2223 fi | 2228 fi |
2224 | 2229 |
2225 fi | 2230 fi |
2226 | 2231 |
2227 echo $ac_n "checking for AIX""... $ac_c" 1>&6 | 2232 echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
2228 echo "configure:2229: checking for AIX" >&5 | 2233 echo "configure:2234: checking for AIX" >&5 |
2229 cat > conftest.$ac_ext <<EOF | 2234 cat > conftest.$ac_ext <<EOF |
2230 #line 2231 "configure" | 2235 #line 2236 "configure" |
2231 #include "confdefs.h" | 2236 #include "confdefs.h" |
2232 #ifdef _AIX | 2237 #ifdef _AIX |
2233 yes | 2238 yes |
2234 #endif | 2239 #endif |
2235 | 2240 |
2252 #### Extract some information from the operating system and machine files. | 2257 #### Extract some information from the operating system and machine files. |
2253 | 2258 |
2254 echo "checking the machine- and system-dependent files to find out | 2259 echo "checking the machine- and system-dependent files to find out |
2255 - which libraries the lib-src programs will want, and | 2260 - which libraries the lib-src programs will want, and |
2256 - whether the GNU malloc routines are usable" 1>&6 | 2261 - whether the GNU malloc routines are usable" 1>&6 |
2257 echo "configure:2258: checking the machine- and system-dependent files to find out | 2262 echo "configure:2263: checking the machine- and system-dependent files to find out |
2258 - which libraries the lib-src programs will want, and | 2263 - which libraries the lib-src programs will want, and |
2259 - whether the GNU malloc routines are usable" >&5 | 2264 - whether the GNU malloc routines are usable" >&5 |
2260 | 2265 |
2261 ### First figure out CFLAGS (which we use for running the compiler here) | 2266 ### First figure out CFLAGS (which we use for running the compiler here) |
2262 ### and REAL_CFLAGS (which we use for real compilation). | 2267 ### and REAL_CFLAGS (which we use for real compilation). |
2386 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | 2391 CPPFLAGS="${OVERRIDE_CPPFLAGS}" |
2387 else | 2392 else |
2388 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | 2393 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" |
2389 fi | 2394 fi |
2390 | 2395 |
2396 # Check whether --enable-largefile or --disable-largefile was given. | |
2397 if test "${enable_largefile+set}" = set; then | |
2398 enableval="$enable_largefile" | |
2399 : | |
2400 fi | |
2401 | |
2402 if test "$enable_largefile" != no; then | |
2403 | |
2404 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | |
2405 echo "configure:2406: checking for special C compiler options needed for large files" >&5 | |
2406 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then | |
2407 echo $ac_n "(cached) $ac_c" 1>&6 | |
2408 else | |
2409 ac_cv_sys_largefile_CC=no | |
2410 if test "$GCC" != yes; then | |
2411 # IRIX 6.2 and later do not support large files by default, | |
2412 # so use the C compiler's -n32 option if that helps. | |
2413 cat > conftest.$ac_ext <<EOF | |
2414 #line 2415 "configure" | |
2415 #include "confdefs.h" | |
2416 #include <sys/types.h> | |
2417 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2418 | |
2419 int main() { | |
2420 | |
2421 ; return 0; } | |
2422 EOF | |
2423 if { (eval echo configure:2424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2424 : | |
2425 else | |
2426 echo "configure: failed program was:" >&5 | |
2427 cat conftest.$ac_ext >&5 | |
2428 rm -rf conftest* | |
2429 ac_save_CC="$CC" | |
2430 CC="$CC -n32" | |
2431 cat > conftest.$ac_ext <<EOF | |
2432 #line 2433 "configure" | |
2433 #include "confdefs.h" | |
2434 #include <sys/types.h> | |
2435 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2436 | |
2437 int main() { | |
2438 | |
2439 ; return 0; } | |
2440 EOF | |
2441 if { (eval echo configure:2442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2442 rm -rf conftest* | |
2443 ac_cv_sys_largefile_CC=' -n32' | |
2444 else | |
2445 echo "configure: failed program was:" >&5 | |
2446 cat conftest.$ac_ext >&5 | |
2447 fi | |
2448 rm -f conftest* | |
2449 CC="$ac_save_CC" | |
2450 fi | |
2451 rm -f conftest* | |
2452 fi | |
2453 fi | |
2454 | |
2455 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 | |
2456 if test "$ac_cv_sys_largefile_CC" != no; then | |
2457 CC="$CC$ac_cv_sys_largefile_CC" | |
2458 fi | |
2459 | |
2460 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
2461 echo "configure:2462: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
2462 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | |
2463 echo $ac_n "(cached) $ac_c" 1>&6 | |
2464 else | |
2465 ac_cv_sys_file_offset_bits=no | |
2466 cat > conftest.$ac_ext <<EOF | |
2467 #line 2468 "configure" | |
2468 #include "confdefs.h" | |
2469 #include <sys/types.h> | |
2470 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2471 | |
2472 | |
2473 | |
2474 int main() { | |
2475 | |
2476 ; return 0; } | |
2477 EOF | |
2478 if { (eval echo configure:2479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2479 : | |
2480 else | |
2481 echo "configure: failed program was:" >&5 | |
2482 cat conftest.$ac_ext >&5 | |
2483 rm -rf conftest* | |
2484 cat > conftest.$ac_ext <<EOF | |
2485 #line 2486 "configure" | |
2486 #include "confdefs.h" | |
2487 #define _FILE_OFFSET_BITS 64 | |
2488 #include <sys/types.h> | |
2489 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2490 | |
2491 | |
2492 | |
2493 int main() { | |
2494 | |
2495 ; return 0; } | |
2496 EOF | |
2497 if { (eval echo configure:2498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2498 rm -rf conftest* | |
2499 ac_cv_sys_file_offset_bits=64 | |
2500 else | |
2501 echo "configure: failed program was:" >&5 | |
2502 cat conftest.$ac_ext >&5 | |
2503 fi | |
2504 rm -f conftest* | |
2505 fi | |
2506 rm -f conftest* | |
2507 fi | |
2508 | |
2509 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
2510 if test "$ac_cv_sys_file_offset_bits" != no; then | |
2511 cat >> confdefs.h <<EOF | |
2512 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
2513 EOF | |
2514 | |
2515 fi | |
2516 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | |
2517 echo "configure:2518: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
2518 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | |
2519 echo $ac_n "(cached) $ac_c" 1>&6 | |
2520 else | |
2521 ac_cv_sys_largefile_source=no | |
2522 cat > conftest.$ac_ext <<EOF | |
2523 #line 2524 "configure" | |
2524 #include "confdefs.h" | |
2525 #include <sys/types.h> | |
2526 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2527 | |
2528 #include <stdio.h> | |
2529 | |
2530 int main() { | |
2531 return !ftello; | |
2532 ; return 0; } | |
2533 EOF | |
2534 if { (eval echo configure:2535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2535 : | |
2536 else | |
2537 echo "configure: failed program was:" >&5 | |
2538 cat conftest.$ac_ext >&5 | |
2539 rm -rf conftest* | |
2540 cat > conftest.$ac_ext <<EOF | |
2541 #line 2542 "configure" | |
2542 #include "confdefs.h" | |
2543 #define _LARGEFILE_SOURCE 1 | |
2544 #include <sys/types.h> | |
2545 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2546 | |
2547 #include <stdio.h> | |
2548 | |
2549 int main() { | |
2550 return !ftello; | |
2551 ; return 0; } | |
2552 EOF | |
2553 if { (eval echo configure:2554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2554 rm -rf conftest* | |
2555 ac_cv_sys_largefile_source=1 | |
2556 else | |
2557 echo "configure: failed program was:" >&5 | |
2558 cat conftest.$ac_ext >&5 | |
2559 fi | |
2560 rm -f conftest* | |
2561 fi | |
2562 rm -f conftest* | |
2563 fi | |
2564 | |
2565 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 | |
2566 if test "$ac_cv_sys_largefile_source" != no; then | |
2567 cat >> confdefs.h <<EOF | |
2568 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
2569 EOF | |
2570 | |
2571 fi | |
2572 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
2573 echo "configure:2574: checking for _LARGE_FILES value needed for large files" >&5 | |
2574 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | |
2575 echo $ac_n "(cached) $ac_c" 1>&6 | |
2576 else | |
2577 ac_cv_sys_large_files=no | |
2578 cat > conftest.$ac_ext <<EOF | |
2579 #line 2580 "configure" | |
2580 #include "confdefs.h" | |
2581 #include <sys/types.h> | |
2582 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2583 | |
2584 | |
2585 | |
2586 int main() { | |
2587 | |
2588 ; return 0; } | |
2589 EOF | |
2590 if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2591 : | |
2592 else | |
2593 echo "configure: failed program was:" >&5 | |
2594 cat conftest.$ac_ext >&5 | |
2595 rm -rf conftest* | |
2596 cat > conftest.$ac_ext <<EOF | |
2597 #line 2598 "configure" | |
2598 #include "confdefs.h" | |
2599 #define _LARGE_FILES 1 | |
2600 #include <sys/types.h> | |
2601 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2602 | |
2603 | |
2604 | |
2605 int main() { | |
2606 | |
2607 ; return 0; } | |
2608 EOF | |
2609 if { (eval echo configure:2610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2610 rm -rf conftest* | |
2611 ac_cv_sys_large_files=1 | |
2612 else | |
2613 echo "configure: failed program was:" >&5 | |
2614 cat conftest.$ac_ext >&5 | |
2615 fi | |
2616 rm -f conftest* | |
2617 fi | |
2618 rm -f conftest* | |
2619 fi | |
2620 | |
2621 echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
2622 if test "$ac_cv_sys_large_files" != no; then | |
2623 cat >> confdefs.h <<EOF | |
2624 #define _LARGE_FILES $ac_cv_sys_large_files | |
2625 EOF | |
2626 | |
2627 fi | |
2628 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | |
2629 echo "configure:2630: checking for _XOPEN_SOURCE value needed for large files" >&5 | |
2630 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then | |
2631 echo $ac_n "(cached) $ac_c" 1>&6 | |
2632 else | |
2633 ac_cv_sys_xopen_source=no | |
2634 cat > conftest.$ac_ext <<EOF | |
2635 #line 2636 "configure" | |
2636 #include "confdefs.h" | |
2637 #include <sys/types.h> | |
2638 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2639 | |
2640 #include <stdio.h> | |
2641 | |
2642 int main() { | |
2643 return !ftello; | |
2644 ; return 0; } | |
2645 EOF | |
2646 if { (eval echo configure:2647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2647 : | |
2648 else | |
2649 echo "configure: failed program was:" >&5 | |
2650 cat conftest.$ac_ext >&5 | |
2651 rm -rf conftest* | |
2652 cat > conftest.$ac_ext <<EOF | |
2653 #line 2654 "configure" | |
2654 #include "confdefs.h" | |
2655 #define _XOPEN_SOURCE 500 | |
2656 #include <sys/types.h> | |
2657 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
2658 | |
2659 #include <stdio.h> | |
2660 | |
2661 int main() { | |
2662 return !ftello; | |
2663 ; return 0; } | |
2664 EOF | |
2665 if { (eval echo configure:2666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2666 rm -rf conftest* | |
2667 ac_cv_sys_xopen_source=500 | |
2668 else | |
2669 echo "configure: failed program was:" >&5 | |
2670 cat conftest.$ac_ext >&5 | |
2671 fi | |
2672 rm -f conftest* | |
2673 fi | |
2674 rm -f conftest* | |
2675 fi | |
2676 | |
2677 echo "$ac_t""$ac_cv_sys_xopen_source" 1>&6 | |
2678 if test "$ac_cv_sys_xopen_source" != no; then | |
2679 cat >> confdefs.h <<EOF | |
2680 #define _XOPEN_SOURCE $ac_cv_sys_xopen_source | |
2681 EOF | |
2682 | |
2683 fi | |
2684 fi | |
2685 | |
2686 | |
2391 # Sound support for GNU/Linux and the free BSDs. | 2687 # Sound support for GNU/Linux and the free BSDs. |
2392 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h | 2688 for ac_hdr in machine/soundcard.h sys/soundcard.h soundcard.h |
2393 do | 2689 do |
2394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2396 echo "configure:2397: checking for $ac_hdr" >&5 | 2692 echo "configure:2693: checking for $ac_hdr" >&5 |
2397 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2693 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2398 echo $ac_n "(cached) $ac_c" 1>&6 | 2694 echo $ac_n "(cached) $ac_c" 1>&6 |
2399 else | 2695 else |
2400 cat > conftest.$ac_ext <<EOF | 2696 cat > conftest.$ac_ext <<EOF |
2401 #line 2402 "configure" | 2697 #line 2698 "configure" |
2402 #include "confdefs.h" | 2698 #include "confdefs.h" |
2403 #include <$ac_hdr> | 2699 #include <$ac_hdr> |
2404 EOF | 2700 EOF |
2405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2406 { (eval echo configure:2407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2702 { (eval echo configure:2703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2408 if test -z "$ac_err"; then | 2704 if test -z "$ac_err"; then |
2409 rm -rf conftest* | 2705 rm -rf conftest* |
2410 eval "ac_cv_header_$ac_safe=yes" | 2706 eval "ac_cv_header_$ac_safe=yes" |
2411 else | 2707 else |
2429 fi | 2725 fi |
2430 done | 2726 done |
2431 | 2727 |
2432 # Emulation library used on NetBSD. | 2728 # Emulation library used on NetBSD. |
2433 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 | 2729 echo $ac_n "checking for _oss_ioctl in -lossaudio""... $ac_c" 1>&6 |
2434 echo "configure:2435: checking for _oss_ioctl in -lossaudio" >&5 | 2730 echo "configure:2731: checking for _oss_ioctl in -lossaudio" >&5 |
2435 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` | 2731 ac_lib_var=`echo ossaudio'_'_oss_ioctl | sed 'y%./+-%__p_%'` |
2436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 2732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2437 echo $ac_n "(cached) $ac_c" 1>&6 | 2733 echo $ac_n "(cached) $ac_c" 1>&6 |
2438 else | 2734 else |
2439 ac_save_LIBS="$LIBS" | 2735 ac_save_LIBS="$LIBS" |
2440 LIBS="-lossaudio $LIBS" | 2736 LIBS="-lossaudio $LIBS" |
2441 cat > conftest.$ac_ext <<EOF | 2737 cat > conftest.$ac_ext <<EOF |
2442 #line 2443 "configure" | 2738 #line 2739 "configure" |
2443 #include "confdefs.h" | 2739 #include "confdefs.h" |
2444 /* Override any gcc2 internal prototype to avoid an error. */ | 2740 /* Override any gcc2 internal prototype to avoid an error. */ |
2445 /* We use char because int might match the return type of a gcc2 | 2741 /* We use char because int might match the return type of a gcc2 |
2446 builtin and then its argument prototype would still apply. */ | 2742 builtin and then its argument prototype would still apply. */ |
2447 char _oss_ioctl(); | 2743 char _oss_ioctl(); |
2448 | 2744 |
2449 int main() { | 2745 int main() { |
2450 _oss_ioctl() | 2746 _oss_ioctl() |
2451 ; return 0; } | 2747 ; return 0; } |
2452 EOF | 2748 EOF |
2453 if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2454 rm -rf conftest* | 2750 rm -rf conftest* |
2455 eval "ac_cv_lib_$ac_lib_var=yes" | 2751 eval "ac_cv_lib_$ac_lib_var=yes" |
2456 else | 2752 else |
2457 echo "configure: failed program was:" >&5 | 2753 echo "configure: failed program was:" >&5 |
2458 cat conftest.$ac_ext >&5 | 2754 cat conftest.$ac_ext >&5 |
2477 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 2773 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
2478 termcap.h stdio_ext.h fcntl.h term.h | 2774 termcap.h stdio_ext.h fcntl.h term.h |
2479 do | 2775 do |
2480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 2776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 2777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2482 echo "configure:2483: checking for $ac_hdr" >&5 | 2778 echo "configure:2779: checking for $ac_hdr" >&5 |
2483 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 2779 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2484 echo $ac_n "(cached) $ac_c" 1>&6 | 2780 echo $ac_n "(cached) $ac_c" 1>&6 |
2485 else | 2781 else |
2486 cat > conftest.$ac_ext <<EOF | 2782 cat > conftest.$ac_ext <<EOF |
2487 #line 2488 "configure" | 2783 #line 2784 "configure" |
2488 #include "confdefs.h" | 2784 #include "confdefs.h" |
2489 #include <$ac_hdr> | 2785 #include <$ac_hdr> |
2490 EOF | 2786 EOF |
2491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2492 { (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2788 { (eval echo configure:2789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2494 if test -z "$ac_err"; then | 2790 if test -z "$ac_err"; then |
2495 rm -rf conftest* | 2791 rm -rf conftest* |
2496 eval "ac_cv_header_$ac_safe=yes" | 2792 eval "ac_cv_header_$ac_safe=yes" |
2497 else | 2793 else |
2514 echo "$ac_t""no" 1>&6 | 2810 echo "$ac_t""no" 1>&6 |
2515 fi | 2811 fi |
2516 done | 2812 done |
2517 | 2813 |
2518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 2814 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
2519 echo "configure:2520: checking for ANSI C header files" >&5 | 2815 echo "configure:2816: checking for ANSI C header files" >&5 |
2520 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 2816 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2521 echo $ac_n "(cached) $ac_c" 1>&6 | 2817 echo $ac_n "(cached) $ac_c" 1>&6 |
2522 else | 2818 else |
2523 cat > conftest.$ac_ext <<EOF | 2819 cat > conftest.$ac_ext <<EOF |
2524 #line 2525 "configure" | 2820 #line 2821 "configure" |
2525 #include "confdefs.h" | 2821 #include "confdefs.h" |
2526 #include <stdlib.h> | 2822 #include <stdlib.h> |
2527 #include <stdarg.h> | 2823 #include <stdarg.h> |
2528 #include <string.h> | 2824 #include <string.h> |
2529 #include <float.h> | 2825 #include <float.h> |
2530 EOF | 2826 EOF |
2531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 2827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2532 { (eval echo configure:2533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 2828 { (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 2829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2534 if test -z "$ac_err"; then | 2830 if test -z "$ac_err"; then |
2535 rm -rf conftest* | 2831 rm -rf conftest* |
2536 ac_cv_header_stdc=yes | 2832 ac_cv_header_stdc=yes |
2537 else | 2833 else |
2544 rm -f conftest* | 2840 rm -f conftest* |
2545 | 2841 |
2546 if test $ac_cv_header_stdc = yes; then | 2842 if test $ac_cv_header_stdc = yes; then |
2547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 2843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
2548 cat > conftest.$ac_ext <<EOF | 2844 cat > conftest.$ac_ext <<EOF |
2549 #line 2550 "configure" | 2845 #line 2846 "configure" |
2550 #include "confdefs.h" | 2846 #include "confdefs.h" |
2551 #include <string.h> | 2847 #include <string.h> |
2552 EOF | 2848 EOF |
2553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2554 egrep "memchr" >/dev/null 2>&1; then | 2850 egrep "memchr" >/dev/null 2>&1; then |
2562 fi | 2858 fi |
2563 | 2859 |
2564 if test $ac_cv_header_stdc = yes; then | 2860 if test $ac_cv_header_stdc = yes; then |
2565 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 2861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
2566 cat > conftest.$ac_ext <<EOF | 2862 cat > conftest.$ac_ext <<EOF |
2567 #line 2568 "configure" | 2863 #line 2864 "configure" |
2568 #include "confdefs.h" | 2864 #include "confdefs.h" |
2569 #include <stdlib.h> | 2865 #include <stdlib.h> |
2570 EOF | 2866 EOF |
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 2867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
2572 egrep "free" >/dev/null 2>&1; then | 2868 egrep "free" >/dev/null 2>&1; then |
2583 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 2879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
2584 if test "$cross_compiling" = yes; then | 2880 if test "$cross_compiling" = yes; then |
2585 : | 2881 : |
2586 else | 2882 else |
2587 cat > conftest.$ac_ext <<EOF | 2883 cat > conftest.$ac_ext <<EOF |
2588 #line 2589 "configure" | 2884 #line 2885 "configure" |
2589 #include "confdefs.h" | 2885 #include "confdefs.h" |
2590 #include <ctype.h> | 2886 #include <ctype.h> |
2591 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 2887 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
2592 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 2888 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
2593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 2889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2594 int main () { int i; for (i = 0; i < 256; i++) | 2890 int main () { int i; for (i = 0; i < 256; i++) |
2595 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 2891 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
2596 exit (0); } | 2892 exit (0); } |
2597 | 2893 |
2598 EOF | 2894 EOF |
2599 if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 2895 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2600 then | 2896 then |
2601 : | 2897 : |
2602 else | 2898 else |
2603 echo "configure: failed program was:" >&5 | 2899 echo "configure: failed program was:" >&5 |
2604 cat conftest.$ac_ext >&5 | 2900 cat conftest.$ac_ext >&5 |
2618 EOF | 2914 EOF |
2619 | 2915 |
2620 fi | 2916 fi |
2621 | 2917 |
2622 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 | 2918 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
2623 echo "configure:2624: checking whether time.h and sys/time.h may both be included" >&5 | 2919 echo "configure:2920: checking whether time.h and sys/time.h may both be included" >&5 |
2624 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then | 2920 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
2625 echo $ac_n "(cached) $ac_c" 1>&6 | 2921 echo $ac_n "(cached) $ac_c" 1>&6 |
2626 else | 2922 else |
2627 cat > conftest.$ac_ext <<EOF | 2923 cat > conftest.$ac_ext <<EOF |
2628 #line 2629 "configure" | 2924 #line 2925 "configure" |
2629 #include "confdefs.h" | 2925 #include "confdefs.h" |
2630 #include <sys/types.h> | 2926 #include <sys/types.h> |
2631 #include <sys/time.h> | 2927 #include <sys/time.h> |
2632 #include <time.h> | 2928 #include <time.h> |
2633 int main() { | 2929 int main() { |
2634 struct tm *tp; | 2930 struct tm *tp; |
2635 ; return 0; } | 2931 ; return 0; } |
2636 EOF | 2932 EOF |
2637 if { (eval echo configure:2638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2933 if { (eval echo configure:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2638 rm -rf conftest* | 2934 rm -rf conftest* |
2639 ac_cv_header_time=yes | 2935 ac_cv_header_time=yes |
2640 else | 2936 else |
2641 echo "configure: failed program was:" >&5 | 2937 echo "configure: failed program was:" >&5 |
2642 cat conftest.$ac_ext >&5 | 2938 cat conftest.$ac_ext >&5 |
2653 EOF | 2949 EOF |
2654 | 2950 |
2655 fi | 2951 fi |
2656 | 2952 |
2657 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 | 2953 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 |
2658 echo "configure:2659: checking for sys_siglist declaration in signal.h or unistd.h" >&5 | 2954 echo "configure:2955: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
2659 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then | 2955 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then |
2660 echo $ac_n "(cached) $ac_c" 1>&6 | 2956 echo $ac_n "(cached) $ac_c" 1>&6 |
2661 else | 2957 else |
2662 cat > conftest.$ac_ext <<EOF | 2958 cat > conftest.$ac_ext <<EOF |
2663 #line 2664 "configure" | 2959 #line 2960 "configure" |
2664 #include "confdefs.h" | 2960 #include "confdefs.h" |
2665 #include <sys/types.h> | 2961 #include <sys/types.h> |
2666 #include <signal.h> | 2962 #include <signal.h> |
2667 /* NetBSD declares sys_siglist in unistd.h. */ | 2963 /* NetBSD declares sys_siglist in unistd.h. */ |
2668 #ifdef HAVE_UNISTD_H | 2964 #ifdef HAVE_UNISTD_H |
2670 #endif | 2966 #endif |
2671 int main() { | 2967 int main() { |
2672 char *msg = *(sys_siglist + 1); | 2968 char *msg = *(sys_siglist + 1); |
2673 ; return 0; } | 2969 ; return 0; } |
2674 EOF | 2970 EOF |
2675 if { (eval echo configure:2676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 2971 if { (eval echo configure:2972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2676 rm -rf conftest* | 2972 rm -rf conftest* |
2677 ac_cv_decl_sys_siglist=yes | 2973 ac_cv_decl_sys_siglist=yes |
2678 else | 2974 else |
2679 echo "configure: failed program was:" >&5 | 2975 echo "configure: failed program was:" >&5 |
2680 cat conftest.$ac_ext >&5 | 2976 cat conftest.$ac_ext >&5 |
2691 EOF | 2987 EOF |
2692 | 2988 |
2693 fi | 2989 fi |
2694 | 2990 |
2695 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 | 2991 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
2696 echo "configure:2697: checking for sys/wait.h that is POSIX.1 compatible" >&5 | 2992 echo "configure:2993: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
2697 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then | 2993 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
2698 echo $ac_n "(cached) $ac_c" 1>&6 | 2994 echo $ac_n "(cached) $ac_c" 1>&6 |
2699 else | 2995 else |
2700 cat > conftest.$ac_ext <<EOF | 2996 cat > conftest.$ac_ext <<EOF |
2701 #line 2702 "configure" | 2997 #line 2998 "configure" |
2702 #include "confdefs.h" | 2998 #include "confdefs.h" |
2703 #include <sys/types.h> | 2999 #include <sys/types.h> |
2704 #include <sys/wait.h> | 3000 #include <sys/wait.h> |
2705 #ifndef WEXITSTATUS | 3001 #ifndef WEXITSTATUS |
2706 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) | 3002 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
2712 int s; | 3008 int s; |
2713 wait (&s); | 3009 wait (&s); |
2714 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | 3010 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
2715 ; return 0; } | 3011 ; return 0; } |
2716 EOF | 3012 EOF |
2717 if { (eval echo configure:2718: \"$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 |
2718 rm -rf conftest* | 3014 rm -rf conftest* |
2719 ac_cv_header_sys_wait_h=yes | 3015 ac_cv_header_sys_wait_h=yes |
2720 else | 3016 else |
2721 echo "configure: failed program was:" >&5 | 3017 echo "configure: failed program was:" >&5 |
2722 cat conftest.$ac_ext >&5 | 3018 cat conftest.$ac_ext >&5 |
2734 | 3030 |
2735 fi | 3031 fi |
2736 | 3032 |
2737 | 3033 |
2738 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 | 3034 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 |
2739 echo "configure:2740: checking for struct utimbuf" >&5 | 3035 echo "configure:3036: checking for struct utimbuf" >&5 |
2740 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then | 3036 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then |
2741 echo $ac_n "(cached) $ac_c" 1>&6 | 3037 echo $ac_n "(cached) $ac_c" 1>&6 |
2742 else | 3038 else |
2743 cat > conftest.$ac_ext <<EOF | 3039 cat > conftest.$ac_ext <<EOF |
2744 #line 2745 "configure" | 3040 #line 3041 "configure" |
2745 #include "confdefs.h" | 3041 #include "confdefs.h" |
2746 #ifdef TIME_WITH_SYS_TIME | 3042 #ifdef TIME_WITH_SYS_TIME |
2747 #include <sys/time.h> | 3043 #include <sys/time.h> |
2748 #include <time.h> | 3044 #include <time.h> |
2749 #else | 3045 #else |
2758 #endif | 3054 #endif |
2759 int main() { | 3055 int main() { |
2760 static struct utimbuf x; x.actime = x.modtime; | 3056 static struct utimbuf x; x.actime = x.modtime; |
2761 ; return 0; } | 3057 ; return 0; } |
2762 EOF | 3058 EOF |
2763 if { (eval echo configure:2764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3059 if { (eval echo configure:3060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2764 rm -rf conftest* | 3060 rm -rf conftest* |
2765 emacs_cv_struct_utimbuf=yes | 3061 emacs_cv_struct_utimbuf=yes |
2766 else | 3062 else |
2767 echo "configure: failed program was:" >&5 | 3063 echo "configure: failed program was:" >&5 |
2768 cat conftest.$ac_ext >&5 | 3064 cat conftest.$ac_ext >&5 |
2779 EOF | 3075 EOF |
2780 | 3076 |
2781 fi | 3077 fi |
2782 | 3078 |
2783 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 | 3079 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
2784 echo "configure:2785: checking return type of signal handlers" >&5 | 3080 echo "configure:3081: checking return type of signal handlers" >&5 |
2785 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then | 3081 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
2786 echo $ac_n "(cached) $ac_c" 1>&6 | 3082 echo $ac_n "(cached) $ac_c" 1>&6 |
2787 else | 3083 else |
2788 cat > conftest.$ac_ext <<EOF | 3084 cat > conftest.$ac_ext <<EOF |
2789 #line 2790 "configure" | 3085 #line 3086 "configure" |
2790 #include "confdefs.h" | 3086 #include "confdefs.h" |
2791 #include <sys/types.h> | 3087 #include <sys/types.h> |
2792 #include <signal.h> | 3088 #include <signal.h> |
2793 #ifdef signal | 3089 #ifdef signal |
2794 #undef signal | 3090 #undef signal |
2801 | 3097 |
2802 int main() { | 3098 int main() { |
2803 int i; | 3099 int i; |
2804 ; return 0; } | 3100 ; return 0; } |
2805 EOF | 3101 EOF |
2806 if { (eval echo configure:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3102 if { (eval echo configure:3103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2807 rm -rf conftest* | 3103 rm -rf conftest* |
2808 ac_cv_type_signal=void | 3104 ac_cv_type_signal=void |
2809 else | 3105 else |
2810 echo "configure: failed program was:" >&5 | 3106 echo "configure: failed program was:" >&5 |
2811 cat conftest.$ac_ext >&5 | 3107 cat conftest.$ac_ext >&5 |
2821 EOF | 3117 EOF |
2822 | 3118 |
2823 | 3119 |
2824 | 3120 |
2825 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 | 3121 echo $ac_n "checking for speed_t""... $ac_c" 1>&6 |
2826 echo "configure:2827: checking for speed_t" >&5 | 3122 echo "configure:3123: checking for speed_t" >&5 |
2827 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then | 3123 if eval "test \"`echo '$''{'emacs_cv_speed_t'+set}'`\" = set"; then |
2828 echo $ac_n "(cached) $ac_c" 1>&6 | 3124 echo $ac_n "(cached) $ac_c" 1>&6 |
2829 else | 3125 else |
2830 cat > conftest.$ac_ext <<EOF | 3126 cat > conftest.$ac_ext <<EOF |
2831 #line 2832 "configure" | 3127 #line 3128 "configure" |
2832 #include "confdefs.h" | 3128 #include "confdefs.h" |
2833 #include <termios.h> | 3129 #include <termios.h> |
2834 int main() { | 3130 int main() { |
2835 speed_t x = 1; | 3131 speed_t x = 1; |
2836 ; return 0; } | 3132 ; return 0; } |
2837 EOF | 3133 EOF |
2838 if { (eval echo configure:2839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3134 if { (eval echo configure:3135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2839 rm -rf conftest* | 3135 rm -rf conftest* |
2840 emacs_cv_speed_t=yes | 3136 emacs_cv_speed_t=yes |
2841 else | 3137 else |
2842 echo "configure: failed program was:" >&5 | 3138 echo "configure: failed program was:" >&5 |
2843 cat conftest.$ac_ext >&5 | 3139 cat conftest.$ac_ext >&5 |
2852 EOF | 3148 EOF |
2853 | 3149 |
2854 fi | 3150 fi |
2855 | 3151 |
2856 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 | 3152 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 |
2857 echo "configure:2858: checking for struct timeval" >&5 | 3153 echo "configure:3154: checking for struct timeval" >&5 |
2858 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then | 3154 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then |
2859 echo $ac_n "(cached) $ac_c" 1>&6 | 3155 echo $ac_n "(cached) $ac_c" 1>&6 |
2860 else | 3156 else |
2861 cat > conftest.$ac_ext <<EOF | 3157 cat > conftest.$ac_ext <<EOF |
2862 #line 2863 "configure" | 3158 #line 3159 "configure" |
2863 #include "confdefs.h" | 3159 #include "confdefs.h" |
2864 #ifdef TIME_WITH_SYS_TIME | 3160 #ifdef TIME_WITH_SYS_TIME |
2865 #include <sys/time.h> | 3161 #include <sys/time.h> |
2866 #include <time.h> | 3162 #include <time.h> |
2867 #else | 3163 #else |
2873 #endif | 3169 #endif |
2874 int main() { | 3170 int main() { |
2875 static struct timeval x; x.tv_sec = x.tv_usec; | 3171 static struct timeval x; x.tv_sec = x.tv_usec; |
2876 ; return 0; } | 3172 ; return 0; } |
2877 EOF | 3173 EOF |
2878 if { (eval echo configure:2879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3174 if { (eval echo configure:3175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2879 rm -rf conftest* | 3175 rm -rf conftest* |
2880 emacs_cv_struct_timeval=yes | 3176 emacs_cv_struct_timeval=yes |
2881 else | 3177 else |
2882 echo "configure: failed program was:" >&5 | 3178 echo "configure: failed program was:" >&5 |
2883 cat conftest.$ac_ext >&5 | 3179 cat conftest.$ac_ext >&5 |
2895 EOF | 3191 EOF |
2896 | 3192 |
2897 fi | 3193 fi |
2898 | 3194 |
2899 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 | 3195 echo $ac_n "checking for struct exception""... $ac_c" 1>&6 |
2900 echo "configure:2901: checking for struct exception" >&5 | 3196 echo "configure:3197: checking for struct exception" >&5 |
2901 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then | 3197 if eval "test \"`echo '$''{'emacs_cv_struct_exception'+set}'`\" = set"; then |
2902 echo $ac_n "(cached) $ac_c" 1>&6 | 3198 echo $ac_n "(cached) $ac_c" 1>&6 |
2903 else | 3199 else |
2904 cat > conftest.$ac_ext <<EOF | 3200 cat > conftest.$ac_ext <<EOF |
2905 #line 2906 "configure" | 3201 #line 3202 "configure" |
2906 #include "confdefs.h" | 3202 #include "confdefs.h" |
2907 #include <math.h> | 3203 #include <math.h> |
2908 int main() { | 3204 int main() { |
2909 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; | 3205 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
2910 ; return 0; } | 3206 ; return 0; } |
2911 EOF | 3207 EOF |
2912 if { (eval echo configure:2913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3208 if { (eval echo configure:3209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2913 rm -rf conftest* | 3209 rm -rf conftest* |
2914 emacs_cv_struct_exception=yes | 3210 emacs_cv_struct_exception=yes |
2915 else | 3211 else |
2916 echo "configure: failed program was:" >&5 | 3212 echo "configure: failed program was:" >&5 |
2917 cat conftest.$ac_ext >&5 | 3213 cat conftest.$ac_ext >&5 |
2929 EOF | 3225 EOF |
2930 | 3226 |
2931 fi | 3227 fi |
2932 | 3228 |
2933 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 | 3229 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 |
2934 echo "configure:2935: checking whether struct tm is in sys/time.h or time.h" >&5 | 3230 echo "configure:3231: checking whether struct tm is in sys/time.h or time.h" >&5 |
2935 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then | 3231 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then |
2936 echo $ac_n "(cached) $ac_c" 1>&6 | 3232 echo $ac_n "(cached) $ac_c" 1>&6 |
2937 else | 3233 else |
2938 cat > conftest.$ac_ext <<EOF | 3234 cat > conftest.$ac_ext <<EOF |
2939 #line 2940 "configure" | 3235 #line 3236 "configure" |
2940 #include "confdefs.h" | 3236 #include "confdefs.h" |
2941 #include <sys/types.h> | 3237 #include <sys/types.h> |
2942 #include <time.h> | 3238 #include <time.h> |
2943 int main() { | 3239 int main() { |
2944 struct tm *tp; tp->tm_sec; | 3240 struct tm *tp; tp->tm_sec; |
2945 ; return 0; } | 3241 ; return 0; } |
2946 EOF | 3242 EOF |
2947 if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2948 rm -rf conftest* | 3244 rm -rf conftest* |
2949 ac_cv_struct_tm=time.h | 3245 ac_cv_struct_tm=time.h |
2950 else | 3246 else |
2951 echo "configure: failed program was:" >&5 | 3247 echo "configure: failed program was:" >&5 |
2952 cat conftest.$ac_ext >&5 | 3248 cat conftest.$ac_ext >&5 |
2963 EOF | 3259 EOF |
2964 | 3260 |
2965 fi | 3261 fi |
2966 | 3262 |
2967 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 | 3263 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 |
2968 echo "configure:2969: checking for tm_zone in struct tm" >&5 | 3264 echo "configure:3265: checking for tm_zone in struct tm" >&5 |
2969 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then | 3265 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then |
2970 echo $ac_n "(cached) $ac_c" 1>&6 | 3266 echo $ac_n "(cached) $ac_c" 1>&6 |
2971 else | 3267 else |
2972 cat > conftest.$ac_ext <<EOF | 3268 cat > conftest.$ac_ext <<EOF |
2973 #line 2974 "configure" | 3269 #line 3270 "configure" |
2974 #include "confdefs.h" | 3270 #include "confdefs.h" |
2975 #include <sys/types.h> | 3271 #include <sys/types.h> |
2976 #include <$ac_cv_struct_tm> | 3272 #include <$ac_cv_struct_tm> |
2977 int main() { | 3273 int main() { |
2978 struct tm tm; tm.tm_zone; | 3274 struct tm tm; tm.tm_zone; |
2979 ; return 0; } | 3275 ; return 0; } |
2980 EOF | 3276 EOF |
2981 if { (eval echo configure:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3277 if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
2982 rm -rf conftest* | 3278 rm -rf conftest* |
2983 ac_cv_struct_tm_zone=yes | 3279 ac_cv_struct_tm_zone=yes |
2984 else | 3280 else |
2985 echo "configure: failed program was:" >&5 | 3281 echo "configure: failed program was:" >&5 |
2986 cat conftest.$ac_ext >&5 | 3282 cat conftest.$ac_ext >&5 |
2996 #define HAVE_TM_ZONE 1 | 3292 #define HAVE_TM_ZONE 1 |
2997 EOF | 3293 EOF |
2998 | 3294 |
2999 else | 3295 else |
3000 echo $ac_n "checking for tzname""... $ac_c" 1>&6 | 3296 echo $ac_n "checking for tzname""... $ac_c" 1>&6 |
3001 echo "configure:3002: checking for tzname" >&5 | 3297 echo "configure:3298: checking for tzname" >&5 |
3002 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then | 3298 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then |
3003 echo $ac_n "(cached) $ac_c" 1>&6 | 3299 echo $ac_n "(cached) $ac_c" 1>&6 |
3004 else | 3300 else |
3005 cat > conftest.$ac_ext <<EOF | 3301 cat > conftest.$ac_ext <<EOF |
3006 #line 3007 "configure" | 3302 #line 3303 "configure" |
3007 #include "confdefs.h" | 3303 #include "confdefs.h" |
3008 #include <time.h> | 3304 #include <time.h> |
3009 #ifndef tzname /* For SGI. */ | 3305 #ifndef tzname /* For SGI. */ |
3010 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | 3306 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
3011 #endif | 3307 #endif |
3012 int main() { | 3308 int main() { |
3013 atoi(*tzname); | 3309 atoi(*tzname); |
3014 ; return 0; } | 3310 ; return 0; } |
3015 EOF | 3311 EOF |
3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3312 if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3017 rm -rf conftest* | 3313 rm -rf conftest* |
3018 ac_cv_var_tzname=yes | 3314 ac_cv_var_tzname=yes |
3019 else | 3315 else |
3020 echo "configure: failed program was:" >&5 | 3316 echo "configure: failed program was:" >&5 |
3021 cat conftest.$ac_ext >&5 | 3317 cat conftest.$ac_ext >&5 |
3033 | 3329 |
3034 fi | 3330 fi |
3035 fi | 3331 fi |
3036 | 3332 |
3037 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | 3333 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
3038 echo "configure:3039: checking for tm_gmtoff in struct tm" >&5 | 3334 echo "configure:3335: checking for tm_gmtoff in struct tm" >&5 |
3039 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then | 3335 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then |
3040 echo $ac_n "(cached) $ac_c" 1>&6 | 3336 echo $ac_n "(cached) $ac_c" 1>&6 |
3041 else | 3337 else |
3042 cat > conftest.$ac_ext <<EOF | 3338 cat > conftest.$ac_ext <<EOF |
3043 #line 3044 "configure" | 3339 #line 3340 "configure" |
3044 #include "confdefs.h" | 3340 #include "confdefs.h" |
3045 #include <time.h> | 3341 #include <time.h> |
3046 int main() { | 3342 int main() { |
3047 struct tm t; t.tm_gmtoff = 0 | 3343 struct tm t; t.tm_gmtoff = 0 |
3048 ; return 0; } | 3344 ; return 0; } |
3049 EOF | 3345 EOF |
3050 if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3051 rm -rf conftest* | 3347 rm -rf conftest* |
3052 emacs_cv_tm_gmtoff=yes | 3348 emacs_cv_tm_gmtoff=yes |
3053 else | 3349 else |
3054 echo "configure: failed program was:" >&5 | 3350 echo "configure: failed program was:" >&5 |
3055 cat conftest.$ac_ext >&5 | 3351 cat conftest.$ac_ext >&5 |
3067 | 3363 |
3068 fi | 3364 fi |
3069 | 3365 |
3070 | 3366 |
3071 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 | 3367 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6 |
3072 echo "configure:3073: checking for ${CC-cc} option to accept ANSI C" >&5 | 3368 echo "configure:3369: checking for ${CC-cc} option to accept ANSI C" >&5 |
3073 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then | 3369 if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then |
3074 echo $ac_n "(cached) $ac_c" 1>&6 | 3370 echo $ac_n "(cached) $ac_c" 1>&6 |
3075 else | 3371 else |
3076 ac_cv_prog_cc_stdc=no | 3372 ac_cv_prog_cc_stdc=no |
3077 ac_save_CC="$CC" | 3373 ac_save_CC="$CC" |
3084 # SVR4 -Xc -D__EXTENSIONS__ | 3380 # SVR4 -Xc -D__EXTENSIONS__ |
3085 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | 3381 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3086 do | 3382 do |
3087 CC="$ac_save_CC $ac_arg" | 3383 CC="$ac_save_CC $ac_arg" |
3088 cat > conftest.$ac_ext <<EOF | 3384 cat > conftest.$ac_ext <<EOF |
3089 #line 3090 "configure" | 3385 #line 3386 "configure" |
3090 #include "confdefs.h" | 3386 #include "confdefs.h" |
3091 #include <stdarg.h> | 3387 #include <stdarg.h> |
3092 #include <stdio.h> | 3388 #include <stdio.h> |
3093 #include <sys/types.h> | 3389 #include <sys/types.h> |
3094 #include <sys/stat.h> | 3390 #include <sys/stat.h> |
3118 char **argv; | 3414 char **argv; |
3119 int main() { | 3415 int main() { |
3120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | 3416 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3121 ; return 0; } | 3417 ; return 0; } |
3122 EOF | 3418 EOF |
3123 if { (eval echo configure:3124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3419 if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3124 rm -rf conftest* | 3420 rm -rf conftest* |
3125 ac_cv_prog_cc_stdc="$ac_arg"; break | 3421 ac_cv_prog_cc_stdc="$ac_arg"; break |
3126 else | 3422 else |
3127 echo "configure: failed program was:" >&5 | 3423 echo "configure: failed program was:" >&5 |
3128 cat conftest.$ac_ext >&5 | 3424 cat conftest.$ac_ext >&5 |
3140 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 | 3436 echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6 |
3141 CC="$CC $ac_cv_prog_cc_stdc" ;; | 3437 CC="$CC $ac_cv_prog_cc_stdc" ;; |
3142 esac | 3438 esac |
3143 | 3439 |
3144 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 | 3440 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6 |
3145 echo "configure:3146: checking for function prototypes" >&5 | 3441 echo "configure:3442: checking for function prototypes" >&5 |
3146 if test "$ac_cv_prog_cc_stdc" != no; then | 3442 if test "$ac_cv_prog_cc_stdc" != no; then |
3147 echo "$ac_t""yes" 1>&6 | 3443 echo "$ac_t""yes" 1>&6 |
3148 cat >> confdefs.h <<\EOF | 3444 cat >> confdefs.h <<\EOF |
3149 #define PROTOTYPES 1 | 3445 #define PROTOTYPES 1 |
3150 EOF | 3446 EOF |
3152 else | 3448 else |
3153 echo "$ac_t""no" 1>&6 | 3449 echo "$ac_t""no" 1>&6 |
3154 fi | 3450 fi |
3155 | 3451 |
3156 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 | 3452 echo $ac_n "checking for working volatile""... $ac_c" 1>&6 |
3157 echo "configure:3158: checking for working volatile" >&5 | 3453 echo "configure:3454: checking for working volatile" >&5 |
3158 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then | 3454 if eval "test \"`echo '$''{'ac_cv_c_volatile'+set}'`\" = set"; then |
3159 echo $ac_n "(cached) $ac_c" 1>&6 | 3455 echo $ac_n "(cached) $ac_c" 1>&6 |
3160 else | 3456 else |
3161 cat > conftest.$ac_ext <<EOF | 3457 cat > conftest.$ac_ext <<EOF |
3162 #line 3163 "configure" | 3458 #line 3459 "configure" |
3163 #include "confdefs.h" | 3459 #include "confdefs.h" |
3164 | 3460 |
3165 int main() { | 3461 int main() { |
3166 | 3462 |
3167 volatile int x; | 3463 volatile int x; |
3168 int * volatile y; | 3464 int * volatile y; |
3169 ; return 0; } | 3465 ; return 0; } |
3170 EOF | 3466 EOF |
3171 if { (eval echo configure:3172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3467 if { (eval echo configure:3468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3172 rm -rf conftest* | 3468 rm -rf conftest* |
3173 ac_cv_c_volatile=yes | 3469 ac_cv_c_volatile=yes |
3174 else | 3470 else |
3175 echo "configure: failed program was:" >&5 | 3471 echo "configure: failed program was:" >&5 |
3176 cat conftest.$ac_ext >&5 | 3472 cat conftest.$ac_ext >&5 |
3187 EOF | 3483 EOF |
3188 | 3484 |
3189 fi | 3485 fi |
3190 | 3486 |
3191 echo $ac_n "checking for working const""... $ac_c" 1>&6 | 3487 echo $ac_n "checking for working const""... $ac_c" 1>&6 |
3192 echo "configure:3193: checking for working const" >&5 | 3488 echo "configure:3489: checking for working const" >&5 |
3193 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 3489 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
3194 echo $ac_n "(cached) $ac_c" 1>&6 | 3490 echo $ac_n "(cached) $ac_c" 1>&6 |
3195 else | 3491 else |
3196 cat > conftest.$ac_ext <<EOF | 3492 cat > conftest.$ac_ext <<EOF |
3197 #line 3198 "configure" | 3493 #line 3494 "configure" |
3198 #include "confdefs.h" | 3494 #include "confdefs.h" |
3199 | 3495 |
3200 int main() { | 3496 int main() { |
3201 | 3497 |
3202 /* Ultrix mips cc rejects this. */ | 3498 /* Ultrix mips cc rejects this. */ |
3203 typedef int charset[2]; const charset x = {0,0}; | 3499 typedef int charset[2]; const charset x; |
3204 /* SunOS 4.1.1 cc rejects this. */ | 3500 /* SunOS 4.1.1 cc rejects this. */ |
3205 char const *const *ccp; | 3501 char const *const *ccp; |
3206 char **p; | 3502 char **p; |
3207 /* NEC SVR4.0.2 mips cc rejects this. */ | 3503 /* NEC SVR4.0.2 mips cc rejects this. */ |
3208 struct point {int x, y;}; | 3504 struct point {int x, y;}; |
3241 const int foo = 10; | 3537 const int foo = 10; |
3242 } | 3538 } |
3243 | 3539 |
3244 ; return 0; } | 3540 ; return 0; } |
3245 EOF | 3541 EOF |
3246 if { (eval echo configure:3247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3542 if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3247 rm -rf conftest* | 3543 rm -rf conftest* |
3248 ac_cv_c_const=yes | 3544 ac_cv_c_const=yes |
3249 else | 3545 else |
3250 echo "configure: failed program was:" >&5 | 3546 echo "configure: failed program was:" >&5 |
3251 cat conftest.$ac_ext >&5 | 3547 cat conftest.$ac_ext >&5 |
3262 EOF | 3558 EOF |
3263 | 3559 |
3264 fi | 3560 fi |
3265 | 3561 |
3266 echo $ac_n "checking for void * support""... $ac_c" 1>&6 | 3562 echo $ac_n "checking for void * support""... $ac_c" 1>&6 |
3267 echo "configure:3268: checking for void * support" >&5 | 3563 echo "configure:3564: checking for void * support" >&5 |
3268 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then | 3564 if eval "test \"`echo '$''{'emacs_cv_void_star'+set}'`\" = set"; then |
3269 echo $ac_n "(cached) $ac_c" 1>&6 | 3565 echo $ac_n "(cached) $ac_c" 1>&6 |
3270 else | 3566 else |
3271 cat > conftest.$ac_ext <<EOF | 3567 cat > conftest.$ac_ext <<EOF |
3272 #line 3273 "configure" | 3568 #line 3569 "configure" |
3273 #include "confdefs.h" | 3569 #include "confdefs.h" |
3274 | 3570 |
3275 int main() { | 3571 int main() { |
3276 void * foo; | 3572 void * foo; |
3277 ; return 0; } | 3573 ; return 0; } |
3278 EOF | 3574 EOF |
3279 if { (eval echo configure:3280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 3575 if { (eval echo configure:3576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3280 rm -rf conftest* | 3576 rm -rf conftest* |
3281 emacs_cv_void_star=yes | 3577 emacs_cv_void_star=yes |
3282 else | 3578 else |
3283 echo "configure: failed program was:" >&5 | 3579 echo "configure: failed program was:" >&5 |
3284 cat conftest.$ac_ext >&5 | 3580 cat conftest.$ac_ext >&5 |
3300 EOF | 3596 EOF |
3301 | 3597 |
3302 fi | 3598 fi |
3303 | 3599 |
3304 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 3600 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
3305 echo "configure:3306: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 3601 echo "configure:3602: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
3306 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 3602 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
3307 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 3603 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
3308 echo $ac_n "(cached) $ac_c" 1>&6 | 3604 echo $ac_n "(cached) $ac_c" 1>&6 |
3309 else | 3605 else |
3310 cat > conftestmake <<\EOF | 3606 cat > conftestmake <<\EOF |
3328 SET_MAKE="MAKE=${MAKE-make}" | 3624 SET_MAKE="MAKE=${MAKE-make}" |
3329 fi | 3625 fi |
3330 | 3626 |
3331 | 3627 |
3332 echo $ac_n "checking for long file names""... $ac_c" 1>&6 | 3628 echo $ac_n "checking for long file names""... $ac_c" 1>&6 |
3333 echo "configure:3334: checking for long file names" >&5 | 3629 echo "configure:3630: checking for long file names" >&5 |
3334 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then | 3630 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then |
3335 echo $ac_n "(cached) $ac_c" 1>&6 | 3631 echo $ac_n "(cached) $ac_c" 1>&6 |
3336 else | 3632 else |
3337 ac_cv_sys_long_file_names=yes | 3633 ac_cv_sys_long_file_names=yes |
3338 # Test for long file names in all the places we know might matter: | 3634 # Test for long file names in all the places we know might matter: |
3379 # If we find X, set shell vars x_includes and x_libraries to the | 3675 # If we find X, set shell vars x_includes and x_libraries to the |
3380 # paths, otherwise set no_x=yes. | 3676 # paths, otherwise set no_x=yes. |
3381 # Uses ac_ vars as temps to allow command line to override cache and checks. | 3677 # Uses ac_ vars as temps to allow command line to override cache and checks. |
3382 # --without-x overrides everything else, but does not touch the cache. | 3678 # --without-x overrides everything else, but does not touch the cache. |
3383 echo $ac_n "checking for X""... $ac_c" 1>&6 | 3679 echo $ac_n "checking for X""... $ac_c" 1>&6 |
3384 echo "configure:3385: checking for X" >&5 | 3680 echo "configure:3681: checking for X" >&5 |
3385 | 3681 |
3386 # Check whether --with-x or --without-x was given. | 3682 # Check whether --with-x or --without-x was given. |
3387 if test "${with_x+set}" = set; then | 3683 if test "${with_x+set}" = set; then |
3388 withval="$with_x" | 3684 withval="$with_x" |
3389 : | 3685 : |
3441 # Guess where to find include files, by looking for this one X11 .h file. | 3737 # Guess where to find include files, by looking for this one X11 .h file. |
3442 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | 3738 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
3443 | 3739 |
3444 # First, try using that file with no special directory specified. | 3740 # First, try using that file with no special directory specified. |
3445 cat > conftest.$ac_ext <<EOF | 3741 cat > conftest.$ac_ext <<EOF |
3446 #line 3447 "configure" | 3742 #line 3743 "configure" |
3447 #include "confdefs.h" | 3743 #include "confdefs.h" |
3448 #include <$x_direct_test_include> | 3744 #include <$x_direct_test_include> |
3449 EOF | 3745 EOF |
3450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 3746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
3451 { (eval echo configure:3452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 3747 { (eval echo configure:3748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 3748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3453 if test -z "$ac_err"; then | 3749 if test -z "$ac_err"; then |
3454 rm -rf conftest* | 3750 rm -rf conftest* |
3455 # We can compile using X headers with no special include directory. | 3751 # We can compile using X headers with no special include directory. |
3456 ac_x_includes= | 3752 ac_x_includes= |
3515 # See if we find them without any special options. | 3811 # See if we find them without any special options. |
3516 # Don't add to $LIBS permanently. | 3812 # Don't add to $LIBS permanently. |
3517 ac_save_LIBS="$LIBS" | 3813 ac_save_LIBS="$LIBS" |
3518 LIBS="-l$x_direct_test_library $LIBS" | 3814 LIBS="-l$x_direct_test_library $LIBS" |
3519 cat > conftest.$ac_ext <<EOF | 3815 cat > conftest.$ac_ext <<EOF |
3520 #line 3521 "configure" | 3816 #line 3817 "configure" |
3521 #include "confdefs.h" | 3817 #include "confdefs.h" |
3522 | 3818 |
3523 int main() { | 3819 int main() { |
3524 ${x_direct_test_function}() | 3820 ${x_direct_test_function}() |
3525 ; return 0; } | 3821 ; return 0; } |
3526 EOF | 3822 EOF |
3527 if { (eval echo configure:3528: \"$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 |
3528 rm -rf conftest* | 3824 rm -rf conftest* |
3529 LIBS="$ac_save_LIBS" | 3825 LIBS="$ac_save_LIBS" |
3530 # We can link X programs with no special library path. | 3826 # We can link X programs with no special library path. |
3531 ac_x_libraries= | 3827 ac_x_libraries= |
3532 else | 3828 else |
3700 # Do the opsystem or machine files prohibit the use of the GNU malloc? | 3996 # Do the opsystem or machine files prohibit the use of the GNU malloc? |
3701 # Assume not, until told otherwise. | 3997 # Assume not, until told otherwise. |
3702 GNU_MALLOC=yes | 3998 GNU_MALLOC=yes |
3703 doug_lea_malloc=yes | 3999 doug_lea_malloc=yes |
3704 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 | 4000 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 |
3705 echo "configure:3706: checking for malloc_get_state" >&5 | 4001 echo "configure:4002: checking for malloc_get_state" >&5 |
3706 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then | 4002 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then |
3707 echo $ac_n "(cached) $ac_c" 1>&6 | 4003 echo $ac_n "(cached) $ac_c" 1>&6 |
3708 else | 4004 else |
3709 cat > conftest.$ac_ext <<EOF | 4005 cat > conftest.$ac_ext <<EOF |
3710 #line 3711 "configure" | 4006 #line 4007 "configure" |
3711 #include "confdefs.h" | 4007 #include "confdefs.h" |
3712 /* System header to define __stub macros and hopefully few prototypes, | 4008 /* System header to define __stub macros and hopefully few prototypes, |
3713 which can conflict with char malloc_get_state(); below. */ | 4009 which can conflict with char malloc_get_state(); below. */ |
3714 #include <assert.h> | 4010 #include <assert.h> |
3715 /* Override any gcc2 internal prototype to avoid an error. */ | 4011 /* Override any gcc2 internal prototype to avoid an error. */ |
3728 malloc_get_state(); | 4024 malloc_get_state(); |
3729 #endif | 4025 #endif |
3730 | 4026 |
3731 ; return 0; } | 4027 ; return 0; } |
3732 EOF | 4028 EOF |
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4029 if { (eval echo configure:4030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3734 rm -rf conftest* | 4030 rm -rf conftest* |
3735 eval "ac_cv_func_malloc_get_state=yes" | 4031 eval "ac_cv_func_malloc_get_state=yes" |
3736 else | 4032 else |
3737 echo "configure: failed program was:" >&5 | 4033 echo "configure: failed program was:" >&5 |
3738 cat conftest.$ac_ext >&5 | 4034 cat conftest.$ac_ext >&5 |
3749 echo "$ac_t""no" 1>&6 | 4045 echo "$ac_t""no" 1>&6 |
3750 doug_lea_malloc=no | 4046 doug_lea_malloc=no |
3751 fi | 4047 fi |
3752 | 4048 |
3753 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 | 4049 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 |
3754 echo "configure:3755: checking for malloc_set_state" >&5 | 4050 echo "configure:4051: checking for malloc_set_state" >&5 |
3755 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then | 4051 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then |
3756 echo $ac_n "(cached) $ac_c" 1>&6 | 4052 echo $ac_n "(cached) $ac_c" 1>&6 |
3757 else | 4053 else |
3758 cat > conftest.$ac_ext <<EOF | 4054 cat > conftest.$ac_ext <<EOF |
3759 #line 3760 "configure" | 4055 #line 4056 "configure" |
3760 #include "confdefs.h" | 4056 #include "confdefs.h" |
3761 /* System header to define __stub macros and hopefully few prototypes, | 4057 /* System header to define __stub macros and hopefully few prototypes, |
3762 which can conflict with char malloc_set_state(); below. */ | 4058 which can conflict with char malloc_set_state(); below. */ |
3763 #include <assert.h> | 4059 #include <assert.h> |
3764 /* Override any gcc2 internal prototype to avoid an error. */ | 4060 /* Override any gcc2 internal prototype to avoid an error. */ |
3777 malloc_set_state(); | 4073 malloc_set_state(); |
3778 #endif | 4074 #endif |
3779 | 4075 |
3780 ; return 0; } | 4076 ; return 0; } |
3781 EOF | 4077 EOF |
3782 if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4078 if { (eval echo configure:4079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3783 rm -rf conftest* | 4079 rm -rf conftest* |
3784 eval "ac_cv_func_malloc_set_state=yes" | 4080 eval "ac_cv_func_malloc_set_state=yes" |
3785 else | 4081 else |
3786 echo "configure: failed program was:" >&5 | 4082 echo "configure: failed program was:" >&5 |
3787 cat conftest.$ac_ext >&5 | 4083 cat conftest.$ac_ext >&5 |
3798 echo "$ac_t""no" 1>&6 | 4094 echo "$ac_t""no" 1>&6 |
3799 doug_lea_malloc=no | 4095 doug_lea_malloc=no |
3800 fi | 4096 fi |
3801 | 4097 |
3802 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 | 4098 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 |
3803 echo "configure:3804: checking whether __after_morecore_hook exists" >&5 | 4099 echo "configure:4100: checking whether __after_morecore_hook exists" >&5 |
3804 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then | 4100 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then |
3805 echo $ac_n "(cached) $ac_c" 1>&6 | 4101 echo $ac_n "(cached) $ac_c" 1>&6 |
3806 else | 4102 else |
3807 cat > conftest.$ac_ext <<EOF | 4103 cat > conftest.$ac_ext <<EOF |
3808 #line 3809 "configure" | 4104 #line 4105 "configure" |
3809 #include "confdefs.h" | 4105 #include "confdefs.h" |
3810 extern void (* __after_morecore_hook)(); | 4106 extern void (* __after_morecore_hook)(); |
3811 int main() { | 4107 int main() { |
3812 __after_morecore_hook = 0 | 4108 __after_morecore_hook = 0 |
3813 ; return 0; } | 4109 ; return 0; } |
3814 EOF | 4110 EOF |
3815 if { (eval echo configure:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4111 if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3816 rm -rf conftest* | 4112 rm -rf conftest* |
3817 emacs_cv_var___after_morecore_hook=yes | 4113 emacs_cv_var___after_morecore_hook=yes |
3818 else | 4114 else |
3819 echo "configure: failed program was:" >&5 | 4115 echo "configure: failed program was:" >&5 |
3820 cat conftest.$ac_ext >&5 | 4116 cat conftest.$ac_ext >&5 |
3849 fi | 4145 fi |
3850 | 4146 |
3851 LIBS="$libsrc_libs $LIBS" | 4147 LIBS="$libsrc_libs $LIBS" |
3852 | 4148 |
3853 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | 4149 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
3854 echo "configure:3855: checking for dnet_ntoa in -ldnet" >&5 | 4150 echo "configure:4151: checking for dnet_ntoa in -ldnet" >&5 |
3855 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | 4151 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
3856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3857 echo $ac_n "(cached) $ac_c" 1>&6 | 4153 echo $ac_n "(cached) $ac_c" 1>&6 |
3858 else | 4154 else |
3859 ac_save_LIBS="$LIBS" | 4155 ac_save_LIBS="$LIBS" |
3860 LIBS="-ldnet $LIBS" | 4156 LIBS="-ldnet $LIBS" |
3861 cat > conftest.$ac_ext <<EOF | 4157 cat > conftest.$ac_ext <<EOF |
3862 #line 3863 "configure" | 4158 #line 4159 "configure" |
3863 #include "confdefs.h" | 4159 #include "confdefs.h" |
3864 /* Override any gcc2 internal prototype to avoid an error. */ | 4160 /* Override any gcc2 internal prototype to avoid an error. */ |
3865 /* We use char because int might match the return type of a gcc2 | 4161 /* We use char because int might match the return type of a gcc2 |
3866 builtin and then its argument prototype would still apply. */ | 4162 builtin and then its argument prototype would still apply. */ |
3867 char dnet_ntoa(); | 4163 char dnet_ntoa(); |
3868 | 4164 |
3869 int main() { | 4165 int main() { |
3870 dnet_ntoa() | 4166 dnet_ntoa() |
3871 ; return 0; } | 4167 ; return 0; } |
3872 EOF | 4168 EOF |
3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4169 if { (eval echo configure:4170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3874 rm -rf conftest* | 4170 rm -rf conftest* |
3875 eval "ac_cv_lib_$ac_lib_var=yes" | 4171 eval "ac_cv_lib_$ac_lib_var=yes" |
3876 else | 4172 else |
3877 echo "configure: failed program was:" >&5 | 4173 echo "configure: failed program was:" >&5 |
3878 cat conftest.$ac_ext >&5 | 4174 cat conftest.$ac_ext >&5 |
3897 echo "$ac_t""no" 1>&6 | 4193 echo "$ac_t""no" 1>&6 |
3898 fi | 4194 fi |
3899 | 4195 |
3900 | 4196 |
3901 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 | 4197 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 |
3902 echo "configure:3903: checking for main in -lXbsd" >&5 | 4198 echo "configure:4199: checking for main in -lXbsd" >&5 |
3903 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` | 4199 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` |
3904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3905 echo $ac_n "(cached) $ac_c" 1>&6 | 4201 echo $ac_n "(cached) $ac_c" 1>&6 |
3906 else | 4202 else |
3907 ac_save_LIBS="$LIBS" | 4203 ac_save_LIBS="$LIBS" |
3908 LIBS="-lXbsd $LIBS" | 4204 LIBS="-lXbsd $LIBS" |
3909 cat > conftest.$ac_ext <<EOF | 4205 cat > conftest.$ac_ext <<EOF |
3910 #line 3911 "configure" | 4206 #line 4207 "configure" |
3911 #include "confdefs.h" | 4207 #include "confdefs.h" |
3912 | 4208 |
3913 int main() { | 4209 int main() { |
3914 main() | 4210 main() |
3915 ; return 0; } | 4211 ; return 0; } |
3916 EOF | 4212 EOF |
3917 if { (eval echo configure:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4213 if { (eval echo configure:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3918 rm -rf conftest* | 4214 rm -rf conftest* |
3919 eval "ac_cv_lib_$ac_lib_var=yes" | 4215 eval "ac_cv_lib_$ac_lib_var=yes" |
3920 else | 4216 else |
3921 echo "configure: failed program was:" >&5 | 4217 echo "configure: failed program was:" >&5 |
3922 cat conftest.$ac_ext >&5 | 4218 cat conftest.$ac_ext >&5 |
3934 echo "$ac_t""no" 1>&6 | 4230 echo "$ac_t""no" 1>&6 |
3935 fi | 4231 fi |
3936 | 4232 |
3937 | 4233 |
3938 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 | 4234 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 |
3939 echo "configure:3940: checking for cma_open in -lpthreads" >&5 | 4235 echo "configure:4236: checking for cma_open in -lpthreads" >&5 |
3940 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` | 4236 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` |
3941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3942 echo $ac_n "(cached) $ac_c" 1>&6 | 4238 echo $ac_n "(cached) $ac_c" 1>&6 |
3943 else | 4239 else |
3944 ac_save_LIBS="$LIBS" | 4240 ac_save_LIBS="$LIBS" |
3945 LIBS="-lpthreads $LIBS" | 4241 LIBS="-lpthreads $LIBS" |
3946 cat > conftest.$ac_ext <<EOF | 4242 cat > conftest.$ac_ext <<EOF |
3947 #line 3948 "configure" | 4243 #line 4244 "configure" |
3948 #include "confdefs.h" | 4244 #include "confdefs.h" |
3949 /* Override any gcc2 internal prototype to avoid an error. */ | 4245 /* Override any gcc2 internal prototype to avoid an error. */ |
3950 /* We use char because int might match the return type of a gcc2 | 4246 /* We use char because int might match the return type of a gcc2 |
3951 builtin and then its argument prototype would still apply. */ | 4247 builtin and then its argument prototype would still apply. */ |
3952 char cma_open(); | 4248 char cma_open(); |
3953 | 4249 |
3954 int main() { | 4250 int main() { |
3955 cma_open() | 4251 cma_open() |
3956 ; return 0; } | 4252 ; return 0; } |
3957 EOF | 4253 EOF |
3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3959 rm -rf conftest* | 4255 rm -rf conftest* |
3960 eval "ac_cv_lib_$ac_lib_var=yes" | 4256 eval "ac_cv_lib_$ac_lib_var=yes" |
3961 else | 4257 else |
3962 echo "configure: failed program was:" >&5 | 4258 echo "configure: failed program was:" >&5 |
3963 cat conftest.$ac_ext >&5 | 4259 cat conftest.$ac_ext >&5 |
3982 echo "$ac_t""no" 1>&6 | 4278 echo "$ac_t""no" 1>&6 |
3983 fi | 4279 fi |
3984 | 4280 |
3985 | 4281 |
3986 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 | 4282 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 |
3987 echo "configure:3988: checking for XFree86 in /usr/X386" >&5 | 4283 echo "configure:4284: checking for XFree86 in /usr/X386" >&5 |
3988 if test -d /usr/X386/include; then | 4284 if test -d /usr/X386/include; then |
3989 HAVE_XFREE386=yes | 4285 HAVE_XFREE386=yes |
3990 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | 4286 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} |
3991 else | 4287 else |
3992 HAVE_XFREE386=no | 4288 HAVE_XFREE386=no |
4014 export LD_RUN_PATH | 4310 export LD_RUN_PATH |
4015 fi | 4311 fi |
4016 | 4312 |
4017 if test "${opsys}" = "gnu-linux"; then | 4313 if test "${opsys}" = "gnu-linux"; then |
4018 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 | 4314 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 |
4019 echo "configure:4020: checking whether X on GNU/Linux needs -b to link" >&5 | 4315 echo "configure:4316: checking whether X on GNU/Linux needs -b to link" >&5 |
4020 cat > conftest.$ac_ext <<EOF | 4316 cat > conftest.$ac_ext <<EOF |
4021 #line 4022 "configure" | 4317 #line 4318 "configure" |
4022 #include "confdefs.h" | 4318 #include "confdefs.h" |
4023 | 4319 |
4024 int main() { | 4320 int main() { |
4025 XOpenDisplay ("foo"); | 4321 XOpenDisplay ("foo"); |
4026 ; return 0; } | 4322 ; return 0; } |
4027 EOF | 4323 EOF |
4028 if { (eval echo configure:4029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4324 if { (eval echo configure:4325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4029 rm -rf conftest* | 4325 rm -rf conftest* |
4030 xlinux_first_failure=no | 4326 xlinux_first_failure=no |
4031 else | 4327 else |
4032 echo "configure: failed program was:" >&5 | 4328 echo "configure: failed program was:" >&5 |
4033 cat conftest.$ac_ext >&5 | 4329 cat conftest.$ac_ext >&5 |
4043 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | 4339 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
4044 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | 4340 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
4045 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | 4341 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
4046 LIBS="$LIBS -b i486-linuxaout" | 4342 LIBS="$LIBS -b i486-linuxaout" |
4047 cat > conftest.$ac_ext <<EOF | 4343 cat > conftest.$ac_ext <<EOF |
4048 #line 4049 "configure" | 4344 #line 4345 "configure" |
4049 #include "confdefs.h" | 4345 #include "confdefs.h" |
4050 | 4346 |
4051 int main() { | 4347 int main() { |
4052 XOpenDisplay ("foo"); | 4348 XOpenDisplay ("foo"); |
4053 ; return 0; } | 4349 ; return 0; } |
4054 EOF | 4350 EOF |
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4351 if { (eval echo configure:4352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4056 rm -rf conftest* | 4352 rm -rf conftest* |
4057 xlinux_second_failure=no | 4353 xlinux_second_failure=no |
4058 else | 4354 else |
4059 echo "configure: failed program was:" >&5 | 4355 echo "configure: failed program was:" >&5 |
4060 cat conftest.$ac_ext >&5 | 4356 cat conftest.$ac_ext >&5 |
4080 | 4376 |
4081 for ac_func in XrmSetDatabase XScreenResourceString \ | 4377 for ac_func in XrmSetDatabase XScreenResourceString \ |
4082 XScreenNumberOfScreen XSetWMProtocols | 4378 XScreenNumberOfScreen XSetWMProtocols |
4083 do | 4379 do |
4084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 4380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4085 echo "configure:4086: checking for $ac_func" >&5 | 4381 echo "configure:4382: checking for $ac_func" >&5 |
4086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 4382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4087 echo $ac_n "(cached) $ac_c" 1>&6 | 4383 echo $ac_n "(cached) $ac_c" 1>&6 |
4088 else | 4384 else |
4089 cat > conftest.$ac_ext <<EOF | 4385 cat > conftest.$ac_ext <<EOF |
4090 #line 4091 "configure" | 4386 #line 4387 "configure" |
4091 #include "confdefs.h" | 4387 #include "confdefs.h" |
4092 /* System header to define __stub macros and hopefully few prototypes, | 4388 /* System header to define __stub macros and hopefully few prototypes, |
4093 which can conflict with char $ac_func(); below. */ | 4389 which can conflict with char $ac_func(); below. */ |
4094 #include <assert.h> | 4390 #include <assert.h> |
4095 /* Override any gcc2 internal prototype to avoid an error. */ | 4391 /* Override any gcc2 internal prototype to avoid an error. */ |
4108 $ac_func(); | 4404 $ac_func(); |
4109 #endif | 4405 #endif |
4110 | 4406 |
4111 ; return 0; } | 4407 ; return 0; } |
4112 EOF | 4408 EOF |
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4409 if { (eval echo configure:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4114 rm -rf conftest* | 4410 rm -rf conftest* |
4115 eval "ac_cv_func_$ac_func=yes" | 4411 eval "ac_cv_func_$ac_func=yes" |
4116 else | 4412 else |
4117 echo "configure: failed program was:" >&5 | 4413 echo "configure: failed program was:" >&5 |
4118 cat conftest.$ac_ext >&5 | 4414 cat conftest.$ac_ext >&5 |
4136 | 4432 |
4137 fi | 4433 fi |
4138 | 4434 |
4139 if test "${window_system}" = "x11"; then | 4435 if test "${window_system}" = "x11"; then |
4140 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 4436 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 |
4141 echo "configure:4142: checking X11 version 6" >&5 | 4437 echo "configure:4438: checking X11 version 6" >&5 |
4142 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 4438 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4143 echo $ac_n "(cached) $ac_c" 1>&6 | 4439 echo $ac_n "(cached) $ac_c" 1>&6 |
4144 else | 4440 else |
4145 cat > conftest.$ac_ext <<EOF | 4441 cat > conftest.$ac_ext <<EOF |
4146 #line 4147 "configure" | 4442 #line 4443 "configure" |
4147 #include "confdefs.h" | 4443 #include "confdefs.h" |
4148 #include <X11/Xlib.h> | 4444 #include <X11/Xlib.h> |
4149 int main() { | 4445 int main() { |
4150 #if XlibSpecificationRelease < 6 | 4446 #if XlibSpecificationRelease < 6 |
4151 fail; | 4447 fail; |
4152 #endif | 4448 #endif |
4153 | 4449 |
4154 ; return 0; } | 4450 ; return 0; } |
4155 EOF | 4451 EOF |
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4452 if { (eval echo configure:4453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4157 rm -rf conftest* | 4453 rm -rf conftest* |
4158 emacs_cv_x11_version_6=yes | 4454 emacs_cv_x11_version_6=yes |
4159 else | 4455 else |
4160 echo "configure: failed program was:" >&5 | 4456 echo "configure: failed program was:" >&5 |
4161 cat conftest.$ac_ext >&5 | 4457 cat conftest.$ac_ext >&5 |
4176 fi | 4472 fi |
4177 fi | 4473 fi |
4178 | 4474 |
4179 if test "${window_system}" = "x11"; then | 4475 if test "${window_system}" = "x11"; then |
4180 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 4476 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 |
4181 echo "configure:4182: checking X11 version 5" >&5 | 4477 echo "configure:4478: checking X11 version 5" >&5 |
4182 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 4478 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4183 echo $ac_n "(cached) $ac_c" 1>&6 | 4479 echo $ac_n "(cached) $ac_c" 1>&6 |
4184 else | 4480 else |
4185 cat > conftest.$ac_ext <<EOF | 4481 cat > conftest.$ac_ext <<EOF |
4186 #line 4187 "configure" | 4482 #line 4483 "configure" |
4187 #include "confdefs.h" | 4483 #include "confdefs.h" |
4188 #include <X11/Xlib.h> | 4484 #include <X11/Xlib.h> |
4189 int main() { | 4485 int main() { |
4190 #if XlibSpecificationRelease < 5 | 4486 #if XlibSpecificationRelease < 5 |
4191 fail; | 4487 fail; |
4192 #endif | 4488 #endif |
4193 | 4489 |
4194 ; return 0; } | 4490 ; return 0; } |
4195 EOF | 4491 EOF |
4196 if { (eval echo configure:4197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4492 if { (eval echo configure:4493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4197 rm -rf conftest* | 4493 rm -rf conftest* |
4198 emacs_cv_x11_version_5=yes | 4494 emacs_cv_x11_version_5=yes |
4199 else | 4495 else |
4200 echo "configure: failed program was:" >&5 | 4496 echo "configure: failed program was:" >&5 |
4201 cat conftest.$ac_ext >&5 | 4497 cat conftest.$ac_ext >&5 |
4219 fi | 4515 fi |
4220 | 4516 |
4221 if test x"${USE_X_TOOLKIT}" = xmaybe; then | 4517 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
4222 if test x"${HAVE_X11R5}" = xyes; then | 4518 if test x"${HAVE_X11R5}" = xyes; then |
4223 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 4519 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 |
4224 echo "configure:4225: checking X11 version 5 with Xaw" >&5 | 4520 echo "configure:4521: checking X11 version 5 with Xaw" >&5 |
4225 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 4521 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4226 echo $ac_n "(cached) $ac_c" 1>&6 | 4522 echo $ac_n "(cached) $ac_c" 1>&6 |
4227 else | 4523 else |
4228 cat > conftest.$ac_ext <<EOF | 4524 cat > conftest.$ac_ext <<EOF |
4229 #line 4230 "configure" | 4525 #line 4526 "configure" |
4230 #include "confdefs.h" | 4526 #include "confdefs.h" |
4231 | 4527 |
4232 #include <X11/Intrinsic.h> | 4528 #include <X11/Intrinsic.h> |
4233 #include <X11/Xaw/Simple.h> | 4529 #include <X11/Xaw/Simple.h> |
4234 int main() { | 4530 int main() { |
4235 | 4531 |
4236 ; return 0; } | 4532 ; return 0; } |
4237 EOF | 4533 EOF |
4238 if { (eval echo configure:4239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4239 rm -rf conftest* | 4535 rm -rf conftest* |
4240 emacs_cv_x11_version_5_with_xaw=yes | 4536 emacs_cv_x11_version_5_with_xaw=yes |
4241 else | 4537 else |
4242 echo "configure: failed program was:" >&5 | 4538 echo "configure: failed program was:" >&5 |
4243 cat conftest.$ac_ext >&5 | 4539 cat conftest.$ac_ext >&5 |
4261 | 4557 |
4262 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 4558 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
4263 | 4559 |
4264 if test "${USE_X_TOOLKIT}" != "none"; then | 4560 if test "${USE_X_TOOLKIT}" != "none"; then |
4265 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 4561 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 |
4266 echo "configure:4267: checking X11 toolkit version" >&5 | 4562 echo "configure:4563: checking X11 toolkit version" >&5 |
4267 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 4563 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4268 echo $ac_n "(cached) $ac_c" 1>&6 | 4564 echo $ac_n "(cached) $ac_c" 1>&6 |
4269 else | 4565 else |
4270 cat > conftest.$ac_ext <<EOF | 4566 cat > conftest.$ac_ext <<EOF |
4271 #line 4272 "configure" | 4567 #line 4568 "configure" |
4272 #include "confdefs.h" | 4568 #include "confdefs.h" |
4273 #include <X11/Intrinsic.h> | 4569 #include <X11/Intrinsic.h> |
4274 int main() { | 4570 int main() { |
4275 #if XtSpecificationRelease < 6 | 4571 #if XtSpecificationRelease < 6 |
4276 fail; | 4572 fail; |
4277 #endif | 4573 #endif |
4278 | 4574 |
4279 ; return 0; } | 4575 ; return 0; } |
4280 EOF | 4576 EOF |
4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4282 rm -rf conftest* | 4578 rm -rf conftest* |
4283 emacs_cv_x11_toolkit_version_6=yes | 4579 emacs_cv_x11_toolkit_version_6=yes |
4284 else | 4580 else |
4285 echo "configure: failed program was:" >&5 | 4581 echo "configure: failed program was:" >&5 |
4286 cat conftest.$ac_ext >&5 | 4582 cat conftest.$ac_ext >&5 |
4306 LIBS="-lXt -lSM -lICE $LIBS" | 4602 LIBS="-lXt -lSM -lICE $LIBS" |
4307 else | 4603 else |
4308 LIBS="-lXt $LIBS" | 4604 LIBS="-lXt $LIBS" |
4309 fi | 4605 fi |
4310 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 4606 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
4311 echo "configure:4312: checking for XmuConvertStandardSelection in -lXmu" >&5 | 4607 echo "configure:4608: checking for XmuConvertStandardSelection in -lXmu" >&5 |
4312 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 4608 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4609 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4314 echo $ac_n "(cached) $ac_c" 1>&6 | 4610 echo $ac_n "(cached) $ac_c" 1>&6 |
4315 else | 4611 else |
4316 ac_save_LIBS="$LIBS" | 4612 ac_save_LIBS="$LIBS" |
4317 LIBS="-lXmu $LIBS" | 4613 LIBS="-lXmu $LIBS" |
4318 cat > conftest.$ac_ext <<EOF | 4614 cat > conftest.$ac_ext <<EOF |
4319 #line 4320 "configure" | 4615 #line 4616 "configure" |
4320 #include "confdefs.h" | 4616 #include "confdefs.h" |
4321 /* Override any gcc2 internal prototype to avoid an error. */ | 4617 /* Override any gcc2 internal prototype to avoid an error. */ |
4322 /* We use char because int might match the return type of a gcc2 | 4618 /* We use char because int might match the return type of a gcc2 |
4323 builtin and then its argument prototype would still apply. */ | 4619 builtin and then its argument prototype would still apply. */ |
4324 char XmuConvertStandardSelection(); | 4620 char XmuConvertStandardSelection(); |
4325 | 4621 |
4326 int main() { | 4622 int main() { |
4327 XmuConvertStandardSelection() | 4623 XmuConvertStandardSelection() |
4328 ; return 0; } | 4624 ; return 0; } |
4329 EOF | 4625 EOF |
4330 if { (eval echo configure:4331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4331 rm -rf conftest* | 4627 rm -rf conftest* |
4332 eval "ac_cv_lib_$ac_lib_var=yes" | 4628 eval "ac_cv_lib_$ac_lib_var=yes" |
4333 else | 4629 else |
4334 echo "configure: failed program was:" >&5 | 4630 echo "configure: failed program was:" >&5 |
4335 cat conftest.$ac_ext >&5 | 4631 cat conftest.$ac_ext >&5 |
4357 LIBS="$OLDLIBS" | 4653 LIBS="$OLDLIBS" |
4358 fi | 4654 fi |
4359 | 4655 |
4360 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 4656 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
4361 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 4657 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 |
4362 echo "configure:4363: checking for Motif version 2.1" >&5 | 4658 echo "configure:4659: checking for Motif version 2.1" >&5 |
4363 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 4659 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4364 echo $ac_n "(cached) $ac_c" 1>&6 | 4660 echo $ac_n "(cached) $ac_c" 1>&6 |
4365 else | 4661 else |
4366 cat > conftest.$ac_ext <<EOF | 4662 cat > conftest.$ac_ext <<EOF |
4367 #line 4368 "configure" | 4663 #line 4664 "configure" |
4368 #include "confdefs.h" | 4664 #include "confdefs.h" |
4369 #include <Xm/Xm.h> | 4665 #include <Xm/Xm.h> |
4370 int main() { | 4666 int main() { |
4371 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 4667 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
4372 int x = 5; | 4668 int x = 5; |
4373 #else | 4669 #else |
4374 Motif version prior to 2.1. | 4670 Motif version prior to 2.1. |
4375 #endif | 4671 #endif |
4376 ; return 0; } | 4672 ; return 0; } |
4377 EOF | 4673 EOF |
4378 if { (eval echo configure:4379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4674 if { (eval echo configure:4675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4379 rm -rf conftest* | 4675 rm -rf conftest* |
4380 emacs_cv_motif_version_2_1=yes | 4676 emacs_cv_motif_version_2_1=yes |
4381 else | 4677 else |
4382 echo "configure: failed program was:" >&5 | 4678 echo "configure: failed program was:" >&5 |
4383 cat conftest.$ac_ext >&5 | 4679 cat conftest.$ac_ext >&5 |
4393 cat >> confdefs.h <<\EOF | 4689 cat >> confdefs.h <<\EOF |
4394 #define HAVE_MOTIF_2_1 1 | 4690 #define HAVE_MOTIF_2_1 1 |
4395 EOF | 4691 EOF |
4396 | 4692 |
4397 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 4693 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 |
4398 echo "configure:4399: checking for XpCreateContext in -lXp" >&5 | 4694 echo "configure:4695: checking for XpCreateContext in -lXp" >&5 |
4399 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4695 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4401 echo $ac_n "(cached) $ac_c" 1>&6 | 4697 echo $ac_n "(cached) $ac_c" 1>&6 |
4402 else | 4698 else |
4403 ac_save_LIBS="$LIBS" | 4699 ac_save_LIBS="$LIBS" |
4404 LIBS="-lXp -lXext $LIBS" | 4700 LIBS="-lXp -lXext $LIBS" |
4405 cat > conftest.$ac_ext <<EOF | 4701 cat > conftest.$ac_ext <<EOF |
4406 #line 4407 "configure" | 4702 #line 4703 "configure" |
4407 #include "confdefs.h" | 4703 #include "confdefs.h" |
4408 /* Override any gcc2 internal prototype to avoid an error. */ | 4704 /* Override any gcc2 internal prototype to avoid an error. */ |
4409 /* We use char because int might match the return type of a gcc2 | 4705 /* We use char because int might match the return type of a gcc2 |
4410 builtin and then its argument prototype would still apply. */ | 4706 builtin and then its argument prototype would still apply. */ |
4411 char XpCreateContext(); | 4707 char XpCreateContext(); |
4412 | 4708 |
4413 int main() { | 4709 int main() { |
4414 XpCreateContext() | 4710 XpCreateContext() |
4415 ; return 0; } | 4711 ; return 0; } |
4416 EOF | 4712 EOF |
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4713 if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4418 rm -rf conftest* | 4714 rm -rf conftest* |
4419 eval "ac_cv_lib_$ac_lib_var=yes" | 4715 eval "ac_cv_lib_$ac_lib_var=yes" |
4420 else | 4716 else |
4421 echo "configure: failed program was:" >&5 | 4717 echo "configure: failed program was:" >&5 |
4422 cat conftest.$ac_ext >&5 | 4718 cat conftest.$ac_ext >&5 |
4449 if test "${USE_X_TOOLKIT}" != "none"; then | 4745 if test "${USE_X_TOOLKIT}" != "none"; then |
4450 old_c_flags="${CFLAGS}" | 4746 old_c_flags="${CFLAGS}" |
4451 CFLAGS="${LD_SWITCH_X_SITE}" | 4747 CFLAGS="${LD_SWITCH_X_SITE}" |
4452 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 4748 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4453 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 4749 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4454 echo "configure:4455: checking for X11/Xaw3d/Scrollbar.h" >&5 | 4750 echo "configure:4751: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4751 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4456 echo $ac_n "(cached) $ac_c" 1>&6 | 4752 echo $ac_n "(cached) $ac_c" 1>&6 |
4457 else | 4753 else |
4458 cat > conftest.$ac_ext <<EOF | 4754 cat > conftest.$ac_ext <<EOF |
4459 #line 4460 "configure" | 4755 #line 4756 "configure" |
4460 #include "confdefs.h" | 4756 #include "confdefs.h" |
4461 #include <X11/Xaw3d/Scrollbar.h> | 4757 #include <X11/Xaw3d/Scrollbar.h> |
4462 EOF | 4758 EOF |
4463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4464 { (eval echo configure:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4760 { (eval echo configure:4761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4466 if test -z "$ac_err"; then | 4762 if test -z "$ac_err"; then |
4467 rm -rf conftest* | 4763 rm -rf conftest* |
4468 eval "ac_cv_header_$ac_safe=yes" | 4764 eval "ac_cv_header_$ac_safe=yes" |
4469 else | 4765 else |
4476 rm -f conftest* | 4772 rm -f conftest* |
4477 fi | 4773 fi |
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4479 echo "$ac_t""yes" 1>&6 | 4775 echo "$ac_t""yes" 1>&6 |
4480 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 4776 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
4481 echo "configure:4482: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 4777 echo "configure:4778: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
4482 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 4778 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4484 echo $ac_n "(cached) $ac_c" 1>&6 | 4780 echo $ac_n "(cached) $ac_c" 1>&6 |
4485 else | 4781 else |
4486 ac_save_LIBS="$LIBS" | 4782 ac_save_LIBS="$LIBS" |
4487 LIBS="-lXaw3d -lX11 $LIBS" | 4783 LIBS="-lXaw3d -lX11 $LIBS" |
4488 cat > conftest.$ac_ext <<EOF | 4784 cat > conftest.$ac_ext <<EOF |
4489 #line 4490 "configure" | 4785 #line 4786 "configure" |
4490 #include "confdefs.h" | 4786 #include "confdefs.h" |
4491 /* Override any gcc2 internal prototype to avoid an error. */ | 4787 /* Override any gcc2 internal prototype to avoid an error. */ |
4492 /* We use char because int might match the return type of a gcc2 | 4788 /* We use char because int might match the return type of a gcc2 |
4493 builtin and then its argument prototype would still apply. */ | 4789 builtin and then its argument prototype would still apply. */ |
4494 char XawScrollbarSetThumb(); | 4790 char XawScrollbarSetThumb(); |
4495 | 4791 |
4496 int main() { | 4792 int main() { |
4497 XawScrollbarSetThumb() | 4793 XawScrollbarSetThumb() |
4498 ; return 0; } | 4794 ; return 0; } |
4499 EOF | 4795 EOF |
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4796 if { (eval echo configure:4797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4501 rm -rf conftest* | 4797 rm -rf conftest* |
4502 eval "ac_cv_lib_$ac_lib_var=yes" | 4798 eval "ac_cv_lib_$ac_lib_var=yes" |
4503 else | 4799 else |
4504 echo "configure: failed program was:" >&5 | 4800 echo "configure: failed program was:" >&5 |
4505 cat conftest.$ac_ext >&5 | 4801 cat conftest.$ac_ext >&5 |
4567 if test "${with_xpm}" != "no"; then | 4863 if test "${with_xpm}" != "no"; then |
4568 old_c_flags="${CFLAGS}" | 4864 old_c_flags="${CFLAGS}" |
4569 CFLAGS="${LD_SWITCH_X_SITE}" | 4865 CFLAGS="${LD_SWITCH_X_SITE}" |
4570 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 4866 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
4571 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 4867 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
4572 echo "configure:4573: checking for X11/xpm.h" >&5 | 4868 echo "configure:4869: checking for X11/xpm.h" >&5 |
4573 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4869 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4574 echo $ac_n "(cached) $ac_c" 1>&6 | 4870 echo $ac_n "(cached) $ac_c" 1>&6 |
4575 else | 4871 else |
4576 cat > conftest.$ac_ext <<EOF | 4872 cat > conftest.$ac_ext <<EOF |
4577 #line 4578 "configure" | 4873 #line 4874 "configure" |
4578 #include "confdefs.h" | 4874 #include "confdefs.h" |
4579 #include <X11/xpm.h> | 4875 #include <X11/xpm.h> |
4580 EOF | 4876 EOF |
4581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4582 { (eval echo configure:4583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4878 { (eval echo configure:4879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4584 if test -z "$ac_err"; then | 4880 if test -z "$ac_err"; then |
4585 rm -rf conftest* | 4881 rm -rf conftest* |
4586 eval "ac_cv_header_$ac_safe=yes" | 4882 eval "ac_cv_header_$ac_safe=yes" |
4587 else | 4883 else |
4594 rm -f conftest* | 4890 rm -f conftest* |
4595 fi | 4891 fi |
4596 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4597 echo "$ac_t""yes" 1>&6 | 4893 echo "$ac_t""yes" 1>&6 |
4598 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 4894 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
4599 echo "configure:4600: checking for XpmReadFileToPixmap in -lXpm" >&5 | 4895 echo "configure:4896: checking for XpmReadFileToPixmap in -lXpm" >&5 |
4600 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 4896 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
4601 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4602 echo $ac_n "(cached) $ac_c" 1>&6 | 4898 echo $ac_n "(cached) $ac_c" 1>&6 |
4603 else | 4899 else |
4604 ac_save_LIBS="$LIBS" | 4900 ac_save_LIBS="$LIBS" |
4605 LIBS="-lXpm -lX11 $LIBS" | 4901 LIBS="-lXpm -lX11 $LIBS" |
4606 cat > conftest.$ac_ext <<EOF | 4902 cat > conftest.$ac_ext <<EOF |
4607 #line 4608 "configure" | 4903 #line 4904 "configure" |
4608 #include "confdefs.h" | 4904 #include "confdefs.h" |
4609 /* Override any gcc2 internal prototype to avoid an error. */ | 4905 /* Override any gcc2 internal prototype to avoid an error. */ |
4610 /* We use char because int might match the return type of a gcc2 | 4906 /* We use char because int might match the return type of a gcc2 |
4611 builtin and then its argument prototype would still apply. */ | 4907 builtin and then its argument prototype would still apply. */ |
4612 char XpmReadFileToPixmap(); | 4908 char XpmReadFileToPixmap(); |
4613 | 4909 |
4614 int main() { | 4910 int main() { |
4615 XpmReadFileToPixmap() | 4911 XpmReadFileToPixmap() |
4616 ; return 0; } | 4912 ; return 0; } |
4617 EOF | 4913 EOF |
4618 if { (eval echo configure:4619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4914 if { (eval echo configure:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4619 rm -rf conftest* | 4915 rm -rf conftest* |
4620 eval "ac_cv_lib_$ac_lib_var=yes" | 4916 eval "ac_cv_lib_$ac_lib_var=yes" |
4621 else | 4917 else |
4622 echo "configure: failed program was:" >&5 | 4918 echo "configure: failed program was:" >&5 |
4623 cat conftest.$ac_ext >&5 | 4919 cat conftest.$ac_ext >&5 |
4639 echo "$ac_t""no" 1>&6 | 4935 echo "$ac_t""no" 1>&6 |
4640 fi | 4936 fi |
4641 | 4937 |
4642 if test "${HAVE_XPM}" = "yes"; then | 4938 if test "${HAVE_XPM}" = "yes"; then |
4643 cat > conftest.$ac_ext <<EOF | 4939 cat > conftest.$ac_ext <<EOF |
4644 #line 4645 "configure" | 4940 #line 4941 "configure" |
4645 #include "confdefs.h" | 4941 #include "confdefs.h" |
4646 #include "X11/xpm.h" | 4942 #include "X11/xpm.h" |
4647 #ifndef XpmReturnAllocPixels | 4943 #ifndef XpmReturnAllocPixels |
4648 no_return_alloc_pixels | 4944 no_return_alloc_pixels |
4649 #endif | 4945 #endif |
4677 if test "${with_jpeg}" != "no"; then | 4973 if test "${with_jpeg}" != "no"; then |
4678 old_c_flags="${CFLAGS}" | 4974 old_c_flags="${CFLAGS}" |
4679 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 4975 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4680 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 4976 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
4681 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 4977 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
4682 echo "configure:4683: checking for jerror.h" >&5 | 4978 echo "configure:4979: checking for jerror.h" >&5 |
4683 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4684 echo $ac_n "(cached) $ac_c" 1>&6 | 4980 echo $ac_n "(cached) $ac_c" 1>&6 |
4685 else | 4981 else |
4686 cat > conftest.$ac_ext <<EOF | 4982 cat > conftest.$ac_ext <<EOF |
4687 #line 4688 "configure" | 4983 #line 4984 "configure" |
4688 #include "confdefs.h" | 4984 #include "confdefs.h" |
4689 #include <jerror.h> | 4985 #include <jerror.h> |
4690 EOF | 4986 EOF |
4691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4692 { (eval echo configure:4693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4988 { (eval echo configure:4989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4694 if test -z "$ac_err"; then | 4990 if test -z "$ac_err"; then |
4695 rm -rf conftest* | 4991 rm -rf conftest* |
4696 eval "ac_cv_header_$ac_safe=yes" | 4992 eval "ac_cv_header_$ac_safe=yes" |
4697 else | 4993 else |
4704 rm -f conftest* | 5000 rm -f conftest* |
4705 fi | 5001 fi |
4706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4707 echo "$ac_t""yes" 1>&6 | 5003 echo "$ac_t""yes" 1>&6 |
4708 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 5004 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 |
4709 echo "configure:4710: checking for jpeg_destroy_compress in -ljpeg" >&5 | 5005 echo "configure:5006: checking for jpeg_destroy_compress in -ljpeg" >&5 |
4710 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 5006 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
4711 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5007 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4712 echo $ac_n "(cached) $ac_c" 1>&6 | 5008 echo $ac_n "(cached) $ac_c" 1>&6 |
4713 else | 5009 else |
4714 ac_save_LIBS="$LIBS" | 5010 ac_save_LIBS="$LIBS" |
4715 LIBS="-ljpeg -lX11 $LIBS" | 5011 LIBS="-ljpeg -lX11 $LIBS" |
4716 cat > conftest.$ac_ext <<EOF | 5012 cat > conftest.$ac_ext <<EOF |
4717 #line 4718 "configure" | 5013 #line 5014 "configure" |
4718 #include "confdefs.h" | 5014 #include "confdefs.h" |
4719 /* Override any gcc2 internal prototype to avoid an error. */ | 5015 /* Override any gcc2 internal prototype to avoid an error. */ |
4720 /* We use char because int might match the return type of a gcc2 | 5016 /* We use char because int might match the return type of a gcc2 |
4721 builtin and then its argument prototype would still apply. */ | 5017 builtin and then its argument prototype would still apply. */ |
4722 char jpeg_destroy_compress(); | 5018 char jpeg_destroy_compress(); |
4723 | 5019 |
4724 int main() { | 5020 int main() { |
4725 jpeg_destroy_compress() | 5021 jpeg_destroy_compress() |
4726 ; return 0; } | 5022 ; return 0; } |
4727 EOF | 5023 EOF |
4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5024 if { (eval echo configure:5025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4729 rm -rf conftest* | 5025 rm -rf conftest* |
4730 eval "ac_cv_lib_$ac_lib_var=yes" | 5026 eval "ac_cv_lib_$ac_lib_var=yes" |
4731 else | 5027 else |
4732 echo "configure: failed program was:" >&5 | 5028 echo "configure: failed program was:" >&5 |
4733 cat conftest.$ac_ext >&5 | 5029 cat conftest.$ac_ext >&5 |
4766 if test "${with_png}" != "no"; then | 5062 if test "${with_png}" != "no"; then |
4767 old_c_flags="${CFLAGS}" | 5063 old_c_flags="${CFLAGS}" |
4768 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5064 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4769 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 5065 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
4770 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 5066 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
4771 echo "configure:4772: checking for png.h" >&5 | 5067 echo "configure:5068: checking for png.h" >&5 |
4772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5068 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4773 echo $ac_n "(cached) $ac_c" 1>&6 | 5069 echo $ac_n "(cached) $ac_c" 1>&6 |
4774 else | 5070 else |
4775 cat > conftest.$ac_ext <<EOF | 5071 cat > conftest.$ac_ext <<EOF |
4776 #line 4777 "configure" | 5072 #line 5073 "configure" |
4777 #include "confdefs.h" | 5073 #include "confdefs.h" |
4778 #include <png.h> | 5074 #include <png.h> |
4779 EOF | 5075 EOF |
4780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4781 { (eval echo configure:4782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5077 { (eval echo configure:5078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4783 if test -z "$ac_err"; then | 5079 if test -z "$ac_err"; then |
4784 rm -rf conftest* | 5080 rm -rf conftest* |
4785 eval "ac_cv_header_$ac_safe=yes" | 5081 eval "ac_cv_header_$ac_safe=yes" |
4786 else | 5082 else |
4793 rm -f conftest* | 5089 rm -f conftest* |
4794 fi | 5090 fi |
4795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5091 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4796 echo "$ac_t""yes" 1>&6 | 5092 echo "$ac_t""yes" 1>&6 |
4797 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 | 5093 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 |
4798 echo "configure:4799: checking for png_set_expand in -lpng" >&5 | 5094 echo "configure:5095: checking for png_set_expand in -lpng" >&5 |
4799 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` | 5095 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` |
4800 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4801 echo $ac_n "(cached) $ac_c" 1>&6 | 5097 echo $ac_n "(cached) $ac_c" 1>&6 |
4802 else | 5098 else |
4803 ac_save_LIBS="$LIBS" | 5099 ac_save_LIBS="$LIBS" |
4804 LIBS="-lpng -lX11 -lz -lm $LIBS" | 5100 LIBS="-lpng -lX11 -lz -lm $LIBS" |
4805 cat > conftest.$ac_ext <<EOF | 5101 cat > conftest.$ac_ext <<EOF |
4806 #line 4807 "configure" | 5102 #line 5103 "configure" |
4807 #include "confdefs.h" | 5103 #include "confdefs.h" |
4808 /* Override any gcc2 internal prototype to avoid an error. */ | 5104 /* Override any gcc2 internal prototype to avoid an error. */ |
4809 /* We use char because int might match the return type of a gcc2 | 5105 /* We use char because int might match the return type of a gcc2 |
4810 builtin and then its argument prototype would still apply. */ | 5106 builtin and then its argument prototype would still apply. */ |
4811 char png_set_expand(); | 5107 char png_set_expand(); |
4812 | 5108 |
4813 int main() { | 5109 int main() { |
4814 png_set_expand() | 5110 png_set_expand() |
4815 ; return 0; } | 5111 ; return 0; } |
4816 EOF | 5112 EOF |
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5113 if { (eval echo configure:5114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4818 rm -rf conftest* | 5114 rm -rf conftest* |
4819 eval "ac_cv_lib_$ac_lib_var=yes" | 5115 eval "ac_cv_lib_$ac_lib_var=yes" |
4820 else | 5116 else |
4821 echo "configure: failed program was:" >&5 | 5117 echo "configure: failed program was:" >&5 |
4822 cat conftest.$ac_ext >&5 | 5118 cat conftest.$ac_ext >&5 |
4855 if test "${with_tiff}" != "no"; then | 5151 if test "${with_tiff}" != "no"; then |
4856 old_c_flags="${CFLAGS}" | 5152 old_c_flags="${CFLAGS}" |
4857 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5153 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4858 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 5154 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
4859 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 5155 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
4860 echo "configure:4861: checking for tiffio.h" >&5 | 5156 echo "configure:5157: checking for tiffio.h" >&5 |
4861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5157 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4862 echo $ac_n "(cached) $ac_c" 1>&6 | 5158 echo $ac_n "(cached) $ac_c" 1>&6 |
4863 else | 5159 else |
4864 cat > conftest.$ac_ext <<EOF | 5160 cat > conftest.$ac_ext <<EOF |
4865 #line 4866 "configure" | 5161 #line 5162 "configure" |
4866 #include "confdefs.h" | 5162 #include "confdefs.h" |
4867 #include <tiffio.h> | 5163 #include <tiffio.h> |
4868 EOF | 5164 EOF |
4869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4870 { (eval echo configure:4871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5166 { (eval echo configure:5167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4872 if test -z "$ac_err"; then | 5168 if test -z "$ac_err"; then |
4873 rm -rf conftest* | 5169 rm -rf conftest* |
4874 eval "ac_cv_header_$ac_safe=yes" | 5170 eval "ac_cv_header_$ac_safe=yes" |
4875 else | 5171 else |
4885 echo "$ac_t""yes" 1>&6 | 5181 echo "$ac_t""yes" 1>&6 |
4886 tifflibs="-lX11 -lz -lm" | 5182 tifflibs="-lX11 -lz -lm" |
4887 # At least one tiff package requires the jpeg library. | 5183 # At least one tiff package requires the jpeg library. |
4888 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 5184 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
4889 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 5185 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
4890 echo "configure:4891: checking for TIFFGetVersion in -ltiff" >&5 | 5186 echo "configure:5187: checking for TIFFGetVersion in -ltiff" >&5 |
4891 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 5187 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
4892 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4893 echo $ac_n "(cached) $ac_c" 1>&6 | 5189 echo $ac_n "(cached) $ac_c" 1>&6 |
4894 else | 5190 else |
4895 ac_save_LIBS="$LIBS" | 5191 ac_save_LIBS="$LIBS" |
4896 LIBS="-ltiff $tifflibs $LIBS" | 5192 LIBS="-ltiff $tifflibs $LIBS" |
4897 cat > conftest.$ac_ext <<EOF | 5193 cat > conftest.$ac_ext <<EOF |
4898 #line 4899 "configure" | 5194 #line 5195 "configure" |
4899 #include "confdefs.h" | 5195 #include "confdefs.h" |
4900 /* Override any gcc2 internal prototype to avoid an error. */ | 5196 /* Override any gcc2 internal prototype to avoid an error. */ |
4901 /* We use char because int might match the return type of a gcc2 | 5197 /* We use char because int might match the return type of a gcc2 |
4902 builtin and then its argument prototype would still apply. */ | 5198 builtin and then its argument prototype would still apply. */ |
4903 char TIFFGetVersion(); | 5199 char TIFFGetVersion(); |
4904 | 5200 |
4905 int main() { | 5201 int main() { |
4906 TIFFGetVersion() | 5202 TIFFGetVersion() |
4907 ; return 0; } | 5203 ; return 0; } |
4908 EOF | 5204 EOF |
4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4910 rm -rf conftest* | 5206 rm -rf conftest* |
4911 eval "ac_cv_lib_$ac_lib_var=yes" | 5207 eval "ac_cv_lib_$ac_lib_var=yes" |
4912 else | 5208 else |
4913 echo "configure: failed program was:" >&5 | 5209 echo "configure: failed program was:" >&5 |
4914 cat conftest.$ac_ext >&5 | 5210 cat conftest.$ac_ext >&5 |
4947 if test "${with_gif}" != "no"; then | 5243 if test "${with_gif}" != "no"; then |
4948 old_c_flags="${CFLAGS}" | 5244 old_c_flags="${CFLAGS}" |
4949 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5245 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
4950 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 5246 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
4951 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 5247 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
4952 echo "configure:4953: checking for gif_lib.h" >&5 | 5248 echo "configure:5249: checking for gif_lib.h" >&5 |
4953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5249 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4954 echo $ac_n "(cached) $ac_c" 1>&6 | 5250 echo $ac_n "(cached) $ac_c" 1>&6 |
4955 else | 5251 else |
4956 cat > conftest.$ac_ext <<EOF | 5252 cat > conftest.$ac_ext <<EOF |
4957 #line 4958 "configure" | 5253 #line 5254 "configure" |
4958 #include "confdefs.h" | 5254 #include "confdefs.h" |
4959 #include <gif_lib.h> | 5255 #include <gif_lib.h> |
4960 EOF | 5256 EOF |
4961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4962 { (eval echo configure:4963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5258 { (eval echo configure:5259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4964 if test -z "$ac_err"; then | 5260 if test -z "$ac_err"; then |
4965 rm -rf conftest* | 5261 rm -rf conftest* |
4966 eval "ac_cv_header_$ac_safe=yes" | 5262 eval "ac_cv_header_$ac_safe=yes" |
4967 else | 5263 else |
4974 rm -f conftest* | 5270 rm -f conftest* |
4975 fi | 5271 fi |
4976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4977 echo "$ac_t""yes" 1>&6 | 5273 echo "$ac_t""yes" 1>&6 |
4978 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 5274 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
4979 echo "configure:4980: checking for DGifOpen in -lungif" >&5 | 5275 echo "configure:5276: checking for DGifOpen in -lungif" >&5 |
4980 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 5276 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
4981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4982 echo $ac_n "(cached) $ac_c" 1>&6 | 5278 echo $ac_n "(cached) $ac_c" 1>&6 |
4983 else | 5279 else |
4984 ac_save_LIBS="$LIBS" | 5280 ac_save_LIBS="$LIBS" |
4985 LIBS="-lungif -lX11 $LIBS" | 5281 LIBS="-lungif -lX11 $LIBS" |
4986 cat > conftest.$ac_ext <<EOF | 5282 cat > conftest.$ac_ext <<EOF |
4987 #line 4988 "configure" | 5283 #line 5284 "configure" |
4988 #include "confdefs.h" | 5284 #include "confdefs.h" |
4989 /* Override any gcc2 internal prototype to avoid an error. */ | 5285 /* Override any gcc2 internal prototype to avoid an error. */ |
4990 /* We use char because int might match the return type of a gcc2 | 5286 /* We use char because int might match the return type of a gcc2 |
4991 builtin and then its argument prototype would still apply. */ | 5287 builtin and then its argument prototype would still apply. */ |
4992 char DGifOpen(); | 5288 char DGifOpen(); |
4993 | 5289 |
4994 int main() { | 5290 int main() { |
4995 DGifOpen() | 5291 DGifOpen() |
4996 ; return 0; } | 5292 ; return 0; } |
4997 EOF | 5293 EOF |
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4999 rm -rf conftest* | 5295 rm -rf conftest* |
5000 eval "ac_cv_lib_$ac_lib_var=yes" | 5296 eval "ac_cv_lib_$ac_lib_var=yes" |
5001 else | 5297 else |
5002 echo "configure: failed program was:" >&5 | 5298 echo "configure: failed program was:" >&5 |
5003 cat conftest.$ac_ext >&5 | 5299 cat conftest.$ac_ext >&5 |
5030 fi | 5326 fi |
5031 fi | 5327 fi |
5032 | 5328 |
5033 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 5329 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
5034 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 5330 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
5035 echo "configure:5036: checking whether netdb declares h_errno" >&5 | 5331 echo "configure:5332: checking whether netdb declares h_errno" >&5 |
5036 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 5332 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
5037 echo $ac_n "(cached) $ac_c" 1>&6 | 5333 echo $ac_n "(cached) $ac_c" 1>&6 |
5038 else | 5334 else |
5039 cat > conftest.$ac_ext <<EOF | 5335 cat > conftest.$ac_ext <<EOF |
5040 #line 5041 "configure" | 5336 #line 5337 "configure" |
5041 #include "confdefs.h" | 5337 #include "confdefs.h" |
5042 #include <netdb.h> | 5338 #include <netdb.h> |
5043 int main() { | 5339 int main() { |
5044 return h_errno; | 5340 return h_errno; |
5045 ; return 0; } | 5341 ; return 0; } |
5046 EOF | 5342 EOF |
5047 if { (eval echo configure:5048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5343 if { (eval echo configure:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5048 rm -rf conftest* | 5344 rm -rf conftest* |
5049 emacs_cv_netdb_declares_h_errno=yes | 5345 emacs_cv_netdb_declares_h_errno=yes |
5050 else | 5346 else |
5051 echo "configure: failed program was:" >&5 | 5347 echo "configure: failed program was:" >&5 |
5052 cat conftest.$ac_ext >&5 | 5348 cat conftest.$ac_ext >&5 |
5065 fi | 5361 fi |
5066 | 5362 |
5067 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 5363 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5068 # for constant arguments. Useless! | 5364 # for constant arguments. Useless! |
5069 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 5365 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
5070 echo "configure:5071: checking for working alloca.h" >&5 | 5366 echo "configure:5367: checking for working alloca.h" >&5 |
5071 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 5367 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
5072 echo $ac_n "(cached) $ac_c" 1>&6 | 5368 echo $ac_n "(cached) $ac_c" 1>&6 |
5073 else | 5369 else |
5074 cat > conftest.$ac_ext <<EOF | 5370 cat > conftest.$ac_ext <<EOF |
5075 #line 5076 "configure" | 5371 #line 5372 "configure" |
5076 #include "confdefs.h" | 5372 #include "confdefs.h" |
5077 #include <alloca.h> | 5373 #include <alloca.h> |
5078 int main() { | 5374 int main() { |
5079 void *p = alloca(2 * sizeof(int)); | 5375 char *p = alloca(2 * sizeof(int)); |
5080 ; return 0; } | 5376 ; return 0; } |
5081 EOF | 5377 EOF |
5082 if { (eval echo configure:5083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5378 if { (eval echo configure:5379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5083 rm -rf conftest* | 5379 rm -rf conftest* |
5084 ac_cv_header_alloca_h=yes | 5380 ac_cv_header_alloca_h=yes |
5085 else | 5381 else |
5086 echo "configure: failed program was:" >&5 | 5382 echo "configure: failed program was:" >&5 |
5087 cat conftest.$ac_ext >&5 | 5383 cat conftest.$ac_ext >&5 |
5098 EOF | 5394 EOF |
5099 | 5395 |
5100 fi | 5396 fi |
5101 | 5397 |
5102 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 5398 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
5103 echo "configure:5104: checking for alloca" >&5 | 5399 echo "configure:5400: checking for alloca" >&5 |
5104 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 5400 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
5105 echo $ac_n "(cached) $ac_c" 1>&6 | 5401 echo $ac_n "(cached) $ac_c" 1>&6 |
5106 else | 5402 else |
5107 cat > conftest.$ac_ext <<EOF | 5403 cat > conftest.$ac_ext <<EOF |
5108 #line 5109 "configure" | 5404 #line 5405 "configure" |
5109 #include "confdefs.h" | 5405 #include "confdefs.h" |
5110 | 5406 |
5111 #ifdef __GNUC__ | 5407 #ifdef __GNUC__ |
5112 # define alloca __builtin_alloca | 5408 # define alloca __builtin_alloca |
5113 #else | 5409 #else |
5131 | 5427 |
5132 int main() { | 5428 int main() { |
5133 char *p = (char *) alloca(1); | 5429 char *p = (char *) alloca(1); |
5134 ; return 0; } | 5430 ; return 0; } |
5135 EOF | 5431 EOF |
5136 if { (eval echo configure:5137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5432 if { (eval echo configure:5433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5137 rm -rf conftest* | 5433 rm -rf conftest* |
5138 ac_cv_func_alloca_works=yes | 5434 ac_cv_func_alloca_works=yes |
5139 else | 5435 else |
5140 echo "configure: failed program was:" >&5 | 5436 echo "configure: failed program was:" >&5 |
5141 cat conftest.$ac_ext >&5 | 5437 cat conftest.$ac_ext >&5 |
5163 #define C_ALLOCA 1 | 5459 #define C_ALLOCA 1 |
5164 EOF | 5460 EOF |
5165 | 5461 |
5166 | 5462 |
5167 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 5463 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
5168 echo "configure:5169: checking whether alloca needs Cray hooks" >&5 | 5464 echo "configure:5465: checking whether alloca needs Cray hooks" >&5 |
5169 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 5465 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5170 echo $ac_n "(cached) $ac_c" 1>&6 | 5466 echo $ac_n "(cached) $ac_c" 1>&6 |
5171 else | 5467 else |
5172 cat > conftest.$ac_ext <<EOF | 5468 cat > conftest.$ac_ext <<EOF |
5173 #line 5174 "configure" | 5469 #line 5470 "configure" |
5174 #include "confdefs.h" | 5470 #include "confdefs.h" |
5175 #if defined(CRAY) && ! defined(CRAY2) | 5471 #if defined(CRAY) && ! defined(CRAY2) |
5176 webecray | 5472 webecray |
5177 #else | 5473 #else |
5178 wenotbecray | 5474 wenotbecray |
5193 | 5489 |
5194 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 5490 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
5195 if test $ac_cv_os_cray = yes; then | 5491 if test $ac_cv_os_cray = yes; then |
5196 for ac_func in _getb67 GETB67 getb67; do | 5492 for ac_func in _getb67 GETB67 getb67; do |
5197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5198 echo "configure:5199: checking for $ac_func" >&5 | 5494 echo "configure:5495: checking for $ac_func" >&5 |
5199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5495 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5200 echo $ac_n "(cached) $ac_c" 1>&6 | 5496 echo $ac_n "(cached) $ac_c" 1>&6 |
5201 else | 5497 else |
5202 cat > conftest.$ac_ext <<EOF | 5498 cat > conftest.$ac_ext <<EOF |
5203 #line 5204 "configure" | 5499 #line 5500 "configure" |
5204 #include "confdefs.h" | 5500 #include "confdefs.h" |
5205 /* System header to define __stub macros and hopefully few prototypes, | 5501 /* System header to define __stub macros and hopefully few prototypes, |
5206 which can conflict with char $ac_func(); below. */ | 5502 which can conflict with char $ac_func(); below. */ |
5207 #include <assert.h> | 5503 #include <assert.h> |
5208 /* Override any gcc2 internal prototype to avoid an error. */ | 5504 /* Override any gcc2 internal prototype to avoid an error. */ |
5221 $ac_func(); | 5517 $ac_func(); |
5222 #endif | 5518 #endif |
5223 | 5519 |
5224 ; return 0; } | 5520 ; return 0; } |
5225 EOF | 5521 EOF |
5226 if { (eval echo configure:5227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5227 rm -rf conftest* | 5523 rm -rf conftest* |
5228 eval "ac_cv_func_$ac_func=yes" | 5524 eval "ac_cv_func_$ac_func=yes" |
5229 else | 5525 else |
5230 echo "configure: failed program was:" >&5 | 5526 echo "configure: failed program was:" >&5 |
5231 cat conftest.$ac_ext >&5 | 5527 cat conftest.$ac_ext >&5 |
5248 | 5544 |
5249 done | 5545 done |
5250 fi | 5546 fi |
5251 | 5547 |
5252 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 5548 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
5253 echo "configure:5254: checking stack direction for C alloca" >&5 | 5549 echo "configure:5550: checking stack direction for C alloca" >&5 |
5254 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 5550 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5255 echo $ac_n "(cached) $ac_c" 1>&6 | 5551 echo $ac_n "(cached) $ac_c" 1>&6 |
5256 else | 5552 else |
5257 if test "$cross_compiling" = yes; then | 5553 if test "$cross_compiling" = yes; then |
5258 ac_cv_c_stack_direction=0 | 5554 ac_cv_c_stack_direction=0 |
5259 else | 5555 else |
5260 cat > conftest.$ac_ext <<EOF | 5556 cat > conftest.$ac_ext <<EOF |
5261 #line 5262 "configure" | 5557 #line 5558 "configure" |
5262 #include "confdefs.h" | 5558 #include "confdefs.h" |
5263 find_stack_direction () | 5559 find_stack_direction () |
5264 { | 5560 { |
5265 static char *addr = 0; | 5561 static char *addr = 0; |
5266 auto char dummy; | 5562 auto char dummy; |
5275 main () | 5571 main () |
5276 { | 5572 { |
5277 exit (find_stack_direction() < 0); | 5573 exit (find_stack_direction() < 0); |
5278 } | 5574 } |
5279 EOF | 5575 EOF |
5280 if { (eval echo configure:5281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5576 if { (eval echo configure:5577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5281 then | 5577 then |
5282 ac_cv_c_stack_direction=1 | 5578 ac_cv_c_stack_direction=1 |
5283 else | 5579 else |
5284 echo "configure: failed program was:" >&5 | 5580 echo "configure: failed program was:" >&5 |
5285 cat conftest.$ac_ext >&5 | 5581 cat conftest.$ac_ext >&5 |
5300 | 5596 |
5301 | 5597 |
5302 # fmod, logb, and frexp are found in -lm on most systems. | 5598 # fmod, logb, and frexp are found in -lm on most systems. |
5303 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 5599 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
5304 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 5600 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
5305 echo "configure:5306: checking for sqrt in -lm" >&5 | 5601 echo "configure:5602: checking for sqrt in -lm" >&5 |
5306 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 5602 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5308 echo $ac_n "(cached) $ac_c" 1>&6 | 5604 echo $ac_n "(cached) $ac_c" 1>&6 |
5309 else | 5605 else |
5310 ac_save_LIBS="$LIBS" | 5606 ac_save_LIBS="$LIBS" |
5311 LIBS="-lm $LIBS" | 5607 LIBS="-lm $LIBS" |
5312 cat > conftest.$ac_ext <<EOF | 5608 cat > conftest.$ac_ext <<EOF |
5313 #line 5314 "configure" | 5609 #line 5610 "configure" |
5314 #include "confdefs.h" | 5610 #include "confdefs.h" |
5315 /* Override any gcc2 internal prototype to avoid an error. */ | 5611 /* Override any gcc2 internal prototype to avoid an error. */ |
5316 /* We use char because int might match the return type of a gcc2 | 5612 /* We use char because int might match the return type of a gcc2 |
5317 builtin and then its argument prototype would still apply. */ | 5613 builtin and then its argument prototype would still apply. */ |
5318 char sqrt(); | 5614 char sqrt(); |
5319 | 5615 |
5320 int main() { | 5616 int main() { |
5321 sqrt() | 5617 sqrt() |
5322 ; return 0; } | 5618 ; return 0; } |
5323 EOF | 5619 EOF |
5324 if { (eval echo configure:5325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5620 if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5325 rm -rf conftest* | 5621 rm -rf conftest* |
5326 eval "ac_cv_lib_$ac_lib_var=yes" | 5622 eval "ac_cv_lib_$ac_lib_var=yes" |
5327 else | 5623 else |
5328 echo "configure: failed program was:" >&5 | 5624 echo "configure: failed program was:" >&5 |
5329 cat conftest.$ac_ext >&5 | 5625 cat conftest.$ac_ext >&5 |
5349 fi | 5645 fi |
5350 | 5646 |
5351 | 5647 |
5352 # Check for mail-locking functions in a "mail" library | 5648 # Check for mail-locking functions in a "mail" library |
5353 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 5649 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
5354 echo "configure:5355: checking for maillock in -lmail" >&5 | 5650 echo "configure:5651: checking for maillock in -lmail" >&5 |
5355 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 5651 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5652 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5357 echo $ac_n "(cached) $ac_c" 1>&6 | 5653 echo $ac_n "(cached) $ac_c" 1>&6 |
5358 else | 5654 else |
5359 ac_save_LIBS="$LIBS" | 5655 ac_save_LIBS="$LIBS" |
5360 LIBS="-lmail $LIBS" | 5656 LIBS="-lmail $LIBS" |
5361 cat > conftest.$ac_ext <<EOF | 5657 cat > conftest.$ac_ext <<EOF |
5362 #line 5363 "configure" | 5658 #line 5659 "configure" |
5363 #include "confdefs.h" | 5659 #include "confdefs.h" |
5364 /* Override any gcc2 internal prototype to avoid an error. */ | 5660 /* Override any gcc2 internal prototype to avoid an error. */ |
5365 /* We use char because int might match the return type of a gcc2 | 5661 /* We use char because int might match the return type of a gcc2 |
5366 builtin and then its argument prototype would still apply. */ | 5662 builtin and then its argument prototype would still apply. */ |
5367 char maillock(); | 5663 char maillock(); |
5368 | 5664 |
5369 int main() { | 5665 int main() { |
5370 maillock() | 5666 maillock() |
5371 ; return 0; } | 5667 ; return 0; } |
5372 EOF | 5668 EOF |
5373 if { (eval echo configure:5374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5669 if { (eval echo configure:5670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5374 rm -rf conftest* | 5670 rm -rf conftest* |
5375 eval "ac_cv_lib_$ac_lib_var=yes" | 5671 eval "ac_cv_lib_$ac_lib_var=yes" |
5376 else | 5672 else |
5377 echo "configure: failed program was:" >&5 | 5673 echo "configure: failed program was:" >&5 |
5378 cat conftest.$ac_ext >&5 | 5674 cat conftest.$ac_ext >&5 |
5396 else | 5692 else |
5397 echo "$ac_t""no" 1>&6 | 5693 echo "$ac_t""no" 1>&6 |
5398 fi | 5694 fi |
5399 | 5695 |
5400 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5696 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
5401 echo "configure:5402: checking for maillock in -llockfile" >&5 | 5697 echo "configure:5698: checking for maillock in -llockfile" >&5 |
5402 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5698 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5404 echo $ac_n "(cached) $ac_c" 1>&6 | 5700 echo $ac_n "(cached) $ac_c" 1>&6 |
5405 else | 5701 else |
5406 ac_save_LIBS="$LIBS" | 5702 ac_save_LIBS="$LIBS" |
5407 LIBS="-llockfile $LIBS" | 5703 LIBS="-llockfile $LIBS" |
5408 cat > conftest.$ac_ext <<EOF | 5704 cat > conftest.$ac_ext <<EOF |
5409 #line 5410 "configure" | 5705 #line 5706 "configure" |
5410 #include "confdefs.h" | 5706 #include "confdefs.h" |
5411 /* Override any gcc2 internal prototype to avoid an error. */ | 5707 /* Override any gcc2 internal prototype to avoid an error. */ |
5412 /* We use char because int might match the return type of a gcc2 | 5708 /* We use char because int might match the return type of a gcc2 |
5413 builtin and then its argument prototype would still apply. */ | 5709 builtin and then its argument prototype would still apply. */ |
5414 char maillock(); | 5710 char maillock(); |
5415 | 5711 |
5416 int main() { | 5712 int main() { |
5417 maillock() | 5713 maillock() |
5418 ; return 0; } | 5714 ; return 0; } |
5419 EOF | 5715 EOF |
5420 if { (eval echo configure:5421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5716 if { (eval echo configure:5717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5421 rm -rf conftest* | 5717 rm -rf conftest* |
5422 eval "ac_cv_lib_$ac_lib_var=yes" | 5718 eval "ac_cv_lib_$ac_lib_var=yes" |
5423 else | 5719 else |
5424 echo "configure: failed program was:" >&5 | 5720 echo "configure: failed program was:" >&5 |
5425 cat conftest.$ac_ext >&5 | 5721 cat conftest.$ac_ext >&5 |
5449 # (no liblockfile.a installed), ensure that we don't need to. | 5745 # (no liblockfile.a installed), ensure that we don't need to. |
5450 if test "$ac_cv_lib_lockfile_maillock" = no; then | 5746 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5451 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 5747 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5452 set dummy liblockfile.so; ac_word=$2 | 5748 set dummy liblockfile.so; ac_word=$2 |
5453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5454 echo "configure:5455: checking for $ac_word" >&5 | 5750 echo "configure:5751: checking for $ac_word" >&5 |
5455 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 5751 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5456 echo $ac_n "(cached) $ac_c" 1>&6 | 5752 echo $ac_n "(cached) $ac_c" 1>&6 |
5457 else | 5753 else |
5458 if test -n "$liblockfile"; then | 5754 if test -n "$liblockfile"; then |
5459 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 5755 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
5490 else : | 5786 else : |
5491 fi | 5787 fi |
5492 for ac_func in touchlock | 5788 for ac_func in touchlock |
5493 do | 5789 do |
5494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5495 echo "configure:5496: checking for $ac_func" >&5 | 5791 echo "configure:5792: checking for $ac_func" >&5 |
5496 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5792 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5497 echo $ac_n "(cached) $ac_c" 1>&6 | 5793 echo $ac_n "(cached) $ac_c" 1>&6 |
5498 else | 5794 else |
5499 cat > conftest.$ac_ext <<EOF | 5795 cat > conftest.$ac_ext <<EOF |
5500 #line 5501 "configure" | 5796 #line 5797 "configure" |
5501 #include "confdefs.h" | 5797 #include "confdefs.h" |
5502 /* System header to define __stub macros and hopefully few prototypes, | 5798 /* System header to define __stub macros and hopefully few prototypes, |
5503 which can conflict with char $ac_func(); below. */ | 5799 which can conflict with char $ac_func(); below. */ |
5504 #include <assert.h> | 5800 #include <assert.h> |
5505 /* Override any gcc2 internal prototype to avoid an error. */ | 5801 /* Override any gcc2 internal prototype to avoid an error. */ |
5518 $ac_func(); | 5814 $ac_func(); |
5519 #endif | 5815 #endif |
5520 | 5816 |
5521 ; return 0; } | 5817 ; return 0; } |
5522 EOF | 5818 EOF |
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5524 rm -rf conftest* | 5820 rm -rf conftest* |
5525 eval "ac_cv_func_$ac_func=yes" | 5821 eval "ac_cv_func_$ac_func=yes" |
5526 else | 5822 else |
5527 echo "configure: failed program was:" >&5 | 5823 echo "configure: failed program was:" >&5 |
5528 cat conftest.$ac_ext >&5 | 5824 cat conftest.$ac_ext >&5 |
5546 | 5842 |
5547 for ac_hdr in maillock.h | 5843 for ac_hdr in maillock.h |
5548 do | 5844 do |
5549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5551 echo "configure:5552: checking for $ac_hdr" >&5 | 5847 echo "configure:5848: checking for $ac_hdr" >&5 |
5552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5553 echo $ac_n "(cached) $ac_c" 1>&6 | 5849 echo $ac_n "(cached) $ac_c" 1>&6 |
5554 else | 5850 else |
5555 cat > conftest.$ac_ext <<EOF | 5851 cat > conftest.$ac_ext <<EOF |
5556 #line 5557 "configure" | 5852 #line 5853 "configure" |
5557 #include "confdefs.h" | 5853 #include "confdefs.h" |
5558 #include <$ac_hdr> | 5854 #include <$ac_hdr> |
5559 EOF | 5855 EOF |
5560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5561 { (eval echo configure:5562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5857 { (eval echo configure:5858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5563 if test -z "$ac_err"; then | 5859 if test -z "$ac_err"; then |
5564 rm -rf conftest* | 5860 rm -rf conftest* |
5565 eval "ac_cv_header_$ac_safe=yes" | 5861 eval "ac_cv_header_$ac_safe=yes" |
5566 else | 5862 else |
5591 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 5887 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
5592 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 5888 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
5593 __fpending mblen mbrlen strsignal setitimer ualarm | 5889 __fpending mblen mbrlen strsignal setitimer ualarm |
5594 do | 5890 do |
5595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5596 echo "configure:5597: checking for $ac_func" >&5 | 5892 echo "configure:5893: checking for $ac_func" >&5 |
5597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5598 echo $ac_n "(cached) $ac_c" 1>&6 | 5894 echo $ac_n "(cached) $ac_c" 1>&6 |
5599 else | 5895 else |
5600 cat > conftest.$ac_ext <<EOF | 5896 cat > conftest.$ac_ext <<EOF |
5601 #line 5602 "configure" | 5897 #line 5898 "configure" |
5602 #include "confdefs.h" | 5898 #include "confdefs.h" |
5603 /* System header to define __stub macros and hopefully few prototypes, | 5899 /* System header to define __stub macros and hopefully few prototypes, |
5604 which can conflict with char $ac_func(); below. */ | 5900 which can conflict with char $ac_func(); below. */ |
5605 #include <assert.h> | 5901 #include <assert.h> |
5606 /* Override any gcc2 internal prototype to avoid an error. */ | 5902 /* Override any gcc2 internal prototype to avoid an error. */ |
5619 $ac_func(); | 5915 $ac_func(); |
5620 #endif | 5916 #endif |
5621 | 5917 |
5622 ; return 0; } | 5918 ; return 0; } |
5623 EOF | 5919 EOF |
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5920 if { (eval echo configure:5921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5625 rm -rf conftest* | 5921 rm -rf conftest* |
5626 eval "ac_cv_func_$ac_func=yes" | 5922 eval "ac_cv_func_$ac_func=yes" |
5627 else | 5923 else |
5628 echo "configure: failed program was:" >&5 | 5924 echo "configure: failed program was:" >&5 |
5629 cat conftest.$ac_ext >&5 | 5925 cat conftest.$ac_ext >&5 |
5648 | 5944 |
5649 for ac_hdr in sys/time.h unistd.h | 5945 for ac_hdr in sys/time.h unistd.h |
5650 do | 5946 do |
5651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 5947 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 5948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5653 echo "configure:5654: checking for $ac_hdr" >&5 | 5949 echo "configure:5950: checking for $ac_hdr" >&5 |
5654 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5655 echo $ac_n "(cached) $ac_c" 1>&6 | 5951 echo $ac_n "(cached) $ac_c" 1>&6 |
5656 else | 5952 else |
5657 cat > conftest.$ac_ext <<EOF | 5953 cat > conftest.$ac_ext <<EOF |
5658 #line 5659 "configure" | 5954 #line 5955 "configure" |
5659 #include "confdefs.h" | 5955 #include "confdefs.h" |
5660 #include <$ac_hdr> | 5956 #include <$ac_hdr> |
5661 EOF | 5957 EOF |
5662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5663 { (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5959 { (eval echo configure:5960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5665 if test -z "$ac_err"; then | 5961 if test -z "$ac_err"; then |
5666 rm -rf conftest* | 5962 rm -rf conftest* |
5667 eval "ac_cv_header_$ac_safe=yes" | 5963 eval "ac_cv_header_$ac_safe=yes" |
5668 else | 5964 else |
5687 done | 5983 done |
5688 | 5984 |
5689 for ac_func in alarm | 5985 for ac_func in alarm |
5690 do | 5986 do |
5691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5692 echo "configure:5693: checking for $ac_func" >&5 | 5988 echo "configure:5989: checking for $ac_func" >&5 |
5693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5989 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5694 echo $ac_n "(cached) $ac_c" 1>&6 | 5990 echo $ac_n "(cached) $ac_c" 1>&6 |
5695 else | 5991 else |
5696 cat > conftest.$ac_ext <<EOF | 5992 cat > conftest.$ac_ext <<EOF |
5697 #line 5698 "configure" | 5993 #line 5994 "configure" |
5698 #include "confdefs.h" | 5994 #include "confdefs.h" |
5699 /* System header to define __stub macros and hopefully few prototypes, | 5995 /* System header to define __stub macros and hopefully few prototypes, |
5700 which can conflict with char $ac_func(); below. */ | 5996 which can conflict with char $ac_func(); below. */ |
5701 #include <assert.h> | 5997 #include <assert.h> |
5702 /* Override any gcc2 internal prototype to avoid an error. */ | 5998 /* Override any gcc2 internal prototype to avoid an error. */ |
5715 $ac_func(); | 6011 $ac_func(); |
5716 #endif | 6012 #endif |
5717 | 6013 |
5718 ; return 0; } | 6014 ; return 0; } |
5719 EOF | 6015 EOF |
5720 if { (eval echo configure:5721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5721 rm -rf conftest* | 6017 rm -rf conftest* |
5722 eval "ac_cv_func_$ac_func=yes" | 6018 eval "ac_cv_func_$ac_func=yes" |
5723 else | 6019 else |
5724 echo "configure: failed program was:" >&5 | 6020 echo "configure: failed program was:" >&5 |
5725 cat conftest.$ac_ext >&5 | 6021 cat conftest.$ac_ext >&5 |
5740 echo "$ac_t""no" 1>&6 | 6036 echo "$ac_t""no" 1>&6 |
5741 fi | 6037 fi |
5742 done | 6038 done |
5743 | 6039 |
5744 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 6040 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 |
5745 echo "configure:5746: checking for working mktime" >&5 | 6041 echo "configure:6042: checking for working mktime" >&5 |
5746 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 6042 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
5747 echo $ac_n "(cached) $ac_c" 1>&6 | 6043 echo $ac_n "(cached) $ac_c" 1>&6 |
5748 else | 6044 else |
5749 if test "$cross_compiling" = yes; then | 6045 if test "$cross_compiling" = yes; then |
5750 ac_cv_func_working_mktime=no | 6046 ac_cv_func_working_mktime=no |
5751 else | 6047 else |
5752 cat > conftest.$ac_ext <<EOF | 6048 cat > conftest.$ac_ext <<EOF |
5753 #line 5754 "configure" | 6049 #line 6050 "configure" |
5754 #include "confdefs.h" | 6050 #include "confdefs.h" |
5755 /* Test program from Paul Eggert (eggert@twinsun.com) | 6051 /* Test program from Paul Eggert (eggert@twinsun.com) |
5756 and Tony Leneis (tony@plaza.ds.adp.com). */ | 6052 and Tony Leneis (tony@plaza.ds.adp.com). */ |
5757 #if TIME_WITH_SYS_TIME | 6053 #if TIME_WITH_SYS_TIME |
5758 # include <sys/time.h> | 6054 # include <sys/time.h> |
5897 irix_6_4_bug (); | 6193 irix_6_4_bug (); |
5898 spring_forward_gap (); | 6194 spring_forward_gap (); |
5899 exit (0); | 6195 exit (0); |
5900 } | 6196 } |
5901 EOF | 6197 EOF |
5902 if { (eval echo configure:5903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 6198 if { (eval echo configure:6199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5903 then | 6199 then |
5904 ac_cv_func_working_mktime=yes | 6200 ac_cv_func_working_mktime=yes |
5905 else | 6201 else |
5906 echo "configure: failed program was:" >&5 | 6202 echo "configure: failed program was:" >&5 |
5907 cat conftest.$ac_ext >&5 | 6203 cat conftest.$ac_ext >&5 |
5929 | 6225 |
5930 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 6226 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
5931 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 6227 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
5932 # to get the right answer into the cache. | 6228 # to get the right answer into the cache. |
5933 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | 6229 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 |
5934 echo "configure:5935: checking for elf_begin in -lelf" >&5 | 6230 echo "configure:6231: checking for elf_begin in -lelf" >&5 |
5935 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | 6231 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
5936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5937 echo $ac_n "(cached) $ac_c" 1>&6 | 6233 echo $ac_n "(cached) $ac_c" 1>&6 |
5938 else | 6234 else |
5939 ac_save_LIBS="$LIBS" | 6235 ac_save_LIBS="$LIBS" |
5940 LIBS="-lelf $LIBS" | 6236 LIBS="-lelf $LIBS" |
5941 cat > conftest.$ac_ext <<EOF | 6237 cat > conftest.$ac_ext <<EOF |
5942 #line 5943 "configure" | 6238 #line 6239 "configure" |
5943 #include "confdefs.h" | 6239 #include "confdefs.h" |
5944 /* Override any gcc2 internal prototype to avoid an error. */ | 6240 /* Override any gcc2 internal prototype to avoid an error. */ |
5945 /* We use char because int might match the return type of a gcc2 | 6241 /* We use char because int might match the return type of a gcc2 |
5946 builtin and then its argument prototype would still apply. */ | 6242 builtin and then its argument prototype would still apply. */ |
5947 char elf_begin(); | 6243 char elf_begin(); |
5948 | 6244 |
5949 int main() { | 6245 int main() { |
5950 elf_begin() | 6246 elf_begin() |
5951 ; return 0; } | 6247 ; return 0; } |
5952 EOF | 6248 EOF |
5953 if { (eval echo configure:5954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6249 if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5954 rm -rf conftest* | 6250 rm -rf conftest* |
5955 eval "ac_cv_lib_$ac_lib_var=yes" | 6251 eval "ac_cv_lib_$ac_lib_var=yes" |
5956 else | 6252 else |
5957 echo "configure: failed program was:" >&5 | 6253 echo "configure: failed program was:" >&5 |
5958 cat conftest.$ac_ext >&5 | 6254 cat conftest.$ac_ext >&5 |
5969 else | 6265 else |
5970 echo "$ac_t""no" 1>&6 | 6266 echo "$ac_t""no" 1>&6 |
5971 fi | 6267 fi |
5972 | 6268 |
5973 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | 6269 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 |
5974 echo "configure:5975: checking for kvm_open in -lkvm" >&5 | 6270 echo "configure:6271: checking for kvm_open in -lkvm" >&5 |
5975 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | 6271 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
5976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5977 echo $ac_n "(cached) $ac_c" 1>&6 | 6273 echo $ac_n "(cached) $ac_c" 1>&6 |
5978 else | 6274 else |
5979 ac_save_LIBS="$LIBS" | 6275 ac_save_LIBS="$LIBS" |
5980 LIBS="-lkvm $LIBS" | 6276 LIBS="-lkvm $LIBS" |
5981 cat > conftest.$ac_ext <<EOF | 6277 cat > conftest.$ac_ext <<EOF |
5982 #line 5983 "configure" | 6278 #line 6279 "configure" |
5983 #include "confdefs.h" | 6279 #include "confdefs.h" |
5984 /* Override any gcc2 internal prototype to avoid an error. */ | 6280 /* Override any gcc2 internal prototype to avoid an error. */ |
5985 /* We use char because int might match the return type of a gcc2 | 6281 /* We use char because int might match the return type of a gcc2 |
5986 builtin and then its argument prototype would still apply. */ | 6282 builtin and then its argument prototype would still apply. */ |
5987 char kvm_open(); | 6283 char kvm_open(); |
5988 | 6284 |
5989 int main() { | 6285 int main() { |
5990 kvm_open() | 6286 kvm_open() |
5991 ; return 0; } | 6287 ; return 0; } |
5992 EOF | 6288 EOF |
5993 if { (eval echo configure:5994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6289 if { (eval echo configure:6290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5994 rm -rf conftest* | 6290 rm -rf conftest* |
5995 eval "ac_cv_lib_$ac_lib_var=yes" | 6291 eval "ac_cv_lib_$ac_lib_var=yes" |
5996 else | 6292 else |
5997 echo "configure: failed program was:" >&5 | 6293 echo "configure: failed program was:" >&5 |
5998 cat conftest.$ac_ext >&5 | 6294 cat conftest.$ac_ext >&5 |
6010 echo "$ac_t""no" 1>&6 | 6306 echo "$ac_t""no" 1>&6 |
6011 fi | 6307 fi |
6012 | 6308 |
6013 # Check for the 4.4BSD definition of getloadavg. | 6309 # Check for the 4.4BSD definition of getloadavg. |
6014 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | 6310 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 |
6015 echo "configure:6016: checking for getloadavg in -lutil" >&5 | 6311 echo "configure:6312: checking for getloadavg in -lutil" >&5 |
6016 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | 6312 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
6017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6313 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6018 echo $ac_n "(cached) $ac_c" 1>&6 | 6314 echo $ac_n "(cached) $ac_c" 1>&6 |
6019 else | 6315 else |
6020 ac_save_LIBS="$LIBS" | 6316 ac_save_LIBS="$LIBS" |
6021 LIBS="-lutil $LIBS" | 6317 LIBS="-lutil $LIBS" |
6022 cat > conftest.$ac_ext <<EOF | 6318 cat > conftest.$ac_ext <<EOF |
6023 #line 6024 "configure" | 6319 #line 6320 "configure" |
6024 #include "confdefs.h" | 6320 #include "confdefs.h" |
6025 /* Override any gcc2 internal prototype to avoid an error. */ | 6321 /* Override any gcc2 internal prototype to avoid an error. */ |
6026 /* We use char because int might match the return type of a gcc2 | 6322 /* We use char because int might match the return type of a gcc2 |
6027 builtin and then its argument prototype would still apply. */ | 6323 builtin and then its argument prototype would still apply. */ |
6028 char getloadavg(); | 6324 char getloadavg(); |
6029 | 6325 |
6030 int main() { | 6326 int main() { |
6031 getloadavg() | 6327 getloadavg() |
6032 ; return 0; } | 6328 ; return 0; } |
6033 EOF | 6329 EOF |
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6330 if { (eval echo configure:6331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6035 rm -rf conftest* | 6331 rm -rf conftest* |
6036 eval "ac_cv_lib_$ac_lib_var=yes" | 6332 eval "ac_cv_lib_$ac_lib_var=yes" |
6037 else | 6333 else |
6038 echo "configure: failed program was:" >&5 | 6334 echo "configure: failed program was:" >&5 |
6039 cat conftest.$ac_ext >&5 | 6335 cat conftest.$ac_ext >&5 |
6055 if test $ac_have_func = no; then | 6351 if test $ac_have_func = no; then |
6056 # There is a commonly available library for RS/6000 AIX. | 6352 # There is a commonly available library for RS/6000 AIX. |
6057 # Since it is not a standard part of AIX, it might be installed locally. | 6353 # Since it is not a standard part of AIX, it might be installed locally. |
6058 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | 6354 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" |
6059 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | 6355 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 |
6060 echo "configure:6061: checking for getloadavg in -lgetloadavg" >&5 | 6356 echo "configure:6357: checking for getloadavg in -lgetloadavg" >&5 |
6061 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | 6357 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
6062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6358 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6063 echo $ac_n "(cached) $ac_c" 1>&6 | 6359 echo $ac_n "(cached) $ac_c" 1>&6 |
6064 else | 6360 else |
6065 ac_save_LIBS="$LIBS" | 6361 ac_save_LIBS="$LIBS" |
6066 LIBS="-lgetloadavg $LIBS" | 6362 LIBS="-lgetloadavg $LIBS" |
6067 cat > conftest.$ac_ext <<EOF | 6363 cat > conftest.$ac_ext <<EOF |
6068 #line 6069 "configure" | 6364 #line 6365 "configure" |
6069 #include "confdefs.h" | 6365 #include "confdefs.h" |
6070 /* Override any gcc2 internal prototype to avoid an error. */ | 6366 /* Override any gcc2 internal prototype to avoid an error. */ |
6071 /* We use char because int might match the return type of a gcc2 | 6367 /* We use char because int might match the return type of a gcc2 |
6072 builtin and then its argument prototype would still apply. */ | 6368 builtin and then its argument prototype would still apply. */ |
6073 char getloadavg(); | 6369 char getloadavg(); |
6074 | 6370 |
6075 int main() { | 6371 int main() { |
6076 getloadavg() | 6372 getloadavg() |
6077 ; return 0; } | 6373 ; return 0; } |
6078 EOF | 6374 EOF |
6079 if { (eval echo configure:6080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6080 rm -rf conftest* | 6376 rm -rf conftest* |
6081 eval "ac_cv_lib_$ac_lib_var=yes" | 6377 eval "ac_cv_lib_$ac_lib_var=yes" |
6082 else | 6378 else |
6083 echo "configure: failed program was:" >&5 | 6379 echo "configure: failed program was:" >&5 |
6084 cat conftest.$ac_ext >&5 | 6380 cat conftest.$ac_ext >&5 |
6101 | 6397 |
6102 # Make sure it is really in the library, if we think we found it. | 6398 # Make sure it is really in the library, if we think we found it. |
6103 for ac_func in getloadavg | 6399 for ac_func in getloadavg |
6104 do | 6400 do |
6105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6106 echo "configure:6107: checking for $ac_func" >&5 | 6402 echo "configure:6403: checking for $ac_func" >&5 |
6107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6108 echo $ac_n "(cached) $ac_c" 1>&6 | 6404 echo $ac_n "(cached) $ac_c" 1>&6 |
6109 else | 6405 else |
6110 cat > conftest.$ac_ext <<EOF | 6406 cat > conftest.$ac_ext <<EOF |
6111 #line 6112 "configure" | 6407 #line 6408 "configure" |
6112 #include "confdefs.h" | 6408 #include "confdefs.h" |
6113 /* System header to define __stub macros and hopefully few prototypes, | 6409 /* System header to define __stub macros and hopefully few prototypes, |
6114 which can conflict with char $ac_func(); below. */ | 6410 which can conflict with char $ac_func(); below. */ |
6115 #include <assert.h> | 6411 #include <assert.h> |
6116 /* Override any gcc2 internal prototype to avoid an error. */ | 6412 /* Override any gcc2 internal prototype to avoid an error. */ |
6129 $ac_func(); | 6425 $ac_func(); |
6130 #endif | 6426 #endif |
6131 | 6427 |
6132 ; return 0; } | 6428 ; return 0; } |
6133 EOF | 6429 EOF |
6134 if { (eval echo configure:6135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6430 if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6135 rm -rf conftest* | 6431 rm -rf conftest* |
6136 eval "ac_cv_func_$ac_func=yes" | 6432 eval "ac_cv_func_$ac_func=yes" |
6137 else | 6433 else |
6138 echo "configure: failed program was:" >&5 | 6434 echo "configure: failed program was:" >&5 |
6139 cat conftest.$ac_ext >&5 | 6435 cat conftest.$ac_ext >&5 |
6167 else | 6463 else |
6168 # Figure out what our getloadavg.c needs. | 6464 # Figure out what our getloadavg.c needs. |
6169 ac_have_func=no | 6465 ac_have_func=no |
6170 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | 6466 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` |
6171 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | 6467 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 |
6172 echo "configure:6173: checking for sys/dg_sys_info.h" >&5 | 6468 echo "configure:6469: checking for sys/dg_sys_info.h" >&5 |
6173 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6174 echo $ac_n "(cached) $ac_c" 1>&6 | 6470 echo $ac_n "(cached) $ac_c" 1>&6 |
6175 else | 6471 else |
6176 cat > conftest.$ac_ext <<EOF | 6472 cat > conftest.$ac_ext <<EOF |
6177 #line 6178 "configure" | 6473 #line 6474 "configure" |
6178 #include "confdefs.h" | 6474 #include "confdefs.h" |
6179 #include <sys/dg_sys_info.h> | 6475 #include <sys/dg_sys_info.h> |
6180 EOF | 6476 EOF |
6181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6182 { (eval echo configure:6183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6478 { (eval echo configure:6479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6184 if test -z "$ac_err"; then | 6480 if test -z "$ac_err"; then |
6185 rm -rf conftest* | 6481 rm -rf conftest* |
6186 eval "ac_cv_header_$ac_safe=yes" | 6482 eval "ac_cv_header_$ac_safe=yes" |
6187 else | 6483 else |
6198 ac_have_func=yes; cat >> confdefs.h <<\EOF | 6494 ac_have_func=yes; cat >> confdefs.h <<\EOF |
6199 #define DGUX 1 | 6495 #define DGUX 1 |
6200 EOF | 6496 EOF |
6201 | 6497 |
6202 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | 6498 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 |
6203 echo "configure:6204: checking for dg_sys_info in -ldgc" >&5 | 6499 echo "configure:6500: checking for dg_sys_info in -ldgc" >&5 |
6204 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | 6500 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6206 echo $ac_n "(cached) $ac_c" 1>&6 | 6502 echo $ac_n "(cached) $ac_c" 1>&6 |
6207 else | 6503 else |
6208 ac_save_LIBS="$LIBS" | 6504 ac_save_LIBS="$LIBS" |
6209 LIBS="-ldgc $LIBS" | 6505 LIBS="-ldgc $LIBS" |
6210 cat > conftest.$ac_ext <<EOF | 6506 cat > conftest.$ac_ext <<EOF |
6211 #line 6212 "configure" | 6507 #line 6508 "configure" |
6212 #include "confdefs.h" | 6508 #include "confdefs.h" |
6213 /* Override any gcc2 internal prototype to avoid an error. */ | 6509 /* Override any gcc2 internal prototype to avoid an error. */ |
6214 /* We use char because int might match the return type of a gcc2 | 6510 /* We use char because int might match the return type of a gcc2 |
6215 builtin and then its argument prototype would still apply. */ | 6511 builtin and then its argument prototype would still apply. */ |
6216 char dg_sys_info(); | 6512 char dg_sys_info(); |
6217 | 6513 |
6218 int main() { | 6514 int main() { |
6219 dg_sys_info() | 6515 dg_sys_info() |
6220 ; return 0; } | 6516 ; return 0; } |
6221 EOF | 6517 EOF |
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6223 rm -rf conftest* | 6519 rm -rf conftest* |
6224 eval "ac_cv_lib_$ac_lib_var=yes" | 6520 eval "ac_cv_lib_$ac_lib_var=yes" |
6225 else | 6521 else |
6226 echo "configure: failed program was:" >&5 | 6522 echo "configure: failed program was:" >&5 |
6227 cat conftest.$ac_ext >&5 | 6523 cat conftest.$ac_ext >&5 |
6262 fi | 6558 fi |
6263 | 6559 |
6264 if test $ac_have_func = no; then | 6560 if test $ac_have_func = no; then |
6265 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | 6561 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` |
6266 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | 6562 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 |
6267 echo "configure:6268: checking for inq_stats/cpustats.h" >&5 | 6563 echo "configure:6564: checking for inq_stats/cpustats.h" >&5 |
6268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6269 echo $ac_n "(cached) $ac_c" 1>&6 | 6565 echo $ac_n "(cached) $ac_c" 1>&6 |
6270 else | 6566 else |
6271 cat > conftest.$ac_ext <<EOF | 6567 cat > conftest.$ac_ext <<EOF |
6272 #line 6273 "configure" | 6568 #line 6569 "configure" |
6273 #include "confdefs.h" | 6569 #include "confdefs.h" |
6274 #include <inq_stats/cpustats.h> | 6570 #include <inq_stats/cpustats.h> |
6275 EOF | 6571 EOF |
6276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6277 { (eval echo configure:6278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6573 { (eval echo configure:6574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6279 if test -z "$ac_err"; then | 6575 if test -z "$ac_err"; then |
6280 rm -rf conftest* | 6576 rm -rf conftest* |
6281 eval "ac_cv_header_$ac_safe=yes" | 6577 eval "ac_cv_header_$ac_safe=yes" |
6282 else | 6578 else |
6305 fi | 6601 fi |
6306 | 6602 |
6307 if test $ac_have_func = no; then | 6603 if test $ac_have_func = no; then |
6308 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | 6604 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` |
6309 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | 6605 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 |
6310 echo "configure:6311: checking for sys/cpustats.h" >&5 | 6606 echo "configure:6607: checking for sys/cpustats.h" >&5 |
6311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6607 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6312 echo $ac_n "(cached) $ac_c" 1>&6 | 6608 echo $ac_n "(cached) $ac_c" 1>&6 |
6313 else | 6609 else |
6314 cat > conftest.$ac_ext <<EOF | 6610 cat > conftest.$ac_ext <<EOF |
6315 #line 6316 "configure" | 6611 #line 6612 "configure" |
6316 #include "confdefs.h" | 6612 #include "confdefs.h" |
6317 #include <sys/cpustats.h> | 6613 #include <sys/cpustats.h> |
6318 EOF | 6614 EOF |
6319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6320 { (eval echo configure:6321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6616 { (eval echo configure:6617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6322 if test -z "$ac_err"; then | 6618 if test -z "$ac_err"; then |
6323 rm -rf conftest* | 6619 rm -rf conftest* |
6324 eval "ac_cv_header_$ac_safe=yes" | 6620 eval "ac_cv_header_$ac_safe=yes" |
6325 else | 6621 else |
6346 if test $ac_have_func = no; then | 6642 if test $ac_have_func = no; then |
6347 for ac_hdr in mach/mach.h | 6643 for ac_hdr in mach/mach.h |
6348 do | 6644 do |
6349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6351 echo "configure:6352: checking for $ac_hdr" >&5 | 6647 echo "configure:6648: checking for $ac_hdr" >&5 |
6352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6353 echo $ac_n "(cached) $ac_c" 1>&6 | 6649 echo $ac_n "(cached) $ac_c" 1>&6 |
6354 else | 6650 else |
6355 cat > conftest.$ac_ext <<EOF | 6651 cat > conftest.$ac_ext <<EOF |
6356 #line 6357 "configure" | 6652 #line 6653 "configure" |
6357 #include "confdefs.h" | 6653 #include "confdefs.h" |
6358 #include <$ac_hdr> | 6654 #include <$ac_hdr> |
6359 EOF | 6655 EOF |
6360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6361 { (eval echo configure:6362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6657 { (eval echo configure:6658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6363 if test -z "$ac_err"; then | 6659 if test -z "$ac_err"; then |
6364 rm -rf conftest* | 6660 rm -rf conftest* |
6365 eval "ac_cv_header_$ac_safe=yes" | 6661 eval "ac_cv_header_$ac_safe=yes" |
6366 else | 6662 else |
6386 | 6682 |
6387 fi | 6683 fi |
6388 | 6684 |
6389 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 6685 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
6390 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 6686 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
6391 echo "configure:6392: checking for nlist.h" >&5 | 6687 echo "configure:6688: checking for nlist.h" >&5 |
6392 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6393 echo $ac_n "(cached) $ac_c" 1>&6 | 6689 echo $ac_n "(cached) $ac_c" 1>&6 |
6394 else | 6690 else |
6395 cat > conftest.$ac_ext <<EOF | 6691 cat > conftest.$ac_ext <<EOF |
6396 #line 6397 "configure" | 6692 #line 6693 "configure" |
6397 #include "confdefs.h" | 6693 #include "confdefs.h" |
6398 #include <nlist.h> | 6694 #include <nlist.h> |
6399 EOF | 6695 EOF |
6400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6401 { (eval echo configure:6402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6697 { (eval echo configure:6698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6403 if test -z "$ac_err"; then | 6699 if test -z "$ac_err"; then |
6404 rm -rf conftest* | 6700 rm -rf conftest* |
6405 eval "ac_cv_header_$ac_safe=yes" | 6701 eval "ac_cv_header_$ac_safe=yes" |
6406 else | 6702 else |
6417 cat >> confdefs.h <<\EOF | 6713 cat >> confdefs.h <<\EOF |
6418 #define NLIST_STRUCT 1 | 6714 #define NLIST_STRUCT 1 |
6419 EOF | 6715 EOF |
6420 | 6716 |
6421 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | 6717 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 |
6422 echo "configure:6423: checking for n_un in struct nlist" >&5 | 6718 echo "configure:6719: checking for n_un in struct nlist" >&5 |
6423 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | 6719 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6424 echo $ac_n "(cached) $ac_c" 1>&6 | 6720 echo $ac_n "(cached) $ac_c" 1>&6 |
6425 else | 6721 else |
6426 cat > conftest.$ac_ext <<EOF | 6722 cat > conftest.$ac_ext <<EOF |
6427 #line 6428 "configure" | 6723 #line 6724 "configure" |
6428 #include "confdefs.h" | 6724 #include "confdefs.h" |
6429 #include <nlist.h> | 6725 #include <nlist.h> |
6430 int main() { | 6726 int main() { |
6431 struct nlist n; n.n_un.n_name = 0; | 6727 struct nlist n; n.n_un.n_name = 0; |
6432 ; return 0; } | 6728 ; return 0; } |
6433 EOF | 6729 EOF |
6434 if { (eval echo configure:6435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6730 if { (eval echo configure:6731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6435 rm -rf conftest* | 6731 rm -rf conftest* |
6436 ac_cv_struct_nlist_n_un=yes | 6732 ac_cv_struct_nlist_n_un=yes |
6437 else | 6733 else |
6438 echo "configure: failed program was:" >&5 | 6734 echo "configure: failed program was:" >&5 |
6439 cat conftest.$ac_ext >&5 | 6735 cat conftest.$ac_ext >&5 |
6456 fi | 6752 fi |
6457 fi # Do not have getloadavg in system libraries. | 6753 fi # Do not have getloadavg in system libraries. |
6458 | 6754 |
6459 # Some definitions of getloadavg require that the program be installed setgid. | 6755 # Some definitions of getloadavg require that the program be installed setgid. |
6460 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | 6756 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 |
6461 echo "configure:6462: checking whether getloadavg requires setgid" >&5 | 6757 echo "configure:6758: checking whether getloadavg requires setgid" >&5 |
6462 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | 6758 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6463 echo $ac_n "(cached) $ac_c" 1>&6 | 6759 echo $ac_n "(cached) $ac_c" 1>&6 |
6464 else | 6760 else |
6465 cat > conftest.$ac_ext <<EOF | 6761 cat > conftest.$ac_ext <<EOF |
6466 #line 6467 "configure" | 6762 #line 6763 "configure" |
6467 #include "confdefs.h" | 6763 #include "confdefs.h" |
6468 #include "$srcdir/getloadavg.c" | 6764 #include "$srcdir/getloadavg.c" |
6469 #ifdef LDAV_PRIVILEGED | 6765 #ifdef LDAV_PRIVILEGED |
6470 Yowza Am I SETGID yet | 6766 Yowza Am I SETGID yet |
6471 #endif | 6767 #endif |
6492 NEED_SETGID=false | 6788 NEED_SETGID=false |
6493 fi | 6789 fi |
6494 | 6790 |
6495 if test $ac_cv_func_getloadavg_setgid = yes; then | 6791 if test $ac_cv_func_getloadavg_setgid = yes; then |
6496 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | 6792 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 |
6497 echo "configure:6498: checking group of /dev/kmem" >&5 | 6793 echo "configure:6794: checking group of /dev/kmem" >&5 |
6498 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | 6794 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
6499 echo $ac_n "(cached) $ac_c" 1>&6 | 6795 echo $ac_n "(cached) $ac_c" 1>&6 |
6500 else | 6796 else |
6501 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 6797 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
6502 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 6798 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
6512 echo "$ac_t""$ac_cv_group_kmem" 1>&6 | 6808 echo "$ac_t""$ac_cv_group_kmem" 1>&6 |
6513 KMEM_GROUP=$ac_cv_group_kmem | 6809 KMEM_GROUP=$ac_cv_group_kmem |
6514 fi | 6810 fi |
6515 | 6811 |
6516 | 6812 |
6517 # Check whether --enable-largefile or --disable-largefile was given. | |
6518 if test "${enable_largefile+set}" = set; then | |
6519 enableval="$enable_largefile" | |
6520 : | |
6521 fi | |
6522 | |
6523 if test "$enable_largefile" != no; then | |
6524 | |
6525 echo $ac_n "checking for special C compiler options needed for large files""... $ac_c" 1>&6 | |
6526 echo "configure:6527: checking for special C compiler options needed for large files" >&5 | |
6527 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then | |
6528 echo $ac_n "(cached) $ac_c" 1>&6 | |
6529 else | |
6530 ac_cv_sys_largefile_CC=no | |
6531 if test "$GCC" != yes; then | |
6532 # IRIX 6.2 and later do not support large files by default, | |
6533 # so use the C compiler's -n32 option if that helps. | |
6534 cat > conftest.$ac_ext <<EOF | |
6535 #line 6536 "configure" | |
6536 #include "confdefs.h" | |
6537 #include <sys/types.h> | |
6538 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6539 | |
6540 int main() { | |
6541 | |
6542 ; return 0; } | |
6543 EOF | |
6544 if { (eval echo configure:6545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6545 : | |
6546 else | |
6547 echo "configure: failed program was:" >&5 | |
6548 cat conftest.$ac_ext >&5 | |
6549 rm -rf conftest* | |
6550 ac_save_CC="$CC" | |
6551 CC="$CC -n32" | |
6552 cat > conftest.$ac_ext <<EOF | |
6553 #line 6554 "configure" | |
6554 #include "confdefs.h" | |
6555 #include <sys/types.h> | |
6556 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6557 | |
6558 int main() { | |
6559 | |
6560 ; return 0; } | |
6561 EOF | |
6562 if { (eval echo configure:6563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6563 rm -rf conftest* | |
6564 ac_cv_sys_largefile_CC=' -n32' | |
6565 else | |
6566 echo "configure: failed program was:" >&5 | |
6567 cat conftest.$ac_ext >&5 | |
6568 fi | |
6569 rm -f conftest* | |
6570 CC="$ac_save_CC" | |
6571 fi | |
6572 rm -f conftest* | |
6573 fi | |
6574 fi | |
6575 | |
6576 echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6 | |
6577 if test "$ac_cv_sys_largefile_CC" != no; then | |
6578 CC="$CC$ac_cv_sys_largefile_CC" | |
6579 fi | |
6580 | |
6581 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
6582 echo "configure:6583: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
6583 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then | |
6584 echo $ac_n "(cached) $ac_c" 1>&6 | |
6585 else | |
6586 ac_cv_sys_file_offset_bits=no | |
6587 cat > conftest.$ac_ext <<EOF | |
6588 #line 6589 "configure" | |
6589 #include "confdefs.h" | |
6590 #include <sys/types.h> | |
6591 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6592 | |
6593 | |
6594 | |
6595 int main() { | |
6596 | |
6597 ; return 0; } | |
6598 EOF | |
6599 if { (eval echo configure:6600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6600 : | |
6601 else | |
6602 echo "configure: failed program was:" >&5 | |
6603 cat conftest.$ac_ext >&5 | |
6604 rm -rf conftest* | |
6605 cat > conftest.$ac_ext <<EOF | |
6606 #line 6607 "configure" | |
6607 #include "confdefs.h" | |
6608 #define _FILE_OFFSET_BITS 64 | |
6609 #include <sys/types.h> | |
6610 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6611 | |
6612 | |
6613 | |
6614 int main() { | |
6615 | |
6616 ; return 0; } | |
6617 EOF | |
6618 if { (eval echo configure:6619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6619 rm -rf conftest* | |
6620 ac_cv_sys_file_offset_bits=64 | |
6621 else | |
6622 echo "configure: failed program was:" >&5 | |
6623 cat conftest.$ac_ext >&5 | |
6624 fi | |
6625 rm -f conftest* | |
6626 fi | |
6627 rm -f conftest* | |
6628 fi | |
6629 | |
6630 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
6631 if test "$ac_cv_sys_file_offset_bits" != no; then | |
6632 cat >> confdefs.h <<EOF | |
6633 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
6634 EOF | |
6635 | |
6636 fi | |
6637 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | |
6638 echo "configure:6639: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
6639 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | |
6640 echo $ac_n "(cached) $ac_c" 1>&6 | |
6641 else | |
6642 ac_cv_sys_largefile_source=no | |
6643 cat > conftest.$ac_ext <<EOF | |
6644 #line 6645 "configure" | |
6645 #include "confdefs.h" | |
6646 #include <sys/types.h> | |
6647 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6648 | |
6649 #include <stdio.h> | |
6650 | |
6651 int main() { | |
6652 return !ftello; | |
6653 ; return 0; } | |
6654 EOF | |
6655 if { (eval echo configure:6656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6656 : | |
6657 else | |
6658 echo "configure: failed program was:" >&5 | |
6659 cat conftest.$ac_ext >&5 | |
6660 rm -rf conftest* | |
6661 cat > conftest.$ac_ext <<EOF | |
6662 #line 6663 "configure" | |
6663 #include "confdefs.h" | |
6664 #define _LARGEFILE_SOURCE 1 | |
6665 #include <sys/types.h> | |
6666 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6667 | |
6668 #include <stdio.h> | |
6669 | |
6670 int main() { | |
6671 return !ftello; | |
6672 ; return 0; } | |
6673 EOF | |
6674 if { (eval echo configure:6675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6675 rm -rf conftest* | |
6676 ac_cv_sys_largefile_source=1 | |
6677 else | |
6678 echo "configure: failed program was:" >&5 | |
6679 cat conftest.$ac_ext >&5 | |
6680 fi | |
6681 rm -f conftest* | |
6682 fi | |
6683 rm -f conftest* | |
6684 fi | |
6685 | |
6686 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6 | |
6687 if test "$ac_cv_sys_largefile_source" != no; then | |
6688 cat >> confdefs.h <<EOF | |
6689 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
6690 EOF | |
6691 | |
6692 fi | |
6693 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
6694 echo "configure:6695: checking for _LARGE_FILES value needed for large files" >&5 | |
6695 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then | |
6696 echo $ac_n "(cached) $ac_c" 1>&6 | |
6697 else | |
6698 ac_cv_sys_large_files=no | |
6699 cat > conftest.$ac_ext <<EOF | |
6700 #line 6701 "configure" | |
6701 #include "confdefs.h" | |
6702 #include <sys/types.h> | |
6703 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6704 | |
6705 | |
6706 | |
6707 int main() { | |
6708 | |
6709 ; return 0; } | |
6710 EOF | |
6711 if { (eval echo configure:6712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6712 : | |
6713 else | |
6714 echo "configure: failed program was:" >&5 | |
6715 cat conftest.$ac_ext >&5 | |
6716 rm -rf conftest* | |
6717 cat > conftest.$ac_ext <<EOF | |
6718 #line 6719 "configure" | |
6719 #include "confdefs.h" | |
6720 #define _LARGE_FILES 1 | |
6721 #include <sys/types.h> | |
6722 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6723 | |
6724 | |
6725 | |
6726 int main() { | |
6727 | |
6728 ; return 0; } | |
6729 EOF | |
6730 if { (eval echo configure:6731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6731 rm -rf conftest* | |
6732 ac_cv_sys_large_files=1 | |
6733 else | |
6734 echo "configure: failed program was:" >&5 | |
6735 cat conftest.$ac_ext >&5 | |
6736 fi | |
6737 rm -f conftest* | |
6738 fi | |
6739 rm -f conftest* | |
6740 fi | |
6741 | |
6742 echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
6743 if test "$ac_cv_sys_large_files" != no; then | |
6744 cat >> confdefs.h <<EOF | |
6745 #define _LARGE_FILES $ac_cv_sys_large_files | |
6746 EOF | |
6747 | |
6748 fi | |
6749 echo $ac_n "checking for _XOPEN_SOURCE value needed for large files""... $ac_c" 1>&6 | |
6750 echo "configure:6751: checking for _XOPEN_SOURCE value needed for large files" >&5 | |
6751 if eval "test \"`echo '$''{'ac_cv_sys_xopen_source'+set}'`\" = set"; then | |
6752 echo $ac_n "(cached) $ac_c" 1>&6 | |
6753 else | |
6754 ac_cv_sys_xopen_source=no | |
6755 cat > conftest.$ac_ext <<EOF | |
6756 #line 6757 "configure" | |
6757 #include "confdefs.h" | |
6758 #include <sys/types.h> | |
6759 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6760 | |
6761 #include <stdio.h> | |
6762 | |
6763 int main() { | |
6764 return !ftello; | |
6765 ; return 0; } | |
6766 EOF | |
6767 if { (eval echo configure:6768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6768 : | |
6769 else | |
6770 echo "configure: failed program was:" >&5 | |
6771 cat conftest.$ac_ext >&5 | |
6772 rm -rf conftest* | |
6773 cat > conftest.$ac_ext <<EOF | |
6774 #line 6775 "configure" | |
6775 #include "confdefs.h" | |
6776 #define _XOPEN_SOURCE 500 | |
6777 #include <sys/types.h> | |
6778 int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1]; | |
6779 | |
6780 #include <stdio.h> | |
6781 | |
6782 int main() { | |
6783 return !ftello; | |
6784 ; return 0; } | |
6785 EOF | |
6786 if { (eval echo configure:6787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6787 rm -rf conftest* | |
6788 ac_cv_sys_xopen_source=500 | |
6789 else | |
6790 echo "configure: failed program was:" >&5 | |
6791 cat conftest.$ac_ext >&5 | |
6792 fi | |
6793 rm -f conftest* | |
6794 fi | |
6795 rm -f conftest* | |
6796 fi | |
6797 | |
6798 echo "$ac_t""$ac_cv_sys_xopen_source" 1>&6 | |
6799 if test "$ac_cv_sys_xopen_source" != no; then | |
6800 cat >> confdefs.h <<EOF | |
6801 #define _XOPEN_SOURCE $ac_cv_sys_xopen_source | |
6802 EOF | |
6803 | |
6804 fi | |
6805 fi | |
6806 | |
6807 for ac_func in ftello | 6813 for ac_func in ftello |
6808 do | 6814 do |
6809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6810 echo "configure:6811: checking for $ac_func" >&5 | 6816 echo "configure:6817: checking for $ac_func" >&5 |
6811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6812 echo $ac_n "(cached) $ac_c" 1>&6 | 6818 echo $ac_n "(cached) $ac_c" 1>&6 |
6813 else | 6819 else |
6814 cat > conftest.$ac_ext <<EOF | 6820 cat > conftest.$ac_ext <<EOF |
6815 #line 6816 "configure" | 6821 #line 6822 "configure" |
6816 #include "confdefs.h" | 6822 #include "confdefs.h" |
6817 /* System header to define __stub macros and hopefully few prototypes, | 6823 /* System header to define __stub macros and hopefully few prototypes, |
6818 which can conflict with char $ac_func(); below. */ | 6824 which can conflict with char $ac_func(); below. */ |
6819 #include <assert.h> | 6825 #include <assert.h> |
6820 /* Override any gcc2 internal prototype to avoid an error. */ | 6826 /* Override any gcc2 internal prototype to avoid an error. */ |
6833 $ac_func(); | 6839 $ac_func(); |
6834 #endif | 6840 #endif |
6835 | 6841 |
6836 ; return 0; } | 6842 ; return 0; } |
6837 EOF | 6843 EOF |
6838 if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6839 rm -rf conftest* | 6845 rm -rf conftest* |
6840 eval "ac_cv_func_$ac_func=yes" | 6846 eval "ac_cv_func_$ac_func=yes" |
6841 else | 6847 else |
6842 echo "configure: failed program was:" >&5 | 6848 echo "configure: failed program was:" >&5 |
6843 cat conftest.$ac_ext >&5 | 6849 cat conftest.$ac_ext >&5 |
6863 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE | 6869 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE |
6864 # if we need it. | 6870 # if we need it. |
6865 for ac_func in grantpt | 6871 for ac_func in grantpt |
6866 do | 6872 do |
6867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6868 echo "configure:6869: checking for $ac_func" >&5 | 6874 echo "configure:6875: checking for $ac_func" >&5 |
6869 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6870 echo $ac_n "(cached) $ac_c" 1>&6 | 6876 echo $ac_n "(cached) $ac_c" 1>&6 |
6871 else | 6877 else |
6872 cat > conftest.$ac_ext <<EOF | 6878 cat > conftest.$ac_ext <<EOF |
6873 #line 6874 "configure" | 6879 #line 6880 "configure" |
6874 #include "confdefs.h" | 6880 #include "confdefs.h" |
6875 /* System header to define __stub macros and hopefully few prototypes, | 6881 /* System header to define __stub macros and hopefully few prototypes, |
6876 which can conflict with char $ac_func(); below. */ | 6882 which can conflict with char $ac_func(); below. */ |
6877 #include <assert.h> | 6883 #include <assert.h> |
6878 /* Override any gcc2 internal prototype to avoid an error. */ | 6884 /* Override any gcc2 internal prototype to avoid an error. */ |
6891 $ac_func(); | 6897 $ac_func(); |
6892 #endif | 6898 #endif |
6893 | 6899 |
6894 ; return 0; } | 6900 ; return 0; } |
6895 EOF | 6901 EOF |
6896 if { (eval echo configure:6897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6902 if { (eval echo configure:6903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6897 rm -rf conftest* | 6903 rm -rf conftest* |
6898 eval "ac_cv_func_$ac_func=yes" | 6904 eval "ac_cv_func_$ac_func=yes" |
6899 else | 6905 else |
6900 echo "configure: failed program was:" >&5 | 6906 echo "configure: failed program was:" >&5 |
6901 cat conftest.$ac_ext >&5 | 6907 cat conftest.$ac_ext >&5 |
6920 | 6926 |
6921 # PTY-related GNU extensions. | 6927 # PTY-related GNU extensions. |
6922 for ac_func in getpt | 6928 for ac_func in getpt |
6923 do | 6929 do |
6924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6925 echo "configure:6926: checking for $ac_func" >&5 | 6931 echo "configure:6932: checking for $ac_func" >&5 |
6926 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6932 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6927 echo $ac_n "(cached) $ac_c" 1>&6 | 6933 echo $ac_n "(cached) $ac_c" 1>&6 |
6928 else | 6934 else |
6929 cat > conftest.$ac_ext <<EOF | 6935 cat > conftest.$ac_ext <<EOF |
6930 #line 6931 "configure" | 6936 #line 6937 "configure" |
6931 #include "confdefs.h" | 6937 #include "confdefs.h" |
6932 /* System header to define __stub macros and hopefully few prototypes, | 6938 /* System header to define __stub macros and hopefully few prototypes, |
6933 which can conflict with char $ac_func(); below. */ | 6939 which can conflict with char $ac_func(); below. */ |
6934 #include <assert.h> | 6940 #include <assert.h> |
6935 /* Override any gcc2 internal prototype to avoid an error. */ | 6941 /* Override any gcc2 internal prototype to avoid an error. */ |
6948 $ac_func(); | 6954 $ac_func(); |
6949 #endif | 6955 #endif |
6950 | 6956 |
6951 ; return 0; } | 6957 ; return 0; } |
6952 EOF | 6958 EOF |
6953 if { (eval echo configure:6954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6954 rm -rf conftest* | 6960 rm -rf conftest* |
6955 eval "ac_cv_func_$ac_func=yes" | 6961 eval "ac_cv_func_$ac_func=yes" |
6956 else | 6962 else |
6957 echo "configure: failed program was:" >&5 | 6963 echo "configure: failed program was:" >&5 |
6958 cat conftest.$ac_ext >&5 | 6964 cat conftest.$ac_ext >&5 |
6978 # Check this now, so that we will NOT find the above functions in ncurses. | 6984 # Check this now, so that we will NOT find the above functions in ncurses. |
6979 # That is because we have not set up to link ncurses in lib-src. | 6985 # That is because we have not set up to link ncurses in lib-src. |
6980 # It's better to believe a function is not available | 6986 # It's better to believe a function is not available |
6981 # than to expect to find it in ncurses. | 6987 # than to expect to find it in ncurses. |
6982 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 6988 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
6983 echo "configure:6984: checking for tparm in -lncurses" >&5 | 6989 echo "configure:6990: checking for tparm in -lncurses" >&5 |
6984 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 6990 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
6985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6986 echo $ac_n "(cached) $ac_c" 1>&6 | 6992 echo $ac_n "(cached) $ac_c" 1>&6 |
6987 else | 6993 else |
6988 ac_save_LIBS="$LIBS" | 6994 ac_save_LIBS="$LIBS" |
6989 LIBS="-lncurses $LIBS" | 6995 LIBS="-lncurses $LIBS" |
6990 cat > conftest.$ac_ext <<EOF | 6996 cat > conftest.$ac_ext <<EOF |
6991 #line 6992 "configure" | 6997 #line 6998 "configure" |
6992 #include "confdefs.h" | 6998 #include "confdefs.h" |
6993 /* Override any gcc2 internal prototype to avoid an error. */ | 6999 /* Override any gcc2 internal prototype to avoid an error. */ |
6994 /* We use char because int might match the return type of a gcc2 | 7000 /* We use char because int might match the return type of a gcc2 |
6995 builtin and then its argument prototype would still apply. */ | 7001 builtin and then its argument prototype would still apply. */ |
6996 char tparm(); | 7002 char tparm(); |
6997 | 7003 |
6998 int main() { | 7004 int main() { |
6999 tparm() | 7005 tparm() |
7000 ; return 0; } | 7006 ; return 0; } |
7001 EOF | 7007 EOF |
7002 if { (eval echo configure:7003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7008 if { (eval echo configure:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7003 rm -rf conftest* | 7009 rm -rf conftest* |
7004 eval "ac_cv_lib_$ac_lib_var=yes" | 7010 eval "ac_cv_lib_$ac_lib_var=yes" |
7005 else | 7011 else |
7006 echo "configure: failed program was:" >&5 | 7012 echo "configure: failed program was:" >&5 |
7007 cat conftest.$ac_ext >&5 | 7013 cat conftest.$ac_ext >&5 |
7028 | 7034 |
7029 | 7035 |
7030 # These tell us which Kerberos-related libraries to use. | 7036 # These tell us which Kerberos-related libraries to use. |
7031 if test "${with_kerberos+set}" = set; then | 7037 if test "${with_kerberos+set}" = set; then |
7032 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 7038 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
7033 echo "configure:7034: checking for com_err in -lcom_err" >&5 | 7039 echo "configure:7040: checking for com_err in -lcom_err" >&5 |
7034 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 7040 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
7035 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7041 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7036 echo $ac_n "(cached) $ac_c" 1>&6 | 7042 echo $ac_n "(cached) $ac_c" 1>&6 |
7037 else | 7043 else |
7038 ac_save_LIBS="$LIBS" | 7044 ac_save_LIBS="$LIBS" |
7039 LIBS="-lcom_err $LIBS" | 7045 LIBS="-lcom_err $LIBS" |
7040 cat > conftest.$ac_ext <<EOF | 7046 cat > conftest.$ac_ext <<EOF |
7041 #line 7042 "configure" | 7047 #line 7048 "configure" |
7042 #include "confdefs.h" | 7048 #include "confdefs.h" |
7043 /* Override any gcc2 internal prototype to avoid an error. */ | 7049 /* Override any gcc2 internal prototype to avoid an error. */ |
7044 /* We use char because int might match the return type of a gcc2 | 7050 /* We use char because int might match the return type of a gcc2 |
7045 builtin and then its argument prototype would still apply. */ | 7051 builtin and then its argument prototype would still apply. */ |
7046 char com_err(); | 7052 char com_err(); |
7047 | 7053 |
7048 int main() { | 7054 int main() { |
7049 com_err() | 7055 com_err() |
7050 ; return 0; } | 7056 ; return 0; } |
7051 EOF | 7057 EOF |
7052 if { (eval echo configure:7053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7053 rm -rf conftest* | 7059 rm -rf conftest* |
7054 eval "ac_cv_lib_$ac_lib_var=yes" | 7060 eval "ac_cv_lib_$ac_lib_var=yes" |
7055 else | 7061 else |
7056 echo "configure: failed program was:" >&5 | 7062 echo "configure: failed program was:" >&5 |
7057 cat conftest.$ac_ext >&5 | 7063 cat conftest.$ac_ext >&5 |
7075 else | 7081 else |
7076 echo "$ac_t""no" 1>&6 | 7082 echo "$ac_t""no" 1>&6 |
7077 fi | 7083 fi |
7078 | 7084 |
7079 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 7085 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
7080 echo "configure:7081: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 7086 echo "configure:7087: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
7081 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7087 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7083 echo $ac_n "(cached) $ac_c" 1>&6 | 7089 echo $ac_n "(cached) $ac_c" 1>&6 |
7084 else | 7090 else |
7085 ac_save_LIBS="$LIBS" | 7091 ac_save_LIBS="$LIBS" |
7086 LIBS="-lk5crypto $LIBS" | 7092 LIBS="-lk5crypto $LIBS" |
7087 cat > conftest.$ac_ext <<EOF | 7093 cat > conftest.$ac_ext <<EOF |
7088 #line 7089 "configure" | 7094 #line 7095 "configure" |
7089 #include "confdefs.h" | 7095 #include "confdefs.h" |
7090 /* Override any gcc2 internal prototype to avoid an error. */ | 7096 /* Override any gcc2 internal prototype to avoid an error. */ |
7091 /* We use char because int might match the return type of a gcc2 | 7097 /* We use char because int might match the return type of a gcc2 |
7092 builtin and then its argument prototype would still apply. */ | 7098 builtin and then its argument prototype would still apply. */ |
7093 char mit_des_cbc_encrypt(); | 7099 char mit_des_cbc_encrypt(); |
7094 | 7100 |
7095 int main() { | 7101 int main() { |
7096 mit_des_cbc_encrypt() | 7102 mit_des_cbc_encrypt() |
7097 ; return 0; } | 7103 ; return 0; } |
7098 EOF | 7104 EOF |
7099 if { (eval echo configure:7100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7100 rm -rf conftest* | 7106 rm -rf conftest* |
7101 eval "ac_cv_lib_$ac_lib_var=yes" | 7107 eval "ac_cv_lib_$ac_lib_var=yes" |
7102 else | 7108 else |
7103 echo "configure: failed program was:" >&5 | 7109 echo "configure: failed program was:" >&5 |
7104 cat conftest.$ac_ext >&5 | 7110 cat conftest.$ac_ext >&5 |
7122 else | 7128 else |
7123 echo "$ac_t""no" 1>&6 | 7129 echo "$ac_t""no" 1>&6 |
7124 fi | 7130 fi |
7125 | 7131 |
7126 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 7132 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
7127 echo "configure:7128: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 7133 echo "configure:7134: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
7128 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7134 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7129 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7130 echo $ac_n "(cached) $ac_c" 1>&6 | 7136 echo $ac_n "(cached) $ac_c" 1>&6 |
7131 else | 7137 else |
7132 ac_save_LIBS="$LIBS" | 7138 ac_save_LIBS="$LIBS" |
7133 LIBS="-lcrypto $LIBS" | 7139 LIBS="-lcrypto $LIBS" |
7134 cat > conftest.$ac_ext <<EOF | 7140 cat > conftest.$ac_ext <<EOF |
7135 #line 7136 "configure" | 7141 #line 7142 "configure" |
7136 #include "confdefs.h" | 7142 #include "confdefs.h" |
7137 /* Override any gcc2 internal prototype to avoid an error. */ | 7143 /* Override any gcc2 internal prototype to avoid an error. */ |
7138 /* We use char because int might match the return type of a gcc2 | 7144 /* We use char because int might match the return type of a gcc2 |
7139 builtin and then its argument prototype would still apply. */ | 7145 builtin and then its argument prototype would still apply. */ |
7140 char mit_des_cbc_encrypt(); | 7146 char mit_des_cbc_encrypt(); |
7141 | 7147 |
7142 int main() { | 7148 int main() { |
7143 mit_des_cbc_encrypt() | 7149 mit_des_cbc_encrypt() |
7144 ; return 0; } | 7150 ; return 0; } |
7145 EOF | 7151 EOF |
7146 if { (eval echo configure:7147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7147 rm -rf conftest* | 7153 rm -rf conftest* |
7148 eval "ac_cv_lib_$ac_lib_var=yes" | 7154 eval "ac_cv_lib_$ac_lib_var=yes" |
7149 else | 7155 else |
7150 echo "configure: failed program was:" >&5 | 7156 echo "configure: failed program was:" >&5 |
7151 cat conftest.$ac_ext >&5 | 7157 cat conftest.$ac_ext >&5 |
7169 else | 7175 else |
7170 echo "$ac_t""no" 1>&6 | 7176 echo "$ac_t""no" 1>&6 |
7171 fi | 7177 fi |
7172 | 7178 |
7173 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 7179 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
7174 echo "configure:7175: checking for krb5_init_context in -lkrb5" >&5 | 7180 echo "configure:7181: checking for krb5_init_context in -lkrb5" >&5 |
7175 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 7181 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
7176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7177 echo $ac_n "(cached) $ac_c" 1>&6 | 7183 echo $ac_n "(cached) $ac_c" 1>&6 |
7178 else | 7184 else |
7179 ac_save_LIBS="$LIBS" | 7185 ac_save_LIBS="$LIBS" |
7180 LIBS="-lkrb5 $LIBS" | 7186 LIBS="-lkrb5 $LIBS" |
7181 cat > conftest.$ac_ext <<EOF | 7187 cat > conftest.$ac_ext <<EOF |
7182 #line 7183 "configure" | 7188 #line 7189 "configure" |
7183 #include "confdefs.h" | 7189 #include "confdefs.h" |
7184 /* Override any gcc2 internal prototype to avoid an error. */ | 7190 /* Override any gcc2 internal prototype to avoid an error. */ |
7185 /* We use char because int might match the return type of a gcc2 | 7191 /* We use char because int might match the return type of a gcc2 |
7186 builtin and then its argument prototype would still apply. */ | 7192 builtin and then its argument prototype would still apply. */ |
7187 char krb5_init_context(); | 7193 char krb5_init_context(); |
7188 | 7194 |
7189 int main() { | 7195 int main() { |
7190 krb5_init_context() | 7196 krb5_init_context() |
7191 ; return 0; } | 7197 ; return 0; } |
7192 EOF | 7198 EOF |
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7194 rm -rf conftest* | 7200 rm -rf conftest* |
7195 eval "ac_cv_lib_$ac_lib_var=yes" | 7201 eval "ac_cv_lib_$ac_lib_var=yes" |
7196 else | 7202 else |
7197 echo "configure: failed program was:" >&5 | 7203 echo "configure: failed program was:" >&5 |
7198 cat conftest.$ac_ext >&5 | 7204 cat conftest.$ac_ext >&5 |
7217 echo "$ac_t""no" 1>&6 | 7223 echo "$ac_t""no" 1>&6 |
7218 fi | 7224 fi |
7219 | 7225 |
7220 if test "${with_kerberos5+set}" != set; then | 7226 if test "${with_kerberos5+set}" != set; then |
7221 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 7227 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
7222 echo "configure:7223: checking for des_cbc_encrypt in -ldes425" >&5 | 7228 echo "configure:7229: checking for des_cbc_encrypt in -ldes425" >&5 |
7223 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7229 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7225 echo $ac_n "(cached) $ac_c" 1>&6 | 7231 echo $ac_n "(cached) $ac_c" 1>&6 |
7226 else | 7232 else |
7227 ac_save_LIBS="$LIBS" | 7233 ac_save_LIBS="$LIBS" |
7228 LIBS="-ldes425 $LIBS" | 7234 LIBS="-ldes425 $LIBS" |
7229 cat > conftest.$ac_ext <<EOF | 7235 cat > conftest.$ac_ext <<EOF |
7230 #line 7231 "configure" | 7236 #line 7237 "configure" |
7231 #include "confdefs.h" | 7237 #include "confdefs.h" |
7232 /* Override any gcc2 internal prototype to avoid an error. */ | 7238 /* Override any gcc2 internal prototype to avoid an error. */ |
7233 /* We use char because int might match the return type of a gcc2 | 7239 /* We use char because int might match the return type of a gcc2 |
7234 builtin and then its argument prototype would still apply. */ | 7240 builtin and then its argument prototype would still apply. */ |
7235 char des_cbc_encrypt(); | 7241 char des_cbc_encrypt(); |
7236 | 7242 |
7237 int main() { | 7243 int main() { |
7238 des_cbc_encrypt() | 7244 des_cbc_encrypt() |
7239 ; return 0; } | 7245 ; return 0; } |
7240 EOF | 7246 EOF |
7241 if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7242 rm -rf conftest* | 7248 rm -rf conftest* |
7243 eval "ac_cv_lib_$ac_lib_var=yes" | 7249 eval "ac_cv_lib_$ac_lib_var=yes" |
7244 else | 7250 else |
7245 echo "configure: failed program was:" >&5 | 7251 echo "configure: failed program was:" >&5 |
7246 cat conftest.$ac_ext >&5 | 7252 cat conftest.$ac_ext >&5 |
7262 LIBS="-ldes425 $LIBS" | 7268 LIBS="-ldes425 $LIBS" |
7263 | 7269 |
7264 else | 7270 else |
7265 echo "$ac_t""no" 1>&6 | 7271 echo "$ac_t""no" 1>&6 |
7266 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 7272 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
7267 echo "configure:7268: checking for des_cbc_encrypt in -ldes" >&5 | 7273 echo "configure:7274: checking for des_cbc_encrypt in -ldes" >&5 |
7268 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7274 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7275 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7270 echo $ac_n "(cached) $ac_c" 1>&6 | 7276 echo $ac_n "(cached) $ac_c" 1>&6 |
7271 else | 7277 else |
7272 ac_save_LIBS="$LIBS" | 7278 ac_save_LIBS="$LIBS" |
7273 LIBS="-ldes $LIBS" | 7279 LIBS="-ldes $LIBS" |
7274 cat > conftest.$ac_ext <<EOF | 7280 cat > conftest.$ac_ext <<EOF |
7275 #line 7276 "configure" | 7281 #line 7282 "configure" |
7276 #include "confdefs.h" | 7282 #include "confdefs.h" |
7277 /* Override any gcc2 internal prototype to avoid an error. */ | 7283 /* Override any gcc2 internal prototype to avoid an error. */ |
7278 /* We use char because int might match the return type of a gcc2 | 7284 /* We use char because int might match the return type of a gcc2 |
7279 builtin and then its argument prototype would still apply. */ | 7285 builtin and then its argument prototype would still apply. */ |
7280 char des_cbc_encrypt(); | 7286 char des_cbc_encrypt(); |
7281 | 7287 |
7282 int main() { | 7288 int main() { |
7283 des_cbc_encrypt() | 7289 des_cbc_encrypt() |
7284 ; return 0; } | 7290 ; return 0; } |
7285 EOF | 7291 EOF |
7286 if { (eval echo configure:7287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7292 if { (eval echo configure:7293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7287 rm -rf conftest* | 7293 rm -rf conftest* |
7288 eval "ac_cv_lib_$ac_lib_var=yes" | 7294 eval "ac_cv_lib_$ac_lib_var=yes" |
7289 else | 7295 else |
7290 echo "configure: failed program was:" >&5 | 7296 echo "configure: failed program was:" >&5 |
7291 cat conftest.$ac_ext >&5 | 7297 cat conftest.$ac_ext >&5 |
7311 fi | 7317 fi |
7312 | 7318 |
7313 fi | 7319 fi |
7314 | 7320 |
7315 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 7321 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
7316 echo "configure:7317: checking for krb_get_cred in -lkrb4" >&5 | 7322 echo "configure:7323: checking for krb_get_cred in -lkrb4" >&5 |
7317 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7323 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7318 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7319 echo $ac_n "(cached) $ac_c" 1>&6 | 7325 echo $ac_n "(cached) $ac_c" 1>&6 |
7320 else | 7326 else |
7321 ac_save_LIBS="$LIBS" | 7327 ac_save_LIBS="$LIBS" |
7322 LIBS="-lkrb4 $LIBS" | 7328 LIBS="-lkrb4 $LIBS" |
7323 cat > conftest.$ac_ext <<EOF | 7329 cat > conftest.$ac_ext <<EOF |
7324 #line 7325 "configure" | 7330 #line 7331 "configure" |
7325 #include "confdefs.h" | 7331 #include "confdefs.h" |
7326 /* Override any gcc2 internal prototype to avoid an error. */ | 7332 /* Override any gcc2 internal prototype to avoid an error. */ |
7327 /* We use char because int might match the return type of a gcc2 | 7333 /* We use char because int might match the return type of a gcc2 |
7328 builtin and then its argument prototype would still apply. */ | 7334 builtin and then its argument prototype would still apply. */ |
7329 char krb_get_cred(); | 7335 char krb_get_cred(); |
7330 | 7336 |
7331 int main() { | 7337 int main() { |
7332 krb_get_cred() | 7338 krb_get_cred() |
7333 ; return 0; } | 7339 ; return 0; } |
7334 EOF | 7340 EOF |
7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7341 if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7336 rm -rf conftest* | 7342 rm -rf conftest* |
7337 eval "ac_cv_lib_$ac_lib_var=yes" | 7343 eval "ac_cv_lib_$ac_lib_var=yes" |
7338 else | 7344 else |
7339 echo "configure: failed program was:" >&5 | 7345 echo "configure: failed program was:" >&5 |
7340 cat conftest.$ac_ext >&5 | 7346 cat conftest.$ac_ext >&5 |
7356 LIBS="-lkrb4 $LIBS" | 7362 LIBS="-lkrb4 $LIBS" |
7357 | 7363 |
7358 else | 7364 else |
7359 echo "$ac_t""no" 1>&6 | 7365 echo "$ac_t""no" 1>&6 |
7360 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 7366 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
7361 echo "configure:7362: checking for krb_get_cred in -lkrb" >&5 | 7367 echo "configure:7368: checking for krb_get_cred in -lkrb" >&5 |
7362 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7368 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7364 echo $ac_n "(cached) $ac_c" 1>&6 | 7370 echo $ac_n "(cached) $ac_c" 1>&6 |
7365 else | 7371 else |
7366 ac_save_LIBS="$LIBS" | 7372 ac_save_LIBS="$LIBS" |
7367 LIBS="-lkrb $LIBS" | 7373 LIBS="-lkrb $LIBS" |
7368 cat > conftest.$ac_ext <<EOF | 7374 cat > conftest.$ac_ext <<EOF |
7369 #line 7370 "configure" | 7375 #line 7376 "configure" |
7370 #include "confdefs.h" | 7376 #include "confdefs.h" |
7371 /* Override any gcc2 internal prototype to avoid an error. */ | 7377 /* Override any gcc2 internal prototype to avoid an error. */ |
7372 /* We use char because int might match the return type of a gcc2 | 7378 /* We use char because int might match the return type of a gcc2 |
7373 builtin and then its argument prototype would still apply. */ | 7379 builtin and then its argument prototype would still apply. */ |
7374 char krb_get_cred(); | 7380 char krb_get_cred(); |
7375 | 7381 |
7376 int main() { | 7382 int main() { |
7377 krb_get_cred() | 7383 krb_get_cred() |
7378 ; return 0; } | 7384 ; return 0; } |
7379 EOF | 7385 EOF |
7380 if { (eval echo configure:7381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7381 rm -rf conftest* | 7387 rm -rf conftest* |
7382 eval "ac_cv_lib_$ac_lib_var=yes" | 7388 eval "ac_cv_lib_$ac_lib_var=yes" |
7383 else | 7389 else |
7384 echo "configure: failed program was:" >&5 | 7390 echo "configure: failed program was:" >&5 |
7385 cat conftest.$ac_ext >&5 | 7391 cat conftest.$ac_ext >&5 |
7411 if test "${with_kerberos5+set}" = set; then | 7417 if test "${with_kerberos5+set}" = set; then |
7412 for ac_hdr in krb5.h | 7418 for ac_hdr in krb5.h |
7413 do | 7419 do |
7414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7416 echo "configure:7417: checking for $ac_hdr" >&5 | 7422 echo "configure:7423: checking for $ac_hdr" >&5 |
7417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7423 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7418 echo $ac_n "(cached) $ac_c" 1>&6 | 7424 echo $ac_n "(cached) $ac_c" 1>&6 |
7419 else | 7425 else |
7420 cat > conftest.$ac_ext <<EOF | 7426 cat > conftest.$ac_ext <<EOF |
7421 #line 7422 "configure" | 7427 #line 7428 "configure" |
7422 #include "confdefs.h" | 7428 #include "confdefs.h" |
7423 #include <$ac_hdr> | 7429 #include <$ac_hdr> |
7424 EOF | 7430 EOF |
7425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7426 { (eval echo configure:7427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7432 { (eval echo configure:7433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7428 if test -z "$ac_err"; then | 7434 if test -z "$ac_err"; then |
7429 rm -rf conftest* | 7435 rm -rf conftest* |
7430 eval "ac_cv_header_$ac_safe=yes" | 7436 eval "ac_cv_header_$ac_safe=yes" |
7431 else | 7437 else |
7452 else | 7458 else |
7453 for ac_hdr in des.h | 7459 for ac_hdr in des.h |
7454 do | 7460 do |
7455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7457 echo "configure:7458: checking for $ac_hdr" >&5 | 7463 echo "configure:7464: checking for $ac_hdr" >&5 |
7458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7464 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7459 echo $ac_n "(cached) $ac_c" 1>&6 | 7465 echo $ac_n "(cached) $ac_c" 1>&6 |
7460 else | 7466 else |
7461 cat > conftest.$ac_ext <<EOF | 7467 cat > conftest.$ac_ext <<EOF |
7462 #line 7463 "configure" | 7468 #line 7469 "configure" |
7463 #include "confdefs.h" | 7469 #include "confdefs.h" |
7464 #include <$ac_hdr> | 7470 #include <$ac_hdr> |
7465 EOF | 7471 EOF |
7466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7467 { (eval echo configure:7468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7473 { (eval echo configure:7474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7469 if test -z "$ac_err"; then | 7475 if test -z "$ac_err"; then |
7470 rm -rf conftest* | 7476 rm -rf conftest* |
7471 eval "ac_cv_header_$ac_safe=yes" | 7477 eval "ac_cv_header_$ac_safe=yes" |
7472 else | 7478 else |
7489 echo "$ac_t""no" 1>&6 | 7495 echo "$ac_t""no" 1>&6 |
7490 for ac_hdr in kerberosIV/des.h | 7496 for ac_hdr in kerberosIV/des.h |
7491 do | 7497 do |
7492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7494 echo "configure:7495: checking for $ac_hdr" >&5 | 7500 echo "configure:7501: checking for $ac_hdr" >&5 |
7495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7496 echo $ac_n "(cached) $ac_c" 1>&6 | 7502 echo $ac_n "(cached) $ac_c" 1>&6 |
7497 else | 7503 else |
7498 cat > conftest.$ac_ext <<EOF | 7504 cat > conftest.$ac_ext <<EOF |
7499 #line 7500 "configure" | 7505 #line 7506 "configure" |
7500 #include "confdefs.h" | 7506 #include "confdefs.h" |
7501 #include <$ac_hdr> | 7507 #include <$ac_hdr> |
7502 EOF | 7508 EOF |
7503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7504 { (eval echo configure:7505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7510 { (eval echo configure:7511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7506 if test -z "$ac_err"; then | 7512 if test -z "$ac_err"; then |
7507 rm -rf conftest* | 7513 rm -rf conftest* |
7508 eval "ac_cv_header_$ac_safe=yes" | 7514 eval "ac_cv_header_$ac_safe=yes" |
7509 else | 7515 else |
7526 echo "$ac_t""no" 1>&6 | 7532 echo "$ac_t""no" 1>&6 |
7527 for ac_hdr in kerberos/des.h | 7533 for ac_hdr in kerberos/des.h |
7528 do | 7534 do |
7529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7531 echo "configure:7532: checking for $ac_hdr" >&5 | 7537 echo "configure:7538: checking for $ac_hdr" >&5 |
7532 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7533 echo $ac_n "(cached) $ac_c" 1>&6 | 7539 echo $ac_n "(cached) $ac_c" 1>&6 |
7534 else | 7540 else |
7535 cat > conftest.$ac_ext <<EOF | 7541 cat > conftest.$ac_ext <<EOF |
7536 #line 7537 "configure" | 7542 #line 7543 "configure" |
7537 #include "confdefs.h" | 7543 #include "confdefs.h" |
7538 #include <$ac_hdr> | 7544 #include <$ac_hdr> |
7539 EOF | 7545 EOF |
7540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7541 { (eval echo configure:7542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7547 { (eval echo configure:7548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7543 if test -z "$ac_err"; then | 7549 if test -z "$ac_err"; then |
7544 rm -rf conftest* | 7550 rm -rf conftest* |
7545 eval "ac_cv_header_$ac_safe=yes" | 7551 eval "ac_cv_header_$ac_safe=yes" |
7546 else | 7552 else |
7572 | 7578 |
7573 for ac_hdr in krb.h | 7579 for ac_hdr in krb.h |
7574 do | 7580 do |
7575 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7577 echo "configure:7578: checking for $ac_hdr" >&5 | 7583 echo "configure:7584: checking for $ac_hdr" >&5 |
7578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7579 echo $ac_n "(cached) $ac_c" 1>&6 | 7585 echo $ac_n "(cached) $ac_c" 1>&6 |
7580 else | 7586 else |
7581 cat > conftest.$ac_ext <<EOF | 7587 cat > conftest.$ac_ext <<EOF |
7582 #line 7583 "configure" | 7588 #line 7589 "configure" |
7583 #include "confdefs.h" | 7589 #include "confdefs.h" |
7584 #include <$ac_hdr> | 7590 #include <$ac_hdr> |
7585 EOF | 7591 EOF |
7586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7587 { (eval echo configure:7588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7593 { (eval echo configure:7594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7589 if test -z "$ac_err"; then | 7595 if test -z "$ac_err"; then |
7590 rm -rf conftest* | 7596 rm -rf conftest* |
7591 eval "ac_cv_header_$ac_safe=yes" | 7597 eval "ac_cv_header_$ac_safe=yes" |
7592 else | 7598 else |
7609 echo "$ac_t""no" 1>&6 | 7615 echo "$ac_t""no" 1>&6 |
7610 for ac_hdr in kerberosIV/krb.h | 7616 for ac_hdr in kerberosIV/krb.h |
7611 do | 7617 do |
7612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7618 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7619 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7614 echo "configure:7615: checking for $ac_hdr" >&5 | 7620 echo "configure:7621: checking for $ac_hdr" >&5 |
7615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7621 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7616 echo $ac_n "(cached) $ac_c" 1>&6 | 7622 echo $ac_n "(cached) $ac_c" 1>&6 |
7617 else | 7623 else |
7618 cat > conftest.$ac_ext <<EOF | 7624 cat > conftest.$ac_ext <<EOF |
7619 #line 7620 "configure" | 7625 #line 7626 "configure" |
7620 #include "confdefs.h" | 7626 #include "confdefs.h" |
7621 #include <$ac_hdr> | 7627 #include <$ac_hdr> |
7622 EOF | 7628 EOF |
7623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7629 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7624 { (eval echo configure:7625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7630 { (eval echo configure:7631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7631 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7626 if test -z "$ac_err"; then | 7632 if test -z "$ac_err"; then |
7627 rm -rf conftest* | 7633 rm -rf conftest* |
7628 eval "ac_cv_header_$ac_safe=yes" | 7634 eval "ac_cv_header_$ac_safe=yes" |
7629 else | 7635 else |
7646 echo "$ac_t""no" 1>&6 | 7652 echo "$ac_t""no" 1>&6 |
7647 for ac_hdr in kerberos/krb.h | 7653 for ac_hdr in kerberos/krb.h |
7648 do | 7654 do |
7649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7651 echo "configure:7652: checking for $ac_hdr" >&5 | 7657 echo "configure:7658: checking for $ac_hdr" >&5 |
7652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7653 echo $ac_n "(cached) $ac_c" 1>&6 | 7659 echo $ac_n "(cached) $ac_c" 1>&6 |
7654 else | 7660 else |
7655 cat > conftest.$ac_ext <<EOF | 7661 cat > conftest.$ac_ext <<EOF |
7656 #line 7657 "configure" | 7662 #line 7663 "configure" |
7657 #include "confdefs.h" | 7663 #include "confdefs.h" |
7658 #include <$ac_hdr> | 7664 #include <$ac_hdr> |
7659 EOF | 7665 EOF |
7660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7661 { (eval echo configure:7662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7667 { (eval echo configure:7668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7663 if test -z "$ac_err"; then | 7669 if test -z "$ac_err"; then |
7664 rm -rf conftest* | 7670 rm -rf conftest* |
7665 eval "ac_cv_header_$ac_safe=yes" | 7671 eval "ac_cv_header_$ac_safe=yes" |
7666 else | 7672 else |
7693 fi | 7699 fi |
7694 for ac_hdr in com_err.h | 7700 for ac_hdr in com_err.h |
7695 do | 7701 do |
7696 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7702 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7697 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7703 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7698 echo "configure:7699: checking for $ac_hdr" >&5 | 7704 echo "configure:7705: checking for $ac_hdr" >&5 |
7699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7705 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7700 echo $ac_n "(cached) $ac_c" 1>&6 | 7706 echo $ac_n "(cached) $ac_c" 1>&6 |
7701 else | 7707 else |
7702 cat > conftest.$ac_ext <<EOF | 7708 cat > conftest.$ac_ext <<EOF |
7703 #line 7704 "configure" | 7709 #line 7710 "configure" |
7704 #include "confdefs.h" | 7710 #include "confdefs.h" |
7705 #include <$ac_hdr> | 7711 #include <$ac_hdr> |
7706 EOF | 7712 EOF |
7707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7708 { (eval echo configure:7709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7714 { (eval echo configure:7715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7710 if test -z "$ac_err"; then | 7716 if test -z "$ac_err"; then |
7711 rm -rf conftest* | 7717 rm -rf conftest* |
7712 eval "ac_cv_header_$ac_safe=yes" | 7718 eval "ac_cv_header_$ac_safe=yes" |
7713 else | 7719 else |
7734 fi | 7740 fi |
7735 | 7741 |
7736 # Solaris requires -lintl if you want strerror (which calls dgettext) | 7742 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7737 # to return localized messages. | 7743 # to return localized messages. |
7738 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 7744 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
7739 echo "configure:7740: checking for dgettext in -lintl" >&5 | 7745 echo "configure:7746: checking for dgettext in -lintl" >&5 |
7740 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 7746 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7742 echo $ac_n "(cached) $ac_c" 1>&6 | 7748 echo $ac_n "(cached) $ac_c" 1>&6 |
7743 else | 7749 else |
7744 ac_save_LIBS="$LIBS" | 7750 ac_save_LIBS="$LIBS" |
7745 LIBS="-lintl $LIBS" | 7751 LIBS="-lintl $LIBS" |
7746 cat > conftest.$ac_ext <<EOF | 7752 cat > conftest.$ac_ext <<EOF |
7747 #line 7748 "configure" | 7753 #line 7754 "configure" |
7748 #include "confdefs.h" | 7754 #include "confdefs.h" |
7749 /* Override any gcc2 internal prototype to avoid an error. */ | 7755 /* Override any gcc2 internal prototype to avoid an error. */ |
7750 /* We use char because int might match the return type of a gcc2 | 7756 /* We use char because int might match the return type of a gcc2 |
7751 builtin and then its argument prototype would still apply. */ | 7757 builtin and then its argument prototype would still apply. */ |
7752 char dgettext(); | 7758 char dgettext(); |
7753 | 7759 |
7754 int main() { | 7760 int main() { |
7755 dgettext() | 7761 dgettext() |
7756 ; return 0; } | 7762 ; return 0; } |
7757 EOF | 7763 EOF |
7758 if { (eval echo configure:7759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7764 if { (eval echo configure:7765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7759 rm -rf conftest* | 7765 rm -rf conftest* |
7760 eval "ac_cv_lib_$ac_lib_var=yes" | 7766 eval "ac_cv_lib_$ac_lib_var=yes" |
7761 else | 7767 else |
7762 echo "configure: failed program was:" >&5 | 7768 echo "configure: failed program was:" >&5 |
7763 cat conftest.$ac_ext >&5 | 7769 cat conftest.$ac_ext >&5 |
7782 echo "$ac_t""no" 1>&6 | 7788 echo "$ac_t""no" 1>&6 |
7783 fi | 7789 fi |
7784 | 7790 |
7785 | 7791 |
7786 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 7792 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
7787 echo "configure:7788: checking whether localtime caches TZ" >&5 | 7793 echo "configure:7794: checking whether localtime caches TZ" >&5 |
7788 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 7794 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7789 echo $ac_n "(cached) $ac_c" 1>&6 | 7795 echo $ac_n "(cached) $ac_c" 1>&6 |
7790 else | 7796 else |
7791 if test x$ac_cv_func_tzset = xyes; then | 7797 if test x$ac_cv_func_tzset = xyes; then |
7792 if test "$cross_compiling" = yes; then | 7798 if test "$cross_compiling" = yes; then |
7793 # If we have tzset, assume the worst when cross-compiling. | 7799 # If we have tzset, assume the worst when cross-compiling. |
7794 emacs_cv_localtime_cache=yes | 7800 emacs_cv_localtime_cache=yes |
7795 else | 7801 else |
7796 cat > conftest.$ac_ext <<EOF | 7802 cat > conftest.$ac_ext <<EOF |
7797 #line 7798 "configure" | 7803 #line 7804 "configure" |
7798 #include "confdefs.h" | 7804 #include "confdefs.h" |
7799 #include <time.h> | 7805 #include <time.h> |
7800 extern char **environ; | 7806 extern char **environ; |
7801 unset_TZ () | 7807 unset_TZ () |
7802 { | 7808 { |
7824 if (localtime (&now)->tm_hour != hour_unset) | 7830 if (localtime (&now)->tm_hour != hour_unset) |
7825 exit (1); | 7831 exit (1); |
7826 exit (0); | 7832 exit (0); |
7827 } | 7833 } |
7828 EOF | 7834 EOF |
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7835 if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7830 then | 7836 then |
7831 emacs_cv_localtime_cache=no | 7837 emacs_cv_localtime_cache=no |
7832 else | 7838 else |
7833 echo "configure: failed program was:" >&5 | 7839 echo "configure: failed program was:" >&5 |
7834 cat conftest.$ac_ext >&5 | 7840 cat conftest.$ac_ext >&5 |
7854 | 7860 |
7855 if test "x$HAVE_TIMEVAL" = xyes; then | 7861 if test "x$HAVE_TIMEVAL" = xyes; then |
7856 for ac_func in gettimeofday | 7862 for ac_func in gettimeofday |
7857 do | 7863 do |
7858 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7859 echo "configure:7860: checking for $ac_func" >&5 | 7865 echo "configure:7866: checking for $ac_func" >&5 |
7860 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7861 echo $ac_n "(cached) $ac_c" 1>&6 | 7867 echo $ac_n "(cached) $ac_c" 1>&6 |
7862 else | 7868 else |
7863 cat > conftest.$ac_ext <<EOF | 7869 cat > conftest.$ac_ext <<EOF |
7864 #line 7865 "configure" | 7870 #line 7871 "configure" |
7865 #include "confdefs.h" | 7871 #include "confdefs.h" |
7866 /* System header to define __stub macros and hopefully few prototypes, | 7872 /* System header to define __stub macros and hopefully few prototypes, |
7867 which can conflict with char $ac_func(); below. */ | 7873 which can conflict with char $ac_func(); below. */ |
7868 #include <assert.h> | 7874 #include <assert.h> |
7869 /* Override any gcc2 internal prototype to avoid an error. */ | 7875 /* Override any gcc2 internal prototype to avoid an error. */ |
7882 $ac_func(); | 7888 $ac_func(); |
7883 #endif | 7889 #endif |
7884 | 7890 |
7885 ; return 0; } | 7891 ; return 0; } |
7886 EOF | 7892 EOF |
7887 if { (eval echo configure:7888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7893 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7888 rm -rf conftest* | 7894 rm -rf conftest* |
7889 eval "ac_cv_func_$ac_func=yes" | 7895 eval "ac_cv_func_$ac_func=yes" |
7890 else | 7896 else |
7891 echo "configure: failed program was:" >&5 | 7897 echo "configure: failed program was:" >&5 |
7892 cat conftest.$ac_ext >&5 | 7898 cat conftest.$ac_ext >&5 |
7907 echo "$ac_t""no" 1>&6 | 7913 echo "$ac_t""no" 1>&6 |
7908 fi | 7914 fi |
7909 done | 7915 done |
7910 | 7916 |
7911 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 7917 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
7912 echo "configure:7913: checking whether gettimeofday can accept two arguments" >&5 | 7918 echo "configure:7919: checking whether gettimeofday can accept two arguments" >&5 |
7913 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 7919 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
7914 echo $ac_n "(cached) $ac_c" 1>&6 | 7920 echo $ac_n "(cached) $ac_c" 1>&6 |
7915 else | 7921 else |
7916 cat > conftest.$ac_ext <<EOF | 7922 cat > conftest.$ac_ext <<EOF |
7917 #line 7918 "configure" | 7923 #line 7924 "configure" |
7918 #include "confdefs.h" | 7924 #include "confdefs.h" |
7919 | 7925 |
7920 #ifdef TIME_WITH_SYS_TIME | 7926 #ifdef TIME_WITH_SYS_TIME |
7921 #include <sys/time.h> | 7927 #include <sys/time.h> |
7922 #include <time.h> | 7928 #include <time.h> |
7930 int main() { | 7936 int main() { |
7931 struct timeval time; | 7937 struct timeval time; |
7932 gettimeofday (&time, 0); | 7938 gettimeofday (&time, 0); |
7933 ; return 0; } | 7939 ; return 0; } |
7934 EOF | 7940 EOF |
7935 if { (eval echo configure:7936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7941 if { (eval echo configure:7942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7936 rm -rf conftest* | 7942 rm -rf conftest* |
7937 emacs_cv_gettimeofday_two_arguments=yes | 7943 emacs_cv_gettimeofday_two_arguments=yes |
7938 else | 7944 else |
7939 echo "configure: failed program was:" >&5 | 7945 echo "configure: failed program was:" >&5 |
7940 cat conftest.$ac_ext >&5 | 7946 cat conftest.$ac_ext >&5 |
7953 fi | 7959 fi |
7954 fi | 7960 fi |
7955 | 7961 |
7956 if test "$ac_cv_func_gettimeofday" = yes; then | 7962 if test "$ac_cv_func_gettimeofday" = yes; then |
7957 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | 7963 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 |
7958 echo "configure:7959: checking for struct timezone" >&5 | 7964 echo "configure:7965: checking for struct timezone" >&5 |
7959 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then | 7965 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then |
7960 echo $ac_n "(cached) $ac_c" 1>&6 | 7966 echo $ac_n "(cached) $ac_c" 1>&6 |
7961 else | 7967 else |
7962 cat > conftest.$ac_ext <<EOF | 7968 cat > conftest.$ac_ext <<EOF |
7963 #line 7964 "configure" | 7969 #line 7970 "configure" |
7964 #include "confdefs.h" | 7970 #include "confdefs.h" |
7965 #include <sys/time.h> | 7971 #include <sys/time.h> |
7966 int main() { | 7972 int main() { |
7967 struct timezone tz; | 7973 struct timezone tz; |
7968 ; return 0; } | 7974 ; return 0; } |
7969 EOF | 7975 EOF |
7970 if { (eval echo configure:7971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7976 if { (eval echo configure:7977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7971 rm -rf conftest* | 7977 rm -rf conftest* |
7972 if test "$cross_compiling" = yes; then | 7978 if test "$cross_compiling" = yes; then |
7973 emacs_cv_struct_timezone=yes | 7979 emacs_cv_struct_timezone=yes |
7974 else | 7980 else |
7975 cat > conftest.$ac_ext <<EOF | 7981 cat > conftest.$ac_ext <<EOF |
7976 #line 7977 "configure" | 7982 #line 7983 "configure" |
7977 #include "confdefs.h" | 7983 #include "confdefs.h" |
7978 | 7984 |
7979 #ifdef TIME_WITH_SYS_TIME | 7985 #ifdef TIME_WITH_SYS_TIME |
7980 #include <sys/time.h> | 7986 #include <sys/time.h> |
7981 #include <time.h> | 7987 #include <time.h> |
7990 struct timeval time; | 7996 struct timeval time; |
7991 struct timezone dummy; | 7997 struct timezone dummy; |
7992 exit (gettimeofday (&time, &dummy)); | 7998 exit (gettimeofday (&time, &dummy)); |
7993 } | 7999 } |
7994 EOF | 8000 EOF |
7995 if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8001 if { (eval echo configure:8002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7996 then | 8002 then |
7997 emacs_cv_struct_timezone=yes | 8003 emacs_cv_struct_timezone=yes |
7998 else | 8004 else |
7999 echo "configure: failed program was:" >&5 | 8005 echo "configure: failed program was:" >&5 |
8000 cat conftest.$ac_ext >&5 | 8006 cat conftest.$ac_ext >&5 |
8016 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | 8022 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 |
8017 fi | 8023 fi |
8018 | 8024 |
8019 ok_so_far=yes | 8025 ok_so_far=yes |
8020 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 8026 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
8021 echo "configure:8022: checking for socket" >&5 | 8027 echo "configure:8028: checking for socket" >&5 |
8022 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 8028 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
8023 echo $ac_n "(cached) $ac_c" 1>&6 | 8029 echo $ac_n "(cached) $ac_c" 1>&6 |
8024 else | 8030 else |
8025 cat > conftest.$ac_ext <<EOF | 8031 cat > conftest.$ac_ext <<EOF |
8026 #line 8027 "configure" | 8032 #line 8033 "configure" |
8027 #include "confdefs.h" | 8033 #include "confdefs.h" |
8028 /* System header to define __stub macros and hopefully few prototypes, | 8034 /* System header to define __stub macros and hopefully few prototypes, |
8029 which can conflict with char socket(); below. */ | 8035 which can conflict with char socket(); below. */ |
8030 #include <assert.h> | 8036 #include <assert.h> |
8031 /* Override any gcc2 internal prototype to avoid an error. */ | 8037 /* Override any gcc2 internal prototype to avoid an error. */ |
8044 socket(); | 8050 socket(); |
8045 #endif | 8051 #endif |
8046 | 8052 |
8047 ; return 0; } | 8053 ; return 0; } |
8048 EOF | 8054 EOF |
8049 if { (eval echo configure:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8055 if { (eval echo configure:8056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8050 rm -rf conftest* | 8056 rm -rf conftest* |
8051 eval "ac_cv_func_socket=yes" | 8057 eval "ac_cv_func_socket=yes" |
8052 else | 8058 else |
8053 echo "configure: failed program was:" >&5 | 8059 echo "configure: failed program was:" >&5 |
8054 cat conftest.$ac_ext >&5 | 8060 cat conftest.$ac_ext >&5 |
8067 fi | 8073 fi |
8068 | 8074 |
8069 if test $ok_so_far = yes; then | 8075 if test $ok_so_far = yes; then |
8070 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 8076 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
8071 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 8077 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
8072 echo "configure:8073: checking for netinet/in.h" >&5 | 8078 echo "configure:8079: checking for netinet/in.h" >&5 |
8073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8074 echo $ac_n "(cached) $ac_c" 1>&6 | 8080 echo $ac_n "(cached) $ac_c" 1>&6 |
8075 else | 8081 else |
8076 cat > conftest.$ac_ext <<EOF | 8082 cat > conftest.$ac_ext <<EOF |
8077 #line 8078 "configure" | 8083 #line 8084 "configure" |
8078 #include "confdefs.h" | 8084 #include "confdefs.h" |
8079 #include <netinet/in.h> | 8085 #include <netinet/in.h> |
8080 EOF | 8086 EOF |
8081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8082 { (eval echo configure:8083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8088 { (eval echo configure:8089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8084 if test -z "$ac_err"; then | 8090 if test -z "$ac_err"; then |
8085 rm -rf conftest* | 8091 rm -rf conftest* |
8086 eval "ac_cv_header_$ac_safe=yes" | 8092 eval "ac_cv_header_$ac_safe=yes" |
8087 else | 8093 else |
8103 | 8109 |
8104 fi | 8110 fi |
8105 if test $ok_so_far = yes; then | 8111 if test $ok_so_far = yes; then |
8106 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 8112 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
8107 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 8113 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
8108 echo "configure:8109: checking for arpa/inet.h" >&5 | 8114 echo "configure:8115: checking for arpa/inet.h" >&5 |
8109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8110 echo $ac_n "(cached) $ac_c" 1>&6 | 8116 echo $ac_n "(cached) $ac_c" 1>&6 |
8111 else | 8117 else |
8112 cat > conftest.$ac_ext <<EOF | 8118 cat > conftest.$ac_ext <<EOF |
8113 #line 8114 "configure" | 8119 #line 8120 "configure" |
8114 #include "confdefs.h" | 8120 #include "confdefs.h" |
8115 #include <arpa/inet.h> | 8121 #include <arpa/inet.h> |
8116 EOF | 8122 EOF |
8117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8118 { (eval echo configure:8119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8124 { (eval echo configure:8125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8120 if test -z "$ac_err"; then | 8126 if test -z "$ac_err"; then |
8121 rm -rf conftest* | 8127 rm -rf conftest* |
8122 eval "ac_cv_header_$ac_safe=yes" | 8128 eval "ac_cv_header_$ac_safe=yes" |
8123 else | 8129 else |
8151 EOF | 8157 EOF |
8152 | 8158 |
8153 fi | 8159 fi |
8154 | 8160 |
8155 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 8161 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
8156 echo "configure:8157: checking whether system supports dynamic ptys" >&5 | 8162 echo "configure:8163: checking whether system supports dynamic ptys" >&5 |
8157 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 8163 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
8158 echo "$ac_t""yes" 1>&6 | 8164 echo "$ac_t""yes" 1>&6 |
8159 cat >> confdefs.h <<\EOF | 8165 cat >> confdefs.h <<\EOF |
8160 #define HAVE_DEV_PTMX 1 | 8166 #define HAVE_DEV_PTMX 1 |
8161 EOF | 8167 EOF |
8163 else | 8169 else |
8164 echo "$ac_t""no" 1>&6 | 8170 echo "$ac_t""no" 1>&6 |
8165 fi | 8171 fi |
8166 | 8172 |
8167 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 8173 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
8168 echo "configure:8169: checking for pid_t" >&5 | 8174 echo "configure:8175: checking for pid_t" >&5 |
8169 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 8175 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8170 echo $ac_n "(cached) $ac_c" 1>&6 | 8176 echo $ac_n "(cached) $ac_c" 1>&6 |
8171 else | 8177 else |
8172 cat > conftest.$ac_ext <<EOF | 8178 cat > conftest.$ac_ext <<EOF |
8173 #line 8174 "configure" | 8179 #line 8180 "configure" |
8174 #include "confdefs.h" | 8180 #include "confdefs.h" |
8175 #include <sys/types.h> | 8181 #include <sys/types.h> |
8176 #if STDC_HEADERS | 8182 #if STDC_HEADERS |
8177 #include <stdlib.h> | 8183 #include <stdlib.h> |
8178 #include <stddef.h> | 8184 #include <stddef.h> |
8197 | 8203 |
8198 fi | 8204 fi |
8199 | 8205 |
8200 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 8206 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
8201 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 8207 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
8202 echo "configure:8203: checking for vfork.h" >&5 | 8208 echo "configure:8209: checking for vfork.h" >&5 |
8203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8204 echo $ac_n "(cached) $ac_c" 1>&6 | 8210 echo $ac_n "(cached) $ac_c" 1>&6 |
8205 else | 8211 else |
8206 cat > conftest.$ac_ext <<EOF | 8212 cat > conftest.$ac_ext <<EOF |
8207 #line 8208 "configure" | 8213 #line 8214 "configure" |
8208 #include "confdefs.h" | 8214 #include "confdefs.h" |
8209 #include <vfork.h> | 8215 #include <vfork.h> |
8210 EOF | 8216 EOF |
8211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8212 { (eval echo configure:8213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8218 { (eval echo configure:8219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8214 if test -z "$ac_err"; then | 8220 if test -z "$ac_err"; then |
8215 rm -rf conftest* | 8221 rm -rf conftest* |
8216 eval "ac_cv_header_$ac_safe=yes" | 8222 eval "ac_cv_header_$ac_safe=yes" |
8217 else | 8223 else |
8232 else | 8238 else |
8233 echo "$ac_t""no" 1>&6 | 8239 echo "$ac_t""no" 1>&6 |
8234 fi | 8240 fi |
8235 | 8241 |
8236 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 8242 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
8237 echo "configure:8238: checking for working vfork" >&5 | 8243 echo "configure:8244: checking for working vfork" >&5 |
8238 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 8244 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
8239 echo $ac_n "(cached) $ac_c" 1>&6 | 8245 echo $ac_n "(cached) $ac_c" 1>&6 |
8240 else | 8246 else |
8241 if test "$cross_compiling" = yes; then | 8247 if test "$cross_compiling" = yes; then |
8242 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 8248 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
8243 echo "configure:8244: checking for vfork" >&5 | 8249 echo "configure:8250: checking for vfork" >&5 |
8244 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 8250 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8245 echo $ac_n "(cached) $ac_c" 1>&6 | 8251 echo $ac_n "(cached) $ac_c" 1>&6 |
8246 else | 8252 else |
8247 cat > conftest.$ac_ext <<EOF | 8253 cat > conftest.$ac_ext <<EOF |
8248 #line 8249 "configure" | 8254 #line 8255 "configure" |
8249 #include "confdefs.h" | 8255 #include "confdefs.h" |
8250 /* System header to define __stub macros and hopefully few prototypes, | 8256 /* System header to define __stub macros and hopefully few prototypes, |
8251 which can conflict with char vfork(); below. */ | 8257 which can conflict with char vfork(); below. */ |
8252 #include <assert.h> | 8258 #include <assert.h> |
8253 /* Override any gcc2 internal prototype to avoid an error. */ | 8259 /* Override any gcc2 internal prototype to avoid an error. */ |
8266 vfork(); | 8272 vfork(); |
8267 #endif | 8273 #endif |
8268 | 8274 |
8269 ; return 0; } | 8275 ; return 0; } |
8270 EOF | 8276 EOF |
8271 if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8277 if { (eval echo configure:8278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8272 rm -rf conftest* | 8278 rm -rf conftest* |
8273 eval "ac_cv_func_vfork=yes" | 8279 eval "ac_cv_func_vfork=yes" |
8274 else | 8280 else |
8275 echo "configure: failed program was:" >&5 | 8281 echo "configure: failed program was:" >&5 |
8276 cat conftest.$ac_ext >&5 | 8282 cat conftest.$ac_ext >&5 |
8288 fi | 8294 fi |
8289 | 8295 |
8290 ac_cv_func_vfork_works=$ac_cv_func_vfork | 8296 ac_cv_func_vfork_works=$ac_cv_func_vfork |
8291 else | 8297 else |
8292 cat > conftest.$ac_ext <<EOF | 8298 cat > conftest.$ac_ext <<EOF |
8293 #line 8294 "configure" | 8299 #line 8300 "configure" |
8294 #include "confdefs.h" | 8300 #include "confdefs.h" |
8295 /* Thanks to Paul Eggert for this test. */ | 8301 /* Thanks to Paul Eggert for this test. */ |
8296 #include <stdio.h> | 8302 #include <stdio.h> |
8297 #include <sys/types.h> | 8303 #include <sys/types.h> |
8298 #include <sys/stat.h> | 8304 #include <sys/stat.h> |
8383 || fstat(fileno(stdout), &st) != 0 | 8389 || fstat(fileno(stdout), &st) != 0 |
8384 ); | 8390 ); |
8385 } | 8391 } |
8386 } | 8392 } |
8387 EOF | 8393 EOF |
8388 if { (eval echo configure:8389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8394 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8389 then | 8395 then |
8390 ac_cv_func_vfork_works=yes | 8396 ac_cv_func_vfork_works=yes |
8391 else | 8397 else |
8392 echo "configure: failed program was:" >&5 | 8398 echo "configure: failed program was:" >&5 |
8393 cat conftest.$ac_ext >&5 | 8399 cat conftest.$ac_ext >&5 |
8408 fi | 8414 fi |
8409 | 8415 |
8410 | 8416 |
8411 # Fixme: This should be replaced when we have autoconf 2.14. | 8417 # Fixme: This should be replaced when we have autoconf 2.14. |
8412 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 8418 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
8413 echo "configure:8414: checking for size_t" >&5 | 8419 echo "configure:8420: checking for size_t" >&5 |
8414 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 8420 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8415 echo $ac_n "(cached) $ac_c" 1>&6 | 8421 echo $ac_n "(cached) $ac_c" 1>&6 |
8416 else | 8422 else |
8417 cat > conftest.$ac_ext <<EOF | 8423 cat > conftest.$ac_ext <<EOF |
8418 #line 8419 "configure" | 8424 #line 8425 "configure" |
8419 #include "confdefs.h" | 8425 #include "confdefs.h" |
8420 #include <sys/types.h> | 8426 #include <sys/types.h> |
8421 #if STDC_HEADERS | 8427 #if STDC_HEADERS |
8422 #include <stdlib.h> | 8428 #include <stdlib.h> |
8423 #include <stddef.h> | 8429 #include <stddef.h> |