comparison configure @ 1161:8e95979f01c6

[xemacs-hg @ 2002-12-16 02:32:47 by ben] fixes for window-config problems and set-window-point
author ben
date Mon, 16 Dec 2002 02:33:04 +0000
parents 37bdd24225ef
children 6041a741b6d6
comparison
equal deleted inserted replaced
1160:21dcf7ccd9a3 1161:8e95979f01c6
254 use_assertions="yes" 254 use_assertions="yes"
255 with_toolbars="" 255 with_toolbars=""
256 with_tty="" 256 with_tty=""
257 use_union_type="no" 257 use_union_type="no"
258 with_dnet="" 258 with_dnet=""
259 pdump="no" 259 pdump=""
260 with_dragndrop_default="no" 260 with_dragndrop_default="no"
261 with_ipv6_cname="no" 261 with_ipv6_cname="no"
262 262
263 263
264 264
1275 1275
1276 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;; 1276 i[3-9]86-cubix-sysv* ) machine=intel386 opsys=usg5-3 ;;
1277 1277
1278 *-*-darwin*) 1278 *-*-darwin*)
1279 opsys=darwin 1279 opsys=darwin
1280 RANLIB="ranlib -c" pdump=yes ;; 1280 RANLIB="ranlib -c" ;;
1281 1281
1282 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;; 1282 i586-dg-dgux*R4* | i586-dg-dgux5.4.4* ) machine=aviion opsys=dgux5-4r4 ;;
1283 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;; 1283 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) opsys=dgux5-4r3 ;;
1284 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;; 1284 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) opsys=dgux5-4r2 ;;
1285 m88k-dg-dgux* ) opsys=dgux ;; 1285 m88k-dg-dgux* ) opsys=dgux ;;
1576 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems." 1576 echo "XEmacs has no builtin knowledge of \`$opsys' operating systems."
1577 echo "Using configure-time autodetection only." 1577 echo "Using configure-time autodetection only."
1578 fi 1578 fi
1579 1579
1580 1580
1581 if test -z "$pdump"; then
1582 case "$opsys" in
1583 linux* ) pdump=yes ;; *-*-darwin* ) pdump=yes ;; *) pdump=no ;;
1584 esac
1585 fi
1586
1581 if test -z "$dynamic"; then 1587 if test -z "$dynamic"; then
1582 case "$opsys" in 1588 case "$opsys" in
1583 hpux* | sunos4* ) dynamic=no ;; 1589 hpux* | sunos4* ) dynamic=no ;;
1584 *) dynamic=yes ;; 1590 *) dynamic=yes ;;
1585 esac 1591 esac
1661 xe_save_CFLAGS="$CFLAGS" 1667 xe_save_CFLAGS="$CFLAGS"
1662 1668
1663 # Extract the first word of "gcc", so it can be a program name with args. 1669 # Extract the first word of "gcc", so it can be a program name with args.
1664 set dummy gcc; ac_word=$2 1670 set dummy gcc; ac_word=$2
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1666 echo "configure:1667: checking for $ac_word" >&5 1672 echo "configure:1673: checking for $ac_word" >&5
1667 1673
1668 if test -n "$CC"; then 1674 if test -n "$CC"; then
1669 ac_cv_prog_CC="$CC" # Let the user override the test. 1675 ac_cv_prog_CC="$CC" # Let the user override the test.
1670 else 1676 else
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1688 1694
1689 if test -z "$CC"; then 1695 if test -z "$CC"; then
1690 # Extract the first word of "cc", so it can be a program name with args. 1696 # Extract the first word of "cc", so it can be a program name with args.
1691 set dummy cc; ac_word=$2 1697 set dummy cc; ac_word=$2
1692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_word" >&5 1699 echo "configure:1700: checking for $ac_word" >&5
1694 1700
1695 if test -n "$CC"; then 1701 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test. 1702 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else 1703 else
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1736 case "`uname -s`" in 1742 case "`uname -s`" in
1737 *win32* | *WIN32*) 1743 *win32* | *WIN32*)
1738 # Extract the first word of "cl", so it can be a program name with args. 1744 # Extract the first word of "cl", so it can be a program name with args.
1739 set dummy cl; ac_word=$2 1745 set dummy cl; ac_word=$2
1740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1741 echo "configure:1742: checking for $ac_word" >&5 1747 echo "configure:1748: checking for $ac_word" >&5
1742 1748
1743 if test -n "$CC"; then 1749 if test -n "$CC"; then
1744 ac_cv_prog_CC="$CC" # Let the user override the test. 1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 else 1751 else
1746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1765 fi 1771 fi
1766 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1772 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1767 fi 1773 fi
1768 1774
1769 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1775 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1770 echo "configure:1771: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1776 echo "configure:1777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1771 1777
1772 ac_ext=c 1778 ac_ext=c
1773 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1779 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1774 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1780 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
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' 1781 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'
1778 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1784 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1779 cross_compiling=no 1785 cross_compiling=no
1780 1786
1781 cat > conftest.$ac_ext << EOF 1787 cat > conftest.$ac_ext << EOF
1782 1788
1783 #line 1784 "configure" 1789 #line 1790 "configure"
1784 #include "confdefs.h" 1790 #include "confdefs.h"
1785 1791
1786 main(){return(0);} 1792 main(){return(0);}
1787 EOF 1793 EOF
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1794 if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1789 ac_cv_prog_cc_works=yes 1795 ac_cv_prog_cc_works=yes
1790 # If we can't run a trivial program, we are probably using a cross compiler. 1796 # If we can't run a trivial program, we are probably using a cross compiler.
1791 if (./conftest; exit) 2>/dev/null; then 1797 if (./conftest; exit) 2>/dev/null; then
1792 ac_cv_prog_cc_cross=no 1798 ac_cv_prog_cc_cross=no
1793 else 1799 else
1811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1817 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1812 if test $ac_cv_prog_cc_works = no; then 1818 if test $ac_cv_prog_cc_works = no; then
1813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1819 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1814 fi 1820 fi
1815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1821 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1816 echo "configure:1817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1822 echo "configure:1823: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1823 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1818 cross_compiling=$ac_cv_prog_cc_cross 1824 cross_compiling=$ac_cv_prog_cc_cross
1819 1825
1820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1826 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1821 echo "configure:1822: checking whether we are using GNU C" >&5 1827 echo "configure:1828: checking whether we are using GNU C" >&5
1822 1828
1823 cat > conftest.c <<EOF 1829 cat > conftest.c <<EOF
1824 #ifdef __GNUC__ 1830 #ifdef __GNUC__
1825 yes; 1831 yes;
1826 #endif 1832 #endif
1827 EOF 1833 EOF
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 1834 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1829 ac_cv_prog_gcc=yes 1835 ac_cv_prog_gcc=yes
1830 else 1836 else
1831 ac_cv_prog_gcc=no 1837 ac_cv_prog_gcc=no
1832 fi 1838 fi
1833 1839
1841 1847
1842 ac_test_CFLAGS="${CFLAGS+set}" 1848 ac_test_CFLAGS="${CFLAGS+set}"
1843 ac_save_CFLAGS="$CFLAGS" 1849 ac_save_CFLAGS="$CFLAGS"
1844 CFLAGS= 1850 CFLAGS=
1845 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1851 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1846 echo "configure:1847: checking whether ${CC-cc} accepts -g" >&5 1852 echo "configure:1853: checking whether ${CC-cc} accepts -g" >&5
1847 1853
1848 echo 'void f(){}' > conftest.c 1854 echo 'void f(){}' > conftest.c
1849 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1855 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1850 ac_cv_prog_cc_g=yes 1856 ac_cv_prog_cc_g=yes
1851 else 1857 else
1874 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1880 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1875 CC=${NON_GNU_CC-cc} 1881 CC=${NON_GNU_CC-cc}
1876 # Extract the first word of "gcc", so it can be a program name with args. 1882 # Extract the first word of "gcc", so it can be a program name with args.
1877 set dummy gcc; ac_word=$2 1883 set dummy gcc; ac_word=$2
1878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1884 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1879 echo "configure:1880: checking for $ac_word" >&5 1885 echo "configure:1886: checking for $ac_word" >&5
1880 1886
1881 if test -n "$CC"; then 1887 if test -n "$CC"; then
1882 ac_cv_prog_CC="$CC" # Let the user override the test. 1888 ac_cv_prog_CC="$CC" # Let the user override the test.
1883 else 1889 else
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1901 1907
1902 if test -z "$CC"; then 1908 if test -z "$CC"; then
1903 # Extract the first word of "cc", so it can be a program name with args. 1909 # Extract the first word of "cc", so it can be a program name with args.
1904 set dummy cc; ac_word=$2 1910 set dummy cc; ac_word=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5 1912 echo "configure:1913: checking for $ac_word" >&5
1907 1913
1908 if test -n "$CC"; then 1914 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test. 1915 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else 1916 else
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1949 case "`uname -s`" in 1955 case "`uname -s`" in
1950 *win32* | *WIN32*) 1956 *win32* | *WIN32*)
1951 # Extract the first word of "cl", so it can be a program name with args. 1957 # Extract the first word of "cl", so it can be a program name with args.
1952 set dummy cl; ac_word=$2 1958 set dummy cl; ac_word=$2
1953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1954 echo "configure:1955: checking for $ac_word" >&5 1960 echo "configure:1961: checking for $ac_word" >&5
1955 1961
1956 if test -n "$CC"; then 1962 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test. 1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1958 else 1964 else
1959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1965 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1978 fi 1984 fi
1979 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1985 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1980 fi 1986 fi
1981 1987
1982 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1988 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1983 echo "configure:1984: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1989 echo "configure:1990: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1984 1990
1985 ac_ext=c 1991 ac_ext=c
1986 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1992 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1987 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1993 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
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' 1994 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'
1991 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1997 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1992 cross_compiling=no 1998 cross_compiling=no
1993 1999
1994 cat > conftest.$ac_ext << EOF 2000 cat > conftest.$ac_ext << EOF
1995 2001
1996 #line 1997 "configure" 2002 #line 2003 "configure"
1997 #include "confdefs.h" 2003 #include "confdefs.h"
1998 2004
1999 main(){return(0);} 2005 main(){return(0);}
2000 EOF 2006 EOF
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2007 if { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2002 ac_cv_prog_cc_works=yes 2008 ac_cv_prog_cc_works=yes
2003 # If we can't run a trivial program, we are probably using a cross compiler. 2009 # If we can't run a trivial program, we are probably using a cross compiler.
2004 if (./conftest; exit) 2>/dev/null; then 2010 if (./conftest; exit) 2>/dev/null; then
2005 ac_cv_prog_cc_cross=no 2011 ac_cv_prog_cc_cross=no
2006 else 2012 else
2024 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2030 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2025 if test $ac_cv_prog_cc_works = no; then 2031 if test $ac_cv_prog_cc_works = no; then
2026 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2032 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2027 fi 2033 fi
2028 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2034 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2029 echo "configure:2030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2035 echo "configure:2036: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2030 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2036 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2031 cross_compiling=$ac_cv_prog_cc_cross 2037 cross_compiling=$ac_cv_prog_cc_cross
2032 2038
2033 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2039 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2034 echo "configure:2035: checking whether we are using GNU C" >&5 2040 echo "configure:2041: checking whether we are using GNU C" >&5
2035 2041
2036 cat > conftest.c <<EOF 2042 cat > conftest.c <<EOF
2037 #ifdef __GNUC__ 2043 #ifdef __GNUC__
2038 yes; 2044 yes;
2039 #endif 2045 #endif
2040 EOF 2046 EOF
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 2047 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2042 ac_cv_prog_gcc=yes 2048 ac_cv_prog_gcc=yes
2043 else 2049 else
2044 ac_cv_prog_gcc=no 2050 ac_cv_prog_gcc=no
2045 fi 2051 fi
2046 2052
2054 2060
2055 ac_test_CFLAGS="${CFLAGS+set}" 2061 ac_test_CFLAGS="${CFLAGS+set}"
2056 ac_save_CFLAGS="$CFLAGS" 2062 ac_save_CFLAGS="$CFLAGS"
2057 CFLAGS= 2063 CFLAGS=
2058 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2064 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2059 echo "configure:2060: checking whether ${CC-cc} accepts -g" >&5 2065 echo "configure:2066: checking whether ${CC-cc} accepts -g" >&5
2060 2066
2061 echo 'void f(){}' > conftest.c 2067 echo 'void f(){}' > conftest.c
2062 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2068 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2063 ac_cv_prog_cc_g=yes 2069 ac_cv_prog_cc_g=yes
2064 else 2070 else
2087 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2093 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2088 CC=gcc 2094 CC=gcc
2089 # Extract the first word of "gcc", so it can be a program name with args. 2095 # Extract the first word of "gcc", so it can be a program name with args.
2090 set dummy gcc; ac_word=$2 2096 set dummy gcc; ac_word=$2
2091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2092 echo "configure:2093: checking for $ac_word" >&5 2098 echo "configure:2099: checking for $ac_word" >&5
2093 2099
2094 if test -n "$CC"; then 2100 if test -n "$CC"; then
2095 ac_cv_prog_CC="$CC" # Let the user override the test. 2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2096 else 2102 else
2097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2114 2120
2115 if test -z "$CC"; then 2121 if test -z "$CC"; then
2116 # Extract the first word of "cc", so it can be a program name with args. 2122 # Extract the first word of "cc", so it can be a program name with args.
2117 set dummy cc; ac_word=$2 2123 set dummy cc; ac_word=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5 2125 echo "configure:2126: checking for $ac_word" >&5
2120 2126
2121 if test -n "$CC"; then 2127 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test. 2128 ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else 2129 else
2124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2130 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2162 case "`uname -s`" in 2168 case "`uname -s`" in
2163 *win32* | *WIN32*) 2169 *win32* | *WIN32*)
2164 # Extract the first word of "cl", so it can be a program name with args. 2170 # Extract the first word of "cl", so it can be a program name with args.
2165 set dummy cl; ac_word=$2 2171 set dummy cl; ac_word=$2
2166 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2167 echo "configure:2168: checking for $ac_word" >&5 2173 echo "configure:2174: checking for $ac_word" >&5
2168 2174
2169 if test -n "$CC"; then 2175 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test. 2176 ac_cv_prog_CC="$CC" # Let the user override the test.
2171 else 2177 else
2172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2191 fi 2197 fi
2192 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2198 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2193 fi 2199 fi
2194 2200
2195 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2201 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2196 echo "configure:2197: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2202 echo "configure:2203: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2197 2203
2198 ac_ext=c 2204 ac_ext=c
2199 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2205 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2200 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2206 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
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' 2207 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'
2204 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2210 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2205 cross_compiling=no 2211 cross_compiling=no
2206 2212
2207 cat > conftest.$ac_ext << EOF 2213 cat > conftest.$ac_ext << EOF
2208 2214
2209 #line 2210 "configure" 2215 #line 2216 "configure"
2210 #include "confdefs.h" 2216 #include "confdefs.h"
2211 2217
2212 main(){return(0);} 2218 main(){return(0);}
2213 EOF 2219 EOF
2214 if { (eval echo configure:2215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2220 if { (eval echo configure:2221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2215 ac_cv_prog_cc_works=yes 2221 ac_cv_prog_cc_works=yes
2216 # If we can't run a trivial program, we are probably using a cross compiler. 2222 # If we can't run a trivial program, we are probably using a cross compiler.
2217 if (./conftest; exit) 2>/dev/null; then 2223 if (./conftest; exit) 2>/dev/null; then
2218 ac_cv_prog_cc_cross=no 2224 ac_cv_prog_cc_cross=no
2219 else 2225 else
2237 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2243 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2238 if test $ac_cv_prog_cc_works = no; then 2244 if test $ac_cv_prog_cc_works = no; then
2239 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2245 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2240 fi 2246 fi
2241 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2247 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2242 echo "configure:2243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2248 echo "configure:2249: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2243 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2249 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2244 cross_compiling=$ac_cv_prog_cc_cross 2250 cross_compiling=$ac_cv_prog_cc_cross
2245 2251
2246 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2252 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2247 echo "configure:2248: checking whether we are using GNU C" >&5 2253 echo "configure:2254: checking whether we are using GNU C" >&5
2248 2254
2249 cat > conftest.c <<EOF 2255 cat > conftest.c <<EOF
2250 #ifdef __GNUC__ 2256 #ifdef __GNUC__
2251 yes; 2257 yes;
2252 #endif 2258 #endif
2253 EOF 2259 EOF
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 2260 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2255 ac_cv_prog_gcc=yes 2261 ac_cv_prog_gcc=yes
2256 else 2262 else
2257 ac_cv_prog_gcc=no 2263 ac_cv_prog_gcc=no
2258 fi 2264 fi
2259 2265
2267 2273
2268 ac_test_CFLAGS="${CFLAGS+set}" 2274 ac_test_CFLAGS="${CFLAGS+set}"
2269 ac_save_CFLAGS="$CFLAGS" 2275 ac_save_CFLAGS="$CFLAGS"
2270 CFLAGS= 2276 CFLAGS=
2271 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2277 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2272 echo "configure:2273: checking whether ${CC-cc} accepts -g" >&5 2278 echo "configure:2279: checking whether ${CC-cc} accepts -g" >&5
2273 2279
2274 echo 'void f(){}' > conftest.c 2280 echo 'void f(){}' > conftest.c
2275 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2281 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2276 ac_cv_prog_cc_g=yes 2282 ac_cv_prog_cc_g=yes
2277 else 2283 else
2300 fi 2306 fi
2301 CFLAGS="$xe_save_CFLAGS" 2307 CFLAGS="$xe_save_CFLAGS"
2302 2308
2303 if test "$GCC" = "yes"; then 2309 if test "$GCC" = "yes"; then
2304 cat > conftest.$ac_ext <<EOF 2310 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure" 2311 #line 2312 "configure"
2306 #include "confdefs.h" 2312 #include "confdefs.h"
2307 int main () { 2313 int main () {
2308 #if __GNUC__ >= 3 2314 #if __GNUC__ >= 3
2309 return 11; 2315 return 11;
2310 #else 2316 #else
2311 return 0; 2317 return 0;
2312 #endif 2318 #endif
2313 } 2319 }
2314 EOF 2320 EOF
2315 if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2321 if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2316 then 2322 then
2317 : 2323 :
2318 else 2324 else
2319 conftest_rc="$?" 2325 conftest_rc="$?"
2320 echo "configure: failed program was:" >&5 2326 echo "configure: failed program was:" >&5
2331 test -n "$CPP" -a -d "$CPP" && CPP= 2337 test -n "$CPP" -a -d "$CPP" && CPP=
2332 2338
2333 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2339 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2334 2340
2335 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2341 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2336 echo "configure:2337: checking how to run the C preprocessor" >&5 2342 echo "configure:2343: checking how to run the C preprocessor" >&5
2337 # On Suns, sometimes $CPP names a directory. 2343 # On Suns, sometimes $CPP names a directory.
2338 if test -n "$CPP" && test -d "$CPP"; then 2344 if test -n "$CPP" && test -d "$CPP"; then
2339 CPP= 2345 CPP=
2340 fi 2346 fi
2341 if test -z "$CPP"; then 2347 if test -z "$CPP"; then
2344 # substituted into the Makefile and "${CC-cc}" will confuse make. 2350 # substituted into the Makefile and "${CC-cc}" will confuse make.
2345 CPP="${CC-cc} -E" 2351 CPP="${CC-cc} -E"
2346 # On the NeXT, cc -E runs the code through the compiler's parser, 2352 # On the NeXT, cc -E runs the code through the compiler's parser,
2347 # not just through cpp. 2353 # not just through cpp.
2348 cat > conftest.$ac_ext <<EOF 2354 cat > conftest.$ac_ext <<EOF
2349 #line 2350 "configure" 2355 #line 2356 "configure"
2350 #include "confdefs.h" 2356 #include "confdefs.h"
2351 #include <assert.h> 2357 #include <assert.h>
2352 Syntax Error 2358 Syntax Error
2353 EOF 2359 EOF
2354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2360 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; } 2361 { (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2357 if test -z "$ac_err"; then 2363 if test -z "$ac_err"; then
2358 : 2364 :
2359 else 2365 else
2360 echo "$ac_err" >&5 2366 echo "$ac_err" >&5
2361 echo "configure: failed program was:" >&5 2367 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5 2368 cat conftest.$ac_ext >&5
2363 rm -rf conftest* 2369 rm -rf conftest*
2364 CPP="${CC-cc} -E -traditional-cpp" 2370 CPP="${CC-cc} -E -traditional-cpp"
2365 cat > conftest.$ac_ext <<EOF 2371 cat > conftest.$ac_ext <<EOF
2366 #line 2367 "configure" 2372 #line 2373 "configure"
2367 #include "confdefs.h" 2373 #include "confdefs.h"
2368 #include <assert.h> 2374 #include <assert.h>
2369 Syntax Error 2375 Syntax Error
2370 EOF 2376 EOF
2371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2372 { (eval echo configure:2373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2378 { (eval echo configure:2379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2374 if test -z "$ac_err"; then 2380 if test -z "$ac_err"; then
2375 : 2381 :
2376 else 2382 else
2377 echo "$ac_err" >&5 2383 echo "$ac_err" >&5
2378 echo "configure: failed program was:" >&5 2384 echo "configure: failed program was:" >&5
2379 cat conftest.$ac_ext >&5 2385 cat conftest.$ac_ext >&5
2380 rm -rf conftest* 2386 rm -rf conftest*
2381 CPP="${CC-cc} -nologo -E" 2387 CPP="${CC-cc} -nologo -E"
2382 cat > conftest.$ac_ext <<EOF 2388 cat > conftest.$ac_ext <<EOF
2383 #line 2384 "configure" 2389 #line 2390 "configure"
2384 #include "confdefs.h" 2390 #include "confdefs.h"
2385 #include <assert.h> 2391 #include <assert.h>
2386 Syntax Error 2392 Syntax Error
2387 EOF 2393 EOF
2388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2389 { (eval echo configure:2390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2395 { (eval echo configure:2396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2391 if test -z "$ac_err"; then 2397 if test -z "$ac_err"; then
2392 : 2398 :
2393 else 2399 else
2394 echo "$ac_err" >&5 2400 echo "$ac_err" >&5
2410 echo "$ac_t""$CPP" 1>&6 2416 echo "$ac_t""$CPP" 1>&6
2411 2417
2412 2418
2413 2419
2414 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2420 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2415 echo "configure:2416: checking for AIX" >&5 2421 echo "configure:2422: checking for AIX" >&5
2416 cat > conftest.$ac_ext <<EOF 2422 cat > conftest.$ac_ext <<EOF
2417 #line 2418 "configure" 2423 #line 2424 "configure"
2418 #include "confdefs.h" 2424 #include "confdefs.h"
2419 #ifdef _AIX 2425 #ifdef _AIX
2420 yes 2426 yes
2421 #endif 2427 #endif
2422 2428
2439 rm -f conftest* 2445 rm -f conftest*
2440 2446
2441 2447
2442 2448
2443 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2449 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2444 echo "configure:2445: checking for GNU libc" >&5 2450 echo "configure:2451: checking for GNU libc" >&5
2445 cat > conftest.$ac_ext <<EOF 2451 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure" 2452 #line 2453 "configure"
2447 #include "confdefs.h" 2453 #include "confdefs.h"
2448 #include <features.h> 2454 #include <features.h>
2449 int main() { 2455 int main() {
2450 2456
2451 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2457 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2453 ******* ======= ******** &&&&&&&& 2459 ******* ======= ******** &&&&&&&&
2454 #endif 2460 #endif
2455 2461
2456 ; return 0; } 2462 ; return 0; }
2457 EOF 2463 EOF
2458 if { (eval echo configure:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2464 if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2459 rm -rf conftest* 2465 rm -rf conftest*
2460 have_glibc=yes 2466 have_glibc=yes
2461 else 2467 else
2462 echo "configure: failed program was:" >&5 2468 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5 2469 cat conftest.$ac_ext >&5
2530 2536
2531 ;; 2537 ;;
2532 esac 2538 esac
2533 2539
2534 cat > conftest.$ac_ext <<EOF 2540 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure" 2541 #line 2542 "configure"
2536 #include "confdefs.h" 2542 #include "confdefs.h"
2537 int main () { 2543 int main () {
2538 #if defined __SUNPRO_C 2544 #if defined __SUNPRO_C
2539 return 11; 2545 return 11;
2540 #elif defined __DECC 2546 #elif defined __DECC
2544 #else 2550 #else
2545 return 0; 2551 return 0;
2546 #endif 2552 #endif
2547 } 2553 }
2548 EOF 2554 EOF
2549 if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2555 if { (eval echo configure:2556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2550 then 2556 then
2551 : 2557 :
2552 else 2558 else
2553 conftest_rc="$?" 2559 conftest_rc="$?"
2554 echo "configure: failed program was:" >&5 2560 echo "configure: failed program was:" >&5
2796 2802
2797 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2803 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2798 2804
2799 if test "$__USLC__" = yes; then 2805 if test "$__USLC__" = yes; then
2800 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2806 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2801 echo "configure:2802: checking for whether the -Kalloca compiler flag is needed" >&5 2807 echo "configure:2808: checking for whether the -Kalloca compiler flag is needed" >&5
2802 need_kalloca=no 2808 need_kalloca=no
2803 cat > conftest.$ac_ext <<EOF 2809 cat > conftest.$ac_ext <<EOF
2804 #line 2805 "configure" 2810 #line 2811 "configure"
2805 #include "confdefs.h" 2811 #include "confdefs.h"
2806 2812
2807 int main() { 2813 int main() {
2808 void *x = alloca(4); 2814 void *x = alloca(4);
2809 ; return 0; } 2815 ; return 0; }
2810 EOF 2816 EOF
2811 if { (eval echo configure:2812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2817 if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2812 rm -rf conftest* 2818 rm -rf conftest*
2813 : 2819 :
2814 else 2820 else
2815 echo "configure: failed program was:" >&5 2821 echo "configure: failed program was:" >&5
2816 cat conftest.$ac_ext >&5 2822 cat conftest.$ac_ext >&5
2817 rm -rf conftest* 2823 rm -rf conftest*
2818 2824
2819 xe_save_c_switch_system="$c_switch_system" 2825 xe_save_c_switch_system="$c_switch_system"
2820 c_switch_system="$c_switch_system -Kalloca" 2826 c_switch_system="$c_switch_system -Kalloca"
2821 cat > conftest.$ac_ext <<EOF 2827 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure" 2828 #line 2829 "configure"
2823 #include "confdefs.h" 2829 #include "confdefs.h"
2824 2830
2825 int main() { 2831 int main() {
2826 void *x = alloca(4); 2832 void *x = alloca(4);
2827 ; return 0; } 2833 ; return 0; }
2828 EOF 2834 EOF
2829 if { (eval echo configure:2830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2835 if { (eval echo configure:2836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2830 rm -rf conftest* 2836 rm -rf conftest*
2831 need_kalloca=yes 2837 need_kalloca=yes
2832 else 2838 else
2833 echo "configure: failed program was:" >&5 2839 echo "configure: failed program was:" >&5
2834 cat conftest.$ac_ext >&5 2840 cat conftest.$ac_ext >&5
2884 2890
2885 CFLAGS="$cflags_warning $CFLAGS" 2891 CFLAGS="$cflags_warning $CFLAGS"
2886 2892
2887 if test "$GCC" = "yes"; then 2893 if test "$GCC" = "yes"; then
2888 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2894 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2889 echo "configure:2890: checking for buggy gcc versions" >&5 2895 echo "configure:2896: checking for buggy gcc versions" >&5
2890 GCC_VERSION=`$CC --version` 2896 GCC_VERSION=`$CC --version`
2891 case `uname -s`:`uname -m`:$GCC_VERSION in 2897 case `uname -s`:`uname -m`:$GCC_VERSION in
2892 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2898 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2893 case "$CFLAGS" in 2899 case "$CFLAGS" in
2894 *-O2*|*-O3*) 2900 *-O2*|*-O3*)
2942 echo "$ac_t""no" 1>&6 2948 echo "$ac_t""no" 1>&6
2943 fi 2949 fi
2944 2950
2945 if test "$pdump" != "yes"; then 2951 if test "$pdump" != "yes"; then
2946 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6 2952 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
2947 echo "configure:2948: checking for \"-z nocombreloc\" linker flag" >&5 2953 echo "configure:2954: checking for \"-z nocombreloc\" linker flag" >&5
2948 case "`ld --help 2>&1`" in 2954 case "`ld --help 2>&1`" in
2949 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6 2955 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
2950 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;; 2956 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
2951 *) echo "$ac_t""no" 1>&6 ;; 2957 *) echo "$ac_t""no" 1>&6 ;;
2952 esac 2958 esac
3031 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 3037 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
3032 echo " xemacs will be linked with \"dumper.o\"" 3038 echo " xemacs will be linked with \"dumper.o\""
3033 fi 3039 fi
3034 3040
3035 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3041 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
3036 echo "configure:3037: checking for dynodump" >&5 3042 echo "configure:3043: checking for dynodump" >&5
3037 if test "$unexec" != "unexsol2.o"; then 3043 if test "$unexec" != "unexsol2.o"; then
3038 echo "$ac_t""no" 1>&6 3044 echo "$ac_t""no" 1>&6
3039 else 3045 else
3040 echo "$ac_t""yes" 1>&6 3046 echo "$ac_t""yes" 1>&6
3041 { test "$extra_verbose" = "yes" && cat << \EOF 3047 { test "$extra_verbose" = "yes" && cat << \EOF
3069 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 3075 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
3070 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 3076 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
3071 done 3077 done
3072 3078
3073 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 3079 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
3074 echo "configure:3075: checking for terminateAndUnload in -lC" >&5 3080 echo "configure:3081: checking for terminateAndUnload in -lC" >&5
3075 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 3081 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
3076 3082
3077 xe_check_libs=" -lC " 3083 xe_check_libs=" -lC "
3078 cat > conftest.$ac_ext <<EOF 3084 cat > conftest.$ac_ext <<EOF
3079 #line 3080 "configure" 3085 #line 3086 "configure"
3080 #include "confdefs.h" 3086 #include "confdefs.h"
3081 /* Override any gcc2 internal prototype to avoid an error. */ 3087 /* Override any gcc2 internal prototype to avoid an error. */
3082 /* We use char because int might match the return type of a gcc2 3088 /* We use char because int might match the return type of a gcc2
3083 builtin and then its argument prototype would still apply. */ 3089 builtin and then its argument prototype would still apply. */
3084 char terminateAndUnload(); 3090 char terminateAndUnload();
3085 3091
3086 int main() { 3092 int main() {
3087 terminateAndUnload() 3093 terminateAndUnload()
3088 ; return 0; } 3094 ; return 0; }
3089 EOF 3095 EOF
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3096 if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3091 rm -rf conftest* 3097 rm -rf conftest*
3092 eval "ac_cv_lib_$ac_lib_var=yes" 3098 eval "ac_cv_lib_$ac_lib_var=yes"
3093 else 3099 else
3094 echo "configure: failed program was:" >&5 3100 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5 3101 cat conftest.$ac_ext >&5
3193 esac 3199 esac
3194 fi 3200 fi
3195 3201
3196 if test "$add_runtime_path" = "yes"; then 3202 if test "$add_runtime_path" = "yes"; then
3197 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3203 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3198 echo "configure:3199: checking "for runtime libraries flag"" >&5 3204 echo "configure:3205: checking "for runtime libraries flag"" >&5
3199 case "$opsys" in 3205 case "$opsys" in
3200 sol2 ) dash_r="-R" ;; 3206 sol2 ) dash_r="-R" ;;
3201 decosf* | linux* | irix*) dash_r="-rpath " ;; 3207 decosf* | linux* | irix*) dash_r="-rpath " ;;
3202 *) 3208 *)
3203 dash_r="" 3209 dash_r=""
3215 esac 3221 esac
3216 shift 3222 shift
3217 done 3223 done
3218 fi 3224 fi
3219 cat > conftest.$ac_ext <<EOF 3225 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure" 3226 #line 3227 "configure"
3221 #include "confdefs.h" 3227 #include "confdefs.h"
3222 3228
3223 int main() { 3229 int main() {
3224 3230
3225 ; return 0; } 3231 ; return 0; }
3226 EOF 3232 EOF
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3233 if { (eval echo configure:3234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3228 rm -rf conftest* 3234 rm -rf conftest*
3229 dash_r="$try_dash_r" 3235 dash_r="$try_dash_r"
3230 else 3236 else
3231 echo "configure: failed program was:" >&5 3237 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5 3238 cat conftest.$ac_ext >&5
3323 else 3329 else
3324 doug_lea_malloc=no 3330 doug_lea_malloc=no
3325 fi 3331 fi
3326 after_morecore_hook_exists=yes 3332 after_morecore_hook_exists=yes
3327 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3333 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3328 echo "configure:3329: checking for malloc_set_state" >&5 3334 echo "configure:3335: checking for malloc_set_state" >&5
3329 3335
3330 cat > conftest.$ac_ext <<EOF 3336 cat > conftest.$ac_ext <<EOF
3331 #line 3332 "configure" 3337 #line 3338 "configure"
3332 #include "confdefs.h" 3338 #include "confdefs.h"
3333 /* System header to define __stub macros and hopefully few prototypes, 3339 /* System header to define __stub macros and hopefully few prototypes,
3334 which can conflict with char malloc_set_state(); below. */ 3340 which can conflict with char malloc_set_state(); below. */
3335 #include <assert.h> 3341 #include <assert.h>
3336 /* Override any gcc2 internal prototype to avoid an error. */ 3342 /* Override any gcc2 internal prototype to avoid an error. */
3349 malloc_set_state(); 3355 malloc_set_state();
3350 #endif 3356 #endif
3351 3357
3352 ; return 0; } 3358 ; return 0; }
3353 EOF 3359 EOF
3354 if { (eval echo configure:3355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3355 rm -rf conftest* 3361 rm -rf conftest*
3356 eval "ac_cv_func_malloc_set_state=yes" 3362 eval "ac_cv_func_malloc_set_state=yes"
3357 else 3363 else
3358 echo "configure: failed program was:" >&5 3364 echo "configure: failed program was:" >&5
3359 cat conftest.$ac_ext >&5 3365 cat conftest.$ac_ext >&5
3369 echo "$ac_t""no" 1>&6 3375 echo "$ac_t""no" 1>&6
3370 doug_lea_malloc=no 3376 doug_lea_malloc=no
3371 fi 3377 fi
3372 3378
3373 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3379 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3374 echo "configure:3375: checking whether __after_morecore_hook exists" >&5 3380 echo "configure:3381: checking whether __after_morecore_hook exists" >&5
3375 cat > conftest.$ac_ext <<EOF 3381 cat > conftest.$ac_ext <<EOF
3376 #line 3377 "configure" 3382 #line 3383 "configure"
3377 #include "confdefs.h" 3383 #include "confdefs.h"
3378 extern void (* __after_morecore_hook)(); 3384 extern void (* __after_morecore_hook)();
3379 int main() { 3385 int main() {
3380 __after_morecore_hook = 0 3386 __after_morecore_hook = 0
3381 ; return 0; } 3387 ; return 0; }
3382 EOF 3388 EOF
3383 if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3389 if { (eval echo configure:3390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3384 rm -rf conftest* 3390 rm -rf conftest*
3385 echo "$ac_t""yes" 1>&6 3391 echo "$ac_t""yes" 1>&6
3386 else 3392 else
3387 echo "configure: failed program was:" >&5 3393 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5 3394 cat conftest.$ac_ext >&5
3434 3440
3435 3441
3436 # Extract the first word of "ranlib", so it can be a program name with args. 3442 # Extract the first word of "ranlib", so it can be a program name with args.
3437 set dummy ranlib; ac_word=$2 3443 set dummy ranlib; ac_word=$2
3438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3439 echo "configure:3440: checking for $ac_word" >&5 3445 echo "configure:3446: checking for $ac_word" >&5
3440 3446
3441 if test -n "$RANLIB"; then 3447 if test -n "$RANLIB"; then
3442 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3443 else 3449 else
3444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3492 # ./install, which can be erroneously created by make from ./install.sh. 3498 # ./install, which can be erroneously created by make from ./install.sh.
3493 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3499 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3494 echo "configure:3495: checking for a BSD compatible install" >&5 3500 echo "configure:3501: checking for a BSD compatible install" >&5
3495 if test -z "$INSTALL"; then 3501 if test -z "$INSTALL"; then
3496 3502
3497 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3503 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3498 for ac_dir in $PATH; do 3504 for ac_dir in $PATH; do
3499 # Account for people who put trailing slashes in PATH elements. 3505 # Account for people who put trailing slashes in PATH elements.
3543 for ac_prog in 'bison -y' byacc 3549 for ac_prog in 'bison -y' byacc
3544 do 3550 do
3545 # Extract the first word of "$ac_prog", so it can be a program name with args. 3551 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2 3552 set dummy $ac_prog; ac_word=$2
3547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3548 echo "configure:3549: checking for $ac_word" >&5 3554 echo "configure:3555: checking for $ac_word" >&5
3549 3555
3550 if test -n "$YACC"; then 3556 if test -n "$YACC"; then
3551 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3557 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3552 else 3558 else
3553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3575 3581
3576 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 3582 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
3577 do 3583 do
3578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3585 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $ac_hdr" >&5 3586 echo "configure:3587: checking for $ac_hdr" >&5
3581 3587
3582 cat > conftest.$ac_ext <<EOF 3588 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure" 3589 #line 3590 "configure"
3584 #include "confdefs.h" 3590 #include "confdefs.h"
3585 #include <$ac_hdr> 3591 #include <$ac_hdr>
3586 EOF 3592 EOF
3587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3588 { (eval echo configure:3589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3594 { (eval echo configure:3595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3590 if test -z "$ac_err"; then 3596 if test -z "$ac_err"; then
3591 rm -rf conftest* 3597 rm -rf conftest*
3592 eval "ac_cv_header_$ac_safe=yes" 3598 eval "ac_cv_header_$ac_safe=yes"
3593 else 3599 else
3613 echo "$ac_t""no" 1>&6 3619 echo "$ac_t""no" 1>&6
3614 fi 3620 fi
3615 done 3621 done
3616 3622
3617 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3623 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3618 echo "configure:3619: checking for sys/wait.h that is POSIX.1 compatible" >&5 3624 echo "configure:3625: checking for sys/wait.h that is POSIX.1 compatible" >&5
3619 3625
3620 cat > conftest.$ac_ext <<EOF 3626 cat > conftest.$ac_ext <<EOF
3621 #line 3622 "configure" 3627 #line 3628 "configure"
3622 #include "confdefs.h" 3628 #include "confdefs.h"
3623 #include <sys/types.h> 3629 #include <sys/types.h>
3624 #include <sys/wait.h> 3630 #include <sys/wait.h>
3625 #ifndef WEXITSTATUS 3631 #ifndef WEXITSTATUS
3626 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3632 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3632 int s; 3638 int s;
3633 wait (&s); 3639 wait (&s);
3634 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3635 ; return 0; } 3641 ; return 0; }
3636 EOF 3642 EOF
3637 if { (eval echo configure:3638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3643 if { (eval echo configure:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638 rm -rf conftest* 3644 rm -rf conftest*
3639 ac_cv_header_sys_wait_h=yes 3645 ac_cv_header_sys_wait_h=yes
3640 else 3646 else
3641 echo "configure: failed program was:" >&5 3647 echo "configure: failed program was:" >&5
3642 cat conftest.$ac_ext >&5 3648 cat conftest.$ac_ext >&5
3656 } 3662 }
3657 3663
3658 fi 3664 fi
3659 3665
3660 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3666 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3661 echo "configure:3662: checking for ANSI C header files" >&5 3667 echo "configure:3668: checking for ANSI C header files" >&5
3662 3668
3663 cat > conftest.$ac_ext <<EOF 3669 cat > conftest.$ac_ext <<EOF
3664 #line 3665 "configure" 3670 #line 3671 "configure"
3665 #include "confdefs.h" 3671 #include "confdefs.h"
3666 #include <stdlib.h> 3672 #include <stdlib.h>
3667 #include <stdarg.h> 3673 #include <stdarg.h>
3668 #include <string.h> 3674 #include <string.h>
3669 #include <float.h> 3675 #include <float.h>
3670 EOF 3676 EOF
3671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3672 { (eval echo configure:3673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3678 { (eval echo configure:3679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3674 if test -z "$ac_err"; then 3680 if test -z "$ac_err"; then
3675 rm -rf conftest* 3681 rm -rf conftest*
3676 ac_cv_header_stdc=yes 3682 ac_cv_header_stdc=yes
3677 else 3683 else
3684 rm -f conftest* 3690 rm -f conftest*
3685 3691
3686 if test $ac_cv_header_stdc = yes; then 3692 if test $ac_cv_header_stdc = yes; then
3687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3688 cat > conftest.$ac_ext <<EOF 3694 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure" 3695 #line 3696 "configure"
3690 #include "confdefs.h" 3696 #include "confdefs.h"
3691 #include <string.h> 3697 #include <string.h>
3692 EOF 3698 EOF
3693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3694 egrep "memchr" >/dev/null 2>&1; then 3700 egrep "memchr" >/dev/null 2>&1; then
3702 fi 3708 fi
3703 3709
3704 if test $ac_cv_header_stdc = yes; then 3710 if test $ac_cv_header_stdc = yes; then
3705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3711 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3706 cat > conftest.$ac_ext <<EOF 3712 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure" 3713 #line 3714 "configure"
3708 #include "confdefs.h" 3714 #include "confdefs.h"
3709 #include <stdlib.h> 3715 #include <stdlib.h>
3710 EOF 3716 EOF
3711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 egrep "free" >/dev/null 2>&1; then 3718 egrep "free" >/dev/null 2>&1; then
3720 fi 3726 fi
3721 3727
3722 if test $ac_cv_header_stdc = yes; then 3728 if test $ac_cv_header_stdc = yes; then
3723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3729 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3724 cat > conftest.$ac_ext <<EOF 3730 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure" 3731 #line 3732 "configure"
3726 #include "confdefs.h" 3732 #include "confdefs.h"
3727 #include <ctype.h> 3733 #include <ctype.h>
3728 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3734 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3729 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3735 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3731 int main () { int i; for (i = 0; i < 256; i++) 3737 int main () { int i; for (i = 0; i < 256; i++)
3732 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3738 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3733 exit (0); } 3739 exit (0); }
3734 3740
3735 EOF 3741 EOF
3736 if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3742 if { (eval echo configure:3743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3737 then 3743 then
3738 : 3744 :
3739 else 3745 else
3740 conftest_rc="$?" 3746 conftest_rc="$?"
3741 echo "configure: failed program was:" >&5 3747 echo "configure: failed program was:" >&5
3757 } 3763 }
3758 3764
3759 fi 3765 fi
3760 3766
3761 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3767 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3762 echo "configure:3763: checking whether time.h and sys/time.h may both be included" >&5 3768 echo "configure:3769: checking whether time.h and sys/time.h may both be included" >&5
3763 3769
3764 cat > conftest.$ac_ext <<EOF 3770 cat > conftest.$ac_ext <<EOF
3765 #line 3766 "configure" 3771 #line 3772 "configure"
3766 #include "confdefs.h" 3772 #include "confdefs.h"
3767 #include <sys/types.h> 3773 #include <sys/types.h>
3768 #include <sys/time.h> 3774 #include <sys/time.h>
3769 #include <time.h> 3775 #include <time.h>
3770 int main() { 3776 int main() {
3771 struct tm *tp; 3777 struct tm *tp;
3772 ; return 0; } 3778 ; return 0; }
3773 EOF 3779 EOF
3774 if { (eval echo configure:3775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3780 if { (eval echo configure:3781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3775 rm -rf conftest* 3781 rm -rf conftest*
3776 ac_cv_header_time=yes 3782 ac_cv_header_time=yes
3777 else 3783 else
3778 echo "configure: failed program was:" >&5 3784 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5 3785 cat conftest.$ac_ext >&5
3793 } 3799 }
3794 3800
3795 fi 3801 fi
3796 3802
3797 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3803 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3798 echo "configure:3799: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3804 echo "configure:3805: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3799 3805
3800 cat > conftest.$ac_ext <<EOF 3806 cat > conftest.$ac_ext <<EOF
3801 #line 3802 "configure" 3807 #line 3808 "configure"
3802 #include "confdefs.h" 3808 #include "confdefs.h"
3803 #include <sys/types.h> 3809 #include <sys/types.h>
3804 #include <signal.h> 3810 #include <signal.h>
3805 /* NetBSD declares sys_siglist in unistd.h. */ 3811 /* NetBSD declares sys_siglist in unistd.h. */
3806 #ifdef HAVE_UNISTD_H 3812 #ifdef HAVE_UNISTD_H
3808 #endif 3814 #endif
3809 int main() { 3815 int main() {
3810 char *msg = *(sys_siglist + 1); 3816 char *msg = *(sys_siglist + 1);
3811 ; return 0; } 3817 ; return 0; }
3812 EOF 3818 EOF
3813 if { (eval echo configure:3814: \"$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
3814 rm -rf conftest* 3820 rm -rf conftest*
3815 ac_cv_decl_sys_siglist=yes 3821 ac_cv_decl_sys_siglist=yes
3816 else 3822 else
3817 echo "configure: failed program was:" >&5 3823 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5 3824 cat conftest.$ac_ext >&5
3834 fi 3840 fi
3835 3841
3836 3842
3837 3843
3838 echo $ac_n "checking for utime""... $ac_c" 1>&6 3844 echo $ac_n "checking for utime""... $ac_c" 1>&6
3839 echo "configure:3840: checking for utime" >&5 3845 echo "configure:3846: checking for utime" >&5
3840 cat > conftest.$ac_ext <<EOF 3846 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure" 3847 #line 3848 "configure"
3842 #include "confdefs.h" 3848 #include "confdefs.h"
3843 #include <sys/types.h> 3849 #include <sys/types.h>
3844 #include <utime.h> 3850 #include <utime.h>
3845 int main() { 3851 int main() {
3846 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 3852 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3847 ; return 0; } 3853 ; return 0; }
3848 EOF 3854 EOF
3849 if { (eval echo configure:3850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3855 if { (eval echo configure:3856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3850 rm -rf conftest* 3856 rm -rf conftest*
3851 echo "$ac_t""yes" 1>&6 3857 echo "$ac_t""yes" 1>&6
3852 { test "$extra_verbose" = "yes" && cat << \EOF 3858 { test "$extra_verbose" = "yes" && cat << \EOF
3853 Defining HAVE_UTIME 3859 Defining HAVE_UTIME
3854 EOF 3860 EOF
3863 rm -rf conftest* 3869 rm -rf conftest*
3864 echo "$ac_t""no" 1>&6 3870 echo "$ac_t""no" 1>&6
3865 for ac_func in utimes 3871 for ac_func in utimes
3866 do 3872 do
3867 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3868 echo "configure:3869: checking for $ac_func" >&5 3874 echo "configure:3875: checking for $ac_func" >&5
3869 3875
3870 cat > conftest.$ac_ext <<EOF 3876 cat > conftest.$ac_ext <<EOF
3871 #line 3872 "configure" 3877 #line 3878 "configure"
3872 #include "confdefs.h" 3878 #include "confdefs.h"
3873 /* System header to define __stub macros and hopefully few prototypes, 3879 /* System header to define __stub macros and hopefully few prototypes,
3874 which can conflict with char $ac_func(); below. */ 3880 which can conflict with char $ac_func(); below. */
3875 #include <assert.h> 3881 #include <assert.h>
3876 /* Override any gcc2 internal prototype to avoid an error. */ 3882 /* Override any gcc2 internal prototype to avoid an error. */
3889 $ac_func(); 3895 $ac_func();
3890 #endif 3896 #endif
3891 3897
3892 ; return 0; } 3898 ; return 0; }
3893 EOF 3899 EOF
3894 if { (eval echo configure:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 rm -rf conftest* 3901 rm -rf conftest*
3896 eval "ac_cv_func_$ac_func=yes" 3902 eval "ac_cv_func_$ac_func=yes"
3897 else 3903 else
3898 echo "configure: failed program was:" >&5 3904 echo "configure: failed program was:" >&5
3899 cat conftest.$ac_ext >&5 3905 cat conftest.$ac_ext >&5
3921 fi 3927 fi
3922 rm -f conftest* 3928 rm -f conftest*
3923 3929
3924 3930
3925 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3931 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3926 echo "configure:3927: checking return type of signal handlers" >&5 3932 echo "configure:3933: checking return type of signal handlers" >&5
3927 3933
3928 cat > conftest.$ac_ext <<EOF 3934 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure" 3935 #line 3936 "configure"
3930 #include "confdefs.h" 3936 #include "confdefs.h"
3931 #include <sys/types.h> 3937 #include <sys/types.h>
3932 #include <signal.h> 3938 #include <signal.h>
3933 #ifdef signal 3939 #ifdef signal
3934 #undef signal 3940 #undef signal
3941 3947
3942 int main() { 3948 int main() {
3943 int i; 3949 int i;
3944 ; return 0; } 3950 ; return 0; }
3945 EOF 3951 EOF
3946 if { (eval echo configure:3947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3952 if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3947 rm -rf conftest* 3953 rm -rf conftest*
3948 ac_cv_type_signal=void 3954 ac_cv_type_signal=void
3949 else 3955 else
3950 echo "configure: failed program was:" >&5 3956 echo "configure: failed program was:" >&5
3951 cat conftest.$ac_ext >&5 3957 cat conftest.$ac_ext >&5
3963 EOF 3969 EOF
3964 } 3970 }
3965 3971
3966 3972
3967 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3973 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3968 echo "configure:3969: checking for size_t" >&5 3974 echo "configure:3975: checking for size_t" >&5
3969 3975
3970 cat > conftest.$ac_ext <<EOF 3976 cat > conftest.$ac_ext <<EOF
3971 #line 3972 "configure" 3977 #line 3978 "configure"
3972 #include "confdefs.h" 3978 #include "confdefs.h"
3973 #include <sys/types.h> 3979 #include <sys/types.h>
3974 #if STDC_HEADERS 3980 #if STDC_HEADERS
3975 #include <stdlib.h> 3981 #include <stdlib.h>
3976 #include <stddef.h> 3982 #include <stddef.h>
3997 } 4003 }
3998 4004
3999 fi 4005 fi
4000 4006
4001 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 4007 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4002 echo "configure:4003: checking for pid_t" >&5 4008 echo "configure:4009: checking for pid_t" >&5
4003 4009
4004 cat > conftest.$ac_ext <<EOF 4010 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure" 4011 #line 4012 "configure"
4006 #include "confdefs.h" 4012 #include "confdefs.h"
4007 #include <sys/types.h> 4013 #include <sys/types.h>
4008 #if STDC_HEADERS 4014 #if STDC_HEADERS
4009 #include <stdlib.h> 4015 #include <stdlib.h>
4010 #include <stddef.h> 4016 #include <stddef.h>
4031 } 4037 }
4032 4038
4033 fi 4039 fi
4034 4040
4035 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 4041 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4036 echo "configure:4037: checking for uid_t in sys/types.h" >&5 4042 echo "configure:4043: checking for uid_t in sys/types.h" >&5
4037 4043
4038 cat > conftest.$ac_ext <<EOF 4044 cat > conftest.$ac_ext <<EOF
4039 #line 4040 "configure" 4045 #line 4046 "configure"
4040 #include "confdefs.h" 4046 #include "confdefs.h"
4041 #include <sys/types.h> 4047 #include <sys/types.h>
4042 EOF 4048 EOF
4043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4044 egrep "uid_t" >/dev/null 2>&1; then 4050 egrep "uid_t" >/dev/null 2>&1; then
4070 } 4076 }
4071 4077
4072 fi 4078 fi
4073 4079
4074 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 4080 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4075 echo "configure:4076: checking for mode_t" >&5 4081 echo "configure:4082: checking for mode_t" >&5
4076 4082
4077 cat > conftest.$ac_ext <<EOF 4083 cat > conftest.$ac_ext <<EOF
4078 #line 4079 "configure" 4084 #line 4085 "configure"
4079 #include "confdefs.h" 4085 #include "confdefs.h"
4080 #include <sys/types.h> 4086 #include <sys/types.h>
4081 #if STDC_HEADERS 4087 #if STDC_HEADERS
4082 #include <stdlib.h> 4088 #include <stdlib.h>
4083 #include <stddef.h> 4089 #include <stddef.h>
4104 } 4110 }
4105 4111
4106 fi 4112 fi
4107 4113
4108 echo $ac_n "checking for off_t""... $ac_c" 1>&6 4114 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4109 echo "configure:4110: checking for off_t" >&5 4115 echo "configure:4116: checking for off_t" >&5
4110 4116
4111 cat > conftest.$ac_ext <<EOF 4117 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure" 4118 #line 4119 "configure"
4113 #include "confdefs.h" 4119 #include "confdefs.h"
4114 #include <sys/types.h> 4120 #include <sys/types.h>
4115 #if STDC_HEADERS 4121 #if STDC_HEADERS
4116 #include <stdlib.h> 4122 #include <stdlib.h>
4117 #include <stddef.h> 4123 #include <stddef.h>
4138 } 4144 }
4139 4145
4140 fi 4146 fi
4141 4147
4142 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4148 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4143 echo "configure:4144: checking for ssize_t" >&5 4149 echo "configure:4150: checking for ssize_t" >&5
4144 4150
4145 cat > conftest.$ac_ext <<EOF 4151 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure" 4152 #line 4153 "configure"
4147 #include "confdefs.h" 4153 #include "confdefs.h"
4148 #include <sys/types.h> 4154 #include <sys/types.h>
4149 #if STDC_HEADERS 4155 #if STDC_HEADERS
4150 #include <stdlib.h> 4156 #include <stdlib.h>
4151 #include <stddef.h> 4157 #include <stddef.h>
4173 4179
4174 fi 4180 fi
4175 4181
4176 4182
4177 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4183 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4178 echo "configure:4179: checking for socklen_t" >&5 4184 echo "configure:4185: checking for socklen_t" >&5
4179 cat > conftest.$ac_ext <<EOF 4185 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure" 4186 #line 4187 "configure"
4181 #include "confdefs.h" 4187 #include "confdefs.h"
4182 #include <sys/socket.h> 4188 #include <sys/socket.h>
4183 socklen_t x; 4189 socklen_t x;
4184 4190
4185 int main() { 4191 int main() {
4186 4192
4187 ; return 0; } 4193 ; return 0; }
4188 EOF 4194 EOF
4189 if { (eval echo configure:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4190 rm -rf conftest* 4196 rm -rf conftest*
4191 echo "$ac_t""yes" 1>&6 4197 echo "$ac_t""yes" 1>&6
4192 else 4198 else
4193 echo "configure: failed program was:" >&5 4199 echo "configure: failed program was:" >&5
4194 cat conftest.$ac_ext >&5 4200 cat conftest.$ac_ext >&5
4195 rm -rf conftest* 4201 rm -rf conftest*
4196 4202
4197 cat > conftest.$ac_ext <<EOF 4203 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure" 4204 #line 4205 "configure"
4199 #include "confdefs.h" 4205 #include "confdefs.h"
4200 #include <sys/socket.h> 4206 #include <sys/socket.h>
4201 int accept (int, struct sockaddr *, size_t *); 4207 int accept (int, struct sockaddr *, size_t *);
4202 4208
4203 int main() { 4209 int main() {
4204 4210
4205 ; return 0; } 4211 ; return 0; }
4206 EOF 4212 EOF
4207 if { (eval echo configure:4208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4213 if { (eval echo configure:4214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4208 rm -rf conftest* 4214 rm -rf conftest*
4209 4215
4210 echo "$ac_t""size_t" 1>&6 4216 echo "$ac_t""size_t" 1>&6
4211 { test "$extra_verbose" = "yes" && cat << \EOF 4217 { test "$extra_verbose" = "yes" && cat << \EOF
4212 Defining socklen_t = size_t 4218 Defining socklen_t = size_t
4234 rm -f conftest* 4240 rm -f conftest*
4235 fi 4241 fi
4236 rm -f conftest* 4242 rm -f conftest*
4237 4243
4238 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4244 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4239 echo "configure:4240: checking for struct timeval" >&5 4245 echo "configure:4246: checking for struct timeval" >&5
4240 cat > conftest.$ac_ext <<EOF 4246 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure" 4247 #line 4248 "configure"
4242 #include "confdefs.h" 4248 #include "confdefs.h"
4243 #ifdef TIME_WITH_SYS_TIME 4249 #ifdef TIME_WITH_SYS_TIME
4244 #include <sys/time.h> 4250 #include <sys/time.h>
4245 #include <time.h> 4251 #include <time.h>
4246 #else 4252 #else
4252 #endif 4258 #endif
4253 int main() { 4259 int main() {
4254 static struct timeval x; x.tv_sec = x.tv_usec; 4260 static struct timeval x; x.tv_sec = x.tv_usec;
4255 ; return 0; } 4261 ; return 0; }
4256 EOF 4262 EOF
4257 if { (eval echo configure:4258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4263 if { (eval echo configure:4264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4258 rm -rf conftest* 4264 rm -rf conftest*
4259 echo "$ac_t""yes" 1>&6 4265 echo "$ac_t""yes" 1>&6
4260 HAVE_TIMEVAL=yes 4266 HAVE_TIMEVAL=yes
4261 { test "$extra_verbose" = "yes" && cat << \EOF 4267 { test "$extra_verbose" = "yes" && cat << \EOF
4262 Defining HAVE_TIMEVAL 4268 Defining HAVE_TIMEVAL
4274 HAVE_TIMEVAL=no 4280 HAVE_TIMEVAL=no
4275 fi 4281 fi
4276 rm -f conftest* 4282 rm -f conftest*
4277 4283
4278 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4284 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4279 echo "configure:4280: checking whether struct tm is in sys/time.h or time.h" >&5 4285 echo "configure:4286: checking whether struct tm is in sys/time.h or time.h" >&5
4280 4286
4281 cat > conftest.$ac_ext <<EOF 4287 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure" 4288 #line 4289 "configure"
4283 #include "confdefs.h" 4289 #include "confdefs.h"
4284 #include <sys/types.h> 4290 #include <sys/types.h>
4285 #include <time.h> 4291 #include <time.h>
4286 int main() { 4292 int main() {
4287 struct tm *tp; tp->tm_sec; 4293 struct tm *tp; tp->tm_sec;
4288 ; return 0; } 4294 ; return 0; }
4289 EOF 4295 EOF
4290 if { (eval echo configure:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4291 rm -rf conftest* 4297 rm -rf conftest*
4292 ac_cv_struct_tm=time.h 4298 ac_cv_struct_tm=time.h
4293 else 4299 else
4294 echo "configure: failed program was:" >&5 4300 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5 4301 cat conftest.$ac_ext >&5
4309 } 4315 }
4310 4316
4311 fi 4317 fi
4312 4318
4313 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4319 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4314 echo "configure:4315: checking for tm_zone in struct tm" >&5 4320 echo "configure:4321: checking for tm_zone in struct tm" >&5
4315 4321
4316 cat > conftest.$ac_ext <<EOF 4322 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure" 4323 #line 4324 "configure"
4318 #include "confdefs.h" 4324 #include "confdefs.h"
4319 #include <sys/types.h> 4325 #include <sys/types.h>
4320 #include <$ac_cv_struct_tm> 4326 #include <$ac_cv_struct_tm>
4321 int main() { 4327 int main() {
4322 struct tm tm; tm.tm_zone; 4328 struct tm tm; tm.tm_zone;
4323 ; return 0; } 4329 ; return 0; }
4324 EOF 4330 EOF
4325 if { (eval echo configure:4326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 rm -rf conftest* 4332 rm -rf conftest*
4327 ac_cv_struct_tm_zone=yes 4333 ac_cv_struct_tm_zone=yes
4328 else 4334 else
4329 echo "configure: failed program was:" >&5 4335 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5 4336 cat conftest.$ac_ext >&5
4343 EOF 4349 EOF
4344 } 4350 }
4345 4351
4346 else 4352 else
4347 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4353 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4348 echo "configure:4349: checking for tzname" >&5 4354 echo "configure:4355: checking for tzname" >&5
4349 4355
4350 cat > conftest.$ac_ext <<EOF 4356 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure" 4357 #line 4358 "configure"
4352 #include "confdefs.h" 4358 #include "confdefs.h"
4353 #include <time.h> 4359 #include <time.h>
4354 #ifndef tzname /* For SGI. */ 4360 #ifndef tzname /* For SGI. */
4355 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4361 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4356 #endif 4362 #endif
4357 int main() { 4363 int main() {
4358 atoi(*tzname); 4364 atoi(*tzname);
4359 ; return 0; } 4365 ; return 0; }
4360 EOF 4366 EOF
4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4367 if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4362 rm -rf conftest* 4368 rm -rf conftest*
4363 ac_cv_var_tzname=yes 4369 ac_cv_var_tzname=yes
4364 else 4370 else
4365 echo "configure: failed program was:" >&5 4371 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5 4372 cat conftest.$ac_ext >&5
4382 fi 4388 fi
4383 fi 4389 fi
4384 4390
4385 4391
4386 echo $ac_n "checking for working const""... $ac_c" 1>&6 4392 echo $ac_n "checking for working const""... $ac_c" 1>&6
4387 echo "configure:4388: checking for working const" >&5 4393 echo "configure:4394: checking for working const" >&5
4388 4394
4389 cat > conftest.$ac_ext <<EOF 4395 cat > conftest.$ac_ext <<EOF
4390 #line 4391 "configure" 4396 #line 4397 "configure"
4391 #include "confdefs.h" 4397 #include "confdefs.h"
4392 4398
4393 int main() { 4399 int main() {
4394 4400
4395 /* Ultrix mips cc rejects this. */ 4401 /* Ultrix mips cc rejects this. */
4434 const int foo = 10; 4440 const int foo = 10;
4435 } 4441 }
4436 4442
4437 ; return 0; } 4443 ; return 0; }
4438 EOF 4444 EOF
4439 if { (eval echo configure:4440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4445 if { (eval echo configure:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4440 rm -rf conftest* 4446 rm -rf conftest*
4441 ac_cv_c_const=yes 4447 ac_cv_c_const=yes
4442 else 4448 else
4443 echo "configure: failed program was:" >&5 4449 echo "configure: failed program was:" >&5
4444 cat conftest.$ac_ext >&5 4450 cat conftest.$ac_ext >&5
4459 4465
4460 fi 4466 fi
4461 4467
4462 4468
4463 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4469 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4464 echo "configure:4465: checking whether ${MAKE-make} sets \${MAKE}" >&5 4470 echo "configure:4471: checking whether ${MAKE-make} sets \${MAKE}" >&5
4465 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4471 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4466 4472
4467 cat > conftestmake <<\EOF 4473 cat > conftestmake <<\EOF
4468 all: 4474 all:
4469 @echo 'ac_maketemp="${MAKE}"' 4475 @echo 'ac_maketemp="${MAKE}"'
4484 SET_MAKE="MAKE=${MAKE-make}" 4490 SET_MAKE="MAKE=${MAKE-make}"
4485 fi 4491 fi
4486 4492
4487 4493
4488 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4494 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4489 echo "configure:4490: checking whether byte ordering is bigendian" >&5 4495 echo "configure:4496: checking whether byte ordering is bigendian" >&5
4490 4496
4491 ac_cv_c_bigendian=unknown 4497 ac_cv_c_bigendian=unknown
4492 # See if sys/param.h defines the BYTE_ORDER macro. 4498 # See if sys/param.h defines the BYTE_ORDER macro.
4493 cat > conftest.$ac_ext <<EOF 4499 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure" 4500 #line 4501 "configure"
4495 #include "confdefs.h" 4501 #include "confdefs.h"
4496 #include <sys/types.h> 4502 #include <sys/types.h>
4497 #include <sys/param.h> 4503 #include <sys/param.h>
4498 int main() { 4504 int main() {
4499 4505
4500 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4506 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4501 bogus endian macros 4507 bogus endian macros
4502 #endif 4508 #endif
4503 ; return 0; } 4509 ; return 0; }
4504 EOF 4510 EOF
4505 if { (eval echo configure:4506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4511 if { (eval echo configure:4512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4506 rm -rf conftest* 4512 rm -rf conftest*
4507 # It does; now see whether it defined to BIG_ENDIAN or not. 4513 # It does; now see whether it defined to BIG_ENDIAN or not.
4508 cat > conftest.$ac_ext <<EOF 4514 cat > conftest.$ac_ext <<EOF
4509 #line 4510 "configure" 4515 #line 4516 "configure"
4510 #include "confdefs.h" 4516 #include "confdefs.h"
4511 #include <sys/types.h> 4517 #include <sys/types.h>
4512 #include <sys/param.h> 4518 #include <sys/param.h>
4513 int main() { 4519 int main() {
4514 4520
4515 #if BYTE_ORDER != BIG_ENDIAN 4521 #if BYTE_ORDER != BIG_ENDIAN
4516 not big endian 4522 not big endian
4517 #endif 4523 #endif
4518 ; return 0; } 4524 ; return 0; }
4519 EOF 4525 EOF
4520 if { (eval echo configure:4521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4521 rm -rf conftest* 4527 rm -rf conftest*
4522 ac_cv_c_bigendian=yes 4528 ac_cv_c_bigendian=yes
4523 else 4529 else
4524 echo "configure: failed program was:" >&5 4530 echo "configure: failed program was:" >&5
4525 cat conftest.$ac_ext >&5 4531 cat conftest.$ac_ext >&5
4532 cat conftest.$ac_ext >&5 4538 cat conftest.$ac_ext >&5
4533 fi 4539 fi
4534 rm -f conftest* 4540 rm -f conftest*
4535 if test $ac_cv_c_bigendian = unknown; then 4541 if test $ac_cv_c_bigendian = unknown; then
4536 cat > conftest.$ac_ext <<EOF 4542 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure" 4543 #line 4544 "configure"
4538 #include "confdefs.h" 4544 #include "confdefs.h"
4539 main () { 4545 main () {
4540 /* Are we little or big endian? From Harbison&Steele. */ 4546 /* Are we little or big endian? From Harbison&Steele. */
4541 union 4547 union
4542 { 4548 {
4545 } u; 4551 } u;
4546 u.l = 1; 4552 u.l = 1;
4547 exit (u.c[sizeof (long) - 1] == 1); 4553 exit (u.c[sizeof (long) - 1] == 1);
4548 } 4554 }
4549 EOF 4555 EOF
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4551 then 4557 then
4552 ac_cv_c_bigendian=no 4558 ac_cv_c_bigendian=no
4553 else 4559 else
4554 conftest_rc="$?" 4560 conftest_rc="$?"
4555 echo "configure: failed program was:" >&5 4561 echo "configure: failed program was:" >&5
4572 4578
4573 fi 4579 fi
4574 4580
4575 4581
4576 echo $ac_n "checking size of short""... $ac_c" 1>&6 4582 echo $ac_n "checking size of short""... $ac_c" 1>&6
4577 echo "configure:4578: checking size of short" >&5 4583 echo "configure:4584: checking size of short" >&5
4578 4584
4579 cat > conftest.$ac_ext <<EOF 4585 cat > conftest.$ac_ext <<EOF
4580 #line 4581 "configure" 4586 #line 4587 "configure"
4581 #include "confdefs.h" 4587 #include "confdefs.h"
4582 #include <stdio.h> 4588 #include <stdio.h>
4583 main() 4589 main()
4584 { 4590 {
4585 FILE *f=fopen("conftestval", "w"); 4591 FILE *f=fopen("conftestval", "w");
4586 if (!f) exit(1); 4592 if (!f) exit(1);
4587 fprintf(f, "%d\n", sizeof(short)); 4593 fprintf(f, "%d\n", sizeof(short));
4588 exit(0); 4594 exit(0);
4589 } 4595 }
4590 EOF 4596 EOF
4591 if { (eval echo configure:4592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4597 if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4592 then 4598 then
4593 ac_cv_sizeof_short=`cat conftestval` 4599 ac_cv_sizeof_short=`cat conftestval`
4594 else 4600 else
4595 conftest_rc="$?" 4601 conftest_rc="$?"
4596 echo "configure: failed program was:" >&5 4602 echo "configure: failed program was:" >&5
4614 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4620 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4615 echo "*** PANIC *** Please examine config.log for compilation errors." 4621 echo "*** PANIC *** Please examine config.log for compilation errors."
4616 exit 1 4622 exit 1
4617 fi 4623 fi
4618 echo $ac_n "checking size of int""... $ac_c" 1>&6 4624 echo $ac_n "checking size of int""... $ac_c" 1>&6
4619 echo "configure:4620: checking size of int" >&5 4625 echo "configure:4626: checking size of int" >&5
4620 4626
4621 cat > conftest.$ac_ext <<EOF 4627 cat > conftest.$ac_ext <<EOF
4622 #line 4623 "configure" 4628 #line 4629 "configure"
4623 #include "confdefs.h" 4629 #include "confdefs.h"
4624 #include <stdio.h> 4630 #include <stdio.h>
4625 main() 4631 main()
4626 { 4632 {
4627 FILE *f=fopen("conftestval", "w"); 4633 FILE *f=fopen("conftestval", "w");
4628 if (!f) exit(1); 4634 if (!f) exit(1);
4629 fprintf(f, "%d\n", sizeof(int)); 4635 fprintf(f, "%d\n", sizeof(int));
4630 exit(0); 4636 exit(0);
4631 } 4637 }
4632 EOF 4638 EOF
4633 if { (eval echo configure:4634: \"$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
4634 then 4640 then
4635 ac_cv_sizeof_int=`cat conftestval` 4641 ac_cv_sizeof_int=`cat conftestval`
4636 else 4642 else
4637 conftest_rc="$?" 4643 conftest_rc="$?"
4638 echo "configure: failed program was:" >&5 4644 echo "configure: failed program was:" >&5
4650 EOF 4656 EOF
4651 } 4657 }
4652 4658
4653 4659
4654 echo $ac_n "checking size of long""... $ac_c" 1>&6 4660 echo $ac_n "checking size of long""... $ac_c" 1>&6
4655 echo "configure:4656: checking size of long" >&5 4661 echo "configure:4662: checking size of long" >&5
4656 4662
4657 cat > conftest.$ac_ext <<EOF 4663 cat > conftest.$ac_ext <<EOF
4658 #line 4659 "configure" 4664 #line 4665 "configure"
4659 #include "confdefs.h" 4665 #include "confdefs.h"
4660 #include <stdio.h> 4666 #include <stdio.h>
4661 main() 4667 main()
4662 { 4668 {
4663 FILE *f=fopen("conftestval", "w"); 4669 FILE *f=fopen("conftestval", "w");
4664 if (!f) exit(1); 4670 if (!f) exit(1);
4665 fprintf(f, "%d\n", sizeof(long)); 4671 fprintf(f, "%d\n", sizeof(long));
4666 exit(0); 4672 exit(0);
4667 } 4673 }
4668 EOF 4674 EOF
4669 if { (eval echo configure:4670: \"$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
4670 then 4676 then
4671 ac_cv_sizeof_long=`cat conftestval` 4677 ac_cv_sizeof_long=`cat conftestval`
4672 else 4678 else
4673 conftest_rc="$?" 4679 conftest_rc="$?"
4674 echo "configure: failed program was:" >&5 4680 echo "configure: failed program was:" >&5
4686 EOF 4692 EOF
4687 } 4693 }
4688 4694
4689 4695
4690 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4696 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4691 echo "configure:4692: checking size of long long" >&5 4697 echo "configure:4698: checking size of long long" >&5
4692 4698
4693 cat > conftest.$ac_ext <<EOF 4699 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure" 4700 #line 4701 "configure"
4695 #include "confdefs.h" 4701 #include "confdefs.h"
4696 #include <stdio.h> 4702 #include <stdio.h>
4697 main() 4703 main()
4698 { 4704 {
4699 FILE *f=fopen("conftestval", "w"); 4705 FILE *f=fopen("conftestval", "w");
4700 if (!f) exit(1); 4706 if (!f) exit(1);
4701 fprintf(f, "%d\n", sizeof(long long)); 4707 fprintf(f, "%d\n", sizeof(long long));
4702 exit(0); 4708 exit(0);
4703 } 4709 }
4704 EOF 4710 EOF
4705 if { (eval echo configure:4706: \"$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
4706 then 4712 then
4707 ac_cv_sizeof_long_long=`cat conftestval` 4713 ac_cv_sizeof_long_long=`cat conftestval`
4708 else 4714 else
4709 conftest_rc="$?" 4715 conftest_rc="$?"
4710 echo "configure: failed program was:" >&5 4716 echo "configure: failed program was:" >&5
4722 EOF 4728 EOF
4723 } 4729 }
4724 4730
4725 4731
4726 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4732 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4727 echo "configure:4728: checking size of void *" >&5 4733 echo "configure:4734: checking size of void *" >&5
4728 4734
4729 cat > conftest.$ac_ext <<EOF 4735 cat > conftest.$ac_ext <<EOF
4730 #line 4731 "configure" 4736 #line 4737 "configure"
4731 #include "confdefs.h" 4737 #include "confdefs.h"
4732 #include <stdio.h> 4738 #include <stdio.h>
4733 main() 4739 main()
4734 { 4740 {
4735 FILE *f=fopen("conftestval", "w"); 4741 FILE *f=fopen("conftestval", "w");
4736 if (!f) exit(1); 4742 if (!f) exit(1);
4737 fprintf(f, "%d\n", sizeof(void *)); 4743 fprintf(f, "%d\n", sizeof(void *));
4738 exit(0); 4744 exit(0);
4739 } 4745 }
4740 EOF 4746 EOF
4741 if { (eval echo configure:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4747 if { (eval echo configure:4748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4742 then 4748 then
4743 ac_cv_sizeof_void_p=`cat conftestval` 4749 ac_cv_sizeof_void_p=`cat conftestval`
4744 else 4750 else
4745 conftest_rc="$?" 4751 conftest_rc="$?"
4746 echo "configure: failed program was:" >&5 4752 echo "configure: failed program was:" >&5
4759 } 4765 }
4760 4766
4761 4767
4762 4768
4763 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4769 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4764 echo "configure:4765: checking for long file names" >&5 4770 echo "configure:4771: checking for long file names" >&5
4765 4771
4766 ac_cv_sys_long_file_names=yes 4772 ac_cv_sys_long_file_names=yes
4767 # Test for long file names in all the places we know might matter: 4773 # Test for long file names in all the places we know might matter:
4768 # . the current directory, where building will happen 4774 # . the current directory, where building will happen
4769 # $prefix/lib where we will be installing things 4775 # $prefix/lib where we will be installing things
4805 4811
4806 fi 4812 fi
4807 4813
4808 4814
4809 echo $ac_n "checking for sin""... $ac_c" 1>&6 4815 echo $ac_n "checking for sin""... $ac_c" 1>&6
4810 echo "configure:4811: checking for sin" >&5 4816 echo "configure:4817: checking for sin" >&5
4811 4817
4812 cat > conftest.$ac_ext <<EOF 4818 cat > conftest.$ac_ext <<EOF
4813 #line 4814 "configure" 4819 #line 4820 "configure"
4814 #include "confdefs.h" 4820 #include "confdefs.h"
4815 /* System header to define __stub macros and hopefully few prototypes, 4821 /* System header to define __stub macros and hopefully few prototypes,
4816 which can conflict with char sin(); below. */ 4822 which can conflict with char sin(); below. */
4817 #include <assert.h> 4823 #include <assert.h>
4818 /* Override any gcc2 internal prototype to avoid an error. */ 4824 /* Override any gcc2 internal prototype to avoid an error. */
4831 sin(); 4837 sin();
4832 #endif 4838 #endif
4833 4839
4834 ; return 0; } 4840 ; return 0; }
4835 EOF 4841 EOF
4836 if { (eval echo configure:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4837 rm -rf conftest* 4843 rm -rf conftest*
4838 eval "ac_cv_func_sin=yes" 4844 eval "ac_cv_func_sin=yes"
4839 else 4845 else
4840 echo "configure: failed program was:" >&5 4846 echo "configure: failed program was:" >&5
4841 cat conftest.$ac_ext >&5 4847 cat conftest.$ac_ext >&5
4849 : 4855 :
4850 else 4856 else
4851 echo "$ac_t""no" 1>&6 4857 echo "$ac_t""no" 1>&6
4852 4858
4853 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4859 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4854 echo "configure:4855: checking for sin in -lm" >&5 4860 echo "configure:4861: checking for sin in -lm" >&5
4855 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4861 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4856 4862
4857 xe_check_libs=" -lm " 4863 xe_check_libs=" -lm "
4858 cat > conftest.$ac_ext <<EOF 4864 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure" 4865 #line 4866 "configure"
4860 #include "confdefs.h" 4866 #include "confdefs.h"
4861 /* Override any gcc2 internal prototype to avoid an error. */ 4867 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2 4868 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */ 4869 builtin and then its argument prototype would still apply. */
4864 char sin(); 4870 char sin();
4865 4871
4866 int main() { 4872 int main() {
4867 sin() 4873 sin()
4868 ; return 0; } 4874 ; return 0; }
4869 EOF 4875 EOF
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4876 if { (eval echo configure:4877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 rm -rf conftest* 4877 rm -rf conftest*
4872 eval "ac_cv_lib_$ac_lib_var=yes" 4878 eval "ac_cv_lib_$ac_lib_var=yes"
4873 else 4879 else
4874 echo "configure: failed program was:" >&5 4880 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5 4881 cat conftest.$ac_ext >&5
4900 4906
4901 fi 4907 fi
4902 4908
4903 4909
4904 cat > conftest.$ac_ext <<EOF 4910 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure" 4911 #line 4912 "configure"
4906 #include "confdefs.h" 4912 #include "confdefs.h"
4907 #include <math.h> 4913 #include <math.h>
4908 int main() { 4914 int main() {
4909 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4915 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4910 ; return 0; } 4916 ; return 0; }
4911 EOF 4917 EOF
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4918 if { (eval echo configure:4919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4913 rm -rf conftest* 4919 rm -rf conftest*
4914 { test "$extra_verbose" = "yes" && cat << \EOF 4920 { test "$extra_verbose" = "yes" && cat << \EOF
4915 Defining HAVE_INVERSE_HYPERBOLIC 4921 Defining HAVE_INVERSE_HYPERBOLIC
4916 EOF 4922 EOF
4917 cat >> confdefs.h <<\EOF 4923 cat >> confdefs.h <<\EOF
4926 rm -f conftest* 4932 rm -f conftest*
4927 4933
4928 for ac_func in mkstemp 4934 for ac_func in mkstemp
4929 do 4935 do
4930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4931 echo "configure:4932: checking for $ac_func" >&5 4937 echo "configure:4938: checking for $ac_func" >&5
4932 4938
4933 cat > conftest.$ac_ext <<EOF 4939 cat > conftest.$ac_ext <<EOF
4934 #line 4935 "configure" 4940 #line 4941 "configure"
4935 #include "confdefs.h" 4941 #include "confdefs.h"
4936 /* System header to define __stub macros and hopefully few prototypes, 4942 /* System header to define __stub macros and hopefully few prototypes,
4937 which can conflict with char $ac_func(); below. */ 4943 which can conflict with char $ac_func(); below. */
4938 #include <assert.h> 4944 #include <assert.h>
4939 /* Override any gcc2 internal prototype to avoid an error. */ 4945 /* Override any gcc2 internal prototype to avoid an error. */
4952 $ac_func(); 4958 $ac_func();
4953 #endif 4959 #endif
4954 4960
4955 ; return 0; } 4961 ; return 0; }
4956 EOF 4962 EOF
4957 if { (eval echo configure:4958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4963 if { (eval echo configure:4964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4958 rm -rf conftest* 4964 rm -rf conftest*
4959 eval "ac_cv_func_$ac_func=yes" 4965 eval "ac_cv_func_$ac_func=yes"
4960 else 4966 else
4961 echo "configure: failed program was:" >&5 4967 echo "configure: failed program was:" >&5
4962 cat conftest.$ac_ext >&5 4968 cat conftest.$ac_ext >&5
4981 fi 4987 fi
4982 done 4988 done
4983 4989
4984 4990
4985 echo "checking type of mail spool file locking" 1>&6 4991 echo "checking type of mail spool file locking" 1>&6
4986 echo "configure:4987: checking type of mail spool file locking" >&5 4992 echo "configure:4993: checking type of mail spool file locking" >&5
4987 for ac_func in lockf flock 4993 for ac_func in lockf flock
4988 do 4994 do
4989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4990 echo "configure:4991: checking for $ac_func" >&5 4996 echo "configure:4997: checking for $ac_func" >&5
4991 4997
4992 cat > conftest.$ac_ext <<EOF 4998 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure" 4999 #line 5000 "configure"
4994 #include "confdefs.h" 5000 #include "confdefs.h"
4995 /* System header to define __stub macros and hopefully few prototypes, 5001 /* System header to define __stub macros and hopefully few prototypes,
4996 which can conflict with char $ac_func(); below. */ 5002 which can conflict with char $ac_func(); below. */
4997 #include <assert.h> 5003 #include <assert.h>
4998 /* Override any gcc2 internal prototype to avoid an error. */ 5004 /* Override any gcc2 internal prototype to avoid an error. */
5011 $ac_func(); 5017 $ac_func();
5012 #endif 5018 #endif
5013 5019
5014 ; return 0; } 5020 ; return 0; }
5015 EOF 5021 EOF
5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5022 if { (eval echo configure:5023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5017 rm -rf conftest* 5023 rm -rf conftest*
5018 eval "ac_cv_func_$ac_func=yes" 5024 eval "ac_cv_func_$ac_func=yes"
5019 else 5025 else
5020 echo "configure: failed program was:" >&5 5026 echo "configure: failed program was:" >&5
5021 cat conftest.$ac_ext >&5 5027 cat conftest.$ac_ext >&5
5093 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 5099 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5094 5100
5095 case "$opsys" in decosf*) 5101 case "$opsys" in decosf*)
5096 5102
5097 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 5103 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5098 echo "configure:5099: checking for cma_open in -lpthreads" >&5 5104 echo "configure:5105: checking for cma_open in -lpthreads" >&5
5099 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 5105 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5100 5106
5101 xe_check_libs=" -lpthreads " 5107 xe_check_libs=" -lpthreads "
5102 cat > conftest.$ac_ext <<EOF 5108 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure" 5109 #line 5110 "configure"
5104 #include "confdefs.h" 5110 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */ 5111 /* Override any gcc2 internal prototype to avoid an error. */
5106 /* We use char because int might match the return type of a gcc2 5112 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */ 5113 builtin and then its argument prototype would still apply. */
5108 char cma_open(); 5114 char cma_open();
5109 5115
5110 int main() { 5116 int main() {
5111 cma_open() 5117 cma_open()
5112 ; return 0; } 5118 ; return 0; }
5113 EOF 5119 EOF
5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5115 rm -rf conftest* 5121 rm -rf conftest*
5116 eval "ac_cv_lib_$ac_lib_var=yes" 5122 eval "ac_cv_lib_$ac_lib_var=yes"
5117 else 5123 else
5118 echo "configure: failed program was:" >&5 5124 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5 5125 cat conftest.$ac_ext >&5
5146 c_switch_site="$c_switch_site -threads" ;; 5152 c_switch_site="$c_switch_site -threads" ;;
5147 esac 5153 esac
5148 5154
5149 5155
5150 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5156 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5151 echo "configure:5152: checking whether the -xildoff compiler flag is required" >&5 5157 echo "configure:5158: checking whether the -xildoff compiler flag is required" >&5
5152 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5158 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5153 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5159 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5154 then echo "$ac_t""no" 1>&6; 5160 then echo "$ac_t""no" 1>&6;
5155 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 5161 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
5156 fi 5162 fi
5158 fi 5164 fi
5159 5165
5160 if test "$opsys" = "sol2"; then 5166 if test "$opsys" = "sol2"; then
5161 if test "$os_release" -ge 56; then 5167 if test "$os_release" -ge 56; then
5162 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5168 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5163 echo "configure:5164: checking for \"-z ignore\" linker flag" >&5 5169 echo "configure:5170: checking for \"-z ignore\" linker flag" >&5
5164 case "`ld -h 2>&1`" in 5170 case "`ld -h 2>&1`" in
5165 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5171 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5166 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5172 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5167 *) echo "$ac_t""no" 1>&6 ;; 5173 *) echo "$ac_t""no" 1>&6 ;;
5168 esac 5174 esac
5169 fi 5175 fi
5170 fi 5176 fi
5171 5177
5172 5178
5173 echo "checking "for specified window system"" 1>&6 5179 echo "checking "for specified window system"" 1>&6
5174 echo "configure:5175: checking "for specified window system"" >&5 5180 echo "configure:5181: checking "for specified window system"" >&5
5175 5181
5176 5182
5177 GNOME_CONFIG=no 5183 GNOME_CONFIG=no
5178 GTK_CONFIG=no 5184 GTK_CONFIG=no
5179 5185
5180 if test "$with_gnome" != "no"; then 5186 if test "$with_gnome" != "no"; then
5181 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5187 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5182 echo "configure:5183: checking for GNOME configuration script" >&5 5188 echo "configure:5189: checking for GNOME configuration script" >&5
5183 for possible in gnome-config 5189 for possible in gnome-config
5184 do 5190 do
5185 possible_version=`${possible} --version 2> /dev/null` 5191 possible_version=`${possible} --version 2> /dev/null`
5186 if test "x${possible_version}" != "x"; then 5192 if test "x${possible_version}" != "x"; then
5187 GNOME_CONFIG="${possible}" 5193 GNOME_CONFIG="${possible}"
5208 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5214 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5209 fi 5215 fi
5210 5216
5211 if test "$with_gtk" != "no";then 5217 if test "$with_gtk" != "no";then
5212 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5218 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5213 echo "configure:5214: checking for GTK configuration script" >&5 5219 echo "configure:5220: checking for GTK configuration script" >&5
5214 for possible in gtk12-config gtk14-config gtk-config 5220 for possible in gtk12-config gtk14-config gtk-config
5215 do 5221 do
5216 possible_version=`${possible} --version 2> /dev/null` 5222 possible_version=`${possible} --version 2> /dev/null`
5217 if test "x${possible_version}" != "x"; then 5223 if test "x${possible_version}" != "x"; then
5218 GTK_CONFIG="${possible}" 5224 GTK_CONFIG="${possible}"
5230 echo "$ac_t""${GTK_CONFIG}" 1>&6 5236 echo "$ac_t""${GTK_CONFIG}" 1>&6
5231 fi 5237 fi
5232 5238
5233 if test "${GTK_CONFIG}" != "no"; then 5239 if test "${GTK_CONFIG}" != "no"; then
5234 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5240 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5235 echo "configure:5236: checking gtk version" >&5 5241 echo "configure:5242: checking gtk version" >&5
5236 GTK_VERSION=`${GTK_CONFIG} --version` 5242 GTK_VERSION=`${GTK_CONFIG} --version`
5237 echo "$ac_t""${GTK_VERSION}" 1>&6 5243 echo "$ac_t""${GTK_VERSION}" 1>&6
5238 5244
5239 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5245 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5240 echo "configure:5241: checking gtk libs" >&5 5246 echo "configure:5247: checking gtk libs" >&5
5241 GTK_LIBS=`${GTK_CONFIG} --libs` 5247 GTK_LIBS=`${GTK_CONFIG} --libs`
5242 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5248 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5243 echo "$ac_t""${GTK_LIBS}" 1>&6 5249 echo "$ac_t""${GTK_LIBS}" 1>&6
5244 5250
5245 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5251 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5246 echo "configure:5247: checking gtk cflags" >&5 5252 echo "configure:5253: checking gtk cflags" >&5
5247 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5253 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5248 if test "$GCC" = "yes"; then 5254 if test "$GCC" = "yes"; then
5249 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" 5255 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5250 fi 5256 fi
5251 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5257 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5252 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5258 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5253 5259
5254 5260
5255 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5261 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5256 echo "configure:5257: checking for main in -lgdk_imlib" >&5 5262 echo "configure:5263: checking for main in -lgdk_imlib" >&5
5257 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5263 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5258 5264
5259 xe_check_libs=" -lgdk_imlib " 5265 xe_check_libs=" -lgdk_imlib "
5260 cat > conftest.$ac_ext <<EOF 5266 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure" 5267 #line 5268 "configure"
5262 #include "confdefs.h" 5268 #include "confdefs.h"
5263 5269
5264 int main() { 5270 int main() {
5265 main() 5271 main()
5266 ; return 0; } 5272 ; return 0; }
5267 EOF 5273 EOF
5268 if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5274 if { (eval echo configure:5275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5269 rm -rf conftest* 5275 rm -rf conftest*
5270 eval "ac_cv_lib_$ac_lib_var=yes" 5276 eval "ac_cv_lib_$ac_lib_var=yes"
5271 else 5277 else
5272 echo "configure: failed program was:" >&5 5278 echo "configure: failed program was:" >&5
5273 cat conftest.$ac_ext >&5 5279 cat conftest.$ac_ext >&5
5285 fi 5291 fi
5286 5292
5287 5293
5288 5294
5289 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5295 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5290 echo "configure:5291: checking for Imlib_init in -lImlib" >&5 5296 echo "configure:5297: checking for Imlib_init in -lImlib" >&5
5291 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5297 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5292 5298
5293 xe_check_libs=" -lImlib " 5299 xe_check_libs=" -lImlib "
5294 cat > conftest.$ac_ext <<EOF 5300 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure" 5301 #line 5302 "configure"
5296 #include "confdefs.h" 5302 #include "confdefs.h"
5297 /* Override any gcc2 internal prototype to avoid an error. */ 5303 /* Override any gcc2 internal prototype to avoid an error. */
5298 /* We use char because int might match the return type of a gcc2 5304 /* We use char because int might match the return type of a gcc2
5299 builtin and then its argument prototype would still apply. */ 5305 builtin and then its argument prototype would still apply. */
5300 char Imlib_init(); 5306 char Imlib_init();
5301 5307
5302 int main() { 5308 int main() {
5303 Imlib_init() 5309 Imlib_init()
5304 ; return 0; } 5310 ; return 0; }
5305 EOF 5311 EOF
5306 if { (eval echo configure:5307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5312 if { (eval echo configure:5313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5307 rm -rf conftest* 5313 rm -rf conftest*
5308 eval "ac_cv_lib_$ac_lib_var=yes" 5314 eval "ac_cv_lib_$ac_lib_var=yes"
5309 else 5315 else
5310 echo "configure: failed program was:" >&5 5316 echo "configure: failed program was:" >&5
5311 cat conftest.$ac_ext >&5 5317 cat conftest.$ac_ext >&5
5324 5330
5325 5331
5326 for ac_func in gdk_imlib_init 5332 for ac_func in gdk_imlib_init
5327 do 5333 do
5328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5329 echo "configure:5330: checking for $ac_func" >&5 5335 echo "configure:5336: checking for $ac_func" >&5
5330 5336
5331 cat > conftest.$ac_ext <<EOF 5337 cat > conftest.$ac_ext <<EOF
5332 #line 5333 "configure" 5338 #line 5339 "configure"
5333 #include "confdefs.h" 5339 #include "confdefs.h"
5334 /* System header to define __stub macros and hopefully few prototypes, 5340 /* System header to define __stub macros and hopefully few prototypes,
5335 which can conflict with char $ac_func(); below. */ 5341 which can conflict with char $ac_func(); below. */
5336 #include <assert.h> 5342 #include <assert.h>
5337 /* Override any gcc2 internal prototype to avoid an error. */ 5343 /* Override any gcc2 internal prototype to avoid an error. */
5350 $ac_func(); 5356 $ac_func();
5351 #endif 5357 #endif
5352 5358
5353 ; return 0; } 5359 ; return 0; }
5354 EOF 5360 EOF
5355 if { (eval echo configure:5356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5361 if { (eval echo configure:5362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356 rm -rf conftest* 5362 rm -rf conftest*
5357 eval "ac_cv_func_$ac_func=yes" 5363 eval "ac_cv_func_$ac_func=yes"
5358 else 5364 else
5359 echo "configure: failed program was:" >&5 5365 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5 5366 cat conftest.$ac_ext >&5
5416 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5422 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5417 for ac_hdr in glade/glade.h glade.h 5423 for ac_hdr in glade/glade.h glade.h
5418 do 5424 do
5419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5421 echo "configure:5422: checking for $ac_hdr" >&5 5427 echo "configure:5428: checking for $ac_hdr" >&5
5422 5428
5423 cat > conftest.$ac_ext <<EOF 5429 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure" 5430 #line 5431 "configure"
5425 #include "confdefs.h" 5431 #include "confdefs.h"
5426 #include <$ac_hdr> 5432 #include <$ac_hdr>
5427 EOF 5433 EOF
5428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5429 { (eval echo configure:5430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5435 { (eval echo configure:5436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5431 if test -z "$ac_err"; then 5437 if test -z "$ac_err"; then
5432 rm -rf conftest* 5438 rm -rf conftest*
5433 eval "ac_cv_header_$ac_safe=yes" 5439 eval "ac_cv_header_$ac_safe=yes"
5434 else 5440 else
5455 fi 5461 fi
5456 done 5462 done
5457 5463
5458 5464
5459 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5465 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5460 echo "configure:5461: checking for main in -lxml" >&5 5466 echo "configure:5467: checking for main in -lxml" >&5
5461 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5467 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5462 5468
5463 xe_check_libs=" -lxml " 5469 xe_check_libs=" -lxml "
5464 cat > conftest.$ac_ext <<EOF 5470 cat > conftest.$ac_ext <<EOF
5465 #line 5466 "configure" 5471 #line 5472 "configure"
5466 #include "confdefs.h" 5472 #include "confdefs.h"
5467 5473
5468 int main() { 5474 int main() {
5469 main() 5475 main()
5470 ; return 0; } 5476 ; return 0; }
5471 EOF 5477 EOF
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5478 if { (eval echo configure:5479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5473 rm -rf conftest* 5479 rm -rf conftest*
5474 eval "ac_cv_lib_$ac_lib_var=yes" 5480 eval "ac_cv_lib_$ac_lib_var=yes"
5475 else 5481 else
5476 echo "configure: failed program was:" >&5 5482 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5 5483 cat conftest.$ac_ext >&5
5489 fi 5495 fi
5490 5496
5491 5497
5492 5498
5493 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5499 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5494 echo "configure:5495: checking for main in -lglade" >&5 5500 echo "configure:5501: checking for main in -lglade" >&5
5495 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5501 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5496 5502
5497 xe_check_libs=" -lglade " 5503 xe_check_libs=" -lglade "
5498 cat > conftest.$ac_ext <<EOF 5504 cat > conftest.$ac_ext <<EOF
5499 #line 5500 "configure" 5505 #line 5506 "configure"
5500 #include "confdefs.h" 5506 #include "confdefs.h"
5501 5507
5502 int main() { 5508 int main() {
5503 main() 5509 main()
5504 ; return 0; } 5510 ; return 0; }
5505 EOF 5511 EOF
5506 if { (eval echo configure:5507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5507 rm -rf conftest* 5513 rm -rf conftest*
5508 eval "ac_cv_lib_$ac_lib_var=yes" 5514 eval "ac_cv_lib_$ac_lib_var=yes"
5509 else 5515 else
5510 echo "configure: failed program was:" >&5 5516 echo "configure: failed program was:" >&5
5511 cat conftest.$ac_ext >&5 5517 cat conftest.$ac_ext >&5
5523 fi 5529 fi
5524 5530
5525 5531
5526 5532
5527 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5533 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5528 echo "configure:5529: checking for main in -lglade-gnome" >&5 5534 echo "configure:5535: checking for main in -lglade-gnome" >&5
5529 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5535 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5530 5536
5531 xe_check_libs=" -lglade-gnome " 5537 xe_check_libs=" -lglade-gnome "
5532 cat > conftest.$ac_ext <<EOF 5538 cat > conftest.$ac_ext <<EOF
5533 #line 5534 "configure" 5539 #line 5540 "configure"
5534 #include "confdefs.h" 5540 #include "confdefs.h"
5535 5541
5536 int main() { 5542 int main() {
5537 main() 5543 main()
5538 ; return 0; } 5544 ; return 0; }
5539 EOF 5545 EOF
5540 if { (eval echo configure:5541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5546 if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5541 rm -rf conftest* 5547 rm -rf conftest*
5542 eval "ac_cv_lib_$ac_lib_var=yes" 5548 eval "ac_cv_lib_$ac_lib_var=yes"
5543 else 5549 else
5544 echo "configure: failed program was:" >&5 5550 echo "configure: failed program was:" >&5
5545 cat conftest.$ac_ext >&5 5551 cat conftest.$ac_ext >&5
5556 echo "$ac_t""no" 1>&6 5562 echo "$ac_t""no" 1>&6
5557 fi 5563 fi
5558 5564
5559 5565
5560 cat > conftest.$ac_ext <<EOF 5566 cat > conftest.$ac_ext <<EOF
5561 #line 5562 "configure" 5567 #line 5568 "configure"
5562 #include "confdefs.h" 5568 #include "confdefs.h"
5563 #include <glade/glade-xml.h> 5569 #include <glade/glade-xml.h>
5564 EOF 5570 EOF
5565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5566 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5572 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5615 # If we find X, set shell vars x_includes and x_libraries to the 5621 # If we find X, set shell vars x_includes and x_libraries to the
5616 # paths, otherwise set no_x=yes. 5622 # paths, otherwise set no_x=yes.
5617 # Uses ac_ vars as temps to allow command line to override cache and checks. 5623 # Uses ac_ vars as temps to allow command line to override cache and checks.
5618 # --without-x overrides everything else, but does not touch the cache. 5624 # --without-x overrides everything else, but does not touch the cache.
5619 echo $ac_n "checking for X""... $ac_c" 1>&6 5625 echo $ac_n "checking for X""... $ac_c" 1>&6
5620 echo "configure:5621: checking for X" >&5 5626 echo "configure:5627: checking for X" >&5
5621 5627
5622 # Check whether --with-x or --without-x was given. 5628 # Check whether --with-x or --without-x was given.
5623 if test "${with_x+set}" = set; then 5629 if test "${with_x+set}" = set; then
5624 withval="$with_x" 5630 withval="$with_x"
5625 : 5631 :
5675 # Guess where to find include files, by looking for this one X11 .h file. 5681 # Guess where to find include files, by looking for this one X11 .h file.
5676 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5682 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5677 5683
5678 # First, try using that file with no special directory specified. 5684 # First, try using that file with no special directory specified.
5679 cat > conftest.$ac_ext <<EOF 5685 cat > conftest.$ac_ext <<EOF
5680 #line 5681 "configure" 5686 #line 5687 "configure"
5681 #include "confdefs.h" 5687 #include "confdefs.h"
5682 #include <$x_direct_test_include> 5688 #include <$x_direct_test_include>
5683 EOF 5689 EOF
5684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5685 { (eval echo configure:5686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5691 { (eval echo configure:5692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5687 if test -z "$ac_err"; then 5693 if test -z "$ac_err"; then
5688 rm -rf conftest* 5694 rm -rf conftest*
5689 # We can compile using X headers with no special include directory. 5695 # We can compile using X headers with no special include directory.
5690 ac_x_includes= 5696 ac_x_includes=
5749 # See if we find them without any special options. 5755 # See if we find them without any special options.
5750 # Don't add to $LIBS permanently. 5756 # Don't add to $LIBS permanently.
5751 ac_save_LIBS="$LIBS" 5757 ac_save_LIBS="$LIBS"
5752 LIBS="-l$x_direct_test_library $LIBS" 5758 LIBS="-l$x_direct_test_library $LIBS"
5753 cat > conftest.$ac_ext <<EOF 5759 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure" 5760 #line 5761 "configure"
5755 #include "confdefs.h" 5761 #include "confdefs.h"
5756 5762
5757 int main() { 5763 int main() {
5758 ${x_direct_test_function}() 5764 ${x_direct_test_function}()
5759 ; return 0; } 5765 ; return 0; }
5760 EOF 5766 EOF
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5767 if { (eval echo configure:5768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 rm -rf conftest* 5768 rm -rf conftest*
5763 LIBS="$ac_save_LIBS" 5769 LIBS="$ac_save_LIBS"
5764 # We can link X programs with no special library path. 5770 # We can link X programs with no special library path.
5765 ac_x_libraries= 5771 ac_x_libraries=
5766 else 5772 else
5865 # For Solaris; some versions of Sun CC require a space after -R and 5871 # For Solaris; some versions of Sun CC require a space after -R and
5866 # others require no space. Words are not sufficient . . . . 5872 # others require no space. Words are not sufficient . . . .
5867 case "`(uname -sr) 2>/dev/null`" in 5873 case "`(uname -sr) 2>/dev/null`" in
5868 "SunOS 5"*) 5874 "SunOS 5"*)
5869 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5875 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5870 echo "configure:5871: checking whether -R must be followed by a space" >&5 5876 echo "configure:5877: checking whether -R must be followed by a space" >&5
5871 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5877 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5872 cat > conftest.$ac_ext <<EOF 5878 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure" 5879 #line 5880 "configure"
5874 #include "confdefs.h" 5880 #include "confdefs.h"
5875 5881
5876 int main() { 5882 int main() {
5877 5883
5878 ; return 0; } 5884 ; return 0; }
5879 EOF 5885 EOF
5880 if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5886 if { (eval echo configure:5887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5881 rm -rf conftest* 5887 rm -rf conftest*
5882 ac_R_nospace=yes 5888 ac_R_nospace=yes
5883 else 5889 else
5884 echo "configure: failed program was:" >&5 5890 echo "configure: failed program was:" >&5
5885 cat conftest.$ac_ext >&5 5891 cat conftest.$ac_ext >&5
5891 echo "$ac_t""no" 1>&6 5897 echo "$ac_t""no" 1>&6
5892 X_LIBS="$X_LIBS -R$x_libraries" 5898 X_LIBS="$X_LIBS -R$x_libraries"
5893 else 5899 else
5894 LIBS="$ac_xsave_LIBS -R $x_libraries" 5900 LIBS="$ac_xsave_LIBS -R $x_libraries"
5895 cat > conftest.$ac_ext <<EOF 5901 cat > conftest.$ac_ext <<EOF
5896 #line 5897 "configure" 5902 #line 5903 "configure"
5897 #include "confdefs.h" 5903 #include "confdefs.h"
5898 5904
5899 int main() { 5905 int main() {
5900 5906
5901 ; return 0; } 5907 ; return 0; }
5902 EOF 5908 EOF
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5904 rm -rf conftest* 5910 rm -rf conftest*
5905 ac_R_space=yes 5911 ac_R_space=yes
5906 else 5912 else
5907 echo "configure: failed program was:" >&5 5913 echo "configure: failed program was:" >&5
5908 cat conftest.$ac_ext >&5 5914 cat conftest.$ac_ext >&5
5934 if test "$with_dnet" = "no" ; then 5940 if test "$with_dnet" = "no" ; then
5935 ac_cv_lib_dnet_dnet_ntoa=no 5941 ac_cv_lib_dnet_dnet_ntoa=no
5936 else 5942 else
5937 5943
5938 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5944 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5939 echo "configure:5940: checking for dnet_ntoa in -ldnet" >&5 5945 echo "configure:5946: checking for dnet_ntoa in -ldnet" >&5
5940 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5946 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5941 5947
5942 xe_check_libs=" -ldnet " 5948 xe_check_libs=" -ldnet "
5943 cat > conftest.$ac_ext <<EOF 5949 cat > conftest.$ac_ext <<EOF
5944 #line 5945 "configure" 5950 #line 5951 "configure"
5945 #include "confdefs.h" 5951 #include "confdefs.h"
5946 /* Override any gcc2 internal prototype to avoid an error. */ 5952 /* Override any gcc2 internal prototype to avoid an error. */
5947 /* We use char because int might match the return type of a gcc2 5953 /* We use char because int might match the return type of a gcc2
5948 builtin and then its argument prototype would still apply. */ 5954 builtin and then its argument prototype would still apply. */
5949 char dnet_ntoa(); 5955 char dnet_ntoa();
5950 5956
5951 int main() { 5957 int main() {
5952 dnet_ntoa() 5958 dnet_ntoa()
5953 ; return 0; } 5959 ; return 0; }
5954 EOF 5960 EOF
5955 if { (eval echo configure:5956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5961 if { (eval echo configure:5962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5956 rm -rf conftest* 5962 rm -rf conftest*
5957 eval "ac_cv_lib_$ac_lib_var=yes" 5963 eval "ac_cv_lib_$ac_lib_var=yes"
5958 else 5964 else
5959 echo "configure: failed program was:" >&5 5965 echo "configure: failed program was:" >&5
5960 cat conftest.$ac_ext >&5 5966 cat conftest.$ac_ext >&5
5974 fi 5980 fi
5975 5981
5976 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5982 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5977 5983
5978 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5984 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5979 echo "configure:5980: checking for dnet_ntoa in -ldnet_stub" >&5 5985 echo "configure:5986: checking for dnet_ntoa in -ldnet_stub" >&5
5980 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5986 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5981 5987
5982 xe_check_libs=" -ldnet_stub " 5988 xe_check_libs=" -ldnet_stub "
5983 cat > conftest.$ac_ext <<EOF 5989 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure" 5990 #line 5991 "configure"
5985 #include "confdefs.h" 5991 #include "confdefs.h"
5986 /* Override any gcc2 internal prototype to avoid an error. */ 5992 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2 5993 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */ 5994 builtin and then its argument prototype would still apply. */
5989 char dnet_ntoa(); 5995 char dnet_ntoa();
5990 5996
5991 int main() { 5997 int main() {
5992 dnet_ntoa() 5998 dnet_ntoa()
5993 ; return 0; } 5999 ; return 0; }
5994 EOF 6000 EOF
5995 if { (eval echo configure:5996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5996 rm -rf conftest* 6002 rm -rf conftest*
5997 eval "ac_cv_lib_$ac_lib_var=yes" 6003 eval "ac_cv_lib_$ac_lib_var=yes"
5998 else 6004 else
5999 echo "configure: failed program was:" >&5 6005 echo "configure: failed program was:" >&5
6000 cat conftest.$ac_ext >&5 6006 cat conftest.$ac_ext >&5
6019 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 6025 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6020 # needs -lnsl. 6026 # needs -lnsl.
6021 # The nsl library prevents programs from opening the X display 6027 # The nsl library prevents programs from opening the X display
6022 # on Irix 5.2, according to dickey@clark.net. 6028 # on Irix 5.2, according to dickey@clark.net.
6023 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 6029 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6024 echo "configure:6025: checking for gethostbyname" >&5 6030 echo "configure:6031: checking for gethostbyname" >&5
6025 6031
6026 cat > conftest.$ac_ext <<EOF 6032 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure" 6033 #line 6034 "configure"
6028 #include "confdefs.h" 6034 #include "confdefs.h"
6029 /* System header to define __stub macros and hopefully few prototypes, 6035 /* System header to define __stub macros and hopefully few prototypes,
6030 which can conflict with char gethostbyname(); below. */ 6036 which can conflict with char gethostbyname(); below. */
6031 #include <assert.h> 6037 #include <assert.h>
6032 /* Override any gcc2 internal prototype to avoid an error. */ 6038 /* Override any gcc2 internal prototype to avoid an error. */
6045 gethostbyname(); 6051 gethostbyname();
6046 #endif 6052 #endif
6047 6053
6048 ; return 0; } 6054 ; return 0; }
6049 EOF 6055 EOF
6050 if { (eval echo configure:6051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6056 if { (eval echo configure:6057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6051 rm -rf conftest* 6057 rm -rf conftest*
6052 eval "ac_cv_func_gethostbyname=yes" 6058 eval "ac_cv_func_gethostbyname=yes"
6053 else 6059 else
6054 echo "configure: failed program was:" >&5 6060 echo "configure: failed program was:" >&5
6055 cat conftest.$ac_ext >&5 6061 cat conftest.$ac_ext >&5
6066 fi 6072 fi
6067 6073
6068 if test $ac_cv_func_gethostbyname = no; then 6074 if test $ac_cv_func_gethostbyname = no; then
6069 6075
6070 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 6076 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6071 echo "configure:6072: checking for gethostbyname in -lnsl" >&5 6077 echo "configure:6078: checking for gethostbyname in -lnsl" >&5
6072 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 6078 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6073 6079
6074 xe_check_libs=" -lnsl " 6080 xe_check_libs=" -lnsl "
6075 cat > conftest.$ac_ext <<EOF 6081 cat > conftest.$ac_ext <<EOF
6076 #line 6077 "configure" 6082 #line 6083 "configure"
6077 #include "confdefs.h" 6083 #include "confdefs.h"
6078 /* Override any gcc2 internal prototype to avoid an error. */ 6084 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2 6085 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */ 6086 builtin and then its argument prototype would still apply. */
6081 char gethostbyname(); 6087 char gethostbyname();
6082 6088
6083 int main() { 6089 int main() {
6084 gethostbyname() 6090 gethostbyname()
6085 ; return 0; } 6091 ; return 0; }
6086 EOF 6092 EOF
6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6093 if { (eval echo configure:6094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6088 rm -rf conftest* 6094 rm -rf conftest*
6089 eval "ac_cv_lib_$ac_lib_var=yes" 6095 eval "ac_cv_lib_$ac_lib_var=yes"
6090 else 6096 else
6091 echo "configure: failed program was:" >&5 6097 echo "configure: failed program was:" >&5
6092 cat conftest.$ac_ext >&5 6098 cat conftest.$ac_ext >&5
6112 # on later versions), says simon@lia.di.epfl.ch: it contains 6118 # on later versions), says simon@lia.di.epfl.ch: it contains
6113 # gethostby* variants that don't use the nameserver (or something). 6119 # gethostby* variants that don't use the nameserver (or something).
6114 # -lsocket must be given before -lnsl if both are needed. 6120 # -lsocket must be given before -lnsl if both are needed.
6115 # We assume that if connect needs -lnsl, so does gethostbyname. 6121 # We assume that if connect needs -lnsl, so does gethostbyname.
6116 echo $ac_n "checking for connect""... $ac_c" 1>&6 6122 echo $ac_n "checking for connect""... $ac_c" 1>&6
6117 echo "configure:6118: checking for connect" >&5 6123 echo "configure:6124: checking for connect" >&5
6118 6124
6119 cat > conftest.$ac_ext <<EOF 6125 cat > conftest.$ac_ext <<EOF
6120 #line 6121 "configure" 6126 #line 6127 "configure"
6121 #include "confdefs.h" 6127 #include "confdefs.h"
6122 /* System header to define __stub macros and hopefully few prototypes, 6128 /* System header to define __stub macros and hopefully few prototypes,
6123 which can conflict with char connect(); below. */ 6129 which can conflict with char connect(); below. */
6124 #include <assert.h> 6130 #include <assert.h>
6125 /* Override any gcc2 internal prototype to avoid an error. */ 6131 /* Override any gcc2 internal prototype to avoid an error. */
6138 connect(); 6144 connect();
6139 #endif 6145 #endif
6140 6146
6141 ; return 0; } 6147 ; return 0; }
6142 EOF 6148 EOF
6143 if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6144 rm -rf conftest* 6150 rm -rf conftest*
6145 eval "ac_cv_func_connect=yes" 6151 eval "ac_cv_func_connect=yes"
6146 else 6152 else
6147 echo "configure: failed program was:" >&5 6153 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5 6154 cat conftest.$ac_ext >&5
6161 if test $ac_cv_func_connect = no; then 6167 if test $ac_cv_func_connect = no; then
6162 6168
6163 xe_msg_checking="for connect in -lsocket" 6169 xe_msg_checking="for connect in -lsocket"
6164 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6170 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6165 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6171 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6166 echo "configure:6167: checking "$xe_msg_checking"" >&5 6172 echo "configure:6173: checking "$xe_msg_checking"" >&5
6167 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6173 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6168 6174
6169 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6175 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6170 cat > conftest.$ac_ext <<EOF 6176 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure" 6177 #line 6178 "configure"
6172 #include "confdefs.h" 6178 #include "confdefs.h"
6173 /* Override any gcc2 internal prototype to avoid an error. */ 6179 /* Override any gcc2 internal prototype to avoid an error. */
6174 /* We use char because int might match the return type of a gcc2 6180 /* We use char because int might match the return type of a gcc2
6175 builtin and then its argument prototype would still apply. */ 6181 builtin and then its argument prototype would still apply. */
6176 char connect(); 6182 char connect();
6177 6183
6178 int main() { 6184 int main() {
6179 connect() 6185 connect()
6180 ; return 0; } 6186 ; return 0; }
6181 EOF 6187 EOF
6182 if { (eval echo configure:6183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6188 if { (eval echo configure:6189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6183 rm -rf conftest* 6189 rm -rf conftest*
6184 eval "ac_cv_lib_$ac_lib_var=yes" 6190 eval "ac_cv_lib_$ac_lib_var=yes"
6185 else 6191 else
6186 echo "configure: failed program was:" >&5 6192 echo "configure: failed program was:" >&5
6187 cat conftest.$ac_ext >&5 6193 cat conftest.$ac_ext >&5
6201 6207
6202 fi 6208 fi
6203 6209
6204 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6210 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6205 echo $ac_n "checking for remove""... $ac_c" 1>&6 6211 echo $ac_n "checking for remove""... $ac_c" 1>&6
6206 echo "configure:6207: checking for remove" >&5 6212 echo "configure:6213: checking for remove" >&5
6207 6213
6208 cat > conftest.$ac_ext <<EOF 6214 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure" 6215 #line 6216 "configure"
6210 #include "confdefs.h" 6216 #include "confdefs.h"
6211 /* System header to define __stub macros and hopefully few prototypes, 6217 /* System header to define __stub macros and hopefully few prototypes,
6212 which can conflict with char remove(); below. */ 6218 which can conflict with char remove(); below. */
6213 #include <assert.h> 6219 #include <assert.h>
6214 /* Override any gcc2 internal prototype to avoid an error. */ 6220 /* Override any gcc2 internal prototype to avoid an error. */
6227 remove(); 6233 remove();
6228 #endif 6234 #endif
6229 6235
6230 ; return 0; } 6236 ; return 0; }
6231 EOF 6237 EOF
6232 if { (eval echo configure:6233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6238 if { (eval echo configure:6239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6233 rm -rf conftest* 6239 rm -rf conftest*
6234 eval "ac_cv_func_remove=yes" 6240 eval "ac_cv_func_remove=yes"
6235 else 6241 else
6236 echo "configure: failed program was:" >&5 6242 echo "configure: failed program was:" >&5
6237 cat conftest.$ac_ext >&5 6243 cat conftest.$ac_ext >&5
6248 fi 6254 fi
6249 6255
6250 if test $ac_cv_func_remove = no; then 6256 if test $ac_cv_func_remove = no; then
6251 6257
6252 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6258 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6253 echo "configure:6254: checking for remove in -lposix" >&5 6259 echo "configure:6260: checking for remove in -lposix" >&5
6254 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6260 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6255 6261
6256 xe_check_libs=" -lposix " 6262 xe_check_libs=" -lposix "
6257 cat > conftest.$ac_ext <<EOF 6263 cat > conftest.$ac_ext <<EOF
6258 #line 6259 "configure" 6264 #line 6265 "configure"
6259 #include "confdefs.h" 6265 #include "confdefs.h"
6260 /* Override any gcc2 internal prototype to avoid an error. */ 6266 /* Override any gcc2 internal prototype to avoid an error. */
6261 /* We use char because int might match the return type of a gcc2 6267 /* We use char because int might match the return type of a gcc2
6262 builtin and then its argument prototype would still apply. */ 6268 builtin and then its argument prototype would still apply. */
6263 char remove(); 6269 char remove();
6264 6270
6265 int main() { 6271 int main() {
6266 remove() 6272 remove()
6267 ; return 0; } 6273 ; return 0; }
6268 EOF 6274 EOF
6269 if { (eval echo configure:6270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6275 if { (eval echo configure:6276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6270 rm -rf conftest* 6276 rm -rf conftest*
6271 eval "ac_cv_lib_$ac_lib_var=yes" 6277 eval "ac_cv_lib_$ac_lib_var=yes"
6272 else 6278 else
6273 echo "configure: failed program was:" >&5 6279 echo "configure: failed program was:" >&5
6274 cat conftest.$ac_ext >&5 6280 cat conftest.$ac_ext >&5
6288 6294
6289 fi 6295 fi
6290 6296
6291 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6297 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6292 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6298 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6293 echo "configure:6294: checking for shmat" >&5 6299 echo "configure:6300: checking for shmat" >&5
6294 6300
6295 cat > conftest.$ac_ext <<EOF 6301 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure" 6302 #line 6303 "configure"
6297 #include "confdefs.h" 6303 #include "confdefs.h"
6298 /* System header to define __stub macros and hopefully few prototypes, 6304 /* System header to define __stub macros and hopefully few prototypes,
6299 which can conflict with char shmat(); below. */ 6305 which can conflict with char shmat(); below. */
6300 #include <assert.h> 6306 #include <assert.h>
6301 /* Override any gcc2 internal prototype to avoid an error. */ 6307 /* Override any gcc2 internal prototype to avoid an error. */
6314 shmat(); 6320 shmat();
6315 #endif 6321 #endif
6316 6322
6317 ; return 0; } 6323 ; return 0; }
6318 EOF 6324 EOF
6319 if { (eval echo configure:6320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6320 rm -rf conftest* 6326 rm -rf conftest*
6321 eval "ac_cv_func_shmat=yes" 6327 eval "ac_cv_func_shmat=yes"
6322 else 6328 else
6323 echo "configure: failed program was:" >&5 6329 echo "configure: failed program was:" >&5
6324 cat conftest.$ac_ext >&5 6330 cat conftest.$ac_ext >&5
6335 fi 6341 fi
6336 6342
6337 if test $ac_cv_func_shmat = no; then 6343 if test $ac_cv_func_shmat = no; then
6338 6344
6339 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6345 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6340 echo "configure:6341: checking for shmat in -lipc" >&5 6346 echo "configure:6347: checking for shmat in -lipc" >&5
6341 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6347 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6342 6348
6343 xe_check_libs=" -lipc " 6349 xe_check_libs=" -lipc "
6344 cat > conftest.$ac_ext <<EOF 6350 cat > conftest.$ac_ext <<EOF
6345 #line 6346 "configure" 6351 #line 6352 "configure"
6346 #include "confdefs.h" 6352 #include "confdefs.h"
6347 /* Override any gcc2 internal prototype to avoid an error. */ 6353 /* Override any gcc2 internal prototype to avoid an error. */
6348 /* We use char because int might match the return type of a gcc2 6354 /* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */ 6355 builtin and then its argument prototype would still apply. */
6350 char shmat(); 6356 char shmat();
6351 6357
6352 int main() { 6358 int main() {
6353 shmat() 6359 shmat()
6354 ; return 0; } 6360 ; return 0; }
6355 EOF 6361 EOF
6356 if { (eval echo configure:6357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6362 if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6357 rm -rf conftest* 6363 rm -rf conftest*
6358 eval "ac_cv_lib_$ac_lib_var=yes" 6364 eval "ac_cv_lib_$ac_lib_var=yes"
6359 else 6365 else
6360 echo "configure: failed program was:" >&5 6366 echo "configure: failed program was:" >&5
6361 cat conftest.$ac_ext >&5 6367 cat conftest.$ac_ext >&5
6387 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6393 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6388 6394
6389 xe_msg_checking="for IceConnectionNumber in -lICE" 6395 xe_msg_checking="for IceConnectionNumber in -lICE"
6390 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6396 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6391 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6397 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6392 echo "configure:6393: checking "$xe_msg_checking"" >&5 6398 echo "configure:6399: checking "$xe_msg_checking"" >&5
6393 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6399 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6394 6400
6395 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6401 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6396 cat > conftest.$ac_ext <<EOF 6402 cat > conftest.$ac_ext <<EOF
6397 #line 6398 "configure" 6403 #line 6404 "configure"
6398 #include "confdefs.h" 6404 #include "confdefs.h"
6399 /* Override any gcc2 internal prototype to avoid an error. */ 6405 /* Override any gcc2 internal prototype to avoid an error. */
6400 /* We use char because int might match the return type of a gcc2 6406 /* We use char because int might match the return type of a gcc2
6401 builtin and then its argument prototype would still apply. */ 6407 builtin and then its argument prototype would still apply. */
6402 char IceConnectionNumber(); 6408 char IceConnectionNumber();
6403 6409
6404 int main() { 6410 int main() {
6405 IceConnectionNumber() 6411 IceConnectionNumber()
6406 ; return 0; } 6412 ; return 0; }
6407 EOF 6413 EOF
6408 if { (eval echo configure:6409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6409 rm -rf conftest* 6415 rm -rf conftest*
6410 eval "ac_cv_lib_$ac_lib_var=yes" 6416 eval "ac_cv_lib_$ac_lib_var=yes"
6411 else 6417 else
6412 echo "configure: failed program was:" >&5 6418 echo "configure: failed program was:" >&5
6413 cat conftest.$ac_ext >&5 6419 cat conftest.$ac_ext >&5
6570 EOF 6576 EOF
6571 } 6577 }
6572 6578
6573 6579
6574 echo "checking for X defines extracted by xmkmf" 1>&6 6580 echo "checking for X defines extracted by xmkmf" 1>&6
6575 echo "configure:6576: checking for X defines extracted by xmkmf" >&5 6581 echo "configure:6582: checking for X defines extracted by xmkmf" >&5
6576 rm -fr conftestdir 6582 rm -fr conftestdir
6577 if mkdir conftestdir; then 6583 if mkdir conftestdir; then
6578 cd conftestdir 6584 cd conftestdir
6579 cat > Imakefile <<'EOF' 6585 cat > Imakefile <<'EOF'
6580 xetest: 6586 xetest:
6619 done 6625 done
6620 fi 6626 fi
6621 6627
6622 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6628 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6623 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6629 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6624 echo "configure:6625: checking for X11/Intrinsic.h" >&5 6630 echo "configure:6631: checking for X11/Intrinsic.h" >&5
6625 6631
6626 cat > conftest.$ac_ext <<EOF 6632 cat > conftest.$ac_ext <<EOF
6627 #line 6628 "configure" 6633 #line 6634 "configure"
6628 #include "confdefs.h" 6634 #include "confdefs.h"
6629 #include <X11/Intrinsic.h> 6635 #include <X11/Intrinsic.h>
6630 EOF 6636 EOF
6631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6632 { (eval echo configure:6633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6638 { (eval echo configure:6639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6634 if test -z "$ac_err"; then 6640 if test -z "$ac_err"; then
6635 rm -rf conftest* 6641 rm -rf conftest*
6636 eval "ac_cv_header_$ac_safe=yes" 6642 eval "ac_cv_header_$ac_safe=yes"
6637 else 6643 else
6651 fi 6657 fi
6652 6658
6653 6659
6654 6660
6655 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6661 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6656 echo "configure:6657: checking for XOpenDisplay in -lX11" >&5 6662 echo "configure:6663: checking for XOpenDisplay in -lX11" >&5
6657 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6663 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6658 6664
6659 xe_check_libs=" -lX11 " 6665 xe_check_libs=" -lX11 "
6660 cat > conftest.$ac_ext <<EOF 6666 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure" 6667 #line 6668 "configure"
6662 #include "confdefs.h" 6668 #include "confdefs.h"
6663 /* Override any gcc2 internal prototype to avoid an error. */ 6669 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2 6670 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */ 6671 builtin and then its argument prototype would still apply. */
6666 char XOpenDisplay(); 6672 char XOpenDisplay();
6667 6673
6668 int main() { 6674 int main() {
6669 XOpenDisplay() 6675 XOpenDisplay()
6670 ; return 0; } 6676 ; return 0; }
6671 EOF 6677 EOF
6672 if { (eval echo configure:6673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6678 if { (eval echo configure:6679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 rm -rf conftest* 6679 rm -rf conftest*
6674 eval "ac_cv_lib_$ac_lib_var=yes" 6680 eval "ac_cv_lib_$ac_lib_var=yes"
6675 else 6681 else
6676 echo "configure: failed program was:" >&5 6682 echo "configure: failed program was:" >&5
6677 cat conftest.$ac_ext >&5 6683 cat conftest.$ac_ext >&5
6692 if test "$have_lib_x11" != "yes"; then 6698 if test "$have_lib_x11" != "yes"; then
6693 6699
6694 xe_msg_checking="for XGetFontProperty in -lX11" 6700 xe_msg_checking="for XGetFontProperty in -lX11"
6695 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6701 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6696 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6702 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6697 echo "configure:6698: checking "$xe_msg_checking"" >&5 6703 echo "configure:6704: checking "$xe_msg_checking"" >&5
6698 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6704 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6699 6705
6700 xe_check_libs=" -lX11 -b i486-linuxaout" 6706 xe_check_libs=" -lX11 -b i486-linuxaout"
6701 cat > conftest.$ac_ext <<EOF 6707 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure" 6708 #line 6709 "configure"
6703 #include "confdefs.h" 6709 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */ 6710 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2 6711 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */ 6712 builtin and then its argument prototype would still apply. */
6707 char XGetFontProperty(); 6713 char XGetFontProperty();
6708 6714
6709 int main() { 6715 int main() {
6710 XGetFontProperty() 6716 XGetFontProperty()
6711 ; return 0; } 6717 ; return 0; }
6712 EOF 6718 EOF
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6714 rm -rf conftest* 6720 rm -rf conftest*
6715 eval "ac_cv_lib_$ac_lib_var=yes" 6721 eval "ac_cv_lib_$ac_lib_var=yes"
6716 else 6722 else
6717 echo "configure: failed program was:" >&5 6723 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5 6724 cat conftest.$ac_ext >&5
6735 libs_x="-lX11" 6741 libs_x="-lX11"
6736 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6742 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6737 6743
6738 6744
6739 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6745 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6740 echo "configure:6741: checking for XShapeSelectInput in -lXext" >&5 6746 echo "configure:6747: checking for XShapeSelectInput in -lXext" >&5
6741 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6747 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6742 6748
6743 xe_check_libs=" -lXext " 6749 xe_check_libs=" -lXext "
6744 cat > conftest.$ac_ext <<EOF 6750 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure" 6751 #line 6752 "configure"
6746 #include "confdefs.h" 6752 #include "confdefs.h"
6747 /* Override any gcc2 internal prototype to avoid an error. */ 6753 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2 6754 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */ 6755 builtin and then its argument prototype would still apply. */
6750 char XShapeSelectInput(); 6756 char XShapeSelectInput();
6751 6757
6752 int main() { 6758 int main() {
6753 XShapeSelectInput() 6759 XShapeSelectInput()
6754 ; return 0; } 6760 ; return 0; }
6755 EOF 6761 EOF
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 rm -rf conftest* 6763 rm -rf conftest*
6758 eval "ac_cv_lib_$ac_lib_var=yes" 6764 eval "ac_cv_lib_$ac_lib_var=yes"
6759 else 6765 else
6760 echo "configure: failed program was:" >&5 6766 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5 6767 cat conftest.$ac_ext >&5
6774 6780
6775 6781
6776 6782
6777 6783
6778 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6784 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6779 echo "configure:6780: checking for XtOpenDisplay in -lXt" >&5 6785 echo "configure:6786: checking for XtOpenDisplay in -lXt" >&5
6780 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6786 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6781 6787
6782 xe_check_libs=" -lXt " 6788 xe_check_libs=" -lXt "
6783 cat > conftest.$ac_ext <<EOF 6789 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure" 6790 #line 6791 "configure"
6785 #include "confdefs.h" 6791 #include "confdefs.h"
6786 /* Override any gcc2 internal prototype to avoid an error. */ 6792 /* Override any gcc2 internal prototype to avoid an error. */
6787 /* We use char because int might match the return type of a gcc2 6793 /* We use char because int might match the return type of a gcc2
6788 builtin and then its argument prototype would still apply. */ 6794 builtin and then its argument prototype would still apply. */
6789 char XtOpenDisplay(); 6795 char XtOpenDisplay();
6790 6796
6791 int main() { 6797 int main() {
6792 XtOpenDisplay() 6798 XtOpenDisplay()
6793 ; return 0; } 6799 ; return 0; }
6794 EOF 6800 EOF
6795 if { (eval echo configure:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6796 rm -rf conftest* 6802 rm -rf conftest*
6797 eval "ac_cv_lib_$ac_lib_var=yes" 6803 eval "ac_cv_lib_$ac_lib_var=yes"
6798 else 6804 else
6799 echo "configure: failed program was:" >&5 6805 echo "configure: failed program was:" >&5
6800 cat conftest.$ac_ext >&5 6806 cat conftest.$ac_ext >&5
6813 fi 6819 fi
6814 6820
6815 6821
6816 6822
6817 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6823 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6818 echo "configure:6819: checking the version of X11 being used" >&5 6824 echo "configure:6825: checking the version of X11 being used" >&5
6819 cat > conftest.$ac_ext <<EOF 6825 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure" 6826 #line 6827 "configure"
6821 #include "confdefs.h" 6827 #include "confdefs.h"
6822 #include <X11/Intrinsic.h> 6828 #include <X11/Intrinsic.h>
6823 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6829 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6824 EOF 6830 EOF
6825 if { (eval echo configure:6826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6826 then 6832 then
6827 ./conftest foobar; x11_release=$? 6833 ./conftest foobar; x11_release=$?
6828 else 6834 else
6829 conftest_rc="$?" 6835 conftest_rc="$?"
6830 echo "configure: failed program was:" >&5 6836 echo "configure: failed program was:" >&5
6851 fi 6857 fi
6852 6858
6853 for ac_func in XConvertCase 6859 for ac_func in XConvertCase
6854 do 6860 do
6855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6856 echo "configure:6857: checking for $ac_func" >&5 6862 echo "configure:6863: checking for $ac_func" >&5
6857 6863
6858 cat > conftest.$ac_ext <<EOF 6864 cat > conftest.$ac_ext <<EOF
6859 #line 6860 "configure" 6865 #line 6866 "configure"
6860 #include "confdefs.h" 6866 #include "confdefs.h"
6861 /* System header to define __stub macros and hopefully few prototypes, 6867 /* System header to define __stub macros and hopefully few prototypes,
6862 which can conflict with char $ac_func(); below. */ 6868 which can conflict with char $ac_func(); below. */
6863 #include <assert.h> 6869 #include <assert.h>
6864 /* Override any gcc2 internal prototype to avoid an error. */ 6870 /* Override any gcc2 internal prototype to avoid an error. */
6877 $ac_func(); 6883 $ac_func();
6878 #endif 6884 #endif
6879 6885
6880 ; return 0; } 6886 ; return 0; }
6881 EOF 6887 EOF
6882 if { (eval echo configure:6883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6888 if { (eval echo configure:6889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 rm -rf conftest* 6889 rm -rf conftest*
6884 eval "ac_cv_func_$ac_func=yes" 6890 eval "ac_cv_func_$ac_func=yes"
6885 else 6891 else
6886 echo "configure: failed program was:" >&5 6892 echo "configure: failed program was:" >&5
6887 cat conftest.$ac_ext >&5 6893 cat conftest.$ac_ext >&5
6909 6915
6910 for ac_hdr in X11/Xlocale.h 6916 for ac_hdr in X11/Xlocale.h
6911 do 6917 do
6912 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6914 echo "configure:6915: checking for $ac_hdr" >&5 6920 echo "configure:6921: checking for $ac_hdr" >&5
6915 6921
6916 cat > conftest.$ac_ext <<EOF 6922 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure" 6923 #line 6924 "configure"
6918 #include "confdefs.h" 6924 #include "confdefs.h"
6919 #include <$ac_hdr> 6925 #include <$ac_hdr>
6920 EOF 6926 EOF
6921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6922 { (eval echo configure:6923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6928 { (eval echo configure:6929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6924 if test -z "$ac_err"; then 6930 if test -z "$ac_err"; then
6925 rm -rf conftest* 6931 rm -rf conftest*
6926 eval "ac_cv_header_$ac_safe=yes" 6932 eval "ac_cv_header_$ac_safe=yes"
6927 else 6933 else
6950 6956
6951 6957
6952 for ac_func in XRegisterIMInstantiateCallback 6958 for ac_func in XRegisterIMInstantiateCallback
6953 do 6959 do
6954 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6955 echo "configure:6956: checking for $ac_func" >&5 6961 echo "configure:6962: checking for $ac_func" >&5
6956 6962
6957 cat > conftest.$ac_ext <<EOF 6963 cat > conftest.$ac_ext <<EOF
6958 #line 6959 "configure" 6964 #line 6965 "configure"
6959 #include "confdefs.h" 6965 #include "confdefs.h"
6960 /* System header to define __stub macros and hopefully few prototypes, 6966 /* System header to define __stub macros and hopefully few prototypes,
6961 which can conflict with char $ac_func(); below. */ 6967 which can conflict with char $ac_func(); below. */
6962 #include <assert.h> 6968 #include <assert.h>
6963 /* Override any gcc2 internal prototype to avoid an error. */ 6969 /* Override any gcc2 internal prototype to avoid an error. */
6976 $ac_func(); 6982 $ac_func();
6977 #endif 6983 #endif
6978 6984
6979 ; return 0; } 6985 ; return 0; }
6980 EOF 6986 EOF
6981 if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6987 if { (eval echo configure:6988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6982 rm -rf conftest* 6988 rm -rf conftest*
6983 eval "ac_cv_func_$ac_func=yes" 6989 eval "ac_cv_func_$ac_func=yes"
6984 else 6990 else
6985 echo "configure: failed program was:" >&5 6991 echo "configure: failed program was:" >&5
6986 cat conftest.$ac_ext >&5 6992 cat conftest.$ac_ext >&5
7004 echo "$ac_t""no" 1>&6 7010 echo "$ac_t""no" 1>&6
7005 fi 7011 fi
7006 done 7012 done
7007 7013
7008 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 7014 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7009 echo "configure:7010: checking for standard XRegisterIMInstantiateCallback prototype" >&5 7015 echo "configure:7016: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7010 cat > conftest.$ac_ext <<EOF 7016 cat > conftest.$ac_ext <<EOF
7011 #line 7012 "configure" 7017 #line 7018 "configure"
7012 #include "confdefs.h" 7018 #include "confdefs.h"
7013 7019
7014 #define NeedFunctionPrototypes 1 7020 #define NeedFunctionPrototypes 1
7015 #include <X11/Xlib.h> 7021 #include <X11/Xlib.h>
7016 extern Bool XRegisterIMInstantiateCallback( 7022 extern Bool XRegisterIMInstantiateCallback(
7018 7024
7019 int main() { 7025 int main() {
7020 7026
7021 ; return 0; } 7027 ; return 0; }
7022 EOF 7028 EOF
7023 if { (eval echo configure:7024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7029 if { (eval echo configure:7030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7024 rm -rf conftest* 7030 rm -rf conftest*
7025 echo "$ac_t""yes" 1>&6 7031 echo "$ac_t""yes" 1>&6
7026 else 7032 else
7027 echo "configure: failed program was:" >&5 7033 echo "configure: failed program was:" >&5
7028 cat conftest.$ac_ext >&5 7034 cat conftest.$ac_ext >&5
7039 fi 7045 fi
7040 rm -f conftest* 7046 rm -f conftest*
7041 7047
7042 test -z "$with_xmu" && { 7048 test -z "$with_xmu" && {
7043 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 7049 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7044 echo "configure:7045: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 7050 echo "configure:7051: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7045 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 7051 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7046 7052
7047 xe_check_libs=" -lXmu " 7053 xe_check_libs=" -lXmu "
7048 cat > conftest.$ac_ext <<EOF 7054 cat > conftest.$ac_ext <<EOF
7049 #line 7050 "configure" 7055 #line 7056 "configure"
7050 #include "confdefs.h" 7056 #include "confdefs.h"
7051 /* Override any gcc2 internal prototype to avoid an error. */ 7057 /* Override any gcc2 internal prototype to avoid an error. */
7052 /* We use char because int might match the return type of a gcc2 7058 /* We use char because int might match the return type of a gcc2
7053 builtin and then its argument prototype would still apply. */ 7059 builtin and then its argument prototype would still apply. */
7054 char XmuReadBitmapDataFromFile(); 7060 char XmuReadBitmapDataFromFile();
7055 7061
7056 int main() { 7062 int main() {
7057 XmuReadBitmapDataFromFile() 7063 XmuReadBitmapDataFromFile()
7058 ; return 0; } 7064 ; return 0; }
7059 EOF 7065 EOF
7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7066 if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7061 rm -rf conftest* 7067 rm -rf conftest*
7062 eval "ac_cv_lib_$ac_lib_var=yes" 7068 eval "ac_cv_lib_$ac_lib_var=yes"
7063 else 7069 else
7064 echo "configure: failed program was:" >&5 7070 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5 7071 cat conftest.$ac_ext >&5
7094 7100
7095 fi 7101 fi
7096 7102
7097 7103
7098 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7104 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7099 echo "configure:7100: checking for main in -lXbsd" >&5 7105 echo "configure:7106: checking for main in -lXbsd" >&5
7100 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7106 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7101 7107
7102 xe_check_libs=" -lXbsd " 7108 xe_check_libs=" -lXbsd "
7103 cat > conftest.$ac_ext <<EOF 7109 cat > conftest.$ac_ext <<EOF
7104 #line 7105 "configure" 7110 #line 7111 "configure"
7105 #include "confdefs.h" 7111 #include "confdefs.h"
7106 7112
7107 int main() { 7113 int main() {
7108 main() 7114 main()
7109 ; return 0; } 7115 ; return 0; }
7110 EOF 7116 EOF
7111 if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7112 rm -rf conftest* 7118 rm -rf conftest*
7113 eval "ac_cv_lib_$ac_lib_var=yes" 7119 eval "ac_cv_lib_$ac_lib_var=yes"
7114 else 7120 else
7115 echo "configure: failed program was:" >&5 7121 echo "configure: failed program was:" >&5
7116 cat conftest.$ac_ext >&5 7122 cat conftest.$ac_ext >&5
7143 fi 7149 fi
7144 7150
7145 fi 7151 fi
7146 if test "$with_msw" != "no"; then 7152 if test "$with_msw" != "no"; then
7147 echo "checking for MS-Windows" 1>&6 7153 echo "checking for MS-Windows" 1>&6
7148 echo "configure:7149: checking for MS-Windows" >&5 7154 echo "configure:7155: checking for MS-Windows" >&5
7149 7155
7150 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7156 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7151 echo "configure:7152: checking for main in -lgdi32" >&5 7157 echo "configure:7158: checking for main in -lgdi32" >&5
7152 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7158 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7153 7159
7154 xe_check_libs=" -lgdi32 " 7160 xe_check_libs=" -lgdi32 "
7155 cat > conftest.$ac_ext <<EOF 7161 cat > conftest.$ac_ext <<EOF
7156 #line 7157 "configure" 7162 #line 7163 "configure"
7157 #include "confdefs.h" 7163 #include "confdefs.h"
7158 7164
7159 int main() { 7165 int main() {
7160 main() 7166 main()
7161 ; return 0; } 7167 ; return 0; }
7162 EOF 7168 EOF
7163 if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7169 if { (eval echo configure:7170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7164 rm -rf conftest* 7170 rm -rf conftest*
7165 eval "ac_cv_lib_$ac_lib_var=yes" 7171 eval "ac_cv_lib_$ac_lib_var=yes"
7166 else 7172 else
7167 echo "configure: failed program was:" >&5 7173 echo "configure: failed program was:" >&5
7168 cat conftest.$ac_ext >&5 7174 cat conftest.$ac_ext >&5
7209 test "$with_toolbars" != "no" && with_toolbars=msw 7215 test "$with_toolbars" != "no" && with_toolbars=msw
7210 test "$with_dialogs" != "no" && with_dialogs=msw 7216 test "$with_dialogs" != "no" && with_dialogs=msw
7211 test "$with_widgets" != "no" && with_widgets=msw 7217 test "$with_widgets" != "no" && with_widgets=msw
7212 fi 7218 fi
7213 cat > conftest.$ac_ext <<EOF 7219 cat > conftest.$ac_ext <<EOF
7214 #line 7215 "configure" 7220 #line 7221 "configure"
7215 #include "confdefs.h" 7221 #include "confdefs.h"
7216 #include <fcntl.h> 7222 #include <fcntl.h>
7217 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7223 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7218 EOF 7224 EOF
7219 if { (eval echo configure:7220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7225 if { (eval echo configure:7226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7220 then 7226 then
7221 { test "$extra_verbose" = "yes" && cat << \EOF 7227 { test "$extra_verbose" = "yes" && cat << \EOF
7222 Defining HAVE_MSG_SELECT 7228 Defining HAVE_MSG_SELECT
7223 EOF 7229 EOF
7224 cat >> confdefs.h <<\EOF 7230 cat >> confdefs.h <<\EOF
7275 fi 7281 fi
7276 7282
7277 if test "$with_x11" = "yes"; then 7283 if test "$with_x11" = "yes"; then
7278 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7284 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7279 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7285 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7280 echo "configure:7281: checking for X11/extensions/shape.h" >&5 7286 echo "configure:7287: checking for X11/extensions/shape.h" >&5
7281 7287
7282 cat > conftest.$ac_ext <<EOF 7288 cat > conftest.$ac_ext <<EOF
7283 #line 7284 "configure" 7289 #line 7290 "configure"
7284 #include "confdefs.h" 7290 #include "confdefs.h"
7285 #include <X11/extensions/shape.h> 7291 #include <X11/extensions/shape.h>
7286 EOF 7292 EOF
7287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7288 { (eval echo configure:7289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7294 { (eval echo configure:7295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7290 if test -z "$ac_err"; then 7296 if test -z "$ac_err"; then
7291 rm -rf conftest* 7297 rm -rf conftest*
7292 eval "ac_cv_header_$ac_safe=yes" 7298 eval "ac_cv_header_$ac_safe=yes"
7293 else 7299 else
7333 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7339 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7334 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7340 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7335 esac 7341 esac
7336 7342
7337 echo "checking for WM_COMMAND option" 1>&6 7343 echo "checking for WM_COMMAND option" 1>&6
7338 echo "configure:7339: checking for WM_COMMAND option" >&5; 7344 echo "configure:7345: checking for WM_COMMAND option" >&5;
7339 if test "$with_wmcommand" != "no"; then 7345 if test "$with_wmcommand" != "no"; then
7340 { test "$extra_verbose" = "yes" && cat << \EOF 7346 { test "$extra_verbose" = "yes" && cat << \EOF
7341 Defining HAVE_WMCOMMAND 7347 Defining HAVE_WMCOMMAND
7342 EOF 7348 EOF
7343 cat >> confdefs.h <<\EOF 7349 cat >> confdefs.h <<\EOF
7348 fi 7354 fi
7349 7355
7350 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7356 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7351 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7357 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7352 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7358 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7353 echo "configure:7354: checking for X11/Xauth.h" >&5 7359 echo "configure:7360: checking for X11/Xauth.h" >&5
7354 7360
7355 cat > conftest.$ac_ext <<EOF 7361 cat > conftest.$ac_ext <<EOF
7356 #line 7357 "configure" 7362 #line 7363 "configure"
7357 #include "confdefs.h" 7363 #include "confdefs.h"
7358 #include <X11/Xauth.h> 7364 #include <X11/Xauth.h>
7359 EOF 7365 EOF
7360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7361 { (eval echo configure:7362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7367 { (eval echo configure:7368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7363 if test -z "$ac_err"; then 7369 if test -z "$ac_err"; then
7364 rm -rf conftest* 7370 rm -rf conftest*
7365 eval "ac_cv_header_$ac_safe=yes" 7371 eval "ac_cv_header_$ac_safe=yes"
7366 else 7372 else
7379 with_xauth=no 7385 with_xauth=no
7380 fi 7386 fi
7381 } 7387 }
7382 test -z "$with_xauth" && { 7388 test -z "$with_xauth" && {
7383 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7389 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7384 echo "configure:7385: checking for XauGetAuthByAddr in -lXau" >&5 7390 echo "configure:7391: checking for XauGetAuthByAddr in -lXau" >&5
7385 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7391 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7386 7392
7387 xe_check_libs=" -lXau " 7393 xe_check_libs=" -lXau "
7388 cat > conftest.$ac_ext <<EOF 7394 cat > conftest.$ac_ext <<EOF
7389 #line 7390 "configure" 7395 #line 7396 "configure"
7390 #include "confdefs.h" 7396 #include "confdefs.h"
7391 /* Override any gcc2 internal prototype to avoid an error. */ 7397 /* Override any gcc2 internal prototype to avoid an error. */
7392 /* We use char because int might match the return type of a gcc2 7398 /* We use char because int might match the return type of a gcc2
7393 builtin and then its argument prototype would still apply. */ 7399 builtin and then its argument prototype would still apply. */
7394 char XauGetAuthByAddr(); 7400 char XauGetAuthByAddr();
7395 7401
7396 int main() { 7402 int main() {
7397 XauGetAuthByAddr() 7403 XauGetAuthByAddr()
7398 ; return 0; } 7404 ; return 0; }
7399 EOF 7405 EOF
7400 if { (eval echo configure:7401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7401 rm -rf conftest* 7407 rm -rf conftest*
7402 eval "ac_cv_lib_$ac_lib_var=yes" 7408 eval "ac_cv_lib_$ac_lib_var=yes"
7403 else 7409 else
7404 echo "configure: failed program was:" >&5 7410 echo "configure: failed program was:" >&5
7405 cat conftest.$ac_ext >&5 7411 cat conftest.$ac_ext >&5
7442 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler" 7448 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
7443 : ${XEMACS_CC:="$CC"} 7449 : ${XEMACS_CC:="$CC"}
7444 7450
7445 if test "$with_modules" != "no"; then 7451 if test "$with_modules" != "no"; then
7446 echo "checking for module support" 1>&6 7452 echo "checking for module support" 1>&6
7447 echo "configure:7448: checking for module support" >&5 7453 echo "configure:7454: checking for module support" >&5
7448 7454
7449 if test "$with_msw" = "yes"; then 7455 if test "$with_msw" = "yes"; then
7450 have_dl=yes; 7456 have_dl=yes;
7451 else 7457 else
7452 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 7458 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
7453 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 7459 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
7454 echo "configure:7455: checking for dlfcn.h" >&5 7460 echo "configure:7461: checking for dlfcn.h" >&5
7455 7461
7456 cat > conftest.$ac_ext <<EOF 7462 cat > conftest.$ac_ext <<EOF
7457 #line 7458 "configure" 7463 #line 7464 "configure"
7458 #include "confdefs.h" 7464 #include "confdefs.h"
7459 #include <dlfcn.h> 7465 #include <dlfcn.h>
7460 EOF 7466 EOF
7461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7462 { (eval echo configure:7463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7468 { (eval echo configure:7469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7464 if test -z "$ac_err"; then 7470 if test -z "$ac_err"; then
7465 rm -rf conftest* 7471 rm -rf conftest*
7466 eval "ac_cv_header_$ac_safe=yes" 7472 eval "ac_cv_header_$ac_safe=yes"
7467 else 7473 else
7474 rm -f conftest* 7480 rm -f conftest*
7475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7476 echo "$ac_t""yes" 1>&6 7482 echo "$ac_t""yes" 1>&6
7477 7483
7478 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 7484 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
7479 echo "configure:7480: checking for dlopen in -lc" >&5 7485 echo "configure:7486: checking for dlopen in -lc" >&5
7480 cat > conftest.$ac_ext <<EOF 7486 cat > conftest.$ac_ext <<EOF
7481 #line 7482 "configure" 7487 #line 7488 "configure"
7482 #include "confdefs.h" 7488 #include "confdefs.h"
7483 #include <dlfcn.h> 7489 #include <dlfcn.h>
7484 int main() { 7490 int main() {
7485 dlopen ("", 0); 7491 dlopen ("", 0);
7486 ; return 0; } 7492 ; return 0; }
7487 EOF 7493 EOF
7488 if { (eval echo configure:7489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7494 if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7489 rm -rf conftest* 7495 rm -rf conftest*
7490 have_dl=yes 7496 have_dl=yes
7491 else 7497 else
7492 echo "configure: failed program was:" >&5 7498 echo "configure: failed program was:" >&5
7493 cat conftest.$ac_ext >&5 7499 cat conftest.$ac_ext >&5
7494 rm -rf conftest* 7500 rm -rf conftest*
7495 7501
7496 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 7502 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7497 echo "configure:7498: checking for dlopen in -ldl" >&5 7503 echo "configure:7504: checking for dlopen in -ldl" >&5
7498 ac_save_LIBS="$LIBS" 7504 ac_save_LIBS="$LIBS"
7499 LIBS="-ldl $LIBS" 7505 LIBS="-ldl $LIBS"
7500 cat > conftest.$ac_ext <<EOF 7506 cat > conftest.$ac_ext <<EOF
7501 #line 7502 "configure" 7507 #line 7508 "configure"
7502 #include "confdefs.h" 7508 #include "confdefs.h"
7503 #include <dlfcn.h> 7509 #include <dlfcn.h>
7504 int main() { 7510 int main() {
7505 dlopen ("", 0); 7511 dlopen ("", 0);
7506 ; return 0; } 7512 ; return 0; }
7507 EOF 7513 EOF
7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7514 if { (eval echo configure:7515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7509 rm -rf conftest* 7515 rm -rf conftest*
7510 have_dl=yes 7516 have_dl=yes
7511 else 7517 else
7512 echo "configure: failed program was:" >&5 7518 echo "configure: failed program was:" >&5
7513 cat conftest.$ac_ext >&5 7519 cat conftest.$ac_ext >&5
7532 } 7538 }
7533 7539
7534 else 7540 else
7535 7541
7536 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 7542 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
7537 echo "configure:7538: checking for shl_load in -ldld" >&5 7543 echo "configure:7544: checking for shl_load in -ldld" >&5
7538 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 7544 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
7539 7545
7540 xe_check_libs=" -ldld " 7546 xe_check_libs=" -ldld "
7541 cat > conftest.$ac_ext <<EOF 7547 cat > conftest.$ac_ext <<EOF
7542 #line 7543 "configure" 7548 #line 7549 "configure"
7543 #include "confdefs.h" 7549 #include "confdefs.h"
7544 /* Override any gcc2 internal prototype to avoid an error. */ 7550 /* Override any gcc2 internal prototype to avoid an error. */
7545 /* We use char because int might match the return type of a gcc2 7551 /* We use char because int might match the return type of a gcc2
7546 builtin and then its argument prototype would still apply. */ 7552 builtin and then its argument prototype would still apply. */
7547 char shl_load(); 7553 char shl_load();
7548 7554
7549 int main() { 7555 int main() {
7550 shl_load() 7556 shl_load()
7551 ; return 0; } 7557 ; return 0; }
7552 EOF 7558 EOF
7553 if { (eval echo configure:7554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7559 if { (eval echo configure:7560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7554 rm -rf conftest* 7560 rm -rf conftest*
7555 eval "ac_cv_lib_$ac_lib_var=yes" 7561 eval "ac_cv_lib_$ac_lib_var=yes"
7556 else 7562 else
7557 echo "configure: failed program was:" >&5 7563 echo "configure: failed program was:" >&5
7558 cat conftest.$ac_ext >&5 7564 cat conftest.$ac_ext >&5
7575 7581
7576 else 7582 else
7577 echo "$ac_t""no" 1>&6 7583 echo "$ac_t""no" 1>&6
7578 7584
7579 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 7585 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
7580 echo "configure:7581: checking for dld_init in -ldld" >&5 7586 echo "configure:7587: checking for dld_init in -ldld" >&5
7581 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 7587 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
7582 7588
7583 xe_check_libs=" -ldld " 7589 xe_check_libs=" -ldld "
7584 cat > conftest.$ac_ext <<EOF 7590 cat > conftest.$ac_ext <<EOF
7585 #line 7586 "configure" 7591 #line 7592 "configure"
7586 #include "confdefs.h" 7592 #include "confdefs.h"
7587 /* Override any gcc2 internal prototype to avoid an error. */ 7593 /* Override any gcc2 internal prototype to avoid an error. */
7588 /* We use char because int might match the return type of a gcc2 7594 /* We use char because int might match the return type of a gcc2
7589 builtin and then its argument prototype would still apply. */ 7595 builtin and then its argument prototype would still apply. */
7590 char dld_init(); 7596 char dld_init();
7591 7597
7592 int main() { 7598 int main() {
7593 dld_init() 7599 dld_init()
7594 ; return 0; } 7600 ; return 0; }
7595 EOF 7601 EOF
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7597 rm -rf conftest* 7603 rm -rf conftest*
7598 eval "ac_cv_lib_$ac_lib_var=yes" 7604 eval "ac_cv_lib_$ac_lib_var=yes"
7599 else 7605 else
7600 echo "configure: failed program was:" >&5 7606 echo "configure: failed program was:" >&5
7601 cat conftest.$ac_ext >&5 7607 cat conftest.$ac_ext >&5
7636 ld_dynamic_link_flags= 7642 ld_dynamic_link_flags=
7637 xehost=$canonical 7643 xehost=$canonical
7638 xealias=$internal_configuration 7644 xealias=$internal_configuration
7639 7645
7640 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 7646 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
7641 echo "configure:7642: checking how to build dynamic libraries for ${xehost}" >&5 7647 echo "configure:7648: checking how to build dynamic libraries for ${xehost}" >&5
7642 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 7648 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
7643 case "$xehost" in 7649 case "$xehost" in
7644 *-*-linux-gnu*) ;; 7650 *-*-linux-gnu*) ;;
7645 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 7651 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
7646 esac 7652 esac
7664 # Now see if the compiler is really GCC. 7670 # Now see if the compiler is really GCC.
7665 if test "$GCC" = "yes"; then 7671 if test "$GCC" = "yes"; then
7666 XEGCC=yes 7672 XEGCC=yes
7667 else 7673 else
7668 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 7674 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
7669 echo "configure:7670: checking checking whether we are using GNU C" >&5 7675 echo "configure:7676: checking checking whether we are using GNU C" >&5
7670 cat > conftest.$ac_ext <<EOF 7676 cat > conftest.$ac_ext <<EOF
7671 #line 7672 "configure" 7677 #line 7678 "configure"
7672 #include "confdefs.h" 7678 #include "confdefs.h"
7673 7679
7674 #ifdef __GNUC__ 7680 #ifdef __GNUC__
7675 yes; 7681 yes;
7676 #endif 7682 #endif
7688 7694
7689 echo "$ac_t""${XEGCC}" 1>&6 7695 echo "$ac_t""${XEGCC}" 1>&6
7690 fi 7696 fi
7691 7697
7692 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 7698 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
7693 echo "configure:7694: checking how to produce PIC code" >&5 7699 echo "configure:7700: checking how to produce PIC code" >&5
7694 wl= 7700 wl=
7695 7701
7696 can_build_shared=yes 7702 can_build_shared=yes
7697 cygwin_warn= 7703 cygwin_warn=
7698 if test "$XEGCC" = yes; then 7704 if test "$XEGCC" = yes; then
7794 if test -n "$dll_cflags"; then 7800 if test -n "$dll_cflags"; then
7795 echo "$ac_t""${dll_cflags}" 1>&6 7801 echo "$ac_t""${dll_cflags}" 1>&6
7796 7802
7797 # Check to make sure the dll_cflags actually works. 7803 # Check to make sure the dll_cflags actually works.
7798 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 7804 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
7799 echo "configure:7800: checking if PIC flag ${dll_cflags} really works" >&5 7805 echo "configure:7806: checking if PIC flag ${dll_cflags} really works" >&5
7800 save_CFLAGS="$CFLAGS" 7806 save_CFLAGS="$CFLAGS"
7801 CFLAGS="$CFLAGS $dll_cflags -DPIC" 7807 CFLAGS="$CFLAGS $dll_cflags -DPIC"
7802 cat > conftest.$ac_ext <<EOF 7808 cat > conftest.$ac_ext <<EOF
7803 #line 7804 "configure" 7809 #line 7810 "configure"
7804 #include "confdefs.h" 7810 #include "confdefs.h"
7805 7811
7806 int main() { 7812 int main() {
7807 int x=0; 7813 int x=0;
7808 ; return 0; } 7814 ; return 0; }
7809 EOF 7815 EOF
7810 if { (eval echo configure:7811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7816 if { (eval echo configure:7817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7811 rm -rf conftest* 7817 rm -rf conftest*
7812 7818
7813 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 7819 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
7814 # reports no error. So, we need to grep stderr for (Bundled). 7820 # reports no error. So, we need to grep stderr for (Bundled).
7815 if grep '(Bundled)' config.log >/dev/null; then 7821 if grep '(Bundled)' config.log >/dev/null; then
7840 if test "$can_build_shared" = "yes"; then 7846 if test "$can_build_shared" = "yes"; then
7841 cc_produces_so=no 7847 cc_produces_so=no
7842 xldf= 7848 xldf=
7843 xcldf= 7849 xcldf=
7844 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 7850 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
7845 echo "configure:7846: checking if C compiler can produce shared libraries" >&5 7851 echo "configure:7852: checking if C compiler can produce shared libraries" >&5
7846 if test "$XEGCC" = yes; then 7852 if test "$XEGCC" = yes; then
7847 xcldf="-shared" 7853 xcldf="-shared"
7848 xldf="-shared" 7854 xldf="-shared"
7849 else # Not using GCC 7855 else # Not using GCC
7850 case "$xehost_os" in 7856 case "$xehost_os" in
7891 LDFLAGS="$xcldf $LDFLAGS" 7897 LDFLAGS="$xcldf $LDFLAGS"
7892 LIBS= 7898 LIBS=
7893 xe_libs= 7899 xe_libs=
7894 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 7900 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
7895 cat > conftest.$ac_ext <<EOF 7901 cat > conftest.$ac_ext <<EOF
7896 #line 7897 "configure" 7902 #line 7903 "configure"
7897 #include "confdefs.h" 7903 #include "confdefs.h"
7898 7904
7899 int main() { 7905 int main() {
7900 int x=0; 7906 int x=0;
7901 ; return 0; } 7907 ; return 0; }
7902 EOF 7908 EOF
7903 if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7909 if { (eval echo configure:7910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7904 rm -rf conftest* 7910 rm -rf conftest*
7905 cc_produces_so=yes 7911 cc_produces_so=yes
7906 else 7912 else
7907 echo "configure: failed program was:" >&5 7913 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5 7914 cat conftest.$ac_ext >&5
7923 if test -z "$LTLD"; then 7929 if test -z "$LTLD"; then
7924 ac_prog=ld 7930 ac_prog=ld
7925 if test "$XEGCC" = yes; then 7931 if test "$XEGCC" = yes; then
7926 # Check if gcc -print-prog-name=ld gives a path. 7932 # Check if gcc -print-prog-name=ld gives a path.
7927 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 7933 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
7928 echo "configure:7929: checking for ld used by GCC" >&5 7934 echo "configure:7935: checking for ld used by GCC" >&5
7929 ac_prog=`($CC -print-prog-name=ld) 2>&5` 7935 ac_prog=`($CC -print-prog-name=ld) 2>&5`
7930 case "$ac_prog" in 7936 case "$ac_prog" in
7931 # Accept absolute paths. 7937 # Accept absolute paths.
7932 /*) 7938 /*)
7933 if test -z "$LTLD"; then 7939 if test -z "$LTLD"; then
7949 with_gnu_ld=unknown 7955 with_gnu_ld=unknown
7950 ;; 7956 ;;
7951 esac 7957 esac
7952 else 7958 else
7953 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 7959 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
7954 echo "configure:7955: checking for GNU ld" >&5 7960 echo "configure:7961: checking for GNU ld" >&5
7955 fi 7961 fi
7956 7962
7957 if test -z "$LTLD"; then 7963 if test -z "$LTLD"; then
7958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 7964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7959 for ac_dir in $PATH; do 7965 for ac_dir in $PATH; do
7987 7993
7988 ld_dynamic_link_flags= 7994 ld_dynamic_link_flags=
7989 7995
7990 # Check to see if it really is or isn't GNU ld. 7996 # Check to see if it really is or isn't GNU ld.
7991 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 7997 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
7992 echo "configure:7993: checking if the linker is GNU ld" >&5 7998 echo "configure:7999: checking if the linker is GNU ld" >&5
7993 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7999 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7994 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 8000 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7995 xe_gnu_ld=yes 8001 xe_gnu_ld=yes
7996 else 8002 else
7997 xe_gnu_ld=no 8003 xe_gnu_ld=no
8015 ld_shlibs=yes 8021 ld_shlibs=yes
8016 else 8022 else
8017 # OK - only NOW do we futz about with ld. 8023 # OK - only NOW do we futz about with ld.
8018 # See if the linker supports building shared libraries. 8024 # See if the linker supports building shared libraries.
8019 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 8025 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
8020 echo "configure:8021: checking whether the linker supports shared libraries" >&5 8026 echo "configure:8027: checking whether the linker supports shared libraries" >&5
8021 dll_ld=$CC 8027 dll_ld=$CC
8022 dll_ldflags=$LDFLAGS 8028 dll_ldflags=$LDFLAGS
8023 ld_shlibs=yes 8029 ld_shlibs=yes
8024 can_build_shared=yes 8030 can_build_shared=yes
8025 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 8031 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
8223 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 8229 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
8224 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 8230 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
8225 for ac_func in dlerror _dlerror 8231 for ac_func in dlerror _dlerror
8226 do 8232 do
8227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8228 echo "configure:8229: checking for $ac_func" >&5 8234 echo "configure:8235: checking for $ac_func" >&5
8229 8235
8230 cat > conftest.$ac_ext <<EOF 8236 cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure" 8237 #line 8238 "configure"
8232 #include "confdefs.h" 8238 #include "confdefs.h"
8233 /* System header to define __stub macros and hopefully few prototypes, 8239 /* System header to define __stub macros and hopefully few prototypes,
8234 which can conflict with char $ac_func(); below. */ 8240 which can conflict with char $ac_func(); below. */
8235 #include <assert.h> 8241 #include <assert.h>
8236 /* Override any gcc2 internal prototype to avoid an error. */ 8242 /* Override any gcc2 internal prototype to avoid an error. */
8249 $ac_func(); 8255 $ac_func();
8250 #endif 8256 #endif
8251 8257
8252 ; return 0; } 8258 ; return 0; }
8253 EOF 8259 EOF
8254 if { (eval echo configure:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8260 if { (eval echo configure:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8255 rm -rf conftest* 8261 rm -rf conftest*
8256 eval "ac_cv_func_$ac_func=yes" 8262 eval "ac_cv_func_$ac_func=yes"
8257 else 8263 else
8258 echo "configure: failed program was:" >&5 8264 echo "configure: failed program was:" >&5
8259 cat conftest.$ac_ext >&5 8265 cat conftest.$ac_ext >&5
8311 8317
8312 if test "$with_tooltalk" != "no" ; then 8318 if test "$with_tooltalk" != "no" ; then
8313 for dir in "" "Tt/" "desktop/" ; do 8319 for dir in "" "Tt/" "desktop/" ; do
8314 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 8320 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
8315 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 8321 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
8316 echo "configure:8317: checking for ${dir}tt_c.h" >&5 8322 echo "configure:8323: checking for ${dir}tt_c.h" >&5
8317 8323
8318 cat > conftest.$ac_ext <<EOF 8324 cat > conftest.$ac_ext <<EOF
8319 #line 8320 "configure" 8325 #line 8326 "configure"
8320 #include "confdefs.h" 8326 #include "confdefs.h"
8321 #include <${dir}tt_c.h> 8327 #include <${dir}tt_c.h>
8322 EOF 8328 EOF
8323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8324 { (eval echo configure:8325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8326 if test -z "$ac_err"; then 8332 if test -z "$ac_err"; then
8327 rm -rf conftest* 8333 rm -rf conftest*
8328 eval "ac_cv_header_$ac_safe=yes" 8334 eval "ac_cv_header_$ac_safe=yes"
8329 else 8335 else
8355 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 8361 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
8356 8362
8357 xe_msg_checking="for tt_message_create in -ltt" 8363 xe_msg_checking="for tt_message_create in -ltt"
8358 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 8364 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
8359 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8365 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8360 echo "configure:8361: checking "$xe_msg_checking"" >&5 8366 echo "configure:8367: checking "$xe_msg_checking"" >&5
8361 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 8367 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
8362 8368
8363 xe_check_libs=" -ltt $extra_libs" 8369 xe_check_libs=" -ltt $extra_libs"
8364 cat > conftest.$ac_ext <<EOF 8370 cat > conftest.$ac_ext <<EOF
8365 #line 8366 "configure" 8371 #line 8372 "configure"
8366 #include "confdefs.h" 8372 #include "confdefs.h"
8367 /* Override any gcc2 internal prototype to avoid an error. */ 8373 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2 8374 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */ 8375 builtin and then its argument prototype would still apply. */
8370 char tt_message_create(); 8376 char tt_message_create();
8371 8377
8372 int main() { 8378 int main() {
8373 tt_message_create() 8379 tt_message_create()
8374 ; return 0; } 8380 ; return 0; }
8375 EOF 8381 EOF
8376 if { (eval echo configure:8377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8377 rm -rf conftest* 8383 rm -rf conftest*
8378 eval "ac_cv_lib_$ac_lib_var=yes" 8384 eval "ac_cv_lib_$ac_lib_var=yes"
8379 else 8385 else
8380 echo "configure: failed program was:" >&5 8386 echo "configure: failed program was:" >&5
8381 cat conftest.$ac_ext >&5 8387 cat conftest.$ac_ext >&5
8425 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi 8431 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
8426 fi 8432 fi
8427 8433
8428 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 8434 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
8429 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 8435 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
8430 echo "configure:8431: checking for Dt/Dt.h" >&5 8436 echo "configure:8437: checking for Dt/Dt.h" >&5
8431 8437
8432 cat > conftest.$ac_ext <<EOF 8438 cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure" 8439 #line 8440 "configure"
8434 #include "confdefs.h" 8440 #include "confdefs.h"
8435 #include <Dt/Dt.h> 8441 #include <Dt/Dt.h>
8436 EOF 8442 EOF
8437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8438 { (eval echo configure:8439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8444 { (eval echo configure:8445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8440 if test -z "$ac_err"; then 8446 if test -z "$ac_err"; then
8441 rm -rf conftest* 8447 rm -rf conftest*
8442 eval "ac_cv_header_$ac_safe=yes" 8448 eval "ac_cv_header_$ac_safe=yes"
8443 else 8449 else
8456 with_cde=no 8462 with_cde=no
8457 fi 8463 fi
8458 } 8464 }
8459 test -z "$with_cde" && { 8465 test -z "$with_cde" && {
8460 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 8466 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
8461 echo "configure:8462: checking for DtDndDragStart in -lDtSvc" >&5 8467 echo "configure:8468: checking for DtDndDragStart in -lDtSvc" >&5
8462 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 8468 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
8463 8469
8464 xe_check_libs=" -lDtSvc " 8470 xe_check_libs=" -lDtSvc "
8465 cat > conftest.$ac_ext <<EOF 8471 cat > conftest.$ac_ext <<EOF
8466 #line 8467 "configure" 8472 #line 8473 "configure"
8467 #include "confdefs.h" 8473 #include "confdefs.h"
8468 /* Override any gcc2 internal prototype to avoid an error. */ 8474 /* Override any gcc2 internal prototype to avoid an error. */
8469 /* We use char because int might match the return type of a gcc2 8475 /* We use char because int might match the return type of a gcc2
8470 builtin and then its argument prototype would still apply. */ 8476 builtin and then its argument prototype would still apply. */
8471 char DtDndDragStart(); 8477 char DtDndDragStart();
8472 8478
8473 int main() { 8479 int main() {
8474 DtDndDragStart() 8480 DtDndDragStart()
8475 ; return 0; } 8481 ; return 0; }
8476 EOF 8482 EOF
8477 if { (eval echo configure:8478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8483 if { (eval echo configure:8484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8478 rm -rf conftest* 8484 rm -rf conftest*
8479 eval "ac_cv_lib_$ac_lib_var=yes" 8485 eval "ac_cv_lib_$ac_lib_var=yes"
8480 else 8486 else
8481 echo "configure: failed program was:" >&5 8487 echo "configure: failed program was:" >&5
8482 cat conftest.$ac_ext >&5 8488 cat conftest.$ac_ext >&5
8553 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 8559 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
8554 fi 8560 fi
8555 8561
8556 if test "$with_dragndrop" != "no" ; then 8562 if test "$with_dragndrop" != "no" ; then
8557 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 8563 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
8558 echo "configure:8559: checking if drag and drop API is needed" >&5 8564 echo "configure:8565: checking if drag and drop API is needed" >&5
8559 if test -n "$dragndrop_proto" ; then 8565 if test -n "$dragndrop_proto" ; then
8560 with_dragndrop=yes 8566 with_dragndrop=yes
8561 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 8567 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
8562 { test "$extra_verbose" = "yes" && cat << \EOF 8568 { test "$extra_verbose" = "yes" && cat << \EOF
8563 Defining HAVE_DRAGNDROP 8569 Defining HAVE_DRAGNDROP
8573 echo "$ac_t""no" 1>&6 8579 echo "$ac_t""no" 1>&6
8574 fi 8580 fi
8575 fi 8581 fi
8576 8582
8577 echo "checking for LDAP" 1>&6 8583 echo "checking for LDAP" 1>&6
8578 echo "configure:8579: checking for LDAP" >&5 8584 echo "configure:8585: checking for LDAP" >&5
8579 ldap_libs= 8585 ldap_libs=
8580 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 8586 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
8581 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 8587 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
8582 echo "configure:8583: checking for ldap.h" >&5 8588 echo "configure:8589: checking for ldap.h" >&5
8583 8589
8584 cat > conftest.$ac_ext <<EOF 8590 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure" 8591 #line 8592 "configure"
8586 #include "confdefs.h" 8592 #include "confdefs.h"
8587 #include <ldap.h> 8593 #include <ldap.h>
8588 EOF 8594 EOF
8589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8590 { (eval echo configure:8591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8596 { (eval echo configure:8597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8592 if test -z "$ac_err"; then 8598 if test -z "$ac_err"; then
8593 rm -rf conftest* 8599 rm -rf conftest*
8594 eval "ac_cv_header_$ac_safe=yes" 8600 eval "ac_cv_header_$ac_safe=yes"
8595 else 8601 else
8608 with_ldap=no 8614 with_ldap=no
8609 fi 8615 fi
8610 } 8616 }
8611 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 8617 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
8612 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 8618 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
8613 echo "configure:8614: checking for lber.h" >&5 8619 echo "configure:8620: checking for lber.h" >&5
8614 8620
8615 cat > conftest.$ac_ext <<EOF 8621 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure" 8622 #line 8623 "configure"
8617 #include "confdefs.h" 8623 #include "confdefs.h"
8618 #include <lber.h> 8624 #include <lber.h>
8619 EOF 8625 EOF
8620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8621 { (eval echo configure:8622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8627 { (eval echo configure:8628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8623 if test -z "$ac_err"; then 8629 if test -z "$ac_err"; then
8624 rm -rf conftest* 8630 rm -rf conftest*
8625 eval "ac_cv_header_$ac_safe=yes" 8631 eval "ac_cv_header_$ac_safe=yes"
8626 else 8632 else
8640 fi 8646 fi
8641 } 8647 }
8642 if test "$with_ldap" != "no"; then 8648 if test "$with_ldap" != "no"; then
8643 8649
8644 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 8650 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
8645 echo "configure:8646: checking for ldap_search in -lldap" >&5 8651 echo "configure:8652: checking for ldap_search in -lldap" >&5
8646 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 8652 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
8647 8653
8648 xe_check_libs=" -lldap " 8654 xe_check_libs=" -lldap "
8649 cat > conftest.$ac_ext <<EOF 8655 cat > conftest.$ac_ext <<EOF
8650 #line 8651 "configure" 8656 #line 8657 "configure"
8651 #include "confdefs.h" 8657 #include "confdefs.h"
8652 /* Override any gcc2 internal prototype to avoid an error. */ 8658 /* Override any gcc2 internal prototype to avoid an error. */
8653 /* We use char because int might match the return type of a gcc2 8659 /* We use char because int might match the return type of a gcc2
8654 builtin and then its argument prototype would still apply. */ 8660 builtin and then its argument prototype would still apply. */
8655 char ldap_search(); 8661 char ldap_search();
8656 8662
8657 int main() { 8663 int main() {
8658 ldap_search() 8664 ldap_search()
8659 ; return 0; } 8665 ; return 0; }
8660 EOF 8666 EOF
8661 if { (eval echo configure:8662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8667 if { (eval echo configure:8668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8662 rm -rf conftest* 8668 rm -rf conftest*
8663 eval "ac_cv_lib_$ac_lib_var=yes" 8669 eval "ac_cv_lib_$ac_lib_var=yes"
8664 else 8670 else
8665 echo "configure: failed program was:" >&5 8671 echo "configure: failed program was:" >&5
8666 cat conftest.$ac_ext >&5 8672 cat conftest.$ac_ext >&5
8681 8687
8682 test "$with_ldap_nolber" = "no" && { 8688 test "$with_ldap_nolber" = "no" && {
8683 xe_msg_checking="for ldap_open in -lldap" 8689 xe_msg_checking="for ldap_open in -lldap"
8684 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 8690 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
8685 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8691 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8686 echo "configure:8687: checking "$xe_msg_checking"" >&5 8692 echo "configure:8693: checking "$xe_msg_checking"" >&5
8687 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 8693 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8688 8694
8689 xe_check_libs=" -lldap -llber" 8695 xe_check_libs=" -lldap -llber"
8690 cat > conftest.$ac_ext <<EOF 8696 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure" 8697 #line 8698 "configure"
8692 #include "confdefs.h" 8698 #include "confdefs.h"
8693 /* Override any gcc2 internal prototype to avoid an error. */ 8699 /* Override any gcc2 internal prototype to avoid an error. */
8694 /* We use char because int might match the return type of a gcc2 8700 /* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */ 8701 builtin and then its argument prototype would still apply. */
8696 char ldap_open(); 8702 char ldap_open();
8697 8703
8698 int main() { 8704 int main() {
8699 ldap_open() 8705 ldap_open()
8700 ; return 0; } 8706 ; return 0; }
8701 EOF 8707 EOF
8702 if { (eval echo configure:8703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8708 if { (eval echo configure:8709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8703 rm -rf conftest* 8709 rm -rf conftest*
8704 eval "ac_cv_lib_$ac_lib_var=yes" 8710 eval "ac_cv_lib_$ac_lib_var=yes"
8705 else 8711 else
8706 echo "configure: failed program was:" >&5 8712 echo "configure: failed program was:" >&5
8707 cat conftest.$ac_ext >&5 8713 cat conftest.$ac_ext >&5
8722 } 8728 }
8723 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 8729 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
8724 xe_msg_checking="for ldap_open in -lldap" 8730 xe_msg_checking="for ldap_open in -lldap"
8725 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 8731 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
8726 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8732 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8727 echo "configure:8728: checking "$xe_msg_checking"" >&5 8733 echo "configure:8734: checking "$xe_msg_checking"" >&5
8728 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 8734 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8729 8735
8730 xe_check_libs=" -lldap -llber -lkrb" 8736 xe_check_libs=" -lldap -llber -lkrb"
8731 cat > conftest.$ac_ext <<EOF 8737 cat > conftest.$ac_ext <<EOF
8732 #line 8733 "configure" 8738 #line 8739 "configure"
8733 #include "confdefs.h" 8739 #include "confdefs.h"
8734 /* Override any gcc2 internal prototype to avoid an error. */ 8740 /* Override any gcc2 internal prototype to avoid an error. */
8735 /* We use char because int might match the return type of a gcc2 8741 /* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */ 8742 builtin and then its argument prototype would still apply. */
8737 char ldap_open(); 8743 char ldap_open();
8738 8744
8739 int main() { 8745 int main() {
8740 ldap_open() 8746 ldap_open()
8741 ; return 0; } 8747 ; return 0; }
8742 EOF 8748 EOF
8743 if { (eval echo configure:8744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8744 rm -rf conftest* 8750 rm -rf conftest*
8745 eval "ac_cv_lib_$ac_lib_var=yes" 8751 eval "ac_cv_lib_$ac_lib_var=yes"
8746 else 8752 else
8747 echo "configure: failed program was:" >&5 8753 echo "configure: failed program was:" >&5
8748 cat conftest.$ac_ext >&5 8754 cat conftest.$ac_ext >&5
8763 } 8769 }
8764 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 8770 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
8765 xe_msg_checking="for ldap_open in -lldap" 8771 xe_msg_checking="for ldap_open in -lldap"
8766 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 8772 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
8767 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8773 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8768 echo "configure:8769: checking "$xe_msg_checking"" >&5 8774 echo "configure:8775: checking "$xe_msg_checking"" >&5
8769 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 8775 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8770 8776
8771 xe_check_libs=" -lldap -llber -lkrb -ldes" 8777 xe_check_libs=" -lldap -llber -lkrb -ldes"
8772 cat > conftest.$ac_ext <<EOF 8778 cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure" 8779 #line 8780 "configure"
8774 #include "confdefs.h" 8780 #include "confdefs.h"
8775 /* Override any gcc2 internal prototype to avoid an error. */ 8781 /* Override any gcc2 internal prototype to avoid an error. */
8776 /* We use char because int might match the return type of a gcc2 8782 /* We use char because int might match the return type of a gcc2
8777 builtin and then its argument prototype would still apply. */ 8783 builtin and then its argument prototype would still apply. */
8778 char ldap_open(); 8784 char ldap_open();
8779 8785
8780 int main() { 8786 int main() {
8781 ldap_open() 8787 ldap_open()
8782 ; return 0; } 8788 ; return 0; }
8783 EOF 8789 EOF
8784 if { (eval echo configure:8785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8790 if { (eval echo configure:8791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8785 rm -rf conftest* 8791 rm -rf conftest*
8786 eval "ac_cv_lib_$ac_lib_var=yes" 8792 eval "ac_cv_lib_$ac_lib_var=yes"
8787 else 8793 else
8788 echo "configure: failed program was:" >&5 8794 echo "configure: failed program was:" >&5
8789 cat conftest.$ac_ext >&5 8795 cat conftest.$ac_ext >&5
8828 fi 8834 fi
8829 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs" 8835 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
8830 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 8836 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8831 do 8837 do
8832 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8838 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8833 echo "configure:8834: checking for $ac_func" >&5 8839 echo "configure:8840: checking for $ac_func" >&5
8834 8840
8835 cat > conftest.$ac_ext <<EOF 8841 cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure" 8842 #line 8843 "configure"
8837 #include "confdefs.h" 8843 #include "confdefs.h"
8838 /* System header to define __stub macros and hopefully few prototypes, 8844 /* System header to define __stub macros and hopefully few prototypes,
8839 which can conflict with char $ac_func(); below. */ 8845 which can conflict with char $ac_func(); below. */
8840 #include <assert.h> 8846 #include <assert.h>
8841 /* Override any gcc2 internal prototype to avoid an error. */ 8847 /* Override any gcc2 internal prototype to avoid an error. */
8854 $ac_func(); 8860 $ac_func();
8855 #endif 8861 #endif
8856 8862
8857 ; return 0; } 8863 ; return 0; }
8858 EOF 8864 EOF
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8865 if { (eval echo configure:8866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8860 rm -rf conftest* 8866 rm -rf conftest*
8861 eval "ac_cv_func_$ac_func=yes" 8867 eval "ac_cv_func_$ac_func=yes"
8862 else 8868 else
8863 echo "configure: failed program was:" >&5 8869 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5 8870 cat conftest.$ac_ext >&5
8893 8899
8894 8900
8895 postgresql_libs= 8901 postgresql_libs=
8896 if test "$with_postgresql" != "no"; then 8902 if test "$with_postgresql" != "no"; then
8897 echo "checking for PostgreSQL" 1>&6 8903 echo "checking for PostgreSQL" 1>&6
8898 echo "configure:8899: checking for PostgreSQL" >&5 8904 echo "configure:8905: checking for PostgreSQL" >&5
8899 8905
8900 for header_dir in "" "pgsql/" "postgresql/"; do 8906 for header_dir in "" "pgsql/" "postgresql/"; do
8901 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 8907 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
8902 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 8908 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
8903 echo "configure:8904: checking for ${header_dir}libpq-fe.h" >&5 8909 echo "configure:8910: checking for ${header_dir}libpq-fe.h" >&5
8904 8910
8905 cat > conftest.$ac_ext <<EOF 8911 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure" 8912 #line 8913 "configure"
8907 #include "confdefs.h" 8913 #include "confdefs.h"
8908 #include <${header_dir}libpq-fe.h> 8914 #include <${header_dir}libpq-fe.h>
8909 EOF 8915 EOF
8910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8911 { (eval echo configure:8912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8917 { (eval echo configure:8918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8913 if test -z "$ac_err"; then 8919 if test -z "$ac_err"; then
8914 rm -rf conftest* 8920 rm -rf conftest*
8915 eval "ac_cv_header_$ac_safe=yes" 8921 eval "ac_cv_header_$ac_safe=yes"
8916 else 8922 else
8930 8936
8931 done 8937 done
8932 8938
8933 test -n "$libpq_fe_h_file" && { 8939 test -n "$libpq_fe_h_file" && {
8934 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 8940 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
8935 echo "configure:8936: checking for PQconnectdb in -lpq" >&5 8941 echo "configure:8942: checking for PQconnectdb in -lpq" >&5
8936 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 8942 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
8937 8943
8938 xe_check_libs=" -lpq " 8944 xe_check_libs=" -lpq "
8939 cat > conftest.$ac_ext <<EOF 8945 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure" 8946 #line 8947 "configure"
8941 #include "confdefs.h" 8947 #include "confdefs.h"
8942 /* Override any gcc2 internal prototype to avoid an error. */ 8948 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2 8949 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */ 8950 builtin and then its argument prototype would still apply. */
8945 char PQconnectdb(); 8951 char PQconnectdb();
8946 8952
8947 int main() { 8953 int main() {
8948 PQconnectdb() 8954 PQconnectdb()
8949 ; return 0; } 8955 ; return 0; }
8950 EOF 8956 EOF
8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8957 if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8952 rm -rf conftest* 8958 rm -rf conftest*
8953 eval "ac_cv_lib_$ac_lib_var=yes" 8959 eval "ac_cv_lib_$ac_lib_var=yes"
8954 else 8960 else
8955 echo "configure: failed program was:" >&5 8961 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5 8962 cat conftest.$ac_ext >&5
8979 EOF 8985 EOF
8980 } 8986 }
8981 8987
8982 8988
8983 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 8989 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
8984 echo "configure:8985: checking for PQconnectStart in -lpq" >&5 8990 echo "configure:8991: checking for PQconnectStart in -lpq" >&5
8985 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 8991 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
8986 8992
8987 xe_check_libs=" -lpq " 8993 xe_check_libs=" -lpq "
8988 cat > conftest.$ac_ext <<EOF 8994 cat > conftest.$ac_ext <<EOF
8989 #line 8990 "configure" 8995 #line 8996 "configure"
8990 #include "confdefs.h" 8996 #include "confdefs.h"
8991 /* Override any gcc2 internal prototype to avoid an error. */ 8997 /* Override any gcc2 internal prototype to avoid an error. */
8992 /* We use char because int might match the return type of a gcc2 8998 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */ 8999 builtin and then its argument prototype would still apply. */
8994 char PQconnectStart(); 9000 char PQconnectStart();
8995 9001
8996 int main() { 9002 int main() {
8997 PQconnectStart() 9003 PQconnectStart()
8998 ; return 0; } 9004 ; return 0; }
8999 EOF 9005 EOF
9000 if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9006 if { (eval echo configure:9007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9001 rm -rf conftest* 9007 rm -rf conftest*
9002 eval "ac_cv_lib_$ac_lib_var=yes" 9008 eval "ac_cv_lib_$ac_lib_var=yes"
9003 else 9009 else
9004 echo "configure: failed program was:" >&5 9010 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5 9011 cat conftest.$ac_ext >&5
9046 9052
9047 9053
9048 9054
9049 if test "$window_system" != "none"; then 9055 if test "$window_system" != "none"; then
9050 echo "checking for graphics libraries" 1>&6 9056 echo "checking for graphics libraries" 1>&6
9051 echo "configure:9052: checking for graphics libraries" >&5 9057 echo "configure:9058: checking for graphics libraries" >&5
9052 9058
9053 libpath_xpm= 9059 libpath_xpm=
9054 incpath_xpm= 9060 incpath_xpm=
9055 case "$opsys" in 9061 case "$opsys" in
9056 cygwin*) 9062 cygwin*)
9072 xpm_problem="" 9078 xpm_problem=""
9073 if test -z "$with_xpm"; then 9079 if test -z "$with_xpm"; then
9074 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9080 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9075 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9081 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9076 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 9082 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
9077 echo "configure:9078: checking for Xpm - no older than 3.4f" >&5 9083 echo "configure:9084: checking for Xpm - no older than 3.4f" >&5
9078 xe_check_libs=-lXpm 9084 xe_check_libs=-lXpm
9079 cat > conftest.$ac_ext <<EOF 9085 cat > conftest.$ac_ext <<EOF
9080 #line 9081 "configure" 9086 #line 9087 "configure"
9081 #include "confdefs.h" 9087 #include "confdefs.h"
9082 #define XPM_NUMBERS 9088 #define XPM_NUMBERS
9083 #include <X11/xpm.h> 9089 #include <X11/xpm.h>
9084 int main(int c, char **v) { 9090 int main(int c, char **v) {
9085 return c == 1 ? 0 : 9091 return c == 1 ? 0 :
9086 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 9092 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
9087 XpmIncludeVersion < 30406 ? 2 : 0 ;} 9093 XpmIncludeVersion < 30406 ? 2 : 0 ;}
9088 EOF 9094 EOF
9089 if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9090 then 9096 then
9091 ./conftest dummy_arg; xpm_status=$?; 9097 ./conftest dummy_arg; xpm_status=$?;
9092 if test "$xpm_status" = "0"; then 9098 if test "$xpm_status" = "0"; then
9093 with_xpm=yes; 9099 with_xpm=yes;
9094 else 9100 else
9128 9134
9129 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9135 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9130 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 9136 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
9131 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9137 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9132 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 9138 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
9133 echo "configure:9134: checking for \"FOR_MSW\" xpm" >&5 9139 echo "configure:9140: checking for \"FOR_MSW\" xpm" >&5
9134 xe_check_libs=-lXpm 9140 xe_check_libs=-lXpm
9135 cat > conftest.$ac_ext <<EOF 9141 cat > conftest.$ac_ext <<EOF
9136 #line 9137 "configure" 9142 #line 9143 "configure"
9137 #include "confdefs.h" 9143 #include "confdefs.h"
9138 9144
9139 int main() { 9145 int main() {
9140 XpmCreatePixmapFromData() 9146 XpmCreatePixmapFromData()
9141 ; return 0; } 9147 ; return 0; }
9142 EOF 9148 EOF
9143 if { (eval echo configure:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9149 if { (eval echo configure:9150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9144 rm -rf conftest* 9150 rm -rf conftest*
9145 xpm_for_msw=no 9151 xpm_for_msw=no
9146 else 9152 else
9147 echo "configure: failed program was:" >&5 9153 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5 9154 cat conftest.$ac_ext >&5
9164 fi 9170 fi
9165 fi 9171 fi
9166 9172
9167 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9173 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9168 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9174 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9169 echo "configure:9170: checking for compface.h" >&5 9175 echo "configure:9176: checking for compface.h" >&5
9170 9176
9171 cat > conftest.$ac_ext <<EOF 9177 cat > conftest.$ac_ext <<EOF
9172 #line 9173 "configure" 9178 #line 9179 "configure"
9173 #include "confdefs.h" 9179 #include "confdefs.h"
9174 #include <compface.h> 9180 #include <compface.h>
9175 EOF 9181 EOF
9176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9177 { (eval echo configure:9178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9183 { (eval echo configure:9184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9179 if test -z "$ac_err"; then 9185 if test -z "$ac_err"; then
9180 rm -rf conftest* 9186 rm -rf conftest*
9181 eval "ac_cv_header_$ac_safe=yes" 9187 eval "ac_cv_header_$ac_safe=yes"
9182 else 9188 else
9195 with_xface=no 9201 with_xface=no
9196 fi 9202 fi
9197 } 9203 }
9198 test -z "$with_xface" && { 9204 test -z "$with_xface" && {
9199 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9205 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9200 echo "configure:9201: checking for UnGenFace in -lcompface" >&5 9206 echo "configure:9207: checking for UnGenFace in -lcompface" >&5
9201 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9207 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9202 9208
9203 xe_check_libs=" -lcompface " 9209 xe_check_libs=" -lcompface "
9204 cat > conftest.$ac_ext <<EOF 9210 cat > conftest.$ac_ext <<EOF
9205 #line 9206 "configure" 9211 #line 9212 "configure"
9206 #include "confdefs.h" 9212 #include "confdefs.h"
9207 /* Override any gcc2 internal prototype to avoid an error. */ 9213 /* Override any gcc2 internal prototype to avoid an error. */
9208 /* We use char because int might match the return type of a gcc2 9214 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */ 9215 builtin and then its argument prototype would still apply. */
9210 char UnGenFace(); 9216 char UnGenFace();
9211 9217
9212 int main() { 9218 int main() {
9213 UnGenFace() 9219 UnGenFace()
9214 ; return 0; } 9220 ; return 0; }
9215 EOF 9221 EOF
9216 if { (eval echo configure:9217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9222 if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9217 rm -rf conftest* 9223 rm -rf conftest*
9218 eval "ac_cv_lib_$ac_lib_var=yes" 9224 eval "ac_cv_lib_$ac_lib_var=yes"
9219 else 9225 else
9220 echo "configure: failed program was:" >&5 9226 echo "configure: failed program was:" >&5
9221 cat conftest.$ac_ext >&5 9227 cat conftest.$ac_ext >&5
9260 fi 9266 fi
9261 9267
9262 if test "$with_png $with_tiff" != "no no"; then 9268 if test "$with_png $with_tiff" != "no no"; then
9263 9269
9264 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 9270 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
9265 echo "configure:9266: checking for inflate in -lc" >&5 9271 echo "configure:9272: checking for inflate in -lc" >&5
9266 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 9272 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
9267 9273
9268 xe_check_libs=" -lc " 9274 xe_check_libs=" -lc "
9269 cat > conftest.$ac_ext <<EOF 9275 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure" 9276 #line 9277 "configure"
9271 #include "confdefs.h" 9277 #include "confdefs.h"
9272 /* Override any gcc2 internal prototype to avoid an error. */ 9278 /* Override any gcc2 internal prototype to avoid an error. */
9273 /* We use char because int might match the return type of a gcc2 9279 /* We use char because int might match the return type of a gcc2
9274 builtin and then its argument prototype would still apply. */ 9280 builtin and then its argument prototype would still apply. */
9275 char inflate(); 9281 char inflate();
9276 9282
9277 int main() { 9283 int main() {
9278 inflate() 9284 inflate()
9279 ; return 0; } 9285 ; return 0; }
9280 EOF 9286 EOF
9281 if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9287 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9282 rm -rf conftest* 9288 rm -rf conftest*
9283 eval "ac_cv_lib_$ac_lib_var=yes" 9289 eval "ac_cv_lib_$ac_lib_var=yes"
9284 else 9290 else
9285 echo "configure: failed program was:" >&5 9291 echo "configure: failed program was:" >&5
9286 cat conftest.$ac_ext >&5 9292 cat conftest.$ac_ext >&5
9295 : 9301 :
9296 else 9302 else
9297 echo "$ac_t""no" 1>&6 9303 echo "$ac_t""no" 1>&6
9298 9304
9299 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 9305 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
9300 echo "configure:9301: checking for inflate in -lz" >&5 9306 echo "configure:9307: checking for inflate in -lz" >&5
9301 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 9307 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
9302 9308
9303 xe_check_libs=" -lz " 9309 xe_check_libs=" -lz "
9304 cat > conftest.$ac_ext <<EOF 9310 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure" 9311 #line 9312 "configure"
9306 #include "confdefs.h" 9312 #include "confdefs.h"
9307 /* Override any gcc2 internal prototype to avoid an error. */ 9313 /* Override any gcc2 internal prototype to avoid an error. */
9308 /* We use char because int might match the return type of a gcc2 9314 /* We use char because int might match the return type of a gcc2
9309 builtin and then its argument prototype would still apply. */ 9315 builtin and then its argument prototype would still apply. */
9310 char inflate(); 9316 char inflate();
9311 9317
9312 int main() { 9318 int main() {
9313 inflate() 9319 inflate()
9314 ; return 0; } 9320 ; return 0; }
9315 EOF 9321 EOF
9316 if { (eval echo configure:9317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9317 rm -rf conftest* 9323 rm -rf conftest*
9318 eval "ac_cv_lib_$ac_lib_var=yes" 9324 eval "ac_cv_lib_$ac_lib_var=yes"
9319 else 9325 else
9320 echo "configure: failed program was:" >&5 9326 echo "configure: failed program was:" >&5
9321 cat conftest.$ac_ext >&5 9327 cat conftest.$ac_ext >&5
9330 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 9336 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
9331 else 9337 else
9332 echo "$ac_t""no" 1>&6 9338 echo "$ac_t""no" 1>&6
9333 9339
9334 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 9340 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
9335 echo "configure:9336: checking for inflate in -lgz" >&5 9341 echo "configure:9342: checking for inflate in -lgz" >&5
9336 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 9342 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
9337 9343
9338 xe_check_libs=" -lgz " 9344 xe_check_libs=" -lgz "
9339 cat > conftest.$ac_ext <<EOF 9345 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure" 9346 #line 9347 "configure"
9341 #include "confdefs.h" 9347 #include "confdefs.h"
9342 /* Override any gcc2 internal prototype to avoid an error. */ 9348 /* Override any gcc2 internal prototype to avoid an error. */
9343 /* We use char because int might match the return type of a gcc2 9349 /* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */ 9350 builtin and then its argument prototype would still apply. */
9345 char inflate(); 9351 char inflate();
9346 9352
9347 int main() { 9353 int main() {
9348 inflate() 9354 inflate()
9349 ; return 0; } 9355 ; return 0; }
9350 EOF 9356 EOF
9351 if { (eval echo configure:9352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9352 rm -rf conftest* 9358 rm -rf conftest*
9353 eval "ac_cv_lib_$ac_lib_var=yes" 9359 eval "ac_cv_lib_$ac_lib_var=yes"
9354 else 9360 else
9355 echo "configure: failed program was:" >&5 9361 echo "configure: failed program was:" >&5
9356 cat conftest.$ac_ext >&5 9362 cat conftest.$ac_ext >&5
9376 9382
9377 fi 9383 fi
9378 9384
9379 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 9385 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
9380 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 9386 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9381 echo "configure:9382: checking for jpeglib.h" >&5 9387 echo "configure:9388: checking for jpeglib.h" >&5
9382 9388
9383 cat > conftest.$ac_ext <<EOF 9389 cat > conftest.$ac_ext <<EOF
9384 #line 9385 "configure" 9390 #line 9391 "configure"
9385 #include "confdefs.h" 9391 #include "confdefs.h"
9386 #include <jpeglib.h> 9392 #include <jpeglib.h>
9387 EOF 9393 EOF
9388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9389 { (eval echo configure:9390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9395 { (eval echo configure:9396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9391 if test -z "$ac_err"; then 9397 if test -z "$ac_err"; then
9392 rm -rf conftest* 9398 rm -rf conftest*
9393 eval "ac_cv_header_$ac_safe=yes" 9399 eval "ac_cv_header_$ac_safe=yes"
9394 else 9400 else
9407 with_jpeg=no 9413 with_jpeg=no
9408 fi 9414 fi
9409 } 9415 }
9410 test -z "$with_jpeg" && { 9416 test -z "$with_jpeg" && {
9411 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 9417 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
9412 echo "configure:9413: checking for jpeg_destroy_decompress in -ljpeg" >&5 9418 echo "configure:9419: checking for jpeg_destroy_decompress in -ljpeg" >&5
9413 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 9419 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
9414 9420
9415 xe_check_libs=" -ljpeg " 9421 xe_check_libs=" -ljpeg "
9416 cat > conftest.$ac_ext <<EOF 9422 cat > conftest.$ac_ext <<EOF
9417 #line 9418 "configure" 9423 #line 9424 "configure"
9418 #include "confdefs.h" 9424 #include "confdefs.h"
9419 /* Override any gcc2 internal prototype to avoid an error. */ 9425 /* Override any gcc2 internal prototype to avoid an error. */
9420 /* We use char because int might match the return type of a gcc2 9426 /* We use char because int might match the return type of a gcc2
9421 builtin and then its argument prototype would still apply. */ 9427 builtin and then its argument prototype would still apply. */
9422 char jpeg_destroy_decompress(); 9428 char jpeg_destroy_decompress();
9423 9429
9424 int main() { 9430 int main() {
9425 jpeg_destroy_decompress() 9431 jpeg_destroy_decompress()
9426 ; return 0; } 9432 ; return 0; }
9427 EOF 9433 EOF
9428 if { (eval echo configure:9429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9429 rm -rf conftest* 9435 rm -rf conftest*
9430 eval "ac_cv_lib_$ac_lib_var=yes" 9436 eval "ac_cv_lib_$ac_lib_var=yes"
9431 else 9437 else
9432 echo "configure: failed program was:" >&5 9438 echo "configure: failed program was:" >&5
9433 cat conftest.$ac_ext >&5 9439 cat conftest.$ac_ext >&5
9459 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 9465 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
9460 fi 9466 fi
9461 9467
9462 png_problem="" 9468 png_problem=""
9463 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 9469 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
9464 echo "configure:9465: checking for pow" >&5 9470 echo "configure:9471: checking for pow" >&5
9465 9471
9466 cat > conftest.$ac_ext <<EOF 9472 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure" 9473 #line 9474 "configure"
9468 #include "confdefs.h" 9474 #include "confdefs.h"
9469 /* System header to define __stub macros and hopefully few prototypes, 9475 /* System header to define __stub macros and hopefully few prototypes,
9470 which can conflict with char pow(); below. */ 9476 which can conflict with char pow(); below. */
9471 #include <assert.h> 9477 #include <assert.h>
9472 /* Override any gcc2 internal prototype to avoid an error. */ 9478 /* Override any gcc2 internal prototype to avoid an error. */
9485 pow(); 9491 pow();
9486 #endif 9492 #endif
9487 9493
9488 ; return 0; } 9494 ; return 0; }
9489 EOF 9495 EOF
9490 if { (eval echo configure:9491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9496 if { (eval echo configure:9497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9491 rm -rf conftest* 9497 rm -rf conftest*
9492 eval "ac_cv_func_pow=yes" 9498 eval "ac_cv_func_pow=yes"
9493 else 9499 else
9494 echo "configure: failed program was:" >&5 9500 echo "configure: failed program was:" >&5
9495 cat conftest.$ac_ext >&5 9501 cat conftest.$ac_ext >&5
9506 with_png=no 9512 with_png=no
9507 fi 9513 fi
9508 } 9514 }
9509 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 9515 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9510 echo $ac_n "checking for png.h""... $ac_c" 1>&6 9516 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9511 echo "configure:9512: checking for png.h" >&5 9517 echo "configure:9518: checking for png.h" >&5
9512 9518
9513 cat > conftest.$ac_ext <<EOF 9519 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure" 9520 #line 9521 "configure"
9515 #include "confdefs.h" 9521 #include "confdefs.h"
9516 #include <png.h> 9522 #include <png.h>
9517 EOF 9523 EOF
9518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9519 { (eval echo configure:9520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9525 { (eval echo configure:9526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9521 if test -z "$ac_err"; then 9527 if test -z "$ac_err"; then
9522 rm -rf conftest* 9528 rm -rf conftest*
9523 eval "ac_cv_header_$ac_safe=yes" 9529 eval "ac_cv_header_$ac_safe=yes"
9524 else 9530 else
9537 with_png=no 9543 with_png=no
9538 fi 9544 fi
9539 } 9545 }
9540 test -z "$with_png" && { 9546 test -z "$with_png" && {
9541 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 9547 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
9542 echo "configure:9543: checking for png_read_image in -lpng" >&5 9548 echo "configure:9549: checking for png_read_image in -lpng" >&5
9543 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 9549 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
9544 9550
9545 xe_check_libs=" -lpng " 9551 xe_check_libs=" -lpng "
9546 cat > conftest.$ac_ext <<EOF 9552 cat > conftest.$ac_ext <<EOF
9547 #line 9548 "configure" 9553 #line 9554 "configure"
9548 #include "confdefs.h" 9554 #include "confdefs.h"
9549 /* Override any gcc2 internal prototype to avoid an error. */ 9555 /* Override any gcc2 internal prototype to avoid an error. */
9550 /* We use char because int might match the return type of a gcc2 9556 /* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */ 9557 builtin and then its argument prototype would still apply. */
9552 char png_read_image(); 9558 char png_read_image();
9553 9559
9554 int main() { 9560 int main() {
9555 png_read_image() 9561 png_read_image()
9556 ; return 0; } 9562 ; return 0; }
9557 EOF 9563 EOF
9558 if { (eval echo configure:9559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9564 if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9559 rm -rf conftest* 9565 rm -rf conftest*
9560 eval "ac_cv_lib_$ac_lib_var=yes" 9566 eval "ac_cv_lib_$ac_lib_var=yes"
9561 else 9567 else
9562 echo "configure: failed program was:" >&5 9568 echo "configure: failed program was:" >&5
9563 cat conftest.$ac_ext >&5 9569 cat conftest.$ac_ext >&5
9576 fi 9582 fi
9577 9583
9578 } 9584 }
9579 if test -z "$with_png"; then 9585 if test -z "$with_png"; then
9580 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 9586 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
9581 echo "configure:9582: checking for workable png version information" >&5 9587 echo "configure:9588: checking for workable png version information" >&5
9582 xe_check_libs="-lpng -lz" 9588 xe_check_libs="-lpng -lz"
9583 cat > conftest.$ac_ext <<EOF 9589 cat > conftest.$ac_ext <<EOF
9584 #line 9585 "configure" 9590 #line 9591 "configure"
9585 #include "confdefs.h" 9591 #include "confdefs.h"
9586 #include <png.h> 9592 #include <png.h>
9587 int main(int c, char **v) { 9593 int main(int c, char **v) {
9588 if (c == 1) return 0; 9594 if (c == 1) return 0;
9589 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 9595 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
9590 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 9596 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
9591 EOF 9597 EOF
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9598 if { (eval echo configure:9599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9593 then 9599 then
9594 ./conftest dummy_arg; png_status=$?; 9600 ./conftest dummy_arg; png_status=$?;
9595 if test "$png_status" = "0"; then 9601 if test "$png_status" = "0"; then
9596 with_png=yes; 9602 with_png=yes;
9597 else 9603 else
9630 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 9636 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
9631 fi 9637 fi
9632 9638
9633 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 9639 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9634 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 9640 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9635 echo "configure:9636: checking for tiffio.h" >&5 9641 echo "configure:9642: checking for tiffio.h" >&5
9636 9642
9637 cat > conftest.$ac_ext <<EOF 9643 cat > conftest.$ac_ext <<EOF
9638 #line 9639 "configure" 9644 #line 9645 "configure"
9639 #include "confdefs.h" 9645 #include "confdefs.h"
9640 #include <tiffio.h> 9646 #include <tiffio.h>
9641 EOF 9647 EOF
9642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9643 { (eval echo configure:9644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9649 { (eval echo configure:9650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9645 if test -z "$ac_err"; then 9651 if test -z "$ac_err"; then
9646 rm -rf conftest* 9652 rm -rf conftest*
9647 eval "ac_cv_header_$ac_safe=yes" 9653 eval "ac_cv_header_$ac_safe=yes"
9648 else 9654 else
9661 with_tiff=no 9667 with_tiff=no
9662 fi 9668 fi
9663 } 9669 }
9664 test -z "$with_tiff" && { 9670 test -z "$with_tiff" && {
9665 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 9671 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
9666 echo "configure:9667: checking for TIFFClientOpen in -ltiff" >&5 9672 echo "configure:9673: checking for TIFFClientOpen in -ltiff" >&5
9667 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 9673 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
9668 9674
9669 xe_check_libs=" -ltiff " 9675 xe_check_libs=" -ltiff "
9670 cat > conftest.$ac_ext <<EOF 9676 cat > conftest.$ac_ext <<EOF
9671 #line 9672 "configure" 9677 #line 9678 "configure"
9672 #include "confdefs.h" 9678 #include "confdefs.h"
9673 /* Override any gcc2 internal prototype to avoid an error. */ 9679 /* Override any gcc2 internal prototype to avoid an error. */
9674 /* We use char because int might match the return type of a gcc2 9680 /* We use char because int might match the return type of a gcc2
9675 builtin and then its argument prototype would still apply. */ 9681 builtin and then its argument prototype would still apply. */
9676 char TIFFClientOpen(); 9682 char TIFFClientOpen();
9677 9683
9678 int main() { 9684 int main() {
9679 TIFFClientOpen() 9685 TIFFClientOpen()
9680 ; return 0; } 9686 ; return 0; }
9681 EOF 9687 EOF
9682 if { (eval echo configure:9683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9683 rm -rf conftest* 9689 rm -rf conftest*
9684 eval "ac_cv_lib_$ac_lib_var=yes" 9690 eval "ac_cv_lib_$ac_lib_var=yes"
9685 else 9691 else
9686 echo "configure: failed program was:" >&5 9692 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5 9693 cat conftest.$ac_ext >&5
9716 9722
9717 9723
9718 if test "$with_gtk" = "yes"; then 9724 if test "$with_gtk" = "yes"; then
9719 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9725 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9720 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9726 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9721 echo "configure:9722: checking for compface.h" >&5 9727 echo "configure:9728: checking for compface.h" >&5
9722 9728
9723 cat > conftest.$ac_ext <<EOF 9729 cat > conftest.$ac_ext <<EOF
9724 #line 9725 "configure" 9730 #line 9731 "configure"
9725 #include "confdefs.h" 9731 #include "confdefs.h"
9726 #include <compface.h> 9732 #include <compface.h>
9727 EOF 9733 EOF
9728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9729 { (eval echo configure:9730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9735 { (eval echo configure:9736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9731 if test -z "$ac_err"; then 9737 if test -z "$ac_err"; then
9732 rm -rf conftest* 9738 rm -rf conftest*
9733 eval "ac_cv_header_$ac_safe=yes" 9739 eval "ac_cv_header_$ac_safe=yes"
9734 else 9740 else
9747 with_xface=no 9753 with_xface=no
9748 fi 9754 fi
9749 } 9755 }
9750 test -z "$with_xface" && { 9756 test -z "$with_xface" && {
9751 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9757 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9752 echo "configure:9753: checking for UnGenFace in -lcompface" >&5 9758 echo "configure:9759: checking for UnGenFace in -lcompface" >&5
9753 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9759 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9754 9760
9755 xe_check_libs=" -lcompface " 9761 xe_check_libs=" -lcompface "
9756 cat > conftest.$ac_ext <<EOF 9762 cat > conftest.$ac_ext <<EOF
9757 #line 9758 "configure" 9763 #line 9764 "configure"
9758 #include "confdefs.h" 9764 #include "confdefs.h"
9759 /* Override any gcc2 internal prototype to avoid an error. */ 9765 /* Override any gcc2 internal prototype to avoid an error. */
9760 /* We use char because int might match the return type of a gcc2 9766 /* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */ 9767 builtin and then its argument prototype would still apply. */
9762 char UnGenFace(); 9768 char UnGenFace();
9763 9769
9764 int main() { 9770 int main() {
9765 UnGenFace() 9771 UnGenFace()
9766 ; return 0; } 9772 ; return 0; }
9767 EOF 9773 EOF
9768 if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9774 if { (eval echo configure:9775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9769 rm -rf conftest* 9775 rm -rf conftest*
9770 eval "ac_cv_lib_$ac_lib_var=yes" 9776 eval "ac_cv_lib_$ac_lib_var=yes"
9771 else 9777 else
9772 echo "configure: failed program was:" >&5 9778 echo "configure: failed program was:" >&5
9773 cat conftest.$ac_ext >&5 9779 cat conftest.$ac_ext >&5
9802 9808
9803 9809
9804 9810
9805 if test "$with_x11" = "yes"; then 9811 if test "$with_x11" = "yes"; then
9806 echo "checking for X11 graphics libraries" 1>&6 9812 echo "checking for X11 graphics libraries" 1>&6
9807 echo "configure:9808: checking for X11 graphics libraries" >&5 9813 echo "configure:9814: checking for X11 graphics libraries" >&5
9808 fi 9814 fi
9809 9815
9810 case "$with_widgets" in 9816 case "$with_widgets" in
9811 "yes" | "athena") detect_athena=yes ;; 9817 "yes" | "athena") detect_athena=yes ;;
9812 *) detect_athena=no ;; 9818 *) detect_athena=no ;;
9813 esac 9819 esac
9814 9820
9815 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 9821 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
9816 echo "checking for the Athena widgets" 1>&6 9822 echo "checking for the Athena widgets" 1>&6
9817 echo "configure:9818: checking for the Athena widgets" >&5 9823 echo "configure:9824: checking for the Athena widgets" >&5
9818 9824
9819 case "$with_athena" in 9825 case "$with_athena" in
9820 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 9826 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
9821 "3d") athena_variant=Xaw3d athena_3d=yes ;; 9827 "3d") athena_variant=Xaw3d athena_3d=yes ;;
9822 "next") athena_variant=neXtaw athena_3d=yes ;; 9828 "next") athena_variant=neXtaw athena_3d=yes ;;
9826 esac 9832 esac
9827 9833
9828 if test "$athena_3d" = "no"; then 9834 if test "$athena_3d" = "no"; then
9829 9835
9830 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 9836 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
9831 echo "configure:9832: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 9837 echo "configure:9838: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
9832 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 9838 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
9833 9839
9834 xe_check_libs=" -l$athena_variant " 9840 xe_check_libs=" -l$athena_variant "
9835 cat > conftest.$ac_ext <<EOF 9841 cat > conftest.$ac_ext <<EOF
9836 #line 9837 "configure" 9842 #line 9843 "configure"
9837 #include "confdefs.h" 9843 #include "confdefs.h"
9838 /* Override any gcc2 internal prototype to avoid an error. */ 9844 /* Override any gcc2 internal prototype to avoid an error. */
9839 /* We use char because int might match the return type of a gcc2 9845 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */ 9846 builtin and then its argument prototype would still apply. */
9841 char XawScrollbarSetThumb(); 9847 char XawScrollbarSetThumb();
9842 9848
9843 int main() { 9849 int main() {
9844 XawScrollbarSetThumb() 9850 XawScrollbarSetThumb()
9845 ; return 0; } 9851 ; return 0; }
9846 EOF 9852 EOF
9847 if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 rm -rf conftest* 9854 rm -rf conftest*
9849 eval "ac_cv_lib_$ac_lib_var=yes" 9855 eval "ac_cv_lib_$ac_lib_var=yes"
9850 else 9856 else
9851 echo "configure: failed program was:" >&5 9857 echo "configure: failed program was:" >&5
9852 cat conftest.$ac_ext >&5 9858 cat conftest.$ac_ext >&5
9858 9864
9859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 9865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9860 echo "$ac_t""yes" 1>&6 9866 echo "$ac_t""yes" 1>&6
9861 9867
9862 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 9868 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
9863 echo "configure:9864: checking for threeDClassRec in -l$athena_variant" >&5 9869 echo "configure:9870: checking for threeDClassRec in -l$athena_variant" >&5
9864 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 9870 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9865 9871
9866 xe_check_libs=" -l$athena_variant " 9872 xe_check_libs=" -l$athena_variant "
9867 cat > conftest.$ac_ext <<EOF 9873 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure" 9874 #line 9875 "configure"
9869 #include "confdefs.h" 9875 #include "confdefs.h"
9870 /* Override any gcc2 internal prototype to avoid an error. */ 9876 /* Override any gcc2 internal prototype to avoid an error. */
9871 /* We use char because int might match the return type of a gcc2 9877 /* We use char because int might match the return type of a gcc2
9872 builtin and then its argument prototype would still apply. */ 9878 builtin and then its argument prototype would still apply. */
9873 char threeDClassRec(); 9879 char threeDClassRec();
9874 9880
9875 int main() { 9881 int main() {
9876 threeDClassRec() 9882 threeDClassRec()
9877 ; return 0; } 9883 ; return 0; }
9878 EOF 9884 EOF
9879 if { (eval echo configure:9880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9880 rm -rf conftest* 9886 rm -rf conftest*
9881 eval "ac_cv_lib_$ac_lib_var=yes" 9887 eval "ac_cv_lib_$ac_lib_var=yes"
9882 else 9888 else
9883 echo "configure: failed program was:" >&5 9889 echo "configure: failed program was:" >&5
9884 cat conftest.$ac_ext >&5 9890 cat conftest.$ac_ext >&5
9905 9911
9906 9912
9907 else 9913 else
9908 9914
9909 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 9915 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
9910 echo "configure:9911: checking for threeDClassRec in -l$athena_variant" >&5 9916 echo "configure:9917: checking for threeDClassRec in -l$athena_variant" >&5
9911 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 9917 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
9912 9918
9913 xe_check_libs=" -l$athena_variant " 9919 xe_check_libs=" -l$athena_variant "
9914 cat > conftest.$ac_ext <<EOF 9920 cat > conftest.$ac_ext <<EOF
9915 #line 9916 "configure" 9921 #line 9922 "configure"
9916 #include "confdefs.h" 9922 #include "confdefs.h"
9917 /* Override any gcc2 internal prototype to avoid an error. */ 9923 /* Override any gcc2 internal prototype to avoid an error. */
9918 /* We use char because int might match the return type of a gcc2 9924 /* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */ 9925 builtin and then its argument prototype would still apply. */
9920 char threeDClassRec(); 9926 char threeDClassRec();
9921 9927
9922 int main() { 9928 int main() {
9923 threeDClassRec() 9929 threeDClassRec()
9924 ; return 0; } 9930 ; return 0; }
9925 EOF 9931 EOF
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9927 rm -rf conftest* 9933 rm -rf conftest*
9928 eval "ac_cv_lib_$ac_lib_var=yes" 9934 eval "ac_cv_lib_$ac_lib_var=yes"
9929 else 9935 else
9930 echo "configure: failed program was:" >&5 9936 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5 9937 cat conftest.$ac_ext >&5
9939 echo "$ac_t""yes" 1>&6 9945 echo "$ac_t""yes" 1>&6
9940 athena_lib=$athena_variant 9946 athena_lib=$athena_variant
9941 else 9947 else
9942 echo "$ac_t""no" 1>&6 9948 echo "$ac_t""no" 1>&6
9943 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 9949 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
9944 echo "configure:9945: checking for threeDClassRec in -lXaw" >&5 9950 echo "configure:9951: checking for threeDClassRec in -lXaw" >&5
9945 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 9951 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
9946 9952
9947 xe_check_libs=" -lXaw " 9953 xe_check_libs=" -lXaw "
9948 cat > conftest.$ac_ext <<EOF 9954 cat > conftest.$ac_ext <<EOF
9949 #line 9950 "configure" 9955 #line 9956 "configure"
9950 #include "confdefs.h" 9956 #include "confdefs.h"
9951 /* Override any gcc2 internal prototype to avoid an error. */ 9957 /* Override any gcc2 internal prototype to avoid an error. */
9952 /* We use char because int might match the return type of a gcc2 9958 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */ 9959 builtin and then its argument prototype would still apply. */
9954 char threeDClassRec(); 9960 char threeDClassRec();
9955 9961
9956 int main() { 9962 int main() {
9957 threeDClassRec() 9963 threeDClassRec()
9958 ; return 0; } 9964 ; return 0; }
9959 EOF 9965 EOF
9960 if { (eval echo configure:9961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9966 if { (eval echo configure:9967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9961 rm -rf conftest* 9967 rm -rf conftest*
9962 eval "ac_cv_lib_$ac_lib_var=yes" 9968 eval "ac_cv_lib_$ac_lib_var=yes"
9963 else 9969 else
9964 echo "configure: failed program was:" >&5 9970 echo "configure: failed program was:" >&5
9965 cat conftest.$ac_ext >&5 9971 cat conftest.$ac_ext >&5
9986 fi 9992 fi
9987 9993
9988 if test "$athena_3d" = "no"; then 9994 if test "$athena_3d" = "no"; then
9989 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9995 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9990 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9996 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9991 echo "configure:9992: checking for X11/Xaw/ThreeD.h" >&5 9997 echo "configure:9998: checking for X11/Xaw/ThreeD.h" >&5
9992 9998
9993 cat > conftest.$ac_ext <<EOF 9999 cat > conftest.$ac_ext <<EOF
9994 #line 9995 "configure" 10000 #line 10001 "configure"
9995 #include "confdefs.h" 10001 #include "confdefs.h"
9996 #include <X11/Xaw/ThreeD.h> 10002 #include <X11/Xaw/ThreeD.h>
9997 EOF 10003 EOF
9998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10004 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; } 10005 { (eval echo configure:10006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10001 if test -z "$ac_err"; then 10007 if test -z "$ac_err"; then
10002 rm -rf conftest* 10008 rm -rf conftest*
10003 eval "ac_cv_header_$ac_safe=yes" 10009 eval "ac_cv_header_$ac_safe=yes"
10004 else 10010 else
10014 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 10020 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
10015 else 10021 else
10016 echo "$ac_t""no" 1>&6 10022 echo "$ac_t""no" 1>&6
10017 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 10023 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
10018 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 10024 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
10019 echo "configure:10020: checking for X11/Xaw/XawInit.h" >&5 10025 echo "configure:10026: checking for X11/Xaw/XawInit.h" >&5
10020 10026
10021 cat > conftest.$ac_ext <<EOF 10027 cat > conftest.$ac_ext <<EOF
10022 #line 10023 "configure" 10028 #line 10029 "configure"
10023 #include "confdefs.h" 10029 #include "confdefs.h"
10024 #include <X11/Xaw/XawInit.h> 10030 #include <X11/Xaw/XawInit.h>
10025 EOF 10031 EOF
10026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10027 { (eval echo configure:10028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10033 { (eval echo configure:10034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10029 if test -z "$ac_err"; then 10035 if test -z "$ac_err"; then
10030 rm -rf conftest* 10036 rm -rf conftest*
10031 eval "ac_cv_header_$ac_safe=yes" 10037 eval "ac_cv_header_$ac_safe=yes"
10032 else 10038 else
10048 fi 10054 fi
10049 10055
10050 else 10056 else
10051 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10057 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
10052 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 10058 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
10053 echo "configure:10054: checking for X11/$athena_variant/XawInit.h" >&5 10059 echo "configure:10060: checking for X11/$athena_variant/XawInit.h" >&5
10054 10060
10055 cat > conftest.$ac_ext <<EOF 10061 cat > conftest.$ac_ext <<EOF
10056 #line 10057 "configure" 10062 #line 10063 "configure"
10057 #include "confdefs.h" 10063 #include "confdefs.h"
10058 #include <X11/$athena_variant/XawInit.h> 10064 #include <X11/$athena_variant/XawInit.h>
10059 EOF 10065 EOF
10060 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10061 { (eval echo configure:10062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10067 { (eval echo configure:10068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10062 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10063 if test -z "$ac_err"; then 10069 if test -z "$ac_err"; then
10064 rm -rf conftest* 10070 rm -rf conftest*
10065 eval "ac_cv_header_$ac_safe=yes" 10071 eval "ac_cv_header_$ac_safe=yes"
10066 else 10072 else
10073 rm -f conftest* 10079 rm -f conftest*
10074 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10075 echo "$ac_t""yes" 1>&6 10081 echo "$ac_t""yes" 1>&6
10076 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10082 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10077 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 10083 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
10078 echo "configure:10079: checking for X11/$athena_variant/ThreeD.h" >&5 10084 echo "configure:10085: checking for X11/$athena_variant/ThreeD.h" >&5
10079 10085
10080 cat > conftest.$ac_ext <<EOF 10086 cat > conftest.$ac_ext <<EOF
10081 #line 10082 "configure" 10087 #line 10088 "configure"
10082 #include "confdefs.h" 10088 #include "confdefs.h"
10083 #include <X11/$athena_variant/ThreeD.h> 10089 #include <X11/$athena_variant/ThreeD.h>
10084 EOF 10090 EOF
10085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10086 { (eval echo configure:10087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10092 { (eval echo configure:10093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10088 if test -z "$ac_err"; then 10094 if test -z "$ac_err"; then
10089 rm -rf conftest* 10095 rm -rf conftest*
10090 eval "ac_cv_header_$ac_safe=yes" 10096 eval "ac_cv_header_$ac_safe=yes"
10091 else 10097 else
10109 10115
10110 10116
10111 if test -z "$athena_h_path"; then 10117 if test -z "$athena_h_path"; then
10112 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10118 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
10113 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 10119 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
10114 echo "configure:10115: checking for $athena_variant/XawInit.h" >&5 10120 echo "configure:10121: checking for $athena_variant/XawInit.h" >&5
10115 10121
10116 cat > conftest.$ac_ext <<EOF 10122 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure" 10123 #line 10124 "configure"
10118 #include "confdefs.h" 10124 #include "confdefs.h"
10119 #include <$athena_variant/XawInit.h> 10125 #include <$athena_variant/XawInit.h>
10120 EOF 10126 EOF
10121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10127 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; } 10128 { (eval echo configure:10129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10124 if test -z "$ac_err"; then 10130 if test -z "$ac_err"; then
10125 rm -rf conftest* 10131 rm -rf conftest*
10126 eval "ac_cv_header_$ac_safe=yes" 10132 eval "ac_cv_header_$ac_safe=yes"
10127 else 10133 else
10134 rm -f conftest* 10140 rm -f conftest*
10135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10136 echo "$ac_t""yes" 1>&6 10142 echo "$ac_t""yes" 1>&6
10137 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10143 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10138 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 10144 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
10139 echo "configure:10140: checking for $athena_variant/ThreeD.h" >&5 10145 echo "configure:10146: checking for $athena_variant/ThreeD.h" >&5
10140 10146
10141 cat > conftest.$ac_ext <<EOF 10147 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure" 10148 #line 10149 "configure"
10143 #include "confdefs.h" 10149 #include "confdefs.h"
10144 #include <$athena_variant/ThreeD.h> 10150 #include <$athena_variant/ThreeD.h>
10145 EOF 10151 EOF
10146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10152 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; } 10153 { (eval echo configure:10154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10149 if test -z "$ac_err"; then 10155 if test -z "$ac_err"; then
10150 rm -rf conftest* 10156 rm -rf conftest*
10151 eval "ac_cv_header_$ac_safe=yes" 10157 eval "ac_cv_header_$ac_safe=yes"
10152 else 10158 else
10171 fi 10177 fi
10172 10178
10173 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10179 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10174 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10180 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10175 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 10181 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
10176 echo "configure:10177: checking for X11/Xaw3d/XawInit.h" >&5 10182 echo "configure:10183: checking for X11/Xaw3d/XawInit.h" >&5
10177 10183
10178 cat > conftest.$ac_ext <<EOF 10184 cat > conftest.$ac_ext <<EOF
10179 #line 10180 "configure" 10185 #line 10186 "configure"
10180 #include "confdefs.h" 10186 #include "confdefs.h"
10181 #include <X11/Xaw3d/XawInit.h> 10187 #include <X11/Xaw3d/XawInit.h>
10182 EOF 10188 EOF
10183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10184 { (eval echo configure:10185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10190 { (eval echo configure:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10186 if test -z "$ac_err"; then 10192 if test -z "$ac_err"; then
10187 rm -rf conftest* 10193 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=yes" 10194 eval "ac_cv_header_$ac_safe=yes"
10189 else 10195 else
10196 rm -f conftest* 10202 rm -f conftest*
10197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6 10204 echo "$ac_t""yes" 1>&6
10199 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10205 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10200 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 10206 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
10201 echo "configure:10202: checking for X11/Xaw3d/ThreeD.h" >&5 10207 echo "configure:10208: checking for X11/Xaw3d/ThreeD.h" >&5
10202 10208
10203 cat > conftest.$ac_ext <<EOF 10209 cat > conftest.$ac_ext <<EOF
10204 #line 10205 "configure" 10210 #line 10211 "configure"
10205 #include "confdefs.h" 10211 #include "confdefs.h"
10206 #include <X11/Xaw3d/ThreeD.h> 10212 #include <X11/Xaw3d/ThreeD.h>
10207 EOF 10213 EOF
10208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10209 { (eval echo configure:10210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10215 { (eval echo configure:10216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10211 if test -z "$ac_err"; then 10217 if test -z "$ac_err"; then
10212 rm -rf conftest* 10218 rm -rf conftest*
10213 eval "ac_cv_header_$ac_safe=yes" 10219 eval "ac_cv_header_$ac_safe=yes"
10214 else 10220 else
10236 fi 10242 fi
10237 10243
10238 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10244 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10239 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10245 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10240 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 10246 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
10241 echo "configure:10242: checking for Xaw3d/XawInit.h" >&5 10247 echo "configure:10248: checking for Xaw3d/XawInit.h" >&5
10242 10248
10243 cat > conftest.$ac_ext <<EOF 10249 cat > conftest.$ac_ext <<EOF
10244 #line 10245 "configure" 10250 #line 10251 "configure"
10245 #include "confdefs.h" 10251 #include "confdefs.h"
10246 #include <Xaw3d/XawInit.h> 10252 #include <Xaw3d/XawInit.h>
10247 EOF 10253 EOF
10248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10249 { (eval echo configure:10250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10255 { (eval echo configure:10256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10251 if test -z "$ac_err"; then 10257 if test -z "$ac_err"; then
10252 rm -rf conftest* 10258 rm -rf conftest*
10253 eval "ac_cv_header_$ac_safe=yes" 10259 eval "ac_cv_header_$ac_safe=yes"
10254 else 10260 else
10261 rm -f conftest* 10267 rm -f conftest*
10262 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10263 echo "$ac_t""yes" 1>&6 10269 echo "$ac_t""yes" 1>&6
10264 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10270 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10265 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 10271 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
10266 echo "configure:10267: checking for Xaw3d/ThreeD.h" >&5 10272 echo "configure:10273: checking for Xaw3d/ThreeD.h" >&5
10267 10273
10268 cat > conftest.$ac_ext <<EOF 10274 cat > conftest.$ac_ext <<EOF
10269 #line 10270 "configure" 10275 #line 10276 "configure"
10270 #include "confdefs.h" 10276 #include "confdefs.h"
10271 #include <Xaw3d/ThreeD.h> 10277 #include <Xaw3d/ThreeD.h>
10272 EOF 10278 EOF
10273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10274 { (eval echo configure:10275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10280 { (eval echo configure:10281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10276 if test -z "$ac_err"; then 10282 if test -z "$ac_err"; then
10277 rm -rf conftest* 10283 rm -rf conftest*
10278 eval "ac_cv_header_$ac_safe=yes" 10284 eval "ac_cv_header_$ac_safe=yes"
10279 else 10285 else
10301 fi 10307 fi
10302 10308
10303 if test -z "$athena_h_path"; then 10309 if test -z "$athena_h_path"; then
10304 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10310 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
10305 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10311 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
10306 echo "configure:10307: checking for X11/Xaw/ThreeD.h" >&5 10312 echo "configure:10313: checking for X11/Xaw/ThreeD.h" >&5
10307 10313
10308 cat > conftest.$ac_ext <<EOF 10314 cat > conftest.$ac_ext <<EOF
10309 #line 10310 "configure" 10315 #line 10316 "configure"
10310 #include "confdefs.h" 10316 #include "confdefs.h"
10311 #include <X11/Xaw/ThreeD.h> 10317 #include <X11/Xaw/ThreeD.h>
10312 EOF 10318 EOF
10313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10314 { (eval echo configure:10315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10320 { (eval echo configure:10321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10316 if test -z "$ac_err"; then 10322 if test -z "$ac_err"; then
10317 rm -rf conftest* 10323 rm -rf conftest*
10318 eval "ac_cv_header_$ac_safe=yes" 10324 eval "ac_cv_header_$ac_safe=yes"
10319 else 10325 else
10348 have_xaw=no 10354 have_xaw=no
10349 fi 10355 fi
10350 if test "$with_x11" = "yes"; then 10356 if test "$with_x11" = "yes"; then
10351 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 10357 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
10352 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 10358 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
10353 echo "configure:10354: checking for Xm/Xm.h" >&5 10359 echo "configure:10360: checking for Xm/Xm.h" >&5
10354 10360
10355 cat > conftest.$ac_ext <<EOF 10361 cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure" 10362 #line 10363 "configure"
10357 #include "confdefs.h" 10363 #include "confdefs.h"
10358 #include <Xm/Xm.h> 10364 #include <Xm/Xm.h>
10359 EOF 10365 EOF
10360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10361 { (eval echo configure:10362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10367 { (eval echo configure:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10363 if test -z "$ac_err"; then 10369 if test -z "$ac_err"; then
10364 rm -rf conftest* 10370 rm -rf conftest*
10365 eval "ac_cv_header_$ac_safe=yes" 10371 eval "ac_cv_header_$ac_safe=yes"
10366 else 10372 else
10373 rm -f conftest* 10379 rm -f conftest*
10374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10375 echo "$ac_t""yes" 1>&6 10381 echo "$ac_t""yes" 1>&6
10376 10382
10377 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 10383 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
10378 echo "configure:10379: checking for XmStringFree in -lXm" >&5 10384 echo "configure:10385: checking for XmStringFree in -lXm" >&5
10379 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 10385 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
10380 10386
10381 xe_check_libs=" -lXm " 10387 xe_check_libs=" -lXm "
10382 cat > conftest.$ac_ext <<EOF 10388 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure" 10389 #line 10390 "configure"
10384 #include "confdefs.h" 10390 #include "confdefs.h"
10385 /* Override any gcc2 internal prototype to avoid an error. */ 10391 /* Override any gcc2 internal prototype to avoid an error. */
10386 /* We use char because int might match the return type of a gcc2 10392 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */ 10393 builtin and then its argument prototype would still apply. */
10388 char XmStringFree(); 10394 char XmStringFree();
10389 10395
10390 int main() { 10396 int main() {
10391 XmStringFree() 10397 XmStringFree()
10392 ; return 0; } 10398 ; return 0; }
10393 EOF 10399 EOF
10394 if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10400 if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10395 rm -rf conftest* 10401 rm -rf conftest*
10396 eval "ac_cv_lib_$ac_lib_var=yes" 10402 eval "ac_cv_lib_$ac_lib_var=yes"
10397 else 10403 else
10398 echo "configure: failed program was:" >&5 10404 echo "configure: failed program was:" >&5
10399 cat conftest.$ac_ext >&5 10405 cat conftest.$ac_ext >&5
10418 fi 10424 fi
10419 10425
10420 10426
10421 if test "$have_motif" = "yes"; then 10427 if test "$have_motif" = "yes"; then
10422 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 10428 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
10423 echo "configure:10424: checking for Lesstif" >&5 10429 echo "configure:10430: checking for Lesstif" >&5
10424 cat > conftest.$ac_ext <<EOF 10430 cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure" 10431 #line 10432 "configure"
10426 #include "confdefs.h" 10432 #include "confdefs.h"
10427 #include <Xm/Xm.h> 10433 #include <Xm/Xm.h>
10428 #ifdef LESSTIF_VERSION 10434 #ifdef LESSTIF_VERSION
10429 yes 10435 yes
10430 #endif 10436 #endif
10793 10799
10794 fi 10800 fi
10795 10801
10796 if test "$with_mule" = "yes" ; then 10802 if test "$with_mule" = "yes" ; then
10797 echo "checking for Mule-related features" 1>&6 10803 echo "checking for Mule-related features" 1>&6
10798 echo "configure:10799: checking for Mule-related features" >&5 10804 echo "configure:10805: checking for Mule-related features" >&5
10799 { test "$extra_verbose" = "yes" && cat << \EOF 10805 { test "$extra_verbose" = "yes" && cat << \EOF
10800 Defining MULE 10806 Defining MULE
10801 EOF 10807 EOF
10802 cat >> confdefs.h <<\EOF 10808 cat >> confdefs.h <<\EOF
10803 #define MULE 1 10809 #define MULE 1
10807 10813
10808 for ac_hdr in libintl.h 10814 for ac_hdr in libintl.h
10809 do 10815 do
10810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10812 echo "configure:10813: checking for $ac_hdr" >&5 10818 echo "configure:10819: checking for $ac_hdr" >&5
10813 10819
10814 cat > conftest.$ac_ext <<EOF 10820 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure" 10821 #line 10822 "configure"
10816 #include "confdefs.h" 10822 #include "confdefs.h"
10817 #include <$ac_hdr> 10823 #include <$ac_hdr>
10818 EOF 10824 EOF
10819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10820 { (eval echo configure:10821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10826 { (eval echo configure:10827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10822 if test -z "$ac_err"; then 10828 if test -z "$ac_err"; then
10823 rm -rf conftest* 10829 rm -rf conftest*
10824 eval "ac_cv_header_$ac_safe=yes" 10830 eval "ac_cv_header_$ac_safe=yes"
10825 else 10831 else
10846 fi 10852 fi
10847 done 10853 done
10848 10854
10849 10855
10850 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 10856 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
10851 echo "configure:10852: checking for strerror in -lintl" >&5 10857 echo "configure:10858: checking for strerror in -lintl" >&5
10852 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 10858 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
10853 10859
10854 xe_check_libs=" -lintl " 10860 xe_check_libs=" -lintl "
10855 cat > conftest.$ac_ext <<EOF 10861 cat > conftest.$ac_ext <<EOF
10856 #line 10857 "configure" 10862 #line 10863 "configure"
10857 #include "confdefs.h" 10863 #include "confdefs.h"
10858 /* Override any gcc2 internal prototype to avoid an error. */ 10864 /* Override any gcc2 internal prototype to avoid an error. */
10859 /* We use char because int might match the return type of a gcc2 10865 /* We use char because int might match the return type of a gcc2
10860 builtin and then its argument prototype would still apply. */ 10866 builtin and then its argument prototype would still apply. */
10861 char strerror(); 10867 char strerror();
10862 10868
10863 int main() { 10869 int main() {
10864 strerror() 10870 strerror()
10865 ; return 0; } 10871 ; return 0; }
10866 EOF 10872 EOF
10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10868 rm -rf conftest* 10874 rm -rf conftest*
10869 eval "ac_cv_lib_$ac_lib_var=yes" 10875 eval "ac_cv_lib_$ac_lib_var=yes"
10870 else 10876 else
10871 echo "configure: failed program was:" >&5 10877 echo "configure: failed program was:" >&5
10872 cat conftest.$ac_ext >&5 10878 cat conftest.$ac_ext >&5
10895 fi 10901 fi
10896 10902
10897 10903
10898 10904
10899 echo "checking for Mule input methods" 1>&6 10905 echo "checking for Mule input methods" 1>&6
10900 echo "configure:10901: checking for Mule input methods" >&5 10906 echo "configure:10907: checking for Mule input methods" >&5
10901 case "$with_xim" in "" | "yes" ) 10907 case "$with_xim" in "" | "yes" )
10902 echo "checking for XIM" 1>&6 10908 echo "checking for XIM" 1>&6
10903 echo "configure:10904: checking for XIM" >&5 10909 echo "configure:10910: checking for XIM" >&5
10904 10910
10905 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 10911 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
10906 echo "configure:10907: checking for XOpenIM in -lX11" >&5 10912 echo "configure:10913: checking for XOpenIM in -lX11" >&5
10907 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 10913 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
10908 10914
10909 xe_check_libs=" -lX11 " 10915 xe_check_libs=" -lX11 "
10910 cat > conftest.$ac_ext <<EOF 10916 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure" 10917 #line 10918 "configure"
10912 #include "confdefs.h" 10918 #include "confdefs.h"
10913 /* Override any gcc2 internal prototype to avoid an error. */ 10919 /* Override any gcc2 internal prototype to avoid an error. */
10914 /* We use char because int might match the return type of a gcc2 10920 /* We use char because int might match the return type of a gcc2
10915 builtin and then its argument prototype would still apply. */ 10921 builtin and then its argument prototype would still apply. */
10916 char XOpenIM(); 10922 char XOpenIM();
10917 10923
10918 int main() { 10924 int main() {
10919 XOpenIM() 10925 XOpenIM()
10920 ; return 0; } 10926 ; return 0; }
10921 EOF 10927 EOF
10922 if { (eval echo configure:10923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10928 if { (eval echo configure:10929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10923 rm -rf conftest* 10929 rm -rf conftest*
10924 eval "ac_cv_lib_$ac_lib_var=yes" 10930 eval "ac_cv_lib_$ac_lib_var=yes"
10925 else 10931 else
10926 echo "configure: failed program was:" >&5 10932 echo "configure: failed program was:" >&5
10927 cat conftest.$ac_ext >&5 10933 cat conftest.$ac_ext >&5
10941 10947
10942 10948
10943 if test "$have_motif $have_lesstif" = "yes no"; then 10949 if test "$have_motif $have_lesstif" = "yes no"; then
10944 10950
10945 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 10951 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10946 echo "configure:10947: checking for XmImMbLookupString in -lXm" >&5 10952 echo "configure:10953: checking for XmImMbLookupString in -lXm" >&5
10947 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 10953 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10948 10954
10949 xe_check_libs=" -lXm " 10955 xe_check_libs=" -lXm "
10950 cat > conftest.$ac_ext <<EOF 10956 cat > conftest.$ac_ext <<EOF
10951 #line 10952 "configure" 10957 #line 10958 "configure"
10952 #include "confdefs.h" 10958 #include "confdefs.h"
10953 /* Override any gcc2 internal prototype to avoid an error. */ 10959 /* Override any gcc2 internal prototype to avoid an error. */
10954 /* We use char because int might match the return type of a gcc2 10960 /* We use char because int might match the return type of a gcc2
10955 builtin and then its argument prototype would still apply. */ 10961 builtin and then its argument prototype would still apply. */
10956 char XmImMbLookupString(); 10962 char XmImMbLookupString();
10957 10963
10958 int main() { 10964 int main() {
10959 XmImMbLookupString() 10965 XmImMbLookupString()
10960 ; return 0; } 10966 ; return 0; }
10961 EOF 10967 EOF
10962 if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10968 if { (eval echo configure:10969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10963 rm -rf conftest* 10969 rm -rf conftest*
10964 eval "ac_cv_lib_$ac_lib_var=yes" 10970 eval "ac_cv_lib_$ac_lib_var=yes"
10965 else 10971 else
10966 echo "configure: failed program was:" >&5 10972 echo "configure: failed program was:" >&5
10967 cat conftest.$ac_ext >&5 10973 cat conftest.$ac_ext >&5
11022 fi 11028 fi
11023 fi 11029 fi
11024 11030
11025 if test "$with_xfs" = "yes" ; then 11031 if test "$with_xfs" = "yes" ; then
11026 echo "checking for XFontSet" 1>&6 11032 echo "checking for XFontSet" 1>&6
11027 echo "configure:11028: checking for XFontSet" >&5 11033 echo "configure:11034: checking for XFontSet" >&5
11028 11034
11029 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 11035 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
11030 echo "configure:11031: checking for XmbDrawString in -lX11" >&5 11036 echo "configure:11037: checking for XmbDrawString in -lX11" >&5
11031 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 11037 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
11032 11038
11033 xe_check_libs=" -lX11 " 11039 xe_check_libs=" -lX11 "
11034 cat > conftest.$ac_ext <<EOF 11040 cat > conftest.$ac_ext <<EOF
11035 #line 11036 "configure" 11041 #line 11042 "configure"
11036 #include "confdefs.h" 11042 #include "confdefs.h"
11037 /* Override any gcc2 internal prototype to avoid an error. */ 11043 /* Override any gcc2 internal prototype to avoid an error. */
11038 /* We use char because int might match the return type of a gcc2 11044 /* We use char because int might match the return type of a gcc2
11039 builtin and then its argument prototype would still apply. */ 11045 builtin and then its argument prototype would still apply. */
11040 char XmbDrawString(); 11046 char XmbDrawString();
11041 11047
11042 int main() { 11048 int main() {
11043 XmbDrawString() 11049 XmbDrawString()
11044 ; return 0; } 11050 ; return 0; }
11045 EOF 11051 EOF
11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11052 if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11047 rm -rf conftest* 11053 rm -rf conftest*
11048 eval "ac_cv_lib_$ac_lib_var=yes" 11054 eval "ac_cv_lib_$ac_lib_var=yes"
11049 else 11055 else
11050 echo "configure: failed program was:" >&5 11056 echo "configure: failed program was:" >&5
11051 cat conftest.$ac_ext >&5 11057 cat conftest.$ac_ext >&5
11081 fi 11087 fi
11082 fi 11088 fi
11083 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 11089 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
11084 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 11090 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
11085 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 11091 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
11086 echo "configure:11087: checking for wnn/jllib.h" >&5 11092 echo "configure:11093: checking for wnn/jllib.h" >&5
11087 11093
11088 cat > conftest.$ac_ext <<EOF 11094 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure" 11095 #line 11096 "configure"
11090 #include "confdefs.h" 11096 #include "confdefs.h"
11091 #include <wnn/jllib.h> 11097 #include <wnn/jllib.h>
11092 EOF 11098 EOF
11093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11099 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11094 { (eval echo configure:11095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11100 { (eval echo configure:11101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11101 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11096 if test -z "$ac_err"; then 11102 if test -z "$ac_err"; then
11097 rm -rf conftest* 11103 rm -rf conftest*
11098 eval "ac_cv_header_$ac_safe=yes" 11104 eval "ac_cv_header_$ac_safe=yes"
11099 else 11105 else
11112 with_wnn=no 11118 with_wnn=no
11113 fi 11119 fi
11114 } 11120 }
11115 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 11121 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
11116 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 11122 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
11117 echo "configure:11118: checking for wnn/commonhd.h" >&5 11123 echo "configure:11124: checking for wnn/commonhd.h" >&5
11118 11124
11119 cat > conftest.$ac_ext <<EOF 11125 cat > conftest.$ac_ext <<EOF
11120 #line 11121 "configure" 11126 #line 11127 "configure"
11121 #include "confdefs.h" 11127 #include "confdefs.h"
11122 #include <wnn/commonhd.h> 11128 #include <wnn/commonhd.h>
11123 EOF 11129 EOF
11124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11125 { (eval echo configure:11126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11131 { (eval echo configure:11132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11127 if test -z "$ac_err"; then 11133 if test -z "$ac_err"; then
11128 rm -rf conftest* 11134 rm -rf conftest*
11129 eval "ac_cv_header_$ac_safe=yes" 11135 eval "ac_cv_header_$ac_safe=yes"
11130 else 11136 else
11145 } 11151 }
11146 if test "$with_wnn" != "no"; then 11152 if test "$with_wnn" != "no"; then
11147 for ac_func in crypt 11153 for ac_func in crypt
11148 do 11154 do
11149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11150 echo "configure:11151: checking for $ac_func" >&5 11156 echo "configure:11157: checking for $ac_func" >&5
11151 11157
11152 cat > conftest.$ac_ext <<EOF 11158 cat > conftest.$ac_ext <<EOF
11153 #line 11154 "configure" 11159 #line 11160 "configure"
11154 #include "confdefs.h" 11160 #include "confdefs.h"
11155 /* System header to define __stub macros and hopefully few prototypes, 11161 /* System header to define __stub macros and hopefully few prototypes,
11156 which can conflict with char $ac_func(); below. */ 11162 which can conflict with char $ac_func(); below. */
11157 #include <assert.h> 11163 #include <assert.h>
11158 /* Override any gcc2 internal prototype to avoid an error. */ 11164 /* Override any gcc2 internal prototype to avoid an error. */
11171 $ac_func(); 11177 $ac_func();
11172 #endif 11178 #endif
11173 11179
11174 ; return 0; } 11180 ; return 0; }
11175 EOF 11181 EOF
11176 if { (eval echo configure:11177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11182 if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11177 rm -rf conftest* 11183 rm -rf conftest*
11178 eval "ac_cv_func_$ac_func=yes" 11184 eval "ac_cv_func_$ac_func=yes"
11179 else 11185 else
11180 echo "configure: failed program was:" >&5 11186 echo "configure: failed program was:" >&5
11181 cat conftest.$ac_ext >&5 11187 cat conftest.$ac_ext >&5
11200 fi 11206 fi
11201 done 11207 done
11202 11208
11203 test "$ac_cv_func_crypt" != "yes" && { 11209 test "$ac_cv_func_crypt" != "yes" && {
11204 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 11210 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11205 echo "configure:11206: checking for crypt in -lcrypt" >&5 11211 echo "configure:11212: checking for crypt in -lcrypt" >&5
11206 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 11212 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11207 11213
11208 xe_check_libs=" -lcrypt " 11214 xe_check_libs=" -lcrypt "
11209 cat > conftest.$ac_ext <<EOF 11215 cat > conftest.$ac_ext <<EOF
11210 #line 11211 "configure" 11216 #line 11217 "configure"
11211 #include "confdefs.h" 11217 #include "confdefs.h"
11212 /* Override any gcc2 internal prototype to avoid an error. */ 11218 /* Override any gcc2 internal prototype to avoid an error. */
11213 /* We use char because int might match the return type of a gcc2 11219 /* We use char because int might match the return type of a gcc2
11214 builtin and then its argument prototype would still apply. */ 11220 builtin and then its argument prototype would still apply. */
11215 char crypt(); 11221 char crypt();
11216 11222
11217 int main() { 11223 int main() {
11218 crypt() 11224 crypt()
11219 ; return 0; } 11225 ; return 0; }
11220 EOF 11226 EOF
11221 if { (eval echo configure:11222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11222 rm -rf conftest* 11228 rm -rf conftest*
11223 eval "ac_cv_lib_$ac_lib_var=yes" 11229 eval "ac_cv_lib_$ac_lib_var=yes"
11224 else 11230 else
11225 echo "configure: failed program was:" >&5 11231 echo "configure: failed program was:" >&5
11226 cat conftest.$ac_ext >&5 11232 cat conftest.$ac_ext >&5
11251 } 11257 }
11252 fi 11258 fi
11253 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 11259 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
11254 11260
11255 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 11261 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
11256 echo "configure:11257: checking for jl_dic_list_e in -lwnn" >&5 11262 echo "configure:11263: checking for jl_dic_list_e in -lwnn" >&5
11257 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11263 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11258 11264
11259 xe_check_libs=" -lwnn " 11265 xe_check_libs=" -lwnn "
11260 cat > conftest.$ac_ext <<EOF 11266 cat > conftest.$ac_ext <<EOF
11261 #line 11262 "configure" 11267 #line 11268 "configure"
11262 #include "confdefs.h" 11268 #include "confdefs.h"
11263 /* Override any gcc2 internal prototype to avoid an error. */ 11269 /* Override any gcc2 internal prototype to avoid an error. */
11264 /* We use char because int might match the return type of a gcc2 11270 /* We use char because int might match the return type of a gcc2
11265 builtin and then its argument prototype would still apply. */ 11271 builtin and then its argument prototype would still apply. */
11266 char jl_dic_list_e(); 11272 char jl_dic_list_e();
11267 11273
11268 int main() { 11274 int main() {
11269 jl_dic_list_e() 11275 jl_dic_list_e()
11270 ; return 0; } 11276 ; return 0; }
11271 EOF 11277 EOF
11272 if { (eval echo configure:11273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11273 rm -rf conftest* 11279 rm -rf conftest*
11274 eval "ac_cv_lib_$ac_lib_var=yes" 11280 eval "ac_cv_lib_$ac_lib_var=yes"
11275 else 11281 else
11276 echo "configure: failed program was:" >&5 11282 echo "configure: failed program was:" >&5
11277 cat conftest.$ac_ext >&5 11283 cat conftest.$ac_ext >&5
11285 echo "$ac_t""yes" 1>&6 11291 echo "$ac_t""yes" 1>&6
11286 libwnn=wnn 11292 libwnn=wnn
11287 else 11293 else
11288 echo "$ac_t""no" 1>&6 11294 echo "$ac_t""no" 1>&6
11289 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 11295 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
11290 echo "configure:11291: checking for jl_dic_list_e in -lwnn4" >&5 11296 echo "configure:11297: checking for jl_dic_list_e in -lwnn4" >&5
11291 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11297 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11292 11298
11293 xe_check_libs=" -lwnn4 " 11299 xe_check_libs=" -lwnn4 "
11294 cat > conftest.$ac_ext <<EOF 11300 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure" 11301 #line 11302 "configure"
11296 #include "confdefs.h" 11302 #include "confdefs.h"
11297 /* Override any gcc2 internal prototype to avoid an error. */ 11303 /* Override any gcc2 internal prototype to avoid an error. */
11298 /* We use char because int might match the return type of a gcc2 11304 /* We use char because int might match the return type of a gcc2
11299 builtin and then its argument prototype would still apply. */ 11305 builtin and then its argument prototype would still apply. */
11300 char jl_dic_list_e(); 11306 char jl_dic_list_e();
11301 11307
11302 int main() { 11308 int main() {
11303 jl_dic_list_e() 11309 jl_dic_list_e()
11304 ; return 0; } 11310 ; return 0; }
11305 EOF 11311 EOF
11306 if { (eval echo configure:11307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11312 if { (eval echo configure:11313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11307 rm -rf conftest* 11313 rm -rf conftest*
11308 eval "ac_cv_lib_$ac_lib_var=yes" 11314 eval "ac_cv_lib_$ac_lib_var=yes"
11309 else 11315 else
11310 echo "configure: failed program was:" >&5 11316 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5 11317 cat conftest.$ac_ext >&5
11319 echo "$ac_t""yes" 1>&6 11325 echo "$ac_t""yes" 1>&6
11320 libwnn=wnn4 11326 libwnn=wnn4
11321 else 11327 else
11322 echo "$ac_t""no" 1>&6 11328 echo "$ac_t""no" 1>&6
11323 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 11329 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
11324 echo "configure:11325: checking for jl_dic_list_e in -lwnn6" >&5 11330 echo "configure:11331: checking for jl_dic_list_e in -lwnn6" >&5
11325 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11331 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11326 11332
11327 xe_check_libs=" -lwnn6 " 11333 xe_check_libs=" -lwnn6 "
11328 cat > conftest.$ac_ext <<EOF 11334 cat > conftest.$ac_ext <<EOF
11329 #line 11330 "configure" 11335 #line 11336 "configure"
11330 #include "confdefs.h" 11336 #include "confdefs.h"
11331 /* Override any gcc2 internal prototype to avoid an error. */ 11337 /* Override any gcc2 internal prototype to avoid an error. */
11332 /* We use char because int might match the return type of a gcc2 11338 /* We use char because int might match the return type of a gcc2
11333 builtin and then its argument prototype would still apply. */ 11339 builtin and then its argument prototype would still apply. */
11334 char jl_dic_list_e(); 11340 char jl_dic_list_e();
11335 11341
11336 int main() { 11342 int main() {
11337 jl_dic_list_e() 11343 jl_dic_list_e()
11338 ; return 0; } 11344 ; return 0; }
11339 EOF 11345 EOF
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11346 if { (eval echo configure:11347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11341 rm -rf conftest* 11347 rm -rf conftest*
11342 eval "ac_cv_lib_$ac_lib_var=yes" 11348 eval "ac_cv_lib_$ac_lib_var=yes"
11343 else 11349 else
11344 echo "configure: failed program was:" >&5 11350 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5 11351 cat conftest.$ac_ext >&5
11353 echo "$ac_t""yes" 1>&6 11359 echo "$ac_t""yes" 1>&6
11354 libwnn=wnn6 11360 libwnn=wnn6
11355 else 11361 else
11356 echo "$ac_t""no" 1>&6 11362 echo "$ac_t""no" 1>&6
11357 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 11363 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
11358 echo "configure:11359: checking for dic_list_e in -lwnn6_fromsrc" >&5 11364 echo "configure:11365: checking for dic_list_e in -lwnn6_fromsrc" >&5
11359 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 11365 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
11360 11366
11361 xe_check_libs=" -lwnn6_fromsrc " 11367 xe_check_libs=" -lwnn6_fromsrc "
11362 cat > conftest.$ac_ext <<EOF 11368 cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure" 11369 #line 11370 "configure"
11364 #include "confdefs.h" 11370 #include "confdefs.h"
11365 /* Override any gcc2 internal prototype to avoid an error. */ 11371 /* Override any gcc2 internal prototype to avoid an error. */
11366 /* We use char because int might match the return type of a gcc2 11372 /* We use char because int might match the return type of a gcc2
11367 builtin and then its argument prototype would still apply. */ 11373 builtin and then its argument prototype would still apply. */
11368 char dic_list_e(); 11374 char dic_list_e();
11369 11375
11370 int main() { 11376 int main() {
11371 dic_list_e() 11377 dic_list_e()
11372 ; return 0; } 11378 ; return 0; }
11373 EOF 11379 EOF
11374 if { (eval echo configure:11375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11375 rm -rf conftest* 11381 rm -rf conftest*
11376 eval "ac_cv_lib_$ac_lib_var=yes" 11382 eval "ac_cv_lib_$ac_lib_var=yes"
11377 else 11383 else
11378 echo "configure: failed program was:" >&5 11384 echo "configure: failed program was:" >&5
11379 cat conftest.$ac_ext >&5 11385 cat conftest.$ac_ext >&5
11414 11420
11415 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi 11421 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
11416 if test "$with_wnn6" != "no"; then 11422 if test "$with_wnn6" != "no"; then
11417 11423
11418 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 11424 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
11419 echo "configure:11420: checking for jl_fi_dic_list in -l$libwnn" >&5 11425 echo "configure:11426: checking for jl_fi_dic_list in -l$libwnn" >&5
11420 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 11426 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
11421 11427
11422 xe_check_libs=" -l$libwnn " 11428 xe_check_libs=" -l$libwnn "
11423 cat > conftest.$ac_ext <<EOF 11429 cat > conftest.$ac_ext <<EOF
11424 #line 11425 "configure" 11430 #line 11431 "configure"
11425 #include "confdefs.h" 11431 #include "confdefs.h"
11426 /* Override any gcc2 internal prototype to avoid an error. */ 11432 /* Override any gcc2 internal prototype to avoid an error. */
11427 /* We use char because int might match the return type of a gcc2 11433 /* We use char because int might match the return type of a gcc2
11428 builtin and then its argument prototype would still apply. */ 11434 builtin and then its argument prototype would still apply. */
11429 char jl_fi_dic_list(); 11435 char jl_fi_dic_list();
11430 11436
11431 int main() { 11437 int main() {
11432 jl_fi_dic_list() 11438 jl_fi_dic_list()
11433 ; return 0; } 11439 ; return 0; }
11434 EOF 11440 EOF
11435 if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11441 if { (eval echo configure:11442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11436 rm -rf conftest* 11442 rm -rf conftest*
11437 eval "ac_cv_lib_$ac_lib_var=yes" 11443 eval "ac_cv_lib_$ac_lib_var=yes"
11438 else 11444 else
11439 echo "configure: failed program was:" >&5 11445 echo "configure: failed program was:" >&5
11440 cat conftest.$ac_ext >&5 11446 cat conftest.$ac_ext >&5
11465 11471
11466 canna_includes_found=no 11472 canna_includes_found=no
11467 if test "$with_canna" != "no"; then 11473 if test "$with_canna" != "no"; then
11468 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11474 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11469 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11475 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11470 echo "configure:11471: checking for canna/jrkanji.h" >&5 11476 echo "configure:11477: checking for canna/jrkanji.h" >&5
11471 11477
11472 cat > conftest.$ac_ext <<EOF 11478 cat > conftest.$ac_ext <<EOF
11473 #line 11474 "configure" 11479 #line 11480 "configure"
11474 #include "confdefs.h" 11480 #include "confdefs.h"
11475 #include <canna/jrkanji.h> 11481 #include <canna/jrkanji.h>
11476 EOF 11482 EOF
11477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11478 { (eval echo configure:11479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11484 { (eval echo configure:11485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11480 if test -z "$ac_err"; then 11486 if test -z "$ac_err"; then
11481 rm -rf conftest* 11487 rm -rf conftest*
11482 eval "ac_cv_header_$ac_safe=yes" 11488 eval "ac_cv_header_$ac_safe=yes"
11483 else 11489 else
11500 -d "/usr/local/canna/include"; then 11506 -d "/usr/local/canna/include"; then
11501 save_c_switch_site="$c_switch_site" 11507 save_c_switch_site="$c_switch_site"
11502 c_switch_site="$c_switch_site -I/usr/local/canna/include" 11508 c_switch_site="$c_switch_site -I/usr/local/canna/include"
11503 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11509 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11504 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11510 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11505 echo "configure:11506: checking for canna/jrkanji.h" >&5 11511 echo "configure:11512: checking for canna/jrkanji.h" >&5
11506 11512
11507 cat > conftest.$ac_ext <<EOF 11513 cat > conftest.$ac_ext <<EOF
11508 #line 11509 "configure" 11514 #line 11515 "configure"
11509 #include "confdefs.h" 11515 #include "confdefs.h"
11510 #include <canna/jrkanji.h> 11516 #include <canna/jrkanji.h>
11511 EOF 11517 EOF
11512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11513 { (eval echo configure:11514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11519 { (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11515 if test -z "$ac_err"; then 11521 if test -z "$ac_err"; then
11516 rm -rf conftest* 11522 rm -rf conftest*
11517 eval "ac_cv_header_$ac_safe=yes" 11523 eval "ac_cv_header_$ac_safe=yes"
11518 else 11524 else
11536 fi 11542 fi
11537 fi 11543 fi
11538 11544
11539 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 11545 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
11540 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 11546 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
11541 echo "configure:11542: checking for canna/RK.h" >&5 11547 echo "configure:11548: checking for canna/RK.h" >&5
11542 11548
11543 cat > conftest.$ac_ext <<EOF 11549 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure" 11550 #line 11551 "configure"
11545 #include "confdefs.h" 11551 #include "confdefs.h"
11546 #include <canna/RK.h> 11552 #include <canna/RK.h>
11547 EOF 11553 EOF
11548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11549 { (eval echo configure:11550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11555 { (eval echo configure:11556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11551 if test -z "$ac_err"; then 11557 if test -z "$ac_err"; then
11552 rm -rf conftest* 11558 rm -rf conftest*
11553 eval "ac_cv_header_$ac_safe=yes" 11559 eval "ac_cv_header_$ac_safe=yes"
11554 else 11560 else
11567 with_canna=no 11573 with_canna=no
11568 fi 11574 fi
11569 } 11575 }
11570 test -z "$with_canna" && { 11576 test -z "$with_canna" && {
11571 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 11577 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
11572 echo "configure:11573: checking for RkBgnBun in -lRKC" >&5 11578 echo "configure:11579: checking for RkBgnBun in -lRKC" >&5
11573 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 11579 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
11574 11580
11575 xe_check_libs=" -lRKC " 11581 xe_check_libs=" -lRKC "
11576 cat > conftest.$ac_ext <<EOF 11582 cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure" 11583 #line 11584 "configure"
11578 #include "confdefs.h" 11584 #include "confdefs.h"
11579 /* Override any gcc2 internal prototype to avoid an error. */ 11585 /* Override any gcc2 internal prototype to avoid an error. */
11580 /* We use char because int might match the return type of a gcc2 11586 /* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */ 11587 builtin and then its argument prototype would still apply. */
11582 char RkBgnBun(); 11588 char RkBgnBun();
11583 11589
11584 int main() { 11590 int main() {
11585 RkBgnBun() 11591 RkBgnBun()
11586 ; return 0; } 11592 ; return 0; }
11587 EOF 11593 EOF
11588 if { (eval echo configure:11589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11594 if { (eval echo configure:11595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11589 rm -rf conftest* 11595 rm -rf conftest*
11590 eval "ac_cv_lib_$ac_lib_var=yes" 11596 eval "ac_cv_lib_$ac_lib_var=yes"
11591 else 11597 else
11592 echo "configure: failed program was:" >&5 11598 echo "configure: failed program was:" >&5
11593 cat conftest.$ac_ext >&5 11599 cat conftest.$ac_ext >&5
11606 fi 11612 fi
11607 11613
11608 } 11614 }
11609 test -z "$with_canna" && { 11615 test -z "$with_canna" && {
11610 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 11616 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
11611 echo "configure:11612: checking for jrKanjiControl in -lcanna" >&5 11617 echo "configure:11618: checking for jrKanjiControl in -lcanna" >&5
11612 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 11618 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
11613 11619
11614 xe_check_libs=" -lcanna " 11620 xe_check_libs=" -lcanna "
11615 cat > conftest.$ac_ext <<EOF 11621 cat > conftest.$ac_ext <<EOF
11616 #line 11617 "configure" 11622 #line 11623 "configure"
11617 #include "confdefs.h" 11623 #include "confdefs.h"
11618 /* Override any gcc2 internal prototype to avoid an error. */ 11624 /* Override any gcc2 internal prototype to avoid an error. */
11619 /* We use char because int might match the return type of a gcc2 11625 /* We use char because int might match the return type of a gcc2
11620 builtin and then its argument prototype would still apply. */ 11626 builtin and then its argument prototype would still apply. */
11621 char jrKanjiControl(); 11627 char jrKanjiControl();
11622 11628
11623 int main() { 11629 int main() {
11624 jrKanjiControl() 11630 jrKanjiControl()
11625 ; return 0; } 11631 ; return 0; }
11626 EOF 11632 EOF
11627 if { (eval echo configure:11628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11633 if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11628 rm -rf conftest* 11634 rm -rf conftest*
11629 eval "ac_cv_lib_$ac_lib_var=yes" 11635 eval "ac_cv_lib_$ac_lib_var=yes"
11630 else 11636 else
11631 echo "configure: failed program was:" >&5 11637 echo "configure: failed program was:" >&5
11632 cat conftest.$ac_ext >&5 11638 cat conftest.$ac_ext >&5
11668 11674
11669 if test "$need_motif" = "yes" ; then 11675 if test "$need_motif" = "yes" ; then
11670 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 11676 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
11671 11677
11672 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 11678 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
11673 echo "configure:11674: checking for layout_object_getvalue in -li18n" >&5 11679 echo "configure:11680: checking for layout_object_getvalue in -li18n" >&5
11674 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 11680 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
11675 11681
11676 xe_check_libs=" -li18n " 11682 xe_check_libs=" -li18n "
11677 cat > conftest.$ac_ext <<EOF 11683 cat > conftest.$ac_ext <<EOF
11678 #line 11679 "configure" 11684 #line 11685 "configure"
11679 #include "confdefs.h" 11685 #include "confdefs.h"
11680 /* Override any gcc2 internal prototype to avoid an error. */ 11686 /* Override any gcc2 internal prototype to avoid an error. */
11681 /* We use char because int might match the return type of a gcc2 11687 /* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */ 11688 builtin and then its argument prototype would still apply. */
11683 char layout_object_getvalue(); 11689 char layout_object_getvalue();
11684 11690
11685 int main() { 11691 int main() {
11686 layout_object_getvalue() 11692 layout_object_getvalue()
11687 ; return 0; } 11693 ; return 0; }
11688 EOF 11694 EOF
11689 if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11690 rm -rf conftest* 11696 rm -rf conftest*
11691 eval "ac_cv_lib_$ac_lib_var=yes" 11697 eval "ac_cv_lib_$ac_lib_var=yes"
11692 else 11698 else
11693 echo "configure: failed program was:" >&5 11699 echo "configure: failed program was:" >&5
11694 cat conftest.$ac_ext >&5 11700 cat conftest.$ac_ext >&5
11771 11777
11772 11778
11773 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 11779 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
11774 do 11780 do
11775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11781 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11776 echo "configure:11777: checking for $ac_func" >&5 11782 echo "configure:11783: checking for $ac_func" >&5
11777 11783
11778 cat > conftest.$ac_ext <<EOF 11784 cat > conftest.$ac_ext <<EOF
11779 #line 11780 "configure" 11785 #line 11786 "configure"
11780 #include "confdefs.h" 11786 #include "confdefs.h"
11781 /* System header to define __stub macros and hopefully few prototypes, 11787 /* System header to define __stub macros and hopefully few prototypes,
11782 which can conflict with char $ac_func(); below. */ 11788 which can conflict with char $ac_func(); below. */
11783 #include <assert.h> 11789 #include <assert.h>
11784 /* Override any gcc2 internal prototype to avoid an error. */ 11790 /* Override any gcc2 internal prototype to avoid an error. */
11797 $ac_func(); 11803 $ac_func();
11798 #endif 11804 #endif
11799 11805
11800 ; return 0; } 11806 ; return 0; }
11801 EOF 11807 EOF
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11808 if { (eval echo configure:11809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803 rm -rf conftest* 11809 rm -rf conftest*
11804 eval "ac_cv_func_$ac_func=yes" 11810 eval "ac_cv_func_$ac_func=yes"
11805 else 11811 else
11806 echo "configure: failed program was:" >&5 11812 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5 11813 cat conftest.$ac_ext >&5
11838 11844
11839 11845
11840 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 11846 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
11841 do 11847 do
11842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11848 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11843 echo "configure:11844: checking for $ac_func" >&5 11849 echo "configure:11850: checking for $ac_func" >&5
11844 11850
11845 cat > conftest.$ac_ext <<EOF 11851 cat > conftest.$ac_ext <<EOF
11846 #line 11847 "configure" 11852 #line 11853 "configure"
11847 #include "confdefs.h" 11853 #include "confdefs.h"
11848 /* System header to define __stub macros and hopefully few prototypes, 11854 /* System header to define __stub macros and hopefully few prototypes,
11849 which can conflict with char $ac_func(); below. */ 11855 which can conflict with char $ac_func(); below. */
11850 #include <assert.h> 11856 #include <assert.h>
11851 /* Override any gcc2 internal prototype to avoid an error. */ 11857 /* Override any gcc2 internal prototype to avoid an error. */
11864 $ac_func(); 11870 $ac_func();
11865 #endif 11871 #endif
11866 11872
11867 ; return 0; } 11873 ; return 0; }
11868 EOF 11874 EOF
11869 if { (eval echo configure:11870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11875 if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11870 rm -rf conftest* 11876 rm -rf conftest*
11871 eval "ac_cv_func_$ac_func=yes" 11877 eval "ac_cv_func_$ac_func=yes"
11872 else 11878 else
11873 echo "configure: failed program was:" >&5 11879 echo "configure: failed program was:" >&5
11874 cat conftest.$ac_ext >&5 11880 cat conftest.$ac_ext >&5
11893 fi 11899 fi
11894 done 11900 done
11895 11901
11896 11902
11897 echo $ac_n "checking for openpty""... $ac_c" 1>&6 11903 echo $ac_n "checking for openpty""... $ac_c" 1>&6
11898 echo "configure:11899: checking for openpty" >&5 11904 echo "configure:11905: checking for openpty" >&5
11899 11905
11900 cat > conftest.$ac_ext <<EOF 11906 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure" 11907 #line 11908 "configure"
11902 #include "confdefs.h" 11908 #include "confdefs.h"
11903 /* System header to define __stub macros and hopefully few prototypes, 11909 /* System header to define __stub macros and hopefully few prototypes,
11904 which can conflict with char openpty(); below. */ 11910 which can conflict with char openpty(); below. */
11905 #include <assert.h> 11911 #include <assert.h>
11906 /* Override any gcc2 internal prototype to avoid an error. */ 11912 /* Override any gcc2 internal prototype to avoid an error. */
11919 openpty(); 11925 openpty();
11920 #endif 11926 #endif
11921 11927
11922 ; return 0; } 11928 ; return 0; }
11923 EOF 11929 EOF
11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11930 if { (eval echo configure:11931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11925 rm -rf conftest* 11931 rm -rf conftest*
11926 eval "ac_cv_func_openpty=yes" 11932 eval "ac_cv_func_openpty=yes"
11927 else 11933 else
11928 echo "configure: failed program was:" >&5 11934 echo "configure: failed program was:" >&5
11929 cat conftest.$ac_ext >&5 11935 cat conftest.$ac_ext >&5
11938 else 11944 else
11939 echo "$ac_t""no" 1>&6 11945 echo "$ac_t""no" 1>&6
11940 11946
11941 11947
11942 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 11948 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11943 echo "configure:11944: checking for openpty in -lutil" >&5 11949 echo "configure:11950: checking for openpty in -lutil" >&5
11944 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 11950 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11945 11951
11946 xe_check_libs=" -lutil " 11952 xe_check_libs=" -lutil "
11947 cat > conftest.$ac_ext <<EOF 11953 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure" 11954 #line 11955 "configure"
11949 #include "confdefs.h" 11955 #include "confdefs.h"
11950 /* Override any gcc2 internal prototype to avoid an error. */ 11956 /* Override any gcc2 internal prototype to avoid an error. */
11951 /* We use char because int might match the return type of a gcc2 11957 /* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */ 11958 builtin and then its argument prototype would still apply. */
11953 char openpty(); 11959 char openpty();
11954 11960
11955 int main() { 11961 int main() {
11956 openpty() 11962 openpty()
11957 ; return 0; } 11963 ; return 0; }
11958 EOF 11964 EOF
11959 if { (eval echo configure:11960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11965 if { (eval echo configure:11966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11960 rm -rf conftest* 11966 rm -rf conftest*
11961 eval "ac_cv_lib_$ac_lib_var=yes" 11967 eval "ac_cv_lib_$ac_lib_var=yes"
11962 else 11968 else
11963 echo "configure: failed program was:" >&5 11969 echo "configure: failed program was:" >&5
11964 cat conftest.$ac_ext >&5 11970 cat conftest.$ac_ext >&5
11989 11995
11990 for ac_hdr in libutil.h util.h 11996 for ac_hdr in libutil.h util.h
11991 do 11997 do
11992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11998 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11999 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11994 echo "configure:11995: checking for $ac_hdr" >&5 12000 echo "configure:12001: checking for $ac_hdr" >&5
11995 12001
11996 cat > conftest.$ac_ext <<EOF 12002 cat > conftest.$ac_ext <<EOF
11997 #line 11998 "configure" 12003 #line 12004 "configure"
11998 #include "confdefs.h" 12004 #include "confdefs.h"
11999 #include <$ac_hdr> 12005 #include <$ac_hdr>
12000 EOF 12006 EOF
12001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12002 { (eval echo configure:12003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12008 { (eval echo configure:12009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12009 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12004 if test -z "$ac_err"; then 12010 if test -z "$ac_err"; then
12005 rm -rf conftest* 12011 rm -rf conftest*
12006 eval "ac_cv_header_$ac_safe=yes" 12012 eval "ac_cv_header_$ac_safe=yes"
12007 else 12013 else
12034 case "$opsys" in 12040 case "$opsys" in
12035 hpux*) for ac_hdr in sys/ptyio.h 12041 hpux*) for ac_hdr in sys/ptyio.h
12036 do 12042 do
12037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12039 echo "configure:12040: checking for $ac_hdr" >&5 12045 echo "configure:12046: checking for $ac_hdr" >&5
12040 12046
12041 cat > conftest.$ac_ext <<EOF 12047 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure" 12048 #line 12049 "configure"
12043 #include "confdefs.h" 12049 #include "confdefs.h"
12044 #include <$ac_hdr> 12050 #include <$ac_hdr>
12045 EOF 12051 EOF
12046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12047 { (eval echo configure:12048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12053 { (eval echo configure:12054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12049 if test -z "$ac_err"; then 12055 if test -z "$ac_err"; then
12050 rm -rf conftest* 12056 rm -rf conftest*
12051 eval "ac_cv_header_$ac_safe=yes" 12057 eval "ac_cv_header_$ac_safe=yes"
12052 else 12058 else
12075 ;; 12081 ;;
12076 *) for ac_hdr in pty.h 12082 *) for ac_hdr in pty.h
12077 do 12083 do
12078 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12079 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12080 echo "configure:12081: checking for $ac_hdr" >&5 12086 echo "configure:12087: checking for $ac_hdr" >&5
12081 12087
12082 cat > conftest.$ac_ext <<EOF 12088 cat > conftest.$ac_ext <<EOF
12083 #line 12084 "configure" 12089 #line 12090 "configure"
12084 #include "confdefs.h" 12090 #include "confdefs.h"
12085 #include <$ac_hdr> 12091 #include <$ac_hdr>
12086 EOF 12092 EOF
12087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12088 { (eval echo configure:12089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12094 { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12090 if test -z "$ac_err"; then 12096 if test -z "$ac_err"; then
12091 rm -rf conftest* 12097 rm -rf conftest*
12092 eval "ac_cv_header_$ac_safe=yes" 12098 eval "ac_cv_header_$ac_safe=yes"
12093 else 12099 else
12116 12122
12117 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 12123 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
12118 do 12124 do
12119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12121 echo "configure:12122: checking for $ac_hdr" >&5 12127 echo "configure:12128: checking for $ac_hdr" >&5
12122 12128
12123 cat > conftest.$ac_ext <<EOF 12129 cat > conftest.$ac_ext <<EOF
12124 #line 12125 "configure" 12130 #line 12131 "configure"
12125 #include "confdefs.h" 12131 #include "confdefs.h"
12126 #include <$ac_hdr> 12132 #include <$ac_hdr>
12127 EOF 12133 EOF
12128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12129 { (eval echo configure:12130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12135 { (eval echo configure:12136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12131 if test -z "$ac_err"; then 12137 if test -z "$ac_err"; then
12132 rm -rf conftest* 12138 rm -rf conftest*
12133 eval "ac_cv_header_$ac_safe=yes" 12139 eval "ac_cv_header_$ac_safe=yes"
12134 else 12140 else
12160 12166
12161 for ac_hdr in stropts.h 12167 for ac_hdr in stropts.h
12162 do 12168 do
12163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12165 echo "configure:12166: checking for $ac_hdr" >&5 12171 echo "configure:12172: checking for $ac_hdr" >&5
12166 12172
12167 cat > conftest.$ac_ext <<EOF 12173 cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure" 12174 #line 12175 "configure"
12169 #include "confdefs.h" 12175 #include "confdefs.h"
12170 #include <$ac_hdr> 12176 #include <$ac_hdr>
12171 EOF 12177 EOF
12172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12173 { (eval echo configure:12174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12179 { (eval echo configure:12180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12175 if test -z "$ac_err"; then 12181 if test -z "$ac_err"; then
12176 rm -rf conftest* 12182 rm -rf conftest*
12177 eval "ac_cv_header_$ac_safe=yes" 12183 eval "ac_cv_header_$ac_safe=yes"
12178 else 12184 else
12201 12207
12202 if test "$ac_cv_header_stropts_h" = "yes"; then 12208 if test "$ac_cv_header_stropts_h" = "yes"; then
12203 for ac_func in isastream 12209 for ac_func in isastream
12204 do 12210 do
12205 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12206 echo "configure:12207: checking for $ac_func" >&5 12212 echo "configure:12213: checking for $ac_func" >&5
12207 12213
12208 cat > conftest.$ac_ext <<EOF 12214 cat > conftest.$ac_ext <<EOF
12209 #line 12210 "configure" 12215 #line 12216 "configure"
12210 #include "confdefs.h" 12216 #include "confdefs.h"
12211 /* System header to define __stub macros and hopefully few prototypes, 12217 /* System header to define __stub macros and hopefully few prototypes,
12212 which can conflict with char $ac_func(); below. */ 12218 which can conflict with char $ac_func(); below. */
12213 #include <assert.h> 12219 #include <assert.h>
12214 /* Override any gcc2 internal prototype to avoid an error. */ 12220 /* Override any gcc2 internal prototype to avoid an error. */
12227 $ac_func(); 12233 $ac_func();
12228 #endif 12234 #endif
12229 12235
12230 ; return 0; } 12236 ; return 0; }
12231 EOF 12237 EOF
12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12238 if { (eval echo configure:12239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12233 rm -rf conftest* 12239 rm -rf conftest*
12234 eval "ac_cv_func_$ac_func=yes" 12240 eval "ac_cv_func_$ac_func=yes"
12235 else 12241 else
12236 echo "configure: failed program was:" >&5 12242 echo "configure: failed program was:" >&5
12237 cat conftest.$ac_ext >&5 12243 cat conftest.$ac_ext >&5
12258 12264
12259 for ac_hdr in strtio.h 12265 for ac_hdr in strtio.h
12260 do 12266 do
12261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12263 echo "configure:12264: checking for $ac_hdr" >&5 12269 echo "configure:12270: checking for $ac_hdr" >&5
12264 12270
12265 cat > conftest.$ac_ext <<EOF 12271 cat > conftest.$ac_ext <<EOF
12266 #line 12267 "configure" 12272 #line 12273 "configure"
12267 #include "confdefs.h" 12273 #include "confdefs.h"
12268 #include <$ac_hdr> 12274 #include <$ac_hdr>
12269 EOF 12275 EOF
12270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12271 { (eval echo configure:12272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12277 { (eval echo configure:12278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12273 if test -z "$ac_err"; then 12279 if test -z "$ac_err"; then
12274 rm -rf conftest* 12280 rm -rf conftest*
12275 eval "ac_cv_header_$ac_safe=yes" 12281 eval "ac_cv_header_$ac_safe=yes"
12276 else 12282 else
12299 fi 12305 fi
12300 12306
12301 for ac_func in getloadavg 12307 for ac_func in getloadavg
12302 do 12308 do
12303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12304 echo "configure:12305: checking for $ac_func" >&5 12310 echo "configure:12311: checking for $ac_func" >&5
12305 12311
12306 cat > conftest.$ac_ext <<EOF 12312 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure" 12313 #line 12314 "configure"
12308 #include "confdefs.h" 12314 #include "confdefs.h"
12309 /* System header to define __stub macros and hopefully few prototypes, 12315 /* System header to define __stub macros and hopefully few prototypes,
12310 which can conflict with char $ac_func(); below. */ 12316 which can conflict with char $ac_func(); below. */
12311 #include <assert.h> 12317 #include <assert.h>
12312 /* Override any gcc2 internal prototype to avoid an error. */ 12318 /* Override any gcc2 internal prototype to avoid an error. */
12325 $ac_func(); 12331 $ac_func();
12326 #endif 12332 #endif
12327 12333
12328 ; return 0; } 12334 ; return 0; }
12329 EOF 12335 EOF
12330 if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12336 if { (eval echo configure:12337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12331 rm -rf conftest* 12337 rm -rf conftest*
12332 eval "ac_cv_func_$ac_func=yes" 12338 eval "ac_cv_func_$ac_func=yes"
12333 else 12339 else
12334 echo "configure: failed program was:" >&5 12340 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5 12341 cat conftest.$ac_ext >&5
12358 if test "$ac_cv_func_getloadavg" = "yes"; then 12364 if test "$ac_cv_func_getloadavg" = "yes"; then
12359 for ac_hdr in sys/loadavg.h 12365 for ac_hdr in sys/loadavg.h
12360 do 12366 do
12361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12363 echo "configure:12364: checking for $ac_hdr" >&5 12369 echo "configure:12370: checking for $ac_hdr" >&5
12364 12370
12365 cat > conftest.$ac_ext <<EOF 12371 cat > conftest.$ac_ext <<EOF
12366 #line 12367 "configure" 12372 #line 12373 "configure"
12367 #include "confdefs.h" 12373 #include "confdefs.h"
12368 #include <$ac_hdr> 12374 #include <$ac_hdr>
12369 EOF 12375 EOF
12370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12371 { (eval echo configure:12372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12377 { (eval echo configure:12378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12373 if test -z "$ac_err"; then 12379 if test -z "$ac_err"; then
12374 rm -rf conftest* 12380 rm -rf conftest*
12375 eval "ac_cv_header_$ac_safe=yes" 12381 eval "ac_cv_header_$ac_safe=yes"
12376 else 12382 else
12402 echo " xemacs will be linked with \"getloadavg.o\"" 12408 echo " xemacs will be linked with \"getloadavg.o\""
12403 fi 12409 fi
12404 12410
12405 12411
12406 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 12412 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
12407 echo "configure:12408: checking for kstat_open in -lkstat" >&5 12413 echo "configure:12414: checking for kstat_open in -lkstat" >&5
12408 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 12414 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
12409 12415
12410 xe_check_libs=" -lkstat " 12416 xe_check_libs=" -lkstat "
12411 cat > conftest.$ac_ext <<EOF 12417 cat > conftest.$ac_ext <<EOF
12412 #line 12413 "configure" 12418 #line 12419 "configure"
12413 #include "confdefs.h" 12419 #include "confdefs.h"
12414 /* Override any gcc2 internal prototype to avoid an error. */ 12420 /* Override any gcc2 internal prototype to avoid an error. */
12415 /* We use char because int might match the return type of a gcc2 12421 /* We use char because int might match the return type of a gcc2
12416 builtin and then its argument prototype would still apply. */ 12422 builtin and then its argument prototype would still apply. */
12417 char kstat_open(); 12423 char kstat_open();
12418 12424
12419 int main() { 12425 int main() {
12420 kstat_open() 12426 kstat_open()
12421 ; return 0; } 12427 ; return 0; }
12422 EOF 12428 EOF
12423 if { (eval echo configure:12424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12429 if { (eval echo configure:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12424 rm -rf conftest* 12430 rm -rf conftest*
12425 eval "ac_cv_lib_$ac_lib_var=yes" 12431 eval "ac_cv_lib_$ac_lib_var=yes"
12426 else 12432 else
12427 echo "configure: failed program was:" >&5 12433 echo "configure: failed program was:" >&5
12428 cat conftest.$ac_ext >&5 12434 cat conftest.$ac_ext >&5
12453 12459
12454 for ac_hdr in kstat.h 12460 for ac_hdr in kstat.h
12455 do 12461 do
12456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12458 echo "configure:12459: checking for $ac_hdr" >&5 12464 echo "configure:12465: checking for $ac_hdr" >&5
12459 12465
12460 cat > conftest.$ac_ext <<EOF 12466 cat > conftest.$ac_ext <<EOF
12461 #line 12462 "configure" 12467 #line 12468 "configure"
12462 #include "confdefs.h" 12468 #include "confdefs.h"
12463 #include <$ac_hdr> 12469 #include <$ac_hdr>
12464 EOF 12470 EOF
12465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12466 { (eval echo configure:12467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12472 { (eval echo configure:12473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12468 if test -z "$ac_err"; then 12474 if test -z "$ac_err"; then
12469 rm -rf conftest* 12475 rm -rf conftest*
12470 eval "ac_cv_header_$ac_safe=yes" 12476 eval "ac_cv_header_$ac_safe=yes"
12471 else 12477 else
12493 done 12499 done
12494 12500
12495 12501
12496 12502
12497 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 12503 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
12498 echo "configure:12499: checking for kvm_read in -lkvm" >&5 12504 echo "configure:12505: checking for kvm_read in -lkvm" >&5
12499 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 12505 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
12500 12506
12501 xe_check_libs=" -lkvm " 12507 xe_check_libs=" -lkvm "
12502 cat > conftest.$ac_ext <<EOF 12508 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure" 12509 #line 12510 "configure"
12504 #include "confdefs.h" 12510 #include "confdefs.h"
12505 /* Override any gcc2 internal prototype to avoid an error. */ 12511 /* Override any gcc2 internal prototype to avoid an error. */
12506 /* We use char because int might match the return type of a gcc2 12512 /* We use char because int might match the return type of a gcc2
12507 builtin and then its argument prototype would still apply. */ 12513 builtin and then its argument prototype would still apply. */
12508 char kvm_read(); 12514 char kvm_read();
12509 12515
12510 int main() { 12516 int main() {
12511 kvm_read() 12517 kvm_read()
12512 ; return 0; } 12518 ; return 0; }
12513 EOF 12519 EOF
12514 if { (eval echo configure:12515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12520 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12515 rm -rf conftest* 12521 rm -rf conftest*
12516 eval "ac_cv_lib_$ac_lib_var=yes" 12522 eval "ac_cv_lib_$ac_lib_var=yes"
12517 else 12523 else
12518 echo "configure: failed program was:" >&5 12524 echo "configure: failed program was:" >&5
12519 cat conftest.$ac_ext >&5 12525 cat conftest.$ac_ext >&5
12543 12549
12544 12550
12545 fi 12551 fi
12546 12552
12547 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 12553 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
12548 echo "configure:12549: checking whether netdb declares h_errno" >&5 12554 echo "configure:12555: checking whether netdb declares h_errno" >&5
12549 cat > conftest.$ac_ext <<EOF 12555 cat > conftest.$ac_ext <<EOF
12550 #line 12551 "configure" 12556 #line 12557 "configure"
12551 #include "confdefs.h" 12557 #include "confdefs.h"
12552 #include <netdb.h> 12558 #include <netdb.h>
12553 int main() { 12559 int main() {
12554 return h_errno; 12560 return h_errno;
12555 ; return 0; } 12561 ; return 0; }
12556 EOF 12562 EOF
12557 if { (eval echo configure:12558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12563 if { (eval echo configure:12564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12558 rm -rf conftest* 12564 rm -rf conftest*
12559 echo "$ac_t""yes" 1>&6 12565 echo "$ac_t""yes" 1>&6
12560 { test "$extra_verbose" = "yes" && cat << \EOF 12566 { test "$extra_verbose" = "yes" && cat << \EOF
12561 Defining HAVE_H_ERRNO 12567 Defining HAVE_H_ERRNO
12562 EOF 12568 EOF
12572 echo "$ac_t""no" 1>&6 12578 echo "$ac_t""no" 1>&6
12573 fi 12579 fi
12574 rm -f conftest* 12580 rm -f conftest*
12575 12581
12576 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 12582 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
12577 echo "configure:12578: checking for sigsetjmp" >&5 12583 echo "configure:12584: checking for sigsetjmp" >&5
12578 cat > conftest.$ac_ext <<EOF 12584 cat > conftest.$ac_ext <<EOF
12579 #line 12580 "configure" 12585 #line 12586 "configure"
12580 #include "confdefs.h" 12586 #include "confdefs.h"
12581 #include <setjmp.h> 12587 #include <setjmp.h>
12582 int main() { 12588 int main() {
12583 sigjmp_buf bar; sigsetjmp (bar, 0); 12589 sigjmp_buf bar; sigsetjmp (bar, 0);
12584 ; return 0; } 12590 ; return 0; }
12585 EOF 12591 EOF
12586 if { (eval echo configure:12587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12592 if { (eval echo configure:12593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12587 rm -rf conftest* 12593 rm -rf conftest*
12588 echo "$ac_t""yes" 1>&6 12594 echo "$ac_t""yes" 1>&6
12589 { test "$extra_verbose" = "yes" && cat << \EOF 12595 { test "$extra_verbose" = "yes" && cat << \EOF
12590 Defining HAVE_SIGSETJMP 12596 Defining HAVE_SIGSETJMP
12591 EOF 12597 EOF
12601 echo "$ac_t""no" 1>&6 12607 echo "$ac_t""no" 1>&6
12602 fi 12608 fi
12603 rm -f conftest* 12609 rm -f conftest*
12604 12610
12605 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 12611 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
12606 echo "configure:12607: checking whether localtime caches TZ" >&5 12612 echo "configure:12613: checking whether localtime caches TZ" >&5
12607 12613
12608 if test "$ac_cv_func_tzset" = "yes"; then 12614 if test "$ac_cv_func_tzset" = "yes"; then
12609 cat > conftest.$ac_ext <<EOF 12615 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure" 12616 #line 12617 "configure"
12611 #include "confdefs.h" 12617 #include "confdefs.h"
12612 #include <time.h> 12618 #include <time.h>
12613 #if STDC_HEADERS 12619 #if STDC_HEADERS
12614 # include <stdlib.h> 12620 # include <stdlib.h>
12615 #endif 12621 #endif
12640 if (localtime (&now)->tm_hour != hour_unset) 12646 if (localtime (&now)->tm_hour != hour_unset)
12641 exit (1); 12647 exit (1);
12642 exit (0); 12648 exit (0);
12643 } 12649 }
12644 EOF 12650 EOF
12645 if { (eval echo configure:12646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12651 if { (eval echo configure:12652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12646 then 12652 then
12647 emacs_cv_localtime_cache=no 12653 emacs_cv_localtime_cache=no
12648 else 12654 else
12649 conftest_rc="$?" 12655 conftest_rc="$?"
12650 echo "configure: failed program was:" >&5 12656 echo "configure: failed program was:" >&5
12670 12676
12671 fi 12677 fi
12672 12678
12673 if test "$HAVE_TIMEVAL" = "yes"; then 12679 if test "$HAVE_TIMEVAL" = "yes"; then
12674 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 12680 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
12675 echo "configure:12676: checking whether gettimeofday accepts one or two arguments" >&5 12681 echo "configure:12682: checking whether gettimeofday accepts one or two arguments" >&5
12676 cat > conftest.$ac_ext <<EOF 12682 cat > conftest.$ac_ext <<EOF
12677 #line 12678 "configure" 12683 #line 12684 "configure"
12678 #include "confdefs.h" 12684 #include "confdefs.h"
12679 12685
12680 #ifdef TIME_WITH_SYS_TIME 12686 #ifdef TIME_WITH_SYS_TIME
12681 #include <sys/time.h> 12687 #include <sys/time.h>
12682 #include <time.h> 12688 #include <time.h>
12693 struct timeval time; 12699 struct timeval time;
12694 gettimeofday (&time, 0); 12700 gettimeofday (&time, 0);
12695 12701
12696 ; return 0; } 12702 ; return 0; }
12697 EOF 12703 EOF
12698 if { (eval echo configure:12699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12704 if { (eval echo configure:12705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12699 rm -rf conftest* 12705 rm -rf conftest*
12700 echo "$ac_t""two" 1>&6 12706 echo "$ac_t""two" 1>&6
12701 else 12707 else
12702 echo "configure: failed program was:" >&5 12708 echo "configure: failed program was:" >&5
12703 cat conftest.$ac_ext >&5 12709 cat conftest.$ac_ext >&5
12715 rm -f conftest* 12721 rm -f conftest*
12716 fi 12722 fi
12717 12723
12718 12724
12719 echo $ac_n "checking for inline""... $ac_c" 1>&6 12725 echo $ac_n "checking for inline""... $ac_c" 1>&6
12720 echo "configure:12721: checking for inline" >&5 12726 echo "configure:12727: checking for inline" >&5
12721 12727
12722 ac_cv_c_inline=no 12728 ac_cv_c_inline=no
12723 for ac_kw in inline __inline__ __inline; do 12729 for ac_kw in inline __inline__ __inline; do
12724 cat > conftest.$ac_ext <<EOF 12730 cat > conftest.$ac_ext <<EOF
12725 #line 12726 "configure" 12731 #line 12732 "configure"
12726 #include "confdefs.h" 12732 #include "confdefs.h"
12727 12733
12728 int main() { 12734 int main() {
12729 } $ac_kw foo() { 12735 } $ac_kw foo() {
12730 ; return 0; } 12736 ; return 0; }
12731 EOF 12737 EOF
12732 if { (eval echo configure:12733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12738 if { (eval echo configure:12739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12733 rm -rf conftest* 12739 rm -rf conftest*
12734 ac_cv_c_inline=$ac_kw; break 12740 ac_cv_c_inline=$ac_kw; break
12735 else 12741 else
12736 echo "configure: failed program was:" >&5 12742 echo "configure: failed program was:" >&5
12737 cat conftest.$ac_ext >&5 12743 cat conftest.$ac_ext >&5
12768 12774
12769 if test "$__DECC" != "yes"; then 12775 if test "$__DECC" != "yes"; then
12770 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12771 # for constant arguments. Useless! 12777 # for constant arguments. Useless!
12772 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 12778 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
12773 echo "configure:12774: checking for working alloca.h" >&5 12779 echo "configure:12780: checking for working alloca.h" >&5
12774 12780
12775 cat > conftest.$ac_ext <<EOF 12781 cat > conftest.$ac_ext <<EOF
12776 #line 12777 "configure" 12782 #line 12783 "configure"
12777 #include "confdefs.h" 12783 #include "confdefs.h"
12778 #include <alloca.h> 12784 #include <alloca.h>
12779 int main() { 12785 int main() {
12780 char *p = alloca(2 * sizeof(int)); 12786 char *p = alloca(2 * sizeof(int));
12781 ; return 0; } 12787 ; return 0; }
12782 EOF 12788 EOF
12783 if { (eval echo configure:12784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12784 rm -rf conftest* 12790 rm -rf conftest*
12785 ac_cv_header_alloca_h=yes 12791 ac_cv_header_alloca_h=yes
12786 else 12792 else
12787 echo "configure: failed program was:" >&5 12793 echo "configure: failed program was:" >&5
12788 cat conftest.$ac_ext >&5 12794 cat conftest.$ac_ext >&5
12802 } 12808 }
12803 12809
12804 fi 12810 fi
12805 12811
12806 echo $ac_n "checking for alloca""... $ac_c" 1>&6 12812 echo $ac_n "checking for alloca""... $ac_c" 1>&6
12807 echo "configure:12808: checking for alloca" >&5 12813 echo "configure:12814: checking for alloca" >&5
12808 12814
12809 cat > conftest.$ac_ext <<EOF 12815 cat > conftest.$ac_ext <<EOF
12810 #line 12811 "configure" 12816 #line 12817 "configure"
12811 #include "confdefs.h" 12817 #include "confdefs.h"
12812 12818
12813 #ifdef __GNUC__ 12819 #ifdef __GNUC__
12814 # define alloca __builtin_alloca 12820 # define alloca __builtin_alloca
12815 #else 12821 #else
12833 12839
12834 int main() { 12840 int main() {
12835 char *p = (char *) alloca(1); 12841 char *p = (char *) alloca(1);
12836 ; return 0; } 12842 ; return 0; }
12837 EOF 12843 EOF
12838 if { (eval echo configure:12839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12844 if { (eval echo configure:12845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12839 rm -rf conftest* 12845 rm -rf conftest*
12840 ac_cv_func_alloca_works=yes 12846 ac_cv_func_alloca_works=yes
12841 else 12847 else
12842 echo "configure: failed program was:" >&5 12848 echo "configure: failed program was:" >&5
12843 cat conftest.$ac_ext >&5 12849 cat conftest.$ac_ext >&5
12872 EOF 12878 EOF
12873 } 12879 }
12874 12880
12875 12881
12876 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 12882 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
12877 echo "configure:12878: checking whether alloca needs Cray hooks" >&5 12883 echo "configure:12884: checking whether alloca needs Cray hooks" >&5
12878 12884
12879 cat > conftest.$ac_ext <<EOF 12885 cat > conftest.$ac_ext <<EOF
12880 #line 12881 "configure" 12886 #line 12887 "configure"
12881 #include "confdefs.h" 12887 #include "confdefs.h"
12882 #if defined(CRAY) && ! defined(CRAY2) 12888 #if defined(CRAY) && ! defined(CRAY2)
12883 webecray 12889 webecray
12884 #else 12890 #else
12885 wenotbecray 12891 wenotbecray
12899 12905
12900 echo "$ac_t""$ac_cv_os_cray" 1>&6 12906 echo "$ac_t""$ac_cv_os_cray" 1>&6
12901 if test $ac_cv_os_cray = yes; then 12907 if test $ac_cv_os_cray = yes; then
12902 for ac_func in _getb67 GETB67 getb67; do 12908 for ac_func in _getb67 GETB67 getb67; do
12903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12909 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12904 echo "configure:12905: checking for $ac_func" >&5 12910 echo "configure:12911: checking for $ac_func" >&5
12905 12911
12906 cat > conftest.$ac_ext <<EOF 12912 cat > conftest.$ac_ext <<EOF
12907 #line 12908 "configure" 12913 #line 12914 "configure"
12908 #include "confdefs.h" 12914 #include "confdefs.h"
12909 /* System header to define __stub macros and hopefully few prototypes, 12915 /* System header to define __stub macros and hopefully few prototypes,
12910 which can conflict with char $ac_func(); below. */ 12916 which can conflict with char $ac_func(); below. */
12911 #include <assert.h> 12917 #include <assert.h>
12912 /* Override any gcc2 internal prototype to avoid an error. */ 12918 /* Override any gcc2 internal prototype to avoid an error. */
12925 $ac_func(); 12931 $ac_func();
12926 #endif 12932 #endif
12927 12933
12928 ; return 0; } 12934 ; return 0; }
12929 EOF 12935 EOF
12930 if { (eval echo configure:12931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12936 if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12931 rm -rf conftest* 12937 rm -rf conftest*
12932 eval "ac_cv_func_$ac_func=yes" 12938 eval "ac_cv_func_$ac_func=yes"
12933 else 12939 else
12934 echo "configure: failed program was:" >&5 12940 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5 12941 cat conftest.$ac_ext >&5
12955 12961
12956 done 12962 done
12957 fi 12963 fi
12958 12964
12959 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 12965 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12960 echo "configure:12961: checking stack direction for C alloca" >&5 12966 echo "configure:12967: checking stack direction for C alloca" >&5
12961 12967
12962 cat > conftest.$ac_ext <<EOF 12968 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure" 12969 #line 12970 "configure"
12964 #include "confdefs.h" 12970 #include "confdefs.h"
12965 find_stack_direction () 12971 find_stack_direction ()
12966 { 12972 {
12967 static char *addr = 0; 12973 static char *addr = 0;
12968 auto char dummy; 12974 auto char dummy;
12977 main () 12983 main ()
12978 { 12984 {
12979 exit (find_stack_direction() < 0); 12985 exit (find_stack_direction() < 0);
12980 } 12986 }
12981 EOF 12987 EOF
12982 if { (eval echo configure:12983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12988 if { (eval echo configure:12989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12983 then 12989 then
12984 ac_cv_c_stack_direction=1 12990 ac_cv_c_stack_direction=1
12985 else 12991 else
12986 conftest_rc="$?" 12992 conftest_rc="$?"
12987 echo "configure: failed program was:" >&5 12993 echo "configure: failed program was:" >&5
13006 echo " xemacs will be linked with \"$ALLOCA\"" 13012 echo " xemacs will be linked with \"$ALLOCA\""
13007 fi 13013 fi
13008 fi 13014 fi
13009 13015
13010 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 13016 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
13011 echo "configure:13012: checking for working strcoll" >&5 13017 echo "configure:13018: checking for working strcoll" >&5
13012 13018
13013 cat > conftest.$ac_ext <<EOF 13019 cat > conftest.$ac_ext <<EOF
13014 #line 13015 "configure" 13020 #line 13021 "configure"
13015 #include "confdefs.h" 13021 #include "confdefs.h"
13016 #include <string.h> 13022 #include <string.h>
13017 main () 13023 main ()
13018 { 13024 {
13019 exit (strcoll ("abc", "def") >= 0 || 13025 exit (strcoll ("abc", "def") >= 0 ||
13020 strcoll ("ABC", "DEF") >= 0 || 13026 strcoll ("ABC", "DEF") >= 0 ||
13021 strcoll ("123", "456") >= 0); 13027 strcoll ("123", "456") >= 0);
13022 } 13028 }
13023 EOF 13029 EOF
13024 if { (eval echo configure:13025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13030 if { (eval echo configure:13031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13025 then 13031 then
13026 ac_cv_func_strcoll_works=yes 13032 ac_cv_func_strcoll_works=yes
13027 else 13033 else
13028 conftest_rc="$?" 13034 conftest_rc="$?"
13029 echo "configure: failed program was:" >&5 13035 echo "configure: failed program was:" >&5
13047 13053
13048 13054
13049 for ac_func in getpgrp 13055 for ac_func in getpgrp
13050 do 13056 do
13051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13052 echo "configure:13053: checking for $ac_func" >&5 13058 echo "configure:13059: checking for $ac_func" >&5
13053 13059
13054 cat > conftest.$ac_ext <<EOF 13060 cat > conftest.$ac_ext <<EOF
13055 #line 13056 "configure" 13061 #line 13062 "configure"
13056 #include "confdefs.h" 13062 #include "confdefs.h"
13057 /* System header to define __stub macros and hopefully few prototypes, 13063 /* System header to define __stub macros and hopefully few prototypes,
13058 which can conflict with char $ac_func(); below. */ 13064 which can conflict with char $ac_func(); below. */
13059 #include <assert.h> 13065 #include <assert.h>
13060 /* Override any gcc2 internal prototype to avoid an error. */ 13066 /* Override any gcc2 internal prototype to avoid an error. */
13073 $ac_func(); 13079 $ac_func();
13074 #endif 13080 #endif
13075 13081
13076 ; return 0; } 13082 ; return 0; }
13077 EOF 13083 EOF
13078 if { (eval echo configure:13079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13084 if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13079 rm -rf conftest* 13085 rm -rf conftest*
13080 eval "ac_cv_func_$ac_func=yes" 13086 eval "ac_cv_func_$ac_func=yes"
13081 else 13087 else
13082 echo "configure: failed program was:" >&5 13088 echo "configure: failed program was:" >&5
13083 cat conftest.$ac_ext >&5 13089 cat conftest.$ac_ext >&5
13101 echo "$ac_t""no" 1>&6 13107 echo "$ac_t""no" 1>&6
13102 fi 13108 fi
13103 done 13109 done
13104 13110
13105 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 13111 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
13106 echo "configure:13107: checking whether getpgrp takes no argument" >&5 13112 echo "configure:13113: checking whether getpgrp takes no argument" >&5
13107 13113
13108 cat > conftest.$ac_ext <<EOF 13114 cat > conftest.$ac_ext <<EOF
13109 #line 13110 "configure" 13115 #line 13116 "configure"
13110 #include "confdefs.h" 13116 #include "confdefs.h"
13111 13117
13112 /* 13118 /*
13113 * If this system has a BSD-style getpgrp(), 13119 * If this system has a BSD-style getpgrp(),
13114 * which takes a pid argument, exit unsuccessfully. 13120 * which takes a pid argument, exit unsuccessfully.
13159 exit(s>>8); 13165 exit(s>>8);
13160 } 13166 }
13161 } 13167 }
13162 13168
13163 EOF 13169 EOF
13164 if { (eval echo configure:13165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13170 if { (eval echo configure:13171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13165 then 13171 then
13166 ac_cv_func_getpgrp_void=yes 13172 ac_cv_func_getpgrp_void=yes
13167 else 13173 else
13168 conftest_rc="$?" 13174 conftest_rc="$?"
13169 echo "configure: failed program was:" >&5 13175 echo "configure: failed program was:" >&5
13186 13192
13187 fi 13193 fi
13188 13194
13189 13195
13190 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 13196 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
13191 echo "configure:13192: checking for working mmap" >&5 13197 echo "configure:13198: checking for working mmap" >&5
13192 case "$opsys" in ultrix* ) have_mmap=no ;; *) 13198 case "$opsys" in ultrix* ) have_mmap=no ;; *)
13193 cat > conftest.$ac_ext <<EOF 13199 cat > conftest.$ac_ext <<EOF
13194 #line 13195 "configure" 13200 #line 13201 "configure"
13195 #include "confdefs.h" 13201 #include "confdefs.h"
13196 #include <stdio.h> 13202 #include <stdio.h>
13197 #include <unistd.h> 13203 #include <unistd.h>
13198 #include <fcntl.h> 13204 #include <fcntl.h>
13199 #include <sys/mman.h> 13205 #include <sys/mman.h>
13222 return 0; 13228 return 0;
13223 perror ("conftest: mmap failed"); 13229 perror ("conftest: mmap failed");
13224 return 1; 13230 return 1;
13225 } 13231 }
13226 EOF 13232 EOF
13227 if { (eval echo configure:13228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13233 if { (eval echo configure:13234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13228 then 13234 then
13229 have_mmap=yes 13235 have_mmap=yes
13230 else 13236 else
13231 conftest_rc="$?" 13237 conftest_rc="$?"
13232 echo "configure: failed program was:" >&5 13238 echo "configure: failed program was:" >&5
13251 esac 13257 esac
13252 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 13258 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
13253 if test "$rel_alloc $have_mmap" = "default yes"; then 13259 if test "$rel_alloc $have_mmap" = "default yes"; then
13254 if test "$doug_lea_malloc" = "yes"; then 13260 if test "$doug_lea_malloc" = "yes"; then
13255 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 13261 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
13256 echo "configure:13257: checking for M_MMAP_THRESHOLD" >&5 13262 echo "configure:13263: checking for M_MMAP_THRESHOLD" >&5
13257 cat > conftest.$ac_ext <<EOF 13263 cat > conftest.$ac_ext <<EOF
13258 #line 13259 "configure" 13264 #line 13265 "configure"
13259 #include "confdefs.h" 13265 #include "confdefs.h"
13260 #include <malloc.h> 13266 #include <malloc.h>
13261 int main() { 13267 int main() {
13262 13268
13263 #ifndef M_MMAP_THRESHOLD 13269 #ifndef M_MMAP_THRESHOLD
13265 !@+$%^&*_)(_ - unlikely to compile... 13271 !@+$%^&*_)(_ - unlikely to compile...
13266 #endif 13272 #endif
13267 13273
13268 ; return 0; } 13274 ; return 0; }
13269 EOF 13275 EOF
13270 if { (eval echo configure:13271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13276 if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13271 rm -rf conftest* 13277 rm -rf conftest*
13272 rel_alloc=no; echo "$ac_t""yes" 1>&6; 13278 rel_alloc=no; echo "$ac_t""yes" 1>&6;
13273 else 13279 else
13274 echo "configure: failed program was:" >&5 13280 echo "configure: failed program was:" >&5
13275 cat conftest.$ac_ext >&5 13281 cat conftest.$ac_ext >&5
13290 } 13296 }
13291 13297
13292 13298
13293 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 13299 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
13294 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 13300 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
13295 echo "configure:13296: checking for termios.h" >&5 13301 echo "configure:13302: checking for termios.h" >&5
13296 13302
13297 cat > conftest.$ac_ext <<EOF 13303 cat > conftest.$ac_ext <<EOF
13298 #line 13299 "configure" 13304 #line 13305 "configure"
13299 #include "confdefs.h" 13305 #include "confdefs.h"
13300 #include <termios.h> 13306 #include <termios.h>
13301 EOF 13307 EOF
13302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13303 { (eval echo configure:13304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13309 { (eval echo configure:13310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13305 if test -z "$ac_err"; then 13311 if test -z "$ac_err"; then
13306 rm -rf conftest* 13312 rm -rf conftest*
13307 eval "ac_cv_header_$ac_safe=yes" 13313 eval "ac_cv_header_$ac_safe=yes"
13308 else 13314 else
13341 13347
13342 else 13348 else
13343 echo "$ac_t""no" 1>&6 13349 echo "$ac_t""no" 1>&6
13344 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 13350 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
13345 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 13351 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
13346 echo "configure:13347: checking for termio.h" >&5 13352 echo "configure:13353: checking for termio.h" >&5
13347 13353
13348 cat > conftest.$ac_ext <<EOF 13354 cat > conftest.$ac_ext <<EOF
13349 #line 13350 "configure" 13355 #line 13356 "configure"
13350 #include "confdefs.h" 13356 #include "confdefs.h"
13351 #include <termio.h> 13357 #include <termio.h>
13352 EOF 13358 EOF
13353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13354 { (eval echo configure:13355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13360 { (eval echo configure:13361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13355 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13356 if test -z "$ac_err"; then 13362 if test -z "$ac_err"; then
13357 rm -rf conftest* 13363 rm -rf conftest*
13358 eval "ac_cv_header_$ac_safe=yes" 13364 eval "ac_cv_header_$ac_safe=yes"
13359 else 13365 else
13381 fi 13387 fi
13382 13388
13383 13389
13384 13390
13385 echo $ac_n "checking for socket""... $ac_c" 1>&6 13391 echo $ac_n "checking for socket""... $ac_c" 1>&6
13386 echo "configure:13387: checking for socket" >&5 13392 echo "configure:13393: checking for socket" >&5
13387 13393
13388 cat > conftest.$ac_ext <<EOF 13394 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure" 13395 #line 13396 "configure"
13390 #include "confdefs.h" 13396 #include "confdefs.h"
13391 /* System header to define __stub macros and hopefully few prototypes, 13397 /* System header to define __stub macros and hopefully few prototypes,
13392 which can conflict with char socket(); below. */ 13398 which can conflict with char socket(); below. */
13393 #include <assert.h> 13399 #include <assert.h>
13394 /* Override any gcc2 internal prototype to avoid an error. */ 13400 /* Override any gcc2 internal prototype to avoid an error. */
13407 socket(); 13413 socket();
13408 #endif 13414 #endif
13409 13415
13410 ; return 0; } 13416 ; return 0; }
13411 EOF 13417 EOF
13412 if { (eval echo configure:13413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13418 if { (eval echo configure:13419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13413 rm -rf conftest* 13419 rm -rf conftest*
13414 eval "ac_cv_func_socket=yes" 13420 eval "ac_cv_func_socket=yes"
13415 else 13421 else
13416 echo "configure: failed program was:" >&5 13422 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5 13423 cat conftest.$ac_ext >&5
13422 13428
13423 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 13429 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
13424 echo "$ac_t""yes" 1>&6 13430 echo "$ac_t""yes" 1>&6
13425 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 13431 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
13426 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 13432 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
13427 echo "configure:13428: checking for netinet/in.h" >&5 13433 echo "configure:13434: checking for netinet/in.h" >&5
13428 13434
13429 cat > conftest.$ac_ext <<EOF 13435 cat > conftest.$ac_ext <<EOF
13430 #line 13431 "configure" 13436 #line 13437 "configure"
13431 #include "confdefs.h" 13437 #include "confdefs.h"
13432 #include <netinet/in.h> 13438 #include <netinet/in.h>
13433 EOF 13439 EOF
13434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13435 { (eval echo configure:13436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13441 { (eval echo configure:13442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13437 if test -z "$ac_err"; then 13443 if test -z "$ac_err"; then
13438 rm -rf conftest* 13444 rm -rf conftest*
13439 eval "ac_cv_header_$ac_safe=yes" 13445 eval "ac_cv_header_$ac_safe=yes"
13440 else 13446 else
13447 rm -f conftest* 13453 rm -f conftest*
13448 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13449 echo "$ac_t""yes" 1>&6 13455 echo "$ac_t""yes" 1>&6
13450 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 13456 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
13451 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 13457 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
13452 echo "configure:13453: checking for arpa/inet.h" >&5 13458 echo "configure:13459: checking for arpa/inet.h" >&5
13453 13459
13454 cat > conftest.$ac_ext <<EOF 13460 cat > conftest.$ac_ext <<EOF
13455 #line 13456 "configure" 13461 #line 13462 "configure"
13456 #include "confdefs.h" 13462 #include "confdefs.h"
13457 #include <arpa/inet.h> 13463 #include <arpa/inet.h>
13458 EOF 13464 EOF
13459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13460 { (eval echo configure:13461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13466 { (eval echo configure:13467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13462 if test -z "$ac_err"; then 13468 if test -z "$ac_err"; then
13463 rm -rf conftest* 13469 rm -rf conftest*
13464 eval "ac_cv_header_$ac_safe=yes" 13470 eval "ac_cv_header_$ac_safe=yes"
13465 else 13471 else
13480 #define HAVE_SOCKETS 1 13486 #define HAVE_SOCKETS 1
13481 EOF 13487 EOF
13482 } 13488 }
13483 13489
13484 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 13490 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
13485 echo "configure:13486: checking "for sun_len member in struct sockaddr_un"" >&5 13491 echo "configure:13492: checking "for sun_len member in struct sockaddr_un"" >&5
13486 cat > conftest.$ac_ext <<EOF 13492 cat > conftest.$ac_ext <<EOF
13487 #line 13488 "configure" 13493 #line 13494 "configure"
13488 #include "confdefs.h" 13494 #include "confdefs.h"
13489 13495
13490 #include <sys/types.h> 13496 #include <sys/types.h>
13491 #include <sys/socket.h> 13497 #include <sys/socket.h>
13492 #include <sys/un.h> 13498 #include <sys/un.h>
13493 13499
13494 int main() { 13500 int main() {
13495 static struct sockaddr_un x; x.sun_len = 1; 13501 static struct sockaddr_un x; x.sun_len = 1;
13496 ; return 0; } 13502 ; return 0; }
13497 EOF 13503 EOF
13498 if { (eval echo configure:13499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13504 if { (eval echo configure:13505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13499 rm -rf conftest* 13505 rm -rf conftest*
13500 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13506 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13501 Defining HAVE_SOCKADDR_SUN_LEN 13507 Defining HAVE_SOCKADDR_SUN_LEN
13502 EOF 13508 EOF
13503 cat >> confdefs.h <<\EOF 13509 cat >> confdefs.h <<\EOF
13511 rm -rf conftest* 13517 rm -rf conftest*
13512 echo "$ac_t""no" 1>&6 13518 echo "$ac_t""no" 1>&6
13513 fi 13519 fi
13514 rm -f conftest* 13520 rm -f conftest*
13515 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 13521 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
13516 echo "configure:13517: checking "for ip_mreq struct in netinet/in.h"" >&5 13522 echo "configure:13523: checking "for ip_mreq struct in netinet/in.h"" >&5
13517 cat > conftest.$ac_ext <<EOF 13523 cat > conftest.$ac_ext <<EOF
13518 #line 13519 "configure" 13524 #line 13525 "configure"
13519 #include "confdefs.h" 13525 #include "confdefs.h"
13520 13526
13521 #include <sys/types.h> 13527 #include <sys/types.h>
13522 #include <netinet/in.h> 13528 #include <netinet/in.h>
13523 13529
13524 int main() { 13530 int main() {
13525 static struct ip_mreq x; 13531 static struct ip_mreq x;
13526 ; return 0; } 13532 ; return 0; }
13527 EOF 13533 EOF
13528 if { (eval echo configure:13529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13529 rm -rf conftest* 13535 rm -rf conftest*
13530 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13536 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
13531 Defining HAVE_MULTICAST 13537 Defining HAVE_MULTICAST
13532 EOF 13538 EOF
13533 cat >> confdefs.h <<\EOF 13539 cat >> confdefs.h <<\EOF
13554 echo "$ac_t""no" 1>&6 13560 echo "$ac_t""no" 1>&6
13555 fi 13561 fi
13556 13562
13557 13563
13558 echo $ac_n "checking for msgget""... $ac_c" 1>&6 13564 echo $ac_n "checking for msgget""... $ac_c" 1>&6
13559 echo "configure:13560: checking for msgget" >&5 13565 echo "configure:13566: checking for msgget" >&5
13560 13566
13561 cat > conftest.$ac_ext <<EOF 13567 cat > conftest.$ac_ext <<EOF
13562 #line 13563 "configure" 13568 #line 13569 "configure"
13563 #include "confdefs.h" 13569 #include "confdefs.h"
13564 /* System header to define __stub macros and hopefully few prototypes, 13570 /* System header to define __stub macros and hopefully few prototypes,
13565 which can conflict with char msgget(); below. */ 13571 which can conflict with char msgget(); below. */
13566 #include <assert.h> 13572 #include <assert.h>
13567 /* Override any gcc2 internal prototype to avoid an error. */ 13573 /* Override any gcc2 internal prototype to avoid an error. */
13580 msgget(); 13586 msgget();
13581 #endif 13587 #endif
13582 13588
13583 ; return 0; } 13589 ; return 0; }
13584 EOF 13590 EOF
13585 if { (eval echo configure:13586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13591 if { (eval echo configure:13592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 rm -rf conftest* 13592 rm -rf conftest*
13587 eval "ac_cv_func_msgget=yes" 13593 eval "ac_cv_func_msgget=yes"
13588 else 13594 else
13589 echo "configure: failed program was:" >&5 13595 echo "configure: failed program was:" >&5
13590 cat conftest.$ac_ext >&5 13596 cat conftest.$ac_ext >&5
13595 13601
13596 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 13602 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
13597 echo "$ac_t""yes" 1>&6 13603 echo "$ac_t""yes" 1>&6
13598 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 13604 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
13599 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 13605 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
13600 echo "configure:13601: checking for sys/ipc.h" >&5 13606 echo "configure:13607: checking for sys/ipc.h" >&5
13601 13607
13602 cat > conftest.$ac_ext <<EOF 13608 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure" 13609 #line 13610 "configure"
13604 #include "confdefs.h" 13610 #include "confdefs.h"
13605 #include <sys/ipc.h> 13611 #include <sys/ipc.h>
13606 EOF 13612 EOF
13607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13608 { (eval echo configure:13609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13614 { (eval echo configure:13615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13610 if test -z "$ac_err"; then 13616 if test -z "$ac_err"; then
13611 rm -rf conftest* 13617 rm -rf conftest*
13612 eval "ac_cv_header_$ac_safe=yes" 13618 eval "ac_cv_header_$ac_safe=yes"
13613 else 13619 else
13620 rm -f conftest* 13626 rm -f conftest*
13621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13622 echo "$ac_t""yes" 1>&6 13628 echo "$ac_t""yes" 1>&6
13623 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 13629 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
13624 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 13630 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
13625 echo "configure:13626: checking for sys/msg.h" >&5 13631 echo "configure:13632: checking for sys/msg.h" >&5
13626 13632
13627 cat > conftest.$ac_ext <<EOF 13633 cat > conftest.$ac_ext <<EOF
13628 #line 13629 "configure" 13634 #line 13635 "configure"
13629 #include "confdefs.h" 13635 #include "confdefs.h"
13630 #include <sys/msg.h> 13636 #include <sys/msg.h>
13631 EOF 13637 EOF
13632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13633 { (eval echo configure:13634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13639 { (eval echo configure:13640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13635 if test -z "$ac_err"; then 13641 if test -z "$ac_err"; then
13636 rm -rf conftest* 13642 rm -rf conftest*
13637 eval "ac_cv_header_$ac_safe=yes" 13643 eval "ac_cv_header_$ac_safe=yes"
13638 else 13644 else
13666 fi 13672 fi
13667 13673
13668 13674
13669 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 13675 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
13670 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 13676 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
13671 echo "configure:13672: checking for dirent.h" >&5 13677 echo "configure:13678: checking for dirent.h" >&5
13672 13678
13673 cat > conftest.$ac_ext <<EOF 13679 cat > conftest.$ac_ext <<EOF
13674 #line 13675 "configure" 13680 #line 13681 "configure"
13675 #include "confdefs.h" 13681 #include "confdefs.h"
13676 #include <dirent.h> 13682 #include <dirent.h>
13677 EOF 13683 EOF
13678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13679 { (eval echo configure:13680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13685 { (eval echo configure:13686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13681 if test -z "$ac_err"; then 13687 if test -z "$ac_err"; then
13682 rm -rf conftest* 13688 rm -rf conftest*
13683 eval "ac_cv_header_$ac_safe=yes" 13689 eval "ac_cv_header_$ac_safe=yes"
13684 else 13690 else
13701 13707
13702 else 13708 else
13703 echo "$ac_t""no" 1>&6 13709 echo "$ac_t""no" 1>&6
13704 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 13710 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
13705 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 13711 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
13706 echo "configure:13707: checking for sys/dir.h" >&5 13712 echo "configure:13713: checking for sys/dir.h" >&5
13707 13713
13708 cat > conftest.$ac_ext <<EOF 13714 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure" 13715 #line 13716 "configure"
13710 #include "confdefs.h" 13716 #include "confdefs.h"
13711 #include <sys/dir.h> 13717 #include <sys/dir.h>
13712 EOF 13718 EOF
13713 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13714 { (eval echo configure:13715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13720 { (eval echo configure:13721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13715 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13721 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13716 if test -z "$ac_err"; then 13722 if test -z "$ac_err"; then
13717 rm -rf conftest* 13723 rm -rf conftest*
13718 eval "ac_cv_header_$ac_safe=yes" 13724 eval "ac_cv_header_$ac_safe=yes"
13719 else 13725 else
13742 fi 13748 fi
13743 13749
13744 13750
13745 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 13751 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
13746 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 13752 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
13747 echo "configure:13748: checking for nlist.h" >&5 13753 echo "configure:13754: checking for nlist.h" >&5
13748 13754
13749 cat > conftest.$ac_ext <<EOF 13755 cat > conftest.$ac_ext <<EOF
13750 #line 13751 "configure" 13756 #line 13757 "configure"
13751 #include "confdefs.h" 13757 #include "confdefs.h"
13752 #include <nlist.h> 13758 #include <nlist.h>
13753 EOF 13759 EOF
13754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13755 { (eval echo configure:13756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13761 { (eval echo configure:13762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13757 if test -z "$ac_err"; then 13763 if test -z "$ac_err"; then
13758 rm -rf conftest* 13764 rm -rf conftest*
13759 eval "ac_cv_header_$ac_safe=yes" 13765 eval "ac_cv_header_$ac_safe=yes"
13760 else 13766 else
13780 fi 13786 fi
13781 13787
13782 13788
13783 13789
13784 echo "checking "for sound support"" 1>&6 13790 echo "checking "for sound support"" 1>&6
13785 echo "configure:13786: checking "for sound support"" >&5 13791 echo "configure:13792: checking "for sound support"" >&5
13786 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 13792 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13787 13793
13788 if test "$with_native_sound" != "no"; then 13794 if test "$with_native_sound" != "no"; then
13789 if test -n "$native_sound_lib"; then 13795 if test -n "$native_sound_lib"; then
13790 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 13796 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13791 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 13797 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13792 echo "configure:13793: checking for multimedia/audio_device.h" >&5 13798 echo "configure:13799: checking for multimedia/audio_device.h" >&5
13793 13799
13794 cat > conftest.$ac_ext <<EOF 13800 cat > conftest.$ac_ext <<EOF
13795 #line 13796 "configure" 13801 #line 13802 "configure"
13796 #include "confdefs.h" 13802 #include "confdefs.h"
13797 #include <multimedia/audio_device.h> 13803 #include <multimedia/audio_device.h>
13798 EOF 13804 EOF
13799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13800 { (eval echo configure:13801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13806 { (eval echo configure:13807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13802 if test -z "$ac_err"; then 13808 if test -z "$ac_err"; then
13803 rm -rf conftest* 13809 rm -rf conftest*
13804 eval "ac_cv_header_$ac_safe=yes" 13810 eval "ac_cv_header_$ac_safe=yes"
13805 else 13811 else
13843 case "$canonical" in 13849 case "$canonical" in
13844 *-sgi-* ) 13850 *-sgi-* )
13845 if test -z "$native_sound_lib"; then 13851 if test -z "$native_sound_lib"; then
13846 13852
13847 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 13853 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13848 echo "configure:13849: checking for ALopenport in -laudio" >&5 13854 echo "configure:13855: checking for ALopenport in -laudio" >&5
13849 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 13855 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13850 13856
13851 xe_check_libs=" -laudio " 13857 xe_check_libs=" -laudio "
13852 cat > conftest.$ac_ext <<EOF 13858 cat > conftest.$ac_ext <<EOF
13853 #line 13854 "configure" 13859 #line 13860 "configure"
13854 #include "confdefs.h" 13860 #include "confdefs.h"
13855 /* Override any gcc2 internal prototype to avoid an error. */ 13861 /* Override any gcc2 internal prototype to avoid an error. */
13856 /* We use char because int might match the return type of a gcc2 13862 /* We use char because int might match the return type of a gcc2
13857 builtin and then its argument prototype would still apply. */ 13863 builtin and then its argument prototype would still apply. */
13858 char ALopenport(); 13864 char ALopenport();
13859 13865
13860 int main() { 13866 int main() {
13861 ALopenport() 13867 ALopenport()
13862 ; return 0; } 13868 ; return 0; }
13863 EOF 13869 EOF
13864 if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13865 rm -rf conftest* 13871 rm -rf conftest*
13866 eval "ac_cv_lib_$ac_lib_var=yes" 13872 eval "ac_cv_lib_$ac_lib_var=yes"
13867 else 13873 else
13868 echo "configure: failed program was:" >&5 13874 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5 13875 cat conftest.$ac_ext >&5
13890 fi ;; 13896 fi ;;
13891 hppa*-hp-hpux* ) 13897 hppa*-hp-hpux* )
13892 if test -z "$native_sound_lib"; then 13898 if test -z "$native_sound_lib"; then
13893 13899
13894 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 13900 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13895 echo "configure:13896: checking for AOpenAudio in -lAlib" >&5 13901 echo "configure:13902: checking for AOpenAudio in -lAlib" >&5
13896 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 13902 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13897 13903
13898 xe_check_libs=" -lAlib " 13904 xe_check_libs=" -lAlib "
13899 cat > conftest.$ac_ext <<EOF 13905 cat > conftest.$ac_ext <<EOF
13900 #line 13901 "configure" 13906 #line 13907 "configure"
13901 #include "confdefs.h" 13907 #include "confdefs.h"
13902 /* Override any gcc2 internal prototype to avoid an error. */ 13908 /* Override any gcc2 internal prototype to avoid an error. */
13903 /* We use char because int might match the return type of a gcc2 13909 /* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */ 13910 builtin and then its argument prototype would still apply. */
13905 char AOpenAudio(); 13911 char AOpenAudio();
13906 13912
13907 int main() { 13913 int main() {
13908 AOpenAudio() 13914 AOpenAudio()
13909 ; return 0; } 13915 ; return 0; }
13910 EOF 13916 EOF
13911 if { (eval echo configure:13912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13917 if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13912 rm -rf conftest* 13918 rm -rf conftest*
13913 eval "ac_cv_lib_$ac_lib_var=yes" 13919 eval "ac_cv_lib_$ac_lib_var=yes"
13914 else 13920 else
13915 echo "configure: failed program was:" >&5 13921 echo "configure: failed program was:" >&5
13916 cat conftest.$ac_ext >&5 13922 cat conftest.$ac_ext >&5
13954 13960
13955 if test -z "$sound_found"; then 13961 if test -z "$sound_found"; then
13956 for dir in "machine" "sys" "linux"; do 13962 for dir in "machine" "sys" "linux"; do
13957 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 13963 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13958 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 13964 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13959 echo "configure:13960: checking for ${dir}/soundcard.h" >&5 13965 echo "configure:13966: checking for ${dir}/soundcard.h" >&5
13960 13966
13961 cat > conftest.$ac_ext <<EOF 13967 cat > conftest.$ac_ext <<EOF
13962 #line 13963 "configure" 13968 #line 13969 "configure"
13963 #include "confdefs.h" 13969 #include "confdefs.h"
13964 #include <${dir}/soundcard.h> 13970 #include <${dir}/soundcard.h>
13965 EOF 13971 EOF
13966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13972 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; } 13973 { (eval echo configure:13974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13969 if test -z "$ac_err"; then 13975 if test -z "$ac_err"; then
13970 rm -rf conftest* 13976 rm -rf conftest*
13971 eval "ac_cv_header_$ac_safe=yes" 13977 eval "ac_cv_header_$ac_safe=yes"
13972 else 13978 else
14016 fi 14022 fi
14017 14023
14018 if test "$with_nas_sound" != "no"; then 14024 if test "$with_nas_sound" != "no"; then
14019 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 14025 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
14020 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 14026 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
14021 echo "configure:14022: checking for audio/audiolib.h" >&5 14027 echo "configure:14028: checking for audio/audiolib.h" >&5
14022 14028
14023 cat > conftest.$ac_ext <<EOF 14029 cat > conftest.$ac_ext <<EOF
14024 #line 14025 "configure" 14030 #line 14031 "configure"
14025 #include "confdefs.h" 14031 #include "confdefs.h"
14026 #include <audio/audiolib.h> 14032 #include <audio/audiolib.h>
14027 EOF 14033 EOF
14028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14029 { (eval echo configure:14030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14035 { (eval echo configure:14036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14031 if test -z "$ac_err"; then 14037 if test -z "$ac_err"; then
14032 rm -rf conftest* 14038 rm -rf conftest*
14033 eval "ac_cv_header_$ac_safe=yes" 14039 eval "ac_cv_header_$ac_safe=yes"
14034 else 14040 else
14042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14043 echo "$ac_t""yes" 1>&6 14049 echo "$ac_t""yes" 1>&6
14044 14050
14045 14051
14046 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 14052 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
14047 echo "configure:14048: checking for AuOpenServer in -laudio" >&5 14053 echo "configure:14054: checking for AuOpenServer in -laudio" >&5
14048 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 14054 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
14049 14055
14050 xe_check_libs=" -laudio " 14056 xe_check_libs=" -laudio "
14051 cat > conftest.$ac_ext <<EOF 14057 cat > conftest.$ac_ext <<EOF
14052 #line 14053 "configure" 14058 #line 14059 "configure"
14053 #include "confdefs.h" 14059 #include "confdefs.h"
14054 /* Override any gcc2 internal prototype to avoid an error. */ 14060 /* Override any gcc2 internal prototype to avoid an error. */
14055 /* We use char because int might match the return type of a gcc2 14061 /* We use char because int might match the return type of a gcc2
14056 builtin and then its argument prototype would still apply. */ 14062 builtin and then its argument prototype would still apply. */
14057 char AuOpenServer(); 14063 char AuOpenServer();
14058 14064
14059 int main() { 14065 int main() {
14060 AuOpenServer() 14066 AuOpenServer()
14061 ; return 0; } 14067 ; return 0; }
14062 EOF 14068 EOF
14063 if { (eval echo configure:14064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14069 if { (eval echo configure:14070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14064 rm -rf conftest* 14070 rm -rf conftest*
14065 eval "ac_cv_lib_$ac_lib_var=yes" 14071 eval "ac_cv_lib_$ac_lib_var=yes"
14066 else 14072 else
14067 echo "configure: failed program was:" >&5 14073 echo "configure: failed program was:" >&5
14068 cat conftest.$ac_ext >&5 14074 cat conftest.$ac_ext >&5
14097 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 14103 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
14098 echo " xemacs will be linked with \"nas.o\"" 14104 echo " xemacs will be linked with \"nas.o\""
14099 fi 14105 fi
14100 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 14106 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
14101 cat > conftest.$ac_ext <<EOF 14107 cat > conftest.$ac_ext <<EOF
14102 #line 14103 "configure" 14108 #line 14109 "configure"
14103 #include "confdefs.h" 14109 #include "confdefs.h"
14104 #include <audio/Xtutil.h> 14110 #include <audio/Xtutil.h>
14105 EOF 14111 EOF
14106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14107 egrep "AuXtErrorJump" >/dev/null 2>&1; then 14113 egrep "AuXtErrorJump" >/dev/null 2>&1; then
14128 14134
14129 if test "$with_esd_sound" != "no"; then 14135 if test "$with_esd_sound" != "no"; then
14130 # Extract the first word of "esd-config", so it can be a program name with args. 14136 # Extract the first word of "esd-config", so it can be a program name with args.
14131 set dummy esd-config; ac_word=$2 14137 set dummy esd-config; ac_word=$2
14132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 14138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14133 echo "configure:14134: checking for $ac_word" >&5 14139 echo "configure:14140: checking for $ac_word" >&5
14134 14140
14135 if test -n "$have_esd_config"; then 14141 if test -n "$have_esd_config"; then
14136 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 14142 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
14137 else 14143 else
14138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 14144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14157 if test "$have_esd_config" = "yes"; then 14163 if test "$have_esd_config" = "yes"; then
14158 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 14164 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
14159 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 14165 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
14160 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 14166 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
14161 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 14167 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
14162 echo "configure:14163: checking for esd_play_stream" >&5 14168 echo "configure:14169: checking for esd_play_stream" >&5
14163 14169
14164 cat > conftest.$ac_ext <<EOF 14170 cat > conftest.$ac_ext <<EOF
14165 #line 14166 "configure" 14171 #line 14172 "configure"
14166 #include "confdefs.h" 14172 #include "confdefs.h"
14167 /* System header to define __stub macros and hopefully few prototypes, 14173 /* System header to define __stub macros and hopefully few prototypes,
14168 which can conflict with char esd_play_stream(); below. */ 14174 which can conflict with char esd_play_stream(); below. */
14169 #include <assert.h> 14175 #include <assert.h>
14170 /* Override any gcc2 internal prototype to avoid an error. */ 14176 /* Override any gcc2 internal prototype to avoid an error. */
14183 esd_play_stream(); 14189 esd_play_stream();
14184 #endif 14190 #endif
14185 14191
14186 ; return 0; } 14192 ; return 0; }
14187 EOF 14193 EOF
14188 if { (eval echo configure:14189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14194 if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14189 rm -rf conftest* 14195 rm -rf conftest*
14190 eval "ac_cv_func_esd_play_stream=yes" 14196 eval "ac_cv_func_esd_play_stream=yes"
14191 else 14197 else
14192 echo "configure: failed program was:" >&5 14198 echo "configure: failed program was:" >&5
14193 cat conftest.$ac_ext >&5 14199 cat conftest.$ac_ext >&5
14234 14240
14235 test -z "$with_tty" && with_tty=yes 14241 test -z "$with_tty" && with_tty=yes
14236 14242
14237 if test "$with_tty" = "yes" ; then 14243 if test "$with_tty" = "yes" ; then
14238 echo "checking for TTY-related features" 1>&6 14244 echo "checking for TTY-related features" 1>&6
14239 echo "configure:14240: checking for TTY-related features" >&5 14245 echo "configure:14246: checking for TTY-related features" >&5
14240 { test "$extra_verbose" = "yes" && cat << \EOF 14246 { test "$extra_verbose" = "yes" && cat << \EOF
14241 Defining HAVE_TTY 14247 Defining HAVE_TTY
14242 EOF 14248 EOF
14243 cat >> confdefs.h <<\EOF 14249 cat >> confdefs.h <<\EOF
14244 #define HAVE_TTY 1 14250 #define HAVE_TTY 1
14247 14253
14248 14254
14249 if test -z "$with_ncurses"; then 14255 if test -z "$with_ncurses"; then
14250 14256
14251 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 14257 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
14252 echo "configure:14253: checking for tgetent in -lncurses" >&5 14258 echo "configure:14259: checking for tgetent in -lncurses" >&5
14253 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 14259 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
14254 14260
14255 xe_check_libs=" -lncurses " 14261 xe_check_libs=" -lncurses "
14256 cat > conftest.$ac_ext <<EOF 14262 cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure" 14263 #line 14264 "configure"
14258 #include "confdefs.h" 14264 #include "confdefs.h"
14259 /* Override any gcc2 internal prototype to avoid an error. */ 14265 /* Override any gcc2 internal prototype to avoid an error. */
14260 /* We use char because int might match the return type of a gcc2 14266 /* We use char because int might match the return type of a gcc2
14261 builtin and then its argument prototype would still apply. */ 14267 builtin and then its argument prototype would still apply. */
14262 char tgetent(); 14268 char tgetent();
14263 14269
14264 int main() { 14270 int main() {
14265 tgetent() 14271 tgetent()
14266 ; return 0; } 14272 ; return 0; }
14267 EOF 14273 EOF
14268 if { (eval echo configure:14269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14274 if { (eval echo configure:14275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14269 rm -rf conftest* 14275 rm -rf conftest*
14270 eval "ac_cv_lib_$ac_lib_var=yes" 14276 eval "ac_cv_lib_$ac_lib_var=yes"
14271 else 14277 else
14272 echo "configure: failed program was:" >&5 14278 echo "configure: failed program was:" >&5
14273 cat conftest.$ac_ext >&5 14279 cat conftest.$ac_ext >&5
14296 EOF 14302 EOF
14297 } 14303 }
14298 14304
14299 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14305 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14300 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14306 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14301 echo "configure:14302: checking for ncurses/curses.h" >&5 14307 echo "configure:14308: checking for ncurses/curses.h" >&5
14302 14308
14303 cat > conftest.$ac_ext <<EOF 14309 cat > conftest.$ac_ext <<EOF
14304 #line 14305 "configure" 14310 #line 14311 "configure"
14305 #include "confdefs.h" 14311 #include "confdefs.h"
14306 #include <ncurses/curses.h> 14312 #include <ncurses/curses.h>
14307 EOF 14313 EOF
14308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14309 { (eval echo configure:14310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14315 { (eval echo configure:14316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14311 if test -z "$ac_err"; then 14317 if test -z "$ac_err"; then
14312 rm -rf conftest* 14318 rm -rf conftest*
14313 eval "ac_cv_header_$ac_safe=yes" 14319 eval "ac_cv_header_$ac_safe=yes"
14314 else 14320 else
14326 echo "$ac_t""no" 1>&6 14332 echo "$ac_t""no" 1>&6
14327 fi 14333 fi
14328 14334
14329 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 14335 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
14330 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 14336 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
14331 echo "configure:14332: checking for ncurses/term.h" >&5 14337 echo "configure:14338: checking for ncurses/term.h" >&5
14332 14338
14333 cat > conftest.$ac_ext <<EOF 14339 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure" 14340 #line 14341 "configure"
14335 #include "confdefs.h" 14341 #include "confdefs.h"
14336 #include <ncurses/term.h> 14342 #include <ncurses/term.h>
14337 EOF 14343 EOF
14338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14339 { (eval echo configure:14340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14345 { (eval echo configure:14346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14341 if test -z "$ac_err"; then 14347 if test -z "$ac_err"; then
14342 rm -rf conftest* 14348 rm -rf conftest*
14343 eval "ac_cv_header_$ac_safe=yes" 14349 eval "ac_cv_header_$ac_safe=yes"
14344 else 14350 else
14364 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 14370 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
14365 save_c_switch_site="$c_switch_site" 14371 save_c_switch_site="$c_switch_site"
14366 c_switch_site="$c_switch_site -I/usr/include/ncurses" 14372 c_switch_site="$c_switch_site -I/usr/include/ncurses"
14367 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14373 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14368 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14374 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14369 echo "configure:14370: checking for ncurses/curses.h" >&5 14375 echo "configure:14376: checking for ncurses/curses.h" >&5
14370 14376
14371 cat > conftest.$ac_ext <<EOF 14377 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure" 14378 #line 14379 "configure"
14373 #include "confdefs.h" 14379 #include "confdefs.h"
14374 #include <ncurses/curses.h> 14380 #include <ncurses/curses.h>
14375 EOF 14381 EOF
14376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14377 { (eval echo configure:14378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14383 { (eval echo configure:14384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14379 if test -z "$ac_err"; then 14385 if test -z "$ac_err"; then
14380 rm -rf conftest* 14386 rm -rf conftest*
14381 eval "ac_cv_header_$ac_safe=yes" 14387 eval "ac_cv_header_$ac_safe=yes"
14382 else 14388 else
14407 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14413 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14408 else 14414 else
14409 for lib in curses termlib termcap; do 14415 for lib in curses termlib termcap; do
14410 14416
14411 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 14417 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
14412 echo "configure:14413: checking for tgetent in -l$lib" >&5 14418 echo "configure:14419: checking for tgetent in -l$lib" >&5
14413 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 14419 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
14414 14420
14415 xe_check_libs=" -l$lib " 14421 xe_check_libs=" -l$lib "
14416 cat > conftest.$ac_ext <<EOF 14422 cat > conftest.$ac_ext <<EOF
14417 #line 14418 "configure" 14423 #line 14424 "configure"
14418 #include "confdefs.h" 14424 #include "confdefs.h"
14419 /* Override any gcc2 internal prototype to avoid an error. */ 14425 /* Override any gcc2 internal prototype to avoid an error. */
14420 /* We use char because int might match the return type of a gcc2 14426 /* We use char because int might match the return type of a gcc2
14421 builtin and then its argument prototype would still apply. */ 14427 builtin and then its argument prototype would still apply. */
14422 char tgetent(); 14428 char tgetent();
14423 14429
14424 int main() { 14430 int main() {
14425 tgetent() 14431 tgetent()
14426 ; return 0; } 14432 ; return 0; }
14427 EOF 14433 EOF
14428 if { (eval echo configure:14429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14434 if { (eval echo configure:14435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14429 rm -rf conftest* 14435 rm -rf conftest*
14430 eval "ac_cv_lib_$ac_lib_var=yes" 14436 eval "ac_cv_lib_$ac_lib_var=yes"
14431 else 14437 else
14432 echo "configure: failed program was:" >&5 14438 echo "configure: failed program was:" >&5
14433 cat conftest.$ac_ext >&5 14439 cat conftest.$ac_ext >&5
14454 if test -n "$libs_termcap"; then 14460 if test -n "$libs_termcap"; then
14455 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14461 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
14456 else 14462 else
14457 14463
14458 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 14464 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
14459 echo "configure:14460: checking for tgetent in -lcurses" >&5 14465 echo "configure:14466: checking for tgetent in -lcurses" >&5
14460 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 14466 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
14461 14467
14462 xe_check_libs=" -lcurses " 14468 xe_check_libs=" -lcurses "
14463 cat > conftest.$ac_ext <<EOF 14469 cat > conftest.$ac_ext <<EOF
14464 #line 14465 "configure" 14470 #line 14471 "configure"
14465 #include "confdefs.h" 14471 #include "confdefs.h"
14466 /* Override any gcc2 internal prototype to avoid an error. */ 14472 /* Override any gcc2 internal prototype to avoid an error. */
14467 /* We use char because int might match the return type of a gcc2 14473 /* We use char because int might match the return type of a gcc2
14468 builtin and then its argument prototype would still apply. */ 14474 builtin and then its argument prototype would still apply. */
14469 char tgetent(); 14475 char tgetent();
14470 14476
14471 int main() { 14477 int main() {
14472 tgetent() 14478 tgetent()
14473 ; return 0; } 14479 ; return 0; }
14474 EOF 14480 EOF
14475 if { (eval echo configure:14476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14481 if { (eval echo configure:14482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14476 rm -rf conftest* 14482 rm -rf conftest*
14477 eval "ac_cv_lib_$ac_lib_var=yes" 14483 eval "ac_cv_lib_$ac_lib_var=yes"
14478 else 14484 else
14479 echo "configure: failed program was:" >&5 14485 echo "configure: failed program was:" >&5
14480 cat conftest.$ac_ext >&5 14486 cat conftest.$ac_ext >&5
14488 echo "$ac_t""yes" 1>&6 14494 echo "$ac_t""yes" 1>&6
14489 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 14495 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
14490 else 14496 else
14491 echo "$ac_t""no" 1>&6 14497 echo "$ac_t""no" 1>&6
14492 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 14498 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
14493 echo "configure:14494: checking for tgetent in -ltermcap" >&5 14499 echo "configure:14500: checking for tgetent in -ltermcap" >&5
14494 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 14500 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
14495 14501
14496 xe_check_libs=" -ltermcap " 14502 xe_check_libs=" -ltermcap "
14497 cat > conftest.$ac_ext <<EOF 14503 cat > conftest.$ac_ext <<EOF
14498 #line 14499 "configure" 14504 #line 14505 "configure"
14499 #include "confdefs.h" 14505 #include "confdefs.h"
14500 /* Override any gcc2 internal prototype to avoid an error. */ 14506 /* Override any gcc2 internal prototype to avoid an error. */
14501 /* We use char because int might match the return type of a gcc2 14507 /* We use char because int might match the return type of a gcc2
14502 builtin and then its argument prototype would still apply. */ 14508 builtin and then its argument prototype would still apply. */
14503 char tgetent(); 14509 char tgetent();
14504 14510
14505 int main() { 14511 int main() {
14506 tgetent() 14512 tgetent()
14507 ; return 0; } 14513 ; return 0; }
14508 EOF 14514 EOF
14509 if { (eval echo configure:14510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14515 if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14510 rm -rf conftest* 14516 rm -rf conftest*
14511 eval "ac_cv_lib_$ac_lib_var=yes" 14517 eval "ac_cv_lib_$ac_lib_var=yes"
14512 else 14518 else
14513 echo "configure: failed program was:" >&5 14519 echo "configure: failed program was:" >&5
14514 cat conftest.$ac_ext >&5 14520 cat conftest.$ac_ext >&5
14552 } 14558 }
14553 14559
14554 14560
14555 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 14561 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
14556 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 14562 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
14557 echo "configure:14558: checking for gpm.h" >&5 14563 echo "configure:14564: checking for gpm.h" >&5
14558 14564
14559 cat > conftest.$ac_ext <<EOF 14565 cat > conftest.$ac_ext <<EOF
14560 #line 14561 "configure" 14566 #line 14567 "configure"
14561 #include "confdefs.h" 14567 #include "confdefs.h"
14562 #include <gpm.h> 14568 #include <gpm.h>
14563 EOF 14569 EOF
14564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14565 { (eval echo configure:14566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14571 { (eval echo configure:14572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14567 if test -z "$ac_err"; then 14573 if test -z "$ac_err"; then
14568 rm -rf conftest* 14574 rm -rf conftest*
14569 eval "ac_cv_header_$ac_safe=yes" 14575 eval "ac_cv_header_$ac_safe=yes"
14570 else 14576 else
14583 with_gpm=no 14589 with_gpm=no
14584 fi 14590 fi
14585 } 14591 }
14586 test -z "$with_gpm" && { 14592 test -z "$with_gpm" && {
14587 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 14593 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
14588 echo "configure:14589: checking for Gpm_Open in -lgpm" >&5 14594 echo "configure:14595: checking for Gpm_Open in -lgpm" >&5
14589 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 14595 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
14590 14596
14591 xe_check_libs=" -lgpm " 14597 xe_check_libs=" -lgpm "
14592 cat > conftest.$ac_ext <<EOF 14598 cat > conftest.$ac_ext <<EOF
14593 #line 14594 "configure" 14599 #line 14600 "configure"
14594 #include "confdefs.h" 14600 #include "confdefs.h"
14595 /* Override any gcc2 internal prototype to avoid an error. */ 14601 /* Override any gcc2 internal prototype to avoid an error. */
14596 /* We use char because int might match the return type of a gcc2 14602 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */ 14603 builtin and then its argument prototype would still apply. */
14598 char Gpm_Open(); 14604 char Gpm_Open();
14599 14605
14600 int main() { 14606 int main() {
14601 Gpm_Open() 14607 Gpm_Open()
14602 ; return 0; } 14608 ; return 0; }
14603 EOF 14609 EOF
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14610 if { (eval echo configure:14611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605 rm -rf conftest* 14611 rm -rf conftest*
14606 eval "ac_cv_lib_$ac_lib_var=yes" 14612 eval "ac_cv_lib_$ac_lib_var=yes"
14607 else 14613 else
14608 echo "configure: failed program was:" >&5 14614 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5 14615 cat conftest.$ac_ext >&5
14642 done 14648 done
14643 fi 14649 fi
14644 14650
14645 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 14651 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
14646 != "no no no" && echo "checking for database support" 1>&6 14652 != "no no no" && echo "checking for database support" 1>&6
14647 echo "configure:14648: checking for database support" >&5 14653 echo "configure:14654: checking for database support" >&5
14648 14654
14649 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 14655 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
14650 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 14656 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
14651 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 14657 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
14652 echo "configure:14653: checking for ndbm.h" >&5 14658 echo "configure:14659: checking for ndbm.h" >&5
14653 14659
14654 cat > conftest.$ac_ext <<EOF 14660 cat > conftest.$ac_ext <<EOF
14655 #line 14656 "configure" 14661 #line 14662 "configure"
14656 #include "confdefs.h" 14662 #include "confdefs.h"
14657 #include <ndbm.h> 14663 #include <ndbm.h>
14658 EOF 14664 EOF
14659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14660 { (eval echo configure:14661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14666 { (eval echo configure:14667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14662 if test -z "$ac_err"; then 14668 if test -z "$ac_err"; then
14663 rm -rf conftest* 14669 rm -rf conftest*
14664 eval "ac_cv_header_$ac_safe=yes" 14670 eval "ac_cv_header_$ac_safe=yes"
14665 else 14671 else
14685 fi 14691 fi
14686 14692
14687 if test "$with_database_gdbm" != "no"; then 14693 if test "$with_database_gdbm" != "no"; then
14688 14694
14689 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 14695 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
14690 echo "configure:14691: checking for dbm_open in -lgdbm" >&5 14696 echo "configure:14697: checking for dbm_open in -lgdbm" >&5
14691 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 14697 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
14692 14698
14693 xe_check_libs=" -lgdbm " 14699 xe_check_libs=" -lgdbm "
14694 cat > conftest.$ac_ext <<EOF 14700 cat > conftest.$ac_ext <<EOF
14695 #line 14696 "configure" 14701 #line 14702 "configure"
14696 #include "confdefs.h" 14702 #include "confdefs.h"
14697 /* Override any gcc2 internal prototype to avoid an error. */ 14703 /* Override any gcc2 internal prototype to avoid an error. */
14698 /* We use char because int might match the return type of a gcc2 14704 /* We use char because int might match the return type of a gcc2
14699 builtin and then its argument prototype would still apply. */ 14705 builtin and then its argument prototype would still apply. */
14700 char dbm_open(); 14706 char dbm_open();
14701 14707
14702 int main() { 14708 int main() {
14703 dbm_open() 14709 dbm_open()
14704 ; return 0; } 14710 ; return 0; }
14705 EOF 14711 EOF
14706 if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14712 if { (eval echo configure:14713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14707 rm -rf conftest* 14713 rm -rf conftest*
14708 eval "ac_cv_lib_$ac_lib_var=yes" 14714 eval "ac_cv_lib_$ac_lib_var=yes"
14709 else 14715 else
14710 echo "configure: failed program was:" >&5 14716 echo "configure: failed program was:" >&5
14711 cat conftest.$ac_ext >&5 14717 cat conftest.$ac_ext >&5
14729 14735
14730 fi 14736 fi
14731 14737
14732 if test "$with_database_dbm" != "no"; then 14738 if test "$with_database_dbm" != "no"; then
14733 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 14739 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
14734 echo "configure:14735: checking for dbm_open" >&5 14740 echo "configure:14741: checking for dbm_open" >&5
14735 14741
14736 cat > conftest.$ac_ext <<EOF 14742 cat > conftest.$ac_ext <<EOF
14737 #line 14738 "configure" 14743 #line 14744 "configure"
14738 #include "confdefs.h" 14744 #include "confdefs.h"
14739 /* System header to define __stub macros and hopefully few prototypes, 14745 /* System header to define __stub macros and hopefully few prototypes,
14740 which can conflict with char dbm_open(); below. */ 14746 which can conflict with char dbm_open(); below. */
14741 #include <assert.h> 14747 #include <assert.h>
14742 /* Override any gcc2 internal prototype to avoid an error. */ 14748 /* Override any gcc2 internal prototype to avoid an error. */
14755 dbm_open(); 14761 dbm_open();
14756 #endif 14762 #endif
14757 14763
14758 ; return 0; } 14764 ; return 0; }
14759 EOF 14765 EOF
14760 if { (eval echo configure:14761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14766 if { (eval echo configure:14767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14761 rm -rf conftest* 14767 rm -rf conftest*
14762 eval "ac_cv_func_dbm_open=yes" 14768 eval "ac_cv_func_dbm_open=yes"
14763 else 14769 else
14764 echo "configure: failed program was:" >&5 14770 echo "configure: failed program was:" >&5
14765 cat conftest.$ac_ext >&5 14771 cat conftest.$ac_ext >&5
14774 else 14780 else
14775 echo "$ac_t""no" 1>&6 14781 echo "$ac_t""no" 1>&6
14776 14782
14777 14783
14778 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 14784 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14779 echo "configure:14780: checking for dbm_open in -ldbm" >&5 14785 echo "configure:14786: checking for dbm_open in -ldbm" >&5
14780 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 14786 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14781 14787
14782 xe_check_libs=" -ldbm " 14788 xe_check_libs=" -ldbm "
14783 cat > conftest.$ac_ext <<EOF 14789 cat > conftest.$ac_ext <<EOF
14784 #line 14785 "configure" 14790 #line 14791 "configure"
14785 #include "confdefs.h" 14791 #include "confdefs.h"
14786 /* Override any gcc2 internal prototype to avoid an error. */ 14792 /* Override any gcc2 internal prototype to avoid an error. */
14787 /* We use char because int might match the return type of a gcc2 14793 /* We use char because int might match the return type of a gcc2
14788 builtin and then its argument prototype would still apply. */ 14794 builtin and then its argument prototype would still apply. */
14789 char dbm_open(); 14795 char dbm_open();
14790 14796
14791 int main() { 14797 int main() {
14792 dbm_open() 14798 dbm_open()
14793 ; return 0; } 14799 ; return 0; }
14794 EOF 14800 EOF
14795 if { (eval echo configure:14796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14796 rm -rf conftest* 14802 rm -rf conftest*
14797 eval "ac_cv_lib_$ac_lib_var=yes" 14803 eval "ac_cv_lib_$ac_lib_var=yes"
14798 else 14804 else
14799 echo "configure: failed program was:" >&5 14805 echo "configure: failed program was:" >&5
14800 cat conftest.$ac_ext >&5 14806 cat conftest.$ac_ext >&5
14831 } 14837 }
14832 14838
14833 14839
14834 if test "$with_database_berkdb" != "no"; then 14840 if test "$with_database_berkdb" != "no"; then
14835 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 14841 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14836 echo "configure:14837: checking for Berkeley db.h" >&5 14842 echo "configure:14843: checking for Berkeley db.h" >&5
14837 for header in "db/db.h" "db.h"; do 14843 for header in "db/db.h" "db.h"; do
14838 cat > conftest.$ac_ext <<EOF 14844 cat > conftest.$ac_ext <<EOF
14839 #line 14840 "configure" 14845 #line 14846 "configure"
14840 #include "confdefs.h" 14846 #include "confdefs.h"
14841 14847
14842 #include <stdlib.h> 14848 #include <stdlib.h>
14843 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 14849 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14844 #ifdef HAVE_INTTYPES_H 14850 #ifdef HAVE_INTTYPES_H
14856 14862
14857 int main() { 14863 int main() {
14858 14864
14859 ; return 0; } 14865 ; return 0; }
14860 EOF 14866 EOF
14861 if { (eval echo configure:14862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14867 if { (eval echo configure:14868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14862 rm -rf conftest* 14868 rm -rf conftest*
14863 db_h_file="$header"; break 14869 db_h_file="$header"; break
14864 else 14870 else
14865 echo "configure: failed program was:" >&5 14871 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5 14872 cat conftest.$ac_ext >&5
14872 else echo "$ac_t""$db_h_file" 1>&6 14878 else echo "$ac_t""$db_h_file" 1>&6
14873 fi 14879 fi
14874 14880
14875 if test "$with_database_berkdb" != "no"; then 14881 if test "$with_database_berkdb" != "no"; then
14876 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 14882 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14877 echo "configure:14878: checking for Berkeley DB version" >&5 14883 echo "configure:14884: checking for Berkeley DB version" >&5
14878 cat > conftest.$ac_ext <<EOF 14884 cat > conftest.$ac_ext <<EOF
14879 #line 14880 "configure" 14885 #line 14886 "configure"
14880 #include "confdefs.h" 14886 #include "confdefs.h"
14881 #include <$db_h_file> 14887 #include <$db_h_file>
14882 #if DB_VERSION_MAJOR > 1 14888 #if DB_VERSION_MAJOR > 1
14883 yes 14889 yes
14884 #endif 14890 #endif
14886 EOF 14892 EOF
14887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14888 egrep "yes" >/dev/null 2>&1; then 14894 egrep "yes" >/dev/null 2>&1; then
14889 rm -rf conftest* 14895 rm -rf conftest*
14890 cat > conftest.$ac_ext <<EOF 14896 cat > conftest.$ac_ext <<EOF
14891 #line 14892 "configure" 14897 #line 14898 "configure"
14892 #include "confdefs.h" 14898 #include "confdefs.h"
14893 #include <$db_h_file> 14899 #include <$db_h_file>
14894 #if DB_VERSION_MAJOR > 2 14900 #if DB_VERSION_MAJOR > 2
14895 yes 14901 yes
14896 #endif 14902 #endif
14913 echo "$ac_t""1" 1>&6; dbfunc=dbopen 14919 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14914 fi 14920 fi
14915 rm -f conftest* 14921 rm -f conftest*
14916 14922
14917 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 14923 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14918 echo "configure:14919: checking for $dbfunc" >&5 14924 echo "configure:14925: checking for $dbfunc" >&5
14919 14925
14920 cat > conftest.$ac_ext <<EOF 14926 cat > conftest.$ac_ext <<EOF
14921 #line 14922 "configure" 14927 #line 14928 "configure"
14922 #include "confdefs.h" 14928 #include "confdefs.h"
14923 /* System header to define __stub macros and hopefully few prototypes, 14929 /* System header to define __stub macros and hopefully few prototypes,
14924 which can conflict with char $dbfunc(); below. */ 14930 which can conflict with char $dbfunc(); below. */
14925 #include <assert.h> 14931 #include <assert.h>
14926 /* Override any gcc2 internal prototype to avoid an error. */ 14932 /* Override any gcc2 internal prototype to avoid an error. */
14939 $dbfunc(); 14945 $dbfunc();
14940 #endif 14946 #endif
14941 14947
14942 ; return 0; } 14948 ; return 0; }
14943 EOF 14949 EOF
14944 if { (eval echo configure:14945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14950 if { (eval echo configure:14951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14945 rm -rf conftest* 14951 rm -rf conftest*
14946 eval "ac_cv_func_$dbfunc=yes" 14952 eval "ac_cv_func_$dbfunc=yes"
14947 else 14953 else
14948 echo "configure: failed program was:" >&5 14954 echo "configure: failed program was:" >&5
14949 cat conftest.$ac_ext >&5 14955 cat conftest.$ac_ext >&5
14958 else 14964 else
14959 echo "$ac_t""no" 1>&6 14965 echo "$ac_t""no" 1>&6
14960 14966
14961 14967
14962 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 14968 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14963 echo "configure:14964: checking for $dbfunc in -ldb" >&5 14969 echo "configure:14970: checking for $dbfunc in -ldb" >&5
14964 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 14970 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14965 14971
14966 xe_check_libs=" -ldb " 14972 xe_check_libs=" -ldb "
14967 cat > conftest.$ac_ext <<EOF 14973 cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure" 14974 #line 14975 "configure"
14969 #include "confdefs.h" 14975 #include "confdefs.h"
14970 /* Override any gcc2 internal prototype to avoid an error. */ 14976 /* Override any gcc2 internal prototype to avoid an error. */
14971 /* We use char because int might match the return type of a gcc2 14977 /* We use char because int might match the return type of a gcc2
14972 builtin and then its argument prototype would still apply. */ 14978 builtin and then its argument prototype would still apply. */
14973 char $dbfunc(); 14979 char $dbfunc();
14974 14980
14975 int main() { 14981 int main() {
14976 $dbfunc() 14982 $dbfunc()
14977 ; return 0; } 14983 ; return 0; }
14978 EOF 14984 EOF
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14985 if { (eval echo configure:14986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14980 rm -rf conftest* 14986 rm -rf conftest*
14981 eval "ac_cv_lib_$ac_lib_var=yes" 14987 eval "ac_cv_lib_$ac_lib_var=yes"
14982 else 14988 else
14983 echo "configure: failed program was:" >&5 14989 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5 14990 cat conftest.$ac_ext >&5
15035 fi 15041 fi
15036 15042
15037 if test "$with_socks" = "yes"; then 15043 if test "$with_socks" = "yes"; then
15038 15044
15039 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 15045 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
15040 echo "configure:15041: checking for SOCKSinit in -lsocks" >&5 15046 echo "configure:15047: checking for SOCKSinit in -lsocks" >&5
15041 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 15047 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
15042 15048
15043 xe_check_libs=" -lsocks " 15049 xe_check_libs=" -lsocks "
15044 cat > conftest.$ac_ext <<EOF 15050 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure" 15051 #line 15052 "configure"
15046 #include "confdefs.h" 15052 #include "confdefs.h"
15047 /* Override any gcc2 internal prototype to avoid an error. */ 15053 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2 15054 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */ 15055 builtin and then its argument prototype would still apply. */
15050 char SOCKSinit(); 15056 char SOCKSinit();
15051 15057
15052 int main() { 15058 int main() {
15053 SOCKSinit() 15059 SOCKSinit()
15054 ; return 0; } 15060 ; return 0; }
15055 EOF 15061 EOF
15056 if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15062 if { (eval echo configure:15063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 rm -rf conftest* 15063 rm -rf conftest*
15058 eval "ac_cv_lib_$ac_lib_var=yes" 15064 eval "ac_cv_lib_$ac_lib_var=yes"
15059 else 15065 else
15060 echo "configure: failed program was:" >&5 15066 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5 15067 cat conftest.$ac_ext >&5
15105 15111
15106 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 15112 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
15107 fi 15113 fi
15108 15114
15109 cat > conftest.$ac_ext <<EOF 15115 cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure" 15116 #line 15117 "configure"
15111 #include "confdefs.h" 15117 #include "confdefs.h"
15112 int main(int c,char *v[]){return 0;} 15118 int main(int c,char *v[]){return 0;}
15113 EOF 15119 EOF
15114 if { (eval echo configure:15115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 15120 if { (eval echo configure:15121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15115 then 15121 then
15116 : 15122 :
15117 else 15123 else
15118 conftest_rc="$?" 15124 conftest_rc="$?"
15119 echo "configure: failed program was:" >&5 15125 echo "configure: failed program was:" >&5