comparison configure @ 462:0784d089fdc9 r21-2-46

Import from CVS: tag r21-2-46
author cvs
date Mon, 13 Aug 2007 11:44:37 +0200
parents 223736d75acb
children 5aa1854ad537
comparison
equal deleted inserted replaced
461:120ed4009e51 462:0784d089fdc9
180 180
181 181
182 ac_ext=c 182 ac_ext=c
183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 183 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 184 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 185 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
186 ac_cpp='$CPP '"$xe_cppflags" 186 ac_cpp='$CPP '"$xe_cppflags"
187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 187 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 188 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
189 cross_compiling=no 189 cross_compiling=no
190 190
228 pkgdir='${datadir}/${instvardir}/lisp' 228 pkgdir='${datadir}/${instvardir}/lisp'
229 package_path='' 229 package_path=''
230 etcdir='${datadir}/${instvardir}/etc' 230 etcdir='${datadir}/${instvardir}/etc'
231 archlibdir='${datadir}/${instvardir}/${configuration}' 231 archlibdir='${datadir}/${instvardir}/${configuration}'
232 docdir='${archlibdir}' 232 docdir='${archlibdir}'
233 with_netinstall="no"
233 with_prefix='yes' 234 with_prefix='yes'
234 with_site_lisp='no' 235 with_site_lisp='no'
235 with_site_modules='yes' 236 with_site_modules='yes'
236 with_menubars='' 237 with_menubars=''
237 with_scrollbars='' 238 with_scrollbars=''
245 with_msw='' 246 with_msw=''
246 rel_alloc='default' 247 rel_alloc='default'
247 with_system_malloc='default' 248 with_system_malloc='default'
248 with_dlmalloc='default' 249 with_dlmalloc='default'
249 native_sound_lib='' 250 native_sound_lib=''
251 with_gtk='no'
252 with_gnome='no'
250 use_assertions="yes" 253 use_assertions="yes"
251 with_toolbars="" 254 with_toolbars=""
252 with_tty="" 255 with_tty=""
253 use_union_type="no" 256 use_union_type="no"
254 with_dnet="" 257 with_dnet=""
304 with_site_lisp | \ 307 with_site_lisp | \
305 with_prefix | \ 308 with_prefix | \
306 with_site_modules | \ 309 with_site_modules | \
307 with_x | \ 310 with_x | \
308 with_x11 | \ 311 with_x11 | \
312 with_gtk | \
313 with_gnome | \
309 with_msw | \ 314 with_msw | \
310 with_gcc | \ 315 with_gcc | \
311 dynamic | \ 316 dynamic | \
312 with_ncurses | \ 317 with_ncurses | \
313 with_dnet | \ 318 with_dnet | \
343 with_pop | \ 348 with_pop | \
344 with_kerberos | \ 349 with_kerberos | \
345 with_hesiod | \ 350 with_hesiod | \
346 with_dnet | \ 351 with_dnet | \
347 with_infodock | \ 352 with_infodock | \
353 with_netinstall | \
348 external_widget | \ 354 external_widget | \
349 verbose | \ 355 verbose | \
350 extra_verbose | \ 356 extra_verbose | \
351 usage_tracking | \ 357 usage_tracking | \
352 use_union_type | \ 358 use_union_type | \
648 #define PACKAGE_PATH_USER_DEFINED 1 654 #define PACKAGE_PATH_USER_DEFINED 1
649 EOF 655 EOF
650 } 656 }
651 ;; 657 ;;
652 datadir ) 658 datadir )
653 { test "$extra_verbose" = "yes" && cat << \EOF 659 { test "$extra_verbose" = "yes" && cat << \EOF
654 Defining INFODIR_USER_DEFINED 660 Defining INFODIR_USER_DEFINED
655 EOF 661 EOF
656 cat >> confdefs.h <<\EOF 662 cat >> confdefs.h <<\EOF
657 #define INFODIR_USER_DEFINED 1 663 #define INFODIR_USER_DEFINED 1
658 EOF 664 EOF
659 } 665 }
660 666
661 { test "$extra_verbose" = "yes" && cat << \EOF 667 { test "$extra_verbose" = "yes" && cat << \EOF
662 Defining LISPDIR_USER_DEFINED 668 Defining LISPDIR_USER_DEFINED
663 EOF 669 EOF
664 cat >> confdefs.h <<\EOF 670 cat >> confdefs.h <<\EOF
665 #define LISPDIR_USER_DEFINED 1 671 #define LISPDIR_USER_DEFINED 1
666 EOF 672 EOF
667 } 673 }
668 674
669 { test "$extra_verbose" = "yes" && cat << \EOF 675 { test "$extra_verbose" = "yes" && cat << \EOF
670 Defining MODULEDIR_USER_DEFINED 676 Defining MODULEDIR_USER_DEFINED
671 EOF 677 EOF
672 cat >> confdefs.h <<\EOF 678 cat >> confdefs.h <<\EOF
673 #define MODULEDIR_USER_DEFINED 1 679 #define MODULEDIR_USER_DEFINED 1
674 EOF 680 EOF
729 l | lu | luc | luci | lucid ) val=lucid ;; 735 l | lu | luc | luci | lucid ) val=lucid ;;
730 m | mo | mot | moti | motif ) val=motif ;; 736 m | mo | mot | moti | motif ) val=motif ;;
731 a | at | ath | athe | athen | athena ) val=athena ;; 737 a | at | ath | athe | athen | athena ) val=athena ;;
732 n | no | non | none ) val=no ;; 738 n | no | non | none ) val=no ;;
733 y | ye | yes ) val=yes ;; 739 y | ye | yes ) val=yes ;;
734 m | ms | msw ) val=msw ;; 740 g | gt | gtk ) val=gtk ;;
741 m | ms | msw ) val=msw ;;
735 * ) (echo "$progname: Usage error:" 742 * ) (echo "$progname: Usage error:"
736 echo " " "The \`--$optname' option must have one of these values: 743 echo " " "The \`--$optname' option must have one of these values:
737 \`lucid', \`motif', \`athena', \`yes', or \`no'." 744 \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."
738 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 745 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
739 esac 746 esac
740 eval "$opt=\"$val\"" 747 eval "$opt=\"$val\""
741 ;; 748 ;;
742 749
834 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 841 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
835 fi 842 fi
836 fi 843 fi
837 844
838 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 845 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
839 echo "configure:840: checking whether ln -s works" >&5 846 echo "configure:847: checking whether ln -s works" >&5
840 847
841 rm -f conftestdata 848 rm -f conftestdata
842 if ln -s X conftestdata 2>/dev/null 849 if ln -s X conftestdata 2>/dev/null
843 then 850 then
844 rm -f conftestdata 851 rm -f conftestdata
1099 } 1106 }
1100 1107
1101 1108
1102 1109
1103 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1110 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1104 echo "configure:1105: checking "host system type"" >&5 1111 echo "configure:1112: checking "host system type"" >&5
1105 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1112 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1106 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1113 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1107 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1114 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1108 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1115 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1109 echo "$ac_t""$configuration" 1>&6 1116 echo "$ac_t""$configuration" 1>&6
1613 xe_save_CFLAGS="$CFLAGS" 1620 xe_save_CFLAGS="$CFLAGS"
1614 1621
1615 # Extract the first word of "gcc", so it can be a program name with args. 1622 # Extract the first word of "gcc", so it can be a program name with args.
1616 set dummy gcc; ac_word=$2 1623 set dummy gcc; ac_word=$2
1617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1618 echo "configure:1619: checking for $ac_word" >&5 1625 echo "configure:1626: checking for $ac_word" >&5
1619 1626
1620 if test -n "$CC"; then 1627 if test -n "$CC"; then
1621 ac_cv_prog_CC="$CC" # Let the user override the test. 1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1622 else 1629 else
1623 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1640 1647
1641 if test -z "$CC"; then 1648 if test -z "$CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args. 1649 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2 1650 set dummy cc; ac_word=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5 1652 echo "configure:1653: checking for $ac_word" >&5
1646 1653
1647 if test -n "$CC"; then 1654 if test -n "$CC"; then
1648 ac_cv_prog_CC="$CC" # Let the user override the test. 1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 else 1656 else
1650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1688 case "`uname -s`" in 1695 case "`uname -s`" in
1689 *win32* | *WIN32*) 1696 *win32* | *WIN32*)
1690 # Extract the first word of "cl", so it can be a program name with args. 1697 # Extract the first word of "cl", so it can be a program name with args.
1691 set dummy cl; ac_word=$2 1698 set dummy cl; ac_word=$2
1692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1693 echo "configure:1694: checking for $ac_word" >&5 1700 echo "configure:1701: checking for $ac_word" >&5
1694 1701
1695 if test -n "$CC"; then 1702 if test -n "$CC"; then
1696 ac_cv_prog_CC="$CC" # Let the user override the test. 1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 else 1704 else
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1717 fi 1724 fi
1718 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1725 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1719 fi 1726 fi
1720 1727
1721 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1728 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1722 echo "configure:1723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1729 echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1723 1730
1724 ac_ext=c 1731 ac_ext=c
1725 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1732 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1726 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1733 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1727 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1734 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1728 ac_cpp='$CPP '"$xe_cppflags" 1735 ac_cpp='$CPP '"$xe_cppflags"
1729 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1736 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1730 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1737 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1731 cross_compiling=no 1738 cross_compiling=no
1732 1739
1733 cat > conftest.$ac_ext << EOF 1740 cat > conftest.$ac_ext << EOF
1734 1741
1735 #line 1736 "configure" 1742 #line 1743 "configure"
1736 #include "confdefs.h" 1743 #include "confdefs.h"
1737 1744
1738 main(){return(0);} 1745 main(){return(0);}
1739 EOF 1746 EOF
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1747 if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1741 ac_cv_prog_cc_works=yes 1748 ac_cv_prog_cc_works=yes
1742 # If we can't run a trivial program, we are probably using a cross compiler. 1749 # If we can't run a trivial program, we are probably using a cross compiler.
1743 if (./conftest; exit) 2>/dev/null; then 1750 if (./conftest; exit) 2>/dev/null; then
1744 ac_cv_prog_cc_cross=no 1751 ac_cv_prog_cc_cross=no
1745 else 1752 else
1752 fi 1759 fi
1753 rm -fr conftest* 1760 rm -fr conftest*
1754 ac_ext=c 1761 ac_ext=c
1755 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1762 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1756 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1763 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1757 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1764 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1758 ac_cpp='$CPP '"$xe_cppflags" 1765 ac_cpp='$CPP '"$xe_cppflags"
1759 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1766 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1760 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1767 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1761 cross_compiling=no 1768 cross_compiling=no
1762 1769
1763 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1770 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1764 if test $ac_cv_prog_cc_works = no; then 1771 if test $ac_cv_prog_cc_works = no; then
1765 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1772 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1766 fi 1773 fi
1767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1774 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1775 echo "configure:1776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1776 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1770 cross_compiling=$ac_cv_prog_cc_cross 1777 cross_compiling=$ac_cv_prog_cc_cross
1771 1778
1772 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1779 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether we are using GNU C" >&5 1780 echo "configure:1781: checking whether we are using GNU C" >&5
1774 1781
1775 cat > conftest.c <<EOF 1782 cat > conftest.c <<EOF
1776 #ifdef __GNUC__ 1783 #ifdef __GNUC__
1777 yes; 1784 yes;
1778 #endif 1785 #endif
1779 EOF 1786 EOF
1780 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1787 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1781 ac_cv_prog_gcc=yes 1788 ac_cv_prog_gcc=yes
1782 else 1789 else
1783 ac_cv_prog_gcc=no 1790 ac_cv_prog_gcc=no
1784 fi 1791 fi
1785 1792
1793 1800
1794 ac_test_CFLAGS="${CFLAGS+set}" 1801 ac_test_CFLAGS="${CFLAGS+set}"
1795 ac_save_CFLAGS="$CFLAGS" 1802 ac_save_CFLAGS="$CFLAGS"
1796 CFLAGS= 1803 CFLAGS=
1797 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1804 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1798 echo "configure:1799: checking whether ${CC-cc} accepts -g" >&5 1805 echo "configure:1806: checking whether ${CC-cc} accepts -g" >&5
1799 1806
1800 echo 'void f(){}' > conftest.c 1807 echo 'void f(){}' > conftest.c
1801 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1808 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1802 ac_cv_prog_cc_g=yes 1809 ac_cv_prog_cc_g=yes
1803 else 1810 else
1826 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1833 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1827 CC=${NON_GNU_CC-cc} 1834 CC=${NON_GNU_CC-cc}
1828 # Extract the first word of "gcc", so it can be a program name with args. 1835 # Extract the first word of "gcc", so it can be a program name with args.
1829 set dummy gcc; ac_word=$2 1836 set dummy gcc; ac_word=$2
1830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1831 echo "configure:1832: checking for $ac_word" >&5 1838 echo "configure:1839: checking for $ac_word" >&5
1832 1839
1833 if test -n "$CC"; then 1840 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test. 1841 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 else 1842 else
1836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1853 1860
1854 if test -z "$CC"; then 1861 if test -z "$CC"; then
1855 # Extract the first word of "cc", so it can be a program name with args. 1862 # Extract the first word of "cc", so it can be a program name with args.
1856 set dummy cc; ac_word=$2 1863 set dummy cc; ac_word=$2
1857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1858 echo "configure:1859: checking for $ac_word" >&5 1865 echo "configure:1866: checking for $ac_word" >&5
1859 1866
1860 if test -n "$CC"; then 1867 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test. 1868 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else 1869 else
1863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1901 case "`uname -s`" in 1908 case "`uname -s`" in
1902 *win32* | *WIN32*) 1909 *win32* | *WIN32*)
1903 # Extract the first word of "cl", so it can be a program name with args. 1910 # Extract the first word of "cl", so it can be a program name with args.
1904 set dummy cl; ac_word=$2 1911 set dummy cl; ac_word=$2
1905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1906 echo "configure:1907: checking for $ac_word" >&5 1913 echo "configure:1914: checking for $ac_word" >&5
1907 1914
1908 if test -n "$CC"; then 1915 if test -n "$CC"; then
1909 ac_cv_prog_CC="$CC" # Let the user override the test. 1916 ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else 1917 else
1911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1930 fi 1937 fi
1931 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1938 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1932 fi 1939 fi
1933 1940
1934 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1941 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1942 echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1936 1943
1937 ac_ext=c 1944 ac_ext=c
1938 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1945 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1939 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1946 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1940 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1947 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1941 ac_cpp='$CPP '"$xe_cppflags" 1948 ac_cpp='$CPP '"$xe_cppflags"
1942 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1949 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1943 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1950 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1944 cross_compiling=no 1951 cross_compiling=no
1945 1952
1946 cat > conftest.$ac_ext << EOF 1953 cat > conftest.$ac_ext << EOF
1947 1954
1948 #line 1949 "configure" 1955 #line 1956 "configure"
1949 #include "confdefs.h" 1956 #include "confdefs.h"
1950 1957
1951 main(){return(0);} 1958 main(){return(0);}
1952 EOF 1959 EOF
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1960 if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1954 ac_cv_prog_cc_works=yes 1961 ac_cv_prog_cc_works=yes
1955 # If we can't run a trivial program, we are probably using a cross compiler. 1962 # If we can't run a trivial program, we are probably using a cross compiler.
1956 if (./conftest; exit) 2>/dev/null; then 1963 if (./conftest; exit) 2>/dev/null; then
1957 ac_cv_prog_cc_cross=no 1964 ac_cv_prog_cc_cross=no
1958 else 1965 else
1965 fi 1972 fi
1966 rm -fr conftest* 1973 rm -fr conftest*
1967 ac_ext=c 1974 ac_ext=c
1968 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1975 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1969 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1976 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1970 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1977 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1971 ac_cpp='$CPP '"$xe_cppflags" 1978 ac_cpp='$CPP '"$xe_cppflags"
1972 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1979 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1973 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1980 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1974 cross_compiling=no 1981 cross_compiling=no
1975 1982
1976 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1983 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1977 if test $ac_cv_prog_cc_works = no; then 1984 if test $ac_cv_prog_cc_works = no; then
1978 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1985 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1979 fi 1986 fi
1980 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1987 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1981 echo "configure:1982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1988 echo "configure:1989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1982 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1989 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1983 cross_compiling=$ac_cv_prog_cc_cross 1990 cross_compiling=$ac_cv_prog_cc_cross
1984 1991
1985 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1992 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1986 echo "configure:1987: checking whether we are using GNU C" >&5 1993 echo "configure:1994: checking whether we are using GNU C" >&5
1987 1994
1988 cat > conftest.c <<EOF 1995 cat > conftest.c <<EOF
1989 #ifdef __GNUC__ 1996 #ifdef __GNUC__
1990 yes; 1997 yes;
1991 #endif 1998 #endif
1992 EOF 1999 EOF
1993 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2000 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1994 ac_cv_prog_gcc=yes 2001 ac_cv_prog_gcc=yes
1995 else 2002 else
1996 ac_cv_prog_gcc=no 2003 ac_cv_prog_gcc=no
1997 fi 2004 fi
1998 2005
2006 2013
2007 ac_test_CFLAGS="${CFLAGS+set}" 2014 ac_test_CFLAGS="${CFLAGS+set}"
2008 ac_save_CFLAGS="$CFLAGS" 2015 ac_save_CFLAGS="$CFLAGS"
2009 CFLAGS= 2016 CFLAGS=
2010 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2017 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2011 echo "configure:2012: checking whether ${CC-cc} accepts -g" >&5 2018 echo "configure:2019: checking whether ${CC-cc} accepts -g" >&5
2012 2019
2013 echo 'void f(){}' > conftest.c 2020 echo 'void f(){}' > conftest.c
2014 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2021 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2015 ac_cv_prog_cc_g=yes 2022 ac_cv_prog_cc_g=yes
2016 else 2023 else
2039 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 2046 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
2040 CC=gcc 2047 CC=gcc
2041 # Extract the first word of "gcc", so it can be a program name with args. 2048 # Extract the first word of "gcc", so it can be a program name with args.
2042 set dummy gcc; ac_word=$2 2049 set dummy gcc; ac_word=$2
2043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_word" >&5 2051 echo "configure:2052: checking for $ac_word" >&5
2045 2052
2046 if test -n "$CC"; then 2053 if test -n "$CC"; then
2047 ac_cv_prog_CC="$CC" # Let the user override the test. 2054 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else 2055 else
2049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2066 2073
2067 if test -z "$CC"; then 2074 if test -z "$CC"; then
2068 # Extract the first word of "cc", so it can be a program name with args. 2075 # Extract the first word of "cc", so it can be a program name with args.
2069 set dummy cc; ac_word=$2 2076 set dummy cc; ac_word=$2
2070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2071 echo "configure:2072: checking for $ac_word" >&5 2078 echo "configure:2079: checking for $ac_word" >&5
2072 2079
2073 if test -n "$CC"; then 2080 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test. 2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else 2082 else
2076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2114 case "`uname -s`" in 2121 case "`uname -s`" in
2115 *win32* | *WIN32*) 2122 *win32* | *WIN32*)
2116 # Extract the first word of "cl", so it can be a program name with args. 2123 # Extract the first word of "cl", so it can be a program name with args.
2117 set dummy cl; ac_word=$2 2124 set dummy cl; ac_word=$2
2118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2125 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2119 echo "configure:2120: checking for $ac_word" >&5 2126 echo "configure:2127: checking for $ac_word" >&5
2120 2127
2121 if test -n "$CC"; then 2128 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test. 2129 ac_cv_prog_CC="$CC" # Let the user override the test.
2123 else 2130 else
2124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2143 fi 2150 fi
2144 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2151 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2145 fi 2152 fi
2146 2153
2147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2148 echo "configure:2149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2155 echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2149 2156
2150 ac_ext=c 2157 ac_ext=c
2151 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2158 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2152 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2159 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2153 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2160 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2154 ac_cpp='$CPP '"$xe_cppflags" 2161 ac_cpp='$CPP '"$xe_cppflags"
2155 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 2162 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2156 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2163 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2157 cross_compiling=no 2164 cross_compiling=no
2158 2165
2159 cat > conftest.$ac_ext << EOF 2166 cat > conftest.$ac_ext << EOF
2160 2167
2161 #line 2162 "configure" 2168 #line 2169 "configure"
2162 #include "confdefs.h" 2169 #include "confdefs.h"
2163 2170
2164 main(){return(0);} 2171 main(){return(0);}
2165 EOF 2172 EOF
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2167 ac_cv_prog_cc_works=yes 2174 ac_cv_prog_cc_works=yes
2168 # If we can't run a trivial program, we are probably using a cross compiler. 2175 # If we can't run a trivial program, we are probably using a cross compiler.
2169 if (./conftest; exit) 2>/dev/null; then 2176 if (./conftest; exit) 2>/dev/null; then
2170 ac_cv_prog_cc_cross=no 2177 ac_cv_prog_cc_cross=no
2171 else 2178 else
2178 fi 2185 fi
2179 rm -fr conftest* 2186 rm -fr conftest*
2180 ac_ext=c 2187 ac_ext=c
2181 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2188 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2182 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2189 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2183 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2190 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2184 ac_cpp='$CPP '"$xe_cppflags" 2191 ac_cpp='$CPP '"$xe_cppflags"
2185 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 2192 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2186 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2193 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2187 cross_compiling=no 2194 cross_compiling=no
2188 2195
2189 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2196 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2190 if test $ac_cv_prog_cc_works = no; then 2197 if test $ac_cv_prog_cc_works = no; then
2191 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2198 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2192 fi 2199 fi
2193 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2200 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2194 echo "configure:2195: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2201 echo "configure:2202: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2195 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2202 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2196 cross_compiling=$ac_cv_prog_cc_cross 2203 cross_compiling=$ac_cv_prog_cc_cross
2197 2204
2198 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2205 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2199 echo "configure:2200: checking whether we are using GNU C" >&5 2206 echo "configure:2207: checking whether we are using GNU C" >&5
2200 2207
2201 cat > conftest.c <<EOF 2208 cat > conftest.c <<EOF
2202 #ifdef __GNUC__ 2209 #ifdef __GNUC__
2203 yes; 2210 yes;
2204 #endif 2211 #endif
2205 EOF 2212 EOF
2206 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2213 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2207 ac_cv_prog_gcc=yes 2214 ac_cv_prog_gcc=yes
2208 else 2215 else
2209 ac_cv_prog_gcc=no 2216 ac_cv_prog_gcc=no
2210 fi 2217 fi
2211 2218
2219 2226
2220 ac_test_CFLAGS="${CFLAGS+set}" 2227 ac_test_CFLAGS="${CFLAGS+set}"
2221 ac_save_CFLAGS="$CFLAGS" 2228 ac_save_CFLAGS="$CFLAGS"
2222 CFLAGS= 2229 CFLAGS=
2223 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2230 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2224 echo "configure:2225: checking whether ${CC-cc} accepts -g" >&5 2231 echo "configure:2232: checking whether ${CC-cc} accepts -g" >&5
2225 2232
2226 echo 'void f(){}' > conftest.c 2233 echo 'void f(){}' > conftest.c
2227 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2234 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2228 ac_cv_prog_cc_g=yes 2235 ac_cv_prog_cc_g=yes
2229 else 2236 else
2256 test -n "$CPP" -a -d "$CPP" && CPP= 2263 test -n "$CPP" -a -d "$CPP" && CPP=
2257 2264
2258 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2265 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2259 2266
2260 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2267 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2261 echo "configure:2262: checking how to run the C preprocessor" >&5 2268 echo "configure:2269: checking how to run the C preprocessor" >&5
2262 # On Suns, sometimes $CPP names a directory. 2269 # On Suns, sometimes $CPP names a directory.
2263 if test -n "$CPP" && test -d "$CPP"; then 2270 if test -n "$CPP" && test -d "$CPP"; then
2264 CPP= 2271 CPP=
2265 fi 2272 fi
2266 if test -z "$CPP"; then 2273 if test -z "$CPP"; then
2269 # substituted into the Makefile and "${CC-cc}" will confuse make. 2276 # substituted into the Makefile and "${CC-cc}" will confuse make.
2270 CPP="${CC-cc} -E" 2277 CPP="${CC-cc} -E"
2271 # On the NeXT, cc -E runs the code through the compiler's parser, 2278 # On the NeXT, cc -E runs the code through the compiler's parser,
2272 # not just through cpp. 2279 # not just through cpp.
2273 cat > conftest.$ac_ext <<EOF 2280 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure" 2281 #line 2282 "configure"
2275 #include "confdefs.h" 2282 #include "confdefs.h"
2276 #include <assert.h> 2283 #include <assert.h>
2277 Syntax Error 2284 Syntax Error
2278 EOF 2285 EOF
2279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2280 { (eval echo configure:2281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2287 { (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2282 if test -z "$ac_err"; then 2289 if test -z "$ac_err"; then
2283 : 2290 :
2284 else 2291 else
2285 echo "$ac_err" >&5 2292 echo "$ac_err" >&5
2286 echo "configure: failed program was:" >&5 2293 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5 2294 cat conftest.$ac_ext >&5
2288 rm -rf conftest* 2295 rm -rf conftest*
2289 CPP="${CC-cc} -E -traditional-cpp" 2296 CPP="${CC-cc} -E -traditional-cpp"
2290 cat > conftest.$ac_ext <<EOF 2297 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure" 2298 #line 2299 "configure"
2292 #include "confdefs.h" 2299 #include "confdefs.h"
2293 #include <assert.h> 2300 #include <assert.h>
2294 Syntax Error 2301 Syntax Error
2295 EOF 2302 EOF
2296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2303 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2297 { (eval echo configure:2298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2304 { (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2305 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2299 if test -z "$ac_err"; then 2306 if test -z "$ac_err"; then
2300 : 2307 :
2301 else 2308 else
2302 echo "$ac_err" >&5 2309 echo "$ac_err" >&5
2303 echo "configure: failed program was:" >&5 2310 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5 2311 cat conftest.$ac_ext >&5
2305 rm -rf conftest* 2312 rm -rf conftest*
2306 CPP="${CC-cc} -nologo -E" 2313 CPP="${CC-cc} -nologo -E"
2307 cat > conftest.$ac_ext <<EOF 2314 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure" 2315 #line 2316 "configure"
2309 #include "confdefs.h" 2316 #include "confdefs.h"
2310 #include <assert.h> 2317 #include <assert.h>
2311 Syntax Error 2318 Syntax Error
2312 EOF 2319 EOF
2313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2314 { (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2321 { (eval echo configure:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2322 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2316 if test -z "$ac_err"; then 2323 if test -z "$ac_err"; then
2317 : 2324 :
2318 else 2325 else
2319 echo "$ac_err" >&5 2326 echo "$ac_err" >&5
2335 echo "$ac_t""$CPP" 1>&6 2342 echo "$ac_t""$CPP" 1>&6
2336 2343
2337 2344
2338 2345
2339 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2346 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2340 echo "configure:2341: checking for AIX" >&5 2347 echo "configure:2348: checking for AIX" >&5
2341 cat > conftest.$ac_ext <<EOF 2348 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure" 2349 #line 2350 "configure"
2343 #include "confdefs.h" 2350 #include "confdefs.h"
2344 #ifdef _AIX 2351 #ifdef _AIX
2345 yes 2352 yes
2346 #endif 2353 #endif
2347 2354
2364 rm -f conftest* 2371 rm -f conftest*
2365 2372
2366 2373
2367 2374
2368 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2375 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2369 echo "configure:2370: checking for GNU libc" >&5 2376 echo "configure:2377: checking for GNU libc" >&5
2370 cat > conftest.$ac_ext <<EOF 2377 cat > conftest.$ac_ext <<EOF
2371 #line 2372 "configure" 2378 #line 2379 "configure"
2372 #include "confdefs.h" 2379 #include "confdefs.h"
2373 #include <features.h> 2380 #include <features.h>
2374 int main() { 2381 int main() {
2375 2382
2376 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2383 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2378 ******* ======= ******** &&&&&&&& 2385 ******* ======= ******** &&&&&&&&
2379 #endif 2386 #endif
2380 2387
2381 ; return 0; } 2388 ; return 0; }
2382 EOF 2389 EOF
2383 if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2390 if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2384 rm -rf conftest* 2391 rm -rf conftest*
2385 have_glibc=yes 2392 have_glibc=yes
2386 else 2393 else
2387 echo "configure: failed program was:" >&5 2394 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5 2395 cat conftest.$ac_ext >&5
2455 2462
2456 ;; 2463 ;;
2457 esac 2464 esac
2458 2465
2459 cat > conftest.$ac_ext <<EOF 2466 cat > conftest.$ac_ext <<EOF
2460 #line 2461 "configure" 2467 #line 2468 "configure"
2461 #include "confdefs.h" 2468 #include "confdefs.h"
2462 int main () { 2469 int main () {
2463 #if defined __SUNPRO_C 2470 #if defined __SUNPRO_C
2464 return 11; 2471 return 11;
2465 #elif defined __DECC 2472 #elif defined __DECC
2469 #else 2476 #else
2470 return 0; 2477 return 0;
2471 #endif 2478 #endif
2472 } 2479 }
2473 EOF 2480 EOF
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2481 if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2475 then 2482 then
2476 : 2483 :
2477 else 2484 else
2478 conftest_rc="$?" 2485 conftest_rc="$?"
2479 echo "configure: failed program was:" >&5 2486 echo "configure: failed program was:" >&5
2689 2696
2690 case "$opsys" in mingw* | cygwin*) 2697 case "$opsys" in mingw* | cygwin*)
2691 cygwin_include=`eval "gcc -print-file-name=libc.a"` ; 2698 cygwin_include=`eval "gcc -print-file-name=libc.a"` ;
2692 cygwin_include=`eval "dirname $cygwin_include"` ; 2699 cygwin_include=`eval "dirname $cygwin_include"` ;
2693 cygwin_include="-I$cygwin_include/../include" ; 2700 cygwin_include="-I$cygwin_include/../include" ;
2694 extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ; 2701 extra_includes="$cygwin_include/mingw $cygwin_include" ;
2695 case "$opsys" in mingw*) 2702 case "$opsys" in mingw*)
2696 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;; 2703 c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;;
2697 esac 2704 esac
2698 ;; 2705 ;;
2699 esac 2706 esac
2703 2710
2704 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi 2711 test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$extra_verbose" = "yes"; then echo " Appending \"-std1\" to \$c_switch_site"; fi
2705 2712
2706 if test "$__USLC__" = yes; then 2713 if test "$__USLC__" = yes; then
2707 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 2714 echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6
2708 echo "configure:2709: checking for whether the -Kalloca compiler flag is needed" >&5 2715 echo "configure:2716: checking for whether the -Kalloca compiler flag is needed" >&5
2709 need_kalloca=no 2716 need_kalloca=no
2710 cat > conftest.$ac_ext <<EOF 2717 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure" 2718 #line 2719 "configure"
2712 #include "confdefs.h" 2719 #include "confdefs.h"
2713 2720
2714 int main() { 2721 int main() {
2715 void *x = alloca(4); 2722 void *x = alloca(4);
2716 ; return 0; } 2723 ; return 0; }
2717 EOF 2724 EOF
2718 if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2725 if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2719 rm -rf conftest* 2726 rm -rf conftest*
2720 : 2727 :
2721 else 2728 else
2722 echo "configure: failed program was:" >&5 2729 echo "configure: failed program was:" >&5
2723 cat conftest.$ac_ext >&5 2730 cat conftest.$ac_ext >&5
2724 rm -rf conftest* 2731 rm -rf conftest*
2725 2732
2726 xe_save_c_switch_system="$c_switch_system" 2733 xe_save_c_switch_system="$c_switch_system"
2727 c_switch_system="$c_switch_system -Kalloca" 2734 c_switch_system="$c_switch_system -Kalloca"
2728 cat > conftest.$ac_ext <<EOF 2735 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure" 2736 #line 2737 "configure"
2730 #include "confdefs.h" 2737 #include "confdefs.h"
2731 2738
2732 int main() { 2739 int main() {
2733 void *x = alloca(4); 2740 void *x = alloca(4);
2734 ; return 0; } 2741 ; return 0; }
2735 EOF 2742 EOF
2736 if { (eval echo configure:2737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2743 if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2737 rm -rf conftest* 2744 rm -rf conftest*
2738 need_kalloca=yes 2745 need_kalloca=yes
2739 else 2746 else
2740 echo "configure: failed program was:" >&5 2747 echo "configure: failed program was:" >&5
2741 cat conftest.$ac_ext >&5 2748 cat conftest.$ac_ext >&5
2765 CFLAGS="-O" ; fi 2772 CFLAGS="-O" ; fi
2766 fi 2773 fi
2767 2774
2768 if test "$GCC" = "yes"; then 2775 if test "$GCC" = "yes"; then
2769 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 2776 echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6
2770 echo "configure:2771: checking for buggy gcc versions" >&5 2777 echo "configure:2778: checking for buggy gcc versions" >&5
2771 GCC_VERSION=`$CC --version` 2778 GCC_VERSION=`$CC --version`
2772 case `uname -s`:`uname -m`:$GCC_VERSION in 2779 case `uname -s`:`uname -m`:$GCC_VERSION in
2773 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) 2780 *:sun4*:2.8.1|*:sun4*:egcs-2.90.*)
2774 case "$CFLAGS" in 2781 case "$CFLAGS" in
2775 *-O2*|*-O3*) 2782 *-O2*|*-O3*)
2888 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then 2895 test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_verbose" = "yes"; then
2889 echo " xemacs will be linked with \"dumper.o\"" 2896 echo " xemacs will be linked with \"dumper.o\""
2890 fi 2897 fi
2891 2898
2892 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2899 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2893 echo "configure:2894: checking for dynodump" >&5 2900 echo "configure:2901: checking for dynodump" >&5
2894 if test "$unexec" != "unexsol2.o"; then 2901 if test "$unexec" != "unexsol2.o"; then
2895 echo "$ac_t""no" 1>&6 2902 echo "$ac_t""no" 1>&6
2896 else 2903 else
2897 echo "$ac_t""yes" 1>&6 2904 echo "$ac_t""yes" 1>&6
2898 { test "$extra_verbose" = "yes" && cat << \EOF 2905 { test "$extra_verbose" = "yes" && cat << \EOF
2926 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2933 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 2934 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2928 done 2935 done
2929 2936
2930 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2937 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2931 echo "configure:2932: checking for terminateAndUnload in -lC" >&5 2938 echo "configure:2939: checking for terminateAndUnload in -lC" >&5
2932 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2939 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2933 2940
2934 xe_check_libs=" -lC " 2941 xe_check_libs=" -lC "
2935 cat > conftest.$ac_ext <<EOF 2942 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure" 2943 #line 2944 "configure"
2937 #include "confdefs.h" 2944 #include "confdefs.h"
2938 /* Override any gcc2 internal prototype to avoid an error. */ 2945 /* Override any gcc2 internal prototype to avoid an error. */
2939 /* We use char because int might match the return type of a gcc2 2946 /* We use char because int might match the return type of a gcc2
2940 builtin and then its argument prototype would still apply. */ 2947 builtin and then its argument prototype would still apply. */
2941 char terminateAndUnload(); 2948 char terminateAndUnload();
2942 2949
2943 int main() { 2950 int main() {
2944 terminateAndUnload() 2951 terminateAndUnload()
2945 ; return 0; } 2952 ; return 0; }
2946 EOF 2953 EOF
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2948 rm -rf conftest* 2955 rm -rf conftest*
2949 eval "ac_cv_lib_$ac_lib_var=yes" 2956 eval "ac_cv_lib_$ac_lib_var=yes"
2950 else 2957 else
2951 echo "configure: failed program was:" >&5 2958 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5 2959 cat conftest.$ac_ext >&5
3050 esac 3057 esac
3051 fi 3058 fi
3052 3059
3053 if test "$add_runtime_path" = "yes"; then 3060 if test "$add_runtime_path" = "yes"; then
3054 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 3061 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
3055 echo "configure:3056: checking "for runtime libraries flag"" >&5 3062 echo "configure:3063: checking "for runtime libraries flag"" >&5
3056 case "$opsys" in 3063 case "$opsys" in
3057 sol2 ) dash_r="-R" ;; 3064 sol2 ) dash_r="-R" ;;
3058 decosf* | linux* | irix*) dash_r="-rpath " ;; 3065 decosf* | linux* | irix*) dash_r="-rpath " ;;
3059 *) 3066 *)
3060 dash_r="" 3067 dash_r=""
3072 esac 3079 esac
3073 shift 3080 shift
3074 done 3081 done
3075 fi 3082 fi
3076 cat > conftest.$ac_ext <<EOF 3083 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure" 3084 #line 3085 "configure"
3078 #include "confdefs.h" 3085 #include "confdefs.h"
3079 3086
3080 int main() { 3087 int main() {
3081 3088
3082 ; return 0; } 3089 ; return 0; }
3083 EOF 3090 EOF
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 rm -rf conftest* 3092 rm -rf conftest*
3086 dash_r="$try_dash_r" 3093 dash_r="$try_dash_r"
3087 else 3094 else
3088 echo "configure: failed program was:" >&5 3095 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5 3096 cat conftest.$ac_ext >&5
3180 else 3187 else
3181 doug_lea_malloc=no 3188 doug_lea_malloc=no
3182 fi 3189 fi
3183 after_morecore_hook_exists=yes 3190 after_morecore_hook_exists=yes
3184 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 3191 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
3185 echo "configure:3186: checking for malloc_set_state" >&5 3192 echo "configure:3193: checking for malloc_set_state" >&5
3186 3193
3187 cat > conftest.$ac_ext <<EOF 3194 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure" 3195 #line 3196 "configure"
3189 #include "confdefs.h" 3196 #include "confdefs.h"
3190 /* System header to define __stub macros and hopefully few prototypes, 3197 /* System header to define __stub macros and hopefully few prototypes,
3191 which can conflict with char malloc_set_state(); below. */ 3198 which can conflict with char malloc_set_state(); below. */
3192 #include <assert.h> 3199 #include <assert.h>
3193 /* Override any gcc2 internal prototype to avoid an error. */ 3200 /* Override any gcc2 internal prototype to avoid an error. */
3206 malloc_set_state(); 3213 malloc_set_state();
3207 #endif 3214 #endif
3208 3215
3209 ; return 0; } 3216 ; return 0; }
3210 EOF 3217 EOF
3211 if { (eval echo configure:3212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3218 if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3212 rm -rf conftest* 3219 rm -rf conftest*
3213 eval "ac_cv_func_malloc_set_state=yes" 3220 eval "ac_cv_func_malloc_set_state=yes"
3214 else 3221 else
3215 echo "configure: failed program was:" >&5 3222 echo "configure: failed program was:" >&5
3216 cat conftest.$ac_ext >&5 3223 cat conftest.$ac_ext >&5
3226 echo "$ac_t""no" 1>&6 3233 echo "$ac_t""no" 1>&6
3227 doug_lea_malloc=no 3234 doug_lea_malloc=no
3228 fi 3235 fi
3229 3236
3230 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 3237 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
3231 echo "configure:3232: checking whether __after_morecore_hook exists" >&5 3238 echo "configure:3239: checking whether __after_morecore_hook exists" >&5
3232 cat > conftest.$ac_ext <<EOF 3239 cat > conftest.$ac_ext <<EOF
3233 #line 3234 "configure" 3240 #line 3241 "configure"
3234 #include "confdefs.h" 3241 #include "confdefs.h"
3235 extern void (* __after_morecore_hook)(); 3242 extern void (* __after_morecore_hook)();
3236 int main() { 3243 int main() {
3237 __after_morecore_hook = 0 3244 __after_morecore_hook = 0
3238 ; return 0; } 3245 ; return 0; }
3239 EOF 3246 EOF
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3247 if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3241 rm -rf conftest* 3248 rm -rf conftest*
3242 echo "$ac_t""yes" 1>&6 3249 echo "$ac_t""yes" 1>&6
3243 else 3250 else
3244 echo "configure: failed program was:" >&5 3251 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5 3252 cat conftest.$ac_ext >&5
3291 3298
3292 3299
3293 # Extract the first word of "ranlib", so it can be a program name with args. 3300 # Extract the first word of "ranlib", so it can be a program name with args.
3294 set dummy ranlib; ac_word=$2 3301 set dummy ranlib; ac_word=$2
3295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3296 echo "configure:3297: checking for $ac_word" >&5 3303 echo "configure:3304: checking for $ac_word" >&5
3297 3304
3298 if test -n "$RANLIB"; then 3305 if test -n "$RANLIB"; then
3299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3306 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3300 else 3307 else
3301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3346 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3353 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3347 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3354 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3348 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3355 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3349 # ./install, which can be erroneously created by make from ./install.sh. 3356 # ./install, which can be erroneously created by make from ./install.sh.
3350 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3357 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3351 echo "configure:3352: checking for a BSD compatible install" >&5 3358 echo "configure:3359: checking for a BSD compatible install" >&5
3352 if test -z "$INSTALL"; then 3359 if test -z "$INSTALL"; then
3353 3360
3354 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3361 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3355 for ac_dir in $PATH; do 3362 for ac_dir in $PATH; do
3356 # Account for people who put trailing slashes in PATH elements. 3363 # Account for people who put trailing slashes in PATH elements.
3400 for ac_prog in 'bison -y' byacc 3407 for ac_prog in 'bison -y' byacc
3401 do 3408 do
3402 # Extract the first word of "$ac_prog", so it can be a program name with args. 3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy $ac_prog; ac_word=$2 3410 set dummy $ac_prog; ac_word=$2
3404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3405 echo "configure:3406: checking for $ac_word" >&5 3412 echo "configure:3413: checking for $ac_word" >&5
3406 3413
3407 if test -n "$YACC"; then 3414 if test -n "$YACC"; then
3408 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3415 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3409 else 3416 else
3410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3432 3439
3433 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 3440 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
3434 do 3441 do
3435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3437 echo "configure:3438: checking for $ac_hdr" >&5 3444 echo "configure:3445: checking for $ac_hdr" >&5
3438 3445
3439 cat > conftest.$ac_ext <<EOF 3446 cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure" 3447 #line 3448 "configure"
3441 #include "confdefs.h" 3448 #include "confdefs.h"
3442 #include <$ac_hdr> 3449 #include <$ac_hdr>
3443 EOF 3450 EOF
3444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3445 { (eval echo configure:3446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3452 { (eval echo configure:3453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3447 if test -z "$ac_err"; then 3454 if test -z "$ac_err"; then
3448 rm -rf conftest* 3455 rm -rf conftest*
3449 eval "ac_cv_header_$ac_safe=yes" 3456 eval "ac_cv_header_$ac_safe=yes"
3450 else 3457 else
3470 echo "$ac_t""no" 1>&6 3477 echo "$ac_t""no" 1>&6
3471 fi 3478 fi
3472 done 3479 done
3473 3480
3474 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3481 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3475 echo "configure:3476: checking for sys/wait.h that is POSIX.1 compatible" >&5 3482 echo "configure:3483: checking for sys/wait.h that is POSIX.1 compatible" >&5
3476 3483
3477 cat > conftest.$ac_ext <<EOF 3484 cat > conftest.$ac_ext <<EOF
3478 #line 3479 "configure" 3485 #line 3486 "configure"
3479 #include "confdefs.h" 3486 #include "confdefs.h"
3480 #include <sys/types.h> 3487 #include <sys/types.h>
3481 #include <sys/wait.h> 3488 #include <sys/wait.h>
3482 #ifndef WEXITSTATUS 3489 #ifndef WEXITSTATUS
3483 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3490 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3489 int s; 3496 int s;
3490 wait (&s); 3497 wait (&s);
3491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3492 ; return 0; } 3499 ; return 0; }
3493 EOF 3500 EOF
3494 if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3501 if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3495 rm -rf conftest* 3502 rm -rf conftest*
3496 ac_cv_header_sys_wait_h=yes 3503 ac_cv_header_sys_wait_h=yes
3497 else 3504 else
3498 echo "configure: failed program was:" >&5 3505 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5 3506 cat conftest.$ac_ext >&5
3513 } 3520 }
3514 3521
3515 fi 3522 fi
3516 3523
3517 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3524 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3518 echo "configure:3519: checking for ANSI C header files" >&5 3525 echo "configure:3526: checking for ANSI C header files" >&5
3519 3526
3520 cat > conftest.$ac_ext <<EOF 3527 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure" 3528 #line 3529 "configure"
3522 #include "confdefs.h" 3529 #include "confdefs.h"
3523 #include <stdlib.h> 3530 #include <stdlib.h>
3524 #include <stdarg.h> 3531 #include <stdarg.h>
3525 #include <string.h> 3532 #include <string.h>
3526 #include <float.h> 3533 #include <float.h>
3527 EOF 3534 EOF
3528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3529 { (eval echo configure:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3536 { (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3531 if test -z "$ac_err"; then 3538 if test -z "$ac_err"; then
3532 rm -rf conftest* 3539 rm -rf conftest*
3533 ac_cv_header_stdc=yes 3540 ac_cv_header_stdc=yes
3534 else 3541 else
3541 rm -f conftest* 3548 rm -f conftest*
3542 3549
3543 if test $ac_cv_header_stdc = yes; then 3550 if test $ac_cv_header_stdc = yes; then
3544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3545 cat > conftest.$ac_ext <<EOF 3552 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure" 3553 #line 3554 "configure"
3547 #include "confdefs.h" 3554 #include "confdefs.h"
3548 #include <string.h> 3555 #include <string.h>
3549 EOF 3556 EOF
3550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3551 egrep "memchr" >/dev/null 2>&1; then 3558 egrep "memchr" >/dev/null 2>&1; then
3559 fi 3566 fi
3560 3567
3561 if test $ac_cv_header_stdc = yes; then 3568 if test $ac_cv_header_stdc = yes; then
3562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3563 cat > conftest.$ac_ext <<EOF 3570 cat > conftest.$ac_ext <<EOF
3564 #line 3565 "configure" 3571 #line 3572 "configure"
3565 #include "confdefs.h" 3572 #include "confdefs.h"
3566 #include <stdlib.h> 3573 #include <stdlib.h>
3567 EOF 3574 EOF
3568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3569 egrep "free" >/dev/null 2>&1; then 3576 egrep "free" >/dev/null 2>&1; then
3577 fi 3584 fi
3578 3585
3579 if test $ac_cv_header_stdc = yes; then 3586 if test $ac_cv_header_stdc = yes; then
3580 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3581 cat > conftest.$ac_ext <<EOF 3588 cat > conftest.$ac_ext <<EOF
3582 #line 3583 "configure" 3589 #line 3590 "configure"
3583 #include "confdefs.h" 3590 #include "confdefs.h"
3584 #include <ctype.h> 3591 #include <ctype.h>
3585 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3592 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3593 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3588 int main () { int i; for (i = 0; i < 256; i++) 3595 int main () { int i; for (i = 0; i < 256; i++)
3589 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3596 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3590 exit (0); } 3597 exit (0); }
3591 3598
3592 EOF 3599 EOF
3593 if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3600 if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3594 then 3601 then
3595 : 3602 :
3596 else 3603 else
3597 conftest_rc="$?" 3604 conftest_rc="$?"
3598 echo "configure: failed program was:" >&5 3605 echo "configure: failed program was:" >&5
3614 } 3621 }
3615 3622
3616 fi 3623 fi
3617 3624
3618 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3625 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3619 echo "configure:3620: checking whether time.h and sys/time.h may both be included" >&5 3626 echo "configure:3627: checking whether time.h and sys/time.h may both be included" >&5
3620 3627
3621 cat > conftest.$ac_ext <<EOF 3628 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure" 3629 #line 3630 "configure"
3623 #include "confdefs.h" 3630 #include "confdefs.h"
3624 #include <sys/types.h> 3631 #include <sys/types.h>
3625 #include <sys/time.h> 3632 #include <sys/time.h>
3626 #include <time.h> 3633 #include <time.h>
3627 int main() { 3634 int main() {
3628 struct tm *tp; 3635 struct tm *tp;
3629 ; return 0; } 3636 ; return 0; }
3630 EOF 3637 EOF
3631 if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3638 if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3632 rm -rf conftest* 3639 rm -rf conftest*
3633 ac_cv_header_time=yes 3640 ac_cv_header_time=yes
3634 else 3641 else
3635 echo "configure: failed program was:" >&5 3642 echo "configure: failed program was:" >&5
3636 cat conftest.$ac_ext >&5 3643 cat conftest.$ac_ext >&5
3650 } 3657 }
3651 3658
3652 fi 3659 fi
3653 3660
3654 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3661 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3655 echo "configure:3656: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3662 echo "configure:3663: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3656 3663
3657 cat > conftest.$ac_ext <<EOF 3664 cat > conftest.$ac_ext <<EOF
3658 #line 3659 "configure" 3665 #line 3666 "configure"
3659 #include "confdefs.h" 3666 #include "confdefs.h"
3660 #include <sys/types.h> 3667 #include <sys/types.h>
3661 #include <signal.h> 3668 #include <signal.h>
3662 /* NetBSD declares sys_siglist in unistd.h. */ 3669 /* NetBSD declares sys_siglist in unistd.h. */
3663 #ifdef HAVE_UNISTD_H 3670 #ifdef HAVE_UNISTD_H
3665 #endif 3672 #endif
3666 int main() { 3673 int main() {
3667 char *msg = *(sys_siglist + 1); 3674 char *msg = *(sys_siglist + 1);
3668 ; return 0; } 3675 ; return 0; }
3669 EOF 3676 EOF
3670 if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3677 if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3671 rm -rf conftest* 3678 rm -rf conftest*
3672 ac_cv_decl_sys_siglist=yes 3679 ac_cv_decl_sys_siglist=yes
3673 else 3680 else
3674 echo "configure: failed program was:" >&5 3681 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5 3682 cat conftest.$ac_ext >&5
3691 fi 3698 fi
3692 3699
3693 3700
3694 3701
3695 echo $ac_n "checking for utime""... $ac_c" 1>&6 3702 echo $ac_n "checking for utime""... $ac_c" 1>&6
3696 echo "configure:3697: checking for utime" >&5 3703 echo "configure:3704: checking for utime" >&5
3697 cat > conftest.$ac_ext <<EOF 3704 cat > conftest.$ac_ext <<EOF
3698 #line 3699 "configure" 3705 #line 3706 "configure"
3699 #include "confdefs.h" 3706 #include "confdefs.h"
3700 #include <sys/types.h> 3707 #include <sys/types.h>
3701 #include <utime.h> 3708 #include <utime.h>
3702 int main() { 3709 int main() {
3703 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); 3710 struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x);
3704 ; return 0; } 3711 ; return 0; }
3705 EOF 3712 EOF
3706 if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3713 if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3707 rm -rf conftest* 3714 rm -rf conftest*
3708 echo "$ac_t""yes" 1>&6 3715 echo "$ac_t""yes" 1>&6
3709 { test "$extra_verbose" = "yes" && cat << \EOF 3716 { test "$extra_verbose" = "yes" && cat << \EOF
3710 Defining HAVE_UTIME 3717 Defining HAVE_UTIME
3711 EOF 3718 EOF
3720 rm -rf conftest* 3727 rm -rf conftest*
3721 echo "$ac_t""no" 1>&6 3728 echo "$ac_t""no" 1>&6
3722 for ac_func in utimes 3729 for ac_func in utimes
3723 do 3730 do
3724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3725 echo "configure:3726: checking for $ac_func" >&5 3732 echo "configure:3733: checking for $ac_func" >&5
3726 3733
3727 cat > conftest.$ac_ext <<EOF 3734 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure" 3735 #line 3736 "configure"
3729 #include "confdefs.h" 3736 #include "confdefs.h"
3730 /* System header to define __stub macros and hopefully few prototypes, 3737 /* System header to define __stub macros and hopefully few prototypes,
3731 which can conflict with char $ac_func(); below. */ 3738 which can conflict with char $ac_func(); below. */
3732 #include <assert.h> 3739 #include <assert.h>
3733 /* Override any gcc2 internal prototype to avoid an error. */ 3740 /* Override any gcc2 internal prototype to avoid an error. */
3746 $ac_func(); 3753 $ac_func();
3747 #endif 3754 #endif
3748 3755
3749 ; return 0; } 3756 ; return 0; }
3750 EOF 3757 EOF
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3758 if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3752 rm -rf conftest* 3759 rm -rf conftest*
3753 eval "ac_cv_func_$ac_func=yes" 3760 eval "ac_cv_func_$ac_func=yes"
3754 else 3761 else
3755 echo "configure: failed program was:" >&5 3762 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5 3763 cat conftest.$ac_ext >&5
3778 fi 3785 fi
3779 rm -f conftest* 3786 rm -f conftest*
3780 3787
3781 3788
3782 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3789 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3783 echo "configure:3784: checking return type of signal handlers" >&5 3790 echo "configure:3791: checking return type of signal handlers" >&5
3784 3791
3785 cat > conftest.$ac_ext <<EOF 3792 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure" 3793 #line 3794 "configure"
3787 #include "confdefs.h" 3794 #include "confdefs.h"
3788 #include <sys/types.h> 3795 #include <sys/types.h>
3789 #include <signal.h> 3796 #include <signal.h>
3790 #ifdef signal 3797 #ifdef signal
3791 #undef signal 3798 #undef signal
3798 3805
3799 int main() { 3806 int main() {
3800 int i; 3807 int i;
3801 ; return 0; } 3808 ; return 0; }
3802 EOF 3809 EOF
3803 if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3810 if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 rm -rf conftest* 3811 rm -rf conftest*
3805 ac_cv_type_signal=void 3812 ac_cv_type_signal=void
3806 else 3813 else
3807 echo "configure: failed program was:" >&5 3814 echo "configure: failed program was:" >&5
3808 cat conftest.$ac_ext >&5 3815 cat conftest.$ac_ext >&5
3820 EOF 3827 EOF
3821 } 3828 }
3822 3829
3823 3830
3824 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3831 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3825 echo "configure:3826: checking for size_t" >&5 3832 echo "configure:3833: checking for size_t" >&5
3826 3833
3827 cat > conftest.$ac_ext <<EOF 3834 cat > conftest.$ac_ext <<EOF
3828 #line 3829 "configure" 3835 #line 3836 "configure"
3829 #include "confdefs.h" 3836 #include "confdefs.h"
3830 #include <sys/types.h> 3837 #include <sys/types.h>
3831 #if STDC_HEADERS 3838 #if STDC_HEADERS
3832 #include <stdlib.h> 3839 #include <stdlib.h>
3833 #include <stddef.h> 3840 #include <stddef.h>
3854 } 3861 }
3855 3862
3856 fi 3863 fi
3857 3864
3858 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3865 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3859 echo "configure:3860: checking for pid_t" >&5 3866 echo "configure:3867: checking for pid_t" >&5
3860 3867
3861 cat > conftest.$ac_ext <<EOF 3868 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure" 3869 #line 3870 "configure"
3863 #include "confdefs.h" 3870 #include "confdefs.h"
3864 #include <sys/types.h> 3871 #include <sys/types.h>
3865 #if STDC_HEADERS 3872 #if STDC_HEADERS
3866 #include <stdlib.h> 3873 #include <stdlib.h>
3867 #include <stddef.h> 3874 #include <stddef.h>
3888 } 3895 }
3889 3896
3890 fi 3897 fi
3891 3898
3892 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3899 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3893 echo "configure:3894: checking for uid_t in sys/types.h" >&5 3900 echo "configure:3901: checking for uid_t in sys/types.h" >&5
3894 3901
3895 cat > conftest.$ac_ext <<EOF 3902 cat > conftest.$ac_ext <<EOF
3896 #line 3897 "configure" 3903 #line 3904 "configure"
3897 #include "confdefs.h" 3904 #include "confdefs.h"
3898 #include <sys/types.h> 3905 #include <sys/types.h>
3899 EOF 3906 EOF
3900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3901 egrep "uid_t" >/dev/null 2>&1; then 3908 egrep "uid_t" >/dev/null 2>&1; then
3927 } 3934 }
3928 3935
3929 fi 3936 fi
3930 3937
3931 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3938 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3932 echo "configure:3933: checking for mode_t" >&5 3939 echo "configure:3940: checking for mode_t" >&5
3933 3940
3934 cat > conftest.$ac_ext <<EOF 3941 cat > conftest.$ac_ext <<EOF
3935 #line 3936 "configure" 3942 #line 3943 "configure"
3936 #include "confdefs.h" 3943 #include "confdefs.h"
3937 #include <sys/types.h> 3944 #include <sys/types.h>
3938 #if STDC_HEADERS 3945 #if STDC_HEADERS
3939 #include <stdlib.h> 3946 #include <stdlib.h>
3940 #include <stddef.h> 3947 #include <stddef.h>
3961 } 3968 }
3962 3969
3963 fi 3970 fi
3964 3971
3965 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3972 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3966 echo "configure:3967: checking for off_t" >&5 3973 echo "configure:3974: checking for off_t" >&5
3967 3974
3968 cat > conftest.$ac_ext <<EOF 3975 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure" 3976 #line 3977 "configure"
3970 #include "confdefs.h" 3977 #include "confdefs.h"
3971 #include <sys/types.h> 3978 #include <sys/types.h>
3972 #if STDC_HEADERS 3979 #if STDC_HEADERS
3973 #include <stdlib.h> 3980 #include <stdlib.h>
3974 #include <stddef.h> 3981 #include <stddef.h>
3995 } 4002 }
3996 4003
3997 fi 4004 fi
3998 4005
3999 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 4006 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
4000 echo "configure:4001: checking for ssize_t" >&5 4007 echo "configure:4008: checking for ssize_t" >&5
4001 4008
4002 cat > conftest.$ac_ext <<EOF 4009 cat > conftest.$ac_ext <<EOF
4003 #line 4004 "configure" 4010 #line 4011 "configure"
4004 #include "confdefs.h" 4011 #include "confdefs.h"
4005 #include <sys/types.h> 4012 #include <sys/types.h>
4006 #if STDC_HEADERS 4013 #if STDC_HEADERS
4007 #include <stdlib.h> 4014 #include <stdlib.h>
4008 #include <stddef.h> 4015 #include <stddef.h>
4030 4037
4031 fi 4038 fi
4032 4039
4033 4040
4034 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 4041 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4035 echo "configure:4036: checking for socklen_t" >&5 4042 echo "configure:4043: checking for socklen_t" >&5
4036 cat > conftest.$ac_ext <<EOF 4043 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure" 4044 #line 4045 "configure"
4038 #include "confdefs.h" 4045 #include "confdefs.h"
4039 #include <sys/socket.h> 4046 #include <sys/socket.h>
4040 socklen_t x; 4047 socklen_t x;
4041 4048
4042 int main() { 4049 int main() {
4043 4050
4044 ; return 0; } 4051 ; return 0; }
4045 EOF 4052 EOF
4046 if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4053 if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4047 rm -rf conftest* 4054 rm -rf conftest*
4048 echo "$ac_t""yes" 1>&6 4055 echo "$ac_t""yes" 1>&6
4049 else 4056 else
4050 echo "configure: failed program was:" >&5 4057 echo "configure: failed program was:" >&5
4051 cat conftest.$ac_ext >&5 4058 cat conftest.$ac_ext >&5
4052 rm -rf conftest* 4059 rm -rf conftest*
4053 4060
4054 cat > conftest.$ac_ext <<EOF 4061 cat > conftest.$ac_ext <<EOF
4055 #line 4056 "configure" 4062 #line 4063 "configure"
4056 #include "confdefs.h" 4063 #include "confdefs.h"
4057 #include <sys/socket.h> 4064 #include <sys/socket.h>
4058 int accept (int, struct sockaddr *, size_t *); 4065 int accept (int, struct sockaddr *, size_t *);
4059 4066
4060 int main() { 4067 int main() {
4061 4068
4062 ; return 0; } 4069 ; return 0; }
4063 EOF 4070 EOF
4064 if { (eval echo configure:4065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4071 if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4065 rm -rf conftest* 4072 rm -rf conftest*
4066 4073
4067 echo "$ac_t""size_t" 1>&6 4074 echo "$ac_t""size_t" 1>&6
4068 { test "$extra_verbose" = "yes" && cat << \EOF 4075 { test "$extra_verbose" = "yes" && cat << \EOF
4069 Defining socklen_t = size_t 4076 Defining socklen_t = size_t
4091 rm -f conftest* 4098 rm -f conftest*
4092 fi 4099 fi
4093 rm -f conftest* 4100 rm -f conftest*
4094 4101
4095 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 4102 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
4096 echo "configure:4097: checking for struct timeval" >&5 4103 echo "configure:4104: checking for struct timeval" >&5
4097 cat > conftest.$ac_ext <<EOF 4104 cat > conftest.$ac_ext <<EOF
4098 #line 4099 "configure" 4105 #line 4106 "configure"
4099 #include "confdefs.h" 4106 #include "confdefs.h"
4100 #ifdef TIME_WITH_SYS_TIME 4107 #ifdef TIME_WITH_SYS_TIME
4101 #include <sys/time.h> 4108 #include <sys/time.h>
4102 #include <time.h> 4109 #include <time.h>
4103 #else 4110 #else
4109 #endif 4116 #endif
4110 int main() { 4117 int main() {
4111 static struct timeval x; x.tv_sec = x.tv_usec; 4118 static struct timeval x; x.tv_sec = x.tv_usec;
4112 ; return 0; } 4119 ; return 0; }
4113 EOF 4120 EOF
4114 if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4121 if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4115 rm -rf conftest* 4122 rm -rf conftest*
4116 echo "$ac_t""yes" 1>&6 4123 echo "$ac_t""yes" 1>&6
4117 HAVE_TIMEVAL=yes 4124 HAVE_TIMEVAL=yes
4118 { test "$extra_verbose" = "yes" && cat << \EOF 4125 { test "$extra_verbose" = "yes" && cat << \EOF
4119 Defining HAVE_TIMEVAL 4126 Defining HAVE_TIMEVAL
4131 HAVE_TIMEVAL=no 4138 HAVE_TIMEVAL=no
4132 fi 4139 fi
4133 rm -f conftest* 4140 rm -f conftest*
4134 4141
4135 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 4142 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4136 echo "configure:4137: checking whether struct tm is in sys/time.h or time.h" >&5 4143 echo "configure:4144: checking whether struct tm is in sys/time.h or time.h" >&5
4137 4144
4138 cat > conftest.$ac_ext <<EOF 4145 cat > conftest.$ac_ext <<EOF
4139 #line 4140 "configure" 4146 #line 4147 "configure"
4140 #include "confdefs.h" 4147 #include "confdefs.h"
4141 #include <sys/types.h> 4148 #include <sys/types.h>
4142 #include <time.h> 4149 #include <time.h>
4143 int main() { 4150 int main() {
4144 struct tm *tp; tp->tm_sec; 4151 struct tm *tp; tp->tm_sec;
4145 ; return 0; } 4152 ; return 0; }
4146 EOF 4153 EOF
4147 if { (eval echo configure:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4154 if { (eval echo configure:4155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 rm -rf conftest* 4155 rm -rf conftest*
4149 ac_cv_struct_tm=time.h 4156 ac_cv_struct_tm=time.h
4150 else 4157 else
4151 echo "configure: failed program was:" >&5 4158 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5 4159 cat conftest.$ac_ext >&5
4166 } 4173 }
4167 4174
4168 fi 4175 fi
4169 4176
4170 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 4177 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4171 echo "configure:4172: checking for tm_zone in struct tm" >&5 4178 echo "configure:4179: checking for tm_zone in struct tm" >&5
4172 4179
4173 cat > conftest.$ac_ext <<EOF 4180 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure" 4181 #line 4182 "configure"
4175 #include "confdefs.h" 4182 #include "confdefs.h"
4176 #include <sys/types.h> 4183 #include <sys/types.h>
4177 #include <$ac_cv_struct_tm> 4184 #include <$ac_cv_struct_tm>
4178 int main() { 4185 int main() {
4179 struct tm tm; tm.tm_zone; 4186 struct tm tm; tm.tm_zone;
4180 ; return 0; } 4187 ; return 0; }
4181 EOF 4188 EOF
4182 if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4189 if { (eval echo configure:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4183 rm -rf conftest* 4190 rm -rf conftest*
4184 ac_cv_struct_tm_zone=yes 4191 ac_cv_struct_tm_zone=yes
4185 else 4192 else
4186 echo "configure: failed program was:" >&5 4193 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5 4194 cat conftest.$ac_ext >&5
4200 EOF 4207 EOF
4201 } 4208 }
4202 4209
4203 else 4210 else
4204 echo $ac_n "checking for tzname""... $ac_c" 1>&6 4211 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4205 echo "configure:4206: checking for tzname" >&5 4212 echo "configure:4213: checking for tzname" >&5
4206 4213
4207 cat > conftest.$ac_ext <<EOF 4214 cat > conftest.$ac_ext <<EOF
4208 #line 4209 "configure" 4215 #line 4216 "configure"
4209 #include "confdefs.h" 4216 #include "confdefs.h"
4210 #include <time.h> 4217 #include <time.h>
4211 #ifndef tzname /* For SGI. */ 4218 #ifndef tzname /* For SGI. */
4212 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 4219 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4213 #endif 4220 #endif
4214 int main() { 4221 int main() {
4215 atoi(*tzname); 4222 atoi(*tzname);
4216 ; return 0; } 4223 ; return 0; }
4217 EOF 4224 EOF
4218 if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4219 rm -rf conftest* 4226 rm -rf conftest*
4220 ac_cv_var_tzname=yes 4227 ac_cv_var_tzname=yes
4221 else 4228 else
4222 echo "configure: failed program was:" >&5 4229 echo "configure: failed program was:" >&5
4223 cat conftest.$ac_ext >&5 4230 cat conftest.$ac_ext >&5
4239 fi 4246 fi
4240 fi 4247 fi
4241 4248
4242 4249
4243 echo $ac_n "checking for working const""... $ac_c" 1>&6 4250 echo $ac_n "checking for working const""... $ac_c" 1>&6
4244 echo "configure:4245: checking for working const" >&5 4251 echo "configure:4252: checking for working const" >&5
4245 4252
4246 cat > conftest.$ac_ext <<EOF 4253 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure" 4254 #line 4255 "configure"
4248 #include "confdefs.h" 4255 #include "confdefs.h"
4249 4256
4250 int main() { 4257 int main() {
4251 4258
4252 /* Ultrix mips cc rejects this. */ 4259 /* Ultrix mips cc rejects this. */
4291 const int foo = 10; 4298 const int foo = 10;
4292 } 4299 }
4293 4300
4294 ; return 0; } 4301 ; return 0; }
4295 EOF 4302 EOF
4296 if { (eval echo configure:4297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4303 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4297 rm -rf conftest* 4304 rm -rf conftest*
4298 ac_cv_c_const=yes 4305 ac_cv_c_const=yes
4299 else 4306 else
4300 echo "configure: failed program was:" >&5 4307 echo "configure: failed program was:" >&5
4301 cat conftest.$ac_ext >&5 4308 cat conftest.$ac_ext >&5
4316 4323
4317 fi 4324 fi
4318 4325
4319 4326
4320 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4327 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4321 echo "configure:4322: checking whether ${MAKE-make} sets \${MAKE}" >&5 4328 echo "configure:4329: checking whether ${MAKE-make} sets \${MAKE}" >&5
4322 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4329 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4323 4330
4324 cat > conftestmake <<\EOF 4331 cat > conftestmake <<\EOF
4325 all: 4332 all:
4326 @echo 'ac_maketemp="${MAKE}"' 4333 @echo 'ac_maketemp="${MAKE}"'
4341 SET_MAKE="MAKE=${MAKE-make}" 4348 SET_MAKE="MAKE=${MAKE-make}"
4342 fi 4349 fi
4343 4350
4344 4351
4345 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4352 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4346 echo "configure:4347: checking whether byte ordering is bigendian" >&5 4353 echo "configure:4354: checking whether byte ordering is bigendian" >&5
4347 4354
4348 ac_cv_c_bigendian=unknown 4355 ac_cv_c_bigendian=unknown
4349 # See if sys/param.h defines the BYTE_ORDER macro. 4356 # See if sys/param.h defines the BYTE_ORDER macro.
4350 cat > conftest.$ac_ext <<EOF 4357 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure" 4358 #line 4359 "configure"
4352 #include "confdefs.h" 4359 #include "confdefs.h"
4353 #include <sys/types.h> 4360 #include <sys/types.h>
4354 #include <sys/param.h> 4361 #include <sys/param.h>
4355 int main() { 4362 int main() {
4356 4363
4357 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4364 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4358 bogus endian macros 4365 bogus endian macros
4359 #endif 4366 #endif
4360 ; return 0; } 4367 ; return 0; }
4361 EOF 4368 EOF
4362 if { (eval echo configure:4363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4369 if { (eval echo configure:4370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4363 rm -rf conftest* 4370 rm -rf conftest*
4364 # It does; now see whether it defined to BIG_ENDIAN or not. 4371 # It does; now see whether it defined to BIG_ENDIAN or not.
4365 cat > conftest.$ac_ext <<EOF 4372 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure" 4373 #line 4374 "configure"
4367 #include "confdefs.h" 4374 #include "confdefs.h"
4368 #include <sys/types.h> 4375 #include <sys/types.h>
4369 #include <sys/param.h> 4376 #include <sys/param.h>
4370 int main() { 4377 int main() {
4371 4378
4372 #if BYTE_ORDER != BIG_ENDIAN 4379 #if BYTE_ORDER != BIG_ENDIAN
4373 not big endian 4380 not big endian
4374 #endif 4381 #endif
4375 ; return 0; } 4382 ; return 0; }
4376 EOF 4383 EOF
4377 if { (eval echo configure:4378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4384 if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4378 rm -rf conftest* 4385 rm -rf conftest*
4379 ac_cv_c_bigendian=yes 4386 ac_cv_c_bigendian=yes
4380 else 4387 else
4381 echo "configure: failed program was:" >&5 4388 echo "configure: failed program was:" >&5
4382 cat conftest.$ac_ext >&5 4389 cat conftest.$ac_ext >&5
4389 cat conftest.$ac_ext >&5 4396 cat conftest.$ac_ext >&5
4390 fi 4397 fi
4391 rm -f conftest* 4398 rm -f conftest*
4392 if test $ac_cv_c_bigendian = unknown; then 4399 if test $ac_cv_c_bigendian = unknown; then
4393 cat > conftest.$ac_ext <<EOF 4400 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure" 4401 #line 4402 "configure"
4395 #include "confdefs.h" 4402 #include "confdefs.h"
4396 main () { 4403 main () {
4397 /* Are we little or big endian? From Harbison&Steele. */ 4404 /* Are we little or big endian? From Harbison&Steele. */
4398 union 4405 union
4399 { 4406 {
4402 } u; 4409 } u;
4403 u.l = 1; 4410 u.l = 1;
4404 exit (u.c[sizeof (long) - 1] == 1); 4411 exit (u.c[sizeof (long) - 1] == 1);
4405 } 4412 }
4406 EOF 4413 EOF
4407 if { (eval echo configure:4408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4408 then 4415 then
4409 ac_cv_c_bigendian=no 4416 ac_cv_c_bigendian=no
4410 else 4417 else
4411 conftest_rc="$?" 4418 conftest_rc="$?"
4412 echo "configure: failed program was:" >&5 4419 echo "configure: failed program was:" >&5
4429 4436
4430 fi 4437 fi
4431 4438
4432 4439
4433 echo $ac_n "checking size of short""... $ac_c" 1>&6 4440 echo $ac_n "checking size of short""... $ac_c" 1>&6
4434 echo "configure:4435: checking size of short" >&5 4441 echo "configure:4442: checking size of short" >&5
4435 4442
4436 cat > conftest.$ac_ext <<EOF 4443 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure" 4444 #line 4445 "configure"
4438 #include "confdefs.h" 4445 #include "confdefs.h"
4439 #include <stdio.h> 4446 #include <stdio.h>
4440 main() 4447 main()
4441 { 4448 {
4442 FILE *f=fopen("conftestval", "w"); 4449 FILE *f=fopen("conftestval", "w");
4443 if (!f) exit(1); 4450 if (!f) exit(1);
4444 fprintf(f, "%d\n", sizeof(short)); 4451 fprintf(f, "%d\n", sizeof(short));
4445 exit(0); 4452 exit(0);
4446 } 4453 }
4447 EOF 4454 EOF
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4455 if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4449 then 4456 then
4450 ac_cv_sizeof_short=`cat conftestval` 4457 ac_cv_sizeof_short=`cat conftestval`
4451 else 4458 else
4452 conftest_rc="$?" 4459 conftest_rc="$?"
4453 echo "configure: failed program was:" >&5 4460 echo "configure: failed program was:" >&5
4471 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4478 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4472 echo "*** PANIC *** Please examine config.log for compilation errors." 4479 echo "*** PANIC *** Please examine config.log for compilation errors."
4473 exit 1 4480 exit 1
4474 fi 4481 fi
4475 echo $ac_n "checking size of int""... $ac_c" 1>&6 4482 echo $ac_n "checking size of int""... $ac_c" 1>&6
4476 echo "configure:4477: checking size of int" >&5 4483 echo "configure:4484: checking size of int" >&5
4477 4484
4478 cat > conftest.$ac_ext <<EOF 4485 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure" 4486 #line 4487 "configure"
4480 #include "confdefs.h" 4487 #include "confdefs.h"
4481 #include <stdio.h> 4488 #include <stdio.h>
4482 main() 4489 main()
4483 { 4490 {
4484 FILE *f=fopen("conftestval", "w"); 4491 FILE *f=fopen("conftestval", "w");
4485 if (!f) exit(1); 4492 if (!f) exit(1);
4486 fprintf(f, "%d\n", sizeof(int)); 4493 fprintf(f, "%d\n", sizeof(int));
4487 exit(0); 4494 exit(0);
4488 } 4495 }
4489 EOF 4496 EOF
4490 if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4491 then 4498 then
4492 ac_cv_sizeof_int=`cat conftestval` 4499 ac_cv_sizeof_int=`cat conftestval`
4493 else 4500 else
4494 conftest_rc="$?" 4501 conftest_rc="$?"
4495 echo "configure: failed program was:" >&5 4502 echo "configure: failed program was:" >&5
4507 EOF 4514 EOF
4508 } 4515 }
4509 4516
4510 4517
4511 echo $ac_n "checking size of long""... $ac_c" 1>&6 4518 echo $ac_n "checking size of long""... $ac_c" 1>&6
4512 echo "configure:4513: checking size of long" >&5 4519 echo "configure:4520: checking size of long" >&5
4513 4520
4514 cat > conftest.$ac_ext <<EOF 4521 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure" 4522 #line 4523 "configure"
4516 #include "confdefs.h" 4523 #include "confdefs.h"
4517 #include <stdio.h> 4524 #include <stdio.h>
4518 main() 4525 main()
4519 { 4526 {
4520 FILE *f=fopen("conftestval", "w"); 4527 FILE *f=fopen("conftestval", "w");
4521 if (!f) exit(1); 4528 if (!f) exit(1);
4522 fprintf(f, "%d\n", sizeof(long)); 4529 fprintf(f, "%d\n", sizeof(long));
4523 exit(0); 4530 exit(0);
4524 } 4531 }
4525 EOF 4532 EOF
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4527 then 4534 then
4528 ac_cv_sizeof_long=`cat conftestval` 4535 ac_cv_sizeof_long=`cat conftestval`
4529 else 4536 else
4530 conftest_rc="$?" 4537 conftest_rc="$?"
4531 echo "configure: failed program was:" >&5 4538 echo "configure: failed program was:" >&5
4543 EOF 4550 EOF
4544 } 4551 }
4545 4552
4546 4553
4547 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4554 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4548 echo "configure:4549: checking size of long long" >&5 4555 echo "configure:4556: checking size of long long" >&5
4549 4556
4550 cat > conftest.$ac_ext <<EOF 4557 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure" 4558 #line 4559 "configure"
4552 #include "confdefs.h" 4559 #include "confdefs.h"
4553 #include <stdio.h> 4560 #include <stdio.h>
4554 main() 4561 main()
4555 { 4562 {
4556 FILE *f=fopen("conftestval", "w"); 4563 FILE *f=fopen("conftestval", "w");
4557 if (!f) exit(1); 4564 if (!f) exit(1);
4558 fprintf(f, "%d\n", sizeof(long long)); 4565 fprintf(f, "%d\n", sizeof(long long));
4559 exit(0); 4566 exit(0);
4560 } 4567 }
4561 EOF 4568 EOF
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4569 if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4563 then 4570 then
4564 ac_cv_sizeof_long_long=`cat conftestval` 4571 ac_cv_sizeof_long_long=`cat conftestval`
4565 else 4572 else
4566 conftest_rc="$?" 4573 conftest_rc="$?"
4567 echo "configure: failed program was:" >&5 4574 echo "configure: failed program was:" >&5
4579 EOF 4586 EOF
4580 } 4587 }
4581 4588
4582 4589
4583 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4590 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4584 echo "configure:4585: checking size of void *" >&5 4591 echo "configure:4592: checking size of void *" >&5
4585 4592
4586 cat > conftest.$ac_ext <<EOF 4593 cat > conftest.$ac_ext <<EOF
4587 #line 4588 "configure" 4594 #line 4595 "configure"
4588 #include "confdefs.h" 4595 #include "confdefs.h"
4589 #include <stdio.h> 4596 #include <stdio.h>
4590 main() 4597 main()
4591 { 4598 {
4592 FILE *f=fopen("conftestval", "w"); 4599 FILE *f=fopen("conftestval", "w");
4593 if (!f) exit(1); 4600 if (!f) exit(1);
4594 fprintf(f, "%d\n", sizeof(void *)); 4601 fprintf(f, "%d\n", sizeof(void *));
4595 exit(0); 4602 exit(0);
4596 } 4603 }
4597 EOF 4604 EOF
4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4599 then 4606 then
4600 ac_cv_sizeof_void_p=`cat conftestval` 4607 ac_cv_sizeof_void_p=`cat conftestval`
4601 else 4608 else
4602 conftest_rc="$?" 4609 conftest_rc="$?"
4603 echo "configure: failed program was:" >&5 4610 echo "configure: failed program was:" >&5
4616 } 4623 }
4617 4624
4618 4625
4619 4626
4620 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4627 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4621 echo "configure:4622: checking for long file names" >&5 4628 echo "configure:4629: checking for long file names" >&5
4622 4629
4623 ac_cv_sys_long_file_names=yes 4630 ac_cv_sys_long_file_names=yes
4624 # Test for long file names in all the places we know might matter: 4631 # Test for long file names in all the places we know might matter:
4625 # . the current directory, where building will happen 4632 # . the current directory, where building will happen
4626 # $prefix/lib where we will be installing things 4633 # $prefix/lib where we will be installing things
4662 4669
4663 fi 4670 fi
4664 4671
4665 4672
4666 echo $ac_n "checking for sin""... $ac_c" 1>&6 4673 echo $ac_n "checking for sin""... $ac_c" 1>&6
4667 echo "configure:4668: checking for sin" >&5 4674 echo "configure:4675: checking for sin" >&5
4668 4675
4669 cat > conftest.$ac_ext <<EOF 4676 cat > conftest.$ac_ext <<EOF
4670 #line 4671 "configure" 4677 #line 4678 "configure"
4671 #include "confdefs.h" 4678 #include "confdefs.h"
4672 /* System header to define __stub macros and hopefully few prototypes, 4679 /* System header to define __stub macros and hopefully few prototypes,
4673 which can conflict with char sin(); below. */ 4680 which can conflict with char sin(); below. */
4674 #include <assert.h> 4681 #include <assert.h>
4675 /* Override any gcc2 internal prototype to avoid an error. */ 4682 /* Override any gcc2 internal prototype to avoid an error. */
4688 sin(); 4695 sin();
4689 #endif 4696 #endif
4690 4697
4691 ; return 0; } 4698 ; return 0; }
4692 EOF 4699 EOF
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4700 if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 rm -rf conftest* 4701 rm -rf conftest*
4695 eval "ac_cv_func_sin=yes" 4702 eval "ac_cv_func_sin=yes"
4696 else 4703 else
4697 echo "configure: failed program was:" >&5 4704 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5 4705 cat conftest.$ac_ext >&5
4706 : 4713 :
4707 else 4714 else
4708 echo "$ac_t""no" 1>&6 4715 echo "$ac_t""no" 1>&6
4709 4716
4710 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4717 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4711 echo "configure:4712: checking for sin in -lm" >&5 4718 echo "configure:4719: checking for sin in -lm" >&5
4712 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4719 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4713 4720
4714 xe_check_libs=" -lm " 4721 xe_check_libs=" -lm "
4715 cat > conftest.$ac_ext <<EOF 4722 cat > conftest.$ac_ext <<EOF
4716 #line 4717 "configure" 4723 #line 4724 "configure"
4717 #include "confdefs.h" 4724 #include "confdefs.h"
4718 /* Override any gcc2 internal prototype to avoid an error. */ 4725 /* Override any gcc2 internal prototype to avoid an error. */
4719 /* We use char because int might match the return type of a gcc2 4726 /* We use char because int might match the return type of a gcc2
4720 builtin and then its argument prototype would still apply. */ 4727 builtin and then its argument prototype would still apply. */
4721 char sin(); 4728 char sin();
4722 4729
4723 int main() { 4730 int main() {
4724 sin() 4731 sin()
4725 ; return 0; } 4732 ; return 0; }
4726 EOF 4733 EOF
4727 if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4734 if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4728 rm -rf conftest* 4735 rm -rf conftest*
4729 eval "ac_cv_lib_$ac_lib_var=yes" 4736 eval "ac_cv_lib_$ac_lib_var=yes"
4730 else 4737 else
4731 echo "configure: failed program was:" >&5 4738 echo "configure: failed program was:" >&5
4732 cat conftest.$ac_ext >&5 4739 cat conftest.$ac_ext >&5
4766 EOF 4773 EOF
4767 } 4774 }
4768 4775
4769 4776
4770 cat > conftest.$ac_ext <<EOF 4777 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure" 4778 #line 4779 "configure"
4772 #include "confdefs.h" 4779 #include "confdefs.h"
4773 #include <math.h> 4780 #include <math.h>
4774 int main() { 4781 int main() {
4775 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4782 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4776 ; return 0; } 4783 ; return 0; }
4777 EOF 4784 EOF
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4785 if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4779 rm -rf conftest* 4786 rm -rf conftest*
4780 { test "$extra_verbose" = "yes" && cat << \EOF 4787 { test "$extra_verbose" = "yes" && cat << \EOF
4781 Defining HAVE_INVERSE_HYPERBOLIC 4788 Defining HAVE_INVERSE_HYPERBOLIC
4782 EOF 4789 EOF
4783 cat >> confdefs.h <<\EOF 4790 cat >> confdefs.h <<\EOF
4790 cat conftest.$ac_ext >&5 4797 cat conftest.$ac_ext >&5
4791 fi 4798 fi
4792 rm -f conftest* 4799 rm -f conftest*
4793 4800
4794 echo "checking type of mail spool file locking" 1>&6 4801 echo "checking type of mail spool file locking" 1>&6
4795 echo "configure:4796: checking type of mail spool file locking" >&5 4802 echo "configure:4803: checking type of mail spool file locking" >&5
4796 for ac_func in lockf flock 4803 for ac_func in lockf flock
4797 do 4804 do
4798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4799 echo "configure:4800: checking for $ac_func" >&5 4806 echo "configure:4807: checking for $ac_func" >&5
4800 4807
4801 cat > conftest.$ac_ext <<EOF 4808 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure" 4809 #line 4810 "configure"
4803 #include "confdefs.h" 4810 #include "confdefs.h"
4804 /* System header to define __stub macros and hopefully few prototypes, 4811 /* System header to define __stub macros and hopefully few prototypes,
4805 which can conflict with char $ac_func(); below. */ 4812 which can conflict with char $ac_func(); below. */
4806 #include <assert.h> 4813 #include <assert.h>
4807 /* Override any gcc2 internal prototype to avoid an error. */ 4814 /* Override any gcc2 internal prototype to avoid an error. */
4820 $ac_func(); 4827 $ac_func();
4821 #endif 4828 #endif
4822 4829
4823 ; return 0; } 4830 ; return 0; }
4824 EOF 4831 EOF
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4832 if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4826 rm -rf conftest* 4833 rm -rf conftest*
4827 eval "ac_cv_func_$ac_func=yes" 4834 eval "ac_cv_func_$ac_func=yes"
4828 else 4835 else
4829 echo "configure: failed program was:" >&5 4836 echo "configure: failed program was:" >&5
4830 cat conftest.$ac_ext >&5 4837 cat conftest.$ac_ext >&5
4902 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 4909 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
4903 4910
4904 case "$opsys" in decosf*) 4911 case "$opsys" in decosf*)
4905 4912
4906 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4913 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4907 echo "configure:4908: checking for cma_open in -lpthreads" >&5 4914 echo "configure:4915: checking for cma_open in -lpthreads" >&5
4908 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4915 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4909 4916
4910 xe_check_libs=" -lpthreads " 4917 xe_check_libs=" -lpthreads "
4911 cat > conftest.$ac_ext <<EOF 4918 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure" 4919 #line 4920 "configure"
4913 #include "confdefs.h" 4920 #include "confdefs.h"
4914 /* Override any gcc2 internal prototype to avoid an error. */ 4921 /* Override any gcc2 internal prototype to avoid an error. */
4915 /* We use char because int might match the return type of a gcc2 4922 /* We use char because int might match the return type of a gcc2
4916 builtin and then its argument prototype would still apply. */ 4923 builtin and then its argument prototype would still apply. */
4917 char cma_open(); 4924 char cma_open();
4918 4925
4919 int main() { 4926 int main() {
4920 cma_open() 4927 cma_open()
4921 ; return 0; } 4928 ; return 0; }
4922 EOF 4929 EOF
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4930 if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4924 rm -rf conftest* 4931 rm -rf conftest*
4925 eval "ac_cv_lib_$ac_lib_var=yes" 4932 eval "ac_cv_lib_$ac_lib_var=yes"
4926 else 4933 else
4927 echo "configure: failed program was:" >&5 4934 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5 4935 cat conftest.$ac_ext >&5
4954 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4961 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4955 c_switch_site="$c_switch_site -threads" ;; 4962 c_switch_site="$c_switch_site -threads" ;;
4956 esac 4963 esac
4957 4964
4958 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4965 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4959 echo "configure:4960: checking whether the -xildoff compiler flag is required" >&5 4966 echo "configure:4967: checking whether the -xildoff compiler flag is required" >&5
4960 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4967 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4961 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4968 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4962 then echo "$ac_t""no" 1>&6; 4969 then echo "$ac_t""no" 1>&6;
4963 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 4970 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
4964 fi 4971 fi
4966 fi 4973 fi
4967 4974
4968 if test "$opsys" = "sol2"; then 4975 if test "$opsys" = "sol2"; then
4969 if test "$os_release" -ge 56; then 4976 if test "$os_release" -ge 56; then
4970 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4977 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4971 echo "configure:4972: checking for \"-z ignore\" linker flag" >&5 4978 echo "configure:4979: checking for \"-z ignore\" linker flag" >&5
4972 case "`ld -h 2>&1`" in 4979 case "`ld -h 2>&1`" in
4973 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4980 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4974 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4981 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4975 *) echo "$ac_t""no" 1>&6 ;; 4982 *) echo "$ac_t""no" 1>&6 ;;
4976 esac 4983 esac
4977 fi 4984 fi
4978 fi 4985 fi
4979 4986
4980 4987
4981 echo "checking "for specified window system"" 1>&6 4988 echo "checking "for specified window system"" 1>&6
4982 echo "configure:4983: checking "for specified window system"" >&5 4989 echo "configure:4990: checking "for specified window system"" >&5
4990
4991
4992 GNOME_CONFIG=no
4993 GTK_CONFIG=no
4994
4995 if test "$with_gnome" != "no"; then
4996 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
4997 echo "configure:4998: checking for GNOME configuration script" >&5
4998 for possible in gnome-config
4999 do
5000 possible_version=`${possible} --version 2> /dev/null`
5001 if test "x${possible_version}" != "x"; then
5002 GNOME_CONFIG="${possible}"
5003 with_gnome=yes
5004 with_gtk=yes
5005 break
5006 fi
5007 done
5008 echo "$ac_t""${GNOME_CONFIG}" 1>&6
5009 fi
5010
5011 if test "${GNOME_CONFIG}" != "no"; then
5012 GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui`
5013 GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui`
5014 { test "$extra_verbose" = "yes" && cat << \EOF
5015 Defining HAVE_GNOME
5016 EOF
5017 cat >> confdefs.h <<\EOF
5018 #define HAVE_GNOME 1
5019 EOF
5020 }
5021
5022 libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi
5023 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5024 fi
5025
5026 if test "$with_gtk" != "no";then
5027 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5028 echo "configure:5029: checking for GTK configuration script" >&5
5029 for possible in gtk12-config gtk14-config gtk-config
5030 do
5031 possible_version=`${possible} --version 2> /dev/null`
5032 if test "x${possible_version}" != "x"; then
5033 GTK_CONFIG="${possible}"
5034 fi
5035 case "${possible_version}" in
5036 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;;
5037 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;;
5038 1.2.*)
5039 with_gtk=yes
5040 break
5041 ;;
5042 *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;;
5043 esac
5044 done
5045 echo "$ac_t""${GTK_CONFIG}" 1>&6
5046 fi
5047
5048 if test "${GTK_CONFIG}" != "no"; then
5049 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5050 echo "configure:5051: checking gtk version" >&5
5051 GTK_VERSION=`${GTK_CONFIG} --version`
5052 echo "$ac_t""${GTK_VERSION}" 1>&6
5053
5054 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5055 echo "configure:5056: checking gtk libs" >&5
5056 GTK_LIBS=`${GTK_CONFIG} --libs`
5057 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5058 echo "$ac_t""${GTK_LIBS}" 1>&6
5059
5060 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5061 echo "configure:5062: checking gtk cflags" >&5
5062 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5063 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5064 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5065
5066
5067 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5068 echo "configure:5069: checking for main in -lgdk_imlib" >&5
5069 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5070
5071 xe_check_libs=" -lgdk_imlib "
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075
5076 int main() {
5077 main()
5078 ; return 0; }
5079 EOF
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 rm -rf conftest*
5082 eval "ac_cv_lib_$ac_lib_var=yes"
5083 else
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5086 rm -rf conftest*
5087 eval "ac_cv_lib_$ac_lib_var=no"
5088 fi
5089 rm -f conftest*
5090 xe_check_libs=""
5091
5092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5093 echo "$ac_t""yes" 1>&6
5094 libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi
5095 else
5096 echo "$ac_t""no" 1>&6
5097 fi
5098
5099
5100
5101 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5102 echo "configure:5103: checking for Imlib_init in -lImlib" >&5
5103 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5104
5105 xe_check_libs=" -lImlib "
5106 cat > conftest.$ac_ext <<EOF
5107 #line 5108 "configure"
5108 #include "confdefs.h"
5109 /* Override any gcc2 internal prototype to avoid an error. */
5110 /* We use char because int might match the return type of a gcc2
5111 builtin and then its argument prototype would still apply. */
5112 char Imlib_init();
5113
5114 int main() {
5115 Imlib_init()
5116 ; return 0; }
5117 EOF
5118 if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5119 rm -rf conftest*
5120 eval "ac_cv_lib_$ac_lib_var=yes"
5121 else
5122 echo "configure: failed program was:" >&5
5123 cat conftest.$ac_ext >&5
5124 rm -rf conftest*
5125 eval "ac_cv_lib_$ac_lib_var=no"
5126 fi
5127 rm -f conftest*
5128 xe_check_libs=""
5129
5130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5131 echo "$ac_t""yes" 1>&6
5132 libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi
5133 else
5134 echo "$ac_t""no" 1>&6
5135 fi
5136
5137
5138 for ac_func in gdk_imlib_init
5139 do
5140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5141 echo "configure:5142: checking for $ac_func" >&5
5142
5143 cat > conftest.$ac_ext <<EOF
5144 #line 5145 "configure"
5145 #include "confdefs.h"
5146 /* System header to define __stub macros and hopefully few prototypes,
5147 which can conflict with char $ac_func(); below. */
5148 #include <assert.h>
5149 /* Override any gcc2 internal prototype to avoid an error. */
5150 /* We use char because int might match the return type of a gcc2
5151 builtin and then its argument prototype would still apply. */
5152 char $ac_func();
5153
5154 int main() {
5155
5156 /* The GNU C library defines this for functions which it implements
5157 to always fail with ENOSYS. Some functions are actually named
5158 something starting with __ and the normal name is an alias. */
5159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5160 choke me
5161 #else
5162 $ac_func();
5163 #endif
5164
5165 ; return 0; }
5166 EOF
5167 if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5168 rm -rf conftest*
5169 eval "ac_cv_func_$ac_func=yes"
5170 else
5171 echo "configure: failed program was:" >&5
5172 cat conftest.$ac_ext >&5
5173 rm -rf conftest*
5174 eval "ac_cv_func_$ac_func=no"
5175 fi
5176 rm -f conftest*
5177
5178 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5179 echo "$ac_t""yes" 1>&6
5180 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5181 { test "$extra_verbose" = "yes" && cat << EOF
5182 Defining $ac_tr_func
5183 EOF
5184 cat >> confdefs.h <<EOF
5185 #define $ac_tr_func 1
5186 EOF
5187 }
5188
5189 else
5190 echo "$ac_t""no" 1>&6
5191 fi
5192 done
5193
5194
5195 { test "$extra_verbose" = "yes" && cat << \EOF
5196 Defining HAVE_XPM
5197 EOF
5198 cat >> confdefs.h <<\EOF
5199 #define HAVE_XPM 1
5200 EOF
5201 }
5202
5203 { test "$extra_verbose" = "yes" && cat << \EOF
5204 Defining HAVE_GTK
5205 EOF
5206 cat >> confdefs.h <<\EOF
5207 #define HAVE_GTK 1
5208 EOF
5209 }
5210
5211
5212
5213 window_system=gtk
5214 with_gtk=yes
5215 with_x11=no
5216
5217 test "${with_scrollbars}" != "no" && with_scrollbars=gtk
5218 test "${with_toolbars}" != no && with_toolbars=gtk
5219 test "${with_menubars}" != "no" && with_menubars=gtk
5220 test "${with_dialogs}" != "no" && with_dialogs=gtk
5221 test "${with_widgets}" != "no" && with_widgets=gtk
5222
5223 extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then
5224 echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\""
5225 fi
5226 extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then
5227 echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\""
5228 fi
5229 extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then
5230 echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\""
5231 fi
5232 extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then
5233 echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\""
5234 fi
5235
5236 OLD_CFLAGS="${CFLAGS}"
5237 OLD_LDFLAGS="${LDFLAGS}"
5238 CFLAGS="${GTK_CFLAGS} ${CFLAGS}"
5239 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5240 for ac_hdr in glade/glade.h glade.h
5241 do
5242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5244 echo "configure:5245: checking for $ac_hdr" >&5
5245
5246 cat > conftest.$ac_ext <<EOF
5247 #line 5248 "configure"
5248 #include "confdefs.h"
5249 #include <$ac_hdr>
5250 EOF
5251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5252 { (eval echo configure:5253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5254 if test -z "$ac_err"; then
5255 rm -rf conftest*
5256 eval "ac_cv_header_$ac_safe=yes"
5257 else
5258 echo "$ac_err" >&5
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5261 rm -rf conftest*
5262 eval "ac_cv_header_$ac_safe=no"
5263 fi
5264 rm -f conftest*
5265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5268 { test "$extra_verbose" = "yes" && cat << EOF
5269 Defining $ac_tr_hdr
5270 EOF
5271 cat >> confdefs.h <<EOF
5272 #define $ac_tr_hdr 1
5273 EOF
5274 }
5275
5276 else
5277 echo "$ac_t""no" 1>&6
5278 fi
5279 done
5280
5281
5282 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5283 echo "configure:5284: checking for main in -lxml" >&5
5284 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5285
5286 xe_check_libs=" -lxml "
5287 cat > conftest.$ac_ext <<EOF
5288 #line 5289 "configure"
5289 #include "confdefs.h"
5290
5291 int main() {
5292 main()
5293 ; return 0; }
5294 EOF
5295 if { (eval echo configure:5296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 rm -rf conftest*
5297 eval "ac_cv_lib_$ac_lib_var=yes"
5298 else
5299 echo "configure: failed program was:" >&5
5300 cat conftest.$ac_ext >&5
5301 rm -rf conftest*
5302 eval "ac_cv_lib_$ac_lib_var=no"
5303 fi
5304 rm -f conftest*
5305 xe_check_libs=""
5306
5307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5308 echo "$ac_t""yes" 1>&6
5309 libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi
5310 else
5311 echo "$ac_t""no" 1>&6
5312 fi
5313
5314
5315
5316 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5317 echo "configure:5318: checking for main in -lglade" >&5
5318 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5319
5320 xe_check_libs=" -lglade "
5321 cat > conftest.$ac_ext <<EOF
5322 #line 5323 "configure"
5323 #include "confdefs.h"
5324
5325 int main() {
5326 main()
5327 ; return 0; }
5328 EOF
5329 if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5330 rm -rf conftest*
5331 eval "ac_cv_lib_$ac_lib_var=yes"
5332 else
5333 echo "configure: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5335 rm -rf conftest*
5336 eval "ac_cv_lib_$ac_lib_var=no"
5337 fi
5338 rm -f conftest*
5339 xe_check_libs=""
5340
5341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5342 echo "$ac_t""yes" 1>&6
5343 libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi
5344 else
5345 echo "$ac_t""no" 1>&6
5346 fi
5347
5348
5349
5350 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5351 echo "configure:5352: checking for main in -lglade-gnome" >&5
5352 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5353
5354 xe_check_libs=" -lglade-gnome "
5355 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure"
5357 #include "confdefs.h"
5358
5359 int main() {
5360 main()
5361 ; return 0; }
5362 EOF
5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5364 rm -rf conftest*
5365 eval "ac_cv_lib_$ac_lib_var=yes"
5366 else
5367 echo "configure: failed program was:" >&5
5368 cat conftest.$ac_ext >&5
5369 rm -rf conftest*
5370 eval "ac_cv_lib_$ac_lib_var=no"
5371 fi
5372 rm -f conftest*
5373 xe_check_libs=""
5374
5375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5376 echo "$ac_t""yes" 1>&6
5377 libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi
5378 else
5379 echo "$ac_t""no" 1>&6
5380 fi
5381
5382
5383 cat > conftest.$ac_ext <<EOF
5384 #line 5385 "configure"
5385 #include "confdefs.h"
5386 #include <glade/glade-xml.h>
5387 EOF
5388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5389 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5390 rm -rf conftest*
5391 echo "$ac_t""yes" 1>&6
5392 { test "$extra_verbose" = "yes" && cat << \EOF
5393 Defining LIBGLADE_XML_TXTDOMAIN = 1
5394 EOF
5395 cat >> confdefs.h <<\EOF
5396 #define LIBGLADE_XML_TXTDOMAIN 1
5397 EOF
5398 }
5399
5400 else
5401 rm -rf conftest*
5402 echo "$ac_t""no" 1>&6
5403 fi
5404 rm -f conftest*
5405
5406 CFLAGS="${OLD_CFLAGS}"
5407 LDFLAGS="${OLD_LDFLAGS}"
5408 fi
5409
4983 5410
4984 if test "$with_x11" != "no"; then 5411 if test "$with_x11" != "no"; then
4985 test "$x_includes $x_libraries" != "NONE NONE" && \ 5412 test "$x_includes $x_libraries" != "NONE NONE" && \
4986 window_system=x11 with_x11=yes 5413 window_system=x11 with_x11=yes
4987 5414
5010 # If we find X, set shell vars x_includes and x_libraries to the 5437 # If we find X, set shell vars x_includes and x_libraries to the
5011 # paths, otherwise set no_x=yes. 5438 # paths, otherwise set no_x=yes.
5012 # Uses ac_ vars as temps to allow command line to override cache and checks. 5439 # Uses ac_ vars as temps to allow command line to override cache and checks.
5013 # --without-x overrides everything else, but does not touch the cache. 5440 # --without-x overrides everything else, but does not touch the cache.
5014 echo $ac_n "checking for X""... $ac_c" 1>&6 5441 echo $ac_n "checking for X""... $ac_c" 1>&6
5015 echo "configure:5016: checking for X" >&5 5442 echo "configure:5443: checking for X" >&5
5016 5443
5017 # Check whether --with-x or --without-x was given. 5444 # Check whether --with-x or --without-x was given.
5018 if test "${with_x+set}" = set; then 5445 if test "${with_x+set}" = set; then
5019 withval="$with_x" 5446 withval="$with_x"
5020 : 5447 :
5070 # Guess where to find include files, by looking for this one X11 .h file. 5497 # Guess where to find include files, by looking for this one X11 .h file.
5071 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5498 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5072 5499
5073 # First, try using that file with no special directory specified. 5500 # First, try using that file with no special directory specified.
5074 cat > conftest.$ac_ext <<EOF 5501 cat > conftest.$ac_ext <<EOF
5075 #line 5076 "configure" 5502 #line 5503 "configure"
5076 #include "confdefs.h" 5503 #include "confdefs.h"
5077 #include <$x_direct_test_include> 5504 #include <$x_direct_test_include>
5078 EOF 5505 EOF
5079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5080 { (eval echo configure:5081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5507 { (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5082 if test -z "$ac_err"; then 5509 if test -z "$ac_err"; then
5083 rm -rf conftest* 5510 rm -rf conftest*
5084 # We can compile using X headers with no special include directory. 5511 # We can compile using X headers with no special include directory.
5085 ac_x_includes= 5512 ac_x_includes=
5144 # See if we find them without any special options. 5571 # See if we find them without any special options.
5145 # Don't add to $LIBS permanently. 5572 # Don't add to $LIBS permanently.
5146 ac_save_LIBS="$LIBS" 5573 ac_save_LIBS="$LIBS"
5147 LIBS="-l$x_direct_test_library $LIBS" 5574 LIBS="-l$x_direct_test_library $LIBS"
5148 cat > conftest.$ac_ext <<EOF 5575 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure" 5576 #line 5577 "configure"
5150 #include "confdefs.h" 5577 #include "confdefs.h"
5151 5578
5152 int main() { 5579 int main() {
5153 ${x_direct_test_function}() 5580 ${x_direct_test_function}()
5154 ; return 0; } 5581 ; return 0; }
5155 EOF 5582 EOF
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5583 if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5157 rm -rf conftest* 5584 rm -rf conftest*
5158 LIBS="$ac_save_LIBS" 5585 LIBS="$ac_save_LIBS"
5159 # We can link X programs with no special library path. 5586 # We can link X programs with no special library path.
5160 ac_x_libraries= 5587 ac_x_libraries=
5161 else 5588 else
5260 # For Solaris; some versions of Sun CC require a space after -R and 5687 # For Solaris; some versions of Sun CC require a space after -R and
5261 # others require no space. Words are not sufficient . . . . 5688 # others require no space. Words are not sufficient . . . .
5262 case "`(uname -sr) 2>/dev/null`" in 5689 case "`(uname -sr) 2>/dev/null`" in
5263 "SunOS 5"*) 5690 "SunOS 5"*)
5264 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5691 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5265 echo "configure:5266: checking whether -R must be followed by a space" >&5 5692 echo "configure:5693: checking whether -R must be followed by a space" >&5
5266 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5267 cat > conftest.$ac_ext <<EOF 5694 cat > conftest.$ac_ext <<EOF
5268 #line 5269 "configure" 5695 #line 5696 "configure"
5269 #include "confdefs.h" 5696 #include "confdefs.h"
5270 5697
5271 int main() { 5698 int main() {
5272 5699
5273 ; return 0; } 5700 ; return 0; }
5274 EOF 5701 EOF
5275 if { (eval echo configure:5276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5702 if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5276 rm -rf conftest* 5703 rm -rf conftest*
5277 ac_R_nospace=yes 5704 ac_R_nospace=yes
5278 else 5705 else
5279 echo "configure: failed program was:" >&5 5706 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5 5707 cat conftest.$ac_ext >&5
5286 echo "$ac_t""no" 1>&6 5713 echo "$ac_t""no" 1>&6
5287 X_LIBS="$X_LIBS -R$x_libraries" 5714 X_LIBS="$X_LIBS -R$x_libraries"
5288 else 5715 else
5289 LIBS="$ac_xsave_LIBS -R $x_libraries" 5716 LIBS="$ac_xsave_LIBS -R $x_libraries"
5290 cat > conftest.$ac_ext <<EOF 5717 cat > conftest.$ac_ext <<EOF
5291 #line 5292 "configure" 5718 #line 5719 "configure"
5292 #include "confdefs.h" 5719 #include "confdefs.h"
5293 5720
5294 int main() { 5721 int main() {
5295 5722
5296 ; return 0; } 5723 ; return 0; }
5297 EOF 5724 EOF
5298 if { (eval echo configure:5299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5725 if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5299 rm -rf conftest* 5726 rm -rf conftest*
5300 ac_R_space=yes 5727 ac_R_space=yes
5301 else 5728 else
5302 echo "configure: failed program was:" >&5 5729 echo "configure: failed program was:" >&5
5303 cat conftest.$ac_ext >&5 5730 cat conftest.$ac_ext >&5
5329 if test "$with_dnet" = "no" ; then 5756 if test "$with_dnet" = "no" ; then
5330 ac_cv_lib_dnet_dnet_ntoa=no 5757 ac_cv_lib_dnet_dnet_ntoa=no
5331 else 5758 else
5332 5759
5333 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5760 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
5334 echo "configure:5335: checking for dnet_ntoa in -ldnet" >&5 5761 echo "configure:5762: checking for dnet_ntoa in -ldnet" >&5
5335 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5762 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5336 5763
5337 xe_check_libs=" -ldnet " 5764 xe_check_libs=" -ldnet "
5338 cat > conftest.$ac_ext <<EOF 5765 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure" 5766 #line 5767 "configure"
5340 #include "confdefs.h" 5767 #include "confdefs.h"
5341 /* Override any gcc2 internal prototype to avoid an error. */ 5768 /* Override any gcc2 internal prototype to avoid an error. */
5342 /* We use char because int might match the return type of a gcc2 5769 /* We use char because int might match the return type of a gcc2
5343 builtin and then its argument prototype would still apply. */ 5770 builtin and then its argument prototype would still apply. */
5344 char dnet_ntoa(); 5771 char dnet_ntoa();
5345 5772
5346 int main() { 5773 int main() {
5347 dnet_ntoa() 5774 dnet_ntoa()
5348 ; return 0; } 5775 ; return 0; }
5349 EOF 5776 EOF
5350 if { (eval echo configure:5351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5777 if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5351 rm -rf conftest* 5778 rm -rf conftest*
5352 eval "ac_cv_lib_$ac_lib_var=yes" 5779 eval "ac_cv_lib_$ac_lib_var=yes"
5353 else 5780 else
5354 echo "configure: failed program was:" >&5 5781 echo "configure: failed program was:" >&5
5355 cat conftest.$ac_ext >&5 5782 cat conftest.$ac_ext >&5
5369 fi 5796 fi
5370 5797
5371 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5798 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5372 5799
5373 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 5800 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
5374 echo "configure:5375: checking for dnet_ntoa in -ldnet_stub" >&5 5801 echo "configure:5802: checking for dnet_ntoa in -ldnet_stub" >&5
5375 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5802 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
5376 5803
5377 xe_check_libs=" -ldnet_stub " 5804 xe_check_libs=" -ldnet_stub "
5378 cat > conftest.$ac_ext <<EOF 5805 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure" 5806 #line 5807 "configure"
5380 #include "confdefs.h" 5807 #include "confdefs.h"
5381 /* Override any gcc2 internal prototype to avoid an error. */ 5808 /* Override any gcc2 internal prototype to avoid an error. */
5382 /* We use char because int might match the return type of a gcc2 5809 /* We use char because int might match the return type of a gcc2
5383 builtin and then its argument prototype would still apply. */ 5810 builtin and then its argument prototype would still apply. */
5384 char dnet_ntoa(); 5811 char dnet_ntoa();
5385 5812
5386 int main() { 5813 int main() {
5387 dnet_ntoa() 5814 dnet_ntoa()
5388 ; return 0; } 5815 ; return 0; }
5389 EOF 5816 EOF
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5817 if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 rm -rf conftest* 5818 rm -rf conftest*
5392 eval "ac_cv_lib_$ac_lib_var=yes" 5819 eval "ac_cv_lib_$ac_lib_var=yes"
5393 else 5820 else
5394 echo "configure: failed program was:" >&5 5821 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5 5822 cat conftest.$ac_ext >&5
5414 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5841 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5415 # needs -lnsl. 5842 # needs -lnsl.
5416 # The nsl library prevents programs from opening the X display 5843 # The nsl library prevents programs from opening the X display
5417 # on Irix 5.2, according to dickey@clark.net. 5844 # on Irix 5.2, according to dickey@clark.net.
5418 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5845 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5419 echo "configure:5420: checking for gethostbyname" >&5 5846 echo "configure:5847: checking for gethostbyname" >&5
5420 5847
5421 cat > conftest.$ac_ext <<EOF 5848 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure" 5849 #line 5850 "configure"
5423 #include "confdefs.h" 5850 #include "confdefs.h"
5424 /* System header to define __stub macros and hopefully few prototypes, 5851 /* System header to define __stub macros and hopefully few prototypes,
5425 which can conflict with char gethostbyname(); below. */ 5852 which can conflict with char gethostbyname(); below. */
5426 #include <assert.h> 5853 #include <assert.h>
5427 /* Override any gcc2 internal prototype to avoid an error. */ 5854 /* Override any gcc2 internal prototype to avoid an error. */
5440 gethostbyname(); 5867 gethostbyname();
5441 #endif 5868 #endif
5442 5869
5443 ; return 0; } 5870 ; return 0; }
5444 EOF 5871 EOF
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5872 if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5446 rm -rf conftest* 5873 rm -rf conftest*
5447 eval "ac_cv_func_gethostbyname=yes" 5874 eval "ac_cv_func_gethostbyname=yes"
5448 else 5875 else
5449 echo "configure: failed program was:" >&5 5876 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5 5877 cat conftest.$ac_ext >&5
5461 fi 5888 fi
5462 5889
5463 if test $ac_cv_func_gethostbyname = no; then 5890 if test $ac_cv_func_gethostbyname = no; then
5464 5891
5465 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5892 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5466 echo "configure:5467: checking for gethostbyname in -lnsl" >&5 5893 echo "configure:5894: checking for gethostbyname in -lnsl" >&5
5467 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5894 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5468 5895
5469 xe_check_libs=" -lnsl " 5896 xe_check_libs=" -lnsl "
5470 cat > conftest.$ac_ext <<EOF 5897 cat > conftest.$ac_ext <<EOF
5471 #line 5472 "configure" 5898 #line 5899 "configure"
5472 #include "confdefs.h" 5899 #include "confdefs.h"
5473 /* Override any gcc2 internal prototype to avoid an error. */ 5900 /* Override any gcc2 internal prototype to avoid an error. */
5474 /* We use char because int might match the return type of a gcc2 5901 /* We use char because int might match the return type of a gcc2
5475 builtin and then its argument prototype would still apply. */ 5902 builtin and then its argument prototype would still apply. */
5476 char gethostbyname(); 5903 char gethostbyname();
5477 5904
5478 int main() { 5905 int main() {
5479 gethostbyname() 5906 gethostbyname()
5480 ; return 0; } 5907 ; return 0; }
5481 EOF 5908 EOF
5482 if { (eval echo configure:5483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5909 if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5483 rm -rf conftest* 5910 rm -rf conftest*
5484 eval "ac_cv_lib_$ac_lib_var=yes" 5911 eval "ac_cv_lib_$ac_lib_var=yes"
5485 else 5912 else
5486 echo "configure: failed program was:" >&5 5913 echo "configure: failed program was:" >&5
5487 cat conftest.$ac_ext >&5 5914 cat conftest.$ac_ext >&5
5507 # on later versions), says simon@lia.di.epfl.ch: it contains 5934 # on later versions), says simon@lia.di.epfl.ch: it contains
5508 # gethostby* variants that don't use the nameserver (or something). 5935 # gethostby* variants that don't use the nameserver (or something).
5509 # -lsocket must be given before -lnsl if both are needed. 5936 # -lsocket must be given before -lnsl if both are needed.
5510 # We assume that if connect needs -lnsl, so does gethostbyname. 5937 # We assume that if connect needs -lnsl, so does gethostbyname.
5511 echo $ac_n "checking for connect""... $ac_c" 1>&6 5938 echo $ac_n "checking for connect""... $ac_c" 1>&6
5512 echo "configure:5513: checking for connect" >&5 5939 echo "configure:5940: checking for connect" >&5
5513 5940
5514 cat > conftest.$ac_ext <<EOF 5941 cat > conftest.$ac_ext <<EOF
5515 #line 5516 "configure" 5942 #line 5943 "configure"
5516 #include "confdefs.h" 5943 #include "confdefs.h"
5517 /* System header to define __stub macros and hopefully few prototypes, 5944 /* System header to define __stub macros and hopefully few prototypes,
5518 which can conflict with char connect(); below. */ 5945 which can conflict with char connect(); below. */
5519 #include <assert.h> 5946 #include <assert.h>
5520 /* Override any gcc2 internal prototype to avoid an error. */ 5947 /* Override any gcc2 internal prototype to avoid an error. */
5533 connect(); 5960 connect();
5534 #endif 5961 #endif
5535 5962
5536 ; return 0; } 5963 ; return 0; }
5537 EOF 5964 EOF
5538 if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5965 if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5539 rm -rf conftest* 5966 rm -rf conftest*
5540 eval "ac_cv_func_connect=yes" 5967 eval "ac_cv_func_connect=yes"
5541 else 5968 else
5542 echo "configure: failed program was:" >&5 5969 echo "configure: failed program was:" >&5
5543 cat conftest.$ac_ext >&5 5970 cat conftest.$ac_ext >&5
5556 if test $ac_cv_func_connect = no; then 5983 if test $ac_cv_func_connect = no; then
5557 5984
5558 xe_msg_checking="for connect in -lsocket" 5985 xe_msg_checking="for connect in -lsocket"
5559 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5986 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5560 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5987 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5561 echo "configure:5562: checking "$xe_msg_checking"" >&5 5988 echo "configure:5989: checking "$xe_msg_checking"" >&5
5562 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5989 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5563 5990
5564 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5991 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5565 cat > conftest.$ac_ext <<EOF 5992 cat > conftest.$ac_ext <<EOF
5566 #line 5567 "configure" 5993 #line 5994 "configure"
5567 #include "confdefs.h" 5994 #include "confdefs.h"
5568 /* Override any gcc2 internal prototype to avoid an error. */ 5995 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2 5996 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */ 5997 builtin and then its argument prototype would still apply. */
5571 char connect(); 5998 char connect();
5572 5999
5573 int main() { 6000 int main() {
5574 connect() 6001 connect()
5575 ; return 0; } 6002 ; return 0; }
5576 EOF 6003 EOF
5577 if { (eval echo configure:5578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6004 if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5578 rm -rf conftest* 6005 rm -rf conftest*
5579 eval "ac_cv_lib_$ac_lib_var=yes" 6006 eval "ac_cv_lib_$ac_lib_var=yes"
5580 else 6007 else
5581 echo "configure: failed program was:" >&5 6008 echo "configure: failed program was:" >&5
5582 cat conftest.$ac_ext >&5 6009 cat conftest.$ac_ext >&5
5596 6023
5597 fi 6024 fi
5598 6025
5599 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6026 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5600 echo $ac_n "checking for remove""... $ac_c" 1>&6 6027 echo $ac_n "checking for remove""... $ac_c" 1>&6
5601 echo "configure:5602: checking for remove" >&5 6028 echo "configure:6029: checking for remove" >&5
5602 6029
5603 cat > conftest.$ac_ext <<EOF 6030 cat > conftest.$ac_ext <<EOF
5604 #line 5605 "configure" 6031 #line 6032 "configure"
5605 #include "confdefs.h" 6032 #include "confdefs.h"
5606 /* System header to define __stub macros and hopefully few prototypes, 6033 /* System header to define __stub macros and hopefully few prototypes,
5607 which can conflict with char remove(); below. */ 6034 which can conflict with char remove(); below. */
5608 #include <assert.h> 6035 #include <assert.h>
5609 /* Override any gcc2 internal prototype to avoid an error. */ 6036 /* Override any gcc2 internal prototype to avoid an error. */
5622 remove(); 6049 remove();
5623 #endif 6050 #endif
5624 6051
5625 ; return 0; } 6052 ; return 0; }
5626 EOF 6053 EOF
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 rm -rf conftest* 6055 rm -rf conftest*
5629 eval "ac_cv_func_remove=yes" 6056 eval "ac_cv_func_remove=yes"
5630 else 6057 else
5631 echo "configure: failed program was:" >&5 6058 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5 6059 cat conftest.$ac_ext >&5
5643 fi 6070 fi
5644 6071
5645 if test $ac_cv_func_remove = no; then 6072 if test $ac_cv_func_remove = no; then
5646 6073
5647 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6074 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5648 echo "configure:5649: checking for remove in -lposix" >&5 6075 echo "configure:6076: checking for remove in -lposix" >&5
5649 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6076 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5650 6077
5651 xe_check_libs=" -lposix " 6078 xe_check_libs=" -lposix "
5652 cat > conftest.$ac_ext <<EOF 6079 cat > conftest.$ac_ext <<EOF
5653 #line 5654 "configure" 6080 #line 6081 "configure"
5654 #include "confdefs.h" 6081 #include "confdefs.h"
5655 /* Override any gcc2 internal prototype to avoid an error. */ 6082 /* Override any gcc2 internal prototype to avoid an error. */
5656 /* We use char because int might match the return type of a gcc2 6083 /* We use char because int might match the return type of a gcc2
5657 builtin and then its argument prototype would still apply. */ 6084 builtin and then its argument prototype would still apply. */
5658 char remove(); 6085 char remove();
5659 6086
5660 int main() { 6087 int main() {
5661 remove() 6088 remove()
5662 ; return 0; } 6089 ; return 0; }
5663 EOF 6090 EOF
5664 if { (eval echo configure:5665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6091 if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5665 rm -rf conftest* 6092 rm -rf conftest*
5666 eval "ac_cv_lib_$ac_lib_var=yes" 6093 eval "ac_cv_lib_$ac_lib_var=yes"
5667 else 6094 else
5668 echo "configure: failed program was:" >&5 6095 echo "configure: failed program was:" >&5
5669 cat conftest.$ac_ext >&5 6096 cat conftest.$ac_ext >&5
5683 6110
5684 fi 6111 fi
5685 6112
5686 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5687 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6114 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5688 echo "configure:5689: checking for shmat" >&5 6115 echo "configure:6116: checking for shmat" >&5
5689 6116
5690 cat > conftest.$ac_ext <<EOF 6117 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure" 6118 #line 6119 "configure"
5692 #include "confdefs.h" 6119 #include "confdefs.h"
5693 /* System header to define __stub macros and hopefully few prototypes, 6120 /* System header to define __stub macros and hopefully few prototypes,
5694 which can conflict with char shmat(); below. */ 6121 which can conflict with char shmat(); below. */
5695 #include <assert.h> 6122 #include <assert.h>
5696 /* Override any gcc2 internal prototype to avoid an error. */ 6123 /* Override any gcc2 internal prototype to avoid an error. */
5709 shmat(); 6136 shmat();
5710 #endif 6137 #endif
5711 6138
5712 ; return 0; } 6139 ; return 0; }
5713 EOF 6140 EOF
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6141 if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5715 rm -rf conftest* 6142 rm -rf conftest*
5716 eval "ac_cv_func_shmat=yes" 6143 eval "ac_cv_func_shmat=yes"
5717 else 6144 else
5718 echo "configure: failed program was:" >&5 6145 echo "configure: failed program was:" >&5
5719 cat conftest.$ac_ext >&5 6146 cat conftest.$ac_ext >&5
5730 fi 6157 fi
5731 6158
5732 if test $ac_cv_func_shmat = no; then 6159 if test $ac_cv_func_shmat = no; then
5733 6160
5734 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6161 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5735 echo "configure:5736: checking for shmat in -lipc" >&5 6162 echo "configure:6163: checking for shmat in -lipc" >&5
5736 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6163 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5737 6164
5738 xe_check_libs=" -lipc " 6165 xe_check_libs=" -lipc "
5739 cat > conftest.$ac_ext <<EOF 6166 cat > conftest.$ac_ext <<EOF
5740 #line 5741 "configure" 6167 #line 6168 "configure"
5741 #include "confdefs.h" 6168 #include "confdefs.h"
5742 /* Override any gcc2 internal prototype to avoid an error. */ 6169 /* Override any gcc2 internal prototype to avoid an error. */
5743 /* We use char because int might match the return type of a gcc2 6170 /* We use char because int might match the return type of a gcc2
5744 builtin and then its argument prototype would still apply. */ 6171 builtin and then its argument prototype would still apply. */
5745 char shmat(); 6172 char shmat();
5746 6173
5747 int main() { 6174 int main() {
5748 shmat() 6175 shmat()
5749 ; return 0; } 6176 ; return 0; }
5750 EOF 6177 EOF
5751 if { (eval echo configure:5752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6178 if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5752 rm -rf conftest* 6179 rm -rf conftest*
5753 eval "ac_cv_lib_$ac_lib_var=yes" 6180 eval "ac_cv_lib_$ac_lib_var=yes"
5754 else 6181 else
5755 echo "configure: failed program was:" >&5 6182 echo "configure: failed program was:" >&5
5756 cat conftest.$ac_ext >&5 6183 cat conftest.$ac_ext >&5
5782 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6209 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5783 6210
5784 xe_msg_checking="for IceConnectionNumber in -lICE" 6211 xe_msg_checking="for IceConnectionNumber in -lICE"
5785 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6212 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5786 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6213 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5787 echo "configure:5788: checking "$xe_msg_checking"" >&5 6214 echo "configure:6215: checking "$xe_msg_checking"" >&5
5788 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6215 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5789 6216
5790 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6217 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5791 cat > conftest.$ac_ext <<EOF 6218 cat > conftest.$ac_ext <<EOF
5792 #line 5793 "configure" 6219 #line 6220 "configure"
5793 #include "confdefs.h" 6220 #include "confdefs.h"
5794 /* Override any gcc2 internal prototype to avoid an error. */ 6221 /* Override any gcc2 internal prototype to avoid an error. */
5795 /* We use char because int might match the return type of a gcc2 6222 /* We use char because int might match the return type of a gcc2
5796 builtin and then its argument prototype would still apply. */ 6223 builtin and then its argument prototype would still apply. */
5797 char IceConnectionNumber(); 6224 char IceConnectionNumber();
5798 6225
5799 int main() { 6226 int main() {
5800 IceConnectionNumber() 6227 IceConnectionNumber()
5801 ; return 0; } 6228 ; return 0; }
5802 EOF 6229 EOF
5803 if { (eval echo configure:5804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5804 rm -rf conftest* 6231 rm -rf conftest*
5805 eval "ac_cv_lib_$ac_lib_var=yes" 6232 eval "ac_cv_lib_$ac_lib_var=yes"
5806 else 6233 else
5807 echo "configure: failed program was:" >&5 6234 echo "configure: failed program was:" >&5
5808 cat conftest.$ac_ext >&5 6235 cat conftest.$ac_ext >&5
5828 then with_x11=no window_system=none HAVE_X_WINDOWS=no 6255 then with_x11=no window_system=none HAVE_X_WINDOWS=no
5829 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes 6256 else with_x11=yes window_system=x11 HAVE_X_WINDOWS=yes
5830 fi 6257 fi
5831 fi 6258 fi
5832 6259
5833 case "$with_x11" in
5834 yes ) window_system=x11 HAVE_X_WINDOWS=yes ;;
5835 no ) window_system=none HAVE_X_WINDOWS=no ;;
5836 esac
5837 6260
5838 if test "$with_x11" = "yes"; then 6261 if test "$with_x11" = "yes"; then
5839 { test "$extra_verbose" = "yes" && cat << \EOF 6262 { test "$extra_verbose" = "yes" && cat << \EOF
5840 Defining HAVE_X_WINDOWS 6263 Defining HAVE_X_WINDOWS
5841 EOF 6264 EOF
5969 EOF 6392 EOF
5970 } 6393 }
5971 6394
5972 6395
5973 echo "checking for X defines extracted by xmkmf" 1>&6 6396 echo "checking for X defines extracted by xmkmf" 1>&6
5974 echo "configure:5975: checking for X defines extracted by xmkmf" >&5 6397 echo "configure:6398: checking for X defines extracted by xmkmf" >&5
5975 rm -fr conftestdir 6398 rm -fr conftestdir
5976 if mkdir conftestdir; then 6399 if mkdir conftestdir; then
5977 cd conftestdir 6400 cd conftestdir
5978 cat > Imakefile <<'EOF' 6401 cat > Imakefile <<'EOF'
5979 xetest: 6402 xetest:
6016 done 6439 done
6017 fi 6440 fi
6018 6441
6019 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6442 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6020 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6443 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6021 echo "configure:6022: checking for X11/Intrinsic.h" >&5 6444 echo "configure:6445: checking for X11/Intrinsic.h" >&5
6022 6445
6023 cat > conftest.$ac_ext <<EOF 6446 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure" 6447 #line 6448 "configure"
6025 #include "confdefs.h" 6448 #include "confdefs.h"
6026 #include <X11/Intrinsic.h> 6449 #include <X11/Intrinsic.h>
6027 EOF 6450 EOF
6028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6029 { (eval echo configure:6030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6452 { (eval echo configure:6453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6031 if test -z "$ac_err"; then 6454 if test -z "$ac_err"; then
6032 rm -rf conftest* 6455 rm -rf conftest*
6033 eval "ac_cv_header_$ac_safe=yes" 6456 eval "ac_cv_header_$ac_safe=yes"
6034 else 6457 else
6048 fi 6471 fi
6049 6472
6050 6473
6051 6474
6052 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6475 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6053 echo "configure:6054: checking for XOpenDisplay in -lX11" >&5 6476 echo "configure:6477: checking for XOpenDisplay in -lX11" >&5
6054 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6477 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6055 6478
6056 xe_check_libs=" -lX11 " 6479 xe_check_libs=" -lX11 "
6057 cat > conftest.$ac_ext <<EOF 6480 cat > conftest.$ac_ext <<EOF
6058 #line 6059 "configure" 6481 #line 6482 "configure"
6059 #include "confdefs.h" 6482 #include "confdefs.h"
6060 /* Override any gcc2 internal prototype to avoid an error. */ 6483 /* Override any gcc2 internal prototype to avoid an error. */
6061 /* We use char because int might match the return type of a gcc2 6484 /* We use char because int might match the return type of a gcc2
6062 builtin and then its argument prototype would still apply. */ 6485 builtin and then its argument prototype would still apply. */
6063 char XOpenDisplay(); 6486 char XOpenDisplay();
6064 6487
6065 int main() { 6488 int main() {
6066 XOpenDisplay() 6489 XOpenDisplay()
6067 ; return 0; } 6490 ; return 0; }
6068 EOF 6491 EOF
6069 if { (eval echo configure:6070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6492 if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6070 rm -rf conftest* 6493 rm -rf conftest*
6071 eval "ac_cv_lib_$ac_lib_var=yes" 6494 eval "ac_cv_lib_$ac_lib_var=yes"
6072 else 6495 else
6073 echo "configure: failed program was:" >&5 6496 echo "configure: failed program was:" >&5
6074 cat conftest.$ac_ext >&5 6497 cat conftest.$ac_ext >&5
6089 if test "$have_lib_x11" != "yes"; then 6512 if test "$have_lib_x11" != "yes"; then
6090 6513
6091 xe_msg_checking="for XGetFontProperty in -lX11" 6514 xe_msg_checking="for XGetFontProperty in -lX11"
6092 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6515 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6093 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6516 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6094 echo "configure:6095: checking "$xe_msg_checking"" >&5 6517 echo "configure:6518: checking "$xe_msg_checking"" >&5
6095 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6518 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6096 6519
6097 xe_check_libs=" -lX11 -b i486-linuxaout" 6520 xe_check_libs=" -lX11 -b i486-linuxaout"
6098 cat > conftest.$ac_ext <<EOF 6521 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure" 6522 #line 6523 "configure"
6100 #include "confdefs.h" 6523 #include "confdefs.h"
6101 /* Override any gcc2 internal prototype to avoid an error. */ 6524 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2 6525 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */ 6526 builtin and then its argument prototype would still apply. */
6104 char XGetFontProperty(); 6527 char XGetFontProperty();
6105 6528
6106 int main() { 6529 int main() {
6107 XGetFontProperty() 6530 XGetFontProperty()
6108 ; return 0; } 6531 ; return 0; }
6109 EOF 6532 EOF
6110 if { (eval echo configure:6111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6533 if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6111 rm -rf conftest* 6534 rm -rf conftest*
6112 eval "ac_cv_lib_$ac_lib_var=yes" 6535 eval "ac_cv_lib_$ac_lib_var=yes"
6113 else 6536 else
6114 echo "configure: failed program was:" >&5 6537 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5 6538 cat conftest.$ac_ext >&5
6132 libs_x="-lX11" 6555 libs_x="-lX11"
6133 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6556 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6134 6557
6135 6558
6136 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6559 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6137 echo "configure:6138: checking for XShapeSelectInput in -lXext" >&5 6560 echo "configure:6561: checking for XShapeSelectInput in -lXext" >&5
6138 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6561 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6139 6562
6140 xe_check_libs=" -lXext " 6563 xe_check_libs=" -lXext "
6141 cat > conftest.$ac_ext <<EOF 6564 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure" 6565 #line 6566 "configure"
6143 #include "confdefs.h" 6566 #include "confdefs.h"
6144 /* Override any gcc2 internal prototype to avoid an error. */ 6567 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2 6568 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */ 6569 builtin and then its argument prototype would still apply. */
6147 char XShapeSelectInput(); 6570 char XShapeSelectInput();
6148 6571
6149 int main() { 6572 int main() {
6150 XShapeSelectInput() 6573 XShapeSelectInput()
6151 ; return 0; } 6574 ; return 0; }
6152 EOF 6575 EOF
6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6576 if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6154 rm -rf conftest* 6577 rm -rf conftest*
6155 eval "ac_cv_lib_$ac_lib_var=yes" 6578 eval "ac_cv_lib_$ac_lib_var=yes"
6156 else 6579 else
6157 echo "configure: failed program was:" >&5 6580 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5 6581 cat conftest.$ac_ext >&5
6171 6594
6172 6595
6173 6596
6174 6597
6175 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6598 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6176 echo "configure:6177: checking for XtOpenDisplay in -lXt" >&5 6599 echo "configure:6600: checking for XtOpenDisplay in -lXt" >&5
6177 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6600 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6178 6601
6179 xe_check_libs=" -lXt " 6602 xe_check_libs=" -lXt "
6180 cat > conftest.$ac_ext <<EOF 6603 cat > conftest.$ac_ext <<EOF
6181 #line 6182 "configure" 6604 #line 6605 "configure"
6182 #include "confdefs.h" 6605 #include "confdefs.h"
6183 /* Override any gcc2 internal prototype to avoid an error. */ 6606 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2 6607 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */ 6608 builtin and then its argument prototype would still apply. */
6186 char XtOpenDisplay(); 6609 char XtOpenDisplay();
6187 6610
6188 int main() { 6611 int main() {
6189 XtOpenDisplay() 6612 XtOpenDisplay()
6190 ; return 0; } 6613 ; return 0; }
6191 EOF 6614 EOF
6192 if { (eval echo configure:6193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6615 if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6193 rm -rf conftest* 6616 rm -rf conftest*
6194 eval "ac_cv_lib_$ac_lib_var=yes" 6617 eval "ac_cv_lib_$ac_lib_var=yes"
6195 else 6618 else
6196 echo "configure: failed program was:" >&5 6619 echo "configure: failed program was:" >&5
6197 cat conftest.$ac_ext >&5 6620 cat conftest.$ac_ext >&5
6210 fi 6633 fi
6211 6634
6212 6635
6213 6636
6214 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6637 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6215 echo "configure:6216: checking the version of X11 being used" >&5 6638 echo "configure:6639: checking the version of X11 being used" >&5
6216 cat > conftest.$ac_ext <<EOF 6639 cat > conftest.$ac_ext <<EOF
6217 #line 6218 "configure" 6640 #line 6641 "configure"
6218 #include "confdefs.h" 6641 #include "confdefs.h"
6219 #include <X11/Intrinsic.h> 6642 #include <X11/Intrinsic.h>
6220 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6643 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6221 EOF 6644 EOF
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6223 then 6646 then
6224 ./conftest foobar; x11_release=$? 6647 ./conftest foobar; x11_release=$?
6225 else 6648 else
6226 conftest_rc="$?" 6649 conftest_rc="$?"
6227 echo "configure: failed program was:" >&5 6650 echo "configure: failed program was:" >&5
6248 fi 6671 fi
6249 6672
6250 for ac_func in XConvertCase 6673 for ac_func in XConvertCase
6251 do 6674 do
6252 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6675 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6253 echo "configure:6254: checking for $ac_func" >&5 6676 echo "configure:6677: checking for $ac_func" >&5
6254 6677
6255 cat > conftest.$ac_ext <<EOF 6678 cat > conftest.$ac_ext <<EOF
6256 #line 6257 "configure" 6679 #line 6680 "configure"
6257 #include "confdefs.h" 6680 #include "confdefs.h"
6258 /* System header to define __stub macros and hopefully few prototypes, 6681 /* System header to define __stub macros and hopefully few prototypes,
6259 which can conflict with char $ac_func(); below. */ 6682 which can conflict with char $ac_func(); below. */
6260 #include <assert.h> 6683 #include <assert.h>
6261 /* Override any gcc2 internal prototype to avoid an error. */ 6684 /* Override any gcc2 internal prototype to avoid an error. */
6274 $ac_func(); 6697 $ac_func();
6275 #endif 6698 #endif
6276 6699
6277 ; return 0; } 6700 ; return 0; }
6278 EOF 6701 EOF
6279 if { (eval echo configure:6280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6702 if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6280 rm -rf conftest* 6703 rm -rf conftest*
6281 eval "ac_cv_func_$ac_func=yes" 6704 eval "ac_cv_func_$ac_func=yes"
6282 else 6705 else
6283 echo "configure: failed program was:" >&5 6706 echo "configure: failed program was:" >&5
6284 cat conftest.$ac_ext >&5 6707 cat conftest.$ac_ext >&5
6306 6729
6307 for ac_hdr in X11/Xlocale.h 6730 for ac_hdr in X11/Xlocale.h
6308 do 6731 do
6309 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6732 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6310 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6311 echo "configure:6312: checking for $ac_hdr" >&5 6734 echo "configure:6735: checking for $ac_hdr" >&5
6312 6735
6313 cat > conftest.$ac_ext <<EOF 6736 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure" 6737 #line 6738 "configure"
6315 #include "confdefs.h" 6738 #include "confdefs.h"
6316 #include <$ac_hdr> 6739 #include <$ac_hdr>
6317 EOF 6740 EOF
6318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6741 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6319 { (eval echo configure:6320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6742 { (eval echo configure:6743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6743 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6321 if test -z "$ac_err"; then 6744 if test -z "$ac_err"; then
6322 rm -rf conftest* 6745 rm -rf conftest*
6323 eval "ac_cv_header_$ac_safe=yes" 6746 eval "ac_cv_header_$ac_safe=yes"
6324 else 6747 else
6347 6770
6348 6771
6349 for ac_func in XRegisterIMInstantiateCallback 6772 for ac_func in XRegisterIMInstantiateCallback
6350 do 6773 do
6351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6774 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_func" >&5 6775 echo "configure:6776: checking for $ac_func" >&5
6353 6776
6354 cat > conftest.$ac_ext <<EOF 6777 cat > conftest.$ac_ext <<EOF
6355 #line 6356 "configure" 6778 #line 6779 "configure"
6356 #include "confdefs.h" 6779 #include "confdefs.h"
6357 /* System header to define __stub macros and hopefully few prototypes, 6780 /* System header to define __stub macros and hopefully few prototypes,
6358 which can conflict with char $ac_func(); below. */ 6781 which can conflict with char $ac_func(); below. */
6359 #include <assert.h> 6782 #include <assert.h>
6360 /* Override any gcc2 internal prototype to avoid an error. */ 6783 /* Override any gcc2 internal prototype to avoid an error. */
6373 $ac_func(); 6796 $ac_func();
6374 #endif 6797 #endif
6375 6798
6376 ; return 0; } 6799 ; return 0; }
6377 EOF 6800 EOF
6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6801 if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6379 rm -rf conftest* 6802 rm -rf conftest*
6380 eval "ac_cv_func_$ac_func=yes" 6803 eval "ac_cv_func_$ac_func=yes"
6381 else 6804 else
6382 echo "configure: failed program was:" >&5 6805 echo "configure: failed program was:" >&5
6383 cat conftest.$ac_ext >&5 6806 cat conftest.$ac_ext >&5
6401 echo "$ac_t""no" 1>&6 6824 echo "$ac_t""no" 1>&6
6402 fi 6825 fi
6403 done 6826 done
6404 6827
6405 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 6828 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
6406 echo "configure:6407: checking for standard XRegisterIMInstantiateCallback prototype" >&5 6829 echo "configure:6830: checking for standard XRegisterIMInstantiateCallback prototype" >&5
6407 cat > conftest.$ac_ext <<EOF 6830 cat > conftest.$ac_ext <<EOF
6408 #line 6409 "configure" 6831 #line 6832 "configure"
6409 #include "confdefs.h" 6832 #include "confdefs.h"
6410 6833
6411 #define NeedFunctionPrototypes 1 6834 #define NeedFunctionPrototypes 1
6412 #include <X11/Xlib.h> 6835 #include <X11/Xlib.h>
6413 extern Bool XRegisterIMInstantiateCallback( 6836 extern Bool XRegisterIMInstantiateCallback(
6415 6838
6416 int main() { 6839 int main() {
6417 6840
6418 ; return 0; } 6841 ; return 0; }
6419 EOF 6842 EOF
6420 if { (eval echo configure:6421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6843 if { (eval echo configure:6844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6421 rm -rf conftest* 6844 rm -rf conftest*
6422 echo "$ac_t""yes" 1>&6 6845 echo "$ac_t""yes" 1>&6
6423 else 6846 else
6424 echo "configure: failed program was:" >&5 6847 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5 6848 cat conftest.$ac_ext >&5
6436 fi 6859 fi
6437 rm -f conftest* 6860 rm -f conftest*
6438 6861
6439 test -z "$with_xmu" && { 6862 test -z "$with_xmu" && {
6440 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 6863 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
6441 echo "configure:6442: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 6864 echo "configure:6865: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
6442 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 6865 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
6443 6866
6444 xe_check_libs=" -lXmu " 6867 xe_check_libs=" -lXmu "
6445 cat > conftest.$ac_ext <<EOF 6868 cat > conftest.$ac_ext <<EOF
6446 #line 6447 "configure" 6869 #line 6870 "configure"
6447 #include "confdefs.h" 6870 #include "confdefs.h"
6448 /* Override any gcc2 internal prototype to avoid an error. */ 6871 /* Override any gcc2 internal prototype to avoid an error. */
6449 /* 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
6450 builtin and then its argument prototype would still apply. */ 6873 builtin and then its argument prototype would still apply. */
6451 char XmuReadBitmapDataFromFile(); 6874 char XmuReadBitmapDataFromFile();
6452 6875
6453 int main() { 6876 int main() {
6454 XmuReadBitmapDataFromFile() 6877 XmuReadBitmapDataFromFile()
6455 ; return 0; } 6878 ; return 0; }
6456 EOF 6879 EOF
6457 if { (eval echo configure:6458: \"$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
6458 rm -rf conftest* 6881 rm -rf conftest*
6459 eval "ac_cv_lib_$ac_lib_var=yes" 6882 eval "ac_cv_lib_$ac_lib_var=yes"
6460 else 6883 else
6461 echo "configure: failed program was:" >&5 6884 echo "configure: failed program was:" >&5
6462 cat conftest.$ac_ext >&5 6885 cat conftest.$ac_ext >&5
6491 6914
6492 fi 6915 fi
6493 6916
6494 6917
6495 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 6918 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
6496 echo "configure:6497: checking for main in -lXbsd" >&5 6919 echo "configure:6920: checking for main in -lXbsd" >&5
6497 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 6920 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
6498 6921
6499 xe_check_libs=" -lXbsd " 6922 xe_check_libs=" -lXbsd "
6500 cat > conftest.$ac_ext <<EOF 6923 cat > conftest.$ac_ext <<EOF
6501 #line 6502 "configure" 6924 #line 6925 "configure"
6502 #include "confdefs.h" 6925 #include "confdefs.h"
6503 6926
6504 int main() { 6927 int main() {
6505 main() 6928 main()
6506 ; return 0; } 6929 ; return 0; }
6507 EOF 6930 EOF
6508 if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6509 rm -rf conftest* 6932 rm -rf conftest*
6510 eval "ac_cv_lib_$ac_lib_var=yes" 6933 eval "ac_cv_lib_$ac_lib_var=yes"
6511 else 6934 else
6512 echo "configure: failed program was:" >&5 6935 echo "configure: failed program was:" >&5
6513 cat conftest.$ac_ext >&5 6936 cat conftest.$ac_ext >&5
6540 fi 6963 fi
6541 6964
6542 fi 6965 fi
6543 if test "$with_msw" != "no"; then 6966 if test "$with_msw" != "no"; then
6544 echo "checking for MS-Windows" 1>&6 6967 echo "checking for MS-Windows" 1>&6
6545 echo "configure:6546: checking for MS-Windows" >&5 6968 echo "configure:6969: checking for MS-Windows" >&5
6546 6969
6547 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6970 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6548 echo "configure:6549: checking for main in -lgdi32" >&5 6971 echo "configure:6972: checking for main in -lgdi32" >&5
6549 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6972 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6550 6973
6551 xe_check_libs=" -lgdi32 " 6974 xe_check_libs=" -lgdi32 "
6552 cat > conftest.$ac_ext <<EOF 6975 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure" 6976 #line 6977 "configure"
6554 #include "confdefs.h" 6977 #include "confdefs.h"
6555 6978
6556 int main() { 6979 int main() {
6557 main() 6980 main()
6558 ; return 0; } 6981 ; return 0; }
6559 EOF 6982 EOF
6560 if { (eval echo configure:6561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6983 if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6561 rm -rf conftest* 6984 rm -rf conftest*
6562 eval "ac_cv_lib_$ac_lib_var=yes" 6985 eval "ac_cv_lib_$ac_lib_var=yes"
6563 else 6986 else
6564 echo "configure: failed program was:" >&5 6987 echo "configure: failed program was:" >&5
6565 cat conftest.$ac_ext >&5 6988 cat conftest.$ac_ext >&5
6585 #define HAVE_MS_WINDOWS 1 7008 #define HAVE_MS_WINDOWS 1
6586 EOF 7009 EOF
6587 } 7010 }
6588 7011
6589 7012
6590 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi 7013 if test "$with_netinstall" = "yes"; then
6591 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi 7014 MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi
6592 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 7015 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi
7016 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
7017 fi
6593 7018
6594 install_pp="$blddir/lib-src/installexe.sh" 7019 install_pp="$blddir/lib-src/installexe.sh"
6595 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 7020 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
6596 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi 7021 test "$with_dragndrop" != no && dragndrop_proto="$dragndrop_proto msw" && if test "$extra_verbose" = "yes"; then echo " Appending \"msw\" to \$dragndrop_proto"; fi
6597 if test "$window_system" != x11; then 7022 if test "$window_system" != x11; then
6626 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 7051 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6627 echo " xemacs will be linked with \"dialog-msw.o\"" 7052 echo " xemacs will be linked with \"dialog-msw.o\""
6628 fi 7053 fi
6629 fi 7054 fi
6630 cat > conftest.$ac_ext <<EOF 7055 cat > conftest.$ac_ext <<EOF
6631 #line 6632 "configure" 7056 #line 7057 "configure"
6632 #include "confdefs.h" 7057 #include "confdefs.h"
6633 #include <fcntl.h> 7058 #include <fcntl.h>
6634 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7059 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6635 EOF 7060 EOF
6636 if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7061 if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6637 then 7062 then
6638 { test "$extra_verbose" = "yes" && cat << \EOF 7063 { test "$extra_verbose" = "yes" && cat << \EOF
6639 Defining HAVE_MSG_SELECT 7064 Defining HAVE_MSG_SELECT
6640 EOF 7065 EOF
6641 cat >> confdefs.h <<\EOF 7066 cat >> confdefs.h <<\EOF
6695 fi 7120 fi
6696 7121
6697 if test "$with_x11" = "yes"; then 7122 if test "$with_x11" = "yes"; then
6698 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7123 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
6699 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7124 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
6700 echo "configure:6701: checking for X11/extensions/shape.h" >&5 7125 echo "configure:7126: checking for X11/extensions/shape.h" >&5
6701 7126
6702 cat > conftest.$ac_ext <<EOF 7127 cat > conftest.$ac_ext <<EOF
6703 #line 6704 "configure" 7128 #line 7129 "configure"
6704 #include "confdefs.h" 7129 #include "confdefs.h"
6705 #include <X11/extensions/shape.h> 7130 #include <X11/extensions/shape.h>
6706 EOF 7131 EOF
6707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6708 { (eval echo configure:6709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7133 { (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6710 if test -z "$ac_err"; then 7135 if test -z "$ac_err"; then
6711 rm -rf conftest* 7136 rm -rf conftest*
6712 eval "ac_cv_header_$ac_safe=yes" 7137 eval "ac_cv_header_$ac_safe=yes"
6713 else 7138 else
6741 bitmapdir= 7166 bitmapdir=
6742 7167
6743 case "$window_system" in 7168 case "$window_system" in
6744 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; 7169 x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;;
6745 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;; 7170 msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;;
7171 gtk )
7172 HAVE_X_WINDOWS=no
7173 test "$with_gnome" = "yes" && echo " Using GNOME."
7174 test "$with_gnome" = "no" && echo " Using GTK."
7175 ;;
6746 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; 7176 none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;;
6747 esac 7177 esac
6748 7178
6749 case "$x_libraries" in *X11R4* ) 7179 case "$x_libraries" in *X11R4* )
6750 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7180 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6751 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7181 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6752 esac 7182 esac
6753 7183
6754 echo "checking for WM_COMMAND option" 1>&6 7184 echo "checking for WM_COMMAND option" 1>&6
6755 echo "configure:6756: checking for WM_COMMAND option" >&5; 7185 echo "configure:7186: checking for WM_COMMAND option" >&5;
6756 if test "$with_wmcommand" != "no"; then 7186 if test "$with_wmcommand" != "no"; then
6757 { test "$extra_verbose" = "yes" && cat << \EOF 7187 { test "$extra_verbose" = "yes" && cat << \EOF
6758 Defining HAVE_WMCOMMAND 7188 Defining HAVE_WMCOMMAND
6759 EOF 7189 EOF
6760 cat >> confdefs.h <<\EOF 7190 cat >> confdefs.h <<\EOF
6765 fi 7195 fi
6766 7196
6767 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7197 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6768 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7198 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6769 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7199 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6770 echo "configure:6771: checking for X11/Xauth.h" >&5 7200 echo "configure:7201: checking for X11/Xauth.h" >&5
6771 7201
6772 cat > conftest.$ac_ext <<EOF 7202 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure" 7203 #line 7204 "configure"
6774 #include "confdefs.h" 7204 #include "confdefs.h"
6775 #include <X11/Xauth.h> 7205 #include <X11/Xauth.h>
6776 EOF 7206 EOF
6777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6778 { (eval echo configure:6779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7208 { (eval echo configure:7209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6780 if test -z "$ac_err"; then 7210 if test -z "$ac_err"; then
6781 rm -rf conftest* 7211 rm -rf conftest*
6782 eval "ac_cv_header_$ac_safe=yes" 7212 eval "ac_cv_header_$ac_safe=yes"
6783 else 7213 else
6796 with_xauth=no 7226 with_xauth=no
6797 fi 7227 fi
6798 } 7228 }
6799 test -z "$with_xauth" && { 7229 test -z "$with_xauth" && {
6800 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7230 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6801 echo "configure:6802: checking for XauGetAuthByAddr in -lXau" >&5 7231 echo "configure:7232: checking for XauGetAuthByAddr in -lXau" >&5
6802 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7232 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6803 7233
6804 xe_check_libs=" -lXau " 7234 xe_check_libs=" -lXau "
6805 cat > conftest.$ac_ext <<EOF 7235 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure" 7236 #line 7237 "configure"
6807 #include "confdefs.h" 7237 #include "confdefs.h"
6808 /* Override any gcc2 internal prototype to avoid an error. */ 7238 /* Override any gcc2 internal prototype to avoid an error. */
6809 /* We use char because int might match the return type of a gcc2 7239 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */ 7240 builtin and then its argument prototype would still apply. */
6811 char XauGetAuthByAddr(); 7241 char XauGetAuthByAddr();
6812 7242
6813 int main() { 7243 int main() {
6814 XauGetAuthByAddr() 7244 XauGetAuthByAddr()
6815 ; return 0; } 7245 ; return 0; }
6816 EOF 7246 EOF
6817 if { (eval echo configure:6818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6818 rm -rf conftest* 7248 rm -rf conftest*
6819 eval "ac_cv_lib_$ac_lib_var=yes" 7249 eval "ac_cv_lib_$ac_lib_var=yes"
6820 else 7250 else
6821 echo "configure: failed program was:" >&5 7251 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5 7252 cat conftest.$ac_ext >&5
6845 EOF 7275 EOF
6846 } 7276 }
6847 7277
6848 7278
6849 T="" 7279 T=""
6850 for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 7280 for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
6851 libs_xauth="$T" 7281 libs_xauth="$T"
6852 7282
6853 fi 7283 fi
6854 7284
6855 7285
6857 7287
6858 if test "$with_tooltalk" != "no" ; then 7288 if test "$with_tooltalk" != "no" ; then
6859 for dir in "" "Tt/" "desktop/" ; do 7289 for dir in "" "Tt/" "desktop/" ; do
6860 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 7290 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6861 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 7291 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6862 echo "configure:6863: checking for ${dir}tt_c.h" >&5 7292 echo "configure:7293: checking for ${dir}tt_c.h" >&5
6863 7293
6864 cat > conftest.$ac_ext <<EOF 7294 cat > conftest.$ac_ext <<EOF
6865 #line 6866 "configure" 7295 #line 7296 "configure"
6866 #include "confdefs.h" 7296 #include "confdefs.h"
6867 #include <${dir}tt_c.h> 7297 #include <${dir}tt_c.h>
6868 EOF 7298 EOF
6869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6870 { (eval echo configure:6871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7300 { (eval echo configure:7301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6872 if test -z "$ac_err"; then 7302 if test -z "$ac_err"; then
6873 rm -rf conftest* 7303 rm -rf conftest*
6874 eval "ac_cv_header_$ac_safe=yes" 7304 eval "ac_cv_header_$ac_safe=yes"
6875 else 7305 else
6901 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 7331 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6902 7332
6903 xe_msg_checking="for tt_message_create in -ltt" 7333 xe_msg_checking="for tt_message_create in -ltt"
6904 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 7334 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6905 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7335 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6906 echo "configure:6907: checking "$xe_msg_checking"" >&5 7336 echo "configure:7337: checking "$xe_msg_checking"" >&5
6907 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 7337 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6908 7338
6909 xe_check_libs=" -ltt $extra_libs" 7339 xe_check_libs=" -ltt $extra_libs"
6910 cat > conftest.$ac_ext <<EOF 7340 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure" 7341 #line 7342 "configure"
6912 #include "confdefs.h" 7342 #include "confdefs.h"
6913 /* Override any gcc2 internal prototype to avoid an error. */ 7343 /* Override any gcc2 internal prototype to avoid an error. */
6914 /* We use char because int might match the return type of a gcc2 7344 /* We use char because int might match the return type of a gcc2
6915 builtin and then its argument prototype would still apply. */ 7345 builtin and then its argument prototype would still apply. */
6916 char tt_message_create(); 7346 char tt_message_create();
6917 7347
6918 int main() { 7348 int main() {
6919 tt_message_create() 7349 tt_message_create()
6920 ; return 0; } 7350 ; return 0; }
6921 EOF 7351 EOF
6922 if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7352 if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6923 rm -rf conftest* 7353 rm -rf conftest*
6924 eval "ac_cv_lib_$ac_lib_var=yes" 7354 eval "ac_cv_lib_$ac_lib_var=yes"
6925 else 7355 else
6926 echo "configure: failed program was:" >&5 7356 echo "configure: failed program was:" >&5
6927 cat conftest.$ac_ext >&5 7357 cat conftest.$ac_ext >&5
6974 fi 7404 fi
6975 fi 7405 fi
6976 7406
6977 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 7407 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6978 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 7408 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6979 echo "configure:6980: checking for Dt/Dt.h" >&5 7409 echo "configure:7410: checking for Dt/Dt.h" >&5
6980 7410
6981 cat > conftest.$ac_ext <<EOF 7411 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure" 7412 #line 7413 "configure"
6983 #include "confdefs.h" 7413 #include "confdefs.h"
6984 #include <Dt/Dt.h> 7414 #include <Dt/Dt.h>
6985 EOF 7415 EOF
6986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6987 { (eval echo configure:6988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7417 { (eval echo configure:7418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6989 if test -z "$ac_err"; then 7419 if test -z "$ac_err"; then
6990 rm -rf conftest* 7420 rm -rf conftest*
6991 eval "ac_cv_header_$ac_safe=yes" 7421 eval "ac_cv_header_$ac_safe=yes"
6992 else 7422 else
7005 with_cde=no 7435 with_cde=no
7006 fi 7436 fi
7007 } 7437 }
7008 test -z "$with_cde" && { 7438 test -z "$with_cde" && {
7009 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 7439 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7010 echo "configure:7011: checking for DtDndDragStart in -lDtSvc" >&5 7440 echo "configure:7441: checking for DtDndDragStart in -lDtSvc" >&5
7011 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 7441 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7012 7442
7013 xe_check_libs=" -lDtSvc " 7443 xe_check_libs=" -lDtSvc "
7014 cat > conftest.$ac_ext <<EOF 7444 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure" 7445 #line 7446 "configure"
7016 #include "confdefs.h" 7446 #include "confdefs.h"
7017 /* Override any gcc2 internal prototype to avoid an error. */ 7447 /* Override any gcc2 internal prototype to avoid an error. */
7018 /* We use char because int might match the return type of a gcc2 7448 /* We use char because int might match the return type of a gcc2
7019 builtin and then its argument prototype would still apply. */ 7449 builtin and then its argument prototype would still apply. */
7020 char DtDndDragStart(); 7450 char DtDndDragStart();
7021 7451
7022 int main() { 7452 int main() {
7023 DtDndDragStart() 7453 DtDndDragStart()
7024 ; return 0; } 7454 ; return 0; }
7025 EOF 7455 EOF
7026 if { (eval echo configure:7027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7456 if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7027 rm -rf conftest* 7457 rm -rf conftest*
7028 eval "ac_cv_lib_$ac_lib_var=yes" 7458 eval "ac_cv_lib_$ac_lib_var=yes"
7029 else 7459 else
7030 echo "configure: failed program was:" >&5 7460 echo "configure: failed program was:" >&5
7031 cat conftest.$ac_ext >&5 7461 cat conftest.$ac_ext >&5
7088 } 7518 }
7089 7519
7090 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 7520 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
7091 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 7521 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
7092 fi 7522 fi
7523 if test "$with_gtk" = "yes"; then
7524 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7525 fi
7093 7526
7094 if test "$with_dragndrop" != "no" ; then 7527 if test "$with_dragndrop" != "no" ; then
7095 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 7528 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7096 echo "configure:7097: checking if drag and drop API is needed" >&5 7529 echo "configure:7530: checking if drag and drop API is needed" >&5
7097 if test -n "$dragndrop_proto" ; then 7530 if test -n "$dragndrop_proto" ; then
7098 with_dragndrop=yes 7531 with_dragndrop=yes
7099 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 7532 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7100 { test "$extra_verbose" = "yes" && cat << \EOF 7533 { test "$extra_verbose" = "yes" && cat << \EOF
7101 Defining HAVE_DRAGNDROP 7534 Defining HAVE_DRAGNDROP
7111 echo "$ac_t""no" 1>&6 7544 echo "$ac_t""no" 1>&6
7112 fi 7545 fi
7113 fi 7546 fi
7114 7547
7115 echo "checking for LDAP" 1>&6 7548 echo "checking for LDAP" 1>&6
7116 echo "configure:7117: checking for LDAP" >&5 7549 echo "configure:7550: checking for LDAP" >&5
7117 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 7550 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
7118 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 7551 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
7119 echo "configure:7120: checking for ldap.h" >&5 7552 echo "configure:7553: checking for ldap.h" >&5
7120 7553
7121 cat > conftest.$ac_ext <<EOF 7554 cat > conftest.$ac_ext <<EOF
7122 #line 7123 "configure" 7555 #line 7556 "configure"
7123 #include "confdefs.h" 7556 #include "confdefs.h"
7124 #include <ldap.h> 7557 #include <ldap.h>
7125 EOF 7558 EOF
7126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7127 { (eval echo configure:7128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7560 { (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7129 if test -z "$ac_err"; then 7562 if test -z "$ac_err"; then
7130 rm -rf conftest* 7563 rm -rf conftest*
7131 eval "ac_cv_header_$ac_safe=yes" 7564 eval "ac_cv_header_$ac_safe=yes"
7132 else 7565 else
7145 with_ldap=no 7578 with_ldap=no
7146 fi 7579 fi
7147 } 7580 }
7148 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 7581 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
7149 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 7582 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
7150 echo "configure:7151: checking for lber.h" >&5 7583 echo "configure:7584: checking for lber.h" >&5
7151 7584
7152 cat > conftest.$ac_ext <<EOF 7585 cat > conftest.$ac_ext <<EOF
7153 #line 7154 "configure" 7586 #line 7587 "configure"
7154 #include "confdefs.h" 7587 #include "confdefs.h"
7155 #include <lber.h> 7588 #include <lber.h>
7156 EOF 7589 EOF
7157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7158 { (eval echo configure:7159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7591 { (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7160 if test -z "$ac_err"; then 7593 if test -z "$ac_err"; then
7161 rm -rf conftest* 7594 rm -rf conftest*
7162 eval "ac_cv_header_$ac_safe=yes" 7595 eval "ac_cv_header_$ac_safe=yes"
7163 else 7596 else
7177 fi 7610 fi
7178 } 7611 }
7179 if test "$with_ldap" != "no"; then 7612 if test "$with_ldap" != "no"; then
7180 7613
7181 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 7614 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
7182 echo "configure:7183: checking for ldap_search in -lldap" >&5 7615 echo "configure:7616: checking for ldap_search in -lldap" >&5
7183 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 7616 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
7184 7617
7185 xe_check_libs=" -lldap " 7618 xe_check_libs=" -lldap "
7186 cat > conftest.$ac_ext <<EOF 7619 cat > conftest.$ac_ext <<EOF
7187 #line 7188 "configure" 7620 #line 7621 "configure"
7188 #include "confdefs.h" 7621 #include "confdefs.h"
7189 /* Override any gcc2 internal prototype to avoid an error. */ 7622 /* Override any gcc2 internal prototype to avoid an error. */
7190 /* We use char because int might match the return type of a gcc2 7623 /* We use char because int might match the return type of a gcc2
7191 builtin and then its argument prototype would still apply. */ 7624 builtin and then its argument prototype would still apply. */
7192 char ldap_search(); 7625 char ldap_search();
7193 7626
7194 int main() { 7627 int main() {
7195 ldap_search() 7628 ldap_search()
7196 ; return 0; } 7629 ; return 0; }
7197 EOF 7630 EOF
7198 if { (eval echo configure:7199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7199 rm -rf conftest* 7632 rm -rf conftest*
7200 eval "ac_cv_lib_$ac_lib_var=yes" 7633 eval "ac_cv_lib_$ac_lib_var=yes"
7201 else 7634 else
7202 echo "configure: failed program was:" >&5 7635 echo "configure: failed program was:" >&5
7203 cat conftest.$ac_ext >&5 7636 cat conftest.$ac_ext >&5
7218 7651
7219 test "$with_ldap_nolber" = "no" && { 7652 test "$with_ldap_nolber" = "no" && {
7220 xe_msg_checking="for ldap_open in -lldap" 7653 xe_msg_checking="for ldap_open in -lldap"
7221 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 7654 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
7222 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7655 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7223 echo "configure:7224: checking "$xe_msg_checking"" >&5 7656 echo "configure:7657: checking "$xe_msg_checking"" >&5
7224 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7657 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7225 7658
7226 xe_check_libs=" -lldap -llber" 7659 xe_check_libs=" -lldap -llber"
7227 cat > conftest.$ac_ext <<EOF 7660 cat > conftest.$ac_ext <<EOF
7228 #line 7229 "configure" 7661 #line 7662 "configure"
7229 #include "confdefs.h" 7662 #include "confdefs.h"
7230 /* Override any gcc2 internal prototype to avoid an error. */ 7663 /* Override any gcc2 internal prototype to avoid an error. */
7231 /* We use char because int might match the return type of a gcc2 7664 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */ 7665 builtin and then its argument prototype would still apply. */
7233 char ldap_open(); 7666 char ldap_open();
7234 7667
7235 int main() { 7668 int main() {
7236 ldap_open() 7669 ldap_open()
7237 ; return 0; } 7670 ; return 0; }
7238 EOF 7671 EOF
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7672 if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240 rm -rf conftest* 7673 rm -rf conftest*
7241 eval "ac_cv_lib_$ac_lib_var=yes" 7674 eval "ac_cv_lib_$ac_lib_var=yes"
7242 else 7675 else
7243 echo "configure: failed program was:" >&5 7676 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5 7677 cat conftest.$ac_ext >&5
7259 } 7692 }
7260 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && { 7693 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
7261 xe_msg_checking="for ldap_open in -lldap" 7694 xe_msg_checking="for ldap_open in -lldap"
7262 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" 7695 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
7263 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7696 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7264 echo "configure:7265: checking "$xe_msg_checking"" >&5 7697 echo "configure:7698: checking "$xe_msg_checking"" >&5
7265 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7698 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7266 7699
7267 xe_check_libs=" -lldap -llber -lkrb" 7700 xe_check_libs=" -lldap -llber -lkrb"
7268 cat > conftest.$ac_ext <<EOF 7701 cat > conftest.$ac_ext <<EOF
7269 #line 7270 "configure" 7702 #line 7703 "configure"
7270 #include "confdefs.h" 7703 #include "confdefs.h"
7271 /* Override any gcc2 internal prototype to avoid an error. */ 7704 /* Override any gcc2 internal prototype to avoid an error. */
7272 /* We use char because int might match the return type of a gcc2 7705 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */ 7706 builtin and then its argument prototype would still apply. */
7274 char ldap_open(); 7707 char ldap_open();
7275 7708
7276 int main() { 7709 int main() {
7277 ldap_open() 7710 ldap_open()
7278 ; return 0; } 7711 ; return 0; }
7279 EOF 7712 EOF
7280 if { (eval echo configure:7281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7713 if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7281 rm -rf conftest* 7714 rm -rf conftest*
7282 eval "ac_cv_lib_$ac_lib_var=yes" 7715 eval "ac_cv_lib_$ac_lib_var=yes"
7283 else 7716 else
7284 echo "configure: failed program was:" >&5 7717 echo "configure: failed program was:" >&5
7285 cat conftest.$ac_ext >&5 7718 cat conftest.$ac_ext >&5
7300 } 7733 }
7301 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && { 7734 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
7302 xe_msg_checking="for ldap_open in -lldap" 7735 xe_msg_checking="for ldap_open in -lldap"
7303 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" 7736 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
7304 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 7737 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7305 echo "configure:7306: checking "$xe_msg_checking"" >&5 7738 echo "configure:7739: checking "$xe_msg_checking"" >&5
7306 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 7739 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
7307 7740
7308 xe_check_libs=" -lldap -llber -lkrb -ldes" 7741 xe_check_libs=" -lldap -llber -lkrb -ldes"
7309 cat > conftest.$ac_ext <<EOF 7742 cat > conftest.$ac_ext <<EOF
7310 #line 7311 "configure" 7743 #line 7744 "configure"
7311 #include "confdefs.h" 7744 #include "confdefs.h"
7312 /* Override any gcc2 internal prototype to avoid an error. */ 7745 /* Override any gcc2 internal prototype to avoid an error. */
7313 /* We use char because int might match the return type of a gcc2 7746 /* We use char because int might match the return type of a gcc2
7314 builtin and then its argument prototype would still apply. */ 7747 builtin and then its argument prototype would still apply. */
7315 char ldap_open(); 7748 char ldap_open();
7316 7749
7317 int main() { 7750 int main() {
7318 ldap_open() 7751 ldap_open()
7319 ; return 0; } 7752 ; return 0; }
7320 EOF 7753 EOF
7321 if { (eval echo configure:7322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7322 rm -rf conftest* 7755 rm -rf conftest*
7323 eval "ac_cv_lib_$ac_lib_var=yes" 7756 eval "ac_cv_lib_$ac_lib_var=yes"
7324 else 7757 else
7325 echo "configure: failed program was:" >&5 7758 echo "configure: failed program was:" >&5
7326 cat conftest.$ac_ext >&5 7759 cat conftest.$ac_ext >&5
7367 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 7800 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
7368 fi 7801 fi
7369 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 7802 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
7370 do 7803 do
7371 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7372 echo "configure:7373: checking for $ac_func" >&5 7805 echo "configure:7806: checking for $ac_func" >&5
7373 7806
7374 cat > conftest.$ac_ext <<EOF 7807 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure" 7808 #line 7809 "configure"
7376 #include "confdefs.h" 7809 #include "confdefs.h"
7377 /* System header to define __stub macros and hopefully few prototypes, 7810 /* System header to define __stub macros and hopefully few prototypes,
7378 which can conflict with char $ac_func(); below. */ 7811 which can conflict with char $ac_func(); below. */
7379 #include <assert.h> 7812 #include <assert.h>
7380 /* Override any gcc2 internal prototype to avoid an error. */ 7813 /* Override any gcc2 internal prototype to avoid an error. */
7393 $ac_func(); 7826 $ac_func();
7394 #endif 7827 #endif
7395 7828
7396 ; return 0; } 7829 ; return 0; }
7397 EOF 7830 EOF
7398 if { (eval echo configure:7399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7831 if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7399 rm -rf conftest* 7832 rm -rf conftest*
7400 eval "ac_cv_func_$ac_func=yes" 7833 eval "ac_cv_func_$ac_func=yes"
7401 else 7834 else
7402 echo "configure: failed program was:" >&5 7835 echo "configure: failed program was:" >&5
7403 cat conftest.$ac_ext >&5 7836 cat conftest.$ac_ext >&5
7424 7857
7425 fi 7858 fi
7426 7859
7427 if test "$with_postgresql" != "no"; then 7860 if test "$with_postgresql" != "no"; then
7428 echo "checking for PostgreSQL" 1>&6 7861 echo "checking for PostgreSQL" 1>&6
7429 echo "configure:7430: checking for PostgreSQL" >&5 7862 echo "configure:7863: checking for PostgreSQL" >&5
7430 7863
7431 for header_dir in "" "pgsql/" "postgresql/"; do 7864 for header_dir in "" "pgsql/" "postgresql/"; do
7432 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` 7865 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
7433 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 7866 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
7434 echo "configure:7435: checking for ${header_dir}libpq-fe.h" >&5 7867 echo "configure:7868: checking for ${header_dir}libpq-fe.h" >&5
7435 7868
7436 cat > conftest.$ac_ext <<EOF 7869 cat > conftest.$ac_ext <<EOF
7437 #line 7438 "configure" 7870 #line 7871 "configure"
7438 #include "confdefs.h" 7871 #include "confdefs.h"
7439 #include <${header_dir}libpq-fe.h> 7872 #include <${header_dir}libpq-fe.h>
7440 EOF 7873 EOF
7441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7442 { (eval echo configure:7443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7875 { (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7444 if test -z "$ac_err"; then 7877 if test -z "$ac_err"; then
7445 rm -rf conftest* 7878 rm -rf conftest*
7446 eval "ac_cv_header_$ac_safe=yes" 7879 eval "ac_cv_header_$ac_safe=yes"
7447 else 7880 else
7461 7894
7462 done 7895 done
7463 7896
7464 test -n "$libpq_fe_h_file" && { 7897 test -n "$libpq_fe_h_file" && {
7465 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 7898 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
7466 echo "configure:7467: checking for PQconnectdb in -lpq" >&5 7899 echo "configure:7900: checking for PQconnectdb in -lpq" >&5
7467 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` 7900 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
7468 7901
7469 xe_check_libs=" -lpq " 7902 xe_check_libs=" -lpq "
7470 cat > conftest.$ac_ext <<EOF 7903 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure" 7904 #line 7905 "configure"
7472 #include "confdefs.h" 7905 #include "confdefs.h"
7473 /* Override any gcc2 internal prototype to avoid an error. */ 7906 /* Override any gcc2 internal prototype to avoid an error. */
7474 /* We use char because int might match the return type of a gcc2 7907 /* We use char because int might match the return type of a gcc2
7475 builtin and then its argument prototype would still apply. */ 7908 builtin and then its argument prototype would still apply. */
7476 char PQconnectdb(); 7909 char PQconnectdb();
7477 7910
7478 int main() { 7911 int main() {
7479 PQconnectdb() 7912 PQconnectdb()
7480 ; return 0; } 7913 ; return 0; }
7481 EOF 7914 EOF
7482 if { (eval echo configure:7483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7915 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7483 rm -rf conftest* 7916 rm -rf conftest*
7484 eval "ac_cv_lib_$ac_lib_var=yes" 7917 eval "ac_cv_lib_$ac_lib_var=yes"
7485 else 7918 else
7486 echo "configure: failed program was:" >&5 7919 echo "configure: failed program was:" >&5
7487 cat conftest.$ac_ext >&5 7920 cat conftest.$ac_ext >&5
7510 EOF 7943 EOF
7511 } 7944 }
7512 7945
7513 7946
7514 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 7947 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
7515 echo "configure:7516: checking for PQconnectStart in -lpq" >&5 7948 echo "configure:7949: checking for PQconnectStart in -lpq" >&5
7516 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` 7949 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
7517 7950
7518 xe_check_libs=" -lpq " 7951 xe_check_libs=" -lpq "
7519 cat > conftest.$ac_ext <<EOF 7952 cat > conftest.$ac_ext <<EOF
7520 #line 7521 "configure" 7953 #line 7954 "configure"
7521 #include "confdefs.h" 7954 #include "confdefs.h"
7522 /* Override any gcc2 internal prototype to avoid an error. */ 7955 /* Override any gcc2 internal prototype to avoid an error. */
7523 /* We use char because int might match the return type of a gcc2 7956 /* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */ 7957 builtin and then its argument prototype would still apply. */
7525 char PQconnectStart(); 7958 char PQconnectStart();
7526 7959
7527 int main() { 7960 int main() {
7528 PQconnectStart() 7961 PQconnectStart()
7529 ; return 0; } 7962 ; return 0; }
7530 EOF 7963 EOF
7531 if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7964 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7532 rm -rf conftest* 7965 rm -rf conftest*
7533 eval "ac_cv_lib_$ac_lib_var=yes" 7966 eval "ac_cv_lib_$ac_lib_var=yes"
7534 else 7967 else
7535 echo "configure: failed program was:" >&5 7968 echo "configure: failed program was:" >&5
7536 cat conftest.$ac_ext >&5 7969 cat conftest.$ac_ext >&5
7574 fi 8007 fi
7575 8008
7576 8009
7577 if test "$window_system" != "none"; then 8010 if test "$window_system" != "none"; then
7578 echo "checking for graphics libraries" 1>&6 8011 echo "checking for graphics libraries" 1>&6
7579 echo "configure:7580: checking for graphics libraries" >&5 8012 echo "configure:8013: checking for graphics libraries" >&5
7580 8013
7581 xpm_problem="" 8014 xpm_problem=""
7582 if test -z "$with_xpm"; then 8015 if test -z "$with_xpm"; then
7583 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 8016 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7584 echo "configure:7585: checking for Xpm - no older than 3.4f" >&5 8017 echo "configure:8018: checking for Xpm - no older than 3.4f" >&5
7585 xe_check_libs=-lXpm 8018 xe_check_libs=-lXpm
7586 cat > conftest.$ac_ext <<EOF 8019 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure" 8020 #line 8021 "configure"
7588 #include "confdefs.h" 8021 #include "confdefs.h"
7589 #define XPM_NUMBERS 8022 #define XPM_NUMBERS
7590 #include <X11/xpm.h> 8023 #include <X11/xpm.h>
7591 int main(int c, char **v) { 8024 int main(int c, char **v) {
7592 return c == 1 ? 0 : 8025 return c == 1 ? 0 :
7593 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 8026 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7594 XpmIncludeVersion < 30406 ? 2 : 0 ;} 8027 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7595 EOF 8028 EOF
7596 if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7597 then 8030 then
7598 ./conftest dummy_arg; xpm_status=$?; 8031 ./conftest dummy_arg; xpm_status=$?;
7599 if test "$xpm_status" = "0"; then 8032 if test "$xpm_status" = "0"; then
7600 with_xpm=yes; 8033 with_xpm=yes;
7601 else 8034 else
7633 EOF 8066 EOF
7634 } 8067 }
7635 8068
7636 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 8069 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7637 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 8070 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7638 echo "configure:7639: checking for \"FOR_MSW\" xpm" >&5 8071 echo "configure:8072: checking for \"FOR_MSW\" xpm" >&5
7639 xe_check_libs=-lXpm 8072 xe_check_libs=-lXpm
7640 cat > conftest.$ac_ext <<EOF 8073 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure" 8074 #line 8075 "configure"
7642 #include "confdefs.h" 8075 #include "confdefs.h"
7643 8076
7644 int main() { 8077 int main() {
7645 XpmCreatePixmapFromData() 8078 XpmCreatePixmapFromData()
7646 ; return 0; } 8079 ; return 0; }
7647 EOF 8080 EOF
7648 if { (eval echo configure:7649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7649 rm -rf conftest* 8082 rm -rf conftest*
7650 xpm_for_msw=no 8083 xpm_for_msw=no
7651 else 8084 else
7652 echo "configure: failed program was:" >&5 8085 echo "configure: failed program was:" >&5
7653 cat conftest.$ac_ext >&5 8086 cat conftest.$ac_ext >&5
7669 fi 8102 fi
7670 fi 8103 fi
7671 8104
7672 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 8105 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7673 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 8106 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7674 echo "configure:7675: checking for compface.h" >&5 8107 echo "configure:8108: checking for compface.h" >&5
7675 8108
7676 cat > conftest.$ac_ext <<EOF 8109 cat > conftest.$ac_ext <<EOF
7677 #line 7678 "configure" 8110 #line 8111 "configure"
7678 #include "confdefs.h" 8111 #include "confdefs.h"
7679 #include <compface.h> 8112 #include <compface.h>
7680 EOF 8113 EOF
7681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7682 { (eval echo configure:7683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8115 { (eval echo configure:8116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7684 if test -z "$ac_err"; then 8117 if test -z "$ac_err"; then
7685 rm -rf conftest* 8118 rm -rf conftest*
7686 eval "ac_cv_header_$ac_safe=yes" 8119 eval "ac_cv_header_$ac_safe=yes"
7687 else 8120 else
7700 with_xface=no 8133 with_xface=no
7701 fi 8134 fi
7702 } 8135 }
7703 test -z "$with_xface" && { 8136 test -z "$with_xface" && {
7704 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 8137 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7705 echo "configure:7706: checking for UnGenFace in -lcompface" >&5 8138 echo "configure:8139: checking for UnGenFace in -lcompface" >&5
7706 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 8139 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7707 8140
7708 xe_check_libs=" -lcompface " 8141 xe_check_libs=" -lcompface "
7709 cat > conftest.$ac_ext <<EOF 8142 cat > conftest.$ac_ext <<EOF
7710 #line 7711 "configure" 8143 #line 8144 "configure"
7711 #include "confdefs.h" 8144 #include "confdefs.h"
7712 /* Override any gcc2 internal prototype to avoid an error. */ 8145 /* Override any gcc2 internal prototype to avoid an error. */
7713 /* We use char because int might match the return type of a gcc2 8146 /* We use char because int might match the return type of a gcc2
7714 builtin and then its argument prototype would still apply. */ 8147 builtin and then its argument prototype would still apply. */
7715 char UnGenFace(); 8148 char UnGenFace();
7716 8149
7717 int main() { 8150 int main() {
7718 UnGenFace() 8151 UnGenFace()
7719 ; return 0; } 8152 ; return 0; }
7720 EOF 8153 EOF
7721 if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7722 rm -rf conftest* 8155 rm -rf conftest*
7723 eval "ac_cv_lib_$ac_lib_var=yes" 8156 eval "ac_cv_lib_$ac_lib_var=yes"
7724 else 8157 else
7725 echo "configure: failed program was:" >&5 8158 echo "configure: failed program was:" >&5
7726 cat conftest.$ac_ext >&5 8159 cat conftest.$ac_ext >&5
7768 fi 8201 fi
7769 8202
7770 if test "$with_png $with_tiff" != "no no"; then 8203 if test "$with_png $with_tiff" != "no no"; then
7771 8204
7772 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 8205 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
7773 echo "configure:7774: checking for inflate in -lc" >&5 8206 echo "configure:8207: checking for inflate in -lc" >&5
7774 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 8207 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
7775 8208
7776 xe_check_libs=" -lc " 8209 xe_check_libs=" -lc "
7777 cat > conftest.$ac_ext <<EOF 8210 cat > conftest.$ac_ext <<EOF
7778 #line 7779 "configure" 8211 #line 8212 "configure"
7779 #include "confdefs.h" 8212 #include "confdefs.h"
7780 /* Override any gcc2 internal prototype to avoid an error. */ 8213 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2 8214 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */ 8215 builtin and then its argument prototype would still apply. */
7783 char inflate(); 8216 char inflate();
7784 8217
7785 int main() { 8218 int main() {
7786 inflate() 8219 inflate()
7787 ; return 0; } 8220 ; return 0; }
7788 EOF 8221 EOF
7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7790 rm -rf conftest* 8223 rm -rf conftest*
7791 eval "ac_cv_lib_$ac_lib_var=yes" 8224 eval "ac_cv_lib_$ac_lib_var=yes"
7792 else 8225 else
7793 echo "configure: failed program was:" >&5 8226 echo "configure: failed program was:" >&5
7794 cat conftest.$ac_ext >&5 8227 cat conftest.$ac_ext >&5
7803 : 8236 :
7804 else 8237 else
7805 echo "$ac_t""no" 1>&6 8238 echo "$ac_t""no" 1>&6
7806 8239
7807 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 8240 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
7808 echo "configure:7809: checking for inflate in -lz" >&5 8241 echo "configure:8242: checking for inflate in -lz" >&5
7809 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 8242 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
7810 8243
7811 xe_check_libs=" -lz " 8244 xe_check_libs=" -lz "
7812 cat > conftest.$ac_ext <<EOF 8245 cat > conftest.$ac_ext <<EOF
7813 #line 7814 "configure" 8246 #line 8247 "configure"
7814 #include "confdefs.h" 8247 #include "confdefs.h"
7815 /* Override any gcc2 internal prototype to avoid an error. */ 8248 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2 8249 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */ 8250 builtin and then its argument prototype would still apply. */
7818 char inflate(); 8251 char inflate();
7819 8252
7820 int main() { 8253 int main() {
7821 inflate() 8254 inflate()
7822 ; return 0; } 8255 ; return 0; }
7823 EOF 8256 EOF
7824 if { (eval echo configure:7825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8257 if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7825 rm -rf conftest* 8258 rm -rf conftest*
7826 eval "ac_cv_lib_$ac_lib_var=yes" 8259 eval "ac_cv_lib_$ac_lib_var=yes"
7827 else 8260 else
7828 echo "configure: failed program was:" >&5 8261 echo "configure: failed program was:" >&5
7829 cat conftest.$ac_ext >&5 8262 cat conftest.$ac_ext >&5
7838 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 8271 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7839 else 8272 else
7840 echo "$ac_t""no" 1>&6 8273 echo "$ac_t""no" 1>&6
7841 8274
7842 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 8275 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7843 echo "configure:7844: checking for inflate in -lgz" >&5 8276 echo "configure:8277: checking for inflate in -lgz" >&5
7844 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 8277 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7845 8278
7846 xe_check_libs=" -lgz " 8279 xe_check_libs=" -lgz "
7847 cat > conftest.$ac_ext <<EOF 8280 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure" 8281 #line 8282 "configure"
7849 #include "confdefs.h" 8282 #include "confdefs.h"
7850 /* Override any gcc2 internal prototype to avoid an error. */ 8283 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2 8284 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */ 8285 builtin and then its argument prototype would still apply. */
7853 char inflate(); 8286 char inflate();
7854 8287
7855 int main() { 8288 int main() {
7856 inflate() 8289 inflate()
7857 ; return 0; } 8290 ; return 0; }
7858 EOF 8291 EOF
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8292 if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7860 rm -rf conftest* 8293 rm -rf conftest*
7861 eval "ac_cv_lib_$ac_lib_var=yes" 8294 eval "ac_cv_lib_$ac_lib_var=yes"
7862 else 8295 else
7863 echo "configure: failed program was:" >&5 8296 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5 8297 cat conftest.$ac_ext >&5
7884 8317
7885 fi 8318 fi
7886 8319
7887 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 8320 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7888 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 8321 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7889 echo "configure:7890: checking for jpeglib.h" >&5 8322 echo "configure:8323: checking for jpeglib.h" >&5
7890 8323
7891 cat > conftest.$ac_ext <<EOF 8324 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure" 8325 #line 8326 "configure"
7893 #include "confdefs.h" 8326 #include "confdefs.h"
7894 #include <jpeglib.h> 8327 #include <jpeglib.h>
7895 EOF 8328 EOF
7896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7897 { (eval echo configure:7898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7899 if test -z "$ac_err"; then 8332 if test -z "$ac_err"; then
7900 rm -rf conftest* 8333 rm -rf conftest*
7901 eval "ac_cv_header_$ac_safe=yes" 8334 eval "ac_cv_header_$ac_safe=yes"
7902 else 8335 else
7915 with_jpeg=no 8348 with_jpeg=no
7916 fi 8349 fi
7917 } 8350 }
7918 test -z "$with_jpeg" && { 8351 test -z "$with_jpeg" && {
7919 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 8352 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7920 echo "configure:7921: checking for jpeg_destroy_decompress in -ljpeg" >&5 8353 echo "configure:8354: checking for jpeg_destroy_decompress in -ljpeg" >&5
7921 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 8354 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7922 8355
7923 xe_check_libs=" -ljpeg " 8356 xe_check_libs=" -ljpeg "
7924 cat > conftest.$ac_ext <<EOF 8357 cat > conftest.$ac_ext <<EOF
7925 #line 7926 "configure" 8358 #line 8359 "configure"
7926 #include "confdefs.h" 8359 #include "confdefs.h"
7927 /* Override any gcc2 internal prototype to avoid an error. */ 8360 /* Override any gcc2 internal prototype to avoid an error. */
7928 /* We use char because int might match the return type of a gcc2 8361 /* We use char because int might match the return type of a gcc2
7929 builtin and then its argument prototype would still apply. */ 8362 builtin and then its argument prototype would still apply. */
7930 char jpeg_destroy_decompress(); 8363 char jpeg_destroy_decompress();
7931 8364
7932 int main() { 8365 int main() {
7933 jpeg_destroy_decompress() 8366 jpeg_destroy_decompress()
7934 ; return 0; } 8367 ; return 0; }
7935 EOF 8368 EOF
7936 if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7937 rm -rf conftest* 8370 rm -rf conftest*
7938 eval "ac_cv_lib_$ac_lib_var=yes" 8371 eval "ac_cv_lib_$ac_lib_var=yes"
7939 else 8372 else
7940 echo "configure: failed program was:" >&5 8373 echo "configure: failed program was:" >&5
7941 cat conftest.$ac_ext >&5 8374 cat conftest.$ac_ext >&5
7967 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 8400 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7968 fi 8401 fi
7969 8402
7970 png_problem="" 8403 png_problem=""
7971 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 8404 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7972 echo "configure:7973: checking for pow" >&5 8405 echo "configure:8406: checking for pow" >&5
7973 8406
7974 cat > conftest.$ac_ext <<EOF 8407 cat > conftest.$ac_ext <<EOF
7975 #line 7976 "configure" 8408 #line 8409 "configure"
7976 #include "confdefs.h" 8409 #include "confdefs.h"
7977 /* System header to define __stub macros and hopefully few prototypes, 8410 /* System header to define __stub macros and hopefully few prototypes,
7978 which can conflict with char pow(); below. */ 8411 which can conflict with char pow(); below. */
7979 #include <assert.h> 8412 #include <assert.h>
7980 /* Override any gcc2 internal prototype to avoid an error. */ 8413 /* Override any gcc2 internal prototype to avoid an error. */
7993 pow(); 8426 pow();
7994 #endif 8427 #endif
7995 8428
7996 ; return 0; } 8429 ; return 0; }
7997 EOF 8430 EOF
7998 if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8431 if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7999 rm -rf conftest* 8432 rm -rf conftest*
8000 eval "ac_cv_func_pow=yes" 8433 eval "ac_cv_func_pow=yes"
8001 else 8434 else
8002 echo "configure: failed program was:" >&5 8435 echo "configure: failed program was:" >&5
8003 cat conftest.$ac_ext >&5 8436 cat conftest.$ac_ext >&5
8014 with_png=no 8447 with_png=no
8015 fi 8448 fi
8016 } 8449 }
8017 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 8450 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8018 echo $ac_n "checking for png.h""... $ac_c" 1>&6 8451 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8019 echo "configure:8020: checking for png.h" >&5 8452 echo "configure:8453: checking for png.h" >&5
8020 8453
8021 cat > conftest.$ac_ext <<EOF 8454 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure" 8455 #line 8456 "configure"
8023 #include "confdefs.h" 8456 #include "confdefs.h"
8024 #include <png.h> 8457 #include <png.h>
8025 EOF 8458 EOF
8026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8027 { (eval echo configure:8028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8460 { (eval echo configure:8461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8029 if test -z "$ac_err"; then 8462 if test -z "$ac_err"; then
8030 rm -rf conftest* 8463 rm -rf conftest*
8031 eval "ac_cv_header_$ac_safe=yes" 8464 eval "ac_cv_header_$ac_safe=yes"
8032 else 8465 else
8045 with_png=no 8478 with_png=no
8046 fi 8479 fi
8047 } 8480 }
8048 test -z "$with_png" && { 8481 test -z "$with_png" && {
8049 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 8482 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8050 echo "configure:8051: checking for png_read_image in -lpng" >&5 8483 echo "configure:8484: checking for png_read_image in -lpng" >&5
8051 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 8484 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8052 8485
8053 xe_check_libs=" -lpng " 8486 xe_check_libs=" -lpng "
8054 cat > conftest.$ac_ext <<EOF 8487 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure" 8488 #line 8489 "configure"
8056 #include "confdefs.h" 8489 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */ 8490 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2 8491 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */ 8492 builtin and then its argument prototype would still apply. */
8060 char png_read_image(); 8493 char png_read_image();
8061 8494
8062 int main() { 8495 int main() {
8063 png_read_image() 8496 png_read_image()
8064 ; return 0; } 8497 ; return 0; }
8065 EOF 8498 EOF
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8499 if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8067 rm -rf conftest* 8500 rm -rf conftest*
8068 eval "ac_cv_lib_$ac_lib_var=yes" 8501 eval "ac_cv_lib_$ac_lib_var=yes"
8069 else 8502 else
8070 echo "configure: failed program was:" >&5 8503 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5 8504 cat conftest.$ac_ext >&5
8084 fi 8517 fi
8085 8518
8086 } 8519 }
8087 if test -z "$with_png"; then 8520 if test -z "$with_png"; then
8088 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 8521 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8089 echo "configure:8090: checking for workable png version information" >&5 8522 echo "configure:8523: checking for workable png version information" >&5
8090 xe_check_libs="-lpng -lz" 8523 xe_check_libs="-lpng -lz"
8091 cat > conftest.$ac_ext <<EOF 8524 cat > conftest.$ac_ext <<EOF
8092 #line 8093 "configure" 8525 #line 8526 "configure"
8093 #include "confdefs.h" 8526 #include "confdefs.h"
8094 #include <png.h> 8527 #include <png.h>
8095 int main(int c, char **v) { 8528 int main(int c, char **v) {
8096 if (c == 1) return 0; 8529 if (c == 1) return 0;
8097 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 8530 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8098 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 8531 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8099 EOF 8532 EOF
8100 if { (eval echo configure:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8101 then 8534 then
8102 ./conftest dummy_arg; png_status=$?; 8535 ./conftest dummy_arg; png_status=$?;
8103 if test "$png_status" = "0"; then 8536 if test "$png_status" = "0"; then
8104 with_png=yes; 8537 with_png=yes;
8105 else 8538 else
8138 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 8571 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8139 fi 8572 fi
8140 8573
8141 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 8574 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8142 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 8575 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8143 echo "configure:8144: checking for tiffio.h" >&5 8576 echo "configure:8577: checking for tiffio.h" >&5
8144 8577
8145 cat > conftest.$ac_ext <<EOF 8578 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure" 8579 #line 8580 "configure"
8147 #include "confdefs.h" 8580 #include "confdefs.h"
8148 #include <tiffio.h> 8581 #include <tiffio.h>
8149 EOF 8582 EOF
8150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8151 { (eval echo configure:8152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8584 { (eval echo configure:8585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8152 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8153 if test -z "$ac_err"; then 8586 if test -z "$ac_err"; then
8154 rm -rf conftest* 8587 rm -rf conftest*
8155 eval "ac_cv_header_$ac_safe=yes" 8588 eval "ac_cv_header_$ac_safe=yes"
8156 else 8589 else
8169 with_tiff=no 8602 with_tiff=no
8170 fi 8603 fi
8171 } 8604 }
8172 test -z "$with_tiff" && { 8605 test -z "$with_tiff" && {
8173 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 8606 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8174 echo "configure:8175: checking for TIFFClientOpen in -ltiff" >&5 8607 echo "configure:8608: checking for TIFFClientOpen in -ltiff" >&5
8175 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 8608 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8176 8609
8177 xe_check_libs=" -ltiff " 8610 xe_check_libs=" -ltiff "
8178 cat > conftest.$ac_ext <<EOF 8611 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure" 8612 #line 8613 "configure"
8180 #include "confdefs.h" 8613 #include "confdefs.h"
8181 /* Override any gcc2 internal prototype to avoid an error. */ 8614 /* Override any gcc2 internal prototype to avoid an error. */
8182 /* We use char because int might match the return type of a gcc2 8615 /* We use char because int might match the return type of a gcc2
8183 builtin and then its argument prototype would still apply. */ 8616 builtin and then its argument prototype would still apply. */
8184 char TIFFClientOpen(); 8617 char TIFFClientOpen();
8185 8618
8186 int main() { 8619 int main() {
8187 TIFFClientOpen() 8620 TIFFClientOpen()
8188 ; return 0; } 8621 ; return 0; }
8189 EOF 8622 EOF
8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8623 if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8191 rm -rf conftest* 8624 rm -rf conftest*
8192 eval "ac_cv_lib_$ac_lib_var=yes" 8625 eval "ac_cv_lib_$ac_lib_var=yes"
8193 else 8626 else
8194 echo "configure: failed program was:" >&5 8627 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5 8628 cat conftest.$ac_ext >&5
8221 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 8654 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
8222 fi 8655 fi
8223 fi 8656 fi
8224 8657
8225 8658
8659 if test "$with_gtk" = "yes"; then
8660 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8661 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8662 echo "configure:8663: checking for compface.h" >&5
8663
8664 cat > conftest.$ac_ext <<EOF
8665 #line 8666 "configure"
8666 #include "confdefs.h"
8667 #include <compface.h>
8668 EOF
8669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8670 { (eval echo configure:8671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8672 if test -z "$ac_err"; then
8673 rm -rf conftest*
8674 eval "ac_cv_header_$ac_safe=yes"
8675 else
8676 echo "$ac_err" >&5
8677 echo "configure: failed program was:" >&5
8678 cat conftest.$ac_ext >&5
8679 rm -rf conftest*
8680 eval "ac_cv_header_$ac_safe=no"
8681 fi
8682 rm -f conftest*
8683 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8684 echo "$ac_t""yes" 1>&6
8685 :
8686 else
8687 echo "$ac_t""no" 1>&6
8688 with_xface=no
8689 fi
8690 }
8691 test -z "$with_xface" && {
8692 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8693 echo "configure:8694: checking for UnGenFace in -lcompface" >&5
8694 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8695
8696 xe_check_libs=" -lcompface "
8697 cat > conftest.$ac_ext <<EOF
8698 #line 8699 "configure"
8699 #include "confdefs.h"
8700 /* Override any gcc2 internal prototype to avoid an error. */
8701 /* We use char because int might match the return type of a gcc2
8702 builtin and then its argument prototype would still apply. */
8703 char UnGenFace();
8704
8705 int main() {
8706 UnGenFace()
8707 ; return 0; }
8708 EOF
8709 if { (eval echo configure:8710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8710 rm -rf conftest*
8711 eval "ac_cv_lib_$ac_lib_var=yes"
8712 else
8713 echo "configure: failed program was:" >&5
8714 cat conftest.$ac_ext >&5
8715 rm -rf conftest*
8716 eval "ac_cv_lib_$ac_lib_var=no"
8717 fi
8718 rm -f conftest*
8719 xe_check_libs=""
8720
8721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8722 echo "$ac_t""yes" 1>&6
8723 :
8724 else
8725 echo "$ac_t""no" 1>&6
8726 with_xface=no
8727 fi
8728
8729 }
8730 test -z "$with_xface" && with_xface=yes
8731 if test "$with_xface" = "yes"; then
8732 { test "$extra_verbose" = "yes" && cat << \EOF
8733 Defining HAVE_XFACE
8734 EOF
8735 cat >> confdefs.h <<\EOF
8736 #define HAVE_XFACE 1
8737 EOF
8738 }
8739
8740 libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi
8741 fi
8742 fi
8743
8744
8745
8226 if test "$with_x11" = "yes"; then 8746 if test "$with_x11" = "yes"; then
8227 8747
8228 echo "checking for X11 graphics libraries" 1>&6 8748 echo "checking for X11 graphics libraries" 1>&6
8229 echo "configure:8230: checking for X11 graphics libraries" >&5 8749 echo "configure:8750: checking for X11 graphics libraries" >&5
8230 8750
8231 echo "checking for the Athena widgets" 1>&6 8751 echo "checking for the Athena widgets" 1>&6
8232 echo "configure:8233: checking for the Athena widgets" >&5 8752 echo "configure:8753: checking for the Athena widgets" >&5
8233 8753
8234 case "$with_athena" in 8754 case "$with_athena" in
8235 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 8755 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8236 "3d") athena_variant=Xaw3d athena_3d=yes ;; 8756 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8237 "next") athena_variant=neXtaw athena_3d=yes ;; 8757 "next") athena_variant=neXtaw athena_3d=yes ;;
8241 esac 8761 esac
8242 8762
8243 if test "$athena_3d" = "no"; then 8763 if test "$athena_3d" = "no"; then
8244 8764
8245 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 8765 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8246 echo "configure:8247: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 8766 echo "configure:8767: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8247 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 8767 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8248 8768
8249 xe_check_libs=" -l$athena_variant " 8769 xe_check_libs=" -l$athena_variant "
8250 cat > conftest.$ac_ext <<EOF 8770 cat > conftest.$ac_ext <<EOF
8251 #line 8252 "configure" 8771 #line 8772 "configure"
8252 #include "confdefs.h" 8772 #include "confdefs.h"
8253 /* Override any gcc2 internal prototype to avoid an error. */ 8773 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2 8774 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */ 8775 builtin and then its argument prototype would still apply. */
8256 char XawScrollbarSetThumb(); 8776 char XawScrollbarSetThumb();
8257 8777
8258 int main() { 8778 int main() {
8259 XawScrollbarSetThumb() 8779 XawScrollbarSetThumb()
8260 ; return 0; } 8780 ; return 0; }
8261 EOF 8781 EOF
8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8782 if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8263 rm -rf conftest* 8783 rm -rf conftest*
8264 eval "ac_cv_lib_$ac_lib_var=yes" 8784 eval "ac_cv_lib_$ac_lib_var=yes"
8265 else 8785 else
8266 echo "configure: failed program was:" >&5 8786 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5 8787 cat conftest.$ac_ext >&5
8273 8793
8274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 8794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8275 echo "$ac_t""yes" 1>&6 8795 echo "$ac_t""yes" 1>&6
8276 8796
8277 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8797 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8278 echo "configure:8279: checking for threeDClassRec in -l$athena_variant" >&5 8798 echo "configure:8799: checking for threeDClassRec in -l$athena_variant" >&5
8279 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8799 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8280 8800
8281 xe_check_libs=" -l$athena_variant " 8801 xe_check_libs=" -l$athena_variant "
8282 cat > conftest.$ac_ext <<EOF 8802 cat > conftest.$ac_ext <<EOF
8283 #line 8284 "configure" 8803 #line 8804 "configure"
8284 #include "confdefs.h" 8804 #include "confdefs.h"
8285 /* Override any gcc2 internal prototype to avoid an error. */ 8805 /* Override any gcc2 internal prototype to avoid an error. */
8286 /* We use char because int might match the return type of a gcc2 8806 /* We use char because int might match the return type of a gcc2
8287 builtin and then its argument prototype would still apply. */ 8807 builtin and then its argument prototype would still apply. */
8288 char threeDClassRec(); 8808 char threeDClassRec();
8289 8809
8290 int main() { 8810 int main() {
8291 threeDClassRec() 8811 threeDClassRec()
8292 ; return 0; } 8812 ; return 0; }
8293 EOF 8813 EOF
8294 if { (eval echo configure:8295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8814 if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8295 rm -rf conftest* 8815 rm -rf conftest*
8296 eval "ac_cv_lib_$ac_lib_var=yes" 8816 eval "ac_cv_lib_$ac_lib_var=yes"
8297 else 8817 else
8298 echo "configure: failed program was:" >&5 8818 echo "configure: failed program was:" >&5
8299 cat conftest.$ac_ext >&5 8819 cat conftest.$ac_ext >&5
8320 8840
8321 8841
8322 else 8842 else
8323 8843
8324 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 8844 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8325 echo "configure:8326: checking for threeDClassRec in -l$athena_variant" >&5 8845 echo "configure:8846: checking for threeDClassRec in -l$athena_variant" >&5
8326 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 8846 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8327 8847
8328 xe_check_libs=" -l$athena_variant " 8848 xe_check_libs=" -l$athena_variant "
8329 cat > conftest.$ac_ext <<EOF 8849 cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure" 8850 #line 8851 "configure"
8331 #include "confdefs.h" 8851 #include "confdefs.h"
8332 /* Override any gcc2 internal prototype to avoid an error. */ 8852 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2 8853 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */ 8854 builtin and then its argument prototype would still apply. */
8335 char threeDClassRec(); 8855 char threeDClassRec();
8336 8856
8337 int main() { 8857 int main() {
8338 threeDClassRec() 8858 threeDClassRec()
8339 ; return 0; } 8859 ; return 0; }
8340 EOF 8860 EOF
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 rm -rf conftest* 8862 rm -rf conftest*
8343 eval "ac_cv_lib_$ac_lib_var=yes" 8863 eval "ac_cv_lib_$ac_lib_var=yes"
8344 else 8864 else
8345 echo "configure: failed program was:" >&5 8865 echo "configure: failed program was:" >&5
8346 cat conftest.$ac_ext >&5 8866 cat conftest.$ac_ext >&5
8354 echo "$ac_t""yes" 1>&6 8874 echo "$ac_t""yes" 1>&6
8355 athena_lib=$athena_variant 8875 athena_lib=$athena_variant
8356 else 8876 else
8357 echo "$ac_t""no" 1>&6 8877 echo "$ac_t""no" 1>&6
8358 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 8878 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8359 echo "configure:8360: checking for threeDClassRec in -lXaw" >&5 8879 echo "configure:8880: checking for threeDClassRec in -lXaw" >&5
8360 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 8880 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8361 8881
8362 xe_check_libs=" -lXaw " 8882 xe_check_libs=" -lXaw "
8363 cat > conftest.$ac_ext <<EOF 8883 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure" 8884 #line 8885 "configure"
8365 #include "confdefs.h" 8885 #include "confdefs.h"
8366 /* Override any gcc2 internal prototype to avoid an error. */ 8886 /* Override any gcc2 internal prototype to avoid an error. */
8367 /* We use char because int might match the return type of a gcc2 8887 /* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */ 8888 builtin and then its argument prototype would still apply. */
8369 char threeDClassRec(); 8889 char threeDClassRec();
8370 8890
8371 int main() { 8891 int main() {
8372 threeDClassRec() 8892 threeDClassRec()
8373 ; return 0; } 8893 ; return 0; }
8374 EOF 8894 EOF
8375 if { (eval echo configure:8376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8895 if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8376 rm -rf conftest* 8896 rm -rf conftest*
8377 eval "ac_cv_lib_$ac_lib_var=yes" 8897 eval "ac_cv_lib_$ac_lib_var=yes"
8378 else 8898 else
8379 echo "configure: failed program was:" >&5 8899 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5 8900 cat conftest.$ac_ext >&5
8401 fi 8921 fi
8402 8922
8403 if test "$athena_3d" = "no"; then 8923 if test "$athena_3d" = "no"; then
8404 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 8924 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8405 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 8925 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8406 echo "configure:8407: checking for X11/Xaw/ThreeD.h" >&5 8926 echo "configure:8927: checking for X11/Xaw/ThreeD.h" >&5
8407 8927
8408 cat > conftest.$ac_ext <<EOF 8928 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure" 8929 #line 8930 "configure"
8410 #include "confdefs.h" 8930 #include "confdefs.h"
8411 #include <X11/Xaw/ThreeD.h> 8931 #include <X11/Xaw/ThreeD.h>
8412 EOF 8932 EOF
8413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8414 { (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8934 { (eval echo configure:8935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8416 if test -z "$ac_err"; then 8936 if test -z "$ac_err"; then
8417 rm -rf conftest* 8937 rm -rf conftest*
8418 eval "ac_cv_header_$ac_safe=yes" 8938 eval "ac_cv_header_$ac_safe=yes"
8419 else 8939 else
8429 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2 8949 echo "configure: warning: "Could not find a non-3d Athena header set."" 1>&2
8430 else 8950 else
8431 echo "$ac_t""no" 1>&6 8951 echo "$ac_t""no" 1>&6
8432 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 8952 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8433 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 8953 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8434 echo "configure:8435: checking for X11/Xaw/XawInit.h" >&5 8954 echo "configure:8955: checking for X11/Xaw/XawInit.h" >&5
8435 8955
8436 cat > conftest.$ac_ext <<EOF 8956 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure" 8957 #line 8958 "configure"
8438 #include "confdefs.h" 8958 #include "confdefs.h"
8439 #include <X11/Xaw/XawInit.h> 8959 #include <X11/Xaw/XawInit.h>
8440 EOF 8960 EOF
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8962 { (eval echo configure:8963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then 8964 if test -z "$ac_err"; then
8445 rm -rf conftest* 8965 rm -rf conftest*
8446 eval "ac_cv_header_$ac_safe=yes" 8966 eval "ac_cv_header_$ac_safe=yes"
8447 else 8967 else
8463 fi 8983 fi
8464 8984
8465 else 8985 else
8466 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 8986 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8467 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 8987 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8468 echo "configure:8469: checking for X11/$athena_variant/XawInit.h" >&5 8988 echo "configure:8989: checking for X11/$athena_variant/XawInit.h" >&5
8469 8989
8470 cat > conftest.$ac_ext <<EOF 8990 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure" 8991 #line 8992 "configure"
8472 #include "confdefs.h" 8992 #include "confdefs.h"
8473 #include <X11/$athena_variant/XawInit.h> 8993 #include <X11/$athena_variant/XawInit.h>
8474 EOF 8994 EOF
8475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8476 { (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8996 { (eval echo configure:8997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8478 if test -z "$ac_err"; then 8998 if test -z "$ac_err"; then
8479 rm -rf conftest* 8999 rm -rf conftest*
8480 eval "ac_cv_header_$ac_safe=yes" 9000 eval "ac_cv_header_$ac_safe=yes"
8481 else 9001 else
8488 rm -f conftest* 9008 rm -f conftest*
8489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8490 echo "$ac_t""yes" 1>&6 9010 echo "$ac_t""yes" 1>&6
8491 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9011 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8492 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 9012 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8493 echo "configure:8494: checking for X11/$athena_variant/ThreeD.h" >&5 9013 echo "configure:9014: checking for X11/$athena_variant/ThreeD.h" >&5
8494 9014
8495 cat > conftest.$ac_ext <<EOF 9015 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure" 9016 #line 9017 "configure"
8497 #include "confdefs.h" 9017 #include "confdefs.h"
8498 #include <X11/$athena_variant/ThreeD.h> 9018 #include <X11/$athena_variant/ThreeD.h>
8499 EOF 9019 EOF
8500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8501 { (eval echo configure:8502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9021 { (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8503 if test -z "$ac_err"; then 9023 if test -z "$ac_err"; then
8504 rm -rf conftest* 9024 rm -rf conftest*
8505 eval "ac_cv_header_$ac_safe=yes" 9025 eval "ac_cv_header_$ac_safe=yes"
8506 else 9026 else
8524 9044
8525 9045
8526 if test -z "$athena_h_path"; then 9046 if test -z "$athena_h_path"; then
8527 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 9047 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8528 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 9048 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8529 echo "configure:8530: checking for $athena_variant/XawInit.h" >&5 9049 echo "configure:9050: checking for $athena_variant/XawInit.h" >&5
8530 9050
8531 cat > conftest.$ac_ext <<EOF 9051 cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure" 9052 #line 9053 "configure"
8533 #include "confdefs.h" 9053 #include "confdefs.h"
8534 #include <$athena_variant/XawInit.h> 9054 #include <$athena_variant/XawInit.h>
8535 EOF 9055 EOF
8536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8537 { (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9057 { (eval echo configure:9058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8539 if test -z "$ac_err"; then 9059 if test -z "$ac_err"; then
8540 rm -rf conftest* 9060 rm -rf conftest*
8541 eval "ac_cv_header_$ac_safe=yes" 9061 eval "ac_cv_header_$ac_safe=yes"
8542 else 9062 else
8549 rm -f conftest* 9069 rm -f conftest*
8550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8551 echo "$ac_t""yes" 1>&6 9071 echo "$ac_t""yes" 1>&6
8552 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 9072 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8553 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 9073 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8554 echo "configure:8555: checking for $athena_variant/ThreeD.h" >&5 9074 echo "configure:9075: checking for $athena_variant/ThreeD.h" >&5
8555 9075
8556 cat > conftest.$ac_ext <<EOF 9076 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure" 9077 #line 9078 "configure"
8558 #include "confdefs.h" 9078 #include "confdefs.h"
8559 #include <$athena_variant/ThreeD.h> 9079 #include <$athena_variant/ThreeD.h>
8560 EOF 9080 EOF
8561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8562 { (eval echo configure:8563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9082 { (eval echo configure:9083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8564 if test -z "$ac_err"; then 9084 if test -z "$ac_err"; then
8565 rm -rf conftest* 9085 rm -rf conftest*
8566 eval "ac_cv_header_$ac_safe=yes" 9086 eval "ac_cv_header_$ac_safe=yes"
8567 else 9087 else
8586 fi 9106 fi
8587 9107
8588 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9108 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8589 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9109 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8590 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 9110 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8591 echo "configure:8592: checking for X11/Xaw3d/XawInit.h" >&5 9111 echo "configure:9112: checking for X11/Xaw3d/XawInit.h" >&5
8592 9112
8593 cat > conftest.$ac_ext <<EOF 9113 cat > conftest.$ac_ext <<EOF
8594 #line 8595 "configure" 9114 #line 9115 "configure"
8595 #include "confdefs.h" 9115 #include "confdefs.h"
8596 #include <X11/Xaw3d/XawInit.h> 9116 #include <X11/Xaw3d/XawInit.h>
8597 EOF 9117 EOF
8598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8599 { (eval echo configure:8600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9119 { (eval echo configure:9120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8601 if test -z "$ac_err"; then 9121 if test -z "$ac_err"; then
8602 rm -rf conftest* 9122 rm -rf conftest*
8603 eval "ac_cv_header_$ac_safe=yes" 9123 eval "ac_cv_header_$ac_safe=yes"
8604 else 9124 else
8611 rm -f conftest* 9131 rm -f conftest*
8612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6 9133 echo "$ac_t""yes" 1>&6
8614 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9134 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8615 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 9135 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
8616 echo "configure:8617: checking for X11/Xaw3d/ThreeD.h" >&5 9136 echo "configure:9137: checking for X11/Xaw3d/ThreeD.h" >&5
8617 9137
8618 cat > conftest.$ac_ext <<EOF 9138 cat > conftest.$ac_ext <<EOF
8619 #line 8620 "configure" 9139 #line 9140 "configure"
8620 #include "confdefs.h" 9140 #include "confdefs.h"
8621 #include <X11/Xaw3d/ThreeD.h> 9141 #include <X11/Xaw3d/ThreeD.h>
8622 EOF 9142 EOF
8623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9143 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8624 { (eval echo configure:8625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9144 { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9145 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8626 if test -z "$ac_err"; then 9146 if test -z "$ac_err"; then
8627 rm -rf conftest* 9147 rm -rf conftest*
8628 eval "ac_cv_header_$ac_safe=yes" 9148 eval "ac_cv_header_$ac_safe=yes"
8629 else 9149 else
8651 fi 9171 fi
8652 9172
8653 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 9173 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8654 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 9174 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8655 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 9175 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
8656 echo "configure:8657: checking for Xaw3d/XawInit.h" >&5 9176 echo "configure:9177: checking for Xaw3d/XawInit.h" >&5
8657 9177
8658 cat > conftest.$ac_ext <<EOF 9178 cat > conftest.$ac_ext <<EOF
8659 #line 8660 "configure" 9179 #line 9180 "configure"
8660 #include "confdefs.h" 9180 #include "confdefs.h"
8661 #include <Xaw3d/XawInit.h> 9181 #include <Xaw3d/XawInit.h>
8662 EOF 9182 EOF
8663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8664 { (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9184 { (eval echo configure:9185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8666 if test -z "$ac_err"; then 9186 if test -z "$ac_err"; then
8667 rm -rf conftest* 9187 rm -rf conftest*
8668 eval "ac_cv_header_$ac_safe=yes" 9188 eval "ac_cv_header_$ac_safe=yes"
8669 else 9189 else
8676 rm -f conftest* 9196 rm -f conftest*
8677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8678 echo "$ac_t""yes" 1>&6 9198 echo "$ac_t""yes" 1>&6
8679 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 9199 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
8680 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 9200 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
8681 echo "configure:8682: checking for Xaw3d/ThreeD.h" >&5 9201 echo "configure:9202: checking for Xaw3d/ThreeD.h" >&5
8682 9202
8683 cat > conftest.$ac_ext <<EOF 9203 cat > conftest.$ac_ext <<EOF
8684 #line 8685 "configure" 9204 #line 9205 "configure"
8685 #include "confdefs.h" 9205 #include "confdefs.h"
8686 #include <Xaw3d/ThreeD.h> 9206 #include <Xaw3d/ThreeD.h>
8687 EOF 9207 EOF
8688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8689 { (eval echo configure:8690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9209 { (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8691 if test -z "$ac_err"; then 9211 if test -z "$ac_err"; then
8692 rm -rf conftest* 9212 rm -rf conftest*
8693 eval "ac_cv_header_$ac_safe=yes" 9213 eval "ac_cv_header_$ac_safe=yes"
8694 else 9214 else
8716 fi 9236 fi
8717 9237
8718 if test -z "$athena_h_path"; then 9238 if test -z "$athena_h_path"; then
8719 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 9239 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8720 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 9240 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8721 echo "configure:8722: checking for X11/Xaw/ThreeD.h" >&5 9241 echo "configure:9242: checking for X11/Xaw/ThreeD.h" >&5
8722 9242
8723 cat > conftest.$ac_ext <<EOF 9243 cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure" 9244 #line 9245 "configure"
8725 #include "confdefs.h" 9245 #include "confdefs.h"
8726 #include <X11/Xaw/ThreeD.h> 9246 #include <X11/Xaw/ThreeD.h>
8727 EOF 9247 EOF
8728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8729 { (eval echo configure:8730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9249 { (eval echo configure:9250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8731 if test -z "$ac_err"; then 9251 if test -z "$ac_err"; then
8732 rm -rf conftest* 9252 rm -rf conftest*
8733 eval "ac_cv_header_$ac_safe=yes" 9253 eval "ac_cv_header_$ac_safe=yes"
8734 else 9254 else
8759 have_xaw=no 9279 have_xaw=no
8760 fi 9280 fi
8761 9281
8762 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 9282 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
8763 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 9283 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
8764 echo "configure:8765: checking for Xm/Xm.h" >&5 9284 echo "configure:9285: checking for Xm/Xm.h" >&5
8765 9285
8766 cat > conftest.$ac_ext <<EOF 9286 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure" 9287 #line 9288 "configure"
8768 #include "confdefs.h" 9288 #include "confdefs.h"
8769 #include <Xm/Xm.h> 9289 #include <Xm/Xm.h>
8770 EOF 9290 EOF
8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9291 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9292 { (eval echo configure:9293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9293 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8774 if test -z "$ac_err"; then 9294 if test -z "$ac_err"; then
8775 rm -rf conftest* 9295 rm -rf conftest*
8776 eval "ac_cv_header_$ac_safe=yes" 9296 eval "ac_cv_header_$ac_safe=yes"
8777 else 9297 else
8784 rm -f conftest* 9304 rm -f conftest*
8785 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8786 echo "$ac_t""yes" 1>&6 9306 echo "$ac_t""yes" 1>&6
8787 9307
8788 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 9308 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
8789 echo "configure:8790: checking for XmStringFree in -lXm" >&5 9309 echo "configure:9310: checking for XmStringFree in -lXm" >&5
8790 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 9310 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
8791 9311
8792 xe_check_libs=" -lXm " 9312 xe_check_libs=" -lXm "
8793 cat > conftest.$ac_ext <<EOF 9313 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure" 9314 #line 9315 "configure"
8795 #include "confdefs.h" 9315 #include "confdefs.h"
8796 /* Override any gcc2 internal prototype to avoid an error. */ 9316 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2 9317 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */ 9318 builtin and then its argument prototype would still apply. */
8799 char XmStringFree(); 9319 char XmStringFree();
8800 9320
8801 int main() { 9321 int main() {
8802 XmStringFree() 9322 XmStringFree()
8803 ; return 0; } 9323 ; return 0; }
8804 EOF 9324 EOF
8805 if { (eval echo configure:8806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8806 rm -rf conftest* 9326 rm -rf conftest*
8807 eval "ac_cv_lib_$ac_lib_var=yes" 9327 eval "ac_cv_lib_$ac_lib_var=yes"
8808 else 9328 else
8809 echo "configure: failed program was:" >&5 9329 echo "configure: failed program was:" >&5
8810 cat conftest.$ac_ext >&5 9330 cat conftest.$ac_ext >&5
8829 fi 9349 fi
8830 9350
8831 9351
8832 if test "$have_motif" = "yes"; then 9352 if test "$have_motif" = "yes"; then
8833 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 9353 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
8834 echo "configure:8835: checking for Lesstif" >&5 9354 echo "configure:9355: checking for Lesstif" >&5
8835 cat > conftest.$ac_ext <<EOF 9355 cat > conftest.$ac_ext <<EOF
8836 #line 8837 "configure" 9356 #line 9357 "configure"
8837 #include "confdefs.h" 9357 #include "confdefs.h"
8838 #include <Xm/Xm.h> 9358 #include <Xm/Xm.h>
8839 #ifdef LESSTIF_VERSION 9359 #ifdef LESSTIF_VERSION
8840 yes 9360 yes
8841 #endif 9361 #endif
9198 fi 9718 fi
9199 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then 9719 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if test "$extra_verbose" = "yes"; then
9200 echo " xemacs will be linked with \"toolbar.o\"" 9720 echo " xemacs will be linked with \"toolbar.o\""
9201 fi 9721 fi
9202 9722
9723 if test "$with_gtk" = "yes"; then
9724 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then
9725 echo " xemacs will be linked with \"menubar-gtk.o\""
9726 fi
9727 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9728 echo " xemacs will be linked with \"scrollbar-gtk.o\""
9729 fi
9730 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then
9731 echo " xemacs will be linked with \"dialog-gtk.o\""
9732 fi
9733 test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then
9734 echo " xemacs will be linked with \"toolbar-gtk.o\""
9735 fi
9736 test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then
9737 echo " xemacs will be linked with \"gui-gtk.o\""
9738 fi
9739 fi
9740
9203 if test "$with_x11" = "yes"; then 9741 if test "$with_x11" = "yes"; then
9204 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then 9742 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then
9205 echo " xemacs will be linked with \"menubar-x.o\"" 9743 echo " xemacs will be linked with \"menubar-x.o\""
9206 fi 9744 fi
9207 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then 9745 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-x.o" && if test "$extra_verbose" = "yes"; then
9237 fi 9775 fi
9238 fi 9776 fi
9239 9777
9240 if test "$with_mule" = "yes" ; then 9778 if test "$with_mule" = "yes" ; then
9241 echo "checking for Mule-related features" 1>&6 9779 echo "checking for Mule-related features" 1>&6
9242 echo "configure:9243: checking for Mule-related features" >&5 9780 echo "configure:9781: checking for Mule-related features" >&5
9243 { test "$extra_verbose" = "yes" && cat << \EOF 9781 { test "$extra_verbose" = "yes" && cat << \EOF
9244 Defining MULE 9782 Defining MULE
9245 EOF 9783 EOF
9246 cat >> confdefs.h <<\EOF 9784 cat >> confdefs.h <<\EOF
9247 #define MULE 1 9785 #define MULE 1
9262 9800
9263 for ac_hdr in libintl.h 9801 for ac_hdr in libintl.h
9264 do 9802 do
9265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9803 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9804 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9267 echo "configure:9268: checking for $ac_hdr" >&5 9805 echo "configure:9806: checking for $ac_hdr" >&5
9268 9806
9269 cat > conftest.$ac_ext <<EOF 9807 cat > conftest.$ac_ext <<EOF
9270 #line 9271 "configure" 9808 #line 9809 "configure"
9271 #include "confdefs.h" 9809 #include "confdefs.h"
9272 #include <$ac_hdr> 9810 #include <$ac_hdr>
9273 EOF 9811 EOF
9274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9275 { (eval echo configure:9276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9813 { (eval echo configure:9814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9277 if test -z "$ac_err"; then 9815 if test -z "$ac_err"; then
9278 rm -rf conftest* 9816 rm -rf conftest*
9279 eval "ac_cv_header_$ac_safe=yes" 9817 eval "ac_cv_header_$ac_safe=yes"
9280 else 9818 else
9301 fi 9839 fi
9302 done 9840 done
9303 9841
9304 9842
9305 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9843 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9306 echo "configure:9307: checking for strerror in -lintl" >&5 9844 echo "configure:9845: checking for strerror in -lintl" >&5
9307 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9845 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9308 9846
9309 xe_check_libs=" -lintl " 9847 xe_check_libs=" -lintl "
9310 cat > conftest.$ac_ext <<EOF 9848 cat > conftest.$ac_ext <<EOF
9311 #line 9312 "configure" 9849 #line 9850 "configure"
9312 #include "confdefs.h" 9850 #include "confdefs.h"
9313 /* Override any gcc2 internal prototype to avoid an error. */ 9851 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2 9852 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */ 9853 builtin and then its argument prototype would still apply. */
9316 char strerror(); 9854 char strerror();
9317 9855
9318 int main() { 9856 int main() {
9319 strerror() 9857 strerror()
9320 ; return 0; } 9858 ; return 0; }
9321 EOF 9859 EOF
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9323 rm -rf conftest* 9861 rm -rf conftest*
9324 eval "ac_cv_lib_$ac_lib_var=yes" 9862 eval "ac_cv_lib_$ac_lib_var=yes"
9325 else 9863 else
9326 echo "configure: failed program was:" >&5 9864 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5 9865 cat conftest.$ac_ext >&5
9350 fi 9888 fi
9351 9889
9352 9890
9353 9891
9354 echo "checking for Mule input methods" 1>&6 9892 echo "checking for Mule input methods" 1>&6
9355 echo "configure:9356: checking for Mule input methods" >&5 9893 echo "configure:9894: checking for Mule input methods" >&5
9356 case "$with_xim" in "" | "yes" ) 9894 case "$with_xim" in "" | "yes" )
9357 echo "checking for XIM" 1>&6 9895 echo "checking for XIM" 1>&6
9358 echo "configure:9359: checking for XIM" >&5 9896 echo "configure:9897: checking for XIM" >&5
9359 9897
9360 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 9898 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9361 echo "configure:9362: checking for XOpenIM in -lX11" >&5 9899 echo "configure:9900: checking for XOpenIM in -lX11" >&5
9362 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 9900 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9363 9901
9364 xe_check_libs=" -lX11 " 9902 xe_check_libs=" -lX11 "
9365 cat > conftest.$ac_ext <<EOF 9903 cat > conftest.$ac_ext <<EOF
9366 #line 9367 "configure" 9904 #line 9905 "configure"
9367 #include "confdefs.h" 9905 #include "confdefs.h"
9368 /* Override any gcc2 internal prototype to avoid an error. */ 9906 /* Override any gcc2 internal prototype to avoid an error. */
9369 /* We use char because int might match the return type of a gcc2 9907 /* We use char because int might match the return type of a gcc2
9370 builtin and then its argument prototype would still apply. */ 9908 builtin and then its argument prototype would still apply. */
9371 char XOpenIM(); 9909 char XOpenIM();
9372 9910
9373 int main() { 9911 int main() {
9374 XOpenIM() 9912 XOpenIM()
9375 ; return 0; } 9913 ; return 0; }
9376 EOF 9914 EOF
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9915 if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9378 rm -rf conftest* 9916 rm -rf conftest*
9379 eval "ac_cv_lib_$ac_lib_var=yes" 9917 eval "ac_cv_lib_$ac_lib_var=yes"
9380 else 9918 else
9381 echo "configure: failed program was:" >&5 9919 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5 9920 cat conftest.$ac_ext >&5
9396 9934
9397 9935
9398 if test "$have_motif $have_lesstif" = "yes no"; then 9936 if test "$have_motif $have_lesstif" = "yes no"; then
9399 9937
9400 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 9938 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9401 echo "configure:9402: checking for XmImMbLookupString in -lXm" >&5 9939 echo "configure:9940: checking for XmImMbLookupString in -lXm" >&5
9402 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 9940 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9403 9941
9404 xe_check_libs=" -lXm " 9942 xe_check_libs=" -lXm "
9405 cat > conftest.$ac_ext <<EOF 9943 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure" 9944 #line 9945 "configure"
9407 #include "confdefs.h" 9945 #include "confdefs.h"
9408 /* Override any gcc2 internal prototype to avoid an error. */ 9946 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2 9947 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */ 9948 builtin and then its argument prototype would still apply. */
9411 char XmImMbLookupString(); 9949 char XmImMbLookupString();
9412 9950
9413 int main() { 9951 int main() {
9414 XmImMbLookupString() 9952 XmImMbLookupString()
9415 ; return 0; } 9953 ; return 0; }
9416 EOF 9954 EOF
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9418 rm -rf conftest* 9956 rm -rf conftest*
9419 eval "ac_cv_lib_$ac_lib_var=yes" 9957 eval "ac_cv_lib_$ac_lib_var=yes"
9420 else 9958 else
9421 echo "configure: failed program was:" >&5 9959 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5 9960 cat conftest.$ac_ext >&5
9477 fi 10015 fi
9478 fi 10016 fi
9479 10017
9480 if test "$with_xfs" = "yes" ; then 10018 if test "$with_xfs" = "yes" ; then
9481 echo "checking for XFontSet" 1>&6 10019 echo "checking for XFontSet" 1>&6
9482 echo "configure:9483: checking for XFontSet" >&5 10020 echo "configure:10021: checking for XFontSet" >&5
9483 10021
9484 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 10022 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9485 echo "configure:9486: checking for XmbDrawString in -lX11" >&5 10023 echo "configure:10024: checking for XmbDrawString in -lX11" >&5
9486 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 10024 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9487 10025
9488 xe_check_libs=" -lX11 " 10026 xe_check_libs=" -lX11 "
9489 cat > conftest.$ac_ext <<EOF 10027 cat > conftest.$ac_ext <<EOF
9490 #line 9491 "configure" 10028 #line 10029 "configure"
9491 #include "confdefs.h" 10029 #include "confdefs.h"
9492 /* Override any gcc2 internal prototype to avoid an error. */ 10030 /* Override any gcc2 internal prototype to avoid an error. */
9493 /* We use char because int might match the return type of a gcc2 10031 /* We use char because int might match the return type of a gcc2
9494 builtin and then its argument prototype would still apply. */ 10032 builtin and then its argument prototype would still apply. */
9495 char XmbDrawString(); 10033 char XmbDrawString();
9496 10034
9497 int main() { 10035 int main() {
9498 XmbDrawString() 10036 XmbDrawString()
9499 ; return 0; } 10037 ; return 0; }
9500 EOF 10038 EOF
9501 if { (eval echo configure:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10039 if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9502 rm -rf conftest* 10040 rm -rf conftest*
9503 eval "ac_cv_lib_$ac_lib_var=yes" 10041 eval "ac_cv_lib_$ac_lib_var=yes"
9504 else 10042 else
9505 echo "configure: failed program was:" >&5 10043 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5 10044 cat conftest.$ac_ext >&5
9536 fi 10074 fi
9537 fi 10075 fi
9538 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 10076 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9539 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 10077 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9540 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 10078 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9541 echo "configure:9542: checking for wnn/jllib.h" >&5 10079 echo "configure:10080: checking for wnn/jllib.h" >&5
9542 10080
9543 cat > conftest.$ac_ext <<EOF 10081 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure" 10082 #line 10083 "configure"
9545 #include "confdefs.h" 10083 #include "confdefs.h"
9546 #include <wnn/jllib.h> 10084 #include <wnn/jllib.h>
9547 EOF 10085 EOF
9548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9549 { (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10087 { (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9551 if test -z "$ac_err"; then 10089 if test -z "$ac_err"; then
9552 rm -rf conftest* 10090 rm -rf conftest*
9553 eval "ac_cv_header_$ac_safe=yes" 10091 eval "ac_cv_header_$ac_safe=yes"
9554 else 10092 else
9567 with_wnn=no 10105 with_wnn=no
9568 fi 10106 fi
9569 } 10107 }
9570 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 10108 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
9571 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 10109 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
9572 echo "configure:9573: checking for wnn/commonhd.h" >&5 10110 echo "configure:10111: checking for wnn/commonhd.h" >&5
9573 10111
9574 cat > conftest.$ac_ext <<EOF 10112 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure" 10113 #line 10114 "configure"
9576 #include "confdefs.h" 10114 #include "confdefs.h"
9577 #include <wnn/commonhd.h> 10115 #include <wnn/commonhd.h>
9578 EOF 10116 EOF
9579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9580 { (eval echo configure:9581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9582 if test -z "$ac_err"; then 10120 if test -z "$ac_err"; then
9583 rm -rf conftest* 10121 rm -rf conftest*
9584 eval "ac_cv_header_$ac_safe=yes" 10122 eval "ac_cv_header_$ac_safe=yes"
9585 else 10123 else
9600 } 10138 }
9601 if test "$with_wnn" != "no"; then 10139 if test "$with_wnn" != "no"; then
9602 for ac_func in crypt 10140 for ac_func in crypt
9603 do 10141 do
9604 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9605 echo "configure:9606: checking for $ac_func" >&5 10143 echo "configure:10144: checking for $ac_func" >&5
9606 10144
9607 cat > conftest.$ac_ext <<EOF 10145 cat > conftest.$ac_ext <<EOF
9608 #line 9609 "configure" 10146 #line 10147 "configure"
9609 #include "confdefs.h" 10147 #include "confdefs.h"
9610 /* System header to define __stub macros and hopefully few prototypes, 10148 /* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func(); below. */ 10149 which can conflict with char $ac_func(); below. */
9612 #include <assert.h> 10150 #include <assert.h>
9613 /* Override any gcc2 internal prototype to avoid an error. */ 10151 /* Override any gcc2 internal prototype to avoid an error. */
9626 $ac_func(); 10164 $ac_func();
9627 #endif 10165 #endif
9628 10166
9629 ; return 0; } 10167 ; return 0; }
9630 EOF 10168 EOF
9631 if { (eval echo configure:9632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10169 if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9632 rm -rf conftest* 10170 rm -rf conftest*
9633 eval "ac_cv_func_$ac_func=yes" 10171 eval "ac_cv_func_$ac_func=yes"
9634 else 10172 else
9635 echo "configure: failed program was:" >&5 10173 echo "configure: failed program was:" >&5
9636 cat conftest.$ac_ext >&5 10174 cat conftest.$ac_ext >&5
9655 fi 10193 fi
9656 done 10194 done
9657 10195
9658 test "$ac_cv_func_crypt" != "yes" && { 10196 test "$ac_cv_func_crypt" != "yes" && {
9659 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 10197 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
9660 echo "configure:9661: checking for crypt in -lcrypt" >&5 10198 echo "configure:10199: checking for crypt in -lcrypt" >&5
9661 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 10199 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
9662 10200
9663 xe_check_libs=" -lcrypt " 10201 xe_check_libs=" -lcrypt "
9664 cat > conftest.$ac_ext <<EOF 10202 cat > conftest.$ac_ext <<EOF
9665 #line 9666 "configure" 10203 #line 10204 "configure"
9666 #include "confdefs.h" 10204 #include "confdefs.h"
9667 /* Override any gcc2 internal prototype to avoid an error. */ 10205 /* Override any gcc2 internal prototype to avoid an error. */
9668 /* We use char because int might match the return type of a gcc2 10206 /* We use char because int might match the return type of a gcc2
9669 builtin and then its argument prototype would still apply. */ 10207 builtin and then its argument prototype would still apply. */
9670 char crypt(); 10208 char crypt();
9671 10209
9672 int main() { 10210 int main() {
9673 crypt() 10211 crypt()
9674 ; return 0; } 10212 ; return 0; }
9675 EOF 10213 EOF
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10214 if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9677 rm -rf conftest* 10215 rm -rf conftest*
9678 eval "ac_cv_lib_$ac_lib_var=yes" 10216 eval "ac_cv_lib_$ac_lib_var=yes"
9679 else 10217 else
9680 echo "configure: failed program was:" >&5 10218 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5 10219 cat conftest.$ac_ext >&5
9706 } 10244 }
9707 fi 10245 fi
9708 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 10246 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
9709 10247
9710 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 10248 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
9711 echo "configure:9712: checking for jl_dic_list_e in -lwnn" >&5 10249 echo "configure:10250: checking for jl_dic_list_e in -lwnn" >&5
9712 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10250 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9713 10251
9714 xe_check_libs=" -lwnn " 10252 xe_check_libs=" -lwnn "
9715 cat > conftest.$ac_ext <<EOF 10253 cat > conftest.$ac_ext <<EOF
9716 #line 9717 "configure" 10254 #line 10255 "configure"
9717 #include "confdefs.h" 10255 #include "confdefs.h"
9718 /* Override any gcc2 internal prototype to avoid an error. */ 10256 /* Override any gcc2 internal prototype to avoid an error. */
9719 /* We use char because int might match the return type of a gcc2 10257 /* We use char because int might match the return type of a gcc2
9720 builtin and then its argument prototype would still apply. */ 10258 builtin and then its argument prototype would still apply. */
9721 char jl_dic_list_e(); 10259 char jl_dic_list_e();
9722 10260
9723 int main() { 10261 int main() {
9724 jl_dic_list_e() 10262 jl_dic_list_e()
9725 ; return 0; } 10263 ; return 0; }
9726 EOF 10264 EOF
9727 if { (eval echo configure:9728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9728 rm -rf conftest* 10266 rm -rf conftest*
9729 eval "ac_cv_lib_$ac_lib_var=yes" 10267 eval "ac_cv_lib_$ac_lib_var=yes"
9730 else 10268 else
9731 echo "configure: failed program was:" >&5 10269 echo "configure: failed program was:" >&5
9732 cat conftest.$ac_ext >&5 10270 cat conftest.$ac_ext >&5
9740 echo "$ac_t""yes" 1>&6 10278 echo "$ac_t""yes" 1>&6
9741 libwnn=wnn 10279 libwnn=wnn
9742 else 10280 else
9743 echo "$ac_t""no" 1>&6 10281 echo "$ac_t""no" 1>&6
9744 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 10282 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
9745 echo "configure:9746: checking for jl_dic_list_e in -lwnn4" >&5 10283 echo "configure:10284: checking for jl_dic_list_e in -lwnn4" >&5
9746 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10284 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9747 10285
9748 xe_check_libs=" -lwnn4 " 10286 xe_check_libs=" -lwnn4 "
9749 cat > conftest.$ac_ext <<EOF 10287 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure" 10288 #line 10289 "configure"
9751 #include "confdefs.h" 10289 #include "confdefs.h"
9752 /* Override any gcc2 internal prototype to avoid an error. */ 10290 /* Override any gcc2 internal prototype to avoid an error. */
9753 /* We use char because int might match the return type of a gcc2 10291 /* We use char because int might match the return type of a gcc2
9754 builtin and then its argument prototype would still apply. */ 10292 builtin and then its argument prototype would still apply. */
9755 char jl_dic_list_e(); 10293 char jl_dic_list_e();
9756 10294
9757 int main() { 10295 int main() {
9758 jl_dic_list_e() 10296 jl_dic_list_e()
9759 ; return 0; } 10297 ; return 0; }
9760 EOF 10298 EOF
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9762 rm -rf conftest* 10300 rm -rf conftest*
9763 eval "ac_cv_lib_$ac_lib_var=yes" 10301 eval "ac_cv_lib_$ac_lib_var=yes"
9764 else 10302 else
9765 echo "configure: failed program was:" >&5 10303 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5 10304 cat conftest.$ac_ext >&5
9774 echo "$ac_t""yes" 1>&6 10312 echo "$ac_t""yes" 1>&6
9775 libwnn=wnn4 10313 libwnn=wnn4
9776 else 10314 else
9777 echo "$ac_t""no" 1>&6 10315 echo "$ac_t""no" 1>&6
9778 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 10316 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
9779 echo "configure:9780: checking for jl_dic_list_e in -lwnn6" >&5 10317 echo "configure:10318: checking for jl_dic_list_e in -lwnn6" >&5
9780 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10318 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
9781 10319
9782 xe_check_libs=" -lwnn6 " 10320 xe_check_libs=" -lwnn6 "
9783 cat > conftest.$ac_ext <<EOF 10321 cat > conftest.$ac_ext <<EOF
9784 #line 9785 "configure" 10322 #line 10323 "configure"
9785 #include "confdefs.h" 10323 #include "confdefs.h"
9786 /* Override any gcc2 internal prototype to avoid an error. */ 10324 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2 10325 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */ 10326 builtin and then its argument prototype would still apply. */
9789 char jl_dic_list_e(); 10327 char jl_dic_list_e();
9790 10328
9791 int main() { 10329 int main() {
9792 jl_dic_list_e() 10330 jl_dic_list_e()
9793 ; return 0; } 10331 ; return 0; }
9794 EOF 10332 EOF
9795 if { (eval echo configure:9796: \"$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
9796 rm -rf conftest* 10334 rm -rf conftest*
9797 eval "ac_cv_lib_$ac_lib_var=yes" 10335 eval "ac_cv_lib_$ac_lib_var=yes"
9798 else 10336 else
9799 echo "configure: failed program was:" >&5 10337 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5 10338 cat conftest.$ac_ext >&5
9808 echo "$ac_t""yes" 1>&6 10346 echo "$ac_t""yes" 1>&6
9809 libwnn=wnn6 10347 libwnn=wnn6
9810 else 10348 else
9811 echo "$ac_t""no" 1>&6 10349 echo "$ac_t""no" 1>&6
9812 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 10350 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
9813 echo "configure:9814: checking for dic_list_e in -lwnn6_fromsrc" >&5 10351 echo "configure:10352: checking for dic_list_e in -lwnn6_fromsrc" >&5
9814 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 10352 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
9815 10353
9816 xe_check_libs=" -lwnn6_fromsrc " 10354 xe_check_libs=" -lwnn6_fromsrc "
9817 cat > conftest.$ac_ext <<EOF 10355 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure" 10356 #line 10357 "configure"
9819 #include "confdefs.h" 10357 #include "confdefs.h"
9820 /* Override any gcc2 internal prototype to avoid an error. */ 10358 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2 10359 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */ 10360 builtin and then its argument prototype would still apply. */
9823 char dic_list_e(); 10361 char dic_list_e();
9824 10362
9825 int main() { 10363 int main() {
9826 dic_list_e() 10364 dic_list_e()
9827 ; return 0; } 10365 ; return 0; }
9828 EOF 10366 EOF
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10367 if { (eval echo configure:10368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9830 rm -rf conftest* 10368 rm -rf conftest*
9831 eval "ac_cv_lib_$ac_lib_var=yes" 10369 eval "ac_cv_lib_$ac_lib_var=yes"
9832 else 10370 else
9833 echo "configure: failed program was:" >&5 10371 echo "configure: failed program was:" >&5
9834 cat conftest.$ac_ext >&5 10372 cat conftest.$ac_ext >&5
9872 echo " xemacs will be linked with \"mule-wnnfns.o\"" 10410 echo " xemacs will be linked with \"mule-wnnfns.o\""
9873 fi 10411 fi
9874 if test "$with_wnn6" != "no"; then 10412 if test "$with_wnn6" != "no"; then
9875 10413
9876 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 10414 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
9877 echo "configure:9878: checking for jl_fi_dic_list in -l$libwnn" >&5 10415 echo "configure:10416: checking for jl_fi_dic_list in -l$libwnn" >&5
9878 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 10416 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
9879 10417
9880 xe_check_libs=" -l$libwnn " 10418 xe_check_libs=" -l$libwnn "
9881 cat > conftest.$ac_ext <<EOF 10419 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure" 10420 #line 10421 "configure"
9883 #include "confdefs.h" 10421 #include "confdefs.h"
9884 /* Override any gcc2 internal prototype to avoid an error. */ 10422 /* Override any gcc2 internal prototype to avoid an error. */
9885 /* We use char because int might match the return type of a gcc2 10423 /* We use char because int might match the return type of a gcc2
9886 builtin and then its argument prototype would still apply. */ 10424 builtin and then its argument prototype would still apply. */
9887 char jl_fi_dic_list(); 10425 char jl_fi_dic_list();
9888 10426
9889 int main() { 10427 int main() {
9890 jl_fi_dic_list() 10428 jl_fi_dic_list()
9891 ; return 0; } 10429 ; return 0; }
9892 EOF 10430 EOF
9893 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10431 if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9894 rm -rf conftest* 10432 rm -rf conftest*
9895 eval "ac_cv_lib_$ac_lib_var=yes" 10433 eval "ac_cv_lib_$ac_lib_var=yes"
9896 else 10434 else
9897 echo "configure: failed program was:" >&5 10435 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5 10436 cat conftest.$ac_ext >&5
9923 10461
9924 canna_includes_found=no 10462 canna_includes_found=no
9925 if test "$with_canna" != "no"; then 10463 if test "$with_canna" != "no"; then
9926 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10464 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9927 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10465 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9928 echo "configure:9929: checking for canna/jrkanji.h" >&5 10466 echo "configure:10467: checking for canna/jrkanji.h" >&5
9929 10467
9930 cat > conftest.$ac_ext <<EOF 10468 cat > conftest.$ac_ext <<EOF
9931 #line 9932 "configure" 10469 #line 10470 "configure"
9932 #include "confdefs.h" 10470 #include "confdefs.h"
9933 #include <canna/jrkanji.h> 10471 #include <canna/jrkanji.h>
9934 EOF 10472 EOF
9935 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9936 { (eval echo configure:9937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10474 { (eval echo configure:10475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9937 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9938 if test -z "$ac_err"; then 10476 if test -z "$ac_err"; then
9939 rm -rf conftest* 10477 rm -rf conftest*
9940 eval "ac_cv_header_$ac_safe=yes" 10478 eval "ac_cv_header_$ac_safe=yes"
9941 else 10479 else
9958 -d "/usr/local/canna/include"; then 10496 -d "/usr/local/canna/include"; then
9959 save_c_switch_site="$c_switch_site" 10497 save_c_switch_site="$c_switch_site"
9960 c_switch_site="$c_switch_site -I/usr/local/canna/include" 10498 c_switch_site="$c_switch_site -I/usr/local/canna/include"
9961 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10499 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
9962 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10500 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
9963 echo "configure:9964: checking for canna/jrkanji.h" >&5 10501 echo "configure:10502: checking for canna/jrkanji.h" >&5
9964 10502
9965 cat > conftest.$ac_ext <<EOF 10503 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure" 10504 #line 10505 "configure"
9967 #include "confdefs.h" 10505 #include "confdefs.h"
9968 #include <canna/jrkanji.h> 10506 #include <canna/jrkanji.h>
9969 EOF 10507 EOF
9970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9971 { (eval echo configure:9972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10509 { (eval echo configure:10510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9973 if test -z "$ac_err"; then 10511 if test -z "$ac_err"; then
9974 rm -rf conftest* 10512 rm -rf conftest*
9975 eval "ac_cv_header_$ac_safe=yes" 10513 eval "ac_cv_header_$ac_safe=yes"
9976 else 10514 else
9994 fi 10532 fi
9995 fi 10533 fi
9996 10534
9997 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 10535 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
9998 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 10536 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
9999 echo "configure:10000: checking for canna/RK.h" >&5 10537 echo "configure:10538: checking for canna/RK.h" >&5
10000 10538
10001 cat > conftest.$ac_ext <<EOF 10539 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure" 10540 #line 10541 "configure"
10003 #include "confdefs.h" 10541 #include "confdefs.h"
10004 #include <canna/RK.h> 10542 #include <canna/RK.h>
10005 EOF 10543 EOF
10006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10007 { (eval echo configure:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10545 { (eval echo configure:10546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10009 if test -z "$ac_err"; then 10547 if test -z "$ac_err"; then
10010 rm -rf conftest* 10548 rm -rf conftest*
10011 eval "ac_cv_header_$ac_safe=yes" 10549 eval "ac_cv_header_$ac_safe=yes"
10012 else 10550 else
10025 with_canna=no 10563 with_canna=no
10026 fi 10564 fi
10027 } 10565 }
10028 test -z "$with_canna" && { 10566 test -z "$with_canna" && {
10029 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 10567 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10030 echo "configure:10031: checking for RkBgnBun in -lRKC" >&5 10568 echo "configure:10569: checking for RkBgnBun in -lRKC" >&5
10031 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 10569 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10032 10570
10033 xe_check_libs=" -lRKC " 10571 xe_check_libs=" -lRKC "
10034 cat > conftest.$ac_ext <<EOF 10572 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure" 10573 #line 10574 "configure"
10036 #include "confdefs.h" 10574 #include "confdefs.h"
10037 /* Override any gcc2 internal prototype to avoid an error. */ 10575 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2 10576 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */ 10577 builtin and then its argument prototype would still apply. */
10040 char RkBgnBun(); 10578 char RkBgnBun();
10041 10579
10042 int main() { 10580 int main() {
10043 RkBgnBun() 10581 RkBgnBun()
10044 ; return 0; } 10582 ; return 0; }
10045 EOF 10583 EOF
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10584 if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10047 rm -rf conftest* 10585 rm -rf conftest*
10048 eval "ac_cv_lib_$ac_lib_var=yes" 10586 eval "ac_cv_lib_$ac_lib_var=yes"
10049 else 10587 else
10050 echo "configure: failed program was:" >&5 10588 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5 10589 cat conftest.$ac_ext >&5
10064 fi 10602 fi
10065 10603
10066 } 10604 }
10067 test -z "$with_canna" && { 10605 test -z "$with_canna" && {
10068 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 10606 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10069 echo "configure:10070: checking for jrKanjiControl in -lcanna" >&5 10607 echo "configure:10608: checking for jrKanjiControl in -lcanna" >&5
10070 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 10608 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10071 10609
10072 xe_check_libs=" -lcanna " 10610 xe_check_libs=" -lcanna "
10073 cat > conftest.$ac_ext <<EOF 10611 cat > conftest.$ac_ext <<EOF
10074 #line 10075 "configure" 10612 #line 10613 "configure"
10075 #include "confdefs.h" 10613 #include "confdefs.h"
10076 /* Override any gcc2 internal prototype to avoid an error. */ 10614 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2 10615 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */ 10616 builtin and then its argument prototype would still apply. */
10079 char jrKanjiControl(); 10617 char jrKanjiControl();
10080 10618
10081 int main() { 10619 int main() {
10082 jrKanjiControl() 10620 jrKanjiControl()
10083 ; return 0; } 10621 ; return 0; }
10084 EOF 10622 EOF
10085 if { (eval echo configure:10086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10623 if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 rm -rf conftest* 10624 rm -rf conftest*
10087 eval "ac_cv_lib_$ac_lib_var=yes" 10625 eval "ac_cv_lib_$ac_lib_var=yes"
10088 else 10626 else
10089 echo "configure: failed program was:" >&5 10627 echo "configure: failed program was:" >&5
10090 cat conftest.$ac_ext >&5 10628 cat conftest.$ac_ext >&5
10129 10667
10130 if test "$need_motif" = "yes" ; then 10668 if test "$need_motif" = "yes" ; then
10131 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10669 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10132 10670
10133 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10671 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10134 echo "configure:10135: checking for layout_object_getvalue in -li18n" >&5 10672 echo "configure:10673: checking for layout_object_getvalue in -li18n" >&5
10135 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10673 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10136 10674
10137 xe_check_libs=" -li18n " 10675 xe_check_libs=" -li18n "
10138 cat > conftest.$ac_ext <<EOF 10676 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure" 10677 #line 10678 "configure"
10140 #include "confdefs.h" 10678 #include "confdefs.h"
10141 /* Override any gcc2 internal prototype to avoid an error. */ 10679 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2 10680 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */ 10681 builtin and then its argument prototype would still apply. */
10144 char layout_object_getvalue(); 10682 char layout_object_getvalue();
10145 10683
10146 int main() { 10684 int main() {
10147 layout_object_getvalue() 10685 layout_object_getvalue()
10148 ; return 0; } 10686 ; return 0; }
10149 EOF 10687 EOF
10150 if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10151 rm -rf conftest* 10689 rm -rf conftest*
10152 eval "ac_cv_lib_$ac_lib_var=yes" 10690 eval "ac_cv_lib_$ac_lib_var=yes"
10153 else 10691 else
10154 echo "configure: failed program was:" >&5 10692 echo "configure: failed program was:" >&5
10155 cat conftest.$ac_ext >&5 10693 cat conftest.$ac_ext >&5
10231 fi 10769 fi
10232 10770
10233 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 waitpid vsnprintf fsync ftruncate umask 10771 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 waitpid vsnprintf fsync ftruncate umask
10234 do 10772 do
10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10236 echo "configure:10237: checking for $ac_func" >&5 10774 echo "configure:10775: checking for $ac_func" >&5
10237 10775
10238 cat > conftest.$ac_ext <<EOF 10776 cat > conftest.$ac_ext <<EOF
10239 #line 10240 "configure" 10777 #line 10778 "configure"
10240 #include "confdefs.h" 10778 #include "confdefs.h"
10241 /* System header to define __stub macros and hopefully few prototypes, 10779 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func(); below. */ 10780 which can conflict with char $ac_func(); below. */
10243 #include <assert.h> 10781 #include <assert.h>
10244 /* Override any gcc2 internal prototype to avoid an error. */ 10782 /* Override any gcc2 internal prototype to avoid an error. */
10257 $ac_func(); 10795 $ac_func();
10258 #endif 10796 #endif
10259 10797
10260 ; return 0; } 10798 ; return 0; }
10261 EOF 10799 EOF
10262 if { (eval echo configure:10263: \"$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
10263 rm -rf conftest* 10801 rm -rf conftest*
10264 eval "ac_cv_func_$ac_func=yes" 10802 eval "ac_cv_func_$ac_func=yes"
10265 else 10803 else
10266 echo "configure: failed program was:" >&5 10804 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5 10805 cat conftest.$ac_ext >&5
10289 10827
10290 10828
10291 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10829 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10292 do 10830 do
10293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10294 echo "configure:10295: checking for $ac_func" >&5 10832 echo "configure:10833: checking for $ac_func" >&5
10295 10833
10296 cat > conftest.$ac_ext <<EOF 10834 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure" 10835 #line 10836 "configure"
10298 #include "confdefs.h" 10836 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes, 10837 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char $ac_func(); below. */ 10838 which can conflict with char $ac_func(); below. */
10301 #include <assert.h> 10839 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */ 10840 /* Override any gcc2 internal prototype to avoid an error. */
10315 $ac_func(); 10853 $ac_func();
10316 #endif 10854 #endif
10317 10855
10318 ; return 0; } 10856 ; return 0; }
10319 EOF 10857 EOF
10320 if { (eval echo configure:10321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10858 if { (eval echo configure:10859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10321 rm -rf conftest* 10859 rm -rf conftest*
10322 eval "ac_cv_func_$ac_func=yes" 10860 eval "ac_cv_func_$ac_func=yes"
10323 else 10861 else
10324 echo "configure: failed program was:" >&5 10862 echo "configure: failed program was:" >&5
10325 cat conftest.$ac_ext >&5 10863 cat conftest.$ac_ext >&5
10344 fi 10882 fi
10345 done 10883 done
10346 10884
10347 10885
10348 echo $ac_n "checking for openpty""... $ac_c" 1>&6 10886 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10349 echo "configure:10350: checking for openpty" >&5 10887 echo "configure:10888: checking for openpty" >&5
10350 10888
10351 cat > conftest.$ac_ext <<EOF 10889 cat > conftest.$ac_ext <<EOF
10352 #line 10353 "configure" 10890 #line 10891 "configure"
10353 #include "confdefs.h" 10891 #include "confdefs.h"
10354 /* System header to define __stub macros and hopefully few prototypes, 10892 /* System header to define __stub macros and hopefully few prototypes,
10355 which can conflict with char openpty(); below. */ 10893 which can conflict with char openpty(); below. */
10356 #include <assert.h> 10894 #include <assert.h>
10357 /* Override any gcc2 internal prototype to avoid an error. */ 10895 /* Override any gcc2 internal prototype to avoid an error. */
10370 openpty(); 10908 openpty();
10371 #endif 10909 #endif
10372 10910
10373 ; return 0; } 10911 ; return 0; }
10374 EOF 10912 EOF
10375 if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10376 rm -rf conftest* 10914 rm -rf conftest*
10377 eval "ac_cv_func_openpty=yes" 10915 eval "ac_cv_func_openpty=yes"
10378 else 10916 else
10379 echo "configure: failed program was:" >&5 10917 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5 10918 cat conftest.$ac_ext >&5
10389 else 10927 else
10390 echo "$ac_t""no" 1>&6 10928 echo "$ac_t""no" 1>&6
10391 10929
10392 10930
10393 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 10931 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10394 echo "configure:10395: checking for openpty in -lutil" >&5 10932 echo "configure:10933: checking for openpty in -lutil" >&5
10395 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 10933 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10396 10934
10397 xe_check_libs=" -lutil " 10935 xe_check_libs=" -lutil "
10398 cat > conftest.$ac_ext <<EOF 10936 cat > conftest.$ac_ext <<EOF
10399 #line 10400 "configure" 10937 #line 10938 "configure"
10400 #include "confdefs.h" 10938 #include "confdefs.h"
10401 /* Override any gcc2 internal prototype to avoid an error. */ 10939 /* Override any gcc2 internal prototype to avoid an error. */
10402 /* We use char because int might match the return type of a gcc2 10940 /* We use char because int might match the return type of a gcc2
10403 builtin and then its argument prototype would still apply. */ 10941 builtin and then its argument prototype would still apply. */
10404 char openpty(); 10942 char openpty();
10405 10943
10406 int main() { 10944 int main() {
10407 openpty() 10945 openpty()
10408 ; return 0; } 10946 ; return 0; }
10409 EOF 10947 EOF
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10948 if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10411 rm -rf conftest* 10949 rm -rf conftest*
10412 eval "ac_cv_lib_$ac_lib_var=yes" 10950 eval "ac_cv_lib_$ac_lib_var=yes"
10413 else 10951 else
10414 echo "configure: failed program was:" >&5 10952 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5 10953 cat conftest.$ac_ext >&5
10440 10978
10441 for ac_hdr in pty.h libutil.h util.h 10979 for ac_hdr in pty.h libutil.h util.h
10442 do 10980 do
10443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10981 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10982 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10445 echo "configure:10446: checking for $ac_hdr" >&5 10983 echo "configure:10984: checking for $ac_hdr" >&5
10446 10984
10447 cat > conftest.$ac_ext <<EOF 10985 cat > conftest.$ac_ext <<EOF
10448 #line 10449 "configure" 10986 #line 10987 "configure"
10449 #include "confdefs.h" 10987 #include "confdefs.h"
10450 #include <$ac_hdr> 10988 #include <$ac_hdr>
10451 EOF 10989 EOF
10452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10453 { (eval echo configure:10454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10991 { (eval echo configure:10992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10455 if test -z "$ac_err"; then 10993 if test -z "$ac_err"; then
10456 rm -rf conftest* 10994 rm -rf conftest*
10457 eval "ac_cv_header_$ac_safe=yes" 10995 eval "ac_cv_header_$ac_safe=yes"
10458 else 10996 else
10484 11022
10485 for ac_hdr in stropts.h 11023 for ac_hdr in stropts.h
10486 do 11024 do
10487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10489 echo "configure:10490: checking for $ac_hdr" >&5 11027 echo "configure:11028: checking for $ac_hdr" >&5
10490 11028
10491 cat > conftest.$ac_ext <<EOF 11029 cat > conftest.$ac_ext <<EOF
10492 #line 10493 "configure" 11030 #line 11031 "configure"
10493 #include "confdefs.h" 11031 #include "confdefs.h"
10494 #include <$ac_hdr> 11032 #include <$ac_hdr>
10495 EOF 11033 EOF
10496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10497 { (eval echo configure:10498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11035 { (eval echo configure:11036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10499 if test -z "$ac_err"; then 11037 if test -z "$ac_err"; then
10500 rm -rf conftest* 11038 rm -rf conftest*
10501 eval "ac_cv_header_$ac_safe=yes" 11039 eval "ac_cv_header_$ac_safe=yes"
10502 else 11040 else
10525 11063
10526 if test "$ac_cv_header_stropts_h" = "yes"; then 11064 if test "$ac_cv_header_stropts_h" = "yes"; then
10527 for ac_func in isastream 11065 for ac_func in isastream
10528 do 11066 do
10529 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10530 echo "configure:10531: checking for $ac_func" >&5 11068 echo "configure:11069: checking for $ac_func" >&5
10531 11069
10532 cat > conftest.$ac_ext <<EOF 11070 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure" 11071 #line 11072 "configure"
10534 #include "confdefs.h" 11072 #include "confdefs.h"
10535 /* System header to define __stub macros and hopefully few prototypes, 11073 /* System header to define __stub macros and hopefully few prototypes,
10536 which can conflict with char $ac_func(); below. */ 11074 which can conflict with char $ac_func(); below. */
10537 #include <assert.h> 11075 #include <assert.h>
10538 /* Override any gcc2 internal prototype to avoid an error. */ 11076 /* Override any gcc2 internal prototype to avoid an error. */
10551 $ac_func(); 11089 $ac_func();
10552 #endif 11090 #endif
10553 11091
10554 ; return 0; } 11092 ; return 0; }
10555 EOF 11093 EOF
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11094 if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10557 rm -rf conftest* 11095 rm -rf conftest*
10558 eval "ac_cv_func_$ac_func=yes" 11096 eval "ac_cv_func_$ac_func=yes"
10559 else 11097 else
10560 echo "configure: failed program was:" >&5 11098 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5 11099 cat conftest.$ac_ext >&5
10582 11120
10583 for ac_hdr in strtio.h 11121 for ac_hdr in strtio.h
10584 do 11122 do
10585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10586 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10587 echo "configure:10588: checking for $ac_hdr" >&5 11125 echo "configure:11126: checking for $ac_hdr" >&5
10588 11126
10589 cat > conftest.$ac_ext <<EOF 11127 cat > conftest.$ac_ext <<EOF
10590 #line 10591 "configure" 11128 #line 11129 "configure"
10591 #include "confdefs.h" 11129 #include "confdefs.h"
10592 #include <$ac_hdr> 11130 #include <$ac_hdr>
10593 EOF 11131 EOF
10594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10595 { (eval echo configure:10596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11133 { (eval echo configure:11134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10597 if test -z "$ac_err"; then 11135 if test -z "$ac_err"; then
10598 rm -rf conftest* 11136 rm -rf conftest*
10599 eval "ac_cv_header_$ac_safe=yes" 11137 eval "ac_cv_header_$ac_safe=yes"
10600 else 11138 else
10627 fi 11165 fi
10628 11166
10629 for ac_func in getloadavg 11167 for ac_func in getloadavg
10630 do 11168 do
10631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10632 echo "configure:10633: checking for $ac_func" >&5 11170 echo "configure:11171: checking for $ac_func" >&5
10633 11171
10634 cat > conftest.$ac_ext <<EOF 11172 cat > conftest.$ac_ext <<EOF
10635 #line 10636 "configure" 11173 #line 11174 "configure"
10636 #include "confdefs.h" 11174 #include "confdefs.h"
10637 /* System header to define __stub macros and hopefully few prototypes, 11175 /* System header to define __stub macros and hopefully few prototypes,
10638 which can conflict with char $ac_func(); below. */ 11176 which can conflict with char $ac_func(); below. */
10639 #include <assert.h> 11177 #include <assert.h>
10640 /* Override any gcc2 internal prototype to avoid an error. */ 11178 /* Override any gcc2 internal prototype to avoid an error. */
10653 $ac_func(); 11191 $ac_func();
10654 #endif 11192 #endif
10655 11193
10656 ; return 0; } 11194 ; return 0; }
10657 EOF 11195 EOF
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11196 if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10659 rm -rf conftest* 11197 rm -rf conftest*
10660 eval "ac_cv_func_$ac_func=yes" 11198 eval "ac_cv_func_$ac_func=yes"
10661 else 11199 else
10662 echo "configure: failed program was:" >&5 11200 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5 11201 cat conftest.$ac_ext >&5
10686 if test "$ac_cv_func_getloadavg" = "yes"; then 11224 if test "$ac_cv_func_getloadavg" = "yes"; then
10687 for ac_hdr in sys/loadavg.h 11225 for ac_hdr in sys/loadavg.h
10688 do 11226 do
10689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10691 echo "configure:10692: checking for $ac_hdr" >&5 11229 echo "configure:11230: checking for $ac_hdr" >&5
10692 11230
10693 cat > conftest.$ac_ext <<EOF 11231 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure" 11232 #line 11233 "configure"
10695 #include "confdefs.h" 11233 #include "confdefs.h"
10696 #include <$ac_hdr> 11234 #include <$ac_hdr>
10697 EOF 11235 EOF
10698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10699 { (eval echo configure:10700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11237 { (eval echo configure:11238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10701 if test -z "$ac_err"; then 11239 if test -z "$ac_err"; then
10702 rm -rf conftest* 11240 rm -rf conftest*
10703 eval "ac_cv_header_$ac_safe=yes" 11241 eval "ac_cv_header_$ac_safe=yes"
10704 else 11242 else
10730 echo " xemacs will be linked with \"getloadavg.o\"" 11268 echo " xemacs will be linked with \"getloadavg.o\""
10731 fi 11269 fi
10732 11270
10733 11271
10734 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 11272 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
10735 echo "configure:10736: checking for kstat_open in -lkstat" >&5 11273 echo "configure:11274: checking for kstat_open in -lkstat" >&5
10736 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 11274 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
10737 11275
10738 xe_check_libs=" -lkstat " 11276 xe_check_libs=" -lkstat "
10739 cat > conftest.$ac_ext <<EOF 11277 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure" 11278 #line 11279 "configure"
10741 #include "confdefs.h" 11279 #include "confdefs.h"
10742 /* Override any gcc2 internal prototype to avoid an error. */ 11280 /* Override any gcc2 internal prototype to avoid an error. */
10743 /* We use char because int might match the return type of a gcc2 11281 /* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */ 11282 builtin and then its argument prototype would still apply. */
10745 char kstat_open(); 11283 char kstat_open();
10746 11284
10747 int main() { 11285 int main() {
10748 kstat_open() 11286 kstat_open()
10749 ; return 0; } 11287 ; return 0; }
10750 EOF 11288 EOF
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11289 if { (eval echo configure:11290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10752 rm -rf conftest* 11290 rm -rf conftest*
10753 eval "ac_cv_lib_$ac_lib_var=yes" 11291 eval "ac_cv_lib_$ac_lib_var=yes"
10754 else 11292 else
10755 echo "configure: failed program was:" >&5 11293 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5 11294 cat conftest.$ac_ext >&5
10781 11319
10782 for ac_hdr in kstat.h 11320 for ac_hdr in kstat.h
10783 do 11321 do
10784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10786 echo "configure:10787: checking for $ac_hdr" >&5 11324 echo "configure:11325: checking for $ac_hdr" >&5
10787 11325
10788 cat > conftest.$ac_ext <<EOF 11326 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure" 11327 #line 11328 "configure"
10790 #include "confdefs.h" 11328 #include "confdefs.h"
10791 #include <$ac_hdr> 11329 #include <$ac_hdr>
10792 EOF 11330 EOF
10793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10794 { (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11332 { (eval echo configure:11333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10796 if test -z "$ac_err"; then 11334 if test -z "$ac_err"; then
10797 rm -rf conftest* 11335 rm -rf conftest*
10798 eval "ac_cv_header_$ac_safe=yes" 11336 eval "ac_cv_header_$ac_safe=yes"
10799 else 11337 else
10821 done 11359 done
10822 11360
10823 11361
10824 11362
10825 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 11363 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
10826 echo "configure:10827: checking for kvm_read in -lkvm" >&5 11364 echo "configure:11365: checking for kvm_read in -lkvm" >&5
10827 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 11365 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
10828 11366
10829 xe_check_libs=" -lkvm " 11367 xe_check_libs=" -lkvm "
10830 cat > conftest.$ac_ext <<EOF 11368 cat > conftest.$ac_ext <<EOF
10831 #line 10832 "configure" 11369 #line 11370 "configure"
10832 #include "confdefs.h" 11370 #include "confdefs.h"
10833 /* Override any gcc2 internal prototype to avoid an error. */ 11371 /* Override any gcc2 internal prototype to avoid an error. */
10834 /* We use char because int might match the return type of a gcc2 11372 /* We use char because int might match the return type of a gcc2
10835 builtin and then its argument prototype would still apply. */ 11373 builtin and then its argument prototype would still apply. */
10836 char kvm_read(); 11374 char kvm_read();
10837 11375
10838 int main() { 11376 int main() {
10839 kvm_read() 11377 kvm_read()
10840 ; return 0; } 11378 ; return 0; }
10841 EOF 11379 EOF
10842 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11380 if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10843 rm -rf conftest* 11381 rm -rf conftest*
10844 eval "ac_cv_lib_$ac_lib_var=yes" 11382 eval "ac_cv_lib_$ac_lib_var=yes"
10845 else 11383 else
10846 echo "configure: failed program was:" >&5 11384 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5 11385 cat conftest.$ac_ext >&5
10871 11409
10872 11410
10873 fi 11411 fi
10874 11412
10875 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 11413 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
10876 echo "configure:10877: checking whether netdb declares h_errno" >&5 11414 echo "configure:11415: checking whether netdb declares h_errno" >&5
10877 cat > conftest.$ac_ext <<EOF 11415 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure" 11416 #line 11417 "configure"
10879 #include "confdefs.h" 11417 #include "confdefs.h"
10880 #include <netdb.h> 11418 #include <netdb.h>
10881 int main() { 11419 int main() {
10882 return h_errno; 11420 return h_errno;
10883 ; return 0; } 11421 ; return 0; }
10884 EOF 11422 EOF
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11423 if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10886 rm -rf conftest* 11424 rm -rf conftest*
10887 echo "$ac_t""yes" 1>&6 11425 echo "$ac_t""yes" 1>&6
10888 { test "$extra_verbose" = "yes" && cat << \EOF 11426 { test "$extra_verbose" = "yes" && cat << \EOF
10889 Defining HAVE_H_ERRNO 11427 Defining HAVE_H_ERRNO
10890 EOF 11428 EOF
10900 echo "$ac_t""no" 1>&6 11438 echo "$ac_t""no" 1>&6
10901 fi 11439 fi
10902 rm -f conftest* 11440 rm -f conftest*
10903 11441
10904 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 11442 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
10905 echo "configure:10906: checking for sigsetjmp" >&5 11443 echo "configure:11444: checking for sigsetjmp" >&5
10906 cat > conftest.$ac_ext <<EOF 11444 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure" 11445 #line 11446 "configure"
10908 #include "confdefs.h" 11446 #include "confdefs.h"
10909 #include <setjmp.h> 11447 #include <setjmp.h>
10910 int main() { 11448 int main() {
10911 sigjmp_buf bar; sigsetjmp (bar, 0); 11449 sigjmp_buf bar; sigsetjmp (bar, 0);
10912 ; return 0; } 11450 ; return 0; }
10913 EOF 11451 EOF
10914 if { (eval echo configure:10915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11452 if { (eval echo configure:11453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10915 rm -rf conftest* 11453 rm -rf conftest*
10916 echo "$ac_t""yes" 1>&6 11454 echo "$ac_t""yes" 1>&6
10917 { test "$extra_verbose" = "yes" && cat << \EOF 11455 { test "$extra_verbose" = "yes" && cat << \EOF
10918 Defining HAVE_SIGSETJMP 11456 Defining HAVE_SIGSETJMP
10919 EOF 11457 EOF
10929 echo "$ac_t""no" 1>&6 11467 echo "$ac_t""no" 1>&6
10930 fi 11468 fi
10931 rm -f conftest* 11469 rm -f conftest*
10932 11470
10933 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 11471 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
10934 echo "configure:10935: checking whether localtime caches TZ" >&5 11472 echo "configure:11473: checking whether localtime caches TZ" >&5
10935 11473
10936 if test "$ac_cv_func_tzset" = "yes"; then 11474 if test "$ac_cv_func_tzset" = "yes"; then
10937 cat > conftest.$ac_ext <<EOF 11475 cat > conftest.$ac_ext <<EOF
10938 #line 10939 "configure" 11476 #line 11477 "configure"
10939 #include "confdefs.h" 11477 #include "confdefs.h"
10940 #include <time.h> 11478 #include <time.h>
10941 #if STDC_HEADERS 11479 #if STDC_HEADERS
10942 # include <stdlib.h> 11480 # include <stdlib.h>
10943 #endif 11481 #endif
10968 if (localtime (&now)->tm_hour != hour_unset) 11506 if (localtime (&now)->tm_hour != hour_unset)
10969 exit (1); 11507 exit (1);
10970 exit (0); 11508 exit (0);
10971 } 11509 }
10972 EOF 11510 EOF
10973 if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11511 if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10974 then 11512 then
10975 emacs_cv_localtime_cache=no 11513 emacs_cv_localtime_cache=no
10976 else 11514 else
10977 conftest_rc="$?" 11515 conftest_rc="$?"
10978 echo "configure: failed program was:" >&5 11516 echo "configure: failed program was:" >&5
10998 11536
10999 fi 11537 fi
11000 11538
11001 if test "$HAVE_TIMEVAL" = "yes"; then 11539 if test "$HAVE_TIMEVAL" = "yes"; then
11002 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 11540 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11003 echo "configure:11004: checking whether gettimeofday accepts one or two arguments" >&5 11541 echo "configure:11542: checking whether gettimeofday accepts one or two arguments" >&5
11004 cat > conftest.$ac_ext <<EOF 11542 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure" 11543 #line 11544 "configure"
11006 #include "confdefs.h" 11544 #include "confdefs.h"
11007 11545
11008 #ifdef TIME_WITH_SYS_TIME 11546 #ifdef TIME_WITH_SYS_TIME
11009 #include <sys/time.h> 11547 #include <sys/time.h>
11010 #include <time.h> 11548 #include <time.h>
11021 struct timeval time; 11559 struct timeval time;
11022 gettimeofday (&time, 0); 11560 gettimeofday (&time, 0);
11023 11561
11024 ; return 0; } 11562 ; return 0; }
11025 EOF 11563 EOF
11026 if { (eval echo configure:11027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11564 if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11027 rm -rf conftest* 11565 rm -rf conftest*
11028 echo "$ac_t""two" 1>&6 11566 echo "$ac_t""two" 1>&6
11029 else 11567 else
11030 echo "configure: failed program was:" >&5 11568 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5 11569 cat conftest.$ac_ext >&5
11043 rm -f conftest* 11581 rm -f conftest*
11044 fi 11582 fi
11045 11583
11046 11584
11047 echo $ac_n "checking for inline""... $ac_c" 1>&6 11585 echo $ac_n "checking for inline""... $ac_c" 1>&6
11048 echo "configure:11049: checking for inline" >&5 11586 echo "configure:11587: checking for inline" >&5
11049 11587
11050 ac_cv_c_inline=no 11588 ac_cv_c_inline=no
11051 for ac_kw in inline __inline__ __inline; do 11589 for ac_kw in inline __inline__ __inline; do
11052 cat > conftest.$ac_ext <<EOF 11590 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure" 11591 #line 11592 "configure"
11054 #include "confdefs.h" 11592 #include "confdefs.h"
11055 11593
11056 int main() { 11594 int main() {
11057 } $ac_kw foo() { 11595 } $ac_kw foo() {
11058 ; return 0; } 11596 ; return 0; }
11059 EOF 11597 EOF
11060 if { (eval echo configure:11061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11598 if { (eval echo configure:11599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11061 rm -rf conftest* 11599 rm -rf conftest*
11062 ac_cv_c_inline=$ac_kw; break 11600 ac_cv_c_inline=$ac_kw; break
11063 else 11601 else
11064 echo "configure: failed program was:" >&5 11602 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5 11603 cat conftest.$ac_ext >&5
11096 11634
11097 if test "$__DECC" != "yes"; then 11635 if test "$__DECC" != "yes"; then
11098 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11099 # for constant arguments. Useless! 11637 # for constant arguments. Useless!
11100 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11638 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11101 echo "configure:11102: checking for working alloca.h" >&5 11639 echo "configure:11640: checking for working alloca.h" >&5
11102 11640
11103 cat > conftest.$ac_ext <<EOF 11641 cat > conftest.$ac_ext <<EOF
11104 #line 11105 "configure" 11642 #line 11643 "configure"
11105 #include "confdefs.h" 11643 #include "confdefs.h"
11106 #include <alloca.h> 11644 #include <alloca.h>
11107 int main() { 11645 int main() {
11108 char *p = alloca(2 * sizeof(int)); 11646 char *p = alloca(2 * sizeof(int));
11109 ; return 0; } 11647 ; return 0; }
11110 EOF 11648 EOF
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11112 rm -rf conftest* 11650 rm -rf conftest*
11113 ac_cv_header_alloca_h=yes 11651 ac_cv_header_alloca_h=yes
11114 else 11652 else
11115 echo "configure: failed program was:" >&5 11653 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5 11654 cat conftest.$ac_ext >&5
11130 } 11668 }
11131 11669
11132 fi 11670 fi
11133 11671
11134 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11672 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11135 echo "configure:11136: checking for alloca" >&5 11673 echo "configure:11674: checking for alloca" >&5
11136 11674
11137 cat > conftest.$ac_ext <<EOF 11675 cat > conftest.$ac_ext <<EOF
11138 #line 11139 "configure" 11676 #line 11677 "configure"
11139 #include "confdefs.h" 11677 #include "confdefs.h"
11140 11678
11141 #ifdef __GNUC__ 11679 #ifdef __GNUC__
11142 # define alloca __builtin_alloca 11680 # define alloca __builtin_alloca
11143 #else 11681 #else
11161 11699
11162 int main() { 11700 int main() {
11163 char *p = (char *) alloca(1); 11701 char *p = (char *) alloca(1);
11164 ; return 0; } 11702 ; return 0; }
11165 EOF 11703 EOF
11166 if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11704 if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11167 rm -rf conftest* 11705 rm -rf conftest*
11168 ac_cv_func_alloca_works=yes 11706 ac_cv_func_alloca_works=yes
11169 else 11707 else
11170 echo "configure: failed program was:" >&5 11708 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5 11709 cat conftest.$ac_ext >&5
11200 EOF 11738 EOF
11201 } 11739 }
11202 11740
11203 11741
11204 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 11742 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11205 echo "configure:11206: checking whether alloca needs Cray hooks" >&5 11743 echo "configure:11744: checking whether alloca needs Cray hooks" >&5
11206 11744
11207 cat > conftest.$ac_ext <<EOF 11745 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure" 11746 #line 11747 "configure"
11209 #include "confdefs.h" 11747 #include "confdefs.h"
11210 #if defined(CRAY) && ! defined(CRAY2) 11748 #if defined(CRAY) && ! defined(CRAY2)
11211 webecray 11749 webecray
11212 #else 11750 #else
11213 wenotbecray 11751 wenotbecray
11227 11765
11228 echo "$ac_t""$ac_cv_os_cray" 1>&6 11766 echo "$ac_t""$ac_cv_os_cray" 1>&6
11229 if test $ac_cv_os_cray = yes; then 11767 if test $ac_cv_os_cray = yes; then
11230 for ac_func in _getb67 GETB67 getb67; do 11768 for ac_func in _getb67 GETB67 getb67; do
11231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11232 echo "configure:11233: checking for $ac_func" >&5 11770 echo "configure:11771: checking for $ac_func" >&5
11233 11771
11234 cat > conftest.$ac_ext <<EOF 11772 cat > conftest.$ac_ext <<EOF
11235 #line 11236 "configure" 11773 #line 11774 "configure"
11236 #include "confdefs.h" 11774 #include "confdefs.h"
11237 /* System header to define __stub macros and hopefully few prototypes, 11775 /* System header to define __stub macros and hopefully few prototypes,
11238 which can conflict with char $ac_func(); below. */ 11776 which can conflict with char $ac_func(); below. */
11239 #include <assert.h> 11777 #include <assert.h>
11240 /* Override any gcc2 internal prototype to avoid an error. */ 11778 /* Override any gcc2 internal prototype to avoid an error. */
11253 $ac_func(); 11791 $ac_func();
11254 #endif 11792 #endif
11255 11793
11256 ; return 0; } 11794 ; return 0; }
11257 EOF 11795 EOF
11258 if { (eval echo configure:11259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11796 if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11259 rm -rf conftest* 11797 rm -rf conftest*
11260 eval "ac_cv_func_$ac_func=yes" 11798 eval "ac_cv_func_$ac_func=yes"
11261 else 11799 else
11262 echo "configure: failed program was:" >&5 11800 echo "configure: failed program was:" >&5
11263 cat conftest.$ac_ext >&5 11801 cat conftest.$ac_ext >&5
11283 11821
11284 done 11822 done
11285 fi 11823 fi
11286 11824
11287 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 11825 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11288 echo "configure:11289: checking stack direction for C alloca" >&5 11826 echo "configure:11827: checking stack direction for C alloca" >&5
11289 11827
11290 cat > conftest.$ac_ext <<EOF 11828 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure" 11829 #line 11830 "configure"
11292 #include "confdefs.h" 11830 #include "confdefs.h"
11293 find_stack_direction () 11831 find_stack_direction ()
11294 { 11832 {
11295 static char *addr = 0; 11833 static char *addr = 0;
11296 auto char dummy; 11834 auto char dummy;
11305 main () 11843 main ()
11306 { 11844 {
11307 exit (find_stack_direction() < 0); 11845 exit (find_stack_direction() < 0);
11308 } 11846 }
11309 EOF 11847 EOF
11310 if { (eval echo configure:11311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11848 if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11311 then 11849 then
11312 ac_cv_c_stack_direction=1 11850 ac_cv_c_stack_direction=1
11313 else 11851 else
11314 conftest_rc="$?" 11852 conftest_rc="$?"
11315 echo "configure: failed program was:" >&5 11853 echo "configure: failed program was:" >&5
11335 fi 11873 fi
11336 fi 11874 fi
11337 11875
11338 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 11876 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
11339 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 11877 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
11340 echo "configure:11341: checking for vfork.h" >&5 11878 echo "configure:11879: checking for vfork.h" >&5
11341 11879
11342 cat > conftest.$ac_ext <<EOF 11880 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure" 11881 #line 11882 "configure"
11344 #include "confdefs.h" 11882 #include "confdefs.h"
11345 #include <vfork.h> 11883 #include <vfork.h>
11346 EOF 11884 EOF
11347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11348 { (eval echo configure:11349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11886 { (eval echo configure:11887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11350 if test -z "$ac_err"; then 11888 if test -z "$ac_err"; then
11351 rm -rf conftest* 11889 rm -rf conftest*
11352 eval "ac_cv_header_$ac_safe=yes" 11890 eval "ac_cv_header_$ac_safe=yes"
11353 else 11891 else
11371 else 11909 else
11372 echo "$ac_t""no" 1>&6 11910 echo "$ac_t""no" 1>&6
11373 fi 11911 fi
11374 11912
11375 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 11913 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
11376 echo "configure:11377: checking for working vfork" >&5 11914 echo "configure:11915: checking for working vfork" >&5
11377 11915
11378 cat > conftest.$ac_ext <<EOF 11916 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure" 11917 #line 11918 "configure"
11380 #include "confdefs.h" 11918 #include "confdefs.h"
11381 /* Thanks to Paul Eggert for this test. */ 11919 /* Thanks to Paul Eggert for this test. */
11382 #include <stdio.h> 11920 #include <stdio.h>
11383 #include <sys/types.h> 11921 #include <sys/types.h>
11384 #include <sys/stat.h> 11922 #include <sys/stat.h>
11469 || fstat(fileno(stdout), &st) != 0 12007 || fstat(fileno(stdout), &st) != 0
11470 ); 12008 );
11471 } 12009 }
11472 } 12010 }
11473 EOF 12011 EOF
11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12012 if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11475 then 12013 then
11476 ac_cv_func_vfork_works=yes 12014 ac_cv_func_vfork_works=yes
11477 else 12015 else
11478 conftest_rc="$?" 12016 conftest_rc="$?"
11479 echo "configure: failed program was:" >&5 12017 echo "configure: failed program was:" >&5
11495 12033
11496 fi 12034 fi
11497 12035
11498 12036
11499 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 12037 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11500 echo "configure:11501: checking for working strcoll" >&5 12038 echo "configure:12039: checking for working strcoll" >&5
11501 12039
11502 cat > conftest.$ac_ext <<EOF 12040 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure" 12041 #line 12042 "configure"
11504 #include "confdefs.h" 12042 #include "confdefs.h"
11505 #include <string.h> 12043 #include <string.h>
11506 main () 12044 main ()
11507 { 12045 {
11508 exit (strcoll ("abc", "def") >= 0 || 12046 exit (strcoll ("abc", "def") >= 0 ||
11509 strcoll ("ABC", "DEF") >= 0 || 12047 strcoll ("ABC", "DEF") >= 0 ||
11510 strcoll ("123", "456") >= 0); 12048 strcoll ("123", "456") >= 0);
11511 } 12049 }
11512 EOF 12050 EOF
11513 if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11514 then 12052 then
11515 ac_cv_func_strcoll_works=yes 12053 ac_cv_func_strcoll_works=yes
11516 else 12054 else
11517 conftest_rc="$?" 12055 conftest_rc="$?"
11518 echo "configure: failed program was:" >&5 12056 echo "configure: failed program was:" >&5
11536 12074
11537 12075
11538 for ac_func in getpgrp 12076 for ac_func in getpgrp
11539 do 12077 do
11540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11541 echo "configure:11542: checking for $ac_func" >&5 12079 echo "configure:12080: checking for $ac_func" >&5
11542 12080
11543 cat > conftest.$ac_ext <<EOF 12081 cat > conftest.$ac_ext <<EOF
11544 #line 11545 "configure" 12082 #line 12083 "configure"
11545 #include "confdefs.h" 12083 #include "confdefs.h"
11546 /* System header to define __stub macros and hopefully few prototypes, 12084 /* System header to define __stub macros and hopefully few prototypes,
11547 which can conflict with char $ac_func(); below. */ 12085 which can conflict with char $ac_func(); below. */
11548 #include <assert.h> 12086 #include <assert.h>
11549 /* Override any gcc2 internal prototype to avoid an error. */ 12087 /* Override any gcc2 internal prototype to avoid an error. */
11562 $ac_func(); 12100 $ac_func();
11563 #endif 12101 #endif
11564 12102
11565 ; return 0; } 12103 ; return 0; }
11566 EOF 12104 EOF
11567 if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11568 rm -rf conftest* 12106 rm -rf conftest*
11569 eval "ac_cv_func_$ac_func=yes" 12107 eval "ac_cv_func_$ac_func=yes"
11570 else 12108 else
11571 echo "configure: failed program was:" >&5 12109 echo "configure: failed program was:" >&5
11572 cat conftest.$ac_ext >&5 12110 cat conftest.$ac_ext >&5
11590 echo "$ac_t""no" 1>&6 12128 echo "$ac_t""no" 1>&6
11591 fi 12129 fi
11592 done 12130 done
11593 12131
11594 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 12132 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11595 echo "configure:11596: checking whether getpgrp takes no argument" >&5 12133 echo "configure:12134: checking whether getpgrp takes no argument" >&5
11596 12134
11597 cat > conftest.$ac_ext <<EOF 12135 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure" 12136 #line 12137 "configure"
11599 #include "confdefs.h" 12137 #include "confdefs.h"
11600 12138
11601 /* 12139 /*
11602 * If this system has a BSD-style getpgrp(), 12140 * If this system has a BSD-style getpgrp(),
11603 * which takes a pid argument, exit unsuccessfully. 12141 * which takes a pid argument, exit unsuccessfully.
11648 exit(s>>8); 12186 exit(s>>8);
11649 } 12187 }
11650 } 12188 }
11651 12189
11652 EOF 12190 EOF
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12191 if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11654 then 12192 then
11655 ac_cv_func_getpgrp_void=yes 12193 ac_cv_func_getpgrp_void=yes
11656 else 12194 else
11657 conftest_rc="$?" 12195 conftest_rc="$?"
11658 echo "configure: failed program was:" >&5 12196 echo "configure: failed program was:" >&5
11675 12213
11676 fi 12214 fi
11677 12215
11678 12216
11679 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 12217 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
11680 echo "configure:11681: checking for working mmap" >&5 12218 echo "configure:12219: checking for working mmap" >&5
11681 case "$opsys" in ultrix* ) have_mmap=no ;; *) 12219 case "$opsys" in ultrix* ) have_mmap=no ;; *)
11682 cat > conftest.$ac_ext <<EOF 12220 cat > conftest.$ac_ext <<EOF
11683 #line 11684 "configure" 12221 #line 12222 "configure"
11684 #include "confdefs.h" 12222 #include "confdefs.h"
11685 #include <stdio.h> 12223 #include <stdio.h>
11686 #include <unistd.h> 12224 #include <unistd.h>
11687 #include <fcntl.h> 12225 #include <fcntl.h>
11688 #include <sys/mman.h> 12226 #include <sys/mman.h>
11711 return 0; 12249 return 0;
11712 perror ("conftest: mmap failed"); 12250 perror ("conftest: mmap failed");
11713 return 1; 12251 return 1;
11714 } 12252 }
11715 EOF 12253 EOF
11716 if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12254 if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11717 then 12255 then
11718 have_mmap=yes 12256 have_mmap=yes
11719 else 12257 else
11720 conftest_rc="$?" 12258 conftest_rc="$?"
11721 echo "configure: failed program was:" >&5 12259 echo "configure: failed program was:" >&5
11733 #define HAVE_MMAP 1 12271 #define HAVE_MMAP 1
11734 EOF 12272 EOF
11735 } 12273 }
11736 12274
11737 12275
12276 case "$opsys" in cygwin*)
12277 test "$rel_alloc" = "default" && rel_alloc=no ;;
12278 esac
11738 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 12279 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
11739 if test "$rel_alloc $have_mmap" = "default yes"; then 12280 if test "$rel_alloc $have_mmap" = "default yes"; then
11740 if test "$doug_lea_malloc" = "yes"; then 12281 if test "$doug_lea_malloc" = "yes"; then
11741 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 12282 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
11742 echo "configure:11743: checking for M_MMAP_THRESHOLD" >&5 12283 echo "configure:12284: checking for M_MMAP_THRESHOLD" >&5
11743 cat > conftest.$ac_ext <<EOF 12284 cat > conftest.$ac_ext <<EOF
11744 #line 11745 "configure" 12285 #line 12286 "configure"
11745 #include "confdefs.h" 12286 #include "confdefs.h"
11746 #include <malloc.h> 12287 #include <malloc.h>
11747 int main() { 12288 int main() {
11748 12289
11749 #ifndef M_MMAP_THRESHOLD 12290 #ifndef M_MMAP_THRESHOLD
11751 !@+$%^&*_)(_ - unlikely to compile... 12292 !@+$%^&*_)(_ - unlikely to compile...
11752 #endif 12293 #endif
11753 12294
11754 ; return 0; } 12295 ; return 0; }
11755 EOF 12296 EOF
11756 if { (eval echo configure:11757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12297 if { (eval echo configure:12298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11757 rm -rf conftest* 12298 rm -rf conftest*
11758 rel_alloc=no; echo "$ac_t""yes" 1>&6; 12299 rel_alloc=no; echo "$ac_t""yes" 1>&6;
11759 else 12300 else
11760 echo "configure: failed program was:" >&5 12301 echo "configure: failed program was:" >&5
11761 cat conftest.$ac_ext >&5 12302 cat conftest.$ac_ext >&5
11776 } 12317 }
11777 12318
11778 12319
11779 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 12320 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
11780 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 12321 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
11781 echo "configure:11782: checking for termios.h" >&5 12322 echo "configure:12323: checking for termios.h" >&5
11782 12323
11783 cat > conftest.$ac_ext <<EOF 12324 cat > conftest.$ac_ext <<EOF
11784 #line 11785 "configure" 12325 #line 12326 "configure"
11785 #include "confdefs.h" 12326 #include "confdefs.h"
11786 #include <termios.h> 12327 #include <termios.h>
11787 EOF 12328 EOF
11788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11789 { (eval echo configure:11790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12330 { (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11791 if test -z "$ac_err"; then 12332 if test -z "$ac_err"; then
11792 rm -rf conftest* 12333 rm -rf conftest*
11793 eval "ac_cv_header_$ac_safe=yes" 12334 eval "ac_cv_header_$ac_safe=yes"
11794 else 12335 else
11827 12368
11828 else 12369 else
11829 echo "$ac_t""no" 1>&6 12370 echo "$ac_t""no" 1>&6
11830 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 12371 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
11831 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 12372 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
11832 echo "configure:11833: checking for termio.h" >&5 12373 echo "configure:12374: checking for termio.h" >&5
11833 12374
11834 cat > conftest.$ac_ext <<EOF 12375 cat > conftest.$ac_ext <<EOF
11835 #line 11836 "configure" 12376 #line 12377 "configure"
11836 #include "confdefs.h" 12377 #include "confdefs.h"
11837 #include <termio.h> 12378 #include <termio.h>
11838 EOF 12379 EOF
11839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11840 { (eval echo configure:11841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12381 { (eval echo configure:12382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11842 if test -z "$ac_err"; then 12383 if test -z "$ac_err"; then
11843 rm -rf conftest* 12384 rm -rf conftest*
11844 eval "ac_cv_header_$ac_safe=yes" 12385 eval "ac_cv_header_$ac_safe=yes"
11845 else 12386 else
11867 fi 12408 fi
11868 12409
11869 12410
11870 12411
11871 echo $ac_n "checking for socket""... $ac_c" 1>&6 12412 echo $ac_n "checking for socket""... $ac_c" 1>&6
11872 echo "configure:11873: checking for socket" >&5 12413 echo "configure:12414: checking for socket" >&5
11873 12414
11874 cat > conftest.$ac_ext <<EOF 12415 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure" 12416 #line 12417 "configure"
11876 #include "confdefs.h" 12417 #include "confdefs.h"
11877 /* System header to define __stub macros and hopefully few prototypes, 12418 /* System header to define __stub macros and hopefully few prototypes,
11878 which can conflict with char socket(); below. */ 12419 which can conflict with char socket(); below. */
11879 #include <assert.h> 12420 #include <assert.h>
11880 /* Override any gcc2 internal prototype to avoid an error. */ 12421 /* Override any gcc2 internal prototype to avoid an error. */
11893 socket(); 12434 socket();
11894 #endif 12435 #endif
11895 12436
11896 ; return 0; } 12437 ; return 0; }
11897 EOF 12438 EOF
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11899 rm -rf conftest* 12440 rm -rf conftest*
11900 eval "ac_cv_func_socket=yes" 12441 eval "ac_cv_func_socket=yes"
11901 else 12442 else
11902 echo "configure: failed program was:" >&5 12443 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5 12444 cat conftest.$ac_ext >&5
11908 12449
11909 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 12450 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6 12451 echo "$ac_t""yes" 1>&6
11911 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 12452 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
11912 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 12453 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
11913 echo "configure:11914: checking for netinet/in.h" >&5 12454 echo "configure:12455: checking for netinet/in.h" >&5
11914 12455
11915 cat > conftest.$ac_ext <<EOF 12456 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure" 12457 #line 12458 "configure"
11917 #include "confdefs.h" 12458 #include "confdefs.h"
11918 #include <netinet/in.h> 12459 #include <netinet/in.h>
11919 EOF 12460 EOF
11920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11921 { (eval echo configure:11922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12462 { (eval echo configure:12463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11923 if test -z "$ac_err"; then 12464 if test -z "$ac_err"; then
11924 rm -rf conftest* 12465 rm -rf conftest*
11925 eval "ac_cv_header_$ac_safe=yes" 12466 eval "ac_cv_header_$ac_safe=yes"
11926 else 12467 else
11933 rm -f conftest* 12474 rm -f conftest*
11934 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12475 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11935 echo "$ac_t""yes" 1>&6 12476 echo "$ac_t""yes" 1>&6
11936 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 12477 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
11937 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 12478 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
11938 echo "configure:11939: checking for arpa/inet.h" >&5 12479 echo "configure:12480: checking for arpa/inet.h" >&5
11939 12480
11940 cat > conftest.$ac_ext <<EOF 12481 cat > conftest.$ac_ext <<EOF
11941 #line 11942 "configure" 12482 #line 12483 "configure"
11942 #include "confdefs.h" 12483 #include "confdefs.h"
11943 #include <arpa/inet.h> 12484 #include <arpa/inet.h>
11944 EOF 12485 EOF
11945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11946 { (eval echo configure:11947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12487 { (eval echo configure:12488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11948 if test -z "$ac_err"; then 12489 if test -z "$ac_err"; then
11949 rm -rf conftest* 12490 rm -rf conftest*
11950 eval "ac_cv_header_$ac_safe=yes" 12491 eval "ac_cv_header_$ac_safe=yes"
11951 else 12492 else
11966 #define HAVE_SOCKETS 1 12507 #define HAVE_SOCKETS 1
11967 EOF 12508 EOF
11968 } 12509 }
11969 12510
11970 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 12511 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
11971 echo "configure:11972: checking "for sun_len member in struct sockaddr_un"" >&5 12512 echo "configure:12513: checking "for sun_len member in struct sockaddr_un"" >&5
11972 cat > conftest.$ac_ext <<EOF 12513 cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure" 12514 #line 12515 "configure"
11974 #include "confdefs.h" 12515 #include "confdefs.h"
11975 12516
11976 #include <sys/types.h> 12517 #include <sys/types.h>
11977 #include <sys/socket.h> 12518 #include <sys/socket.h>
11978 #include <sys/un.h> 12519 #include <sys/un.h>
11979 12520
11980 int main() { 12521 int main() {
11981 static struct sockaddr_un x; x.sun_len = 1; 12522 static struct sockaddr_un x; x.sun_len = 1;
11982 ; return 0; } 12523 ; return 0; }
11983 EOF 12524 EOF
11984 if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12525 if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11985 rm -rf conftest* 12526 rm -rf conftest*
11986 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12527 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
11987 Defining HAVE_SOCKADDR_SUN_LEN 12528 Defining HAVE_SOCKADDR_SUN_LEN
11988 EOF 12529 EOF
11989 cat >> confdefs.h <<\EOF 12530 cat >> confdefs.h <<\EOF
11997 rm -rf conftest* 12538 rm -rf conftest*
11998 echo "$ac_t""no" 1>&6 12539 echo "$ac_t""no" 1>&6
11999 fi 12540 fi
12000 rm -f conftest* 12541 rm -f conftest*
12001 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 12542 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12002 echo "configure:12003: checking "for ip_mreq struct in netinet/in.h"" >&5 12543 echo "configure:12544: checking "for ip_mreq struct in netinet/in.h"" >&5
12003 cat > conftest.$ac_ext <<EOF 12544 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure" 12545 #line 12546 "configure"
12005 #include "confdefs.h" 12546 #include "confdefs.h"
12006 12547
12007 #include <sys/types.h> 12548 #include <sys/types.h>
12008 #include <netinet/in.h> 12549 #include <netinet/in.h>
12009 12550
12010 int main() { 12551 int main() {
12011 static struct ip_mreq x; 12552 static struct ip_mreq x;
12012 ; return 0; } 12553 ; return 0; }
12013 EOF 12554 EOF
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12555 if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12015 rm -rf conftest* 12556 rm -rf conftest*
12016 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12557 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12017 Defining HAVE_MULTICAST 12558 Defining HAVE_MULTICAST
12018 EOF 12559 EOF
12019 cat >> confdefs.h <<\EOF 12560 cat >> confdefs.h <<\EOF
12040 echo "$ac_t""no" 1>&6 12581 echo "$ac_t""no" 1>&6
12041 fi 12582 fi
12042 12583
12043 12584
12044 echo $ac_n "checking for msgget""... $ac_c" 1>&6 12585 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12045 echo "configure:12046: checking for msgget" >&5 12586 echo "configure:12587: checking for msgget" >&5
12046 12587
12047 cat > conftest.$ac_ext <<EOF 12588 cat > conftest.$ac_ext <<EOF
12048 #line 12049 "configure" 12589 #line 12590 "configure"
12049 #include "confdefs.h" 12590 #include "confdefs.h"
12050 /* System header to define __stub macros and hopefully few prototypes, 12591 /* System header to define __stub macros and hopefully few prototypes,
12051 which can conflict with char msgget(); below. */ 12592 which can conflict with char msgget(); below. */
12052 #include <assert.h> 12593 #include <assert.h>
12053 /* Override any gcc2 internal prototype to avoid an error. */ 12594 /* Override any gcc2 internal prototype to avoid an error. */
12066 msgget(); 12607 msgget();
12067 #endif 12608 #endif
12068 12609
12069 ; return 0; } 12610 ; return 0; }
12070 EOF 12611 EOF
12071 if { (eval echo configure:12072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12612 if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12072 rm -rf conftest* 12613 rm -rf conftest*
12073 eval "ac_cv_func_msgget=yes" 12614 eval "ac_cv_func_msgget=yes"
12074 else 12615 else
12075 echo "configure: failed program was:" >&5 12616 echo "configure: failed program was:" >&5
12076 cat conftest.$ac_ext >&5 12617 cat conftest.$ac_ext >&5
12081 12622
12082 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12623 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12083 echo "$ac_t""yes" 1>&6 12624 echo "$ac_t""yes" 1>&6
12084 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12625 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12085 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12626 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12086 echo "configure:12087: checking for sys/ipc.h" >&5 12627 echo "configure:12628: checking for sys/ipc.h" >&5
12087 12628
12088 cat > conftest.$ac_ext <<EOF 12629 cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure" 12630 #line 12631 "configure"
12090 #include "confdefs.h" 12631 #include "confdefs.h"
12091 #include <sys/ipc.h> 12632 #include <sys/ipc.h>
12092 EOF 12633 EOF
12093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12094 { (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12635 { (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12096 if test -z "$ac_err"; then 12637 if test -z "$ac_err"; then
12097 rm -rf conftest* 12638 rm -rf conftest*
12098 eval "ac_cv_header_$ac_safe=yes" 12639 eval "ac_cv_header_$ac_safe=yes"
12099 else 12640 else
12106 rm -f conftest* 12647 rm -f conftest*
12107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12108 echo "$ac_t""yes" 1>&6 12649 echo "$ac_t""yes" 1>&6
12109 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12650 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12110 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12651 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12111 echo "configure:12112: checking for sys/msg.h" >&5 12652 echo "configure:12653: checking for sys/msg.h" >&5
12112 12653
12113 cat > conftest.$ac_ext <<EOF 12654 cat > conftest.$ac_ext <<EOF
12114 #line 12115 "configure" 12655 #line 12656 "configure"
12115 #include "confdefs.h" 12656 #include "confdefs.h"
12116 #include <sys/msg.h> 12657 #include <sys/msg.h>
12117 EOF 12658 EOF
12118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12119 { (eval echo configure:12120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12660 { (eval echo configure:12661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12121 if test -z "$ac_err"; then 12662 if test -z "$ac_err"; then
12122 rm -rf conftest* 12663 rm -rf conftest*
12123 eval "ac_cv_header_$ac_safe=yes" 12664 eval "ac_cv_header_$ac_safe=yes"
12124 else 12665 else
12152 fi 12693 fi
12153 12694
12154 12695
12155 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12696 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12156 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12697 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12157 echo "configure:12158: checking for dirent.h" >&5 12698 echo "configure:12699: checking for dirent.h" >&5
12158 12699
12159 cat > conftest.$ac_ext <<EOF 12700 cat > conftest.$ac_ext <<EOF
12160 #line 12161 "configure" 12701 #line 12702 "configure"
12161 #include "confdefs.h" 12702 #include "confdefs.h"
12162 #include <dirent.h> 12703 #include <dirent.h>
12163 EOF 12704 EOF
12164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12165 { (eval echo configure:12166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12706 { (eval echo configure:12707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12167 if test -z "$ac_err"; then 12708 if test -z "$ac_err"; then
12168 rm -rf conftest* 12709 rm -rf conftest*
12169 eval "ac_cv_header_$ac_safe=yes" 12710 eval "ac_cv_header_$ac_safe=yes"
12170 else 12711 else
12187 12728
12188 else 12729 else
12189 echo "$ac_t""no" 1>&6 12730 echo "$ac_t""no" 1>&6
12190 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 12731 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12191 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 12732 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12192 echo "configure:12193: checking for sys/dir.h" >&5 12733 echo "configure:12734: checking for sys/dir.h" >&5
12193 12734
12194 cat > conftest.$ac_ext <<EOF 12735 cat > conftest.$ac_ext <<EOF
12195 #line 12196 "configure" 12736 #line 12737 "configure"
12196 #include "confdefs.h" 12737 #include "confdefs.h"
12197 #include <sys/dir.h> 12738 #include <sys/dir.h>
12198 EOF 12739 EOF
12199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12200 { (eval echo configure:12201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12741 { (eval echo configure:12742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12202 if test -z "$ac_err"; then 12743 if test -z "$ac_err"; then
12203 rm -rf conftest* 12744 rm -rf conftest*
12204 eval "ac_cv_header_$ac_safe=yes" 12745 eval "ac_cv_header_$ac_safe=yes"
12205 else 12746 else
12228 fi 12769 fi
12229 12770
12230 12771
12231 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 12772 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12232 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 12773 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12233 echo "configure:12234: checking for nlist.h" >&5 12774 echo "configure:12775: checking for nlist.h" >&5
12234 12775
12235 cat > conftest.$ac_ext <<EOF 12776 cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure" 12777 #line 12778 "configure"
12237 #include "confdefs.h" 12778 #include "confdefs.h"
12238 #include <nlist.h> 12779 #include <nlist.h>
12239 EOF 12780 EOF
12240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12241 { (eval echo configure:12242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12782 { (eval echo configure:12783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12243 if test -z "$ac_err"; then 12784 if test -z "$ac_err"; then
12244 rm -rf conftest* 12785 rm -rf conftest*
12245 eval "ac_cv_header_$ac_safe=yes" 12786 eval "ac_cv_header_$ac_safe=yes"
12246 else 12787 else
12266 fi 12807 fi
12267 12808
12268 12809
12269 12810
12270 echo "checking "for sound support"" 1>&6 12811 echo "checking "for sound support"" 1>&6
12271 echo "configure:12272: checking "for sound support"" >&5 12812 echo "configure:12813: checking "for sound support"" >&5
12272 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 12813 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12273 12814
12274 if test "$with_native_sound" != "no"; then 12815 if test "$with_native_sound" != "no"; then
12275 if test -n "$native_sound_lib"; then 12816 if test -n "$native_sound_lib"; then
12276 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 12817 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12277 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 12818 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12278 echo "configure:12279: checking for multimedia/audio_device.h" >&5 12819 echo "configure:12820: checking for multimedia/audio_device.h" >&5
12279 12820
12280 cat > conftest.$ac_ext <<EOF 12821 cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure" 12822 #line 12823 "configure"
12282 #include "confdefs.h" 12823 #include "confdefs.h"
12283 #include <multimedia/audio_device.h> 12824 #include <multimedia/audio_device.h>
12284 EOF 12825 EOF
12285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12286 { (eval echo configure:12287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12827 { (eval echo configure:12828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12288 if test -z "$ac_err"; then 12829 if test -z "$ac_err"; then
12289 rm -rf conftest* 12830 rm -rf conftest*
12290 eval "ac_cv_header_$ac_safe=yes" 12831 eval "ac_cv_header_$ac_safe=yes"
12291 else 12832 else
12329 case "$canonical" in 12870 case "$canonical" in
12330 *-sgi-* ) 12871 *-sgi-* )
12331 if test -z "$native_sound_lib"; then 12872 if test -z "$native_sound_lib"; then
12332 12873
12333 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 12874 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12334 echo "configure:12335: checking for ALopenport in -laudio" >&5 12875 echo "configure:12876: checking for ALopenport in -laudio" >&5
12335 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 12876 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12336 12877
12337 xe_check_libs=" -laudio " 12878 xe_check_libs=" -laudio "
12338 cat > conftest.$ac_ext <<EOF 12879 cat > conftest.$ac_ext <<EOF
12339 #line 12340 "configure" 12880 #line 12881 "configure"
12340 #include "confdefs.h" 12881 #include "confdefs.h"
12341 /* Override any gcc2 internal prototype to avoid an error. */ 12882 /* Override any gcc2 internal prototype to avoid an error. */
12342 /* We use char because int might match the return type of a gcc2 12883 /* We use char because int might match the return type of a gcc2
12343 builtin and then its argument prototype would still apply. */ 12884 builtin and then its argument prototype would still apply. */
12344 char ALopenport(); 12885 char ALopenport();
12345 12886
12346 int main() { 12887 int main() {
12347 ALopenport() 12888 ALopenport()
12348 ; return 0; } 12889 ; return 0; }
12349 EOF 12890 EOF
12350 if { (eval echo configure:12351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12891 if { (eval echo configure:12892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12351 rm -rf conftest* 12892 rm -rf conftest*
12352 eval "ac_cv_lib_$ac_lib_var=yes" 12893 eval "ac_cv_lib_$ac_lib_var=yes"
12353 else 12894 else
12354 echo "configure: failed program was:" >&5 12895 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5 12896 cat conftest.$ac_ext >&5
12376 fi ;; 12917 fi ;;
12377 hppa*-hp-hpux* ) 12918 hppa*-hp-hpux* )
12378 if test -z "$native_sound_lib"; then 12919 if test -z "$native_sound_lib"; then
12379 12920
12380 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 12921 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12381 echo "configure:12382: checking for AOpenAudio in -lAlib" >&5 12922 echo "configure:12923: checking for AOpenAudio in -lAlib" >&5
12382 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 12923 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12383 12924
12384 xe_check_libs=" -lAlib " 12925 xe_check_libs=" -lAlib "
12385 cat > conftest.$ac_ext <<EOF 12926 cat > conftest.$ac_ext <<EOF
12386 #line 12387 "configure" 12927 #line 12928 "configure"
12387 #include "confdefs.h" 12928 #include "confdefs.h"
12388 /* Override any gcc2 internal prototype to avoid an error. */ 12929 /* Override any gcc2 internal prototype to avoid an error. */
12389 /* We use char because int might match the return type of a gcc2 12930 /* We use char because int might match the return type of a gcc2
12390 builtin and then its argument prototype would still apply. */ 12931 builtin and then its argument prototype would still apply. */
12391 char AOpenAudio(); 12932 char AOpenAudio();
12392 12933
12393 int main() { 12934 int main() {
12394 AOpenAudio() 12935 AOpenAudio()
12395 ; return 0; } 12936 ; return 0; }
12396 EOF 12937 EOF
12397 if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12938 if { (eval echo configure:12939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12398 rm -rf conftest* 12939 rm -rf conftest*
12399 eval "ac_cv_lib_$ac_lib_var=yes" 12940 eval "ac_cv_lib_$ac_lib_var=yes"
12400 else 12941 else
12401 echo "configure: failed program was:" >&5 12942 echo "configure: failed program was:" >&5
12402 cat conftest.$ac_ext >&5 12943 cat conftest.$ac_ext >&5
12430 12971
12431 if test -z "$sound_found"; then 12972 if test -z "$sound_found"; then
12432 for dir in "machine" "sys" "linux"; do 12973 for dir in "machine" "sys" "linux"; do
12433 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 12974 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12434 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 12975 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12435 echo "configure:12436: checking for ${dir}/soundcard.h" >&5 12976 echo "configure:12977: checking for ${dir}/soundcard.h" >&5
12436 12977
12437 cat > conftest.$ac_ext <<EOF 12978 cat > conftest.$ac_ext <<EOF
12438 #line 12439 "configure" 12979 #line 12980 "configure"
12439 #include "confdefs.h" 12980 #include "confdefs.h"
12440 #include <${dir}/soundcard.h> 12981 #include <${dir}/soundcard.h>
12441 EOF 12982 EOF
12442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12443 { (eval echo configure:12444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12984 { (eval echo configure:12985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12445 if test -z "$ac_err"; then 12986 if test -z "$ac_err"; then
12446 rm -rf conftest* 12987 rm -rf conftest*
12447 eval "ac_cv_header_$ac_safe=yes" 12988 eval "ac_cv_header_$ac_safe=yes"
12448 else 12989 else
12499 fi 13040 fi
12500 13041
12501 if test "$with_nas_sound" != "no"; then 13042 if test "$with_nas_sound" != "no"; then
12502 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 13043 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12503 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 13044 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12504 echo "configure:12505: checking for audio/audiolib.h" >&5 13045 echo "configure:13046: checking for audio/audiolib.h" >&5
12505 13046
12506 cat > conftest.$ac_ext <<EOF 13047 cat > conftest.$ac_ext <<EOF
12507 #line 12508 "configure" 13048 #line 13049 "configure"
12508 #include "confdefs.h" 13049 #include "confdefs.h"
12509 #include <audio/audiolib.h> 13050 #include <audio/audiolib.h>
12510 EOF 13051 EOF
12511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12512 { (eval echo configure:12513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13053 { (eval echo configure:13054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12514 if test -z "$ac_err"; then 13055 if test -z "$ac_err"; then
12515 rm -rf conftest* 13056 rm -rf conftest*
12516 eval "ac_cv_header_$ac_safe=yes" 13057 eval "ac_cv_header_$ac_safe=yes"
12517 else 13058 else
12525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6 13067 echo "$ac_t""yes" 1>&6
12527 13068
12528 13069
12529 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 13070 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12530 echo "configure:12531: checking for AuOpenServer in -laudio" >&5 13071 echo "configure:13072: checking for AuOpenServer in -laudio" >&5
12531 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 13072 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12532 13073
12533 xe_check_libs=" -laudio " 13074 xe_check_libs=" -laudio "
12534 cat > conftest.$ac_ext <<EOF 13075 cat > conftest.$ac_ext <<EOF
12535 #line 12536 "configure" 13076 #line 13077 "configure"
12536 #include "confdefs.h" 13077 #include "confdefs.h"
12537 /* Override any gcc2 internal prototype to avoid an error. */ 13078 /* Override any gcc2 internal prototype to avoid an error. */
12538 /* We use char because int might match the return type of a gcc2 13079 /* We use char because int might match the return type of a gcc2
12539 builtin and then its argument prototype would still apply. */ 13080 builtin and then its argument prototype would still apply. */
12540 char AuOpenServer(); 13081 char AuOpenServer();
12541 13082
12542 int main() { 13083 int main() {
12543 AuOpenServer() 13084 AuOpenServer()
12544 ; return 0; } 13085 ; return 0; }
12545 EOF 13086 EOF
12546 if { (eval echo configure:12547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13087 if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12547 rm -rf conftest* 13088 rm -rf conftest*
12548 eval "ac_cv_lib_$ac_lib_var=yes" 13089 eval "ac_cv_lib_$ac_lib_var=yes"
12549 else 13090 else
12550 echo "configure: failed program was:" >&5 13091 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5 13092 cat conftest.$ac_ext >&5
12580 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 13121 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12581 echo " xemacs will be linked with \"nas.o\"" 13122 echo " xemacs will be linked with \"nas.o\""
12582 fi 13123 fi
12583 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 13124 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12584 cat > conftest.$ac_ext <<EOF 13125 cat > conftest.$ac_ext <<EOF
12585 #line 12586 "configure" 13126 #line 13127 "configure"
12586 #include "confdefs.h" 13127 #include "confdefs.h"
12587 #include <audio/Xtutil.h> 13128 #include <audio/Xtutil.h>
12588 EOF 13129 EOF
12589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12590 egrep "AuXtErrorJump" >/dev/null 2>&1; then 13131 egrep "AuXtErrorJump" >/dev/null 2>&1; then
12611 13152
12612 if test "$with_esd_sound" != "no"; then 13153 if test "$with_esd_sound" != "no"; then
12613 # Extract the first word of "esd-config", so it can be a program name with args. 13154 # Extract the first word of "esd-config", so it can be a program name with args.
12614 set dummy esd-config; ac_word=$2 13155 set dummy esd-config; ac_word=$2
12615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 13156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12616 echo "configure:12617: checking for $ac_word" >&5 13157 echo "configure:13158: checking for $ac_word" >&5
12617 13158
12618 if test -n "$have_esd_config"; then 13159 if test -n "$have_esd_config"; then
12619 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 13160 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
12620 else 13161 else
12621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 13162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12640 if test "$have_esd_config" = "yes"; then 13181 if test "$have_esd_config" = "yes"; then
12641 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 13182 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
12642 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 13183 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
12643 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 13184 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
12644 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 13185 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
12645 echo "configure:12646: checking for esd_play_stream" >&5 13186 echo "configure:13187: checking for esd_play_stream" >&5
12646 13187
12647 cat > conftest.$ac_ext <<EOF 13188 cat > conftest.$ac_ext <<EOF
12648 #line 12649 "configure" 13189 #line 13190 "configure"
12649 #include "confdefs.h" 13190 #include "confdefs.h"
12650 /* System header to define __stub macros and hopefully few prototypes, 13191 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char esd_play_stream(); below. */ 13192 which can conflict with char esd_play_stream(); below. */
12652 #include <assert.h> 13193 #include <assert.h>
12653 /* Override any gcc2 internal prototype to avoid an error. */ 13194 /* Override any gcc2 internal prototype to avoid an error. */
12666 esd_play_stream(); 13207 esd_play_stream();
12667 #endif 13208 #endif
12668 13209
12669 ; return 0; } 13210 ; return 0; }
12670 EOF 13211 EOF
12671 if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13212 if { (eval echo configure:13213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12672 rm -rf conftest* 13213 rm -rf conftest*
12673 eval "ac_cv_func_esd_play_stream=yes" 13214 eval "ac_cv_func_esd_play_stream=yes"
12674 else 13215 else
12675 echo "configure: failed program was:" >&5 13216 echo "configure: failed program was:" >&5
12676 cat conftest.$ac_ext >&5 13217 cat conftest.$ac_ext >&5
12717 13258
12718 test -z "$with_tty" && with_tty=yes 13259 test -z "$with_tty" && with_tty=yes
12719 13260
12720 if test "$with_tty" = "yes" ; then 13261 if test "$with_tty" = "yes" ; then
12721 echo "checking for TTY-related features" 1>&6 13262 echo "checking for TTY-related features" 1>&6
12722 echo "configure:12723: checking for TTY-related features" >&5 13263 echo "configure:13264: checking for TTY-related features" >&5
12723 { test "$extra_verbose" = "yes" && cat << \EOF 13264 { test "$extra_verbose" = "yes" && cat << \EOF
12724 Defining HAVE_TTY 13265 Defining HAVE_TTY
12725 EOF 13266 EOF
12726 cat >> confdefs.h <<\EOF 13267 cat >> confdefs.h <<\EOF
12727 #define HAVE_TTY 1 13268 #define HAVE_TTY 1
12733 fi 13274 fi
12734 13275
12735 if test -z "$with_ncurses"; then 13276 if test -z "$with_ncurses"; then
12736 13277
12737 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 13278 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
12738 echo "configure:12739: checking for tgetent in -lncurses" >&5 13279 echo "configure:13280: checking for tgetent in -lncurses" >&5
12739 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 13280 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
12740 13281
12741 xe_check_libs=" -lncurses " 13282 xe_check_libs=" -lncurses "
12742 cat > conftest.$ac_ext <<EOF 13283 cat > conftest.$ac_ext <<EOF
12743 #line 12744 "configure" 13284 #line 13285 "configure"
12744 #include "confdefs.h" 13285 #include "confdefs.h"
12745 /* Override any gcc2 internal prototype to avoid an error. */ 13286 /* Override any gcc2 internal prototype to avoid an error. */
12746 /* We use char because int might match the return type of a gcc2 13287 /* We use char because int might match the return type of a gcc2
12747 builtin and then its argument prototype would still apply. */ 13288 builtin and then its argument prototype would still apply. */
12748 char tgetent(); 13289 char tgetent();
12749 13290
12750 int main() { 13291 int main() {
12751 tgetent() 13292 tgetent()
12752 ; return 0; } 13293 ; return 0; }
12753 EOF 13294 EOF
12754 if { (eval echo configure:12755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13295 if { (eval echo configure:13296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12755 rm -rf conftest* 13296 rm -rf conftest*
12756 eval "ac_cv_lib_$ac_lib_var=yes" 13297 eval "ac_cv_lib_$ac_lib_var=yes"
12757 else 13298 else
12758 echo "configure: failed program was:" >&5 13299 echo "configure: failed program was:" >&5
12759 cat conftest.$ac_ext >&5 13300 cat conftest.$ac_ext >&5
12782 EOF 13323 EOF
12783 } 13324 }
12784 13325
12785 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13326 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12786 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13327 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12787 echo "configure:12788: checking for ncurses/curses.h" >&5 13328 echo "configure:13329: checking for ncurses/curses.h" >&5
12788 13329
12789 cat > conftest.$ac_ext <<EOF 13330 cat > conftest.$ac_ext <<EOF
12790 #line 12791 "configure" 13331 #line 13332 "configure"
12791 #include "confdefs.h" 13332 #include "confdefs.h"
12792 #include <ncurses/curses.h> 13333 #include <ncurses/curses.h>
12793 EOF 13334 EOF
12794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12795 { (eval echo configure:12796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13336 { (eval echo configure:13337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12797 if test -z "$ac_err"; then 13338 if test -z "$ac_err"; then
12798 rm -rf conftest* 13339 rm -rf conftest*
12799 eval "ac_cv_header_$ac_safe=yes" 13340 eval "ac_cv_header_$ac_safe=yes"
12800 else 13341 else
12812 echo "$ac_t""no" 1>&6 13353 echo "$ac_t""no" 1>&6
12813 fi 13354 fi
12814 13355
12815 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 13356 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
12816 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 13357 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
12817 echo "configure:12818: checking for ncurses/term.h" >&5 13358 echo "configure:13359: checking for ncurses/term.h" >&5
12818 13359
12819 cat > conftest.$ac_ext <<EOF 13360 cat > conftest.$ac_ext <<EOF
12820 #line 12821 "configure" 13361 #line 13362 "configure"
12821 #include "confdefs.h" 13362 #include "confdefs.h"
12822 #include <ncurses/term.h> 13363 #include <ncurses/term.h>
12823 EOF 13364 EOF
12824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12825 { (eval echo configure:12826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13366 { (eval echo configure:13367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12827 if test -z "$ac_err"; then 13368 if test -z "$ac_err"; then
12828 rm -rf conftest* 13369 rm -rf conftest*
12829 eval "ac_cv_header_$ac_safe=yes" 13370 eval "ac_cv_header_$ac_safe=yes"
12830 else 13371 else
12850 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 13391 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
12851 save_c_switch_site="$c_switch_site" 13392 save_c_switch_site="$c_switch_site"
12852 c_switch_site="$c_switch_site -I/usr/include/ncurses" 13393 c_switch_site="$c_switch_site -I/usr/include/ncurses"
12853 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13394 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
12854 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13395 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
12855 echo "configure:12856: checking for ncurses/curses.h" >&5 13396 echo "configure:13397: checking for ncurses/curses.h" >&5
12856 13397
12857 cat > conftest.$ac_ext <<EOF 13398 cat > conftest.$ac_ext <<EOF
12858 #line 12859 "configure" 13399 #line 13400 "configure"
12859 #include "confdefs.h" 13400 #include "confdefs.h"
12860 #include <ncurses/curses.h> 13401 #include <ncurses/curses.h>
12861 EOF 13402 EOF
12862 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12863 { (eval echo configure:12864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13404 { (eval echo configure:13405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12864 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12865 if test -z "$ac_err"; then 13406 if test -z "$ac_err"; then
12866 rm -rf conftest* 13407 rm -rf conftest*
12867 eval "ac_cv_header_$ac_safe=yes" 13408 eval "ac_cv_header_$ac_safe=yes"
12868 else 13409 else
12893 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13434 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12894 else 13435 else
12895 for lib in curses termlib termcap; do 13436 for lib in curses termlib termcap; do
12896 13437
12897 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 13438 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
12898 echo "configure:12899: checking for tgetent in -l$lib" >&5 13439 echo "configure:13440: checking for tgetent in -l$lib" >&5
12899 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 13440 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
12900 13441
12901 xe_check_libs=" -l$lib " 13442 xe_check_libs=" -l$lib "
12902 cat > conftest.$ac_ext <<EOF 13443 cat > conftest.$ac_ext <<EOF
12903 #line 12904 "configure" 13444 #line 13445 "configure"
12904 #include "confdefs.h" 13445 #include "confdefs.h"
12905 /* Override any gcc2 internal prototype to avoid an error. */ 13446 /* Override any gcc2 internal prototype to avoid an error. */
12906 /* We use char because int might match the return type of a gcc2 13447 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */ 13448 builtin and then its argument prototype would still apply. */
12908 char tgetent(); 13449 char tgetent();
12909 13450
12910 int main() { 13451 int main() {
12911 tgetent() 13452 tgetent()
12912 ; return 0; } 13453 ; return 0; }
12913 EOF 13454 EOF
12914 if { (eval echo configure:12915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13455 if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12915 rm -rf conftest* 13456 rm -rf conftest*
12916 eval "ac_cv_lib_$ac_lib_var=yes" 13457 eval "ac_cv_lib_$ac_lib_var=yes"
12917 else 13458 else
12918 echo "configure: failed program was:" >&5 13459 echo "configure: failed program was:" >&5
12919 cat conftest.$ac_ext >&5 13460 cat conftest.$ac_ext >&5
12940 if test -n "$libs_termcap"; then 13481 if test -n "$libs_termcap"; then
12941 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13482 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
12942 else 13483 else
12943 13484
12944 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 13485 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
12945 echo "configure:12946: checking for tgetent in -lcurses" >&5 13486 echo "configure:13487: checking for tgetent in -lcurses" >&5
12946 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 13487 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
12947 13488
12948 xe_check_libs=" -lcurses " 13489 xe_check_libs=" -lcurses "
12949 cat > conftest.$ac_ext <<EOF 13490 cat > conftest.$ac_ext <<EOF
12950 #line 12951 "configure" 13491 #line 13492 "configure"
12951 #include "confdefs.h" 13492 #include "confdefs.h"
12952 /* Override any gcc2 internal prototype to avoid an error. */ 13493 /* Override any gcc2 internal prototype to avoid an error. */
12953 /* We use char because int might match the return type of a gcc2 13494 /* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */ 13495 builtin and then its argument prototype would still apply. */
12955 char tgetent(); 13496 char tgetent();
12956 13497
12957 int main() { 13498 int main() {
12958 tgetent() 13499 tgetent()
12959 ; return 0; } 13500 ; return 0; }
12960 EOF 13501 EOF
12961 if { (eval echo configure:12962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13502 if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12962 rm -rf conftest* 13503 rm -rf conftest*
12963 eval "ac_cv_lib_$ac_lib_var=yes" 13504 eval "ac_cv_lib_$ac_lib_var=yes"
12964 else 13505 else
12965 echo "configure: failed program was:" >&5 13506 echo "configure: failed program was:" >&5
12966 cat conftest.$ac_ext >&5 13507 cat conftest.$ac_ext >&5
12974 echo "$ac_t""yes" 1>&6 13515 echo "$ac_t""yes" 1>&6
12975 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 13516 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
12976 else 13517 else
12977 echo "$ac_t""no" 1>&6 13518 echo "$ac_t""no" 1>&6
12978 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 13519 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
12979 echo "configure:12980: checking for tgetent in -ltermcap" >&5 13520 echo "configure:13521: checking for tgetent in -ltermcap" >&5
12980 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 13521 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
12981 13522
12982 xe_check_libs=" -ltermcap " 13523 xe_check_libs=" -ltermcap "
12983 cat > conftest.$ac_ext <<EOF 13524 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure" 13525 #line 13526 "configure"
12985 #include "confdefs.h" 13526 #include "confdefs.h"
12986 /* Override any gcc2 internal prototype to avoid an error. */ 13527 /* Override any gcc2 internal prototype to avoid an error. */
12987 /* We use char because int might match the return type of a gcc2 13528 /* We use char because int might match the return type of a gcc2
12988 builtin and then its argument prototype would still apply. */ 13529 builtin and then its argument prototype would still apply. */
12989 char tgetent(); 13530 char tgetent();
12990 13531
12991 int main() { 13532 int main() {
12992 tgetent() 13533 tgetent()
12993 ; return 0; } 13534 ; return 0; }
12994 EOF 13535 EOF
12995 if { (eval echo configure:12996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12996 rm -rf conftest* 13537 rm -rf conftest*
12997 eval "ac_cv_lib_$ac_lib_var=yes" 13538 eval "ac_cv_lib_$ac_lib_var=yes"
12998 else 13539 else
12999 echo "configure: failed program was:" >&5 13540 echo "configure: failed program was:" >&5
13000 cat conftest.$ac_ext >&5 13541 cat conftest.$ac_ext >&5
13038 } 13579 }
13039 13580
13040 13581
13041 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 13582 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13042 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 13583 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13043 echo "configure:13044: checking for gpm.h" >&5 13584 echo "configure:13585: checking for gpm.h" >&5
13044 13585
13045 cat > conftest.$ac_ext <<EOF 13586 cat > conftest.$ac_ext <<EOF
13046 #line 13047 "configure" 13587 #line 13588 "configure"
13047 #include "confdefs.h" 13588 #include "confdefs.h"
13048 #include <gpm.h> 13589 #include <gpm.h>
13049 EOF 13590 EOF
13050 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13051 { (eval echo configure:13052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13592 { (eval echo configure:13593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13052 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13053 if test -z "$ac_err"; then 13594 if test -z "$ac_err"; then
13054 rm -rf conftest* 13595 rm -rf conftest*
13055 eval "ac_cv_header_$ac_safe=yes" 13596 eval "ac_cv_header_$ac_safe=yes"
13056 else 13597 else
13069 with_gpm=no 13610 with_gpm=no
13070 fi 13611 fi
13071 } 13612 }
13072 test -z "$with_gpm" && { 13613 test -z "$with_gpm" && {
13073 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 13614 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13074 echo "configure:13075: checking for Gpm_Open in -lgpm" >&5 13615 echo "configure:13616: checking for Gpm_Open in -lgpm" >&5
13075 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 13616 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13076 13617
13077 xe_check_libs=" -lgpm " 13618 xe_check_libs=" -lgpm "
13078 cat > conftest.$ac_ext <<EOF 13619 cat > conftest.$ac_ext <<EOF
13079 #line 13080 "configure" 13620 #line 13621 "configure"
13080 #include "confdefs.h" 13621 #include "confdefs.h"
13081 /* Override any gcc2 internal prototype to avoid an error. */ 13622 /* Override any gcc2 internal prototype to avoid an error. */
13082 /* We use char because int might match the return type of a gcc2 13623 /* We use char because int might match the return type of a gcc2
13083 builtin and then its argument prototype would still apply. */ 13624 builtin and then its argument prototype would still apply. */
13084 char Gpm_Open(); 13625 char Gpm_Open();
13085 13626
13086 int main() { 13627 int main() {
13087 Gpm_Open() 13628 Gpm_Open()
13088 ; return 0; } 13629 ; return 0; }
13089 EOF 13630 EOF
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13091 rm -rf conftest* 13632 rm -rf conftest*
13092 eval "ac_cv_lib_$ac_lib_var=yes" 13633 eval "ac_cv_lib_$ac_lib_var=yes"
13093 else 13634 else
13094 echo "configure: failed program was:" >&5 13635 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5 13636 cat conftest.$ac_ext >&5
13135 fi 13676 fi
13136 13677
13137 13678
13138 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13679 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13139 != "no no no" && echo "checking for database support" 1>&6 13680 != "no no no" && echo "checking for database support" 1>&6
13140 echo "configure:13141: checking for database support" >&5 13681 echo "configure:13682: checking for database support" >&5
13141 13682
13142 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13683 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13143 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13684 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13144 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13685 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13145 echo "configure:13146: checking for ndbm.h" >&5 13686 echo "configure:13687: checking for ndbm.h" >&5
13146 13687
13147 cat > conftest.$ac_ext <<EOF 13688 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure" 13689 #line 13690 "configure"
13149 #include "confdefs.h" 13690 #include "confdefs.h"
13150 #include <ndbm.h> 13691 #include <ndbm.h>
13151 EOF 13692 EOF
13152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13153 { (eval echo configure:13154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13694 { (eval echo configure:13695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13155 if test -z "$ac_err"; then 13696 if test -z "$ac_err"; then
13156 rm -rf conftest* 13697 rm -rf conftest*
13157 eval "ac_cv_header_$ac_safe=yes" 13698 eval "ac_cv_header_$ac_safe=yes"
13158 else 13699 else
13178 fi 13719 fi
13179 13720
13180 if test "$with_database_gdbm" != "no"; then 13721 if test "$with_database_gdbm" != "no"; then
13181 13722
13182 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 13723 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13183 echo "configure:13184: checking for dbm_open in -lgdbm" >&5 13724 echo "configure:13725: checking for dbm_open in -lgdbm" >&5
13184 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 13725 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13185 13726
13186 xe_check_libs=" -lgdbm " 13727 xe_check_libs=" -lgdbm "
13187 cat > conftest.$ac_ext <<EOF 13728 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure" 13729 #line 13730 "configure"
13189 #include "confdefs.h" 13730 #include "confdefs.h"
13190 /* Override any gcc2 internal prototype to avoid an error. */ 13731 /* Override any gcc2 internal prototype to avoid an error. */
13191 /* We use char because int might match the return type of a gcc2 13732 /* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */ 13733 builtin and then its argument prototype would still apply. */
13193 char dbm_open(); 13734 char dbm_open();
13194 13735
13195 int main() { 13736 int main() {
13196 dbm_open() 13737 dbm_open()
13197 ; return 0; } 13738 ; return 0; }
13198 EOF 13739 EOF
13199 if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13740 if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13200 rm -rf conftest* 13741 rm -rf conftest*
13201 eval "ac_cv_lib_$ac_lib_var=yes" 13742 eval "ac_cv_lib_$ac_lib_var=yes"
13202 else 13743 else
13203 echo "configure: failed program was:" >&5 13744 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5 13745 cat conftest.$ac_ext >&5
13222 13763
13223 fi 13764 fi
13224 13765
13225 if test "$with_database_dbm" != "no"; then 13766 if test "$with_database_dbm" != "no"; then
13226 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 13767 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13227 echo "configure:13228: checking for dbm_open" >&5 13768 echo "configure:13769: checking for dbm_open" >&5
13228 13769
13229 cat > conftest.$ac_ext <<EOF 13770 cat > conftest.$ac_ext <<EOF
13230 #line 13231 "configure" 13771 #line 13772 "configure"
13231 #include "confdefs.h" 13772 #include "confdefs.h"
13232 /* System header to define __stub macros and hopefully few prototypes, 13773 /* System header to define __stub macros and hopefully few prototypes,
13233 which can conflict with char dbm_open(); below. */ 13774 which can conflict with char dbm_open(); below. */
13234 #include <assert.h> 13775 #include <assert.h>
13235 /* Override any gcc2 internal prototype to avoid an error. */ 13776 /* Override any gcc2 internal prototype to avoid an error. */
13248 dbm_open(); 13789 dbm_open();
13249 #endif 13790 #endif
13250 13791
13251 ; return 0; } 13792 ; return 0; }
13252 EOF 13793 EOF
13253 if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13794 if { (eval echo configure:13795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13254 rm -rf conftest* 13795 rm -rf conftest*
13255 eval "ac_cv_func_dbm_open=yes" 13796 eval "ac_cv_func_dbm_open=yes"
13256 else 13797 else
13257 echo "configure: failed program was:" >&5 13798 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5 13799 cat conftest.$ac_ext >&5
13267 else 13808 else
13268 echo "$ac_t""no" 1>&6 13809 echo "$ac_t""no" 1>&6
13269 13810
13270 13811
13271 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 13812 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13272 echo "configure:13273: checking for dbm_open in -ldbm" >&5 13813 echo "configure:13814: checking for dbm_open in -ldbm" >&5
13273 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 13814 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13274 13815
13275 xe_check_libs=" -ldbm " 13816 xe_check_libs=" -ldbm "
13276 cat > conftest.$ac_ext <<EOF 13817 cat > conftest.$ac_ext <<EOF
13277 #line 13278 "configure" 13818 #line 13819 "configure"
13278 #include "confdefs.h" 13819 #include "confdefs.h"
13279 /* Override any gcc2 internal prototype to avoid an error. */ 13820 /* Override any gcc2 internal prototype to avoid an error. */
13280 /* We use char because int might match the return type of a gcc2 13821 /* We use char because int might match the return type of a gcc2
13281 builtin and then its argument prototype would still apply. */ 13822 builtin and then its argument prototype would still apply. */
13282 char dbm_open(); 13823 char dbm_open();
13283 13824
13284 int main() { 13825 int main() {
13285 dbm_open() 13826 dbm_open()
13286 ; return 0; } 13827 ; return 0; }
13287 EOF 13828 EOF
13288 if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13829 if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13289 rm -rf conftest* 13830 rm -rf conftest*
13290 eval "ac_cv_lib_$ac_lib_var=yes" 13831 eval "ac_cv_lib_$ac_lib_var=yes"
13291 else 13832 else
13292 echo "configure: failed program was:" >&5 13833 echo "configure: failed program was:" >&5
13293 cat conftest.$ac_ext >&5 13834 cat conftest.$ac_ext >&5
13324 } 13865 }
13325 13866
13326 13867
13327 if test "$with_database_berkdb" != "no"; then 13868 if test "$with_database_berkdb" != "no"; then
13328 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 13869 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13329 echo "configure:13330: checking for Berkeley db.h" >&5 13870 echo "configure:13871: checking for Berkeley db.h" >&5
13330 for header in "db/db.h" "db.h"; do 13871 for header in "db/db.h" "db.h"; do
13331 cat > conftest.$ac_ext <<EOF 13872 cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure" 13873 #line 13874 "configure"
13333 #include "confdefs.h" 13874 #include "confdefs.h"
13334 13875
13335 #include <stdlib.h> 13876 #include <stdlib.h>
13336 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 13877 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13337 #ifdef HAVE_INTTYPES_H 13878 #ifdef HAVE_INTTYPES_H
13349 13890
13350 int main() { 13891 int main() {
13351 13892
13352 ; return 0; } 13893 ; return 0; }
13353 EOF 13894 EOF
13354 if { (eval echo configure:13355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13895 if { (eval echo configure:13896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13355 rm -rf conftest* 13896 rm -rf conftest*
13356 db_h_file="$header"; break 13897 db_h_file="$header"; break
13357 else 13898 else
13358 echo "configure: failed program was:" >&5 13899 echo "configure: failed program was:" >&5
13359 cat conftest.$ac_ext >&5 13900 cat conftest.$ac_ext >&5
13365 else echo "$ac_t""$db_h_file" 1>&6 13906 else echo "$ac_t""$db_h_file" 1>&6
13366 fi 13907 fi
13367 13908
13368 if test "$with_database_berkdb" != "no"; then 13909 if test "$with_database_berkdb" != "no"; then
13369 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 13910 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13370 echo "configure:13371: checking for Berkeley DB version" >&5 13911 echo "configure:13912: checking for Berkeley DB version" >&5
13371 cat > conftest.$ac_ext <<EOF 13912 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure" 13913 #line 13914 "configure"
13373 #include "confdefs.h" 13914 #include "confdefs.h"
13374 #include <$db_h_file> 13915 #include <$db_h_file>
13375 #if DB_VERSION_MAJOR > 1 13916 #if DB_VERSION_MAJOR > 1
13376 yes 13917 yes
13377 #endif 13918 #endif
13379 EOF 13920 EOF
13380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13381 egrep "yes" >/dev/null 2>&1; then 13922 egrep "yes" >/dev/null 2>&1; then
13382 rm -rf conftest* 13923 rm -rf conftest*
13383 cat > conftest.$ac_ext <<EOF 13924 cat > conftest.$ac_ext <<EOF
13384 #line 13385 "configure" 13925 #line 13926 "configure"
13385 #include "confdefs.h" 13926 #include "confdefs.h"
13386 #include <$db_h_file> 13927 #include <$db_h_file>
13387 #if DB_VERSION_MAJOR > 2 13928 #if DB_VERSION_MAJOR > 2
13388 yes 13929 yes
13389 #endif 13930 #endif
13406 echo "$ac_t""1" 1>&6; dbfunc=dbopen 13947 echo "$ac_t""1" 1>&6; dbfunc=dbopen
13407 fi 13948 fi
13408 rm -f conftest* 13949 rm -f conftest*
13409 13950
13410 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 13951 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13411 echo "configure:13412: checking for $dbfunc" >&5 13952 echo "configure:13953: checking for $dbfunc" >&5
13412 13953
13413 cat > conftest.$ac_ext <<EOF 13954 cat > conftest.$ac_ext <<EOF
13414 #line 13415 "configure" 13955 #line 13956 "configure"
13415 #include "confdefs.h" 13956 #include "confdefs.h"
13416 /* System header to define __stub macros and hopefully few prototypes, 13957 /* System header to define __stub macros and hopefully few prototypes,
13417 which can conflict with char $dbfunc(); below. */ 13958 which can conflict with char $dbfunc(); below. */
13418 #include <assert.h> 13959 #include <assert.h>
13419 /* Override any gcc2 internal prototype to avoid an error. */ 13960 /* Override any gcc2 internal prototype to avoid an error. */
13432 $dbfunc(); 13973 $dbfunc();
13433 #endif 13974 #endif
13434 13975
13435 ; return 0; } 13976 ; return 0; }
13436 EOF 13977 EOF
13437 if { (eval echo configure:13438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13978 if { (eval echo configure:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13438 rm -rf conftest* 13979 rm -rf conftest*
13439 eval "ac_cv_func_$dbfunc=yes" 13980 eval "ac_cv_func_$dbfunc=yes"
13440 else 13981 else
13441 echo "configure: failed program was:" >&5 13982 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5 13983 cat conftest.$ac_ext >&5
13451 else 13992 else
13452 echo "$ac_t""no" 1>&6 13993 echo "$ac_t""no" 1>&6
13453 13994
13454 13995
13455 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 13996 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13456 echo "configure:13457: checking for $dbfunc in -ldb" >&5 13997 echo "configure:13998: checking for $dbfunc in -ldb" >&5
13457 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 13998 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13458 13999
13459 xe_check_libs=" -ldb " 14000 xe_check_libs=" -ldb "
13460 cat > conftest.$ac_ext <<EOF 14001 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure" 14002 #line 14003 "configure"
13462 #include "confdefs.h" 14003 #include "confdefs.h"
13463 /* Override any gcc2 internal prototype to avoid an error. */ 14004 /* Override any gcc2 internal prototype to avoid an error. */
13464 /* We use char because int might match the return type of a gcc2 14005 /* We use char because int might match the return type of a gcc2
13465 builtin and then its argument prototype would still apply. */ 14006 builtin and then its argument prototype would still apply. */
13466 char $dbfunc(); 14007 char $dbfunc();
13467 14008
13468 int main() { 14009 int main() {
13469 $dbfunc() 14010 $dbfunc()
13470 ; return 0; } 14011 ; return 0; }
13471 EOF 14012 EOF
13472 if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14013 if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13473 rm -rf conftest* 14014 rm -rf conftest*
13474 eval "ac_cv_lib_$ac_lib_var=yes" 14015 eval "ac_cv_lib_$ac_lib_var=yes"
13475 else 14016 else
13476 echo "configure: failed program was:" >&5 14017 echo "configure: failed program was:" >&5
13477 cat conftest.$ac_ext >&5 14018 cat conftest.$ac_ext >&5
13531 fi 14072 fi
13532 14073
13533 if test "$with_socks" = "yes"; then 14074 if test "$with_socks" = "yes"; then
13534 14075
13535 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 14076 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13536 echo "configure:13537: checking for SOCKSinit in -lsocks" >&5 14077 echo "configure:14078: checking for SOCKSinit in -lsocks" >&5
13537 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 14078 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13538 14079
13539 xe_check_libs=" -lsocks " 14080 xe_check_libs=" -lsocks "
13540 cat > conftest.$ac_ext <<EOF 14081 cat > conftest.$ac_ext <<EOF
13541 #line 13542 "configure" 14082 #line 14083 "configure"
13542 #include "confdefs.h" 14083 #include "confdefs.h"
13543 /* Override any gcc2 internal prototype to avoid an error. */ 14084 /* Override any gcc2 internal prototype to avoid an error. */
13544 /* We use char because int might match the return type of a gcc2 14085 /* We use char because int might match the return type of a gcc2
13545 builtin and then its argument prototype would still apply. */ 14086 builtin and then its argument prototype would still apply. */
13546 char SOCKSinit(); 14087 char SOCKSinit();
13547 14088
13548 int main() { 14089 int main() {
13549 SOCKSinit() 14090 SOCKSinit()
13550 ; return 0; } 14091 ; return 0; }
13551 EOF 14092 EOF
13552 if { (eval echo configure:13553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14093 if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13553 rm -rf conftest* 14094 rm -rf conftest*
13554 eval "ac_cv_lib_$ac_lib_var=yes" 14095 eval "ac_cv_lib_$ac_lib_var=yes"
13555 else 14096 else
13556 echo "configure: failed program was:" >&5 14097 echo "configure: failed program was:" >&5
13557 cat conftest.$ac_ext >&5 14098 cat conftest.$ac_ext >&5
13602 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 14143 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
13603 fi 14144 fi
13604 14145
13605 if test "$with_modules" != "no"; then 14146 if test "$with_modules" != "no"; then
13606 echo "checking for module support" 1>&6 14147 echo "checking for module support" 1>&6
13607 echo "configure:13608: checking for module support" >&5 14148 echo "configure:14149: checking for module support" >&5
13608 14149
13609 if test "$with_msw" = "yes"; then 14150 if test "$with_msw" = "yes"; then
13610 have_dl=yes; 14151 have_dl=yes;
13611 else 14152 else
13612 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 14153 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
13613 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 14154 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
13614 echo "configure:13615: checking for dlfcn.h" >&5 14155 echo "configure:14156: checking for dlfcn.h" >&5
13615 14156
13616 cat > conftest.$ac_ext <<EOF 14157 cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure" 14158 #line 14159 "configure"
13618 #include "confdefs.h" 14159 #include "confdefs.h"
13619 #include <dlfcn.h> 14160 #include <dlfcn.h>
13620 EOF 14161 EOF
13621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13622 { (eval echo configure:13623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14163 { (eval echo configure:14164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13624 if test -z "$ac_err"; then 14165 if test -z "$ac_err"; then
13625 rm -rf conftest* 14166 rm -rf conftest*
13626 eval "ac_cv_header_$ac_safe=yes" 14167 eval "ac_cv_header_$ac_safe=yes"
13627 else 14168 else
13634 rm -f conftest* 14175 rm -f conftest*
13635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13636 echo "$ac_t""yes" 1>&6 14177 echo "$ac_t""yes" 1>&6
13637 14178
13638 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 14179 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
13639 echo "configure:13640: checking for dlopen in -lc" >&5 14180 echo "configure:14181: checking for dlopen in -lc" >&5
13640 cat > conftest.$ac_ext <<EOF 14181 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure" 14182 #line 14183 "configure"
13642 #include "confdefs.h" 14183 #include "confdefs.h"
13643 #include <dlfcn.h> 14184 #include <dlfcn.h>
13644 int main() { 14185 int main() {
13645 dlopen ("", 0); 14186 dlopen ("", 0);
13646 ; return 0; } 14187 ; return 0; }
13647 EOF 14188 EOF
13648 if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14189 if { (eval echo configure:14190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13649 rm -rf conftest* 14190 rm -rf conftest*
13650 have_dl=yes 14191 have_dl=yes
13651 else 14192 else
13652 echo "configure: failed program was:" >&5 14193 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5 14194 cat conftest.$ac_ext >&5
13654 rm -rf conftest* 14195 rm -rf conftest*
13655 14196
13656 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 14197 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
13657 echo "configure:13658: checking for dlopen in -ldl" >&5 14198 echo "configure:14199: checking for dlopen in -ldl" >&5
13658 ac_save_LIBS="$LIBS" 14199 ac_save_LIBS="$LIBS"
13659 LIBS="-ldl $LIBS" 14200 LIBS="-ldl $LIBS"
13660 cat > conftest.$ac_ext <<EOF 14201 cat > conftest.$ac_ext <<EOF
13661 #line 13662 "configure" 14202 #line 14203 "configure"
13662 #include "confdefs.h" 14203 #include "confdefs.h"
13663 #include <dlfcn.h> 14204 #include <dlfcn.h>
13664 int main() { 14205 int main() {
13665 dlopen ("", 0); 14206 dlopen ("", 0);
13666 ; return 0; } 14207 ; return 0; }
13667 EOF 14208 EOF
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14209 if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13669 rm -rf conftest* 14210 rm -rf conftest*
13670 have_dl=yes 14211 have_dl=yes
13671 else 14212 else
13672 echo "configure: failed program was:" >&5 14213 echo "configure: failed program was:" >&5
13673 cat conftest.$ac_ext >&5 14214 cat conftest.$ac_ext >&5
13692 } 14233 }
13693 14234
13694 else 14235 else
13695 14236
13696 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 14237 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
13697 echo "configure:13698: checking for shl_load in -ldld" >&5 14238 echo "configure:14239: checking for shl_load in -ldld" >&5
13698 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 14239 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
13699 14240
13700 xe_check_libs=" -ldld " 14241 xe_check_libs=" -ldld "
13701 cat > conftest.$ac_ext <<EOF 14242 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure" 14243 #line 14244 "configure"
13703 #include "confdefs.h" 14244 #include "confdefs.h"
13704 /* Override any gcc2 internal prototype to avoid an error. */ 14245 /* Override any gcc2 internal prototype to avoid an error. */
13705 /* We use char because int might match the return type of a gcc2 14246 /* We use char because int might match the return type of a gcc2
13706 builtin and then its argument prototype would still apply. */ 14247 builtin and then its argument prototype would still apply. */
13707 char shl_load(); 14248 char shl_load();
13708 14249
13709 int main() { 14250 int main() {
13710 shl_load() 14251 shl_load()
13711 ; return 0; } 14252 ; return 0; }
13712 EOF 14253 EOF
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714 rm -rf conftest* 14255 rm -rf conftest*
13715 eval "ac_cv_lib_$ac_lib_var=yes" 14256 eval "ac_cv_lib_$ac_lib_var=yes"
13716 else 14257 else
13717 echo "configure: failed program was:" >&5 14258 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5 14259 cat conftest.$ac_ext >&5
13735 14276
13736 else 14277 else
13737 echo "$ac_t""no" 1>&6 14278 echo "$ac_t""no" 1>&6
13738 14279
13739 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 14280 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
13740 echo "configure:13741: checking for dld_init in -ldld" >&5 14281 echo "configure:14282: checking for dld_init in -ldld" >&5
13741 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 14282 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
13742 14283
13743 xe_check_libs=" -ldld " 14284 xe_check_libs=" -ldld "
13744 cat > conftest.$ac_ext <<EOF 14285 cat > conftest.$ac_ext <<EOF
13745 #line 13746 "configure" 14286 #line 14287 "configure"
13746 #include "confdefs.h" 14287 #include "confdefs.h"
13747 /* Override any gcc2 internal prototype to avoid an error. */ 14288 /* Override any gcc2 internal prototype to avoid an error. */
13748 /* We use char because int might match the return type of a gcc2 14289 /* We use char because int might match the return type of a gcc2
13749 builtin and then its argument prototype would still apply. */ 14290 builtin and then its argument prototype would still apply. */
13750 char dld_init(); 14291 char dld_init();
13751 14292
13752 int main() { 14293 int main() {
13753 dld_init() 14294 dld_init()
13754 ; return 0; } 14295 ; return 0; }
13755 EOF 14296 EOF
13756 if { (eval echo configure:13757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14297 if { (eval echo configure:14298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13757 rm -rf conftest* 14298 rm -rf conftest*
13758 eval "ac_cv_lib_$ac_lib_var=yes" 14299 eval "ac_cv_lib_$ac_lib_var=yes"
13759 else 14300 else
13760 echo "configure: failed program was:" >&5 14301 echo "configure: failed program was:" >&5
13761 cat conftest.$ac_ext >&5 14302 cat conftest.$ac_ext >&5
13796 ld_dynamic_link_flags= 14337 ld_dynamic_link_flags=
13797 xehost=$canonical 14338 xehost=$canonical
13798 xealias=$internal_configuration 14339 xealias=$internal_configuration
13799 14340
13800 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 14341 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
13801 echo "configure:13802: checking how to build dynamic libraries for ${xehost}" >&5 14342 echo "configure:14343: checking how to build dynamic libraries for ${xehost}" >&5
13802 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 14343 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
13803 case "$xehost" in 14344 case "$xehost" in
13804 *-*-linux-gnu*) ;; 14345 *-*-linux-gnu*) ;;
13805 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 14346 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
13806 esac 14347 esac
13824 # Now see if the compiler is really GCC. 14365 # Now see if the compiler is really GCC.
13825 if test "$GCC" = "yes"; then 14366 if test "$GCC" = "yes"; then
13826 XEGCC=yes 14367 XEGCC=yes
13827 else 14368 else
13828 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 14369 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
13829 echo "configure:13830: checking checking whether we are using GNU C" >&5 14370 echo "configure:14371: checking checking whether we are using GNU C" >&5
13830 cat > conftest.$ac_ext <<EOF 14371 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure" 14372 #line 14373 "configure"
13832 #include "confdefs.h" 14373 #include "confdefs.h"
13833 14374
13834 #ifdef __GNUC__ 14375 #ifdef __GNUC__
13835 yes; 14376 yes;
13836 #endif 14377 #endif
13848 14389
13849 echo "$ac_t""${XEGCC}" 1>&6 14390 echo "$ac_t""${XEGCC}" 1>&6
13850 fi 14391 fi
13851 14392
13852 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 14393 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
13853 echo "configure:13854: checking how to produce PIC code" >&5 14394 echo "configure:14395: checking how to produce PIC code" >&5
13854 wl= 14395 wl=
13855 14396
13856 can_build_shared=yes 14397 can_build_shared=yes
13857 if test "$XEGCC" = yes; then 14398 if test "$XEGCC" = yes; then
13858 wl='-Wl,' 14399 wl='-Wl,'
13949 if test -n "$dll_cflags"; then 14490 if test -n "$dll_cflags"; then
13950 echo "$ac_t""${dll_cflags}" 1>&6 14491 echo "$ac_t""${dll_cflags}" 1>&6
13951 14492
13952 # Check to make sure the dll_cflags actually works. 14493 # Check to make sure the dll_cflags actually works.
13953 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 14494 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
13954 echo "configure:13955: checking if PIC flag ${dll_cflags} really works" >&5 14495 echo "configure:14496: checking if PIC flag ${dll_cflags} really works" >&5
13955 save_CFLAGS="$CFLAGS" 14496 save_CFLAGS="$CFLAGS"
13956 CFLAGS="$CFLAGS $dll_cflags -DPIC" 14497 CFLAGS="$CFLAGS $dll_cflags -DPIC"
13957 cat > conftest.$ac_ext <<EOF 14498 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure" 14499 #line 14500 "configure"
13959 #include "confdefs.h" 14500 #include "confdefs.h"
13960 14501
13961 int main() { 14502 int main() {
13962 int x=0; 14503 int x=0;
13963 ; return 0; } 14504 ; return 0; }
13964 EOF 14505 EOF
13965 if { (eval echo configure:13966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14506 if { (eval echo configure:14507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13966 rm -rf conftest* 14507 rm -rf conftest*
13967 14508
13968 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 14509 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
13969 # reports no error. So, we need to grep stderr for (Bundled). 14510 # reports no error. So, we need to grep stderr for (Bundled).
13970 if grep '(Bundled)' config.log >/dev/null; then 14511 if grep '(Bundled)' config.log >/dev/null; then
13991 if test "$can_build_shared" = "yes"; then 14532 if test "$can_build_shared" = "yes"; then
13992 cc_produces_so=no 14533 cc_produces_so=no
13993 xldf= 14534 xldf=
13994 xcldf= 14535 xcldf=
13995 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 14536 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
13996 echo "configure:13997: checking if C compiler can produce shared libraries" >&5 14537 echo "configure:14538: checking if C compiler can produce shared libraries" >&5
13997 if test "$XEGCC" = yes; then 14538 if test "$XEGCC" = yes; then
13998 xcldf="-shared" 14539 xcldf="-shared"
13999 xldf="-shared" 14540 xldf="-shared"
14000 else # Not using GCC 14541 else # Not using GCC
14001 case "$xehost_os" in 14542 case "$xehost_os" in
14042 LDFLAGS="$xcldf $LDFLAGS" 14583 LDFLAGS="$xcldf $LDFLAGS"
14043 LIBS= 14584 LIBS=
14044 xe_libs= 14585 xe_libs=
14045 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 14586 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14046 cat > conftest.$ac_ext <<EOF 14587 cat > conftest.$ac_ext <<EOF
14047 #line 14048 "configure" 14588 #line 14589 "configure"
14048 #include "confdefs.h" 14589 #include "confdefs.h"
14049 14590
14050 int main() { 14591 int main() {
14051 int x=0; 14592 int x=0;
14052 ; return 0; } 14593 ; return 0; }
14053 EOF 14594 EOF
14054 if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14595 if { (eval echo configure:14596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14055 rm -rf conftest* 14596 rm -rf conftest*
14056 cc_produces_so=yes 14597 cc_produces_so=yes
14057 else 14598 else
14058 echo "configure: failed program was:" >&5 14599 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5 14600 cat conftest.$ac_ext >&5
14074 if test -z "$LTLD"; then 14615 if test -z "$LTLD"; then
14075 ac_prog=ld 14616 ac_prog=ld
14076 if test "$XEGCC" = yes; then 14617 if test "$XEGCC" = yes; then
14077 # Check if gcc -print-prog-name=ld gives a path. 14618 # Check if gcc -print-prog-name=ld gives a path.
14078 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 14619 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14079 echo "configure:14080: checking for ld used by GCC" >&5 14620 echo "configure:14621: checking for ld used by GCC" >&5
14080 ac_prog=`($CC -print-prog-name=ld) 2>&5` 14621 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14081 case "$ac_prog" in 14622 case "$ac_prog" in
14082 # Accept absolute paths. 14623 # Accept absolute paths.
14083 /*) 14624 /*)
14084 if test -z "$LTLD"; then 14625 if test -z "$LTLD"; then
14099 with_gnu_ld=unknown 14640 with_gnu_ld=unknown
14100 ;; 14641 ;;
14101 esac 14642 esac
14102 else 14643 else
14103 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14644 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14104 echo "configure:14105: checking for GNU ld" >&5 14645 echo "configure:14646: checking for GNU ld" >&5
14105 fi 14646 fi
14106 14647
14107 if test -z "$LTLD"; then 14648 if test -z "$LTLD"; then
14108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14109 for ac_dir in $PATH; do 14650 for ac_dir in $PATH; do
14137 14678
14138 ld_dynamic_link_flags= 14679 ld_dynamic_link_flags=
14139 14680
14140 # Check to see if it really is or isn't GNU ld. 14681 # Check to see if it really is or isn't GNU ld.
14141 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14682 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14142 echo "configure:14143: checking if the linker is GNU ld" >&5 14683 echo "configure:14684: checking if the linker is GNU ld" >&5
14143 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14684 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14144 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14685 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14145 xe_gnu_ld=yes 14686 xe_gnu_ld=yes
14146 else 14687 else
14147 xe_gnu_ld=no 14688 xe_gnu_ld=no
14165 ld_shlibs=yes 14706 ld_shlibs=yes
14166 else 14707 else
14167 # OK - only NOW do we futz about with ld. 14708 # OK - only NOW do we futz about with ld.
14168 # See if the linker supports building shared libraries. 14709 # See if the linker supports building shared libraries.
14169 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14710 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14170 echo "configure:14171: checking whether the linker supports shared libraries" >&5 14711 echo "configure:14712: checking whether the linker supports shared libraries" >&5
14171 dll_ld=$CC 14712 dll_ld=$CC
14172 dll_ldflags=$LDFLAGS 14713 dll_ldflags=$LDFLAGS
14173 ld_shlibs=yes 14714 ld_shlibs=yes
14174 can_build_shared=yes 14715 can_build_shared=yes
14175 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14716 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14376 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 14917 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14377 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 14918 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14378 for ac_func in dlerror _dlerror 14919 for ac_func in dlerror _dlerror
14379 do 14920 do
14380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 14921 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14381 echo "configure:14382: checking for $ac_func" >&5 14922 echo "configure:14923: checking for $ac_func" >&5
14382 14923
14383 cat > conftest.$ac_ext <<EOF 14924 cat > conftest.$ac_ext <<EOF
14384 #line 14385 "configure" 14925 #line 14926 "configure"
14385 #include "confdefs.h" 14926 #include "confdefs.h"
14386 /* System header to define __stub macros and hopefully few prototypes, 14927 /* System header to define __stub macros and hopefully few prototypes,
14387 which can conflict with char $ac_func(); below. */ 14928 which can conflict with char $ac_func(); below. */
14388 #include <assert.h> 14929 #include <assert.h>
14389 /* Override any gcc2 internal prototype to avoid an error. */ 14930 /* Override any gcc2 internal prototype to avoid an error. */
14402 $ac_func(); 14943 $ac_func();
14403 #endif 14944 #endif
14404 14945
14405 ; return 0; } 14946 ; return 0; }
14406 EOF 14947 EOF
14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14948 if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14408 rm -rf conftest* 14949 rm -rf conftest*
14409 eval "ac_cv_func_$ac_func=yes" 14950 eval "ac_cv_func_$ac_func=yes"
14410 else 14951 else
14411 echo "configure: failed program was:" >&5 14952 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5 14953 cat conftest.$ac_ext >&5
14441 with_modules=no 14982 with_modules=no
14442 fi 14983 fi
14443 fi 14984 fi
14444 14985
14445 cat > conftest.$ac_ext <<EOF 14986 cat > conftest.$ac_ext <<EOF
14446 #line 14447 "configure" 14987 #line 14988 "configure"
14447 #include "confdefs.h" 14988 #include "confdefs.h"
14448 int main(int c,char *v[]){return 0;} 14989 int main(int c,char *v[]){return 0;}
14449 EOF 14990 EOF
14450 if { (eval echo configure:14451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 14991 if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14451 then 14992 then
14452 : 14993 :
14453 else 14994 else
14454 conftest_rc="$?" 14995 conftest_rc="$?"
14455 echo "configure: failed program was:" >&5 14996 echo "configure: failed program was:" >&5
14508 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 15049 for W in -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14509 c_switch_general="$T" 15050 c_switch_general="$T"
14510 15051
14511 15052
14512 T="" 15053 T=""
14513 for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 15054 for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14514 c_switch_window_system="$T" 15055 c_switch_window_system="$T"
14515 15056
14516 15057
14517 T="" 15058 T=""
14518 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 15059 for W in $c_switch_general $c_switch_window_system; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14538 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 15079 for W in $LIBS $libs_machine $libs_system $libs_standard; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14539 ld_libs_general="$T" 15080 ld_libs_general="$T"
14540 15081
14541 15082
14542 T="" 15083 T=""
14543 for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 15084 for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14544 ld_libs_window_system="$T" 15085 ld_libs_window_system="$T"
14545 15086
14546 15087
14547 T="" 15088 T=""
14548 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 15089 for W in $ld_libs_window_system $ld_libs_general; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
15091 echo " Compiling in support for the Athena widget set:" 15632 echo " Compiling in support for the Athena widget set:"
15092 echo " - Athena headers location: $athena_h_path" 15633 echo " - Athena headers location: $athena_h_path"
15093 echo " - Athena library to link: $athena_lib" 15634 echo " - Athena library to link: $athena_lib"
15094 fi 15635 fi
15095 case "$with_menubars" in 15636 case "$with_menubars" in
15637 gtk ) echo " Using GTK menubars." ;;
15096 lucid ) echo " Using Lucid menubars." ;; 15638 lucid ) echo " Using Lucid menubars." ;;
15097 motif ) echo " Using Motif menubars." 15639 motif ) echo " Using Motif menubars."
15098 echo " *WARNING* The Motif menubar implementation is currently buggy." 15640 echo " *WARNING* The Motif menubar implementation is currently buggy."
15099 echo " We recommend using the Lucid menubar instead." 15641 echo " We recommend using the Lucid menubar instead."
15100 echo " Re-run configure with --with-menubars='lucid'." ;; 15642 echo " Re-run configure with --with-menubars='lucid'." ;;
15101 msw ) echo " Using MS-Windows menubars." ;; 15643 msw ) echo " Using MS-Windows menubars." ;;
15102 esac 15644 esac
15103 case "$with_scrollbars" in 15645 case "$with_scrollbars" in
15646 gtk ) echo " Using GTK scrollbars." ;;
15104 lucid ) echo " Using Lucid scrollbars." ;; 15647 lucid ) echo " Using Lucid scrollbars." ;;
15105 motif ) echo " Using Motif scrollbars." ;; 15648 motif ) echo " Using Motif scrollbars." ;;
15106 athena ) echo " Using Athena scrollbars." ;; 15649 athena ) echo " Using Athena scrollbars." ;;
15107 msw ) echo " Using MS-Windows scrollbars." ;; 15650 msw ) echo " Using MS-Windows scrollbars." ;;
15108 esac 15651 esac
15109 case "$with_dialogs" in 15652 case "$with_dialogs" in
15653 gtk ) echo " Using GTK dialog boxes." ;;
15110 motif ) echo " Using Motif dialog boxes." 15654 motif ) echo " Using Motif dialog boxes."
15111 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then 15655 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
15112 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." 15656 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
15113 echo " We recommend using the Athena dialog boxes instead." 15657 echo " We recommend using the Athena dialog boxes instead."
15114 echo " Install libXaw and re-run configure with --with-dialogs='athena'." 15658 echo " Install libXaw and re-run configure with --with-dialogs='athena'."
15116 fi; fi ;; 15660 fi; fi ;;
15117 athena ) echo " Using Athena dialog boxes." ;; 15661 athena ) echo " Using Athena dialog boxes." ;;
15118 msw ) echo " Using MS-Windows dialog boxes." ;; 15662 msw ) echo " Using MS-Windows dialog boxes." ;;
15119 esac 15663 esac
15120 case "$with_widgets" in 15664 case "$with_widgets" in
15665 gtk ) echo " Using GTK native widgets." ;;
15121 motif ) echo " Using Motif native widgets." ;; 15666 motif ) echo " Using Motif native widgets." ;;
15122 athena ) echo " Using Athena native widgets." ;; 15667 athena ) echo " Using Athena native widgets." ;;
15123 msw ) echo " Using MS-Windows native widgets." ;; 15668 msw ) echo " Using MS-Windows native widgets." ;;
15124 esac 15669 esac
15125 if test "$with_dragndrop" = yes; then 15670 if test "$with_dragndrop" = yes; then
15345 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 15890 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15346 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 15891 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15347 s%@INSTALL_DATA@%$INSTALL_DATA%g 15892 s%@INSTALL_DATA@%$INSTALL_DATA%g
15348 s%@YACC@%$YACC%g 15893 s%@YACC@%$YACC%g
15349 s%@SET_MAKE@%$SET_MAKE%g 15894 s%@SET_MAKE@%$SET_MAKE%g
15895 s%@GTK_CONFIG@%$GTK_CONFIG%g
15350 s%@X_CFLAGS@%$X_CFLAGS%g 15896 s%@X_CFLAGS@%$X_CFLAGS%g
15351 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 15897 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
15352 s%@X_LIBS@%$X_LIBS%g 15898 s%@X_LIBS@%$X_LIBS%g
15353 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 15899 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
15354 s%@install_pp@%$install_pp%g 15900 s%@install_pp@%$install_pp%g