comparison configure @ 26382:78660eeae4b2

Fix change for --with-pop default.
author Dave Love <fx@gnu.org>
date Mon, 08 Nov 1999 16:26:25 +0000
parents bfa8d94330b6
children 9a80d274ce46
comparison
equal deleted inserted replaced
26381:ae9503c7cf3f 26382:78660eeae4b2
567 #define MAIL_USE_POP 1 567 #define MAIL_USE_POP 1
568 EOF 568 EOF
569 569
570 else : 570 else :
571 fi 571 fi
572 else
573 cat >> confdefs.h <<\EOF
574 #define MAIL_USE_POP 1
575 EOF
576
572 fi 577 fi
573 578
574 # Check whether --with-hesiod or --without-hesiod was given. 579 # Check whether --with-hesiod or --without-hesiod was given.
575 if test "${with_hesiod+set}" = set; then 580 if test "${with_hesiod+set}" = set; then
576 withval="$with_hesiod" 581 withval="$with_hesiod"
706 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 711 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 712 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
708 fi 713 fi
709 714
710 echo $ac_n "checking host system type""... $ac_c" 1>&6 715 echo $ac_n "checking host system type""... $ac_c" 1>&6
711 echo "configure:712: checking host system type" >&5 716 echo "configure:717: checking host system type" >&5
712 717
713 host_alias=$host 718 host_alias=$host
714 case "$host_alias" in 719 case "$host_alias" in
715 NONE) 720 NONE)
716 case $nonopt in 721 case $nonopt in
1647 "yes" ) CC="gcc" GCC=yes ;; 1652 "yes" ) CC="gcc" GCC=yes ;;
1648 "no" ) : ${CC=cc} ;; 1653 "no" ) : ${CC=cc} ;;
1649 * ) # Extract the first word of "gcc", so it can be a program name with args. 1654 * ) # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc; ac_word=$2 1655 set dummy gcc; ac_word=$2
1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1652 echo "configure:1653: checking for $ac_word" >&5 1657 echo "configure:1658: checking for $ac_word" >&5
1653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1658 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1654 echo $ac_n "(cached) $ac_c" 1>&6 1659 echo $ac_n "(cached) $ac_c" 1>&6
1655 else 1660 else
1656 if test -n "$CC"; then 1661 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test. 1662 ac_cv_prog_CC="$CC" # Let the user override the test.
1677 1682
1678 if test -z "$CC"; then 1683 if test -z "$CC"; then
1679 # Extract the first word of "cc", so it can be a program name with args. 1684 # Extract the first word of "cc", so it can be a program name with args.
1680 set dummy cc; ac_word=$2 1685 set dummy cc; ac_word=$2
1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1682 echo "configure:1683: checking for $ac_word" >&5 1687 echo "configure:1688: checking for $ac_word" >&5
1683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1688 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6 1689 echo $ac_n "(cached) $ac_c" 1>&6
1685 else 1690 else
1686 if test -n "$CC"; then 1691 if test -n "$CC"; then
1687 ac_cv_prog_CC="$CC" # Let the user override the test. 1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1728 case "`uname -s`" in 1733 case "`uname -s`" in
1729 *win32* | *WIN32*) 1734 *win32* | *WIN32*)
1730 # Extract the first word of "cl", so it can be a program name with args. 1735 # Extract the first word of "cl", so it can be a program name with args.
1731 set dummy cl; ac_word=$2 1736 set dummy cl; ac_word=$2
1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1733 echo "configure:1734: checking for $ac_word" >&5 1738 echo "configure:1739: checking for $ac_word" >&5
1734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6 1740 echo $ac_n "(cached) $ac_c" 1>&6
1736 else 1741 else
1737 if test -n "$CC"; then 1742 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test. 1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1760 fi 1765 fi
1761 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1762 fi 1767 fi
1763 1768
1764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1765 echo "configure:1766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1770 echo "configure:1771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1766 1771
1767 ac_ext=c 1772 ac_ext=c
1768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1773 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1769 ac_cpp='$CPP $CPPFLAGS' 1774 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1775 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1776 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1772 cross_compiling=$ac_cv_prog_cc_cross 1777 cross_compiling=$ac_cv_prog_cc_cross
1773 1778
1774 cat > conftest.$ac_ext << EOF 1779 cat > conftest.$ac_ext << EOF
1775 1780
1776 #line 1777 "configure" 1781 #line 1782 "configure"
1777 #include "confdefs.h" 1782 #include "confdefs.h"
1778 1783
1779 main(){return(0);} 1784 main(){return(0);}
1780 EOF 1785 EOF
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1786 if { (eval echo configure:1787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1782 ac_cv_prog_cc_works=yes 1787 ac_cv_prog_cc_works=yes
1783 # If we can't run a trivial program, we are probably using a cross compiler. 1788 # If we can't run a trivial program, we are probably using a cross compiler.
1784 if (./conftest; exit) 2>/dev/null; then 1789 if (./conftest; exit) 2>/dev/null; then
1785 ac_cv_prog_cc_cross=no 1790 ac_cv_prog_cc_cross=no
1786 else 1791 else
1802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1807 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1803 if test $ac_cv_prog_cc_works = no; then 1808 if test $ac_cv_prog_cc_works = no; then
1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1809 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1805 fi 1810 fi
1806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1811 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1807 echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1812 echo "configure:1813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1813 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1809 cross_compiling=$ac_cv_prog_cc_cross 1814 cross_compiling=$ac_cv_prog_cc_cross
1810 1815
1811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1816 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether we are using GNU C" >&5 1817 echo "configure:1818: checking whether we are using GNU C" >&5
1813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1818 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6 1819 echo $ac_n "(cached) $ac_c" 1>&6
1815 else 1820 else
1816 cat > conftest.c <<EOF 1821 cat > conftest.c <<EOF
1817 #ifdef __GNUC__ 1822 #ifdef __GNUC__
1818 yes; 1823 yes;
1819 #endif 1824 #endif
1820 EOF 1825 EOF
1821 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 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
1822 ac_cv_prog_gcc=yes 1827 ac_cv_prog_gcc=yes
1823 else 1828 else
1824 ac_cv_prog_gcc=no 1829 ac_cv_prog_gcc=no
1825 fi 1830 fi
1826 fi 1831 fi
1835 1840
1836 ac_test_CFLAGS="${CFLAGS+set}" 1841 ac_test_CFLAGS="${CFLAGS+set}"
1837 ac_save_CFLAGS="$CFLAGS" 1842 ac_save_CFLAGS="$CFLAGS"
1838 CFLAGS= 1843 CFLAGS=
1839 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1840 echo "configure:1841: checking whether ${CC-cc} accepts -g" >&5 1845 echo "configure:1846: checking whether ${CC-cc} accepts -g" >&5
1841 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6 1847 echo $ac_n "(cached) $ac_c" 1>&6
1843 else 1848 else
1844 echo 'void f(){}' > conftest.c 1849 echo 'void f(){}' > conftest.c
1845 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1915 #### Some other nice autoconf tests. If you add a test here which 1920 #### Some other nice autoconf tests. If you add a test here which
1916 #### should make an entry in src/config.h, don't forget to add an 1921 #### should make an entry in src/config.h, don't forget to add an
1917 #### #undef clause to src/config.h.in for autoconf to modify. 1922 #### #undef clause to src/config.h.in for autoconf to modify.
1918 1923
1919 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1924 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether ln -s works" >&5 1925 echo "configure:1926: checking whether ln -s works" >&5
1921 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1926 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6 1927 echo $ac_n "(cached) $ac_c" 1>&6
1923 else 1928 else
1924 rm -f conftestdata 1929 rm -f conftestdata
1925 if ln -s X conftestdata 2>/dev/null 1930 if ln -s X conftestdata 2>/dev/null
1936 else 1941 else
1937 echo "$ac_t""no" 1>&6 1942 echo "$ac_t""no" 1>&6
1938 fi 1943 fi
1939 1944
1940 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1945 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1941 echo "configure:1942: checking how to run the C preprocessor" >&5 1946 echo "configure:1947: checking how to run the C preprocessor" >&5
1942 # On Suns, sometimes $CPP names a directory. 1947 # On Suns, sometimes $CPP names a directory.
1943 if test -n "$CPP" && test -d "$CPP"; then 1948 if test -n "$CPP" && test -d "$CPP"; then
1944 CPP= 1949 CPP=
1945 fi 1950 fi
1946 if test -z "$CPP"; then 1951 if test -z "$CPP"; then
1951 # substituted into the Makefile and "${CC-cc}" will confuse make. 1956 # substituted into the Makefile and "${CC-cc}" will confuse make.
1952 CPP="${CC-cc} -E" 1957 CPP="${CC-cc} -E"
1953 # On the NeXT, cc -E runs the code through the compiler's parser, 1958 # On the NeXT, cc -E runs the code through the compiler's parser,
1954 # not just through cpp. 1959 # not just through cpp.
1955 cat > conftest.$ac_ext <<EOF 1960 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure" 1961 #line 1962 "configure"
1957 #include "confdefs.h" 1962 #include "confdefs.h"
1958 #include <assert.h> 1963 #include <assert.h>
1959 Syntax Error 1964 Syntax Error
1960 EOF 1965 EOF
1961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962 { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1967 { (eval echo configure:1968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964 if test -z "$ac_err"; then 1969 if test -z "$ac_err"; then
1965 : 1970 :
1966 else 1971 else
1967 echo "$ac_err" >&5 1972 echo "$ac_err" >&5
1968 echo "configure: failed program was:" >&5 1973 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5 1974 cat conftest.$ac_ext >&5
1970 rm -rf conftest* 1975 rm -rf conftest*
1971 CPP="${CC-cc} -E -traditional-cpp" 1976 CPP="${CC-cc} -E -traditional-cpp"
1972 cat > conftest.$ac_ext <<EOF 1977 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure" 1978 #line 1979 "configure"
1974 #include "confdefs.h" 1979 #include "confdefs.h"
1975 #include <assert.h> 1980 #include <assert.h>
1976 Syntax Error 1981 Syntax Error
1977 EOF 1982 EOF
1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1984 { (eval echo configure:1985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981 if test -z "$ac_err"; then 1986 if test -z "$ac_err"; then
1982 : 1987 :
1983 else 1988 else
1984 echo "$ac_err" >&5 1989 echo "$ac_err" >&5
1985 echo "configure: failed program was:" >&5 1990 echo "configure: failed program was:" >&5
1986 cat conftest.$ac_ext >&5 1991 cat conftest.$ac_ext >&5
1987 rm -rf conftest* 1992 rm -rf conftest*
1988 CPP="${CC-cc} -nologo -E" 1993 CPP="${CC-cc} -nologo -E"
1989 cat > conftest.$ac_ext <<EOF 1994 cat > conftest.$ac_ext <<EOF
1990 #line 1991 "configure" 1995 #line 1996 "configure"
1991 #include "confdefs.h" 1996 #include "confdefs.h"
1992 #include <assert.h> 1997 #include <assert.h>
1993 Syntax Error 1998 Syntax Error
1994 EOF 1999 EOF
1995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1996 { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1998 if test -z "$ac_err"; then 2003 if test -z "$ac_err"; then
1999 : 2004 :
2000 else 2005 else
2001 echo "$ac_err" >&5 2006 echo "$ac_err" >&5
2027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2030 # ./install, which can be erroneously created by make from ./install.sh. 2035 # ./install, which can be erroneously created by make from ./install.sh.
2031 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2036 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2032 echo "configure:2033: checking for a BSD compatible install" >&5 2037 echo "configure:2038: checking for a BSD compatible install" >&5
2033 if test -z "$INSTALL"; then 2038 if test -z "$INSTALL"; then
2034 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2039 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6 2040 echo $ac_n "(cached) $ac_c" 1>&6
2036 else 2041 else
2037 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2042 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2084 for ac_prog in 'bison -y' byacc 2089 for ac_prog in 'bison -y' byacc
2085 do 2090 do
2086 # Extract the first word of "$ac_prog", so it can be a program name with args. 2091 # Extract the first word of "$ac_prog", so it can be a program name with args.
2087 set dummy $ac_prog; ac_word=$2 2092 set dummy $ac_prog; ac_word=$2
2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2089 echo "configure:2090: checking for $ac_word" >&5 2094 echo "configure:2095: checking for $ac_word" >&5
2090 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2095 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6 2096 echo $ac_n "(cached) $ac_c" 1>&6
2092 else 2097 else
2093 if test -n "$YACC"; then 2098 if test -n "$YACC"; then
2094 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2099 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2116 done 2121 done
2117 test -n "$YACC" || YACC="yacc" 2122 test -n "$YACC" || YACC="yacc"
2118 2123
2119 2124
2120 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2125 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2121 echo "configure:2122: checking for AIX" >&5 2126 echo "configure:2127: checking for AIX" >&5
2122 cat > conftest.$ac_ext <<EOF 2127 cat > conftest.$ac_ext <<EOF
2123 #line 2124 "configure" 2128 #line 2129 "configure"
2124 #include "confdefs.h" 2129 #include "confdefs.h"
2125 #ifdef _AIX 2130 #ifdef _AIX
2126 yes 2131 yes
2127 #endif 2132 #endif
2128 2133
2145 # Sound support for GNU/Linux and the free BSDs. 2150 # Sound support for GNU/Linux and the free BSDs.
2146 for ac_hdr in machine/soundcard.h sys/soundcard.h 2151 for ac_hdr in machine/soundcard.h sys/soundcard.h
2147 do 2152 do
2148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2150 echo "configure:2151: checking for $ac_hdr" >&5 2155 echo "configure:2156: checking for $ac_hdr" >&5
2151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2156 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6 2157 echo $ac_n "(cached) $ac_c" 1>&6
2153 else 2158 else
2154 cat > conftest.$ac_ext <<EOF 2159 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure" 2160 #line 2161 "configure"
2156 #include "confdefs.h" 2161 #include "confdefs.h"
2157 #include <$ac_hdr> 2162 #include <$ac_hdr>
2158 EOF 2163 EOF
2159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2160 { (eval echo configure:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2165 { (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2162 if test -z "$ac_err"; then 2167 if test -z "$ac_err"; then
2163 rm -rf conftest* 2168 rm -rf conftest*
2164 eval "ac_cv_header_$ac_safe=yes" 2169 eval "ac_cv_header_$ac_safe=yes"
2165 else 2170 else
2188 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 2193 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
2189 termcap.h stdio_ext.h 2194 termcap.h stdio_ext.h
2190 do 2195 do
2191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2196 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2197 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2193 echo "configure:2194: checking for $ac_hdr" >&5 2198 echo "configure:2199: checking for $ac_hdr" >&5
2194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2195 echo $ac_n "(cached) $ac_c" 1>&6 2200 echo $ac_n "(cached) $ac_c" 1>&6
2196 else 2201 else
2197 cat > conftest.$ac_ext <<EOF 2202 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure" 2203 #line 2204 "configure"
2199 #include "confdefs.h" 2204 #include "confdefs.h"
2200 #include <$ac_hdr> 2205 #include <$ac_hdr>
2201 EOF 2206 EOF
2202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203 { (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2208 { (eval echo configure:2209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2205 if test -z "$ac_err"; then 2210 if test -z "$ac_err"; then
2206 rm -rf conftest* 2211 rm -rf conftest*
2207 eval "ac_cv_header_$ac_safe=yes" 2212 eval "ac_cv_header_$ac_safe=yes"
2208 else 2213 else
2225 echo "$ac_t""no" 1>&6 2230 echo "$ac_t""no" 1>&6
2226 fi 2231 fi
2227 done 2232 done
2228 2233
2229 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2234 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2230 echo "configure:2231: checking for ANSI C header files" >&5 2235 echo "configure:2236: checking for ANSI C header files" >&5
2231 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2236 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6 2237 echo $ac_n "(cached) $ac_c" 1>&6
2233 else 2238 else
2234 cat > conftest.$ac_ext <<EOF 2239 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure" 2240 #line 2241 "configure"
2236 #include "confdefs.h" 2241 #include "confdefs.h"
2237 #include <stdlib.h> 2242 #include <stdlib.h>
2238 #include <stdarg.h> 2243 #include <stdarg.h>
2239 #include <string.h> 2244 #include <string.h>
2240 #include <float.h> 2245 #include <float.h>
2241 EOF 2246 EOF
2242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2243 { (eval echo configure:2244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2248 { (eval echo configure:2249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2245 if test -z "$ac_err"; then 2250 if test -z "$ac_err"; then
2246 rm -rf conftest* 2251 rm -rf conftest*
2247 ac_cv_header_stdc=yes 2252 ac_cv_header_stdc=yes
2248 else 2253 else
2255 rm -f conftest* 2260 rm -f conftest*
2256 2261
2257 if test $ac_cv_header_stdc = yes; then 2262 if test $ac_cv_header_stdc = yes; then
2258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2263 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2259 cat > conftest.$ac_ext <<EOF 2264 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure" 2265 #line 2266 "configure"
2261 #include "confdefs.h" 2266 #include "confdefs.h"
2262 #include <string.h> 2267 #include <string.h>
2263 EOF 2268 EOF
2264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2265 egrep "memchr" >/dev/null 2>&1; then 2270 egrep "memchr" >/dev/null 2>&1; then
2273 fi 2278 fi
2274 2279
2275 if test $ac_cv_header_stdc = yes; then 2280 if test $ac_cv_header_stdc = yes; then
2276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2281 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2277 cat > conftest.$ac_ext <<EOF 2282 cat > conftest.$ac_ext <<EOF
2278 #line 2279 "configure" 2283 #line 2284 "configure"
2279 #include "confdefs.h" 2284 #include "confdefs.h"
2280 #include <stdlib.h> 2285 #include <stdlib.h>
2281 EOF 2286 EOF
2282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2283 egrep "free" >/dev/null 2>&1; then 2288 egrep "free" >/dev/null 2>&1; then
2294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2295 if test "$cross_compiling" = yes; then 2300 if test "$cross_compiling" = yes; then
2296 : 2301 :
2297 else 2302 else
2298 cat > conftest.$ac_ext <<EOF 2303 cat > conftest.$ac_ext <<EOF
2299 #line 2300 "configure" 2304 #line 2305 "configure"
2300 #include "confdefs.h" 2305 #include "confdefs.h"
2301 #include <ctype.h> 2306 #include <ctype.h>
2302 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2307 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2303 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2308 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2304 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2305 int main () { int i; for (i = 0; i < 256; i++) 2310 int main () { int i; for (i = 0; i < 256; i++)
2306 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2311 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2307 exit (0); } 2312 exit (0); }
2308 2313
2309 EOF 2314 EOF
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 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
2311 then 2316 then
2312 : 2317 :
2313 else 2318 else
2314 echo "configure: failed program was:" >&5 2319 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5 2320 cat conftest.$ac_ext >&5
2329 EOF 2334 EOF
2330 2335
2331 fi 2336 fi
2332 2337
2333 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2338 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2334 echo "configure:2335: checking whether time.h and sys/time.h may both be included" >&5 2339 echo "configure:2340: checking whether time.h and sys/time.h may both be included" >&5
2335 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2340 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6 2341 echo $ac_n "(cached) $ac_c" 1>&6
2337 else 2342 else
2338 cat > conftest.$ac_ext <<EOF 2343 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure" 2344 #line 2345 "configure"
2340 #include "confdefs.h" 2345 #include "confdefs.h"
2341 #include <sys/types.h> 2346 #include <sys/types.h>
2342 #include <sys/time.h> 2347 #include <sys/time.h>
2343 #include <time.h> 2348 #include <time.h>
2344 int main() { 2349 int main() {
2345 struct tm *tp; 2350 struct tm *tp;
2346 ; return 0; } 2351 ; return 0; }
2347 EOF 2352 EOF
2348 if { (eval echo configure:2349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2353 if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349 rm -rf conftest* 2354 rm -rf conftest*
2350 ac_cv_header_time=yes 2355 ac_cv_header_time=yes
2351 else 2356 else
2352 echo "configure: failed program was:" >&5 2357 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5 2358 cat conftest.$ac_ext >&5
2364 EOF 2369 EOF
2365 2370
2366 fi 2371 fi
2367 2372
2368 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2373 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2369 echo "configure:2370: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2374 echo "configure:2375: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2370 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2375 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6 2376 echo $ac_n "(cached) $ac_c" 1>&6
2372 else 2377 else
2373 cat > conftest.$ac_ext <<EOF 2378 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure" 2379 #line 2380 "configure"
2375 #include "confdefs.h" 2380 #include "confdefs.h"
2376 #include <sys/types.h> 2381 #include <sys/types.h>
2377 #include <signal.h> 2382 #include <signal.h>
2378 /* NetBSD declares sys_siglist in unistd.h. */ 2383 /* NetBSD declares sys_siglist in unistd.h. */
2379 #ifdef HAVE_UNISTD_H 2384 #ifdef HAVE_UNISTD_H
2381 #endif 2386 #endif
2382 int main() { 2387 int main() {
2383 char *msg = *(sys_siglist + 1); 2388 char *msg = *(sys_siglist + 1);
2384 ; return 0; } 2389 ; return 0; }
2385 EOF 2390 EOF
2386 if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2387 rm -rf conftest* 2392 rm -rf conftest*
2388 ac_cv_decl_sys_siglist=yes 2393 ac_cv_decl_sys_siglist=yes
2389 else 2394 else
2390 echo "configure: failed program was:" >&5 2395 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5 2396 cat conftest.$ac_ext >&5
2403 2408
2404 fi 2409 fi
2405 2410
2406 2411
2407 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2412 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2408 echo "configure:2409: checking for struct utimbuf" >&5 2413 echo "configure:2414: checking for struct utimbuf" >&5
2409 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2414 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2410 echo $ac_n "(cached) $ac_c" 1>&6 2415 echo $ac_n "(cached) $ac_c" 1>&6
2411 else 2416 else
2412 cat > conftest.$ac_ext <<EOF 2417 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure" 2418 #line 2419 "configure"
2414 #include "confdefs.h" 2419 #include "confdefs.h"
2415 #ifdef TIME_WITH_SYS_TIME 2420 #ifdef TIME_WITH_SYS_TIME
2416 #include <sys/time.h> 2421 #include <sys/time.h>
2417 #include <time.h> 2422 #include <time.h>
2418 #else 2423 #else
2427 #endif 2432 #endif
2428 int main() { 2433 int main() {
2429 static struct utimbuf x; x.actime = x.modtime; 2434 static struct utimbuf x; x.actime = x.modtime;
2430 ; return 0; } 2435 ; return 0; }
2431 EOF 2436 EOF
2432 if { (eval echo configure:2433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2437 if { (eval echo configure:2438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2433 rm -rf conftest* 2438 rm -rf conftest*
2434 emacs_cv_struct_utimbuf=yes 2439 emacs_cv_struct_utimbuf=yes
2435 else 2440 else
2436 echo "configure: failed program was:" >&5 2441 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5 2442 cat conftest.$ac_ext >&5
2448 EOF 2453 EOF
2449 2454
2450 fi 2455 fi
2451 2456
2452 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2457 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2453 echo "configure:2454: checking return type of signal handlers" >&5 2458 echo "configure:2459: checking return type of signal handlers" >&5
2454 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2459 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2455 echo $ac_n "(cached) $ac_c" 1>&6 2460 echo $ac_n "(cached) $ac_c" 1>&6
2456 else 2461 else
2457 cat > conftest.$ac_ext <<EOF 2462 cat > conftest.$ac_ext <<EOF
2458 #line 2459 "configure" 2463 #line 2464 "configure"
2459 #include "confdefs.h" 2464 #include "confdefs.h"
2460 #include <sys/types.h> 2465 #include <sys/types.h>
2461 #include <signal.h> 2466 #include <signal.h>
2462 #ifdef signal 2467 #ifdef signal
2463 #undef signal 2468 #undef signal
2470 2475
2471 int main() { 2476 int main() {
2472 int i; 2477 int i;
2473 ; return 0; } 2478 ; return 0; }
2474 EOF 2479 EOF
2475 if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2480 if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 rm -rf conftest* 2481 rm -rf conftest*
2477 ac_cv_type_signal=void 2482 ac_cv_type_signal=void
2478 else 2483 else
2479 echo "configure: failed program was:" >&5 2484 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5 2485 cat conftest.$ac_ext >&5
2490 EOF 2495 EOF
2491 2496
2492 2497
2493 2498
2494 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2499 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2495 echo "configure:2496: checking for struct timeval" >&5 2500 echo "configure:2501: checking for struct timeval" >&5
2496 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2501 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6 2502 echo $ac_n "(cached) $ac_c" 1>&6
2498 else 2503 else
2499 cat > conftest.$ac_ext <<EOF 2504 cat > conftest.$ac_ext <<EOF
2500 #line 2501 "configure" 2505 #line 2506 "configure"
2501 #include "confdefs.h" 2506 #include "confdefs.h"
2502 #ifdef TIME_WITH_SYS_TIME 2507 #ifdef TIME_WITH_SYS_TIME
2503 #include <sys/time.h> 2508 #include <sys/time.h>
2504 #include <time.h> 2509 #include <time.h>
2505 #else 2510 #else
2511 #endif 2516 #endif
2512 int main() { 2517 int main() {
2513 static struct timeval x; x.tv_sec = x.tv_usec; 2518 static struct timeval x; x.tv_sec = x.tv_usec;
2514 ; return 0; } 2519 ; return 0; }
2515 EOF 2520 EOF
2516 if { (eval echo configure:2517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2521 if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2517 rm -rf conftest* 2522 rm -rf conftest*
2518 emacs_cv_struct_timeval=yes 2523 emacs_cv_struct_timeval=yes
2519 else 2524 else
2520 echo "configure: failed program was:" >&5 2525 echo "configure: failed program was:" >&5
2521 cat conftest.$ac_ext >&5 2526 cat conftest.$ac_ext >&5
2533 EOF 2538 EOF
2534 2539
2535 fi 2540 fi
2536 2541
2537 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2542 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2538 echo "configure:2539: checking whether struct tm is in sys/time.h or time.h" >&5 2543 echo "configure:2544: checking whether struct tm is in sys/time.h or time.h" >&5
2539 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2544 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6 2545 echo $ac_n "(cached) $ac_c" 1>&6
2541 else 2546 else
2542 cat > conftest.$ac_ext <<EOF 2547 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure" 2548 #line 2549 "configure"
2544 #include "confdefs.h" 2549 #include "confdefs.h"
2545 #include <sys/types.h> 2550 #include <sys/types.h>
2546 #include <time.h> 2551 #include <time.h>
2547 int main() { 2552 int main() {
2548 struct tm *tp; tp->tm_sec; 2553 struct tm *tp; tp->tm_sec;
2549 ; return 0; } 2554 ; return 0; }
2550 EOF 2555 EOF
2551 if { (eval echo configure:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2556 if { (eval echo configure:2557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2552 rm -rf conftest* 2557 rm -rf conftest*
2553 ac_cv_struct_tm=time.h 2558 ac_cv_struct_tm=time.h
2554 else 2559 else
2555 echo "configure: failed program was:" >&5 2560 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5 2561 cat conftest.$ac_ext >&5
2567 EOF 2572 EOF
2568 2573
2569 fi 2574 fi
2570 2575
2571 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2576 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2572 echo "configure:2573: checking for tm_zone in struct tm" >&5 2577 echo "configure:2578: checking for tm_zone in struct tm" >&5
2573 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2578 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6 2579 echo $ac_n "(cached) $ac_c" 1>&6
2575 else 2580 else
2576 cat > conftest.$ac_ext <<EOF 2581 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure" 2582 #line 2583 "configure"
2578 #include "confdefs.h" 2583 #include "confdefs.h"
2579 #include <sys/types.h> 2584 #include <sys/types.h>
2580 #include <$ac_cv_struct_tm> 2585 #include <$ac_cv_struct_tm>
2581 int main() { 2586 int main() {
2582 struct tm tm; tm.tm_zone; 2587 struct tm tm; tm.tm_zone;
2583 ; return 0; } 2588 ; return 0; }
2584 EOF 2589 EOF
2585 if { (eval echo configure:2586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2590 if { (eval echo configure:2591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2586 rm -rf conftest* 2591 rm -rf conftest*
2587 ac_cv_struct_tm_zone=yes 2592 ac_cv_struct_tm_zone=yes
2588 else 2593 else
2589 echo "configure: failed program was:" >&5 2594 echo "configure: failed program was:" >&5
2590 cat conftest.$ac_ext >&5 2595 cat conftest.$ac_ext >&5
2600 #define HAVE_TM_ZONE 1 2605 #define HAVE_TM_ZONE 1
2601 EOF 2606 EOF
2602 2607
2603 else 2608 else
2604 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2609 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2605 echo "configure:2606: checking for tzname" >&5 2610 echo "configure:2611: checking for tzname" >&5
2606 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2611 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2607 echo $ac_n "(cached) $ac_c" 1>&6 2612 echo $ac_n "(cached) $ac_c" 1>&6
2608 else 2613 else
2609 cat > conftest.$ac_ext <<EOF 2614 cat > conftest.$ac_ext <<EOF
2610 #line 2611 "configure" 2615 #line 2616 "configure"
2611 #include "confdefs.h" 2616 #include "confdefs.h"
2612 #include <time.h> 2617 #include <time.h>
2613 #ifndef tzname /* For SGI. */ 2618 #ifndef tzname /* For SGI. */
2614 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2619 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2615 #endif 2620 #endif
2616 int main() { 2621 int main() {
2617 atoi(*tzname); 2622 atoi(*tzname);
2618 ; return 0; } 2623 ; return 0; }
2619 EOF 2624 EOF
2620 if { (eval echo configure:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2625 if { (eval echo configure:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2621 rm -rf conftest* 2626 rm -rf conftest*
2622 ac_cv_var_tzname=yes 2627 ac_cv_var_tzname=yes
2623 else 2628 else
2624 echo "configure: failed program was:" >&5 2629 echo "configure: failed program was:" >&5
2625 cat conftest.$ac_ext >&5 2630 cat conftest.$ac_ext >&5
2637 2642
2638 fi 2643 fi
2639 fi 2644 fi
2640 2645
2641 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 2646 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
2642 echo "configure:2643: checking for tm_gmtoff in struct tm" >&5 2647 echo "configure:2648: checking for tm_gmtoff in struct tm" >&5
2643 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then 2648 if eval "test \"`echo '$''{'emacs_cv_tm_gmtoff'+set}'`\" = set"; then
2644 echo $ac_n "(cached) $ac_c" 1>&6 2649 echo $ac_n "(cached) $ac_c" 1>&6
2645 else 2650 else
2646 cat > conftest.$ac_ext <<EOF 2651 cat > conftest.$ac_ext <<EOF
2647 #line 2648 "configure" 2652 #line 2653 "configure"
2648 #include "confdefs.h" 2653 #include "confdefs.h"
2649 #include <time.h> 2654 #include <time.h>
2650 int main() { 2655 int main() {
2651 struct tm t; t.tm_gmtoff = 0 2656 struct tm t; t.tm_gmtoff = 0
2652 ; return 0; } 2657 ; return 0; }
2653 EOF 2658 EOF
2654 if { (eval echo configure:2655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2659 if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2655 rm -rf conftest* 2660 rm -rf conftest*
2656 emacs_cv_tm_gmtoff=yes 2661 emacs_cv_tm_gmtoff=yes
2657 else 2662 else
2658 echo "configure: failed program was:" >&5 2663 echo "configure: failed program was:" >&5
2659 cat conftest.$ac_ext >&5 2664 cat conftest.$ac_ext >&5
2670 EOF 2675 EOF
2671 2676
2672 fi 2677 fi
2673 2678
2674 echo $ac_n "checking for working const""... $ac_c" 1>&6 2679 echo $ac_n "checking for working const""... $ac_c" 1>&6
2675 echo "configure:2676: checking for working const" >&5 2680 echo "configure:2681: checking for working const" >&5
2676 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2681 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2677 echo $ac_n "(cached) $ac_c" 1>&6 2682 echo $ac_n "(cached) $ac_c" 1>&6
2678 else 2683 else
2679 cat > conftest.$ac_ext <<EOF 2684 cat > conftest.$ac_ext <<EOF
2680 #line 2681 "configure" 2685 #line 2686 "configure"
2681 #include "confdefs.h" 2686 #include "confdefs.h"
2682 2687
2683 int main() { 2688 int main() {
2684 2689
2685 /* Ultrix mips cc rejects this. */ 2690 /* Ultrix mips cc rejects this. */
2724 const int foo = 10; 2729 const int foo = 10;
2725 } 2730 }
2726 2731
2727 ; return 0; } 2732 ; return 0; }
2728 EOF 2733 EOF
2729 if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2734 if { (eval echo configure:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 rm -rf conftest* 2735 rm -rf conftest*
2731 ac_cv_c_const=yes 2736 ac_cv_c_const=yes
2732 else 2737 else
2733 echo "configure: failed program was:" >&5 2738 echo "configure: failed program was:" >&5
2734 cat conftest.$ac_ext >&5 2739 cat conftest.$ac_ext >&5
2746 2751
2747 fi 2752 fi
2748 2753
2749 2754
2750 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2755 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2751 echo "configure:2752: checking whether ${MAKE-make} sets \${MAKE}" >&5 2756 echo "configure:2757: checking whether ${MAKE-make} sets \${MAKE}" >&5
2752 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2753 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 2758 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6 2759 echo $ac_n "(cached) $ac_c" 1>&6
2755 else 2760 else
2756 cat > conftestmake <<\EOF 2761 cat > conftestmake <<\EOF
2774 SET_MAKE="MAKE=${MAKE-make}" 2779 SET_MAKE="MAKE=${MAKE-make}"
2775 fi 2780 fi
2776 2781
2777 2782
2778 echo $ac_n "checking for long file names""... $ac_c" 1>&6 2783 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2779 echo "configure:2780: checking for long file names" >&5 2784 echo "configure:2785: checking for long file names" >&5
2780 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 2785 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6 2786 echo $ac_n "(cached) $ac_c" 1>&6
2782 else 2787 else
2783 ac_cv_sys_long_file_names=yes 2788 ac_cv_sys_long_file_names=yes
2784 # Test for long file names in all the places we know might matter: 2789 # Test for long file names in all the places we know might matter:
2825 # If we find X, set shell vars x_includes and x_libraries to the 2830 # If we find X, set shell vars x_includes and x_libraries to the
2826 # paths, otherwise set no_x=yes. 2831 # paths, otherwise set no_x=yes.
2827 # Uses ac_ vars as temps to allow command line to override cache and checks. 2832 # Uses ac_ vars as temps to allow command line to override cache and checks.
2828 # --without-x overrides everything else, but does not touch the cache. 2833 # --without-x overrides everything else, but does not touch the cache.
2829 echo $ac_n "checking for X""... $ac_c" 1>&6 2834 echo $ac_n "checking for X""... $ac_c" 1>&6
2830 echo "configure:2831: checking for X" >&5 2835 echo "configure:2836: checking for X" >&5
2831 2836
2832 # Check whether --with-x or --without-x was given. 2837 # Check whether --with-x or --without-x was given.
2833 if test "${with_x+set}" = set; then 2838 if test "${with_x+set}" = set; then
2834 withval="$with_x" 2839 withval="$with_x"
2835 : 2840 :
2887 # Guess where to find include files, by looking for this one X11 .h file. 2892 # Guess where to find include files, by looking for this one X11 .h file.
2888 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 2893 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2889 2894
2890 # First, try using that file with no special directory specified. 2895 # First, try using that file with no special directory specified.
2891 cat > conftest.$ac_ext <<EOF 2896 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure" 2897 #line 2898 "configure"
2893 #include "confdefs.h" 2898 #include "confdefs.h"
2894 #include <$x_direct_test_include> 2899 #include <$x_direct_test_include>
2895 EOF 2900 EOF
2896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2897 { (eval echo configure:2898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2899 if test -z "$ac_err"; then 2904 if test -z "$ac_err"; then
2900 rm -rf conftest* 2905 rm -rf conftest*
2901 # We can compile using X headers with no special include directory. 2906 # We can compile using X headers with no special include directory.
2902 ac_x_includes= 2907 ac_x_includes=
2961 # See if we find them without any special options. 2966 # See if we find them without any special options.
2962 # Don't add to $LIBS permanently. 2967 # Don't add to $LIBS permanently.
2963 ac_save_LIBS="$LIBS" 2968 ac_save_LIBS="$LIBS"
2964 LIBS="-l$x_direct_test_library $LIBS" 2969 LIBS="-l$x_direct_test_library $LIBS"
2965 cat > conftest.$ac_ext <<EOF 2970 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure" 2971 #line 2972 "configure"
2967 #include "confdefs.h" 2972 #include "confdefs.h"
2968 2973
2969 int main() { 2974 int main() {
2970 ${x_direct_test_function}() 2975 ${x_direct_test_function}()
2971 ; return 0; } 2976 ; return 0; }
2972 EOF 2977 EOF
2973 if { (eval echo configure:2974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2978 if { (eval echo configure:2979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2974 rm -rf conftest* 2979 rm -rf conftest*
2975 LIBS="$ac_save_LIBS" 2980 LIBS="$ac_save_LIBS"
2976 # We can link X programs with no special library path. 2981 # We can link X programs with no special library path.
2977 ac_x_libraries= 2982 ac_x_libraries=
2978 else 2983 else
3142 #### Extract some information from the operating system and machine files. 3147 #### Extract some information from the operating system and machine files.
3143 3148
3144 echo "checking the machine- and system-dependent files to find out 3149 echo "checking the machine- and system-dependent files to find out
3145 - which libraries the lib-src programs will want, and 3150 - which libraries the lib-src programs will want, and
3146 - whether the GNU malloc routines are usable" 1>&6 3151 - whether the GNU malloc routines are usable" 1>&6
3147 echo "configure:3148: checking the machine- and system-dependent files to find out 3152 echo "configure:3153: checking the machine- and system-dependent files to find out
3148 - which libraries the lib-src programs will want, and 3153 - which libraries the lib-src programs will want, and
3149 - whether the GNU malloc routines are usable" >&5 3154 - whether the GNU malloc routines are usable" >&5
3150 3155
3151 ### First figure out CFLAGS (which we use for running the compiler here) 3156 ### First figure out CFLAGS (which we use for running the compiler here)
3152 ### and REAL_CFLAGS (which we use for real compilation). 3157 ### and REAL_CFLAGS (which we use for real compilation).
3272 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3277 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3273 # Assume not, until told otherwise. 3278 # Assume not, until told otherwise.
3274 GNU_MALLOC=yes 3279 GNU_MALLOC=yes
3275 doug_lea_malloc=yes 3280 doug_lea_malloc=yes
3276 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3281 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3277 echo "configure:3278: checking for malloc_get_state" >&5 3282 echo "configure:3283: checking for malloc_get_state" >&5
3278 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3283 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6 3284 echo $ac_n "(cached) $ac_c" 1>&6
3280 else 3285 else
3281 cat > conftest.$ac_ext <<EOF 3286 cat > conftest.$ac_ext <<EOF
3282 #line 3283 "configure" 3287 #line 3288 "configure"
3283 #include "confdefs.h" 3288 #include "confdefs.h"
3284 /* System header to define __stub macros and hopefully few prototypes, 3289 /* System header to define __stub macros and hopefully few prototypes,
3285 which can conflict with char malloc_get_state(); below. */ 3290 which can conflict with char malloc_get_state(); below. */
3286 #include <assert.h> 3291 #include <assert.h>
3287 /* Override any gcc2 internal prototype to avoid an error. */ 3292 /* Override any gcc2 internal prototype to avoid an error. */
3288 /* We use char because int might match the return type of a gcc2 3293 /* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */ 3294 builtin and then its argument prototype would still apply. */
3290 char malloc_get_state(); 3295 char malloc_get_state();
3296 char (*f)();
3291 3297
3292 int main() { 3298 int main() {
3293 3299
3294 /* The GNU C library defines this for functions which it implements 3300 /* The GNU C library defines this for functions which it implements
3295 to always fail with ENOSYS. Some functions are actually named 3301 to always fail with ENOSYS. Some functions are actually named
3296 something starting with __ and the normal name is an alias. */ 3302 something starting with __ and the normal name is an alias. */
3297 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) 3303 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
3298 choke me 3304 choke me
3299 #else 3305 #else
3300 malloc_get_state(); 3306 f = malloc_get_state;
3301 #endif 3307 #endif
3302 3308
3303 ; return 0; } 3309 ; return 0; }
3304 EOF 3310 EOF
3305 if { (eval echo configure:3306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3311 if { (eval echo configure:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3306 rm -rf conftest* 3312 rm -rf conftest*
3307 eval "ac_cv_func_malloc_get_state=yes" 3313 eval "ac_cv_func_malloc_get_state=yes"
3308 else 3314 else
3309 echo "configure: failed program was:" >&5 3315 echo "configure: failed program was:" >&5
3310 cat conftest.$ac_ext >&5 3316 cat conftest.$ac_ext >&5
3321 echo "$ac_t""no" 1>&6 3327 echo "$ac_t""no" 1>&6
3322 doug_lea_malloc=no 3328 doug_lea_malloc=no
3323 fi 3329 fi
3324 3330
3325 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3331 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3326 echo "configure:3327: checking for malloc_set_state" >&5 3332 echo "configure:3333: checking for malloc_set_state" >&5
3327 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3333 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6 3334 echo $ac_n "(cached) $ac_c" 1>&6
3329 else 3335 else
3330 cat > conftest.$ac_ext <<EOF 3336 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure" 3337 #line 3338 "configure"
3332 #include "confdefs.h" 3338 #include "confdefs.h"
3333 /* System header to define __stub macros and hopefully few prototypes, 3339 /* System header to define __stub macros and hopefully few prototypes,
3334 which can conflict with char malloc_set_state(); below. */ 3340 which can conflict with char malloc_set_state(); below. */
3335 #include <assert.h> 3341 #include <assert.h>
3336 /* Override any gcc2 internal prototype to avoid an error. */ 3342 /* Override any gcc2 internal prototype to avoid an error. */
3337 /* We use char because int might match the return type of a gcc2 3343 /* We use char because int might match the return type of a gcc2
3338 builtin and then its argument prototype would still apply. */ 3344 builtin and then its argument prototype would still apply. */
3339 char malloc_set_state(); 3345 char malloc_set_state();
3346 char (*f)();
3340 3347
3341 int main() { 3348 int main() {
3342 3349
3343 /* The GNU C library defines this for functions which it implements 3350 /* The GNU C library defines this for functions which it implements
3344 to always fail with ENOSYS. Some functions are actually named 3351 to always fail with ENOSYS. Some functions are actually named
3345 something starting with __ and the normal name is an alias. */ 3352 something starting with __ and the normal name is an alias. */
3346 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) 3353 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
3347 choke me 3354 choke me
3348 #else 3355 #else
3349 malloc_set_state(); 3356 f = malloc_set_state;
3350 #endif 3357 #endif
3351 3358
3352 ; return 0; } 3359 ; return 0; }
3353 EOF 3360 EOF
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3361 if { (eval echo configure:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 rm -rf conftest* 3362 rm -rf conftest*
3356 eval "ac_cv_func_malloc_set_state=yes" 3363 eval "ac_cv_func_malloc_set_state=yes"
3357 else 3364 else
3358 echo "configure: failed program was:" >&5 3365 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5 3366 cat conftest.$ac_ext >&5
3370 echo "$ac_t""no" 1>&6 3377 echo "$ac_t""no" 1>&6
3371 doug_lea_malloc=no 3378 doug_lea_malloc=no
3372 fi 3379 fi
3373 3380
3374 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3381 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3375 echo "configure:3376: checking whether __after_morecore_hook exists" >&5 3382 echo "configure:3383: checking whether __after_morecore_hook exists" >&5
3376 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3383 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6 3384 echo $ac_n "(cached) $ac_c" 1>&6
3378 else 3385 else
3379 cat > conftest.$ac_ext <<EOF 3386 cat > conftest.$ac_ext <<EOF
3380 #line 3381 "configure" 3387 #line 3388 "configure"
3381 #include "confdefs.h" 3388 #include "confdefs.h"
3382 extern void (* __after_morecore_hook)(); 3389 extern void (* __after_morecore_hook)();
3383 int main() { 3390 int main() {
3384 __after_morecore_hook = 0 3391 __after_morecore_hook = 0
3385 ; return 0; } 3392 ; return 0; }
3386 EOF 3393 EOF
3387 if { (eval echo configure:3388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3388 rm -rf conftest* 3395 rm -rf conftest*
3389 emacs_cv_var___after_morecore_hook=yes 3396 emacs_cv_var___after_morecore_hook=yes
3390 else 3397 else
3391 echo "configure: failed program was:" >&5 3398 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5 3399 cat conftest.$ac_ext >&5
3432 fi 3439 fi
3433 3440
3434 LIBS="$libsrc_libs $LIBS" 3441 LIBS="$libsrc_libs $LIBS"
3435 3442
3436 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3443 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3437 echo "configure:3438: checking for dnet_ntoa in -ldnet" >&5 3444 echo "configure:3445: checking for dnet_ntoa in -ldnet" >&5
3438 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3445 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6 3447 echo $ac_n "(cached) $ac_c" 1>&6
3441 else 3448 else
3442 ac_save_LIBS="$LIBS" 3449 ac_save_LIBS="$LIBS"
3443 LIBS="-ldnet $LIBS" 3450 LIBS="-ldnet $LIBS"
3444 cat > conftest.$ac_ext <<EOF 3451 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure" 3452 #line 3453 "configure"
3446 #include "confdefs.h" 3453 #include "confdefs.h"
3447 /* Override any gcc2 internal prototype to avoid an error. */ 3454 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2 3455 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */ 3456 builtin and then its argument prototype would still apply. */
3450 char dnet_ntoa(); 3457 char dnet_ntoa();
3451 3458
3452 int main() { 3459 int main() {
3453 dnet_ntoa() 3460 dnet_ntoa()
3454 ; return 0; } 3461 ; return 0; }
3455 EOF 3462 EOF
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3457 rm -rf conftest* 3464 rm -rf conftest*
3458 eval "ac_cv_lib_$ac_lib_var=yes" 3465 eval "ac_cv_lib_$ac_lib_var=yes"
3459 else 3466 else
3460 echo "configure: failed program was:" >&5 3467 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5 3468 cat conftest.$ac_ext >&5
3480 echo "$ac_t""no" 1>&6 3487 echo "$ac_t""no" 1>&6
3481 fi 3488 fi
3482 3489
3483 3490
3484 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3491 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3485 echo "configure:3486: checking for main in -lXbsd" >&5 3492 echo "configure:3493: checking for main in -lXbsd" >&5
3486 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3493 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6 3495 echo $ac_n "(cached) $ac_c" 1>&6
3489 else 3496 else
3490 ac_save_LIBS="$LIBS" 3497 ac_save_LIBS="$LIBS"
3491 LIBS="-lXbsd $LIBS" 3498 LIBS="-lXbsd $LIBS"
3492 cat > conftest.$ac_ext <<EOF 3499 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure" 3500 #line 3501 "configure"
3494 #include "confdefs.h" 3501 #include "confdefs.h"
3495 3502
3496 int main() { 3503 int main() {
3497 main() 3504 main()
3498 ; return 0; } 3505 ; return 0; }
3499 EOF 3506 EOF
3500 if { (eval echo configure:3501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3507 if { (eval echo configure:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3501 rm -rf conftest* 3508 rm -rf conftest*
3502 eval "ac_cv_lib_$ac_lib_var=yes" 3509 eval "ac_cv_lib_$ac_lib_var=yes"
3503 else 3510 else
3504 echo "configure: failed program was:" >&5 3511 echo "configure: failed program was:" >&5
3505 cat conftest.$ac_ext >&5 3512 cat conftest.$ac_ext >&5
3517 echo "$ac_t""no" 1>&6 3524 echo "$ac_t""no" 1>&6
3518 fi 3525 fi
3519 3526
3520 3527
3521 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3528 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3522 echo "configure:3523: checking for cma_open in -lpthreads" >&5 3529 echo "configure:3530: checking for cma_open in -lpthreads" >&5
3523 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3530 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3531 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6 3532 echo $ac_n "(cached) $ac_c" 1>&6
3526 else 3533 else
3527 ac_save_LIBS="$LIBS" 3534 ac_save_LIBS="$LIBS"
3528 LIBS="-lpthreads $LIBS" 3535 LIBS="-lpthreads $LIBS"
3529 cat > conftest.$ac_ext <<EOF 3536 cat > conftest.$ac_ext <<EOF
3530 #line 3531 "configure" 3537 #line 3538 "configure"
3531 #include "confdefs.h" 3538 #include "confdefs.h"
3532 /* Override any gcc2 internal prototype to avoid an error. */ 3539 /* Override any gcc2 internal prototype to avoid an error. */
3533 /* We use char because int might match the return type of a gcc2 3540 /* We use char because int might match the return type of a gcc2
3534 builtin and then its argument prototype would still apply. */ 3541 builtin and then its argument prototype would still apply. */
3535 char cma_open(); 3542 char cma_open();
3536 3543
3537 int main() { 3544 int main() {
3538 cma_open() 3545 cma_open()
3539 ; return 0; } 3546 ; return 0; }
3540 EOF 3547 EOF
3541 if { (eval echo configure:3542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3548 if { (eval echo configure:3549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3542 rm -rf conftest* 3549 rm -rf conftest*
3543 eval "ac_cv_lib_$ac_lib_var=yes" 3550 eval "ac_cv_lib_$ac_lib_var=yes"
3544 else 3551 else
3545 echo "configure: failed program was:" >&5 3552 echo "configure: failed program was:" >&5
3546 cat conftest.$ac_ext >&5 3553 cat conftest.$ac_ext >&5
3565 echo "$ac_t""no" 1>&6 3572 echo "$ac_t""no" 1>&6
3566 fi 3573 fi
3567 3574
3568 3575
3569 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3576 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3570 echo "configure:3571: checking for XFree86 in /usr/X386" >&5 3577 echo "configure:3578: checking for XFree86 in /usr/X386" >&5
3571 if test -d /usr/X386/include; then 3578 if test -d /usr/X386/include; then
3572 HAVE_XFREE386=yes 3579 HAVE_XFREE386=yes
3573 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3580 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3574 else 3581 else
3575 HAVE_XFREE386=no 3582 HAVE_XFREE386=no
3594 export LD_RUN_PATH 3601 export LD_RUN_PATH
3595 fi 3602 fi
3596 3603
3597 if test "${opsys}" = "gnu-linux"; then 3604 if test "${opsys}" = "gnu-linux"; then
3598 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3605 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3599 echo "configure:3600: checking whether X on GNU/Linux needs -b to link" >&5 3606 echo "configure:3607: checking whether X on GNU/Linux needs -b to link" >&5
3600 cat > conftest.$ac_ext <<EOF 3607 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure" 3608 #line 3609 "configure"
3602 #include "confdefs.h" 3609 #include "confdefs.h"
3603 3610
3604 int main() { 3611 int main() {
3605 XOpenDisplay ("foo"); 3612 XOpenDisplay ("foo");
3606 ; return 0; } 3613 ; return 0; }
3607 EOF 3614 EOF
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3609 rm -rf conftest* 3616 rm -rf conftest*
3610 xlinux_first_failure=no 3617 xlinux_first_failure=no
3611 else 3618 else
3612 echo "configure: failed program was:" >&5 3619 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5 3620 cat conftest.$ac_ext >&5
3623 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 3630 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3624 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 3631 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3625 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3632 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3626 LIBS="$LIBS -b i486-linuxaout" 3633 LIBS="$LIBS -b i486-linuxaout"
3627 cat > conftest.$ac_ext <<EOF 3634 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure" 3635 #line 3636 "configure"
3629 #include "confdefs.h" 3636 #include "confdefs.h"
3630 3637
3631 int main() { 3638 int main() {
3632 XOpenDisplay ("foo"); 3639 XOpenDisplay ("foo");
3633 ; return 0; } 3640 ; return 0; }
3634 EOF 3641 EOF
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3642 if { (eval echo configure:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636 rm -rf conftest* 3643 rm -rf conftest*
3637 xlinux_second_failure=no 3644 xlinux_second_failure=no
3638 else 3645 else
3639 echo "configure: failed program was:" >&5 3646 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5 3647 cat conftest.$ac_ext >&5
3660 3667
3661 for ac_func in XrmSetDatabase XScreenResourceString \ 3668 for ac_func in XrmSetDatabase XScreenResourceString \
3662 XScreenNumberOfScreen XSetWMProtocols 3669 XScreenNumberOfScreen XSetWMProtocols
3663 do 3670 do
3664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3665 echo "configure:3666: checking for $ac_func" >&5 3672 echo "configure:3673: checking for $ac_func" >&5
3666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6 3674 echo $ac_n "(cached) $ac_c" 1>&6
3668 else 3675 else
3669 cat > conftest.$ac_ext <<EOF 3676 cat > conftest.$ac_ext <<EOF
3670 #line 3671 "configure" 3677 #line 3678 "configure"
3671 #include "confdefs.h" 3678 #include "confdefs.h"
3672 /* System header to define __stub macros and hopefully few prototypes, 3679 /* System header to define __stub macros and hopefully few prototypes,
3673 which can conflict with char $ac_func(); below. */ 3680 which can conflict with char $ac_func(); below. */
3674 #include <assert.h> 3681 #include <assert.h>
3675 /* Override any gcc2 internal prototype to avoid an error. */ 3682 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2 3683 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */ 3684 builtin and then its argument prototype would still apply. */
3678 char $ac_func(); 3685 char $ac_func();
3686 char (*f)();
3679 3687
3680 int main() { 3688 int main() {
3681 3689
3682 /* The GNU C library defines this for functions which it implements 3690 /* The GNU C library defines this for functions which it implements
3683 to always fail with ENOSYS. Some functions are actually named 3691 to always fail with ENOSYS. Some functions are actually named
3684 something starting with __ and the normal name is an alias. */ 3692 something starting with __ and the normal name is an alias. */
3685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3686 choke me 3694 choke me
3687 #else 3695 #else
3688 $ac_func(); 3696 f = $ac_func;
3689 #endif 3697 #endif
3690 3698
3691 ; return 0; } 3699 ; return 0; }
3692 EOF 3700 EOF
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3701 if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 rm -rf conftest* 3702 rm -rf conftest*
3695 eval "ac_cv_func_$ac_func=yes" 3703 eval "ac_cv_func_$ac_func=yes"
3696 else 3704 else
3697 echo "configure: failed program was:" >&5 3705 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5 3706 cat conftest.$ac_ext >&5
3716 3724
3717 fi 3725 fi
3718 3726
3719 if test "${window_system}" = "x11"; then 3727 if test "${window_system}" = "x11"; then
3720 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 3728 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3721 echo "configure:3722: checking X11 version 6" >&5 3729 echo "configure:3730: checking X11 version 6" >&5
3722 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 3730 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6 3731 echo $ac_n "(cached) $ac_c" 1>&6
3724 else 3732 else
3725 cat > conftest.$ac_ext <<EOF 3733 cat > conftest.$ac_ext <<EOF
3726 #line 3727 "configure" 3734 #line 3735 "configure"
3727 #include "confdefs.h" 3735 #include "confdefs.h"
3728 #include <X11/Xlib.h> 3736 #include <X11/Xlib.h>
3729 int main() { 3737 int main() {
3730 #if XlibSpecificationRelease < 6 3738 #if XlibSpecificationRelease < 6
3731 fail; 3739 fail;
3732 #endif 3740 #endif
3733 3741
3734 ; return 0; } 3742 ; return 0; }
3735 EOF 3743 EOF
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3744 if { (eval echo configure:3745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3737 rm -rf conftest* 3745 rm -rf conftest*
3738 emacs_cv_x11_version_6=yes 3746 emacs_cv_x11_version_6=yes
3739 else 3747 else
3740 echo "configure: failed program was:" >&5 3748 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5 3749 cat conftest.$ac_ext >&5
3756 fi 3764 fi
3757 fi 3765 fi
3758 3766
3759 if test "${window_system}" = "x11"; then 3767 if test "${window_system}" = "x11"; then
3760 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 3768 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3761 echo "configure:3762: checking X11 version 5" >&5 3769 echo "configure:3770: checking X11 version 5" >&5
3762 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 3770 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6 3771 echo $ac_n "(cached) $ac_c" 1>&6
3764 else 3772 else
3765 cat > conftest.$ac_ext <<EOF 3773 cat > conftest.$ac_ext <<EOF
3766 #line 3767 "configure" 3774 #line 3775 "configure"
3767 #include "confdefs.h" 3775 #include "confdefs.h"
3768 #include <X11/Xlib.h> 3776 #include <X11/Xlib.h>
3769 int main() { 3777 int main() {
3770 #if XlibSpecificationRelease < 5 3778 #if XlibSpecificationRelease < 5
3771 fail; 3779 fail;
3772 #endif 3780 #endif
3773 3781
3774 ; return 0; } 3782 ; return 0; }
3775 EOF 3783 EOF
3776 if { (eval echo configure:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3784 if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3777 rm -rf conftest* 3785 rm -rf conftest*
3778 emacs_cv_x11_version_5=yes 3786 emacs_cv_x11_version_5=yes
3779 else 3787 else
3780 echo "configure: failed program was:" >&5 3788 echo "configure: failed program was:" >&5
3781 cat conftest.$ac_ext >&5 3789 cat conftest.$ac_ext >&5
3799 fi 3807 fi
3800 3808
3801 if test x"${USE_X_TOOLKIT}" = xmaybe; then 3809 if test x"${USE_X_TOOLKIT}" = xmaybe; then
3802 if test x"${HAVE_X11R5}" = xyes; then 3810 if test x"${HAVE_X11R5}" = xyes; then
3803 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 3811 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3804 echo "configure:3805: checking X11 version 5 with Xaw" >&5 3812 echo "configure:3813: checking X11 version 5 with Xaw" >&5
3805 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 3813 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3806 echo $ac_n "(cached) $ac_c" 1>&6 3814 echo $ac_n "(cached) $ac_c" 1>&6
3807 else 3815 else
3808 cat > conftest.$ac_ext <<EOF 3816 cat > conftest.$ac_ext <<EOF
3809 #line 3810 "configure" 3817 #line 3818 "configure"
3810 #include "confdefs.h" 3818 #include "confdefs.h"
3811 3819
3812 #include <X11/Intrinsic.h> 3820 #include <X11/Intrinsic.h>
3813 #include <X11/Xaw/Simple.h> 3821 #include <X11/Xaw/Simple.h>
3814 int main() { 3822 int main() {
3815 3823
3816 ; return 0; } 3824 ; return 0; }
3817 EOF 3825 EOF
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3826 if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 rm -rf conftest* 3827 rm -rf conftest*
3820 emacs_cv_x11_version_5_with_xaw=yes 3828 emacs_cv_x11_version_5_with_xaw=yes
3821 else 3829 else
3822 echo "configure: failed program was:" >&5 3830 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5 3831 cat conftest.$ac_ext >&5
3841 3849
3842 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 3850 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
3843 3851
3844 if test "${USE_X_TOOLKIT}" != "none"; then 3852 if test "${USE_X_TOOLKIT}" != "none"; then
3845 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 3853 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3846 echo "configure:3847: checking X11 toolkit version" >&5 3854 echo "configure:3855: checking X11 toolkit version" >&5
3847 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 3855 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6 3856 echo $ac_n "(cached) $ac_c" 1>&6
3849 else 3857 else
3850 cat > conftest.$ac_ext <<EOF 3858 cat > conftest.$ac_ext <<EOF
3851 #line 3852 "configure" 3859 #line 3860 "configure"
3852 #include "confdefs.h" 3860 #include "confdefs.h"
3853 #include <X11/Intrinsic.h> 3861 #include <X11/Intrinsic.h>
3854 int main() { 3862 int main() {
3855 #if XtSpecificationRelease < 6 3863 #if XtSpecificationRelease < 6
3856 fail; 3864 fail;
3857 #endif 3865 #endif
3858 3866
3859 ; return 0; } 3867 ; return 0; }
3860 EOF 3868 EOF
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3862 rm -rf conftest* 3870 rm -rf conftest*
3863 emacs_cv_x11_toolkit_version_6=yes 3871 emacs_cv_x11_toolkit_version_6=yes
3864 else 3872 else
3865 echo "configure: failed program was:" >&5 3873 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5 3874 cat conftest.$ac_ext >&5
3886 LIBS="-lXt -lSM -lICE $LIBS" 3894 LIBS="-lXt -lSM -lICE $LIBS"
3887 else 3895 else
3888 LIBS="-lXt $LIBS" 3896 LIBS="-lXt $LIBS"
3889 fi 3897 fi
3890 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 3898 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3891 echo "configure:3892: checking for XmuConvertStandardSelection in -lXmu" >&5 3899 echo "configure:3900: checking for XmuConvertStandardSelection in -lXmu" >&5
3892 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 3900 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6 3902 echo $ac_n "(cached) $ac_c" 1>&6
3895 else 3903 else
3896 ac_save_LIBS="$LIBS" 3904 ac_save_LIBS="$LIBS"
3897 LIBS="-lXmu $LIBS" 3905 LIBS="-lXmu $LIBS"
3898 cat > conftest.$ac_ext <<EOF 3906 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure" 3907 #line 3908 "configure"
3900 #include "confdefs.h" 3908 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */ 3909 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2 3910 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */ 3911 builtin and then its argument prototype would still apply. */
3904 char XmuConvertStandardSelection(); 3912 char XmuConvertStandardSelection();
3905 3913
3906 int main() { 3914 int main() {
3907 XmuConvertStandardSelection() 3915 XmuConvertStandardSelection()
3908 ; return 0; } 3916 ; return 0; }
3909 EOF 3917 EOF
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3918 if { (eval echo configure:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 rm -rf conftest* 3919 rm -rf conftest*
3912 eval "ac_cv_lib_$ac_lib_var=yes" 3920 eval "ac_cv_lib_$ac_lib_var=yes"
3913 else 3921 else
3914 echo "configure: failed program was:" >&5 3922 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5 3923 cat conftest.$ac_ext >&5
3937 LIBS="$OLDLIBS" 3945 LIBS="$OLDLIBS"
3938 fi 3946 fi
3939 3947
3940 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 3948 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3941 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 3949 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3942 echo "configure:3943: checking for Motif version 2.1" >&5 3950 echo "configure:3951: checking for Motif version 2.1" >&5
3943 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 3951 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6 3952 echo $ac_n "(cached) $ac_c" 1>&6
3945 else 3953 else
3946 cat > conftest.$ac_ext <<EOF 3954 cat > conftest.$ac_ext <<EOF
3947 #line 3948 "configure" 3955 #line 3956 "configure"
3948 #include "confdefs.h" 3956 #include "confdefs.h"
3949 #include <Xm/Xm.h> 3957 #include <Xm/Xm.h>
3950 int main() { 3958 int main() {
3951 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 3959 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3952 int x = 5; 3960 int x = 5;
3953 #else 3961 #else
3954 Motif version prior to 2.1. 3962 Motif version prior to 2.1.
3955 #endif 3963 #endif
3956 ; return 0; } 3964 ; return 0; }
3957 EOF 3965 EOF
3958 if { (eval echo configure:3959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3966 if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3959 rm -rf conftest* 3967 rm -rf conftest*
3960 emacs_cv_motif_version_2_1=yes 3968 emacs_cv_motif_version_2_1=yes
3961 else 3969 else
3962 echo "configure: failed program was:" >&5 3970 echo "configure: failed program was:" >&5
3963 cat conftest.$ac_ext >&5 3971 cat conftest.$ac_ext >&5
3973 cat >> confdefs.h <<\EOF 3981 cat >> confdefs.h <<\EOF
3974 #define HAVE_MOTIF_2_1 1 3982 #define HAVE_MOTIF_2_1 1
3975 EOF 3983 EOF
3976 3984
3977 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 3985 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3978 echo "configure:3979: checking for XpCreateContext in -lXp" >&5 3986 echo "configure:3987: checking for XpCreateContext in -lXp" >&5
3979 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 3987 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3980 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6 3989 echo $ac_n "(cached) $ac_c" 1>&6
3982 else 3990 else
3983 ac_save_LIBS="$LIBS" 3991 ac_save_LIBS="$LIBS"
3984 LIBS="-lXp $LIBS" 3992 LIBS="-lXp $LIBS"
3985 cat > conftest.$ac_ext <<EOF 3993 cat > conftest.$ac_ext <<EOF
3986 #line 3987 "configure" 3994 #line 3995 "configure"
3987 #include "confdefs.h" 3995 #include "confdefs.h"
3988 /* Override any gcc2 internal prototype to avoid an error. */ 3996 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2 3997 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */ 3998 builtin and then its argument prototype would still apply. */
3991 char XpCreateContext(); 3999 char XpCreateContext();
3992 4000
3993 int main() { 4001 int main() {
3994 XpCreateContext() 4002 XpCreateContext()
3995 ; return 0; } 4003 ; return 0; }
3996 EOF 4004 EOF
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3998 rm -rf conftest* 4006 rm -rf conftest*
3999 eval "ac_cv_lib_$ac_lib_var=yes" 4007 eval "ac_cv_lib_$ac_lib_var=yes"
4000 else 4008 else
4001 echo "configure: failed program was:" >&5 4009 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5 4010 cat conftest.$ac_ext >&5
4030 if test "${USE_X_TOOLKIT}" != "none"; then 4038 if test "${USE_X_TOOLKIT}" != "none"; then
4031 old_c_flags="${CFLAGS}" 4039 old_c_flags="${CFLAGS}"
4032 CFLAGS="${LD_SWITCH_X_SITE}" 4040 CFLAGS="${LD_SWITCH_X_SITE}"
4033 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 4041 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
4034 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4042 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
4035 echo "configure:4036: checking for X11/Xaw3d/Scrollbar.h" >&5 4043 echo "configure:4044: checking for X11/Xaw3d/Scrollbar.h" >&5
4036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4037 echo $ac_n "(cached) $ac_c" 1>&6 4045 echo $ac_n "(cached) $ac_c" 1>&6
4038 else 4046 else
4039 cat > conftest.$ac_ext <<EOF 4047 cat > conftest.$ac_ext <<EOF
4040 #line 4041 "configure" 4048 #line 4049 "configure"
4041 #include "confdefs.h" 4049 #include "confdefs.h"
4042 #include <X11/Xaw3d/Scrollbar.h> 4050 #include <X11/Xaw3d/Scrollbar.h>
4043 EOF 4051 EOF
4044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4045 { (eval echo configure:4046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4053 { (eval echo configure:4054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4047 if test -z "$ac_err"; then 4055 if test -z "$ac_err"; then
4048 rm -rf conftest* 4056 rm -rf conftest*
4049 eval "ac_cv_header_$ac_safe=yes" 4057 eval "ac_cv_header_$ac_safe=yes"
4050 else 4058 else
4057 rm -f conftest* 4065 rm -f conftest*
4058 fi 4066 fi
4059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4060 echo "$ac_t""yes" 1>&6 4068 echo "$ac_t""yes" 1>&6
4061 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4069 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4062 echo "configure:4063: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4070 echo "configure:4071: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4063 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4071 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4072 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6 4073 echo $ac_n "(cached) $ac_c" 1>&6
4066 else 4074 else
4067 ac_save_LIBS="$LIBS" 4075 ac_save_LIBS="$LIBS"
4068 LIBS="-lXaw3d -lX11 $LIBS" 4076 LIBS="-lXaw3d -lX11 $LIBS"
4069 cat > conftest.$ac_ext <<EOF 4077 cat > conftest.$ac_ext <<EOF
4070 #line 4071 "configure" 4078 #line 4079 "configure"
4071 #include "confdefs.h" 4079 #include "confdefs.h"
4072 /* Override any gcc2 internal prototype to avoid an error. */ 4080 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2 4081 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */ 4082 builtin and then its argument prototype would still apply. */
4075 char XawScrollbarSetThumb(); 4083 char XawScrollbarSetThumb();
4076 4084
4077 int main() { 4085 int main() {
4078 XawScrollbarSetThumb() 4086 XawScrollbarSetThumb()
4079 ; return 0; } 4087 ; return 0; }
4080 EOF 4088 EOF
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4089 if { (eval echo configure:4090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4082 rm -rf conftest* 4090 rm -rf conftest*
4083 eval "ac_cv_lib_$ac_lib_var=yes" 4091 eval "ac_cv_lib_$ac_lib_var=yes"
4084 else 4092 else
4085 echo "configure: failed program was:" >&5 4093 echo "configure: failed program was:" >&5
4086 cat conftest.$ac_ext >&5 4094 cat conftest.$ac_ext >&5
4140 if test "${with_xpm}" != "no"; then 4148 if test "${with_xpm}" != "no"; then
4141 old_c_flags="${CFLAGS}" 4149 old_c_flags="${CFLAGS}"
4142 CFLAGS="${LD_SWITCH_X_SITE}" 4150 CFLAGS="${LD_SWITCH_X_SITE}"
4143 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4151 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4144 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4152 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4145 echo "configure:4146: checking for X11/xpm.h" >&5 4153 echo "configure:4154: checking for X11/xpm.h" >&5
4146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6 4155 echo $ac_n "(cached) $ac_c" 1>&6
4148 else 4156 else
4149 cat > conftest.$ac_ext <<EOF 4157 cat > conftest.$ac_ext <<EOF
4150 #line 4151 "configure" 4158 #line 4159 "configure"
4151 #include "confdefs.h" 4159 #include "confdefs.h"
4152 #include <X11/xpm.h> 4160 #include <X11/xpm.h>
4153 EOF 4161 EOF
4154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4155 { (eval echo configure:4156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4163 { (eval echo configure:4164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4157 if test -z "$ac_err"; then 4165 if test -z "$ac_err"; then
4158 rm -rf conftest* 4166 rm -rf conftest*
4159 eval "ac_cv_header_$ac_safe=yes" 4167 eval "ac_cv_header_$ac_safe=yes"
4160 else 4168 else
4167 rm -f conftest* 4175 rm -f conftest*
4168 fi 4176 fi
4169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6 4178 echo "$ac_t""yes" 1>&6
4171 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4179 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4172 echo "configure:4173: checking for XpmReadFileToPixmap in -lXpm" >&5 4180 echo "configure:4181: checking for XpmReadFileToPixmap in -lXpm" >&5
4173 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4181 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4174 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6 4183 echo $ac_n "(cached) $ac_c" 1>&6
4176 else 4184 else
4177 ac_save_LIBS="$LIBS" 4185 ac_save_LIBS="$LIBS"
4178 LIBS="-lXpm -lX11 $LIBS" 4186 LIBS="-lXpm -lX11 $LIBS"
4179 cat > conftest.$ac_ext <<EOF 4187 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure" 4188 #line 4189 "configure"
4181 #include "confdefs.h" 4189 #include "confdefs.h"
4182 /* Override any gcc2 internal prototype to avoid an error. */ 4190 /* Override any gcc2 internal prototype to avoid an error. */
4183 /* We use char because int might match the return type of a gcc2 4191 /* We use char because int might match the return type of a gcc2
4184 builtin and then its argument prototype would still apply. */ 4192 builtin and then its argument prototype would still apply. */
4185 char XpmReadFileToPixmap(); 4193 char XpmReadFileToPixmap();
4186 4194
4187 int main() { 4195 int main() {
4188 XpmReadFileToPixmap() 4196 XpmReadFileToPixmap()
4189 ; return 0; } 4197 ; return 0; }
4190 EOF 4198 EOF
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4192 rm -rf conftest* 4200 rm -rf conftest*
4193 eval "ac_cv_lib_$ac_lib_var=yes" 4201 eval "ac_cv_lib_$ac_lib_var=yes"
4194 else 4202 else
4195 echo "configure: failed program was:" >&5 4203 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5 4204 cat conftest.$ac_ext >&5
4228 if test "${HAVE_X11}" = "yes"; then 4236 if test "${HAVE_X11}" = "yes"; then
4229 if test "${with_jpeg}" != "no"; then 4237 if test "${with_jpeg}" != "no"; then
4230 old_c_flags="${CFLAGS}" 4238 old_c_flags="${CFLAGS}"
4231 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4239 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4232 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4240 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4233 echo "configure:4234: checking for jpeg_destroy_compress in -ljpeg" >&5 4241 echo "configure:4242: checking for jpeg_destroy_compress in -ljpeg" >&5
4234 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4242 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4236 echo $ac_n "(cached) $ac_c" 1>&6 4244 echo $ac_n "(cached) $ac_c" 1>&6
4237 else 4245 else
4238 ac_save_LIBS="$LIBS" 4246 ac_save_LIBS="$LIBS"
4239 LIBS="-ljpeg -lX11 $LIBS" 4247 LIBS="-ljpeg -lX11 $LIBS"
4240 cat > conftest.$ac_ext <<EOF 4248 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure" 4249 #line 4250 "configure"
4242 #include "confdefs.h" 4250 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */ 4251 /* Override any gcc2 internal prototype to avoid an error. */
4244 /* We use char because int might match the return type of a gcc2 4252 /* We use char because int might match the return type of a gcc2
4245 builtin and then its argument prototype would still apply. */ 4253 builtin and then its argument prototype would still apply. */
4246 char jpeg_destroy_compress(); 4254 char jpeg_destroy_compress();
4247 4255
4248 int main() { 4256 int main() {
4249 jpeg_destroy_compress() 4257 jpeg_destroy_compress()
4250 ; return 0; } 4258 ; return 0; }
4251 EOF 4259 EOF
4252 if { (eval echo configure:4253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4253 rm -rf conftest* 4261 rm -rf conftest*
4254 eval "ac_cv_lib_$ac_lib_var=yes" 4262 eval "ac_cv_lib_$ac_lib_var=yes"
4255 else 4263 else
4256 echo "configure: failed program was:" >&5 4264 echo "configure: failed program was:" >&5
4257 cat conftest.$ac_ext >&5 4265 cat conftest.$ac_ext >&5
4286 if test "${with_png}" != "no"; then 4294 if test "${with_png}" != "no"; then
4287 old_c_flags="${CFLAGS}" 4295 old_c_flags="${CFLAGS}"
4288 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4296 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4289 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4297 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4290 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4298 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4291 echo "configure:4292: checking for png.h" >&5 4299 echo "configure:4300: checking for png.h" >&5
4292 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6 4301 echo $ac_n "(cached) $ac_c" 1>&6
4294 else 4302 else
4295 cat > conftest.$ac_ext <<EOF 4303 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure" 4304 #line 4305 "configure"
4297 #include "confdefs.h" 4305 #include "confdefs.h"
4298 #include <png.h> 4306 #include <png.h>
4299 EOF 4307 EOF
4300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4301 { (eval echo configure:4302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4309 { (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4303 if test -z "$ac_err"; then 4311 if test -z "$ac_err"; then
4304 rm -rf conftest* 4312 rm -rf conftest*
4305 eval "ac_cv_header_$ac_safe=yes" 4313 eval "ac_cv_header_$ac_safe=yes"
4306 else 4314 else
4313 rm -f conftest* 4321 rm -f conftest*
4314 fi 4322 fi
4315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4316 echo "$ac_t""yes" 1>&6 4324 echo "$ac_t""yes" 1>&6
4317 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4325 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4318 echo "configure:4319: checking for png_set_expand in -lpng" >&5 4326 echo "configure:4327: checking for png_set_expand in -lpng" >&5
4319 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4327 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6 4329 echo $ac_n "(cached) $ac_c" 1>&6
4322 else 4330 else
4323 ac_save_LIBS="$LIBS" 4331 ac_save_LIBS="$LIBS"
4324 LIBS="-lpng -lX11 -lz -lm $LIBS" 4332 LIBS="-lpng -lX11 -lz -lm $LIBS"
4325 cat > conftest.$ac_ext <<EOF 4333 cat > conftest.$ac_ext <<EOF
4326 #line 4327 "configure" 4334 #line 4335 "configure"
4327 #include "confdefs.h" 4335 #include "confdefs.h"
4328 /* Override any gcc2 internal prototype to avoid an error. */ 4336 /* Override any gcc2 internal prototype to avoid an error. */
4329 /* We use char because int might match the return type of a gcc2 4337 /* We use char because int might match the return type of a gcc2
4330 builtin and then its argument prototype would still apply. */ 4338 builtin and then its argument prototype would still apply. */
4331 char png_set_expand(); 4339 char png_set_expand();
4332 4340
4333 int main() { 4341 int main() {
4334 png_set_expand() 4342 png_set_expand()
4335 ; return 0; } 4343 ; return 0; }
4336 EOF 4344 EOF
4337 if { (eval echo configure:4338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4345 if { (eval echo configure:4346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4338 rm -rf conftest* 4346 rm -rf conftest*
4339 eval "ac_cv_lib_$ac_lib_var=yes" 4347 eval "ac_cv_lib_$ac_lib_var=yes"
4340 else 4348 else
4341 echo "configure: failed program was:" >&5 4349 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5 4350 cat conftest.$ac_ext >&5
4375 if test "${with_tiff}" != "no"; then 4383 if test "${with_tiff}" != "no"; then
4376 old_c_flags="${CFLAGS}" 4384 old_c_flags="${CFLAGS}"
4377 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4385 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4378 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4386 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4379 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4387 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4380 echo "configure:4381: checking for tiffio.h" >&5 4388 echo "configure:4389: checking for tiffio.h" >&5
4381 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4389 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6 4390 echo $ac_n "(cached) $ac_c" 1>&6
4383 else 4391 else
4384 cat > conftest.$ac_ext <<EOF 4392 cat > conftest.$ac_ext <<EOF
4385 #line 4386 "configure" 4393 #line 4394 "configure"
4386 #include "confdefs.h" 4394 #include "confdefs.h"
4387 #include <tiffio.h> 4395 #include <tiffio.h>
4388 EOF 4396 EOF
4389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4390 { (eval echo configure:4391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4398 { (eval echo configure:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4392 if test -z "$ac_err"; then 4400 if test -z "$ac_err"; then
4393 rm -rf conftest* 4401 rm -rf conftest*
4394 eval "ac_cv_header_$ac_safe=yes" 4402 eval "ac_cv_header_$ac_safe=yes"
4395 else 4403 else
4402 rm -f conftest* 4410 rm -f conftest*
4403 fi 4411 fi
4404 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4412 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4405 echo "$ac_t""yes" 1>&6 4413 echo "$ac_t""yes" 1>&6
4406 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4414 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4407 echo "configure:4408: checking for TIFFGetVersion in -ltiff" >&5 4415 echo "configure:4416: checking for TIFFGetVersion in -ltiff" >&5
4408 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4416 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6 4418 echo $ac_n "(cached) $ac_c" 1>&6
4411 else 4419 else
4412 ac_save_LIBS="$LIBS" 4420 ac_save_LIBS="$LIBS"
4413 LIBS="-ltiff -lX11 -lm $LIBS" 4421 LIBS="-ltiff -lX11 -lm $LIBS"
4414 cat > conftest.$ac_ext <<EOF 4422 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure" 4423 #line 4424 "configure"
4416 #include "confdefs.h" 4424 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */ 4425 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2 4426 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */ 4427 builtin and then its argument prototype would still apply. */
4420 char TIFFGetVersion(); 4428 char TIFFGetVersion();
4421 4429
4422 int main() { 4430 int main() {
4423 TIFFGetVersion() 4431 TIFFGetVersion()
4424 ; return 0; } 4432 ; return 0; }
4425 EOF 4433 EOF
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4434 if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 rm -rf conftest* 4435 rm -rf conftest*
4428 eval "ac_cv_lib_$ac_lib_var=yes" 4436 eval "ac_cv_lib_$ac_lib_var=yes"
4429 else 4437 else
4430 echo "configure: failed program was:" >&5 4438 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5 4439 cat conftest.$ac_ext >&5
4464 if test "${with_gif}" != "no"; then 4472 if test "${with_gif}" != "no"; then
4465 old_c_flags="${CFLAGS}" 4473 old_c_flags="${CFLAGS}"
4466 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4474 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4467 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4475 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4468 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4476 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4469 echo "configure:4470: checking for gif_lib.h" >&5 4477 echo "configure:4478: checking for gif_lib.h" >&5
4470 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4471 echo $ac_n "(cached) $ac_c" 1>&6 4479 echo $ac_n "(cached) $ac_c" 1>&6
4472 else 4480 else
4473 cat > conftest.$ac_ext <<EOF 4481 cat > conftest.$ac_ext <<EOF
4474 #line 4475 "configure" 4482 #line 4483 "configure"
4475 #include "confdefs.h" 4483 #include "confdefs.h"
4476 #include <gif_lib.h> 4484 #include <gif_lib.h>
4477 EOF 4485 EOF
4478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4479 { (eval echo configure:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4487 { (eval echo configure:4488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4481 if test -z "$ac_err"; then 4489 if test -z "$ac_err"; then
4482 rm -rf conftest* 4490 rm -rf conftest*
4483 eval "ac_cv_header_$ac_safe=yes" 4491 eval "ac_cv_header_$ac_safe=yes"
4484 else 4492 else
4491 rm -f conftest* 4499 rm -f conftest*
4492 fi 4500 fi
4493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4494 echo "$ac_t""yes" 1>&6 4502 echo "$ac_t""yes" 1>&6
4495 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 4503 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4496 echo "configure:4497: checking for DGifOpenFileName in -lungif" >&5 4504 echo "configure:4505: checking for DGifOpenFileName in -lungif" >&5
4497 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` 4505 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6 4507 echo $ac_n "(cached) $ac_c" 1>&6
4500 else 4508 else
4501 ac_save_LIBS="$LIBS" 4509 ac_save_LIBS="$LIBS"
4502 LIBS="-lungif -lX11 $LIBS" 4510 LIBS="-lungif -lX11 $LIBS"
4503 cat > conftest.$ac_ext <<EOF 4511 cat > conftest.$ac_ext <<EOF
4504 #line 4505 "configure" 4512 #line 4513 "configure"
4505 #include "confdefs.h" 4513 #include "confdefs.h"
4506 /* Override any gcc2 internal prototype to avoid an error. */ 4514 /* Override any gcc2 internal prototype to avoid an error. */
4507 /* We use char because int might match the return type of a gcc2 4515 /* We use char because int might match the return type of a gcc2
4508 builtin and then its argument prototype would still apply. */ 4516 builtin and then its argument prototype would still apply. */
4509 char DGifOpenFileName(); 4517 char DGifOpenFileName();
4510 4518
4511 int main() { 4519 int main() {
4512 DGifOpenFileName() 4520 DGifOpenFileName()
4513 ; return 0; } 4521 ; return 0; }
4514 EOF 4522 EOF
4515 if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4516 rm -rf conftest* 4524 rm -rf conftest*
4517 eval "ac_cv_lib_$ac_lib_var=yes" 4525 eval "ac_cv_lib_$ac_lib_var=yes"
4518 else 4526 else
4519 echo "configure: failed program was:" >&5 4527 echo "configure: failed program was:" >&5
4520 cat conftest.$ac_ext >&5 4528 cat conftest.$ac_ext >&5
4547 fi 4555 fi
4548 fi 4556 fi
4549 4557
4550 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4558 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4551 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4559 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4552 echo "configure:4553: checking whether netdb declares h_errno" >&5 4560 echo "configure:4561: checking whether netdb declares h_errno" >&5
4553 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4561 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4554 echo $ac_n "(cached) $ac_c" 1>&6 4562 echo $ac_n "(cached) $ac_c" 1>&6
4555 else 4563 else
4556 cat > conftest.$ac_ext <<EOF 4564 cat > conftest.$ac_ext <<EOF
4557 #line 4558 "configure" 4565 #line 4566 "configure"
4558 #include "confdefs.h" 4566 #include "confdefs.h"
4559 #include <netdb.h> 4567 #include <netdb.h>
4560 int main() { 4568 int main() {
4561 return h_errno; 4569 return h_errno;
4562 ; return 0; } 4570 ; return 0; }
4563 EOF 4571 EOF
4564 if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565 rm -rf conftest* 4573 rm -rf conftest*
4566 emacs_cv_netdb_declares_h_errno=yes 4574 emacs_cv_netdb_declares_h_errno=yes
4567 else 4575 else
4568 echo "configure: failed program was:" >&5 4576 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5 4577 cat conftest.$ac_ext >&5
4582 fi 4590 fi
4583 4591
4584 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4592 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4585 # for constant arguments. Useless! 4593 # for constant arguments. Useless!
4586 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4594 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4587 echo "configure:4588: checking for working alloca.h" >&5 4595 echo "configure:4596: checking for working alloca.h" >&5
4588 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4596 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6 4597 echo $ac_n "(cached) $ac_c" 1>&6
4590 else 4598 else
4591 cat > conftest.$ac_ext <<EOF 4599 cat > conftest.$ac_ext <<EOF
4592 #line 4593 "configure" 4600 #line 4601 "configure"
4593 #include "confdefs.h" 4601 #include "confdefs.h"
4594 #include <alloca.h> 4602 #include <alloca.h>
4595 int main() { 4603 int main() {
4596 char *p = alloca(2 * sizeof(int)); 4604 char *p = alloca(2 * sizeof(int));
4597 ; return 0; } 4605 ; return 0; }
4598 EOF 4606 EOF
4599 if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4607 if { (eval echo configure:4608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4600 rm -rf conftest* 4608 rm -rf conftest*
4601 ac_cv_header_alloca_h=yes 4609 ac_cv_header_alloca_h=yes
4602 else 4610 else
4603 echo "configure: failed program was:" >&5 4611 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5 4612 cat conftest.$ac_ext >&5
4615 EOF 4623 EOF
4616 4624
4617 fi 4625 fi
4618 4626
4619 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4627 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4620 echo "configure:4621: checking for alloca" >&5 4628 echo "configure:4629: checking for alloca" >&5
4621 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4629 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6 4630 echo $ac_n "(cached) $ac_c" 1>&6
4623 else 4631 else
4624 cat > conftest.$ac_ext <<EOF 4632 cat > conftest.$ac_ext <<EOF
4625 #line 4626 "configure" 4633 #line 4634 "configure"
4626 #include "confdefs.h" 4634 #include "confdefs.h"
4627 4635
4628 #ifdef __GNUC__ 4636 #ifdef __GNUC__
4629 # define alloca __builtin_alloca 4637 # define alloca __builtin_alloca
4630 #else 4638 #else
4648 4656
4649 int main() { 4657 int main() {
4650 char *p = (char *) alloca(1); 4658 char *p = (char *) alloca(1);
4651 ; return 0; } 4659 ; return 0; }
4652 EOF 4660 EOF
4653 if { (eval echo configure:4654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4661 if { (eval echo configure:4662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4654 rm -rf conftest* 4662 rm -rf conftest*
4655 ac_cv_func_alloca_works=yes 4663 ac_cv_func_alloca_works=yes
4656 else 4664 else
4657 echo "configure: failed program was:" >&5 4665 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5 4666 cat conftest.$ac_ext >&5
4680 #define C_ALLOCA 1 4688 #define C_ALLOCA 1
4681 EOF 4689 EOF
4682 4690
4683 4691
4684 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4692 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4685 echo "configure:4686: checking whether alloca needs Cray hooks" >&5 4693 echo "configure:4694: checking whether alloca needs Cray hooks" >&5
4686 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4694 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6 4695 echo $ac_n "(cached) $ac_c" 1>&6
4688 else 4696 else
4689 cat > conftest.$ac_ext <<EOF 4697 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure" 4698 #line 4699 "configure"
4691 #include "confdefs.h" 4699 #include "confdefs.h"
4692 #if defined(CRAY) && ! defined(CRAY2) 4700 #if defined(CRAY) && ! defined(CRAY2)
4693 webecray 4701 webecray
4694 #else 4702 #else
4695 wenotbecray 4703 wenotbecray
4710 4718
4711 echo "$ac_t""$ac_cv_os_cray" 1>&6 4719 echo "$ac_t""$ac_cv_os_cray" 1>&6
4712 if test $ac_cv_os_cray = yes; then 4720 if test $ac_cv_os_cray = yes; then
4713 for ac_func in _getb67 GETB67 getb67; do 4721 for ac_func in _getb67 GETB67 getb67; do
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_func" >&5 4723 echo "configure:4724: checking for $ac_func" >&5
4716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4724 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6 4725 echo $ac_n "(cached) $ac_c" 1>&6
4718 else 4726 else
4719 cat > conftest.$ac_ext <<EOF 4727 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure" 4728 #line 4729 "configure"
4721 #include "confdefs.h" 4729 #include "confdefs.h"
4722 /* System header to define __stub macros and hopefully few prototypes, 4730 /* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char $ac_func(); below. */ 4731 which can conflict with char $ac_func(); below. */
4724 #include <assert.h> 4732 #include <assert.h>
4725 /* Override any gcc2 internal prototype to avoid an error. */ 4733 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2 4734 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */ 4735 builtin and then its argument prototype would still apply. */
4728 char $ac_func(); 4736 char $ac_func();
4737 char (*f)();
4729 4738
4730 int main() { 4739 int main() {
4731 4740
4732 /* The GNU C library defines this for functions which it implements 4741 /* The GNU C library defines this for functions which it implements
4733 to always fail with ENOSYS. Some functions are actually named 4742 to always fail with ENOSYS. Some functions are actually named
4734 something starting with __ and the normal name is an alias. */ 4743 something starting with __ and the normal name is an alias. */
4735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4736 choke me 4745 choke me
4737 #else 4746 #else
4738 $ac_func(); 4747 f = $ac_func;
4739 #endif 4748 #endif
4740 4749
4741 ; return 0; } 4750 ; return 0; }
4742 EOF 4751 EOF
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 rm -rf conftest* 4753 rm -rf conftest*
4745 eval "ac_cv_func_$ac_func=yes" 4754 eval "ac_cv_func_$ac_func=yes"
4746 else 4755 else
4747 echo "configure: failed program was:" >&5 4756 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5 4757 cat conftest.$ac_ext >&5
4765 4774
4766 done 4775 done
4767 fi 4776 fi
4768 4777
4769 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 4778 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4770 echo "configure:4771: checking stack direction for C alloca" >&5 4779 echo "configure:4780: checking stack direction for C alloca" >&5
4771 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 4780 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6 4781 echo $ac_n "(cached) $ac_c" 1>&6
4773 else 4782 else
4774 if test "$cross_compiling" = yes; then 4783 if test "$cross_compiling" = yes; then
4775 ac_cv_c_stack_direction=0 4784 ac_cv_c_stack_direction=0
4776 else 4785 else
4777 cat > conftest.$ac_ext <<EOF 4786 cat > conftest.$ac_ext <<EOF
4778 #line 4779 "configure" 4787 #line 4788 "configure"
4779 #include "confdefs.h" 4788 #include "confdefs.h"
4780 find_stack_direction () 4789 find_stack_direction ()
4781 { 4790 {
4782 static char *addr = 0; 4791 static char *addr = 0;
4783 auto char dummy; 4792 auto char dummy;
4792 main () 4801 main ()
4793 { 4802 {
4794 exit (find_stack_direction() < 0); 4803 exit (find_stack_direction() < 0);
4795 } 4804 }
4796 EOF 4805 EOF
4797 if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 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
4798 then 4807 then
4799 ac_cv_c_stack_direction=1 4808 ac_cv_c_stack_direction=1
4800 else 4809 else
4801 echo "configure: failed program was:" >&5 4810 echo "configure: failed program was:" >&5
4802 cat conftest.$ac_ext >&5 4811 cat conftest.$ac_ext >&5
4817 4826
4818 4827
4819 # fmod, logb, and frexp are found in -lm on most systems. 4828 # fmod, logb, and frexp are found in -lm on most systems.
4820 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 4829 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4821 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 4830 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4822 echo "configure:4823: checking for sqrt in -lm" >&5 4831 echo "configure:4832: checking for sqrt in -lm" >&5
4823 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 4832 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4825 echo $ac_n "(cached) $ac_c" 1>&6 4834 echo $ac_n "(cached) $ac_c" 1>&6
4826 else 4835 else
4827 ac_save_LIBS="$LIBS" 4836 ac_save_LIBS="$LIBS"
4828 LIBS="-lm $LIBS" 4837 LIBS="-lm $LIBS"
4829 cat > conftest.$ac_ext <<EOF 4838 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure" 4839 #line 4840 "configure"
4831 #include "confdefs.h" 4840 #include "confdefs.h"
4832 /* Override any gcc2 internal prototype to avoid an error. */ 4841 /* Override any gcc2 internal prototype to avoid an error. */
4833 /* We use char because int might match the return type of a gcc2 4842 /* We use char because int might match the return type of a gcc2
4834 builtin and then its argument prototype would still apply. */ 4843 builtin and then its argument prototype would still apply. */
4835 char sqrt(); 4844 char sqrt();
4836 4845
4837 int main() { 4846 int main() {
4838 sqrt() 4847 sqrt()
4839 ; return 0; } 4848 ; return 0; }
4840 EOF 4849 EOF
4841 if { (eval echo configure:4842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4842 rm -rf conftest* 4851 rm -rf conftest*
4843 eval "ac_cv_lib_$ac_lib_var=yes" 4852 eval "ac_cv_lib_$ac_lib_var=yes"
4844 else 4853 else
4845 echo "configure: failed program was:" >&5 4854 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5 4855 cat conftest.$ac_ext >&5
4866 fi 4875 fi
4867 4876
4868 4877
4869 # Check for mail-locking functions in a "mail" library 4878 # Check for mail-locking functions in a "mail" library
4870 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 4879 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4871 echo "configure:4872: checking for maillock in -lmail" >&5 4880 echo "configure:4881: checking for maillock in -lmail" >&5
4872 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 4881 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6 4883 echo $ac_n "(cached) $ac_c" 1>&6
4875 else 4884 else
4876 ac_save_LIBS="$LIBS" 4885 ac_save_LIBS="$LIBS"
4877 LIBS="-lmail $LIBS" 4886 LIBS="-lmail $LIBS"
4878 cat > conftest.$ac_ext <<EOF 4887 cat > conftest.$ac_ext <<EOF
4879 #line 4880 "configure" 4888 #line 4889 "configure"
4880 #include "confdefs.h" 4889 #include "confdefs.h"
4881 /* Override any gcc2 internal prototype to avoid an error. */ 4890 /* Override any gcc2 internal prototype to avoid an error. */
4882 /* We use char because int might match the return type of a gcc2 4891 /* We use char because int might match the return type of a gcc2
4883 builtin and then its argument prototype would still apply. */ 4892 builtin and then its argument prototype would still apply. */
4884 char maillock(); 4893 char maillock();
4885 4894
4886 int main() { 4895 int main() {
4887 maillock() 4896 maillock()
4888 ; return 0; } 4897 ; return 0; }
4889 EOF 4898 EOF
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4891 rm -rf conftest* 4900 rm -rf conftest*
4892 eval "ac_cv_lib_$ac_lib_var=yes" 4901 eval "ac_cv_lib_$ac_lib_var=yes"
4893 else 4902 else
4894 echo "configure: failed program was:" >&5 4903 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5 4904 cat conftest.$ac_ext >&5
4913 else 4922 else
4914 echo "$ac_t""no" 1>&6 4923 echo "$ac_t""no" 1>&6
4915 fi 4924 fi
4916 4925
4917 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 4926 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4918 echo "configure:4919: checking for maillock in -llockfile" >&5 4927 echo "configure:4928: checking for maillock in -llockfile" >&5
4919 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 4928 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4929 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6 4930 echo $ac_n "(cached) $ac_c" 1>&6
4922 else 4931 else
4923 ac_save_LIBS="$LIBS" 4932 ac_save_LIBS="$LIBS"
4924 LIBS="-llockfile $LIBS" 4933 LIBS="-llockfile $LIBS"
4925 cat > conftest.$ac_ext <<EOF 4934 cat > conftest.$ac_ext <<EOF
4926 #line 4927 "configure" 4935 #line 4936 "configure"
4927 #include "confdefs.h" 4936 #include "confdefs.h"
4928 /* Override any gcc2 internal prototype to avoid an error. */ 4937 /* Override any gcc2 internal prototype to avoid an error. */
4929 /* We use char because int might match the return type of a gcc2 4938 /* We use char because int might match the return type of a gcc2
4930 builtin and then its argument prototype would still apply. */ 4939 builtin and then its argument prototype would still apply. */
4931 char maillock(); 4940 char maillock();
4932 4941
4933 int main() { 4942 int main() {
4934 maillock() 4943 maillock()
4935 ; return 0; } 4944 ; return 0; }
4936 EOF 4945 EOF
4937 if { (eval echo configure:4938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4946 if { (eval echo configure:4947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4938 rm -rf conftest* 4947 rm -rf conftest*
4939 eval "ac_cv_lib_$ac_lib_var=yes" 4948 eval "ac_cv_lib_$ac_lib_var=yes"
4940 else 4949 else
4941 echo "configure: failed program was:" >&5 4950 echo "configure: failed program was:" >&5
4942 cat conftest.$ac_ext >&5 4951 cat conftest.$ac_ext >&5
4966 # (no liblockfile.a installed), ensure that we don't need to. 4975 # (no liblockfile.a installed), ensure that we don't need to.
4967 if test "$ac_cv_lib_lockfile_maillock" = no; then 4976 if test "$ac_cv_lib_lockfile_maillock" = no; then
4968 # Extract the first word of "liblockfile.so", so it can be a program name with args. 4977 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4969 set dummy liblockfile.so; ac_word=$2 4978 set dummy liblockfile.so; ac_word=$2
4970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4971 echo "configure:4972: checking for $ac_word" >&5 4980 echo "configure:4981: checking for $ac_word" >&5
4972 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 4981 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4973 echo $ac_n "(cached) $ac_c" 1>&6 4982 echo $ac_n "(cached) $ac_c" 1>&6
4974 else 4983 else
4975 if test -n "$liblockfile"; then 4984 if test -n "$liblockfile"; then
4976 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 4985 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5007 else : 5016 else :
5008 fi 5017 fi
5009 for ac_func in touchlock 5018 for ac_func in touchlock
5010 do 5019 do
5011 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5012 echo "configure:5013: checking for $ac_func" >&5 5021 echo "configure:5022: checking for $ac_func" >&5
5013 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6 5023 echo $ac_n "(cached) $ac_c" 1>&6
5015 else 5024 else
5016 cat > conftest.$ac_ext <<EOF 5025 cat > conftest.$ac_ext <<EOF
5017 #line 5018 "configure" 5026 #line 5027 "configure"
5018 #include "confdefs.h" 5027 #include "confdefs.h"
5019 /* System header to define __stub macros and hopefully few prototypes, 5028 /* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func(); below. */ 5029 which can conflict with char $ac_func(); below. */
5021 #include <assert.h> 5030 #include <assert.h>
5022 /* Override any gcc2 internal prototype to avoid an error. */ 5031 /* Override any gcc2 internal prototype to avoid an error. */
5023 /* We use char because int might match the return type of a gcc2 5032 /* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */ 5033 builtin and then its argument prototype would still apply. */
5025 char $ac_func(); 5034 char $ac_func();
5035 char (*f)();
5026 5036
5027 int main() { 5037 int main() {
5028 5038
5029 /* The GNU C library defines this for functions which it implements 5039 /* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named 5040 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */ 5041 something starting with __ and the normal name is an alias. */
5032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033 choke me 5043 choke me
5034 #else 5044 #else
5035 $ac_func(); 5045 f = $ac_func;
5036 #endif 5046 #endif
5037 5047
5038 ; return 0; } 5048 ; return 0; }
5039 EOF 5049 EOF
5040 if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5050 if { (eval echo configure:5051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5041 rm -rf conftest* 5051 rm -rf conftest*
5042 eval "ac_cv_func_$ac_func=yes" 5052 eval "ac_cv_func_$ac_func=yes"
5043 else 5053 else
5044 echo "configure: failed program was:" >&5 5054 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5 5055 cat conftest.$ac_ext >&5
5063 5073
5064 for ac_hdr in maillock.h 5074 for ac_hdr in maillock.h
5065 do 5075 do
5066 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5067 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5068 echo "configure:5069: checking for $ac_hdr" >&5 5078 echo "configure:5079: checking for $ac_hdr" >&5
5069 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6 5080 echo $ac_n "(cached) $ac_c" 1>&6
5071 else 5081 else
5072 cat > conftest.$ac_ext <<EOF 5082 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure" 5083 #line 5084 "configure"
5074 #include "confdefs.h" 5084 #include "confdefs.h"
5075 #include <$ac_hdr> 5085 #include <$ac_hdr>
5076 EOF 5086 EOF
5077 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5078 { (eval echo configure:5079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5088 { (eval echo configure:5089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5079 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5080 if test -z "$ac_err"; then 5090 if test -z "$ac_err"; then
5081 rm -rf conftest* 5091 rm -rf conftest*
5082 eval "ac_cv_header_$ac_safe=yes" 5092 eval "ac_cv_header_$ac_safe=yes"
5083 else 5093 else
5108 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5118 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5109 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ 5119 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5110 __fpending ftello getloadavg mblen mbrlen strsignal 5120 __fpending ftello getloadavg mblen mbrlen strsignal
5111 do 5121 do
5112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5113 echo "configure:5114: checking for $ac_func" >&5 5123 echo "configure:5124: checking for $ac_func" >&5
5114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6 5125 echo $ac_n "(cached) $ac_c" 1>&6
5116 else 5126 else
5117 cat > conftest.$ac_ext <<EOF 5127 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure" 5128 #line 5129 "configure"
5119 #include "confdefs.h" 5129 #include "confdefs.h"
5120 /* System header to define __stub macros and hopefully few prototypes, 5130 /* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char $ac_func(); below. */ 5131 which can conflict with char $ac_func(); below. */
5122 #include <assert.h> 5132 #include <assert.h>
5123 /* Override any gcc2 internal prototype to avoid an error. */ 5133 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2 5134 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */ 5135 builtin and then its argument prototype would still apply. */
5126 char $ac_func(); 5136 char $ac_func();
5137 char (*f)();
5127 5138
5128 int main() { 5139 int main() {
5129 5140
5130 /* The GNU C library defines this for functions which it implements 5141 /* The GNU C library defines this for functions which it implements
5131 to always fail with ENOSYS. Some functions are actually named 5142 to always fail with ENOSYS. Some functions are actually named
5132 something starting with __ and the normal name is an alias. */ 5143 something starting with __ and the normal name is an alias. */
5133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5134 choke me 5145 choke me
5135 #else 5146 #else
5136 $ac_func(); 5147 f = $ac_func;
5137 #endif 5148 #endif
5138 5149
5139 ; return 0; } 5150 ; return 0; }
5140 EOF 5151 EOF
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5142 rm -rf conftest* 5153 rm -rf conftest*
5143 eval "ac_cv_func_$ac_func=yes" 5154 eval "ac_cv_func_$ac_func=yes"
5144 else 5155 else
5145 echo "configure: failed program was:" >&5 5156 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5 5157 cat conftest.$ac_ext >&5
5166 # Check this now, so that we will NOT find the above functions in ncurses. 5177 # Check this now, so that we will NOT find the above functions in ncurses.
5167 # That is because we have not set up to link ncurses in lib-src. 5178 # That is because we have not set up to link ncurses in lib-src.
5168 # It's better to believe a function is not available 5179 # It's better to believe a function is not available
5169 # than to expect to find it in ncurses. 5180 # than to expect to find it in ncurses.
5170 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5181 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5171 echo "configure:5172: checking for tparm in -lncurses" >&5 5182 echo "configure:5183: checking for tparm in -lncurses" >&5
5172 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5183 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6 5185 echo $ac_n "(cached) $ac_c" 1>&6
5175 else 5186 else
5176 ac_save_LIBS="$LIBS" 5187 ac_save_LIBS="$LIBS"
5177 LIBS="-lncurses $LIBS" 5188 LIBS="-lncurses $LIBS"
5178 cat > conftest.$ac_ext <<EOF 5189 cat > conftest.$ac_ext <<EOF
5179 #line 5180 "configure" 5190 #line 5191 "configure"
5180 #include "confdefs.h" 5191 #include "confdefs.h"
5181 /* Override any gcc2 internal prototype to avoid an error. */ 5192 /* Override any gcc2 internal prototype to avoid an error. */
5182 /* We use char because int might match the return type of a gcc2 5193 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */ 5194 builtin and then its argument prototype would still apply. */
5184 char tparm(); 5195 char tparm();
5185 5196
5186 int main() { 5197 int main() {
5187 tparm() 5198 tparm()
5188 ; return 0; } 5199 ; return 0; }
5189 EOF 5200 EOF
5190 if { (eval echo configure:5191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5201 if { (eval echo configure:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5191 rm -rf conftest* 5202 rm -rf conftest*
5192 eval "ac_cv_lib_$ac_lib_var=yes" 5203 eval "ac_cv_lib_$ac_lib_var=yes"
5193 else 5204 else
5194 echo "configure: failed program was:" >&5 5205 echo "configure: failed program was:" >&5
5195 cat conftest.$ac_ext >&5 5206 cat conftest.$ac_ext >&5
5216 5227
5217 5228
5218 # Solaris requires -lintl if you want strerror (which calls dgettext) 5229 # Solaris requires -lintl if you want strerror (which calls dgettext)
5219 # to return localized messages. 5230 # to return localized messages.
5220 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 5231 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5221 echo "configure:5222: checking for dgettext in -lintl" >&5 5232 echo "configure:5233: checking for dgettext in -lintl" >&5
5222 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 5233 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5224 echo $ac_n "(cached) $ac_c" 1>&6 5235 echo $ac_n "(cached) $ac_c" 1>&6
5225 else 5236 else
5226 ac_save_LIBS="$LIBS" 5237 ac_save_LIBS="$LIBS"
5227 LIBS="-lintl $LIBS" 5238 LIBS="-lintl $LIBS"
5228 cat > conftest.$ac_ext <<EOF 5239 cat > conftest.$ac_ext <<EOF
5229 #line 5230 "configure" 5240 #line 5241 "configure"
5230 #include "confdefs.h" 5241 #include "confdefs.h"
5231 /* Override any gcc2 internal prototype to avoid an error. */ 5242 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2 5243 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */ 5244 builtin and then its argument prototype would still apply. */
5234 char dgettext(); 5245 char dgettext();
5235 5246
5236 int main() { 5247 int main() {
5237 dgettext() 5248 dgettext()
5238 ; return 0; } 5249 ; return 0; }
5239 EOF 5250 EOF
5240 if { (eval echo configure:5241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5251 if { (eval echo configure:5252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5241 rm -rf conftest* 5252 rm -rf conftest*
5242 eval "ac_cv_lib_$ac_lib_var=yes" 5253 eval "ac_cv_lib_$ac_lib_var=yes"
5243 else 5254 else
5244 echo "configure: failed program was:" >&5 5255 echo "configure: failed program was:" >&5
5245 cat conftest.$ac_ext >&5 5256 cat conftest.$ac_ext >&5
5264 echo "$ac_t""no" 1>&6 5275 echo "$ac_t""no" 1>&6
5265 fi 5276 fi
5266 5277
5267 5278
5268 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 5279 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5269 echo "configure:5270: checking whether localtime caches TZ" >&5 5280 echo "configure:5281: checking whether localtime caches TZ" >&5
5270 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 5281 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6 5282 echo $ac_n "(cached) $ac_c" 1>&6
5272 else 5283 else
5273 if test x$ac_cv_func_tzset = xyes; then 5284 if test x$ac_cv_func_tzset = xyes; then
5274 if test "$cross_compiling" = yes; then 5285 if test "$cross_compiling" = yes; then
5275 # If we have tzset, assume the worst when cross-compiling. 5286 # If we have tzset, assume the worst when cross-compiling.
5276 emacs_cv_localtime_cache=yes 5287 emacs_cv_localtime_cache=yes
5277 else 5288 else
5278 cat > conftest.$ac_ext <<EOF 5289 cat > conftest.$ac_ext <<EOF
5279 #line 5280 "configure" 5290 #line 5291 "configure"
5280 #include "confdefs.h" 5291 #include "confdefs.h"
5281 #include <time.h> 5292 #include <time.h>
5282 extern char **environ; 5293 extern char **environ;
5283 unset_TZ () 5294 unset_TZ ()
5284 { 5295 {
5306 if (localtime (&now)->tm_hour != hour_unset) 5317 if (localtime (&now)->tm_hour != hour_unset)
5307 exit (1); 5318 exit (1);
5308 exit (0); 5319 exit (0);
5309 } 5320 }
5310 EOF 5321 EOF
5311 if { (eval echo configure:5312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 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
5312 then 5323 then
5313 emacs_cv_localtime_cache=no 5324 emacs_cv_localtime_cache=no
5314 else 5325 else
5315 echo "configure: failed program was:" >&5 5326 echo "configure: failed program was:" >&5
5316 cat conftest.$ac_ext >&5 5327 cat conftest.$ac_ext >&5
5334 5345
5335 fi 5346 fi
5336 5347
5337 if test "x$HAVE_TIMEVAL" = xyes; then 5348 if test "x$HAVE_TIMEVAL" = xyes; then
5338 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 5349 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5339 echo "configure:5340: checking whether gettimeofday can accept two arguments" >&5 5350 echo "configure:5351: checking whether gettimeofday can accept two arguments" >&5
5340 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 5351 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5341 echo $ac_n "(cached) $ac_c" 1>&6 5352 echo $ac_n "(cached) $ac_c" 1>&6
5342 else 5353 else
5343 cat > conftest.$ac_ext <<EOF 5354 cat > conftest.$ac_ext <<EOF
5344 #line 5345 "configure" 5355 #line 5356 "configure"
5345 #include "confdefs.h" 5356 #include "confdefs.h"
5346 5357
5347 #ifdef TIME_WITH_SYS_TIME 5358 #ifdef TIME_WITH_SYS_TIME
5348 #include <sys/time.h> 5359 #include <sys/time.h>
5349 #include <time.h> 5360 #include <time.h>
5361 struct timezone dummy; 5372 struct timezone dummy;
5362 gettimeofday (&time, &dummy); 5373 gettimeofday (&time, &dummy);
5363 5374
5364 ; return 0; } 5375 ; return 0; }
5365 EOF 5376 EOF
5366 if { (eval echo configure:5367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5367 rm -rf conftest* 5378 rm -rf conftest*
5368 emacs_cv_gettimeofday_two_arguments=yes 5379 emacs_cv_gettimeofday_two_arguments=yes
5369 else 5380 else
5370 echo "configure: failed program was:" >&5 5381 echo "configure: failed program was:" >&5
5371 cat conftest.$ac_ext >&5 5382 cat conftest.$ac_ext >&5
5384 fi 5395 fi
5385 fi 5396 fi
5386 5397
5387 ok_so_far=yes 5398 ok_so_far=yes
5388 echo $ac_n "checking for socket""... $ac_c" 1>&6 5399 echo $ac_n "checking for socket""... $ac_c" 1>&6
5389 echo "configure:5390: checking for socket" >&5 5400 echo "configure:5401: checking for socket" >&5
5390 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 5401 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5391 echo $ac_n "(cached) $ac_c" 1>&6 5402 echo $ac_n "(cached) $ac_c" 1>&6
5392 else 5403 else
5393 cat > conftest.$ac_ext <<EOF 5404 cat > conftest.$ac_ext <<EOF
5394 #line 5395 "configure" 5405 #line 5406 "configure"
5395 #include "confdefs.h" 5406 #include "confdefs.h"
5396 /* System header to define __stub macros and hopefully few prototypes, 5407 /* System header to define __stub macros and hopefully few prototypes,
5397 which can conflict with char socket(); below. */ 5408 which can conflict with char socket(); below. */
5398 #include <assert.h> 5409 #include <assert.h>
5399 /* Override any gcc2 internal prototype to avoid an error. */ 5410 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2 5411 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */ 5412 builtin and then its argument prototype would still apply. */
5402 char socket(); 5413 char socket();
5414 char (*f)();
5403 5415
5404 int main() { 5416 int main() {
5405 5417
5406 /* The GNU C library defines this for functions which it implements 5418 /* The GNU C library defines this for functions which it implements
5407 to always fail with ENOSYS. Some functions are actually named 5419 to always fail with ENOSYS. Some functions are actually named
5408 something starting with __ and the normal name is an alias. */ 5420 something starting with __ and the normal name is an alias. */
5409 #if defined (__stub_socket) || defined (__stub___socket) 5421 #if defined (__stub_socket) || defined (__stub___socket)
5410 choke me 5422 choke me
5411 #else 5423 #else
5412 socket(); 5424 f = socket;
5413 #endif 5425 #endif
5414 5426
5415 ; return 0; } 5427 ; return 0; }
5416 EOF 5428 EOF
5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5429 if { (eval echo configure:5430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5418 rm -rf conftest* 5430 rm -rf conftest*
5419 eval "ac_cv_func_socket=yes" 5431 eval "ac_cv_func_socket=yes"
5420 else 5432 else
5421 echo "configure: failed program was:" >&5 5433 echo "configure: failed program was:" >&5
5422 cat conftest.$ac_ext >&5 5434 cat conftest.$ac_ext >&5
5435 fi 5447 fi
5436 5448
5437 if test $ok_so_far = yes; then 5449 if test $ok_so_far = yes; then
5438 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 5450 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5439 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 5451 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5440 echo "configure:5441: checking for netinet/in.h" >&5 5452 echo "configure:5453: checking for netinet/in.h" >&5
5441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5442 echo $ac_n "(cached) $ac_c" 1>&6 5454 echo $ac_n "(cached) $ac_c" 1>&6
5443 else 5455 else
5444 cat > conftest.$ac_ext <<EOF 5456 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure" 5457 #line 5458 "configure"
5446 #include "confdefs.h" 5458 #include "confdefs.h"
5447 #include <netinet/in.h> 5459 #include <netinet/in.h>
5448 EOF 5460 EOF
5449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5450 { (eval echo configure:5451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5462 { (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5452 if test -z "$ac_err"; then 5464 if test -z "$ac_err"; then
5453 rm -rf conftest* 5465 rm -rf conftest*
5454 eval "ac_cv_header_$ac_safe=yes" 5466 eval "ac_cv_header_$ac_safe=yes"
5455 else 5467 else
5471 5483
5472 fi 5484 fi
5473 if test $ok_so_far = yes; then 5485 if test $ok_so_far = yes; then
5474 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 5486 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5475 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 5487 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5476 echo "configure:5477: checking for arpa/inet.h" >&5 5488 echo "configure:5489: checking for arpa/inet.h" >&5
5477 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5478 echo $ac_n "(cached) $ac_c" 1>&6 5490 echo $ac_n "(cached) $ac_c" 1>&6
5479 else 5491 else
5480 cat > conftest.$ac_ext <<EOF 5492 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure" 5493 #line 5494 "configure"
5482 #include "confdefs.h" 5494 #include "confdefs.h"
5483 #include <arpa/inet.h> 5495 #include <arpa/inet.h>
5484 EOF 5496 EOF
5485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5486 { (eval echo configure:5487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5498 { (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5488 if test -z "$ac_err"; then 5500 if test -z "$ac_err"; then
5489 rm -rf conftest* 5501 rm -rf conftest*
5490 eval "ac_cv_header_$ac_safe=yes" 5502 eval "ac_cv_header_$ac_safe=yes"
5491 else 5503 else
5516 if test -f /usr/lpp/X11/bin/smt.exp; then 5528 if test -f /usr/lpp/X11/bin/smt.exp; then
5517 cat >> confdefs.h <<\EOF 5529 cat >> confdefs.h <<\EOF
5518 #define HAVE_AIX_SMT_EXP 1 5530 #define HAVE_AIX_SMT_EXP 1
5519 EOF 5531 EOF
5520 5532
5533 fi
5534
5535 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
5536 echo "configure:5537: checking whether system supports dynamic ptys" >&5
5537 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
5538 echo "$ac_t""yes" 1>&6
5539 cat >> confdefs.h <<\EOF
5540 #define HAVE_DEV_PTMX 1
5541 EOF
5542
5543 else
5544 echo "$ac_t""no" 1>&6
5521 fi 5545 fi
5522 5546
5523 # Set up the CFLAGS for real compilation, so we can substitute it. 5547 # Set up the CFLAGS for real compilation, so we can substitute it.
5524 CFLAGS="$REAL_CFLAGS" 5548 CFLAGS="$REAL_CFLAGS"
5525 5549