comparison configure @ 26502:9a80d274ce46

*** empty log message ***
author Dave Love <fx@gnu.org>
date Thu, 18 Nov 1999 18:28:59 +0000
parents 78660eeae4b2
children b32d82817493
comparison
equal deleted inserted replaced
26501:e6e6add72493 26502:9a80d274ce46
1346 mips-sgi-irix4* ) 1346 mips-sgi-irix4* )
1347 machine=iris4d opsys=irix4-0 1347 machine=iris4d opsys=irix4-0
1348 ;; 1348 ;;
1349 mips-sgi-irix6.5 ) 1349 mips-sgi-irix6.5 )
1350 machine=iris4d opsys=irix6-5 1350 machine=iris4d opsys=irix6-5
1351 NON_GNU_CPP=/lib/cpp 1351 # Without defining _LANGUAGE_C, things get masked out in the headers
1352 NON_GCC_TEST_OPTIONS="-n32 -G0" 1352 # so that, for instance, grepping for `free' in stdlib.h fails and
1353 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
1354 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1355 NON_GCC_TEST_OPTIONS="-n32 -G0 -D_LANGUAGE_C"
1353 ;; 1356 ;;
1354 mips-sgi-irix6* ) 1357 mips-sgi-irix6* )
1355 machine=iris4d opsys=irix6-0 1358 machine=iris4d opsys=irix6-0
1356 NON_GNU_CPP=/lib/cpp 1359 # It's not clear whether -D_LANGUAGE_C is necessary as for 6.5,
1360 # but presumably it does no harm.
1361 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
1357 NON_GCC_TEST_OPTIONS=-32 1362 NON_GCC_TEST_OPTIONS=-32
1358 ;; 1363 ;;
1359 mips-sgi-irix5.[01]* ) 1364 mips-sgi-irix5.[01]* )
1360 machine=iris4d opsys=irix5-0 1365 machine=iris4d opsys=irix5-0
1361 ;; 1366 ;;
1652 "yes" ) CC="gcc" GCC=yes ;; 1657 "yes" ) CC="gcc" GCC=yes ;;
1653 "no" ) : ${CC=cc} ;; 1658 "no" ) : ${CC=cc} ;;
1654 * ) # Extract the first word of "gcc", so it can be a program name with args. 1659 * ) # Extract the first word of "gcc", so it can be a program name with args.
1655 set dummy gcc; ac_word=$2 1660 set dummy gcc; ac_word=$2
1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1657 echo "configure:1658: checking for $ac_word" >&5 1662 echo "configure:1663: checking for $ac_word" >&5
1658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1663 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1659 echo $ac_n "(cached) $ac_c" 1>&6 1664 echo $ac_n "(cached) $ac_c" 1>&6
1660 else 1665 else
1661 if test -n "$CC"; then 1666 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test. 1667 ac_cv_prog_CC="$CC" # Let the user override the test.
1682 1687
1683 if test -z "$CC"; then 1688 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args. 1689 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2 1690 set dummy cc; ac_word=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5 1692 echo "configure:1693: checking for $ac_word" >&5
1688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6 1694 echo $ac_n "(cached) $ac_c" 1>&6
1690 else 1695 else
1691 if test -n "$CC"; then 1696 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test. 1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1733 case "`uname -s`" in 1738 case "`uname -s`" in
1734 *win32* | *WIN32*) 1739 *win32* | *WIN32*)
1735 # Extract the first word of "cl", so it can be a program name with args. 1740 # Extract the first word of "cl", so it can be a program name with args.
1736 set dummy cl; ac_word=$2 1741 set dummy cl; ac_word=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5 1743 echo "configure:1744: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1744 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6 1745 echo $ac_n "(cached) $ac_c" 1>&6
1741 else 1746 else
1742 if test -n "$CC"; then 1747 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test. 1748 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 fi 1770 fi
1766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1771 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1767 fi 1772 fi
1768 1773
1769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1770 echo "configure:1771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1775 echo "configure:1776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1771 1776
1772 ac_ext=c 1777 ac_ext=c
1773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1778 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1774 ac_cpp='$CPP $CPPFLAGS' 1779 ac_cpp='$CPP $CPPFLAGS'
1775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1780 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1781 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1777 cross_compiling=$ac_cv_prog_cc_cross 1782 cross_compiling=$ac_cv_prog_cc_cross
1778 1783
1779 cat > conftest.$ac_ext << EOF 1784 cat > conftest.$ac_ext << EOF
1780 1785
1781 #line 1782 "configure" 1786 #line 1787 "configure"
1782 #include "confdefs.h" 1787 #include "confdefs.h"
1783 1788
1784 main(){return(0);} 1789 main(){return(0);}
1785 EOF 1790 EOF
1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1791 if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1787 ac_cv_prog_cc_works=yes 1792 ac_cv_prog_cc_works=yes
1788 # If we can't run a trivial program, we are probably using a cross compiler. 1793 # If we can't run a trivial program, we are probably using a cross compiler.
1789 if (./conftest; exit) 2>/dev/null; then 1794 if (./conftest; exit) 2>/dev/null; then
1790 ac_cv_prog_cc_cross=no 1795 ac_cv_prog_cc_cross=no
1791 else 1796 else
1807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1812 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1808 if test $ac_cv_prog_cc_works = no; then 1813 if test $ac_cv_prog_cc_works = no; then
1809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1814 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1810 fi 1815 fi
1811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1816 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1817 echo "configure:1818: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1818 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1814 cross_compiling=$ac_cv_prog_cc_cross 1819 cross_compiling=$ac_cv_prog_cc_cross
1815 1820
1816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1821 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1817 echo "configure:1818: checking whether we are using GNU C" >&5 1822 echo "configure:1823: checking whether we are using GNU C" >&5
1818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1823 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6 1824 echo $ac_n "(cached) $ac_c" 1>&6
1820 else 1825 else
1821 cat > conftest.c <<EOF 1826 cat > conftest.c <<EOF
1822 #ifdef __GNUC__ 1827 #ifdef __GNUC__
1823 yes; 1828 yes;
1824 #endif 1829 #endif
1825 EOF 1830 EOF
1826 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1831 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1827 ac_cv_prog_gcc=yes 1832 ac_cv_prog_gcc=yes
1828 else 1833 else
1829 ac_cv_prog_gcc=no 1834 ac_cv_prog_gcc=no
1830 fi 1835 fi
1831 fi 1836 fi
1840 1845
1841 ac_test_CFLAGS="${CFLAGS+set}" 1846 ac_test_CFLAGS="${CFLAGS+set}"
1842 ac_save_CFLAGS="$CFLAGS" 1847 ac_save_CFLAGS="$CFLAGS"
1843 CFLAGS= 1848 CFLAGS=
1844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1849 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1845 echo "configure:1846: checking whether ${CC-cc} accepts -g" >&5 1850 echo "configure:1851: checking whether ${CC-cc} accepts -g" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1851 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6 1852 echo $ac_n "(cached) $ac_c" 1>&6
1848 else 1853 else
1849 echo 'void f(){}' > conftest.c 1854 echo 'void f(){}' > conftest.c
1850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1920 #### Some other nice autoconf tests. If you add a test here which 1925 #### Some other nice autoconf tests. If you add a test here which
1921 #### should make an entry in src/config.h, don't forget to add an 1926 #### should make an entry in src/config.h, don't forget to add an
1922 #### #undef clause to src/config.h.in for autoconf to modify. 1927 #### #undef clause to src/config.h.in for autoconf to modify.
1923 1928
1924 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1929 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1925 echo "configure:1926: checking whether ln -s works" >&5 1930 echo "configure:1931: checking whether ln -s works" >&5
1926 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1931 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6 1932 echo $ac_n "(cached) $ac_c" 1>&6
1928 else 1933 else
1929 rm -f conftestdata 1934 rm -f conftestdata
1930 if ln -s X conftestdata 2>/dev/null 1935 if ln -s X conftestdata 2>/dev/null
1941 else 1946 else
1942 echo "$ac_t""no" 1>&6 1947 echo "$ac_t""no" 1>&6
1943 fi 1948 fi
1944 1949
1945 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1950 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1946 echo "configure:1947: checking how to run the C preprocessor" >&5 1951 echo "configure:1952: checking how to run the C preprocessor" >&5
1947 # On Suns, sometimes $CPP names a directory. 1952 # On Suns, sometimes $CPP names a directory.
1948 if test -n "$CPP" && test -d "$CPP"; then 1953 if test -n "$CPP" && test -d "$CPP"; then
1949 CPP= 1954 CPP=
1950 fi 1955 fi
1951 if test -z "$CPP"; then 1956 if test -z "$CPP"; then
1956 # substituted into the Makefile and "${CC-cc}" will confuse make. 1961 # substituted into the Makefile and "${CC-cc}" will confuse make.
1957 CPP="${CC-cc} -E" 1962 CPP="${CC-cc} -E"
1958 # On the NeXT, cc -E runs the code through the compiler's parser, 1963 # On the NeXT, cc -E runs the code through the compiler's parser,
1959 # not just through cpp. 1964 # not just through cpp.
1960 cat > conftest.$ac_ext <<EOF 1965 cat > conftest.$ac_ext <<EOF
1961 #line 1962 "configure" 1966 #line 1967 "configure"
1962 #include "confdefs.h" 1967 #include "confdefs.h"
1963 #include <assert.h> 1968 #include <assert.h>
1964 Syntax Error 1969 Syntax Error
1965 EOF 1970 EOF
1966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1967 { (eval echo configure:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1972 { (eval echo configure:1973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1969 if test -z "$ac_err"; then 1974 if test -z "$ac_err"; then
1970 : 1975 :
1971 else 1976 else
1972 echo "$ac_err" >&5 1977 echo "$ac_err" >&5
1973 echo "configure: failed program was:" >&5 1978 echo "configure: failed program was:" >&5
1974 cat conftest.$ac_ext >&5 1979 cat conftest.$ac_ext >&5
1975 rm -rf conftest* 1980 rm -rf conftest*
1976 CPP="${CC-cc} -E -traditional-cpp" 1981 CPP="${CC-cc} -E -traditional-cpp"
1977 cat > conftest.$ac_ext <<EOF 1982 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure" 1983 #line 1984 "configure"
1979 #include "confdefs.h" 1984 #include "confdefs.h"
1980 #include <assert.h> 1985 #include <assert.h>
1981 Syntax Error 1986 Syntax Error
1982 EOF 1987 EOF
1983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1984 { (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1989 { (eval echo configure:1990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1986 if test -z "$ac_err"; then 1991 if test -z "$ac_err"; then
1987 : 1992 :
1988 else 1993 else
1989 echo "$ac_err" >&5 1994 echo "$ac_err" >&5
1990 echo "configure: failed program was:" >&5 1995 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5 1996 cat conftest.$ac_ext >&5
1992 rm -rf conftest* 1997 rm -rf conftest*
1993 CPP="${CC-cc} -nologo -E" 1998 CPP="${CC-cc} -nologo -E"
1994 cat > conftest.$ac_ext <<EOF 1999 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure" 2000 #line 2001 "configure"
1996 #include "confdefs.h" 2001 #include "confdefs.h"
1997 #include <assert.h> 2002 #include <assert.h>
1998 Syntax Error 2003 Syntax Error
1999 EOF 2004 EOF
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2006 { (eval echo configure:2007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then 2008 if test -z "$ac_err"; then
2004 : 2009 :
2005 else 2010 else
2006 echo "$ac_err" >&5 2011 echo "$ac_err" >&5
2032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2035 # ./install, which can be erroneously created by make from ./install.sh. 2040 # ./install, which can be erroneously created by make from ./install.sh.
2036 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2041 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2037 echo "configure:2038: checking for a BSD compatible install" >&5 2042 echo "configure:2043: checking for a BSD compatible install" >&5
2038 if test -z "$INSTALL"; then 2043 if test -z "$INSTALL"; then
2039 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2044 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6 2045 echo $ac_n "(cached) $ac_c" 1>&6
2041 else 2046 else
2042 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2047 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2089 for ac_prog in 'bison -y' byacc 2094 for ac_prog in 'bison -y' byacc
2090 do 2095 do
2091 # Extract the first word of "$ac_prog", so it can be a program name with args. 2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2092 set dummy $ac_prog; ac_word=$2 2097 set dummy $ac_prog; ac_word=$2
2093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2094 echo "configure:2095: checking for $ac_word" >&5 2099 echo "configure:2100: checking for $ac_word" >&5
2095 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2100 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6 2101 echo $ac_n "(cached) $ac_c" 1>&6
2097 else 2102 else
2098 if test -n "$YACC"; then 2103 if test -n "$YACC"; then
2099 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2104 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2121 done 2126 done
2122 test -n "$YACC" || YACC="yacc" 2127 test -n "$YACC" || YACC="yacc"
2123 2128
2124 2129
2125 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2130 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2126 echo "configure:2127: checking for AIX" >&5 2131 echo "configure:2132: checking for AIX" >&5
2127 cat > conftest.$ac_ext <<EOF 2132 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure" 2133 #line 2134 "configure"
2129 #include "confdefs.h" 2134 #include "confdefs.h"
2130 #ifdef _AIX 2135 #ifdef _AIX
2131 yes 2136 yes
2132 #endif 2137 #endif
2133 2138
2150 # Sound support for GNU/Linux and the free BSDs. 2155 # Sound support for GNU/Linux and the free BSDs.
2151 for ac_hdr in machine/soundcard.h sys/soundcard.h 2156 for ac_hdr in machine/soundcard.h sys/soundcard.h
2152 do 2157 do
2153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2155 echo "configure:2156: checking for $ac_hdr" >&5 2160 echo "configure:2161: checking for $ac_hdr" >&5
2156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2161 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6 2162 echo $ac_n "(cached) $ac_c" 1>&6
2158 else 2163 else
2159 cat > conftest.$ac_ext <<EOF 2164 cat > conftest.$ac_ext <<EOF
2160 #line 2161 "configure" 2165 #line 2166 "configure"
2161 #include "confdefs.h" 2166 #include "confdefs.h"
2162 #include <$ac_hdr> 2167 #include <$ac_hdr>
2163 EOF 2168 EOF
2164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2170 { (eval echo configure:2171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then 2172 if test -z "$ac_err"; then
2168 rm -rf conftest* 2173 rm -rf conftest*
2169 eval "ac_cv_header_$ac_safe=yes" 2174 eval "ac_cv_header_$ac_safe=yes"
2170 else 2175 else
2193 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2198 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2194 termcap.h stdio_ext.h 2199 termcap.h stdio_ext.h
2195 do 2200 do
2196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2198 echo "configure:2199: checking for $ac_hdr" >&5 2203 echo "configure:2204: checking for $ac_hdr" >&5
2199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2204 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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 cat > conftest.$ac_ext <<EOF 2207 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure" 2208 #line 2209 "configure"
2204 #include "confdefs.h" 2209 #include "confdefs.h"
2205 #include <$ac_hdr> 2210 #include <$ac_hdr>
2206 EOF 2211 EOF
2207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2208 { (eval echo configure:2209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2213 { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2210 if test -z "$ac_err"; then 2215 if test -z "$ac_err"; then
2211 rm -rf conftest* 2216 rm -rf conftest*
2212 eval "ac_cv_header_$ac_safe=yes" 2217 eval "ac_cv_header_$ac_safe=yes"
2213 else 2218 else
2230 echo "$ac_t""no" 1>&6 2235 echo "$ac_t""no" 1>&6
2231 fi 2236 fi
2232 done 2237 done
2233 2238
2234 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2239 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2235 echo "configure:2236: checking for ANSI C header files" >&5 2240 echo "configure:2241: checking for ANSI C header files" >&5
2236 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2241 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2237 echo $ac_n "(cached) $ac_c" 1>&6 2242 echo $ac_n "(cached) $ac_c" 1>&6
2238 else 2243 else
2239 cat > conftest.$ac_ext <<EOF 2244 cat > conftest.$ac_ext <<EOF
2240 #line 2241 "configure" 2245 #line 2246 "configure"
2241 #include "confdefs.h" 2246 #include "confdefs.h"
2242 #include <stdlib.h> 2247 #include <stdlib.h>
2243 #include <stdarg.h> 2248 #include <stdarg.h>
2244 #include <string.h> 2249 #include <string.h>
2245 #include <float.h> 2250 #include <float.h>
2246 EOF 2251 EOF
2247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2248 { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2253 { (eval echo configure:2254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2250 if test -z "$ac_err"; then 2255 if test -z "$ac_err"; then
2251 rm -rf conftest* 2256 rm -rf conftest*
2252 ac_cv_header_stdc=yes 2257 ac_cv_header_stdc=yes
2253 else 2258 else
2260 rm -f conftest* 2265 rm -f conftest*
2261 2266
2262 if test $ac_cv_header_stdc = yes; then 2267 if test $ac_cv_header_stdc = yes; then
2263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2264 cat > conftest.$ac_ext <<EOF 2269 cat > conftest.$ac_ext <<EOF
2265 #line 2266 "configure" 2270 #line 2271 "configure"
2266 #include "confdefs.h" 2271 #include "confdefs.h"
2267 #include <string.h> 2272 #include <string.h>
2268 EOF 2273 EOF
2269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2270 egrep "memchr" >/dev/null 2>&1; then 2275 egrep "memchr" >/dev/null 2>&1; then
2278 fi 2283 fi
2279 2284
2280 if test $ac_cv_header_stdc = yes; then 2285 if test $ac_cv_header_stdc = yes; then
2281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2282 cat > conftest.$ac_ext <<EOF 2287 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure" 2288 #line 2289 "configure"
2284 #include "confdefs.h" 2289 #include "confdefs.h"
2285 #include <stdlib.h> 2290 #include <stdlib.h>
2286 EOF 2291 EOF
2287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2288 egrep "free" >/dev/null 2>&1; then 2293 egrep "free" >/dev/null 2>&1; then
2299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2304 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2300 if test "$cross_compiling" = yes; then 2305 if test "$cross_compiling" = yes; then
2301 : 2306 :
2302 else 2307 else
2303 cat > conftest.$ac_ext <<EOF 2308 cat > conftest.$ac_ext <<EOF
2304 #line 2305 "configure" 2309 #line 2310 "configure"
2305 #include "confdefs.h" 2310 #include "confdefs.h"
2306 #include <ctype.h> 2311 #include <ctype.h>
2307 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2312 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2308 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2313 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2310 int main () { int i; for (i = 0; i < 256; i++) 2315 int main () { int i; for (i = 0; i < 256; i++)
2311 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2316 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2312 exit (0); } 2317 exit (0); }
2313 2318
2314 EOF 2319 EOF
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2320 if { (eval echo configure:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2316 then 2321 then
2317 : 2322 :
2318 else 2323 else
2319 echo "configure: failed program was:" >&5 2324 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5 2325 cat conftest.$ac_ext >&5
2334 EOF 2339 EOF
2335 2340
2336 fi 2341 fi
2337 2342
2338 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2343 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2339 echo "configure:2340: checking whether time.h and sys/time.h may both be included" >&5 2344 echo "configure:2345: checking whether time.h and sys/time.h may both be included" >&5
2340 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2345 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2341 echo $ac_n "(cached) $ac_c" 1>&6 2346 echo $ac_n "(cached) $ac_c" 1>&6
2342 else 2347 else
2343 cat > conftest.$ac_ext <<EOF 2348 cat > conftest.$ac_ext <<EOF
2344 #line 2345 "configure" 2349 #line 2350 "configure"
2345 #include "confdefs.h" 2350 #include "confdefs.h"
2346 #include <sys/types.h> 2351 #include <sys/types.h>
2347 #include <sys/time.h> 2352 #include <sys/time.h>
2348 #include <time.h> 2353 #include <time.h>
2349 int main() { 2354 int main() {
2350 struct tm *tp; 2355 struct tm *tp;
2351 ; return 0; } 2356 ; return 0; }
2352 EOF 2357 EOF
2353 if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2358 if { (eval echo configure:2359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2354 rm -rf conftest* 2359 rm -rf conftest*
2355 ac_cv_header_time=yes 2360 ac_cv_header_time=yes
2356 else 2361 else
2357 echo "configure: failed program was:" >&5 2362 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5 2363 cat conftest.$ac_ext >&5
2369 EOF 2374 EOF
2370 2375
2371 fi 2376 fi
2372 2377
2373 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2378 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2374 echo "configure:2375: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2379 echo "configure:2380: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2375 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2380 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2376 echo $ac_n "(cached) $ac_c" 1>&6 2381 echo $ac_n "(cached) $ac_c" 1>&6
2377 else 2382 else
2378 cat > conftest.$ac_ext <<EOF 2383 cat > conftest.$ac_ext <<EOF
2379 #line 2380 "configure" 2384 #line 2385 "configure"
2380 #include "confdefs.h" 2385 #include "confdefs.h"
2381 #include <sys/types.h> 2386 #include <sys/types.h>
2382 #include <signal.h> 2387 #include <signal.h>
2383 /* NetBSD declares sys_siglist in unistd.h. */ 2388 /* NetBSD declares sys_siglist in unistd.h. */
2384 #ifdef HAVE_UNISTD_H 2389 #ifdef HAVE_UNISTD_H
2386 #endif 2391 #endif
2387 int main() { 2392 int main() {
2388 char *msg = *(sys_siglist + 1); 2393 char *msg = *(sys_siglist + 1);
2389 ; return 0; } 2394 ; return 0; }
2390 EOF 2395 EOF
2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2396 if { (eval echo configure:2397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2392 rm -rf conftest* 2397 rm -rf conftest*
2393 ac_cv_decl_sys_siglist=yes 2398 ac_cv_decl_sys_siglist=yes
2394 else 2399 else
2395 echo "configure: failed program was:" >&5 2400 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5 2401 cat conftest.$ac_ext >&5
2408 2413
2409 fi 2414 fi
2410 2415
2411 2416
2412 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2417 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2413 echo "configure:2414: checking for struct utimbuf" >&5 2418 echo "configure:2419: checking for struct utimbuf" >&5
2414 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2419 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6 2420 echo $ac_n "(cached) $ac_c" 1>&6
2416 else 2421 else
2417 cat > conftest.$ac_ext <<EOF 2422 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure" 2423 #line 2424 "configure"
2419 #include "confdefs.h" 2424 #include "confdefs.h"
2420 #ifdef TIME_WITH_SYS_TIME 2425 #ifdef TIME_WITH_SYS_TIME
2421 #include <sys/time.h> 2426 #include <sys/time.h>
2422 #include <time.h> 2427 #include <time.h>
2423 #else 2428 #else
2432 #endif 2437 #endif
2433 int main() { 2438 int main() {
2434 static struct utimbuf x; x.actime = x.modtime; 2439 static struct utimbuf x; x.actime = x.modtime;
2435 ; return 0; } 2440 ; return 0; }
2436 EOF 2441 EOF
2437 if { (eval echo configure:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2442 if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2438 rm -rf conftest* 2443 rm -rf conftest*
2439 emacs_cv_struct_utimbuf=yes 2444 emacs_cv_struct_utimbuf=yes
2440 else 2445 else
2441 echo "configure: failed program was:" >&5 2446 echo "configure: failed program was:" >&5
2442 cat conftest.$ac_ext >&5 2447 cat conftest.$ac_ext >&5
2453 EOF 2458 EOF
2454 2459
2455 fi 2460 fi
2456 2461
2457 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2462 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2458 echo "configure:2459: checking return type of signal handlers" >&5 2463 echo "configure:2464: checking return type of signal handlers" >&5
2459 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2464 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6 2465 echo $ac_n "(cached) $ac_c" 1>&6
2461 else 2466 else
2462 cat > conftest.$ac_ext <<EOF 2467 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure" 2468 #line 2469 "configure"
2464 #include "confdefs.h" 2469 #include "confdefs.h"
2465 #include <sys/types.h> 2470 #include <sys/types.h>
2466 #include <signal.h> 2471 #include <signal.h>
2467 #ifdef signal 2472 #ifdef signal
2468 #undef signal 2473 #undef signal
2475 2480
2476 int main() { 2481 int main() {
2477 int i; 2482 int i;
2478 ; return 0; } 2483 ; return 0; }
2479 EOF 2484 EOF
2480 if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2485 if { (eval echo configure:2486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2481 rm -rf conftest* 2486 rm -rf conftest*
2482 ac_cv_type_signal=void 2487 ac_cv_type_signal=void
2483 else 2488 else
2484 echo "configure: failed program was:" >&5 2489 echo "configure: failed program was:" >&5
2485 cat conftest.$ac_ext >&5 2490 cat conftest.$ac_ext >&5
2495 EOF 2500 EOF
2496 2501
2497 2502
2498 2503
2499 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2504 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2500 echo "configure:2501: checking for struct timeval" >&5 2505 echo "configure:2506: checking for struct timeval" >&5
2501 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2506 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6 2507 echo $ac_n "(cached) $ac_c" 1>&6
2503 else 2508 else
2504 cat > conftest.$ac_ext <<EOF 2509 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure" 2510 #line 2511 "configure"
2506 #include "confdefs.h" 2511 #include "confdefs.h"
2507 #ifdef TIME_WITH_SYS_TIME 2512 #ifdef TIME_WITH_SYS_TIME
2508 #include <sys/time.h> 2513 #include <sys/time.h>
2509 #include <time.h> 2514 #include <time.h>
2510 #else 2515 #else
2516 #endif 2521 #endif
2517 int main() { 2522 int main() {
2518 static struct timeval x; x.tv_sec = x.tv_usec; 2523 static struct timeval x; x.tv_sec = x.tv_usec;
2519 ; return 0; } 2524 ; return 0; }
2520 EOF 2525 EOF
2521 if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2526 if { (eval echo configure:2527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2522 rm -rf conftest* 2527 rm -rf conftest*
2523 emacs_cv_struct_timeval=yes 2528 emacs_cv_struct_timeval=yes
2524 else 2529 else
2525 echo "configure: failed program was:" >&5 2530 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5 2531 cat conftest.$ac_ext >&5
2538 EOF 2543 EOF
2539 2544
2540 fi 2545 fi
2541 2546
2542 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2547 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether struct tm is in sys/time.h or time.h" >&5 2548 echo "configure:2549: checking whether struct tm is in sys/time.h or time.h" >&5
2544 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2549 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6 2550 echo $ac_n "(cached) $ac_c" 1>&6
2546 else 2551 else
2547 cat > conftest.$ac_ext <<EOF 2552 cat > conftest.$ac_ext <<EOF
2548 #line 2549 "configure" 2553 #line 2554 "configure"
2549 #include "confdefs.h" 2554 #include "confdefs.h"
2550 #include <sys/types.h> 2555 #include <sys/types.h>
2551 #include <time.h> 2556 #include <time.h>
2552 int main() { 2557 int main() {
2553 struct tm *tp; tp->tm_sec; 2558 struct tm *tp; tp->tm_sec;
2554 ; return 0; } 2559 ; return 0; }
2555 EOF 2560 EOF
2556 if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2561 if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2557 rm -rf conftest* 2562 rm -rf conftest*
2558 ac_cv_struct_tm=time.h 2563 ac_cv_struct_tm=time.h
2559 else 2564 else
2560 echo "configure: failed program was:" >&5 2565 echo "configure: failed program was:" >&5
2561 cat conftest.$ac_ext >&5 2566 cat conftest.$ac_ext >&5
2572 EOF 2577 EOF
2573 2578
2574 fi 2579 fi
2575 2580
2576 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2581 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2577 echo "configure:2578: checking for tm_zone in struct tm" >&5 2582 echo "configure:2583: checking for tm_zone in struct tm" >&5
2578 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2583 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6 2584 echo $ac_n "(cached) $ac_c" 1>&6
2580 else 2585 else
2581 cat > conftest.$ac_ext <<EOF 2586 cat > conftest.$ac_ext <<EOF
2582 #line 2583 "configure" 2587 #line 2588 "configure"
2583 #include "confdefs.h" 2588 #include "confdefs.h"
2584 #include <sys/types.h> 2589 #include <sys/types.h>
2585 #include <$ac_cv_struct_tm> 2590 #include <$ac_cv_struct_tm>
2586 int main() { 2591 int main() {
2587 struct tm tm; tm.tm_zone; 2592 struct tm tm; tm.tm_zone;
2588 ; return 0; } 2593 ; return 0; }
2589 EOF 2594 EOF
2590 if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2595 if { (eval echo configure:2596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2591 rm -rf conftest* 2596 rm -rf conftest*
2592 ac_cv_struct_tm_zone=yes 2597 ac_cv_struct_tm_zone=yes
2593 else 2598 else
2594 echo "configure: failed program was:" >&5 2599 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5 2600 cat conftest.$ac_ext >&5
2605 #define HAVE_TM_ZONE 1 2610 #define HAVE_TM_ZONE 1
2606 EOF 2611 EOF
2607 2612
2608 else 2613 else
2609 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2614 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2610 echo "configure:2611: checking for tzname" >&5 2615 echo "configure:2616: checking for tzname" >&5
2611 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2616 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6 2617 echo $ac_n "(cached) $ac_c" 1>&6
2613 else 2618 else
2614 cat > conftest.$ac_ext <<EOF 2619 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure" 2620 #line 2621 "configure"
2616 #include "confdefs.h" 2621 #include "confdefs.h"
2617 #include <time.h> 2622 #include <time.h>
2618 #ifndef tzname /* For SGI. */ 2623 #ifndef tzname /* For SGI. */
2619 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2624 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2620 #endif 2625 #endif
2621 int main() { 2626 int main() {
2622 atoi(*tzname); 2627 atoi(*tzname);
2623 ; return 0; } 2628 ; return 0; }
2624 EOF 2629 EOF
2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2630 if { (eval echo configure:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2626 rm -rf conftest* 2631 rm -rf conftest*
2627 ac_cv_var_tzname=yes 2632 ac_cv_var_tzname=yes
2628 else 2633 else
2629 echo "configure: failed program was:" >&5 2634 echo "configure: failed program was:" >&5
2630 cat conftest.$ac_ext >&5 2635 cat conftest.$ac_ext >&5
2642 2647
2643 fi 2648 fi
2644 fi 2649 fi
2645 2650
2646 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2651 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2647 echo "configure:2648: checking for tm_gmtoff in struct tm" >&5 2652 echo "configure:2653: checking for tm_gmtoff in struct tm" >&5
2648 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2653 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2649 echo $ac_n "(cached) $ac_c" 1>&6 2654 echo $ac_n "(cached) $ac_c" 1>&6
2650 else 2655 else
2651 cat > conftest.$ac_ext <<EOF 2656 cat > conftest.$ac_ext <<EOF
2652 #line 2653 "configure" 2657 #line 2658 "configure"
2653 #include "confdefs.h" 2658 #include "confdefs.h"
2654 #include <time.h> 2659 #include <time.h>
2655 int main() { 2660 int main() {
2656 struct tm t; t.tm_gmtoff = 0 2661 struct tm t; t.tm_gmtoff = 0
2657 ; return 0; } 2662 ; return 0; }
2658 EOF 2663 EOF
2659 if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2664 if { (eval echo configure:2665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2660 rm -rf conftest* 2665 rm -rf conftest*
2661 emacs_cv_tm_gmtoff=yes 2666 emacs_cv_tm_gmtoff=yes
2662 else 2667 else
2663 echo "configure: failed program was:" >&5 2668 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5 2669 cat conftest.$ac_ext >&5
2675 EOF 2680 EOF
2676 2681
2677 fi 2682 fi
2678 2683
2679 echo $ac_n "checking for working const""... $ac_c" 1>&6 2684 echo $ac_n "checking for working const""... $ac_c" 1>&6
2680 echo "configure:2681: checking for working const" >&5 2685 echo "configure:2686: checking for working const" >&5
2681 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2686 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6 2687 echo $ac_n "(cached) $ac_c" 1>&6
2683 else 2688 else
2684 cat > conftest.$ac_ext <<EOF 2689 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure" 2690 #line 2691 "configure"
2686 #include "confdefs.h" 2691 #include "confdefs.h"
2687 2692
2688 int main() { 2693 int main() {
2689 2694
2690 /* Ultrix mips cc rejects this. */ 2695 /* Ultrix mips cc rejects this. */
2729 const int foo = 10; 2734 const int foo = 10;
2730 } 2735 }
2731 2736
2732 ; return 0; } 2737 ; return 0; }
2733 EOF 2738 EOF
2734 if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2739 if { (eval echo configure:2740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2735 rm -rf conftest* 2740 rm -rf conftest*
2736 ac_cv_c_const=yes 2741 ac_cv_c_const=yes
2737 else 2742 else
2738 echo "configure: failed program was:" >&5 2743 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5 2744 cat conftest.$ac_ext >&5
2751 2756
2752 fi 2757 fi
2753 2758
2754 2759
2755 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2760 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2756 echo "configure:2757: checking whether ${MAKE-make} sets \${MAKE}" >&5 2761 echo "configure:2762: checking whether ${MAKE-make} sets \${MAKE}" >&5
2757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2762 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2758 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 2763 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6 2764 echo $ac_n "(cached) $ac_c" 1>&6
2760 else 2765 else
2761 cat > conftestmake <<\EOF 2766 cat > conftestmake <<\EOF
2779 SET_MAKE="MAKE=${MAKE-make}" 2784 SET_MAKE="MAKE=${MAKE-make}"
2780 fi 2785 fi
2781 2786
2782 2787
2783 echo $ac_n "checking for long file names""... $ac_c" 1>&6 2788 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2784 echo "configure:2785: checking for long file names" >&5 2789 echo "configure:2790: checking for long file names" >&5
2785 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 2790 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6 2791 echo $ac_n "(cached) $ac_c" 1>&6
2787 else 2792 else
2788 ac_cv_sys_long_file_names=yes 2793 ac_cv_sys_long_file_names=yes
2789 # Test for long file names in all the places we know might matter: 2794 # Test for long file names in all the places we know might matter:
2830 # If we find X, set shell vars x_includes and x_libraries to the 2835 # If we find X, set shell vars x_includes and x_libraries to the
2831 # paths, otherwise set no_x=yes. 2836 # paths, otherwise set no_x=yes.
2832 # Uses ac_ vars as temps to allow command line to override cache and checks. 2837 # Uses ac_ vars as temps to allow command line to override cache and checks.
2833 # --without-x overrides everything else, but does not touch the cache. 2838 # --without-x overrides everything else, but does not touch the cache.
2834 echo $ac_n "checking for X""... $ac_c" 1>&6 2839 echo $ac_n "checking for X""... $ac_c" 1>&6
2835 echo "configure:2836: checking for X" >&5 2840 echo "configure:2841: checking for X" >&5
2836 2841
2837 # Check whether --with-x or --without-x was given. 2842 # Check whether --with-x or --without-x was given.
2838 if test "${with_x+set}" = set; then 2843 if test "${with_x+set}" = set; then
2839 withval="$with_x" 2844 withval="$with_x"
2840 : 2845 :
2892 # Guess where to find include files, by looking for this one X11 .h file. 2897 # Guess where to find include files, by looking for this one X11 .h file.
2893 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 2898 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2894 2899
2895 # First, try using that file with no special directory specified. 2900 # First, try using that file with no special directory specified.
2896 cat > conftest.$ac_ext <<EOF 2901 cat > conftest.$ac_ext <<EOF
2897 #line 2898 "configure" 2902 #line 2903 "configure"
2898 #include "confdefs.h" 2903 #include "confdefs.h"
2899 #include <$x_direct_test_include> 2904 #include <$x_direct_test_include>
2900 EOF 2905 EOF
2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2907 { (eval echo configure:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2904 if test -z "$ac_err"; then 2909 if test -z "$ac_err"; then
2905 rm -rf conftest* 2910 rm -rf conftest*
2906 # We can compile using X headers with no special include directory. 2911 # We can compile using X headers with no special include directory.
2907 ac_x_includes= 2912 ac_x_includes=
2966 # See if we find them without any special options. 2971 # See if we find them without any special options.
2967 # Don't add to $LIBS permanently. 2972 # Don't add to $LIBS permanently.
2968 ac_save_LIBS="$LIBS" 2973 ac_save_LIBS="$LIBS"
2969 LIBS="-l$x_direct_test_library $LIBS" 2974 LIBS="-l$x_direct_test_library $LIBS"
2970 cat > conftest.$ac_ext <<EOF 2975 cat > conftest.$ac_ext <<EOF
2971 #line 2972 "configure" 2976 #line 2977 "configure"
2972 #include "confdefs.h" 2977 #include "confdefs.h"
2973 2978
2974 int main() { 2979 int main() {
2975 ${x_direct_test_function}() 2980 ${x_direct_test_function}()
2976 ; return 0; } 2981 ; return 0; }
2977 EOF 2982 EOF
2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2983 if { (eval echo configure:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2979 rm -rf conftest* 2984 rm -rf conftest*
2980 LIBS="$ac_save_LIBS" 2985 LIBS="$ac_save_LIBS"
2981 # We can link X programs with no special library path. 2986 # We can link X programs with no special library path.
2982 ac_x_libraries= 2987 ac_x_libraries=
2983 else 2988 else
3093 # accumulate include directories that have X11 bitmap subdirectories 3098 # accumulate include directories that have X11 bitmap subdirectories
3094 bmd_acc="dummyval" 3099 bmd_acc="dummyval"
3095 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do 3100 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
3096 if test -d "${bmd}/X11/bitmaps"; then 3101 if test -d "${bmd}/X11/bitmaps"; then
3097 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" 3102 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
3098 elif test -d "${bmd}/bitmaps"; then 3103 fi
3104 if test -d "${bmd}/bitmaps"; then
3099 bmd_acc="${bmd_acc}:${bmd}/bitmaps" 3105 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
3100 fi 3106 fi
3101 done 3107 done
3102 if test ${bmd_acc} != "dummyval"; then 3108 if test ${bmd_acc} != "dummyval"; then
3103 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` 3109 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
3147 #### Extract some information from the operating system and machine files. 3153 #### Extract some information from the operating system and machine files.
3148 3154
3149 echo "checking the machine- and system-dependent files to find out 3155 echo "checking the machine- and system-dependent files to find out
3150 - which libraries the lib-src programs will want, and 3156 - which libraries the lib-src programs will want, and
3151 - whether the GNU malloc routines are usable" 1>&6 3157 - whether the GNU malloc routines are usable" 1>&6
3152 echo "configure:3153: checking the machine- and system-dependent files to find out 3158 echo "configure:3159: checking the machine- and system-dependent files to find out
3153 - which libraries the lib-src programs will want, and 3159 - which libraries the lib-src programs will want, and
3154 - whether the GNU malloc routines are usable" >&5 3160 - whether the GNU malloc routines are usable" >&5
3155 3161
3156 ### First figure out CFLAGS (which we use for running the compiler here) 3162 ### First figure out CFLAGS (which we use for running the compiler here)
3157 ### and REAL_CFLAGS (which we use for real compilation). 3163 ### and REAL_CFLAGS (which we use for real compilation).
3277 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3283 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3278 # Assume not, until told otherwise. 3284 # Assume not, until told otherwise.
3279 GNU_MALLOC=yes 3285 GNU_MALLOC=yes
3280 doug_lea_malloc=yes 3286 doug_lea_malloc=yes
3281 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3287 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3282 echo "configure:3283: checking for malloc_get_state" >&5 3288 echo "configure:3289: checking for malloc_get_state" >&5
3283 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3289 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6 3290 echo $ac_n "(cached) $ac_c" 1>&6
3285 else 3291 else
3286 cat > conftest.$ac_ext <<EOF 3292 cat > conftest.$ac_ext <<EOF
3287 #line 3288 "configure" 3293 #line 3294 "configure"
3288 #include "confdefs.h" 3294 #include "confdefs.h"
3289 /* System header to define __stub macros and hopefully few prototypes, 3295 /* System header to define __stub macros and hopefully few prototypes,
3290 which can conflict with char malloc_get_state(); below. */ 3296 which can conflict with char malloc_get_state(); below. */
3291 #include <assert.h> 3297 #include <assert.h>
3292 /* Override any gcc2 internal prototype to avoid an error. */ 3298 /* Override any gcc2 internal prototype to avoid an error. */
3306 f = malloc_get_state; 3312 f = malloc_get_state;
3307 #endif 3313 #endif
3308 3314
3309 ; return 0; } 3315 ; return 0; }
3310 EOF 3316 EOF
3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312 rm -rf conftest* 3318 rm -rf conftest*
3313 eval "ac_cv_func_malloc_get_state=yes" 3319 eval "ac_cv_func_malloc_get_state=yes"
3314 else 3320 else
3315 echo "configure: failed program was:" >&5 3321 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5 3322 cat conftest.$ac_ext >&5
3327 echo "$ac_t""no" 1>&6 3333 echo "$ac_t""no" 1>&6
3328 doug_lea_malloc=no 3334 doug_lea_malloc=no
3329 fi 3335 fi
3330 3336
3331 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3337 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3332 echo "configure:3333: checking for malloc_set_state" >&5 3338 echo "configure:3339: checking for malloc_set_state" >&5
3333 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3339 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3334 echo $ac_n "(cached) $ac_c" 1>&6 3340 echo $ac_n "(cached) $ac_c" 1>&6
3335 else 3341 else
3336 cat > conftest.$ac_ext <<EOF 3342 cat > conftest.$ac_ext <<EOF
3337 #line 3338 "configure" 3343 #line 3344 "configure"
3338 #include "confdefs.h" 3344 #include "confdefs.h"
3339 /* System header to define __stub macros and hopefully few prototypes, 3345 /* System header to define __stub macros and hopefully few prototypes,
3340 which can conflict with char malloc_set_state(); below. */ 3346 which can conflict with char malloc_set_state(); below. */
3341 #include <assert.h> 3347 #include <assert.h>
3342 /* Override any gcc2 internal prototype to avoid an error. */ 3348 /* Override any gcc2 internal prototype to avoid an error. */
3356 f = malloc_set_state; 3362 f = malloc_set_state;
3357 #endif 3363 #endif
3358 3364
3359 ; return 0; } 3365 ; return 0; }
3360 EOF 3366 EOF
3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3367 if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3362 rm -rf conftest* 3368 rm -rf conftest*
3363 eval "ac_cv_func_malloc_set_state=yes" 3369 eval "ac_cv_func_malloc_set_state=yes"
3364 else 3370 else
3365 echo "configure: failed program was:" >&5 3371 echo "configure: failed program was:" >&5
3366 cat conftest.$ac_ext >&5 3372 cat conftest.$ac_ext >&5
3377 echo "$ac_t""no" 1>&6 3383 echo "$ac_t""no" 1>&6
3378 doug_lea_malloc=no 3384 doug_lea_malloc=no
3379 fi 3385 fi
3380 3386
3381 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3387 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3382 echo "configure:3383: checking whether __after_morecore_hook exists" >&5 3388 echo "configure:3389: checking whether __after_morecore_hook exists" >&5
3383 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3389 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6 3390 echo $ac_n "(cached) $ac_c" 1>&6
3385 else 3391 else
3386 cat > conftest.$ac_ext <<EOF 3392 cat > conftest.$ac_ext <<EOF
3387 #line 3388 "configure" 3393 #line 3394 "configure"
3388 #include "confdefs.h" 3394 #include "confdefs.h"
3389 extern void (* __after_morecore_hook)(); 3395 extern void (* __after_morecore_hook)();
3390 int main() { 3396 int main() {
3391 __after_morecore_hook = 0 3397 __after_morecore_hook = 0
3392 ; return 0; } 3398 ; return 0; }
3393 EOF 3399 EOF
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3400 if { (eval echo configure:3401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3395 rm -rf conftest* 3401 rm -rf conftest*
3396 emacs_cv_var___after_morecore_hook=yes 3402 emacs_cv_var___after_morecore_hook=yes
3397 else 3403 else
3398 echo "configure: failed program was:" >&5 3404 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5 3405 cat conftest.$ac_ext >&5
3439 fi 3445 fi
3440 3446
3441 LIBS="$libsrc_libs $LIBS" 3447 LIBS="$libsrc_libs $LIBS"
3442 3448
3443 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3449 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3444 echo "configure:3445: checking for dnet_ntoa in -ldnet" >&5 3450 echo "configure:3451: checking for dnet_ntoa in -ldnet" >&5
3445 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3451 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6 3453 echo $ac_n "(cached) $ac_c" 1>&6
3448 else 3454 else
3449 ac_save_LIBS="$LIBS" 3455 ac_save_LIBS="$LIBS"
3450 LIBS="-ldnet $LIBS" 3456 LIBS="-ldnet $LIBS"
3451 cat > conftest.$ac_ext <<EOF 3457 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure" 3458 #line 3459 "configure"
3453 #include "confdefs.h" 3459 #include "confdefs.h"
3454 /* Override any gcc2 internal prototype to avoid an error. */ 3460 /* Override any gcc2 internal prototype to avoid an error. */
3455 /* We use char because int might match the return type of a gcc2 3461 /* We use char because int might match the return type of a gcc2
3456 builtin and then its argument prototype would still apply. */ 3462 builtin and then its argument prototype would still apply. */
3457 char dnet_ntoa(); 3463 char dnet_ntoa();
3458 3464
3459 int main() { 3465 int main() {
3460 dnet_ntoa() 3466 dnet_ntoa()
3461 ; return 0; } 3467 ; return 0; }
3462 EOF 3468 EOF
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3464 rm -rf conftest* 3470 rm -rf conftest*
3465 eval "ac_cv_lib_$ac_lib_var=yes" 3471 eval "ac_cv_lib_$ac_lib_var=yes"
3466 else 3472 else
3467 echo "configure: failed program was:" >&5 3473 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5 3474 cat conftest.$ac_ext >&5
3487 echo "$ac_t""no" 1>&6 3493 echo "$ac_t""no" 1>&6
3488 fi 3494 fi
3489 3495
3490 3496
3491 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3497 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3492 echo "configure:3493: checking for main in -lXbsd" >&5 3498 echo "configure:3499: checking for main in -lXbsd" >&5
3493 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3499 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6 3501 echo $ac_n "(cached) $ac_c" 1>&6
3496 else 3502 else
3497 ac_save_LIBS="$LIBS" 3503 ac_save_LIBS="$LIBS"
3498 LIBS="-lXbsd $LIBS" 3504 LIBS="-lXbsd $LIBS"
3499 cat > conftest.$ac_ext <<EOF 3505 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure" 3506 #line 3507 "configure"
3501 #include "confdefs.h" 3507 #include "confdefs.h"
3502 3508
3503 int main() { 3509 int main() {
3504 main() 3510 main()
3505 ; return 0; } 3511 ; return 0; }
3506 EOF 3512 EOF
3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3513 if { (eval echo configure:3514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3508 rm -rf conftest* 3514 rm -rf conftest*
3509 eval "ac_cv_lib_$ac_lib_var=yes" 3515 eval "ac_cv_lib_$ac_lib_var=yes"
3510 else 3516 else
3511 echo "configure: failed program was:" >&5 3517 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5 3518 cat conftest.$ac_ext >&5
3524 echo "$ac_t""no" 1>&6 3530 echo "$ac_t""no" 1>&6
3525 fi 3531 fi
3526 3532
3527 3533
3528 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3534 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3529 echo "configure:3530: checking for cma_open in -lpthreads" >&5 3535 echo "configure:3536: checking for cma_open in -lpthreads" >&5
3530 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3536 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6 3538 echo $ac_n "(cached) $ac_c" 1>&6
3533 else 3539 else
3534 ac_save_LIBS="$LIBS" 3540 ac_save_LIBS="$LIBS"
3535 LIBS="-lpthreads $LIBS" 3541 LIBS="-lpthreads $LIBS"
3536 cat > conftest.$ac_ext <<EOF 3542 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure" 3543 #line 3544 "configure"
3538 #include "confdefs.h" 3544 #include "confdefs.h"
3539 /* Override any gcc2 internal prototype to avoid an error. */ 3545 /* Override any gcc2 internal prototype to avoid an error. */
3540 /* We use char because int might match the return type of a gcc2 3546 /* We use char because int might match the return type of a gcc2
3541 builtin and then its argument prototype would still apply. */ 3547 builtin and then its argument prototype would still apply. */
3542 char cma_open(); 3548 char cma_open();
3543 3549
3544 int main() { 3550 int main() {
3545 cma_open() 3551 cma_open()
3546 ; return 0; } 3552 ; return 0; }
3547 EOF 3553 EOF
3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3554 if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3549 rm -rf conftest* 3555 rm -rf conftest*
3550 eval "ac_cv_lib_$ac_lib_var=yes" 3556 eval "ac_cv_lib_$ac_lib_var=yes"
3551 else 3557 else
3552 echo "configure: failed program was:" >&5 3558 echo "configure: failed program was:" >&5
3553 cat conftest.$ac_ext >&5 3559 cat conftest.$ac_ext >&5
3572 echo "$ac_t""no" 1>&6 3578 echo "$ac_t""no" 1>&6
3573 fi 3579 fi
3574 3580
3575 3581
3576 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3582 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3577 echo "configure:3578: checking for XFree86 in /usr/X386" >&5 3583 echo "configure:3584: checking for XFree86 in /usr/X386" >&5
3578 if test -d /usr/X386/include; then 3584 if test -d /usr/X386/include; then
3579 HAVE_XFREE386=yes 3585 HAVE_XFREE386=yes
3580 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3586 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3581 else 3587 else
3582 HAVE_XFREE386=no 3588 HAVE_XFREE386=no
3601 export LD_RUN_PATH 3607 export LD_RUN_PATH
3602 fi 3608 fi
3603 3609
3604 if test "${opsys}" = "gnu-linux"; then 3610 if test "${opsys}" = "gnu-linux"; then
3605 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3611 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3606 echo "configure:3607: checking whether X on GNU/Linux needs -b to link" >&5 3612 echo "configure:3613: checking whether X on GNU/Linux needs -b to link" >&5
3607 cat > conftest.$ac_ext <<EOF 3613 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure" 3614 #line 3615 "configure"
3609 #include "confdefs.h" 3615 #include "confdefs.h"
3610 3616
3611 int main() { 3617 int main() {
3612 XOpenDisplay ("foo"); 3618 XOpenDisplay ("foo");
3613 ; return 0; } 3619 ; return 0; }
3614 EOF 3620 EOF
3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3616 rm -rf conftest* 3622 rm -rf conftest*
3617 xlinux_first_failure=no 3623 xlinux_first_failure=no
3618 else 3624 else
3619 echo "configure: failed program was:" >&5 3625 echo "configure: failed program was:" >&5
3620 cat conftest.$ac_ext >&5 3626 cat conftest.$ac_ext >&5
3630 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 3636 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3631 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 3637 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3632 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3638 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3633 LIBS="$LIBS -b i486-linuxaout" 3639 LIBS="$LIBS -b i486-linuxaout"
3634 cat > conftest.$ac_ext <<EOF 3640 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure" 3641 #line 3642 "configure"
3636 #include "confdefs.h" 3642 #include "confdefs.h"
3637 3643
3638 int main() { 3644 int main() {
3639 XOpenDisplay ("foo"); 3645 XOpenDisplay ("foo");
3640 ; return 0; } 3646 ; return 0; }
3641 EOF 3647 EOF
3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3648 if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3643 rm -rf conftest* 3649 rm -rf conftest*
3644 xlinux_second_failure=no 3650 xlinux_second_failure=no
3645 else 3651 else
3646 echo "configure: failed program was:" >&5 3652 echo "configure: failed program was:" >&5
3647 cat conftest.$ac_ext >&5 3653 cat conftest.$ac_ext >&5
3667 3673
3668 for ac_func in XrmSetDatabase XScreenResourceString \ 3674 for ac_func in XrmSetDatabase XScreenResourceString \
3669 XScreenNumberOfScreen XSetWMProtocols 3675 XScreenNumberOfScreen XSetWMProtocols
3670 do 3676 do
3671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_func" >&5 3678 echo "configure:3679: checking for $ac_func" >&5
3673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6 3680 echo $ac_n "(cached) $ac_c" 1>&6
3675 else 3681 else
3676 cat > conftest.$ac_ext <<EOF 3682 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure" 3683 #line 3684 "configure"
3678 #include "confdefs.h" 3684 #include "confdefs.h"
3679 /* System header to define __stub macros and hopefully few prototypes, 3685 /* System header to define __stub macros and hopefully few prototypes,
3680 which can conflict with char $ac_func(); below. */ 3686 which can conflict with char $ac_func(); below. */
3681 #include <assert.h> 3687 #include <assert.h>
3682 /* Override any gcc2 internal prototype to avoid an error. */ 3688 /* Override any gcc2 internal prototype to avoid an error. */
3696 f = $ac_func; 3702 f = $ac_func;
3697 #endif 3703 #endif
3698 3704
3699 ; return 0; } 3705 ; return 0; }
3700 EOF 3706 EOF
3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3707 if { (eval echo configure:3708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3702 rm -rf conftest* 3708 rm -rf conftest*
3703 eval "ac_cv_func_$ac_func=yes" 3709 eval "ac_cv_func_$ac_func=yes"
3704 else 3710 else
3705 echo "configure: failed program was:" >&5 3711 echo "configure: failed program was:" >&5
3706 cat conftest.$ac_ext >&5 3712 cat conftest.$ac_ext >&5
3724 3730
3725 fi 3731 fi
3726 3732
3727 if test "${window_system}" = "x11"; then 3733 if test "${window_system}" = "x11"; then
3728 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 3734 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3729 echo "configure:3730: checking X11 version 6" >&5 3735 echo "configure:3736: checking X11 version 6" >&5
3730 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 3736 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6 3737 echo $ac_n "(cached) $ac_c" 1>&6
3732 else 3738 else
3733 cat > conftest.$ac_ext <<EOF 3739 cat > conftest.$ac_ext <<EOF
3734 #line 3735 "configure" 3740 #line 3741 "configure"
3735 #include "confdefs.h" 3741 #include "confdefs.h"
3736 #include <X11/Xlib.h> 3742 #include <X11/Xlib.h>
3737 int main() { 3743 int main() {
3738 #if XlibSpecificationRelease < 6 3744 #if XlibSpecificationRelease < 6
3739 fail; 3745 fail;
3740 #endif 3746 #endif
3741 3747
3742 ; return 0; } 3748 ; return 0; }
3743 EOF 3749 EOF
3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3750 if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3745 rm -rf conftest* 3751 rm -rf conftest*
3746 emacs_cv_x11_version_6=yes 3752 emacs_cv_x11_version_6=yes
3747 else 3753 else
3748 echo "configure: failed program was:" >&5 3754 echo "configure: failed program was:" >&5
3749 cat conftest.$ac_ext >&5 3755 cat conftest.$ac_ext >&5
3764 fi 3770 fi
3765 fi 3771 fi
3766 3772
3767 if test "${window_system}" = "x11"; then 3773 if test "${window_system}" = "x11"; then
3768 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 3774 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3769 echo "configure:3770: checking X11 version 5" >&5 3775 echo "configure:3776: checking X11 version 5" >&5
3770 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 3776 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6 3777 echo $ac_n "(cached) $ac_c" 1>&6
3772 else 3778 else
3773 cat > conftest.$ac_ext <<EOF 3779 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure" 3780 #line 3781 "configure"
3775 #include "confdefs.h" 3781 #include "confdefs.h"
3776 #include <X11/Xlib.h> 3782 #include <X11/Xlib.h>
3777 int main() { 3783 int main() {
3778 #if XlibSpecificationRelease < 5 3784 #if XlibSpecificationRelease < 5
3779 fail; 3785 fail;
3780 #endif 3786 #endif
3781 3787
3782 ; return 0; } 3788 ; return 0; }
3783 EOF 3789 EOF
3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3785 rm -rf conftest* 3791 rm -rf conftest*
3786 emacs_cv_x11_version_5=yes 3792 emacs_cv_x11_version_5=yes
3787 else 3793 else
3788 echo "configure: failed program was:" >&5 3794 echo "configure: failed program was:" >&5
3789 cat conftest.$ac_ext >&5 3795 cat conftest.$ac_ext >&5
3807 fi 3813 fi
3808 3814
3809 if test x"${USE_X_TOOLKIT}" = xmaybe; then 3815 if test x"${USE_X_TOOLKIT}" = xmaybe; then
3810 if test x"${HAVE_X11R5}" = xyes; then 3816 if test x"${HAVE_X11R5}" = xyes; then
3811 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 3817 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3812 echo "configure:3813: checking X11 version 5 with Xaw" >&5 3818 echo "configure:3819: checking X11 version 5 with Xaw" >&5
3813 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 3819 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6 3820 echo $ac_n "(cached) $ac_c" 1>&6
3815 else 3821 else
3816 cat > conftest.$ac_ext <<EOF 3822 cat > conftest.$ac_ext <<EOF
3817 #line 3818 "configure" 3823 #line 3824 "configure"
3818 #include "confdefs.h" 3824 #include "confdefs.h"
3819 3825
3820 #include <X11/Intrinsic.h> 3826 #include <X11/Intrinsic.h>
3821 #include <X11/Xaw/Simple.h> 3827 #include <X11/Xaw/Simple.h>
3822 int main() { 3828 int main() {
3823 3829
3824 ; return 0; } 3830 ; return 0; }
3825 EOF 3831 EOF
3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3832 if { (eval echo configure:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3827 rm -rf conftest* 3833 rm -rf conftest*
3828 emacs_cv_x11_version_5_with_xaw=yes 3834 emacs_cv_x11_version_5_with_xaw=yes
3829 else 3835 else
3830 echo "configure: failed program was:" >&5 3836 echo "configure: failed program was:" >&5
3831 cat conftest.$ac_ext >&5 3837 cat conftest.$ac_ext >&5
3849 3855
3850 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 3856 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
3851 3857
3852 if test "${USE_X_TOOLKIT}" != "none"; then 3858 if test "${USE_X_TOOLKIT}" != "none"; then
3853 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 3859 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3854 echo "configure:3855: checking X11 toolkit version" >&5 3860 echo "configure:3861: checking X11 toolkit version" >&5
3855 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 3861 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3856 echo $ac_n "(cached) $ac_c" 1>&6 3862 echo $ac_n "(cached) $ac_c" 1>&6
3857 else 3863 else
3858 cat > conftest.$ac_ext <<EOF 3864 cat > conftest.$ac_ext <<EOF
3859 #line 3860 "configure" 3865 #line 3866 "configure"
3860 #include "confdefs.h" 3866 #include "confdefs.h"
3861 #include <X11/Intrinsic.h> 3867 #include <X11/Intrinsic.h>
3862 int main() { 3868 int main() {
3863 #if XtSpecificationRelease < 6 3869 #if XtSpecificationRelease < 6
3864 fail; 3870 fail;
3865 #endif 3871 #endif
3866 3872
3867 ; return 0; } 3873 ; return 0; }
3868 EOF 3874 EOF
3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3875 if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3870 rm -rf conftest* 3876 rm -rf conftest*
3871 emacs_cv_x11_toolkit_version_6=yes 3877 emacs_cv_x11_toolkit_version_6=yes
3872 else 3878 else
3873 echo "configure: failed program was:" >&5 3879 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5 3880 cat conftest.$ac_ext >&5
3894 LIBS="-lXt -lSM -lICE $LIBS" 3900 LIBS="-lXt -lSM -lICE $LIBS"
3895 else 3901 else
3896 LIBS="-lXt $LIBS" 3902 LIBS="-lXt $LIBS"
3897 fi 3903 fi
3898 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 3904 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3899 echo "configure:3900: checking for XmuConvertStandardSelection in -lXmu" >&5 3905 echo "configure:3906: checking for XmuConvertStandardSelection in -lXmu" >&5
3900 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 3906 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6 3908 echo $ac_n "(cached) $ac_c" 1>&6
3903 else 3909 else
3904 ac_save_LIBS="$LIBS" 3910 ac_save_LIBS="$LIBS"
3905 LIBS="-lXmu $LIBS" 3911 LIBS="-lXmu $LIBS"
3906 cat > conftest.$ac_ext <<EOF 3912 cat > conftest.$ac_ext <<EOF
3907 #line 3908 "configure" 3913 #line 3914 "configure"
3908 #include "confdefs.h" 3914 #include "confdefs.h"
3909 /* Override any gcc2 internal prototype to avoid an error. */ 3915 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2 3916 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */ 3917 builtin and then its argument prototype would still apply. */
3912 char XmuConvertStandardSelection(); 3918 char XmuConvertStandardSelection();
3913 3919
3914 int main() { 3920 int main() {
3915 XmuConvertStandardSelection() 3921 XmuConvertStandardSelection()
3916 ; return 0; } 3922 ; return 0; }
3917 EOF 3923 EOF
3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3924 if { (eval echo configure:3925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3919 rm -rf conftest* 3925 rm -rf conftest*
3920 eval "ac_cv_lib_$ac_lib_var=yes" 3926 eval "ac_cv_lib_$ac_lib_var=yes"
3921 else 3927 else
3922 echo "configure: failed program was:" >&5 3928 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5 3929 cat conftest.$ac_ext >&5
3945 LIBS="$OLDLIBS" 3951 LIBS="$OLDLIBS"
3946 fi 3952 fi
3947 3953
3948 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 3954 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3949 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 3955 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3950 echo "configure:3951: checking for Motif version 2.1" >&5 3956 echo "configure:3957: checking for Motif version 2.1" >&5
3951 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 3957 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3952 echo $ac_n "(cached) $ac_c" 1>&6 3958 echo $ac_n "(cached) $ac_c" 1>&6
3953 else 3959 else
3954 cat > conftest.$ac_ext <<EOF 3960 cat > conftest.$ac_ext <<EOF
3955 #line 3956 "configure" 3961 #line 3962 "configure"
3956 #include "confdefs.h" 3962 #include "confdefs.h"
3957 #include <Xm/Xm.h> 3963 #include <Xm/Xm.h>
3958 int main() { 3964 int main() {
3959 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 3965 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3960 int x = 5; 3966 int x = 5;
3961 #else 3967 #else
3962 Motif version prior to 2.1. 3968 Motif version prior to 2.1.
3963 #endif 3969 #endif
3964 ; return 0; } 3970 ; return 0; }
3965 EOF 3971 EOF
3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3972 if { (eval echo configure:3973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3967 rm -rf conftest* 3973 rm -rf conftest*
3968 emacs_cv_motif_version_2_1=yes 3974 emacs_cv_motif_version_2_1=yes
3969 else 3975 else
3970 echo "configure: failed program was:" >&5 3976 echo "configure: failed program was:" >&5
3971 cat conftest.$ac_ext >&5 3977 cat conftest.$ac_ext >&5
3981 cat >> confdefs.h <<\EOF 3987 cat >> confdefs.h <<\EOF
3982 #define HAVE_MOTIF_2_1 1 3988 #define HAVE_MOTIF_2_1 1
3983 EOF 3989 EOF
3984 3990
3985 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 3991 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3986 echo "configure:3987: checking for XpCreateContext in -lXp" >&5 3992 echo "configure:3993: checking for XpCreateContext in -lXp" >&5
3987 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 3993 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3994 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3989 echo $ac_n "(cached) $ac_c" 1>&6 3995 echo $ac_n "(cached) $ac_c" 1>&6
3990 else 3996 else
3991 ac_save_LIBS="$LIBS" 3997 ac_save_LIBS="$LIBS"
3992 LIBS="-lXp $LIBS" 3998 LIBS="-lXp $LIBS"
3993 cat > conftest.$ac_ext <<EOF 3999 cat > conftest.$ac_ext <<EOF
3994 #line 3995 "configure" 4000 #line 4001 "configure"
3995 #include "confdefs.h" 4001 #include "confdefs.h"
3996 /* Override any gcc2 internal prototype to avoid an error. */ 4002 /* Override any gcc2 internal prototype to avoid an error. */
3997 /* We use char because int might match the return type of a gcc2 4003 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */ 4004 builtin and then its argument prototype would still apply. */
3999 char XpCreateContext(); 4005 char XpCreateContext();
4000 4006
4001 int main() { 4007 int main() {
4002 XpCreateContext() 4008 XpCreateContext()
4003 ; return 0; } 4009 ; return 0; }
4004 EOF 4010 EOF
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4011 if { (eval echo configure:4012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006 rm -rf conftest* 4012 rm -rf conftest*
4007 eval "ac_cv_lib_$ac_lib_var=yes" 4013 eval "ac_cv_lib_$ac_lib_var=yes"
4008 else 4014 else
4009 echo "configure: failed program was:" >&5 4015 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5 4016 cat conftest.$ac_ext >&5
4038 if test "${USE_X_TOOLKIT}" != "none"; then 4044 if test "${USE_X_TOOLKIT}" != "none"; then
4039 old_c_flags="${CFLAGS}" 4045 old_c_flags="${CFLAGS}"
4040 CFLAGS="${LD_SWITCH_X_SITE}" 4046 CFLAGS="${LD_SWITCH_X_SITE}"
4041 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4047 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4042 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4048 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4043 echo "configure:4044: checking for X11/Xaw3d/Scrollbar.h" >&5 4049 echo "configure:4050: checking for X11/Xaw3d/Scrollbar.h" >&5
4044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6 4051 echo $ac_n "(cached) $ac_c" 1>&6
4046 else 4052 else
4047 cat > conftest.$ac_ext <<EOF 4053 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure" 4054 #line 4055 "configure"
4049 #include "confdefs.h" 4055 #include "confdefs.h"
4050 #include <X11/Xaw3d/Scrollbar.h> 4056 #include <X11/Xaw3d/Scrollbar.h>
4051 EOF 4057 EOF
4052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4053 { (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4059 { (eval echo configure:4060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4055 if test -z "$ac_err"; then 4061 if test -z "$ac_err"; then
4056 rm -rf conftest* 4062 rm -rf conftest*
4057 eval "ac_cv_header_$ac_safe=yes" 4063 eval "ac_cv_header_$ac_safe=yes"
4058 else 4064 else
4065 rm -f conftest* 4071 rm -f conftest*
4066 fi 4072 fi
4067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4068 echo "$ac_t""yes" 1>&6 4074 echo "$ac_t""yes" 1>&6
4069 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4075 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4070 echo "configure:4071: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4076 echo "configure:4077: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4071 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4077 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4073 echo $ac_n "(cached) $ac_c" 1>&6 4079 echo $ac_n "(cached) $ac_c" 1>&6
4074 else 4080 else
4075 ac_save_LIBS="$LIBS" 4081 ac_save_LIBS="$LIBS"
4076 LIBS="-lXaw3d -lX11 $LIBS" 4082 LIBS="-lXaw3d -lX11 $LIBS"
4077 cat > conftest.$ac_ext <<EOF 4083 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure" 4084 #line 4085 "configure"
4079 #include "confdefs.h" 4085 #include "confdefs.h"
4080 /* Override any gcc2 internal prototype to avoid an error. */ 4086 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2 4087 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */ 4088 builtin and then its argument prototype would still apply. */
4083 char XawScrollbarSetThumb(); 4089 char XawScrollbarSetThumb();
4084 4090
4085 int main() { 4091 int main() {
4086 XawScrollbarSetThumb() 4092 XawScrollbarSetThumb()
4087 ; return 0; } 4093 ; return 0; }
4088 EOF 4094 EOF
4089 if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4095 if { (eval echo configure:4096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 rm -rf conftest* 4096 rm -rf conftest*
4091 eval "ac_cv_lib_$ac_lib_var=yes" 4097 eval "ac_cv_lib_$ac_lib_var=yes"
4092 else 4098 else
4093 echo "configure: failed program was:" >&5 4099 echo "configure: failed program was:" >&5
4094 cat conftest.$ac_ext >&5 4100 cat conftest.$ac_ext >&5
4148 if test "${with_xpm}" != "no"; then 4154 if test "${with_xpm}" != "no"; then
4149 old_c_flags="${CFLAGS}" 4155 old_c_flags="${CFLAGS}"
4150 CFLAGS="${LD_SWITCH_X_SITE}" 4156 CFLAGS="${LD_SWITCH_X_SITE}"
4151 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4157 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4152 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4158 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4153 echo "configure:4154: checking for X11/xpm.h" >&5 4159 echo "configure:4160: checking for X11/xpm.h" >&5
4154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6 4161 echo $ac_n "(cached) $ac_c" 1>&6
4156 else 4162 else
4157 cat > conftest.$ac_ext <<EOF 4163 cat > conftest.$ac_ext <<EOF
4158 #line 4159 "configure" 4164 #line 4165 "configure"
4159 #include "confdefs.h" 4165 #include "confdefs.h"
4160 #include <X11/xpm.h> 4166 #include <X11/xpm.h>
4161 EOF 4167 EOF
4162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4163 { (eval echo configure:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4169 { (eval echo configure:4170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4165 if test -z "$ac_err"; then 4171 if test -z "$ac_err"; then
4166 rm -rf conftest* 4172 rm -rf conftest*
4167 eval "ac_cv_header_$ac_safe=yes" 4173 eval "ac_cv_header_$ac_safe=yes"
4168 else 4174 else
4175 rm -f conftest* 4181 rm -f conftest*
4176 fi 4182 fi
4177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6 4184 echo "$ac_t""yes" 1>&6
4179 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4185 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4180 echo "configure:4181: checking for XpmReadFileToPixmap in -lXpm" >&5 4186 echo "configure:4187: checking for XpmReadFileToPixmap in -lXpm" >&5
4181 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4187 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6 4189 echo $ac_n "(cached) $ac_c" 1>&6
4184 else 4190 else
4185 ac_save_LIBS="$LIBS" 4191 ac_save_LIBS="$LIBS"
4186 LIBS="-lXpm -lX11 $LIBS" 4192 LIBS="-lXpm -lX11 $LIBS"
4187 cat > conftest.$ac_ext <<EOF 4193 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure" 4194 #line 4195 "configure"
4189 #include "confdefs.h" 4195 #include "confdefs.h"
4190 /* Override any gcc2 internal prototype to avoid an error. */ 4196 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2 4197 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */ 4198 builtin and then its argument prototype would still apply. */
4193 char XpmReadFileToPixmap(); 4199 char XpmReadFileToPixmap();
4194 4200
4195 int main() { 4201 int main() {
4196 XpmReadFileToPixmap() 4202 XpmReadFileToPixmap()
4197 ; return 0; } 4203 ; return 0; }
4198 EOF 4204 EOF
4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4205 if { (eval echo configure:4206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4200 rm -rf conftest* 4206 rm -rf conftest*
4201 eval "ac_cv_lib_$ac_lib_var=yes" 4207 eval "ac_cv_lib_$ac_lib_var=yes"
4202 else 4208 else
4203 echo "configure: failed program was:" >&5 4209 echo "configure: failed program was:" >&5
4204 cat conftest.$ac_ext >&5 4210 cat conftest.$ac_ext >&5
4236 if test "${HAVE_X11}" = "yes"; then 4242 if test "${HAVE_X11}" = "yes"; then
4237 if test "${with_jpeg}" != "no"; then 4243 if test "${with_jpeg}" != "no"; then
4238 old_c_flags="${CFLAGS}" 4244 old_c_flags="${CFLAGS}"
4239 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4245 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4240 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4246 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4241 echo "configure:4242: checking for jpeg_destroy_compress in -ljpeg" >&5 4247 echo "configure:4248: checking for jpeg_destroy_compress in -ljpeg" >&5
4242 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4248 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6 4250 echo $ac_n "(cached) $ac_c" 1>&6
4245 else 4251 else
4246 ac_save_LIBS="$LIBS" 4252 ac_save_LIBS="$LIBS"
4247 LIBS="-ljpeg -lX11 $LIBS" 4253 LIBS="-ljpeg -lX11 $LIBS"
4248 cat > conftest.$ac_ext <<EOF 4254 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure" 4255 #line 4256 "configure"
4250 #include "confdefs.h" 4256 #include "confdefs.h"
4251 /* Override any gcc2 internal prototype to avoid an error. */ 4257 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2 4258 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */ 4259 builtin and then its argument prototype would still apply. */
4254 char jpeg_destroy_compress(); 4260 char jpeg_destroy_compress();
4255 4261
4256 int main() { 4262 int main() {
4257 jpeg_destroy_compress() 4263 jpeg_destroy_compress()
4258 ; return 0; } 4264 ; return 0; }
4259 EOF 4265 EOF
4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4261 rm -rf conftest* 4267 rm -rf conftest*
4262 eval "ac_cv_lib_$ac_lib_var=yes" 4268 eval "ac_cv_lib_$ac_lib_var=yes"
4263 else 4269 else
4264 echo "configure: failed program was:" >&5 4270 echo "configure: failed program was:" >&5
4265 cat conftest.$ac_ext >&5 4271 cat conftest.$ac_ext >&5
4294 if test "${with_png}" != "no"; then 4300 if test "${with_png}" != "no"; then
4295 old_c_flags="${CFLAGS}" 4301 old_c_flags="${CFLAGS}"
4296 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4302 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4297 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4303 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4298 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4304 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4299 echo "configure:4300: checking for png.h" >&5 4305 echo "configure:4306: checking for png.h" >&5
4300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6 4307 echo $ac_n "(cached) $ac_c" 1>&6
4302 else 4308 else
4303 cat > conftest.$ac_ext <<EOF 4309 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure" 4310 #line 4311 "configure"
4305 #include "confdefs.h" 4311 #include "confdefs.h"
4306 #include <png.h> 4312 #include <png.h>
4307 EOF 4313 EOF
4308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4309 { (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4315 { (eval echo configure:4316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4311 if test -z "$ac_err"; then 4317 if test -z "$ac_err"; then
4312 rm -rf conftest* 4318 rm -rf conftest*
4313 eval "ac_cv_header_$ac_safe=yes" 4319 eval "ac_cv_header_$ac_safe=yes"
4314 else 4320 else
4321 rm -f conftest* 4327 rm -f conftest*
4322 fi 4328 fi
4323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6 4330 echo "$ac_t""yes" 1>&6
4325 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4331 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4326 echo "configure:4327: checking for png_set_expand in -lpng" >&5 4332 echo "configure:4333: checking for png_set_expand in -lpng" >&5
4327 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4333 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4334 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4329 echo $ac_n "(cached) $ac_c" 1>&6 4335 echo $ac_n "(cached) $ac_c" 1>&6
4330 else 4336 else
4331 ac_save_LIBS="$LIBS" 4337 ac_save_LIBS="$LIBS"
4332 LIBS="-lpng -lX11 -lz -lm $LIBS" 4338 LIBS="-lpng -lX11 -lz -lm $LIBS"
4333 cat > conftest.$ac_ext <<EOF 4339 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure" 4340 #line 4341 "configure"
4335 #include "confdefs.h" 4341 #include "confdefs.h"
4336 /* Override any gcc2 internal prototype to avoid an error. */ 4342 /* Override any gcc2 internal prototype to avoid an error. */
4337 /* We use char because int might match the return type of a gcc2 4343 /* We use char because int might match the return type of a gcc2
4338 builtin and then its argument prototype would still apply. */ 4344 builtin and then its argument prototype would still apply. */
4339 char png_set_expand(); 4345 char png_set_expand();
4340 4346
4341 int main() { 4347 int main() {
4342 png_set_expand() 4348 png_set_expand()
4343 ; return 0; } 4349 ; return 0; }
4344 EOF 4350 EOF
4345 if { (eval echo configure:4346: \"$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
4346 rm -rf conftest* 4352 rm -rf conftest*
4347 eval "ac_cv_lib_$ac_lib_var=yes" 4353 eval "ac_cv_lib_$ac_lib_var=yes"
4348 else 4354 else
4349 echo "configure: failed program was:" >&5 4355 echo "configure: failed program was:" >&5
4350 cat conftest.$ac_ext >&5 4356 cat conftest.$ac_ext >&5
4383 if test "${with_tiff}" != "no"; then 4389 if test "${with_tiff}" != "no"; then
4384 old_c_flags="${CFLAGS}" 4390 old_c_flags="${CFLAGS}"
4385 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4391 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4386 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4392 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4387 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4393 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4388 echo "configure:4389: checking for tiffio.h" >&5 4394 echo "configure:4395: checking for tiffio.h" >&5
4389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4390 echo $ac_n "(cached) $ac_c" 1>&6 4396 echo $ac_n "(cached) $ac_c" 1>&6
4391 else 4397 else
4392 cat > conftest.$ac_ext <<EOF 4398 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure" 4399 #line 4400 "configure"
4394 #include "confdefs.h" 4400 #include "confdefs.h"
4395 #include <tiffio.h> 4401 #include <tiffio.h>
4396 EOF 4402 EOF
4397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4398 { (eval echo configure:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4404 { (eval echo configure:4405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4400 if test -z "$ac_err"; then 4406 if test -z "$ac_err"; then
4401 rm -rf conftest* 4407 rm -rf conftest*
4402 eval "ac_cv_header_$ac_safe=yes" 4408 eval "ac_cv_header_$ac_safe=yes"
4403 else 4409 else
4410 rm -f conftest* 4416 rm -f conftest*
4411 fi 4417 fi
4412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4413 echo "$ac_t""yes" 1>&6 4419 echo "$ac_t""yes" 1>&6
4414 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4420 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4415 echo "configure:4416: checking for TIFFGetVersion in -ltiff" >&5 4421 echo "configure:4422: checking for TIFFGetVersion in -ltiff" >&5
4416 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4422 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6 4424 echo $ac_n "(cached) $ac_c" 1>&6
4419 else 4425 else
4420 ac_save_LIBS="$LIBS" 4426 ac_save_LIBS="$LIBS"
4421 LIBS="-ltiff -lX11 -lm $LIBS" 4427 LIBS="-ltiff -lX11 -lm $LIBS"
4422 cat > conftest.$ac_ext <<EOF 4428 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure" 4429 #line 4430 "configure"
4424 #include "confdefs.h" 4430 #include "confdefs.h"
4425 /* Override any gcc2 internal prototype to avoid an error. */ 4431 /* Override any gcc2 internal prototype to avoid an error. */
4426 /* We use char because int might match the return type of a gcc2 4432 /* We use char because int might match the return type of a gcc2
4427 builtin and then its argument prototype would still apply. */ 4433 builtin and then its argument prototype would still apply. */
4428 char TIFFGetVersion(); 4434 char TIFFGetVersion();
4429 4435
4430 int main() { 4436 int main() {
4431 TIFFGetVersion() 4437 TIFFGetVersion()
4432 ; return 0; } 4438 ; return 0; }
4433 EOF 4439 EOF
4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4435 rm -rf conftest* 4441 rm -rf conftest*
4436 eval "ac_cv_lib_$ac_lib_var=yes" 4442 eval "ac_cv_lib_$ac_lib_var=yes"
4437 else 4443 else
4438 echo "configure: failed program was:" >&5 4444 echo "configure: failed program was:" >&5
4439 cat conftest.$ac_ext >&5 4445 cat conftest.$ac_ext >&5
4472 if test "${with_gif}" != "no"; then 4478 if test "${with_gif}" != "no"; then
4473 old_c_flags="${CFLAGS}" 4479 old_c_flags="${CFLAGS}"
4474 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4480 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4475 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4481 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4476 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4482 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4477 echo "configure:4478: checking for gif_lib.h" >&5 4483 echo "configure:4484: checking for gif_lib.h" >&5
4478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4479 echo $ac_n "(cached) $ac_c" 1>&6 4485 echo $ac_n "(cached) $ac_c" 1>&6
4480 else 4486 else
4481 cat > conftest.$ac_ext <<EOF 4487 cat > conftest.$ac_ext <<EOF
4482 #line 4483 "configure" 4488 #line 4489 "configure"
4483 #include "confdefs.h" 4489 #include "confdefs.h"
4484 #include <gif_lib.h> 4490 #include <gif_lib.h>
4485 EOF 4491 EOF
4486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4487 { (eval echo configure:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4493 { (eval echo configure:4494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4489 if test -z "$ac_err"; then 4495 if test -z "$ac_err"; then
4490 rm -rf conftest* 4496 rm -rf conftest*
4491 eval "ac_cv_header_$ac_safe=yes" 4497 eval "ac_cv_header_$ac_safe=yes"
4492 else 4498 else
4499 rm -f conftest* 4505 rm -f conftest*
4500 fi 4506 fi
4501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4502 echo "$ac_t""yes" 1>&6 4508 echo "$ac_t""yes" 1>&6
4503 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 4509 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4504 echo "configure:4505: checking for DGifOpenFileName in -lungif" >&5 4510 echo "configure:4511: checking for DGifOpenFileName in -lungif" >&5
4505 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` 4511 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4507 echo $ac_n "(cached) $ac_c" 1>&6 4513 echo $ac_n "(cached) $ac_c" 1>&6
4508 else 4514 else
4509 ac_save_LIBS="$LIBS" 4515 ac_save_LIBS="$LIBS"
4510 LIBS="-lungif -lX11 $LIBS" 4516 LIBS="-lungif -lX11 $LIBS"
4511 cat > conftest.$ac_ext <<EOF 4517 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure" 4518 #line 4519 "configure"
4513 #include "confdefs.h" 4519 #include "confdefs.h"
4514 /* Override any gcc2 internal prototype to avoid an error. */ 4520 /* Override any gcc2 internal prototype to avoid an error. */
4515 /* We use char because int might match the return type of a gcc2 4521 /* We use char because int might match the return type of a gcc2
4516 builtin and then its argument prototype would still apply. */ 4522 builtin and then its argument prototype would still apply. */
4517 char DGifOpenFileName(); 4523 char DGifOpenFileName();
4518 4524
4519 int main() { 4525 int main() {
4520 DGifOpenFileName() 4526 DGifOpenFileName()
4521 ; return 0; } 4527 ; return 0; }
4522 EOF 4528 EOF
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4524 rm -rf conftest* 4530 rm -rf conftest*
4525 eval "ac_cv_lib_$ac_lib_var=yes" 4531 eval "ac_cv_lib_$ac_lib_var=yes"
4526 else 4532 else
4527 echo "configure: failed program was:" >&5 4533 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5 4534 cat conftest.$ac_ext >&5
4555 fi 4561 fi
4556 fi 4562 fi
4557 4563
4558 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4564 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4559 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4565 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4560 echo "configure:4561: checking whether netdb declares h_errno" >&5 4566 echo "configure:4567: checking whether netdb declares h_errno" >&5
4561 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4567 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6 4568 echo $ac_n "(cached) $ac_c" 1>&6
4563 else 4569 else
4564 cat > conftest.$ac_ext <<EOF 4570 cat > conftest.$ac_ext <<EOF
4565 #line 4566 "configure" 4571 #line 4572 "configure"
4566 #include "confdefs.h" 4572 #include "confdefs.h"
4567 #include <netdb.h> 4573 #include <netdb.h>
4568 int main() { 4574 int main() {
4569 return h_errno; 4575 return h_errno;
4570 ; return 0; } 4576 ; return 0; }
4571 EOF 4577 EOF
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4578 if { (eval echo configure:4579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573 rm -rf conftest* 4579 rm -rf conftest*
4574 emacs_cv_netdb_declares_h_errno=yes 4580 emacs_cv_netdb_declares_h_errno=yes
4575 else 4581 else
4576 echo "configure: failed program was:" >&5 4582 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5 4583 cat conftest.$ac_ext >&5
4590 fi 4596 fi
4591 4597
4592 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4598 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4593 # for constant arguments. Useless! 4599 # for constant arguments. Useless!
4594 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4600 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4595 echo "configure:4596: checking for working alloca.h" >&5 4601 echo "configure:4602: checking for working alloca.h" >&5
4596 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4602 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6 4603 echo $ac_n "(cached) $ac_c" 1>&6
4598 else 4604 else
4599 cat > conftest.$ac_ext <<EOF 4605 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure" 4606 #line 4607 "configure"
4601 #include "confdefs.h" 4607 #include "confdefs.h"
4602 #include <alloca.h> 4608 #include <alloca.h>
4603 int main() { 4609 int main() {
4604 char *p = alloca(2 * sizeof(int)); 4610 char *p = alloca(2 * sizeof(int));
4605 ; return 0; } 4611 ; return 0; }
4606 EOF 4612 EOF
4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4608 rm -rf conftest* 4614 rm -rf conftest*
4609 ac_cv_header_alloca_h=yes 4615 ac_cv_header_alloca_h=yes
4610 else 4616 else
4611 echo "configure: failed program was:" >&5 4617 echo "configure: failed program was:" >&5
4612 cat conftest.$ac_ext >&5 4618 cat conftest.$ac_ext >&5
4623 EOF 4629 EOF
4624 4630
4625 fi 4631 fi
4626 4632
4627 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4633 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4628 echo "configure:4629: checking for alloca" >&5 4634 echo "configure:4635: checking for alloca" >&5
4629 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4635 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6 4636 echo $ac_n "(cached) $ac_c" 1>&6
4631 else 4637 else
4632 cat > conftest.$ac_ext <<EOF 4638 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure" 4639 #line 4640 "configure"
4634 #include "confdefs.h" 4640 #include "confdefs.h"
4635 4641
4636 #ifdef __GNUC__ 4642 #ifdef __GNUC__
4637 # define alloca __builtin_alloca 4643 # define alloca __builtin_alloca
4638 #else 4644 #else
4656 4662
4657 int main() { 4663 int main() {
4658 char *p = (char *) alloca(1); 4664 char *p = (char *) alloca(1);
4659 ; return 0; } 4665 ; return 0; }
4660 EOF 4666 EOF
4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4667 if { (eval echo configure:4668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4662 rm -rf conftest* 4668 rm -rf conftest*
4663 ac_cv_func_alloca_works=yes 4669 ac_cv_func_alloca_works=yes
4664 else 4670 else
4665 echo "configure: failed program was:" >&5 4671 echo "configure: failed program was:" >&5
4666 cat conftest.$ac_ext >&5 4672 cat conftest.$ac_ext >&5
4688 #define C_ALLOCA 1 4694 #define C_ALLOCA 1
4689 EOF 4695 EOF
4690 4696
4691 4697
4692 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4698 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4693 echo "configure:4694: checking whether alloca needs Cray hooks" >&5 4699 echo "configure:4700: checking whether alloca needs Cray hooks" >&5
4694 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4700 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6 4701 echo $ac_n "(cached) $ac_c" 1>&6
4696 else 4702 else
4697 cat > conftest.$ac_ext <<EOF 4703 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure" 4704 #line 4705 "configure"
4699 #include "confdefs.h" 4705 #include "confdefs.h"
4700 #if defined(CRAY) && ! defined(CRAY2) 4706 #if defined(CRAY) && ! defined(CRAY2)
4701 webecray 4707 webecray
4702 #else 4708 #else
4703 wenotbecray 4709 wenotbecray
4718 4724
4719 echo "$ac_t""$ac_cv_os_cray" 1>&6 4725 echo "$ac_t""$ac_cv_os_cray" 1>&6
4720 if test $ac_cv_os_cray = yes; then 4726 if test $ac_cv_os_cray = yes; then
4721 for ac_func in _getb67 GETB67 getb67; do 4727 for ac_func in _getb67 GETB67 getb67; do
4722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4728 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4723 echo "configure:4724: checking for $ac_func" >&5 4729 echo "configure:4730: checking for $ac_func" >&5
4724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4730 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6 4731 echo $ac_n "(cached) $ac_c" 1>&6
4726 else 4732 else
4727 cat > conftest.$ac_ext <<EOF 4733 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure" 4734 #line 4735 "configure"
4729 #include "confdefs.h" 4735 #include "confdefs.h"
4730 /* System header to define __stub macros and hopefully few prototypes, 4736 /* System header to define __stub macros and hopefully few prototypes,
4731 which can conflict with char $ac_func(); below. */ 4737 which can conflict with char $ac_func(); below. */
4732 #include <assert.h> 4738 #include <assert.h>
4733 /* Override any gcc2 internal prototype to avoid an error. */ 4739 /* Override any gcc2 internal prototype to avoid an error. */
4747 f = $ac_func; 4753 f = $ac_func;
4748 #endif 4754 #endif
4749 4755
4750 ; return 0; } 4756 ; return 0; }
4751 EOF 4757 EOF
4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4753 rm -rf conftest* 4759 rm -rf conftest*
4754 eval "ac_cv_func_$ac_func=yes" 4760 eval "ac_cv_func_$ac_func=yes"
4755 else 4761 else
4756 echo "configure: failed program was:" >&5 4762 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5 4763 cat conftest.$ac_ext >&5
4774 4780
4775 done 4781 done
4776 fi 4782 fi
4777 4783
4778 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 4784 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4779 echo "configure:4780: checking stack direction for C alloca" >&5 4785 echo "configure:4786: checking stack direction for C alloca" >&5
4780 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 4786 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4781 echo $ac_n "(cached) $ac_c" 1>&6 4787 echo $ac_n "(cached) $ac_c" 1>&6
4782 else 4788 else
4783 if test "$cross_compiling" = yes; then 4789 if test "$cross_compiling" = yes; then
4784 ac_cv_c_stack_direction=0 4790 ac_cv_c_stack_direction=0
4785 else 4791 else
4786 cat > conftest.$ac_ext <<EOF 4792 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure" 4793 #line 4794 "configure"
4788 #include "confdefs.h" 4794 #include "confdefs.h"
4789 find_stack_direction () 4795 find_stack_direction ()
4790 { 4796 {
4791 static char *addr = 0; 4797 static char *addr = 0;
4792 auto char dummy; 4798 auto char dummy;
4801 main () 4807 main ()
4802 { 4808 {
4803 exit (find_stack_direction() < 0); 4809 exit (find_stack_direction() < 0);
4804 } 4810 }
4805 EOF 4811 EOF
4806 if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4807 then 4813 then
4808 ac_cv_c_stack_direction=1 4814 ac_cv_c_stack_direction=1
4809 else 4815 else
4810 echo "configure: failed program was:" >&5 4816 echo "configure: failed program was:" >&5
4811 cat conftest.$ac_ext >&5 4817 cat conftest.$ac_ext >&5
4826 4832
4827 4833
4828 # fmod, logb, and frexp are found in -lm on most systems. 4834 # fmod, logb, and frexp are found in -lm on most systems.
4829 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 4835 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4830 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 4836 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4831 echo "configure:4832: checking for sqrt in -lm" >&5 4837 echo "configure:4838: checking for sqrt in -lm" >&5
4832 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 4838 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6 4840 echo $ac_n "(cached) $ac_c" 1>&6
4835 else 4841 else
4836 ac_save_LIBS="$LIBS" 4842 ac_save_LIBS="$LIBS"
4837 LIBS="-lm $LIBS" 4843 LIBS="-lm $LIBS"
4838 cat > conftest.$ac_ext <<EOF 4844 cat > conftest.$ac_ext <<EOF
4839 #line 4840 "configure" 4845 #line 4846 "configure"
4840 #include "confdefs.h" 4846 #include "confdefs.h"
4841 /* Override any gcc2 internal prototype to avoid an error. */ 4847 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2 4848 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */ 4849 builtin and then its argument prototype would still apply. */
4844 char sqrt(); 4850 char sqrt();
4845 4851
4846 int main() { 4852 int main() {
4847 sqrt() 4853 sqrt()
4848 ; return 0; } 4854 ; return 0; }
4849 EOF 4855 EOF
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4851 rm -rf conftest* 4857 rm -rf conftest*
4852 eval "ac_cv_lib_$ac_lib_var=yes" 4858 eval "ac_cv_lib_$ac_lib_var=yes"
4853 else 4859 else
4854 echo "configure: failed program was:" >&5 4860 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5 4861 cat conftest.$ac_ext >&5
4875 fi 4881 fi
4876 4882
4877 4883
4878 # Check for mail-locking functions in a "mail" library 4884 # Check for mail-locking functions in a "mail" library
4879 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 4885 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4880 echo "configure:4881: checking for maillock in -lmail" >&5 4886 echo "configure:4887: checking for maillock in -lmail" >&5
4881 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 4887 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4883 echo $ac_n "(cached) $ac_c" 1>&6 4889 echo $ac_n "(cached) $ac_c" 1>&6
4884 else 4890 else
4885 ac_save_LIBS="$LIBS" 4891 ac_save_LIBS="$LIBS"
4886 LIBS="-lmail $LIBS" 4892 LIBS="-lmail $LIBS"
4887 cat > conftest.$ac_ext <<EOF 4893 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure" 4894 #line 4895 "configure"
4889 #include "confdefs.h" 4895 #include "confdefs.h"
4890 /* Override any gcc2 internal prototype to avoid an error. */ 4896 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2 4897 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */ 4898 builtin and then its argument prototype would still apply. */
4893 char maillock(); 4899 char maillock();
4894 4900
4895 int main() { 4901 int main() {
4896 maillock() 4902 maillock()
4897 ; return 0; } 4903 ; return 0; }
4898 EOF 4904 EOF
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4905 if { (eval echo configure:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 rm -rf conftest* 4906 rm -rf conftest*
4901 eval "ac_cv_lib_$ac_lib_var=yes" 4907 eval "ac_cv_lib_$ac_lib_var=yes"
4902 else 4908 else
4903 echo "configure: failed program was:" >&5 4909 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5 4910 cat conftest.$ac_ext >&5
4922 else 4928 else
4923 echo "$ac_t""no" 1>&6 4929 echo "$ac_t""no" 1>&6
4924 fi 4930 fi
4925 4931
4926 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 4932 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4927 echo "configure:4928: checking for maillock in -llockfile" >&5 4933 echo "configure:4934: checking for maillock in -llockfile" >&5
4928 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 4934 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4930 echo $ac_n "(cached) $ac_c" 1>&6 4936 echo $ac_n "(cached) $ac_c" 1>&6
4931 else 4937 else
4932 ac_save_LIBS="$LIBS" 4938 ac_save_LIBS="$LIBS"
4933 LIBS="-llockfile $LIBS" 4939 LIBS="-llockfile $LIBS"
4934 cat > conftest.$ac_ext <<EOF 4940 cat > conftest.$ac_ext <<EOF
4935 #line 4936 "configure" 4941 #line 4942 "configure"
4936 #include "confdefs.h" 4942 #include "confdefs.h"
4937 /* Override any gcc2 internal prototype to avoid an error. */ 4943 /* Override any gcc2 internal prototype to avoid an error. */
4938 /* We use char because int might match the return type of a gcc2 4944 /* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */ 4945 builtin and then its argument prototype would still apply. */
4940 char maillock(); 4946 char maillock();
4941 4947
4942 int main() { 4948 int main() {
4943 maillock() 4949 maillock()
4944 ; return 0; } 4950 ; return 0; }
4945 EOF 4951 EOF
4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4947 rm -rf conftest* 4953 rm -rf conftest*
4948 eval "ac_cv_lib_$ac_lib_var=yes" 4954 eval "ac_cv_lib_$ac_lib_var=yes"
4949 else 4955 else
4950 echo "configure: failed program was:" >&5 4956 echo "configure: failed program was:" >&5
4951 cat conftest.$ac_ext >&5 4957 cat conftest.$ac_ext >&5
4975 # (no liblockfile.a installed), ensure that we don't need to. 4981 # (no liblockfile.a installed), ensure that we don't need to.
4976 if test "$ac_cv_lib_lockfile_maillock" = no; then 4982 if test "$ac_cv_lib_lockfile_maillock" = no; then
4977 # Extract the first word of "liblockfile.so", so it can be a program name with args. 4983 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4978 set dummy liblockfile.so; ac_word=$2 4984 set dummy liblockfile.so; ac_word=$2
4979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_word" >&5 4986 echo "configure:4987: checking for $ac_word" >&5
4981 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 4987 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6 4988 echo $ac_n "(cached) $ac_c" 1>&6
4983 else 4989 else
4984 if test -n "$liblockfile"; then 4990 if test -n "$liblockfile"; then
4985 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 4991 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5016 else : 5022 else :
5017 fi 5023 fi
5018 for ac_func in touchlock 5024 for ac_func in touchlock
5019 do 5025 do
5020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5026 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5021 echo "configure:5022: checking for $ac_func" >&5 5027 echo "configure:5028: checking for $ac_func" >&5
5022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5028 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6 5029 echo $ac_n "(cached) $ac_c" 1>&6
5024 else 5030 else
5025 cat > conftest.$ac_ext <<EOF 5031 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure" 5032 #line 5033 "configure"
5027 #include "confdefs.h" 5033 #include "confdefs.h"
5028 /* System header to define __stub macros and hopefully few prototypes, 5034 /* System header to define __stub macros and hopefully few prototypes,
5029 which can conflict with char $ac_func(); below. */ 5035 which can conflict with char $ac_func(); below. */
5030 #include <assert.h> 5036 #include <assert.h>
5031 /* Override any gcc2 internal prototype to avoid an error. */ 5037 /* Override any gcc2 internal prototype to avoid an error. */
5045 f = $ac_func; 5051 f = $ac_func;
5046 #endif 5052 #endif
5047 5053
5048 ; return 0; } 5054 ; return 0; }
5049 EOF 5055 EOF
5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5056 if { (eval echo configure:5057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5051 rm -rf conftest* 5057 rm -rf conftest*
5052 eval "ac_cv_func_$ac_func=yes" 5058 eval "ac_cv_func_$ac_func=yes"
5053 else 5059 else
5054 echo "configure: failed program was:" >&5 5060 echo "configure: failed program was:" >&5
5055 cat conftest.$ac_ext >&5 5061 cat conftest.$ac_ext >&5
5073 5079
5074 for ac_hdr in maillock.h 5080 for ac_hdr in maillock.h
5075 do 5081 do
5076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5078 echo "configure:5079: checking for $ac_hdr" >&5 5084 echo "configure:5085: checking for $ac_hdr" >&5
5079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5080 echo $ac_n "(cached) $ac_c" 1>&6 5086 echo $ac_n "(cached) $ac_c" 1>&6
5081 else 5087 else
5082 cat > conftest.$ac_ext <<EOF 5088 cat > conftest.$ac_ext <<EOF
5083 #line 5084 "configure" 5089 #line 5090 "configure"
5084 #include "confdefs.h" 5090 #include "confdefs.h"
5085 #include <$ac_hdr> 5091 #include <$ac_hdr>
5086 EOF 5092 EOF
5087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5088 { (eval echo configure:5089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5094 { (eval echo configure:5095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5090 if test -z "$ac_err"; then 5096 if test -z "$ac_err"; then
5091 rm -rf conftest* 5097 rm -rf conftest*
5092 eval "ac_cv_header_$ac_safe=yes" 5098 eval "ac_cv_header_$ac_safe=yes"
5093 else 5099 else
5118 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5124 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5119 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ 5125 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5120 __fpending ftello getloadavg mblen mbrlen strsignal 5126 __fpending ftello getloadavg mblen mbrlen strsignal
5121 do 5127 do
5122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5123 echo "configure:5124: checking for $ac_func" >&5 5129 echo "configure:5130: checking for $ac_func" >&5
5124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6 5131 echo $ac_n "(cached) $ac_c" 1>&6
5126 else 5132 else
5127 cat > conftest.$ac_ext <<EOF 5133 cat > conftest.$ac_ext <<EOF
5128 #line 5129 "configure" 5134 #line 5135 "configure"
5129 #include "confdefs.h" 5135 #include "confdefs.h"
5130 /* System header to define __stub macros and hopefully few prototypes, 5136 /* System header to define __stub macros and hopefully few prototypes,
5131 which can conflict with char $ac_func(); below. */ 5137 which can conflict with char $ac_func(); below. */
5132 #include <assert.h> 5138 #include <assert.h>
5133 /* Override any gcc2 internal prototype to avoid an error. */ 5139 /* Override any gcc2 internal prototype to avoid an error. */
5147 f = $ac_func; 5153 f = $ac_func;
5148 #endif 5154 #endif
5149 5155
5150 ; return 0; } 5156 ; return 0; }
5151 EOF 5157 EOF
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5158 if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 rm -rf conftest* 5159 rm -rf conftest*
5154 eval "ac_cv_func_$ac_func=yes" 5160 eval "ac_cv_func_$ac_func=yes"
5155 else 5161 else
5156 echo "configure: failed program was:" >&5 5162 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5 5163 cat conftest.$ac_ext >&5
5177 # Check this now, so that we will NOT find the above functions in ncurses. 5183 # Check this now, so that we will NOT find the above functions in ncurses.
5178 # That is because we have not set up to link ncurses in lib-src. 5184 # That is because we have not set up to link ncurses in lib-src.
5179 # It's better to believe a function is not available 5185 # It's better to believe a function is not available
5180 # than to expect to find it in ncurses. 5186 # than to expect to find it in ncurses.
5181 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5187 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5182 echo "configure:5183: checking for tparm in -lncurses" >&5 5188 echo "configure:5189: checking for tparm in -lncurses" >&5
5183 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5189 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6 5191 echo $ac_n "(cached) $ac_c" 1>&6
5186 else 5192 else
5187 ac_save_LIBS="$LIBS" 5193 ac_save_LIBS="$LIBS"
5188 LIBS="-lncurses $LIBS" 5194 LIBS="-lncurses $LIBS"
5189 cat > conftest.$ac_ext <<EOF 5195 cat > conftest.$ac_ext <<EOF
5190 #line 5191 "configure" 5196 #line 5197 "configure"
5191 #include "confdefs.h" 5197 #include "confdefs.h"
5192 /* Override any gcc2 internal prototype to avoid an error. */ 5198 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2 5199 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */ 5200 builtin and then its argument prototype would still apply. */
5195 char tparm(); 5201 char tparm();
5196 5202
5197 int main() { 5203 int main() {
5198 tparm() 5204 tparm()
5199 ; return 0; } 5205 ; return 0; }
5200 EOF 5206 EOF
5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5202 rm -rf conftest* 5208 rm -rf conftest*
5203 eval "ac_cv_lib_$ac_lib_var=yes" 5209 eval "ac_cv_lib_$ac_lib_var=yes"
5204 else 5210 else
5205 echo "configure: failed program was:" >&5 5211 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5 5212 cat conftest.$ac_ext >&5
5227 5233
5228 5234
5229 # Solaris requires -lintl if you want strerror (which calls dgettext) 5235 # Solaris requires -lintl if you want strerror (which calls dgettext)
5230 # to return localized messages. 5236 # to return localized messages.
5231 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 5237 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5232 echo "configure:5233: checking for dgettext in -lintl" >&5 5238 echo "configure:5239: checking for dgettext in -lintl" >&5
5233 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 5239 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6 5241 echo $ac_n "(cached) $ac_c" 1>&6
5236 else 5242 else
5237 ac_save_LIBS="$LIBS" 5243 ac_save_LIBS="$LIBS"
5238 LIBS="-lintl $LIBS" 5244 LIBS="-lintl $LIBS"
5239 cat > conftest.$ac_ext <<EOF 5245 cat > conftest.$ac_ext <<EOF
5240 #line 5241 "configure" 5246 #line 5247 "configure"
5241 #include "confdefs.h" 5247 #include "confdefs.h"
5242 /* Override any gcc2 internal prototype to avoid an error. */ 5248 /* Override any gcc2 internal prototype to avoid an error. */
5243 /* We use char because int might match the return type of a gcc2 5249 /* We use char because int might match the return type of a gcc2
5244 builtin and then its argument prototype would still apply. */ 5250 builtin and then its argument prototype would still apply. */
5245 char dgettext(); 5251 char dgettext();
5246 5252
5247 int main() { 5253 int main() {
5248 dgettext() 5254 dgettext()
5249 ; return 0; } 5255 ; return 0; }
5250 EOF 5256 EOF
5251 if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5252 rm -rf conftest* 5258 rm -rf conftest*
5253 eval "ac_cv_lib_$ac_lib_var=yes" 5259 eval "ac_cv_lib_$ac_lib_var=yes"
5254 else 5260 else
5255 echo "configure: failed program was:" >&5 5261 echo "configure: failed program was:" >&5
5256 cat conftest.$ac_ext >&5 5262 cat conftest.$ac_ext >&5
5275 echo "$ac_t""no" 1>&6 5281 echo "$ac_t""no" 1>&6
5276 fi 5282 fi
5277 5283
5278 5284
5279 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 5285 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5280 echo "configure:5281: checking whether localtime caches TZ" >&5 5286 echo "configure:5287: checking whether localtime caches TZ" >&5
5281 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 5287 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6 5288 echo $ac_n "(cached) $ac_c" 1>&6
5283 else 5289 else
5284 if test x$ac_cv_func_tzset = xyes; then 5290 if test x$ac_cv_func_tzset = xyes; then
5285 if test "$cross_compiling" = yes; then 5291 if test "$cross_compiling" = yes; then
5286 # If we have tzset, assume the worst when cross-compiling. 5292 # If we have tzset, assume the worst when cross-compiling.
5287 emacs_cv_localtime_cache=yes 5293 emacs_cv_localtime_cache=yes
5288 else 5294 else
5289 cat > conftest.$ac_ext <<EOF 5295 cat > conftest.$ac_ext <<EOF
5290 #line 5291 "configure" 5296 #line 5297 "configure"
5291 #include "confdefs.h" 5297 #include "confdefs.h"
5292 #include <time.h> 5298 #include <time.h>
5293 extern char **environ; 5299 extern char **environ;
5294 unset_TZ () 5300 unset_TZ ()
5295 { 5301 {
5317 if (localtime (&now)->tm_hour != hour_unset) 5323 if (localtime (&now)->tm_hour != hour_unset)
5318 exit (1); 5324 exit (1);
5319 exit (0); 5325 exit (0);
5320 } 5326 }
5321 EOF 5327 EOF
5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5328 if { (eval echo configure:5329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5323 then 5329 then
5324 emacs_cv_localtime_cache=no 5330 emacs_cv_localtime_cache=no
5325 else 5331 else
5326 echo "configure: failed program was:" >&5 5332 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5 5333 cat conftest.$ac_ext >&5
5345 5351
5346 fi 5352 fi
5347 5353
5348 if test "x$HAVE_TIMEVAL" = xyes; then 5354 if test "x$HAVE_TIMEVAL" = xyes; then
5349 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 5355 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5350 echo "configure:5351: checking whether gettimeofday can accept two arguments" >&5 5356 echo "configure:5357: checking whether gettimeofday can accept two arguments" >&5
5351 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 5357 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6 5358 echo $ac_n "(cached) $ac_c" 1>&6
5353 else 5359 else
5354 cat > conftest.$ac_ext <<EOF 5360 cat > conftest.$ac_ext <<EOF
5355 #line 5356 "configure" 5361 #line 5362 "configure"
5356 #include "confdefs.h" 5362 #include "confdefs.h"
5357 5363
5358 #ifdef TIME_WITH_SYS_TIME 5364 #ifdef TIME_WITH_SYS_TIME
5359 #include <sys/time.h> 5365 #include <sys/time.h>
5360 #include <time.h> 5366 #include <time.h>
5372 struct timezone dummy; 5378 struct timezone dummy;
5373 gettimeofday (&time, &dummy); 5379 gettimeofday (&time, &dummy);
5374 5380
5375 ; return 0; } 5381 ; return 0; }
5376 EOF 5382 EOF
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5383 if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5378 rm -rf conftest* 5384 rm -rf conftest*
5379 emacs_cv_gettimeofday_two_arguments=yes 5385 emacs_cv_gettimeofday_two_arguments=yes
5380 else 5386 else
5381 echo "configure: failed program was:" >&5 5387 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5 5388 cat conftest.$ac_ext >&5
5395 fi 5401 fi
5396 fi 5402 fi
5397 5403
5398 ok_so_far=yes 5404 ok_so_far=yes
5399 echo $ac_n "checking for socket""... $ac_c" 1>&6 5405 echo $ac_n "checking for socket""... $ac_c" 1>&6
5400 echo "configure:5401: checking for socket" >&5 5406 echo "configure:5407: checking for socket" >&5
5401 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 5407 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6 5408 echo $ac_n "(cached) $ac_c" 1>&6
5403 else 5409 else
5404 cat > conftest.$ac_ext <<EOF 5410 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure" 5411 #line 5412 "configure"
5406 #include "confdefs.h" 5412 #include "confdefs.h"
5407 /* System header to define __stub macros and hopefully few prototypes, 5413 /* System header to define __stub macros and hopefully few prototypes,
5408 which can conflict with char socket(); below. */ 5414 which can conflict with char socket(); below. */
5409 #include <assert.h> 5415 #include <assert.h>
5410 /* Override any gcc2 internal prototype to avoid an error. */ 5416 /* Override any gcc2 internal prototype to avoid an error. */
5424 f = socket; 5430 f = socket;
5425 #endif 5431 #endif
5426 5432
5427 ; return 0; } 5433 ; return 0; }
5428 EOF 5434 EOF
5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5435 if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 rm -rf conftest* 5436 rm -rf conftest*
5431 eval "ac_cv_func_socket=yes" 5437 eval "ac_cv_func_socket=yes"
5432 else 5438 else
5433 echo "configure: failed program was:" >&5 5439 echo "configure: failed program was:" >&5
5434 cat conftest.$ac_ext >&5 5440 cat conftest.$ac_ext >&5
5447 fi 5453 fi
5448 5454
5449 if test $ok_so_far = yes; then 5455 if test $ok_so_far = yes; then
5450 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 5456 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5451 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 5457 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5452 echo "configure:5453: checking for netinet/in.h" >&5 5458 echo "configure:5459: checking for netinet/in.h" >&5
5453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5454 echo $ac_n "(cached) $ac_c" 1>&6 5460 echo $ac_n "(cached) $ac_c" 1>&6
5455 else 5461 else
5456 cat > conftest.$ac_ext <<EOF 5462 cat > conftest.$ac_ext <<EOF
5457 #line 5458 "configure" 5463 #line 5464 "configure"
5458 #include "confdefs.h" 5464 #include "confdefs.h"
5459 #include <netinet/in.h> 5465 #include <netinet/in.h>
5460 EOF 5466 EOF
5461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5462 { (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5468 { (eval echo configure:5469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5464 if test -z "$ac_err"; then 5470 if test -z "$ac_err"; then
5465 rm -rf conftest* 5471 rm -rf conftest*
5466 eval "ac_cv_header_$ac_safe=yes" 5472 eval "ac_cv_header_$ac_safe=yes"
5467 else 5473 else
5483 5489
5484 fi 5490 fi
5485 if test $ok_so_far = yes; then 5491 if test $ok_so_far = yes; then
5486 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 5492 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5487 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 5493 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5488 echo "configure:5489: checking for arpa/inet.h" >&5 5494 echo "configure:5495: checking for arpa/inet.h" >&5
5489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5495 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5490 echo $ac_n "(cached) $ac_c" 1>&6 5496 echo $ac_n "(cached) $ac_c" 1>&6
5491 else 5497 else
5492 cat > conftest.$ac_ext <<EOF 5498 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure" 5499 #line 5500 "configure"
5494 #include "confdefs.h" 5500 #include "confdefs.h"
5495 #include <arpa/inet.h> 5501 #include <arpa/inet.h>
5496 EOF 5502 EOF
5497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5498 { (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5504 { (eval echo configure:5505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5500 if test -z "$ac_err"; then 5506 if test -z "$ac_err"; then
5501 rm -rf conftest* 5507 rm -rf conftest*
5502 eval "ac_cv_header_$ac_safe=yes" 5508 eval "ac_cv_header_$ac_safe=yes"
5503 else 5509 else
5531 EOF 5537 EOF
5532 5538
5533 fi 5539 fi
5534 5540
5535 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 5541 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
5536 echo "configure:5537: checking whether system supports dynamic ptys" >&5 5542 echo "configure:5543: checking whether system supports dynamic ptys" >&5
5537 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 5543 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
5538 echo "$ac_t""yes" 1>&6 5544 echo "$ac_t""yes" 1>&6
5539 cat >> confdefs.h <<\EOF 5545 cat >> confdefs.h <<\EOF
5540 #define HAVE_DEV_PTMX 1 5546 #define HAVE_DEV_PTMX 1
5541 EOF 5547 EOF