comparison configure @ 458:c33ae14dd6d0 r21-2-44

Import from CVS: tag r21-2-44
author cvs
date Mon, 13 Aug 2007 11:42:25 +0200
parents 3d3049ae1304
children 223736d75acb
comparison
equal deleted inserted replaced
457:4b9290a33024 458:c33ae14dd6d0
74 srcdir= 74 srcdir=
75 target=NONE 75 target=NONE
76 verbose= 76 verbose=
77 x_includes=NONE 77 x_includes=NONE
78 x_libraries=NONE 78 x_libraries=NONE
79
80 bindir='${exec_prefix}/bin'
81 sbindir='${exec_prefix}/sbin'
82 libexecdir='${exec_prefix}/libexec'
83 datadir='${prefix}/share'
84 sysconfdir='${prefix}/etc'
85 sharedstatedir='${prefix}/com'
86 localstatedir='${prefix}/var'
87 libdir='${{exec_prefix}}/lib'
88 includedir='${prefix}/include'
89 oldincludedir='/usr/include'
90 infodir='${prefix}/info'
91 mandir='${prefix}/man'
92 79
93 subdirs= 80 subdirs=
94 MFLAGS= MAKEFLAGS= 81 MFLAGS= MAKEFLAGS=
95 SHELL=${CONFIG_SHELL-/bin/sh} 82 SHELL=${CONFIG_SHELL-/bin/sh}
96 ac_max_here_lines=12 83 ac_max_here_lines=12
660 #define PACKAGE_PATH_USER_DEFINED 1 647 #define PACKAGE_PATH_USER_DEFINED 1
661 EOF 648 EOF
662 } 649 }
663 ;; 650 ;;
664 datadir ) 651 datadir )
665 { test "$extra_verbose" = "yes" && cat << \EOF 652 { test "$extra_verbose" = "yes" && cat << \EOF
666 Defining INFODIR_USER_DEFINED 653 Defining INFODIR_USER_DEFINED
667 EOF 654 EOF
668 cat >> confdefs.h <<\EOF 655 cat >> confdefs.h <<\EOF
669 #define INFODIR_USER_DEFINED 1 656 #define INFODIR_USER_DEFINED 1
670 EOF 657 EOF
671 } 658 }
672 659
673 { test "$extra_verbose" = "yes" && cat << \EOF 660 { test "$extra_verbose" = "yes" && cat << \EOF
674 Defining LISPDIR_USER_DEFINED 661 Defining LISPDIR_USER_DEFINED
675 EOF 662 EOF
676 cat >> confdefs.h <<\EOF 663 cat >> confdefs.h <<\EOF
677 #define LISPDIR_USER_DEFINED 1 664 #define LISPDIR_USER_DEFINED 1
678 EOF 665 EOF
679 } 666 }
680 667
681 { test "$extra_verbose" = "yes" && cat << \EOF 668 { test "$extra_verbose" = "yes" && cat << \EOF
682 Defining MODULEDIR_USER_DEFINED 669 Defining MODULEDIR_USER_DEFINED
683 EOF 670 EOF
684 cat >> confdefs.h <<\EOF 671 cat >> confdefs.h <<\EOF
685 #define MODULEDIR_USER_DEFINED 1 672 #define MODULEDIR_USER_DEFINED 1
686 EOF 673 EOF
689 { test "$extra_verbose" = "yes" && cat << \EOF 676 { test "$extra_verbose" = "yes" && cat << \EOF
690 Defining ETCDIR_USER_DEFINED 677 Defining ETCDIR_USER_DEFINED
691 EOF 678 EOF
692 cat >> confdefs.h <<\EOF 679 cat >> confdefs.h <<\EOF
693 #define ETCDIR_USER_DEFINED 1 680 #define ETCDIR_USER_DEFINED 1
681 EOF
682 }
683
684 { test "$extra_verbose" = "yes" && cat << \EOF
685 Defining DOCDIR_USER_DEFINED
686 EOF
687 cat >> confdefs.h <<\EOF
688 #define DOCDIR_USER_DEFINED 1
689 EOF
690 }
691
692 { test "$extra_verbose" = "yes" && cat << \EOF
693 Defining ARCHLIBDIR_USER_DEFINED
694 EOF
695 cat >> confdefs.h <<\EOF
696 #define ARCHLIBDIR_USER_DEFINED 1
694 EOF 697 EOF
695 } 698 }
696 ;; 699 ;;
697 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF 700 docdir ) { test "$extra_verbose" = "yes" && cat << \EOF
698 Defining DOCDIR_USER_DEFINED 701 Defining DOCDIR_USER_DEFINED
830 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 833 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
831 fi 834 fi
832 fi 835 fi
833 836
834 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 837 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
835 echo "configure:836: checking whether ln -s works" >&5 838 echo "configure:839: checking whether ln -s works" >&5
836 839
837 rm -f conftestdata 840 rm -f conftestdata
838 if ln -s X conftestdata 2>/dev/null 841 if ln -s X conftestdata 2>/dev/null
839 then 842 then
840 rm -f conftestdata 843 rm -f conftestdata
1095 } 1098 }
1096 1099
1097 1100
1098 1101
1099 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1102 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1100 echo "configure:1101: checking "host system type"" >&5 1103 echo "configure:1104: checking "host system type"" >&5
1101 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1104 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1102 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1105 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1103 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1106 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1104 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1107 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1105 echo "$ac_t""$configuration" 1>&6 1108 echo "$ac_t""$configuration" 1>&6
1614 xe_save_CFLAGS="$CFLAGS" 1617 xe_save_CFLAGS="$CFLAGS"
1615 1618
1616 # Extract the first word of "gcc", so it can be a program name with args. 1619 # Extract the first word of "gcc", so it can be a program name with args.
1617 set dummy gcc; ac_word=$2 1620 set dummy gcc; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5 1622 echo "configure:1623: checking for $ac_word" >&5
1620 1623
1621 if test -n "$CC"; then 1624 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test. 1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else 1626 else
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1641 1644
1642 if test -z "$CC"; then 1645 if test -z "$CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args. 1646 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2 1647 set dummy cc; ac_word=$2
1645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1646 echo "configure:1647: checking for $ac_word" >&5 1649 echo "configure:1650: checking for $ac_word" >&5
1647 1650
1648 if test -n "$CC"; then 1651 if test -n "$CC"; then
1649 ac_cv_prog_CC="$CC" # Let the user override the test. 1652 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 else 1653 else
1651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1689 case "`uname -s`" in 1692 case "`uname -s`" in
1690 *win32* | *WIN32*) 1693 *win32* | *WIN32*)
1691 # Extract the first word of "cl", so it can be a program name with args. 1694 # Extract the first word of "cl", so it can be a program name with args.
1692 set dummy cl; ac_word=$2 1695 set dummy cl; ac_word=$2
1693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1694 echo "configure:1695: checking for $ac_word" >&5 1697 echo "configure:1698: checking for $ac_word" >&5
1695 1698
1696 if test -n "$CC"; then 1699 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test. 1700 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else 1701 else
1699 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1718 fi 1721 fi
1719 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1722 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1720 fi 1723 fi
1721 1724
1722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1725 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1726 echo "configure:1727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1724 1727
1725 ac_ext=c 1728 ac_ext=c
1726 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1729 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1727 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1730 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1728 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1731 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1731 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1734 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1732 cross_compiling=no 1735 cross_compiling=no
1733 1736
1734 cat > conftest.$ac_ext << EOF 1737 cat > conftest.$ac_ext << EOF
1735 1738
1736 #line 1737 "configure" 1739 #line 1740 "configure"
1737 #include "confdefs.h" 1740 #include "confdefs.h"
1738 1741
1739 main(){return(0);} 1742 main(){return(0);}
1740 EOF 1743 EOF
1741 if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1744 if { (eval echo configure:1745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 ac_cv_prog_cc_works=yes 1745 ac_cv_prog_cc_works=yes
1743 # If we can't run a trivial program, we are probably using a cross compiler. 1746 # If we can't run a trivial program, we are probably using a cross compiler.
1744 if (./conftest; exit) 2>/dev/null; then 1747 if (./conftest; exit) 2>/dev/null; then
1745 ac_cv_prog_cc_cross=no 1748 ac_cv_prog_cc_cross=no
1746 else 1749 else
1764 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1767 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1765 if test $ac_cv_prog_cc_works = no; then 1768 if test $ac_cv_prog_cc_works = no; then
1766 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1769 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1767 fi 1770 fi
1768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1771 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1769 echo "configure:1770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1772 echo "configure:1773: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1770 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1773 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1771 cross_compiling=$ac_cv_prog_cc_cross 1774 cross_compiling=$ac_cv_prog_cc_cross
1772 1775
1773 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1776 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether we are using GNU C" >&5 1777 echo "configure:1778: checking whether we are using GNU C" >&5
1775 1778
1776 cat > conftest.c <<EOF 1779 cat > conftest.c <<EOF
1777 #ifdef __GNUC__ 1780 #ifdef __GNUC__
1778 yes; 1781 yes;
1779 #endif 1782 #endif
1780 EOF 1783 EOF
1781 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1784 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1782 ac_cv_prog_gcc=yes 1785 ac_cv_prog_gcc=yes
1783 else 1786 else
1784 ac_cv_prog_gcc=no 1787 ac_cv_prog_gcc=no
1785 fi 1788 fi
1786 1789
1794 1797
1795 ac_test_CFLAGS="${CFLAGS+set}" 1798 ac_test_CFLAGS="${CFLAGS+set}"
1796 ac_save_CFLAGS="$CFLAGS" 1799 ac_save_CFLAGS="$CFLAGS"
1797 CFLAGS= 1800 CFLAGS=
1798 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1801 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1799 echo "configure:1800: checking whether ${CC-cc} accepts -g" >&5 1802 echo "configure:1803: checking whether ${CC-cc} accepts -g" >&5
1800 1803
1801 echo 'void f(){}' > conftest.c 1804 echo 'void f(){}' > conftest.c
1802 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1805 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1803 ac_cv_prog_cc_g=yes 1806 ac_cv_prog_cc_g=yes
1804 else 1807 else
1827 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1830 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1828 CC=${NON_GNU_CC-cc} 1831 CC=${NON_GNU_CC-cc}
1829 # Extract the first word of "gcc", so it can be a program name with args. 1832 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2 1833 set dummy gcc; ac_word=$2
1831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1834 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1832 echo "configure:1833: checking for $ac_word" >&5 1835 echo "configure:1836: checking for $ac_word" >&5
1833 1836
1834 if test -n "$CC"; then 1837 if test -n "$CC"; then
1835 ac_cv_prog_CC="$CC" # Let the user override the test. 1838 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 else 1839 else
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1854 1857
1855 if test -z "$CC"; then 1858 if test -z "$CC"; then
1856 # Extract the first word of "cc", so it can be a program name with args. 1859 # Extract the first word of "cc", so it can be a program name with args.
1857 set dummy cc; ac_word=$2 1860 set dummy cc; ac_word=$2
1858 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1861 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1859 echo "configure:1860: checking for $ac_word" >&5 1862 echo "configure:1863: checking for $ac_word" >&5
1860 1863
1861 if test -n "$CC"; then 1864 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test. 1865 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 else 1866 else
1864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1902 case "`uname -s`" in 1905 case "`uname -s`" in
1903 *win32* | *WIN32*) 1906 *win32* | *WIN32*)
1904 # Extract the first word of "cl", so it can be a program name with args. 1907 # Extract the first word of "cl", so it can be a program name with args.
1905 set dummy cl; ac_word=$2 1908 set dummy cl; ac_word=$2
1906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907 echo "configure:1908: checking for $ac_word" >&5 1910 echo "configure:1911: checking for $ac_word" >&5
1908 1911
1909 if test -n "$CC"; then 1912 if test -n "$CC"; then
1910 ac_cv_prog_CC="$CC" # Let the user override the test. 1913 ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else 1914 else
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1931 fi 1934 fi
1932 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1935 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1933 fi 1936 fi
1934 1937
1935 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1939 echo "configure:1940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1937 1940
1938 ac_ext=c 1941 ac_ext=c
1939 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1942 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1940 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1943 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1941 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1944 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1944 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1947 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1945 cross_compiling=no 1948 cross_compiling=no
1946 1949
1947 cat > conftest.$ac_ext << EOF 1950 cat > conftest.$ac_ext << EOF
1948 1951
1949 #line 1950 "configure" 1952 #line 1953 "configure"
1950 #include "confdefs.h" 1953 #include "confdefs.h"
1951 1954
1952 main(){return(0);} 1955 main(){return(0);}
1953 EOF 1956 EOF
1954 if { (eval echo configure:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1955 ac_cv_prog_cc_works=yes 1958 ac_cv_prog_cc_works=yes
1956 # If we can't run a trivial program, we are probably using a cross compiler. 1959 # If we can't run a trivial program, we are probably using a cross compiler.
1957 if (./conftest; exit) 2>/dev/null; then 1960 if (./conftest; exit) 2>/dev/null; then
1958 ac_cv_prog_cc_cross=no 1961 ac_cv_prog_cc_cross=no
1959 else 1962 else
1977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1980 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1978 if test $ac_cv_prog_cc_works = no; then 1981 if test $ac_cv_prog_cc_works = no; then
1979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1982 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1980 fi 1983 fi
1981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1984 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1982 echo "configure:1983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1985 echo "configure:1986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1986 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1984 cross_compiling=$ac_cv_prog_cc_cross 1987 cross_compiling=$ac_cv_prog_cc_cross
1985 1988
1986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1989 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1987 echo "configure:1988: checking whether we are using GNU C" >&5 1990 echo "configure:1991: checking whether we are using GNU C" >&5
1988 1991
1989 cat > conftest.c <<EOF 1992 cat > conftest.c <<EOF
1990 #ifdef __GNUC__ 1993 #ifdef __GNUC__
1991 yes; 1994 yes;
1992 #endif 1995 #endif
1993 EOF 1996 EOF
1994 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1997 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1995 ac_cv_prog_gcc=yes 1998 ac_cv_prog_gcc=yes
1996 else 1999 else
1997 ac_cv_prog_gcc=no 2000 ac_cv_prog_gcc=no
1998 fi 2001 fi
1999 2002
2007 2010
2008 ac_test_CFLAGS="${CFLAGS+set}" 2011 ac_test_CFLAGS="${CFLAGS+set}"
2009 ac_save_CFLAGS="$CFLAGS" 2012 ac_save_CFLAGS="$CFLAGS"
2010 CFLAGS= 2013 CFLAGS=
2011 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2014 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2012 echo "configure:2013: checking whether ${CC-cc} accepts -g" >&5 2015 echo "configure:2016: checking whether ${CC-cc} accepts -g" >&5
2013 2016
2014 echo 'void f(){}' > conftest.c 2017 echo 'void f(){}' > conftest.c
2015 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2018 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2016 ac_cv_prog_cc_g=yes 2019 ac_cv_prog_cc_g=yes
2017 else 2020 else
2040 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2043 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2041 CC=gcc 2044 CC=gcc
2042 # Extract the first word of "gcc", so it can be a program name with args. 2045 # Extract the first word of "gcc", so it can be a program name with args.
2043 set dummy gcc; ac_word=$2 2046 set dummy gcc; ac_word=$2
2044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2045 echo "configure:2046: checking for $ac_word" >&5 2048 echo "configure:2049: checking for $ac_word" >&5
2046 2049
2047 if test -n "$CC"; then 2050 if test -n "$CC"; then
2048 ac_cv_prog_CC="$CC" # Let the user override the test. 2051 ac_cv_prog_CC="$CC" # Let the user override the test.
2049 else 2052 else
2050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2067 2070
2068 if test -z "$CC"; then 2071 if test -z "$CC"; then
2069 # Extract the first word of "cc", so it can be a program name with args. 2072 # Extract the first word of "cc", so it can be a program name with args.
2070 set dummy cc; ac_word=$2 2073 set dummy cc; ac_word=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5 2075 echo "configure:2076: checking for $ac_word" >&5
2073 2076
2074 if test -n "$CC"; then 2077 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test. 2078 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else 2079 else
2077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2115 case "`uname -s`" in 2118 case "`uname -s`" in
2116 *win32* | *WIN32*) 2119 *win32* | *WIN32*)
2117 # Extract the first word of "cl", so it can be a program name with args. 2120 # Extract the first word of "cl", so it can be a program name with args.
2118 set dummy cl; ac_word=$2 2121 set dummy cl; ac_word=$2
2119 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2120 echo "configure:2121: checking for $ac_word" >&5 2123 echo "configure:2124: checking for $ac_word" >&5
2121 2124
2122 if test -n "$CC"; then 2125 if test -n "$CC"; then
2123 ac_cv_prog_CC="$CC" # Let the user override the test. 2126 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 else 2127 else
2125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2144 fi 2147 fi
2145 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2148 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2146 fi 2149 fi
2147 2150
2148 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2151 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2149 echo "configure:2150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2152 echo "configure:2153: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2150 2153
2151 ac_ext=c 2154 ac_ext=c
2152 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2155 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2153 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2156 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2154 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2157 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2157 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2160 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2158 cross_compiling=no 2161 cross_compiling=no
2159 2162
2160 cat > conftest.$ac_ext << EOF 2163 cat > conftest.$ac_ext << EOF
2161 2164
2162 #line 2163 "configure" 2165 #line 2166 "configure"
2163 #include "confdefs.h" 2166 #include "confdefs.h"
2164 2167
2165 main(){return(0);} 2168 main(){return(0);}
2166 EOF 2169 EOF
2167 if { (eval echo configure:2168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2168 ac_cv_prog_cc_works=yes 2171 ac_cv_prog_cc_works=yes
2169 # If we can't run a trivial program, we are probably using a cross compiler. 2172 # If we can't run a trivial program, we are probably using a cross compiler.
2170 if (./conftest; exit) 2>/dev/null; then 2173 if (./conftest; exit) 2>/dev/null; then
2171 ac_cv_prog_cc_cross=no 2174 ac_cv_prog_cc_cross=no
2172 else 2175 else
2190 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2193 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2191 if test $ac_cv_prog_cc_works = no; then 2194 if test $ac_cv_prog_cc_works = no; then
2192 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2195 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2193 fi 2196 fi
2194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2197 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2198 echo "configure:2199: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2196 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2199 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2197 cross_compiling=$ac_cv_prog_cc_cross 2200 cross_compiling=$ac_cv_prog_cc_cross
2198 2201
2199 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2202 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether we are using GNU C" >&5 2203 echo "configure:2204: checking whether we are using GNU C" >&5
2201 2204
2202 cat > conftest.c <<EOF 2205 cat > conftest.c <<EOF
2203 #ifdef __GNUC__ 2206 #ifdef __GNUC__
2204 yes; 2207 yes;
2205 #endif 2208 #endif
2206 EOF 2209 EOF
2207 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2210 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2208 ac_cv_prog_gcc=yes 2211 ac_cv_prog_gcc=yes
2209 else 2212 else
2210 ac_cv_prog_gcc=no 2213 ac_cv_prog_gcc=no
2211 fi 2214 fi
2212 2215
2220 2223
2221 ac_test_CFLAGS="${CFLAGS+set}" 2224 ac_test_CFLAGS="${CFLAGS+set}"
2222 ac_save_CFLAGS="$CFLAGS" 2225 ac_save_CFLAGS="$CFLAGS"
2223 CFLAGS= 2226 CFLAGS=
2224 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2227 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2225 echo "configure:2226: checking whether ${CC-cc} accepts -g" >&5 2228 echo "configure:2229: checking whether ${CC-cc} accepts -g" >&5
2226 2229
2227 echo 'void f(){}' > conftest.c 2230 echo 'void f(){}' > conftest.c
2228 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2231 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2229 ac_cv_prog_cc_g=yes 2232 ac_cv_prog_cc_g=yes
2230 else 2233 else
2257 test -n "$CPP" -a -d "$CPP" && CPP= 2260 test -n "$CPP" -a -d "$CPP" && CPP=
2258 2261
2259 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2262 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2260 2263
2261 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2264 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2262 echo "configure:2263: checking how to run the C preprocessor" >&5 2265 echo "configure:2266: checking how to run the C preprocessor" >&5
2263 # On Suns, sometimes $CPP names a directory. 2266 # On Suns, sometimes $CPP names a directory.
2264 if test -n "$CPP" && test -d "$CPP"; then 2267 if test -n "$CPP" && test -d "$CPP"; then
2265 CPP= 2268 CPP=
2266 fi 2269 fi
2267 if test -z "$CPP"; then 2270 if test -z "$CPP"; then
2270 # substituted into the Makefile and "${CC-cc}" will confuse make. 2273 # substituted into the Makefile and "${CC-cc}" will confuse make.
2271 CPP="${CC-cc} -E" 2274 CPP="${CC-cc} -E"
2272 # On the NeXT, cc -E runs the code through the compiler's parser, 2275 # On the NeXT, cc -E runs the code through the compiler's parser,
2273 # not just through cpp. 2276 # not just through cpp.
2274 cat > conftest.$ac_ext <<EOF 2277 cat > conftest.$ac_ext <<EOF
2275 #line 2276 "configure" 2278 #line 2279 "configure"
2276 #include "confdefs.h" 2279 #include "confdefs.h"
2277 #include <assert.h> 2280 #include <assert.h>
2278 Syntax Error 2281 Syntax Error
2279 EOF 2282 EOF
2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2284 { (eval echo configure:2285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then 2286 if test -z "$ac_err"; then
2284 : 2287 :
2285 else 2288 else
2286 echo "$ac_err" >&5 2289 echo "$ac_err" >&5
2287 echo "configure: failed program was:" >&5 2290 echo "configure: failed program was:" >&5
2288 cat conftest.$ac_ext >&5 2291 cat conftest.$ac_ext >&5
2289 rm -rf conftest* 2292 rm -rf conftest*
2290 CPP="${CC-cc} -E -traditional-cpp" 2293 CPP="${CC-cc} -E -traditional-cpp"
2291 cat > conftest.$ac_ext <<EOF 2294 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure" 2295 #line 2296 "configure"
2293 #include "confdefs.h" 2296 #include "confdefs.h"
2294 #include <assert.h> 2297 #include <assert.h>
2295 Syntax Error 2298 Syntax Error
2296 EOF 2299 EOF
2297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2301 { (eval echo configure:2302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2300 if test -z "$ac_err"; then 2303 if test -z "$ac_err"; then
2301 : 2304 :
2302 else 2305 else
2303 echo "$ac_err" >&5 2306 echo "$ac_err" >&5
2304 echo "configure: failed program was:" >&5 2307 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5 2308 cat conftest.$ac_ext >&5
2306 rm -rf conftest* 2309 rm -rf conftest*
2307 CPP="${CC-cc} -nologo -E" 2310 CPP="${CC-cc} -nologo -E"
2308 cat > conftest.$ac_ext <<EOF 2311 cat > conftest.$ac_ext <<EOF
2309 #line 2310 "configure" 2312 #line 2313 "configure"
2310 #include "confdefs.h" 2313 #include "confdefs.h"
2311 #include <assert.h> 2314 #include <assert.h>
2312 Syntax Error 2315 Syntax Error
2313 EOF 2316 EOF
2314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2315 { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2318 { (eval echo configure:2319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2317 if test -z "$ac_err"; then 2320 if test -z "$ac_err"; then
2318 : 2321 :
2319 else 2322 else
2320 echo "$ac_err" >&5 2323 echo "$ac_err" >&5
2336 echo "$ac_t""$CPP" 1>&6 2339 echo "$ac_t""$CPP" 1>&6
2337 2340
2338 2341
2339 2342
2340 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2343 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2341 echo "configure:2342: checking for AIX" >&5 2344 echo "configure:2345: checking for AIX" >&5
2342 cat > conftest.$ac_ext <<EOF 2345 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure" 2346 #line 2347 "configure"
2344 #include "confdefs.h" 2347 #include "confdefs.h"
2345 #ifdef _AIX 2348 #ifdef _AIX
2346 yes 2349 yes
2347 #endif 2350 #endif
2348 2351
2365 rm -f conftest* 2368 rm -f conftest*
2366 2369
2367 2370
2368 2371
2369 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2372 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2370 echo "configure:2371: checking for GNU libc" >&5 2373 echo "configure:2374: checking for GNU libc" >&5
2371 cat > conftest.$ac_ext <<EOF 2374 cat > conftest.$ac_ext <<EOF
2372 #line 2373 "configure" 2375 #line 2376 "configure"
2373 #include "confdefs.h" 2376 #include "confdefs.h"
2374 #include <features.h> 2377 #include <features.h>
2375 int main() { 2378 int main() {
2376 2379
2377 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2380 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2379 ******* ======= ******** &&&&&&&& 2382 ******* ======= ******** &&&&&&&&
2380 #endif 2383 #endif
2381 2384
2382 ; return 0; } 2385 ; return 0; }
2383 EOF 2386 EOF
2384 if { (eval echo configure:2385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2387 if { (eval echo configure:2388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2385 rm -rf conftest* 2388 rm -rf conftest*
2386 have_glibc=yes 2389 have_glibc=yes
2387 else 2390 else
2388 echo "configure: failed program was:" >&5 2391 echo "configure: failed program was:" >&5
2389 cat conftest.$ac_ext >&5 2392 cat conftest.$ac_ext >&5
2456 2459
2457 ;; 2460 ;;
2458 esac 2461 esac
2459 2462
2460 cat > conftest.$ac_ext <<EOF 2463 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure" 2464 #line 2465 "configure"
2462 #include "confdefs.h" 2465 #include "confdefs.h"
2463 int main () { 2466 int main () {
2464 #if defined __SUNPRO_C 2467 #if defined __SUNPRO_C
2465 return 11; 2468 return 11;
2466 #elif defined __DECC 2469 #elif defined __DECC
2470 #else 2473 #else
2471 return 0; 2474 return 0;
2472 #endif 2475 #endif
2473 } 2476 }
2474 EOF 2477 EOF
2475 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2478 if { (eval echo configure:2479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2476 then 2479 then
2477 : 2480 :
2478 else 2481 else
2479 conftest_rc="$?" 2482 conftest_rc="$?"
2480 echo "configure: failed program was:" >&5 2483 echo "configure: failed program was:" >&5
2686 fi 2689 fi
2687 2690
2688 test "$extra_verbose" = "yes" && \ 2691 test "$extra_verbose" = "yes" && \
2689 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 "" 2692 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 ""
2690 2693
2691 case "$opsys" in mingw* | cygwin*) 2694 case "$opsys" in mingw* | cygwin*)
2692 cygwin_include=`eval "gcc -print-file-name=libc.a"` ; 2695 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2693 cygwin_include=`eval "dirname $cygwin_include"` ; 2696 cygwin_include=`eval "dirname $cygwin_include"` ;
2694 cygwin_include="-I$cygwin_include/../include" ; 2697 cygwin_include="-I$cygwin_include/../include" ;
2695 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ; 2698 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ;
2696 case "$opsys" in mingw*) 2699 case "$opsys" in mingw*)
2697 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;; 2700 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2698 esac 2701 esac
2699 ;; 2702 ;;
2700 esac 2703 esac
2701 2704
2702 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc" 2705 test "$ordinary_link" = "no" -a -z "$libs_standard" && libs_standard="-lc"
2703 2706
2704 2707
2705 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2708 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2706 2709
2707 if test "$__USLC__" = yes; then 2710 if test "$__USLC__" = yes; then
2708 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2711 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2709 echo "configure:2710: checking for whether the -Kalloca compiler flag is needed" >&5 2712 echo "configure:2713: checking for whether the -Kalloca compiler flag is needed" >&5
2710 need_kalloca=no 2713 need_kalloca=no
2711 cat > conftest.$ac_ext <<EOF 2714 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure" 2715 #line 2716 "configure"
2713 #include "confdefs.h" 2716 #include "confdefs.h"
2714 2717
2715 int main() { 2718 int main() {
2716 void *x = alloca(4); 2719 void *x = alloca(4);
2717 ; return 0; } 2720 ; return 0; }
2718 EOF 2721 EOF
2719 if { (eval echo configure:2720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2720 rm -rf conftest* 2723 rm -rf conftest*
2721 : 2724 :
2722 else 2725 else
2723 echo "configure: failed program was:" >&5 2726 echo "configure: failed program was:" >&5
2724 cat conftest.$ac_ext >&5 2727 cat conftest.$ac_ext >&5
2725 rm -rf conftest* 2728 rm -rf conftest*
2726 2729
2727 xe_save_c_switch_system="$c_switch_system" 2730 xe_save_c_switch_system="$c_switch_system"
2728 c_switch_system="$c_switch_system -Kalloca" 2731 c_switch_system="$c_switch_system -Kalloca"
2729 cat > conftest.$ac_ext <<EOF 2732 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure" 2733 #line 2734 "configure"
2731 #include "confdefs.h" 2734 #include "confdefs.h"
2732 2735
2733 int main() { 2736 int main() {
2734 void *x = alloca(4); 2737 void *x = alloca(4);
2735 ; return 0; } 2738 ; return 0; }
2736 EOF 2739 EOF
2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2738 rm -rf conftest* 2741 rm -rf conftest*
2739 need_kalloca=yes 2742 need_kalloca=yes
2740 else 2743 else
2741 echo "configure: failed program was:" >&5 2744 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5 2745 cat conftest.$ac_ext >&5
2749 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi 2752 test "$need_kalloca" = "yes" && c_switch_system="$c_switch_system -Kalloca" && if test "$extra_verbose" = "yes"; then echo " Appending \"-Kalloca\" to \$c_switch_system"; fi
2750 fi 2753 fi
2751 2754
2752 if test "$cflags_specified" = "no"; then 2755 if test "$cflags_specified" = "no"; then
2753 if test "$GCC" = "yes"; then 2756 if test "$GCC" = "yes"; then
2754 CFLAGS="-g -O3 -Wall -Wno-switch -Wpointer-arith -Winline -Wmissing-prototypes -Wshadow" 2757 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
2758 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
2755 elif test "$__SUNPRO_C" = "yes"; then 2759 elif test "$__SUNPRO_C" = "yes"; then
2756 case "$opsys" in 2760 case "$opsys" in
2757 sol2 ) CFLAGS="-v -xO4" ;; 2761 sol2 ) CFLAGS="-v -xO4" ;;
2758 sunos4* ) CFLAGS="-xO2";; 2762 sunos4* ) CFLAGS="-xO2";;
2759 esac 2763 esac
2765 CFLAGS="-O" ; fi 2769 CFLAGS="-O" ; fi
2766 fi 2770 fi
2767 2771
2768 if test "$GCC" = "yes"; then 2772 if test "$GCC" = "yes"; then
2769 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2773 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2770 echo "configure:2771: checking for buggy gcc versions" >&5 2774 echo "configure:2775: checking for buggy gcc versions" >&5
2771 GCC_VERSION=`$CC --version` 2775 GCC_VERSION=`$CC --version`
2772 case `uname -s`:`uname -m`:$GCC_VERSION in 2776 case `uname -s`:`uname -m`:$GCC_VERSION in
2773 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2777 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2774 case "$CFLAGS" in 2778 case "$CFLAGS" in
2775 *-O2*|*-O3*) 2779 *-O2*|*-O3*)
2888 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 2892 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2889 echo " xemacs will be linked with \"dumper.o\"" 2893 echo " xemacs will be linked with \"dumper.o\""
2890 fi 2894 fi
2891 2895
2892 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2896 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2893 echo "configure:2894: checking for dynodump" >&5 2897 echo "configure:2898: checking for dynodump" >&5
2894 if test "$unexec" != "unexsol2.o"; then 2898 if test "$unexec" != "unexsol2.o"; then
2895 echo "$ac_t""no" 1>&6 2899 echo "$ac_t""no" 1>&6
2896 else 2900 else
2897 echo "$ac_t""yes" 1>&6 2901 echo "$ac_t""yes" 1>&6
2898 { test "$extra_verbose" = "yes" && cat << \EOF 2902 { test "$extra_verbose" = "yes" && cat << \EOF
2926 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2930 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2927 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2931 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2928 done 2932 done
2929 2933
2930 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2934 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2931 echo "configure:2932: checking for terminateAndUnload in -lC" >&5 2935 echo "configure:2936: checking for terminateAndUnload in -lC" >&5
2932 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2936 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2933 2937
2934 xe_check_libs=" -lC " 2938 xe_check_libs=" -lC "
2935 cat > conftest.$ac_ext <<EOF 2939 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure" 2940 #line 2941 "configure"
2937 #include "confdefs.h" 2941 #include "confdefs.h"
2938 /* Override any gcc2 internal prototype to avoid an error. */ 2942 /* Override any gcc2 internal prototype to avoid an error. */
2939 /* We use char because int might match the return type of a gcc2 2943 /* We use char because int might match the return type of a gcc2
2940 builtin and then its argument prototype would still apply. */ 2944 builtin and then its argument prototype would still apply. */
2941 char terminateAndUnload(); 2945 char terminateAndUnload();
2942 2946
2943 int main() { 2947 int main() {
2944 terminateAndUnload() 2948 terminateAndUnload()
2945 ; return 0; } 2949 ; return 0; }
2946 EOF 2950 EOF
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2951 if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2948 rm -rf conftest* 2952 rm -rf conftest*
2949 eval "ac_cv_lib_$ac_lib_var=yes" 2953 eval "ac_cv_lib_$ac_lib_var=yes"
2950 else 2954 else
2951 echo "configure: failed program was:" >&5 2955 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5 2956 cat conftest.$ac_ext >&5
3050 esac 3054 esac
3051 fi 3055 fi
3052 3056
3053 if test "$add_runtime_path" = "yes"; then 3057 if test "$add_runtime_path" = "yes"; then
3054 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3058 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3055 echo "configure:3056: checking "for runtime libraries flag"" >&5 3059 echo "configure:3060: checking "for runtime libraries flag"" >&5
3056 case "$opsys" in 3060 case "$opsys" in
3057 sol2 ) dash_r="-R" ;; 3061 sol2 ) dash_r="-R" ;;
3058 decosf* | linux* | irix*) dash_r="-rpath " ;; 3062 decosf* | linux* | irix*) dash_r="-rpath " ;;
3059 *) 3063 *)
3060 dash_r="" 3064 dash_r=""
3072 esac 3076 esac
3073 shift 3077 shift
3074 done 3078 done
3075 fi 3079 fi
3076 cat > conftest.$ac_ext <<EOF 3080 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure" 3081 #line 3082 "configure"
3078 #include "confdefs.h" 3082 #include "confdefs.h"
3079 3083
3080 int main() { 3084 int main() {
3081 3085
3082 ; return 0; } 3086 ; return 0; }
3083 EOF 3087 EOF
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 rm -rf conftest* 3089 rm -rf conftest*
3086 dash_r="$try_dash_r" 3090 dash_r="$try_dash_r"
3087 else 3091 else
3088 echo "configure: failed program was:" >&5 3092 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5 3093 cat conftest.$ac_ext >&5
3181 else 3185 else
3182 doug_lea_malloc=no 3186 doug_lea_malloc=no
3183 fi 3187 fi
3184 after_morecore_hook_exists=yes 3188 after_morecore_hook_exists=yes
3185 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3189 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3186 echo "configure:3187: checking for malloc_set_state" >&5 3190 echo "configure:3191: checking for malloc_set_state" >&5
3187 3191
3188 cat > conftest.$ac_ext <<EOF 3192 cat > conftest.$ac_ext <<EOF
3189 #line 3190 "configure" 3193 #line 3194 "configure"
3190 #include "confdefs.h" 3194 #include "confdefs.h"
3191 /* System header to define __stub macros and hopefully few prototypes, 3195 /* System header to define __stub macros and hopefully few prototypes,
3192 which can conflict with char malloc_set_state(); below. */ 3196 which can conflict with char malloc_set_state(); below. */
3193 #include <assert.h> 3197 #include <assert.h>
3194 /* Override any gcc2 internal prototype to avoid an error. */ 3198 /* Override any gcc2 internal prototype to avoid an error. */
3207 malloc_set_state(); 3211 malloc_set_state();
3208 #endif 3212 #endif
3209 3213
3210 ; return 0; } 3214 ; return 0; }
3211 EOF 3215 EOF
3212 if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3216 if { (eval echo configure:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3213 rm -rf conftest* 3217 rm -rf conftest*
3214 eval "ac_cv_func_malloc_set_state=yes" 3218 eval "ac_cv_func_malloc_set_state=yes"
3215 else 3219 else
3216 echo "configure: failed program was:" >&5 3220 echo "configure: failed program was:" >&5
3217 cat conftest.$ac_ext >&5 3221 cat conftest.$ac_ext >&5
3227 echo "$ac_t""no" 1>&6 3231 echo "$ac_t""no" 1>&6
3228 doug_lea_malloc=no 3232 doug_lea_malloc=no
3229 fi 3233 fi
3230 3234
3231 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3235 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3232 echo "configure:3233: checking whether __after_morecore_hook exists" >&5 3236 echo "configure:3237: checking whether __after_morecore_hook exists" >&5
3233 cat > conftest.$ac_ext <<EOF 3237 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure" 3238 #line 3239 "configure"
3235 #include "confdefs.h" 3239 #include "confdefs.h"
3236 extern void (* __after_morecore_hook)(); 3240 extern void (* __after_morecore_hook)();
3237 int main() { 3241 int main() {
3238 __after_morecore_hook = 0 3242 __after_morecore_hook = 0
3239 ; return 0; } 3243 ; return 0; }
3240 EOF 3244 EOF
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3245 if { (eval echo configure:3246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3242 rm -rf conftest* 3246 rm -rf conftest*
3243 echo "$ac_t""yes" 1>&6 3247 echo "$ac_t""yes" 1>&6
3244 else 3248 else
3245 echo "configure: failed program was:" >&5 3249 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5 3250 cat conftest.$ac_ext >&5
3292 3296
3293 3297
3294 # Extract the first word of "ranlib", so it can be a program name with args. 3298 # Extract the first word of "ranlib", so it can be a program name with args.
3295 set dummy ranlib; ac_word=$2 3299 set dummy ranlib; ac_word=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5 3301 echo "configure:3302: checking for $ac_word" >&5
3298 3302
3299 if test -n "$RANLIB"; then 3303 if test -n "$RANLIB"; then
3300 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3304 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3301 else 3305 else
3302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3306 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3350 # ./install, which can be erroneously created by make from ./install.sh. 3354 # ./install, which can be erroneously created by make from ./install.sh.
3351 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3355 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3352 echo "configure:3353: checking for a BSD compatible install" >&5 3356 echo "configure:3357: checking for a BSD compatible install" >&5
3353 if test -z "$INSTALL"; then 3357 if test -z "$INSTALL"; then
3354 3358
3355 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3359 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3356 for ac_dir in $PATH; do 3360 for ac_dir in $PATH; do
3357 # Account for people who put trailing slashes in PATH elements. 3361 # Account for people who put trailing slashes in PATH elements.
3401 for ac_prog in 'bison -y' byacc 3405 for ac_prog in 'bison -y' byacc
3402 do 3406 do
3403 # Extract the first word of "$ac_prog", so it can be a program name with args. 3407 # Extract the first word of "$ac_prog", so it can be a program name with args.
3404 set dummy $ac_prog; ac_word=$2 3408 set dummy $ac_prog; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5 3410 echo "configure:3411: checking for $ac_word" >&5
3407 3411
3408 if test -n "$YACC"; then 3412 if test -n "$YACC"; then
3409 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3413 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3410 else 3414 else
3411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3433 3437
3434 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h 3438 for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libgen.h locale.h mach/mach.h sys/param.h sys/pstat.h sys/time.h sys/timeb.h sys/un.h ulimit.h unistd.h utime.h
3435 do 3439 do
3436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3438 echo "configure:3439: checking for $ac_hdr" >&5 3442 echo "configure:3443: checking for $ac_hdr" >&5
3439 3443
3440 cat > conftest.$ac_ext <<EOF 3444 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure" 3445 #line 3446 "configure"
3442 #include "confdefs.h" 3446 #include "confdefs.h"
3443 #include <$ac_hdr> 3447 #include <$ac_hdr>
3444 EOF 3448 EOF
3445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3446 { (eval echo configure:3447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3450 { (eval echo configure:3451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3448 if test -z "$ac_err"; then 3452 if test -z "$ac_err"; then
3449 rm -rf conftest* 3453 rm -rf conftest*
3450 eval "ac_cv_header_$ac_safe=yes" 3454 eval "ac_cv_header_$ac_safe=yes"
3451 else 3455 else
3471 echo "$ac_t""no" 1>&6 3475 echo "$ac_t""no" 1>&6
3472 fi 3476 fi
3473 done 3477 done
3474 3478
3475 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3479 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3476 echo "configure:3477: checking for sys/wait.h that is POSIX.1 compatible" >&5 3480 echo "configure:3481: checking for sys/wait.h that is POSIX.1 compatible" >&5
3477 3481
3478 cat > conftest.$ac_ext <<EOF 3482 cat > conftest.$ac_ext <<EOF
3479 #line 3480 "configure" 3483 #line 3484 "configure"
3480 #include "confdefs.h" 3484 #include "confdefs.h"
3481 #include <sys/types.h> 3485 #include <sys/types.h>
3482 #include <sys/wait.h> 3486 #include <sys/wait.h>
3483 #ifndef WEXITSTATUS 3487 #ifndef WEXITSTATUS
3484 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3488 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3490 int s; 3494 int s;
3491 wait (&s); 3495 wait (&s);
3492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3496 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3493 ; return 0; } 3497 ; return 0; }
3494 EOF 3498 EOF
3495 if { (eval echo configure:3496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3499 if { (eval echo configure:3500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3496 rm -rf conftest* 3500 rm -rf conftest*
3497 ac_cv_header_sys_wait_h=yes 3501 ac_cv_header_sys_wait_h=yes
3498 else 3502 else
3499 echo "configure: failed program was:" >&5 3503 echo "configure: failed program was:" >&5
3500 cat conftest.$ac_ext >&5 3504 cat conftest.$ac_ext >&5
3514 } 3518 }
3515 3519
3516 fi 3520 fi
3517 3521
3518 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3522 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3519 echo "configure:3520: checking for ANSI C header files" >&5 3523 echo "configure:3524: checking for ANSI C header files" >&5
3520 3524
3521 cat > conftest.$ac_ext <<EOF 3525 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure" 3526 #line 3527 "configure"
3523 #include "confdefs.h" 3527 #include "confdefs.h"
3524 #include <stdlib.h> 3528 #include <stdlib.h>
3525 #include <stdarg.h> 3529 #include <stdarg.h>
3526 #include <string.h> 3530 #include <string.h>
3527 #include <float.h> 3531 #include <float.h>
3528 EOF 3532 EOF
3529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3533 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3530 { (eval echo configure:3531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3534 { (eval echo configure:3535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3535 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3532 if test -z "$ac_err"; then 3536 if test -z "$ac_err"; then
3533 rm -rf conftest* 3537 rm -rf conftest*
3534 ac_cv_header_stdc=yes 3538 ac_cv_header_stdc=yes
3535 else 3539 else
3542 rm -f conftest* 3546 rm -f conftest*
3543 3547
3544 if test $ac_cv_header_stdc = yes; then 3548 if test $ac_cv_header_stdc = yes; then
3545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3549 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3546 cat > conftest.$ac_ext <<EOF 3550 cat > conftest.$ac_ext <<EOF
3547 #line 3548 "configure" 3551 #line 3552 "configure"
3548 #include "confdefs.h" 3552 #include "confdefs.h"
3549 #include <string.h> 3553 #include <string.h>
3550 EOF 3554 EOF
3551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3552 egrep "memchr" >/dev/null 2>&1; then 3556 egrep "memchr" >/dev/null 2>&1; then
3560 fi 3564 fi
3561 3565
3562 if test $ac_cv_header_stdc = yes; then 3566 if test $ac_cv_header_stdc = yes; then
3563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3564 cat > conftest.$ac_ext <<EOF 3568 cat > conftest.$ac_ext <<EOF
3565 #line 3566 "configure" 3569 #line 3570 "configure"
3566 #include "confdefs.h" 3570 #include "confdefs.h"
3567 #include <stdlib.h> 3571 #include <stdlib.h>
3568 EOF 3572 EOF
3569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3570 egrep "free" >/dev/null 2>&1; then 3574 egrep "free" >/dev/null 2>&1; then
3578 fi 3582 fi
3579 3583
3580 if test $ac_cv_header_stdc = yes; then 3584 if test $ac_cv_header_stdc = yes; then
3581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3585 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3582 cat > conftest.$ac_ext <<EOF 3586 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure" 3587 #line 3588 "configure"
3584 #include "confdefs.h" 3588 #include "confdefs.h"
3585 #include <ctype.h> 3589 #include <ctype.h>
3586 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3590 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3587 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3591 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3588 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3589 int main () { int i; for (i = 0; i < 256; i++) 3593 int main () { int i; for (i = 0; i < 256; i++)
3590 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3594 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3591 exit (0); } 3595 exit (0); }
3592 3596
3593 EOF 3597 EOF
3594 if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3598 if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3595 then 3599 then
3596 : 3600 :
3597 else 3601 else
3598 conftest_rc="$?" 3602 conftest_rc="$?"
3599 echo "configure: failed program was:" >&5 3603 echo "configure: failed program was:" >&5
3615 } 3619 }
3616 3620
3617 fi 3621 fi
3618 3622
3619 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3623 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3620 echo "configure:3621: checking whether time.h and sys/time.h may both be included" >&5 3624 echo "configure:3625: checking whether time.h and sys/time.h may both be included" >&5
3621 3625
3622 cat > conftest.$ac_ext <<EOF 3626 cat > conftest.$ac_ext <<EOF
3623 #line 3624 "configure" 3627 #line 3628 "configure"
3624 #include "confdefs.h" 3628 #include "confdefs.h"
3625 #include <sys/types.h> 3629 #include <sys/types.h>
3626 #include <sys/time.h> 3630 #include <sys/time.h>
3627 #include <time.h> 3631 #include <time.h>
3628 int main() { 3632 int main() {
3629 struct tm *tp; 3633 struct tm *tp;
3630 ; return 0; } 3634 ; return 0; }
3631 EOF 3635 EOF
3632 if { (eval echo configure:3633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3636 if { (eval echo configure:3637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3633 rm -rf conftest* 3637 rm -rf conftest*
3634 ac_cv_header_time=yes 3638 ac_cv_header_time=yes
3635 else 3639 else
3636 echo "configure: failed program was:" >&5 3640 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5 3641 cat conftest.$ac_ext >&5
3651 } 3655 }
3652 3656
3653 fi 3657 fi
3654 3658
3655 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3659 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3656 echo "configure:3657: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3660 echo "configure:3661: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3657 3661
3658 cat > conftest.$ac_ext <<EOF 3662 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure" 3663 #line 3664 "configure"
3660 #include "confdefs.h" 3664 #include "confdefs.h"
3661 #include <sys/types.h> 3665 #include <sys/types.h>
3662 #include <signal.h> 3666 #include <signal.h>
3663 /* NetBSD declares sys_siglist in unistd.h. */ 3667 /* NetBSD declares sys_siglist in unistd.h. */
3664 #ifdef HAVE_UNISTD_H 3668 #ifdef HAVE_UNISTD_H
3666 #endif 3670 #endif
3667 int main() { 3671 int main() {
3668 char *msg = *(sys_siglist + 1); 3672 char *msg = *(sys_siglist + 1);
3669 ; return 0; } 3673 ; return 0; }
3670 EOF 3674 EOF
3671 if { (eval echo configure:3672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3675 if { (eval echo configure:3676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3672 rm -rf conftest* 3676 rm -rf conftest*
3673 ac_cv_decl_sys_siglist=yes 3677 ac_cv_decl_sys_siglist=yes
3674 else 3678 else
3675 echo "configure: failed program was:" >&5 3679 echo "configure: failed program was:" >&5
3676 cat conftest.$ac_ext >&5 3680 cat conftest.$ac_ext >&5
3691 3695
3692 fi 3696 fi
3693 3697
3694 3698
3695 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3699 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3696 echo "configure:3697: checking for struct utimbuf" >&5 3700 echo "configure:3701: checking for struct utimbuf" >&5
3697 cat > conftest.$ac_ext <<EOF 3701 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure" 3702 #line 3703 "configure"
3699 #include "confdefs.h" 3703 #include "confdefs.h"
3700 #ifdef TIME_WITH_SYS_TIME 3704 #ifdef TIME_WITH_SYS_TIME
3701 #include <sys/time.h> 3705 #include <sys/time.h>
3702 #include <time.h> 3706 #include <time.h>
3703 #else 3707 #else
3712 #endif 3716 #endif
3713 int main() { 3717 int main() {
3714 static struct utimbuf x; x.actime = x.modtime; 3718 static struct utimbuf x; x.actime = x.modtime;
3715 ; return 0; } 3719 ; return 0; }
3716 EOF 3720 EOF
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3721 if { (eval echo configure:3722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3718 rm -rf conftest* 3722 rm -rf conftest*
3719 echo "$ac_t""yes" 1>&6 3723 echo "$ac_t""yes" 1>&6
3720 { test "$extra_verbose" = "yes" && cat << \EOF 3724 { test "$extra_verbose" = "yes" && cat << \EOF
3721 Defining HAVE_STRUCT_UTIMBUF 3725 Defining HAVE_STRUCT_UTIMBUF
3722 EOF 3726 EOF
3732 echo "$ac_t""no" 1>&6 3736 echo "$ac_t""no" 1>&6
3733 fi 3737 fi
3734 rm -f conftest* 3738 rm -f conftest*
3735 3739
3736 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3740 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3737 echo "configure:3738: checking return type of signal handlers" >&5 3741 echo "configure:3742: checking return type of signal handlers" >&5
3738 3742
3739 cat > conftest.$ac_ext <<EOF 3743 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure" 3744 #line 3745 "configure"
3741 #include "confdefs.h" 3745 #include "confdefs.h"
3742 #include <sys/types.h> 3746 #include <sys/types.h>
3743 #include <signal.h> 3747 #include <signal.h>
3744 #ifdef signal 3748 #ifdef signal
3745 #undef signal 3749 #undef signal
3752 3756
3753 int main() { 3757 int main() {
3754 int i; 3758 int i;
3755 ; return 0; } 3759 ; return 0; }
3756 EOF 3760 EOF
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3761 if { (eval echo configure:3762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3758 rm -rf conftest* 3762 rm -rf conftest*
3759 ac_cv_type_signal=void 3763 ac_cv_type_signal=void
3760 else 3764 else
3761 echo "configure: failed program was:" >&5 3765 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5 3766 cat conftest.$ac_ext >&5
3774 EOF 3778 EOF
3775 } 3779 }
3776 3780
3777 3781
3778 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3782 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3779 echo "configure:3780: checking for size_t" >&5 3783 echo "configure:3784: checking for size_t" >&5
3780 3784
3781 cat > conftest.$ac_ext <<EOF 3785 cat > conftest.$ac_ext <<EOF
3782 #line 3783 "configure" 3786 #line 3787 "configure"
3783 #include "confdefs.h" 3787 #include "confdefs.h"
3784 #include <sys/types.h> 3788 #include <sys/types.h>
3785 #if STDC_HEADERS 3789 #if STDC_HEADERS
3786 #include <stdlib.h> 3790 #include <stdlib.h>
3787 #include <stddef.h> 3791 #include <stddef.h>
3808 } 3812 }
3809 3813
3810 fi 3814 fi
3811 3815
3812 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3816 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3813 echo "configure:3814: checking for pid_t" >&5 3817 echo "configure:3818: checking for pid_t" >&5
3814 3818
3815 cat > conftest.$ac_ext <<EOF 3819 cat > conftest.$ac_ext <<EOF
3816 #line 3817 "configure" 3820 #line 3821 "configure"
3817 #include "confdefs.h" 3821 #include "confdefs.h"
3818 #include <sys/types.h> 3822 #include <sys/types.h>
3819 #if STDC_HEADERS 3823 #if STDC_HEADERS
3820 #include <stdlib.h> 3824 #include <stdlib.h>
3821 #include <stddef.h> 3825 #include <stddef.h>
3842 } 3846 }
3843 3847
3844 fi 3848 fi
3845 3849
3846 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3850 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3847 echo "configure:3848: checking for uid_t in sys/types.h" >&5 3851 echo "configure:3852: checking for uid_t in sys/types.h" >&5
3848 3852
3849 cat > conftest.$ac_ext <<EOF 3853 cat > conftest.$ac_ext <<EOF
3850 #line 3851 "configure" 3854 #line 3855 "configure"
3851 #include "confdefs.h" 3855 #include "confdefs.h"
3852 #include <sys/types.h> 3856 #include <sys/types.h>
3853 EOF 3857 EOF
3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855 egrep "uid_t" >/dev/null 2>&1; then 3859 egrep "uid_t" >/dev/null 2>&1; then
3881 } 3885 }
3882 3886
3883 fi 3887 fi
3884 3888
3885 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3889 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3886 echo "configure:3887: checking for mode_t" >&5 3890 echo "configure:3891: checking for mode_t" >&5
3887 3891
3888 cat > conftest.$ac_ext <<EOF 3892 cat > conftest.$ac_ext <<EOF
3889 #line 3890 "configure" 3893 #line 3894 "configure"
3890 #include "confdefs.h" 3894 #include "confdefs.h"
3891 #include <sys/types.h> 3895 #include <sys/types.h>
3892 #if STDC_HEADERS 3896 #if STDC_HEADERS
3893 #include <stdlib.h> 3897 #include <stdlib.h>
3894 #include <stddef.h> 3898 #include <stddef.h>
3915 } 3919 }
3916 3920
3917 fi 3921 fi
3918 3922
3919 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3923 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3920 echo "configure:3921: checking for off_t" >&5 3924 echo "configure:3925: checking for off_t" >&5
3921 3925
3922 cat > conftest.$ac_ext <<EOF 3926 cat > conftest.$ac_ext <<EOF
3923 #line 3924 "configure" 3927 #line 3928 "configure"
3924 #include "confdefs.h" 3928 #include "confdefs.h"
3925 #include <sys/types.h> 3929 #include <sys/types.h>
3926 #if STDC_HEADERS 3930 #if STDC_HEADERS
3927 #include <stdlib.h> 3931 #include <stdlib.h>
3928 #include <stddef.h> 3932 #include <stddef.h>
3949 } 3953 }
3950 3954
3951 fi 3955 fi
3952 3956
3953 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 3957 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
3954 echo "configure:3955: checking for ssize_t" >&5 3958 echo "configure:3959: checking for ssize_t" >&5
3955 3959
3956 cat > conftest.$ac_ext <<EOF 3960 cat > conftest.$ac_ext <<EOF
3957 #line 3958 "configure" 3961 #line 3962 "configure"
3958 #include "confdefs.h" 3962 #include "confdefs.h"
3959 #include <sys/types.h> 3963 #include <sys/types.h>
3960 #if STDC_HEADERS 3964 #if STDC_HEADERS
3961 #include <stdlib.h> 3965 #include <stdlib.h>
3962 #include <stddef.h> 3966 #include <stddef.h>
3984 3988
3985 fi 3989 fi
3986 3990
3987 3991
3988 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 3992 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3989 echo "configure:3990: checking for socklen_t" >&5 3993 echo "configure:3994: checking for socklen_t" >&5
3990 cat > conftest.$ac_ext <<EOF 3994 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure" 3995 #line 3996 "configure"
3992 #include "confdefs.h" 3996 #include "confdefs.h"
3993 #include <sys/socket.h> 3997 #include <sys/socket.h>
3994 socklen_t x; 3998 socklen_t x;
3995 3999
3996 int main() { 4000 int main() {
3997 4001
3998 ; return 0; } 4002 ; return 0; }
3999 EOF 4003 EOF
4000 if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4001 rm -rf conftest* 4005 rm -rf conftest*
4002 echo "$ac_t""yes" 1>&6 4006 echo "$ac_t""yes" 1>&6
4003 else 4007 else
4004 echo "configure: failed program was:" >&5 4008 echo "configure: failed program was:" >&5
4005 cat conftest.$ac_ext >&5 4009 cat conftest.$ac_ext >&5
4006 rm -rf conftest* 4010 rm -rf conftest*
4007 4011
4008 cat > conftest.$ac_ext <<EOF 4012 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure" 4013 #line 4014 "configure"
4010 #include "confdefs.h" 4014 #include "confdefs.h"
4011 #include <sys/socket.h> 4015 #include <sys/socket.h>
4012 int accept (int, struct sockaddr *, size_t *); 4016 int accept (int, struct sockaddr *, size_t *);
4013 4017
4014 int main() { 4018 int main() {
4015 4019
4016 ; return 0; } 4020 ; return 0; }
4017 EOF 4021 EOF
4018 if { (eval echo configure:4019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4019 rm -rf conftest* 4023 rm -rf conftest*
4020 4024
4021 echo "$ac_t""size_t" 1>&6 4025 echo "$ac_t""size_t" 1>&6
4022 { test "$extra_verbose" = "yes" && cat << \EOF 4026 { test "$extra_verbose" = "yes" && cat << \EOF
4023 Defining socklen_t = size_t 4027 Defining socklen_t = size_t
4045 rm -f conftest* 4049 rm -f conftest*
4046 fi 4050 fi
4047 rm -f conftest* 4051 rm -f conftest*
4048 4052
4049 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4053 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4050 echo "configure:4051: checking for struct timeval" >&5 4054 echo "configure:4055: checking for struct timeval" >&5
4051 cat > conftest.$ac_ext <<EOF 4055 cat > conftest.$ac_ext <<EOF
4052 #line 4053 "configure" 4056 #line 4057 "configure"
4053 #include "confdefs.h" 4057 #include "confdefs.h"
4054 #ifdef TIME_WITH_SYS_TIME 4058 #ifdef TIME_WITH_SYS_TIME
4055 #include <sys/time.h> 4059 #include <sys/time.h>
4056 #include <time.h> 4060 #include <time.h>
4057 #else 4061 #else
4063 #endif 4067 #endif
4064 int main() { 4068 int main() {
4065 static struct timeval x; x.tv_sec = x.tv_usec; 4069 static struct timeval x; x.tv_sec = x.tv_usec;
4066 ; return 0; } 4070 ; return 0; }
4067 EOF 4071 EOF
4068 if { (eval echo configure:4069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 rm -rf conftest* 4073 rm -rf conftest*
4070 echo "$ac_t""yes" 1>&6 4074 echo "$ac_t""yes" 1>&6
4071 HAVE_TIMEVAL=yes 4075 HAVE_TIMEVAL=yes
4072 { test "$extra_verbose" = "yes" && cat << \EOF 4076 { test "$extra_verbose" = "yes" && cat << \EOF
4073 Defining HAVE_TIMEVAL 4077 Defining HAVE_TIMEVAL
4085 HAVE_TIMEVAL=no 4089 HAVE_TIMEVAL=no
4086 fi 4090 fi
4087 rm -f conftest* 4091 rm -f conftest*
4088 4092
4089 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4093 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4090 echo "configure:4091: checking whether struct tm is in sys/time.h or time.h" >&5 4094 echo "configure:4095: checking whether struct tm is in sys/time.h or time.h" >&5
4091 4095
4092 cat > conftest.$ac_ext <<EOF 4096 cat > conftest.$ac_ext <<EOF
4093 #line 4094 "configure" 4097 #line 4098 "configure"
4094 #include "confdefs.h" 4098 #include "confdefs.h"
4095 #include <sys/types.h> 4099 #include <sys/types.h>
4096 #include <time.h> 4100 #include <time.h>
4097 int main() { 4101 int main() {
4098 struct tm *tp; tp->tm_sec; 4102 struct tm *tp; tp->tm_sec;
4099 ; return 0; } 4103 ; return 0; }
4100 EOF 4104 EOF
4101 if { (eval echo configure:4102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4105 if { (eval echo configure:4106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4102 rm -rf conftest* 4106 rm -rf conftest*
4103 ac_cv_struct_tm=time.h 4107 ac_cv_struct_tm=time.h
4104 else 4108 else
4105 echo "configure: failed program was:" >&5 4109 echo "configure: failed program was:" >&5
4106 cat conftest.$ac_ext >&5 4110 cat conftest.$ac_ext >&5
4120 } 4124 }
4121 4125
4122 fi 4126 fi
4123 4127
4124 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4128 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4125 echo "configure:4126: checking for tm_zone in struct tm" >&5 4129 echo "configure:4130: checking for tm_zone in struct tm" >&5
4126 4130
4127 cat > conftest.$ac_ext <<EOF 4131 cat > conftest.$ac_ext <<EOF
4128 #line 4129 "configure" 4132 #line 4133 "configure"
4129 #include "confdefs.h" 4133 #include "confdefs.h"
4130 #include <sys/types.h> 4134 #include <sys/types.h>
4131 #include <$ac_cv_struct_tm> 4135 #include <$ac_cv_struct_tm>
4132 int main() { 4136 int main() {
4133 struct tm tm; tm.tm_zone; 4137 struct tm tm; tm.tm_zone;
4134 ; return 0; } 4138 ; return 0; }
4135 EOF 4139 EOF
4136 if { (eval echo configure:4137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4140 if { (eval echo configure:4141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4137 rm -rf conftest* 4141 rm -rf conftest*
4138 ac_cv_struct_tm_zone=yes 4142 ac_cv_struct_tm_zone=yes
4139 else 4143 else
4140 echo "configure: failed program was:" >&5 4144 echo "configure: failed program was:" >&5
4141 cat conftest.$ac_ext >&5 4145 cat conftest.$ac_ext >&5
4154 EOF 4158 EOF
4155 } 4159 }
4156 4160
4157 else 4161 else
4158 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4162 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4159 echo "configure:4160: checking for tzname" >&5 4163 echo "configure:4164: checking for tzname" >&5
4160 4164
4161 cat > conftest.$ac_ext <<EOF 4165 cat > conftest.$ac_ext <<EOF
4162 #line 4163 "configure" 4166 #line 4167 "configure"
4163 #include "confdefs.h" 4167 #include "confdefs.h"
4164 #include <time.h> 4168 #include <time.h>
4165 #ifndef tzname /* For SGI. */ 4169 #ifndef tzname /* For SGI. */
4166 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4170 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4167 #endif 4171 #endif
4168 int main() { 4172 int main() {
4169 atoi(*tzname); 4173 atoi(*tzname);
4170 ; return 0; } 4174 ; return 0; }
4171 EOF 4175 EOF
4172 if { (eval echo configure:4173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4176 if { (eval echo configure:4177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4173 rm -rf conftest* 4177 rm -rf conftest*
4174 ac_cv_var_tzname=yes 4178 ac_cv_var_tzname=yes
4175 else 4179 else
4176 echo "configure: failed program was:" >&5 4180 echo "configure: failed program was:" >&5
4177 cat conftest.$ac_ext >&5 4181 cat conftest.$ac_ext >&5
4193 fi 4197 fi
4194 fi 4198 fi
4195 4199
4196 4200
4197 echo $ac_n "checking for working const""... $ac_c" 1>&6 4201 echo $ac_n "checking for working const""... $ac_c" 1>&6
4198 echo "configure:4199: checking for working const" >&5 4202 echo "configure:4203: checking for working const" >&5
4199 4203
4200 cat > conftest.$ac_ext <<EOF 4204 cat > conftest.$ac_ext <<EOF
4201 #line 4202 "configure" 4205 #line 4206 "configure"
4202 #include "confdefs.h" 4206 #include "confdefs.h"
4203 4207
4204 int main() { 4208 int main() {
4205 4209
4206 /* Ultrix mips cc rejects this. */ 4210 /* Ultrix mips cc rejects this. */
4245 const int foo = 10; 4249 const int foo = 10;
4246 } 4250 }
4247 4251
4248 ; return 0; } 4252 ; return 0; }
4249 EOF 4253 EOF
4250 if { (eval echo configure:4251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4254 if { (eval echo configure:4255: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4251 rm -rf conftest* 4255 rm -rf conftest*
4252 ac_cv_c_const=yes 4256 ac_cv_c_const=yes
4253 else 4257 else
4254 echo "configure: failed program was:" >&5 4258 echo "configure: failed program was:" >&5
4255 cat conftest.$ac_ext >&5 4259 cat conftest.$ac_ext >&5
4270 4274
4271 fi 4275 fi
4272 4276
4273 4277
4274 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4278 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4275 echo "configure:4276: checking whether ${MAKE-make} sets \${MAKE}" >&5 4279 echo "configure:4280: checking whether ${MAKE-make} sets \${MAKE}" >&5
4276 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4280 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4277 4281
4278 cat > conftestmake <<\EOF 4282 cat > conftestmake <<\EOF
4279 all: 4283 all:
4280 @echo 'ac_maketemp="${MAKE}"' 4284 @echo 'ac_maketemp="${MAKE}"'
4295 SET_MAKE="MAKE=${MAKE-make}" 4299 SET_MAKE="MAKE=${MAKE-make}"
4296 fi 4300 fi
4297 4301
4298 4302
4299 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4303 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4300 echo "configure:4301: checking whether byte ordering is bigendian" >&5 4304 echo "configure:4305: checking whether byte ordering is bigendian" >&5
4301 4305
4302 ac_cv_c_bigendian=unknown 4306 ac_cv_c_bigendian=unknown
4303 # See if sys/param.h defines the BYTE_ORDER macro. 4307 # See if sys/param.h defines the BYTE_ORDER macro.
4304 cat > conftest.$ac_ext <<EOF 4308 cat > conftest.$ac_ext <<EOF
4305 #line 4306 "configure" 4309 #line 4310 "configure"
4306 #include "confdefs.h" 4310 #include "confdefs.h"
4307 #include <sys/types.h> 4311 #include <sys/types.h>
4308 #include <sys/param.h> 4312 #include <sys/param.h>
4309 int main() { 4313 int main() {
4310 4314
4311 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4315 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4312 bogus endian macros 4316 bogus endian macros
4313 #endif 4317 #endif
4314 ; return 0; } 4318 ; return 0; }
4315 EOF 4319 EOF
4316 if { (eval echo configure:4317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4320 if { (eval echo configure:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4317 rm -rf conftest* 4321 rm -rf conftest*
4318 # It does; now see whether it defined to BIG_ENDIAN or not. 4322 # It does; now see whether it defined to BIG_ENDIAN or not.
4319 cat > conftest.$ac_ext <<EOF 4323 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure" 4324 #line 4325 "configure"
4321 #include "confdefs.h" 4325 #include "confdefs.h"
4322 #include <sys/types.h> 4326 #include <sys/types.h>
4323 #include <sys/param.h> 4327 #include <sys/param.h>
4324 int main() { 4328 int main() {
4325 4329
4326 #if BYTE_ORDER != BIG_ENDIAN 4330 #if BYTE_ORDER != BIG_ENDIAN
4327 not big endian 4331 not big endian
4328 #endif 4332 #endif
4329 ; return 0; } 4333 ; return 0; }
4330 EOF 4334 EOF
4331 if { (eval echo configure:4332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4335 if { (eval echo configure:4336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4332 rm -rf conftest* 4336 rm -rf conftest*
4333 ac_cv_c_bigendian=yes 4337 ac_cv_c_bigendian=yes
4334 else 4338 else
4335 echo "configure: failed program was:" >&5 4339 echo "configure: failed program was:" >&5
4336 cat conftest.$ac_ext >&5 4340 cat conftest.$ac_ext >&5
4343 cat conftest.$ac_ext >&5 4347 cat conftest.$ac_ext >&5
4344 fi 4348 fi
4345 rm -f conftest* 4349 rm -f conftest*
4346 if test $ac_cv_c_bigendian = unknown; then 4350 if test $ac_cv_c_bigendian = unknown; then
4347 cat > conftest.$ac_ext <<EOF 4351 cat > conftest.$ac_ext <<EOF
4348 #line 4349 "configure" 4352 #line 4353 "configure"
4349 #include "confdefs.h" 4353 #include "confdefs.h"
4350 main () { 4354 main () {
4351 /* Are we little or big endian? From Harbison&Steele. */ 4355 /* Are we little or big endian? From Harbison&Steele. */
4352 union 4356 union
4353 { 4357 {
4356 } u; 4360 } u;
4357 u.l = 1; 4361 u.l = 1;
4358 exit (u.c[sizeof (long) - 1] == 1); 4362 exit (u.c[sizeof (long) - 1] == 1);
4359 } 4363 }
4360 EOF 4364 EOF
4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4365 if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4362 then 4366 then
4363 ac_cv_c_bigendian=no 4367 ac_cv_c_bigendian=no
4364 else 4368 else
4365 conftest_rc="$?" 4369 conftest_rc="$?"
4366 echo "configure: failed program was:" >&5 4370 echo "configure: failed program was:" >&5
4383 4387
4384 fi 4388 fi
4385 4389
4386 4390
4387 echo $ac_n "checking size of short""... $ac_c" 1>&6 4391 echo $ac_n "checking size of short""... $ac_c" 1>&6
4388 echo "configure:4389: checking size of short" >&5 4392 echo "configure:4393: checking size of short" >&5
4389 4393
4390 cat > conftest.$ac_ext <<EOF 4394 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure" 4395 #line 4396 "configure"
4392 #include "confdefs.h" 4396 #include "confdefs.h"
4393 #include <stdio.h> 4397 #include <stdio.h>
4394 main() 4398 main()
4395 { 4399 {
4396 FILE *f=fopen("conftestval", "w"); 4400 FILE *f=fopen("conftestval", "w");
4397 if (!f) exit(1); 4401 if (!f) exit(1);
4398 fprintf(f, "%d\n", sizeof(short)); 4402 fprintf(f, "%d\n", sizeof(short));
4399 exit(0); 4403 exit(0);
4400 } 4404 }
4401 EOF 4405 EOF
4402 if { (eval echo configure:4403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4406 if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4403 then 4407 then
4404 ac_cv_sizeof_short=`cat conftestval` 4408 ac_cv_sizeof_short=`cat conftestval`
4405 else 4409 else
4406 conftest_rc="$?" 4410 conftest_rc="$?"
4407 echo "configure: failed program was:" >&5 4411 echo "configure: failed program was:" >&5
4425 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4429 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4426 echo "*** PANIC *** Please examine config.log for compilation errors." 4430 echo "*** PANIC *** Please examine config.log for compilation errors."
4427 exit 1 4431 exit 1
4428 fi 4432 fi
4429 echo $ac_n "checking size of int""... $ac_c" 1>&6 4433 echo $ac_n "checking size of int""... $ac_c" 1>&6
4430 echo "configure:4431: checking size of int" >&5 4434 echo "configure:4435: checking size of int" >&5
4431 4435
4432 cat > conftest.$ac_ext <<EOF 4436 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure" 4437 #line 4438 "configure"
4434 #include "confdefs.h" 4438 #include "confdefs.h"
4435 #include <stdio.h> 4439 #include <stdio.h>
4436 main() 4440 main()
4437 { 4441 {
4438 FILE *f=fopen("conftestval", "w"); 4442 FILE *f=fopen("conftestval", "w");
4439 if (!f) exit(1); 4443 if (!f) exit(1);
4440 fprintf(f, "%d\n", sizeof(int)); 4444 fprintf(f, "%d\n", sizeof(int));
4441 exit(0); 4445 exit(0);
4442 } 4446 }
4443 EOF 4447 EOF
4444 if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4445 then 4449 then
4446 ac_cv_sizeof_int=`cat conftestval` 4450 ac_cv_sizeof_int=`cat conftestval`
4447 else 4451 else
4448 conftest_rc="$?" 4452 conftest_rc="$?"
4449 echo "configure: failed program was:" >&5 4453 echo "configure: failed program was:" >&5
4461 EOF 4465 EOF
4462 } 4466 }
4463 4467
4464 4468
4465 echo $ac_n "checking size of long""... $ac_c" 1>&6 4469 echo $ac_n "checking size of long""... $ac_c" 1>&6
4466 echo "configure:4467: checking size of long" >&5 4470 echo "configure:4471: checking size of long" >&5
4467 4471
4468 cat > conftest.$ac_ext <<EOF 4472 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure" 4473 #line 4474 "configure"
4470 #include "confdefs.h" 4474 #include "confdefs.h"
4471 #include <stdio.h> 4475 #include <stdio.h>
4472 main() 4476 main()
4473 { 4477 {
4474 FILE *f=fopen("conftestval", "w"); 4478 FILE *f=fopen("conftestval", "w");
4475 if (!f) exit(1); 4479 if (!f) exit(1);
4476 fprintf(f, "%d\n", sizeof(long)); 4480 fprintf(f, "%d\n", sizeof(long));
4477 exit(0); 4481 exit(0);
4478 } 4482 }
4479 EOF 4483 EOF
4480 if { (eval echo configure:4481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4481 then 4485 then
4482 ac_cv_sizeof_long=`cat conftestval` 4486 ac_cv_sizeof_long=`cat conftestval`
4483 else 4487 else
4484 conftest_rc="$?" 4488 conftest_rc="$?"
4485 echo "configure: failed program was:" >&5 4489 echo "configure: failed program was:" >&5
4497 EOF 4501 EOF
4498 } 4502 }
4499 4503
4500 4504
4501 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4505 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4502 echo "configure:4503: checking size of long long" >&5 4506 echo "configure:4507: checking size of long long" >&5
4503 4507
4504 cat > conftest.$ac_ext <<EOF 4508 cat > conftest.$ac_ext <<EOF
4505 #line 4506 "configure" 4509 #line 4510 "configure"
4506 #include "confdefs.h" 4510 #include "confdefs.h"
4507 #include <stdio.h> 4511 #include <stdio.h>
4508 main() 4512 main()
4509 { 4513 {
4510 FILE *f=fopen("conftestval", "w"); 4514 FILE *f=fopen("conftestval", "w");
4511 if (!f) exit(1); 4515 if (!f) exit(1);
4512 fprintf(f, "%d\n", sizeof(long long)); 4516 fprintf(f, "%d\n", sizeof(long long));
4513 exit(0); 4517 exit(0);
4514 } 4518 }
4515 EOF 4519 EOF
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4520 if { (eval echo configure:4521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4517 then 4521 then
4518 ac_cv_sizeof_long_long=`cat conftestval` 4522 ac_cv_sizeof_long_long=`cat conftestval`
4519 else 4523 else
4520 conftest_rc="$?" 4524 conftest_rc="$?"
4521 echo "configure: failed program was:" >&5 4525 echo "configure: failed program was:" >&5
4533 EOF 4537 EOF
4534 } 4538 }
4535 4539
4536 4540
4537 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4541 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4538 echo "configure:4539: checking size of void *" >&5 4542 echo "configure:4543: checking size of void *" >&5
4539 4543
4540 cat > conftest.$ac_ext <<EOF 4544 cat > conftest.$ac_ext <<EOF
4541 #line 4542 "configure" 4545 #line 4546 "configure"
4542 #include "confdefs.h" 4546 #include "confdefs.h"
4543 #include <stdio.h> 4547 #include <stdio.h>
4544 main() 4548 main()
4545 { 4549 {
4546 FILE *f=fopen("conftestval", "w"); 4550 FILE *f=fopen("conftestval", "w");
4547 if (!f) exit(1); 4551 if (!f) exit(1);
4548 fprintf(f, "%d\n", sizeof(void *)); 4552 fprintf(f, "%d\n", sizeof(void *));
4549 exit(0); 4553 exit(0);
4550 } 4554 }
4551 EOF 4555 EOF
4552 if { (eval echo configure:4553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4556 if { (eval echo configure:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4553 then 4557 then
4554 ac_cv_sizeof_void_p=`cat conftestval` 4558 ac_cv_sizeof_void_p=`cat conftestval`
4555 else 4559 else
4556 conftest_rc="$?" 4560 conftest_rc="$?"
4557 echo "configure: failed program was:" >&5 4561 echo "configure: failed program was:" >&5
4570 } 4574 }
4571 4575
4572 4576
4573 4577
4574 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4578 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4575 echo "configure:4576: checking for long file names" >&5 4579 echo "configure:4580: checking for long file names" >&5
4576 4580
4577 ac_cv_sys_long_file_names=yes 4581 ac_cv_sys_long_file_names=yes
4578 # Test for long file names in all the places we know might matter: 4582 # Test for long file names in all the places we know might matter:
4579 # . the current directory, where building will happen 4583 # . the current directory, where building will happen
4580 # $prefix/lib where we will be installing things 4584 # $prefix/lib where we will be installing things
4616 4620
4617 fi 4621 fi
4618 4622
4619 4623
4620 echo $ac_n "checking for sin""... $ac_c" 1>&6 4624 echo $ac_n "checking for sin""... $ac_c" 1>&6
4621 echo "configure:4622: checking for sin" >&5 4625 echo "configure:4626: checking for sin" >&5
4622 4626
4623 cat > conftest.$ac_ext <<EOF 4627 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure" 4628 #line 4629 "configure"
4625 #include "confdefs.h" 4629 #include "confdefs.h"
4626 /* System header to define __stub macros and hopefully few prototypes, 4630 /* System header to define __stub macros and hopefully few prototypes,
4627 which can conflict with char sin(); below. */ 4631 which can conflict with char sin(); below. */
4628 #include <assert.h> 4632 #include <assert.h>
4629 /* Override any gcc2 internal prototype to avoid an error. */ 4633 /* Override any gcc2 internal prototype to avoid an error. */
4642 sin(); 4646 sin();
4643 #endif 4647 #endif
4644 4648
4645 ; return 0; } 4649 ; return 0; }
4646 EOF 4650 EOF
4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648 rm -rf conftest* 4652 rm -rf conftest*
4649 eval "ac_cv_func_sin=yes" 4653 eval "ac_cv_func_sin=yes"
4650 else 4654 else
4651 echo "configure: failed program was:" >&5 4655 echo "configure: failed program was:" >&5
4652 cat conftest.$ac_ext >&5 4656 cat conftest.$ac_ext >&5
4660 : 4664 :
4661 else 4665 else
4662 echo "$ac_t""no" 1>&6 4666 echo "$ac_t""no" 1>&6
4663 4667
4664 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4668 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4665 echo "configure:4666: checking for sin in -lm" >&5 4669 echo "configure:4670: checking for sin in -lm" >&5
4666 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4670 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4667 4671
4668 xe_check_libs=" -lm " 4672 xe_check_libs=" -lm "
4669 cat > conftest.$ac_ext <<EOF 4673 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure" 4674 #line 4675 "configure"
4671 #include "confdefs.h" 4675 #include "confdefs.h"
4672 /* Override any gcc2 internal prototype to avoid an error. */ 4676 /* Override any gcc2 internal prototype to avoid an error. */
4673 /* We use char because int might match the return type of a gcc2 4677 /* We use char because int might match the return type of a gcc2
4674 builtin and then its argument prototype would still apply. */ 4678 builtin and then its argument prototype would still apply. */
4675 char sin(); 4679 char sin();
4676 4680
4677 int main() { 4681 int main() {
4678 sin() 4682 sin()
4679 ; return 0; } 4683 ; return 0; }
4680 EOF 4684 EOF
4681 if { (eval echo configure:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4682 rm -rf conftest* 4686 rm -rf conftest*
4683 eval "ac_cv_lib_$ac_lib_var=yes" 4687 eval "ac_cv_lib_$ac_lib_var=yes"
4684 else 4688 else
4685 echo "configure: failed program was:" >&5 4689 echo "configure: failed program was:" >&5
4686 cat conftest.$ac_ext >&5 4690 cat conftest.$ac_ext >&5
4720 EOF 4724 EOF
4721 } 4725 }
4722 4726
4723 4727
4724 cat > conftest.$ac_ext <<EOF 4728 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure" 4729 #line 4730 "configure"
4726 #include "confdefs.h" 4730 #include "confdefs.h"
4727 #include <math.h> 4731 #include <math.h>
4728 int main() { 4732 int main() {
4729 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4733 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4730 ; return 0; } 4734 ; return 0; }
4731 EOF 4735 EOF
4732 if { (eval echo configure:4733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 rm -rf conftest* 4737 rm -rf conftest*
4734 { test "$extra_verbose" = "yes" && cat << \EOF 4738 { test "$extra_verbose" = "yes" && cat << \EOF
4735 Defining HAVE_INVERSE_HYPERBOLIC 4739 Defining HAVE_INVERSE_HYPERBOLIC
4736 EOF 4740 EOF
4737 cat >> confdefs.h <<\EOF 4741 cat >> confdefs.h <<\EOF
4744 cat conftest.$ac_ext >&5 4748 cat conftest.$ac_ext >&5
4745 fi 4749 fi
4746 rm -f conftest* 4750 rm -f conftest*
4747 4751
4748 echo "checking type of mail spool file locking" 1>&6 4752 echo "checking type of mail spool file locking" 1>&6
4749 echo "configure:4750: checking type of mail spool file locking" >&5 4753 echo "configure:4754: checking type of mail spool file locking" >&5
4750 for ac_func in lockf flock 4754 for ac_func in lockf flock
4751 do 4755 do
4752 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4753 echo "configure:4754: checking for $ac_func" >&5 4757 echo "configure:4758: checking for $ac_func" >&5
4754 4758
4755 cat > conftest.$ac_ext <<EOF 4759 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure" 4760 #line 4761 "configure"
4757 #include "confdefs.h" 4761 #include "confdefs.h"
4758 /* System header to define __stub macros and hopefully few prototypes, 4762 /* System header to define __stub macros and hopefully few prototypes,
4759 which can conflict with char $ac_func(); below. */ 4763 which can conflict with char $ac_func(); below. */
4760 #include <assert.h> 4764 #include <assert.h>
4761 /* Override any gcc2 internal prototype to avoid an error. */ 4765 /* Override any gcc2 internal prototype to avoid an error. */
4774 $ac_func(); 4778 $ac_func();
4775 #endif 4779 #endif
4776 4780
4777 ; return 0; } 4781 ; return 0; }
4778 EOF 4782 EOF
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 rm -rf conftest* 4784 rm -rf conftest*
4781 eval "ac_cv_func_$ac_func=yes" 4785 eval "ac_cv_func_$ac_func=yes"
4782 else 4786 else
4783 echo "configure: failed program was:" >&5 4787 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5 4788 cat conftest.$ac_ext >&5
4856 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4860 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4857 4861
4858 case "$opsys" in decosf*) 4862 case "$opsys" in decosf*)
4859 4863
4860 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4864 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4861 echo "configure:4862: checking for cma_open in -lpthreads" >&5 4865 echo "configure:4866: checking for cma_open in -lpthreads" >&5
4862 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4866 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4863 4867
4864 xe_check_libs=" -lpthreads " 4868 xe_check_libs=" -lpthreads "
4865 cat > conftest.$ac_ext <<EOF 4869 cat > conftest.$ac_ext <<EOF
4866 #line 4867 "configure" 4870 #line 4871 "configure"
4867 #include "confdefs.h" 4871 #include "confdefs.h"
4868 /* Override any gcc2 internal prototype to avoid an error. */ 4872 /* Override any gcc2 internal prototype to avoid an error. */
4869 /* We use char because int might match the return type of a gcc2 4873 /* We use char because int might match the return type of a gcc2
4870 builtin and then its argument prototype would still apply. */ 4874 builtin and then its argument prototype would still apply. */
4871 char cma_open(); 4875 char cma_open();
4872 4876
4873 int main() { 4877 int main() {
4874 cma_open() 4878 cma_open()
4875 ; return 0; } 4879 ; return 0; }
4876 EOF 4880 EOF
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4878 rm -rf conftest* 4882 rm -rf conftest*
4879 eval "ac_cv_lib_$ac_lib_var=yes" 4883 eval "ac_cv_lib_$ac_lib_var=yes"
4880 else 4884 else
4881 echo "configure: failed program was:" >&5 4885 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5 4886 cat conftest.$ac_ext >&5
4908 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4912 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4909 c_switch_site="$c_switch_site -threads" ;; 4913 c_switch_site="$c_switch_site -threads" ;;
4910 esac 4914 esac
4911 4915
4912 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4916 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4913 echo "configure:4914: checking whether the -xildoff compiler flag is required" >&5 4917 echo "configure:4918: checking whether the -xildoff compiler flag is required" >&5
4914 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4918 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4915 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4919 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4916 then echo "$ac_t""no" 1>&6; 4920 then echo "$ac_t""no" 1>&6;
4917 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 4921 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
4918 fi 4922 fi
4920 fi 4924 fi
4921 4925
4922 if test "$opsys" = "sol2"; then 4926 if test "$opsys" = "sol2"; then
4923 if test "$os_release" -ge 56; then 4927 if test "$os_release" -ge 56; then
4924 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4928 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4925 echo "configure:4926: checking for \"-z ignore\" linker flag" >&5 4929 echo "configure:4930: checking for \"-z ignore\" linker flag" >&5
4926 case "`ld -h 2>&1`" in 4930 case "`ld -h 2>&1`" in
4927 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4931 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4928 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4932 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4929 *) echo "$ac_t""no" 1>&6 ;; 4933 *) echo "$ac_t""no" 1>&6 ;;
4930 esac 4934 esac
4931 fi 4935 fi
4932 fi 4936 fi
4933 4937
4934 4938
4935 echo "checking "for specified window system"" 1>&6 4939 echo "checking "for specified window system"" 1>&6
4936 echo "configure:4937: checking "for specified window system"" >&5 4940 echo "configure:4941: checking "for specified window system"" >&5
4937 4941
4938 if test "$with_x11" != "no"; then 4942 if test "$with_x11" != "no"; then
4939 test "$x_includes $x_libraries" != "NONE NONE" && \ 4943 test "$x_includes $x_libraries" != "NONE NONE" && \
4940 window_system=x11 with_x11=yes 4944 window_system=x11 with_x11=yes
4941 4945
4964 # If we find X, set shell vars x_includes and x_libraries to the 4968 # If we find X, set shell vars x_includes and x_libraries to the
4965 # paths, otherwise set no_x=yes. 4969 # paths, otherwise set no_x=yes.
4966 # Uses ac_ vars as temps to allow command line to override cache and checks. 4970 # Uses ac_ vars as temps to allow command line to override cache and checks.
4967 # --without-x overrides everything else, but does not touch the cache. 4971 # --without-x overrides everything else, but does not touch the cache.
4968 echo $ac_n "checking for X""... $ac_c" 1>&6 4972 echo $ac_n "checking for X""... $ac_c" 1>&6
4969 echo "configure:4970: checking for X" >&5 4973 echo "configure:4974: checking for X" >&5
4970 4974
4971 # Check whether --with-x or --without-x was given. 4975 # Check whether --with-x or --without-x was given.
4972 if test "${with_x+set}" = set; then 4976 if test "${with_x+set}" = set; then
4973 withval="$with_x" 4977 withval="$with_x"
4974 : 4978 :
5024 # Guess where to find include files, by looking for this one X11 .h file. 5028 # Guess where to find include files, by looking for this one X11 .h file.
5025 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5029 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5026 5030
5027 # First, try using that file with no special directory specified. 5031 # First, try using that file with no special directory specified.
5028 cat > conftest.$ac_ext <<EOF 5032 cat > conftest.$ac_ext <<EOF
5029 #line 5030 "configure" 5033 #line 5034 "configure"
5030 #include "confdefs.h" 5034 #include "confdefs.h"
5031 #include <$x_direct_test_include> 5035 #include <$x_direct_test_include>
5032 EOF 5036 EOF
5033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5034 { (eval echo configure:5035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5038 { (eval echo configure:5039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5036 if test -z "$ac_err"; then 5040 if test -z "$ac_err"; then
5037 rm -rf conftest* 5041 rm -rf conftest*
5038 # We can compile using X headers with no special include directory. 5042 # We can compile using X headers with no special include directory.
5039 ac_x_includes= 5043 ac_x_includes=
5098 # See if we find them without any special options. 5102 # See if we find them without any special options.
5099 # Don't add to $LIBS permanently. 5103 # Don't add to $LIBS permanently.
5100 ac_save_LIBS="$LIBS" 5104 ac_save_LIBS="$LIBS"
5101 LIBS="-l$x_direct_test_library $LIBS" 5105 LIBS="-l$x_direct_test_library $LIBS"
5102 cat > conftest.$ac_ext <<EOF 5106 cat > conftest.$ac_ext <<EOF
5103 #line 5104 "configure" 5107 #line 5108 "configure"
5104 #include "confdefs.h" 5108 #include "confdefs.h"
5105 5109
5106 int main() { 5110 int main() {
5107 ${x_direct_test_function}() 5111 ${x_direct_test_function}()
5108 ; return 0; } 5112 ; return 0; }
5109 EOF 5113 EOF
5110 if { (eval echo configure:5111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5114 if { (eval echo configure:5115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5111 rm -rf conftest* 5115 rm -rf conftest*
5112 LIBS="$ac_save_LIBS" 5116 LIBS="$ac_save_LIBS"
5113 # We can link X programs with no special library path. 5117 # We can link X programs with no special library path.
5114 ac_x_libraries= 5118 ac_x_libraries=
5115 else 5119 else
5214 # For Solaris; some versions of Sun CC require a space after -R and 5218 # For Solaris; some versions of Sun CC require a space after -R and
5215 # others require no space. Words are not sufficient . . . . 5219 # others require no space. Words are not sufficient . . . .
5216 case "`(uname -sr) 2>/dev/null`" in 5220 case "`(uname -sr) 2>/dev/null`" in
5217 "SunOS 5"*) 5221 "SunOS 5"*)
5218 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5222 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5219 echo "configure:5220: checking whether -R must be followed by a space" >&5 5223 echo "configure:5224: checking whether -R must be followed by a space" >&5
5220 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5224 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5221 cat > conftest.$ac_ext <<EOF 5225 cat > conftest.$ac_ext <<EOF
5222 #line 5223 "configure" 5226 #line 5227 "configure"
5223 #include "confdefs.h" 5227 #include "confdefs.h"
5224 5228
5225 int main() { 5229 int main() {
5226 5230
5227 ; return 0; } 5231 ; return 0; }
5228 EOF 5232 EOF
5229 if { (eval echo configure:5230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230 rm -rf conftest* 5234 rm -rf conftest*
5231 ac_R_nospace=yes 5235 ac_R_nospace=yes
5232 else 5236 else
5233 echo "configure: failed program was:" >&5 5237 echo "configure: failed program was:" >&5
5234 cat conftest.$ac_ext >&5 5238 cat conftest.$ac_ext >&5
5240 echo "$ac_t""no" 1>&6 5244 echo "$ac_t""no" 1>&6
5241 X_LIBS="$X_LIBS -R$x_libraries" 5245 X_LIBS="$X_LIBS -R$x_libraries"
5242 else 5246 else
5243 LIBS="$ac_xsave_LIBS -R $x_libraries" 5247 LIBS="$ac_xsave_LIBS -R $x_libraries"
5244 cat > conftest.$ac_ext <<EOF 5248 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure" 5249 #line 5250 "configure"
5246 #include "confdefs.h" 5250 #include "confdefs.h"
5247 5251
5248 int main() { 5252 int main() {
5249 5253
5250 ; return 0; } 5254 ; return 0; }
5251 EOF 5255 EOF
5252 if { (eval echo configure:5253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5253 rm -rf conftest* 5257 rm -rf conftest*
5254 ac_R_space=yes 5258 ac_R_space=yes
5255 else 5259 else
5256 echo "configure: failed program was:" >&5 5260 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5 5261 cat conftest.$ac_ext >&5
5283 if test "$with_dnet" = "no" ; then 5287 if test "$with_dnet" = "no" ; then
5284 ac_cv_lib_dnet_dnet_ntoa=no 5288 ac_cv_lib_dnet_dnet_ntoa=no
5285 else 5289 else
5286 5290
5287 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5291 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5288 echo "configure:5289: checking for dnet_ntoa in -ldnet" >&5 5292 echo "configure:5293: checking for dnet_ntoa in -ldnet" >&5
5289 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5293 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5290 5294
5291 xe_check_libs=" -ldnet " 5295 xe_check_libs=" -ldnet "
5292 cat > conftest.$ac_ext <<EOF 5296 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure" 5297 #line 5298 "configure"
5294 #include "confdefs.h" 5298 #include "confdefs.h"
5295 /* Override any gcc2 internal prototype to avoid an error. */ 5299 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2 5300 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */ 5301 builtin and then its argument prototype would still apply. */
5298 char dnet_ntoa(); 5302 char dnet_ntoa();
5299 5303
5300 int main() { 5304 int main() {
5301 dnet_ntoa() 5305 dnet_ntoa()
5302 ; return 0; } 5306 ; return 0; }
5303 EOF 5307 EOF
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5308 if { (eval echo configure:5309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5305 rm -rf conftest* 5309 rm -rf conftest*
5306 eval "ac_cv_lib_$ac_lib_var=yes" 5310 eval "ac_cv_lib_$ac_lib_var=yes"
5307 else 5311 else
5308 echo "configure: failed program was:" >&5 5312 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5 5313 cat conftest.$ac_ext >&5
5323 fi 5327 fi
5324 5328
5325 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5329 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5326 5330
5327 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5331 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5328 echo "configure:5329: checking for dnet_ntoa in -ldnet_stub" >&5 5332 echo "configure:5333: checking for dnet_ntoa in -ldnet_stub" >&5
5329 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5333 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5330 5334
5331 xe_check_libs=" -ldnet_stub " 5335 xe_check_libs=" -ldnet_stub "
5332 cat > conftest.$ac_ext <<EOF 5336 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure" 5337 #line 5338 "configure"
5334 #include "confdefs.h" 5338 #include "confdefs.h"
5335 /* Override any gcc2 internal prototype to avoid an error. */ 5339 /* Override any gcc2 internal prototype to avoid an error. */
5336 /* We use char because int might match the return type of a gcc2 5340 /* We use char because int might match the return type of a gcc2
5337 builtin and then its argument prototype would still apply. */ 5341 builtin and then its argument prototype would still apply. */
5338 char dnet_ntoa(); 5342 char dnet_ntoa();
5339 5343
5340 int main() { 5344 int main() {
5341 dnet_ntoa() 5345 dnet_ntoa()
5342 ; return 0; } 5346 ; return 0; }
5343 EOF 5347 EOF
5344 if { (eval echo configure:5345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5348 if { (eval echo configure:5349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5345 rm -rf conftest* 5349 rm -rf conftest*
5346 eval "ac_cv_lib_$ac_lib_var=yes" 5350 eval "ac_cv_lib_$ac_lib_var=yes"
5347 else 5351 else
5348 echo "configure: failed program was:" >&5 5352 echo "configure: failed program was:" >&5
5349 cat conftest.$ac_ext >&5 5353 cat conftest.$ac_ext >&5
5368 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5372 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5369 # needs -lnsl. 5373 # needs -lnsl.
5370 # The nsl library prevents programs from opening the X display 5374 # The nsl library prevents programs from opening the X display
5371 # on Irix 5.2, according to dickey@clark.net. 5375 # on Irix 5.2, according to dickey@clark.net.
5372 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5376 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5373 echo "configure:5374: checking for gethostbyname" >&5 5377 echo "configure:5378: checking for gethostbyname" >&5
5374 5378
5375 cat > conftest.$ac_ext <<EOF 5379 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure" 5380 #line 5381 "configure"
5377 #include "confdefs.h" 5381 #include "confdefs.h"
5378 /* System header to define __stub macros and hopefully few prototypes, 5382 /* System header to define __stub macros and hopefully few prototypes,
5379 which can conflict with char gethostbyname(); below. */ 5383 which can conflict with char gethostbyname(); below. */
5380 #include <assert.h> 5384 #include <assert.h>
5381 /* Override any gcc2 internal prototype to avoid an error. */ 5385 /* Override any gcc2 internal prototype to avoid an error. */
5394 gethostbyname(); 5398 gethostbyname();
5395 #endif 5399 #endif
5396 5400
5397 ; return 0; } 5401 ; return 0; }
5398 EOF 5402 EOF
5399 if { (eval echo configure:5400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5403 if { (eval echo configure:5404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5400 rm -rf conftest* 5404 rm -rf conftest*
5401 eval "ac_cv_func_gethostbyname=yes" 5405 eval "ac_cv_func_gethostbyname=yes"
5402 else 5406 else
5403 echo "configure: failed program was:" >&5 5407 echo "configure: failed program was:" >&5
5404 cat conftest.$ac_ext >&5 5408 cat conftest.$ac_ext >&5
5415 fi 5419 fi
5416 5420
5417 if test $ac_cv_func_gethostbyname = no; then 5421 if test $ac_cv_func_gethostbyname = no; then
5418 5422
5419 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5423 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5420 echo "configure:5421: checking for gethostbyname in -lnsl" >&5 5424 echo "configure:5425: checking for gethostbyname in -lnsl" >&5
5421 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5425 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5422 5426
5423 xe_check_libs=" -lnsl " 5427 xe_check_libs=" -lnsl "
5424 cat > conftest.$ac_ext <<EOF 5428 cat > conftest.$ac_ext <<EOF
5425 #line 5426 "configure" 5429 #line 5430 "configure"
5426 #include "confdefs.h" 5430 #include "confdefs.h"
5427 /* Override any gcc2 internal prototype to avoid an error. */ 5431 /* Override any gcc2 internal prototype to avoid an error. */
5428 /* We use char because int might match the return type of a gcc2 5432 /* We use char because int might match the return type of a gcc2
5429 builtin and then its argument prototype would still apply. */ 5433 builtin and then its argument prototype would still apply. */
5430 char gethostbyname(); 5434 char gethostbyname();
5431 5435
5432 int main() { 5436 int main() {
5433 gethostbyname() 5437 gethostbyname()
5434 ; return 0; } 5438 ; return 0; }
5435 EOF 5439 EOF
5436 if { (eval echo configure:5437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5440 if { (eval echo configure:5441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5437 rm -rf conftest* 5441 rm -rf conftest*
5438 eval "ac_cv_lib_$ac_lib_var=yes" 5442 eval "ac_cv_lib_$ac_lib_var=yes"
5439 else 5443 else
5440 echo "configure: failed program was:" >&5 5444 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5 5445 cat conftest.$ac_ext >&5
5461 # on later versions), says simon@lia.di.epfl.ch: it contains 5465 # on later versions), says simon@lia.di.epfl.ch: it contains
5462 # gethostby* variants that don't use the nameserver (or something). 5466 # gethostby* variants that don't use the nameserver (or something).
5463 # -lsocket must be given before -lnsl if both are needed. 5467 # -lsocket must be given before -lnsl if both are needed.
5464 # We assume that if connect needs -lnsl, so does gethostbyname. 5468 # We assume that if connect needs -lnsl, so does gethostbyname.
5465 echo $ac_n "checking for connect""... $ac_c" 1>&6 5469 echo $ac_n "checking for connect""... $ac_c" 1>&6
5466 echo "configure:5467: checking for connect" >&5 5470 echo "configure:5471: checking for connect" >&5
5467 5471
5468 cat > conftest.$ac_ext <<EOF 5472 cat > conftest.$ac_ext <<EOF
5469 #line 5470 "configure" 5473 #line 5474 "configure"
5470 #include "confdefs.h" 5474 #include "confdefs.h"
5471 /* System header to define __stub macros and hopefully few prototypes, 5475 /* System header to define __stub macros and hopefully few prototypes,
5472 which can conflict with char connect(); below. */ 5476 which can conflict with char connect(); below. */
5473 #include <assert.h> 5477 #include <assert.h>
5474 /* Override any gcc2 internal prototype to avoid an error. */ 5478 /* Override any gcc2 internal prototype to avoid an error. */
5487 connect(); 5491 connect();
5488 #endif 5492 #endif
5489 5493
5490 ; return 0; } 5494 ; return 0; }
5491 EOF 5495 EOF
5492 if { (eval echo configure:5493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5496 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 rm -rf conftest* 5497 rm -rf conftest*
5494 eval "ac_cv_func_connect=yes" 5498 eval "ac_cv_func_connect=yes"
5495 else 5499 else
5496 echo "configure: failed program was:" >&5 5500 echo "configure: failed program was:" >&5
5497 cat conftest.$ac_ext >&5 5501 cat conftest.$ac_ext >&5
5510 if test $ac_cv_func_connect = no; then 5514 if test $ac_cv_func_connect = no; then
5511 5515
5512 xe_msg_checking="for connect in -lsocket" 5516 xe_msg_checking="for connect in -lsocket"
5513 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5517 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5514 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5518 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5515 echo "configure:5516: checking "$xe_msg_checking"" >&5 5519 echo "configure:5520: checking "$xe_msg_checking"" >&5
5516 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5520 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5517 5521
5518 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5522 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5519 cat > conftest.$ac_ext <<EOF 5523 cat > conftest.$ac_ext <<EOF
5520 #line 5521 "configure" 5524 #line 5525 "configure"
5521 #include "confdefs.h" 5525 #include "confdefs.h"
5522 /* Override any gcc2 internal prototype to avoid an error. */ 5526 /* Override any gcc2 internal prototype to avoid an error. */
5523 /* We use char because int might match the return type of a gcc2 5527 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */ 5528 builtin and then its argument prototype would still apply. */
5525 char connect(); 5529 char connect();
5526 5530
5527 int main() { 5531 int main() {
5528 connect() 5532 connect()
5529 ; return 0; } 5533 ; return 0; }
5530 EOF 5534 EOF
5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5532 rm -rf conftest* 5536 rm -rf conftest*
5533 eval "ac_cv_lib_$ac_lib_var=yes" 5537 eval "ac_cv_lib_$ac_lib_var=yes"
5534 else 5538 else
5535 echo "configure: failed program was:" >&5 5539 echo "configure: failed program was:" >&5
5536 cat conftest.$ac_ext >&5 5540 cat conftest.$ac_ext >&5
5550 5554
5551 fi 5555 fi
5552 5556
5553 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5557 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5554 echo $ac_n "checking for remove""... $ac_c" 1>&6 5558 echo $ac_n "checking for remove""... $ac_c" 1>&6
5555 echo "configure:5556: checking for remove" >&5 5559 echo "configure:5560: checking for remove" >&5
5556 5560
5557 cat > conftest.$ac_ext <<EOF 5561 cat > conftest.$ac_ext <<EOF
5558 #line 5559 "configure" 5562 #line 5563 "configure"
5559 #include "confdefs.h" 5563 #include "confdefs.h"
5560 /* System header to define __stub macros and hopefully few prototypes, 5564 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char remove(); below. */ 5565 which can conflict with char remove(); below. */
5562 #include <assert.h> 5566 #include <assert.h>
5563 /* Override any gcc2 internal prototype to avoid an error. */ 5567 /* Override any gcc2 internal prototype to avoid an error. */
5576 remove(); 5580 remove();
5577 #endif 5581 #endif
5578 5582
5579 ; return 0; } 5583 ; return 0; }
5580 EOF 5584 EOF
5581 if { (eval echo configure:5582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5585 if { (eval echo configure:5586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5582 rm -rf conftest* 5586 rm -rf conftest*
5583 eval "ac_cv_func_remove=yes" 5587 eval "ac_cv_func_remove=yes"
5584 else 5588 else
5585 echo "configure: failed program was:" >&5 5589 echo "configure: failed program was:" >&5
5586 cat conftest.$ac_ext >&5 5590 cat conftest.$ac_ext >&5
5597 fi 5601 fi
5598 5602
5599 if test $ac_cv_func_remove = no; then 5603 if test $ac_cv_func_remove = no; then
5600 5604
5601 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5605 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5602 echo "configure:5603: checking for remove in -lposix" >&5 5606 echo "configure:5607: checking for remove in -lposix" >&5
5603 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5607 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5604 5608
5605 xe_check_libs=" -lposix " 5609 xe_check_libs=" -lposix "
5606 cat > conftest.$ac_ext <<EOF 5610 cat > conftest.$ac_ext <<EOF
5607 #line 5608 "configure" 5611 #line 5612 "configure"
5608 #include "confdefs.h" 5612 #include "confdefs.h"
5609 /* Override any gcc2 internal prototype to avoid an error. */ 5613 /* Override any gcc2 internal prototype to avoid an error. */
5610 /* We use char because int might match the return type of a gcc2 5614 /* We use char because int might match the return type of a gcc2
5611 builtin and then its argument prototype would still apply. */ 5615 builtin and then its argument prototype would still apply. */
5612 char remove(); 5616 char remove();
5613 5617
5614 int main() { 5618 int main() {
5615 remove() 5619 remove()
5616 ; return 0; } 5620 ; return 0; }
5617 EOF 5621 EOF
5618 if { (eval echo configure:5619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5622 if { (eval echo configure:5623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5619 rm -rf conftest* 5623 rm -rf conftest*
5620 eval "ac_cv_lib_$ac_lib_var=yes" 5624 eval "ac_cv_lib_$ac_lib_var=yes"
5621 else 5625 else
5622 echo "configure: failed program was:" >&5 5626 echo "configure: failed program was:" >&5
5623 cat conftest.$ac_ext >&5 5627 cat conftest.$ac_ext >&5
5637 5641
5638 fi 5642 fi
5639 5643
5640 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5644 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5641 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5645 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5642 echo "configure:5643: checking for shmat" >&5 5646 echo "configure:5647: checking for shmat" >&5
5643 5647
5644 cat > conftest.$ac_ext <<EOF 5648 cat > conftest.$ac_ext <<EOF
5645 #line 5646 "configure" 5649 #line 5650 "configure"
5646 #include "confdefs.h" 5650 #include "confdefs.h"
5647 /* System header to define __stub macros and hopefully few prototypes, 5651 /* System header to define __stub macros and hopefully few prototypes,
5648 which can conflict with char shmat(); below. */ 5652 which can conflict with char shmat(); below. */
5649 #include <assert.h> 5653 #include <assert.h>
5650 /* Override any gcc2 internal prototype to avoid an error. */ 5654 /* Override any gcc2 internal prototype to avoid an error. */
5663 shmat(); 5667 shmat();
5664 #endif 5668 #endif
5665 5669
5666 ; return 0; } 5670 ; return 0; }
5667 EOF 5671 EOF
5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5669 rm -rf conftest* 5673 rm -rf conftest*
5670 eval "ac_cv_func_shmat=yes" 5674 eval "ac_cv_func_shmat=yes"
5671 else 5675 else
5672 echo "configure: failed program was:" >&5 5676 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5 5677 cat conftest.$ac_ext >&5
5684 fi 5688 fi
5685 5689
5686 if test $ac_cv_func_shmat = no; then 5690 if test $ac_cv_func_shmat = no; then
5687 5691
5688 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5692 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5689 echo "configure:5690: checking for shmat in -lipc" >&5 5693 echo "configure:5694: checking for shmat in -lipc" >&5
5690 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5694 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5691 5695
5692 xe_check_libs=" -lipc " 5696 xe_check_libs=" -lipc "
5693 cat > conftest.$ac_ext <<EOF 5697 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure" 5698 #line 5699 "configure"
5695 #include "confdefs.h" 5699 #include "confdefs.h"
5696 /* Override any gcc2 internal prototype to avoid an error. */ 5700 /* Override any gcc2 internal prototype to avoid an error. */
5697 /* We use char because int might match the return type of a gcc2 5701 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */ 5702 builtin and then its argument prototype would still apply. */
5699 char shmat(); 5703 char shmat();
5700 5704
5701 int main() { 5705 int main() {
5702 shmat() 5706 shmat()
5703 ; return 0; } 5707 ; return 0; }
5704 EOF 5708 EOF
5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5709 if { (eval echo configure:5710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5706 rm -rf conftest* 5710 rm -rf conftest*
5707 eval "ac_cv_lib_$ac_lib_var=yes" 5711 eval "ac_cv_lib_$ac_lib_var=yes"
5708 else 5712 else
5709 echo "configure: failed program was:" >&5 5713 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5 5714 cat conftest.$ac_ext >&5
5736 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5740 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5737 5741
5738 xe_msg_checking="for IceConnectionNumber in -lICE" 5742 xe_msg_checking="for IceConnectionNumber in -lICE"
5739 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5743 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5740 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5744 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5741 echo "configure:5742: checking "$xe_msg_checking"" >&5 5745 echo "configure:5746: checking "$xe_msg_checking"" >&5
5742 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5746 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5743 5747
5744 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5748 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5745 cat > conftest.$ac_ext <<EOF 5749 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure" 5750 #line 5751 "configure"
5747 #include "confdefs.h" 5751 #include "confdefs.h"
5748 /* Override any gcc2 internal prototype to avoid an error. */ 5752 /* Override any gcc2 internal prototype to avoid an error. */
5749 /* We use char because int might match the return type of a gcc2 5753 /* We use char because int might match the return type of a gcc2
5750 builtin and then its argument prototype would still apply. */ 5754 builtin and then its argument prototype would still apply. */
5751 char IceConnectionNumber(); 5755 char IceConnectionNumber();
5752 5756
5753 int main() { 5757 int main() {
5754 IceConnectionNumber() 5758 IceConnectionNumber()
5755 ; return 0; } 5759 ; return 0; }
5756 EOF 5760 EOF
5757 if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5761 if { (eval echo configure:5762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5758 rm -rf conftest* 5762 rm -rf conftest*
5759 eval "ac_cv_lib_$ac_lib_var=yes" 5763 eval "ac_cv_lib_$ac_lib_var=yes"
5760 else 5764 else
5761 echo "configure: failed program was:" >&5 5765 echo "configure: failed program was:" >&5
5762 cat conftest.$ac_ext >&5 5766 cat conftest.$ac_ext >&5
5923 EOF 5927 EOF
5924 } 5928 }
5925 5929
5926 5930
5927 echo "checking for X defines extracted by xmkmf" 1>&6 5931 echo "checking for X defines extracted by xmkmf" 1>&6
5928 echo "configure:5929: checking for X defines extracted by xmkmf" >&5 5932 echo "configure:5933: checking for X defines extracted by xmkmf" >&5
5929 rm -fr conftestdir 5933 rm -fr conftestdir
5930 if mkdir conftestdir; then 5934 if mkdir conftestdir; then
5931 cd conftestdir 5935 cd conftestdir
5932 cat > Imakefile <<'EOF' 5936 cat > Imakefile <<'EOF'
5933 xetest: 5937 xetest:
5970 done 5974 done
5971 fi 5975 fi
5972 5976
5973 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5977 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5974 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5978 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5975 echo "configure:5976: checking for X11/Intrinsic.h" >&5 5979 echo "configure:5980: checking for X11/Intrinsic.h" >&5
5976 5980
5977 cat > conftest.$ac_ext <<EOF 5981 cat > conftest.$ac_ext <<EOF
5978 #line 5979 "configure" 5982 #line 5983 "configure"
5979 #include "confdefs.h" 5983 #include "confdefs.h"
5980 #include <X11/Intrinsic.h> 5984 #include <X11/Intrinsic.h>
5981 EOF 5985 EOF
5982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5983 { (eval echo configure:5984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5987 { (eval echo configure:5988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5985 if test -z "$ac_err"; then 5989 if test -z "$ac_err"; then
5986 rm -rf conftest* 5990 rm -rf conftest*
5987 eval "ac_cv_header_$ac_safe=yes" 5991 eval "ac_cv_header_$ac_safe=yes"
5988 else 5992 else
6002 fi 6006 fi
6003 6007
6004 6008
6005 6009
6006 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6010 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6007 echo "configure:6008: checking for XOpenDisplay in -lX11" >&5 6011 echo "configure:6012: checking for XOpenDisplay in -lX11" >&5
6008 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6012 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6009 6013
6010 xe_check_libs=" -lX11 " 6014 xe_check_libs=" -lX11 "
6011 cat > conftest.$ac_ext <<EOF 6015 cat > conftest.$ac_ext <<EOF
6012 #line 6013 "configure" 6016 #line 6017 "configure"
6013 #include "confdefs.h" 6017 #include "confdefs.h"
6014 /* Override any gcc2 internal prototype to avoid an error. */ 6018 /* Override any gcc2 internal prototype to avoid an error. */
6015 /* We use char because int might match the return type of a gcc2 6019 /* We use char because int might match the return type of a gcc2
6016 builtin and then its argument prototype would still apply. */ 6020 builtin and then its argument prototype would still apply. */
6017 char XOpenDisplay(); 6021 char XOpenDisplay();
6018 6022
6019 int main() { 6023 int main() {
6020 XOpenDisplay() 6024 XOpenDisplay()
6021 ; return 0; } 6025 ; return 0; }
6022 EOF 6026 EOF
6023 if { (eval echo configure:6024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6027 if { (eval echo configure:6028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6024 rm -rf conftest* 6028 rm -rf conftest*
6025 eval "ac_cv_lib_$ac_lib_var=yes" 6029 eval "ac_cv_lib_$ac_lib_var=yes"
6026 else 6030 else
6027 echo "configure: failed program was:" >&5 6031 echo "configure: failed program was:" >&5
6028 cat conftest.$ac_ext >&5 6032 cat conftest.$ac_ext >&5
6043 if test "$have_lib_x11" != "yes"; then 6047 if test "$have_lib_x11" != "yes"; then
6044 6048
6045 xe_msg_checking="for XGetFontProperty in -lX11" 6049 xe_msg_checking="for XGetFontProperty in -lX11"
6046 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6050 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6047 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6051 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6048 echo "configure:6049: checking "$xe_msg_checking"" >&5 6052 echo "configure:6053: checking "$xe_msg_checking"" >&5
6049 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6053 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6050 6054
6051 xe_check_libs=" -lX11 -b i486-linuxaout" 6055 xe_check_libs=" -lX11 -b i486-linuxaout"
6052 cat > conftest.$ac_ext <<EOF 6056 cat > conftest.$ac_ext <<EOF
6053 #line 6054 "configure" 6057 #line 6058 "configure"
6054 #include "confdefs.h" 6058 #include "confdefs.h"
6055 /* Override any gcc2 internal prototype to avoid an error. */ 6059 /* Override any gcc2 internal prototype to avoid an error. */
6056 /* We use char because int might match the return type of a gcc2 6060 /* We use char because int might match the return type of a gcc2
6057 builtin and then its argument prototype would still apply. */ 6061 builtin and then its argument prototype would still apply. */
6058 char XGetFontProperty(); 6062 char XGetFontProperty();
6059 6063
6060 int main() { 6064 int main() {
6061 XGetFontProperty() 6065 XGetFontProperty()
6062 ; return 0; } 6066 ; return 0; }
6063 EOF 6067 EOF
6064 if { (eval echo configure:6065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6068 if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6065 rm -rf conftest* 6069 rm -rf conftest*
6066 eval "ac_cv_lib_$ac_lib_var=yes" 6070 eval "ac_cv_lib_$ac_lib_var=yes"
6067 else 6071 else
6068 echo "configure: failed program was:" >&5 6072 echo "configure: failed program was:" >&5
6069 cat conftest.$ac_ext >&5 6073 cat conftest.$ac_ext >&5
6086 libs_x="-lX11" 6090 libs_x="-lX11"
6087 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6091 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6088 6092
6089 6093
6090 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6094 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6091 echo "configure:6092: checking for XShapeSelectInput in -lXext" >&5 6095 echo "configure:6096: checking for XShapeSelectInput in -lXext" >&5
6092 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6096 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6093 6097
6094 xe_check_libs=" -lXext " 6098 xe_check_libs=" -lXext "
6095 cat > conftest.$ac_ext <<EOF 6099 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure" 6100 #line 6101 "configure"
6097 #include "confdefs.h" 6101 #include "confdefs.h"
6098 /* Override any gcc2 internal prototype to avoid an error. */ 6102 /* Override any gcc2 internal prototype to avoid an error. */
6099 /* We use char because int might match the return type of a gcc2 6103 /* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */ 6104 builtin and then its argument prototype would still apply. */
6101 char XShapeSelectInput(); 6105 char XShapeSelectInput();
6102 6106
6103 int main() { 6107 int main() {
6104 XShapeSelectInput() 6108 XShapeSelectInput()
6105 ; return 0; } 6109 ; return 0; }
6106 EOF 6110 EOF
6107 if { (eval echo configure:6108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6111 if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6108 rm -rf conftest* 6112 rm -rf conftest*
6109 eval "ac_cv_lib_$ac_lib_var=yes" 6113 eval "ac_cv_lib_$ac_lib_var=yes"
6110 else 6114 else
6111 echo "configure: failed program was:" >&5 6115 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5 6116 cat conftest.$ac_ext >&5
6125 6129
6126 6130
6127 6131
6128 6132
6129 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6133 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6130 echo "configure:6131: checking for XtOpenDisplay in -lXt" >&5 6134 echo "configure:6135: checking for XtOpenDisplay in -lXt" >&5
6131 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6135 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6132 6136
6133 xe_check_libs=" -lXt " 6137 xe_check_libs=" -lXt "
6134 cat > conftest.$ac_ext <<EOF 6138 cat > conftest.$ac_ext <<EOF
6135 #line 6136 "configure" 6139 #line 6140 "configure"
6136 #include "confdefs.h" 6140 #include "confdefs.h"
6137 /* Override any gcc2 internal prototype to avoid an error. */ 6141 /* Override any gcc2 internal prototype to avoid an error. */
6138 /* We use char because int might match the return type of a gcc2 6142 /* We use char because int might match the return type of a gcc2
6139 builtin and then its argument prototype would still apply. */ 6143 builtin and then its argument prototype would still apply. */
6140 char XtOpenDisplay(); 6144 char XtOpenDisplay();
6141 6145
6142 int main() { 6146 int main() {
6143 XtOpenDisplay() 6147 XtOpenDisplay()
6144 ; return 0; } 6148 ; return 0; }
6145 EOF 6149 EOF
6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6150 if { (eval echo configure:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6147 rm -rf conftest* 6151 rm -rf conftest*
6148 eval "ac_cv_lib_$ac_lib_var=yes" 6152 eval "ac_cv_lib_$ac_lib_var=yes"
6149 else 6153 else
6150 echo "configure: failed program was:" >&5 6154 echo "configure: failed program was:" >&5
6151 cat conftest.$ac_ext >&5 6155 cat conftest.$ac_ext >&5
6164 fi 6168 fi
6165 6169
6166 6170
6167 6171
6168 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6172 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6169 echo "configure:6170: checking the version of X11 being used" >&5 6173 echo "configure:6174: checking the version of X11 being used" >&5
6170 cat > conftest.$ac_ext <<EOF 6174 cat > conftest.$ac_ext <<EOF
6171 #line 6172 "configure" 6175 #line 6176 "configure"
6172 #include "confdefs.h" 6176 #include "confdefs.h"
6173 #include <X11/Intrinsic.h> 6177 #include <X11/Intrinsic.h>
6174 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6178 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6175 EOF 6179 EOF
6176 if { (eval echo configure:6177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6177 then 6181 then
6178 ./conftest foobar; x11_release=$? 6182 ./conftest foobar; x11_release=$?
6179 else 6183 else
6180 conftest_rc="$?" 6184 conftest_rc="$?"
6181 echo "configure: failed program was:" >&5 6185 echo "configure: failed program was:" >&5
6202 fi 6206 fi
6203 6207
6204 for ac_func in XConvertCase 6208 for ac_func in XConvertCase
6205 do 6209 do
6206 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6207 echo "configure:6208: checking for $ac_func" >&5 6211 echo "configure:6212: checking for $ac_func" >&5
6208 6212
6209 cat > conftest.$ac_ext <<EOF 6213 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure" 6214 #line 6215 "configure"
6211 #include "confdefs.h" 6215 #include "confdefs.h"
6212 /* System header to define __stub macros and hopefully few prototypes, 6216 /* System header to define __stub macros and hopefully few prototypes,
6213 which can conflict with char $ac_func(); below. */ 6217 which can conflict with char $ac_func(); below. */
6214 #include <assert.h> 6218 #include <assert.h>
6215 /* Override any gcc2 internal prototype to avoid an error. */ 6219 /* Override any gcc2 internal prototype to avoid an error. */
6228 $ac_func(); 6232 $ac_func();
6229 #endif 6233 #endif
6230 6234
6231 ; return 0; } 6235 ; return 0; }
6232 EOF 6236 EOF
6233 if { (eval echo configure:6234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6237 if { (eval echo configure:6238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6234 rm -rf conftest* 6238 rm -rf conftest*
6235 eval "ac_cv_func_$ac_func=yes" 6239 eval "ac_cv_func_$ac_func=yes"
6236 else 6240 else
6237 echo "configure: failed program was:" >&5 6241 echo "configure: failed program was:" >&5
6238 cat conftest.$ac_ext >&5 6242 cat conftest.$ac_ext >&5
6260 6264
6261 for ac_hdr in X11/Xlocale.h 6265 for ac_hdr in X11/Xlocale.h
6262 do 6266 do
6263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6265 echo "configure:6266: checking for $ac_hdr" >&5 6269 echo "configure:6270: checking for $ac_hdr" >&5
6266 6270
6267 cat > conftest.$ac_ext <<EOF 6271 cat > conftest.$ac_ext <<EOF
6268 #line 6269 "configure" 6272 #line 6273 "configure"
6269 #include "confdefs.h" 6273 #include "confdefs.h"
6270 #include <$ac_hdr> 6274 #include <$ac_hdr>
6271 EOF 6275 EOF
6272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6273 { (eval echo configure:6274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6277 { (eval echo configure:6278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6275 if test -z "$ac_err"; then 6279 if test -z "$ac_err"; then
6276 rm -rf conftest* 6280 rm -rf conftest*
6277 eval "ac_cv_header_$ac_safe=yes" 6281 eval "ac_cv_header_$ac_safe=yes"
6278 else 6282 else
6301 6305
6302 6306
6303 for ac_func in XRegisterIMInstantiateCallback 6307 for ac_func in XRegisterIMInstantiateCallback
6304 do 6308 do
6305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6309 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6306 echo "configure:6307: checking for $ac_func" >&5 6310 echo "configure:6311: checking for $ac_func" >&5
6307 6311
6308 cat > conftest.$ac_ext <<EOF 6312 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure" 6313 #line 6314 "configure"
6310 #include "confdefs.h" 6314 #include "confdefs.h"
6311 /* System header to define __stub macros and hopefully few prototypes, 6315 /* System header to define __stub macros and hopefully few prototypes,
6312 which can conflict with char $ac_func(); below. */ 6316 which can conflict with char $ac_func(); below. */
6313 #include <assert.h> 6317 #include <assert.h>
6314 /* Override any gcc2 internal prototype to avoid an error. */ 6318 /* Override any gcc2 internal prototype to avoid an error. */
6327 $ac_func(); 6331 $ac_func();
6328 #endif 6332 #endif
6329 6333
6330 ; return 0; } 6334 ; return 0; }
6331 EOF 6335 EOF
6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6336 if { (eval echo configure:6337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6333 rm -rf conftest* 6337 rm -rf conftest*
6334 eval "ac_cv_func_$ac_func=yes" 6338 eval "ac_cv_func_$ac_func=yes"
6335 else 6339 else
6336 echo "configure: failed program was:" >&5 6340 echo "configure: failed program was:" >&5
6337 cat conftest.$ac_ext >&5 6341 cat conftest.$ac_ext >&5
6355 echo "$ac_t""no" 1>&6 6359 echo "$ac_t""no" 1>&6
6356 fi 6360 fi
6357 done 6361 done
6358 6362
6359 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 6363 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6360 echo "configure:6361: checking for standard XRegisterIMInstantiateCallback prototype" >&5 6364 echo "configure:6365: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6361 cat > conftest.$ac_ext <<EOF 6365 cat > conftest.$ac_ext <<EOF
6362 #line 6363 "configure" 6366 #line 6367 "configure"
6363 #include "confdefs.h" 6367 #include "confdefs.h"
6364 6368
6365 #define NeedFunctionPrototypes 1 6369 #define NeedFunctionPrototypes 1
6366 #include <X11/Xlib.h> 6370 #include <X11/Xlib.h>
6367 extern Bool XRegisterIMInstantiateCallback( 6371 extern Bool XRegisterIMInstantiateCallback(
6369 6373
6370 int main() { 6374 int main() {
6371 6375
6372 ; return 0; } 6376 ; return 0; }
6373 EOF 6377 EOF
6374 if { (eval echo configure:6375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6378 if { (eval echo configure:6379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6375 rm -rf conftest* 6379 rm -rf conftest*
6376 echo "$ac_t""yes" 1>&6 6380 echo "$ac_t""yes" 1>&6
6377 else 6381 else
6378 echo "configure: failed program was:" >&5 6382 echo "configure: failed program was:" >&5
6379 cat conftest.$ac_ext >&5 6383 cat conftest.$ac_ext >&5
6390 fi 6394 fi
6391 rm -f conftest* 6395 rm -f conftest*
6392 6396
6393 test -z "$with_xmu" && { 6397 test -z "$with_xmu" && {
6394 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6398 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6395 echo "configure:6396: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6399 echo "configure:6400: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6396 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6400 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6397 6401
6398 xe_check_libs=" -lXmu " 6402 xe_check_libs=" -lXmu "
6399 cat > conftest.$ac_ext <<EOF 6403 cat > conftest.$ac_ext <<EOF
6400 #line 6401 "configure" 6404 #line 6405 "configure"
6401 #include "confdefs.h" 6405 #include "confdefs.h"
6402 /* Override any gcc2 internal prototype to avoid an error. */ 6406 /* Override any gcc2 internal prototype to avoid an error. */
6403 /* We use char because int might match the return type of a gcc2 6407 /* We use char because int might match the return type of a gcc2
6404 builtin and then its argument prototype would still apply. */ 6408 builtin and then its argument prototype would still apply. */
6405 char XmuReadBitmapDataFromFile(); 6409 char XmuReadBitmapDataFromFile();
6406 6410
6407 int main() { 6411 int main() {
6408 XmuReadBitmapDataFromFile() 6412 XmuReadBitmapDataFromFile()
6409 ; return 0; } 6413 ; return 0; }
6410 EOF 6414 EOF
6411 if { (eval echo configure:6412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6412 rm -rf conftest* 6416 rm -rf conftest*
6413 eval "ac_cv_lib_$ac_lib_var=yes" 6417 eval "ac_cv_lib_$ac_lib_var=yes"
6414 else 6418 else
6415 echo "configure: failed program was:" >&5 6419 echo "configure: failed program was:" >&5
6416 cat conftest.$ac_ext >&5 6420 cat conftest.$ac_ext >&5
6445 6449
6446 fi 6450 fi
6447 6451
6448 6452
6449 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6453 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6450 echo "configure:6451: checking for main in -lXbsd" >&5 6454 echo "configure:6455: checking for main in -lXbsd" >&5
6451 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6455 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6452 6456
6453 xe_check_libs=" -lXbsd " 6457 xe_check_libs=" -lXbsd "
6454 cat > conftest.$ac_ext <<EOF 6458 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure" 6459 #line 6460 "configure"
6456 #include "confdefs.h" 6460 #include "confdefs.h"
6457 6461
6458 int main() { 6462 int main() {
6459 main() 6463 main()
6460 ; return 0; } 6464 ; return 0; }
6461 EOF 6465 EOF
6462 if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6463 rm -rf conftest* 6467 rm -rf conftest*
6464 eval "ac_cv_lib_$ac_lib_var=yes" 6468 eval "ac_cv_lib_$ac_lib_var=yes"
6465 else 6469 else
6466 echo "configure: failed program was:" >&5 6470 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5 6471 cat conftest.$ac_ext >&5
6494 fi 6498 fi
6495 6499
6496 fi 6500 fi
6497 if test "$with_msw" != "no"; then 6501 if test "$with_msw" != "no"; then
6498 echo "checking for MS-Windows" 1>&6 6502 echo "checking for MS-Windows" 1>&6
6499 echo "configure:6500: checking for MS-Windows" >&5 6503 echo "configure:6504: checking for MS-Windows" >&5
6500 6504
6501 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6505 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6502 echo "configure:6503: checking for main in -lgdi32" >&5 6506 echo "configure:6507: checking for main in -lgdi32" >&5
6503 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6507 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6504 6508
6505 xe_check_libs=" -lgdi32 " 6509 xe_check_libs=" -lgdi32 "
6506 cat > conftest.$ac_ext <<EOF 6510 cat > conftest.$ac_ext <<EOF
6507 #line 6508 "configure" 6511 #line 6512 "configure"
6508 #include "confdefs.h" 6512 #include "confdefs.h"
6509 6513
6510 int main() { 6514 int main() {
6511 main() 6515 main()
6512 ; return 0; } 6516 ; return 0; }
6513 EOF 6517 EOF
6514 if { (eval echo configure:6515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6518 if { (eval echo configure:6519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6515 rm -rf conftest* 6519 rm -rf conftest*
6516 eval "ac_cv_lib_$ac_lib_var=yes" 6520 eval "ac_cv_lib_$ac_lib_var=yes"
6517 else 6521 else
6518 echo "configure: failed program was:" >&5 6522 echo "configure: failed program was:" >&5
6519 cat conftest.$ac_ext >&5 6523 cat conftest.$ac_ext >&5
6542 6546
6543 6547
6544 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi 6548 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6545 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi 6549 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
6546 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 6550 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6547 6551
6548 install_pp="$blddir/lib-src/installexe.sh" 6552 install_pp="$blddir/lib-src/installexe.sh"
6549 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi 6553 libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi
6550 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi 6554 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6551 if test "$window_system" != x11; then 6555 if test "$window_system" != x11; then
6552 window_system=msw 6556 window_system=msw
6580 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6584 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6581 echo " xemacs will be linked with \"dialog-msw.o\"" 6585 echo " xemacs will be linked with \"dialog-msw.o\""
6582 fi 6586 fi
6583 fi 6587 fi
6584 cat > conftest.$ac_ext <<EOF 6588 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure" 6589 #line 6590 "configure"
6586 #include "confdefs.h" 6590 #include "confdefs.h"
6587 #include <fcntl.h> 6591 #include <fcntl.h>
6588 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6592 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6589 EOF 6593 EOF
6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6594 if { (eval echo configure:6595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6591 then 6595 then
6592 { test "$extra_verbose" = "yes" && cat << \EOF 6596 { test "$extra_verbose" = "yes" && cat << \EOF
6593 Defining HAVE_MSG_SELECT 6597 Defining HAVE_MSG_SELECT
6594 EOF 6598 EOF
6595 cat >> confdefs.h <<\EOF 6599 cat >> confdefs.h <<\EOF
6649 fi 6653 fi
6650 6654
6651 if test "$with_x11" = "yes"; then 6655 if test "$with_x11" = "yes"; then
6652 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 6656 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6653 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 6657 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6654 echo "configure:6655: checking for X11/extensions/shape.h" >&5 6658 echo "configure:6659: checking for X11/extensions/shape.h" >&5
6655 6659
6656 cat > conftest.$ac_ext <<EOF 6660 cat > conftest.$ac_ext <<EOF
6657 #line 6658 "configure" 6661 #line 6662 "configure"
6658 #include "confdefs.h" 6662 #include "confdefs.h"
6659 #include <X11/extensions/shape.h> 6663 #include <X11/extensions/shape.h>
6660 EOF 6664 EOF
6661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6662 { (eval echo configure:6663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6666 { (eval echo configure:6667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6664 if test -z "$ac_err"; then 6668 if test -z "$ac_err"; then
6665 rm -rf conftest* 6669 rm -rf conftest*
6666 eval "ac_cv_header_$ac_safe=yes" 6670 eval "ac_cv_header_$ac_safe=yes"
6667 else 6671 else
6704 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6708 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6705 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6709 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6706 esac 6710 esac
6707 6711
6708 echo "checking for WM_COMMAND option" 1>&6 6712 echo "checking for WM_COMMAND option" 1>&6
6709 echo "configure:6710: checking for WM_COMMAND option" >&5; 6713 echo "configure:6714: checking for WM_COMMAND option" >&5;
6710 if test "$with_wmcommand" != "no"; then 6714 if test "$with_wmcommand" != "no"; then
6711 { test "$extra_verbose" = "yes" && cat << \EOF 6715 { test "$extra_verbose" = "yes" && cat << \EOF
6712 Defining HAVE_WMCOMMAND 6716 Defining HAVE_WMCOMMAND
6713 EOF 6717 EOF
6714 cat >> confdefs.h <<\EOF 6718 cat >> confdefs.h <<\EOF
6719 fi 6723 fi
6720 6724
6721 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6725 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6722 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6726 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6723 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6727 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6724 echo "configure:6725: checking for X11/Xauth.h" >&5 6728 echo "configure:6729: checking for X11/Xauth.h" >&5
6725 6729
6726 cat > conftest.$ac_ext <<EOF 6730 cat > conftest.$ac_ext <<EOF
6727 #line 6728 "configure" 6731 #line 6732 "configure"
6728 #include "confdefs.h" 6732 #include "confdefs.h"
6729 #include <X11/Xauth.h> 6733 #include <X11/Xauth.h>
6730 EOF 6734 EOF
6731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6732 { (eval echo configure:6733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6736 { (eval echo configure:6737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6733 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6734 if test -z "$ac_err"; then 6738 if test -z "$ac_err"; then
6735 rm -rf conftest* 6739 rm -rf conftest*
6736 eval "ac_cv_header_$ac_safe=yes" 6740 eval "ac_cv_header_$ac_safe=yes"
6737 else 6741 else
6750 with_xauth=no 6754 with_xauth=no
6751 fi 6755 fi
6752 } 6756 }
6753 test -z "$with_xauth" && { 6757 test -z "$with_xauth" && {
6754 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6758 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6755 echo "configure:6756: checking for XauGetAuthByAddr in -lXau" >&5 6759 echo "configure:6760: checking for XauGetAuthByAddr in -lXau" >&5
6756 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6760 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6757 6761
6758 xe_check_libs=" -lXau " 6762 xe_check_libs=" -lXau "
6759 cat > conftest.$ac_ext <<EOF 6763 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure" 6764 #line 6765 "configure"
6761 #include "confdefs.h" 6765 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */ 6766 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2 6767 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */ 6768 builtin and then its argument prototype would still apply. */
6765 char XauGetAuthByAddr(); 6769 char XauGetAuthByAddr();
6766 6770
6767 int main() { 6771 int main() {
6768 XauGetAuthByAddr() 6772 XauGetAuthByAddr()
6769 ; return 0; } 6773 ; return 0; }
6770 EOF 6774 EOF
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6775 if { (eval echo configure:6776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6772 rm -rf conftest* 6776 rm -rf conftest*
6773 eval "ac_cv_lib_$ac_lib_var=yes" 6777 eval "ac_cv_lib_$ac_lib_var=yes"
6774 else 6778 else
6775 echo "configure: failed program was:" >&5 6779 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5 6780 cat conftest.$ac_ext >&5
6811 6815
6812 if test "$with_tooltalk" != "no" ; then 6816 if test "$with_tooltalk" != "no" ; then
6813 for dir in "" "Tt/" "desktop/" ; do 6817 for dir in "" "Tt/" "desktop/" ; do
6814 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6818 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6815 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6819 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6816 echo "configure:6817: checking for ${dir}tt_c.h" >&5 6820 echo "configure:6821: checking for ${dir}tt_c.h" >&5
6817 6821
6818 cat > conftest.$ac_ext <<EOF 6822 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure" 6823 #line 6824 "configure"
6820 #include "confdefs.h" 6824 #include "confdefs.h"
6821 #include <${dir}tt_c.h> 6825 #include <${dir}tt_c.h>
6822 EOF 6826 EOF
6823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6824 { (eval echo configure:6825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6828 { (eval echo configure:6829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6826 if test -z "$ac_err"; then 6830 if test -z "$ac_err"; then
6827 rm -rf conftest* 6831 rm -rf conftest*
6828 eval "ac_cv_header_$ac_safe=yes" 6832 eval "ac_cv_header_$ac_safe=yes"
6829 else 6833 else
6855 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6859 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6856 6860
6857 xe_msg_checking="for tt_message_create in -ltt" 6861 xe_msg_checking="for tt_message_create in -ltt"
6858 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6862 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6859 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6863 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6860 echo "configure:6861: checking "$xe_msg_checking"" >&5 6864 echo "configure:6865: checking "$xe_msg_checking"" >&5
6861 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6865 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6862 6866
6863 xe_check_libs=" -ltt $extra_libs" 6867 xe_check_libs=" -ltt $extra_libs"
6864 cat > conftest.$ac_ext <<EOF 6868 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure" 6869 #line 6870 "configure"
6866 #include "confdefs.h" 6870 #include "confdefs.h"
6867 /* Override any gcc2 internal prototype to avoid an error. */ 6871 /* Override any gcc2 internal prototype to avoid an error. */
6868 /* We use char because int might match the return type of a gcc2 6872 /* We use char because int might match the return type of a gcc2
6869 builtin and then its argument prototype would still apply. */ 6873 builtin and then its argument prototype would still apply. */
6870 char tt_message_create(); 6874 char tt_message_create();
6871 6875
6872 int main() { 6876 int main() {
6873 tt_message_create() 6877 tt_message_create()
6874 ; return 0; } 6878 ; return 0; }
6875 EOF 6879 EOF
6876 if { (eval echo configure:6877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6877 rm -rf conftest* 6881 rm -rf conftest*
6878 eval "ac_cv_lib_$ac_lib_var=yes" 6882 eval "ac_cv_lib_$ac_lib_var=yes"
6879 else 6883 else
6880 echo "configure: failed program was:" >&5 6884 echo "configure: failed program was:" >&5
6881 cat conftest.$ac_ext >&5 6885 cat conftest.$ac_ext >&5
6928 fi 6932 fi
6929 fi 6933 fi
6930 6934
6931 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6935 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6932 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6936 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6933 echo "configure:6934: checking for Dt/Dt.h" >&5 6937 echo "configure:6938: checking for Dt/Dt.h" >&5
6934 6938
6935 cat > conftest.$ac_ext <<EOF 6939 cat > conftest.$ac_ext <<EOF
6936 #line 6937 "configure" 6940 #line 6941 "configure"
6937 #include "confdefs.h" 6941 #include "confdefs.h"
6938 #include <Dt/Dt.h> 6942 #include <Dt/Dt.h>
6939 EOF 6943 EOF
6940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6941 { (eval echo configure:6942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6945 { (eval echo configure:6946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6943 if test -z "$ac_err"; then 6947 if test -z "$ac_err"; then
6944 rm -rf conftest* 6948 rm -rf conftest*
6945 eval "ac_cv_header_$ac_safe=yes" 6949 eval "ac_cv_header_$ac_safe=yes"
6946 else 6950 else
6959 with_cde=no 6963 with_cde=no
6960 fi 6964 fi
6961 } 6965 }
6962 test -z "$with_cde" && { 6966 test -z "$with_cde" && {
6963 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6967 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6964 echo "configure:6965: checking for DtDndDragStart in -lDtSvc" >&5 6968 echo "configure:6969: checking for DtDndDragStart in -lDtSvc" >&5
6965 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6969 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6966 6970
6967 xe_check_libs=" -lDtSvc " 6971 xe_check_libs=" -lDtSvc "
6968 cat > conftest.$ac_ext <<EOF 6972 cat > conftest.$ac_ext <<EOF
6969 #line 6970 "configure" 6973 #line 6974 "configure"
6970 #include "confdefs.h" 6974 #include "confdefs.h"
6971 /* Override any gcc2 internal prototype to avoid an error. */ 6975 /* Override any gcc2 internal prototype to avoid an error. */
6972 /* We use char because int might match the return type of a gcc2 6976 /* We use char because int might match the return type of a gcc2
6973 builtin and then its argument prototype would still apply. */ 6977 builtin and then its argument prototype would still apply. */
6974 char DtDndDragStart(); 6978 char DtDndDragStart();
6975 6979
6976 int main() { 6980 int main() {
6977 DtDndDragStart() 6981 DtDndDragStart()
6978 ; return 0; } 6982 ; return 0; }
6979 EOF 6983 EOF
6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6984 if { (eval echo configure:6985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6981 rm -rf conftest* 6985 rm -rf conftest*
6982 eval "ac_cv_lib_$ac_lib_var=yes" 6986 eval "ac_cv_lib_$ac_lib_var=yes"
6983 else 6987 else
6984 echo "configure: failed program was:" >&5 6988 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5 6989 cat conftest.$ac_ext >&5
7045 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 7049 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7046 fi 7050 fi
7047 7051
7048 if test "$with_dragndrop" != "no" ; then 7052 if test "$with_dragndrop" != "no" ; then
7049 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 7053 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7050 echo "configure:7051: checking if drag and drop API is needed" >&5 7054 echo "configure:7055: checking if drag and drop API is needed" >&5
7051 if test -n "$dragndrop_proto" ; then 7055 if test -n "$dragndrop_proto" ; then
7052 with_dragndrop=yes 7056 with_dragndrop=yes
7053 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 7057 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7054 { test "$extra_verbose" = "yes" && cat << \EOF 7058 { test "$extra_verbose" = "yes" && cat << \EOF
7055 Defining HAVE_DRAGNDROP 7059 Defining HAVE_DRAGNDROP
7065 echo "$ac_t""no" 1>&6 7069 echo "$ac_t""no" 1>&6
7066 fi 7070 fi
7067 fi 7071 fi
7068 7072
7069 echo "checking for LDAP" 1>&6 7073 echo "checking for LDAP" 1>&6
7070 echo "configure:7071: checking for LDAP" >&5 7074 echo "configure:7075: checking for LDAP" >&5
7071 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 7075 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7072 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 7076 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7073 echo "configure:7074: checking for ldap.h" >&5 7077 echo "configure:7078: checking for ldap.h" >&5
7074 7078
7075 cat > conftest.$ac_ext <<EOF 7079 cat > conftest.$ac_ext <<EOF
7076 #line 7077 "configure" 7080 #line 7081 "configure"
7077 #include "confdefs.h" 7081 #include "confdefs.h"
7078 #include <ldap.h> 7082 #include <ldap.h>
7079 EOF 7083 EOF
7080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7081 { (eval echo configure:7082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7085 { (eval echo configure:7086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7083 if test -z "$ac_err"; then 7087 if test -z "$ac_err"; then
7084 rm -rf conftest* 7088 rm -rf conftest*
7085 eval "ac_cv_header_$ac_safe=yes" 7089 eval "ac_cv_header_$ac_safe=yes"
7086 else 7090 else
7099 with_ldap=no 7103 with_ldap=no
7100 fi 7104 fi
7101 } 7105 }
7102 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 7106 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7103 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 7107 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7104 echo "configure:7105: checking for lber.h" >&5 7108 echo "configure:7109: checking for lber.h" >&5
7105 7109
7106 cat > conftest.$ac_ext <<EOF 7110 cat > conftest.$ac_ext <<EOF
7107 #line 7108 "configure" 7111 #line 7112 "configure"
7108 #include "confdefs.h" 7112 #include "confdefs.h"
7109 #include <lber.h> 7113 #include <lber.h>
7110 EOF 7114 EOF
7111 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7112 { (eval echo configure:7113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7116 { (eval echo configure:7117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7113 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7114 if test -z "$ac_err"; then 7118 if test -z "$ac_err"; then
7115 rm -rf conftest* 7119 rm -rf conftest*
7116 eval "ac_cv_header_$ac_safe=yes" 7120 eval "ac_cv_header_$ac_safe=yes"
7117 else 7121 else
7131 fi 7135 fi
7132 } 7136 }
7133 if test "$with_ldap" != "no"; then 7137 if test "$with_ldap" != "no"; then
7134 7138
7135 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 7139 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7136 echo "configure:7137: checking for ldap_search in -lldap" >&5 7140 echo "configure:7141: checking for ldap_search in -lldap" >&5
7137 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 7141 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7138 7142
7139 xe_check_libs=" -lldap " 7143 xe_check_libs=" -lldap "
7140 cat > conftest.$ac_ext <<EOF 7144 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure" 7145 #line 7146 "configure"
7142 #include "confdefs.h" 7146 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */ 7147 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2 7148 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */ 7149 builtin and then its argument prototype would still apply. */
7146 char ldap_search(); 7150 char ldap_search();
7147 7151
7148 int main() { 7152 int main() {
7149 ldap_search() 7153 ldap_search()
7150 ; return 0; } 7154 ; return 0; }
7151 EOF 7155 EOF
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7153 rm -rf conftest* 7157 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=yes" 7158 eval "ac_cv_lib_$ac_lib_var=yes"
7155 else 7159 else
7156 echo "configure: failed program was:" >&5 7160 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5 7161 cat conftest.$ac_ext >&5
7172 7176
7173 test "$with_ldap_nolber" = "no" && { 7177 test "$with_ldap_nolber" = "no" && {
7174 xe_msg_checking="for ldap_open in -lldap" 7178 xe_msg_checking="for ldap_open in -lldap"
7175 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 7179 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7176 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7180 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7177 echo "configure:7178: checking "$xe_msg_checking"" >&5 7181 echo "configure:7182: checking "$xe_msg_checking"" >&5
7178 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7182 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7179 7183
7180 xe_check_libs=" -lldap -llber" 7184 xe_check_libs=" -lldap -llber"
7181 cat > conftest.$ac_ext <<EOF 7185 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure" 7186 #line 7187 "configure"
7183 #include "confdefs.h" 7187 #include "confdefs.h"
7184 /* Override any gcc2 internal prototype to avoid an error. */ 7188 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2 7189 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */ 7190 builtin and then its argument prototype would still apply. */
7187 char ldap_open(); 7191 char ldap_open();
7188 7192
7189 int main() { 7193 int main() {
7190 ldap_open() 7194 ldap_open()
7191 ; return 0; } 7195 ; return 0; }
7192 EOF 7196 EOF
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194 rm -rf conftest* 7198 rm -rf conftest*
7195 eval "ac_cv_lib_$ac_lib_var=yes" 7199 eval "ac_cv_lib_$ac_lib_var=yes"
7196 else 7200 else
7197 echo "configure: failed program was:" >&5 7201 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5 7202 cat conftest.$ac_ext >&5
7213 } 7217 }
7214 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 7218 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7215 xe_msg_checking="for ldap_open in -lldap" 7219 xe_msg_checking="for ldap_open in -lldap"
7216 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 7220 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7217 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7221 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7218 echo "configure:7219: checking "$xe_msg_checking"" >&5 7222 echo "configure:7223: checking "$xe_msg_checking"" >&5
7219 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7223 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7220 7224
7221 xe_check_libs=" -lldap -llber -lkrb" 7225 xe_check_libs=" -lldap -llber -lkrb"
7222 cat > conftest.$ac_ext <<EOF 7226 cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure" 7227 #line 7228 "configure"
7224 #include "confdefs.h" 7228 #include "confdefs.h"
7225 /* Override any gcc2 internal prototype to avoid an error. */ 7229 /* Override any gcc2 internal prototype to avoid an error. */
7226 /* We use char because int might match the return type of a gcc2 7230 /* We use char because int might match the return type of a gcc2
7227 builtin and then its argument prototype would still apply. */ 7231 builtin and then its argument prototype would still apply. */
7228 char ldap_open(); 7232 char ldap_open();
7229 7233
7230 int main() { 7234 int main() {
7231 ldap_open() 7235 ldap_open()
7232 ; return 0; } 7236 ; return 0; }
7233 EOF 7237 EOF
7234 if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7238 if { (eval echo configure:7239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7235 rm -rf conftest* 7239 rm -rf conftest*
7236 eval "ac_cv_lib_$ac_lib_var=yes" 7240 eval "ac_cv_lib_$ac_lib_var=yes"
7237 else 7241 else
7238 echo "configure: failed program was:" >&5 7242 echo "configure: failed program was:" >&5
7239 cat conftest.$ac_ext >&5 7243 cat conftest.$ac_ext >&5
7254 } 7258 }
7255 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 7259 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7256 xe_msg_checking="for ldap_open in -lldap" 7260 xe_msg_checking="for ldap_open in -lldap"
7257 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 7261 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7258 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7262 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7259 echo "configure:7260: checking "$xe_msg_checking"" >&5 7263 echo "configure:7264: checking "$xe_msg_checking"" >&5
7260 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7264 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7261 7265
7262 xe_check_libs=" -lldap -llber -lkrb -ldes" 7266 xe_check_libs=" -lldap -llber -lkrb -ldes"
7263 cat > conftest.$ac_ext <<EOF 7267 cat > conftest.$ac_ext <<EOF
7264 #line 7265 "configure" 7268 #line 7269 "configure"
7265 #include "confdefs.h" 7269 #include "confdefs.h"
7266 /* Override any gcc2 internal prototype to avoid an error. */ 7270 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2 7271 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */ 7272 builtin and then its argument prototype would still apply. */
7269 char ldap_open(); 7273 char ldap_open();
7270 7274
7271 int main() { 7275 int main() {
7272 ldap_open() 7276 ldap_open()
7273 ; return 0; } 7277 ; return 0; }
7274 EOF 7278 EOF
7275 if { (eval echo configure:7276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7276 rm -rf conftest* 7280 rm -rf conftest*
7277 eval "ac_cv_lib_$ac_lib_var=yes" 7281 eval "ac_cv_lib_$ac_lib_var=yes"
7278 else 7282 else
7279 echo "configure: failed program was:" >&5 7283 echo "configure: failed program was:" >&5
7280 cat conftest.$ac_ext >&5 7284 cat conftest.$ac_ext >&5
7321 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7325 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7322 fi 7326 fi
7323 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 7327 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7324 do 7328 do
7325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7329 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7326 echo "configure:7327: checking for $ac_func" >&5 7330 echo "configure:7331: checking for $ac_func" >&5
7327 7331
7328 cat > conftest.$ac_ext <<EOF 7332 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure" 7333 #line 7334 "configure"
7330 #include "confdefs.h" 7334 #include "confdefs.h"
7331 /* System header to define __stub macros and hopefully few prototypes, 7335 /* System header to define __stub macros and hopefully few prototypes,
7332 which can conflict with char $ac_func(); below. */ 7336 which can conflict with char $ac_func(); below. */
7333 #include <assert.h> 7337 #include <assert.h>
7334 /* Override any gcc2 internal prototype to avoid an error. */ 7338 /* Override any gcc2 internal prototype to avoid an error. */
7347 $ac_func(); 7351 $ac_func();
7348 #endif 7352 #endif
7349 7353
7350 ; return 0; } 7354 ; return 0; }
7351 EOF 7355 EOF
7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7353 rm -rf conftest* 7357 rm -rf conftest*
7354 eval "ac_cv_func_$ac_func=yes" 7358 eval "ac_cv_func_$ac_func=yes"
7355 else 7359 else
7356 echo "configure: failed program was:" >&5 7360 echo "configure: failed program was:" >&5
7357 cat conftest.$ac_ext >&5 7361 cat conftest.$ac_ext >&5
7378 7382
7379 fi 7383 fi
7380 7384
7381 if test "$with_postgresql" != "no"; then 7385 if test "$with_postgresql" != "no"; then
7382 echo "checking for PostgreSQL" 1>&6 7386 echo "checking for PostgreSQL" 1>&6
7383 echo "configure:7384: checking for PostgreSQL" >&5 7387 echo "configure:7388: checking for PostgreSQL" >&5
7384 7388
7385 for header_dir in "" "pgsql/" "postgresql/"; do 7389 for header_dir in "" "pgsql/" "postgresql/"; do
7386 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 7390 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7387 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 7391 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7388 echo "configure:7389: checking for ${header_dir}libpq-fe.h" >&5 7392 echo "configure:7393: checking for ${header_dir}libpq-fe.h" >&5
7389 7393
7390 cat > conftest.$ac_ext <<EOF 7394 cat > conftest.$ac_ext <<EOF
7391 #line 7392 "configure" 7395 #line 7396 "configure"
7392 #include "confdefs.h" 7396 #include "confdefs.h"
7393 #include <${header_dir}libpq-fe.h> 7397 #include <${header_dir}libpq-fe.h>
7394 EOF 7398 EOF
7395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7396 { (eval echo configure:7397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7400 { (eval echo configure:7401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7398 if test -z "$ac_err"; then 7402 if test -z "$ac_err"; then
7399 rm -rf conftest* 7403 rm -rf conftest*
7400 eval "ac_cv_header_$ac_safe=yes" 7404 eval "ac_cv_header_$ac_safe=yes"
7401 else 7405 else
7415 7419
7416 done 7420 done
7417 7421
7418 test -n "$libpq_fe_h_file" && { 7422 test -n "$libpq_fe_h_file" && {
7419 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 7423 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7420 echo "configure:7421: checking for PQconnectdb in -lpq" >&5 7424 echo "configure:7425: checking for PQconnectdb in -lpq" >&5
7421 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 7425 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7422 7426
7423 xe_check_libs=" -lpq " 7427 xe_check_libs=" -lpq "
7424 cat > conftest.$ac_ext <<EOF 7428 cat > conftest.$ac_ext <<EOF
7425 #line 7426 "configure" 7429 #line 7430 "configure"
7426 #include "confdefs.h" 7430 #include "confdefs.h"
7427 /* Override any gcc2 internal prototype to avoid an error. */ 7431 /* Override any gcc2 internal prototype to avoid an error. */
7428 /* We use char because int might match the return type of a gcc2 7432 /* We use char because int might match the return type of a gcc2
7429 builtin and then its argument prototype would still apply. */ 7433 builtin and then its argument prototype would still apply. */
7430 char PQconnectdb(); 7434 char PQconnectdb();
7431 7435
7432 int main() { 7436 int main() {
7433 PQconnectdb() 7437 PQconnectdb()
7434 ; return 0; } 7438 ; return 0; }
7435 EOF 7439 EOF
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7437 rm -rf conftest* 7441 rm -rf conftest*
7438 eval "ac_cv_lib_$ac_lib_var=yes" 7442 eval "ac_cv_lib_$ac_lib_var=yes"
7439 else 7443 else
7440 echo "configure: failed program was:" >&5 7444 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5 7445 cat conftest.$ac_ext >&5
7464 EOF 7468 EOF
7465 } 7469 }
7466 7470
7467 7471
7468 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 7472 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7469 echo "configure:7470: checking for PQconnectStart in -lpq" >&5 7473 echo "configure:7474: checking for PQconnectStart in -lpq" >&5
7470 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 7474 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7471 7475
7472 xe_check_libs=" -lpq " 7476 xe_check_libs=" -lpq "
7473 cat > conftest.$ac_ext <<EOF 7477 cat > conftest.$ac_ext <<EOF
7474 #line 7475 "configure" 7478 #line 7479 "configure"
7475 #include "confdefs.h" 7479 #include "confdefs.h"
7476 /* Override any gcc2 internal prototype to avoid an error. */ 7480 /* Override any gcc2 internal prototype to avoid an error. */
7477 /* We use char because int might match the return type of a gcc2 7481 /* We use char because int might match the return type of a gcc2
7478 builtin and then its argument prototype would still apply. */ 7482 builtin and then its argument prototype would still apply. */
7479 char PQconnectStart(); 7483 char PQconnectStart();
7480 7484
7481 int main() { 7485 int main() {
7482 PQconnectStart() 7486 PQconnectStart()
7483 ; return 0; } 7487 ; return 0; }
7484 EOF 7488 EOF
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7489 if { (eval echo configure:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7486 rm -rf conftest* 7490 rm -rf conftest*
7487 eval "ac_cv_lib_$ac_lib_var=yes" 7491 eval "ac_cv_lib_$ac_lib_var=yes"
7488 else 7492 else
7489 echo "configure: failed program was:" >&5 7493 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5 7494 cat conftest.$ac_ext >&5
7528 fi 7532 fi
7529 7533
7530 7534
7531 if test "$window_system" != "none"; then 7535 if test "$window_system" != "none"; then
7532 echo "checking for graphics libraries" 1>&6 7536 echo "checking for graphics libraries" 1>&6
7533 echo "configure:7534: checking for graphics libraries" >&5 7537 echo "configure:7538: checking for graphics libraries" >&5
7534 7538
7535 xpm_problem="" 7539 xpm_problem=""
7536 if test -z "$with_xpm"; then 7540 if test -z "$with_xpm"; then
7537 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 7541 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7538 echo "configure:7539: checking for Xpm - no older than 3.4f" >&5 7542 echo "configure:7543: checking for Xpm - no older than 3.4f" >&5
7539 xe_check_libs=-lXpm 7543 xe_check_libs=-lXpm
7540 cat > conftest.$ac_ext <<EOF 7544 cat > conftest.$ac_ext <<EOF
7541 #line 7542 "configure" 7545 #line 7546 "configure"
7542 #include "confdefs.h" 7546 #include "confdefs.h"
7543 #define XPM_NUMBERS 7547 #define XPM_NUMBERS
7544 #include <X11/xpm.h> 7548 #include <X11/xpm.h>
7545 int main(int c, char **v) { 7549 int main(int c, char **v) {
7546 return c == 1 ? 0 : 7550 return c == 1 ? 0 :
7547 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 7551 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7548 XpmIncludeVersion < 30406 ? 2 : 0 ;} 7552 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7549 EOF 7553 EOF
7550 if { (eval echo configure:7551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7554 if { (eval echo configure:7555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7551 then 7555 then
7552 ./conftest dummy_arg; xpm_status=$?; 7556 ./conftest dummy_arg; xpm_status=$?;
7553 if test "$xpm_status" = "0"; then 7557 if test "$xpm_status" = "0"; then
7554 with_xpm=yes; 7558 with_xpm=yes;
7555 else 7559 else
7577 rm -fr conftest* 7581 rm -fr conftest*
7578 xe_check_libs= 7582 xe_check_libs=
7579 echo "$ac_t""$with_xpm" 1>&6 7583 echo "$ac_t""$with_xpm" 1>&6
7580 fi 7584 fi
7581 if test "$with_xpm" = "yes"; then 7585 if test "$with_xpm" = "yes"; then
7582 { test "$extra_verbose" = "yes" && cat << \EOF 7586 { test "$extra_verbose" = "yes" && cat << \EOF
7583 Defining HAVE_XPM 7587 Defining HAVE_XPM
7584 EOF 7588 EOF
7585 cat >> confdefs.h <<\EOF 7589 cat >> confdefs.h <<\EOF
7586 #define HAVE_XPM 1 7590 #define HAVE_XPM 1
7587 EOF 7591 EOF
7588 } 7592 }
7589 7593
7590 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 7594 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7591 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 7595 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7592 echo "configure:7593: checking for \"FOR_MSW\" xpm" >&5 7596 echo "configure:7597: checking for \"FOR_MSW\" xpm" >&5
7593 xe_check_libs=-lXpm 7597 xe_check_libs=-lXpm
7594 cat > conftest.$ac_ext <<EOF 7598 cat > conftest.$ac_ext <<EOF
7595 #line 7596 "configure" 7599 #line 7600 "configure"
7596 #include "confdefs.h" 7600 #include "confdefs.h"
7597 7601
7598 int main() { 7602 int main() {
7599 XpmCreatePixmapFromData() 7603 XpmCreatePixmapFromData()
7600 ; return 0; } 7604 ; return 0; }
7601 EOF 7605 EOF
7602 if { (eval echo configure:7603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7603 rm -rf conftest* 7607 rm -rf conftest*
7604 xpm_for_msw=no 7608 xpm_for_msw=no
7605 else 7609 else
7606 echo "configure: failed program was:" >&5 7610 echo "configure: failed program was:" >&5
7607 cat conftest.$ac_ext >&5 7611 cat conftest.$ac_ext >&5
7623 fi 7627 fi
7624 fi 7628 fi
7625 7629
7626 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7630 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7627 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7631 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7628 echo "configure:7629: checking for compface.h" >&5 7632 echo "configure:7633: checking for compface.h" >&5
7629 7633
7630 cat > conftest.$ac_ext <<EOF 7634 cat > conftest.$ac_ext <<EOF
7631 #line 7632 "configure" 7635 #line 7636 "configure"
7632 #include "confdefs.h" 7636 #include "confdefs.h"
7633 #include <compface.h> 7637 #include <compface.h>
7634 EOF 7638 EOF
7635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7636 { (eval echo configure:7637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7640 { (eval echo configure:7641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7638 if test -z "$ac_err"; then 7642 if test -z "$ac_err"; then
7639 rm -rf conftest* 7643 rm -rf conftest*
7640 eval "ac_cv_header_$ac_safe=yes" 7644 eval "ac_cv_header_$ac_safe=yes"
7641 else 7645 else
7654 with_xface=no 7658 with_xface=no
7655 fi 7659 fi
7656 } 7660 }
7657 test -z "$with_xface" && { 7661 test -z "$with_xface" && {
7658 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7662 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7659 echo "configure:7660: checking for UnGenFace in -lcompface" >&5 7663 echo "configure:7664: checking for UnGenFace in -lcompface" >&5
7660 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7664 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7661 7665
7662 xe_check_libs=" -lcompface " 7666 xe_check_libs=" -lcompface "
7663 cat > conftest.$ac_ext <<EOF 7667 cat > conftest.$ac_ext <<EOF
7664 #line 7665 "configure" 7668 #line 7669 "configure"
7665 #include "confdefs.h" 7669 #include "confdefs.h"
7666 /* Override any gcc2 internal prototype to avoid an error. */ 7670 /* Override any gcc2 internal prototype to avoid an error. */
7667 /* We use char because int might match the return type of a gcc2 7671 /* We use char because int might match the return type of a gcc2
7668 builtin and then its argument prototype would still apply. */ 7672 builtin and then its argument prototype would still apply. */
7669 char UnGenFace(); 7673 char UnGenFace();
7670 7674
7671 int main() { 7675 int main() {
7672 UnGenFace() 7676 UnGenFace()
7673 ; return 0; } 7677 ; return 0; }
7674 EOF 7678 EOF
7675 if { (eval echo configure:7676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7679 if { (eval echo configure:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7676 rm -rf conftest* 7680 rm -rf conftest*
7677 eval "ac_cv_lib_$ac_lib_var=yes" 7681 eval "ac_cv_lib_$ac_lib_var=yes"
7678 else 7682 else
7679 echo "configure: failed program was:" >&5 7683 echo "configure: failed program was:" >&5
7680 cat conftest.$ac_ext >&5 7684 cat conftest.$ac_ext >&5
7722 fi 7726 fi
7723 7727
7724 if test "$with_png $with_tiff" != "no no"; then 7728 if test "$with_png $with_tiff" != "no no"; then
7725 7729
7726 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 7730 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7727 echo "configure:7728: checking for inflate in -lc" >&5 7731 echo "configure:7732: checking for inflate in -lc" >&5
7728 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 7732 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7729 7733
7730 xe_check_libs=" -lc " 7734 xe_check_libs=" -lc "
7731 cat > conftest.$ac_ext <<EOF 7735 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure" 7736 #line 7737 "configure"
7733 #include "confdefs.h" 7737 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */ 7738 /* Override any gcc2 internal prototype to avoid an error. */
7735 /* We use char because int might match the return type of a gcc2 7739 /* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */ 7740 builtin and then its argument prototype would still apply. */
7737 char inflate(); 7741 char inflate();
7738 7742
7739 int main() { 7743 int main() {
7740 inflate() 7744 inflate()
7741 ; return 0; } 7745 ; return 0; }
7742 EOF 7746 EOF
7743 if { (eval echo configure:7744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7744 rm -rf conftest* 7748 rm -rf conftest*
7745 eval "ac_cv_lib_$ac_lib_var=yes" 7749 eval "ac_cv_lib_$ac_lib_var=yes"
7746 else 7750 else
7747 echo "configure: failed program was:" >&5 7751 echo "configure: failed program was:" >&5
7748 cat conftest.$ac_ext >&5 7752 cat conftest.$ac_ext >&5
7757 : 7761 :
7758 else 7762 else
7759 echo "$ac_t""no" 1>&6 7763 echo "$ac_t""no" 1>&6
7760 7764
7761 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 7765 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7762 echo "configure:7763: checking for inflate in -lz" >&5 7766 echo "configure:7767: checking for inflate in -lz" >&5
7763 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 7767 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7764 7768
7765 xe_check_libs=" -lz " 7769 xe_check_libs=" -lz "
7766 cat > conftest.$ac_ext <<EOF 7770 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure" 7771 #line 7772 "configure"
7768 #include "confdefs.h" 7772 #include "confdefs.h"
7769 /* Override any gcc2 internal prototype to avoid an error. */ 7773 /* Override any gcc2 internal prototype to avoid an error. */
7770 /* We use char because int might match the return type of a gcc2 7774 /* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */ 7775 builtin and then its argument prototype would still apply. */
7772 char inflate(); 7776 char inflate();
7773 7777
7774 int main() { 7778 int main() {
7775 inflate() 7779 inflate()
7776 ; return 0; } 7780 ; return 0; }
7777 EOF 7781 EOF
7778 if { (eval echo configure:7779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7782 if { (eval echo configure:7783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7779 rm -rf conftest* 7783 rm -rf conftest*
7780 eval "ac_cv_lib_$ac_lib_var=yes" 7784 eval "ac_cv_lib_$ac_lib_var=yes"
7781 else 7785 else
7782 echo "configure: failed program was:" >&5 7786 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5 7787 cat conftest.$ac_ext >&5
7792 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 7796 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7793 else 7797 else
7794 echo "$ac_t""no" 1>&6 7798 echo "$ac_t""no" 1>&6
7795 7799
7796 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 7800 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7797 echo "configure:7798: checking for inflate in -lgz" >&5 7801 echo "configure:7802: checking for inflate in -lgz" >&5
7798 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 7802 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7799 7803
7800 xe_check_libs=" -lgz " 7804 xe_check_libs=" -lgz "
7801 cat > conftest.$ac_ext <<EOF 7805 cat > conftest.$ac_ext <<EOF
7802 #line 7803 "configure" 7806 #line 7807 "configure"
7803 #include "confdefs.h" 7807 #include "confdefs.h"
7804 /* Override any gcc2 internal prototype to avoid an error. */ 7808 /* Override any gcc2 internal prototype to avoid an error. */
7805 /* We use char because int might match the return type of a gcc2 7809 /* We use char because int might match the return type of a gcc2
7806 builtin and then its argument prototype would still apply. */ 7810 builtin and then its argument prototype would still apply. */
7807 char inflate(); 7811 char inflate();
7808 7812
7809 int main() { 7813 int main() {
7810 inflate() 7814 inflate()
7811 ; return 0; } 7815 ; return 0; }
7812 EOF 7816 EOF
7813 if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7814 rm -rf conftest* 7818 rm -rf conftest*
7815 eval "ac_cv_lib_$ac_lib_var=yes" 7819 eval "ac_cv_lib_$ac_lib_var=yes"
7816 else 7820 else
7817 echo "configure: failed program was:" >&5 7821 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5 7822 cat conftest.$ac_ext >&5
7838 7842
7839 fi 7843 fi
7840 7844
7841 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 7845 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7842 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 7846 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7843 echo "configure:7844: checking for jpeglib.h" >&5 7847 echo "configure:7848: checking for jpeglib.h" >&5
7844 7848
7845 cat > conftest.$ac_ext <<EOF 7849 cat > conftest.$ac_ext <<EOF
7846 #line 7847 "configure" 7850 #line 7851 "configure"
7847 #include "confdefs.h" 7851 #include "confdefs.h"
7848 #include <jpeglib.h> 7852 #include <jpeglib.h>
7849 EOF 7853 EOF
7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7855 { (eval echo configure:7856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then 7857 if test -z "$ac_err"; then
7854 rm -rf conftest* 7858 rm -rf conftest*
7855 eval "ac_cv_header_$ac_safe=yes" 7859 eval "ac_cv_header_$ac_safe=yes"
7856 else 7860 else
7869 with_jpeg=no 7873 with_jpeg=no
7870 fi 7874 fi
7871 } 7875 }
7872 test -z "$with_jpeg" && { 7876 test -z "$with_jpeg" && {
7873 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7877 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7874 echo "configure:7875: checking for jpeg_destroy_decompress in -ljpeg" >&5 7878 echo "configure:7879: checking for jpeg_destroy_decompress in -ljpeg" >&5
7875 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7879 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7876 7880
7877 xe_check_libs=" -ljpeg " 7881 xe_check_libs=" -ljpeg "
7878 cat > conftest.$ac_ext <<EOF 7882 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure" 7883 #line 7884 "configure"
7880 #include "confdefs.h" 7884 #include "confdefs.h"
7881 /* Override any gcc2 internal prototype to avoid an error. */ 7885 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2 7886 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */ 7887 builtin and then its argument prototype would still apply. */
7884 char jpeg_destroy_decompress(); 7888 char jpeg_destroy_decompress();
7885 7889
7886 int main() { 7890 int main() {
7887 jpeg_destroy_decompress() 7891 jpeg_destroy_decompress()
7888 ; return 0; } 7892 ; return 0; }
7889 EOF 7893 EOF
7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7894 if { (eval echo configure:7895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7891 rm -rf conftest* 7895 rm -rf conftest*
7892 eval "ac_cv_lib_$ac_lib_var=yes" 7896 eval "ac_cv_lib_$ac_lib_var=yes"
7893 else 7897 else
7894 echo "configure: failed program was:" >&5 7898 echo "configure: failed program was:" >&5
7895 cat conftest.$ac_ext >&5 7899 cat conftest.$ac_ext >&5
7921 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7925 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7922 fi 7926 fi
7923 7927
7924 png_problem="" 7928 png_problem=""
7925 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7929 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7926 echo "configure:7927: checking for pow" >&5 7930 echo "configure:7931: checking for pow" >&5
7927 7931
7928 cat > conftest.$ac_ext <<EOF 7932 cat > conftest.$ac_ext <<EOF
7929 #line 7930 "configure" 7933 #line 7934 "configure"
7930 #include "confdefs.h" 7934 #include "confdefs.h"
7931 /* System header to define __stub macros and hopefully few prototypes, 7935 /* System header to define __stub macros and hopefully few prototypes,
7932 which can conflict with char pow(); below. */ 7936 which can conflict with char pow(); below. */
7933 #include <assert.h> 7937 #include <assert.h>
7934 /* Override any gcc2 internal prototype to avoid an error. */ 7938 /* Override any gcc2 internal prototype to avoid an error. */
7947 pow(); 7951 pow();
7948 #endif 7952 #endif
7949 7953
7950 ; return 0; } 7954 ; return 0; }
7951 EOF 7955 EOF
7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7953 rm -rf conftest* 7957 rm -rf conftest*
7954 eval "ac_cv_func_pow=yes" 7958 eval "ac_cv_func_pow=yes"
7955 else 7959 else
7956 echo "configure: failed program was:" >&5 7960 echo "configure: failed program was:" >&5
7957 cat conftest.$ac_ext >&5 7961 cat conftest.$ac_ext >&5
7968 with_png=no 7972 with_png=no
7969 fi 7973 fi
7970 } 7974 }
7971 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7975 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7972 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7976 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7973 echo "configure:7974: checking for png.h" >&5 7977 echo "configure:7978: checking for png.h" >&5
7974 7978
7975 cat > conftest.$ac_ext <<EOF 7979 cat > conftest.$ac_ext <<EOF
7976 #line 7977 "configure" 7980 #line 7981 "configure"
7977 #include "confdefs.h" 7981 #include "confdefs.h"
7978 #include <png.h> 7982 #include <png.h>
7979 EOF 7983 EOF
7980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7981 { (eval echo configure:7982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7985 { (eval echo configure:7986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7983 if test -z "$ac_err"; then 7987 if test -z "$ac_err"; then
7984 rm -rf conftest* 7988 rm -rf conftest*
7985 eval "ac_cv_header_$ac_safe=yes" 7989 eval "ac_cv_header_$ac_safe=yes"
7986 else 7990 else
7999 with_png=no 8003 with_png=no
8000 fi 8004 fi
8001 } 8005 }
8002 test -z "$with_png" && { 8006 test -z "$with_png" && {
8003 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 8007 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8004 echo "configure:8005: checking for png_read_image in -lpng" >&5 8008 echo "configure:8009: checking for png_read_image in -lpng" >&5
8005 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 8009 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8006 8010
8007 xe_check_libs=" -lpng " 8011 xe_check_libs=" -lpng "
8008 cat > conftest.$ac_ext <<EOF 8012 cat > conftest.$ac_ext <<EOF
8009 #line 8010 "configure" 8013 #line 8014 "configure"
8010 #include "confdefs.h" 8014 #include "confdefs.h"
8011 /* Override any gcc2 internal prototype to avoid an error. */ 8015 /* Override any gcc2 internal prototype to avoid an error. */
8012 /* We use char because int might match the return type of a gcc2 8016 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */ 8017 builtin and then its argument prototype would still apply. */
8014 char png_read_image(); 8018 char png_read_image();
8015 8019
8016 int main() { 8020 int main() {
8017 png_read_image() 8021 png_read_image()
8018 ; return 0; } 8022 ; return 0; }
8019 EOF 8023 EOF
8020 if { (eval echo configure:8021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8021 rm -rf conftest* 8025 rm -rf conftest*
8022 eval "ac_cv_lib_$ac_lib_var=yes" 8026 eval "ac_cv_lib_$ac_lib_var=yes"
8023 else 8027 else
8024 echo "configure: failed program was:" >&5 8028 echo "configure: failed program was:" >&5
8025 cat conftest.$ac_ext >&5 8029 cat conftest.$ac_ext >&5
8038 fi 8042 fi
8039 8043
8040 } 8044 }
8041 if test -z "$with_png"; then 8045 if test -z "$with_png"; then
8042 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 8046 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8043 echo "configure:8044: checking for workable png version information" >&5 8047 echo "configure:8048: checking for workable png version information" >&5
8044 xe_check_libs="-lpng -lz" 8048 xe_check_libs="-lpng -lz"
8045 cat > conftest.$ac_ext <<EOF 8049 cat > conftest.$ac_ext <<EOF
8046 #line 8047 "configure" 8050 #line 8051 "configure"
8047 #include "confdefs.h" 8051 #include "confdefs.h"
8048 #include <png.h> 8052 #include <png.h>
8049 int main(int c, char **v) { 8053 int main(int c, char **v) {
8050 if (c == 1) return 0; 8054 if (c == 1) return 0;
8051 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 8055 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8052 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 8056 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8053 EOF 8057 EOF
8054 if { (eval echo configure:8055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8055 then 8059 then
8056 ./conftest dummy_arg; png_status=$?; 8060 ./conftest dummy_arg; png_status=$?;
8057 if test "$png_status" = "0"; then 8061 if test "$png_status" = "0"; then
8058 with_png=yes; 8062 with_png=yes;
8059 else 8063 else
8092 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 8096 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8093 fi 8097 fi
8094 8098
8095 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 8099 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8096 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 8100 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8097 echo "configure:8098: checking for tiffio.h" >&5 8101 echo "configure:8102: checking for tiffio.h" >&5
8098 8102
8099 cat > conftest.$ac_ext <<EOF 8103 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure" 8104 #line 8105 "configure"
8101 #include "confdefs.h" 8105 #include "confdefs.h"
8102 #include <tiffio.h> 8106 #include <tiffio.h>
8103 EOF 8107 EOF
8104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8105 { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8109 { (eval echo configure:8110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8107 if test -z "$ac_err"; then 8111 if test -z "$ac_err"; then
8108 rm -rf conftest* 8112 rm -rf conftest*
8109 eval "ac_cv_header_$ac_safe=yes" 8113 eval "ac_cv_header_$ac_safe=yes"
8110 else 8114 else
8123 with_tiff=no 8127 with_tiff=no
8124 fi 8128 fi
8125 } 8129 }
8126 test -z "$with_tiff" && { 8130 test -z "$with_tiff" && {
8127 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 8131 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8128 echo "configure:8129: checking for TIFFClientOpen in -ltiff" >&5 8132 echo "configure:8133: checking for TIFFClientOpen in -ltiff" >&5
8129 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 8133 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8130 8134
8131 xe_check_libs=" -ltiff " 8135 xe_check_libs=" -ltiff "
8132 cat > conftest.$ac_ext <<EOF 8136 cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure" 8137 #line 8138 "configure"
8134 #include "confdefs.h" 8138 #include "confdefs.h"
8135 /* Override any gcc2 internal prototype to avoid an error. */ 8139 /* Override any gcc2 internal prototype to avoid an error. */
8136 /* We use char because int might match the return type of a gcc2 8140 /* We use char because int might match the return type of a gcc2
8137 builtin and then its argument prototype would still apply. */ 8141 builtin and then its argument prototype would still apply. */
8138 char TIFFClientOpen(); 8142 char TIFFClientOpen();
8139 8143
8140 int main() { 8144 int main() {
8141 TIFFClientOpen() 8145 TIFFClientOpen()
8142 ; return 0; } 8146 ; return 0; }
8143 EOF 8147 EOF
8144 if { (eval echo configure:8145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8148 if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8145 rm -rf conftest* 8149 rm -rf conftest*
8146 eval "ac_cv_lib_$ac_lib_var=yes" 8150 eval "ac_cv_lib_$ac_lib_var=yes"
8147 else 8151 else
8148 echo "configure: failed program was:" >&5 8152 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5 8153 cat conftest.$ac_ext >&5
8178 8182
8179 8183
8180 if test "$with_x11" = "yes"; then 8184 if test "$with_x11" = "yes"; then
8181 8185
8182 echo "checking for X11 graphics libraries" 1>&6 8186 echo "checking for X11 graphics libraries" 1>&6
8183 echo "configure:8184: checking for X11 graphics libraries" >&5 8187 echo "configure:8188: checking for X11 graphics libraries" >&5
8184 8188
8185 echo "checking for the Athena widgets" 1>&6 8189 echo "checking for the Athena widgets" 1>&6
8186 echo "configure:8187: checking for the Athena widgets" >&5 8190 echo "configure:8191: checking for the Athena widgets" >&5
8187 8191
8188 case "$with_athena" in 8192 case "$with_athena" in
8189 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 8193 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8190 "3d") athena_variant=Xaw3d athena_3d=yes ;; 8194 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8191 "next") athena_variant=neXtaw athena_3d=yes ;; 8195 "next") athena_variant=neXtaw athena_3d=yes ;;
8195 esac 8199 esac
8196 8200
8197 if test "$athena_3d" = "no"; then 8201 if test "$athena_3d" = "no"; then
8198 8202
8199 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 8203 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8200 echo "configure:8201: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 8204 echo "configure:8205: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8201 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 8205 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8202 8206
8203 xe_check_libs=" -l$athena_variant " 8207 xe_check_libs=" -l$athena_variant "
8204 cat > conftest.$ac_ext <<EOF 8208 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure" 8209 #line 8210 "configure"
8206 #include "confdefs.h" 8210 #include "confdefs.h"
8207 /* Override any gcc2 internal prototype to avoid an error. */ 8211 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2 8212 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */ 8213 builtin and then its argument prototype would still apply. */
8210 char XawScrollbarSetThumb(); 8214 char XawScrollbarSetThumb();
8211 8215
8212 int main() { 8216 int main() {
8213 XawScrollbarSetThumb() 8217 XawScrollbarSetThumb()
8214 ; return 0; } 8218 ; return 0; }
8215 EOF 8219 EOF
8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8220 if { (eval echo configure:8221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8217 rm -rf conftest* 8221 rm -rf conftest*
8218 eval "ac_cv_lib_$ac_lib_var=yes" 8222 eval "ac_cv_lib_$ac_lib_var=yes"
8219 else 8223 else
8220 echo "configure: failed program was:" >&5 8224 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5 8225 cat conftest.$ac_ext >&5
8227 8231
8228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8229 echo "$ac_t""yes" 1>&6 8233 echo "$ac_t""yes" 1>&6
8230 8234
8231 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8235 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8232 echo "configure:8233: checking for threeDClassRec in -l$athena_variant" >&5 8236 echo "configure:8237: checking for threeDClassRec in -l$athena_variant" >&5
8233 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8237 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8234 8238
8235 xe_check_libs=" -l$athena_variant " 8239 xe_check_libs=" -l$athena_variant "
8236 cat > conftest.$ac_ext <<EOF 8240 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure" 8241 #line 8242 "configure"
8238 #include "confdefs.h" 8242 #include "confdefs.h"
8239 /* Override any gcc2 internal prototype to avoid an error. */ 8243 /* Override any gcc2 internal prototype to avoid an error. */
8240 /* We use char because int might match the return type of a gcc2 8244 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */ 8245 builtin and then its argument prototype would still apply. */
8242 char threeDClassRec(); 8246 char threeDClassRec();
8243 8247
8244 int main() { 8248 int main() {
8245 threeDClassRec() 8249 threeDClassRec()
8246 ; return 0; } 8250 ; return 0; }
8247 EOF 8251 EOF
8248 if { (eval echo configure:8249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8252 if { (eval echo configure:8253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8249 rm -rf conftest* 8253 rm -rf conftest*
8250 eval "ac_cv_lib_$ac_lib_var=yes" 8254 eval "ac_cv_lib_$ac_lib_var=yes"
8251 else 8255 else
8252 echo "configure: failed program was:" >&5 8256 echo "configure: failed program was:" >&5
8253 cat conftest.$ac_ext >&5 8257 cat conftest.$ac_ext >&5
8274 8278
8275 8279
8276 else 8280 else
8277 8281
8278 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8282 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8279 echo "configure:8280: checking for threeDClassRec in -l$athena_variant" >&5 8283 echo "configure:8284: checking for threeDClassRec in -l$athena_variant" >&5
8280 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8284 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8281 8285
8282 xe_check_libs=" -l$athena_variant " 8286 xe_check_libs=" -l$athena_variant "
8283 cat > conftest.$ac_ext <<EOF 8287 cat > conftest.$ac_ext <<EOF
8284 #line 8285 "configure" 8288 #line 8289 "configure"
8285 #include "confdefs.h" 8289 #include "confdefs.h"
8286 /* Override any gcc2 internal prototype to avoid an error. */ 8290 /* Override any gcc2 internal prototype to avoid an error. */
8287 /* We use char because int might match the return type of a gcc2 8291 /* We use char because int might match the return type of a gcc2
8288 builtin and then its argument prototype would still apply. */ 8292 builtin and then its argument prototype would still apply. */
8289 char threeDClassRec(); 8293 char threeDClassRec();
8290 8294
8291 int main() { 8295 int main() {
8292 threeDClassRec() 8296 threeDClassRec()
8293 ; return 0; } 8297 ; return 0; }
8294 EOF 8298 EOF
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8299 if { (eval echo configure:8300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8296 rm -rf conftest* 8300 rm -rf conftest*
8297 eval "ac_cv_lib_$ac_lib_var=yes" 8301 eval "ac_cv_lib_$ac_lib_var=yes"
8298 else 8302 else
8299 echo "configure: failed program was:" >&5 8303 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5 8304 cat conftest.$ac_ext >&5
8308 echo "$ac_t""yes" 1>&6 8312 echo "$ac_t""yes" 1>&6
8309 athena_lib=$athena_variant 8313 athena_lib=$athena_variant
8310 else 8314 else
8311 echo "$ac_t""no" 1>&6 8315 echo "$ac_t""no" 1>&6
8312 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 8316 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8313 echo "configure:8314: checking for threeDClassRec in -lXaw" >&5 8317 echo "configure:8318: checking for threeDClassRec in -lXaw" >&5
8314 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 8318 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8315 8319
8316 xe_check_libs=" -lXaw " 8320 xe_check_libs=" -lXaw "
8317 cat > conftest.$ac_ext <<EOF 8321 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure" 8322 #line 8323 "configure"
8319 #include "confdefs.h" 8323 #include "confdefs.h"
8320 /* Override any gcc2 internal prototype to avoid an error. */ 8324 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2 8325 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */ 8326 builtin and then its argument prototype would still apply. */
8323 char threeDClassRec(); 8327 char threeDClassRec();
8324 8328
8325 int main() { 8329 int main() {
8326 threeDClassRec() 8330 threeDClassRec()
8327 ; return 0; } 8331 ; return 0; }
8328 EOF 8332 EOF
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8330 rm -rf conftest* 8334 rm -rf conftest*
8331 eval "ac_cv_lib_$ac_lib_var=yes" 8335 eval "ac_cv_lib_$ac_lib_var=yes"
8332 else 8336 else
8333 echo "configure: failed program was:" >&5 8337 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5 8338 cat conftest.$ac_ext >&5
8355 fi 8359 fi
8356 8360
8357 if test "$athena_3d" = "no"; then 8361 if test "$athena_3d" = "no"; then
8358 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8362 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8359 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8363 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8360 echo "configure:8361: checking for X11/Xaw/ThreeD.h" >&5 8364 echo "configure:8365: checking for X11/Xaw/ThreeD.h" >&5
8361 8365
8362 cat > conftest.$ac_ext <<EOF 8366 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure" 8367 #line 8368 "configure"
8364 #include "confdefs.h" 8368 #include "confdefs.h"
8365 #include <X11/Xaw/ThreeD.h> 8369 #include <X11/Xaw/ThreeD.h>
8366 EOF 8370 EOF
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8372 { (eval echo configure:8373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then 8374 if test -z "$ac_err"; then
8371 rm -rf conftest* 8375 rm -rf conftest*
8372 eval "ac_cv_header_$ac_safe=yes" 8376 eval "ac_cv_header_$ac_safe=yes"
8373 else 8377 else
8383 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2 8387 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8384 else 8388 else
8385 echo "$ac_t""no" 1>&6 8389 echo "$ac_t""no" 1>&6
8386 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 8390 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8387 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 8391 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8388 echo "configure:8389: checking for X11/Xaw/XawInit.h" >&5 8392 echo "configure:8393: checking for X11/Xaw/XawInit.h" >&5
8389 8393
8390 cat > conftest.$ac_ext <<EOF 8394 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure" 8395 #line 8396 "configure"
8392 #include "confdefs.h" 8396 #include "confdefs.h"
8393 #include <X11/Xaw/XawInit.h> 8397 #include <X11/Xaw/XawInit.h>
8394 EOF 8398 EOF
8395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8396 { (eval echo configure:8397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8400 { (eval echo configure:8401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8398 if test -z "$ac_err"; then 8402 if test -z "$ac_err"; then
8399 rm -rf conftest* 8403 rm -rf conftest*
8400 eval "ac_cv_header_$ac_safe=yes" 8404 eval "ac_cv_header_$ac_safe=yes"
8401 else 8405 else
8417 fi 8421 fi
8418 8422
8419 else 8423 else
8420 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8424 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8421 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 8425 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8422 echo "configure:8423: checking for X11/$athena_variant/XawInit.h" >&5 8426 echo "configure:8427: checking for X11/$athena_variant/XawInit.h" >&5
8423 8427
8424 cat > conftest.$ac_ext <<EOF 8428 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure" 8429 #line 8430 "configure"
8426 #include "confdefs.h" 8430 #include "confdefs.h"
8427 #include <X11/$athena_variant/XawInit.h> 8431 #include <X11/$athena_variant/XawInit.h>
8428 EOF 8432 EOF
8429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8430 { (eval echo configure:8431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8434 { (eval echo configure:8435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8432 if test -z "$ac_err"; then 8436 if test -z "$ac_err"; then
8433 rm -rf conftest* 8437 rm -rf conftest*
8434 eval "ac_cv_header_$ac_safe=yes" 8438 eval "ac_cv_header_$ac_safe=yes"
8435 else 8439 else
8442 rm -f conftest* 8446 rm -f conftest*
8443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8444 echo "$ac_t""yes" 1>&6 8448 echo "$ac_t""yes" 1>&6
8445 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8449 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8446 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 8450 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8447 echo "configure:8448: checking for X11/$athena_variant/ThreeD.h" >&5 8451 echo "configure:8452: checking for X11/$athena_variant/ThreeD.h" >&5
8448 8452
8449 cat > conftest.$ac_ext <<EOF 8453 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure" 8454 #line 8455 "configure"
8451 #include "confdefs.h" 8455 #include "confdefs.h"
8452 #include <X11/$athena_variant/ThreeD.h> 8456 #include <X11/$athena_variant/ThreeD.h>
8453 EOF 8457 EOF
8454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8455 { (eval echo configure:8456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8459 { (eval echo configure:8460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8457 if test -z "$ac_err"; then 8461 if test -z "$ac_err"; then
8458 rm -rf conftest* 8462 rm -rf conftest*
8459 eval "ac_cv_header_$ac_safe=yes" 8463 eval "ac_cv_header_$ac_safe=yes"
8460 else 8464 else
8478 8482
8479 8483
8480 if test -z "$athena_h_path"; then 8484 if test -z "$athena_h_path"; then
8481 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8485 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8482 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 8486 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8483 echo "configure:8484: checking for $athena_variant/XawInit.h" >&5 8487 echo "configure:8488: checking for $athena_variant/XawInit.h" >&5
8484 8488
8485 cat > conftest.$ac_ext <<EOF 8489 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure" 8490 #line 8491 "configure"
8487 #include "confdefs.h" 8491 #include "confdefs.h"
8488 #include <$athena_variant/XawInit.h> 8492 #include <$athena_variant/XawInit.h>
8489 EOF 8493 EOF
8490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8491 { (eval echo configure:8492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8495 { (eval echo configure:8496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8493 if test -z "$ac_err"; then 8497 if test -z "$ac_err"; then
8494 rm -rf conftest* 8498 rm -rf conftest*
8495 eval "ac_cv_header_$ac_safe=yes" 8499 eval "ac_cv_header_$ac_safe=yes"
8496 else 8500 else
8503 rm -f conftest* 8507 rm -f conftest*
8504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6 8509 echo "$ac_t""yes" 1>&6
8506 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 8510 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8507 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 8511 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8508 echo "configure:8509: checking for $athena_variant/ThreeD.h" >&5 8512 echo "configure:8513: checking for $athena_variant/ThreeD.h" >&5
8509 8513
8510 cat > conftest.$ac_ext <<EOF 8514 cat > conftest.$ac_ext <<EOF
8511 #line 8512 "configure" 8515 #line 8516 "configure"
8512 #include "confdefs.h" 8516 #include "confdefs.h"
8513 #include <$athena_variant/ThreeD.h> 8517 #include <$athena_variant/ThreeD.h>
8514 EOF 8518 EOF
8515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8516 { (eval echo configure:8517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8520 { (eval echo configure:8521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8518 if test -z "$ac_err"; then 8522 if test -z "$ac_err"; then
8519 rm -rf conftest* 8523 rm -rf conftest*
8520 eval "ac_cv_header_$ac_safe=yes" 8524 eval "ac_cv_header_$ac_safe=yes"
8521 else 8525 else
8540 fi 8544 fi
8541 8545
8542 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8546 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8543 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8547 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8544 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 8548 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8545 echo "configure:8546: checking for X11/Xaw3d/XawInit.h" >&5 8549 echo "configure:8550: checking for X11/Xaw3d/XawInit.h" >&5
8546 8550
8547 cat > conftest.$ac_ext <<EOF 8551 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure" 8552 #line 8553 "configure"
8549 #include "confdefs.h" 8553 #include "confdefs.h"
8550 #include <X11/Xaw3d/XawInit.h> 8554 #include <X11/Xaw3d/XawInit.h>
8551 EOF 8555 EOF
8552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8553 { (eval echo configure:8554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8557 { (eval echo configure:8558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8555 if test -z "$ac_err"; then 8559 if test -z "$ac_err"; then
8556 rm -rf conftest* 8560 rm -rf conftest*
8557 eval "ac_cv_header_$ac_safe=yes" 8561 eval "ac_cv_header_$ac_safe=yes"
8558 else 8562 else
8565 rm -f conftest* 8569 rm -f conftest*
8566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8567 echo "$ac_t""yes" 1>&6 8571 echo "$ac_t""yes" 1>&6
8568 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8572 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8569 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 8573 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8570 echo "configure:8571: checking for X11/Xaw3d/ThreeD.h" >&5 8574 echo "configure:8575: checking for X11/Xaw3d/ThreeD.h" >&5
8571 8575
8572 cat > conftest.$ac_ext <<EOF 8576 cat > conftest.$ac_ext <<EOF
8573 #line 8574 "configure" 8577 #line 8578 "configure"
8574 #include "confdefs.h" 8578 #include "confdefs.h"
8575 #include <X11/Xaw3d/ThreeD.h> 8579 #include <X11/Xaw3d/ThreeD.h>
8576 EOF 8580 EOF
8577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8581 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8578 { (eval echo configure:8579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8582 { (eval echo configure:8583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8583 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8580 if test -z "$ac_err"; then 8584 if test -z "$ac_err"; then
8581 rm -rf conftest* 8585 rm -rf conftest*
8582 eval "ac_cv_header_$ac_safe=yes" 8586 eval "ac_cv_header_$ac_safe=yes"
8583 else 8587 else
8605 fi 8609 fi
8606 8610
8607 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 8611 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8608 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 8612 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8609 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 8613 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8610 echo "configure:8611: checking for Xaw3d/XawInit.h" >&5 8614 echo "configure:8615: checking for Xaw3d/XawInit.h" >&5
8611 8615
8612 cat > conftest.$ac_ext <<EOF 8616 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure" 8617 #line 8618 "configure"
8614 #include "confdefs.h" 8618 #include "confdefs.h"
8615 #include <Xaw3d/XawInit.h> 8619 #include <Xaw3d/XawInit.h>
8616 EOF 8620 EOF
8617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8618 { (eval echo configure:8619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8622 { (eval echo configure:8623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8620 if test -z "$ac_err"; then 8624 if test -z "$ac_err"; then
8621 rm -rf conftest* 8625 rm -rf conftest*
8622 eval "ac_cv_header_$ac_safe=yes" 8626 eval "ac_cv_header_$ac_safe=yes"
8623 else 8627 else
8630 rm -f conftest* 8634 rm -f conftest*
8631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8632 echo "$ac_t""yes" 1>&6 8636 echo "$ac_t""yes" 1>&6
8633 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 8637 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8634 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 8638 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8635 echo "configure:8636: checking for Xaw3d/ThreeD.h" >&5 8639 echo "configure:8640: checking for Xaw3d/ThreeD.h" >&5
8636 8640
8637 cat > conftest.$ac_ext <<EOF 8641 cat > conftest.$ac_ext <<EOF
8638 #line 8639 "configure" 8642 #line 8643 "configure"
8639 #include "confdefs.h" 8643 #include "confdefs.h"
8640 #include <Xaw3d/ThreeD.h> 8644 #include <Xaw3d/ThreeD.h>
8641 EOF 8645 EOF
8642 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8643 { (eval echo configure:8644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8647 { (eval echo configure:8648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8644 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8645 if test -z "$ac_err"; then 8649 if test -z "$ac_err"; then
8646 rm -rf conftest* 8650 rm -rf conftest*
8647 eval "ac_cv_header_$ac_safe=yes" 8651 eval "ac_cv_header_$ac_safe=yes"
8648 else 8652 else
8670 fi 8674 fi
8671 8675
8672 if test -z "$athena_h_path"; then 8676 if test -z "$athena_h_path"; then
8673 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8677 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8674 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8678 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8675 echo "configure:8676: checking for X11/Xaw/ThreeD.h" >&5 8679 echo "configure:8680: checking for X11/Xaw/ThreeD.h" >&5
8676 8680
8677 cat > conftest.$ac_ext <<EOF 8681 cat > conftest.$ac_ext <<EOF
8678 #line 8679 "configure" 8682 #line 8683 "configure"
8679 #include "confdefs.h" 8683 #include "confdefs.h"
8680 #include <X11/Xaw/ThreeD.h> 8684 #include <X11/Xaw/ThreeD.h>
8681 EOF 8685 EOF
8682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8683 { (eval echo configure:8684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8687 { (eval echo configure:8688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8685 if test -z "$ac_err"; then 8689 if test -z "$ac_err"; then
8686 rm -rf conftest* 8690 rm -rf conftest*
8687 eval "ac_cv_header_$ac_safe=yes" 8691 eval "ac_cv_header_$ac_safe=yes"
8688 else 8692 else
8713 have_xaw=no 8717 have_xaw=no
8714 fi 8718 fi
8715 8719
8716 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 8720 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8717 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 8721 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8718 echo "configure:8719: checking for Xm/Xm.h" >&5 8722 echo "configure:8723: checking for Xm/Xm.h" >&5
8719 8723
8720 cat > conftest.$ac_ext <<EOF 8724 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure" 8725 #line 8726 "configure"
8722 #include "confdefs.h" 8726 #include "confdefs.h"
8723 #include <Xm/Xm.h> 8727 #include <Xm/Xm.h>
8724 EOF 8728 EOF
8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8730 { (eval echo configure:8731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8728 if test -z "$ac_err"; then 8732 if test -z "$ac_err"; then
8729 rm -rf conftest* 8733 rm -rf conftest*
8730 eval "ac_cv_header_$ac_safe=yes" 8734 eval "ac_cv_header_$ac_safe=yes"
8731 else 8735 else
8738 rm -f conftest* 8742 rm -f conftest*
8739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8740 echo "$ac_t""yes" 1>&6 8744 echo "$ac_t""yes" 1>&6
8741 8745
8742 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 8746 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8743 echo "configure:8744: checking for XmStringFree in -lXm" >&5 8747 echo "configure:8748: checking for XmStringFree in -lXm" >&5
8744 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 8748 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8745 8749
8746 xe_check_libs=" -lXm " 8750 xe_check_libs=" -lXm "
8747 cat > conftest.$ac_ext <<EOF 8751 cat > conftest.$ac_ext <<EOF
8748 #line 8749 "configure" 8752 #line 8753 "configure"
8749 #include "confdefs.h" 8753 #include "confdefs.h"
8750 /* Override any gcc2 internal prototype to avoid an error. */ 8754 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2 8755 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */ 8756 builtin and then its argument prototype would still apply. */
8753 char XmStringFree(); 8757 char XmStringFree();
8754 8758
8755 int main() { 8759 int main() {
8756 XmStringFree() 8760 XmStringFree()
8757 ; return 0; } 8761 ; return 0; }
8758 EOF 8762 EOF
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8763 if { (eval echo configure:8764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8760 rm -rf conftest* 8764 rm -rf conftest*
8761 eval "ac_cv_lib_$ac_lib_var=yes" 8765 eval "ac_cv_lib_$ac_lib_var=yes"
8762 else 8766 else
8763 echo "configure: failed program was:" >&5 8767 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5 8768 cat conftest.$ac_ext >&5
8783 fi 8787 fi
8784 8788
8785 8789
8786 if test "$have_motif" = "yes"; then 8790 if test "$have_motif" = "yes"; then
8787 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 8791 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8788 echo "configure:8789: checking for Lesstif" >&5 8792 echo "configure:8793: checking for Lesstif" >&5
8789 cat > conftest.$ac_ext <<EOF 8793 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure" 8794 #line 8795 "configure"
8791 #include "confdefs.h" 8795 #include "confdefs.h"
8792 #include <Xm/Xm.h> 8796 #include <Xm/Xm.h>
8793 #ifdef LESSTIF_VERSION 8797 #ifdef LESSTIF_VERSION
8794 yes 8798 yes
8795 #endif 8799 #endif
9191 fi 9195 fi
9192 fi 9196 fi
9193 9197
9194 if test "$with_mule" = "yes" ; then 9198 if test "$with_mule" = "yes" ; then
9195 echo "checking for Mule-related features" 1>&6 9199 echo "checking for Mule-related features" 1>&6
9196 echo "configure:9197: checking for Mule-related features" >&5 9200 echo "configure:9201: checking for Mule-related features" >&5
9197 { test "$extra_verbose" = "yes" && cat << \EOF 9201 { test "$extra_verbose" = "yes" && cat << \EOF
9198 Defining MULE 9202 Defining MULE
9199 EOF 9203 EOF
9200 cat >> confdefs.h <<\EOF 9204 cat >> confdefs.h <<\EOF
9201 #define MULE 1 9205 #define MULE 1
9216 9220
9217 for ac_hdr in libintl.h 9221 for ac_hdr in libintl.h
9218 do 9222 do
9219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9221 echo "configure:9222: checking for $ac_hdr" >&5 9225 echo "configure:9226: checking for $ac_hdr" >&5
9222 9226
9223 cat > conftest.$ac_ext <<EOF 9227 cat > conftest.$ac_ext <<EOF
9224 #line 9225 "configure" 9228 #line 9229 "configure"
9225 #include "confdefs.h" 9229 #include "confdefs.h"
9226 #include <$ac_hdr> 9230 #include <$ac_hdr>
9227 EOF 9231 EOF
9228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9229 { (eval echo configure:9230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9233 { (eval echo configure:9234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9231 if test -z "$ac_err"; then 9235 if test -z "$ac_err"; then
9232 rm -rf conftest* 9236 rm -rf conftest*
9233 eval "ac_cv_header_$ac_safe=yes" 9237 eval "ac_cv_header_$ac_safe=yes"
9234 else 9238 else
9255 fi 9259 fi
9256 done 9260 done
9257 9261
9258 9262
9259 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9263 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9260 echo "configure:9261: checking for strerror in -lintl" >&5 9264 echo "configure:9265: checking for strerror in -lintl" >&5
9261 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9265 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9262 9266
9263 xe_check_libs=" -lintl " 9267 xe_check_libs=" -lintl "
9264 cat > conftest.$ac_ext <<EOF 9268 cat > conftest.$ac_ext <<EOF
9265 #line 9266 "configure" 9269 #line 9270 "configure"
9266 #include "confdefs.h" 9270 #include "confdefs.h"
9267 /* Override any gcc2 internal prototype to avoid an error. */ 9271 /* Override any gcc2 internal prototype to avoid an error. */
9268 /* We use char because int might match the return type of a gcc2 9272 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */ 9273 builtin and then its argument prototype would still apply. */
9270 char strerror(); 9274 char strerror();
9271 9275
9272 int main() { 9276 int main() {
9273 strerror() 9277 strerror()
9274 ; return 0; } 9278 ; return 0; }
9275 EOF 9279 EOF
9276 if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9277 rm -rf conftest* 9281 rm -rf conftest*
9278 eval "ac_cv_lib_$ac_lib_var=yes" 9282 eval "ac_cv_lib_$ac_lib_var=yes"
9279 else 9283 else
9280 echo "configure: failed program was:" >&5 9284 echo "configure: failed program was:" >&5
9281 cat conftest.$ac_ext >&5 9285 cat conftest.$ac_ext >&5
9304 fi 9308 fi
9305 9309
9306 9310
9307 9311
9308 echo "checking for Mule input methods" 1>&6 9312 echo "checking for Mule input methods" 1>&6
9309 echo "configure:9310: checking for Mule input methods" >&5 9313 echo "configure:9314: checking for Mule input methods" >&5
9310 case "$with_xim" in "" | "yes" ) 9314 case "$with_xim" in "" | "yes" )
9311 echo "checking for XIM" 1>&6 9315 echo "checking for XIM" 1>&6
9312 echo "configure:9313: checking for XIM" >&5 9316 echo "configure:9317: checking for XIM" >&5
9313 9317
9314 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 9318 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9315 echo "configure:9316: checking for XOpenIM in -lX11" >&5 9319 echo "configure:9320: checking for XOpenIM in -lX11" >&5
9316 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 9320 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9317 9321
9318 xe_check_libs=" -lX11 " 9322 xe_check_libs=" -lX11 "
9319 cat > conftest.$ac_ext <<EOF 9323 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure" 9324 #line 9325 "configure"
9321 #include "confdefs.h" 9325 #include "confdefs.h"
9322 /* Override any gcc2 internal prototype to avoid an error. */ 9326 /* Override any gcc2 internal prototype to avoid an error. */
9323 /* We use char because int might match the return type of a gcc2 9327 /* We use char because int might match the return type of a gcc2
9324 builtin and then its argument prototype would still apply. */ 9328 builtin and then its argument prototype would still apply. */
9325 char XOpenIM(); 9329 char XOpenIM();
9326 9330
9327 int main() { 9331 int main() {
9328 XOpenIM() 9332 XOpenIM()
9329 ; return 0; } 9333 ; return 0; }
9330 EOF 9334 EOF
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9335 if { (eval echo configure:9336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9332 rm -rf conftest* 9336 rm -rf conftest*
9333 eval "ac_cv_lib_$ac_lib_var=yes" 9337 eval "ac_cv_lib_$ac_lib_var=yes"
9334 else 9338 else
9335 echo "configure: failed program was:" >&5 9339 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5 9340 cat conftest.$ac_ext >&5
9350 9354
9351 9355
9352 if test "$have_motif $have_lesstif" = "yes no"; then 9356 if test "$have_motif $have_lesstif" = "yes no"; then
9353 9357
9354 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 9358 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9355 echo "configure:9356: checking for XmImMbLookupString in -lXm" >&5 9359 echo "configure:9360: checking for XmImMbLookupString in -lXm" >&5
9356 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 9360 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9357 9361
9358 xe_check_libs=" -lXm " 9362 xe_check_libs=" -lXm "
9359 cat > conftest.$ac_ext <<EOF 9363 cat > conftest.$ac_ext <<EOF
9360 #line 9361 "configure" 9364 #line 9365 "configure"
9361 #include "confdefs.h" 9365 #include "confdefs.h"
9362 /* Override any gcc2 internal prototype to avoid an error. */ 9366 /* Override any gcc2 internal prototype to avoid an error. */
9363 /* We use char because int might match the return type of a gcc2 9367 /* We use char because int might match the return type of a gcc2
9364 builtin and then its argument prototype would still apply. */ 9368 builtin and then its argument prototype would still apply. */
9365 char XmImMbLookupString(); 9369 char XmImMbLookupString();
9366 9370
9367 int main() { 9371 int main() {
9368 XmImMbLookupString() 9372 XmImMbLookupString()
9369 ; return 0; } 9373 ; return 0; }
9370 EOF 9374 EOF
9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9372 rm -rf conftest* 9376 rm -rf conftest*
9373 eval "ac_cv_lib_$ac_lib_var=yes" 9377 eval "ac_cv_lib_$ac_lib_var=yes"
9374 else 9378 else
9375 echo "configure: failed program was:" >&5 9379 echo "configure: failed program was:" >&5
9376 cat conftest.$ac_ext >&5 9380 cat conftest.$ac_ext >&5
9431 fi 9435 fi
9432 fi 9436 fi
9433 9437
9434 if test "$with_xfs" = "yes" ; then 9438 if test "$with_xfs" = "yes" ; then
9435 echo "checking for XFontSet" 1>&6 9439 echo "checking for XFontSet" 1>&6
9436 echo "configure:9437: checking for XFontSet" >&5 9440 echo "configure:9441: checking for XFontSet" >&5
9437 9441
9438 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 9442 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9439 echo "configure:9440: checking for XmbDrawString in -lX11" >&5 9443 echo "configure:9444: checking for XmbDrawString in -lX11" >&5
9440 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 9444 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9441 9445
9442 xe_check_libs=" -lX11 " 9446 xe_check_libs=" -lX11 "
9443 cat > conftest.$ac_ext <<EOF 9447 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure" 9448 #line 9449 "configure"
9445 #include "confdefs.h" 9449 #include "confdefs.h"
9446 /* Override any gcc2 internal prototype to avoid an error. */ 9450 /* Override any gcc2 internal prototype to avoid an error. */
9447 /* We use char because int might match the return type of a gcc2 9451 /* We use char because int might match the return type of a gcc2
9448 builtin and then its argument prototype would still apply. */ 9452 builtin and then its argument prototype would still apply. */
9449 char XmbDrawString(); 9453 char XmbDrawString();
9450 9454
9451 int main() { 9455 int main() {
9452 XmbDrawString() 9456 XmbDrawString()
9453 ; return 0; } 9457 ; return 0; }
9454 EOF 9458 EOF
9455 if { (eval echo configure:9456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 rm -rf conftest* 9460 rm -rf conftest*
9457 eval "ac_cv_lib_$ac_lib_var=yes" 9461 eval "ac_cv_lib_$ac_lib_var=yes"
9458 else 9462 else
9459 echo "configure: failed program was:" >&5 9463 echo "configure: failed program was:" >&5
9460 cat conftest.$ac_ext >&5 9464 cat conftest.$ac_ext >&5
9490 fi 9494 fi
9491 fi 9495 fi
9492 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 9496 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9493 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 9497 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9494 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 9498 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9495 echo "configure:9496: checking for wnn/jllib.h" >&5 9499 echo "configure:9500: checking for wnn/jllib.h" >&5
9496 9500
9497 cat > conftest.$ac_ext <<EOF 9501 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure" 9502 #line 9503 "configure"
9499 #include "confdefs.h" 9503 #include "confdefs.h"
9500 #include <wnn/jllib.h> 9504 #include <wnn/jllib.h>
9501 EOF 9505 EOF
9502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9503 { (eval echo configure:9504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9507 { (eval echo configure:9508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9509 if test -z "$ac_err"; then
9510 rm -rf conftest*
9511 eval "ac_cv_header_$ac_safe=yes"
9512 else
9513 echo "$ac_err" >&5
9514 echo "configure: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 rm -rf conftest*
9517 eval "ac_cv_header_$ac_safe=no"
9518 fi
9519 rm -f conftest*
9520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9521 echo "$ac_t""yes" 1>&6
9522 :
9523 else
9524 echo "$ac_t""no" 1>&6
9525 with_wnn=no
9526 fi
9527 }
9528 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
9529 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
9530 echo "configure:9531: checking for wnn/commonhd.h" >&5
9531
9532 cat > conftest.$ac_ext <<EOF
9533 #line 9534 "configure"
9534 #include "confdefs.h"
9535 #include <wnn/commonhd.h>
9536 EOF
9537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9538 { (eval echo configure:9539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9505 if test -z "$ac_err"; then 9540 if test -z "$ac_err"; then
9506 rm -rf conftest* 9541 rm -rf conftest*
9507 eval "ac_cv_header_$ac_safe=yes" 9542 eval "ac_cv_header_$ac_safe=yes"
9508 else 9543 else
9523 } 9558 }
9524 if test "$with_wnn" != "no"; then 9559 if test "$with_wnn" != "no"; then
9525 for ac_func in crypt 9560 for ac_func in crypt
9526 do 9561 do
9527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9528 echo "configure:9529: checking for $ac_func" >&5 9563 echo "configure:9564: checking for $ac_func" >&5
9529 9564
9530 cat > conftest.$ac_ext <<EOF 9565 cat > conftest.$ac_ext <<EOF
9531 #line 9532 "configure" 9566 #line 9567 "configure"
9532 #include "confdefs.h" 9567 #include "confdefs.h"
9533 /* System header to define __stub macros and hopefully few prototypes, 9568 /* System header to define __stub macros and hopefully few prototypes,
9534 which can conflict with char $ac_func(); below. */ 9569 which can conflict with char $ac_func(); below. */
9535 #include <assert.h> 9570 #include <assert.h>
9536 /* Override any gcc2 internal prototype to avoid an error. */ 9571 /* Override any gcc2 internal prototype to avoid an error. */
9549 $ac_func(); 9584 $ac_func();
9550 #endif 9585 #endif
9551 9586
9552 ; return 0; } 9587 ; return 0; }
9553 EOF 9588 EOF
9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9589 if { (eval echo configure:9590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9555 rm -rf conftest* 9590 rm -rf conftest*
9556 eval "ac_cv_func_$ac_func=yes" 9591 eval "ac_cv_func_$ac_func=yes"
9557 else 9592 else
9558 echo "configure: failed program was:" >&5 9593 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5 9594 cat conftest.$ac_ext >&5
9578 fi 9613 fi
9579 done 9614 done
9580 9615
9581 test "$ac_cv_func_crypt" != "yes" && { 9616 test "$ac_cv_func_crypt" != "yes" && {
9582 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 9617 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9583 echo "configure:9584: checking for crypt in -lcrypt" >&5 9618 echo "configure:9619: checking for crypt in -lcrypt" >&5
9584 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 9619 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9585 9620
9586 xe_check_libs=" -lcrypt " 9621 xe_check_libs=" -lcrypt "
9587 cat > conftest.$ac_ext <<EOF 9622 cat > conftest.$ac_ext <<EOF
9588 #line 9589 "configure" 9623 #line 9624 "configure"
9589 #include "confdefs.h" 9624 #include "confdefs.h"
9590 /* Override any gcc2 internal prototype to avoid an error. */ 9625 /* Override any gcc2 internal prototype to avoid an error. */
9591 /* We use char because int might match the return type of a gcc2 9626 /* We use char because int might match the return type of a gcc2
9592 builtin and then its argument prototype would still apply. */ 9627 builtin and then its argument prototype would still apply. */
9593 char crypt(); 9628 char crypt();
9594 9629
9595 int main() { 9630 int main() {
9596 crypt() 9631 crypt()
9597 ; return 0; } 9632 ; return 0; }
9598 EOF 9633 EOF
9599 if { (eval echo configure:9600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9634 if { (eval echo configure:9635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9600 rm -rf conftest* 9635 rm -rf conftest*
9601 eval "ac_cv_lib_$ac_lib_var=yes" 9636 eval "ac_cv_lib_$ac_lib_var=yes"
9602 else 9637 else
9603 echo "configure: failed program was:" >&5 9638 echo "configure: failed program was:" >&5
9604 cat conftest.$ac_ext >&5 9639 cat conftest.$ac_ext >&5
9629 } 9664 }
9630 fi 9665 fi
9631 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 9666 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9632 9667
9633 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 9668 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9634 echo "configure:9635: checking for jl_dic_list_e in -lwnn" >&5 9669 echo "configure:9670: checking for jl_dic_list_e in -lwnn" >&5
9635 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9670 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9636 9671
9637 xe_check_libs=" -lwnn " 9672 xe_check_libs=" -lwnn "
9638 cat > conftest.$ac_ext <<EOF 9673 cat > conftest.$ac_ext <<EOF
9639 #line 9640 "configure" 9674 #line 9675 "configure"
9640 #include "confdefs.h" 9675 #include "confdefs.h"
9641 /* Override any gcc2 internal prototype to avoid an error. */ 9676 /* Override any gcc2 internal prototype to avoid an error. */
9642 /* We use char because int might match the return type of a gcc2 9677 /* We use char because int might match the return type of a gcc2
9643 builtin and then its argument prototype would still apply. */ 9678 builtin and then its argument prototype would still apply. */
9644 char jl_dic_list_e(); 9679 char jl_dic_list_e();
9645 9680
9646 int main() { 9681 int main() {
9647 jl_dic_list_e() 9682 jl_dic_list_e()
9648 ; return 0; } 9683 ; return 0; }
9649 EOF 9684 EOF
9650 if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9685 if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9651 rm -rf conftest* 9686 rm -rf conftest*
9652 eval "ac_cv_lib_$ac_lib_var=yes" 9687 eval "ac_cv_lib_$ac_lib_var=yes"
9653 else 9688 else
9654 echo "configure: failed program was:" >&5 9689 echo "configure: failed program was:" >&5
9655 cat conftest.$ac_ext >&5 9690 cat conftest.$ac_ext >&5
9663 echo "$ac_t""yes" 1>&6 9698 echo "$ac_t""yes" 1>&6
9664 libwnn=wnn 9699 libwnn=wnn
9665 else 9700 else
9666 echo "$ac_t""no" 1>&6 9701 echo "$ac_t""no" 1>&6
9667 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 9702 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9668 echo "configure:9669: checking for jl_dic_list_e in -lwnn4" >&5 9703 echo "configure:9704: checking for jl_dic_list_e in -lwnn4" >&5
9669 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9704 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9670 9705
9671 xe_check_libs=" -lwnn4 " 9706 xe_check_libs=" -lwnn4 "
9672 cat > conftest.$ac_ext <<EOF 9707 cat > conftest.$ac_ext <<EOF
9673 #line 9674 "configure" 9708 #line 9709 "configure"
9674 #include "confdefs.h" 9709 #include "confdefs.h"
9675 /* Override any gcc2 internal prototype to avoid an error. */ 9710 /* Override any gcc2 internal prototype to avoid an error. */
9676 /* We use char because int might match the return type of a gcc2 9711 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */ 9712 builtin and then its argument prototype would still apply. */
9678 char jl_dic_list_e(); 9713 char jl_dic_list_e();
9679 9714
9680 int main() { 9715 int main() {
9681 jl_dic_list_e() 9716 jl_dic_list_e()
9682 ; return 0; } 9717 ; return 0; }
9683 EOF 9718 EOF
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9719 if { (eval echo configure:9720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9685 rm -rf conftest* 9720 rm -rf conftest*
9686 eval "ac_cv_lib_$ac_lib_var=yes" 9721 eval "ac_cv_lib_$ac_lib_var=yes"
9687 else 9722 else
9688 echo "configure: failed program was:" >&5 9723 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5 9724 cat conftest.$ac_ext >&5
9697 echo "$ac_t""yes" 1>&6 9732 echo "$ac_t""yes" 1>&6
9698 libwnn=wnn4 9733 libwnn=wnn4
9699 else 9734 else
9700 echo "$ac_t""no" 1>&6 9735 echo "$ac_t""no" 1>&6
9701 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 9736 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9702 echo "configure:9703: checking for jl_dic_list_e in -lwnn6" >&5 9737 echo "configure:9738: checking for jl_dic_list_e in -lwnn6" >&5
9703 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 9738 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9704 9739
9705 xe_check_libs=" -lwnn6 " 9740 xe_check_libs=" -lwnn6 "
9706 cat > conftest.$ac_ext <<EOF 9741 cat > conftest.$ac_ext <<EOF
9707 #line 9708 "configure" 9742 #line 9743 "configure"
9708 #include "confdefs.h" 9743 #include "confdefs.h"
9709 /* Override any gcc2 internal prototype to avoid an error. */ 9744 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2 9745 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */ 9746 builtin and then its argument prototype would still apply. */
9712 char jl_dic_list_e(); 9747 char jl_dic_list_e();
9713 9748
9714 int main() { 9749 int main() {
9715 jl_dic_list_e() 9750 jl_dic_list_e()
9716 ; return 0; } 9751 ; return 0; }
9717 EOF 9752 EOF
9718 if { (eval echo configure:9719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9753 if { (eval echo configure:9754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9719 rm -rf conftest* 9754 rm -rf conftest*
9720 eval "ac_cv_lib_$ac_lib_var=yes" 9755 eval "ac_cv_lib_$ac_lib_var=yes"
9721 else 9756 else
9722 echo "configure: failed program was:" >&5 9757 echo "configure: failed program was:" >&5
9723 cat conftest.$ac_ext >&5 9758 cat conftest.$ac_ext >&5
9731 echo "$ac_t""yes" 1>&6 9766 echo "$ac_t""yes" 1>&6
9732 libwnn=wnn6 9767 libwnn=wnn6
9733 else 9768 else
9734 echo "$ac_t""no" 1>&6 9769 echo "$ac_t""no" 1>&6
9735 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 9770 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9736 echo "configure:9737: checking for dic_list_e in -lwnn6_fromsrc" >&5 9771 echo "configure:9772: checking for dic_list_e in -lwnn6_fromsrc" >&5
9737 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 9772 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9738 9773
9739 xe_check_libs=" -lwnn6_fromsrc " 9774 xe_check_libs=" -lwnn6_fromsrc "
9740 cat > conftest.$ac_ext <<EOF 9775 cat > conftest.$ac_ext <<EOF
9741 #line 9742 "configure" 9776 #line 9777 "configure"
9742 #include "confdefs.h" 9777 #include "confdefs.h"
9743 /* Override any gcc2 internal prototype to avoid an error. */ 9778 /* Override any gcc2 internal prototype to avoid an error. */
9744 /* We use char because int might match the return type of a gcc2 9779 /* We use char because int might match the return type of a gcc2
9745 builtin and then its argument prototype would still apply. */ 9780 builtin and then its argument prototype would still apply. */
9746 char dic_list_e(); 9781 char dic_list_e();
9747 9782
9748 int main() { 9783 int main() {
9749 dic_list_e() 9784 dic_list_e()
9750 ; return 0; } 9785 ; return 0; }
9751 EOF 9786 EOF
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9787 if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9753 rm -rf conftest* 9788 rm -rf conftest*
9754 eval "ac_cv_lib_$ac_lib_var=yes" 9789 eval "ac_cv_lib_$ac_lib_var=yes"
9755 else 9790 else
9756 echo "configure: failed program was:" >&5 9791 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5 9792 cat conftest.$ac_ext >&5
9795 echo " xemacs will be linked with \"mule-wnnfns.o\"" 9830 echo " xemacs will be linked with \"mule-wnnfns.o\""
9796 fi 9831 fi
9797 if test "$with_wnn6" != "no"; then 9832 if test "$with_wnn6" != "no"; then
9798 9833
9799 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 9834 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9800 echo "configure:9801: checking for jl_fi_dic_list in -l$libwnn" >&5 9835 echo "configure:9836: checking for jl_fi_dic_list in -l$libwnn" >&5
9801 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 9836 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9802 9837
9803 xe_check_libs=" -l$libwnn " 9838 xe_check_libs=" -l$libwnn "
9804 cat > conftest.$ac_ext <<EOF 9839 cat > conftest.$ac_ext <<EOF
9805 #line 9806 "configure" 9840 #line 9841 "configure"
9806 #include "confdefs.h" 9841 #include "confdefs.h"
9807 /* Override any gcc2 internal prototype to avoid an error. */ 9842 /* Override any gcc2 internal prototype to avoid an error. */
9808 /* We use char because int might match the return type of a gcc2 9843 /* We use char because int might match the return type of a gcc2
9809 builtin and then its argument prototype would still apply. */ 9844 builtin and then its argument prototype would still apply. */
9810 char jl_fi_dic_list(); 9845 char jl_fi_dic_list();
9811 9846
9812 int main() { 9847 int main() {
9813 jl_fi_dic_list() 9848 jl_fi_dic_list()
9814 ; return 0; } 9849 ; return 0; }
9815 EOF 9850 EOF
9816 if { (eval echo configure:9817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9851 if { (eval echo configure:9852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9817 rm -rf conftest* 9852 rm -rf conftest*
9818 eval "ac_cv_lib_$ac_lib_var=yes" 9853 eval "ac_cv_lib_$ac_lib_var=yes"
9819 else 9854 else
9820 echo "configure: failed program was:" >&5 9855 echo "configure: failed program was:" >&5
9821 cat conftest.$ac_ext >&5 9856 cat conftest.$ac_ext >&5
9846 9881
9847 canna_includes_found=no 9882 canna_includes_found=no
9848 if test "$with_canna" != "no"; then 9883 if test "$with_canna" != "no"; then
9849 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9884 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9850 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9885 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9851 echo "configure:9852: checking for canna/jrkanji.h" >&5 9886 echo "configure:9887: checking for canna/jrkanji.h" >&5
9852 9887
9853 cat > conftest.$ac_ext <<EOF 9888 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure" 9889 #line 9890 "configure"
9855 #include "confdefs.h" 9890 #include "confdefs.h"
9856 #include <canna/jrkanji.h> 9891 #include <canna/jrkanji.h>
9857 EOF 9892 EOF
9858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9859 { (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9861 if test -z "$ac_err"; then 9896 if test -z "$ac_err"; then
9862 rm -rf conftest* 9897 rm -rf conftest*
9863 eval "ac_cv_header_$ac_safe=yes" 9898 eval "ac_cv_header_$ac_safe=yes"
9864 else 9899 else
9881 -d "/usr/local/canna/include"; then 9916 -d "/usr/local/canna/include"; then
9882 save_c_switch_site="$c_switch_site" 9917 save_c_switch_site="$c_switch_site"
9883 c_switch_site="$c_switch_site -I/usr/local/canna/include" 9918 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9884 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 9919 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9885 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 9920 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9886 echo "configure:9887: checking for canna/jrkanji.h" >&5 9921 echo "configure:9922: checking for canna/jrkanji.h" >&5
9887 9922
9888 cat > conftest.$ac_ext <<EOF 9923 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure" 9924 #line 9925 "configure"
9890 #include "confdefs.h" 9925 #include "confdefs.h"
9891 #include <canna/jrkanji.h> 9926 #include <canna/jrkanji.h>
9892 EOF 9927 EOF
9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9929 { (eval echo configure:9930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9896 if test -z "$ac_err"; then 9931 if test -z "$ac_err"; then
9897 rm -rf conftest* 9932 rm -rf conftest*
9898 eval "ac_cv_header_$ac_safe=yes" 9933 eval "ac_cv_header_$ac_safe=yes"
9899 else 9934 else
9917 fi 9952 fi
9918 fi 9953 fi
9919 9954
9920 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 9955 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9921 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 9956 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9922 echo "configure:9923: checking for canna/RK.h" >&5 9957 echo "configure:9958: checking for canna/RK.h" >&5
9923 9958
9924 cat > conftest.$ac_ext <<EOF 9959 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure" 9960 #line 9961 "configure"
9926 #include "confdefs.h" 9961 #include "confdefs.h"
9927 #include <canna/RK.h> 9962 #include <canna/RK.h>
9928 EOF 9963 EOF
9929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9930 { (eval echo configure:9931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9965 { (eval echo configure:9966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9932 if test -z "$ac_err"; then 9967 if test -z "$ac_err"; then
9933 rm -rf conftest* 9968 rm -rf conftest*
9934 eval "ac_cv_header_$ac_safe=yes" 9969 eval "ac_cv_header_$ac_safe=yes"
9935 else 9970 else
9948 with_canna=no 9983 with_canna=no
9949 fi 9984 fi
9950 } 9985 }
9951 test -z "$with_canna" && { 9986 test -z "$with_canna" && {
9952 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 9987 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
9953 echo "configure:9954: checking for RkBgnBun in -lRKC" >&5 9988 echo "configure:9989: checking for RkBgnBun in -lRKC" >&5
9954 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 9989 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
9955 9990
9956 xe_check_libs=" -lRKC " 9991 xe_check_libs=" -lRKC "
9957 cat > conftest.$ac_ext <<EOF 9992 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure" 9993 #line 9994 "configure"
9959 #include "confdefs.h" 9994 #include "confdefs.h"
9960 /* Override any gcc2 internal prototype to avoid an error. */ 9995 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2 9996 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */ 9997 builtin and then its argument prototype would still apply. */
9963 char RkBgnBun(); 9998 char RkBgnBun();
9964 9999
9965 int main() { 10000 int main() {
9966 RkBgnBun() 10001 RkBgnBun()
9967 ; return 0; } 10002 ; return 0; }
9968 EOF 10003 EOF
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10004 if { (eval echo configure:10005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9970 rm -rf conftest* 10005 rm -rf conftest*
9971 eval "ac_cv_lib_$ac_lib_var=yes" 10006 eval "ac_cv_lib_$ac_lib_var=yes"
9972 else 10007 else
9973 echo "configure: failed program was:" >&5 10008 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5 10009 cat conftest.$ac_ext >&5
9987 fi 10022 fi
9988 10023
9989 } 10024 }
9990 test -z "$with_canna" && { 10025 test -z "$with_canna" && {
9991 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 10026 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
9992 echo "configure:9993: checking for jrKanjiControl in -lcanna" >&5 10027 echo "configure:10028: checking for jrKanjiControl in -lcanna" >&5
9993 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 10028 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
9994 10029
9995 xe_check_libs=" -lcanna " 10030 xe_check_libs=" -lcanna "
9996 cat > conftest.$ac_ext <<EOF 10031 cat > conftest.$ac_ext <<EOF
9997 #line 9998 "configure" 10032 #line 10033 "configure"
9998 #include "confdefs.h" 10033 #include "confdefs.h"
9999 /* Override any gcc2 internal prototype to avoid an error. */ 10034 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2 10035 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */ 10036 builtin and then its argument prototype would still apply. */
10002 char jrKanjiControl(); 10037 char jrKanjiControl();
10003 10038
10004 int main() { 10039 int main() {
10005 jrKanjiControl() 10040 jrKanjiControl()
10006 ; return 0; } 10041 ; return 0; }
10007 EOF 10042 EOF
10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10009 rm -rf conftest* 10044 rm -rf conftest*
10010 eval "ac_cv_lib_$ac_lib_var=yes" 10045 eval "ac_cv_lib_$ac_lib_var=yes"
10011 else 10046 else
10012 echo "configure: failed program was:" >&5 10047 echo "configure: failed program was:" >&5
10013 cat conftest.$ac_ext >&5 10048 cat conftest.$ac_ext >&5
10052 10087
10053 if test "$need_motif" = "yes" ; then 10088 if test "$need_motif" = "yes" ; then
10054 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10089 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10055 10090
10056 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10091 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10057 echo "configure:10058: checking for layout_object_getvalue in -li18n" >&5 10092 echo "configure:10093: checking for layout_object_getvalue in -li18n" >&5
10058 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10093 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10059 10094
10060 xe_check_libs=" -li18n " 10095 xe_check_libs=" -li18n "
10061 cat > conftest.$ac_ext <<EOF 10096 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure" 10097 #line 10098 "configure"
10063 #include "confdefs.h" 10098 #include "confdefs.h"
10064 /* Override any gcc2 internal prototype to avoid an error. */ 10099 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2 10100 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */ 10101 builtin and then its argument prototype would still apply. */
10067 char layout_object_getvalue(); 10102 char layout_object_getvalue();
10068 10103
10069 int main() { 10104 int main() {
10070 layout_object_getvalue() 10105 layout_object_getvalue()
10071 ; return 0; } 10106 ; return 0; }
10072 EOF 10107 EOF
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10108 if { (eval echo configure:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10074 rm -rf conftest* 10109 rm -rf conftest*
10075 eval "ac_cv_lib_$ac_lib_var=yes" 10110 eval "ac_cv_lib_$ac_lib_var=yes"
10076 else 10111 else
10077 echo "configure: failed program was:" >&5 10112 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5 10113 cat conftest.$ac_ext >&5
10154 fi 10189 fi
10155 10190
10156 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask 10191 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep utimes waitpid vsnprintf fsync ftruncate umask
10157 do 10192 do
10158 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10159 echo "configure:10160: checking for $ac_func" >&5 10194 echo "configure:10195: checking for $ac_func" >&5
10160 10195
10161 cat > conftest.$ac_ext <<EOF 10196 cat > conftest.$ac_ext <<EOF
10162 #line 10163 "configure" 10197 #line 10198 "configure"
10163 #include "confdefs.h" 10198 #include "confdefs.h"
10164 /* System header to define __stub macros and hopefully few prototypes, 10199 /* System header to define __stub macros and hopefully few prototypes,
10165 which can conflict with char $ac_func(); below. */ 10200 which can conflict with char $ac_func(); below. */
10166 #include <assert.h> 10201 #include <assert.h>
10167 /* Override any gcc2 internal prototype to avoid an error. */ 10202 /* Override any gcc2 internal prototype to avoid an error. */
10180 $ac_func(); 10215 $ac_func();
10181 #endif 10216 #endif
10182 10217
10183 ; return 0; } 10218 ; return 0; }
10184 EOF 10219 EOF
10185 if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10186 rm -rf conftest* 10221 rm -rf conftest*
10187 eval "ac_cv_func_$ac_func=yes" 10222 eval "ac_cv_func_$ac_func=yes"
10188 else 10223 else
10189 echo "configure: failed program was:" >&5 10224 echo "configure: failed program was:" >&5
10190 cat conftest.$ac_ext >&5 10225 cat conftest.$ac_ext >&5
10208 echo "$ac_t""no" 1>&6 10243 echo "$ac_t""no" 1>&6
10209 fi 10244 fi
10210 done 10245 done
10211 10246
10212 10247
10248
10213 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10249 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10214 do 10250 do
10215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10251 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10216 echo "configure:10217: checking for $ac_func" >&5 10252 echo "configure:10253: checking for $ac_func" >&5
10217 10253
10218 cat > conftest.$ac_ext <<EOF 10254 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure" 10255 #line 10256 "configure"
10220 #include "confdefs.h" 10256 #include "confdefs.h"
10221 /* System header to define __stub macros and hopefully few prototypes, 10257 /* System header to define __stub macros and hopefully few prototypes,
10222 which can conflict with char $ac_func(); below. */ 10258 which can conflict with char $ac_func(); below. */
10223 #include <assert.h> 10259 #include <assert.h>
10224 /* Override any gcc2 internal prototype to avoid an error. */ 10260 /* Override any gcc2 internal prototype to avoid an error. */
10237 $ac_func(); 10273 $ac_func();
10238 #endif 10274 #endif
10239 10275
10240 ; return 0; } 10276 ; return 0; }
10241 EOF 10277 EOF
10242 if { (eval echo configure:10243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10278 if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10243 rm -rf conftest* 10279 rm -rf conftest*
10244 eval "ac_cv_func_$ac_func=yes" 10280 eval "ac_cv_func_$ac_func=yes"
10245 else 10281 else
10246 echo "configure: failed program was:" >&5 10282 echo "configure: failed program was:" >&5
10247 cat conftest.$ac_ext >&5 10283 cat conftest.$ac_ext >&5
10266 fi 10302 fi
10267 done 10303 done
10268 10304
10269 10305
10270 echo $ac_n "checking for openpty""... $ac_c" 1>&6 10306 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10271 echo "configure:10272: checking for openpty" >&5 10307 echo "configure:10308: checking for openpty" >&5
10272 10308
10273 cat > conftest.$ac_ext <<EOF 10309 cat > conftest.$ac_ext <<EOF
10274 #line 10275 "configure" 10310 #line 10311 "configure"
10275 #include "confdefs.h" 10311 #include "confdefs.h"
10276 /* System header to define __stub macros and hopefully few prototypes, 10312 /* System header to define __stub macros and hopefully few prototypes,
10277 which can conflict with char openpty(); below. */ 10313 which can conflict with char openpty(); below. */
10278 #include <assert.h> 10314 #include <assert.h>
10279 /* Override any gcc2 internal prototype to avoid an error. */ 10315 /* Override any gcc2 internal prototype to avoid an error. */
10292 openpty(); 10328 openpty();
10293 #endif 10329 #endif
10294 10330
10295 ; return 0; } 10331 ; return 0; }
10296 EOF 10332 EOF
10297 if { (eval echo configure:10298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10333 if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10298 rm -rf conftest* 10334 rm -rf conftest*
10299 eval "ac_cv_func_openpty=yes" 10335 eval "ac_cv_func_openpty=yes"
10300 else 10336 else
10301 echo "configure: failed program was:" >&5 10337 echo "configure: failed program was:" >&5
10302 cat conftest.$ac_ext >&5 10338 cat conftest.$ac_ext >&5
10311 else 10347 else
10312 echo "$ac_t""no" 1>&6 10348 echo "$ac_t""no" 1>&6
10313 10349
10314 10350
10315 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 10351 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10316 echo "configure:10317: checking for openpty in -lutil" >&5 10352 echo "configure:10353: checking for openpty in -lutil" >&5
10317 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 10353 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10318 10354
10319 xe_check_libs=" -lutil " 10355 xe_check_libs=" -lutil "
10320 cat > conftest.$ac_ext <<EOF 10356 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure" 10357 #line 10358 "configure"
10322 #include "confdefs.h" 10358 #include "confdefs.h"
10323 /* Override any gcc2 internal prototype to avoid an error. */ 10359 /* Override any gcc2 internal prototype to avoid an error. */
10324 /* We use char because int might match the return type of a gcc2 10360 /* We use char because int might match the return type of a gcc2
10325 builtin and then its argument prototype would still apply. */ 10361 builtin and then its argument prototype would still apply. */
10326 char openpty(); 10362 char openpty();
10327 10363
10328 int main() { 10364 int main() {
10329 openpty() 10365 openpty()
10330 ; return 0; } 10366 ; return 0; }
10331 EOF 10367 EOF
10332 if { (eval echo configure:10333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10368 if { (eval echo configure:10369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10333 rm -rf conftest* 10369 rm -rf conftest*
10334 eval "ac_cv_lib_$ac_lib_var=yes" 10370 eval "ac_cv_lib_$ac_lib_var=yes"
10335 else 10371 else
10336 echo "configure: failed program was:" >&5 10372 echo "configure: failed program was:" >&5
10337 cat conftest.$ac_ext >&5 10373 cat conftest.$ac_ext >&5
10358 cat >> confdefs.h <<\EOF 10394 cat >> confdefs.h <<\EOF
10359 #define HAVE_OPENPTY 1 10395 #define HAVE_OPENPTY 1
10360 EOF 10396 EOF
10361 } 10397 }
10362 10398
10363 for ac_hdr in pty.h libutil.h 10399 for ac_hdr in pty.h libutil.h util.h
10364 do 10400 do
10365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10367 echo "configure:10368: checking for $ac_hdr" >&5 10403 echo "configure:10404: checking for $ac_hdr" >&5
10368 10404
10369 cat > conftest.$ac_ext <<EOF 10405 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure" 10406 #line 10407 "configure"
10371 #include "confdefs.h" 10407 #include "confdefs.h"
10372 #include <$ac_hdr> 10408 #include <$ac_hdr>
10373 EOF 10409 EOF
10374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10375 { (eval echo configure:10376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10411 { (eval echo configure:10412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10377 if test -z "$ac_err"; then 10413 if test -z "$ac_err"; then
10378 rm -rf conftest* 10414 rm -rf conftest*
10379 eval "ac_cv_header_$ac_safe=yes" 10415 eval "ac_cv_header_$ac_safe=yes"
10380 else 10416 else
10393 EOF 10429 EOF
10394 cat >> confdefs.h <<EOF 10430 cat >> confdefs.h <<EOF
10395 #define $ac_tr_hdr 1 10431 #define $ac_tr_hdr 1
10396 EOF 10432 EOF
10397 } 10433 }
10398 10434 break
10399 else 10435 else
10400 echo "$ac_t""no" 1>&6 10436 echo "$ac_t""no" 1>&6
10401 fi 10437 fi
10402 done 10438 done
10403 10439
10406 10442
10407 for ac_hdr in stropts.h 10443 for ac_hdr in stropts.h
10408 do 10444 do
10409 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10410 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10411 echo "configure:10412: checking for $ac_hdr" >&5 10447 echo "configure:10448: checking for $ac_hdr" >&5
10412 10448
10413 cat > conftest.$ac_ext <<EOF 10449 cat > conftest.$ac_ext <<EOF
10414 #line 10415 "configure" 10450 #line 10451 "configure"
10415 #include "confdefs.h" 10451 #include "confdefs.h"
10416 #include <$ac_hdr> 10452 #include <$ac_hdr>
10417 EOF 10453 EOF
10418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10419 { (eval echo configure:10420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10455 { (eval echo configure:10456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10421 if test -z "$ac_err"; then 10457 if test -z "$ac_err"; then
10422 rm -rf conftest* 10458 rm -rf conftest*
10423 eval "ac_cv_header_$ac_safe=yes" 10459 eval "ac_cv_header_$ac_safe=yes"
10424 else 10460 else
10447 10483
10448 if test "$ac_cv_header_stropts_h" = "yes"; then 10484 if test "$ac_cv_header_stropts_h" = "yes"; then
10449 for ac_func in isastream 10485 for ac_func in isastream
10450 do 10486 do
10451 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10487 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10452 echo "configure:10453: checking for $ac_func" >&5 10488 echo "configure:10489: checking for $ac_func" >&5
10453 10489
10454 cat > conftest.$ac_ext <<EOF 10490 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure" 10491 #line 10492 "configure"
10456 #include "confdefs.h" 10492 #include "confdefs.h"
10457 /* System header to define __stub macros and hopefully few prototypes, 10493 /* System header to define __stub macros and hopefully few prototypes,
10458 which can conflict with char $ac_func(); below. */ 10494 which can conflict with char $ac_func(); below. */
10459 #include <assert.h> 10495 #include <assert.h>
10460 /* Override any gcc2 internal prototype to avoid an error. */ 10496 /* Override any gcc2 internal prototype to avoid an error. */
10473 $ac_func(); 10509 $ac_func();
10474 #endif 10510 #endif
10475 10511
10476 ; return 0; } 10512 ; return 0; }
10477 EOF 10513 EOF
10478 if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10514 if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10479 rm -rf conftest* 10515 rm -rf conftest*
10480 eval "ac_cv_func_$ac_func=yes" 10516 eval "ac_cv_func_$ac_func=yes"
10481 else 10517 else
10482 echo "configure: failed program was:" >&5 10518 echo "configure: failed program was:" >&5
10483 cat conftest.$ac_ext >&5 10519 cat conftest.$ac_ext >&5
10504 10540
10505 for ac_hdr in strtio.h 10541 for ac_hdr in strtio.h
10506 do 10542 do
10507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10509 echo "configure:10510: checking for $ac_hdr" >&5 10545 echo "configure:10546: checking for $ac_hdr" >&5
10510 10546
10511 cat > conftest.$ac_ext <<EOF 10547 cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure" 10548 #line 10549 "configure"
10513 #include "confdefs.h" 10549 #include "confdefs.h"
10514 #include <$ac_hdr> 10550 #include <$ac_hdr>
10515 EOF 10551 EOF
10516 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10517 { (eval echo configure:10518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10553 { (eval echo configure:10554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10518 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10519 if test -z "$ac_err"; then 10555 if test -z "$ac_err"; then
10520 rm -rf conftest* 10556 rm -rf conftest*
10521 eval "ac_cv_header_$ac_safe=yes" 10557 eval "ac_cv_header_$ac_safe=yes"
10522 else 10558 else
10549 fi 10585 fi
10550 10586
10551 for ac_func in getloadavg 10587 for ac_func in getloadavg
10552 do 10588 do
10553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10554 echo "configure:10555: checking for $ac_func" >&5 10590 echo "configure:10591: checking for $ac_func" >&5
10555 10591
10556 cat > conftest.$ac_ext <<EOF 10592 cat > conftest.$ac_ext <<EOF
10557 #line 10558 "configure" 10593 #line 10594 "configure"
10558 #include "confdefs.h" 10594 #include "confdefs.h"
10559 /* System header to define __stub macros and hopefully few prototypes, 10595 /* System header to define __stub macros and hopefully few prototypes,
10560 which can conflict with char $ac_func(); below. */ 10596 which can conflict with char $ac_func(); below. */
10561 #include <assert.h> 10597 #include <assert.h>
10562 /* Override any gcc2 internal prototype to avoid an error. */ 10598 /* Override any gcc2 internal prototype to avoid an error. */
10575 $ac_func(); 10611 $ac_func();
10576 #endif 10612 #endif
10577 10613
10578 ; return 0; } 10614 ; return 0; }
10579 EOF 10615 EOF
10580 if { (eval echo configure:10581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10616 if { (eval echo configure:10617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10581 rm -rf conftest* 10617 rm -rf conftest*
10582 eval "ac_cv_func_$ac_func=yes" 10618 eval "ac_cv_func_$ac_func=yes"
10583 else 10619 else
10584 echo "configure: failed program was:" >&5 10620 echo "configure: failed program was:" >&5
10585 cat conftest.$ac_ext >&5 10621 cat conftest.$ac_ext >&5
10608 if test "$ac_cv_func_getloadavg" = "yes"; then 10644 if test "$ac_cv_func_getloadavg" = "yes"; then
10609 for ac_hdr in sys/loadavg.h 10645 for ac_hdr in sys/loadavg.h
10610 do 10646 do
10611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10613 echo "configure:10614: checking for $ac_hdr" >&5 10649 echo "configure:10650: checking for $ac_hdr" >&5
10614 10650
10615 cat > conftest.$ac_ext <<EOF 10651 cat > conftest.$ac_ext <<EOF
10616 #line 10617 "configure" 10652 #line 10653 "configure"
10617 #include "confdefs.h" 10653 #include "confdefs.h"
10618 #include <$ac_hdr> 10654 #include <$ac_hdr>
10619 EOF 10655 EOF
10620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10621 { (eval echo configure:10622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10657 { (eval echo configure:10658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10623 if test -z "$ac_err"; then 10659 if test -z "$ac_err"; then
10624 rm -rf conftest* 10660 rm -rf conftest*
10625 eval "ac_cv_header_$ac_safe=yes" 10661 eval "ac_cv_header_$ac_safe=yes"
10626 else 10662 else
10652 echo " xemacs will be linked with \"getloadavg.o\"" 10688 echo " xemacs will be linked with \"getloadavg.o\""
10653 fi 10689 fi
10654 10690
10655 10691
10656 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 10692 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10657 echo "configure:10658: checking for kstat_open in -lkstat" >&5 10693 echo "configure:10694: checking for kstat_open in -lkstat" >&5
10658 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 10694 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10659 10695
10660 xe_check_libs=" -lkstat " 10696 xe_check_libs=" -lkstat "
10661 cat > conftest.$ac_ext <<EOF 10697 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure" 10698 #line 10699 "configure"
10663 #include "confdefs.h" 10699 #include "confdefs.h"
10664 /* Override any gcc2 internal prototype to avoid an error. */ 10700 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2 10701 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */ 10702 builtin and then its argument prototype would still apply. */
10667 char kstat_open(); 10703 char kstat_open();
10668 10704
10669 int main() { 10705 int main() {
10670 kstat_open() 10706 kstat_open()
10671 ; return 0; } 10707 ; return 0; }
10672 EOF 10708 EOF
10673 if { (eval echo configure:10674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10709 if { (eval echo configure:10710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10674 rm -rf conftest* 10710 rm -rf conftest*
10675 eval "ac_cv_lib_$ac_lib_var=yes" 10711 eval "ac_cv_lib_$ac_lib_var=yes"
10676 else 10712 else
10677 echo "configure: failed program was:" >&5 10713 echo "configure: failed program was:" >&5
10678 cat conftest.$ac_ext >&5 10714 cat conftest.$ac_ext >&5
10703 10739
10704 for ac_hdr in kstat.h 10740 for ac_hdr in kstat.h
10705 do 10741 do
10706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10708 echo "configure:10709: checking for $ac_hdr" >&5 10744 echo "configure:10745: checking for $ac_hdr" >&5
10709 10745
10710 cat > conftest.$ac_ext <<EOF 10746 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure" 10747 #line 10748 "configure"
10712 #include "confdefs.h" 10748 #include "confdefs.h"
10713 #include <$ac_hdr> 10749 #include <$ac_hdr>
10714 EOF 10750 EOF
10715 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10716 { (eval echo configure:10717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10752 { (eval echo configure:10753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10717 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10718 if test -z "$ac_err"; then 10754 if test -z "$ac_err"; then
10719 rm -rf conftest* 10755 rm -rf conftest*
10720 eval "ac_cv_header_$ac_safe=yes" 10756 eval "ac_cv_header_$ac_safe=yes"
10721 else 10757 else
10743 done 10779 done
10744 10780
10745 10781
10746 10782
10747 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 10783 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10748 echo "configure:10749: checking for kvm_read in -lkvm" >&5 10784 echo "configure:10785: checking for kvm_read in -lkvm" >&5
10749 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 10785 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10750 10786
10751 xe_check_libs=" -lkvm " 10787 xe_check_libs=" -lkvm "
10752 cat > conftest.$ac_ext <<EOF 10788 cat > conftest.$ac_ext <<EOF
10753 #line 10754 "configure" 10789 #line 10790 "configure"
10754 #include "confdefs.h" 10790 #include "confdefs.h"
10755 /* Override any gcc2 internal prototype to avoid an error. */ 10791 /* Override any gcc2 internal prototype to avoid an error. */
10756 /* We use char because int might match the return type of a gcc2 10792 /* We use char because int might match the return type of a gcc2
10757 builtin and then its argument prototype would still apply. */ 10793 builtin and then its argument prototype would still apply. */
10758 char kvm_read(); 10794 char kvm_read();
10759 10795
10760 int main() { 10796 int main() {
10761 kvm_read() 10797 kvm_read()
10762 ; return 0; } 10798 ; return 0; }
10763 EOF 10799 EOF
10764 if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10800 if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10765 rm -rf conftest* 10801 rm -rf conftest*
10766 eval "ac_cv_lib_$ac_lib_var=yes" 10802 eval "ac_cv_lib_$ac_lib_var=yes"
10767 else 10803 else
10768 echo "configure: failed program was:" >&5 10804 echo "configure: failed program was:" >&5
10769 cat conftest.$ac_ext >&5 10805 cat conftest.$ac_ext >&5
10793 10829
10794 10830
10795 fi 10831 fi
10796 10832
10797 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 10833 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10798 echo "configure:10799: checking whether netdb declares h_errno" >&5 10834 echo "configure:10835: checking whether netdb declares h_errno" >&5
10799 cat > conftest.$ac_ext <<EOF 10835 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure" 10836 #line 10837 "configure"
10801 #include "confdefs.h" 10837 #include "confdefs.h"
10802 #include <netdb.h> 10838 #include <netdb.h>
10803 int main() { 10839 int main() {
10804 return h_errno; 10840 return h_errno;
10805 ; return 0; } 10841 ; return 0; }
10806 EOF 10842 EOF
10807 if { (eval echo configure:10808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10808 rm -rf conftest* 10844 rm -rf conftest*
10809 echo "$ac_t""yes" 1>&6 10845 echo "$ac_t""yes" 1>&6
10810 { test "$extra_verbose" = "yes" && cat << \EOF 10846 { test "$extra_verbose" = "yes" && cat << \EOF
10811 Defining HAVE_H_ERRNO 10847 Defining HAVE_H_ERRNO
10812 EOF 10848 EOF
10822 echo "$ac_t""no" 1>&6 10858 echo "$ac_t""no" 1>&6
10823 fi 10859 fi
10824 rm -f conftest* 10860 rm -f conftest*
10825 10861
10826 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 10862 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10827 echo "configure:10828: checking for sigsetjmp" >&5 10863 echo "configure:10864: checking for sigsetjmp" >&5
10828 cat > conftest.$ac_ext <<EOF 10864 cat > conftest.$ac_ext <<EOF
10829 #line 10830 "configure" 10865 #line 10866 "configure"
10830 #include "confdefs.h" 10866 #include "confdefs.h"
10831 #include <setjmp.h> 10867 #include <setjmp.h>
10832 int main() { 10868 int main() {
10833 sigjmp_buf bar; sigsetjmp (bar, 0); 10869 sigjmp_buf bar; sigsetjmp (bar, 0);
10834 ; return 0; } 10870 ; return 0; }
10835 EOF 10871 EOF
10836 if { (eval echo configure:10837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 10872 if { (eval echo configure:10873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10837 rm -rf conftest* 10873 rm -rf conftest*
10838 echo "$ac_t""yes" 1>&6 10874 echo "$ac_t""yes" 1>&6
10839 { test "$extra_verbose" = "yes" && cat << \EOF 10875 { test "$extra_verbose" = "yes" && cat << \EOF
10840 Defining HAVE_SIGSETJMP 10876 Defining HAVE_SIGSETJMP
10841 EOF 10877 EOF
10851 echo "$ac_t""no" 1>&6 10887 echo "$ac_t""no" 1>&6
10852 fi 10888 fi
10853 rm -f conftest* 10889 rm -f conftest*
10854 10890
10855 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 10891 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10856 echo "configure:10857: checking whether localtime caches TZ" >&5 10892 echo "configure:10893: checking whether localtime caches TZ" >&5
10857 10893
10858 if test "$ac_cv_func_tzset" = "yes"; then 10894 if test "$ac_cv_func_tzset" = "yes"; then
10859 cat > conftest.$ac_ext <<EOF 10895 cat > conftest.$ac_ext <<EOF
10860 #line 10861 "configure" 10896 #line 10897 "configure"
10861 #include "confdefs.h" 10897 #include "confdefs.h"
10862 #include <time.h> 10898 #include <time.h>
10863 #if STDC_HEADERS 10899 #if STDC_HEADERS
10864 # include <stdlib.h> 10900 # include <stdlib.h>
10865 #endif 10901 #endif
10890 if (localtime (&now)->tm_hour != hour_unset) 10926 if (localtime (&now)->tm_hour != hour_unset)
10891 exit (1); 10927 exit (1);
10892 exit (0); 10928 exit (0);
10893 } 10929 }
10894 EOF 10930 EOF
10895 if { (eval echo configure:10896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10896 then 10932 then
10897 emacs_cv_localtime_cache=no 10933 emacs_cv_localtime_cache=no
10898 else 10934 else
10899 conftest_rc="$?" 10935 conftest_rc="$?"
10900 echo "configure: failed program was:" >&5 10936 echo "configure: failed program was:" >&5
10920 10956
10921 fi 10957 fi
10922 10958
10923 if test "$HAVE_TIMEVAL" = "yes"; then 10959 if test "$HAVE_TIMEVAL" = "yes"; then
10924 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 10960 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
10925 echo "configure:10926: checking whether gettimeofday accepts one or two arguments" >&5 10961 echo "configure:10962: checking whether gettimeofday accepts one or two arguments" >&5
10926 cat > conftest.$ac_ext <<EOF 10962 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure" 10963 #line 10964 "configure"
10928 #include "confdefs.h" 10964 #include "confdefs.h"
10929 10965
10930 #ifdef TIME_WITH_SYS_TIME 10966 #ifdef TIME_WITH_SYS_TIME
10931 #include <sys/time.h> 10967 #include <sys/time.h>
10932 #include <time.h> 10968 #include <time.h>
10943 struct timeval time; 10979 struct timeval time;
10944 gettimeofday (&time, 0); 10980 gettimeofday (&time, 0);
10945 10981
10946 ; return 0; } 10982 ; return 0; }
10947 EOF 10983 EOF
10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10984 if { (eval echo configure:10985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 rm -rf conftest* 10985 rm -rf conftest*
10950 echo "$ac_t""two" 1>&6 10986 echo "$ac_t""two" 1>&6
10951 else 10987 else
10952 echo "configure: failed program was:" >&5 10988 echo "configure: failed program was:" >&5
10953 cat conftest.$ac_ext >&5 10989 cat conftest.$ac_ext >&5
10965 rm -f conftest* 11001 rm -f conftest*
10966 fi 11002 fi
10967 11003
10968 11004
10969 echo $ac_n "checking for inline""... $ac_c" 1>&6 11005 echo $ac_n "checking for inline""... $ac_c" 1>&6
10970 echo "configure:10971: checking for inline" >&5 11006 echo "configure:11007: checking for inline" >&5
10971 11007
10972 ac_cv_c_inline=no 11008 ac_cv_c_inline=no
10973 for ac_kw in inline __inline__ __inline; do 11009 for ac_kw in inline __inline__ __inline; do
10974 cat > conftest.$ac_ext <<EOF 11010 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure" 11011 #line 11012 "configure"
10976 #include "confdefs.h" 11012 #include "confdefs.h"
10977 11013
10978 int main() { 11014 int main() {
10979 } $ac_kw foo() { 11015 } $ac_kw foo() {
10980 ; return 0; } 11016 ; return 0; }
10981 EOF 11017 EOF
10982 if { (eval echo configure:10983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11018 if { (eval echo configure:11019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10983 rm -rf conftest* 11019 rm -rf conftest*
10984 ac_cv_c_inline=$ac_kw; break 11020 ac_cv_c_inline=$ac_kw; break
10985 else 11021 else
10986 echo "configure: failed program was:" >&5 11022 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5 11023 cat conftest.$ac_ext >&5
11018 11054
11019 if test "$__DECC" != "yes"; then 11055 if test "$__DECC" != "yes"; then
11020 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11056 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11021 # for constant arguments. Useless! 11057 # for constant arguments. Useless!
11022 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11058 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11023 echo "configure:11024: checking for working alloca.h" >&5 11059 echo "configure:11060: checking for working alloca.h" >&5
11024 11060
11025 cat > conftest.$ac_ext <<EOF 11061 cat > conftest.$ac_ext <<EOF
11026 #line 11027 "configure" 11062 #line 11063 "configure"
11027 #include "confdefs.h" 11063 #include "confdefs.h"
11028 #include <alloca.h> 11064 #include <alloca.h>
11029 int main() { 11065 int main() {
11030 char *p = alloca(2 * sizeof(int)); 11066 char *p = alloca(2 * sizeof(int));
11031 ; return 0; } 11067 ; return 0; }
11032 EOF 11068 EOF
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11069 if { (eval echo configure:11070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11034 rm -rf conftest* 11070 rm -rf conftest*
11035 ac_cv_header_alloca_h=yes 11071 ac_cv_header_alloca_h=yes
11036 else 11072 else
11037 echo "configure: failed program was:" >&5 11073 echo "configure: failed program was:" >&5
11038 cat conftest.$ac_ext >&5 11074 cat conftest.$ac_ext >&5
11052 } 11088 }
11053 11089
11054 fi 11090 fi
11055 11091
11056 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11092 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11057 echo "configure:11058: checking for alloca" >&5 11093 echo "configure:11094: checking for alloca" >&5
11058 11094
11059 cat > conftest.$ac_ext <<EOF 11095 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure" 11096 #line 11097 "configure"
11061 #include "confdefs.h" 11097 #include "confdefs.h"
11062 11098
11063 #ifdef __GNUC__ 11099 #ifdef __GNUC__
11064 # define alloca __builtin_alloca 11100 # define alloca __builtin_alloca
11065 #else 11101 #else
11083 11119
11084 int main() { 11120 int main() {
11085 char *p = (char *) alloca(1); 11121 char *p = (char *) alloca(1);
11086 ; return 0; } 11122 ; return 0; }
11087 EOF 11123 EOF
11088 if { (eval echo configure:11089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11124 if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11089 rm -rf conftest* 11125 rm -rf conftest*
11090 ac_cv_func_alloca_works=yes 11126 ac_cv_func_alloca_works=yes
11091 else 11127 else
11092 echo "configure: failed program was:" >&5 11128 echo "configure: failed program was:" >&5
11093 cat conftest.$ac_ext >&5 11129 cat conftest.$ac_ext >&5
11122 EOF 11158 EOF
11123 } 11159 }
11124 11160
11125 11161
11126 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 11162 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11127 echo "configure:11128: checking whether alloca needs Cray hooks" >&5 11163 echo "configure:11164: checking whether alloca needs Cray hooks" >&5
11128 11164
11129 cat > conftest.$ac_ext <<EOF 11165 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure" 11166 #line 11167 "configure"
11131 #include "confdefs.h" 11167 #include "confdefs.h"
11132 #if defined(CRAY) && ! defined(CRAY2) 11168 #if defined(CRAY) && ! defined(CRAY2)
11133 webecray 11169 webecray
11134 #else 11170 #else
11135 wenotbecray 11171 wenotbecray
11149 11185
11150 echo "$ac_t""$ac_cv_os_cray" 1>&6 11186 echo "$ac_t""$ac_cv_os_cray" 1>&6
11151 if test $ac_cv_os_cray = yes; then 11187 if test $ac_cv_os_cray = yes; then
11152 for ac_func in _getb67 GETB67 getb67; do 11188 for ac_func in _getb67 GETB67 getb67; do
11153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11154 echo "configure:11155: checking for $ac_func" >&5 11190 echo "configure:11191: checking for $ac_func" >&5
11155 11191
11156 cat > conftest.$ac_ext <<EOF 11192 cat > conftest.$ac_ext <<EOF
11157 #line 11158 "configure" 11193 #line 11194 "configure"
11158 #include "confdefs.h" 11194 #include "confdefs.h"
11159 /* System header to define __stub macros and hopefully few prototypes, 11195 /* System header to define __stub macros and hopefully few prototypes,
11160 which can conflict with char $ac_func(); below. */ 11196 which can conflict with char $ac_func(); below. */
11161 #include <assert.h> 11197 #include <assert.h>
11162 /* Override any gcc2 internal prototype to avoid an error. */ 11198 /* Override any gcc2 internal prototype to avoid an error. */
11175 $ac_func(); 11211 $ac_func();
11176 #endif 11212 #endif
11177 11213
11178 ; return 0; } 11214 ; return 0; }
11179 EOF 11215 EOF
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11216 if { (eval echo configure:11217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11181 rm -rf conftest* 11217 rm -rf conftest*
11182 eval "ac_cv_func_$ac_func=yes" 11218 eval "ac_cv_func_$ac_func=yes"
11183 else 11219 else
11184 echo "configure: failed program was:" >&5 11220 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5 11221 cat conftest.$ac_ext >&5
11205 11241
11206 done 11242 done
11207 fi 11243 fi
11208 11244
11209 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 11245 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11210 echo "configure:11211: checking stack direction for C alloca" >&5 11246 echo "configure:11247: checking stack direction for C alloca" >&5
11211 11247
11212 cat > conftest.$ac_ext <<EOF 11248 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure" 11249 #line 11250 "configure"
11214 #include "confdefs.h" 11250 #include "confdefs.h"
11215 find_stack_direction () 11251 find_stack_direction ()
11216 { 11252 {
11217 static char *addr = 0; 11253 static char *addr = 0;
11218 auto char dummy; 11254 auto char dummy;
11227 main () 11263 main ()
11228 { 11264 {
11229 exit (find_stack_direction() < 0); 11265 exit (find_stack_direction() < 0);
11230 } 11266 }
11231 EOF 11267 EOF
11232 if { (eval echo configure:11233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11268 if { (eval echo configure:11269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11233 then 11269 then
11234 ac_cv_c_stack_direction=1 11270 ac_cv_c_stack_direction=1
11235 else 11271 else
11236 conftest_rc="$?" 11272 conftest_rc="$?"
11237 echo "configure: failed program was:" >&5 11273 echo "configure: failed program was:" >&5
11257 fi 11293 fi
11258 fi 11294 fi
11259 11295
11260 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 11296 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11261 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 11297 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11262 echo "configure:11263: checking for vfork.h" >&5 11298 echo "configure:11299: checking for vfork.h" >&5
11263 11299
11264 cat > conftest.$ac_ext <<EOF 11300 cat > conftest.$ac_ext <<EOF
11265 #line 11266 "configure" 11301 #line 11302 "configure"
11266 #include "confdefs.h" 11302 #include "confdefs.h"
11267 #include <vfork.h> 11303 #include <vfork.h>
11268 EOF 11304 EOF
11269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11270 { (eval echo configure:11271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11306 { (eval echo configure:11307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11272 if test -z "$ac_err"; then 11308 if test -z "$ac_err"; then
11273 rm -rf conftest* 11309 rm -rf conftest*
11274 eval "ac_cv_header_$ac_safe=yes" 11310 eval "ac_cv_header_$ac_safe=yes"
11275 else 11311 else
11293 else 11329 else
11294 echo "$ac_t""no" 1>&6 11330 echo "$ac_t""no" 1>&6
11295 fi 11331 fi
11296 11332
11297 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 11333 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11298 echo "configure:11299: checking for working vfork" >&5 11334 echo "configure:11335: checking for working vfork" >&5
11299 11335
11300 cat > conftest.$ac_ext <<EOF 11336 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure" 11337 #line 11338 "configure"
11302 #include "confdefs.h" 11338 #include "confdefs.h"
11303 /* Thanks to Paul Eggert for this test. */ 11339 /* Thanks to Paul Eggert for this test. */
11304 #include <stdio.h> 11340 #include <stdio.h>
11305 #include <sys/types.h> 11341 #include <sys/types.h>
11306 #include <sys/stat.h> 11342 #include <sys/stat.h>
11391 || fstat(fileno(stdout), &st) != 0 11427 || fstat(fileno(stdout), &st) != 0
11392 ); 11428 );
11393 } 11429 }
11394 } 11430 }
11395 EOF 11431 EOF
11396 if { (eval echo configure:11397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11432 if { (eval echo configure:11433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11397 then 11433 then
11398 ac_cv_func_vfork_works=yes 11434 ac_cv_func_vfork_works=yes
11399 else 11435 else
11400 conftest_rc="$?" 11436 conftest_rc="$?"
11401 echo "configure: failed program was:" >&5 11437 echo "configure: failed program was:" >&5
11417 11453
11418 fi 11454 fi
11419 11455
11420 11456
11421 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 11457 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11422 echo "configure:11423: checking for working strcoll" >&5 11458 echo "configure:11459: checking for working strcoll" >&5
11423 11459
11424 cat > conftest.$ac_ext <<EOF 11460 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure" 11461 #line 11462 "configure"
11426 #include "confdefs.h" 11462 #include "confdefs.h"
11427 #include <string.h> 11463 #include <string.h>
11428 main () 11464 main ()
11429 { 11465 {
11430 exit (strcoll ("abc", "def") >= 0 || 11466 exit (strcoll ("abc", "def") >= 0 ||
11431 strcoll ("ABC", "DEF") >= 0 || 11467 strcoll ("ABC", "DEF") >= 0 ||
11432 strcoll ("123", "456") >= 0); 11468 strcoll ("123", "456") >= 0);
11433 } 11469 }
11434 EOF 11470 EOF
11435 if { (eval echo configure:11436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11436 then 11472 then
11437 ac_cv_func_strcoll_works=yes 11473 ac_cv_func_strcoll_works=yes
11438 else 11474 else
11439 conftest_rc="$?" 11475 conftest_rc="$?"
11440 echo "configure: failed program was:" >&5 11476 echo "configure: failed program was:" >&5
11458 11494
11459 11495
11460 for ac_func in getpgrp 11496 for ac_func in getpgrp
11461 do 11497 do
11462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11498 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11463 echo "configure:11464: checking for $ac_func" >&5 11499 echo "configure:11500: checking for $ac_func" >&5
11464 11500
11465 cat > conftest.$ac_ext <<EOF 11501 cat > conftest.$ac_ext <<EOF
11466 #line 11467 "configure" 11502 #line 11503 "configure"
11467 #include "confdefs.h" 11503 #include "confdefs.h"
11468 /* System header to define __stub macros and hopefully few prototypes, 11504 /* System header to define __stub macros and hopefully few prototypes,
11469 which can conflict with char $ac_func(); below. */ 11505 which can conflict with char $ac_func(); below. */
11470 #include <assert.h> 11506 #include <assert.h>
11471 /* Override any gcc2 internal prototype to avoid an error. */ 11507 /* Override any gcc2 internal prototype to avoid an error. */
11484 $ac_func(); 11520 $ac_func();
11485 #endif 11521 #endif
11486 11522
11487 ; return 0; } 11523 ; return 0; }
11488 EOF 11524 EOF
11489 if { (eval echo configure:11490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11525 if { (eval echo configure:11526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11490 rm -rf conftest* 11526 rm -rf conftest*
11491 eval "ac_cv_func_$ac_func=yes" 11527 eval "ac_cv_func_$ac_func=yes"
11492 else 11528 else
11493 echo "configure: failed program was:" >&5 11529 echo "configure: failed program was:" >&5
11494 cat conftest.$ac_ext >&5 11530 cat conftest.$ac_ext >&5
11512 echo "$ac_t""no" 1>&6 11548 echo "$ac_t""no" 1>&6
11513 fi 11549 fi
11514 done 11550 done
11515 11551
11516 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 11552 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11517 echo "configure:11518: checking whether getpgrp takes no argument" >&5 11553 echo "configure:11554: checking whether getpgrp takes no argument" >&5
11518 11554
11519 cat > conftest.$ac_ext <<EOF 11555 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure" 11556 #line 11557 "configure"
11521 #include "confdefs.h" 11557 #include "confdefs.h"
11522 11558
11523 /* 11559 /*
11524 * If this system has a BSD-style getpgrp(), 11560 * If this system has a BSD-style getpgrp(),
11525 * which takes a pid argument, exit unsuccessfully. 11561 * which takes a pid argument, exit unsuccessfully.
11570 exit(s>>8); 11606 exit(s>>8);
11571 } 11607 }
11572 } 11608 }
11573 11609
11574 EOF 11610 EOF
11575 if { (eval echo configure:11576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11611 if { (eval echo configure:11612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11576 then 11612 then
11577 ac_cv_func_getpgrp_void=yes 11613 ac_cv_func_getpgrp_void=yes
11578 else 11614 else
11579 conftest_rc="$?" 11615 conftest_rc="$?"
11580 echo "configure: failed program was:" >&5 11616 echo "configure: failed program was:" >&5
11597 11633
11598 fi 11634 fi
11599 11635
11600 11636
11601 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 11637 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11602 echo "configure:11603: checking for working mmap" >&5 11638 echo "configure:11639: checking for working mmap" >&5
11603 case "$opsys" in ultrix* ) have_mmap=no ;; *) 11639 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11604 cat > conftest.$ac_ext <<EOF 11640 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure" 11641 #line 11642 "configure"
11606 #include "confdefs.h" 11642 #include "confdefs.h"
11607 #include <stdio.h> 11643 #include <stdio.h>
11608 #include <unistd.h> 11644 #include <unistd.h>
11609 #include <fcntl.h> 11645 #include <fcntl.h>
11610 #include <sys/mman.h> 11646 #include <sys/mman.h>
11633 return 0; 11669 return 0;
11634 perror ("conftest: mmap failed"); 11670 perror ("conftest: mmap failed");
11635 return 1; 11671 return 1;
11636 } 11672 }
11637 EOF 11673 EOF
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11674 if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11639 then 11675 then
11640 have_mmap=yes 11676 have_mmap=yes
11641 else 11677 else
11642 conftest_rc="$?" 11678 conftest_rc="$?"
11643 echo "configure: failed program was:" >&5 11679 echo "configure: failed program was:" >&5
11659 11695
11660 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 11696 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11661 if test "$rel_alloc $have_mmap" = "default yes"; then 11697 if test "$rel_alloc $have_mmap" = "default yes"; then
11662 if test "$doug_lea_malloc" = "yes"; then 11698 if test "$doug_lea_malloc" = "yes"; then
11663 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 11699 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11664 echo "configure:11665: checking for M_MMAP_THRESHOLD" >&5 11700 echo "configure:11701: checking for M_MMAP_THRESHOLD" >&5
11665 cat > conftest.$ac_ext <<EOF 11701 cat > conftest.$ac_ext <<EOF
11666 #line 11667 "configure" 11702 #line 11703 "configure"
11667 #include "confdefs.h" 11703 #include "confdefs.h"
11668 #include <malloc.h> 11704 #include <malloc.h>
11669 int main() { 11705 int main() {
11670 11706
11671 #ifndef M_MMAP_THRESHOLD 11707 #ifndef M_MMAP_THRESHOLD
11673 !@+$%^&*_)(_ - unlikely to compile... 11709 !@+$%^&*_)(_ - unlikely to compile...
11674 #endif 11710 #endif
11675 11711
11676 ; return 0; } 11712 ; return 0; }
11677 EOF 11713 EOF
11678 if { (eval echo configure:11679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11714 if { (eval echo configure:11715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11679 rm -rf conftest* 11715 rm -rf conftest*
11680 rel_alloc=no; echo "$ac_t""yes" 1>&6; 11716 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11681 else 11717 else
11682 echo "configure: failed program was:" >&5 11718 echo "configure: failed program was:" >&5
11683 cat conftest.$ac_ext >&5 11719 cat conftest.$ac_ext >&5
11698 } 11734 }
11699 11735
11700 11736
11701 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 11737 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11702 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 11738 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11703 echo "configure:11704: checking for termios.h" >&5 11739 echo "configure:11740: checking for termios.h" >&5
11704 11740
11705 cat > conftest.$ac_ext <<EOF 11741 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure" 11742 #line 11743 "configure"
11707 #include "confdefs.h" 11743 #include "confdefs.h"
11708 #include <termios.h> 11744 #include <termios.h>
11709 EOF 11745 EOF
11710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11711 { (eval echo configure:11712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11747 { (eval echo configure:11748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11713 if test -z "$ac_err"; then 11749 if test -z "$ac_err"; then
11714 rm -rf conftest* 11750 rm -rf conftest*
11715 eval "ac_cv_header_$ac_safe=yes" 11751 eval "ac_cv_header_$ac_safe=yes"
11716 else 11752 else
11749 11785
11750 else 11786 else
11751 echo "$ac_t""no" 1>&6 11787 echo "$ac_t""no" 1>&6
11752 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 11788 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11753 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 11789 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11754 echo "configure:11755: checking for termio.h" >&5 11790 echo "configure:11791: checking for termio.h" >&5
11755 11791
11756 cat > conftest.$ac_ext <<EOF 11792 cat > conftest.$ac_ext <<EOF
11757 #line 11758 "configure" 11793 #line 11794 "configure"
11758 #include "confdefs.h" 11794 #include "confdefs.h"
11759 #include <termio.h> 11795 #include <termio.h>
11760 EOF 11796 EOF
11761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11762 { (eval echo configure:11763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11798 { (eval echo configure:11799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11764 if test -z "$ac_err"; then 11800 if test -z "$ac_err"; then
11765 rm -rf conftest* 11801 rm -rf conftest*
11766 eval "ac_cv_header_$ac_safe=yes" 11802 eval "ac_cv_header_$ac_safe=yes"
11767 else 11803 else
11789 fi 11825 fi
11790 11826
11791 11827
11792 11828
11793 echo $ac_n "checking for socket""... $ac_c" 1>&6 11829 echo $ac_n "checking for socket""... $ac_c" 1>&6
11794 echo "configure:11795: checking for socket" >&5 11830 echo "configure:11831: checking for socket" >&5
11795 11831
11796 cat > conftest.$ac_ext <<EOF 11832 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure" 11833 #line 11834 "configure"
11798 #include "confdefs.h" 11834 #include "confdefs.h"
11799 /* System header to define __stub macros and hopefully few prototypes, 11835 /* System header to define __stub macros and hopefully few prototypes,
11800 which can conflict with char socket(); below. */ 11836 which can conflict with char socket(); below. */
11801 #include <assert.h> 11837 #include <assert.h>
11802 /* Override any gcc2 internal prototype to avoid an error. */ 11838 /* Override any gcc2 internal prototype to avoid an error. */
11815 socket(); 11851 socket();
11816 #endif 11852 #endif
11817 11853
11818 ; return 0; } 11854 ; return 0; }
11819 EOF 11855 EOF
11820 if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11856 if { (eval echo configure:11857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11821 rm -rf conftest* 11857 rm -rf conftest*
11822 eval "ac_cv_func_socket=yes" 11858 eval "ac_cv_func_socket=yes"
11823 else 11859 else
11824 echo "configure: failed program was:" >&5 11860 echo "configure: failed program was:" >&5
11825 cat conftest.$ac_ext >&5 11861 cat conftest.$ac_ext >&5
11830 11866
11831 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 11867 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11832 echo "$ac_t""yes" 1>&6 11868 echo "$ac_t""yes" 1>&6
11833 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 11869 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11834 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 11870 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11835 echo "configure:11836: checking for netinet/in.h" >&5 11871 echo "configure:11872: checking for netinet/in.h" >&5
11836 11872
11837 cat > conftest.$ac_ext <<EOF 11873 cat > conftest.$ac_ext <<EOF
11838 #line 11839 "configure" 11874 #line 11875 "configure"
11839 #include "confdefs.h" 11875 #include "confdefs.h"
11840 #include <netinet/in.h> 11876 #include <netinet/in.h>
11841 EOF 11877 EOF
11842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11843 { (eval echo configure:11844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11879 { (eval echo configure:11880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11845 if test -z "$ac_err"; then 11881 if test -z "$ac_err"; then
11846 rm -rf conftest* 11882 rm -rf conftest*
11847 eval "ac_cv_header_$ac_safe=yes" 11883 eval "ac_cv_header_$ac_safe=yes"
11848 else 11884 else
11855 rm -f conftest* 11891 rm -f conftest*
11856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 11892 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11857 echo "$ac_t""yes" 1>&6 11893 echo "$ac_t""yes" 1>&6
11858 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 11894 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11859 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 11895 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11860 echo "configure:11861: checking for arpa/inet.h" >&5 11896 echo "configure:11897: checking for arpa/inet.h" >&5
11861 11897
11862 cat > conftest.$ac_ext <<EOF 11898 cat > conftest.$ac_ext <<EOF
11863 #line 11864 "configure" 11899 #line 11900 "configure"
11864 #include "confdefs.h" 11900 #include "confdefs.h"
11865 #include <arpa/inet.h> 11901 #include <arpa/inet.h>
11866 EOF 11902 EOF
11867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11868 { (eval echo configure:11869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11904 { (eval echo configure:11905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11870 if test -z "$ac_err"; then 11906 if test -z "$ac_err"; then
11871 rm -rf conftest* 11907 rm -rf conftest*
11872 eval "ac_cv_header_$ac_safe=yes" 11908 eval "ac_cv_header_$ac_safe=yes"
11873 else 11909 else
11888 #define HAVE_SOCKETS 1 11924 #define HAVE_SOCKETS 1
11889 EOF 11925 EOF
11890 } 11926 }
11891 11927
11892 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 11928 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11893 echo "configure:11894: checking "for sun_len member in struct sockaddr_un"" >&5 11929 echo "configure:11930: checking "for sun_len member in struct sockaddr_un"" >&5
11894 cat > conftest.$ac_ext <<EOF 11930 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure" 11931 #line 11932 "configure"
11896 #include "confdefs.h" 11932 #include "confdefs.h"
11897 11933
11898 #include <sys/types.h> 11934 #include <sys/types.h>
11899 #include <sys/socket.h> 11935 #include <sys/socket.h>
11900 #include <sys/un.h> 11936 #include <sys/un.h>
11901 11937
11902 int main() { 11938 int main() {
11903 static struct sockaddr_un x; x.sun_len = 1; 11939 static struct sockaddr_un x; x.sun_len = 1;
11904 ; return 0; } 11940 ; return 0; }
11905 EOF 11941 EOF
11906 if { (eval echo configure:11907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11942 if { (eval echo configure:11943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11907 rm -rf conftest* 11943 rm -rf conftest*
11908 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 11944 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11909 Defining HAVE_SOCKADDR_SUN_LEN 11945 Defining HAVE_SOCKADDR_SUN_LEN
11910 EOF 11946 EOF
11911 cat >> confdefs.h <<\EOF 11947 cat >> confdefs.h <<\EOF
11919 rm -rf conftest* 11955 rm -rf conftest*
11920 echo "$ac_t""no" 1>&6 11956 echo "$ac_t""no" 1>&6
11921 fi 11957 fi
11922 rm -f conftest* 11958 rm -f conftest*
11923 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 11959 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
11924 echo "configure:11925: checking "for ip_mreq struct in netinet/in.h"" >&5 11960 echo "configure:11961: checking "for ip_mreq struct in netinet/in.h"" >&5
11925 cat > conftest.$ac_ext <<EOF 11961 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure" 11962 #line 11963 "configure"
11927 #include "confdefs.h" 11963 #include "confdefs.h"
11928 11964
11929 #include <sys/types.h> 11965 #include <sys/types.h>
11930 #include <netinet/in.h> 11966 #include <netinet/in.h>
11931 11967
11932 int main() { 11968 int main() {
11933 static struct ip_mreq x; 11969 static struct ip_mreq x;
11934 ; return 0; } 11970 ; return 0; }
11935 EOF 11971 EOF
11936 if { (eval echo configure:11937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11972 if { (eval echo configure:11973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11937 rm -rf conftest* 11973 rm -rf conftest*
11938 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 11974 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11939 Defining HAVE_MULTICAST 11975 Defining HAVE_MULTICAST
11940 EOF 11976 EOF
11941 cat >> confdefs.h <<\EOF 11977 cat >> confdefs.h <<\EOF
11962 echo "$ac_t""no" 1>&6 11998 echo "$ac_t""no" 1>&6
11963 fi 11999 fi
11964 12000
11965 12001
11966 echo $ac_n "checking for msgget""... $ac_c" 1>&6 12002 echo $ac_n "checking for msgget""... $ac_c" 1>&6
11967 echo "configure:11968: checking for msgget" >&5 12003 echo "configure:12004: checking for msgget" >&5
11968 12004
11969 cat > conftest.$ac_ext <<EOF 12005 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure" 12006 #line 12007 "configure"
11971 #include "confdefs.h" 12007 #include "confdefs.h"
11972 /* System header to define __stub macros and hopefully few prototypes, 12008 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char msgget(); below. */ 12009 which can conflict with char msgget(); below. */
11974 #include <assert.h> 12010 #include <assert.h>
11975 /* Override any gcc2 internal prototype to avoid an error. */ 12011 /* Override any gcc2 internal prototype to avoid an error. */
11988 msgget(); 12024 msgget();
11989 #endif 12025 #endif
11990 12026
11991 ; return 0; } 12027 ; return 0; }
11992 EOF 12028 EOF
11993 if { (eval echo configure:11994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12029 if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11994 rm -rf conftest* 12030 rm -rf conftest*
11995 eval "ac_cv_func_msgget=yes" 12031 eval "ac_cv_func_msgget=yes"
11996 else 12032 else
11997 echo "configure: failed program was:" >&5 12033 echo "configure: failed program was:" >&5
11998 cat conftest.$ac_ext >&5 12034 cat conftest.$ac_ext >&5
12003 12039
12004 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12040 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12005 echo "$ac_t""yes" 1>&6 12041 echo "$ac_t""yes" 1>&6
12006 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12042 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12007 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12043 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12008 echo "configure:12009: checking for sys/ipc.h" >&5 12044 echo "configure:12045: checking for sys/ipc.h" >&5
12009 12045
12010 cat > conftest.$ac_ext <<EOF 12046 cat > conftest.$ac_ext <<EOF
12011 #line 12012 "configure" 12047 #line 12048 "configure"
12012 #include "confdefs.h" 12048 #include "confdefs.h"
12013 #include <sys/ipc.h> 12049 #include <sys/ipc.h>
12014 EOF 12050 EOF
12015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12016 { (eval echo configure:12017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12052 { (eval echo configure:12053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12018 if test -z "$ac_err"; then 12054 if test -z "$ac_err"; then
12019 rm -rf conftest* 12055 rm -rf conftest*
12020 eval "ac_cv_header_$ac_safe=yes" 12056 eval "ac_cv_header_$ac_safe=yes"
12021 else 12057 else
12028 rm -f conftest* 12064 rm -f conftest*
12029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12030 echo "$ac_t""yes" 1>&6 12066 echo "$ac_t""yes" 1>&6
12031 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12067 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12032 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12068 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12033 echo "configure:12034: checking for sys/msg.h" >&5 12069 echo "configure:12070: checking for sys/msg.h" >&5
12034 12070
12035 cat > conftest.$ac_ext <<EOF 12071 cat > conftest.$ac_ext <<EOF
12036 #line 12037 "configure" 12072 #line 12073 "configure"
12037 #include "confdefs.h" 12073 #include "confdefs.h"
12038 #include <sys/msg.h> 12074 #include <sys/msg.h>
12039 EOF 12075 EOF
12040 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12041 { (eval echo configure:12042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12077 { (eval echo configure:12078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12042 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12043 if test -z "$ac_err"; then 12079 if test -z "$ac_err"; then
12044 rm -rf conftest* 12080 rm -rf conftest*
12045 eval "ac_cv_header_$ac_safe=yes" 12081 eval "ac_cv_header_$ac_safe=yes"
12046 else 12082 else
12074 fi 12110 fi
12075 12111
12076 12112
12077 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12113 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12078 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12114 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12079 echo "configure:12080: checking for dirent.h" >&5 12115 echo "configure:12116: checking for dirent.h" >&5
12080 12116
12081 cat > conftest.$ac_ext <<EOF 12117 cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure" 12118 #line 12119 "configure"
12083 #include "confdefs.h" 12119 #include "confdefs.h"
12084 #include <dirent.h> 12120 #include <dirent.h>
12085 EOF 12121 EOF
12086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12087 { (eval echo configure:12088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12123 { (eval echo configure:12124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12089 if test -z "$ac_err"; then 12125 if test -z "$ac_err"; then
12090 rm -rf conftest* 12126 rm -rf conftest*
12091 eval "ac_cv_header_$ac_safe=yes" 12127 eval "ac_cv_header_$ac_safe=yes"
12092 else 12128 else
12109 12145
12110 else 12146 else
12111 echo "$ac_t""no" 1>&6 12147 echo "$ac_t""no" 1>&6
12112 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 12148 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12113 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 12149 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12114 echo "configure:12115: checking for sys/dir.h" >&5 12150 echo "configure:12151: checking for sys/dir.h" >&5
12115 12151
12116 cat > conftest.$ac_ext <<EOF 12152 cat > conftest.$ac_ext <<EOF
12117 #line 12118 "configure" 12153 #line 12154 "configure"
12118 #include "confdefs.h" 12154 #include "confdefs.h"
12119 #include <sys/dir.h> 12155 #include <sys/dir.h>
12120 EOF 12156 EOF
12121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12122 { (eval echo configure:12123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12158 { (eval echo configure:12159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12124 if test -z "$ac_err"; then 12160 if test -z "$ac_err"; then
12125 rm -rf conftest* 12161 rm -rf conftest*
12126 eval "ac_cv_header_$ac_safe=yes" 12162 eval "ac_cv_header_$ac_safe=yes"
12127 else 12163 else
12150 fi 12186 fi
12151 12187
12152 12188
12153 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 12189 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12154 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 12190 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12155 echo "configure:12156: checking for nlist.h" >&5 12191 echo "configure:12192: checking for nlist.h" >&5
12156 12192
12157 cat > conftest.$ac_ext <<EOF 12193 cat > conftest.$ac_ext <<EOF
12158 #line 12159 "configure" 12194 #line 12195 "configure"
12159 #include "confdefs.h" 12195 #include "confdefs.h"
12160 #include <nlist.h> 12196 #include <nlist.h>
12161 EOF 12197 EOF
12162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12163 { (eval echo configure:12164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12199 { (eval echo configure:12200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12165 if test -z "$ac_err"; then 12201 if test -z "$ac_err"; then
12166 rm -rf conftest* 12202 rm -rf conftest*
12167 eval "ac_cv_header_$ac_safe=yes" 12203 eval "ac_cv_header_$ac_safe=yes"
12168 else 12204 else
12188 fi 12224 fi
12189 12225
12190 12226
12191 12227
12192 echo "checking "for sound support"" 1>&6 12228 echo "checking "for sound support"" 1>&6
12193 echo "configure:12194: checking "for sound support"" >&5 12229 echo "configure:12230: checking "for sound support"" >&5
12194 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 12230 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12195 12231
12196 if test "$with_native_sound" != "no"; then 12232 if test "$with_native_sound" != "no"; then
12197 if test -n "$native_sound_lib"; then 12233 if test -n "$native_sound_lib"; then
12198 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 12234 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12199 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 12235 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12200 echo "configure:12201: checking for multimedia/audio_device.h" >&5 12236 echo "configure:12237: checking for multimedia/audio_device.h" >&5
12201 12237
12202 cat > conftest.$ac_ext <<EOF 12238 cat > conftest.$ac_ext <<EOF
12203 #line 12204 "configure" 12239 #line 12240 "configure"
12204 #include "confdefs.h" 12240 #include "confdefs.h"
12205 #include <multimedia/audio_device.h> 12241 #include <multimedia/audio_device.h>
12206 EOF 12242 EOF
12207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12208 { (eval echo configure:12209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12244 { (eval echo configure:12245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12210 if test -z "$ac_err"; then 12246 if test -z "$ac_err"; then
12211 rm -rf conftest* 12247 rm -rf conftest*
12212 eval "ac_cv_header_$ac_safe=yes" 12248 eval "ac_cv_header_$ac_safe=yes"
12213 else 12249 else
12251 case "$canonical" in 12287 case "$canonical" in
12252 *-sgi-* ) 12288 *-sgi-* )
12253 if test -z "$native_sound_lib"; then 12289 if test -z "$native_sound_lib"; then
12254 12290
12255 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 12291 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12256 echo "configure:12257: checking for ALopenport in -laudio" >&5 12292 echo "configure:12293: checking for ALopenport in -laudio" >&5
12257 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 12293 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12258 12294
12259 xe_check_libs=" -laudio " 12295 xe_check_libs=" -laudio "
12260 cat > conftest.$ac_ext <<EOF 12296 cat > conftest.$ac_ext <<EOF
12261 #line 12262 "configure" 12297 #line 12298 "configure"
12262 #include "confdefs.h" 12298 #include "confdefs.h"
12263 /* Override any gcc2 internal prototype to avoid an error. */ 12299 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2 12300 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */ 12301 builtin and then its argument prototype would still apply. */
12266 char ALopenport(); 12302 char ALopenport();
12267 12303
12268 int main() { 12304 int main() {
12269 ALopenport() 12305 ALopenport()
12270 ; return 0; } 12306 ; return 0; }
12271 EOF 12307 EOF
12272 if { (eval echo configure:12273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12308 if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12273 rm -rf conftest* 12309 rm -rf conftest*
12274 eval "ac_cv_lib_$ac_lib_var=yes" 12310 eval "ac_cv_lib_$ac_lib_var=yes"
12275 else 12311 else
12276 echo "configure: failed program was:" >&5 12312 echo "configure: failed program was:" >&5
12277 cat conftest.$ac_ext >&5 12313 cat conftest.$ac_ext >&5
12298 fi ;; 12334 fi ;;
12299 hppa*-hp-hpux* ) 12335 hppa*-hp-hpux* )
12300 if test -z "$native_sound_lib"; then 12336 if test -z "$native_sound_lib"; then
12301 12337
12302 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 12338 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12303 echo "configure:12304: checking for AOpenAudio in -lAlib" >&5 12339 echo "configure:12340: checking for AOpenAudio in -lAlib" >&5
12304 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 12340 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12305 12341
12306 xe_check_libs=" -lAlib " 12342 xe_check_libs=" -lAlib "
12307 cat > conftest.$ac_ext <<EOF 12343 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure" 12344 #line 12345 "configure"
12309 #include "confdefs.h" 12345 #include "confdefs.h"
12310 /* Override any gcc2 internal prototype to avoid an error. */ 12346 /* Override any gcc2 internal prototype to avoid an error. */
12311 /* We use char because int might match the return type of a gcc2 12347 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */ 12348 builtin and then its argument prototype would still apply. */
12313 char AOpenAudio(); 12349 char AOpenAudio();
12314 12350
12315 int main() { 12351 int main() {
12316 AOpenAudio() 12352 AOpenAudio()
12317 ; return 0; } 12353 ; return 0; }
12318 EOF 12354 EOF
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12355 if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12320 rm -rf conftest* 12356 rm -rf conftest*
12321 eval "ac_cv_lib_$ac_lib_var=yes" 12357 eval "ac_cv_lib_$ac_lib_var=yes"
12322 else 12358 else
12323 echo "configure: failed program was:" >&5 12359 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5 12360 cat conftest.$ac_ext >&5
12352 12388
12353 if test -z "$sound_found"; then 12389 if test -z "$sound_found"; then
12354 for dir in "machine" "sys" "linux"; do 12390 for dir in "machine" "sys" "linux"; do
12355 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 12391 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12356 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 12392 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12357 echo "configure:12358: checking for ${dir}/soundcard.h" >&5 12393 echo "configure:12394: checking for ${dir}/soundcard.h" >&5
12358 12394
12359 cat > conftest.$ac_ext <<EOF 12395 cat > conftest.$ac_ext <<EOF
12360 #line 12361 "configure" 12396 #line 12397 "configure"
12361 #include "confdefs.h" 12397 #include "confdefs.h"
12362 #include <${dir}/soundcard.h> 12398 #include <${dir}/soundcard.h>
12363 EOF 12399 EOF
12364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12365 { (eval echo configure:12366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12401 { (eval echo configure:12402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12367 if test -z "$ac_err"; then 12403 if test -z "$ac_err"; then
12368 rm -rf conftest* 12404 rm -rf conftest*
12369 eval "ac_cv_header_$ac_safe=yes" 12405 eval "ac_cv_header_$ac_safe=yes"
12370 else 12406 else
12421 fi 12457 fi
12422 12458
12423 if test "$with_nas_sound" != "no"; then 12459 if test "$with_nas_sound" != "no"; then
12424 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 12460 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12425 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 12461 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12426 echo "configure:12427: checking for audio/audiolib.h" >&5 12462 echo "configure:12463: checking for audio/audiolib.h" >&5
12427 12463
12428 cat > conftest.$ac_ext <<EOF 12464 cat > conftest.$ac_ext <<EOF
12429 #line 12430 "configure" 12465 #line 12466 "configure"
12430 #include "confdefs.h" 12466 #include "confdefs.h"
12431 #include <audio/audiolib.h> 12467 #include <audio/audiolib.h>
12432 EOF 12468 EOF
12433 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12434 { (eval echo configure:12435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12470 { (eval echo configure:12471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12435 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12436 if test -z "$ac_err"; then 12472 if test -z "$ac_err"; then
12437 rm -rf conftest* 12473 rm -rf conftest*
12438 eval "ac_cv_header_$ac_safe=yes" 12474 eval "ac_cv_header_$ac_safe=yes"
12439 else 12475 else
12447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12448 echo "$ac_t""yes" 1>&6 12484 echo "$ac_t""yes" 1>&6
12449 12485
12450 12486
12451 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 12487 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12452 echo "configure:12453: checking for AuOpenServer in -laudio" >&5 12488 echo "configure:12489: checking for AuOpenServer in -laudio" >&5
12453 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 12489 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12454 12490
12455 xe_check_libs=" -laudio " 12491 xe_check_libs=" -laudio "
12456 cat > conftest.$ac_ext <<EOF 12492 cat > conftest.$ac_ext <<EOF
12457 #line 12458 "configure" 12493 #line 12494 "configure"
12458 #include "confdefs.h" 12494 #include "confdefs.h"
12459 /* Override any gcc2 internal prototype to avoid an error. */ 12495 /* Override any gcc2 internal prototype to avoid an error. */
12460 /* We use char because int might match the return type of a gcc2 12496 /* We use char because int might match the return type of a gcc2
12461 builtin and then its argument prototype would still apply. */ 12497 builtin and then its argument prototype would still apply. */
12462 char AuOpenServer(); 12498 char AuOpenServer();
12463 12499
12464 int main() { 12500 int main() {
12465 AuOpenServer() 12501 AuOpenServer()
12466 ; return 0; } 12502 ; return 0; }
12467 EOF 12503 EOF
12468 if { (eval echo configure:12469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12504 if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12469 rm -rf conftest* 12505 rm -rf conftest*
12470 eval "ac_cv_lib_$ac_lib_var=yes" 12506 eval "ac_cv_lib_$ac_lib_var=yes"
12471 else 12507 else
12472 echo "configure: failed program was:" >&5 12508 echo "configure: failed program was:" >&5
12473 cat conftest.$ac_ext >&5 12509 cat conftest.$ac_ext >&5
12502 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 12538 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12503 echo " xemacs will be linked with \"nas.o\"" 12539 echo " xemacs will be linked with \"nas.o\""
12504 fi 12540 fi
12505 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 12541 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12506 cat > conftest.$ac_ext <<EOF 12542 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure" 12543 #line 12544 "configure"
12508 #include "confdefs.h" 12544 #include "confdefs.h"
12509 #include <audio/Xtutil.h> 12545 #include <audio/Xtutil.h>
12510 EOF 12546 EOF
12511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12512 egrep "AuXtErrorJump" >/dev/null 2>&1; then 12548 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12533 12569
12534 if test "$with_esd_sound" != "no"; then 12570 if test "$with_esd_sound" != "no"; then
12535 # Extract the first word of "esd-config", so it can be a program name with args. 12571 # Extract the first word of "esd-config", so it can be a program name with args.
12536 set dummy esd-config; ac_word=$2 12572 set dummy esd-config; ac_word=$2
12537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 12573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12538 echo "configure:12539: checking for $ac_word" >&5 12574 echo "configure:12575: checking for $ac_word" >&5
12539 12575
12540 if test -n "$have_esd_config"; then 12576 if test -n "$have_esd_config"; then
12541 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 12577 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12542 else 12578 else
12543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 12579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12562 if test "$have_esd_config" = "yes"; then 12598 if test "$have_esd_config" = "yes"; then
12563 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 12599 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12564 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 12600 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
12565 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 12601 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12566 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 12602 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12567 echo "configure:12568: checking for esd_play_stream" >&5 12603 echo "configure:12604: checking for esd_play_stream" >&5
12568 12604
12569 cat > conftest.$ac_ext <<EOF 12605 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure" 12606 #line 12607 "configure"
12571 #include "confdefs.h" 12607 #include "confdefs.h"
12572 /* System header to define __stub macros and hopefully few prototypes, 12608 /* System header to define __stub macros and hopefully few prototypes,
12573 which can conflict with char esd_play_stream(); below. */ 12609 which can conflict with char esd_play_stream(); below. */
12574 #include <assert.h> 12610 #include <assert.h>
12575 /* Override any gcc2 internal prototype to avoid an error. */ 12611 /* Override any gcc2 internal prototype to avoid an error. */
12588 esd_play_stream(); 12624 esd_play_stream();
12589 #endif 12625 #endif
12590 12626
12591 ; return 0; } 12627 ; return 0; }
12592 EOF 12628 EOF
12593 if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12629 if { (eval echo configure:12630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12594 rm -rf conftest* 12630 rm -rf conftest*
12595 eval "ac_cv_func_esd_play_stream=yes" 12631 eval "ac_cv_func_esd_play_stream=yes"
12596 else 12632 else
12597 echo "configure: failed program was:" >&5 12633 echo "configure: failed program was:" >&5
12598 cat conftest.$ac_ext >&5 12634 cat conftest.$ac_ext >&5
12639 12675
12640 test -z "$with_tty" && with_tty=yes 12676 test -z "$with_tty" && with_tty=yes
12641 12677
12642 if test "$with_tty" = "yes" ; then 12678 if test "$with_tty" = "yes" ; then
12643 echo "checking for TTY-related features" 1>&6 12679 echo "checking for TTY-related features" 1>&6
12644 echo "configure:12645: checking for TTY-related features" >&5 12680 echo "configure:12681: checking for TTY-related features" >&5
12645 { test "$extra_verbose" = "yes" && cat << \EOF 12681 { test "$extra_verbose" = "yes" && cat << \EOF
12646 Defining HAVE_TTY 12682 Defining HAVE_TTY
12647 EOF 12683 EOF
12648 cat >> confdefs.h <<\EOF 12684 cat >> confdefs.h <<\EOF
12649 #define HAVE_TTY 1 12685 #define HAVE_TTY 1
12655 fi 12691 fi
12656 12692
12657 if test -z "$with_ncurses"; then 12693 if test -z "$with_ncurses"; then
12658 12694
12659 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 12695 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12660 echo "configure:12661: checking for tgetent in -lncurses" >&5 12696 echo "configure:12697: checking for tgetent in -lncurses" >&5
12661 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 12697 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12662 12698
12663 xe_check_libs=" -lncurses " 12699 xe_check_libs=" -lncurses "
12664 cat > conftest.$ac_ext <<EOF 12700 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure" 12701 #line 12702 "configure"
12666 #include "confdefs.h" 12702 #include "confdefs.h"
12667 /* Override any gcc2 internal prototype to avoid an error. */ 12703 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2 12704 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */ 12705 builtin and then its argument prototype would still apply. */
12670 char tgetent(); 12706 char tgetent();
12671 12707
12672 int main() { 12708 int main() {
12673 tgetent() 12709 tgetent()
12674 ; return 0; } 12710 ; return 0; }
12675 EOF 12711 EOF
12676 if { (eval echo configure:12677: \"$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
12677 rm -rf conftest* 12713 rm -rf conftest*
12678 eval "ac_cv_lib_$ac_lib_var=yes" 12714 eval "ac_cv_lib_$ac_lib_var=yes"
12679 else 12715 else
12680 echo "configure: failed program was:" >&5 12716 echo "configure: failed program was:" >&5
12681 cat conftest.$ac_ext >&5 12717 cat conftest.$ac_ext >&5
12704 EOF 12740 EOF
12705 } 12741 }
12706 12742
12707 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 12743 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12708 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 12744 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12709 echo "configure:12710: checking for ncurses/curses.h" >&5 12745 echo "configure:12746: checking for ncurses/curses.h" >&5
12710 12746
12711 cat > conftest.$ac_ext <<EOF 12747 cat > conftest.$ac_ext <<EOF
12712 #line 12713 "configure" 12748 #line 12749 "configure"
12713 #include "confdefs.h" 12749 #include "confdefs.h"
12714 #include <ncurses/curses.h> 12750 #include <ncurses/curses.h>
12715 EOF 12751 EOF
12716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12717 { (eval echo configure:12718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12753 { (eval echo configure:12754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12719 if test -z "$ac_err"; then 12755 if test -z "$ac_err"; then
12720 rm -rf conftest* 12756 rm -rf conftest*
12721 eval "ac_cv_header_$ac_safe=yes" 12757 eval "ac_cv_header_$ac_safe=yes"
12722 else 12758 else
12734 echo "$ac_t""no" 1>&6 12770 echo "$ac_t""no" 1>&6
12735 fi 12771 fi
12736 12772
12737 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 12773 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12738 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 12774 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12739 echo "configure:12740: checking for ncurses/term.h" >&5 12775 echo "configure:12776: checking for ncurses/term.h" >&5
12740 12776
12741 cat > conftest.$ac_ext <<EOF 12777 cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure" 12778 #line 12779 "configure"
12743 #include "confdefs.h" 12779 #include "confdefs.h"
12744 #include <ncurses/term.h> 12780 #include <ncurses/term.h>
12745 EOF 12781 EOF
12746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12747 { (eval echo configure:12748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12783 { (eval echo configure:12784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12749 if test -z "$ac_err"; then 12785 if test -z "$ac_err"; then
12750 rm -rf conftest* 12786 rm -rf conftest*
12751 eval "ac_cv_header_$ac_safe=yes" 12787 eval "ac_cv_header_$ac_safe=yes"
12752 else 12788 else
12772 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 12808 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12773 save_c_switch_site="$c_switch_site" 12809 save_c_switch_site="$c_switch_site"
12774 c_switch_site="$c_switch_site -I/usr/include/ncurses" 12810 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12775 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 12811 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12776 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 12812 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12777 echo "configure:12778: checking for ncurses/curses.h" >&5 12813 echo "configure:12814: checking for ncurses/curses.h" >&5
12778 12814
12779 cat > conftest.$ac_ext <<EOF 12815 cat > conftest.$ac_ext <<EOF
12780 #line 12781 "configure" 12816 #line 12817 "configure"
12781 #include "confdefs.h" 12817 #include "confdefs.h"
12782 #include <ncurses/curses.h> 12818 #include <ncurses/curses.h>
12783 EOF 12819 EOF
12784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12785 { (eval echo configure:12786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12821 { (eval echo configure:12822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12787 if test -z "$ac_err"; then 12823 if test -z "$ac_err"; then
12788 rm -rf conftest* 12824 rm -rf conftest*
12789 eval "ac_cv_header_$ac_safe=yes" 12825 eval "ac_cv_header_$ac_safe=yes"
12790 else 12826 else
12815 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 12851 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12816 else 12852 else
12817 for lib in curses termlib termcap; do 12853 for lib in curses termlib termcap; do
12818 12854
12819 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 12855 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12820 echo "configure:12821: checking for tgetent in -l$lib" >&5 12856 echo "configure:12857: checking for tgetent in -l$lib" >&5
12821 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 12857 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12822 12858
12823 xe_check_libs=" -l$lib " 12859 xe_check_libs=" -l$lib "
12824 cat > conftest.$ac_ext <<EOF 12860 cat > conftest.$ac_ext <<EOF
12825 #line 12826 "configure" 12861 #line 12862 "configure"
12826 #include "confdefs.h" 12862 #include "confdefs.h"
12827 /* Override any gcc2 internal prototype to avoid an error. */ 12863 /* Override any gcc2 internal prototype to avoid an error. */
12828 /* We use char because int might match the return type of a gcc2 12864 /* We use char because int might match the return type of a gcc2
12829 builtin and then its argument prototype would still apply. */ 12865 builtin and then its argument prototype would still apply. */
12830 char tgetent(); 12866 char tgetent();
12831 12867
12832 int main() { 12868 int main() {
12833 tgetent() 12869 tgetent()
12834 ; return 0; } 12870 ; return 0; }
12835 EOF 12871 EOF
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12872 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12837 rm -rf conftest* 12873 rm -rf conftest*
12838 eval "ac_cv_lib_$ac_lib_var=yes" 12874 eval "ac_cv_lib_$ac_lib_var=yes"
12839 else 12875 else
12840 echo "configure: failed program was:" >&5 12876 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5 12877 cat conftest.$ac_ext >&5
12862 if test -n "$libs_termcap"; then 12898 if test -n "$libs_termcap"; then
12863 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 12899 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12864 else 12900 else
12865 12901
12866 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 12902 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12867 echo "configure:12868: checking for tgetent in -lcurses" >&5 12903 echo "configure:12904: checking for tgetent in -lcurses" >&5
12868 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 12904 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12869 12905
12870 xe_check_libs=" -lcurses " 12906 xe_check_libs=" -lcurses "
12871 cat > conftest.$ac_ext <<EOF 12907 cat > conftest.$ac_ext <<EOF
12872 #line 12873 "configure" 12908 #line 12909 "configure"
12873 #include "confdefs.h" 12909 #include "confdefs.h"
12874 /* Override any gcc2 internal prototype to avoid an error. */ 12910 /* Override any gcc2 internal prototype to avoid an error. */
12875 /* We use char because int might match the return type of a gcc2 12911 /* We use char because int might match the return type of a gcc2
12876 builtin and then its argument prototype would still apply. */ 12912 builtin and then its argument prototype would still apply. */
12877 char tgetent(); 12913 char tgetent();
12878 12914
12879 int main() { 12915 int main() {
12880 tgetent() 12916 tgetent()
12881 ; return 0; } 12917 ; return 0; }
12882 EOF 12918 EOF
12883 if { (eval echo configure:12884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12919 if { (eval echo configure:12920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12884 rm -rf conftest* 12920 rm -rf conftest*
12885 eval "ac_cv_lib_$ac_lib_var=yes" 12921 eval "ac_cv_lib_$ac_lib_var=yes"
12886 else 12922 else
12887 echo "configure: failed program was:" >&5 12923 echo "configure: failed program was:" >&5
12888 cat conftest.$ac_ext >&5 12924 cat conftest.$ac_ext >&5
12896 echo "$ac_t""yes" 1>&6 12932 echo "$ac_t""yes" 1>&6
12897 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 12933 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12898 else 12934 else
12899 echo "$ac_t""no" 1>&6 12935 echo "$ac_t""no" 1>&6
12900 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 12936 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12901 echo "configure:12902: checking for tgetent in -ltermcap" >&5 12937 echo "configure:12938: checking for tgetent in -ltermcap" >&5
12902 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 12938 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12903 12939
12904 xe_check_libs=" -ltermcap " 12940 xe_check_libs=" -ltermcap "
12905 cat > conftest.$ac_ext <<EOF 12941 cat > conftest.$ac_ext <<EOF
12906 #line 12907 "configure" 12942 #line 12943 "configure"
12907 #include "confdefs.h" 12943 #include "confdefs.h"
12908 /* Override any gcc2 internal prototype to avoid an error. */ 12944 /* Override any gcc2 internal prototype to avoid an error. */
12909 /* We use char because int might match the return type of a gcc2 12945 /* We use char because int might match the return type of a gcc2
12910 builtin and then its argument prototype would still apply. */ 12946 builtin and then its argument prototype would still apply. */
12911 char tgetent(); 12947 char tgetent();
12912 12948
12913 int main() { 12949 int main() {
12914 tgetent() 12950 tgetent()
12915 ; return 0; } 12951 ; return 0; }
12916 EOF 12952 EOF
12917 if { (eval echo configure:12918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12918 rm -rf conftest* 12954 rm -rf conftest*
12919 eval "ac_cv_lib_$ac_lib_var=yes" 12955 eval "ac_cv_lib_$ac_lib_var=yes"
12920 else 12956 else
12921 echo "configure: failed program was:" >&5 12957 echo "configure: failed program was:" >&5
12922 cat conftest.$ac_ext >&5 12958 cat conftest.$ac_ext >&5
12960 } 12996 }
12961 12997
12962 12998
12963 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 12999 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
12964 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 13000 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
12965 echo "configure:12966: checking for gpm.h" >&5 13001 echo "configure:13002: checking for gpm.h" >&5
12966 13002
12967 cat > conftest.$ac_ext <<EOF 13003 cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure" 13004 #line 13005 "configure"
12969 #include "confdefs.h" 13005 #include "confdefs.h"
12970 #include <gpm.h> 13006 #include <gpm.h>
12971 EOF 13007 EOF
12972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12973 { (eval echo configure:12974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13009 { (eval echo configure:13010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12975 if test -z "$ac_err"; then 13011 if test -z "$ac_err"; then
12976 rm -rf conftest* 13012 rm -rf conftest*
12977 eval "ac_cv_header_$ac_safe=yes" 13013 eval "ac_cv_header_$ac_safe=yes"
12978 else 13014 else
12991 with_gpm=no 13027 with_gpm=no
12992 fi 13028 fi
12993 } 13029 }
12994 test -z "$with_gpm" && { 13030 test -z "$with_gpm" && {
12995 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 13031 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
12996 echo "configure:12997: checking for Gpm_Open in -lgpm" >&5 13032 echo "configure:13033: checking for Gpm_Open in -lgpm" >&5
12997 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 13033 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
12998 13034
12999 xe_check_libs=" -lgpm " 13035 xe_check_libs=" -lgpm "
13000 cat > conftest.$ac_ext <<EOF 13036 cat > conftest.$ac_ext <<EOF
13001 #line 13002 "configure" 13037 #line 13038 "configure"
13002 #include "confdefs.h" 13038 #include "confdefs.h"
13003 /* Override any gcc2 internal prototype to avoid an error. */ 13039 /* Override any gcc2 internal prototype to avoid an error. */
13004 /* We use char because int might match the return type of a gcc2 13040 /* We use char because int might match the return type of a gcc2
13005 builtin and then its argument prototype would still apply. */ 13041 builtin and then its argument prototype would still apply. */
13006 char Gpm_Open(); 13042 char Gpm_Open();
13007 13043
13008 int main() { 13044 int main() {
13009 Gpm_Open() 13045 Gpm_Open()
13010 ; return 0; } 13046 ; return 0; }
13011 EOF 13047 EOF
13012 if { (eval echo configure:13013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13048 if { (eval echo configure:13049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13013 rm -rf conftest* 13049 rm -rf conftest*
13014 eval "ac_cv_lib_$ac_lib_var=yes" 13050 eval "ac_cv_lib_$ac_lib_var=yes"
13015 else 13051 else
13016 echo "configure: failed program was:" >&5 13052 echo "configure: failed program was:" >&5
13017 cat conftest.$ac_ext >&5 13053 cat conftest.$ac_ext >&5
13057 fi 13093 fi
13058 13094
13059 13095
13060 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13096 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13061 != "no no no" && echo "checking for database support" 1>&6 13097 != "no no no" && echo "checking for database support" 1>&6
13062 echo "configure:13063: checking for database support" >&5 13098 echo "configure:13099: checking for database support" >&5
13063 13099
13064 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13100 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13065 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13101 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13066 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13102 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13067 echo "configure:13068: checking for ndbm.h" >&5 13103 echo "configure:13104: checking for ndbm.h" >&5
13068 13104
13069 cat > conftest.$ac_ext <<EOF 13105 cat > conftest.$ac_ext <<EOF
13070 #line 13071 "configure" 13106 #line 13107 "configure"
13071 #include "confdefs.h" 13107 #include "confdefs.h"
13072 #include <ndbm.h> 13108 #include <ndbm.h>
13073 EOF 13109 EOF
13074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13075 { (eval echo configure:13076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13111 { (eval echo configure:13112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13077 if test -z "$ac_err"; then 13113 if test -z "$ac_err"; then
13078 rm -rf conftest* 13114 rm -rf conftest*
13079 eval "ac_cv_header_$ac_safe=yes" 13115 eval "ac_cv_header_$ac_safe=yes"
13080 else 13116 else
13100 fi 13136 fi
13101 13137
13102 if test "$with_database_gdbm" != "no"; then 13138 if test "$with_database_gdbm" != "no"; then
13103 13139
13104 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 13140 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13105 echo "configure:13106: checking for dbm_open in -lgdbm" >&5 13141 echo "configure:13142: checking for dbm_open in -lgdbm" >&5
13106 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 13142 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13107 13143
13108 xe_check_libs=" -lgdbm " 13144 xe_check_libs=" -lgdbm "
13109 cat > conftest.$ac_ext <<EOF 13145 cat > conftest.$ac_ext <<EOF
13110 #line 13111 "configure" 13146 #line 13147 "configure"
13111 #include "confdefs.h" 13147 #include "confdefs.h"
13112 /* Override any gcc2 internal prototype to avoid an error. */ 13148 /* Override any gcc2 internal prototype to avoid an error. */
13113 /* We use char because int might match the return type of a gcc2 13149 /* We use char because int might match the return type of a gcc2
13114 builtin and then its argument prototype would still apply. */ 13150 builtin and then its argument prototype would still apply. */
13115 char dbm_open(); 13151 char dbm_open();
13116 13152
13117 int main() { 13153 int main() {
13118 dbm_open() 13154 dbm_open()
13119 ; return 0; } 13155 ; return 0; }
13120 EOF 13156 EOF
13121 if { (eval echo configure:13122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13157 if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13122 rm -rf conftest* 13158 rm -rf conftest*
13123 eval "ac_cv_lib_$ac_lib_var=yes" 13159 eval "ac_cv_lib_$ac_lib_var=yes"
13124 else 13160 else
13125 echo "configure: failed program was:" >&5 13161 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5 13162 cat conftest.$ac_ext >&5
13144 13180
13145 fi 13181 fi
13146 13182
13147 if test "$with_database_dbm" != "no"; then 13183 if test "$with_database_dbm" != "no"; then
13148 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 13184 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13149 echo "configure:13150: checking for dbm_open" >&5 13185 echo "configure:13186: checking for dbm_open" >&5
13150 13186
13151 cat > conftest.$ac_ext <<EOF 13187 cat > conftest.$ac_ext <<EOF
13152 #line 13153 "configure" 13188 #line 13189 "configure"
13153 #include "confdefs.h" 13189 #include "confdefs.h"
13154 /* System header to define __stub macros and hopefully few prototypes, 13190 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char dbm_open(); below. */ 13191 which can conflict with char dbm_open(); below. */
13156 #include <assert.h> 13192 #include <assert.h>
13157 /* Override any gcc2 internal prototype to avoid an error. */ 13193 /* Override any gcc2 internal prototype to avoid an error. */
13170 dbm_open(); 13206 dbm_open();
13171 #endif 13207 #endif
13172 13208
13173 ; return 0; } 13209 ; return 0; }
13174 EOF 13210 EOF
13175 if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13211 if { (eval echo configure:13212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 rm -rf conftest* 13212 rm -rf conftest*
13177 eval "ac_cv_func_dbm_open=yes" 13213 eval "ac_cv_func_dbm_open=yes"
13178 else 13214 else
13179 echo "configure: failed program was:" >&5 13215 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5 13216 cat conftest.$ac_ext >&5
13189 else 13225 else
13190 echo "$ac_t""no" 1>&6 13226 echo "$ac_t""no" 1>&6
13191 13227
13192 13228
13193 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 13229 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13194 echo "configure:13195: checking for dbm_open in -ldbm" >&5 13230 echo "configure:13231: checking for dbm_open in -ldbm" >&5
13195 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 13231 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13196 13232
13197 xe_check_libs=" -ldbm " 13233 xe_check_libs=" -ldbm "
13198 cat > conftest.$ac_ext <<EOF 13234 cat > conftest.$ac_ext <<EOF
13199 #line 13200 "configure" 13235 #line 13236 "configure"
13200 #include "confdefs.h" 13236 #include "confdefs.h"
13201 /* Override any gcc2 internal prototype to avoid an error. */ 13237 /* Override any gcc2 internal prototype to avoid an error. */
13202 /* We use char because int might match the return type of a gcc2 13238 /* We use char because int might match the return type of a gcc2
13203 builtin and then its argument prototype would still apply. */ 13239 builtin and then its argument prototype would still apply. */
13204 char dbm_open(); 13240 char dbm_open();
13205 13241
13206 int main() { 13242 int main() {
13207 dbm_open() 13243 dbm_open()
13208 ; return 0; } 13244 ; return 0; }
13209 EOF 13245 EOF
13210 if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13246 if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13211 rm -rf conftest* 13247 rm -rf conftest*
13212 eval "ac_cv_lib_$ac_lib_var=yes" 13248 eval "ac_cv_lib_$ac_lib_var=yes"
13213 else 13249 else
13214 echo "configure: failed program was:" >&5 13250 echo "configure: failed program was:" >&5
13215 cat conftest.$ac_ext >&5 13251 cat conftest.$ac_ext >&5
13246 } 13282 }
13247 13283
13248 13284
13249 if test "$with_database_berkdb" != "no"; then 13285 if test "$with_database_berkdb" != "no"; then
13250 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 13286 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13251 echo "configure:13252: checking for Berkeley db.h" >&5 13287 echo "configure:13288: checking for Berkeley db.h" >&5
13252 for header in "db/db.h" "db.h"; do 13288 for header in "db/db.h" "db.h"; do
13253 cat > conftest.$ac_ext <<EOF 13289 cat > conftest.$ac_ext <<EOF
13254 #line 13255 "configure" 13290 #line 13291 "configure"
13255 #include "confdefs.h" 13291 #include "confdefs.h"
13256 13292
13257 #include <stdlib.h> 13293 #include <stdlib.h>
13258 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 13294 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13259 #ifdef HAVE_INTTYPES_H 13295 #ifdef HAVE_INTTYPES_H
13271 13307
13272 int main() { 13308 int main() {
13273 13309
13274 ; return 0; } 13310 ; return 0; }
13275 EOF 13311 EOF
13276 if { (eval echo configure:13277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13312 if { (eval echo configure:13313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13277 rm -rf conftest* 13313 rm -rf conftest*
13278 db_h_file="$header"; break 13314 db_h_file="$header"; break
13279 else 13315 else
13280 echo "configure: failed program was:" >&5 13316 echo "configure: failed program was:" >&5
13281 cat conftest.$ac_ext >&5 13317 cat conftest.$ac_ext >&5
13287 else echo "$ac_t""$db_h_file" 1>&6 13323 else echo "$ac_t""$db_h_file" 1>&6
13288 fi 13324 fi
13289 13325
13290 if test "$with_database_berkdb" != "no"; then 13326 if test "$with_database_berkdb" != "no"; then
13291 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 13327 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13292 echo "configure:13293: checking for Berkeley DB version" >&5 13328 echo "configure:13329: checking for Berkeley DB version" >&5
13293 cat > conftest.$ac_ext <<EOF 13329 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure" 13330 #line 13331 "configure"
13295 #include "confdefs.h" 13331 #include "confdefs.h"
13296 #include <$db_h_file> 13332 #include <$db_h_file>
13297 #if DB_VERSION_MAJOR > 1 13333 #if DB_VERSION_MAJOR > 1
13298 yes 13334 yes
13299 #endif 13335 #endif
13301 EOF 13337 EOF
13302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13303 egrep "yes" >/dev/null 2>&1; then 13339 egrep "yes" >/dev/null 2>&1; then
13304 rm -rf conftest* 13340 rm -rf conftest*
13305 cat > conftest.$ac_ext <<EOF 13341 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure" 13342 #line 13343 "configure"
13307 #include "confdefs.h" 13343 #include "confdefs.h"
13308 #include <$db_h_file> 13344 #include <$db_h_file>
13309 #if DB_VERSION_MAJOR > 2 13345 #if DB_VERSION_MAJOR > 2
13310 yes 13346 yes
13311 #endif 13347 #endif
13328 echo "$ac_t""1" 1>&6; dbfunc=dbopen 13364 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13329 fi 13365 fi
13330 rm -f conftest* 13366 rm -f conftest*
13331 13367
13332 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 13368 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13333 echo "configure:13334: checking for $dbfunc" >&5 13369 echo "configure:13370: checking for $dbfunc" >&5
13334 13370
13335 cat > conftest.$ac_ext <<EOF 13371 cat > conftest.$ac_ext <<EOF
13336 #line 13337 "configure" 13372 #line 13373 "configure"
13337 #include "confdefs.h" 13373 #include "confdefs.h"
13338 /* System header to define __stub macros and hopefully few prototypes, 13374 /* System header to define __stub macros and hopefully few prototypes,
13339 which can conflict with char $dbfunc(); below. */ 13375 which can conflict with char $dbfunc(); below. */
13340 #include <assert.h> 13376 #include <assert.h>
13341 /* Override any gcc2 internal prototype to avoid an error. */ 13377 /* Override any gcc2 internal prototype to avoid an error. */
13354 $dbfunc(); 13390 $dbfunc();
13355 #endif 13391 #endif
13356 13392
13357 ; return 0; } 13393 ; return 0; }
13358 EOF 13394 EOF
13359 if { (eval echo configure:13360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13395 if { (eval echo configure:13396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13360 rm -rf conftest* 13396 rm -rf conftest*
13361 eval "ac_cv_func_$dbfunc=yes" 13397 eval "ac_cv_func_$dbfunc=yes"
13362 else 13398 else
13363 echo "configure: failed program was:" >&5 13399 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5 13400 cat conftest.$ac_ext >&5
13373 else 13409 else
13374 echo "$ac_t""no" 1>&6 13410 echo "$ac_t""no" 1>&6
13375 13411
13376 13412
13377 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 13413 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13378 echo "configure:13379: checking for $dbfunc in -ldb" >&5 13414 echo "configure:13415: checking for $dbfunc in -ldb" >&5
13379 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 13415 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13380 13416
13381 xe_check_libs=" -ldb " 13417 xe_check_libs=" -ldb "
13382 cat > conftest.$ac_ext <<EOF 13418 cat > conftest.$ac_ext <<EOF
13383 #line 13384 "configure" 13419 #line 13420 "configure"
13384 #include "confdefs.h" 13420 #include "confdefs.h"
13385 /* Override any gcc2 internal prototype to avoid an error. */ 13421 /* Override any gcc2 internal prototype to avoid an error. */
13386 /* We use char because int might match the return type of a gcc2 13422 /* We use char because int might match the return type of a gcc2
13387 builtin and then its argument prototype would still apply. */ 13423 builtin and then its argument prototype would still apply. */
13388 char $dbfunc(); 13424 char $dbfunc();
13389 13425
13390 int main() { 13426 int main() {
13391 $dbfunc() 13427 $dbfunc()
13392 ; return 0; } 13428 ; return 0; }
13393 EOF 13429 EOF
13394 if { (eval echo configure:13395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13430 if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13395 rm -rf conftest* 13431 rm -rf conftest*
13396 eval "ac_cv_lib_$ac_lib_var=yes" 13432 eval "ac_cv_lib_$ac_lib_var=yes"
13397 else 13433 else
13398 echo "configure: failed program was:" >&5 13434 echo "configure: failed program was:" >&5
13399 cat conftest.$ac_ext >&5 13435 cat conftest.$ac_ext >&5
13453 fi 13489 fi
13454 13490
13455 if test "$with_socks" = "yes"; then 13491 if test "$with_socks" = "yes"; then
13456 13492
13457 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 13493 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13458 echo "configure:13459: checking for SOCKSinit in -lsocks" >&5 13494 echo "configure:13495: checking for SOCKSinit in -lsocks" >&5
13459 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 13495 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13460 13496
13461 xe_check_libs=" -lsocks " 13497 xe_check_libs=" -lsocks "
13462 cat > conftest.$ac_ext <<EOF 13498 cat > conftest.$ac_ext <<EOF
13463 #line 13464 "configure" 13499 #line 13500 "configure"
13464 #include "confdefs.h" 13500 #include "confdefs.h"
13465 /* Override any gcc2 internal prototype to avoid an error. */ 13501 /* Override any gcc2 internal prototype to avoid an error. */
13466 /* We use char because int might match the return type of a gcc2 13502 /* We use char because int might match the return type of a gcc2
13467 builtin and then its argument prototype would still apply. */ 13503 builtin and then its argument prototype would still apply. */
13468 char SOCKSinit(); 13504 char SOCKSinit();
13469 13505
13470 int main() { 13506 int main() {
13471 SOCKSinit() 13507 SOCKSinit()
13472 ; return 0; } 13508 ; return 0; }
13473 EOF 13509 EOF
13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13510 if { (eval echo configure:13511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13475 rm -rf conftest* 13511 rm -rf conftest*
13476 eval "ac_cv_lib_$ac_lib_var=yes" 13512 eval "ac_cv_lib_$ac_lib_var=yes"
13477 else 13513 else
13478 echo "configure: failed program was:" >&5 13514 echo "configure: failed program was:" >&5
13479 cat conftest.$ac_ext >&5 13515 cat conftest.$ac_ext >&5
13524 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 13560 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13525 fi 13561 fi
13526 13562
13527 if test "$with_modules" != "no"; then 13563 if test "$with_modules" != "no"; then
13528 echo "checking for module support" 1>&6 13564 echo "checking for module support" 1>&6
13529 echo "configure:13530: checking for module support" >&5 13565 echo "configure:13566: checking for module support" >&5
13530 13566
13531 if test "$with_msw" = "yes"; then 13567 if test "$with_msw" = "yes"; then
13532 have_dl=yes; 13568 have_dl=yes;
13533 else 13569 else
13534 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 13570 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13535 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 13571 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13536 echo "configure:13537: checking for dlfcn.h" >&5 13572 echo "configure:13573: checking for dlfcn.h" >&5
13537 13573
13538 cat > conftest.$ac_ext <<EOF 13574 cat > conftest.$ac_ext <<EOF
13539 #line 13540 "configure" 13575 #line 13576 "configure"
13540 #include "confdefs.h" 13576 #include "confdefs.h"
13541 #include <dlfcn.h> 13577 #include <dlfcn.h>
13542 EOF 13578 EOF
13543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13544 { (eval echo configure:13545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13580 { (eval echo configure:13581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13546 if test -z "$ac_err"; then 13582 if test -z "$ac_err"; then
13547 rm -rf conftest* 13583 rm -rf conftest*
13548 eval "ac_cv_header_$ac_safe=yes" 13584 eval "ac_cv_header_$ac_safe=yes"
13549 else 13585 else
13556 rm -f conftest* 13592 rm -f conftest*
13557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13558 echo "$ac_t""yes" 1>&6 13594 echo "$ac_t""yes" 1>&6
13559 13595
13560 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 13596 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13561 echo "configure:13562: checking for dlopen in -lc" >&5 13597 echo "configure:13598: checking for dlopen in -lc" >&5
13562 cat > conftest.$ac_ext <<EOF 13598 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure" 13599 #line 13600 "configure"
13564 #include "confdefs.h" 13600 #include "confdefs.h"
13565 #include <dlfcn.h> 13601 #include <dlfcn.h>
13566 int main() { 13602 int main() {
13567 dlopen ("", 0); 13603 dlopen ("", 0);
13568 ; return 0; } 13604 ; return 0; }
13569 EOF 13605 EOF
13570 if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13606 if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13571 rm -rf conftest* 13607 rm -rf conftest*
13572 have_dl=yes 13608 have_dl=yes
13573 else 13609 else
13574 echo "configure: failed program was:" >&5 13610 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5 13611 cat conftest.$ac_ext >&5
13576 rm -rf conftest* 13612 rm -rf conftest*
13577 13613
13578 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 13614 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13579 echo "configure:13580: checking for dlopen in -ldl" >&5 13615 echo "configure:13616: checking for dlopen in -ldl" >&5
13580 ac_save_LIBS="$LIBS" 13616 ac_save_LIBS="$LIBS"
13581 LIBS="-ldl $LIBS" 13617 LIBS="-ldl $LIBS"
13582 cat > conftest.$ac_ext <<EOF 13618 cat > conftest.$ac_ext <<EOF
13583 #line 13584 "configure" 13619 #line 13620 "configure"
13584 #include "confdefs.h" 13620 #include "confdefs.h"
13585 #include <dlfcn.h> 13621 #include <dlfcn.h>
13586 int main() { 13622 int main() {
13587 dlopen ("", 0); 13623 dlopen ("", 0);
13588 ; return 0; } 13624 ; return 0; }
13589 EOF 13625 EOF
13590 if { (eval echo configure:13591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13626 if { (eval echo configure:13627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13591 rm -rf conftest* 13627 rm -rf conftest*
13592 have_dl=yes 13628 have_dl=yes
13593 else 13629 else
13594 echo "configure: failed program was:" >&5 13630 echo "configure: failed program was:" >&5
13595 cat conftest.$ac_ext >&5 13631 cat conftest.$ac_ext >&5
13614 } 13650 }
13615 13651
13616 else 13652 else
13617 13653
13618 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 13654 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13619 echo "configure:13620: checking for shl_load in -ldld" >&5 13655 echo "configure:13656: checking for shl_load in -ldld" >&5
13620 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 13656 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13621 13657
13622 xe_check_libs=" -ldld " 13658 xe_check_libs=" -ldld "
13623 cat > conftest.$ac_ext <<EOF 13659 cat > conftest.$ac_ext <<EOF
13624 #line 13625 "configure" 13660 #line 13661 "configure"
13625 #include "confdefs.h" 13661 #include "confdefs.h"
13626 /* Override any gcc2 internal prototype to avoid an error. */ 13662 /* Override any gcc2 internal prototype to avoid an error. */
13627 /* We use char because int might match the return type of a gcc2 13663 /* We use char because int might match the return type of a gcc2
13628 builtin and then its argument prototype would still apply. */ 13664 builtin and then its argument prototype would still apply. */
13629 char shl_load(); 13665 char shl_load();
13630 13666
13631 int main() { 13667 int main() {
13632 shl_load() 13668 shl_load()
13633 ; return 0; } 13669 ; return 0; }
13634 EOF 13670 EOF
13635 if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13671 if { (eval echo configure:13672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13636 rm -rf conftest* 13672 rm -rf conftest*
13637 eval "ac_cv_lib_$ac_lib_var=yes" 13673 eval "ac_cv_lib_$ac_lib_var=yes"
13638 else 13674 else
13639 echo "configure: failed program was:" >&5 13675 echo "configure: failed program was:" >&5
13640 cat conftest.$ac_ext >&5 13676 cat conftest.$ac_ext >&5
13657 13693
13658 else 13694 else
13659 echo "$ac_t""no" 1>&6 13695 echo "$ac_t""no" 1>&6
13660 13696
13661 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 13697 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13662 echo "configure:13663: checking for dld_init in -ldld" >&5 13698 echo "configure:13699: checking for dld_init in -ldld" >&5
13663 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 13699 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13664 13700
13665 xe_check_libs=" -ldld " 13701 xe_check_libs=" -ldld "
13666 cat > conftest.$ac_ext <<EOF 13702 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure" 13703 #line 13704 "configure"
13668 #include "confdefs.h" 13704 #include "confdefs.h"
13669 /* Override any gcc2 internal prototype to avoid an error. */ 13705 /* Override any gcc2 internal prototype to avoid an error. */
13670 /* We use char because int might match the return type of a gcc2 13706 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */ 13707 builtin and then its argument prototype would still apply. */
13672 char dld_init(); 13708 char dld_init();
13673 13709
13674 int main() { 13710 int main() {
13675 dld_init() 13711 dld_init()
13676 ; return 0; } 13712 ; return 0; }
13677 EOF 13713 EOF
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13714 if { (eval echo configure:13715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13679 rm -rf conftest* 13715 rm -rf conftest*
13680 eval "ac_cv_lib_$ac_lib_var=yes" 13716 eval "ac_cv_lib_$ac_lib_var=yes"
13681 else 13717 else
13682 echo "configure: failed program was:" >&5 13718 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5 13719 cat conftest.$ac_ext >&5
13718 ld_dynamic_link_flags= 13754 ld_dynamic_link_flags=
13719 xehost=$canonical 13755 xehost=$canonical
13720 xealias=$internal_configuration 13756 xealias=$internal_configuration
13721 13757
13722 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 13758 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13723 echo "configure:13724: checking how to build dynamic libraries for ${xehost}" >&5 13759 echo "configure:13760: checking how to build dynamic libraries for ${xehost}" >&5
13724 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 13760 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13725 case "$xehost" in 13761 case "$xehost" in
13726 *-*-linux-gnu*) ;; 13762 *-*-linux-gnu*) ;;
13727 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 13763 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13728 esac 13764 esac
13746 # Now see if the compiler is really GCC. 13782 # Now see if the compiler is really GCC.
13747 if test "$GCC" = "yes"; then 13783 if test "$GCC" = "yes"; then
13748 XEGCC=yes 13784 XEGCC=yes
13749 else 13785 else
13750 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 13786 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13751 echo "configure:13752: checking checking whether we are using GNU C" >&5 13787 echo "configure:13788: checking checking whether we are using GNU C" >&5
13752 cat > conftest.$ac_ext <<EOF 13788 cat > conftest.$ac_ext <<EOF
13753 #line 13754 "configure" 13789 #line 13790 "configure"
13754 #include "confdefs.h" 13790 #include "confdefs.h"
13755 13791
13756 #ifdef __GNUC__ 13792 #ifdef __GNUC__
13757 yes; 13793 yes;
13758 #endif 13794 #endif
13770 13806
13771 echo "$ac_t""${XEGCC}" 1>&6 13807 echo "$ac_t""${XEGCC}" 1>&6
13772 fi 13808 fi
13773 13809
13774 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 13810 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13775 echo "configure:13776: checking how to produce PIC code" >&5 13811 echo "configure:13812: checking how to produce PIC code" >&5
13776 wl= 13812 wl=
13777 13813
13778 can_build_shared=yes 13814 can_build_shared=yes
13779 if test "$XEGCC" = yes; then 13815 if test "$XEGCC" = yes; then
13780 wl='-Wl,' 13816 wl='-Wl,'
13866 if test -n "$dll_cflags"; then 13902 if test -n "$dll_cflags"; then
13867 echo "$ac_t""${dll_cflags}" 1>&6 13903 echo "$ac_t""${dll_cflags}" 1>&6
13868 13904
13869 # Check to make sure the dll_cflags actually works. 13905 # Check to make sure the dll_cflags actually works.
13870 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 13906 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13871 echo "configure:13872: checking if PIC flag ${dll_cflags} really works" >&5 13907 echo "configure:13908: checking if PIC flag ${dll_cflags} really works" >&5
13872 save_CFLAGS="$CFLAGS" 13908 save_CFLAGS="$CFLAGS"
13873 CFLAGS="$CFLAGS $dll_cflags -DPIC" 13909 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13874 cat > conftest.$ac_ext <<EOF 13910 cat > conftest.$ac_ext <<EOF
13875 #line 13876 "configure" 13911 #line 13912 "configure"
13876 #include "confdefs.h" 13912 #include "confdefs.h"
13877 13913
13878 int main() { 13914 int main() {
13879 int x=0; 13915 int x=0;
13880 ; return 0; } 13916 ; return 0; }
13881 EOF 13917 EOF
13882 if { (eval echo configure:13883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13918 if { (eval echo configure:13919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13883 rm -rf conftest* 13919 rm -rf conftest*
13884 13920
13885 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 13921 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13886 # reports no error. So, we need to grep stderr for (Bundled). 13922 # reports no error. So, we need to grep stderr for (Bundled).
13887 if grep '(Bundled)' config.log >/dev/null; then 13923 if grep '(Bundled)' config.log >/dev/null; then
13908 if test "$can_build_shared" = "yes"; then 13944 if test "$can_build_shared" = "yes"; then
13909 cc_produces_so=no 13945 cc_produces_so=no
13910 xldf= 13946 xldf=
13911 xcldf= 13947 xcldf=
13912 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 13948 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13913 echo "configure:13914: checking if C compiler can produce shared libraries" >&5 13949 echo "configure:13950: checking if C compiler can produce shared libraries" >&5
13914 if test "$XEGCC" = yes; then 13950 if test "$XEGCC" = yes; then
13915 xcldf="-shared" 13951 xcldf="-shared"
13916 xldf="-shared" 13952 xldf="-shared"
13917 else # Not using GCC 13953 else # Not using GCC
13918 case "$xehost_os" in 13954 case "$xehost_os" in
13959 LDFLAGS="$xcldf $LDFLAGS" 13995 LDFLAGS="$xcldf $LDFLAGS"
13960 LIBS= 13996 LIBS=
13961 xe_libs= 13997 xe_libs=
13962 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 13998 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
13963 cat > conftest.$ac_ext <<EOF 13999 cat > conftest.$ac_ext <<EOF
13964 #line 13965 "configure" 14000 #line 14001 "configure"
13965 #include "confdefs.h" 14001 #include "confdefs.h"
13966 14002
13967 int main() { 14003 int main() {
13968 int x=0; 14004 int x=0;
13969 ; return 0; } 14005 ; return 0; }
13970 EOF 14006 EOF
13971 if { (eval echo configure:13972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14007 if { (eval echo configure:14008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13972 rm -rf conftest* 14008 rm -rf conftest*
13973 cc_produces_so=yes 14009 cc_produces_so=yes
13974 else 14010 else
13975 echo "configure: failed program was:" >&5 14011 echo "configure: failed program was:" >&5
13976 cat conftest.$ac_ext >&5 14012 cat conftest.$ac_ext >&5
13991 if test -z "$LTLD"; then 14027 if test -z "$LTLD"; then
13992 ac_prog=ld 14028 ac_prog=ld
13993 if test "$XEGCC" = yes; then 14029 if test "$XEGCC" = yes; then
13994 # Check if gcc -print-prog-name=ld gives a path. 14030 # Check if gcc -print-prog-name=ld gives a path.
13995 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 14031 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
13996 echo "configure:13997: checking for ld used by GCC" >&5 14032 echo "configure:14033: checking for ld used by GCC" >&5
13997 ac_prog=`($CC -print-prog-name=ld) 2>&5` 14033 ac_prog=`($CC -print-prog-name=ld) 2>&5`
13998 case "$ac_prog" in 14034 case "$ac_prog" in
13999 # Accept absolute paths. 14035 # Accept absolute paths.
14000 /*) 14036 /*)
14001 if test -z "$LTLD"; then 14037 if test -z "$LTLD"; then
14016 with_gnu_ld=unknown 14052 with_gnu_ld=unknown
14017 ;; 14053 ;;
14018 esac 14054 esac
14019 else 14055 else
14020 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14056 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14021 echo "configure:14022: checking for GNU ld" >&5 14057 echo "configure:14058: checking for GNU ld" >&5
14022 fi 14058 fi
14023 14059
14024 if test -z "$LTLD"; then 14060 if test -z "$LTLD"; then
14025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14026 for ac_dir in $PATH; do 14062 for ac_dir in $PATH; do
14054 14090
14055 ld_dynamic_link_flags= 14091 ld_dynamic_link_flags=
14056 14092
14057 # Check to see if it really is or isn't GNU ld. 14093 # Check to see if it really is or isn't GNU ld.
14058 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14094 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14059 echo "configure:14060: checking if the linker is GNU ld" >&5 14095 echo "configure:14096: checking if the linker is GNU ld" >&5
14060 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14096 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14061 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14097 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14062 xe_gnu_ld=yes 14098 xe_gnu_ld=yes
14063 else 14099 else
14064 xe_gnu_ld=no 14100 xe_gnu_ld=no
14082 ld_shlibs=yes 14118 ld_shlibs=yes
14083 else 14119 else
14084 # OK - only NOW do we futz about with ld. 14120 # OK - only NOW do we futz about with ld.
14085 # See if the linker supports building shared libraries. 14121 # See if the linker supports building shared libraries.
14086 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14122 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14087 echo "configure:14088: checking whether the linker supports shared libraries" >&5 14123 echo "configure:14124: checking whether the linker supports shared libraries" >&5
14088 dll_ld=$CC 14124 dll_ld=$CC
14089 dll_ldflags=$LDFLAGS 14125 dll_ldflags=$LDFLAGS
14090 ld_shlibs=yes 14126 ld_shlibs=yes
14091 can_build_shared=yes 14127 can_build_shared=yes
14092 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14128 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14297 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 14333 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14298 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 14334 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14299 for ac_func in dlerror _dlerror 14335 for ac_func in dlerror _dlerror
14300 do 14336 do
14301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14302 echo "configure:14303: checking for $ac_func" >&5 14338 echo "configure:14339: checking for $ac_func" >&5
14303 14339
14304 cat > conftest.$ac_ext <<EOF 14340 cat > conftest.$ac_ext <<EOF
14305 #line 14306 "configure" 14341 #line 14342 "configure"
14306 #include "confdefs.h" 14342 #include "confdefs.h"
14307 /* System header to define __stub macros and hopefully few prototypes, 14343 /* System header to define __stub macros and hopefully few prototypes,
14308 which can conflict with char $ac_func(); below. */ 14344 which can conflict with char $ac_func(); below. */
14309 #include <assert.h> 14345 #include <assert.h>
14310 /* Override any gcc2 internal prototype to avoid an error. */ 14346 /* Override any gcc2 internal prototype to avoid an error. */
14323 $ac_func(); 14359 $ac_func();
14324 #endif 14360 #endif
14325 14361
14326 ; return 0; } 14362 ; return 0; }
14327 EOF 14363 EOF
14328 if { (eval echo configure:14329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14364 if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14329 rm -rf conftest* 14365 rm -rf conftest*
14330 eval "ac_cv_func_$ac_func=yes" 14366 eval "ac_cv_func_$ac_func=yes"
14331 else 14367 else
14332 echo "configure: failed program was:" >&5 14368 echo "configure: failed program was:" >&5
14333 cat conftest.$ac_ext >&5 14369 cat conftest.$ac_ext >&5
14362 with_modules=no 14398 with_modules=no
14363 fi 14399 fi
14364 fi 14400 fi
14365 14401
14366 cat > conftest.$ac_ext <<EOF 14402 cat > conftest.$ac_ext <<EOF
14367 #line 14368 "configure" 14403 #line 14404 "configure"
14368 #include "confdefs.h" 14404 #include "confdefs.h"
14369 int main(int c,char *v[]){return 0;} 14405 int main(int c,char *v[]){return 0;}
14370 EOF 14406 EOF
14371 if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14372 then 14408 then
14373 : 14409 :
14374 else 14410 else
14375 conftest_rc="$?" 14411 conftest_rc="$?"
14376 echo "configure: failed program was:" >&5 14412 echo "configure: failed program was:" >&5