comparison configure @ 2416:515786aa760a

[xemacs-hg @ 2004-12-05 08:06:41 by ben] Support package-prefix and fix mail-locking in configure configure.usage, configure.in, configure: Support --package-prefix and mmdf and pop arguments to --mail-locking. Document in configure.usage.
author ben
date Sun, 05 Dec 2004 08:06:42 +0000
parents df0455455d17
children 97dd9f867cef
comparison
equal deleted inserted replaced
2415:c83d29a262a5 2416:515786aa760a
530 case "$val" in 530 case "$val" in
531 lockf ) val=lockf ;; 531 lockf ) val=lockf ;;
532 flock ) val=flock ;; 532 flock ) val=flock ;;
533 file | dot ) val=file ;; 533 file | dot ) val=file ;;
534 locking ) val=locking ;; 534 locking ) val=locking ;;
535 mmdf ) val=mmdf ;;
536 pop ) val=pop ;;
535 * ) (echo "$progname: Usage error:" 537 * ) (echo "$progname: Usage error:"
536 echo " " "The \`--$optname' option must have one of these values: 538 echo " " "The \`--$optname' option must have one of these values:
537 \`lockf', \`flock', \`file', \`locking', or \`mmdf'." 539 \`lockf', \`flock', \`file', \`dot', \`locking', \`mmdf', or \`pop'."
538 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 540 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
539 esac 541 esac
540 eval "$opt=\"$val\"" 542 eval "$opt=\"$val\""
541 ;; 543 ;;
542 544
616 done 618 done
617 ;; 619 ;;
618 620
619 prefix | exec_prefix | bindir | datadir | statedir | libdir | \ 621 prefix | exec_prefix | bindir | datadir | statedir | libdir | \
620 mandir | infodir | infopath | lispdir | etcdir | \ 622 mandir | infodir | infopath | lispdir | etcdir | \
621 archlibdir | docdir | package_path | moduledir ) 623 archlibdir | docdir | package_path | package_prefix | moduledir )
622 if test "$valomitted" = "yes"; then 624 if test "$valomitted" = "yes"; then
623 if test "$#" = 0; then 625 if test "$#" = 0; then
624 (echo "$progname: Usage error:" 626 (echo "$progname: Usage error:"
625 echo " " "The \`--$optname' option requires a value." 627 echo " " "The \`--$optname' option requires a value."
626 echo " Use \`$progname --help' to show usage.") >&2 && exit 1; 628 echo " Use \`$progname --help' to show usage.") >&2 && exit 1;
681 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF 683 infopath ) { test "$extra_verbose" = "yes" && cat << \EOF
682 Defining INFOPATH_USER_DEFINED 684 Defining INFOPATH_USER_DEFINED
683 EOF 685 EOF
684 cat >> confdefs.h <<\EOF 686 cat >> confdefs.h <<\EOF
685 #define INFOPATH_USER_DEFINED 1 687 #define INFOPATH_USER_DEFINED 1
688 EOF
689 }
690 ;;
691 package_prefix ) { test "$extra_verbose" = "yes" && cat << \EOF
692 Defining PACKAGE_PATH_USER_DEFINED
693 EOF
694 cat >> confdefs.h <<\EOF
695 #define PACKAGE_PATH_USER_DEFINED 1
686 EOF 696 EOF
687 } 697 }
688 ;; 698 ;;
689 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF 699 package_path ) { test "$extra_verbose" = "yes" && cat << \EOF
690 Defining PACKAGE_PATH_USER_DEFINED 700 Defining PACKAGE_PATH_USER_DEFINED
847 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 857 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
848 fi 858 fi
849 fi 859 fi
850 860
851 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 861 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
852 echo "configure:853: checking whether ln -s works" >&5 862 echo "configure:863: checking whether ln -s works" >&5
853 863
854 rm -f conftestdata 864 rm -f conftestdata
855 if ln -s X conftestdata 2>/dev/null 865 if ln -s X conftestdata 2>/dev/null
856 then 866 then
857 rm -f conftestdata 867 rm -f conftestdata
1133 } 1143 }
1134 1144
1135 1145
1136 1146
1137 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1147 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1138 echo "configure:1139: checking "host system type"" >&5 1148 echo "configure:1149: checking "host system type"" >&5
1139 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1149 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1140 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1150 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1141 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1151 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1142 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1152 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1143 echo "$ac_t""$configuration" 1>&6 1153 echo "$ac_t""$configuration" 1>&6
1671 xe_save_CFLAGS="$CFLAGS" 1681 xe_save_CFLAGS="$CFLAGS"
1672 1682
1673 # Extract the first word of "gcc", so it can be a program name with args. 1683 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2 1684 set dummy gcc; ac_word=$2
1675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1685 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1676 echo "configure:1677: checking for $ac_word" >&5 1686 echo "configure:1687: checking for $ac_word" >&5
1677 1687
1678 if test -n "$CC"; then 1688 if test -n "$CC"; then
1679 ac_cv_prog_CC="$CC" # Let the user override the test. 1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1680 else 1690 else
1681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1698 1708
1699 if test -z "$CC"; then 1709 if test -z "$CC"; then
1700 # Extract the first word of "cc", so it can be a program name with args. 1710 # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2 1711 set dummy cc; ac_word=$2
1702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1712 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1703 echo "configure:1704: checking for $ac_word" >&5 1713 echo "configure:1714: checking for $ac_word" >&5
1704 1714
1705 if test -n "$CC"; then 1715 if test -n "$CC"; then
1706 ac_cv_prog_CC="$CC" # Let the user override the test. 1716 ac_cv_prog_CC="$CC" # Let the user override the test.
1707 else 1717 else
1708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1746 case "`uname -s`" in 1756 case "`uname -s`" in
1747 *win32* | *WIN32*) 1757 *win32* | *WIN32*)
1748 # Extract the first word of "cl", so it can be a program name with args. 1758 # Extract the first word of "cl", so it can be a program name with args.
1749 set dummy cl; ac_word=$2 1759 set dummy cl; ac_word=$2
1750 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1751 echo "configure:1752: checking for $ac_word" >&5 1761 echo "configure:1762: checking for $ac_word" >&5
1752 1762
1753 if test -n "$CC"; then 1763 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test. 1764 ac_cv_prog_CC="$CC" # Let the user override the test.
1755 else 1765 else
1756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1775 fi 1785 fi
1776 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1786 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1777 fi 1787 fi
1778 1788
1779 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1789 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1790 echo "configure:1791: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1781 1791
1782 ac_ext=c 1792 ac_ext=c
1783 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1793 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1784 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1794 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1785 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' 1795 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'
1788 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1798 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1789 cross_compiling=no 1799 cross_compiling=no
1790 1800
1791 cat > conftest.$ac_ext << EOF 1801 cat > conftest.$ac_ext << EOF
1792 1802
1793 #line 1794 "configure" 1803 #line 1804 "configure"
1794 #include "confdefs.h" 1804 #include "confdefs.h"
1795 1805
1796 main(){return(0);} 1806 main(){return(0);}
1797 EOF 1807 EOF
1798 if { (eval echo configure:1799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1808 if { (eval echo configure:1809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1799 ac_cv_prog_cc_works=yes 1809 ac_cv_prog_cc_works=yes
1800 # If we can't run a trivial program, we are probably using a cross compiler. 1810 # If we can't run a trivial program, we are probably using a cross compiler.
1801 if (./conftest; exit) 2>/dev/null; then 1811 if (./conftest; exit) 2>/dev/null; then
1802 ac_cv_prog_cc_cross=no 1812 ac_cv_prog_cc_cross=no
1803 else 1813 else
1821 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1831 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1822 if test $ac_cv_prog_cc_works = no; then 1832 if test $ac_cv_prog_cc_works = no; then
1823 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1833 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1824 fi 1834 fi
1825 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1835 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1826 echo "configure:1827: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1836 echo "configure:1837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1827 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1837 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1828 cross_compiling=$ac_cv_prog_cc_cross 1838 cross_compiling=$ac_cv_prog_cc_cross
1829 1839
1830 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1840 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1831 echo "configure:1832: checking whether we are using GNU C" >&5 1841 echo "configure:1842: checking whether we are using GNU C" >&5
1832 1842
1833 cat > conftest.c <<EOF 1843 cat > conftest.c <<EOF
1834 #ifdef __GNUC__ 1844 #ifdef __GNUC__
1835 yes; 1845 yes;
1836 #endif 1846 #endif
1837 EOF 1847 EOF
1838 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1839 ac_cv_prog_gcc=yes 1849 ac_cv_prog_gcc=yes
1840 else 1850 else
1841 ac_cv_prog_gcc=no 1851 ac_cv_prog_gcc=no
1842 fi 1852 fi
1843 1853
1851 1861
1852 ac_test_CFLAGS="${CFLAGS+set}" 1862 ac_test_CFLAGS="${CFLAGS+set}"
1853 ac_save_CFLAGS="$CFLAGS" 1863 ac_save_CFLAGS="$CFLAGS"
1854 CFLAGS= 1864 CFLAGS=
1855 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1865 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1856 echo "configure:1857: checking whether ${CC-cc} accepts -g" >&5 1866 echo "configure:1867: checking whether ${CC-cc} accepts -g" >&5
1857 1867
1858 echo 'void f(){}' > conftest.c 1868 echo 'void f(){}' > conftest.c
1859 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1869 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1860 ac_cv_prog_cc_g=yes 1870 ac_cv_prog_cc_g=yes
1861 else 1871 else
1884 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1894 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1885 CC=${NON_GNU_CC-cc} 1895 CC=${NON_GNU_CC-cc}
1886 # Extract the first word of "gcc", so it can be a program name with args. 1896 # Extract the first word of "gcc", so it can be a program name with args.
1887 set dummy gcc; ac_word=$2 1897 set dummy gcc; ac_word=$2
1888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1898 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1889 echo "configure:1890: checking for $ac_word" >&5 1899 echo "configure:1900: checking for $ac_word" >&5
1890 1900
1891 if test -n "$CC"; then 1901 if test -n "$CC"; then
1892 ac_cv_prog_CC="$CC" # Let the user override the test. 1902 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 else 1903 else
1894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1904 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1911 1921
1912 if test -z "$CC"; then 1922 if test -z "$CC"; then
1913 # Extract the first word of "cc", so it can be a program name with args. 1923 # Extract the first word of "cc", so it can be a program name with args.
1914 set dummy cc; ac_word=$2 1924 set dummy cc; ac_word=$2
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_word" >&5 1926 echo "configure:1927: checking for $ac_word" >&5
1917 1927
1918 if test -n "$CC"; then 1928 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test. 1929 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 else 1930 else
1921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1959 case "`uname -s`" in 1969 case "`uname -s`" in
1960 *win32* | *WIN32*) 1970 *win32* | *WIN32*)
1961 # Extract the first word of "cl", so it can be a program name with args. 1971 # Extract the first word of "cl", so it can be a program name with args.
1962 set dummy cl; ac_word=$2 1972 set dummy cl; ac_word=$2
1963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1964 echo "configure:1965: checking for $ac_word" >&5 1974 echo "configure:1975: checking for $ac_word" >&5
1965 1975
1966 if test -n "$CC"; then 1976 if test -n "$CC"; then
1967 ac_cv_prog_CC="$CC" # Let the user override the test. 1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else 1978 else
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1988 fi 1998 fi
1989 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1999 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1990 fi 2000 fi
1991 2001
1992 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2002 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1993 echo "configure:1994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2003 echo "configure:2004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1994 2004
1995 ac_ext=c 2005 ac_ext=c
1996 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2006 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1997 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2007 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1998 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' 2008 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'
2001 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2011 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2002 cross_compiling=no 2012 cross_compiling=no
2003 2013
2004 cat > conftest.$ac_ext << EOF 2014 cat > conftest.$ac_ext << EOF
2005 2015
2006 #line 2007 "configure" 2016 #line 2017 "configure"
2007 #include "confdefs.h" 2017 #include "confdefs.h"
2008 2018
2009 main(){return(0);} 2019 main(){return(0);}
2010 EOF 2020 EOF
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 ac_cv_prog_cc_works=yes 2022 ac_cv_prog_cc_works=yes
2013 # If we can't run a trivial program, we are probably using a cross compiler. 2023 # If we can't run a trivial program, we are probably using a cross compiler.
2014 if (./conftest; exit) 2>/dev/null; then 2024 if (./conftest; exit) 2>/dev/null; then
2015 ac_cv_prog_cc_cross=no 2025 ac_cv_prog_cc_cross=no
2016 else 2026 else
2034 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2044 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2035 if test $ac_cv_prog_cc_works = no; then 2045 if test $ac_cv_prog_cc_works = no; then
2036 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2046 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2037 fi 2047 fi
2038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2048 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2049 echo "configure:2050: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2040 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2050 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2041 cross_compiling=$ac_cv_prog_cc_cross 2051 cross_compiling=$ac_cv_prog_cc_cross
2042 2052
2043 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2053 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2044 echo "configure:2045: checking whether we are using GNU C" >&5 2054 echo "configure:2055: checking whether we are using GNU C" >&5
2045 2055
2046 cat > conftest.c <<EOF 2056 cat > conftest.c <<EOF
2047 #ifdef __GNUC__ 2057 #ifdef __GNUC__
2048 yes; 2058 yes;
2049 #endif 2059 #endif
2050 EOF 2060 EOF
2051 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2061 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2052 ac_cv_prog_gcc=yes 2062 ac_cv_prog_gcc=yes
2053 else 2063 else
2054 ac_cv_prog_gcc=no 2064 ac_cv_prog_gcc=no
2055 fi 2065 fi
2056 2066
2064 2074
2065 ac_test_CFLAGS="${CFLAGS+set}" 2075 ac_test_CFLAGS="${CFLAGS+set}"
2066 ac_save_CFLAGS="$CFLAGS" 2076 ac_save_CFLAGS="$CFLAGS"
2067 CFLAGS= 2077 CFLAGS=
2068 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2078 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2069 echo "configure:2070: checking whether ${CC-cc} accepts -g" >&5 2079 echo "configure:2080: checking whether ${CC-cc} accepts -g" >&5
2070 2080
2071 echo 'void f(){}' > conftest.c 2081 echo 'void f(){}' > conftest.c
2072 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2082 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2073 ac_cv_prog_cc_g=yes 2083 ac_cv_prog_cc_g=yes
2074 else 2084 else
2097 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2107 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2098 CC=gcc 2108 CC=gcc
2099 # Extract the first word of "gcc", so it can be a program name with args. 2109 # Extract the first word of "gcc", so it can be a program name with args.
2100 set dummy gcc; ac_word=$2 2110 set dummy gcc; ac_word=$2
2101 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2102 echo "configure:2103: checking for $ac_word" >&5 2112 echo "configure:2113: checking for $ac_word" >&5
2103 2113
2104 if test -n "$CC"; then 2114 if test -n "$CC"; then
2105 ac_cv_prog_CC="$CC" # Let the user override the test. 2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2106 else 2116 else
2107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2124 2134
2125 if test -z "$CC"; then 2135 if test -z "$CC"; then
2126 # Extract the first word of "cc", so it can be a program name with args. 2136 # Extract the first word of "cc", so it can be a program name with args.
2127 set dummy cc; ac_word=$2 2137 set dummy cc; ac_word=$2
2128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_word" >&5 2139 echo "configure:2140: checking for $ac_word" >&5
2130 2140
2131 if test -n "$CC"; then 2141 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test. 2142 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 else 2143 else
2134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2172 case "`uname -s`" in 2182 case "`uname -s`" in
2173 *win32* | *WIN32*) 2183 *win32* | *WIN32*)
2174 # Extract the first word of "cl", so it can be a program name with args. 2184 # Extract the first word of "cl", so it can be a program name with args.
2175 set dummy cl; ac_word=$2 2185 set dummy cl; ac_word=$2
2176 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2177 echo "configure:2178: checking for $ac_word" >&5 2187 echo "configure:2188: checking for $ac_word" >&5
2178 2188
2179 if test -n "$CC"; then 2189 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test. 2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else 2191 else
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2201 fi 2211 fi
2202 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2212 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2203 fi 2213 fi
2204 2214
2205 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2215 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2206 echo "configure:2207: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2216 echo "configure:2217: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2207 2217
2208 ac_ext=c 2218 ac_ext=c
2209 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2219 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2210 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2220 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2211 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' 2221 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'
2214 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2224 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2215 cross_compiling=no 2225 cross_compiling=no
2216 2226
2217 cat > conftest.$ac_ext << EOF 2227 cat > conftest.$ac_ext << EOF
2218 2228
2219 #line 2220 "configure" 2229 #line 2230 "configure"
2220 #include "confdefs.h" 2230 #include "confdefs.h"
2221 2231
2222 main(){return(0);} 2232 main(){return(0);}
2223 EOF 2233 EOF
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2225 ac_cv_prog_cc_works=yes 2235 ac_cv_prog_cc_works=yes
2226 # If we can't run a trivial program, we are probably using a cross compiler. 2236 # If we can't run a trivial program, we are probably using a cross compiler.
2227 if (./conftest; exit) 2>/dev/null; then 2237 if (./conftest; exit) 2>/dev/null; then
2228 ac_cv_prog_cc_cross=no 2238 ac_cv_prog_cc_cross=no
2229 else 2239 else
2247 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2257 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2248 if test $ac_cv_prog_cc_works = no; then 2258 if test $ac_cv_prog_cc_works = no; then
2249 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2259 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2250 fi 2260 fi
2251 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2261 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2252 echo "configure:2253: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2262 echo "configure:2263: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2253 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2263 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2254 cross_compiling=$ac_cv_prog_cc_cross 2264 cross_compiling=$ac_cv_prog_cc_cross
2255 2265
2256 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2266 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2257 echo "configure:2258: checking whether we are using GNU C" >&5 2267 echo "configure:2268: checking whether we are using GNU C" >&5
2258 2268
2259 cat > conftest.c <<EOF 2269 cat > conftest.c <<EOF
2260 #ifdef __GNUC__ 2270 #ifdef __GNUC__
2261 yes; 2271 yes;
2262 #endif 2272 #endif
2263 EOF 2273 EOF
2264 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2274 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2265 ac_cv_prog_gcc=yes 2275 ac_cv_prog_gcc=yes
2266 else 2276 else
2267 ac_cv_prog_gcc=no 2277 ac_cv_prog_gcc=no
2268 fi 2278 fi
2269 2279
2277 2287
2278 ac_test_CFLAGS="${CFLAGS+set}" 2288 ac_test_CFLAGS="${CFLAGS+set}"
2279 ac_save_CFLAGS="$CFLAGS" 2289 ac_save_CFLAGS="$CFLAGS"
2280 CFLAGS= 2290 CFLAGS=
2281 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2291 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2282 echo "configure:2283: checking whether ${CC-cc} accepts -g" >&5 2292 echo "configure:2293: checking whether ${CC-cc} accepts -g" >&5
2283 2293
2284 echo 'void f(){}' > conftest.c 2294 echo 'void f(){}' > conftest.c
2285 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2295 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2286 ac_cv_prog_cc_g=yes 2296 ac_cv_prog_cc_g=yes
2287 else 2297 else
2310 fi 2320 fi
2311 CFLAGS="$xe_save_CFLAGS" 2321 CFLAGS="$xe_save_CFLAGS"
2312 2322
2313 if test "$GCC" = "yes"; then 2323 if test "$GCC" = "yes"; then
2314 cat > conftest.$ac_ext <<EOF 2324 cat > conftest.$ac_ext <<EOF
2315 #line 2316 "configure" 2325 #line 2326 "configure"
2316 #include "confdefs.h" 2326 #include "confdefs.h"
2317 int main () { 2327 int main () {
2318 #if __GNUC__ >= 3 2328 #if __GNUC__ >= 3
2319 return 11; 2329 return 11;
2320 #else 2330 #else
2321 return 0; 2331 return 0;
2322 #endif 2332 #endif
2323 } 2333 }
2324 EOF 2334 EOF
2325 if { (eval echo configure:2326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2335 if { (eval echo configure:2336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2326 then 2336 then
2327 : 2337 :
2328 else 2338 else
2329 conftest_rc="$?" 2339 conftest_rc="$?"
2330 echo "configure: failed program was:" >&5 2340 echo "configure: failed program was:" >&5
2346 test -n "$CPP" -a -d "$CPP" && CPP= 2356 test -n "$CPP" -a -d "$CPP" && CPP=
2347 2357
2348 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2358 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2349 2359
2350 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2360 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2351 echo "configure:2352: checking how to run the C preprocessor" >&5 2361 echo "configure:2362: checking how to run the C preprocessor" >&5
2352 # On Suns, sometimes $CPP names a directory. 2362 # On Suns, sometimes $CPP names a directory.
2353 if test -n "$CPP" && test -d "$CPP"; then 2363 if test -n "$CPP" && test -d "$CPP"; then
2354 CPP= 2364 CPP=
2355 fi 2365 fi
2356 if test -z "$CPP"; then 2366 if test -z "$CPP"; then
2359 # substituted into the Makefile and "${CC-cc}" will confuse make. 2369 # substituted into the Makefile and "${CC-cc}" will confuse make.
2360 CPP="${CC-cc} -E" 2370 CPP="${CC-cc} -E"
2361 # On the NeXT, cc -E runs the code through the compiler's parser, 2371 # On the NeXT, cc -E runs the code through the compiler's parser,
2362 # not just through cpp. 2372 # not just through cpp.
2363 cat > conftest.$ac_ext <<EOF 2373 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure" 2374 #line 2375 "configure"
2365 #include "confdefs.h" 2375 #include "confdefs.h"
2366 #include <assert.h> 2376 #include <assert.h>
2367 Syntax Error 2377 Syntax Error
2368 EOF 2378 EOF
2369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2370 { (eval echo configure:2371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2380 { (eval echo configure:2381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2372 if test -z "$ac_err"; then 2382 if test -z "$ac_err"; then
2373 : 2383 :
2374 else 2384 else
2375 echo "$ac_err" >&5 2385 echo "$ac_err" >&5
2376 echo "configure: failed program was:" >&5 2386 echo "configure: failed program was:" >&5
2377 cat conftest.$ac_ext >&5 2387 cat conftest.$ac_ext >&5
2378 rm -rf conftest* 2388 rm -rf conftest*
2379 CPP="${CC-cc} -E -traditional-cpp" 2389 CPP="${CC-cc} -E -traditional-cpp"
2380 cat > conftest.$ac_ext <<EOF 2390 cat > conftest.$ac_ext <<EOF
2381 #line 2382 "configure" 2391 #line 2392 "configure"
2382 #include "confdefs.h" 2392 #include "confdefs.h"
2383 #include <assert.h> 2393 #include <assert.h>
2384 Syntax Error 2394 Syntax Error
2385 EOF 2395 EOF
2386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2387 { (eval echo configure:2388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2397 { (eval echo configure:2398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2389 if test -z "$ac_err"; then 2399 if test -z "$ac_err"; then
2390 : 2400 :
2391 else 2401 else
2392 echo "$ac_err" >&5 2402 echo "$ac_err" >&5
2393 echo "configure: failed program was:" >&5 2403 echo "configure: failed program was:" >&5
2394 cat conftest.$ac_ext >&5 2404 cat conftest.$ac_ext >&5
2395 rm -rf conftest* 2405 rm -rf conftest*
2396 CPP="${CC-cc} -nologo -E" 2406 CPP="${CC-cc} -nologo -E"
2397 cat > conftest.$ac_ext <<EOF 2407 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure" 2408 #line 2409 "configure"
2399 #include "confdefs.h" 2409 #include "confdefs.h"
2400 #include <assert.h> 2410 #include <assert.h>
2401 Syntax Error 2411 Syntax Error
2402 EOF 2412 EOF
2403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2414 { (eval echo configure:2415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then 2416 if test -z "$ac_err"; then
2407 : 2417 :
2408 else 2418 else
2409 echo "$ac_err" >&5 2419 echo "$ac_err" >&5
2425 echo "$ac_t""$CPP" 1>&6 2435 echo "$ac_t""$CPP" 1>&6
2426 2436
2427 2437
2428 2438
2429 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2439 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2430 echo "configure:2431: checking for AIX" >&5 2440 echo "configure:2441: checking for AIX" >&5
2431 cat > conftest.$ac_ext <<EOF 2441 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure" 2442 #line 2443 "configure"
2433 #include "confdefs.h" 2443 #include "confdefs.h"
2434 #ifdef _AIX 2444 #ifdef _AIX
2435 yes 2445 yes
2436 #endif 2446 #endif
2437 2447
2454 rm -f conftest* 2464 rm -f conftest*
2455 2465
2456 2466
2457 2467
2458 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2468 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2459 echo "configure:2460: checking for GNU libc" >&5 2469 echo "configure:2470: checking for GNU libc" >&5
2460 cat > conftest.$ac_ext <<EOF 2470 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure" 2471 #line 2472 "configure"
2462 #include "confdefs.h" 2472 #include "confdefs.h"
2463 #include <features.h> 2473 #include <features.h>
2464 int main() { 2474 int main() {
2465 2475
2466 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2476 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2468 ******* ======= ******** &&&&&&&& 2478 ******* ======= ******** &&&&&&&&
2469 #endif 2479 #endif
2470 2480
2471 ; return 0; } 2481 ; return 0; }
2472 EOF 2482 EOF
2473 if { (eval echo configure:2474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2483 if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2474 rm -rf conftest* 2484 rm -rf conftest*
2475 have_glibc=yes 2485 have_glibc=yes
2476 else 2486 else
2477 echo "configure: failed program was:" >&5 2487 echo "configure: failed program was:" >&5
2478 cat conftest.$ac_ext >&5 2488 cat conftest.$ac_ext >&5
2563 2573
2564 ;; 2574 ;;
2565 esac 2575 esac
2566 2576
2567 cat > conftest.$ac_ext <<EOF 2577 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure" 2578 #line 2579 "configure"
2569 #include "confdefs.h" 2579 #include "confdefs.h"
2570 int main () { 2580 int main () {
2571 #if defined __SUNPRO_C 2581 #if defined __SUNPRO_C
2572 return 11; 2582 return 11;
2573 #elif defined __DECC 2583 #elif defined __DECC
2579 #else 2589 #else
2580 return 0; 2590 return 0;
2581 #endif 2591 #endif
2582 } 2592 }
2583 EOF 2593 EOF
2584 if { (eval echo configure:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2585 then 2595 then
2586 : 2596 :
2587 else 2597 else
2588 conftest_rc="$?" 2598 conftest_rc="$?"
2589 echo "configure: failed program was:" >&5 2599 echo "configure: failed program was:" >&5
2813 unexec= 2823 unexec=
2814 lib_gcc= 2824 lib_gcc=
2815 fi 2825 fi
2816 2826
2817 test "$extra_verbose" = "yes" && \ 2827 test "$extra_verbose" = "yes" && \
2818 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf; do eval "echo \"$var = '\$$var'\""; done && echo "" 2828 for var in libs_machine libs_system libs_termcap libs_standard objects_machine objects_system c_switch_machine c_switch_system ld_switch_machine ld_switch_system unexec ld_switch_shared ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf mail_using_locking; do eval "echo \"$var = '\$$var'\""; done && echo ""
2819 2829
2820 case "$opsys" in mingw* | cygwin*) 2830 case "$opsys" in mingw* | cygwin*)
2821 cygwin_include=`eval "gcc -print-file-name=libc.a"` ; 2831 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2822 cygwin_include=`eval "dirname $cygwin_include"` ; 2832 cygwin_include=`eval "dirname $cygwin_include"` ;
2823 cygwin_include="-I$cygwin_include/../include" ; 2833 cygwin_include="-I$cygwin_include/../include" ;
2833 2843
2834 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2844 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2835 2845
2836 if test "$__USLC__" = yes; then 2846 if test "$__USLC__" = yes; then
2837 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2847 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2838 echo "configure:2839: checking for whether the -Kalloca compiler flag is needed" >&5 2848 echo "configure:2849: checking for whether the -Kalloca compiler flag is needed" >&5
2839 need_kalloca=no 2849 need_kalloca=no
2840 cat > conftest.$ac_ext <<EOF 2850 cat > conftest.$ac_ext <<EOF
2841 #line 2842 "configure" 2851 #line 2852 "configure"
2842 #include "confdefs.h" 2852 #include "confdefs.h"
2843 2853
2844 int main() { 2854 int main() {
2845 void *x = alloca(4); 2855 void *x = alloca(4);
2846 ; return 0; } 2856 ; return 0; }
2847 EOF 2857 EOF
2848 if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2858 if { (eval echo configure:2859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2849 rm -rf conftest* 2859 rm -rf conftest*
2850 : 2860 :
2851 else 2861 else
2852 echo "configure: failed program was:" >&5 2862 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5 2863 cat conftest.$ac_ext >&5
2854 rm -rf conftest* 2864 rm -rf conftest*
2855 2865
2856 xe_save_c_switch_system="$c_switch_system" 2866 xe_save_c_switch_system="$c_switch_system"
2857 c_switch_system="$c_switch_system -Kalloca" 2867 c_switch_system="$c_switch_system -Kalloca"
2858 cat > conftest.$ac_ext <<EOF 2868 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure" 2869 #line 2870 "configure"
2860 #include "confdefs.h" 2870 #include "confdefs.h"
2861 2871
2862 int main() { 2872 int main() {
2863 void *x = alloca(4); 2873 void *x = alloca(4);
2864 ; return 0; } 2874 ; return 0; }
2865 EOF 2875 EOF
2866 if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2876 if { (eval echo configure:2877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2867 rm -rf conftest* 2877 rm -rf conftest*
2868 need_kalloca=yes 2878 need_kalloca=yes
2869 else 2879 else
2870 echo "configure: failed program was:" >&5 2880 echo "configure: failed program was:" >&5
2871 cat conftest.$ac_ext >&5 2881 cat conftest.$ac_ext >&5
2890 fi 2900 fi
2891 fi 2901 fi
2892 2902
2893 2903
2894 echo $ac_n "checking for preferred CFLAGS""... $ac_c" 1>&6 2904 echo $ac_n "checking for preferred CFLAGS""... $ac_c" 1>&6
2895 echo "configure:2896: checking for preferred CFLAGS" >&5 2905 echo "configure:2906: checking for preferred CFLAGS" >&5
2896 2906
2897 if test "$cflags_specified" = "no"; then 2907 if test "$cflags_specified" = "no"; then
2898 if test "$GCC" = "yes"; then 2908 if test "$GCC" = "yes"; then
2899 CFLAGS="-g -O3" 2909 CFLAGS="-g -O3"
2900 elif test "$__SUNPRO_C" = "yes"; then 2910 elif test "$__SUNPRO_C" = "yes"; then
2913 fi 2923 fi
2914 echo "$ac_t""${CFLAGS}" 1>&6 2924 echo "$ac_t""${CFLAGS}" 1>&6
2915 2925
2916 2926
2917 echo $ac_n "checking for preferred warning flags for XEMACS_CC""... $ac_c" 1>&6 2927 echo $ac_n "checking for preferred warning flags for XEMACS_CC""... $ac_c" 1>&6
2918 echo "configure:2919: checking for preferred warning flags for XEMACS_CC" >&5 2928 echo "configure:2929: checking for preferred warning flags for XEMACS_CC" >&5
2919 2929
2920 xe_cflags_warning="" 2930 xe_cflags_warning=""
2921 2931
2922 if test "$cflags_warning_specified" = "no"; then 2932 if test "$cflags_warning_specified" = "no"; then
2923 if test "$__SUNPRO_C" = "yes"; then 2933 if test "$__SUNPRO_C" = "yes"; then
2946 fi 2956 fi
2947 test -z "$xe_cflags_warning" && xe_cflags_warning="$cflags_warning" 2957 test -z "$xe_cflags_warning" && xe_cflags_warning="$cflags_warning"
2948 echo "$ac_t""${xe_cflags_warning}" 1>&6 2958 echo "$ac_t""${xe_cflags_warning}" 1>&6
2949 2959
2950 echo $ac_n "checking for preferred warning flags for CC""... $ac_c" 1>&6 2960 echo $ac_n "checking for preferred warning flags for CC""... $ac_c" 1>&6
2951 echo "configure:2952: checking for preferred warning flags for CC" >&5 2961 echo "configure:2962: checking for preferred warning flags for CC" >&5
2952 echo "$ac_t""${cflags_warning}" 1>&6 2962 echo "$ac_t""${cflags_warning}" 1>&6
2953 2963
2954 XE_CFLAGS="$xe_cflags_warning $CFLAGS" 2964 XE_CFLAGS="$xe_cflags_warning $CFLAGS"
2955 CFLAGS="$cflags_warning $CFLAGS" 2965 CFLAGS="$cflags_warning $CFLAGS"
2956 2966
2957 if test "$GCC" = "yes"; then 2967 if test "$GCC" = "yes"; then
2958 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2968 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2959 echo "configure:2960: checking for buggy gcc versions" >&5 2969 echo "configure:2970: checking for buggy gcc versions" >&5
2960 GCC_VERSION=`$CC --version` 2970 GCC_VERSION=`$CC --version`
2961 case `uname -s`:`uname -m`:$GCC_VERSION in 2971 case `uname -s`:`uname -m`:$GCC_VERSION in
2962 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2972 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2963 case "$CFLAGS" in 2973 case "$CFLAGS" in
2964 *-O2*|*-O3*) 2974 *-O2*|*-O3*)
3012 echo "$ac_t""no" 1>&6 3022 echo "$ac_t""no" 1>&6
3013 fi 3023 fi
3014 3024
3015 if test "$pdump" != "yes"; then 3025 if test "$pdump" != "yes"; then
3016 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6 3026 echo $ac_n "checking for \"-z nocombreloc\" linker flag""... $ac_c" 1>&6
3017 echo "configure:3018: checking for \"-z nocombreloc\" linker flag" >&5 3027 echo "configure:3028: checking for \"-z nocombreloc\" linker flag" >&5
3018 case "`ld --help 2>&1`" in 3028 case "`ld --help 2>&1`" in
3019 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6 3029 *-z\ nocombreloc* ) echo "$ac_t""yes" 1>&6
3020 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;; 3030 ld_switch_site="-z nocombreloc $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z nocombreloc\" to \$ld_switch_site"; fi ;;
3021 *) echo "$ac_t""no" 1>&6 ;; 3031 *) echo "$ac_t""no" 1>&6 ;;
3022 esac 3032 esac
3101 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 3111 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
3102 echo " xemacs will be linked with \"dumper.o\"" 3112 echo " xemacs will be linked with \"dumper.o\""
3103 fi 3113 fi
3104 3114
3105 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 3115 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
3106 echo "configure:3107: checking for dynodump" >&5 3116 echo "configure:3117: checking for dynodump" >&5
3107 if test "$unexec" != "unexsol2.o"; then 3117 if test "$unexec" != "unexsol2.o"; then
3108 echo "$ac_t""no" 1>&6 3118 echo "$ac_t""no" 1>&6
3109 else 3119 else
3110 echo "$ac_t""yes" 1>&6 3120 echo "$ac_t""yes" 1>&6
3111 { test "$extra_verbose" = "yes" && cat << \EOF 3121 { test "$extra_verbose" = "yes" && cat << \EOF
3138 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 3148 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
3139 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 3149 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
3140 done 3150 done
3141 3151
3142 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 3152 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
3143 echo "configure:3144: checking for terminateAndUnload in -lC" >&5 3153 echo "configure:3154: checking for terminateAndUnload in -lC" >&5
3144 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 3154 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
3145 3155
3146 xe_check_libs=" -lC " 3156 xe_check_libs=" -lC "
3147 cat > conftest.$ac_ext <<EOF 3157 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure" 3158 #line 3159 "configure"
3149 #include "confdefs.h" 3159 #include "confdefs.h"
3150 /* Override any gcc2 internal prototype to avoid an error. */ 3160 /* Override any gcc2 internal prototype to avoid an error. */
3151 /* We use char because int might match the return type of a gcc2 3161 /* We use char because int might match the return type of a gcc2
3152 builtin and then its argument prototype would still apply. */ 3162 builtin and then its argument prototype would still apply. */
3153 char terminateAndUnload(); 3163 char terminateAndUnload();
3154 3164
3155 int main() { 3165 int main() {
3156 terminateAndUnload() 3166 terminateAndUnload()
3157 ; return 0; } 3167 ; return 0; }
3158 EOF 3168 EOF
3159 if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3160 rm -rf conftest* 3170 rm -rf conftest*
3161 eval "ac_cv_lib_$ac_lib_var=yes" 3171 eval "ac_cv_lib_$ac_lib_var=yes"
3162 else 3172 else
3163 echo "configure: failed program was:" >&5 3173 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5 3174 cat conftest.$ac_ext >&5
3196 compiler_version="" 3206 compiler_version=""
3197 gcc_compiler_specs="" 3207 gcc_compiler_specs=""
3198 libc_version="" 3208 libc_version=""
3199 3209
3200 echo $ac_n "checking for compiler version information""... $ac_c" 1>&6 3210 echo $ac_n "checking for compiler version information""... $ac_c" 1>&6
3201 echo "configure:3202: checking for compiler version information" >&5 3211 echo "configure:3212: checking for compiler version information" >&5
3202 3212
3203 if test "$GCC" = "yes"; then 3213 if test "$GCC" = "yes"; then
3204 compiler_version=`$XEMACS_CC --version | head -1` 3214 compiler_version=`$XEMACS_CC --version | head -1`
3205 gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | head -1` 3215 gcc_compiler_specs=`$XEMACS_CC -v 2>&1 | sed 's/.* \([^ ]\)/\1/' | head -1`
3206 else case "$XEMACS_CC" in 3216 else case "$XEMACS_CC" in
3247 if test -z "$compiler_version"; then 3257 if test -z "$compiler_version"; then
3248 compiler_version="detection failed (please report this)" 3258 compiler_version="detection failed (please report this)"
3249 fi 3259 fi
3250 3260
3251 echo $ac_n "checking for standard C library version information""... $ac_c" 1>&6 3261 echo $ac_n "checking for standard C library version information""... $ac_c" 1>&6
3252 echo "configure:3253: checking for standard C library version information" >&5 3262 echo "configure:3263: checking for standard C library version information" >&5
3253 3263
3254 case "$canonical" in 3264 case "$canonical" in
3255 *-*-linux*) 3265 *-*-linux*)
3256 if test -f /etc/redhat-release ; then 3266 if test -f /etc/redhat-release ; then
3257 libc_version=`rpm -q glibc` 3267 libc_version=`rpm -q glibc`
3359 esac 3369 esac
3360 fi 3370 fi
3361 3371
3362 if test "$add_runtime_path" = "yes"; then 3372 if test "$add_runtime_path" = "yes"; then
3363 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3373 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3364 echo "configure:3365: checking "for runtime libraries flag"" >&5 3374 echo "configure:3375: checking "for runtime libraries flag"" >&5
3365 case "$opsys" in 3375 case "$opsys" in
3366 sol2 ) dash_r="-R" ;; 3376 sol2 ) dash_r="-R" ;;
3367 decosf* | linux* | irix*) dash_r="-rpath " ;; 3377 decosf* | linux* | irix*) dash_r="-rpath " ;;
3368 *) 3378 *)
3369 dash_r="" 3379 dash_r=""
3381 esac 3391 esac
3382 shift 3392 shift
3383 done 3393 done
3384 fi 3394 fi
3385 cat > conftest.$ac_ext <<EOF 3395 cat > conftest.$ac_ext <<EOF
3386 #line 3387 "configure" 3396 #line 3397 "configure"
3387 #include "confdefs.h" 3397 #include "confdefs.h"
3388 3398
3389 int main() { 3399 int main() {
3390 3400
3391 ; return 0; } 3401 ; return 0; }
3392 EOF 3402 EOF
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3403 if { (eval echo configure:3404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 rm -rf conftest* 3404 rm -rf conftest*
3395 dash_r="$try_dash_r" 3405 dash_r="$try_dash_r"
3396 else 3406 else
3397 echo "configure: failed program was:" >&5 3407 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5 3408 cat conftest.$ac_ext >&5
3489 else 3499 else
3490 doug_lea_malloc=no 3500 doug_lea_malloc=no
3491 fi 3501 fi
3492 after_morecore_hook_exists=yes 3502 after_morecore_hook_exists=yes
3493 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3503 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3494 echo "configure:3495: checking for malloc_set_state" >&5 3504 echo "configure:3505: checking for malloc_set_state" >&5
3495 3505
3496 cat > conftest.$ac_ext <<EOF 3506 cat > conftest.$ac_ext <<EOF
3497 #line 3498 "configure" 3507 #line 3508 "configure"
3498 #include "confdefs.h" 3508 #include "confdefs.h"
3499 /* System header to define __stub macros and hopefully few prototypes, 3509 /* System header to define __stub macros and hopefully few prototypes,
3500 which can conflict with char malloc_set_state(); below. */ 3510 which can conflict with char malloc_set_state(); below. */
3501 #include <assert.h> 3511 #include <assert.h>
3502 /* Override any gcc2 internal prototype to avoid an error. */ 3512 /* Override any gcc2 internal prototype to avoid an error. */
3515 malloc_set_state(); 3525 malloc_set_state();
3516 #endif 3526 #endif
3517 3527
3518 ; return 0; } 3528 ; return 0; }
3519 EOF 3529 EOF
3520 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521 rm -rf conftest* 3531 rm -rf conftest*
3522 eval "ac_cv_func_malloc_set_state=yes" 3532 eval "ac_cv_func_malloc_set_state=yes"
3523 else 3533 else
3524 echo "configure: failed program was:" >&5 3534 echo "configure: failed program was:" >&5
3525 cat conftest.$ac_ext >&5 3535 cat conftest.$ac_ext >&5
3535 echo "$ac_t""no" 1>&6 3545 echo "$ac_t""no" 1>&6
3536 doug_lea_malloc=no 3546 doug_lea_malloc=no
3537 fi 3547 fi
3538 3548
3539 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3549 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3540 echo "configure:3541: checking whether __after_morecore_hook exists" >&5 3550 echo "configure:3551: checking whether __after_morecore_hook exists" >&5
3541 cat > conftest.$ac_ext <<EOF 3551 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure" 3552 #line 3553 "configure"
3543 #include "confdefs.h" 3553 #include "confdefs.h"
3544 extern void (* __after_morecore_hook)(); 3554 extern void (* __after_morecore_hook)();
3545 int main() { 3555 int main() {
3546 __after_morecore_hook = 0 3556 __after_morecore_hook = 0
3547 ; return 0; } 3557 ; return 0; }
3548 EOF 3558 EOF
3549 if { (eval echo configure:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3559 if { (eval echo configure:3560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3550 rm -rf conftest* 3560 rm -rf conftest*
3551 echo "$ac_t""yes" 1>&6 3561 echo "$ac_t""yes" 1>&6
3552 else 3562 else
3553 echo "configure: failed program was:" >&5 3563 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5 3564 cat conftest.$ac_ext >&5
3600 3610
3601 3611
3602 # Extract the first word of "ranlib", so it can be a program name with args. 3612 # Extract the first word of "ranlib", so it can be a program name with args.
3603 set dummy ranlib; ac_word=$2 3613 set dummy ranlib; ac_word=$2
3604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3605 echo "configure:3606: checking for $ac_word" >&5 3615 echo "configure:3616: checking for $ac_word" >&5
3606 3616
3607 if test -n "$RANLIB"; then 3617 if test -n "$RANLIB"; then
3608 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3609 else 3619 else
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658 # ./install, which can be erroneously created by make from ./install.sh. 3668 # ./install, which can be erroneously created by make from ./install.sh.
3659 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3669 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3660 echo "configure:3661: checking for a BSD compatible install" >&5 3670 echo "configure:3671: checking for a BSD compatible install" >&5
3661 if test -z "$INSTALL"; then 3671 if test -z "$INSTALL"; then
3662 3672
3663 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3673 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3664 for ac_dir in $PATH; do 3674 for ac_dir in $PATH; do
3665 # Account for people who put trailing slashes in PATH elements. 3675 # Account for people who put trailing slashes in PATH elements.
3709 for ac_prog in 'bison -y' byacc 3719 for ac_prog in 'bison -y' byacc
3710 do 3720 do
3711 # Extract the first word of "$ac_prog", so it can be a program name with args. 3721 # Extract the first word of "$ac_prog", so it can be a program name with args.
3712 set dummy $ac_prog; ac_word=$2 3722 set dummy $ac_prog; ac_word=$2
3713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3714 echo "configure:3715: checking for $ac_word" >&5 3724 echo "configure:3725: checking for $ac_word" >&5
3715 3725
3716 if test -n "$YACC"; then 3726 if test -n "$YACC"; then
3717 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3727 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3718 else 3728 else
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3741 3751
3742 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/resource.h sys/time.h sys/timeb.h sys/times.h sys/un.h sys/vlimit.h ulimit.h unistd.h 3752 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/resource.h sys/time.h sys/timeb.h sys/times.h sys/un.h sys/vlimit.h ulimit.h unistd.h
3743 do 3753 do
3744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3746 echo "configure:3747: checking for $ac_hdr" >&5 3756 echo "configure:3757: checking for $ac_hdr" >&5
3747 3757
3748 cat > conftest.$ac_ext <<EOF 3758 cat > conftest.$ac_ext <<EOF
3749 #line 3750 "configure" 3759 #line 3760 "configure"
3750 #include "confdefs.h" 3760 #include "confdefs.h"
3751 #include <$ac_hdr> 3761 #include <$ac_hdr>
3752 EOF 3762 EOF
3753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3754 { (eval echo configure:3755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3764 { (eval echo configure:3765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3756 if test -z "$ac_err"; then 3766 if test -z "$ac_err"; then
3757 rm -rf conftest* 3767 rm -rf conftest*
3758 eval "ac_cv_header_$ac_safe=yes" 3768 eval "ac_cv_header_$ac_safe=yes"
3759 else 3769 else
3779 echo "$ac_t""no" 1>&6 3789 echo "$ac_t""no" 1>&6
3780 fi 3790 fi
3781 done 3791 done
3782 3792
3783 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3793 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3784 echo "configure:3785: checking for sys/wait.h that is POSIX.1 compatible" >&5 3794 echo "configure:3795: checking for sys/wait.h that is POSIX.1 compatible" >&5
3785 3795
3786 cat > conftest.$ac_ext <<EOF 3796 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure" 3797 #line 3798 "configure"
3788 #include "confdefs.h" 3798 #include "confdefs.h"
3789 #include <sys/types.h> 3799 #include <sys/types.h>
3790 #include <sys/wait.h> 3800 #include <sys/wait.h>
3791 #ifndef WEXITSTATUS 3801 #ifndef WEXITSTATUS
3792 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3802 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3798 int s; 3808 int s;
3799 wait (&s); 3809 wait (&s);
3800 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3810 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3801 ; return 0; } 3811 ; return 0; }
3802 EOF 3812 EOF
3803 if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 rm -rf conftest* 3814 rm -rf conftest*
3805 ac_cv_header_sys_wait_h=yes 3815 ac_cv_header_sys_wait_h=yes
3806 else 3816 else
3807 echo "configure: failed program was:" >&5 3817 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5 3818 cat conftest.$ac_ext >&5
3822 } 3832 }
3823 3833
3824 fi 3834 fi
3825 3835
3826 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3836 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3827 echo "configure:3828: checking for ANSI C header files" >&5 3837 echo "configure:3838: checking for ANSI C header files" >&5
3828 3838
3829 cat > conftest.$ac_ext <<EOF 3839 cat > conftest.$ac_ext <<EOF
3830 #line 3831 "configure" 3840 #line 3841 "configure"
3831 #include "confdefs.h" 3841 #include "confdefs.h"
3832 #include <stdlib.h> 3842 #include <stdlib.h>
3833 #include <stdarg.h> 3843 #include <stdarg.h>
3834 #include <string.h> 3844 #include <string.h>
3835 #include <float.h> 3845 #include <float.h>
3836 EOF 3846 EOF
3837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3838 { (eval echo configure:3839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3848 { (eval echo configure:3849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3840 if test -z "$ac_err"; then 3850 if test -z "$ac_err"; then
3841 rm -rf conftest* 3851 rm -rf conftest*
3842 ac_cv_header_stdc=yes 3852 ac_cv_header_stdc=yes
3843 else 3853 else
3850 rm -f conftest* 3860 rm -f conftest*
3851 3861
3852 if test $ac_cv_header_stdc = yes; then 3862 if test $ac_cv_header_stdc = yes; then
3853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3854 cat > conftest.$ac_ext <<EOF 3864 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure" 3865 #line 3866 "configure"
3856 #include "confdefs.h" 3866 #include "confdefs.h"
3857 #include <string.h> 3867 #include <string.h>
3858 EOF 3868 EOF
3859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3860 egrep "memchr" >/dev/null 2>&1; then 3870 egrep "memchr" >/dev/null 2>&1; then
3868 fi 3878 fi
3869 3879
3870 if test $ac_cv_header_stdc = yes; then 3880 if test $ac_cv_header_stdc = yes; then
3871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3872 cat > conftest.$ac_ext <<EOF 3882 cat > conftest.$ac_ext <<EOF
3873 #line 3874 "configure" 3883 #line 3884 "configure"
3874 #include "confdefs.h" 3884 #include "confdefs.h"
3875 #include <stdlib.h> 3885 #include <stdlib.h>
3876 EOF 3886 EOF
3877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3878 egrep "free" >/dev/null 2>&1; then 3888 egrep "free" >/dev/null 2>&1; then
3886 fi 3896 fi
3887 3897
3888 if test $ac_cv_header_stdc = yes; then 3898 if test $ac_cv_header_stdc = yes; then
3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890 cat > conftest.$ac_ext <<EOF 3900 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure" 3901 #line 3902 "configure"
3892 #include "confdefs.h" 3902 #include "confdefs.h"
3893 #include <ctype.h> 3903 #include <ctype.h>
3894 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3904 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3895 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3905 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3897 int main () { int i; for (i = 0; i < 256; i++) 3907 int main () { int i; for (i = 0; i < 256; i++)
3898 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3908 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3899 exit (0); } 3909 exit (0); }
3900 3910
3901 EOF 3911 EOF
3902 if { (eval echo configure:3903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3903 then 3913 then
3904 : 3914 :
3905 else 3915 else
3906 conftest_rc="$?" 3916 conftest_rc="$?"
3907 echo "configure: failed program was:" >&5 3917 echo "configure: failed program was:" >&5
3923 } 3933 }
3924 3934
3925 fi 3935 fi
3926 3936
3927 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3937 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3928 echo "configure:3929: checking whether time.h and sys/time.h may both be included" >&5 3938 echo "configure:3939: checking whether time.h and sys/time.h may both be included" >&5
3929 3939
3930 cat > conftest.$ac_ext <<EOF 3940 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure" 3941 #line 3942 "configure"
3932 #include "confdefs.h" 3942 #include "confdefs.h"
3933 #include <sys/types.h> 3943 #include <sys/types.h>
3934 #include <sys/time.h> 3944 #include <sys/time.h>
3935 #include <time.h> 3945 #include <time.h>
3936 int main() { 3946 int main() {
3937 struct tm *tp; 3947 struct tm *tp;
3938 ; return 0; } 3948 ; return 0; }
3939 EOF 3949 EOF
3940 if { (eval echo configure:3941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3941 rm -rf conftest* 3951 rm -rf conftest*
3942 ac_cv_header_time=yes 3952 ac_cv_header_time=yes
3943 else 3953 else
3944 echo "configure: failed program was:" >&5 3954 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5 3955 cat conftest.$ac_ext >&5
3959 } 3969 }
3960 3970
3961 fi 3971 fi
3962 3972
3963 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3973 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3964 echo "configure:3965: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3974 echo "configure:3975: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3965 3975
3966 cat > conftest.$ac_ext <<EOF 3976 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure" 3977 #line 3978 "configure"
3968 #include "confdefs.h" 3978 #include "confdefs.h"
3969 #include <sys/types.h> 3979 #include <sys/types.h>
3970 #include <signal.h> 3980 #include <signal.h>
3971 /* NetBSD declares sys_siglist in unistd.h. */ 3981 /* NetBSD declares sys_siglist in unistd.h. */
3972 #ifdef HAVE_UNISTD_H 3982 #ifdef HAVE_UNISTD_H
3974 #endif 3984 #endif
3975 int main() { 3985 int main() {
3976 char *msg = *(sys_siglist + 1); 3986 char *msg = *(sys_siglist + 1);
3977 ; return 0; } 3987 ; return 0; }
3978 EOF 3988 EOF
3979 if { (eval echo configure:3980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3989 if { (eval echo configure:3990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3980 rm -rf conftest* 3990 rm -rf conftest*
3981 ac_cv_decl_sys_siglist=yes 3991 ac_cv_decl_sys_siglist=yes
3982 else 3992 else
3983 echo "configure: failed program was:" >&5 3993 echo "configure: failed program was:" >&5
3984 cat conftest.$ac_ext >&5 3994 cat conftest.$ac_ext >&5
4000 fi 4010 fi
4001 4011
4002 4012
4003 4013
4004 echo $ac_n "checking for utime""... $ac_c" 1>&6 4014 echo $ac_n "checking for utime""... $ac_c" 1>&6
4005 echo "configure:4006: checking for utime" >&5 4015 echo "configure:4016: checking for utime" >&5
4006 cat > conftest.$ac_ext <<EOF 4016 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure" 4017 #line 4018 "configure"
4008 #include "confdefs.h" 4018 #include "confdefs.h"
4009 #include <sys/types.h> 4019 #include <sys/types.h>
4010 #include <utime.h> 4020 #include <utime.h>
4011 int main() { 4021 int main() {
4012 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 4022 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
4013 ; return 0; } 4023 ; return 0; }
4014 EOF 4024 EOF
4015 if { (eval echo configure:4016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4025 if { (eval echo configure:4026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4016 rm -rf conftest* 4026 rm -rf conftest*
4017 echo "$ac_t""yes" 1>&6 4027 echo "$ac_t""yes" 1>&6
4018 { test "$extra_verbose" = "yes" && cat << \EOF 4028 { test "$extra_verbose" = "yes" && cat << \EOF
4019 Defining HAVE_UTIME 4029 Defining HAVE_UTIME
4020 EOF 4030 EOF
4029 rm -rf conftest* 4039 rm -rf conftest*
4030 echo "$ac_t""no" 1>&6 4040 echo "$ac_t""no" 1>&6
4031 for ac_func in utimes 4041 for ac_func in utimes
4032 do 4042 do
4033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4034 echo "configure:4035: checking for $ac_func" >&5 4044 echo "configure:4045: checking for $ac_func" >&5
4035 4045
4036 cat > conftest.$ac_ext <<EOF 4046 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure" 4047 #line 4048 "configure"
4038 #include "confdefs.h" 4048 #include "confdefs.h"
4039 /* System header to define __stub macros and hopefully few prototypes, 4049 /* System header to define __stub macros and hopefully few prototypes,
4040 which can conflict with char $ac_func(); below. */ 4050 which can conflict with char $ac_func(); below. */
4041 #include <assert.h> 4051 #include <assert.h>
4042 /* Override any gcc2 internal prototype to avoid an error. */ 4052 /* Override any gcc2 internal prototype to avoid an error. */
4055 $ac_func(); 4065 $ac_func();
4056 #endif 4066 #endif
4057 4067
4058 ; return 0; } 4068 ; return 0; }
4059 EOF 4069 EOF
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4061 rm -rf conftest* 4071 rm -rf conftest*
4062 eval "ac_cv_func_$ac_func=yes" 4072 eval "ac_cv_func_$ac_func=yes"
4063 else 4073 else
4064 echo "configure: failed program was:" >&5 4074 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5 4075 cat conftest.$ac_ext >&5
4087 fi 4097 fi
4088 rm -f conftest* 4098 rm -f conftest*
4089 4099
4090 4100
4091 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 4101 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4092 echo "configure:4093: checking return type of signal handlers" >&5 4102 echo "configure:4103: checking return type of signal handlers" >&5
4093 4103
4094 cat > conftest.$ac_ext <<EOF 4104 cat > conftest.$ac_ext <<EOF
4095 #line 4096 "configure" 4105 #line 4106 "configure"
4096 #include "confdefs.h" 4106 #include "confdefs.h"
4097 #include <sys/types.h> 4107 #include <sys/types.h>
4098 #include <signal.h> 4108 #include <signal.h>
4099 #ifdef signal 4109 #ifdef signal
4100 #undef signal 4110 #undef signal
4107 4117
4108 int main() { 4118 int main() {
4109 int i; 4119 int i;
4110 ; return 0; } 4120 ; return 0; }
4111 EOF 4121 EOF
4112 if { (eval echo configure:4113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4122 if { (eval echo configure:4123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4113 rm -rf conftest* 4123 rm -rf conftest*
4114 ac_cv_type_signal=void 4124 ac_cv_type_signal=void
4115 else 4125 else
4116 echo "configure: failed program was:" >&5 4126 echo "configure: failed program was:" >&5
4117 cat conftest.$ac_ext >&5 4127 cat conftest.$ac_ext >&5
4129 EOF 4139 EOF
4130 } 4140 }
4131 4141
4132 4142
4133 echo $ac_n "checking for size_t""... $ac_c" 1>&6 4143 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4134 echo "configure:4135: checking for size_t" >&5 4144 echo "configure:4145: checking for size_t" >&5
4135 4145
4136 cat > conftest.$ac_ext <<EOF 4146 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure" 4147 #line 4148 "configure"
4138 #include "confdefs.h" 4148 #include "confdefs.h"
4139 #include <sys/types.h> 4149 #include <sys/types.h>
4140 #if STDC_HEADERS 4150 #if STDC_HEADERS
4141 #include <stdlib.h> 4151 #include <stdlib.h>
4142 #include <stddef.h> 4152 #include <stddef.h>
4163 } 4173 }
4164 4174
4165 fi 4175 fi
4166 4176
4167 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 4177 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4168 echo "configure:4169: checking for pid_t" >&5 4178 echo "configure:4179: checking for pid_t" >&5
4169 4179
4170 cat > conftest.$ac_ext <<EOF 4180 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure" 4181 #line 4182 "configure"
4172 #include "confdefs.h" 4182 #include "confdefs.h"
4173 #include <sys/types.h> 4183 #include <sys/types.h>
4174 #if STDC_HEADERS 4184 #if STDC_HEADERS
4175 #include <stdlib.h> 4185 #include <stdlib.h>
4176 #include <stddef.h> 4186 #include <stddef.h>
4197 } 4207 }
4198 4208
4199 fi 4209 fi
4200 4210
4201 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 4211 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4202 echo "configure:4203: checking for uid_t in sys/types.h" >&5 4212 echo "configure:4213: checking for uid_t in sys/types.h" >&5
4203 4213
4204 cat > conftest.$ac_ext <<EOF 4214 cat > conftest.$ac_ext <<EOF
4205 #line 4206 "configure" 4215 #line 4216 "configure"
4206 #include "confdefs.h" 4216 #include "confdefs.h"
4207 #include <sys/types.h> 4217 #include <sys/types.h>
4208 EOF 4218 EOF
4209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4210 egrep "uid_t" >/dev/null 2>&1; then 4220 egrep "uid_t" >/dev/null 2>&1; then
4236 } 4246 }
4237 4247
4238 fi 4248 fi
4239 4249
4240 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 4250 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4241 echo "configure:4242: checking for mode_t" >&5 4251 echo "configure:4252: checking for mode_t" >&5
4242 4252
4243 cat > conftest.$ac_ext <<EOF 4253 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure" 4254 #line 4255 "configure"
4245 #include "confdefs.h" 4255 #include "confdefs.h"
4246 #include <sys/types.h> 4256 #include <sys/types.h>
4247 #if STDC_HEADERS 4257 #if STDC_HEADERS
4248 #include <stdlib.h> 4258 #include <stdlib.h>
4249 #include <stddef.h> 4259 #include <stddef.h>
4270 } 4280 }
4271 4281
4272 fi 4282 fi
4273 4283
4274 echo $ac_n "checking for off_t""... $ac_c" 1>&6 4284 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4275 echo "configure:4276: checking for off_t" >&5 4285 echo "configure:4286: checking for off_t" >&5
4276 4286
4277 cat > conftest.$ac_ext <<EOF 4287 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure" 4288 #line 4289 "configure"
4279 #include "confdefs.h" 4289 #include "confdefs.h"
4280 #include <sys/types.h> 4290 #include <sys/types.h>
4281 #if STDC_HEADERS 4291 #if STDC_HEADERS
4282 #include <stdlib.h> 4292 #include <stdlib.h>
4283 #include <stddef.h> 4293 #include <stddef.h>
4304 } 4314 }
4305 4315
4306 fi 4316 fi
4307 4317
4308 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4318 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4309 echo "configure:4310: checking for ssize_t" >&5 4319 echo "configure:4320: checking for ssize_t" >&5
4310 4320
4311 cat > conftest.$ac_ext <<EOF 4321 cat > conftest.$ac_ext <<EOF
4312 #line 4313 "configure" 4322 #line 4323 "configure"
4313 #include "confdefs.h" 4323 #include "confdefs.h"
4314 #include <sys/types.h> 4324 #include <sys/types.h>
4315 #if STDC_HEADERS 4325 #if STDC_HEADERS
4316 #include <stdlib.h> 4326 #include <stdlib.h>
4317 #include <stddef.h> 4327 #include <stddef.h>
4340 fi 4350 fi
4341 4351
4342 4352
4343 if test "$ac_cv_header_inttypes_h" != "yes"; then 4353 if test "$ac_cv_header_inttypes_h" != "yes"; then
4344 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6 4354 echo $ac_n "checking for intptr_t in sys/types.h""... $ac_c" 1>&6
4345 echo "configure:4346: checking for intptr_t in sys/types.h" >&5 4355 echo "configure:4356: checking for intptr_t in sys/types.h" >&5
4346 cat > conftest.$ac_ext <<EOF 4356 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure" 4357 #line 4358 "configure"
4348 #include "confdefs.h" 4358 #include "confdefs.h"
4349 #include <sys/types.h> 4359 #include <sys/types.h>
4350 intptr_t x; 4360 intptr_t x;
4351 4361
4352 int main() { 4362 int main() {
4353 4363
4354 ; return 0; } 4364 ; return 0; }
4355 EOF 4365 EOF
4356 if { (eval echo configure:4357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4366 if { (eval echo configure:4367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4357 rm -rf conftest* 4367 rm -rf conftest*
4358 echo "$ac_t""yes" 1>&6 4368 echo "$ac_t""yes" 1>&6
4359 { test "$extra_verbose" = "yes" && cat << \EOF 4369 { test "$extra_verbose" = "yes" && cat << \EOF
4360 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1 4370 Defining HAVE_INTPTR_T_IN_SYS_TYPES_H = 1
4361 EOF 4371 EOF
4372 fi 4382 fi
4373 rm -f conftest* 4383 rm -f conftest*
4374 fi 4384 fi
4375 4385
4376 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4386 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4377 echo "configure:4378: checking for socklen_t" >&5 4387 echo "configure:4388: checking for socklen_t" >&5
4378 cat > conftest.$ac_ext <<EOF 4388 cat > conftest.$ac_ext <<EOF
4379 #line 4380 "configure" 4389 #line 4390 "configure"
4380 #include "confdefs.h" 4390 #include "confdefs.h"
4381 #include <sys/types.h> 4391 #include <sys/types.h>
4382 #include <sys/socket.h> 4392 #include <sys/socket.h>
4383 socklen_t x; 4393 socklen_t x;
4384 4394
4385 int main() { 4395 int main() {
4386 4396
4387 ; return 0; } 4397 ; return 0; }
4388 EOF 4398 EOF
4389 if { (eval echo configure:4390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4399 if { (eval echo configure:4400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4390 rm -rf conftest* 4400 rm -rf conftest*
4391 echo "$ac_t""yes" 1>&6 4401 echo "$ac_t""yes" 1>&6
4392 else 4402 else
4393 echo "configure: failed program was:" >&5 4403 echo "configure: failed program was:" >&5
4394 cat conftest.$ac_ext >&5 4404 cat conftest.$ac_ext >&5
4395 rm -rf conftest* 4405 rm -rf conftest*
4396 4406
4397 cat > conftest.$ac_ext <<EOF 4407 cat > conftest.$ac_ext <<EOF
4398 #line 4399 "configure" 4408 #line 4409 "configure"
4399 #include "confdefs.h" 4409 #include "confdefs.h"
4400 #include <sys/types.h> 4410 #include <sys/types.h>
4401 #include <sys/socket.h> 4411 #include <sys/socket.h>
4402 int accept (int, struct sockaddr *, size_t *); 4412 int accept (int, struct sockaddr *, size_t *);
4403 4413
4404 int main() { 4414 int main() {
4405 4415
4406 ; return 0; } 4416 ; return 0; }
4407 EOF 4417 EOF
4408 if { (eval echo configure:4409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4418 if { (eval echo configure:4419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4409 rm -rf conftest* 4419 rm -rf conftest*
4410 4420
4411 echo "$ac_t""size_t" 1>&6 4421 echo "$ac_t""size_t" 1>&6
4412 { test "$extra_verbose" = "yes" && cat << \EOF 4422 { test "$extra_verbose" = "yes" && cat << \EOF
4413 Defining socklen_t = size_t 4423 Defining socklen_t = size_t
4435 rm -f conftest* 4445 rm -f conftest*
4436 fi 4446 fi
4437 rm -f conftest* 4447 rm -f conftest*
4438 4448
4439 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4449 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4440 echo "configure:4441: checking for struct timeval" >&5 4450 echo "configure:4451: checking for struct timeval" >&5
4441 cat > conftest.$ac_ext <<EOF 4451 cat > conftest.$ac_ext <<EOF
4442 #line 4443 "configure" 4452 #line 4453 "configure"
4443 #include "confdefs.h" 4453 #include "confdefs.h"
4444 #ifdef TIME_WITH_SYS_TIME 4454 #ifdef TIME_WITH_SYS_TIME
4445 #include <sys/time.h> 4455 #include <sys/time.h>
4446 #include <time.h> 4456 #include <time.h>
4447 #else 4457 #else
4453 #endif 4463 #endif
4454 int main() { 4464 int main() {
4455 static struct timeval x; x.tv_sec = x.tv_usec; 4465 static struct timeval x; x.tv_sec = x.tv_usec;
4456 ; return 0; } 4466 ; return 0; }
4457 EOF 4467 EOF
4458 if { (eval echo configure:4459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4468 if { (eval echo configure:4469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4459 rm -rf conftest* 4469 rm -rf conftest*
4460 echo "$ac_t""yes" 1>&6 4470 echo "$ac_t""yes" 1>&6
4461 HAVE_TIMEVAL=yes 4471 HAVE_TIMEVAL=yes
4462 { test "$extra_verbose" = "yes" && cat << \EOF 4472 { test "$extra_verbose" = "yes" && cat << \EOF
4463 Defining HAVE_TIMEVAL 4473 Defining HAVE_TIMEVAL
4475 HAVE_TIMEVAL=no 4485 HAVE_TIMEVAL=no
4476 fi 4486 fi
4477 rm -f conftest* 4487 rm -f conftest*
4478 4488
4479 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4489 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4480 echo "configure:4481: checking whether struct tm is in sys/time.h or time.h" >&5 4490 echo "configure:4491: checking whether struct tm is in sys/time.h or time.h" >&5
4481 4491
4482 cat > conftest.$ac_ext <<EOF 4492 cat > conftest.$ac_ext <<EOF
4483 #line 4484 "configure" 4493 #line 4494 "configure"
4484 #include "confdefs.h" 4494 #include "confdefs.h"
4485 #include <sys/types.h> 4495 #include <sys/types.h>
4486 #include <time.h> 4496 #include <time.h>
4487 int main() { 4497 int main() {
4488 struct tm *tp; tp->tm_sec; 4498 struct tm *tp; tp->tm_sec;
4489 ; return 0; } 4499 ; return 0; }
4490 EOF 4500 EOF
4491 if { (eval echo configure:4492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4501 if { (eval echo configure:4502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4492 rm -rf conftest* 4502 rm -rf conftest*
4493 ac_cv_struct_tm=time.h 4503 ac_cv_struct_tm=time.h
4494 else 4504 else
4495 echo "configure: failed program was:" >&5 4505 echo "configure: failed program was:" >&5
4496 cat conftest.$ac_ext >&5 4506 cat conftest.$ac_ext >&5
4510 } 4520 }
4511 4521
4512 fi 4522 fi
4513 4523
4514 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4524 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4515 echo "configure:4516: checking for tm_zone in struct tm" >&5 4525 echo "configure:4526: checking for tm_zone in struct tm" >&5
4516 4526
4517 cat > conftest.$ac_ext <<EOF 4527 cat > conftest.$ac_ext <<EOF
4518 #line 4519 "configure" 4528 #line 4529 "configure"
4519 #include "confdefs.h" 4529 #include "confdefs.h"
4520 #include <sys/types.h> 4530 #include <sys/types.h>
4521 #include <$ac_cv_struct_tm> 4531 #include <$ac_cv_struct_tm>
4522 int main() { 4532 int main() {
4523 struct tm tm; tm.tm_zone; 4533 struct tm tm; tm.tm_zone;
4524 ; return 0; } 4534 ; return 0; }
4525 EOF 4535 EOF
4526 if { (eval echo configure:4527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4536 if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4527 rm -rf conftest* 4537 rm -rf conftest*
4528 ac_cv_struct_tm_zone=yes 4538 ac_cv_struct_tm_zone=yes
4529 else 4539 else
4530 echo "configure: failed program was:" >&5 4540 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5 4541 cat conftest.$ac_ext >&5
4544 EOF 4554 EOF
4545 } 4555 }
4546 4556
4547 else 4557 else
4548 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4558 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4549 echo "configure:4550: checking for tzname" >&5 4559 echo "configure:4560: checking for tzname" >&5
4550 4560
4551 cat > conftest.$ac_ext <<EOF 4561 cat > conftest.$ac_ext <<EOF
4552 #line 4553 "configure" 4562 #line 4563 "configure"
4553 #include "confdefs.h" 4563 #include "confdefs.h"
4554 #include <time.h> 4564 #include <time.h>
4555 #ifndef tzname /* For SGI. */ 4565 #ifndef tzname /* For SGI. */
4556 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4566 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4557 #endif 4567 #endif
4558 int main() { 4568 int main() {
4559 atoi(*tzname); 4569 atoi(*tzname);
4560 ; return 0; } 4570 ; return 0; }
4561 EOF 4571 EOF
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4563 rm -rf conftest* 4573 rm -rf conftest*
4564 ac_cv_var_tzname=yes 4574 ac_cv_var_tzname=yes
4565 else 4575 else
4566 echo "configure: failed program was:" >&5 4576 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5 4577 cat conftest.$ac_ext >&5
4583 fi 4593 fi
4584 fi 4594 fi
4585 4595
4586 4596
4587 echo $ac_n "checking for working const""... $ac_c" 1>&6 4597 echo $ac_n "checking for working const""... $ac_c" 1>&6
4588 echo "configure:4589: checking for working const" >&5 4598 echo "configure:4599: checking for working const" >&5
4589 4599
4590 cat > conftest.$ac_ext <<EOF 4600 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure" 4601 #line 4602 "configure"
4592 #include "confdefs.h" 4602 #include "confdefs.h"
4593 4603
4594 int main() { 4604 int main() {
4595 4605
4596 /* Ultrix mips cc rejects this. */ 4606 /* Ultrix mips cc rejects this. */
4635 const int foo = 10; 4645 const int foo = 10;
4636 } 4646 }
4637 4647
4638 ; return 0; } 4648 ; return 0; }
4639 EOF 4649 EOF
4640 if { (eval echo configure:4641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4650 if { (eval echo configure:4651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4641 rm -rf conftest* 4651 rm -rf conftest*
4642 ac_cv_c_const=yes 4652 ac_cv_c_const=yes
4643 else 4653 else
4644 echo "configure: failed program was:" >&5 4654 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5 4655 cat conftest.$ac_ext >&5
4660 4670
4661 fi 4671 fi
4662 4672
4663 4673
4664 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4674 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4665 echo "configure:4666: checking whether ${MAKE-make} sets \${MAKE}" >&5 4675 echo "configure:4676: checking whether ${MAKE-make} sets \${MAKE}" >&5
4666 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4676 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4667 4677
4668 cat > conftestmake <<\EOF 4678 cat > conftestmake <<\EOF
4669 all: 4679 all:
4670 @echo 'ac_maketemp="${MAKE}"' 4680 @echo 'ac_maketemp="${MAKE}"'
4685 SET_MAKE="MAKE=${MAKE-make}" 4695 SET_MAKE="MAKE=${MAKE-make}"
4686 fi 4696 fi
4687 4697
4688 4698
4689 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4699 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4690 echo "configure:4691: checking whether byte ordering is bigendian" >&5 4700 echo "configure:4701: checking whether byte ordering is bigendian" >&5
4691 4701
4692 ac_cv_c_bigendian=unknown 4702 ac_cv_c_bigendian=unknown
4693 # See if sys/param.h defines the BYTE_ORDER macro. 4703 # See if sys/param.h defines the BYTE_ORDER macro.
4694 cat > conftest.$ac_ext <<EOF 4704 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure" 4705 #line 4706 "configure"
4696 #include "confdefs.h" 4706 #include "confdefs.h"
4697 #include <sys/types.h> 4707 #include <sys/types.h>
4698 #include <sys/param.h> 4708 #include <sys/param.h>
4699 int main() { 4709 int main() {
4700 4710
4701 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4711 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4702 bogus endian macros 4712 bogus endian macros
4703 #endif 4713 #endif
4704 ; return 0; } 4714 ; return 0; }
4705 EOF 4715 EOF
4706 if { (eval echo configure:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4716 if { (eval echo configure:4717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4707 rm -rf conftest* 4717 rm -rf conftest*
4708 # It does; now see whether it defined to BIG_ENDIAN or not. 4718 # It does; now see whether it defined to BIG_ENDIAN or not.
4709 cat > conftest.$ac_ext <<EOF 4719 cat > conftest.$ac_ext <<EOF
4710 #line 4711 "configure" 4720 #line 4721 "configure"
4711 #include "confdefs.h" 4721 #include "confdefs.h"
4712 #include <sys/types.h> 4722 #include <sys/types.h>
4713 #include <sys/param.h> 4723 #include <sys/param.h>
4714 int main() { 4724 int main() {
4715 4725
4716 #if BYTE_ORDER != BIG_ENDIAN 4726 #if BYTE_ORDER != BIG_ENDIAN
4717 not big endian 4727 not big endian
4718 #endif 4728 #endif
4719 ; return 0; } 4729 ; return 0; }
4720 EOF 4730 EOF
4721 if { (eval echo configure:4722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4731 if { (eval echo configure:4732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4722 rm -rf conftest* 4732 rm -rf conftest*
4723 ac_cv_c_bigendian=yes 4733 ac_cv_c_bigendian=yes
4724 else 4734 else
4725 echo "configure: failed program was:" >&5 4735 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5 4736 cat conftest.$ac_ext >&5
4733 cat conftest.$ac_ext >&5 4743 cat conftest.$ac_ext >&5
4734 fi 4744 fi
4735 rm -f conftest* 4745 rm -f conftest*
4736 if test $ac_cv_c_bigendian = unknown; then 4746 if test $ac_cv_c_bigendian = unknown; then
4737 cat > conftest.$ac_ext <<EOF 4747 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure" 4748 #line 4749 "configure"
4739 #include "confdefs.h" 4749 #include "confdefs.h"
4740 main () { 4750 main () {
4741 /* Are we little or big endian? From Harbison&Steele. */ 4751 /* Are we little or big endian? From Harbison&Steele. */
4742 union 4752 union
4743 { 4753 {
4746 } u; 4756 } u;
4747 u.l = 1; 4757 u.l = 1;
4748 exit (u.c[sizeof (long) - 1] == 1); 4758 exit (u.c[sizeof (long) - 1] == 1);
4749 } 4759 }
4750 EOF 4760 EOF
4751 if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4752 then 4762 then
4753 ac_cv_c_bigendian=no 4763 ac_cv_c_bigendian=no
4754 else 4764 else
4755 conftest_rc="$?" 4765 conftest_rc="$?"
4756 echo "configure: failed program was:" >&5 4766 echo "configure: failed program was:" >&5
4773 4783
4774 fi 4784 fi
4775 4785
4776 4786
4777 echo $ac_n "checking size of short""... $ac_c" 1>&6 4787 echo $ac_n "checking size of short""... $ac_c" 1>&6
4778 echo "configure:4779: checking size of short" >&5 4788 echo "configure:4789: checking size of short" >&5
4779 4789
4780 cat > conftest.$ac_ext <<EOF 4790 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure" 4791 #line 4792 "configure"
4782 #include "confdefs.h" 4792 #include "confdefs.h"
4783 #include <stdio.h> 4793 #include <stdio.h>
4784 main() 4794 main()
4785 { 4795 {
4786 FILE *f=fopen("conftestval", "w"); 4796 FILE *f=fopen("conftestval", "w");
4787 if (!f) exit(1); 4797 if (!f) exit(1);
4788 fprintf(f, "%d\n", sizeof(short)); 4798 fprintf(f, "%d\n", sizeof(short));
4789 exit(0); 4799 exit(0);
4790 } 4800 }
4791 EOF 4801 EOF
4792 if { (eval echo configure:4793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4802 if { (eval echo configure:4803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4793 then 4803 then
4794 ac_cv_sizeof_short=`cat conftestval` 4804 ac_cv_sizeof_short=`cat conftestval`
4795 else 4805 else
4796 conftest_rc="$?" 4806 conftest_rc="$?"
4797 echo "configure: failed program was:" >&5 4807 echo "configure: failed program was:" >&5
4815 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4825 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4816 echo "*** PANIC *** Please examine config.log for compilation errors." 4826 echo "*** PANIC *** Please examine config.log for compilation errors."
4817 exit 1 4827 exit 1
4818 fi 4828 fi
4819 echo $ac_n "checking size of int""... $ac_c" 1>&6 4829 echo $ac_n "checking size of int""... $ac_c" 1>&6
4820 echo "configure:4821: checking size of int" >&5 4830 echo "configure:4831: checking size of int" >&5
4821 4831
4822 cat > conftest.$ac_ext <<EOF 4832 cat > conftest.$ac_ext <<EOF
4823 #line 4824 "configure" 4833 #line 4834 "configure"
4824 #include "confdefs.h" 4834 #include "confdefs.h"
4825 #include <stdio.h> 4835 #include <stdio.h>
4826 main() 4836 main()
4827 { 4837 {
4828 FILE *f=fopen("conftestval", "w"); 4838 FILE *f=fopen("conftestval", "w");
4829 if (!f) exit(1); 4839 if (!f) exit(1);
4830 fprintf(f, "%d\n", sizeof(int)); 4840 fprintf(f, "%d\n", sizeof(int));
4831 exit(0); 4841 exit(0);
4832 } 4842 }
4833 EOF 4843 EOF
4834 if { (eval echo configure:4835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4844 if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4835 then 4845 then
4836 ac_cv_sizeof_int=`cat conftestval` 4846 ac_cv_sizeof_int=`cat conftestval`
4837 else 4847 else
4838 conftest_rc="$?" 4848 conftest_rc="$?"
4839 echo "configure: failed program was:" >&5 4849 echo "configure: failed program was:" >&5
4851 EOF 4861 EOF
4852 } 4862 }
4853 4863
4854 4864
4855 echo $ac_n "checking size of long""... $ac_c" 1>&6 4865 echo $ac_n "checking size of long""... $ac_c" 1>&6
4856 echo "configure:4857: checking size of long" >&5 4866 echo "configure:4867: checking size of long" >&5
4857 4867
4858 cat > conftest.$ac_ext <<EOF 4868 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure" 4869 #line 4870 "configure"
4860 #include "confdefs.h" 4870 #include "confdefs.h"
4861 #include <stdio.h> 4871 #include <stdio.h>
4862 main() 4872 main()
4863 { 4873 {
4864 FILE *f=fopen("conftestval", "w"); 4874 FILE *f=fopen("conftestval", "w");
4865 if (!f) exit(1); 4875 if (!f) exit(1);
4866 fprintf(f, "%d\n", sizeof(long)); 4876 fprintf(f, "%d\n", sizeof(long));
4867 exit(0); 4877 exit(0);
4868 } 4878 }
4869 EOF 4879 EOF
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4871 then 4881 then
4872 ac_cv_sizeof_long=`cat conftestval` 4882 ac_cv_sizeof_long=`cat conftestval`
4873 else 4883 else
4874 conftest_rc="$?" 4884 conftest_rc="$?"
4875 echo "configure: failed program was:" >&5 4885 echo "configure: failed program was:" >&5
4887 EOF 4897 EOF
4888 } 4898 }
4889 4899
4890 4900
4891 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4901 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4892 echo "configure:4893: checking size of long long" >&5 4902 echo "configure:4903: checking size of long long" >&5
4893 4903
4894 cat > conftest.$ac_ext <<EOF 4904 cat > conftest.$ac_ext <<EOF
4895 #line 4896 "configure" 4905 #line 4906 "configure"
4896 #include "confdefs.h" 4906 #include "confdefs.h"
4897 #include <stdio.h> 4907 #include <stdio.h>
4898 main() 4908 main()
4899 { 4909 {
4900 FILE *f=fopen("conftestval", "w"); 4910 FILE *f=fopen("conftestval", "w");
4901 if (!f) exit(1); 4911 if (!f) exit(1);
4902 fprintf(f, "%d\n", sizeof(long long)); 4912 fprintf(f, "%d\n", sizeof(long long));
4903 exit(0); 4913 exit(0);
4904 } 4914 }
4905 EOF 4915 EOF
4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4907 then 4917 then
4908 ac_cv_sizeof_long_long=`cat conftestval` 4918 ac_cv_sizeof_long_long=`cat conftestval`
4909 else 4919 else
4910 conftest_rc="$?" 4920 conftest_rc="$?"
4911 echo "configure: failed program was:" >&5 4921 echo "configure: failed program was:" >&5
4923 EOF 4933 EOF
4924 } 4934 }
4925 4935
4926 4936
4927 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4937 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4928 echo "configure:4929: checking size of void *" >&5 4938 echo "configure:4939: checking size of void *" >&5
4929 4939
4930 cat > conftest.$ac_ext <<EOF 4940 cat > conftest.$ac_ext <<EOF
4931 #line 4932 "configure" 4941 #line 4942 "configure"
4932 #include "confdefs.h" 4942 #include "confdefs.h"
4933 #include <stdio.h> 4943 #include <stdio.h>
4934 main() 4944 main()
4935 { 4945 {
4936 FILE *f=fopen("conftestval", "w"); 4946 FILE *f=fopen("conftestval", "w");
4937 if (!f) exit(1); 4947 if (!f) exit(1);
4938 fprintf(f, "%d\n", sizeof(void *)); 4948 fprintf(f, "%d\n", sizeof(void *));
4939 exit(0); 4949 exit(0);
4940 } 4950 }
4941 EOF 4951 EOF
4942 if { (eval echo configure:4943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4952 if { (eval echo configure:4953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4943 then 4953 then
4944 ac_cv_sizeof_void_p=`cat conftestval` 4954 ac_cv_sizeof_void_p=`cat conftestval`
4945 else 4955 else
4946 conftest_rc="$?" 4956 conftest_rc="$?"
4947 echo "configure: failed program was:" >&5 4957 echo "configure: failed program was:" >&5
4959 EOF 4969 EOF
4960 } 4970 }
4961 4971
4962 4972
4963 echo $ac_n "checking size of double""... $ac_c" 1>&6 4973 echo $ac_n "checking size of double""... $ac_c" 1>&6
4964 echo "configure:4965: checking size of double" >&5 4974 echo "configure:4975: checking size of double" >&5
4965 4975
4966 cat > conftest.$ac_ext <<EOF 4976 cat > conftest.$ac_ext <<EOF
4967 #line 4968 "configure" 4977 #line 4978 "configure"
4968 #include "confdefs.h" 4978 #include "confdefs.h"
4969 #include <stdio.h> 4979 #include <stdio.h>
4970 main() 4980 main()
4971 { 4981 {
4972 FILE *f=fopen("conftestval", "w"); 4982 FILE *f=fopen("conftestval", "w");
4973 if (!f) exit(1); 4983 if (!f) exit(1);
4974 fprintf(f, "%d\n", sizeof(double)); 4984 fprintf(f, "%d\n", sizeof(double));
4975 exit(0); 4985 exit(0);
4976 } 4986 }
4977 EOF 4987 EOF
4978 if { (eval echo configure:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4979 then 4989 then
4980 ac_cv_sizeof_double=`cat conftestval` 4990 ac_cv_sizeof_double=`cat conftestval`
4981 else 4991 else
4982 conftest_rc="$?" 4992 conftest_rc="$?"
4983 echo "configure: failed program was:" >&5 4993 echo "configure: failed program was:" >&5
4996 } 5006 }
4997 5007
4998 5008
4999 5009
5000 echo $ac_n "checking for long file names""... $ac_c" 1>&6 5010 echo $ac_n "checking for long file names""... $ac_c" 1>&6
5001 echo "configure:5002: checking for long file names" >&5 5011 echo "configure:5012: checking for long file names" >&5
5002 5012
5003 ac_cv_sys_long_file_names=yes 5013 ac_cv_sys_long_file_names=yes
5004 # Test for long file names in all the places we know might matter: 5014 # Test for long file names in all the places we know might matter:
5005 # . the current directory, where building will happen 5015 # . the current directory, where building will happen
5006 # $prefix/lib where we will be installing things 5016 # $prefix/lib where we will be installing things
5042 5052
5043 fi 5053 fi
5044 5054
5045 5055
5046 echo $ac_n "checking for sin""... $ac_c" 1>&6 5056 echo $ac_n "checking for sin""... $ac_c" 1>&6
5047 echo "configure:5048: checking for sin" >&5 5057 echo "configure:5058: checking for sin" >&5
5048 5058
5049 cat > conftest.$ac_ext <<EOF 5059 cat > conftest.$ac_ext <<EOF
5050 #line 5051 "configure" 5060 #line 5061 "configure"
5051 #include "confdefs.h" 5061 #include "confdefs.h"
5052 /* System header to define __stub macros and hopefully few prototypes, 5062 /* System header to define __stub macros and hopefully few prototypes,
5053 which can conflict with char sin(); below. */ 5063 which can conflict with char sin(); below. */
5054 #include <assert.h> 5064 #include <assert.h>
5055 /* Override any gcc2 internal prototype to avoid an error. */ 5065 /* Override any gcc2 internal prototype to avoid an error. */
5068 sin(); 5078 sin();
5069 #endif 5079 #endif
5070 5080
5071 ; return 0; } 5081 ; return 0; }
5072 EOF 5082 EOF
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5074 rm -rf conftest* 5084 rm -rf conftest*
5075 eval "ac_cv_func_sin=yes" 5085 eval "ac_cv_func_sin=yes"
5076 else 5086 else
5077 echo "configure: failed program was:" >&5 5087 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5 5088 cat conftest.$ac_ext >&5
5086 : 5096 :
5087 else 5097 else
5088 echo "$ac_t""no" 1>&6 5098 echo "$ac_t""no" 1>&6
5089 5099
5090 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 5100 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
5091 echo "configure:5092: checking for sin in -lm" >&5 5101 echo "configure:5102: checking for sin in -lm" >&5
5092 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 5102 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
5093 5103
5094 xe_check_libs=" -lm " 5104 xe_check_libs=" -lm "
5095 cat > conftest.$ac_ext <<EOF 5105 cat > conftest.$ac_ext <<EOF
5096 #line 5097 "configure" 5106 #line 5107 "configure"
5097 #include "confdefs.h" 5107 #include "confdefs.h"
5098 /* Override any gcc2 internal prototype to avoid an error. */ 5108 /* Override any gcc2 internal prototype to avoid an error. */
5099 /* We use char because int might match the return type of a gcc2 5109 /* We use char because int might match the return type of a gcc2
5100 builtin and then its argument prototype would still apply. */ 5110 builtin and then its argument prototype would still apply. */
5101 char sin(); 5111 char sin();
5102 5112
5103 int main() { 5113 int main() {
5104 sin() 5114 sin()
5105 ; return 0; } 5115 ; return 0; }
5106 EOF 5116 EOF
5107 if { (eval echo configure:5108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5117 if { (eval echo configure:5118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 rm -rf conftest* 5118 rm -rf conftest*
5109 eval "ac_cv_lib_$ac_lib_var=yes" 5119 eval "ac_cv_lib_$ac_lib_var=yes"
5110 else 5120 else
5111 echo "configure: failed program was:" >&5 5121 echo "configure: failed program was:" >&5
5112 cat conftest.$ac_ext >&5 5122 cat conftest.$ac_ext >&5
5137 5147
5138 fi 5148 fi
5139 5149
5140 5150
5141 cat > conftest.$ac_ext <<EOF 5151 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure" 5152 #line 5153 "configure"
5143 #include "confdefs.h" 5153 #include "confdefs.h"
5144 #include <math.h> 5154 #include <math.h>
5145 int main() { 5155 int main() {
5146 return atanh(1.0) + asinh(1.0) + acosh(1.0); 5156 return atanh(1.0) + asinh(1.0) + acosh(1.0);
5147 ; return 0; } 5157 ; return 0; }
5148 EOF 5158 EOF
5149 if { (eval echo configure:5150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5159 if { (eval echo configure:5160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5150 rm -rf conftest* 5160 rm -rf conftest*
5151 { test "$extra_verbose" = "yes" && cat << \EOF 5161 { test "$extra_verbose" = "yes" && cat << \EOF
5152 Defining HAVE_INVERSE_HYPERBOLIC 5162 Defining HAVE_INVERSE_HYPERBOLIC
5153 EOF 5163 EOF
5154 cat >> confdefs.h <<\EOF 5164 cat >> confdefs.h <<\EOF
5163 rm -f conftest* 5173 rm -f conftest*
5164 5174
5165 for ac_func in mkstemp 5175 for ac_func in mkstemp
5166 do 5176 do
5167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5168 echo "configure:5169: checking for $ac_func" >&5 5178 echo "configure:5179: checking for $ac_func" >&5
5169 5179
5170 cat > conftest.$ac_ext <<EOF 5180 cat > conftest.$ac_ext <<EOF
5171 #line 5172 "configure" 5181 #line 5182 "configure"
5172 #include "confdefs.h" 5182 #include "confdefs.h"
5173 /* System header to define __stub macros and hopefully few prototypes, 5183 /* System header to define __stub macros and hopefully few prototypes,
5174 which can conflict with char $ac_func(); below. */ 5184 which can conflict with char $ac_func(); below. */
5175 #include <assert.h> 5185 #include <assert.h>
5176 /* Override any gcc2 internal prototype to avoid an error. */ 5186 /* Override any gcc2 internal prototype to avoid an error. */
5189 $ac_func(); 5199 $ac_func();
5190 #endif 5200 #endif
5191 5201
5192 ; return 0; } 5202 ; return 0; }
5193 EOF 5203 EOF
5194 if { (eval echo configure:5195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5204 if { (eval echo configure:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5195 rm -rf conftest* 5205 rm -rf conftest*
5196 eval "ac_cv_func_$ac_func=yes" 5206 eval "ac_cv_func_$ac_func=yes"
5197 else 5207 else
5198 echo "configure: failed program was:" >&5 5208 echo "configure: failed program was:" >&5
5199 cat conftest.$ac_ext >&5 5209 cat conftest.$ac_ext >&5
5218 fi 5228 fi
5219 done 5229 done
5220 5230
5221 5231
5222 echo "checking type of mail spool file locking" 1>&6 5232 echo "checking type of mail spool file locking" 1>&6
5223 echo "configure:5224: checking type of mail spool file locking" >&5 5233 echo "configure:5234: checking type of mail spool file locking" >&5
5224 for ac_func in lockf flock 5234 for ac_func in lockf flock
5225 do 5235 do
5226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5227 echo "configure:5228: checking for $ac_func" >&5 5237 echo "configure:5238: checking for $ac_func" >&5
5228 5238
5229 cat > conftest.$ac_ext <<EOF 5239 cat > conftest.$ac_ext <<EOF
5230 #line 5231 "configure" 5240 #line 5241 "configure"
5231 #include "confdefs.h" 5241 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes, 5242 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char $ac_func(); below. */ 5243 which can conflict with char $ac_func(); below. */
5234 #include <assert.h> 5244 #include <assert.h>
5235 /* Override any gcc2 internal prototype to avoid an error. */ 5245 /* Override any gcc2 internal prototype to avoid an error. */
5248 $ac_func(); 5258 $ac_func();
5249 #endif 5259 #endif
5250 5260
5251 ; return 0; } 5261 ; return 0; }
5252 EOF 5262 EOF
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5263 if { (eval echo configure:5264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5254 rm -rf conftest* 5264 rm -rf conftest*
5255 eval "ac_cv_func_$ac_func=yes" 5265 eval "ac_cv_func_$ac_func=yes"
5256 else 5266 else
5257 echo "configure: failed program was:" >&5 5267 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5 5268 cat conftest.$ac_ext >&5
5311 } 5321 }
5312 5322
5313 elif test "$mail_locking" = "pop"; then 5323 elif test "$mail_locking" = "pop"; then
5314 with_pop=yes 5324 with_pop=yes
5315 mail_locking= 5325 mail_locking=
5316 else mail_locking="dot-locking"; { test "$extra_verbose" = "yes" && cat << \EOF 5326 elif test "$mail_locking" = "mmdf"; then { test "$extra_verbose" = "yes" && cat << \EOF
5327 Defining MAIL_LOCK_MMDF
5328 EOF
5329 cat >> confdefs.h <<\EOF
5330 #define MAIL_LOCK_MMDF 1
5331 EOF
5332 }
5333
5334 else mail_locking="file"; { test "$extra_verbose" = "yes" && cat << \EOF
5317 Defining MAIL_LOCK_DOT 5335 Defining MAIL_LOCK_DOT
5318 EOF 5336 EOF
5319 cat >> confdefs.h <<\EOF 5337 cat >> confdefs.h <<\EOF
5320 #define MAIL_LOCK_DOT 1 5338 #define MAIL_LOCK_DOT 1
5321 EOF 5339 EOF
5330 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 5348 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5331 5349
5332 case "$opsys" in decosf*) 5350 case "$opsys" in decosf*)
5333 5351
5334 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 5352 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5335 echo "configure:5336: checking for cma_open in -lpthreads" >&5 5353 echo "configure:5354: checking for cma_open in -lpthreads" >&5
5336 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 5354 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5337 5355
5338 xe_check_libs=" -lpthreads " 5356 xe_check_libs=" -lpthreads "
5339 cat > conftest.$ac_ext <<EOF 5357 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure" 5358 #line 5359 "configure"
5341 #include "confdefs.h" 5359 #include "confdefs.h"
5342 /* Override any gcc2 internal prototype to avoid an error. */ 5360 /* Override any gcc2 internal prototype to avoid an error. */
5343 /* We use char because int might match the return type of a gcc2 5361 /* We use char because int might match the return type of a gcc2
5344 builtin and then its argument prototype would still apply. */ 5362 builtin and then its argument prototype would still apply. */
5345 char cma_open(); 5363 char cma_open();
5346 5364
5347 int main() { 5365 int main() {
5348 cma_open() 5366 cma_open()
5349 ; return 0; } 5367 ; return 0; }
5350 EOF 5368 EOF
5351 if { (eval echo configure:5352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5369 if { (eval echo configure:5370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5352 rm -rf conftest* 5370 rm -rf conftest*
5353 eval "ac_cv_lib_$ac_lib_var=yes" 5371 eval "ac_cv_lib_$ac_lib_var=yes"
5354 else 5372 else
5355 echo "configure: failed program was:" >&5 5373 echo "configure: failed program was:" >&5
5356 cat conftest.$ac_ext >&5 5374 cat conftest.$ac_ext >&5
5383 c_switch_site="$c_switch_site -threads" ;; 5401 c_switch_site="$c_switch_site -threads" ;;
5384 esac 5402 esac
5385 5403
5386 5404
5387 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5405 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5388 echo "configure:5389: checking whether the -xildoff compiler flag is required" >&5 5406 echo "configure:5407: checking whether the -xildoff compiler flag is required" >&5
5389 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5407 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5390 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5408 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5391 then echo "$ac_t""no" 1>&6; 5409 then echo "$ac_t""no" 1>&6;
5392 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 5410 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
5393 fi 5411 fi
5395 fi 5413 fi
5396 5414
5397 if test "$opsys" = "sol2"; then 5415 if test "$opsys" = "sol2"; then
5398 if test "$os_release" -ge 506; then 5416 if test "$os_release" -ge 506; then
5399 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5417 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5400 echo "configure:5401: checking for \"-z ignore\" linker flag" >&5 5418 echo "configure:5419: checking for \"-z ignore\" linker flag" >&5
5401 case "`ld -h 2>&1`" in 5419 case "`ld -h 2>&1`" in
5402 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5420 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5403 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5421 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5404 *) echo "$ac_t""no" 1>&6 ;; 5422 *) echo "$ac_t""no" 1>&6 ;;
5405 esac 5423 esac
5406 fi 5424 fi
5407 fi 5425 fi
5408 5426
5409 5427
5410 echo "checking "for specified window system"" 1>&6 5428 echo "checking "for specified window system"" 1>&6
5411 echo "configure:5412: checking "for specified window system"" >&5 5429 echo "configure:5430: checking "for specified window system"" >&5
5412 5430
5413 5431
5414 GNOME_CONFIG=no 5432 GNOME_CONFIG=no
5415 GTK_CONFIG=no 5433 GTK_CONFIG=no
5416 5434
5417 if test "$with_gnome" != "no"; then 5435 if test "$with_gnome" != "no"; then
5418 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5436 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5419 echo "configure:5420: checking for GNOME configuration script" >&5 5437 echo "configure:5438: checking for GNOME configuration script" >&5
5420 for possible in gnome-config 5438 for possible in gnome-config
5421 do 5439 do
5422 possible_version=`${possible} --version 2> /dev/null` 5440 possible_version=`${possible} --version 2> /dev/null`
5423 if test "x${possible_version}" != "x"; then 5441 if test "x${possible_version}" != "x"; then
5424 GNOME_CONFIG="${possible}" 5442 GNOME_CONFIG="${possible}"
5445 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5463 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5446 fi 5464 fi
5447 5465
5448 if test "$with_gtk" != "no";then 5466 if test "$with_gtk" != "no";then
5449 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5467 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5450 echo "configure:5451: checking for GTK configuration script" >&5 5468 echo "configure:5469: checking for GTK configuration script" >&5
5451 for possible in gtk12-config gtk14-config gtk-config 5469 for possible in gtk12-config gtk14-config gtk-config
5452 do 5470 do
5453 possible_version=`${possible} --version 2> /dev/null` 5471 possible_version=`${possible} --version 2> /dev/null`
5454 if test "x${possible_version}" != "x"; then 5472 if test "x${possible_version}" != "x"; then
5455 GTK_CONFIG="${possible}" 5473 GTK_CONFIG="${possible}"
5467 echo "$ac_t""${GTK_CONFIG}" 1>&6 5485 echo "$ac_t""${GTK_CONFIG}" 1>&6
5468 fi 5486 fi
5469 5487
5470 if test "${GTK_CONFIG}" != "no"; then 5488 if test "${GTK_CONFIG}" != "no"; then
5471 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5489 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5472 echo "configure:5473: checking gtk version" >&5 5490 echo "configure:5491: checking gtk version" >&5
5473 GTK_VERSION=`${GTK_CONFIG} --version` 5491 GTK_VERSION=`${GTK_CONFIG} --version`
5474 echo "$ac_t""${GTK_VERSION}" 1>&6 5492 echo "$ac_t""${GTK_VERSION}" 1>&6
5475 5493
5476 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5494 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5477 echo "configure:5478: checking gtk libs" >&5 5495 echo "configure:5496: checking gtk libs" >&5
5478 GTK_LIBS=`${GTK_CONFIG} --libs` 5496 GTK_LIBS=`${GTK_CONFIG} --libs`
5479 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5497 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5480 echo "$ac_t""${GTK_LIBS}" 1>&6 5498 echo "$ac_t""${GTK_LIBS}" 1>&6
5481 5499
5482 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5500 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5483 echo "configure:5484: checking gtk cflags" >&5 5501 echo "configure:5502: checking gtk cflags" >&5
5484 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5502 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5485 if test "$GCC" = "yes"; then 5503 if test "$GCC" = "yes"; then
5486 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" 5504 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5487 fi 5505 fi
5488 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5506 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5489 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5507 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5490 5508
5491 5509
5492 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5510 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5493 echo "configure:5494: checking for main in -lgdk_imlib" >&5 5511 echo "configure:5512: checking for main in -lgdk_imlib" >&5
5494 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5512 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5495 5513
5496 xe_check_libs=" -lgdk_imlib " 5514 xe_check_libs=" -lgdk_imlib "
5497 cat > conftest.$ac_ext <<EOF 5515 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure" 5516 #line 5517 "configure"
5499 #include "confdefs.h" 5517 #include "confdefs.h"
5500 5518
5501 int main() { 5519 int main() {
5502 main() 5520 main()
5503 ; return 0; } 5521 ; return 0; }
5504 EOF 5522 EOF
5505 if { (eval echo configure:5506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5506 rm -rf conftest* 5524 rm -rf conftest*
5507 eval "ac_cv_lib_$ac_lib_var=yes" 5525 eval "ac_cv_lib_$ac_lib_var=yes"
5508 else 5526 else
5509 echo "configure: failed program was:" >&5 5527 echo "configure: failed program was:" >&5
5510 cat conftest.$ac_ext >&5 5528 cat conftest.$ac_ext >&5
5522 fi 5540 fi
5523 5541
5524 5542
5525 5543
5526 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5544 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5527 echo "configure:5528: checking for Imlib_init in -lImlib" >&5 5545 echo "configure:5546: checking for Imlib_init in -lImlib" >&5
5528 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5546 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5529 5547
5530 xe_check_libs=" -lImlib " 5548 xe_check_libs=" -lImlib "
5531 cat > conftest.$ac_ext <<EOF 5549 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure" 5550 #line 5551 "configure"
5533 #include "confdefs.h" 5551 #include "confdefs.h"
5534 /* Override any gcc2 internal prototype to avoid an error. */ 5552 /* Override any gcc2 internal prototype to avoid an error. */
5535 /* We use char because int might match the return type of a gcc2 5553 /* We use char because int might match the return type of a gcc2
5536 builtin and then its argument prototype would still apply. */ 5554 builtin and then its argument prototype would still apply. */
5537 char Imlib_init(); 5555 char Imlib_init();
5538 5556
5539 int main() { 5557 int main() {
5540 Imlib_init() 5558 Imlib_init()
5541 ; return 0; } 5559 ; return 0; }
5542 EOF 5560 EOF
5543 if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5544 rm -rf conftest* 5562 rm -rf conftest*
5545 eval "ac_cv_lib_$ac_lib_var=yes" 5563 eval "ac_cv_lib_$ac_lib_var=yes"
5546 else 5564 else
5547 echo "configure: failed program was:" >&5 5565 echo "configure: failed program was:" >&5
5548 cat conftest.$ac_ext >&5 5566 cat conftest.$ac_ext >&5
5561 5579
5562 5580
5563 for ac_func in gdk_imlib_init 5581 for ac_func in gdk_imlib_init
5564 do 5582 do
5565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5583 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5566 echo "configure:5567: checking for $ac_func" >&5 5584 echo "configure:5585: checking for $ac_func" >&5
5567 5585
5568 cat > conftest.$ac_ext <<EOF 5586 cat > conftest.$ac_ext <<EOF
5569 #line 5570 "configure" 5587 #line 5588 "configure"
5570 #include "confdefs.h" 5588 #include "confdefs.h"
5571 /* System header to define __stub macros and hopefully few prototypes, 5589 /* System header to define __stub macros and hopefully few prototypes,
5572 which can conflict with char $ac_func(); below. */ 5590 which can conflict with char $ac_func(); below. */
5573 #include <assert.h> 5591 #include <assert.h>
5574 /* Override any gcc2 internal prototype to avoid an error. */ 5592 /* Override any gcc2 internal prototype to avoid an error. */
5587 $ac_func(); 5605 $ac_func();
5588 #endif 5606 #endif
5589 5607
5590 ; return 0; } 5608 ; return 0; }
5591 EOF 5609 EOF
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5610 if { (eval echo configure:5611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5593 rm -rf conftest* 5611 rm -rf conftest*
5594 eval "ac_cv_func_$ac_func=yes" 5612 eval "ac_cv_func_$ac_func=yes"
5595 else 5613 else
5596 echo "configure: failed program was:" >&5 5614 echo "configure: failed program was:" >&5
5597 cat conftest.$ac_ext >&5 5615 cat conftest.$ac_ext >&5
5671 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5689 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5672 for ac_hdr in glade/glade.h glade.h 5690 for ac_hdr in glade/glade.h glade.h
5673 do 5691 do
5674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5676 echo "configure:5677: checking for $ac_hdr" >&5 5694 echo "configure:5695: checking for $ac_hdr" >&5
5677 5695
5678 cat > conftest.$ac_ext <<EOF 5696 cat > conftest.$ac_ext <<EOF
5679 #line 5680 "configure" 5697 #line 5698 "configure"
5680 #include "confdefs.h" 5698 #include "confdefs.h"
5681 #include <$ac_hdr> 5699 #include <$ac_hdr>
5682 EOF 5700 EOF
5683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5684 { (eval echo configure:5685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5702 { (eval echo configure:5703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5686 if test -z "$ac_err"; then 5704 if test -z "$ac_err"; then
5687 rm -rf conftest* 5705 rm -rf conftest*
5688 eval "ac_cv_header_$ac_safe=yes" 5706 eval "ac_cv_header_$ac_safe=yes"
5689 else 5707 else
5710 fi 5728 fi
5711 done 5729 done
5712 5730
5713 5731
5714 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5732 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5715 echo "configure:5716: checking for main in -lxml" >&5 5733 echo "configure:5734: checking for main in -lxml" >&5
5716 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5734 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5717 5735
5718 xe_check_libs=" -lxml " 5736 xe_check_libs=" -lxml "
5719 cat > conftest.$ac_ext <<EOF 5737 cat > conftest.$ac_ext <<EOF
5720 #line 5721 "configure" 5738 #line 5739 "configure"
5721 #include "confdefs.h" 5739 #include "confdefs.h"
5722 5740
5723 int main() { 5741 int main() {
5724 main() 5742 main()
5725 ; return 0; } 5743 ; return 0; }
5726 EOF 5744 EOF
5727 if { (eval echo configure:5728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5728 rm -rf conftest* 5746 rm -rf conftest*
5729 eval "ac_cv_lib_$ac_lib_var=yes" 5747 eval "ac_cv_lib_$ac_lib_var=yes"
5730 else 5748 else
5731 echo "configure: failed program was:" >&5 5749 echo "configure: failed program was:" >&5
5732 cat conftest.$ac_ext >&5 5750 cat conftest.$ac_ext >&5
5744 fi 5762 fi
5745 5763
5746 5764
5747 5765
5748 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5766 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5749 echo "configure:5750: checking for main in -lglade" >&5 5767 echo "configure:5768: checking for main in -lglade" >&5
5750 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5768 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5751 5769
5752 xe_check_libs=" -lglade " 5770 xe_check_libs=" -lglade "
5753 cat > conftest.$ac_ext <<EOF 5771 cat > conftest.$ac_ext <<EOF
5754 #line 5755 "configure" 5772 #line 5773 "configure"
5755 #include "confdefs.h" 5773 #include "confdefs.h"
5756 5774
5757 int main() { 5775 int main() {
5758 main() 5776 main()
5759 ; return 0; } 5777 ; return 0; }
5760 EOF 5778 EOF
5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5779 if { (eval echo configure:5780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5762 rm -rf conftest* 5780 rm -rf conftest*
5763 eval "ac_cv_lib_$ac_lib_var=yes" 5781 eval "ac_cv_lib_$ac_lib_var=yes"
5764 else 5782 else
5765 echo "configure: failed program was:" >&5 5783 echo "configure: failed program was:" >&5
5766 cat conftest.$ac_ext >&5 5784 cat conftest.$ac_ext >&5
5778 fi 5796 fi
5779 5797
5780 5798
5781 5799
5782 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5800 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5783 echo "configure:5784: checking for main in -lglade-gnome" >&5 5801 echo "configure:5802: checking for main in -lglade-gnome" >&5
5784 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5802 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5785 5803
5786 xe_check_libs=" -lglade-gnome " 5804 xe_check_libs=" -lglade-gnome "
5787 cat > conftest.$ac_ext <<EOF 5805 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure" 5806 #line 5807 "configure"
5789 #include "confdefs.h" 5807 #include "confdefs.h"
5790 5808
5791 int main() { 5809 int main() {
5792 main() 5810 main()
5793 ; return 0; } 5811 ; return 0; }
5794 EOF 5812 EOF
5795 if { (eval echo configure:5796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5796 rm -rf conftest* 5814 rm -rf conftest*
5797 eval "ac_cv_lib_$ac_lib_var=yes" 5815 eval "ac_cv_lib_$ac_lib_var=yes"
5798 else 5816 else
5799 echo "configure: failed program was:" >&5 5817 echo "configure: failed program was:" >&5
5800 cat conftest.$ac_ext >&5 5818 cat conftest.$ac_ext >&5
5811 echo "$ac_t""no" 1>&6 5829 echo "$ac_t""no" 1>&6
5812 fi 5830 fi
5813 5831
5814 5832
5815 cat > conftest.$ac_ext <<EOF 5833 cat > conftest.$ac_ext <<EOF
5816 #line 5817 "configure" 5834 #line 5835 "configure"
5817 #include "confdefs.h" 5835 #include "confdefs.h"
5818 #include <glade/glade-xml.h> 5836 #include <glade/glade-xml.h>
5819 EOF 5837 EOF
5820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5821 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5839 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5870 # If we find X, set shell vars x_includes and x_libraries to the 5888 # If we find X, set shell vars x_includes and x_libraries to the
5871 # paths, otherwise set no_x=yes. 5889 # paths, otherwise set no_x=yes.
5872 # Uses ac_ vars as temps to allow command line to override cache and checks. 5890 # Uses ac_ vars as temps to allow command line to override cache and checks.
5873 # --without-x overrides everything else, but does not touch the cache. 5891 # --without-x overrides everything else, but does not touch the cache.
5874 echo $ac_n "checking for X""... $ac_c" 1>&6 5892 echo $ac_n "checking for X""... $ac_c" 1>&6
5875 echo "configure:5876: checking for X" >&5 5893 echo "configure:5894: checking for X" >&5
5876 5894
5877 # Check whether --with-x or --without-x was given. 5895 # Check whether --with-x or --without-x was given.
5878 if test "${with_x+set}" = set; then 5896 if test "${with_x+set}" = set; then
5879 withval="$with_x" 5897 withval="$with_x"
5880 : 5898 :
5930 # Guess where to find include files, by looking for this one X11 .h file. 5948 # Guess where to find include files, by looking for this one X11 .h file.
5931 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5949 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5932 5950
5933 # First, try using that file with no special directory specified. 5951 # First, try using that file with no special directory specified.
5934 cat > conftest.$ac_ext <<EOF 5952 cat > conftest.$ac_ext <<EOF
5935 #line 5936 "configure" 5953 #line 5954 "configure"
5936 #include "confdefs.h" 5954 #include "confdefs.h"
5937 #include <$x_direct_test_include> 5955 #include <$x_direct_test_include>
5938 EOF 5956 EOF
5939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5940 { (eval echo configure:5941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5958 { (eval echo configure:5959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5942 if test -z "$ac_err"; then 5960 if test -z "$ac_err"; then
5943 rm -rf conftest* 5961 rm -rf conftest*
5944 # We can compile using X headers with no special include directory. 5962 # We can compile using X headers with no special include directory.
5945 ac_x_includes= 5963 ac_x_includes=
6004 # See if we find them without any special options. 6022 # See if we find them without any special options.
6005 # Don't add to $LIBS permanently. 6023 # Don't add to $LIBS permanently.
6006 ac_save_LIBS="$LIBS" 6024 ac_save_LIBS="$LIBS"
6007 LIBS="-l$x_direct_test_library $LIBS" 6025 LIBS="-l$x_direct_test_library $LIBS"
6008 cat > conftest.$ac_ext <<EOF 6026 cat > conftest.$ac_ext <<EOF
6009 #line 6010 "configure" 6027 #line 6028 "configure"
6010 #include "confdefs.h" 6028 #include "confdefs.h"
6011 6029
6012 int main() { 6030 int main() {
6013 ${x_direct_test_function}() 6031 ${x_direct_test_function}()
6014 ; return 0; } 6032 ; return 0; }
6015 EOF 6033 EOF
6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6017 rm -rf conftest* 6035 rm -rf conftest*
6018 LIBS="$ac_save_LIBS" 6036 LIBS="$ac_save_LIBS"
6019 # We can link X programs with no special library path. 6037 # We can link X programs with no special library path.
6020 ac_x_libraries= 6038 ac_x_libraries=
6021 else 6039 else
6120 # For Solaris; some versions of Sun CC require a space after -R and 6138 # For Solaris; some versions of Sun CC require a space after -R and
6121 # others require no space. Words are not sufficient . . . . 6139 # others require no space. Words are not sufficient . . . .
6122 case "`(uname -sr) 2>/dev/null`" in 6140 case "`(uname -sr) 2>/dev/null`" in
6123 "SunOS 5"*) 6141 "SunOS 5"*)
6124 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 6142 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
6125 echo "configure:6126: checking whether -R must be followed by a space" >&5 6143 echo "configure:6144: checking whether -R must be followed by a space" >&5
6126 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 6144 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
6127 cat > conftest.$ac_ext <<EOF 6145 cat > conftest.$ac_ext <<EOF
6128 #line 6129 "configure" 6146 #line 6147 "configure"
6129 #include "confdefs.h" 6147 #include "confdefs.h"
6130 6148
6131 int main() { 6149 int main() {
6132 6150
6133 ; return 0; } 6151 ; return 0; }
6134 EOF 6152 EOF
6135 if { (eval echo configure:6136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6136 rm -rf conftest* 6154 rm -rf conftest*
6137 ac_R_nospace=yes 6155 ac_R_nospace=yes
6138 else 6156 else
6139 echo "configure: failed program was:" >&5 6157 echo "configure: failed program was:" >&5
6140 cat conftest.$ac_ext >&5 6158 cat conftest.$ac_ext >&5
6146 echo "$ac_t""no" 1>&6 6164 echo "$ac_t""no" 1>&6
6147 X_LIBS="$X_LIBS -R$x_libraries" 6165 X_LIBS="$X_LIBS -R$x_libraries"
6148 else 6166 else
6149 LIBS="$ac_xsave_LIBS -R $x_libraries" 6167 LIBS="$ac_xsave_LIBS -R $x_libraries"
6150 cat > conftest.$ac_ext <<EOF 6168 cat > conftest.$ac_ext <<EOF
6151 #line 6152 "configure" 6169 #line 6170 "configure"
6152 #include "confdefs.h" 6170 #include "confdefs.h"
6153 6171
6154 int main() { 6172 int main() {
6155 6173
6156 ; return 0; } 6174 ; return 0; }
6157 EOF 6175 EOF
6158 if { (eval echo configure:6159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6159 rm -rf conftest* 6177 rm -rf conftest*
6160 ac_R_space=yes 6178 ac_R_space=yes
6161 else 6179 else
6162 echo "configure: failed program was:" >&5 6180 echo "configure: failed program was:" >&5
6163 cat conftest.$ac_ext >&5 6181 cat conftest.$ac_ext >&5
6189 if test "$with_dnet" = "no" ; then 6207 if test "$with_dnet" = "no" ; then
6190 ac_cv_lib_dnet_dnet_ntoa=no 6208 ac_cv_lib_dnet_dnet_ntoa=no
6191 else 6209 else
6192 6210
6193 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 6211 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6194 echo "configure:6195: checking for dnet_ntoa in -ldnet" >&5 6212 echo "configure:6213: checking for dnet_ntoa in -ldnet" >&5
6195 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6213 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6196 6214
6197 xe_check_libs=" -ldnet " 6215 xe_check_libs=" -ldnet "
6198 cat > conftest.$ac_ext <<EOF 6216 cat > conftest.$ac_ext <<EOF
6199 #line 6200 "configure" 6217 #line 6218 "configure"
6200 #include "confdefs.h" 6218 #include "confdefs.h"
6201 /* Override any gcc2 internal prototype to avoid an error. */ 6219 /* Override any gcc2 internal prototype to avoid an error. */
6202 /* We use char because int might match the return type of a gcc2 6220 /* We use char because int might match the return type of a gcc2
6203 builtin and then its argument prototype would still apply. */ 6221 builtin and then its argument prototype would still apply. */
6204 char dnet_ntoa(); 6222 char dnet_ntoa();
6205 6223
6206 int main() { 6224 int main() {
6207 dnet_ntoa() 6225 dnet_ntoa()
6208 ; return 0; } 6226 ; return 0; }
6209 EOF 6227 EOF
6210 if { (eval echo configure:6211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6211 rm -rf conftest* 6229 rm -rf conftest*
6212 eval "ac_cv_lib_$ac_lib_var=yes" 6230 eval "ac_cv_lib_$ac_lib_var=yes"
6213 else 6231 else
6214 echo "configure: failed program was:" >&5 6232 echo "configure: failed program was:" >&5
6215 cat conftest.$ac_ext >&5 6233 cat conftest.$ac_ext >&5
6229 fi 6247 fi
6230 6248
6231 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6249 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6232 6250
6233 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 6251 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6234 echo "configure:6235: checking for dnet_ntoa in -ldnet_stub" >&5 6252 echo "configure:6253: checking for dnet_ntoa in -ldnet_stub" >&5
6235 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6253 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6236 6254
6237 xe_check_libs=" -ldnet_stub " 6255 xe_check_libs=" -ldnet_stub "
6238 cat > conftest.$ac_ext <<EOF 6256 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure" 6257 #line 6258 "configure"
6240 #include "confdefs.h" 6258 #include "confdefs.h"
6241 /* Override any gcc2 internal prototype to avoid an error. */ 6259 /* Override any gcc2 internal prototype to avoid an error. */
6242 /* We use char because int might match the return type of a gcc2 6260 /* We use char because int might match the return type of a gcc2
6243 builtin and then its argument prototype would still apply. */ 6261 builtin and then its argument prototype would still apply. */
6244 char dnet_ntoa(); 6262 char dnet_ntoa();
6245 6263
6246 int main() { 6264 int main() {
6247 dnet_ntoa() 6265 dnet_ntoa()
6248 ; return 0; } 6266 ; return 0; }
6249 EOF 6267 EOF
6250 if { (eval echo configure:6251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6268 if { (eval echo configure:6269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6251 rm -rf conftest* 6269 rm -rf conftest*
6252 eval "ac_cv_lib_$ac_lib_var=yes" 6270 eval "ac_cv_lib_$ac_lib_var=yes"
6253 else 6271 else
6254 echo "configure: failed program was:" >&5 6272 echo "configure: failed program was:" >&5
6255 cat conftest.$ac_ext >&5 6273 cat conftest.$ac_ext >&5
6274 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 6292 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6275 # needs -lnsl. 6293 # needs -lnsl.
6276 # The nsl library prevents programs from opening the X display 6294 # The nsl library prevents programs from opening the X display
6277 # on Irix 5.2, according to dickey@clark.net. 6295 # on Irix 5.2, according to dickey@clark.net.
6278 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 6296 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6279 echo "configure:6280: checking for gethostbyname" >&5 6297 echo "configure:6298: checking for gethostbyname" >&5
6280 6298
6281 cat > conftest.$ac_ext <<EOF 6299 cat > conftest.$ac_ext <<EOF
6282 #line 6283 "configure" 6300 #line 6301 "configure"
6283 #include "confdefs.h" 6301 #include "confdefs.h"
6284 /* System header to define __stub macros and hopefully few prototypes, 6302 /* System header to define __stub macros and hopefully few prototypes,
6285 which can conflict with char gethostbyname(); below. */ 6303 which can conflict with char gethostbyname(); below. */
6286 #include <assert.h> 6304 #include <assert.h>
6287 /* Override any gcc2 internal prototype to avoid an error. */ 6305 /* Override any gcc2 internal prototype to avoid an error. */
6300 gethostbyname(); 6318 gethostbyname();
6301 #endif 6319 #endif
6302 6320
6303 ; return 0; } 6321 ; return 0; }
6304 EOF 6322 EOF
6305 if { (eval echo configure:6306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6323 if { (eval echo configure:6324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6306 rm -rf conftest* 6324 rm -rf conftest*
6307 eval "ac_cv_func_gethostbyname=yes" 6325 eval "ac_cv_func_gethostbyname=yes"
6308 else 6326 else
6309 echo "configure: failed program was:" >&5 6327 echo "configure: failed program was:" >&5
6310 cat conftest.$ac_ext >&5 6328 cat conftest.$ac_ext >&5
6321 fi 6339 fi
6322 6340
6323 if test $ac_cv_func_gethostbyname = no; then 6341 if test $ac_cv_func_gethostbyname = no; then
6324 6342
6325 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 6343 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6326 echo "configure:6327: checking for gethostbyname in -lnsl" >&5 6344 echo "configure:6345: checking for gethostbyname in -lnsl" >&5
6327 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 6345 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6328 6346
6329 xe_check_libs=" -lnsl " 6347 xe_check_libs=" -lnsl "
6330 cat > conftest.$ac_ext <<EOF 6348 cat > conftest.$ac_ext <<EOF
6331 #line 6332 "configure" 6349 #line 6350 "configure"
6332 #include "confdefs.h" 6350 #include "confdefs.h"
6333 /* Override any gcc2 internal prototype to avoid an error. */ 6351 /* Override any gcc2 internal prototype to avoid an error. */
6334 /* We use char because int might match the return type of a gcc2 6352 /* We use char because int might match the return type of a gcc2
6335 builtin and then its argument prototype would still apply. */ 6353 builtin and then its argument prototype would still apply. */
6336 char gethostbyname(); 6354 char gethostbyname();
6337 6355
6338 int main() { 6356 int main() {
6339 gethostbyname() 6357 gethostbyname()
6340 ; return 0; } 6358 ; return 0; }
6341 EOF 6359 EOF
6342 if { (eval echo configure:6343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6360 if { (eval echo configure:6361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6343 rm -rf conftest* 6361 rm -rf conftest*
6344 eval "ac_cv_lib_$ac_lib_var=yes" 6362 eval "ac_cv_lib_$ac_lib_var=yes"
6345 else 6363 else
6346 echo "configure: failed program was:" >&5 6364 echo "configure: failed program was:" >&5
6347 cat conftest.$ac_ext >&5 6365 cat conftest.$ac_ext >&5
6367 # on later versions), says simon@lia.di.epfl.ch: it contains 6385 # on later versions), says simon@lia.di.epfl.ch: it contains
6368 # gethostby* variants that don't use the nameserver (or something). 6386 # gethostby* variants that don't use the nameserver (or something).
6369 # -lsocket must be given before -lnsl if both are needed. 6387 # -lsocket must be given before -lnsl if both are needed.
6370 # We assume that if connect needs -lnsl, so does gethostbyname. 6388 # We assume that if connect needs -lnsl, so does gethostbyname.
6371 echo $ac_n "checking for connect""... $ac_c" 1>&6 6389 echo $ac_n "checking for connect""... $ac_c" 1>&6
6372 echo "configure:6373: checking for connect" >&5 6390 echo "configure:6391: checking for connect" >&5
6373 6391
6374 cat > conftest.$ac_ext <<EOF 6392 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure" 6393 #line 6394 "configure"
6376 #include "confdefs.h" 6394 #include "confdefs.h"
6377 /* System header to define __stub macros and hopefully few prototypes, 6395 /* System header to define __stub macros and hopefully few prototypes,
6378 which can conflict with char connect(); below. */ 6396 which can conflict with char connect(); below. */
6379 #include <assert.h> 6397 #include <assert.h>
6380 /* Override any gcc2 internal prototype to avoid an error. */ 6398 /* Override any gcc2 internal prototype to avoid an error. */
6393 connect(); 6411 connect();
6394 #endif 6412 #endif
6395 6413
6396 ; return 0; } 6414 ; return 0; }
6397 EOF 6415 EOF
6398 if { (eval echo configure:6399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6416 if { (eval echo configure:6417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6399 rm -rf conftest* 6417 rm -rf conftest*
6400 eval "ac_cv_func_connect=yes" 6418 eval "ac_cv_func_connect=yes"
6401 else 6419 else
6402 echo "configure: failed program was:" >&5 6420 echo "configure: failed program was:" >&5
6403 cat conftest.$ac_ext >&5 6421 cat conftest.$ac_ext >&5
6416 if test $ac_cv_func_connect = no; then 6434 if test $ac_cv_func_connect = no; then
6417 6435
6418 xe_msg_checking="for connect in -lsocket" 6436 xe_msg_checking="for connect in -lsocket"
6419 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6437 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6420 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6438 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6421 echo "configure:6422: checking "$xe_msg_checking"" >&5 6439 echo "configure:6440: checking "$xe_msg_checking"" >&5
6422 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6440 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6423 6441
6424 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6442 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6425 cat > conftest.$ac_ext <<EOF 6443 cat > conftest.$ac_ext <<EOF
6426 #line 6427 "configure" 6444 #line 6445 "configure"
6427 #include "confdefs.h" 6445 #include "confdefs.h"
6428 /* Override any gcc2 internal prototype to avoid an error. */ 6446 /* Override any gcc2 internal prototype to avoid an error. */
6429 /* We use char because int might match the return type of a gcc2 6447 /* We use char because int might match the return type of a gcc2
6430 builtin and then its argument prototype would still apply. */ 6448 builtin and then its argument prototype would still apply. */
6431 char connect(); 6449 char connect();
6432 6450
6433 int main() { 6451 int main() {
6434 connect() 6452 connect()
6435 ; return 0; } 6453 ; return 0; }
6436 EOF 6454 EOF
6437 if { (eval echo configure:6438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6455 if { (eval echo configure:6456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6438 rm -rf conftest* 6456 rm -rf conftest*
6439 eval "ac_cv_lib_$ac_lib_var=yes" 6457 eval "ac_cv_lib_$ac_lib_var=yes"
6440 else 6458 else
6441 echo "configure: failed program was:" >&5 6459 echo "configure: failed program was:" >&5
6442 cat conftest.$ac_ext >&5 6460 cat conftest.$ac_ext >&5
6456 6474
6457 fi 6475 fi
6458 6476
6459 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6477 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6460 echo $ac_n "checking for remove""... $ac_c" 1>&6 6478 echo $ac_n "checking for remove""... $ac_c" 1>&6
6461 echo "configure:6462: checking for remove" >&5 6479 echo "configure:6480: checking for remove" >&5
6462 6480
6463 cat > conftest.$ac_ext <<EOF 6481 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure" 6482 #line 6483 "configure"
6465 #include "confdefs.h" 6483 #include "confdefs.h"
6466 /* System header to define __stub macros and hopefully few prototypes, 6484 /* System header to define __stub macros and hopefully few prototypes,
6467 which can conflict with char remove(); below. */ 6485 which can conflict with char remove(); below. */
6468 #include <assert.h> 6486 #include <assert.h>
6469 /* Override any gcc2 internal prototype to avoid an error. */ 6487 /* Override any gcc2 internal prototype to avoid an error. */
6482 remove(); 6500 remove();
6483 #endif 6501 #endif
6484 6502
6485 ; return 0; } 6503 ; return 0; }
6486 EOF 6504 EOF
6487 if { (eval echo configure:6488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6505 if { (eval echo configure:6506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6488 rm -rf conftest* 6506 rm -rf conftest*
6489 eval "ac_cv_func_remove=yes" 6507 eval "ac_cv_func_remove=yes"
6490 else 6508 else
6491 echo "configure: failed program was:" >&5 6509 echo "configure: failed program was:" >&5
6492 cat conftest.$ac_ext >&5 6510 cat conftest.$ac_ext >&5
6503 fi 6521 fi
6504 6522
6505 if test $ac_cv_func_remove = no; then 6523 if test $ac_cv_func_remove = no; then
6506 6524
6507 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6525 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6508 echo "configure:6509: checking for remove in -lposix" >&5 6526 echo "configure:6527: checking for remove in -lposix" >&5
6509 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6527 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6510 6528
6511 xe_check_libs=" -lposix " 6529 xe_check_libs=" -lposix "
6512 cat > conftest.$ac_ext <<EOF 6530 cat > conftest.$ac_ext <<EOF
6513 #line 6514 "configure" 6531 #line 6532 "configure"
6514 #include "confdefs.h" 6532 #include "confdefs.h"
6515 /* Override any gcc2 internal prototype to avoid an error. */ 6533 /* Override any gcc2 internal prototype to avoid an error. */
6516 /* We use char because int might match the return type of a gcc2 6534 /* We use char because int might match the return type of a gcc2
6517 builtin and then its argument prototype would still apply. */ 6535 builtin and then its argument prototype would still apply. */
6518 char remove(); 6536 char remove();
6519 6537
6520 int main() { 6538 int main() {
6521 remove() 6539 remove()
6522 ; return 0; } 6540 ; return 0; }
6523 EOF 6541 EOF
6524 if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6525 rm -rf conftest* 6543 rm -rf conftest*
6526 eval "ac_cv_lib_$ac_lib_var=yes" 6544 eval "ac_cv_lib_$ac_lib_var=yes"
6527 else 6545 else
6528 echo "configure: failed program was:" >&5 6546 echo "configure: failed program was:" >&5
6529 cat conftest.$ac_ext >&5 6547 cat conftest.$ac_ext >&5
6543 6561
6544 fi 6562 fi
6545 6563
6546 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6564 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6547 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6565 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6548 echo "configure:6549: checking for shmat" >&5 6566 echo "configure:6567: checking for shmat" >&5
6549 6567
6550 cat > conftest.$ac_ext <<EOF 6568 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure" 6569 #line 6570 "configure"
6552 #include "confdefs.h" 6570 #include "confdefs.h"
6553 /* System header to define __stub macros and hopefully few prototypes, 6571 /* System header to define __stub macros and hopefully few prototypes,
6554 which can conflict with char shmat(); below. */ 6572 which can conflict with char shmat(); below. */
6555 #include <assert.h> 6573 #include <assert.h>
6556 /* Override any gcc2 internal prototype to avoid an error. */ 6574 /* Override any gcc2 internal prototype to avoid an error. */
6569 shmat(); 6587 shmat();
6570 #endif 6588 #endif
6571 6589
6572 ; return 0; } 6590 ; return 0; }
6573 EOF 6591 EOF
6574 if { (eval echo configure:6575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 rm -rf conftest* 6593 rm -rf conftest*
6576 eval "ac_cv_func_shmat=yes" 6594 eval "ac_cv_func_shmat=yes"
6577 else 6595 else
6578 echo "configure: failed program was:" >&5 6596 echo "configure: failed program was:" >&5
6579 cat conftest.$ac_ext >&5 6597 cat conftest.$ac_ext >&5
6590 fi 6608 fi
6591 6609
6592 if test $ac_cv_func_shmat = no; then 6610 if test $ac_cv_func_shmat = no; then
6593 6611
6594 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6612 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6595 echo "configure:6596: checking for shmat in -lipc" >&5 6613 echo "configure:6614: checking for shmat in -lipc" >&5
6596 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6614 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6597 6615
6598 xe_check_libs=" -lipc " 6616 xe_check_libs=" -lipc "
6599 cat > conftest.$ac_ext <<EOF 6617 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure" 6618 #line 6619 "configure"
6601 #include "confdefs.h" 6619 #include "confdefs.h"
6602 /* Override any gcc2 internal prototype to avoid an error. */ 6620 /* Override any gcc2 internal prototype to avoid an error. */
6603 /* We use char because int might match the return type of a gcc2 6621 /* We use char because int might match the return type of a gcc2
6604 builtin and then its argument prototype would still apply. */ 6622 builtin and then its argument prototype would still apply. */
6605 char shmat(); 6623 char shmat();
6606 6624
6607 int main() { 6625 int main() {
6608 shmat() 6626 shmat()
6609 ; return 0; } 6627 ; return 0; }
6610 EOF 6628 EOF
6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6629 if { (eval echo configure:6630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6612 rm -rf conftest* 6630 rm -rf conftest*
6613 eval "ac_cv_lib_$ac_lib_var=yes" 6631 eval "ac_cv_lib_$ac_lib_var=yes"
6614 else 6632 else
6615 echo "configure: failed program was:" >&5 6633 echo "configure: failed program was:" >&5
6616 cat conftest.$ac_ext >&5 6634 cat conftest.$ac_ext >&5
6642 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6660 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6643 6661
6644 xe_msg_checking="for IceConnectionNumber in -lICE" 6662 xe_msg_checking="for IceConnectionNumber in -lICE"
6645 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6663 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6646 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6664 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6647 echo "configure:6648: checking "$xe_msg_checking"" >&5 6665 echo "configure:6666: checking "$xe_msg_checking"" >&5
6648 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6666 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6649 6667
6650 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6668 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6651 cat > conftest.$ac_ext <<EOF 6669 cat > conftest.$ac_ext <<EOF
6652 #line 6653 "configure" 6670 #line 6671 "configure"
6653 #include "confdefs.h" 6671 #include "confdefs.h"
6654 /* Override any gcc2 internal prototype to avoid an error. */ 6672 /* Override any gcc2 internal prototype to avoid an error. */
6655 /* We use char because int might match the return type of a gcc2 6673 /* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */ 6674 builtin and then its argument prototype would still apply. */
6657 char IceConnectionNumber(); 6675 char IceConnectionNumber();
6658 6676
6659 int main() { 6677 int main() {
6660 IceConnectionNumber() 6678 IceConnectionNumber()
6661 ; return 0; } 6679 ; return 0; }
6662 EOF 6680 EOF
6663 if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6664 rm -rf conftest* 6682 rm -rf conftest*
6665 eval "ac_cv_lib_$ac_lib_var=yes" 6683 eval "ac_cv_lib_$ac_lib_var=yes"
6666 else 6684 else
6667 echo "configure: failed program was:" >&5 6685 echo "configure: failed program was:" >&5
6668 cat conftest.$ac_ext >&5 6686 cat conftest.$ac_ext >&5
6704 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi 6722 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6705 6723
6706 6724
6707 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6725 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6708 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6726 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6709 echo "configure:6710: checking for Xm/Xm.h" >&5 6727 echo "configure:6728: checking for Xm/Xm.h" >&5
6710 6728
6711 cat > conftest.$ac_ext <<EOF 6729 cat > conftest.$ac_ext <<EOF
6712 #line 6713 "configure" 6730 #line 6731 "configure"
6713 #include "confdefs.h" 6731 #include "confdefs.h"
6714 #include <Xm/Xm.h> 6732 #include <Xm/Xm.h>
6715 EOF 6733 EOF
6716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6717 { (eval echo configure:6718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6735 { (eval echo configure:6736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6719 if test -z "$ac_err"; then 6737 if test -z "$ac_err"; then
6720 rm -rf conftest* 6738 rm -rf conftest*
6721 eval "ac_cv_header_$ac_safe=yes" 6739 eval "ac_cv_header_$ac_safe=yes"
6722 else 6740 else
6729 rm -f conftest* 6747 rm -f conftest*
6730 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6 6749 echo "$ac_t""yes" 1>&6
6732 6750
6733 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6751 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6734 echo "configure:6735: checking for XmStringFree in -lXm" >&5 6752 echo "configure:6753: checking for XmStringFree in -lXm" >&5
6735 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6753 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6736 6754
6737 xe_check_libs=" -lXm " 6755 xe_check_libs=" -lXm "
6738 cat > conftest.$ac_ext <<EOF 6756 cat > conftest.$ac_ext <<EOF
6739 #line 6740 "configure" 6757 #line 6758 "configure"
6740 #include "confdefs.h" 6758 #include "confdefs.h"
6741 /* Override any gcc2 internal prototype to avoid an error. */ 6759 /* Override any gcc2 internal prototype to avoid an error. */
6742 /* We use char because int might match the return type of a gcc2 6760 /* We use char because int might match the return type of a gcc2
6743 builtin and then its argument prototype would still apply. */ 6761 builtin and then its argument prototype would still apply. */
6744 char XmStringFree(); 6762 char XmStringFree();
6745 6763
6746 int main() { 6764 int main() {
6747 XmStringFree() 6765 XmStringFree()
6748 ; return 0; } 6766 ; return 0; }
6749 EOF 6767 EOF
6750 if { (eval echo configure:6751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6751 rm -rf conftest* 6769 rm -rf conftest*
6752 eval "ac_cv_lib_$ac_lib_var=yes" 6770 eval "ac_cv_lib_$ac_lib_var=yes"
6753 else 6771 else
6754 echo "configure: failed program was:" >&5 6772 echo "configure: failed program was:" >&5
6755 cat conftest.$ac_ext >&5 6773 cat conftest.$ac_ext >&5
6897 EOF 6915 EOF
6898 } 6916 }
6899 6917
6900 6918
6901 echo "checking for X defines extracted by xmkmf" 1>&6 6919 echo "checking for X defines extracted by xmkmf" 1>&6
6902 echo "configure:6903: checking for X defines extracted by xmkmf" >&5 6920 echo "configure:6921: checking for X defines extracted by xmkmf" >&5
6903 rm -fr conftestdir 6921 rm -fr conftestdir
6904 if mkdir conftestdir; then 6922 if mkdir conftestdir; then
6905 cd conftestdir 6923 cd conftestdir
6906 cat > Imakefile <<'EOF' 6924 cat > Imakefile <<'EOF'
6907 xetest: 6925 xetest:
6946 done 6964 done
6947 fi 6965 fi
6948 6966
6949 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6967 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6950 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6968 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6951 echo "configure:6952: checking for X11/Intrinsic.h" >&5 6969 echo "configure:6970: checking for X11/Intrinsic.h" >&5
6952 6970
6953 cat > conftest.$ac_ext <<EOF 6971 cat > conftest.$ac_ext <<EOF
6954 #line 6955 "configure" 6972 #line 6973 "configure"
6955 #include "confdefs.h" 6973 #include "confdefs.h"
6956 #include <X11/Intrinsic.h> 6974 #include <X11/Intrinsic.h>
6957 EOF 6975 EOF
6958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6959 { (eval echo configure:6960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6977 { (eval echo configure:6978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6961 if test -z "$ac_err"; then 6979 if test -z "$ac_err"; then
6962 rm -rf conftest* 6980 rm -rf conftest*
6963 eval "ac_cv_header_$ac_safe=yes" 6981 eval "ac_cv_header_$ac_safe=yes"
6964 else 6982 else
6978 fi 6996 fi
6979 6997
6980 6998
6981 6999
6982 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 7000 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6983 echo "configure:6984: checking for XOpenDisplay in -lX11" >&5 7001 echo "configure:7002: checking for XOpenDisplay in -lX11" >&5
6984 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 7002 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6985 7003
6986 xe_check_libs=" -lX11 " 7004 xe_check_libs=" -lX11 "
6987 cat > conftest.$ac_ext <<EOF 7005 cat > conftest.$ac_ext <<EOF
6988 #line 6989 "configure" 7006 #line 7007 "configure"
6989 #include "confdefs.h" 7007 #include "confdefs.h"
6990 /* Override any gcc2 internal prototype to avoid an error. */ 7008 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2 7009 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */ 7010 builtin and then its argument prototype would still apply. */
6993 char XOpenDisplay(); 7011 char XOpenDisplay();
6994 7012
6995 int main() { 7013 int main() {
6996 XOpenDisplay() 7014 XOpenDisplay()
6997 ; return 0; } 7015 ; return 0; }
6998 EOF 7016 EOF
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7017 if { (eval echo configure:7018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7000 rm -rf conftest* 7018 rm -rf conftest*
7001 eval "ac_cv_lib_$ac_lib_var=yes" 7019 eval "ac_cv_lib_$ac_lib_var=yes"
7002 else 7020 else
7003 echo "configure: failed program was:" >&5 7021 echo "configure: failed program was:" >&5
7004 cat conftest.$ac_ext >&5 7022 cat conftest.$ac_ext >&5
7019 if test "$have_lib_x11" != "yes"; then 7037 if test "$have_lib_x11" != "yes"; then
7020 7038
7021 xe_msg_checking="for XGetFontProperty in -lX11" 7039 xe_msg_checking="for XGetFontProperty in -lX11"
7022 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 7040 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
7023 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7041 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7024 echo "configure:7025: checking "$xe_msg_checking"" >&5 7042 echo "configure:7043: checking "$xe_msg_checking"" >&5
7025 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 7043 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
7026 7044
7027 xe_check_libs=" -lX11 -b i486-linuxaout" 7045 xe_check_libs=" -lX11 -b i486-linuxaout"
7028 cat > conftest.$ac_ext <<EOF 7046 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure" 7047 #line 7048 "configure"
7030 #include "confdefs.h" 7048 #include "confdefs.h"
7031 /* Override any gcc2 internal prototype to avoid an error. */ 7049 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2 7050 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */ 7051 builtin and then its argument prototype would still apply. */
7034 char XGetFontProperty(); 7052 char XGetFontProperty();
7035 7053
7036 int main() { 7054 int main() {
7037 XGetFontProperty() 7055 XGetFontProperty()
7038 ; return 0; } 7056 ; return 0; }
7039 EOF 7057 EOF
7040 if { (eval echo configure:7041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7058 if { (eval echo configure:7059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7041 rm -rf conftest* 7059 rm -rf conftest*
7042 eval "ac_cv_lib_$ac_lib_var=yes" 7060 eval "ac_cv_lib_$ac_lib_var=yes"
7043 else 7061 else
7044 echo "configure: failed program was:" >&5 7062 echo "configure: failed program was:" >&5
7045 cat conftest.$ac_ext >&5 7063 cat conftest.$ac_ext >&5
7062 libs_x="-lX11" 7080 libs_x="-lX11"
7063 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 7081 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
7064 7082
7065 7083
7066 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 7084 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
7067 echo "configure:7068: checking for XShapeSelectInput in -lXext" >&5 7085 echo "configure:7086: checking for XShapeSelectInput in -lXext" >&5
7068 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 7086 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
7069 7087
7070 xe_check_libs=" -lXext " 7088 xe_check_libs=" -lXext "
7071 cat > conftest.$ac_ext <<EOF 7089 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure" 7090 #line 7091 "configure"
7073 #include "confdefs.h" 7091 #include "confdefs.h"
7074 /* Override any gcc2 internal prototype to avoid an error. */ 7092 /* Override any gcc2 internal prototype to avoid an error. */
7075 /* We use char because int might match the return type of a gcc2 7093 /* We use char because int might match the return type of a gcc2
7076 builtin and then its argument prototype would still apply. */ 7094 builtin and then its argument prototype would still apply. */
7077 char XShapeSelectInput(); 7095 char XShapeSelectInput();
7078 7096
7079 int main() { 7097 int main() {
7080 XShapeSelectInput() 7098 XShapeSelectInput()
7081 ; return 0; } 7099 ; return 0; }
7082 EOF 7100 EOF
7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084 rm -rf conftest* 7102 rm -rf conftest*
7085 eval "ac_cv_lib_$ac_lib_var=yes" 7103 eval "ac_cv_lib_$ac_lib_var=yes"
7086 else 7104 else
7087 echo "configure: failed program was:" >&5 7105 echo "configure: failed program was:" >&5
7088 cat conftest.$ac_ext >&5 7106 cat conftest.$ac_ext >&5
7101 7119
7102 7120
7103 7121
7104 7122
7105 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 7123 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
7106 echo "configure:7107: checking for XtOpenDisplay in -lXt" >&5 7124 echo "configure:7125: checking for XtOpenDisplay in -lXt" >&5
7107 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 7125 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
7108 7126
7109 xe_check_libs=" -lXt " 7127 xe_check_libs=" -lXt "
7110 cat > conftest.$ac_ext <<EOF 7128 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure" 7129 #line 7130 "configure"
7112 #include "confdefs.h" 7130 #include "confdefs.h"
7113 /* Override any gcc2 internal prototype to avoid an error. */ 7131 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2 7132 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */ 7133 builtin and then its argument prototype would still apply. */
7116 char XtOpenDisplay(); 7134 char XtOpenDisplay();
7117 7135
7118 int main() { 7136 int main() {
7119 XtOpenDisplay() 7137 XtOpenDisplay()
7120 ; return 0; } 7138 ; return 0; }
7121 EOF 7139 EOF
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7123 rm -rf conftest* 7141 rm -rf conftest*
7124 eval "ac_cv_lib_$ac_lib_var=yes" 7142 eval "ac_cv_lib_$ac_lib_var=yes"
7125 else 7143 else
7126 echo "configure: failed program was:" >&5 7144 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5 7145 cat conftest.$ac_ext >&5
7140 fi 7158 fi
7141 7159
7142 7160
7143 7161
7144 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 7162 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
7145 echo "configure:7146: checking the version of X11 being used" >&5 7163 echo "configure:7164: checking the version of X11 being used" >&5
7146 cat > conftest.$ac_ext <<EOF 7164 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure" 7165 #line 7166 "configure"
7148 #include "confdefs.h" 7166 #include "confdefs.h"
7149 #include <X11/Intrinsic.h> 7167 #include <X11/Intrinsic.h>
7150 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 7168 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
7151 EOF 7169 EOF
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7170 if { (eval echo configure:7171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7153 then 7171 then
7154 ./conftest foobar; x11_release=$? 7172 ./conftest foobar; x11_release=$?
7155 else 7173 else
7156 conftest_rc="$?" 7174 conftest_rc="$?"
7157 echo "configure: failed program was:" >&5 7175 echo "configure: failed program was:" >&5
7178 fi 7196 fi
7179 7197
7180 for ac_func in XConvertCase 7198 for ac_func in XConvertCase
7181 do 7199 do
7182 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7183 echo "configure:7184: checking for $ac_func" >&5 7201 echo "configure:7202: checking for $ac_func" >&5
7184 7202
7185 cat > conftest.$ac_ext <<EOF 7203 cat > conftest.$ac_ext <<EOF
7186 #line 7187 "configure" 7204 #line 7205 "configure"
7187 #include "confdefs.h" 7205 #include "confdefs.h"
7188 /* System header to define __stub macros and hopefully few prototypes, 7206 /* System header to define __stub macros and hopefully few prototypes,
7189 which can conflict with char $ac_func(); below. */ 7207 which can conflict with char $ac_func(); below. */
7190 #include <assert.h> 7208 #include <assert.h>
7191 /* Override any gcc2 internal prototype to avoid an error. */ 7209 /* Override any gcc2 internal prototype to avoid an error. */
7204 $ac_func(); 7222 $ac_func();
7205 #endif 7223 #endif
7206 7224
7207 ; return 0; } 7225 ; return 0; }
7208 EOF 7226 EOF
7209 if { (eval echo configure:7210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7210 rm -rf conftest* 7228 rm -rf conftest*
7211 eval "ac_cv_func_$ac_func=yes" 7229 eval "ac_cv_func_$ac_func=yes"
7212 else 7230 else
7213 echo "configure: failed program was:" >&5 7231 echo "configure: failed program was:" >&5
7214 cat conftest.$ac_ext >&5 7232 cat conftest.$ac_ext >&5
7236 7254
7237 for ac_hdr in X11/Xlocale.h 7255 for ac_hdr in X11/Xlocale.h
7238 do 7256 do
7239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7257 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7241 echo "configure:7242: checking for $ac_hdr" >&5 7259 echo "configure:7260: checking for $ac_hdr" >&5
7242 7260
7243 cat > conftest.$ac_ext <<EOF 7261 cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure" 7262 #line 7263 "configure"
7245 #include "confdefs.h" 7263 #include "confdefs.h"
7246 #include <$ac_hdr> 7264 #include <$ac_hdr>
7247 EOF 7265 EOF
7248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7249 { (eval echo configure:7250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7267 { (eval echo configure:7268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7251 if test -z "$ac_err"; then 7269 if test -z "$ac_err"; then
7252 rm -rf conftest* 7270 rm -rf conftest*
7253 eval "ac_cv_header_$ac_safe=yes" 7271 eval "ac_cv_header_$ac_safe=yes"
7254 else 7272 else
7277 7295
7278 7296
7279 for ac_func in XRegisterIMInstantiateCallback 7297 for ac_func in XRegisterIMInstantiateCallback
7280 do 7298 do
7281 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7282 echo "configure:7283: checking for $ac_func" >&5 7300 echo "configure:7301: checking for $ac_func" >&5
7283 7301
7284 cat > conftest.$ac_ext <<EOF 7302 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure" 7303 #line 7304 "configure"
7286 #include "confdefs.h" 7304 #include "confdefs.h"
7287 /* System header to define __stub macros and hopefully few prototypes, 7305 /* System header to define __stub macros and hopefully few prototypes,
7288 which can conflict with char $ac_func(); below. */ 7306 which can conflict with char $ac_func(); below. */
7289 #include <assert.h> 7307 #include <assert.h>
7290 /* Override any gcc2 internal prototype to avoid an error. */ 7308 /* Override any gcc2 internal prototype to avoid an error. */
7303 $ac_func(); 7321 $ac_func();
7304 #endif 7322 #endif
7305 7323
7306 ; return 0; } 7324 ; return 0; }
7307 EOF 7325 EOF
7308 if { (eval echo configure:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7309 rm -rf conftest* 7327 rm -rf conftest*
7310 eval "ac_cv_func_$ac_func=yes" 7328 eval "ac_cv_func_$ac_func=yes"
7311 else 7329 else
7312 echo "configure: failed program was:" >&5 7330 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5 7331 cat conftest.$ac_ext >&5
7331 echo "$ac_t""no" 1>&6 7349 echo "$ac_t""no" 1>&6
7332 fi 7350 fi
7333 done 7351 done
7334 7352
7335 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 7353 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7336 echo "configure:7337: checking for standard XRegisterIMInstantiateCallback prototype" >&5 7354 echo "configure:7355: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7337 cat > conftest.$ac_ext <<EOF 7355 cat > conftest.$ac_ext <<EOF
7338 #line 7339 "configure" 7356 #line 7357 "configure"
7339 #include "confdefs.h" 7357 #include "confdefs.h"
7340 7358
7341 #define NeedFunctionPrototypes 1 7359 #define NeedFunctionPrototypes 1
7342 #include <X11/Xlib.h> 7360 #include <X11/Xlib.h>
7343 extern Bool XRegisterIMInstantiateCallback( 7361 extern Bool XRegisterIMInstantiateCallback(
7345 7363
7346 int main() { 7364 int main() {
7347 7365
7348 ; return 0; } 7366 ; return 0; }
7349 EOF 7367 EOF
7350 if { (eval echo configure:7351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7368 if { (eval echo configure:7369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7351 rm -rf conftest* 7369 rm -rf conftest*
7352 echo "$ac_t""yes" 1>&6 7370 echo "$ac_t""yes" 1>&6
7353 else 7371 else
7354 echo "configure: failed program was:" >&5 7372 echo "configure: failed program was:" >&5
7355 cat conftest.$ac_ext >&5 7373 cat conftest.$ac_ext >&5
7366 fi 7384 fi
7367 rm -f conftest* 7385 rm -f conftest*
7368 7386
7369 test -z "$with_xmu" && { 7387 test -z "$with_xmu" && {
7370 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 7388 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7371 echo "configure:7372: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 7389 echo "configure:7390: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7372 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 7390 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7373 7391
7374 xe_check_libs=" -lXmu " 7392 xe_check_libs=" -lXmu "
7375 cat > conftest.$ac_ext <<EOF 7393 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure" 7394 #line 7395 "configure"
7377 #include "confdefs.h" 7395 #include "confdefs.h"
7378 /* Override any gcc2 internal prototype to avoid an error. */ 7396 /* Override any gcc2 internal prototype to avoid an error. */
7379 /* We use char because int might match the return type of a gcc2 7397 /* We use char because int might match the return type of a gcc2
7380 builtin and then its argument prototype would still apply. */ 7398 builtin and then its argument prototype would still apply. */
7381 char XmuReadBitmapDataFromFile(); 7399 char XmuReadBitmapDataFromFile();
7382 7400
7383 int main() { 7401 int main() {
7384 XmuReadBitmapDataFromFile() 7402 XmuReadBitmapDataFromFile()
7385 ; return 0; } 7403 ; return 0; }
7386 EOF 7404 EOF
7387 if { (eval echo configure:7388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7405 if { (eval echo configure:7406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7388 rm -rf conftest* 7406 rm -rf conftest*
7389 eval "ac_cv_lib_$ac_lib_var=yes" 7407 eval "ac_cv_lib_$ac_lib_var=yes"
7390 else 7408 else
7391 echo "configure: failed program was:" >&5 7409 echo "configure: failed program was:" >&5
7392 cat conftest.$ac_ext >&5 7410 cat conftest.$ac_ext >&5
7421 7439
7422 fi 7440 fi
7423 7441
7424 7442
7425 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7443 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7426 echo "configure:7427: checking for main in -lXbsd" >&5 7444 echo "configure:7445: checking for main in -lXbsd" >&5
7427 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7445 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7428 7446
7429 xe_check_libs=" -lXbsd " 7447 xe_check_libs=" -lXbsd "
7430 cat > conftest.$ac_ext <<EOF 7448 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure" 7449 #line 7450 "configure"
7432 #include "confdefs.h" 7450 #include "confdefs.h"
7433 7451
7434 int main() { 7452 int main() {
7435 main() 7453 main()
7436 ; return 0; } 7454 ; return 0; }
7437 EOF 7455 EOF
7438 if { (eval echo configure:7439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7439 rm -rf conftest* 7457 rm -rf conftest*
7440 eval "ac_cv_lib_$ac_lib_var=yes" 7458 eval "ac_cv_lib_$ac_lib_var=yes"
7441 else 7459 else
7442 echo "configure: failed program was:" >&5 7460 echo "configure: failed program was:" >&5
7443 cat conftest.$ac_ext >&5 7461 cat conftest.$ac_ext >&5
7470 fi 7488 fi
7471 7489
7472 fi 7490 fi
7473 if test "$with_msw" != "no"; then 7491 if test "$with_msw" != "no"; then
7474 echo "checking for MS-Windows" 1>&6 7492 echo "checking for MS-Windows" 1>&6
7475 echo "configure:7476: checking for MS-Windows" >&5 7493 echo "configure:7494: checking for MS-Windows" >&5
7476 7494
7477 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7495 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7478 echo "configure:7479: checking for main in -lgdi32" >&5 7496 echo "configure:7497: checking for main in -lgdi32" >&5
7479 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7497 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7480 7498
7481 xe_check_libs=" -lgdi32 " 7499 xe_check_libs=" -lgdi32 "
7482 cat > conftest.$ac_ext <<EOF 7500 cat > conftest.$ac_ext <<EOF
7483 #line 7484 "configure" 7501 #line 7502 "configure"
7484 #include "confdefs.h" 7502 #include "confdefs.h"
7485 7503
7486 int main() { 7504 int main() {
7487 main() 7505 main()
7488 ; return 0; } 7506 ; return 0; }
7489 EOF 7507 EOF
7490 if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7491 rm -rf conftest* 7509 rm -rf conftest*
7492 eval "ac_cv_lib_$ac_lib_var=yes" 7510 eval "ac_cv_lib_$ac_lib_var=yes"
7493 else 7511 else
7494 echo "configure: failed program was:" >&5 7512 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&5 7513 cat conftest.$ac_ext >&5
7536 test "$with_toolbars" != "no" && with_toolbars=msw 7554 test "$with_toolbars" != "no" && with_toolbars=msw
7537 test "$with_dialogs" != "no" && with_dialogs=msw 7555 test "$with_dialogs" != "no" && with_dialogs=msw
7538 test "$with_widgets" != "no" && with_widgets=msw 7556 test "$with_widgets" != "no" && with_widgets=msw
7539 fi 7557 fi
7540 cat > conftest.$ac_ext <<EOF 7558 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure" 7559 #line 7560 "configure"
7542 #include "confdefs.h" 7560 #include "confdefs.h"
7543 #include <fcntl.h> 7561 #include <fcntl.h>
7544 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7562 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7545 EOF 7563 EOF
7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7564 if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7547 then 7565 then
7548 { test "$extra_verbose" = "yes" && cat << \EOF 7566 { test "$extra_verbose" = "yes" && cat << \EOF
7549 Defining HAVE_MSG_SELECT 7567 Defining HAVE_MSG_SELECT
7550 EOF 7568 EOF
7551 cat >> confdefs.h <<\EOF 7569 cat >> confdefs.h <<\EOF
7602 fi 7620 fi
7603 7621
7604 if test "$with_x11" = "yes"; then 7622 if test "$with_x11" = "yes"; then
7605 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7623 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7606 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7624 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7607 echo "configure:7608: checking for X11/extensions/shape.h" >&5 7625 echo "configure:7626: checking for X11/extensions/shape.h" >&5
7608 7626
7609 cat > conftest.$ac_ext <<EOF 7627 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure" 7628 #line 7629 "configure"
7611 #include "confdefs.h" 7629 #include "confdefs.h"
7612 #include <X11/extensions/shape.h> 7630 #include <X11/extensions/shape.h>
7613 EOF 7631 EOF
7614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7615 { (eval echo configure:7616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7633 { (eval echo configure:7634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7617 if test -z "$ac_err"; then 7635 if test -z "$ac_err"; then
7618 rm -rf conftest* 7636 rm -rf conftest*
7619 eval "ac_cv_header_$ac_safe=yes" 7637 eval "ac_cv_header_$ac_safe=yes"
7620 else 7638 else
7660 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7678 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7661 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7679 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7662 esac 7680 esac
7663 7681
7664 echo "checking for WM_COMMAND option" 1>&6 7682 echo "checking for WM_COMMAND option" 1>&6
7665 echo "configure:7666: checking for WM_COMMAND option" >&5; 7683 echo "configure:7684: checking for WM_COMMAND option" >&5;
7666 if test "$with_wmcommand" != "no"; then 7684 if test "$with_wmcommand" != "no"; then
7667 { test "$extra_verbose" = "yes" && cat << \EOF 7685 { test "$extra_verbose" = "yes" && cat << \EOF
7668 Defining HAVE_WMCOMMAND 7686 Defining HAVE_WMCOMMAND
7669 EOF 7687 EOF
7670 cat >> confdefs.h <<\EOF 7688 cat >> confdefs.h <<\EOF
7675 fi 7693 fi
7676 7694
7677 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7695 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7678 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7696 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7679 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7697 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7680 echo "configure:7681: checking for X11/Xauth.h" >&5 7698 echo "configure:7699: checking for X11/Xauth.h" >&5
7681 7699
7682 cat > conftest.$ac_ext <<EOF 7700 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure" 7701 #line 7702 "configure"
7684 #include "confdefs.h" 7702 #include "confdefs.h"
7685 #include <X11/Xauth.h> 7703 #include <X11/Xauth.h>
7686 EOF 7704 EOF
7687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7688 { (eval echo configure:7689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7706 { (eval echo configure:7707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7690 if test -z "$ac_err"; then 7708 if test -z "$ac_err"; then
7691 rm -rf conftest* 7709 rm -rf conftest*
7692 eval "ac_cv_header_$ac_safe=yes" 7710 eval "ac_cv_header_$ac_safe=yes"
7693 else 7711 else
7706 with_xauth=no 7724 with_xauth=no
7707 fi 7725 fi
7708 } 7726 }
7709 test -z "$with_xauth" && { 7727 test -z "$with_xauth" && {
7710 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7728 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7711 echo "configure:7712: checking for XauGetAuthByAddr in -lXau" >&5 7729 echo "configure:7730: checking for XauGetAuthByAddr in -lXau" >&5
7712 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7730 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7713 7731
7714 xe_check_libs=" -lXau " 7732 xe_check_libs=" -lXau "
7715 cat > conftest.$ac_ext <<EOF 7733 cat > conftest.$ac_ext <<EOF
7716 #line 7717 "configure" 7734 #line 7735 "configure"
7717 #include "confdefs.h" 7735 #include "confdefs.h"
7718 /* Override any gcc2 internal prototype to avoid an error. */ 7736 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2 7737 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */ 7738 builtin and then its argument prototype would still apply. */
7721 char XauGetAuthByAddr(); 7739 char XauGetAuthByAddr();
7722 7740
7723 int main() { 7741 int main() {
7724 XauGetAuthByAddr() 7742 XauGetAuthByAddr()
7725 ; return 0; } 7743 ; return 0; }
7726 EOF 7744 EOF
7727 if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7745 if { (eval echo configure:7746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7728 rm -rf conftest* 7746 rm -rf conftest*
7729 eval "ac_cv_lib_$ac_lib_var=yes" 7747 eval "ac_cv_lib_$ac_lib_var=yes"
7730 else 7748 else
7731 echo "configure: failed program was:" >&5 7749 echo "configure: failed program was:" >&5
7732 cat conftest.$ac_ext >&5 7750 cat conftest.$ac_ext >&5
7773 fi 7791 fi
7774 7792
7775 7793
7776 if test "$with_modules" != "no"; then 7794 if test "$with_modules" != "no"; then
7777 echo "checking for module support" 1>&6 7795 echo "checking for module support" 1>&6
7778 echo "configure:7779: checking for module support" >&5 7796 echo "configure:7797: checking for module support" >&5
7779 7797
7780 case "$opsys" in 7798 case "$opsys" in
7781 mingw* | cygwin* ) have_dl=yes ;; 7799 mingw* | cygwin* ) have_dl=yes ;;
7782 darwin ) have_dl=yes 7800 darwin ) have_dl=yes
7783 { test "$extra_verbose" = "yes" && cat << \EOF 7801 { test "$extra_verbose" = "yes" && cat << \EOF
7790 7808
7791 ;; 7809 ;;
7792 * ) 7810 * )
7793 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 7811 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
7794 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 7812 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
7795 echo "configure:7796: checking for dlfcn.h" >&5 7813 echo "configure:7814: checking for dlfcn.h" >&5
7796 7814
7797 cat > conftest.$ac_ext <<EOF 7815 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure" 7816 #line 7817 "configure"
7799 #include "confdefs.h" 7817 #include "confdefs.h"
7800 #include <dlfcn.h> 7818 #include <dlfcn.h>
7801 EOF 7819 EOF
7802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7803 { (eval echo configure:7804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7821 { (eval echo configure:7822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7805 if test -z "$ac_err"; then 7823 if test -z "$ac_err"; then
7806 rm -rf conftest* 7824 rm -rf conftest*
7807 eval "ac_cv_header_$ac_safe=yes" 7825 eval "ac_cv_header_$ac_safe=yes"
7808 else 7826 else
7815 rm -f conftest* 7833 rm -f conftest*
7816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7817 echo "$ac_t""yes" 1>&6 7835 echo "$ac_t""yes" 1>&6
7818 7836
7819 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 7837 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
7820 echo "configure:7821: checking for dlopen in -lc" >&5 7838 echo "configure:7839: checking for dlopen in -lc" >&5
7821 cat > conftest.$ac_ext <<EOF 7839 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure" 7840 #line 7841 "configure"
7823 #include "confdefs.h" 7841 #include "confdefs.h"
7824 #include <dlfcn.h> 7842 #include <dlfcn.h>
7825 int main() { 7843 int main() {
7826 dlopen ("", 0); 7844 dlopen ("", 0);
7827 ; return 0; } 7845 ; return 0; }
7828 EOF 7846 EOF
7829 if { (eval echo configure:7830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7847 if { (eval echo configure:7848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7830 rm -rf conftest* 7848 rm -rf conftest*
7831 have_dl=yes 7849 have_dl=yes
7832 else 7850 else
7833 echo "configure: failed program was:" >&5 7851 echo "configure: failed program was:" >&5
7834 cat conftest.$ac_ext >&5 7852 cat conftest.$ac_ext >&5
7835 rm -rf conftest* 7853 rm -rf conftest*
7836 7854
7837 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 7855 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7838 echo "configure:7839: checking for dlopen in -ldl" >&5 7856 echo "configure:7857: checking for dlopen in -ldl" >&5
7839 ac_save_LIBS="$LIBS" 7857 ac_save_LIBS="$LIBS"
7840 LIBS="$LIBS -ldl" 7858 LIBS="$LIBS -ldl"
7841 cat > conftest.$ac_ext <<EOF 7859 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure" 7860 #line 7861 "configure"
7843 #include "confdefs.h" 7861 #include "confdefs.h"
7844 #include <dlfcn.h> 7862 #include <dlfcn.h>
7845 int main() { 7863 int main() {
7846 dlopen ("", 0); 7864 dlopen ("", 0);
7847 ; return 0; } 7865 ; return 0; }
7848 EOF 7866 EOF
7849 if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7867 if { (eval echo configure:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7850 rm -rf conftest* 7868 rm -rf conftest*
7851 have_dl=yes 7869 have_dl=yes
7852 else 7870 else
7853 echo "configure: failed program was:" >&5 7871 echo "configure: failed program was:" >&5
7854 cat conftest.$ac_ext >&5 7872 cat conftest.$ac_ext >&5
7855 rm -rf conftest* 7873 rm -rf conftest*
7856 7874
7857 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 7875 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
7858 echo "configure:7859: checking for dlopen in -lsvld" >&5 7876 echo "configure:7877: checking for dlopen in -lsvld" >&5
7859 LIBS="$ac_save_LIBS -lsvld" 7877 LIBS="$ac_save_LIBS -lsvld"
7860 cat > conftest.$ac_ext <<EOF 7878 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure" 7879 #line 7880 "configure"
7862 #include "confdefs.h" 7880 #include "confdefs.h"
7863 #include <dlfcn.h> 7881 #include <dlfcn.h>
7864 int main() { 7882 int main() {
7865 dlopen ("", 0); 7883 dlopen ("", 0);
7866 ; return 0; } 7884 ; return 0; }
7867 EOF 7885 EOF
7868 if { (eval echo configure:7869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7886 if { (eval echo configure:7887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7869 rm -rf conftest* 7887 rm -rf conftest*
7870 have_dl=yes 7888 have_dl=yes
7871 else 7889 else
7872 echo "configure: failed program was:" >&5 7890 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5 7891 cat conftest.$ac_ext >&5
7893 } 7911 }
7894 7912
7895 else 7913 else
7896 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'` 7914 ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'`
7897 echo $ac_n "checking for dl.h""... $ac_c" 1>&6 7915 echo $ac_n "checking for dl.h""... $ac_c" 1>&6
7898 echo "configure:7899: checking for dl.h" >&5 7916 echo "configure:7917: checking for dl.h" >&5
7899 7917
7900 cat > conftest.$ac_ext <<EOF 7918 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure" 7919 #line 7920 "configure"
7902 #include "confdefs.h" 7920 #include "confdefs.h"
7903 #include <dl.h> 7921 #include <dl.h>
7904 EOF 7922 EOF
7905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7906 { (eval echo configure:7907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7924 { (eval echo configure:7925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7908 if test -z "$ac_err"; then 7926 if test -z "$ac_err"; then
7909 rm -rf conftest* 7927 rm -rf conftest*
7910 eval "ac_cv_header_$ac_safe=yes" 7928 eval "ac_cv_header_$ac_safe=yes"
7911 else 7929 else
7918 rm -f conftest* 7936 rm -f conftest*
7919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7920 echo "$ac_t""yes" 1>&6 7938 echo "$ac_t""yes" 1>&6
7921 7939
7922 echo $ac_n "checking for shl_load in -lc""... $ac_c" 1>&6 7940 echo $ac_n "checking for shl_load in -lc""... $ac_c" 1>&6
7923 echo "configure:7924: checking for shl_load in -lc" >&5 7941 echo "configure:7942: checking for shl_load in -lc" >&5
7924 cat > conftest.$ac_ext <<EOF 7942 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure" 7943 #line 7944 "configure"
7926 #include "confdefs.h" 7944 #include "confdefs.h"
7927 #include <dl.h> 7945 #include <dl.h>
7928 int main() { 7946 int main() {
7929 shl_load ("", 0, 0); 7947 shl_load ("", 0, 0);
7930 ; return 0; } 7948 ; return 0; }
7931 EOF 7949 EOF
7932 if { (eval echo configure:7933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7950 if { (eval echo configure:7951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7933 rm -rf conftest* 7951 rm -rf conftest*
7934 have_dl=yes 7952 have_dl=yes
7935 else 7953 else
7936 echo "configure: failed program was:" >&5 7954 echo "configure: failed program was:" >&5
7937 cat conftest.$ac_ext >&5 7955 cat conftest.$ac_ext >&5
7938 rm -rf conftest* 7956 rm -rf conftest*
7939 7957
7940 echo $ac_n "checking for shl_load in -ldl""... $ac_c" 1>&6 7958 echo $ac_n "checking for shl_load in -ldl""... $ac_c" 1>&6
7941 echo "configure:7942: checking for shl_load in -ldl" >&5 7959 echo "configure:7960: checking for shl_load in -ldl" >&5
7942 ac_save_LIBS="$LIBS" 7960 ac_save_LIBS="$LIBS"
7943 LIBS="$LIBS -ldld" 7961 LIBS="$LIBS -ldld"
7944 cat > conftest.$ac_ext <<EOF 7962 cat > conftest.$ac_ext <<EOF
7945 #line 7946 "configure" 7963 #line 7964 "configure"
7946 #include "confdefs.h" 7964 #include "confdefs.h"
7947 #include <dl.h> 7965 #include <dl.h>
7948 int main() { 7966 int main() {
7949 shl_load ("", 0, 0); 7967 shl_load ("", 0, 0);
7950 ; return 0; } 7968 ; return 0; }
7951 EOF 7969 EOF
7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7970 if { (eval echo configure:7971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7953 rm -rf conftest* 7971 rm -rf conftest*
7954 have_dl=yes 7972 have_dl=yes
7955 else 7973 else
7956 echo "configure: failed program was:" >&5 7974 echo "configure: failed program was:" >&5
7957 cat conftest.$ac_ext >&5 7975 cat conftest.$ac_ext >&5
7975 } 7993 }
7976 7994
7977 else 7995 else
7978 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'` 7996 ac_safe=`echo "ltdl.h" | sed 'y%./+-%__p_%'`
7979 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6 7997 echo $ac_n "checking for ltdl.h""... $ac_c" 1>&6
7980 echo "configure:7981: checking for ltdl.h" >&5 7998 echo "configure:7999: checking for ltdl.h" >&5
7981 7999
7982 cat > conftest.$ac_ext <<EOF 8000 cat > conftest.$ac_ext <<EOF
7983 #line 7984 "configure" 8001 #line 8002 "configure"
7984 #include "confdefs.h" 8002 #include "confdefs.h"
7985 #include <ltdl.h> 8003 #include <ltdl.h>
7986 EOF 8004 EOF
7987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7988 { (eval echo configure:7989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8006 { (eval echo configure:8007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7990 if test -z "$ac_err"; then 8008 if test -z "$ac_err"; then
7991 rm -rf conftest* 8009 rm -rf conftest*
7992 eval "ac_cv_header_$ac_safe=yes" 8010 eval "ac_cv_header_$ac_safe=yes"
7993 else 8011 else
8000 rm -f conftest* 8018 rm -f conftest*
8001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8002 echo "$ac_t""yes" 1>&6 8020 echo "$ac_t""yes" 1>&6
8003 8021
8004 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6 8022 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8005 echo "configure:8006: checking for lt_dlinit in -lltdl" >&5 8023 echo "configure:8024: checking for lt_dlinit in -lltdl" >&5
8006 ac_save_LIBS="$LIBS" 8024 ac_save_LIBS="$LIBS"
8007 LIBS="$LIBS -lltdl" 8025 LIBS="$LIBS -lltdl"
8008 cat > conftest.$ac_ext <<EOF 8026 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure" 8027 #line 8028 "configure"
8010 #include "confdefs.h" 8028 #include "confdefs.h"
8011 #include <ltdl.h> 8029 #include <ltdl.h>
8012 int main() { 8030 int main() {
8013 lt_dlinit (); 8031 lt_dlinit ();
8014 ; return 0; } 8032 ; return 0; }
8015 EOF 8033 EOF
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017 rm -rf conftest* 8035 rm -rf conftest*
8018 have_dl=yes 8036 have_dl=yes
8019 else 8037 else
8020 echo "configure: failed program was:" >&5 8038 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5 8039 cat conftest.$ac_ext >&5
8052 ld_dynamic_link_flags= 8070 ld_dynamic_link_flags=
8053 xehost=$canonical 8071 xehost=$canonical
8054 xealias=$internal_configuration 8072 xealias=$internal_configuration
8055 8073
8056 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 8074 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
8057 echo "configure:8058: checking how to build dynamic libraries for ${xehost}" >&5 8075 echo "configure:8076: checking how to build dynamic libraries for ${xehost}" >&5
8058 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 8076 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
8059 case "$xehost" in 8077 case "$xehost" in
8060 *-*-linux-gnu*) ;; 8078 *-*-linux-gnu*) ;;
8061 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 8079 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
8062 esac 8080 esac
8080 # Now see if the compiler is really GCC. 8098 # Now see if the compiler is really GCC.
8081 if test "$GCC" = "yes"; then 8099 if test "$GCC" = "yes"; then
8082 XEGCC=yes 8100 XEGCC=yes
8083 else 8101 else
8084 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 8102 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
8085 echo "configure:8086: checking checking whether we are using GNU C" >&5 8103 echo "configure:8104: checking checking whether we are using GNU C" >&5
8086 cat > conftest.$ac_ext <<EOF 8104 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure" 8105 #line 8106 "configure"
8088 #include "confdefs.h" 8106 #include "confdefs.h"
8089 8107
8090 #ifdef __GNUC__ 8108 #ifdef __GNUC__
8091 yes; 8109 yes;
8092 #endif 8110 #endif
8104 8122
8105 echo "$ac_t""${XEGCC}" 1>&6 8123 echo "$ac_t""${XEGCC}" 1>&6
8106 fi 8124 fi
8107 8125
8108 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 8126 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
8109 echo "configure:8110: checking how to produce PIC code" >&5 8127 echo "configure:8128: checking how to produce PIC code" >&5
8110 wl= 8128 wl=
8111 8129
8112 can_build_shared=yes 8130 can_build_shared=yes
8113 if test "$XEGCC" = yes -o "$__ICC" = yes; then 8131 if test "$XEGCC" = yes -o "$__ICC" = yes; then
8114 wl='-Wl,' 8132 wl='-Wl,'
8208 if test -n "$dll_cflags"; then 8226 if test -n "$dll_cflags"; then
8209 echo "$ac_t""${dll_cflags}" 1>&6 8227 echo "$ac_t""${dll_cflags}" 1>&6
8210 8228
8211 # Check to make sure the dll_cflags actually works. 8229 # Check to make sure the dll_cflags actually works.
8212 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 8230 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
8213 echo "configure:8214: checking if PIC flag ${dll_cflags} really works" >&5 8231 echo "configure:8232: checking if PIC flag ${dll_cflags} really works" >&5
8214 save_CFLAGS="$CFLAGS" 8232 save_CFLAGS="$CFLAGS"
8215 CFLAGS="$CFLAGS $dll_cflags -DPIC" 8233 CFLAGS="$CFLAGS $dll_cflags -DPIC"
8216 cat > conftest.$ac_ext <<EOF 8234 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure" 8235 #line 8236 "configure"
8218 #include "confdefs.h" 8236 #include "confdefs.h"
8219 8237
8220 int main() { 8238 int main() {
8221 int x=0; 8239 int x=0;
8222 ; return 0; } 8240 ; return 0; }
8223 EOF 8241 EOF
8224 if { (eval echo configure:8225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8242 if { (eval echo configure:8243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8225 rm -rf conftest* 8243 rm -rf conftest*
8226 8244
8227 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 8245 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
8228 # reports no error. So, we need to grep stderr for (Bundled). 8246 # reports no error. So, we need to grep stderr for (Bundled).
8229 if grep '(Bundled)' config.log >/dev/null; then 8247 if grep '(Bundled)' config.log >/dev/null; then
8250 if test "$can_build_shared" = "yes"; then 8268 if test "$can_build_shared" = "yes"; then
8251 cc_produces_so=no 8269 cc_produces_so=no
8252 xldf= 8270 xldf=
8253 xcldf= 8271 xcldf=
8254 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 8272 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
8255 echo "configure:8256: checking if C compiler can produce shared libraries" >&5 8273 echo "configure:8274: checking if C compiler can produce shared libraries" >&5
8256 if test "$XEGCC" = yes -o "$__ICC" = yes; then 8274 if test "$XEGCC" = yes -o "$__ICC" = yes; then
8257 case "$xehost_os" in 8275 case "$xehost_os" in
8258 *darwin*) 8276 *darwin*)
8259 xcldf='-bundle' 8277 xcldf='-bundle'
8260 xldf='-bundle -bundle_loader ../../src/xemacs' 8278 xldf='-bundle -bundle_loader ../../src/xemacs'
8309 LDFLAGS="$xcldf $LDFLAGS" 8327 LDFLAGS="$xcldf $LDFLAGS"
8310 LIBS= 8328 LIBS=
8311 xe_libs= 8329 xe_libs=
8312 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 8330 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
8313 cat > conftest.$ac_ext <<EOF 8331 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure" 8332 #line 8333 "configure"
8315 #include "confdefs.h" 8333 #include "confdefs.h"
8316 8334
8317 int main() { 8335 int main() {
8318 int x=0; 8336 int x=0;
8319 ; return 0; } 8337 ; return 0; }
8320 EOF 8338 EOF
8321 if { (eval echo configure:8322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8339 if { (eval echo configure:8340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8322 rm -rf conftest* 8340 rm -rf conftest*
8323 cc_produces_so=yes 8341 cc_produces_so=yes
8324 else 8342 else
8325 echo "configure: failed program was:" >&5 8343 echo "configure: failed program was:" >&5
8326 cat conftest.$ac_ext >&5 8344 cat conftest.$ac_ext >&5
8341 if test -z "$LTLD"; then 8359 if test -z "$LTLD"; then
8342 ac_prog=ld 8360 ac_prog=ld
8343 if test "$XEGCC" = yes; then 8361 if test "$XEGCC" = yes; then
8344 # Check if gcc -print-prog-name=ld gives a path. 8362 # Check if gcc -print-prog-name=ld gives a path.
8345 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 8363 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
8346 echo "configure:8347: checking for ld used by GCC" >&5 8364 echo "configure:8365: checking for ld used by GCC" >&5
8347 ac_prog=`($CC -print-prog-name=ld) 2>&5` 8365 ac_prog=`($CC -print-prog-name=ld) 2>&5`
8348 case "$ac_prog" in 8366 case "$ac_prog" in
8349 # Accept absolute paths. 8367 # Accept absolute paths.
8350 /*) 8368 /*)
8351 if test -z "$LTLD"; then 8369 if test -z "$LTLD"; then
8367 with_gnu_ld=unknown 8385 with_gnu_ld=unknown
8368 ;; 8386 ;;
8369 esac 8387 esac
8370 else 8388 else
8371 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 8389 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
8372 echo "configure:8373: checking for GNU ld" >&5 8390 echo "configure:8391: checking for GNU ld" >&5
8373 fi 8391 fi
8374 8392
8375 if test -z "$LTLD"; then 8393 if test -z "$LTLD"; then
8376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 8394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8377 for ac_dir in $PATH; do 8395 for ac_dir in $PATH; do
8405 8423
8406 ld_dynamic_link_flags= 8424 ld_dynamic_link_flags=
8407 8425
8408 # Check to see if it really is or isn't GNU ld. 8426 # Check to see if it really is or isn't GNU ld.
8409 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 8427 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
8410 echo "configure:8411: checking if the linker is GNU ld" >&5 8428 echo "configure:8429: checking if the linker is GNU ld" >&5
8411 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 8429 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8412 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 8430 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8413 xe_gnu_ld=yes 8431 xe_gnu_ld=yes
8414 else 8432 else
8415 xe_gnu_ld=no 8433 xe_gnu_ld=no
8440 ld_shlibs=yes 8458 ld_shlibs=yes
8441 else 8459 else
8442 # OK - only NOW do we futz about with ld. 8460 # OK - only NOW do we futz about with ld.
8443 # See if the linker supports building shared libraries. 8461 # See if the linker supports building shared libraries.
8444 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 8462 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
8445 echo "configure:8446: checking whether the linker supports shared libraries" >&5 8463 echo "configure:8464: checking whether the linker supports shared libraries" >&5
8446 dll_ld=$CC 8464 dll_ld=$CC
8447 dll_ldflags=$LDFLAGS 8465 dll_ldflags=$LDFLAGS
8448 ld_shlibs=yes 8466 ld_shlibs=yes
8449 can_build_shared=yes 8467 can_build_shared=yes
8450 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 8468 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
8653 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 8671 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
8654 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 8672 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
8655 for ac_func in dlerror _dlerror 8673 for ac_func in dlerror _dlerror
8656 do 8674 do
8657 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8658 echo "configure:8659: checking for $ac_func" >&5 8676 echo "configure:8677: checking for $ac_func" >&5
8659 8677
8660 cat > conftest.$ac_ext <<EOF 8678 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure" 8679 #line 8680 "configure"
8662 #include "confdefs.h" 8680 #include "confdefs.h"
8663 /* System header to define __stub macros and hopefully few prototypes, 8681 /* System header to define __stub macros and hopefully few prototypes,
8664 which can conflict with char $ac_func(); below. */ 8682 which can conflict with char $ac_func(); below. */
8665 #include <assert.h> 8683 #include <assert.h>
8666 /* Override any gcc2 internal prototype to avoid an error. */ 8684 /* Override any gcc2 internal prototype to avoid an error. */
8679 $ac_func(); 8697 $ac_func();
8680 #endif 8698 #endif
8681 8699
8682 ; return 0; } 8700 ; return 0; }
8683 EOF 8701 EOF
8684 if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8702 if { (eval echo configure:8703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8685 rm -rf conftest* 8703 rm -rf conftest*
8686 eval "ac_cv_func_$ac_func=yes" 8704 eval "ac_cv_func_$ac_func=yes"
8687 else 8705 else
8688 echo "configure: failed program was:" >&5 8706 echo "configure: failed program was:" >&5
8689 cat conftest.$ac_ext >&5 8707 cat conftest.$ac_ext >&5
8743 8761
8744 if test "$with_tooltalk" != "no" ; then 8762 if test "$with_tooltalk" != "no" ; then
8745 for dir in "" "Tt/" "desktop/" ; do 8763 for dir in "" "Tt/" "desktop/" ; do
8746 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 8764 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
8747 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 8765 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
8748 echo "configure:8749: checking for ${dir}tt_c.h" >&5 8766 echo "configure:8767: checking for ${dir}tt_c.h" >&5
8749 8767
8750 cat > conftest.$ac_ext <<EOF 8768 cat > conftest.$ac_ext <<EOF
8751 #line 8752 "configure" 8769 #line 8770 "configure"
8752 #include "confdefs.h" 8770 #include "confdefs.h"
8753 #include <${dir}tt_c.h> 8771 #include <${dir}tt_c.h>
8754 EOF 8772 EOF
8755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8756 { (eval echo configure:8757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8774 { (eval echo configure:8775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8775 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8758 if test -z "$ac_err"; then 8776 if test -z "$ac_err"; then
8759 rm -rf conftest* 8777 rm -rf conftest*
8760 eval "ac_cv_header_$ac_safe=yes" 8778 eval "ac_cv_header_$ac_safe=yes"
8761 else 8779 else
8787 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 8805 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
8788 8806
8789 xe_msg_checking="for tt_message_create in -ltt" 8807 xe_msg_checking="for tt_message_create in -ltt"
8790 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 8808 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
8791 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8809 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8792 echo "configure:8793: checking "$xe_msg_checking"" >&5 8810 echo "configure:8811: checking "$xe_msg_checking"" >&5
8793 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 8811 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
8794 8812
8795 xe_check_libs=" -ltt $extra_libs" 8813 xe_check_libs=" -ltt $extra_libs"
8796 cat > conftest.$ac_ext <<EOF 8814 cat > conftest.$ac_ext <<EOF
8797 #line 8798 "configure" 8815 #line 8816 "configure"
8798 #include "confdefs.h" 8816 #include "confdefs.h"
8799 /* Override any gcc2 internal prototype to avoid an error. */ 8817 /* Override any gcc2 internal prototype to avoid an error. */
8800 /* We use char because int might match the return type of a gcc2 8818 /* We use char because int might match the return type of a gcc2
8801 builtin and then its argument prototype would still apply. */ 8819 builtin and then its argument prototype would still apply. */
8802 char tt_message_create(); 8820 char tt_message_create();
8803 8821
8804 int main() { 8822 int main() {
8805 tt_message_create() 8823 tt_message_create()
8806 ; return 0; } 8824 ; return 0; }
8807 EOF 8825 EOF
8808 if { (eval echo configure:8809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8826 if { (eval echo configure:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8809 rm -rf conftest* 8827 rm -rf conftest*
8810 eval "ac_cv_lib_$ac_lib_var=yes" 8828 eval "ac_cv_lib_$ac_lib_var=yes"
8811 else 8829 else
8812 echo "configure: failed program was:" >&5 8830 echo "configure: failed program was:" >&5
8813 cat conftest.$ac_ext >&5 8831 cat conftest.$ac_ext >&5
8857 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi 8875 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
8858 fi 8876 fi
8859 8877
8860 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 8878 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
8861 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 8879 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
8862 echo "configure:8863: checking for Dt/Dt.h" >&5 8880 echo "configure:8881: checking for Dt/Dt.h" >&5
8863 8881
8864 cat > conftest.$ac_ext <<EOF 8882 cat > conftest.$ac_ext <<EOF
8865 #line 8866 "configure" 8883 #line 8884 "configure"
8866 #include "confdefs.h" 8884 #include "confdefs.h"
8867 #include <Dt/Dt.h> 8885 #include <Dt/Dt.h>
8868 EOF 8886 EOF
8869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8870 { (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8888 { (eval echo configure:8889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8872 if test -z "$ac_err"; then 8890 if test -z "$ac_err"; then
8873 rm -rf conftest* 8891 rm -rf conftest*
8874 eval "ac_cv_header_$ac_safe=yes" 8892 eval "ac_cv_header_$ac_safe=yes"
8875 else 8893 else
8888 with_cde=no 8906 with_cde=no
8889 fi 8907 fi
8890 } 8908 }
8891 test -z "$with_cde" && { 8909 test -z "$with_cde" && {
8892 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 8910 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
8893 echo "configure:8894: checking for DtDndDragStart in -lDtSvc" >&5 8911 echo "configure:8912: checking for DtDndDragStart in -lDtSvc" >&5
8894 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 8912 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
8895 8913
8896 xe_check_libs=" -lDtSvc " 8914 xe_check_libs=" -lDtSvc "
8897 cat > conftest.$ac_ext <<EOF 8915 cat > conftest.$ac_ext <<EOF
8898 #line 8899 "configure" 8916 #line 8917 "configure"
8899 #include "confdefs.h" 8917 #include "confdefs.h"
8900 /* Override any gcc2 internal prototype to avoid an error. */ 8918 /* Override any gcc2 internal prototype to avoid an error. */
8901 /* We use char because int might match the return type of a gcc2 8919 /* We use char because int might match the return type of a gcc2
8902 builtin and then its argument prototype would still apply. */ 8920 builtin and then its argument prototype would still apply. */
8903 char DtDndDragStart(); 8921 char DtDndDragStart();
8904 8922
8905 int main() { 8923 int main() {
8906 DtDndDragStart() 8924 DtDndDragStart()
8907 ; return 0; } 8925 ; return 0; }
8908 EOF 8926 EOF
8909 if { (eval echo configure:8910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8927 if { (eval echo configure:8928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8910 rm -rf conftest* 8928 rm -rf conftest*
8911 eval "ac_cv_lib_$ac_lib_var=yes" 8929 eval "ac_cv_lib_$ac_lib_var=yes"
8912 else 8930 else
8913 echo "configure: failed program was:" >&5 8931 echo "configure: failed program was:" >&5
8914 cat conftest.$ac_ext >&5 8932 cat conftest.$ac_ext >&5
8985 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 9003 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
8986 fi 9004 fi
8987 9005
8988 if test "$with_dragndrop" != "no" ; then 9006 if test "$with_dragndrop" != "no" ; then
8989 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 9007 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
8990 echo "configure:8991: checking if drag and drop API is needed" >&5 9008 echo "configure:9009: checking if drag and drop API is needed" >&5
8991 if test -n "$dragndrop_proto" ; then 9009 if test -n "$dragndrop_proto" ; then
8992 with_dragndrop=yes 9010 with_dragndrop=yes
8993 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 9011 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
8994 { test "$extra_verbose" = "yes" && cat << \EOF 9012 { test "$extra_verbose" = "yes" && cat << \EOF
8995 Defining HAVE_DRAGNDROP 9013 Defining HAVE_DRAGNDROP
9005 echo "$ac_t""no" 1>&6 9023 echo "$ac_t""no" 1>&6
9006 fi 9024 fi
9007 fi 9025 fi
9008 9026
9009 echo "checking for LDAP" 1>&6 9027 echo "checking for LDAP" 1>&6
9010 echo "configure:9011: checking for LDAP" >&5 9028 echo "configure:9029: checking for LDAP" >&5
9011 ldap_libs= 9029 ldap_libs=
9012 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 9030 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
9013 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 9031 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
9014 echo "configure:9015: checking for ldap.h" >&5 9032 echo "configure:9033: checking for ldap.h" >&5
9015 9033
9016 cat > conftest.$ac_ext <<EOF 9034 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure" 9035 #line 9036 "configure"
9018 #include "confdefs.h" 9036 #include "confdefs.h"
9019 #include <ldap.h> 9037 #include <ldap.h>
9020 EOF 9038 EOF
9021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9022 { (eval echo configure:9023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9040 { (eval echo configure:9041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9024 if test -z "$ac_err"; then 9042 if test -z "$ac_err"; then
9025 rm -rf conftest* 9043 rm -rf conftest*
9026 eval "ac_cv_header_$ac_safe=yes" 9044 eval "ac_cv_header_$ac_safe=yes"
9027 else 9045 else
9040 with_ldap=no 9058 with_ldap=no
9041 fi 9059 fi
9042 } 9060 }
9043 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 9061 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
9044 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 9062 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
9045 echo "configure:9046: checking for lber.h" >&5 9063 echo "configure:9064: checking for lber.h" >&5
9046 9064
9047 cat > conftest.$ac_ext <<EOF 9065 cat > conftest.$ac_ext <<EOF
9048 #line 9049 "configure" 9066 #line 9067 "configure"
9049 #include "confdefs.h" 9067 #include "confdefs.h"
9050 #include <lber.h> 9068 #include <lber.h>
9051 EOF 9069 EOF
9052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9053 { (eval echo configure:9054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9071 { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9055 if test -z "$ac_err"; then 9073 if test -z "$ac_err"; then
9056 rm -rf conftest* 9074 rm -rf conftest*
9057 eval "ac_cv_header_$ac_safe=yes" 9075 eval "ac_cv_header_$ac_safe=yes"
9058 else 9076 else
9072 fi 9090 fi
9073 } 9091 }
9074 if test "$with_ldap" != "no"; then 9092 if test "$with_ldap" != "no"; then
9075 9093
9076 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 9094 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
9077 echo "configure:9078: checking for ldap_search in -lldap" >&5 9095 echo "configure:9096: checking for ldap_search in -lldap" >&5
9078 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 9096 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
9079 9097
9080 xe_check_libs=" -lldap " 9098 xe_check_libs=" -lldap "
9081 cat > conftest.$ac_ext <<EOF 9099 cat > conftest.$ac_ext <<EOF
9082 #line 9083 "configure" 9100 #line 9101 "configure"
9083 #include "confdefs.h" 9101 #include "confdefs.h"
9084 /* Override any gcc2 internal prototype to avoid an error. */ 9102 /* Override any gcc2 internal prototype to avoid an error. */
9085 /* We use char because int might match the return type of a gcc2 9103 /* We use char because int might match the return type of a gcc2
9086 builtin and then its argument prototype would still apply. */ 9104 builtin and then its argument prototype would still apply. */
9087 char ldap_search(); 9105 char ldap_search();
9088 9106
9089 int main() { 9107 int main() {
9090 ldap_search() 9108 ldap_search()
9091 ; return 0; } 9109 ; return 0; }
9092 EOF 9110 EOF
9093 if { (eval echo configure:9094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9111 if { (eval echo configure:9112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9094 rm -rf conftest* 9112 rm -rf conftest*
9095 eval "ac_cv_lib_$ac_lib_var=yes" 9113 eval "ac_cv_lib_$ac_lib_var=yes"
9096 else 9114 else
9097 echo "configure: failed program was:" >&5 9115 echo "configure: failed program was:" >&5
9098 cat conftest.$ac_ext >&5 9116 cat conftest.$ac_ext >&5
9112 9130
9113 test "$with_ldap" != "yes" && { 9131 test "$with_ldap" != "yes" && {
9114 xe_msg_checking="for ldap_open in -lldap" 9132 xe_msg_checking="for ldap_open in -lldap"
9115 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 9133 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
9116 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 9134 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
9117 echo "configure:9118: checking "$xe_msg_checking"" >&5 9135 echo "configure:9136: checking "$xe_msg_checking"" >&5
9118 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 9136 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
9119 9137
9120 xe_check_libs=" -lldap -llber" 9138 xe_check_libs=" -lldap -llber"
9121 cat > conftest.$ac_ext <<EOF 9139 cat > conftest.$ac_ext <<EOF
9122 #line 9123 "configure" 9140 #line 9141 "configure"
9123 #include "confdefs.h" 9141 #include "confdefs.h"
9124 /* Override any gcc2 internal prototype to avoid an error. */ 9142 /* Override any gcc2 internal prototype to avoid an error. */
9125 /* We use char because int might match the return type of a gcc2 9143 /* We use char because int might match the return type of a gcc2
9126 builtin and then its argument prototype would still apply. */ 9144 builtin and then its argument prototype would still apply. */
9127 char ldap_open(); 9145 char ldap_open();
9128 9146
9129 int main() { 9147 int main() {
9130 ldap_open() 9148 ldap_open()
9131 ; return 0; } 9149 ; return 0; }
9132 EOF 9150 EOF
9133 if { (eval echo configure:9134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9151 if { (eval echo configure:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9134 rm -rf conftest* 9152 rm -rf conftest*
9135 eval "ac_cv_lib_$ac_lib_var=yes" 9153 eval "ac_cv_lib_$ac_lib_var=yes"
9136 else 9154 else
9137 echo "configure: failed program was:" >&5 9155 echo "configure: failed program was:" >&5
9138 cat conftest.$ac_ext >&5 9156 cat conftest.$ac_ext >&5
9152 } 9170 }
9153 test "$with_ldap" != "yes" && { 9171 test "$with_ldap" != "yes" && {
9154 xe_msg_checking="for ldap_open in -lldap" 9172 xe_msg_checking="for ldap_open in -lldap"
9155 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 9173 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
9156 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 9174 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
9157 echo "configure:9158: checking "$xe_msg_checking"" >&5 9175 echo "configure:9176: checking "$xe_msg_checking"" >&5
9158 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 9176 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
9159 9177
9160 xe_check_libs=" -lldap -llber -lkrb" 9178 xe_check_libs=" -lldap -llber -lkrb"
9161 cat > conftest.$ac_ext <<EOF 9179 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure" 9180 #line 9181 "configure"
9163 #include "confdefs.h" 9181 #include "confdefs.h"
9164 /* Override any gcc2 internal prototype to avoid an error. */ 9182 /* Override any gcc2 internal prototype to avoid an error. */
9165 /* We use char because int might match the return type of a gcc2 9183 /* We use char because int might match the return type of a gcc2
9166 builtin and then its argument prototype would still apply. */ 9184 builtin and then its argument prototype would still apply. */
9167 char ldap_open(); 9185 char ldap_open();
9168 9186
9169 int main() { 9187 int main() {
9170 ldap_open() 9188 ldap_open()
9171 ; return 0; } 9189 ; return 0; }
9172 EOF 9190 EOF
9173 if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9191 if { (eval echo configure:9192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9174 rm -rf conftest* 9192 rm -rf conftest*
9175 eval "ac_cv_lib_$ac_lib_var=yes" 9193 eval "ac_cv_lib_$ac_lib_var=yes"
9176 else 9194 else
9177 echo "configure: failed program was:" >&5 9195 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5 9196 cat conftest.$ac_ext >&5
9192 } 9210 }
9193 test "$with_ldap" != "yes" && { 9211 test "$with_ldap" != "yes" && {
9194 xe_msg_checking="for ldap_open in -lldap" 9212 xe_msg_checking="for ldap_open in -lldap"
9195 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 9213 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
9196 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 9214 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
9197 echo "configure:9198: checking "$xe_msg_checking"" >&5 9215 echo "configure:9216: checking "$xe_msg_checking"" >&5
9198 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 9216 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
9199 9217
9200 xe_check_libs=" -lldap -llber -lkrb -ldes" 9218 xe_check_libs=" -lldap -llber -lkrb -ldes"
9201 cat > conftest.$ac_ext <<EOF 9219 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure" 9220 #line 9221 "configure"
9203 #include "confdefs.h" 9221 #include "confdefs.h"
9204 /* Override any gcc2 internal prototype to avoid an error. */ 9222 /* Override any gcc2 internal prototype to avoid an error. */
9205 /* We use char because int might match the return type of a gcc2 9223 /* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */ 9224 builtin and then its argument prototype would still apply. */
9207 char ldap_open(); 9225 char ldap_open();
9208 9226
9209 int main() { 9227 int main() {
9210 ldap_open() 9228 ldap_open()
9211 ; return 0; } 9229 ; return 0; }
9212 EOF 9230 EOF
9213 if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9231 if { (eval echo configure:9232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9214 rm -rf conftest* 9232 rm -rf conftest*
9215 eval "ac_cv_lib_$ac_lib_var=yes" 9233 eval "ac_cv_lib_$ac_lib_var=yes"
9216 else 9234 else
9217 echo "configure: failed program was:" >&5 9235 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5 9236 cat conftest.$ac_ext >&5
9230 fi 9248 fi
9231 9249
9232 } 9250 }
9233 test "$with_ldap_lber" != "yes" && { 9251 test "$with_ldap_lber" != "yes" && {
9234 echo $ac_n "checking for ber_pvt_opt_on in -llber""... $ac_c" 1>&6 9252 echo $ac_n "checking for ber_pvt_opt_on in -llber""... $ac_c" 1>&6
9235 echo "configure:9236: checking for ber_pvt_opt_on in -llber" >&5 9253 echo "configure:9254: checking for ber_pvt_opt_on in -llber" >&5
9236 ac_lib_var=`echo lber'_'ber_pvt_opt_on | sed 'y%./+-%__p_%'` 9254 ac_lib_var=`echo lber'_'ber_pvt_opt_on | sed 'y%./+-%__p_%'`
9237 9255
9238 xe_check_libs=" -llber " 9256 xe_check_libs=" -llber "
9239 cat > conftest.$ac_ext <<EOF 9257 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure" 9258 #line 9259 "configure"
9241 #include "confdefs.h" 9259 #include "confdefs.h"
9242 /* Override any gcc2 internal prototype to avoid an error. */ 9260 /* Override any gcc2 internal prototype to avoid an error. */
9243 /* We use char because int might match the return type of a gcc2 9261 /* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */ 9262 builtin and then its argument prototype would still apply. */
9245 char ber_pvt_opt_on(); 9263 char ber_pvt_opt_on();
9246 9264
9247 int main() { 9265 int main() {
9248 ber_pvt_opt_on() 9266 ber_pvt_opt_on()
9249 ; return 0; } 9267 ; return 0; }
9250 EOF 9268 EOF
9251 if { (eval echo configure:9252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9269 if { (eval echo configure:9270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9252 rm -rf conftest* 9270 rm -rf conftest*
9253 eval "ac_cv_lib_$ac_lib_var=yes" 9271 eval "ac_cv_lib_$ac_lib_var=yes"
9254 else 9272 else
9255 echo "configure: failed program was:" >&5 9273 echo "configure: failed program was:" >&5
9256 cat conftest.$ac_ext >&5 9274 cat conftest.$ac_ext >&5
9290 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi 9308 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
9291 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs" 9309 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
9292 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 9310 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
9293 do 9311 do
9294 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9295 echo "configure:9296: checking for $ac_func" >&5 9313 echo "configure:9314: checking for $ac_func" >&5
9296 9314
9297 cat > conftest.$ac_ext <<EOF 9315 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure" 9316 #line 9317 "configure"
9299 #include "confdefs.h" 9317 #include "confdefs.h"
9300 /* System header to define __stub macros and hopefully few prototypes, 9318 /* System header to define __stub macros and hopefully few prototypes,
9301 which can conflict with char $ac_func(); below. */ 9319 which can conflict with char $ac_func(); below. */
9302 #include <assert.h> 9320 #include <assert.h>
9303 /* Override any gcc2 internal prototype to avoid an error. */ 9321 /* Override any gcc2 internal prototype to avoid an error. */
9316 $ac_func(); 9334 $ac_func();
9317 #endif 9335 #endif
9318 9336
9319 ; return 0; } 9337 ; return 0; }
9320 EOF 9338 EOF
9321 if { (eval echo configure:9322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9339 if { (eval echo configure:9340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9322 rm -rf conftest* 9340 rm -rf conftest*
9323 eval "ac_cv_func_$ac_func=yes" 9341 eval "ac_cv_func_$ac_func=yes"
9324 else 9342 else
9325 echo "configure: failed program was:" >&5 9343 echo "configure: failed program was:" >&5
9326 cat conftest.$ac_ext >&5 9344 cat conftest.$ac_ext >&5
9355 9373
9356 9374
9357 postgresql_libs= 9375 postgresql_libs=
9358 if test "$with_postgresql" != "no"; then 9376 if test "$with_postgresql" != "no"; then
9359 echo "checking for PostgreSQL" 1>&6 9377 echo "checking for PostgreSQL" 1>&6
9360 echo "configure:9361: checking for PostgreSQL" >&5 9378 echo "configure:9379: checking for PostgreSQL" >&5
9361 9379
9362 for header_dir in "" "pgsql/" "postgresql/"; do 9380 for header_dir in "" "pgsql/" "postgresql/"; do
9363 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 9381 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
9364 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 9382 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
9365 echo "configure:9366: checking for ${header_dir}libpq-fe.h" >&5 9383 echo "configure:9384: checking for ${header_dir}libpq-fe.h" >&5
9366 9384
9367 cat > conftest.$ac_ext <<EOF 9385 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure" 9386 #line 9387 "configure"
9369 #include "confdefs.h" 9387 #include "confdefs.h"
9370 #include <${header_dir}libpq-fe.h> 9388 #include <${header_dir}libpq-fe.h>
9371 EOF 9389 EOF
9372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9390 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9373 { (eval echo configure:9374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9391 { (eval echo configure:9392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9392 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9375 if test -z "$ac_err"; then 9393 if test -z "$ac_err"; then
9376 rm -rf conftest* 9394 rm -rf conftest*
9377 eval "ac_cv_header_$ac_safe=yes" 9395 eval "ac_cv_header_$ac_safe=yes"
9378 else 9396 else
9392 9410
9393 done 9411 done
9394 9412
9395 test -n "$libpq_fe_h_file" && { 9413 test -n "$libpq_fe_h_file" && {
9396 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 9414 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
9397 echo "configure:9398: checking for PQconnectdb in -lpq" >&5 9415 echo "configure:9416: checking for PQconnectdb in -lpq" >&5
9398 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 9416 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
9399 9417
9400 xe_check_libs=" -lpq " 9418 xe_check_libs=" -lpq "
9401 cat > conftest.$ac_ext <<EOF 9419 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure" 9420 #line 9421 "configure"
9403 #include "confdefs.h" 9421 #include "confdefs.h"
9404 /* Override any gcc2 internal prototype to avoid an error. */ 9422 /* Override any gcc2 internal prototype to avoid an error. */
9405 /* We use char because int might match the return type of a gcc2 9423 /* We use char because int might match the return type of a gcc2
9406 builtin and then its argument prototype would still apply. */ 9424 builtin and then its argument prototype would still apply. */
9407 char PQconnectdb(); 9425 char PQconnectdb();
9408 9426
9409 int main() { 9427 int main() {
9410 PQconnectdb() 9428 PQconnectdb()
9411 ; return 0; } 9429 ; return 0; }
9412 EOF 9430 EOF
9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9414 rm -rf conftest* 9432 rm -rf conftest*
9415 eval "ac_cv_lib_$ac_lib_var=yes" 9433 eval "ac_cv_lib_$ac_lib_var=yes"
9416 else 9434 else
9417 echo "configure: failed program was:" >&5 9435 echo "configure: failed program was:" >&5
9418 cat conftest.$ac_ext >&5 9436 cat conftest.$ac_ext >&5
9441 EOF 9459 EOF
9442 } 9460 }
9443 9461
9444 9462
9445 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 9463 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
9446 echo "configure:9447: checking for PQconnectStart in -lpq" >&5 9464 echo "configure:9465: checking for PQconnectStart in -lpq" >&5
9447 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 9465 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
9448 9466
9449 xe_check_libs=" -lpq " 9467 xe_check_libs=" -lpq "
9450 cat > conftest.$ac_ext <<EOF 9468 cat > conftest.$ac_ext <<EOF
9451 #line 9452 "configure" 9469 #line 9470 "configure"
9452 #include "confdefs.h" 9470 #include "confdefs.h"
9453 /* Override any gcc2 internal prototype to avoid an error. */ 9471 /* Override any gcc2 internal prototype to avoid an error. */
9454 /* We use char because int might match the return type of a gcc2 9472 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */ 9473 builtin and then its argument prototype would still apply. */
9456 char PQconnectStart(); 9474 char PQconnectStart();
9457 9475
9458 int main() { 9476 int main() {
9459 PQconnectStart() 9477 PQconnectStart()
9460 ; return 0; } 9478 ; return 0; }
9461 EOF 9479 EOF
9462 if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9463 rm -rf conftest* 9481 rm -rf conftest*
9464 eval "ac_cv_lib_$ac_lib_var=yes" 9482 eval "ac_cv_lib_$ac_lib_var=yes"
9465 else 9483 else
9466 echo "configure: failed program was:" >&5 9484 echo "configure: failed program was:" >&5
9467 cat conftest.$ac_ext >&5 9485 cat conftest.$ac_ext >&5
9508 9526
9509 9527
9510 9528
9511 if test "$window_system" != "none"; then 9529 if test "$window_system" != "none"; then
9512 echo "checking for graphics libraries" 1>&6 9530 echo "checking for graphics libraries" 1>&6
9513 echo "configure:9514: checking for graphics libraries" >&5 9531 echo "configure:9532: checking for graphics libraries" >&5
9514 9532
9515 libpath_xpm= 9533 libpath_xpm=
9516 incpath_xpm= 9534 incpath_xpm=
9517 case "$opsys" in 9535 case "$opsys" in
9518 cygwin*) 9536 cygwin*)
9534 xpm_problem="" 9552 xpm_problem=""
9535 if test -z "$with_xpm"; then 9553 if test -z "$with_xpm"; then
9536 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9554 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9537 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9555 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9538 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 9556 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
9539 echo "configure:9540: checking for Xpm - no older than 3.4f" >&5 9557 echo "configure:9558: checking for Xpm - no older than 3.4f" >&5
9540 xe_check_libs=-lXpm 9558 xe_check_libs=-lXpm
9541 cat > conftest.$ac_ext <<EOF 9559 cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure" 9560 #line 9561 "configure"
9543 #include "confdefs.h" 9561 #include "confdefs.h"
9544 #define XPM_NUMBERS 9562 #define XPM_NUMBERS
9545 #include <X11/xpm.h> 9563 #include <X11/xpm.h>
9546 int main(int c, char **v) { 9564 int main(int c, char **v) {
9547 return c == 1 ? 0 : 9565 return c == 1 ? 0 :
9548 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 9566 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
9549 XpmIncludeVersion < 30406 ? 2 : 0 ;} 9567 XpmIncludeVersion < 30406 ? 2 : 0 ;}
9550 EOF 9568 EOF
9551 if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9552 then 9570 then
9553 ./conftest dummy_arg; xpm_status=$?; 9571 ./conftest dummy_arg; xpm_status=$?;
9554 if test "$xpm_status" = "0"; then 9572 if test "$xpm_status" = "0"; then
9555 with_xpm=yes; 9573 with_xpm=yes;
9556 else 9574 else
9590 9608
9591 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9609 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
9592 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 9610 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
9593 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9611 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
9594 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 9612 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
9595 echo "configure:9596: checking for \"FOR_MSW\" xpm" >&5 9613 echo "configure:9614: checking for \"FOR_MSW\" xpm" >&5
9596 xe_check_libs=-lXpm 9614 xe_check_libs=-lXpm
9597 cat > conftest.$ac_ext <<EOF 9615 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure" 9616 #line 9617 "configure"
9599 #include "confdefs.h" 9617 #include "confdefs.h"
9600 9618
9601 int main() { 9619 int main() {
9602 XpmCreatePixmapFromData() 9620 XpmCreatePixmapFromData()
9603 ; return 0; } 9621 ; return 0; }
9604 EOF 9622 EOF
9605 if { (eval echo configure:9606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9623 if { (eval echo configure:9624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9606 rm -rf conftest* 9624 rm -rf conftest*
9607 xpm_for_msw=no 9625 xpm_for_msw=no
9608 else 9626 else
9609 echo "configure: failed program was:" >&5 9627 echo "configure: failed program was:" >&5
9610 cat conftest.$ac_ext >&5 9628 cat conftest.$ac_ext >&5
9626 fi 9644 fi
9627 fi 9645 fi
9628 9646
9629 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9647 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
9630 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9648 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
9631 echo "configure:9632: checking for compface.h" >&5 9649 echo "configure:9650: checking for compface.h" >&5
9632 9650
9633 cat > conftest.$ac_ext <<EOF 9651 cat > conftest.$ac_ext <<EOF
9634 #line 9635 "configure" 9652 #line 9653 "configure"
9635 #include "confdefs.h" 9653 #include "confdefs.h"
9636 #include <compface.h> 9654 #include <compface.h>
9637 EOF 9655 EOF
9638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9639 { (eval echo configure:9640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9657 { (eval echo configure:9658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9641 if test -z "$ac_err"; then 9659 if test -z "$ac_err"; then
9642 rm -rf conftest* 9660 rm -rf conftest*
9643 eval "ac_cv_header_$ac_safe=yes" 9661 eval "ac_cv_header_$ac_safe=yes"
9644 else 9662 else
9657 with_xface=no 9675 with_xface=no
9658 fi 9676 fi
9659 } 9677 }
9660 test -z "$with_xface" && { 9678 test -z "$with_xface" && {
9661 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9679 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
9662 echo "configure:9663: checking for UnGenFace in -lcompface" >&5 9680 echo "configure:9681: checking for UnGenFace in -lcompface" >&5
9663 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9681 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
9664 9682
9665 xe_check_libs=" -lcompface " 9683 xe_check_libs=" -lcompface "
9666 cat > conftest.$ac_ext <<EOF 9684 cat > conftest.$ac_ext <<EOF
9667 #line 9668 "configure" 9685 #line 9686 "configure"
9668 #include "confdefs.h" 9686 #include "confdefs.h"
9669 /* Override any gcc2 internal prototype to avoid an error. */ 9687 /* Override any gcc2 internal prototype to avoid an error. */
9670 /* We use char because int might match the return type of a gcc2 9688 /* We use char because int might match the return type of a gcc2
9671 builtin and then its argument prototype would still apply. */ 9689 builtin and then its argument prototype would still apply. */
9672 char UnGenFace(); 9690 char UnGenFace();
9673 9691
9674 int main() { 9692 int main() {
9675 UnGenFace() 9693 UnGenFace()
9676 ; return 0; } 9694 ; return 0; }
9677 EOF 9695 EOF
9678 if { (eval echo configure:9679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9696 if { (eval echo configure:9697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9679 rm -rf conftest* 9697 rm -rf conftest*
9680 eval "ac_cv_lib_$ac_lib_var=yes" 9698 eval "ac_cv_lib_$ac_lib_var=yes"
9681 else 9699 else
9682 echo "configure: failed program was:" >&5 9700 echo "configure: failed program was:" >&5
9683 cat conftest.$ac_ext >&5 9701 cat conftest.$ac_ext >&5
9722 fi 9740 fi
9723 9741
9724 if test "$with_png $with_tiff" != "no no"; then 9742 if test "$with_png $with_tiff" != "no no"; then
9725 9743
9726 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 9744 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
9727 echo "configure:9728: checking for inflate in -lc" >&5 9745 echo "configure:9746: checking for inflate in -lc" >&5
9728 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 9746 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
9729 9747
9730 xe_check_libs=" -lc " 9748 xe_check_libs=" -lc "
9731 cat > conftest.$ac_ext <<EOF 9749 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure" 9750 #line 9751 "configure"
9733 #include "confdefs.h" 9751 #include "confdefs.h"
9734 /* Override any gcc2 internal prototype to avoid an error. */ 9752 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2 9753 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */ 9754 builtin and then its argument prototype would still apply. */
9737 char inflate(); 9755 char inflate();
9738 9756
9739 int main() { 9757 int main() {
9740 inflate() 9758 inflate()
9741 ; return 0; } 9759 ; return 0; }
9742 EOF 9760 EOF
9743 if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9744 rm -rf conftest* 9762 rm -rf conftest*
9745 eval "ac_cv_lib_$ac_lib_var=yes" 9763 eval "ac_cv_lib_$ac_lib_var=yes"
9746 else 9764 else
9747 echo "configure: failed program was:" >&5 9765 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5 9766 cat conftest.$ac_ext >&5
9757 : 9775 :
9758 else 9776 else
9759 echo "$ac_t""no" 1>&6 9777 echo "$ac_t""no" 1>&6
9760 9778
9761 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 9779 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
9762 echo "configure:9763: checking for inflate in -lz" >&5 9780 echo "configure:9781: checking for inflate in -lz" >&5
9763 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 9781 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
9764 9782
9765 xe_check_libs=" -lz " 9783 xe_check_libs=" -lz "
9766 cat > conftest.$ac_ext <<EOF 9784 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure" 9785 #line 9786 "configure"
9768 #include "confdefs.h" 9786 #include "confdefs.h"
9769 /* Override any gcc2 internal prototype to avoid an error. */ 9787 /* Override any gcc2 internal prototype to avoid an error. */
9770 /* We use char because int might match the return type of a gcc2 9788 /* We use char because int might match the return type of a gcc2
9771 builtin and then its argument prototype would still apply. */ 9789 builtin and then its argument prototype would still apply. */
9772 char inflate(); 9790 char inflate();
9773 9791
9774 int main() { 9792 int main() {
9775 inflate() 9793 inflate()
9776 ; return 0; } 9794 ; return 0; }
9777 EOF 9795 EOF
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9796 if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9779 rm -rf conftest* 9797 rm -rf conftest*
9780 eval "ac_cv_lib_$ac_lib_var=yes" 9798 eval "ac_cv_lib_$ac_lib_var=yes"
9781 else 9799 else
9782 echo "configure: failed program was:" >&5 9800 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5 9801 cat conftest.$ac_ext >&5
9792 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 9810 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
9793 else 9811 else
9794 echo "$ac_t""no" 1>&6 9812 echo "$ac_t""no" 1>&6
9795 9813
9796 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 9814 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
9797 echo "configure:9798: checking for inflate in -lgz" >&5 9815 echo "configure:9816: checking for inflate in -lgz" >&5
9798 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 9816 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
9799 9817
9800 xe_check_libs=" -lgz " 9818 xe_check_libs=" -lgz "
9801 cat > conftest.$ac_ext <<EOF 9819 cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure" 9820 #line 9821 "configure"
9803 #include "confdefs.h" 9821 #include "confdefs.h"
9804 /* Override any gcc2 internal prototype to avoid an error. */ 9822 /* Override any gcc2 internal prototype to avoid an error. */
9805 /* We use char because int might match the return type of a gcc2 9823 /* We use char because int might match the return type of a gcc2
9806 builtin and then its argument prototype would still apply. */ 9824 builtin and then its argument prototype would still apply. */
9807 char inflate(); 9825 char inflate();
9808 9826
9809 int main() { 9827 int main() {
9810 inflate() 9828 inflate()
9811 ; return 0; } 9829 ; return 0; }
9812 EOF 9830 EOF
9813 if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9831 if { (eval echo configure:9832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9814 rm -rf conftest* 9832 rm -rf conftest*
9815 eval "ac_cv_lib_$ac_lib_var=yes" 9833 eval "ac_cv_lib_$ac_lib_var=yes"
9816 else 9834 else
9817 echo "configure: failed program was:" >&5 9835 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5 9836 cat conftest.$ac_ext >&5
9838 9856
9839 fi 9857 fi
9840 9858
9841 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 9859 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
9842 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 9860 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9843 echo "configure:9844: checking for jpeglib.h" >&5 9861 echo "configure:9862: checking for jpeglib.h" >&5
9844 9862
9845 cat > conftest.$ac_ext <<EOF 9863 cat > conftest.$ac_ext <<EOF
9846 #line 9847 "configure" 9864 #line 9865 "configure"
9847 #include "confdefs.h" 9865 #include "confdefs.h"
9848 #include <jpeglib.h> 9866 #include <jpeglib.h>
9849 EOF 9867 EOF
9850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9851 { (eval echo configure:9852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9869 { (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9853 if test -z "$ac_err"; then 9871 if test -z "$ac_err"; then
9854 rm -rf conftest* 9872 rm -rf conftest*
9855 eval "ac_cv_header_$ac_safe=yes" 9873 eval "ac_cv_header_$ac_safe=yes"
9856 else 9874 else
9869 with_jpeg=no 9887 with_jpeg=no
9870 fi 9888 fi
9871 } 9889 }
9872 test -z "$with_jpeg" && { 9890 test -z "$with_jpeg" && {
9873 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 9891 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
9874 echo "configure:9875: checking for jpeg_destroy_decompress in -ljpeg" >&5 9892 echo "configure:9893: checking for jpeg_destroy_decompress in -ljpeg" >&5
9875 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 9893 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
9876 9894
9877 xe_check_libs=" -ljpeg " 9895 xe_check_libs=" -ljpeg "
9878 cat > conftest.$ac_ext <<EOF 9896 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure" 9897 #line 9898 "configure"
9880 #include "confdefs.h" 9898 #include "confdefs.h"
9881 /* Override any gcc2 internal prototype to avoid an error. */ 9899 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2 9900 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */ 9901 builtin and then its argument prototype would still apply. */
9884 char jpeg_destroy_decompress(); 9902 char jpeg_destroy_decompress();
9885 9903
9886 int main() { 9904 int main() {
9887 jpeg_destroy_decompress() 9905 jpeg_destroy_decompress()
9888 ; return 0; } 9906 ; return 0; }
9889 EOF 9907 EOF
9890 if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9908 if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9891 rm -rf conftest* 9909 rm -rf conftest*
9892 eval "ac_cv_lib_$ac_lib_var=yes" 9910 eval "ac_cv_lib_$ac_lib_var=yes"
9893 else 9911 else
9894 echo "configure: failed program was:" >&5 9912 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5 9913 cat conftest.$ac_ext >&5
9921 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 9939 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
9922 fi 9940 fi
9923 9941
9924 png_problem="" 9942 png_problem=""
9925 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 9943 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
9926 echo "configure:9927: checking for pow" >&5 9944 echo "configure:9945: checking for pow" >&5
9927 9945
9928 cat > conftest.$ac_ext <<EOF 9946 cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure" 9947 #line 9948 "configure"
9930 #include "confdefs.h" 9948 #include "confdefs.h"
9931 /* System header to define __stub macros and hopefully few prototypes, 9949 /* System header to define __stub macros and hopefully few prototypes,
9932 which can conflict with char pow(); below. */ 9950 which can conflict with char pow(); below. */
9933 #include <assert.h> 9951 #include <assert.h>
9934 /* Override any gcc2 internal prototype to avoid an error. */ 9952 /* Override any gcc2 internal prototype to avoid an error. */
9947 pow(); 9965 pow();
9948 #endif 9966 #endif
9949 9967
9950 ; return 0; } 9968 ; return 0; }
9951 EOF 9969 EOF
9952 if { (eval echo configure:9953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9970 if { (eval echo configure:9971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9953 rm -rf conftest* 9971 rm -rf conftest*
9954 eval "ac_cv_func_pow=yes" 9972 eval "ac_cv_func_pow=yes"
9955 else 9973 else
9956 echo "configure: failed program was:" >&5 9974 echo "configure: failed program was:" >&5
9957 cat conftest.$ac_ext >&5 9975 cat conftest.$ac_ext >&5
9968 with_png=no 9986 with_png=no
9969 fi 9987 fi
9970 } 9988 }
9971 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 9989 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9972 echo $ac_n "checking for png.h""... $ac_c" 1>&6 9990 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9973 echo "configure:9974: checking for png.h" >&5 9991 echo "configure:9992: checking for png.h" >&5
9974 9992
9975 cat > conftest.$ac_ext <<EOF 9993 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure" 9994 #line 9995 "configure"
9977 #include "confdefs.h" 9995 #include "confdefs.h"
9978 #include <png.h> 9996 #include <png.h>
9979 EOF 9997 EOF
9980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9981 { (eval echo configure:9982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9999 { (eval echo configure:10000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9983 if test -z "$ac_err"; then 10001 if test -z "$ac_err"; then
9984 rm -rf conftest* 10002 rm -rf conftest*
9985 eval "ac_cv_header_$ac_safe=yes" 10003 eval "ac_cv_header_$ac_safe=yes"
9986 else 10004 else
9999 with_png=no 10017 with_png=no
10000 fi 10018 fi
10001 } 10019 }
10002 test -z "$with_png" && { 10020 test -z "$with_png" && {
10003 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 10021 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
10004 echo "configure:10005: checking for png_read_image in -lpng" >&5 10022 echo "configure:10023: checking for png_read_image in -lpng" >&5
10005 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 10023 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
10006 10024
10007 xe_check_libs=" -lpng " 10025 xe_check_libs=" -lpng "
10008 cat > conftest.$ac_ext <<EOF 10026 cat > conftest.$ac_ext <<EOF
10009 #line 10010 "configure" 10027 #line 10028 "configure"
10010 #include "confdefs.h" 10028 #include "confdefs.h"
10011 /* Override any gcc2 internal prototype to avoid an error. */ 10029 /* Override any gcc2 internal prototype to avoid an error. */
10012 /* We use char because int might match the return type of a gcc2 10030 /* We use char because int might match the return type of a gcc2
10013 builtin and then its argument prototype would still apply. */ 10031 builtin and then its argument prototype would still apply. */
10014 char png_read_image(); 10032 char png_read_image();
10015 10033
10016 int main() { 10034 int main() {
10017 png_read_image() 10035 png_read_image()
10018 ; return 0; } 10036 ; return 0; }
10019 EOF 10037 EOF
10020 if { (eval echo configure:10021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10038 if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10021 rm -rf conftest* 10039 rm -rf conftest*
10022 eval "ac_cv_lib_$ac_lib_var=yes" 10040 eval "ac_cv_lib_$ac_lib_var=yes"
10023 else 10041 else
10024 echo "configure: failed program was:" >&5 10042 echo "configure: failed program was:" >&5
10025 cat conftest.$ac_ext >&5 10043 cat conftest.$ac_ext >&5
10038 fi 10056 fi
10039 10057
10040 } 10058 }
10041 if test -z "$with_png"; then 10059 if test -z "$with_png"; then
10042 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 10060 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
10043 echo "configure:10044: checking for workable png version information" >&5 10061 echo "configure:10062: checking for workable png version information" >&5
10044 xe_check_libs="-lpng -lz" 10062 xe_check_libs="-lpng -lz"
10045 cat > conftest.$ac_ext <<EOF 10063 cat > conftest.$ac_ext <<EOF
10046 #line 10047 "configure" 10064 #line 10065 "configure"
10047 #include "confdefs.h" 10065 #include "confdefs.h"
10048 #include <png.h> 10066 #include <png.h>
10049 int main(int c, char **v) { 10067 int main(int c, char **v) {
10050 if (c == 1) return 0; 10068 if (c == 1) return 0;
10051 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 10069 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
10052 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 10070 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
10053 EOF 10071 EOF
10054 if { (eval echo configure:10055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10055 then 10073 then
10056 ./conftest dummy_arg; png_status=$?; 10074 ./conftest dummy_arg; png_status=$?;
10057 if test "$png_status" = "0"; then 10075 if test "$png_status" = "0"; then
10058 with_png=yes; 10076 with_png=yes;
10059 else 10077 else
10092 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 10110 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
10093 fi 10111 fi
10094 10112
10095 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 10113 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10096 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 10114 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10097 echo "configure:10098: checking for tiffio.h" >&5 10115 echo "configure:10116: checking for tiffio.h" >&5
10098 10116
10099 cat > conftest.$ac_ext <<EOF 10117 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure" 10118 #line 10119 "configure"
10101 #include "confdefs.h" 10119 #include "confdefs.h"
10102 #include <tiffio.h> 10120 #include <tiffio.h>
10103 EOF 10121 EOF
10104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10105 { (eval echo configure:10106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10123 { (eval echo configure:10124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10107 if test -z "$ac_err"; then 10125 if test -z "$ac_err"; then
10108 rm -rf conftest* 10126 rm -rf conftest*
10109 eval "ac_cv_header_$ac_safe=yes" 10127 eval "ac_cv_header_$ac_safe=yes"
10110 else 10128 else
10123 with_tiff=no 10141 with_tiff=no
10124 fi 10142 fi
10125 } 10143 }
10126 test -z "$with_tiff" && { 10144 test -z "$with_tiff" && {
10127 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 10145 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
10128 echo "configure:10129: checking for TIFFClientOpen in -ltiff" >&5 10146 echo "configure:10147: checking for TIFFClientOpen in -ltiff" >&5
10129 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 10147 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
10130 10148
10131 xe_check_libs=" -ltiff " 10149 xe_check_libs=" -ltiff "
10132 cat > conftest.$ac_ext <<EOF 10150 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure" 10151 #line 10152 "configure"
10134 #include "confdefs.h" 10152 #include "confdefs.h"
10135 /* Override any gcc2 internal prototype to avoid an error. */ 10153 /* Override any gcc2 internal prototype to avoid an error. */
10136 /* We use char because int might match the return type of a gcc2 10154 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */ 10155 builtin and then its argument prototype would still apply. */
10138 char TIFFClientOpen(); 10156 char TIFFClientOpen();
10139 10157
10140 int main() { 10158 int main() {
10141 TIFFClientOpen() 10159 TIFFClientOpen()
10142 ; return 0; } 10160 ; return 0; }
10143 EOF 10161 EOF
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10162 if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10145 rm -rf conftest* 10163 rm -rf conftest*
10146 eval "ac_cv_lib_$ac_lib_var=yes" 10164 eval "ac_cv_lib_$ac_lib_var=yes"
10147 else 10165 else
10148 echo "configure: failed program was:" >&5 10166 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5 10167 cat conftest.$ac_ext >&5
10178 10196
10179 10197
10180 if test "$with_gtk" = "yes"; then 10198 if test "$with_gtk" = "yes"; then
10181 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 10199 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
10182 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 10200 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
10183 echo "configure:10184: checking for compface.h" >&5 10201 echo "configure:10202: checking for compface.h" >&5
10184 10202
10185 cat > conftest.$ac_ext <<EOF 10203 cat > conftest.$ac_ext <<EOF
10186 #line 10187 "configure" 10204 #line 10205 "configure"
10187 #include "confdefs.h" 10205 #include "confdefs.h"
10188 #include <compface.h> 10206 #include <compface.h>
10189 EOF 10207 EOF
10190 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10191 { (eval echo configure:10192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10209 { (eval echo configure:10210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10192 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10193 if test -z "$ac_err"; then 10211 if test -z "$ac_err"; then
10194 rm -rf conftest* 10212 rm -rf conftest*
10195 eval "ac_cv_header_$ac_safe=yes" 10213 eval "ac_cv_header_$ac_safe=yes"
10196 else 10214 else
10209 with_xface=no 10227 with_xface=no
10210 fi 10228 fi
10211 } 10229 }
10212 test -z "$with_xface" && { 10230 test -z "$with_xface" && {
10213 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 10231 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
10214 echo "configure:10215: checking for UnGenFace in -lcompface" >&5 10232 echo "configure:10233: checking for UnGenFace in -lcompface" >&5
10215 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 10233 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
10216 10234
10217 xe_check_libs=" -lcompface " 10235 xe_check_libs=" -lcompface "
10218 cat > conftest.$ac_ext <<EOF 10236 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure" 10237 #line 10238 "configure"
10220 #include "confdefs.h" 10238 #include "confdefs.h"
10221 /* Override any gcc2 internal prototype to avoid an error. */ 10239 /* Override any gcc2 internal prototype to avoid an error. */
10222 /* We use char because int might match the return type of a gcc2 10240 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */ 10241 builtin and then its argument prototype would still apply. */
10224 char UnGenFace(); 10242 char UnGenFace();
10225 10243
10226 int main() { 10244 int main() {
10227 UnGenFace() 10245 UnGenFace()
10228 ; return 0; } 10246 ; return 0; }
10229 EOF 10247 EOF
10230 if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10248 if { (eval echo configure:10249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10231 rm -rf conftest* 10249 rm -rf conftest*
10232 eval "ac_cv_lib_$ac_lib_var=yes" 10250 eval "ac_cv_lib_$ac_lib_var=yes"
10233 else 10251 else
10234 echo "configure: failed program was:" >&5 10252 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5 10253 cat conftest.$ac_ext >&5
10264 10282
10265 10283
10266 10284
10267 if test "$with_x11" = "yes"; then 10285 if test "$with_x11" = "yes"; then
10268 echo "checking for X11 graphics libraries" 1>&6 10286 echo "checking for X11 graphics libraries" 1>&6
10269 echo "configure:10270: checking for X11 graphics libraries" >&5 10287 echo "configure:10288: checking for X11 graphics libraries" >&5
10270 fi 10288 fi
10271 10289
10272 case "$with_widgets" in 10290 case "$with_widgets" in
10273 "yes" | "athena") detect_athena=yes ;; 10291 "yes" | "athena") detect_athena=yes ;;
10274 *) detect_athena=no ;; 10292 *) detect_athena=no ;;
10275 esac 10293 esac
10276 10294
10277 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 10295 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
10278 echo "checking for the Athena widgets" 1>&6 10296 echo "checking for the Athena widgets" 1>&6
10279 echo "configure:10280: checking for the Athena widgets" >&5 10297 echo "configure:10298: checking for the Athena widgets" >&5
10280 10298
10281 case "$with_athena" in 10299 case "$with_athena" in
10282 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 10300 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
10283 "3d") athena_variant=Xaw3d athena_3d=yes ;; 10301 "3d") athena_variant=Xaw3d athena_3d=yes ;;
10284 "next") athena_variant=neXtaw athena_3d=yes ;; 10302 "next") athena_variant=neXtaw athena_3d=yes ;;
10288 esac 10306 esac
10289 10307
10290 if test "$athena_3d" = "no"; then 10308 if test "$athena_3d" = "no"; then
10291 10309
10292 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 10310 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
10293 echo "configure:10294: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 10311 echo "configure:10312: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
10294 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 10312 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
10295 10313
10296 xe_check_libs=" -l$athena_variant " 10314 xe_check_libs=" -l$athena_variant "
10297 cat > conftest.$ac_ext <<EOF 10315 cat > conftest.$ac_ext <<EOF
10298 #line 10299 "configure" 10316 #line 10317 "configure"
10299 #include "confdefs.h" 10317 #include "confdefs.h"
10300 /* Override any gcc2 internal prototype to avoid an error. */ 10318 /* Override any gcc2 internal prototype to avoid an error. */
10301 /* We use char because int might match the return type of a gcc2 10319 /* We use char because int might match the return type of a gcc2
10302 builtin and then its argument prototype would still apply. */ 10320 builtin and then its argument prototype would still apply. */
10303 char XawScrollbarSetThumb(); 10321 char XawScrollbarSetThumb();
10304 10322
10305 int main() { 10323 int main() {
10306 XawScrollbarSetThumb() 10324 XawScrollbarSetThumb()
10307 ; return 0; } 10325 ; return 0; }
10308 EOF 10326 EOF
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10327 if { (eval echo configure:10328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10310 rm -rf conftest* 10328 rm -rf conftest*
10311 eval "ac_cv_lib_$ac_lib_var=yes" 10329 eval "ac_cv_lib_$ac_lib_var=yes"
10312 else 10330 else
10313 echo "configure: failed program was:" >&5 10331 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5 10332 cat conftest.$ac_ext >&5
10320 10338
10321 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 10339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
10322 echo "$ac_t""yes" 1>&6 10340 echo "$ac_t""yes" 1>&6
10323 10341
10324 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 10342 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
10325 echo "configure:10326: checking for threeDClassRec in -l$athena_variant" >&5 10343 echo "configure:10344: checking for threeDClassRec in -l$athena_variant" >&5
10326 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 10344 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
10327 10345
10328 xe_check_libs=" -l$athena_variant " 10346 xe_check_libs=" -l$athena_variant "
10329 cat > conftest.$ac_ext <<EOF 10347 cat > conftest.$ac_ext <<EOF
10330 #line 10331 "configure" 10348 #line 10349 "configure"
10331 #include "confdefs.h" 10349 #include "confdefs.h"
10332 /* Override any gcc2 internal prototype to avoid an error. */ 10350 /* Override any gcc2 internal prototype to avoid an error. */
10333 /* We use char because int might match the return type of a gcc2 10351 /* We use char because int might match the return type of a gcc2
10334 builtin and then its argument prototype would still apply. */ 10352 builtin and then its argument prototype would still apply. */
10335 char threeDClassRec(); 10353 char threeDClassRec();
10336 10354
10337 int main() { 10355 int main() {
10338 threeDClassRec() 10356 threeDClassRec()
10339 ; return 0; } 10357 ; return 0; }
10340 EOF 10358 EOF
10341 if { (eval echo configure:10342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10359 if { (eval echo configure:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10342 rm -rf conftest* 10360 rm -rf conftest*
10343 eval "ac_cv_lib_$ac_lib_var=yes" 10361 eval "ac_cv_lib_$ac_lib_var=yes"
10344 else 10362 else
10345 echo "configure: failed program was:" >&5 10363 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5 10364 cat conftest.$ac_ext >&5
10367 10385
10368 10386
10369 else 10387 else
10370 10388
10371 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 10389 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
10372 echo "configure:10373: checking for threeDClassRec in -l$athena_variant" >&5 10390 echo "configure:10391: checking for threeDClassRec in -l$athena_variant" >&5
10373 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 10391 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
10374 10392
10375 xe_check_libs=" -l$athena_variant " 10393 xe_check_libs=" -l$athena_variant "
10376 cat > conftest.$ac_ext <<EOF 10394 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure" 10395 #line 10396 "configure"
10378 #include "confdefs.h" 10396 #include "confdefs.h"
10379 /* Override any gcc2 internal prototype to avoid an error. */ 10397 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2 10398 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */ 10399 builtin and then its argument prototype would still apply. */
10382 char threeDClassRec(); 10400 char threeDClassRec();
10383 10401
10384 int main() { 10402 int main() {
10385 threeDClassRec() 10403 threeDClassRec()
10386 ; return 0; } 10404 ; return 0; }
10387 EOF 10405 EOF
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10406 if { (eval echo configure:10407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10389 rm -rf conftest* 10407 rm -rf conftest*
10390 eval "ac_cv_lib_$ac_lib_var=yes" 10408 eval "ac_cv_lib_$ac_lib_var=yes"
10391 else 10409 else
10392 echo "configure: failed program was:" >&5 10410 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5 10411 cat conftest.$ac_ext >&5
10401 echo "$ac_t""yes" 1>&6 10419 echo "$ac_t""yes" 1>&6
10402 athena_lib=$athena_variant 10420 athena_lib=$athena_variant
10403 else 10421 else
10404 echo "$ac_t""no" 1>&6 10422 echo "$ac_t""no" 1>&6
10405 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 10423 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
10406 echo "configure:10407: checking for threeDClassRec in -lXaw" >&5 10424 echo "configure:10425: checking for threeDClassRec in -lXaw" >&5
10407 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 10425 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
10408 10426
10409 xe_check_libs=" -lXaw " 10427 xe_check_libs=" -lXaw "
10410 cat > conftest.$ac_ext <<EOF 10428 cat > conftest.$ac_ext <<EOF
10411 #line 10412 "configure" 10429 #line 10430 "configure"
10412 #include "confdefs.h" 10430 #include "confdefs.h"
10413 /* Override any gcc2 internal prototype to avoid an error. */ 10431 /* Override any gcc2 internal prototype to avoid an error. */
10414 /* We use char because int might match the return type of a gcc2 10432 /* We use char because int might match the return type of a gcc2
10415 builtin and then its argument prototype would still apply. */ 10433 builtin and then its argument prototype would still apply. */
10416 char threeDClassRec(); 10434 char threeDClassRec();
10417 10435
10418 int main() { 10436 int main() {
10419 threeDClassRec() 10437 threeDClassRec()
10420 ; return 0; } 10438 ; return 0; }
10421 EOF 10439 EOF
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10440 if { (eval echo configure:10441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10423 rm -rf conftest* 10441 rm -rf conftest*
10424 eval "ac_cv_lib_$ac_lib_var=yes" 10442 eval "ac_cv_lib_$ac_lib_var=yes"
10425 else 10443 else
10426 echo "configure: failed program was:" >&5 10444 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5 10445 cat conftest.$ac_ext >&5
10448 fi 10466 fi
10449 10467
10450 if test "$athena_3d" = "no"; then 10468 if test "$athena_3d" = "no"; then
10451 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10469 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
10452 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10470 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
10453 echo "configure:10454: checking for X11/Xaw/ThreeD.h" >&5 10471 echo "configure:10472: checking for X11/Xaw/ThreeD.h" >&5
10454 10472
10455 cat > conftest.$ac_ext <<EOF 10473 cat > conftest.$ac_ext <<EOF
10456 #line 10457 "configure" 10474 #line 10475 "configure"
10457 #include "confdefs.h" 10475 #include "confdefs.h"
10458 #include <X11/Xaw/ThreeD.h> 10476 #include <X11/Xaw/ThreeD.h>
10459 EOF 10477 EOF
10460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10461 { (eval echo configure:10462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10479 { (eval echo configure:10480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10463 if test -z "$ac_err"; then 10481 if test -z "$ac_err"; then
10464 rm -rf conftest* 10482 rm -rf conftest*
10465 eval "ac_cv_header_$ac_safe=yes" 10483 eval "ac_cv_header_$ac_safe=yes"
10466 else 10484 else
10476 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 10494 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
10477 else 10495 else
10478 echo "$ac_t""no" 1>&6 10496 echo "$ac_t""no" 1>&6
10479 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 10497 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
10480 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 10498 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
10481 echo "configure:10482: checking for X11/Xaw/XawInit.h" >&5 10499 echo "configure:10500: checking for X11/Xaw/XawInit.h" >&5
10482 10500
10483 cat > conftest.$ac_ext <<EOF 10501 cat > conftest.$ac_ext <<EOF
10484 #line 10485 "configure" 10502 #line 10503 "configure"
10485 #include "confdefs.h" 10503 #include "confdefs.h"
10486 #include <X11/Xaw/XawInit.h> 10504 #include <X11/Xaw/XawInit.h>
10487 EOF 10505 EOF
10488 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10489 { (eval echo configure:10490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10507 { (eval echo configure:10508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10490 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10491 if test -z "$ac_err"; then 10509 if test -z "$ac_err"; then
10492 rm -rf conftest* 10510 rm -rf conftest*
10493 eval "ac_cv_header_$ac_safe=yes" 10511 eval "ac_cv_header_$ac_safe=yes"
10494 else 10512 else
10510 fi 10528 fi
10511 10529
10512 else 10530 else
10513 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10531 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
10514 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 10532 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
10515 echo "configure:10516: checking for X11/$athena_variant/XawInit.h" >&5 10533 echo "configure:10534: checking for X11/$athena_variant/XawInit.h" >&5
10516 10534
10517 cat > conftest.$ac_ext <<EOF 10535 cat > conftest.$ac_ext <<EOF
10518 #line 10519 "configure" 10536 #line 10537 "configure"
10519 #include "confdefs.h" 10537 #include "confdefs.h"
10520 #include <X11/$athena_variant/XawInit.h> 10538 #include <X11/$athena_variant/XawInit.h>
10521 EOF 10539 EOF
10522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10523 { (eval echo configure:10524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10541 { (eval echo configure:10542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10525 if test -z "$ac_err"; then 10543 if test -z "$ac_err"; then
10526 rm -rf conftest* 10544 rm -rf conftest*
10527 eval "ac_cv_header_$ac_safe=yes" 10545 eval "ac_cv_header_$ac_safe=yes"
10528 else 10546 else
10535 rm -f conftest* 10553 rm -f conftest*
10536 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10537 echo "$ac_t""yes" 1>&6 10555 echo "$ac_t""yes" 1>&6
10538 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10556 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10539 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 10557 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
10540 echo "configure:10541: checking for X11/$athena_variant/ThreeD.h" >&5 10558 echo "configure:10559: checking for X11/$athena_variant/ThreeD.h" >&5
10541 10559
10542 cat > conftest.$ac_ext <<EOF 10560 cat > conftest.$ac_ext <<EOF
10543 #line 10544 "configure" 10561 #line 10562 "configure"
10544 #include "confdefs.h" 10562 #include "confdefs.h"
10545 #include <X11/$athena_variant/ThreeD.h> 10563 #include <X11/$athena_variant/ThreeD.h>
10546 EOF 10564 EOF
10547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10548 { (eval echo configure:10549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10566 { (eval echo configure:10567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10550 if test -z "$ac_err"; then 10568 if test -z "$ac_err"; then
10551 rm -rf conftest* 10569 rm -rf conftest*
10552 eval "ac_cv_header_$ac_safe=yes" 10570 eval "ac_cv_header_$ac_safe=yes"
10553 else 10571 else
10571 10589
10572 10590
10573 if test -z "$athena_h_path"; then 10591 if test -z "$athena_h_path"; then
10574 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10592 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
10575 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 10593 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
10576 echo "configure:10577: checking for $athena_variant/XawInit.h" >&5 10594 echo "configure:10595: checking for $athena_variant/XawInit.h" >&5
10577 10595
10578 cat > conftest.$ac_ext <<EOF 10596 cat > conftest.$ac_ext <<EOF
10579 #line 10580 "configure" 10597 #line 10598 "configure"
10580 #include "confdefs.h" 10598 #include "confdefs.h"
10581 #include <$athena_variant/XawInit.h> 10599 #include <$athena_variant/XawInit.h>
10582 EOF 10600 EOF
10583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10584 { (eval echo configure:10585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10586 if test -z "$ac_err"; then 10604 if test -z "$ac_err"; then
10587 rm -rf conftest* 10605 rm -rf conftest*
10588 eval "ac_cv_header_$ac_safe=yes" 10606 eval "ac_cv_header_$ac_safe=yes"
10589 else 10607 else
10596 rm -f conftest* 10614 rm -f conftest*
10597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10598 echo "$ac_t""yes" 1>&6 10616 echo "$ac_t""yes" 1>&6
10599 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10617 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
10600 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 10618 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
10601 echo "configure:10602: checking for $athena_variant/ThreeD.h" >&5 10619 echo "configure:10620: checking for $athena_variant/ThreeD.h" >&5
10602 10620
10603 cat > conftest.$ac_ext <<EOF 10621 cat > conftest.$ac_ext <<EOF
10604 #line 10605 "configure" 10622 #line 10623 "configure"
10605 #include "confdefs.h" 10623 #include "confdefs.h"
10606 #include <$athena_variant/ThreeD.h> 10624 #include <$athena_variant/ThreeD.h>
10607 EOF 10625 EOF
10608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10609 { (eval echo configure:10610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10627 { (eval echo configure:10628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10611 if test -z "$ac_err"; then 10629 if test -z "$ac_err"; then
10612 rm -rf conftest* 10630 rm -rf conftest*
10613 eval "ac_cv_header_$ac_safe=yes" 10631 eval "ac_cv_header_$ac_safe=yes"
10614 else 10632 else
10633 fi 10651 fi
10634 10652
10635 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10653 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10636 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10654 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10637 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 10655 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
10638 echo "configure:10639: checking for X11/Xaw3d/XawInit.h" >&5 10656 echo "configure:10657: checking for X11/Xaw3d/XawInit.h" >&5
10639 10657
10640 cat > conftest.$ac_ext <<EOF 10658 cat > conftest.$ac_ext <<EOF
10641 #line 10642 "configure" 10659 #line 10660 "configure"
10642 #include "confdefs.h" 10660 #include "confdefs.h"
10643 #include <X11/Xaw3d/XawInit.h> 10661 #include <X11/Xaw3d/XawInit.h>
10644 EOF 10662 EOF
10645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10646 { (eval echo configure:10647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10664 { (eval echo configure:10665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10648 if test -z "$ac_err"; then 10666 if test -z "$ac_err"; then
10649 rm -rf conftest* 10667 rm -rf conftest*
10650 eval "ac_cv_header_$ac_safe=yes" 10668 eval "ac_cv_header_$ac_safe=yes"
10651 else 10669 else
10658 rm -f conftest* 10676 rm -f conftest*
10659 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10660 echo "$ac_t""yes" 1>&6 10678 echo "$ac_t""yes" 1>&6
10661 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10679 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10662 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 10680 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
10663 echo "configure:10664: checking for X11/Xaw3d/ThreeD.h" >&5 10681 echo "configure:10682: checking for X11/Xaw3d/ThreeD.h" >&5
10664 10682
10665 cat > conftest.$ac_ext <<EOF 10683 cat > conftest.$ac_ext <<EOF
10666 #line 10667 "configure" 10684 #line 10685 "configure"
10667 #include "confdefs.h" 10685 #include "confdefs.h"
10668 #include <X11/Xaw3d/ThreeD.h> 10686 #include <X11/Xaw3d/ThreeD.h>
10669 EOF 10687 EOF
10670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10671 { (eval echo configure:10672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10689 { (eval echo configure:10690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10673 if test -z "$ac_err"; then 10691 if test -z "$ac_err"; then
10674 rm -rf conftest* 10692 rm -rf conftest*
10675 eval "ac_cv_header_$ac_safe=yes" 10693 eval "ac_cv_header_$ac_safe=yes"
10676 else 10694 else
10698 fi 10716 fi
10699 10717
10700 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10718 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
10701 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10719 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
10702 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 10720 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
10703 echo "configure:10704: checking for Xaw3d/XawInit.h" >&5 10721 echo "configure:10722: checking for Xaw3d/XawInit.h" >&5
10704 10722
10705 cat > conftest.$ac_ext <<EOF 10723 cat > conftest.$ac_ext <<EOF
10706 #line 10707 "configure" 10724 #line 10725 "configure"
10707 #include "confdefs.h" 10725 #include "confdefs.h"
10708 #include <Xaw3d/XawInit.h> 10726 #include <Xaw3d/XawInit.h>
10709 EOF 10727 EOF
10710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10711 { (eval echo configure:10712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10729 { (eval echo configure:10730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10713 if test -z "$ac_err"; then 10731 if test -z "$ac_err"; then
10714 rm -rf conftest* 10732 rm -rf conftest*
10715 eval "ac_cv_header_$ac_safe=yes" 10733 eval "ac_cv_header_$ac_safe=yes"
10716 else 10734 else
10723 rm -f conftest* 10741 rm -f conftest*
10724 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10725 echo "$ac_t""yes" 1>&6 10743 echo "$ac_t""yes" 1>&6
10726 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10744 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
10727 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 10745 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
10728 echo "configure:10729: checking for Xaw3d/ThreeD.h" >&5 10746 echo "configure:10747: checking for Xaw3d/ThreeD.h" >&5
10729 10747
10730 cat > conftest.$ac_ext <<EOF 10748 cat > conftest.$ac_ext <<EOF
10731 #line 10732 "configure" 10749 #line 10750 "configure"
10732 #include "confdefs.h" 10750 #include "confdefs.h"
10733 #include <Xaw3d/ThreeD.h> 10751 #include <Xaw3d/ThreeD.h>
10734 EOF 10752 EOF
10735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10736 { (eval echo configure:10737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10754 { (eval echo configure:10755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10738 if test -z "$ac_err"; then 10756 if test -z "$ac_err"; then
10739 rm -rf conftest* 10757 rm -rf conftest*
10740 eval "ac_cv_header_$ac_safe=yes" 10758 eval "ac_cv_header_$ac_safe=yes"
10741 else 10759 else
10763 fi 10781 fi
10764 10782
10765 if test -z "$athena_h_path"; then 10783 if test -z "$athena_h_path"; then
10766 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10784 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
10767 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10785 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
10768 echo "configure:10769: checking for X11/Xaw/ThreeD.h" >&5 10786 echo "configure:10787: checking for X11/Xaw/ThreeD.h" >&5
10769 10787
10770 cat > conftest.$ac_ext <<EOF 10788 cat > conftest.$ac_ext <<EOF
10771 #line 10772 "configure" 10789 #line 10790 "configure"
10772 #include "confdefs.h" 10790 #include "confdefs.h"
10773 #include <X11/Xaw/ThreeD.h> 10791 #include <X11/Xaw/ThreeD.h>
10774 EOF 10792 EOF
10775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10776 { (eval echo configure:10777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10794 { (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10778 if test -z "$ac_err"; then 10796 if test -z "$ac_err"; then
10779 rm -rf conftest* 10797 rm -rf conftest*
10780 eval "ac_cv_header_$ac_safe=yes" 10798 eval "ac_cv_header_$ac_safe=yes"
10781 else 10799 else
10810 have_xaw=no 10828 have_xaw=no
10811 fi 10829 fi
10812 if test "$with_x11" = "yes"; then 10830 if test "$with_x11" = "yes"; then
10813 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 10831 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
10814 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 10832 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
10815 echo "configure:10816: checking for Xm/Xm.h" >&5 10833 echo "configure:10834: checking for Xm/Xm.h" >&5
10816 10834
10817 cat > conftest.$ac_ext <<EOF 10835 cat > conftest.$ac_ext <<EOF
10818 #line 10819 "configure" 10836 #line 10837 "configure"
10819 #include "confdefs.h" 10837 #include "confdefs.h"
10820 #include <Xm/Xm.h> 10838 #include <Xm/Xm.h>
10821 EOF 10839 EOF
10822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10840 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10823 { (eval echo configure:10824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10841 { (eval echo configure:10842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10842 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10825 if test -z "$ac_err"; then 10843 if test -z "$ac_err"; then
10826 rm -rf conftest* 10844 rm -rf conftest*
10827 eval "ac_cv_header_$ac_safe=yes" 10845 eval "ac_cv_header_$ac_safe=yes"
10828 else 10846 else
10835 rm -f conftest* 10853 rm -f conftest*
10836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10837 echo "$ac_t""yes" 1>&6 10855 echo "$ac_t""yes" 1>&6
10838 10856
10839 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 10857 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
10840 echo "configure:10841: checking for XmStringFree in -lXm" >&5 10858 echo "configure:10859: checking for XmStringFree in -lXm" >&5
10841 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 10859 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
10842 10860
10843 xe_check_libs=" -lXm " 10861 xe_check_libs=" -lXm "
10844 cat > conftest.$ac_ext <<EOF 10862 cat > conftest.$ac_ext <<EOF
10845 #line 10846 "configure" 10863 #line 10864 "configure"
10846 #include "confdefs.h" 10864 #include "confdefs.h"
10847 /* Override any gcc2 internal prototype to avoid an error. */ 10865 /* Override any gcc2 internal prototype to avoid an error. */
10848 /* We use char because int might match the return type of a gcc2 10866 /* We use char because int might match the return type of a gcc2
10849 builtin and then its argument prototype would still apply. */ 10867 builtin and then its argument prototype would still apply. */
10850 char XmStringFree(); 10868 char XmStringFree();
10851 10869
10852 int main() { 10870 int main() {
10853 XmStringFree() 10871 XmStringFree()
10854 ; return 0; } 10872 ; return 0; }
10855 EOF 10873 EOF
10856 if { (eval echo configure:10857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10874 if { (eval echo configure:10875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10857 rm -rf conftest* 10875 rm -rf conftest*
10858 eval "ac_cv_lib_$ac_lib_var=yes" 10876 eval "ac_cv_lib_$ac_lib_var=yes"
10859 else 10877 else
10860 echo "configure: failed program was:" >&5 10878 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5 10879 cat conftest.$ac_ext >&5
10880 fi 10898 fi
10881 10899
10882 10900
10883 if test "$have_motif" = "yes"; then 10901 if test "$have_motif" = "yes"; then
10884 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 10902 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
10885 echo "configure:10886: checking for Lesstif" >&5 10903 echo "configure:10904: checking for Lesstif" >&5
10886 cat > conftest.$ac_ext <<EOF 10904 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure" 10905 #line 10906 "configure"
10888 #include "confdefs.h" 10906 #include "confdefs.h"
10889 #include <Xm/Xm.h> 10907 #include <Xm/Xm.h>
10890 #ifdef LESSTIF_VERSION 10908 #ifdef LESSTIF_VERSION
10891 yes 10909 yes
10892 #endif 10910 #endif
11255 11273
11256 fi 11274 fi
11257 11275
11258 if test "$with_mule" = "yes" ; then 11276 if test "$with_mule" = "yes" ; then
11259 echo "checking for Mule-related features" 1>&6 11277 echo "checking for Mule-related features" 1>&6
11260 echo "configure:11261: checking for Mule-related features" >&5 11278 echo "configure:11279: checking for Mule-related features" >&5
11261 { test "$extra_verbose" = "yes" && cat << \EOF 11279 { test "$extra_verbose" = "yes" && cat << \EOF
11262 Defining MULE 11280 Defining MULE
11263 EOF 11281 EOF
11264 cat >> confdefs.h <<\EOF 11282 cat >> confdefs.h <<\EOF
11265 #define MULE 1 11283 #define MULE 1
11269 11287
11270 for ac_hdr in libintl.h 11288 for ac_hdr in libintl.h
11271 do 11289 do
11272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11290 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11291 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11274 echo "configure:11275: checking for $ac_hdr" >&5 11292 echo "configure:11293: checking for $ac_hdr" >&5
11275 11293
11276 cat > conftest.$ac_ext <<EOF 11294 cat > conftest.$ac_ext <<EOF
11277 #line 11278 "configure" 11295 #line 11296 "configure"
11278 #include "confdefs.h" 11296 #include "confdefs.h"
11279 #include <$ac_hdr> 11297 #include <$ac_hdr>
11280 EOF 11298 EOF
11281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11282 { (eval echo configure:11283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11300 { (eval echo configure:11301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11284 if test -z "$ac_err"; then 11302 if test -z "$ac_err"; then
11285 rm -rf conftest* 11303 rm -rf conftest*
11286 eval "ac_cv_header_$ac_safe=yes" 11304 eval "ac_cv_header_$ac_safe=yes"
11287 else 11305 else
11308 fi 11326 fi
11309 done 11327 done
11310 11328
11311 11329
11312 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 11330 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
11313 echo "configure:11314: checking for strerror in -lintl" >&5 11331 echo "configure:11332: checking for strerror in -lintl" >&5
11314 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 11332 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
11315 11333
11316 xe_check_libs=" -lintl " 11334 xe_check_libs=" -lintl "
11317 cat > conftest.$ac_ext <<EOF 11335 cat > conftest.$ac_ext <<EOF
11318 #line 11319 "configure" 11336 #line 11337 "configure"
11319 #include "confdefs.h" 11337 #include "confdefs.h"
11320 /* Override any gcc2 internal prototype to avoid an error. */ 11338 /* Override any gcc2 internal prototype to avoid an error. */
11321 /* We use char because int might match the return type of a gcc2 11339 /* We use char because int might match the return type of a gcc2
11322 builtin and then its argument prototype would still apply. */ 11340 builtin and then its argument prototype would still apply. */
11323 char strerror(); 11341 char strerror();
11324 11342
11325 int main() { 11343 int main() {
11326 strerror() 11344 strerror()
11327 ; return 0; } 11345 ; return 0; }
11328 EOF 11346 EOF
11329 if { (eval echo configure:11330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11347 if { (eval echo configure:11348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11330 rm -rf conftest* 11348 rm -rf conftest*
11331 eval "ac_cv_lib_$ac_lib_var=yes" 11349 eval "ac_cv_lib_$ac_lib_var=yes"
11332 else 11350 else
11333 echo "configure: failed program was:" >&5 11351 echo "configure: failed program was:" >&5
11334 cat conftest.$ac_ext >&5 11352 cat conftest.$ac_ext >&5
11357 fi 11375 fi
11358 11376
11359 11377
11360 11378
11361 echo "checking for Mule input methods" 1>&6 11379 echo "checking for Mule input methods" 1>&6
11362 echo "configure:11363: checking for Mule input methods" >&5 11380 echo "configure:11381: checking for Mule input methods" >&5
11363 case "$with_xim" in "" | "yes" ) 11381 case "$with_xim" in "" | "yes" )
11364 echo "checking for XIM" 1>&6 11382 echo "checking for XIM" 1>&6
11365 echo "configure:11366: checking for XIM" >&5 11383 echo "configure:11384: checking for XIM" >&5
11366 11384
11367 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 11385 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
11368 echo "configure:11369: checking for XOpenIM in -lX11" >&5 11386 echo "configure:11387: checking for XOpenIM in -lX11" >&5
11369 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 11387 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
11370 11388
11371 xe_check_libs=" -lX11 " 11389 xe_check_libs=" -lX11 "
11372 cat > conftest.$ac_ext <<EOF 11390 cat > conftest.$ac_ext <<EOF
11373 #line 11374 "configure" 11391 #line 11392 "configure"
11374 #include "confdefs.h" 11392 #include "confdefs.h"
11375 /* Override any gcc2 internal prototype to avoid an error. */ 11393 /* Override any gcc2 internal prototype to avoid an error. */
11376 /* We use char because int might match the return type of a gcc2 11394 /* We use char because int might match the return type of a gcc2
11377 builtin and then its argument prototype would still apply. */ 11395 builtin and then its argument prototype would still apply. */
11378 char XOpenIM(); 11396 char XOpenIM();
11379 11397
11380 int main() { 11398 int main() {
11381 XOpenIM() 11399 XOpenIM()
11382 ; return 0; } 11400 ; return 0; }
11383 EOF 11401 EOF
11384 if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11402 if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11385 rm -rf conftest* 11403 rm -rf conftest*
11386 eval "ac_cv_lib_$ac_lib_var=yes" 11404 eval "ac_cv_lib_$ac_lib_var=yes"
11387 else 11405 else
11388 echo "configure: failed program was:" >&5 11406 echo "configure: failed program was:" >&5
11389 cat conftest.$ac_ext >&5 11407 cat conftest.$ac_ext >&5
11403 11421
11404 11422
11405 if test "$have_motif $have_lesstif" = "yes no"; then 11423 if test "$have_motif $have_lesstif" = "yes no"; then
11406 11424
11407 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 11425 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
11408 echo "configure:11409: checking for XmImMbLookupString in -lXm" >&5 11426 echo "configure:11427: checking for XmImMbLookupString in -lXm" >&5
11409 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 11427 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
11410 11428
11411 xe_check_libs=" -lXm " 11429 xe_check_libs=" -lXm "
11412 cat > conftest.$ac_ext <<EOF 11430 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure" 11431 #line 11432 "configure"
11414 #include "confdefs.h" 11432 #include "confdefs.h"
11415 /* Override any gcc2 internal prototype to avoid an error. */ 11433 /* Override any gcc2 internal prototype to avoid an error. */
11416 /* We use char because int might match the return type of a gcc2 11434 /* We use char because int might match the return type of a gcc2
11417 builtin and then its argument prototype would still apply. */ 11435 builtin and then its argument prototype would still apply. */
11418 char XmImMbLookupString(); 11436 char XmImMbLookupString();
11419 11437
11420 int main() { 11438 int main() {
11421 XmImMbLookupString() 11439 XmImMbLookupString()
11422 ; return 0; } 11440 ; return 0; }
11423 EOF 11441 EOF
11424 if { (eval echo configure:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11442 if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11425 rm -rf conftest* 11443 rm -rf conftest*
11426 eval "ac_cv_lib_$ac_lib_var=yes" 11444 eval "ac_cv_lib_$ac_lib_var=yes"
11427 else 11445 else
11428 echo "configure: failed program was:" >&5 11446 echo "configure: failed program was:" >&5
11429 cat conftest.$ac_ext >&5 11447 cat conftest.$ac_ext >&5
11484 fi 11502 fi
11485 fi 11503 fi
11486 11504
11487 if test "$with_xfs" = "yes" ; then 11505 if test "$with_xfs" = "yes" ; then
11488 echo "checking for XFontSet" 1>&6 11506 echo "checking for XFontSet" 1>&6
11489 echo "configure:11490: checking for XFontSet" >&5 11507 echo "configure:11508: checking for XFontSet" >&5
11490 11508
11491 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 11509 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
11492 echo "configure:11493: checking for XmbDrawString in -lX11" >&5 11510 echo "configure:11511: checking for XmbDrawString in -lX11" >&5
11493 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 11511 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
11494 11512
11495 xe_check_libs=" -lX11 " 11513 xe_check_libs=" -lX11 "
11496 cat > conftest.$ac_ext <<EOF 11514 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure" 11515 #line 11516 "configure"
11498 #include "confdefs.h" 11516 #include "confdefs.h"
11499 /* Override any gcc2 internal prototype to avoid an error. */ 11517 /* Override any gcc2 internal prototype to avoid an error. */
11500 /* We use char because int might match the return type of a gcc2 11518 /* We use char because int might match the return type of a gcc2
11501 builtin and then its argument prototype would still apply. */ 11519 builtin and then its argument prototype would still apply. */
11502 char XmbDrawString(); 11520 char XmbDrawString();
11503 11521
11504 int main() { 11522 int main() {
11505 XmbDrawString() 11523 XmbDrawString()
11506 ; return 0; } 11524 ; return 0; }
11507 EOF 11525 EOF
11508 if { (eval echo configure:11509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11526 if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11509 rm -rf conftest* 11527 rm -rf conftest*
11510 eval "ac_cv_lib_$ac_lib_var=yes" 11528 eval "ac_cv_lib_$ac_lib_var=yes"
11511 else 11529 else
11512 echo "configure: failed program was:" >&5 11530 echo "configure: failed program was:" >&5
11513 cat conftest.$ac_ext >&5 11531 cat conftest.$ac_ext >&5
11543 fi 11561 fi
11544 fi 11562 fi
11545 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 11563 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
11546 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 11564 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
11547 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 11565 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
11548 echo "configure:11549: checking for wnn/jllib.h" >&5 11566 echo "configure:11567: checking for wnn/jllib.h" >&5
11549 11567
11550 cat > conftest.$ac_ext <<EOF 11568 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure" 11569 #line 11570 "configure"
11552 #include "confdefs.h" 11570 #include "confdefs.h"
11553 #include <wnn/jllib.h> 11571 #include <wnn/jllib.h>
11554 EOF 11572 EOF
11555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11556 { (eval echo configure:11557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11574 { (eval echo configure:11575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11558 if test -z "$ac_err"; then 11576 if test -z "$ac_err"; then
11559 rm -rf conftest* 11577 rm -rf conftest*
11560 eval "ac_cv_header_$ac_safe=yes" 11578 eval "ac_cv_header_$ac_safe=yes"
11561 else 11579 else
11574 with_wnn=no 11592 with_wnn=no
11575 fi 11593 fi
11576 } 11594 }
11577 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 11595 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
11578 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 11596 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
11579 echo "configure:11580: checking for wnn/commonhd.h" >&5 11597 echo "configure:11598: checking for wnn/commonhd.h" >&5
11580 11598
11581 cat > conftest.$ac_ext <<EOF 11599 cat > conftest.$ac_ext <<EOF
11582 #line 11583 "configure" 11600 #line 11601 "configure"
11583 #include "confdefs.h" 11601 #include "confdefs.h"
11584 #include <wnn/commonhd.h> 11602 #include <wnn/commonhd.h>
11585 EOF 11603 EOF
11586 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11587 { (eval echo configure:11588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11605 { (eval echo configure:11606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11588 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11589 if test -z "$ac_err"; then 11607 if test -z "$ac_err"; then
11590 rm -rf conftest* 11608 rm -rf conftest*
11591 eval "ac_cv_header_$ac_safe=yes" 11609 eval "ac_cv_header_$ac_safe=yes"
11592 else 11610 else
11607 } 11625 }
11608 if test "$with_wnn" != "no"; then 11626 if test "$with_wnn" != "no"; then
11609 for ac_func in crypt 11627 for ac_func in crypt
11610 do 11628 do
11611 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11612 echo "configure:11613: checking for $ac_func" >&5 11630 echo "configure:11631: checking for $ac_func" >&5
11613 11631
11614 cat > conftest.$ac_ext <<EOF 11632 cat > conftest.$ac_ext <<EOF
11615 #line 11616 "configure" 11633 #line 11634 "configure"
11616 #include "confdefs.h" 11634 #include "confdefs.h"
11617 /* System header to define __stub macros and hopefully few prototypes, 11635 /* System header to define __stub macros and hopefully few prototypes,
11618 which can conflict with char $ac_func(); below. */ 11636 which can conflict with char $ac_func(); below. */
11619 #include <assert.h> 11637 #include <assert.h>
11620 /* Override any gcc2 internal prototype to avoid an error. */ 11638 /* Override any gcc2 internal prototype to avoid an error. */
11633 $ac_func(); 11651 $ac_func();
11634 #endif 11652 #endif
11635 11653
11636 ; return 0; } 11654 ; return 0; }
11637 EOF 11655 EOF
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11656 if { (eval echo configure:11657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11639 rm -rf conftest* 11657 rm -rf conftest*
11640 eval "ac_cv_func_$ac_func=yes" 11658 eval "ac_cv_func_$ac_func=yes"
11641 else 11659 else
11642 echo "configure: failed program was:" >&5 11660 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5 11661 cat conftest.$ac_ext >&5
11662 fi 11680 fi
11663 done 11681 done
11664 11682
11665 test "$ac_cv_func_crypt" != "yes" && { 11683 test "$ac_cv_func_crypt" != "yes" && {
11666 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 11684 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
11667 echo "configure:11668: checking for crypt in -lcrypt" >&5 11685 echo "configure:11686: checking for crypt in -lcrypt" >&5
11668 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 11686 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
11669 11687
11670 xe_check_libs=" -lcrypt " 11688 xe_check_libs=" -lcrypt "
11671 cat > conftest.$ac_ext <<EOF 11689 cat > conftest.$ac_ext <<EOF
11672 #line 11673 "configure" 11690 #line 11691 "configure"
11673 #include "confdefs.h" 11691 #include "confdefs.h"
11674 /* Override any gcc2 internal prototype to avoid an error. */ 11692 /* Override any gcc2 internal prototype to avoid an error. */
11675 /* We use char because int might match the return type of a gcc2 11693 /* We use char because int might match the return type of a gcc2
11676 builtin and then its argument prototype would still apply. */ 11694 builtin and then its argument prototype would still apply. */
11677 char crypt(); 11695 char crypt();
11678 11696
11679 int main() { 11697 int main() {
11680 crypt() 11698 crypt()
11681 ; return 0; } 11699 ; return 0; }
11682 EOF 11700 EOF
11683 if { (eval echo configure:11684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11701 if { (eval echo configure:11702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11684 rm -rf conftest* 11702 rm -rf conftest*
11685 eval "ac_cv_lib_$ac_lib_var=yes" 11703 eval "ac_cv_lib_$ac_lib_var=yes"
11686 else 11704 else
11687 echo "configure: failed program was:" >&5 11705 echo "configure: failed program was:" >&5
11688 cat conftest.$ac_ext >&5 11706 cat conftest.$ac_ext >&5
11713 } 11731 }
11714 fi 11732 fi
11715 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 11733 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
11716 11734
11717 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 11735 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
11718 echo "configure:11719: checking for jl_dic_list_e in -lwnn" >&5 11736 echo "configure:11737: checking for jl_dic_list_e in -lwnn" >&5
11719 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11737 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11720 11738
11721 xe_check_libs=" -lwnn " 11739 xe_check_libs=" -lwnn "
11722 cat > conftest.$ac_ext <<EOF 11740 cat > conftest.$ac_ext <<EOF
11723 #line 11724 "configure" 11741 #line 11742 "configure"
11724 #include "confdefs.h" 11742 #include "confdefs.h"
11725 /* Override any gcc2 internal prototype to avoid an error. */ 11743 /* Override any gcc2 internal prototype to avoid an error. */
11726 /* We use char because int might match the return type of a gcc2 11744 /* We use char because int might match the return type of a gcc2
11727 builtin and then its argument prototype would still apply. */ 11745 builtin and then its argument prototype would still apply. */
11728 char jl_dic_list_e(); 11746 char jl_dic_list_e();
11729 11747
11730 int main() { 11748 int main() {
11731 jl_dic_list_e() 11749 jl_dic_list_e()
11732 ; return 0; } 11750 ; return 0; }
11733 EOF 11751 EOF
11734 if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11752 if { (eval echo configure:11753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11735 rm -rf conftest* 11753 rm -rf conftest*
11736 eval "ac_cv_lib_$ac_lib_var=yes" 11754 eval "ac_cv_lib_$ac_lib_var=yes"
11737 else 11755 else
11738 echo "configure: failed program was:" >&5 11756 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5 11757 cat conftest.$ac_ext >&5
11747 echo "$ac_t""yes" 1>&6 11765 echo "$ac_t""yes" 1>&6
11748 libwnn=wnn 11766 libwnn=wnn
11749 else 11767 else
11750 echo "$ac_t""no" 1>&6 11768 echo "$ac_t""no" 1>&6
11751 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 11769 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
11752 echo "configure:11753: checking for jl_dic_list_e in -lwnn4" >&5 11770 echo "configure:11771: checking for jl_dic_list_e in -lwnn4" >&5
11753 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11771 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11754 11772
11755 xe_check_libs=" -lwnn4 " 11773 xe_check_libs=" -lwnn4 "
11756 cat > conftest.$ac_ext <<EOF 11774 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure" 11775 #line 11776 "configure"
11758 #include "confdefs.h" 11776 #include "confdefs.h"
11759 /* Override any gcc2 internal prototype to avoid an error. */ 11777 /* Override any gcc2 internal prototype to avoid an error. */
11760 /* We use char because int might match the return type of a gcc2 11778 /* We use char because int might match the return type of a gcc2
11761 builtin and then its argument prototype would still apply. */ 11779 builtin and then its argument prototype would still apply. */
11762 char jl_dic_list_e(); 11780 char jl_dic_list_e();
11763 11781
11764 int main() { 11782 int main() {
11765 jl_dic_list_e() 11783 jl_dic_list_e()
11766 ; return 0; } 11784 ; return 0; }
11767 EOF 11785 EOF
11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11786 if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11769 rm -rf conftest* 11787 rm -rf conftest*
11770 eval "ac_cv_lib_$ac_lib_var=yes" 11788 eval "ac_cv_lib_$ac_lib_var=yes"
11771 else 11789 else
11772 echo "configure: failed program was:" >&5 11790 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5 11791 cat conftest.$ac_ext >&5
11781 echo "$ac_t""yes" 1>&6 11799 echo "$ac_t""yes" 1>&6
11782 libwnn=wnn4 11800 libwnn=wnn4
11783 else 11801 else
11784 echo "$ac_t""no" 1>&6 11802 echo "$ac_t""no" 1>&6
11785 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 11803 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
11786 echo "configure:11787: checking for jl_dic_list_e in -lwnn6" >&5 11804 echo "configure:11805: checking for jl_dic_list_e in -lwnn6" >&5
11787 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11805 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
11788 11806
11789 xe_check_libs=" -lwnn6 " 11807 xe_check_libs=" -lwnn6 "
11790 cat > conftest.$ac_ext <<EOF 11808 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure" 11809 #line 11810 "configure"
11792 #include "confdefs.h" 11810 #include "confdefs.h"
11793 /* Override any gcc2 internal prototype to avoid an error. */ 11811 /* Override any gcc2 internal prototype to avoid an error. */
11794 /* We use char because int might match the return type of a gcc2 11812 /* We use char because int might match the return type of a gcc2
11795 builtin and then its argument prototype would still apply. */ 11813 builtin and then its argument prototype would still apply. */
11796 char jl_dic_list_e(); 11814 char jl_dic_list_e();
11797 11815
11798 int main() { 11816 int main() {
11799 jl_dic_list_e() 11817 jl_dic_list_e()
11800 ; return 0; } 11818 ; return 0; }
11801 EOF 11819 EOF
11802 if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11803 rm -rf conftest* 11821 rm -rf conftest*
11804 eval "ac_cv_lib_$ac_lib_var=yes" 11822 eval "ac_cv_lib_$ac_lib_var=yes"
11805 else 11823 else
11806 echo "configure: failed program was:" >&5 11824 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5 11825 cat conftest.$ac_ext >&5
11815 echo "$ac_t""yes" 1>&6 11833 echo "$ac_t""yes" 1>&6
11816 libwnn=wnn6 11834 libwnn=wnn6
11817 else 11835 else
11818 echo "$ac_t""no" 1>&6 11836 echo "$ac_t""no" 1>&6
11819 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 11837 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
11820 echo "configure:11821: checking for dic_list_e in -lwnn6_fromsrc" >&5 11838 echo "configure:11839: checking for dic_list_e in -lwnn6_fromsrc" >&5
11821 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 11839 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
11822 11840
11823 xe_check_libs=" -lwnn6_fromsrc " 11841 xe_check_libs=" -lwnn6_fromsrc "
11824 cat > conftest.$ac_ext <<EOF 11842 cat > conftest.$ac_ext <<EOF
11825 #line 11826 "configure" 11843 #line 11844 "configure"
11826 #include "confdefs.h" 11844 #include "confdefs.h"
11827 /* Override any gcc2 internal prototype to avoid an error. */ 11845 /* Override any gcc2 internal prototype to avoid an error. */
11828 /* We use char because int might match the return type of a gcc2 11846 /* We use char because int might match the return type of a gcc2
11829 builtin and then its argument prototype would still apply. */ 11847 builtin and then its argument prototype would still apply. */
11830 char dic_list_e(); 11848 char dic_list_e();
11831 11849
11832 int main() { 11850 int main() {
11833 dic_list_e() 11851 dic_list_e()
11834 ; return 0; } 11852 ; return 0; }
11835 EOF 11853 EOF
11836 if { (eval echo configure:11837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11837 rm -rf conftest* 11855 rm -rf conftest*
11838 eval "ac_cv_lib_$ac_lib_var=yes" 11856 eval "ac_cv_lib_$ac_lib_var=yes"
11839 else 11857 else
11840 echo "configure: failed program was:" >&5 11858 echo "configure: failed program was:" >&5
11841 cat conftest.$ac_ext >&5 11859 cat conftest.$ac_ext >&5
11876 11894
11877 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi 11895 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
11878 if test "$with_wnn6" != "no"; then 11896 if test "$with_wnn6" != "no"; then
11879 11897
11880 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 11898 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
11881 echo "configure:11882: checking for jl_fi_dic_list in -l$libwnn" >&5 11899 echo "configure:11900: checking for jl_fi_dic_list in -l$libwnn" >&5
11882 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 11900 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
11883 11901
11884 xe_check_libs=" -l$libwnn " 11902 xe_check_libs=" -l$libwnn "
11885 cat > conftest.$ac_ext <<EOF 11903 cat > conftest.$ac_ext <<EOF
11886 #line 11887 "configure" 11904 #line 11905 "configure"
11887 #include "confdefs.h" 11905 #include "confdefs.h"
11888 /* Override any gcc2 internal prototype to avoid an error. */ 11906 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2 11907 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */ 11908 builtin and then its argument prototype would still apply. */
11891 char jl_fi_dic_list(); 11909 char jl_fi_dic_list();
11892 11910
11893 int main() { 11911 int main() {
11894 jl_fi_dic_list() 11912 jl_fi_dic_list()
11895 ; return 0; } 11913 ; return 0; }
11896 EOF 11914 EOF
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11915 if { (eval echo configure:11916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 rm -rf conftest* 11916 rm -rf conftest*
11899 eval "ac_cv_lib_$ac_lib_var=yes" 11917 eval "ac_cv_lib_$ac_lib_var=yes"
11900 else 11918 else
11901 echo "configure: failed program was:" >&5 11919 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5 11920 cat conftest.$ac_ext >&5
11927 11945
11928 canna_includes_found=no 11946 canna_includes_found=no
11929 if test "$with_canna" != "no"; then 11947 if test "$with_canna" != "no"; then
11930 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11948 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11931 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11949 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11932 echo "configure:11933: checking for canna/jrkanji.h" >&5 11950 echo "configure:11951: checking for canna/jrkanji.h" >&5
11933 11951
11934 cat > conftest.$ac_ext <<EOF 11952 cat > conftest.$ac_ext <<EOF
11935 #line 11936 "configure" 11953 #line 11954 "configure"
11936 #include "confdefs.h" 11954 #include "confdefs.h"
11937 #include <canna/jrkanji.h> 11955 #include <canna/jrkanji.h>
11938 EOF 11956 EOF
11939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11940 { (eval echo configure:11941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11958 { (eval echo configure:11959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11942 if test -z "$ac_err"; then 11960 if test -z "$ac_err"; then
11943 rm -rf conftest* 11961 rm -rf conftest*
11944 eval "ac_cv_header_$ac_safe=yes" 11962 eval "ac_cv_header_$ac_safe=yes"
11945 else 11963 else
11962 -d "/usr/local/canna/include"; then 11980 -d "/usr/local/canna/include"; then
11963 save_c_switch_site="$c_switch_site" 11981 save_c_switch_site="$c_switch_site"
11964 c_switch_site="$c_switch_site -I/usr/local/canna/include" 11982 c_switch_site="$c_switch_site -I/usr/local/canna/include"
11965 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11983 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
11966 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11984 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
11967 echo "configure:11968: checking for canna/jrkanji.h" >&5 11985 echo "configure:11986: checking for canna/jrkanji.h" >&5
11968 11986
11969 cat > conftest.$ac_ext <<EOF 11987 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure" 11988 #line 11989 "configure"
11971 #include "confdefs.h" 11989 #include "confdefs.h"
11972 #include <canna/jrkanji.h> 11990 #include <canna/jrkanji.h>
11973 EOF 11991 EOF
11974 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11975 { (eval echo configure:11976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11993 { (eval echo configure:11994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11976 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11977 if test -z "$ac_err"; then 11995 if test -z "$ac_err"; then
11978 rm -rf conftest* 11996 rm -rf conftest*
11979 eval "ac_cv_header_$ac_safe=yes" 11997 eval "ac_cv_header_$ac_safe=yes"
11980 else 11998 else
11998 fi 12016 fi
11999 fi 12017 fi
12000 12018
12001 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 12019 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
12002 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 12020 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
12003 echo "configure:12004: checking for canna/RK.h" >&5 12021 echo "configure:12022: checking for canna/RK.h" >&5
12004 12022
12005 cat > conftest.$ac_ext <<EOF 12023 cat > conftest.$ac_ext <<EOF
12006 #line 12007 "configure" 12024 #line 12025 "configure"
12007 #include "confdefs.h" 12025 #include "confdefs.h"
12008 #include <canna/RK.h> 12026 #include <canna/RK.h>
12009 EOF 12027 EOF
12010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12011 { (eval echo configure:12012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12029 { (eval echo configure:12030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12013 if test -z "$ac_err"; then 12031 if test -z "$ac_err"; then
12014 rm -rf conftest* 12032 rm -rf conftest*
12015 eval "ac_cv_header_$ac_safe=yes" 12033 eval "ac_cv_header_$ac_safe=yes"
12016 else 12034 else
12029 with_canna=no 12047 with_canna=no
12030 fi 12048 fi
12031 } 12049 }
12032 test -z "$with_canna" && { 12050 test -z "$with_canna" && {
12033 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 12051 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
12034 echo "configure:12035: checking for RkBgnBun in -lRKC" >&5 12052 echo "configure:12053: checking for RkBgnBun in -lRKC" >&5
12035 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 12053 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
12036 12054
12037 xe_check_libs=" -lRKC " 12055 xe_check_libs=" -lRKC "
12038 cat > conftest.$ac_ext <<EOF 12056 cat > conftest.$ac_ext <<EOF
12039 #line 12040 "configure" 12057 #line 12058 "configure"
12040 #include "confdefs.h" 12058 #include "confdefs.h"
12041 /* Override any gcc2 internal prototype to avoid an error. */ 12059 /* Override any gcc2 internal prototype to avoid an error. */
12042 /* We use char because int might match the return type of a gcc2 12060 /* We use char because int might match the return type of a gcc2
12043 builtin and then its argument prototype would still apply. */ 12061 builtin and then its argument prototype would still apply. */
12044 char RkBgnBun(); 12062 char RkBgnBun();
12045 12063
12046 int main() { 12064 int main() {
12047 RkBgnBun() 12065 RkBgnBun()
12048 ; return 0; } 12066 ; return 0; }
12049 EOF 12067 EOF
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12068 if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12051 rm -rf conftest* 12069 rm -rf conftest*
12052 eval "ac_cv_lib_$ac_lib_var=yes" 12070 eval "ac_cv_lib_$ac_lib_var=yes"
12053 else 12071 else
12054 echo "configure: failed program was:" >&5 12072 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5 12073 cat conftest.$ac_ext >&5
12068 fi 12086 fi
12069 12087
12070 } 12088 }
12071 test -z "$with_canna" && { 12089 test -z "$with_canna" && {
12072 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 12090 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
12073 echo "configure:12074: checking for jrKanjiControl in -lcanna" >&5 12091 echo "configure:12092: checking for jrKanjiControl in -lcanna" >&5
12074 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 12092 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
12075 12093
12076 xe_check_libs=" -lcanna " 12094 xe_check_libs=" -lcanna "
12077 cat > conftest.$ac_ext <<EOF 12095 cat > conftest.$ac_ext <<EOF
12078 #line 12079 "configure" 12096 #line 12097 "configure"
12079 #include "confdefs.h" 12097 #include "confdefs.h"
12080 /* Override any gcc2 internal prototype to avoid an error. */ 12098 /* Override any gcc2 internal prototype to avoid an error. */
12081 /* We use char because int might match the return type of a gcc2 12099 /* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */ 12100 builtin and then its argument prototype would still apply. */
12083 char jrKanjiControl(); 12101 char jrKanjiControl();
12084 12102
12085 int main() { 12103 int main() {
12086 jrKanjiControl() 12104 jrKanjiControl()
12087 ; return 0; } 12105 ; return 0; }
12088 EOF 12106 EOF
12089 if { (eval echo configure:12090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12107 if { (eval echo configure:12108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12090 rm -rf conftest* 12108 rm -rf conftest*
12091 eval "ac_cv_lib_$ac_lib_var=yes" 12109 eval "ac_cv_lib_$ac_lib_var=yes"
12092 else 12110 else
12093 echo "configure: failed program was:" >&5 12111 echo "configure: failed program was:" >&5
12094 cat conftest.$ac_ext >&5 12112 cat conftest.$ac_ext >&5
12130 12148
12131 if test "$need_motif" = "yes" ; then 12149 if test "$need_motif" = "yes" ; then
12132 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 12150 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
12133 12151
12134 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 12152 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
12135 echo "configure:12136: checking for layout_object_getvalue in -li18n" >&5 12153 echo "configure:12154: checking for layout_object_getvalue in -li18n" >&5
12136 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 12154 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
12137 12155
12138 xe_check_libs=" -li18n " 12156 xe_check_libs=" -li18n "
12139 cat > conftest.$ac_ext <<EOF 12157 cat > conftest.$ac_ext <<EOF
12140 #line 12141 "configure" 12158 #line 12159 "configure"
12141 #include "confdefs.h" 12159 #include "confdefs.h"
12142 /* Override any gcc2 internal prototype to avoid an error. */ 12160 /* Override any gcc2 internal prototype to avoid an error. */
12143 /* We use char because int might match the return type of a gcc2 12161 /* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */ 12162 builtin and then its argument prototype would still apply. */
12145 char layout_object_getvalue(); 12163 char layout_object_getvalue();
12146 12164
12147 int main() { 12165 int main() {
12148 layout_object_getvalue() 12166 layout_object_getvalue()
12149 ; return 0; } 12167 ; return 0; }
12150 EOF 12168 EOF
12151 if { (eval echo configure:12152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12169 if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12152 rm -rf conftest* 12170 rm -rf conftest*
12153 eval "ac_cv_lib_$ac_lib_var=yes" 12171 eval "ac_cv_lib_$ac_lib_var=yes"
12154 else 12172 else
12155 echo "configure: failed program was:" >&5 12173 echo "configure: failed program was:" >&5
12156 cat conftest.$ac_ext >&5 12174 cat conftest.$ac_ext >&5
12233 12251
12234 12252
12235 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strupr symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen 12253 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp fsync ftime ftruncate getaddrinfo gethostname getnameinfo getpagesize getrlimit gettimeofday getcwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setsid sigblock sighold sigprocmask snprintf strerror strlwr strupr symlink tzset ulimit umask usleep vlimit vsnprintf waitpid wcscmp wcslen
12236 do 12254 do
12237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12255 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12238 echo "configure:12239: checking for $ac_func" >&5 12256 echo "configure:12257: checking for $ac_func" >&5
12239 12257
12240 cat > conftest.$ac_ext <<EOF 12258 cat > conftest.$ac_ext <<EOF
12241 #line 12242 "configure" 12259 #line 12260 "configure"
12242 #include "confdefs.h" 12260 #include "confdefs.h"
12243 /* System header to define __stub macros and hopefully few prototypes, 12261 /* System header to define __stub macros and hopefully few prototypes,
12244 which can conflict with char $ac_func(); below. */ 12262 which can conflict with char $ac_func(); below. */
12245 #include <assert.h> 12263 #include <assert.h>
12246 /* Override any gcc2 internal prototype to avoid an error. */ 12264 /* Override any gcc2 internal prototype to avoid an error. */
12259 $ac_func(); 12277 $ac_func();
12260 #endif 12278 #endif
12261 12279
12262 ; return 0; } 12280 ; return 0; }
12263 EOF 12281 EOF
12264 if { (eval echo configure:12265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12282 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12265 rm -rf conftest* 12283 rm -rf conftest*
12266 eval "ac_cv_func_$ac_func=yes" 12284 eval "ac_cv_func_$ac_func=yes"
12267 else 12285 else
12268 echo "configure: failed program was:" >&5 12286 echo "configure: failed program was:" >&5
12269 cat conftest.$ac_ext >&5 12287 cat conftest.$ac_ext >&5
12300 12318
12301 12319
12302 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 12320 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
12303 do 12321 do
12304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12322 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12305 echo "configure:12306: checking for $ac_func" >&5 12323 echo "configure:12324: checking for $ac_func" >&5
12306 12324
12307 cat > conftest.$ac_ext <<EOF 12325 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure" 12326 #line 12327 "configure"
12309 #include "confdefs.h" 12327 #include "confdefs.h"
12310 /* System header to define __stub macros and hopefully few prototypes, 12328 /* System header to define __stub macros and hopefully few prototypes,
12311 which can conflict with char $ac_func(); below. */ 12329 which can conflict with char $ac_func(); below. */
12312 #include <assert.h> 12330 #include <assert.h>
12313 /* Override any gcc2 internal prototype to avoid an error. */ 12331 /* Override any gcc2 internal prototype to avoid an error. */
12326 $ac_func(); 12344 $ac_func();
12327 #endif 12345 #endif
12328 12346
12329 ; return 0; } 12347 ; return 0; }
12330 EOF 12348 EOF
12331 if { (eval echo configure:12332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12349 if { (eval echo configure:12350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12332 rm -rf conftest* 12350 rm -rf conftest*
12333 eval "ac_cv_func_$ac_func=yes" 12351 eval "ac_cv_func_$ac_func=yes"
12334 else 12352 else
12335 echo "configure: failed program was:" >&5 12353 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5 12354 cat conftest.$ac_ext >&5
12355 fi 12373 fi
12356 done 12374 done
12357 12375
12358 12376
12359 echo $ac_n "checking for openpty""... $ac_c" 1>&6 12377 echo $ac_n "checking for openpty""... $ac_c" 1>&6
12360 echo "configure:12361: checking for openpty" >&5 12378 echo "configure:12379: checking for openpty" >&5
12361 12379
12362 cat > conftest.$ac_ext <<EOF 12380 cat > conftest.$ac_ext <<EOF
12363 #line 12364 "configure" 12381 #line 12382 "configure"
12364 #include "confdefs.h" 12382 #include "confdefs.h"
12365 /* System header to define __stub macros and hopefully few prototypes, 12383 /* System header to define __stub macros and hopefully few prototypes,
12366 which can conflict with char openpty(); below. */ 12384 which can conflict with char openpty(); below. */
12367 #include <assert.h> 12385 #include <assert.h>
12368 /* Override any gcc2 internal prototype to avoid an error. */ 12386 /* Override any gcc2 internal prototype to avoid an error. */
12381 openpty(); 12399 openpty();
12382 #endif 12400 #endif
12383 12401
12384 ; return 0; } 12402 ; return 0; }
12385 EOF 12403 EOF
12386 if { (eval echo configure:12387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12404 if { (eval echo configure:12405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12387 rm -rf conftest* 12405 rm -rf conftest*
12388 eval "ac_cv_func_openpty=yes" 12406 eval "ac_cv_func_openpty=yes"
12389 else 12407 else
12390 echo "configure: failed program was:" >&5 12408 echo "configure: failed program was:" >&5
12391 cat conftest.$ac_ext >&5 12409 cat conftest.$ac_ext >&5
12400 else 12418 else
12401 echo "$ac_t""no" 1>&6 12419 echo "$ac_t""no" 1>&6
12402 12420
12403 12421
12404 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 12422 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
12405 echo "configure:12406: checking for openpty in -lutil" >&5 12423 echo "configure:12424: checking for openpty in -lutil" >&5
12406 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 12424 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
12407 12425
12408 xe_check_libs=" -lutil " 12426 xe_check_libs=" -lutil "
12409 cat > conftest.$ac_ext <<EOF 12427 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure" 12428 #line 12429 "configure"
12411 #include "confdefs.h" 12429 #include "confdefs.h"
12412 /* Override any gcc2 internal prototype to avoid an error. */ 12430 /* Override any gcc2 internal prototype to avoid an error. */
12413 /* We use char because int might match the return type of a gcc2 12431 /* We use char because int might match the return type of a gcc2
12414 builtin and then its argument prototype would still apply. */ 12432 builtin and then its argument prototype would still apply. */
12415 char openpty(); 12433 char openpty();
12416 12434
12417 int main() { 12435 int main() {
12418 openpty() 12436 openpty()
12419 ; return 0; } 12437 ; return 0; }
12420 EOF 12438 EOF
12421 if { (eval echo configure:12422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12422 rm -rf conftest* 12440 rm -rf conftest*
12423 eval "ac_cv_lib_$ac_lib_var=yes" 12441 eval "ac_cv_lib_$ac_lib_var=yes"
12424 else 12442 else
12425 echo "configure: failed program was:" >&5 12443 echo "configure: failed program was:" >&5
12426 cat conftest.$ac_ext >&5 12444 cat conftest.$ac_ext >&5
12451 12469
12452 for ac_hdr in libutil.h util.h 12470 for ac_hdr in libutil.h util.h
12453 do 12471 do
12454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12456 echo "configure:12457: checking for $ac_hdr" >&5 12474 echo "configure:12475: checking for $ac_hdr" >&5
12457 12475
12458 cat > conftest.$ac_ext <<EOF 12476 cat > conftest.$ac_ext <<EOF
12459 #line 12460 "configure" 12477 #line 12478 "configure"
12460 #include "confdefs.h" 12478 #include "confdefs.h"
12461 #include <$ac_hdr> 12479 #include <$ac_hdr>
12462 EOF 12480 EOF
12463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12464 { (eval echo configure:12465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12482 { (eval echo configure:12483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12466 if test -z "$ac_err"; then 12484 if test -z "$ac_err"; then
12467 rm -rf conftest* 12485 rm -rf conftest*
12468 eval "ac_cv_header_$ac_safe=yes" 12486 eval "ac_cv_header_$ac_safe=yes"
12469 else 12487 else
12496 case "$opsys" in 12514 case "$opsys" in
12497 hpux*) for ac_hdr in sys/ptyio.h 12515 hpux*) for ac_hdr in sys/ptyio.h
12498 do 12516 do
12499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12501 echo "configure:12502: checking for $ac_hdr" >&5 12519 echo "configure:12520: checking for $ac_hdr" >&5
12502 12520
12503 cat > conftest.$ac_ext <<EOF 12521 cat > conftest.$ac_ext <<EOF
12504 #line 12505 "configure" 12522 #line 12523 "configure"
12505 #include "confdefs.h" 12523 #include "confdefs.h"
12506 #include <$ac_hdr> 12524 #include <$ac_hdr>
12507 EOF 12525 EOF
12508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12509 { (eval echo configure:12510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12527 { (eval echo configure:12528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12511 if test -z "$ac_err"; then 12529 if test -z "$ac_err"; then
12512 rm -rf conftest* 12530 rm -rf conftest*
12513 eval "ac_cv_header_$ac_safe=yes" 12531 eval "ac_cv_header_$ac_safe=yes"
12514 else 12532 else
12537 ;; 12555 ;;
12538 *) for ac_hdr in pty.h 12556 *) for ac_hdr in pty.h
12539 do 12557 do
12540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12542 echo "configure:12543: checking for $ac_hdr" >&5 12560 echo "configure:12561: checking for $ac_hdr" >&5
12543 12561
12544 cat > conftest.$ac_ext <<EOF 12562 cat > conftest.$ac_ext <<EOF
12545 #line 12546 "configure" 12563 #line 12564 "configure"
12546 #include "confdefs.h" 12564 #include "confdefs.h"
12547 #include <$ac_hdr> 12565 #include <$ac_hdr>
12548 EOF 12566 EOF
12549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12550 { (eval echo configure:12551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12568 { (eval echo configure:12569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12552 if test -z "$ac_err"; then 12570 if test -z "$ac_err"; then
12553 rm -rf conftest* 12571 rm -rf conftest*
12554 eval "ac_cv_header_$ac_safe=yes" 12572 eval "ac_cv_header_$ac_safe=yes"
12555 else 12573 else
12578 12596
12579 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 12597 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
12580 do 12598 do
12581 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12582 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12583 echo "configure:12584: checking for $ac_hdr" >&5 12601 echo "configure:12602: checking for $ac_hdr" >&5
12584 12602
12585 cat > conftest.$ac_ext <<EOF 12603 cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure" 12604 #line 12605 "configure"
12587 #include "confdefs.h" 12605 #include "confdefs.h"
12588 #include <$ac_hdr> 12606 #include <$ac_hdr>
12589 EOF 12607 EOF
12590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12591 { (eval echo configure:12592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12609 { (eval echo configure:12610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12593 if test -z "$ac_err"; then 12611 if test -z "$ac_err"; then
12594 rm -rf conftest* 12612 rm -rf conftest*
12595 eval "ac_cv_header_$ac_safe=yes" 12613 eval "ac_cv_header_$ac_safe=yes"
12596 else 12614 else
12622 12640
12623 for ac_hdr in stropts.h 12641 for ac_hdr in stropts.h
12624 do 12642 do
12625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12626 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12627 echo "configure:12628: checking for $ac_hdr" >&5 12645 echo "configure:12646: checking for $ac_hdr" >&5
12628 12646
12629 cat > conftest.$ac_ext <<EOF 12647 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure" 12648 #line 12649 "configure"
12631 #include "confdefs.h" 12649 #include "confdefs.h"
12632 #include <$ac_hdr> 12650 #include <$ac_hdr>
12633 EOF 12651 EOF
12634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12635 { (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12653 { (eval echo configure:12654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12637 if test -z "$ac_err"; then 12655 if test -z "$ac_err"; then
12638 rm -rf conftest* 12656 rm -rf conftest*
12639 eval "ac_cv_header_$ac_safe=yes" 12657 eval "ac_cv_header_$ac_safe=yes"
12640 else 12658 else
12663 12681
12664 if test "$ac_cv_header_stropts_h" = "yes"; then 12682 if test "$ac_cv_header_stropts_h" = "yes"; then
12665 for ac_func in isastream 12683 for ac_func in isastream
12666 do 12684 do
12667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12668 echo "configure:12669: checking for $ac_func" >&5 12686 echo "configure:12687: checking for $ac_func" >&5
12669 12687
12670 cat > conftest.$ac_ext <<EOF 12688 cat > conftest.$ac_ext <<EOF
12671 #line 12672 "configure" 12689 #line 12690 "configure"
12672 #include "confdefs.h" 12690 #include "confdefs.h"
12673 /* System header to define __stub macros and hopefully few prototypes, 12691 /* System header to define __stub macros and hopefully few prototypes,
12674 which can conflict with char $ac_func(); below. */ 12692 which can conflict with char $ac_func(); below. */
12675 #include <assert.h> 12693 #include <assert.h>
12676 /* Override any gcc2 internal prototype to avoid an error. */ 12694 /* Override any gcc2 internal prototype to avoid an error. */
12689 $ac_func(); 12707 $ac_func();
12690 #endif 12708 #endif
12691 12709
12692 ; return 0; } 12710 ; return 0; }
12693 EOF 12711 EOF
12694 if { (eval echo configure:12695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12712 if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12695 rm -rf conftest* 12713 rm -rf conftest*
12696 eval "ac_cv_func_$ac_func=yes" 12714 eval "ac_cv_func_$ac_func=yes"
12697 else 12715 else
12698 echo "configure: failed program was:" >&5 12716 echo "configure: failed program was:" >&5
12699 cat conftest.$ac_ext >&5 12717 cat conftest.$ac_ext >&5
12720 12738
12721 for ac_hdr in strtio.h 12739 for ac_hdr in strtio.h
12722 do 12740 do
12723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12725 echo "configure:12726: checking for $ac_hdr" >&5 12743 echo "configure:12744: checking for $ac_hdr" >&5
12726 12744
12727 cat > conftest.$ac_ext <<EOF 12745 cat > conftest.$ac_ext <<EOF
12728 #line 12729 "configure" 12746 #line 12747 "configure"
12729 #include "confdefs.h" 12747 #include "confdefs.h"
12730 #include <$ac_hdr> 12748 #include <$ac_hdr>
12731 EOF 12749 EOF
12732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12733 { (eval echo configure:12734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12751 { (eval echo configure:12752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12752 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12735 if test -z "$ac_err"; then 12753 if test -z "$ac_err"; then
12736 rm -rf conftest* 12754 rm -rf conftest*
12737 eval "ac_cv_header_$ac_safe=yes" 12755 eval "ac_cv_header_$ac_safe=yes"
12738 else 12756 else
12761 fi 12779 fi
12762 12780
12763 for ac_func in getloadavg 12781 for ac_func in getloadavg
12764 do 12782 do
12765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12783 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12766 echo "configure:12767: checking for $ac_func" >&5 12784 echo "configure:12785: checking for $ac_func" >&5
12767 12785
12768 cat > conftest.$ac_ext <<EOF 12786 cat > conftest.$ac_ext <<EOF
12769 #line 12770 "configure" 12787 #line 12788 "configure"
12770 #include "confdefs.h" 12788 #include "confdefs.h"
12771 /* System header to define __stub macros and hopefully few prototypes, 12789 /* System header to define __stub macros and hopefully few prototypes,
12772 which can conflict with char $ac_func(); below. */ 12790 which can conflict with char $ac_func(); below. */
12773 #include <assert.h> 12791 #include <assert.h>
12774 /* Override any gcc2 internal prototype to avoid an error. */ 12792 /* Override any gcc2 internal prototype to avoid an error. */
12787 $ac_func(); 12805 $ac_func();
12788 #endif 12806 #endif
12789 12807
12790 ; return 0; } 12808 ; return 0; }
12791 EOF 12809 EOF
12792 if { (eval echo configure:12793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12810 if { (eval echo configure:12811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12793 rm -rf conftest* 12811 rm -rf conftest*
12794 eval "ac_cv_func_$ac_func=yes" 12812 eval "ac_cv_func_$ac_func=yes"
12795 else 12813 else
12796 echo "configure: failed program was:" >&5 12814 echo "configure: failed program was:" >&5
12797 cat conftest.$ac_ext >&5 12815 cat conftest.$ac_ext >&5
12820 if test "$ac_cv_func_getloadavg" = "yes"; then 12838 if test "$ac_cv_func_getloadavg" = "yes"; then
12821 for ac_hdr in sys/loadavg.h 12839 for ac_hdr in sys/loadavg.h
12822 do 12840 do
12823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12825 echo "configure:12826: checking for $ac_hdr" >&5 12843 echo "configure:12844: checking for $ac_hdr" >&5
12826 12844
12827 cat > conftest.$ac_ext <<EOF 12845 cat > conftest.$ac_ext <<EOF
12828 #line 12829 "configure" 12846 #line 12847 "configure"
12829 #include "confdefs.h" 12847 #include "confdefs.h"
12830 #include <$ac_hdr> 12848 #include <$ac_hdr>
12831 EOF 12849 EOF
12832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12833 { (eval echo configure:12834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12851 { (eval echo configure:12852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12835 if test -z "$ac_err"; then 12853 if test -z "$ac_err"; then
12836 rm -rf conftest* 12854 rm -rf conftest*
12837 eval "ac_cv_header_$ac_safe=yes" 12855 eval "ac_cv_header_$ac_safe=yes"
12838 else 12856 else
12864 echo " xemacs will be linked with \"getloadavg.o\"" 12882 echo " xemacs will be linked with \"getloadavg.o\""
12865 fi 12883 fi
12866 12884
12867 12885
12868 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 12886 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
12869 echo "configure:12870: checking for kstat_open in -lkstat" >&5 12887 echo "configure:12888: checking for kstat_open in -lkstat" >&5
12870 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 12888 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
12871 12889
12872 xe_check_libs=" -lkstat " 12890 xe_check_libs=" -lkstat "
12873 cat > conftest.$ac_ext <<EOF 12891 cat > conftest.$ac_ext <<EOF
12874 #line 12875 "configure" 12892 #line 12893 "configure"
12875 #include "confdefs.h" 12893 #include "confdefs.h"
12876 /* Override any gcc2 internal prototype to avoid an error. */ 12894 /* Override any gcc2 internal prototype to avoid an error. */
12877 /* We use char because int might match the return type of a gcc2 12895 /* We use char because int might match the return type of a gcc2
12878 builtin and then its argument prototype would still apply. */ 12896 builtin and then its argument prototype would still apply. */
12879 char kstat_open(); 12897 char kstat_open();
12880 12898
12881 int main() { 12899 int main() {
12882 kstat_open() 12900 kstat_open()
12883 ; return 0; } 12901 ; return 0; }
12884 EOF 12902 EOF
12885 if { (eval echo configure:12886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12903 if { (eval echo configure:12904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12886 rm -rf conftest* 12904 rm -rf conftest*
12887 eval "ac_cv_lib_$ac_lib_var=yes" 12905 eval "ac_cv_lib_$ac_lib_var=yes"
12888 else 12906 else
12889 echo "configure: failed program was:" >&5 12907 echo "configure: failed program was:" >&5
12890 cat conftest.$ac_ext >&5 12908 cat conftest.$ac_ext >&5
12915 12933
12916 for ac_hdr in kstat.h 12934 for ac_hdr in kstat.h
12917 do 12935 do
12918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12920 echo "configure:12921: checking for $ac_hdr" >&5 12938 echo "configure:12939: checking for $ac_hdr" >&5
12921 12939
12922 cat > conftest.$ac_ext <<EOF 12940 cat > conftest.$ac_ext <<EOF
12923 #line 12924 "configure" 12941 #line 12942 "configure"
12924 #include "confdefs.h" 12942 #include "confdefs.h"
12925 #include <$ac_hdr> 12943 #include <$ac_hdr>
12926 EOF 12944 EOF
12927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12928 { (eval echo configure:12929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12946 { (eval echo configure:12947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12930 if test -z "$ac_err"; then 12948 if test -z "$ac_err"; then
12931 rm -rf conftest* 12949 rm -rf conftest*
12932 eval "ac_cv_header_$ac_safe=yes" 12950 eval "ac_cv_header_$ac_safe=yes"
12933 else 12951 else
12955 done 12973 done
12956 12974
12957 12975
12958 12976
12959 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 12977 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
12960 echo "configure:12961: checking for kvm_read in -lkvm" >&5 12978 echo "configure:12979: checking for kvm_read in -lkvm" >&5
12961 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 12979 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
12962 12980
12963 xe_check_libs=" -lkvm " 12981 xe_check_libs=" -lkvm "
12964 cat > conftest.$ac_ext <<EOF 12982 cat > conftest.$ac_ext <<EOF
12965 #line 12966 "configure" 12983 #line 12984 "configure"
12966 #include "confdefs.h" 12984 #include "confdefs.h"
12967 /* Override any gcc2 internal prototype to avoid an error. */ 12985 /* Override any gcc2 internal prototype to avoid an error. */
12968 /* We use char because int might match the return type of a gcc2 12986 /* We use char because int might match the return type of a gcc2
12969 builtin and then its argument prototype would still apply. */ 12987 builtin and then its argument prototype would still apply. */
12970 char kvm_read(); 12988 char kvm_read();
12971 12989
12972 int main() { 12990 int main() {
12973 kvm_read() 12991 kvm_read()
12974 ; return 0; } 12992 ; return 0; }
12975 EOF 12993 EOF
12976 if { (eval echo configure:12977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12994 if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12977 rm -rf conftest* 12995 rm -rf conftest*
12978 eval "ac_cv_lib_$ac_lib_var=yes" 12996 eval "ac_cv_lib_$ac_lib_var=yes"
12979 else 12997 else
12980 echo "configure: failed program was:" >&5 12998 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5 12999 cat conftest.$ac_ext >&5
13005 13023
13006 13024
13007 fi 13025 fi
13008 13026
13009 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 13027 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
13010 echo "configure:13011: checking whether netdb declares h_errno" >&5 13028 echo "configure:13029: checking whether netdb declares h_errno" >&5
13011 cat > conftest.$ac_ext <<EOF 13029 cat > conftest.$ac_ext <<EOF
13012 #line 13013 "configure" 13030 #line 13031 "configure"
13013 #include "confdefs.h" 13031 #include "confdefs.h"
13014 #include <netdb.h> 13032 #include <netdb.h>
13015 int main() { 13033 int main() {
13016 return h_errno; 13034 return h_errno;
13017 ; return 0; } 13035 ; return 0; }
13018 EOF 13036 EOF
13019 if { (eval echo configure:13020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13037 if { (eval echo configure:13038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13020 rm -rf conftest* 13038 rm -rf conftest*
13021 echo "$ac_t""yes" 1>&6 13039 echo "$ac_t""yes" 1>&6
13022 { test "$extra_verbose" = "yes" && cat << \EOF 13040 { test "$extra_verbose" = "yes" && cat << \EOF
13023 Defining HAVE_H_ERRNO 13041 Defining HAVE_H_ERRNO
13024 EOF 13042 EOF
13034 echo "$ac_t""no" 1>&6 13052 echo "$ac_t""no" 1>&6
13035 fi 13053 fi
13036 rm -f conftest* 13054 rm -f conftest*
13037 13055
13038 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 13056 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
13039 echo "configure:13040: checking for sigsetjmp" >&5 13057 echo "configure:13058: checking for sigsetjmp" >&5
13040 cat > conftest.$ac_ext <<EOF 13058 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure" 13059 #line 13060 "configure"
13042 #include "confdefs.h" 13060 #include "confdefs.h"
13043 #include <setjmp.h> 13061 #include <setjmp.h>
13044 int main() { 13062 int main() {
13045 sigjmp_buf bar; sigsetjmp (bar, 0); 13063 sigjmp_buf bar; sigsetjmp (bar, 0);
13046 ; return 0; } 13064 ; return 0; }
13047 EOF 13065 EOF
13048 if { (eval echo configure:13049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13066 if { (eval echo configure:13067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13049 rm -rf conftest* 13067 rm -rf conftest*
13050 echo "$ac_t""yes" 1>&6 13068 echo "$ac_t""yes" 1>&6
13051 { test "$extra_verbose" = "yes" && cat << \EOF 13069 { test "$extra_verbose" = "yes" && cat << \EOF
13052 Defining HAVE_SIGSETJMP 13070 Defining HAVE_SIGSETJMP
13053 EOF 13071 EOF
13063 echo "$ac_t""no" 1>&6 13081 echo "$ac_t""no" 1>&6
13064 fi 13082 fi
13065 rm -f conftest* 13083 rm -f conftest*
13066 13084
13067 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 13085 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
13068 echo "configure:13069: checking whether localtime caches TZ" >&5 13086 echo "configure:13087: checking whether localtime caches TZ" >&5
13069 13087
13070 if test "$ac_cv_func_tzset" = "yes"; then 13088 if test "$ac_cv_func_tzset" = "yes"; then
13071 cat > conftest.$ac_ext <<EOF 13089 cat > conftest.$ac_ext <<EOF
13072 #line 13073 "configure" 13090 #line 13091 "configure"
13073 #include "confdefs.h" 13091 #include "confdefs.h"
13074 #include <time.h> 13092 #include <time.h>
13075 #if STDC_HEADERS 13093 #if STDC_HEADERS
13076 # include <stdlib.h> 13094 # include <stdlib.h>
13077 #endif 13095 #endif
13102 if (localtime (&now)->tm_hour != hour_unset) 13120 if (localtime (&now)->tm_hour != hour_unset)
13103 exit (1); 13121 exit (1);
13104 exit (0); 13122 exit (0);
13105 } 13123 }
13106 EOF 13124 EOF
13107 if { (eval echo configure:13108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13125 if { (eval echo configure:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13108 then 13126 then
13109 emacs_cv_localtime_cache=no 13127 emacs_cv_localtime_cache=no
13110 else 13128 else
13111 conftest_rc="$?" 13129 conftest_rc="$?"
13112 echo "configure: failed program was:" >&5 13130 echo "configure: failed program was:" >&5
13132 13150
13133 fi 13151 fi
13134 13152
13135 if test "$HAVE_TIMEVAL" = "yes"; then 13153 if test "$HAVE_TIMEVAL" = "yes"; then
13136 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 13154 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
13137 echo "configure:13138: checking whether gettimeofday accepts one or two arguments" >&5 13155 echo "configure:13156: checking whether gettimeofday accepts one or two arguments" >&5
13138 cat > conftest.$ac_ext <<EOF 13156 cat > conftest.$ac_ext <<EOF
13139 #line 13140 "configure" 13157 #line 13158 "configure"
13140 #include "confdefs.h" 13158 #include "confdefs.h"
13141 13159
13142 #ifdef TIME_WITH_SYS_TIME 13160 #ifdef TIME_WITH_SYS_TIME
13143 #include <sys/time.h> 13161 #include <sys/time.h>
13144 #include <time.h> 13162 #include <time.h>
13155 struct timeval time; 13173 struct timeval time;
13156 gettimeofday (&time, 0); 13174 gettimeofday (&time, 0);
13157 13175
13158 ; return 0; } 13176 ; return 0; }
13159 EOF 13177 EOF
13160 if { (eval echo configure:13161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13178 if { (eval echo configure:13179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13161 rm -rf conftest* 13179 rm -rf conftest*
13162 echo "$ac_t""two" 1>&6 13180 echo "$ac_t""two" 1>&6
13163 else 13181 else
13164 echo "configure: failed program was:" >&5 13182 echo "configure: failed program was:" >&5
13165 cat conftest.$ac_ext >&5 13183 cat conftest.$ac_ext >&5
13177 rm -f conftest* 13195 rm -f conftest*
13178 fi 13196 fi
13179 13197
13180 13198
13181 echo $ac_n "checking for inline""... $ac_c" 1>&6 13199 echo $ac_n "checking for inline""... $ac_c" 1>&6
13182 echo "configure:13183: checking for inline" >&5 13200 echo "configure:13201: checking for inline" >&5
13183 13201
13184 ac_cv_c_inline=no 13202 ac_cv_c_inline=no
13185 for ac_kw in inline __inline__ __inline; do 13203 for ac_kw in inline __inline__ __inline; do
13186 cat > conftest.$ac_ext <<EOF 13204 cat > conftest.$ac_ext <<EOF
13187 #line 13188 "configure" 13205 #line 13206 "configure"
13188 #include "confdefs.h" 13206 #include "confdefs.h"
13189 13207
13190 int main() { 13208 int main() {
13191 } $ac_kw foo() { 13209 } $ac_kw foo() {
13192 ; return 0; } 13210 ; return 0; }
13193 EOF 13211 EOF
13194 if { (eval echo configure:13195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13212 if { (eval echo configure:13213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13195 rm -rf conftest* 13213 rm -rf conftest*
13196 ac_cv_c_inline=$ac_kw; break 13214 ac_cv_c_inline=$ac_kw; break
13197 else 13215 else
13198 echo "configure: failed program was:" >&5 13216 echo "configure: failed program was:" >&5
13199 cat conftest.$ac_ext >&5 13217 cat conftest.$ac_ext >&5
13226 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then 13244 test "$ac_cv_c_inline" != "no" -a "$GCC" = "yes" && extra_objs="$extra_objs inline.o" && if test "$extra_verbose" = "yes"; then
13227 echo " xemacs will be linked with \"inline.o\"" 13245 echo " xemacs will be linked with \"inline.o\""
13228 fi 13246 fi
13229 13247
13230 echo $ac_n "checking for typeof""... $ac_c" 1>&6 13248 echo $ac_n "checking for typeof""... $ac_c" 1>&6
13231 echo "configure:13232: checking for typeof" >&5 13249 echo "configure:13250: checking for typeof" >&5
13232 cat > conftest.$ac_ext <<EOF 13250 cat > conftest.$ac_ext <<EOF
13233 #line 13234 "configure" 13251 #line 13252 "configure"
13234 #include "confdefs.h" 13252 #include "confdefs.h"
13235 13253
13236 int main() { 13254 int main() {
13237 int i; __typeof__(i) j; 13255 int i; __typeof__(i) j;
13238 ; return 0; } 13256 ; return 0; }
13239 EOF 13257 EOF
13240 if { (eval echo configure:13241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13258 if { (eval echo configure:13259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13241 rm -rf conftest* 13259 rm -rf conftest*
13242 typeofname="__typeof__" 13260 typeofname="__typeof__"
13243 else 13261 else
13244 echo "configure: failed program was:" >&5 13262 echo "configure: failed program was:" >&5
13245 cat conftest.$ac_ext >&5 13263 cat conftest.$ac_ext >&5
13246 rm -rf conftest* 13264 rm -rf conftest*
13247 cat > conftest.$ac_ext <<EOF 13265 cat > conftest.$ac_ext <<EOF
13248 #line 13249 "configure" 13266 #line 13267 "configure"
13249 #include "confdefs.h" 13267 #include "confdefs.h"
13250 13268
13251 int main() { 13269 int main() {
13252 int i; typeof(i) j; 13270 int i; typeof(i) j;
13253 ; return 0; } 13271 ; return 0; }
13254 EOF 13272 EOF
13255 if { (eval echo configure:13256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13273 if { (eval echo configure:13274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13256 rm -rf conftest* 13274 rm -rf conftest*
13257 typeofname="typeof" 13275 typeofname="typeof"
13258 else 13276 else
13259 echo "configure: failed program was:" >&5 13277 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5 13278 cat conftest.$ac_ext >&5
13279 13297
13280 if test "$__DECC" != "yes"; then 13298 if test "$__DECC" != "yes"; then
13281 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 13299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13282 # for constant arguments. Useless! 13300 # for constant arguments. Useless!
13283 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 13301 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
13284 echo "configure:13285: checking for working alloca.h" >&5 13302 echo "configure:13303: checking for working alloca.h" >&5
13285 13303
13286 cat > conftest.$ac_ext <<EOF 13304 cat > conftest.$ac_ext <<EOF
13287 #line 13288 "configure" 13305 #line 13306 "configure"
13288 #include "confdefs.h" 13306 #include "confdefs.h"
13289 #include <alloca.h> 13307 #include <alloca.h>
13290 int main() { 13308 int main() {
13291 char *p = alloca(2 * sizeof(int)); 13309 char *p = alloca(2 * sizeof(int));
13292 ; return 0; } 13310 ; return 0; }
13293 EOF 13311 EOF
13294 if { (eval echo configure:13295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13312 if { (eval echo configure:13313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13295 rm -rf conftest* 13313 rm -rf conftest*
13296 ac_cv_header_alloca_h=yes 13314 ac_cv_header_alloca_h=yes
13297 else 13315 else
13298 echo "configure: failed program was:" >&5 13316 echo "configure: failed program was:" >&5
13299 cat conftest.$ac_ext >&5 13317 cat conftest.$ac_ext >&5
13313 } 13331 }
13314 13332
13315 fi 13333 fi
13316 13334
13317 echo $ac_n "checking for alloca""... $ac_c" 1>&6 13335 echo $ac_n "checking for alloca""... $ac_c" 1>&6
13318 echo "configure:13319: checking for alloca" >&5 13336 echo "configure:13337: checking for alloca" >&5
13319 13337
13320 cat > conftest.$ac_ext <<EOF 13338 cat > conftest.$ac_ext <<EOF
13321 #line 13322 "configure" 13339 #line 13340 "configure"
13322 #include "confdefs.h" 13340 #include "confdefs.h"
13323 13341
13324 #ifdef __GNUC__ 13342 #ifdef __GNUC__
13325 # define alloca __builtin_alloca 13343 # define alloca __builtin_alloca
13326 #else 13344 #else
13344 13362
13345 int main() { 13363 int main() {
13346 char *p = (char *) alloca(1); 13364 char *p = (char *) alloca(1);
13347 ; return 0; } 13365 ; return 0; }
13348 EOF 13366 EOF
13349 if { (eval echo configure:13350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13367 if { (eval echo configure:13368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13350 rm -rf conftest* 13368 rm -rf conftest*
13351 ac_cv_func_alloca_works=yes 13369 ac_cv_func_alloca_works=yes
13352 else 13370 else
13353 echo "configure: failed program was:" >&5 13371 echo "configure: failed program was:" >&5
13354 cat conftest.$ac_ext >&5 13372 cat conftest.$ac_ext >&5
13383 EOF 13401 EOF
13384 } 13402 }
13385 13403
13386 13404
13387 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 13405 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
13388 echo "configure:13389: checking whether alloca needs Cray hooks" >&5 13406 echo "configure:13407: checking whether alloca needs Cray hooks" >&5
13389 13407
13390 cat > conftest.$ac_ext <<EOF 13408 cat > conftest.$ac_ext <<EOF
13391 #line 13392 "configure" 13409 #line 13410 "configure"
13392 #include "confdefs.h" 13410 #include "confdefs.h"
13393 #if defined(CRAY) && ! defined(CRAY2) 13411 #if defined(CRAY) && ! defined(CRAY2)
13394 webecray 13412 webecray
13395 #else 13413 #else
13396 wenotbecray 13414 wenotbecray
13410 13428
13411 echo "$ac_t""$ac_cv_os_cray" 1>&6 13429 echo "$ac_t""$ac_cv_os_cray" 1>&6
13412 if test $ac_cv_os_cray = yes; then 13430 if test $ac_cv_os_cray = yes; then
13413 for ac_func in _getb67 GETB67 getb67; do 13431 for ac_func in _getb67 GETB67 getb67; do
13414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13415 echo "configure:13416: checking for $ac_func" >&5 13433 echo "configure:13434: checking for $ac_func" >&5
13416 13434
13417 cat > conftest.$ac_ext <<EOF 13435 cat > conftest.$ac_ext <<EOF
13418 #line 13419 "configure" 13436 #line 13437 "configure"
13419 #include "confdefs.h" 13437 #include "confdefs.h"
13420 /* System header to define __stub macros and hopefully few prototypes, 13438 /* System header to define __stub macros and hopefully few prototypes,
13421 which can conflict with char $ac_func(); below. */ 13439 which can conflict with char $ac_func(); below. */
13422 #include <assert.h> 13440 #include <assert.h>
13423 /* Override any gcc2 internal prototype to avoid an error. */ 13441 /* Override any gcc2 internal prototype to avoid an error. */
13436 $ac_func(); 13454 $ac_func();
13437 #endif 13455 #endif
13438 13456
13439 ; return 0; } 13457 ; return 0; }
13440 EOF 13458 EOF
13441 if { (eval echo configure:13442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13459 if { (eval echo configure:13460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13442 rm -rf conftest* 13460 rm -rf conftest*
13443 eval "ac_cv_func_$ac_func=yes" 13461 eval "ac_cv_func_$ac_func=yes"
13444 else 13462 else
13445 echo "configure: failed program was:" >&5 13463 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5 13464 cat conftest.$ac_ext >&5
13466 13484
13467 done 13485 done
13468 fi 13486 fi
13469 13487
13470 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 13488 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
13471 echo "configure:13472: checking stack direction for C alloca" >&5 13489 echo "configure:13490: checking stack direction for C alloca" >&5
13472 13490
13473 cat > conftest.$ac_ext <<EOF 13491 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure" 13492 #line 13493 "configure"
13475 #include "confdefs.h" 13493 #include "confdefs.h"
13476 find_stack_direction () 13494 find_stack_direction ()
13477 { 13495 {
13478 static char *addr = 0; 13496 static char *addr = 0;
13479 auto char dummy; 13497 auto char dummy;
13488 main () 13506 main ()
13489 { 13507 {
13490 exit (find_stack_direction() < 0); 13508 exit (find_stack_direction() < 0);
13491 } 13509 }
13492 EOF 13510 EOF
13493 if { (eval echo configure:13494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13511 if { (eval echo configure:13512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13494 then 13512 then
13495 ac_cv_c_stack_direction=1 13513 ac_cv_c_stack_direction=1
13496 else 13514 else
13497 conftest_rc="$?" 13515 conftest_rc="$?"
13498 echo "configure: failed program was:" >&5 13516 echo "configure: failed program was:" >&5
13517 echo " xemacs will be linked with \"$ALLOCA\"" 13535 echo " xemacs will be linked with \"$ALLOCA\""
13518 fi 13536 fi
13519 fi 13537 fi
13520 13538
13521 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6 13539 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
13522 echo "configure:13523: checking for working alloca in function calls" >&5 13540 echo "configure:13541: checking for working alloca in function calls" >&5
13523 cat > conftest.$ac_ext <<EOF 13541 cat > conftest.$ac_ext <<EOF
13524 #line 13525 "configure" 13542 #line 13543 "configure"
13525 #include "confdefs.h" 13543 #include "confdefs.h"
13526 13544
13527 #if defined (__CYGWIN__) 13545 #if defined (__CYGWIN__)
13528 #include <alloca.h> 13546 #include <alloca.h>
13529 #elif defined (__GNUC__) 13547 #elif defined (__GNUC__)
13572 return 1; 13590 return 1;
13573 return 0; 13591 return 0;
13574 } 13592 }
13575 13593
13576 EOF 13594 EOF
13577 if { (eval echo configure:13578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13595 if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13578 then 13596 then
13579 working_alloca_in_function_calls=yes 13597 working_alloca_in_function_calls=yes
13580 else 13598 else
13581 conftest_rc="$?" 13599 conftest_rc="$?"
13582 echo "configure: failed program was:" >&5 13600 echo "configure: failed program was:" >&5
13595 EOF 13613 EOF
13596 } 13614 }
13597 13615
13598 13616
13599 echo $ac_n "checking for working scanf""... $ac_c" 1>&6 13617 echo $ac_n "checking for working scanf""... $ac_c" 1>&6
13600 echo "configure:13601: checking for working scanf" >&5 13618 echo "configure:13619: checking for working scanf" >&5
13601 cat > conftest.$ac_ext <<EOF 13619 cat > conftest.$ac_ext <<EOF
13602 #line 13603 "configure" 13620 #line 13621 "configure"
13603 #include "confdefs.h" 13621 #include "confdefs.h"
13604 13622
13605 int 13623 int
13606 main (int argc, char **argv) 13624 main (int argc, char **argv)
13607 { 13625 {
13612 this breaks unicode.c */ 13630 this breaks unicode.c */
13613 return endcount != 13; 13631 return endcount != 13;
13614 } 13632 }
13615 13633
13616 EOF 13634 EOF
13617 if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13635 if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13618 then 13636 then
13619 working_scanf=yes 13637 working_scanf=yes
13620 else 13638 else
13621 conftest_rc="$?" 13639 conftest_rc="$?"
13622 echo "configure: failed program was:" >&5 13640 echo "configure: failed program was:" >&5
13635 EOF 13653 EOF
13636 } 13654 }
13637 13655
13638 13656
13639 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 13657 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
13640 echo "configure:13641: checking for working strcoll" >&5 13658 echo "configure:13659: checking for working strcoll" >&5
13641 13659
13642 cat > conftest.$ac_ext <<EOF 13660 cat > conftest.$ac_ext <<EOF
13643 #line 13644 "configure" 13661 #line 13662 "configure"
13644 #include "confdefs.h" 13662 #include "confdefs.h"
13645 #include <string.h> 13663 #include <string.h>
13646 main () 13664 main ()
13647 { 13665 {
13648 exit (strcoll ("abc", "def") >= 0 || 13666 exit (strcoll ("abc", "def") >= 0 ||
13649 strcoll ("ABC", "DEF") >= 0 || 13667 strcoll ("ABC", "DEF") >= 0 ||
13650 strcoll ("123", "456") >= 0); 13668 strcoll ("123", "456") >= 0);
13651 } 13669 }
13652 EOF 13670 EOF
13653 if { (eval echo configure:13654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13671 if { (eval echo configure:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13654 then 13672 then
13655 ac_cv_func_strcoll_works=yes 13673 ac_cv_func_strcoll_works=yes
13656 else 13674 else
13657 conftest_rc="$?" 13675 conftest_rc="$?"
13658 echo "configure: failed program was:" >&5 13676 echo "configure: failed program was:" >&5
13676 13694
13677 13695
13678 for ac_func in getpgrp 13696 for ac_func in getpgrp
13679 do 13697 do
13680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13681 echo "configure:13682: checking for $ac_func" >&5 13699 echo "configure:13700: checking for $ac_func" >&5
13682 13700
13683 cat > conftest.$ac_ext <<EOF 13701 cat > conftest.$ac_ext <<EOF
13684 #line 13685 "configure" 13702 #line 13703 "configure"
13685 #include "confdefs.h" 13703 #include "confdefs.h"
13686 /* System header to define __stub macros and hopefully few prototypes, 13704 /* System header to define __stub macros and hopefully few prototypes,
13687 which can conflict with char $ac_func(); below. */ 13705 which can conflict with char $ac_func(); below. */
13688 #include <assert.h> 13706 #include <assert.h>
13689 /* Override any gcc2 internal prototype to avoid an error. */ 13707 /* Override any gcc2 internal prototype to avoid an error. */
13702 $ac_func(); 13720 $ac_func();
13703 #endif 13721 #endif
13704 13722
13705 ; return 0; } 13723 ; return 0; }
13706 EOF 13724 EOF
13707 if { (eval echo configure:13708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13708 rm -rf conftest* 13726 rm -rf conftest*
13709 eval "ac_cv_func_$ac_func=yes" 13727 eval "ac_cv_func_$ac_func=yes"
13710 else 13728 else
13711 echo "configure: failed program was:" >&5 13729 echo "configure: failed program was:" >&5
13712 cat conftest.$ac_ext >&5 13730 cat conftest.$ac_ext >&5
13730 echo "$ac_t""no" 1>&6 13748 echo "$ac_t""no" 1>&6
13731 fi 13749 fi
13732 done 13750 done
13733 13751
13734 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 13752 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
13735 echo "configure:13736: checking whether getpgrp takes no argument" >&5 13753 echo "configure:13754: checking whether getpgrp takes no argument" >&5
13736 13754
13737 cat > conftest.$ac_ext <<EOF 13755 cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure" 13756 #line 13757 "configure"
13739 #include "confdefs.h" 13757 #include "confdefs.h"
13740 13758
13741 /* 13759 /*
13742 * If this system has a BSD-style getpgrp(), 13760 * If this system has a BSD-style getpgrp(),
13743 * which takes a pid argument, exit unsuccessfully. 13761 * which takes a pid argument, exit unsuccessfully.
13788 exit(s>>8); 13806 exit(s>>8);
13789 } 13807 }
13790 } 13808 }
13791 13809
13792 EOF 13810 EOF
13793 if { (eval echo configure:13794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13794 then 13812 then
13795 ac_cv_func_getpgrp_void=yes 13813 ac_cv_func_getpgrp_void=yes
13796 else 13814 else
13797 conftest_rc="$?" 13815 conftest_rc="$?"
13798 echo "configure: failed program was:" >&5 13816 echo "configure: failed program was:" >&5
13815 13833
13816 fi 13834 fi
13817 13835
13818 13836
13819 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 13837 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
13820 echo "configure:13821: checking for working mmap" >&5 13838 echo "configure:13839: checking for working mmap" >&5
13821 case "$opsys" in ultrix* ) have_mmap=no ;; *) 13839 case "$opsys" in ultrix* ) have_mmap=no ;; *)
13822 cat > conftest.$ac_ext <<EOF 13840 cat > conftest.$ac_ext <<EOF
13823 #line 13824 "configure" 13841 #line 13842 "configure"
13824 #include "confdefs.h" 13842 #include "confdefs.h"
13825 #include <stdio.h> 13843 #include <stdio.h>
13826 #include <unistd.h> 13844 #include <unistd.h>
13827 #include <fcntl.h> 13845 #include <fcntl.h>
13828 #include <sys/mman.h> 13846 #include <sys/mman.h>
13851 return 0; 13869 return 0;
13852 perror ("conftest: mmap failed"); 13870 perror ("conftest: mmap failed");
13853 return 1; 13871 return 1;
13854 } 13872 }
13855 EOF 13873 EOF
13856 if { (eval echo configure:13857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13874 if { (eval echo configure:13875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
13857 then 13875 then
13858 have_mmap=yes 13876 have_mmap=yes
13859 else 13877 else
13860 conftest_rc="$?" 13878 conftest_rc="$?"
13861 echo "configure: failed program was:" >&5 13879 echo "configure: failed program was:" >&5
13880 esac 13898 esac
13881 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 13899 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
13882 if test "$rel_alloc $have_mmap" = "default yes"; then 13900 if test "$rel_alloc $have_mmap" = "default yes"; then
13883 if test "$doug_lea_malloc" = "yes"; then 13901 if test "$doug_lea_malloc" = "yes"; then
13884 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 13902 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
13885 echo "configure:13886: checking for M_MMAP_THRESHOLD" >&5 13903 echo "configure:13904: checking for M_MMAP_THRESHOLD" >&5
13886 cat > conftest.$ac_ext <<EOF 13904 cat > conftest.$ac_ext <<EOF
13887 #line 13888 "configure" 13905 #line 13906 "configure"
13888 #include "confdefs.h" 13906 #include "confdefs.h"
13889 #include <malloc.h> 13907 #include <malloc.h>
13890 int main() { 13908 int main() {
13891 13909
13892 #ifndef M_MMAP_THRESHOLD 13910 #ifndef M_MMAP_THRESHOLD
13894 !@+$%^&*_)(_ - unlikely to compile... 13912 !@+$%^&*_)(_ - unlikely to compile...
13895 #endif 13913 #endif
13896 13914
13897 ; return 0; } 13915 ; return 0; }
13898 EOF 13916 EOF
13899 if { (eval echo configure:13900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13917 if { (eval echo configure:13918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13900 rm -rf conftest* 13918 rm -rf conftest*
13901 rel_alloc=no; echo "$ac_t""yes" 1>&6; 13919 rel_alloc=no; echo "$ac_t""yes" 1>&6;
13902 else 13920 else
13903 echo "configure: failed program was:" >&5 13921 echo "configure: failed program was:" >&5
13904 cat conftest.$ac_ext >&5 13922 cat conftest.$ac_ext >&5
13919 } 13937 }
13920 13938
13921 13939
13922 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 13940 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
13923 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 13941 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
13924 echo "configure:13925: checking for termios.h" >&5 13942 echo "configure:13943: checking for termios.h" >&5
13925 13943
13926 cat > conftest.$ac_ext <<EOF 13944 cat > conftest.$ac_ext <<EOF
13927 #line 13928 "configure" 13945 #line 13946 "configure"
13928 #include "confdefs.h" 13946 #include "confdefs.h"
13929 #include <termios.h> 13947 #include <termios.h>
13930 EOF 13948 EOF
13931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13932 { (eval echo configure:13933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13950 { (eval echo configure:13951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13934 if test -z "$ac_err"; then 13952 if test -z "$ac_err"; then
13935 rm -rf conftest* 13953 rm -rf conftest*
13936 eval "ac_cv_header_$ac_safe=yes" 13954 eval "ac_cv_header_$ac_safe=yes"
13937 else 13955 else
13970 13988
13971 else 13989 else
13972 echo "$ac_t""no" 1>&6 13990 echo "$ac_t""no" 1>&6
13973 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 13991 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
13974 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 13992 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
13975 echo "configure:13976: checking for termio.h" >&5 13993 echo "configure:13994: checking for termio.h" >&5
13976 13994
13977 cat > conftest.$ac_ext <<EOF 13995 cat > conftest.$ac_ext <<EOF
13978 #line 13979 "configure" 13996 #line 13997 "configure"
13979 #include "confdefs.h" 13997 #include "confdefs.h"
13980 #include <termio.h> 13998 #include <termio.h>
13981 EOF 13999 EOF
13982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13983 { (eval echo configure:13984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14001 { (eval echo configure:14002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13985 if test -z "$ac_err"; then 14003 if test -z "$ac_err"; then
13986 rm -rf conftest* 14004 rm -rf conftest*
13987 eval "ac_cv_header_$ac_safe=yes" 14005 eval "ac_cv_header_$ac_safe=yes"
13988 else 14006 else
14010 fi 14028 fi
14011 14029
14012 14030
14013 14031
14014 echo $ac_n "checking for socket""... $ac_c" 1>&6 14032 echo $ac_n "checking for socket""... $ac_c" 1>&6
14015 echo "configure:14016: checking for socket" >&5 14033 echo "configure:14034: checking for socket" >&5
14016 14034
14017 cat > conftest.$ac_ext <<EOF 14035 cat > conftest.$ac_ext <<EOF
14018 #line 14019 "configure" 14036 #line 14037 "configure"
14019 #include "confdefs.h" 14037 #include "confdefs.h"
14020 /* System header to define __stub macros and hopefully few prototypes, 14038 /* System header to define __stub macros and hopefully few prototypes,
14021 which can conflict with char socket(); below. */ 14039 which can conflict with char socket(); below. */
14022 #include <assert.h> 14040 #include <assert.h>
14023 /* Override any gcc2 internal prototype to avoid an error. */ 14041 /* Override any gcc2 internal prototype to avoid an error. */
14036 socket(); 14054 socket();
14037 #endif 14055 #endif
14038 14056
14039 ; return 0; } 14057 ; return 0; }
14040 EOF 14058 EOF
14041 if { (eval echo configure:14042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14042 rm -rf conftest* 14060 rm -rf conftest*
14043 eval "ac_cv_func_socket=yes" 14061 eval "ac_cv_func_socket=yes"
14044 else 14062 else
14045 echo "configure: failed program was:" >&5 14063 echo "configure: failed program was:" >&5
14046 cat conftest.$ac_ext >&5 14064 cat conftest.$ac_ext >&5
14051 14069
14052 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 14070 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
14053 echo "$ac_t""yes" 1>&6 14071 echo "$ac_t""yes" 1>&6
14054 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 14072 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
14055 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 14073 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
14056 echo "configure:14057: checking for netinet/in.h" >&5 14074 echo "configure:14075: checking for netinet/in.h" >&5
14057 14075
14058 cat > conftest.$ac_ext <<EOF 14076 cat > conftest.$ac_ext <<EOF
14059 #line 14060 "configure" 14077 #line 14078 "configure"
14060 #include "confdefs.h" 14078 #include "confdefs.h"
14061 #include <netinet/in.h> 14079 #include <netinet/in.h>
14062 EOF 14080 EOF
14063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14064 { (eval echo configure:14065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14082 { (eval echo configure:14083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14066 if test -z "$ac_err"; then 14084 if test -z "$ac_err"; then
14067 rm -rf conftest* 14085 rm -rf conftest*
14068 eval "ac_cv_header_$ac_safe=yes" 14086 eval "ac_cv_header_$ac_safe=yes"
14069 else 14087 else
14076 rm -f conftest* 14094 rm -f conftest*
14077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14078 echo "$ac_t""yes" 1>&6 14096 echo "$ac_t""yes" 1>&6
14079 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 14097 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
14080 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 14098 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
14081 echo "configure:14082: checking for arpa/inet.h" >&5 14099 echo "configure:14100: checking for arpa/inet.h" >&5
14082 14100
14083 cat > conftest.$ac_ext <<EOF 14101 cat > conftest.$ac_ext <<EOF
14084 #line 14085 "configure" 14102 #line 14103 "configure"
14085 #include "confdefs.h" 14103 #include "confdefs.h"
14086 #include <arpa/inet.h> 14104 #include <arpa/inet.h>
14087 EOF 14105 EOF
14088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14089 { (eval echo configure:14090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14107 { (eval echo configure:14108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14091 if test -z "$ac_err"; then 14109 if test -z "$ac_err"; then
14092 rm -rf conftest* 14110 rm -rf conftest*
14093 eval "ac_cv_header_$ac_safe=yes" 14111 eval "ac_cv_header_$ac_safe=yes"
14094 else 14112 else
14109 #define HAVE_SOCKETS 1 14127 #define HAVE_SOCKETS 1
14110 EOF 14128 EOF
14111 } 14129 }
14112 14130
14113 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 14131 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
14114 echo "configure:14115: checking "for sun_len member in struct sockaddr_un"" >&5 14132 echo "configure:14133: checking "for sun_len member in struct sockaddr_un"" >&5
14115 cat > conftest.$ac_ext <<EOF 14133 cat > conftest.$ac_ext <<EOF
14116 #line 14117 "configure" 14134 #line 14135 "configure"
14117 #include "confdefs.h" 14135 #include "confdefs.h"
14118 14136
14119 #include <sys/types.h> 14137 #include <sys/types.h>
14120 #include <sys/socket.h> 14138 #include <sys/socket.h>
14121 #include <sys/un.h> 14139 #include <sys/un.h>
14122 14140
14123 int main() { 14141 int main() {
14124 static struct sockaddr_un x; x.sun_len = 1; 14142 static struct sockaddr_un x; x.sun_len = 1;
14125 ; return 0; } 14143 ; return 0; }
14126 EOF 14144 EOF
14127 if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14145 if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14128 rm -rf conftest* 14146 rm -rf conftest*
14129 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 14147 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
14130 Defining HAVE_SOCKADDR_SUN_LEN 14148 Defining HAVE_SOCKADDR_SUN_LEN
14131 EOF 14149 EOF
14132 cat >> confdefs.h <<\EOF 14150 cat >> confdefs.h <<\EOF
14140 rm -rf conftest* 14158 rm -rf conftest*
14141 echo "$ac_t""no" 1>&6 14159 echo "$ac_t""no" 1>&6
14142 fi 14160 fi
14143 rm -f conftest* 14161 rm -f conftest*
14144 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 14162 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
14145 echo "configure:14146: checking "for ip_mreq struct in netinet/in.h"" >&5 14163 echo "configure:14164: checking "for ip_mreq struct in netinet/in.h"" >&5
14146 cat > conftest.$ac_ext <<EOF 14164 cat > conftest.$ac_ext <<EOF
14147 #line 14148 "configure" 14165 #line 14166 "configure"
14148 #include "confdefs.h" 14166 #include "confdefs.h"
14149 14167
14150 #include <sys/types.h> 14168 #include <sys/types.h>
14151 #include <netinet/in.h> 14169 #include <netinet/in.h>
14152 14170
14153 int main() { 14171 int main() {
14154 static struct ip_mreq x; 14172 static struct ip_mreq x;
14155 ; return 0; } 14173 ; return 0; }
14156 EOF 14174 EOF
14157 if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14175 if { (eval echo configure:14176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14158 rm -rf conftest* 14176 rm -rf conftest*
14159 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 14177 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
14160 Defining HAVE_MULTICAST 14178 Defining HAVE_MULTICAST
14161 EOF 14179 EOF
14162 cat >> confdefs.h <<\EOF 14180 cat >> confdefs.h <<\EOF
14183 echo "$ac_t""no" 1>&6 14201 echo "$ac_t""no" 1>&6
14184 fi 14202 fi
14185 14203
14186 14204
14187 echo $ac_n "checking for msgget""... $ac_c" 1>&6 14205 echo $ac_n "checking for msgget""... $ac_c" 1>&6
14188 echo "configure:14189: checking for msgget" >&5 14206 echo "configure:14207: checking for msgget" >&5
14189 14207
14190 cat > conftest.$ac_ext <<EOF 14208 cat > conftest.$ac_ext <<EOF
14191 #line 14192 "configure" 14209 #line 14210 "configure"
14192 #include "confdefs.h" 14210 #include "confdefs.h"
14193 /* System header to define __stub macros and hopefully few prototypes, 14211 /* System header to define __stub macros and hopefully few prototypes,
14194 which can conflict with char msgget(); below. */ 14212 which can conflict with char msgget(); below. */
14195 #include <assert.h> 14213 #include <assert.h>
14196 /* Override any gcc2 internal prototype to avoid an error. */ 14214 /* Override any gcc2 internal prototype to avoid an error. */
14209 msgget(); 14227 msgget();
14210 #endif 14228 #endif
14211 14229
14212 ; return 0; } 14230 ; return 0; }
14213 EOF 14231 EOF
14214 if { (eval echo configure:14215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14232 if { (eval echo configure:14233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14215 rm -rf conftest* 14233 rm -rf conftest*
14216 eval "ac_cv_func_msgget=yes" 14234 eval "ac_cv_func_msgget=yes"
14217 else 14235 else
14218 echo "configure: failed program was:" >&5 14236 echo "configure: failed program was:" >&5
14219 cat conftest.$ac_ext >&5 14237 cat conftest.$ac_ext >&5
14224 14242
14225 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 14243 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
14226 echo "$ac_t""yes" 1>&6 14244 echo "$ac_t""yes" 1>&6
14227 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 14245 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
14228 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 14246 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
14229 echo "configure:14230: checking for sys/ipc.h" >&5 14247 echo "configure:14248: checking for sys/ipc.h" >&5
14230 14248
14231 cat > conftest.$ac_ext <<EOF 14249 cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure" 14250 #line 14251 "configure"
14233 #include "confdefs.h" 14251 #include "confdefs.h"
14234 #include <sys/ipc.h> 14252 #include <sys/ipc.h>
14235 EOF 14253 EOF
14236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14237 { (eval echo configure:14238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14255 { (eval echo configure:14256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14239 if test -z "$ac_err"; then 14257 if test -z "$ac_err"; then
14240 rm -rf conftest* 14258 rm -rf conftest*
14241 eval "ac_cv_header_$ac_safe=yes" 14259 eval "ac_cv_header_$ac_safe=yes"
14242 else 14260 else
14249 rm -f conftest* 14267 rm -f conftest*
14250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14251 echo "$ac_t""yes" 1>&6 14269 echo "$ac_t""yes" 1>&6
14252 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 14270 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
14253 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 14271 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
14254 echo "configure:14255: checking for sys/msg.h" >&5 14272 echo "configure:14273: checking for sys/msg.h" >&5
14255 14273
14256 cat > conftest.$ac_ext <<EOF 14274 cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure" 14275 #line 14276 "configure"
14258 #include "confdefs.h" 14276 #include "confdefs.h"
14259 #include <sys/msg.h> 14277 #include <sys/msg.h>
14260 EOF 14278 EOF
14261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14262 { (eval echo configure:14263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14280 { (eval echo configure:14281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14264 if test -z "$ac_err"; then 14282 if test -z "$ac_err"; then
14265 rm -rf conftest* 14283 rm -rf conftest*
14266 eval "ac_cv_header_$ac_safe=yes" 14284 eval "ac_cv_header_$ac_safe=yes"
14267 else 14285 else
14295 fi 14313 fi
14296 14314
14297 14315
14298 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 14316 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
14299 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 14317 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
14300 echo "configure:14301: checking for dirent.h" >&5 14318 echo "configure:14319: checking for dirent.h" >&5
14301 14319
14302 cat > conftest.$ac_ext <<EOF 14320 cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure" 14321 #line 14322 "configure"
14304 #include "confdefs.h" 14322 #include "confdefs.h"
14305 #include <dirent.h> 14323 #include <dirent.h>
14306 EOF 14324 EOF
14307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14308 { (eval echo configure:14309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14326 { (eval echo configure:14327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14310 if test -z "$ac_err"; then 14328 if test -z "$ac_err"; then
14311 rm -rf conftest* 14329 rm -rf conftest*
14312 eval "ac_cv_header_$ac_safe=yes" 14330 eval "ac_cv_header_$ac_safe=yes"
14313 else 14331 else
14330 14348
14331 else 14349 else
14332 echo "$ac_t""no" 1>&6 14350 echo "$ac_t""no" 1>&6
14333 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 14351 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
14334 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 14352 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
14335 echo "configure:14336: checking for sys/dir.h" >&5 14353 echo "configure:14354: checking for sys/dir.h" >&5
14336 14354
14337 cat > conftest.$ac_ext <<EOF 14355 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure" 14356 #line 14357 "configure"
14339 #include "confdefs.h" 14357 #include "confdefs.h"
14340 #include <sys/dir.h> 14358 #include <sys/dir.h>
14341 EOF 14359 EOF
14342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14343 { (eval echo configure:14344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14361 { (eval echo configure:14362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14345 if test -z "$ac_err"; then 14363 if test -z "$ac_err"; then
14346 rm -rf conftest* 14364 rm -rf conftest*
14347 eval "ac_cv_header_$ac_safe=yes" 14365 eval "ac_cv_header_$ac_safe=yes"
14348 else 14366 else
14371 fi 14389 fi
14372 14390
14373 14391
14374 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 14392 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
14375 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 14393 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
14376 echo "configure:14377: checking for nlist.h" >&5 14394 echo "configure:14395: checking for nlist.h" >&5
14377 14395
14378 cat > conftest.$ac_ext <<EOF 14396 cat > conftest.$ac_ext <<EOF
14379 #line 14380 "configure" 14397 #line 14398 "configure"
14380 #include "confdefs.h" 14398 #include "confdefs.h"
14381 #include <nlist.h> 14399 #include <nlist.h>
14382 EOF 14400 EOF
14383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14384 { (eval echo configure:14385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14402 { (eval echo configure:14403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14386 if test -z "$ac_err"; then 14404 if test -z "$ac_err"; then
14387 rm -rf conftest* 14405 rm -rf conftest*
14388 eval "ac_cv_header_$ac_safe=yes" 14406 eval "ac_cv_header_$ac_safe=yes"
14389 else 14407 else
14409 fi 14427 fi
14410 14428
14411 14429
14412 14430
14413 echo "checking "for sound support"" 1>&6 14431 echo "checking "for sound support"" 1>&6
14414 echo "configure:14415: checking "for sound support"" >&5 14432 echo "configure:14433: checking "for sound support"" >&5
14415 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 14433 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
14416 14434
14417 if test "$with_native_sound" != "no"; then 14435 if test "$with_native_sound" != "no"; then
14418 if test -n "$native_sound_lib"; then 14436 if test -n "$native_sound_lib"; then
14419 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 14437 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
14420 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 14438 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
14421 echo "configure:14422: checking for multimedia/audio_device.h" >&5 14439 echo "configure:14440: checking for multimedia/audio_device.h" >&5
14422 14440
14423 cat > conftest.$ac_ext <<EOF 14441 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure" 14442 #line 14443 "configure"
14425 #include "confdefs.h" 14443 #include "confdefs.h"
14426 #include <multimedia/audio_device.h> 14444 #include <multimedia/audio_device.h>
14427 EOF 14445 EOF
14428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14429 { (eval echo configure:14430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14447 { (eval echo configure:14448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14431 if test -z "$ac_err"; then 14449 if test -z "$ac_err"; then
14432 rm -rf conftest* 14450 rm -rf conftest*
14433 eval "ac_cv_header_$ac_safe=yes" 14451 eval "ac_cv_header_$ac_safe=yes"
14434 else 14452 else
14480 case "$canonical" in 14498 case "$canonical" in
14481 *-sgi-* ) 14499 *-sgi-* )
14482 if test -z "$native_sound_lib"; then 14500 if test -z "$native_sound_lib"; then
14483 14501
14484 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 14502 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
14485 echo "configure:14486: checking for ALopenport in -laudio" >&5 14503 echo "configure:14504: checking for ALopenport in -laudio" >&5
14486 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 14504 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
14487 14505
14488 xe_check_libs=" -laudio " 14506 xe_check_libs=" -laudio "
14489 cat > conftest.$ac_ext <<EOF 14507 cat > conftest.$ac_ext <<EOF
14490 #line 14491 "configure" 14508 #line 14509 "configure"
14491 #include "confdefs.h" 14509 #include "confdefs.h"
14492 /* Override any gcc2 internal prototype to avoid an error. */ 14510 /* Override any gcc2 internal prototype to avoid an error. */
14493 /* We use char because int might match the return type of a gcc2 14511 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */ 14512 builtin and then its argument prototype would still apply. */
14495 char ALopenport(); 14513 char ALopenport();
14496 14514
14497 int main() { 14515 int main() {
14498 ALopenport() 14516 ALopenport()
14499 ; return 0; } 14517 ; return 0; }
14500 EOF 14518 EOF
14501 if { (eval echo configure:14502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14519 if { (eval echo configure:14520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14502 rm -rf conftest* 14520 rm -rf conftest*
14503 eval "ac_cv_lib_$ac_lib_var=yes" 14521 eval "ac_cv_lib_$ac_lib_var=yes"
14504 else 14522 else
14505 echo "configure: failed program was:" >&5 14523 echo "configure: failed program was:" >&5
14506 cat conftest.$ac_ext >&5 14524 cat conftest.$ac_ext >&5
14527 fi ;; 14545 fi ;;
14528 hppa*-hp-hpux* ) 14546 hppa*-hp-hpux* )
14529 if test -z "$native_sound_lib"; then 14547 if test -z "$native_sound_lib"; then
14530 14548
14531 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 14549 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
14532 echo "configure:14533: checking for AOpenAudio in -lAlib" >&5 14550 echo "configure:14551: checking for AOpenAudio in -lAlib" >&5
14533 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 14551 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
14534 14552
14535 xe_check_libs=" -lAlib " 14553 xe_check_libs=" -lAlib "
14536 cat > conftest.$ac_ext <<EOF 14554 cat > conftest.$ac_ext <<EOF
14537 #line 14538 "configure" 14555 #line 14556 "configure"
14538 #include "confdefs.h" 14556 #include "confdefs.h"
14539 /* Override any gcc2 internal prototype to avoid an error. */ 14557 /* Override any gcc2 internal prototype to avoid an error. */
14540 /* We use char because int might match the return type of a gcc2 14558 /* We use char because int might match the return type of a gcc2
14541 builtin and then its argument prototype would still apply. */ 14559 builtin and then its argument prototype would still apply. */
14542 char AOpenAudio(); 14560 char AOpenAudio();
14543 14561
14544 int main() { 14562 int main() {
14545 AOpenAudio() 14563 AOpenAudio()
14546 ; return 0; } 14564 ; return 0; }
14547 EOF 14565 EOF
14548 if { (eval echo configure:14549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14566 if { (eval echo configure:14567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14549 rm -rf conftest* 14567 rm -rf conftest*
14550 eval "ac_cv_lib_$ac_lib_var=yes" 14568 eval "ac_cv_lib_$ac_lib_var=yes"
14551 else 14569 else
14552 echo "configure: failed program was:" >&5 14570 echo "configure: failed program was:" >&5
14553 cat conftest.$ac_ext >&5 14571 cat conftest.$ac_ext >&5
14591 14609
14592 if test -z "$sound_found"; then 14610 if test -z "$sound_found"; then
14593 for dir in "machine" "sys" "linux"; do 14611 for dir in "machine" "sys" "linux"; do
14594 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 14612 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
14595 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 14613 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
14596 echo "configure:14597: checking for ${dir}/soundcard.h" >&5 14614 echo "configure:14615: checking for ${dir}/soundcard.h" >&5
14597 14615
14598 cat > conftest.$ac_ext <<EOF 14616 cat > conftest.$ac_ext <<EOF
14599 #line 14600 "configure" 14617 #line 14618 "configure"
14600 #include "confdefs.h" 14618 #include "confdefs.h"
14601 #include <${dir}/soundcard.h> 14619 #include <${dir}/soundcard.h>
14602 EOF 14620 EOF
14603 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14604 { (eval echo configure:14605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14622 { (eval echo configure:14623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14605 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14606 if test -z "$ac_err"; then 14624 if test -z "$ac_err"; then
14607 rm -rf conftest* 14625 rm -rf conftest*
14608 eval "ac_cv_header_$ac_safe=yes" 14626 eval "ac_cv_header_$ac_safe=yes"
14609 else 14627 else
14653 fi 14671 fi
14654 14672
14655 if test "$with_nas_sound" != "no"; then 14673 if test "$with_nas_sound" != "no"; then
14656 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 14674 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
14657 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 14675 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
14658 echo "configure:14659: checking for audio/audiolib.h" >&5 14676 echo "configure:14677: checking for audio/audiolib.h" >&5
14659 14677
14660 cat > conftest.$ac_ext <<EOF 14678 cat > conftest.$ac_ext <<EOF
14661 #line 14662 "configure" 14679 #line 14680 "configure"
14662 #include "confdefs.h" 14680 #include "confdefs.h"
14663 #include <audio/audiolib.h> 14681 #include <audio/audiolib.h>
14664 EOF 14682 EOF
14665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14666 { (eval echo configure:14667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14684 { (eval echo configure:14685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14668 if test -z "$ac_err"; then 14686 if test -z "$ac_err"; then
14669 rm -rf conftest* 14687 rm -rf conftest*
14670 eval "ac_cv_header_$ac_safe=yes" 14688 eval "ac_cv_header_$ac_safe=yes"
14671 else 14689 else
14679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14680 echo "$ac_t""yes" 1>&6 14698 echo "$ac_t""yes" 1>&6
14681 14699
14682 14700
14683 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 14701 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
14684 echo "configure:14685: checking for AuOpenServer in -laudio" >&5 14702 echo "configure:14703: checking for AuOpenServer in -laudio" >&5
14685 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 14703 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
14686 14704
14687 xe_check_libs=" -laudio " 14705 xe_check_libs=" -laudio "
14688 cat > conftest.$ac_ext <<EOF 14706 cat > conftest.$ac_ext <<EOF
14689 #line 14690 "configure" 14707 #line 14708 "configure"
14690 #include "confdefs.h" 14708 #include "confdefs.h"
14691 /* Override any gcc2 internal prototype to avoid an error. */ 14709 /* Override any gcc2 internal prototype to avoid an error. */
14692 /* We use char because int might match the return type of a gcc2 14710 /* We use char because int might match the return type of a gcc2
14693 builtin and then its argument prototype would still apply. */ 14711 builtin and then its argument prototype would still apply. */
14694 char AuOpenServer(); 14712 char AuOpenServer();
14695 14713
14696 int main() { 14714 int main() {
14697 AuOpenServer() 14715 AuOpenServer()
14698 ; return 0; } 14716 ; return 0; }
14699 EOF 14717 EOF
14700 if { (eval echo configure:14701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14718 if { (eval echo configure:14719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14701 rm -rf conftest* 14719 rm -rf conftest*
14702 eval "ac_cv_lib_$ac_lib_var=yes" 14720 eval "ac_cv_lib_$ac_lib_var=yes"
14703 else 14721 else
14704 echo "configure: failed program was:" >&5 14722 echo "configure: failed program was:" >&5
14705 cat conftest.$ac_ext >&5 14723 cat conftest.$ac_ext >&5
14734 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 14752 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
14735 echo " xemacs will be linked with \"nas.o\"" 14753 echo " xemacs will be linked with \"nas.o\""
14736 fi 14754 fi
14737 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 14755 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
14738 cat > conftest.$ac_ext <<EOF 14756 cat > conftest.$ac_ext <<EOF
14739 #line 14740 "configure" 14757 #line 14758 "configure"
14740 #include "confdefs.h" 14758 #include "confdefs.h"
14741 #include <audio/Xtutil.h> 14759 #include <audio/Xtutil.h>
14742 EOF 14760 EOF
14743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14744 egrep "AuXtErrorJump" >/dev/null 2>&1; then 14762 egrep "AuXtErrorJump" >/dev/null 2>&1; then
14765 14783
14766 if test "$with_esd_sound" != "no"; then 14784 if test "$with_esd_sound" != "no"; then
14767 # Extract the first word of "esd-config", so it can be a program name with args. 14785 # Extract the first word of "esd-config", so it can be a program name with args.
14768 set dummy esd-config; ac_word=$2 14786 set dummy esd-config; ac_word=$2
14769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 14787 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14770 echo "configure:14771: checking for $ac_word" >&5 14788 echo "configure:14789: checking for $ac_word" >&5
14771 14789
14772 if test -n "$have_esd_config"; then 14790 if test -n "$have_esd_config"; then
14773 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 14791 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
14774 else 14792 else
14775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 14793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14794 if test "$have_esd_config" = "yes"; then 14812 if test "$have_esd_config" = "yes"; then
14795 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 14813 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
14796 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 14814 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
14797 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 14815 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
14798 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 14816 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
14799 echo "configure:14800: checking for esd_play_stream" >&5 14817 echo "configure:14818: checking for esd_play_stream" >&5
14800 14818
14801 cat > conftest.$ac_ext <<EOF 14819 cat > conftest.$ac_ext <<EOF
14802 #line 14803 "configure" 14820 #line 14821 "configure"
14803 #include "confdefs.h" 14821 #include "confdefs.h"
14804 /* System header to define __stub macros and hopefully few prototypes, 14822 /* System header to define __stub macros and hopefully few prototypes,
14805 which can conflict with char esd_play_stream(); below. */ 14823 which can conflict with char esd_play_stream(); below. */
14806 #include <assert.h> 14824 #include <assert.h>
14807 /* Override any gcc2 internal prototype to avoid an error. */ 14825 /* Override any gcc2 internal prototype to avoid an error. */
14820 esd_play_stream(); 14838 esd_play_stream();
14821 #endif 14839 #endif
14822 14840
14823 ; return 0; } 14841 ; return 0; }
14824 EOF 14842 EOF
14825 if { (eval echo configure:14826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14843 if { (eval echo configure:14844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14826 rm -rf conftest* 14844 rm -rf conftest*
14827 eval "ac_cv_func_esd_play_stream=yes" 14845 eval "ac_cv_func_esd_play_stream=yes"
14828 else 14846 else
14829 echo "configure: failed program was:" >&5 14847 echo "configure: failed program was:" >&5
14830 cat conftest.$ac_ext >&5 14848 cat conftest.$ac_ext >&5
14871 14889
14872 test -z "$with_tty" && with_tty=yes 14890 test -z "$with_tty" && with_tty=yes
14873 14891
14874 if test "$with_tty" = "yes" ; then 14892 if test "$with_tty" = "yes" ; then
14875 echo "checking for TTY-related features" 1>&6 14893 echo "checking for TTY-related features" 1>&6
14876 echo "configure:14877: checking for TTY-related features" >&5 14894 echo "configure:14895: checking for TTY-related features" >&5
14877 { test "$extra_verbose" = "yes" && cat << \EOF 14895 { test "$extra_verbose" = "yes" && cat << \EOF
14878 Defining HAVE_TTY 14896 Defining HAVE_TTY
14879 EOF 14897 EOF
14880 cat >> confdefs.h <<\EOF 14898 cat >> confdefs.h <<\EOF
14881 #define HAVE_TTY 1 14899 #define HAVE_TTY 1
14884 14902
14885 14903
14886 if test -z "$with_ncurses"; then 14904 if test -z "$with_ncurses"; then
14887 14905
14888 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 14906 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
14889 echo "configure:14890: checking for tgetent in -lncurses" >&5 14907 echo "configure:14908: checking for tgetent in -lncurses" >&5
14890 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 14908 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
14891 14909
14892 xe_check_libs=" -lncurses " 14910 xe_check_libs=" -lncurses "
14893 cat > conftest.$ac_ext <<EOF 14911 cat > conftest.$ac_ext <<EOF
14894 #line 14895 "configure" 14912 #line 14913 "configure"
14895 #include "confdefs.h" 14913 #include "confdefs.h"
14896 /* Override any gcc2 internal prototype to avoid an error. */ 14914 /* Override any gcc2 internal prototype to avoid an error. */
14897 /* We use char because int might match the return type of a gcc2 14915 /* We use char because int might match the return type of a gcc2
14898 builtin and then its argument prototype would still apply. */ 14916 builtin and then its argument prototype would still apply. */
14899 char tgetent(); 14917 char tgetent();
14900 14918
14901 int main() { 14919 int main() {
14902 tgetent() 14920 tgetent()
14903 ; return 0; } 14921 ; return 0; }
14904 EOF 14922 EOF
14905 if { (eval echo configure:14906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14923 if { (eval echo configure:14924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14906 rm -rf conftest* 14924 rm -rf conftest*
14907 eval "ac_cv_lib_$ac_lib_var=yes" 14925 eval "ac_cv_lib_$ac_lib_var=yes"
14908 else 14926 else
14909 echo "configure: failed program was:" >&5 14927 echo "configure: failed program was:" >&5
14910 cat conftest.$ac_ext >&5 14928 cat conftest.$ac_ext >&5
14933 EOF 14951 EOF
14934 } 14952 }
14935 14953
14936 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14954 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
14937 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14955 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
14938 echo "configure:14939: checking for ncurses/curses.h" >&5 14956 echo "configure:14957: checking for ncurses/curses.h" >&5
14939 14957
14940 cat > conftest.$ac_ext <<EOF 14958 cat > conftest.$ac_ext <<EOF
14941 #line 14942 "configure" 14959 #line 14960 "configure"
14942 #include "confdefs.h" 14960 #include "confdefs.h"
14943 #include <ncurses/curses.h> 14961 #include <ncurses/curses.h>
14944 EOF 14962 EOF
14945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14946 { (eval echo configure:14947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14964 { (eval echo configure:14965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14948 if test -z "$ac_err"; then 14966 if test -z "$ac_err"; then
14949 rm -rf conftest* 14967 rm -rf conftest*
14950 eval "ac_cv_header_$ac_safe=yes" 14968 eval "ac_cv_header_$ac_safe=yes"
14951 else 14969 else
14963 echo "$ac_t""no" 1>&6 14981 echo "$ac_t""no" 1>&6
14964 fi 14982 fi
14965 14983
14966 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 14984 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
14967 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 14985 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
14968 echo "configure:14969: checking for ncurses/term.h" >&5 14986 echo "configure:14987: checking for ncurses/term.h" >&5
14969 14987
14970 cat > conftest.$ac_ext <<EOF 14988 cat > conftest.$ac_ext <<EOF
14971 #line 14972 "configure" 14989 #line 14990 "configure"
14972 #include "confdefs.h" 14990 #include "confdefs.h"
14973 #include <ncurses/term.h> 14991 #include <ncurses/term.h>
14974 EOF 14992 EOF
14975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14976 { (eval echo configure:14977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14994 { (eval echo configure:14995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14978 if test -z "$ac_err"; then 14996 if test -z "$ac_err"; then
14979 rm -rf conftest* 14997 rm -rf conftest*
14980 eval "ac_cv_header_$ac_safe=yes" 14998 eval "ac_cv_header_$ac_safe=yes"
14981 else 14999 else
15001 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 15019 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
15002 save_c_switch_site="$c_switch_site" 15020 save_c_switch_site="$c_switch_site"
15003 c_switch_site="$c_switch_site -I/usr/include/ncurses" 15021 c_switch_site="$c_switch_site -I/usr/include/ncurses"
15004 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 15022 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
15005 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 15023 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
15006 echo "configure:15007: checking for ncurses/curses.h" >&5 15024 echo "configure:15025: checking for ncurses/curses.h" >&5
15007 15025
15008 cat > conftest.$ac_ext <<EOF 15026 cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure" 15027 #line 15028 "configure"
15010 #include "confdefs.h" 15028 #include "confdefs.h"
15011 #include <ncurses/curses.h> 15029 #include <ncurses/curses.h>
15012 EOF 15030 EOF
15013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15014 { (eval echo configure:15015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15032 { (eval echo configure:15033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15016 if test -z "$ac_err"; then 15034 if test -z "$ac_err"; then
15017 rm -rf conftest* 15035 rm -rf conftest*
15018 eval "ac_cv_header_$ac_safe=yes" 15036 eval "ac_cv_header_$ac_safe=yes"
15019 else 15037 else
15044 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 15062 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
15045 else 15063 else
15046 for lib in curses termlib termcap; do 15064 for lib in curses termlib termcap; do
15047 15065
15048 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 15066 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
15049 echo "configure:15050: checking for tgetent in -l$lib" >&5 15067 echo "configure:15068: checking for tgetent in -l$lib" >&5
15050 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 15068 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
15051 15069
15052 xe_check_libs=" -l$lib " 15070 xe_check_libs=" -l$lib "
15053 cat > conftest.$ac_ext <<EOF 15071 cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure" 15072 #line 15073 "configure"
15055 #include "confdefs.h" 15073 #include "confdefs.h"
15056 /* Override any gcc2 internal prototype to avoid an error. */ 15074 /* Override any gcc2 internal prototype to avoid an error. */
15057 /* We use char because int might match the return type of a gcc2 15075 /* We use char because int might match the return type of a gcc2
15058 builtin and then its argument prototype would still apply. */ 15076 builtin and then its argument prototype would still apply. */
15059 char tgetent(); 15077 char tgetent();
15060 15078
15061 int main() { 15079 int main() {
15062 tgetent() 15080 tgetent()
15063 ; return 0; } 15081 ; return 0; }
15064 EOF 15082 EOF
15065 if { (eval echo configure:15066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15083 if { (eval echo configure:15084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15066 rm -rf conftest* 15084 rm -rf conftest*
15067 eval "ac_cv_lib_$ac_lib_var=yes" 15085 eval "ac_cv_lib_$ac_lib_var=yes"
15068 else 15086 else
15069 echo "configure: failed program was:" >&5 15087 echo "configure: failed program was:" >&5
15070 cat conftest.$ac_ext >&5 15088 cat conftest.$ac_ext >&5
15091 if test -n "$libs_termcap"; then 15109 if test -n "$libs_termcap"; then
15092 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 15110 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
15093 else 15111 else
15094 15112
15095 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 15113 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
15096 echo "configure:15097: checking for tgetent in -lcurses" >&5 15114 echo "configure:15115: checking for tgetent in -lcurses" >&5
15097 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 15115 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
15098 15116
15099 xe_check_libs=" -lcurses " 15117 xe_check_libs=" -lcurses "
15100 cat > conftest.$ac_ext <<EOF 15118 cat > conftest.$ac_ext <<EOF
15101 #line 15102 "configure" 15119 #line 15120 "configure"
15102 #include "confdefs.h" 15120 #include "confdefs.h"
15103 /* Override any gcc2 internal prototype to avoid an error. */ 15121 /* Override any gcc2 internal prototype to avoid an error. */
15104 /* We use char because int might match the return type of a gcc2 15122 /* We use char because int might match the return type of a gcc2
15105 builtin and then its argument prototype would still apply. */ 15123 builtin and then its argument prototype would still apply. */
15106 char tgetent(); 15124 char tgetent();
15107 15125
15108 int main() { 15126 int main() {
15109 tgetent() 15127 tgetent()
15110 ; return 0; } 15128 ; return 0; }
15111 EOF 15129 EOF
15112 if { (eval echo configure:15113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15130 if { (eval echo configure:15131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15113 rm -rf conftest* 15131 rm -rf conftest*
15114 eval "ac_cv_lib_$ac_lib_var=yes" 15132 eval "ac_cv_lib_$ac_lib_var=yes"
15115 else 15133 else
15116 echo "configure: failed program was:" >&5 15134 echo "configure: failed program was:" >&5
15117 cat conftest.$ac_ext >&5 15135 cat conftest.$ac_ext >&5
15125 echo "$ac_t""yes" 1>&6 15143 echo "$ac_t""yes" 1>&6
15126 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 15144 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
15127 else 15145 else
15128 echo "$ac_t""no" 1>&6 15146 echo "$ac_t""no" 1>&6
15129 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 15147 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
15130 echo "configure:15131: checking for tgetent in -ltermcap" >&5 15148 echo "configure:15149: checking for tgetent in -ltermcap" >&5
15131 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 15149 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
15132 15150
15133 xe_check_libs=" -ltermcap " 15151 xe_check_libs=" -ltermcap "
15134 cat > conftest.$ac_ext <<EOF 15152 cat > conftest.$ac_ext <<EOF
15135 #line 15136 "configure" 15153 #line 15154 "configure"
15136 #include "confdefs.h" 15154 #include "confdefs.h"
15137 /* Override any gcc2 internal prototype to avoid an error. */ 15155 /* Override any gcc2 internal prototype to avoid an error. */
15138 /* We use char because int might match the return type of a gcc2 15156 /* We use char because int might match the return type of a gcc2
15139 builtin and then its argument prototype would still apply. */ 15157 builtin and then its argument prototype would still apply. */
15140 char tgetent(); 15158 char tgetent();
15141 15159
15142 int main() { 15160 int main() {
15143 tgetent() 15161 tgetent()
15144 ; return 0; } 15162 ; return 0; }
15145 EOF 15163 EOF
15146 if { (eval echo configure:15147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15164 if { (eval echo configure:15165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15147 rm -rf conftest* 15165 rm -rf conftest*
15148 eval "ac_cv_lib_$ac_lib_var=yes" 15166 eval "ac_cv_lib_$ac_lib_var=yes"
15149 else 15167 else
15150 echo "configure: failed program was:" >&5 15168 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5 15169 cat conftest.$ac_ext >&5
15190 15208
15191 15209
15192 if test "$with_gpm" != "no"; then 15210 if test "$with_gpm" != "no"; then
15193 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 15211 ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
15194 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 15212 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
15195 echo "configure:15196: checking for gpm.h" >&5 15213 echo "configure:15214: checking for gpm.h" >&5
15196 15214
15197 cat > conftest.$ac_ext <<EOF 15215 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure" 15216 #line 15217 "configure"
15199 #include "confdefs.h" 15217 #include "confdefs.h"
15200 #include <gpm.h> 15218 #include <gpm.h>
15201 EOF 15219 EOF
15202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15203 { (eval echo configure:15204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15221 { (eval echo configure:15222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15205 if test -z "$ac_err"; then 15223 if test -z "$ac_err"; then
15206 rm -rf conftest* 15224 rm -rf conftest*
15207 eval "ac_cv_header_$ac_safe=yes" 15225 eval "ac_cv_header_$ac_safe=yes"
15208 else 15226 else
15216 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 15234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15217 echo "$ac_t""yes" 1>&6 15235 echo "$ac_t""yes" 1>&6
15218 15236
15219 15237
15220 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 15238 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
15221 echo "configure:15222: checking for Gpm_Open in -lgpm" >&5 15239 echo "configure:15240: checking for Gpm_Open in -lgpm" >&5
15222 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 15240 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
15223 15241
15224 xe_check_libs=" -lgpm " 15242 xe_check_libs=" -lgpm "
15225 cat > conftest.$ac_ext <<EOF 15243 cat > conftest.$ac_ext <<EOF
15226 #line 15227 "configure" 15244 #line 15245 "configure"
15227 #include "confdefs.h" 15245 #include "confdefs.h"
15228 /* Override any gcc2 internal prototype to avoid an error. */ 15246 /* Override any gcc2 internal prototype to avoid an error. */
15229 /* We use char because int might match the return type of a gcc2 15247 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */ 15248 builtin and then its argument prototype would still apply. */
15231 char Gpm_Open(); 15249 char Gpm_Open();
15232 15250
15233 int main() { 15251 int main() {
15234 Gpm_Open() 15252 Gpm_Open()
15235 ; return 0; } 15253 ; return 0; }
15236 EOF 15254 EOF
15237 if { (eval echo configure:15238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15255 if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15238 rm -rf conftest* 15256 rm -rf conftest*
15239 eval "ac_cv_lib_$ac_lib_var=yes" 15257 eval "ac_cv_lib_$ac_lib_var=yes"
15240 else 15258 else
15241 echo "configure: failed program was:" >&5 15259 echo "configure: failed program was:" >&5
15242 cat conftest.$ac_ext >&5 15260 cat conftest.$ac_ext >&5
15284 done 15302 done
15285 fi 15303 fi
15286 15304
15287 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 15305 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
15288 != "no no no" && echo "checking for database support" 1>&6 15306 != "no no no" && echo "checking for database support" 1>&6
15289 echo "configure:15290: checking for database support" >&5 15307 echo "configure:15308: checking for database support" >&5
15290 15308
15291 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 15309 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
15292 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 15310 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
15293 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 15311 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
15294 echo "configure:15295: checking for ndbm.h" >&5 15312 echo "configure:15313: checking for ndbm.h" >&5
15295 15313
15296 cat > conftest.$ac_ext <<EOF 15314 cat > conftest.$ac_ext <<EOF
15297 #line 15298 "configure" 15315 #line 15316 "configure"
15298 #include "confdefs.h" 15316 #include "confdefs.h"
15299 #include <ndbm.h> 15317 #include <ndbm.h>
15300 EOF 15318 EOF
15301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15302 { (eval echo configure:15303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15320 { (eval echo configure:15321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15304 if test -z "$ac_err"; then 15322 if test -z "$ac_err"; then
15305 rm -rf conftest* 15323 rm -rf conftest*
15306 eval "ac_cv_header_$ac_safe=yes" 15324 eval "ac_cv_header_$ac_safe=yes"
15307 else 15325 else
15327 fi 15345 fi
15328 15346
15329 if test "$with_database_gdbm" != "no"; then 15347 if test "$with_database_gdbm" != "no"; then
15330 15348
15331 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 15349 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
15332 echo "configure:15333: checking for dbm_open in -lgdbm" >&5 15350 echo "configure:15351: checking for dbm_open in -lgdbm" >&5
15333 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 15351 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
15334 15352
15335 xe_check_libs=" -lgdbm " 15353 xe_check_libs=" -lgdbm "
15336 cat > conftest.$ac_ext <<EOF 15354 cat > conftest.$ac_ext <<EOF
15337 #line 15338 "configure" 15355 #line 15356 "configure"
15338 #include "confdefs.h" 15356 #include "confdefs.h"
15339 /* Override any gcc2 internal prototype to avoid an error. */ 15357 /* Override any gcc2 internal prototype to avoid an error. */
15340 /* We use char because int might match the return type of a gcc2 15358 /* We use char because int might match the return type of a gcc2
15341 builtin and then its argument prototype would still apply. */ 15359 builtin and then its argument prototype would still apply. */
15342 char dbm_open(); 15360 char dbm_open();
15343 15361
15344 int main() { 15362 int main() {
15345 dbm_open() 15363 dbm_open()
15346 ; return 0; } 15364 ; return 0; }
15347 EOF 15365 EOF
15348 if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15366 if { (eval echo configure:15367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15349 rm -rf conftest* 15367 rm -rf conftest*
15350 eval "ac_cv_lib_$ac_lib_var=yes" 15368 eval "ac_cv_lib_$ac_lib_var=yes"
15351 else 15369 else
15352 echo "configure: failed program was:" >&5 15370 echo "configure: failed program was:" >&5
15353 cat conftest.$ac_ext >&5 15371 cat conftest.$ac_ext >&5
15371 15389
15372 fi 15390 fi
15373 15391
15374 if test "$with_database_dbm" != "no"; then 15392 if test "$with_database_dbm" != "no"; then
15375 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 15393 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
15376 echo "configure:15377: checking for dbm_open" >&5 15394 echo "configure:15395: checking for dbm_open" >&5
15377 15395
15378 cat > conftest.$ac_ext <<EOF 15396 cat > conftest.$ac_ext <<EOF
15379 #line 15380 "configure" 15397 #line 15398 "configure"
15380 #include "confdefs.h" 15398 #include "confdefs.h"
15381 /* System header to define __stub macros and hopefully few prototypes, 15399 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char dbm_open(); below. */ 15400 which can conflict with char dbm_open(); below. */
15383 #include <assert.h> 15401 #include <assert.h>
15384 /* Override any gcc2 internal prototype to avoid an error. */ 15402 /* Override any gcc2 internal prototype to avoid an error. */
15397 dbm_open(); 15415 dbm_open();
15398 #endif 15416 #endif
15399 15417
15400 ; return 0; } 15418 ; return 0; }
15401 EOF 15419 EOF
15402 if { (eval echo configure:15403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15420 if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15403 rm -rf conftest* 15421 rm -rf conftest*
15404 eval "ac_cv_func_dbm_open=yes" 15422 eval "ac_cv_func_dbm_open=yes"
15405 else 15423 else
15406 echo "configure: failed program was:" >&5 15424 echo "configure: failed program was:" >&5
15407 cat conftest.$ac_ext >&5 15425 cat conftest.$ac_ext >&5
15416 else 15434 else
15417 echo "$ac_t""no" 1>&6 15435 echo "$ac_t""no" 1>&6
15418 15436
15419 15437
15420 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 15438 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
15421 echo "configure:15422: checking for dbm_open in -ldbm" >&5 15439 echo "configure:15440: checking for dbm_open in -ldbm" >&5
15422 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 15440 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
15423 15441
15424 xe_check_libs=" -ldbm " 15442 xe_check_libs=" -ldbm "
15425 cat > conftest.$ac_ext <<EOF 15443 cat > conftest.$ac_ext <<EOF
15426 #line 15427 "configure" 15444 #line 15445 "configure"
15427 #include "confdefs.h" 15445 #include "confdefs.h"
15428 /* Override any gcc2 internal prototype to avoid an error. */ 15446 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2 15447 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */ 15448 builtin and then its argument prototype would still apply. */
15431 char dbm_open(); 15449 char dbm_open();
15432 15450
15433 int main() { 15451 int main() {
15434 dbm_open() 15452 dbm_open()
15435 ; return 0; } 15453 ; return 0; }
15436 EOF 15454 EOF
15437 if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15455 if { (eval echo configure:15456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 rm -rf conftest* 15456 rm -rf conftest*
15439 eval "ac_cv_lib_$ac_lib_var=yes" 15457 eval "ac_cv_lib_$ac_lib_var=yes"
15440 else 15458 else
15441 echo "configure: failed program was:" >&5 15459 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5 15460 cat conftest.$ac_ext >&5
15473 } 15491 }
15474 15492
15475 15493
15476 if test "$with_database_berkdb" != "no"; then 15494 if test "$with_database_berkdb" != "no"; then
15477 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 15495 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
15478 echo "configure:15479: checking for Berkeley db.h" >&5 15496 echo "configure:15497: checking for Berkeley db.h" >&5
15479 for header in "db/db.h" "db.h"; do 15497 for header in "db/db.h" "db.h"; do
15480 cat > conftest.$ac_ext <<EOF 15498 cat > conftest.$ac_ext <<EOF
15481 #line 15482 "configure" 15499 #line 15500 "configure"
15482 #include "confdefs.h" 15500 #include "confdefs.h"
15483 15501
15484 #include <stdlib.h> 15502 #include <stdlib.h>
15485 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 15503 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
15486 #ifdef HAVE_INTTYPES_H 15504 #ifdef HAVE_INTTYPES_H
15498 15516
15499 int main() { 15517 int main() {
15500 15518
15501 ; return 0; } 15519 ; return 0; }
15502 EOF 15520 EOF
15503 if { (eval echo configure:15504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15521 if { (eval echo configure:15522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15504 rm -rf conftest* 15522 rm -rf conftest*
15505 db_h_file="$header"; break 15523 db_h_file="$header"; break
15506 else 15524 else
15507 echo "configure: failed program was:" >&5 15525 echo "configure: failed program was:" >&5
15508 cat conftest.$ac_ext >&5 15526 cat conftest.$ac_ext >&5
15514 else echo "$ac_t""$db_h_file" 1>&6 15532 else echo "$ac_t""$db_h_file" 1>&6
15515 fi 15533 fi
15516 15534
15517 if test "$with_database_berkdb" != "no"; then 15535 if test "$with_database_berkdb" != "no"; then
15518 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 15536 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
15519 echo "configure:15520: checking for Berkeley DB version" >&5 15537 echo "configure:15538: checking for Berkeley DB version" >&5
15520 cat > conftest.$ac_ext <<EOF 15538 cat > conftest.$ac_ext <<EOF
15521 #line 15522 "configure" 15539 #line 15540 "configure"
15522 #include "confdefs.h" 15540 #include "confdefs.h"
15523 #include <$db_h_file> 15541 #include <$db_h_file>
15524 #if DB_VERSION_MAJOR > 1 15542 #if DB_VERSION_MAJOR > 1
15525 yes 15543 yes
15526 #endif 15544 #endif
15528 EOF 15546 EOF
15529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15530 egrep "yes" >/dev/null 2>&1; then 15548 egrep "yes" >/dev/null 2>&1; then
15531 rm -rf conftest* 15549 rm -rf conftest*
15532 cat > conftest.$ac_ext <<EOF 15550 cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure" 15551 #line 15552 "configure"
15534 #include "confdefs.h" 15552 #include "confdefs.h"
15535 #include <$db_h_file> 15553 #include <$db_h_file>
15536 #if DB_VERSION_MAJOR > 2 15554 #if DB_VERSION_MAJOR > 2
15537 yes 15555 yes
15538 #endif 15556 #endif
15540 EOF 15558 EOF
15541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15542 egrep "yes" >/dev/null 2>&1; then 15560 egrep "yes" >/dev/null 2>&1; then
15543 rm -rf conftest* 15561 rm -rf conftest*
15544 cat > conftest.$ac_ext <<EOF 15562 cat > conftest.$ac_ext <<EOF
15545 #line 15546 "configure" 15563 #line 15564 "configure"
15546 #include "confdefs.h" 15564 #include "confdefs.h"
15547 #include <$db_h_file> 15565 #include <$db_h_file>
15548 #if DB_VERSION_MAJOR > 3 15566 #if DB_VERSION_MAJOR > 3
15549 yes 15567 yes
15550 #endif 15568 #endif
15574 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1 15592 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
15575 fi 15593 fi
15576 rm -f conftest* 15594 rm -f conftest*
15577 15595
15578 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 15596 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
15579 echo "configure:15580: checking for $dbfunc" >&5 15597 echo "configure:15598: checking for $dbfunc" >&5
15580 15598
15581 cat > conftest.$ac_ext <<EOF 15599 cat > conftest.$ac_ext <<EOF
15582 #line 15583 "configure" 15600 #line 15601 "configure"
15583 #include "confdefs.h" 15601 #include "confdefs.h"
15584 /* System header to define __stub macros and hopefully few prototypes, 15602 /* System header to define __stub macros and hopefully few prototypes,
15585 which can conflict with char $dbfunc(); below. */ 15603 which can conflict with char $dbfunc(); below. */
15586 #include <assert.h> 15604 #include <assert.h>
15587 /* Override any gcc2 internal prototype to avoid an error. */ 15605 /* Override any gcc2 internal prototype to avoid an error. */
15600 $dbfunc(); 15618 $dbfunc();
15601 #endif 15619 #endif
15602 15620
15603 ; return 0; } 15621 ; return 0; }
15604 EOF 15622 EOF
15605 if { (eval echo configure:15606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15623 if { (eval echo configure:15624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15606 rm -rf conftest* 15624 rm -rf conftest*
15607 eval "ac_cv_func_$dbfunc=yes" 15625 eval "ac_cv_func_$dbfunc=yes"
15608 else 15626 else
15609 echo "configure: failed program was:" >&5 15627 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5 15628 cat conftest.$ac_ext >&5
15619 else 15637 else
15620 echo "$ac_t""no" 1>&6 15638 echo "$ac_t""no" 1>&6
15621 15639
15622 15640
15623 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 15641 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
15624 echo "configure:15625: checking for $dbfunc in -ldb" >&5 15642 echo "configure:15643: checking for $dbfunc in -ldb" >&5
15625 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 15643 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
15626 15644
15627 xe_check_libs=" -ldb " 15645 xe_check_libs=" -ldb "
15628 cat > conftest.$ac_ext <<EOF 15646 cat > conftest.$ac_ext <<EOF
15629 #line 15630 "configure" 15647 #line 15648 "configure"
15630 #include "confdefs.h" 15648 #include "confdefs.h"
15631 /* Override any gcc2 internal prototype to avoid an error. */ 15649 /* Override any gcc2 internal prototype to avoid an error. */
15632 /* We use char because int might match the return type of a gcc2 15650 /* We use char because int might match the return type of a gcc2
15633 builtin and then its argument prototype would still apply. */ 15651 builtin and then its argument prototype would still apply. */
15634 char $dbfunc(); 15652 char $dbfunc();
15635 15653
15636 int main() { 15654 int main() {
15637 $dbfunc() 15655 $dbfunc()
15638 ; return 0; } 15656 ; return 0; }
15639 EOF 15657 EOF
15640 if { (eval echo configure:15641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15658 if { (eval echo configure:15659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15641 rm -rf conftest* 15659 rm -rf conftest*
15642 eval "ac_cv_lib_$ac_lib_var=yes" 15660 eval "ac_cv_lib_$ac_lib_var=yes"
15643 else 15661 else
15644 echo "configure: failed program was:" >&5 15662 echo "configure: failed program was:" >&5
15645 cat conftest.$ac_ext >&5 15663 cat conftest.$ac_ext >&5
15669 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 15687 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
15670 rm -f $tempcname 15688 rm -f $tempcname
15671 echo "configure: warning: "db_create is really $dbfunc"" 1>&2 15689 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
15672 15690
15673 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 15691 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
15674 echo "configure:15675: checking for $dbfunc in -ldb" >&5 15692 echo "configure:15693: checking for $dbfunc in -ldb" >&5
15675 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 15693 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
15676 15694
15677 xe_check_libs=" -ldb " 15695 xe_check_libs=" -ldb "
15678 cat > conftest.$ac_ext <<EOF 15696 cat > conftest.$ac_ext <<EOF
15679 #line 15680 "configure" 15697 #line 15698 "configure"
15680 #include "confdefs.h" 15698 #include "confdefs.h"
15681 /* Override any gcc2 internal prototype to avoid an error. */ 15699 /* Override any gcc2 internal prototype to avoid an error. */
15682 /* We use char because int might match the return type of a gcc2 15700 /* We use char because int might match the return type of a gcc2
15683 builtin and then its argument prototype would still apply. */ 15701 builtin and then its argument prototype would still apply. */
15684 char $dbfunc(); 15702 char $dbfunc();
15685 15703
15686 int main() { 15704 int main() {
15687 $dbfunc() 15705 $dbfunc()
15688 ; return 0; } 15706 ; return 0; }
15689 EOF 15707 EOF
15690 if { (eval echo configure:15691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15708 if { (eval echo configure:15709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15691 rm -rf conftest* 15709 rm -rf conftest*
15692 eval "ac_cv_lib_$ac_lib_var=yes" 15710 eval "ac_cv_lib_$ac_lib_var=yes"
15693 else 15711 else
15694 echo "configure: failed program was:" >&5 15712 echo "configure: failed program was:" >&5
15695 cat conftest.$ac_ext >&5 15713 cat conftest.$ac_ext >&5
15744 fi 15762 fi
15745 15763
15746 if test "$with_socks" = "yes"; then 15764 if test "$with_socks" = "yes"; then
15747 15765
15748 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 15766 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
15749 echo "configure:15750: checking for SOCKSinit in -lsocks" >&5 15767 echo "configure:15768: checking for SOCKSinit in -lsocks" >&5
15750 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 15768 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
15751 15769
15752 xe_check_libs=" -lsocks " 15770 xe_check_libs=" -lsocks "
15753 cat > conftest.$ac_ext <<EOF 15771 cat > conftest.$ac_ext <<EOF
15754 #line 15755 "configure" 15772 #line 15773 "configure"
15755 #include "confdefs.h" 15773 #include "confdefs.h"
15756 /* Override any gcc2 internal prototype to avoid an error. */ 15774 /* Override any gcc2 internal prototype to avoid an error. */
15757 /* We use char because int might match the return type of a gcc2 15775 /* We use char because int might match the return type of a gcc2
15758 builtin and then its argument prototype would still apply. */ 15776 builtin and then its argument prototype would still apply. */
15759 char SOCKSinit(); 15777 char SOCKSinit();
15760 15778
15761 int main() { 15779 int main() {
15762 SOCKSinit() 15780 SOCKSinit()
15763 ; return 0; } 15781 ; return 0; }
15764 EOF 15782 EOF
15765 if { (eval echo configure:15766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15783 if { (eval echo configure:15784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15766 rm -rf conftest* 15784 rm -rf conftest*
15767 eval "ac_cv_lib_$ac_lib_var=yes" 15785 eval "ac_cv_lib_$ac_lib_var=yes"
15768 else 15786 else
15769 echo "configure: failed program was:" >&5 15787 echo "configure: failed program was:" >&5
15770 cat conftest.$ac_ext >&5 15788 cat conftest.$ac_ext >&5
15816 fi 15834 fi
15817 15835
15818 if test "$use_number_lib" = "gmp"; then 15836 if test "$use_number_lib" = "gmp"; then
15819 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'` 15837 ac_safe=`echo "gmp.h" | sed 'y%./+-%__p_%'`
15820 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6 15838 echo $ac_n "checking for gmp.h""... $ac_c" 1>&6
15821 echo "configure:15822: checking for gmp.h" >&5 15839 echo "configure:15840: checking for gmp.h" >&5
15822 15840
15823 cat > conftest.$ac_ext <<EOF 15841 cat > conftest.$ac_ext <<EOF
15824 #line 15825 "configure" 15842 #line 15843 "configure"
15825 #include "confdefs.h" 15843 #include "confdefs.h"
15826 #include <gmp.h> 15844 #include <gmp.h>
15827 EOF 15845 EOF
15828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15829 { (eval echo configure:15830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15847 { (eval echo configure:15848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15831 if test -z "$ac_err"; then 15849 if test -z "$ac_err"; then
15832 rm -rf conftest* 15850 rm -rf conftest*
15833 eval "ac_cv_header_$ac_safe=yes" 15851 eval "ac_cv_header_$ac_safe=yes"
15834 else 15852 else
15842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 15860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15843 echo "$ac_t""yes" 1>&6 15861 echo "$ac_t""yes" 1>&6
15844 15862
15845 15863
15846 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6 15864 echo $ac_n "checking for __gmpz_init in -lgmp""... $ac_c" 1>&6
15847 echo "configure:15848: checking for __gmpz_init in -lgmp" >&5 15865 echo "configure:15866: checking for __gmpz_init in -lgmp" >&5
15848 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'` 15866 ac_lib_var=`echo gmp'_'__gmpz_init | sed 'y%./+-%__p_%'`
15849 15867
15850 xe_check_libs=" -lgmp " 15868 xe_check_libs=" -lgmp "
15851 cat > conftest.$ac_ext <<EOF 15869 cat > conftest.$ac_ext <<EOF
15852 #line 15853 "configure" 15870 #line 15871 "configure"
15853 #include "confdefs.h" 15871 #include "confdefs.h"
15854 /* Override any gcc2 internal prototype to avoid an error. */ 15872 /* Override any gcc2 internal prototype to avoid an error. */
15855 /* We use char because int might match the return type of a gcc2 15873 /* We use char because int might match the return type of a gcc2
15856 builtin and then its argument prototype would still apply. */ 15874 builtin and then its argument prototype would still apply. */
15857 char __gmpz_init(); 15875 char __gmpz_init();
15858 15876
15859 int main() { 15877 int main() {
15860 __gmpz_init() 15878 __gmpz_init()
15861 ; return 0; } 15879 ; return 0; }
15862 EOF 15880 EOF
15863 if { (eval echo configure:15864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15881 if { (eval echo configure:15882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15864 rm -rf conftest* 15882 rm -rf conftest*
15865 eval "ac_cv_lib_$ac_lib_var=yes" 15883 eval "ac_cv_lib_$ac_lib_var=yes"
15866 else 15884 else
15867 echo "configure: failed program was:" >&5 15885 echo "configure: failed program was:" >&5
15868 cat conftest.$ac_ext >&5 15886 cat conftest.$ac_ext >&5
15907 fi 15925 fi
15908 elif test "$use_number_lib" = "mp"; then 15926 elif test "$use_number_lib" = "mp"; then
15909 for library in "" "-lcrypto"; do 15927 for library in "" "-lcrypto"; do
15910 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'` 15928 ac_safe=`echo "mp.h" | sed 'y%./+-%__p_%'`
15911 echo $ac_n "checking for mp.h""... $ac_c" 1>&6 15929 echo $ac_n "checking for mp.h""... $ac_c" 1>&6
15912 echo "configure:15913: checking for mp.h" >&5 15930 echo "configure:15931: checking for mp.h" >&5
15913 15931
15914 cat > conftest.$ac_ext <<EOF 15932 cat > conftest.$ac_ext <<EOF
15915 #line 15916 "configure" 15933 #line 15934 "configure"
15916 #include "confdefs.h" 15934 #include "confdefs.h"
15917 #include <mp.h> 15935 #include <mp.h>
15918 EOF 15936 EOF
15919 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 15937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15920 { (eval echo configure:15921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 15938 { (eval echo configure:15939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15921 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 15939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15922 if test -z "$ac_err"; then 15940 if test -z "$ac_err"; then
15923 rm -rf conftest* 15941 rm -rf conftest*
15924 eval "ac_cv_header_$ac_safe=yes" 15942 eval "ac_cv_header_$ac_safe=yes"
15925 else 15943 else
15935 15953
15936 15954
15937 xe_msg_checking="for mp_mfree in -lmp" 15955 xe_msg_checking="for mp_mfree in -lmp"
15938 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library" 15956 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
15939 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 15957 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15940 echo "configure:15941: checking "$xe_msg_checking"" >&5 15958 echo "configure:15959: checking "$xe_msg_checking"" >&5
15941 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'` 15959 ac_lib_var=`echo mp'_'mp_mfree | sed 'y%./+-%__p_%'`
15942 15960
15943 xe_check_libs=" -lmp $library" 15961 xe_check_libs=" -lmp $library"
15944 cat > conftest.$ac_ext <<EOF 15962 cat > conftest.$ac_ext <<EOF
15945 #line 15946 "configure" 15963 #line 15964 "configure"
15946 #include "confdefs.h" 15964 #include "confdefs.h"
15947 /* Override any gcc2 internal prototype to avoid an error. */ 15965 /* Override any gcc2 internal prototype to avoid an error. */
15948 /* We use char because int might match the return type of a gcc2 15966 /* We use char because int might match the return type of a gcc2
15949 builtin and then its argument prototype would still apply. */ 15967 builtin and then its argument prototype would still apply. */
15950 char mp_mfree(); 15968 char mp_mfree();
15951 15969
15952 int main() { 15970 int main() {
15953 mp_mfree() 15971 mp_mfree()
15954 ; return 0; } 15972 ; return 0; }
15955 EOF 15973 EOF
15956 if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15974 if { (eval echo configure:15975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15957 rm -rf conftest* 15975 rm -rf conftest*
15958 eval "ac_cv_lib_$ac_lib_var=yes" 15976 eval "ac_cv_lib_$ac_lib_var=yes"
15959 else 15977 else
15960 echo "configure: failed program was:" >&5 15978 echo "configure: failed program was:" >&5
15961 cat conftest.$ac_ext >&5 15979 cat conftest.$ac_ext >&5
15972 echo "$ac_t""no" 1>&6 15990 echo "$ac_t""no" 1>&6
15973 15991
15974 xe_msg_checking="for mfree in -lmp" 15992 xe_msg_checking="for mfree in -lmp"
15975 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library" 15993 test -n "$library" && xe_msg_checking="$xe_msg_checking using extra libs $library"
15976 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 15994 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15977 echo "configure:15978: checking "$xe_msg_checking"" >&5 15995 echo "configure:15996: checking "$xe_msg_checking"" >&5
15978 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'` 15996 ac_lib_var=`echo mp'_'mfree | sed 'y%./+-%__p_%'`
15979 15997
15980 xe_check_libs=" -lmp $library" 15998 xe_check_libs=" -lmp $library"
15981 cat > conftest.$ac_ext <<EOF 15999 cat > conftest.$ac_ext <<EOF
15982 #line 15983 "configure" 16000 #line 16001 "configure"
15983 #include "confdefs.h" 16001 #include "confdefs.h"
15984 /* Override any gcc2 internal prototype to avoid an error. */ 16002 /* Override any gcc2 internal prototype to avoid an error. */
15985 /* We use char because int might match the return type of a gcc2 16003 /* We use char because int might match the return type of a gcc2
15986 builtin and then its argument prototype would still apply. */ 16004 builtin and then its argument prototype would still apply. */
15987 char mfree(); 16005 char mfree();
15988 16006
15989 int main() { 16007 int main() {
15990 mfree() 16008 mfree()
15991 ; return 0; } 16009 ; return 0; }
15992 EOF 16010 EOF
15993 if { (eval echo configure:15994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16011 if { (eval echo configure:16012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15994 rm -rf conftest* 16012 rm -rf conftest*
15995 eval "ac_cv_lib_$ac_lib_var=yes" 16013 eval "ac_cv_lib_$ac_lib_var=yes"
15996 else 16014 else
15997 echo "configure: failed program was:" >&5 16015 echo "configure: failed program was:" >&5
15998 cat conftest.$ac_ext >&5 16016 cat conftest.$ac_ext >&5
16030 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi 16048 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
16031 if test "$library" != ""; then 16049 if test "$library" != ""; then
16032 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi 16050 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
16033 fi 16051 fi
16034 echo $ac_n "checking for mp_move""... $ac_c" 1>&6 16052 echo $ac_n "checking for mp_move""... $ac_c" 1>&6
16035 echo "configure:16036: checking for mp_move" >&5 16053 echo "configure:16054: checking for mp_move" >&5
16036 16054
16037 cat > conftest.$ac_ext <<EOF 16055 cat > conftest.$ac_ext <<EOF
16038 #line 16039 "configure" 16056 #line 16057 "configure"
16039 #include "confdefs.h" 16057 #include "confdefs.h"
16040 /* System header to define __stub macros and hopefully few prototypes, 16058 /* System header to define __stub macros and hopefully few prototypes,
16041 which can conflict with char mp_move(); below. */ 16059 which can conflict with char mp_move(); below. */
16042 #include <assert.h> 16060 #include <assert.h>
16043 /* Override any gcc2 internal prototype to avoid an error. */ 16061 /* Override any gcc2 internal prototype to avoid an error. */
16056 mp_move(); 16074 mp_move();
16057 #endif 16075 #endif
16058 16076
16059 ; return 0; } 16077 ; return 0; }
16060 EOF 16078 EOF
16061 if { (eval echo configure:16062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16079 if { (eval echo configure:16080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16062 rm -rf conftest* 16080 rm -rf conftest*
16063 eval "ac_cv_func_mp_move=yes" 16081 eval "ac_cv_func_mp_move=yes"
16064 else 16082 else
16065 echo "configure: failed program was:" >&5 16083 echo "configure: failed program was:" >&5
16066 cat conftest.$ac_ext >&5 16084 cat conftest.$ac_ext >&5
16087 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi 16105 LIBS="$LIBS -lmp" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lmp\" to \$LIBS"; fi
16088 if test "$library" != ""; then 16106 if test "$library" != ""; then
16089 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi 16107 LIBS="$LIBS $library" && if test "$extra_verbose" = "yes"; then echo " Appending \"$library\" to \$LIBS"; fi
16090 fi 16108 fi
16091 echo $ac_n "checking for move""... $ac_c" 1>&6 16109 echo $ac_n "checking for move""... $ac_c" 1>&6
16092 echo "configure:16093: checking for move" >&5 16110 echo "configure:16111: checking for move" >&5
16093 16111
16094 cat > conftest.$ac_ext <<EOF 16112 cat > conftest.$ac_ext <<EOF
16095 #line 16096 "configure" 16113 #line 16114 "configure"
16096 #include "confdefs.h" 16114 #include "confdefs.h"
16097 /* System header to define __stub macros and hopefully few prototypes, 16115 /* System header to define __stub macros and hopefully few prototypes,
16098 which can conflict with char move(); below. */ 16116 which can conflict with char move(); below. */
16099 #include <assert.h> 16117 #include <assert.h>
16100 /* Override any gcc2 internal prototype to avoid an error. */ 16118 /* Override any gcc2 internal prototype to avoid an error. */
16113 move(); 16131 move();
16114 #endif 16132 #endif
16115 16133
16116 ; return 0; } 16134 ; return 0; }
16117 EOF 16135 EOF
16118 if { (eval echo configure:16119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 16136 if { (eval echo configure:16137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16119 rm -rf conftest* 16137 rm -rf conftest*
16120 eval "ac_cv_func_move=yes" 16138 eval "ac_cv_func_move=yes"
16121 else 16139 else
16122 echo "configure: failed program was:" >&5 16140 echo "configure: failed program was:" >&5
16123 cat conftest.$ac_ext >&5 16141 cat conftest.$ac_ext >&5
16160 } 16178 }
16161 16179
16162 fi 16180 fi
16163 16181
16164 cat > conftest.$ac_ext <<EOF 16182 cat > conftest.$ac_ext <<EOF
16165 #line 16166 "configure" 16183 #line 16184 "configure"
16166 #include "confdefs.h" 16184 #include "confdefs.h"
16167 int main(int c,char *v[]){return 0;} 16185 int main(int c,char *v[]){return 0;}
16168 EOF 16186 EOF
16169 if { (eval echo configure:16170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 16187 if { (eval echo configure:16188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
16170 then 16188 then
16171 : 16189 :
16172 else 16190 else
16173 conftest_rc="$?" 16191 conftest_rc="$?"
16174 echo "configure: failed program was:" >&5 16192 echo "configure: failed program was:" >&5
16406 *\$* ) eval "INFOPATH=$INFOPATH" ;; 16424 *\$* ) eval "INFOPATH=$INFOPATH" ;;
16407 *) break ;; 16425 *) break ;;
16408 esac 16426 esac
16409 done 16427 done
16410 16428
16429
16430 if test -z "$package_path" && test -n "$package_prefix" ; then
16431 if test "$with_mule" = "yes" ; then
16432 package_path="~/.xemacs::${package_prefix}/site-packages:${package_prefix}/xemacs-packages:${package_prefix}/mule-packages"
16433 else
16434 package_path="~/.xemacs::${package_prefix}/site-packages:${package_prefix}/xemacs-packages"
16435 fi
16436 fi
16411 16437
16412 16438
16413 16439
16414 PACKAGE_PATH=$package_path 16440 PACKAGE_PATH=$package_path
16415 while true; do 16441 while true; do