comparison configure @ 1111:184461bc8de4

[xemacs-hg @ 2002-11-18 06:52:23 by ben] warning fixes, etc. * s/cygwin32.h: -fvtable-thunks is obsolete in GCC 3 and generates warnings. * s/mingw32.h: * s/windowsnt.h: Comment fixes. * emodules.h: Fix warnings from redefining symbols. * eval.c: Fix C++ errors -- no automatic casting between function pointers and void *, function declarations inside of functions not allowed. * event-Xt.c (emacs_Xt_enqueue_focus_event): Warning fixes. * fileio.c (Ffile_truename): Warning fixes. Use LOCAL_TO_WIN32_FILE_FORMAT rather than duplicating it. * glyphs-x.c: Fix style. * intl-auto-encap-win32.c: * intl-auto-encap-win32.h: * intl-encap-win32.c: * intl-encap-win32.c (qxeRegConnectRegistry): * syswindows.h (RegConnectRegistry): DdeCreateStringHandle needs to be manual due to new Cygwin bug. * intl-win32.c: wcslen/wcscmp don't seem to exist under G++ 3, Cygwin. * lisp.h: * lisp-union.h: * lisp-disunion.h: * process-unix.c (unix_send_process): Ugh, C needs volatile and C++ must not have volatile. Remove previous volatile hacks, which don't seem to be working any more. * sheap.c (STATIC_HEAP_SLOP): Try to get a working Cygwin build with old unexec. * sheap.c (more_static_core): No NL's in literals allowed. * symbols.c (Fset): Fix C++ errors. * syswindows.h: Fix Cygwin complaints now that some missing structs have been added. aclocal.m4: Disable shared library modules under Cygwin for the moment, since we need some more tricky coding done and I don't have the time right now. configure.in, configure.usage: code-files.el, loadhist.el: Fix warnings. package-get.el: Fix warnings. NOTE: This was already fixed awhile ago, but reverted by Steve Y. Please be careful. postgresql/Makefile.in.in: Removed. Move common stuff into modues/common/Makefile.common. (Also add extraclean target and a couple of other fixes in that file.) postgresql/configure.ac: Extract out common configure stuff into modules/common/configure-{pre,post}.ac. postgresql/postgresql.c: Fix warning. ldap/Makefile.in.in: Removed. Move common stuff into modues/common/Makefile.common. (Also add extraclean target and a couple of other fixes in that file.) ldap/configure.ac: Extract out common configure stuff into modules/common/configure-{pre,post}.ac. common/Makefile.common: Common stuff is here.
author ben
date Mon, 18 Nov 2002 06:53:08 +0000
parents 989ddde6705d
children 37bdd24225ef
comparison
equal deleted inserted replaced
1110:49065a0d2943 1111:184461bc8de4
233 docdir='${archlibdir}' 233 docdir='${archlibdir}'
234 with_netinstall="no" 234 with_netinstall="no"
235 with_prefix='yes' 235 with_prefix='yes'
236 with_site_lisp='no' 236 with_site_lisp='no'
237 with_site_modules='yes' 237 with_site_modules='yes'
238 need_modules_common=''
238 with_menubars='' 239 with_menubars=''
239 with_scrollbars='' 240 with_scrollbars=''
240 with_widgets='' 241 with_widgets=''
241 with_dialogs='' 242 with_dialogs=''
242 cpp='' cppflags='' libs='' ldflags='' 243 cpp='' cppflags='' libs='' ldflags=''
378 379
379 srcdir | \ 380 srcdir | \
380 compiler | \ 381 compiler | \
381 xemacs_compiler | \ 382 xemacs_compiler | \
382 cflags | \ 383 cflags | \
384 cflags_warning | \
383 cpp | \ 385 cpp | \
384 cppflags | \ 386 cppflags | \
385 libs | \ 387 libs | \
386 ldflags | \ 388 ldflags | \
387 cache_file | \ 389 cache_file | \
855 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 857 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
856 fi 858 fi
857 fi 859 fi
858 860
859 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 861 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
860 echo "configure:861: checking whether ln -s works" >&5 862 echo "configure:863: checking whether ln -s works" >&5
861 863
862 rm -f conftestdata 864 rm -f conftestdata
863 if ln -s X conftestdata 2>/dev/null 865 if ln -s X conftestdata 2>/dev/null
864 then 866 then
865 rm -f conftestdata 867 rm -f conftestdata
1141 } 1143 }
1142 1144
1143 1145
1144 1146
1145 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1147 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1146 echo "configure:1147: checking "host system type"" >&5 1148 echo "configure:1149: checking "host system type"" >&5
1147 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1149 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1148 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1150 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1149 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1151 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1150 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1152 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1151 echo "$ac_t""$configuration" 1>&6 1153 echo "$ac_t""$configuration" 1>&6
1649 if test "${CFLAGS-unset}" != unset 1651 if test "${CFLAGS-unset}" != unset
1650 then cflags_specified=yes; 1652 then cflags_specified=yes;
1651 else cflags_specified=no; 1653 else cflags_specified=no;
1652 fi 1654 fi
1653 1655
1656 if test "${cflags_warning-unset}" != unset
1657 then cflags_warning_specified=yes;
1658 else cflags_warning_specified=no;
1659 fi
1660
1654 xe_save_CFLAGS="$CFLAGS" 1661 xe_save_CFLAGS="$CFLAGS"
1655 1662
1656 # Extract the first word of "gcc", so it can be a program name with args. 1663 # Extract the first word of "gcc", so it can be a program name with args.
1657 set dummy gcc; ac_word=$2 1664 set dummy gcc; ac_word=$2
1658 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1659 echo "configure:1660: checking for $ac_word" >&5 1666 echo "configure:1667: checking for $ac_word" >&5
1660 1667
1661 if test -n "$CC"; then 1668 if test -n "$CC"; then
1662 ac_cv_prog_CC="$CC" # Let the user override the test. 1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1663 else 1670 else
1664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1681 1688
1682 if test -z "$CC"; then 1689 if test -z "$CC"; then
1683 # Extract the first word of "cc", so it can be a program name with args. 1690 # Extract the first word of "cc", so it can be a program name with args.
1684 set dummy cc; ac_word=$2 1691 set dummy cc; ac_word=$2
1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1686 echo "configure:1687: checking for $ac_word" >&5 1693 echo "configure:1694: checking for $ac_word" >&5
1687 1694
1688 if test -n "$CC"; then 1695 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test. 1696 ac_cv_prog_CC="$CC" # Let the user override the test.
1690 else 1697 else
1691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1729 case "`uname -s`" in 1736 case "`uname -s`" in
1730 *win32* | *WIN32*) 1737 *win32* | *WIN32*)
1731 # Extract the first word of "cl", so it can be a program name with args. 1738 # Extract the first word of "cl", so it can be a program name with args.
1732 set dummy cl; ac_word=$2 1739 set dummy cl; ac_word=$2
1733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1734 echo "configure:1735: checking for $ac_word" >&5 1741 echo "configure:1742: checking for $ac_word" >&5
1735 1742
1736 if test -n "$CC"; then 1743 if test -n "$CC"; then
1737 ac_cv_prog_CC="$CC" # Let the user override the test. 1744 ac_cv_prog_CC="$CC" # Let the user override the test.
1738 else 1745 else
1739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1758 fi 1765 fi
1759 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1760 fi 1767 fi
1761 1768
1762 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1763 echo "configure:1764: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1770 echo "configure:1771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1764 1771
1765 ac_ext=c 1772 ac_ext=c
1766 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1773 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1767 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1774 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1768 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1775 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1771 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1778 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1772 cross_compiling=no 1779 cross_compiling=no
1773 1780
1774 cat > conftest.$ac_ext << EOF 1781 cat > conftest.$ac_ext << EOF
1775 1782
1776 #line 1777 "configure" 1783 #line 1784 "configure"
1777 #include "confdefs.h" 1784 #include "confdefs.h"
1778 1785
1779 main(){return(0);} 1786 main(){return(0);}
1780 EOF 1787 EOF
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1782 ac_cv_prog_cc_works=yes 1789 ac_cv_prog_cc_works=yes
1783 # If we can't run a trivial program, we are probably using a cross compiler. 1790 # If we can't run a trivial program, we are probably using a cross compiler.
1784 if (./conftest; exit) 2>/dev/null; then 1791 if (./conftest; exit) 2>/dev/null; then
1785 ac_cv_prog_cc_cross=no 1792 ac_cv_prog_cc_cross=no
1786 else 1793 else
1804 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1805 if test $ac_cv_prog_cc_works = no; then 1812 if test $ac_cv_prog_cc_works = no; then
1806 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1807 fi 1814 fi
1808 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1809 echo "configure:1810: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1816 echo "configure:1817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1810 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1811 cross_compiling=$ac_cv_prog_cc_cross 1818 cross_compiling=$ac_cv_prog_cc_cross
1812 1819
1813 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether we are using GNU C" >&5 1821 echo "configure:1822: checking whether we are using GNU C" >&5
1815 1822
1816 cat > conftest.c <<EOF 1823 cat > conftest.c <<EOF
1817 #ifdef __GNUC__ 1824 #ifdef __GNUC__
1818 yes; 1825 yes;
1819 #endif 1826 #endif
1820 EOF 1827 EOF
1821 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1828 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1822 ac_cv_prog_gcc=yes 1829 ac_cv_prog_gcc=yes
1823 else 1830 else
1824 ac_cv_prog_gcc=no 1831 ac_cv_prog_gcc=no
1825 fi 1832 fi
1826 1833
1834 1841
1835 ac_test_CFLAGS="${CFLAGS+set}" 1842 ac_test_CFLAGS="${CFLAGS+set}"
1836 ac_save_CFLAGS="$CFLAGS" 1843 ac_save_CFLAGS="$CFLAGS"
1837 CFLAGS= 1844 CFLAGS=
1838 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1839 echo "configure:1840: checking whether ${CC-cc} accepts -g" >&5 1846 echo "configure:1847: checking whether ${CC-cc} accepts -g" >&5
1840 1847
1841 echo 'void f(){}' > conftest.c 1848 echo 'void f(){}' > conftest.c
1842 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1849 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1843 ac_cv_prog_cc_g=yes 1850 ac_cv_prog_cc_g=yes
1844 else 1851 else
1867 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1874 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1868 CC=${NON_GNU_CC-cc} 1875 CC=${NON_GNU_CC-cc}
1869 # Extract the first word of "gcc", so it can be a program name with args. 1876 # Extract the first word of "gcc", so it can be a program name with args.
1870 set dummy gcc; ac_word=$2 1877 set dummy gcc; ac_word=$2
1871 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1872 echo "configure:1873: checking for $ac_word" >&5 1879 echo "configure:1880: checking for $ac_word" >&5
1873 1880
1874 if test -n "$CC"; then 1881 if test -n "$CC"; then
1875 ac_cv_prog_CC="$CC" # Let the user override the test. 1882 ac_cv_prog_CC="$CC" # Let the user override the test.
1876 else 1883 else
1877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1894 1901
1895 if test -z "$CC"; then 1902 if test -z "$CC"; then
1896 # Extract the first word of "cc", so it can be a program name with args. 1903 # Extract the first word of "cc", so it can be a program name with args.
1897 set dummy cc; ac_word=$2 1904 set dummy cc; ac_word=$2
1898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1899 echo "configure:1900: checking for $ac_word" >&5 1906 echo "configure:1907: checking for $ac_word" >&5
1900 1907
1901 if test -n "$CC"; then 1908 if test -n "$CC"; then
1902 ac_cv_prog_CC="$CC" # Let the user override the test. 1909 ac_cv_prog_CC="$CC" # Let the user override the test.
1903 else 1910 else
1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1942 case "`uname -s`" in 1949 case "`uname -s`" in
1943 *win32* | *WIN32*) 1950 *win32* | *WIN32*)
1944 # Extract the first word of "cl", so it can be a program name with args. 1951 # Extract the first word of "cl", so it can be a program name with args.
1945 set dummy cl; ac_word=$2 1952 set dummy cl; ac_word=$2
1946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1947 echo "configure:1948: checking for $ac_word" >&5 1954 echo "configure:1955: checking for $ac_word" >&5
1948 1955
1949 if test -n "$CC"; then 1956 if test -n "$CC"; then
1950 ac_cv_prog_CC="$CC" # Let the user override the test. 1957 ac_cv_prog_CC="$CC" # Let the user override the test.
1951 else 1958 else
1952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1971 fi 1978 fi
1972 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1979 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1973 fi 1980 fi
1974 1981
1975 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1982 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1976 echo "configure:1977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1983 echo "configure:1984: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1977 1984
1978 ac_ext=c 1985 ac_ext=c
1979 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1986 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1980 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1987 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1981 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1988 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1984 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1991 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1985 cross_compiling=no 1992 cross_compiling=no
1986 1993
1987 cat > conftest.$ac_ext << EOF 1994 cat > conftest.$ac_ext << EOF
1988 1995
1989 #line 1990 "configure" 1996 #line 1997 "configure"
1990 #include "confdefs.h" 1997 #include "confdefs.h"
1991 1998
1992 main(){return(0);} 1999 main(){return(0);}
1993 EOF 2000 EOF
1994 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1995 ac_cv_prog_cc_works=yes 2002 ac_cv_prog_cc_works=yes
1996 # If we can't run a trivial program, we are probably using a cross compiler. 2003 # If we can't run a trivial program, we are probably using a cross compiler.
1997 if (./conftest; exit) 2>/dev/null; then 2004 if (./conftest; exit) 2>/dev/null; then
1998 ac_cv_prog_cc_cross=no 2005 ac_cv_prog_cc_cross=no
1999 else 2006 else
2017 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2024 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2018 if test $ac_cv_prog_cc_works = no; then 2025 if test $ac_cv_prog_cc_works = no; then
2019 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2026 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2020 fi 2027 fi
2021 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2022 echo "configure:2023: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2029 echo "configure:2030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2023 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2030 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2024 cross_compiling=$ac_cv_prog_cc_cross 2031 cross_compiling=$ac_cv_prog_cc_cross
2025 2032
2026 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2033 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2027 echo "configure:2028: checking whether we are using GNU C" >&5 2034 echo "configure:2035: checking whether we are using GNU C" >&5
2028 2035
2029 cat > conftest.c <<EOF 2036 cat > conftest.c <<EOF
2030 #ifdef __GNUC__ 2037 #ifdef __GNUC__
2031 yes; 2038 yes;
2032 #endif 2039 #endif
2033 EOF 2040 EOF
2034 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2041 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2035 ac_cv_prog_gcc=yes 2042 ac_cv_prog_gcc=yes
2036 else 2043 else
2037 ac_cv_prog_gcc=no 2044 ac_cv_prog_gcc=no
2038 fi 2045 fi
2039 2046
2047 2054
2048 ac_test_CFLAGS="${CFLAGS+set}" 2055 ac_test_CFLAGS="${CFLAGS+set}"
2049 ac_save_CFLAGS="$CFLAGS" 2056 ac_save_CFLAGS="$CFLAGS"
2050 CFLAGS= 2057 CFLAGS=
2051 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2058 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2052 echo "configure:2053: checking whether ${CC-cc} accepts -g" >&5 2059 echo "configure:2060: checking whether ${CC-cc} accepts -g" >&5
2053 2060
2054 echo 'void f(){}' > conftest.c 2061 echo 'void f(){}' > conftest.c
2055 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2062 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2056 ac_cv_prog_cc_g=yes 2063 ac_cv_prog_cc_g=yes
2057 else 2064 else
2080 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2087 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2081 CC=gcc 2088 CC=gcc
2082 # Extract the first word of "gcc", so it can be a program name with args. 2089 # Extract the first word of "gcc", so it can be a program name with args.
2083 set dummy gcc; ac_word=$2 2090 set dummy gcc; ac_word=$2
2084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2085 echo "configure:2086: checking for $ac_word" >&5 2092 echo "configure:2093: checking for $ac_word" >&5
2086 2093
2087 if test -n "$CC"; then 2094 if test -n "$CC"; then
2088 ac_cv_prog_CC="$CC" # Let the user override the test. 2095 ac_cv_prog_CC="$CC" # Let the user override the test.
2089 else 2096 else
2090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2107 2114
2108 if test -z "$CC"; then 2115 if test -z "$CC"; then
2109 # Extract the first word of "cc", so it can be a program name with args. 2116 # Extract the first word of "cc", so it can be a program name with args.
2110 set dummy cc; ac_word=$2 2117 set dummy cc; ac_word=$2
2111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2112 echo "configure:2113: checking for $ac_word" >&5 2119 echo "configure:2120: checking for $ac_word" >&5
2113 2120
2114 if test -n "$CC"; then 2121 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test. 2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else 2123 else
2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2155 case "`uname -s`" in 2162 case "`uname -s`" in
2156 *win32* | *WIN32*) 2163 *win32* | *WIN32*)
2157 # Extract the first word of "cl", so it can be a program name with args. 2164 # Extract the first word of "cl", so it can be a program name with args.
2158 set dummy cl; ac_word=$2 2165 set dummy cl; ac_word=$2
2159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2160 echo "configure:2161: checking for $ac_word" >&5 2167 echo "configure:2168: checking for $ac_word" >&5
2161 2168
2162 if test -n "$CC"; then 2169 if test -n "$CC"; then
2163 ac_cv_prog_CC="$CC" # Let the user override the test. 2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2164 else 2171 else
2165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2184 fi 2191 fi
2185 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2192 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2186 fi 2193 fi
2187 2194
2188 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2189 echo "configure:2190: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2196 echo "configure:2197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2190 2197
2191 ac_ext=c 2198 ac_ext=c
2192 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2199 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2193 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2200 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2194 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2201 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2197 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2204 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2198 cross_compiling=no 2205 cross_compiling=no
2199 2206
2200 cat > conftest.$ac_ext << EOF 2207 cat > conftest.$ac_ext << EOF
2201 2208
2202 #line 2203 "configure" 2209 #line 2210 "configure"
2203 #include "confdefs.h" 2210 #include "confdefs.h"
2204 2211
2205 main(){return(0);} 2212 main(){return(0);}
2206 EOF 2213 EOF
2207 if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2214 if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2208 ac_cv_prog_cc_works=yes 2215 ac_cv_prog_cc_works=yes
2209 # If we can't run a trivial program, we are probably using a cross compiler. 2216 # If we can't run a trivial program, we are probably using a cross compiler.
2210 if (./conftest; exit) 2>/dev/null; then 2217 if (./conftest; exit) 2>/dev/null; then
2211 ac_cv_prog_cc_cross=no 2218 ac_cv_prog_cc_cross=no
2212 else 2219 else
2230 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2237 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2231 if test $ac_cv_prog_cc_works = no; then 2238 if test $ac_cv_prog_cc_works = no; then
2232 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2239 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2233 fi 2240 fi
2234 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2241 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2235 echo "configure:2236: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2242 echo "configure:2243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2236 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2243 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2237 cross_compiling=$ac_cv_prog_cc_cross 2244 cross_compiling=$ac_cv_prog_cc_cross
2238 2245
2239 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2246 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2240 echo "configure:2241: checking whether we are using GNU C" >&5 2247 echo "configure:2248: checking whether we are using GNU C" >&5
2241 2248
2242 cat > conftest.c <<EOF 2249 cat > conftest.c <<EOF
2243 #ifdef __GNUC__ 2250 #ifdef __GNUC__
2244 yes; 2251 yes;
2245 #endif 2252 #endif
2246 EOF 2253 EOF
2247 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2254 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2248 ac_cv_prog_gcc=yes 2255 ac_cv_prog_gcc=yes
2249 else 2256 else
2250 ac_cv_prog_gcc=no 2257 ac_cv_prog_gcc=no
2251 fi 2258 fi
2252 2259
2260 2267
2261 ac_test_CFLAGS="${CFLAGS+set}" 2268 ac_test_CFLAGS="${CFLAGS+set}"
2262 ac_save_CFLAGS="$CFLAGS" 2269 ac_save_CFLAGS="$CFLAGS"
2263 CFLAGS= 2270 CFLAGS=
2264 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2271 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2265 echo "configure:2266: checking whether ${CC-cc} accepts -g" >&5 2272 echo "configure:2273: checking whether ${CC-cc} accepts -g" >&5
2266 2273
2267 echo 'void f(){}' > conftest.c 2274 echo 'void f(){}' > conftest.c
2268 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2275 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2269 ac_cv_prog_cc_g=yes 2276 ac_cv_prog_cc_g=yes
2270 else 2277 else
2297 test -n "$CPP" -a -d "$CPP" && CPP= 2304 test -n "$CPP" -a -d "$CPP" && CPP=
2298 2305
2299 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2306 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2300 2307
2301 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2308 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2302 echo "configure:2303: checking how to run the C preprocessor" >&5 2309 echo "configure:2310: checking how to run the C preprocessor" >&5
2303 # On Suns, sometimes $CPP names a directory. 2310 # On Suns, sometimes $CPP names a directory.
2304 if test -n "$CPP" && test -d "$CPP"; then 2311 if test -n "$CPP" && test -d "$CPP"; then
2305 CPP= 2312 CPP=
2306 fi 2313 fi
2307 if test -z "$CPP"; then 2314 if test -z "$CPP"; then
2310 # substituted into the Makefile and "${CC-cc}" will confuse make. 2317 # substituted into the Makefile and "${CC-cc}" will confuse make.
2311 CPP="${CC-cc} -E" 2318 CPP="${CC-cc} -E"
2312 # On the NeXT, cc -E runs the code through the compiler's parser, 2319 # On the NeXT, cc -E runs the code through the compiler's parser,
2313 # not just through cpp. 2320 # not just through cpp.
2314 cat > conftest.$ac_ext <<EOF 2321 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure" 2322 #line 2323 "configure"
2316 #include "confdefs.h" 2323 #include "confdefs.h"
2317 #include <assert.h> 2324 #include <assert.h>
2318 Syntax Error 2325 Syntax Error
2319 EOF 2326 EOF
2320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2321 { (eval echo configure:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2328 { (eval echo configure:2329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2323 if test -z "$ac_err"; then 2330 if test -z "$ac_err"; then
2324 : 2331 :
2325 else 2332 else
2326 echo "$ac_err" >&5 2333 echo "$ac_err" >&5
2327 echo "configure: failed program was:" >&5 2334 echo "configure: failed program was:" >&5
2328 cat conftest.$ac_ext >&5 2335 cat conftest.$ac_ext >&5
2329 rm -rf conftest* 2336 rm -rf conftest*
2330 CPP="${CC-cc} -E -traditional-cpp" 2337 CPP="${CC-cc} -E -traditional-cpp"
2331 cat > conftest.$ac_ext <<EOF 2338 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure" 2339 #line 2340 "configure"
2333 #include "confdefs.h" 2340 #include "confdefs.h"
2334 #include <assert.h> 2341 #include <assert.h>
2335 Syntax Error 2342 Syntax Error
2336 EOF 2343 EOF
2337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2338 { (eval echo configure:2339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2345 { (eval echo configure:2346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2340 if test -z "$ac_err"; then 2347 if test -z "$ac_err"; then
2341 : 2348 :
2342 else 2349 else
2343 echo "$ac_err" >&5 2350 echo "$ac_err" >&5
2344 echo "configure: failed program was:" >&5 2351 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5 2352 cat conftest.$ac_ext >&5
2346 rm -rf conftest* 2353 rm -rf conftest*
2347 CPP="${CC-cc} -nologo -E" 2354 CPP="${CC-cc} -nologo -E"
2348 cat > conftest.$ac_ext <<EOF 2355 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure" 2356 #line 2357 "configure"
2350 #include "confdefs.h" 2357 #include "confdefs.h"
2351 #include <assert.h> 2358 #include <assert.h>
2352 Syntax Error 2359 Syntax Error
2353 EOF 2360 EOF
2354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2355 { (eval echo configure:2356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2362 { (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2357 if test -z "$ac_err"; then 2364 if test -z "$ac_err"; then
2358 : 2365 :
2359 else 2366 else
2360 echo "$ac_err" >&5 2367 echo "$ac_err" >&5
2376 echo "$ac_t""$CPP" 1>&6 2383 echo "$ac_t""$CPP" 1>&6
2377 2384
2378 2385
2379 2386
2380 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2387 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2381 echo "configure:2382: checking for AIX" >&5 2388 echo "configure:2389: checking for AIX" >&5
2382 cat > conftest.$ac_ext <<EOF 2389 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure" 2390 #line 2391 "configure"
2384 #include "confdefs.h" 2391 #include "confdefs.h"
2385 #ifdef _AIX 2392 #ifdef _AIX
2386 yes 2393 yes
2387 #endif 2394 #endif
2388 2395
2405 rm -f conftest* 2412 rm -f conftest*
2406 2413
2407 2414
2408 2415
2409 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2416 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2410 echo "configure:2411: checking for GNU libc" >&5 2417 echo "configure:2418: checking for GNU libc" >&5
2411 cat > conftest.$ac_ext <<EOF 2418 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure" 2419 #line 2420 "configure"
2413 #include "confdefs.h" 2420 #include "confdefs.h"
2414 #include <features.h> 2421 #include <features.h>
2415 int main() { 2422 int main() {
2416 2423
2417 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2424 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2419 ******* ======= ******** &&&&&&&& 2426 ******* ======= ******** &&&&&&&&
2420 #endif 2427 #endif
2421 2428
2422 ; return 0; } 2429 ; return 0; }
2423 EOF 2430 EOF
2424 if { (eval echo configure:2425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2431 if { (eval echo configure:2432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2425 rm -rf conftest* 2432 rm -rf conftest*
2426 have_glibc=yes 2433 have_glibc=yes
2427 else 2434 else
2428 echo "configure: failed program was:" >&5 2435 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5 2436 cat conftest.$ac_ext >&5
2496 2503
2497 ;; 2504 ;;
2498 esac 2505 esac
2499 2506
2500 cat > conftest.$ac_ext <<EOF 2507 cat > conftest.$ac_ext <<EOF
2501 #line 2502 "configure" 2508 #line 2509 "configure"
2502 #include "confdefs.h" 2509 #include "confdefs.h"
2503 int main () { 2510 int main () {
2504 #if defined __SUNPRO_C 2511 #if defined __SUNPRO_C
2505 return 11; 2512 return 11;
2506 #elif defined __DECC 2513 #elif defined __DECC
2510 #else 2517 #else
2511 return 0; 2518 return 0;
2512 #endif 2519 #endif
2513 } 2520 }
2514 EOF 2521 EOF
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2522 if { (eval echo configure:2523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2516 then 2523 then
2517 : 2524 :
2518 else 2525 else
2519 conftest_rc="$?" 2526 conftest_rc="$?"
2520 echo "configure: failed program was:" >&5 2527 echo "configure: failed program was:" >&5
2762 2769
2763 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2770 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2764 2771
2765 if test "$__USLC__" = yes; then 2772 if test "$__USLC__" = yes; then
2766 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2773 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2767 echo "configure:2768: checking for whether the -Kalloca compiler flag is needed" >&5 2774 echo "configure:2775: checking for whether the -Kalloca compiler flag is needed" >&5
2768 need_kalloca=no 2775 need_kalloca=no
2769 cat > conftest.$ac_ext <<EOF 2776 cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure" 2777 #line 2778 "configure"
2771 #include "confdefs.h" 2778 #include "confdefs.h"
2772 2779
2773 int main() { 2780 int main() {
2774 void *x = alloca(4); 2781 void *x = alloca(4);
2775 ; return 0; } 2782 ; return 0; }
2776 EOF 2783 EOF
2777 if { (eval echo configure:2778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2778 rm -rf conftest* 2785 rm -rf conftest*
2779 : 2786 :
2780 else 2787 else
2781 echo "configure: failed program was:" >&5 2788 echo "configure: failed program was:" >&5
2782 cat conftest.$ac_ext >&5 2789 cat conftest.$ac_ext >&5
2783 rm -rf conftest* 2790 rm -rf conftest*
2784 2791
2785 xe_save_c_switch_system="$c_switch_system" 2792 xe_save_c_switch_system="$c_switch_system"
2786 c_switch_system="$c_switch_system -Kalloca" 2793 c_switch_system="$c_switch_system -Kalloca"
2787 cat > conftest.$ac_ext <<EOF 2794 cat > conftest.$ac_ext <<EOF
2788 #line 2789 "configure" 2795 #line 2796 "configure"
2789 #include "confdefs.h" 2796 #include "confdefs.h"
2790 2797
2791 int main() { 2798 int main() {
2792 void *x = alloca(4); 2799 void *x = alloca(4);
2793 ; return 0; } 2800 ; return 0; }
2794 EOF 2801 EOF
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2796 rm -rf conftest* 2803 rm -rf conftest*
2797 need_kalloca=yes 2804 need_kalloca=yes
2798 else 2805 else
2799 echo "configure: failed program was:" >&5 2806 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5 2807 cat conftest.$ac_ext >&5
2807 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi 2814 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2808 fi 2815 fi
2809 2816
2810 if test "$cflags_specified" = "no"; then 2817 if test "$cflags_specified" = "no"; then
2811 if test "$GCC" = "yes"; then 2818 if test "$GCC" = "yes"; then
2812 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes" 2819 CFLAGS="-g -O3"
2813 CFLAGS="$CFLAGS -Wsign-compare"
2814 if test "$xemacs_compiler" != "g++"; then
2815 CFLAGS="$CFLAGS -Wshadow"
2816 fi
2817 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2818 elif test "$__SUNPRO_C" = "yes"; then 2820 elif test "$__SUNPRO_C" = "yes"; then
2819 case "$opsys" in 2821 case "$opsys" in
2820 sol2 ) CFLAGS="-v -xO4" ;; 2822 sol2 ) CFLAGS="-xO4" ;;
2821 sunos4* ) CFLAGS="-xO2";; 2823 sunos4* ) CFLAGS="-xO2" ;;
2822 esac 2824 esac
2823 elif test "$__DECC" = "yes"; then 2825 elif test "$__DECC" = "yes"; then
2824 CFLAGS="-O3" 2826 CFLAGS="-O3"
2825 elif test "$CC" = "xlc"; then 2827 elif test "$CC" = "xlc"; then
2826 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qinfo -qro -qmaxmem=20000" 2828 CFLAGS="-g -O3 -qstrict -qnoansialias -qlibansi -qro -qmaxmem=20000"
2827 else 2829 else
2828 CFLAGS="-O" ; fi 2830 CFLAGS="-O" ; fi
2829 fi 2831 fi
2830 2832
2833
2834 if test "$cflags_warning_specified" = "no"; then
2835 if test "$GCC" = "yes"; then
2836 cflags_warning="-Wall -Wno-switch -Winline -Wmissing-prototypes"
2837 cflags_warning="$cflags_warning -Wsign-compare"
2838 cflags_warning="$cflags_warning -Wundef -Wstrict-prototypes -Wpacked"
2839 if test "$xemacs_compiler" != "g++"; then
2840 cflags_warning="$cflags_warning -Wshadow -Wmissing-declarations"
2841 else
2842 cflags_warning="$cflags_warning -Weffc++"
2843 fi
2844 test "$have_glibc" != "yes" && \
2845 cflags_warning="$cflags_warning -Wpointer-arith"
2846 elif test "$__SUNPRO_C" = "yes"; then
2847 case "$opsys" in
2848 sol2 ) cflags_warning="-v" ;;
2849 esac
2850 elif test "$CC" = "xlc"; then
2851 cflags_warning="-qinfo"
2852 fi
2853 fi
2854
2855 CFLAGS="$cflags_warning $CFLAGS"
2856
2831 if test "$GCC" = "yes"; then 2857 if test "$GCC" = "yes"; then
2832 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2858 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2833 echo "configure:2834: checking for buggy gcc versions" >&5 2859 echo "configure:2860: checking for buggy gcc versions" >&5
2834 GCC_VERSION=`$CC --version` 2860 GCC_VERSION=`$CC --version`
2835 case `uname -s`:`uname -m`:$GCC_VERSION in 2861 case `uname -s`:`uname -m`:$GCC_VERSION in
2836 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2862 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2837 case "$CFLAGS" in 2863 case "$CFLAGS" in
2838 *-O2*|*-O3*) 2864 *-O2*|*-O3*)
2886 echo "$ac_t""no" 1>&6 2912 echo "$ac_t""no" 1>&6
2887 fi 2913 fi
2888 2914
2889 if test "$pdump" != "yes"; then 2915 if test "$pdump" != "yes"; then
2890 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6 2916 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2891 echo "configure:2892: checking for \"-z nocombreloc\" linker flag" >&5 2917 echo "configure:2918: checking for \"-z nocombreloc\" linker flag" >&5
2892 case "`ld --help 2>&1`" in 2918 case "`ld --help 2>&1`" in
2893 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6 2919 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2894 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;; 2920 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2895 *) echo "$ac_t""no" 1>&6 ;; 2921 *) echo "$ac_t""no" 1>&6 ;;
2896 esac 2922 esac
2975 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 3001 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2976 echo " xemacs will be linked with \"dumper.o\"" 3002 echo " xemacs will be linked with \"dumper.o\""
2977 fi 3003 fi
2978 3004
2979 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3005 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2980 echo "configure:2981: checking for dynodump" >&5 3006 echo "configure:3007: checking for dynodump" >&5
2981 if test "$unexec" != "unexsol2.o"; then 3007 if test "$unexec" != "unexsol2.o"; then
2982 echo "$ac_t""no" 1>&6 3008 echo "$ac_t""no" 1>&6
2983 else 3009 else
2984 echo "$ac_t""yes" 1>&6 3010 echo "$ac_t""yes" 1>&6
2985 { test "$extra_verbose" = "yes" && cat << \EOF 3011 { test "$extra_verbose" = "yes" && cat << \EOF
3013 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 3039 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
3014 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 3040 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
3015 done 3041 done
3016 3042
3017 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 3043 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
3018 echo "configure:3019: checking for terminateAndUnload in -lC" >&5 3044 echo "configure:3045: checking for terminateAndUnload in -lC" >&5
3019 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 3045 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
3020 3046
3021 xe_check_libs=" -lC " 3047 xe_check_libs=" -lC "
3022 cat > conftest.$ac_ext <<EOF 3048 cat > conftest.$ac_ext <<EOF
3023 #line 3024 "configure" 3049 #line 3050 "configure"
3024 #include "confdefs.h" 3050 #include "confdefs.h"
3025 /* Override any gcc2 internal prototype to avoid an error. */ 3051 /* Override any gcc2 internal prototype to avoid an error. */
3026 /* We use char because int might match the return type of a gcc2 3052 /* We use char because int might match the return type of a gcc2
3027 builtin and then its argument prototype would still apply. */ 3053 builtin and then its argument prototype would still apply. */
3028 char terminateAndUnload(); 3054 char terminateAndUnload();
3029 3055
3030 int main() { 3056 int main() {
3031 terminateAndUnload() 3057 terminateAndUnload()
3032 ; return 0; } 3058 ; return 0; }
3033 EOF 3059 EOF
3034 if { (eval echo configure:3035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3060 if { (eval echo configure:3061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3035 rm -rf conftest* 3061 rm -rf conftest*
3036 eval "ac_cv_lib_$ac_lib_var=yes" 3062 eval "ac_cv_lib_$ac_lib_var=yes"
3037 else 3063 else
3038 echo "configure: failed program was:" >&5 3064 echo "configure: failed program was:" >&5
3039 cat conftest.$ac_ext >&5 3065 cat conftest.$ac_ext >&5
3137 esac 3163 esac
3138 fi 3164 fi
3139 3165
3140 if test "$add_runtime_path" = "yes"; then 3166 if test "$add_runtime_path" = "yes"; then
3141 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3167 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3142 echo "configure:3143: checking "for runtime libraries flag"" >&5 3168 echo "configure:3169: checking "for runtime libraries flag"" >&5
3143 case "$opsys" in 3169 case "$opsys" in
3144 sol2 ) dash_r="-R" ;; 3170 sol2 ) dash_r="-R" ;;
3145 decosf* | linux* | irix*) dash_r="-rpath " ;; 3171 decosf* | linux* | irix*) dash_r="-rpath " ;;
3146 *) 3172 *)
3147 dash_r="" 3173 dash_r=""
3159 esac 3185 esac
3160 shift 3186 shift
3161 done 3187 done
3162 fi 3188 fi
3163 cat > conftest.$ac_ext <<EOF 3189 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure" 3190 #line 3191 "configure"
3165 #include "confdefs.h" 3191 #include "confdefs.h"
3166 3192
3167 int main() { 3193 int main() {
3168 3194
3169 ; return 0; } 3195 ; return 0; }
3170 EOF 3196 EOF
3171 if { (eval echo configure:3172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3197 if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3172 rm -rf conftest* 3198 rm -rf conftest*
3173 dash_r="$try_dash_r" 3199 dash_r="$try_dash_r"
3174 else 3200 else
3175 echo "configure: failed program was:" >&5 3201 echo "configure: failed program was:" >&5
3176 cat conftest.$ac_ext >&5 3202 cat conftest.$ac_ext >&5
3267 else 3293 else
3268 doug_lea_malloc=no 3294 doug_lea_malloc=no
3269 fi 3295 fi
3270 after_morecore_hook_exists=yes 3296 after_morecore_hook_exists=yes
3271 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3297 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3272 echo "configure:3273: checking for malloc_set_state" >&5 3298 echo "configure:3299: checking for malloc_set_state" >&5
3273 3299
3274 cat > conftest.$ac_ext <<EOF 3300 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure" 3301 #line 3302 "configure"
3276 #include "confdefs.h" 3302 #include "confdefs.h"
3277 /* System header to define __stub macros and hopefully few prototypes, 3303 /* System header to define __stub macros and hopefully few prototypes,
3278 which can conflict with char malloc_set_state(); below. */ 3304 which can conflict with char malloc_set_state(); below. */
3279 #include <assert.h> 3305 #include <assert.h>
3280 /* Override any gcc2 internal prototype to avoid an error. */ 3306 /* Override any gcc2 internal prototype to avoid an error. */
3293 malloc_set_state(); 3319 malloc_set_state();
3294 #endif 3320 #endif
3295 3321
3296 ; return 0; } 3322 ; return 0; }
3297 EOF 3323 EOF
3298 if { (eval echo configure:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3324 if { (eval echo configure:3325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3299 rm -rf conftest* 3325 rm -rf conftest*
3300 eval "ac_cv_func_malloc_set_state=yes" 3326 eval "ac_cv_func_malloc_set_state=yes"
3301 else 3327 else
3302 echo "configure: failed program was:" >&5 3328 echo "configure: failed program was:" >&5
3303 cat conftest.$ac_ext >&5 3329 cat conftest.$ac_ext >&5
3313 echo "$ac_t""no" 1>&6 3339 echo "$ac_t""no" 1>&6
3314 doug_lea_malloc=no 3340 doug_lea_malloc=no
3315 fi 3341 fi
3316 3342
3317 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3343 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3318 echo "configure:3319: checking whether __after_morecore_hook exists" >&5 3344 echo "configure:3345: checking whether __after_morecore_hook exists" >&5
3319 cat > conftest.$ac_ext <<EOF 3345 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure" 3346 #line 3347 "configure"
3321 #include "confdefs.h" 3347 #include "confdefs.h"
3322 extern void (* __after_morecore_hook)(); 3348 extern void (* __after_morecore_hook)();
3323 int main() { 3349 int main() {
3324 __after_morecore_hook = 0 3350 __after_morecore_hook = 0
3325 ; return 0; } 3351 ; return 0; }
3326 EOF 3352 EOF
3327 if { (eval echo configure:3328: \"$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
3328 rm -rf conftest* 3354 rm -rf conftest*
3329 echo "$ac_t""yes" 1>&6 3355 echo "$ac_t""yes" 1>&6
3330 else 3356 else
3331 echo "configure: failed program was:" >&5 3357 echo "configure: failed program was:" >&5
3332 cat conftest.$ac_ext >&5 3358 cat conftest.$ac_ext >&5
3378 3404
3379 3405
3380 # Extract the first word of "ranlib", so it can be a program name with args. 3406 # Extract the first word of "ranlib", so it can be a program name with args.
3381 set dummy ranlib; ac_word=$2 3407 set dummy ranlib; ac_word=$2
3382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3383 echo "configure:3384: checking for $ac_word" >&5 3409 echo "configure:3410: checking for $ac_word" >&5
3384 3410
3385 if test -n "$RANLIB"; then 3411 if test -n "$RANLIB"; then
3386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3387 else 3413 else
3388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3436 # ./install, which can be erroneously created by make from ./install.sh. 3462 # ./install, which can be erroneously created by make from ./install.sh.
3437 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3463 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3438 echo "configure:3439: checking for a BSD compatible install" >&5 3464 echo "configure:3465: checking for a BSD compatible install" >&5
3439 if test -z "$INSTALL"; then 3465 if test -z "$INSTALL"; then
3440 3466
3441 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3467 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3442 for ac_dir in $PATH; do 3468 for ac_dir in $PATH; do
3443 # Account for people who put trailing slashes in PATH elements. 3469 # Account for people who put trailing slashes in PATH elements.
3487 for ac_prog in 'bison -y' byacc 3513 for ac_prog in 'bison -y' byacc
3488 do 3514 do
3489 # Extract the first word of "$ac_prog", so it can be a program name with args. 3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3490 set dummy $ac_prog; ac_word=$2 3516 set dummy $ac_prog; ac_word=$2
3491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3517 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_word" >&5 3518 echo "configure:3519: checking for $ac_word" >&5
3493 3519
3494 if test -n "$YACC"; then 3520 if test -n "$YACC"; then
3495 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3521 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3496 else 3522 else
3497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 3545
3520 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h 3546 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h wchar.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/times.h sys/un.h ulimit.h unistd.h
3521 do 3547 do
3522 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3523 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3524 echo "configure:3525: checking for $ac_hdr" >&5 3550 echo "configure:3551: checking for $ac_hdr" >&5
3525 3551
3526 cat > conftest.$ac_ext <<EOF 3552 cat > conftest.$ac_ext <<EOF
3527 #line 3528 "configure" 3553 #line 3554 "configure"
3528 #include "confdefs.h" 3554 #include "confdefs.h"
3529 #include <$ac_hdr> 3555 #include <$ac_hdr>
3530 EOF 3556 EOF
3531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3532 { (eval echo configure:3533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3558 { (eval echo configure:3559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3534 if test -z "$ac_err"; then 3560 if test -z "$ac_err"; then
3535 rm -rf conftest* 3561 rm -rf conftest*
3536 eval "ac_cv_header_$ac_safe=yes" 3562 eval "ac_cv_header_$ac_safe=yes"
3537 else 3563 else
3557 echo "$ac_t""no" 1>&6 3583 echo "$ac_t""no" 1>&6
3558 fi 3584 fi
3559 done 3585 done
3560 3586
3561 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3587 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3562 echo "configure:3563: checking for sys/wait.h that is POSIX.1 compatible" >&5 3588 echo "configure:3589: checking for sys/wait.h that is POSIX.1 compatible" >&5
3563 3589
3564 cat > conftest.$ac_ext <<EOF 3590 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure" 3591 #line 3592 "configure"
3566 #include "confdefs.h" 3592 #include "confdefs.h"
3567 #include <sys/types.h> 3593 #include <sys/types.h>
3568 #include <sys/wait.h> 3594 #include <sys/wait.h>
3569 #ifndef WEXITSTATUS 3595 #ifndef WEXITSTATUS
3570 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3596 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3576 int s; 3602 int s;
3577 wait (&s); 3603 wait (&s);
3578 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3579 ; return 0; } 3605 ; return 0; }
3580 EOF 3606 EOF
3581 if { (eval echo configure:3582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3607 if { (eval echo configure:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3582 rm -rf conftest* 3608 rm -rf conftest*
3583 ac_cv_header_sys_wait_h=yes 3609 ac_cv_header_sys_wait_h=yes
3584 else 3610 else
3585 echo "configure: failed program was:" >&5 3611 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5 3612 cat conftest.$ac_ext >&5
3600 } 3626 }
3601 3627
3602 fi 3628 fi
3603 3629
3604 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3630 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3605 echo "configure:3606: checking for ANSI C header files" >&5 3631 echo "configure:3632: checking for ANSI C header files" >&5
3606 3632
3607 cat > conftest.$ac_ext <<EOF 3633 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure" 3634 #line 3635 "configure"
3609 #include "confdefs.h" 3635 #include "confdefs.h"
3610 #include <stdlib.h> 3636 #include <stdlib.h>
3611 #include <stdarg.h> 3637 #include <stdarg.h>
3612 #include <string.h> 3638 #include <string.h>
3613 #include <float.h> 3639 #include <float.h>
3614 EOF 3640 EOF
3615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3616 { (eval echo configure:3617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3642 { (eval echo configure:3643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3618 if test -z "$ac_err"; then 3644 if test -z "$ac_err"; then
3619 rm -rf conftest* 3645 rm -rf conftest*
3620 ac_cv_header_stdc=yes 3646 ac_cv_header_stdc=yes
3621 else 3647 else
3628 rm -f conftest* 3654 rm -f conftest*
3629 3655
3630 if test $ac_cv_header_stdc = yes; then 3656 if test $ac_cv_header_stdc = yes; then
3631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3657 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3632 cat > conftest.$ac_ext <<EOF 3658 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure" 3659 #line 3660 "configure"
3634 #include "confdefs.h" 3660 #include "confdefs.h"
3635 #include <string.h> 3661 #include <string.h>
3636 EOF 3662 EOF
3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3638 egrep "memchr" >/dev/null 2>&1; then 3664 egrep "memchr" >/dev/null 2>&1; then
3646 fi 3672 fi
3647 3673
3648 if test $ac_cv_header_stdc = yes; then 3674 if test $ac_cv_header_stdc = yes; then
3649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3675 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650 cat > conftest.$ac_ext <<EOF 3676 cat > conftest.$ac_ext <<EOF
3651 #line 3652 "configure" 3677 #line 3678 "configure"
3652 #include "confdefs.h" 3678 #include "confdefs.h"
3653 #include <stdlib.h> 3679 #include <stdlib.h>
3654 EOF 3680 EOF
3655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3656 egrep "free" >/dev/null 2>&1; then 3682 egrep "free" >/dev/null 2>&1; then
3664 fi 3690 fi
3665 3691
3666 if test $ac_cv_header_stdc = yes; then 3692 if test $ac_cv_header_stdc = yes; then
3667 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3668 cat > conftest.$ac_ext <<EOF 3694 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure" 3695 #line 3696 "configure"
3670 #include "confdefs.h" 3696 #include "confdefs.h"
3671 #include <ctype.h> 3697 #include <ctype.h>
3672 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3698 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3673 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3699 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3675 int main () { int i; for (i = 0; i < 256; i++) 3701 int main () { int i; for (i = 0; i < 256; i++)
3676 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3702 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3677 exit (0); } 3703 exit (0); }
3678 3704
3679 EOF 3705 EOF
3680 if { (eval echo configure:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3681 then 3707 then
3682 : 3708 :
3683 else 3709 else
3684 conftest_rc="$?" 3710 conftest_rc="$?"
3685 echo "configure: failed program was:" >&5 3711 echo "configure: failed program was:" >&5
3701 } 3727 }
3702 3728
3703 fi 3729 fi
3704 3730
3705 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3731 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3706 echo "configure:3707: checking whether time.h and sys/time.h may both be included" >&5 3732 echo "configure:3733: checking whether time.h and sys/time.h may both be included" >&5
3707 3733
3708 cat > conftest.$ac_ext <<EOF 3734 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure" 3735 #line 3736 "configure"
3710 #include "confdefs.h" 3736 #include "confdefs.h"
3711 #include <sys/types.h> 3737 #include <sys/types.h>
3712 #include <sys/time.h> 3738 #include <sys/time.h>
3713 #include <time.h> 3739 #include <time.h>
3714 int main() { 3740 int main() {
3715 struct tm *tp; 3741 struct tm *tp;
3716 ; return 0; } 3742 ; return 0; }
3717 EOF 3743 EOF
3718 if { (eval echo configure:3719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3744 if { (eval echo configure:3745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719 rm -rf conftest* 3745 rm -rf conftest*
3720 ac_cv_header_time=yes 3746 ac_cv_header_time=yes
3721 else 3747 else
3722 echo "configure: failed program was:" >&5 3748 echo "configure: failed program was:" >&5
3723 cat conftest.$ac_ext >&5 3749 cat conftest.$ac_ext >&5
3737 } 3763 }
3738 3764
3739 fi 3765 fi
3740 3766
3741 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3767 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3742 echo "configure:3743: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3768 echo "configure:3769: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3743 3769
3744 cat > conftest.$ac_ext <<EOF 3770 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure" 3771 #line 3772 "configure"
3746 #include "confdefs.h" 3772 #include "confdefs.h"
3747 #include <sys/types.h> 3773 #include <sys/types.h>
3748 #include <signal.h> 3774 #include <signal.h>
3749 /* NetBSD declares sys_siglist in unistd.h. */ 3775 /* NetBSD declares sys_siglist in unistd.h. */
3750 #ifdef HAVE_UNISTD_H 3776 #ifdef HAVE_UNISTD_H
3752 #endif 3778 #endif
3753 int main() { 3779 int main() {
3754 char *msg = *(sys_siglist + 1); 3780 char *msg = *(sys_siglist + 1);
3755 ; return 0; } 3781 ; return 0; }
3756 EOF 3782 EOF
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3783 if { (eval echo configure:3784: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3758 rm -rf conftest* 3784 rm -rf conftest*
3759 ac_cv_decl_sys_siglist=yes 3785 ac_cv_decl_sys_siglist=yes
3760 else 3786 else
3761 echo "configure: failed program was:" >&5 3787 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5 3788 cat conftest.$ac_ext >&5
3778 fi 3804 fi
3779 3805
3780 3806
3781 3807
3782 echo $ac_n "checking for utime""... $ac_c" 1>&6 3808 echo $ac_n "checking for utime""... $ac_c" 1>&6
3783 echo "configure:3784: checking for utime" >&5 3809 echo "configure:3810: checking for utime" >&5
3784 cat > conftest.$ac_ext <<EOF 3810 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure" 3811 #line 3812 "configure"
3786 #include "confdefs.h" 3812 #include "confdefs.h"
3787 #include <sys/types.h> 3813 #include <sys/types.h>
3788 #include <utime.h> 3814 #include <utime.h>
3789 int main() { 3815 int main() {
3790 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 3816 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3791 ; return 0; } 3817 ; return 0; }
3792 EOF 3818 EOF
3793 if { (eval echo configure:3794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3819 if { (eval echo configure:3820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3794 rm -rf conftest* 3820 rm -rf conftest*
3795 echo "$ac_t""yes" 1>&6 3821 echo "$ac_t""yes" 1>&6
3796 { test "$extra_verbose" = "yes" && cat << \EOF 3822 { test "$extra_verbose" = "yes" && cat << \EOF
3797 Defining HAVE_UTIME 3823 Defining HAVE_UTIME
3798 EOF 3824 EOF
3807 rm -rf conftest* 3833 rm -rf conftest*
3808 echo "$ac_t""no" 1>&6 3834 echo "$ac_t""no" 1>&6
3809 for ac_func in utimes 3835 for ac_func in utimes
3810 do 3836 do
3811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3837 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3812 echo "configure:3813: checking for $ac_func" >&5 3838 echo "configure:3839: checking for $ac_func" >&5
3813 3839
3814 cat > conftest.$ac_ext <<EOF 3840 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure" 3841 #line 3842 "configure"
3816 #include "confdefs.h" 3842 #include "confdefs.h"
3817 /* System header to define __stub macros and hopefully few prototypes, 3843 /* System header to define __stub macros and hopefully few prototypes,
3818 which can conflict with char $ac_func(); below. */ 3844 which can conflict with char $ac_func(); below. */
3819 #include <assert.h> 3845 #include <assert.h>
3820 /* Override any gcc2 internal prototype to avoid an error. */ 3846 /* Override any gcc2 internal prototype to avoid an error. */
3833 $ac_func(); 3859 $ac_func();
3834 #endif 3860 #endif
3835 3861
3836 ; return 0; } 3862 ; return 0; }
3837 EOF 3863 EOF
3838 if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3839 rm -rf conftest* 3865 rm -rf conftest*
3840 eval "ac_cv_func_$ac_func=yes" 3866 eval "ac_cv_func_$ac_func=yes"
3841 else 3867 else
3842 echo "configure: failed program was:" >&5 3868 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5 3869 cat conftest.$ac_ext >&5
3865 fi 3891 fi
3866 rm -f conftest* 3892 rm -f conftest*
3867 3893
3868 3894
3869 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3895 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3870 echo "configure:3871: checking return type of signal handlers" >&5 3896 echo "configure:3897: checking return type of signal handlers" >&5
3871 3897
3872 cat > conftest.$ac_ext <<EOF 3898 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure" 3899 #line 3900 "configure"
3874 #include "confdefs.h" 3900 #include "confdefs.h"
3875 #include <sys/types.h> 3901 #include <sys/types.h>
3876 #include <signal.h> 3902 #include <signal.h>
3877 #ifdef signal 3903 #ifdef signal
3878 #undef signal 3904 #undef signal
3885 3911
3886 int main() { 3912 int main() {
3887 int i; 3913 int i;
3888 ; return 0; } 3914 ; return 0; }
3889 EOF 3915 EOF
3890 if { (eval echo configure:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3916 if { (eval echo configure:3917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3891 rm -rf conftest* 3917 rm -rf conftest*
3892 ac_cv_type_signal=void 3918 ac_cv_type_signal=void
3893 else 3919 else
3894 echo "configure: failed program was:" >&5 3920 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5 3921 cat conftest.$ac_ext >&5
3907 EOF 3933 EOF
3908 } 3934 }
3909 3935
3910 3936
3911 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3937 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3912 echo "configure:3913: checking for size_t" >&5 3938 echo "configure:3939: checking for size_t" >&5
3913 3939
3914 cat > conftest.$ac_ext <<EOF 3940 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure" 3941 #line 3942 "configure"
3916 #include "confdefs.h" 3942 #include "confdefs.h"
3917 #include <sys/types.h> 3943 #include <sys/types.h>
3918 #if STDC_HEADERS 3944 #if STDC_HEADERS
3919 #include <stdlib.h> 3945 #include <stdlib.h>
3920 #include <stddef.h> 3946 #include <stddef.h>
3941 } 3967 }
3942 3968
3943 fi 3969 fi
3944 3970
3945 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3971 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3946 echo "configure:3947: checking for pid_t" >&5 3972 echo "configure:3973: checking for pid_t" >&5
3947 3973
3948 cat > conftest.$ac_ext <<EOF 3974 cat > conftest.$ac_ext <<EOF
3949 #line 3950 "configure" 3975 #line 3976 "configure"
3950 #include "confdefs.h" 3976 #include "confdefs.h"
3951 #include <sys/types.h> 3977 #include <sys/types.h>
3952 #if STDC_HEADERS 3978 #if STDC_HEADERS
3953 #include <stdlib.h> 3979 #include <stdlib.h>
3954 #include <stddef.h> 3980 #include <stddef.h>
3975 } 4001 }
3976 4002
3977 fi 4003 fi
3978 4004
3979 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 4005 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3980 echo "configure:3981: checking for uid_t in sys/types.h" >&5 4006 echo "configure:4007: checking for uid_t in sys/types.h" >&5
3981 4007
3982 cat > conftest.$ac_ext <<EOF 4008 cat > conftest.$ac_ext <<EOF
3983 #line 3984 "configure" 4009 #line 4010 "configure"
3984 #include "confdefs.h" 4010 #include "confdefs.h"
3985 #include <sys/types.h> 4011 #include <sys/types.h>
3986 EOF 4012 EOF
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 egrep "uid_t" >/dev/null 2>&1; then 4014 egrep "uid_t" >/dev/null 2>&1; then
4014 } 4040 }
4015 4041
4016 fi 4042 fi
4017 4043
4018 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 4044 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4019 echo "configure:4020: checking for mode_t" >&5 4045 echo "configure:4046: checking for mode_t" >&5
4020 4046
4021 cat > conftest.$ac_ext <<EOF 4047 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure" 4048 #line 4049 "configure"
4023 #include "confdefs.h" 4049 #include "confdefs.h"
4024 #include <sys/types.h> 4050 #include <sys/types.h>
4025 #if STDC_HEADERS 4051 #if STDC_HEADERS
4026 #include <stdlib.h> 4052 #include <stdlib.h>
4027 #include <stddef.h> 4053 #include <stddef.h>
4048 } 4074 }
4049 4075
4050 fi 4076 fi
4051 4077
4052 echo $ac_n "checking for off_t""... $ac_c" 1>&6 4078 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4053 echo "configure:4054: checking for off_t" >&5 4079 echo "configure:4080: checking for off_t" >&5
4054 4080
4055 cat > conftest.$ac_ext <<EOF 4081 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure" 4082 #line 4083 "configure"
4057 #include "confdefs.h" 4083 #include "confdefs.h"
4058 #include <sys/types.h> 4084 #include <sys/types.h>
4059 #if STDC_HEADERS 4085 #if STDC_HEADERS
4060 #include <stdlib.h> 4086 #include <stdlib.h>
4061 #include <stddef.h> 4087 #include <stddef.h>
4082 } 4108 }
4083 4109
4084 fi 4110 fi
4085 4111
4086 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4112 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4087 echo "configure:4088: checking for ssize_t" >&5 4113 echo "configure:4114: checking for ssize_t" >&5
4088 4114
4089 cat > conftest.$ac_ext <<EOF 4115 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure" 4116 #line 4117 "configure"
4091 #include "confdefs.h" 4117 #include "confdefs.h"
4092 #include <sys/types.h> 4118 #include <sys/types.h>
4093 #if STDC_HEADERS 4119 #if STDC_HEADERS
4094 #include <stdlib.h> 4120 #include <stdlib.h>
4095 #include <stddef.h> 4121 #include <stddef.h>
4117 4143
4118 fi 4144 fi
4119 4145
4120 4146
4121 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4147 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4122 echo "configure:4123: checking for socklen_t" >&5 4148 echo "configure:4149: checking for socklen_t" >&5
4123 cat > conftest.$ac_ext <<EOF 4149 cat > conftest.$ac_ext <<EOF
4124 #line 4125 "configure" 4150 #line 4151 "configure"
4125 #include "confdefs.h" 4151 #include "confdefs.h"
4126 #include <sys/socket.h> 4152 #include <sys/socket.h>
4127 socklen_t x; 4153 socklen_t x;
4128 4154
4129 int main() { 4155 int main() {
4130 4156
4131 ; return 0; } 4157 ; return 0; }
4132 EOF 4158 EOF
4133 if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4159 if { (eval echo configure:4160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4134 rm -rf conftest* 4160 rm -rf conftest*
4135 echo "$ac_t""yes" 1>&6 4161 echo "$ac_t""yes" 1>&6
4136 else 4162 else
4137 echo "configure: failed program was:" >&5 4163 echo "configure: failed program was:" >&5
4138 cat conftest.$ac_ext >&5 4164 cat conftest.$ac_ext >&5
4139 rm -rf conftest* 4165 rm -rf conftest*
4140 4166
4141 cat > conftest.$ac_ext <<EOF 4167 cat > conftest.$ac_ext <<EOF
4142 #line 4143 "configure" 4168 #line 4169 "configure"
4143 #include "confdefs.h" 4169 #include "confdefs.h"
4144 #include <sys/socket.h> 4170 #include <sys/socket.h>
4145 int accept (int, struct sockaddr *, size_t *); 4171 int accept (int, struct sockaddr *, size_t *);
4146 4172
4147 int main() { 4173 int main() {
4148 4174
4149 ; return 0; } 4175 ; return 0; }
4150 EOF 4176 EOF
4151 if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4177 if { (eval echo configure:4178: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4152 rm -rf conftest* 4178 rm -rf conftest*
4153 4179
4154 echo "$ac_t""size_t" 1>&6 4180 echo "$ac_t""size_t" 1>&6
4155 { test "$extra_verbose" = "yes" && cat << \EOF 4181 { test "$extra_verbose" = "yes" && cat << \EOF
4156 Defining socklen_t = size_t 4182 Defining socklen_t = size_t
4178 rm -f conftest* 4204 rm -f conftest*
4179 fi 4205 fi
4180 rm -f conftest* 4206 rm -f conftest*
4181 4207
4182 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4208 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4183 echo "configure:4184: checking for struct timeval" >&5 4209 echo "configure:4210: checking for struct timeval" >&5
4184 cat > conftest.$ac_ext <<EOF 4210 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure" 4211 #line 4212 "configure"
4186 #include "confdefs.h" 4212 #include "confdefs.h"
4187 #ifdef TIME_WITH_SYS_TIME 4213 #ifdef TIME_WITH_SYS_TIME
4188 #include <sys/time.h> 4214 #include <sys/time.h>
4189 #include <time.h> 4215 #include <time.h>
4190 #else 4216 #else
4196 #endif 4222 #endif
4197 int main() { 4223 int main() {
4198 static struct timeval x; x.tv_sec = x.tv_usec; 4224 static struct timeval x; x.tv_sec = x.tv_usec;
4199 ; return 0; } 4225 ; return 0; }
4200 EOF 4226 EOF
4201 if { (eval echo configure:4202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4227 if { (eval echo configure:4228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4202 rm -rf conftest* 4228 rm -rf conftest*
4203 echo "$ac_t""yes" 1>&6 4229 echo "$ac_t""yes" 1>&6
4204 HAVE_TIMEVAL=yes 4230 HAVE_TIMEVAL=yes
4205 { test "$extra_verbose" = "yes" && cat << \EOF 4231 { test "$extra_verbose" = "yes" && cat << \EOF
4206 Defining HAVE_TIMEVAL 4232 Defining HAVE_TIMEVAL
4218 HAVE_TIMEVAL=no 4244 HAVE_TIMEVAL=no
4219 fi 4245 fi
4220 rm -f conftest* 4246 rm -f conftest*
4221 4247
4222 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4248 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4223 echo "configure:4224: checking whether struct tm is in sys/time.h or time.h" >&5 4249 echo "configure:4250: checking whether struct tm is in sys/time.h or time.h" >&5
4224 4250
4225 cat > conftest.$ac_ext <<EOF 4251 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure" 4252 #line 4253 "configure"
4227 #include "confdefs.h" 4253 #include "confdefs.h"
4228 #include <sys/types.h> 4254 #include <sys/types.h>
4229 #include <time.h> 4255 #include <time.h>
4230 int main() { 4256 int main() {
4231 struct tm *tp; tp->tm_sec; 4257 struct tm *tp; tp->tm_sec;
4232 ; return 0; } 4258 ; return 0; }
4233 EOF 4259 EOF
4234 if { (eval echo configure:4235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4260 if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4235 rm -rf conftest* 4261 rm -rf conftest*
4236 ac_cv_struct_tm=time.h 4262 ac_cv_struct_tm=time.h
4237 else 4263 else
4238 echo "configure: failed program was:" >&5 4264 echo "configure: failed program was:" >&5
4239 cat conftest.$ac_ext >&5 4265 cat conftest.$ac_ext >&5
4253 } 4279 }
4254 4280
4255 fi 4281 fi
4256 4282
4257 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4283 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4258 echo "configure:4259: checking for tm_zone in struct tm" >&5 4284 echo "configure:4285: checking for tm_zone in struct tm" >&5
4259 4285
4260 cat > conftest.$ac_ext <<EOF 4286 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure" 4287 #line 4288 "configure"
4262 #include "confdefs.h" 4288 #include "confdefs.h"
4263 #include <sys/types.h> 4289 #include <sys/types.h>
4264 #include <$ac_cv_struct_tm> 4290 #include <$ac_cv_struct_tm>
4265 int main() { 4291 int main() {
4266 struct tm tm; tm.tm_zone; 4292 struct tm tm; tm.tm_zone;
4267 ; return 0; } 4293 ; return 0; }
4268 EOF 4294 EOF
4269 if { (eval echo configure:4270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4295 if { (eval echo configure:4296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4270 rm -rf conftest* 4296 rm -rf conftest*
4271 ac_cv_struct_tm_zone=yes 4297 ac_cv_struct_tm_zone=yes
4272 else 4298 else
4273 echo "configure: failed program was:" >&5 4299 echo "configure: failed program was:" >&5
4274 cat conftest.$ac_ext >&5 4300 cat conftest.$ac_ext >&5
4287 EOF 4313 EOF
4288 } 4314 }
4289 4315
4290 else 4316 else
4291 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4317 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4292 echo "configure:4293: checking for tzname" >&5 4318 echo "configure:4319: checking for tzname" >&5
4293 4319
4294 cat > conftest.$ac_ext <<EOF 4320 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure" 4321 #line 4322 "configure"
4296 #include "confdefs.h" 4322 #include "confdefs.h"
4297 #include <time.h> 4323 #include <time.h>
4298 #ifndef tzname /* For SGI. */ 4324 #ifndef tzname /* For SGI. */
4299 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4325 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4300 #endif 4326 #endif
4301 int main() { 4327 int main() {
4302 atoi(*tzname); 4328 atoi(*tzname);
4303 ; return 0; } 4329 ; return 0; }
4304 EOF 4330 EOF
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4331 if { (eval echo configure:4332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 rm -rf conftest* 4332 rm -rf conftest*
4307 ac_cv_var_tzname=yes 4333 ac_cv_var_tzname=yes
4308 else 4334 else
4309 echo "configure: failed program was:" >&5 4335 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5 4336 cat conftest.$ac_ext >&5
4326 fi 4352 fi
4327 fi 4353 fi
4328 4354
4329 4355
4330 echo $ac_n "checking for working const""... $ac_c" 1>&6 4356 echo $ac_n "checking for working const""... $ac_c" 1>&6
4331 echo "configure:4332: checking for working const" >&5 4357 echo "configure:4358: checking for working const" >&5
4332 4358
4333 cat > conftest.$ac_ext <<EOF 4359 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure" 4360 #line 4361 "configure"
4335 #include "confdefs.h" 4361 #include "confdefs.h"
4336 4362
4337 int main() { 4363 int main() {
4338 4364
4339 /* Ultrix mips cc rejects this. */ 4365 /* Ultrix mips cc rejects this. */
4378 const int foo = 10; 4404 const int foo = 10;
4379 } 4405 }
4380 4406
4381 ; return 0; } 4407 ; return 0; }
4382 EOF 4408 EOF
4383 if { (eval echo configure:4384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4409 if { (eval echo configure:4410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4384 rm -rf conftest* 4410 rm -rf conftest*
4385 ac_cv_c_const=yes 4411 ac_cv_c_const=yes
4386 else 4412 else
4387 echo "configure: failed program was:" >&5 4413 echo "configure: failed program was:" >&5
4388 cat conftest.$ac_ext >&5 4414 cat conftest.$ac_ext >&5
4403 4429
4404 fi 4430 fi
4405 4431
4406 4432
4407 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4433 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4408 echo "configure:4409: checking whether ${MAKE-make} sets \${MAKE}" >&5 4434 echo "configure:4435: checking whether ${MAKE-make} sets \${MAKE}" >&5
4409 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4435 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4410 4436
4411 cat > conftestmake <<\EOF 4437 cat > conftestmake <<\EOF
4412 all: 4438 all:
4413 @echo 'ac_maketemp="${MAKE}"' 4439 @echo 'ac_maketemp="${MAKE}"'
4428 SET_MAKE="MAKE=${MAKE-make}" 4454 SET_MAKE="MAKE=${MAKE-make}"
4429 fi 4455 fi
4430 4456
4431 4457
4432 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4458 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4433 echo "configure:4434: checking whether byte ordering is bigendian" >&5 4459 echo "configure:4460: checking whether byte ordering is bigendian" >&5
4434 4460
4435 ac_cv_c_bigendian=unknown 4461 ac_cv_c_bigendian=unknown
4436 # See if sys/param.h defines the BYTE_ORDER macro. 4462 # See if sys/param.h defines the BYTE_ORDER macro.
4437 cat > conftest.$ac_ext <<EOF 4463 cat > conftest.$ac_ext <<EOF
4438 #line 4439 "configure" 4464 #line 4465 "configure"
4439 #include "confdefs.h" 4465 #include "confdefs.h"
4440 #include <sys/types.h> 4466 #include <sys/types.h>
4441 #include <sys/param.h> 4467 #include <sys/param.h>
4442 int main() { 4468 int main() {
4443 4469
4444 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4470 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4445 bogus endian macros 4471 bogus endian macros
4446 #endif 4472 #endif
4447 ; return 0; } 4473 ; return 0; }
4448 EOF 4474 EOF
4449 if { (eval echo configure:4450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4475 if { (eval echo configure:4476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4450 rm -rf conftest* 4476 rm -rf conftest*
4451 # It does; now see whether it defined to BIG_ENDIAN or not. 4477 # It does; now see whether it defined to BIG_ENDIAN or not.
4452 cat > conftest.$ac_ext <<EOF 4478 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure" 4479 #line 4480 "configure"
4454 #include "confdefs.h" 4480 #include "confdefs.h"
4455 #include <sys/types.h> 4481 #include <sys/types.h>
4456 #include <sys/param.h> 4482 #include <sys/param.h>
4457 int main() { 4483 int main() {
4458 4484
4459 #if BYTE_ORDER != BIG_ENDIAN 4485 #if BYTE_ORDER != BIG_ENDIAN
4460 not big endian 4486 not big endian
4461 #endif 4487 #endif
4462 ; return 0; } 4488 ; return 0; }
4463 EOF 4489 EOF
4464 if { (eval echo configure:4465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4490 if { (eval echo configure:4491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4465 rm -rf conftest* 4491 rm -rf conftest*
4466 ac_cv_c_bigendian=yes 4492 ac_cv_c_bigendian=yes
4467 else 4493 else
4468 echo "configure: failed program was:" >&5 4494 echo "configure: failed program was:" >&5
4469 cat conftest.$ac_ext >&5 4495 cat conftest.$ac_ext >&5
4476 cat conftest.$ac_ext >&5 4502 cat conftest.$ac_ext >&5
4477 fi 4503 fi
4478 rm -f conftest* 4504 rm -f conftest*
4479 if test $ac_cv_c_bigendian = unknown; then 4505 if test $ac_cv_c_bigendian = unknown; then
4480 cat > conftest.$ac_ext <<EOF 4506 cat > conftest.$ac_ext <<EOF
4481 #line 4482 "configure" 4507 #line 4508 "configure"
4482 #include "confdefs.h" 4508 #include "confdefs.h"
4483 main () { 4509 main () {
4484 /* Are we little or big endian? From Harbison&Steele. */ 4510 /* Are we little or big endian? From Harbison&Steele. */
4485 union 4511 union
4486 { 4512 {
4489 } u; 4515 } u;
4490 u.l = 1; 4516 u.l = 1;
4491 exit (u.c[sizeof (long) - 1] == 1); 4517 exit (u.c[sizeof (long) - 1] == 1);
4492 } 4518 }
4493 EOF 4519 EOF
4494 if { (eval echo configure:4495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4495 then 4521 then
4496 ac_cv_c_bigendian=no 4522 ac_cv_c_bigendian=no
4497 else 4523 else
4498 conftest_rc="$?" 4524 conftest_rc="$?"
4499 echo "configure: failed program was:" >&5 4525 echo "configure: failed program was:" >&5
4516 4542
4517 fi 4543 fi
4518 4544
4519 4545
4520 echo $ac_n "checking size of short""... $ac_c" 1>&6 4546 echo $ac_n "checking size of short""... $ac_c" 1>&6
4521 echo "configure:4522: checking size of short" >&5 4547 echo "configure:4548: checking size of short" >&5
4522 4548
4523 cat > conftest.$ac_ext <<EOF 4549 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure" 4550 #line 4551 "configure"
4525 #include "confdefs.h" 4551 #include "confdefs.h"
4526 #include <stdio.h> 4552 #include <stdio.h>
4527 main() 4553 main()
4528 { 4554 {
4529 FILE *f=fopen("conftestval", "w"); 4555 FILE *f=fopen("conftestval", "w");
4530 if (!f) exit(1); 4556 if (!f) exit(1);
4531 fprintf(f, "%d\n", sizeof(short)); 4557 fprintf(f, "%d\n", sizeof(short));
4532 exit(0); 4558 exit(0);
4533 } 4559 }
4534 EOF 4560 EOF
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4536 then 4562 then
4537 ac_cv_sizeof_short=`cat conftestval` 4563 ac_cv_sizeof_short=`cat conftestval`
4538 else 4564 else
4539 conftest_rc="$?" 4565 conftest_rc="$?"
4540 echo "configure: failed program was:" >&5 4566 echo "configure: failed program was:" >&5
4558 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4584 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4559 echo "*** PANIC *** Please examine config.log for compilation errors." 4585 echo "*** PANIC *** Please examine config.log for compilation errors."
4560 exit 1 4586 exit 1
4561 fi 4587 fi
4562 echo $ac_n "checking size of int""... $ac_c" 1>&6 4588 echo $ac_n "checking size of int""... $ac_c" 1>&6
4563 echo "configure:4564: checking size of int" >&5 4589 echo "configure:4590: checking size of int" >&5
4564 4590
4565 cat > conftest.$ac_ext <<EOF 4591 cat > conftest.$ac_ext <<EOF
4566 #line 4567 "configure" 4592 #line 4593 "configure"
4567 #include "confdefs.h" 4593 #include "confdefs.h"
4568 #include <stdio.h> 4594 #include <stdio.h>
4569 main() 4595 main()
4570 { 4596 {
4571 FILE *f=fopen("conftestval", "w"); 4597 FILE *f=fopen("conftestval", "w");
4572 if (!f) exit(1); 4598 if (!f) exit(1);
4573 fprintf(f, "%d\n", sizeof(int)); 4599 fprintf(f, "%d\n", sizeof(int));
4574 exit(0); 4600 exit(0);
4575 } 4601 }
4576 EOF 4602 EOF
4577 if { (eval echo configure:4578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4603 if { (eval echo configure:4604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4578 then 4604 then
4579 ac_cv_sizeof_int=`cat conftestval` 4605 ac_cv_sizeof_int=`cat conftestval`
4580 else 4606 else
4581 conftest_rc="$?" 4607 conftest_rc="$?"
4582 echo "configure: failed program was:" >&5 4608 echo "configure: failed program was:" >&5
4594 EOF 4620 EOF
4595 } 4621 }
4596 4622
4597 4623
4598 echo $ac_n "checking size of long""... $ac_c" 1>&6 4624 echo $ac_n "checking size of long""... $ac_c" 1>&6
4599 echo "configure:4600: checking size of long" >&5 4625 echo "configure:4626: checking size of long" >&5
4600 4626
4601 cat > conftest.$ac_ext <<EOF 4627 cat > conftest.$ac_ext <<EOF
4602 #line 4603 "configure" 4628 #line 4629 "configure"
4603 #include "confdefs.h" 4629 #include "confdefs.h"
4604 #include <stdio.h> 4630 #include <stdio.h>
4605 main() 4631 main()
4606 { 4632 {
4607 FILE *f=fopen("conftestval", "w"); 4633 FILE *f=fopen("conftestval", "w");
4608 if (!f) exit(1); 4634 if (!f) exit(1);
4609 fprintf(f, "%d\n", sizeof(long)); 4635 fprintf(f, "%d\n", sizeof(long));
4610 exit(0); 4636 exit(0);
4611 } 4637 }
4612 EOF 4638 EOF
4613 if { (eval echo configure:4614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4614 then 4640 then
4615 ac_cv_sizeof_long=`cat conftestval` 4641 ac_cv_sizeof_long=`cat conftestval`
4616 else 4642 else
4617 conftest_rc="$?" 4643 conftest_rc="$?"
4618 echo "configure: failed program was:" >&5 4644 echo "configure: failed program was:" >&5
4630 EOF 4656 EOF
4631 } 4657 }
4632 4658
4633 4659
4634 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4660 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4635 echo "configure:4636: checking size of long long" >&5 4661 echo "configure:4662: checking size of long long" >&5
4636 4662
4637 cat > conftest.$ac_ext <<EOF 4663 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure" 4664 #line 4665 "configure"
4639 #include "confdefs.h" 4665 #include "confdefs.h"
4640 #include <stdio.h> 4666 #include <stdio.h>
4641 main() 4667 main()
4642 { 4668 {
4643 FILE *f=fopen("conftestval", "w"); 4669 FILE *f=fopen("conftestval", "w");
4644 if (!f) exit(1); 4670 if (!f) exit(1);
4645 fprintf(f, "%d\n", sizeof(long long)); 4671 fprintf(f, "%d\n", sizeof(long long));
4646 exit(0); 4672 exit(0);
4647 } 4673 }
4648 EOF 4674 EOF
4649 if { (eval echo configure:4650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4650 then 4676 then
4651 ac_cv_sizeof_long_long=`cat conftestval` 4677 ac_cv_sizeof_long_long=`cat conftestval`
4652 else 4678 else
4653 conftest_rc="$?" 4679 conftest_rc="$?"
4654 echo "configure: failed program was:" >&5 4680 echo "configure: failed program was:" >&5
4666 EOF 4692 EOF
4667 } 4693 }
4668 4694
4669 4695
4670 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4696 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4671 echo "configure:4672: checking size of void *" >&5 4697 echo "configure:4698: checking size of void *" >&5
4672 4698
4673 cat > conftest.$ac_ext <<EOF 4699 cat > conftest.$ac_ext <<EOF
4674 #line 4675 "configure" 4700 #line 4701 "configure"
4675 #include "confdefs.h" 4701 #include "confdefs.h"
4676 #include <stdio.h> 4702 #include <stdio.h>
4677 main() 4703 main()
4678 { 4704 {
4679 FILE *f=fopen("conftestval", "w"); 4705 FILE *f=fopen("conftestval", "w");
4680 if (!f) exit(1); 4706 if (!f) exit(1);
4681 fprintf(f, "%d\n", sizeof(void *)); 4707 fprintf(f, "%d\n", sizeof(void *));
4682 exit(0); 4708 exit(0);
4683 } 4709 }
4684 EOF 4710 EOF
4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4711 if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4686 then 4712 then
4687 ac_cv_sizeof_void_p=`cat conftestval` 4713 ac_cv_sizeof_void_p=`cat conftestval`
4688 else 4714 else
4689 conftest_rc="$?" 4715 conftest_rc="$?"
4690 echo "configure: failed program was:" >&5 4716 echo "configure: failed program was:" >&5
4703 } 4729 }
4704 4730
4705 4731
4706 4732
4707 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4733 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4708 echo "configure:4709: checking for long file names" >&5 4734 echo "configure:4735: checking for long file names" >&5
4709 4735
4710 ac_cv_sys_long_file_names=yes 4736 ac_cv_sys_long_file_names=yes
4711 # Test for long file names in all the places we know might matter: 4737 # Test for long file names in all the places we know might matter:
4712 # . the current directory, where building will happen 4738 # . the current directory, where building will happen
4713 # $prefix/lib where we will be installing things 4739 # $prefix/lib where we will be installing things
4749 4775
4750 fi 4776 fi
4751 4777
4752 4778
4753 echo $ac_n "checking for sin""... $ac_c" 1>&6 4779 echo $ac_n "checking for sin""... $ac_c" 1>&6
4754 echo "configure:4755: checking for sin" >&5 4780 echo "configure:4781: checking for sin" >&5
4755 4781
4756 cat > conftest.$ac_ext <<EOF 4782 cat > conftest.$ac_ext <<EOF
4757 #line 4758 "configure" 4783 #line 4784 "configure"
4758 #include "confdefs.h" 4784 #include "confdefs.h"
4759 /* System header to define __stub macros and hopefully few prototypes, 4785 /* System header to define __stub macros and hopefully few prototypes,
4760 which can conflict with char sin(); below. */ 4786 which can conflict with char sin(); below. */
4761 #include <assert.h> 4787 #include <assert.h>
4762 /* Override any gcc2 internal prototype to avoid an error. */ 4788 /* Override any gcc2 internal prototype to avoid an error. */
4775 sin(); 4801 sin();
4776 #endif 4802 #endif
4777 4803
4778 ; return 0; } 4804 ; return 0; }
4779 EOF 4805 EOF
4780 if { (eval echo configure:4781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4806 if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 rm -rf conftest* 4807 rm -rf conftest*
4782 eval "ac_cv_func_sin=yes" 4808 eval "ac_cv_func_sin=yes"
4783 else 4809 else
4784 echo "configure: failed program was:" >&5 4810 echo "configure: failed program was:" >&5
4785 cat conftest.$ac_ext >&5 4811 cat conftest.$ac_ext >&5
4793 : 4819 :
4794 else 4820 else
4795 echo "$ac_t""no" 1>&6 4821 echo "$ac_t""no" 1>&6
4796 4822
4797 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4823 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4798 echo "configure:4799: checking for sin in -lm" >&5 4824 echo "configure:4825: checking for sin in -lm" >&5
4799 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4825 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4800 4826
4801 xe_check_libs=" -lm " 4827 xe_check_libs=" -lm "
4802 cat > conftest.$ac_ext <<EOF 4828 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure" 4829 #line 4830 "configure"
4804 #include "confdefs.h" 4830 #include "confdefs.h"
4805 /* Override any gcc2 internal prototype to avoid an error. */ 4831 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2 4832 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */ 4833 builtin and then its argument prototype would still apply. */
4808 char sin(); 4834 char sin();
4809 4835
4810 int main() { 4836 int main() {
4811 sin() 4837 sin()
4812 ; return 0; } 4838 ; return 0; }
4813 EOF 4839 EOF
4814 if { (eval echo configure:4815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4840 if { (eval echo configure:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4815 rm -rf conftest* 4841 rm -rf conftest*
4816 eval "ac_cv_lib_$ac_lib_var=yes" 4842 eval "ac_cv_lib_$ac_lib_var=yes"
4817 else 4843 else
4818 echo "configure: failed program was:" >&5 4844 echo "configure: failed program was:" >&5
4819 cat conftest.$ac_ext >&5 4845 cat conftest.$ac_ext >&5
4853 EOF 4879 EOF
4854 } 4880 }
4855 4881
4856 4882
4857 cat > conftest.$ac_ext <<EOF 4883 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure" 4884 #line 4885 "configure"
4859 #include "confdefs.h" 4885 #include "confdefs.h"
4860 #include <math.h> 4886 #include <math.h>
4861 int main() { 4887 int main() {
4862 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4888 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4863 ; return 0; } 4889 ; return 0; }
4864 EOF 4890 EOF
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 rm -rf conftest* 4892 rm -rf conftest*
4867 { test "$extra_verbose" = "yes" && cat << \EOF 4893 { test "$extra_verbose" = "yes" && cat << \EOF
4868 Defining HAVE_INVERSE_HYPERBOLIC 4894 Defining HAVE_INVERSE_HYPERBOLIC
4869 EOF 4895 EOF
4870 cat >> confdefs.h <<\EOF 4896 cat >> confdefs.h <<\EOF
4879 rm -f conftest* 4905 rm -f conftest*
4880 4906
4881 for ac_func in mkstemp 4907 for ac_func in mkstemp
4882 do 4908 do
4883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_func" >&5 4910 echo "configure:4911: checking for $ac_func" >&5
4885 4911
4886 cat > conftest.$ac_ext <<EOF 4912 cat > conftest.$ac_ext <<EOF
4887 #line 4888 "configure" 4913 #line 4914 "configure"
4888 #include "confdefs.h" 4914 #include "confdefs.h"
4889 /* System header to define __stub macros and hopefully few prototypes, 4915 /* System header to define __stub macros and hopefully few prototypes,
4890 which can conflict with char $ac_func(); below. */ 4916 which can conflict with char $ac_func(); below. */
4891 #include <assert.h> 4917 #include <assert.h>
4892 /* Override any gcc2 internal prototype to avoid an error. */ 4918 /* Override any gcc2 internal prototype to avoid an error. */
4905 $ac_func(); 4931 $ac_func();
4906 #endif 4932 #endif
4907 4933
4908 ; return 0; } 4934 ; return 0; }
4909 EOF 4935 EOF
4910 if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4936 if { (eval echo configure:4937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4911 rm -rf conftest* 4937 rm -rf conftest*
4912 eval "ac_cv_func_$ac_func=yes" 4938 eval "ac_cv_func_$ac_func=yes"
4913 else 4939 else
4914 echo "configure: failed program was:" >&5 4940 echo "configure: failed program was:" >&5
4915 cat conftest.$ac_ext >&5 4941 cat conftest.$ac_ext >&5
4934 fi 4960 fi
4935 done 4961 done
4936 4962
4937 4963
4938 echo "checking type of mail spool file locking" 1>&6 4964 echo "checking type of mail spool file locking" 1>&6
4939 echo "configure:4940: checking type of mail spool file locking" >&5 4965 echo "configure:4966: checking type of mail spool file locking" >&5
4940 for ac_func in lockf flock 4966 for ac_func in lockf flock
4941 do 4967 do
4942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4968 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4943 echo "configure:4944: checking for $ac_func" >&5 4969 echo "configure:4970: checking for $ac_func" >&5
4944 4970
4945 cat > conftest.$ac_ext <<EOF 4971 cat > conftest.$ac_ext <<EOF
4946 #line 4947 "configure" 4972 #line 4973 "configure"
4947 #include "confdefs.h" 4973 #include "confdefs.h"
4948 /* System header to define __stub macros and hopefully few prototypes, 4974 /* System header to define __stub macros and hopefully few prototypes,
4949 which can conflict with char $ac_func(); below. */ 4975 which can conflict with char $ac_func(); below. */
4950 #include <assert.h> 4976 #include <assert.h>
4951 /* Override any gcc2 internal prototype to avoid an error. */ 4977 /* Override any gcc2 internal prototype to avoid an error. */
4964 $ac_func(); 4990 $ac_func();
4965 #endif 4991 #endif
4966 4992
4967 ; return 0; } 4993 ; return 0; }
4968 EOF 4994 EOF
4969 if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4995 if { (eval echo configure:4996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4970 rm -rf conftest* 4996 rm -rf conftest*
4971 eval "ac_cv_func_$ac_func=yes" 4997 eval "ac_cv_func_$ac_func=yes"
4972 else 4998 else
4973 echo "configure: failed program was:" >&5 4999 echo "configure: failed program was:" >&5
4974 cat conftest.$ac_ext >&5 5000 cat conftest.$ac_ext >&5
5046 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 5072 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5047 5073
5048 case "$opsys" in decosf*) 5074 case "$opsys" in decosf*)
5049 5075
5050 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 5076 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5051 echo "configure:5052: checking for cma_open in -lpthreads" >&5 5077 echo "configure:5078: checking for cma_open in -lpthreads" >&5
5052 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 5078 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5053 5079
5054 xe_check_libs=" -lpthreads " 5080 xe_check_libs=" -lpthreads "
5055 cat > conftest.$ac_ext <<EOF 5081 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure" 5082 #line 5083 "configure"
5057 #include "confdefs.h" 5083 #include "confdefs.h"
5058 /* Override any gcc2 internal prototype to avoid an error. */ 5084 /* Override any gcc2 internal prototype to avoid an error. */
5059 /* We use char because int might match the return type of a gcc2 5085 /* We use char because int might match the return type of a gcc2
5060 builtin and then its argument prototype would still apply. */ 5086 builtin and then its argument prototype would still apply. */
5061 char cma_open(); 5087 char cma_open();
5062 5088
5063 int main() { 5089 int main() {
5064 cma_open() 5090 cma_open()
5065 ; return 0; } 5091 ; return 0; }
5066 EOF 5092 EOF
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5093 if { (eval echo configure:5094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5068 rm -rf conftest* 5094 rm -rf conftest*
5069 eval "ac_cv_lib_$ac_lib_var=yes" 5095 eval "ac_cv_lib_$ac_lib_var=yes"
5070 else 5096 else
5071 echo "configure: failed program was:" >&5 5097 echo "configure: failed program was:" >&5
5072 cat conftest.$ac_ext >&5 5098 cat conftest.$ac_ext >&5
5099 c_switch_site="$c_switch_site -threads" ;; 5125 c_switch_site="$c_switch_site -threads" ;;
5100 esac 5126 esac
5101 5127
5102 5128
5103 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5129 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5104 echo "configure:5105: checking whether the -xildoff compiler flag is required" >&5 5130 echo "configure:5131: checking whether the -xildoff compiler flag is required" >&5
5105 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5131 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5106 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5132 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5107 then echo "$ac_t""no" 1>&6; 5133 then echo "$ac_t""no" 1>&6;
5108 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 5134 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
5109 fi 5135 fi
5111 fi 5137 fi
5112 5138
5113 if test "$opsys" = "sol2"; then 5139 if test "$opsys" = "sol2"; then
5114 if test "$os_release" -ge 56; then 5140 if test "$os_release" -ge 56; then
5115 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5141 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5116 echo "configure:5117: checking for \"-z ignore\" linker flag" >&5 5142 echo "configure:5143: checking for \"-z ignore\" linker flag" >&5
5117 case "`ld -h 2>&1`" in 5143 case "`ld -h 2>&1`" in
5118 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5144 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5119 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5145 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5120 *) echo "$ac_t""no" 1>&6 ;; 5146 *) echo "$ac_t""no" 1>&6 ;;
5121 esac 5147 esac
5122 fi 5148 fi
5123 fi 5149 fi
5124 5150
5125 5151
5126 echo "checking "for specified window system"" 1>&6 5152 echo "checking "for specified window system"" 1>&6
5127 echo "configure:5128: checking "for specified window system"" >&5 5153 echo "configure:5154: checking "for specified window system"" >&5
5128 5154
5129 5155
5130 GNOME_CONFIG=no 5156 GNOME_CONFIG=no
5131 GTK_CONFIG=no 5157 GTK_CONFIG=no
5132 5158
5133 if test "$with_gnome" != "no"; then 5159 if test "$with_gnome" != "no"; then
5134 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5160 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5135 echo "configure:5136: checking for GNOME configuration script" >&5 5161 echo "configure:5162: checking for GNOME configuration script" >&5
5136 for possible in gnome-config 5162 for possible in gnome-config
5137 do 5163 do
5138 possible_version=`${possible} --version 2> /dev/null` 5164 possible_version=`${possible} --version 2> /dev/null`
5139 if test "x${possible_version}" != "x"; then 5165 if test "x${possible_version}" != "x"; then
5140 GNOME_CONFIG="${possible}" 5166 GNOME_CONFIG="${possible}"
5161 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5187 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5162 fi 5188 fi
5163 5189
5164 if test "$with_gtk" != "no";then 5190 if test "$with_gtk" != "no";then
5165 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5191 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5166 echo "configure:5167: checking for GTK configuration script" >&5 5192 echo "configure:5193: checking for GTK configuration script" >&5
5167 for possible in gtk12-config gtk14-config gtk-config 5193 for possible in gtk12-config gtk14-config gtk-config
5168 do 5194 do
5169 possible_version=`${possible} --version 2> /dev/null` 5195 possible_version=`${possible} --version 2> /dev/null`
5170 if test "x${possible_version}" != "x"; then 5196 if test "x${possible_version}" != "x"; then
5171 GTK_CONFIG="${possible}" 5197 GTK_CONFIG="${possible}"
5183 echo "$ac_t""${GTK_CONFIG}" 1>&6 5209 echo "$ac_t""${GTK_CONFIG}" 1>&6
5184 fi 5210 fi
5185 5211
5186 if test "${GTK_CONFIG}" != "no"; then 5212 if test "${GTK_CONFIG}" != "no"; then
5187 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5213 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5188 echo "configure:5189: checking gtk version" >&5 5214 echo "configure:5215: checking gtk version" >&5
5189 GTK_VERSION=`${GTK_CONFIG} --version` 5215 GTK_VERSION=`${GTK_CONFIG} --version`
5190 echo "$ac_t""${GTK_VERSION}" 1>&6 5216 echo "$ac_t""${GTK_VERSION}" 1>&6
5191 5217
5192 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5218 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5193 echo "configure:5194: checking gtk libs" >&5 5219 echo "configure:5220: checking gtk libs" >&5
5194 GTK_LIBS=`${GTK_CONFIG} --libs` 5220 GTK_LIBS=`${GTK_CONFIG} --libs`
5195 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5221 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5196 echo "$ac_t""${GTK_LIBS}" 1>&6 5222 echo "$ac_t""${GTK_LIBS}" 1>&6
5197 5223
5198 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5224 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5199 echo "configure:5200: checking gtk cflags" >&5 5225 echo "configure:5226: checking gtk cflags" >&5
5200 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5226 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5201 if test "$GCC" = "yes"; then 5227 if test "$GCC" = "yes"; then
5202 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" 5228 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5203 fi 5229 fi
5204 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5230 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5205 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5231 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5206 5232
5207 5233
5208 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5234 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5209 echo "configure:5210: checking for main in -lgdk_imlib" >&5 5235 echo "configure:5236: checking for main in -lgdk_imlib" >&5
5210 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5236 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5211 5237
5212 xe_check_libs=" -lgdk_imlib " 5238 xe_check_libs=" -lgdk_imlib "
5213 cat > conftest.$ac_ext <<EOF 5239 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure" 5240 #line 5241 "configure"
5215 #include "confdefs.h" 5241 #include "confdefs.h"
5216 5242
5217 int main() { 5243 int main() {
5218 main() 5244 main()
5219 ; return 0; } 5245 ; return 0; }
5220 EOF 5246 EOF
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 rm -rf conftest* 5248 rm -rf conftest*
5223 eval "ac_cv_lib_$ac_lib_var=yes" 5249 eval "ac_cv_lib_$ac_lib_var=yes"
5224 else 5250 else
5225 echo "configure: failed program was:" >&5 5251 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5 5252 cat conftest.$ac_ext >&5
5238 fi 5264 fi
5239 5265
5240 5266
5241 5267
5242 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5268 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5243 echo "configure:5244: checking for Imlib_init in -lImlib" >&5 5269 echo "configure:5270: checking for Imlib_init in -lImlib" >&5
5244 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5270 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5245 5271
5246 xe_check_libs=" -lImlib " 5272 xe_check_libs=" -lImlib "
5247 cat > conftest.$ac_ext <<EOF 5273 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure" 5274 #line 5275 "configure"
5249 #include "confdefs.h" 5275 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */ 5276 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2 5277 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */ 5278 builtin and then its argument prototype would still apply. */
5253 char Imlib_init(); 5279 char Imlib_init();
5254 5280
5255 int main() { 5281 int main() {
5256 Imlib_init() 5282 Imlib_init()
5257 ; return 0; } 5283 ; return 0; }
5258 EOF 5284 EOF
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5285 if { (eval echo configure:5286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5260 rm -rf conftest* 5286 rm -rf conftest*
5261 eval "ac_cv_lib_$ac_lib_var=yes" 5287 eval "ac_cv_lib_$ac_lib_var=yes"
5262 else 5288 else
5263 echo "configure: failed program was:" >&5 5289 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5 5290 cat conftest.$ac_ext >&5
5277 5303
5278 5304
5279 for ac_func in gdk_imlib_init 5305 for ac_func in gdk_imlib_init
5280 do 5306 do
5281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5307 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5282 echo "configure:5283: checking for $ac_func" >&5 5308 echo "configure:5309: checking for $ac_func" >&5
5283 5309
5284 cat > conftest.$ac_ext <<EOF 5310 cat > conftest.$ac_ext <<EOF
5285 #line 5286 "configure" 5311 #line 5312 "configure"
5286 #include "confdefs.h" 5312 #include "confdefs.h"
5287 /* System header to define __stub macros and hopefully few prototypes, 5313 /* System header to define __stub macros and hopefully few prototypes,
5288 which can conflict with char $ac_func(); below. */ 5314 which can conflict with char $ac_func(); below. */
5289 #include <assert.h> 5315 #include <assert.h>
5290 /* Override any gcc2 internal prototype to avoid an error. */ 5316 /* Override any gcc2 internal prototype to avoid an error. */
5303 $ac_func(); 5329 $ac_func();
5304 #endif 5330 #endif
5305 5331
5306 ; return 0; } 5332 ; return 0; }
5307 EOF 5333 EOF
5308 if { (eval echo configure:5309: \"$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
5309 rm -rf conftest* 5335 rm -rf conftest*
5310 eval "ac_cv_func_$ac_func=yes" 5336 eval "ac_cv_func_$ac_func=yes"
5311 else 5337 else
5312 echo "configure: failed program was:" >&5 5338 echo "configure: failed program was:" >&5
5313 cat conftest.$ac_ext >&5 5339 cat conftest.$ac_ext >&5
5369 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5395 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5370 for ac_hdr in glade/glade.h glade.h 5396 for ac_hdr in glade/glade.h glade.h
5371 do 5397 do
5372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5398 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5399 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5374 echo "configure:5375: checking for $ac_hdr" >&5 5400 echo "configure:5401: checking for $ac_hdr" >&5
5375 5401
5376 cat > conftest.$ac_ext <<EOF 5402 cat > conftest.$ac_ext <<EOF
5377 #line 5378 "configure" 5403 #line 5404 "configure"
5378 #include "confdefs.h" 5404 #include "confdefs.h"
5379 #include <$ac_hdr> 5405 #include <$ac_hdr>
5380 EOF 5406 EOF
5381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5382 { (eval echo configure:5383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5408 { (eval echo configure:5409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5384 if test -z "$ac_err"; then 5410 if test -z "$ac_err"; then
5385 rm -rf conftest* 5411 rm -rf conftest*
5386 eval "ac_cv_header_$ac_safe=yes" 5412 eval "ac_cv_header_$ac_safe=yes"
5387 else 5413 else
5408 fi 5434 fi
5409 done 5435 done
5410 5436
5411 5437
5412 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5438 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5413 echo "configure:5414: checking for main in -lxml" >&5 5439 echo "configure:5440: checking for main in -lxml" >&5
5414 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5440 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5415 5441
5416 xe_check_libs=" -lxml " 5442 xe_check_libs=" -lxml "
5417 cat > conftest.$ac_ext <<EOF 5443 cat > conftest.$ac_ext <<EOF
5418 #line 5419 "configure" 5444 #line 5445 "configure"
5419 #include "confdefs.h" 5445 #include "confdefs.h"
5420 5446
5421 int main() { 5447 int main() {
5422 main() 5448 main()
5423 ; return 0; } 5449 ; return 0; }
5424 EOF 5450 EOF
5425 if { (eval echo configure:5426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5451 if { (eval echo configure:5452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5426 rm -rf conftest* 5452 rm -rf conftest*
5427 eval "ac_cv_lib_$ac_lib_var=yes" 5453 eval "ac_cv_lib_$ac_lib_var=yes"
5428 else 5454 else
5429 echo "configure: failed program was:" >&5 5455 echo "configure: failed program was:" >&5
5430 cat conftest.$ac_ext >&5 5456 cat conftest.$ac_ext >&5
5442 fi 5468 fi
5443 5469
5444 5470
5445 5471
5446 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5472 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5447 echo "configure:5448: checking for main in -lglade" >&5 5473 echo "configure:5474: checking for main in -lglade" >&5
5448 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5474 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5449 5475
5450 xe_check_libs=" -lglade " 5476 xe_check_libs=" -lglade "
5451 cat > conftest.$ac_ext <<EOF 5477 cat > conftest.$ac_ext <<EOF
5452 #line 5453 "configure" 5478 #line 5479 "configure"
5453 #include "confdefs.h" 5479 #include "confdefs.h"
5454 5480
5455 int main() { 5481 int main() {
5456 main() 5482 main()
5457 ; return 0; } 5483 ; return 0; }
5458 EOF 5484 EOF
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460 rm -rf conftest* 5486 rm -rf conftest*
5461 eval "ac_cv_lib_$ac_lib_var=yes" 5487 eval "ac_cv_lib_$ac_lib_var=yes"
5462 else 5488 else
5463 echo "configure: failed program was:" >&5 5489 echo "configure: failed program was:" >&5
5464 cat conftest.$ac_ext >&5 5490 cat conftest.$ac_ext >&5
5476 fi 5502 fi
5477 5503
5478 5504
5479 5505
5480 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5506 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5481 echo "configure:5482: checking for main in -lglade-gnome" >&5 5507 echo "configure:5508: checking for main in -lglade-gnome" >&5
5482 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5508 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5483 5509
5484 xe_check_libs=" -lglade-gnome " 5510 xe_check_libs=" -lglade-gnome "
5485 cat > conftest.$ac_ext <<EOF 5511 cat > conftest.$ac_ext <<EOF
5486 #line 5487 "configure" 5512 #line 5513 "configure"
5487 #include "confdefs.h" 5513 #include "confdefs.h"
5488 5514
5489 int main() { 5515 int main() {
5490 main() 5516 main()
5491 ; return 0; } 5517 ; return 0; }
5492 EOF 5518 EOF
5493 if { (eval echo configure:5494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5519 if { (eval echo configure:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5494 rm -rf conftest* 5520 rm -rf conftest*
5495 eval "ac_cv_lib_$ac_lib_var=yes" 5521 eval "ac_cv_lib_$ac_lib_var=yes"
5496 else 5522 else
5497 echo "configure: failed program was:" >&5 5523 echo "configure: failed program was:" >&5
5498 cat conftest.$ac_ext >&5 5524 cat conftest.$ac_ext >&5
5509 echo "$ac_t""no" 1>&6 5535 echo "$ac_t""no" 1>&6
5510 fi 5536 fi
5511 5537
5512 5538
5513 cat > conftest.$ac_ext <<EOF 5539 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure" 5540 #line 5541 "configure"
5515 #include "confdefs.h" 5541 #include "confdefs.h"
5516 #include <glade/glade-xml.h> 5542 #include <glade/glade-xml.h>
5517 EOF 5543 EOF
5518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5519 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5545 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5568 # If we find X, set shell vars x_includes and x_libraries to the 5594 # If we find X, set shell vars x_includes and x_libraries to the
5569 # paths, otherwise set no_x=yes. 5595 # paths, otherwise set no_x=yes.
5570 # Uses ac_ vars as temps to allow command line to override cache and checks. 5596 # Uses ac_ vars as temps to allow command line to override cache and checks.
5571 # --without-x overrides everything else, but does not touch the cache. 5597 # --without-x overrides everything else, but does not touch the cache.
5572 echo $ac_n "checking for X""... $ac_c" 1>&6 5598 echo $ac_n "checking for X""... $ac_c" 1>&6
5573 echo "configure:5574: checking for X" >&5 5599 echo "configure:5600: checking for X" >&5
5574 5600
5575 # Check whether --with-x or --without-x was given. 5601 # Check whether --with-x or --without-x was given.
5576 if test "${with_x+set}" = set; then 5602 if test "${with_x+set}" = set; then
5577 withval="$with_x" 5603 withval="$with_x"
5578 : 5604 :
5628 # Guess where to find include files, by looking for this one X11 .h file. 5654 # Guess where to find include files, by looking for this one X11 .h file.
5629 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5655 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5630 5656
5631 # First, try using that file with no special directory specified. 5657 # First, try using that file with no special directory specified.
5632 cat > conftest.$ac_ext <<EOF 5658 cat > conftest.$ac_ext <<EOF
5633 #line 5634 "configure" 5659 #line 5660 "configure"
5634 #include "confdefs.h" 5660 #include "confdefs.h"
5635 #include <$x_direct_test_include> 5661 #include <$x_direct_test_include>
5636 EOF 5662 EOF
5637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5638 { (eval echo configure:5639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5664 { (eval echo configure:5665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5640 if test -z "$ac_err"; then 5666 if test -z "$ac_err"; then
5641 rm -rf conftest* 5667 rm -rf conftest*
5642 # We can compile using X headers with no special include directory. 5668 # We can compile using X headers with no special include directory.
5643 ac_x_includes= 5669 ac_x_includes=
5702 # See if we find them without any special options. 5728 # See if we find them without any special options.
5703 # Don't add to $LIBS permanently. 5729 # Don't add to $LIBS permanently.
5704 ac_save_LIBS="$LIBS" 5730 ac_save_LIBS="$LIBS"
5705 LIBS="-l$x_direct_test_library $LIBS" 5731 LIBS="-l$x_direct_test_library $LIBS"
5706 cat > conftest.$ac_ext <<EOF 5732 cat > conftest.$ac_ext <<EOF
5707 #line 5708 "configure" 5733 #line 5734 "configure"
5708 #include "confdefs.h" 5734 #include "confdefs.h"
5709 5735
5710 int main() { 5736 int main() {
5711 ${x_direct_test_function}() 5737 ${x_direct_test_function}()
5712 ; return 0; } 5738 ; return 0; }
5713 EOF 5739 EOF
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5740 if { (eval echo configure:5741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 rm -rf conftest* 5741 rm -rf conftest*
5716 LIBS="$ac_save_LIBS" 5742 LIBS="$ac_save_LIBS"
5717 # We can link X programs with no special library path. 5743 # We can link X programs with no special library path.
5718 ac_x_libraries= 5744 ac_x_libraries=
5719 else 5745 else
5818 # For Solaris; some versions of Sun CC require a space after -R and 5844 # For Solaris; some versions of Sun CC require a space after -R and
5819 # others require no space. Words are not sufficient . . . . 5845 # others require no space. Words are not sufficient . . . .
5820 case "`(uname -sr) 2>/dev/null`" in 5846 case "`(uname -sr) 2>/dev/null`" in
5821 "SunOS 5"*) 5847 "SunOS 5"*)
5822 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5848 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5823 echo "configure:5824: checking whether -R must be followed by a space" >&5 5849 echo "configure:5850: checking whether -R must be followed by a space" >&5
5824 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5850 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5825 cat > conftest.$ac_ext <<EOF 5851 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure" 5852 #line 5853 "configure"
5827 #include "confdefs.h" 5853 #include "confdefs.h"
5828 5854
5829 int main() { 5855 int main() {
5830 5856
5831 ; return 0; } 5857 ; return 0; }
5832 EOF 5858 EOF
5833 if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5859 if { (eval echo configure:5860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 rm -rf conftest* 5860 rm -rf conftest*
5835 ac_R_nospace=yes 5861 ac_R_nospace=yes
5836 else 5862 else
5837 echo "configure: failed program was:" >&5 5863 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5 5864 cat conftest.$ac_ext >&5
5844 echo "$ac_t""no" 1>&6 5870 echo "$ac_t""no" 1>&6
5845 X_LIBS="$X_LIBS -R$x_libraries" 5871 X_LIBS="$X_LIBS -R$x_libraries"
5846 else 5872 else
5847 LIBS="$ac_xsave_LIBS -R $x_libraries" 5873 LIBS="$ac_xsave_LIBS -R $x_libraries"
5848 cat > conftest.$ac_ext <<EOF 5874 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure" 5875 #line 5876 "configure"
5850 #include "confdefs.h" 5876 #include "confdefs.h"
5851 5877
5852 int main() { 5878 int main() {
5853 5879
5854 ; return 0; } 5880 ; return 0; }
5855 EOF 5881 EOF
5856 if { (eval echo configure:5857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5882 if { (eval echo configure:5883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5857 rm -rf conftest* 5883 rm -rf conftest*
5858 ac_R_space=yes 5884 ac_R_space=yes
5859 else 5885 else
5860 echo "configure: failed program was:" >&5 5886 echo "configure: failed program was:" >&5
5861 cat conftest.$ac_ext >&5 5887 cat conftest.$ac_ext >&5
5887 if test "$with_dnet" = "no" ; then 5913 if test "$with_dnet" = "no" ; then
5888 ac_cv_lib_dnet_dnet_ntoa=no 5914 ac_cv_lib_dnet_dnet_ntoa=no
5889 else 5915 else
5890 5916
5891 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5917 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5892 echo "configure:5893: checking for dnet_ntoa in -ldnet" >&5 5918 echo "configure:5919: checking for dnet_ntoa in -ldnet" >&5
5893 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5919 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5894 5920
5895 xe_check_libs=" -ldnet " 5921 xe_check_libs=" -ldnet "
5896 cat > conftest.$ac_ext <<EOF 5922 cat > conftest.$ac_ext <<EOF
5897 #line 5898 "configure" 5923 #line 5924 "configure"
5898 #include "confdefs.h" 5924 #include "confdefs.h"
5899 /* Override any gcc2 internal prototype to avoid an error. */ 5925 /* Override any gcc2 internal prototype to avoid an error. */
5900 /* We use char because int might match the return type of a gcc2 5926 /* We use char because int might match the return type of a gcc2
5901 builtin and then its argument prototype would still apply. */ 5927 builtin and then its argument prototype would still apply. */
5902 char dnet_ntoa(); 5928 char dnet_ntoa();
5903 5929
5904 int main() { 5930 int main() {
5905 dnet_ntoa() 5931 dnet_ntoa()
5906 ; return 0; } 5932 ; return 0; }
5907 EOF 5933 EOF
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5934 if { (eval echo configure:5935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909 rm -rf conftest* 5935 rm -rf conftest*
5910 eval "ac_cv_lib_$ac_lib_var=yes" 5936 eval "ac_cv_lib_$ac_lib_var=yes"
5911 else 5937 else
5912 echo "configure: failed program was:" >&5 5938 echo "configure: failed program was:" >&5
5913 cat conftest.$ac_ext >&5 5939 cat conftest.$ac_ext >&5
5927 fi 5953 fi
5928 5954
5929 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5955 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5930 5956
5931 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5957 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5932 echo "configure:5933: checking for dnet_ntoa in -ldnet_stub" >&5 5958 echo "configure:5959: checking for dnet_ntoa in -ldnet_stub" >&5
5933 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5959 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5934 5960
5935 xe_check_libs=" -ldnet_stub " 5961 xe_check_libs=" -ldnet_stub "
5936 cat > conftest.$ac_ext <<EOF 5962 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure" 5963 #line 5964 "configure"
5938 #include "confdefs.h" 5964 #include "confdefs.h"
5939 /* Override any gcc2 internal prototype to avoid an error. */ 5965 /* Override any gcc2 internal prototype to avoid an error. */
5940 /* We use char because int might match the return type of a gcc2 5966 /* We use char because int might match the return type of a gcc2
5941 builtin and then its argument prototype would still apply. */ 5967 builtin and then its argument prototype would still apply. */
5942 char dnet_ntoa(); 5968 char dnet_ntoa();
5943 5969
5944 int main() { 5970 int main() {
5945 dnet_ntoa() 5971 dnet_ntoa()
5946 ; return 0; } 5972 ; return 0; }
5947 EOF 5973 EOF
5948 if { (eval echo configure:5949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5949 rm -rf conftest* 5975 rm -rf conftest*
5950 eval "ac_cv_lib_$ac_lib_var=yes" 5976 eval "ac_cv_lib_$ac_lib_var=yes"
5951 else 5977 else
5952 echo "configure: failed program was:" >&5 5978 echo "configure: failed program was:" >&5
5953 cat conftest.$ac_ext >&5 5979 cat conftest.$ac_ext >&5
5972 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5998 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5973 # needs -lnsl. 5999 # needs -lnsl.
5974 # The nsl library prevents programs from opening the X display 6000 # The nsl library prevents programs from opening the X display
5975 # on Irix 5.2, according to dickey@clark.net. 6001 # on Irix 5.2, according to dickey@clark.net.
5976 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 6002 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5977 echo "configure:5978: checking for gethostbyname" >&5 6003 echo "configure:6004: checking for gethostbyname" >&5
5978 6004
5979 cat > conftest.$ac_ext <<EOF 6005 cat > conftest.$ac_ext <<EOF
5980 #line 5981 "configure" 6006 #line 6007 "configure"
5981 #include "confdefs.h" 6007 #include "confdefs.h"
5982 /* System header to define __stub macros and hopefully few prototypes, 6008 /* System header to define __stub macros and hopefully few prototypes,
5983 which can conflict with char gethostbyname(); below. */ 6009 which can conflict with char gethostbyname(); below. */
5984 #include <assert.h> 6010 #include <assert.h>
5985 /* Override any gcc2 internal prototype to avoid an error. */ 6011 /* Override any gcc2 internal prototype to avoid an error. */
5998 gethostbyname(); 6024 gethostbyname();
5999 #endif 6025 #endif
6000 6026
6001 ; return 0; } 6027 ; return 0; }
6002 EOF 6028 EOF
6003 if { (eval echo configure:6004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6004 rm -rf conftest* 6030 rm -rf conftest*
6005 eval "ac_cv_func_gethostbyname=yes" 6031 eval "ac_cv_func_gethostbyname=yes"
6006 else 6032 else
6007 echo "configure: failed program was:" >&5 6033 echo "configure: failed program was:" >&5
6008 cat conftest.$ac_ext >&5 6034 cat conftest.$ac_ext >&5
6019 fi 6045 fi
6020 6046
6021 if test $ac_cv_func_gethostbyname = no; then 6047 if test $ac_cv_func_gethostbyname = no; then
6022 6048
6023 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 6049 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6024 echo "configure:6025: checking for gethostbyname in -lnsl" >&5 6050 echo "configure:6051: checking for gethostbyname in -lnsl" >&5
6025 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 6051 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6026 6052
6027 xe_check_libs=" -lnsl " 6053 xe_check_libs=" -lnsl "
6028 cat > conftest.$ac_ext <<EOF 6054 cat > conftest.$ac_ext <<EOF
6029 #line 6030 "configure" 6055 #line 6056 "configure"
6030 #include "confdefs.h" 6056 #include "confdefs.h"
6031 /* Override any gcc2 internal prototype to avoid an error. */ 6057 /* Override any gcc2 internal prototype to avoid an error. */
6032 /* We use char because int might match the return type of a gcc2 6058 /* We use char because int might match the return type of a gcc2
6033 builtin and then its argument prototype would still apply. */ 6059 builtin and then its argument prototype would still apply. */
6034 char gethostbyname(); 6060 char gethostbyname();
6035 6061
6036 int main() { 6062 int main() {
6037 gethostbyname() 6063 gethostbyname()
6038 ; return 0; } 6064 ; return 0; }
6039 EOF 6065 EOF
6040 if { (eval echo configure:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6066 if { (eval echo configure:6067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6041 rm -rf conftest* 6067 rm -rf conftest*
6042 eval "ac_cv_lib_$ac_lib_var=yes" 6068 eval "ac_cv_lib_$ac_lib_var=yes"
6043 else 6069 else
6044 echo "configure: failed program was:" >&5 6070 echo "configure: failed program was:" >&5
6045 cat conftest.$ac_ext >&5 6071 cat conftest.$ac_ext >&5
6065 # on later versions), says simon@lia.di.epfl.ch: it contains 6091 # on later versions), says simon@lia.di.epfl.ch: it contains
6066 # gethostby* variants that don't use the nameserver (or something). 6092 # gethostby* variants that don't use the nameserver (or something).
6067 # -lsocket must be given before -lnsl if both are needed. 6093 # -lsocket must be given before -lnsl if both are needed.
6068 # We assume that if connect needs -lnsl, so does gethostbyname. 6094 # We assume that if connect needs -lnsl, so does gethostbyname.
6069 echo $ac_n "checking for connect""... $ac_c" 1>&6 6095 echo $ac_n "checking for connect""... $ac_c" 1>&6
6070 echo "configure:6071: checking for connect" >&5 6096 echo "configure:6097: checking for connect" >&5
6071 6097
6072 cat > conftest.$ac_ext <<EOF 6098 cat > conftest.$ac_ext <<EOF
6073 #line 6074 "configure" 6099 #line 6100 "configure"
6074 #include "confdefs.h" 6100 #include "confdefs.h"
6075 /* System header to define __stub macros and hopefully few prototypes, 6101 /* System header to define __stub macros and hopefully few prototypes,
6076 which can conflict with char connect(); below. */ 6102 which can conflict with char connect(); below. */
6077 #include <assert.h> 6103 #include <assert.h>
6078 /* Override any gcc2 internal prototype to avoid an error. */ 6104 /* Override any gcc2 internal prototype to avoid an error. */
6091 connect(); 6117 connect();
6092 #endif 6118 #endif
6093 6119
6094 ; return 0; } 6120 ; return 0; }
6095 EOF 6121 EOF
6096 if { (eval echo configure:6097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6097 rm -rf conftest* 6123 rm -rf conftest*
6098 eval "ac_cv_func_connect=yes" 6124 eval "ac_cv_func_connect=yes"
6099 else 6125 else
6100 echo "configure: failed program was:" >&5 6126 echo "configure: failed program was:" >&5
6101 cat conftest.$ac_ext >&5 6127 cat conftest.$ac_ext >&5
6114 if test $ac_cv_func_connect = no; then 6140 if test $ac_cv_func_connect = no; then
6115 6141
6116 xe_msg_checking="for connect in -lsocket" 6142 xe_msg_checking="for connect in -lsocket"
6117 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6143 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6118 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6144 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6119 echo "configure:6120: checking "$xe_msg_checking"" >&5 6145 echo "configure:6146: checking "$xe_msg_checking"" >&5
6120 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6146 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6121 6147
6122 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6148 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6123 cat > conftest.$ac_ext <<EOF 6149 cat > conftest.$ac_ext <<EOF
6124 #line 6125 "configure" 6150 #line 6151 "configure"
6125 #include "confdefs.h" 6151 #include "confdefs.h"
6126 /* Override any gcc2 internal prototype to avoid an error. */ 6152 /* Override any gcc2 internal prototype to avoid an error. */
6127 /* We use char because int might match the return type of a gcc2 6153 /* We use char because int might match the return type of a gcc2
6128 builtin and then its argument prototype would still apply. */ 6154 builtin and then its argument prototype would still apply. */
6129 char connect(); 6155 char connect();
6130 6156
6131 int main() { 6157 int main() {
6132 connect() 6158 connect()
6133 ; return 0; } 6159 ; return 0; }
6134 EOF 6160 EOF
6135 if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6161 if { (eval echo configure:6162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136 rm -rf conftest* 6162 rm -rf conftest*
6137 eval "ac_cv_lib_$ac_lib_var=yes" 6163 eval "ac_cv_lib_$ac_lib_var=yes"
6138 else 6164 else
6139 echo "configure: failed program was:" >&5 6165 echo "configure: failed program was:" >&5
6140 cat conftest.$ac_ext >&5 6166 cat conftest.$ac_ext >&5
6154 6180
6155 fi 6181 fi
6156 6182
6157 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6183 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6158 echo $ac_n "checking for remove""... $ac_c" 1>&6 6184 echo $ac_n "checking for remove""... $ac_c" 1>&6
6159 echo "configure:6160: checking for remove" >&5 6185 echo "configure:6186: checking for remove" >&5
6160 6186
6161 cat > conftest.$ac_ext <<EOF 6187 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure" 6188 #line 6189 "configure"
6163 #include "confdefs.h" 6189 #include "confdefs.h"
6164 /* System header to define __stub macros and hopefully few prototypes, 6190 /* System header to define __stub macros and hopefully few prototypes,
6165 which can conflict with char remove(); below. */ 6191 which can conflict with char remove(); below. */
6166 #include <assert.h> 6192 #include <assert.h>
6167 /* Override any gcc2 internal prototype to avoid an error. */ 6193 /* Override any gcc2 internal prototype to avoid an error. */
6180 remove(); 6206 remove();
6181 #endif 6207 #endif
6182 6208
6183 ; return 0; } 6209 ; return 0; }
6184 EOF 6210 EOF
6185 if { (eval echo configure:6186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6211 if { (eval echo configure:6212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6186 rm -rf conftest* 6212 rm -rf conftest*
6187 eval "ac_cv_func_remove=yes" 6213 eval "ac_cv_func_remove=yes"
6188 else 6214 else
6189 echo "configure: failed program was:" >&5 6215 echo "configure: failed program was:" >&5
6190 cat conftest.$ac_ext >&5 6216 cat conftest.$ac_ext >&5
6201 fi 6227 fi
6202 6228
6203 if test $ac_cv_func_remove = no; then 6229 if test $ac_cv_func_remove = no; then
6204 6230
6205 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6231 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6206 echo "configure:6207: checking for remove in -lposix" >&5 6232 echo "configure:6233: checking for remove in -lposix" >&5
6207 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6233 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6208 6234
6209 xe_check_libs=" -lposix " 6235 xe_check_libs=" -lposix "
6210 cat > conftest.$ac_ext <<EOF 6236 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure" 6237 #line 6238 "configure"
6212 #include "confdefs.h" 6238 #include "confdefs.h"
6213 /* Override any gcc2 internal prototype to avoid an error. */ 6239 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2 6240 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */ 6241 builtin and then its argument prototype would still apply. */
6216 char remove(); 6242 char remove();
6217 6243
6218 int main() { 6244 int main() {
6219 remove() 6245 remove()
6220 ; return 0; } 6246 ; return 0; }
6221 EOF 6247 EOF
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6248 if { (eval echo configure:6249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6223 rm -rf conftest* 6249 rm -rf conftest*
6224 eval "ac_cv_lib_$ac_lib_var=yes" 6250 eval "ac_cv_lib_$ac_lib_var=yes"
6225 else 6251 else
6226 echo "configure: failed program was:" >&5 6252 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5 6253 cat conftest.$ac_ext >&5
6241 6267
6242 fi 6268 fi
6243 6269
6244 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6270 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6245 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6271 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6246 echo "configure:6247: checking for shmat" >&5 6272 echo "configure:6273: checking for shmat" >&5
6247 6273
6248 cat > conftest.$ac_ext <<EOF 6274 cat > conftest.$ac_ext <<EOF
6249 #line 6250 "configure" 6275 #line 6276 "configure"
6250 #include "confdefs.h" 6276 #include "confdefs.h"
6251 /* System header to define __stub macros and hopefully few prototypes, 6277 /* System header to define __stub macros and hopefully few prototypes,
6252 which can conflict with char shmat(); below. */ 6278 which can conflict with char shmat(); below. */
6253 #include <assert.h> 6279 #include <assert.h>
6254 /* Override any gcc2 internal prototype to avoid an error. */ 6280 /* Override any gcc2 internal prototype to avoid an error. */
6267 shmat(); 6293 shmat();
6268 #endif 6294 #endif
6269 6295
6270 ; return 0; } 6296 ; return 0; }
6271 EOF 6297 EOF
6272 if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6298 if { (eval echo configure:6299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6273 rm -rf conftest* 6299 rm -rf conftest*
6274 eval "ac_cv_func_shmat=yes" 6300 eval "ac_cv_func_shmat=yes"
6275 else 6301 else
6276 echo "configure: failed program was:" >&5 6302 echo "configure: failed program was:" >&5
6277 cat conftest.$ac_ext >&5 6303 cat conftest.$ac_ext >&5
6288 fi 6314 fi
6289 6315
6290 if test $ac_cv_func_shmat = no; then 6316 if test $ac_cv_func_shmat = no; then
6291 6317
6292 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6318 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6293 echo "configure:6294: checking for shmat in -lipc" >&5 6319 echo "configure:6320: checking for shmat in -lipc" >&5
6294 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6320 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6295 6321
6296 xe_check_libs=" -lipc " 6322 xe_check_libs=" -lipc "
6297 cat > conftest.$ac_ext <<EOF 6323 cat > conftest.$ac_ext <<EOF
6298 #line 6299 "configure" 6324 #line 6325 "configure"
6299 #include "confdefs.h" 6325 #include "confdefs.h"
6300 /* Override any gcc2 internal prototype to avoid an error. */ 6326 /* Override any gcc2 internal prototype to avoid an error. */
6301 /* We use char because int might match the return type of a gcc2 6327 /* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */ 6328 builtin and then its argument prototype would still apply. */
6303 char shmat(); 6329 char shmat();
6304 6330
6305 int main() { 6331 int main() {
6306 shmat() 6332 shmat()
6307 ; return 0; } 6333 ; return 0; }
6308 EOF 6334 EOF
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6335 if { (eval echo configure:6336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6310 rm -rf conftest* 6336 rm -rf conftest*
6311 eval "ac_cv_lib_$ac_lib_var=yes" 6337 eval "ac_cv_lib_$ac_lib_var=yes"
6312 else 6338 else
6313 echo "configure: failed program was:" >&5 6339 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5 6340 cat conftest.$ac_ext >&5
6340 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6366 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6341 6367
6342 xe_msg_checking="for IceConnectionNumber in -lICE" 6368 xe_msg_checking="for IceConnectionNumber in -lICE"
6343 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6369 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6344 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6370 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6345 echo "configure:6346: checking "$xe_msg_checking"" >&5 6371 echo "configure:6372: checking "$xe_msg_checking"" >&5
6346 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6372 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6347 6373
6348 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6374 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6349 cat > conftest.$ac_ext <<EOF 6375 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure" 6376 #line 6377 "configure"
6351 #include "confdefs.h" 6377 #include "confdefs.h"
6352 /* Override any gcc2 internal prototype to avoid an error. */ 6378 /* Override any gcc2 internal prototype to avoid an error. */
6353 /* We use char because int might match the return type of a gcc2 6379 /* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */ 6380 builtin and then its argument prototype would still apply. */
6355 char IceConnectionNumber(); 6381 char IceConnectionNumber();
6356 6382
6357 int main() { 6383 int main() {
6358 IceConnectionNumber() 6384 IceConnectionNumber()
6359 ; return 0; } 6385 ; return 0; }
6360 EOF 6386 EOF
6361 if { (eval echo configure:6362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6362 rm -rf conftest* 6388 rm -rf conftest*
6363 eval "ac_cv_lib_$ac_lib_var=yes" 6389 eval "ac_cv_lib_$ac_lib_var=yes"
6364 else 6390 else
6365 echo "configure: failed program was:" >&5 6391 echo "configure: failed program was:" >&5
6366 cat conftest.$ac_ext >&5 6392 cat conftest.$ac_ext >&5
6523 EOF 6549 EOF
6524 } 6550 }
6525 6551
6526 6552
6527 echo "checking for X defines extracted by xmkmf" 1>&6 6553 echo "checking for X defines extracted by xmkmf" 1>&6
6528 echo "configure:6529: checking for X defines extracted by xmkmf" >&5 6554 echo "configure:6555: checking for X defines extracted by xmkmf" >&5
6529 rm -fr conftestdir 6555 rm -fr conftestdir
6530 if mkdir conftestdir; then 6556 if mkdir conftestdir; then
6531 cd conftestdir 6557 cd conftestdir
6532 cat > Imakefile <<'EOF' 6558 cat > Imakefile <<'EOF'
6533 xetest: 6559 xetest:
6572 done 6598 done
6573 fi 6599 fi
6574 6600
6575 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6601 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6576 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6602 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6577 echo "configure:6578: checking for X11/Intrinsic.h" >&5 6603 echo "configure:6604: checking for X11/Intrinsic.h" >&5
6578 6604
6579 cat > conftest.$ac_ext <<EOF 6605 cat > conftest.$ac_ext <<EOF
6580 #line 6581 "configure" 6606 #line 6607 "configure"
6581 #include "confdefs.h" 6607 #include "confdefs.h"
6582 #include <X11/Intrinsic.h> 6608 #include <X11/Intrinsic.h>
6583 EOF 6609 EOF
6584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6585 { (eval echo configure:6586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6611 { (eval echo configure:6612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6587 if test -z "$ac_err"; then 6613 if test -z "$ac_err"; then
6588 rm -rf conftest* 6614 rm -rf conftest*
6589 eval "ac_cv_header_$ac_safe=yes" 6615 eval "ac_cv_header_$ac_safe=yes"
6590 else 6616 else
6604 fi 6630 fi
6605 6631
6606 6632
6607 6633
6608 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6634 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6609 echo "configure:6610: checking for XOpenDisplay in -lX11" >&5 6635 echo "configure:6636: checking for XOpenDisplay in -lX11" >&5
6610 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6636 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6611 6637
6612 xe_check_libs=" -lX11 " 6638 xe_check_libs=" -lX11 "
6613 cat > conftest.$ac_ext <<EOF 6639 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure" 6640 #line 6641 "configure"
6615 #include "confdefs.h" 6641 #include "confdefs.h"
6616 /* Override any gcc2 internal prototype to avoid an error. */ 6642 /* Override any gcc2 internal prototype to avoid an error. */
6617 /* We use char because int might match the return type of a gcc2 6643 /* We use char because int might match the return type of a gcc2
6618 builtin and then its argument prototype would still apply. */ 6644 builtin and then its argument prototype would still apply. */
6619 char XOpenDisplay(); 6645 char XOpenDisplay();
6620 6646
6621 int main() { 6647 int main() {
6622 XOpenDisplay() 6648 XOpenDisplay()
6623 ; return 0; } 6649 ; return 0; }
6624 EOF 6650 EOF
6625 if { (eval echo configure:6626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 rm -rf conftest* 6652 rm -rf conftest*
6627 eval "ac_cv_lib_$ac_lib_var=yes" 6653 eval "ac_cv_lib_$ac_lib_var=yes"
6628 else 6654 else
6629 echo "configure: failed program was:" >&5 6655 echo "configure: failed program was:" >&5
6630 cat conftest.$ac_ext >&5 6656 cat conftest.$ac_ext >&5
6645 if test "$have_lib_x11" != "yes"; then 6671 if test "$have_lib_x11" != "yes"; then
6646 6672
6647 xe_msg_checking="for XGetFontProperty in -lX11" 6673 xe_msg_checking="for XGetFontProperty in -lX11"
6648 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6674 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6649 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6675 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6650 echo "configure:6651: checking "$xe_msg_checking"" >&5 6676 echo "configure:6677: checking "$xe_msg_checking"" >&5
6651 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6677 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6652 6678
6653 xe_check_libs=" -lX11 -b i486-linuxaout" 6679 xe_check_libs=" -lX11 -b i486-linuxaout"
6654 cat > conftest.$ac_ext <<EOF 6680 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure" 6681 #line 6682 "configure"
6656 #include "confdefs.h" 6682 #include "confdefs.h"
6657 /* Override any gcc2 internal prototype to avoid an error. */ 6683 /* Override any gcc2 internal prototype to avoid an error. */
6658 /* We use char because int might match the return type of a gcc2 6684 /* We use char because int might match the return type of a gcc2
6659 builtin and then its argument prototype would still apply. */ 6685 builtin and then its argument prototype would still apply. */
6660 char XGetFontProperty(); 6686 char XGetFontProperty();
6661 6687
6662 int main() { 6688 int main() {
6663 XGetFontProperty() 6689 XGetFontProperty()
6664 ; return 0; } 6690 ; return 0; }
6665 EOF 6691 EOF
6666 if { (eval echo configure:6667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6692 if { (eval echo configure:6693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6667 rm -rf conftest* 6693 rm -rf conftest*
6668 eval "ac_cv_lib_$ac_lib_var=yes" 6694 eval "ac_cv_lib_$ac_lib_var=yes"
6669 else 6695 else
6670 echo "configure: failed program was:" >&5 6696 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5 6697 cat conftest.$ac_ext >&5
6688 libs_x="-lX11" 6714 libs_x="-lX11"
6689 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6715 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6690 6716
6691 6717
6692 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6718 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6693 echo "configure:6694: checking for XShapeSelectInput in -lXext" >&5 6719 echo "configure:6720: checking for XShapeSelectInput in -lXext" >&5
6694 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6720 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6695 6721
6696 xe_check_libs=" -lXext " 6722 xe_check_libs=" -lXext "
6697 cat > conftest.$ac_ext <<EOF 6723 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure" 6724 #line 6725 "configure"
6699 #include "confdefs.h" 6725 #include "confdefs.h"
6700 /* Override any gcc2 internal prototype to avoid an error. */ 6726 /* Override any gcc2 internal prototype to avoid an error. */
6701 /* We use char because int might match the return type of a gcc2 6727 /* We use char because int might match the return type of a gcc2
6702 builtin and then its argument prototype would still apply. */ 6728 builtin and then its argument prototype would still apply. */
6703 char XShapeSelectInput(); 6729 char XShapeSelectInput();
6704 6730
6705 int main() { 6731 int main() {
6706 XShapeSelectInput() 6732 XShapeSelectInput()
6707 ; return 0; } 6733 ; return 0; }
6708 EOF 6734 EOF
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 rm -rf conftest* 6736 rm -rf conftest*
6711 eval "ac_cv_lib_$ac_lib_var=yes" 6737 eval "ac_cv_lib_$ac_lib_var=yes"
6712 else 6738 else
6713 echo "configure: failed program was:" >&5 6739 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5 6740 cat conftest.$ac_ext >&5
6727 6753
6728 6754
6729 6755
6730 6756
6731 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6757 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6732 echo "configure:6733: checking for XtOpenDisplay in -lXt" >&5 6758 echo "configure:6759: checking for XtOpenDisplay in -lXt" >&5
6733 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6759 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6734 6760
6735 xe_check_libs=" -lXt " 6761 xe_check_libs=" -lXt "
6736 cat > conftest.$ac_ext <<EOF 6762 cat > conftest.$ac_ext <<EOF
6737 #line 6738 "configure" 6763 #line 6764 "configure"
6738 #include "confdefs.h" 6764 #include "confdefs.h"
6739 /* Override any gcc2 internal prototype to avoid an error. */ 6765 /* Override any gcc2 internal prototype to avoid an error. */
6740 /* We use char because int might match the return type of a gcc2 6766 /* We use char because int might match the return type of a gcc2
6741 builtin and then its argument prototype would still apply. */ 6767 builtin and then its argument prototype would still apply. */
6742 char XtOpenDisplay(); 6768 char XtOpenDisplay();
6743 6769
6744 int main() { 6770 int main() {
6745 XtOpenDisplay() 6771 XtOpenDisplay()
6746 ; return 0; } 6772 ; return 0; }
6747 EOF 6773 EOF
6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6774 if { (eval echo configure:6775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6749 rm -rf conftest* 6775 rm -rf conftest*
6750 eval "ac_cv_lib_$ac_lib_var=yes" 6776 eval "ac_cv_lib_$ac_lib_var=yes"
6751 else 6777 else
6752 echo "configure: failed program was:" >&5 6778 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5 6779 cat conftest.$ac_ext >&5
6766 fi 6792 fi
6767 6793
6768 6794
6769 6795
6770 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6796 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6771 echo "configure:6772: checking the version of X11 being used" >&5 6797 echo "configure:6798: checking the version of X11 being used" >&5
6772 cat > conftest.$ac_ext <<EOF 6798 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure" 6799 #line 6800 "configure"
6774 #include "confdefs.h" 6800 #include "confdefs.h"
6775 #include <X11/Intrinsic.h> 6801 #include <X11/Intrinsic.h>
6776 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6802 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6777 EOF 6803 EOF
6778 if { (eval echo configure:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6804 if { (eval echo configure:6805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6779 then 6805 then
6780 ./conftest foobar; x11_release=$? 6806 ./conftest foobar; x11_release=$?
6781 else 6807 else
6782 conftest_rc="$?" 6808 conftest_rc="$?"
6783 echo "configure: failed program was:" >&5 6809 echo "configure: failed program was:" >&5
6804 fi 6830 fi
6805 6831
6806 for ac_func in XConvertCase 6832 for ac_func in XConvertCase
6807 do 6833 do
6808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6809 echo "configure:6810: checking for $ac_func" >&5 6835 echo "configure:6836: checking for $ac_func" >&5
6810 6836
6811 cat > conftest.$ac_ext <<EOF 6837 cat > conftest.$ac_ext <<EOF
6812 #line 6813 "configure" 6838 #line 6839 "configure"
6813 #include "confdefs.h" 6839 #include "confdefs.h"
6814 /* System header to define __stub macros and hopefully few prototypes, 6840 /* System header to define __stub macros and hopefully few prototypes,
6815 which can conflict with char $ac_func(); below. */ 6841 which can conflict with char $ac_func(); below. */
6816 #include <assert.h> 6842 #include <assert.h>
6817 /* Override any gcc2 internal prototype to avoid an error. */ 6843 /* Override any gcc2 internal prototype to avoid an error. */
6830 $ac_func(); 6856 $ac_func();
6831 #endif 6857 #endif
6832 6858
6833 ; return 0; } 6859 ; return 0; }
6834 EOF 6860 EOF
6835 if { (eval echo configure:6836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6861 if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6836 rm -rf conftest* 6862 rm -rf conftest*
6837 eval "ac_cv_func_$ac_func=yes" 6863 eval "ac_cv_func_$ac_func=yes"
6838 else 6864 else
6839 echo "configure: failed program was:" >&5 6865 echo "configure: failed program was:" >&5
6840 cat conftest.$ac_ext >&5 6866 cat conftest.$ac_ext >&5
6862 6888
6863 for ac_hdr in X11/Xlocale.h 6889 for ac_hdr in X11/Xlocale.h
6864 do 6890 do
6865 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6866 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6867 echo "configure:6868: checking for $ac_hdr" >&5 6893 echo "configure:6894: checking for $ac_hdr" >&5
6868 6894
6869 cat > conftest.$ac_ext <<EOF 6895 cat > conftest.$ac_ext <<EOF
6870 #line 6871 "configure" 6896 #line 6897 "configure"
6871 #include "confdefs.h" 6897 #include "confdefs.h"
6872 #include <$ac_hdr> 6898 #include <$ac_hdr>
6873 EOF 6899 EOF
6874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6875 { (eval echo configure:6876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6901 { (eval echo configure:6902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6877 if test -z "$ac_err"; then 6903 if test -z "$ac_err"; then
6878 rm -rf conftest* 6904 rm -rf conftest*
6879 eval "ac_cv_header_$ac_safe=yes" 6905 eval "ac_cv_header_$ac_safe=yes"
6880 else 6906 else
6903 6929
6904 6930
6905 for ac_func in XRegisterIMInstantiateCallback 6931 for ac_func in XRegisterIMInstantiateCallback
6906 do 6932 do
6907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6908 echo "configure:6909: checking for $ac_func" >&5 6934 echo "configure:6935: checking for $ac_func" >&5
6909 6935
6910 cat > conftest.$ac_ext <<EOF 6936 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure" 6937 #line 6938 "configure"
6912 #include "confdefs.h" 6938 #include "confdefs.h"
6913 /* System header to define __stub macros and hopefully few prototypes, 6939 /* System header to define __stub macros and hopefully few prototypes,
6914 which can conflict with char $ac_func(); below. */ 6940 which can conflict with char $ac_func(); below. */
6915 #include <assert.h> 6941 #include <assert.h>
6916 /* Override any gcc2 internal prototype to avoid an error. */ 6942 /* Override any gcc2 internal prototype to avoid an error. */
6929 $ac_func(); 6955 $ac_func();
6930 #endif 6956 #endif
6931 6957
6932 ; return 0; } 6958 ; return 0; }
6933 EOF 6959 EOF
6934 if { (eval echo configure:6935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6960 if { (eval echo configure:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6935 rm -rf conftest* 6961 rm -rf conftest*
6936 eval "ac_cv_func_$ac_func=yes" 6962 eval "ac_cv_func_$ac_func=yes"
6937 else 6963 else
6938 echo "configure: failed program was:" >&5 6964 echo "configure: failed program was:" >&5
6939 cat conftest.$ac_ext >&5 6965 cat conftest.$ac_ext >&5
6957 echo "$ac_t""no" 1>&6 6983 echo "$ac_t""no" 1>&6
6958 fi 6984 fi
6959 done 6985 done
6960 6986
6961 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 6987 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6962 echo "configure:6963: checking for standard XRegisterIMInstantiateCallback prototype" >&5 6988 echo "configure:6989: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6963 cat > conftest.$ac_ext <<EOF 6989 cat > conftest.$ac_ext <<EOF
6964 #line 6965 "configure" 6990 #line 6991 "configure"
6965 #include "confdefs.h" 6991 #include "confdefs.h"
6966 6992
6967 #define NeedFunctionPrototypes 1 6993 #define NeedFunctionPrototypes 1
6968 #include <X11/Xlib.h> 6994 #include <X11/Xlib.h>
6969 extern Bool XRegisterIMInstantiateCallback( 6995 extern Bool XRegisterIMInstantiateCallback(
6971 6997
6972 int main() { 6998 int main() {
6973 6999
6974 ; return 0; } 7000 ; return 0; }
6975 EOF 7001 EOF
6976 if { (eval echo configure:6977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7002 if { (eval echo configure:7003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6977 rm -rf conftest* 7003 rm -rf conftest*
6978 echo "$ac_t""yes" 1>&6 7004 echo "$ac_t""yes" 1>&6
6979 else 7005 else
6980 echo "configure: failed program was:" >&5 7006 echo "configure: failed program was:" >&5
6981 cat conftest.$ac_ext >&5 7007 cat conftest.$ac_ext >&5
6992 fi 7018 fi
6993 rm -f conftest* 7019 rm -f conftest*
6994 7020
6995 test -z "$with_xmu" && { 7021 test -z "$with_xmu" && {
6996 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 7022 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6997 echo "configure:6998: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 7023 echo "configure:7024: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6998 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 7024 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6999 7025
7000 xe_check_libs=" -lXmu " 7026 xe_check_libs=" -lXmu "
7001 cat > conftest.$ac_ext <<EOF 7027 cat > conftest.$ac_ext <<EOF
7002 #line 7003 "configure" 7028 #line 7029 "configure"
7003 #include "confdefs.h" 7029 #include "confdefs.h"
7004 /* Override any gcc2 internal prototype to avoid an error. */ 7030 /* Override any gcc2 internal prototype to avoid an error. */
7005 /* We use char because int might match the return type of a gcc2 7031 /* We use char because int might match the return type of a gcc2
7006 builtin and then its argument prototype would still apply. */ 7032 builtin and then its argument prototype would still apply. */
7007 char XmuReadBitmapDataFromFile(); 7033 char XmuReadBitmapDataFromFile();
7008 7034
7009 int main() { 7035 int main() {
7010 XmuReadBitmapDataFromFile() 7036 XmuReadBitmapDataFromFile()
7011 ; return 0; } 7037 ; return 0; }
7012 EOF 7038 EOF
7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7039 if { (eval echo configure:7040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7014 rm -rf conftest* 7040 rm -rf conftest*
7015 eval "ac_cv_lib_$ac_lib_var=yes" 7041 eval "ac_cv_lib_$ac_lib_var=yes"
7016 else 7042 else
7017 echo "configure: failed program was:" >&5 7043 echo "configure: failed program was:" >&5
7018 cat conftest.$ac_ext >&5 7044 cat conftest.$ac_ext >&5
7047 7073
7048 fi 7074 fi
7049 7075
7050 7076
7051 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7077 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7052 echo "configure:7053: checking for main in -lXbsd" >&5 7078 echo "configure:7079: checking for main in -lXbsd" >&5
7053 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7079 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7054 7080
7055 xe_check_libs=" -lXbsd " 7081 xe_check_libs=" -lXbsd "
7056 cat > conftest.$ac_ext <<EOF 7082 cat > conftest.$ac_ext <<EOF
7057 #line 7058 "configure" 7083 #line 7084 "configure"
7058 #include "confdefs.h" 7084 #include "confdefs.h"
7059 7085
7060 int main() { 7086 int main() {
7061 main() 7087 main()
7062 ; return 0; } 7088 ; return 0; }
7063 EOF 7089 EOF
7064 if { (eval echo configure:7065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7090 if { (eval echo configure:7091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7065 rm -rf conftest* 7091 rm -rf conftest*
7066 eval "ac_cv_lib_$ac_lib_var=yes" 7092 eval "ac_cv_lib_$ac_lib_var=yes"
7067 else 7093 else
7068 echo "configure: failed program was:" >&5 7094 echo "configure: failed program was:" >&5
7069 cat conftest.$ac_ext >&5 7095 cat conftest.$ac_ext >&5
7096 fi 7122 fi
7097 7123
7098 fi 7124 fi
7099 if test "$with_msw" != "no"; then 7125 if test "$with_msw" != "no"; then
7100 echo "checking for MS-Windows" 1>&6 7126 echo "checking for MS-Windows" 1>&6
7101 echo "configure:7102: checking for MS-Windows" >&5 7127 echo "configure:7128: checking for MS-Windows" >&5
7102 7128
7103 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7129 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7104 echo "configure:7105: checking for main in -lgdi32" >&5 7130 echo "configure:7131: checking for main in -lgdi32" >&5
7105 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7131 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7106 7132
7107 xe_check_libs=" -lgdi32 " 7133 xe_check_libs=" -lgdi32 "
7108 cat > conftest.$ac_ext <<EOF 7134 cat > conftest.$ac_ext <<EOF
7109 #line 7110 "configure" 7135 #line 7136 "configure"
7110 #include "confdefs.h" 7136 #include "confdefs.h"
7111 7137
7112 int main() { 7138 int main() {
7113 main() 7139 main()
7114 ; return 0; } 7140 ; return 0; }
7115 EOF 7141 EOF
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7142 if { (eval echo configure:7143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7117 rm -rf conftest* 7143 rm -rf conftest*
7118 eval "ac_cv_lib_$ac_lib_var=yes" 7144 eval "ac_cv_lib_$ac_lib_var=yes"
7119 else 7145 else
7120 echo "configure: failed program was:" >&5 7146 echo "configure: failed program was:" >&5
7121 cat conftest.$ac_ext >&5 7147 cat conftest.$ac_ext >&5
7162 test "$with_toolbars" != "no" && with_toolbars=msw 7188 test "$with_toolbars" != "no" && with_toolbars=msw
7163 test "$with_dialogs" != "no" && with_dialogs=msw 7189 test "$with_dialogs" != "no" && with_dialogs=msw
7164 test "$with_widgets" != "no" && with_widgets=msw 7190 test "$with_widgets" != "no" && with_widgets=msw
7165 fi 7191 fi
7166 cat > conftest.$ac_ext <<EOF 7192 cat > conftest.$ac_ext <<EOF
7167 #line 7168 "configure" 7193 #line 7194 "configure"
7168 #include "confdefs.h" 7194 #include "confdefs.h"
7169 #include <fcntl.h> 7195 #include <fcntl.h>
7170 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7196 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7171 EOF 7197 EOF
7172 if { (eval echo configure:7173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7173 then 7199 then
7174 { test "$extra_verbose" = "yes" && cat << \EOF 7200 { test "$extra_verbose" = "yes" && cat << \EOF
7175 Defining HAVE_MSG_SELECT 7201 Defining HAVE_MSG_SELECT
7176 EOF 7202 EOF
7177 cat >> confdefs.h <<\EOF 7203 cat >> confdefs.h <<\EOF
7228 fi 7254 fi
7229 7255
7230 if test "$with_x11" = "yes"; then 7256 if test "$with_x11" = "yes"; then
7231 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7257 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7232 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7258 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7233 echo "configure:7234: checking for X11/extensions/shape.h" >&5 7259 echo "configure:7260: checking for X11/extensions/shape.h" >&5
7234 7260
7235 cat > conftest.$ac_ext <<EOF 7261 cat > conftest.$ac_ext <<EOF
7236 #line 7237 "configure" 7262 #line 7263 "configure"
7237 #include "confdefs.h" 7263 #include "confdefs.h"
7238 #include <X11/extensions/shape.h> 7264 #include <X11/extensions/shape.h>
7239 EOF 7265 EOF
7240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7241 { (eval echo configure:7242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7267 { (eval echo configure:7268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7243 if test -z "$ac_err"; then 7269 if test -z "$ac_err"; then
7244 rm -rf conftest* 7270 rm -rf conftest*
7245 eval "ac_cv_header_$ac_safe=yes" 7271 eval "ac_cv_header_$ac_safe=yes"
7246 else 7272 else
7286 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7312 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7287 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7313 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7288 esac 7314 esac
7289 7315
7290 echo "checking for WM_COMMAND option" 1>&6 7316 echo "checking for WM_COMMAND option" 1>&6
7291 echo "configure:7292: checking for WM_COMMAND option" >&5; 7317 echo "configure:7318: checking for WM_COMMAND option" >&5;
7292 if test "$with_wmcommand" != "no"; then 7318 if test "$with_wmcommand" != "no"; then
7293 { test "$extra_verbose" = "yes" && cat << \EOF 7319 { test "$extra_verbose" = "yes" && cat << \EOF
7294 Defining HAVE_WMCOMMAND 7320 Defining HAVE_WMCOMMAND
7295 EOF 7321 EOF
7296 cat >> confdefs.h <<\EOF 7322 cat >> confdefs.h <<\EOF
7301 fi 7327 fi
7302 7328
7303 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7329 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7304 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7330 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7305 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7331 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7306 echo "configure:7307: checking for X11/Xauth.h" >&5 7332 echo "configure:7333: checking for X11/Xauth.h" >&5
7307 7333
7308 cat > conftest.$ac_ext <<EOF 7334 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure" 7335 #line 7336 "configure"
7310 #include "confdefs.h" 7336 #include "confdefs.h"
7311 #include <X11/Xauth.h> 7337 #include <X11/Xauth.h>
7312 EOF 7338 EOF
7313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7314 { (eval echo configure:7315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7340 { (eval echo configure:7341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7316 if test -z "$ac_err"; then 7342 if test -z "$ac_err"; then
7317 rm -rf conftest* 7343 rm -rf conftest*
7318 eval "ac_cv_header_$ac_safe=yes" 7344 eval "ac_cv_header_$ac_safe=yes"
7319 else 7345 else
7332 with_xauth=no 7358 with_xauth=no
7333 fi 7359 fi
7334 } 7360 }
7335 test -z "$with_xauth" && { 7361 test -z "$with_xauth" && {
7336 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7362 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7337 echo "configure:7338: checking for XauGetAuthByAddr in -lXau" >&5 7363 echo "configure:7364: checking for XauGetAuthByAddr in -lXau" >&5
7338 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7364 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7339 7365
7340 xe_check_libs=" -lXau " 7366 xe_check_libs=" -lXau "
7341 cat > conftest.$ac_ext <<EOF 7367 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure" 7368 #line 7369 "configure"
7343 #include "confdefs.h" 7369 #include "confdefs.h"
7344 /* Override any gcc2 internal prototype to avoid an error. */ 7370 /* Override any gcc2 internal prototype to avoid an error. */
7345 /* We use char because int might match the return type of a gcc2 7371 /* We use char because int might match the return type of a gcc2
7346 builtin and then its argument prototype would still apply. */ 7372 builtin and then its argument prototype would still apply. */
7347 char XauGetAuthByAddr(); 7373 char XauGetAuthByAddr();
7348 7374
7349 int main() { 7375 int main() {
7350 XauGetAuthByAddr() 7376 XauGetAuthByAddr()
7351 ; return 0; } 7377 ; return 0; }
7352 EOF 7378 EOF
7353 if { (eval echo configure:7354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7379 if { (eval echo configure:7380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7354 rm -rf conftest* 7380 rm -rf conftest*
7355 eval "ac_cv_lib_$ac_lib_var=yes" 7381 eval "ac_cv_lib_$ac_lib_var=yes"
7356 else 7382 else
7357 echo "configure: failed program was:" >&5 7383 echo "configure: failed program was:" >&5
7358 cat conftest.$ac_ext >&5 7384 cat conftest.$ac_ext >&5
7389 fi 7415 fi
7390 7416
7391 7417
7392 7418
7393 7419
7420
7421 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
7422 : ${XEMACS_CC:="$CC"}
7423
7394 if test "$with_modules" != "no"; then 7424 if test "$with_modules" != "no"; then
7395 echo "checking for module support" 1>&6 7425 echo "checking for module support" 1>&6
7396 echo "configure:7397: checking for module support" >&5 7426 echo "configure:7427: checking for module support" >&5
7397 7427
7398 if test "$with_msw" = "yes"; then 7428 if test "$with_msw" = "yes"; then
7399 have_dl=yes; 7429 have_dl=yes;
7400 else 7430 else
7401 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 7431 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
7402 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 7432 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
7403 echo "configure:7404: checking for dlfcn.h" >&5 7433 echo "configure:7434: checking for dlfcn.h" >&5
7404 7434
7405 cat > conftest.$ac_ext <<EOF 7435 cat > conftest.$ac_ext <<EOF
7406 #line 7407 "configure" 7436 #line 7437 "configure"
7407 #include "confdefs.h" 7437 #include "confdefs.h"
7408 #include <dlfcn.h> 7438 #include <dlfcn.h>
7409 EOF 7439 EOF
7410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7411 { (eval echo configure:7412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7441 { (eval echo configure:7442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7413 if test -z "$ac_err"; then 7443 if test -z "$ac_err"; then
7414 rm -rf conftest* 7444 rm -rf conftest*
7415 eval "ac_cv_header_$ac_safe=yes" 7445 eval "ac_cv_header_$ac_safe=yes"
7416 else 7446 else
7423 rm -f conftest* 7453 rm -f conftest*
7424 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7425 echo "$ac_t""yes" 1>&6 7455 echo "$ac_t""yes" 1>&6
7426 7456
7427 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 7457 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
7428 echo "configure:7429: checking for dlopen in -lc" >&5 7458 echo "configure:7459: checking for dlopen in -lc" >&5
7429 cat > conftest.$ac_ext <<EOF 7459 cat > conftest.$ac_ext <<EOF
7430 #line 7431 "configure" 7460 #line 7461 "configure"
7431 #include "confdefs.h" 7461 #include "confdefs.h"
7432 #include <dlfcn.h> 7462 #include <dlfcn.h>
7433 int main() { 7463 int main() {
7434 dlopen ("", 0); 7464 dlopen ("", 0);
7435 ; return 0; } 7465 ; return 0; }
7436 EOF 7466 EOF
7437 if { (eval echo configure:7438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7467 if { (eval echo configure:7468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7438 rm -rf conftest* 7468 rm -rf conftest*
7439 have_dl=yes 7469 have_dl=yes
7440 else 7470 else
7441 echo "configure: failed program was:" >&5 7471 echo "configure: failed program was:" >&5
7442 cat conftest.$ac_ext >&5 7472 cat conftest.$ac_ext >&5
7443 rm -rf conftest* 7473 rm -rf conftest*
7444 7474
7445 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 7475 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7446 echo "configure:7447: checking for dlopen in -ldl" >&5 7476 echo "configure:7477: checking for dlopen in -ldl" >&5
7447 ac_save_LIBS="$LIBS" 7477 ac_save_LIBS="$LIBS"
7448 LIBS="-ldl $LIBS" 7478 LIBS="-ldl $LIBS"
7449 cat > conftest.$ac_ext <<EOF 7479 cat > conftest.$ac_ext <<EOF
7450 #line 7451 "configure" 7480 #line 7481 "configure"
7451 #include "confdefs.h" 7481 #include "confdefs.h"
7452 #include <dlfcn.h> 7482 #include <dlfcn.h>
7453 int main() { 7483 int main() {
7454 dlopen ("", 0); 7484 dlopen ("", 0);
7455 ; return 0; } 7485 ; return 0; }
7456 EOF 7486 EOF
7457 if { (eval echo configure:7458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7487 if { (eval echo configure:7488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7458 rm -rf conftest* 7488 rm -rf conftest*
7459 have_dl=yes 7489 have_dl=yes
7460 else 7490 else
7461 echo "configure: failed program was:" >&5 7491 echo "configure: failed program was:" >&5
7462 cat conftest.$ac_ext >&5 7492 cat conftest.$ac_ext >&5
7481 } 7511 }
7482 7512
7483 else 7513 else
7484 7514
7485 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7515 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
7486 echo "configure:7487: checking for shl_load in -ldld" >&5 7516 echo "configure:7517: checking for shl_load in -ldld" >&5
7487 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 7517 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
7488 7518
7489 xe_check_libs=" -ldld " 7519 xe_check_libs=" -ldld "
7490 cat > conftest.$ac_ext <<EOF 7520 cat > conftest.$ac_ext <<EOF
7491 #line 7492 "configure" 7521 #line 7522 "configure"
7492 #include "confdefs.h" 7522 #include "confdefs.h"
7493 /* Override any gcc2 internal prototype to avoid an error. */ 7523 /* Override any gcc2 internal prototype to avoid an error. */
7494 /* We use char because int might match the return type of a gcc2 7524 /* We use char because int might match the return type of a gcc2
7495 builtin and then its argument prototype would still apply. */ 7525 builtin and then its argument prototype would still apply. */
7496 char shl_load(); 7526 char shl_load();
7497 7527
7498 int main() { 7528 int main() {
7499 shl_load() 7529 shl_load()
7500 ; return 0; } 7530 ; return 0; }
7501 EOF 7531 EOF
7502 if { (eval echo configure:7503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7503 rm -rf conftest* 7533 rm -rf conftest*
7504 eval "ac_cv_lib_$ac_lib_var=yes" 7534 eval "ac_cv_lib_$ac_lib_var=yes"
7505 else 7535 else
7506 echo "configure: failed program was:" >&5 7536 echo "configure: failed program was:" >&5
7507 cat conftest.$ac_ext >&5 7537 cat conftest.$ac_ext >&5
7524 7554
7525 else 7555 else
7526 echo "$ac_t""no" 1>&6 7556 echo "$ac_t""no" 1>&6
7527 7557
7528 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 7558 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
7529 echo "configure:7530: checking for dld_init in -ldld" >&5 7559 echo "configure:7560: checking for dld_init in -ldld" >&5
7530 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 7560 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
7531 7561
7532 xe_check_libs=" -ldld " 7562 xe_check_libs=" -ldld "
7533 cat > conftest.$ac_ext <<EOF 7563 cat > conftest.$ac_ext <<EOF
7534 #line 7535 "configure" 7564 #line 7565 "configure"
7535 #include "confdefs.h" 7565 #include "confdefs.h"
7536 /* Override any gcc2 internal prototype to avoid an error. */ 7566 /* Override any gcc2 internal prototype to avoid an error. */
7537 /* We use char because int might match the return type of a gcc2 7567 /* We use char because int might match the return type of a gcc2
7538 builtin and then its argument prototype would still apply. */ 7568 builtin and then its argument prototype would still apply. */
7539 char dld_init(); 7569 char dld_init();
7540 7570
7541 int main() { 7571 int main() {
7542 dld_init() 7572 dld_init()
7543 ; return 0; } 7573 ; return 0; }
7544 EOF 7574 EOF
7545 if { (eval echo configure:7546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7546 rm -rf conftest* 7576 rm -rf conftest*
7547 eval "ac_cv_lib_$ac_lib_var=yes" 7577 eval "ac_cv_lib_$ac_lib_var=yes"
7548 else 7578 else
7549 echo "configure: failed program was:" >&5 7579 echo "configure: failed program was:" >&5
7550 cat conftest.$ac_ext >&5 7580 cat conftest.$ac_ext >&5
7585 ld_dynamic_link_flags= 7615 ld_dynamic_link_flags=
7586 xehost=$canonical 7616 xehost=$canonical
7587 xealias=$internal_configuration 7617 xealias=$internal_configuration
7588 7618
7589 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 7619 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
7590 echo "configure:7591: checking how to build dynamic libraries for ${xehost}" >&5 7620 echo "configure:7621: checking how to build dynamic libraries for ${xehost}" >&5
7591 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 7621 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
7592 case "$xehost" in 7622 case "$xehost" in
7593 *-*-linux-gnu*) ;; 7623 *-*-linux-gnu*) ;;
7594 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 7624 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
7595 esac 7625 esac
7613 # Now see if the compiler is really GCC. 7643 # Now see if the compiler is really GCC.
7614 if test "$GCC" = "yes"; then 7644 if test "$GCC" = "yes"; then
7615 XEGCC=yes 7645 XEGCC=yes
7616 else 7646 else
7617 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 7647 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
7618 echo "configure:7619: checking checking whether we are using GNU C" >&5 7648 echo "configure:7649: checking checking whether we are using GNU C" >&5
7619 cat > conftest.$ac_ext <<EOF 7649 cat > conftest.$ac_ext <<EOF
7620 #line 7621 "configure" 7650 #line 7651 "configure"
7621 #include "confdefs.h" 7651 #include "confdefs.h"
7622 7652
7623 #ifdef __GNUC__ 7653 #ifdef __GNUC__
7624 yes; 7654 yes;
7625 #endif 7655 #endif
7637 7667
7638 echo "$ac_t""${XEGCC}" 1>&6 7668 echo "$ac_t""${XEGCC}" 1>&6
7639 fi 7669 fi
7640 7670
7641 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 7671 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
7642 echo "configure:7643: checking how to produce PIC code" >&5 7672 echo "configure:7673: checking how to produce PIC code" >&5
7643 wl= 7673 wl=
7644 7674
7645 can_build_shared=yes 7675 can_build_shared=yes
7676 cygwin_warn=
7646 if test "$XEGCC" = yes; then 7677 if test "$XEGCC" = yes; then
7647 wl='-Wl,' 7678 wl='-Wl,'
7648 7679
7649 case "$xehost_os" in 7680 case "$xehost_os" in
7650 aix[3-9]* | irix[5-9]* | osf[3-9]) 7681 aix[3-9]* | irix[5-9]* | osf[3-9])
7660 # like `-m68040'. 7691 # like `-m68040'.
7661 dll_cflags='-m68020 -resident32 -malways-restore-a4' 7692 dll_cflags='-m68020 -resident32 -malways-restore-a4'
7662 ;; 7693 ;;
7663 *cygwin* | *mingw* ) 7694 *cygwin* | *mingw* )
7664 # PIC is the default 7695 # PIC is the default
7696 cygwin_warn=yes
7697 # #### Need some trickery involving import libraries that we don't
7698 # currently support.
7699 can_build_shared=no
7665 ;; 7700 ;;
7666 *) 7701 *)
7667 dll_cflags='-fPIC' 7702 dll_cflags='-fPIC'
7668 ;; 7703 ;;
7669 esac 7704 esac
7738 if test -n "$dll_cflags"; then 7773 if test -n "$dll_cflags"; then
7739 echo "$ac_t""${dll_cflags}" 1>&6 7774 echo "$ac_t""${dll_cflags}" 1>&6
7740 7775
7741 # Check to make sure the dll_cflags actually works. 7776 # Check to make sure the dll_cflags actually works.
7742 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 7777 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
7743 echo "configure:7744: checking if PIC flag ${dll_cflags} really works" >&5 7778 echo "configure:7779: checking if PIC flag ${dll_cflags} really works" >&5
7744 save_CFLAGS="$CFLAGS" 7779 save_CFLAGS="$CFLAGS"
7745 CFLAGS="$CFLAGS $dll_cflags -DPIC" 7780 CFLAGS="$CFLAGS $dll_cflags -DPIC"
7746 cat > conftest.$ac_ext <<EOF 7781 cat > conftest.$ac_ext <<EOF
7747 #line 7748 "configure" 7782 #line 7783 "configure"
7748 #include "confdefs.h" 7783 #include "confdefs.h"
7749 7784
7750 int main() { 7785 int main() {
7751 int x=0; 7786 int x=0;
7752 ; return 0; } 7787 ; return 0; }
7753 EOF 7788 EOF
7754 if { (eval echo configure:7755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7789 if { (eval echo configure:7790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7755 rm -rf conftest* 7790 rm -rf conftest*
7756 7791
7757 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 7792 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
7758 # reports no error. So, we need to grep stderr for (Bundled). 7793 # reports no error. So, we need to grep stderr for (Bundled).
7759 if grep '(Bundled)' config.log >/dev/null; then 7794 if grep '(Bundled)' config.log >/dev/null; then
7775 CFLAGS="$save_CFLAGS" 7810 CFLAGS="$save_CFLAGS"
7776 else 7811 else
7777 echo "$ac_t""none" 1>&6 7812 echo "$ac_t""none" 1>&6
7778 fi 7813 fi
7779 7814
7815 if test -n "$cygwin_warn"; then
7816 echo "configure: warning: Cannot currently build modules under Cygwin." 1>&2
7817 fi
7818
7780 if test "$can_build_shared" = "yes"; then 7819 if test "$can_build_shared" = "yes"; then
7781 cc_produces_so=no 7820 cc_produces_so=no
7782 xldf= 7821 xldf=
7783 xcldf= 7822 xcldf=
7784 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 7823 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
7785 echo "configure:7786: checking if C compiler can produce shared libraries" >&5 7824 echo "configure:7825: checking if C compiler can produce shared libraries" >&5
7786 if test "$XEGCC" = yes; then 7825 if test "$XEGCC" = yes; then
7787 xcldf="-shared" 7826 xcldf="-shared"
7788 xldf="-shared" 7827 xldf="-shared"
7789 else # Not using GCC 7828 else # Not using GCC
7790 case "$xehost_os" in 7829 case "$xehost_os" in
7831 LDFLAGS="$xcldf $LDFLAGS" 7870 LDFLAGS="$xcldf $LDFLAGS"
7832 LIBS= 7871 LIBS=
7833 xe_libs= 7872 xe_libs=
7834 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 7873 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
7835 cat > conftest.$ac_ext <<EOF 7874 cat > conftest.$ac_ext <<EOF
7836 #line 7837 "configure" 7875 #line 7876 "configure"
7837 #include "confdefs.h" 7876 #include "confdefs.h"
7838 7877
7839 int main() { 7878 int main() {
7840 int x=0; 7879 int x=0;
7841 ; return 0; } 7880 ; return 0; }
7842 EOF 7881 EOF
7843 if { (eval echo configure:7844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7882 if { (eval echo configure:7883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7844 rm -rf conftest* 7883 rm -rf conftest*
7845 cc_produces_so=yes 7884 cc_produces_so=yes
7846 else 7885 else
7847 echo "configure: failed program was:" >&5 7886 echo "configure: failed program was:" >&5
7848 cat conftest.$ac_ext >&5 7887 cat conftest.$ac_ext >&5
7863 if test -z "$LTLD"; then 7902 if test -z "$LTLD"; then
7864 ac_prog=ld 7903 ac_prog=ld
7865 if test "$XEGCC" = yes; then 7904 if test "$XEGCC" = yes; then
7866 # Check if gcc -print-prog-name=ld gives a path. 7905 # Check if gcc -print-prog-name=ld gives a path.
7867 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 7906 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
7868 echo "configure:7869: checking for ld used by GCC" >&5 7907 echo "configure:7908: checking for ld used by GCC" >&5
7869 ac_prog=`($CC -print-prog-name=ld) 2>&5` 7908 ac_prog=`($CC -print-prog-name=ld) 2>&5`
7870 case "$ac_prog" in 7909 case "$ac_prog" in
7871 # Accept absolute paths. 7910 # Accept absolute paths.
7872 /*) 7911 /*)
7873 if test -z "$LTLD"; then 7912 if test -z "$LTLD"; then
7889 with_gnu_ld=unknown 7928 with_gnu_ld=unknown
7890 ;; 7929 ;;
7891 esac 7930 esac
7892 else 7931 else
7893 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 7932 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
7894 echo "configure:7895: checking for GNU ld" >&5 7933 echo "configure:7934: checking for GNU ld" >&5
7895 fi 7934 fi
7896 7935
7897 if test -z "$LTLD"; then 7936 if test -z "$LTLD"; then
7898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7899 for ac_dir in $PATH; do 7938 for ac_dir in $PATH; do
7927 7966
7928 ld_dynamic_link_flags= 7967 ld_dynamic_link_flags=
7929 7968
7930 # Check to see if it really is or isn't GNU ld. 7969 # Check to see if it really is or isn't GNU ld.
7931 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 7970 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
7932 echo "configure:7933: checking if the linker is GNU ld" >&5 7971 echo "configure:7972: checking if the linker is GNU ld" >&5
7933 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7972 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7934 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 7973 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7935 xe_gnu_ld=yes 7974 xe_gnu_ld=yes
7936 else 7975 else
7937 xe_gnu_ld=no 7976 xe_gnu_ld=no
7955 ld_shlibs=yes 7994 ld_shlibs=yes
7956 else 7995 else
7957 # OK - only NOW do we futz about with ld. 7996 # OK - only NOW do we futz about with ld.
7958 # See if the linker supports building shared libraries. 7997 # See if the linker supports building shared libraries.
7959 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 7998 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
7960 echo "configure:7961: checking whether the linker supports shared libraries" >&5 7999 echo "configure:8000: checking whether the linker supports shared libraries" >&5
7961 dll_ld=$CC 8000 dll_ld=$CC
7962 dll_ldflags=$LDFLAGS 8001 dll_ldflags=$LDFLAGS
7963 ld_shlibs=yes 8002 ld_shlibs=yes
7964 can_build_shared=yes 8003 can_build_shared=yes
7965 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 8004 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
8163 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 8202 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
8164 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 8203 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
8165 for ac_func in dlerror _dlerror 8204 for ac_func in dlerror _dlerror
8166 do 8205 do
8167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8168 echo "configure:8169: checking for $ac_func" >&5 8207 echo "configure:8208: checking for $ac_func" >&5
8169 8208
8170 cat > conftest.$ac_ext <<EOF 8209 cat > conftest.$ac_ext <<EOF
8171 #line 8172 "configure" 8210 #line 8211 "configure"
8172 #include "confdefs.h" 8211 #include "confdefs.h"
8173 /* System header to define __stub macros and hopefully few prototypes, 8212 /* System header to define __stub macros and hopefully few prototypes,
8174 which can conflict with char $ac_func(); below. */ 8213 which can conflict with char $ac_func(); below. */
8175 #include <assert.h> 8214 #include <assert.h>
8176 /* Override any gcc2 internal prototype to avoid an error. */ 8215 /* Override any gcc2 internal prototype to avoid an error. */
8189 $ac_func(); 8228 $ac_func();
8190 #endif 8229 #endif
8191 8230
8192 ; return 0; } 8231 ; return 0; }
8193 EOF 8232 EOF
8194 if { (eval echo configure:8195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8195 rm -rf conftest* 8234 rm -rf conftest*
8196 eval "ac_cv_func_$ac_func=yes" 8235 eval "ac_cv_func_$ac_func=yes"
8197 else 8236 else
8198 echo "configure: failed program was:" >&5 8237 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5 8238 cat conftest.$ac_ext >&5
8229 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; } 8268 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
8230 else 8269 else
8231 echo " No module support." 8270 echo " No module support."
8232 fi 8271 fi
8233 with_modules=no 8272 with_modules=no
8234 MOD_CC=${CC} 8273 MOD_CC="$XEMACS_CC"
8235 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src" 8274 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
8236 INSTALLPATH="" 8275 INSTALLPATH=""
8237 MOD_INSTALL_PROGRAM="true" 8276 MOD_INSTALL_PROGRAM="true"
8238 OBJECT_TO_BUILD="\$(MODNAME).o" 8277 OBJECT_TO_BUILD="\$(MODNAME).o"
8239 fi 8278 fi
8251 8290
8252 if test "$with_tooltalk" != "no" ; then 8291 if test "$with_tooltalk" != "no" ; then
8253 for dir in "" "Tt/" "desktop/" ; do 8292 for dir in "" "Tt/" "desktop/" ; do
8254 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 8293 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
8255 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 8294 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
8256 echo "configure:8257: checking for ${dir}tt_c.h" >&5 8295 echo "configure:8296: checking for ${dir}tt_c.h" >&5
8257 8296
8258 cat > conftest.$ac_ext <<EOF 8297 cat > conftest.$ac_ext <<EOF
8259 #line 8260 "configure" 8298 #line 8299 "configure"
8260 #include "confdefs.h" 8299 #include "confdefs.h"
8261 #include <${dir}tt_c.h> 8300 #include <${dir}tt_c.h>
8262 EOF 8301 EOF
8263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8264 { (eval echo configure:8265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8303 { (eval echo configure:8304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8266 if test -z "$ac_err"; then 8305 if test -z "$ac_err"; then
8267 rm -rf conftest* 8306 rm -rf conftest*
8268 eval "ac_cv_header_$ac_safe=yes" 8307 eval "ac_cv_header_$ac_safe=yes"
8269 else 8308 else
8295 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 8334 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
8296 8335
8297 xe_msg_checking="for tt_message_create in -ltt" 8336 xe_msg_checking="for tt_message_create in -ltt"
8298 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 8337 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
8299 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8338 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8300 echo "configure:8301: checking "$xe_msg_checking"" >&5 8339 echo "configure:8340: checking "$xe_msg_checking"" >&5
8301 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 8340 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
8302 8341
8303 xe_check_libs=" -ltt $extra_libs" 8342 xe_check_libs=" -ltt $extra_libs"
8304 cat > conftest.$ac_ext <<EOF 8343 cat > conftest.$ac_ext <<EOF
8305 #line 8306 "configure" 8344 #line 8345 "configure"
8306 #include "confdefs.h" 8345 #include "confdefs.h"
8307 /* Override any gcc2 internal prototype to avoid an error. */ 8346 /* Override any gcc2 internal prototype to avoid an error. */
8308 /* We use char because int might match the return type of a gcc2 8347 /* We use char because int might match the return type of a gcc2
8309 builtin and then its argument prototype would still apply. */ 8348 builtin and then its argument prototype would still apply. */
8310 char tt_message_create(); 8349 char tt_message_create();
8311 8350
8312 int main() { 8351 int main() {
8313 tt_message_create() 8352 tt_message_create()
8314 ; return 0; } 8353 ; return 0; }
8315 EOF 8354 EOF
8316 if { (eval echo configure:8317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8355 if { (eval echo configure:8356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8317 rm -rf conftest* 8356 rm -rf conftest*
8318 eval "ac_cv_lib_$ac_lib_var=yes" 8357 eval "ac_cv_lib_$ac_lib_var=yes"
8319 else 8358 else
8320 echo "configure: failed program was:" >&5 8359 echo "configure: failed program was:" >&5
8321 cat conftest.$ac_ext >&5 8360 cat conftest.$ac_ext >&5
8365 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi 8404 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
8366 fi 8405 fi
8367 8406
8368 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 8407 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
8369 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 8408 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
8370 echo "configure:8371: checking for Dt/Dt.h" >&5 8409 echo "configure:8410: checking for Dt/Dt.h" >&5
8371 8410
8372 cat > conftest.$ac_ext <<EOF 8411 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure" 8412 #line 8413 "configure"
8374 #include "confdefs.h" 8413 #include "confdefs.h"
8375 #include <Dt/Dt.h> 8414 #include <Dt/Dt.h>
8376 EOF 8415 EOF
8377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8378 { (eval echo configure:8379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8417 { (eval echo configure:8418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8380 if test -z "$ac_err"; then 8419 if test -z "$ac_err"; then
8381 rm -rf conftest* 8420 rm -rf conftest*
8382 eval "ac_cv_header_$ac_safe=yes" 8421 eval "ac_cv_header_$ac_safe=yes"
8383 else 8422 else
8396 with_cde=no 8435 with_cde=no
8397 fi 8436 fi
8398 } 8437 }
8399 test -z "$with_cde" && { 8438 test -z "$with_cde" && {
8400 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 8439 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
8401 echo "configure:8402: checking for DtDndDragStart in -lDtSvc" >&5 8440 echo "configure:8441: checking for DtDndDragStart in -lDtSvc" >&5
8402 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 8441 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
8403 8442
8404 xe_check_libs=" -lDtSvc " 8443 xe_check_libs=" -lDtSvc "
8405 cat > conftest.$ac_ext <<EOF 8444 cat > conftest.$ac_ext <<EOF
8406 #line 8407 "configure" 8445 #line 8446 "configure"
8407 #include "confdefs.h" 8446 #include "confdefs.h"
8408 /* Override any gcc2 internal prototype to avoid an error. */ 8447 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2 8448 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */ 8449 builtin and then its argument prototype would still apply. */
8411 char DtDndDragStart(); 8450 char DtDndDragStart();
8412 8451
8413 int main() { 8452 int main() {
8414 DtDndDragStart() 8453 DtDndDragStart()
8415 ; return 0; } 8454 ; return 0; }
8416 EOF 8455 EOF
8417 if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8456 if { (eval echo configure:8457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8418 rm -rf conftest* 8457 rm -rf conftest*
8419 eval "ac_cv_lib_$ac_lib_var=yes" 8458 eval "ac_cv_lib_$ac_lib_var=yes"
8420 else 8459 else
8421 echo "configure: failed program was:" >&5 8460 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5 8461 cat conftest.$ac_ext >&5
8493 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 8532 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
8494 fi 8533 fi
8495 8534
8496 if test "$with_dragndrop" != "no" ; then 8535 if test "$with_dragndrop" != "no" ; then
8497 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 8536 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
8498 echo "configure:8499: checking if drag and drop API is needed" >&5 8537 echo "configure:8538: checking if drag and drop API is needed" >&5
8499 if test -n "$dragndrop_proto" ; then 8538 if test -n "$dragndrop_proto" ; then
8500 with_dragndrop=yes 8539 with_dragndrop=yes
8501 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 8540 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
8502 { test "$extra_verbose" = "yes" && cat << \EOF 8541 { test "$extra_verbose" = "yes" && cat << \EOF
8503 Defining HAVE_DRAGNDROP 8542 Defining HAVE_DRAGNDROP
8513 echo "$ac_t""no" 1>&6 8552 echo "$ac_t""no" 1>&6
8514 fi 8553 fi
8515 fi 8554 fi
8516 8555
8517 echo "checking for LDAP" 1>&6 8556 echo "checking for LDAP" 1>&6
8518 echo "configure:8519: checking for LDAP" >&5 8557 echo "configure:8558: checking for LDAP" >&5
8519 ldap_libs= 8558 ldap_libs=
8520 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 8559 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
8521 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 8560 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
8522 echo "configure:8523: checking for ldap.h" >&5 8561 echo "configure:8562: checking for ldap.h" >&5
8523 8562
8524 cat > conftest.$ac_ext <<EOF 8563 cat > conftest.$ac_ext <<EOF
8525 #line 8526 "configure" 8564 #line 8565 "configure"
8526 #include "confdefs.h" 8565 #include "confdefs.h"
8527 #include <ldap.h> 8566 #include <ldap.h>
8528 EOF 8567 EOF
8529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8530 { (eval echo configure:8531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8569 { (eval echo configure:8570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8532 if test -z "$ac_err"; then 8571 if test -z "$ac_err"; then
8533 rm -rf conftest* 8572 rm -rf conftest*
8534 eval "ac_cv_header_$ac_safe=yes" 8573 eval "ac_cv_header_$ac_safe=yes"
8535 else 8574 else
8548 with_ldap=no 8587 with_ldap=no
8549 fi 8588 fi
8550 } 8589 }
8551 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 8590 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
8552 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 8591 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
8553 echo "configure:8554: checking for lber.h" >&5 8592 echo "configure:8593: checking for lber.h" >&5
8554 8593
8555 cat > conftest.$ac_ext <<EOF 8594 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure" 8595 #line 8596 "configure"
8557 #include "confdefs.h" 8596 #include "confdefs.h"
8558 #include <lber.h> 8597 #include <lber.h>
8559 EOF 8598 EOF
8560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8561 { (eval echo configure:8562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8600 { (eval echo configure:8601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8563 if test -z "$ac_err"; then 8602 if test -z "$ac_err"; then
8564 rm -rf conftest* 8603 rm -rf conftest*
8565 eval "ac_cv_header_$ac_safe=yes" 8604 eval "ac_cv_header_$ac_safe=yes"
8566 else 8605 else
8580 fi 8619 fi
8581 } 8620 }
8582 if test "$with_ldap" != "no"; then 8621 if test "$with_ldap" != "no"; then
8583 8622
8584 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 8623 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
8585 echo "configure:8586: checking for ldap_search in -lldap" >&5 8624 echo "configure:8625: checking for ldap_search in -lldap" >&5
8586 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 8625 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
8587 8626
8588 xe_check_libs=" -lldap " 8627 xe_check_libs=" -lldap "
8589 cat > conftest.$ac_ext <<EOF 8628 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure" 8629 #line 8630 "configure"
8591 #include "confdefs.h" 8630 #include "confdefs.h"
8592 /* Override any gcc2 internal prototype to avoid an error. */ 8631 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2 8632 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */ 8633 builtin and then its argument prototype would still apply. */
8595 char ldap_search(); 8634 char ldap_search();
8596 8635
8597 int main() { 8636 int main() {
8598 ldap_search() 8637 ldap_search()
8599 ; return 0; } 8638 ; return 0; }
8600 EOF 8639 EOF
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8640 if { (eval echo configure:8641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8602 rm -rf conftest* 8641 rm -rf conftest*
8603 eval "ac_cv_lib_$ac_lib_var=yes" 8642 eval "ac_cv_lib_$ac_lib_var=yes"
8604 else 8643 else
8605 echo "configure: failed program was:" >&5 8644 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5 8645 cat conftest.$ac_ext >&5
8621 8660
8622 test "$with_ldap_nolber" = "no" && { 8661 test "$with_ldap_nolber" = "no" && {
8623 xe_msg_checking="for ldap_open in -lldap" 8662 xe_msg_checking="for ldap_open in -lldap"
8624 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 8663 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
8625 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8664 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8626 echo "configure:8627: checking "$xe_msg_checking"" >&5 8665 echo "configure:8666: checking "$xe_msg_checking"" >&5
8627 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 8666 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8628 8667
8629 xe_check_libs=" -lldap -llber" 8668 xe_check_libs=" -lldap -llber"
8630 cat > conftest.$ac_ext <<EOF 8669 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure" 8670 #line 8671 "configure"
8632 #include "confdefs.h" 8671 #include "confdefs.h"
8633 /* Override any gcc2 internal prototype to avoid an error. */ 8672 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2 8673 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */ 8674 builtin and then its argument prototype would still apply. */
8636 char ldap_open(); 8675 char ldap_open();
8637 8676
8638 int main() { 8677 int main() {
8639 ldap_open() 8678 ldap_open()
8640 ; return 0; } 8679 ; return 0; }
8641 EOF 8680 EOF
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8681 if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8643 rm -rf conftest* 8682 rm -rf conftest*
8644 eval "ac_cv_lib_$ac_lib_var=yes" 8683 eval "ac_cv_lib_$ac_lib_var=yes"
8645 else 8684 else
8646 echo "configure: failed program was:" >&5 8685 echo "configure: failed program was:" >&5
8647 cat conftest.$ac_ext >&5 8686 cat conftest.$ac_ext >&5
8662 } 8701 }
8663 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 8702 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
8664 xe_msg_checking="for ldap_open in -lldap" 8703 xe_msg_checking="for ldap_open in -lldap"
8665 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 8704 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
8666 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8705 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8667 echo "configure:8668: checking "$xe_msg_checking"" >&5 8706 echo "configure:8707: checking "$xe_msg_checking"" >&5
8668 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 8707 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8669 8708
8670 xe_check_libs=" -lldap -llber -lkrb" 8709 xe_check_libs=" -lldap -llber -lkrb"
8671 cat > conftest.$ac_ext <<EOF 8710 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure" 8711 #line 8712 "configure"
8673 #include "confdefs.h" 8712 #include "confdefs.h"
8674 /* Override any gcc2 internal prototype to avoid an error. */ 8713 /* Override any gcc2 internal prototype to avoid an error. */
8675 /* We use char because int might match the return type of a gcc2 8714 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */ 8715 builtin and then its argument prototype would still apply. */
8677 char ldap_open(); 8716 char ldap_open();
8678 8717
8679 int main() { 8718 int main() {
8680 ldap_open() 8719 ldap_open()
8681 ; return 0; } 8720 ; return 0; }
8682 EOF 8721 EOF
8683 if { (eval echo configure:8684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8722 if { (eval echo configure:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8684 rm -rf conftest* 8723 rm -rf conftest*
8685 eval "ac_cv_lib_$ac_lib_var=yes" 8724 eval "ac_cv_lib_$ac_lib_var=yes"
8686 else 8725 else
8687 echo "configure: failed program was:" >&5 8726 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5 8727 cat conftest.$ac_ext >&5
8703 } 8742 }
8704 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 8743 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
8705 xe_msg_checking="for ldap_open in -lldap" 8744 xe_msg_checking="for ldap_open in -lldap"
8706 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 8745 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
8707 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8746 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8708 echo "configure:8709: checking "$xe_msg_checking"" >&5 8747 echo "configure:8748: checking "$xe_msg_checking"" >&5
8709 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 8748 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8710 8749
8711 xe_check_libs=" -lldap -llber -lkrb -ldes" 8750 xe_check_libs=" -lldap -llber -lkrb -ldes"
8712 cat > conftest.$ac_ext <<EOF 8751 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure" 8752 #line 8753 "configure"
8714 #include "confdefs.h" 8753 #include "confdefs.h"
8715 /* Override any gcc2 internal prototype to avoid an error. */ 8754 /* Override any gcc2 internal prototype to avoid an error. */
8716 /* We use char because int might match the return type of a gcc2 8755 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */ 8756 builtin and then its argument prototype would still apply. */
8718 char ldap_open(); 8757 char ldap_open();
8719 8758
8720 int main() { 8759 int main() {
8721 ldap_open() 8760 ldap_open()
8722 ; return 0; } 8761 ; return 0; }
8723 EOF 8762 EOF
8724 if { (eval echo configure:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8725 rm -rf conftest* 8764 rm -rf conftest*
8726 eval "ac_cv_lib_$ac_lib_var=yes" 8765 eval "ac_cv_lib_$ac_lib_var=yes"
8727 else 8766 else
8728 echo "configure: failed program was:" >&5 8767 echo "configure: failed program was:" >&5
8729 cat conftest.$ac_ext >&5 8768 cat conftest.$ac_ext >&5
8768 fi 8807 fi
8769 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs" 8808 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
8770 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 8809 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8771 do 8810 do
8772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8773 echo "configure:8774: checking for $ac_func" >&5 8812 echo "configure:8813: checking for $ac_func" >&5
8774 8813
8775 cat > conftest.$ac_ext <<EOF 8814 cat > conftest.$ac_ext <<EOF
8776 #line 8777 "configure" 8815 #line 8816 "configure"
8777 #include "confdefs.h" 8816 #include "confdefs.h"
8778 /* System header to define __stub macros and hopefully few prototypes, 8817 /* System header to define __stub macros and hopefully few prototypes,
8779 which can conflict with char $ac_func(); below. */ 8818 which can conflict with char $ac_func(); below. */
8780 #include <assert.h> 8819 #include <assert.h>
8781 /* Override any gcc2 internal prototype to avoid an error. */ 8820 /* Override any gcc2 internal prototype to avoid an error. */
8794 $ac_func(); 8833 $ac_func();
8795 #endif 8834 #endif
8796 8835
8797 ; return 0; } 8836 ; return 0; }
8798 EOF 8837 EOF
8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8838 if { (eval echo configure:8839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8800 rm -rf conftest* 8839 rm -rf conftest*
8801 eval "ac_cv_func_$ac_func=yes" 8840 eval "ac_cv_func_$ac_func=yes"
8802 else 8841 else
8803 echo "configure: failed program was:" >&5 8842 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5 8843 cat conftest.$ac_ext >&5
8823 fi 8862 fi
8824 done 8863 done
8825 8864
8826 LIBS="$save_LIBS" 8865 LIBS="$save_LIBS"
8827 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi 8866 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
8867 need_modules_common=yes
8828 if test "$with_modules" = "yes"; then 8868 if test "$with_modules" = "yes"; then
8829 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 8869 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
8830 fi 8870 fi
8831 fi 8871 fi
8832 8872
8833 8873
8834 postgresql_libs= 8874 postgresql_libs=
8835 if test "$with_postgresql" != "no"; then 8875 if test "$with_postgresql" != "no"; then
8836 echo "checking for PostgreSQL" 1>&6 8876 echo "checking for PostgreSQL" 1>&6
8837 echo "configure:8838: checking for PostgreSQL" >&5 8877 echo "configure:8878: checking for PostgreSQL" >&5
8838 8878
8839 for header_dir in "" "pgsql/" "postgresql/"; do 8879 for header_dir in "" "pgsql/" "postgresql/"; do
8840 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 8880 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8841 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 8881 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8842 echo "configure:8843: checking for ${header_dir}libpq-fe.h" >&5 8882 echo "configure:8883: checking for ${header_dir}libpq-fe.h" >&5
8843 8883
8844 cat > conftest.$ac_ext <<EOF 8884 cat > conftest.$ac_ext <<EOF
8845 #line 8846 "configure" 8885 #line 8886 "configure"
8846 #include "confdefs.h" 8886 #include "confdefs.h"
8847 #include <${header_dir}libpq-fe.h> 8887 #include <${header_dir}libpq-fe.h>
8848 EOF 8888 EOF
8849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8850 { (eval echo configure:8851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8890 { (eval echo configure:8891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8852 if test -z "$ac_err"; then 8892 if test -z "$ac_err"; then
8853 rm -rf conftest* 8893 rm -rf conftest*
8854 eval "ac_cv_header_$ac_safe=yes" 8894 eval "ac_cv_header_$ac_safe=yes"
8855 else 8895 else
8869 8909
8870 done 8910 done
8871 8911
8872 test -n "$libpq_fe_h_file" && { 8912 test -n "$libpq_fe_h_file" && {
8873 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 8913 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8874 echo "configure:8875: checking for PQconnectdb in -lpq" >&5 8914 echo "configure:8915: checking for PQconnectdb in -lpq" >&5
8875 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 8915 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8876 8916
8877 xe_check_libs=" -lpq " 8917 xe_check_libs=" -lpq "
8878 cat > conftest.$ac_ext <<EOF 8918 cat > conftest.$ac_ext <<EOF
8879 #line 8880 "configure" 8919 #line 8920 "configure"
8880 #include "confdefs.h" 8920 #include "confdefs.h"
8881 /* Override any gcc2 internal prototype to avoid an error. */ 8921 /* Override any gcc2 internal prototype to avoid an error. */
8882 /* We use char because int might match the return type of a gcc2 8922 /* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */ 8923 builtin and then its argument prototype would still apply. */
8884 char PQconnectdb(); 8924 char PQconnectdb();
8885 8925
8886 int main() { 8926 int main() {
8887 PQconnectdb() 8927 PQconnectdb()
8888 ; return 0; } 8928 ; return 0; }
8889 EOF 8929 EOF
8890 if { (eval echo configure:8891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8930 if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8891 rm -rf conftest* 8931 rm -rf conftest*
8892 eval "ac_cv_lib_$ac_lib_var=yes" 8932 eval "ac_cv_lib_$ac_lib_var=yes"
8893 else 8933 else
8894 echo "configure: failed program was:" >&5 8934 echo "configure: failed program was:" >&5
8895 cat conftest.$ac_ext >&5 8935 cat conftest.$ac_ext >&5
8918 EOF 8958 EOF
8919 } 8959 }
8920 8960
8921 8961
8922 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 8962 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8923 echo "configure:8924: checking for PQconnectStart in -lpq" >&5 8963 echo "configure:8964: checking for PQconnectStart in -lpq" >&5
8924 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 8964 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8925 8965
8926 xe_check_libs=" -lpq " 8966 xe_check_libs=" -lpq "
8927 cat > conftest.$ac_ext <<EOF 8967 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure" 8968 #line 8969 "configure"
8929 #include "confdefs.h" 8969 #include "confdefs.h"
8930 /* Override any gcc2 internal prototype to avoid an error. */ 8970 /* Override any gcc2 internal prototype to avoid an error. */
8931 /* We use char because int might match the return type of a gcc2 8971 /* We use char because int might match the return type of a gcc2
8932 builtin and then its argument prototype would still apply. */ 8972 builtin and then its argument prototype would still apply. */
8933 char PQconnectStart(); 8973 char PQconnectStart();
8934 8974
8935 int main() { 8975 int main() {
8936 PQconnectStart() 8976 PQconnectStart()
8937 ; return 0; } 8977 ; return 0; }
8938 EOF 8978 EOF
8939 if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8979 if { (eval echo configure:8980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 rm -rf conftest* 8980 rm -rf conftest*
8941 eval "ac_cv_lib_$ac_lib_var=yes" 8981 eval "ac_cv_lib_$ac_lib_var=yes"
8942 else 8982 else
8943 echo "configure: failed program was:" >&5 8983 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5 8984 cat conftest.$ac_ext >&5
8972 EOF 9012 EOF
8973 } 9013 }
8974 9014
8975 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi 9015 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
8976 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi 9016 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
9017 need_modules_common=yes
8977 if test "$with_modules" = "yes"; then 9018 if test "$with_modules" = "yes"; then
8978 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 9019 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
8979 fi 9020 fi
8980 elif test "$with_postgresql" = "yes"; then 9021 elif test "$with_postgresql" = "yes"; then
8981 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; } 9022 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
8984 9025
8985 9026
8986 9027
8987 if test "$window_system" != "none"; then 9028 if test "$window_system" != "none"; then
8988 echo "checking for graphics libraries" 1>&6 9029 echo "checking for graphics libraries" 1>&6
8989 echo "configure:8990: checking for graphics libraries" >&5 9030 echo "configure:9031: checking for graphics libraries" >&5
8990 9031
8991 libpath_xpm= 9032 libpath_xpm=
8992 incpath_xpm= 9033 incpath_xpm=
8993 case "$opsys" in 9034 case "$opsys" in
8994 cygwin*) 9035 cygwin*)
9010 xpm_problem="" 9051 xpm_problem=""
9011 if test -z "$with_xpm"; then 9052 if test -z "$with_xpm"; then
9012 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9053 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9013 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9054 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9014 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 9055 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
9015 echo "configure:9016: checking for Xpm - no older than 3.4f" >&5 9056 echo "configure:9057: checking for Xpm - no older than 3.4f" >&5
9016 xe_check_libs=-lXpm 9057 xe_check_libs=-lXpm
9017 cat > conftest.$ac_ext <<EOF 9058 cat > conftest.$ac_ext <<EOF
9018 #line 9019 "configure" 9059 #line 9060 "configure"
9019 #include "confdefs.h" 9060 #include "confdefs.h"
9020 #define XPM_NUMBERS 9061 #define XPM_NUMBERS
9021 #include <X11/xpm.h> 9062 #include <X11/xpm.h>
9022 int main(int c, char **v) { 9063 int main(int c, char **v) {
9023 return c == 1 ? 0 : 9064 return c == 1 ? 0 :
9024 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 9065 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
9025 XpmIncludeVersion < 30406 ? 2 : 0 ;} 9066 XpmIncludeVersion < 30406 ? 2 : 0 ;}
9026 EOF 9067 EOF
9027 if { (eval echo configure:9028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9068 if { (eval echo configure:9069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9028 then 9069 then
9029 ./conftest dummy_arg; xpm_status=$?; 9070 ./conftest dummy_arg; xpm_status=$?;
9030 if test "$xpm_status" = "0"; then 9071 if test "$xpm_status" = "0"; then
9031 with_xpm=yes; 9072 with_xpm=yes;
9032 else 9073 else
9066 9107
9067 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9108 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9068 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 9109 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
9069 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9110 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9070 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 9111 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
9071 echo "configure:9072: checking for \"FOR_MSW\" xpm" >&5 9112 echo "configure:9113: checking for \"FOR_MSW\" xpm" >&5
9072 xe_check_libs=-lXpm 9113 xe_check_libs=-lXpm
9073 cat > conftest.$ac_ext <<EOF 9114 cat > conftest.$ac_ext <<EOF
9074 #line 9075 "configure" 9115 #line 9116 "configure"
9075 #include "confdefs.h" 9116 #include "confdefs.h"
9076 9117
9077 int main() { 9118 int main() {
9078 XpmCreatePixmapFromData() 9119 XpmCreatePixmapFromData()
9079 ; return 0; } 9120 ; return 0; }
9080 EOF 9121 EOF
9081 if { (eval echo configure:9082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9082 rm -rf conftest* 9123 rm -rf conftest*
9083 xpm_for_msw=no 9124 xpm_for_msw=no
9084 else 9125 else
9085 echo "configure: failed program was:" >&5 9126 echo "configure: failed program was:" >&5
9086 cat conftest.$ac_ext >&5 9127 cat conftest.$ac_ext >&5
9102 fi 9143 fi
9103 fi 9144 fi
9104 9145
9105 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9146 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9106 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9147 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9107 echo "configure:9108: checking for compface.h" >&5 9148 echo "configure:9149: checking for compface.h" >&5
9108 9149
9109 cat > conftest.$ac_ext <<EOF 9150 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure" 9151 #line 9152 "configure"
9111 #include "confdefs.h" 9152 #include "confdefs.h"
9112 #include <compface.h> 9153 #include <compface.h>
9113 EOF 9154 EOF
9114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9115 { (eval echo configure:9116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9156 { (eval echo configure:9157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9117 if test -z "$ac_err"; then 9158 if test -z "$ac_err"; then
9118 rm -rf conftest* 9159 rm -rf conftest*
9119 eval "ac_cv_header_$ac_safe=yes" 9160 eval "ac_cv_header_$ac_safe=yes"
9120 else 9161 else
9133 with_xface=no 9174 with_xface=no
9134 fi 9175 fi
9135 } 9176 }
9136 test -z "$with_xface" && { 9177 test -z "$with_xface" && {
9137 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9178 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9138 echo "configure:9139: checking for UnGenFace in -lcompface" >&5 9179 echo "configure:9180: checking for UnGenFace in -lcompface" >&5
9139 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9180 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9140 9181
9141 xe_check_libs=" -lcompface " 9182 xe_check_libs=" -lcompface "
9142 cat > conftest.$ac_ext <<EOF 9183 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure" 9184 #line 9185 "configure"
9144 #include "confdefs.h" 9185 #include "confdefs.h"
9145 /* Override any gcc2 internal prototype to avoid an error. */ 9186 /* Override any gcc2 internal prototype to avoid an error. */
9146 /* We use char because int might match the return type of a gcc2 9187 /* We use char because int might match the return type of a gcc2
9147 builtin and then its argument prototype would still apply. */ 9188 builtin and then its argument prototype would still apply. */
9148 char UnGenFace(); 9189 char UnGenFace();
9149 9190
9150 int main() { 9191 int main() {
9151 UnGenFace() 9192 UnGenFace()
9152 ; return 0; } 9193 ; return 0; }
9153 EOF 9194 EOF
9154 if { (eval echo configure:9155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9155 rm -rf conftest* 9196 rm -rf conftest*
9156 eval "ac_cv_lib_$ac_lib_var=yes" 9197 eval "ac_cv_lib_$ac_lib_var=yes"
9157 else 9198 else
9158 echo "configure: failed program was:" >&5 9199 echo "configure: failed program was:" >&5
9159 cat conftest.$ac_ext >&5 9200 cat conftest.$ac_ext >&5
9198 fi 9239 fi
9199 9240
9200 if test "$with_png $with_tiff" != "no no"; then 9241 if test "$with_png $with_tiff" != "no no"; then
9201 9242
9202 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 9243 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
9203 echo "configure:9204: checking for inflate in -lc" >&5 9244 echo "configure:9245: checking for inflate in -lc" >&5
9204 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 9245 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
9205 9246
9206 xe_check_libs=" -lc " 9247 xe_check_libs=" -lc "
9207 cat > conftest.$ac_ext <<EOF 9248 cat > conftest.$ac_ext <<EOF
9208 #line 9209 "configure" 9249 #line 9250 "configure"
9209 #include "confdefs.h" 9250 #include "confdefs.h"
9210 /* Override any gcc2 internal prototype to avoid an error. */ 9251 /* Override any gcc2 internal prototype to avoid an error. */
9211 /* We use char because int might match the return type of a gcc2 9252 /* We use char because int might match the return type of a gcc2
9212 builtin and then its argument prototype would still apply. */ 9253 builtin and then its argument prototype would still apply. */
9213 char inflate(); 9254 char inflate();
9214 9255
9215 int main() { 9256 int main() {
9216 inflate() 9257 inflate()
9217 ; return 0; } 9258 ; return 0; }
9218 EOF 9259 EOF
9219 if { (eval echo configure:9220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9260 if { (eval echo configure:9261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9220 rm -rf conftest* 9261 rm -rf conftest*
9221 eval "ac_cv_lib_$ac_lib_var=yes" 9262 eval "ac_cv_lib_$ac_lib_var=yes"
9222 else 9263 else
9223 echo "configure: failed program was:" >&5 9264 echo "configure: failed program was:" >&5
9224 cat conftest.$ac_ext >&5 9265 cat conftest.$ac_ext >&5
9233 : 9274 :
9234 else 9275 else
9235 echo "$ac_t""no" 1>&6 9276 echo "$ac_t""no" 1>&6
9236 9277
9237 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 9278 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
9238 echo "configure:9239: checking for inflate in -lz" >&5 9279 echo "configure:9280: checking for inflate in -lz" >&5
9239 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 9280 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
9240 9281
9241 xe_check_libs=" -lz " 9282 xe_check_libs=" -lz "
9242 cat > conftest.$ac_ext <<EOF 9283 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure" 9284 #line 9285 "configure"
9244 #include "confdefs.h" 9285 #include "confdefs.h"
9245 /* Override any gcc2 internal prototype to avoid an error. */ 9286 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2 9287 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */ 9288 builtin and then its argument prototype would still apply. */
9248 char inflate(); 9289 char inflate();
9249 9290
9250 int main() { 9291 int main() {
9251 inflate() 9292 inflate()
9252 ; return 0; } 9293 ; return 0; }
9253 EOF 9294 EOF
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9295 if { (eval echo configure:9296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9255 rm -rf conftest* 9296 rm -rf conftest*
9256 eval "ac_cv_lib_$ac_lib_var=yes" 9297 eval "ac_cv_lib_$ac_lib_var=yes"
9257 else 9298 else
9258 echo "configure: failed program was:" >&5 9299 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5 9300 cat conftest.$ac_ext >&5
9268 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 9309 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
9269 else 9310 else
9270 echo "$ac_t""no" 1>&6 9311 echo "$ac_t""no" 1>&6
9271 9312
9272 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 9313 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
9273 echo "configure:9274: checking for inflate in -lgz" >&5 9314 echo "configure:9315: checking for inflate in -lgz" >&5
9274 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 9315 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
9275 9316
9276 xe_check_libs=" -lgz " 9317 xe_check_libs=" -lgz "
9277 cat > conftest.$ac_ext <<EOF 9318 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure" 9319 #line 9320 "configure"
9279 #include "confdefs.h" 9320 #include "confdefs.h"
9280 /* Override any gcc2 internal prototype to avoid an error. */ 9321 /* Override any gcc2 internal prototype to avoid an error. */
9281 /* We use char because int might match the return type of a gcc2 9322 /* We use char because int might match the return type of a gcc2
9282 builtin and then its argument prototype would still apply. */ 9323 builtin and then its argument prototype would still apply. */
9283 char inflate(); 9324 char inflate();
9284 9325
9285 int main() { 9326 int main() {
9286 inflate() 9327 inflate()
9287 ; return 0; } 9328 ; return 0; }
9288 EOF 9329 EOF
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290 rm -rf conftest* 9331 rm -rf conftest*
9291 eval "ac_cv_lib_$ac_lib_var=yes" 9332 eval "ac_cv_lib_$ac_lib_var=yes"
9292 else 9333 else
9293 echo "configure: failed program was:" >&5 9334 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5 9335 cat conftest.$ac_ext >&5
9314 9355
9315 fi 9356 fi
9316 9357
9317 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 9358 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
9318 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 9359 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9319 echo "configure:9320: checking for jpeglib.h" >&5 9360 echo "configure:9361: checking for jpeglib.h" >&5
9320 9361
9321 cat > conftest.$ac_ext <<EOF 9362 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure" 9363 #line 9364 "configure"
9323 #include "confdefs.h" 9364 #include "confdefs.h"
9324 #include <jpeglib.h> 9365 #include <jpeglib.h>
9325 EOF 9366 EOF
9326 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9327 { (eval echo configure:9328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9368 { (eval echo configure:9369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9328 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9329 if test -z "$ac_err"; then 9370 if test -z "$ac_err"; then
9330 rm -rf conftest* 9371 rm -rf conftest*
9331 eval "ac_cv_header_$ac_safe=yes" 9372 eval "ac_cv_header_$ac_safe=yes"
9332 else 9373 else
9345 with_jpeg=no 9386 with_jpeg=no
9346 fi 9387 fi
9347 } 9388 }
9348 test -z "$with_jpeg" && { 9389 test -z "$with_jpeg" && {
9349 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 9390 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
9350 echo "configure:9351: checking for jpeg_destroy_decompress in -ljpeg" >&5 9391 echo "configure:9392: checking for jpeg_destroy_decompress in -ljpeg" >&5
9351 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 9392 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
9352 9393
9353 xe_check_libs=" -ljpeg " 9394 xe_check_libs=" -ljpeg "
9354 cat > conftest.$ac_ext <<EOF 9395 cat > conftest.$ac_ext <<EOF
9355 #line 9356 "configure" 9396 #line 9397 "configure"
9356 #include "confdefs.h" 9397 #include "confdefs.h"
9357 /* Override any gcc2 internal prototype to avoid an error. */ 9398 /* Override any gcc2 internal prototype to avoid an error. */
9358 /* We use char because int might match the return type of a gcc2 9399 /* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */ 9400 builtin and then its argument prototype would still apply. */
9360 char jpeg_destroy_decompress(); 9401 char jpeg_destroy_decompress();
9361 9402
9362 int main() { 9403 int main() {
9363 jpeg_destroy_decompress() 9404 jpeg_destroy_decompress()
9364 ; return 0; } 9405 ; return 0; }
9365 EOF 9406 EOF
9366 if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9407 if { (eval echo configure:9408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9367 rm -rf conftest* 9408 rm -rf conftest*
9368 eval "ac_cv_lib_$ac_lib_var=yes" 9409 eval "ac_cv_lib_$ac_lib_var=yes"
9369 else 9410 else
9370 echo "configure: failed program was:" >&5 9411 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5 9412 cat conftest.$ac_ext >&5
9397 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 9438 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
9398 fi 9439 fi
9399 9440
9400 png_problem="" 9441 png_problem=""
9401 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 9442 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
9402 echo "configure:9403: checking for pow" >&5 9443 echo "configure:9444: checking for pow" >&5
9403 9444
9404 cat > conftest.$ac_ext <<EOF 9445 cat > conftest.$ac_ext <<EOF
9405 #line 9406 "configure" 9446 #line 9447 "configure"
9406 #include "confdefs.h" 9447 #include "confdefs.h"
9407 /* System header to define __stub macros and hopefully few prototypes, 9448 /* System header to define __stub macros and hopefully few prototypes,
9408 which can conflict with char pow(); below. */ 9449 which can conflict with char pow(); below. */
9409 #include <assert.h> 9450 #include <assert.h>
9410 /* Override any gcc2 internal prototype to avoid an error. */ 9451 /* Override any gcc2 internal prototype to avoid an error. */
9423 pow(); 9464 pow();
9424 #endif 9465 #endif
9425 9466
9426 ; return 0; } 9467 ; return 0; }
9427 EOF 9468 EOF
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9469 if { (eval echo configure:9470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 rm -rf conftest* 9470 rm -rf conftest*
9430 eval "ac_cv_func_pow=yes" 9471 eval "ac_cv_func_pow=yes"
9431 else 9472 else
9432 echo "configure: failed program was:" >&5 9473 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5 9474 cat conftest.$ac_ext >&5
9444 with_png=no 9485 with_png=no
9445 fi 9486 fi
9446 } 9487 }
9447 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 9488 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9448 echo $ac_n "checking for png.h""... $ac_c" 1>&6 9489 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9449 echo "configure:9450: checking for png.h" >&5 9490 echo "configure:9491: checking for png.h" >&5
9450 9491
9451 cat > conftest.$ac_ext <<EOF 9492 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure" 9493 #line 9494 "configure"
9453 #include "confdefs.h" 9494 #include "confdefs.h"
9454 #include <png.h> 9495 #include <png.h>
9455 EOF 9496 EOF
9456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9457 { (eval echo configure:9458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9498 { (eval echo configure:9499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9459 if test -z "$ac_err"; then 9500 if test -z "$ac_err"; then
9460 rm -rf conftest* 9501 rm -rf conftest*
9461 eval "ac_cv_header_$ac_safe=yes" 9502 eval "ac_cv_header_$ac_safe=yes"
9462 else 9503 else
9475 with_png=no 9516 with_png=no
9476 fi 9517 fi
9477 } 9518 }
9478 test -z "$with_png" && { 9519 test -z "$with_png" && {
9479 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 9520 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
9480 echo "configure:9481: checking for png_read_image in -lpng" >&5 9521 echo "configure:9522: checking for png_read_image in -lpng" >&5
9481 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 9522 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
9482 9523
9483 xe_check_libs=" -lpng " 9524 xe_check_libs=" -lpng "
9484 cat > conftest.$ac_ext <<EOF 9525 cat > conftest.$ac_ext <<EOF
9485 #line 9486 "configure" 9526 #line 9527 "configure"
9486 #include "confdefs.h" 9527 #include "confdefs.h"
9487 /* Override any gcc2 internal prototype to avoid an error. */ 9528 /* Override any gcc2 internal prototype to avoid an error. */
9488 /* We use char because int might match the return type of a gcc2 9529 /* We use char because int might match the return type of a gcc2
9489 builtin and then its argument prototype would still apply. */ 9530 builtin and then its argument prototype would still apply. */
9490 char png_read_image(); 9531 char png_read_image();
9491 9532
9492 int main() { 9533 int main() {
9493 png_read_image() 9534 png_read_image()
9494 ; return 0; } 9535 ; return 0; }
9495 EOF 9536 EOF
9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9537 if { (eval echo configure:9538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9497 rm -rf conftest* 9538 rm -rf conftest*
9498 eval "ac_cv_lib_$ac_lib_var=yes" 9539 eval "ac_cv_lib_$ac_lib_var=yes"
9499 else 9540 else
9500 echo "configure: failed program was:" >&5 9541 echo "configure: failed program was:" >&5
9501 cat conftest.$ac_ext >&5 9542 cat conftest.$ac_ext >&5
9514 fi 9555 fi
9515 9556
9516 } 9557 }
9517 if test -z "$with_png"; then 9558 if test -z "$with_png"; then
9518 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 9559 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
9519 echo "configure:9520: checking for workable png version information" >&5 9560 echo "configure:9561: checking for workable png version information" >&5
9520 xe_check_libs="-lpng -lz" 9561 xe_check_libs="-lpng -lz"
9521 cat > conftest.$ac_ext <<EOF 9562 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure" 9563 #line 9564 "configure"
9523 #include "confdefs.h" 9564 #include "confdefs.h"
9524 #include <png.h> 9565 #include <png.h>
9525 int main(int c, char **v) { 9566 int main(int c, char **v) {
9526 if (c == 1) return 0; 9567 if (c == 1) return 0;
9527 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 9568 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
9528 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 9569 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
9529 EOF 9570 EOF
9530 if { (eval echo configure:9531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9571 if { (eval echo configure:9572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9531 then 9572 then
9532 ./conftest dummy_arg; png_status=$?; 9573 ./conftest dummy_arg; png_status=$?;
9533 if test "$png_status" = "0"; then 9574 if test "$png_status" = "0"; then
9534 with_png=yes; 9575 with_png=yes;
9535 else 9576 else
9568 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 9609 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
9569 fi 9610 fi
9570 9611
9571 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 9612 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9572 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 9613 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9573 echo "configure:9574: checking for tiffio.h" >&5 9614 echo "configure:9615: checking for tiffio.h" >&5
9574 9615
9575 cat > conftest.$ac_ext <<EOF 9616 cat > conftest.$ac_ext <<EOF
9576 #line 9577 "configure" 9617 #line 9618 "configure"
9577 #include "confdefs.h" 9618 #include "confdefs.h"
9578 #include <tiffio.h> 9619 #include <tiffio.h>
9579 EOF 9620 EOF
9580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9581 { (eval echo configure:9582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9622 { (eval echo configure:9623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9583 if test -z "$ac_err"; then 9624 if test -z "$ac_err"; then
9584 rm -rf conftest* 9625 rm -rf conftest*
9585 eval "ac_cv_header_$ac_safe=yes" 9626 eval "ac_cv_header_$ac_safe=yes"
9586 else 9627 else
9599 with_tiff=no 9640 with_tiff=no
9600 fi 9641 fi
9601 } 9642 }
9602 test -z "$with_tiff" && { 9643 test -z "$with_tiff" && {
9603 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 9644 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
9604 echo "configure:9605: checking for TIFFClientOpen in -ltiff" >&5 9645 echo "configure:9646: checking for TIFFClientOpen in -ltiff" >&5
9605 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 9646 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
9606 9647
9607 xe_check_libs=" -ltiff " 9648 xe_check_libs=" -ltiff "
9608 cat > conftest.$ac_ext <<EOF 9649 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure" 9650 #line 9651 "configure"
9610 #include "confdefs.h" 9651 #include "confdefs.h"
9611 /* Override any gcc2 internal prototype to avoid an error. */ 9652 /* Override any gcc2 internal prototype to avoid an error. */
9612 /* We use char because int might match the return type of a gcc2 9653 /* We use char because int might match the return type of a gcc2
9613 builtin and then its argument prototype would still apply. */ 9654 builtin and then its argument prototype would still apply. */
9614 char TIFFClientOpen(); 9655 char TIFFClientOpen();
9615 9656
9616 int main() { 9657 int main() {
9617 TIFFClientOpen() 9658 TIFFClientOpen()
9618 ; return 0; } 9659 ; return 0; }
9619 EOF 9660 EOF
9620 if { (eval echo configure:9621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9661 if { (eval echo configure:9662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9621 rm -rf conftest* 9662 rm -rf conftest*
9622 eval "ac_cv_lib_$ac_lib_var=yes" 9663 eval "ac_cv_lib_$ac_lib_var=yes"
9623 else 9664 else
9624 echo "configure: failed program was:" >&5 9665 echo "configure: failed program was:" >&5
9625 cat conftest.$ac_ext >&5 9666 cat conftest.$ac_ext >&5
9654 9695
9655 9696
9656 if test "$with_gtk" = "yes"; then 9697 if test "$with_gtk" = "yes"; then
9657 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9698 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9658 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9699 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9659 echo "configure:9660: checking for compface.h" >&5 9700 echo "configure:9701: checking for compface.h" >&5
9660 9701
9661 cat > conftest.$ac_ext <<EOF 9702 cat > conftest.$ac_ext <<EOF
9662 #line 9663 "configure" 9703 #line 9704 "configure"
9663 #include "confdefs.h" 9704 #include "confdefs.h"
9664 #include <compface.h> 9705 #include <compface.h>
9665 EOF 9706 EOF
9666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9667 { (eval echo configure:9668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9708 { (eval echo configure:9709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9669 if test -z "$ac_err"; then 9710 if test -z "$ac_err"; then
9670 rm -rf conftest* 9711 rm -rf conftest*
9671 eval "ac_cv_header_$ac_safe=yes" 9712 eval "ac_cv_header_$ac_safe=yes"
9672 else 9713 else
9685 with_xface=no 9726 with_xface=no
9686 fi 9727 fi
9687 } 9728 }
9688 test -z "$with_xface" && { 9729 test -z "$with_xface" && {
9689 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9730 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9690 echo "configure:9691: checking for UnGenFace in -lcompface" >&5 9731 echo "configure:9732: checking for UnGenFace in -lcompface" >&5
9691 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9732 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9692 9733
9693 xe_check_libs=" -lcompface " 9734 xe_check_libs=" -lcompface "
9694 cat > conftest.$ac_ext <<EOF 9735 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure" 9736 #line 9737 "configure"
9696 #include "confdefs.h" 9737 #include "confdefs.h"
9697 /* Override any gcc2 internal prototype to avoid an error. */ 9738 /* Override any gcc2 internal prototype to avoid an error. */
9698 /* We use char because int might match the return type of a gcc2 9739 /* We use char because int might match the return type of a gcc2
9699 builtin and then its argument prototype would still apply. */ 9740 builtin and then its argument prototype would still apply. */
9700 char UnGenFace(); 9741 char UnGenFace();
9701 9742
9702 int main() { 9743 int main() {
9703 UnGenFace() 9744 UnGenFace()
9704 ; return 0; } 9745 ; return 0; }
9705 EOF 9746 EOF
9706 if { (eval echo configure:9707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9707 rm -rf conftest* 9748 rm -rf conftest*
9708 eval "ac_cv_lib_$ac_lib_var=yes" 9749 eval "ac_cv_lib_$ac_lib_var=yes"
9709 else 9750 else
9710 echo "configure: failed program was:" >&5 9751 echo "configure: failed program was:" >&5
9711 cat conftest.$ac_ext >&5 9752 cat conftest.$ac_ext >&5
9740 9781
9741 9782
9742 9783
9743 if test "$with_x11" = "yes"; then 9784 if test "$with_x11" = "yes"; then
9744 echo "checking for X11 graphics libraries" 1>&6 9785 echo "checking for X11 graphics libraries" 1>&6
9745 echo "configure:9746: checking for X11 graphics libraries" >&5 9786 echo "configure:9787: checking for X11 graphics libraries" >&5
9746 fi 9787 fi
9747 9788
9748 case "$with_widgets" in 9789 case "$with_widgets" in
9749 "yes" | "athena") detect_athena=yes ;; 9790 "yes" | "athena") detect_athena=yes ;;
9750 *) detect_athena=no ;; 9791 *) detect_athena=no ;;
9751 esac 9792 esac
9752 9793
9753 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 9794 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
9754 echo "checking for the Athena widgets" 1>&6 9795 echo "checking for the Athena widgets" 1>&6
9755 echo "configure:9756: checking for the Athena widgets" >&5 9796 echo "configure:9797: checking for the Athena widgets" >&5
9756 9797
9757 case "$with_athena" in 9798 case "$with_athena" in
9758 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 9799 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9759 "3d") athena_variant=Xaw3d athena_3d=yes ;; 9800 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9760 "next") athena_variant=neXtaw athena_3d=yes ;; 9801 "next") athena_variant=neXtaw athena_3d=yes ;;
9764 esac 9805 esac
9765 9806
9766 if test "$athena_3d" = "no"; then 9807 if test "$athena_3d" = "no"; then
9767 9808
9768 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 9809 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
9769 echo "configure:9770: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 9810 echo "configure:9811: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
9770 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 9811 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9771 9812
9772 xe_check_libs=" -l$athena_variant " 9813 xe_check_libs=" -l$athena_variant "
9773 cat > conftest.$ac_ext <<EOF 9814 cat > conftest.$ac_ext <<EOF
9774 #line 9775 "configure" 9815 #line 9816 "configure"
9775 #include "confdefs.h" 9816 #include "confdefs.h"
9776 /* Override any gcc2 internal prototype to avoid an error. */ 9817 /* Override any gcc2 internal prototype to avoid an error. */
9777 /* We use char because int might match the return type of a gcc2 9818 /* We use char because int might match the return type of a gcc2
9778 builtin and then its argument prototype would still apply. */ 9819 builtin and then its argument prototype would still apply. */
9779 char XawScrollbarSetThumb(); 9820 char XawScrollbarSetThumb();
9780 9821
9781 int main() { 9822 int main() {
9782 XawScrollbarSetThumb() 9823 XawScrollbarSetThumb()
9783 ; return 0; } 9824 ; return 0; }
9784 EOF 9825 EOF
9785 if { (eval echo configure:9786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9786 rm -rf conftest* 9827 rm -rf conftest*
9787 eval "ac_cv_lib_$ac_lib_var=yes" 9828 eval "ac_cv_lib_$ac_lib_var=yes"
9788 else 9829 else
9789 echo "configure: failed program was:" >&5 9830 echo "configure: failed program was:" >&5
9790 cat conftest.$ac_ext >&5 9831 cat conftest.$ac_ext >&5
9796 9837
9797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 9838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9798 echo "$ac_t""yes" 1>&6 9839 echo "$ac_t""yes" 1>&6
9799 9840
9800 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 9841 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
9801 echo "configure:9802: checking for threeDClassRec in -l$athena_variant" >&5 9842 echo "configure:9843: checking for threeDClassRec in -l$athena_variant" >&5
9802 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 9843 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9803 9844
9804 xe_check_libs=" -l$athena_variant " 9845 xe_check_libs=" -l$athena_variant "
9805 cat > conftest.$ac_ext <<EOF 9846 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure" 9847 #line 9848 "configure"
9807 #include "confdefs.h" 9848 #include "confdefs.h"
9808 /* Override any gcc2 internal prototype to avoid an error. */ 9849 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2 9850 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */ 9851 builtin and then its argument prototype would still apply. */
9811 char threeDClassRec(); 9852 char threeDClassRec();
9812 9853
9813 int main() { 9854 int main() {
9814 threeDClassRec() 9855 threeDClassRec()
9815 ; return 0; } 9856 ; return 0; }
9816 EOF 9857 EOF
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9858 if { (eval echo configure:9859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9818 rm -rf conftest* 9859 rm -rf conftest*
9819 eval "ac_cv_lib_$ac_lib_var=yes" 9860 eval "ac_cv_lib_$ac_lib_var=yes"
9820 else 9861 else
9821 echo "configure: failed program was:" >&5 9862 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5 9863 cat conftest.$ac_ext >&5
9843 9884
9844 9885
9845 else 9886 else
9846 9887
9847 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 9888 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
9848 echo "configure:9849: checking for threeDClassRec in -l$athena_variant" >&5 9889 echo "configure:9890: checking for threeDClassRec in -l$athena_variant" >&5
9849 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 9890 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9850 9891
9851 xe_check_libs=" -l$athena_variant " 9892 xe_check_libs=" -l$athena_variant "
9852 cat > conftest.$ac_ext <<EOF 9893 cat > conftest.$ac_ext <<EOF
9853 #line 9854 "configure" 9894 #line 9895 "configure"
9854 #include "confdefs.h" 9895 #include "confdefs.h"
9855 /* Override any gcc2 internal prototype to avoid an error. */ 9896 /* Override any gcc2 internal prototype to avoid an error. */
9856 /* We use char because int might match the return type of a gcc2 9897 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */ 9898 builtin and then its argument prototype would still apply. */
9858 char threeDClassRec(); 9899 char threeDClassRec();
9859 9900
9860 int main() { 9901 int main() {
9861 threeDClassRec() 9902 threeDClassRec()
9862 ; return 0; } 9903 ; return 0; }
9863 EOF 9904 EOF
9864 if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9905 if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9865 rm -rf conftest* 9906 rm -rf conftest*
9866 eval "ac_cv_lib_$ac_lib_var=yes" 9907 eval "ac_cv_lib_$ac_lib_var=yes"
9867 else 9908 else
9868 echo "configure: failed program was:" >&5 9909 echo "configure: failed program was:" >&5
9869 cat conftest.$ac_ext >&5 9910 cat conftest.$ac_ext >&5
9877 echo "$ac_t""yes" 1>&6 9918 echo "$ac_t""yes" 1>&6
9878 athena_lib=$athena_variant 9919 athena_lib=$athena_variant
9879 else 9920 else
9880 echo "$ac_t""no" 1>&6 9921 echo "$ac_t""no" 1>&6
9881 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 9922 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
9882 echo "configure:9883: checking for threeDClassRec in -lXaw" >&5 9923 echo "configure:9924: checking for threeDClassRec in -lXaw" >&5
9883 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 9924 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
9884 9925
9885 xe_check_libs=" -lXaw " 9926 xe_check_libs=" -lXaw "
9886 cat > conftest.$ac_ext <<EOF 9927 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure" 9928 #line 9929 "configure"
9888 #include "confdefs.h" 9929 #include "confdefs.h"
9889 /* Override any gcc2 internal prototype to avoid an error. */ 9930 /* Override any gcc2 internal prototype to avoid an error. */
9890 /* We use char because int might match the return type of a gcc2 9931 /* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */ 9932 builtin and then its argument prototype would still apply. */
9892 char threeDClassRec(); 9933 char threeDClassRec();
9893 9934
9894 int main() { 9935 int main() {
9895 threeDClassRec() 9936 threeDClassRec()
9896 ; return 0; } 9937 ; return 0; }
9897 EOF 9938 EOF
9898 if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899 rm -rf conftest* 9940 rm -rf conftest*
9900 eval "ac_cv_lib_$ac_lib_var=yes" 9941 eval "ac_cv_lib_$ac_lib_var=yes"
9901 else 9942 else
9902 echo "configure: failed program was:" >&5 9943 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5 9944 cat conftest.$ac_ext >&5
9924 fi 9965 fi
9925 9966
9926 if test "$athena_3d" = "no"; then 9967 if test "$athena_3d" = "no"; then
9927 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9968 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9928 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9969 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9929 echo "configure:9930: checking for X11/Xaw/ThreeD.h" >&5 9970 echo "configure:9971: checking for X11/Xaw/ThreeD.h" >&5
9930 9971
9931 cat > conftest.$ac_ext <<EOF 9972 cat > conftest.$ac_ext <<EOF
9932 #line 9933 "configure" 9973 #line 9974 "configure"
9933 #include "confdefs.h" 9974 #include "confdefs.h"
9934 #include <X11/Xaw/ThreeD.h> 9975 #include <X11/Xaw/ThreeD.h>
9935 EOF 9976 EOF
9936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9937 { (eval echo configure:9938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9978 { (eval echo configure:9979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9939 if test -z "$ac_err"; then 9980 if test -z "$ac_err"; then
9940 rm -rf conftest* 9981 rm -rf conftest*
9941 eval "ac_cv_header_$ac_safe=yes" 9982 eval "ac_cv_header_$ac_safe=yes"
9942 else 9983 else
9952 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 9993 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
9953 else 9994 else
9954 echo "$ac_t""no" 1>&6 9995 echo "$ac_t""no" 1>&6
9955 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 9996 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
9956 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 9997 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
9957 echo "configure:9958: checking for X11/Xaw/XawInit.h" >&5 9998 echo "configure:9999: checking for X11/Xaw/XawInit.h" >&5
9958 9999
9959 cat > conftest.$ac_ext <<EOF 10000 cat > conftest.$ac_ext <<EOF
9960 #line 9961 "configure" 10001 #line 10002 "configure"
9961 #include "confdefs.h" 10002 #include "confdefs.h"
9962 #include <X11/Xaw/XawInit.h> 10003 #include <X11/Xaw/XawInit.h>
9963 EOF 10004 EOF
9964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9965 { (eval echo configure:9966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10006 { (eval echo configure:10007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9967 if test -z "$ac_err"; then 10008 if test -z "$ac_err"; then
9968 rm -rf conftest* 10009 rm -rf conftest*
9969 eval "ac_cv_header_$ac_safe=yes" 10010 eval "ac_cv_header_$ac_safe=yes"
9970 else 10011 else
9986 fi 10027 fi
9987 10028
9988 else 10029 else
9989 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10030 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
9990 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 10031 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
9991 echo "configure:9992: checking for X11/$athena_variant/XawInit.h" >&5 10032 echo "configure:10033: checking for X11/$athena_variant/XawInit.h" >&5
9992 10033
9993 cat > conftest.$ac_ext <<EOF 10034 cat > conftest.$ac_ext <<EOF
9994 #line 9995 "configure" 10035 #line 10036 "configure"
9995 #include "confdefs.h" 10036 #include "confdefs.h"
9996 #include <X11/$athena_variant/XawInit.h> 10037 #include <X11/$athena_variant/XawInit.h>
9997 EOF 10038 EOF
9998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9999 { (eval echo configure:10000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10040 { (eval echo configure:10041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10001 if test -z "$ac_err"; then 10042 if test -z "$ac_err"; then
10002 rm -rf conftest* 10043 rm -rf conftest*
10003 eval "ac_cv_header_$ac_safe=yes" 10044 eval "ac_cv_header_$ac_safe=yes"
10004 else 10045 else
10011 rm -f conftest* 10052 rm -f conftest*
10012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10013 echo "$ac_t""yes" 1>&6 10054 echo "$ac_t""yes" 1>&6
10014 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10055 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10015 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 10056 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
10016 echo "configure:10017: checking for X11/$athena_variant/ThreeD.h" >&5 10057 echo "configure:10058: checking for X11/$athena_variant/ThreeD.h" >&5
10017 10058
10018 cat > conftest.$ac_ext <<EOF 10059 cat > conftest.$ac_ext <<EOF
10019 #line 10020 "configure" 10060 #line 10061 "configure"
10020 #include "confdefs.h" 10061 #include "confdefs.h"
10021 #include <X11/$athena_variant/ThreeD.h> 10062 #include <X11/$athena_variant/ThreeD.h>
10022 EOF 10063 EOF
10023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10024 { (eval echo configure:10025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10065 { (eval echo configure:10066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10026 if test -z "$ac_err"; then 10067 if test -z "$ac_err"; then
10027 rm -rf conftest* 10068 rm -rf conftest*
10028 eval "ac_cv_header_$ac_safe=yes" 10069 eval "ac_cv_header_$ac_safe=yes"
10029 else 10070 else
10047 10088
10048 10089
10049 if test -z "$athena_h_path"; then 10090 if test -z "$athena_h_path"; then
10050 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10091 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
10051 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 10092 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
10052 echo "configure:10053: checking for $athena_variant/XawInit.h" >&5 10093 echo "configure:10094: checking for $athena_variant/XawInit.h" >&5
10053 10094
10054 cat > conftest.$ac_ext <<EOF 10095 cat > conftest.$ac_ext <<EOF
10055 #line 10056 "configure" 10096 #line 10097 "configure"
10056 #include "confdefs.h" 10097 #include "confdefs.h"
10057 #include <$athena_variant/XawInit.h> 10098 #include <$athena_variant/XawInit.h>
10058 EOF 10099 EOF
10059 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10100 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10060 { (eval echo configure:10061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10101 { (eval echo configure:10102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10061 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10102 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10062 if test -z "$ac_err"; then 10103 if test -z "$ac_err"; then
10063 rm -rf conftest* 10104 rm -rf conftest*
10064 eval "ac_cv_header_$ac_safe=yes" 10105 eval "ac_cv_header_$ac_safe=yes"
10065 else 10106 else
10072 rm -f conftest* 10113 rm -f conftest*
10073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10114 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10074 echo "$ac_t""yes" 1>&6 10115 echo "$ac_t""yes" 1>&6
10075 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10116 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10076 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 10117 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
10077 echo "configure:10078: checking for $athena_variant/ThreeD.h" >&5 10118 echo "configure:10119: checking for $athena_variant/ThreeD.h" >&5
10078 10119
10079 cat > conftest.$ac_ext <<EOF 10120 cat > conftest.$ac_ext <<EOF
10080 #line 10081 "configure" 10121 #line 10122 "configure"
10081 #include "confdefs.h" 10122 #include "confdefs.h"
10082 #include <$athena_variant/ThreeD.h> 10123 #include <$athena_variant/ThreeD.h>
10083 EOF 10124 EOF
10084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10085 { (eval echo configure:10086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10126 { (eval echo configure:10127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10087 if test -z "$ac_err"; then 10128 if test -z "$ac_err"; then
10088 rm -rf conftest* 10129 rm -rf conftest*
10089 eval "ac_cv_header_$ac_safe=yes" 10130 eval "ac_cv_header_$ac_safe=yes"
10090 else 10131 else
10109 fi 10150 fi
10110 10151
10111 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10152 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10112 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10153 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10113 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 10154 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
10114 echo "configure:10115: checking for X11/Xaw3d/XawInit.h" >&5 10155 echo "configure:10156: checking for X11/Xaw3d/XawInit.h" >&5
10115 10156
10116 cat > conftest.$ac_ext <<EOF 10157 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure" 10158 #line 10159 "configure"
10118 #include "confdefs.h" 10159 #include "confdefs.h"
10119 #include <X11/Xaw3d/XawInit.h> 10160 #include <X11/Xaw3d/XawInit.h>
10120 EOF 10161 EOF
10121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10122 { (eval echo configure:10123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10163 { (eval echo configure:10164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10124 if test -z "$ac_err"; then 10165 if test -z "$ac_err"; then
10125 rm -rf conftest* 10166 rm -rf conftest*
10126 eval "ac_cv_header_$ac_safe=yes" 10167 eval "ac_cv_header_$ac_safe=yes"
10127 else 10168 else
10134 rm -f conftest* 10175 rm -f conftest*
10135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10136 echo "$ac_t""yes" 1>&6 10177 echo "$ac_t""yes" 1>&6
10137 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10178 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10138 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 10179 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
10139 echo "configure:10140: checking for X11/Xaw3d/ThreeD.h" >&5 10180 echo "configure:10181: checking for X11/Xaw3d/ThreeD.h" >&5
10140 10181
10141 cat > conftest.$ac_ext <<EOF 10182 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure" 10183 #line 10184 "configure"
10143 #include "confdefs.h" 10184 #include "confdefs.h"
10144 #include <X11/Xaw3d/ThreeD.h> 10185 #include <X11/Xaw3d/ThreeD.h>
10145 EOF 10186 EOF
10146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10147 { (eval echo configure:10148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10188 { (eval echo configure:10189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10149 if test -z "$ac_err"; then 10190 if test -z "$ac_err"; then
10150 rm -rf conftest* 10191 rm -rf conftest*
10151 eval "ac_cv_header_$ac_safe=yes" 10192 eval "ac_cv_header_$ac_safe=yes"
10152 else 10193 else
10174 fi 10215 fi
10175 10216
10176 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10217 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10177 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10218 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10178 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 10219 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
10179 echo "configure:10180: checking for Xaw3d/XawInit.h" >&5 10220 echo "configure:10221: checking for Xaw3d/XawInit.h" >&5
10180 10221
10181 cat > conftest.$ac_ext <<EOF 10222 cat > conftest.$ac_ext <<EOF
10182 #line 10183 "configure" 10223 #line 10224 "configure"
10183 #include "confdefs.h" 10224 #include "confdefs.h"
10184 #include <Xaw3d/XawInit.h> 10225 #include <Xaw3d/XawInit.h>
10185 EOF 10226 EOF
10186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10187 { (eval echo configure:10188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10228 { (eval echo configure:10229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10189 if test -z "$ac_err"; then 10230 if test -z "$ac_err"; then
10190 rm -rf conftest* 10231 rm -rf conftest*
10191 eval "ac_cv_header_$ac_safe=yes" 10232 eval "ac_cv_header_$ac_safe=yes"
10192 else 10233 else
10199 rm -f conftest* 10240 rm -f conftest*
10200 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10201 echo "$ac_t""yes" 1>&6 10242 echo "$ac_t""yes" 1>&6
10202 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10243 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10203 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 10244 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
10204 echo "configure:10205: checking for Xaw3d/ThreeD.h" >&5 10245 echo "configure:10246: checking for Xaw3d/ThreeD.h" >&5
10205 10246
10206 cat > conftest.$ac_ext <<EOF 10247 cat > conftest.$ac_ext <<EOF
10207 #line 10208 "configure" 10248 #line 10249 "configure"
10208 #include "confdefs.h" 10249 #include "confdefs.h"
10209 #include <Xaw3d/ThreeD.h> 10250 #include <Xaw3d/ThreeD.h>
10210 EOF 10251 EOF
10211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10212 { (eval echo configure:10213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10253 { (eval echo configure:10254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10214 if test -z "$ac_err"; then 10255 if test -z "$ac_err"; then
10215 rm -rf conftest* 10256 rm -rf conftest*
10216 eval "ac_cv_header_$ac_safe=yes" 10257 eval "ac_cv_header_$ac_safe=yes"
10217 else 10258 else
10239 fi 10280 fi
10240 10281
10241 if test -z "$athena_h_path"; then 10282 if test -z "$athena_h_path"; then
10242 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10283 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
10243 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10284 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
10244 echo "configure:10245: checking for X11/Xaw/ThreeD.h" >&5 10285 echo "configure:10286: checking for X11/Xaw/ThreeD.h" >&5
10245 10286
10246 cat > conftest.$ac_ext <<EOF 10287 cat > conftest.$ac_ext <<EOF
10247 #line 10248 "configure" 10288 #line 10289 "configure"
10248 #include "confdefs.h" 10289 #include "confdefs.h"
10249 #include <X11/Xaw/ThreeD.h> 10290 #include <X11/Xaw/ThreeD.h>
10250 EOF 10291 EOF
10251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10252 { (eval echo configure:10253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10293 { (eval echo configure:10294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10254 if test -z "$ac_err"; then 10295 if test -z "$ac_err"; then
10255 rm -rf conftest* 10296 rm -rf conftest*
10256 eval "ac_cv_header_$ac_safe=yes" 10297 eval "ac_cv_header_$ac_safe=yes"
10257 else 10298 else
10286 have_xaw=no 10327 have_xaw=no
10287 fi 10328 fi
10288 if test "$with_x11" = "yes"; then 10329 if test "$with_x11" = "yes"; then
10289 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 10330 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
10290 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 10331 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
10291 echo "configure:10292: checking for Xm/Xm.h" >&5 10332 echo "configure:10333: checking for Xm/Xm.h" >&5
10292 10333
10293 cat > conftest.$ac_ext <<EOF 10334 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure" 10335 #line 10336 "configure"
10295 #include "confdefs.h" 10336 #include "confdefs.h"
10296 #include <Xm/Xm.h> 10337 #include <Xm/Xm.h>
10297 EOF 10338 EOF
10298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10299 { (eval echo configure:10300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10340 { (eval echo configure:10341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10301 if test -z "$ac_err"; then 10342 if test -z "$ac_err"; then
10302 rm -rf conftest* 10343 rm -rf conftest*
10303 eval "ac_cv_header_$ac_safe=yes" 10344 eval "ac_cv_header_$ac_safe=yes"
10304 else 10345 else
10311 rm -f conftest* 10352 rm -f conftest*
10312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10313 echo "$ac_t""yes" 1>&6 10354 echo "$ac_t""yes" 1>&6
10314 10355
10315 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 10356 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
10316 echo "configure:10317: checking for XmStringFree in -lXm" >&5 10357 echo "configure:10358: checking for XmStringFree in -lXm" >&5
10317 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 10358 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
10318 10359
10319 xe_check_libs=" -lXm " 10360 xe_check_libs=" -lXm "
10320 cat > conftest.$ac_ext <<EOF 10361 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure" 10362 #line 10363 "configure"
10322 #include "confdefs.h" 10363 #include "confdefs.h"
10323 /* Override any gcc2 internal prototype to avoid an error. */ 10364 /* Override any gcc2 internal prototype to avoid an error. */
10324 /* We use char because int might match the return type of a gcc2 10365 /* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */ 10366 builtin and then its argument prototype would still apply. */
10326 char XmStringFree(); 10367 char XmStringFree();
10327 10368
10328 int main() { 10369 int main() {
10329 XmStringFree() 10370 XmStringFree()
10330 ; return 0; } 10371 ; return 0; }
10331 EOF 10372 EOF
10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10333 rm -rf conftest* 10374 rm -rf conftest*
10334 eval "ac_cv_lib_$ac_lib_var=yes" 10375 eval "ac_cv_lib_$ac_lib_var=yes"
10335 else 10376 else
10336 echo "configure: failed program was:" >&5 10377 echo "configure: failed program was:" >&5
10337 cat conftest.$ac_ext >&5 10378 cat conftest.$ac_ext >&5
10356 fi 10397 fi
10357 10398
10358 10399
10359 if test "$have_motif" = "yes"; then 10400 if test "$have_motif" = "yes"; then
10360 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 10401 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
10361 echo "configure:10362: checking for Lesstif" >&5 10402 echo "configure:10403: checking for Lesstif" >&5
10362 cat > conftest.$ac_ext <<EOF 10403 cat > conftest.$ac_ext <<EOF
10363 #line 10364 "configure" 10404 #line 10405 "configure"
10364 #include "confdefs.h" 10405 #include "confdefs.h"
10365 #include <Xm/Xm.h> 10406 #include <Xm/Xm.h>
10366 #ifdef LESSTIF_VERSION 10407 #ifdef LESSTIF_VERSION
10367 yes 10408 yes
10368 #endif 10409 #endif
10731 10772
10732 fi 10773 fi
10733 10774
10734 if test "$with_mule" = "yes" ; then 10775 if test "$with_mule" = "yes" ; then
10735 echo "checking for Mule-related features" 1>&6 10776 echo "checking for Mule-related features" 1>&6
10736 echo "configure:10737: checking for Mule-related features" >&5 10777 echo "configure:10778: checking for Mule-related features" >&5
10737 { test "$extra_verbose" = "yes" && cat << \EOF 10778 { test "$extra_verbose" = "yes" && cat << \EOF
10738 Defining MULE 10779 Defining MULE
10739 EOF 10780 EOF
10740 cat >> confdefs.h <<\EOF 10781 cat >> confdefs.h <<\EOF
10741 #define MULE 1 10782 #define MULE 1
10745 10786
10746 for ac_hdr in libintl.h 10787 for ac_hdr in libintl.h
10747 do 10788 do
10748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10750 echo "configure:10751: checking for $ac_hdr" >&5 10791 echo "configure:10792: checking for $ac_hdr" >&5
10751 10792
10752 cat > conftest.$ac_ext <<EOF 10793 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure" 10794 #line 10795 "configure"
10754 #include "confdefs.h" 10795 #include "confdefs.h"
10755 #include <$ac_hdr> 10796 #include <$ac_hdr>
10756 EOF 10797 EOF
10757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10758 { (eval echo configure:10759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10799 { (eval echo configure:10800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10760 if test -z "$ac_err"; then 10801 if test -z "$ac_err"; then
10761 rm -rf conftest* 10802 rm -rf conftest*
10762 eval "ac_cv_header_$ac_safe=yes" 10803 eval "ac_cv_header_$ac_safe=yes"
10763 else 10804 else
10784 fi 10825 fi
10785 done 10826 done
10786 10827
10787 10828
10788 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 10829 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10789 echo "configure:10790: checking for strerror in -lintl" >&5 10830 echo "configure:10831: checking for strerror in -lintl" >&5
10790 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 10831 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10791 10832
10792 xe_check_libs=" -lintl " 10833 xe_check_libs=" -lintl "
10793 cat > conftest.$ac_ext <<EOF 10834 cat > conftest.$ac_ext <<EOF
10794 #line 10795 "configure" 10835 #line 10836 "configure"
10795 #include "confdefs.h" 10836 #include "confdefs.h"
10796 /* Override any gcc2 internal prototype to avoid an error. */ 10837 /* Override any gcc2 internal prototype to avoid an error. */
10797 /* We use char because int might match the return type of a gcc2 10838 /* We use char because int might match the return type of a gcc2
10798 builtin and then its argument prototype would still apply. */ 10839 builtin and then its argument prototype would still apply. */
10799 char strerror(); 10840 char strerror();
10800 10841
10801 int main() { 10842 int main() {
10802 strerror() 10843 strerror()
10803 ; return 0; } 10844 ; return 0; }
10804 EOF 10845 EOF
10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10846 if { (eval echo configure:10847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10806 rm -rf conftest* 10847 rm -rf conftest*
10807 eval "ac_cv_lib_$ac_lib_var=yes" 10848 eval "ac_cv_lib_$ac_lib_var=yes"
10808 else 10849 else
10809 echo "configure: failed program was:" >&5 10850 echo "configure: failed program was:" >&5
10810 cat conftest.$ac_ext >&5 10851 cat conftest.$ac_ext >&5
10833 fi 10874 fi
10834 10875
10835 10876
10836 10877
10837 echo "checking for Mule input methods" 1>&6 10878 echo "checking for Mule input methods" 1>&6
10838 echo "configure:10839: checking for Mule input methods" >&5 10879 echo "configure:10880: checking for Mule input methods" >&5
10839 case "$with_xim" in "" | "yes" ) 10880 case "$with_xim" in "" | "yes" )
10840 echo "checking for XIM" 1>&6 10881 echo "checking for XIM" 1>&6
10841 echo "configure:10842: checking for XIM" >&5 10882 echo "configure:10883: checking for XIM" >&5
10842 10883
10843 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 10884 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10844 echo "configure:10845: checking for XOpenIM in -lX11" >&5 10885 echo "configure:10886: checking for XOpenIM in -lX11" >&5
10845 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 10886 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10846 10887
10847 xe_check_libs=" -lX11 " 10888 xe_check_libs=" -lX11 "
10848 cat > conftest.$ac_ext <<EOF 10889 cat > conftest.$ac_ext <<EOF
10849 #line 10850 "configure" 10890 #line 10891 "configure"
10850 #include "confdefs.h" 10891 #include "confdefs.h"
10851 /* Override any gcc2 internal prototype to avoid an error. */ 10892 /* Override any gcc2 internal prototype to avoid an error. */
10852 /* We use char because int might match the return type of a gcc2 10893 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */ 10894 builtin and then its argument prototype would still apply. */
10854 char XOpenIM(); 10895 char XOpenIM();
10855 10896
10856 int main() { 10897 int main() {
10857 XOpenIM() 10898 XOpenIM()
10858 ; return 0; } 10899 ; return 0; }
10859 EOF 10900 EOF
10860 if { (eval echo configure:10861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10901 if { (eval echo configure:10902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10861 rm -rf conftest* 10902 rm -rf conftest*
10862 eval "ac_cv_lib_$ac_lib_var=yes" 10903 eval "ac_cv_lib_$ac_lib_var=yes"
10863 else 10904 else
10864 echo "configure: failed program was:" >&5 10905 echo "configure: failed program was:" >&5
10865 cat conftest.$ac_ext >&5 10906 cat conftest.$ac_ext >&5
10879 10920
10880 10921
10881 if test "$have_motif $have_lesstif" = "yes no"; then 10922 if test "$have_motif $have_lesstif" = "yes no"; then
10882 10923
10883 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 10924 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10884 echo "configure:10885: checking for XmImMbLookupString in -lXm" >&5 10925 echo "configure:10926: checking for XmImMbLookupString in -lXm" >&5
10885 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 10926 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10886 10927
10887 xe_check_libs=" -lXm " 10928 xe_check_libs=" -lXm "
10888 cat > conftest.$ac_ext <<EOF 10929 cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure" 10930 #line 10931 "configure"
10890 #include "confdefs.h" 10931 #include "confdefs.h"
10891 /* Override any gcc2 internal prototype to avoid an error. */ 10932 /* Override any gcc2 internal prototype to avoid an error. */
10892 /* We use char because int might match the return type of a gcc2 10933 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */ 10934 builtin and then its argument prototype would still apply. */
10894 char XmImMbLookupString(); 10935 char XmImMbLookupString();
10895 10936
10896 int main() { 10937 int main() {
10897 XmImMbLookupString() 10938 XmImMbLookupString()
10898 ; return 0; } 10939 ; return 0; }
10899 EOF 10940 EOF
10900 if { (eval echo configure:10901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10901 rm -rf conftest* 10942 rm -rf conftest*
10902 eval "ac_cv_lib_$ac_lib_var=yes" 10943 eval "ac_cv_lib_$ac_lib_var=yes"
10903 else 10944 else
10904 echo "configure: failed program was:" >&5 10945 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5 10946 cat conftest.$ac_ext >&5
10960 fi 11001 fi
10961 fi 11002 fi
10962 11003
10963 if test "$with_xfs" = "yes" ; then 11004 if test "$with_xfs" = "yes" ; then
10964 echo "checking for XFontSet" 1>&6 11005 echo "checking for XFontSet" 1>&6
10965 echo "configure:10966: checking for XFontSet" >&5 11006 echo "configure:11007: checking for XFontSet" >&5
10966 11007
10967 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 11008 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10968 echo "configure:10969: checking for XmbDrawString in -lX11" >&5 11009 echo "configure:11010: checking for XmbDrawString in -lX11" >&5
10969 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 11010 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10970 11011
10971 xe_check_libs=" -lX11 " 11012 xe_check_libs=" -lX11 "
10972 cat > conftest.$ac_ext <<EOF 11013 cat > conftest.$ac_ext <<EOF
10973 #line 10974 "configure" 11014 #line 11015 "configure"
10974 #include "confdefs.h" 11015 #include "confdefs.h"
10975 /* Override any gcc2 internal prototype to avoid an error. */ 11016 /* Override any gcc2 internal prototype to avoid an error. */
10976 /* We use char because int might match the return type of a gcc2 11017 /* We use char because int might match the return type of a gcc2
10977 builtin and then its argument prototype would still apply. */ 11018 builtin and then its argument prototype would still apply. */
10978 char XmbDrawString(); 11019 char XmbDrawString();
10979 11020
10980 int main() { 11021 int main() {
10981 XmbDrawString() 11022 XmbDrawString()
10982 ; return 0; } 11023 ; return 0; }
10983 EOF 11024 EOF
10984 if { (eval echo configure:10985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11025 if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10985 rm -rf conftest* 11026 rm -rf conftest*
10986 eval "ac_cv_lib_$ac_lib_var=yes" 11027 eval "ac_cv_lib_$ac_lib_var=yes"
10987 else 11028 else
10988 echo "configure: failed program was:" >&5 11029 echo "configure: failed program was:" >&5
10989 cat conftest.$ac_ext >&5 11030 cat conftest.$ac_ext >&5
11019 fi 11060 fi
11020 fi 11061 fi
11021 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 11062 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
11022 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 11063 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
11023 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 11064 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
11024 echo "configure:11025: checking for wnn/jllib.h" >&5 11065 echo "configure:11066: checking for wnn/jllib.h" >&5
11025 11066
11026 cat > conftest.$ac_ext <<EOF 11067 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure" 11068 #line 11069 "configure"
11028 #include "confdefs.h" 11069 #include "confdefs.h"
11029 #include <wnn/jllib.h> 11070 #include <wnn/jllib.h>
11030 EOF 11071 EOF
11031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11032 { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11073 { (eval echo configure:11074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11034 if test -z "$ac_err"; then 11075 if test -z "$ac_err"; then
11035 rm -rf conftest* 11076 rm -rf conftest*
11036 eval "ac_cv_header_$ac_safe=yes" 11077 eval "ac_cv_header_$ac_safe=yes"
11037 else 11078 else
11050 with_wnn=no 11091 with_wnn=no
11051 fi 11092 fi
11052 } 11093 }
11053 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 11094 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 11095 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
11055 echo "configure:11056: checking for wnn/commonhd.h" >&5 11096 echo "configure:11097: checking for wnn/commonhd.h" >&5
11056 11097
11057 cat > conftest.$ac_ext <<EOF 11098 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure" 11099 #line 11100 "configure"
11059 #include "confdefs.h" 11100 #include "confdefs.h"
11060 #include <wnn/commonhd.h> 11101 #include <wnn/commonhd.h>
11061 EOF 11102 EOF
11062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11063 { (eval echo configure:11064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11104 { (eval echo configure:11105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11065 if test -z "$ac_err"; then 11106 if test -z "$ac_err"; then
11066 rm -rf conftest* 11107 rm -rf conftest*
11067 eval "ac_cv_header_$ac_safe=yes" 11108 eval "ac_cv_header_$ac_safe=yes"
11068 else 11109 else
11083 } 11124 }
11084 if test "$with_wnn" != "no"; then 11125 if test "$with_wnn" != "no"; then
11085 for ac_func in crypt 11126 for ac_func in crypt
11086 do 11127 do
11087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11088 echo "configure:11089: checking for $ac_func" >&5 11129 echo "configure:11130: checking for $ac_func" >&5
11089 11130
11090 cat > conftest.$ac_ext <<EOF 11131 cat > conftest.$ac_ext <<EOF
11091 #line 11092 "configure" 11132 #line 11133 "configure"
11092 #include "confdefs.h" 11133 #include "confdefs.h"
11093 /* System header to define __stub macros and hopefully few prototypes, 11134 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func(); below. */ 11135 which can conflict with char $ac_func(); below. */
11095 #include <assert.h> 11136 #include <assert.h>
11096 /* Override any gcc2 internal prototype to avoid an error. */ 11137 /* Override any gcc2 internal prototype to avoid an error. */
11109 $ac_func(); 11150 $ac_func();
11110 #endif 11151 #endif
11111 11152
11112 ; return 0; } 11153 ; return 0; }
11113 EOF 11154 EOF
11114 if { (eval echo configure:11115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11155 if { (eval echo configure:11156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11115 rm -rf conftest* 11156 rm -rf conftest*
11116 eval "ac_cv_func_$ac_func=yes" 11157 eval "ac_cv_func_$ac_func=yes"
11117 else 11158 else
11118 echo "configure: failed program was:" >&5 11159 echo "configure: failed program was:" >&5
11119 cat conftest.$ac_ext >&5 11160 cat conftest.$ac_ext >&5
11138 fi 11179 fi
11139 done 11180 done
11140 11181
11141 test "$ac_cv_func_crypt" != "yes" && { 11182 test "$ac_cv_func_crypt" != "yes" && {
11142 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 11183 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11143 echo "configure:11144: checking for crypt in -lcrypt" >&5 11184 echo "configure:11185: checking for crypt in -lcrypt" >&5
11144 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 11185 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11145 11186
11146 xe_check_libs=" -lcrypt " 11187 xe_check_libs=" -lcrypt "
11147 cat > conftest.$ac_ext <<EOF 11188 cat > conftest.$ac_ext <<EOF
11148 #line 11149 "configure" 11189 #line 11190 "configure"
11149 #include "confdefs.h" 11190 #include "confdefs.h"
11150 /* Override any gcc2 internal prototype to avoid an error. */ 11191 /* Override any gcc2 internal prototype to avoid an error. */
11151 /* We use char because int might match the return type of a gcc2 11192 /* We use char because int might match the return type of a gcc2
11152 builtin and then its argument prototype would still apply. */ 11193 builtin and then its argument prototype would still apply. */
11153 char crypt(); 11194 char crypt();
11154 11195
11155 int main() { 11196 int main() {
11156 crypt() 11197 crypt()
11157 ; return 0; } 11198 ; return 0; }
11158 EOF 11199 EOF
11159 if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11200 if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11160 rm -rf conftest* 11201 rm -rf conftest*
11161 eval "ac_cv_lib_$ac_lib_var=yes" 11202 eval "ac_cv_lib_$ac_lib_var=yes"
11162 else 11203 else
11163 echo "configure: failed program was:" >&5 11204 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5 11205 cat conftest.$ac_ext >&5
11189 } 11230 }
11190 fi 11231 fi
11191 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 11232 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
11192 11233
11193 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 11234 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
11194 echo "configure:11195: checking for jl_dic_list_e in -lwnn" >&5 11235 echo "configure:11236: checking for jl_dic_list_e in -lwnn" >&5
11195 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11236 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11196 11237
11197 xe_check_libs=" -lwnn " 11238 xe_check_libs=" -lwnn "
11198 cat > conftest.$ac_ext <<EOF 11239 cat > conftest.$ac_ext <<EOF
11199 #line 11200 "configure" 11240 #line 11241 "configure"
11200 #include "confdefs.h" 11241 #include "confdefs.h"
11201 /* Override any gcc2 internal prototype to avoid an error. */ 11242 /* Override any gcc2 internal prototype to avoid an error. */
11202 /* We use char because int might match the return type of a gcc2 11243 /* We use char because int might match the return type of a gcc2
11203 builtin and then its argument prototype would still apply. */ 11244 builtin and then its argument prototype would still apply. */
11204 char jl_dic_list_e(); 11245 char jl_dic_list_e();
11205 11246
11206 int main() { 11247 int main() {
11207 jl_dic_list_e() 11248 jl_dic_list_e()
11208 ; return 0; } 11249 ; return 0; }
11209 EOF 11250 EOF
11210 if { (eval echo configure:11211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11251 if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11211 rm -rf conftest* 11252 rm -rf conftest*
11212 eval "ac_cv_lib_$ac_lib_var=yes" 11253 eval "ac_cv_lib_$ac_lib_var=yes"
11213 else 11254 else
11214 echo "configure: failed program was:" >&5 11255 echo "configure: failed program was:" >&5
11215 cat conftest.$ac_ext >&5 11256 cat conftest.$ac_ext >&5
11223 echo "$ac_t""yes" 1>&6 11264 echo "$ac_t""yes" 1>&6
11224 libwnn=wnn 11265 libwnn=wnn
11225 else 11266 else
11226 echo "$ac_t""no" 1>&6 11267 echo "$ac_t""no" 1>&6
11227 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 11268 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
11228 echo "configure:11229: checking for jl_dic_list_e in -lwnn4" >&5 11269 echo "configure:11270: checking for jl_dic_list_e in -lwnn4" >&5
11229 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11270 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11230 11271
11231 xe_check_libs=" -lwnn4 " 11272 xe_check_libs=" -lwnn4 "
11232 cat > conftest.$ac_ext <<EOF 11273 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure" 11274 #line 11275 "configure"
11234 #include "confdefs.h" 11275 #include "confdefs.h"
11235 /* Override any gcc2 internal prototype to avoid an error. */ 11276 /* Override any gcc2 internal prototype to avoid an error. */
11236 /* We use char because int might match the return type of a gcc2 11277 /* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */ 11278 builtin and then its argument prototype would still apply. */
11238 char jl_dic_list_e(); 11279 char jl_dic_list_e();
11239 11280
11240 int main() { 11281 int main() {
11241 jl_dic_list_e() 11282 jl_dic_list_e()
11242 ; return 0; } 11283 ; return 0; }
11243 EOF 11284 EOF
11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11285 if { (eval echo configure:11286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11245 rm -rf conftest* 11286 rm -rf conftest*
11246 eval "ac_cv_lib_$ac_lib_var=yes" 11287 eval "ac_cv_lib_$ac_lib_var=yes"
11247 else 11288 else
11248 echo "configure: failed program was:" >&5 11289 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5 11290 cat conftest.$ac_ext >&5
11257 echo "$ac_t""yes" 1>&6 11298 echo "$ac_t""yes" 1>&6
11258 libwnn=wnn4 11299 libwnn=wnn4
11259 else 11300 else
11260 echo "$ac_t""no" 1>&6 11301 echo "$ac_t""no" 1>&6
11261 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 11302 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
11262 echo "configure:11263: checking for jl_dic_list_e in -lwnn6" >&5 11303 echo "configure:11304: checking for jl_dic_list_e in -lwnn6" >&5
11263 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11304 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11264 11305
11265 xe_check_libs=" -lwnn6 " 11306 xe_check_libs=" -lwnn6 "
11266 cat > conftest.$ac_ext <<EOF 11307 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure" 11308 #line 11309 "configure"
11268 #include "confdefs.h" 11309 #include "confdefs.h"
11269 /* Override any gcc2 internal prototype to avoid an error. */ 11310 /* Override any gcc2 internal prototype to avoid an error. */
11270 /* We use char because int might match the return type of a gcc2 11311 /* We use char because int might match the return type of a gcc2
11271 builtin and then its argument prototype would still apply. */ 11312 builtin and then its argument prototype would still apply. */
11272 char jl_dic_list_e(); 11313 char jl_dic_list_e();
11273 11314
11274 int main() { 11315 int main() {
11275 jl_dic_list_e() 11316 jl_dic_list_e()
11276 ; return 0; } 11317 ; return 0; }
11277 EOF 11318 EOF
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11319 if { (eval echo configure:11320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11279 rm -rf conftest* 11320 rm -rf conftest*
11280 eval "ac_cv_lib_$ac_lib_var=yes" 11321 eval "ac_cv_lib_$ac_lib_var=yes"
11281 else 11322 else
11282 echo "configure: failed program was:" >&5 11323 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5 11324 cat conftest.$ac_ext >&5
11291 echo "$ac_t""yes" 1>&6 11332 echo "$ac_t""yes" 1>&6
11292 libwnn=wnn6 11333 libwnn=wnn6
11293 else 11334 else
11294 echo "$ac_t""no" 1>&6 11335 echo "$ac_t""no" 1>&6
11295 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 11336 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
11296 echo "configure:11297: checking for dic_list_e in -lwnn6_fromsrc" >&5 11337 echo "configure:11338: checking for dic_list_e in -lwnn6_fromsrc" >&5
11297 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 11338 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
11298 11339
11299 xe_check_libs=" -lwnn6_fromsrc " 11340 xe_check_libs=" -lwnn6_fromsrc "
11300 cat > conftest.$ac_ext <<EOF 11341 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure" 11342 #line 11343 "configure"
11302 #include "confdefs.h" 11343 #include "confdefs.h"
11303 /* Override any gcc2 internal prototype to avoid an error. */ 11344 /* Override any gcc2 internal prototype to avoid an error. */
11304 /* We use char because int might match the return type of a gcc2 11345 /* We use char because int might match the return type of a gcc2
11305 builtin and then its argument prototype would still apply. */ 11346 builtin and then its argument prototype would still apply. */
11306 char dic_list_e(); 11347 char dic_list_e();
11307 11348
11308 int main() { 11349 int main() {
11309 dic_list_e() 11350 dic_list_e()
11310 ; return 0; } 11351 ; return 0; }
11311 EOF 11352 EOF
11312 if { (eval echo configure:11313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11353 if { (eval echo configure:11354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11313 rm -rf conftest* 11354 rm -rf conftest*
11314 eval "ac_cv_lib_$ac_lib_var=yes" 11355 eval "ac_cv_lib_$ac_lib_var=yes"
11315 else 11356 else
11316 echo "configure: failed program was:" >&5 11357 echo "configure: failed program was:" >&5
11317 cat conftest.$ac_ext >&5 11358 cat conftest.$ac_ext >&5
11352 11393
11353 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi 11394 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
11354 if test "$with_wnn6" != "no"; then 11395 if test "$with_wnn6" != "no"; then
11355 11396
11356 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 11397 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
11357 echo "configure:11358: checking for jl_fi_dic_list in -l$libwnn" >&5 11398 echo "configure:11399: checking for jl_fi_dic_list in -l$libwnn" >&5
11358 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 11399 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
11359 11400
11360 xe_check_libs=" -l$libwnn " 11401 xe_check_libs=" -l$libwnn "
11361 cat > conftest.$ac_ext <<EOF 11402 cat > conftest.$ac_ext <<EOF
11362 #line 11363 "configure" 11403 #line 11404 "configure"
11363 #include "confdefs.h" 11404 #include "confdefs.h"
11364 /* Override any gcc2 internal prototype to avoid an error. */ 11405 /* Override any gcc2 internal prototype to avoid an error. */
11365 /* We use char because int might match the return type of a gcc2 11406 /* We use char because int might match the return type of a gcc2
11366 builtin and then its argument prototype would still apply. */ 11407 builtin and then its argument prototype would still apply. */
11367 char jl_fi_dic_list(); 11408 char jl_fi_dic_list();
11368 11409
11369 int main() { 11410 int main() {
11370 jl_fi_dic_list() 11411 jl_fi_dic_list()
11371 ; return 0; } 11412 ; return 0; }
11372 EOF 11413 EOF
11373 if { (eval echo configure:11374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11414 if { (eval echo configure:11415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11374 rm -rf conftest* 11415 rm -rf conftest*
11375 eval "ac_cv_lib_$ac_lib_var=yes" 11416 eval "ac_cv_lib_$ac_lib_var=yes"
11376 else 11417 else
11377 echo "configure: failed program was:" >&5 11418 echo "configure: failed program was:" >&5
11378 cat conftest.$ac_ext >&5 11419 cat conftest.$ac_ext >&5
11403 11444
11404 canna_includes_found=no 11445 canna_includes_found=no
11405 if test "$with_canna" != "no"; then 11446 if test "$with_canna" != "no"; then
11406 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11447 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11407 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11448 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11408 echo "configure:11409: checking for canna/jrkanji.h" >&5 11449 echo "configure:11450: checking for canna/jrkanji.h" >&5
11409 11450
11410 cat > conftest.$ac_ext <<EOF 11451 cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure" 11452 #line 11453 "configure"
11412 #include "confdefs.h" 11453 #include "confdefs.h"
11413 #include <canna/jrkanji.h> 11454 #include <canna/jrkanji.h>
11414 EOF 11455 EOF
11415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11416 { (eval echo configure:11417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11457 { (eval echo configure:11458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11418 if test -z "$ac_err"; then 11459 if test -z "$ac_err"; then
11419 rm -rf conftest* 11460 rm -rf conftest*
11420 eval "ac_cv_header_$ac_safe=yes" 11461 eval "ac_cv_header_$ac_safe=yes"
11421 else 11462 else
11438 -d "/usr/local/canna/include"; then 11479 -d "/usr/local/canna/include"; then
11439 save_c_switch_site="$c_switch_site" 11480 save_c_switch_site="$c_switch_site"
11440 c_switch_site="$c_switch_site -I/usr/local/canna/include" 11481 c_switch_site="$c_switch_site -I/usr/local/canna/include"
11441 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11482 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11442 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11483 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11443 echo "configure:11444: checking for canna/jrkanji.h" >&5 11484 echo "configure:11485: checking for canna/jrkanji.h" >&5
11444 11485
11445 cat > conftest.$ac_ext <<EOF 11486 cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure" 11487 #line 11488 "configure"
11447 #include "confdefs.h" 11488 #include "confdefs.h"
11448 #include <canna/jrkanji.h> 11489 #include <canna/jrkanji.h>
11449 EOF 11490 EOF
11450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11451 { (eval echo configure:11452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11492 { (eval echo configure:11493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11453 if test -z "$ac_err"; then 11494 if test -z "$ac_err"; then
11454 rm -rf conftest* 11495 rm -rf conftest*
11455 eval "ac_cv_header_$ac_safe=yes" 11496 eval "ac_cv_header_$ac_safe=yes"
11456 else 11497 else
11474 fi 11515 fi
11475 fi 11516 fi
11476 11517
11477 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 11518 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
11478 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 11519 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
11479 echo "configure:11480: checking for canna/RK.h" >&5 11520 echo "configure:11521: checking for canna/RK.h" >&5
11480 11521
11481 cat > conftest.$ac_ext <<EOF 11522 cat > conftest.$ac_ext <<EOF
11482 #line 11483 "configure" 11523 #line 11524 "configure"
11483 #include "confdefs.h" 11524 #include "confdefs.h"
11484 #include <canna/RK.h> 11525 #include <canna/RK.h>
11485 EOF 11526 EOF
11486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11487 { (eval echo configure:11488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11528 { (eval echo configure:11529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11489 if test -z "$ac_err"; then 11530 if test -z "$ac_err"; then
11490 rm -rf conftest* 11531 rm -rf conftest*
11491 eval "ac_cv_header_$ac_safe=yes" 11532 eval "ac_cv_header_$ac_safe=yes"
11492 else 11533 else
11505 with_canna=no 11546 with_canna=no
11506 fi 11547 fi
11507 } 11548 }
11508 test -z "$with_canna" && { 11549 test -z "$with_canna" && {
11509 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 11550 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
11510 echo "configure:11511: checking for RkBgnBun in -lRKC" >&5 11551 echo "configure:11552: checking for RkBgnBun in -lRKC" >&5
11511 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 11552 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
11512 11553
11513 xe_check_libs=" -lRKC " 11554 xe_check_libs=" -lRKC "
11514 cat > conftest.$ac_ext <<EOF 11555 cat > conftest.$ac_ext <<EOF
11515 #line 11516 "configure" 11556 #line 11557 "configure"
11516 #include "confdefs.h" 11557 #include "confdefs.h"
11517 /* Override any gcc2 internal prototype to avoid an error. */ 11558 /* Override any gcc2 internal prototype to avoid an error. */
11518 /* We use char because int might match the return type of a gcc2 11559 /* We use char because int might match the return type of a gcc2
11519 builtin and then its argument prototype would still apply. */ 11560 builtin and then its argument prototype would still apply. */
11520 char RkBgnBun(); 11561 char RkBgnBun();
11521 11562
11522 int main() { 11563 int main() {
11523 RkBgnBun() 11564 RkBgnBun()
11524 ; return 0; } 11565 ; return 0; }
11525 EOF 11566 EOF
11526 if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11527 rm -rf conftest* 11568 rm -rf conftest*
11528 eval "ac_cv_lib_$ac_lib_var=yes" 11569 eval "ac_cv_lib_$ac_lib_var=yes"
11529 else 11570 else
11530 echo "configure: failed program was:" >&5 11571 echo "configure: failed program was:" >&5
11531 cat conftest.$ac_ext >&5 11572 cat conftest.$ac_ext >&5
11544 fi 11585 fi
11545 11586
11546 } 11587 }
11547 test -z "$with_canna" && { 11588 test -z "$with_canna" && {
11548 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 11589 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
11549 echo "configure:11550: checking for jrKanjiControl in -lcanna" >&5 11590 echo "configure:11591: checking for jrKanjiControl in -lcanna" >&5
11550 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 11591 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
11551 11592
11552 xe_check_libs=" -lcanna " 11593 xe_check_libs=" -lcanna "
11553 cat > conftest.$ac_ext <<EOF 11594 cat > conftest.$ac_ext <<EOF
11554 #line 11555 "configure" 11595 #line 11596 "configure"
11555 #include "confdefs.h" 11596 #include "confdefs.h"
11556 /* Override any gcc2 internal prototype to avoid an error. */ 11597 /* Override any gcc2 internal prototype to avoid an error. */
11557 /* We use char because int might match the return type of a gcc2 11598 /* We use char because int might match the return type of a gcc2
11558 builtin and then its argument prototype would still apply. */ 11599 builtin and then its argument prototype would still apply. */
11559 char jrKanjiControl(); 11600 char jrKanjiControl();
11560 11601
11561 int main() { 11602 int main() {
11562 jrKanjiControl() 11603 jrKanjiControl()
11563 ; return 0; } 11604 ; return 0; }
11564 EOF 11605 EOF
11565 if { (eval echo configure:11566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11566 rm -rf conftest* 11607 rm -rf conftest*
11567 eval "ac_cv_lib_$ac_lib_var=yes" 11608 eval "ac_cv_lib_$ac_lib_var=yes"
11568 else 11609 else
11569 echo "configure: failed program was:" >&5 11610 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5 11611 cat conftest.$ac_ext >&5
11606 11647
11607 if test "$need_motif" = "yes" ; then 11648 if test "$need_motif" = "yes" ; then
11608 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 11649 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
11609 11650
11610 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 11651 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
11611 echo "configure:11612: checking for layout_object_getvalue in -li18n" >&5 11652 echo "configure:11653: checking for layout_object_getvalue in -li18n" >&5
11612 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 11653 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
11613 11654
11614 xe_check_libs=" -li18n " 11655 xe_check_libs=" -li18n "
11615 cat > conftest.$ac_ext <<EOF 11656 cat > conftest.$ac_ext <<EOF
11616 #line 11617 "configure" 11657 #line 11658 "configure"
11617 #include "confdefs.h" 11658 #include "confdefs.h"
11618 /* Override any gcc2 internal prototype to avoid an error. */ 11659 /* Override any gcc2 internal prototype to avoid an error. */
11619 /* We use char because int might match the return type of a gcc2 11660 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */ 11661 builtin and then its argument prototype would still apply. */
11621 char layout_object_getvalue(); 11662 char layout_object_getvalue();
11622 11663
11623 int main() { 11664 int main() {
11624 layout_object_getvalue() 11665 layout_object_getvalue()
11625 ; return 0; } 11666 ; return 0; }
11626 EOF 11667 EOF
11627 if { (eval echo configure:11628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11668 if { (eval echo configure:11669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11628 rm -rf conftest* 11669 rm -rf conftest*
11629 eval "ac_cv_lib_$ac_lib_var=yes" 11670 eval "ac_cv_lib_$ac_lib_var=yes"
11630 else 11671 else
11631 echo "configure: failed program was:" >&5 11672 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5 11673 cat conftest.$ac_ext >&5
11706 fi 11747 fi
11707 11748
11708 fi 11749 fi
11709 11750
11710 11751
11711 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask 11752 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
11712 do 11753 do
11713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11714 echo "configure:11715: checking for $ac_func" >&5 11755 echo "configure:11756: checking for $ac_func" >&5
11715 11756
11716 cat > conftest.$ac_ext <<EOF 11757 cat > conftest.$ac_ext <<EOF
11717 #line 11718 "configure" 11758 #line 11759 "configure"
11718 #include "confdefs.h" 11759 #include "confdefs.h"
11719 /* System header to define __stub macros and hopefully few prototypes, 11760 /* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char $ac_func(); below. */ 11761 which can conflict with char $ac_func(); below. */
11721 #include <assert.h> 11762 #include <assert.h>
11722 /* Override any gcc2 internal prototype to avoid an error. */ 11763 /* Override any gcc2 internal prototype to avoid an error. */
11735 $ac_func(); 11776 $ac_func();
11736 #endif 11777 #endif
11737 11778
11738 ; return 0; } 11779 ; return 0; }
11739 EOF 11780 EOF
11740 if { (eval echo configure:11741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11781 if { (eval echo configure:11782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11741 rm -rf conftest* 11782 rm -rf conftest*
11742 eval "ac_cv_func_$ac_func=yes" 11783 eval "ac_cv_func_$ac_func=yes"
11743 else 11784 else
11744 echo "configure: failed program was:" >&5 11785 echo "configure: failed program was:" >&5
11745 cat conftest.$ac_ext >&5 11786 cat conftest.$ac_ext >&5
11776 11817
11777 11818
11778 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 11819 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11779 do 11820 do
11780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11821 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11781 echo "configure:11782: checking for $ac_func" >&5 11822 echo "configure:11823: checking for $ac_func" >&5
11782 11823
11783 cat > conftest.$ac_ext <<EOF 11824 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure" 11825 #line 11826 "configure"
11785 #include "confdefs.h" 11826 #include "confdefs.h"
11786 /* System header to define __stub macros and hopefully few prototypes, 11827 /* System header to define __stub macros and hopefully few prototypes,
11787 which can conflict with char $ac_func(); below. */ 11828 which can conflict with char $ac_func(); below. */
11788 #include <assert.h> 11829 #include <assert.h>
11789 /* Override any gcc2 internal prototype to avoid an error. */ 11830 /* Override any gcc2 internal prototype to avoid an error. */
11802 $ac_func(); 11843 $ac_func();
11803 #endif 11844 #endif
11804 11845
11805 ; return 0; } 11846 ; return 0; }
11806 EOF 11847 EOF
11807 if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11848 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11808 rm -rf conftest* 11849 rm -rf conftest*
11809 eval "ac_cv_func_$ac_func=yes" 11850 eval "ac_cv_func_$ac_func=yes"
11810 else 11851 else
11811 echo "configure: failed program was:" >&5 11852 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5 11853 cat conftest.$ac_ext >&5
11831 fi 11872 fi
11832 done 11873 done
11833 11874
11834 11875
11835 echo $ac_n "checking for openpty""... $ac_c" 1>&6 11876 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11836 echo "configure:11837: checking for openpty" >&5 11877 echo "configure:11878: checking for openpty" >&5
11837 11878
11838 cat > conftest.$ac_ext <<EOF 11879 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure" 11880 #line 11881 "configure"
11840 #include "confdefs.h" 11881 #include "confdefs.h"
11841 /* System header to define __stub macros and hopefully few prototypes, 11882 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char openpty(); below. */ 11883 which can conflict with char openpty(); below. */
11843 #include <assert.h> 11884 #include <assert.h>
11844 /* Override any gcc2 internal prototype to avoid an error. */ 11885 /* Override any gcc2 internal prototype to avoid an error. */
11857 openpty(); 11898 openpty();
11858 #endif 11899 #endif
11859 11900
11860 ; return 0; } 11901 ; return 0; }
11861 EOF 11902 EOF
11862 if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11903 if { (eval echo configure:11904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11863 rm -rf conftest* 11904 rm -rf conftest*
11864 eval "ac_cv_func_openpty=yes" 11905 eval "ac_cv_func_openpty=yes"
11865 else 11906 else
11866 echo "configure: failed program was:" >&5 11907 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5 11908 cat conftest.$ac_ext >&5
11876 else 11917 else
11877 echo "$ac_t""no" 1>&6 11918 echo "$ac_t""no" 1>&6
11878 11919
11879 11920
11880 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 11921 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11881 echo "configure:11882: checking for openpty in -lutil" >&5 11922 echo "configure:11923: checking for openpty in -lutil" >&5
11882 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 11923 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11883 11924
11884 xe_check_libs=" -lutil " 11925 xe_check_libs=" -lutil "
11885 cat > conftest.$ac_ext <<EOF 11926 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure" 11927 #line 11928 "configure"
11887 #include "confdefs.h" 11928 #include "confdefs.h"
11888 /* Override any gcc2 internal prototype to avoid an error. */ 11929 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2 11930 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */ 11931 builtin and then its argument prototype would still apply. */
11891 char openpty(); 11932 char openpty();
11892 11933
11893 int main() { 11934 int main() {
11894 openpty() 11935 openpty()
11895 ; return 0; } 11936 ; return 0; }
11896 EOF 11937 EOF
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11938 if { (eval echo configure:11939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 rm -rf conftest* 11939 rm -rf conftest*
11899 eval "ac_cv_lib_$ac_lib_var=yes" 11940 eval "ac_cv_lib_$ac_lib_var=yes"
11900 else 11941 else
11901 echo "configure: failed program was:" >&5 11942 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5 11943 cat conftest.$ac_ext >&5
11927 11968
11928 for ac_hdr in libutil.h util.h 11969 for ac_hdr in libutil.h util.h
11929 do 11970 do
11930 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11971 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11931 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11972 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11932 echo "configure:11933: checking for $ac_hdr" >&5 11973 echo "configure:11974: checking for $ac_hdr" >&5
11933 11974
11934 cat > conftest.$ac_ext <<EOF 11975 cat > conftest.$ac_ext <<EOF
11935 #line 11936 "configure" 11976 #line 11977 "configure"
11936 #include "confdefs.h" 11977 #include "confdefs.h"
11937 #include <$ac_hdr> 11978 #include <$ac_hdr>
11938 EOF 11979 EOF
11939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11940 { (eval echo configure:11941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11981 { (eval echo configure:11982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11942 if test -z "$ac_err"; then 11983 if test -z "$ac_err"; then
11943 rm -rf conftest* 11984 rm -rf conftest*
11944 eval "ac_cv_header_$ac_safe=yes" 11985 eval "ac_cv_header_$ac_safe=yes"
11945 else 11986 else
11972 case "$opsys" in 12013 case "$opsys" in
11973 hpux*) for ac_hdr in sys/ptyio.h 12014 hpux*) for ac_hdr in sys/ptyio.h
11974 do 12015 do
11975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11977 echo "configure:11978: checking for $ac_hdr" >&5 12018 echo "configure:12019: checking for $ac_hdr" >&5
11978 12019
11979 cat > conftest.$ac_ext <<EOF 12020 cat > conftest.$ac_ext <<EOF
11980 #line 11981 "configure" 12021 #line 12022 "configure"
11981 #include "confdefs.h" 12022 #include "confdefs.h"
11982 #include <$ac_hdr> 12023 #include <$ac_hdr>
11983 EOF 12024 EOF
11984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11985 { (eval echo configure:11986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12026 { (eval echo configure:12027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11987 if test -z "$ac_err"; then 12028 if test -z "$ac_err"; then
11988 rm -rf conftest* 12029 rm -rf conftest*
11989 eval "ac_cv_header_$ac_safe=yes" 12030 eval "ac_cv_header_$ac_safe=yes"
11990 else 12031 else
12013 ;; 12054 ;;
12014 *) for ac_hdr in pty.h 12055 *) for ac_hdr in pty.h
12015 do 12056 do
12016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12018 echo "configure:12019: checking for $ac_hdr" >&5 12059 echo "configure:12060: checking for $ac_hdr" >&5
12019 12060
12020 cat > conftest.$ac_ext <<EOF 12061 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure" 12062 #line 12063 "configure"
12022 #include "confdefs.h" 12063 #include "confdefs.h"
12023 #include <$ac_hdr> 12064 #include <$ac_hdr>
12024 EOF 12065 EOF
12025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12026 { (eval echo configure:12027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12067 { (eval echo configure:12068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12028 if test -z "$ac_err"; then 12069 if test -z "$ac_err"; then
12029 rm -rf conftest* 12070 rm -rf conftest*
12030 eval "ac_cv_header_$ac_safe=yes" 12071 eval "ac_cv_header_$ac_safe=yes"
12031 else 12072 else
12054 12095
12055 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 12096 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
12056 do 12097 do
12057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12059 echo "configure:12060: checking for $ac_hdr" >&5 12100 echo "configure:12101: checking for $ac_hdr" >&5
12060 12101
12061 cat > conftest.$ac_ext <<EOF 12102 cat > conftest.$ac_ext <<EOF
12062 #line 12063 "configure" 12103 #line 12104 "configure"
12063 #include "confdefs.h" 12104 #include "confdefs.h"
12064 #include <$ac_hdr> 12105 #include <$ac_hdr>
12065 EOF 12106 EOF
12066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12067 { (eval echo configure:12068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12108 { (eval echo configure:12109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12069 if test -z "$ac_err"; then 12110 if test -z "$ac_err"; then
12070 rm -rf conftest* 12111 rm -rf conftest*
12071 eval "ac_cv_header_$ac_safe=yes" 12112 eval "ac_cv_header_$ac_safe=yes"
12072 else 12113 else
12098 12139
12099 for ac_hdr in stropts.h 12140 for ac_hdr in stropts.h
12100 do 12141 do
12101 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12102 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12143 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12103 echo "configure:12104: checking for $ac_hdr" >&5 12144 echo "configure:12145: checking for $ac_hdr" >&5
12104 12145
12105 cat > conftest.$ac_ext <<EOF 12146 cat > conftest.$ac_ext <<EOF
12106 #line 12107 "configure" 12147 #line 12148 "configure"
12107 #include "confdefs.h" 12148 #include "confdefs.h"
12108 #include <$ac_hdr> 12149 #include <$ac_hdr>
12109 EOF 12150 EOF
12110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12111 { (eval echo configure:12112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12152 { (eval echo configure:12153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12113 if test -z "$ac_err"; then 12154 if test -z "$ac_err"; then
12114 rm -rf conftest* 12155 rm -rf conftest*
12115 eval "ac_cv_header_$ac_safe=yes" 12156 eval "ac_cv_header_$ac_safe=yes"
12116 else 12157 else
12139 12180
12140 if test "$ac_cv_header_stropts_h" = "yes"; then 12181 if test "$ac_cv_header_stropts_h" = "yes"; then
12141 for ac_func in isastream 12182 for ac_func in isastream
12142 do 12183 do
12143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12144 echo "configure:12145: checking for $ac_func" >&5 12185 echo "configure:12186: checking for $ac_func" >&5
12145 12186
12146 cat > conftest.$ac_ext <<EOF 12187 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure" 12188 #line 12189 "configure"
12148 #include "confdefs.h" 12189 #include "confdefs.h"
12149 /* System header to define __stub macros and hopefully few prototypes, 12190 /* System header to define __stub macros and hopefully few prototypes,
12150 which can conflict with char $ac_func(); below. */ 12191 which can conflict with char $ac_func(); below. */
12151 #include <assert.h> 12192 #include <assert.h>
12152 /* Override any gcc2 internal prototype to avoid an error. */ 12193 /* Override any gcc2 internal prototype to avoid an error. */
12165 $ac_func(); 12206 $ac_func();
12166 #endif 12207 #endif
12167 12208
12168 ; return 0; } 12209 ; return 0; }
12169 EOF 12210 EOF
12170 if { (eval echo configure:12171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12211 if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12171 rm -rf conftest* 12212 rm -rf conftest*
12172 eval "ac_cv_func_$ac_func=yes" 12213 eval "ac_cv_func_$ac_func=yes"
12173 else 12214 else
12174 echo "configure: failed program was:" >&5 12215 echo "configure: failed program was:" >&5
12175 cat conftest.$ac_ext >&5 12216 cat conftest.$ac_ext >&5
12196 12237
12197 for ac_hdr in strtio.h 12238 for ac_hdr in strtio.h
12198 do 12239 do
12199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12201 echo "configure:12202: checking for $ac_hdr" >&5 12242 echo "configure:12243: checking for $ac_hdr" >&5
12202 12243
12203 cat > conftest.$ac_ext <<EOF 12244 cat > conftest.$ac_ext <<EOF
12204 #line 12205 "configure" 12245 #line 12246 "configure"
12205 #include "confdefs.h" 12246 #include "confdefs.h"
12206 #include <$ac_hdr> 12247 #include <$ac_hdr>
12207 EOF 12248 EOF
12208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12209 { (eval echo configure:12210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12250 { (eval echo configure:12251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12211 if test -z "$ac_err"; then 12252 if test -z "$ac_err"; then
12212 rm -rf conftest* 12253 rm -rf conftest*
12213 eval "ac_cv_header_$ac_safe=yes" 12254 eval "ac_cv_header_$ac_safe=yes"
12214 else 12255 else
12237 fi 12278 fi
12238 12279
12239 for ac_func in getloadavg 12280 for ac_func in getloadavg
12240 do 12281 do
12241 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12242 echo "configure:12243: checking for $ac_func" >&5 12283 echo "configure:12284: checking for $ac_func" >&5
12243 12284
12244 cat > conftest.$ac_ext <<EOF 12285 cat > conftest.$ac_ext <<EOF
12245 #line 12246 "configure" 12286 #line 12287 "configure"
12246 #include "confdefs.h" 12287 #include "confdefs.h"
12247 /* System header to define __stub macros and hopefully few prototypes, 12288 /* System header to define __stub macros and hopefully few prototypes,
12248 which can conflict with char $ac_func(); below. */ 12289 which can conflict with char $ac_func(); below. */
12249 #include <assert.h> 12290 #include <assert.h>
12250 /* Override any gcc2 internal prototype to avoid an error. */ 12291 /* Override any gcc2 internal prototype to avoid an error. */
12263 $ac_func(); 12304 $ac_func();
12264 #endif 12305 #endif
12265 12306
12266 ; return 0; } 12307 ; return 0; }
12267 EOF 12308 EOF
12268 if { (eval echo configure:12269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12309 if { (eval echo configure:12310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12269 rm -rf conftest* 12310 rm -rf conftest*
12270 eval "ac_cv_func_$ac_func=yes" 12311 eval "ac_cv_func_$ac_func=yes"
12271 else 12312 else
12272 echo "configure: failed program was:" >&5 12313 echo "configure: failed program was:" >&5
12273 cat conftest.$ac_ext >&5 12314 cat conftest.$ac_ext >&5
12296 if test "$ac_cv_func_getloadavg" = "yes"; then 12337 if test "$ac_cv_func_getloadavg" = "yes"; then
12297 for ac_hdr in sys/loadavg.h 12338 for ac_hdr in sys/loadavg.h
12298 do 12339 do
12299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12340 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12341 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12301 echo "configure:12302: checking for $ac_hdr" >&5 12342 echo "configure:12343: checking for $ac_hdr" >&5
12302 12343
12303 cat > conftest.$ac_ext <<EOF 12344 cat > conftest.$ac_ext <<EOF
12304 #line 12305 "configure" 12345 #line 12346 "configure"
12305 #include "confdefs.h" 12346 #include "confdefs.h"
12306 #include <$ac_hdr> 12347 #include <$ac_hdr>
12307 EOF 12348 EOF
12308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12309 { (eval echo configure:12310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12350 { (eval echo configure:12351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12311 if test -z "$ac_err"; then 12352 if test -z "$ac_err"; then
12312 rm -rf conftest* 12353 rm -rf conftest*
12313 eval "ac_cv_header_$ac_safe=yes" 12354 eval "ac_cv_header_$ac_safe=yes"
12314 else 12355 else
12340 echo " xemacs will be linked with \"getloadavg.o\"" 12381 echo " xemacs will be linked with \"getloadavg.o\""
12341 fi 12382 fi
12342 12383
12343 12384
12344 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 12385 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
12345 echo "configure:12346: checking for kstat_open in -lkstat" >&5 12386 echo "configure:12387: checking for kstat_open in -lkstat" >&5
12346 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 12387 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
12347 12388
12348 xe_check_libs=" -lkstat " 12389 xe_check_libs=" -lkstat "
12349 cat > conftest.$ac_ext <<EOF 12390 cat > conftest.$ac_ext <<EOF
12350 #line 12351 "configure" 12391 #line 12392 "configure"
12351 #include "confdefs.h" 12392 #include "confdefs.h"
12352 /* Override any gcc2 internal prototype to avoid an error. */ 12393 /* Override any gcc2 internal prototype to avoid an error. */
12353 /* We use char because int might match the return type of a gcc2 12394 /* We use char because int might match the return type of a gcc2
12354 builtin and then its argument prototype would still apply. */ 12395 builtin and then its argument prototype would still apply. */
12355 char kstat_open(); 12396 char kstat_open();
12356 12397
12357 int main() { 12398 int main() {
12358 kstat_open() 12399 kstat_open()
12359 ; return 0; } 12400 ; return 0; }
12360 EOF 12401 EOF
12361 if { (eval echo configure:12362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12402 if { (eval echo configure:12403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12362 rm -rf conftest* 12403 rm -rf conftest*
12363 eval "ac_cv_lib_$ac_lib_var=yes" 12404 eval "ac_cv_lib_$ac_lib_var=yes"
12364 else 12405 else
12365 echo "configure: failed program was:" >&5 12406 echo "configure: failed program was:" >&5
12366 cat conftest.$ac_ext >&5 12407 cat conftest.$ac_ext >&5
12391 12432
12392 for ac_hdr in kstat.h 12433 for ac_hdr in kstat.h
12393 do 12434 do
12394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12396 echo "configure:12397: checking for $ac_hdr" >&5 12437 echo "configure:12438: checking for $ac_hdr" >&5
12397 12438
12398 cat > conftest.$ac_ext <<EOF 12439 cat > conftest.$ac_ext <<EOF
12399 #line 12400 "configure" 12440 #line 12441 "configure"
12400 #include "confdefs.h" 12441 #include "confdefs.h"
12401 #include <$ac_hdr> 12442 #include <$ac_hdr>
12402 EOF 12443 EOF
12403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12404 { (eval echo configure:12405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12445 { (eval echo configure:12446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12406 if test -z "$ac_err"; then 12447 if test -z "$ac_err"; then
12407 rm -rf conftest* 12448 rm -rf conftest*
12408 eval "ac_cv_header_$ac_safe=yes" 12449 eval "ac_cv_header_$ac_safe=yes"
12409 else 12450 else
12431 done 12472 done
12432 12473
12433 12474
12434 12475
12435 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 12476 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
12436 echo "configure:12437: checking for kvm_read in -lkvm" >&5 12477 echo "configure:12478: checking for kvm_read in -lkvm" >&5
12437 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 12478 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
12438 12479
12439 xe_check_libs=" -lkvm " 12480 xe_check_libs=" -lkvm "
12440 cat > conftest.$ac_ext <<EOF 12481 cat > conftest.$ac_ext <<EOF
12441 #line 12442 "configure" 12482 #line 12483 "configure"
12442 #include "confdefs.h" 12483 #include "confdefs.h"
12443 /* Override any gcc2 internal prototype to avoid an error. */ 12484 /* Override any gcc2 internal prototype to avoid an error. */
12444 /* We use char because int might match the return type of a gcc2 12485 /* We use char because int might match the return type of a gcc2
12445 builtin and then its argument prototype would still apply. */ 12486 builtin and then its argument prototype would still apply. */
12446 char kvm_read(); 12487 char kvm_read();
12447 12488
12448 int main() { 12489 int main() {
12449 kvm_read() 12490 kvm_read()
12450 ; return 0; } 12491 ; return 0; }
12451 EOF 12492 EOF
12452 if { (eval echo configure:12453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12493 if { (eval echo configure:12494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12453 rm -rf conftest* 12494 rm -rf conftest*
12454 eval "ac_cv_lib_$ac_lib_var=yes" 12495 eval "ac_cv_lib_$ac_lib_var=yes"
12455 else 12496 else
12456 echo "configure: failed program was:" >&5 12497 echo "configure: failed program was:" >&5
12457 cat conftest.$ac_ext >&5 12498 cat conftest.$ac_ext >&5
12481 12522
12482 12523
12483 fi 12524 fi
12484 12525
12485 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 12526 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
12486 echo "configure:12487: checking whether netdb declares h_errno" >&5 12527 echo "configure:12528: checking whether netdb declares h_errno" >&5
12487 cat > conftest.$ac_ext <<EOF 12528 cat > conftest.$ac_ext <<EOF
12488 #line 12489 "configure" 12529 #line 12530 "configure"
12489 #include "confdefs.h" 12530 #include "confdefs.h"
12490 #include <netdb.h> 12531 #include <netdb.h>
12491 int main() { 12532 int main() {
12492 return h_errno; 12533 return h_errno;
12493 ; return 0; } 12534 ; return 0; }
12494 EOF 12535 EOF
12495 if { (eval echo configure:12496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12536 if { (eval echo configure:12537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12496 rm -rf conftest* 12537 rm -rf conftest*
12497 echo "$ac_t""yes" 1>&6 12538 echo "$ac_t""yes" 1>&6
12498 { test "$extra_verbose" = "yes" && cat << \EOF 12539 { test "$extra_verbose" = "yes" && cat << \EOF
12499 Defining HAVE_H_ERRNO 12540 Defining HAVE_H_ERRNO
12500 EOF 12541 EOF
12510 echo "$ac_t""no" 1>&6 12551 echo "$ac_t""no" 1>&6
12511 fi 12552 fi
12512 rm -f conftest* 12553 rm -f conftest*
12513 12554
12514 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 12555 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
12515 echo "configure:12516: checking for sigsetjmp" >&5 12556 echo "configure:12557: checking for sigsetjmp" >&5
12516 cat > conftest.$ac_ext <<EOF 12557 cat > conftest.$ac_ext <<EOF
12517 #line 12518 "configure" 12558 #line 12559 "configure"
12518 #include "confdefs.h" 12559 #include "confdefs.h"
12519 #include <setjmp.h> 12560 #include <setjmp.h>
12520 int main() { 12561 int main() {
12521 sigjmp_buf bar; sigsetjmp (bar, 0); 12562 sigjmp_buf bar; sigsetjmp (bar, 0);
12522 ; return 0; } 12563 ; return 0; }
12523 EOF 12564 EOF
12524 if { (eval echo configure:12525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12565 if { (eval echo configure:12566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12525 rm -rf conftest* 12566 rm -rf conftest*
12526 echo "$ac_t""yes" 1>&6 12567 echo "$ac_t""yes" 1>&6
12527 { test "$extra_verbose" = "yes" && cat << \EOF 12568 { test "$extra_verbose" = "yes" && cat << \EOF
12528 Defining HAVE_SIGSETJMP 12569 Defining HAVE_SIGSETJMP
12529 EOF 12570 EOF
12539 echo "$ac_t""no" 1>&6 12580 echo "$ac_t""no" 1>&6
12540 fi 12581 fi
12541 rm -f conftest* 12582 rm -f conftest*
12542 12583
12543 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 12584 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
12544 echo "configure:12545: checking whether localtime caches TZ" >&5 12585 echo "configure:12586: checking whether localtime caches TZ" >&5
12545 12586
12546 if test "$ac_cv_func_tzset" = "yes"; then 12587 if test "$ac_cv_func_tzset" = "yes"; then
12547 cat > conftest.$ac_ext <<EOF 12588 cat > conftest.$ac_ext <<EOF
12548 #line 12549 "configure" 12589 #line 12590 "configure"
12549 #include "confdefs.h" 12590 #include "confdefs.h"
12550 #include <time.h> 12591 #include <time.h>
12551 #if STDC_HEADERS 12592 #if STDC_HEADERS
12552 # include <stdlib.h> 12593 # include <stdlib.h>
12553 #endif 12594 #endif
12578 if (localtime (&now)->tm_hour != hour_unset) 12619 if (localtime (&now)->tm_hour != hour_unset)
12579 exit (1); 12620 exit (1);
12580 exit (0); 12621 exit (0);
12581 } 12622 }
12582 EOF 12623 EOF
12583 if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12624 if { (eval echo configure:12625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12584 then 12625 then
12585 emacs_cv_localtime_cache=no 12626 emacs_cv_localtime_cache=no
12586 else 12627 else
12587 conftest_rc="$?" 12628 conftest_rc="$?"
12588 echo "configure: failed program was:" >&5 12629 echo "configure: failed program was:" >&5
12608 12649
12609 fi 12650 fi
12610 12651
12611 if test "$HAVE_TIMEVAL" = "yes"; then 12652 if test "$HAVE_TIMEVAL" = "yes"; then
12612 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 12653 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
12613 echo "configure:12614: checking whether gettimeofday accepts one or two arguments" >&5 12654 echo "configure:12655: checking whether gettimeofday accepts one or two arguments" >&5
12614 cat > conftest.$ac_ext <<EOF 12655 cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure" 12656 #line 12657 "configure"
12616 #include "confdefs.h" 12657 #include "confdefs.h"
12617 12658
12618 #ifdef TIME_WITH_SYS_TIME 12659 #ifdef TIME_WITH_SYS_TIME
12619 #include <sys/time.h> 12660 #include <sys/time.h>
12620 #include <time.h> 12661 #include <time.h>
12631 struct timeval time; 12672 struct timeval time;
12632 gettimeofday (&time, 0); 12673 gettimeofday (&time, 0);
12633 12674
12634 ; return 0; } 12675 ; return 0; }
12635 EOF 12676 EOF
12636 if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12677 if { (eval echo configure:12678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12637 rm -rf conftest* 12678 rm -rf conftest*
12638 echo "$ac_t""two" 1>&6 12679 echo "$ac_t""two" 1>&6
12639 else 12680 else
12640 echo "configure: failed program was:" >&5 12681 echo "configure: failed program was:" >&5
12641 cat conftest.$ac_ext >&5 12682 cat conftest.$ac_ext >&5
12653 rm -f conftest* 12694 rm -f conftest*
12654 fi 12695 fi
12655 12696
12656 12697
12657 echo $ac_n "checking for inline""... $ac_c" 1>&6 12698 echo $ac_n "checking for inline""... $ac_c" 1>&6
12658 echo "configure:12659: checking for inline" >&5 12699 echo "configure:12700: checking for inline" >&5
12659 12700
12660 ac_cv_c_inline=no 12701 ac_cv_c_inline=no
12661 for ac_kw in inline __inline__ __inline; do 12702 for ac_kw in inline __inline__ __inline; do
12662 cat > conftest.$ac_ext <<EOF 12703 cat > conftest.$ac_ext <<EOF
12663 #line 12664 "configure" 12704 #line 12705 "configure"
12664 #include "confdefs.h" 12705 #include "confdefs.h"
12665 12706
12666 int main() { 12707 int main() {
12667 } $ac_kw foo() { 12708 } $ac_kw foo() {
12668 ; return 0; } 12709 ; return 0; }
12669 EOF 12710 EOF
12670 if { (eval echo configure:12671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12711 if { (eval echo configure:12712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12671 rm -rf conftest* 12712 rm -rf conftest*
12672 ac_cv_c_inline=$ac_kw; break 12713 ac_cv_c_inline=$ac_kw; break
12673 else 12714 else
12674 echo "configure: failed program was:" >&5 12715 echo "configure: failed program was:" >&5
12675 cat conftest.$ac_ext >&5 12716 cat conftest.$ac_ext >&5
12706 12747
12707 if test "$__DECC" != "yes"; then 12748 if test "$__DECC" != "yes"; then
12708 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12749 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12709 # for constant arguments. Useless! 12750 # for constant arguments. Useless!
12710 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 12751 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
12711 echo "configure:12712: checking for working alloca.h" >&5 12752 echo "configure:12753: checking for working alloca.h" >&5
12712 12753
12713 cat > conftest.$ac_ext <<EOF 12754 cat > conftest.$ac_ext <<EOF
12714 #line 12715 "configure" 12755 #line 12756 "configure"
12715 #include "confdefs.h" 12756 #include "confdefs.h"
12716 #include <alloca.h> 12757 #include <alloca.h>
12717 int main() { 12758 int main() {
12718 char *p = alloca(2 * sizeof(int)); 12759 char *p = alloca(2 * sizeof(int));
12719 ; return 0; } 12760 ; return 0; }
12720 EOF 12761 EOF
12721 if { (eval echo configure:12722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12762 if { (eval echo configure:12763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12722 rm -rf conftest* 12763 rm -rf conftest*
12723 ac_cv_header_alloca_h=yes 12764 ac_cv_header_alloca_h=yes
12724 else 12765 else
12725 echo "configure: failed program was:" >&5 12766 echo "configure: failed program was:" >&5
12726 cat conftest.$ac_ext >&5 12767 cat conftest.$ac_ext >&5
12740 } 12781 }
12741 12782
12742 fi 12783 fi
12743 12784
12744 echo $ac_n "checking for alloca""... $ac_c" 1>&6 12785 echo $ac_n "checking for alloca""... $ac_c" 1>&6
12745 echo "configure:12746: checking for alloca" >&5 12786 echo "configure:12787: checking for alloca" >&5
12746 12787
12747 cat > conftest.$ac_ext <<EOF 12788 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure" 12789 #line 12790 "configure"
12749 #include "confdefs.h" 12790 #include "confdefs.h"
12750 12791
12751 #ifdef __GNUC__ 12792 #ifdef __GNUC__
12752 # define alloca __builtin_alloca 12793 # define alloca __builtin_alloca
12753 #else 12794 #else
12771 12812
12772 int main() { 12813 int main() {
12773 char *p = (char *) alloca(1); 12814 char *p = (char *) alloca(1);
12774 ; return 0; } 12815 ; return 0; }
12775 EOF 12816 EOF
12776 if { (eval echo configure:12777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12817 if { (eval echo configure:12818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12777 rm -rf conftest* 12818 rm -rf conftest*
12778 ac_cv_func_alloca_works=yes 12819 ac_cv_func_alloca_works=yes
12779 else 12820 else
12780 echo "configure: failed program was:" >&5 12821 echo "configure: failed program was:" >&5
12781 cat conftest.$ac_ext >&5 12822 cat conftest.$ac_ext >&5
12810 EOF 12851 EOF
12811 } 12852 }
12812 12853
12813 12854
12814 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 12855 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
12815 echo "configure:12816: checking whether alloca needs Cray hooks" >&5 12856 echo "configure:12857: checking whether alloca needs Cray hooks" >&5
12816 12857
12817 cat > conftest.$ac_ext <<EOF 12858 cat > conftest.$ac_ext <<EOF
12818 #line 12819 "configure" 12859 #line 12860 "configure"
12819 #include "confdefs.h" 12860 #include "confdefs.h"
12820 #if defined(CRAY) && ! defined(CRAY2) 12861 #if defined(CRAY) && ! defined(CRAY2)
12821 webecray 12862 webecray
12822 #else 12863 #else
12823 wenotbecray 12864 wenotbecray
12837 12878
12838 echo "$ac_t""$ac_cv_os_cray" 1>&6 12879 echo "$ac_t""$ac_cv_os_cray" 1>&6
12839 if test $ac_cv_os_cray = yes; then 12880 if test $ac_cv_os_cray = yes; then
12840 for ac_func in _getb67 GETB67 getb67; do 12881 for ac_func in _getb67 GETB67 getb67; do
12841 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12842 echo "configure:12843: checking for $ac_func" >&5 12883 echo "configure:12884: checking for $ac_func" >&5
12843 12884
12844 cat > conftest.$ac_ext <<EOF 12885 cat > conftest.$ac_ext <<EOF
12845 #line 12846 "configure" 12886 #line 12887 "configure"
12846 #include "confdefs.h" 12887 #include "confdefs.h"
12847 /* System header to define __stub macros and hopefully few prototypes, 12888 /* System header to define __stub macros and hopefully few prototypes,
12848 which can conflict with char $ac_func(); below. */ 12889 which can conflict with char $ac_func(); below. */
12849 #include <assert.h> 12890 #include <assert.h>
12850 /* Override any gcc2 internal prototype to avoid an error. */ 12891 /* Override any gcc2 internal prototype to avoid an error. */
12863 $ac_func(); 12904 $ac_func();
12864 #endif 12905 #endif
12865 12906
12866 ; return 0; } 12907 ; return 0; }
12867 EOF 12908 EOF
12868 if { (eval echo configure:12869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12909 if { (eval echo configure:12910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12869 rm -rf conftest* 12910 rm -rf conftest*
12870 eval "ac_cv_func_$ac_func=yes" 12911 eval "ac_cv_func_$ac_func=yes"
12871 else 12912 else
12872 echo "configure: failed program was:" >&5 12913 echo "configure: failed program was:" >&5
12873 cat conftest.$ac_ext >&5 12914 cat conftest.$ac_ext >&5
12893 12934
12894 done 12935 done
12895 fi 12936 fi
12896 12937
12897 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 12938 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12898 echo "configure:12899: checking stack direction for C alloca" >&5 12939 echo "configure:12940: checking stack direction for C alloca" >&5
12899 12940
12900 cat > conftest.$ac_ext <<EOF 12941 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure" 12942 #line 12943 "configure"
12902 #include "confdefs.h" 12943 #include "confdefs.h"
12903 find_stack_direction () 12944 find_stack_direction ()
12904 { 12945 {
12905 static char *addr = 0; 12946 static char *addr = 0;
12906 auto char dummy; 12947 auto char dummy;
12915 main () 12956 main ()
12916 { 12957 {
12917 exit (find_stack_direction() < 0); 12958 exit (find_stack_direction() < 0);
12918 } 12959 }
12919 EOF 12960 EOF
12920 if { (eval echo configure:12921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12961 if { (eval echo configure:12962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12921 then 12962 then
12922 ac_cv_c_stack_direction=1 12963 ac_cv_c_stack_direction=1
12923 else 12964 else
12924 conftest_rc="$?" 12965 conftest_rc="$?"
12925 echo "configure: failed program was:" >&5 12966 echo "configure: failed program was:" >&5
12944 echo " xemacs will be linked with \"$ALLOCA\"" 12985 echo " xemacs will be linked with \"$ALLOCA\""
12945 fi 12986 fi
12946 fi 12987 fi
12947 12988
12948 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 12989 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12949 echo "configure:12950: checking for working strcoll" >&5 12990 echo "configure:12991: checking for working strcoll" >&5
12950 12991
12951 cat > conftest.$ac_ext <<EOF 12992 cat > conftest.$ac_ext <<EOF
12952 #line 12953 "configure" 12993 #line 12994 "configure"
12953 #include "confdefs.h" 12994 #include "confdefs.h"
12954 #include <string.h> 12995 #include <string.h>
12955 main () 12996 main ()
12956 { 12997 {
12957 exit (strcoll ("abc", "def") >= 0 || 12998 exit (strcoll ("abc", "def") >= 0 ||
12958 strcoll ("ABC", "DEF") >= 0 || 12999 strcoll ("ABC", "DEF") >= 0 ||
12959 strcoll ("123", "456") >= 0); 13000 strcoll ("123", "456") >= 0);
12960 } 13001 }
12961 EOF 13002 EOF
12962 if { (eval echo configure:12963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13003 if { (eval echo configure:13004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12963 then 13004 then
12964 ac_cv_func_strcoll_works=yes 13005 ac_cv_func_strcoll_works=yes
12965 else 13006 else
12966 conftest_rc="$?" 13007 conftest_rc="$?"
12967 echo "configure: failed program was:" >&5 13008 echo "configure: failed program was:" >&5
12985 13026
12986 13027
12987 for ac_func in getpgrp 13028 for ac_func in getpgrp
12988 do 13029 do
12989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12990 echo "configure:12991: checking for $ac_func" >&5 13031 echo "configure:13032: checking for $ac_func" >&5
12991 13032
12992 cat > conftest.$ac_ext <<EOF 13033 cat > conftest.$ac_ext <<EOF
12993 #line 12994 "configure" 13034 #line 13035 "configure"
12994 #include "confdefs.h" 13035 #include "confdefs.h"
12995 /* System header to define __stub macros and hopefully few prototypes, 13036 /* System header to define __stub macros and hopefully few prototypes,
12996 which can conflict with char $ac_func(); below. */ 13037 which can conflict with char $ac_func(); below. */
12997 #include <assert.h> 13038 #include <assert.h>
12998 /* Override any gcc2 internal prototype to avoid an error. */ 13039 /* Override any gcc2 internal prototype to avoid an error. */
13011 $ac_func(); 13052 $ac_func();
13012 #endif 13053 #endif
13013 13054
13014 ; return 0; } 13055 ; return 0; }
13015 EOF 13056 EOF
13016 if { (eval echo configure:13017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13057 if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13017 rm -rf conftest* 13058 rm -rf conftest*
13018 eval "ac_cv_func_$ac_func=yes" 13059 eval "ac_cv_func_$ac_func=yes"
13019 else 13060 else
13020 echo "configure: failed program was:" >&5 13061 echo "configure: failed program was:" >&5
13021 cat conftest.$ac_ext >&5 13062 cat conftest.$ac_ext >&5
13039 echo "$ac_t""no" 1>&6 13080 echo "$ac_t""no" 1>&6
13040 fi 13081 fi
13041 done 13082 done
13042 13083
13043 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 13084 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
13044 echo "configure:13045: checking whether getpgrp takes no argument" >&5 13085 echo "configure:13086: checking whether getpgrp takes no argument" >&5
13045 13086
13046 cat > conftest.$ac_ext <<EOF 13087 cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure" 13088 #line 13089 "configure"
13048 #include "confdefs.h" 13089 #include "confdefs.h"
13049 13090
13050 /* 13091 /*
13051 * If this system has a BSD-style getpgrp(), 13092 * If this system has a BSD-style getpgrp(),
13052 * which takes a pid argument, exit unsuccessfully. 13093 * which takes a pid argument, exit unsuccessfully.
13097 exit(s>>8); 13138 exit(s>>8);
13098 } 13139 }
13099 } 13140 }
13100 13141
13101 EOF 13142 EOF
13102 if { (eval echo configure:13103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13143 if { (eval echo configure:13144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13103 then 13144 then
13104 ac_cv_func_getpgrp_void=yes 13145 ac_cv_func_getpgrp_void=yes
13105 else 13146 else
13106 conftest_rc="$?" 13147 conftest_rc="$?"
13107 echo "configure: failed program was:" >&5 13148 echo "configure: failed program was:" >&5
13124 13165
13125 fi 13166 fi
13126 13167
13127 13168
13128 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 13169 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
13129 echo "configure:13130: checking for working mmap" >&5 13170 echo "configure:13171: checking for working mmap" >&5
13130 case "$opsys" in ultrix* ) have_mmap=no ;; *) 13171 case "$opsys" in ultrix* ) have_mmap=no ;; *)
13131 cat > conftest.$ac_ext <<EOF 13172 cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure" 13173 #line 13174 "configure"
13133 #include "confdefs.h" 13174 #include "confdefs.h"
13134 #include <stdio.h> 13175 #include <stdio.h>
13135 #include <unistd.h> 13176 #include <unistd.h>
13136 #include <fcntl.h> 13177 #include <fcntl.h>
13137 #include <sys/mman.h> 13178 #include <sys/mman.h>
13160 return 0; 13201 return 0;
13161 perror ("conftest: mmap failed"); 13202 perror ("conftest: mmap failed");
13162 return 1; 13203 return 1;
13163 } 13204 }
13164 EOF 13205 EOF
13165 if { (eval echo configure:13166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13206 if { (eval echo configure:13207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13166 then 13207 then
13167 have_mmap=yes 13208 have_mmap=yes
13168 else 13209 else
13169 conftest_rc="$?" 13210 conftest_rc="$?"
13170 echo "configure: failed program was:" >&5 13211 echo "configure: failed program was:" >&5
13189 esac 13230 esac
13190 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 13231 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
13191 if test "$rel_alloc $have_mmap" = "default yes"; then 13232 if test "$rel_alloc $have_mmap" = "default yes"; then
13192 if test "$doug_lea_malloc" = "yes"; then 13233 if test "$doug_lea_malloc" = "yes"; then
13193 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 13234 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
13194 echo "configure:13195: checking for M_MMAP_THRESHOLD" >&5 13235 echo "configure:13236: checking for M_MMAP_THRESHOLD" >&5
13195 cat > conftest.$ac_ext <<EOF 13236 cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure" 13237 #line 13238 "configure"
13197 #include "confdefs.h" 13238 #include "confdefs.h"
13198 #include <malloc.h> 13239 #include <malloc.h>
13199 int main() { 13240 int main() {
13200 13241
13201 #ifndef M_MMAP_THRESHOLD 13242 #ifndef M_MMAP_THRESHOLD
13203 !@+$%^&*_)(_ - unlikely to compile... 13244 !@+$%^&*_)(_ - unlikely to compile...
13204 #endif 13245 #endif
13205 13246
13206 ; return 0; } 13247 ; return 0; }
13207 EOF 13248 EOF
13208 if { (eval echo configure:13209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13249 if { (eval echo configure:13250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13209 rm -rf conftest* 13250 rm -rf conftest*
13210 rel_alloc=no; echo "$ac_t""yes" 1>&6; 13251 rel_alloc=no; echo "$ac_t""yes" 1>&6;
13211 else 13252 else
13212 echo "configure: failed program was:" >&5 13253 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5 13254 cat conftest.$ac_ext >&5
13228 } 13269 }
13229 13270
13230 13271
13231 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 13272 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
13232 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 13273 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
13233 echo "configure:13234: checking for termios.h" >&5 13274 echo "configure:13275: checking for termios.h" >&5
13234 13275
13235 cat > conftest.$ac_ext <<EOF 13276 cat > conftest.$ac_ext <<EOF
13236 #line 13237 "configure" 13277 #line 13278 "configure"
13237 #include "confdefs.h" 13278 #include "confdefs.h"
13238 #include <termios.h> 13279 #include <termios.h>
13239 EOF 13280 EOF
13240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13241 { (eval echo configure:13242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13282 { (eval echo configure:13283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13243 if test -z "$ac_err"; then 13284 if test -z "$ac_err"; then
13244 rm -rf conftest* 13285 rm -rf conftest*
13245 eval "ac_cv_header_$ac_safe=yes" 13286 eval "ac_cv_header_$ac_safe=yes"
13246 else 13287 else
13279 13320
13280 else 13321 else
13281 echo "$ac_t""no" 1>&6 13322 echo "$ac_t""no" 1>&6
13282 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 13323 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
13283 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 13324 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
13284 echo "configure:13285: checking for termio.h" >&5 13325 echo "configure:13326: checking for termio.h" >&5
13285 13326
13286 cat > conftest.$ac_ext <<EOF 13327 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure" 13328 #line 13329 "configure"
13288 #include "confdefs.h" 13329 #include "confdefs.h"
13289 #include <termio.h> 13330 #include <termio.h>
13290 EOF 13331 EOF
13291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13292 { (eval echo configure:13293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13333 { (eval echo configure:13334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13294 if test -z "$ac_err"; then 13335 if test -z "$ac_err"; then
13295 rm -rf conftest* 13336 rm -rf conftest*
13296 eval "ac_cv_header_$ac_safe=yes" 13337 eval "ac_cv_header_$ac_safe=yes"
13297 else 13338 else
13319 fi 13360 fi
13320 13361
13321 13362
13322 13363
13323 echo $ac_n "checking for socket""... $ac_c" 1>&6 13364 echo $ac_n "checking for socket""... $ac_c" 1>&6
13324 echo "configure:13325: checking for socket" >&5 13365 echo "configure:13366: checking for socket" >&5
13325 13366
13326 cat > conftest.$ac_ext <<EOF 13367 cat > conftest.$ac_ext <<EOF
13327 #line 13328 "configure" 13368 #line 13369 "configure"
13328 #include "confdefs.h" 13369 #include "confdefs.h"
13329 /* System header to define __stub macros and hopefully few prototypes, 13370 /* System header to define __stub macros and hopefully few prototypes,
13330 which can conflict with char socket(); below. */ 13371 which can conflict with char socket(); below. */
13331 #include <assert.h> 13372 #include <assert.h>
13332 /* Override any gcc2 internal prototype to avoid an error. */ 13373 /* Override any gcc2 internal prototype to avoid an error. */
13345 socket(); 13386 socket();
13346 #endif 13387 #endif
13347 13388
13348 ; return 0; } 13389 ; return 0; }
13349 EOF 13390 EOF
13350 if { (eval echo configure:13351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13391 if { (eval echo configure:13392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13351 rm -rf conftest* 13392 rm -rf conftest*
13352 eval "ac_cv_func_socket=yes" 13393 eval "ac_cv_func_socket=yes"
13353 else 13394 else
13354 echo "configure: failed program was:" >&5 13395 echo "configure: failed program was:" >&5
13355 cat conftest.$ac_ext >&5 13396 cat conftest.$ac_ext >&5
13360 13401
13361 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 13402 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13362 echo "$ac_t""yes" 1>&6 13403 echo "$ac_t""yes" 1>&6
13363 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 13404 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
13364 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 13405 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
13365 echo "configure:13366: checking for netinet/in.h" >&5 13406 echo "configure:13407: checking for netinet/in.h" >&5
13366 13407
13367 cat > conftest.$ac_ext <<EOF 13408 cat > conftest.$ac_ext <<EOF
13368 #line 13369 "configure" 13409 #line 13410 "configure"
13369 #include "confdefs.h" 13410 #include "confdefs.h"
13370 #include <netinet/in.h> 13411 #include <netinet/in.h>
13371 EOF 13412 EOF
13372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13373 { (eval echo configure:13374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13414 { (eval echo configure:13415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13375 if test -z "$ac_err"; then 13416 if test -z "$ac_err"; then
13376 rm -rf conftest* 13417 rm -rf conftest*
13377 eval "ac_cv_header_$ac_safe=yes" 13418 eval "ac_cv_header_$ac_safe=yes"
13378 else 13419 else
13385 rm -f conftest* 13426 rm -f conftest*
13386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13387 echo "$ac_t""yes" 1>&6 13428 echo "$ac_t""yes" 1>&6
13388 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 13429 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
13389 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 13430 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
13390 echo "configure:13391: checking for arpa/inet.h" >&5 13431 echo "configure:13432: checking for arpa/inet.h" >&5
13391 13432
13392 cat > conftest.$ac_ext <<EOF 13433 cat > conftest.$ac_ext <<EOF
13393 #line 13394 "configure" 13434 #line 13435 "configure"
13394 #include "confdefs.h" 13435 #include "confdefs.h"
13395 #include <arpa/inet.h> 13436 #include <arpa/inet.h>
13396 EOF 13437 EOF
13397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13398 { (eval echo configure:13399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13439 { (eval echo configure:13440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13400 if test -z "$ac_err"; then 13441 if test -z "$ac_err"; then
13401 rm -rf conftest* 13442 rm -rf conftest*
13402 eval "ac_cv_header_$ac_safe=yes" 13443 eval "ac_cv_header_$ac_safe=yes"
13403 else 13444 else
13418 #define HAVE_SOCKETS 1 13459 #define HAVE_SOCKETS 1
13419 EOF 13460 EOF
13420 } 13461 }
13421 13462
13422 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 13463 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
13423 echo "configure:13424: checking "for sun_len member in struct sockaddr_un"" >&5 13464 echo "configure:13465: checking "for sun_len member in struct sockaddr_un"" >&5
13424 cat > conftest.$ac_ext <<EOF 13465 cat > conftest.$ac_ext <<EOF
13425 #line 13426 "configure" 13466 #line 13467 "configure"
13426 #include "confdefs.h" 13467 #include "confdefs.h"
13427 13468
13428 #include <sys/types.h> 13469 #include <sys/types.h>
13429 #include <sys/socket.h> 13470 #include <sys/socket.h>
13430 #include <sys/un.h> 13471 #include <sys/un.h>
13431 13472
13432 int main() { 13473 int main() {
13433 static struct sockaddr_un x; x.sun_len = 1; 13474 static struct sockaddr_un x; x.sun_len = 1;
13434 ; return 0; } 13475 ; return 0; }
13435 EOF 13476 EOF
13436 if { (eval echo configure:13437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13477 if { (eval echo configure:13478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13437 rm -rf conftest* 13478 rm -rf conftest*
13438 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13479 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13439 Defining HAVE_SOCKADDR_SUN_LEN 13480 Defining HAVE_SOCKADDR_SUN_LEN
13440 EOF 13481 EOF
13441 cat >> confdefs.h <<\EOF 13482 cat >> confdefs.h <<\EOF
13449 rm -rf conftest* 13490 rm -rf conftest*
13450 echo "$ac_t""no" 1>&6 13491 echo "$ac_t""no" 1>&6
13451 fi 13492 fi
13452 rm -f conftest* 13493 rm -f conftest*
13453 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 13494 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
13454 echo "configure:13455: checking "for ip_mreq struct in netinet/in.h"" >&5 13495 echo "configure:13496: checking "for ip_mreq struct in netinet/in.h"" >&5
13455 cat > conftest.$ac_ext <<EOF 13496 cat > conftest.$ac_ext <<EOF
13456 #line 13457 "configure" 13497 #line 13498 "configure"
13457 #include "confdefs.h" 13498 #include "confdefs.h"
13458 13499
13459 #include <sys/types.h> 13500 #include <sys/types.h>
13460 #include <netinet/in.h> 13501 #include <netinet/in.h>
13461 13502
13462 int main() { 13503 int main() {
13463 static struct ip_mreq x; 13504 static struct ip_mreq x;
13464 ; return 0; } 13505 ; return 0; }
13465 EOF 13506 EOF
13466 if { (eval echo configure:13467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13507 if { (eval echo configure:13508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13467 rm -rf conftest* 13508 rm -rf conftest*
13468 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13509 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13469 Defining HAVE_MULTICAST 13510 Defining HAVE_MULTICAST
13470 EOF 13511 EOF
13471 cat >> confdefs.h <<\EOF 13512 cat >> confdefs.h <<\EOF
13492 echo "$ac_t""no" 1>&6 13533 echo "$ac_t""no" 1>&6
13493 fi 13534 fi
13494 13535
13495 13536
13496 echo $ac_n "checking for msgget""... $ac_c" 1>&6 13537 echo $ac_n "checking for msgget""... $ac_c" 1>&6
13497 echo "configure:13498: checking for msgget" >&5 13538 echo "configure:13539: checking for msgget" >&5
13498 13539
13499 cat > conftest.$ac_ext <<EOF 13540 cat > conftest.$ac_ext <<EOF
13500 #line 13501 "configure" 13541 #line 13542 "configure"
13501 #include "confdefs.h" 13542 #include "confdefs.h"
13502 /* System header to define __stub macros and hopefully few prototypes, 13543 /* System header to define __stub macros and hopefully few prototypes,
13503 which can conflict with char msgget(); below. */ 13544 which can conflict with char msgget(); below. */
13504 #include <assert.h> 13545 #include <assert.h>
13505 /* Override any gcc2 internal prototype to avoid an error. */ 13546 /* Override any gcc2 internal prototype to avoid an error. */
13518 msgget(); 13559 msgget();
13519 #endif 13560 #endif
13520 13561
13521 ; return 0; } 13562 ; return 0; }
13522 EOF 13563 EOF
13523 if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13564 if { (eval echo configure:13565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13524 rm -rf conftest* 13565 rm -rf conftest*
13525 eval "ac_cv_func_msgget=yes" 13566 eval "ac_cv_func_msgget=yes"
13526 else 13567 else
13527 echo "configure: failed program was:" >&5 13568 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5 13569 cat conftest.$ac_ext >&5
13533 13574
13534 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 13575 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
13535 echo "$ac_t""yes" 1>&6 13576 echo "$ac_t""yes" 1>&6
13536 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 13577 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
13537 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 13578 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
13538 echo "configure:13539: checking for sys/ipc.h" >&5 13579 echo "configure:13580: checking for sys/ipc.h" >&5
13539 13580
13540 cat > conftest.$ac_ext <<EOF 13581 cat > conftest.$ac_ext <<EOF
13541 #line 13542 "configure" 13582 #line 13583 "configure"
13542 #include "confdefs.h" 13583 #include "confdefs.h"
13543 #include <sys/ipc.h> 13584 #include <sys/ipc.h>
13544 EOF 13585 EOF
13545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13546 { (eval echo configure:13547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13587 { (eval echo configure:13588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13548 if test -z "$ac_err"; then 13589 if test -z "$ac_err"; then
13549 rm -rf conftest* 13590 rm -rf conftest*
13550 eval "ac_cv_header_$ac_safe=yes" 13591 eval "ac_cv_header_$ac_safe=yes"
13551 else 13592 else
13558 rm -f conftest* 13599 rm -f conftest*
13559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13560 echo "$ac_t""yes" 1>&6 13601 echo "$ac_t""yes" 1>&6
13561 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 13602 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
13562 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 13603 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
13563 echo "configure:13564: checking for sys/msg.h" >&5 13604 echo "configure:13605: checking for sys/msg.h" >&5
13564 13605
13565 cat > conftest.$ac_ext <<EOF 13606 cat > conftest.$ac_ext <<EOF
13566 #line 13567 "configure" 13607 #line 13608 "configure"
13567 #include "confdefs.h" 13608 #include "confdefs.h"
13568 #include <sys/msg.h> 13609 #include <sys/msg.h>
13569 EOF 13610 EOF
13570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13571 { (eval echo configure:13572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13612 { (eval echo configure:13613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13573 if test -z "$ac_err"; then 13614 if test -z "$ac_err"; then
13574 rm -rf conftest* 13615 rm -rf conftest*
13575 eval "ac_cv_header_$ac_safe=yes" 13616 eval "ac_cv_header_$ac_safe=yes"
13576 else 13617 else
13604 fi 13645 fi
13605 13646
13606 13647
13607 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 13648 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
13608 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 13649 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
13609 echo "configure:13610: checking for dirent.h" >&5 13650 echo "configure:13651: checking for dirent.h" >&5
13610 13651
13611 cat > conftest.$ac_ext <<EOF 13652 cat > conftest.$ac_ext <<EOF
13612 #line 13613 "configure" 13653 #line 13654 "configure"
13613 #include "confdefs.h" 13654 #include "confdefs.h"
13614 #include <dirent.h> 13655 #include <dirent.h>
13615 EOF 13656 EOF
13616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13617 { (eval echo configure:13618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13658 { (eval echo configure:13659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13619 if test -z "$ac_err"; then 13660 if test -z "$ac_err"; then
13620 rm -rf conftest* 13661 rm -rf conftest*
13621 eval "ac_cv_header_$ac_safe=yes" 13662 eval "ac_cv_header_$ac_safe=yes"
13622 else 13663 else
13639 13680
13640 else 13681 else
13641 echo "$ac_t""no" 1>&6 13682 echo "$ac_t""no" 1>&6
13642 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 13683 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13643 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 13684 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13644 echo "configure:13645: checking for sys/dir.h" >&5 13685 echo "configure:13686: checking for sys/dir.h" >&5
13645 13686
13646 cat > conftest.$ac_ext <<EOF 13687 cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure" 13688 #line 13689 "configure"
13648 #include "confdefs.h" 13689 #include "confdefs.h"
13649 #include <sys/dir.h> 13690 #include <sys/dir.h>
13650 EOF
13651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13652 { (eval echo configure:13653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13654 if test -z "$ac_err"; then
13655 rm -rf conftest*
13656 eval "ac_cv_header_$ac_safe=yes"
13657 else
13658 echo "$ac_err" >&5
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 rm -rf conftest*
13662 eval "ac_cv_header_$ac_safe=no"
13663 fi
13664 rm -f conftest*
13665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13666 echo "$ac_t""yes" 1>&6
13667 :
13668 else
13669 echo "$ac_t""no" 1>&6
13670 { test "$extra_verbose" = "yes" && cat << \EOF
13671 Defining NONSYSTEM_DIR_LIBRARY
13672 EOF
13673 cat >> confdefs.h <<\EOF
13674 #define NONSYSTEM_DIR_LIBRARY 1
13675 EOF
13676 }
13677
13678 fi
13679
13680 fi
13681
13682
13683 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13684 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13685 echo "configure:13686: checking for nlist.h" >&5
13686
13687 cat > conftest.$ac_ext <<EOF
13688 #line 13689 "configure"
13689 #include "confdefs.h"
13690 #include <nlist.h>
13691 EOF 13691 EOF
13692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13693 { (eval echo configure:13694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13693 { (eval echo configure:13694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13695 if test -z "$ac_err"; then 13695 if test -z "$ac_err"; then
13703 eval "ac_cv_header_$ac_safe=no" 13703 eval "ac_cv_header_$ac_safe=no"
13704 fi 13704 fi
13705 rm -f conftest* 13705 rm -f conftest*
13706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13706 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13707 echo "$ac_t""yes" 1>&6 13707 echo "$ac_t""yes" 1>&6
13708 :
13709 else
13710 echo "$ac_t""no" 1>&6
13711 { test "$extra_verbose" = "yes" && cat << \EOF
13712 Defining NONSYSTEM_DIR_LIBRARY
13713 EOF
13714 cat >> confdefs.h <<\EOF
13715 #define NONSYSTEM_DIR_LIBRARY 1
13716 EOF
13717 }
13718
13719 fi
13720
13721 fi
13722
13723
13724 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13725 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13726 echo "configure:13727: checking for nlist.h" >&5
13727
13728 cat > conftest.$ac_ext <<EOF
13729 #line 13730 "configure"
13730 #include "confdefs.h"
13731 #include <nlist.h>
13732 EOF
13733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13734 { (eval echo configure:13735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13736 if test -z "$ac_err"; then
13737 rm -rf conftest*
13738 eval "ac_cv_header_$ac_safe=yes"
13739 else
13740 echo "$ac_err" >&5
13741 echo "configure: failed program was:" >&5
13742 cat conftest.$ac_ext >&5
13743 rm -rf conftest*
13744 eval "ac_cv_header_$ac_safe=no"
13745 fi
13746 rm -f conftest*
13747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13708 { test "$extra_verbose" = "yes" && cat << \EOF 13749 { test "$extra_verbose" = "yes" && cat << \EOF
13709 Defining NLIST_STRUCT 13750 Defining NLIST_STRUCT
13710 EOF 13751 EOF
13711 cat >> confdefs.h <<\EOF 13752 cat >> confdefs.h <<\EOF
13712 #define NLIST_STRUCT 1 13753 #define NLIST_STRUCT 1
13718 fi 13759 fi
13719 13760
13720 13761
13721 13762
13722 echo "checking "for sound support"" 1>&6 13763 echo "checking "for sound support"" 1>&6
13723 echo "configure:13724: checking "for sound support"" >&5 13764 echo "configure:13765: checking "for sound support"" >&5
13724 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 13765 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13725 13766
13726 if test "$with_native_sound" != "no"; then 13767 if test "$with_native_sound" != "no"; then
13727 if test -n "$native_sound_lib"; then 13768 if test -n "$native_sound_lib"; then
13728 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 13769 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13729 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 13770 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13730 echo "configure:13731: checking for multimedia/audio_device.h" >&5 13771 echo "configure:13772: checking for multimedia/audio_device.h" >&5
13731 13772
13732 cat > conftest.$ac_ext <<EOF 13773 cat > conftest.$ac_ext <<EOF
13733 #line 13734 "configure" 13774 #line 13775 "configure"
13734 #include "confdefs.h" 13775 #include "confdefs.h"
13735 #include <multimedia/audio_device.h> 13776 #include <multimedia/audio_device.h>
13736 EOF 13777 EOF
13737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13738 { (eval echo configure:13739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13779 { (eval echo configure:13780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13740 if test -z "$ac_err"; then 13781 if test -z "$ac_err"; then
13741 rm -rf conftest* 13782 rm -rf conftest*
13742 eval "ac_cv_header_$ac_safe=yes" 13783 eval "ac_cv_header_$ac_safe=yes"
13743 else 13784 else
13781 case "$canonical" in 13822 case "$canonical" in
13782 *-sgi-* ) 13823 *-sgi-* )
13783 if test -z "$native_sound_lib"; then 13824 if test -z "$native_sound_lib"; then
13784 13825
13785 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 13826 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13786 echo "configure:13787: checking for ALopenport in -laudio" >&5 13827 echo "configure:13828: checking for ALopenport in -laudio" >&5
13787 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 13828 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13788 13829
13789 xe_check_libs=" -laudio " 13830 xe_check_libs=" -laudio "
13790 cat > conftest.$ac_ext <<EOF 13831 cat > conftest.$ac_ext <<EOF
13791 #line 13792 "configure" 13832 #line 13833 "configure"
13792 #include "confdefs.h" 13833 #include "confdefs.h"
13793 /* Override any gcc2 internal prototype to avoid an error. */ 13834 /* Override any gcc2 internal prototype to avoid an error. */
13794 /* We use char because int might match the return type of a gcc2 13835 /* We use char because int might match the return type of a gcc2
13795 builtin and then its argument prototype would still apply. */ 13836 builtin and then its argument prototype would still apply. */
13796 char ALopenport(); 13837 char ALopenport();
13797 13838
13798 int main() { 13839 int main() {
13799 ALopenport() 13840 ALopenport()
13800 ; return 0; } 13841 ; return 0; }
13801 EOF 13842 EOF
13802 if { (eval echo configure:13803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13843 if { (eval echo configure:13844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13803 rm -rf conftest* 13844 rm -rf conftest*
13804 eval "ac_cv_lib_$ac_lib_var=yes" 13845 eval "ac_cv_lib_$ac_lib_var=yes"
13805 else 13846 else
13806 echo "configure: failed program was:" >&5 13847 echo "configure: failed program was:" >&5
13807 cat conftest.$ac_ext >&5 13848 cat conftest.$ac_ext >&5
13828 fi ;; 13869 fi ;;
13829 hppa*-hp-hpux* ) 13870 hppa*-hp-hpux* )
13830 if test -z "$native_sound_lib"; then 13871 if test -z "$native_sound_lib"; then
13831 13872
13832 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 13873 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13833 echo "configure:13834: checking for AOpenAudio in -lAlib" >&5 13874 echo "configure:13875: checking for AOpenAudio in -lAlib" >&5
13834 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 13875 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13835 13876
13836 xe_check_libs=" -lAlib " 13877 xe_check_libs=" -lAlib "
13837 cat > conftest.$ac_ext <<EOF 13878 cat > conftest.$ac_ext <<EOF
13838 #line 13839 "configure" 13879 #line 13880 "configure"
13839 #include "confdefs.h" 13880 #include "confdefs.h"
13840 /* Override any gcc2 internal prototype to avoid an error. */ 13881 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2 13882 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */ 13883 builtin and then its argument prototype would still apply. */
13843 char AOpenAudio(); 13884 char AOpenAudio();
13844 13885
13845 int main() { 13886 int main() {
13846 AOpenAudio() 13887 AOpenAudio()
13847 ; return 0; } 13888 ; return 0; }
13848 EOF 13889 EOF
13849 if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13890 if { (eval echo configure:13891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13850 rm -rf conftest* 13891 rm -rf conftest*
13851 eval "ac_cv_lib_$ac_lib_var=yes" 13892 eval "ac_cv_lib_$ac_lib_var=yes"
13852 else 13893 else
13853 echo "configure: failed program was:" >&5 13894 echo "configure: failed program was:" >&5
13854 cat conftest.$ac_ext >&5 13895 cat conftest.$ac_ext >&5
13892 13933
13893 if test -z "$sound_found"; then 13934 if test -z "$sound_found"; then
13894 for dir in "machine" "sys" "linux"; do 13935 for dir in "machine" "sys" "linux"; do
13895 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 13936 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13896 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 13937 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13897 echo "configure:13898: checking for ${dir}/soundcard.h" >&5 13938 echo "configure:13939: checking for ${dir}/soundcard.h" >&5
13898 13939
13899 cat > conftest.$ac_ext <<EOF 13940 cat > conftest.$ac_ext <<EOF
13900 #line 13901 "configure" 13941 #line 13942 "configure"
13901 #include "confdefs.h" 13942 #include "confdefs.h"
13902 #include <${dir}/soundcard.h> 13943 #include <${dir}/soundcard.h>
13903 EOF 13944 EOF
13904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13905 { (eval echo configure:13906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13946 { (eval echo configure:13947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13907 if test -z "$ac_err"; then 13948 if test -z "$ac_err"; then
13908 rm -rf conftest* 13949 rm -rf conftest*
13909 eval "ac_cv_header_$ac_safe=yes" 13950 eval "ac_cv_header_$ac_safe=yes"
13910 else 13951 else
13954 fi 13995 fi
13955 13996
13956 if test "$with_nas_sound" != "no"; then 13997 if test "$with_nas_sound" != "no"; then
13957 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 13998 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13958 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 13999 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13959 echo "configure:13960: checking for audio/audiolib.h" >&5 14000 echo "configure:14001: checking for audio/audiolib.h" >&5
13960 14001
13961 cat > conftest.$ac_ext <<EOF 14002 cat > conftest.$ac_ext <<EOF
13962 #line 13963 "configure" 14003 #line 14004 "configure"
13963 #include "confdefs.h" 14004 #include "confdefs.h"
13964 #include <audio/audiolib.h> 14005 #include <audio/audiolib.h>
13965 EOF 14006 EOF
13966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13967 { (eval echo configure:13968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14008 { (eval echo configure:14009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13969 if test -z "$ac_err"; then 14010 if test -z "$ac_err"; then
13970 rm -rf conftest* 14011 rm -rf conftest*
13971 eval "ac_cv_header_$ac_safe=yes" 14012 eval "ac_cv_header_$ac_safe=yes"
13972 else 14013 else
13980 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13981 echo "$ac_t""yes" 1>&6 14022 echo "$ac_t""yes" 1>&6
13982 14023
13983 14024
13984 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 14025 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13985 echo "configure:13986: checking for AuOpenServer in -laudio" >&5 14026 echo "configure:14027: checking for AuOpenServer in -laudio" >&5
13986 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 14027 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13987 14028
13988 xe_check_libs=" -laudio " 14029 xe_check_libs=" -laudio "
13989 cat > conftest.$ac_ext <<EOF 14030 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure" 14031 #line 14032 "configure"
13991 #include "confdefs.h" 14032 #include "confdefs.h"
13992 /* Override any gcc2 internal prototype to avoid an error. */ 14033 /* Override any gcc2 internal prototype to avoid an error. */
13993 /* We use char because int might match the return type of a gcc2 14034 /* We use char because int might match the return type of a gcc2
13994 builtin and then its argument prototype would still apply. */ 14035 builtin and then its argument prototype would still apply. */
13995 char AuOpenServer(); 14036 char AuOpenServer();
13996 14037
13997 int main() { 14038 int main() {
13998 AuOpenServer() 14039 AuOpenServer()
13999 ; return 0; } 14040 ; return 0; }
14000 EOF 14041 EOF
14001 if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14042 if { (eval echo configure:14043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14002 rm -rf conftest* 14043 rm -rf conftest*
14003 eval "ac_cv_lib_$ac_lib_var=yes" 14044 eval "ac_cv_lib_$ac_lib_var=yes"
14004 else 14045 else
14005 echo "configure: failed program was:" >&5 14046 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5 14047 cat conftest.$ac_ext >&5
14035 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 14076 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
14036 echo " xemacs will be linked with \"nas.o\"" 14077 echo " xemacs will be linked with \"nas.o\""
14037 fi 14078 fi
14038 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 14079 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
14039 cat > conftest.$ac_ext <<EOF 14080 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure" 14081 #line 14082 "configure"
14041 #include "confdefs.h" 14082 #include "confdefs.h"
14042 #include <audio/Xtutil.h> 14083 #include <audio/Xtutil.h>
14043 EOF 14084 EOF
14044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14045 egrep "AuXtErrorJump" >/dev/null 2>&1; then 14086 egrep "AuXtErrorJump" >/dev/null 2>&1; then
14066 14107
14067 if test "$with_esd_sound" != "no"; then 14108 if test "$with_esd_sound" != "no"; then
14068 # Extract the first word of "esd-config", so it can be a program name with args. 14109 # Extract the first word of "esd-config", so it can be a program name with args.
14069 set dummy esd-config; ac_word=$2 14110 set dummy esd-config; ac_word=$2
14070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 14111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14071 echo "configure:14072: checking for $ac_word" >&5 14112 echo "configure:14113: checking for $ac_word" >&5
14072 14113
14073 if test -n "$have_esd_config"; then 14114 if test -n "$have_esd_config"; then
14074 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 14115 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
14075 else 14116 else
14076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 14117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14095 if test "$have_esd_config" = "yes"; then 14136 if test "$have_esd_config" = "yes"; then
14096 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 14137 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
14097 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi 14138 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
14098 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 14139 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
14099 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 14140 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
14100 echo "configure:14101: checking for esd_play_stream" >&5 14141 echo "configure:14142: checking for esd_play_stream" >&5
14101 14142
14102 cat > conftest.$ac_ext <<EOF 14143 cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure" 14144 #line 14145 "configure"
14104 #include "confdefs.h" 14145 #include "confdefs.h"
14105 /* System header to define __stub macros and hopefully few prototypes, 14146 /* System header to define __stub macros and hopefully few prototypes,
14106 which can conflict with char esd_play_stream(); below. */ 14147 which can conflict with char esd_play_stream(); below. */
14107 #include <assert.h> 14148 #include <assert.h>
14108 /* Override any gcc2 internal prototype to avoid an error. */ 14149 /* Override any gcc2 internal prototype to avoid an error. */
14121 esd_play_stream(); 14162 esd_play_stream();
14122 #endif 14163 #endif
14123 14164
14124 ; return 0; } 14165 ; return 0; }
14125 EOF 14166 EOF
14126 if { (eval echo configure:14127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14167 if { (eval echo configure:14168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14127 rm -rf conftest* 14168 rm -rf conftest*
14128 eval "ac_cv_func_esd_play_stream=yes" 14169 eval "ac_cv_func_esd_play_stream=yes"
14129 else 14170 else
14130 echo "configure: failed program was:" >&5 14171 echo "configure: failed program was:" >&5
14131 cat conftest.$ac_ext >&5 14172 cat conftest.$ac_ext >&5
14172 14213
14173 test -z "$with_tty" && with_tty=yes 14214 test -z "$with_tty" && with_tty=yes
14174 14215
14175 if test "$with_tty" = "yes" ; then 14216 if test "$with_tty" = "yes" ; then
14176 echo "checking for TTY-related features" 1>&6 14217 echo "checking for TTY-related features" 1>&6
14177 echo "configure:14178: checking for TTY-related features" >&5 14218 echo "configure:14219: checking for TTY-related features" >&5
14178 { test "$extra_verbose" = "yes" && cat << \EOF 14219 { test "$extra_verbose" = "yes" && cat << \EOF
14179 Defining HAVE_TTY 14220 Defining HAVE_TTY
14180 EOF 14221 EOF
14181 cat >> confdefs.h <<\EOF 14222 cat >> confdefs.h <<\EOF
14182 #define HAVE_TTY 1 14223 #define HAVE_TTY 1
14185 14226
14186 14227
14187 if test -z "$with_ncurses"; then 14228 if test -z "$with_ncurses"; then
14188 14229
14189 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 14230 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
14190 echo "configure:14191: checking for tgetent in -lncurses" >&5 14231 echo "configure:14232: checking for tgetent in -lncurses" >&5
14191 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 14232 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
14192 14233
14193 xe_check_libs=" -lncurses " 14234 xe_check_libs=" -lncurses "
14194 cat > conftest.$ac_ext <<EOF 14235 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure" 14236 #line 14237 "configure"
14196 #include "confdefs.h" 14237 #include "confdefs.h"
14197 /* Override any gcc2 internal prototype to avoid an error. */ 14238 /* Override any gcc2 internal prototype to avoid an error. */
14198 /* We use char because int might match the return type of a gcc2 14239 /* We use char because int might match the return type of a gcc2
14199 builtin and then its argument prototype would still apply. */ 14240 builtin and then its argument prototype would still apply. */
14200 char tgetent(); 14241 char tgetent();
14201 14242
14202 int main() { 14243 int main() {
14203 tgetent() 14244 tgetent()
14204 ; return 0; } 14245 ; return 0; }
14205 EOF 14246 EOF
14206 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14247 if { (eval echo configure:14248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14207 rm -rf conftest* 14248 rm -rf conftest*
14208 eval "ac_cv_lib_$ac_lib_var=yes" 14249 eval "ac_cv_lib_$ac_lib_var=yes"
14209 else 14250 else
14210 echo "configure: failed program was:" >&5 14251 echo "configure: failed program was:" >&5
14211 cat conftest.$ac_ext >&5 14252 cat conftest.$ac_ext >&5
14234 EOF 14275 EOF
14235 } 14276 }
14236 14277
14237 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14278 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14238 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14279 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14239 echo "configure:14240: checking for ncurses/curses.h" >&5 14280 echo "configure:14281: checking for ncurses/curses.h" >&5
14240 14281
14241 cat > conftest.$ac_ext <<EOF 14282 cat > conftest.$ac_ext <<EOF
14242 #line 14243 "configure" 14283 #line 14284 "configure"
14243 #include "confdefs.h" 14284 #include "confdefs.h"
14244 #include <ncurses/curses.h> 14285 #include <ncurses/curses.h>
14245 EOF 14286 EOF
14246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14247 { (eval echo configure:14248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14288 { (eval echo configure:14289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14249 if test -z "$ac_err"; then 14290 if test -z "$ac_err"; then
14250 rm -rf conftest* 14291 rm -rf conftest*
14251 eval "ac_cv_header_$ac_safe=yes" 14292 eval "ac_cv_header_$ac_safe=yes"
14252 else 14293 else
14264 echo "$ac_t""no" 1>&6 14305 echo "$ac_t""no" 1>&6
14265 fi 14306 fi
14266 14307
14267 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 14308 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
14268 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 14309 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
14269 echo "configure:14270: checking for ncurses/term.h" >&5 14310 echo "configure:14311: checking for ncurses/term.h" >&5
14270 14311
14271 cat > conftest.$ac_ext <<EOF 14312 cat > conftest.$ac_ext <<EOF
14272 #line 14273 "configure" 14313 #line 14314 "configure"
14273 #include "confdefs.h" 14314 #include "confdefs.h"
14274 #include <ncurses/term.h> 14315 #include <ncurses/term.h>
14275 EOF 14316 EOF
14276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14277 { (eval echo configure:14278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14318 { (eval echo configure:14319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14279 if test -z "$ac_err"; then 14320 if test -z "$ac_err"; then
14280 rm -rf conftest* 14321 rm -rf conftest*
14281 eval "ac_cv_header_$ac_safe=yes" 14322 eval "ac_cv_header_$ac_safe=yes"
14282 else 14323 else
14302 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 14343 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
14303 save_c_switch_site="$c_switch_site" 14344 save_c_switch_site="$c_switch_site"
14304 c_switch_site="$c_switch_site -I/usr/include/ncurses" 14345 c_switch_site="$c_switch_site -I/usr/include/ncurses"
14305 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14346 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14306 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14347 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14307 echo "configure:14308: checking for ncurses/curses.h" >&5 14348 echo "configure:14349: checking for ncurses/curses.h" >&5
14308 14349
14309 cat > conftest.$ac_ext <<EOF 14350 cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure" 14351 #line 14352 "configure"
14311 #include "confdefs.h" 14352 #include "confdefs.h"
14312 #include <ncurses/curses.h> 14353 #include <ncurses/curses.h>
14313 EOF 14354 EOF
14314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14315 { (eval echo configure:14316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14356 { (eval echo configure:14357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14317 if test -z "$ac_err"; then 14358 if test -z "$ac_err"; then
14318 rm -rf conftest* 14359 rm -rf conftest*
14319 eval "ac_cv_header_$ac_safe=yes" 14360 eval "ac_cv_header_$ac_safe=yes"
14320 else 14361 else
14345 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14386 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14346 else 14387 else
14347 for lib in curses termlib termcap; do 14388 for lib in curses termlib termcap; do
14348 14389
14349 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 14390 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
14350 echo "configure:14351: checking for tgetent in -l$lib" >&5 14391 echo "configure:14392: checking for tgetent in -l$lib" >&5
14351 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 14392 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
14352 14393
14353 xe_check_libs=" -l$lib " 14394 xe_check_libs=" -l$lib "
14354 cat > conftest.$ac_ext <<EOF 14395 cat > conftest.$ac_ext <<EOF
14355 #line 14356 "configure" 14396 #line 14397 "configure"
14356 #include "confdefs.h" 14397 #include "confdefs.h"
14357 /* Override any gcc2 internal prototype to avoid an error. */ 14398 /* Override any gcc2 internal prototype to avoid an error. */
14358 /* We use char because int might match the return type of a gcc2 14399 /* We use char because int might match the return type of a gcc2
14359 builtin and then its argument prototype would still apply. */ 14400 builtin and then its argument prototype would still apply. */
14360 char tgetent(); 14401 char tgetent();
14361 14402
14362 int main() { 14403 int main() {
14363 tgetent() 14404 tgetent()
14364 ; return 0; } 14405 ; return 0; }
14365 EOF 14406 EOF
14366 if { (eval echo configure:14367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14367 rm -rf conftest* 14408 rm -rf conftest*
14368 eval "ac_cv_lib_$ac_lib_var=yes" 14409 eval "ac_cv_lib_$ac_lib_var=yes"
14369 else 14410 else
14370 echo "configure: failed program was:" >&5 14411 echo "configure: failed program was:" >&5
14371 cat conftest.$ac_ext >&5 14412 cat conftest.$ac_ext >&5
14392 if test -n "$libs_termcap"; then 14433 if test -n "$libs_termcap"; then
14393 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14434 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14394 else 14435 else
14395 14436
14396 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 14437 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
14397 echo "configure:14398: checking for tgetent in -lcurses" >&5 14438 echo "configure:14439: checking for tgetent in -lcurses" >&5
14398 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 14439 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
14399 14440
14400 xe_check_libs=" -lcurses " 14441 xe_check_libs=" -lcurses "
14401 cat > conftest.$ac_ext <<EOF 14442 cat > conftest.$ac_ext <<EOF
14402 #line 14403 "configure" 14443 #line 14444 "configure"
14403 #include "confdefs.h" 14444 #include "confdefs.h"
14404 /* Override any gcc2 internal prototype to avoid an error. */ 14445 /* Override any gcc2 internal prototype to avoid an error. */
14405 /* We use char because int might match the return type of a gcc2 14446 /* We use char because int might match the return type of a gcc2
14406 builtin and then its argument prototype would still apply. */ 14447 builtin and then its argument prototype would still apply. */
14407 char tgetent(); 14448 char tgetent();
14408 14449
14409 int main() { 14450 int main() {
14410 tgetent() 14451 tgetent()
14411 ; return 0; } 14452 ; return 0; }
14412 EOF 14453 EOF
14413 if { (eval echo configure:14414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14454 if { (eval echo configure:14455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14414 rm -rf conftest* 14455 rm -rf conftest*
14415 eval "ac_cv_lib_$ac_lib_var=yes" 14456 eval "ac_cv_lib_$ac_lib_var=yes"
14416 else 14457 else
14417 echo "configure: failed program was:" >&5 14458 echo "configure: failed program was:" >&5
14418 cat conftest.$ac_ext >&5 14459 cat conftest.$ac_ext >&5
14426 echo "$ac_t""yes" 1>&6 14467 echo "$ac_t""yes" 1>&6
14427 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 14468 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
14428 else 14469 else
14429 echo "$ac_t""no" 1>&6 14470 echo "$ac_t""no" 1>&6
14430 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 14471 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
14431 echo "configure:14432: checking for tgetent in -ltermcap" >&5 14472 echo "configure:14473: checking for tgetent in -ltermcap" >&5
14432 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 14473 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
14433 14474
14434 xe_check_libs=" -ltermcap " 14475 xe_check_libs=" -ltermcap "
14435 cat > conftest.$ac_ext <<EOF 14476 cat > conftest.$ac_ext <<EOF
14436 #line 14437 "configure" 14477 #line 14478 "configure"
14437 #include "confdefs.h" 14478 #include "confdefs.h"
14438 /* Override any gcc2 internal prototype to avoid an error. */ 14479 /* Override any gcc2 internal prototype to avoid an error. */
14439 /* We use char because int might match the return type of a gcc2 14480 /* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */ 14481 builtin and then its argument prototype would still apply. */
14441 char tgetent(); 14482 char tgetent();
14442 14483
14443 int main() { 14484 int main() {
14444 tgetent() 14485 tgetent()
14445 ; return 0; } 14486 ; return 0; }
14446 EOF 14487 EOF
14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14488 if { (eval echo configure:14489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14448 rm -rf conftest* 14489 rm -rf conftest*
14449 eval "ac_cv_lib_$ac_lib_var=yes" 14490 eval "ac_cv_lib_$ac_lib_var=yes"
14450 else 14491 else
14451 echo "configure: failed program was:" >&5 14492 echo "configure: failed program was:" >&5
14452 cat conftest.$ac_ext >&5 14493 cat conftest.$ac_ext >&5
14490 } 14531 }
14491 14532
14492 14533
14493 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 14534 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
14494 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 14535 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
14495 echo "configure:14496: checking for gpm.h" >&5 14536 echo "configure:14537: checking for gpm.h" >&5
14496 14537
14497 cat > conftest.$ac_ext <<EOF 14538 cat > conftest.$ac_ext <<EOF
14498 #line 14499 "configure" 14539 #line 14540 "configure"
14499 #include "confdefs.h" 14540 #include "confdefs.h"
14500 #include <gpm.h> 14541 #include <gpm.h>
14501 EOF 14542 EOF
14502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14503 { (eval echo configure:14504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14544 { (eval echo configure:14545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14505 if test -z "$ac_err"; then 14546 if test -z "$ac_err"; then
14506 rm -rf conftest* 14547 rm -rf conftest*
14507 eval "ac_cv_header_$ac_safe=yes" 14548 eval "ac_cv_header_$ac_safe=yes"
14508 else 14549 else
14521 with_gpm=no 14562 with_gpm=no
14522 fi 14563 fi
14523 } 14564 }
14524 test -z "$with_gpm" && { 14565 test -z "$with_gpm" && {
14525 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 14566 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
14526 echo "configure:14527: checking for Gpm_Open in -lgpm" >&5 14567 echo "configure:14568: checking for Gpm_Open in -lgpm" >&5
14527 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 14568 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
14528 14569
14529 xe_check_libs=" -lgpm " 14570 xe_check_libs=" -lgpm "
14530 cat > conftest.$ac_ext <<EOF 14571 cat > conftest.$ac_ext <<EOF
14531 #line 14532 "configure" 14572 #line 14573 "configure"
14532 #include "confdefs.h" 14573 #include "confdefs.h"
14533 /* Override any gcc2 internal prototype to avoid an error. */ 14574 /* Override any gcc2 internal prototype to avoid an error. */
14534 /* We use char because int might match the return type of a gcc2 14575 /* We use char because int might match the return type of a gcc2
14535 builtin and then its argument prototype would still apply. */ 14576 builtin and then its argument prototype would still apply. */
14536 char Gpm_Open(); 14577 char Gpm_Open();
14537 14578
14538 int main() { 14579 int main() {
14539 Gpm_Open() 14580 Gpm_Open()
14540 ; return 0; } 14581 ; return 0; }
14541 EOF 14582 EOF
14542 if { (eval echo configure:14543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14583 if { (eval echo configure:14584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14543 rm -rf conftest* 14584 rm -rf conftest*
14544 eval "ac_cv_lib_$ac_lib_var=yes" 14585 eval "ac_cv_lib_$ac_lib_var=yes"
14545 else 14586 else
14546 echo "configure: failed program was:" >&5 14587 echo "configure: failed program was:" >&5
14547 cat conftest.$ac_ext >&5 14588 cat conftest.$ac_ext >&5
14580 done 14621 done
14581 fi 14622 fi
14582 14623
14583 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 14624 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14584 != "no no no" && echo "checking for database support" 1>&6 14625 != "no no no" && echo "checking for database support" 1>&6
14585 echo "configure:14586: checking for database support" >&5 14626 echo "configure:14627: checking for database support" >&5
14586 14627
14587 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 14628 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
14588 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 14629 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
14589 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 14630 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
14590 echo "configure:14591: checking for ndbm.h" >&5 14631 echo "configure:14632: checking for ndbm.h" >&5
14591 14632
14592 cat > conftest.$ac_ext <<EOF 14633 cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure" 14634 #line 14635 "configure"
14594 #include "confdefs.h" 14635 #include "confdefs.h"
14595 #include <ndbm.h> 14636 #include <ndbm.h>
14596 EOF 14637 EOF
14597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14598 { (eval echo configure:14599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14639 { (eval echo configure:14640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14600 if test -z "$ac_err"; then 14641 if test -z "$ac_err"; then
14601 rm -rf conftest* 14642 rm -rf conftest*
14602 eval "ac_cv_header_$ac_safe=yes" 14643 eval "ac_cv_header_$ac_safe=yes"
14603 else 14644 else
14623 fi 14664 fi
14624 14665
14625 if test "$with_database_gdbm" != "no"; then 14666 if test "$with_database_gdbm" != "no"; then
14626 14667
14627 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 14668 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14628 echo "configure:14629: checking for dbm_open in -lgdbm" >&5 14669 echo "configure:14670: checking for dbm_open in -lgdbm" >&5
14629 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 14670 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14630 14671
14631 xe_check_libs=" -lgdbm " 14672 xe_check_libs=" -lgdbm "
14632 cat > conftest.$ac_ext <<EOF 14673 cat > conftest.$ac_ext <<EOF
14633 #line 14634 "configure" 14674 #line 14675 "configure"
14634 #include "confdefs.h" 14675 #include "confdefs.h"
14635 /* Override any gcc2 internal prototype to avoid an error. */ 14676 /* Override any gcc2 internal prototype to avoid an error. */
14636 /* We use char because int might match the return type of a gcc2 14677 /* We use char because int might match the return type of a gcc2
14637 builtin and then its argument prototype would still apply. */ 14678 builtin and then its argument prototype would still apply. */
14638 char dbm_open(); 14679 char dbm_open();
14639 14680
14640 int main() { 14681 int main() {
14641 dbm_open() 14682 dbm_open()
14642 ; return 0; } 14683 ; return 0; }
14643 EOF 14684 EOF
14644 if { (eval echo configure:14645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14685 if { (eval echo configure:14686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14645 rm -rf conftest* 14686 rm -rf conftest*
14646 eval "ac_cv_lib_$ac_lib_var=yes" 14687 eval "ac_cv_lib_$ac_lib_var=yes"
14647 else 14688 else
14648 echo "configure: failed program was:" >&5 14689 echo "configure: failed program was:" >&5
14649 cat conftest.$ac_ext >&5 14690 cat conftest.$ac_ext >&5
14667 14708
14668 fi 14709 fi
14669 14710
14670 if test "$with_database_dbm" != "no"; then 14711 if test "$with_database_dbm" != "no"; then
14671 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 14712 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14672 echo "configure:14673: checking for dbm_open" >&5 14713 echo "configure:14714: checking for dbm_open" >&5
14673 14714
14674 cat > conftest.$ac_ext <<EOF 14715 cat > conftest.$ac_ext <<EOF
14675 #line 14676 "configure" 14716 #line 14717 "configure"
14676 #include "confdefs.h" 14717 #include "confdefs.h"
14677 /* System header to define __stub macros and hopefully few prototypes, 14718 /* System header to define __stub macros and hopefully few prototypes,
14678 which can conflict with char dbm_open(); below. */ 14719 which can conflict with char dbm_open(); below. */
14679 #include <assert.h> 14720 #include <assert.h>
14680 /* Override any gcc2 internal prototype to avoid an error. */ 14721 /* Override any gcc2 internal prototype to avoid an error. */
14693 dbm_open(); 14734 dbm_open();
14694 #endif 14735 #endif
14695 14736
14696 ; return 0; } 14737 ; return 0; }
14697 EOF 14738 EOF
14698 if { (eval echo configure:14699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14739 if { (eval echo configure:14740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14699 rm -rf conftest* 14740 rm -rf conftest*
14700 eval "ac_cv_func_dbm_open=yes" 14741 eval "ac_cv_func_dbm_open=yes"
14701 else 14742 else
14702 echo "configure: failed program was:" >&5 14743 echo "configure: failed program was:" >&5
14703 cat conftest.$ac_ext >&5 14744 cat conftest.$ac_ext >&5
14712 else 14753 else
14713 echo "$ac_t""no" 1>&6 14754 echo "$ac_t""no" 1>&6
14714 14755
14715 14756
14716 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 14757 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14717 echo "configure:14718: checking for dbm_open in -ldbm" >&5 14758 echo "configure:14759: checking for dbm_open in -ldbm" >&5
14718 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 14759 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14719 14760
14720 xe_check_libs=" -ldbm " 14761 xe_check_libs=" -ldbm "
14721 cat > conftest.$ac_ext <<EOF 14762 cat > conftest.$ac_ext <<EOF
14722 #line 14723 "configure" 14763 #line 14764 "configure"
14723 #include "confdefs.h" 14764 #include "confdefs.h"
14724 /* Override any gcc2 internal prototype to avoid an error. */ 14765 /* Override any gcc2 internal prototype to avoid an error. */
14725 /* We use char because int might match the return type of a gcc2 14766 /* We use char because int might match the return type of a gcc2
14726 builtin and then its argument prototype would still apply. */ 14767 builtin and then its argument prototype would still apply. */
14727 char dbm_open(); 14768 char dbm_open();
14728 14769
14729 int main() { 14770 int main() {
14730 dbm_open() 14771 dbm_open()
14731 ; return 0; } 14772 ; return 0; }
14732 EOF 14773 EOF
14733 if { (eval echo configure:14734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14774 if { (eval echo configure:14775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14734 rm -rf conftest* 14775 rm -rf conftest*
14735 eval "ac_cv_lib_$ac_lib_var=yes" 14776 eval "ac_cv_lib_$ac_lib_var=yes"
14736 else 14777 else
14737 echo "configure: failed program was:" >&5 14778 echo "configure: failed program was:" >&5
14738 cat conftest.$ac_ext >&5 14779 cat conftest.$ac_ext >&5
14769 } 14810 }
14770 14811
14771 14812
14772 if test "$with_database_berkdb" != "no"; then 14813 if test "$with_database_berkdb" != "no"; then
14773 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 14814 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14774 echo "configure:14775: checking for Berkeley db.h" >&5 14815 echo "configure:14816: checking for Berkeley db.h" >&5
14775 for header in "db/db.h" "db.h"; do 14816 for header in "db/db.h" "db.h"; do
14776 cat > conftest.$ac_ext <<EOF 14817 cat > conftest.$ac_ext <<EOF
14777 #line 14778 "configure" 14818 #line 14819 "configure"
14778 #include "confdefs.h" 14819 #include "confdefs.h"
14779 14820
14780 #include <stdlib.h> 14821 #include <stdlib.h>
14781 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 14822 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14782 #ifdef HAVE_INTTYPES_H 14823 #ifdef HAVE_INTTYPES_H
14794 14835
14795 int main() { 14836 int main() {
14796 14837
14797 ; return 0; } 14838 ; return 0; }
14798 EOF 14839 EOF
14799 if { (eval echo configure:14800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14840 if { (eval echo configure:14841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14800 rm -rf conftest* 14841 rm -rf conftest*
14801 db_h_file="$header"; break 14842 db_h_file="$header"; break
14802 else 14843 else
14803 echo "configure: failed program was:" >&5 14844 echo "configure: failed program was:" >&5
14804 cat conftest.$ac_ext >&5 14845 cat conftest.$ac_ext >&5
14810 else echo "$ac_t""$db_h_file" 1>&6 14851 else echo "$ac_t""$db_h_file" 1>&6
14811 fi 14852 fi
14812 14853
14813 if test "$with_database_berkdb" != "no"; then 14854 if test "$with_database_berkdb" != "no"; then
14814 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 14855 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14815 echo "configure:14816: checking for Berkeley DB version" >&5 14856 echo "configure:14857: checking for Berkeley DB version" >&5
14816 cat > conftest.$ac_ext <<EOF 14857 cat > conftest.$ac_ext <<EOF
14817 #line 14818 "configure" 14858 #line 14859 "configure"
14818 #include "confdefs.h" 14859 #include "confdefs.h"
14819 #include <$db_h_file> 14860 #include <$db_h_file>
14820 #if DB_VERSION_MAJOR > 1 14861 #if DB_VERSION_MAJOR > 1
14821 yes 14862 yes
14822 #endif 14863 #endif
14824 EOF 14865 EOF
14825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14826 egrep "yes" >/dev/null 2>&1; then 14867 egrep "yes" >/dev/null 2>&1; then
14827 rm -rf conftest* 14868 rm -rf conftest*
14828 cat > conftest.$ac_ext <<EOF 14869 cat > conftest.$ac_ext <<EOF
14829 #line 14830 "configure" 14870 #line 14871 "configure"
14830 #include "confdefs.h" 14871 #include "confdefs.h"
14831 #include <$db_h_file> 14872 #include <$db_h_file>
14832 #if DB_VERSION_MAJOR > 2 14873 #if DB_VERSION_MAJOR > 2
14833 yes 14874 yes
14834 #endif 14875 #endif
14851 echo "$ac_t""1" 1>&6; dbfunc=dbopen 14892 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14852 fi 14893 fi
14853 rm -f conftest* 14894 rm -f conftest*
14854 14895
14855 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 14896 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14856 echo "configure:14857: checking for $dbfunc" >&5 14897 echo "configure:14898: checking for $dbfunc" >&5
14857 14898
14858 cat > conftest.$ac_ext <<EOF 14899 cat > conftest.$ac_ext <<EOF
14859 #line 14860 "configure" 14900 #line 14901 "configure"
14860 #include "confdefs.h" 14901 #include "confdefs.h"
14861 /* System header to define __stub macros and hopefully few prototypes, 14902 /* System header to define __stub macros and hopefully few prototypes,
14862 which can conflict with char $dbfunc(); below. */ 14903 which can conflict with char $dbfunc(); below. */
14863 #include <assert.h> 14904 #include <assert.h>
14864 /* Override any gcc2 internal prototype to avoid an error. */ 14905 /* Override any gcc2 internal prototype to avoid an error. */
14877 $dbfunc(); 14918 $dbfunc();
14878 #endif 14919 #endif
14879 14920
14880 ; return 0; } 14921 ; return 0; }
14881 EOF 14922 EOF
14882 if { (eval echo configure:14883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14923 if { (eval echo configure:14924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14883 rm -rf conftest* 14924 rm -rf conftest*
14884 eval "ac_cv_func_$dbfunc=yes" 14925 eval "ac_cv_func_$dbfunc=yes"
14885 else 14926 else
14886 echo "configure: failed program was:" >&5 14927 echo "configure: failed program was:" >&5
14887 cat conftest.$ac_ext >&5 14928 cat conftest.$ac_ext >&5
14896 else 14937 else
14897 echo "$ac_t""no" 1>&6 14938 echo "$ac_t""no" 1>&6
14898 14939
14899 14940
14900 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 14941 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14901 echo "configure:14902: checking for $dbfunc in -ldb" >&5 14942 echo "configure:14943: checking for $dbfunc in -ldb" >&5
14902 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 14943 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14903 14944
14904 xe_check_libs=" -ldb " 14945 xe_check_libs=" -ldb "
14905 cat > conftest.$ac_ext <<EOF 14946 cat > conftest.$ac_ext <<EOF
14906 #line 14907 "configure" 14947 #line 14948 "configure"
14907 #include "confdefs.h" 14948 #include "confdefs.h"
14908 /* Override any gcc2 internal prototype to avoid an error. */ 14949 /* Override any gcc2 internal prototype to avoid an error. */
14909 /* We use char because int might match the return type of a gcc2 14950 /* We use char because int might match the return type of a gcc2
14910 builtin and then its argument prototype would still apply. */ 14951 builtin and then its argument prototype would still apply. */
14911 char $dbfunc(); 14952 char $dbfunc();
14912 14953
14913 int main() { 14954 int main() {
14914 $dbfunc() 14955 $dbfunc()
14915 ; return 0; } 14956 ; return 0; }
14916 EOF 14957 EOF
14917 if { (eval echo configure:14918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14958 if { (eval echo configure:14959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14918 rm -rf conftest* 14959 rm -rf conftest*
14919 eval "ac_cv_lib_$ac_lib_var=yes" 14960 eval "ac_cv_lib_$ac_lib_var=yes"
14920 else 14961 else
14921 echo "configure: failed program was:" >&5 14962 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5 14963 cat conftest.$ac_ext >&5
14973 fi 15014 fi
14974 15015
14975 if test "$with_socks" = "yes"; then 15016 if test "$with_socks" = "yes"; then
14976 15017
14977 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 15018 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14978 echo "configure:14979: checking for SOCKSinit in -lsocks" >&5 15019 echo "configure:15020: checking for SOCKSinit in -lsocks" >&5
14979 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 15020 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14980 15021
14981 xe_check_libs=" -lsocks " 15022 xe_check_libs=" -lsocks "
14982 cat > conftest.$ac_ext <<EOF 15023 cat > conftest.$ac_ext <<EOF
14983 #line 14984 "configure" 15024 #line 15025 "configure"
14984 #include "confdefs.h" 15025 #include "confdefs.h"
14985 /* Override any gcc2 internal prototype to avoid an error. */ 15026 /* Override any gcc2 internal prototype to avoid an error. */
14986 /* We use char because int might match the return type of a gcc2 15027 /* We use char because int might match the return type of a gcc2
14987 builtin and then its argument prototype would still apply. */ 15028 builtin and then its argument prototype would still apply. */
14988 char SOCKSinit(); 15029 char SOCKSinit();
14989 15030
14990 int main() { 15031 int main() {
14991 SOCKSinit() 15032 SOCKSinit()
14992 ; return 0; } 15033 ; return 0; }
14993 EOF 15034 EOF
14994 if { (eval echo configure:14995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15035 if { (eval echo configure:15036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14995 rm -rf conftest* 15036 rm -rf conftest*
14996 eval "ac_cv_lib_$ac_lib_var=yes" 15037 eval "ac_cv_lib_$ac_lib_var=yes"
14997 else 15038 else
14998 echo "configure: failed program was:" >&5 15039 echo "configure: failed program was:" >&5
14999 cat conftest.$ac_ext >&5 15040 cat conftest.$ac_ext >&5
15043 15084
15044 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 15085 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
15045 fi 15086 fi
15046 15087
15047 cat > conftest.$ac_ext <<EOF 15088 cat > conftest.$ac_ext <<EOF
15048 #line 15049 "configure" 15089 #line 15090 "configure"
15049 #include "confdefs.h" 15090 #include "confdefs.h"
15050 int main(int c,char *v[]){return 0;} 15091 int main(int c,char *v[]){return 0;}
15051 EOF 15092 EOF
15052 if { (eval echo configure:15053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 15093 if { (eval echo configure:15094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15053 then 15094 then
15054 : 15095 :
15055 else 15096 else
15056 conftest_rc="$?" 15097 conftest_rc="$?"
15057 echo "configure: failed program was:" >&5 15098 echo "configure: failed program was:" >&5
15185 echo Making symbolic link to "$srcdir/$dir" 15226 echo Making symbolic link to "$srcdir/$dir"
15186 ${LN_S} "$srcdir/$dir" "$dir" 15227 ${LN_S} "$srcdir/$dir" "$dir"
15187 fi 15228 fi
15188 done 15229 done
15189 15230
15231 if test "$need_modules_common" = "yes"; then
15232 for dir in modules/common; do
15233 if test ! -d "$dir" ; then
15234 echo Making symbolic link to "$srcdir/$dir"
15235 ${LN_S} "$srcdir/$dir" "$dir"
15236 fi
15237 done
15238 fi
15239
15190 if test "$extra_verbose" = "yes"; then 15240 if test "$extra_verbose" = "yes"; then
15191 echo "" 15241 echo ""
15192 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done 15242 for var in extra_objs c_switch_general c_switch_window_system c_switch_all ld_switch_general ld_switch_window_system ld_switch_all ld_libs_general ld_libs_window_system ld_libs_all; do eval "echo \"$var = '\$$var'\""; done
15193 echo "" 15243 echo ""
15194 fi 15244 fi
15393 15443
15394 15444
15395 15445
15396 15446
15397 15447
15398
15399 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
15400 : ${XEMACS_CC:="$CC"}
15401 15448
15402 15449
15403 if test "$with_prefix" = "yes"; then 15450 if test "$with_prefix" = "yes"; then
15404 { test "$extra_verbose" = "yes" && cat << \EOF 15451 { test "$extra_verbose" = "yes" && cat << \EOF
15405 Defining PREFIX_USER_DEFINED 15452 Defining PREFIX_USER_DEFINED
15677 if test -n "$machfile" 15724 if test -n "$machfile"
15678 then echo " Machine description file: \`$machfile'" 15725 then echo " Machine description file: \`$machfile'"
15679 else echo " Not using any machine description file" 15726 else echo " Not using any machine description file"
15680 fi 15727 fi
15681 15728
15682 echo " Compiler: $CC $CFLAGS" 15729 echo " Compiler: $XEMACS_CC $CFLAGS"
15683 echo " Relocating allocator for buffers: $rel_alloc" 15730 echo " Relocating allocator for buffers: $rel_alloc"
15684 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}" 15731 echo " GNU version of malloc: ${GNU_MALLOC}${GNU_MALLOC_reason}"
15685 case "$ld_switch_site" in 15732 case "$ld_switch_site" in
15686 *nocombreloc*) echo " Linking with \`-z nocombreloc'. 15733 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
15687 - Consider configuring with --pdump." ;; 15734 - Consider configuring with --pdump." ;;
15859 test -n "$exec_prefix" && 15906 test -n "$exec_prefix" &&
15860 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'` 15907 exec_prefix=`echo '' "$exec_prefix" | sed -e 's:^ ::' -e 's,\([^/]\)/*$,\1,'`
15861 15908
15862 15909
15863 for file in $internal_makefile_list; do 15910 for file in $internal_makefile_list; do
15864 test "$file" = src/Makefile.in && \ 15911 case $file in
15865 file="src/Makefile.in:src/Makefile.in.in:src/depend" 15912 src/Makefile.in ) file="src/Makefile.in:src/Makefile.in.in:src/depend" ;;
15913 modules/* ) file="${file}:${file}.in:modules/common/Makefile.common" ;;
15914 esac
15866 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi 15915 ac_output_files="$ac_output_files $file" && if test "$extra_verbose" = "yes"; then echo " Appending \"$file\" to \$ac_output_files"; fi
15867 done 15916 done
15868 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" 15917 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
15869 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi 15918 test "$with_modules" = "yes" && ac_output_files="$ac_output_files lib-src/ellcc.h" && if test "$extra_verbose" = "yes"; then echo " Appending \"lib-src/ellcc.h\" to \$ac_output_files"; fi
15870 15919