comparison configure @ 25994:c3d45d841091

#
author Dave Love <fx@gnu.org>
date Tue, 12 Oct 1999 17:14:18 +0000
parents 9475708c45eb
children bfa8d94330b6
comparison
equal deleted inserted replaced
25993:2968c272a8e6 25994:c3d45d841091
10 # Defaults: 10 # Defaults:
11 ac_help= 11 ac_help=
12 ac_default_prefix=/usr/local 12 ac_default_prefix=/usr/local
13 # Any additions from configure.in: 13 # Any additions from configure.in:
14 ac_help="$ac_help 14 ac_help="$ac_help
15 --with-gcc use GCC to compile Emacs" 15 --without-gcc don't use GCC to compile Emacs if GCC is found"
16 ac_help="$ac_help 16 ac_help="$ac_help
17 --with-pop support POP for mail retrieval" 17 --without-pop don't support POP mail retrieval with movemail"
18 ac_help="$ac_help 18 ac_help="$ac_help
19 --with-hesiod support Hesiod to get the POP server host" 19 --with-hesiod support Hesiod to get the POP server host"
20 ac_help="$ac_help 20 ac_help="$ac_help
21 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)" 21 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)"
22 ac_help="$ac_help 22 ac_help="$ac_help
28 ac_help="$ac_help 28 ac_help="$ac_help
29 --with-gif use -lungif for displaying GIF images" 29 --with-gif use -lungif for displaying GIF images"
30 ac_help="$ac_help 30 ac_help="$ac_help
31 --with-png use -lpng for displaying PNG images" 31 --with-png use -lpng for displaying PNG images"
32 ac_help="$ac_help 32 ac_help="$ac_help
33 --with-toolkit-scroll-bars use Motif or Xaw3d scroll bars" 33 --without-toolkit-scroll-bars don't use Motif or Xaw3d scroll bars"
34 ac_help="$ac_help 34 ac_help="$ac_help
35 --with-x use the X Window System" 35 --with-x use the X Window System"
36 36
37 # Initialize some variables set by options. 37 # Initialize some variables set by options.
38 # The variables have the same names as the options, with 38 # The variables have the same names as the options, with
560 fi 560 fi
561 561
562 # Check whether --with-pop or --without-pop was given. 562 # Check whether --with-pop or --without-pop was given.
563 if test "${with_pop+set}" = set; then 563 if test "${with_pop+set}" = set; then
564 withval="$with_pop" 564 withval="$with_pop"
565 cat >> confdefs.h <<\EOF 565 if test "$withval" = yes; then
566 cat >> confdefs.h <<\EOF
566 #define MAIL_USE_POP 1 567 #define MAIL_USE_POP 1
567 EOF 568 EOF
568 569
570 else :
571 fi
569 fi 572 fi
570 573
571 # Check whether --with-hesiod or --without-hesiod was given. 574 # Check whether --with-hesiod or --without-hesiod was given.
572 if test "${with_hesiod+set}" = set; then 575 if test "${with_hesiod+set}" = set; then
573 withval="$with_hesiod" 576 withval="$with_hesiod"
703 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 706 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
704 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 707 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
705 fi 708 fi
706 709
707 echo $ac_n "checking host system type""... $ac_c" 1>&6 710 echo $ac_n "checking host system type""... $ac_c" 1>&6
708 echo "configure:709: checking host system type" >&5 711 echo "configure:712: checking host system type" >&5
709 712
710 host_alias=$host 713 host_alias=$host
711 case "$host_alias" in 714 case "$host_alias" in
712 NONE) 715 NONE)
713 case $nonopt in 716 case $nonopt in
1644 "yes" ) CC="gcc" GCC=yes ;; 1647 "yes" ) CC="gcc" GCC=yes ;;
1645 "no" ) : ${CC=cc} ;; 1648 "no" ) : ${CC=cc} ;;
1646 * ) # Extract the first word of "gcc", so it can be a program name with args. 1649 * ) # Extract the first word of "gcc", so it can be a program name with args.
1647 set dummy gcc; ac_word=$2 1650 set dummy gcc; ac_word=$2
1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1649 echo "configure:1650: checking for $ac_word" >&5 1652 echo "configure:1653: checking for $ac_word" >&5
1650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6 1654 echo $ac_n "(cached) $ac_c" 1>&6
1652 else 1655 else
1653 if test -n "$CC"; then 1656 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test. 1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 1677
1675 if test -z "$CC"; then 1678 if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args. 1679 # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2 1680 set dummy cc; ac_word=$2
1678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1679 echo "configure:1680: checking for $ac_word" >&5 1682 echo "configure:1683: checking for $ac_word" >&5
1680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1681 echo $ac_n "(cached) $ac_c" 1>&6 1684 echo $ac_n "(cached) $ac_c" 1>&6
1682 else 1685 else
1683 if test -n "$CC"; then 1686 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test. 1687 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 case "`uname -s`" in 1728 case "`uname -s`" in
1726 *win32* | *WIN32*) 1729 *win32* | *WIN32*)
1727 # Extract the first word of "cl", so it can be a program name with args. 1730 # Extract the first word of "cl", so it can be a program name with args.
1728 set dummy cl; ac_word=$2 1731 set dummy cl; ac_word=$2
1729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1730 echo "configure:1731: checking for $ac_word" >&5 1733 echo "configure:1734: checking for $ac_word" >&5
1731 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6 1735 echo $ac_n "(cached) $ac_c" 1>&6
1733 else 1736 else
1734 if test -n "$CC"; then 1737 if test -n "$CC"; then
1735 ac_cv_prog_CC="$CC" # Let the user override the test. 1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1757 fi 1760 fi
1758 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1761 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1759 fi 1762 fi
1760 1763
1761 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1764 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1762 echo "configure:1763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1765 echo "configure:1766: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1763 1766
1764 ac_ext=c 1767 ac_ext=c
1765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1768 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1766 ac_cpp='$CPP $CPPFLAGS' 1769 ac_cpp='$CPP $CPPFLAGS'
1767 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1770 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1768 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1771 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1769 cross_compiling=$ac_cv_prog_cc_cross 1772 cross_compiling=$ac_cv_prog_cc_cross
1770 1773
1771 cat > conftest.$ac_ext << EOF 1774 cat > conftest.$ac_ext << EOF
1772 1775
1773 #line 1774 "configure" 1776 #line 1777 "configure"
1774 #include "confdefs.h" 1777 #include "confdefs.h"
1775 1778
1776 main(){return(0);} 1779 main(){return(0);}
1777 EOF 1780 EOF
1778 if { (eval echo configure:1779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1779 ac_cv_prog_cc_works=yes 1782 ac_cv_prog_cc_works=yes
1780 # If we can't run a trivial program, we are probably using a cross compiler. 1783 # If we can't run a trivial program, we are probably using a cross compiler.
1781 if (./conftest; exit) 2>/dev/null; then 1784 if (./conftest; exit) 2>/dev/null; then
1782 ac_cv_prog_cc_cross=no 1785 ac_cv_prog_cc_cross=no
1783 else 1786 else
1799 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1802 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1800 if test $ac_cv_prog_cc_works = no; then 1803 if test $ac_cv_prog_cc_works = no; then
1801 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1804 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1802 fi 1805 fi
1803 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1806 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1804 echo "configure:1805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1807 echo "configure:1808: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1805 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1808 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1806 cross_compiling=$ac_cv_prog_cc_cross 1809 cross_compiling=$ac_cv_prog_cc_cross
1807 1810
1808 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1811 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1809 echo "configure:1810: checking whether we are using GNU C" >&5 1812 echo "configure:1813: checking whether we are using GNU C" >&5
1810 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1813 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6 1814 echo $ac_n "(cached) $ac_c" 1>&6
1812 else 1815 else
1813 cat > conftest.c <<EOF 1816 cat > conftest.c <<EOF
1814 #ifdef __GNUC__ 1817 #ifdef __GNUC__
1815 yes; 1818 yes;
1816 #endif 1819 #endif
1817 EOF 1820 EOF
1818 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 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
1819 ac_cv_prog_gcc=yes 1822 ac_cv_prog_gcc=yes
1820 else 1823 else
1821 ac_cv_prog_gcc=no 1824 ac_cv_prog_gcc=no
1822 fi 1825 fi
1823 fi 1826 fi
1832 1835
1833 ac_test_CFLAGS="${CFLAGS+set}" 1836 ac_test_CFLAGS="${CFLAGS+set}"
1834 ac_save_CFLAGS="$CFLAGS" 1837 ac_save_CFLAGS="$CFLAGS"
1835 CFLAGS= 1838 CFLAGS=
1836 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1839 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1837 echo "configure:1838: checking whether ${CC-cc} accepts -g" >&5 1840 echo "configure:1841: checking whether ${CC-cc} accepts -g" >&5
1838 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1841 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6 1842 echo $ac_n "(cached) $ac_c" 1>&6
1840 else 1843 else
1841 echo 'void f(){}' > conftest.c 1844 echo 'void f(){}' > conftest.c
1842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1845 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1912 #### Some other nice autoconf tests. If you add a test here which 1915 #### Some other nice autoconf tests. If you add a test here which
1913 #### should make an entry in src/config.h, don't forget to add an 1916 #### should make an entry in src/config.h, don't forget to add an
1914 #### #undef clause to src/config.h.in for autoconf to modify. 1917 #### #undef clause to src/config.h.in for autoconf to modify.
1915 1918
1916 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1919 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1917 echo "configure:1918: checking whether ln -s works" >&5 1920 echo "configure:1921: checking whether ln -s works" >&5
1918 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1921 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6 1922 echo $ac_n "(cached) $ac_c" 1>&6
1920 else 1923 else
1921 rm -f conftestdata 1924 rm -f conftestdata
1922 if ln -s X conftestdata 2>/dev/null 1925 if ln -s X conftestdata 2>/dev/null
1933 else 1936 else
1934 echo "$ac_t""no" 1>&6 1937 echo "$ac_t""no" 1>&6
1935 fi 1938 fi
1936 1939
1937 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1940 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1938 echo "configure:1939: checking how to run the C preprocessor" >&5 1941 echo "configure:1942: checking how to run the C preprocessor" >&5
1939 # On Suns, sometimes $CPP names a directory. 1942 # On Suns, sometimes $CPP names a directory.
1940 if test -n "$CPP" && test -d "$CPP"; then 1943 if test -n "$CPP" && test -d "$CPP"; then
1941 CPP= 1944 CPP=
1942 fi 1945 fi
1943 if test -z "$CPP"; then 1946 if test -z "$CPP"; then
1948 # substituted into the Makefile and "${CC-cc}" will confuse make. 1951 # substituted into the Makefile and "${CC-cc}" will confuse make.
1949 CPP="${CC-cc} -E" 1952 CPP="${CC-cc} -E"
1950 # On the NeXT, cc -E runs the code through the compiler's parser, 1953 # On the NeXT, cc -E runs the code through the compiler's parser,
1951 # not just through cpp. 1954 # not just through cpp.
1952 cat > conftest.$ac_ext <<EOF 1955 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure" 1956 #line 1957 "configure"
1954 #include "confdefs.h" 1957 #include "confdefs.h"
1955 #include <assert.h> 1958 #include <assert.h>
1956 Syntax Error 1959 Syntax Error
1957 EOF 1960 EOF
1958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1959 { (eval echo configure:1960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1962 { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1961 if test -z "$ac_err"; then 1964 if test -z "$ac_err"; then
1962 : 1965 :
1963 else 1966 else
1964 echo "$ac_err" >&5 1967 echo "$ac_err" >&5
1965 echo "configure: failed program was:" >&5 1968 echo "configure: failed program was:" >&5
1966 cat conftest.$ac_ext >&5 1969 cat conftest.$ac_ext >&5
1967 rm -rf conftest* 1970 rm -rf conftest*
1968 CPP="${CC-cc} -E -traditional-cpp" 1971 CPP="${CC-cc} -E -traditional-cpp"
1969 cat > conftest.$ac_ext <<EOF 1972 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure" 1973 #line 1974 "configure"
1971 #include "confdefs.h" 1974 #include "confdefs.h"
1972 #include <assert.h> 1975 #include <assert.h>
1973 Syntax Error 1976 Syntax Error
1974 EOF 1977 EOF
1975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1976 { (eval echo configure:1977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1979 { (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1978 if test -z "$ac_err"; then 1981 if test -z "$ac_err"; then
1979 : 1982 :
1980 else 1983 else
1981 echo "$ac_err" >&5 1984 echo "$ac_err" >&5
1982 echo "configure: failed program was:" >&5 1985 echo "configure: failed program was:" >&5
1983 cat conftest.$ac_ext >&5 1986 cat conftest.$ac_ext >&5
1984 rm -rf conftest* 1987 rm -rf conftest*
1985 CPP="${CC-cc} -nologo -E" 1988 CPP="${CC-cc} -nologo -E"
1986 cat > conftest.$ac_ext <<EOF 1989 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure" 1990 #line 1991 "configure"
1988 #include "confdefs.h" 1991 #include "confdefs.h"
1989 #include <assert.h> 1992 #include <assert.h>
1990 Syntax Error 1993 Syntax Error
1991 EOF 1994 EOF
1992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1993 { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1996 { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1995 if test -z "$ac_err"; then 1998 if test -z "$ac_err"; then
1996 : 1999 :
1997 else 2000 else
1998 echo "$ac_err" >&5 2001 echo "$ac_err" >&5
2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2027 # ./install, which can be erroneously created by make from ./install.sh. 2030 # ./install, which can be erroneously created by make from ./install.sh.
2028 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2031 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2029 echo "configure:2030: checking for a BSD compatible install" >&5 2032 echo "configure:2033: checking for a BSD compatible install" >&5
2030 if test -z "$INSTALL"; then 2033 if test -z "$INSTALL"; then
2031 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 2034 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6 2035 echo $ac_n "(cached) $ac_c" 1>&6
2033 else 2036 else
2034 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 2037 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2081 for ac_prog in 'bison -y' byacc 2084 for ac_prog in 'bison -y' byacc
2082 do 2085 do
2083 # Extract the first word of "$ac_prog", so it can be a program name with args. 2086 # Extract the first word of "$ac_prog", so it can be a program name with args.
2084 set dummy $ac_prog; ac_word=$2 2087 set dummy $ac_prog; ac_word=$2
2085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2086 echo "configure:2087: checking for $ac_word" >&5 2089 echo "configure:2090: checking for $ac_word" >&5
2087 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 2090 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6 2091 echo $ac_n "(cached) $ac_c" 1>&6
2089 else 2092 else
2090 if test -n "$YACC"; then 2093 if test -n "$YACC"; then
2091 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2094 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2113 done 2116 done
2114 test -n "$YACC" || YACC="yacc" 2117 test -n "$YACC" || YACC="yacc"
2115 2118
2116 2119
2117 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2120 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2118 echo "configure:2119: checking for AIX" >&5 2121 echo "configure:2122: checking for AIX" >&5
2119 cat > conftest.$ac_ext <<EOF 2122 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure" 2123 #line 2124 "configure"
2121 #include "confdefs.h" 2124 #include "confdefs.h"
2122 #ifdef _AIX 2125 #ifdef _AIX
2123 yes 2126 yes
2124 #endif 2127 #endif
2125 2128
2142 # Sound support for GNU/Linux and the free BSDs. 2145 # Sound support for GNU/Linux and the free BSDs.
2143 for ac_hdr in machine/soundcard.h sys/soundcard.h 2146 for ac_hdr in machine/soundcard.h sys/soundcard.h
2144 do 2147 do
2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_hdr" >&5 2150 echo "configure:2151: checking for $ac_hdr" >&5
2148 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6 2152 echo $ac_n "(cached) $ac_c" 1>&6
2150 else 2153 else
2151 cat > conftest.$ac_ext <<EOF 2154 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure" 2155 #line 2156 "configure"
2153 #include "confdefs.h" 2156 #include "confdefs.h"
2154 #include <$ac_hdr> 2157 #include <$ac_hdr>
2155 EOF 2158 EOF
2156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157 { (eval echo configure:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2160 { (eval echo configure:2161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159 if test -z "$ac_err"; then 2162 if test -z "$ac_err"; then
2160 rm -rf conftest* 2163 rm -rf conftest*
2161 eval "ac_cv_header_$ac_safe=yes" 2164 eval "ac_cv_header_$ac_safe=yes"
2162 else 2165 else
2183 2186
2184 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h termcap.h 2187 for ac_hdr in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h termcap.h
2185 do 2188 do
2186 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2187 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2188 echo "configure:2189: checking for $ac_hdr" >&5 2191 echo "configure:2192: checking for $ac_hdr" >&5
2189 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6 2193 echo $ac_n "(cached) $ac_c" 1>&6
2191 else 2194 else
2192 cat > conftest.$ac_ext <<EOF 2195 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure" 2196 #line 2197 "configure"
2194 #include "confdefs.h" 2197 #include "confdefs.h"
2195 #include <$ac_hdr> 2198 #include <$ac_hdr>
2196 EOF 2199 EOF
2197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2201 { (eval echo configure:2202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then 2203 if test -z "$ac_err"; then
2201 rm -rf conftest* 2204 rm -rf conftest*
2202 eval "ac_cv_header_$ac_safe=yes" 2205 eval "ac_cv_header_$ac_safe=yes"
2203 else 2206 else
2220 echo "$ac_t""no" 1>&6 2223 echo "$ac_t""no" 1>&6
2221 fi 2224 fi
2222 done 2225 done
2223 2226
2224 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2227 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2225 echo "configure:2226: checking for ANSI C header files" >&5 2228 echo "configure:2229: checking for ANSI C header files" >&5
2226 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2229 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6 2230 echo $ac_n "(cached) $ac_c" 1>&6
2228 else 2231 else
2229 cat > conftest.$ac_ext <<EOF 2232 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure" 2233 #line 2234 "configure"
2231 #include "confdefs.h" 2234 #include "confdefs.h"
2232 #include <stdlib.h> 2235 #include <stdlib.h>
2233 #include <stdarg.h> 2236 #include <stdarg.h>
2234 #include <string.h> 2237 #include <string.h>
2235 #include <float.h> 2238 #include <float.h>
2236 EOF 2239 EOF
2237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2238 { (eval echo configure:2239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2240 if test -z "$ac_err"; then 2243 if test -z "$ac_err"; then
2241 rm -rf conftest* 2244 rm -rf conftest*
2242 ac_cv_header_stdc=yes 2245 ac_cv_header_stdc=yes
2243 else 2246 else
2250 rm -f conftest* 2253 rm -f conftest*
2251 2254
2252 if test $ac_cv_header_stdc = yes; then 2255 if test $ac_cv_header_stdc = yes; then
2253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2254 cat > conftest.$ac_ext <<EOF 2257 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure" 2258 #line 2259 "configure"
2256 #include "confdefs.h" 2259 #include "confdefs.h"
2257 #include <string.h> 2260 #include <string.h>
2258 EOF 2261 EOF
2259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2260 egrep "memchr" >/dev/null 2>&1; then 2263 egrep "memchr" >/dev/null 2>&1; then
2268 fi 2271 fi
2269 2272
2270 if test $ac_cv_header_stdc = yes; then 2273 if test $ac_cv_header_stdc = yes; then
2271 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2272 cat > conftest.$ac_ext <<EOF 2275 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure" 2276 #line 2277 "configure"
2274 #include "confdefs.h" 2277 #include "confdefs.h"
2275 #include <stdlib.h> 2278 #include <stdlib.h>
2276 EOF 2279 EOF
2277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2278 egrep "free" >/dev/null 2>&1; then 2281 egrep "free" >/dev/null 2>&1; then
2289 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2290 if test "$cross_compiling" = yes; then 2293 if test "$cross_compiling" = yes; then
2291 : 2294 :
2292 else 2295 else
2293 cat > conftest.$ac_ext <<EOF 2296 cat > conftest.$ac_ext <<EOF
2294 #line 2295 "configure" 2297 #line 2298 "configure"
2295 #include "confdefs.h" 2298 #include "confdefs.h"
2296 #include <ctype.h> 2299 #include <ctype.h>
2297 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2300 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2298 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2301 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2299 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2302 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2300 int main () { int i; for (i = 0; i < 256; i++) 2303 int main () { int i; for (i = 0; i < 256; i++)
2301 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2304 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2302 exit (0); } 2305 exit (0); }
2303 2306
2304 EOF 2307 EOF
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2308 if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2306 then 2309 then
2307 : 2310 :
2308 else 2311 else
2309 echo "configure: failed program was:" >&5 2312 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5 2313 cat conftest.$ac_ext >&5
2324 EOF 2327 EOF
2325 2328
2326 fi 2329 fi
2327 2330
2328 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2331 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2329 echo "configure:2330: checking whether time.h and sys/time.h may both be included" >&5 2332 echo "configure:2333: checking whether time.h and sys/time.h may both be included" >&5
2330 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2333 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6 2334 echo $ac_n "(cached) $ac_c" 1>&6
2332 else 2335 else
2333 cat > conftest.$ac_ext <<EOF 2336 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure" 2337 #line 2338 "configure"
2335 #include "confdefs.h" 2338 #include "confdefs.h"
2336 #include <sys/types.h> 2339 #include <sys/types.h>
2337 #include <sys/time.h> 2340 #include <sys/time.h>
2338 #include <time.h> 2341 #include <time.h>
2339 int main() { 2342 int main() {
2340 struct tm *tp; 2343 struct tm *tp;
2341 ; return 0; } 2344 ; return 0; }
2342 EOF 2345 EOF
2343 if { (eval echo configure:2344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2346 if { (eval echo configure:2347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2344 rm -rf conftest* 2347 rm -rf conftest*
2345 ac_cv_header_time=yes 2348 ac_cv_header_time=yes
2346 else 2349 else
2347 echo "configure: failed program was:" >&5 2350 echo "configure: failed program was:" >&5
2348 cat conftest.$ac_ext >&5 2351 cat conftest.$ac_ext >&5
2359 EOF 2362 EOF
2360 2363
2361 fi 2364 fi
2362 2365
2363 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2366 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2364 echo "configure:2365: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2367 echo "configure:2368: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2365 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then 2368 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2366 echo $ac_n "(cached) $ac_c" 1>&6 2369 echo $ac_n "(cached) $ac_c" 1>&6
2367 else 2370 else
2368 cat > conftest.$ac_ext <<EOF 2371 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure" 2372 #line 2373 "configure"
2370 #include "confdefs.h" 2373 #include "confdefs.h"
2371 #include <sys/types.h> 2374 #include <sys/types.h>
2372 #include <signal.h> 2375 #include <signal.h>
2373 /* NetBSD declares sys_siglist in unistd.h. */ 2376 /* NetBSD declares sys_siglist in unistd.h. */
2374 #ifdef HAVE_UNISTD_H 2377 #ifdef HAVE_UNISTD_H
2376 #endif 2379 #endif
2377 int main() { 2380 int main() {
2378 char *msg = *(sys_siglist + 1); 2381 char *msg = *(sys_siglist + 1);
2379 ; return 0; } 2382 ; return 0; }
2380 EOF 2383 EOF
2381 if { (eval echo configure:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2382 rm -rf conftest* 2385 rm -rf conftest*
2383 ac_cv_decl_sys_siglist=yes 2386 ac_cv_decl_sys_siglist=yes
2384 else 2387 else
2385 echo "configure: failed program was:" >&5 2388 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5 2389 cat conftest.$ac_ext >&5
2398 2401
2399 fi 2402 fi
2400 2403
2401 2404
2402 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 2405 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
2403 echo "configure:2404: checking for struct utimbuf" >&5 2406 echo "configure:2407: checking for struct utimbuf" >&5
2404 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then 2407 if eval "test \"`echo '$''{'emacs_cv_struct_utimbuf'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6 2408 echo $ac_n "(cached) $ac_c" 1>&6
2406 else 2409 else
2407 cat > conftest.$ac_ext <<EOF 2410 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure" 2411 #line 2412 "configure"
2409 #include "confdefs.h" 2412 #include "confdefs.h"
2410 #ifdef TIME_WITH_SYS_TIME 2413 #ifdef TIME_WITH_SYS_TIME
2411 #include <sys/time.h> 2414 #include <sys/time.h>
2412 #include <time.h> 2415 #include <time.h>
2413 #else 2416 #else
2422 #endif 2425 #endif
2423 int main() { 2426 int main() {
2424 static struct utimbuf x; x.actime = x.modtime; 2427 static struct utimbuf x; x.actime = x.modtime;
2425 ; return 0; } 2428 ; return 0; }
2426 EOF 2429 EOF
2427 if { (eval echo configure:2428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2430 if { (eval echo configure:2431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2428 rm -rf conftest* 2431 rm -rf conftest*
2429 emacs_cv_struct_utimbuf=yes 2432 emacs_cv_struct_utimbuf=yes
2430 else 2433 else
2431 echo "configure: failed program was:" >&5 2434 echo "configure: failed program was:" >&5
2432 cat conftest.$ac_ext >&5 2435 cat conftest.$ac_ext >&5
2443 EOF 2446 EOF
2444 2447
2445 fi 2448 fi
2446 2449
2447 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2450 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2448 echo "configure:2449: checking return type of signal handlers" >&5 2451 echo "configure:2452: checking return type of signal handlers" >&5
2449 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2452 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6 2453 echo $ac_n "(cached) $ac_c" 1>&6
2451 else 2454 else
2452 cat > conftest.$ac_ext <<EOF 2455 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure" 2456 #line 2457 "configure"
2454 #include "confdefs.h" 2457 #include "confdefs.h"
2455 #include <sys/types.h> 2458 #include <sys/types.h>
2456 #include <signal.h> 2459 #include <signal.h>
2457 #ifdef signal 2460 #ifdef signal
2458 #undef signal 2461 #undef signal
2465 2468
2466 int main() { 2469 int main() {
2467 int i; 2470 int i;
2468 ; return 0; } 2471 ; return 0; }
2469 EOF 2472 EOF
2470 if { (eval echo configure:2471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2473 if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2471 rm -rf conftest* 2474 rm -rf conftest*
2472 ac_cv_type_signal=void 2475 ac_cv_type_signal=void
2473 else 2476 else
2474 echo "configure: failed program was:" >&5 2477 echo "configure: failed program was:" >&5
2475 cat conftest.$ac_ext >&5 2478 cat conftest.$ac_ext >&5
2485 EOF 2488 EOF
2486 2489
2487 2490
2488 2491
2489 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 2492 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
2490 echo "configure:2491: checking for struct timeval" >&5 2493 echo "configure:2494: checking for struct timeval" >&5
2491 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then 2494 if eval "test \"`echo '$''{'emacs_cv_struct_timeval'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6 2495 echo $ac_n "(cached) $ac_c" 1>&6
2493 else 2496 else
2494 cat > conftest.$ac_ext <<EOF 2497 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure" 2498 #line 2499 "configure"
2496 #include "confdefs.h" 2499 #include "confdefs.h"
2497 #ifdef TIME_WITH_SYS_TIME 2500 #ifdef TIME_WITH_SYS_TIME
2498 #include <sys/time.h> 2501 #include <sys/time.h>
2499 #include <time.h> 2502 #include <time.h>
2500 #else 2503 #else
2506 #endif 2509 #endif
2507 int main() { 2510 int main() {
2508 static struct timeval x; x.tv_sec = x.tv_usec; 2511 static struct timeval x; x.tv_sec = x.tv_usec;
2509 ; return 0; } 2512 ; return 0; }
2510 EOF 2513 EOF
2511 if { (eval echo configure:2512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2514 if { (eval echo configure:2515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 rm -rf conftest* 2515 rm -rf conftest*
2513 emacs_cv_struct_timeval=yes 2516 emacs_cv_struct_timeval=yes
2514 else 2517 else
2515 echo "configure: failed program was:" >&5 2518 echo "configure: failed program was:" >&5
2516 cat conftest.$ac_ext >&5 2519 cat conftest.$ac_ext >&5
2528 EOF 2531 EOF
2529 2532
2530 fi 2533 fi
2531 2534
2532 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2535 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2533 echo "configure:2534: checking whether struct tm is in sys/time.h or time.h" >&5 2536 echo "configure:2537: checking whether struct tm is in sys/time.h or time.h" >&5
2534 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2537 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2535 echo $ac_n "(cached) $ac_c" 1>&6 2538 echo $ac_n "(cached) $ac_c" 1>&6
2536 else 2539 else
2537 cat > conftest.$ac_ext <<EOF 2540 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure" 2541 #line 2542 "configure"
2539 #include "confdefs.h" 2542 #include "confdefs.h"
2540 #include <sys/types.h> 2543 #include <sys/types.h>
2541 #include <time.h> 2544 #include <time.h>
2542 int main() { 2545 int main() {
2543 struct tm *tp; tp->tm_sec; 2546 struct tm *tp; tp->tm_sec;
2544 ; return 0; } 2547 ; return 0; }
2545 EOF 2548 EOF
2546 if { (eval echo configure:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2549 if { (eval echo configure:2550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2547 rm -rf conftest* 2550 rm -rf conftest*
2548 ac_cv_struct_tm=time.h 2551 ac_cv_struct_tm=time.h
2549 else 2552 else
2550 echo "configure: failed program was:" >&5 2553 echo "configure: failed program was:" >&5
2551 cat conftest.$ac_ext >&5 2554 cat conftest.$ac_ext >&5
2562 EOF 2565 EOF
2563 2566
2564 fi 2567 fi
2565 2568
2566 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 2569 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2567 echo "configure:2568: checking for tm_zone in struct tm" >&5 2570 echo "configure:2571: checking for tm_zone in struct tm" >&5
2568 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then 2571 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2569 echo $ac_n "(cached) $ac_c" 1>&6 2572 echo $ac_n "(cached) $ac_c" 1>&6
2570 else 2573 else
2571 cat > conftest.$ac_ext <<EOF 2574 cat > conftest.$ac_ext <<EOF
2572 #line 2573 "configure" 2575 #line 2576 "configure"
2573 #include "confdefs.h" 2576 #include "confdefs.h"
2574 #include <sys/types.h> 2577 #include <sys/types.h>
2575 #include <$ac_cv_struct_tm> 2578 #include <$ac_cv_struct_tm>
2576 int main() { 2579 int main() {
2577 struct tm tm; tm.tm_zone; 2580 struct tm tm; tm.tm_zone;
2578 ; return 0; } 2581 ; return 0; }
2579 EOF 2582 EOF
2580 if { (eval echo configure:2581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2583 if { (eval echo configure:2584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2581 rm -rf conftest* 2584 rm -rf conftest*
2582 ac_cv_struct_tm_zone=yes 2585 ac_cv_struct_tm_zone=yes
2583 else 2586 else
2584 echo "configure: failed program was:" >&5 2587 echo "configure: failed program was:" >&5
2585 cat conftest.$ac_ext >&5 2588 cat conftest.$ac_ext >&5
2595 #define HAVE_TM_ZONE 1 2598 #define HAVE_TM_ZONE 1
2596 EOF 2599 EOF
2597 2600
2598 else 2601 else
2599 echo $ac_n "checking for tzname""... $ac_c" 1>&6 2602 echo $ac_n "checking for tzname""... $ac_c" 1>&6
2600 echo "configure:2601: checking for tzname" >&5 2603 echo "configure:2604: checking for tzname" >&5
2601 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then 2604 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2602 echo $ac_n "(cached) $ac_c" 1>&6 2605 echo $ac_n "(cached) $ac_c" 1>&6
2603 else 2606 else
2604 cat > conftest.$ac_ext <<EOF 2607 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure" 2608 #line 2609 "configure"
2606 #include "confdefs.h" 2609 #include "confdefs.h"
2607 #include <time.h> 2610 #include <time.h>
2608 #ifndef tzname /* For SGI. */ 2611 #ifndef tzname /* For SGI. */
2609 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 2612 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
2610 #endif 2613 #endif
2611 int main() { 2614 int main() {
2612 atoi(*tzname); 2615 atoi(*tzname);
2613 ; return 0; } 2616 ; return 0; }
2614 EOF 2617 EOF
2615 if { (eval echo configure:2616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2618 if { (eval echo configure:2619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2616 rm -rf conftest* 2619 rm -rf conftest*
2617 ac_cv_var_tzname=yes 2620 ac_cv_var_tzname=yes
2618 else 2621 else
2619 echo "configure: failed program was:" >&5 2622 echo "configure: failed program was:" >&5
2620 cat conftest.$ac_ext >&5 2623 cat conftest.$ac_ext >&5
2633 fi 2636 fi
2634 fi 2637 fi
2635 2638
2636 2639
2637 echo $ac_n "checking for working const""... $ac_c" 1>&6 2640 echo $ac_n "checking for working const""... $ac_c" 1>&6
2638 echo "configure:2639: checking for working const" >&5 2641 echo "configure:2642: checking for working const" >&5
2639 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2642 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6 2643 echo $ac_n "(cached) $ac_c" 1>&6
2641 else 2644 else
2642 cat > conftest.$ac_ext <<EOF 2645 cat > conftest.$ac_ext <<EOF
2643 #line 2644 "configure" 2646 #line 2647 "configure"
2644 #include "confdefs.h" 2647 #include "confdefs.h"
2645 2648
2646 int main() { 2649 int main() {
2647 2650
2648 /* Ultrix mips cc rejects this. */ 2651 /* Ultrix mips cc rejects this. */
2687 const int foo = 10; 2690 const int foo = 10;
2688 } 2691 }
2689 2692
2690 ; return 0; } 2693 ; return 0; }
2691 EOF 2694 EOF
2692 if { (eval echo configure:2693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2695 if { (eval echo configure:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2693 rm -rf conftest* 2696 rm -rf conftest*
2694 ac_cv_c_const=yes 2697 ac_cv_c_const=yes
2695 else 2698 else
2696 echo "configure: failed program was:" >&5 2699 echo "configure: failed program was:" >&5
2697 cat conftest.$ac_ext >&5 2700 cat conftest.$ac_ext >&5
2709 2712
2710 fi 2713 fi
2711 2714
2712 2715
2713 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2716 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2714 echo "configure:2715: checking whether ${MAKE-make} sets \${MAKE}" >&5 2717 echo "configure:2718: checking whether ${MAKE-make} sets \${MAKE}" >&5
2715 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2718 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2716 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 2719 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6 2720 echo $ac_n "(cached) $ac_c" 1>&6
2718 else 2721 else
2719 cat > conftestmake <<\EOF 2722 cat > conftestmake <<\EOF
2737 SET_MAKE="MAKE=${MAKE-make}" 2740 SET_MAKE="MAKE=${MAKE-make}"
2738 fi 2741 fi
2739 2742
2740 2743
2741 echo $ac_n "checking for long file names""... $ac_c" 1>&6 2744 echo $ac_n "checking for long file names""... $ac_c" 1>&6
2742 echo "configure:2743: checking for long file names" >&5 2745 echo "configure:2746: checking for long file names" >&5
2743 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then 2746 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6 2747 echo $ac_n "(cached) $ac_c" 1>&6
2745 else 2748 else
2746 ac_cv_sys_long_file_names=yes 2749 ac_cv_sys_long_file_names=yes
2747 # Test for long file names in all the places we know might matter: 2750 # Test for long file names in all the places we know might matter:
2788 # If we find X, set shell vars x_includes and x_libraries to the 2791 # If we find X, set shell vars x_includes and x_libraries to the
2789 # paths, otherwise set no_x=yes. 2792 # paths, otherwise set no_x=yes.
2790 # Uses ac_ vars as temps to allow command line to override cache and checks. 2793 # Uses ac_ vars as temps to allow command line to override cache and checks.
2791 # --without-x overrides everything else, but does not touch the cache. 2794 # --without-x overrides everything else, but does not touch the cache.
2792 echo $ac_n "checking for X""... $ac_c" 1>&6 2795 echo $ac_n "checking for X""... $ac_c" 1>&6
2793 echo "configure:2794: checking for X" >&5 2796 echo "configure:2797: checking for X" >&5
2794 2797
2795 # Check whether --with-x or --without-x was given. 2798 # Check whether --with-x or --without-x was given.
2796 if test "${with_x+set}" = set; then 2799 if test "${with_x+set}" = set; then
2797 withval="$with_x" 2800 withval="$with_x"
2798 : 2801 :
2850 # Guess where to find include files, by looking for this one X11 .h file. 2853 # Guess where to find include files, by looking for this one X11 .h file.
2851 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 2854 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2852 2855
2853 # First, try using that file with no special directory specified. 2856 # First, try using that file with no special directory specified.
2854 cat > conftest.$ac_ext <<EOF 2857 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure" 2858 #line 2859 "configure"
2856 #include "confdefs.h" 2859 #include "confdefs.h"
2857 #include <$x_direct_test_include> 2860 #include <$x_direct_test_include>
2858 EOF 2861 EOF
2859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2860 { (eval echo configure:2861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2863 { (eval echo configure:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2862 if test -z "$ac_err"; then 2865 if test -z "$ac_err"; then
2863 rm -rf conftest* 2866 rm -rf conftest*
2864 # We can compile using X headers with no special include directory. 2867 # We can compile using X headers with no special include directory.
2865 ac_x_includes= 2868 ac_x_includes=
2924 # See if we find them without any special options. 2927 # See if we find them without any special options.
2925 # Don't add to $LIBS permanently. 2928 # Don't add to $LIBS permanently.
2926 ac_save_LIBS="$LIBS" 2929 ac_save_LIBS="$LIBS"
2927 LIBS="-l$x_direct_test_library $LIBS" 2930 LIBS="-l$x_direct_test_library $LIBS"
2928 cat > conftest.$ac_ext <<EOF 2931 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure" 2932 #line 2933 "configure"
2930 #include "confdefs.h" 2933 #include "confdefs.h"
2931 2934
2932 int main() { 2935 int main() {
2933 ${x_direct_test_function}() 2936 ${x_direct_test_function}()
2934 ; return 0; } 2937 ; return 0; }
2935 EOF 2938 EOF
2936 if { (eval echo configure:2937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2937 rm -rf conftest* 2940 rm -rf conftest*
2938 LIBS="$ac_save_LIBS" 2941 LIBS="$ac_save_LIBS"
2939 # We can link X programs with no special library path. 2942 # We can link X programs with no special library path.
2940 ac_x_libraries= 2943 ac_x_libraries=
2941 else 2944 else
3105 #### Extract some information from the operating system and machine files. 3108 #### Extract some information from the operating system and machine files.
3106 3109
3107 echo "checking the machine- and system-dependent files to find out 3110 echo "checking the machine- and system-dependent files to find out
3108 - which libraries the lib-src programs will want, and 3111 - which libraries the lib-src programs will want, and
3109 - whether the GNU malloc routines are usable" 1>&6 3112 - whether the GNU malloc routines are usable" 1>&6
3110 echo "configure:3111: checking the machine- and system-dependent files to find out 3113 echo "configure:3114: checking the machine- and system-dependent files to find out
3111 - which libraries the lib-src programs will want, and 3114 - which libraries the lib-src programs will want, and
3112 - whether the GNU malloc routines are usable" >&5 3115 - whether the GNU malloc routines are usable" >&5
3113 3116
3114 ### First figure out CFLAGS (which we use for running the compiler here) 3117 ### First figure out CFLAGS (which we use for running the compiler here)
3115 ### and REAL_CFLAGS (which we use for real compilation). 3118 ### and REAL_CFLAGS (which we use for real compilation).
3235 # Do the opsystem or machine files prohibit the use of the GNU malloc? 3238 # Do the opsystem or machine files prohibit the use of the GNU malloc?
3236 # Assume not, until told otherwise. 3239 # Assume not, until told otherwise.
3237 GNU_MALLOC=yes 3240 GNU_MALLOC=yes
3238 doug_lea_malloc=yes 3241 doug_lea_malloc=yes
3239 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 3242 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
3240 echo "configure:3241: checking for malloc_get_state" >&5 3243 echo "configure:3244: checking for malloc_get_state" >&5
3241 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then 3244 if eval "test \"`echo '$''{'ac_cv_func_malloc_get_state'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6 3245 echo $ac_n "(cached) $ac_c" 1>&6
3243 else 3246 else
3244 cat > conftest.$ac_ext <<EOF 3247 cat > conftest.$ac_ext <<EOF
3245 #line 3246 "configure" 3248 #line 3249 "configure"
3246 #include "confdefs.h" 3249 #include "confdefs.h"
3247 /* System header to define __stub macros and hopefully few prototypes, 3250 /* System header to define __stub macros and hopefully few prototypes,
3248 which can conflict with char malloc_get_state(); below. */ 3251 which can conflict with char malloc_get_state(); below. */
3249 #include <assert.h> 3252 #include <assert.h>
3250 /* Override any gcc2 internal prototype to avoid an error. */ 3253 /* Override any gcc2 internal prototype to avoid an error. */
3263 malloc_get_state(); 3266 malloc_get_state();
3264 #endif 3267 #endif
3265 3268
3266 ; return 0; } 3269 ; return 0; }
3267 EOF 3270 EOF
3268 if { (eval echo configure:3269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3271 if { (eval echo configure:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3269 rm -rf conftest* 3272 rm -rf conftest*
3270 eval "ac_cv_func_malloc_get_state=yes" 3273 eval "ac_cv_func_malloc_get_state=yes"
3271 else 3274 else
3272 echo "configure: failed program was:" >&5 3275 echo "configure: failed program was:" >&5
3273 cat conftest.$ac_ext >&5 3276 cat conftest.$ac_ext >&5
3284 echo "$ac_t""no" 1>&6 3287 echo "$ac_t""no" 1>&6
3285 doug_lea_malloc=no 3288 doug_lea_malloc=no
3286 fi 3289 fi
3287 3290
3288 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3291 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3289 echo "configure:3290: checking for malloc_set_state" >&5 3292 echo "configure:3293: checking for malloc_set_state" >&5
3290 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then 3293 if eval "test \"`echo '$''{'ac_cv_func_malloc_set_state'+set}'`\" = set"; then
3291 echo $ac_n "(cached) $ac_c" 1>&6 3294 echo $ac_n "(cached) $ac_c" 1>&6
3292 else 3295 else
3293 cat > conftest.$ac_ext <<EOF 3296 cat > conftest.$ac_ext <<EOF
3294 #line 3295 "configure" 3297 #line 3298 "configure"
3295 #include "confdefs.h" 3298 #include "confdefs.h"
3296 /* System header to define __stub macros and hopefully few prototypes, 3299 /* System header to define __stub macros and hopefully few prototypes,
3297 which can conflict with char malloc_set_state(); below. */ 3300 which can conflict with char malloc_set_state(); below. */
3298 #include <assert.h> 3301 #include <assert.h>
3299 /* Override any gcc2 internal prototype to avoid an error. */ 3302 /* Override any gcc2 internal prototype to avoid an error. */
3312 malloc_set_state(); 3315 malloc_set_state();
3313 #endif 3316 #endif
3314 3317
3315 ; return 0; } 3318 ; return 0; }
3316 EOF 3319 EOF
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 rm -rf conftest* 3321 rm -rf conftest*
3319 eval "ac_cv_func_malloc_set_state=yes" 3322 eval "ac_cv_func_malloc_set_state=yes"
3320 else 3323 else
3321 echo "configure: failed program was:" >&5 3324 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5 3325 cat conftest.$ac_ext >&5
3333 echo "$ac_t""no" 1>&6 3336 echo "$ac_t""no" 1>&6
3334 doug_lea_malloc=no 3337 doug_lea_malloc=no
3335 fi 3338 fi
3336 3339
3337 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3340 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3338 echo "configure:3339: checking whether __after_morecore_hook exists" >&5 3341 echo "configure:3342: checking whether __after_morecore_hook exists" >&5
3339 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then 3342 if eval "test \"`echo '$''{'emacs_cv_var___after_morecore_hook'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6 3343 echo $ac_n "(cached) $ac_c" 1>&6
3341 else 3344 else
3342 cat > conftest.$ac_ext <<EOF 3345 cat > conftest.$ac_ext <<EOF
3343 #line 3344 "configure" 3346 #line 3347 "configure"
3344 #include "confdefs.h" 3347 #include "confdefs.h"
3345 extern void (* __after_morecore_hook)(); 3348 extern void (* __after_morecore_hook)();
3346 int main() { 3349 int main() {
3347 __after_morecore_hook = 0 3350 __after_morecore_hook = 0
3348 ; return 0; } 3351 ; return 0; }
3349 EOF 3352 EOF
3350 if { (eval echo configure:3351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3353 if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3351 rm -rf conftest* 3354 rm -rf conftest*
3352 emacs_cv_var___after_morecore_hook=yes 3355 emacs_cv_var___after_morecore_hook=yes
3353 else 3356 else
3354 echo "configure: failed program was:" >&5 3357 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5 3358 cat conftest.$ac_ext >&5
3395 fi 3398 fi
3396 3399
3397 LIBS="$libsrc_libs $LIBS" 3400 LIBS="$libsrc_libs $LIBS"
3398 3401
3399 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 3402 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3400 echo "configure:3401: checking for dnet_ntoa in -ldnet" >&5 3403 echo "configure:3404: checking for dnet_ntoa in -ldnet" >&5
3401 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3404 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6 3406 echo $ac_n "(cached) $ac_c" 1>&6
3404 else 3407 else
3405 ac_save_LIBS="$LIBS" 3408 ac_save_LIBS="$LIBS"
3406 LIBS="-ldnet $LIBS" 3409 LIBS="-ldnet $LIBS"
3407 cat > conftest.$ac_ext <<EOF 3410 cat > conftest.$ac_ext <<EOF
3408 #line 3409 "configure" 3411 #line 3412 "configure"
3409 #include "confdefs.h" 3412 #include "confdefs.h"
3410 /* Override any gcc2 internal prototype to avoid an error. */ 3413 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2 3414 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */ 3415 builtin and then its argument prototype would still apply. */
3413 char dnet_ntoa(); 3416 char dnet_ntoa();
3414 3417
3415 int main() { 3418 int main() {
3416 dnet_ntoa() 3419 dnet_ntoa()
3417 ; return 0; } 3420 ; return 0; }
3418 EOF 3421 EOF
3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3422 if { (eval echo configure:3423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3420 rm -rf conftest* 3423 rm -rf conftest*
3421 eval "ac_cv_lib_$ac_lib_var=yes" 3424 eval "ac_cv_lib_$ac_lib_var=yes"
3422 else 3425 else
3423 echo "configure: failed program was:" >&5 3426 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5 3427 cat conftest.$ac_ext >&5
3443 echo "$ac_t""no" 1>&6 3446 echo "$ac_t""no" 1>&6
3444 fi 3447 fi
3445 3448
3446 3449
3447 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 3450 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
3448 echo "configure:3449: checking for main in -lXbsd" >&5 3451 echo "configure:3452: checking for main in -lXbsd" >&5
3449 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 3452 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
3450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3453 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6 3454 echo $ac_n "(cached) $ac_c" 1>&6
3452 else 3455 else
3453 ac_save_LIBS="$LIBS" 3456 ac_save_LIBS="$LIBS"
3454 LIBS="-lXbsd $LIBS" 3457 LIBS="-lXbsd $LIBS"
3455 cat > conftest.$ac_ext <<EOF 3458 cat > conftest.$ac_ext <<EOF
3456 #line 3457 "configure" 3459 #line 3460 "configure"
3457 #include "confdefs.h" 3460 #include "confdefs.h"
3458 3461
3459 int main() { 3462 int main() {
3460 main() 3463 main()
3461 ; return 0; } 3464 ; return 0; }
3462 EOF 3465 EOF
3463 if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3464 rm -rf conftest* 3467 rm -rf conftest*
3465 eval "ac_cv_lib_$ac_lib_var=yes" 3468 eval "ac_cv_lib_$ac_lib_var=yes"
3466 else 3469 else
3467 echo "configure: failed program was:" >&5 3470 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5 3471 cat conftest.$ac_ext >&5
3480 echo "$ac_t""no" 1>&6 3483 echo "$ac_t""no" 1>&6
3481 fi 3484 fi
3482 3485
3483 3486
3484 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 3487 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
3485 echo "configure:3486: checking for cma_open in -lpthreads" >&5 3488 echo "configure:3489: checking for cma_open in -lpthreads" >&5
3486 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 3489 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
3487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6 3491 echo $ac_n "(cached) $ac_c" 1>&6
3489 else 3492 else
3490 ac_save_LIBS="$LIBS" 3493 ac_save_LIBS="$LIBS"
3491 LIBS="-lpthreads $LIBS" 3494 LIBS="-lpthreads $LIBS"
3492 cat > conftest.$ac_ext <<EOF 3495 cat > conftest.$ac_ext <<EOF
3493 #line 3494 "configure" 3496 #line 3497 "configure"
3494 #include "confdefs.h" 3497 #include "confdefs.h"
3495 /* Override any gcc2 internal prototype to avoid an error. */ 3498 /* Override any gcc2 internal prototype to avoid an error. */
3496 /* We use char because int might match the return type of a gcc2 3499 /* We use char because int might match the return type of a gcc2
3497 builtin and then its argument prototype would still apply. */ 3500 builtin and then its argument prototype would still apply. */
3498 char cma_open(); 3501 char cma_open();
3499 3502
3500 int main() { 3503 int main() {
3501 cma_open() 3504 cma_open()
3502 ; return 0; } 3505 ; return 0; }
3503 EOF 3506 EOF
3504 if { (eval echo configure:3505: \"$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
3505 rm -rf conftest* 3508 rm -rf conftest*
3506 eval "ac_cv_lib_$ac_lib_var=yes" 3509 eval "ac_cv_lib_$ac_lib_var=yes"
3507 else 3510 else
3508 echo "configure: failed program was:" >&5 3511 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5 3512 cat conftest.$ac_ext >&5
3528 echo "$ac_t""no" 1>&6 3531 echo "$ac_t""no" 1>&6
3529 fi 3532 fi
3530 3533
3531 3534
3532 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6 3535 echo $ac_n "checking for XFree86 in /usr/X386""... $ac_c" 1>&6
3533 echo "configure:3534: checking for XFree86 in /usr/X386" >&5 3536 echo "configure:3537: checking for XFree86 in /usr/X386" >&5
3534 if test -d /usr/X386/include; then 3537 if test -d /usr/X386/include; then
3535 HAVE_XFREE386=yes 3538 HAVE_XFREE386=yes
3536 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} 3539 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
3537 else 3540 else
3538 HAVE_XFREE386=no 3541 HAVE_XFREE386=no
3557 export LD_RUN_PATH 3560 export LD_RUN_PATH
3558 fi 3561 fi
3559 3562
3560 if test "${opsys}" = "gnu-linux"; then 3563 if test "${opsys}" = "gnu-linux"; then
3561 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6 3564 echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
3562 echo "configure:3563: checking whether X on GNU/Linux needs -b to link" >&5 3565 echo "configure:3566: checking whether X on GNU/Linux needs -b to link" >&5
3563 cat > conftest.$ac_ext <<EOF 3566 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure" 3567 #line 3568 "configure"
3565 #include "confdefs.h" 3568 #include "confdefs.h"
3566 3569
3567 int main() { 3570 int main() {
3568 XOpenDisplay ("foo"); 3571 XOpenDisplay ("foo");
3569 ; return 0; } 3572 ; return 0; }
3570 EOF 3573 EOF
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3574 if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3572 rm -rf conftest* 3575 rm -rf conftest*
3573 xlinux_first_failure=no 3576 xlinux_first_failure=no
3574 else 3577 else
3575 echo "configure: failed program was:" >&5 3578 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5 3579 cat conftest.$ac_ext >&5
3586 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 3589 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
3587 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 3590 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
3588 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 3591 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
3589 LIBS="$LIBS -b i486-linuxaout" 3592 LIBS="$LIBS -b i486-linuxaout"
3590 cat > conftest.$ac_ext <<EOF 3593 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure" 3594 #line 3595 "configure"
3592 #include "confdefs.h" 3595 #include "confdefs.h"
3593 3596
3594 int main() { 3597 int main() {
3595 XOpenDisplay ("foo"); 3598 XOpenDisplay ("foo");
3596 ; return 0; } 3599 ; return 0; }
3597 EOF 3600 EOF
3598 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3599 rm -rf conftest* 3602 rm -rf conftest*
3600 xlinux_second_failure=no 3603 xlinux_second_failure=no
3601 else 3604 else
3602 echo "configure: failed program was:" >&5 3605 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5 3606 cat conftest.$ac_ext >&5
3623 3626
3624 for ac_func in XrmSetDatabase XScreenResourceString \ 3627 for ac_func in XrmSetDatabase XScreenResourceString \
3625 XScreenNumberOfScreen XSetWMProtocols 3628 XScreenNumberOfScreen XSetWMProtocols
3626 do 3629 do
3627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3630 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3628 echo "configure:3629: checking for $ac_func" >&5 3631 echo "configure:3632: checking for $ac_func" >&5
3629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3632 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3630 echo $ac_n "(cached) $ac_c" 1>&6 3633 echo $ac_n "(cached) $ac_c" 1>&6
3631 else 3634 else
3632 cat > conftest.$ac_ext <<EOF 3635 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure" 3636 #line 3637 "configure"
3634 #include "confdefs.h" 3637 #include "confdefs.h"
3635 /* System header to define __stub macros and hopefully few prototypes, 3638 /* System header to define __stub macros and hopefully few prototypes,
3636 which can conflict with char $ac_func(); below. */ 3639 which can conflict with char $ac_func(); below. */
3637 #include <assert.h> 3640 #include <assert.h>
3638 /* Override any gcc2 internal prototype to avoid an error. */ 3641 /* Override any gcc2 internal prototype to avoid an error. */
3651 $ac_func(); 3654 $ac_func();
3652 #endif 3655 #endif
3653 3656
3654 ; return 0; } 3657 ; return 0; }
3655 EOF 3658 EOF
3656 if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3657 rm -rf conftest* 3660 rm -rf conftest*
3658 eval "ac_cv_func_$ac_func=yes" 3661 eval "ac_cv_func_$ac_func=yes"
3659 else 3662 else
3660 echo "configure: failed program was:" >&5 3663 echo "configure: failed program was:" >&5
3661 cat conftest.$ac_ext >&5 3664 cat conftest.$ac_ext >&5
3679 3682
3680 fi 3683 fi
3681 3684
3682 if test "${window_system}" = "x11"; then 3685 if test "${window_system}" = "x11"; then
3683 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 3686 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6
3684 echo "configure:3685: checking X11 version 6" >&5 3687 echo "configure:3688: checking X11 version 6" >&5
3685 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then 3688 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6 3689 echo $ac_n "(cached) $ac_c" 1>&6
3687 else 3690 else
3688 cat > conftest.$ac_ext <<EOF 3691 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure" 3692 #line 3693 "configure"
3690 #include "confdefs.h" 3693 #include "confdefs.h"
3691 #include <X11/Xlib.h> 3694 #include <X11/Xlib.h>
3692 int main() { 3695 int main() {
3693 #if XlibSpecificationRelease < 6 3696 #if XlibSpecificationRelease < 6
3694 fail; 3697 fail;
3695 #endif 3698 #endif
3696 3699
3697 ; return 0; } 3700 ; return 0; }
3698 EOF 3701 EOF
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3702 if { (eval echo configure:3703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3700 rm -rf conftest* 3703 rm -rf conftest*
3701 emacs_cv_x11_version_6=yes 3704 emacs_cv_x11_version_6=yes
3702 else 3705 else
3703 echo "configure: failed program was:" >&5 3706 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5 3707 cat conftest.$ac_ext >&5
3719 fi 3722 fi
3720 fi 3723 fi
3721 3724
3722 if test "${window_system}" = "x11"; then 3725 if test "${window_system}" = "x11"; then
3723 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 3726 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6
3724 echo "configure:3725: checking X11 version 5" >&5 3727 echo "configure:3728: checking X11 version 5" >&5
3725 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then 3728 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6 3729 echo $ac_n "(cached) $ac_c" 1>&6
3727 else 3730 else
3728 cat > conftest.$ac_ext <<EOF 3731 cat > conftest.$ac_ext <<EOF
3729 #line 3730 "configure" 3732 #line 3733 "configure"
3730 #include "confdefs.h" 3733 #include "confdefs.h"
3731 #include <X11/Xlib.h> 3734 #include <X11/Xlib.h>
3732 int main() { 3735 int main() {
3733 #if XlibSpecificationRelease < 5 3736 #if XlibSpecificationRelease < 5
3734 fail; 3737 fail;
3735 #endif 3738 #endif
3736 3739
3737 ; return 0; } 3740 ; return 0; }
3738 EOF 3741 EOF
3739 if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 rm -rf conftest* 3743 rm -rf conftest*
3741 emacs_cv_x11_version_5=yes 3744 emacs_cv_x11_version_5=yes
3742 else 3745 else
3743 echo "configure: failed program was:" >&5 3746 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5 3747 cat conftest.$ac_ext >&5
3762 fi 3765 fi
3763 3766
3764 if test x"${USE_X_TOOLKIT}" = xmaybe; then 3767 if test x"${USE_X_TOOLKIT}" = xmaybe; then
3765 if test x"${HAVE_X11R5}" = xyes; then 3768 if test x"${HAVE_X11R5}" = xyes; then
3766 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 3769 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6
3767 echo "configure:3768: checking X11 version 5 with Xaw" >&5 3770 echo "configure:3771: checking X11 version 5 with Xaw" >&5
3768 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then 3771 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6 3772 echo $ac_n "(cached) $ac_c" 1>&6
3770 else 3773 else
3771 cat > conftest.$ac_ext <<EOF 3774 cat > conftest.$ac_ext <<EOF
3772 #line 3773 "configure" 3775 #line 3776 "configure"
3773 #include "confdefs.h" 3776 #include "confdefs.h"
3774 3777
3775 #include <X11/Intrinsic.h> 3778 #include <X11/Intrinsic.h>
3776 #include <X11/Xaw/Simple.h> 3779 #include <X11/Xaw/Simple.h>
3777 int main() { 3780 int main() {
3778 3781
3779 ; return 0; } 3782 ; return 0; }
3780 EOF 3783 EOF
3781 if { (eval echo configure:3782: \"$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
3782 rm -rf conftest* 3785 rm -rf conftest*
3783 emacs_cv_x11_version_5_with_xaw=yes 3786 emacs_cv_x11_version_5_with_xaw=yes
3784 else 3787 else
3785 echo "configure: failed program was:" >&5 3788 echo "configure: failed program was:" >&5
3786 cat conftest.$ac_ext >&5 3789 cat conftest.$ac_ext >&5
3804 3807
3805 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 3808 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
3806 3809
3807 if test "${USE_X_TOOLKIT}" != "none"; then 3810 if test "${USE_X_TOOLKIT}" != "none"; then
3808 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 3811 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6
3809 echo "configure:3810: checking X11 toolkit version" >&5 3812 echo "configure:3813: checking X11 toolkit version" >&5
3810 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then 3813 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6 3814 echo $ac_n "(cached) $ac_c" 1>&6
3812 else 3815 else
3813 cat > conftest.$ac_ext <<EOF 3816 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure" 3817 #line 3818 "configure"
3815 #include "confdefs.h" 3818 #include "confdefs.h"
3816 #include <X11/Intrinsic.h> 3819 #include <X11/Intrinsic.h>
3817 int main() { 3820 int main() {
3818 #if XtSpecificationRelease < 6 3821 #if XtSpecificationRelease < 6
3819 fail; 3822 fail;
3820 #endif 3823 #endif
3821 3824
3822 ; return 0; } 3825 ; return 0; }
3823 EOF 3826 EOF
3824 if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3825 rm -rf conftest* 3828 rm -rf conftest*
3826 emacs_cv_x11_toolkit_version_6=yes 3829 emacs_cv_x11_toolkit_version_6=yes
3827 else 3830 else
3828 echo "configure: failed program was:" >&5 3831 echo "configure: failed program was:" >&5
3829 cat conftest.$ac_ext >&5 3832 cat conftest.$ac_ext >&5
3849 LIBS="-lXt -lSM -lICE $LIBS" 3852 LIBS="-lXt -lSM -lICE $LIBS"
3850 else 3853 else
3851 LIBS="-lXt $LIBS" 3854 LIBS="-lXt $LIBS"
3852 fi 3855 fi
3853 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 3856 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6
3854 echo "configure:3855: checking for XmuConvertStandardSelection in -lXmu" >&5 3857 echo "configure:3858: checking for XmuConvertStandardSelection in -lXmu" >&5
3855 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` 3858 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'`
3856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6 3860 echo $ac_n "(cached) $ac_c" 1>&6
3858 else 3861 else
3859 ac_save_LIBS="$LIBS" 3862 ac_save_LIBS="$LIBS"
3860 LIBS="-lXmu $LIBS" 3863 LIBS="-lXmu $LIBS"
3861 cat > conftest.$ac_ext <<EOF 3864 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure" 3865 #line 3866 "configure"
3863 #include "confdefs.h" 3866 #include "confdefs.h"
3864 /* Override any gcc2 internal prototype to avoid an error. */ 3867 /* Override any gcc2 internal prototype to avoid an error. */
3865 /* We use char because int might match the return type of a gcc2 3868 /* We use char because int might match the return type of a gcc2
3866 builtin and then its argument prototype would still apply. */ 3869 builtin and then its argument prototype would still apply. */
3867 char XmuConvertStandardSelection(); 3870 char XmuConvertStandardSelection();
3868 3871
3869 int main() { 3872 int main() {
3870 XmuConvertStandardSelection() 3873 XmuConvertStandardSelection()
3871 ; return 0; } 3874 ; return 0; }
3872 EOF 3875 EOF
3873 if { (eval echo configure:3874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3876 if { (eval echo configure:3877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3874 rm -rf conftest* 3877 rm -rf conftest*
3875 eval "ac_cv_lib_$ac_lib_var=yes" 3878 eval "ac_cv_lib_$ac_lib_var=yes"
3876 else 3879 else
3877 echo "configure: failed program was:" >&5 3880 echo "configure: failed program was:" >&5
3878 cat conftest.$ac_ext >&5 3881 cat conftest.$ac_ext >&5
3900 LIBS="$OLDLIBS" 3903 LIBS="$OLDLIBS"
3901 fi 3904 fi
3902 3905
3903 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 3906 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
3904 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 3907 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6
3905 echo "configure:3906: checking for Motif version 2.1" >&5 3908 echo "configure:3909: checking for Motif version 2.1" >&5
3906 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then 3909 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6 3910 echo $ac_n "(cached) $ac_c" 1>&6
3908 else 3911 else
3909 cat > conftest.$ac_ext <<EOF 3912 cat > conftest.$ac_ext <<EOF
3910 #line 3911 "configure" 3913 #line 3914 "configure"
3911 #include "confdefs.h" 3914 #include "confdefs.h"
3912 #include <Xm/Xm.h> 3915 #include <Xm/Xm.h>
3913 int main() { 3916 int main() {
3914 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) 3917 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
3915 int x = 5; 3918 int x = 5;
3916 #else 3919 #else
3917 Motif version prior to 2.1. 3920 Motif version prior to 2.1.
3918 #endif 3921 #endif
3919 ; return 0; } 3922 ; return 0; }
3920 EOF 3923 EOF
3921 if { (eval echo configure:3922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3922 rm -rf conftest* 3925 rm -rf conftest*
3923 emacs_cv_motif_version_2_1=yes 3926 emacs_cv_motif_version_2_1=yes
3924 else 3927 else
3925 echo "configure: failed program was:" >&5 3928 echo "configure: failed program was:" >&5
3926 cat conftest.$ac_ext >&5 3929 cat conftest.$ac_ext >&5
3936 cat >> confdefs.h <<\EOF 3939 cat >> confdefs.h <<\EOF
3937 #define HAVE_MOTIF_2_1 1 3940 #define HAVE_MOTIF_2_1 1
3938 EOF 3941 EOF
3939 3942
3940 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 3943 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6
3941 echo "configure:3942: checking for XpCreateContext in -lXp" >&5 3944 echo "configure:3945: checking for XpCreateContext in -lXp" >&5
3942 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` 3945 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'`
3943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6 3947 echo $ac_n "(cached) $ac_c" 1>&6
3945 else 3948 else
3946 ac_save_LIBS="$LIBS" 3949 ac_save_LIBS="$LIBS"
3947 LIBS="-lXp $LIBS" 3950 LIBS="-lXp $LIBS"
3948 cat > conftest.$ac_ext <<EOF 3951 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure" 3952 #line 3953 "configure"
3950 #include "confdefs.h" 3953 #include "confdefs.h"
3951 /* Override any gcc2 internal prototype to avoid an error. */ 3954 /* Override any gcc2 internal prototype to avoid an error. */
3952 /* We use char because int might match the return type of a gcc2 3955 /* We use char because int might match the return type of a gcc2
3953 builtin and then its argument prototype would still apply. */ 3956 builtin and then its argument prototype would still apply. */
3954 char XpCreateContext(); 3957 char XpCreateContext();
3955 3958
3956 int main() { 3959 int main() {
3957 XpCreateContext() 3960 XpCreateContext()
3958 ; return 0; } 3961 ; return 0; }
3959 EOF 3962 EOF
3960 if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3961 rm -rf conftest* 3964 rm -rf conftest*
3962 eval "ac_cv_lib_$ac_lib_var=yes" 3965 eval "ac_cv_lib_$ac_lib_var=yes"
3963 else 3966 else
3964 echo "configure: failed program was:" >&5 3967 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5 3968 cat conftest.$ac_ext >&5
3993 if test "${USE_X_TOOLKIT}" != "none"; then 3996 if test "${USE_X_TOOLKIT}" != "none"; then
3994 old_c_flags="${CFLAGS}" 3997 old_c_flags="${CFLAGS}"
3995 CFLAGS="${LD_SWITCH_X_SITE}" 3998 CFLAGS="${LD_SWITCH_X_SITE}"
3996 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` 3999 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'`
3997 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 4000 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6
3998 echo "configure:3999: checking for X11/Xaw3d/Scrollbar.h" >&5 4001 echo "configure:4002: checking for X11/Xaw3d/Scrollbar.h" >&5
3999 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6 4003 echo $ac_n "(cached) $ac_c" 1>&6
4001 else 4004 else
4002 cat > conftest.$ac_ext <<EOF 4005 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure" 4006 #line 4007 "configure"
4004 #include "confdefs.h" 4007 #include "confdefs.h"
4005 #include <X11/Xaw3d/Scrollbar.h> 4008 #include <X11/Xaw3d/Scrollbar.h>
4006 EOF 4009 EOF
4007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4008 { (eval echo configure:4009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4011 { (eval echo configure:4012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4010 if test -z "$ac_err"; then 4013 if test -z "$ac_err"; then
4011 rm -rf conftest* 4014 rm -rf conftest*
4012 eval "ac_cv_header_$ac_safe=yes" 4015 eval "ac_cv_header_$ac_safe=yes"
4013 else 4016 else
4020 rm -f conftest* 4023 rm -f conftest*
4021 fi 4024 fi
4022 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4025 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4023 echo "$ac_t""yes" 1>&6 4026 echo "$ac_t""yes" 1>&6
4024 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 4027 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6
4025 echo "configure:4026: checking for XawScrollbarSetThumb in -lXaw3d" >&5 4028 echo "configure:4029: checking for XawScrollbarSetThumb in -lXaw3d" >&5
4026 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 4029 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
4027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4030 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6 4031 echo $ac_n "(cached) $ac_c" 1>&6
4029 else 4032 else
4030 ac_save_LIBS="$LIBS" 4033 ac_save_LIBS="$LIBS"
4031 LIBS="-lXaw3d -lX11 $LIBS" 4034 LIBS="-lXaw3d -lX11 $LIBS"
4032 cat > conftest.$ac_ext <<EOF 4035 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure" 4036 #line 4037 "configure"
4034 #include "confdefs.h" 4037 #include "confdefs.h"
4035 /* Override any gcc2 internal prototype to avoid an error. */ 4038 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2 4039 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */ 4040 builtin and then its argument prototype would still apply. */
4038 char XawScrollbarSetThumb(); 4041 char XawScrollbarSetThumb();
4039 4042
4040 int main() { 4043 int main() {
4041 XawScrollbarSetThumb() 4044 XawScrollbarSetThumb()
4042 ; return 0; } 4045 ; return 0; }
4043 EOF 4046 EOF
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4047 if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4045 rm -rf conftest* 4048 rm -rf conftest*
4046 eval "ac_cv_lib_$ac_lib_var=yes" 4049 eval "ac_cv_lib_$ac_lib_var=yes"
4047 else 4050 else
4048 echo "configure: failed program was:" >&5 4051 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5 4052 cat conftest.$ac_ext >&5
4103 if test "${with_xpm}" != "no"; then 4106 if test "${with_xpm}" != "no"; then
4104 old_c_flags="${CFLAGS}" 4107 old_c_flags="${CFLAGS}"
4105 CFLAGS="${LD_SWITCH_X_SITE}" 4108 CFLAGS="${LD_SWITCH_X_SITE}"
4106 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` 4109 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4107 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 4110 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4108 echo "configure:4109: checking for X11/xpm.h" >&5 4111 echo "configure:4112: checking for X11/xpm.h" >&5
4109 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4112 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6 4113 echo $ac_n "(cached) $ac_c" 1>&6
4111 else 4114 else
4112 cat > conftest.$ac_ext <<EOF 4115 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure" 4116 #line 4117 "configure"
4114 #include "confdefs.h" 4117 #include "confdefs.h"
4115 #include <X11/xpm.h> 4118 #include <X11/xpm.h>
4116 EOF 4119 EOF
4117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4118 { (eval echo configure:4119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4121 { (eval echo configure:4122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4120 if test -z "$ac_err"; then 4123 if test -z "$ac_err"; then
4121 rm -rf conftest* 4124 rm -rf conftest*
4122 eval "ac_cv_header_$ac_safe=yes" 4125 eval "ac_cv_header_$ac_safe=yes"
4123 else 4126 else
4130 rm -f conftest* 4133 rm -f conftest*
4131 fi 4134 fi
4132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4133 echo "$ac_t""yes" 1>&6 4136 echo "$ac_t""yes" 1>&6
4134 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 4137 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6
4135 echo "configure:4136: checking for XpmReadFileToPixmap in -lXpm" >&5 4138 echo "configure:4139: checking for XpmReadFileToPixmap in -lXpm" >&5
4136 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` 4139 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'`
4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4140 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6 4141 echo $ac_n "(cached) $ac_c" 1>&6
4139 else 4142 else
4140 ac_save_LIBS="$LIBS" 4143 ac_save_LIBS="$LIBS"
4141 LIBS="-lXpm -lX11 $LIBS" 4144 LIBS="-lXpm -lX11 $LIBS"
4142 cat > conftest.$ac_ext <<EOF 4145 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure" 4146 #line 4147 "configure"
4144 #include "confdefs.h" 4147 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */ 4148 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2 4149 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */ 4150 builtin and then its argument prototype would still apply. */
4148 char XpmReadFileToPixmap(); 4151 char XpmReadFileToPixmap();
4149 4152
4150 int main() { 4153 int main() {
4151 XpmReadFileToPixmap() 4154 XpmReadFileToPixmap()
4152 ; return 0; } 4155 ; return 0; }
4153 EOF 4156 EOF
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4155 rm -rf conftest* 4158 rm -rf conftest*
4156 eval "ac_cv_lib_$ac_lib_var=yes" 4159 eval "ac_cv_lib_$ac_lib_var=yes"
4157 else 4160 else
4158 echo "configure: failed program was:" >&5 4161 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5 4162 cat conftest.$ac_ext >&5
4191 if test "${HAVE_X11}" = "yes"; then 4194 if test "${HAVE_X11}" = "yes"; then
4192 if test "${with_jpeg}" != "no"; then 4195 if test "${with_jpeg}" != "no"; then
4193 old_c_flags="${CFLAGS}" 4196 old_c_flags="${CFLAGS}"
4194 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4197 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4195 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 4198 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4196 echo "configure:4197: checking for jpeg_destroy_compress in -ljpeg" >&5 4199 echo "configure:4200: checking for jpeg_destroy_compress in -ljpeg" >&5
4197 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` 4200 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6 4202 echo $ac_n "(cached) $ac_c" 1>&6
4200 else 4203 else
4201 ac_save_LIBS="$LIBS" 4204 ac_save_LIBS="$LIBS"
4202 LIBS="-ljpeg -lX11 $LIBS" 4205 LIBS="-ljpeg -lX11 $LIBS"
4203 cat > conftest.$ac_ext <<EOF 4206 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure" 4207 #line 4208 "configure"
4205 #include "confdefs.h" 4208 #include "confdefs.h"
4206 /* Override any gcc2 internal prototype to avoid an error. */ 4209 /* Override any gcc2 internal prototype to avoid an error. */
4207 /* We use char because int might match the return type of a gcc2 4210 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */ 4211 builtin and then its argument prototype would still apply. */
4209 char jpeg_destroy_compress(); 4212 char jpeg_destroy_compress();
4210 4213
4211 int main() { 4214 int main() {
4212 jpeg_destroy_compress() 4215 jpeg_destroy_compress()
4213 ; return 0; } 4216 ; return 0; }
4214 EOF 4217 EOF
4215 if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4216 rm -rf conftest* 4219 rm -rf conftest*
4217 eval "ac_cv_lib_$ac_lib_var=yes" 4220 eval "ac_cv_lib_$ac_lib_var=yes"
4218 else 4221 else
4219 echo "configure: failed program was:" >&5 4222 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5 4223 cat conftest.$ac_ext >&5
4249 if test "${with_png}" != "no"; then 4252 if test "${with_png}" != "no"; then
4250 old_c_flags="${CFLAGS}" 4253 old_c_flags="${CFLAGS}"
4251 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4254 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4252 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 4255 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4253 echo $ac_n "checking for png.h""... $ac_c" 1>&6 4256 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4254 echo "configure:4255: checking for png.h" >&5 4257 echo "configure:4258: checking for png.h" >&5
4255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4258 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4256 echo $ac_n "(cached) $ac_c" 1>&6 4259 echo $ac_n "(cached) $ac_c" 1>&6
4257 else 4260 else
4258 cat > conftest.$ac_ext <<EOF 4261 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure" 4262 #line 4263 "configure"
4260 #include "confdefs.h" 4263 #include "confdefs.h"
4261 #include <png.h> 4264 #include <png.h>
4262 EOF 4265 EOF
4263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4264 { (eval echo configure:4265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4267 { (eval echo configure:4268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4266 if test -z "$ac_err"; then 4269 if test -z "$ac_err"; then
4267 rm -rf conftest* 4270 rm -rf conftest*
4268 eval "ac_cv_header_$ac_safe=yes" 4271 eval "ac_cv_header_$ac_safe=yes"
4269 else 4272 else
4276 rm -f conftest* 4279 rm -f conftest*
4277 fi 4280 fi
4278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4279 echo "$ac_t""yes" 1>&6 4282 echo "$ac_t""yes" 1>&6
4280 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6 4283 echo $ac_n "checking for png_set_expand in -lpng""... $ac_c" 1>&6
4281 echo "configure:4282: checking for png_set_expand in -lpng" >&5 4284 echo "configure:4285: checking for png_set_expand in -lpng" >&5
4282 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'` 4285 ac_lib_var=`echo png'_'png_set_expand | sed 'y%./+-%__p_%'`
4283 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6 4287 echo $ac_n "(cached) $ac_c" 1>&6
4285 else 4288 else
4286 ac_save_LIBS="$LIBS" 4289 ac_save_LIBS="$LIBS"
4287 LIBS="-lpng -lX11 -lz -lm $LIBS" 4290 LIBS="-lpng -lX11 -lz -lm $LIBS"
4288 cat > conftest.$ac_ext <<EOF 4291 cat > conftest.$ac_ext <<EOF
4289 #line 4290 "configure" 4292 #line 4293 "configure"
4290 #include "confdefs.h" 4293 #include "confdefs.h"
4291 /* Override any gcc2 internal prototype to avoid an error. */ 4294 /* Override any gcc2 internal prototype to avoid an error. */
4292 /* We use char because int might match the return type of a gcc2 4295 /* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */ 4296 builtin and then its argument prototype would still apply. */
4294 char png_set_expand(); 4297 char png_set_expand();
4295 4298
4296 int main() { 4299 int main() {
4297 png_set_expand() 4300 png_set_expand()
4298 ; return 0; } 4301 ; return 0; }
4299 EOF 4302 EOF
4300 if { (eval echo configure:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4303 if { (eval echo configure:4304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4301 rm -rf conftest* 4304 rm -rf conftest*
4302 eval "ac_cv_lib_$ac_lib_var=yes" 4305 eval "ac_cv_lib_$ac_lib_var=yes"
4303 else 4306 else
4304 echo "configure: failed program was:" >&5 4307 echo "configure: failed program was:" >&5
4305 cat conftest.$ac_ext >&5 4308 cat conftest.$ac_ext >&5
4338 if test "${with_tiff}" != "no"; then 4341 if test "${with_tiff}" != "no"; then
4339 old_c_flags="${CFLAGS}" 4342 old_c_flags="${CFLAGS}"
4340 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4343 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4341 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 4344 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4342 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 4345 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4343 echo "configure:4344: checking for tiffio.h" >&5 4346 echo "configure:4347: checking for tiffio.h" >&5
4344 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6 4348 echo $ac_n "(cached) $ac_c" 1>&6
4346 else 4349 else
4347 cat > conftest.$ac_ext <<EOF 4350 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure" 4351 #line 4352 "configure"
4349 #include "confdefs.h" 4352 #include "confdefs.h"
4350 #include <tiffio.h> 4353 #include <tiffio.h>
4351 EOF 4354 EOF
4352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4353 { (eval echo configure:4354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4356 { (eval echo configure:4357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4355 if test -z "$ac_err"; then 4358 if test -z "$ac_err"; then
4356 rm -rf conftest* 4359 rm -rf conftest*
4357 eval "ac_cv_header_$ac_safe=yes" 4360 eval "ac_cv_header_$ac_safe=yes"
4358 else 4361 else
4365 rm -f conftest* 4368 rm -f conftest*
4366 fi 4369 fi
4367 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4370 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4368 echo "$ac_t""yes" 1>&6 4371 echo "$ac_t""yes" 1>&6
4369 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4372 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4370 echo "configure:4371: checking for TIFFGetVersion in -ltiff" >&5 4373 echo "configure:4374: checking for TIFFGetVersion in -ltiff" >&5
4371 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4374 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4372 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6 4376 echo $ac_n "(cached) $ac_c" 1>&6
4374 else 4377 else
4375 ac_save_LIBS="$LIBS" 4378 ac_save_LIBS="$LIBS"
4376 LIBS="-ltiff -lX11 -lm $LIBS" 4379 LIBS="-ltiff -lX11 -lm $LIBS"
4377 cat > conftest.$ac_ext <<EOF 4380 cat > conftest.$ac_ext <<EOF
4378 #line 4379 "configure" 4381 #line 4382 "configure"
4379 #include "confdefs.h" 4382 #include "confdefs.h"
4380 /* Override any gcc2 internal prototype to avoid an error. */ 4383 /* Override any gcc2 internal prototype to avoid an error. */
4381 /* We use char because int might match the return type of a gcc2 4384 /* We use char because int might match the return type of a gcc2
4382 builtin and then its argument prototype would still apply. */ 4385 builtin and then its argument prototype would still apply. */
4383 char TIFFGetVersion(); 4386 char TIFFGetVersion();
4384 4387
4385 int main() { 4388 int main() {
4386 TIFFGetVersion() 4389 TIFFGetVersion()
4387 ; return 0; } 4390 ; return 0; }
4388 EOF 4391 EOF
4389 if { (eval echo configure:4390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4392 if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390 rm -rf conftest* 4393 rm -rf conftest*
4391 eval "ac_cv_lib_$ac_lib_var=yes" 4394 eval "ac_cv_lib_$ac_lib_var=yes"
4392 else 4395 else
4393 echo "configure: failed program was:" >&5 4396 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5 4397 cat conftest.$ac_ext >&5
4427 if test "${with_gif}" != "no"; then 4430 if test "${with_gif}" != "no"; then
4428 old_c_flags="${CFLAGS}" 4431 old_c_flags="${CFLAGS}"
4429 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4432 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4430 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4433 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4431 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4434 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4432 echo "configure:4433: checking for gif_lib.h" >&5 4435 echo "configure:4436: checking for gif_lib.h" >&5
4433 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4436 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6 4437 echo $ac_n "(cached) $ac_c" 1>&6
4435 else 4438 else
4436 cat > conftest.$ac_ext <<EOF 4439 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure" 4440 #line 4441 "configure"
4438 #include "confdefs.h" 4441 #include "confdefs.h"
4439 #include <gif_lib.h> 4442 #include <gif_lib.h>
4440 EOF 4443 EOF
4441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4442 { (eval echo configure:4443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4445 { (eval echo configure:4446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4444 if test -z "$ac_err"; then 4447 if test -z "$ac_err"; then
4445 rm -rf conftest* 4448 rm -rf conftest*
4446 eval "ac_cv_header_$ac_safe=yes" 4449 eval "ac_cv_header_$ac_safe=yes"
4447 else 4450 else
4454 rm -f conftest* 4457 rm -f conftest*
4455 fi 4458 fi
4456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4457 echo "$ac_t""yes" 1>&6 4460 echo "$ac_t""yes" 1>&6
4458 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6 4461 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4459 echo "configure:4460: checking for DGifOpenFileName in -lungif" >&5 4462 echo "configure:4463: checking for DGifOpenFileName in -lungif" >&5
4460 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'` 4463 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4461 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4462 echo $ac_n "(cached) $ac_c" 1>&6 4465 echo $ac_n "(cached) $ac_c" 1>&6
4463 else 4466 else
4464 ac_save_LIBS="$LIBS" 4467 ac_save_LIBS="$LIBS"
4465 LIBS="-lungif -lX11 $LIBS" 4468 LIBS="-lungif -lX11 $LIBS"
4466 cat > conftest.$ac_ext <<EOF 4469 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure" 4470 #line 4471 "configure"
4468 #include "confdefs.h" 4471 #include "confdefs.h"
4469 /* Override any gcc2 internal prototype to avoid an error. */ 4472 /* Override any gcc2 internal prototype to avoid an error. */
4470 /* We use char because int might match the return type of a gcc2 4473 /* We use char because int might match the return type of a gcc2
4471 builtin and then its argument prototype would still apply. */ 4474 builtin and then its argument prototype would still apply. */
4472 char DGifOpenFileName(); 4475 char DGifOpenFileName();
4473 4476
4474 int main() { 4477 int main() {
4475 DGifOpenFileName() 4478 DGifOpenFileName()
4476 ; return 0; } 4479 ; return 0; }
4477 EOF 4480 EOF
4478 if { (eval echo configure:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4479 rm -rf conftest* 4482 rm -rf conftest*
4480 eval "ac_cv_lib_$ac_lib_var=yes" 4483 eval "ac_cv_lib_$ac_lib_var=yes"
4481 else 4484 else
4482 echo "configure: failed program was:" >&5 4485 echo "configure: failed program was:" >&5
4483 cat conftest.$ac_ext >&5 4486 cat conftest.$ac_ext >&5
4510 fi 4513 fi
4511 fi 4514 fi
4512 4515
4513 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4516 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4514 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4517 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4515 echo "configure:4516: checking whether netdb declares h_errno" >&5 4518 echo "configure:4519: checking whether netdb declares h_errno" >&5
4516 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4519 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6 4520 echo $ac_n "(cached) $ac_c" 1>&6
4518 else 4521 else
4519 cat > conftest.$ac_ext <<EOF 4522 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure" 4523 #line 4524 "configure"
4521 #include "confdefs.h" 4524 #include "confdefs.h"
4522 #include <netdb.h> 4525 #include <netdb.h>
4523 int main() { 4526 int main() {
4524 return h_errno; 4527 return h_errno;
4525 ; return 0; } 4528 ; return 0; }
4526 EOF 4529 EOF
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4530 if { (eval echo configure:4531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4528 rm -rf conftest* 4531 rm -rf conftest*
4529 emacs_cv_netdb_declares_h_errno=yes 4532 emacs_cv_netdb_declares_h_errno=yes
4530 else 4533 else
4531 echo "configure: failed program was:" >&5 4534 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5 4535 cat conftest.$ac_ext >&5
4545 fi 4548 fi
4546 4549
4547 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4550 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4548 # for constant arguments. Useless! 4551 # for constant arguments. Useless!
4549 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4552 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4550 echo "configure:4551: checking for working alloca.h" >&5 4553 echo "configure:4554: checking for working alloca.h" >&5
4551 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4554 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6 4555 echo $ac_n "(cached) $ac_c" 1>&6
4553 else 4556 else
4554 cat > conftest.$ac_ext <<EOF 4557 cat > conftest.$ac_ext <<EOF
4555 #line 4556 "configure" 4558 #line 4559 "configure"
4556 #include "confdefs.h" 4559 #include "confdefs.h"
4557 #include <alloca.h> 4560 #include <alloca.h>
4558 int main() { 4561 int main() {
4559 char *p = alloca(2 * sizeof(int)); 4562 char *p = alloca(2 * sizeof(int));
4560 ; return 0; } 4563 ; return 0; }
4561 EOF 4564 EOF
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4565 if { (eval echo configure:4566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563 rm -rf conftest* 4566 rm -rf conftest*
4564 ac_cv_header_alloca_h=yes 4567 ac_cv_header_alloca_h=yes
4565 else 4568 else
4566 echo "configure: failed program was:" >&5 4569 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5 4570 cat conftest.$ac_ext >&5
4578 EOF 4581 EOF
4579 4582
4580 fi 4583 fi
4581 4584
4582 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4585 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4583 echo "configure:4584: checking for alloca" >&5 4586 echo "configure:4587: checking for alloca" >&5
4584 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4587 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6 4588 echo $ac_n "(cached) $ac_c" 1>&6
4586 else 4589 else
4587 cat > conftest.$ac_ext <<EOF 4590 cat > conftest.$ac_ext <<EOF
4588 #line 4589 "configure" 4591 #line 4592 "configure"
4589 #include "confdefs.h" 4592 #include "confdefs.h"
4590 4593
4591 #ifdef __GNUC__ 4594 #ifdef __GNUC__
4592 # define alloca __builtin_alloca 4595 # define alloca __builtin_alloca
4593 #else 4596 #else
4611 4614
4612 int main() { 4615 int main() {
4613 char *p = (char *) alloca(1); 4616 char *p = (char *) alloca(1);
4614 ; return 0; } 4617 ; return 0; }
4615 EOF 4618 EOF
4616 if { (eval echo configure:4617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4619 if { (eval echo configure:4620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4617 rm -rf conftest* 4620 rm -rf conftest*
4618 ac_cv_func_alloca_works=yes 4621 ac_cv_func_alloca_works=yes
4619 else 4622 else
4620 echo "configure: failed program was:" >&5 4623 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5 4624 cat conftest.$ac_ext >&5
4643 #define C_ALLOCA 1 4646 #define C_ALLOCA 1
4644 EOF 4647 EOF
4645 4648
4646 4649
4647 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4650 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4648 echo "configure:4649: checking whether alloca needs Cray hooks" >&5 4651 echo "configure:4652: checking whether alloca needs Cray hooks" >&5
4649 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4652 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6 4653 echo $ac_n "(cached) $ac_c" 1>&6
4651 else 4654 else
4652 cat > conftest.$ac_ext <<EOF 4655 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure" 4656 #line 4657 "configure"
4654 #include "confdefs.h" 4657 #include "confdefs.h"
4655 #if defined(CRAY) && ! defined(CRAY2) 4658 #if defined(CRAY) && ! defined(CRAY2)
4656 webecray 4659 webecray
4657 #else 4660 #else
4658 wenotbecray 4661 wenotbecray
4673 4676
4674 echo "$ac_t""$ac_cv_os_cray" 1>&6 4677 echo "$ac_t""$ac_cv_os_cray" 1>&6
4675 if test $ac_cv_os_cray = yes; then 4678 if test $ac_cv_os_cray = yes; then
4676 for ac_func in _getb67 GETB67 getb67; do 4679 for ac_func in _getb67 GETB67 getb67; do
4677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_func" >&5 4681 echo "configure:4682: checking for $ac_func" >&5
4679 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4682 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6 4683 echo $ac_n "(cached) $ac_c" 1>&6
4681 else 4684 else
4682 cat > conftest.$ac_ext <<EOF 4685 cat > conftest.$ac_ext <<EOF
4683 #line 4684 "configure" 4686 #line 4687 "configure"
4684 #include "confdefs.h" 4687 #include "confdefs.h"
4685 /* System header to define __stub macros and hopefully few prototypes, 4688 /* System header to define __stub macros and hopefully few prototypes,
4686 which can conflict with char $ac_func(); below. */ 4689 which can conflict with char $ac_func(); below. */
4687 #include <assert.h> 4690 #include <assert.h>
4688 /* Override any gcc2 internal prototype to avoid an error. */ 4691 /* Override any gcc2 internal prototype to avoid an error. */
4701 $ac_func(); 4704 $ac_func();
4702 #endif 4705 #endif
4703 4706
4704 ; return 0; } 4707 ; return 0; }
4705 EOF 4708 EOF
4706 if { (eval echo configure:4707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4709 if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4707 rm -rf conftest* 4710 rm -rf conftest*
4708 eval "ac_cv_func_$ac_func=yes" 4711 eval "ac_cv_func_$ac_func=yes"
4709 else 4712 else
4710 echo "configure: failed program was:" >&5 4713 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5 4714 cat conftest.$ac_ext >&5
4728 4731
4729 done 4732 done
4730 fi 4733 fi
4731 4734
4732 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 4735 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4733 echo "configure:4734: checking stack direction for C alloca" >&5 4736 echo "configure:4737: checking stack direction for C alloca" >&5
4734 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 4737 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6 4738 echo $ac_n "(cached) $ac_c" 1>&6
4736 else 4739 else
4737 if test "$cross_compiling" = yes; then 4740 if test "$cross_compiling" = yes; then
4738 ac_cv_c_stack_direction=0 4741 ac_cv_c_stack_direction=0
4739 else 4742 else
4740 cat > conftest.$ac_ext <<EOF 4743 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure" 4744 #line 4745 "configure"
4742 #include "confdefs.h" 4745 #include "confdefs.h"
4743 find_stack_direction () 4746 find_stack_direction ()
4744 { 4747 {
4745 static char *addr = 0; 4748 static char *addr = 0;
4746 auto char dummy; 4749 auto char dummy;
4755 main () 4758 main ()
4756 { 4759 {
4757 exit (find_stack_direction() < 0); 4760 exit (find_stack_direction() < 0);
4758 } 4761 }
4759 EOF 4762 EOF
4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4763 if { (eval echo configure:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4761 then 4764 then
4762 ac_cv_c_stack_direction=1 4765 ac_cv_c_stack_direction=1
4763 else 4766 else
4764 echo "configure: failed program was:" >&5 4767 echo "configure: failed program was:" >&5
4765 cat conftest.$ac_ext >&5 4768 cat conftest.$ac_ext >&5
4780 4783
4781 4784
4782 # fmod, logb, and frexp are found in -lm on most systems. 4785 # fmod, logb, and frexp are found in -lm on most systems.
4783 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 4786 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4784 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 4787 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4785 echo "configure:4786: checking for sqrt in -lm" >&5 4788 echo "configure:4789: checking for sqrt in -lm" >&5
4786 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 4789 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4790 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6 4791 echo $ac_n "(cached) $ac_c" 1>&6
4789 else 4792 else
4790 ac_save_LIBS="$LIBS" 4793 ac_save_LIBS="$LIBS"
4791 LIBS="-lm $LIBS" 4794 LIBS="-lm $LIBS"
4792 cat > conftest.$ac_ext <<EOF 4795 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure" 4796 #line 4797 "configure"
4794 #include "confdefs.h" 4797 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */ 4798 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2 4799 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */ 4800 builtin and then its argument prototype would still apply. */
4798 char sqrt(); 4801 char sqrt();
4799 4802
4800 int main() { 4803 int main() {
4801 sqrt() 4804 sqrt()
4802 ; return 0; } 4805 ; return 0; }
4803 EOF 4806 EOF
4804 if { (eval echo configure:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4807 if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4805 rm -rf conftest* 4808 rm -rf conftest*
4806 eval "ac_cv_lib_$ac_lib_var=yes" 4809 eval "ac_cv_lib_$ac_lib_var=yes"
4807 else 4810 else
4808 echo "configure: failed program was:" >&5 4811 echo "configure: failed program was:" >&5
4809 cat conftest.$ac_ext >&5 4812 cat conftest.$ac_ext >&5
4829 fi 4832 fi
4830 4833
4831 4834
4832 # Check for mail-locking functions in a "mail" library 4835 # Check for mail-locking functions in a "mail" library
4833 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 4836 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4834 echo "configure:4835: checking for maillock in -lmail" >&5 4837 echo "configure:4838: checking for maillock in -lmail" >&5
4835 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 4838 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6 4840 echo $ac_n "(cached) $ac_c" 1>&6
4838 else 4841 else
4839 ac_save_LIBS="$LIBS" 4842 ac_save_LIBS="$LIBS"
4840 LIBS="-lmail $LIBS" 4843 LIBS="-lmail $LIBS"
4841 cat > conftest.$ac_ext <<EOF 4844 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure" 4845 #line 4846 "configure"
4843 #include "confdefs.h" 4846 #include "confdefs.h"
4844 /* Override any gcc2 internal prototype to avoid an error. */ 4847 /* Override any gcc2 internal prototype to avoid an error. */
4845 /* We use char because int might match the return type of a gcc2 4848 /* We use char because int might match the return type of a gcc2
4846 builtin and then its argument prototype would still apply. */ 4849 builtin and then its argument prototype would still apply. */
4847 char maillock(); 4850 char maillock();
4848 4851
4849 int main() { 4852 int main() {
4850 maillock() 4853 maillock()
4851 ; return 0; } 4854 ; return 0; }
4852 EOF 4855 EOF
4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4856 if { (eval echo configure:4857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4854 rm -rf conftest* 4857 rm -rf conftest*
4855 eval "ac_cv_lib_$ac_lib_var=yes" 4858 eval "ac_cv_lib_$ac_lib_var=yes"
4856 else 4859 else
4857 echo "configure: failed program was:" >&5 4860 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5 4861 cat conftest.$ac_ext >&5
4876 else 4879 else
4877 echo "$ac_t""no" 1>&6 4880 echo "$ac_t""no" 1>&6
4878 fi 4881 fi
4879 4882
4880 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 4883 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4881 echo "configure:4882: checking for maillock in -llockfile" >&5 4884 echo "configure:4885: checking for maillock in -llockfile" >&5
4882 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 4885 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
4883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6 4887 echo $ac_n "(cached) $ac_c" 1>&6
4885 else 4888 else
4886 ac_save_LIBS="$LIBS" 4889 ac_save_LIBS="$LIBS"
4887 LIBS="-llockfile $LIBS" 4890 LIBS="-llockfile $LIBS"
4888 cat > conftest.$ac_ext <<EOF 4891 cat > conftest.$ac_ext <<EOF
4889 #line 4890 "configure" 4892 #line 4893 "configure"
4890 #include "confdefs.h" 4893 #include "confdefs.h"
4891 /* Override any gcc2 internal prototype to avoid an error. */ 4894 /* Override any gcc2 internal prototype to avoid an error. */
4892 /* We use char because int might match the return type of a gcc2 4895 /* We use char because int might match the return type of a gcc2
4893 builtin and then its argument prototype would still apply. */ 4896 builtin and then its argument prototype would still apply. */
4894 char maillock(); 4897 char maillock();
4895 4898
4896 int main() { 4899 int main() {
4897 maillock() 4900 maillock()
4898 ; return 0; } 4901 ; return 0; }
4899 EOF 4902 EOF
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4903 if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4901 rm -rf conftest* 4904 rm -rf conftest*
4902 eval "ac_cv_lib_$ac_lib_var=yes" 4905 eval "ac_cv_lib_$ac_lib_var=yes"
4903 else 4906 else
4904 echo "configure: failed program was:" >&5 4907 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5 4908 cat conftest.$ac_ext >&5
4929 # (no liblockfile.a installed), ensure that we don't need to. 4932 # (no liblockfile.a installed), ensure that we don't need to.
4930 if test "$ac_cv_lib_lockfile_maillock" = no; then 4933 if test "$ac_cv_lib_lockfile_maillock" = no; then
4931 # Extract the first word of "liblockfile.so", so it can be a program name with args. 4934 # Extract the first word of "liblockfile.so", so it can be a program name with args.
4932 set dummy liblockfile.so; ac_word=$2 4935 set dummy liblockfile.so; ac_word=$2
4933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4934 echo "configure:4935: checking for $ac_word" >&5 4937 echo "configure:4938: checking for $ac_word" >&5
4935 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 4938 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6 4939 echo $ac_n "(cached) $ac_c" 1>&6
4937 else 4940 else
4938 if test -n "$liblockfile"; then 4941 if test -n "$liblockfile"; then
4939 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 4942 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
4970 else : 4973 else :
4971 fi 4974 fi
4972 for ac_func in touchlock 4975 for ac_func in touchlock
4973 do 4976 do
4974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4977 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4975 echo "configure:4976: checking for $ac_func" >&5 4978 echo "configure:4979: checking for $ac_func" >&5
4976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4979 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4977 echo $ac_n "(cached) $ac_c" 1>&6 4980 echo $ac_n "(cached) $ac_c" 1>&6
4978 else 4981 else
4979 cat > conftest.$ac_ext <<EOF 4982 cat > conftest.$ac_ext <<EOF
4980 #line 4981 "configure" 4983 #line 4984 "configure"
4981 #include "confdefs.h" 4984 #include "confdefs.h"
4982 /* System header to define __stub macros and hopefully few prototypes, 4985 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func(); below. */ 4986 which can conflict with char $ac_func(); below. */
4984 #include <assert.h> 4987 #include <assert.h>
4985 /* Override any gcc2 internal prototype to avoid an error. */ 4988 /* Override any gcc2 internal prototype to avoid an error. */
4998 $ac_func(); 5001 $ac_func();
4999 #endif 5002 #endif
5000 5003
5001 ; return 0; } 5004 ; return 0; }
5002 EOF 5005 EOF
5003 if { (eval echo configure:5004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5006 if { (eval echo configure:5007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 rm -rf conftest* 5007 rm -rf conftest*
5005 eval "ac_cv_func_$ac_func=yes" 5008 eval "ac_cv_func_$ac_func=yes"
5006 else 5009 else
5007 echo "configure: failed program was:" >&5 5010 echo "configure: failed program was:" >&5
5008 cat conftest.$ac_ext >&5 5011 cat conftest.$ac_ext >&5
5026 5029
5027 for ac_hdr in maillock.h 5030 for ac_hdr in maillock.h
5028 do 5031 do
5029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5031 echo "configure:5032: checking for $ac_hdr" >&5 5034 echo "configure:5035: checking for $ac_hdr" >&5
5032 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5035 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5033 echo $ac_n "(cached) $ac_c" 1>&6 5036 echo $ac_n "(cached) $ac_c" 1>&6
5034 else 5037 else
5035 cat > conftest.$ac_ext <<EOF 5038 cat > conftest.$ac_ext <<EOF
5036 #line 5037 "configure" 5039 #line 5040 "configure"
5037 #include "confdefs.h" 5040 #include "confdefs.h"
5038 #include <$ac_hdr> 5041 #include <$ac_hdr>
5039 EOF 5042 EOF
5040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5041 { (eval echo configure:5042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5044 { (eval echo configure:5045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5043 if test -z "$ac_err"; then 5046 if test -z "$ac_err"; then
5044 rm -rf conftest* 5047 rm -rf conftest*
5045 eval "ac_cv_header_$ac_safe=yes" 5048 eval "ac_cv_header_$ac_safe=yes"
5046 else 5049 else
5070 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 5073 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
5071 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5074 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5072 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo 5075 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo
5073 do 5076 do
5074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5075 echo "configure:5076: checking for $ac_func" >&5 5078 echo "configure:5079: checking for $ac_func" >&5
5076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6 5080 echo $ac_n "(cached) $ac_c" 1>&6
5078 else 5081 else
5079 cat > conftest.$ac_ext <<EOF 5082 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure" 5083 #line 5084 "configure"
5081 #include "confdefs.h" 5084 #include "confdefs.h"
5082 /* System header to define __stub macros and hopefully few prototypes, 5085 /* System header to define __stub macros and hopefully few prototypes,
5083 which can conflict with char $ac_func(); below. */ 5086 which can conflict with char $ac_func(); below. */
5084 #include <assert.h> 5087 #include <assert.h>
5085 /* Override any gcc2 internal prototype to avoid an error. */ 5088 /* Override any gcc2 internal prototype to avoid an error. */
5098 $ac_func(); 5101 $ac_func();
5099 #endif 5102 #endif
5100 5103
5101 ; return 0; } 5104 ; return 0; }
5102 EOF 5105 EOF
5103 if { (eval echo configure:5104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 rm -rf conftest* 5107 rm -rf conftest*
5105 eval "ac_cv_func_$ac_func=yes" 5108 eval "ac_cv_func_$ac_func=yes"
5106 else 5109 else
5107 echo "configure: failed program was:" >&5 5110 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5 5111 cat conftest.$ac_ext >&5
5128 # Check this now, so that we will NOT find the above functions in ncurses. 5131 # Check this now, so that we will NOT find the above functions in ncurses.
5129 # That is because we have not set up to link ncurses in lib-src. 5132 # That is because we have not set up to link ncurses in lib-src.
5130 # It's better to believe a function is not available 5133 # It's better to believe a function is not available
5131 # than to expect to find it in ncurses. 5134 # than to expect to find it in ncurses.
5132 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5135 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5133 echo "configure:5134: checking for tparm in -lncurses" >&5 5136 echo "configure:5137: checking for tparm in -lncurses" >&5
5134 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5137 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5136 echo $ac_n "(cached) $ac_c" 1>&6 5139 echo $ac_n "(cached) $ac_c" 1>&6
5137 else 5140 else
5138 ac_save_LIBS="$LIBS" 5141 ac_save_LIBS="$LIBS"
5139 LIBS="-lncurses $LIBS" 5142 LIBS="-lncurses $LIBS"
5140 cat > conftest.$ac_ext <<EOF 5143 cat > conftest.$ac_ext <<EOF
5141 #line 5142 "configure" 5144 #line 5145 "configure"
5142 #include "confdefs.h" 5145 #include "confdefs.h"
5143 /* Override any gcc2 internal prototype to avoid an error. */ 5146 /* Override any gcc2 internal prototype to avoid an error. */
5144 /* We use char because int might match the return type of a gcc2 5147 /* We use char because int might match the return type of a gcc2
5145 builtin and then its argument prototype would still apply. */ 5148 builtin and then its argument prototype would still apply. */
5146 char tparm(); 5149 char tparm();
5147 5150
5148 int main() { 5151 int main() {
5149 tparm() 5152 tparm()
5150 ; return 0; } 5153 ; return 0; }
5151 EOF 5154 EOF
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5153 rm -rf conftest* 5156 rm -rf conftest*
5154 eval "ac_cv_lib_$ac_lib_var=yes" 5157 eval "ac_cv_lib_$ac_lib_var=yes"
5155 else 5158 else
5156 echo "configure: failed program was:" >&5 5159 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5 5160 cat conftest.$ac_ext >&5
5178 5181
5179 5182
5180 # Solaris requires -lintl if you want strerror (which calls dgettext) 5183 # Solaris requires -lintl if you want strerror (which calls dgettext)
5181 # to return localized messages. 5184 # to return localized messages.
5182 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 5185 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
5183 echo "configure:5184: checking for dgettext in -lintl" >&5 5186 echo "configure:5187: checking for dgettext in -lintl" >&5
5184 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 5187 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
5185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6 5189 echo $ac_n "(cached) $ac_c" 1>&6
5187 else 5190 else
5188 ac_save_LIBS="$LIBS" 5191 ac_save_LIBS="$LIBS"
5189 LIBS="-lintl $LIBS" 5192 LIBS="-lintl $LIBS"
5190 cat > conftest.$ac_ext <<EOF 5193 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure" 5194 #line 5195 "configure"
5192 #include "confdefs.h" 5195 #include "confdefs.h"
5193 /* Override any gcc2 internal prototype to avoid an error. */ 5196 /* Override any gcc2 internal prototype to avoid an error. */
5194 /* We use char because int might match the return type of a gcc2 5197 /* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */ 5198 builtin and then its argument prototype would still apply. */
5196 char dgettext(); 5199 char dgettext();
5197 5200
5198 int main() { 5201 int main() {
5199 dgettext() 5202 dgettext()
5200 ; return 0; } 5203 ; return 0; }
5201 EOF 5204 EOF
5202 if { (eval echo configure:5203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5205 if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5203 rm -rf conftest* 5206 rm -rf conftest*
5204 eval "ac_cv_lib_$ac_lib_var=yes" 5207 eval "ac_cv_lib_$ac_lib_var=yes"
5205 else 5208 else
5206 echo "configure: failed program was:" >&5 5209 echo "configure: failed program was:" >&5
5207 cat conftest.$ac_ext >&5 5210 cat conftest.$ac_ext >&5
5226 echo "$ac_t""no" 1>&6 5229 echo "$ac_t""no" 1>&6
5227 fi 5230 fi
5228 5231
5229 5232
5230 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 5233 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
5231 echo "configure:5232: checking whether localtime caches TZ" >&5 5234 echo "configure:5235: checking whether localtime caches TZ" >&5
5232 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 5235 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6 5236 echo $ac_n "(cached) $ac_c" 1>&6
5234 else 5237 else
5235 if test x$ac_cv_func_tzset = xyes; then 5238 if test x$ac_cv_func_tzset = xyes; then
5236 if test "$cross_compiling" = yes; then 5239 if test "$cross_compiling" = yes; then
5237 # If we have tzset, assume the worst when cross-compiling. 5240 # If we have tzset, assume the worst when cross-compiling.
5238 emacs_cv_localtime_cache=yes 5241 emacs_cv_localtime_cache=yes
5239 else 5242 else
5240 cat > conftest.$ac_ext <<EOF 5243 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure" 5244 #line 5245 "configure"
5242 #include "confdefs.h" 5245 #include "confdefs.h"
5243 #include <time.h> 5246 #include <time.h>
5244 #if STDC_HEADERS 5247 #if STDC_HEADERS
5245 # include <stdlib.h> 5248 # include <stdlib.h>
5246 #endif 5249 #endif
5271 if (localtime (&now)->tm_hour != hour_unset) 5274 if (localtime (&now)->tm_hour != hour_unset)
5272 exit (1); 5275 exit (1);
5273 exit (0); 5276 exit (0);
5274 } 5277 }
5275 EOF 5278 EOF
5276 if { (eval echo configure:5277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5279 if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5277 then 5280 then
5278 emacs_cv_localtime_cache=no 5281 emacs_cv_localtime_cache=no
5279 else 5282 else
5280 echo "configure: failed program was:" >&5 5283 echo "configure: failed program was:" >&5
5281 cat conftest.$ac_ext >&5 5284 cat conftest.$ac_ext >&5
5299 5302
5300 fi 5303 fi
5301 5304
5302 if test "x$HAVE_TIMEVAL" = xyes; then 5305 if test "x$HAVE_TIMEVAL" = xyes; then
5303 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 5306 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
5304 echo "configure:5305: checking whether gettimeofday can accept two arguments" >&5 5307 echo "configure:5308: checking whether gettimeofday can accept two arguments" >&5
5305 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 5308 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6 5309 echo $ac_n "(cached) $ac_c" 1>&6
5307 else 5310 else
5308 cat > conftest.$ac_ext <<EOF 5311 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure" 5312 #line 5313 "configure"
5310 #include "confdefs.h" 5313 #include "confdefs.h"
5311 5314
5312 #ifdef TIME_WITH_SYS_TIME 5315 #ifdef TIME_WITH_SYS_TIME
5313 #include <sys/time.h> 5316 #include <sys/time.h>
5314 #include <time.h> 5317 #include <time.h>
5326 struct timezone dummy; 5329 struct timezone dummy;
5327 gettimeofday (&time, &dummy); 5330 gettimeofday (&time, &dummy);
5328 5331
5329 ; return 0; } 5332 ; return 0; }
5330 EOF 5333 EOF
5331 if { (eval echo configure:5332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5334 if { (eval echo configure:5335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5332 rm -rf conftest* 5335 rm -rf conftest*
5333 emacs_cv_gettimeofday_two_arguments=yes 5336 emacs_cv_gettimeofday_two_arguments=yes
5334 else 5337 else
5335 echo "configure: failed program was:" >&5 5338 echo "configure: failed program was:" >&5
5336 cat conftest.$ac_ext >&5 5339 cat conftest.$ac_ext >&5
5349 fi 5352 fi
5350 fi 5353 fi
5351 5354
5352 ok_so_far=yes 5355 ok_so_far=yes
5353 echo $ac_n "checking for socket""... $ac_c" 1>&6 5356 echo $ac_n "checking for socket""... $ac_c" 1>&6
5354 echo "configure:5355: checking for socket" >&5 5357 echo "configure:5358: checking for socket" >&5
5355 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 5358 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
5356 echo $ac_n "(cached) $ac_c" 1>&6 5359 echo $ac_n "(cached) $ac_c" 1>&6
5357 else 5360 else
5358 cat > conftest.$ac_ext <<EOF 5361 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure" 5362 #line 5363 "configure"
5360 #include "confdefs.h" 5363 #include "confdefs.h"
5361 /* System header to define __stub macros and hopefully few prototypes, 5364 /* System header to define __stub macros and hopefully few prototypes,
5362 which can conflict with char socket(); below. */ 5365 which can conflict with char socket(); below. */
5363 #include <assert.h> 5366 #include <assert.h>
5364 /* Override any gcc2 internal prototype to avoid an error. */ 5367 /* Override any gcc2 internal prototype to avoid an error. */
5377 socket(); 5380 socket();
5378 #endif 5381 #endif
5379 5382
5380 ; return 0; } 5383 ; return 0; }
5381 EOF 5384 EOF
5382 if { (eval echo configure:5383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5385 if { (eval echo configure:5386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 rm -rf conftest* 5386 rm -rf conftest*
5384 eval "ac_cv_func_socket=yes" 5387 eval "ac_cv_func_socket=yes"
5385 else 5388 else
5386 echo "configure: failed program was:" >&5 5389 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5 5390 cat conftest.$ac_ext >&5
5400 fi 5403 fi
5401 5404
5402 if test $ok_so_far = yes; then 5405 if test $ok_so_far = yes; then
5403 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 5406 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
5404 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 5407 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
5405 echo "configure:5406: checking for netinet/in.h" >&5 5408 echo "configure:5409: checking for netinet/in.h" >&5
5406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5407 echo $ac_n "(cached) $ac_c" 1>&6 5410 echo $ac_n "(cached) $ac_c" 1>&6
5408 else 5411 else
5409 cat > conftest.$ac_ext <<EOF 5412 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure" 5413 #line 5414 "configure"
5411 #include "confdefs.h" 5414 #include "confdefs.h"
5412 #include <netinet/in.h> 5415 #include <netinet/in.h>
5413 EOF 5416 EOF
5414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5415 { (eval echo configure:5416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5418 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5417 if test -z "$ac_err"; then 5420 if test -z "$ac_err"; then
5418 rm -rf conftest* 5421 rm -rf conftest*
5419 eval "ac_cv_header_$ac_safe=yes" 5422 eval "ac_cv_header_$ac_safe=yes"
5420 else 5423 else
5436 5439
5437 fi 5440 fi
5438 if test $ok_so_far = yes; then 5441 if test $ok_so_far = yes; then
5439 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 5442 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
5440 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 5443 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
5441 echo "configure:5442: checking for arpa/inet.h" >&5 5444 echo "configure:5445: checking for arpa/inet.h" >&5
5442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6 5446 echo $ac_n "(cached) $ac_c" 1>&6
5444 else 5447 else
5445 cat > conftest.$ac_ext <<EOF 5448 cat > conftest.$ac_ext <<EOF
5446 #line 5447 "configure" 5449 #line 5450 "configure"
5447 #include "confdefs.h" 5450 #include "confdefs.h"
5448 #include <arpa/inet.h> 5451 #include <arpa/inet.h>
5449 EOF 5452 EOF
5450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5451 { (eval echo configure:5452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5454 { (eval echo configure:5455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5453 if test -z "$ac_err"; then 5456 if test -z "$ac_err"; then
5454 rm -rf conftest* 5457 rm -rf conftest*
5455 eval "ac_cv_header_$ac_safe=yes" 5458 eval "ac_cv_header_$ac_safe=yes"
5456 else 5459 else