comparison configure @ 353:3b3709405255 r21-1-6

Import from CVS: tag r21-1-6
author cvs
date Mon, 13 Aug 2007 10:55:33 +0200
parents 8429d81ab209
children 182f72e8cd0d
comparison
equal deleted inserted replaced
352:e7288c5461ae 353:3b3709405255
1 #! /bin/sh 1 #! /bin/sh
2 2
3 #### Configuration script for XEmacs. Largely divergent from FSF. 3 #### Configuration script for XEmacs. Largely divergent from FSF.
4 #### Guess values for system-dependent variables and create Makefiles. 4 #### Guess values for system-dependent variables and create Makefiles.
5 #### Generated automatically using autoconf version 2.12 5 #### Generated automatically using autoconf version 2.13
6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6 #### Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois. 7 #### Copyright (C) 1993-1995 Board of Trustees, University of Illinois.
8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc. 8 #### Copyright (C) 1996, 1997 Sun Microsystems, Inc.
9 #### Copyright (C) 1995, 1996 Ben Wing. 9 #### Copyright (C) 1995, 1996 Ben Wing.
10 10
196 ac_cpp='$CPP '"$xe_cppflags" 196 ac_cpp='$CPP '"$xe_cppflags"
197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 197 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 198 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
199 cross_compiling=no 199 cross_compiling=no
200 200
201 ac_exeext=
202 ac_objext=o
201 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 203 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
202 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 204 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
203 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 205 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
204 ac_n= ac_c=' 206 ac_n= ac_c='
205 ' ac_t=' ' 207 ' ac_t=' '
750 ;; 752 ;;
751 esac 753 esac
752 754
753 if test -z "$configuration"; then 755 if test -z "$configuration"; then
754 echo $ac_n "checking "host system type"""... $ac_c" 1>&6 756 echo $ac_n "checking "host system type"""... $ac_c" 1>&6
755 echo "configure:756: checking "host system type"" >&5 757 echo "configure:758: checking "host system type"" >&5
756 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \ 758 if configuration=`${CONFIG_SHELL-/bin/sh} $srcdir/config.guess | \
757 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then 759 sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` ; then
758 echo "$ac_t""$configuration" 1>&6 760 echo "$ac_t""$configuration" 1>&6
759 else 761 else
760 echo "$ac_t""unknown" 1>&6 762 echo "$ac_t""unknown" 1>&6
764 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 766 echo " Use \`$progname --help' to show usage.") >&2 && exit 1
765 fi 767 fi
766 fi 768 fi
767 769
768 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 770 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
769 echo "configure:770: checking whether ln -s works" >&5 771 echo "configure:772: checking whether ln -s works" >&5
770 772
771 rm -f conftestdata 773 rm -f conftestdata
772 if ln -s X conftestdata 2>/dev/null 774 if ln -s X conftestdata 2>/dev/null
773 then 775 then
774 rm -f conftestdata 776 rm -f conftestdata
1001 } 1003 }
1002 1004
1003 1005
1004 1006
1005 echo "checking "the configuration name"" 1>&6 1007 echo "checking "the configuration name"" 1>&6
1006 echo "configure:1007: checking "the configuration name"" >&5 1008 echo "configure:1009: checking "the configuration name"" >&5
1007 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` 1009 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'`
1008 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 1010 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
1009 exit $? 1011 exit $?
1010 fi 1012 fi
1011 1013
1385 if test "$dynamic" = "yes" ; then 1387 if test "$dynamic" = "yes" ; then
1386 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ; 1388 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE -D_SCO_ELF" ;
1387 else 1389 else
1388 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ; 1390 NON_GNU_CPP="/lib/cpp -D_XOPEN_SOURCE" ;
1389 fi ;; 1391 fi ;;
1392 *-sysv5* ) opsys=sco7 ;;
1390 *-386bsd* ) opsys=386bsd ;; 1393 *-386bsd* ) opsys=386bsd ;;
1391 *-freebsd* ) opsys=freebsd ;; 1394 *-freebsd* ) opsys=freebsd ;;
1392 *-nextstep* ) opsys=nextstep ;; 1395 *-nextstep* ) opsys=nextstep ;;
1393 *-pc-cygwin32 ) opsys=cygwin32 ;; 1396 *-pc-cygwin32 ) opsys=cygwin32 ;;
1394 esac 1397 esac
1494 xe_save_CFLAGS="$CFLAGS" 1497 xe_save_CFLAGS="$CFLAGS"
1495 1498
1496 # Extract the first word of "gcc", so it can be a program name with args. 1499 # Extract the first word of "gcc", so it can be a program name with args.
1497 set dummy gcc; ac_word=$2 1500 set dummy gcc; ac_word=$2
1498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1499 echo "configure:1500: checking for $ac_word" >&5 1502 echo "configure:1503: checking for $ac_word" >&5
1500 1503
1501 if test -n "$CC"; then 1504 if test -n "$CC"; then
1502 ac_cv_prog_CC="$CC" # Let the user override the test. 1505 ac_cv_prog_CC="$CC" # Let the user override the test.
1503 else 1506 else
1504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1505 for ac_dir in $PATH; do 1508 ac_dummy="$PATH"
1509 for ac_dir in $ac_dummy; do
1506 test -z "$ac_dir" && ac_dir=. 1510 test -z "$ac_dir" && ac_dir=.
1507 if test -f $ac_dir/$ac_word; then 1511 if test -f $ac_dir/$ac_word; then
1508 ac_cv_prog_CC="gcc" 1512 ac_cv_prog_CC="gcc"
1509 break 1513 break
1510 fi 1514 fi
1520 1524
1521 if test -z "$CC"; then 1525 if test -z "$CC"; then
1522 # Extract the first word of "cc", so it can be a program name with args. 1526 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2 1527 set dummy cc; ac_word=$2
1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_word" >&5 1529 echo "configure:1530: checking for $ac_word" >&5
1526 1530
1527 if test -n "$CC"; then 1531 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test. 1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else 1533 else
1530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1531 ac_prog_rejected=no 1535 ac_prog_rejected=no
1532 for ac_dir in $PATH; do 1536 ac_dummy="$PATH"
1537 for ac_dir in $ac_dummy; do
1533 test -z "$ac_dir" && ac_dir=. 1538 test -z "$ac_dir" && ac_dir=.
1534 if test -f $ac_dir/$ac_word; then 1539 if test -f $ac_dir/$ac_word; then
1535 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1540 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1536 ac_prog_rejected=yes 1541 ac_prog_rejected=yes
1537 continue 1542 continue
1561 echo "$ac_t""$CC" 1>&6 1566 echo "$ac_t""$CC" 1>&6
1562 else 1567 else
1563 echo "$ac_t""no" 1>&6 1568 echo "$ac_t""no" 1>&6
1564 fi 1569 fi
1565 1570
1571 if test -z "$CC"; then
1572 case "`uname -s`" in
1573 *win32* | *WIN32*)
1574 # Extract the first word of "cl", so it can be a program name with args.
1575 set dummy cl; ac_word=$2
1576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_word" >&5
1578
1579 if test -n "$CC"; then
1580 ac_cv_prog_CC="$CC" # Let the user override the test.
1581 else
1582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1583 ac_dummy="$PATH"
1584 for ac_dir in $ac_dummy; do
1585 test -z "$ac_dir" && ac_dir=.
1586 if test -f $ac_dir/$ac_word; then
1587 ac_cv_prog_CC="cl"
1588 break
1589 fi
1590 done
1591 IFS="$ac_save_ifs"
1592 fi
1593 CC="$ac_cv_prog_CC"
1594 if test -n "$CC"; then
1595 echo "$ac_t""$CC" 1>&6
1596 else
1597 echo "$ac_t""no" 1>&6
1598 fi
1599 ;;
1600 esac
1601 fi
1566 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1602 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1567 fi 1603 fi
1568 1604
1569 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1605 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1570 echo "configure:1571: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1606 echo "configure:1607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1571 1607
1572 ac_ext=c 1608 ac_ext=c
1573 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1609 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1574 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1610 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1575 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1611 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1576 ac_cpp='$CPP '"$xe_cppflags" 1612 ac_cpp='$CPP '"$xe_cppflags"
1577 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1613 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1578 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1614 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1579 cross_compiling=no 1615 cross_compiling=no
1580 1616
1581 cat > conftest.$ac_ext <<EOF 1617 cat > conftest.$ac_ext << EOF
1582 #line 1583 "configure" 1618
1583 #include "confdefs.h" 1619 #line 1620 "configure"
1620 #include "confdefs.h"
1621
1584 main(){return(0);} 1622 main(){return(0);}
1585 EOF 1623 EOF
1586 if { (eval echo configure:1587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1624 if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1587 ac_cv_prog_cc_works=yes 1625 ac_cv_prog_cc_works=yes
1588 # If we can't run a trivial program, we are probably using a cross compiler. 1626 # If we can't run a trivial program, we are probably using a cross compiler.
1589 if (./conftest; exit) 2>/dev/null; then 1627 if (./conftest; exit) 2>/dev/null; then
1590 ac_cv_prog_cc_cross=no 1628 ac_cv_prog_cc_cross=no
1591 else 1629 else
1595 echo "configure: failed program was:" >&5 1633 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5 1634 cat conftest.$ac_ext >&5
1597 ac_cv_prog_cc_works=no 1635 ac_cv_prog_cc_works=no
1598 fi 1636 fi
1599 rm -fr conftest* 1637 rm -fr conftest*
1638 ac_ext=c
1639 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1640 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1641 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_cpp='$CPP '"$xe_cppflags"
1643 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1644 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1645 cross_compiling=no
1600 1646
1601 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1647 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1602 if test $ac_cv_prog_cc_works = no; then 1648 if test $ac_cv_prog_cc_works = no; then
1603 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1649 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1604 fi 1650 fi
1605 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1651 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1606 echo "configure:1607: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1652 echo "configure:1653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1607 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1653 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1608 cross_compiling=$ac_cv_prog_cc_cross 1654 cross_compiling=$ac_cv_prog_cc_cross
1609 1655
1610 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1656 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1611 echo "configure:1612: checking whether we are using GNU C" >&5 1657 echo "configure:1658: checking whether we are using GNU C" >&5
1612 1658
1613 cat > conftest.c <<EOF 1659 cat > conftest.c <<EOF
1614 #ifdef __GNUC__ 1660 #ifdef __GNUC__
1615 yes; 1661 yes;
1616 #endif 1662 #endif
1617 EOF 1663 EOF
1618 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1664 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1619 ac_cv_prog_gcc=yes 1665 ac_cv_prog_gcc=yes
1620 else 1666 else
1621 ac_cv_prog_gcc=no 1667 ac_cv_prog_gcc=no
1622 fi 1668 fi
1623 1669
1624 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1670 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1625 1671
1626 if test $ac_cv_prog_gcc = yes; then 1672 if test $ac_cv_prog_gcc = yes; then
1627 GCC=yes 1673 GCC=yes
1628 ac_test_CFLAGS="${CFLAGS+set}" 1674 else
1629 ac_save_CFLAGS="$CFLAGS" 1675 GCC=
1630 CFLAGS= 1676 fi
1631 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1677
1632 echo "configure:1633: checking whether ${CC-cc} accepts -g" >&5 1678 ac_test_CFLAGS="${CFLAGS+set}"
1679 ac_save_CFLAGS="$CFLAGS"
1680 CFLAGS=
1681 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1682 echo "configure:1683: checking whether ${CC-cc} accepts -g" >&5
1633 1683
1634 echo 'void f(){}' > conftest.c 1684 echo 'void f(){}' > conftest.c
1635 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1685 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1636 ac_cv_prog_cc_g=yes 1686 ac_cv_prog_cc_g=yes
1637 else 1687 else
1639 fi 1689 fi
1640 rm -f conftest* 1690 rm -f conftest*
1641 1691
1642 1692
1643 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1693 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1644 if test "$ac_test_CFLAGS" = set; then 1694 if test "$ac_test_CFLAGS" = set; then
1645 CFLAGS="$ac_save_CFLAGS" 1695 CFLAGS="$ac_save_CFLAGS"
1646 elif test $ac_cv_prog_cc_g = yes; then 1696 elif test $ac_cv_prog_cc_g = yes; then
1697 if test "$GCC" = yes; then
1647 CFLAGS="-g -O2" 1698 CFLAGS="-g -O2"
1648 else 1699 else
1700 CFLAGS="-g"
1701 fi
1702 else
1703 if test "$GCC" = yes; then
1649 CFLAGS="-O2" 1704 CFLAGS="-O2"
1705 else
1706 CFLAGS=
1650 fi 1707 fi
1651 else
1652 GCC=
1653 test "${CFLAGS+set}" = set || CFLAGS="-g"
1654 fi 1708 fi
1655 1709
1656 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1710 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1657 CC=${NON_GNU_CC-cc} 1711 CC=${NON_GNU_CC-cc}
1658 # Extract the first word of "gcc", so it can be a program name with args. 1712 # Extract the first word of "gcc", so it can be a program name with args.
1659 set dummy gcc; ac_word=$2 1713 set dummy gcc; ac_word=$2
1660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1661 echo "configure:1662: checking for $ac_word" >&5 1715 echo "configure:1716: checking for $ac_word" >&5
1662 1716
1663 if test -n "$CC"; then 1717 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test. 1718 ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else 1719 else
1666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1667 for ac_dir in $PATH; do 1721 ac_dummy="$PATH"
1722 for ac_dir in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir=. 1723 test -z "$ac_dir" && ac_dir=.
1669 if test -f $ac_dir/$ac_word; then 1724 if test -f $ac_dir/$ac_word; then
1670 ac_cv_prog_CC="gcc" 1725 ac_cv_prog_CC="gcc"
1671 break 1726 break
1672 fi 1727 fi
1682 1737
1683 if test -z "$CC"; then 1738 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args. 1739 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2 1740 set dummy cc; ac_word=$2
1686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1687 echo "configure:1688: checking for $ac_word" >&5 1742 echo "configure:1743: checking for $ac_word" >&5
1688 1743
1689 if test -n "$CC"; then 1744 if test -n "$CC"; then
1690 ac_cv_prog_CC="$CC" # Let the user override the test. 1745 ac_cv_prog_CC="$CC" # Let the user override the test.
1691 else 1746 else
1692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1693 ac_prog_rejected=no 1748 ac_prog_rejected=no
1694 for ac_dir in $PATH; do 1749 ac_dummy="$PATH"
1750 for ac_dir in $ac_dummy; do
1695 test -z "$ac_dir" && ac_dir=. 1751 test -z "$ac_dir" && ac_dir=.
1696 if test -f $ac_dir/$ac_word; then 1752 if test -f $ac_dir/$ac_word; then
1697 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1753 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1698 ac_prog_rejected=yes 1754 ac_prog_rejected=yes
1699 continue 1755 continue
1723 echo "$ac_t""$CC" 1>&6 1779 echo "$ac_t""$CC" 1>&6
1724 else 1780 else
1725 echo "$ac_t""no" 1>&6 1781 echo "$ac_t""no" 1>&6
1726 fi 1782 fi
1727 1783
1784 if test -z "$CC"; then
1785 case "`uname -s`" in
1786 *win32* | *WIN32*)
1787 # Extract the first word of "cl", so it can be a program name with args.
1788 set dummy cl; ac_word=$2
1789 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1790 echo "configure:1791: checking for $ac_word" >&5
1791
1792 if test -n "$CC"; then
1793 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 else
1795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1796 ac_dummy="$PATH"
1797 for ac_dir in $ac_dummy; do
1798 test -z "$ac_dir" && ac_dir=.
1799 if test -f $ac_dir/$ac_word; then
1800 ac_cv_prog_CC="cl"
1801 break
1802 fi
1803 done
1804 IFS="$ac_save_ifs"
1805 fi
1806 CC="$ac_cv_prog_CC"
1807 if test -n "$CC"; then
1808 echo "$ac_t""$CC" 1>&6
1809 else
1810 echo "$ac_t""no" 1>&6
1811 fi
1812 ;;
1813 esac
1814 fi
1728 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1815 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1729 fi 1816 fi
1730 1817
1731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1819 echo "configure:1820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1733 1820
1734 ac_ext=c 1821 ac_ext=c
1735 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1822 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1736 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1823 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1737 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1824 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1738 ac_cpp='$CPP '"$xe_cppflags" 1825 ac_cpp='$CPP '"$xe_cppflags"
1739 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1826 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1740 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1827 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1741 cross_compiling=no 1828 cross_compiling=no
1742 1829
1743 cat > conftest.$ac_ext <<EOF 1830 cat > conftest.$ac_ext << EOF
1744 #line 1745 "configure" 1831
1745 #include "confdefs.h" 1832 #line 1833 "configure"
1833 #include "confdefs.h"
1834
1746 main(){return(0);} 1835 main(){return(0);}
1747 EOF 1836 EOF
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1837 if { (eval echo configure:1838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1749 ac_cv_prog_cc_works=yes 1838 ac_cv_prog_cc_works=yes
1750 # If we can't run a trivial program, we are probably using a cross compiler. 1839 # If we can't run a trivial program, we are probably using a cross compiler.
1751 if (./conftest; exit) 2>/dev/null; then 1840 if (./conftest; exit) 2>/dev/null; then
1752 ac_cv_prog_cc_cross=no 1841 ac_cv_prog_cc_cross=no
1753 else 1842 else
1757 echo "configure: failed program was:" >&5 1846 echo "configure: failed program was:" >&5
1758 cat conftest.$ac_ext >&5 1847 cat conftest.$ac_ext >&5
1759 ac_cv_prog_cc_works=no 1848 ac_cv_prog_cc_works=no
1760 fi 1849 fi
1761 rm -fr conftest* 1850 rm -fr conftest*
1851 ac_ext=c
1852 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1853 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1854 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_cpp='$CPP '"$xe_cppflags"
1856 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1857 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1858 cross_compiling=no
1762 1859
1763 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1860 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1764 if test $ac_cv_prog_cc_works = no; then 1861 if test $ac_cv_prog_cc_works = no; then
1765 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1862 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1766 fi 1863 fi
1767 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1864 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1768 echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1865 echo "configure:1866: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1769 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1866 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1770 cross_compiling=$ac_cv_prog_cc_cross 1867 cross_compiling=$ac_cv_prog_cc_cross
1771 1868
1772 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1869 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether we are using GNU C" >&5 1870 echo "configure:1871: checking whether we are using GNU C" >&5
1774 1871
1775 cat > conftest.c <<EOF 1872 cat > conftest.c <<EOF
1776 #ifdef __GNUC__ 1873 #ifdef __GNUC__
1777 yes; 1874 yes;
1778 #endif 1875 #endif
1779 EOF 1876 EOF
1780 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1877 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1781 ac_cv_prog_gcc=yes 1878 ac_cv_prog_gcc=yes
1782 else 1879 else
1783 ac_cv_prog_gcc=no 1880 ac_cv_prog_gcc=no
1784 fi 1881 fi
1785 1882
1786 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1883 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1787 1884
1788 if test $ac_cv_prog_gcc = yes; then 1885 if test $ac_cv_prog_gcc = yes; then
1789 GCC=yes 1886 GCC=yes
1790 ac_test_CFLAGS="${CFLAGS+set}" 1887 else
1791 ac_save_CFLAGS="$CFLAGS" 1888 GCC=
1792 CFLAGS= 1889 fi
1793 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1890
1794 echo "configure:1795: checking whether ${CC-cc} accepts -g" >&5 1891 ac_test_CFLAGS="${CFLAGS+set}"
1892 ac_save_CFLAGS="$CFLAGS"
1893 CFLAGS=
1894 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether ${CC-cc} accepts -g" >&5
1795 1896
1796 echo 'void f(){}' > conftest.c 1897 echo 'void f(){}' > conftest.c
1797 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1898 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1798 ac_cv_prog_cc_g=yes 1899 ac_cv_prog_cc_g=yes
1799 else 1900 else
1801 fi 1902 fi
1802 rm -f conftest* 1903 rm -f conftest*
1803 1904
1804 1905
1805 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1906 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1806 if test "$ac_test_CFLAGS" = set; then 1907 if test "$ac_test_CFLAGS" = set; then
1807 CFLAGS="$ac_save_CFLAGS" 1908 CFLAGS="$ac_save_CFLAGS"
1808 elif test $ac_cv_prog_cc_g = yes; then 1909 elif test $ac_cv_prog_cc_g = yes; then
1910 if test "$GCC" = yes; then
1809 CFLAGS="-g -O2" 1911 CFLAGS="-g -O2"
1810 else 1912 else
1913 CFLAGS="-g"
1914 fi
1915 else
1916 if test "$GCC" = yes; then
1811 CFLAGS="-O2" 1917 CFLAGS="-O2"
1918 else
1919 CFLAGS=
1812 fi 1920 fi
1813 else
1814 GCC=
1815 test "${CFLAGS+set}" = set || CFLAGS="-g"
1816 fi 1921 fi
1817 1922
1818 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1923 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1819 CC=gcc 1924 CC=gcc
1820 # Extract the first word of "gcc", so it can be a program name with args. 1925 # Extract the first word of "gcc", so it can be a program name with args.
1821 set dummy gcc; ac_word=$2 1926 set dummy gcc; ac_word=$2
1822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1823 echo "configure:1824: checking for $ac_word" >&5 1928 echo "configure:1929: checking for $ac_word" >&5
1824 1929
1825 if test -n "$CC"; then 1930 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # Let the user override the test. 1931 ac_cv_prog_CC="$CC" # Let the user override the test.
1827 else 1932 else
1828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 for ac_dir in $PATH; do 1934 ac_dummy="$PATH"
1935 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=. 1936 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then 1937 if test -f $ac_dir/$ac_word; then
1832 ac_cv_prog_CC="gcc" 1938 ac_cv_prog_CC="gcc"
1833 break 1939 break
1834 fi 1940 fi
1844 1950
1845 if test -z "$CC"; then 1951 if test -z "$CC"; then
1846 # Extract the first word of "cc", so it can be a program name with args. 1952 # Extract the first word of "cc", so it can be a program name with args.
1847 set dummy cc; ac_word=$2 1953 set dummy cc; ac_word=$2
1848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1849 echo "configure:1850: checking for $ac_word" >&5 1955 echo "configure:1956: checking for $ac_word" >&5
1850 1956
1851 if test -n "$CC"; then 1957 if test -n "$CC"; then
1852 ac_cv_prog_CC="$CC" # Let the user override the test. 1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1853 else 1959 else
1854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1855 ac_prog_rejected=no 1961 ac_prog_rejected=no
1856 for ac_dir in $PATH; do 1962 ac_dummy="$PATH"
1963 for ac_dir in $ac_dummy; do
1857 test -z "$ac_dir" && ac_dir=. 1964 test -z "$ac_dir" && ac_dir=.
1858 if test -f $ac_dir/$ac_word; then 1965 if test -f $ac_dir/$ac_word; then
1859 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 1966 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1860 ac_prog_rejected=yes 1967 ac_prog_rejected=yes
1861 continue 1968 continue
1885 echo "$ac_t""$CC" 1>&6 1992 echo "$ac_t""$CC" 1>&6
1886 else 1993 else
1887 echo "$ac_t""no" 1>&6 1994 echo "$ac_t""no" 1>&6
1888 fi 1995 fi
1889 1996
1997 if test -z "$CC"; then
1998 case "`uname -s`" in
1999 *win32* | *WIN32*)
2000 # Extract the first word of "cl", so it can be a program name with args.
2001 set dummy cl; ac_word=$2
2002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2003 echo "configure:2004: checking for $ac_word" >&5
2004
2005 if test -n "$CC"; then
2006 ac_cv_prog_CC="$CC" # Let the user override the test.
2007 else
2008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2009 ac_dummy="$PATH"
2010 for ac_dir in $ac_dummy; do
2011 test -z "$ac_dir" && ac_dir=.
2012 if test -f $ac_dir/$ac_word; then
2013 ac_cv_prog_CC="cl"
2014 break
2015 fi
2016 done
2017 IFS="$ac_save_ifs"
2018 fi
2019 CC="$ac_cv_prog_CC"
2020 if test -n "$CC"; then
2021 echo "$ac_t""$CC" 1>&6
2022 else
2023 echo "$ac_t""no" 1>&6
2024 fi
2025 ;;
2026 esac
2027 fi
1890 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 2028 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1891 fi 2029 fi
1892 2030
1893 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2031 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2032 echo "configure:2033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1895 2033
1896 ac_ext=c 2034 ac_ext=c
1897 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 2035 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1898 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 2036 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1899 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 2037 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1900 ac_cpp='$CPP '"$xe_cppflags" 2038 ac_cpp='$CPP '"$xe_cppflags"
1901 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 2039 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1902 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 2040 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1903 cross_compiling=no 2041 cross_compiling=no
1904 2042
1905 cat > conftest.$ac_ext <<EOF 2043 cat > conftest.$ac_ext << EOF
1906 #line 1907 "configure" 2044
1907 #include "confdefs.h" 2045 #line 2046 "configure"
2046 #include "confdefs.h"
2047
1908 main(){return(0);} 2048 main(){return(0);}
1909 EOF 2049 EOF
1910 if { (eval echo configure:1911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1911 ac_cv_prog_cc_works=yes 2051 ac_cv_prog_cc_works=yes
1912 # If we can't run a trivial program, we are probably using a cross compiler. 2052 # If we can't run a trivial program, we are probably using a cross compiler.
1913 if (./conftest; exit) 2>/dev/null; then 2053 if (./conftest; exit) 2>/dev/null; then
1914 ac_cv_prog_cc_cross=no 2054 ac_cv_prog_cc_cross=no
1915 else 2055 else
1919 echo "configure: failed program was:" >&5 2059 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5 2060 cat conftest.$ac_ext >&5
1921 ac_cv_prog_cc_works=no 2061 ac_cv_prog_cc_works=no
1922 fi 2062 fi
1923 rm -fr conftest* 2063 rm -fr conftest*
2064 ac_ext=c
2065 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
2066 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
2067 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_cpp='$CPP '"$xe_cppflags"
2069 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
2070 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
2071 cross_compiling=no
1924 2072
1925 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 2073 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1926 if test $ac_cv_prog_cc_works = no; then 2074 if test $ac_cv_prog_cc_works = no; then
1927 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 2075 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1928 fi 2076 fi
1929 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1930 echo "configure:1931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2078 echo "configure:2079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1931 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2079 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1932 cross_compiling=$ac_cv_prog_cc_cross 2080 cross_compiling=$ac_cv_prog_cc_cross
1933 2081
1934 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 2082 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether we are using GNU C" >&5 2083 echo "configure:2084: checking whether we are using GNU C" >&5
1936 2084
1937 cat > conftest.c <<EOF 2085 cat > conftest.c <<EOF
1938 #ifdef __GNUC__ 2086 #ifdef __GNUC__
1939 yes; 2087 yes;
1940 #endif 2088 #endif
1941 EOF 2089 EOF
1942 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 2090 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1943 ac_cv_prog_gcc=yes 2091 ac_cv_prog_gcc=yes
1944 else 2092 else
1945 ac_cv_prog_gcc=no 2093 ac_cv_prog_gcc=no
1946 fi 2094 fi
1947 2095
1948 echo "$ac_t""$ac_cv_prog_gcc" 1>&6 2096 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1949 2097
1950 if test $ac_cv_prog_gcc = yes; then 2098 if test $ac_cv_prog_gcc = yes; then
1951 GCC=yes 2099 GCC=yes
1952 ac_test_CFLAGS="${CFLAGS+set}" 2100 else
1953 ac_save_CFLAGS="$CFLAGS" 2101 GCC=
1954 CFLAGS= 2102 fi
1955 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 2103
1956 echo "configure:1957: checking whether ${CC-cc} accepts -g" >&5 2104 ac_test_CFLAGS="${CFLAGS+set}"
2105 ac_save_CFLAGS="$CFLAGS"
2106 CFLAGS=
2107 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether ${CC-cc} accepts -g" >&5
1957 2109
1958 echo 'void f(){}' > conftest.c 2110 echo 'void f(){}' > conftest.c
1959 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 2111 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1960 ac_cv_prog_cc_g=yes 2112 ac_cv_prog_cc_g=yes
1961 else 2113 else
1963 fi 2115 fi
1964 rm -f conftest* 2116 rm -f conftest*
1965 2117
1966 2118
1967 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 2119 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1968 if test "$ac_test_CFLAGS" = set; then 2120 if test "$ac_test_CFLAGS" = set; then
1969 CFLAGS="$ac_save_CFLAGS" 2121 CFLAGS="$ac_save_CFLAGS"
1970 elif test $ac_cv_prog_cc_g = yes; then 2122 elif test $ac_cv_prog_cc_g = yes; then
2123 if test "$GCC" = yes; then
1971 CFLAGS="-g -O2" 2124 CFLAGS="-g -O2"
1972 else 2125 else
2126 CFLAGS="-g"
2127 fi
2128 else
2129 if test "$GCC" = yes; then
1973 CFLAGS="-O2" 2130 CFLAGS="-O2"
2131 else
2132 CFLAGS=
1974 fi 2133 fi
1975 else
1976 GCC=
1977 test "${CFLAGS+set}" = set || CFLAGS="-g"
1978 fi 2134 fi
1979 2135
1980 fi 2136 fi
1981 CFLAGS="$xe_save_CFLAGS" 2137 CFLAGS="$xe_save_CFLAGS"
1982 2138
1984 test -n "$CPP" -a -d "$CPP" && CPP= 2140 test -n "$CPP" -a -d "$CPP" && CPP=
1985 2141
1986 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 2142 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1987 2143
1988 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 2144 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1989 echo "configure:1990: checking how to run the C preprocessor" >&5 2145 echo "configure:2146: checking how to run the C preprocessor" >&5
1990 # On Suns, sometimes $CPP names a directory. 2146 # On Suns, sometimes $CPP names a directory.
1991 if test -n "$CPP" && test -d "$CPP"; then 2147 if test -n "$CPP" && test -d "$CPP"; then
1992 CPP= 2148 CPP=
1993 fi 2149 fi
1994 if test -z "$CPP"; then 2150 if test -z "$CPP"; then
1997 # substituted into the Makefile and "${CC-cc}" will confuse make. 2153 # substituted into the Makefile and "${CC-cc}" will confuse make.
1998 CPP="${CC-cc} -E" 2154 CPP="${CC-cc} -E"
1999 # On the NeXT, cc -E runs the code through the compiler's parser, 2155 # On the NeXT, cc -E runs the code through the compiler's parser,
2000 # not just through cpp. 2156 # not just through cpp.
2001 cat > conftest.$ac_ext <<EOF 2157 cat > conftest.$ac_ext <<EOF
2002 #line 2003 "configure" 2158 #line 2159 "configure"
2003 #include "confdefs.h" 2159 #include "confdefs.h"
2004 #include <assert.h> 2160 #include <assert.h>
2005 Syntax Error 2161 Syntax Error
2006 EOF 2162 EOF
2007 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2008 { (eval echo configure:2009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2164 { (eval echo configure:2165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2009 ac_err=`grep -v '^ *+' conftest.out` 2165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2010 if test -z "$ac_err"; then 2166 if test -z "$ac_err"; then
2011 : 2167 :
2012 else 2168 else
2013 echo "$ac_err" >&5 2169 echo "$ac_err" >&5
2014 echo "configure: failed program was:" >&5 2170 echo "configure: failed program was:" >&5
2015 cat conftest.$ac_ext >&5 2171 cat conftest.$ac_ext >&5
2016 rm -rf conftest* 2172 rm -rf conftest*
2017 CPP="${CC-cc} -E -traditional-cpp" 2173 CPP="${CC-cc} -E -traditional-cpp"
2018 cat > conftest.$ac_ext <<EOF 2174 cat > conftest.$ac_ext <<EOF
2019 #line 2020 "configure" 2175 #line 2176 "configure"
2020 #include "confdefs.h" 2176 #include "confdefs.h"
2021 #include <assert.h> 2177 #include <assert.h>
2022 Syntax Error 2178 Syntax Error
2023 EOF 2179 EOF
2024 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2025 { (eval echo configure:2026: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2181 { (eval echo configure:2182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2026 ac_err=`grep -v '^ *+' conftest.out` 2182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2027 if test -z "$ac_err"; then 2183 if test -z "$ac_err"; then
2028 : 2184 :
2029 else 2185 else
2030 echo "$ac_err" >&5 2186 echo "$ac_err" >&5
2031 echo "configure: failed program was:" >&5 2187 echo "configure: failed program was:" >&5
2032 cat conftest.$ac_ext >&5 2188 cat conftest.$ac_ext >&5
2033 rm -rf conftest* 2189 rm -rf conftest*
2190 CPP="${CC-cc} -nologo -E"
2191 cat > conftest.$ac_ext <<EOF
2192 #line 2193 "configure"
2193 #include "confdefs.h"
2194 #include <assert.h>
2195 Syntax Error
2196 EOF
2197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure:2199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2200 if test -z "$ac_err"; then
2201 :
2202 else
2203 echo "$ac_err" >&5
2204 echo "configure: failed program was:" >&5
2205 cat conftest.$ac_ext >&5
2206 rm -rf conftest*
2034 CPP=/lib/cpp 2207 CPP=/lib/cpp
2208 fi
2209 rm -f conftest*
2035 fi 2210 fi
2036 rm -f conftest* 2211 rm -f conftest*
2037 fi 2212 fi
2038 rm -f conftest* 2213 rm -f conftest*
2039 ac_cv_prog_CPP="$CPP" 2214 ac_cv_prog_CPP="$CPP"
2043 fi 2218 fi
2044 echo "$ac_t""$CPP" 1>&6 2219 echo "$ac_t""$CPP" 1>&6
2045 2220
2046 2221
2047 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2222 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2048 echo "configure:2049: checking for AIX" >&5 2223 echo "configure:2224: checking for AIX" >&5
2049 cat > conftest.$ac_ext <<EOF 2224 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure" 2225 #line 2226 "configure"
2051 #include "confdefs.h" 2226 #include "confdefs.h"
2052 #ifdef _AIX 2227 #ifdef _AIX
2053 yes 2228 yes
2054 #endif 2229 #endif
2055 2230
2072 rm -f conftest* 2247 rm -f conftest*
2073 2248
2074 2249
2075 2250
2076 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6 2251 echo $ac_n "checking for GNU libc""... $ac_c" 1>&6
2077 echo "configure:2078: checking for GNU libc" >&5 2252 echo "configure:2253: checking for GNU libc" >&5
2078 cat > conftest.$ac_ext <<EOF 2253 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure" 2254 #line 2255 "configure"
2080 #include "confdefs.h" 2255 #include "confdefs.h"
2081 #include <features.h> 2256 #include <features.h>
2082 int main() { 2257 int main() {
2083 2258
2084 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__) 2259 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
2086 ******* ======= ******** &&&&&&&& 2261 ******* ======= ******** &&&&&&&&
2087 #endif 2262 #endif
2088 2263
2089 ; return 0; } 2264 ; return 0; }
2090 EOF 2265 EOF
2091 if { (eval echo configure:2092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2266 if { (eval echo configure:2267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2092 rm -rf conftest* 2267 rm -rf conftest*
2093 have_glibc=yes 2268 have_glibc=yes
2094 else 2269 else
2095 echo "configure: failed program was:" >&5 2270 echo "configure: failed program was:" >&5
2096 cat conftest.$ac_ext >&5 2271 cat conftest.$ac_ext >&5
2108 } 2283 }
2109 2284
2110 2285
2111 2286
2112 cat > conftest.$ac_ext <<EOF 2287 cat > conftest.$ac_ext <<EOF
2113 #line 2114 "configure" 2288 #line 2289 "configure"
2114 #include "confdefs.h" 2289 #include "confdefs.h"
2115 int main () { 2290 int main () {
2116 #if defined __SUNPRO_C 2291 #if defined __SUNPRO_C
2117 return 11; 2292 return 11;
2118 #elif defined __DECC 2293 #elif defined __DECC
2120 #else 2295 #else
2121 return 0; 2296 return 0;
2122 #endif 2297 #endif
2123 } 2298 }
2124 EOF 2299 EOF
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
2126 then 2301 then
2127 : 2302 :
2128 else 2303 else
2129 conftest_rc="$?" 2304 conftest_rc="$?"
2130 echo "configure: failed program was:" >&5 2305 echo "configure: failed program was:" >&5
2390 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2565 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2391 echo " xemacs will be linked with \"$unexec\"" 2566 echo " xemacs will be linked with \"$unexec\""
2392 fi 2567 fi
2393 2568
2394 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2569 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2395 echo "configure:2396: checking for dynodump" >&5 2570 echo "configure:2571: checking for dynodump" >&5
2396 if test "$unexec" != "unexsol2.o"; then 2571 if test "$unexec" != "unexsol2.o"; then
2397 echo "$ac_t""no" 1>&6 2572 echo "$ac_t""no" 1>&6
2398 else 2573 else
2399 echo "$ac_t""yes" 1>&6 2574 echo "$ac_t""yes" 1>&6
2400 { test "$extra_verbose" = "yes" && cat << \EOF 2575 { test "$extra_verbose" = "yes" && cat << \EOF
2428 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do 2603 for f in "/usr/lpp/X11/bin/smt.exp" "/usr/bin/X11/smt.exp"; do
2429 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi 2604 if test -r "$f"; then start_flags="${start_flags},-bI:${f}"; break; fi
2430 done 2605 done
2431 2606
2432 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 2607 echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6
2433 echo "configure:2434: checking for terminateAndUnload in -lC" >&5 2608 echo "configure:2609: checking for terminateAndUnload in -lC" >&5
2434 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` 2609 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'`
2435 2610
2436 xe_check_libs=" -lC " 2611 xe_check_libs=" -lC "
2437 cat > conftest.$ac_ext <<EOF 2612 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure" 2613 #line 2614 "configure"
2439 #include "confdefs.h" 2614 #include "confdefs.h"
2440 /* Override any gcc2 internal prototype to avoid an error. */ 2615 /* Override any gcc2 internal prototype to avoid an error. */
2441 /* We use char because int might match the return type of a gcc2 2616 /* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */ 2617 builtin and then its argument prototype would still apply. */
2443 char terminateAndUnload(); 2618 char terminateAndUnload();
2444 2619
2445 int main() { 2620 int main() {
2446 terminateAndUnload() 2621 terminateAndUnload()
2447 ; return 0; } 2622 ; return 0; }
2448 EOF 2623 EOF
2449 if { (eval echo configure:2450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2450 rm -rf conftest* 2625 rm -rf conftest*
2451 eval "ac_cv_lib_$ac_lib_var=yes" 2626 eval "ac_cv_lib_$ac_lib_var=yes"
2452 else 2627 else
2453 echo "configure: failed program was:" >&5 2628 echo "configure: failed program was:" >&5
2454 cat conftest.$ac_ext >&5 2629 cat conftest.$ac_ext >&5
2528 esac 2703 esac
2529 fi 2704 fi
2530 2705
2531 if test "$add_runtime_path" = "yes"; then 2706 if test "$add_runtime_path" = "yes"; then
2532 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2707 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2533 echo "configure:2534: checking "for runtime libraries flag"" >&5 2708 echo "configure:2709: checking "for runtime libraries flag"" >&5
2534 case "$opsys" in 2709 case "$opsys" in
2535 sol2 ) dash_r="-R" ;; 2710 sol2 ) dash_r="-R" ;;
2536 decosf* | linux* | irix*) dash_r="-rpath " ;; 2711 decosf* | linux* | irix*) dash_r="-rpath " ;;
2537 *) 2712 *)
2538 dash_r="" 2713 dash_r=""
2550 esac 2725 esac
2551 shift 2726 shift
2552 done 2727 done
2553 fi 2728 fi
2554 cat > conftest.$ac_ext <<EOF 2729 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure" 2730 #line 2731 "configure"
2556 #include "confdefs.h" 2731 #include "confdefs.h"
2557 2732
2558 int main() { 2733 int main() {
2559 2734
2560 ; return 0; } 2735 ; return 0; }
2561 EOF 2736 EOF
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2737 if { (eval echo configure:2738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2563 rm -rf conftest* 2738 rm -rf conftest*
2564 dash_r="$try_dash_r" 2739 dash_r="$try_dash_r"
2565 else 2740 else
2566 echo "configure: failed program was:" >&5 2741 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5 2742 cat conftest.$ac_ext >&5
2658 else 2833 else
2659 doug_lea_malloc=no 2834 doug_lea_malloc=no
2660 fi 2835 fi
2661 after_morecore_hook_exists=yes 2836 after_morecore_hook_exists=yes
2662 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6 2837 echo $ac_n "checking for malloc_get_state""... $ac_c" 1>&6
2663 echo "configure:2664: checking for malloc_get_state" >&5 2838 echo "configure:2839: checking for malloc_get_state" >&5
2664 2839
2665 cat > conftest.$ac_ext <<EOF 2840 cat > conftest.$ac_ext <<EOF
2666 #line 2667 "configure" 2841 #line 2842 "configure"
2667 #include "confdefs.h" 2842 #include "confdefs.h"
2668 /* System header to define __stub macros and hopefully few prototypes, 2843 /* System header to define __stub macros and hopefully few prototypes,
2669 which can conflict with char malloc_get_state(); below. */ 2844 which can conflict with char malloc_get_state(); below. */
2670 #include <assert.h> 2845 #include <assert.h>
2671 /* Override any gcc2 internal prototype to avoid an error. */ 2846 /* Override any gcc2 internal prototype to avoid an error. */
2684 malloc_get_state(); 2859 malloc_get_state();
2685 #endif 2860 #endif
2686 2861
2687 ; return 0; } 2862 ; return 0; }
2688 EOF 2863 EOF
2689 if { (eval echo configure:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2864 if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2690 rm -rf conftest* 2865 rm -rf conftest*
2691 eval "ac_cv_func_malloc_get_state=yes" 2866 eval "ac_cv_func_malloc_get_state=yes"
2692 else 2867 else
2693 echo "configure: failed program was:" >&5 2868 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5 2869 cat conftest.$ac_ext >&5
2704 echo "$ac_t""no" 1>&6 2879 echo "$ac_t""no" 1>&6
2705 doug_lea_malloc=no 2880 doug_lea_malloc=no
2706 fi 2881 fi
2707 2882
2708 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 2883 echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6
2709 echo "configure:2710: checking for malloc_set_state" >&5 2884 echo "configure:2885: checking for malloc_set_state" >&5
2710 2885
2711 cat > conftest.$ac_ext <<EOF 2886 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure" 2887 #line 2888 "configure"
2713 #include "confdefs.h" 2888 #include "confdefs.h"
2714 /* System header to define __stub macros and hopefully few prototypes, 2889 /* System header to define __stub macros and hopefully few prototypes,
2715 which can conflict with char malloc_set_state(); below. */ 2890 which can conflict with char malloc_set_state(); below. */
2716 #include <assert.h> 2891 #include <assert.h>
2717 /* Override any gcc2 internal prototype to avoid an error. */ 2892 /* Override any gcc2 internal prototype to avoid an error. */
2730 malloc_set_state(); 2905 malloc_set_state();
2731 #endif 2906 #endif
2732 2907
2733 ; return 0; } 2908 ; return 0; }
2734 EOF 2909 EOF
2735 if { (eval echo configure:2736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2736 rm -rf conftest* 2911 rm -rf conftest*
2737 eval "ac_cv_func_malloc_set_state=yes" 2912 eval "ac_cv_func_malloc_set_state=yes"
2738 else 2913 else
2739 echo "configure: failed program was:" >&5 2914 echo "configure: failed program was:" >&5
2740 cat conftest.$ac_ext >&5 2915 cat conftest.$ac_ext >&5
2750 echo "$ac_t""no" 1>&6 2925 echo "$ac_t""no" 1>&6
2751 doug_lea_malloc=no 2926 doug_lea_malloc=no
2752 fi 2927 fi
2753 2928
2754 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 2929 echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6
2755 echo "configure:2756: checking whether __after_morecore_hook exists" >&5 2930 echo "configure:2931: checking whether __after_morecore_hook exists" >&5
2756 cat > conftest.$ac_ext <<EOF 2931 cat > conftest.$ac_ext <<EOF
2757 #line 2758 "configure" 2932 #line 2933 "configure"
2758 #include "confdefs.h" 2933 #include "confdefs.h"
2759 extern void (* __after_morecore_hook)(); 2934 extern void (* __after_morecore_hook)();
2760 int main() { 2935 int main() {
2761 __after_morecore_hook = 0 2936 __after_morecore_hook = 0
2762 ; return 0; } 2937 ; return 0; }
2763 EOF 2938 EOF
2764 if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2765 rm -rf conftest* 2940 rm -rf conftest*
2766 echo "$ac_t""yes" 1>&6 2941 echo "$ac_t""yes" 1>&6
2767 else 2942 else
2768 echo "configure: failed program was:" >&5 2943 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5 2944 cat conftest.$ac_ext >&5
2818 2993
2819 2994
2820 # Extract the first word of "ranlib", so it can be a program name with args. 2995 # Extract the first word of "ranlib", so it can be a program name with args.
2821 set dummy ranlib; ac_word=$2 2996 set dummy ranlib; ac_word=$2
2822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_word" >&5 2998 echo "configure:2999: checking for $ac_word" >&5
2824 2999
2825 if test -n "$RANLIB"; then 3000 if test -n "$RANLIB"; then
2826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3001 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2827 else 3002 else
2828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2829 for ac_dir in $PATH; do 3004 ac_dummy="$PATH"
3005 for ac_dir in $ac_dummy; do
2830 test -z "$ac_dir" && ac_dir=. 3006 test -z "$ac_dir" && ac_dir=.
2831 if test -f $ac_dir/$ac_word; then 3007 if test -f $ac_dir/$ac_word; then
2832 ac_cv_prog_RANLIB="ranlib" 3008 ac_cv_prog_RANLIB="ranlib"
2833 break 3009 break
2834 fi 3010 fi
2867 # incompatible versions: 3043 # incompatible versions:
2868 # SysV /etc/install, /usr/sbin/install 3044 # SysV /etc/install, /usr/sbin/install
2869 # SunOS /usr/etc/install 3045 # SunOS /usr/etc/install
2870 # IRIX /sbin/install 3046 # IRIX /sbin/install
2871 # AIX /bin/install 3047 # AIX /bin/install
3048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2874 # ./install, which can be erroneously created by make from ./install.sh. 3051 # ./install, which can be erroneously created by make from ./install.sh.
2875 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 3052 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2876 echo "configure:2877: checking for a BSD compatible install" >&5 3053 echo "configure:3054: checking for a BSD compatible install" >&5
2877 if test -z "$INSTALL"; then 3054 if test -z "$INSTALL"; then
2878 3055
2879 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 3056 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2880 for ac_dir in $PATH; do 3057 for ac_dir in $PATH; do
2881 # Account for people who put trailing slashes in PATH elements. 3058 # Account for people who put trailing slashes in PATH elements.
2882 case "$ac_dir/" in 3059 case "$ac_dir/" in
2883 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 3060 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2884 *) 3061 *)
2885 # OSF1 and SCO ODT 3.0 have their own names for install. 3062 # OSF1 and SCO ODT 3.0 have their own names for install.
2886 for ac_prog in ginstall installbsd scoinst install; do 3063 # Don't use installbsd from OSF since it installs stuff as root
3064 # by default.
3065 for ac_prog in ginstall scoinst install; do
2887 if test -f $ac_dir/$ac_prog; then 3066 if test -f $ac_dir/$ac_prog; then
2888 if test $ac_prog = install && 3067 if test $ac_prog = install &&
2889 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 3068 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2890 # AIX install. It has an incompatible calling convention. 3069 # AIX install. It has an incompatible calling convention.
2891 # OSF/1 installbsd also uses dspmsg, but is usable.
2892 : 3070 :
2893 else 3071 else
2894 ac_cv_path_install="$ac_dir/$ac_prog -c" 3072 ac_cv_path_install="$ac_dir/$ac_prog -c"
2895 break 2 3073 break 2
2896 fi 3074 fi
2915 3093
2916 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2917 # It thinks the first close brace ends the variable substitution. 3095 # It thinks the first close brace ends the variable substitution.
2918 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2919 3097
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
3099
2920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2921 3101
2922 for ac_prog in 'bison -y' byacc 3102 for ac_prog in 'bison -y' byacc
2923 do 3103 do
2924 # Extract the first word of "$ac_prog", so it can be a program name with args. 3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2 3105 set dummy $ac_prog; ac_word=$2
2926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_word" >&5 3107 echo "configure:3108: checking for $ac_word" >&5
2928 3108
2929 if test -n "$YACC"; then 3109 if test -n "$YACC"; then
2930 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3110 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2931 else 3111 else
2932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 3112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2933 for ac_dir in $PATH; do 3113 ac_dummy="$PATH"
3114 for ac_dir in $ac_dummy; do
2934 test -z "$ac_dir" && ac_dir=. 3115 test -z "$ac_dir" && ac_dir=.
2935 if test -f $ac_dir/$ac_word; then 3116 if test -f $ac_dir/$ac_word; then
2936 ac_cv_prog_YACC="$ac_prog" 3117 ac_cv_prog_YACC="$ac_prog"
2937 break 3118 break
2938 fi 3119 fi
2953 3134
2954 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 3135 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2955 do 3136 do
2956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2958 echo "configure:2959: checking for $ac_hdr" >&5 3139 echo "configure:3140: checking for $ac_hdr" >&5
2959 3140
2960 cat > conftest.$ac_ext <<EOF 3141 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure" 3142 #line 3143 "configure"
2962 #include "confdefs.h" 3143 #include "confdefs.h"
2963 #include <$ac_hdr> 3144 #include <$ac_hdr>
2964 EOF 3145 EOF
2965 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2966 { (eval echo configure:2967: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3147 { (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2967 ac_err=`grep -v '^ *+' conftest.out` 3148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2968 if test -z "$ac_err"; then 3149 if test -z "$ac_err"; then
2969 rm -rf conftest* 3150 rm -rf conftest*
2970 eval "ac_cv_header_$ac_safe=yes" 3151 eval "ac_cv_header_$ac_safe=yes"
2971 else 3152 else
2972 echo "$ac_err" >&5 3153 echo "$ac_err" >&5
2994 3175
2995 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h 3176 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h cygwin/version.h
2996 do 3177 do
2997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2999 echo "configure:3000: checking for $ac_hdr" >&5 3180 echo "configure:3181: checking for $ac_hdr" >&5
3000 3181
3001 cat > conftest.$ac_ext <<EOF 3182 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure" 3183 #line 3184 "configure"
3003 #include "confdefs.h" 3184 #include "confdefs.h"
3004 #include <$ac_hdr> 3185 #include <$ac_hdr>
3005 EOF 3186 EOF
3006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3007 { (eval echo configure:3008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3188 { (eval echo configure:3189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3008 ac_err=`grep -v '^ *+' conftest.out` 3189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3009 if test -z "$ac_err"; then 3190 if test -z "$ac_err"; then
3010 rm -rf conftest* 3191 rm -rf conftest*
3011 eval "ac_cv_header_$ac_safe=yes" 3192 eval "ac_cv_header_$ac_safe=yes"
3012 else 3193 else
3013 echo "$ac_err" >&5 3194 echo "$ac_err" >&5
3035 3216
3036 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h 3217 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h sys/un.h a.out.h
3037 do 3218 do
3038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_hdr" >&5 3221 echo "configure:3222: checking for $ac_hdr" >&5
3041 3222
3042 cat > conftest.$ac_ext <<EOF 3223 cat > conftest.$ac_ext <<EOF
3043 #line 3044 "configure" 3224 #line 3225 "configure"
3044 #include "confdefs.h" 3225 #include "confdefs.h"
3045 #include <$ac_hdr> 3226 #include <$ac_hdr>
3046 EOF 3227 EOF
3047 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3048 { (eval echo configure:3049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3229 { (eval echo configure:3230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3049 ac_err=`grep -v '^ *+' conftest.out` 3230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3050 if test -z "$ac_err"; then 3231 if test -z "$ac_err"; then
3051 rm -rf conftest* 3232 rm -rf conftest*
3052 eval "ac_cv_header_$ac_safe=yes" 3233 eval "ac_cv_header_$ac_safe=yes"
3053 else 3234 else
3054 echo "$ac_err" >&5 3235 echo "$ac_err" >&5
3073 echo "$ac_t""no" 1>&6 3254 echo "$ac_t""no" 1>&6
3074 fi 3255 fi
3075 done 3256 done
3076 3257
3077 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 3258 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
3078 echo "configure:3079: checking for sys/wait.h that is POSIX.1 compatible" >&5 3259 echo "configure:3260: checking for sys/wait.h that is POSIX.1 compatible" >&5
3079 3260
3080 cat > conftest.$ac_ext <<EOF 3261 cat > conftest.$ac_ext <<EOF
3081 #line 3082 "configure" 3262 #line 3263 "configure"
3082 #include "confdefs.h" 3263 #include "confdefs.h"
3083 #include <sys/types.h> 3264 #include <sys/types.h>
3084 #include <sys/wait.h> 3265 #include <sys/wait.h>
3085 #ifndef WEXITSTATUS 3266 #ifndef WEXITSTATUS
3086 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 3267 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3092 int s; 3273 int s;
3093 wait (&s); 3274 wait (&s);
3094 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 3275 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3095 ; return 0; } 3276 ; return 0; }
3096 EOF 3277 EOF
3097 if { (eval echo configure:3098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3278 if { (eval echo configure:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098 rm -rf conftest* 3279 rm -rf conftest*
3099 ac_cv_header_sys_wait_h=yes 3280 ac_cv_header_sys_wait_h=yes
3100 else 3281 else
3101 echo "configure: failed program was:" >&5 3282 echo "configure: failed program was:" >&5
3102 cat conftest.$ac_ext >&5 3283 cat conftest.$ac_ext >&5
3116 } 3297 }
3117 3298
3118 fi 3299 fi
3119 3300
3120 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3301 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3121 echo "configure:3122: checking for ANSI C header files" >&5 3302 echo "configure:3303: checking for ANSI C header files" >&5
3122 3303
3123 cat > conftest.$ac_ext <<EOF 3304 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure" 3305 #line 3306 "configure"
3125 #include "confdefs.h" 3306 #include "confdefs.h"
3126 #include <stdlib.h> 3307 #include <stdlib.h>
3127 #include <stdarg.h> 3308 #include <stdarg.h>
3128 #include <string.h> 3309 #include <string.h>
3129 #include <float.h> 3310 #include <float.h>
3130 EOF 3311 EOF
3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3313 { (eval echo configure:3314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err=`grep -v '^ *+' conftest.out` 3314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then 3315 if test -z "$ac_err"; then
3135 rm -rf conftest* 3316 rm -rf conftest*
3136 ac_cv_header_stdc=yes 3317 ac_cv_header_stdc=yes
3137 else 3318 else
3138 echo "$ac_err" >&5 3319 echo "$ac_err" >&5
3144 rm -f conftest* 3325 rm -f conftest*
3145 3326
3146 if test $ac_cv_header_stdc = yes; then 3327 if test $ac_cv_header_stdc = yes; then
3147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3328 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3148 cat > conftest.$ac_ext <<EOF 3329 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure" 3330 #line 3331 "configure"
3150 #include "confdefs.h" 3331 #include "confdefs.h"
3151 #include <string.h> 3332 #include <string.h>
3152 EOF 3333 EOF
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "memchr" >/dev/null 2>&1; then 3335 egrep "memchr" >/dev/null 2>&1; then
3162 fi 3343 fi
3163 3344
3164 if test $ac_cv_header_stdc = yes; then 3345 if test $ac_cv_header_stdc = yes; then
3165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3346 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3166 cat > conftest.$ac_ext <<EOF 3347 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure" 3348 #line 3349 "configure"
3168 #include "confdefs.h" 3349 #include "confdefs.h"
3169 #include <stdlib.h> 3350 #include <stdlib.h>
3170 EOF 3351 EOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 egrep "free" >/dev/null 2>&1; then 3353 egrep "free" >/dev/null 2>&1; then
3180 fi 3361 fi
3181 3362
3182 if test $ac_cv_header_stdc = yes; then 3363 if test $ac_cv_header_stdc = yes; then
3183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3364 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3184 cat > conftest.$ac_ext <<EOF 3365 cat > conftest.$ac_ext <<EOF
3185 #line 3186 "configure" 3366 #line 3367 "configure"
3186 #include "confdefs.h" 3367 #include "confdefs.h"
3187 #include <ctype.h> 3368 #include <ctype.h>
3188 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3369 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3189 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3370 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3371 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3191 int main () { int i; for (i = 0; i < 256; i++) 3372 int main () { int i; for (i = 0; i < 256; i++)
3192 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 3373 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3193 exit (0); } 3374 exit (0); }
3194 3375
3195 EOF 3376 EOF
3196 if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 3377 if { (eval echo configure:3378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3197 then 3378 then
3198 : 3379 :
3199 else 3380 else
3200 conftest_rc="$?" 3381 conftest_rc="$?"
3201 echo "configure: failed program was:" >&5 3382 echo "configure: failed program was:" >&5
3217 } 3398 }
3218 3399
3219 fi 3400 fi
3220 3401
3221 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 3402 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3222 echo "configure:3223: checking whether time.h and sys/time.h may both be included" >&5 3403 echo "configure:3404: checking whether time.h and sys/time.h may both be included" >&5
3223 3404
3224 cat > conftest.$ac_ext <<EOF 3405 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure" 3406 #line 3407 "configure"
3226 #include "confdefs.h" 3407 #include "confdefs.h"
3227 #include <sys/types.h> 3408 #include <sys/types.h>
3228 #include <sys/time.h> 3409 #include <sys/time.h>
3229 #include <time.h> 3410 #include <time.h>
3230 int main() { 3411 int main() {
3231 struct tm *tp; 3412 struct tm *tp;
3232 ; return 0; } 3413 ; return 0; }
3233 EOF 3414 EOF
3234 if { (eval echo configure:3235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3415 if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3235 rm -rf conftest* 3416 rm -rf conftest*
3236 ac_cv_header_time=yes 3417 ac_cv_header_time=yes
3237 else 3418 else
3238 echo "configure: failed program was:" >&5 3419 echo "configure: failed program was:" >&5
3239 cat conftest.$ac_ext >&5 3420 cat conftest.$ac_ext >&5
3253 } 3434 }
3254 3435
3255 fi 3436 fi
3256 3437
3257 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 3438 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3258 echo "configure:3259: checking for sys_siglist declaration in signal.h or unistd.h" >&5 3439 echo "configure:3440: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3259 3440
3260 cat > conftest.$ac_ext <<EOF 3441 cat > conftest.$ac_ext <<EOF
3261 #line 3262 "configure" 3442 #line 3443 "configure"
3262 #include "confdefs.h" 3443 #include "confdefs.h"
3263 #include <sys/types.h> 3444 #include <sys/types.h>
3264 #include <signal.h> 3445 #include <signal.h>
3265 /* NetBSD declares sys_siglist in unistd.h. */ 3446 /* NetBSD declares sys_siglist in unistd.h. */
3266 #ifdef HAVE_UNISTD_H 3447 #ifdef HAVE_UNISTD_H
3268 #endif 3449 #endif
3269 int main() { 3450 int main() {
3270 char *msg = *(sys_siglist + 1); 3451 char *msg = *(sys_siglist + 1);
3271 ; return 0; } 3452 ; return 0; }
3272 EOF 3453 EOF
3273 if { (eval echo configure:3274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3454 if { (eval echo configure:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3274 rm -rf conftest* 3455 rm -rf conftest*
3275 ac_cv_decl_sys_siglist=yes 3456 ac_cv_decl_sys_siglist=yes
3276 else 3457 else
3277 echo "configure: failed program was:" >&5 3458 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5 3459 cat conftest.$ac_ext >&5
3293 3474
3294 fi 3475 fi
3295 3476
3296 3477
3297 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3478 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3298 echo "configure:3299: checking for struct utimbuf" >&5 3479 echo "configure:3480: checking for struct utimbuf" >&5
3299 cat > conftest.$ac_ext <<EOF 3480 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure" 3481 #line 3482 "configure"
3301 #include "confdefs.h" 3482 #include "confdefs.h"
3302 #ifdef TIME_WITH_SYS_TIME 3483 #ifdef TIME_WITH_SYS_TIME
3303 #include <sys/time.h> 3484 #include <sys/time.h>
3304 #include <time.h> 3485 #include <time.h>
3305 #else 3486 #else
3314 #endif 3495 #endif
3315 int main() { 3496 int main() {
3316 static struct utimbuf x; x.actime = x.modtime; 3497 static struct utimbuf x; x.actime = x.modtime;
3317 ; return 0; } 3498 ; return 0; }
3318 EOF 3499 EOF
3319 if { (eval echo configure:3320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3500 if { (eval echo configure:3501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3320 rm -rf conftest* 3501 rm -rf conftest*
3321 echo "$ac_t""yes" 1>&6 3502 echo "$ac_t""yes" 1>&6
3322 { test "$extra_verbose" = "yes" && cat << \EOF 3503 { test "$extra_verbose" = "yes" && cat << \EOF
3323 Defining HAVE_STRUCT_UTIMBUF 3504 Defining HAVE_STRUCT_UTIMBUF
3324 EOF 3505 EOF
3334 echo "$ac_t""no" 1>&6 3515 echo "$ac_t""no" 1>&6
3335 fi 3516 fi
3336 rm -f conftest* 3517 rm -f conftest*
3337 3518
3338 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3519 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3339 echo "configure:3340: checking return type of signal handlers" >&5 3520 echo "configure:3521: checking return type of signal handlers" >&5
3340 3521
3341 cat > conftest.$ac_ext <<EOF 3522 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure" 3523 #line 3524 "configure"
3343 #include "confdefs.h" 3524 #include "confdefs.h"
3344 #include <sys/types.h> 3525 #include <sys/types.h>
3345 #include <signal.h> 3526 #include <signal.h>
3346 #ifdef signal 3527 #ifdef signal
3347 #undef signal 3528 #undef signal
3354 3535
3355 int main() { 3536 int main() {
3356 int i; 3537 int i;
3357 ; return 0; } 3538 ; return 0; }
3358 EOF 3539 EOF
3359 if { (eval echo configure:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3360 rm -rf conftest* 3541 rm -rf conftest*
3361 ac_cv_type_signal=void 3542 ac_cv_type_signal=void
3362 else 3543 else
3363 echo "configure: failed program was:" >&5 3544 echo "configure: failed program was:" >&5
3364 cat conftest.$ac_ext >&5 3545 cat conftest.$ac_ext >&5
3376 EOF 3557 EOF
3377 } 3558 }
3378 3559
3379 3560
3380 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3561 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3381 echo "configure:3382: checking for size_t" >&5 3562 echo "configure:3563: checking for size_t" >&5
3382 3563
3383 cat > conftest.$ac_ext <<EOF 3564 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure" 3565 #line 3566 "configure"
3385 #include "confdefs.h" 3566 #include "confdefs.h"
3386 #include <sys/types.h> 3567 #include <sys/types.h>
3387 #if STDC_HEADERS 3568 #if STDC_HEADERS
3388 #include <stdlib.h> 3569 #include <stdlib.h>
3389 #include <stddef.h> 3570 #include <stddef.h>
3390 #endif 3571 #endif
3391 EOF 3572 EOF
3392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3393 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3574 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3394 rm -rf conftest* 3575 rm -rf conftest*
3395 ac_cv_type_size_t=yes 3576 ac_cv_type_size_t=yes
3396 else 3577 else
3397 rm -rf conftest* 3578 rm -rf conftest*
3398 ac_cv_type_size_t=no 3579 ac_cv_type_size_t=no
3410 } 3591 }
3411 3592
3412 fi 3593 fi
3413 3594
3414 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3595 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3415 echo "configure:3416: checking for pid_t" >&5 3596 echo "configure:3597: checking for pid_t" >&5
3416 3597
3417 cat > conftest.$ac_ext <<EOF 3598 cat > conftest.$ac_ext <<EOF
3418 #line 3419 "configure" 3599 #line 3600 "configure"
3419 #include "confdefs.h" 3600 #include "confdefs.h"
3420 #include <sys/types.h> 3601 #include <sys/types.h>
3421 #if STDC_HEADERS 3602 #if STDC_HEADERS
3422 #include <stdlib.h> 3603 #include <stdlib.h>
3423 #include <stddef.h> 3604 #include <stddef.h>
3424 #endif 3605 #endif
3425 EOF 3606 EOF
3426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3427 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3608 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3428 rm -rf conftest* 3609 rm -rf conftest*
3429 ac_cv_type_pid_t=yes 3610 ac_cv_type_pid_t=yes
3430 else 3611 else
3431 rm -rf conftest* 3612 rm -rf conftest*
3432 ac_cv_type_pid_t=no 3613 ac_cv_type_pid_t=no
3444 } 3625 }
3445 3626
3446 fi 3627 fi
3447 3628
3448 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3629 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3449 echo "configure:3450: checking for uid_t in sys/types.h" >&5 3630 echo "configure:3631: checking for uid_t in sys/types.h" >&5
3450 3631
3451 cat > conftest.$ac_ext <<EOF 3632 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure" 3633 #line 3634 "configure"
3453 #include "confdefs.h" 3634 #include "confdefs.h"
3454 #include <sys/types.h> 3635 #include <sys/types.h>
3455 EOF 3636 EOF
3456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3457 egrep "uid_t" >/dev/null 2>&1; then 3638 egrep "uid_t" >/dev/null 2>&1; then
3483 } 3664 }
3484 3665
3485 fi 3666 fi
3486 3667
3487 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3668 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3488 echo "configure:3489: checking for mode_t" >&5 3669 echo "configure:3670: checking for mode_t" >&5
3489 3670
3490 cat > conftest.$ac_ext <<EOF 3671 cat > conftest.$ac_ext <<EOF
3491 #line 3492 "configure" 3672 #line 3673 "configure"
3492 #include "confdefs.h" 3673 #include "confdefs.h"
3493 #include <sys/types.h> 3674 #include <sys/types.h>
3494 #if STDC_HEADERS 3675 #if STDC_HEADERS
3495 #include <stdlib.h> 3676 #include <stdlib.h>
3496 #include <stddef.h> 3677 #include <stddef.h>
3497 #endif 3678 #endif
3498 EOF 3679 EOF
3499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3500 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3681 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3501 rm -rf conftest* 3682 rm -rf conftest*
3502 ac_cv_type_mode_t=yes 3683 ac_cv_type_mode_t=yes
3503 else 3684 else
3504 rm -rf conftest* 3685 rm -rf conftest*
3505 ac_cv_type_mode_t=no 3686 ac_cv_type_mode_t=no
3517 } 3698 }
3518 3699
3519 fi 3700 fi
3520 3701
3521 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3702 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3522 echo "configure:3523: checking for off_t" >&5 3703 echo "configure:3704: checking for off_t" >&5
3523 3704
3524 cat > conftest.$ac_ext <<EOF 3705 cat > conftest.$ac_ext <<EOF
3525 #line 3526 "configure" 3706 #line 3707 "configure"
3526 #include "confdefs.h" 3707 #include "confdefs.h"
3527 #include <sys/types.h> 3708 #include <sys/types.h>
3528 #if STDC_HEADERS 3709 #if STDC_HEADERS
3529 #include <stdlib.h> 3710 #include <stdlib.h>
3530 #include <stddef.h> 3711 #include <stddef.h>
3531 #endif 3712 #endif
3532 EOF 3713 EOF
3533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3534 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 3715 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3535 rm -rf conftest* 3716 rm -rf conftest*
3536 ac_cv_type_off_t=yes 3717 ac_cv_type_off_t=yes
3537 else 3718 else
3538 rm -rf conftest* 3719 rm -rf conftest*
3539 ac_cv_type_off_t=no 3720 ac_cv_type_off_t=no
3552 3733
3553 fi 3734 fi
3554 3735
3555 3736
3556 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3737 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3557 echo "configure:3558: checking for struct timeval" >&5 3738 echo "configure:3739: checking for struct timeval" >&5
3558 cat > conftest.$ac_ext <<EOF 3739 cat > conftest.$ac_ext <<EOF
3559 #line 3560 "configure" 3740 #line 3741 "configure"
3560 #include "confdefs.h" 3741 #include "confdefs.h"
3561 #ifdef TIME_WITH_SYS_TIME 3742 #ifdef TIME_WITH_SYS_TIME
3562 #include <sys/time.h> 3743 #include <sys/time.h>
3563 #include <time.h> 3744 #include <time.h>
3564 #else 3745 #else
3570 #endif 3751 #endif
3571 int main() { 3752 int main() {
3572 static struct timeval x; x.tv_sec = x.tv_usec; 3753 static struct timeval x; x.tv_sec = x.tv_usec;
3573 ; return 0; } 3754 ; return 0; }
3574 EOF 3755 EOF
3575 if { (eval echo configure:3576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3756 if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3576 rm -rf conftest* 3757 rm -rf conftest*
3577 echo "$ac_t""yes" 1>&6 3758 echo "$ac_t""yes" 1>&6
3578 HAVE_TIMEVAL=yes 3759 HAVE_TIMEVAL=yes
3579 { test "$extra_verbose" = "yes" && cat << \EOF 3760 { test "$extra_verbose" = "yes" && cat << \EOF
3580 Defining HAVE_TIMEVAL 3761 Defining HAVE_TIMEVAL
3592 HAVE_TIMEVAL=no 3773 HAVE_TIMEVAL=no
3593 fi 3774 fi
3594 rm -f conftest* 3775 rm -f conftest*
3595 3776
3596 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3777 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3597 echo "configure:3598: checking whether struct tm is in sys/time.h or time.h" >&5 3778 echo "configure:3779: checking whether struct tm is in sys/time.h or time.h" >&5
3598 3779
3599 cat > conftest.$ac_ext <<EOF 3780 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure" 3781 #line 3782 "configure"
3601 #include "confdefs.h" 3782 #include "confdefs.h"
3602 #include <sys/types.h> 3783 #include <sys/types.h>
3603 #include <time.h> 3784 #include <time.h>
3604 int main() { 3785 int main() {
3605 struct tm *tp; tp->tm_sec; 3786 struct tm *tp; tp->tm_sec;
3606 ; return 0; } 3787 ; return 0; }
3607 EOF 3788 EOF
3608 if { (eval echo configure:3609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3789 if { (eval echo configure:3790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3609 rm -rf conftest* 3790 rm -rf conftest*
3610 ac_cv_struct_tm=time.h 3791 ac_cv_struct_tm=time.h
3611 else 3792 else
3612 echo "configure: failed program was:" >&5 3793 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5 3794 cat conftest.$ac_ext >&5
3627 } 3808 }
3628 3809
3629 fi 3810 fi
3630 3811
3631 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3812 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3632 echo "configure:3633: checking for tm_zone in struct tm" >&5 3813 echo "configure:3814: checking for tm_zone in struct tm" >&5
3633 3814
3634 cat > conftest.$ac_ext <<EOF 3815 cat > conftest.$ac_ext <<EOF
3635 #line 3636 "configure" 3816 #line 3817 "configure"
3636 #include "confdefs.h" 3817 #include "confdefs.h"
3637 #include <sys/types.h> 3818 #include <sys/types.h>
3638 #include <$ac_cv_struct_tm> 3819 #include <$ac_cv_struct_tm>
3639 int main() { 3820 int main() {
3640 struct tm tm; tm.tm_zone; 3821 struct tm tm; tm.tm_zone;
3641 ; return 0; } 3822 ; return 0; }
3642 EOF 3823 EOF
3643 if { (eval echo configure:3644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3824 if { (eval echo configure:3825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3644 rm -rf conftest* 3825 rm -rf conftest*
3645 ac_cv_struct_tm_zone=yes 3826 ac_cv_struct_tm_zone=yes
3646 else 3827 else
3647 echo "configure: failed program was:" >&5 3828 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5 3829 cat conftest.$ac_ext >&5
3661 EOF 3842 EOF
3662 } 3843 }
3663 3844
3664 else 3845 else
3665 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3846 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3666 echo "configure:3667: checking for tzname" >&5 3847 echo "configure:3848: checking for tzname" >&5
3667 3848
3668 cat > conftest.$ac_ext <<EOF 3849 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure" 3850 #line 3851 "configure"
3670 #include "confdefs.h" 3851 #include "confdefs.h"
3671 #include <time.h> 3852 #include <time.h>
3672 #ifndef tzname /* For SGI. */ 3853 #ifndef tzname /* For SGI. */
3673 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3854 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3674 #endif 3855 #endif
3675 int main() { 3856 int main() {
3676 atoi(*tzname); 3857 atoi(*tzname);
3677 ; return 0; } 3858 ; return 0; }
3678 EOF 3859 EOF
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3860 if { (eval echo configure:3861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 rm -rf conftest* 3861 rm -rf conftest*
3681 ac_cv_var_tzname=yes 3862 ac_cv_var_tzname=yes
3682 else 3863 else
3683 echo "configure: failed program was:" >&5 3864 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5 3865 cat conftest.$ac_ext >&5
3700 fi 3881 fi
3701 fi 3882 fi
3702 3883
3703 3884
3704 echo $ac_n "checking for working const""... $ac_c" 1>&6 3885 echo $ac_n "checking for working const""... $ac_c" 1>&6
3705 echo "configure:3706: checking for working const" >&5 3886 echo "configure:3887: checking for working const" >&5
3706 3887
3707 cat > conftest.$ac_ext <<EOF 3888 cat > conftest.$ac_ext <<EOF
3708 #line 3709 "configure" 3889 #line 3890 "configure"
3709 #include "confdefs.h" 3890 #include "confdefs.h"
3710 3891
3711 int main() { 3892 int main() {
3712 3893
3713 /* Ultrix mips cc rejects this. */ 3894 /* Ultrix mips cc rejects this. */
3752 const int foo = 10; 3933 const int foo = 10;
3753 } 3934 }
3754 3935
3755 ; return 0; } 3936 ; return 0; }
3756 EOF 3937 EOF
3757 if { (eval echo configure:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3938 if { (eval echo configure:3939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3758 rm -rf conftest* 3939 rm -rf conftest*
3759 ac_cv_c_const=yes 3940 ac_cv_c_const=yes
3760 else 3941 else
3761 echo "configure: failed program was:" >&5 3942 echo "configure: failed program was:" >&5
3762 cat conftest.$ac_ext >&5 3943 cat conftest.$ac_ext >&5
3777 3958
3778 fi 3959 fi
3779 3960
3780 3961
3781 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3962 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3782 echo "configure:3783: checking whether ${MAKE-make} sets \${MAKE}" >&5 3963 echo "configure:3964: checking whether ${MAKE-make} sets \${MAKE}" >&5
3783 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3964 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3784 3965
3785 cat > conftestmake <<\EOF 3966 cat > conftestmake <<\EOF
3786 all: 3967 all:
3787 @echo 'ac_maketemp="${MAKE}"' 3968 @echo 'ac_maketemp="${MAKE}"'
3802 SET_MAKE="MAKE=${MAKE-make}" 3983 SET_MAKE="MAKE=${MAKE-make}"
3803 fi 3984 fi
3804 3985
3805 3986
3806 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3987 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3807 echo "configure:3808: checking whether byte ordering is bigendian" >&5 3988 echo "configure:3989: checking whether byte ordering is bigendian" >&5
3808 3989
3809 ac_cv_c_bigendian=unknown 3990 ac_cv_c_bigendian=unknown
3810 # See if sys/param.h defines the BYTE_ORDER macro. 3991 # See if sys/param.h defines the BYTE_ORDER macro.
3811 cat > conftest.$ac_ext <<EOF 3992 cat > conftest.$ac_ext <<EOF
3812 #line 3813 "configure" 3993 #line 3994 "configure"
3813 #include "confdefs.h" 3994 #include "confdefs.h"
3814 #include <sys/types.h> 3995 #include <sys/types.h>
3815 #include <sys/param.h> 3996 #include <sys/param.h>
3816 int main() { 3997 int main() {
3817 3998
3818 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3999 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3819 bogus endian macros 4000 bogus endian macros
3820 #endif 4001 #endif
3821 ; return 0; } 4002 ; return 0; }
3822 EOF 4003 EOF
3823 if { (eval echo configure:3824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3824 rm -rf conftest* 4005 rm -rf conftest*
3825 # It does; now see whether it defined to BIG_ENDIAN or not. 4006 # It does; now see whether it defined to BIG_ENDIAN or not.
3826 cat > conftest.$ac_ext <<EOF 4007 cat > conftest.$ac_ext <<EOF
3827 #line 3828 "configure" 4008 #line 4009 "configure"
3828 #include "confdefs.h" 4009 #include "confdefs.h"
3829 #include <sys/types.h> 4010 #include <sys/types.h>
3830 #include <sys/param.h> 4011 #include <sys/param.h>
3831 int main() { 4012 int main() {
3832 4013
3833 #if BYTE_ORDER != BIG_ENDIAN 4014 #if BYTE_ORDER != BIG_ENDIAN
3834 not big endian 4015 not big endian
3835 #endif 4016 #endif
3836 ; return 0; } 4017 ; return 0; }
3837 EOF 4018 EOF
3838 if { (eval echo configure:3839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4019 if { (eval echo configure:4020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3839 rm -rf conftest* 4020 rm -rf conftest*
3840 ac_cv_c_bigendian=yes 4021 ac_cv_c_bigendian=yes
3841 else 4022 else
3842 echo "configure: failed program was:" >&5 4023 echo "configure: failed program was:" >&5
3843 cat conftest.$ac_ext >&5 4024 cat conftest.$ac_ext >&5
3850 cat conftest.$ac_ext >&5 4031 cat conftest.$ac_ext >&5
3851 fi 4032 fi
3852 rm -f conftest* 4033 rm -f conftest*
3853 if test $ac_cv_c_bigendian = unknown; then 4034 if test $ac_cv_c_bigendian = unknown; then
3854 cat > conftest.$ac_ext <<EOF 4035 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure" 4036 #line 4037 "configure"
3856 #include "confdefs.h" 4037 #include "confdefs.h"
3857 main () { 4038 main () {
3858 /* Are we little or big endian? From Harbison&Steele. */ 4039 /* Are we little or big endian? From Harbison&Steele. */
3859 union 4040 union
3860 { 4041 {
3863 } u; 4044 } u;
3864 u.l = 1; 4045 u.l = 1;
3865 exit (u.c[sizeof (long) - 1] == 1); 4046 exit (u.c[sizeof (long) - 1] == 1);
3866 } 4047 }
3867 EOF 4048 EOF
3868 if { (eval echo configure:3869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4049 if { (eval echo configure:4050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3869 then 4050 then
3870 ac_cv_c_bigendian=no 4051 ac_cv_c_bigendian=no
3871 else 4052 else
3872 conftest_rc="$?" 4053 conftest_rc="$?"
3873 echo "configure: failed program was:" >&5 4054 echo "configure: failed program was:" >&5
3890 4071
3891 fi 4072 fi
3892 4073
3893 4074
3894 echo $ac_n "checking size of short""... $ac_c" 1>&6 4075 echo $ac_n "checking size of short""... $ac_c" 1>&6
3895 echo "configure:3896: checking size of short" >&5 4076 echo "configure:4077: checking size of short" >&5
3896 4077
3897 cat > conftest.$ac_ext <<EOF 4078 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure" 4079 #line 4080 "configure"
3899 #include "confdefs.h" 4080 #include "confdefs.h"
3900 #include <stdio.h> 4081 #include <stdio.h>
3901 main() 4082 main()
3902 { 4083 {
3903 FILE *f=fopen("conftestval", "w"); 4084 FILE *f=fopen("conftestval", "w");
3904 if (!f) exit(1); 4085 if (!f) exit(1);
3905 fprintf(f, "%d\n", sizeof(short)); 4086 fprintf(f, "%d\n", sizeof(short));
3906 exit(0); 4087 exit(0);
3907 } 4088 }
3908 EOF 4089 EOF
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3910 then 4091 then
3911 ac_cv_sizeof_short=`cat conftestval` 4092 ac_cv_sizeof_short=`cat conftestval`
3912 else 4093 else
3913 conftest_rc="$?" 4094 conftest_rc="$?"
3914 echo "configure: failed program was:" >&5 4095 echo "configure: failed program was:" >&5
3932 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4113 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3933 echo "*** PANIC *** Please examine config.log for compilation errors." 4114 echo "*** PANIC *** Please examine config.log for compilation errors."
3934 exit 1 4115 exit 1
3935 fi 4116 fi
3936 echo $ac_n "checking size of int""... $ac_c" 1>&6 4117 echo $ac_n "checking size of int""... $ac_c" 1>&6
3937 echo "configure:3938: checking size of int" >&5 4118 echo "configure:4119: checking size of int" >&5
3938 4119
3939 cat > conftest.$ac_ext <<EOF 4120 cat > conftest.$ac_ext <<EOF
3940 #line 3941 "configure" 4121 #line 4122 "configure"
3941 #include "confdefs.h" 4122 #include "confdefs.h"
3942 #include <stdio.h> 4123 #include <stdio.h>
3943 main() 4124 main()
3944 { 4125 {
3945 FILE *f=fopen("conftestval", "w"); 4126 FILE *f=fopen("conftestval", "w");
3946 if (!f) exit(1); 4127 if (!f) exit(1);
3947 fprintf(f, "%d\n", sizeof(int)); 4128 fprintf(f, "%d\n", sizeof(int));
3948 exit(0); 4129 exit(0);
3949 } 4130 }
3950 EOF 4131 EOF
3951 if { (eval echo configure:3952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4132 if { (eval echo configure:4133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3952 then 4133 then
3953 ac_cv_sizeof_int=`cat conftestval` 4134 ac_cv_sizeof_int=`cat conftestval`
3954 else 4135 else
3955 conftest_rc="$?" 4136 conftest_rc="$?"
3956 echo "configure: failed program was:" >&5 4137 echo "configure: failed program was:" >&5
3968 EOF 4149 EOF
3969 } 4150 }
3970 4151
3971 4152
3972 echo $ac_n "checking size of long""... $ac_c" 1>&6 4153 echo $ac_n "checking size of long""... $ac_c" 1>&6
3973 echo "configure:3974: checking size of long" >&5 4154 echo "configure:4155: checking size of long" >&5
3974 4155
3975 cat > conftest.$ac_ext <<EOF 4156 cat > conftest.$ac_ext <<EOF
3976 #line 3977 "configure" 4157 #line 4158 "configure"
3977 #include "confdefs.h" 4158 #include "confdefs.h"
3978 #include <stdio.h> 4159 #include <stdio.h>
3979 main() 4160 main()
3980 { 4161 {
3981 FILE *f=fopen("conftestval", "w"); 4162 FILE *f=fopen("conftestval", "w");
3982 if (!f) exit(1); 4163 if (!f) exit(1);
3983 fprintf(f, "%d\n", sizeof(long)); 4164 fprintf(f, "%d\n", sizeof(long));
3984 exit(0); 4165 exit(0);
3985 } 4166 }
3986 EOF 4167 EOF
3987 if { (eval echo configure:3988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4168 if { (eval echo configure:4169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
3988 then 4169 then
3989 ac_cv_sizeof_long=`cat conftestval` 4170 ac_cv_sizeof_long=`cat conftestval`
3990 else 4171 else
3991 conftest_rc="$?" 4172 conftest_rc="$?"
3992 echo "configure: failed program was:" >&5 4173 echo "configure: failed program was:" >&5
4004 EOF 4185 EOF
4005 } 4186 }
4006 4187
4007 4188
4008 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4189 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4009 echo "configure:4010: checking size of long long" >&5 4190 echo "configure:4191: checking size of long long" >&5
4010 4191
4011 cat > conftest.$ac_ext <<EOF 4192 cat > conftest.$ac_ext <<EOF
4012 #line 4013 "configure" 4193 #line 4194 "configure"
4013 #include "confdefs.h" 4194 #include "confdefs.h"
4014 #include <stdio.h> 4195 #include <stdio.h>
4015 main() 4196 main()
4016 { 4197 {
4017 FILE *f=fopen("conftestval", "w"); 4198 FILE *f=fopen("conftestval", "w");
4018 if (!f) exit(1); 4199 if (!f) exit(1);
4019 fprintf(f, "%d\n", sizeof(long long)); 4200 fprintf(f, "%d\n", sizeof(long long));
4020 exit(0); 4201 exit(0);
4021 } 4202 }
4022 EOF 4203 EOF
4023 if { (eval echo configure:4024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4024 then 4205 then
4025 ac_cv_sizeof_long_long=`cat conftestval` 4206 ac_cv_sizeof_long_long=`cat conftestval`
4026 else 4207 else
4027 conftest_rc="$?" 4208 conftest_rc="$?"
4028 echo "configure: failed program was:" >&5 4209 echo "configure: failed program was:" >&5
4040 EOF 4221 EOF
4041 } 4222 }
4042 4223
4043 4224
4044 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4225 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4045 echo "configure:4046: checking size of void *" >&5 4226 echo "configure:4227: checking size of void *" >&5
4046 4227
4047 cat > conftest.$ac_ext <<EOF 4228 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure" 4229 #line 4230 "configure"
4049 #include "confdefs.h" 4230 #include "confdefs.h"
4050 #include <stdio.h> 4231 #include <stdio.h>
4051 main() 4232 main()
4052 { 4233 {
4053 FILE *f=fopen("conftestval", "w"); 4234 FILE *f=fopen("conftestval", "w");
4054 if (!f) exit(1); 4235 if (!f) exit(1);
4055 fprintf(f, "%d\n", sizeof(void *)); 4236 fprintf(f, "%d\n", sizeof(void *));
4056 exit(0); 4237 exit(0);
4057 } 4238 }
4058 EOF 4239 EOF
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4060 then 4241 then
4061 ac_cv_sizeof_void_p=`cat conftestval` 4242 ac_cv_sizeof_void_p=`cat conftestval`
4062 else 4243 else
4063 conftest_rc="$?" 4244 conftest_rc="$?"
4064 echo "configure: failed program was:" >&5 4245 echo "configure: failed program was:" >&5
4077 } 4258 }
4078 4259
4079 4260
4080 4261
4081 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4262 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4082 echo "configure:4083: checking for long file names" >&5 4263 echo "configure:4264: checking for long file names" >&5
4083 4264
4084 ac_cv_sys_long_file_names=yes 4265 ac_cv_sys_long_file_names=yes
4085 # Test for long file names in all the places we know might matter: 4266 # Test for long file names in all the places we know might matter:
4086 # . the current directory, where building will happen 4267 # . the current directory, where building will happen
4087 # $prefix/lib where we will be installing things 4268 # $prefix/lib where we will be installing things
4124 fi 4305 fi
4125 4306
4126 4307
4127 4308
4128 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4309 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4129 echo "configure:4130: checking for sin in -lm" >&5 4310 echo "configure:4311: checking for sin in -lm" >&5
4130 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4311 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4131 4312
4132 xe_check_libs=" -lm " 4313 xe_check_libs=" -lm "
4133 cat > conftest.$ac_ext <<EOF 4314 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure" 4315 #line 4316 "configure"
4135 #include "confdefs.h" 4316 #include "confdefs.h"
4136 /* Override any gcc2 internal prototype to avoid an error. */ 4317 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2 4318 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */ 4319 builtin and then its argument prototype would still apply. */
4139 char sin(); 4320 char sin();
4140 4321
4141 int main() { 4322 int main() {
4142 sin() 4323 sin()
4143 ; return 0; } 4324 ; return 0; }
4144 EOF 4325 EOF
4145 if { (eval echo configure:4146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 rm -rf conftest* 4327 rm -rf conftest*
4147 eval "ac_cv_lib_$ac_lib_var=yes" 4328 eval "ac_cv_lib_$ac_lib_var=yes"
4148 else 4329 else
4149 echo "configure: failed program was:" >&5 4330 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5 4331 cat conftest.$ac_ext >&5
4182 EOF 4363 EOF
4183 } 4364 }
4184 4365
4185 4366
4186 cat > conftest.$ac_ext <<EOF 4367 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure" 4368 #line 4369 "configure"
4188 #include "confdefs.h" 4369 #include "confdefs.h"
4189 #include <math.h> 4370 #include <math.h>
4190 int main() { 4371 int main() {
4191 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4372 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4192 ; return 0; } 4373 ; return 0; }
4193 EOF 4374 EOF
4194 if { (eval echo configure:4195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4375 if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4195 rm -rf conftest* 4376 rm -rf conftest*
4196 { test "$extra_verbose" = "yes" && cat << \EOF 4377 { test "$extra_verbose" = "yes" && cat << \EOF
4197 Defining HAVE_INVERSE_HYPERBOLIC 4378 Defining HAVE_INVERSE_HYPERBOLIC
4198 EOF 4379 EOF
4199 cat >> confdefs.h <<\EOF 4380 cat >> confdefs.h <<\EOF
4206 cat conftest.$ac_ext >&5 4387 cat conftest.$ac_ext >&5
4207 fi 4388 fi
4208 rm -f conftest* 4389 rm -f conftest*
4209 4390
4210 echo "checking type of mail spool file locking" 1>&6 4391 echo "checking type of mail spool file locking" 1>&6
4211 echo "configure:4212: checking type of mail spool file locking" >&5 4392 echo "configure:4393: checking type of mail spool file locking" >&5
4212 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 4393 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
4213 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 4394 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
4214 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 4395 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
4215 Defining REAL_MAIL_USE_LOCKF 4396 Defining REAL_MAIL_USE_LOCKF
4216 EOF 4397 EOF
4230 else mail_locking="dot-locking" 4411 else mail_locking="dot-locking"
4231 fi 4412 fi
4232 4413
4233 4414
4234 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 4415 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
4235 echo "configure:4236: checking for kstat_open in -lkstat" >&5 4416 echo "configure:4417: checking for kstat_open in -lkstat" >&5
4236 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 4417 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
4237 4418
4238 xe_check_libs=" -lkstat " 4419 xe_check_libs=" -lkstat "
4239 cat > conftest.$ac_ext <<EOF 4420 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure" 4421 #line 4422 "configure"
4241 #include "confdefs.h" 4422 #include "confdefs.h"
4242 /* Override any gcc2 internal prototype to avoid an error. */ 4423 /* Override any gcc2 internal prototype to avoid an error. */
4243 /* We use char because int might match the return type of a gcc2 4424 /* We use char because int might match the return type of a gcc2
4244 builtin and then its argument prototype would still apply. */ 4425 builtin and then its argument prototype would still apply. */
4245 char kstat_open(); 4426 char kstat_open();
4246 4427
4247 int main() { 4428 int main() {
4248 kstat_open() 4429 kstat_open()
4249 ; return 0; } 4430 ; return 0; }
4250 EOF 4431 EOF
4251 if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4432 if { (eval echo configure:4433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4252 rm -rf conftest* 4433 rm -rf conftest*
4253 eval "ac_cv_lib_$ac_lib_var=yes" 4434 eval "ac_cv_lib_$ac_lib_var=yes"
4254 else 4435 else
4255 echo "configure: failed program was:" >&5 4436 echo "configure: failed program was:" >&5
4256 cat conftest.$ac_ext >&5 4437 cat conftest.$ac_ext >&5
4280 4461
4281 4462
4282 4463
4283 4464
4284 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 4465 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
4285 echo "configure:4286: checking for kvm_read in -lkvm" >&5 4466 echo "configure:4467: checking for kvm_read in -lkvm" >&5
4286 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 4467 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
4287 4468
4288 xe_check_libs=" -lkvm " 4469 xe_check_libs=" -lkvm "
4289 cat > conftest.$ac_ext <<EOF 4470 cat > conftest.$ac_ext <<EOF
4290 #line 4291 "configure" 4471 #line 4472 "configure"
4291 #include "confdefs.h" 4472 #include "confdefs.h"
4292 /* Override any gcc2 internal prototype to avoid an error. */ 4473 /* Override any gcc2 internal prototype to avoid an error. */
4293 /* We use char because int might match the return type of a gcc2 4474 /* We use char because int might match the return type of a gcc2
4294 builtin and then its argument prototype would still apply. */ 4475 builtin and then its argument prototype would still apply. */
4295 char kvm_read(); 4476 char kvm_read();
4296 4477
4297 int main() { 4478 int main() {
4298 kvm_read() 4479 kvm_read()
4299 ; return 0; } 4480 ; return 0; }
4300 EOF 4481 EOF
4301 if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4302 rm -rf conftest* 4483 rm -rf conftest*
4303 eval "ac_cv_lib_$ac_lib_var=yes" 4484 eval "ac_cv_lib_$ac_lib_var=yes"
4304 else 4485 else
4305 echo "configure: failed program was:" >&5 4486 echo "configure: failed program was:" >&5
4306 cat conftest.$ac_ext >&5 4487 cat conftest.$ac_ext >&5
4331 4512
4332 4513
4333 case "$opsys" in decosf*) 4514 case "$opsys" in decosf*)
4334 4515
4335 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4516 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4336 echo "configure:4337: checking for cma_open in -lpthreads" >&5 4517 echo "configure:4518: checking for cma_open in -lpthreads" >&5
4337 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4518 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4338 4519
4339 xe_check_libs=" -lpthreads " 4520 xe_check_libs=" -lpthreads "
4340 cat > conftest.$ac_ext <<EOF 4521 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure" 4522 #line 4523 "configure"
4342 #include "confdefs.h" 4523 #include "confdefs.h"
4343 /* Override any gcc2 internal prototype to avoid an error. */ 4524 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2 4525 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */ 4526 builtin and then its argument prototype would still apply. */
4346 char cma_open(); 4527 char cma_open();
4347 4528
4348 int main() { 4529 int main() {
4349 cma_open() 4530 cma_open()
4350 ; return 0; } 4531 ; return 0; }
4351 EOF 4532 EOF
4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4533 if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4353 rm -rf conftest* 4534 rm -rf conftest*
4354 eval "ac_cv_lib_$ac_lib_var=yes" 4535 eval "ac_cv_lib_$ac_lib_var=yes"
4355 else 4536 else
4356 echo "configure: failed program was:" >&5 4537 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5 4538 cat conftest.$ac_ext >&5
4383 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \ 4564 test "$ac_cv_lib_pthreads_cma_open" = "yes" && \
4384 c_switch_site="$c_switch_site -threads" ;; 4565 c_switch_site="$c_switch_site -threads" ;;
4385 esac 4566 esac
4386 4567
4387 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4568 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4388 echo "configure:4389: checking whether the -xildoff compiler flag is required" >&5 4569 echo "configure:4570: checking whether the -xildoff compiler flag is required" >&5
4389 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4570 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4390 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4571 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4391 then echo "$ac_t""no" 1>&6; 4572 then echo "$ac_t""no" 1>&6;
4392 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 4573 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
4393 fi 4574 fi
4394 else echo "$ac_t""no" 1>&6 4575 else echo "$ac_t""no" 1>&6
4395 fi 4576 fi
4396 4577
4397 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4578 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4398 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4579 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4399 echo "configure:4400: checking for \"-z ignore\" linker flag" >&5 4580 echo "configure:4581: checking for \"-z ignore\" linker flag" >&5
4400 case "`ld -h 2>&1`" in 4581 case "`ld -h 2>&1`" in
4401 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4582 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4402 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4583 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4403 *) echo "$ac_t""no" 1>&6 ;; 4584 *) echo "$ac_t""no" 1>&6 ;;
4404 esac 4585 esac
4405 fi 4586 fi
4406 4587
4407 4588
4408 echo "checking "for specified window system"" 1>&6 4589 echo "checking "for specified window system"" 1>&6
4409 echo "configure:4410: checking "for specified window system"" >&5 4590 echo "configure:4591: checking "for specified window system"" >&5
4410 4591
4411 if test "$with_x11" != "no"; then 4592 if test "$with_x11" != "no"; then
4412 test "$x_includes $x_libraries" != "NONE NONE" && \ 4593 test "$x_includes $x_libraries" != "NONE NONE" && \
4413 window_system=x11 with_x11=yes 4594 window_system=x11 with_x11=yes
4414 4595
4437 # If we find X, set shell vars x_includes and x_libraries to the 4618 # If we find X, set shell vars x_includes and x_libraries to the
4438 # paths, otherwise set no_x=yes. 4619 # paths, otherwise set no_x=yes.
4439 # Uses ac_ vars as temps to allow command line to override cache and checks. 4620 # Uses ac_ vars as temps to allow command line to override cache and checks.
4440 # --without-x overrides everything else, but does not touch the cache. 4621 # --without-x overrides everything else, but does not touch the cache.
4441 echo $ac_n "checking for X""... $ac_c" 1>&6 4622 echo $ac_n "checking for X""... $ac_c" 1>&6
4442 echo "configure:4443: checking for X" >&5 4623 echo "configure:4624: checking for X" >&5
4443 4624
4444 # Check whether --with-x or --without-x was given. 4625 # Check whether --with-x or --without-x was given.
4445 if test "${with_x+set}" = set; then 4626 if test "${with_x+set}" = set; then
4446 withval="$with_x" 4627 withval="$with_x"
4447 : 4628 :
4497 # Guess where to find include files, by looking for this one X11 .h file. 4678 # Guess where to find include files, by looking for this one X11 .h file.
4498 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4679 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4499 4680
4500 # First, try using that file with no special directory specified. 4681 # First, try using that file with no special directory specified.
4501 cat > conftest.$ac_ext <<EOF 4682 cat > conftest.$ac_ext <<EOF
4502 #line 4503 "configure" 4683 #line 4684 "configure"
4503 #include "confdefs.h" 4684 #include "confdefs.h"
4504 #include <$x_direct_test_include> 4685 #include <$x_direct_test_include>
4505 EOF 4686 EOF
4506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4507 { (eval echo configure:4508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4688 { (eval echo configure:4689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4508 ac_err=`grep -v '^ *+' conftest.out` 4689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4509 if test -z "$ac_err"; then 4690 if test -z "$ac_err"; then
4510 rm -rf conftest* 4691 rm -rf conftest*
4511 # We can compile using X headers with no special include directory. 4692 # We can compile using X headers with no special include directory.
4512 ac_x_includes= 4693 ac_x_includes=
4513 else 4694 else
4571 # See if we find them without any special options. 4752 # See if we find them without any special options.
4572 # Don't add to $LIBS permanently. 4753 # Don't add to $LIBS permanently.
4573 ac_save_LIBS="$LIBS" 4754 ac_save_LIBS="$LIBS"
4574 LIBS="-l$x_direct_test_library $LIBS" 4755 LIBS="-l$x_direct_test_library $LIBS"
4575 cat > conftest.$ac_ext <<EOF 4756 cat > conftest.$ac_ext <<EOF
4576 #line 4577 "configure" 4757 #line 4758 "configure"
4577 #include "confdefs.h" 4758 #include "confdefs.h"
4578 4759
4579 int main() { 4760 int main() {
4580 ${x_direct_test_function}() 4761 ${x_direct_test_function}()
4581 ; return 0; } 4762 ; return 0; }
4582 EOF 4763 EOF
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4584 rm -rf conftest* 4765 rm -rf conftest*
4585 LIBS="$ac_save_LIBS" 4766 LIBS="$ac_save_LIBS"
4586 # We can link X programs with no special library path. 4767 # We can link X programs with no special library path.
4587 ac_x_libraries= 4768 ac_x_libraries=
4588 else 4769 else
4687 # For Solaris; some versions of Sun CC require a space after -R and 4868 # For Solaris; some versions of Sun CC require a space after -R and
4688 # others require no space. Words are not sufficient . . . . 4869 # others require no space. Words are not sufficient . . . .
4689 case "`(uname -sr) 2>/dev/null`" in 4870 case "`(uname -sr) 2>/dev/null`" in
4690 "SunOS 5"*) 4871 "SunOS 5"*)
4691 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4872 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4692 echo "configure:4693: checking whether -R must be followed by a space" >&5 4873 echo "configure:4874: checking whether -R must be followed by a space" >&5
4693 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4874 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4694 cat > conftest.$ac_ext <<EOF 4875 cat > conftest.$ac_ext <<EOF
4695 #line 4696 "configure" 4876 #line 4877 "configure"
4696 #include "confdefs.h" 4877 #include "confdefs.h"
4697 4878
4698 int main() { 4879 int main() {
4699 4880
4700 ; return 0; } 4881 ; return 0; }
4701 EOF 4882 EOF
4702 if { (eval echo configure:4703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4703 rm -rf conftest* 4884 rm -rf conftest*
4704 ac_R_nospace=yes 4885 ac_R_nospace=yes
4705 else 4886 else
4706 echo "configure: failed program was:" >&5 4887 echo "configure: failed program was:" >&5
4707 cat conftest.$ac_ext >&5 4888 cat conftest.$ac_ext >&5
4713 echo "$ac_t""no" 1>&6 4894 echo "$ac_t""no" 1>&6
4714 X_LIBS="$X_LIBS -R$x_libraries" 4895 X_LIBS="$X_LIBS -R$x_libraries"
4715 else 4896 else
4716 LIBS="$ac_xsave_LIBS -R $x_libraries" 4897 LIBS="$ac_xsave_LIBS -R $x_libraries"
4717 cat > conftest.$ac_ext <<EOF 4898 cat > conftest.$ac_ext <<EOF
4718 #line 4719 "configure" 4899 #line 4900 "configure"
4719 #include "confdefs.h" 4900 #include "confdefs.h"
4720 4901
4721 int main() { 4902 int main() {
4722 4903
4723 ; return 0; } 4904 ; return 0; }
4724 EOF 4905 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4906 if { (eval echo configure:4907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4726 rm -rf conftest* 4907 rm -rf conftest*
4727 ac_R_space=yes 4908 ac_R_space=yes
4728 else 4909 else
4729 echo "configure: failed program was:" >&5 4910 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5 4911 cat conftest.$ac_ext >&5
4756 if test "$with_dnet" = "no" ; then 4937 if test "$with_dnet" = "no" ; then
4757 ac_cv_lib_dnet_dnet_ntoa=no 4938 ac_cv_lib_dnet_dnet_ntoa=no
4758 else 4939 else
4759 4940
4760 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4941 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4761 echo "configure:4762: checking for dnet_ntoa in -ldnet" >&5 4942 echo "configure:4943: checking for dnet_ntoa in -ldnet" >&5
4762 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4943 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4763 4944
4764 xe_check_libs=" -ldnet " 4945 xe_check_libs=" -ldnet "
4765 cat > conftest.$ac_ext <<EOF 4946 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure" 4947 #line 4948 "configure"
4767 #include "confdefs.h" 4948 #include "confdefs.h"
4768 /* Override any gcc2 internal prototype to avoid an error. */ 4949 /* Override any gcc2 internal prototype to avoid an error. */
4769 /* We use char because int might match the return type of a gcc2 4950 /* We use char because int might match the return type of a gcc2
4770 builtin and then its argument prototype would still apply. */ 4951 builtin and then its argument prototype would still apply. */
4771 char dnet_ntoa(); 4952 char dnet_ntoa();
4772 4953
4773 int main() { 4954 int main() {
4774 dnet_ntoa() 4955 dnet_ntoa()
4775 ; return 0; } 4956 ; return 0; }
4776 EOF 4957 EOF
4777 if { (eval echo configure:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4958 if { (eval echo configure:4959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 rm -rf conftest* 4959 rm -rf conftest*
4779 eval "ac_cv_lib_$ac_lib_var=yes" 4960 eval "ac_cv_lib_$ac_lib_var=yes"
4780 else 4961 else
4781 echo "configure: failed program was:" >&5 4962 echo "configure: failed program was:" >&5
4782 cat conftest.$ac_ext >&5 4963 cat conftest.$ac_ext >&5
4796 fi 4977 fi
4797 4978
4798 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4979 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4799 4980
4800 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4981 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4801 echo "configure:4802: checking for dnet_ntoa in -ldnet_stub" >&5 4982 echo "configure:4983: checking for dnet_ntoa in -ldnet_stub" >&5
4802 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4983 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4803 4984
4804 xe_check_libs=" -ldnet_stub " 4985 xe_check_libs=" -ldnet_stub "
4805 cat > conftest.$ac_ext <<EOF 4986 cat > conftest.$ac_ext <<EOF
4806 #line 4807 "configure" 4987 #line 4988 "configure"
4807 #include "confdefs.h" 4988 #include "confdefs.h"
4808 /* Override any gcc2 internal prototype to avoid an error. */ 4989 /* Override any gcc2 internal prototype to avoid an error. */
4809 /* We use char because int might match the return type of a gcc2 4990 /* We use char because int might match the return type of a gcc2
4810 builtin and then its argument prototype would still apply. */ 4991 builtin and then its argument prototype would still apply. */
4811 char dnet_ntoa(); 4992 char dnet_ntoa();
4812 4993
4813 int main() { 4994 int main() {
4814 dnet_ntoa() 4995 dnet_ntoa()
4815 ; return 0; } 4996 ; return 0; }
4816 EOF 4997 EOF
4817 if { (eval echo configure:4818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4818 rm -rf conftest* 4999 rm -rf conftest*
4819 eval "ac_cv_lib_$ac_lib_var=yes" 5000 eval "ac_cv_lib_$ac_lib_var=yes"
4820 else 5001 else
4821 echo "configure: failed program was:" >&5 5002 echo "configure: failed program was:" >&5
4822 cat conftest.$ac_ext >&5 5003 cat conftest.$ac_ext >&5
4841 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 5022 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4842 # needs -lnsl. 5023 # needs -lnsl.
4843 # The nsl library prevents programs from opening the X display 5024 # The nsl library prevents programs from opening the X display
4844 # on Irix 5.2, according to dickey@clark.net. 5025 # on Irix 5.2, according to dickey@clark.net.
4845 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 5026 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4846 echo "configure:4847: checking for gethostbyname" >&5 5027 echo "configure:5028: checking for gethostbyname" >&5
4847 5028
4848 cat > conftest.$ac_ext <<EOF 5029 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure" 5030 #line 5031 "configure"
4850 #include "confdefs.h" 5031 #include "confdefs.h"
4851 /* System header to define __stub macros and hopefully few prototypes, 5032 /* System header to define __stub macros and hopefully few prototypes,
4852 which can conflict with char gethostbyname(); below. */ 5033 which can conflict with char gethostbyname(); below. */
4853 #include <assert.h> 5034 #include <assert.h>
4854 /* Override any gcc2 internal prototype to avoid an error. */ 5035 /* Override any gcc2 internal prototype to avoid an error. */
4867 gethostbyname(); 5048 gethostbyname();
4868 #endif 5049 #endif
4869 5050
4870 ; return 0; } 5051 ; return 0; }
4871 EOF 5052 EOF
4872 if { (eval echo configure:4873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5053 if { (eval echo configure:5054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4873 rm -rf conftest* 5054 rm -rf conftest*
4874 eval "ac_cv_func_gethostbyname=yes" 5055 eval "ac_cv_func_gethostbyname=yes"
4875 else 5056 else
4876 echo "configure: failed program was:" >&5 5057 echo "configure: failed program was:" >&5
4877 cat conftest.$ac_ext >&5 5058 cat conftest.$ac_ext >&5
4888 fi 5069 fi
4889 5070
4890 if test $ac_cv_func_gethostbyname = no; then 5071 if test $ac_cv_func_gethostbyname = no; then
4891 5072
4892 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 5073 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4893 echo "configure:4894: checking for gethostbyname in -lnsl" >&5 5074 echo "configure:5075: checking for gethostbyname in -lnsl" >&5
4894 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 5075 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4895 5076
4896 xe_check_libs=" -lnsl " 5077 xe_check_libs=" -lnsl "
4897 cat > conftest.$ac_ext <<EOF 5078 cat > conftest.$ac_ext <<EOF
4898 #line 4899 "configure" 5079 #line 5080 "configure"
4899 #include "confdefs.h" 5080 #include "confdefs.h"
4900 /* Override any gcc2 internal prototype to avoid an error. */ 5081 /* Override any gcc2 internal prototype to avoid an error. */
4901 /* We use char because int might match the return type of a gcc2 5082 /* We use char because int might match the return type of a gcc2
4902 builtin and then its argument prototype would still apply. */ 5083 builtin and then its argument prototype would still apply. */
4903 char gethostbyname(); 5084 char gethostbyname();
4904 5085
4905 int main() { 5086 int main() {
4906 gethostbyname() 5087 gethostbyname()
4907 ; return 0; } 5088 ; return 0; }
4908 EOF 5089 EOF
4909 if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5090 if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4910 rm -rf conftest* 5091 rm -rf conftest*
4911 eval "ac_cv_lib_$ac_lib_var=yes" 5092 eval "ac_cv_lib_$ac_lib_var=yes"
4912 else 5093 else
4913 echo "configure: failed program was:" >&5 5094 echo "configure: failed program was:" >&5
4914 cat conftest.$ac_ext >&5 5095 cat conftest.$ac_ext >&5
4934 # on later versions), says simon@lia.di.epfl.ch: it contains 5115 # on later versions), says simon@lia.di.epfl.ch: it contains
4935 # gethostby* variants that don't use the nameserver (or something). 5116 # gethostby* variants that don't use the nameserver (or something).
4936 # -lsocket must be given before -lnsl if both are needed. 5117 # -lsocket must be given before -lnsl if both are needed.
4937 # We assume that if connect needs -lnsl, so does gethostbyname. 5118 # We assume that if connect needs -lnsl, so does gethostbyname.
4938 echo $ac_n "checking for connect""... $ac_c" 1>&6 5119 echo $ac_n "checking for connect""... $ac_c" 1>&6
4939 echo "configure:4940: checking for connect" >&5 5120 echo "configure:5121: checking for connect" >&5
4940 5121
4941 cat > conftest.$ac_ext <<EOF 5122 cat > conftest.$ac_ext <<EOF
4942 #line 4943 "configure" 5123 #line 5124 "configure"
4943 #include "confdefs.h" 5124 #include "confdefs.h"
4944 /* System header to define __stub macros and hopefully few prototypes, 5125 /* System header to define __stub macros and hopefully few prototypes,
4945 which can conflict with char connect(); below. */ 5126 which can conflict with char connect(); below. */
4946 #include <assert.h> 5127 #include <assert.h>
4947 /* Override any gcc2 internal prototype to avoid an error. */ 5128 /* Override any gcc2 internal prototype to avoid an error. */
4960 connect(); 5141 connect();
4961 #endif 5142 #endif
4962 5143
4963 ; return 0; } 5144 ; return 0; }
4964 EOF 5145 EOF
4965 if { (eval echo configure:4966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5146 if { (eval echo configure:5147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4966 rm -rf conftest* 5147 rm -rf conftest*
4967 eval "ac_cv_func_connect=yes" 5148 eval "ac_cv_func_connect=yes"
4968 else 5149 else
4969 echo "configure: failed program was:" >&5 5150 echo "configure: failed program was:" >&5
4970 cat conftest.$ac_ext >&5 5151 cat conftest.$ac_ext >&5
4983 if test $ac_cv_func_connect = no; then 5164 if test $ac_cv_func_connect = no; then
4984 5165
4985 xe_msg_checking="for connect in -lsocket" 5166 xe_msg_checking="for connect in -lsocket"
4986 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 5167 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4987 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5168 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4988 echo "configure:4989: checking "$xe_msg_checking"" >&5 5169 echo "configure:5170: checking "$xe_msg_checking"" >&5
4989 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 5170 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4990 5171
4991 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 5172 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4992 cat > conftest.$ac_ext <<EOF 5173 cat > conftest.$ac_ext <<EOF
4993 #line 4994 "configure" 5174 #line 5175 "configure"
4994 #include "confdefs.h" 5175 #include "confdefs.h"
4995 /* Override any gcc2 internal prototype to avoid an error. */ 5176 /* Override any gcc2 internal prototype to avoid an error. */
4996 /* We use char because int might match the return type of a gcc2 5177 /* We use char because int might match the return type of a gcc2
4997 builtin and then its argument prototype would still apply. */ 5178 builtin and then its argument prototype would still apply. */
4998 char connect(); 5179 char connect();
4999 5180
5000 int main() { 5181 int main() {
5001 connect() 5182 connect()
5002 ; return 0; } 5183 ; return 0; }
5003 EOF 5184 EOF
5004 if { (eval echo configure:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5185 if { (eval echo configure:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5005 rm -rf conftest* 5186 rm -rf conftest*
5006 eval "ac_cv_lib_$ac_lib_var=yes" 5187 eval "ac_cv_lib_$ac_lib_var=yes"
5007 else 5188 else
5008 echo "configure: failed program was:" >&5 5189 echo "configure: failed program was:" >&5
5009 cat conftest.$ac_ext >&5 5190 cat conftest.$ac_ext >&5
5023 5204
5024 fi 5205 fi
5025 5206
5026 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 5207 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
5027 echo $ac_n "checking for remove""... $ac_c" 1>&6 5208 echo $ac_n "checking for remove""... $ac_c" 1>&6
5028 echo "configure:5029: checking for remove" >&5 5209 echo "configure:5210: checking for remove" >&5
5029 5210
5030 cat > conftest.$ac_ext <<EOF 5211 cat > conftest.$ac_ext <<EOF
5031 #line 5032 "configure" 5212 #line 5213 "configure"
5032 #include "confdefs.h" 5213 #include "confdefs.h"
5033 /* System header to define __stub macros and hopefully few prototypes, 5214 /* System header to define __stub macros and hopefully few prototypes,
5034 which can conflict with char remove(); below. */ 5215 which can conflict with char remove(); below. */
5035 #include <assert.h> 5216 #include <assert.h>
5036 /* Override any gcc2 internal prototype to avoid an error. */ 5217 /* Override any gcc2 internal prototype to avoid an error. */
5049 remove(); 5230 remove();
5050 #endif 5231 #endif
5051 5232
5052 ; return 0; } 5233 ; return 0; }
5053 EOF 5234 EOF
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5055 rm -rf conftest* 5236 rm -rf conftest*
5056 eval "ac_cv_func_remove=yes" 5237 eval "ac_cv_func_remove=yes"
5057 else 5238 else
5058 echo "configure: failed program was:" >&5 5239 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5 5240 cat conftest.$ac_ext >&5
5070 fi 5251 fi
5071 5252
5072 if test $ac_cv_func_remove = no; then 5253 if test $ac_cv_func_remove = no; then
5073 5254
5074 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 5255 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
5075 echo "configure:5076: checking for remove in -lposix" >&5 5256 echo "configure:5257: checking for remove in -lposix" >&5
5076 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 5257 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
5077 5258
5078 xe_check_libs=" -lposix " 5259 xe_check_libs=" -lposix "
5079 cat > conftest.$ac_ext <<EOF 5260 cat > conftest.$ac_ext <<EOF
5080 #line 5081 "configure" 5261 #line 5262 "configure"
5081 #include "confdefs.h" 5262 #include "confdefs.h"
5082 /* Override any gcc2 internal prototype to avoid an error. */ 5263 /* Override any gcc2 internal prototype to avoid an error. */
5083 /* We use char because int might match the return type of a gcc2 5264 /* We use char because int might match the return type of a gcc2
5084 builtin and then its argument prototype would still apply. */ 5265 builtin and then its argument prototype would still apply. */
5085 char remove(); 5266 char remove();
5086 5267
5087 int main() { 5268 int main() {
5088 remove() 5269 remove()
5089 ; return 0; } 5270 ; return 0; }
5090 EOF 5271 EOF
5091 if { (eval echo configure:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5092 rm -rf conftest* 5273 rm -rf conftest*
5093 eval "ac_cv_lib_$ac_lib_var=yes" 5274 eval "ac_cv_lib_$ac_lib_var=yes"
5094 else 5275 else
5095 echo "configure: failed program was:" >&5 5276 echo "configure: failed program was:" >&5
5096 cat conftest.$ac_ext >&5 5277 cat conftest.$ac_ext >&5
5110 5291
5111 fi 5292 fi
5112 5293
5113 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5294 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5114 echo $ac_n "checking for shmat""... $ac_c" 1>&6 5295 echo $ac_n "checking for shmat""... $ac_c" 1>&6
5115 echo "configure:5116: checking for shmat" >&5 5296 echo "configure:5297: checking for shmat" >&5
5116 5297
5117 cat > conftest.$ac_ext <<EOF 5298 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure" 5299 #line 5300 "configure"
5119 #include "confdefs.h" 5300 #include "confdefs.h"
5120 /* System header to define __stub macros and hopefully few prototypes, 5301 /* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char shmat(); below. */ 5302 which can conflict with char shmat(); below. */
5122 #include <assert.h> 5303 #include <assert.h>
5123 /* Override any gcc2 internal prototype to avoid an error. */ 5304 /* Override any gcc2 internal prototype to avoid an error. */
5136 shmat(); 5317 shmat();
5137 #endif 5318 #endif
5138 5319
5139 ; return 0; } 5320 ; return 0; }
5140 EOF 5321 EOF
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5322 if { (eval echo configure:5323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5142 rm -rf conftest* 5323 rm -rf conftest*
5143 eval "ac_cv_func_shmat=yes" 5324 eval "ac_cv_func_shmat=yes"
5144 else 5325 else
5145 echo "configure: failed program was:" >&5 5326 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5 5327 cat conftest.$ac_ext >&5
5157 fi 5338 fi
5158 5339
5159 if test $ac_cv_func_shmat = no; then 5340 if test $ac_cv_func_shmat = no; then
5160 5341
5161 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 5342 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
5162 echo "configure:5163: checking for shmat in -lipc" >&5 5343 echo "configure:5344: checking for shmat in -lipc" >&5
5163 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 5344 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
5164 5345
5165 xe_check_libs=" -lipc " 5346 xe_check_libs=" -lipc "
5166 cat > conftest.$ac_ext <<EOF 5347 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure" 5348 #line 5349 "configure"
5168 #include "confdefs.h" 5349 #include "confdefs.h"
5169 /* Override any gcc2 internal prototype to avoid an error. */ 5350 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2 5351 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */ 5352 builtin and then its argument prototype would still apply. */
5172 char shmat(); 5353 char shmat();
5173 5354
5174 int main() { 5355 int main() {
5175 shmat() 5356 shmat()
5176 ; return 0; } 5357 ; return 0; }
5177 EOF 5358 EOF
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5359 if { (eval echo configure:5360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179 rm -rf conftest* 5360 rm -rf conftest*
5180 eval "ac_cv_lib_$ac_lib_var=yes" 5361 eval "ac_cv_lib_$ac_lib_var=yes"
5181 else 5362 else
5182 echo "configure: failed program was:" >&5 5363 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5 5364 cat conftest.$ac_ext >&5
5206 # we get undefined symbols. So assume we have SM if we have ICE. 5387 # we get undefined symbols. So assume we have SM if we have ICE.
5207 # These have to be linked with before -lX11, unlike the other 5388 # These have to be linked with before -lX11, unlike the other
5208 # libraries we check for below, so use a different variable. 5389 # libraries we check for below, so use a different variable.
5209 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 5390 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
5210 5391
5211 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 5392 xe_msg_checking="for IceConnectionNumber in -lICE"
5212 echo "configure:5213: checking for IceConnectionNumber in -lICE" >&5 5393 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
5394 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5395 echo "configure:5396: checking "$xe_msg_checking"" >&5
5213 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 5396 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
5214 5397
5215 xe_check_libs=" -lICE " 5398 xe_check_libs=" -lICE $X_EXTRA_LIBS"
5216 cat > conftest.$ac_ext <<EOF 5399 cat > conftest.$ac_ext <<EOF
5217 #line 5218 "configure" 5400 #line 5401 "configure"
5218 #include "confdefs.h" 5401 #include "confdefs.h"
5219 /* Override any gcc2 internal prototype to avoid an error. */ 5402 /* Override any gcc2 internal prototype to avoid an error. */
5220 /* We use char because int might match the return type of a gcc2 5403 /* We use char because int might match the return type of a gcc2
5221 builtin and then its argument prototype would still apply. */ 5404 builtin and then its argument prototype would still apply. */
5222 char IceConnectionNumber(); 5405 char IceConnectionNumber();
5223 5406
5224 int main() { 5407 int main() {
5225 IceConnectionNumber() 5408 IceConnectionNumber()
5226 ; return 0; } 5409 ; return 0; }
5227 EOF 5410 EOF
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5411 if { (eval echo configure:5412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5229 rm -rf conftest* 5412 rm -rf conftest*
5230 eval "ac_cv_lib_$ac_lib_var=yes" 5413 eval "ac_cv_lib_$ac_lib_var=yes"
5231 else 5414 else
5232 echo "configure: failed program was:" >&5 5415 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5 5416 cat conftest.$ac_ext >&5
5392 EOF 5575 EOF
5393 } 5576 }
5394 5577
5395 5578
5396 echo "checking for X defines extracted by xmkmf" 1>&6 5579 echo "checking for X defines extracted by xmkmf" 1>&6
5397 echo "configure:5398: checking for X defines extracted by xmkmf" >&5 5580 echo "configure:5581: checking for X defines extracted by xmkmf" >&5
5398 rm -fr conftestdir 5581 rm -fr conftestdir
5399 if mkdir conftestdir; then 5582 if mkdir conftestdir; then
5400 cd conftestdir 5583 cd conftestdir
5401 cat > Imakefile <<'EOF' 5584 cat > Imakefile <<'EOF'
5402 xetest: 5585 xetest:
5424 done 5607 done
5425 fi 5608 fi
5426 5609
5427 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5610 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5428 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5611 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5429 echo "configure:5430: checking for X11/Intrinsic.h" >&5 5612 echo "configure:5613: checking for X11/Intrinsic.h" >&5
5430 5613
5431 cat > conftest.$ac_ext <<EOF 5614 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure" 5615 #line 5616 "configure"
5433 #include "confdefs.h" 5616 #include "confdefs.h"
5434 #include <X11/Intrinsic.h> 5617 #include <X11/Intrinsic.h>
5435 EOF 5618 EOF
5436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5437 { (eval echo configure:5438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5620 { (eval echo configure:5621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5438 ac_err=`grep -v '^ *+' conftest.out` 5621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5439 if test -z "$ac_err"; then 5622 if test -z "$ac_err"; then
5440 rm -rf conftest* 5623 rm -rf conftest*
5441 eval "ac_cv_header_$ac_safe=yes" 5624 eval "ac_cv_header_$ac_safe=yes"
5442 else 5625 else
5443 echo "$ac_err" >&5 5626 echo "$ac_err" >&5
5456 fi 5639 fi
5457 5640
5458 5641
5459 5642
5460 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5643 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5461 echo "configure:5462: checking for XOpenDisplay in -lX11" >&5 5644 echo "configure:5645: checking for XOpenDisplay in -lX11" >&5
5462 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5645 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5463 5646
5464 xe_check_libs=" -lX11 " 5647 xe_check_libs=" -lX11 "
5465 cat > conftest.$ac_ext <<EOF 5648 cat > conftest.$ac_ext <<EOF
5466 #line 5467 "configure" 5649 #line 5650 "configure"
5467 #include "confdefs.h" 5650 #include "confdefs.h"
5468 /* Override any gcc2 internal prototype to avoid an error. */ 5651 /* Override any gcc2 internal prototype to avoid an error. */
5469 /* We use char because int might match the return type of a gcc2 5652 /* We use char because int might match the return type of a gcc2
5470 builtin and then its argument prototype would still apply. */ 5653 builtin and then its argument prototype would still apply. */
5471 char XOpenDisplay(); 5654 char XOpenDisplay();
5472 5655
5473 int main() { 5656 int main() {
5474 XOpenDisplay() 5657 XOpenDisplay()
5475 ; return 0; } 5658 ; return 0; }
5476 EOF 5659 EOF
5477 if { (eval echo configure:5478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5660 if { (eval echo configure:5661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5478 rm -rf conftest* 5661 rm -rf conftest*
5479 eval "ac_cv_lib_$ac_lib_var=yes" 5662 eval "ac_cv_lib_$ac_lib_var=yes"
5480 else 5663 else
5481 echo "configure: failed program was:" >&5 5664 echo "configure: failed program was:" >&5
5482 cat conftest.$ac_ext >&5 5665 cat conftest.$ac_ext >&5
5497 if test "$have_lib_x11" != "yes"; then 5680 if test "$have_lib_x11" != "yes"; then
5498 5681
5499 xe_msg_checking="for XGetFontProperty in -lX11" 5682 xe_msg_checking="for XGetFontProperty in -lX11"
5500 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5683 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5501 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5684 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5502 echo "configure:5503: checking "$xe_msg_checking"" >&5 5685 echo "configure:5686: checking "$xe_msg_checking"" >&5
5503 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5686 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5504 5687
5505 xe_check_libs=" -lX11 -b i486-linuxaout" 5688 xe_check_libs=" -lX11 -b i486-linuxaout"
5506 cat > conftest.$ac_ext <<EOF 5689 cat > conftest.$ac_ext <<EOF
5507 #line 5508 "configure" 5690 #line 5691 "configure"
5508 #include "confdefs.h" 5691 #include "confdefs.h"
5509 /* Override any gcc2 internal prototype to avoid an error. */ 5692 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2 5693 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */ 5694 builtin and then its argument prototype would still apply. */
5512 char XGetFontProperty(); 5695 char XGetFontProperty();
5513 5696
5514 int main() { 5697 int main() {
5515 XGetFontProperty() 5698 XGetFontProperty()
5516 ; return 0; } 5699 ; return 0; }
5517 EOF 5700 EOF
5518 if { (eval echo configure:5519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5519 rm -rf conftest* 5702 rm -rf conftest*
5520 eval "ac_cv_lib_$ac_lib_var=yes" 5703 eval "ac_cv_lib_$ac_lib_var=yes"
5521 else 5704 else
5522 echo "configure: failed program was:" >&5 5705 echo "configure: failed program was:" >&5
5523 cat conftest.$ac_ext >&5 5706 cat conftest.$ac_ext >&5
5540 libs_x="-lX11" 5723 libs_x="-lX11"
5541 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5724 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5542 5725
5543 5726
5544 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5727 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5545 echo "configure:5546: checking for XShapeSelectInput in -lXext" >&5 5728 echo "configure:5729: checking for XShapeSelectInput in -lXext" >&5
5546 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5729 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5547 5730
5548 xe_check_libs=" -lXext " 5731 xe_check_libs=" -lXext "
5549 cat > conftest.$ac_ext <<EOF 5732 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure" 5733 #line 5734 "configure"
5551 #include "confdefs.h" 5734 #include "confdefs.h"
5552 /* Override any gcc2 internal prototype to avoid an error. */ 5735 /* Override any gcc2 internal prototype to avoid an error. */
5553 /* We use char because int might match the return type of a gcc2 5736 /* We use char because int might match the return type of a gcc2
5554 builtin and then its argument prototype would still apply. */ 5737 builtin and then its argument prototype would still apply. */
5555 char XShapeSelectInput(); 5738 char XShapeSelectInput();
5556 5739
5557 int main() { 5740 int main() {
5558 XShapeSelectInput() 5741 XShapeSelectInput()
5559 ; return 0; } 5742 ; return 0; }
5560 EOF 5743 EOF
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5744 if { (eval echo configure:5745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5562 rm -rf conftest* 5745 rm -rf conftest*
5563 eval "ac_cv_lib_$ac_lib_var=yes" 5746 eval "ac_cv_lib_$ac_lib_var=yes"
5564 else 5747 else
5565 echo "configure: failed program was:" >&5 5748 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5 5749 cat conftest.$ac_ext >&5
5579 5762
5580 5763
5581 5764
5582 5765
5583 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5766 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5584 echo "configure:5585: checking for XtOpenDisplay in -lXt" >&5 5767 echo "configure:5768: checking for XtOpenDisplay in -lXt" >&5
5585 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5768 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5586 5769
5587 xe_check_libs=" -lXt " 5770 xe_check_libs=" -lXt "
5588 cat > conftest.$ac_ext <<EOF 5771 cat > conftest.$ac_ext <<EOF
5589 #line 5590 "configure" 5772 #line 5773 "configure"
5590 #include "confdefs.h" 5773 #include "confdefs.h"
5591 /* Override any gcc2 internal prototype to avoid an error. */ 5774 /* Override any gcc2 internal prototype to avoid an error. */
5592 /* We use char because int might match the return type of a gcc2 5775 /* We use char because int might match the return type of a gcc2
5593 builtin and then its argument prototype would still apply. */ 5776 builtin and then its argument prototype would still apply. */
5594 char XtOpenDisplay(); 5777 char XtOpenDisplay();
5595 5778
5596 int main() { 5779 int main() {
5597 XtOpenDisplay() 5780 XtOpenDisplay()
5598 ; return 0; } 5781 ; return 0; }
5599 EOF 5782 EOF
5600 if { (eval echo configure:5601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5601 rm -rf conftest* 5784 rm -rf conftest*
5602 eval "ac_cv_lib_$ac_lib_var=yes" 5785 eval "ac_cv_lib_$ac_lib_var=yes"
5603 else 5786 else
5604 echo "configure: failed program was:" >&5 5787 echo "configure: failed program was:" >&5
5605 cat conftest.$ac_ext >&5 5788 cat conftest.$ac_ext >&5
5618 fi 5801 fi
5619 5802
5620 5803
5621 5804
5622 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5805 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5623 echo "configure:5624: checking the version of X11 being used" >&5 5806 echo "configure:5807: checking the version of X11 being used" >&5
5624 cat > conftest.$ac_ext <<EOF 5807 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure" 5808 #line 5809 "configure"
5626 #include "confdefs.h" 5809 #include "confdefs.h"
5627 #include <X11/Intrinsic.h> 5810 #include <X11/Intrinsic.h>
5628 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5811 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5629 EOF 5812 EOF
5630 if { (eval echo configure:5631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 5813 if { (eval echo configure:5814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5631 then 5814 then
5632 ./conftest foobar; x11_release=$? 5815 ./conftest foobar; x11_release=$?
5633 else 5816 else
5634 conftest_rc="$?" 5817 conftest_rc="$?"
5635 echo "configure: failed program was:" >&5 5818 echo "configure: failed program was:" >&5
5650 5833
5651 for ac_hdr in X11/Xlocale.h 5834 for ac_hdr in X11/Xlocale.h
5652 do 5835 do
5653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5655 echo "configure:5656: checking for $ac_hdr" >&5 5838 echo "configure:5839: checking for $ac_hdr" >&5
5656 5839
5657 cat > conftest.$ac_ext <<EOF 5840 cat > conftest.$ac_ext <<EOF
5658 #line 5659 "configure" 5841 #line 5842 "configure"
5659 #include "confdefs.h" 5842 #include "confdefs.h"
5660 #include <$ac_hdr> 5843 #include <$ac_hdr>
5661 EOF 5844 EOF
5662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5663 { (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5846 { (eval echo configure:5847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5664 ac_err=`grep -v '^ *+' conftest.out` 5847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5665 if test -z "$ac_err"; then 5848 if test -z "$ac_err"; then
5666 rm -rf conftest* 5849 rm -rf conftest*
5667 eval "ac_cv_header_$ac_safe=yes" 5850 eval "ac_cv_header_$ac_safe=yes"
5668 else 5851 else
5669 echo "$ac_err" >&5 5852 echo "$ac_err" >&5
5689 fi 5872 fi
5690 done 5873 done
5691 5874
5692 5875
5693 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5876 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5694 echo "configure:5695: checking for XFree86" >&5 5877 echo "configure:5878: checking for XFree86" >&5
5695 if test -d "/usr/X386/include" -o \ 5878 if test -d "/usr/X386/include" -o \
5696 -f "/etc/XF86Config" -o \ 5879 -f "/etc/XF86Config" -o \
5697 -f "/etc/X11/XF86Config" -o \ 5880 -f "/etc/X11/XF86Config" -o \
5698 -f "/usr/X11R6/lib/X11/XF86Config"; then 5881 -f "/usr/X11R6/lib/X11/XF86Config"; then
5699 echo "$ac_t""yes" 1>&6 5882 echo "$ac_t""yes" 1>&6
5709 echo "$ac_t""no" 1>&6 5892 echo "$ac_t""no" 1>&6
5710 fi 5893 fi
5711 5894
5712 test -z "$with_xmu" && { 5895 test -z "$with_xmu" && {
5713 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5896 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5714 echo "configure:5715: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5897 echo "configure:5898: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5715 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5898 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5716 5899
5717 xe_check_libs=" -lXmu " 5900 xe_check_libs=" -lXmu "
5718 cat > conftest.$ac_ext <<EOF 5901 cat > conftest.$ac_ext <<EOF
5719 #line 5720 "configure" 5902 #line 5903 "configure"
5720 #include "confdefs.h" 5903 #include "confdefs.h"
5721 /* Override any gcc2 internal prototype to avoid an error. */ 5904 /* Override any gcc2 internal prototype to avoid an error. */
5722 /* We use char because int might match the return type of a gcc2 5905 /* We use char because int might match the return type of a gcc2
5723 builtin and then its argument prototype would still apply. */ 5906 builtin and then its argument prototype would still apply. */
5724 char XmuReadBitmapDataFromFile(); 5907 char XmuReadBitmapDataFromFile();
5725 5908
5726 int main() { 5909 int main() {
5727 XmuReadBitmapDataFromFile() 5910 XmuReadBitmapDataFromFile()
5728 ; return 0; } 5911 ; return 0; }
5729 EOF 5912 EOF
5730 if { (eval echo configure:5731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5913 if { (eval echo configure:5914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5731 rm -rf conftest* 5914 rm -rf conftest*
5732 eval "ac_cv_lib_$ac_lib_var=yes" 5915 eval "ac_cv_lib_$ac_lib_var=yes"
5733 else 5916 else
5734 echo "configure: failed program was:" >&5 5917 echo "configure: failed program was:" >&5
5735 cat conftest.$ac_ext >&5 5918 cat conftest.$ac_ext >&5
5764 5947
5765 fi 5948 fi
5766 5949
5767 5950
5768 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5951 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5769 echo "configure:5770: checking for main in -lXbsd" >&5 5952 echo "configure:5953: checking for main in -lXbsd" >&5
5770 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5953 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5771 5954
5772 xe_check_libs=" -lXbsd " 5955 xe_check_libs=" -lXbsd "
5773 cat > conftest.$ac_ext <<EOF 5956 cat > conftest.$ac_ext <<EOF
5774 #line 5775 "configure" 5957 #line 5958 "configure"
5775 #include "confdefs.h" 5958 #include "confdefs.h"
5776 5959
5777 int main() { 5960 int main() {
5778 main() 5961 main()
5779 ; return 0; } 5962 ; return 0; }
5780 EOF 5963 EOF
5781 if { (eval echo configure:5782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5964 if { (eval echo configure:5965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5782 rm -rf conftest* 5965 rm -rf conftest*
5783 eval "ac_cv_lib_$ac_lib_var=yes" 5966 eval "ac_cv_lib_$ac_lib_var=yes"
5784 else 5967 else
5785 echo "configure: failed program was:" >&5 5968 echo "configure: failed program was:" >&5
5786 cat conftest.$ac_ext >&5 5969 cat conftest.$ac_ext >&5
5813 fi 5996 fi
5814 5997
5815 fi 5998 fi
5816 if test "$with_msw" != "no"; then 5999 if test "$with_msw" != "no"; then
5817 echo "checking for MS-Windows" 1>&6 6000 echo "checking for MS-Windows" 1>&6
5818 echo "configure:5819: checking for MS-Windows" >&5 6001 echo "configure:6002: checking for MS-Windows" >&5
5819 6002
5820 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 6003 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
5821 echo "configure:5822: checking for main in -lgdi32" >&5 6004 echo "configure:6005: checking for main in -lgdi32" >&5
5822 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 6005 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
5823 6006
5824 xe_check_libs=" -lgdi32 " 6007 xe_check_libs=" -lgdi32 "
5825 cat > conftest.$ac_ext <<EOF 6008 cat > conftest.$ac_ext <<EOF
5826 #line 5827 "configure" 6009 #line 6010 "configure"
5827 #include "confdefs.h" 6010 #include "confdefs.h"
5828 6011
5829 int main() { 6012 int main() {
5830 main() 6013 main()
5831 ; return 0; } 6014 ; return 0; }
5832 EOF 6015 EOF
5833 if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6016 if { (eval echo configure:6017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5834 rm -rf conftest* 6017 rm -rf conftest*
5835 eval "ac_cv_lib_$ac_lib_var=yes" 6018 eval "ac_cv_lib_$ac_lib_var=yes"
5836 else 6019 else
5837 echo "configure: failed program was:" >&5 6020 echo "configure: failed program was:" >&5
5838 cat conftest.$ac_ext >&5 6021 cat conftest.$ac_ext >&5
5893 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then 6076 test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-msw.o" && if test "$extra_verbose" = "yes"; then
5894 echo " xemacs will be linked with \"dialog-msw.o\"" 6077 echo " xemacs will be linked with \"dialog-msw.o\""
5895 fi 6078 fi
5896 fi 6079 fi
5897 cat > conftest.$ac_ext <<EOF 6080 cat > conftest.$ac_ext <<EOF
5898 #line 5899 "configure" 6081 #line 6082 "configure"
5899 #include "confdefs.h" 6082 #include "confdefs.h"
5900 #include <fcntl.h> 6083 #include <fcntl.h>
5901 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 6084 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
5902 EOF 6085 EOF
5903 if { (eval echo configure:5904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6086 if { (eval echo configure:6087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
5904 then 6087 then
5905 { test "$extra_verbose" = "yes" && cat << \EOF 6088 { test "$extra_verbose" = "yes" && cat << \EOF
5906 Defining HAVE_MSG_SELECT 6089 Defining HAVE_MSG_SELECT
5907 EOF 6090 EOF
5908 cat >> confdefs.h <<\EOF 6091 cat >> confdefs.h <<\EOF
5977 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 6160 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5978 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 6161 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5979 esac 6162 esac
5980 6163
5981 echo "checking for session-management option" 1>&6 6164 echo "checking for session-management option" 1>&6
5982 echo "configure:5983: checking for session-management option" >&5; 6165 echo "configure:6166: checking for session-management option" >&5;
5983 if test "$with_session" != "no"; then 6166 if test "$with_session" != "no"; then
5984 { test "$extra_verbose" = "yes" && cat << \EOF 6167 { test "$extra_verbose" = "yes" && cat << \EOF
5985 Defining HAVE_SESSION 6168 Defining HAVE_SESSION
5986 EOF 6169 EOF
5987 cat >> confdefs.h <<\EOF 6170 cat >> confdefs.h <<\EOF
5992 fi 6175 fi
5993 6176
5994 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 6177 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5995 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 6178 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5996 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 6179 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5997 echo "configure:5998: checking for X11/Xauth.h" >&5 6180 echo "configure:6181: checking for X11/Xauth.h" >&5
5998 6181
5999 cat > conftest.$ac_ext <<EOF 6182 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure" 6183 #line 6184 "configure"
6001 #include "confdefs.h" 6184 #include "confdefs.h"
6002 #include <X11/Xauth.h> 6185 #include <X11/Xauth.h>
6003 EOF 6186 EOF
6004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6005 { (eval echo configure:6006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6188 { (eval echo configure:6189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6006 ac_err=`grep -v '^ *+' conftest.out` 6189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6007 if test -z "$ac_err"; then 6190 if test -z "$ac_err"; then
6008 rm -rf conftest* 6191 rm -rf conftest*
6009 eval "ac_cv_header_$ac_safe=yes" 6192 eval "ac_cv_header_$ac_safe=yes"
6010 else 6193 else
6011 echo "$ac_err" >&5 6194 echo "$ac_err" >&5
6023 with_xauth=no 6206 with_xauth=no
6024 fi 6207 fi
6025 } 6208 }
6026 test -z "$with_xauth" && { 6209 test -z "$with_xauth" && {
6027 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 6210 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
6028 echo "configure:6029: checking for XauGetAuthByAddr in -lXau" >&5 6211 echo "configure:6212: checking for XauGetAuthByAddr in -lXau" >&5
6029 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 6212 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
6030 6213
6031 xe_check_libs=" -lXau " 6214 xe_check_libs=" -lXau "
6032 cat > conftest.$ac_ext <<EOF 6215 cat > conftest.$ac_ext <<EOF
6033 #line 6034 "configure" 6216 #line 6217 "configure"
6034 #include "confdefs.h" 6217 #include "confdefs.h"
6035 /* Override any gcc2 internal prototype to avoid an error. */ 6218 /* Override any gcc2 internal prototype to avoid an error. */
6036 /* We use char because int might match the return type of a gcc2 6219 /* We use char because int might match the return type of a gcc2
6037 builtin and then its argument prototype would still apply. */ 6220 builtin and then its argument prototype would still apply. */
6038 char XauGetAuthByAddr(); 6221 char XauGetAuthByAddr();
6039 6222
6040 int main() { 6223 int main() {
6041 XauGetAuthByAddr() 6224 XauGetAuthByAddr()
6042 ; return 0; } 6225 ; return 0; }
6043 EOF 6226 EOF
6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6227 if { (eval echo configure:6228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6045 rm -rf conftest* 6228 rm -rf conftest*
6046 eval "ac_cv_lib_$ac_lib_var=yes" 6229 eval "ac_cv_lib_$ac_lib_var=yes"
6047 else 6230 else
6048 echo "configure: failed program was:" >&5 6231 echo "configure: failed program was:" >&5
6049 cat conftest.$ac_ext >&5 6232 cat conftest.$ac_ext >&5
6084 6267
6085 if test "$with_tooltalk" != "no" ; then 6268 if test "$with_tooltalk" != "no" ; then
6086 for dir in "" "Tt/" "desktop/" ; do 6269 for dir in "" "Tt/" "desktop/" ; do
6087 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 6270 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
6088 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 6271 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
6089 echo "configure:6090: checking for ${dir}tt_c.h" >&5 6272 echo "configure:6273: checking for ${dir}tt_c.h" >&5
6090 6273
6091 cat > conftest.$ac_ext <<EOF 6274 cat > conftest.$ac_ext <<EOF
6092 #line 6093 "configure" 6275 #line 6276 "configure"
6093 #include "confdefs.h" 6276 #include "confdefs.h"
6094 #include <${dir}tt_c.h> 6277 #include <${dir}tt_c.h>
6095 EOF 6278 EOF
6096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6097 { (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6280 { (eval echo configure:6281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6098 ac_err=`grep -v '^ *+' conftest.out` 6281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6099 if test -z "$ac_err"; then 6282 if test -z "$ac_err"; then
6100 rm -rf conftest* 6283 rm -rf conftest*
6101 eval "ac_cv_header_$ac_safe=yes" 6284 eval "ac_cv_header_$ac_safe=yes"
6102 else 6285 else
6103 echo "$ac_err" >&5 6286 echo "$ac_err" >&5
6128 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 6311 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
6129 6312
6130 xe_msg_checking="for tt_message_create in -ltt" 6313 xe_msg_checking="for tt_message_create in -ltt"
6131 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6314 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6132 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6315 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6133 echo "configure:6134: checking "$xe_msg_checking"" >&5 6316 echo "configure:6317: checking "$xe_msg_checking"" >&5
6134 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 6317 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
6135 6318
6136 xe_check_libs=" -ltt $extra_libs" 6319 xe_check_libs=" -ltt $extra_libs"
6137 cat > conftest.$ac_ext <<EOF 6320 cat > conftest.$ac_ext <<EOF
6138 #line 6139 "configure" 6321 #line 6322 "configure"
6139 #include "confdefs.h" 6322 #include "confdefs.h"
6140 /* Override any gcc2 internal prototype to avoid an error. */ 6323 /* Override any gcc2 internal prototype to avoid an error. */
6141 /* We use char because int might match the return type of a gcc2 6324 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */ 6325 builtin and then its argument prototype would still apply. */
6143 char tt_message_create(); 6326 char tt_message_create();
6144 6327
6145 int main() { 6328 int main() {
6146 tt_message_create() 6329 tt_message_create()
6147 ; return 0; } 6330 ; return 0; }
6148 EOF 6331 EOF
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6332 if { (eval echo configure:6333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6150 rm -rf conftest* 6333 rm -rf conftest*
6151 eval "ac_cv_lib_$ac_lib_var=yes" 6334 eval "ac_cv_lib_$ac_lib_var=yes"
6152 else 6335 else
6153 echo "configure: failed program was:" >&5 6336 echo "configure: failed program was:" >&5
6154 cat conftest.$ac_ext >&5 6337 cat conftest.$ac_ext >&5
6201 fi 6384 fi
6202 fi 6385 fi
6203 6386
6204 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 6387 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
6205 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 6388 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
6206 echo "configure:6207: checking for Dt/Dt.h" >&5 6389 echo "configure:6390: checking for Dt/Dt.h" >&5
6207 6390
6208 cat > conftest.$ac_ext <<EOF 6391 cat > conftest.$ac_ext <<EOF
6209 #line 6210 "configure" 6392 #line 6393 "configure"
6210 #include "confdefs.h" 6393 #include "confdefs.h"
6211 #include <Dt/Dt.h> 6394 #include <Dt/Dt.h>
6212 EOF 6395 EOF
6213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6214 { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6397 { (eval echo configure:6398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6215 ac_err=`grep -v '^ *+' conftest.out` 6398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6216 if test -z "$ac_err"; then 6399 if test -z "$ac_err"; then
6217 rm -rf conftest* 6400 rm -rf conftest*
6218 eval "ac_cv_header_$ac_safe=yes" 6401 eval "ac_cv_header_$ac_safe=yes"
6219 else 6402 else
6220 echo "$ac_err" >&5 6403 echo "$ac_err" >&5
6232 with_cde=no 6415 with_cde=no
6233 fi 6416 fi
6234 } 6417 }
6235 test -z "$with_cde" && { 6418 test -z "$with_cde" && {
6236 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 6419 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
6237 echo "configure:6238: checking for DtDndDragStart in -lDtSvc" >&5 6420 echo "configure:6421: checking for DtDndDragStart in -lDtSvc" >&5
6238 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 6421 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
6239 6422
6240 xe_check_libs=" -lDtSvc " 6423 xe_check_libs=" -lDtSvc "
6241 cat > conftest.$ac_ext <<EOF 6424 cat > conftest.$ac_ext <<EOF
6242 #line 6243 "configure" 6425 #line 6426 "configure"
6243 #include "confdefs.h" 6426 #include "confdefs.h"
6244 /* Override any gcc2 internal prototype to avoid an error. */ 6427 /* Override any gcc2 internal prototype to avoid an error. */
6245 /* We use char because int might match the return type of a gcc2 6428 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */ 6429 builtin and then its argument prototype would still apply. */
6247 char DtDndDragStart(); 6430 char DtDndDragStart();
6248 6431
6249 int main() { 6432 int main() {
6250 DtDndDragStart() 6433 DtDndDragStart()
6251 ; return 0; } 6434 ; return 0; }
6252 EOF 6435 EOF
6253 if { (eval echo configure:6254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6436 if { (eval echo configure:6437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254 rm -rf conftest* 6437 rm -rf conftest*
6255 eval "ac_cv_lib_$ac_lib_var=yes" 6438 eval "ac_cv_lib_$ac_lib_var=yes"
6256 else 6439 else
6257 echo "configure: failed program was:" >&5 6440 echo "configure: failed program was:" >&5
6258 cat conftest.$ac_ext >&5 6441 cat conftest.$ac_ext >&5
6317 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi 6500 dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi
6318 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi 6501 dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi
6319 fi 6502 fi
6320 6503
6321 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 6504 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
6322 echo "configure:6323: checking if drag and drop API is needed" >&5 6505 echo "configure:6506: checking if drag and drop API is needed" >&5
6323 if test "$with_dragndrop" != "no" ; then 6506 if test "$with_dragndrop" != "no" ; then
6324 if test -n "$dragndrop_proto" ; then 6507 if test -n "$dragndrop_proto" ; then
6325 with_dragndrop=yes 6508 with_dragndrop=yes
6326 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 6509 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
6327 { test "$extra_verbose" = "yes" && cat << \EOF 6510 { test "$extra_verbose" = "yes" && cat << \EOF
6338 echo "$ac_t""no" 1>&6 6521 echo "$ac_t""no" 1>&6
6339 fi 6522 fi
6340 fi 6523 fi
6341 6524
6342 echo "checking for LDAP" 1>&6 6525 echo "checking for LDAP" 1>&6
6343 echo "configure:6344: checking for LDAP" >&5 6526 echo "configure:6527: checking for LDAP" >&5
6344 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` 6527 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
6345 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 6528 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
6346 echo "configure:6347: checking for ldap.h" >&5 6529 echo "configure:6530: checking for ldap.h" >&5
6347 6530
6348 cat > conftest.$ac_ext <<EOF 6531 cat > conftest.$ac_ext <<EOF
6349 #line 6350 "configure" 6532 #line 6533 "configure"
6350 #include "confdefs.h" 6533 #include "confdefs.h"
6351 #include <ldap.h> 6534 #include <ldap.h>
6352 EOF 6535 EOF
6353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6354 { (eval echo configure:6355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6537 { (eval echo configure:6538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6355 ac_err=`grep -v '^ *+' conftest.out` 6538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6356 if test -z "$ac_err"; then 6539 if test -z "$ac_err"; then
6357 rm -rf conftest* 6540 rm -rf conftest*
6358 eval "ac_cv_header_$ac_safe=yes" 6541 eval "ac_cv_header_$ac_safe=yes"
6359 else 6542 else
6360 echo "$ac_err" >&5 6543 echo "$ac_err" >&5
6372 with_ldap=no 6555 with_ldap=no
6373 fi 6556 fi
6374 } 6557 }
6375 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` 6558 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
6376 echo $ac_n "checking for lber.h""... $ac_c" 1>&6 6559 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
6377 echo "configure:6378: checking for lber.h" >&5 6560 echo "configure:6561: checking for lber.h" >&5
6378 6561
6379 cat > conftest.$ac_ext <<EOF 6562 cat > conftest.$ac_ext <<EOF
6380 #line 6381 "configure" 6563 #line 6564 "configure"
6381 #include "confdefs.h" 6564 #include "confdefs.h"
6382 #include <lber.h> 6565 #include <lber.h>
6383 EOF 6566 EOF
6384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6385 { (eval echo configure:6386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6568 { (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6386 ac_err=`grep -v '^ *+' conftest.out` 6569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6387 if test -z "$ac_err"; then 6570 if test -z "$ac_err"; then
6388 rm -rf conftest* 6571 rm -rf conftest*
6389 eval "ac_cv_header_$ac_safe=yes" 6572 eval "ac_cv_header_$ac_safe=yes"
6390 else 6573 else
6391 echo "$ac_err" >&5 6574 echo "$ac_err" >&5
6406 if test "$with_ldap" != "no"; then 6589 if test "$with_ldap" != "no"; then
6407 test -z "$with_umich_ldap" && { 6590 test -z "$with_umich_ldap" && {
6408 xe_msg_checking="for ldap_open in -lldap" 6591 xe_msg_checking="for ldap_open in -lldap"
6409 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" 6592 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
6410 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6593 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6411 echo "configure:6412: checking "$xe_msg_checking"" >&5 6594 echo "configure:6595: checking "$xe_msg_checking"" >&5
6412 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` 6595 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
6413 6596
6414 xe_check_libs=" -lldap -llber" 6597 xe_check_libs=" -lldap -llber"
6415 cat > conftest.$ac_ext <<EOF 6598 cat > conftest.$ac_ext <<EOF
6416 #line 6417 "configure" 6599 #line 6600 "configure"
6417 #include "confdefs.h" 6600 #include "confdefs.h"
6418 /* Override any gcc2 internal prototype to avoid an error. */ 6601 /* Override any gcc2 internal prototype to avoid an error. */
6419 /* We use char because int might match the return type of a gcc2 6602 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */ 6603 builtin and then its argument prototype would still apply. */
6421 char ldap_open(); 6604 char ldap_open();
6422 6605
6423 int main() { 6606 int main() {
6424 ldap_open() 6607 ldap_open()
6425 ; return 0; } 6608 ; return 0; }
6426 EOF 6609 EOF
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6428 rm -rf conftest* 6611 rm -rf conftest*
6429 eval "ac_cv_lib_$ac_lib_var=yes" 6612 eval "ac_cv_lib_$ac_lib_var=yes"
6430 else 6613 else
6431 echo "configure: failed program was:" >&5 6614 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5 6615 cat conftest.$ac_ext >&5
6445 fi 6628 fi
6446 6629
6447 } 6630 }
6448 test "$with_umich_ldap" = "no" && { 6631 test "$with_umich_ldap" = "no" && {
6449 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6 6632 echo $ac_n "checking for ldap_set_option in -lldap10""... $ac_c" 1>&6
6450 echo "configure:6451: checking for ldap_set_option in -lldap10" >&5 6633 echo "configure:6634: checking for ldap_set_option in -lldap10" >&5
6451 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'` 6634 ac_lib_var=`echo ldap10'_'ldap_set_option | sed 'y%./+-%__p_%'`
6452 6635
6453 xe_check_libs=" -lldap10 " 6636 xe_check_libs=" -lldap10 "
6454 cat > conftest.$ac_ext <<EOF 6637 cat > conftest.$ac_ext <<EOF
6455 #line 6456 "configure" 6638 #line 6639 "configure"
6456 #include "confdefs.h" 6639 #include "confdefs.h"
6457 /* Override any gcc2 internal prototype to avoid an error. */ 6640 /* Override any gcc2 internal prototype to avoid an error. */
6458 /* We use char because int might match the return type of a gcc2 6641 /* We use char because int might match the return type of a gcc2
6459 builtin and then its argument prototype would still apply. */ 6642 builtin and then its argument prototype would still apply. */
6460 char ldap_set_option(); 6643 char ldap_set_option();
6461 6644
6462 int main() { 6645 int main() {
6463 ldap_set_option() 6646 ldap_set_option()
6464 ; return 0; } 6647 ; return 0; }
6465 EOF 6648 EOF
6466 if { (eval echo configure:6467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6467 rm -rf conftest* 6650 rm -rf conftest*
6468 eval "ac_cv_lib_$ac_lib_var=yes" 6651 eval "ac_cv_lib_$ac_lib_var=yes"
6469 else 6652 else
6470 echo "configure: failed program was:" >&5 6653 echo "configure: failed program was:" >&5
6471 cat conftest.$ac_ext >&5 6654 cat conftest.$ac_ext >&5
6525 fi 6708 fi
6526 6709
6527 6710
6528 if test "$window_system" != "none"; then 6711 if test "$window_system" != "none"; then
6529 echo "checking for graphics libraries" 1>&6 6712 echo "checking for graphics libraries" 1>&6
6530 echo "configure:6531: checking for graphics libraries" >&5 6713 echo "configure:6714: checking for graphics libraries" >&5
6531 6714
6532 xpm_problem="" 6715 xpm_problem=""
6533 if test -z "$with_xpm"; then 6716 if test -z "$with_xpm"; then
6534 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6717 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6535 echo "configure:6536: checking for Xpm - no older than 3.4f" >&5 6718 echo "configure:6719: checking for Xpm - no older than 3.4f" >&5
6536 xe_check_libs=-lXpm 6719 xe_check_libs=-lXpm
6537 cat > conftest.$ac_ext <<EOF 6720 cat > conftest.$ac_ext <<EOF
6538 #line 6539 "configure" 6721 #line 6722 "configure"
6539 #include "confdefs.h" 6722 #include "confdefs.h"
6540 #include <X11/xpm.h> 6723 #include <X11/xpm.h>
6541 int main(int c, char **v) { 6724 int main(int c, char **v) {
6542 return c == 1 ? 0 : 6725 return c == 1 ? 0 :
6543 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6726 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6544 XpmIncludeVersion < 30406 ? 2 : 0 ;} 6727 XpmIncludeVersion < 30406 ? 2 : 0 ;}
6545 EOF 6728 EOF
6546 if { (eval echo configure:6547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6729 if { (eval echo configure:6730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6547 then 6730 then
6548 ./conftest dummy_arg; xpm_status=$?; 6731 ./conftest dummy_arg; xpm_status=$?;
6549 if test "$xpm_status" = "0"; then 6732 if test "$xpm_status" = "0"; then
6550 with_xpm=yes; 6733 with_xpm=yes;
6551 else 6734 else
6583 EOF 6766 EOF
6584 } 6767 }
6585 6768
6586 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6769 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6587 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 6770 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
6588 echo "configure:6589: checking for \"FOR_MSW\" xpm" >&5 6771 echo "configure:6772: checking for \"FOR_MSW\" xpm" >&5
6589 xe_check_libs=-lXpm 6772 xe_check_libs=-lXpm
6590 cat > conftest.$ac_ext <<EOF 6773 cat > conftest.$ac_ext <<EOF
6591 #line 6592 "configure" 6774 #line 6775 "configure"
6592 #include "confdefs.h" 6775 #include "confdefs.h"
6593 6776
6594 int main() { 6777 int main() {
6595 XpmCreatePixmapFromData() 6778 XpmCreatePixmapFromData()
6596 ; return 0; } 6779 ; return 0; }
6597 EOF 6780 EOF
6598 if { (eval echo configure:6599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6781 if { (eval echo configure:6782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6599 rm -rf conftest* 6782 rm -rf conftest*
6600 xpm_for_msw=no 6783 xpm_for_msw=no
6601 else 6784 else
6602 echo "configure: failed program was:" >&5 6785 echo "configure: failed program was:" >&5
6603 cat conftest.$ac_ext >&5 6786 cat conftest.$ac_ext >&5
6635 fi 6818 fi
6636 6819
6637 if test "$with_png $with_tiff" != "no no"; then 6820 if test "$with_png $with_tiff" != "no no"; then
6638 6821
6639 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 6822 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
6640 echo "configure:6641: checking for inflate in -lc" >&5 6823 echo "configure:6824: checking for inflate in -lc" >&5
6641 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 6824 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
6642 6825
6643 xe_check_libs=" -lc " 6826 xe_check_libs=" -lc "
6644 cat > conftest.$ac_ext <<EOF 6827 cat > conftest.$ac_ext <<EOF
6645 #line 6646 "configure" 6828 #line 6829 "configure"
6646 #include "confdefs.h" 6829 #include "confdefs.h"
6647 /* Override any gcc2 internal prototype to avoid an error. */ 6830 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2 6831 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */ 6832 builtin and then its argument prototype would still apply. */
6650 char inflate(); 6833 char inflate();
6651 6834
6652 int main() { 6835 int main() {
6653 inflate() 6836 inflate()
6654 ; return 0; } 6837 ; return 0; }
6655 EOF 6838 EOF
6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6839 if { (eval echo configure:6840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6657 rm -rf conftest* 6840 rm -rf conftest*
6658 eval "ac_cv_lib_$ac_lib_var=yes" 6841 eval "ac_cv_lib_$ac_lib_var=yes"
6659 else 6842 else
6660 echo "configure: failed program was:" >&5 6843 echo "configure: failed program was:" >&5
6661 cat conftest.$ac_ext >&5 6844 cat conftest.$ac_ext >&5
6670 : 6853 :
6671 else 6854 else
6672 echo "$ac_t""no" 1>&6 6855 echo "$ac_t""no" 1>&6
6673 6856
6674 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 6857 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
6675 echo "configure:6676: checking for inflate in -lz" >&5 6858 echo "configure:6859: checking for inflate in -lz" >&5
6676 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 6859 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
6677 6860
6678 xe_check_libs=" -lz " 6861 xe_check_libs=" -lz "
6679 cat > conftest.$ac_ext <<EOF 6862 cat > conftest.$ac_ext <<EOF
6680 #line 6681 "configure" 6863 #line 6864 "configure"
6681 #include "confdefs.h" 6864 #include "confdefs.h"
6682 /* Override any gcc2 internal prototype to avoid an error. */ 6865 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2 6866 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */ 6867 builtin and then its argument prototype would still apply. */
6685 char inflate(); 6868 char inflate();
6686 6869
6687 int main() { 6870 int main() {
6688 inflate() 6871 inflate()
6689 ; return 0; } 6872 ; return 0; }
6690 EOF 6873 EOF
6691 if { (eval echo configure:6692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6874 if { (eval echo configure:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6692 rm -rf conftest* 6875 rm -rf conftest*
6693 eval "ac_cv_lib_$ac_lib_var=yes" 6876 eval "ac_cv_lib_$ac_lib_var=yes"
6694 else 6877 else
6695 echo "configure: failed program was:" >&5 6878 echo "configure: failed program was:" >&5
6696 cat conftest.$ac_ext >&5 6879 cat conftest.$ac_ext >&5
6705 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 6888 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
6706 else 6889 else
6707 echo "$ac_t""no" 1>&6 6890 echo "$ac_t""no" 1>&6
6708 6891
6709 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 6892 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
6710 echo "configure:6711: checking for inflate in -lgz" >&5 6893 echo "configure:6894: checking for inflate in -lgz" >&5
6711 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 6894 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
6712 6895
6713 xe_check_libs=" -lgz " 6896 xe_check_libs=" -lgz "
6714 cat > conftest.$ac_ext <<EOF 6897 cat > conftest.$ac_ext <<EOF
6715 #line 6716 "configure" 6898 #line 6899 "configure"
6716 #include "confdefs.h" 6899 #include "confdefs.h"
6717 /* Override any gcc2 internal prototype to avoid an error. */ 6900 /* Override any gcc2 internal prototype to avoid an error. */
6718 /* We use char because int might match the return type of a gcc2 6901 /* We use char because int might match the return type of a gcc2
6719 builtin and then its argument prototype would still apply. */ 6902 builtin and then its argument prototype would still apply. */
6720 char inflate(); 6903 char inflate();
6721 6904
6722 int main() { 6905 int main() {
6723 inflate() 6906 inflate()
6724 ; return 0; } 6907 ; return 0; }
6725 EOF 6908 EOF
6726 if { (eval echo configure:6727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6909 if { (eval echo configure:6910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6727 rm -rf conftest* 6910 rm -rf conftest*
6728 eval "ac_cv_lib_$ac_lib_var=yes" 6911 eval "ac_cv_lib_$ac_lib_var=yes"
6729 else 6912 else
6730 echo "configure: failed program was:" >&5 6913 echo "configure: failed program was:" >&5
6731 cat conftest.$ac_ext >&5 6914 cat conftest.$ac_ext >&5
6751 6934
6752 fi 6935 fi
6753 6936
6754 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6937 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6755 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6938 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6756 echo "configure:6757: checking for jpeglib.h" >&5 6939 echo "configure:6940: checking for jpeglib.h" >&5
6757 6940
6758 cat > conftest.$ac_ext <<EOF 6941 cat > conftest.$ac_ext <<EOF
6759 #line 6760 "configure" 6942 #line 6943 "configure"
6760 #include "confdefs.h" 6943 #include "confdefs.h"
6761 #include <jpeglib.h> 6944 #include <jpeglib.h>
6762 EOF 6945 EOF
6763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6764 { (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6947 { (eval echo configure:6948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6765 ac_err=`grep -v '^ *+' conftest.out` 6948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6766 if test -z "$ac_err"; then 6949 if test -z "$ac_err"; then
6767 rm -rf conftest* 6950 rm -rf conftest*
6768 eval "ac_cv_header_$ac_safe=yes" 6951 eval "ac_cv_header_$ac_safe=yes"
6769 else 6952 else
6770 echo "$ac_err" >&5 6953 echo "$ac_err" >&5
6782 with_jpeg=no 6965 with_jpeg=no
6783 fi 6966 fi
6784 } 6967 }
6785 test -z "$with_jpeg" && { 6968 test -z "$with_jpeg" && {
6786 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6969 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6787 echo "configure:6788: checking for jpeg_destroy_decompress in -ljpeg" >&5 6970 echo "configure:6971: checking for jpeg_destroy_decompress in -ljpeg" >&5
6788 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6971 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6789 6972
6790 xe_check_libs=" -ljpeg " 6973 xe_check_libs=" -ljpeg "
6791 cat > conftest.$ac_ext <<EOF 6974 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure" 6975 #line 6976 "configure"
6793 #include "confdefs.h" 6976 #include "confdefs.h"
6794 /* Override any gcc2 internal prototype to avoid an error. */ 6977 /* Override any gcc2 internal prototype to avoid an error. */
6795 /* We use char because int might match the return type of a gcc2 6978 /* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */ 6979 builtin and then its argument prototype would still apply. */
6797 char jpeg_destroy_decompress(); 6980 char jpeg_destroy_decompress();
6798 6981
6799 int main() { 6982 int main() {
6800 jpeg_destroy_decompress() 6983 jpeg_destroy_decompress()
6801 ; return 0; } 6984 ; return 0; }
6802 EOF 6985 EOF
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6986 if { (eval echo configure:6987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6804 rm -rf conftest* 6987 rm -rf conftest*
6805 eval "ac_cv_lib_$ac_lib_var=yes" 6988 eval "ac_cv_lib_$ac_lib_var=yes"
6806 else 6989 else
6807 echo "configure: failed program was:" >&5 6990 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5 6991 cat conftest.$ac_ext >&5
6834 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 7017 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6835 fi 7018 fi
6836 7019
6837 png_problem="" 7020 png_problem=""
6838 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 7021 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6839 echo "configure:6840: checking for pow" >&5 7022 echo "configure:7023: checking for pow" >&5
6840 7023
6841 cat > conftest.$ac_ext <<EOF 7024 cat > conftest.$ac_ext <<EOF
6842 #line 6843 "configure" 7025 #line 7026 "configure"
6843 #include "confdefs.h" 7026 #include "confdefs.h"
6844 /* System header to define __stub macros and hopefully few prototypes, 7027 /* System header to define __stub macros and hopefully few prototypes,
6845 which can conflict with char pow(); below. */ 7028 which can conflict with char pow(); below. */
6846 #include <assert.h> 7029 #include <assert.h>
6847 /* Override any gcc2 internal prototype to avoid an error. */ 7030 /* Override any gcc2 internal prototype to avoid an error. */
6860 pow(); 7043 pow();
6861 #endif 7044 #endif
6862 7045
6863 ; return 0; } 7046 ; return 0; }
6864 EOF 7047 EOF
6865 if { (eval echo configure:6866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7048 if { (eval echo configure:7049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6866 rm -rf conftest* 7049 rm -rf conftest*
6867 eval "ac_cv_func_pow=yes" 7050 eval "ac_cv_func_pow=yes"
6868 else 7051 else
6869 echo "configure: failed program was:" >&5 7052 echo "configure: failed program was:" >&5
6870 cat conftest.$ac_ext >&5 7053 cat conftest.$ac_ext >&5
6881 with_png=no 7064 with_png=no
6882 fi 7065 fi
6883 } 7066 }
6884 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 7067 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6885 echo $ac_n "checking for png.h""... $ac_c" 1>&6 7068 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6886 echo "configure:6887: checking for png.h" >&5 7069 echo "configure:7070: checking for png.h" >&5
6887 7070
6888 cat > conftest.$ac_ext <<EOF 7071 cat > conftest.$ac_ext <<EOF
6889 #line 6890 "configure" 7072 #line 7073 "configure"
6890 #include "confdefs.h" 7073 #include "confdefs.h"
6891 #include <png.h> 7074 #include <png.h>
6892 EOF 7075 EOF
6893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7076 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6894 { (eval echo configure:6895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7077 { (eval echo configure:7078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6895 ac_err=`grep -v '^ *+' conftest.out` 7078 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6896 if test -z "$ac_err"; then 7079 if test -z "$ac_err"; then
6897 rm -rf conftest* 7080 rm -rf conftest*
6898 eval "ac_cv_header_$ac_safe=yes" 7081 eval "ac_cv_header_$ac_safe=yes"
6899 else 7082 else
6900 echo "$ac_err" >&5 7083 echo "$ac_err" >&5
6912 with_png=no 7095 with_png=no
6913 fi 7096 fi
6914 } 7097 }
6915 test -z "$with_png" && { 7098 test -z "$with_png" && {
6916 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 7099 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
6917 echo "configure:6918: checking for png_read_image in -lpng" >&5 7100 echo "configure:7101: checking for png_read_image in -lpng" >&5
6918 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 7101 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6919 7102
6920 xe_check_libs=" -lpng " 7103 xe_check_libs=" -lpng "
6921 cat > conftest.$ac_ext <<EOF 7104 cat > conftest.$ac_ext <<EOF
6922 #line 6923 "configure" 7105 #line 7106 "configure"
6923 #include "confdefs.h" 7106 #include "confdefs.h"
6924 /* Override any gcc2 internal prototype to avoid an error. */ 7107 /* Override any gcc2 internal prototype to avoid an error. */
6925 /* We use char because int might match the return type of a gcc2 7108 /* We use char because int might match the return type of a gcc2
6926 builtin and then its argument prototype would still apply. */ 7109 builtin and then its argument prototype would still apply. */
6927 char png_read_image(); 7110 char png_read_image();
6928 7111
6929 int main() { 7112 int main() {
6930 png_read_image() 7113 png_read_image()
6931 ; return 0; } 7114 ; return 0; }
6932 EOF 7115 EOF
6933 if { (eval echo configure:6934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6934 rm -rf conftest* 7117 rm -rf conftest*
6935 eval "ac_cv_lib_$ac_lib_var=yes" 7118 eval "ac_cv_lib_$ac_lib_var=yes"
6936 else 7119 else
6937 echo "configure: failed program was:" >&5 7120 echo "configure: failed program was:" >&5
6938 cat conftest.$ac_ext >&5 7121 cat conftest.$ac_ext >&5
6951 fi 7134 fi
6952 7135
6953 } 7136 }
6954 if test -z "$with_png"; then 7137 if test -z "$with_png"; then
6955 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 7138 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
6956 echo "configure:6957: checking for workable png version information" >&5 7139 echo "configure:7140: checking for workable png version information" >&5
6957 xe_check_libs="-lpng -lz" 7140 xe_check_libs="-lpng -lz"
6958 cat > conftest.$ac_ext <<EOF 7141 cat > conftest.$ac_ext <<EOF
6959 #line 6960 "configure" 7142 #line 7143 "configure"
6960 #include "confdefs.h" 7143 #include "confdefs.h"
6961 #include <png.h> 7144 #include <png.h>
6962 int main(int c, char **v) { 7145 int main(int c, char **v) {
6963 if (c == 1) return 0; 7146 if (c == 1) return 0;
6964 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 7147 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
6965 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 7148 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
6966 EOF 7149 EOF
6967 if { (eval echo configure:6968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7150 if { (eval echo configure:7151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6968 then 7151 then
6969 ./conftest dummy_arg; png_status=$?; 7152 ./conftest dummy_arg; png_status=$?;
6970 if test "$png_status" = "0"; then 7153 if test "$png_status" = "0"; then
6971 with_png=yes; 7154 with_png=yes;
6972 else 7155 else
7005 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 7188 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
7006 fi 7189 fi
7007 7190
7008 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 7191 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
7009 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 7192 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
7010 echo "configure:7011: checking for tiffio.h" >&5 7193 echo "configure:7194: checking for tiffio.h" >&5
7011 7194
7012 cat > conftest.$ac_ext <<EOF 7195 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure" 7196 #line 7197 "configure"
7014 #include "confdefs.h" 7197 #include "confdefs.h"
7015 #include <tiffio.h> 7198 #include <tiffio.h>
7016 EOF 7199 EOF
7017 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7018 { (eval echo configure:7019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7201 { (eval echo configure:7202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7019 ac_err=`grep -v '^ *+' conftest.out` 7202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7020 if test -z "$ac_err"; then 7203 if test -z "$ac_err"; then
7021 rm -rf conftest* 7204 rm -rf conftest*
7022 eval "ac_cv_header_$ac_safe=yes" 7205 eval "ac_cv_header_$ac_safe=yes"
7023 else 7206 else
7024 echo "$ac_err" >&5 7207 echo "$ac_err" >&5
7036 with_tiff=no 7219 with_tiff=no
7037 fi 7220 fi
7038 } 7221 }
7039 test -z "$with_tiff" && { 7222 test -z "$with_tiff" && {
7040 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 7223 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
7041 echo "configure:7042: checking for TIFFClientOpen in -ltiff" >&5 7224 echo "configure:7225: checking for TIFFClientOpen in -ltiff" >&5
7042 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 7225 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
7043 7226
7044 xe_check_libs=" -ltiff " 7227 xe_check_libs=" -ltiff "
7045 cat > conftest.$ac_ext <<EOF 7228 cat > conftest.$ac_ext <<EOF
7046 #line 7047 "configure" 7229 #line 7230 "configure"
7047 #include "confdefs.h" 7230 #include "confdefs.h"
7048 /* Override any gcc2 internal prototype to avoid an error. */ 7231 /* Override any gcc2 internal prototype to avoid an error. */
7049 /* We use char because int might match the return type of a gcc2 7232 /* We use char because int might match the return type of a gcc2
7050 builtin and then its argument prototype would still apply. */ 7233 builtin and then its argument prototype would still apply. */
7051 char TIFFClientOpen(); 7234 char TIFFClientOpen();
7052 7235
7053 int main() { 7236 int main() {
7054 TIFFClientOpen() 7237 TIFFClientOpen()
7055 ; return 0; } 7238 ; return 0; }
7056 EOF 7239 EOF
7057 if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7240 if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7058 rm -rf conftest* 7241 rm -rf conftest*
7059 eval "ac_cv_lib_$ac_lib_var=yes" 7242 eval "ac_cv_lib_$ac_lib_var=yes"
7060 else 7243 else
7061 echo "configure: failed program was:" >&5 7244 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5 7245 cat conftest.$ac_ext >&5
7091 7274
7092 7275
7093 if test "$with_x11" = "yes"; then 7276 if test "$with_x11" = "yes"; then
7094 7277
7095 echo "checking for X11 graphics libraries" 1>&6 7278 echo "checking for X11 graphics libraries" 1>&6
7096 echo "configure:7097: checking for X11 graphics libraries" >&5 7279 echo "configure:7280: checking for X11 graphics libraries" >&5
7097 7280
7098 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 7281 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7099 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 7282 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7100 echo "configure:7101: checking for compface.h" >&5 7283 echo "configure:7284: checking for compface.h" >&5
7101 7284
7102 cat > conftest.$ac_ext <<EOF 7285 cat > conftest.$ac_ext <<EOF
7103 #line 7104 "configure" 7286 #line 7287 "configure"
7104 #include "confdefs.h" 7287 #include "confdefs.h"
7105 #include <compface.h> 7288 #include <compface.h>
7106 EOF 7289 EOF
7107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7108 { (eval echo configure:7109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7291 { (eval echo configure:7292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7109 ac_err=`grep -v '^ *+' conftest.out` 7292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7110 if test -z "$ac_err"; then 7293 if test -z "$ac_err"; then
7111 rm -rf conftest* 7294 rm -rf conftest*
7112 eval "ac_cv_header_$ac_safe=yes" 7295 eval "ac_cv_header_$ac_safe=yes"
7113 else 7296 else
7114 echo "$ac_err" >&5 7297 echo "$ac_err" >&5
7126 with_xface=no 7309 with_xface=no
7127 fi 7310 fi
7128 } 7311 }
7129 test -z "$with_xface" && { 7312 test -z "$with_xface" && {
7130 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 7313 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
7131 echo "configure:7132: checking for UnGenFace in -lcompface" >&5 7314 echo "configure:7315: checking for UnGenFace in -lcompface" >&5
7132 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 7315 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
7133 7316
7134 xe_check_libs=" -lcompface " 7317 xe_check_libs=" -lcompface "
7135 cat > conftest.$ac_ext <<EOF 7318 cat > conftest.$ac_ext <<EOF
7136 #line 7137 "configure" 7319 #line 7320 "configure"
7137 #include "confdefs.h" 7320 #include "confdefs.h"
7138 /* Override any gcc2 internal prototype to avoid an error. */ 7321 /* Override any gcc2 internal prototype to avoid an error. */
7139 /* We use char because int might match the return type of a gcc2 7322 /* We use char because int might match the return type of a gcc2
7140 builtin and then its argument prototype would still apply. */ 7323 builtin and then its argument prototype would still apply. */
7141 char UnGenFace(); 7324 char UnGenFace();
7142 7325
7143 int main() { 7326 int main() {
7144 UnGenFace() 7327 UnGenFace()
7145 ; return 0; } 7328 ; return 0; }
7146 EOF 7329 EOF
7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7330 if { (eval echo configure:7331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7148 rm -rf conftest* 7331 rm -rf conftest*
7149 eval "ac_cv_lib_$ac_lib_var=yes" 7332 eval "ac_cv_lib_$ac_lib_var=yes"
7150 else 7333 else
7151 echo "configure: failed program was:" >&5 7334 echo "configure: failed program was:" >&5
7152 cat conftest.$ac_ext >&5 7335 cat conftest.$ac_ext >&5
7178 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 7361 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
7179 fi 7362 fi
7180 7363
7181 7364
7182 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 7365 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
7183 echo "configure:7184: checking for XawScrollbarSetThumb in -lXaw" >&5 7366 echo "configure:7367: checking for XawScrollbarSetThumb in -lXaw" >&5
7184 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 7367 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
7185 7368
7186 xe_check_libs=" -lXaw " 7369 xe_check_libs=" -lXaw "
7187 cat > conftest.$ac_ext <<EOF 7370 cat > conftest.$ac_ext <<EOF
7188 #line 7189 "configure" 7371 #line 7372 "configure"
7189 #include "confdefs.h" 7372 #include "confdefs.h"
7190 /* Override any gcc2 internal prototype to avoid an error. */ 7373 /* Override any gcc2 internal prototype to avoid an error. */
7191 /* We use char because int might match the return type of a gcc2 7374 /* We use char because int might match the return type of a gcc2
7192 builtin and then its argument prototype would still apply. */ 7375 builtin and then its argument prototype would still apply. */
7193 char XawScrollbarSetThumb(); 7376 char XawScrollbarSetThumb();
7194 7377
7195 int main() { 7378 int main() {
7196 XawScrollbarSetThumb() 7379 XawScrollbarSetThumb()
7197 ; return 0; } 7380 ; return 0; }
7198 EOF 7381 EOF
7199 if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7382 if { (eval echo configure:7383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7200 rm -rf conftest* 7383 rm -rf conftest*
7201 eval "ac_cv_lib_$ac_lib_var=yes" 7384 eval "ac_cv_lib_$ac_lib_var=yes"
7202 else 7385 else
7203 echo "configure: failed program was:" >&5 7386 echo "configure: failed program was:" >&5
7204 cat conftest.$ac_ext >&5 7387 cat conftest.$ac_ext >&5
7218 7401
7219 7402
7220 7403
7221 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 7404 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
7222 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 7405 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
7223 echo "configure:7224: checking for Xm/Xm.h" >&5 7406 echo "configure:7407: checking for Xm/Xm.h" >&5
7224 7407
7225 cat > conftest.$ac_ext <<EOF 7408 cat > conftest.$ac_ext <<EOF
7226 #line 7227 "configure" 7409 #line 7410 "configure"
7227 #include "confdefs.h" 7410 #include "confdefs.h"
7228 #include <Xm/Xm.h> 7411 #include <Xm/Xm.h>
7229 EOF 7412 EOF
7230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7231 { (eval echo configure:7232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7414 { (eval echo configure:7415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7232 ac_err=`grep -v '^ *+' conftest.out` 7415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7233 if test -z "$ac_err"; then 7416 if test -z "$ac_err"; then
7234 rm -rf conftest* 7417 rm -rf conftest*
7235 eval "ac_cv_header_$ac_safe=yes" 7418 eval "ac_cv_header_$ac_safe=yes"
7236 else 7419 else
7237 echo "$ac_err" >&5 7420 echo "$ac_err" >&5
7243 rm -f conftest* 7426 rm -f conftest*
7244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 7427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7245 echo "$ac_t""yes" 1>&6 7428 echo "$ac_t""yes" 1>&6
7246 7429
7247 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 7430 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
7248 echo "configure:7249: checking for XmStringFree in -lXm" >&5 7431 echo "configure:7432: checking for XmStringFree in -lXm" >&5
7249 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 7432 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
7250 7433
7251 xe_check_libs=" -lXm " 7434 xe_check_libs=" -lXm "
7252 cat > conftest.$ac_ext <<EOF 7435 cat > conftest.$ac_ext <<EOF
7253 #line 7254 "configure" 7436 #line 7437 "configure"
7254 #include "confdefs.h" 7437 #include "confdefs.h"
7255 /* Override any gcc2 internal prototype to avoid an error. */ 7438 /* Override any gcc2 internal prototype to avoid an error. */
7256 /* We use char because int might match the return type of a gcc2 7439 /* We use char because int might match the return type of a gcc2
7257 builtin and then its argument prototype would still apply. */ 7440 builtin and then its argument prototype would still apply. */
7258 char XmStringFree(); 7441 char XmStringFree();
7259 7442
7260 int main() { 7443 int main() {
7261 XmStringFree() 7444 XmStringFree()
7262 ; return 0; } 7445 ; return 0; }
7263 EOF 7446 EOF
7264 if { (eval echo configure:7265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7447 if { (eval echo configure:7448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7265 rm -rf conftest* 7448 rm -rf conftest*
7266 eval "ac_cv_lib_$ac_lib_var=yes" 7449 eval "ac_cv_lib_$ac_lib_var=yes"
7267 else 7450 else
7268 echo "configure: failed program was:" >&5 7451 echo "configure: failed program was:" >&5
7269 cat conftest.$ac_ext >&5 7452 cat conftest.$ac_ext >&5
7288 fi 7471 fi
7289 7472
7290 7473
7291 if test "$have_motif" = "yes"; then 7474 if test "$have_motif" = "yes"; then
7292 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 7475 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
7293 echo "configure:7294: checking for Lesstif" >&5 7476 echo "configure:7477: checking for Lesstif" >&5
7294 cat > conftest.$ac_ext <<EOF 7477 cat > conftest.$ac_ext <<EOF
7295 #line 7296 "configure" 7478 #line 7479 "configure"
7296 #include "confdefs.h" 7479 #include "confdefs.h"
7297 #include <Xm/Xm.h> 7480 #include <Xm/Xm.h>
7298 #ifdef LESSTIF_VERSION 7481 #ifdef LESSTIF_VERSION
7299 yes 7482 yes
7300 #endif 7483 #endif
7574 fi 7757 fi
7575 fi 7758 fi
7576 7759
7577 if test "$with_mule" = "yes" ; then 7760 if test "$with_mule" = "yes" ; then
7578 echo "checking for Mule-related features" 1>&6 7761 echo "checking for Mule-related features" 1>&6
7579 echo "configure:7580: checking for Mule-related features" >&5 7762 echo "configure:7763: checking for Mule-related features" >&5
7580 { test "$extra_verbose" = "yes" && cat << \EOF 7763 { test "$extra_verbose" = "yes" && cat << \EOF
7581 Defining MULE 7764 Defining MULE
7582 EOF 7765 EOF
7583 cat >> confdefs.h <<\EOF 7766 cat >> confdefs.h <<\EOF
7584 #define MULE 1 7767 #define MULE 1
7599 7782
7600 for ac_hdr in libintl.h 7783 for ac_hdr in libintl.h
7601 do 7784 do
7602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7604 echo "configure:7605: checking for $ac_hdr" >&5 7787 echo "configure:7788: checking for $ac_hdr" >&5
7605 7788
7606 cat > conftest.$ac_ext <<EOF 7789 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure" 7790 #line 7791 "configure"
7608 #include "confdefs.h" 7791 #include "confdefs.h"
7609 #include <$ac_hdr> 7792 #include <$ac_hdr>
7610 EOF 7793 EOF
7611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7612 { (eval echo configure:7613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7795 { (eval echo configure:7796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7613 ac_err=`grep -v '^ *+' conftest.out` 7796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7614 if test -z "$ac_err"; then 7797 if test -z "$ac_err"; then
7615 rm -rf conftest* 7798 rm -rf conftest*
7616 eval "ac_cv_header_$ac_safe=yes" 7799 eval "ac_cv_header_$ac_safe=yes"
7617 else 7800 else
7618 echo "$ac_err" >&5 7801 echo "$ac_err" >&5
7638 fi 7821 fi
7639 done 7822 done
7640 7823
7641 7824
7642 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 7825 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
7643 echo "configure:7644: checking for strerror in -lintl" >&5 7826 echo "configure:7827: checking for strerror in -lintl" >&5
7644 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 7827 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
7645 7828
7646 xe_check_libs=" -lintl " 7829 xe_check_libs=" -lintl "
7647 cat > conftest.$ac_ext <<EOF 7830 cat > conftest.$ac_ext <<EOF
7648 #line 7649 "configure" 7831 #line 7832 "configure"
7649 #include "confdefs.h" 7832 #include "confdefs.h"
7650 /* Override any gcc2 internal prototype to avoid an error. */ 7833 /* Override any gcc2 internal prototype to avoid an error. */
7651 /* We use char because int might match the return type of a gcc2 7834 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */ 7835 builtin and then its argument prototype would still apply. */
7653 char strerror(); 7836 char strerror();
7654 7837
7655 int main() { 7838 int main() {
7656 strerror() 7839 strerror()
7657 ; return 0; } 7840 ; return 0; }
7658 EOF 7841 EOF
7659 if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7660 rm -rf conftest* 7843 rm -rf conftest*
7661 eval "ac_cv_lib_$ac_lib_var=yes" 7844 eval "ac_cv_lib_$ac_lib_var=yes"
7662 else 7845 else
7663 echo "configure: failed program was:" >&5 7846 echo "configure: failed program was:" >&5
7664 cat conftest.$ac_ext >&5 7847 cat conftest.$ac_ext >&5
7687 fi 7870 fi
7688 7871
7689 7872
7690 7873
7691 echo "checking for Mule input methods" 1>&6 7874 echo "checking for Mule input methods" 1>&6
7692 echo "configure:7693: checking for Mule input methods" >&5 7875 echo "configure:7876: checking for Mule input methods" >&5
7693 case "$with_xim" in "" | "yes" ) 7876 case "$with_xim" in "" | "yes" )
7694 echo "checking for XIM" 1>&6 7877 echo "checking for XIM" 1>&6
7695 echo "configure:7696: checking for XIM" >&5 7878 echo "configure:7879: checking for XIM" >&5
7696 7879
7697 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 7880 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
7698 echo "configure:7699: checking for XOpenIM in -lX11" >&5 7881 echo "configure:7882: checking for XOpenIM in -lX11" >&5
7699 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 7882 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
7700 7883
7701 xe_check_libs=" -lX11 " 7884 xe_check_libs=" -lX11 "
7702 cat > conftest.$ac_ext <<EOF 7885 cat > conftest.$ac_ext <<EOF
7703 #line 7704 "configure" 7886 #line 7887 "configure"
7704 #include "confdefs.h" 7887 #include "confdefs.h"
7705 /* Override any gcc2 internal prototype to avoid an error. */ 7888 /* Override any gcc2 internal prototype to avoid an error. */
7706 /* We use char because int might match the return type of a gcc2 7889 /* We use char because int might match the return type of a gcc2
7707 builtin and then its argument prototype would still apply. */ 7890 builtin and then its argument prototype would still apply. */
7708 char XOpenIM(); 7891 char XOpenIM();
7709 7892
7710 int main() { 7893 int main() {
7711 XOpenIM() 7894 XOpenIM()
7712 ; return 0; } 7895 ; return 0; }
7713 EOF 7896 EOF
7714 if { (eval echo configure:7715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7897 if { (eval echo configure:7898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7715 rm -rf conftest* 7898 rm -rf conftest*
7716 eval "ac_cv_lib_$ac_lib_var=yes" 7899 eval "ac_cv_lib_$ac_lib_var=yes"
7717 else 7900 else
7718 echo "configure: failed program was:" >&5 7901 echo "configure: failed program was:" >&5
7719 cat conftest.$ac_ext >&5 7902 cat conftest.$ac_ext >&5
7733 7916
7734 7917
7735 if test "$have_motif $have_lesstif" = "yes no"; then 7918 if test "$have_motif $have_lesstif" = "yes no"; then
7736 7919
7737 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 7920 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
7738 echo "configure:7739: checking for XmImMbLookupString in -lXm" >&5 7921 echo "configure:7922: checking for XmImMbLookupString in -lXm" >&5
7739 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 7922 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
7740 7923
7741 xe_check_libs=" -lXm " 7924 xe_check_libs=" -lXm "
7742 cat > conftest.$ac_ext <<EOF 7925 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure" 7926 #line 7927 "configure"
7744 #include "confdefs.h" 7927 #include "confdefs.h"
7745 /* Override any gcc2 internal prototype to avoid an error. */ 7928 /* Override any gcc2 internal prototype to avoid an error. */
7746 /* We use char because int might match the return type of a gcc2 7929 /* We use char because int might match the return type of a gcc2
7747 builtin and then its argument prototype would still apply. */ 7930 builtin and then its argument prototype would still apply. */
7748 char XmImMbLookupString(); 7931 char XmImMbLookupString();
7749 7932
7750 int main() { 7933 int main() {
7751 XmImMbLookupString() 7934 XmImMbLookupString()
7752 ; return 0; } 7935 ; return 0; }
7753 EOF 7936 EOF
7754 if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7755 rm -rf conftest* 7938 rm -rf conftest*
7756 eval "ac_cv_lib_$ac_lib_var=yes" 7939 eval "ac_cv_lib_$ac_lib_var=yes"
7757 else 7940 else
7758 echo "configure: failed program was:" >&5 7941 echo "configure: failed program was:" >&5
7759 cat conftest.$ac_ext >&5 7942 cat conftest.$ac_ext >&5
7814 fi 7997 fi
7815 fi 7998 fi
7816 7999
7817 if test "$with_xfs" = "yes" ; then 8000 if test "$with_xfs" = "yes" ; then
7818 echo "checking for XFontSet" 1>&6 8001 echo "checking for XFontSet" 1>&6
7819 echo "configure:7820: checking for XFontSet" >&5 8002 echo "configure:8003: checking for XFontSet" >&5
7820 8003
7821 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 8004 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
7822 echo "configure:7823: checking for XmbDrawString in -lX11" >&5 8005 echo "configure:8006: checking for XmbDrawString in -lX11" >&5
7823 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 8006 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
7824 8007
7825 xe_check_libs=" -lX11 " 8008 xe_check_libs=" -lX11 "
7826 cat > conftest.$ac_ext <<EOF 8009 cat > conftest.$ac_ext <<EOF
7827 #line 7828 "configure" 8010 #line 8011 "configure"
7828 #include "confdefs.h" 8011 #include "confdefs.h"
7829 /* Override any gcc2 internal prototype to avoid an error. */ 8012 /* Override any gcc2 internal prototype to avoid an error. */
7830 /* We use char because int might match the return type of a gcc2 8013 /* We use char because int might match the return type of a gcc2
7831 builtin and then its argument prototype would still apply. */ 8014 builtin and then its argument prototype would still apply. */
7832 char XmbDrawString(); 8015 char XmbDrawString();
7833 8016
7834 int main() { 8017 int main() {
7835 XmbDrawString() 8018 XmbDrawString()
7836 ; return 0; } 8019 ; return 0; }
7837 EOF 8020 EOF
7838 if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8021 if { (eval echo configure:8022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7839 rm -rf conftest* 8022 rm -rf conftest*
7840 eval "ac_cv_lib_$ac_lib_var=yes" 8023 eval "ac_cv_lib_$ac_lib_var=yes"
7841 else 8024 else
7842 echo "configure: failed program was:" >&5 8025 echo "configure: failed program was:" >&5
7843 cat conftest.$ac_ext >&5 8026 cat conftest.$ac_ext >&5
7873 fi 8056 fi
7874 fi 8057 fi
7875 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 8058 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
7876 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 8059 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7877 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 8060 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7878 echo "configure:7879: checking for wnn/jllib.h" >&5 8061 echo "configure:8062: checking for wnn/jllib.h" >&5
7879 8062
7880 cat > conftest.$ac_ext <<EOF 8063 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure" 8064 #line 8065 "configure"
7882 #include "confdefs.h" 8065 #include "confdefs.h"
7883 #include <wnn/jllib.h> 8066 #include <wnn/jllib.h>
7884 EOF 8067 EOF
7885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7886 { (eval echo configure:7887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8069 { (eval echo configure:8070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7887 ac_err=`grep -v '^ *+' conftest.out` 8070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7888 if test -z "$ac_err"; then 8071 if test -z "$ac_err"; then
7889 rm -rf conftest* 8072 rm -rf conftest*
7890 eval "ac_cv_header_$ac_safe=yes" 8073 eval "ac_cv_header_$ac_safe=yes"
7891 else 8074 else
7892 echo "$ac_err" >&5 8075 echo "$ac_err" >&5
7906 } 8089 }
7907 if test "$with_wnn" != "no"; then 8090 if test "$with_wnn" != "no"; then
7908 for ac_func in crypt 8091 for ac_func in crypt
7909 do 8092 do
7910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8093 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7911 echo "configure:7912: checking for $ac_func" >&5 8094 echo "configure:8095: checking for $ac_func" >&5
7912 8095
7913 cat > conftest.$ac_ext <<EOF 8096 cat > conftest.$ac_ext <<EOF
7914 #line 7915 "configure" 8097 #line 8098 "configure"
7915 #include "confdefs.h" 8098 #include "confdefs.h"
7916 /* System header to define __stub macros and hopefully few prototypes, 8099 /* System header to define __stub macros and hopefully few prototypes,
7917 which can conflict with char $ac_func(); below. */ 8100 which can conflict with char $ac_func(); below. */
7918 #include <assert.h> 8101 #include <assert.h>
7919 /* Override any gcc2 internal prototype to avoid an error. */ 8102 /* Override any gcc2 internal prototype to avoid an error. */
7932 $ac_func(); 8115 $ac_func();
7933 #endif 8116 #endif
7934 8117
7935 ; return 0; } 8118 ; return 0; }
7936 EOF 8119 EOF
7937 if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8120 if { (eval echo configure:8121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7938 rm -rf conftest* 8121 rm -rf conftest*
7939 eval "ac_cv_func_$ac_func=yes" 8122 eval "ac_cv_func_$ac_func=yes"
7940 else 8123 else
7941 echo "configure: failed program was:" >&5 8124 echo "configure: failed program was:" >&5
7942 cat conftest.$ac_ext >&5 8125 cat conftest.$ac_ext >&5
7961 fi 8144 fi
7962 done 8145 done
7963 8146
7964 test "$ac_cv_func_crypt" != "yes" && { 8147 test "$ac_cv_func_crypt" != "yes" && {
7965 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 8148 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7966 echo "configure:7967: checking for crypt in -lcrypt" >&5 8149 echo "configure:8150: checking for crypt in -lcrypt" >&5
7967 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 8150 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7968 8151
7969 xe_check_libs=" -lcrypt " 8152 xe_check_libs=" -lcrypt "
7970 cat > conftest.$ac_ext <<EOF 8153 cat > conftest.$ac_ext <<EOF
7971 #line 7972 "configure" 8154 #line 8155 "configure"
7972 #include "confdefs.h" 8155 #include "confdefs.h"
7973 /* Override any gcc2 internal prototype to avoid an error. */ 8156 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2 8157 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */ 8158 builtin and then its argument prototype would still apply. */
7976 char crypt(); 8159 char crypt();
7977 8160
7978 int main() { 8161 int main() {
7979 crypt() 8162 crypt()
7980 ; return 0; } 8163 ; return 0; }
7981 EOF 8164 EOF
7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8165 if { (eval echo configure:8166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7983 rm -rf conftest* 8166 rm -rf conftest*
7984 eval "ac_cv_lib_$ac_lib_var=yes" 8167 eval "ac_cv_lib_$ac_lib_var=yes"
7985 else 8168 else
7986 echo "configure: failed program was:" >&5 8169 echo "configure: failed program was:" >&5
7987 cat conftest.$ac_ext >&5 8170 cat conftest.$ac_ext >&5
8012 } 8195 }
8013 fi 8196 fi
8014 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 8197 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
8015 8198
8016 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 8199 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
8017 echo "configure:8018: checking for jl_dic_list_e in -lwnn" >&5 8200 echo "configure:8201: checking for jl_dic_list_e in -lwnn" >&5
8018 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8201 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8019 8202
8020 xe_check_libs=" -lwnn " 8203 xe_check_libs=" -lwnn "
8021 cat > conftest.$ac_ext <<EOF 8204 cat > conftest.$ac_ext <<EOF
8022 #line 8023 "configure" 8205 #line 8206 "configure"
8023 #include "confdefs.h" 8206 #include "confdefs.h"
8024 /* Override any gcc2 internal prototype to avoid an error. */ 8207 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2 8208 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */ 8209 builtin and then its argument prototype would still apply. */
8027 char jl_dic_list_e(); 8210 char jl_dic_list_e();
8028 8211
8029 int main() { 8212 int main() {
8030 jl_dic_list_e() 8213 jl_dic_list_e()
8031 ; return 0; } 8214 ; return 0; }
8032 EOF 8215 EOF
8033 if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8216 if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8034 rm -rf conftest* 8217 rm -rf conftest*
8035 eval "ac_cv_lib_$ac_lib_var=yes" 8218 eval "ac_cv_lib_$ac_lib_var=yes"
8036 else 8219 else
8037 echo "configure: failed program was:" >&5 8220 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5 8221 cat conftest.$ac_ext >&5
8046 echo "$ac_t""yes" 1>&6 8229 echo "$ac_t""yes" 1>&6
8047 libwnn=wnn 8230 libwnn=wnn
8048 else 8231 else
8049 echo "$ac_t""no" 1>&6 8232 echo "$ac_t""no" 1>&6
8050 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 8233 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
8051 echo "configure:8052: checking for jl_dic_list_e in -lwnn4" >&5 8234 echo "configure:8235: checking for jl_dic_list_e in -lwnn4" >&5
8052 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8235 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8053 8236
8054 xe_check_libs=" -lwnn4 " 8237 xe_check_libs=" -lwnn4 "
8055 cat > conftest.$ac_ext <<EOF 8238 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure" 8239 #line 8240 "configure"
8057 #include "confdefs.h" 8240 #include "confdefs.h"
8058 /* Override any gcc2 internal prototype to avoid an error. */ 8241 /* Override any gcc2 internal prototype to avoid an error. */
8059 /* We use char because int might match the return type of a gcc2 8242 /* We use char because int might match the return type of a gcc2
8060 builtin and then its argument prototype would still apply. */ 8243 builtin and then its argument prototype would still apply. */
8061 char jl_dic_list_e(); 8244 char jl_dic_list_e();
8062 8245
8063 int main() { 8246 int main() {
8064 jl_dic_list_e() 8247 jl_dic_list_e()
8065 ; return 0; } 8248 ; return 0; }
8066 EOF 8249 EOF
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8250 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 rm -rf conftest* 8251 rm -rf conftest*
8069 eval "ac_cv_lib_$ac_lib_var=yes" 8252 eval "ac_cv_lib_$ac_lib_var=yes"
8070 else 8253 else
8071 echo "configure: failed program was:" >&5 8254 echo "configure: failed program was:" >&5
8072 cat conftest.$ac_ext >&5 8255 cat conftest.$ac_ext >&5
8080 echo "$ac_t""yes" 1>&6 8263 echo "$ac_t""yes" 1>&6
8081 libwnn=wnn4 8264 libwnn=wnn4
8082 else 8265 else
8083 echo "$ac_t""no" 1>&6 8266 echo "$ac_t""no" 1>&6
8084 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 8267 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
8085 echo "configure:8086: checking for jl_dic_list_e in -lwnn6" >&5 8268 echo "configure:8269: checking for jl_dic_list_e in -lwnn6" >&5
8086 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 8269 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
8087 8270
8088 xe_check_libs=" -lwnn6 " 8271 xe_check_libs=" -lwnn6 "
8089 cat > conftest.$ac_ext <<EOF 8272 cat > conftest.$ac_ext <<EOF
8090 #line 8091 "configure" 8273 #line 8274 "configure"
8091 #include "confdefs.h" 8274 #include "confdefs.h"
8092 /* Override any gcc2 internal prototype to avoid an error. */ 8275 /* Override any gcc2 internal prototype to avoid an error. */
8093 /* We use char because int might match the return type of a gcc2 8276 /* We use char because int might match the return type of a gcc2
8094 builtin and then its argument prototype would still apply. */ 8277 builtin and then its argument prototype would still apply. */
8095 char jl_dic_list_e(); 8278 char jl_dic_list_e();
8096 8279
8097 int main() { 8280 int main() {
8098 jl_dic_list_e() 8281 jl_dic_list_e()
8099 ; return 0; } 8282 ; return 0; }
8100 EOF 8283 EOF
8101 if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8284 if { (eval echo configure:8285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8102 rm -rf conftest* 8285 rm -rf conftest*
8103 eval "ac_cv_lib_$ac_lib_var=yes" 8286 eval "ac_cv_lib_$ac_lib_var=yes"
8104 else 8287 else
8105 echo "configure: failed program was:" >&5 8288 echo "configure: failed program was:" >&5
8106 cat conftest.$ac_ext >&5 8289 cat conftest.$ac_ext >&5
8114 echo "$ac_t""yes" 1>&6 8297 echo "$ac_t""yes" 1>&6
8115 libwnn=wnn6 8298 libwnn=wnn6
8116 else 8299 else
8117 echo "$ac_t""no" 1>&6 8300 echo "$ac_t""no" 1>&6
8118 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 8301 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
8119 echo "configure:8120: checking for dic_list_e in -lwnn6_fromsrc" >&5 8302 echo "configure:8303: checking for dic_list_e in -lwnn6_fromsrc" >&5
8120 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 8303 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
8121 8304
8122 xe_check_libs=" -lwnn6_fromsrc " 8305 xe_check_libs=" -lwnn6_fromsrc "
8123 cat > conftest.$ac_ext <<EOF 8306 cat > conftest.$ac_ext <<EOF
8124 #line 8125 "configure" 8307 #line 8308 "configure"
8125 #include "confdefs.h" 8308 #include "confdefs.h"
8126 /* Override any gcc2 internal prototype to avoid an error. */ 8309 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2 8310 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */ 8311 builtin and then its argument prototype would still apply. */
8129 char dic_list_e(); 8312 char dic_list_e();
8130 8313
8131 int main() { 8314 int main() {
8132 dic_list_e() 8315 dic_list_e()
8133 ; return 0; } 8316 ; return 0; }
8134 EOF 8317 EOF
8135 if { (eval echo configure:8136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8318 if { (eval echo configure:8319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8136 rm -rf conftest* 8319 rm -rf conftest*
8137 eval "ac_cv_lib_$ac_lib_var=yes" 8320 eval "ac_cv_lib_$ac_lib_var=yes"
8138 else 8321 else
8139 echo "configure: failed program was:" >&5 8322 echo "configure: failed program was:" >&5
8140 cat conftest.$ac_ext >&5 8323 cat conftest.$ac_ext >&5
8178 echo " xemacs will be linked with \"mule-wnnfns.o\"" 8361 echo " xemacs will be linked with \"mule-wnnfns.o\""
8179 fi 8362 fi
8180 if test "$with_wnn6" != "no"; then 8363 if test "$with_wnn6" != "no"; then
8181 8364
8182 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 8365 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
8183 echo "configure:8184: checking for jl_fi_dic_list in -l$libwnn" >&5 8366 echo "configure:8367: checking for jl_fi_dic_list in -l$libwnn" >&5
8184 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 8367 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
8185 8368
8186 xe_check_libs=" -l$libwnn " 8369 xe_check_libs=" -l$libwnn "
8187 cat > conftest.$ac_ext <<EOF 8370 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure" 8371 #line 8372 "configure"
8189 #include "confdefs.h" 8372 #include "confdefs.h"
8190 /* Override any gcc2 internal prototype to avoid an error. */ 8373 /* Override any gcc2 internal prototype to avoid an error. */
8191 /* We use char because int might match the return type of a gcc2 8374 /* We use char because int might match the return type of a gcc2
8192 builtin and then its argument prototype would still apply. */ 8375 builtin and then its argument prototype would still apply. */
8193 char jl_fi_dic_list(); 8376 char jl_fi_dic_list();
8194 8377
8195 int main() { 8378 int main() {
8196 jl_fi_dic_list() 8379 jl_fi_dic_list()
8197 ; return 0; } 8380 ; return 0; }
8198 EOF 8381 EOF
8199 if { (eval echo configure:8200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8382 if { (eval echo configure:8383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8200 rm -rf conftest* 8383 rm -rf conftest*
8201 eval "ac_cv_lib_$ac_lib_var=yes" 8384 eval "ac_cv_lib_$ac_lib_var=yes"
8202 else 8385 else
8203 echo "configure: failed program was:" >&5 8386 echo "configure: failed program was:" >&5
8204 cat conftest.$ac_ext >&5 8387 cat conftest.$ac_ext >&5
8229 8412
8230 canna_includes_found=no 8413 canna_includes_found=no
8231 if test "$with_canna" != "no"; then 8414 if test "$with_canna" != "no"; then
8232 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8415 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8233 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8416 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8234 echo "configure:8235: checking for canna/jrkanji.h" >&5 8417 echo "configure:8418: checking for canna/jrkanji.h" >&5
8235 8418
8236 cat > conftest.$ac_ext <<EOF 8419 cat > conftest.$ac_ext <<EOF
8237 #line 8238 "configure" 8420 #line 8421 "configure"
8238 #include "confdefs.h" 8421 #include "confdefs.h"
8239 #include <canna/jrkanji.h> 8422 #include <canna/jrkanji.h>
8240 EOF 8423 EOF
8241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8242 { (eval echo configure:8243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8425 { (eval echo configure:8426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8243 ac_err=`grep -v '^ *+' conftest.out` 8426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8244 if test -z "$ac_err"; then 8427 if test -z "$ac_err"; then
8245 rm -rf conftest* 8428 rm -rf conftest*
8246 eval "ac_cv_header_$ac_safe=yes" 8429 eval "ac_cv_header_$ac_safe=yes"
8247 else 8430 else
8248 echo "$ac_err" >&5 8431 echo "$ac_err" >&5
8264 -d "/usr/local/canna/include"; then 8447 -d "/usr/local/canna/include"; then
8265 save_c_switch_site="$c_switch_site" 8448 save_c_switch_site="$c_switch_site"
8266 c_switch_site="$c_switch_site -I/usr/local/canna/include" 8449 c_switch_site="$c_switch_site -I/usr/local/canna/include"
8267 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 8450 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
8268 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 8451 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
8269 echo "configure:8270: checking for canna/jrkanji.h" >&5 8452 echo "configure:8453: checking for canna/jrkanji.h" >&5
8270 8453
8271 cat > conftest.$ac_ext <<EOF 8454 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure" 8455 #line 8456 "configure"
8273 #include "confdefs.h" 8456 #include "confdefs.h"
8274 #include <canna/jrkanji.h> 8457 #include <canna/jrkanji.h>
8275 EOF 8458 EOF
8276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8277 { (eval echo configure:8278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8460 { (eval echo configure:8461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8278 ac_err=`grep -v '^ *+' conftest.out` 8461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8279 if test -z "$ac_err"; then 8462 if test -z "$ac_err"; then
8280 rm -rf conftest* 8463 rm -rf conftest*
8281 eval "ac_cv_header_$ac_safe=yes" 8464 eval "ac_cv_header_$ac_safe=yes"
8282 else 8465 else
8283 echo "$ac_err" >&5 8466 echo "$ac_err" >&5
8300 fi 8483 fi
8301 fi 8484 fi
8302 8485
8303 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 8486 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
8304 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 8487 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
8305 echo "configure:8306: checking for canna/RK.h" >&5 8488 echo "configure:8489: checking for canna/RK.h" >&5
8306 8489
8307 cat > conftest.$ac_ext <<EOF 8490 cat > conftest.$ac_ext <<EOF
8308 #line 8309 "configure" 8491 #line 8492 "configure"
8309 #include "confdefs.h" 8492 #include "confdefs.h"
8310 #include <canna/RK.h> 8493 #include <canna/RK.h>
8311 EOF 8494 EOF
8312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8313 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8496 { (eval echo configure:8497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8314 ac_err=`grep -v '^ *+' conftest.out` 8497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8315 if test -z "$ac_err"; then 8498 if test -z "$ac_err"; then
8316 rm -rf conftest* 8499 rm -rf conftest*
8317 eval "ac_cv_header_$ac_safe=yes" 8500 eval "ac_cv_header_$ac_safe=yes"
8318 else 8501 else
8319 echo "$ac_err" >&5 8502 echo "$ac_err" >&5
8331 with_canna=no 8514 with_canna=no
8332 fi 8515 fi
8333 } 8516 }
8334 test -z "$with_canna" && { 8517 test -z "$with_canna" && {
8335 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 8518 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
8336 echo "configure:8337: checking for RkBgnBun in -lRKC" >&5 8519 echo "configure:8520: checking for RkBgnBun in -lRKC" >&5
8337 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 8520 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
8338 8521
8339 xe_check_libs=" -lRKC " 8522 xe_check_libs=" -lRKC "
8340 cat > conftest.$ac_ext <<EOF 8523 cat > conftest.$ac_ext <<EOF
8341 #line 8342 "configure" 8524 #line 8525 "configure"
8342 #include "confdefs.h" 8525 #include "confdefs.h"
8343 /* Override any gcc2 internal prototype to avoid an error. */ 8526 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2 8527 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */ 8528 builtin and then its argument prototype would still apply. */
8346 char RkBgnBun(); 8529 char RkBgnBun();
8347 8530
8348 int main() { 8531 int main() {
8349 RkBgnBun() 8532 RkBgnBun()
8350 ; return 0; } 8533 ; return 0; }
8351 EOF 8534 EOF
8352 if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8353 rm -rf conftest* 8536 rm -rf conftest*
8354 eval "ac_cv_lib_$ac_lib_var=yes" 8537 eval "ac_cv_lib_$ac_lib_var=yes"
8355 else 8538 else
8356 echo "configure: failed program was:" >&5 8539 echo "configure: failed program was:" >&5
8357 cat conftest.$ac_ext >&5 8540 cat conftest.$ac_ext >&5
8370 fi 8553 fi
8371 8554
8372 } 8555 }
8373 test -z "$with_canna" && { 8556 test -z "$with_canna" && {
8374 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 8557 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
8375 echo "configure:8376: checking for jrKanjiControl in -lcanna" >&5 8558 echo "configure:8559: checking for jrKanjiControl in -lcanna" >&5
8376 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 8559 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
8377 8560
8378 xe_check_libs=" -lcanna " 8561 xe_check_libs=" -lcanna "
8379 cat > conftest.$ac_ext <<EOF 8562 cat > conftest.$ac_ext <<EOF
8380 #line 8381 "configure" 8563 #line 8564 "configure"
8381 #include "confdefs.h" 8564 #include "confdefs.h"
8382 /* Override any gcc2 internal prototype to avoid an error. */ 8565 /* Override any gcc2 internal prototype to avoid an error. */
8383 /* We use char because int might match the return type of a gcc2 8566 /* We use char because int might match the return type of a gcc2
8384 builtin and then its argument prototype would still apply. */ 8567 builtin and then its argument prototype would still apply. */
8385 char jrKanjiControl(); 8568 char jrKanjiControl();
8386 8569
8387 int main() { 8570 int main() {
8388 jrKanjiControl() 8571 jrKanjiControl()
8389 ; return 0; } 8572 ; return 0; }
8390 EOF 8573 EOF
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8574 if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 rm -rf conftest* 8575 rm -rf conftest*
8393 eval "ac_cv_lib_$ac_lib_var=yes" 8576 eval "ac_cv_lib_$ac_lib_var=yes"
8394 else 8577 else
8395 echo "configure: failed program was:" >&5 8578 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5 8579 cat conftest.$ac_ext >&5
8435 8618
8436 if test "$need_motif" = "yes" ; then 8619 if test "$need_motif" = "yes" ; then
8437 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 8620 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
8438 8621
8439 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 8622 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
8440 echo "configure:8441: checking for layout_object_getvalue in -li18n" >&5 8623 echo "configure:8624: checking for layout_object_getvalue in -li18n" >&5
8441 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 8624 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
8442 8625
8443 xe_check_libs=" -li18n " 8626 xe_check_libs=" -li18n "
8444 cat > conftest.$ac_ext <<EOF 8627 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure" 8628 #line 8629 "configure"
8446 #include "confdefs.h" 8629 #include "confdefs.h"
8447 /* Override any gcc2 internal prototype to avoid an error. */ 8630 /* Override any gcc2 internal prototype to avoid an error. */
8448 /* We use char because int might match the return type of a gcc2 8631 /* We use char because int might match the return type of a gcc2
8449 builtin and then its argument prototype would still apply. */ 8632 builtin and then its argument prototype would still apply. */
8450 char layout_object_getvalue(); 8633 char layout_object_getvalue();
8451 8634
8452 int main() { 8635 int main() {
8453 layout_object_getvalue() 8636 layout_object_getvalue()
8454 ; return 0; } 8637 ; return 0; }
8455 EOF 8638 EOF
8456 if { (eval echo configure:8457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8639 if { (eval echo configure:8640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8457 rm -rf conftest* 8640 rm -rf conftest*
8458 eval "ac_cv_lib_$ac_lib_var=yes" 8641 eval "ac_cv_lib_$ac_lib_var=yes"
8459 else 8642 else
8460 echo "configure: failed program was:" >&5 8643 echo "configure: failed program was:" >&5
8461 cat conftest.$ac_ext >&5 8644 cat conftest.$ac_ext >&5
8537 fi 8720 fi
8538 8721
8539 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 8722 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
8540 do 8723 do
8541 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8542 echo "configure:8543: checking for $ac_func" >&5 8725 echo "configure:8726: checking for $ac_func" >&5
8543 8726
8544 cat > conftest.$ac_ext <<EOF 8727 cat > conftest.$ac_ext <<EOF
8545 #line 8546 "configure" 8728 #line 8729 "configure"
8546 #include "confdefs.h" 8729 #include "confdefs.h"
8547 /* System header to define __stub macros and hopefully few prototypes, 8730 /* System header to define __stub macros and hopefully few prototypes,
8548 which can conflict with char $ac_func(); below. */ 8731 which can conflict with char $ac_func(); below. */
8549 #include <assert.h> 8732 #include <assert.h>
8550 /* Override any gcc2 internal prototype to avoid an error. */ 8733 /* Override any gcc2 internal prototype to avoid an error. */
8563 $ac_func(); 8746 $ac_func();
8564 #endif 8747 #endif
8565 8748
8566 ; return 0; } 8749 ; return 0; }
8567 EOF 8750 EOF
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8751 if { (eval echo configure:8752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8569 rm -rf conftest* 8752 rm -rf conftest*
8570 eval "ac_cv_func_$ac_func=yes" 8753 eval "ac_cv_func_$ac_func=yes"
8571 else 8754 else
8572 echo "configure: failed program was:" >&5 8755 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5 8756 cat conftest.$ac_ext >&5
8604 echo " xemacs will be linked with \"realpath.o\"" 8787 echo " xemacs will be linked with \"realpath.o\""
8605 fi ;; 8788 fi ;;
8606 * ) for ac_func in realpath 8789 * ) for ac_func in realpath
8607 do 8790 do
8608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8791 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8609 echo "configure:8610: checking for $ac_func" >&5 8792 echo "configure:8793: checking for $ac_func" >&5
8610 8793
8611 cat > conftest.$ac_ext <<EOF 8794 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure" 8795 #line 8796 "configure"
8613 #include "confdefs.h" 8796 #include "confdefs.h"
8614 /* System header to define __stub macros and hopefully few prototypes, 8797 /* System header to define __stub macros and hopefully few prototypes,
8615 which can conflict with char $ac_func(); below. */ 8798 which can conflict with char $ac_func(); below. */
8616 #include <assert.h> 8799 #include <assert.h>
8617 /* Override any gcc2 internal prototype to avoid an error. */ 8800 /* Override any gcc2 internal prototype to avoid an error. */
8630 $ac_func(); 8813 $ac_func();
8631 #endif 8814 #endif
8632 8815
8633 ; return 0; } 8816 ; return 0; }
8634 EOF 8817 EOF
8635 if { (eval echo configure:8636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8818 if { (eval echo configure:8819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8636 rm -rf conftest* 8819 rm -rf conftest*
8637 eval "ac_cv_func_$ac_func=yes" 8820 eval "ac_cv_func_$ac_func=yes"
8638 else 8821 else
8639 echo "configure: failed program was:" >&5 8822 echo "configure: failed program was:" >&5
8640 cat conftest.$ac_ext >&5 8823 cat conftest.$ac_ext >&5
8664 fi ;; 8847 fi ;;
8665 esac ;; 8848 esac ;;
8666 esac 8849 esac
8667 8850
8668 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 8851 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
8669 echo "configure:8670: checking whether netdb declares h_errno" >&5 8852 echo "configure:8853: checking whether netdb declares h_errno" >&5
8670 cat > conftest.$ac_ext <<EOF 8853 cat > conftest.$ac_ext <<EOF
8671 #line 8672 "configure" 8854 #line 8855 "configure"
8672 #include "confdefs.h" 8855 #include "confdefs.h"
8673 #include <netdb.h> 8856 #include <netdb.h>
8674 int main() { 8857 int main() {
8675 return h_errno; 8858 return h_errno;
8676 ; return 0; } 8859 ; return 0; }
8677 EOF 8860 EOF
8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8861 if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8679 rm -rf conftest* 8862 rm -rf conftest*
8680 echo "$ac_t""yes" 1>&6 8863 echo "$ac_t""yes" 1>&6
8681 { test "$extra_verbose" = "yes" && cat << \EOF 8864 { test "$extra_verbose" = "yes" && cat << \EOF
8682 Defining HAVE_H_ERRNO 8865 Defining HAVE_H_ERRNO
8683 EOF 8866 EOF
8693 echo "$ac_t""no" 1>&6 8876 echo "$ac_t""no" 1>&6
8694 fi 8877 fi
8695 rm -f conftest* 8878 rm -f conftest*
8696 8879
8697 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 8880 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
8698 echo "configure:8699: checking for sigsetjmp" >&5 8881 echo "configure:8882: checking for sigsetjmp" >&5
8699 cat > conftest.$ac_ext <<EOF 8882 cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure" 8883 #line 8884 "configure"
8701 #include "confdefs.h" 8884 #include "confdefs.h"
8702 #include <setjmp.h> 8885 #include <setjmp.h>
8703 int main() { 8886 int main() {
8704 sigjmp_buf bar; sigsetjmp (bar, 0); 8887 sigjmp_buf bar; sigsetjmp (bar, 0);
8705 ; return 0; } 8888 ; return 0; }
8706 EOF 8889 EOF
8707 if { (eval echo configure:8708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8890 if { (eval echo configure:8891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8708 rm -rf conftest* 8891 rm -rf conftest*
8709 echo "$ac_t""yes" 1>&6 8892 echo "$ac_t""yes" 1>&6
8710 { test "$extra_verbose" = "yes" && cat << \EOF 8893 { test "$extra_verbose" = "yes" && cat << \EOF
8711 Defining HAVE_SIGSETJMP 8894 Defining HAVE_SIGSETJMP
8712 EOF 8895 EOF
8722 echo "$ac_t""no" 1>&6 8905 echo "$ac_t""no" 1>&6
8723 fi 8906 fi
8724 rm -f conftest* 8907 rm -f conftest*
8725 8908
8726 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8909 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8727 echo "configure:8728: checking whether localtime caches TZ" >&5 8910 echo "configure:8911: checking whether localtime caches TZ" >&5
8728 8911
8729 if test "$ac_cv_func_tzset" = "yes"; then 8912 if test "$ac_cv_func_tzset" = "yes"; then
8730 cat > conftest.$ac_ext <<EOF 8913 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure" 8914 #line 8915 "configure"
8732 #include "confdefs.h" 8915 #include "confdefs.h"
8733 #include <time.h> 8916 #include <time.h>
8734 #if STDC_HEADERS 8917 #if STDC_HEADERS
8735 # include <stdlib.h> 8918 # include <stdlib.h>
8736 #endif 8919 #endif
8761 if (localtime (&now)->tm_hour != hour_unset) 8944 if (localtime (&now)->tm_hour != hour_unset)
8762 exit (1); 8945 exit (1);
8763 exit (0); 8946 exit (0);
8764 } 8947 }
8765 EOF 8948 EOF
8766 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 8949 if { (eval echo configure:8950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8767 then 8950 then
8768 emacs_cv_localtime_cache=no 8951 emacs_cv_localtime_cache=no
8769 else 8952 else
8770 conftest_rc="$?" 8953 conftest_rc="$?"
8771 echo "configure: failed program was:" >&5 8954 echo "configure: failed program was:" >&5
8791 8974
8792 fi 8975 fi
8793 8976
8794 if test "$HAVE_TIMEVAL" = "yes"; then 8977 if test "$HAVE_TIMEVAL" = "yes"; then
8795 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 8978 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
8796 echo "configure:8797: checking whether gettimeofday accepts one or two arguments" >&5 8979 echo "configure:8980: checking whether gettimeofday accepts one or two arguments" >&5
8797 cat > conftest.$ac_ext <<EOF 8980 cat > conftest.$ac_ext <<EOF
8798 #line 8799 "configure" 8981 #line 8982 "configure"
8799 #include "confdefs.h" 8982 #include "confdefs.h"
8800 8983
8801 #ifdef TIME_WITH_SYS_TIME 8984 #ifdef TIME_WITH_SYS_TIME
8802 #include <sys/time.h> 8985 #include <sys/time.h>
8803 #include <time.h> 8986 #include <time.h>
8815 struct timezone dummy; 8998 struct timezone dummy;
8816 gettimeofday (&time, &dummy); 8999 gettimeofday (&time, &dummy);
8817 9000
8818 ; return 0; } 9001 ; return 0; }
8819 EOF 9002 EOF
8820 if { (eval echo configure:8821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9003 if { (eval echo configure:9004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8821 rm -rf conftest* 9004 rm -rf conftest*
8822 echo "$ac_t""two" 1>&6 9005 echo "$ac_t""two" 1>&6
8823 else 9006 else
8824 echo "configure: failed program was:" >&5 9007 echo "configure: failed program was:" >&5
8825 cat conftest.$ac_ext >&5 9008 cat conftest.$ac_ext >&5
8837 rm -f conftest* 9020 rm -f conftest*
8838 fi 9021 fi
8839 9022
8840 9023
8841 echo $ac_n "checking for inline""... $ac_c" 1>&6 9024 echo $ac_n "checking for inline""... $ac_c" 1>&6
8842 echo "configure:8843: checking for inline" >&5 9025 echo "configure:9026: checking for inline" >&5
8843 9026
8844 ac_cv_c_inline=no 9027 ac_cv_c_inline=no
8845 for ac_kw in inline __inline__ __inline; do 9028 for ac_kw in inline __inline__ __inline; do
8846 cat > conftest.$ac_ext <<EOF 9029 cat > conftest.$ac_ext <<EOF
8847 #line 8848 "configure" 9030 #line 9031 "configure"
8848 #include "confdefs.h" 9031 #include "confdefs.h"
8849 9032
8850 int main() { 9033 int main() {
8851 } $ac_kw foo() { 9034 } $ac_kw foo() {
8852 ; return 0; } 9035 ; return 0; }
8853 EOF 9036 EOF
8854 if { (eval echo configure:8855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9037 if { (eval echo configure:9038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8855 rm -rf conftest* 9038 rm -rf conftest*
8856 ac_cv_c_inline=$ac_kw; break 9039 ac_cv_c_inline=$ac_kw; break
8857 else 9040 else
8858 echo "configure: failed program was:" >&5 9041 echo "configure: failed program was:" >&5
8859 cat conftest.$ac_ext >&5 9042 cat conftest.$ac_ext >&5
8899 9082
8900 9083
8901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 9084 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8902 # for constant arguments. Useless! 9085 # for constant arguments. Useless!
8903 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 9086 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8904 echo "configure:8905: checking for working alloca.h" >&5 9087 echo "configure:9088: checking for working alloca.h" >&5
8905 9088
8906 cat > conftest.$ac_ext <<EOF 9089 cat > conftest.$ac_ext <<EOF
8907 #line 8908 "configure" 9090 #line 9091 "configure"
8908 #include "confdefs.h" 9091 #include "confdefs.h"
8909 #include <alloca.h> 9092 #include <alloca.h>
8910 int main() { 9093 int main() {
8911 char *p = alloca(2 * sizeof(int)); 9094 char *p = alloca(2 * sizeof(int));
8912 ; return 0; } 9095 ; return 0; }
8913 EOF 9096 EOF
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8915 rm -rf conftest* 9098 rm -rf conftest*
8916 ac_cv_header_alloca_h=yes 9099 ac_cv_header_alloca_h=yes
8917 else 9100 else
8918 echo "configure: failed program was:" >&5 9101 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5 9102 cat conftest.$ac_ext >&5
8933 } 9116 }
8934 9117
8935 fi 9118 fi
8936 9119
8937 echo $ac_n "checking for alloca""... $ac_c" 1>&6 9120 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8938 echo "configure:8939: checking for alloca" >&5 9121 echo "configure:9122: checking for alloca" >&5
8939 9122
8940 cat > conftest.$ac_ext <<EOF 9123 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure" 9124 #line 9125 "configure"
8942 #include "confdefs.h" 9125 #include "confdefs.h"
8943 9126
8944 #ifdef __GNUC__ 9127 #ifdef __GNUC__
8945 # define alloca __builtin_alloca 9128 # define alloca __builtin_alloca
8946 #else 9129 #else
8947 # if HAVE_ALLOCA_H 9130 # ifdef _MSC_VER
8948 # include <alloca.h> 9131 # include <malloc.h>
9132 # define alloca _alloca
8949 # else 9133 # else
8950 # ifdef _AIX 9134 # if HAVE_ALLOCA_H
9135 # include <alloca.h>
9136 # else
9137 # ifdef _AIX
8951 #pragma alloca 9138 #pragma alloca
8952 # else 9139 # else
8953 # ifndef alloca /* predefined by HP cc +Olibcalls */ 9140 # ifndef alloca /* predefined by HP cc +Olibcalls */
8954 char *alloca (); 9141 char *alloca ();
9142 # endif
8955 # endif 9143 # endif
8956 # endif 9144 # endif
8957 # endif 9145 # endif
8958 #endif 9146 #endif
8959 9147
8960 int main() { 9148 int main() {
8961 char *p = (char *) alloca(1); 9149 char *p = (char *) alloca(1);
8962 ; return 0; } 9150 ; return 0; }
8963 EOF 9151 EOF
8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8965 rm -rf conftest* 9153 rm -rf conftest*
8966 ac_cv_func_alloca_works=yes 9154 ac_cv_func_alloca_works=yes
8967 else 9155 else
8968 echo "configure: failed program was:" >&5 9156 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5 9157 cat conftest.$ac_ext >&5
8987 if test $ac_cv_func_alloca_works = no; then 9175 if test $ac_cv_func_alloca_works = no; then
8988 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 9176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8989 # that cause trouble. Some versions do not even contain alloca or 9177 # that cause trouble. Some versions do not even contain alloca or
8990 # contain a buggy version. If you still want to use their alloca, 9178 # contain a buggy version. If you still want to use their alloca,
8991 # use ar to extract alloca.o from them instead of compiling alloca.c. 9179 # use ar to extract alloca.o from them instead of compiling alloca.c.
8992 ALLOCA=alloca.o 9180 ALLOCA=alloca.${ac_objext}
8993 { test "$extra_verbose" = "yes" && cat << \EOF 9181 { test "$extra_verbose" = "yes" && cat << \EOF
8994 Defining C_ALLOCA 9182 Defining C_ALLOCA
8995 EOF 9183 EOF
8996 cat >> confdefs.h <<\EOF 9184 cat >> confdefs.h <<\EOF
8997 #define C_ALLOCA 1 9185 #define C_ALLOCA 1
8998 EOF 9186 EOF
8999 } 9187 }
9000 9188
9001 9189
9002 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 9190 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
9003 echo "configure:9004: checking whether alloca needs Cray hooks" >&5 9191 echo "configure:9192: checking whether alloca needs Cray hooks" >&5
9004 9192
9005 cat > conftest.$ac_ext <<EOF 9193 cat > conftest.$ac_ext <<EOF
9006 #line 9007 "configure" 9194 #line 9195 "configure"
9007 #include "confdefs.h" 9195 #include "confdefs.h"
9008 #if defined(CRAY) && ! defined(CRAY2) 9196 #if defined(CRAY) && ! defined(CRAY2)
9009 webecray 9197 webecray
9010 #else 9198 #else
9011 wenotbecray 9199 wenotbecray
9025 9213
9026 echo "$ac_t""$ac_cv_os_cray" 1>&6 9214 echo "$ac_t""$ac_cv_os_cray" 1>&6
9027 if test $ac_cv_os_cray = yes; then 9215 if test $ac_cv_os_cray = yes; then
9028 for ac_func in _getb67 GETB67 getb67; do 9216 for ac_func in _getb67 GETB67 getb67; do
9029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9030 echo "configure:9031: checking for $ac_func" >&5 9218 echo "configure:9219: checking for $ac_func" >&5
9031 9219
9032 cat > conftest.$ac_ext <<EOF 9220 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure" 9221 #line 9222 "configure"
9034 #include "confdefs.h" 9222 #include "confdefs.h"
9035 /* System header to define __stub macros and hopefully few prototypes, 9223 /* System header to define __stub macros and hopefully few prototypes,
9036 which can conflict with char $ac_func(); below. */ 9224 which can conflict with char $ac_func(); below. */
9037 #include <assert.h> 9225 #include <assert.h>
9038 /* Override any gcc2 internal prototype to avoid an error. */ 9226 /* Override any gcc2 internal prototype to avoid an error. */
9051 $ac_func(); 9239 $ac_func();
9052 #endif 9240 #endif
9053 9241
9054 ; return 0; } 9242 ; return 0; }
9055 EOF 9243 EOF
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9244 if { (eval echo configure:9245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9057 rm -rf conftest* 9245 rm -rf conftest*
9058 eval "ac_cv_func_$ac_func=yes" 9246 eval "ac_cv_func_$ac_func=yes"
9059 else 9247 else
9060 echo "configure: failed program was:" >&5 9248 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5 9249 cat conftest.$ac_ext >&5
9081 9269
9082 done 9270 done
9083 fi 9271 fi
9084 9272
9085 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 9273 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
9086 echo "configure:9087: checking stack direction for C alloca" >&5 9274 echo "configure:9275: checking stack direction for C alloca" >&5
9087 9275
9088 cat > conftest.$ac_ext <<EOF 9276 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure" 9277 #line 9278 "configure"
9090 #include "confdefs.h" 9278 #include "confdefs.h"
9091 find_stack_direction () 9279 find_stack_direction ()
9092 { 9280 {
9093 static char *addr = 0; 9281 static char *addr = 0;
9094 auto char dummy; 9282 auto char dummy;
9103 main () 9291 main ()
9104 { 9292 {
9105 exit (find_stack_direction() < 0); 9293 exit (find_stack_direction() < 0);
9106 } 9294 }
9107 EOF 9295 EOF
9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9296 if { (eval echo configure:9297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9109 then 9297 then
9110 ac_cv_c_stack_direction=1 9298 ac_cv_c_stack_direction=1
9111 else 9299 else
9112 conftest_rc="$?" 9300 conftest_rc="$?"
9113 echo "configure: failed program was:" >&5 9301 echo "configure: failed program was:" >&5
9132 echo " xemacs will be linked with \"$ALLOCA\"" 9320 echo " xemacs will be linked with \"$ALLOCA\""
9133 fi 9321 fi
9134 9322
9135 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 9323 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
9136 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 9324 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
9137 echo "configure:9138: checking for vfork.h" >&5 9325 echo "configure:9326: checking for vfork.h" >&5
9138 9326
9139 cat > conftest.$ac_ext <<EOF 9327 cat > conftest.$ac_ext <<EOF
9140 #line 9141 "configure" 9328 #line 9329 "configure"
9141 #include "confdefs.h" 9329 #include "confdefs.h"
9142 #include <vfork.h> 9330 #include <vfork.h>
9143 EOF 9331 EOF
9144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9145 { (eval echo configure:9146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9333 { (eval echo configure:9334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9146 ac_err=`grep -v '^ *+' conftest.out` 9334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9147 if test -z "$ac_err"; then 9335 if test -z "$ac_err"; then
9148 rm -rf conftest* 9336 rm -rf conftest*
9149 eval "ac_cv_header_$ac_safe=yes" 9337 eval "ac_cv_header_$ac_safe=yes"
9150 else 9338 else
9151 echo "$ac_err" >&5 9339 echo "$ac_err" >&5
9168 else 9356 else
9169 echo "$ac_t""no" 1>&6 9357 echo "$ac_t""no" 1>&6
9170 fi 9358 fi
9171 9359
9172 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 9360 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
9173 echo "configure:9174: checking for working vfork" >&5 9361 echo "configure:9362: checking for working vfork" >&5
9174 9362
9175 cat > conftest.$ac_ext <<EOF 9363 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure" 9364 #line 9365 "configure"
9177 #include "confdefs.h" 9365 #include "confdefs.h"
9178 /* Thanks to Paul Eggert for this test. */ 9366 /* Thanks to Paul Eggert for this test. */
9179 #include <stdio.h> 9367 #include <stdio.h>
9180 #include <sys/types.h> 9368 #include <sys/types.h>
9181 #include <sys/stat.h> 9369 #include <sys/stat.h>
9266 || fstat(fileno(stdout), &st) != 0 9454 || fstat(fileno(stdout), &st) != 0
9267 ); 9455 );
9268 } 9456 }
9269 } 9457 }
9270 EOF 9458 EOF
9271 if { (eval echo configure:9272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9459 if { (eval echo configure:9460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9272 then 9460 then
9273 ac_cv_func_vfork_works=yes 9461 ac_cv_func_vfork_works=yes
9274 else 9462 else
9275 conftest_rc="$?" 9463 conftest_rc="$?"
9276 echo "configure: failed program was:" >&5 9464 echo "configure: failed program was:" >&5
9292 9480
9293 fi 9481 fi
9294 9482
9295 9483
9296 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 9484 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
9297 echo "configure:9298: checking for working strcoll" >&5 9485 echo "configure:9486: checking for working strcoll" >&5
9298 9486
9299 cat > conftest.$ac_ext <<EOF 9487 cat > conftest.$ac_ext <<EOF
9300 #line 9301 "configure" 9488 #line 9489 "configure"
9301 #include "confdefs.h" 9489 #include "confdefs.h"
9302 #include <string.h> 9490 #include <string.h>
9303 main () 9491 main ()
9304 { 9492 {
9305 exit (strcoll ("abc", "def") >= 0 || 9493 exit (strcoll ("abc", "def") >= 0 ||
9306 strcoll ("ABC", "DEF") >= 0 || 9494 strcoll ("ABC", "DEF") >= 0 ||
9307 strcoll ("123", "456") >= 0); 9495 strcoll ("123", "456") >= 0);
9308 } 9496 }
9309 EOF 9497 EOF
9310 if { (eval echo configure:9311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9498 if { (eval echo configure:9499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9311 then 9499 then
9312 ac_cv_func_strcoll_works=yes 9500 ac_cv_func_strcoll_works=yes
9313 else 9501 else
9314 conftest_rc="$?" 9502 conftest_rc="$?"
9315 echo "configure: failed program was:" >&5 9503 echo "configure: failed program was:" >&5
9333 9521
9334 9522
9335 for ac_func in getpgrp 9523 for ac_func in getpgrp
9336 do 9524 do
9337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 9525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9338 echo "configure:9339: checking for $ac_func" >&5 9526 echo "configure:9527: checking for $ac_func" >&5
9339 9527
9340 cat > conftest.$ac_ext <<EOF 9528 cat > conftest.$ac_ext <<EOF
9341 #line 9342 "configure" 9529 #line 9530 "configure"
9342 #include "confdefs.h" 9530 #include "confdefs.h"
9343 /* System header to define __stub macros and hopefully few prototypes, 9531 /* System header to define __stub macros and hopefully few prototypes,
9344 which can conflict with char $ac_func(); below. */ 9532 which can conflict with char $ac_func(); below. */
9345 #include <assert.h> 9533 #include <assert.h>
9346 /* Override any gcc2 internal prototype to avoid an error. */ 9534 /* Override any gcc2 internal prototype to avoid an error. */
9359 $ac_func(); 9547 $ac_func();
9360 #endif 9548 #endif
9361 9549
9362 ; return 0; } 9550 ; return 0; }
9363 EOF 9551 EOF
9364 if { (eval echo configure:9365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9365 rm -rf conftest* 9553 rm -rf conftest*
9366 eval "ac_cv_func_$ac_func=yes" 9554 eval "ac_cv_func_$ac_func=yes"
9367 else 9555 else
9368 echo "configure: failed program was:" >&5 9556 echo "configure: failed program was:" >&5
9369 cat conftest.$ac_ext >&5 9557 cat conftest.$ac_ext >&5
9387 echo "$ac_t""no" 1>&6 9575 echo "$ac_t""no" 1>&6
9388 fi 9576 fi
9389 done 9577 done
9390 9578
9391 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 9579 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
9392 echo "configure:9393: checking whether getpgrp takes no argument" >&5 9580 echo "configure:9581: checking whether getpgrp takes no argument" >&5
9393 9581
9394 cat > conftest.$ac_ext <<EOF 9582 cat > conftest.$ac_ext <<EOF
9395 #line 9396 "configure" 9583 #line 9584 "configure"
9396 #include "confdefs.h" 9584 #include "confdefs.h"
9397 9585
9398 /* 9586 /*
9399 * If this system has a BSD-style getpgrp(), 9587 * If this system has a BSD-style getpgrp(),
9400 * which takes a pid argument, exit unsuccessfully. 9588 * which takes a pid argument, exit unsuccessfully.
9445 exit(s>>8); 9633 exit(s>>8);
9446 } 9634 }
9447 } 9635 }
9448 9636
9449 EOF 9637 EOF
9450 if { (eval echo configure:9451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9638 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9451 then 9639 then
9452 ac_cv_func_getpgrp_void=yes 9640 ac_cv_func_getpgrp_void=yes
9453 else 9641 else
9454 conftest_rc="$?" 9642 conftest_rc="$?"
9455 echo "configure: failed program was:" >&5 9643 echo "configure: failed program was:" >&5
9472 9660
9473 fi 9661 fi
9474 9662
9475 9663
9476 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 9664 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9477 echo "configure:9478: checking for working mmap" >&5 9665 echo "configure:9666: checking for working mmap" >&5
9478 case "$opsys" in ultrix* ) have_mmap=no ;; *) 9666 case "$opsys" in ultrix* ) have_mmap=no ;; *)
9479 cat > conftest.$ac_ext <<EOF 9667 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure" 9668 #line 9669 "configure"
9481 #include "confdefs.h" 9669 #include "confdefs.h"
9482 #include <stdio.h> 9670 #include <stdio.h>
9483 #include <unistd.h> 9671 #include <unistd.h>
9484 #include <fcntl.h> 9672 #include <fcntl.h>
9485 #include <sys/mman.h> 9673 #include <sys/mman.h>
9508 return 0; 9696 return 0;
9509 perror ("conftest: mmap failed"); 9697 perror ("conftest: mmap failed");
9510 return 1; 9698 return 1;
9511 } 9699 }
9512 EOF 9700 EOF
9513 if { (eval echo configure:9514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9701 if { (eval echo configure:9702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9514 then 9702 then
9515 have_mmap=yes 9703 have_mmap=yes
9516 else 9704 else
9517 conftest_rc="$?" 9705 conftest_rc="$?"
9518 echo "configure: failed program was:" >&5 9706 echo "configure: failed program was:" >&5
9529 cat >> confdefs.h <<\EOF 9717 cat >> confdefs.h <<\EOF
9530 #define HAVE_MMAP 1 9718 #define HAVE_MMAP 1
9531 EOF 9719 EOF
9532 } 9720 }
9533 9721
9534 for ac_hdr in unistd.h
9535 do
9536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9538 echo "configure:9539: checking for $ac_hdr" >&5
9539
9540 cat > conftest.$ac_ext <<EOF
9541 #line 9542 "configure"
9542 #include "confdefs.h"
9543 #include <$ac_hdr>
9544 EOF
9545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9546 { (eval echo configure:9547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9547 ac_err=`grep -v '^ *+' conftest.out`
9548 if test -z "$ac_err"; then
9549 rm -rf conftest*
9550 eval "ac_cv_header_$ac_safe=yes"
9551 else
9552 echo "$ac_err" >&5
9553 echo "configure: failed program was:" >&5
9554 cat conftest.$ac_ext >&5
9555 rm -rf conftest*
9556 eval "ac_cv_header_$ac_safe=no"
9557 fi
9558 rm -f conftest*
9559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9560 echo "$ac_t""yes" 1>&6
9561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9562 { test "$extra_verbose" = "yes" && cat << EOF
9563 Defining $ac_tr_hdr
9564 EOF
9565 cat >> confdefs.h <<EOF
9566 #define $ac_tr_hdr 1
9567 EOF
9568 }
9569
9570 else
9571 echo "$ac_t""no" 1>&6
9572 fi
9573 done
9574
9575 for ac_func in getpagesize
9576 do
9577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9578 echo "configure:9579: checking for $ac_func" >&5
9579
9580 cat > conftest.$ac_ext <<EOF
9581 #line 9582 "configure"
9582 #include "confdefs.h"
9583 /* System header to define __stub macros and hopefully few prototypes,
9584 which can conflict with char $ac_func(); below. */
9585 #include <assert.h>
9586 /* Override any gcc2 internal prototype to avoid an error. */
9587 /* We use char because int might match the return type of a gcc2
9588 builtin and then its argument prototype would still apply. */
9589 char $ac_func();
9590
9591 int main() {
9592
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9597 choke me
9598 #else
9599 $ac_func();
9600 #endif
9601
9602 ; return 0; }
9603 EOF
9604 if { (eval echo configure:9605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9605 rm -rf conftest*
9606 eval "ac_cv_func_$ac_func=yes"
9607 else
9608 echo "configure: failed program was:" >&5
9609 cat conftest.$ac_ext >&5
9610 rm -rf conftest*
9611 eval "ac_cv_func_$ac_func=no"
9612 fi
9613 rm -f conftest*
9614
9615 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9616 echo "$ac_t""yes" 1>&6
9617 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9618 { test "$extra_verbose" = "yes" && cat << EOF
9619 Defining $ac_tr_func
9620 EOF
9621 cat >> confdefs.h <<EOF
9622 #define $ac_tr_func 1
9623 EOF
9624 }
9625
9626 else
9627 echo "$ac_t""no" 1>&6
9628 fi
9629 done
9630
9631 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
9632 echo "configure:9633: checking for working mmap" >&5
9633
9634 cat > conftest.$ac_ext <<EOF
9635 #line 9636 "configure"
9636 #include "confdefs.h"
9637
9638 /* Thanks to Mike Haertel and Jim Avera for this test.
9639 Here is a matrix of mmap possibilities:
9640 mmap private not fixed
9641 mmap private fixed at somewhere currently unmapped
9642 mmap private fixed at somewhere already mapped
9643 mmap shared not fixed
9644 mmap shared fixed at somewhere currently unmapped
9645 mmap shared fixed at somewhere already mapped
9646 For private mappings, we should verify that changes cannot be read()
9647 back from the file, nor mmap's back from the file at a different
9648 address. (There have been systems where private was not correctly
9649 implemented like the infamous i386 svr4.0, and systems where the
9650 VM page cache was not coherent with the filesystem buffer cache
9651 like early versions of FreeBSD and possibly contemporary NetBSD.)
9652 For shared mappings, we should conversely verify that changes get
9653 propogated back to all the places they're supposed to be.
9654
9655 Grep wants private fixed already mapped.
9656 The main things grep needs to know about mmap are:
9657 * does it exist and is it safe to write into the mmap'd area
9658 * how to use it (BSD variants) */
9659 #include <sys/types.h>
9660 #include <fcntl.h>
9661 #include <sys/mman.h>
9662
9663 /* This mess was copied from the GNU getpagesize.h. */
9664 #ifndef HAVE_GETPAGESIZE
9665 # ifdef HAVE_UNISTD_H
9666 # include <unistd.h>
9667 # endif
9668
9669 /* Assume that all systems that can run configure have sys/param.h. */
9670 # ifndef HAVE_SYS_PARAM_H
9671 # define HAVE_SYS_PARAM_H 1
9672 # endif
9673
9674 # ifdef _SC_PAGESIZE
9675 # define getpagesize() sysconf(_SC_PAGESIZE)
9676 # else /* no _SC_PAGESIZE */
9677 # ifdef HAVE_SYS_PARAM_H
9678 # include <sys/param.h>
9679 # ifdef EXEC_PAGESIZE
9680 # define getpagesize() EXEC_PAGESIZE
9681 # else /* no EXEC_PAGESIZE */
9682 # ifdef NBPG
9683 # define getpagesize() NBPG * CLSIZE
9684 # ifndef CLSIZE
9685 # define CLSIZE 1
9686 # endif /* no CLSIZE */
9687 # else /* no NBPG */
9688 # ifdef NBPC
9689 # define getpagesize() NBPC
9690 # else /* no NBPC */
9691 # ifdef PAGESIZE
9692 # define getpagesize() PAGESIZE
9693 # endif /* PAGESIZE */
9694 # endif /* no NBPC */
9695 # endif /* no NBPG */
9696 # endif /* no EXEC_PAGESIZE */
9697 # else /* no HAVE_SYS_PARAM_H */
9698 # define getpagesize() 8192 /* punt totally */
9699 # endif /* no HAVE_SYS_PARAM_H */
9700 # endif /* no _SC_PAGESIZE */
9701
9702 #endif /* no HAVE_GETPAGESIZE */
9703
9704 #ifdef __cplusplus
9705 extern "C" { void *malloc(unsigned); }
9706 #else
9707 char *malloc();
9708 #endif
9709
9710 int
9711 main()
9712 {
9713 char *data, *data2, *data3;
9714 int i, pagesize;
9715 int fd;
9716
9717 pagesize = getpagesize();
9718
9719 /*
9720 * First, make a file with some known garbage in it.
9721 */
9722 data = malloc(pagesize);
9723 if (!data)
9724 exit(1);
9725 for (i = 0; i < pagesize; ++i)
9726 *(data + i) = rand();
9727 umask(0);
9728 fd = creat("conftestmmap", 0600);
9729 if (fd < 0)
9730 exit(1);
9731 if (write(fd, data, pagesize) != pagesize)
9732 exit(1);
9733 close(fd);
9734
9735 /*
9736 * Next, try to mmap the file at a fixed address which
9737 * already has something else allocated at it. If we can,
9738 * also make sure that we see the same garbage.
9739 */
9740 fd = open("conftestmmap", O_RDWR);
9741 if (fd < 0)
9742 exit(1);
9743 data2 = malloc(2 * pagesize);
9744 if (!data2)
9745 exit(1);
9746 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9747 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
9748 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9749 exit(1);
9750 for (i = 0; i < pagesize; ++i)
9751 if (*(data + i) != *(data2 + i))
9752 exit(1);
9753
9754 /*
9755 * Finally, make sure that changes to the mapped area
9756 * do not percolate back to the file as seen by read().
9757 * (This is a bug on some variants of i386 svr4.0.)
9758 */
9759 for (i = 0; i < pagesize; ++i)
9760 *(data2 + i) = *(data2 + i) + 1;
9761 data3 = malloc(pagesize);
9762 if (!data3)
9763 exit(1);
9764 if (read(fd, data3, pagesize) != pagesize)
9765 exit(1);
9766 for (i = 0; i < pagesize; ++i)
9767 if (*(data + i) != *(data3 + i))
9768 exit(1);
9769 close(fd);
9770 unlink("conftestmmap");
9771 exit(0);
9772 }
9773
9774 EOF
9775 if { (eval echo configure:9776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
9776 then
9777 ac_cv_func_mmap_fixed_mapped=yes
9778 else
9779 conftest_rc="$?"
9780 echo "configure: failed program was:" >&5
9781 cat conftest.$ac_ext >&5
9782 rm -fr conftest*
9783 ac_cv_func_mmap_fixed_mapped=no
9784 fi
9785 rm -fr conftest*
9786
9787 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
9788 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9789 { test "$extra_verbose" = "yes" && cat << \EOF
9790 Defining HAVE_MMAP
9791 EOF
9792 cat >> confdefs.h <<\EOF
9793 #define HAVE_MMAP 1
9794 EOF
9795 }
9796
9797 fi
9798
9799 9722
9800 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 9723 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
9801 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes 9724 test "$rel_alloc" = "default" -a "$have_mmap" = "yes" && rel_alloc=yes
9802 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF 9725 test "$rel_alloc" = "yes" && { test "$extra_verbose" = "yes" && cat << \EOF
9803 Defining REL_ALLOC 9726 Defining REL_ALLOC
9808 } 9731 }
9809 9732
9810 9733
9811 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 9734 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
9812 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 9735 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
9813 echo "configure:9814: checking for termios.h" >&5 9736 echo "configure:9737: checking for termios.h" >&5
9814 9737
9815 cat > conftest.$ac_ext <<EOF 9738 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure" 9739 #line 9740 "configure"
9817 #include "confdefs.h" 9740 #include "confdefs.h"
9818 #include <termios.h> 9741 #include <termios.h>
9819 EOF 9742 EOF
9820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9821 { (eval echo configure:9822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9744 { (eval echo configure:9745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9822 ac_err=`grep -v '^ *+' conftest.out` 9745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9823 if test -z "$ac_err"; then 9746 if test -z "$ac_err"; then
9824 rm -rf conftest* 9747 rm -rf conftest*
9825 eval "ac_cv_header_$ac_safe=yes" 9748 eval "ac_cv_header_$ac_safe=yes"
9826 else 9749 else
9827 echo "$ac_err" >&5 9750 echo "$ac_err" >&5
9859 9782
9860 else 9783 else
9861 echo "$ac_t""no" 1>&6 9784 echo "$ac_t""no" 1>&6
9862 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 9785 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
9863 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 9786 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
9864 echo "configure:9865: checking for termio.h" >&5 9787 echo "configure:9788: checking for termio.h" >&5
9865 9788
9866 cat > conftest.$ac_ext <<EOF 9789 cat > conftest.$ac_ext <<EOF
9867 #line 9868 "configure" 9790 #line 9791 "configure"
9868 #include "confdefs.h" 9791 #include "confdefs.h"
9869 #include <termio.h> 9792 #include <termio.h>
9870 EOF 9793 EOF
9871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9872 { (eval echo configure:9873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9795 { (eval echo configure:9796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9873 ac_err=`grep -v '^ *+' conftest.out` 9796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9874 if test -z "$ac_err"; then 9797 if test -z "$ac_err"; then
9875 rm -rf conftest* 9798 rm -rf conftest*
9876 eval "ac_cv_header_$ac_safe=yes" 9799 eval "ac_cv_header_$ac_safe=yes"
9877 else 9800 else
9878 echo "$ac_err" >&5 9801 echo "$ac_err" >&5
9899 fi 9822 fi
9900 9823
9901 9824
9902 9825
9903 echo $ac_n "checking for socket""... $ac_c" 1>&6 9826 echo $ac_n "checking for socket""... $ac_c" 1>&6
9904 echo "configure:9905: checking for socket" >&5 9827 echo "configure:9828: checking for socket" >&5
9905 9828
9906 cat > conftest.$ac_ext <<EOF 9829 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure" 9830 #line 9831 "configure"
9908 #include "confdefs.h" 9831 #include "confdefs.h"
9909 /* System header to define __stub macros and hopefully few prototypes, 9832 /* System header to define __stub macros and hopefully few prototypes,
9910 which can conflict with char socket(); below. */ 9833 which can conflict with char socket(); below. */
9911 #include <assert.h> 9834 #include <assert.h>
9912 /* Override any gcc2 internal prototype to avoid an error. */ 9835 /* Override any gcc2 internal prototype to avoid an error. */
9925 socket(); 9848 socket();
9926 #endif 9849 #endif
9927 9850
9928 ; return 0; } 9851 ; return 0; }
9929 EOF 9852 EOF
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9853 if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9931 rm -rf conftest* 9854 rm -rf conftest*
9932 eval "ac_cv_func_socket=yes" 9855 eval "ac_cv_func_socket=yes"
9933 else 9856 else
9934 echo "configure: failed program was:" >&5 9857 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5 9858 cat conftest.$ac_ext >&5
9940 9863
9941 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 9864 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9942 echo "$ac_t""yes" 1>&6 9865 echo "$ac_t""yes" 1>&6
9943 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 9866 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
9944 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 9867 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
9945 echo "configure:9946: checking for netinet/in.h" >&5 9868 echo "configure:9869: checking for netinet/in.h" >&5
9946 9869
9947 cat > conftest.$ac_ext <<EOF 9870 cat > conftest.$ac_ext <<EOF
9948 #line 9949 "configure" 9871 #line 9872 "configure"
9949 #include "confdefs.h" 9872 #include "confdefs.h"
9950 #include <netinet/in.h> 9873 #include <netinet/in.h>
9951 EOF 9874 EOF
9952 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9953 { (eval echo configure:9954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9876 { (eval echo configure:9877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9954 ac_err=`grep -v '^ *+' conftest.out` 9877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9955 if test -z "$ac_err"; then 9878 if test -z "$ac_err"; then
9956 rm -rf conftest* 9879 rm -rf conftest*
9957 eval "ac_cv_header_$ac_safe=yes" 9880 eval "ac_cv_header_$ac_safe=yes"
9958 else 9881 else
9959 echo "$ac_err" >&5 9882 echo "$ac_err" >&5
9965 rm -f conftest* 9888 rm -f conftest*
9966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 9889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9967 echo "$ac_t""yes" 1>&6 9890 echo "$ac_t""yes" 1>&6
9968 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 9891 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
9969 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 9892 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
9970 echo "configure:9971: checking for arpa/inet.h" >&5 9893 echo "configure:9894: checking for arpa/inet.h" >&5
9971 9894
9972 cat > conftest.$ac_ext <<EOF 9895 cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure" 9896 #line 9897 "configure"
9974 #include "confdefs.h" 9897 #include "confdefs.h"
9975 #include <arpa/inet.h> 9898 #include <arpa/inet.h>
9976 EOF 9899 EOF
9977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9978 { (eval echo configure:9979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9901 { (eval echo configure:9902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9979 ac_err=`grep -v '^ *+' conftest.out` 9902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9980 if test -z "$ac_err"; then 9903 if test -z "$ac_err"; then
9981 rm -rf conftest* 9904 rm -rf conftest*
9982 eval "ac_cv_header_$ac_safe=yes" 9905 eval "ac_cv_header_$ac_safe=yes"
9983 else 9906 else
9984 echo "$ac_err" >&5 9907 echo "$ac_err" >&5
9998 #define HAVE_SOCKETS 1 9921 #define HAVE_SOCKETS 1
9999 EOF 9922 EOF
10000 } 9923 }
10001 9924
10002 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 9925 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
10003 echo "configure:10004: checking "for sun_len member in struct sockaddr_un"" >&5 9926 echo "configure:9927: checking "for sun_len member in struct sockaddr_un"" >&5
10004 cat > conftest.$ac_ext <<EOF 9927 cat > conftest.$ac_ext <<EOF
10005 #line 10006 "configure" 9928 #line 9929 "configure"
10006 #include "confdefs.h" 9929 #include "confdefs.h"
10007 9930
10008 #include <sys/types.h> 9931 #include <sys/types.h>
10009 #include <sys/socket.h> 9932 #include <sys/socket.h>
10010 #include <sys/un.h> 9933 #include <sys/un.h>
10011 9934
10012 int main() { 9935 int main() {
10013 static struct sockaddr_un x; x.sun_len = 1; 9936 static struct sockaddr_un x; x.sun_len = 1;
10014 ; return 0; } 9937 ; return 0; }
10015 EOF 9938 EOF
10016 if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10017 rm -rf conftest* 9940 rm -rf conftest*
10018 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9941 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10019 Defining HAVE_SOCKADDR_SUN_LEN 9942 Defining HAVE_SOCKADDR_SUN_LEN
10020 EOF 9943 EOF
10021 cat >> confdefs.h <<\EOF 9944 cat >> confdefs.h <<\EOF
10029 rm -rf conftest* 9952 rm -rf conftest*
10030 echo "$ac_t""no" 1>&6 9953 echo "$ac_t""no" 1>&6
10031 fi 9954 fi
10032 rm -f conftest* 9955 rm -f conftest*
10033 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 9956 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
10034 echo "configure:10035: checking "for ip_mreq struct in netinet/in.h"" >&5 9957 echo "configure:9958: checking "for ip_mreq struct in netinet/in.h"" >&5
10035 cat > conftest.$ac_ext <<EOF 9958 cat > conftest.$ac_ext <<EOF
10036 #line 10037 "configure" 9959 #line 9960 "configure"
10037 #include "confdefs.h" 9960 #include "confdefs.h"
10038 9961
10039 #include <sys/types.h> 9962 #include <sys/types.h>
10040 #include <netinet/in.h> 9963 #include <netinet/in.h>
10041 9964
10042 int main() { 9965 int main() {
10043 static struct ip_mreq x; 9966 static struct ip_mreq x;
10044 ; return 0; } 9967 ; return 0; }
10045 EOF 9968 EOF
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10047 rm -rf conftest* 9970 rm -rf conftest*
10048 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 9971 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
10049 Defining HAVE_MULTICAST 9972 Defining HAVE_MULTICAST
10050 EOF 9973 EOF
10051 cat >> confdefs.h <<\EOF 9974 cat >> confdefs.h <<\EOF
10072 echo "$ac_t""no" 1>&6 9995 echo "$ac_t""no" 1>&6
10073 fi 9996 fi
10074 9997
10075 9998
10076 echo $ac_n "checking for msgget""... $ac_c" 1>&6 9999 echo $ac_n "checking for msgget""... $ac_c" 1>&6
10077 echo "configure:10078: checking for msgget" >&5 10000 echo "configure:10001: checking for msgget" >&5
10078 10001
10079 cat > conftest.$ac_ext <<EOF 10002 cat > conftest.$ac_ext <<EOF
10080 #line 10081 "configure" 10003 #line 10004 "configure"
10081 #include "confdefs.h" 10004 #include "confdefs.h"
10082 /* System header to define __stub macros and hopefully few prototypes, 10005 /* System header to define __stub macros and hopefully few prototypes,
10083 which can conflict with char msgget(); below. */ 10006 which can conflict with char msgget(); below. */
10084 #include <assert.h> 10007 #include <assert.h>
10085 /* Override any gcc2 internal prototype to avoid an error. */ 10008 /* Override any gcc2 internal prototype to avoid an error. */
10098 msgget(); 10021 msgget();
10099 #endif 10022 #endif
10100 10023
10101 ; return 0; } 10024 ; return 0; }
10102 EOF 10025 EOF
10103 if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10026 if { (eval echo configure:10027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10104 rm -rf conftest* 10027 rm -rf conftest*
10105 eval "ac_cv_func_msgget=yes" 10028 eval "ac_cv_func_msgget=yes"
10106 else 10029 else
10107 echo "configure: failed program was:" >&5 10030 echo "configure: failed program was:" >&5
10108 cat conftest.$ac_ext >&5 10031 cat conftest.$ac_ext >&5
10113 10036
10114 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 10037 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
10115 echo "$ac_t""yes" 1>&6 10038 echo "$ac_t""yes" 1>&6
10116 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 10039 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
10117 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 10040 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
10118 echo "configure:10119: checking for sys/ipc.h" >&5 10041 echo "configure:10042: checking for sys/ipc.h" >&5
10119 10042
10120 cat > conftest.$ac_ext <<EOF 10043 cat > conftest.$ac_ext <<EOF
10121 #line 10122 "configure" 10044 #line 10045 "configure"
10122 #include "confdefs.h" 10045 #include "confdefs.h"
10123 #include <sys/ipc.h> 10046 #include <sys/ipc.h>
10124 EOF 10047 EOF
10125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10126 { (eval echo configure:10127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10049 { (eval echo configure:10050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10127 ac_err=`grep -v '^ *+' conftest.out` 10050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10128 if test -z "$ac_err"; then 10051 if test -z "$ac_err"; then
10129 rm -rf conftest* 10052 rm -rf conftest*
10130 eval "ac_cv_header_$ac_safe=yes" 10053 eval "ac_cv_header_$ac_safe=yes"
10131 else 10054 else
10132 echo "$ac_err" >&5 10055 echo "$ac_err" >&5
10138 rm -f conftest* 10061 rm -f conftest*
10139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6 10063 echo "$ac_t""yes" 1>&6
10141 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 10064 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
10142 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 10065 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
10143 echo "configure:10144: checking for sys/msg.h" >&5 10066 echo "configure:10067: checking for sys/msg.h" >&5
10144 10067
10145 cat > conftest.$ac_ext <<EOF 10068 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure" 10069 #line 10070 "configure"
10147 #include "confdefs.h" 10070 #include "confdefs.h"
10148 #include <sys/msg.h> 10071 #include <sys/msg.h>
10149 EOF 10072 EOF
10150 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10151 { (eval echo configure:10152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10074 { (eval echo configure:10075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10152 ac_err=`grep -v '^ *+' conftest.out` 10075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10153 if test -z "$ac_err"; then 10076 if test -z "$ac_err"; then
10154 rm -rf conftest* 10077 rm -rf conftest*
10155 eval "ac_cv_header_$ac_safe=yes" 10078 eval "ac_cv_header_$ac_safe=yes"
10156 else 10079 else
10157 echo "$ac_err" >&5 10080 echo "$ac_err" >&5
10184 fi 10107 fi
10185 10108
10186 10109
10187 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 10110 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
10188 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 10111 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
10189 echo "configure:10190: checking for dirent.h" >&5 10112 echo "configure:10113: checking for dirent.h" >&5
10190 10113
10191 cat > conftest.$ac_ext <<EOF 10114 cat > conftest.$ac_ext <<EOF
10192 #line 10193 "configure" 10115 #line 10116 "configure"
10193 #include "confdefs.h" 10116 #include "confdefs.h"
10194 #include <dirent.h> 10117 #include <dirent.h>
10195 EOF 10118 EOF
10196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10197 { (eval echo configure:10198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10120 { (eval echo configure:10121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10198 ac_err=`grep -v '^ *+' conftest.out` 10121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10199 if test -z "$ac_err"; then 10122 if test -z "$ac_err"; then
10200 rm -rf conftest* 10123 rm -rf conftest*
10201 eval "ac_cv_header_$ac_safe=yes" 10124 eval "ac_cv_header_$ac_safe=yes"
10202 else 10125 else
10203 echo "$ac_err" >&5 10126 echo "$ac_err" >&5
10219 10142
10220 else 10143 else
10221 echo "$ac_t""no" 1>&6 10144 echo "$ac_t""no" 1>&6
10222 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 10145 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
10223 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 10146 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
10224 echo "configure:10225: checking for sys/dir.h" >&5 10147 echo "configure:10148: checking for sys/dir.h" >&5
10225 10148
10226 cat > conftest.$ac_ext <<EOF 10149 cat > conftest.$ac_ext <<EOF
10227 #line 10228 "configure" 10150 #line 10151 "configure"
10228 #include "confdefs.h" 10151 #include "confdefs.h"
10229 #include <sys/dir.h> 10152 #include <sys/dir.h>
10230 EOF 10153 EOF
10231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10232 { (eval echo configure:10233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10155 { (eval echo configure:10156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10233 ac_err=`grep -v '^ *+' conftest.out` 10156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10234 if test -z "$ac_err"; then 10157 if test -z "$ac_err"; then
10235 rm -rf conftest* 10158 rm -rf conftest*
10236 eval "ac_cv_header_$ac_safe=yes" 10159 eval "ac_cv_header_$ac_safe=yes"
10237 else 10160 else
10238 echo "$ac_err" >&5 10161 echo "$ac_err" >&5
10260 fi 10183 fi
10261 10184
10262 10185
10263 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 10186 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
10264 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 10187 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
10265 echo "configure:10266: checking for nlist.h" >&5 10188 echo "configure:10189: checking for nlist.h" >&5
10266 10189
10267 cat > conftest.$ac_ext <<EOF 10190 cat > conftest.$ac_ext <<EOF
10268 #line 10269 "configure" 10191 #line 10192 "configure"
10269 #include "confdefs.h" 10192 #include "confdefs.h"
10270 #include <nlist.h> 10193 #include <nlist.h>
10271 EOF 10194 EOF
10272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10273 { (eval echo configure:10274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10196 { (eval echo configure:10197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10274 ac_err=`grep -v '^ *+' conftest.out` 10197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10275 if test -z "$ac_err"; then 10198 if test -z "$ac_err"; then
10276 rm -rf conftest* 10199 rm -rf conftest*
10277 eval "ac_cv_header_$ac_safe=yes" 10200 eval "ac_cv_header_$ac_safe=yes"
10278 else 10201 else
10279 echo "$ac_err" >&5 10202 echo "$ac_err" >&5
10298 fi 10221 fi
10299 10222
10300 10223
10301 10224
10302 echo "checking "for sound support"" 1>&6 10225 echo "checking "for sound support"" 1>&6
10303 echo "configure:10304: checking "for sound support"" >&5 10226 echo "configure:10227: checking "for sound support"" >&5
10304 case "$with_sound" in 10227 case "$with_sound" in
10305 native | both ) with_native_sound=yes;; 10228 native | both ) with_native_sound=yes;;
10306 nas | no ) with_native_sound=no;; 10229 nas | no ) with_native_sound=no;;
10307 esac 10230 esac
10308 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 10231 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
10309 10232
10310 if test "$with_native_sound" != "no"; then 10233 if test "$with_native_sound" != "no"; then
10311 if test -n "$native_sound_lib"; then 10234 if test -n "$native_sound_lib"; then
10312 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 10235 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
10313 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 10236 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
10314 echo "configure:10315: checking for multimedia/audio_device.h" >&5 10237 echo "configure:10238: checking for multimedia/audio_device.h" >&5
10315 10238
10316 cat > conftest.$ac_ext <<EOF 10239 cat > conftest.$ac_ext <<EOF
10317 #line 10318 "configure" 10240 #line 10241 "configure"
10318 #include "confdefs.h" 10241 #include "confdefs.h"
10319 #include <multimedia/audio_device.h> 10242 #include <multimedia/audio_device.h>
10320 EOF 10243 EOF
10321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10244 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; } 10245 { (eval echo configure:10246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10323 ac_err=`grep -v '^ *+' conftest.out` 10246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10324 if test -z "$ac_err"; then 10247 if test -z "$ac_err"; then
10325 rm -rf conftest* 10248 rm -rf conftest*
10326 eval "ac_cv_header_$ac_safe=yes" 10249 eval "ac_cv_header_$ac_safe=yes"
10327 else 10250 else
10328 echo "$ac_err" >&5 10251 echo "$ac_err" >&5
10365 case "$canonical" in 10288 case "$canonical" in
10366 *-sgi-* ) 10289 *-sgi-* )
10367 if test -z "$native_sound_lib"; then 10290 if test -z "$native_sound_lib"; then
10368 10291
10369 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 10292 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
10370 echo "configure:10371: checking for ALopenport in -laudio" >&5 10293 echo "configure:10294: checking for ALopenport in -laudio" >&5
10371 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 10294 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
10372 10295
10373 xe_check_libs=" -laudio " 10296 xe_check_libs=" -laudio "
10374 cat > conftest.$ac_ext <<EOF 10297 cat > conftest.$ac_ext <<EOF
10375 #line 10376 "configure" 10298 #line 10299 "configure"
10376 #include "confdefs.h" 10299 #include "confdefs.h"
10377 /* Override any gcc2 internal prototype to avoid an error. */ 10300 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2 10301 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */ 10302 builtin and then its argument prototype would still apply. */
10380 char ALopenport(); 10303 char ALopenport();
10381 10304
10382 int main() { 10305 int main() {
10383 ALopenport() 10306 ALopenport()
10384 ; return 0; } 10307 ; return 0; }
10385 EOF 10308 EOF
10386 if { (eval echo configure:10387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10387 rm -rf conftest* 10310 rm -rf conftest*
10388 eval "ac_cv_lib_$ac_lib_var=yes" 10311 eval "ac_cv_lib_$ac_lib_var=yes"
10389 else 10312 else
10390 echo "configure: failed program was:" >&5 10313 echo "configure: failed program was:" >&5
10391 cat conftest.$ac_ext >&5 10314 cat conftest.$ac_ext >&5
10412 fi ;; 10335 fi ;;
10413 hppa*-hp-hpux* ) 10336 hppa*-hp-hpux* )
10414 if test -z "$native_sound_lib"; then 10337 if test -z "$native_sound_lib"; then
10415 10338
10416 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 10339 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
10417 echo "configure:10418: checking for AOpenAudio in -lAlib" >&5 10340 echo "configure:10341: checking for AOpenAudio in -lAlib" >&5
10418 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 10341 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
10419 10342
10420 xe_check_libs=" -lAlib " 10343 xe_check_libs=" -lAlib "
10421 cat > conftest.$ac_ext <<EOF 10344 cat > conftest.$ac_ext <<EOF
10422 #line 10423 "configure" 10345 #line 10346 "configure"
10423 #include "confdefs.h" 10346 #include "confdefs.h"
10424 /* Override any gcc2 internal prototype to avoid an error. */ 10347 /* Override any gcc2 internal prototype to avoid an error. */
10425 /* We use char because int might match the return type of a gcc2 10348 /* We use char because int might match the return type of a gcc2
10426 builtin and then its argument prototype would still apply. */ 10349 builtin and then its argument prototype would still apply. */
10427 char AOpenAudio(); 10350 char AOpenAudio();
10428 10351
10429 int main() { 10352 int main() {
10430 AOpenAudio() 10353 AOpenAudio()
10431 ; return 0; } 10354 ; return 0; }
10432 EOF 10355 EOF
10433 if { (eval echo configure:10434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10356 if { (eval echo configure:10357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10434 rm -rf conftest* 10357 rm -rf conftest*
10435 eval "ac_cv_lib_$ac_lib_var=yes" 10358 eval "ac_cv_lib_$ac_lib_var=yes"
10436 else 10359 else
10437 echo "configure: failed program was:" >&5 10360 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5 10361 cat conftest.$ac_ext >&5
10466 10389
10467 if test -z "$sound_found"; then 10390 if test -z "$sound_found"; then
10468 for dir in "machine" "sys" "linux"; do 10391 for dir in "machine" "sys" "linux"; do
10469 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 10392 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
10470 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 10393 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
10471 echo "configure:10472: checking for ${dir}/soundcard.h" >&5 10394 echo "configure:10395: checking for ${dir}/soundcard.h" >&5
10472 10395
10473 cat > conftest.$ac_ext <<EOF 10396 cat > conftest.$ac_ext <<EOF
10474 #line 10475 "configure" 10397 #line 10398 "configure"
10475 #include "confdefs.h" 10398 #include "confdefs.h"
10476 #include <${dir}/soundcard.h> 10399 #include <${dir}/soundcard.h>
10477 EOF 10400 EOF
10478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10479 { (eval echo configure:10480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10402 { (eval echo configure:10403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10480 ac_err=`grep -v '^ *+' conftest.out` 10403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10481 if test -z "$ac_err"; then 10404 if test -z "$ac_err"; then
10482 rm -rf conftest* 10405 rm -rf conftest*
10483 eval "ac_cv_header_$ac_safe=yes" 10406 eval "ac_cv_header_$ac_safe=yes"
10484 else 10407 else
10485 echo "$ac_err" >&5 10408 echo "$ac_err" >&5
10544 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 10467 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
10545 echo " xemacs will be linked with \"nas.o\"" 10468 echo " xemacs will be linked with \"nas.o\""
10546 fi 10469 fi
10547 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 10470 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
10548 cat > conftest.$ac_ext <<EOF 10471 cat > conftest.$ac_ext <<EOF
10549 #line 10550 "configure" 10472 #line 10473 "configure"
10550 #include "confdefs.h" 10473 #include "confdefs.h"
10551 #include <audio/Xtutil.h> 10474 #include <audio/Xtutil.h>
10552 EOF 10475 EOF
10553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10554 egrep "AuXtErrorJump" >/dev/null 2>&1; then 10477 egrep "AuXtErrorJump" >/dev/null 2>&1; then
10571 10494
10572 test -z "$with_tty" && with_tty=yes 10495 test -z "$with_tty" && with_tty=yes
10573 10496
10574 if test "$with_tty" = "yes" ; then 10497 if test "$with_tty" = "yes" ; then
10575 echo "checking for TTY-related features" 1>&6 10498 echo "checking for TTY-related features" 1>&6
10576 echo "configure:10577: checking for TTY-related features" >&5 10499 echo "configure:10500: checking for TTY-related features" >&5
10577 { test "$extra_verbose" = "yes" && cat << \EOF 10500 { test "$extra_verbose" = "yes" && cat << \EOF
10578 Defining HAVE_TTY 10501 Defining HAVE_TTY
10579 EOF 10502 EOF
10580 cat >> confdefs.h <<\EOF 10503 cat >> confdefs.h <<\EOF
10581 #define HAVE_TTY 1 10504 #define HAVE_TTY 1
10587 fi 10510 fi
10588 10511
10589 if test -z "$with_ncurses"; then 10512 if test -z "$with_ncurses"; then
10590 10513
10591 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 10514 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
10592 echo "configure:10593: checking for tgetent in -lncurses" >&5 10515 echo "configure:10516: checking for tgetent in -lncurses" >&5
10593 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 10516 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
10594 10517
10595 xe_check_libs=" -lncurses " 10518 xe_check_libs=" -lncurses "
10596 cat > conftest.$ac_ext <<EOF 10519 cat > conftest.$ac_ext <<EOF
10597 #line 10598 "configure" 10520 #line 10521 "configure"
10598 #include "confdefs.h" 10521 #include "confdefs.h"
10599 /* Override any gcc2 internal prototype to avoid an error. */ 10522 /* Override any gcc2 internal prototype to avoid an error. */
10600 /* We use char because int might match the return type of a gcc2 10523 /* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */ 10524 builtin and then its argument prototype would still apply. */
10602 char tgetent(); 10525 char tgetent();
10603 10526
10604 int main() { 10527 int main() {
10605 tgetent() 10528 tgetent()
10606 ; return 0; } 10529 ; return 0; }
10607 EOF 10530 EOF
10608 if { (eval echo configure:10609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10531 if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10609 rm -rf conftest* 10532 rm -rf conftest*
10610 eval "ac_cv_lib_$ac_lib_var=yes" 10533 eval "ac_cv_lib_$ac_lib_var=yes"
10611 else 10534 else
10612 echo "configure: failed program was:" >&5 10535 echo "configure: failed program was:" >&5
10613 cat conftest.$ac_ext >&5 10536 cat conftest.$ac_ext >&5
10636 EOF 10559 EOF
10637 } 10560 }
10638 10561
10639 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10562 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10640 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10563 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10641 echo "configure:10642: checking for ncurses/curses.h" >&5 10564 echo "configure:10565: checking for ncurses/curses.h" >&5
10642 10565
10643 cat > conftest.$ac_ext <<EOF 10566 cat > conftest.$ac_ext <<EOF
10644 #line 10645 "configure" 10567 #line 10568 "configure"
10645 #include "confdefs.h" 10568 #include "confdefs.h"
10646 #include <ncurses/curses.h> 10569 #include <ncurses/curses.h>
10647 EOF 10570 EOF
10648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10649 { (eval echo configure:10650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10572 { (eval echo configure:10573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10650 ac_err=`grep -v '^ *+' conftest.out` 10573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10651 if test -z "$ac_err"; then 10574 if test -z "$ac_err"; then
10652 rm -rf conftest* 10575 rm -rf conftest*
10653 eval "ac_cv_header_$ac_safe=yes" 10576 eval "ac_cv_header_$ac_safe=yes"
10654 else 10577 else
10655 echo "$ac_err" >&5 10578 echo "$ac_err" >&5
10666 echo "$ac_t""no" 1>&6 10589 echo "$ac_t""no" 1>&6
10667 fi 10590 fi
10668 10591
10669 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 10592 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
10670 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 10593 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
10671 echo "configure:10672: checking for ncurses/term.h" >&5 10594 echo "configure:10595: checking for ncurses/term.h" >&5
10672 10595
10673 cat > conftest.$ac_ext <<EOF 10596 cat > conftest.$ac_ext <<EOF
10674 #line 10675 "configure" 10597 #line 10598 "configure"
10675 #include "confdefs.h" 10598 #include "confdefs.h"
10676 #include <ncurses/term.h> 10599 #include <ncurses/term.h>
10677 EOF 10600 EOF
10678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10679 { (eval echo configure:10680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10680 ac_err=`grep -v '^ *+' conftest.out` 10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10681 if test -z "$ac_err"; then 10604 if test -z "$ac_err"; then
10682 rm -rf conftest* 10605 rm -rf conftest*
10683 eval "ac_cv_header_$ac_safe=yes" 10606 eval "ac_cv_header_$ac_safe=yes"
10684 else 10607 else
10685 echo "$ac_err" >&5 10608 echo "$ac_err" >&5
10704 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 10627 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
10705 save_c_switch_site="$c_switch_site" 10628 save_c_switch_site="$c_switch_site"
10706 c_switch_site="$c_switch_site -I/usr/include/ncurses" 10629 c_switch_site="$c_switch_site -I/usr/include/ncurses"
10707 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 10630 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
10708 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 10631 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
10709 echo "configure:10710: checking for ncurses/curses.h" >&5 10632 echo "configure:10633: checking for ncurses/curses.h" >&5
10710 10633
10711 cat > conftest.$ac_ext <<EOF 10634 cat > conftest.$ac_ext <<EOF
10712 #line 10713 "configure" 10635 #line 10636 "configure"
10713 #include "confdefs.h" 10636 #include "confdefs.h"
10714 #include <ncurses/curses.h> 10637 #include <ncurses/curses.h>
10715 EOF 10638 EOF
10716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10639 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10717 { (eval echo configure:10718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10640 { (eval echo configure:10641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10718 ac_err=`grep -v '^ *+' conftest.out` 10641 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10719 if test -z "$ac_err"; then 10642 if test -z "$ac_err"; then
10720 rm -rf conftest* 10643 rm -rf conftest*
10721 eval "ac_cv_header_$ac_safe=yes" 10644 eval "ac_cv_header_$ac_safe=yes"
10722 else 10645 else
10723 echo "$ac_err" >&5 10646 echo "$ac_err" >&5
10747 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10670 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10748 else 10671 else
10749 for lib in curses termlib termcap; do 10672 for lib in curses termlib termcap; do
10750 10673
10751 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 10674 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
10752 echo "configure:10753: checking for tgetent in -l$lib" >&5 10675 echo "configure:10676: checking for tgetent in -l$lib" >&5
10753 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 10676 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
10754 10677
10755 xe_check_libs=" -l$lib " 10678 xe_check_libs=" -l$lib "
10756 cat > conftest.$ac_ext <<EOF 10679 cat > conftest.$ac_ext <<EOF
10757 #line 10758 "configure" 10680 #line 10681 "configure"
10758 #include "confdefs.h" 10681 #include "confdefs.h"
10759 /* Override any gcc2 internal prototype to avoid an error. */ 10682 /* Override any gcc2 internal prototype to avoid an error. */
10760 /* We use char because int might match the return type of a gcc2 10683 /* We use char because int might match the return type of a gcc2
10761 builtin and then its argument prototype would still apply. */ 10684 builtin and then its argument prototype would still apply. */
10762 char tgetent(); 10685 char tgetent();
10763 10686
10764 int main() { 10687 int main() {
10765 tgetent() 10688 tgetent()
10766 ; return 0; } 10689 ; return 0; }
10767 EOF 10690 EOF
10768 if { (eval echo configure:10769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10691 if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10769 rm -rf conftest* 10692 rm -rf conftest*
10770 eval "ac_cv_lib_$ac_lib_var=yes" 10693 eval "ac_cv_lib_$ac_lib_var=yes"
10771 else 10694 else
10772 echo "configure: failed program was:" >&5 10695 echo "configure: failed program was:" >&5
10773 cat conftest.$ac_ext >&5 10696 cat conftest.$ac_ext >&5
10794 if test -n "$libs_termcap"; then 10717 if test -n "$libs_termcap"; then
10795 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 10718 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
10796 else 10719 else
10797 10720
10798 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 10721 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
10799 echo "configure:10800: checking for tgetent in -lcurses" >&5 10722 echo "configure:10723: checking for tgetent in -lcurses" >&5
10800 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 10723 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
10801 10724
10802 xe_check_libs=" -lcurses " 10725 xe_check_libs=" -lcurses "
10803 cat > conftest.$ac_ext <<EOF 10726 cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure" 10727 #line 10728 "configure"
10805 #include "confdefs.h" 10728 #include "confdefs.h"
10806 /* Override any gcc2 internal prototype to avoid an error. */ 10729 /* Override any gcc2 internal prototype to avoid an error. */
10807 /* We use char because int might match the return type of a gcc2 10730 /* We use char because int might match the return type of a gcc2
10808 builtin and then its argument prototype would still apply. */ 10731 builtin and then its argument prototype would still apply. */
10809 char tgetent(); 10732 char tgetent();
10810 10733
10811 int main() { 10734 int main() {
10812 tgetent() 10735 tgetent()
10813 ; return 0; } 10736 ; return 0; }
10814 EOF 10737 EOF
10815 if { (eval echo configure:10816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10738 if { (eval echo configure:10739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10816 rm -rf conftest* 10739 rm -rf conftest*
10817 eval "ac_cv_lib_$ac_lib_var=yes" 10740 eval "ac_cv_lib_$ac_lib_var=yes"
10818 else 10741 else
10819 echo "configure: failed program was:" >&5 10742 echo "configure: failed program was:" >&5
10820 cat conftest.$ac_ext >&5 10743 cat conftest.$ac_ext >&5
10828 echo "$ac_t""yes" 1>&6 10751 echo "$ac_t""yes" 1>&6
10829 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 10752 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
10830 else 10753 else
10831 echo "$ac_t""no" 1>&6 10754 echo "$ac_t""no" 1>&6
10832 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 10755 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
10833 echo "configure:10834: checking for tgetent in -ltermcap" >&5 10756 echo "configure:10757: checking for tgetent in -ltermcap" >&5
10834 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 10757 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
10835 10758
10836 xe_check_libs=" -ltermcap " 10759 xe_check_libs=" -ltermcap "
10837 cat > conftest.$ac_ext <<EOF 10760 cat > conftest.$ac_ext <<EOF
10838 #line 10839 "configure" 10761 #line 10762 "configure"
10839 #include "confdefs.h" 10762 #include "confdefs.h"
10840 /* Override any gcc2 internal prototype to avoid an error. */ 10763 /* Override any gcc2 internal prototype to avoid an error. */
10841 /* We use char because int might match the return type of a gcc2 10764 /* We use char because int might match the return type of a gcc2
10842 builtin and then its argument prototype would still apply. */ 10765 builtin and then its argument prototype would still apply. */
10843 char tgetent(); 10766 char tgetent();
10844 10767
10845 int main() { 10768 int main() {
10846 tgetent() 10769 tgetent()
10847 ; return 0; } 10770 ; return 0; }
10848 EOF 10771 EOF
10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10772 if { (eval echo configure:10773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10850 rm -rf conftest* 10773 rm -rf conftest*
10851 eval "ac_cv_lib_$ac_lib_var=yes" 10774 eval "ac_cv_lib_$ac_lib_var=yes"
10852 else 10775 else
10853 echo "configure: failed program was:" >&5 10776 echo "configure: failed program was:" >&5
10854 cat conftest.$ac_ext >&5 10777 cat conftest.$ac_ext >&5
10892 } 10815 }
10893 10816
10894 10817
10895 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 10818 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
10896 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 10819 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
10897 echo "configure:10898: checking for gpm.h" >&5 10820 echo "configure:10821: checking for gpm.h" >&5
10898 10821
10899 cat > conftest.$ac_ext <<EOF 10822 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure" 10823 #line 10824 "configure"
10901 #include "confdefs.h" 10824 #include "confdefs.h"
10902 #include <gpm.h> 10825 #include <gpm.h>
10903 EOF 10826 EOF
10904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10905 { (eval echo configure:10906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10828 { (eval echo configure:10829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10906 ac_err=`grep -v '^ *+' conftest.out` 10829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10907 if test -z "$ac_err"; then 10830 if test -z "$ac_err"; then
10908 rm -rf conftest* 10831 rm -rf conftest*
10909 eval "ac_cv_header_$ac_safe=yes" 10832 eval "ac_cv_header_$ac_safe=yes"
10910 else 10833 else
10911 echo "$ac_err" >&5 10834 echo "$ac_err" >&5
10923 with_gpm=no 10846 with_gpm=no
10924 fi 10847 fi
10925 } 10848 }
10926 test -z "$with_gpm" && { 10849 test -z "$with_gpm" && {
10927 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 10850 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
10928 echo "configure:10929: checking for Gpm_Open in -lgpm" >&5 10851 echo "configure:10852: checking for Gpm_Open in -lgpm" >&5
10929 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 10852 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
10930 10853
10931 xe_check_libs=" -lgpm " 10854 xe_check_libs=" -lgpm "
10932 cat > conftest.$ac_ext <<EOF 10855 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure" 10856 #line 10857 "configure"
10934 #include "confdefs.h" 10857 #include "confdefs.h"
10935 /* Override any gcc2 internal prototype to avoid an error. */ 10858 /* Override any gcc2 internal prototype to avoid an error. */
10936 /* We use char because int might match the return type of a gcc2 10859 /* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */ 10860 builtin and then its argument prototype would still apply. */
10938 char Gpm_Open(); 10861 char Gpm_Open();
10939 10862
10940 int main() { 10863 int main() {
10941 Gpm_Open() 10864 Gpm_Open()
10942 ; return 0; } 10865 ; return 0; }
10943 EOF 10866 EOF
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10867 if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10945 rm -rf conftest* 10868 rm -rf conftest*
10946 eval "ac_cv_lib_$ac_lib_var=yes" 10869 eval "ac_cv_lib_$ac_lib_var=yes"
10947 else 10870 else
10948 echo "configure: failed program was:" >&5 10871 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5 10872 cat conftest.$ac_ext >&5
10988 echo " xemacs will be linked with \"event-unixoid.o\"" 10911 echo " xemacs will be linked with \"event-unixoid.o\""
10989 fi 10912 fi
10990 10913
10991 10914
10992 echo "checking for database support" 1>&6 10915 echo "checking for database support" 1>&6
10993 echo "configure:10994: checking for database support" >&5 10916 echo "configure:10917: checking for database support" >&5
10994 10917
10995 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then 10918 if test "$with_database_gnudbm $with_database_dbm" != "no no"; then
10996 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 10919 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
10997 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 10920 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
10998 echo "configure:10999: checking for ndbm.h" >&5 10921 echo "configure:10922: checking for ndbm.h" >&5
10999 10922
11000 cat > conftest.$ac_ext <<EOF 10923 cat > conftest.$ac_ext <<EOF
11001 #line 11002 "configure" 10924 #line 10925 "configure"
11002 #include "confdefs.h" 10925 #include "confdefs.h"
11003 #include <ndbm.h> 10926 #include <ndbm.h>
11004 EOF 10927 EOF
11005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11006 { (eval echo configure:11007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10929 { (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11007 ac_err=`grep -v '^ *+' conftest.out` 10930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11008 if test -z "$ac_err"; then 10931 if test -z "$ac_err"; then
11009 rm -rf conftest* 10932 rm -rf conftest*
11010 eval "ac_cv_header_$ac_safe=yes" 10933 eval "ac_cv_header_$ac_safe=yes"
11011 else 10934 else
11012 echo "$ac_err" >&5 10935 echo "$ac_err" >&5
11031 fi 10954 fi
11032 10955
11033 if test "$with_database_gnudbm" != "no"; then 10956 if test "$with_database_gnudbm" != "no"; then
11034 10957
11035 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 10958 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
11036 echo "configure:11037: checking for dbm_open in -lgdbm" >&5 10959 echo "configure:10960: checking for dbm_open in -lgdbm" >&5
11037 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 10960 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
11038 10961
11039 xe_check_libs=" -lgdbm " 10962 xe_check_libs=" -lgdbm "
11040 cat > conftest.$ac_ext <<EOF 10963 cat > conftest.$ac_ext <<EOF
11041 #line 11042 "configure" 10964 #line 10965 "configure"
11042 #include "confdefs.h" 10965 #include "confdefs.h"
11043 /* Override any gcc2 internal prototype to avoid an error. */ 10966 /* Override any gcc2 internal prototype to avoid an error. */
11044 /* We use char because int might match the return type of a gcc2 10967 /* We use char because int might match the return type of a gcc2
11045 builtin and then its argument prototype would still apply. */ 10968 builtin and then its argument prototype would still apply. */
11046 char dbm_open(); 10969 char dbm_open();
11047 10970
11048 int main() { 10971 int main() {
11049 dbm_open() 10972 dbm_open()
11050 ; return 0; } 10973 ; return 0; }
11051 EOF 10974 EOF
11052 if { (eval echo configure:11053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10975 if { (eval echo configure:10976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11053 rm -rf conftest* 10976 rm -rf conftest*
11054 eval "ac_cv_lib_$ac_lib_var=yes" 10977 eval "ac_cv_lib_$ac_lib_var=yes"
11055 else 10978 else
11056 echo "configure: failed program was:" >&5 10979 echo "configure: failed program was:" >&5
11057 cat conftest.$ac_ext >&5 10980 cat conftest.$ac_ext >&5
11075 10998
11076 fi 10999 fi
11077 11000
11078 if test "$with_database_dbm" != "no"; then 11001 if test "$with_database_dbm" != "no"; then
11079 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 11002 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
11080 echo "configure:11081: checking for dbm_open" >&5 11003 echo "configure:11004: checking for dbm_open" >&5
11081 11004
11082 cat > conftest.$ac_ext <<EOF 11005 cat > conftest.$ac_ext <<EOF
11083 #line 11084 "configure" 11006 #line 11007 "configure"
11084 #include "confdefs.h" 11007 #include "confdefs.h"
11085 /* System header to define __stub macros and hopefully few prototypes, 11008 /* System header to define __stub macros and hopefully few prototypes,
11086 which can conflict with char dbm_open(); below. */ 11009 which can conflict with char dbm_open(); below. */
11087 #include <assert.h> 11010 #include <assert.h>
11088 /* Override any gcc2 internal prototype to avoid an error. */ 11011 /* Override any gcc2 internal prototype to avoid an error. */
11101 dbm_open(); 11024 dbm_open();
11102 #endif 11025 #endif
11103 11026
11104 ; return 0; } 11027 ; return 0; }
11105 EOF 11028 EOF
11106 if { (eval echo configure:11107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11029 if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11107 rm -rf conftest* 11030 rm -rf conftest*
11108 eval "ac_cv_func_dbm_open=yes" 11031 eval "ac_cv_func_dbm_open=yes"
11109 else 11032 else
11110 echo "configure: failed program was:" >&5 11033 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5 11034 cat conftest.$ac_ext >&5
11120 else 11043 else
11121 echo "$ac_t""no" 1>&6 11044 echo "$ac_t""no" 1>&6
11122 11045
11123 11046
11124 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 11047 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
11125 echo "configure:11126: checking for dbm_open in -ldbm" >&5 11048 echo "configure:11049: checking for dbm_open in -ldbm" >&5
11126 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 11049 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
11127 11050
11128 xe_check_libs=" -ldbm " 11051 xe_check_libs=" -ldbm "
11129 cat > conftest.$ac_ext <<EOF 11052 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure" 11053 #line 11054 "configure"
11131 #include "confdefs.h" 11054 #include "confdefs.h"
11132 /* Override any gcc2 internal prototype to avoid an error. */ 11055 /* Override any gcc2 internal prototype to avoid an error. */
11133 /* We use char because int might match the return type of a gcc2 11056 /* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */ 11057 builtin and then its argument prototype would still apply. */
11135 char dbm_open(); 11058 char dbm_open();
11136 11059
11137 int main() { 11060 int main() {
11138 dbm_open() 11061 dbm_open()
11139 ; return 0; } 11062 ; return 0; }
11140 EOF 11063 EOF
11141 if { (eval echo configure:11142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11142 rm -rf conftest* 11065 rm -rf conftest*
11143 eval "ac_cv_lib_$ac_lib_var=yes" 11066 eval "ac_cv_lib_$ac_lib_var=yes"
11144 else 11067 else
11145 echo "configure: failed program was:" >&5 11068 echo "configure: failed program was:" >&5
11146 cat conftest.$ac_ext >&5 11069 cat conftest.$ac_ext >&5
11178 11101
11179 fi 11102 fi
11180 11103
11181 if test "$with_database_berkdb" != "no"; then 11104 if test "$with_database_berkdb" != "no"; then
11182 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 11105 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
11183 echo "configure:11184: checking for Berkeley db.h" >&5 11106 echo "configure:11107: checking for Berkeley db.h" >&5
11184 for path in "db/db.h" "db.h"; do 11107 for path in "db/db.h" "db.h"; do
11185 cat > conftest.$ac_ext <<EOF 11108 cat > conftest.$ac_ext <<EOF
11186 #line 11187 "configure" 11109 #line 11110 "configure"
11187 #include "confdefs.h" 11110 #include "confdefs.h"
11188 #ifdef HAVE_INTTYPES_H 11111 #ifdef HAVE_INTTYPES_H
11189 #define __BIT_TYPES_DEFINED__ 11112 #define __BIT_TYPES_DEFINED__
11190 #include <inttypes.h> 11113 #include <inttypes.h>
11191 typedef uint8_t u_int8_t; 11114 typedef uint8_t u_int8_t;
11199 11122
11200 int main() { 11123 int main() {
11201 11124
11202 ; return 0; } 11125 ; return 0; }
11203 EOF 11126 EOF
11204 if { (eval echo configure:11205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11127 if { (eval echo configure:11128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11205 rm -rf conftest* 11128 rm -rf conftest*
11206 db_h_path="$path"; break 11129 db_h_path="$path"; break
11207 else 11130 else
11208 echo "configure: failed program was:" >&5 11131 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5 11132 cat conftest.$ac_ext >&5
11215 else echo "$ac_t""$db_h_path" 1>&6 11138 else echo "$ac_t""$db_h_path" 1>&6
11216 fi 11139 fi
11217 11140
11218 if test "$with_database_berkdb" != "no"; then 11141 if test "$with_database_berkdb" != "no"; then
11219 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 11142 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
11220 echo "configure:11221: checking for Berkeley DB version" >&5 11143 echo "configure:11144: checking for Berkeley DB version" >&5
11221 cat > conftest.$ac_ext <<EOF 11144 cat > conftest.$ac_ext <<EOF
11222 #line 11223 "configure" 11145 #line 11146 "configure"
11223 #include "confdefs.h" 11146 #include "confdefs.h"
11224 #include <$db_h_path> 11147 #include <$db_h_path>
11225 #if DB_VERSION_MAJOR > 1 11148 #if DB_VERSION_MAJOR > 1
11226 yes 11149 yes
11227 #endif 11150 #endif
11236 echo "$ac_t""1" 1>&6; dbfunc=dbopen 11159 echo "$ac_t""1" 1>&6; dbfunc=dbopen
11237 fi 11160 fi
11238 rm -f conftest* 11161 rm -f conftest*
11239 11162
11240 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 11163 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
11241 echo "configure:11242: checking for $dbfunc" >&5 11164 echo "configure:11165: checking for $dbfunc" >&5
11242 11165
11243 cat > conftest.$ac_ext <<EOF 11166 cat > conftest.$ac_ext <<EOF
11244 #line 11245 "configure" 11167 #line 11168 "configure"
11245 #include "confdefs.h" 11168 #include "confdefs.h"
11246 /* System header to define __stub macros and hopefully few prototypes, 11169 /* System header to define __stub macros and hopefully few prototypes,
11247 which can conflict with char $dbfunc(); below. */ 11170 which can conflict with char $dbfunc(); below. */
11248 #include <assert.h> 11171 #include <assert.h>
11249 /* Override any gcc2 internal prototype to avoid an error. */ 11172 /* Override any gcc2 internal prototype to avoid an error. */
11262 $dbfunc(); 11185 $dbfunc();
11263 #endif 11186 #endif
11264 11187
11265 ; return 0; } 11188 ; return 0; }
11266 EOF 11189 EOF
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11268 rm -rf conftest* 11191 rm -rf conftest*
11269 eval "ac_cv_func_$dbfunc=yes" 11192 eval "ac_cv_func_$dbfunc=yes"
11270 else 11193 else
11271 echo "configure: failed program was:" >&5 11194 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5 11195 cat conftest.$ac_ext >&5
11281 else 11204 else
11282 echo "$ac_t""no" 1>&6 11205 echo "$ac_t""no" 1>&6
11283 11206
11284 11207
11285 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 11208 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
11286 echo "configure:11287: checking for $dbfunc in -ldb" >&5 11209 echo "configure:11210: checking for $dbfunc in -ldb" >&5
11287 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 11210 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
11288 11211
11289 xe_check_libs=" -ldb " 11212 xe_check_libs=" -ldb "
11290 cat > conftest.$ac_ext <<EOF 11213 cat > conftest.$ac_ext <<EOF
11291 #line 11292 "configure" 11214 #line 11215 "configure"
11292 #include "confdefs.h" 11215 #include "confdefs.h"
11293 /* Override any gcc2 internal prototype to avoid an error. */ 11216 /* Override any gcc2 internal prototype to avoid an error. */
11294 /* We use char because int might match the return type of a gcc2 11217 /* We use char because int might match the return type of a gcc2
11295 builtin and then its argument prototype would still apply. */ 11218 builtin and then its argument prototype would still apply. */
11296 char $dbfunc(); 11219 char $dbfunc();
11297 11220
11298 int main() { 11221 int main() {
11299 $dbfunc() 11222 $dbfunc()
11300 ; return 0; } 11223 ; return 0; }
11301 EOF 11224 EOF
11302 if { (eval echo configure:11303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11303 rm -rf conftest* 11226 rm -rf conftest*
11304 eval "ac_cv_lib_$ac_lib_var=yes" 11227 eval "ac_cv_lib_$ac_lib_var=yes"
11305 else 11228 else
11306 echo "configure: failed program was:" >&5 11229 echo "configure: failed program was:" >&5
11307 cat conftest.$ac_ext >&5 11230 cat conftest.$ac_ext >&5
11361 fi 11284 fi
11362 11285
11363 if test "$with_socks" = "yes"; then 11286 if test "$with_socks" = "yes"; then
11364 11287
11365 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 11288 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
11366 echo "configure:11367: checking for SOCKSinit in -lsocks" >&5 11289 echo "configure:11290: checking for SOCKSinit in -lsocks" >&5
11367 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 11290 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
11368 11291
11369 xe_check_libs=" -lsocks " 11292 xe_check_libs=" -lsocks "
11370 cat > conftest.$ac_ext <<EOF 11293 cat > conftest.$ac_ext <<EOF
11371 #line 11372 "configure" 11294 #line 11295 "configure"
11372 #include "confdefs.h" 11295 #include "confdefs.h"
11373 /* Override any gcc2 internal prototype to avoid an error. */ 11296 /* Override any gcc2 internal prototype to avoid an error. */
11374 /* We use char because int might match the return type of a gcc2 11297 /* We use char because int might match the return type of a gcc2
11375 builtin and then its argument prototype would still apply. */ 11298 builtin and then its argument prototype would still apply. */
11376 char SOCKSinit(); 11299 char SOCKSinit();
11377 11300
11378 int main() { 11301 int main() {
11379 SOCKSinit() 11302 SOCKSinit()
11380 ; return 0; } 11303 ; return 0; }
11381 EOF 11304 EOF
11382 if { (eval echo configure:11383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11305 if { (eval echo configure:11306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11383 rm -rf conftest* 11306 rm -rf conftest*
11384 eval "ac_cv_lib_$ac_lib_var=yes" 11307 eval "ac_cv_lib_$ac_lib_var=yes"
11385 else 11308 else
11386 echo "configure: failed program was:" >&5 11309 echo "configure: failed program was:" >&5
11387 cat conftest.$ac_ext >&5 11310 cat conftest.$ac_ext >&5
11436 11359
11437 for ac_hdr in dlfcn.h 11360 for ac_hdr in dlfcn.h
11438 do 11361 do
11439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11441 echo "configure:11442: checking for $ac_hdr" >&5 11364 echo "configure:11365: checking for $ac_hdr" >&5
11442 11365
11443 cat > conftest.$ac_ext <<EOF 11366 cat > conftest.$ac_ext <<EOF
11444 #line 11445 "configure" 11367 #line 11368 "configure"
11445 #include "confdefs.h" 11368 #include "confdefs.h"
11446 #include <$ac_hdr> 11369 #include <$ac_hdr>
11447 EOF 11370 EOF
11448 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11449 { (eval echo configure:11450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11372 { (eval echo configure:11373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11450 ac_err=`grep -v '^ *+' conftest.out` 11373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11451 if test -z "$ac_err"; then 11374 if test -z "$ac_err"; then
11452 rm -rf conftest* 11375 rm -rf conftest*
11453 eval "ac_cv_header_$ac_safe=yes" 11376 eval "ac_cv_header_$ac_safe=yes"
11454 else 11377 else
11455 echo "$ac_err" >&5 11378 echo "$ac_err" >&5
11475 fi 11398 fi
11476 done 11399 done
11477 11400
11478 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11401 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11479 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 11402 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
11480 echo "configure:11481: checking for dlopen in -ldl" >&5 11403 echo "configure:11404: checking for dlopen in -ldl" >&5
11481 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 11404 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
11482 11405
11483 xe_check_libs=" -ldl " 11406 xe_check_libs=" -ldl "
11484 cat > conftest.$ac_ext <<EOF 11407 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure" 11408 #line 11409 "configure"
11486 #include "confdefs.h" 11409 #include "confdefs.h"
11487 /* Override any gcc2 internal prototype to avoid an error. */ 11410 /* Override any gcc2 internal prototype to avoid an error. */
11488 /* We use char because int might match the return type of a gcc2 11411 /* We use char because int might match the return type of a gcc2
11489 builtin and then its argument prototype would still apply. */ 11412 builtin and then its argument prototype would still apply. */
11490 char dlopen(); 11413 char dlopen();
11491 11414
11492 int main() { 11415 int main() {
11493 dlopen() 11416 dlopen()
11494 ; return 0; } 11417 ; return 0; }
11495 EOF 11418 EOF
11496 if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11419 if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11497 rm -rf conftest* 11420 rm -rf conftest*
11498 eval "ac_cv_lib_$ac_lib_var=yes" 11421 eval "ac_cv_lib_$ac_lib_var=yes"
11499 else 11422 else
11500 echo "configure: failed program was:" >&5 11423 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5 11424 cat conftest.$ac_ext >&5
11520 fi 11443 fi
11521 11444
11522 } 11445 }
11523 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11446 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11524 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 11447 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6
11525 echo "configure:11526: checking for _dlopen in -lc" >&5 11448 echo "configure:11449: checking for _dlopen in -lc" >&5
11526 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` 11449 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'`
11527 11450
11528 xe_check_libs=" -lc " 11451 xe_check_libs=" -lc "
11529 cat > conftest.$ac_ext <<EOF 11452 cat > conftest.$ac_ext <<EOF
11530 #line 11531 "configure" 11453 #line 11454 "configure"
11531 #include "confdefs.h" 11454 #include "confdefs.h"
11532 /* Override any gcc2 internal prototype to avoid an error. */ 11455 /* Override any gcc2 internal prototype to avoid an error. */
11533 /* We use char because int might match the return type of a gcc2 11456 /* We use char because int might match the return type of a gcc2
11534 builtin and then its argument prototype would still apply. */ 11457 builtin and then its argument prototype would still apply. */
11535 char _dlopen(); 11458 char _dlopen();
11536 11459
11537 int main() { 11460 int main() {
11538 _dlopen() 11461 _dlopen()
11539 ; return 0; } 11462 ; return 0; }
11540 EOF 11463 EOF
11541 if { (eval echo configure:11542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11464 if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11542 rm -rf conftest* 11465 rm -rf conftest*
11543 eval "ac_cv_lib_$ac_lib_var=yes" 11466 eval "ac_cv_lib_$ac_lib_var=yes"
11544 else 11467 else
11545 echo "configure: failed program was:" >&5 11468 echo "configure: failed program was:" >&5
11546 cat conftest.$ac_ext >&5 11469 cat conftest.$ac_ext >&5
11565 fi 11488 fi
11566 11489
11567 } 11490 }
11568 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { 11491 test -z "$with_shlib" && test ! -z "$have_dlfcn" && {
11569 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 11492 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
11570 echo "configure:11571: checking for dlopen in -lc" >&5 11493 echo "configure:11494: checking for dlopen in -lc" >&5
11571 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` 11494 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'`
11572 11495
11573 xe_check_libs=" -lc " 11496 xe_check_libs=" -lc "
11574 cat > conftest.$ac_ext <<EOF 11497 cat > conftest.$ac_ext <<EOF
11575 #line 11576 "configure" 11498 #line 11499 "configure"
11576 #include "confdefs.h" 11499 #include "confdefs.h"
11577 /* Override any gcc2 internal prototype to avoid an error. */ 11500 /* Override any gcc2 internal prototype to avoid an error. */
11578 /* We use char because int might match the return type of a gcc2 11501 /* We use char because int might match the return type of a gcc2
11579 builtin and then its argument prototype would still apply. */ 11502 builtin and then its argument prototype would still apply. */
11580 char dlopen(); 11503 char dlopen();
11581 11504
11582 int main() { 11505 int main() {
11583 dlopen() 11506 dlopen()
11584 ; return 0; } 11507 ; return 0; }
11585 EOF 11508 EOF
11586 if { (eval echo configure:11587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 rm -rf conftest* 11510 rm -rf conftest*
11588 eval "ac_cv_lib_$ac_lib_var=yes" 11511 eval "ac_cv_lib_$ac_lib_var=yes"
11589 else 11512 else
11590 echo "configure: failed program was:" >&5 11513 echo "configure: failed program was:" >&5
11591 cat conftest.$ac_ext >&5 11514 cat conftest.$ac_ext >&5
11610 fi 11533 fi
11611 11534
11612 } 11535 }
11613 test -z "$with_shlib" && { 11536 test -z "$with_shlib" && {
11614 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 11537 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
11615 echo "configure:11616: checking for shl_load in -ldld" >&5 11538 echo "configure:11539: checking for shl_load in -ldld" >&5
11616 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 11539 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
11617 11540
11618 xe_check_libs=" -ldld " 11541 xe_check_libs=" -ldld "
11619 cat > conftest.$ac_ext <<EOF 11542 cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure" 11543 #line 11544 "configure"
11621 #include "confdefs.h" 11544 #include "confdefs.h"
11622 /* Override any gcc2 internal prototype to avoid an error. */ 11545 /* Override any gcc2 internal prototype to avoid an error. */
11623 /* We use char because int might match the return type of a gcc2 11546 /* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */ 11547 builtin and then its argument prototype would still apply. */
11625 char shl_load(); 11548 char shl_load();
11626 11549
11627 int main() { 11550 int main() {
11628 shl_load() 11551 shl_load()
11629 ; return 0; } 11552 ; return 0; }
11630 EOF 11553 EOF
11631 if { (eval echo configure:11632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11554 if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11632 rm -rf conftest* 11555 rm -rf conftest*
11633 eval "ac_cv_lib_$ac_lib_var=yes" 11556 eval "ac_cv_lib_$ac_lib_var=yes"
11634 else 11557 else
11635 echo "configure: failed program was:" >&5 11558 echo "configure: failed program was:" >&5
11636 cat conftest.$ac_ext >&5 11559 cat conftest.$ac_ext >&5
11655 fi 11578 fi
11656 11579
11657 } 11580 }
11658 test -z "$with_shlib" && { 11581 test -z "$with_shlib" && {
11659 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 11582 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
11660 echo "configure:11661: checking for dld_init in -ldld" >&5 11583 echo "configure:11584: checking for dld_init in -ldld" >&5
11661 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 11584 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
11662 11585
11663 xe_check_libs=" -ldld " 11586 xe_check_libs=" -ldld "
11664 cat > conftest.$ac_ext <<EOF 11587 cat > conftest.$ac_ext <<EOF
11665 #line 11666 "configure" 11588 #line 11589 "configure"
11666 #include "confdefs.h" 11589 #include "confdefs.h"
11667 /* Override any gcc2 internal prototype to avoid an error. */ 11590 /* Override any gcc2 internal prototype to avoid an error. */
11668 /* We use char because int might match the return type of a gcc2 11591 /* We use char because int might match the return type of a gcc2
11669 builtin and then its argument prototype would still apply. */ 11592 builtin and then its argument prototype would still apply. */
11670 char dld_init(); 11593 char dld_init();
11671 11594
11672 int main() { 11595 int main() {
11673 dld_init() 11596 dld_init()
11674 ; return 0; } 11597 ; return 0; }
11675 EOF 11598 EOF
11676 if { (eval echo configure:11677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11599 if { (eval echo configure:11600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11677 rm -rf conftest* 11600 rm -rf conftest*
11678 eval "ac_cv_lib_$ac_lib_var=yes" 11601 eval "ac_cv_lib_$ac_lib_var=yes"
11679 else 11602 else
11680 echo "configure: failed program was:" >&5 11603 echo "configure: failed program was:" >&5
11681 cat conftest.$ac_ext >&5 11604 cat conftest.$ac_ext >&5
11721 dll_lflags="-shared" 11644 dll_lflags="-shared"
11722 dll_cflags="-r" 11645 dll_cflags="-r"
11723 dll_oflags="-o " 11646 dll_oflags="-o "
11724 11647
11725 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 11648 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6
11726 echo "configure:11727: checking how to build a shared library" >&5 11649 echo "configure:11650: checking how to build a shared library" >&5
11727 case `uname -rs` in 11650 case `uname -rs` in
11728 UNIX_SV*|UNIX_System_V*) 11651 UNIX_SV*|UNIX_System_V*)
11729 dll_lflags="-G" 11652 dll_lflags="-G"
11730 dll_cflags=-Kpic 11653 dll_cflags=-Kpic
11731 dll_ld="ld" 11654 dll_ld="ld"
11812 11735
11813 11736
11814 for ac_func in dlerror 11737 for ac_func in dlerror
11815 do 11738 do
11816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11817 echo "configure:11818: checking for $ac_func" >&5 11740 echo "configure:11741: checking for $ac_func" >&5
11818 11741
11819 cat > conftest.$ac_ext <<EOF 11742 cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure" 11743 #line 11744 "configure"
11821 #include "confdefs.h" 11744 #include "confdefs.h"
11822 /* System header to define __stub macros and hopefully few prototypes, 11745 /* System header to define __stub macros and hopefully few prototypes,
11823 which can conflict with char $ac_func(); below. */ 11746 which can conflict with char $ac_func(); below. */
11824 #include <assert.h> 11747 #include <assert.h>
11825 /* Override any gcc2 internal prototype to avoid an error. */ 11748 /* Override any gcc2 internal prototype to avoid an error. */
11838 $ac_func(); 11761 $ac_func();
11839 #endif 11762 #endif
11840 11763
11841 ; return 0; } 11764 ; return 0; }
11842 EOF 11765 EOF
11843 if { (eval echo configure:11844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 11766 if { (eval echo configure:11767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11844 rm -rf conftest* 11767 rm -rf conftest*
11845 eval "ac_cv_func_$ac_func=yes" 11768 eval "ac_cv_func_$ac_func=yes"
11846 else 11769 else
11847 echo "configure: failed program was:" >&5 11770 echo "configure: failed program was:" >&5
11848 cat conftest.$ac_ext >&5 11771 cat conftest.$ac_ext >&5
11874 *) ;; 11797 *) ;;
11875 esac 11798 esac
11876 fi 11799 fi
11877 11800
11878 cat > conftest.$ac_ext <<EOF 11801 cat > conftest.$ac_ext <<EOF
11879 #line 11880 "configure" 11802 #line 11803 "configure"
11880 #include "confdefs.h" 11803 #include "confdefs.h"
11881 int main(int c,char *v[]){return 0;} 11804 int main(int c,char *v[]){return 0;}
11882 EOF 11805 EOF
11883 if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11806 if { (eval echo configure:11807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11884 then 11807 then
11885 : 11808 :
11886 else 11809 else
11887 conftest_rc="$?" 11810 conftest_rc="$?"
11888 echo "configure: failed program was:" >&5 11811 echo "configure: failed program was:" >&5
12634 case "\$ac_option" in 12557 case "\$ac_option" in
12635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12636 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 12559 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
12637 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 12560 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
12638 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 12561 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
12639 echo "$CONFIG_STATUS generated by autoconf version 2.12" 12562 echo "$CONFIG_STATUS generated by autoconf version 2.13"
12640 exit 0 ;; 12563 exit 0 ;;
12641 -help | --help | --hel | --he | --h) 12564 -help | --help | --hel | --he | --h)
12642 echo "\$ac_cs_usage"; exit 0 ;; 12565 echo "\$ac_cs_usage"; exit 0 ;;
12643 *) echo "\$ac_cs_usage"; exit 1 ;; 12566 *) echo "\$ac_cs_usage"; exit 1 ;;
12644 esac 12567 esac
12654 # Protect against being on the right side of a sed subst in config.status. 12577 # Protect against being on the right side of a sed subst in config.status.
12655 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 12578 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
12656 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 12579 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
12657 $ac_vpsub 12580 $ac_vpsub
12658 $extrasub 12581 $extrasub
12582 s%@SHELL@%$SHELL%g
12659 s%@CFLAGS@%$CFLAGS%g 12583 s%@CFLAGS@%$CFLAGS%g
12660 s%@CPPFLAGS@%$CPPFLAGS%g 12584 s%@CPPFLAGS@%$CPPFLAGS%g
12661 s%@CXXFLAGS@%$CXXFLAGS%g 12585 s%@CXXFLAGS@%$CXXFLAGS%g
12586 s%@FFLAGS@%$FFLAGS%g
12662 s%@DEFS@%$DEFS%g 12587 s%@DEFS@%$DEFS%g
12663 s%@LDFLAGS@%$LDFLAGS%g 12588 s%@LDFLAGS@%$LDFLAGS%g
12664 s%@LIBS@%$LIBS%g 12589 s%@LIBS@%$LIBS%g
12665 s%@exec_prefix@%$exec_prefix%g 12590 s%@exec_prefix@%$exec_prefix%g
12666 s%@prefix@%$prefix%g 12591 s%@prefix@%$prefix%g
12686 s%@start_files@%$start_files%g 12611 s%@start_files@%$start_files%g
12687 s%@ld@%$ld%g 12612 s%@ld@%$ld%g
12688 s%@lib_gcc@%$lib_gcc%g 12613 s%@lib_gcc@%$lib_gcc%g
12689 s%@RANLIB@%$RANLIB%g 12614 s%@RANLIB@%$RANLIB%g
12690 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 12615 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
12616 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
12691 s%@INSTALL_DATA@%$INSTALL_DATA%g 12617 s%@INSTALL_DATA@%$INSTALL_DATA%g
12692 s%@YACC@%$YACC%g 12618 s%@YACC@%$YACC%g
12693 s%@SET_MAKE@%$SET_MAKE%g 12619 s%@SET_MAKE@%$SET_MAKE%g
12694 s%@X_CFLAGS@%$X_CFLAGS%g 12620 s%@X_CFLAGS@%$X_CFLAGS%g
12695 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 12621 s%@X_PRE_LIBS@%$X_PRE_LIBS%g