comparison configure @ 422:95016f13131a r21-2-19

Import from CVS: tag r21-2-19
author cvs
date Mon, 13 Aug 2007 11:25:01 +0200
parents 41dbb7a9d5f2
children 11054d720c21
comparison
equal deleted inserted replaced
421:fff06e11db74 422:95016f13131a
225 bindir='${exec_prefix}/bin' 225 bindir='${exec_prefix}/bin'
226 datadir='${prefix}/lib' 226 datadir='${prefix}/lib'
227 statedir='${prefix}/lib' 227 statedir='${prefix}/lib'
228 libdir='${exec_prefix}/lib' 228 libdir='${exec_prefix}/lib'
229 mandir='${prefix}/man/man1' 229 mandir='${prefix}/man/man1'
230 infodir='${datadir}/${PROGNAME}-${version}/info' 230 inststaticdir='${PROGNAME}'
231 instvardir='${PROGNAME}-${version}'
232 infodir='${datadir}/${instvardir}/info'
231 infopath='' 233 infopath=''
232 install_pp='' 234 install_pp=''
233 lispdir='${datadir}/${PROGNAME}-${version}/lisp' 235 lispdir='${datadir}/${instvardir}/lisp'
234 moduledir='${datadir}/${PROGNAME}-${version}/${configuration}/modules' 236 moduledir='${datadir}/${instvardir}/${configuration}/modules'
235 sitelispdir='${datadir}/xemacs/site-lisp' 237 sitelispdir='${datadir}/${inststaticdir}/site-lisp'
236 sitemoduledir='${datadir}/xemacs/site-modules' 238 sitemoduledir='${datadir}/${inststaticdir}/site-modules'
237 pkgdir='${datadir}/${PROGNAME}-${version}/lisp' 239 pkgdir='${datadir}/${instvardir}/lisp'
238 package_path='' 240 package_path=''
239 etcdir='${datadir}/${PROGNAME}-${version}/etc' 241 etcdir='${datadir}/${instvardir}/etc'
240 lockdir='${statedir}/${PROGNAME}/lock' 242 lockdir='${statedir}/${inststaticdir}/lock'
241 archlibdir='${datadir}/${PROGNAME}-${version}/${configuration}' 243 archlibdir='${datadir}/${instvardir}/${configuration}'
242 docdir='${archlibdir}' 244 docdir='${archlibdir}'
243 with_prefix='yes' 245 with_prefix='yes'
244 with_site_lisp='no' 246 with_site_lisp='no'
245 with_site_modules='yes' 247 with_site_modules='yes'
246 with_menubars='' 248 with_menubars=''
359 use_union_type | \ 361 use_union_type | \
360 debug | \ 362 debug | \
361 use_assertions | \ 363 use_assertions | \
362 memory_usage_stats | \ 364 memory_usage_stats | \
363 with_clash_detection | \ 365 with_clash_detection | \
364 with_shlib | \ 366 with_modules | \
365 no_doc_file ) 367 no_doc_file )
366 case "$val" in 368 case "$val" in
367 y | ye | yes ) val=yes ;; 369 y | ye | yes ) val=yes ;;
368 n | no ) val=no ;; 370 n | no ) val=no ;;
369 * ) (echo "$progname: Usage error:" 371 * ) (echo "$progname: Usage error:"
788 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 790 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
789 fi 791 fi
790 fi 792 fi
791 793
792 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 794 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
793 echo "configure:794: checking whether ln -s works" >&5 795 echo "configure:796: checking whether ln -s works" >&5
794 796
795 rm -f conftestdata 797 rm -f conftestdata
796 if ln -s X conftestdata 2>/dev/null 798 if ln -s X conftestdata 2>/dev/null
797 then 799 then
798 rm -f conftestdata 800 rm -f conftestdata
1033 } 1035 }
1034 1036
1035 1037
1036 1038
1037 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 1039 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
1038 echo "configure:1039: checking "host system type"" >&5 1040 echo "configure:1041: checking "host system type"" >&5
1039 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1041 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1040 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` 1042 canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"`
1041 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1043 configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1042 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` 1044 canonical=`echo "$canonical" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
1043 echo "$ac_t""$configuration" 1>&6 1045 echo "$ac_t""$configuration" 1>&6
1416 if test "$dynamic" = "yes" ; then 1418 if test "$dynamic" = "yes" ; then
1417 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; 1419 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1418 else 1420 else
1419 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; 1421 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1420 fi ;; 1422 fi ;;
1423 *-sysv5* ) opsys=sco7 ;;
1421 *-386bsd* ) opsys=386bsd ;; 1424 *-386bsd* ) opsys=386bsd ;;
1422 *-freebsd* ) opsys=freebsd ;; 1425 *-freebsd* ) opsys=freebsd ;;
1423 *-nextstep* ) opsys=nextstep ;; 1426 *-nextstep* ) opsys=nextstep ;;
1424 *-pc-cygwin* ) opsys=cygwin32 ;; 1427 *-pc-cygwin* ) opsys=cygwin32 ;;
1425 *-pc-mingw* ) opsys=mingw32 ; 1428 *-pc-mingw* ) opsys=mingw32 ;
1525 xe_save_CFLAGS="$CFLAGS" 1528 xe_save_CFLAGS="$CFLAGS"
1526 1529
1527 # Extract the first word of "gcc", so it can be a program name with args. 1530 # Extract the first word of "gcc", so it can be a program name with args.
1528 set dummy gcc; ac_word=$2 1531 set dummy gcc; ac_word=$2
1529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1530 echo "configure:1531: checking for $ac_word" >&5 1533 echo "configure:1534: checking for $ac_word" >&5
1531 1534
1532 if test -n "$CC"; then 1535 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test. 1536 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 else 1537 else
1535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1552 1555
1553 if test -z "$CC"; then 1556 if test -z "$CC"; then
1554 # Extract the first word of "cc", so it can be a program name with args. 1557 # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2 1558 set dummy cc; ac_word=$2
1556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1557 echo "configure:1558: checking for $ac_word" >&5 1560 echo "configure:1561: checking for $ac_word" >&5
1558 1561
1559 if test -n "$CC"; then 1562 if test -n "$CC"; then
1560 ac_cv_prog_CC="$CC" # Let the user override the test. 1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1561 else 1564 else
1562 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1565 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1600 case "`uname -s`" in 1603 case "`uname -s`" in
1601 *win32* | *WIN32*) 1604 *win32* | *WIN32*)
1602 # Extract the first word of "cl", so it can be a program name with args. 1605 # Extract the first word of "cl", so it can be a program name with args.
1603 set dummy cl; ac_word=$2 1606 set dummy cl; ac_word=$2
1604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1605 echo "configure:1606: checking for $ac_word" >&5 1608 echo "configure:1609: checking for $ac_word" >&5
1606 1609
1607 if test -n "$CC"; then 1610 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test. 1611 ac_cv_prog_CC="$CC" # Let the user override the test.
1609 else 1612 else
1610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1629 fi 1632 fi
1630 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1633 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1631 fi 1634 fi
1632 1635
1633 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1636 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1634 echo "configure:1635: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1637 echo "configure:1638: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1635 1638
1636 ac_ext=c 1639 ac_ext=c
1637 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1640 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1638 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1641 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1639 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1642 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1642 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1645 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1643 cross_compiling=no 1646 cross_compiling=no
1644 1647
1645 cat > conftest.$ac_ext << EOF 1648 cat > conftest.$ac_ext << EOF
1646 1649
1647 #line 1648 "configure" 1650 #line 1651 "configure"
1648 #include "confdefs.h" 1651 #include "confdefs.h"
1649 1652
1650 main(){return(0);} 1653 main(){return(0);}
1651 EOF 1654 EOF
1652 if { (eval echo configure:1653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1655 if { (eval echo configure:1656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1653 ac_cv_prog_cc_works=yes 1656 ac_cv_prog_cc_works=yes
1654 # If we can't run a trivial program, we are probably using a cross compiler. 1657 # If we can't run a trivial program, we are probably using a cross compiler.
1655 if (./conftest; exit) 2>/dev/null; then 1658 if (./conftest; exit) 2>/dev/null; then
1656 ac_cv_prog_cc_cross=no 1659 ac_cv_prog_cc_cross=no
1657 else 1660 else
1675 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1678 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1676 if test $ac_cv_prog_cc_works = no; then 1679 if test $ac_cv_prog_cc_works = no; then
1677 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1680 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1678 fi 1681 fi
1679 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1682 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1683 echo "configure:1684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1681 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1684 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1682 cross_compiling=$ac_cv_prog_cc_cross 1685 cross_compiling=$ac_cv_prog_cc_cross
1683 1686
1684 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1687 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1685 echo "configure:1686: checking whether we are using GNU C" >&5 1688 echo "configure:1689: checking whether we are using GNU C" >&5
1686 1689
1687 cat > conftest.c <<EOF 1690 cat > conftest.c <<EOF
1688 #ifdef __GNUC__ 1691 #ifdef __GNUC__
1689 yes; 1692 yes;
1690 #endif 1693 #endif
1691 EOF 1694 EOF
1692 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1695 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1696: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1693 ac_cv_prog_gcc=yes 1696 ac_cv_prog_gcc=yes
1694 else 1697 else
1695 ac_cv_prog_gcc=no 1698 ac_cv_prog_gcc=no
1696 fi 1699 fi
1697 1700
1705 1708
1706 ac_test_CFLAGS="${CFLAGS+set}" 1709 ac_test_CFLAGS="${CFLAGS+set}"
1707 ac_save_CFLAGS="$CFLAGS" 1710 ac_save_CFLAGS="$CFLAGS"
1708 CFLAGS= 1711 CFLAGS=
1709 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1712 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1710 echo "configure:1711: checking whether ${CC-cc} accepts -g" >&5 1713 echo "configure:1714: checking whether ${CC-cc} accepts -g" >&5
1711 1714
1712 echo 'void f(){}' > conftest.c 1715 echo 'void f(){}' > conftest.c
1713 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1716 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1714 ac_cv_prog_cc_g=yes 1717 ac_cv_prog_cc_g=yes
1715 else 1718 else
1738 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1741 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1739 CC=${NON_GNU_CC-cc} 1742 CC=${NON_GNU_CC-cc}
1740 # Extract the first word of "gcc", so it can be a program name with args. 1743 # Extract the first word of "gcc", so it can be a program name with args.
1741 set dummy gcc; ac_word=$2 1744 set dummy gcc; ac_word=$2
1742 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1743 echo "configure:1744: checking for $ac_word" >&5 1746 echo "configure:1747: checking for $ac_word" >&5
1744 1747
1745 if test -n "$CC"; then 1748 if test -n "$CC"; then
1746 ac_cv_prog_CC="$CC" # Let the user override the test. 1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1747 else 1750 else
1748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1765 1768
1766 if test -z "$CC"; then 1769 if test -z "$CC"; then
1767 # Extract the first word of "cc", so it can be a program name with args. 1770 # Extract the first word of "cc", so it can be a program name with args.
1768 set dummy cc; ac_word=$2 1771 set dummy cc; ac_word=$2
1769 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1772 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1770 echo "configure:1771: checking for $ac_word" >&5 1773 echo "configure:1774: checking for $ac_word" >&5
1771 1774
1772 if test -n "$CC"; then 1775 if test -n "$CC"; then
1773 ac_cv_prog_CC="$CC" # Let the user override the test. 1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else 1777 else
1775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1813 case "`uname -s`" in 1816 case "`uname -s`" in
1814 *win32* | *WIN32*) 1817 *win32* | *WIN32*)
1815 # Extract the first word of "cl", so it can be a program name with args. 1818 # Extract the first word of "cl", so it can be a program name with args.
1816 set dummy cl; ac_word=$2 1819 set dummy cl; ac_word=$2
1817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_word" >&5 1821 echo "configure:1822: checking for $ac_word" >&5
1819 1822
1820 if test -n "$CC"; then 1823 if test -n "$CC"; then
1821 ac_cv_prog_CC="$CC" # Let the user override the test. 1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1822 else 1825 else
1823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1826 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1842 fi 1845 fi
1843 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1846 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1844 fi 1847 fi
1845 1848
1846 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1849 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1847 echo "configure:1848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1850 echo "configure:1851: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1848 1851
1849 ac_ext=c 1852 ac_ext=c
1850 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1853 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1851 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1854 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1852 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1855 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1855 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1858 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1856 cross_compiling=no 1859 cross_compiling=no
1857 1860
1858 cat > conftest.$ac_ext << EOF 1861 cat > conftest.$ac_ext << EOF
1859 1862
1860 #line 1861 "configure" 1863 #line 1864 "configure"
1861 #include "confdefs.h" 1864 #include "confdefs.h"
1862 1865
1863 main(){return(0);} 1866 main(){return(0);}
1864 EOF 1867 EOF
1865 if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1868 if { (eval echo configure:1869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1866 ac_cv_prog_cc_works=yes 1869 ac_cv_prog_cc_works=yes
1867 # If we can't run a trivial program, we are probably using a cross compiler. 1870 # If we can't run a trivial program, we are probably using a cross compiler.
1868 if (./conftest; exit) 2>/dev/null; then 1871 if (./conftest; exit) 2>/dev/null; then
1869 ac_cv_prog_cc_cross=no 1872 ac_cv_prog_cc_cross=no
1870 else 1873 else
1888 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1891 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1889 if test $ac_cv_prog_cc_works = no; then 1892 if test $ac_cv_prog_cc_works = no; then
1890 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1893 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1891 fi 1894 fi
1892 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1893 echo "configure:1894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1896 echo "configure:1897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1894 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1897 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1895 cross_compiling=$ac_cv_prog_cc_cross 1898 cross_compiling=$ac_cv_prog_cc_cross
1896 1899
1897 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1900 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1898 echo "configure:1899: checking whether we are using GNU C" >&5 1901 echo "configure:1902: checking whether we are using GNU C" >&5
1899 1902
1900 cat > conftest.c <<EOF 1903 cat > conftest.c <<EOF
1901 #ifdef __GNUC__ 1904 #ifdef __GNUC__
1902 yes; 1905 yes;
1903 #endif 1906 #endif
1904 EOF 1907 EOF
1905 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1908 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1906 ac_cv_prog_gcc=yes 1909 ac_cv_prog_gcc=yes
1907 else 1910 else
1908 ac_cv_prog_gcc=no 1911 ac_cv_prog_gcc=no
1909 fi 1912 fi
1910 1913
1918 1921
1919 ac_test_CFLAGS="${CFLAGS+set}" 1922 ac_test_CFLAGS="${CFLAGS+set}"
1920 ac_save_CFLAGS="$CFLAGS" 1923 ac_save_CFLAGS="$CFLAGS"
1921 CFLAGS= 1924 CFLAGS=
1922 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1925 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1923 echo "configure:1924: checking whether ${CC-cc} accepts -g" >&5 1926 echo "configure:1927: checking whether ${CC-cc} accepts -g" >&5
1924 1927
1925 echo 'void f(){}' > conftest.c 1928 echo 'void f(){}' > conftest.c
1926 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1929 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1927 ac_cv_prog_cc_g=yes 1930 ac_cv_prog_cc_g=yes
1928 else 1931 else
1951 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1954 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1952 CC=gcc 1955 CC=gcc
1953 # Extract the first word of "gcc", so it can be a program name with args. 1956 # Extract the first word of "gcc", so it can be a program name with args.
1954 set dummy gcc; ac_word=$2 1957 set dummy gcc; ac_word=$2
1955 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956 echo "configure:1957: checking for $ac_word" >&5 1959 echo "configure:1960: checking for $ac_word" >&5
1957 1960
1958 if test -n "$CC"; then 1961 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test. 1962 ac_cv_prog_CC="$CC" # Let the user override the test.
1960 else 1963 else
1961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1978 1981
1979 if test -z "$CC"; then 1982 if test -z "$CC"; then
1980 # Extract the first word of "cc", so it can be a program name with args. 1983 # Extract the first word of "cc", so it can be a program name with args.
1981 set dummy cc; ac_word=$2 1984 set dummy cc; ac_word=$2
1982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_word" >&5 1986 echo "configure:1987: checking for $ac_word" >&5
1984 1987
1985 if test -n "$CC"; then 1988 if test -n "$CC"; then
1986 ac_cv_prog_CC="$CC" # Let the user override the test. 1989 ac_cv_prog_CC="$CC" # Let the user override the test.
1987 else 1990 else
1988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2026 case "`uname -s`" in 2029 case "`uname -s`" in
2027 *win32* | *WIN32*) 2030 *win32* | *WIN32*)
2028 # Extract the first word of "cl", so it can be a program name with args. 2031 # Extract the first word of "cl", so it can be a program name with args.
2029 set dummy cl; ac_word=$2 2032 set dummy cl; ac_word=$2
2030 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2031 echo "configure:2032: checking for $ac_word" >&5 2034 echo "configure:2035: checking for $ac_word" >&5
2032 2035
2033 if test -n "$CC"; then 2036 if test -n "$CC"; then
2034 ac_cv_prog_CC="$CC" # Let the user override the test. 2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2035 else 2038 else
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2055 fi 2058 fi
2056 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2059 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2057 fi 2060 fi
2058 2061
2059 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2062 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2060 echo "configure:2061: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2063 echo "configure:2064: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2061 2064
2062 ac_ext=c 2065 ac_ext=c
2063 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2066 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2064 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2067 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2065 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2068 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
2068 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2071 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2069 cross_compiling=no 2072 cross_compiling=no
2070 2073
2071 cat > conftest.$ac_ext << EOF 2074 cat > conftest.$ac_ext << EOF
2072 2075
2073 #line 2074 "configure" 2076 #line 2077 "configure"
2074 #include "confdefs.h" 2077 #include "confdefs.h"
2075 2078
2076 main(){return(0);} 2079 main(){return(0);}
2077 EOF 2080 EOF
2078 if { (eval echo configure:2079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2081 if { (eval echo configure:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2079 ac_cv_prog_cc_works=yes 2082 ac_cv_prog_cc_works=yes
2080 # If we can't run a trivial program, we are probably using a cross compiler. 2083 # If we can't run a trivial program, we are probably using a cross compiler.
2081 if (./conftest; exit) 2>/dev/null; then 2084 if (./conftest; exit) 2>/dev/null; then
2082 ac_cv_prog_cc_cross=no 2085 ac_cv_prog_cc_cross=no
2083 else 2086 else
2101 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2104 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2102 if test $ac_cv_prog_cc_works = no; then 2105 if test $ac_cv_prog_cc_works = no; then
2103 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2106 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2104 fi 2107 fi
2105 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2108 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2106 echo "configure:2107: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2109 echo "configure:2110: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2107 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2110 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2108 cross_compiling=$ac_cv_prog_cc_cross 2111 cross_compiling=$ac_cv_prog_cc_cross
2109 2112
2110 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2113 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2111 echo "configure:2112: checking whether we are using GNU C" >&5 2114 echo "configure:2115: checking whether we are using GNU C" >&5
2112 2115
2113 cat > conftest.c <<EOF 2116 cat > conftest.c <<EOF
2114 #ifdef __GNUC__ 2117 #ifdef __GNUC__
2115 yes; 2118 yes;
2116 #endif 2119 #endif
2117 EOF 2120 EOF
2118 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2121 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2119 ac_cv_prog_gcc=yes 2122 ac_cv_prog_gcc=yes
2120 else 2123 else
2121 ac_cv_prog_gcc=no 2124 ac_cv_prog_gcc=no
2122 fi 2125 fi
2123 2126
2131 2134
2132 ac_test_CFLAGS="${CFLAGS+set}" 2135 ac_test_CFLAGS="${CFLAGS+set}"
2133 ac_save_CFLAGS="$CFLAGS" 2136 ac_save_CFLAGS="$CFLAGS"
2134 CFLAGS= 2137 CFLAGS=
2135 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2138 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2136 echo "configure:2137: checking whether ${CC-cc} accepts -g" >&5 2139 echo "configure:2140: checking whether ${CC-cc} accepts -g" >&5
2137 2140
2138 echo 'void f(){}' > conftest.c 2141 echo 'void f(){}' > conftest.c
2139 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2142 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2140 ac_cv_prog_cc_g=yes 2143 ac_cv_prog_cc_g=yes
2141 else 2144 else
2168 test -n "$CPP" -a -d "$CPP" && CPP= 2171 test -n "$CPP" -a -d "$CPP" && CPP=
2169 2172
2170 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2173 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
2171 2174
2172 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2175 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2173 echo "configure:2174: checking how to run the C preprocessor" >&5 2176 echo "configure:2177: checking how to run the C preprocessor" >&5
2174 # On Suns, sometimes $CPP names a directory. 2177 # On Suns, sometimes $CPP names a directory.
2175 if test -n "$CPP" && test -d "$CPP"; then 2178 if test -n "$CPP" && test -d "$CPP"; then
2176 CPP= 2179 CPP=
2177 fi 2180 fi
2178 if test -z "$CPP"; then 2181 if test -z "$CPP"; then
2181 # substituted into the Makefile and "${CC-cc}" will confuse make. 2184 # substituted into the Makefile and "${CC-cc}" will confuse make.
2182 CPP="${CC-cc} -E" 2185 CPP="${CC-cc} -E"
2183 # On the NeXT, cc -E runs the code through the compiler's parser, 2186 # On the NeXT, cc -E runs the code through the compiler's parser,
2184 # not just through cpp. 2187 # not just through cpp.
2185 cat > conftest.$ac_ext <<EOF 2188 cat > conftest.$ac_ext <<EOF
2186 #line 2187 "configure" 2189 #line 2190 "configure"
2187 #include "confdefs.h" 2190 #include "confdefs.h"
2188 #include <assert.h> 2191 #include <assert.h>
2189 Syntax Error 2192 Syntax Error
2190 EOF 2193 EOF
2191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2192 { (eval echo configure:2193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2195 { (eval echo configure:2196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2194 if test -z "$ac_err"; then 2197 if test -z "$ac_err"; then
2195 : 2198 :
2196 else 2199 else
2197 echo "$ac_err" >&5 2200 echo "$ac_err" >&5
2198 echo "configure: failed program was:" >&5 2201 echo "configure: failed program was:" >&5
2199 cat conftest.$ac_ext >&5 2202 cat conftest.$ac_ext >&5
2200 rm -rf conftest* 2203 rm -rf conftest*
2201 CPP="${CC-cc} -E -traditional-cpp" 2204 CPP="${CC-cc} -E -traditional-cpp"
2202 cat > conftest.$ac_ext <<EOF 2205 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure" 2206 #line 2207 "configure"
2204 #include "confdefs.h" 2207 #include "confdefs.h"
2205 #include <assert.h> 2208 #include <assert.h>
2206 Syntax Error 2209 Syntax Error
2207 EOF 2210 EOF
2208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2209 { (eval echo configure:2210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2211 if test -z "$ac_err"; then 2214 if test -z "$ac_err"; then
2212 : 2215 :
2213 else 2216 else
2214 echo "$ac_err" >&5 2217 echo "$ac_err" >&5
2215 echo "configure: failed program was:" >&5 2218 echo "configure: failed program was:" >&5
2216 cat conftest.$ac_ext >&5 2219 cat conftest.$ac_ext >&5
2217 rm -rf conftest* 2220 rm -rf conftest*
2218 CPP="${CC-cc} -nologo -E" 2221 CPP="${CC-cc} -nologo -E"
2219 cat > conftest.$ac_ext <<EOF 2222 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure" 2223 #line 2224 "configure"
2221 #include "confdefs.h" 2224 #include "confdefs.h"
2222 #include <assert.h> 2225 #include <assert.h>
2223 Syntax Error 2226 Syntax Error
2224 EOF 2227 EOF
2225 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2226 { (eval echo configure:2227: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2229 { (eval echo configure:2230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2227 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2228 if test -z "$ac_err"; then 2231 if test -z "$ac_err"; then
2229 : 2232 :
2230 else 2233 else
2231 echo "$ac_err" >&5 2234 echo "$ac_err" >&5
2246 fi 2249 fi
2247 echo "$ac_t""$CPP" 1>&6 2250 echo "$ac_t""$CPP" 1>&6
2248 2251
2249 2252
2250 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2253 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2251 echo "configure:2252: checking for AIX" >&5 2254 echo "configure:2255: checking for AIX" >&5
2252 cat > conftest.$ac_ext <<EOF 2255 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure" 2256 #line 2257 "configure"
2254 #include "confdefs.h" 2257 #include "confdefs.h"
2255 #ifdef _AIX 2258 #ifdef _AIX
2256 yes 2259 yes
2257 #endif 2260 #endif
2258 2261
2275 rm -f conftest* 2278 rm -f conftest*
2276 2279
2277 2280
2278 2281
2279 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2282 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2280 echo "configure:2281: checking for GNU libc" >&5 2283 echo "configure:2284: checking for GNU libc" >&5
2281 cat > conftest.$ac_ext <<EOF 2284 cat > conftest.$ac_ext <<EOF
2282 #line 2283 "configure" 2285 #line 2286 "configure"
2283 #include "confdefs.h" 2286 #include "confdefs.h"
2284 #include <features.h> 2287 #include <features.h>
2285 int main() { 2288 int main() {
2286 2289
2287 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2290 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2289 ******* ======= ******** &&&&&&&& 2292 ******* ======= ******** &&&&&&&&
2290 #endif 2293 #endif
2291 2294
2292 ; return 0; } 2295 ; return 0; }
2293 EOF 2296 EOF
2294 if { (eval echo configure:2295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2297 if { (eval echo configure:2298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2295 rm -rf conftest* 2298 rm -rf conftest*
2296 have_glibc=yes 2299 have_glibc=yes
2297 else 2300 else
2298 echo "configure: failed program was:" >&5 2301 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5 2302 cat conftest.$ac_ext >&5
2311 } 2314 }
2312 2315
2313 2316
2314 2317
2315 cat > conftest.$ac_ext <<EOF 2318 cat > conftest.$ac_ext <<EOF
2316 #line 2317 "configure" 2319 #line 2320 "configure"
2317 #include "confdefs.h" 2320 #include "confdefs.h"
2318 int main () { 2321 int main () {
2319 #if defined __SUNPRO_C 2322 #if defined __SUNPRO_C
2320 return 11; 2323 return 11;
2321 #elif defined __DECC 2324 #elif defined __DECC
2323 #else 2326 #else
2324 return 0; 2327 return 0;
2325 #endif 2328 #endif
2326 } 2329 }
2327 EOF 2330 EOF
2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2331 if { (eval echo configure:2332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2329 then 2332 then
2330 : 2333 :
2331 else 2334 else
2332 conftest_rc="$?" 2335 conftest_rc="$?"
2333 echo "configure: failed program was:" >&5 2336 echo "configure: failed program was:" >&5
2597 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2600 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2598 echo " xemacs will be linked with \"$unexec\"" 2601 echo " xemacs will be linked with \"$unexec\""
2599 fi 2602 fi
2600 2603
2601 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2604 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2602 echo "configure:2603: checking for dynodump" >&5 2605 echo "configure:2606: checking for dynodump" >&5
2603 if test "$unexec" != "unexsol2.o"; then 2606 if test "$unexec" != "unexsol2.o"; then
2604 echo "$ac_t""no" 1>&6 2607 echo "$ac_t""no" 1>&6
2605 else 2608 else
2606 echo "$ac_t""yes" 1>&6 2609 echo "$ac_t""yes" 1>&6
2607 { test "$extra_verbose" = "yes" && cat << \EOF 2610 { test "$extra_verbose" = "yes" && cat << \EOF
2635 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2638 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2636 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2639 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2637 done 2640 done
2638 2641
2639 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2642 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2640 echo "configure:2641: checking for terminateAndUnload in -lC" >&5 2643 echo "configure:2644: checking for terminateAndUnload in -lC" >&5
2641 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2644 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2642 2645
2643 xe_check_libs=" -lC " 2646 xe_check_libs=" -lC "
2644 cat > conftest.$ac_ext <<EOF 2647 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure" 2648 #line 2649 "configure"
2646 #include "confdefs.h" 2649 #include "confdefs.h"
2647 /* Override any gcc2 internal prototype to avoid an error. */ 2650 /* Override any gcc2 internal prototype to avoid an error. */
2648 /* We use char because int might match the return type of a gcc2 2651 /* We use char because int might match the return type of a gcc2
2649 builtin and then its argument prototype would still apply. */ 2652 builtin and then its argument prototype would still apply. */
2650 char terminateAndUnload(); 2653 char terminateAndUnload();
2651 2654
2652 int main() { 2655 int main() {
2653 terminateAndUnload() 2656 terminateAndUnload()
2654 ; return 0; } 2657 ; return 0; }
2655 EOF 2658 EOF
2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2659 if { (eval echo configure:2660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657 rm -rf conftest* 2660 rm -rf conftest*
2658 eval "ac_cv_lib_$ac_lib_var=yes" 2661 eval "ac_cv_lib_$ac_lib_var=yes"
2659 else 2662 else
2660 echo "configure: failed program was:" >&5 2663 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5 2664 cat conftest.$ac_ext >&5
2755 esac 2758 esac
2756 fi 2759 fi
2757 2760
2758 if test "$add_runtime_path" = "yes"; then 2761 if test "$add_runtime_path" = "yes"; then
2759 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2762 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2760 echo "configure:2761: checking "for runtime libraries flag"" >&5 2763 echo "configure:2764: checking "for runtime libraries flag"" >&5
2761 case "$opsys" in 2764 case "$opsys" in
2762 sol2 ) dash_r="-R" ;; 2765 sol2 ) dash_r="-R" ;;
2763 decosf* | linux* | irix*) dash_r="-rpath " ;; 2766 decosf* | linux* | irix*) dash_r="-rpath " ;;
2764 *) 2767 *)
2765 dash_r="" 2768 dash_r=""
2777 esac 2780 esac
2778 shift 2781 shift
2779 done 2782 done
2780 fi 2783 fi
2781 cat > conftest.$ac_ext <<EOF 2784 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure" 2785 #line 2786 "configure"
2783 #include "confdefs.h" 2786 #include "confdefs.h"
2784 2787
2785 int main() { 2788 int main() {
2786 2789
2787 ; return 0; } 2790 ; return 0; }
2788 EOF 2791 EOF
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2792 if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2790 rm -rf conftest* 2793 rm -rf conftest*
2791 dash_r="$try_dash_r" 2794 dash_r="$try_dash_r"
2792 else 2795 else
2793 echo "configure: failed program was:" >&5 2796 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5 2797 cat conftest.$ac_ext >&5
2886 else 2889 else
2887 doug_lea_malloc=no 2890 doug_lea_malloc=no
2888 fi 2891 fi
2889 after_morecore_hook_exists=yes 2892 after_morecore_hook_exists=yes
2890 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2893 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2891 echo "configure:2892: checking for malloc_get_state" >&5 2894 echo "configure:2895: checking for malloc_get_state" >&5
2892 2895
2893 cat > conftest.$ac_ext <<EOF 2896 cat > conftest.$ac_ext <<EOF
2894 #line 2895 "configure" 2897 #line 2898 "configure"
2895 #include "confdefs.h" 2898 #include "confdefs.h"
2896 /* System header to define __stub macros and hopefully few prototypes, 2899 /* System header to define __stub macros and hopefully few prototypes,
2897 which can conflict with char malloc_get_state(); below. */ 2900 which can conflict with char malloc_get_state(); below. */
2898 #include <assert.h> 2901 #include <assert.h>
2899 /* Override any gcc2 internal prototype to avoid an error. */ 2902 /* Override any gcc2 internal prototype to avoid an error. */
2912 malloc_get_state(); 2915 malloc_get_state();
2913 #endif 2916 #endif
2914 2917
2915 ; return 0; } 2918 ; return 0; }
2916 EOF 2919 EOF
2917 if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2918 rm -rf conftest* 2921 rm -rf conftest*
2919 eval "ac_cv_func_malloc_get_state=yes" 2922 eval "ac_cv_func_malloc_get_state=yes"
2920 else 2923 else
2921 echo "configure: failed program was:" >&5 2924 echo "configure: failed program was:" >&5
2922 cat conftest.$ac_ext >&5 2925 cat conftest.$ac_ext >&5
2932 echo "$ac_t""no" 1>&6 2935 echo "$ac_t""no" 1>&6
2933 doug_lea_malloc=no 2936 doug_lea_malloc=no
2934 fi 2937 fi
2935 2938
2936 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2939 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2937 echo "configure:2938: checking for malloc_set_state" >&5 2940 echo "configure:2941: checking for malloc_set_state" >&5
2938 2941
2939 cat > conftest.$ac_ext <<EOF 2942 cat > conftest.$ac_ext <<EOF
2940 #line 2941 "configure" 2943 #line 2944 "configure"
2941 #include "confdefs.h" 2944 #include "confdefs.h"
2942 /* System header to define __stub macros and hopefully few prototypes, 2945 /* System header to define __stub macros and hopefully few prototypes,
2943 which can conflict with char malloc_set_state(); below. */ 2946 which can conflict with char malloc_set_state(); below. */
2944 #include <assert.h> 2947 #include <assert.h>
2945 /* Override any gcc2 internal prototype to avoid an error. */ 2948 /* Override any gcc2 internal prototype to avoid an error. */
2958 malloc_set_state(); 2961 malloc_set_state();
2959 #endif 2962 #endif
2960 2963
2961 ; return 0; } 2964 ; return 0; }
2962 EOF 2965 EOF
2963 if { (eval echo configure:2964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2964 rm -rf conftest* 2967 rm -rf conftest*
2965 eval "ac_cv_func_malloc_set_state=yes" 2968 eval "ac_cv_func_malloc_set_state=yes"
2966 else 2969 else
2967 echo "configure: failed program was:" >&5 2970 echo "configure: failed program was:" >&5
2968 cat conftest.$ac_ext >&5 2971 cat conftest.$ac_ext >&5
2978 echo "$ac_t""no" 1>&6 2981 echo "$ac_t""no" 1>&6
2979 doug_lea_malloc=no 2982 doug_lea_malloc=no
2980 fi 2983 fi
2981 2984
2982 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2985 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2983 echo "configure:2984: checking whether __after_morecore_hook exists" >&5 2986 echo "configure:2987: checking whether __after_morecore_hook exists" >&5
2984 cat > conftest.$ac_ext <<EOF 2987 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure" 2988 #line 2989 "configure"
2986 #include "confdefs.h" 2989 #include "confdefs.h"
2987 extern void (* __after_morecore_hook)(); 2990 extern void (* __after_morecore_hook)();
2988 int main() { 2991 int main() {
2989 __after_morecore_hook = 0 2992 __after_morecore_hook = 0
2990 ; return 0; } 2993 ; return 0; }
2991 EOF 2994 EOF
2992 if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2993 rm -rf conftest* 2996 rm -rf conftest*
2994 echo "$ac_t""yes" 1>&6 2997 echo "$ac_t""yes" 1>&6
2995 else 2998 else
2996 echo "configure: failed program was:" >&5 2999 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5 3000 cat conftest.$ac_ext >&5
3046 3049
3047 3050
3048 # Extract the first word of "ranlib", so it can be a program name with args. 3051 # Extract the first word of "ranlib", so it can be a program name with args.
3049 set dummy ranlib; ac_word=$2 3052 set dummy ranlib; ac_word=$2
3050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3051 echo "configure:3052: checking for $ac_word" >&5 3054 echo "configure:3055: checking for $ac_word" >&5
3052 3055
3053 if test -n "$RANLIB"; then 3056 if test -n "$RANLIB"; then
3054 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3055 else 3058 else
3056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3101 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3104 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3102 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3105 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3103 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3106 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3104 # ./install, which can be erroneously created by make from ./install.sh. 3107 # ./install, which can be erroneously created by make from ./install.sh.
3105 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3108 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3106 echo "configure:3107: checking for a BSD compatible install" >&5 3109 echo "configure:3110: checking for a BSD compatible install" >&5
3107 if test -z "$INSTALL"; then 3110 if test -z "$INSTALL"; then
3108 3111
3109 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 3112 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3110 for ac_dir in $PATH; do 3113 for ac_dir in $PATH; do
3111 # Account for people who put trailing slashes in PATH elements. 3114 # Account for people who put trailing slashes in PATH elements.
3155 for ac_prog in 'bison -y' byacc 3158 for ac_prog in 'bison -y' byacc
3156 do 3159 do
3157 # Extract the first word of "$ac_prog", so it can be a program name with args. 3160 # Extract the first word of "$ac_prog", so it can be a program name with args.
3158 set dummy $ac_prog; ac_word=$2 3161 set dummy $ac_prog; ac_word=$2
3159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3160 echo "configure:3161: checking for $ac_word" >&5 3163 echo "configure:3164: checking for $ac_word" >&5
3161 3164
3162 if test -n "$YACC"; then 3165 if test -n "$YACC"; then
3163 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3166 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3164 else 3167 else
3165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3187 3190
3188 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3191 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
3189 do 3192 do
3190 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3193 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3191 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_hdr" >&5 3195 echo "configure:3196: checking for $ac_hdr" >&5
3193 3196
3194 cat > conftest.$ac_ext <<EOF 3197 cat > conftest.$ac_ext <<EOF
3195 #line 3196 "configure" 3198 #line 3199 "configure"
3196 #include "confdefs.h" 3199 #include "confdefs.h"
3197 #include <$ac_hdr> 3200 #include <$ac_hdr>
3198 EOF 3201 EOF
3199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3200 { (eval echo configure:3201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3203 { (eval echo configure:3204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3202 if test -z "$ac_err"; then 3205 if test -z "$ac_err"; then
3203 rm -rf conftest* 3206 rm -rf conftest*
3204 eval "ac_cv_header_$ac_safe=yes" 3207 eval "ac_cv_header_$ac_safe=yes"
3205 else 3208 else
3228 3231
3229 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3232 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
3230 do 3233 do
3231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_hdr" >&5 3236 echo "configure:3237: checking for $ac_hdr" >&5
3234 3237
3235 cat > conftest.$ac_ext <<EOF 3238 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure" 3239 #line 3240 "configure"
3237 #include "confdefs.h" 3240 #include "confdefs.h"
3238 #include <$ac_hdr> 3241 #include <$ac_hdr>
3239 EOF 3242 EOF
3240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3241 { (eval echo configure:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3244 { (eval echo configure:3245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3243 if test -z "$ac_err"; then 3246 if test -z "$ac_err"; then
3244 rm -rf conftest* 3247 rm -rf conftest*
3245 eval "ac_cv_header_$ac_safe=yes" 3248 eval "ac_cv_header_$ac_safe=yes"
3246 else 3249 else
3269 3272
3270 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3273 for ac_hdr in kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3271 do 3274 do
3272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3275 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3276 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3274 echo "configure:3275: checking for $ac_hdr" >&5 3277 echo "configure:3278: checking for $ac_hdr" >&5
3275 3278
3276 cat > conftest.$ac_ext <<EOF 3279 cat > conftest.$ac_ext <<EOF
3277 #line 3278 "configure" 3280 #line 3281 "configure"
3278 #include "confdefs.h" 3281 #include "confdefs.h"
3279 #include <$ac_hdr> 3282 #include <$ac_hdr>
3280 EOF 3283 EOF
3281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3282 { (eval echo configure:3283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3285 { (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3284 if test -z "$ac_err"; then 3287 if test -z "$ac_err"; then
3285 rm -rf conftest* 3288 rm -rf conftest*
3286 eval "ac_cv_header_$ac_safe=yes" 3289 eval "ac_cv_header_$ac_safe=yes"
3287 else 3290 else
3307 echo "$ac_t""no" 1>&6 3310 echo "$ac_t""no" 1>&6
3308 fi 3311 fi
3309 done 3312 done
3310 3313
3311 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3314 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3312 echo "configure:3313: checking for sys/wait.h that is POSIX.1 compatible" >&5 3315 echo "configure:3316: checking for sys/wait.h that is POSIX.1 compatible" >&5
3313 3316
3314 cat > conftest.$ac_ext <<EOF 3317 cat > conftest.$ac_ext <<EOF
3315 #line 3316 "configure" 3318 #line 3319 "configure"
3316 #include "confdefs.h" 3319 #include "confdefs.h"
3317 #include <sys/types.h> 3320 #include <sys/types.h>
3318 #include <sys/wait.h> 3321 #include <sys/wait.h>
3319 #ifndef WEXITSTATUS 3322 #ifndef WEXITSTATUS
3320 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3323 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3326 int s; 3329 int s;
3327 wait (&s); 3330 wait (&s);
3328 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3331 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3329 ; return 0; } 3332 ; return 0; }
3330 EOF 3333 EOF
3331 if { (eval echo configure:3332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3334 if { (eval echo configure:3335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3332 rm -rf conftest* 3335 rm -rf conftest*
3333 ac_cv_header_sys_wait_h=yes 3336 ac_cv_header_sys_wait_h=yes
3334 else 3337 else
3335 echo "configure: failed program was:" >&5 3338 echo "configure: failed program was:" >&5
3336 cat conftest.$ac_ext >&5 3339 cat conftest.$ac_ext >&5
3350 } 3353 }
3351 3354
3352 fi 3355 fi
3353 3356
3354 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3357 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3355 echo "configure:3356: checking for ANSI C header files" >&5 3358 echo "configure:3359: checking for ANSI C header files" >&5
3356 3359
3357 cat > conftest.$ac_ext <<EOF 3360 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure" 3361 #line 3362 "configure"
3359 #include "confdefs.h" 3362 #include "confdefs.h"
3360 #include <stdlib.h> 3363 #include <stdlib.h>
3361 #include <stdarg.h> 3364 #include <stdarg.h>
3362 #include <string.h> 3365 #include <string.h>
3363 #include <float.h> 3366 #include <float.h>
3364 EOF 3367 EOF
3365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3366 { (eval echo configure:3367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3369 { (eval echo configure:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3368 if test -z "$ac_err"; then 3371 if test -z "$ac_err"; then
3369 rm -rf conftest* 3372 rm -rf conftest*
3370 ac_cv_header_stdc=yes 3373 ac_cv_header_stdc=yes
3371 else 3374 else
3378 rm -f conftest* 3381 rm -f conftest*
3379 3382
3380 if test $ac_cv_header_stdc = yes; then 3383 if test $ac_cv_header_stdc = yes; then
3381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3382 cat > conftest.$ac_ext <<EOF 3385 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure" 3386 #line 3387 "configure"
3384 #include "confdefs.h" 3387 #include "confdefs.h"
3385 #include <string.h> 3388 #include <string.h>
3386 EOF 3389 EOF
3387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3388 egrep "memchr" >/dev/null 2>&1; then 3391 egrep "memchr" >/dev/null 2>&1; then
3396 fi 3399 fi
3397 3400
3398 if test $ac_cv_header_stdc = yes; then 3401 if test $ac_cv_header_stdc = yes; then
3399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3400 cat > conftest.$ac_ext <<EOF 3403 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure" 3404 #line 3405 "configure"
3402 #include "confdefs.h" 3405 #include "confdefs.h"
3403 #include <stdlib.h> 3406 #include <stdlib.h>
3404 EOF 3407 EOF
3405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3406 egrep "free" >/dev/null 2>&1; then 3409 egrep "free" >/dev/null 2>&1; then
3414 fi 3417 fi
3415 3418
3416 if test $ac_cv_header_stdc = yes; then 3419 if test $ac_cv_header_stdc = yes; then
3417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3420 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3418 cat > conftest.$ac_ext <<EOF 3421 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure" 3422 #line 3423 "configure"
3420 #include "confdefs.h" 3423 #include "confdefs.h"
3421 #include <ctype.h> 3424 #include <ctype.h>
3422 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3425 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3423 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3426 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3425 int main () { int i; for (i = 0; i < 256; i++) 3428 int main () { int i; for (i = 0; i < 256; i++)
3426 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3429 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3427 exit (0); } 3430 exit (0); }
3428 3431
3429 EOF 3432 EOF
3430 if { (eval echo configure:3431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3433 if { (eval echo configure:3434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3431 then 3434 then
3432 : 3435 :
3433 else 3436 else
3434 conftest_rc="$?" 3437 conftest_rc="$?"
3435 echo "configure: failed program was:" >&5 3438 echo "configure: failed program was:" >&5
3451 } 3454 }
3452 3455
3453 fi 3456 fi
3454 3457
3455 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3458 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3456 echo "configure:3457: checking whether time.h and sys/time.h may both be included" >&5 3459 echo "configure:3460: checking whether time.h and sys/time.h may both be included" >&5
3457 3460
3458 cat > conftest.$ac_ext <<EOF 3461 cat > conftest.$ac_ext <<EOF
3459 #line 3460 "configure" 3462 #line 3463 "configure"
3460 #include "confdefs.h" 3463 #include "confdefs.h"
3461 #include <sys/types.h> 3464 #include <sys/types.h>
3462 #include <sys/time.h> 3465 #include <sys/time.h>
3463 #include <time.h> 3466 #include <time.h>
3464 int main() { 3467 int main() {
3465 struct tm *tp; 3468 struct tm *tp;
3466 ; return 0; } 3469 ; return 0; }
3467 EOF 3470 EOF
3468 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3469 rm -rf conftest* 3472 rm -rf conftest*
3470 ac_cv_header_time=yes 3473 ac_cv_header_time=yes
3471 else 3474 else
3472 echo "configure: failed program was:" >&5 3475 echo "configure: failed program was:" >&5
3473 cat conftest.$ac_ext >&5 3476 cat conftest.$ac_ext >&5
3487 } 3490 }
3488 3491
3489 fi 3492 fi
3490 3493
3491 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3494 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3492 echo "configure:3493: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3495 echo "configure:3496: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3493 3496
3494 cat > conftest.$ac_ext <<EOF 3497 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure" 3498 #line 3499 "configure"
3496 #include "confdefs.h" 3499 #include "confdefs.h"
3497 #include <sys/types.h> 3500 #include <sys/types.h>
3498 #include <signal.h> 3501 #include <signal.h>
3499 /* NetBSD declares sys_siglist in unistd.h. */ 3502 /* NetBSD declares sys_siglist in unistd.h. */
3500 #ifdef HAVE_UNISTD_H 3503 #ifdef HAVE_UNISTD_H
3502 #endif 3505 #endif
3503 int main() { 3506 int main() {
3504 char *msg = *(sys_siglist + 1); 3507 char *msg = *(sys_siglist + 1);
3505 ; return 0; } 3508 ; return 0; }
3506 EOF 3509 EOF
3507 if { (eval echo configure:3508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3510 if { (eval echo configure:3511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3508 rm -rf conftest* 3511 rm -rf conftest*
3509 ac_cv_decl_sys_siglist=yes 3512 ac_cv_decl_sys_siglist=yes
3510 else 3513 else
3511 echo "configure: failed program was:" >&5 3514 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5 3515 cat conftest.$ac_ext >&5
3527 3530
3528 fi 3531 fi
3529 3532
3530 3533
3531 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3534 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3532 echo "configure:3533: checking for struct utimbuf" >&5 3535 echo "configure:3536: checking for struct utimbuf" >&5
3533 cat > conftest.$ac_ext <<EOF 3536 cat > conftest.$ac_ext <<EOF
3534 #line 3535 "configure" 3537 #line 3538 "configure"
3535 #include "confdefs.h" 3538 #include "confdefs.h"
3536 #ifdef TIME_WITH_SYS_TIME 3539 #ifdef TIME_WITH_SYS_TIME
3537 #include <sys/time.h> 3540 #include <sys/time.h>
3538 #include <time.h> 3541 #include <time.h>
3539 #else 3542 #else
3548 #endif 3551 #endif
3549 int main() { 3552 int main() {
3550 static struct utimbuf x; x.actime = x.modtime; 3553 static struct utimbuf x; x.actime = x.modtime;
3551 ; return 0; } 3554 ; return 0; }
3552 EOF 3555 EOF
3553 if { (eval echo configure:3554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3556 if { (eval echo configure:3557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 rm -rf conftest* 3557 rm -rf conftest*
3555 echo "$ac_t""yes" 1>&6 3558 echo "$ac_t""yes" 1>&6
3556 { test "$extra_verbose" = "yes" && cat << \EOF 3559 { test "$extra_verbose" = "yes" && cat << \EOF
3557 Defining HAVE_STRUCT_UTIMBUF 3560 Defining HAVE_STRUCT_UTIMBUF
3558 EOF 3561 EOF
3568 echo "$ac_t""no" 1>&6 3571 echo "$ac_t""no" 1>&6
3569 fi 3572 fi
3570 rm -f conftest* 3573 rm -f conftest*
3571 3574
3572 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3575 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3573 echo "configure:3574: checking return type of signal handlers" >&5 3576 echo "configure:3577: checking return type of signal handlers" >&5
3574 3577
3575 cat > conftest.$ac_ext <<EOF 3578 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure" 3579 #line 3580 "configure"
3577 #include "confdefs.h" 3580 #include "confdefs.h"
3578 #include <sys/types.h> 3581 #include <sys/types.h>
3579 #include <signal.h> 3582 #include <signal.h>
3580 #ifdef signal 3583 #ifdef signal
3581 #undef signal 3584 #undef signal
3588 3591
3589 int main() { 3592 int main() {
3590 int i; 3593 int i;
3591 ; return 0; } 3594 ; return 0; }
3592 EOF 3595 EOF
3593 if { (eval echo configure:3594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3596 if { (eval echo configure:3597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594 rm -rf conftest* 3597 rm -rf conftest*
3595 ac_cv_type_signal=void 3598 ac_cv_type_signal=void
3596 else 3599 else
3597 echo "configure: failed program was:" >&5 3600 echo "configure: failed program was:" >&5
3598 cat conftest.$ac_ext >&5 3601 cat conftest.$ac_ext >&5
3610 EOF 3613 EOF
3611 } 3614 }
3612 3615
3613 3616
3614 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3617 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3615 echo "configure:3616: checking for size_t" >&5 3618 echo "configure:3619: checking for size_t" >&5
3616 3619
3617 cat > conftest.$ac_ext <<EOF 3620 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure" 3621 #line 3622 "configure"
3619 #include "confdefs.h" 3622 #include "confdefs.h"
3620 #include <sys/types.h> 3623 #include <sys/types.h>
3621 #if STDC_HEADERS 3624 #if STDC_HEADERS
3622 #include <stdlib.h> 3625 #include <stdlib.h>
3623 #include <stddef.h> 3626 #include <stddef.h>
3644 } 3647 }
3645 3648
3646 fi 3649 fi
3647 3650
3648 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3651 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3649 echo "configure:3650: checking for pid_t" >&5 3652 echo "configure:3653: checking for pid_t" >&5
3650 3653
3651 cat > conftest.$ac_ext <<EOF 3654 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure" 3655 #line 3656 "configure"
3653 #include "confdefs.h" 3656 #include "confdefs.h"
3654 #include <sys/types.h> 3657 #include <sys/types.h>
3655 #if STDC_HEADERS 3658 #if STDC_HEADERS
3656 #include <stdlib.h> 3659 #include <stdlib.h>
3657 #include <stddef.h> 3660 #include <stddef.h>
3678 } 3681 }
3679 3682
3680 fi 3683 fi
3681 3684
3682 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3685 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3683 echo "configure:3684: checking for uid_t in sys/types.h" >&5 3686 echo "configure:3687: checking for uid_t in sys/types.h" >&5
3684 3687
3685 cat > conftest.$ac_ext <<EOF 3688 cat > conftest.$ac_ext <<EOF
3686 #line 3687 "configure" 3689 #line 3690 "configure"
3687 #include "confdefs.h" 3690 #include "confdefs.h"
3688 #include <sys/types.h> 3691 #include <sys/types.h>
3689 EOF 3692 EOF
3690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3691 egrep "uid_t" >/dev/null 2>&1; then 3694 egrep "uid_t" >/dev/null 2>&1; then
3717 } 3720 }
3718 3721
3719 fi 3722 fi
3720 3723
3721 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3724 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3722 echo "configure:3723: checking for mode_t" >&5 3725 echo "configure:3726: checking for mode_t" >&5
3723 3726
3724 cat > conftest.$ac_ext <<EOF 3727 cat > conftest.$ac_ext <<EOF
3725 #line 3726 "configure" 3728 #line 3729 "configure"
3726 #include "confdefs.h" 3729 #include "confdefs.h"
3727 #include <sys/types.h> 3730 #include <sys/types.h>
3728 #if STDC_HEADERS 3731 #if STDC_HEADERS
3729 #include <stdlib.h> 3732 #include <stdlib.h>
3730 #include <stddef.h> 3733 #include <stddef.h>
3751 } 3754 }
3752 3755
3753 fi 3756 fi
3754 3757
3755 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3758 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3756 echo "configure:3757: checking for off_t" >&5 3759 echo "configure:3760: checking for off_t" >&5
3757 3760
3758 cat > conftest.$ac_ext <<EOF 3761 cat > conftest.$ac_ext <<EOF
3759 #line 3760 "configure" 3762 #line 3763 "configure"
3760 #include "confdefs.h" 3763 #include "confdefs.h"
3761 #include <sys/types.h> 3764 #include <sys/types.h>
3762 #if STDC_HEADERS 3765 #if STDC_HEADERS
3763 #include <stdlib.h> 3766 #include <stdlib.h>
3764 #include <stddef.h> 3767 #include <stddef.h>
3786 3789
3787 fi 3790 fi
3788 3791
3789 3792
3790 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3793 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3791 echo "configure:3792: checking for struct timeval" >&5 3794 echo "configure:3795: checking for struct timeval" >&5
3792 cat > conftest.$ac_ext <<EOF 3795 cat > conftest.$ac_ext <<EOF
3793 #line 3794 "configure" 3796 #line 3797 "configure"
3794 #include "confdefs.h" 3797 #include "confdefs.h"
3795 #ifdef TIME_WITH_SYS_TIME 3798 #ifdef TIME_WITH_SYS_TIME
3796 #include <sys/time.h> 3799 #include <sys/time.h>
3797 #include <time.h> 3800 #include <time.h>
3798 #else 3801 #else
3804 #endif 3807 #endif
3805 int main() { 3808 int main() {
3806 static struct timeval x; x.tv_sec = x.tv_usec; 3809 static struct timeval x; x.tv_sec = x.tv_usec;
3807 ; return 0; } 3810 ; return 0; }
3808 EOF 3811 EOF
3809 if { (eval echo configure:3810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3812 if { (eval echo configure:3813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3810 rm -rf conftest* 3813 rm -rf conftest*
3811 echo "$ac_t""yes" 1>&6 3814 echo "$ac_t""yes" 1>&6
3812 HAVE_TIMEVAL=yes 3815 HAVE_TIMEVAL=yes
3813 { test "$extra_verbose" = "yes" && cat << \EOF 3816 { test "$extra_verbose" = "yes" && cat << \EOF
3814 Defining HAVE_TIMEVAL 3817 Defining HAVE_TIMEVAL
3826 HAVE_TIMEVAL=no 3829 HAVE_TIMEVAL=no
3827 fi 3830 fi
3828 rm -f conftest* 3831 rm -f conftest*
3829 3832
3830 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3833 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3831 echo "configure:3832: checking whether struct tm is in sys/time.h or time.h" >&5 3834 echo "configure:3835: checking whether struct tm is in sys/time.h or time.h" >&5
3832 3835
3833 cat > conftest.$ac_ext <<EOF 3836 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure" 3837 #line 3838 "configure"
3835 #include "confdefs.h" 3838 #include "confdefs.h"
3836 #include <sys/types.h> 3839 #include <sys/types.h>
3837 #include <time.h> 3840 #include <time.h>
3838 int main() { 3841 int main() {
3839 struct tm *tp; tp->tm_sec; 3842 struct tm *tp; tp->tm_sec;
3840 ; return 0; } 3843 ; return 0; }
3841 EOF 3844 EOF
3842 if { (eval echo configure:3843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3845 if { (eval echo configure:3846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3843 rm -rf conftest* 3846 rm -rf conftest*
3844 ac_cv_struct_tm=time.h 3847 ac_cv_struct_tm=time.h
3845 else 3848 else
3846 echo "configure: failed program was:" >&5 3849 echo "configure: failed program was:" >&5
3847 cat conftest.$ac_ext >&5 3850 cat conftest.$ac_ext >&5
3861 } 3864 }
3862 3865
3863 fi 3866 fi
3864 3867
3865 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3868 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3866 echo "configure:3867: checking for tm_zone in struct tm" >&5 3869 echo "configure:3870: checking for tm_zone in struct tm" >&5
3867 3870
3868 cat > conftest.$ac_ext <<EOF 3871 cat > conftest.$ac_ext <<EOF
3869 #line 3870 "configure" 3872 #line 3873 "configure"
3870 #include "confdefs.h" 3873 #include "confdefs.h"
3871 #include <sys/types.h> 3874 #include <sys/types.h>
3872 #include <$ac_cv_struct_tm> 3875 #include <$ac_cv_struct_tm>
3873 int main() { 3876 int main() {
3874 struct tm tm; tm.tm_zone; 3877 struct tm tm; tm.tm_zone;
3875 ; return 0; } 3878 ; return 0; }
3876 EOF 3879 EOF
3877 if { (eval echo configure:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3880 if { (eval echo configure:3881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3878 rm -rf conftest* 3881 rm -rf conftest*
3879 ac_cv_struct_tm_zone=yes 3882 ac_cv_struct_tm_zone=yes
3880 else 3883 else
3881 echo "configure: failed program was:" >&5 3884 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5 3885 cat conftest.$ac_ext >&5
3895 EOF 3898 EOF
3896 } 3899 }
3897 3900
3898 else 3901 else
3899 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3902 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3900 echo "configure:3901: checking for tzname" >&5 3903 echo "configure:3904: checking for tzname" >&5
3901 3904
3902 cat > conftest.$ac_ext <<EOF 3905 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure" 3906 #line 3907 "configure"
3904 #include "confdefs.h" 3907 #include "confdefs.h"
3905 #include <time.h> 3908 #include <time.h>
3906 #ifndef tzname /* For SGI. */ 3909 #ifndef tzname /* For SGI. */
3907 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3910 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3908 #endif 3911 #endif
3909 int main() { 3912 int main() {
3910 atoi(*tzname); 3913 atoi(*tzname);
3911 ; return 0; } 3914 ; return 0; }
3912 EOF 3915 EOF
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3914 rm -rf conftest* 3917 rm -rf conftest*
3915 ac_cv_var_tzname=yes 3918 ac_cv_var_tzname=yes
3916 else 3919 else
3917 echo "configure: failed program was:" >&5 3920 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5 3921 cat conftest.$ac_ext >&5
3934 fi 3937 fi
3935 fi 3938 fi
3936 3939
3937 3940
3938 echo $ac_n "checking for working const""... $ac_c" 1>&6 3941 echo $ac_n "checking for working const""... $ac_c" 1>&6
3939 echo "configure:3940: checking for working const" >&5 3942 echo "configure:3943: checking for working const" >&5
3940 3943
3941 cat > conftest.$ac_ext <<EOF 3944 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure" 3945 #line 3946 "configure"
3943 #include "confdefs.h" 3946 #include "confdefs.h"
3944 3947
3945 int main() { 3948 int main() {
3946 3949
3947 /* Ultrix mips cc rejects this. */ 3950 /* Ultrix mips cc rejects this. */
3986 const int foo = 10; 3989 const int foo = 10;
3987 } 3990 }
3988 3991
3989 ; return 0; } 3992 ; return 0; }
3990 EOF 3993 EOF
3991 if { (eval echo configure:3992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3994 if { (eval echo configure:3995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992 rm -rf conftest* 3995 rm -rf conftest*
3993 ac_cv_c_const=yes 3996 ac_cv_c_const=yes
3994 else 3997 else
3995 echo "configure: failed program was:" >&5 3998 echo "configure: failed program was:" >&5
3996 cat conftest.$ac_ext >&5 3999 cat conftest.$ac_ext >&5
4011 4014
4012 fi 4015 fi
4013 4016
4014 4017
4015 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 4018 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4016 echo "configure:4017: checking whether ${MAKE-make} sets \${MAKE}" >&5 4019 echo "configure:4020: checking whether ${MAKE-make} sets \${MAKE}" >&5
4017 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 4020 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
4018 4021
4019 cat > conftestmake <<\EOF 4022 cat > conftestmake <<\EOF
4020 all: 4023 all:
4021 @echo 'ac_maketemp="${MAKE}"' 4024 @echo 'ac_maketemp="${MAKE}"'
4036 SET_MAKE="MAKE=${MAKE-make}" 4039 SET_MAKE="MAKE=${MAKE-make}"
4037 fi 4040 fi
4038 4041
4039 4042
4040 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 4043 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4041 echo "configure:4042: checking whether byte ordering is bigendian" >&5 4044 echo "configure:4045: checking whether byte ordering is bigendian" >&5
4042 4045
4043 ac_cv_c_bigendian=unknown 4046 ac_cv_c_bigendian=unknown
4044 # See if sys/param.h defines the BYTE_ORDER macro. 4047 # See if sys/param.h defines the BYTE_ORDER macro.
4045 cat > conftest.$ac_ext <<EOF 4048 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure" 4049 #line 4050 "configure"
4047 #include "confdefs.h" 4050 #include "confdefs.h"
4048 #include <sys/types.h> 4051 #include <sys/types.h>
4049 #include <sys/param.h> 4052 #include <sys/param.h>
4050 int main() { 4053 int main() {
4051 4054
4052 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 4055 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4053 bogus endian macros 4056 bogus endian macros
4054 #endif 4057 #endif
4055 ; return 0; } 4058 ; return 0; }
4056 EOF 4059 EOF
4057 if { (eval echo configure:4058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4060 if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4058 rm -rf conftest* 4061 rm -rf conftest*
4059 # It does; now see whether it defined to BIG_ENDIAN or not. 4062 # It does; now see whether it defined to BIG_ENDIAN or not.
4060 cat > conftest.$ac_ext <<EOF 4063 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure" 4064 #line 4065 "configure"
4062 #include "confdefs.h" 4065 #include "confdefs.h"
4063 #include <sys/types.h> 4066 #include <sys/types.h>
4064 #include <sys/param.h> 4067 #include <sys/param.h>
4065 int main() { 4068 int main() {
4066 4069
4067 #if BYTE_ORDER != BIG_ENDIAN 4070 #if BYTE_ORDER != BIG_ENDIAN
4068 not big endian 4071 not big endian
4069 #endif 4072 #endif
4070 ; return 0; } 4073 ; return 0; }
4071 EOF 4074 EOF
4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4075 if { (eval echo configure:4076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4073 rm -rf conftest* 4076 rm -rf conftest*
4074 ac_cv_c_bigendian=yes 4077 ac_cv_c_bigendian=yes
4075 else 4078 else
4076 echo "configure: failed program was:" >&5 4079 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5 4080 cat conftest.$ac_ext >&5
4084 cat conftest.$ac_ext >&5 4087 cat conftest.$ac_ext >&5
4085 fi 4088 fi
4086 rm -f conftest* 4089 rm -f conftest*
4087 if test $ac_cv_c_bigendian = unknown; then 4090 if test $ac_cv_c_bigendian = unknown; then
4088 cat > conftest.$ac_ext <<EOF 4091 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure" 4092 #line 4093 "configure"
4090 #include "confdefs.h" 4093 #include "confdefs.h"
4091 main () { 4094 main () {
4092 /* Are we little or big endian? From Harbison&Steele. */ 4095 /* Are we little or big endian? From Harbison&Steele. */
4093 union 4096 union
4094 { 4097 {
4097 } u; 4100 } u;
4098 u.l = 1; 4101 u.l = 1;
4099 exit (u.c[sizeof (long) - 1] == 1); 4102 exit (u.c[sizeof (long) - 1] == 1);
4100 } 4103 }
4101 EOF 4104 EOF
4102 if { (eval echo configure:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4103 then 4106 then
4104 ac_cv_c_bigendian=no 4107 ac_cv_c_bigendian=no
4105 else 4108 else
4106 conftest_rc="$?" 4109 conftest_rc="$?"
4107 echo "configure: failed program was:" >&5 4110 echo "configure: failed program was:" >&5
4124 4127
4125 fi 4128 fi
4126 4129
4127 4130
4128 echo $ac_n "checking size of short""... $ac_c" 1>&6 4131 echo $ac_n "checking size of short""... $ac_c" 1>&6
4129 echo "configure:4130: checking size of short" >&5 4132 echo "configure:4133: checking size of short" >&5
4130 4133
4131 cat > conftest.$ac_ext <<EOF 4134 cat > conftest.$ac_ext <<EOF
4132 #line 4133 "configure" 4135 #line 4136 "configure"
4133 #include "confdefs.h" 4136 #include "confdefs.h"
4134 #include <stdio.h> 4137 #include <stdio.h>
4135 main() 4138 main()
4136 { 4139 {
4137 FILE *f=fopen("conftestval", "w"); 4140 FILE *f=fopen("conftestval", "w");
4138 if (!f) exit(1); 4141 if (!f) exit(1);
4139 fprintf(f, "%d\n", sizeof(short)); 4142 fprintf(f, "%d\n", sizeof(short));
4140 exit(0); 4143 exit(0);
4141 } 4144 }
4142 EOF 4145 EOF
4143 if { (eval echo configure:4144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4146 if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4144 then 4147 then
4145 ac_cv_sizeof_short=`cat conftestval` 4148 ac_cv_sizeof_short=`cat conftestval`
4146 else 4149 else
4147 conftest_rc="$?" 4150 conftest_rc="$?"
4148 echo "configure: failed program was:" >&5 4151 echo "configure: failed program was:" >&5
4166 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4169 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4167 echo "*** PANIC *** Please examine config.log for compilation errors." 4170 echo "*** PANIC *** Please examine config.log for compilation errors."
4168 exit 1 4171 exit 1
4169 fi 4172 fi
4170 echo $ac_n "checking size of int""... $ac_c" 1>&6 4173 echo $ac_n "checking size of int""... $ac_c" 1>&6
4171 echo "configure:4172: checking size of int" >&5 4174 echo "configure:4175: checking size of int" >&5
4172 4175
4173 cat > conftest.$ac_ext <<EOF 4176 cat > conftest.$ac_ext <<EOF
4174 #line 4175 "configure" 4177 #line 4178 "configure"
4175 #include "confdefs.h" 4178 #include "confdefs.h"
4176 #include <stdio.h> 4179 #include <stdio.h>
4177 main() 4180 main()
4178 { 4181 {
4179 FILE *f=fopen("conftestval", "w"); 4182 FILE *f=fopen("conftestval", "w");
4180 if (!f) exit(1); 4183 if (!f) exit(1);
4181 fprintf(f, "%d\n", sizeof(int)); 4184 fprintf(f, "%d\n", sizeof(int));
4182 exit(0); 4185 exit(0);
4183 } 4186 }
4184 EOF 4187 EOF
4185 if { (eval echo configure:4186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4188 if { (eval echo configure:4189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4186 then 4189 then
4187 ac_cv_sizeof_int=`cat conftestval` 4190 ac_cv_sizeof_int=`cat conftestval`
4188 else 4191 else
4189 conftest_rc="$?" 4192 conftest_rc="$?"
4190 echo "configure: failed program was:" >&5 4193 echo "configure: failed program was:" >&5
4202 EOF 4205 EOF
4203 } 4206 }
4204 4207
4205 4208
4206 echo $ac_n "checking size of long""... $ac_c" 1>&6 4209 echo $ac_n "checking size of long""... $ac_c" 1>&6
4207 echo "configure:4208: checking size of long" >&5 4210 echo "configure:4211: checking size of long" >&5
4208 4211
4209 cat > conftest.$ac_ext <<EOF 4212 cat > conftest.$ac_ext <<EOF
4210 #line 4211 "configure" 4213 #line 4214 "configure"
4211 #include "confdefs.h" 4214 #include "confdefs.h"
4212 #include <stdio.h> 4215 #include <stdio.h>
4213 main() 4216 main()
4214 { 4217 {
4215 FILE *f=fopen("conftestval", "w"); 4218 FILE *f=fopen("conftestval", "w");
4216 if (!f) exit(1); 4219 if (!f) exit(1);
4217 fprintf(f, "%d\n", sizeof(long)); 4220 fprintf(f, "%d\n", sizeof(long));
4218 exit(0); 4221 exit(0);
4219 } 4222 }
4220 EOF 4223 EOF
4221 if { (eval echo configure:4222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4224 if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4222 then 4225 then
4223 ac_cv_sizeof_long=`cat conftestval` 4226 ac_cv_sizeof_long=`cat conftestval`
4224 else 4227 else
4225 conftest_rc="$?" 4228 conftest_rc="$?"
4226 echo "configure: failed program was:" >&5 4229 echo "configure: failed program was:" >&5
4238 EOF 4241 EOF
4239 } 4242 }
4240 4243
4241 4244
4242 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4245 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4243 echo "configure:4244: checking size of long long" >&5 4246 echo "configure:4247: checking size of long long" >&5
4244 4247
4245 cat > conftest.$ac_ext <<EOF 4248 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure" 4249 #line 4250 "configure"
4247 #include "confdefs.h" 4250 #include "confdefs.h"
4248 #include <stdio.h> 4251 #include <stdio.h>
4249 main() 4252 main()
4250 { 4253 {
4251 FILE *f=fopen("conftestval", "w"); 4254 FILE *f=fopen("conftestval", "w");
4252 if (!f) exit(1); 4255 if (!f) exit(1);
4253 fprintf(f, "%d\n", sizeof(long long)); 4256 fprintf(f, "%d\n", sizeof(long long));
4254 exit(0); 4257 exit(0);
4255 } 4258 }
4256 EOF 4259 EOF
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4260 if { (eval echo configure:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4258 then 4261 then
4259 ac_cv_sizeof_long_long=`cat conftestval` 4262 ac_cv_sizeof_long_long=`cat conftestval`
4260 else 4263 else
4261 conftest_rc="$?" 4264 conftest_rc="$?"
4262 echo "configure: failed program was:" >&5 4265 echo "configure: failed program was:" >&5
4274 EOF 4277 EOF
4275 } 4278 }
4276 4279
4277 4280
4278 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4281 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4279 echo "configure:4280: checking size of void *" >&5 4282 echo "configure:4283: checking size of void *" >&5
4280 4283
4281 cat > conftest.$ac_ext <<EOF 4284 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure" 4285 #line 4286 "configure"
4283 #include "confdefs.h" 4286 #include "confdefs.h"
4284 #include <stdio.h> 4287 #include <stdio.h>
4285 main() 4288 main()
4286 { 4289 {
4287 FILE *f=fopen("conftestval", "w"); 4290 FILE *f=fopen("conftestval", "w");
4288 if (!f) exit(1); 4291 if (!f) exit(1);
4289 fprintf(f, "%d\n", sizeof(void *)); 4292 fprintf(f, "%d\n", sizeof(void *));
4290 exit(0); 4293 exit(0);
4291 } 4294 }
4292 EOF 4295 EOF
4293 if { (eval echo configure:4294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4294 then 4297 then
4295 ac_cv_sizeof_void_p=`cat conftestval` 4298 ac_cv_sizeof_void_p=`cat conftestval`
4296 else 4299 else
4297 conftest_rc="$?" 4300 conftest_rc="$?"
4298 echo "configure: failed program was:" >&5 4301 echo "configure: failed program was:" >&5
4311 } 4314 }
4312 4315
4313 4316
4314 4317
4315 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4318 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4316 echo "configure:4317: checking for long file names" >&5 4319 echo "configure:4320: checking for long file names" >&5
4317 4320
4318 ac_cv_sys_long_file_names=yes 4321 ac_cv_sys_long_file_names=yes
4319 # Test for long file names in all the places we know might matter: 4322 # Test for long file names in all the places we know might matter:
4320 # . the current directory, where building will happen 4323 # . the current directory, where building will happen
4321 # $prefix/lib where we will be installing things 4324 # $prefix/lib where we will be installing things
4357 4360
4358 fi 4361 fi
4359 4362
4360 4363
4361 echo $ac_n "checking for sin""... $ac_c" 1>&6 4364 echo $ac_n "checking for sin""... $ac_c" 1>&6
4362 echo "configure:4363: checking for sin" >&5 4365 echo "configure:4366: checking for sin" >&5
4363 4366
4364 cat > conftest.$ac_ext <<EOF 4367 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure" 4368 #line 4369 "configure"
4366 #include "confdefs.h" 4369 #include "confdefs.h"
4367 /* System header to define __stub macros and hopefully few prototypes, 4370 /* System header to define __stub macros and hopefully few prototypes,
4368 which can conflict with char sin(); below. */ 4371 which can conflict with char sin(); below. */
4369 #include <assert.h> 4372 #include <assert.h>
4370 /* Override any gcc2 internal prototype to avoid an error. */ 4373 /* Override any gcc2 internal prototype to avoid an error. */
4383 sin(); 4386 sin();
4384 #endif 4387 #endif
4385 4388
4386 ; return 0; } 4389 ; return 0; }
4387 EOF 4390 EOF
4388 if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4391 if { (eval echo configure:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4389 rm -rf conftest* 4392 rm -rf conftest*
4390 eval "ac_cv_func_sin=yes" 4393 eval "ac_cv_func_sin=yes"
4391 else 4394 else
4392 echo "configure: failed program was:" >&5 4395 echo "configure: failed program was:" >&5
4393 cat conftest.$ac_ext >&5 4396 cat conftest.$ac_ext >&5
4401 : 4404 :
4402 else 4405 else
4403 echo "$ac_t""no" 1>&6 4406 echo "$ac_t""no" 1>&6
4404 4407
4405 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4408 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4406 echo "configure:4407: checking for sin in -lm" >&5 4409 echo "configure:4410: checking for sin in -lm" >&5
4407 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4410 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4408 4411
4409 xe_check_libs=" -lm " 4412 xe_check_libs=" -lm "
4410 cat > conftest.$ac_ext <<EOF 4413 cat > conftest.$ac_ext <<EOF
4411 #line 4412 "configure" 4414 #line 4415 "configure"
4412 #include "confdefs.h" 4415 #include "confdefs.h"
4413 /* Override any gcc2 internal prototype to avoid an error. */ 4416 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2 4417 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */ 4418 builtin and then its argument prototype would still apply. */
4416 char sin(); 4419 char sin();
4417 4420
4418 int main() { 4421 int main() {
4419 sin() 4422 sin()
4420 ; return 0; } 4423 ; return 0; }
4421 EOF 4424 EOF
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4425 if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4423 rm -rf conftest* 4426 rm -rf conftest*
4424 eval "ac_cv_lib_$ac_lib_var=yes" 4427 eval "ac_cv_lib_$ac_lib_var=yes"
4425 else 4428 else
4426 echo "configure: failed program was:" >&5 4429 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5 4430 cat conftest.$ac_ext >&5
4461 EOF 4464 EOF
4462 } 4465 }
4463 4466
4464 4467
4465 cat > conftest.$ac_ext <<EOF 4468 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure" 4469 #line 4470 "configure"
4467 #include "confdefs.h" 4470 #include "confdefs.h"
4468 #include <math.h> 4471 #include <math.h>
4469 int main() { 4472 int main() {
4470 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4473 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4471 ; return 0; } 4474 ; return 0; }
4472 EOF 4475 EOF
4473 if { (eval echo configure:4474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4474 rm -rf conftest* 4477 rm -rf conftest*
4475 { test "$extra_verbose" = "yes" && cat << \EOF 4478 { test "$extra_verbose" = "yes" && cat << \EOF
4476 Defining HAVE_INVERSE_HYPERBOLIC 4479 Defining HAVE_INVERSE_HYPERBOLIC
4477 EOF 4480 EOF
4478 cat >> confdefs.h <<\EOF 4481 cat >> confdefs.h <<\EOF
4485 cat conftest.$ac_ext >&5 4488 cat conftest.$ac_ext >&5
4486 fi 4489 fi
4487 rm -f conftest* 4490 rm -f conftest*
4488 4491
4489 echo "checking type of mail spool file locking" 1>&6 4492 echo "checking type of mail spool file locking" 1>&6
4490 echo "configure:4491: checking type of mail spool file locking" >&5 4493 echo "configure:4494: checking type of mail spool file locking" >&5
4491 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4494 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4492 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4495 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4493 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4496 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4494 Defining REAL_MAIL_USE_LOCKF 4497 Defining REAL_MAIL_USE_LOCKF
4495 EOF 4498 EOF
4510 fi 4513 fi
4511 4514
4512 case "$opsys" in decosf*) 4515 case "$opsys" in decosf*)
4513 4516
4514 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4517 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4515 echo "configure:4516: checking for cma_open in -lpthreads" >&5 4518 echo "configure:4519: checking for cma_open in -lpthreads" >&5
4516 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4519 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4517 4520
4518 xe_check_libs=" -lpthreads " 4521 xe_check_libs=" -lpthreads "
4519 cat > conftest.$ac_ext <<EOF 4522 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure" 4523 #line 4524 "configure"
4521 #include "confdefs.h" 4524 #include "confdefs.h"
4522 /* Override any gcc2 internal prototype to avoid an error. */ 4525 /* Override any gcc2 internal prototype to avoid an error. */
4523 /* We use char because int might match the return type of a gcc2 4526 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */ 4527 builtin and then its argument prototype would still apply. */
4525 char cma_open(); 4528 char cma_open();
4526 4529
4527 int main() { 4530 int main() {
4528 cma_open() 4531 cma_open()
4529 ; return 0; } 4532 ; return 0; }
4530 EOF 4533 EOF
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4532 rm -rf conftest* 4535 rm -rf conftest*
4533 eval "ac_cv_lib_$ac_lib_var=yes" 4536 eval "ac_cv_lib_$ac_lib_var=yes"
4534 else 4537 else
4535 echo "configure: failed program was:" >&5 4538 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5 4539 cat conftest.$ac_ext >&5
4562 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4565 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4563 c_switch_site="$c_switch_site -threads" ;; 4566 c_switch_site="$c_switch_site -threads" ;;
4564 esac 4567 esac
4565 4568
4566 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4569 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4567 echo "configure:4568: checking whether the -xildoff compiler flag is required" >&5 4570 echo "configure:4571: checking whether the -xildoff compiler flag is required" >&5
4568 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4571 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4569 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4572 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4570 then echo "$ac_t""no" 1>&6; 4573 then echo "$ac_t""no" 1>&6;
4571 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 4574 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
4572 fi 4575 fi
4573 else echo "$ac_t""no" 1>&6 4576 else echo "$ac_t""no" 1>&6
4574 fi 4577 fi
4575 4578
4576 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4579 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4577 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4580 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4578 echo "configure:4579: checking for \"-z ignore\" linker flag" >&5 4581 echo "configure:4582: checking for \"-z ignore\" linker flag" >&5
4579 case "`ld -h 2>&1`" in 4582 case "`ld -h 2>&1`" in
4580 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4583 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4581 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4584 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4582 *) echo "$ac_t""no" 1>&6 ;; 4585 *) echo "$ac_t""no" 1>&6 ;;
4583 esac 4586 esac
4584 fi 4587 fi
4585 4588
4586 4589
4587 echo "checking "for specified window system"" 1>&6 4590 echo "checking "for specified window system"" 1>&6
4588 echo "configure:4589: checking "for specified window system"" >&5 4591 echo "configure:4592: checking "for specified window system"" >&5
4589 4592
4590 if test "$with_x11" != "no"; then 4593 if test "$with_x11" != "no"; then
4591 test "$x_includes $x_libraries" != "NONE NONE" && \ 4594 test "$x_includes $x_libraries" != "NONE NONE" && \
4592 window_system=x11 with_x11=yes 4595 window_system=x11 with_x11=yes
4593 4596
4616 # If we find X, set shell vars x_includes and x_libraries to the 4619 # If we find X, set shell vars x_includes and x_libraries to the
4617 # paths, otherwise set no_x=yes. 4620 # paths, otherwise set no_x=yes.
4618 # Uses ac_ vars as temps to allow command line to override cache and checks. 4621 # Uses ac_ vars as temps to allow command line to override cache and checks.
4619 # --without-x overrides everything else, but does not touch the cache. 4622 # --without-x overrides everything else, but does not touch the cache.
4620 echo $ac_n "checking for X""... $ac_c" 1>&6 4623 echo $ac_n "checking for X""... $ac_c" 1>&6
4621 echo "configure:4622: checking for X" >&5 4624 echo "configure:4625: checking for X" >&5
4622 4625
4623 # Check whether --with-x or --without-x was given. 4626 # Check whether --with-x or --without-x was given.
4624 if test "${with_x+set}" = set; then 4627 if test "${with_x+set}" = set; then
4625 withval="$with_x" 4628 withval="$with_x"
4626 : 4629 :
4676 # Guess where to find include files, by looking for this one X11 .h file. 4679 # Guess where to find include files, by looking for this one X11 .h file.
4677 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4680 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4678 4681
4679 # First, try using that file with no special directory specified. 4682 # First, try using that file with no special directory specified.
4680 cat > conftest.$ac_ext <<EOF 4683 cat > conftest.$ac_ext <<EOF
4681 #line 4682 "configure" 4684 #line 4685 "configure"
4682 #include "confdefs.h" 4685 #include "confdefs.h"
4683 #include <$x_direct_test_include> 4686 #include <$x_direct_test_include>
4684 EOF 4687 EOF
4685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4688 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4686 { (eval echo configure:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4689 { (eval echo configure:4690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4690 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4688 if test -z "$ac_err"; then 4691 if test -z "$ac_err"; then
4689 rm -rf conftest* 4692 rm -rf conftest*
4690 # We can compile using X headers with no special include directory. 4693 # We can compile using X headers with no special include directory.
4691 ac_x_includes= 4694 ac_x_includes=
4750 # See if we find them without any special options. 4753 # See if we find them without any special options.
4751 # Don't add to $LIBS permanently. 4754 # Don't add to $LIBS permanently.
4752 ac_save_LIBS="$LIBS" 4755 ac_save_LIBS="$LIBS"
4753 LIBS="-l$x_direct_test_library $LIBS" 4756 LIBS="-l$x_direct_test_library $LIBS"
4754 cat > conftest.$ac_ext <<EOF 4757 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure" 4758 #line 4759 "configure"
4756 #include "confdefs.h" 4759 #include "confdefs.h"
4757 4760
4758 int main() { 4761 int main() {
4759 ${x_direct_test_function}() 4762 ${x_direct_test_function}()
4760 ; return 0; } 4763 ; return 0; }
4761 EOF 4764 EOF
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4763 rm -rf conftest* 4766 rm -rf conftest*
4764 LIBS="$ac_save_LIBS" 4767 LIBS="$ac_save_LIBS"
4765 # We can link X programs with no special library path. 4768 # We can link X programs with no special library path.
4766 ac_x_libraries= 4769 ac_x_libraries=
4767 else 4770 else
4866 # For Solaris; some versions of Sun CC require a space after -R and 4869 # For Solaris; some versions of Sun CC require a space after -R and
4867 # others require no space. Words are not sufficient . . . . 4870 # others require no space. Words are not sufficient . . . .
4868 case "`(uname -sr) 2>/dev/null`" in 4871 case "`(uname -sr) 2>/dev/null`" in
4869 "SunOS 5"*) 4872 "SunOS 5"*)
4870 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4873 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4871 echo "configure:4872: checking whether -R must be followed by a space" >&5 4874 echo "configure:4875: checking whether -R must be followed by a space" >&5
4872 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4875 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4873 cat > conftest.$ac_ext <<EOF 4876 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure" 4877 #line 4878 "configure"
4875 #include "confdefs.h" 4878 #include "confdefs.h"
4876 4879
4877 int main() { 4880 int main() {
4878 4881
4879 ; return 0; } 4882 ; return 0; }
4880 EOF 4883 EOF
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4884 if { (eval echo configure:4885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4882 rm -rf conftest* 4885 rm -rf conftest*
4883 ac_R_nospace=yes 4886 ac_R_nospace=yes
4884 else 4887 else
4885 echo "configure: failed program was:" >&5 4888 echo "configure: failed program was:" >&5
4886 cat conftest.$ac_ext >&5 4889 cat conftest.$ac_ext >&5
4892 echo "$ac_t""no" 1>&6 4895 echo "$ac_t""no" 1>&6
4893 X_LIBS="$X_LIBS -R$x_libraries" 4896 X_LIBS="$X_LIBS -R$x_libraries"
4894 else 4897 else
4895 LIBS="$ac_xsave_LIBS -R $x_libraries" 4898 LIBS="$ac_xsave_LIBS -R $x_libraries"
4896 cat > conftest.$ac_ext <<EOF 4899 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure" 4900 #line 4901 "configure"
4898 #include "confdefs.h" 4901 #include "confdefs.h"
4899 4902
4900 int main() { 4903 int main() {
4901 4904
4902 ; return 0; } 4905 ; return 0; }
4903 EOF 4906 EOF
4904 if { (eval echo configure:4905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4905 rm -rf conftest* 4908 rm -rf conftest*
4906 ac_R_space=yes 4909 ac_R_space=yes
4907 else 4910 else
4908 echo "configure: failed program was:" >&5 4911 echo "configure: failed program was:" >&5
4909 cat conftest.$ac_ext >&5 4912 cat conftest.$ac_ext >&5
4935 if test "$with_dnet" = "no" ; then 4938 if test "$with_dnet" = "no" ; then
4936 ac_cv_lib_dnet_dnet_ntoa=no 4939 ac_cv_lib_dnet_dnet_ntoa=no
4937 else 4940 else
4938 4941
4939 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4942 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4940 echo "configure:4941: checking for dnet_ntoa in -ldnet" >&5 4943 echo "configure:4944: checking for dnet_ntoa in -ldnet" >&5
4941 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4944 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4942 4945
4943 xe_check_libs=" -ldnet " 4946 xe_check_libs=" -ldnet "
4944 cat > conftest.$ac_ext <<EOF 4947 cat > conftest.$ac_ext <<EOF
4945 #line 4946 "configure" 4948 #line 4949 "configure"
4946 #include "confdefs.h" 4949 #include "confdefs.h"
4947 /* Override any gcc2 internal prototype to avoid an error. */ 4950 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2 4951 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */ 4952 builtin and then its argument prototype would still apply. */
4950 char dnet_ntoa(); 4953 char dnet_ntoa();
4951 4954
4952 int main() { 4955 int main() {
4953 dnet_ntoa() 4956 dnet_ntoa()
4954 ; return 0; } 4957 ; return 0; }
4955 EOF 4958 EOF
4956 if { (eval echo configure:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4959 if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4957 rm -rf conftest* 4960 rm -rf conftest*
4958 eval "ac_cv_lib_$ac_lib_var=yes" 4961 eval "ac_cv_lib_$ac_lib_var=yes"
4959 else 4962 else
4960 echo "configure: failed program was:" >&5 4963 echo "configure: failed program was:" >&5
4961 cat conftest.$ac_ext >&5 4964 cat conftest.$ac_ext >&5
4975 fi 4978 fi
4976 4979
4977 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4980 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4978 4981
4979 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4982 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4980 echo "configure:4981: checking for dnet_ntoa in -ldnet_stub" >&5 4983 echo "configure:4984: checking for dnet_ntoa in -ldnet_stub" >&5
4981 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4984 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4982 4985
4983 xe_check_libs=" -ldnet_stub " 4986 xe_check_libs=" -ldnet_stub "
4984 cat > conftest.$ac_ext <<EOF 4987 cat > conftest.$ac_ext <<EOF
4985 #line 4986 "configure" 4988 #line 4989 "configure"
4986 #include "confdefs.h" 4989 #include "confdefs.h"
4987 /* Override any gcc2 internal prototype to avoid an error. */ 4990 /* Override any gcc2 internal prototype to avoid an error. */
4988 /* We use char because int might match the return type of a gcc2 4991 /* We use char because int might match the return type of a gcc2
4989 builtin and then its argument prototype would still apply. */ 4992 builtin and then its argument prototype would still apply. */
4990 char dnet_ntoa(); 4993 char dnet_ntoa();
4991 4994
4992 int main() { 4995 int main() {
4993 dnet_ntoa() 4996 dnet_ntoa()
4994 ; return 0; } 4997 ; return 0; }
4995 EOF 4998 EOF
4996 if { (eval echo configure:4997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4999 if { (eval echo configure:5000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4997 rm -rf conftest* 5000 rm -rf conftest*
4998 eval "ac_cv_lib_$ac_lib_var=yes" 5001 eval "ac_cv_lib_$ac_lib_var=yes"
4999 else 5002 else
5000 echo "configure: failed program was:" >&5 5003 echo "configure: failed program was:" >&5
5001 cat conftest.$ac_ext >&5 5004 cat conftest.$ac_ext >&5
5020 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5023 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
5021 # needs -lnsl. 5024 # needs -lnsl.
5022 # The nsl library prevents programs from opening the X display 5025 # The nsl library prevents programs from opening the X display
5023 # on Irix 5.2, according to dickey@clark.net. 5026 # on Irix 5.2, according to dickey@clark.net.
5024 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5027 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
5025 echo "configure:5026: checking for gethostbyname" >&5 5028 echo "configure:5029: checking for gethostbyname" >&5
5026 5029
5027 cat > conftest.$ac_ext <<EOF 5030 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure" 5031 #line 5032 "configure"
5029 #include "confdefs.h" 5032 #include "confdefs.h"
5030 /* System header to define __stub macros and hopefully few prototypes, 5033 /* System header to define __stub macros and hopefully few prototypes,
5031 which can conflict with char gethostbyname(); below. */ 5034 which can conflict with char gethostbyname(); below. */
5032 #include <assert.h> 5035 #include <assert.h>
5033 /* Override any gcc2 internal prototype to avoid an error. */ 5036 /* Override any gcc2 internal prototype to avoid an error. */
5046 gethostbyname(); 5049 gethostbyname();
5047 #endif 5050 #endif
5048 5051
5049 ; return 0; } 5052 ; return 0; }
5050 EOF 5053 EOF
5051 if { (eval echo configure:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5052 rm -rf conftest* 5055 rm -rf conftest*
5053 eval "ac_cv_func_gethostbyname=yes" 5056 eval "ac_cv_func_gethostbyname=yes"
5054 else 5057 else
5055 echo "configure: failed program was:" >&5 5058 echo "configure: failed program was:" >&5
5056 cat conftest.$ac_ext >&5 5059 cat conftest.$ac_ext >&5
5067 fi 5070 fi
5068 5071
5069 if test $ac_cv_func_gethostbyname = no; then 5072 if test $ac_cv_func_gethostbyname = no; then
5070 5073
5071 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5074 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
5072 echo "configure:5073: checking for gethostbyname in -lnsl" >&5 5075 echo "configure:5076: checking for gethostbyname in -lnsl" >&5
5073 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5076 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
5074 5077
5075 xe_check_libs=" -lnsl " 5078 xe_check_libs=" -lnsl "
5076 cat > conftest.$ac_ext <<EOF 5079 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure" 5080 #line 5081 "configure"
5078 #include "confdefs.h" 5081 #include "confdefs.h"
5079 /* Override any gcc2 internal prototype to avoid an error. */ 5082 /* Override any gcc2 internal prototype to avoid an error. */
5080 /* We use char because int might match the return type of a gcc2 5083 /* We use char because int might match the return type of a gcc2
5081 builtin and then its argument prototype would still apply. */ 5084 builtin and then its argument prototype would still apply. */
5082 char gethostbyname(); 5085 char gethostbyname();
5083 5086
5084 int main() { 5087 int main() {
5085 gethostbyname() 5088 gethostbyname()
5086 ; return 0; } 5089 ; return 0; }
5087 EOF 5090 EOF
5088 if { (eval echo configure:5089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5089 rm -rf conftest* 5092 rm -rf conftest*
5090 eval "ac_cv_lib_$ac_lib_var=yes" 5093 eval "ac_cv_lib_$ac_lib_var=yes"
5091 else 5094 else
5092 echo "configure: failed program was:" >&5 5095 echo "configure: failed program was:" >&5
5093 cat conftest.$ac_ext >&5 5096 cat conftest.$ac_ext >&5
5113 # on later versions), says simon@lia.di.epfl.ch: it contains 5116 # on later versions), says simon@lia.di.epfl.ch: it contains
5114 # gethostby* variants that don't use the nameserver (or something). 5117 # gethostby* variants that don't use the nameserver (or something).
5115 # -lsocket must be given before -lnsl if both are needed. 5118 # -lsocket must be given before -lnsl if both are needed.
5116 # We assume that if connect needs -lnsl, so does gethostbyname. 5119 # We assume that if connect needs -lnsl, so does gethostbyname.
5117 echo $ac_n "checking for connect""... $ac_c" 1>&6 5120 echo $ac_n "checking for connect""... $ac_c" 1>&6
5118 echo "configure:5119: checking for connect" >&5 5121 echo "configure:5122: checking for connect" >&5
5119 5122
5120 cat > conftest.$ac_ext <<EOF 5123 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure" 5124 #line 5125 "configure"
5122 #include "confdefs.h" 5125 #include "confdefs.h"
5123 /* System header to define __stub macros and hopefully few prototypes, 5126 /* System header to define __stub macros and hopefully few prototypes,
5124 which can conflict with char connect(); below. */ 5127 which can conflict with char connect(); below. */
5125 #include <assert.h> 5128 #include <assert.h>
5126 /* Override any gcc2 internal prototype to avoid an error. */ 5129 /* Override any gcc2 internal prototype to avoid an error. */
5139 connect(); 5142 connect();
5140 #endif 5143 #endif
5141 5144
5142 ; return 0; } 5145 ; return 0; }
5143 EOF 5146 EOF
5144 if { (eval echo configure:5145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5147 if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5145 rm -rf conftest* 5148 rm -rf conftest*
5146 eval "ac_cv_func_connect=yes" 5149 eval "ac_cv_func_connect=yes"
5147 else 5150 else
5148 echo "configure: failed program was:" >&5 5151 echo "configure: failed program was:" >&5
5149 cat conftest.$ac_ext >&5 5152 cat conftest.$ac_ext >&5
5162 if test $ac_cv_func_connect = no; then 5165 if test $ac_cv_func_connect = no; then
5163 5166
5164 xe_msg_checking="for connect in -lsocket" 5167 xe_msg_checking="for connect in -lsocket"
5165 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5168 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5166 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5169 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5167 echo "configure:5168: checking "$xe_msg_checking"" >&5 5170 echo "configure:5171: checking "$xe_msg_checking"" >&5
5168 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5171 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
5169 5172
5170 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5173 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
5171 cat > conftest.$ac_ext <<EOF 5174 cat > conftest.$ac_ext <<EOF
5172 #line 5173 "configure" 5175 #line 5176 "configure"
5173 #include "confdefs.h" 5176 #include "confdefs.h"
5174 /* Override any gcc2 internal prototype to avoid an error. */ 5177 /* Override any gcc2 internal prototype to avoid an error. */
5175 /* We use char because int might match the return type of a gcc2 5178 /* We use char because int might match the return type of a gcc2
5176 builtin and then its argument prototype would still apply. */ 5179 builtin and then its argument prototype would still apply. */
5177 char connect(); 5180 char connect();
5178 5181
5179 int main() { 5182 int main() {
5180 connect() 5183 connect()
5181 ; return 0; } 5184 ; return 0; }
5182 EOF 5185 EOF
5183 if { (eval echo configure:5184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5186 if { (eval echo configure:5187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5184 rm -rf conftest* 5187 rm -rf conftest*
5185 eval "ac_cv_lib_$ac_lib_var=yes" 5188 eval "ac_cv_lib_$ac_lib_var=yes"
5186 else 5189 else
5187 echo "configure: failed program was:" >&5 5190 echo "configure: failed program was:" >&5
5188 cat conftest.$ac_ext >&5 5191 cat conftest.$ac_ext >&5
5202 5205
5203 fi 5206 fi
5204 5207
5205 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5208 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5206 echo $ac_n "checking for remove""... $ac_c" 1>&6 5209 echo $ac_n "checking for remove""... $ac_c" 1>&6
5207 echo "configure:5208: checking for remove" >&5 5210 echo "configure:5211: checking for remove" >&5
5208 5211
5209 cat > conftest.$ac_ext <<EOF 5212 cat > conftest.$ac_ext <<EOF
5210 #line 5211 "configure" 5213 #line 5214 "configure"
5211 #include "confdefs.h" 5214 #include "confdefs.h"
5212 /* System header to define __stub macros and hopefully few prototypes, 5215 /* System header to define __stub macros and hopefully few prototypes,
5213 which can conflict with char remove(); below. */ 5216 which can conflict with char remove(); below. */
5214 #include <assert.h> 5217 #include <assert.h>
5215 /* Override any gcc2 internal prototype to avoid an error. */ 5218 /* Override any gcc2 internal prototype to avoid an error. */
5228 remove(); 5231 remove();
5229 #endif 5232 #endif
5230 5233
5231 ; return 0; } 5234 ; return 0; }
5232 EOF 5235 EOF
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5236 if { (eval echo configure:5237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5234 rm -rf conftest* 5237 rm -rf conftest*
5235 eval "ac_cv_func_remove=yes" 5238 eval "ac_cv_func_remove=yes"
5236 else 5239 else
5237 echo "configure: failed program was:" >&5 5240 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5 5241 cat conftest.$ac_ext >&5
5249 fi 5252 fi
5250 5253
5251 if test $ac_cv_func_remove = no; then 5254 if test $ac_cv_func_remove = no; then
5252 5255
5253 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5256 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5254 echo "configure:5255: checking for remove in -lposix" >&5 5257 echo "configure:5258: checking for remove in -lposix" >&5
5255 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5258 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5256 5259
5257 xe_check_libs=" -lposix " 5260 xe_check_libs=" -lposix "
5258 cat > conftest.$ac_ext <<EOF 5261 cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure" 5262 #line 5263 "configure"
5260 #include "confdefs.h" 5263 #include "confdefs.h"
5261 /* Override any gcc2 internal prototype to avoid an error. */ 5264 /* Override any gcc2 internal prototype to avoid an error. */
5262 /* We use char because int might match the return type of a gcc2 5265 /* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */ 5266 builtin and then its argument prototype would still apply. */
5264 char remove(); 5267 char remove();
5265 5268
5266 int main() { 5269 int main() {
5267 remove() 5270 remove()
5268 ; return 0; } 5271 ; return 0; }
5269 EOF 5272 EOF
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5271 rm -rf conftest* 5274 rm -rf conftest*
5272 eval "ac_cv_lib_$ac_lib_var=yes" 5275 eval "ac_cv_lib_$ac_lib_var=yes"
5273 else 5276 else
5274 echo "configure: failed program was:" >&5 5277 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5 5278 cat conftest.$ac_ext >&5
5289 5292
5290 fi 5293 fi
5291 5294
5292 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5295 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5293 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5296 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5294 echo "configure:5295: checking for shmat" >&5 5297 echo "configure:5298: checking for shmat" >&5
5295 5298
5296 cat > conftest.$ac_ext <<EOF 5299 cat > conftest.$ac_ext <<EOF
5297 #line 5298 "configure" 5300 #line 5301 "configure"
5298 #include "confdefs.h" 5301 #include "confdefs.h"
5299 /* System header to define __stub macros and hopefully few prototypes, 5302 /* System header to define __stub macros and hopefully few prototypes,
5300 which can conflict with char shmat(); below. */ 5303 which can conflict with char shmat(); below. */
5301 #include <assert.h> 5304 #include <assert.h>
5302 /* Override any gcc2 internal prototype to avoid an error. */ 5305 /* Override any gcc2 internal prototype to avoid an error. */
5315 shmat(); 5318 shmat();
5316 #endif 5319 #endif
5317 5320
5318 ; return 0; } 5321 ; return 0; }
5319 EOF 5322 EOF
5320 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5321 rm -rf conftest* 5324 rm -rf conftest*
5322 eval "ac_cv_func_shmat=yes" 5325 eval "ac_cv_func_shmat=yes"
5323 else 5326 else
5324 echo "configure: failed program was:" >&5 5327 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5 5328 cat conftest.$ac_ext >&5
5336 fi 5339 fi
5337 5340
5338 if test $ac_cv_func_shmat = no; then 5341 if test $ac_cv_func_shmat = no; then
5339 5342
5340 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5343 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5341 echo "configure:5342: checking for shmat in -lipc" >&5 5344 echo "configure:5345: checking for shmat in -lipc" >&5
5342 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5345 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5343 5346
5344 xe_check_libs=" -lipc " 5347 xe_check_libs=" -lipc "
5345 cat > conftest.$ac_ext <<EOF 5348 cat > conftest.$ac_ext <<EOF
5346 #line 5347 "configure" 5349 #line 5350 "configure"
5347 #include "confdefs.h" 5350 #include "confdefs.h"
5348 /* Override any gcc2 internal prototype to avoid an error. */ 5351 /* Override any gcc2 internal prototype to avoid an error. */
5349 /* We use char because int might match the return type of a gcc2 5352 /* We use char because int might match the return type of a gcc2
5350 builtin and then its argument prototype would still apply. */ 5353 builtin and then its argument prototype would still apply. */
5351 char shmat(); 5354 char shmat();
5352 5355
5353 int main() { 5356 int main() {
5354 shmat() 5357 shmat()
5355 ; return 0; } 5358 ; return 0; }
5356 EOF 5359 EOF
5357 if { (eval echo configure:5358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5360 if { (eval echo configure:5361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5358 rm -rf conftest* 5361 rm -rf conftest*
5359 eval "ac_cv_lib_$ac_lib_var=yes" 5362 eval "ac_cv_lib_$ac_lib_var=yes"
5360 else 5363 else
5361 echo "configure: failed program was:" >&5 5364 echo "configure: failed program was:" >&5
5362 cat conftest.$ac_ext >&5 5365 cat conftest.$ac_ext >&5
5388 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5391 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5389 5392
5390 xe_msg_checking="for IceConnectionNumber in -lICE" 5393 xe_msg_checking="for IceConnectionNumber in -lICE"
5391 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5394 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5392 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5395 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5393 echo "configure:5394: checking "$xe_msg_checking"" >&5 5396 echo "configure:5397: checking "$xe_msg_checking"" >&5
5394 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5397 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5395 5398
5396 xe_check_libs=" -lICE $X_EXTRA_LIBS" 5399 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5397 cat > conftest.$ac_ext <<EOF 5400 cat > conftest.$ac_ext <<EOF
5398 #line 5399 "configure" 5401 #line 5402 "configure"
5399 #include "confdefs.h" 5402 #include "confdefs.h"
5400 /* Override any gcc2 internal prototype to avoid an error. */ 5403 /* Override any gcc2 internal prototype to avoid an error. */
5401 /* We use char because int might match the return type of a gcc2 5404 /* We use char because int might match the return type of a gcc2
5402 builtin and then its argument prototype would still apply. */ 5405 builtin and then its argument prototype would still apply. */
5403 char IceConnectionNumber(); 5406 char IceConnectionNumber();
5404 5407
5405 int main() { 5408 int main() {
5406 IceConnectionNumber() 5409 IceConnectionNumber()
5407 ; return 0; } 5410 ; return 0; }
5408 EOF 5411 EOF
5409 if { (eval echo configure:5410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5412 if { (eval echo configure:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5410 rm -rf conftest* 5413 rm -rf conftest*
5411 eval "ac_cv_lib_$ac_lib_var=yes" 5414 eval "ac_cv_lib_$ac_lib_var=yes"
5412 else 5415 else
5413 echo "configure: failed program was:" >&5 5416 echo "configure: failed program was:" >&5
5414 cat conftest.$ac_ext >&5 5417 cat conftest.$ac_ext >&5
5573 EOF 5576 EOF
5574 } 5577 }
5575 5578
5576 5579
5577 echo "checking for X defines extracted by xmkmf" 1>&6 5580 echo "checking for X defines extracted by xmkmf" 1>&6
5578 echo "configure:5579: checking for X defines extracted by xmkmf" >&5 5581 echo "configure:5582: checking for X defines extracted by xmkmf" >&5
5579 rm -fr conftestdir 5582 rm -fr conftestdir
5580 if mkdir conftestdir; then 5583 if mkdir conftestdir; then
5581 cd conftestdir 5584 cd conftestdir
5582 cat > Imakefile <<'EOF' 5585 cat > Imakefile <<'EOF'
5583 xetest: 5586 xetest:
5605 done 5608 done
5606 fi 5609 fi
5607 5610
5608 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5611 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5609 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5612 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5610 echo "configure:5611: checking for X11/Intrinsic.h" >&5 5613 echo "configure:5614: checking for X11/Intrinsic.h" >&5
5611 5614
5612 cat > conftest.$ac_ext <<EOF 5615 cat > conftest.$ac_ext <<EOF
5613 #line 5614 "configure" 5616 #line 5617 "configure"
5614 #include "confdefs.h" 5617 #include "confdefs.h"
5615 #include <X11/Intrinsic.h> 5618 #include <X11/Intrinsic.h>
5616 EOF 5619 EOF
5617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5618 { (eval echo configure:5619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5621 { (eval echo configure:5622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5620 if test -z "$ac_err"; then 5623 if test -z "$ac_err"; then
5621 rm -rf conftest* 5624 rm -rf conftest*
5622 eval "ac_cv_header_$ac_safe=yes" 5625 eval "ac_cv_header_$ac_safe=yes"
5623 else 5626 else
5637 fi 5640 fi
5638 5641
5639 5642
5640 5643
5641 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5644 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5642 echo "configure:5643: checking for XOpenDisplay in -lX11" >&5 5645 echo "configure:5646: checking for XOpenDisplay in -lX11" >&5
5643 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5646 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5644 5647
5645 xe_check_libs=" -lX11 " 5648 xe_check_libs=" -lX11 "
5646 cat > conftest.$ac_ext <<EOF 5649 cat > conftest.$ac_ext <<EOF
5647 #line 5648 "configure" 5650 #line 5651 "configure"
5648 #include "confdefs.h" 5651 #include "confdefs.h"
5649 /* Override any gcc2 internal prototype to avoid an error. */ 5652 /* Override any gcc2 internal prototype to avoid an error. */
5650 /* We use char because int might match the return type of a gcc2 5653 /* We use char because int might match the return type of a gcc2
5651 builtin and then its argument prototype would still apply. */ 5654 builtin and then its argument prototype would still apply. */
5652 char XOpenDisplay(); 5655 char XOpenDisplay();
5653 5656
5654 int main() { 5657 int main() {
5655 XOpenDisplay() 5658 XOpenDisplay()
5656 ; return 0; } 5659 ; return 0; }
5657 EOF 5660 EOF
5658 if { (eval echo configure:5659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5661 if { (eval echo configure:5662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5659 rm -rf conftest* 5662 rm -rf conftest*
5660 eval "ac_cv_lib_$ac_lib_var=yes" 5663 eval "ac_cv_lib_$ac_lib_var=yes"
5661 else 5664 else
5662 echo "configure: failed program was:" >&5 5665 echo "configure: failed program was:" >&5
5663 cat conftest.$ac_ext >&5 5666 cat conftest.$ac_ext >&5
5678 if test "$have_lib_x11" != "yes"; then 5681 if test "$have_lib_x11" != "yes"; then
5679 5682
5680 xe_msg_checking="for XGetFontProperty in -lX11" 5683 xe_msg_checking="for XGetFontProperty in -lX11"
5681 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5684 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5682 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5685 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5683 echo "configure:5684: checking "$xe_msg_checking"" >&5 5686 echo "configure:5687: checking "$xe_msg_checking"" >&5
5684 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5687 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5685 5688
5686 xe_check_libs=" -lX11 -b i486-linuxaout" 5689 xe_check_libs=" -lX11 -b i486-linuxaout"
5687 cat > conftest.$ac_ext <<EOF 5690 cat > conftest.$ac_ext <<EOF
5688 #line 5689 "configure" 5691 #line 5692 "configure"
5689 #include "confdefs.h" 5692 #include "confdefs.h"
5690 /* Override any gcc2 internal prototype to avoid an error. */ 5693 /* Override any gcc2 internal prototype to avoid an error. */
5691 /* We use char because int might match the return type of a gcc2 5694 /* We use char because int might match the return type of a gcc2
5692 builtin and then its argument prototype would still apply. */ 5695 builtin and then its argument prototype would still apply. */
5693 char XGetFontProperty(); 5696 char XGetFontProperty();
5694 5697
5695 int main() { 5698 int main() {
5696 XGetFontProperty() 5699 XGetFontProperty()
5697 ; return 0; } 5700 ; return 0; }
5698 EOF 5701 EOF
5699 if { (eval echo configure:5700: \"$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
5700 rm -rf conftest* 5703 rm -rf conftest*
5701 eval "ac_cv_lib_$ac_lib_var=yes" 5704 eval "ac_cv_lib_$ac_lib_var=yes"
5702 else 5705 else
5703 echo "configure: failed program was:" >&5 5706 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5 5707 cat conftest.$ac_ext >&5
5721 libs_x="-lX11" 5724 libs_x="-lX11"
5722 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5725 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5723 5726
5724 5727
5725 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5728 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5726 echo "configure:5727: checking for XShapeSelectInput in -lXext" >&5 5729 echo "configure:5730: checking for XShapeSelectInput in -lXext" >&5
5727 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5730 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5728 5731
5729 xe_check_libs=" -lXext " 5732 xe_check_libs=" -lXext "
5730 cat > conftest.$ac_ext <<EOF 5733 cat > conftest.$ac_ext <<EOF
5731 #line 5732 "configure" 5734 #line 5735 "configure"
5732 #include "confdefs.h" 5735 #include "confdefs.h"
5733 /* Override any gcc2 internal prototype to avoid an error. */ 5736 /* Override any gcc2 internal prototype to avoid an error. */
5734 /* We use char because int might match the return type of a gcc2 5737 /* We use char because int might match the return type of a gcc2
5735 builtin and then its argument prototype would still apply. */ 5738 builtin and then its argument prototype would still apply. */
5736 char XShapeSelectInput(); 5739 char XShapeSelectInput();
5737 5740
5738 int main() { 5741 int main() {
5739 XShapeSelectInput() 5742 XShapeSelectInput()
5740 ; return 0; } 5743 ; return 0; }
5741 EOF 5744 EOF
5742 if { (eval echo configure:5743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5745 if { (eval echo configure:5746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5743 rm -rf conftest* 5746 rm -rf conftest*
5744 eval "ac_cv_lib_$ac_lib_var=yes" 5747 eval "ac_cv_lib_$ac_lib_var=yes"
5745 else 5748 else
5746 echo "configure: failed program was:" >&5 5749 echo "configure: failed program was:" >&5
5747 cat conftest.$ac_ext >&5 5750 cat conftest.$ac_ext >&5
5760 5763
5761 5764
5762 5765
5763 5766
5764 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5767 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5765 echo "configure:5766: checking for XtOpenDisplay in -lXt" >&5 5768 echo "configure:5769: checking for XtOpenDisplay in -lXt" >&5
5766 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5769 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5767 5770
5768 xe_check_libs=" -lXt " 5771 xe_check_libs=" -lXt "
5769 cat > conftest.$ac_ext <<EOF 5772 cat > conftest.$ac_ext <<EOF
5770 #line 5771 "configure" 5773 #line 5774 "configure"
5771 #include "confdefs.h" 5774 #include "confdefs.h"
5772 /* Override any gcc2 internal prototype to avoid an error. */ 5775 /* Override any gcc2 internal prototype to avoid an error. */
5773 /* We use char because int might match the return type of a gcc2 5776 /* We use char because int might match the return type of a gcc2
5774 builtin and then its argument prototype would still apply. */ 5777 builtin and then its argument prototype would still apply. */
5775 char XtOpenDisplay(); 5778 char XtOpenDisplay();
5776 5779
5777 int main() { 5780 int main() {
5778 XtOpenDisplay() 5781 XtOpenDisplay()
5779 ; return 0; } 5782 ; return 0; }
5780 EOF 5783 EOF
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5784 if { (eval echo configure:5785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 rm -rf conftest* 5785 rm -rf conftest*
5783 eval "ac_cv_lib_$ac_lib_var=yes" 5786 eval "ac_cv_lib_$ac_lib_var=yes"
5784 else 5787 else
5785 echo "configure: failed program was:" >&5 5788 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5 5789 cat conftest.$ac_ext >&5
5799 fi 5802 fi
5800 5803
5801 5804
5802 5805
5803 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5806 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5804 echo "configure:5805: checking the version of X11 being used" >&5 5807 echo "configure:5808: checking the version of X11 being used" >&5
5805 cat > conftest.$ac_ext <<EOF 5808 cat > conftest.$ac_ext <<EOF
5806 #line 5807 "configure" 5809 #line 5810 "configure"
5807 #include "confdefs.h" 5810 #include "confdefs.h"
5808 #include <X11/Intrinsic.h> 5811 #include <X11/Intrinsic.h>
5809 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5812 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5810 EOF 5813 EOF
5811 if { (eval echo configure:5812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5812 then 5815 then
5813 ./conftest foobar; x11_release=$? 5816 ./conftest foobar; x11_release=$?
5814 else 5817 else
5815 conftest_rc="$?" 5818 conftest_rc="$?"
5816 echo "configure: failed program was:" >&5 5819 echo "configure: failed program was:" >&5
5831 5834
5832 for ac_hdr in X11/Xlocale.h 5835 for ac_hdr in X11/Xlocale.h
5833 do 5836 do
5834 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5835 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5836 echo "configure:5837: checking for $ac_hdr" >&5 5839 echo "configure:5840: checking for $ac_hdr" >&5
5837 5840
5838 cat > conftest.$ac_ext <<EOF 5841 cat > conftest.$ac_ext <<EOF
5839 #line 5840 "configure" 5842 #line 5843 "configure"
5840 #include "confdefs.h" 5843 #include "confdefs.h"
5841 #include <$ac_hdr> 5844 #include <$ac_hdr>
5842 EOF 5845 EOF
5843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5844 { (eval echo configure:5845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5847 { (eval echo configure:5848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5846 if test -z "$ac_err"; then 5849 if test -z "$ac_err"; then
5847 rm -rf conftest* 5850 rm -rf conftest*
5848 eval "ac_cv_header_$ac_safe=yes" 5851 eval "ac_cv_header_$ac_safe=yes"
5849 else 5852 else
5870 fi 5873 fi
5871 done 5874 done
5872 5875
5873 5876
5874 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5877 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5875 echo "configure:5876: checking for XFree86" >&5 5878 echo "configure:5879: checking for XFree86" >&5
5876 if test -d "/usr/X386/include" -o \ 5879 if test -d "/usr/X386/include" -o \
5877 -f "/etc/XF86Config" -o \ 5880 -f "/etc/XF86Config" -o \
5878 -f "/etc/X11/XF86Config" -o \ 5881 -f "/etc/X11/XF86Config" -o \
5879 -f "/usr/X11R6/lib/X11/XF86Config"; then 5882 -f "/usr/X11R6/lib/X11/XF86Config"; then
5880 echo "$ac_t""yes" 1>&6 5883 echo "$ac_t""yes" 1>&6
5890 echo "$ac_t""no" 1>&6 5893 echo "$ac_t""no" 1>&6
5891 fi 5894 fi
5892 5895
5893 test -z "$with_xmu" && { 5896 test -z "$with_xmu" && {
5894 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5897 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5895 echo "configure:5896: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5898 echo "configure:5899: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5896 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5899 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5897 5900
5898 xe_check_libs=" -lXmu " 5901 xe_check_libs=" -lXmu "
5899 cat > conftest.$ac_ext <<EOF 5902 cat > conftest.$ac_ext <<EOF
5900 #line 5901 "configure" 5903 #line 5904 "configure"
5901 #include "confdefs.h" 5904 #include "confdefs.h"
5902 /* Override any gcc2 internal prototype to avoid an error. */ 5905 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2 5906 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */ 5907 builtin and then its argument prototype would still apply. */
5905 char XmuReadBitmapDataFromFile(); 5908 char XmuReadBitmapDataFromFile();
5906 5909
5907 int main() { 5910 int main() {
5908 XmuReadBitmapDataFromFile() 5911 XmuReadBitmapDataFromFile()
5909 ; return 0; } 5912 ; return 0; }
5910 EOF 5913 EOF
5911 if { (eval echo configure:5912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5914 if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5912 rm -rf conftest* 5915 rm -rf conftest*
5913 eval "ac_cv_lib_$ac_lib_var=yes" 5916 eval "ac_cv_lib_$ac_lib_var=yes"
5914 else 5917 else
5915 echo "configure: failed program was:" >&5 5918 echo "configure: failed program was:" >&5
5916 cat conftest.$ac_ext >&5 5919 cat conftest.$ac_ext >&5
5945 5948
5946 fi 5949 fi
5947 5950
5948 5951
5949 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5952 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5950 echo "configure:5951: checking for main in -lXbsd" >&5 5953 echo "configure:5954: checking for main in -lXbsd" >&5
5951 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5954 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5952 5955
5953 xe_check_libs=" -lXbsd " 5956 xe_check_libs=" -lXbsd "
5954 cat > conftest.$ac_ext <<EOF 5957 cat > conftest.$ac_ext <<EOF
5955 #line 5956 "configure" 5958 #line 5959 "configure"
5956 #include "confdefs.h" 5959 #include "confdefs.h"
5957 5960
5958 int main() { 5961 int main() {
5959 main() 5962 main()
5960 ; return 0; } 5963 ; return 0; }
5961 EOF 5964 EOF
5962 if { (eval echo configure:5963: \"$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
5963 rm -rf conftest* 5966 rm -rf conftest*
5964 eval "ac_cv_lib_$ac_lib_var=yes" 5967 eval "ac_cv_lib_$ac_lib_var=yes"
5965 else 5968 else
5966 echo "configure: failed program was:" >&5 5969 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5 5970 cat conftest.$ac_ext >&5
5994 fi 5997 fi
5995 5998
5996 fi 5999 fi
5997 if test "$with_msw" != "no"; then 6000 if test "$with_msw" != "no"; then
5998 echo "checking for MS-Windows" 1>&6 6001 echo "checking for MS-Windows" 1>&6
5999 echo "configure:6000: checking for MS-Windows" >&5 6002 echo "configure:6003: checking for MS-Windows" >&5
6000 6003
6001 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6004 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
6002 echo "configure:6003: checking for main in -lgdi32" >&5 6005 echo "configure:6006: checking for main in -lgdi32" >&5
6003 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6006 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
6004 6007
6005 xe_check_libs=" -lgdi32 " 6008 xe_check_libs=" -lgdi32 "
6006 cat > conftest.$ac_ext <<EOF 6009 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure" 6010 #line 6011 "configure"
6008 #include "confdefs.h" 6011 #include "confdefs.h"
6009 6012
6010 int main() { 6013 int main() {
6011 main() 6014 main()
6012 ; return 0; } 6015 ; return 0; }
6013 EOF 6016 EOF
6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6015 rm -rf conftest* 6018 rm -rf conftest*
6016 eval "ac_cv_lib_$ac_lib_var=yes" 6019 eval "ac_cv_lib_$ac_lib_var=yes"
6017 else 6020 else
6018 echo "configure: failed program was:" >&5 6021 echo "configure: failed program was:" >&5
6019 cat conftest.$ac_ext >&5 6022 cat conftest.$ac_ext >&5
6059 fi 6062 fi
6060 test "$with_dialogs" != "no" && with_dialogs=msw \ 6063 test "$with_dialogs" != "no" && with_dialogs=msw \
6061 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6064 && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6062 echo " xemacs will be linked with \"dialog-msw.o\"" 6065 echo " xemacs will be linked with \"dialog-msw.o\""
6063 fi 6066 fi
6067 test "$with_widgets" != "no" && with_widgets=msw
6064 else 6068 else
6065 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then 6069 test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-msw.o" && if test "$extra_verbose" = "yes"; then
6066 echo " xemacs will be linked with \"scrollbar-msw.o\"" 6070 echo " xemacs will be linked with \"scrollbar-msw.o\""
6067 fi 6071 fi
6068 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then 6072 test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-msw.o" && if test "$extra_verbose" = "yes"; then
6074 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6078 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
6075 echo " xemacs will be linked with \"dialog-msw.o\"" 6079 echo " xemacs will be linked with \"dialog-msw.o\""
6076 fi 6080 fi
6077 fi 6081 fi
6078 cat > conftest.$ac_ext <<EOF 6082 cat > conftest.$ac_ext <<EOF
6079 #line 6080 "configure" 6083 #line 6084 "configure"
6080 #include "confdefs.h" 6084 #include "confdefs.h"
6081 #include <fcntl.h> 6085 #include <fcntl.h>
6082 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6086 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
6083 EOF 6087 EOF
6084 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6085 then 6089 then
6086 { test "$extra_verbose" = "yes" && cat << \EOF 6090 { test "$extra_verbose" = "yes" && cat << \EOF
6087 Defining HAVE_MSG_SELECT 6091 Defining HAVE_MSG_SELECT
6088 EOF 6092 EOF
6089 cat >> confdefs.h <<\EOF 6093 cat >> confdefs.h <<\EOF
6155 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6159 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
6156 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6160 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
6157 esac 6161 esac
6158 6162
6159 echo "checking for WM_COMMAND option" 1>&6 6163 echo "checking for WM_COMMAND option" 1>&6
6160 echo "configure:6161: checking for WM_COMMAND option" >&5; 6164 echo "configure:6165: checking for WM_COMMAND option" >&5;
6161 if test "$with_wmcommand" != "no"; then 6165 if test "$with_wmcommand" != "no"; then
6162 { test "$extra_verbose" = "yes" && cat << \EOF 6166 { test "$extra_verbose" = "yes" && cat << \EOF
6163 Defining HAVE_WMCOMMAND 6167 Defining HAVE_WMCOMMAND
6164 EOF 6168 EOF
6165 cat >> confdefs.h <<\EOF 6169 cat >> confdefs.h <<\EOF
6170 fi 6174 fi
6171 6175
6172 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6176 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
6173 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6177 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
6174 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6178 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
6175 echo "configure:6176: checking for X11/Xauth.h" >&5 6179 echo "configure:6180: checking for X11/Xauth.h" >&5
6176 6180
6177 cat > conftest.$ac_ext <<EOF 6181 cat > conftest.$ac_ext <<EOF
6178 #line 6179 "configure" 6182 #line 6183 "configure"
6179 #include "confdefs.h" 6183 #include "confdefs.h"
6180 #include <X11/Xauth.h> 6184 #include <X11/Xauth.h>
6181 EOF 6185 EOF
6182 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6183 { (eval echo configure:6184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6187 { (eval echo configure:6188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6184 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6185 if test -z "$ac_err"; then 6189 if test -z "$ac_err"; then
6186 rm -rf conftest* 6190 rm -rf conftest*
6187 eval "ac_cv_header_$ac_safe=yes" 6191 eval "ac_cv_header_$ac_safe=yes"
6188 else 6192 else
6201 with_xauth=no 6205 with_xauth=no
6202 fi 6206 fi
6203 } 6207 }
6204 test -z "$with_xauth" && { 6208 test -z "$with_xauth" && {
6205 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6209 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6206 echo "configure:6207: checking for XauGetAuthByAddr in -lXau" >&5 6210 echo "configure:6211: checking for XauGetAuthByAddr in -lXau" >&5
6207 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6211 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6208 6212
6209 xe_check_libs=" -lXau " 6213 xe_check_libs=" -lXau "
6210 cat > conftest.$ac_ext <<EOF 6214 cat > conftest.$ac_ext <<EOF
6211 #line 6212 "configure" 6215 #line 6216 "configure"
6212 #include "confdefs.h" 6216 #include "confdefs.h"
6213 /* Override any gcc2 internal prototype to avoid an error. */ 6217 /* Override any gcc2 internal prototype to avoid an error. */
6214 /* We use char because int might match the return type of a gcc2 6218 /* We use char because int might match the return type of a gcc2
6215 builtin and then its argument prototype would still apply. */ 6219 builtin and then its argument prototype would still apply. */
6216 char XauGetAuthByAddr(); 6220 char XauGetAuthByAddr();
6217 6221
6218 int main() { 6222 int main() {
6219 XauGetAuthByAddr() 6223 XauGetAuthByAddr()
6220 ; return 0; } 6224 ; return 0; }
6221 EOF 6225 EOF
6222 if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6226 if { (eval echo configure:6227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6223 rm -rf conftest* 6227 rm -rf conftest*
6224 eval "ac_cv_lib_$ac_lib_var=yes" 6228 eval "ac_cv_lib_$ac_lib_var=yes"
6225 else 6229 else
6226 echo "configure: failed program was:" >&5 6230 echo "configure: failed program was:" >&5
6227 cat conftest.$ac_ext >&5 6231 cat conftest.$ac_ext >&5
6262 6266
6263 if test "$with_tooltalk" != "no" ; then 6267 if test "$with_tooltalk" != "no" ; then
6264 for dir in "" "Tt/" "desktop/" ; do 6268 for dir in "" "Tt/" "desktop/" ; do
6265 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6269 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6266 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6270 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6267 echo "configure:6268: checking for ${dir}tt_c.h" >&5 6271 echo "configure:6272: checking for ${dir}tt_c.h" >&5
6268 6272
6269 cat > conftest.$ac_ext <<EOF 6273 cat > conftest.$ac_ext <<EOF
6270 #line 6271 "configure" 6274 #line 6275 "configure"
6271 #include "confdefs.h" 6275 #include "confdefs.h"
6272 #include <${dir}tt_c.h> 6276 #include <${dir}tt_c.h>
6273 EOF 6277 EOF
6274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6275 { (eval echo configure:6276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6279 { (eval echo configure:6280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6277 if test -z "$ac_err"; then 6281 if test -z "$ac_err"; then
6278 rm -rf conftest* 6282 rm -rf conftest*
6279 eval "ac_cv_header_$ac_safe=yes" 6283 eval "ac_cv_header_$ac_safe=yes"
6280 else 6284 else
6306 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6310 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6307 6311
6308 xe_msg_checking="for tt_message_create in -ltt" 6312 xe_msg_checking="for tt_message_create in -ltt"
6309 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6313 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6310 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6314 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6311 echo "configure:6312: checking "$xe_msg_checking"" >&5 6315 echo "configure:6316: checking "$xe_msg_checking"" >&5
6312 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6316 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6313 6317
6314 xe_check_libs=" -ltt $extra_libs" 6318 xe_check_libs=" -ltt $extra_libs"
6315 cat > conftest.$ac_ext <<EOF 6319 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure" 6320 #line 6321 "configure"
6317 #include "confdefs.h" 6321 #include "confdefs.h"
6318 /* Override any gcc2 internal prototype to avoid an error. */ 6322 /* Override any gcc2 internal prototype to avoid an error. */
6319 /* We use char because int might match the return type of a gcc2 6323 /* We use char because int might match the return type of a gcc2
6320 builtin and then its argument prototype would still apply. */ 6324 builtin and then its argument prototype would still apply. */
6321 char tt_message_create(); 6325 char tt_message_create();
6322 6326
6323 int main() { 6327 int main() {
6324 tt_message_create() 6328 tt_message_create()
6325 ; return 0; } 6329 ; return 0; }
6326 EOF 6330 EOF
6327 if { (eval echo configure:6328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6328 rm -rf conftest* 6332 rm -rf conftest*
6329 eval "ac_cv_lib_$ac_lib_var=yes" 6333 eval "ac_cv_lib_$ac_lib_var=yes"
6330 else 6334 else
6331 echo "configure: failed program was:" >&5 6335 echo "configure: failed program was:" >&5
6332 cat conftest.$ac_ext >&5 6336 cat conftest.$ac_ext >&5
6379 fi 6383 fi
6380 fi 6384 fi
6381 6385
6382 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6386 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6383 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6387 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6384 echo "configure:6385: checking for Dt/Dt.h" >&5 6388 echo "configure:6389: checking for Dt/Dt.h" >&5
6385 6389
6386 cat > conftest.$ac_ext <<EOF 6390 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure" 6391 #line 6392 "configure"
6388 #include "confdefs.h" 6392 #include "confdefs.h"
6389 #include <Dt/Dt.h> 6393 #include <Dt/Dt.h>
6390 EOF 6394 EOF
6391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6392 { (eval echo configure:6393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6396 { (eval echo configure:6397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6394 if test -z "$ac_err"; then 6398 if test -z "$ac_err"; then
6395 rm -rf conftest* 6399 rm -rf conftest*
6396 eval "ac_cv_header_$ac_safe=yes" 6400 eval "ac_cv_header_$ac_safe=yes"
6397 else 6401 else
6410 with_cde=no 6414 with_cde=no
6411 fi 6415 fi
6412 } 6416 }
6413 test -z "$with_cde" && { 6417 test -z "$with_cde" && {
6414 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6418 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6415 echo "configure:6416: checking for DtDndDragStart in -lDtSvc" >&5 6419 echo "configure:6420: checking for DtDndDragStart in -lDtSvc" >&5
6416 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6420 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6417 6421
6418 xe_check_libs=" -lDtSvc " 6422 xe_check_libs=" -lDtSvc "
6419 cat > conftest.$ac_ext <<EOF 6423 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure" 6424 #line 6425 "configure"
6421 #include "confdefs.h" 6425 #include "confdefs.h"
6422 /* Override any gcc2 internal prototype to avoid an error. */ 6426 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2 6427 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */ 6428 builtin and then its argument prototype would still apply. */
6425 char DtDndDragStart(); 6429 char DtDndDragStart();
6426 6430
6427 int main() { 6431 int main() {
6428 DtDndDragStart() 6432 DtDndDragStart()
6429 ; return 0; } 6433 ; return 0; }
6430 EOF 6434 EOF
6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6435 if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6432 rm -rf conftest* 6436 rm -rf conftest*
6433 eval "ac_cv_lib_$ac_lib_var=yes" 6437 eval "ac_cv_lib_$ac_lib_var=yes"
6434 else 6438 else
6435 echo "configure: failed program was:" >&5 6439 echo "configure: failed program was:" >&5
6436 cat conftest.$ac_ext >&5 6440 cat conftest.$ac_ext >&5
6495 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6499 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6496 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6500 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6497 fi 6501 fi
6498 6502
6499 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6503 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6500 echo "configure:6501: checking if drag and drop API is needed" >&5 6504 echo "configure:6505: checking if drag and drop API is needed" >&5
6501 if test "$with_dragndrop" != "no" ; then 6505 if test "$with_dragndrop" != "no" ; then
6502 if test -n "$dragndrop_proto" ; then 6506 if test -n "$dragndrop_proto" ; then
6503 with_dragndrop=yes 6507 with_dragndrop=yes
6504 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6508 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6505 { test "$extra_verbose" = "yes" && cat << \EOF 6509 { test "$extra_verbose" = "yes" && cat << \EOF
6516 echo "$ac_t""no" 1>&6 6520 echo "$ac_t""no" 1>&6
6517 fi 6521 fi
6518 fi 6522 fi
6519 6523
6520 echo "checking for LDAP" 1>&6 6524 echo "checking for LDAP" 1>&6
6521 echo "configure:6522: checking for LDAP" >&5 6525 echo "configure:6526: checking for LDAP" >&5
6522 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6526 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6523 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6527 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6524 echo "configure:6525: checking for ldap.h" >&5 6528 echo "configure:6529: checking for ldap.h" >&5
6525 6529
6526 cat > conftest.$ac_ext <<EOF 6530 cat > conftest.$ac_ext <<EOF
6527 #line 6528 "configure" 6531 #line 6532 "configure"
6528 #include "confdefs.h" 6532 #include "confdefs.h"
6529 #include <ldap.h> 6533 #include <ldap.h>
6530 EOF 6534 EOF
6531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6532 { (eval echo configure:6533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6536 { (eval echo configure:6537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6534 if test -z "$ac_err"; then 6538 if test -z "$ac_err"; then
6535 rm -rf conftest* 6539 rm -rf conftest*
6536 eval "ac_cv_header_$ac_safe=yes" 6540 eval "ac_cv_header_$ac_safe=yes"
6537 else 6541 else
6550 with_ldap=no 6554 with_ldap=no
6551 fi 6555 fi
6552 } 6556 }
6553 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6557 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6554 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6558 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6555 echo "configure:6556: checking for lber.h" >&5 6559 echo "configure:6560: checking for lber.h" >&5
6556 6560
6557 cat > conftest.$ac_ext <<EOF 6561 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure" 6562 #line 6563 "configure"
6559 #include "confdefs.h" 6563 #include "confdefs.h"
6560 #include <lber.h> 6564 #include <lber.h>
6561 EOF 6565 EOF
6562 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6563 { (eval echo configure:6564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6567 { (eval echo configure:6568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6564 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6565 if test -z "$ac_err"; then 6569 if test -z "$ac_err"; then
6566 rm -rf conftest* 6570 rm -rf conftest*
6567 eval "ac_cv_header_$ac_safe=yes" 6571 eval "ac_cv_header_$ac_safe=yes"
6568 else 6572 else
6582 fi 6586 fi
6583 } 6587 }
6584 if test "$with_ldap" != "no"; then 6588 if test "$with_ldap" != "no"; then
6585 6589
6586 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 6590 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
6587 echo "configure:6588: checking for ldap_search in -lldap" >&5 6591 echo "configure:6592: checking for ldap_search in -lldap" >&5
6588 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` 6592 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
6589 6593
6590 xe_check_libs=" -lldap " 6594 xe_check_libs=" -lldap "
6591 cat > conftest.$ac_ext <<EOF 6595 cat > conftest.$ac_ext <<EOF
6592 #line 6593 "configure" 6596 #line 6597 "configure"
6593 #include "confdefs.h" 6597 #include "confdefs.h"
6594 /* Override any gcc2 internal prototype to avoid an error. */ 6598 /* Override any gcc2 internal prototype to avoid an error. */
6595 /* We use char because int might match the return type of a gcc2 6599 /* We use char because int might match the return type of a gcc2
6596 builtin and then its argument prototype would still apply. */ 6600 builtin and then its argument prototype would still apply. */
6597 char ldap_search(); 6601 char ldap_search();
6598 6602
6599 int main() { 6603 int main() {
6600 ldap_search() 6604 ldap_search()
6601 ; return 0; } 6605 ; return 0; }
6602 EOF 6606 EOF
6603 if { (eval echo configure:6604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6607 if { (eval echo configure:6608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6604 rm -rf conftest* 6608 rm -rf conftest*
6605 eval "ac_cv_lib_$ac_lib_var=yes" 6609 eval "ac_cv_lib_$ac_lib_var=yes"
6606 else 6610 else
6607 echo "configure: failed program was:" >&5 6611 echo "configure: failed program was:" >&5
6608 cat conftest.$ac_ext >&5 6612 cat conftest.$ac_ext >&5
6623 6627
6624 test "$with_ldap_nolber" = "no" && { 6628 test "$with_ldap_nolber" = "no" && {
6625 xe_msg_checking="for ldap_open in -lldap" 6629 xe_msg_checking="for ldap_open in -lldap"
6626 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6630 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6627 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6631 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6628 echo "configure:6629: checking "$xe_msg_checking"" >&5 6632 echo "configure:6633: checking "$xe_msg_checking"" >&5
6629 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6633 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6630 6634
6631 xe_check_libs=" -lldap -llber" 6635 xe_check_libs=" -lldap -llber"
6632 cat > conftest.$ac_ext <<EOF 6636 cat > conftest.$ac_ext <<EOF
6633 #line 6634 "configure" 6637 #line 6638 "configure"
6634 #include "confdefs.h" 6638 #include "confdefs.h"
6635 /* Override any gcc2 internal prototype to avoid an error. */ 6639 /* Override any gcc2 internal prototype to avoid an error. */
6636 /* We use char because int might match the return type of a gcc2 6640 /* We use char because int might match the return type of a gcc2
6637 builtin and then its argument prototype would still apply. */ 6641 builtin and then its argument prototype would still apply. */
6638 char ldap_open(); 6642 char ldap_open();
6639 6643
6640 int main() { 6644 int main() {
6641 ldap_open() 6645 ldap_open()
6642 ; return 0; } 6646 ; return 0; }
6643 EOF 6647 EOF
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6648 if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6645 rm -rf conftest* 6649 rm -rf conftest*
6646 eval "ac_cv_lib_$ac_lib_var=yes" 6650 eval "ac_cv_lib_$ac_lib_var=yes"
6647 else 6651 else
6648 echo "configure: failed program was:" >&5 6652 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5 6653 cat conftest.$ac_ext >&5
6660 echo "$ac_t""no" 1>&6 6664 echo "$ac_t""no" 1>&6
6661 with_ldap_lber=no 6665 with_ldap_lber=no
6662 fi 6666 fi
6663 6667
6664 } 6668 }
6665 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" \) && with_ldap=yes 6669 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
6670 xe_msg_checking="for ldap_open in -lldap"
6671 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
6672 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6673 echo "configure:6674: checking "$xe_msg_checking"" >&5
6674 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6675
6676 xe_check_libs=" -lldap -llber -lkrb"
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6683 char ldap_open();
6684
6685 int main() {
6686 ldap_open()
6687 ; return 0; }
6688 EOF
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6690 rm -rf conftest*
6691 eval "ac_cv_lib_$ac_lib_var=yes"
6692 else
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6695 rm -rf conftest*
6696 eval "ac_cv_lib_$ac_lib_var=no"
6697 fi
6698 rm -f conftest*
6699 xe_check_libs=""
6700
6701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6702 echo "$ac_t""yes" 1>&6
6703 with_ldap_krb=yes
6704 else
6705 echo "$ac_t""no" 1>&6
6706 with_ldap_krb=no
6707 fi
6708
6709 }
6710 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
6711 xe_msg_checking="for ldap_open in -lldap"
6712 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
6713 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6714 echo "configure:6715: checking "$xe_msg_checking"" >&5
6715 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6716
6717 xe_check_libs=" -lldap -llber -lkrb -ldes"
6718 cat > conftest.$ac_ext <<EOF
6719 #line 6720 "configure"
6720 #include "confdefs.h"
6721 /* Override any gcc2 internal prototype to avoid an error. */
6722 /* We use char because int might match the return type of a gcc2
6723 builtin and then its argument prototype would still apply. */
6724 char ldap_open();
6725
6726 int main() {
6727 ldap_open()
6728 ; return 0; }
6729 EOF
6730 if { (eval echo configure:6731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6731 rm -rf conftest*
6732 eval "ac_cv_lib_$ac_lib_var=yes"
6733 else
6734 echo "configure: failed program was:" >&5
6735 cat conftest.$ac_ext >&5
6736 rm -rf conftest*
6737 eval "ac_cv_lib_$ac_lib_var=no"
6738 fi
6739 rm -f conftest*
6740 xe_check_libs=""
6741
6742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6743 echo "$ac_t""yes" 1>&6
6744 with_ldap_krbdes=yes
6745 else
6746 echo "$ac_t""no" 1>&6
6747 with_ldap_krbdes=no
6748 fi
6749
6750 }
6751 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
6666 fi 6752 fi
6667 if test "$with_ldap" = "yes"; then 6753 if test "$with_ldap" = "yes"; then
6668 { test "$extra_verbose" = "yes" && cat << \EOF 6754 { test "$extra_verbose" = "yes" && cat << \EOF
6669 Defining HAVE_LDAP 6755 Defining HAVE_LDAP
6670 EOF 6756 EOF
6677 echo " xemacs will be linked with \"eldap.o\"" 6763 echo " xemacs will be linked with \"eldap.o\""
6678 fi 6764 fi
6679 if test "$with_ldap_nolber" = "yes" ; then 6765 if test "$with_ldap_nolber" = "yes" ; then
6680 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6766 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6681 else 6767 else
6768 if test "$with_ldap_krb" = "yes" ; then
6769 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6770 fi
6771 if test "$with_ldap_krbdes" = "yes" ; then
6772 LIBS="-ldes $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$LIBS"; fi
6773 LIBS="-lkrb $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$LIBS"; fi
6774 fi
6682 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi 6775 LIBS="-llber $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$LIBS"; fi
6683 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi 6776 LIBS="-lldap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$LIBS"; fi
6684 fi 6777 fi
6685 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result 6778 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
6686 do 6779 do
6687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6688 echo "configure:6689: checking for $ac_func" >&5 6781 echo "configure:6782: checking for $ac_func" >&5
6689 6782
6690 cat > conftest.$ac_ext <<EOF 6783 cat > conftest.$ac_ext <<EOF
6691 #line 6692 "configure" 6784 #line 6785 "configure"
6692 #include "confdefs.h" 6785 #include "confdefs.h"
6693 /* System header to define __stub macros and hopefully few prototypes, 6786 /* System header to define __stub macros and hopefully few prototypes,
6694 which can conflict with char $ac_func(); below. */ 6787 which can conflict with char $ac_func(); below. */
6695 #include <assert.h> 6788 #include <assert.h>
6696 /* Override any gcc2 internal prototype to avoid an error. */ 6789 /* Override any gcc2 internal prototype to avoid an error. */
6709 $ac_func(); 6802 $ac_func();
6710 #endif 6803 #endif
6711 6804
6712 ; return 0; } 6805 ; return 0; }
6713 EOF 6806 EOF
6714 if { (eval echo configure:6715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6715 rm -rf conftest* 6808 rm -rf conftest*
6716 eval "ac_cv_func_$ac_func=yes" 6809 eval "ac_cv_func_$ac_func=yes"
6717 else 6810 else
6718 echo "configure: failed program was:" >&5 6811 echo "configure: failed program was:" >&5
6719 cat conftest.$ac_ext >&5 6812 cat conftest.$ac_ext >&5
6741 fi 6834 fi
6742 6835
6743 6836
6744 if test "$window_system" != "none"; then 6837 if test "$window_system" != "none"; then
6745 echo "checking for graphics libraries" 1>&6 6838 echo "checking for graphics libraries" 1>&6
6746 echo "configure:6747: checking for graphics libraries" >&5 6839 echo "configure:6840: checking for graphics libraries" >&5
6747 6840
6748 xpm_problem="" 6841 xpm_problem=""
6749 if test -z "$with_xpm"; then 6842 if test -z "$with_xpm"; then
6750 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6843 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6751 echo "configure:6752: checking for Xpm - no older than 3.4f" >&5 6844 echo "configure:6845: checking for Xpm - no older than 3.4f" >&5
6752 xe_check_libs=-lXpm 6845 xe_check_libs=-lXpm
6753 cat > conftest.$ac_ext <<EOF 6846 cat > conftest.$ac_ext <<EOF
6754 #line 6755 "configure" 6847 #line 6848 "configure"
6755 #include "confdefs.h" 6848 #include "confdefs.h"
6756 #include <X11/xpm.h> 6849 #include <X11/xpm.h>
6757 int main(int c, char **v) { 6850 int main(int c, char **v) {
6758 return c == 1 ? 0 : 6851 return c == 1 ? 0 :
6759 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6852 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6760 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6853 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6761 EOF 6854 EOF
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6763 then 6856 then
6764 ./conftest dummy_arg; xpm_status=$?; 6857 ./conftest dummy_arg; xpm_status=$?;
6765 if test "$xpm_status" = "0"; then 6858 if test "$xpm_status" = "0"; then
6766 with_xpm=yes; 6859 with_xpm=yes;
6767 else 6860 else
6799 EOF 6892 EOF
6800 } 6893 }
6801 6894
6802 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6895 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6803 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6896 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6804 echo "configure:6805: checking for \"FOR_MSW\" xpm" >&5 6897 echo "configure:6898: checking for \"FOR_MSW\" xpm" >&5
6805 xe_check_libs=-lXpm 6898 xe_check_libs=-lXpm
6806 cat > conftest.$ac_ext <<EOF 6899 cat > conftest.$ac_ext <<EOF
6807 #line 6808 "configure" 6900 #line 6901 "configure"
6808 #include "confdefs.h" 6901 #include "confdefs.h"
6809 6902
6810 int main() { 6903 int main() {
6811 XpmCreatePixmapFromData() 6904 XpmCreatePixmapFromData()
6812 ; return 0; } 6905 ; return 0; }
6813 EOF 6906 EOF
6814 if { (eval echo configure:6815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6907 if { (eval echo configure:6908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6815 rm -rf conftest* 6908 rm -rf conftest*
6816 xpm_for_msw=no 6909 xpm_for_msw=no
6817 else 6910 else
6818 echo "configure: failed program was:" >&5 6911 echo "configure: failed program was:" >&5
6819 cat conftest.$ac_ext >&5 6912 cat conftest.$ac_ext >&5
6835 fi 6928 fi
6836 fi 6929 fi
6837 6930
6838 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6931 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6839 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6932 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6840 echo "configure:6841: checking for compface.h" >&5 6933 echo "configure:6934: checking for compface.h" >&5
6841 6934
6842 cat > conftest.$ac_ext <<EOF 6935 cat > conftest.$ac_ext <<EOF
6843 #line 6844 "configure" 6936 #line 6937 "configure"
6844 #include "confdefs.h" 6937 #include "confdefs.h"
6845 #include <compface.h> 6938 #include <compface.h>
6846 EOF 6939 EOF
6847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6848 { (eval echo configure:6849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6941 { (eval echo configure:6942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6850 if test -z "$ac_err"; then 6943 if test -z "$ac_err"; then
6851 rm -rf conftest* 6944 rm -rf conftest*
6852 eval "ac_cv_header_$ac_safe=yes" 6945 eval "ac_cv_header_$ac_safe=yes"
6853 else 6946 else
6866 with_xface=no 6959 with_xface=no
6867 fi 6960 fi
6868 } 6961 }
6869 test -z "$with_xface" && { 6962 test -z "$with_xface" && {
6870 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6963 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6871 echo "configure:6872: checking for UnGenFace in -lcompface" >&5 6964 echo "configure:6965: checking for UnGenFace in -lcompface" >&5
6872 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6965 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6873 6966
6874 xe_check_libs=" -lcompface " 6967 xe_check_libs=" -lcompface "
6875 cat > conftest.$ac_ext <<EOF 6968 cat > conftest.$ac_ext <<EOF
6876 #line 6877 "configure" 6969 #line 6970 "configure"
6877 #include "confdefs.h" 6970 #include "confdefs.h"
6878 /* Override any gcc2 internal prototype to avoid an error. */ 6971 /* Override any gcc2 internal prototype to avoid an error. */
6879 /* We use char because int might match the return type of a gcc2 6972 /* We use char because int might match the return type of a gcc2
6880 builtin and then its argument prototype would still apply. */ 6973 builtin and then its argument prototype would still apply. */
6881 char UnGenFace(); 6974 char UnGenFace();
6882 6975
6883 int main() { 6976 int main() {
6884 UnGenFace() 6977 UnGenFace()
6885 ; return 0; } 6978 ; return 0; }
6886 EOF 6979 EOF
6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6980 if { (eval echo configure:6981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6888 rm -rf conftest* 6981 rm -rf conftest*
6889 eval "ac_cv_lib_$ac_lib_var=yes" 6982 eval "ac_cv_lib_$ac_lib_var=yes"
6890 else 6983 else
6891 echo "configure: failed program was:" >&5 6984 echo "configure: failed program was:" >&5
6892 cat conftest.$ac_ext >&5 6985 cat conftest.$ac_ext >&5
6934 fi 7027 fi
6935 7028
6936 if test "$with_png $with_tiff" != "no no"; then 7029 if test "$with_png $with_tiff" != "no no"; then
6937 7030
6938 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 7031 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6939 echo "configure:6940: checking for inflate in -lc" >&5 7032 echo "configure:7033: checking for inflate in -lc" >&5
6940 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 7033 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6941 7034
6942 xe_check_libs=" -lc " 7035 xe_check_libs=" -lc "
6943 cat > conftest.$ac_ext <<EOF 7036 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure" 7037 #line 7038 "configure"
6945 #include "confdefs.h" 7038 #include "confdefs.h"
6946 /* Override any gcc2 internal prototype to avoid an error. */ 7039 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2 7040 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */ 7041 builtin and then its argument prototype would still apply. */
6949 char inflate(); 7042 char inflate();
6950 7043
6951 int main() { 7044 int main() {
6952 inflate() 7045 inflate()
6953 ; return 0; } 7046 ; return 0; }
6954 EOF 7047 EOF
6955 if { (eval echo configure:6956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6956 rm -rf conftest* 7049 rm -rf conftest*
6957 eval "ac_cv_lib_$ac_lib_var=yes" 7050 eval "ac_cv_lib_$ac_lib_var=yes"
6958 else 7051 else
6959 echo "configure: failed program was:" >&5 7052 echo "configure: failed program was:" >&5
6960 cat conftest.$ac_ext >&5 7053 cat conftest.$ac_ext >&5
6969 : 7062 :
6970 else 7063 else
6971 echo "$ac_t""no" 1>&6 7064 echo "$ac_t""no" 1>&6
6972 7065
6973 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 7066 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6974 echo "configure:6975: checking for inflate in -lz" >&5 7067 echo "configure:7068: checking for inflate in -lz" >&5
6975 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 7068 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6976 7069
6977 xe_check_libs=" -lz " 7070 xe_check_libs=" -lz "
6978 cat > conftest.$ac_ext <<EOF 7071 cat > conftest.$ac_ext <<EOF
6979 #line 6980 "configure" 7072 #line 7073 "configure"
6980 #include "confdefs.h" 7073 #include "confdefs.h"
6981 /* Override any gcc2 internal prototype to avoid an error. */ 7074 /* Override any gcc2 internal prototype to avoid an error. */
6982 /* We use char because int might match the return type of a gcc2 7075 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */ 7076 builtin and then its argument prototype would still apply. */
6984 char inflate(); 7077 char inflate();
6985 7078
6986 int main() { 7079 int main() {
6987 inflate() 7080 inflate()
6988 ; return 0; } 7081 ; return 0; }
6989 EOF 7082 EOF
6990 if { (eval echo configure:6991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7083 if { (eval echo configure:7084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6991 rm -rf conftest* 7084 rm -rf conftest*
6992 eval "ac_cv_lib_$ac_lib_var=yes" 7085 eval "ac_cv_lib_$ac_lib_var=yes"
6993 else 7086 else
6994 echo "configure: failed program was:" >&5 7087 echo "configure: failed program was:" >&5
6995 cat conftest.$ac_ext >&5 7088 cat conftest.$ac_ext >&5
7004 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 7097 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
7005 else 7098 else
7006 echo "$ac_t""no" 1>&6 7099 echo "$ac_t""no" 1>&6
7007 7100
7008 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 7101 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
7009 echo "configure:7010: checking for inflate in -lgz" >&5 7102 echo "configure:7103: checking for inflate in -lgz" >&5
7010 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 7103 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
7011 7104
7012 xe_check_libs=" -lgz " 7105 xe_check_libs=" -lgz "
7013 cat > conftest.$ac_ext <<EOF 7106 cat > conftest.$ac_ext <<EOF
7014 #line 7015 "configure" 7107 #line 7108 "configure"
7015 #include "confdefs.h" 7108 #include "confdefs.h"
7016 /* Override any gcc2 internal prototype to avoid an error. */ 7109 /* Override any gcc2 internal prototype to avoid an error. */
7017 /* We use char because int might match the return type of a gcc2 7110 /* We use char because int might match the return type of a gcc2
7018 builtin and then its argument prototype would still apply. */ 7111 builtin and then its argument prototype would still apply. */
7019 char inflate(); 7112 char inflate();
7020 7113
7021 int main() { 7114 int main() {
7022 inflate() 7115 inflate()
7023 ; return 0; } 7116 ; return 0; }
7024 EOF 7117 EOF
7025 if { (eval echo configure:7026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7118 if { (eval echo configure:7119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7026 rm -rf conftest* 7119 rm -rf conftest*
7027 eval "ac_cv_lib_$ac_lib_var=yes" 7120 eval "ac_cv_lib_$ac_lib_var=yes"
7028 else 7121 else
7029 echo "configure: failed program was:" >&5 7122 echo "configure: failed program was:" >&5
7030 cat conftest.$ac_ext >&5 7123 cat conftest.$ac_ext >&5
7050 7143
7051 fi 7144 fi
7052 7145
7053 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 7146 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
7054 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 7147 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
7055 echo "configure:7056: checking for jpeglib.h" >&5 7148 echo "configure:7149: checking for jpeglib.h" >&5
7056 7149
7057 cat > conftest.$ac_ext <<EOF 7150 cat > conftest.$ac_ext <<EOF
7058 #line 7059 "configure" 7151 #line 7152 "configure"
7059 #include "confdefs.h" 7152 #include "confdefs.h"
7060 #include <jpeglib.h> 7153 #include <jpeglib.h>
7061 EOF 7154 EOF
7062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7063 { (eval echo configure:7064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7156 { (eval echo configure:7157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7065 if test -z "$ac_err"; then 7158 if test -z "$ac_err"; then
7066 rm -rf conftest* 7159 rm -rf conftest*
7067 eval "ac_cv_header_$ac_safe=yes" 7160 eval "ac_cv_header_$ac_safe=yes"
7068 else 7161 else
7081 with_jpeg=no 7174 with_jpeg=no
7082 fi 7175 fi
7083 } 7176 }
7084 test -z "$with_jpeg" && { 7177 test -z "$with_jpeg" && {
7085 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 7178 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
7086 echo "configure:7087: checking for jpeg_destroy_decompress in -ljpeg" >&5 7179 echo "configure:7180: checking for jpeg_destroy_decompress in -ljpeg" >&5
7087 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 7180 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
7088 7181
7089 xe_check_libs=" -ljpeg " 7182 xe_check_libs=" -ljpeg "
7090 cat > conftest.$ac_ext <<EOF 7183 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure" 7184 #line 7185 "configure"
7092 #include "confdefs.h" 7185 #include "confdefs.h"
7093 /* Override any gcc2 internal prototype to avoid an error. */ 7186 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2 7187 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */ 7188 builtin and then its argument prototype would still apply. */
7096 char jpeg_destroy_decompress(); 7189 char jpeg_destroy_decompress();
7097 7190
7098 int main() { 7191 int main() {
7099 jpeg_destroy_decompress() 7192 jpeg_destroy_decompress()
7100 ; return 0; } 7193 ; return 0; }
7101 EOF 7194 EOF
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7195 if { (eval echo configure:7196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7103 rm -rf conftest* 7196 rm -rf conftest*
7104 eval "ac_cv_lib_$ac_lib_var=yes" 7197 eval "ac_cv_lib_$ac_lib_var=yes"
7105 else 7198 else
7106 echo "configure: failed program was:" >&5 7199 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5 7200 cat conftest.$ac_ext >&5
7133 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7226 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
7134 fi 7227 fi
7135 7228
7136 png_problem="" 7229 png_problem=""
7137 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7230 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
7138 echo "configure:7139: checking for pow" >&5 7231 echo "configure:7232: checking for pow" >&5
7139 7232
7140 cat > conftest.$ac_ext <<EOF 7233 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure" 7234 #line 7235 "configure"
7142 #include "confdefs.h" 7235 #include "confdefs.h"
7143 /* System header to define __stub macros and hopefully few prototypes, 7236 /* System header to define __stub macros and hopefully few prototypes,
7144 which can conflict with char pow(); below. */ 7237 which can conflict with char pow(); below. */
7145 #include <assert.h> 7238 #include <assert.h>
7146 /* Override any gcc2 internal prototype to avoid an error. */ 7239 /* Override any gcc2 internal prototype to avoid an error. */
7159 pow(); 7252 pow();
7160 #endif 7253 #endif
7161 7254
7162 ; return 0; } 7255 ; return 0; }
7163 EOF 7256 EOF
7164 if { (eval echo configure:7165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7257 if { (eval echo configure:7258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7165 rm -rf conftest* 7258 rm -rf conftest*
7166 eval "ac_cv_func_pow=yes" 7259 eval "ac_cv_func_pow=yes"
7167 else 7260 else
7168 echo "configure: failed program was:" >&5 7261 echo "configure: failed program was:" >&5
7169 cat conftest.$ac_ext >&5 7262 cat conftest.$ac_ext >&5
7180 with_png=no 7273 with_png=no
7181 fi 7274 fi
7182 } 7275 }
7183 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7276 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
7184 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7277 echo $ac_n "checking for png.h""... $ac_c" 1>&6
7185 echo "configure:7186: checking for png.h" >&5 7278 echo "configure:7279: checking for png.h" >&5
7186 7279
7187 cat > conftest.$ac_ext <<EOF 7280 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure" 7281 #line 7282 "configure"
7189 #include "confdefs.h" 7282 #include "confdefs.h"
7190 #include <png.h> 7283 #include <png.h>
7191 EOF 7284 EOF
7192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7193 { (eval echo configure:7194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7286 { (eval echo configure:7287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7194 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7195 if test -z "$ac_err"; then 7288 if test -z "$ac_err"; then
7196 rm -rf conftest* 7289 rm -rf conftest*
7197 eval "ac_cv_header_$ac_safe=yes" 7290 eval "ac_cv_header_$ac_safe=yes"
7198 else 7291 else
7211 with_png=no 7304 with_png=no
7212 fi 7305 fi
7213 } 7306 }
7214 test -z "$with_png" && { 7307 test -z "$with_png" && {
7215 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7308 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
7216 echo "configure:7217: checking for png_read_image in -lpng" >&5 7309 echo "configure:7310: checking for png_read_image in -lpng" >&5
7217 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7310 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
7218 7311
7219 xe_check_libs=" -lpng " 7312 xe_check_libs=" -lpng "
7220 cat > conftest.$ac_ext <<EOF 7313 cat > conftest.$ac_ext <<EOF
7221 #line 7222 "configure" 7314 #line 7315 "configure"
7222 #include "confdefs.h" 7315 #include "confdefs.h"
7223 /* Override any gcc2 internal prototype to avoid an error. */ 7316 /* Override any gcc2 internal prototype to avoid an error. */
7224 /* We use char because int might match the return type of a gcc2 7317 /* We use char because int might match the return type of a gcc2
7225 builtin and then its argument prototype would still apply. */ 7318 builtin and then its argument prototype would still apply. */
7226 char png_read_image(); 7319 char png_read_image();
7227 7320
7228 int main() { 7321 int main() {
7229 png_read_image() 7322 png_read_image()
7230 ; return 0; } 7323 ; return 0; }
7231 EOF 7324 EOF
7232 if { (eval echo configure:7233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7325 if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7233 rm -rf conftest* 7326 rm -rf conftest*
7234 eval "ac_cv_lib_$ac_lib_var=yes" 7327 eval "ac_cv_lib_$ac_lib_var=yes"
7235 else 7328 else
7236 echo "configure: failed program was:" >&5 7329 echo "configure: failed program was:" >&5
7237 cat conftest.$ac_ext >&5 7330 cat conftest.$ac_ext >&5
7250 fi 7343 fi
7251 7344
7252 } 7345 }
7253 if test -z "$with_png"; then 7346 if test -z "$with_png"; then
7254 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7347 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
7255 echo "configure:7256: checking for workable png version information" >&5 7348 echo "configure:7349: checking for workable png version information" >&5
7256 xe_check_libs="-lpng -lz" 7349 xe_check_libs="-lpng -lz"
7257 cat > conftest.$ac_ext <<EOF 7350 cat > conftest.$ac_ext <<EOF
7258 #line 7259 "configure" 7351 #line 7352 "configure"
7259 #include "confdefs.h" 7352 #include "confdefs.h"
7260 #include <png.h> 7353 #include <png.h>
7261 int main(int c, char **v) { 7354 int main(int c, char **v) {
7262 if (c == 1) return 0; 7355 if (c == 1) return 0;
7263 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7356 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
7264 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7357 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
7265 EOF 7358 EOF
7266 if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7267 then 7360 then
7268 ./conftest dummy_arg; png_status=$?; 7361 ./conftest dummy_arg; png_status=$?;
7269 if test "$png_status" = "0"; then 7362 if test "$png_status" = "0"; then
7270 with_png=yes; 7363 with_png=yes;
7271 else 7364 else
7304 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7397 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7305 fi 7398 fi
7306 7399
7307 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7400 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7308 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7401 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7309 echo "configure:7310: checking for tiffio.h" >&5 7402 echo "configure:7403: checking for tiffio.h" >&5
7310 7403
7311 cat > conftest.$ac_ext <<EOF 7404 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure" 7405 #line 7406 "configure"
7313 #include "confdefs.h" 7406 #include "confdefs.h"
7314 #include <tiffio.h> 7407 #include <tiffio.h>
7315 EOF 7408 EOF
7316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7409 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7317 { (eval echo configure:7318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7410 { (eval echo configure:7411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7411 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7319 if test -z "$ac_err"; then 7412 if test -z "$ac_err"; then
7320 rm -rf conftest* 7413 rm -rf conftest*
7321 eval "ac_cv_header_$ac_safe=yes" 7414 eval "ac_cv_header_$ac_safe=yes"
7322 else 7415 else
7335 with_tiff=no 7428 with_tiff=no
7336 fi 7429 fi
7337 } 7430 }
7338 test -z "$with_tiff" && { 7431 test -z "$with_tiff" && {
7339 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7432 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7340 echo "configure:7341: checking for TIFFClientOpen in -ltiff" >&5 7433 echo "configure:7434: checking for TIFFClientOpen in -ltiff" >&5
7341 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7434 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7342 7435
7343 xe_check_libs=" -ltiff " 7436 xe_check_libs=" -ltiff "
7344 cat > conftest.$ac_ext <<EOF 7437 cat > conftest.$ac_ext <<EOF
7345 #line 7346 "configure" 7438 #line 7439 "configure"
7346 #include "confdefs.h" 7439 #include "confdefs.h"
7347 /* Override any gcc2 internal prototype to avoid an error. */ 7440 /* Override any gcc2 internal prototype to avoid an error. */
7348 /* We use char because int might match the return type of a gcc2 7441 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */ 7442 builtin and then its argument prototype would still apply. */
7350 char TIFFClientOpen(); 7443 char TIFFClientOpen();
7351 7444
7352 int main() { 7445 int main() {
7353 TIFFClientOpen() 7446 TIFFClientOpen()
7354 ; return 0; } 7447 ; return 0; }
7355 EOF 7448 EOF
7356 if { (eval echo configure:7357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7357 rm -rf conftest* 7450 rm -rf conftest*
7358 eval "ac_cv_lib_$ac_lib_var=yes" 7451 eval "ac_cv_lib_$ac_lib_var=yes"
7359 else 7452 else
7360 echo "configure: failed program was:" >&5 7453 echo "configure: failed program was:" >&5
7361 cat conftest.$ac_ext >&5 7454 cat conftest.$ac_ext >&5
7390 7483
7391 7484
7392 if test "$with_x11" = "yes"; then 7485 if test "$with_x11" = "yes"; then
7393 7486
7394 echo "checking for X11 graphics libraries" 1>&6 7487 echo "checking for X11 graphics libraries" 1>&6
7395 echo "configure:7396: checking for X11 graphics libraries" >&5 7488 echo "configure:7489: checking for X11 graphics libraries" >&5
7396 7489
7397 7490
7398 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7491 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7399 echo "configure:7400: checking for XawScrollbarSetThumb in -lXaw" >&5 7492 echo "configure:7493: checking for XawScrollbarSetThumb in -lXaw" >&5
7400 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7493 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7401 7494
7402 xe_check_libs=" -lXaw " 7495 xe_check_libs=" -lXaw "
7403 cat > conftest.$ac_ext <<EOF 7496 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure" 7497 #line 7498 "configure"
7405 #include "confdefs.h" 7498 #include "confdefs.h"
7406 /* Override any gcc2 internal prototype to avoid an error. */ 7499 /* Override any gcc2 internal prototype to avoid an error. */
7407 /* We use char because int might match the return type of a gcc2 7500 /* We use char because int might match the return type of a gcc2
7408 builtin and then its argument prototype would still apply. */ 7501 builtin and then its argument prototype would still apply. */
7409 char XawScrollbarSetThumb(); 7502 char XawScrollbarSetThumb();
7410 7503
7411 int main() { 7504 int main() {
7412 XawScrollbarSetThumb() 7505 XawScrollbarSetThumb()
7413 ; return 0; } 7506 ; return 0; }
7414 EOF 7507 EOF
7415 if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7508 if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7416 rm -rf conftest* 7509 rm -rf conftest*
7417 eval "ac_cv_lib_$ac_lib_var=yes" 7510 eval "ac_cv_lib_$ac_lib_var=yes"
7418 else 7511 else
7419 echo "configure: failed program was:" >&5 7512 echo "configure: failed program was:" >&5
7420 cat conftest.$ac_ext >&5 7513 cat conftest.$ac_ext >&5
7434 7527
7435 7528
7436 7529
7437 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7530 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7438 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7531 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7439 echo "configure:7440: checking for Xm/Xm.h" >&5 7532 echo "configure:7533: checking for Xm/Xm.h" >&5
7440 7533
7441 cat > conftest.$ac_ext <<EOF 7534 cat > conftest.$ac_ext <<EOF
7442 #line 7443 "configure" 7535 #line 7536 "configure"
7443 #include "confdefs.h" 7536 #include "confdefs.h"
7444 #include <Xm/Xm.h> 7537 #include <Xm/Xm.h>
7445 EOF 7538 EOF
7446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7447 { (eval echo configure:7448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7540 { (eval echo configure:7541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7449 if test -z "$ac_err"; then 7542 if test -z "$ac_err"; then
7450 rm -rf conftest* 7543 rm -rf conftest*
7451 eval "ac_cv_header_$ac_safe=yes" 7544 eval "ac_cv_header_$ac_safe=yes"
7452 else 7545 else
7459 rm -f conftest* 7552 rm -f conftest*
7460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7461 echo "$ac_t""yes" 1>&6 7554 echo "$ac_t""yes" 1>&6
7462 7555
7463 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7556 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7464 echo "configure:7465: checking for XmStringFree in -lXm" >&5 7557 echo "configure:7558: checking for XmStringFree in -lXm" >&5
7465 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7558 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7466 7559
7467 xe_check_libs=" -lXm " 7560 xe_check_libs=" -lXm "
7468 cat > conftest.$ac_ext <<EOF 7561 cat > conftest.$ac_ext <<EOF
7469 #line 7470 "configure" 7562 #line 7563 "configure"
7470 #include "confdefs.h" 7563 #include "confdefs.h"
7471 /* Override any gcc2 internal prototype to avoid an error. */ 7564 /* Override any gcc2 internal prototype to avoid an error. */
7472 /* We use char because int might match the return type of a gcc2 7565 /* We use char because int might match the return type of a gcc2
7473 builtin and then its argument prototype would still apply. */ 7566 builtin and then its argument prototype would still apply. */
7474 char XmStringFree(); 7567 char XmStringFree();
7475 7568
7476 int main() { 7569 int main() {
7477 XmStringFree() 7570 XmStringFree()
7478 ; return 0; } 7571 ; return 0; }
7479 EOF 7572 EOF
7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7573 if { (eval echo configure:7574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7481 rm -rf conftest* 7574 rm -rf conftest*
7482 eval "ac_cv_lib_$ac_lib_var=yes" 7575 eval "ac_cv_lib_$ac_lib_var=yes"
7483 else 7576 else
7484 echo "configure: failed program was:" >&5 7577 echo "configure: failed program was:" >&5
7485 cat conftest.$ac_ext >&5 7578 cat conftest.$ac_ext >&5
7504 fi 7597 fi
7505 7598
7506 7599
7507 if test "$have_motif" = "yes"; then 7600 if test "$have_motif" = "yes"; then
7508 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7601 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7509 echo "configure:7510: checking for Lesstif" >&5 7602 echo "configure:7603: checking for Lesstif" >&5
7510 cat > conftest.$ac_ext <<EOF 7603 cat > conftest.$ac_ext <<EOF
7511 #line 7512 "configure" 7604 #line 7605 "configure"
7512 #include "confdefs.h" 7605 #include "confdefs.h"
7513 #include <Xm/Xm.h> 7606 #include <Xm/Xm.h>
7514 #ifdef LESSTIF_VERSION 7607 #ifdef LESSTIF_VERSION
7515 yes 7608 yes
7516 #endif 7609 #endif
7774 fi 7867 fi
7775 fi 7868 fi
7776 7869
7777 if test "$with_mule" = "yes" ; then 7870 if test "$with_mule" = "yes" ; then
7778 echo "checking for Mule-related features" 1>&6 7871 echo "checking for Mule-related features" 1>&6
7779 echo "configure:7780: checking for Mule-related features" >&5 7872 echo "configure:7873: checking for Mule-related features" >&5
7780 { test "$extra_verbose" = "yes" && cat << \EOF 7873 { test "$extra_verbose" = "yes" && cat << \EOF
7781 Defining MULE 7874 Defining MULE
7782 EOF 7875 EOF
7783 cat >> confdefs.h <<\EOF 7876 cat >> confdefs.h <<\EOF
7784 #define MULE 1 7877 #define MULE 1
7799 7892
7800 for ac_hdr in libintl.h 7893 for ac_hdr in libintl.h
7801 do 7894 do
7802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7804 echo "configure:7805: checking for $ac_hdr" >&5 7897 echo "configure:7898: checking for $ac_hdr" >&5
7805 7898
7806 cat > conftest.$ac_ext <<EOF 7899 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure" 7900 #line 7901 "configure"
7808 #include "confdefs.h" 7901 #include "confdefs.h"
7809 #include <$ac_hdr> 7902 #include <$ac_hdr>
7810 EOF 7903 EOF
7811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7812 { (eval echo configure:7813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7905 { (eval echo configure:7906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7814 if test -z "$ac_err"; then 7907 if test -z "$ac_err"; then
7815 rm -rf conftest* 7908 rm -rf conftest*
7816 eval "ac_cv_header_$ac_safe=yes" 7909 eval "ac_cv_header_$ac_safe=yes"
7817 else 7910 else
7838 fi 7931 fi
7839 done 7932 done
7840 7933
7841 7934
7842 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7935 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7843 echo "configure:7844: checking for strerror in -lintl" >&5 7936 echo "configure:7937: checking for strerror in -lintl" >&5
7844 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7937 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7845 7938
7846 xe_check_libs=" -lintl " 7939 xe_check_libs=" -lintl "
7847 cat > conftest.$ac_ext <<EOF 7940 cat > conftest.$ac_ext <<EOF
7848 #line 7849 "configure" 7941 #line 7942 "configure"
7849 #include "confdefs.h" 7942 #include "confdefs.h"
7850 /* Override any gcc2 internal prototype to avoid an error. */ 7943 /* Override any gcc2 internal prototype to avoid an error. */
7851 /* We use char because int might match the return type of a gcc2 7944 /* We use char because int might match the return type of a gcc2
7852 builtin and then its argument prototype would still apply. */ 7945 builtin and then its argument prototype would still apply. */
7853 char strerror(); 7946 char strerror();
7854 7947
7855 int main() { 7948 int main() {
7856 strerror() 7949 strerror()
7857 ; return 0; } 7950 ; return 0; }
7858 EOF 7951 EOF
7859 if { (eval echo configure:7860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7952 if { (eval echo configure:7953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7860 rm -rf conftest* 7953 rm -rf conftest*
7861 eval "ac_cv_lib_$ac_lib_var=yes" 7954 eval "ac_cv_lib_$ac_lib_var=yes"
7862 else 7955 else
7863 echo "configure: failed program was:" >&5 7956 echo "configure: failed program was:" >&5
7864 cat conftest.$ac_ext >&5 7957 cat conftest.$ac_ext >&5
7887 fi 7980 fi
7888 7981
7889 7982
7890 7983
7891 echo "checking for Mule input methods" 1>&6 7984 echo "checking for Mule input methods" 1>&6
7892 echo "configure:7893: checking for Mule input methods" >&5 7985 echo "configure:7986: checking for Mule input methods" >&5
7893 case "$with_xim" in "" | "yes" ) 7986 case "$with_xim" in "" | "yes" )
7894 echo "checking for XIM" 1>&6 7987 echo "checking for XIM" 1>&6
7895 echo "configure:7896: checking for XIM" >&5 7988 echo "configure:7989: checking for XIM" >&5
7896 7989
7897 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 7990 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7898 echo "configure:7899: checking for XOpenIM in -lX11" >&5 7991 echo "configure:7992: checking for XOpenIM in -lX11" >&5
7899 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 7992 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7900 7993
7901 xe_check_libs=" -lX11 " 7994 xe_check_libs=" -lX11 "
7902 cat > conftest.$ac_ext <<EOF 7995 cat > conftest.$ac_ext <<EOF
7903 #line 7904 "configure" 7996 #line 7997 "configure"
7904 #include "confdefs.h" 7997 #include "confdefs.h"
7905 /* Override any gcc2 internal prototype to avoid an error. */ 7998 /* Override any gcc2 internal prototype to avoid an error. */
7906 /* We use char because int might match the return type of a gcc2 7999 /* We use char because int might match the return type of a gcc2
7907 builtin and then its argument prototype would still apply. */ 8000 builtin and then its argument prototype would still apply. */
7908 char XOpenIM(); 8001 char XOpenIM();
7909 8002
7910 int main() { 8003 int main() {
7911 XOpenIM() 8004 XOpenIM()
7912 ; return 0; } 8005 ; return 0; }
7913 EOF 8006 EOF
7914 if { (eval echo configure:7915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7915 rm -rf conftest* 8008 rm -rf conftest*
7916 eval "ac_cv_lib_$ac_lib_var=yes" 8009 eval "ac_cv_lib_$ac_lib_var=yes"
7917 else 8010 else
7918 echo "configure: failed program was:" >&5 8011 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5 8012 cat conftest.$ac_ext >&5
7933 8026
7934 8027
7935 if test "$have_motif $have_lesstif" = "yes no"; then 8028 if test "$have_motif $have_lesstif" = "yes no"; then
7936 8029
7937 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 8030 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7938 echo "configure:7939: checking for XmImMbLookupString in -lXm" >&5 8031 echo "configure:8032: checking for XmImMbLookupString in -lXm" >&5
7939 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 8032 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7940 8033
7941 xe_check_libs=" -lXm " 8034 xe_check_libs=" -lXm "
7942 cat > conftest.$ac_ext <<EOF 8035 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure" 8036 #line 8037 "configure"
7944 #include "confdefs.h" 8037 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */ 8038 /* Override any gcc2 internal prototype to avoid an error. */
7946 /* We use char because int might match the return type of a gcc2 8039 /* We use char because int might match the return type of a gcc2
7947 builtin and then its argument prototype would still apply. */ 8040 builtin and then its argument prototype would still apply. */
7948 char XmImMbLookupString(); 8041 char XmImMbLookupString();
7949 8042
7950 int main() { 8043 int main() {
7951 XmImMbLookupString() 8044 XmImMbLookupString()
7952 ; return 0; } 8045 ; return 0; }
7953 EOF 8046 EOF
7954 if { (eval echo configure:7955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8047 if { (eval echo configure:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7955 rm -rf conftest* 8048 rm -rf conftest*
7956 eval "ac_cv_lib_$ac_lib_var=yes" 8049 eval "ac_cv_lib_$ac_lib_var=yes"
7957 else 8050 else
7958 echo "configure: failed program was:" >&5 8051 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5 8052 cat conftest.$ac_ext >&5
8014 fi 8107 fi
8015 fi 8108 fi
8016 8109
8017 if test "$with_xfs" = "yes" ; then 8110 if test "$with_xfs" = "yes" ; then
8018 echo "checking for XFontSet" 1>&6 8111 echo "checking for XFontSet" 1>&6
8019 echo "configure:8020: checking for XFontSet" >&5 8112 echo "configure:8113: checking for XFontSet" >&5
8020 8113
8021 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8114 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
8022 echo "configure:8023: checking for XmbDrawString in -lX11" >&5 8115 echo "configure:8116: checking for XmbDrawString in -lX11" >&5
8023 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8116 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
8024 8117
8025 xe_check_libs=" -lX11 " 8118 xe_check_libs=" -lX11 "
8026 cat > conftest.$ac_ext <<EOF 8119 cat > conftest.$ac_ext <<EOF
8027 #line 8028 "configure" 8120 #line 8121 "configure"
8028 #include "confdefs.h" 8121 #include "confdefs.h"
8029 /* Override any gcc2 internal prototype to avoid an error. */ 8122 /* Override any gcc2 internal prototype to avoid an error. */
8030 /* We use char because int might match the return type of a gcc2 8123 /* We use char because int might match the return type of a gcc2
8031 builtin and then its argument prototype would still apply. */ 8124 builtin and then its argument prototype would still apply. */
8032 char XmbDrawString(); 8125 char XmbDrawString();
8033 8126
8034 int main() { 8127 int main() {
8035 XmbDrawString() 8128 XmbDrawString()
8036 ; return 0; } 8129 ; return 0; }
8037 EOF 8130 EOF
8038 if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8131 if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8039 rm -rf conftest* 8132 rm -rf conftest*
8040 eval "ac_cv_lib_$ac_lib_var=yes" 8133 eval "ac_cv_lib_$ac_lib_var=yes"
8041 else 8134 else
8042 echo "configure: failed program was:" >&5 8135 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5 8136 cat conftest.$ac_ext >&5
8073 fi 8166 fi
8074 fi 8167 fi
8075 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 8168 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
8076 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 8169 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
8077 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 8170 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
8078 echo "configure:8079: checking for wnn/jllib.h" >&5 8171 echo "configure:8172: checking for wnn/jllib.h" >&5
8079 8172
8080 cat > conftest.$ac_ext <<EOF 8173 cat > conftest.$ac_ext <<EOF
8081 #line 8082 "configure" 8174 #line 8175 "configure"
8082 #include "confdefs.h" 8175 #include "confdefs.h"
8083 #include <wnn/jllib.h> 8176 #include <wnn/jllib.h>
8084 EOF 8177 EOF
8085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8086 { (eval echo configure:8087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8179 { (eval echo configure:8180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8088 if test -z "$ac_err"; then 8181 if test -z "$ac_err"; then
8089 rm -rf conftest* 8182 rm -rf conftest*
8090 eval "ac_cv_header_$ac_safe=yes" 8183 eval "ac_cv_header_$ac_safe=yes"
8091 else 8184 else
8106 } 8199 }
8107 if test "$with_wnn" != "no"; then 8200 if test "$with_wnn" != "no"; then
8108 for ac_func in crypt 8201 for ac_func in crypt
8109 do 8202 do
8110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8203 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8111 echo "configure:8112: checking for $ac_func" >&5 8204 echo "configure:8205: checking for $ac_func" >&5
8112 8205
8113 cat > conftest.$ac_ext <<EOF 8206 cat > conftest.$ac_ext <<EOF
8114 #line 8115 "configure" 8207 #line 8208 "configure"
8115 #include "confdefs.h" 8208 #include "confdefs.h"
8116 /* System header to define __stub macros and hopefully few prototypes, 8209 /* System header to define __stub macros and hopefully few prototypes,
8117 which can conflict with char $ac_func(); below. */ 8210 which can conflict with char $ac_func(); below. */
8118 #include <assert.h> 8211 #include <assert.h>
8119 /* Override any gcc2 internal prototype to avoid an error. */ 8212 /* Override any gcc2 internal prototype to avoid an error. */
8132 $ac_func(); 8225 $ac_func();
8133 #endif 8226 #endif
8134 8227
8135 ; return 0; } 8228 ; return 0; }
8136 EOF 8229 EOF
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8230 if { (eval echo configure:8231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8138 rm -rf conftest* 8231 rm -rf conftest*
8139 eval "ac_cv_func_$ac_func=yes" 8232 eval "ac_cv_func_$ac_func=yes"
8140 else 8233 else
8141 echo "configure: failed program was:" >&5 8234 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5 8235 cat conftest.$ac_ext >&5
8161 fi 8254 fi
8162 done 8255 done
8163 8256
8164 test "$ac_cv_func_crypt" != "yes" && { 8257 test "$ac_cv_func_crypt" != "yes" && {
8165 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 8258 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
8166 echo "configure:8167: checking for crypt in -lcrypt" >&5 8259 echo "configure:8260: checking for crypt in -lcrypt" >&5
8167 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 8260 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
8168 8261
8169 xe_check_libs=" -lcrypt " 8262 xe_check_libs=" -lcrypt "
8170 cat > conftest.$ac_ext <<EOF 8263 cat > conftest.$ac_ext <<EOF
8171 #line 8172 "configure" 8264 #line 8265 "configure"
8172 #include "confdefs.h" 8265 #include "confdefs.h"
8173 /* Override any gcc2 internal prototype to avoid an error. */ 8266 /* Override any gcc2 internal prototype to avoid an error. */
8174 /* We use char because int might match the return type of a gcc2 8267 /* We use char because int might match the return type of a gcc2
8175 builtin and then its argument prototype would still apply. */ 8268 builtin and then its argument prototype would still apply. */
8176 char crypt(); 8269 char crypt();
8177 8270
8178 int main() { 8271 int main() {
8179 crypt() 8272 crypt()
8180 ; return 0; } 8273 ; return 0; }
8181 EOF 8274 EOF
8182 if { (eval echo configure:8183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8183 rm -rf conftest* 8276 rm -rf conftest*
8184 eval "ac_cv_lib_$ac_lib_var=yes" 8277 eval "ac_cv_lib_$ac_lib_var=yes"
8185 else 8278 else
8186 echo "configure: failed program was:" >&5 8279 echo "configure: failed program was:" >&5
8187 cat conftest.$ac_ext >&5 8280 cat conftest.$ac_ext >&5
8212 } 8305 }
8213 fi 8306 fi
8214 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 8307 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8215 8308
8216 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 8309 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8217 echo "configure:8218: checking for jl_dic_list_e in -lwnn" >&5 8310 echo "configure:8311: checking for jl_dic_list_e in -lwnn" >&5
8218 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8311 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8219 8312
8220 xe_check_libs=" -lwnn " 8313 xe_check_libs=" -lwnn "
8221 cat > conftest.$ac_ext <<EOF 8314 cat > conftest.$ac_ext <<EOF
8222 #line 8223 "configure" 8315 #line 8316 "configure"
8223 #include "confdefs.h" 8316 #include "confdefs.h"
8224 /* Override any gcc2 internal prototype to avoid an error. */ 8317 /* Override any gcc2 internal prototype to avoid an error. */
8225 /* We use char because int might match the return type of a gcc2 8318 /* We use char because int might match the return type of a gcc2
8226 builtin and then its argument prototype would still apply. */ 8319 builtin and then its argument prototype would still apply. */
8227 char jl_dic_list_e(); 8320 char jl_dic_list_e();
8228 8321
8229 int main() { 8322 int main() {
8230 jl_dic_list_e() 8323 jl_dic_list_e()
8231 ; return 0; } 8324 ; return 0; }
8232 EOF 8325 EOF
8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8326 if { (eval echo configure:8327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8234 rm -rf conftest* 8327 rm -rf conftest*
8235 eval "ac_cv_lib_$ac_lib_var=yes" 8328 eval "ac_cv_lib_$ac_lib_var=yes"
8236 else 8329 else
8237 echo "configure: failed program was:" >&5 8330 echo "configure: failed program was:" >&5
8238 cat conftest.$ac_ext >&5 8331 cat conftest.$ac_ext >&5
8246 echo "$ac_t""yes" 1>&6 8339 echo "$ac_t""yes" 1>&6
8247 libwnn=wnn 8340 libwnn=wnn
8248 else 8341 else
8249 echo "$ac_t""no" 1>&6 8342 echo "$ac_t""no" 1>&6
8250 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 8343 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8251 echo "configure:8252: checking for jl_dic_list_e in -lwnn4" >&5 8344 echo "configure:8345: checking for jl_dic_list_e in -lwnn4" >&5
8252 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8345 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8253 8346
8254 xe_check_libs=" -lwnn4 " 8347 xe_check_libs=" -lwnn4 "
8255 cat > conftest.$ac_ext <<EOF 8348 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure" 8349 #line 8350 "configure"
8257 #include "confdefs.h" 8350 #include "confdefs.h"
8258 /* Override any gcc2 internal prototype to avoid an error. */ 8351 /* Override any gcc2 internal prototype to avoid an error. */
8259 /* We use char because int might match the return type of a gcc2 8352 /* We use char because int might match the return type of a gcc2
8260 builtin and then its argument prototype would still apply. */ 8353 builtin and then its argument prototype would still apply. */
8261 char jl_dic_list_e(); 8354 char jl_dic_list_e();
8262 8355
8263 int main() { 8356 int main() {
8264 jl_dic_list_e() 8357 jl_dic_list_e()
8265 ; return 0; } 8358 ; return 0; }
8266 EOF 8359 EOF
8267 if { (eval echo configure:8268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8360 if { (eval echo configure:8361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8268 rm -rf conftest* 8361 rm -rf conftest*
8269 eval "ac_cv_lib_$ac_lib_var=yes" 8362 eval "ac_cv_lib_$ac_lib_var=yes"
8270 else 8363 else
8271 echo "configure: failed program was:" >&5 8364 echo "configure: failed program was:" >&5
8272 cat conftest.$ac_ext >&5 8365 cat conftest.$ac_ext >&5
8280 echo "$ac_t""yes" 1>&6 8373 echo "$ac_t""yes" 1>&6
8281 libwnn=wnn4 8374 libwnn=wnn4
8282 else 8375 else
8283 echo "$ac_t""no" 1>&6 8376 echo "$ac_t""no" 1>&6
8284 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8377 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8285 echo "configure:8286: checking for jl_dic_list_e in -lwnn6" >&5 8378 echo "configure:8379: checking for jl_dic_list_e in -lwnn6" >&5
8286 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8379 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8287 8380
8288 xe_check_libs=" -lwnn6 " 8381 xe_check_libs=" -lwnn6 "
8289 cat > conftest.$ac_ext <<EOF 8382 cat > conftest.$ac_ext <<EOF
8290 #line 8291 "configure" 8383 #line 8384 "configure"
8291 #include "confdefs.h" 8384 #include "confdefs.h"
8292 /* Override any gcc2 internal prototype to avoid an error. */ 8385 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2 8386 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */ 8387 builtin and then its argument prototype would still apply. */
8295 char jl_dic_list_e(); 8388 char jl_dic_list_e();
8296 8389
8297 int main() { 8390 int main() {
8298 jl_dic_list_e() 8391 jl_dic_list_e()
8299 ; return 0; } 8392 ; return 0; }
8300 EOF 8393 EOF
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8394 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8302 rm -rf conftest* 8395 rm -rf conftest*
8303 eval "ac_cv_lib_$ac_lib_var=yes" 8396 eval "ac_cv_lib_$ac_lib_var=yes"
8304 else 8397 else
8305 echo "configure: failed program was:" >&5 8398 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5 8399 cat conftest.$ac_ext >&5
8314 echo "$ac_t""yes" 1>&6 8407 echo "$ac_t""yes" 1>&6
8315 libwnn=wnn6 8408 libwnn=wnn6
8316 else 8409 else
8317 echo "$ac_t""no" 1>&6 8410 echo "$ac_t""no" 1>&6
8318 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8411 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8319 echo "configure:8320: checking for dic_list_e in -lwnn6_fromsrc" >&5 8412 echo "configure:8413: checking for dic_list_e in -lwnn6_fromsrc" >&5
8320 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8413 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8321 8414
8322 xe_check_libs=" -lwnn6_fromsrc " 8415 xe_check_libs=" -lwnn6_fromsrc "
8323 cat > conftest.$ac_ext <<EOF 8416 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure" 8417 #line 8418 "configure"
8325 #include "confdefs.h" 8418 #include "confdefs.h"
8326 /* Override any gcc2 internal prototype to avoid an error. */ 8419 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2 8420 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */ 8421 builtin and then its argument prototype would still apply. */
8329 char dic_list_e(); 8422 char dic_list_e();
8330 8423
8331 int main() { 8424 int main() {
8332 dic_list_e() 8425 dic_list_e()
8333 ; return 0; } 8426 ; return 0; }
8334 EOF 8427 EOF
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8428 if { (eval echo configure:8429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 rm -rf conftest* 8429 rm -rf conftest*
8337 eval "ac_cv_lib_$ac_lib_var=yes" 8430 eval "ac_cv_lib_$ac_lib_var=yes"
8338 else 8431 else
8339 echo "configure: failed program was:" >&5 8432 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5 8433 cat conftest.$ac_ext >&5
8378 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8471 echo " xemacs will be linked with \"mule-wnnfns.o\""
8379 fi 8472 fi
8380 if test "$with_wnn6" != "no"; then 8473 if test "$with_wnn6" != "no"; then
8381 8474
8382 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8475 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8383 echo "configure:8384: checking for jl_fi_dic_list in -l$libwnn" >&5 8476 echo "configure:8477: checking for jl_fi_dic_list in -l$libwnn" >&5
8384 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8477 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8385 8478
8386 xe_check_libs=" -l$libwnn " 8479 xe_check_libs=" -l$libwnn "
8387 cat > conftest.$ac_ext <<EOF 8480 cat > conftest.$ac_ext <<EOF
8388 #line 8389 "configure" 8481 #line 8482 "configure"
8389 #include "confdefs.h" 8482 #include "confdefs.h"
8390 /* Override any gcc2 internal prototype to avoid an error. */ 8483 /* Override any gcc2 internal prototype to avoid an error. */
8391 /* We use char because int might match the return type of a gcc2 8484 /* We use char because int might match the return type of a gcc2
8392 builtin and then its argument prototype would still apply. */ 8485 builtin and then its argument prototype would still apply. */
8393 char jl_fi_dic_list(); 8486 char jl_fi_dic_list();
8394 8487
8395 int main() { 8488 int main() {
8396 jl_fi_dic_list() 8489 jl_fi_dic_list()
8397 ; return 0; } 8490 ; return 0; }
8398 EOF 8491 EOF
8399 if { (eval echo configure:8400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8492 if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400 rm -rf conftest* 8493 rm -rf conftest*
8401 eval "ac_cv_lib_$ac_lib_var=yes" 8494 eval "ac_cv_lib_$ac_lib_var=yes"
8402 else 8495 else
8403 echo "configure: failed program was:" >&5 8496 echo "configure: failed program was:" >&5
8404 cat conftest.$ac_ext >&5 8497 cat conftest.$ac_ext >&5
8429 8522
8430 canna_includes_found=no 8523 canna_includes_found=no
8431 if test "$with_canna" != "no"; then 8524 if test "$with_canna" != "no"; then
8432 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8525 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8433 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8526 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8434 echo "configure:8435: checking for canna/jrkanji.h" >&5 8527 echo "configure:8528: checking for canna/jrkanji.h" >&5
8435 8528
8436 cat > conftest.$ac_ext <<EOF 8529 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure" 8530 #line 8531 "configure"
8438 #include "confdefs.h" 8531 #include "confdefs.h"
8439 #include <canna/jrkanji.h> 8532 #include <canna/jrkanji.h>
8440 EOF 8533 EOF
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8534 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; } 8535 { (eval echo configure:8536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then 8537 if test -z "$ac_err"; then
8445 rm -rf conftest* 8538 rm -rf conftest*
8446 eval "ac_cv_header_$ac_safe=yes" 8539 eval "ac_cv_header_$ac_safe=yes"
8447 else 8540 else
8464 -d "/usr/local/canna/include"; then 8557 -d "/usr/local/canna/include"; then
8465 save_c_switch_site="$c_switch_site" 8558 save_c_switch_site="$c_switch_site"
8466 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8559 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8467 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8560 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8468 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8561 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8469 echo "configure:8470: checking for canna/jrkanji.h" >&5 8562 echo "configure:8563: checking for canna/jrkanji.h" >&5
8470 8563
8471 cat > conftest.$ac_ext <<EOF 8564 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure" 8565 #line 8566 "configure"
8473 #include "confdefs.h" 8566 #include "confdefs.h"
8474 #include <canna/jrkanji.h> 8567 #include <canna/jrkanji.h>
8475 EOF 8568 EOF
8476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8477 { (eval echo configure:8478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8570 { (eval echo configure:8571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8479 if test -z "$ac_err"; then 8572 if test -z "$ac_err"; then
8480 rm -rf conftest* 8573 rm -rf conftest*
8481 eval "ac_cv_header_$ac_safe=yes" 8574 eval "ac_cv_header_$ac_safe=yes"
8482 else 8575 else
8500 fi 8593 fi
8501 fi 8594 fi
8502 8595
8503 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8596 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8504 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8597 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8505 echo "configure:8506: checking for canna/RK.h" >&5 8598 echo "configure:8599: checking for canna/RK.h" >&5
8506 8599
8507 cat > conftest.$ac_ext <<EOF 8600 cat > conftest.$ac_ext <<EOF
8508 #line 8509 "configure" 8601 #line 8602 "configure"
8509 #include "confdefs.h" 8602 #include "confdefs.h"
8510 #include <canna/RK.h> 8603 #include <canna/RK.h>
8511 EOF 8604 EOF
8512 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8513 { (eval echo configure:8514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8606 { (eval echo configure:8607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8514 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8515 if test -z "$ac_err"; then 8608 if test -z "$ac_err"; then
8516 rm -rf conftest* 8609 rm -rf conftest*
8517 eval "ac_cv_header_$ac_safe=yes" 8610 eval "ac_cv_header_$ac_safe=yes"
8518 else 8611 else
8531 with_canna=no 8624 with_canna=no
8532 fi 8625 fi
8533 } 8626 }
8534 test -z "$with_canna" && { 8627 test -z "$with_canna" && {
8535 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8628 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8536 echo "configure:8537: checking for RkBgnBun in -lRKC" >&5 8629 echo "configure:8630: checking for RkBgnBun in -lRKC" >&5
8537 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8630 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8538 8631
8539 xe_check_libs=" -lRKC " 8632 xe_check_libs=" -lRKC "
8540 cat > conftest.$ac_ext <<EOF 8633 cat > conftest.$ac_ext <<EOF
8541 #line 8542 "configure" 8634 #line 8635 "configure"
8542 #include "confdefs.h" 8635 #include "confdefs.h"
8543 /* Override any gcc2 internal prototype to avoid an error. */ 8636 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2 8637 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */ 8638 builtin and then its argument prototype would still apply. */
8546 char RkBgnBun(); 8639 char RkBgnBun();
8547 8640
8548 int main() { 8641 int main() {
8549 RkBgnBun() 8642 RkBgnBun()
8550 ; return 0; } 8643 ; return 0; }
8551 EOF 8644 EOF
8552 if { (eval echo configure:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8553 rm -rf conftest* 8646 rm -rf conftest*
8554 eval "ac_cv_lib_$ac_lib_var=yes" 8647 eval "ac_cv_lib_$ac_lib_var=yes"
8555 else 8648 else
8556 echo "configure: failed program was:" >&5 8649 echo "configure: failed program was:" >&5
8557 cat conftest.$ac_ext >&5 8650 cat conftest.$ac_ext >&5
8570 fi 8663 fi
8571 8664
8572 } 8665 }
8573 test -z "$with_canna" && { 8666 test -z "$with_canna" && {
8574 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8667 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8575 echo "configure:8576: checking for jrKanjiControl in -lcanna" >&5 8668 echo "configure:8669: checking for jrKanjiControl in -lcanna" >&5
8576 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8669 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8577 8670
8578 xe_check_libs=" -lcanna " 8671 xe_check_libs=" -lcanna "
8579 cat > conftest.$ac_ext <<EOF 8672 cat > conftest.$ac_ext <<EOF
8580 #line 8581 "configure" 8673 #line 8674 "configure"
8581 #include "confdefs.h" 8674 #include "confdefs.h"
8582 /* Override any gcc2 internal prototype to avoid an error. */ 8675 /* Override any gcc2 internal prototype to avoid an error. */
8583 /* We use char because int might match the return type of a gcc2 8676 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */ 8677 builtin and then its argument prototype would still apply. */
8585 char jrKanjiControl(); 8678 char jrKanjiControl();
8586 8679
8587 int main() { 8680 int main() {
8588 jrKanjiControl() 8681 jrKanjiControl()
8589 ; return 0; } 8682 ; return 0; }
8590 EOF 8683 EOF
8591 if { (eval echo configure:8592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8684 if { (eval echo configure:8685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8592 rm -rf conftest* 8685 rm -rf conftest*
8593 eval "ac_cv_lib_$ac_lib_var=yes" 8686 eval "ac_cv_lib_$ac_lib_var=yes"
8594 else 8687 else
8595 echo "configure: failed program was:" >&5 8688 echo "configure: failed program was:" >&5
8596 cat conftest.$ac_ext >&5 8689 cat conftest.$ac_ext >&5
8635 8728
8636 if test "$need_motif" = "yes" ; then 8729 if test "$need_motif" = "yes" ; then
8637 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8730 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8638 8731
8639 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8732 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8640 echo "configure:8641: checking for layout_object_getvalue in -li18n" >&5 8733 echo "configure:8734: checking for layout_object_getvalue in -li18n" >&5
8641 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8734 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8642 8735
8643 xe_check_libs=" -li18n " 8736 xe_check_libs=" -li18n "
8644 cat > conftest.$ac_ext <<EOF 8737 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure" 8738 #line 8739 "configure"
8646 #include "confdefs.h" 8739 #include "confdefs.h"
8647 /* Override any gcc2 internal prototype to avoid an error. */ 8740 /* Override any gcc2 internal prototype to avoid an error. */
8648 /* We use char because int might match the return type of a gcc2 8741 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */ 8742 builtin and then its argument prototype would still apply. */
8650 char layout_object_getvalue(); 8743 char layout_object_getvalue();
8651 8744
8652 int main() { 8745 int main() {
8653 layout_object_getvalue() 8746 layout_object_getvalue()
8654 ; return 0; } 8747 ; return 0; }
8655 EOF 8748 EOF
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8749 if { (eval echo configure:8750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657 rm -rf conftest* 8750 rm -rf conftest*
8658 eval "ac_cv_lib_$ac_lib_var=yes" 8751 eval "ac_cv_lib_$ac_lib_var=yes"
8659 else 8752 else
8660 echo "configure: failed program was:" >&5 8753 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5 8754 cat conftest.$ac_ext >&5
8737 fi 8830 fi
8738 8831
8739 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname 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 strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf 8832 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname 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 strcasecmp strerror tzset ulimit usleep utimes waitpid vsnprintf
8740 do 8833 do
8741 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8834 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8742 echo "configure:8743: checking for $ac_func" >&5 8835 echo "configure:8836: checking for $ac_func" >&5
8743 8836
8744 cat > conftest.$ac_ext <<EOF 8837 cat > conftest.$ac_ext <<EOF
8745 #line 8746 "configure" 8838 #line 8839 "configure"
8746 #include "confdefs.h" 8839 #include "confdefs.h"
8747 /* System header to define __stub macros and hopefully few prototypes, 8840 /* System header to define __stub macros and hopefully few prototypes,
8748 which can conflict with char $ac_func(); below. */ 8841 which can conflict with char $ac_func(); below. */
8749 #include <assert.h> 8842 #include <assert.h>
8750 /* Override any gcc2 internal prototype to avoid an error. */ 8843 /* Override any gcc2 internal prototype to avoid an error. */
8763 $ac_func(); 8856 $ac_func();
8764 #endif 8857 #endif
8765 8858
8766 ; return 0; } 8859 ; return 0; }
8767 EOF 8860 EOF
8768 if { (eval echo configure:8769: \"$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
8769 rm -rf conftest* 8862 rm -rf conftest*
8770 eval "ac_cv_func_$ac_func=yes" 8863 eval "ac_cv_func_$ac_func=yes"
8771 else 8864 else
8772 echo "configure: failed program was:" >&5 8865 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5 8866 cat conftest.$ac_ext >&5
8804 echo " xemacs will be linked with \"realpath.o\"" 8897 echo " xemacs will be linked with \"realpath.o\""
8805 fi ;; 8898 fi ;;
8806 * ) for ac_func in realpath 8899 * ) for ac_func in realpath
8807 do 8900 do
8808 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8809 echo "configure:8810: checking for $ac_func" >&5 8902 echo "configure:8903: checking for $ac_func" >&5
8810 8903
8811 cat > conftest.$ac_ext <<EOF 8904 cat > conftest.$ac_ext <<EOF
8812 #line 8813 "configure" 8905 #line 8906 "configure"
8813 #include "confdefs.h" 8906 #include "confdefs.h"
8814 /* System header to define __stub macros and hopefully few prototypes, 8907 /* System header to define __stub macros and hopefully few prototypes,
8815 which can conflict with char $ac_func(); below. */ 8908 which can conflict with char $ac_func(); below. */
8816 #include <assert.h> 8909 #include <assert.h>
8817 /* Override any gcc2 internal prototype to avoid an error. */ 8910 /* Override any gcc2 internal prototype to avoid an error. */
8830 $ac_func(); 8923 $ac_func();
8831 #endif 8924 #endif
8832 8925
8833 ; return 0; } 8926 ; return 0; }
8834 EOF 8927 EOF
8835 if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8928 if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8836 rm -rf conftest* 8929 rm -rf conftest*
8837 eval "ac_cv_func_$ac_func=yes" 8930 eval "ac_cv_func_$ac_func=yes"
8838 else 8931 else
8839 echo "configure: failed program was:" >&5 8932 echo "configure: failed program was:" >&5
8840 cat conftest.$ac_ext >&5 8933 cat conftest.$ac_ext >&5
8866 esac 8959 esac
8867 8960
8868 for ac_func in getloadavg 8961 for ac_func in getloadavg
8869 do 8962 do
8870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8963 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8871 echo "configure:8872: checking for $ac_func" >&5 8964 echo "configure:8965: checking for $ac_func" >&5
8872 8965
8873 cat > conftest.$ac_ext <<EOF 8966 cat > conftest.$ac_ext <<EOF
8874 #line 8875 "configure" 8967 #line 8968 "configure"
8875 #include "confdefs.h" 8968 #include "confdefs.h"
8876 /* System header to define __stub macros and hopefully few prototypes, 8969 /* System header to define __stub macros and hopefully few prototypes,
8877 which can conflict with char $ac_func(); below. */ 8970 which can conflict with char $ac_func(); below. */
8878 #include <assert.h> 8971 #include <assert.h>
8879 /* Override any gcc2 internal prototype to avoid an error. */ 8972 /* Override any gcc2 internal prototype to avoid an error. */
8892 $ac_func(); 8985 $ac_func();
8893 #endif 8986 #endif
8894 8987
8895 ; return 0; } 8988 ; return 0; }
8896 EOF 8989 EOF
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8990 if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8898 rm -rf conftest* 8991 rm -rf conftest*
8899 eval "ac_cv_func_$ac_func=yes" 8992 eval "ac_cv_func_$ac_func=yes"
8900 else 8993 else
8901 echo "configure: failed program was:" >&5 8994 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5 8995 cat conftest.$ac_ext >&5
8928 echo " xemacs will be linked with \"getloadavg.o\"" 9021 echo " xemacs will be linked with \"getloadavg.o\""
8929 fi 9022 fi
8930 9023
8931 9024
8932 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 9025 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
8933 echo "configure:8934: checking for kstat_open in -lkstat" >&5 9026 echo "configure:9027: checking for kstat_open in -lkstat" >&5
8934 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 9027 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
8935 9028
8936 xe_check_libs=" -lkstat " 9029 xe_check_libs=" -lkstat "
8937 cat > conftest.$ac_ext <<EOF 9030 cat > conftest.$ac_ext <<EOF
8938 #line 8939 "configure" 9031 #line 9032 "configure"
8939 #include "confdefs.h" 9032 #include "confdefs.h"
8940 /* Override any gcc2 internal prototype to avoid an error. */ 9033 /* Override any gcc2 internal prototype to avoid an error. */
8941 /* We use char because int might match the return type of a gcc2 9034 /* We use char because int might match the return type of a gcc2
8942 builtin and then its argument prototype would still apply. */ 9035 builtin and then its argument prototype would still apply. */
8943 char kstat_open(); 9036 char kstat_open();
8944 9037
8945 int main() { 9038 int main() {
8946 kstat_open() 9039 kstat_open()
8947 ; return 0; } 9040 ; return 0; }
8948 EOF 9041 EOF
8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9042 if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8950 rm -rf conftest* 9043 rm -rf conftest*
8951 eval "ac_cv_lib_$ac_lib_var=yes" 9044 eval "ac_cv_lib_$ac_lib_var=yes"
8952 else 9045 else
8953 echo "configure: failed program was:" >&5 9046 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5 9047 cat conftest.$ac_ext >&5
8978 9071
8979 9072
8980 9073
8981 9074
8982 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 9075 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
8983 echo "configure:8984: checking for kvm_read in -lkvm" >&5 9076 echo "configure:9077: checking for kvm_read in -lkvm" >&5
8984 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 9077 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
8985 9078
8986 xe_check_libs=" -lkvm " 9079 xe_check_libs=" -lkvm "
8987 cat > conftest.$ac_ext <<EOF 9080 cat > conftest.$ac_ext <<EOF
8988 #line 8989 "configure" 9081 #line 9082 "configure"
8989 #include "confdefs.h" 9082 #include "confdefs.h"
8990 /* Override any gcc2 internal prototype to avoid an error. */ 9083 /* Override any gcc2 internal prototype to avoid an error. */
8991 /* We use char because int might match the return type of a gcc2 9084 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */ 9085 builtin and then its argument prototype would still apply. */
8993 char kvm_read(); 9086 char kvm_read();
8994 9087
8995 int main() { 9088 int main() {
8996 kvm_read() 9089 kvm_read()
8997 ; return 0; } 9090 ; return 0; }
8998 EOF 9091 EOF
8999 if { (eval echo configure:9000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 rm -rf conftest* 9093 rm -rf conftest*
9001 eval "ac_cv_lib_$ac_lib_var=yes" 9094 eval "ac_cv_lib_$ac_lib_var=yes"
9002 else 9095 else
9003 echo "configure: failed program was:" >&5 9096 echo "configure: failed program was:" >&5
9004 cat conftest.$ac_ext >&5 9097 cat conftest.$ac_ext >&5
9028 9121
9029 9122
9030 fi 9123 fi
9031 9124
9032 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 9125 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
9033 echo "configure:9034: checking whether netdb declares h_errno" >&5 9126 echo "configure:9127: checking whether netdb declares h_errno" >&5
9034 cat > conftest.$ac_ext <<EOF 9127 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure" 9128 #line 9129 "configure"
9036 #include "confdefs.h" 9129 #include "confdefs.h"
9037 #include <netdb.h> 9130 #include <netdb.h>
9038 int main() { 9131 int main() {
9039 return h_errno; 9132 return h_errno;
9040 ; return 0; } 9133 ; return 0; }
9041 EOF 9134 EOF
9042 if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9135 if { (eval echo configure:9136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9043 rm -rf conftest* 9136 rm -rf conftest*
9044 echo "$ac_t""yes" 1>&6 9137 echo "$ac_t""yes" 1>&6
9045 { test "$extra_verbose" = "yes" && cat << \EOF 9138 { test "$extra_verbose" = "yes" && cat << \EOF
9046 Defining HAVE_H_ERRNO 9139 Defining HAVE_H_ERRNO
9047 EOF 9140 EOF
9057 echo "$ac_t""no" 1>&6 9150 echo "$ac_t""no" 1>&6
9058 fi 9151 fi
9059 rm -f conftest* 9152 rm -f conftest*
9060 9153
9061 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 9154 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
9062 echo "configure:9063: checking for sigsetjmp" >&5 9155 echo "configure:9156: checking for sigsetjmp" >&5
9063 cat > conftest.$ac_ext <<EOF 9156 cat > conftest.$ac_ext <<EOF
9064 #line 9065 "configure" 9157 #line 9158 "configure"
9065 #include "confdefs.h" 9158 #include "confdefs.h"
9066 #include <setjmp.h> 9159 #include <setjmp.h>
9067 int main() { 9160 int main() {
9068 sigjmp_buf bar; sigsetjmp (bar, 0); 9161 sigjmp_buf bar; sigsetjmp (bar, 0);
9069 ; return 0; } 9162 ; return 0; }
9070 EOF 9163 EOF
9071 if { (eval echo configure:9072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9164 if { (eval echo configure:9165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9072 rm -rf conftest* 9165 rm -rf conftest*
9073 echo "$ac_t""yes" 1>&6 9166 echo "$ac_t""yes" 1>&6
9074 { test "$extra_verbose" = "yes" && cat << \EOF 9167 { test "$extra_verbose" = "yes" && cat << \EOF
9075 Defining HAVE_SIGSETJMP 9168 Defining HAVE_SIGSETJMP
9076 EOF 9169 EOF
9086 echo "$ac_t""no" 1>&6 9179 echo "$ac_t""no" 1>&6
9087 fi 9180 fi
9088 rm -f conftest* 9181 rm -f conftest*
9089 9182
9090 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 9183 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
9091 echo "configure:9092: checking whether localtime caches TZ" >&5 9184 echo "configure:9185: checking whether localtime caches TZ" >&5
9092 9185
9093 if test "$ac_cv_func_tzset" = "yes"; then 9186 if test "$ac_cv_func_tzset" = "yes"; then
9094 cat > conftest.$ac_ext <<EOF 9187 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure" 9188 #line 9189 "configure"
9096 #include "confdefs.h" 9189 #include "confdefs.h"
9097 #include <time.h> 9190 #include <time.h>
9098 #if STDC_HEADERS 9191 #if STDC_HEADERS
9099 # include <stdlib.h> 9192 # include <stdlib.h>
9100 #endif 9193 #endif
9125 if (localtime (&now)->tm_hour != hour_unset) 9218 if (localtime (&now)->tm_hour != hour_unset)
9126 exit (1); 9219 exit (1);
9127 exit (0); 9220 exit (0);
9128 } 9221 }
9129 EOF 9222 EOF
9130 if { (eval echo configure:9131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9223 if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9131 then 9224 then
9132 emacs_cv_localtime_cache=no 9225 emacs_cv_localtime_cache=no
9133 else 9226 else
9134 conftest_rc="$?" 9227 conftest_rc="$?"
9135 echo "configure: failed program was:" >&5 9228 echo "configure: failed program was:" >&5
9155 9248
9156 fi 9249 fi
9157 9250
9158 if test "$HAVE_TIMEVAL" = "yes"; then 9251 if test "$HAVE_TIMEVAL" = "yes"; then
9159 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 9252 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
9160 echo "configure:9161: checking whether gettimeofday accepts one or two arguments" >&5 9253 echo "configure:9254: checking whether gettimeofday accepts one or two arguments" >&5
9161 cat > conftest.$ac_ext <<EOF 9254 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure" 9255 #line 9256 "configure"
9163 #include "confdefs.h" 9256 #include "confdefs.h"
9164 9257
9165 #ifdef TIME_WITH_SYS_TIME 9258 #ifdef TIME_WITH_SYS_TIME
9166 #include <sys/time.h> 9259 #include <sys/time.h>
9167 #include <time.h> 9260 #include <time.h>
9179 struct timezone dummy; 9272 struct timezone dummy;
9180 gettimeofday (&time, &dummy); 9273 gettimeofday (&time, &dummy);
9181 9274
9182 ; return 0; } 9275 ; return 0; }
9183 EOF 9276 EOF
9184 if { (eval echo configure:9185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9277 if { (eval echo configure:9278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9185 rm -rf conftest* 9278 rm -rf conftest*
9186 echo "$ac_t""two" 1>&6 9279 echo "$ac_t""two" 1>&6
9187 else 9280 else
9188 echo "configure: failed program was:" >&5 9281 echo "configure: failed program was:" >&5
9189 cat conftest.$ac_ext >&5 9282 cat conftest.$ac_ext >&5
9201 rm -f conftest* 9294 rm -f conftest*
9202 fi 9295 fi
9203 9296
9204 9297
9205 echo $ac_n "checking for inline""... $ac_c" 1>&6 9298 echo $ac_n "checking for inline""... $ac_c" 1>&6
9206 echo "configure:9207: checking for inline" >&5 9299 echo "configure:9300: checking for inline" >&5
9207 9300
9208 ac_cv_c_inline=no 9301 ac_cv_c_inline=no
9209 for ac_kw in inline __inline__ __inline; do 9302 for ac_kw in inline __inline__ __inline; do
9210 cat > conftest.$ac_ext <<EOF 9303 cat > conftest.$ac_ext <<EOF
9211 #line 9212 "configure" 9304 #line 9305 "configure"
9212 #include "confdefs.h" 9305 #include "confdefs.h"
9213 9306
9214 int main() { 9307 int main() {
9215 } $ac_kw foo() { 9308 } $ac_kw foo() {
9216 ; return 0; } 9309 ; return 0; }
9217 EOF 9310 EOF
9218 if { (eval echo configure:9219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9311 if { (eval echo configure:9312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9219 rm -rf conftest* 9312 rm -rf conftest*
9220 ac_cv_c_inline=$ac_kw; break 9313 ac_cv_c_inline=$ac_kw; break
9221 else 9314 else
9222 echo "configure: failed program was:" >&5 9315 echo "configure: failed program was:" >&5
9223 cat conftest.$ac_ext >&5 9316 cat conftest.$ac_ext >&5
9263 9356
9264 9357
9265 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9358 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9266 # for constant arguments. Useless! 9359 # for constant arguments. Useless!
9267 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 9360 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
9268 echo "configure:9269: checking for working alloca.h" >&5 9361 echo "configure:9362: checking for working alloca.h" >&5
9269 9362
9270 cat > conftest.$ac_ext <<EOF 9363 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure" 9364 #line 9365 "configure"
9272 #include "confdefs.h" 9365 #include "confdefs.h"
9273 #include <alloca.h> 9366 #include <alloca.h>
9274 int main() { 9367 int main() {
9275 char *p = alloca(2 * sizeof(int)); 9368 char *p = alloca(2 * sizeof(int));
9276 ; return 0; } 9369 ; return 0; }
9277 EOF 9370 EOF
9278 if { (eval echo configure:9279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9371 if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9279 rm -rf conftest* 9372 rm -rf conftest*
9280 ac_cv_header_alloca_h=yes 9373 ac_cv_header_alloca_h=yes
9281 else 9374 else
9282 echo "configure: failed program was:" >&5 9375 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5 9376 cat conftest.$ac_ext >&5
9297 } 9390 }
9298 9391
9299 fi 9392 fi
9300 9393
9301 echo $ac_n "checking for alloca""... $ac_c" 1>&6 9394 echo $ac_n "checking for alloca""... $ac_c" 1>&6
9302 echo "configure:9303: checking for alloca" >&5 9395 echo "configure:9396: checking for alloca" >&5
9303 9396
9304 cat > conftest.$ac_ext <<EOF 9397 cat > conftest.$ac_ext <<EOF
9305 #line 9306 "configure" 9398 #line 9399 "configure"
9306 #include "confdefs.h" 9399 #include "confdefs.h"
9307 9400
9308 #ifdef __GNUC__ 9401 #ifdef __GNUC__
9309 # define alloca __builtin_alloca 9402 # define alloca __builtin_alloca
9310 #else 9403 #else
9328 9421
9329 int main() { 9422 int main() {
9330 char *p = (char *) alloca(1); 9423 char *p = (char *) alloca(1);
9331 ; return 0; } 9424 ; return 0; }
9332 EOF 9425 EOF
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9426 if { (eval echo configure:9427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 rm -rf conftest* 9427 rm -rf conftest*
9335 ac_cv_func_alloca_works=yes 9428 ac_cv_func_alloca_works=yes
9336 else 9429 else
9337 echo "configure: failed program was:" >&5 9430 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5 9431 cat conftest.$ac_ext >&5
9367 EOF 9460 EOF
9368 } 9461 }
9369 9462
9370 9463
9371 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 9464 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9372 echo "configure:9373: checking whether alloca needs Cray hooks" >&5 9465 echo "configure:9466: checking whether alloca needs Cray hooks" >&5
9373 9466
9374 cat > conftest.$ac_ext <<EOF 9467 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure" 9468 #line 9469 "configure"
9376 #include "confdefs.h" 9469 #include "confdefs.h"
9377 #if defined(CRAY) && ! defined(CRAY2) 9470 #if defined(CRAY) && ! defined(CRAY2)
9378 webecray 9471 webecray
9379 #else 9472 #else
9380 wenotbecray 9473 wenotbecray
9394 9487
9395 echo "$ac_t""$ac_cv_os_cray" 1>&6 9488 echo "$ac_t""$ac_cv_os_cray" 1>&6
9396 if test $ac_cv_os_cray = yes; then 9489 if test $ac_cv_os_cray = yes; then
9397 for ac_func in _getb67 GETB67 getb67; do 9490 for ac_func in _getb67 GETB67 getb67; do
9398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9399 echo "configure:9400: checking for $ac_func" >&5 9492 echo "configure:9493: checking for $ac_func" >&5
9400 9493
9401 cat > conftest.$ac_ext <<EOF 9494 cat > conftest.$ac_ext <<EOF
9402 #line 9403 "configure" 9495 #line 9496 "configure"
9403 #include "confdefs.h" 9496 #include "confdefs.h"
9404 /* System header to define __stub macros and hopefully few prototypes, 9497 /* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char $ac_func(); below. */ 9498 which can conflict with char $ac_func(); below. */
9406 #include <assert.h> 9499 #include <assert.h>
9407 /* Override any gcc2 internal prototype to avoid an error. */ 9500 /* Override any gcc2 internal prototype to avoid an error. */
9420 $ac_func(); 9513 $ac_func();
9421 #endif 9514 #endif
9422 9515
9423 ; return 0; } 9516 ; return 0; }
9424 EOF 9517 EOF
9425 if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9518 if { (eval echo configure:9519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9426 rm -rf conftest* 9519 rm -rf conftest*
9427 eval "ac_cv_func_$ac_func=yes" 9520 eval "ac_cv_func_$ac_func=yes"
9428 else 9521 else
9429 echo "configure: failed program was:" >&5 9522 echo "configure: failed program was:" >&5
9430 cat conftest.$ac_ext >&5 9523 cat conftest.$ac_ext >&5
9450 9543
9451 done 9544 done
9452 fi 9545 fi
9453 9546
9454 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9547 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9455 echo "configure:9456: checking stack direction for C alloca" >&5 9548 echo "configure:9549: checking stack direction for C alloca" >&5
9456 9549
9457 cat > conftest.$ac_ext <<EOF 9550 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure" 9551 #line 9552 "configure"
9459 #include "confdefs.h" 9552 #include "confdefs.h"
9460 find_stack_direction () 9553 find_stack_direction ()
9461 { 9554 {
9462 static char *addr = 0; 9555 static char *addr = 0;
9463 auto char dummy; 9556 auto char dummy;
9472 main () 9565 main ()
9473 { 9566 {
9474 exit (find_stack_direction() < 0); 9567 exit (find_stack_direction() < 0);
9475 } 9568 }
9476 EOF 9569 EOF
9477 if { (eval echo configure:9478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9570 if { (eval echo configure:9571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9478 then 9571 then
9479 ac_cv_c_stack_direction=1 9572 ac_cv_c_stack_direction=1
9480 else 9573 else
9481 conftest_rc="$?" 9574 conftest_rc="$?"
9482 echo "configure: failed program was:" >&5 9575 echo "configure: failed program was:" >&5
9501 echo " xemacs will be linked with \"$ALLOCA\"" 9594 echo " xemacs will be linked with \"$ALLOCA\""
9502 fi 9595 fi
9503 9596
9504 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9597 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9505 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9598 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9506 echo "configure:9507: checking for vfork.h" >&5 9599 echo "configure:9600: checking for vfork.h" >&5
9507 9600
9508 cat > conftest.$ac_ext <<EOF 9601 cat > conftest.$ac_ext <<EOF
9509 #line 9510 "configure" 9602 #line 9603 "configure"
9510 #include "confdefs.h" 9603 #include "confdefs.h"
9511 #include <vfork.h> 9604 #include <vfork.h>
9512 EOF 9605 EOF
9513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9514 { (eval echo configure:9515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9607 { (eval echo configure:9608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9516 if test -z "$ac_err"; then 9609 if test -z "$ac_err"; then
9517 rm -rf conftest* 9610 rm -rf conftest*
9518 eval "ac_cv_header_$ac_safe=yes" 9611 eval "ac_cv_header_$ac_safe=yes"
9519 else 9612 else
9537 else 9630 else
9538 echo "$ac_t""no" 1>&6 9631 echo "$ac_t""no" 1>&6
9539 fi 9632 fi
9540 9633
9541 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9634 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9542 echo "configure:9543: checking for working vfork" >&5 9635 echo "configure:9636: checking for working vfork" >&5
9543 9636
9544 cat > conftest.$ac_ext <<EOF 9637 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure" 9638 #line 9639 "configure"
9546 #include "confdefs.h" 9639 #include "confdefs.h"
9547 /* Thanks to Paul Eggert for this test. */ 9640 /* Thanks to Paul Eggert for this test. */
9548 #include <stdio.h> 9641 #include <stdio.h>
9549 #include <sys/types.h> 9642 #include <sys/types.h>
9550 #include <sys/stat.h> 9643 #include <sys/stat.h>
9635 || fstat(fileno(stdout), &st) != 0 9728 || fstat(fileno(stdout), &st) != 0
9636 ); 9729 );
9637 } 9730 }
9638 } 9731 }
9639 EOF 9732 EOF
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9641 then 9734 then
9642 ac_cv_func_vfork_works=yes 9735 ac_cv_func_vfork_works=yes
9643 else 9736 else
9644 conftest_rc="$?" 9737 conftest_rc="$?"
9645 echo "configure: failed program was:" >&5 9738 echo "configure: failed program was:" >&5
9661 9754
9662 fi 9755 fi
9663 9756
9664 9757
9665 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9758 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9666 echo "configure:9667: checking for working strcoll" >&5 9759 echo "configure:9760: checking for working strcoll" >&5
9667 9760
9668 cat > conftest.$ac_ext <<EOF 9761 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure" 9762 #line 9763 "configure"
9670 #include "confdefs.h" 9763 #include "confdefs.h"
9671 #include <string.h> 9764 #include <string.h>
9672 main () 9765 main ()
9673 { 9766 {
9674 exit (strcoll ("abc", "def") >= 0 || 9767 exit (strcoll ("abc", "def") >= 0 ||
9675 strcoll ("ABC", "DEF") >= 0 || 9768 strcoll ("ABC", "DEF") >= 0 ||
9676 strcoll ("123", "456") >= 0); 9769 strcoll ("123", "456") >= 0);
9677 } 9770 }
9678 EOF 9771 EOF
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9772 if { (eval echo configure:9773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9680 then 9773 then
9681 ac_cv_func_strcoll_works=yes 9774 ac_cv_func_strcoll_works=yes
9682 else 9775 else
9683 conftest_rc="$?" 9776 conftest_rc="$?"
9684 echo "configure: failed program was:" >&5 9777 echo "configure: failed program was:" >&5
9702 9795
9703 9796
9704 for ac_func in getpgrp 9797 for ac_func in getpgrp
9705 do 9798 do
9706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9707 echo "configure:9708: checking for $ac_func" >&5 9800 echo "configure:9801: checking for $ac_func" >&5
9708 9801
9709 cat > conftest.$ac_ext <<EOF 9802 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure" 9803 #line 9804 "configure"
9711 #include "confdefs.h" 9804 #include "confdefs.h"
9712 /* System header to define __stub macros and hopefully few prototypes, 9805 /* System header to define __stub macros and hopefully few prototypes,
9713 which can conflict with char $ac_func(); below. */ 9806 which can conflict with char $ac_func(); below. */
9714 #include <assert.h> 9807 #include <assert.h>
9715 /* Override any gcc2 internal prototype to avoid an error. */ 9808 /* Override any gcc2 internal prototype to avoid an error. */
9728 $ac_func(); 9821 $ac_func();
9729 #endif 9822 #endif
9730 9823
9731 ; return 0; } 9824 ; return 0; }
9732 EOF 9825 EOF
9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9734 rm -rf conftest* 9827 rm -rf conftest*
9735 eval "ac_cv_func_$ac_func=yes" 9828 eval "ac_cv_func_$ac_func=yes"
9736 else 9829 else
9737 echo "configure: failed program was:" >&5 9830 echo "configure: failed program was:" >&5
9738 cat conftest.$ac_ext >&5 9831 cat conftest.$ac_ext >&5
9756 echo "$ac_t""no" 1>&6 9849 echo "$ac_t""no" 1>&6
9757 fi 9850 fi
9758 done 9851 done
9759 9852
9760 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9853 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9761 echo "configure:9762: checking whether getpgrp takes no argument" >&5 9854 echo "configure:9855: checking whether getpgrp takes no argument" >&5
9762 9855
9763 cat > conftest.$ac_ext <<EOF 9856 cat > conftest.$ac_ext <<EOF
9764 #line 9765 "configure" 9857 #line 9858 "configure"
9765 #include "confdefs.h" 9858 #include "confdefs.h"
9766 9859
9767 /* 9860 /*
9768 * If this system has a BSD-style getpgrp(), 9861 * If this system has a BSD-style getpgrp(),
9769 * which takes a pid argument, exit unsuccessfully. 9862 * which takes a pid argument, exit unsuccessfully.
9814 exit(s>>8); 9907 exit(s>>8);
9815 } 9908 }
9816 } 9909 }
9817 9910
9818 EOF 9911 EOF
9819 if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9912 if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9820 then 9913 then
9821 ac_cv_func_getpgrp_void=yes 9914 ac_cv_func_getpgrp_void=yes
9822 else 9915 else
9823 conftest_rc="$?" 9916 conftest_rc="$?"
9824 echo "configure: failed program was:" >&5 9917 echo "configure: failed program was:" >&5
9841 9934
9842 fi 9935 fi
9843 9936
9844 9937
9845 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9938 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9846 echo "configure:9847: checking for working mmap" >&5 9939 echo "configure:9940: checking for working mmap" >&5
9847 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9940 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9848 cat > conftest.$ac_ext <<EOF 9941 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure" 9942 #line 9943 "configure"
9850 #include "confdefs.h" 9943 #include "confdefs.h"
9851 #include <stdio.h> 9944 #include <stdio.h>
9852 #include <unistd.h> 9945 #include <unistd.h>
9853 #include <fcntl.h> 9946 #include <fcntl.h>
9854 #include <sys/mman.h> 9947 #include <sys/mman.h>
9877 return 0; 9970 return 0;
9878 perror ("conftest: mmap failed"); 9971 perror ("conftest: mmap failed");
9879 return 1; 9972 return 1;
9880 } 9973 }
9881 EOF 9974 EOF
9882 if { (eval echo configure:9883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9975 if { (eval echo configure:9976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9883 then 9976 then
9884 have_mmap=yes 9977 have_mmap=yes
9885 else 9978 else
9886 conftest_rc="$?" 9979 conftest_rc="$?"
9887 echo "configure: failed program was:" >&5 9980 echo "configure: failed program was:" >&5
9898 cat >> confdefs.h <<\EOF 9991 cat >> confdefs.h <<\EOF
9899 #define HAVE_MMAP 1 9992 #define HAVE_MMAP 1
9900 EOF 9993 EOF
9901 } 9994 }
9902 9995
9903 for ac_hdr in unistd.h
9904 do
9905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9907 echo "configure:9908: checking for $ac_hdr" >&5
9908
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9912 #include <$ac_hdr>
9913 EOF
9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9917 if test -z "$ac_err"; then
9918 rm -rf conftest*
9919 eval "ac_cv_header_$ac_safe=yes"
9920 else
9921 echo "$ac_err" >&5
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9924 rm -rf conftest*
9925 eval "ac_cv_header_$ac_safe=no"
9926 fi
9927 rm -f conftest*
9928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9929 echo "$ac_t""yes" 1>&6
9930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9931 { test "$extra_verbose" = "yes" && cat << EOF
9932 Defining $ac_tr_hdr
9933 EOF
9934 cat >> confdefs.h <<EOF
9935 #define $ac_tr_hdr 1
9936 EOF
9937 }
9938
9939 else
9940 echo "$ac_t""no" 1>&6
9941 fi
9942 done
9943
9944 for ac_func in getpagesize
9945 do
9946 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9947 echo "configure:9948: checking for $ac_func" >&5
9948
9949 cat > conftest.$ac_ext <<EOF
9950 #line 9951 "configure"
9951 #include "confdefs.h"
9952 /* System header to define __stub macros and hopefully few prototypes,
9953 which can conflict with char $ac_func(); below. */
9954 #include <assert.h>
9955 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9958 char $ac_func();
9959
9960 int main() {
9961
9962 /* The GNU C library defines this for functions which it implements
9963 to always fail with ENOSYS. Some functions are actually named
9964 something starting with __ and the normal name is an alias. */
9965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9966 choke me
9967 #else
9968 $ac_func();
9969 #endif
9970
9971 ; return 0; }
9972 EOF
9973 if { (eval echo configure:9974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9974 rm -rf conftest*
9975 eval "ac_cv_func_$ac_func=yes"
9976 else
9977 echo "configure: failed program was:" >&5
9978 cat conftest.$ac_ext >&5
9979 rm -rf conftest*
9980 eval "ac_cv_func_$ac_func=no"
9981 fi
9982 rm -f conftest*
9983
9984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9985 echo "$ac_t""yes" 1>&6
9986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9987 { test "$extra_verbose" = "yes" && cat << EOF
9988 Defining $ac_tr_func
9989 EOF
9990 cat >> confdefs.h <<EOF
9991 #define $ac_tr_func 1
9992 EOF
9993 }
9994
9995 else
9996 echo "$ac_t""no" 1>&6
9997 fi
9998 done
9999
10000 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
10001 echo "configure:10002: checking for working mmap" >&5
10002
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10005 "configure"
10005 #include "confdefs.h"
10006
10007 /* Thanks to Mike Haertel and Jim Avera for this test.
10008 Here is a matrix of mmap possibilities:
10009 mmap private not fixed
10010 mmap private fixed at somewhere currently unmapped
10011 mmap private fixed at somewhere already mapped
10012 mmap shared not fixed
10013 mmap shared fixed at somewhere currently unmapped
10014 mmap shared fixed at somewhere already mapped
10015 For private mappings, we should verify that changes cannot be read()
10016 back from the file, nor mmap's back from the file at a different
10017 address. (There have been systems where private was not correctly
10018 implemented like the infamous i386 svr4.0, and systems where the
10019 VM page cache was not coherent with the filesystem buffer cache
10020 like early versions of FreeBSD and possibly contemporary NetBSD.)
10021 For shared mappings, we should conversely verify that changes get
10022 propogated back to all the places they're supposed to be.
10023
10024 Grep wants private fixed already mapped.
10025 The main things grep needs to know about mmap are:
10026 * does it exist and is it safe to write into the mmap'd area
10027 * how to use it (BSD variants) */
10028 #include <sys/types.h>
10029 #include <fcntl.h>
10030 #include <sys/mman.h>
10031
10032 /* This mess was copied from the GNU getpagesize.h. */
10033 #ifndef HAVE_GETPAGESIZE
10034 # ifdef HAVE_UNISTD_H
10035 # include <unistd.h>
10036 # endif
10037
10038 /* Assume that all systems that can run configure have sys/param.h. */
10039 # ifndef HAVE_SYS_PARAM_H
10040 # define HAVE_SYS_PARAM_H 1
10041 # endif
10042
10043 # ifdef _SC_PAGESIZE
10044 # define getpagesize() sysconf(_SC_PAGESIZE)
10045 # else /* no _SC_PAGESIZE */
10046 # ifdef HAVE_SYS_PARAM_H
10047 # include <sys/param.h>
10048 # ifdef EXEC_PAGESIZE
10049 # define getpagesize() EXEC_PAGESIZE
10050 # else /* no EXEC_PAGESIZE */
10051 # ifdef NBPG
10052 # define getpagesize() NBPG * CLSIZE
10053 # ifndef CLSIZE
10054 # define CLSIZE 1
10055 # endif /* no CLSIZE */
10056 # else /* no NBPG */
10057 # ifdef NBPC
10058 # define getpagesize() NBPC
10059 # else /* no NBPC */
10060 # ifdef PAGESIZE
10061 # define getpagesize() PAGESIZE
10062 # endif /* PAGESIZE */
10063 # endif /* no NBPC */
10064 # endif /* no NBPG */
10065 # endif /* no EXEC_PAGESIZE */
10066 # else /* no HAVE_SYS_PARAM_H */
10067 # define getpagesize() 8192 /* punt totally */
10068 # endif /* no HAVE_SYS_PARAM_H */
10069 # endif /* no _SC_PAGESIZE */
10070
10071 #endif /* no HAVE_GETPAGESIZE */
10072
10073 #ifdef __cplusplus
10074 extern "C" { void *malloc(unsigned); }
10075 #else
10076 char *malloc();
10077 #endif
10078
10079 int
10080 main()
10081 {
10082 char *data, *data2, *data3;
10083 int i, pagesize;
10084 int fd;
10085
10086 pagesize = getpagesize();
10087
10088 /*
10089 * First, make a file with some known garbage in it.
10090 */
10091 data = malloc(pagesize);
10092 if (!data)
10093 exit(1);
10094 for (i = 0; i < pagesize; ++i)
10095 *(data + i) = rand();
10096 umask(0);
10097 fd = creat("conftestmmap", 0600);
10098 if (fd < 0)
10099 exit(1);
10100 if (write(fd, data, pagesize) != pagesize)
10101 exit(1);
10102 close(fd);
10103
10104 /*
10105 * Next, try to mmap the file at a fixed address which
10106 * already has something else allocated at it. If we can,
10107 * also make sure that we see the same garbage.
10108 */
10109 fd = open("conftestmmap", O_RDWR);
10110 if (fd < 0)
10111 exit(1);
10112 data2 = malloc(2 * pagesize);
10113 if (!data2)
10114 exit(1);
10115 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
10116 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
10117 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10118 exit(1);
10119 for (i = 0; i < pagesize; ++i)
10120 if (*(data + i) != *(data2 + i))
10121 exit(1);
10122
10123 /*
10124 * Finally, make sure that changes to the mapped area
10125 * do not percolate back to the file as seen by read().
10126 * (This is a bug on some variants of i386 svr4.0.)
10127 */
10128 for (i = 0; i < pagesize; ++i)
10129 *(data2 + i) = *(data2 + i) + 1;
10130 data3 = malloc(pagesize);
10131 if (!data3)
10132 exit(1);
10133 if (read(fd, data3, pagesize) != pagesize)
10134 exit(1);
10135 for (i = 0; i < pagesize; ++i)
10136 if (*(data + i) != *(data3 + i))
10137 exit(1);
10138 close(fd);
10139 unlink("conftestmmap");
10140 exit(0);
10141 }
10142
10143 EOF
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
10145 then
10146 ac_cv_func_mmap_fixed_mapped=yes
10147 else
10148 conftest_rc="$?"
10149 echo "configure: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10151 rm -fr conftest*
10152 ac_cv_func_mmap_fixed_mapped=no
10153 fi
10154 rm -fr conftest*
10155
10156 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
10157 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10158 { test "$extra_verbose" = "yes" && cat << \EOF
10159 Defining HAVE_MMAP
10160 EOF
10161 cat >> confdefs.h <<\EOF
10162 #define HAVE_MMAP 1
10163 EOF
10164 }
10165
10166 fi
10167
10168 9996
10169 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 9997 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
10170 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes 9998 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
10171 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 9999 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
10172 Defining REL_ALLOC 10000 Defining REL_ALLOC
10177 } 10005 }
10178 10006
10179 10007
10180 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 10008 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
10181 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 10009 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
10182 echo "configure:10183: checking for termios.h" >&5 10010 echo "configure:10011: checking for termios.h" >&5
10183 10011
10184 cat > conftest.$ac_ext <<EOF 10012 cat > conftest.$ac_ext <<EOF
10185 #line 10186 "configure" 10013 #line 10014 "configure"
10186 #include "confdefs.h" 10014 #include "confdefs.h"
10187 #include <termios.h> 10015 #include <termios.h>
10188 EOF 10016 EOF
10189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10190 { (eval echo configure:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10018 { (eval echo configure:10019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10192 if test -z "$ac_err"; then 10020 if test -z "$ac_err"; then
10193 rm -rf conftest* 10021 rm -rf conftest*
10194 eval "ac_cv_header_$ac_safe=yes" 10022 eval "ac_cv_header_$ac_safe=yes"
10195 else 10023 else
10228 10056
10229 else 10057 else
10230 echo "$ac_t""no" 1>&6 10058 echo "$ac_t""no" 1>&6
10231 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 10059 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
10232 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 10060 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
10233 echo "configure:10234: checking for termio.h" >&5 10061 echo "configure:10062: checking for termio.h" >&5
10234 10062
10235 cat > conftest.$ac_ext <<EOF 10063 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure" 10064 #line 10065 "configure"
10237 #include "confdefs.h" 10065 #include "confdefs.h"
10238 #include <termio.h> 10066 #include <termio.h>
10239 EOF 10067 EOF
10240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10241 { (eval echo configure:10242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10069 { (eval echo configure:10070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10243 if test -z "$ac_err"; then 10071 if test -z "$ac_err"; then
10244 rm -rf conftest* 10072 rm -rf conftest*
10245 eval "ac_cv_header_$ac_safe=yes" 10073 eval "ac_cv_header_$ac_safe=yes"
10246 else 10074 else
10268 fi 10096 fi
10269 10097
10270 10098
10271 10099
10272 echo $ac_n "checking for socket""... $ac_c" 1>&6 10100 echo $ac_n "checking for socket""... $ac_c" 1>&6
10273 echo "configure:10274: checking for socket" >&5 10101 echo "configure:10102: checking for socket" >&5
10274 10102
10275 cat > conftest.$ac_ext <<EOF 10103 cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure" 10104 #line 10105 "configure"
10277 #include "confdefs.h" 10105 #include "confdefs.h"
10278 /* System header to define __stub macros and hopefully few prototypes, 10106 /* System header to define __stub macros and hopefully few prototypes,
10279 which can conflict with char socket(); below. */ 10107 which can conflict with char socket(); below. */
10280 #include <assert.h> 10108 #include <assert.h>
10281 /* Override any gcc2 internal prototype to avoid an error. */ 10109 /* Override any gcc2 internal prototype to avoid an error. */
10294 socket(); 10122 socket();
10295 #endif 10123 #endif
10296 10124
10297 ; return 0; } 10125 ; return 0; }
10298 EOF 10126 EOF
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10300 rm -rf conftest* 10128 rm -rf conftest*
10301 eval "ac_cv_func_socket=yes" 10129 eval "ac_cv_func_socket=yes"
10302 else 10130 else
10303 echo "configure: failed program was:" >&5 10131 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5 10132 cat conftest.$ac_ext >&5
10309 10137
10310 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 10138 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
10311 echo "$ac_t""yes" 1>&6 10139 echo "$ac_t""yes" 1>&6
10312 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 10140 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
10313 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 10141 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
10314 echo "configure:10315: checking for netinet/in.h" >&5 10142 echo "configure:10143: checking for netinet/in.h" >&5
10315 10143
10316 cat > conftest.$ac_ext <<EOF 10144 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure" 10145 #line 10146 "configure"
10318 #include "confdefs.h" 10146 #include "confdefs.h"
10319 #include <netinet/in.h> 10147 #include <netinet/in.h>
10320 EOF 10148 EOF
10321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10322 { (eval echo configure:10323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10150 { (eval echo configure:10151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10324 if test -z "$ac_err"; then 10152 if test -z "$ac_err"; then
10325 rm -rf conftest* 10153 rm -rf conftest*
10326 eval "ac_cv_header_$ac_safe=yes" 10154 eval "ac_cv_header_$ac_safe=yes"
10327 else 10155 else
10334 rm -f conftest* 10162 rm -f conftest*
10335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10336 echo "$ac_t""yes" 1>&6 10164 echo "$ac_t""yes" 1>&6
10337 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 10165 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
10338 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 10166 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
10339 echo "configure:10340: checking for arpa/inet.h" >&5 10167 echo "configure:10168: checking for arpa/inet.h" >&5
10340 10168
10341 cat > conftest.$ac_ext <<EOF 10169 cat > conftest.$ac_ext <<EOF
10342 #line 10343 "configure" 10170 #line 10171 "configure"
10343 #include "confdefs.h" 10171 #include "confdefs.h"
10344 #include <arpa/inet.h> 10172 #include <arpa/inet.h>
10345 EOF 10173 EOF
10346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10347 { (eval echo configure:10348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10175 { (eval echo configure:10176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10349 if test -z "$ac_err"; then 10177 if test -z "$ac_err"; then
10350 rm -rf conftest* 10178 rm -rf conftest*
10351 eval "ac_cv_header_$ac_safe=yes" 10179 eval "ac_cv_header_$ac_safe=yes"
10352 else 10180 else
10367 #define HAVE_SOCKETS 1 10195 #define HAVE_SOCKETS 1
10368 EOF 10196 EOF
10369 } 10197 }
10370 10198
10371 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 10199 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10372 echo "configure:10373: checking "for sun_len member in struct sockaddr_un"" >&5 10200 echo "configure:10201: checking "for sun_len member in struct sockaddr_un"" >&5
10373 cat > conftest.$ac_ext <<EOF 10201 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure" 10202 #line 10203 "configure"
10375 #include "confdefs.h" 10203 #include "confdefs.h"
10376 10204
10377 #include <sys/types.h> 10205 #include <sys/types.h>
10378 #include <sys/socket.h> 10206 #include <sys/socket.h>
10379 #include <sys/un.h> 10207 #include <sys/un.h>
10380 10208
10381 int main() { 10209 int main() {
10382 static struct sockaddr_un x; x.sun_len = 1; 10210 static struct sockaddr_un x; x.sun_len = 1;
10383 ; return 0; } 10211 ; return 0; }
10384 EOF 10212 EOF
10385 if { (eval echo configure:10386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10213 if { (eval echo configure:10214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10386 rm -rf conftest* 10214 rm -rf conftest*
10387 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10215 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10388 Defining HAVE_SOCKADDR_SUN_LEN 10216 Defining HAVE_SOCKADDR_SUN_LEN
10389 EOF 10217 EOF
10390 cat >> confdefs.h <<\EOF 10218 cat >> confdefs.h <<\EOF
10398 rm -rf conftest* 10226 rm -rf conftest*
10399 echo "$ac_t""no" 1>&6 10227 echo "$ac_t""no" 1>&6
10400 fi 10228 fi
10401 rm -f conftest* 10229 rm -f conftest*
10402 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 10230 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10403 echo "configure:10404: checking "for ip_mreq struct in netinet/in.h"" >&5 10231 echo "configure:10232: checking "for ip_mreq struct in netinet/in.h"" >&5
10404 cat > conftest.$ac_ext <<EOF 10232 cat > conftest.$ac_ext <<EOF
10405 #line 10406 "configure" 10233 #line 10234 "configure"
10406 #include "confdefs.h" 10234 #include "confdefs.h"
10407 10235
10408 #include <sys/types.h> 10236 #include <sys/types.h>
10409 #include <netinet/in.h> 10237 #include <netinet/in.h>
10410 10238
10411 int main() { 10239 int main() {
10412 static struct ip_mreq x; 10240 static struct ip_mreq x;
10413 ; return 0; } 10241 ; return 0; }
10414 EOF 10242 EOF
10415 if { (eval echo configure:10416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10243 if { (eval echo configure:10244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 rm -rf conftest* 10244 rm -rf conftest*
10417 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 10245 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10418 Defining HAVE_MULTICAST 10246 Defining HAVE_MULTICAST
10419 EOF 10247 EOF
10420 cat >> confdefs.h <<\EOF 10248 cat >> confdefs.h <<\EOF
10441 echo "$ac_t""no" 1>&6 10269 echo "$ac_t""no" 1>&6
10442 fi 10270 fi
10443 10271
10444 10272
10445 echo $ac_n "checking for msgget""... $ac_c" 1>&6 10273 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10446 echo "configure:10447: checking for msgget" >&5 10274 echo "configure:10275: checking for msgget" >&5
10447 10275
10448 cat > conftest.$ac_ext <<EOF 10276 cat > conftest.$ac_ext <<EOF
10449 #line 10450 "configure" 10277 #line 10278 "configure"
10450 #include "confdefs.h" 10278 #include "confdefs.h"
10451 /* System header to define __stub macros and hopefully few prototypes, 10279 /* System header to define __stub macros and hopefully few prototypes,
10452 which can conflict with char msgget(); below. */ 10280 which can conflict with char msgget(); below. */
10453 #include <assert.h> 10281 #include <assert.h>
10454 /* Override any gcc2 internal prototype to avoid an error. */ 10282 /* Override any gcc2 internal prototype to avoid an error. */
10467 msgget(); 10295 msgget();
10468 #endif 10296 #endif
10469 10297
10470 ; return 0; } 10298 ; return 0; }
10471 EOF 10299 EOF
10472 if { (eval echo configure:10473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10473 rm -rf conftest* 10301 rm -rf conftest*
10474 eval "ac_cv_func_msgget=yes" 10302 eval "ac_cv_func_msgget=yes"
10475 else 10303 else
10476 echo "configure: failed program was:" >&5 10304 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5 10305 cat conftest.$ac_ext >&5
10482 10310
10483 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10311 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6 10312 echo "$ac_t""yes" 1>&6
10485 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10313 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10486 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10314 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10487 echo "configure:10488: checking for sys/ipc.h" >&5 10315 echo "configure:10316: checking for sys/ipc.h" >&5
10488 10316
10489 cat > conftest.$ac_ext <<EOF 10317 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure" 10318 #line 10319 "configure"
10491 #include "confdefs.h" 10319 #include "confdefs.h"
10492 #include <sys/ipc.h> 10320 #include <sys/ipc.h>
10493 EOF 10321 EOF
10494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10495 { (eval echo configure:10496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10323 { (eval echo configure:10324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10497 if test -z "$ac_err"; then 10325 if test -z "$ac_err"; then
10498 rm -rf conftest* 10326 rm -rf conftest*
10499 eval "ac_cv_header_$ac_safe=yes" 10327 eval "ac_cv_header_$ac_safe=yes"
10500 else 10328 else
10507 rm -f conftest* 10335 rm -f conftest*
10508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10509 echo "$ac_t""yes" 1>&6 10337 echo "$ac_t""yes" 1>&6
10510 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10338 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10511 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10339 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10512 echo "configure:10513: checking for sys/msg.h" >&5 10340 echo "configure:10341: checking for sys/msg.h" >&5
10513 10341
10514 cat > conftest.$ac_ext <<EOF 10342 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure" 10343 #line 10344 "configure"
10516 #include "confdefs.h" 10344 #include "confdefs.h"
10517 #include <sys/msg.h> 10345 #include <sys/msg.h>
10518 EOF 10346 EOF
10519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10520 { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10348 { (eval echo configure:10349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10522 if test -z "$ac_err"; then 10350 if test -z "$ac_err"; then
10523 rm -rf conftest* 10351 rm -rf conftest*
10524 eval "ac_cv_header_$ac_safe=yes" 10352 eval "ac_cv_header_$ac_safe=yes"
10525 else 10353 else
10553 fi 10381 fi
10554 10382
10555 10383
10556 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10384 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10557 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10385 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10558 echo "configure:10559: checking for dirent.h" >&5 10386 echo "configure:10387: checking for dirent.h" >&5
10559 10387
10560 cat > conftest.$ac_ext <<EOF 10388 cat > conftest.$ac_ext <<EOF
10561 #line 10562 "configure" 10389 #line 10390 "configure"
10562 #include "confdefs.h" 10390 #include "confdefs.h"
10563 #include <dirent.h> 10391 #include <dirent.h>
10564 EOF 10392 EOF
10565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10566 { (eval echo configure:10567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10394 { (eval echo configure:10395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10568 if test -z "$ac_err"; then 10396 if test -z "$ac_err"; then
10569 rm -rf conftest* 10397 rm -rf conftest*
10570 eval "ac_cv_header_$ac_safe=yes" 10398 eval "ac_cv_header_$ac_safe=yes"
10571 else 10399 else
10588 10416
10589 else 10417 else
10590 echo "$ac_t""no" 1>&6 10418 echo "$ac_t""no" 1>&6
10591 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10419 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10592 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10420 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10593 echo "configure:10594: checking for sys/dir.h" >&5 10421 echo "configure:10422: checking for sys/dir.h" >&5
10594 10422
10595 cat > conftest.$ac_ext <<EOF 10423 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure" 10424 #line 10425 "configure"
10597 #include "confdefs.h" 10425 #include "confdefs.h"
10598 #include <sys/dir.h> 10426 #include <sys/dir.h>
10599 EOF 10427 EOF
10600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10601 { (eval echo configure:10602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10429 { (eval echo configure:10430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10603 if test -z "$ac_err"; then 10431 if test -z "$ac_err"; then
10604 rm -rf conftest* 10432 rm -rf conftest*
10605 eval "ac_cv_header_$ac_safe=yes" 10433 eval "ac_cv_header_$ac_safe=yes"
10606 else 10434 else
10629 fi 10457 fi
10630 10458
10631 10459
10632 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10460 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10633 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10461 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10634 echo "configure:10635: checking for nlist.h" >&5 10462 echo "configure:10463: checking for nlist.h" >&5
10635 10463
10636 cat > conftest.$ac_ext <<EOF 10464 cat > conftest.$ac_ext <<EOF
10637 #line 10638 "configure" 10465 #line 10466 "configure"
10638 #include "confdefs.h" 10466 #include "confdefs.h"
10639 #include <nlist.h> 10467 #include <nlist.h>
10640 EOF 10468 EOF
10641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10642 { (eval echo configure:10643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10470 { (eval echo configure:10471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10644 if test -z "$ac_err"; then 10472 if test -z "$ac_err"; then
10645 rm -rf conftest* 10473 rm -rf conftest*
10646 eval "ac_cv_header_$ac_safe=yes" 10474 eval "ac_cv_header_$ac_safe=yes"
10647 else 10475 else
10667 fi 10495 fi
10668 10496
10669 10497
10670 10498
10671 echo "checking "for sound support"" 1>&6 10499 echo "checking "for sound support"" 1>&6
10672 echo "configure:10673: checking "for sound support"" >&5 10500 echo "configure:10501: checking "for sound support"" >&5
10673 case "$with_sound" in 10501 case "$with_sound" in
10674 native | both ) with_native_sound=yes;; 10502 native | both ) with_native_sound=yes;;
10675 nas | no ) with_native_sound=no;; 10503 nas | no ) with_native_sound=no;;
10676 esac 10504 esac
10677 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10505 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10678 10506
10679 if test "$with_native_sound" != "no"; then 10507 if test "$with_native_sound" != "no"; then
10680 if test -n "$native_sound_lib"; then 10508 if test -n "$native_sound_lib"; then
10681 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10509 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10682 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10510 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10683 echo "configure:10684: checking for multimedia/audio_device.h" >&5 10511 echo "configure:10512: checking for multimedia/audio_device.h" >&5
10684 10512
10685 cat > conftest.$ac_ext <<EOF 10513 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure" 10514 #line 10515 "configure"
10687 #include "confdefs.h" 10515 #include "confdefs.h"
10688 #include <multimedia/audio_device.h> 10516 #include <multimedia/audio_device.h>
10689 EOF 10517 EOF
10690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10691 { (eval echo configure:10692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10519 { (eval echo configure:10520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10693 if test -z "$ac_err"; then 10521 if test -z "$ac_err"; then
10694 rm -rf conftest* 10522 rm -rf conftest*
10695 eval "ac_cv_header_$ac_safe=yes" 10523 eval "ac_cv_header_$ac_safe=yes"
10696 else 10524 else
10734 case "$canonical" in 10562 case "$canonical" in
10735 *-sgi-* ) 10563 *-sgi-* )
10736 if test -z "$native_sound_lib"; then 10564 if test -z "$native_sound_lib"; then
10737 10565
10738 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10566 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10739 echo "configure:10740: checking for ALopenport in -laudio" >&5 10567 echo "configure:10568: checking for ALopenport in -laudio" >&5
10740 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10568 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10741 10569
10742 xe_check_libs=" -laudio " 10570 xe_check_libs=" -laudio "
10743 cat > conftest.$ac_ext <<EOF 10571 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure" 10572 #line 10573 "configure"
10745 #include "confdefs.h" 10573 #include "confdefs.h"
10746 /* Override any gcc2 internal prototype to avoid an error. */ 10574 /* Override any gcc2 internal prototype to avoid an error. */
10747 /* We use char because int might match the return type of a gcc2 10575 /* We use char because int might match the return type of a gcc2
10748 builtin and then its argument prototype would still apply. */ 10576 builtin and then its argument prototype would still apply. */
10749 char ALopenport(); 10577 char ALopenport();
10750 10578
10751 int main() { 10579 int main() {
10752 ALopenport() 10580 ALopenport()
10753 ; return 0; } 10581 ; return 0; }
10754 EOF 10582 EOF
10755 if { (eval echo configure:10756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10583 if { (eval echo configure:10584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10756 rm -rf conftest* 10584 rm -rf conftest*
10757 eval "ac_cv_lib_$ac_lib_var=yes" 10585 eval "ac_cv_lib_$ac_lib_var=yes"
10758 else 10586 else
10759 echo "configure: failed program was:" >&5 10587 echo "configure: failed program was:" >&5
10760 cat conftest.$ac_ext >&5 10588 cat conftest.$ac_ext >&5
10781 fi ;; 10609 fi ;;
10782 hppa*-hp-hpux* ) 10610 hppa*-hp-hpux* )
10783 if test -z "$native_sound_lib"; then 10611 if test -z "$native_sound_lib"; then
10784 10612
10785 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10613 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10786 echo "configure:10787: checking for AOpenAudio in -lAlib" >&5 10614 echo "configure:10615: checking for AOpenAudio in -lAlib" >&5
10787 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10615 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10788 10616
10789 xe_check_libs=" -lAlib " 10617 xe_check_libs=" -lAlib "
10790 cat > conftest.$ac_ext <<EOF 10618 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure" 10619 #line 10620 "configure"
10792 #include "confdefs.h" 10620 #include "confdefs.h"
10793 /* Override any gcc2 internal prototype to avoid an error. */ 10621 /* Override any gcc2 internal prototype to avoid an error. */
10794 /* We use char because int might match the return type of a gcc2 10622 /* We use char because int might match the return type of a gcc2
10795 builtin and then its argument prototype would still apply. */ 10623 builtin and then its argument prototype would still apply. */
10796 char AOpenAudio(); 10624 char AOpenAudio();
10797 10625
10798 int main() { 10626 int main() {
10799 AOpenAudio() 10627 AOpenAudio()
10800 ; return 0; } 10628 ; return 0; }
10801 EOF 10629 EOF
10802 if { (eval echo configure:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10630 if { (eval echo configure:10631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10803 rm -rf conftest* 10631 rm -rf conftest*
10804 eval "ac_cv_lib_$ac_lib_var=yes" 10632 eval "ac_cv_lib_$ac_lib_var=yes"
10805 else 10633 else
10806 echo "configure: failed program was:" >&5 10634 echo "configure: failed program was:" >&5
10807 cat conftest.$ac_ext >&5 10635 cat conftest.$ac_ext >&5
10835 10663
10836 if test -z "$sound_found"; then 10664 if test -z "$sound_found"; then
10837 for dir in "machine" "sys" "linux"; do 10665 for dir in "machine" "sys" "linux"; do
10838 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10666 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10839 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10667 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10840 echo "configure:10841: checking for ${dir}/soundcard.h" >&5 10668 echo "configure:10669: checking for ${dir}/soundcard.h" >&5
10841 10669
10842 cat > conftest.$ac_ext <<EOF 10670 cat > conftest.$ac_ext <<EOF
10843 #line 10844 "configure" 10671 #line 10672 "configure"
10844 #include "confdefs.h" 10672 #include "confdefs.h"
10845 #include <${dir}/soundcard.h> 10673 #include <${dir}/soundcard.h>
10846 EOF 10674 EOF
10847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10675 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10848 { (eval echo configure:10849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10676 { (eval echo configure:10677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10677 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10850 if test -z "$ac_err"; then 10678 if test -z "$ac_err"; then
10851 rm -rf conftest* 10679 rm -rf conftest*
10852 eval "ac_cv_header_$ac_safe=yes" 10680 eval "ac_cv_header_$ac_safe=yes"
10853 else 10681 else
10913 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10741 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10914 echo " xemacs will be linked with \"nas.o\"" 10742 echo " xemacs will be linked with \"nas.o\""
10915 fi 10743 fi
10916 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10744 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10917 cat > conftest.$ac_ext <<EOF 10745 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure" 10746 #line 10747 "configure"
10919 #include "confdefs.h" 10747 #include "confdefs.h"
10920 #include <audio/Xtutil.h> 10748 #include <audio/Xtutil.h>
10921 EOF 10749 EOF
10922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10923 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10751 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10940 10768
10941 test -z "$with_tty" && with_tty=yes 10769 test -z "$with_tty" && with_tty=yes
10942 10770
10943 if test "$with_tty" = "yes" ; then 10771 if test "$with_tty" = "yes" ; then
10944 echo "checking for TTY-related features" 1>&6 10772 echo "checking for TTY-related features" 1>&6
10945 echo "configure:10946: checking for TTY-related features" >&5 10773 echo "configure:10774: checking for TTY-related features" >&5
10946 { test "$extra_verbose" = "yes" && cat << \EOF 10774 { test "$extra_verbose" = "yes" && cat << \EOF
10947 Defining HAVE_TTY 10775 Defining HAVE_TTY
10948 EOF 10776 EOF
10949 cat >> confdefs.h <<\EOF 10777 cat >> confdefs.h <<\EOF
10950 #define HAVE_TTY 1 10778 #define HAVE_TTY 1
10956 fi 10784 fi
10957 10785
10958 if test -z "$with_ncurses"; then 10786 if test -z "$with_ncurses"; then
10959 10787
10960 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10788 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10961 echo "configure:10962: checking for tgetent in -lncurses" >&5 10789 echo "configure:10790: checking for tgetent in -lncurses" >&5
10962 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10790 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10963 10791
10964 xe_check_libs=" -lncurses " 10792 xe_check_libs=" -lncurses "
10965 cat > conftest.$ac_ext <<EOF 10793 cat > conftest.$ac_ext <<EOF
10966 #line 10967 "configure" 10794 #line 10795 "configure"
10967 #include "confdefs.h" 10795 #include "confdefs.h"
10968 /* Override any gcc2 internal prototype to avoid an error. */ 10796 /* Override any gcc2 internal prototype to avoid an error. */
10969 /* We use char because int might match the return type of a gcc2 10797 /* We use char because int might match the return type of a gcc2
10970 builtin and then its argument prototype would still apply. */ 10798 builtin and then its argument prototype would still apply. */
10971 char tgetent(); 10799 char tgetent();
10972 10800
10973 int main() { 10801 int main() {
10974 tgetent() 10802 tgetent()
10975 ; return 0; } 10803 ; return 0; }
10976 EOF 10804 EOF
10977 if { (eval echo configure:10978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10805 if { (eval echo configure:10806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10978 rm -rf conftest* 10806 rm -rf conftest*
10979 eval "ac_cv_lib_$ac_lib_var=yes" 10807 eval "ac_cv_lib_$ac_lib_var=yes"
10980 else 10808 else
10981 echo "configure: failed program was:" >&5 10809 echo "configure: failed program was:" >&5
10982 cat conftest.$ac_ext >&5 10810 cat conftest.$ac_ext >&5
11005 EOF 10833 EOF
11006 } 10834 }
11007 10835
11008 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10836 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11009 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10837 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11010 echo "configure:11011: checking for ncurses/curses.h" >&5 10838 echo "configure:10839: checking for ncurses/curses.h" >&5
11011 10839
11012 cat > conftest.$ac_ext <<EOF 10840 cat > conftest.$ac_ext <<EOF
11013 #line 11014 "configure" 10841 #line 10842 "configure"
11014 #include "confdefs.h" 10842 #include "confdefs.h"
11015 #include <ncurses/curses.h> 10843 #include <ncurses/curses.h>
11016 EOF 10844 EOF
11017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11018 { (eval echo configure:11019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10846 { (eval echo configure:10847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11019 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11020 if test -z "$ac_err"; then 10848 if test -z "$ac_err"; then
11021 rm -rf conftest* 10849 rm -rf conftest*
11022 eval "ac_cv_header_$ac_safe=yes" 10850 eval "ac_cv_header_$ac_safe=yes"
11023 else 10851 else
11035 echo "$ac_t""no" 1>&6 10863 echo "$ac_t""no" 1>&6
11036 fi 10864 fi
11037 10865
11038 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10866 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
11039 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10867 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
11040 echo "configure:11041: checking for ncurses/term.h" >&5 10868 echo "configure:10869: checking for ncurses/term.h" >&5
11041 10869
11042 cat > conftest.$ac_ext <<EOF 10870 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure" 10871 #line 10872 "configure"
11044 #include "confdefs.h" 10872 #include "confdefs.h"
11045 #include <ncurses/term.h> 10873 #include <ncurses/term.h>
11046 EOF 10874 EOF
11047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11048 { (eval echo configure:11049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10876 { (eval echo configure:10877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11049 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11050 if test -z "$ac_err"; then 10878 if test -z "$ac_err"; then
11051 rm -rf conftest* 10879 rm -rf conftest*
11052 eval "ac_cv_header_$ac_safe=yes" 10880 eval "ac_cv_header_$ac_safe=yes"
11053 else 10881 else
11073 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10901 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
11074 save_c_switch_site="$c_switch_site" 10902 save_c_switch_site="$c_switch_site"
11075 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10903 c_switch_site="$c_switch_site -I/usr/include/ncurses"
11076 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10904 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
11077 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10905 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
11078 echo "configure:11079: checking for ncurses/curses.h" >&5 10906 echo "configure:10907: checking for ncurses/curses.h" >&5
11079 10907
11080 cat > conftest.$ac_ext <<EOF 10908 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure" 10909 #line 10910 "configure"
11082 #include "confdefs.h" 10910 #include "confdefs.h"
11083 #include <ncurses/curses.h> 10911 #include <ncurses/curses.h>
11084 EOF 10912 EOF
11085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11086 { (eval echo configure:11087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10914 { (eval echo configure:10915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11088 if test -z "$ac_err"; then 10916 if test -z "$ac_err"; then
11089 rm -rf conftest* 10917 rm -rf conftest*
11090 eval "ac_cv_header_$ac_safe=yes" 10918 eval "ac_cv_header_$ac_safe=yes"
11091 else 10919 else
11116 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10944 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11117 else 10945 else
11118 for lib in curses termlib termcap; do 10946 for lib in curses termlib termcap; do
11119 10947
11120 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10948 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
11121 echo "configure:11122: checking for tgetent in -l$lib" >&5 10949 echo "configure:10950: checking for tgetent in -l$lib" >&5
11122 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10950 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
11123 10951
11124 xe_check_libs=" -l$lib " 10952 xe_check_libs=" -l$lib "
11125 cat > conftest.$ac_ext <<EOF 10953 cat > conftest.$ac_ext <<EOF
11126 #line 11127 "configure" 10954 #line 10955 "configure"
11127 #include "confdefs.h" 10955 #include "confdefs.h"
11128 /* Override any gcc2 internal prototype to avoid an error. */ 10956 /* Override any gcc2 internal prototype to avoid an error. */
11129 /* We use char because int might match the return type of a gcc2 10957 /* We use char because int might match the return type of a gcc2
11130 builtin and then its argument prototype would still apply. */ 10958 builtin and then its argument prototype would still apply. */
11131 char tgetent(); 10959 char tgetent();
11132 10960
11133 int main() { 10961 int main() {
11134 tgetent() 10962 tgetent()
11135 ; return 0; } 10963 ; return 0; }
11136 EOF 10964 EOF
11137 if { (eval echo configure:11138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10965 if { (eval echo configure:10966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11138 rm -rf conftest* 10966 rm -rf conftest*
11139 eval "ac_cv_lib_$ac_lib_var=yes" 10967 eval "ac_cv_lib_$ac_lib_var=yes"
11140 else 10968 else
11141 echo "configure: failed program was:" >&5 10969 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5 10970 cat conftest.$ac_ext >&5
11163 if test -n "$libs_termcap"; then 10991 if test -n "$libs_termcap"; then
11164 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10992 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
11165 else 10993 else
11166 10994
11167 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10995 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
11168 echo "configure:11169: checking for tgetent in -lcurses" >&5 10996 echo "configure:10997: checking for tgetent in -lcurses" >&5
11169 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10997 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
11170 10998
11171 xe_check_libs=" -lcurses " 10999 xe_check_libs=" -lcurses "
11172 cat > conftest.$ac_ext <<EOF 11000 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure" 11001 #line 11002 "configure"
11174 #include "confdefs.h" 11002 #include "confdefs.h"
11175 /* Override any gcc2 internal prototype to avoid an error. */ 11003 /* Override any gcc2 internal prototype to avoid an error. */
11176 /* We use char because int might match the return type of a gcc2 11004 /* We use char because int might match the return type of a gcc2
11177 builtin and then its argument prototype would still apply. */ 11005 builtin and then its argument prototype would still apply. */
11178 char tgetent(); 11006 char tgetent();
11179 11007
11180 int main() { 11008 int main() {
11181 tgetent() 11009 tgetent()
11182 ; return 0; } 11010 ; return 0; }
11183 EOF 11011 EOF
11184 if { (eval echo configure:11185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11185 rm -rf conftest* 11013 rm -rf conftest*
11186 eval "ac_cv_lib_$ac_lib_var=yes" 11014 eval "ac_cv_lib_$ac_lib_var=yes"
11187 else 11015 else
11188 echo "configure: failed program was:" >&5 11016 echo "configure: failed program was:" >&5
11189 cat conftest.$ac_ext >&5 11017 cat conftest.$ac_ext >&5
11197 echo "$ac_t""yes" 1>&6 11025 echo "$ac_t""yes" 1>&6
11198 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 11026 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
11199 else 11027 else
11200 echo "$ac_t""no" 1>&6 11028 echo "$ac_t""no" 1>&6
11201 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 11029 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
11202 echo "configure:11203: checking for tgetent in -ltermcap" >&5 11030 echo "configure:11031: checking for tgetent in -ltermcap" >&5
11203 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 11031 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
11204 11032
11205 xe_check_libs=" -ltermcap " 11033 xe_check_libs=" -ltermcap "
11206 cat > conftest.$ac_ext <<EOF 11034 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure" 11035 #line 11036 "configure"
11208 #include "confdefs.h" 11036 #include "confdefs.h"
11209 /* Override any gcc2 internal prototype to avoid an error. */ 11037 /* Override any gcc2 internal prototype to avoid an error. */
11210 /* We use char because int might match the return type of a gcc2 11038 /* We use char because int might match the return type of a gcc2
11211 builtin and then its argument prototype would still apply. */ 11039 builtin and then its argument prototype would still apply. */
11212 char tgetent(); 11040 char tgetent();
11213 11041
11214 int main() { 11042 int main() {
11215 tgetent() 11043 tgetent()
11216 ; return 0; } 11044 ; return 0; }
11217 EOF 11045 EOF
11218 if { (eval echo configure:11219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11046 if { (eval echo configure:11047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11219 rm -rf conftest* 11047 rm -rf conftest*
11220 eval "ac_cv_lib_$ac_lib_var=yes" 11048 eval "ac_cv_lib_$ac_lib_var=yes"
11221 else 11049 else
11222 echo "configure: failed program was:" >&5 11050 echo "configure: failed program was:" >&5
11223 cat conftest.$ac_ext >&5 11051 cat conftest.$ac_ext >&5
11261 } 11089 }
11262 11090
11263 11091
11264 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 11092 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
11265 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 11093 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
11266 echo "configure:11267: checking for gpm.h" >&5 11094 echo "configure:11095: checking for gpm.h" >&5
11267 11095
11268 cat > conftest.$ac_ext <<EOF 11096 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure" 11097 #line 11098 "configure"
11270 #include "confdefs.h" 11098 #include "confdefs.h"
11271 #include <gpm.h> 11099 #include <gpm.h>
11272 EOF 11100 EOF
11273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11274 { (eval echo configure:11275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11102 { (eval echo configure:11103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11276 if test -z "$ac_err"; then 11104 if test -z "$ac_err"; then
11277 rm -rf conftest* 11105 rm -rf conftest*
11278 eval "ac_cv_header_$ac_safe=yes" 11106 eval "ac_cv_header_$ac_safe=yes"
11279 else 11107 else
11292 with_gpm=no 11120 with_gpm=no
11293 fi 11121 fi
11294 } 11122 }
11295 test -z "$with_gpm" && { 11123 test -z "$with_gpm" && {
11296 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 11124 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
11297 echo "configure:11298: checking for Gpm_Open in -lgpm" >&5 11125 echo "configure:11126: checking for Gpm_Open in -lgpm" >&5
11298 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 11126 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
11299 11127
11300 xe_check_libs=" -lgpm " 11128 xe_check_libs=" -lgpm "
11301 cat > conftest.$ac_ext <<EOF 11129 cat > conftest.$ac_ext <<EOF
11302 #line 11303 "configure" 11130 #line 11131 "configure"
11303 #include "confdefs.h" 11131 #include "confdefs.h"
11304 /* Override any gcc2 internal prototype to avoid an error. */ 11132 /* Override any gcc2 internal prototype to avoid an error. */
11305 /* We use char because int might match the return type of a gcc2 11133 /* We use char because int might match the return type of a gcc2
11306 builtin and then its argument prototype would still apply. */ 11134 builtin and then its argument prototype would still apply. */
11307 char Gpm_Open(); 11135 char Gpm_Open();
11308 11136
11309 int main() { 11137 int main() {
11310 Gpm_Open() 11138 Gpm_Open()
11311 ; return 0; } 11139 ; return 0; }
11312 EOF 11140 EOF
11313 if { (eval echo configure:11314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11314 rm -rf conftest* 11142 rm -rf conftest*
11315 eval "ac_cv_lib_$ac_lib_var=yes" 11143 eval "ac_cv_lib_$ac_lib_var=yes"
11316 else 11144 else
11317 echo "configure: failed program was:" >&5 11145 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5 11146 cat conftest.$ac_ext >&5
11358 fi 11186 fi
11359 11187
11360 11188
11361 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \ 11189 test "$with_database_gnudbm $with_database_dbm $with_database_berkdb" \
11362 != "no no no" && echo "checking for database support" 1>&6 11190 != "no no no" && echo "checking for database support" 1>&6
11363 echo "configure:11364: checking for database support" >&5 11191 echo "configure:11192: checking for database support" >&5
11364 11192
11365 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 11193 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
11366 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 11194 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
11367 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 11195 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
11368 echo "configure:11369: checking for ndbm.h" >&5 11196 echo "configure:11197: checking for ndbm.h" >&5
11369 11197
11370 cat > conftest.$ac_ext <<EOF 11198 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure" 11199 #line 11200 "configure"
11372 #include "confdefs.h" 11200 #include "confdefs.h"
11373 #include <ndbm.h> 11201 #include <ndbm.h>
11374 EOF 11202 EOF
11375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11376 { (eval echo configure:11377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11204 { (eval echo configure:11205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11378 if test -z "$ac_err"; then 11206 if test -z "$ac_err"; then
11379 rm -rf conftest* 11207 rm -rf conftest*
11380 eval "ac_cv_header_$ac_safe=yes" 11208 eval "ac_cv_header_$ac_safe=yes"
11381 else 11209 else
11401 fi 11229 fi
11402 11230
11403 if test "$with_database_gnudbm" != "no"; then 11231 if test "$with_database_gnudbm" != "no"; then
11404 11232
11405 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 11233 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11406 echo "configure:11407: checking for dbm_open in -lgdbm" >&5 11234 echo "configure:11235: checking for dbm_open in -lgdbm" >&5
11407 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 11235 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11408 11236
11409 xe_check_libs=" -lgdbm " 11237 xe_check_libs=" -lgdbm "
11410 cat > conftest.$ac_ext <<EOF 11238 cat > conftest.$ac_ext <<EOF
11411 #line 11412 "configure" 11239 #line 11240 "configure"
11412 #include "confdefs.h" 11240 #include "confdefs.h"
11413 /* Override any gcc2 internal prototype to avoid an error. */ 11241 /* Override any gcc2 internal prototype to avoid an error. */
11414 /* We use char because int might match the return type of a gcc2 11242 /* We use char because int might match the return type of a gcc2
11415 builtin and then its argument prototype would still apply. */ 11243 builtin and then its argument prototype would still apply. */
11416 char dbm_open(); 11244 char dbm_open();
11417 11245
11418 int main() { 11246 int main() {
11419 dbm_open() 11247 dbm_open()
11420 ; return 0; } 11248 ; return 0; }
11421 EOF 11249 EOF
11422 if { (eval echo configure:11423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11250 if { (eval echo configure:11251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11423 rm -rf conftest* 11251 rm -rf conftest*
11424 eval "ac_cv_lib_$ac_lib_var=yes" 11252 eval "ac_cv_lib_$ac_lib_var=yes"
11425 else 11253 else
11426 echo "configure: failed program was:" >&5 11254 echo "configure: failed program was:" >&5
11427 cat conftest.$ac_ext >&5 11255 cat conftest.$ac_ext >&5
11445 11273
11446 fi 11274 fi
11447 11275
11448 if test "$with_database_dbm" != "no"; then 11276 if test "$with_database_dbm" != "no"; then
11449 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11277 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11450 echo "configure:11451: checking for dbm_open" >&5 11278 echo "configure:11279: checking for dbm_open" >&5
11451 11279
11452 cat > conftest.$ac_ext <<EOF 11280 cat > conftest.$ac_ext <<EOF
11453 #line 11454 "configure" 11281 #line 11282 "configure"
11454 #include "confdefs.h" 11282 #include "confdefs.h"
11455 /* System header to define __stub macros and hopefully few prototypes, 11283 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char dbm_open(); below. */ 11284 which can conflict with char dbm_open(); below. */
11457 #include <assert.h> 11285 #include <assert.h>
11458 /* Override any gcc2 internal prototype to avoid an error. */ 11286 /* Override any gcc2 internal prototype to avoid an error. */
11471 dbm_open(); 11299 dbm_open();
11472 #endif 11300 #endif
11473 11301
11474 ; return 0; } 11302 ; return 0; }
11475 EOF 11303 EOF
11476 if { (eval echo configure:11477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11304 if { (eval echo configure:11305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11477 rm -rf conftest* 11305 rm -rf conftest*
11478 eval "ac_cv_func_dbm_open=yes" 11306 eval "ac_cv_func_dbm_open=yes"
11479 else 11307 else
11480 echo "configure: failed program was:" >&5 11308 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5 11309 cat conftest.$ac_ext >&5
11490 else 11318 else
11491 echo "$ac_t""no" 1>&6 11319 echo "$ac_t""no" 1>&6
11492 11320
11493 11321
11494 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11322 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11495 echo "configure:11496: checking for dbm_open in -ldbm" >&5 11323 echo "configure:11324: checking for dbm_open in -ldbm" >&5
11496 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11324 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11497 11325
11498 xe_check_libs=" -ldbm " 11326 xe_check_libs=" -ldbm "
11499 cat > conftest.$ac_ext <<EOF 11327 cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure" 11328 #line 11329 "configure"
11501 #include "confdefs.h" 11329 #include "confdefs.h"
11502 /* Override any gcc2 internal prototype to avoid an error. */ 11330 /* Override any gcc2 internal prototype to avoid an error. */
11503 /* We use char because int might match the return type of a gcc2 11331 /* We use char because int might match the return type of a gcc2
11504 builtin and then its argument prototype would still apply. */ 11332 builtin and then its argument prototype would still apply. */
11505 char dbm_open(); 11333 char dbm_open();
11506 11334
11507 int main() { 11335 int main() {
11508 dbm_open() 11336 dbm_open()
11509 ; return 0; } 11337 ; return 0; }
11510 EOF 11338 EOF
11511 if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11339 if { (eval echo configure:11340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11512 rm -rf conftest* 11340 rm -rf conftest*
11513 eval "ac_cv_lib_$ac_lib_var=yes" 11341 eval "ac_cv_lib_$ac_lib_var=yes"
11514 else 11342 else
11515 echo "configure: failed program was:" >&5 11343 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5 11344 cat conftest.$ac_ext >&5
11547 } 11375 }
11548 11376
11549 11377
11550 if test "$with_database_berkdb" != "no"; then 11378 if test "$with_database_berkdb" != "no"; then
11551 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11379 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11552 echo "configure:11553: checking for Berkeley db.h" >&5 11380 echo "configure:11381: checking for Berkeley db.h" >&5
11553 for path in "db/db.h" "db.h"; do 11381 for path in "db/db.h" "db.h"; do
11554 cat > conftest.$ac_ext <<EOF 11382 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure" 11383 #line 11384 "configure"
11556 #include "confdefs.h" 11384 #include "confdefs.h"
11557 #ifdef HAVE_INTTYPES_H 11385 #ifdef HAVE_INTTYPES_H
11558 #define __BIT_TYPES_DEFINED__ 11386 #define __BIT_TYPES_DEFINED__
11559 #include <inttypes.h> 11387 #include <inttypes.h>
11560 typedef uint8_t u_int8_t; 11388 typedef uint8_t u_int8_t;
11568 11396
11569 int main() { 11397 int main() {
11570 11398
11571 ; return 0; } 11399 ; return 0; }
11572 EOF 11400 EOF
11573 if { (eval echo configure:11574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11401 if { (eval echo configure:11402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11574 rm -rf conftest* 11402 rm -rf conftest*
11575 db_h_path="$path"; break 11403 db_h_path="$path"; break
11576 else 11404 else
11577 echo "configure: failed program was:" >&5 11405 echo "configure: failed program was:" >&5
11578 cat conftest.$ac_ext >&5 11406 cat conftest.$ac_ext >&5
11584 else echo "$ac_t""$db_h_path" 1>&6 11412 else echo "$ac_t""$db_h_path" 1>&6
11585 fi 11413 fi
11586 11414
11587 if test "$with_database_berkdb" != "no"; then 11415 if test "$with_database_berkdb" != "no"; then
11588 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11416 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11589 echo "configure:11590: checking for Berkeley DB version" >&5 11417 echo "configure:11418: checking for Berkeley DB version" >&5
11590 cat > conftest.$ac_ext <<EOF 11418 cat > conftest.$ac_ext <<EOF
11591 #line 11592 "configure" 11419 #line 11420 "configure"
11592 #include "confdefs.h" 11420 #include "confdefs.h"
11593 #include <$db_h_path> 11421 #include <$db_h_path>
11594 #if DB_VERSION_MAJOR > 1 11422 #if DB_VERSION_MAJOR > 1
11595 yes 11423 yes
11596 #endif 11424 #endif
11605 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11433 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11606 fi 11434 fi
11607 rm -f conftest* 11435 rm -f conftest*
11608 11436
11609 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11437 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11610 echo "configure:11611: checking for $dbfunc" >&5 11438 echo "configure:11439: checking for $dbfunc" >&5
11611 11439
11612 cat > conftest.$ac_ext <<EOF 11440 cat > conftest.$ac_ext <<EOF
11613 #line 11614 "configure" 11441 #line 11442 "configure"
11614 #include "confdefs.h" 11442 #include "confdefs.h"
11615 /* System header to define __stub macros and hopefully few prototypes, 11443 /* System header to define __stub macros and hopefully few prototypes,
11616 which can conflict with char $dbfunc(); below. */ 11444 which can conflict with char $dbfunc(); below. */
11617 #include <assert.h> 11445 #include <assert.h>
11618 /* Override any gcc2 internal prototype to avoid an error. */ 11446 /* Override any gcc2 internal prototype to avoid an error. */
11631 $dbfunc(); 11459 $dbfunc();
11632 #endif 11460 #endif
11633 11461
11634 ; return 0; } 11462 ; return 0; }
11635 EOF 11463 EOF
11636 if { (eval echo configure:11637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11464 if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11637 rm -rf conftest* 11465 rm -rf conftest*
11638 eval "ac_cv_func_$dbfunc=yes" 11466 eval "ac_cv_func_$dbfunc=yes"
11639 else 11467 else
11640 echo "configure: failed program was:" >&5 11468 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5 11469 cat conftest.$ac_ext >&5
11650 else 11478 else
11651 echo "$ac_t""no" 1>&6 11479 echo "$ac_t""no" 1>&6
11652 11480
11653 11481
11654 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11482 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11655 echo "configure:11656: checking for $dbfunc in -ldb" >&5 11483 echo "configure:11484: checking for $dbfunc in -ldb" >&5
11656 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11484 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11657 11485
11658 xe_check_libs=" -ldb " 11486 xe_check_libs=" -ldb "
11659 cat > conftest.$ac_ext <<EOF 11487 cat > conftest.$ac_ext <<EOF
11660 #line 11661 "configure" 11488 #line 11489 "configure"
11661 #include "confdefs.h" 11489 #include "confdefs.h"
11662 /* Override any gcc2 internal prototype to avoid an error. */ 11490 /* Override any gcc2 internal prototype to avoid an error. */
11663 /* We use char because int might match the return type of a gcc2 11491 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */ 11492 builtin and then its argument prototype would still apply. */
11665 char $dbfunc(); 11493 char $dbfunc();
11666 11494
11667 int main() { 11495 int main() {
11668 $dbfunc() 11496 $dbfunc()
11669 ; return 0; } 11497 ; return 0; }
11670 EOF 11498 EOF
11671 if { (eval echo configure:11672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11499 if { (eval echo configure:11500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11672 rm -rf conftest* 11500 rm -rf conftest*
11673 eval "ac_cv_lib_$ac_lib_var=yes" 11501 eval "ac_cv_lib_$ac_lib_var=yes"
11674 else 11502 else
11675 echo "configure: failed program was:" >&5 11503 echo "configure: failed program was:" >&5
11676 cat conftest.$ac_ext >&5 11504 cat conftest.$ac_ext >&5
11730 fi 11558 fi
11731 11559
11732 if test "$with_socks" = "yes"; then 11560 if test "$with_socks" = "yes"; then
11733 11561
11734 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11562 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11735 echo "configure:11736: checking for SOCKSinit in -lsocks" >&5 11563 echo "configure:11564: checking for SOCKSinit in -lsocks" >&5
11736 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11564 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11737 11565
11738 xe_check_libs=" -lsocks " 11566 xe_check_libs=" -lsocks "
11739 cat > conftest.$ac_ext <<EOF 11567 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure" 11568 #line 11569 "configure"
11741 #include "confdefs.h" 11569 #include "confdefs.h"
11742 /* Override any gcc2 internal prototype to avoid an error. */ 11570 /* Override any gcc2 internal prototype to avoid an error. */
11743 /* We use char because int might match the return type of a gcc2 11571 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */ 11572 builtin and then its argument prototype would still apply. */
11745 char SOCKSinit(); 11573 char SOCKSinit();
11746 11574
11747 int main() { 11575 int main() {
11748 SOCKSinit() 11576 SOCKSinit()
11749 ; return 0; } 11577 ; return 0; }
11750 EOF 11578 EOF
11751 if { (eval echo configure:11752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11579 if { (eval echo configure:11580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11752 rm -rf conftest* 11580 rm -rf conftest*
11753 eval "ac_cv_lib_$ac_lib_var=yes" 11581 eval "ac_cv_lib_$ac_lib_var=yes"
11754 else 11582 else
11755 echo "configure: failed program was:" >&5 11583 echo "configure: failed program was:" >&5
11756 cat conftest.$ac_ext >&5 11584 cat conftest.$ac_ext >&5
11803 11631
11804 for ac_hdr in dlfcn.h 11632 for ac_hdr in dlfcn.h
11805 do 11633 do
11806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11634 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11635 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11808 echo "configure:11809: checking for $ac_hdr" >&5 11636 echo "configure:11637: checking for $ac_hdr" >&5
11809 11637
11810 cat > conftest.$ac_ext <<EOF 11638 cat > conftest.$ac_ext <<EOF
11811 #line 11812 "configure" 11639 #line 11640 "configure"
11812 #include "confdefs.h" 11640 #include "confdefs.h"
11813 #include <$ac_hdr> 11641 #include <$ac_hdr>
11814 EOF 11642 EOF
11815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11816 { (eval echo configure:11817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11644 { (eval echo configure:11645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11818 if test -z "$ac_err"; then 11646 if test -z "$ac_err"; then
11819 rm -rf conftest* 11647 rm -rf conftest*
11820 eval "ac_cv_header_$ac_safe=yes" 11648 eval "ac_cv_header_$ac_safe=yes"
11821 else 11649 else
11848 else 11676 else
11849 echo "$ac_t""no" 1>&6 11677 echo "$ac_t""no" 1>&6
11850 fi 11678 fi
11851 done 11679 done
11852 11680
11853 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11681 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11854 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11682 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11855 echo "configure:11856: checking for dlopen in -ldl" >&5 11683 echo "configure:11684: checking for dlopen in -ldl" >&5
11856 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11684 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11857 11685
11858 xe_check_libs=" -ldl " 11686 xe_check_libs=" -ldl "
11859 cat > conftest.$ac_ext <<EOF 11687 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure" 11688 #line 11689 "configure"
11861 #include "confdefs.h" 11689 #include "confdefs.h"
11862 /* Override any gcc2 internal prototype to avoid an error. */ 11690 /* Override any gcc2 internal prototype to avoid an error. */
11863 /* We use char because int might match the return type of a gcc2 11691 /* We use char because int might match the return type of a gcc2
11864 builtin and then its argument prototype would still apply. */ 11692 builtin and then its argument prototype would still apply. */
11865 char dlopen(); 11693 char dlopen();
11866 11694
11867 int main() { 11695 int main() {
11868 dlopen() 11696 dlopen()
11869 ; return 0; } 11697 ; return 0; }
11870 EOF 11698 EOF
11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11699 if { (eval echo configure:11700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11872 rm -rf conftest* 11700 rm -rf conftest*
11873 eval "ac_cv_lib_$ac_lib_var=yes" 11701 eval "ac_cv_lib_$ac_lib_var=yes"
11874 else 11702 else
11875 echo "configure: failed program was:" >&5 11703 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5 11704 cat conftest.$ac_ext >&5
11887 EOF 11715 EOF
11888 cat >> confdefs.h <<\EOF 11716 cat >> confdefs.h <<\EOF
11889 #define HAVE_DLOPEN 1 11717 #define HAVE_DLOPEN 1
11890 EOF 11718 EOF
11891 } 11719 }
11892 DLL_LIB=dl; with_shlib=yes 11720 DLL_LIB=dl; with_modules=yes
11893 else 11721 else
11894 echo "$ac_t""no" 1>&6 11722 echo "$ac_t""no" 1>&6
11895 fi 11723 fi
11896 11724
11897 } 11725 }
11898 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11726 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11899 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11727 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11900 echo "configure:11901: checking for _dlopen in -lc" >&5 11728 echo "configure:11729: checking for _dlopen in -lc" >&5
11901 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11729 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11902 11730
11903 xe_check_libs=" -lc " 11731 xe_check_libs=" -lc "
11904 cat > conftest.$ac_ext <<EOF 11732 cat > conftest.$ac_ext <<EOF
11905 #line 11906 "configure" 11733 #line 11734 "configure"
11906 #include "confdefs.h" 11734 #include "confdefs.h"
11907 /* Override any gcc2 internal prototype to avoid an error. */ 11735 /* Override any gcc2 internal prototype to avoid an error. */
11908 /* We use char because int might match the return type of a gcc2 11736 /* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */ 11737 builtin and then its argument prototype would still apply. */
11910 char _dlopen(); 11738 char _dlopen();
11911 11739
11912 int main() { 11740 int main() {
11913 _dlopen() 11741 _dlopen()
11914 ; return 0; } 11742 ; return 0; }
11915 EOF 11743 EOF
11916 if { (eval echo configure:11917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11744 if { (eval echo configure:11745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11917 rm -rf conftest* 11745 rm -rf conftest*
11918 eval "ac_cv_lib_$ac_lib_var=yes" 11746 eval "ac_cv_lib_$ac_lib_var=yes"
11919 else 11747 else
11920 echo "configure: failed program was:" >&5 11748 echo "configure: failed program was:" >&5
11921 cat conftest.$ac_ext >&5 11749 cat conftest.$ac_ext >&5
11932 EOF 11760 EOF
11933 cat >> confdefs.h <<\EOF 11761 cat >> confdefs.h <<\EOF
11934 #define HAVE_DLOPEN 1 11762 #define HAVE_DLOPEN 1
11935 EOF 11763 EOF
11936 } 11764 }
11937 DLL_LIB=; with_shlib=yes 11765 DLL_LIB=; with_modules=yes
11938 else 11766 else
11939 echo "$ac_t""no" 1>&6 11767 echo "$ac_t""no" 1>&6
11940 fi 11768 fi
11941 11769
11942 } 11770 }
11943 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11771 test -z "$with_modules" && test ! -z "$have_dlfcn" && {
11944 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11772 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11945 echo "configure:11946: checking for dlopen in -lc" >&5 11773 echo "configure:11774: checking for dlopen in -lc" >&5
11946 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11774 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11947 11775
11948 xe_check_libs=" -lc " 11776 xe_check_libs=" -lc "
11949 cat > conftest.$ac_ext <<EOF 11777 cat > conftest.$ac_ext <<EOF
11950 #line 11951 "configure" 11778 #line 11779 "configure"
11951 #include "confdefs.h" 11779 #include "confdefs.h"
11952 /* Override any gcc2 internal prototype to avoid an error. */ 11780 /* Override any gcc2 internal prototype to avoid an error. */
11953 /* We use char because int might match the return type of a gcc2 11781 /* We use char because int might match the return type of a gcc2
11954 builtin and then its argument prototype would still apply. */ 11782 builtin and then its argument prototype would still apply. */
11955 char dlopen(); 11783 char dlopen();
11956 11784
11957 int main() { 11785 int main() {
11958 dlopen() 11786 dlopen()
11959 ; return 0; } 11787 ; return 0; }
11960 EOF 11788 EOF
11961 if { (eval echo configure:11962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11962 rm -rf conftest* 11790 rm -rf conftest*
11963 eval "ac_cv_lib_$ac_lib_var=yes" 11791 eval "ac_cv_lib_$ac_lib_var=yes"
11964 else 11792 else
11965 echo "configure: failed program was:" >&5 11793 echo "configure: failed program was:" >&5
11966 cat conftest.$ac_ext >&5 11794 cat conftest.$ac_ext >&5
11977 EOF 11805 EOF
11978 cat >> confdefs.h <<\EOF 11806 cat >> confdefs.h <<\EOF
11979 #define HAVE_DLOPEN 1 11807 #define HAVE_DLOPEN 1
11980 EOF 11808 EOF
11981 } 11809 }
11982 DLL_LIB=; with_shlib=yes 11810 DLL_LIB=; with_modules=yes
11983 else 11811 else
11984 echo "$ac_t""no" 1>&6 11812 echo "$ac_t""no" 1>&6
11985 fi 11813 fi
11986 11814
11987 } 11815 }
11988 test -z "$with_shlib" && { 11816 test -z "$with_modules" && {
11989 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11817 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11990 echo "configure:11991: checking for shl_load in -ldld" >&5 11818 echo "configure:11819: checking for shl_load in -ldld" >&5
11991 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11819 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11992 11820
11993 xe_check_libs=" -ldld " 11821 xe_check_libs=" -ldld "
11994 cat > conftest.$ac_ext <<EOF 11822 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure" 11823 #line 11824 "configure"
11996 #include "confdefs.h" 11824 #include "confdefs.h"
11997 /* Override any gcc2 internal prototype to avoid an error. */ 11825 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2 11826 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */ 11827 builtin and then its argument prototype would still apply. */
12000 char shl_load(); 11828 char shl_load();
12001 11829
12002 int main() { 11830 int main() {
12003 shl_load() 11831 shl_load()
12004 ; return 0; } 11832 ; return 0; }
12005 EOF 11833 EOF
12006 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11834 if { (eval echo configure:11835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12007 rm -rf conftest* 11835 rm -rf conftest*
12008 eval "ac_cv_lib_$ac_lib_var=yes" 11836 eval "ac_cv_lib_$ac_lib_var=yes"
12009 else 11837 else
12010 echo "configure: failed program was:" >&5 11838 echo "configure: failed program was:" >&5
12011 cat conftest.$ac_ext >&5 11839 cat conftest.$ac_ext >&5
12022 EOF 11850 EOF
12023 cat >> confdefs.h <<\EOF 11851 cat >> confdefs.h <<\EOF
12024 #define HAVE_SHL_LOAD 1 11852 #define HAVE_SHL_LOAD 1
12025 EOF 11853 EOF
12026 } 11854 }
12027 DLL_LIB=dld; with_shlib=yes 11855 DLL_LIB=dld; with_modules=yes
12028 else 11856 else
12029 echo "$ac_t""no" 1>&6 11857 echo "$ac_t""no" 1>&6
12030 fi 11858 fi
12031 11859
12032 } 11860 }
12033 test -z "$with_shlib" && { 11861 test -z "$with_modules" && {
12034 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11862 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
12035 echo "configure:12036: checking for dld_init in -ldld" >&5 11863 echo "configure:11864: checking for dld_init in -ldld" >&5
12036 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11864 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
12037 11865
12038 xe_check_libs=" -ldld " 11866 xe_check_libs=" -ldld "
12039 cat > conftest.$ac_ext <<EOF 11867 cat > conftest.$ac_ext <<EOF
12040 #line 12041 "configure" 11868 #line 11869 "configure"
12041 #include "confdefs.h" 11869 #include "confdefs.h"
12042 /* Override any gcc2 internal prototype to avoid an error. */ 11870 /* Override any gcc2 internal prototype to avoid an error. */
12043 /* We use char because int might match the return type of a gcc2 11871 /* We use char because int might match the return type of a gcc2
12044 builtin and then its argument prototype would still apply. */ 11872 builtin and then its argument prototype would still apply. */
12045 char dld_init(); 11873 char dld_init();
12046 11874
12047 int main() { 11875 int main() {
12048 dld_init() 11876 dld_init()
12049 ; return 0; } 11877 ; return 0; }
12050 EOF 11878 EOF
12051 if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11879 if { (eval echo configure:11880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12052 rm -rf conftest* 11880 rm -rf conftest*
12053 eval "ac_cv_lib_$ac_lib_var=yes" 11881 eval "ac_cv_lib_$ac_lib_var=yes"
12054 else 11882 else
12055 echo "configure: failed program was:" >&5 11883 echo "configure: failed program was:" >&5
12056 cat conftest.$ac_ext >&5 11884 cat conftest.$ac_ext >&5
12067 EOF 11895 EOF
12068 cat >> confdefs.h <<\EOF 11896 cat >> confdefs.h <<\EOF
12069 #define HAVE_DLD_INIT 1 11897 #define HAVE_DLD_INIT 1
12070 EOF 11898 EOF
12071 } 11899 }
12072 DLL_LIB=dld; with_shlib=yes 11900 DLL_LIB=dld; with_modules=yes
12073 else 11901 else
12074 echo "$ac_t""no" 1>&6 11902 echo "$ac_t""no" 1>&6
12075 fi 11903 fi
12076 11904
12077 } 11905 }
12078 if test "$with_shlib" = "yes"; then 11906 if test "$with_modules" = "yes"; then
12079 11907
12080 dll_ld= 11908 dll_ld=
12081 dll_ldflags= 11909 dll_ldflags=
12082 dll_cflags= 11910 dll_cflags=
12083 dll_post= 11911 dll_post=
12085 ld_dynamic_link_flags= 11913 ld_dynamic_link_flags=
12086 xehost=$canonical 11914 xehost=$canonical
12087 xealias=$internal_configuration 11915 xealias=$internal_configuration
12088 11916
12089 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 11917 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
12090 echo "configure:12091: checking how to build dynamic libraries for ${xehost}" >&5 11918 echo "configure:11919: checking how to build dynamic libraries for ${xehost}" >&5
12091 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 11919 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
12092 case "$xehost" in 11920 case "$xehost" in
12093 *-*-linux-gnu*) ;; 11921 *-*-linux-gnu*) ;;
12094 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 11922 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
12095 esac 11923 esac
12113 # Now see if the compiler is really GCC. 11941 # Now see if the compiler is really GCC.
12114 if test "$GCC" = "yes"; then 11942 if test "$GCC" = "yes"; then
12115 XEGCC=yes 11943 XEGCC=yes
12116 else 11944 else
12117 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 11945 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
12118 echo "configure:12119: checking checking whether we are using GNU C" >&5 11946 echo "configure:11947: checking checking whether we are using GNU C" >&5
12119 cat > conftest.$ac_ext <<EOF 11947 cat > conftest.$ac_ext <<EOF
12120 #line 12121 "configure" 11948 #line 11949 "configure"
12121 #include "confdefs.h" 11949 #include "confdefs.h"
12122 11950
12123 #ifdef __GNUC__ 11951 #ifdef __GNUC__
12124 yes; 11952 yes;
12125 #endif 11953 #endif
12137 11965
12138 echo "$ac_t""${XEGCC}" 1>&6 11966 echo "$ac_t""${XEGCC}" 1>&6
12139 fi 11967 fi
12140 11968
12141 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 11969 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
12142 echo "configure:12143: checking how to produce PIC code" >&5 11970 echo "configure:11971: checking how to produce PIC code" >&5
12143 wl= 11971 wl=
12144 11972
12145 can_build_shared=yes 11973 can_build_shared=yes
12146 if test "$XEGCC" = yes; then 11974 if test "$XEGCC" = yes; then
12147 wl='-Wl,' 11975 wl='-Wl,'
12230 if test -n "$dll_cflags"; then 12058 if test -n "$dll_cflags"; then
12231 echo "$ac_t""${dll_cflags}" 1>&6 12059 echo "$ac_t""${dll_cflags}" 1>&6
12232 12060
12233 # Check to make sure the dll_cflags actually works. 12061 # Check to make sure the dll_cflags actually works.
12234 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 12062 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
12235 echo "configure:12236: checking if PIC flag ${dll_cflags} really works" >&5 12063 echo "configure:12064: checking if PIC flag ${dll_cflags} really works" >&5
12236 save_CFLAGS="$CFLAGS" 12064 save_CFLAGS="$CFLAGS"
12237 CFLAGS="$CFLAGS $dll_cflags -DPIC" 12065 CFLAGS="$CFLAGS $dll_cflags -DPIC"
12238 cat > conftest.$ac_ext <<EOF 12066 cat > conftest.$ac_ext <<EOF
12239 #line 12240 "configure" 12067 #line 12068 "configure"
12240 #include "confdefs.h" 12068 #include "confdefs.h"
12241 12069
12242 int main() { 12070 int main() {
12243 int x=0; 12071 int x=0;
12244 ; return 0; } 12072 ; return 0; }
12245 EOF 12073 EOF
12246 if { (eval echo configure:12247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12074 if { (eval echo configure:12075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12247 rm -rf conftest* 12075 rm -rf conftest*
12248 12076
12249 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 12077 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
12250 # reports no error. So, we need to grep stderr for (Bundled). 12078 # reports no error. So, we need to grep stderr for (Bundled).
12251 if grep '(Bundled)' config.log >/dev/null; then 12079 if grep '(Bundled)' config.log >/dev/null; then
12272 if test "$can_build_shared" = "yes"; then 12100 if test "$can_build_shared" = "yes"; then
12273 cc_produces_so=no 12101 cc_produces_so=no
12274 xldf= 12102 xldf=
12275 xcldf= 12103 xcldf=
12276 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 12104 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
12277 echo "configure:12278: checking if C compiler can produce shared libraries" >&5 12105 echo "configure:12106: checking if C compiler can produce shared libraries" >&5
12278 if test "$XEGCC" = yes; then 12106 if test "$XEGCC" = yes; then
12279 xcldf="-shared" 12107 xcldf="-shared"
12280 xldf="-shared" 12108 xldf="-shared"
12281 else # Not using GCC 12109 else # Not using GCC
12282 case "$xehost_os" in 12110 case "$xehost_os" in
12323 LDFLAGS="$xcldf $LDFLAGS" 12151 LDFLAGS="$xcldf $LDFLAGS"
12324 LIBS= 12152 LIBS=
12325 xe_libs= 12153 xe_libs=
12326 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 12154 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
12327 cat > conftest.$ac_ext <<EOF 12155 cat > conftest.$ac_ext <<EOF
12328 #line 12329 "configure" 12156 #line 12157 "configure"
12329 #include "confdefs.h" 12157 #include "confdefs.h"
12330 12158
12331 int main() { 12159 int main() {
12332 int x=0; 12160 int x=0;
12333 ; return 0; } 12161 ; return 0; }
12334 EOF 12162 EOF
12335 if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12163 if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12336 rm -rf conftest* 12164 rm -rf conftest*
12337 cc_produces_so=yes 12165 cc_produces_so=yes
12338 else 12166 else
12339 echo "configure: failed program was:" >&5 12167 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5 12168 cat conftest.$ac_ext >&5
12355 if test -z "$LTLD"; then 12183 if test -z "$LTLD"; then
12356 ac_prog=ld 12184 ac_prog=ld
12357 if test "$XEGCC" = yes; then 12185 if test "$XEGCC" = yes; then
12358 # Check if gcc -print-prog-name=ld gives a path. 12186 # Check if gcc -print-prog-name=ld gives a path.
12359 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 12187 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
12360 echo "configure:12361: checking for ld used by GCC" >&5 12188 echo "configure:12189: checking for ld used by GCC" >&5
12361 ac_prog=`($CC -print-prog-name=ld) 2>&5` 12189 ac_prog=`($CC -print-prog-name=ld) 2>&5`
12362 case "$ac_prog" in 12190 case "$ac_prog" in
12363 # Accept absolute paths. 12191 # Accept absolute paths.
12364 /*) 12192 /*)
12365 if test -z "$LTLD"; then 12193 if test -z "$LTLD"; then
12380 with_gnu_ld=unknown 12208 with_gnu_ld=unknown
12381 ;; 12209 ;;
12382 esac 12210 esac
12383 else 12211 else
12384 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 12212 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
12385 echo "configure:12386: checking for GNU ld" >&5 12213 echo "configure:12214: checking for GNU ld" >&5
12386 fi 12214 fi
12387 12215
12388 if test -z "$LTLD"; then 12216 if test -z "$LTLD"; then
12389 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 12217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12390 for ac_dir in $PATH; do 12218 for ac_dir in $PATH; do
12418 12246
12419 ld_dynamic_link_flags= 12247 ld_dynamic_link_flags=
12420 12248
12421 # Check to see if it really is or isn't GNU ld. 12249 # Check to see if it really is or isn't GNU ld.
12422 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 12250 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
12423 echo "configure:12424: checking if the linker is GNU ld" >&5 12251 echo "configure:12252: checking if the linker is GNU ld" >&5
12424 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 12252 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12425 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 12253 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
12426 xe_gnu_ld=yes 12254 xe_gnu_ld=yes
12427 else 12255 else
12428 xe_gnu_ld=no 12256 xe_gnu_ld=no
12445 can_build_shared=yes 12273 can_build_shared=yes
12446 else 12274 else
12447 # OK - only NOW do we futz about with ld. 12275 # OK - only NOW do we futz about with ld.
12448 # See if the linker supports building shared libraries. 12276 # See if the linker supports building shared libraries.
12449 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 12277 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
12450 echo "configure:12451: checking whether the linker supports shared libraries" >&5 12278 echo "configure:12279: checking whether the linker supports shared libraries" >&5
12451 dll_ld=$CC 12279 dll_ld=$CC
12452 dll_ldflags=$LDFLAGS 12280 dll_ldflags=$LDFLAGS
12453 ld_shlibs=yes 12281 ld_shlibs=yes
12454 can_build_shared=yes 12282 can_build_shared=yes
12455 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 12283 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
12661 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 12489 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
12662 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi 12490 test ! -z "$DLL_LIB" && LIBS="-l${DLL_LIB} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${DLL_LIB}\" to \$LIBS"; fi
12663 for ac_func in dlerror _dlerror 12491 for ac_func in dlerror _dlerror
12664 do 12492 do
12665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12666 echo "configure:12667: checking for $ac_func" >&5 12494 echo "configure:12495: checking for $ac_func" >&5
12667 12495
12668 cat > conftest.$ac_ext <<EOF 12496 cat > conftest.$ac_ext <<EOF
12669 #line 12670 "configure" 12497 #line 12498 "configure"
12670 #include "confdefs.h" 12498 #include "confdefs.h"
12671 /* System header to define __stub macros and hopefully few prototypes, 12499 /* System header to define __stub macros and hopefully few prototypes,
12672 which can conflict with char $ac_func(); below. */ 12500 which can conflict with char $ac_func(); below. */
12673 #include <assert.h> 12501 #include <assert.h>
12674 /* Override any gcc2 internal prototype to avoid an error. */ 12502 /* Override any gcc2 internal prototype to avoid an error. */
12687 $ac_func(); 12515 $ac_func();
12688 #endif 12516 #endif
12689 12517
12690 ; return 0; } 12518 ; return 0; }
12691 EOF 12519 EOF
12692 if { (eval echo configure:12693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12520 if { (eval echo configure:12521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12693 rm -rf conftest* 12521 rm -rf conftest*
12694 eval "ac_cv_func_$ac_func=yes" 12522 eval "ac_cv_func_$ac_func=yes"
12695 else 12523 else
12696 echo "configure: failed program was:" >&5 12524 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5 12525 cat conftest.$ac_ext >&5
12716 fi 12544 fi
12717 done 12545 done
12718 12546
12719 else 12547 else
12720 echo "configure: warning: disabling shared library support" 1>&2 12548 echo "configure: warning: disabling shared library support" 1>&2
12721 with_shlib=no 12549 with_modules=no
12722 fi 12550 fi
12723 fi 12551 fi
12724 12552
12725 cat > conftest.$ac_ext <<EOF 12553 cat > conftest.$ac_ext <<EOF
12726 #line 12727 "configure" 12554 #line 12555 "configure"
12727 #include "confdefs.h" 12555 #include "confdefs.h"
12728 int main(int c,char *v[]){return 0;} 12556 int main(int c,char *v[]){return 0;}
12729 EOF 12557 EOF
12730 if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12731 then 12559 then
12732 : 12560 :
12733 else 12561 else
12734 conftest_rc="$?" 12562 conftest_rc="$?"
12735 echo "configure: failed program was:" >&5 12563 echo "configure: failed program was:" >&5
12880 for dir in $MAKE_SUBDIR; do echo "import $dir"; done 12708 for dir in $MAKE_SUBDIR; do echo "import $dir"; done
12881 ) > .sbinit 12709 ) > .sbinit
12882 fi 12710 fi
12883 12711
12884 rm -f core 12712 rm -f core
12713
12714
12885 12715
12886 12716
12887 12717
12888 12718
12889 12719
13429 lucid ) echo " Using Lucid scrollbars." ;; 13259 lucid ) echo " Using Lucid scrollbars." ;;
13430 motif ) echo " Using Motif scrollbars." ;; 13260 motif ) echo " Using Motif scrollbars." ;;
13431 athena ) echo " Using Athena scrollbars." ;; 13261 athena ) echo " Using Athena scrollbars." ;;
13432 athena3d ) echo " Using Athena-3d scrollbars." ;; 13262 athena3d ) echo " Using Athena-3d scrollbars." ;;
13433 esac 13263 esac
13264 case "$with_widgets" in
13265 motif ) echo " Using Motif native widgets." ;;
13266 esac
13434 case "$with_dialogs" in 13267 case "$with_dialogs" in
13435 motif ) 13268 motif )
13436 echo " Using Motif dialog boxes." 13269 echo " Using Motif dialog boxes."
13437 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then 13270 if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then
13438 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." 13271 echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher."
13442 fi; fi 13275 fi; fi
13443 ;; 13276 ;;
13444 athena ) echo " Using Athena dialog boxes." ;; 13277 athena ) echo " Using Athena dialog boxes." ;;
13445 athena3d ) echo " Using Athena-3d dialog boxes." ;; 13278 athena3d ) echo " Using Athena-3d dialog boxes." ;;
13446 esac 13279 esac
13447 test "$with_shlib" = "yes" && echo " Compiling in DLL support." 13280 test "$with_modules" = "yes" && echo " Compiling in DSO module support."
13448 test "$with_clash_detection" = yes && \ 13281 test "$with_clash_detection" = yes && \
13449 echo " Clash detection will use \"$lockdir\" for locking files." 13282 echo " Clash detection will use \"$lockdir\" for locking files."
13450 echo " movemail will use \"$mail_locking\" for locking mail spool files." 13283 echo " movemail will use \"$mail_locking\" for locking mail spool files."
13451 test "$with_pop" = yes && echo " Using POP for mail access." 13284 test "$with_pop" = yes && echo " Using POP for mail access."
13452 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication." 13285 test "$with_kerberos" = yes && echo " Using Kerberos for POP authentication."
13478 test "$file" = src/Makefile.in && \ 13311 test "$file" = src/Makefile.in && \
13479 file="src/Makefile.in:src/Makefile.in.in:src/depend" 13312 file="src/Makefile.in:src/Makefile.in.in:src/depend"
13480 ac_output_files="${ac_output_files+$ac_output_files }$file" 13313 ac_output_files="${ac_output_files+$ac_output_files }$file"
13481 done 13314 done
13482 ac_output_files="$ac_output_files src/paths.h lib-src/config.values" 13315 ac_output_files="$ac_output_files src/paths.h lib-src/config.values"
13483 if test "$with_shlib" = "yes"; then 13316 if test "$with_modules" = "yes"; then
13484 ac_output_files="$ac_output_files lib-src/ellcc.h" 13317 ac_output_files="$ac_output_files lib-src/ellcc.h"
13485 fi 13318 fi
13486 13319
13487 trap '' 1 2 15 13320 trap '' 1 2 15
13488 13321
13607 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 13440 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
13608 s%@PROGNAME@%$PROGNAME%g 13441 s%@PROGNAME@%$PROGNAME%g
13609 s%@version@%$version%g 13442 s%@version@%$version%g
13610 s%@configuration@%$configuration%g 13443 s%@configuration@%$configuration%g
13611 s%@canonical@%$canonical%g 13444 s%@canonical@%$canonical%g
13445 s%@inststaticdir@%$inststaticdir%g
13446 s%@instvardir@%$instvardir%g
13612 s%@srcdir@%$srcdir%g 13447 s%@srcdir@%$srcdir%g
13613 s%@pkgdir@%$pkgdir%g 13448 s%@pkgdir@%$pkgdir%g
13614 s%@statedir@%$statedir%g 13449 s%@statedir@%$statedir%g
13615 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g 13450 s%@PREFIX_USER_DEFINED@%$PREFIX_USER_DEFINED%g
13616 s%@PREFIX@%$PREFIX%g 13451 s%@PREFIX@%$PREFIX%g