comparison configure @ 181:bfd6434d15b3 r20-3b17

Import from CVS: tag r20-3b17
author cvs
date Mon, 13 Aug 2007 09:53:19 +0200
parents 9ad43877534d
children e121b013d1f0
comparison
equal deleted inserted replaced
180:add28d59e586 181:bfd6434d15b3
42 ### config.status is removed. 42 ### config.status is removed.
43 43
44 ac_help="$ac_help 44 ac_help="$ac_help
45 --with-x use the X Window System" 45 --with-x use the X Window System"
46 46
47 build=NONE
48 exec_prefix=NONE 47 exec_prefix=NONE
49 host=NONE 48 host=NONE
50 no_create= 49 no_create=
51 nonopt=NONE 50 nonopt=NONE
52 no_recursion= 51 no_recursion=
236 puresize='' 235 puresize=''
237 cflags='UNSPECIFIED' 236 cflags='UNSPECIFIED'
238 dynamic='' 237 dynamic=''
239 with_x11='' 238 with_x11=''
240 rel_alloc='default' 239 rel_alloc='default'
241 use_system_malloc='default' 240 with_system_malloc='default'
242 energize_version='' 241 energize_version=''
243 native_sound_lib='' 242 native_sound_lib=''
244 use_assertions="yes" 243 use_assertions="yes"
245 with_gif="" 244 with_gif=""
246 with_toolbars="" 245 with_toolbars=""
429 --puresize=VALUE Override default amount of space for pure Lisp code. 428 --puresize=VALUE Override default amount of space for pure Lisp code.
430 --rel-alloc Use the relocating allocator (default for this option 429 --rel-alloc Use the relocating allocator (default for this option
431 is system-dependent). 430 is system-dependent).
432 --with-clash-detection Use lock files to detect multiple edits of the same file. 431 --with-clash-detection Use lock files to detect multiple edits of the same file.
433 The default is to not do clash detection. 432 The default is to not do clash detection.
434 --use-system-malloc Force use of the system malloc, rather than GNU 433 --with-system-malloc Force use of the system malloc, rather than GNU malloc.
435 malloc. 434 --with-debug-malloc Use the debugging malloc package.
436 --use-debug-malloc Use the debugging malloc package.
437 435
438 You may also specify any of the \`path' variables found in 436 You may also specify any of the \`path' variables found in
439 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and 437 Makefile.in, including --bindir, --libdir, --lispdir, --datadir, and
440 so on. Note that we recommend against explicitly setting any of these 438 so on. Note that we recommend against explicitly setting any of these
441 variables. See the INSTALL file for a complete list plus the reasons 439 variables. See the INSTALL file for a complete list plus the reasons
577 fi 575 fi
578 eval "$opt=\"$val\"" 576 eval "$opt=\"$val\""
579 ;; 577 ;;
580 578
581 rel_alloc | \ 579 rel_alloc | \
582 use_debug_malloc | \ 580 with_debug_malloc | use_debug_malloc | \
583 use_system_malloc ) 581 with_system_malloc | use_system_malloc )
584 case "$val" in 582 case "$val" in
585 y | ye | yes ) val=yes ;; 583 y | ye | yes ) val=yes ;;
586 n | no ) val=no ;; 584 n | no ) val=no ;;
587 d | de | def | defa | defau | defaul | default ) 585 d | de | def | defa | defau | defaul | default ) val=default ;;
588 val=default ;;
589 * ) (echo "$progname: Usage error:" 586 * ) (echo "$progname: Usage error:"
590 echo " " "The \`--$optname' option requires one of these values: 587 echo " " "The \`--$optname' option requires one of these values:
591 \`yes', \`no', or \`default'." 588 \`yes', \`no', or \`default'."
592 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; 589 echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;;
593 esac 590 esac
591 case "$opt" in use_* ) opt="`echo $opt | sed /use/with/`" ;; esac
594 eval "$opt=\"$val\"" 592 eval "$opt=\"$val\""
595 ;; 593 ;;
596 594
597 "with_database" ) 595 "with_database" )
598 with_database_berkdb=no 596 with_database_berkdb=no
844 fi 842 fi
845 ;; 843 ;;
846 esac 844 esac
847 845
848 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 846 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
849 echo "configure:850: checking whether ln -s works" >&5 847 echo "configure:848: checking whether ln -s works" >&5
850 848
851 rm -f conftestdata 849 rm -f conftestdata
852 if ln -s X conftestdata 2>/dev/null 850 if ln -s X conftestdata 2>/dev/null
853 then 851 then
854 rm -f conftestdata 852 rm -f conftestdata
869 echo Making symbolic link to "$srcdir/$dir" 867 echo Making symbolic link to "$srcdir/$dir"
870 ${LN_S} "$srcdir/$dir" "$dir" 868 ${LN_S} "$srcdir/$dir" "$dir"
871 fi 869 fi
872 done 870 done
873 871
872 absolute_pwd="`pwd`";
873 if test -n "$PWD" && "`cd $PWD && pwd`" = "$absolute_pwd"
874 then blddir="$PWD"
875 else blddir="$absolute_pwd"
876 fi
877
878
874 case "$srcdir" in 879 case "$srcdir" in
875 /* ) ;; 880 /* ) ;;
876 . ) 881 . ) srcdir="$blddir" ;;
877 if test "$PWD" != "" -a "`(cd $PWD ; sh -c pwd)`" = "`pwd`"; then 882 * ) srcdir="`cd $srcdir && pwd`" ;;
878 srcdir="$PWD"
879 else
880 srcdir="`(cd $srcdir && pwd)`"
881 fi
882 ;;
883 * ) srcdir="`(cd $srcdir && pwd)`" ;;
884 esac 883 esac
885 884
886 if test `pwd` != `sh -c cd $srcdir && pwd` \ 885 if test `pwd` != `sh -c cd $srcdir && pwd` \
887 && test -f "$srcdir/src/config.h"; then 886 && test -f "$srcdir/src/config.h"; then
888 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used" 887 (echo "$progname: WARNING: The directory tree \`$srcdir' is being used"
1020 } 1019 }
1021 1020
1022 1021
1023 1022
1024 echo "checking "the configuration name"" 1>&6 1023 echo "checking "the configuration name"" 1>&6
1025 echo "configure:1026: checking "the configuration name"" >&5 1024 echo "configure:1025: checking "the configuration name"" >&5
1026 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'` 1025 internal_configuration=`echo $configuration | sed 's/-\(energize\|workshop\)//'`
1027 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else 1026 if canonical=`$srcdir/config.sub "$internal_configuration"` ; then : ; else
1028 exit $? 1027 exit $?
1029 fi 1028 fi
1030 1029
1474 xe_save_CFLAGS="$CFLAGS" 1473 xe_save_CFLAGS="$CFLAGS"
1475 1474
1476 # Extract the first word of "gcc", so it can be a program name with args. 1475 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2 1476 set dummy gcc; ac_word=$2
1478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1479 echo "configure:1480: checking for $ac_word" >&5 1478 echo "configure:1479: checking for $ac_word" >&5
1480 1479
1481 if test -n "$CC"; then 1480 if test -n "$CC"; then
1482 ac_cv_prog_CC="$CC" # Let the user override the test. 1481 ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else 1482 else
1484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1500 1499
1501 if test -z "$CC"; then 1500 if test -z "$CC"; then
1502 # Extract the first word of "cc", so it can be a program name with args. 1501 # Extract the first word of "cc", so it can be a program name with args.
1503 set dummy cc; ac_word=$2 1502 set dummy cc; ac_word=$2
1504 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1505 echo "configure:1506: checking for $ac_word" >&5 1504 echo "configure:1505: checking for $ac_word" >&5
1506 1505
1507 if test -n "$CC"; then 1506 if test -n "$CC"; then
1508 ac_cv_prog_CC="$CC" # Let the user override the test. 1507 ac_cv_prog_CC="$CC" # Let the user override the test.
1509 else 1508 else
1510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1545 1544
1546 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1545 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1547 fi 1546 fi
1548 1547
1549 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1548 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1550 echo "configure:1551: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1549 echo "configure:1550: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1551 1550
1552 ac_ext=c 1551 ac_ext=c
1553 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1552 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1554 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1553 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1555 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1554 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1557 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1556 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1558 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1557 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1559 cross_compiling=no 1558 cross_compiling=no
1560 1559
1561 cat > conftest.$ac_ext <<EOF 1560 cat > conftest.$ac_ext <<EOF
1562 #line 1563 "configure" 1561 #line 1562 "configure"
1563 #include "confdefs.h" 1562 #include "confdefs.h"
1564 main(){return(0);} 1563 main(){return(0);}
1565 EOF 1564 EOF
1566 if { (eval echo configure:1567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1565 if { (eval echo configure:1566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1567 ac_cv_prog_cc_works=yes 1566 ac_cv_prog_cc_works=yes
1568 # If we can't run a trivial program, we are probably using a cross compiler. 1567 # If we can't run a trivial program, we are probably using a cross compiler.
1569 if (./conftest; exit) 2>/dev/null; then 1568 if (./conftest; exit) 2>/dev/null; then
1570 ac_cv_prog_cc_cross=no 1569 ac_cv_prog_cc_cross=no
1571 else 1570 else
1581 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1580 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1582 if test $ac_cv_prog_cc_works = no; then 1581 if test $ac_cv_prog_cc_works = no; then
1583 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1582 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1584 fi 1583 fi
1585 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1584 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1586 echo "configure:1587: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1585 echo "configure:1586: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1587 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1586 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1588 cross_compiling=$ac_cv_prog_cc_cross 1587 cross_compiling=$ac_cv_prog_cc_cross
1589 1588
1590 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1589 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1591 echo "configure:1592: checking whether we are using GNU C" >&5 1590 echo "configure:1591: checking whether we are using GNU C" >&5
1592 1591
1593 cat > conftest.c <<EOF 1592 cat > conftest.c <<EOF
1594 #ifdef __GNUC__ 1593 #ifdef __GNUC__
1595 yes; 1594 yes;
1596 #endif 1595 #endif
1597 EOF 1596 EOF
1598 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1597 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1599 ac_cv_prog_gcc=yes 1598 ac_cv_prog_gcc=yes
1600 else 1599 else
1601 ac_cv_prog_gcc=no 1600 ac_cv_prog_gcc=no
1602 fi 1601 fi
1603 1602
1607 GCC=yes 1606 GCC=yes
1608 ac_test_CFLAGS="${CFLAGS+set}" 1607 ac_test_CFLAGS="${CFLAGS+set}"
1609 ac_save_CFLAGS="$CFLAGS" 1608 ac_save_CFLAGS="$CFLAGS"
1610 CFLAGS= 1609 CFLAGS=
1611 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1610 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1612 echo "configure:1613: checking whether ${CC-cc} accepts -g" >&5 1611 echo "configure:1612: checking whether ${CC-cc} accepts -g" >&5
1613 1612
1614 echo 'void f(){}' > conftest.c 1613 echo 'void f(){}' > conftest.c
1615 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1614 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1616 ac_cv_prog_cc_g=yes 1615 ac_cv_prog_cc_g=yes
1617 else 1616 else
1636 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then 1635 if test "$with_gcc" = "no" -a "$GCC" = "yes"; then
1637 CC=${NON_GNU_CC-cc} 1636 CC=${NON_GNU_CC-cc}
1638 # Extract the first word of "gcc", so it can be a program name with args. 1637 # Extract the first word of "gcc", so it can be a program name with args.
1639 set dummy gcc; ac_word=$2 1638 set dummy gcc; ac_word=$2
1640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1641 echo "configure:1642: checking for $ac_word" >&5 1640 echo "configure:1641: checking for $ac_word" >&5
1642 1641
1643 if test -n "$CC"; then 1642 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test. 1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else 1644 else
1646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1662 1661
1663 if test -z "$CC"; then 1662 if test -z "$CC"; then
1664 # Extract the first word of "cc", so it can be a program name with args. 1663 # Extract the first word of "cc", so it can be a program name with args.
1665 set dummy cc; ac_word=$2 1664 set dummy cc; ac_word=$2
1666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1667 echo "configure:1668: checking for $ac_word" >&5 1666 echo "configure:1667: checking for $ac_word" >&5
1668 1667
1669 if test -n "$CC"; then 1668 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test. 1669 ac_cv_prog_CC="$CC" # Let the user override the test.
1671 else 1670 else
1672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1707 1706
1708 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1707 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1709 fi 1708 fi
1710 1709
1711 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1710 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1712 echo "configure:1713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1711 echo "configure:1712: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1713 1712
1714 ac_ext=c 1713 ac_ext=c
1715 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1714 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1716 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1715 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1717 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1716 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1719 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1718 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1720 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1719 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1721 cross_compiling=no 1720 cross_compiling=no
1722 1721
1723 cat > conftest.$ac_ext <<EOF 1722 cat > conftest.$ac_ext <<EOF
1724 #line 1725 "configure" 1723 #line 1724 "configure"
1725 #include "confdefs.h" 1724 #include "confdefs.h"
1726 main(){return(0);} 1725 main(){return(0);}
1727 EOF 1726 EOF
1728 if { (eval echo configure:1729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1727 if { (eval echo configure:1728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1729 ac_cv_prog_cc_works=yes 1728 ac_cv_prog_cc_works=yes
1730 # If we can't run a trivial program, we are probably using a cross compiler. 1729 # If we can't run a trivial program, we are probably using a cross compiler.
1731 if (./conftest; exit) 2>/dev/null; then 1730 if (./conftest; exit) 2>/dev/null; then
1732 ac_cv_prog_cc_cross=no 1731 ac_cv_prog_cc_cross=no
1733 else 1732 else
1743 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1744 if test $ac_cv_prog_cc_works = no; then 1743 if test $ac_cv_prog_cc_works = no; then
1745 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1746 fi 1745 fi
1747 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1747 echo "configure:1748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1749 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1750 cross_compiling=$ac_cv_prog_cc_cross 1749 cross_compiling=$ac_cv_prog_cc_cross
1751 1750
1752 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1753 echo "configure:1754: checking whether we are using GNU C" >&5 1752 echo "configure:1753: checking whether we are using GNU C" >&5
1754 1753
1755 cat > conftest.c <<EOF 1754 cat > conftest.c <<EOF
1756 #ifdef __GNUC__ 1755 #ifdef __GNUC__
1757 yes; 1756 yes;
1758 #endif 1757 #endif
1759 EOF 1758 EOF
1760 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1759 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1761 ac_cv_prog_gcc=yes 1760 ac_cv_prog_gcc=yes
1762 else 1761 else
1763 ac_cv_prog_gcc=no 1762 ac_cv_prog_gcc=no
1764 fi 1763 fi
1765 1764
1769 GCC=yes 1768 GCC=yes
1770 ac_test_CFLAGS="${CFLAGS+set}" 1769 ac_test_CFLAGS="${CFLAGS+set}"
1771 ac_save_CFLAGS="$CFLAGS" 1770 ac_save_CFLAGS="$CFLAGS"
1772 CFLAGS= 1771 CFLAGS=
1773 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1772 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1774 echo "configure:1775: checking whether ${CC-cc} accepts -g" >&5 1773 echo "configure:1774: checking whether ${CC-cc} accepts -g" >&5
1775 1774
1776 echo 'void f(){}' > conftest.c 1775 echo 'void f(){}' > conftest.c
1777 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1776 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1778 ac_cv_prog_cc_g=yes 1777 ac_cv_prog_cc_g=yes
1779 else 1778 else
1798 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then 1797 elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then
1799 CC=gcc 1798 CC=gcc
1800 # Extract the first word of "gcc", so it can be a program name with args. 1799 # Extract the first word of "gcc", so it can be a program name with args.
1801 set dummy gcc; ac_word=$2 1800 set dummy gcc; ac_word=$2
1802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1803 echo "configure:1804: checking for $ac_word" >&5 1802 echo "configure:1803: checking for $ac_word" >&5
1804 1803
1805 if test -n "$CC"; then 1804 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test. 1805 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 else 1806 else
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1807 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1824 1823
1825 if test -z "$CC"; then 1824 if test -z "$CC"; then
1826 # Extract the first word of "cc", so it can be a program name with args. 1825 # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2 1826 set dummy cc; ac_word=$2
1828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1827 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1829 echo "configure:1830: checking for $ac_word" >&5 1828 echo "configure:1829: checking for $ac_word" >&5
1830 1829
1831 if test -n "$CC"; then 1830 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test. 1831 ac_cv_prog_CC="$CC" # Let the user override the test.
1833 else 1832 else
1834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 1833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1869 1868
1870 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 1869 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1871 fi 1870 fi
1872 1871
1873 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1872 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1874 echo "configure:1875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1873 echo "configure:1874: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1875 1874
1876 ac_ext=c 1875 ac_ext=c
1877 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' 1876 xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS'
1878 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' 1877 xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run'
1879 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' 1878 xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard'
1881 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' 1880 ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5'
1882 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 1881 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
1883 cross_compiling=no 1882 cross_compiling=no
1884 1883
1885 cat > conftest.$ac_ext <<EOF 1884 cat > conftest.$ac_ext <<EOF
1886 #line 1887 "configure" 1885 #line 1886 "configure"
1887 #include "confdefs.h" 1886 #include "confdefs.h"
1888 main(){return(0);} 1887 main(){return(0);}
1889 EOF 1888 EOF
1890 if { (eval echo configure:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1889 if { (eval echo configure:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1891 ac_cv_prog_cc_works=yes 1890 ac_cv_prog_cc_works=yes
1892 # If we can't run a trivial program, we are probably using a cross compiler. 1891 # If we can't run a trivial program, we are probably using a cross compiler.
1893 if (./conftest; exit) 2>/dev/null; then 1892 if (./conftest; exit) 2>/dev/null; then
1894 ac_cv_prog_cc_cross=no 1893 ac_cv_prog_cc_cross=no
1895 else 1894 else
1905 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1904 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1906 if test $ac_cv_prog_cc_works = no; then 1905 if test $ac_cv_prog_cc_works = no; then
1907 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1906 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1908 fi 1907 fi
1909 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1908 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1909 echo "configure:1910: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1911 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1910 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1912 cross_compiling=$ac_cv_prog_cc_cross 1911 cross_compiling=$ac_cv_prog_cc_cross
1913 1912
1914 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1913 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1915 echo "configure:1916: checking whether we are using GNU C" >&5 1914 echo "configure:1915: checking whether we are using GNU C" >&5
1916 1915
1917 cat > conftest.c <<EOF 1916 cat > conftest.c <<EOF
1918 #ifdef __GNUC__ 1917 #ifdef __GNUC__
1919 yes; 1918 yes;
1920 #endif 1919 #endif
1921 EOF 1920 EOF
1922 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1921 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1923 ac_cv_prog_gcc=yes 1922 ac_cv_prog_gcc=yes
1924 else 1923 else
1925 ac_cv_prog_gcc=no 1924 ac_cv_prog_gcc=no
1926 fi 1925 fi
1927 1926
1931 GCC=yes 1930 GCC=yes
1932 ac_test_CFLAGS="${CFLAGS+set}" 1931 ac_test_CFLAGS="${CFLAGS+set}"
1933 ac_save_CFLAGS="$CFLAGS" 1932 ac_save_CFLAGS="$CFLAGS"
1934 CFLAGS= 1933 CFLAGS=
1935 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1934 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1936 echo "configure:1937: checking whether ${CC-cc} accepts -g" >&5 1935 echo "configure:1936: checking whether ${CC-cc} accepts -g" >&5
1937 1936
1938 echo 'void f(){}' > conftest.c 1937 echo 'void f(){}' > conftest.c
1939 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1938 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1940 ac_cv_prog_cc_g=yes 1939 ac_cv_prog_cc_g=yes
1941 else 1940 else
1964 test -n "$CPP" -a -d "$CPP" && CPP= 1963 test -n "$CPP" -a -d "$CPP" && CPP=
1965 1964
1966 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" 1965 test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP"
1967 1966
1968 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1967 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1969 echo "configure:1970: checking how to run the C preprocessor" >&5 1968 echo "configure:1969: checking how to run the C preprocessor" >&5
1970 # On Suns, sometimes $CPP names a directory. 1969 # On Suns, sometimes $CPP names a directory.
1971 if test -n "$CPP" && test -d "$CPP"; then 1970 if test -n "$CPP" && test -d "$CPP"; then
1972 CPP= 1971 CPP=
1973 fi 1972 fi
1974 if test -z "$CPP"; then 1973 if test -z "$CPP"; then
1977 # substituted into the Makefile and "${CC-cc}" will confuse make. 1976 # substituted into the Makefile and "${CC-cc}" will confuse make.
1978 CPP="${CC-cc} -E" 1977 CPP="${CC-cc} -E"
1979 # On the NeXT, cc -E runs the code through the compiler's parser, 1978 # On the NeXT, cc -E runs the code through the compiler's parser,
1980 # not just through cpp. 1979 # not just through cpp.
1981 cat > conftest.$ac_ext <<EOF 1980 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure" 1981 #line 1982 "configure"
1983 #include "confdefs.h" 1982 #include "confdefs.h"
1984 #include <assert.h> 1983 #include <assert.h>
1985 Syntax Error 1984 Syntax Error
1986 EOF 1985 EOF
1987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1988 { (eval echo configure:1989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1987 { (eval echo configure:1988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1989 ac_err=`grep -v '^ *+' conftest.out` 1988 ac_err=`grep -v '^ *+' conftest.out`
1990 if test -z "$ac_err"; then 1989 if test -z "$ac_err"; then
1991 : 1990 :
1992 else 1991 else
1993 echo "$ac_err" >&5 1992 echo "$ac_err" >&5
1994 echo "configure: failed program was:" >&5 1993 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5 1994 cat conftest.$ac_ext >&5
1996 rm -rf conftest* 1995 rm -rf conftest*
1997 CPP="${CC-cc} -E -traditional-cpp" 1996 CPP="${CC-cc} -E -traditional-cpp"
1998 cat > conftest.$ac_ext <<EOF 1997 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure" 1998 #line 1999 "configure"
2000 #include "confdefs.h" 1999 #include "confdefs.h"
2001 #include <assert.h> 2000 #include <assert.h>
2002 Syntax Error 2001 Syntax Error
2003 EOF 2002 EOF
2004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2005 { (eval echo configure:2006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2004 { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2006 ac_err=`grep -v '^ *+' conftest.out` 2005 ac_err=`grep -v '^ *+' conftest.out`
2007 if test -z "$ac_err"; then 2006 if test -z "$ac_err"; then
2008 : 2007 :
2009 else 2008 else
2010 echo "$ac_err" >&5 2009 echo "$ac_err" >&5
2023 fi 2022 fi
2024 echo "$ac_t""$CPP" 1>&6 2023 echo "$ac_t""$CPP" 1>&6
2025 2024
2026 2025
2027 echo $ac_n "checking for AIX""... $ac_c" 1>&6 2026 echo $ac_n "checking for AIX""... $ac_c" 1>&6
2028 echo "configure:2029: checking for AIX" >&5 2027 echo "configure:2028: checking for AIX" >&5
2029 cat > conftest.$ac_ext <<EOF 2028 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure" 2029 #line 2030 "configure"
2031 #include "confdefs.h" 2030 #include "confdefs.h"
2032 #ifdef _AIX 2031 #ifdef _AIX
2033 yes 2032 yes
2034 #endif 2033 #endif
2035 2034
2052 rm -f conftest* 2051 rm -f conftest*
2053 2052
2054 2053
2055 2054
2056 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6 2055 echo $ac_n "checking whether we are using SunPro C""... $ac_c" 1>&6
2057 echo "configure:2058: checking whether we are using SunPro C" >&5 2056 echo "configure:2057: checking whether we are using SunPro C" >&5
2058 cat > conftest.$ac_ext <<EOF 2057 cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure" 2058 #line 2059 "configure"
2060 #include "confdefs.h" 2059 #include "confdefs.h"
2061 2060
2062 int main() { 2061 int main() {
2063 #ifndef __SUNPRO_C 2062 #ifndef __SUNPRO_C
2064 #error Not a SunPro compiler :-( 2063 #error Not a SunPro compiler :-(
2065 ******* ======= ******** &&&&&&&& 2064 ******* ======= ******** &&&&&&&&
2066 #endif 2065 #endif
2067 2066
2068 ; return 0; } 2067 ; return 0; }
2069 EOF 2068 EOF
2070 if { (eval echo configure:2071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2069 if { (eval echo configure:2070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2071 rm -rf conftest* 2070 rm -rf conftest*
2072 __sunpro_c=yes 2071 __sunpro_c=yes
2073 else 2072 else
2074 echo "configure: failed program was:" >&5 2073 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5 2074 cat conftest.$ac_ext >&5
2352 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then 2351 test -n "$unexec" && extra_objs="$extra_objs $unexec" && if test "$extra_verbose" = "yes"; then
2353 echo " xemacs will be linked with \"$unexec\"" 2352 echo " xemacs will be linked with \"$unexec\""
2354 fi 2353 fi
2355 2354
2356 echo $ac_n "checking for dynodump""... $ac_c" 1>&6 2355 echo $ac_n "checking for dynodump""... $ac_c" 1>&6
2357 echo "configure:2358: checking for dynodump" >&5 2356 echo "configure:2357: checking for dynodump" >&5
2358 if test "$unexec" != "unexsol2.o"; then 2357 if test "$unexec" != "unexsol2.o"; then
2359 echo "$ac_t""no" 1>&6 2358 echo "$ac_t""no" 1>&6
2360 else 2359 else
2361 echo "$ac_t""yes" 1>&6 2360 echo "$ac_t""yes" 1>&6
2362 { test "$extra_verbose" = "yes" && cat << \EOF 2361 { test "$extra_verbose" = "yes" && cat << \EOF
2423 esac 2422 esac
2424 fi 2423 fi
2425 2424
2426 if test "$add_runtime_path" = "yes"; then 2425 if test "$add_runtime_path" = "yes"; then
2427 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 2426 echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6
2428 echo "configure:2429: checking "for runtime libraries flag"" >&5 2427 echo "configure:2428: checking "for runtime libraries flag"" >&5
2429 dash_r="" 2428 dash_r=""
2430 for try_dash_r in "-R" "-R " "-rpath "; do 2429 for try_dash_r in "-R" "-R " "-rpath "; do
2431 xe_check_libs="${try_dash_r}/no/such/file-or-directory" 2430 xe_check_libs="${try_dash_r}/no/such/file-or-directory"
2432 cat > conftest.$ac_ext <<EOF 2431 cat > conftest.$ac_ext <<EOF
2433 #line 2434 "configure" 2432 #line 2433 "configure"
2434 #include "confdefs.h" 2433 #include "confdefs.h"
2435 2434
2436 int main() { 2435 int main() {
2437 2436
2438 ; return 0; } 2437 ; return 0; }
2439 EOF 2438 EOF
2440 if { (eval echo configure:2441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 2439 if { (eval echo configure:2440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2441 rm -rf conftest* 2440 rm -rf conftest*
2442 dash_r="$try_dash_r" 2441 dash_r="$try_dash_r"
2443 else 2442 else
2444 echo "configure: failed program was:" >&5 2443 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5 2444 cat conftest.$ac_ext >&5
2519 GNU_MALLOC=yes 2518 GNU_MALLOC=yes
2520 if test "$system_malloc" = "yes" ; then 2519 if test "$system_malloc" = "yes" ; then
2521 GNU_MALLOC=no 2520 GNU_MALLOC=no
2522 GNU_MALLOC_reason=" 2521 GNU_MALLOC_reason="
2523 (The GNU allocators don't work with this system configuration)." 2522 (The GNU allocators don't work with this system configuration)."
2524 elif test "$use_system_malloc" = "yes" ; then 2523 elif test "$with_system_malloc" = "yes" ; then
2525 GNU_MALLOC=no 2524 GNU_MALLOC=no
2526 GNU_MALLOC_reason=" 2525 GNU_MALLOC_reason="
2527 (User chose not to use GNU allocators)." 2526 (User chose not to use GNU allocators)."
2528 elif test "$use_debug_malloc" = "yes" ; then 2527 elif test "$with_debug_malloc" = "yes" ; then
2529 GNU_MALLOC=no 2528 GNU_MALLOC=no
2530 GNU_MALLOC_reason=" 2529 GNU_MALLOC_reason="
2531 (User chose to use Debugging Malloc)." 2530 (User chose to use Debugging Malloc)."
2532 fi 2531 fi
2533 2532
2534 2533
2535 # Extract the first word of "ranlib", so it can be a program name with args. 2534 # Extract the first word of "ranlib", so it can be a program name with args.
2536 set dummy ranlib; ac_word=$2 2535 set dummy ranlib; ac_word=$2
2537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_word" >&5 2537 echo "configure:2538: checking for $ac_word" >&5
2539 2538
2540 if test -n "$RANLIB"; then 2539 if test -n "$RANLIB"; then
2541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2542 else 2541 else
2543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2586 # AIX /bin/install 2585 # AIX /bin/install
2587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2589 # ./install, which can be erroneously created by make from ./install.sh. 2588 # ./install, which can be erroneously created by make from ./install.sh.
2590 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2589 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2591 echo "configure:2592: checking for a BSD compatible install" >&5 2590 echo "configure:2591: checking for a BSD compatible install" >&5
2592 if test -z "$INSTALL"; then 2591 if test -z "$INSTALL"; then
2593 2592
2594 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" 2593 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
2595 for ac_dir in $PATH; do 2594 for ac_dir in $PATH; do
2596 # Account for people who put trailing slashes in PATH elements. 2595 # Account for people who put trailing slashes in PATH elements.
2637 for ac_prog in 'bison -y' byacc 2636 for ac_prog in 'bison -y' byacc
2638 do 2637 do
2639 # Extract the first word of "$ac_prog", so it can be a program name with args. 2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2640 set dummy $ac_prog; ac_word=$2 2639 set dummy $ac_prog; ac_word=$2
2641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2642 echo "configure:2643: checking for $ac_word" >&5 2641 echo "configure:2642: checking for $ac_word" >&5
2643 2642
2644 if test -n "$YACC"; then 2643 if test -n "$YACC"; then
2645 ac_cv_prog_YACC="$YACC" # Let the user override the test. 2644 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2646 else 2645 else
2647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2668 2667
2669 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h 2668 for ac_hdr in mach/mach.h sys/stropts.h sys/timeb.h sys/time.h unistd.h
2670 do 2669 do
2671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_hdr" >&5 2672 echo "configure:2673: checking for $ac_hdr" >&5
2674 2673
2675 cat > conftest.$ac_ext <<EOF 2674 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure" 2675 #line 2676 "configure"
2677 #include "confdefs.h" 2676 #include "confdefs.h"
2678 #include <$ac_hdr> 2677 #include <$ac_hdr>
2679 EOF 2678 EOF
2680 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2681 { (eval echo configure:2682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2680 { (eval echo configure:2681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2682 ac_err=`grep -v '^ *+' conftest.out` 2681 ac_err=`grep -v '^ *+' conftest.out`
2683 if test -z "$ac_err"; then 2682 if test -z "$ac_err"; then
2684 rm -rf conftest* 2683 rm -rf conftest*
2685 eval "ac_cv_header_$ac_safe=yes" 2684 eval "ac_cv_header_$ac_safe=yes"
2686 else 2685 else
2709 2708
2710 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h 2709 for ac_hdr in utime.h locale.h libgen.h fcntl.h ulimit.h
2711 do 2710 do
2712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_hdr" >&5 2713 echo "configure:2714: checking for $ac_hdr" >&5
2715 2714
2716 cat > conftest.$ac_ext <<EOF 2715 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure" 2716 #line 2717 "configure"
2718 #include "confdefs.h" 2717 #include "confdefs.h"
2719 #include <$ac_hdr> 2718 #include <$ac_hdr>
2720 EOF 2719 EOF
2721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2721 { (eval echo configure:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err=`grep -v '^ *+' conftest.out` 2722 ac_err=`grep -v '^ *+' conftest.out`
2724 if test -z "$ac_err"; then 2723 if test -z "$ac_err"; then
2725 rm -rf conftest* 2724 rm -rf conftest*
2726 eval "ac_cv_header_$ac_safe=yes" 2725 eval "ac_cv_header_$ac_safe=yes"
2727 else 2726 else
2750 2749
2751 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h 2750 for ac_hdr in linux/version.h kstat.h sys/pstat.h inttypes.h limits.h
2752 do 2751 do
2753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2755 echo "configure:2756: checking for $ac_hdr" >&5 2754 echo "configure:2755: checking for $ac_hdr" >&5
2756 2755
2757 cat > conftest.$ac_ext <<EOF 2756 cat > conftest.$ac_ext <<EOF
2758 #line 2759 "configure" 2757 #line 2758 "configure"
2759 #include "confdefs.h" 2758 #include "confdefs.h"
2760 #include <$ac_hdr> 2759 #include <$ac_hdr>
2761 EOF 2760 EOF
2762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2763 { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2762 { (eval echo configure:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2764 ac_err=`grep -v '^ *+' conftest.out` 2763 ac_err=`grep -v '^ *+' conftest.out`
2765 if test -z "$ac_err"; then 2764 if test -z "$ac_err"; then
2766 rm -rf conftest* 2765 rm -rf conftest*
2767 eval "ac_cv_header_$ac_safe=yes" 2766 eval "ac_cv_header_$ac_safe=yes"
2768 else 2767 else
2788 echo "$ac_t""no" 1>&6 2787 echo "$ac_t""no" 1>&6
2789 fi 2788 fi
2790 done 2789 done
2791 2790
2792 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2791 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2793 echo "configure:2794: checking for sys/wait.h that is POSIX.1 compatible" >&5 2792 echo "configure:2793: checking for sys/wait.h that is POSIX.1 compatible" >&5
2794 2793
2795 cat > conftest.$ac_ext <<EOF 2794 cat > conftest.$ac_ext <<EOF
2796 #line 2797 "configure" 2795 #line 2796 "configure"
2797 #include "confdefs.h" 2796 #include "confdefs.h"
2798 #include <sys/types.h> 2797 #include <sys/types.h>
2799 #include <sys/wait.h> 2798 #include <sys/wait.h>
2800 #ifndef WEXITSTATUS 2799 #ifndef WEXITSTATUS
2801 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 2800 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2807 int s; 2806 int s;
2808 wait (&s); 2807 wait (&s);
2809 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 2808 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2810 ; return 0; } 2809 ; return 0; }
2811 EOF 2810 EOF
2812 if { (eval echo configure:2813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2811 if { (eval echo configure:2812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2813 rm -rf conftest* 2812 rm -rf conftest*
2814 ac_cv_header_sys_wait_h=yes 2813 ac_cv_header_sys_wait_h=yes
2815 else 2814 else
2816 echo "configure: failed program was:" >&5 2815 echo "configure: failed program was:" >&5
2817 cat conftest.$ac_ext >&5 2816 cat conftest.$ac_ext >&5
2831 } 2830 }
2832 2831
2833 fi 2832 fi
2834 2833
2835 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2834 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2836 echo "configure:2837: checking for ANSI C header files" >&5 2835 echo "configure:2836: checking for ANSI C header files" >&5
2837 2836
2838 cat > conftest.$ac_ext <<EOF 2837 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure" 2838 #line 2839 "configure"
2840 #include "confdefs.h" 2839 #include "confdefs.h"
2841 #include <stdlib.h> 2840 #include <stdlib.h>
2842 #include <stdarg.h> 2841 #include <stdarg.h>
2843 #include <string.h> 2842 #include <string.h>
2844 #include <float.h> 2843 #include <float.h>
2845 EOF 2844 EOF
2846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2847 { (eval echo configure:2848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2846 { (eval echo configure:2847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2848 ac_err=`grep -v '^ *+' conftest.out` 2847 ac_err=`grep -v '^ *+' conftest.out`
2849 if test -z "$ac_err"; then 2848 if test -z "$ac_err"; then
2850 rm -rf conftest* 2849 rm -rf conftest*
2851 ac_cv_header_stdc=yes 2850 ac_cv_header_stdc=yes
2852 else 2851 else
2859 rm -f conftest* 2858 rm -f conftest*
2860 2859
2861 if test $ac_cv_header_stdc = yes; then 2860 if test $ac_cv_header_stdc = yes; then
2862 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2863 cat > conftest.$ac_ext <<EOF 2862 cat > conftest.$ac_ext <<EOF
2864 #line 2865 "configure" 2863 #line 2864 "configure"
2865 #include "confdefs.h" 2864 #include "confdefs.h"
2866 #include <string.h> 2865 #include <string.h>
2867 EOF 2866 EOF
2868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2869 egrep "memchr" >/dev/null 2>&1; then 2868 egrep "memchr" >/dev/null 2>&1; then
2877 fi 2876 fi
2878 2877
2879 if test $ac_cv_header_stdc = yes; then 2878 if test $ac_cv_header_stdc = yes; then
2880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2881 cat > conftest.$ac_ext <<EOF 2880 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure" 2881 #line 2882 "configure"
2883 #include "confdefs.h" 2882 #include "confdefs.h"
2884 #include <stdlib.h> 2883 #include <stdlib.h>
2885 EOF 2884 EOF
2886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2887 egrep "free" >/dev/null 2>&1; then 2886 egrep "free" >/dev/null 2>&1; then
2895 fi 2894 fi
2896 2895
2897 if test $ac_cv_header_stdc = yes; then 2896 if test $ac_cv_header_stdc = yes; then
2898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2899 cat > conftest.$ac_ext <<EOF 2898 cat > conftest.$ac_ext <<EOF
2900 #line 2901 "configure" 2899 #line 2900 "configure"
2901 #include "confdefs.h" 2900 #include "confdefs.h"
2902 #include <ctype.h> 2901 #include <ctype.h>
2903 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2902 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2904 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2903 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2904 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2906 int main () { int i; for (i = 0; i < 256; i++) 2905 int main () { int i; for (i = 0; i < 256; i++)
2907 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2906 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2908 exit (0); } 2907 exit (0); }
2909 2908
2910 EOF 2909 EOF
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 2910 if { (eval echo configure:2911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
2912 then 2911 then
2913 : 2912 :
2914 else 2913 else
2915 echo "configure: failed program was:" >&5 2914 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5 2915 cat conftest.$ac_ext >&5
2931 } 2930 }
2932 2931
2933 fi 2932 fi
2934 2933
2935 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2934 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2936 echo "configure:2937: checking whether time.h and sys/time.h may both be included" >&5 2935 echo "configure:2936: checking whether time.h and sys/time.h may both be included" >&5
2937 2936
2938 cat > conftest.$ac_ext <<EOF 2937 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure" 2938 #line 2939 "configure"
2940 #include "confdefs.h" 2939 #include "confdefs.h"
2941 #include <sys/types.h> 2940 #include <sys/types.h>
2942 #include <sys/time.h> 2941 #include <sys/time.h>
2943 #include <time.h> 2942 #include <time.h>
2944 int main() { 2943 int main() {
2945 struct tm *tp; 2944 struct tm *tp;
2946 ; return 0; } 2945 ; return 0; }
2947 EOF 2946 EOF
2948 if { (eval echo configure:2949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2947 if { (eval echo configure:2948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2949 rm -rf conftest* 2948 rm -rf conftest*
2950 ac_cv_header_time=yes 2949 ac_cv_header_time=yes
2951 else 2950 else
2952 echo "configure: failed program was:" >&5 2951 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5 2952 cat conftest.$ac_ext >&5
2967 } 2966 }
2968 2967
2969 fi 2968 fi
2970 2969
2971 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 2970 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2972 echo "configure:2973: checking for sys_siglist declaration in signal.h or unistd.h" >&5 2971 echo "configure:2972: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2973 2972
2974 cat > conftest.$ac_ext <<EOF 2973 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure" 2974 #line 2975 "configure"
2976 #include "confdefs.h" 2975 #include "confdefs.h"
2977 #include <sys/types.h> 2976 #include <sys/types.h>
2978 #include <signal.h> 2977 #include <signal.h>
2979 /* NetBSD declares sys_siglist in unistd.h. */ 2978 /* NetBSD declares sys_siglist in unistd.h. */
2980 #ifdef HAVE_UNISTD_H 2979 #ifdef HAVE_UNISTD_H
2982 #endif 2981 #endif
2983 int main() { 2982 int main() {
2984 char *msg = *(sys_siglist + 1); 2983 char *msg = *(sys_siglist + 1);
2985 ; return 0; } 2984 ; return 0; }
2986 EOF 2985 EOF
2987 if { (eval echo configure:2988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2986 if { (eval echo configure:2987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2988 rm -rf conftest* 2987 rm -rf conftest*
2989 ac_cv_decl_sys_siglist=yes 2988 ac_cv_decl_sys_siglist=yes
2990 else 2989 else
2991 echo "configure: failed program was:" >&5 2990 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5 2991 cat conftest.$ac_ext >&5
3007 3006
3008 fi 3007 fi
3009 3008
3010 3009
3011 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6 3010 echo $ac_n "checking for struct utimbuf""... $ac_c" 1>&6
3012 echo "configure:3013: checking for struct utimbuf" >&5 3011 echo "configure:3012: checking for struct utimbuf" >&5
3013 cat > conftest.$ac_ext <<EOF 3012 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure" 3013 #line 3014 "configure"
3015 #include "confdefs.h" 3014 #include "confdefs.h"
3016 #ifdef TIME_WITH_SYS_TIME 3015 #ifdef TIME_WITH_SYS_TIME
3017 #include <sys/time.h> 3016 #include <sys/time.h>
3018 #include <time.h> 3017 #include <time.h>
3019 #else 3018 #else
3028 #endif 3027 #endif
3029 int main() { 3028 int main() {
3030 static struct utimbuf x; x.actime = x.modtime; 3029 static struct utimbuf x; x.actime = x.modtime;
3031 ; return 0; } 3030 ; return 0; }
3032 EOF 3031 EOF
3033 if { (eval echo configure:3034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3032 if { (eval echo configure:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3034 rm -rf conftest* 3033 rm -rf conftest*
3035 echo "$ac_t""yes" 1>&6 3034 echo "$ac_t""yes" 1>&6
3036 { test "$extra_verbose" = "yes" && cat << \EOF 3035 { test "$extra_verbose" = "yes" && cat << \EOF
3037 Defining HAVE_STRUCT_UTIMBUF 3036 Defining HAVE_STRUCT_UTIMBUF
3038 EOF 3037 EOF
3048 echo "$ac_t""no" 1>&6 3047 echo "$ac_t""no" 1>&6
3049 fi 3048 fi
3050 rm -f conftest* 3049 rm -f conftest*
3051 3050
3052 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 3051 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3053 echo "configure:3054: checking return type of signal handlers" >&5 3052 echo "configure:3053: checking return type of signal handlers" >&5
3054 3053
3055 cat > conftest.$ac_ext <<EOF 3054 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure" 3055 #line 3056 "configure"
3057 #include "confdefs.h" 3056 #include "confdefs.h"
3058 #include <sys/types.h> 3057 #include <sys/types.h>
3059 #include <signal.h> 3058 #include <signal.h>
3060 #ifdef signal 3059 #ifdef signal
3061 #undef signal 3060 #undef signal
3068 3067
3069 int main() { 3068 int main() {
3070 int i; 3069 int i;
3071 ; return 0; } 3070 ; return 0; }
3072 EOF 3071 EOF
3073 if { (eval echo configure:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3072 if { (eval echo configure:3073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3074 rm -rf conftest* 3073 rm -rf conftest*
3075 ac_cv_type_signal=void 3074 ac_cv_type_signal=void
3076 else 3075 else
3077 echo "configure: failed program was:" >&5 3076 echo "configure: failed program was:" >&5
3078 cat conftest.$ac_ext >&5 3077 cat conftest.$ac_ext >&5
3090 EOF 3089 EOF
3091 } 3090 }
3092 3091
3093 3092
3094 echo $ac_n "checking for size_t""... $ac_c" 1>&6 3093 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3095 echo "configure:3096: checking for size_t" >&5 3094 echo "configure:3095: checking for size_t" >&5
3096 3095
3097 cat > conftest.$ac_ext <<EOF 3096 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure" 3097 #line 3098 "configure"
3099 #include "confdefs.h" 3098 #include "confdefs.h"
3100 #include <sys/types.h> 3099 #include <sys/types.h>
3101 #if STDC_HEADERS 3100 #if STDC_HEADERS
3102 #include <stdlib.h> 3101 #include <stdlib.h>
3103 #include <stddef.h> 3102 #include <stddef.h>
3124 } 3123 }
3125 3124
3126 fi 3125 fi
3127 3126
3128 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3127 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3129 echo "configure:3130: checking for pid_t" >&5 3128 echo "configure:3129: checking for pid_t" >&5
3130 3129
3131 cat > conftest.$ac_ext <<EOF 3130 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure" 3131 #line 3132 "configure"
3133 #include "confdefs.h" 3132 #include "confdefs.h"
3134 #include <sys/types.h> 3133 #include <sys/types.h>
3135 #if STDC_HEADERS 3134 #if STDC_HEADERS
3136 #include <stdlib.h> 3135 #include <stdlib.h>
3137 #include <stddef.h> 3136 #include <stddef.h>
3158 } 3157 }
3159 3158
3160 fi 3159 fi
3161 3160
3162 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3161 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3163 echo "configure:3164: checking for uid_t in sys/types.h" >&5 3162 echo "configure:3163: checking for uid_t in sys/types.h" >&5
3164 3163
3165 cat > conftest.$ac_ext <<EOF 3164 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure" 3165 #line 3166 "configure"
3167 #include "confdefs.h" 3166 #include "confdefs.h"
3168 #include <sys/types.h> 3167 #include <sys/types.h>
3169 EOF 3168 EOF
3170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3171 egrep "uid_t" >/dev/null 2>&1; then 3170 egrep "uid_t" >/dev/null 2>&1; then
3197 } 3196 }
3198 3197
3199 fi 3198 fi
3200 3199
3201 echo $ac_n "checking for mode_t""... $ac_c" 1>&6 3200 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3202 echo "configure:3203: checking for mode_t" >&5 3201 echo "configure:3202: checking for mode_t" >&5
3203 3202
3204 cat > conftest.$ac_ext <<EOF 3203 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure" 3204 #line 3205 "configure"
3206 #include "confdefs.h" 3205 #include "confdefs.h"
3207 #include <sys/types.h> 3206 #include <sys/types.h>
3208 #if STDC_HEADERS 3207 #if STDC_HEADERS
3209 #include <stdlib.h> 3208 #include <stdlib.h>
3210 #include <stddef.h> 3209 #include <stddef.h>
3231 } 3230 }
3232 3231
3233 fi 3232 fi
3234 3233
3235 echo $ac_n "checking for off_t""... $ac_c" 1>&6 3234 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3236 echo "configure:3237: checking for off_t" >&5 3235 echo "configure:3236: checking for off_t" >&5
3237 3236
3238 cat > conftest.$ac_ext <<EOF 3237 cat > conftest.$ac_ext <<EOF
3239 #line 3240 "configure" 3238 #line 3239 "configure"
3240 #include "confdefs.h" 3239 #include "confdefs.h"
3241 #include <sys/types.h> 3240 #include <sys/types.h>
3242 #if STDC_HEADERS 3241 #if STDC_HEADERS
3243 #include <stdlib.h> 3242 #include <stdlib.h>
3244 #include <stddef.h> 3243 #include <stddef.h>
3266 3265
3267 fi 3266 fi
3268 3267
3269 3268
3270 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 3269 echo $ac_n "checking for struct timeval""... $ac_c" 1>&6
3271 echo "configure:3272: checking for struct timeval" >&5 3270 echo "configure:3271: checking for struct timeval" >&5
3272 cat > conftest.$ac_ext <<EOF 3271 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure" 3272 #line 3273 "configure"
3274 #include "confdefs.h" 3273 #include "confdefs.h"
3275 #ifdef TIME_WITH_SYS_TIME 3274 #ifdef TIME_WITH_SYS_TIME
3276 #include <sys/time.h> 3275 #include <sys/time.h>
3277 #include <time.h> 3276 #include <time.h>
3278 #else 3277 #else
3284 #endif 3283 #endif
3285 int main() { 3284 int main() {
3286 static struct timeval x; x.tv_sec = x.tv_usec; 3285 static struct timeval x; x.tv_sec = x.tv_usec;
3287 ; return 0; } 3286 ; return 0; }
3288 EOF 3287 EOF
3289 if { (eval echo configure:3290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3288 if { (eval echo configure:3289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3290 rm -rf conftest* 3289 rm -rf conftest*
3291 echo "$ac_t""yes" 1>&6 3290 echo "$ac_t""yes" 1>&6
3292 HAVE_TIMEVAL=yes 3291 HAVE_TIMEVAL=yes
3293 { test "$extra_verbose" = "yes" && cat << \EOF 3292 { test "$extra_verbose" = "yes" && cat << \EOF
3294 Defining HAVE_TIMEVAL 3293 Defining HAVE_TIMEVAL
3306 HAVE_TIMEVAL=no 3305 HAVE_TIMEVAL=no
3307 fi 3306 fi
3308 rm -f conftest* 3307 rm -f conftest*
3309 3308
3310 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 3309 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3311 echo "configure:3312: checking whether struct tm is in sys/time.h or time.h" >&5 3310 echo "configure:3311: checking whether struct tm is in sys/time.h or time.h" >&5
3312 3311
3313 cat > conftest.$ac_ext <<EOF 3312 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure" 3313 #line 3314 "configure"
3315 #include "confdefs.h" 3314 #include "confdefs.h"
3316 #include <sys/types.h> 3315 #include <sys/types.h>
3317 #include <time.h> 3316 #include <time.h>
3318 int main() { 3317 int main() {
3319 struct tm *tp; tp->tm_sec; 3318 struct tm *tp; tp->tm_sec;
3320 ; return 0; } 3319 ; return 0; }
3321 EOF 3320 EOF
3322 if { (eval echo configure:3323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3321 if { (eval echo configure:3322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3323 rm -rf conftest* 3322 rm -rf conftest*
3324 ac_cv_struct_tm=time.h 3323 ac_cv_struct_tm=time.h
3325 else 3324 else
3326 echo "configure: failed program was:" >&5 3325 echo "configure: failed program was:" >&5
3327 cat conftest.$ac_ext >&5 3326 cat conftest.$ac_ext >&5
3341 } 3340 }
3342 3341
3343 fi 3342 fi
3344 3343
3345 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 3344 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3346 echo "configure:3347: checking for tm_zone in struct tm" >&5 3345 echo "configure:3346: checking for tm_zone in struct tm" >&5
3347 3346
3348 cat > conftest.$ac_ext <<EOF 3347 cat > conftest.$ac_ext <<EOF
3349 #line 3350 "configure" 3348 #line 3349 "configure"
3350 #include "confdefs.h" 3349 #include "confdefs.h"
3351 #include <sys/types.h> 3350 #include <sys/types.h>
3352 #include <$ac_cv_struct_tm> 3351 #include <$ac_cv_struct_tm>
3353 int main() { 3352 int main() {
3354 struct tm tm; tm.tm_zone; 3353 struct tm tm; tm.tm_zone;
3355 ; return 0; } 3354 ; return 0; }
3356 EOF 3355 EOF
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3356 if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 rm -rf conftest* 3357 rm -rf conftest*
3359 ac_cv_struct_tm_zone=yes 3358 ac_cv_struct_tm_zone=yes
3360 else 3359 else
3361 echo "configure: failed program was:" >&5 3360 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5 3361 cat conftest.$ac_ext >&5
3375 EOF 3374 EOF
3376 } 3375 }
3377 3376
3378 else 3377 else
3379 echo $ac_n "checking for tzname""... $ac_c" 1>&6 3378 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3380 echo "configure:3381: checking for tzname" >&5 3379 echo "configure:3380: checking for tzname" >&5
3381 3380
3382 cat > conftest.$ac_ext <<EOF 3381 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure" 3382 #line 3383 "configure"
3384 #include "confdefs.h" 3383 #include "confdefs.h"
3385 #include <time.h> 3384 #include <time.h>
3386 #ifndef tzname /* For SGI. */ 3385 #ifndef tzname /* For SGI. */
3387 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ 3386 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3388 #endif 3387 #endif
3389 int main() { 3388 int main() {
3390 atoi(*tzname); 3389 atoi(*tzname);
3391 ; return 0; } 3390 ; return 0; }
3392 EOF 3391 EOF
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3392 if { (eval echo configure:3393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3394 rm -rf conftest* 3393 rm -rf conftest*
3395 ac_cv_var_tzname=yes 3394 ac_cv_var_tzname=yes
3396 else 3395 else
3397 echo "configure: failed program was:" >&5 3396 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5 3397 cat conftest.$ac_ext >&5
3414 fi 3413 fi
3415 fi 3414 fi
3416 3415
3417 3416
3418 echo $ac_n "checking for working const""... $ac_c" 1>&6 3417 echo $ac_n "checking for working const""... $ac_c" 1>&6
3419 echo "configure:3420: checking for working const" >&5 3418 echo "configure:3419: checking for working const" >&5
3420 3419
3421 cat > conftest.$ac_ext <<EOF 3420 cat > conftest.$ac_ext <<EOF
3422 #line 3423 "configure" 3421 #line 3422 "configure"
3423 #include "confdefs.h" 3422 #include "confdefs.h"
3424 3423
3425 int main() { 3424 int main() {
3426 3425
3427 /* Ultrix mips cc rejects this. */ 3426 /* Ultrix mips cc rejects this. */
3466 const int foo = 10; 3465 const int foo = 10;
3467 } 3466 }
3468 3467
3469 ; return 0; } 3468 ; return 0; }
3470 EOF 3469 EOF
3471 if { (eval echo configure:3472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3470 if { (eval echo configure:3471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3472 rm -rf conftest* 3471 rm -rf conftest*
3473 ac_cv_c_const=yes 3472 ac_cv_c_const=yes
3474 else 3473 else
3475 echo "configure: failed program was:" >&5 3474 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5 3475 cat conftest.$ac_ext >&5
3491 3490
3492 fi 3491 fi
3493 3492
3494 3493
3495 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 3494 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3496 echo "configure:3497: checking whether ${MAKE-make} sets \${MAKE}" >&5 3495 echo "configure:3496: checking whether ${MAKE-make} sets \${MAKE}" >&5
3497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 3496 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3498 3497
3499 cat > conftestmake <<\EOF 3498 cat > conftestmake <<\EOF
3500 all: 3499 all:
3501 @echo 'ac_maketemp="${MAKE}"' 3500 @echo 'ac_maketemp="${MAKE}"'
3516 SET_MAKE="MAKE=${MAKE-make}" 3515 SET_MAKE="MAKE=${MAKE-make}"
3517 fi 3516 fi
3518 3517
3519 3518
3520 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3519 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3521 echo "configure:3522: checking whether byte ordering is bigendian" >&5 3520 echo "configure:3521: checking whether byte ordering is bigendian" >&5
3522 3521
3523 ac_cv_c_bigendian=unknown 3522 ac_cv_c_bigendian=unknown
3524 # See if sys/param.h defines the BYTE_ORDER macro. 3523 # See if sys/param.h defines the BYTE_ORDER macro.
3525 cat > conftest.$ac_ext <<EOF 3524 cat > conftest.$ac_ext <<EOF
3526 #line 3527 "configure" 3525 #line 3526 "configure"
3527 #include "confdefs.h" 3526 #include "confdefs.h"
3528 #include <sys/types.h> 3527 #include <sys/types.h>
3529 #include <sys/param.h> 3528 #include <sys/param.h>
3530 int main() { 3529 int main() {
3531 3530
3532 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 3531 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3533 bogus endian macros 3532 bogus endian macros
3534 #endif 3533 #endif
3535 ; return 0; } 3534 ; return 0; }
3536 EOF 3535 EOF
3537 if { (eval echo configure:3538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3536 if { (eval echo configure:3537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3538 rm -rf conftest* 3537 rm -rf conftest*
3539 # It does; now see whether it defined to BIG_ENDIAN or not. 3538 # It does; now see whether it defined to BIG_ENDIAN or not.
3540 cat > conftest.$ac_ext <<EOF 3539 cat > conftest.$ac_ext <<EOF
3541 #line 3542 "configure" 3540 #line 3541 "configure"
3542 #include "confdefs.h" 3541 #include "confdefs.h"
3543 #include <sys/types.h> 3542 #include <sys/types.h>
3544 #include <sys/param.h> 3543 #include <sys/param.h>
3545 int main() { 3544 int main() {
3546 3545
3547 #if BYTE_ORDER != BIG_ENDIAN 3546 #if BYTE_ORDER != BIG_ENDIAN
3548 not big endian 3547 not big endian
3549 #endif 3548 #endif
3550 ; return 0; } 3549 ; return 0; }
3551 EOF 3550 EOF
3552 if { (eval echo configure:3553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3551 if { (eval echo configure:3552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3553 rm -rf conftest* 3552 rm -rf conftest*
3554 ac_cv_c_bigendian=yes 3553 ac_cv_c_bigendian=yes
3555 else 3554 else
3556 echo "configure: failed program was:" >&5 3555 echo "configure: failed program was:" >&5
3557 cat conftest.$ac_ext >&5 3556 cat conftest.$ac_ext >&5
3564 cat conftest.$ac_ext >&5 3563 cat conftest.$ac_ext >&5
3565 fi 3564 fi
3566 rm -f conftest* 3565 rm -f conftest*
3567 if test $ac_cv_c_bigendian = unknown; then 3566 if test $ac_cv_c_bigendian = unknown; then
3568 cat > conftest.$ac_ext <<EOF 3567 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure" 3568 #line 3569 "configure"
3570 #include "confdefs.h" 3569 #include "confdefs.h"
3571 main () { 3570 main () {
3572 /* Are we little or big endian? From Harbison&Steele. */ 3571 /* Are we little or big endian? From Harbison&Steele. */
3573 union 3572 union
3574 { 3573 {
3577 } u; 3576 } u;
3578 u.l = 1; 3577 u.l = 1;
3579 exit (u.c[sizeof (long) - 1] == 1); 3578 exit (u.c[sizeof (long) - 1] == 1);
3580 } 3579 }
3581 EOF 3580 EOF
3582 if { (eval echo configure:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3583 then 3582 then
3584 ac_cv_c_bigendian=no 3583 ac_cv_c_bigendian=no
3585 else 3584 else
3586 echo "configure: failed program was:" >&5 3585 echo "configure: failed program was:" >&5
3587 cat conftest.$ac_ext >&5 3586 cat conftest.$ac_ext >&5
3603 3602
3604 fi 3603 fi
3605 3604
3606 3605
3607 echo $ac_n "checking size of short""... $ac_c" 1>&6 3606 echo $ac_n "checking size of short""... $ac_c" 1>&6
3608 echo "configure:3609: checking size of short" >&5 3607 echo "configure:3608: checking size of short" >&5
3609 3608
3610 cat > conftest.$ac_ext <<EOF 3609 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure" 3610 #line 3611 "configure"
3612 #include "confdefs.h" 3611 #include "confdefs.h"
3613 #include <stdio.h> 3612 #include <stdio.h>
3614 main() 3613 main()
3615 { 3614 {
3616 FILE *f=fopen("conftestval", "w"); 3615 FILE *f=fopen("conftestval", "w");
3617 if (!f) exit(1); 3616 if (!f) exit(1);
3618 fprintf(f, "%d\n", sizeof(short)); 3617 fprintf(f, "%d\n", sizeof(short));
3619 exit(0); 3618 exit(0);
3620 } 3619 }
3621 EOF 3620 EOF
3622 if { (eval echo configure:3623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3623 then 3622 then
3624 ac_cv_sizeof_short=`cat conftestval` 3623 ac_cv_sizeof_short=`cat conftestval`
3625 else 3624 else
3626 echo "configure: failed program was:" >&5 3625 echo "configure: failed program was:" >&5
3627 cat conftest.$ac_ext >&5 3626 cat conftest.$ac_ext >&5
3644 echo "*** PANIC *** Configure tests are not working - compiler is broken." 3643 echo "*** PANIC *** Configure tests are not working - compiler is broken."
3645 echo "*** PANIC *** Please examine config.log for compilation errors." 3644 echo "*** PANIC *** Please examine config.log for compilation errors."
3646 exit 1 3645 exit 1
3647 fi 3646 fi
3648 echo $ac_n "checking size of int""... $ac_c" 1>&6 3647 echo $ac_n "checking size of int""... $ac_c" 1>&6
3649 echo "configure:3650: checking size of int" >&5 3648 echo "configure:3649: checking size of int" >&5
3650 3649
3651 cat > conftest.$ac_ext <<EOF 3650 cat > conftest.$ac_ext <<EOF
3652 #line 3653 "configure" 3651 #line 3652 "configure"
3653 #include "confdefs.h" 3652 #include "confdefs.h"
3654 #include <stdio.h> 3653 #include <stdio.h>
3655 main() 3654 main()
3656 { 3655 {
3657 FILE *f=fopen("conftestval", "w"); 3656 FILE *f=fopen("conftestval", "w");
3658 if (!f) exit(1); 3657 if (!f) exit(1);
3659 fprintf(f, "%d\n", sizeof(int)); 3658 fprintf(f, "%d\n", sizeof(int));
3660 exit(0); 3659 exit(0);
3661 } 3660 }
3662 EOF 3661 EOF
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3662 if { (eval echo configure:3663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3664 then 3663 then
3665 ac_cv_sizeof_int=`cat conftestval` 3664 ac_cv_sizeof_int=`cat conftestval`
3666 else 3665 else
3667 echo "configure: failed program was:" >&5 3666 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5 3667 cat conftest.$ac_ext >&5
3679 EOF 3678 EOF
3680 } 3679 }
3681 3680
3682 3681
3683 echo $ac_n "checking size of long""... $ac_c" 1>&6 3682 echo $ac_n "checking size of long""... $ac_c" 1>&6
3684 echo "configure:3685: checking size of long" >&5 3683 echo "configure:3684: checking size of long" >&5
3685 3684
3686 cat > conftest.$ac_ext <<EOF 3685 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure" 3686 #line 3687 "configure"
3688 #include "confdefs.h" 3687 #include "confdefs.h"
3689 #include <stdio.h> 3688 #include <stdio.h>
3690 main() 3689 main()
3691 { 3690 {
3692 FILE *f=fopen("conftestval", "w"); 3691 FILE *f=fopen("conftestval", "w");
3693 if (!f) exit(1); 3692 if (!f) exit(1);
3694 fprintf(f, "%d\n", sizeof(long)); 3693 fprintf(f, "%d\n", sizeof(long));
3695 exit(0); 3694 exit(0);
3696 } 3695 }
3697 EOF 3696 EOF
3698 if { (eval echo configure:3699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3697 if { (eval echo configure:3698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3699 then 3698 then
3700 ac_cv_sizeof_long=`cat conftestval` 3699 ac_cv_sizeof_long=`cat conftestval`
3701 else 3700 else
3702 echo "configure: failed program was:" >&5 3701 echo "configure: failed program was:" >&5
3703 cat conftest.$ac_ext >&5 3702 cat conftest.$ac_ext >&5
3714 EOF 3713 EOF
3715 } 3714 }
3716 3715
3717 3716
3718 echo $ac_n "checking size of long long""... $ac_c" 1>&6 3717 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3719 echo "configure:3720: checking size of long long" >&5 3718 echo "configure:3719: checking size of long long" >&5
3720 3719
3721 cat > conftest.$ac_ext <<EOF 3720 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure" 3721 #line 3722 "configure"
3723 #include "confdefs.h" 3722 #include "confdefs.h"
3724 #include <stdio.h> 3723 #include <stdio.h>
3725 main() 3724 main()
3726 { 3725 {
3727 FILE *f=fopen("conftestval", "w"); 3726 FILE *f=fopen("conftestval", "w");
3728 if (!f) exit(1); 3727 if (!f) exit(1);
3729 fprintf(f, "%d\n", sizeof(long long)); 3728 fprintf(f, "%d\n", sizeof(long long));
3730 exit(0); 3729 exit(0);
3731 } 3730 }
3732 EOF 3731 EOF
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3732 if { (eval echo configure:3733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3734 then 3733 then
3735 ac_cv_sizeof_long_long=`cat conftestval` 3734 ac_cv_sizeof_long_long=`cat conftestval`
3736 else 3735 else
3737 echo "configure: failed program was:" >&5 3736 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5 3737 cat conftest.$ac_ext >&5
3749 EOF 3748 EOF
3750 } 3749 }
3751 3750
3752 3751
3753 echo $ac_n "checking size of void *""... $ac_c" 1>&6 3752 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3754 echo "configure:3755: checking size of void *" >&5 3753 echo "configure:3754: checking size of void *" >&5
3755 3754
3756 cat > conftest.$ac_ext <<EOF 3755 cat > conftest.$ac_ext <<EOF
3757 #line 3758 "configure" 3756 #line 3757 "configure"
3758 #include "confdefs.h" 3757 #include "confdefs.h"
3759 #include <stdio.h> 3758 #include <stdio.h>
3760 main() 3759 main()
3761 { 3760 {
3762 FILE *f=fopen("conftestval", "w"); 3761 FILE *f=fopen("conftestval", "w");
3763 if (!f) exit(1); 3762 if (!f) exit(1);
3764 fprintf(f, "%d\n", sizeof(void *)); 3763 fprintf(f, "%d\n", sizeof(void *));
3765 exit(0); 3764 exit(0);
3766 } 3765 }
3767 EOF 3766 EOF
3768 if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 3767 if { (eval echo configure:3768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
3769 then 3768 then
3770 ac_cv_sizeof_void_p=`cat conftestval` 3769 ac_cv_sizeof_void_p=`cat conftestval`
3771 else 3770 else
3772 echo "configure: failed program was:" >&5 3771 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5 3772 cat conftest.$ac_ext >&5
3785 } 3784 }
3786 3785
3787 3786
3788 3787
3789 echo $ac_n "checking for long file names""... $ac_c" 1>&6 3788 echo $ac_n "checking for long file names""... $ac_c" 1>&6
3790 echo "configure:3791: checking for long file names" >&5 3789 echo "configure:3790: checking for long file names" >&5
3791 3790
3792 ac_cv_sys_long_file_names=yes 3791 ac_cv_sys_long_file_names=yes
3793 # Test for long file names in all the places we know might matter: 3792 # Test for long file names in all the places we know might matter:
3794 # . the current directory, where building will happen 3793 # . the current directory, where building will happen
3795 # $prefix/lib where we will be installing things 3794 # $prefix/lib where we will be installing things
3832 fi 3831 fi
3833 3832
3834 3833
3835 3834
3836 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 3835 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
3837 echo "configure:3838: checking for sqrt in -lm" >&5 3836 echo "configure:3837: checking for sqrt in -lm" >&5
3838 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 3837 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
3839 3838
3840 xe_check_libs=" -lm " 3839 xe_check_libs=" -lm "
3841 cat > conftest.$ac_ext <<EOF 3840 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure" 3841 #line 3842 "configure"
3843 #include "confdefs.h" 3842 #include "confdefs.h"
3844 /* Override any gcc2 internal prototype to avoid an error. */ 3843 /* Override any gcc2 internal prototype to avoid an error. */
3845 /* We use char because int might match the return type of a gcc2 3844 /* We use char because int might match the return type of a gcc2
3846 builtin and then its argument prototype would still apply. */ 3845 builtin and then its argument prototype would still apply. */
3847 char sqrt(); 3846 char sqrt();
3848 3847
3849 int main() { 3848 int main() {
3850 sqrt() 3849 sqrt()
3851 ; return 0; } 3850 ; return 0; }
3852 EOF 3851 EOF
3853 if { (eval echo configure:3854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3854 rm -rf conftest* 3853 rm -rf conftest*
3855 eval "ac_cv_lib_$ac_lib_var=yes" 3854 eval "ac_cv_lib_$ac_lib_var=yes"
3856 else 3855 else
3857 echo "configure: failed program was:" >&5 3856 echo "configure: failed program was:" >&5
3858 cat conftest.$ac_ext >&5 3857 cat conftest.$ac_ext >&5
3890 EOF 3889 EOF
3891 } 3890 }
3892 3891
3893 3892
3894 echo "checking type of mail spool file locking" 1>&6 3893 echo "checking type of mail spool file locking" 1>&6
3895 echo "configure:3896: checking type of mail spool file locking" >&5 3894 echo "configure:3895: checking type of mail spool file locking" >&5
3896 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock 3895 test -z "$mail_locking" -a "$mail_use_flock" = "yes" && mail_locking=flock
3897 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf 3896 test -z "$mail_locking" -a "$mail_use_lockf" = "yes" && mail_locking=lockf
3898 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF 3897 if test "$mail_locking" = "lockf"; then { test "$extra_verbose" = "yes" && cat << \EOF
3899 Defining REAL_MAIL_USE_LOCKF 3898 Defining REAL_MAIL_USE_LOCKF
3900 EOF 3899 EOF
3914 else mail_locking="dot-locking" 3913 else mail_locking="dot-locking"
3915 fi 3914 fi
3916 3915
3917 3916
3918 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 3917 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
3919 echo "configure:3920: checking for kstat_open in -lkstat" >&5 3918 echo "configure:3919: checking for kstat_open in -lkstat" >&5
3920 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 3919 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
3921 3920
3922 xe_check_libs=" -lkstat " 3921 xe_check_libs=" -lkstat "
3923 cat > conftest.$ac_ext <<EOF 3922 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure" 3923 #line 3924 "configure"
3925 #include "confdefs.h" 3924 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */ 3925 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2 3926 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */ 3927 builtin and then its argument prototype would still apply. */
3929 char kstat_open(); 3928 char kstat_open();
3930 3929
3931 int main() { 3930 int main() {
3932 kstat_open() 3931 kstat_open()
3933 ; return 0; } 3932 ; return 0; }
3934 EOF 3933 EOF
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3934 if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3936 rm -rf conftest* 3935 rm -rf conftest*
3937 eval "ac_cv_lib_$ac_lib_var=yes" 3936 eval "ac_cv_lib_$ac_lib_var=yes"
3938 else 3937 else
3939 echo "configure: failed program was:" >&5 3938 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5 3939 cat conftest.$ac_ext >&5
3964 3963
3965 3964
3966 3965
3967 3966
3968 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 3967 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
3969 echo "configure:3970: checking for kvm_read in -lkvm" >&5 3968 echo "configure:3969: checking for kvm_read in -lkvm" >&5
3970 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 3969 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
3971 3970
3972 xe_check_libs=" -lkvm " 3971 xe_check_libs=" -lkvm "
3973 cat > conftest.$ac_ext <<EOF 3972 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure" 3973 #line 3974 "configure"
3975 #include "confdefs.h" 3974 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */ 3975 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2 3976 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */ 3977 builtin and then its argument prototype would still apply. */
3979 char kvm_read(); 3978 char kvm_read();
3980 3979
3981 int main() { 3980 int main() {
3982 kvm_read() 3981 kvm_read()
3983 ; return 0; } 3982 ; return 0; }
3984 EOF 3983 EOF
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3986 rm -rf conftest* 3985 rm -rf conftest*
3987 eval "ac_cv_lib_$ac_lib_var=yes" 3986 eval "ac_cv_lib_$ac_lib_var=yes"
3988 else 3987 else
3989 echo "configure: failed program was:" >&5 3988 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5 3989 cat conftest.$ac_ext >&5
4014 4013
4015 4014
4016 4015
4017 4016
4018 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 4017 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
4019 echo "configure:4020: checking for cma_open in -lpthreads" >&5 4018 echo "configure:4019: checking for cma_open in -lpthreads" >&5
4020 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 4019 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
4021 4020
4022 xe_check_libs=" -lpthreads " 4021 xe_check_libs=" -lpthreads "
4023 cat > conftest.$ac_ext <<EOF 4022 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure" 4023 #line 4024 "configure"
4025 #include "confdefs.h" 4024 #include "confdefs.h"
4026 /* Override any gcc2 internal prototype to avoid an error. */ 4025 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2 4026 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */ 4027 builtin and then its argument prototype would still apply. */
4029 char cma_open(); 4028 char cma_open();
4030 4029
4031 int main() { 4030 int main() {
4032 cma_open() 4031 cma_open()
4033 ; return 0; } 4032 ; return 0; }
4034 EOF 4033 EOF
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4036 rm -rf conftest* 4035 rm -rf conftest*
4037 eval "ac_cv_lib_$ac_lib_var=yes" 4036 eval "ac_cv_lib_$ac_lib_var=yes"
4038 else 4037 else
4039 echo "configure: failed program was:" >&5 4038 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5 4039 cat conftest.$ac_ext >&5
4066 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then 4065 if test "$ac_cv_lib_pthreads_cma_open" = "yes"; then
4067 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac 4066 case "$opsys" in decosf*) c_switch_site="$c_switch_site -threads";; esac
4068 fi 4067 fi
4069 4068
4070 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 4069 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
4071 echo "configure:4072: checking whether the -xildoff compiler flag is required" >&5 4070 echo "configure:4071: checking whether the -xildoff compiler flag is required" >&5
4072 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 4071 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
4073 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 4072 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
4074 then echo "$ac_t""no" 1>&6; 4073 then echo "$ac_t""no" 1>&6;
4075 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 4074 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
4076 fi 4075 fi
4077 else echo "$ac_t""no" 1>&6 4076 else echo "$ac_t""no" 1>&6
4078 fi 4077 fi
4079 4078
4080 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then 4079 if test "$opsys" = "sol2" && test "$OS_RELEASE" -ge 56; then
4081 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 4080 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
4082 echo "configure:4083: checking for \"-z ignore\" linker flag" >&5 4081 echo "configure:4082: checking for \"-z ignore\" linker flag" >&5
4083 case "`ld -h 2>&1`" in 4082 case "`ld -h 2>&1`" in
4084 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 4083 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
4085 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 4084 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
4086 *) echo "$ac_t""no" 1>&6 ;; 4085 *) echo "$ac_t""no" 1>&6 ;;
4087 esac 4086 esac
4088 fi 4087 fi
4089 4088
4090 4089
4091 echo "checking "for specified window system"" 1>&6 4090 echo "checking "for specified window system"" 1>&6
4092 echo "configure:4093: checking "for specified window system"" >&5 4091 echo "configure:4092: checking "for specified window system"" >&5
4093 4092
4094 if test "$x_includes $x_libraries" = "NONE NONE"; then 4093 if test "$x_includes $x_libraries" = "NONE NONE"; then
4095 if test -n "$OPENWINHOME" \ 4094 if test -n "$OPENWINHOME" \
4096 -a "$OPENWINHOME" != "/usr/openwin" \ 4095 -a "$OPENWINHOME" != "/usr/openwin" \
4097 -a -d "$OPENWINHOME"; then 4096 -a -d "$OPENWINHOME"; then
4108 # If we find X, set shell vars x_includes and x_libraries to the 4107 # If we find X, set shell vars x_includes and x_libraries to the
4109 # paths, otherwise set no_x=yes. 4108 # paths, otherwise set no_x=yes.
4110 # Uses ac_ vars as temps to allow command line to override cache and checks. 4109 # Uses ac_ vars as temps to allow command line to override cache and checks.
4111 # --without-x overrides everything else, but does not touch the cache. 4110 # --without-x overrides everything else, but does not touch the cache.
4112 echo $ac_n "checking for X""... $ac_c" 1>&6 4111 echo $ac_n "checking for X""... $ac_c" 1>&6
4113 echo "configure:4114: checking for X" >&5 4112 echo "configure:4113: checking for X" >&5
4114 4113
4115 # Check whether --with-x or --without-x was given. 4114 # Check whether --with-x or --without-x was given.
4116 if test "${with_x+set}" = set; then 4115 if test "${with_x+set}" = set; then
4117 withval="$with_x" 4116 withval="$with_x"
4118 : 4117 :
4168 # Guess where to find include files, by looking for this one X11 .h file. 4167 # Guess where to find include files, by looking for this one X11 .h file.
4169 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 4168 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4170 4169
4171 # First, try using that file with no special directory specified. 4170 # First, try using that file with no special directory specified.
4172 cat > conftest.$ac_ext <<EOF 4171 cat > conftest.$ac_ext <<EOF
4173 #line 4174 "configure" 4172 #line 4173 "configure"
4174 #include "confdefs.h" 4173 #include "confdefs.h"
4175 #include <$x_direct_test_include> 4174 #include <$x_direct_test_include>
4176 EOF 4175 EOF
4177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4178 { (eval echo configure:4179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4177 { (eval echo configure:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4179 ac_err=`grep -v '^ *+' conftest.out` 4178 ac_err=`grep -v '^ *+' conftest.out`
4180 if test -z "$ac_err"; then 4179 if test -z "$ac_err"; then
4181 rm -rf conftest* 4180 rm -rf conftest*
4182 # We can compile using X headers with no special include directory. 4181 # We can compile using X headers with no special include directory.
4183 ac_x_includes= 4182 ac_x_includes=
4242 # See if we find them without any special options. 4241 # See if we find them without any special options.
4243 # Don't add to $LIBS permanently. 4242 # Don't add to $LIBS permanently.
4244 ac_save_LIBS="$LIBS" 4243 ac_save_LIBS="$LIBS"
4245 LIBS="-l$x_direct_test_library $LIBS" 4244 LIBS="-l$x_direct_test_library $LIBS"
4246 cat > conftest.$ac_ext <<EOF 4245 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure" 4246 #line 4247 "configure"
4248 #include "confdefs.h" 4247 #include "confdefs.h"
4249 4248
4250 int main() { 4249 int main() {
4251 ${x_direct_test_function}() 4250 ${x_direct_test_function}()
4252 ; return 0; } 4251 ; return 0; }
4253 EOF 4252 EOF
4254 if { (eval echo configure:4255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4255 rm -rf conftest* 4254 rm -rf conftest*
4256 LIBS="$ac_save_LIBS" 4255 LIBS="$ac_save_LIBS"
4257 # We can link X programs with no special library path. 4256 # We can link X programs with no special library path.
4258 ac_x_libraries= 4257 ac_x_libraries=
4259 else 4258 else
4358 # For Solaris; some versions of Sun CC require a space after -R and 4357 # For Solaris; some versions of Sun CC require a space after -R and
4359 # others require no space. Words are not sufficient . . . . 4358 # others require no space. Words are not sufficient . . . .
4360 case "`(uname -sr) 2>/dev/null`" in 4359 case "`(uname -sr) 2>/dev/null`" in
4361 "SunOS 5"*) 4360 "SunOS 5"*)
4362 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 4361 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4363 echo "configure:4364: checking whether -R must be followed by a space" >&5 4362 echo "configure:4363: checking whether -R must be followed by a space" >&5
4364 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 4363 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
4365 cat > conftest.$ac_ext <<EOF 4364 cat > conftest.$ac_ext <<EOF
4366 #line 4367 "configure" 4365 #line 4366 "configure"
4367 #include "confdefs.h" 4366 #include "confdefs.h"
4368 4367
4369 int main() { 4368 int main() {
4370 4369
4371 ; return 0; } 4370 ; return 0; }
4372 EOF 4371 EOF
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4374 rm -rf conftest* 4373 rm -rf conftest*
4375 ac_R_nospace=yes 4374 ac_R_nospace=yes
4376 else 4375 else
4377 echo "configure: failed program was:" >&5 4376 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5 4377 cat conftest.$ac_ext >&5
4384 echo "$ac_t""no" 1>&6 4383 echo "$ac_t""no" 1>&6
4385 X_LIBS="$X_LIBS -R$x_libraries" 4384 X_LIBS="$X_LIBS -R$x_libraries"
4386 else 4385 else
4387 LIBS="$ac_xsave_LIBS -R $x_libraries" 4386 LIBS="$ac_xsave_LIBS -R $x_libraries"
4388 cat > conftest.$ac_ext <<EOF 4387 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure" 4388 #line 4389 "configure"
4390 #include "confdefs.h" 4389 #include "confdefs.h"
4391 4390
4392 int main() { 4391 int main() {
4393 4392
4394 ; return 0; } 4393 ; return 0; }
4395 EOF 4394 EOF
4396 if { (eval echo configure:4397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4395 if { (eval echo configure:4396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4397 rm -rf conftest* 4396 rm -rf conftest*
4398 ac_R_space=yes 4397 ac_R_space=yes
4399 else 4398 else
4400 echo "configure: failed program was:" >&5 4399 echo "configure: failed program was:" >&5
4401 cat conftest.$ac_ext >&5 4400 cat conftest.$ac_ext >&5
4427 if test "$with_dnet" = "no" ; then 4426 if test "$with_dnet" = "no" ; then
4428 ac_cv_lib_dnet_dnet_ntoa=no 4427 ac_cv_lib_dnet_dnet_ntoa=no
4429 else 4428 else
4430 4429
4431 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 4430 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4432 echo "configure:4433: checking for dnet_ntoa in -ldnet" >&5 4431 echo "configure:4432: checking for dnet_ntoa in -ldnet" >&5
4433 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4432 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4434 4433
4435 xe_check_libs=" -ldnet " 4434 xe_check_libs=" -ldnet "
4436 cat > conftest.$ac_ext <<EOF 4435 cat > conftest.$ac_ext <<EOF
4437 #line 4438 "configure" 4436 #line 4437 "configure"
4438 #include "confdefs.h" 4437 #include "confdefs.h"
4439 /* Override any gcc2 internal prototype to avoid an error. */ 4438 /* Override any gcc2 internal prototype to avoid an error. */
4440 /* We use char because int might match the return type of a gcc2 4439 /* We use char because int might match the return type of a gcc2
4441 builtin and then its argument prototype would still apply. */ 4440 builtin and then its argument prototype would still apply. */
4442 char dnet_ntoa(); 4441 char dnet_ntoa();
4443 4442
4444 int main() { 4443 int main() {
4445 dnet_ntoa() 4444 dnet_ntoa()
4446 ; return 0; } 4445 ; return 0; }
4447 EOF 4446 EOF
4448 if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4447 if { (eval echo configure:4448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4449 rm -rf conftest* 4448 rm -rf conftest*
4450 eval "ac_cv_lib_$ac_lib_var=yes" 4449 eval "ac_cv_lib_$ac_lib_var=yes"
4451 else 4450 else
4452 echo "configure: failed program was:" >&5 4451 echo "configure: failed program was:" >&5
4453 cat conftest.$ac_ext >&5 4452 cat conftest.$ac_ext >&5
4467 fi 4466 fi
4468 4467
4469 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4468 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4470 4469
4471 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 4470 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4472 echo "configure:4473: checking for dnet_ntoa in -ldnet_stub" >&5 4471 echo "configure:4472: checking for dnet_ntoa in -ldnet_stub" >&5
4473 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 4472 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
4474 4473
4475 xe_check_libs=" -ldnet_stub " 4474 xe_check_libs=" -ldnet_stub "
4476 cat > conftest.$ac_ext <<EOF 4475 cat > conftest.$ac_ext <<EOF
4477 #line 4478 "configure" 4476 #line 4477 "configure"
4478 #include "confdefs.h" 4477 #include "confdefs.h"
4479 /* Override any gcc2 internal prototype to avoid an error. */ 4478 /* Override any gcc2 internal prototype to avoid an error. */
4480 /* We use char because int might match the return type of a gcc2 4479 /* We use char because int might match the return type of a gcc2
4481 builtin and then its argument prototype would still apply. */ 4480 builtin and then its argument prototype would still apply. */
4482 char dnet_ntoa(); 4481 char dnet_ntoa();
4483 4482
4484 int main() { 4483 int main() {
4485 dnet_ntoa() 4484 dnet_ntoa()
4486 ; return 0; } 4485 ; return 0; }
4487 EOF 4486 EOF
4488 if { (eval echo configure:4489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4487 if { (eval echo configure:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4489 rm -rf conftest* 4488 rm -rf conftest*
4490 eval "ac_cv_lib_$ac_lib_var=yes" 4489 eval "ac_cv_lib_$ac_lib_var=yes"
4491 else 4490 else
4492 echo "configure: failed program was:" >&5 4491 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5 4492 cat conftest.$ac_ext >&5
4512 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 4511 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
4513 # needs -lnsl. 4512 # needs -lnsl.
4514 # The nsl library prevents programs from opening the X display 4513 # The nsl library prevents programs from opening the X display
4515 # on Irix 5.2, according to dickey@clark.net. 4514 # on Irix 5.2, according to dickey@clark.net.
4516 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 4515 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4517 echo "configure:4518: checking for gethostbyname" >&5 4516 echo "configure:4517: checking for gethostbyname" >&5
4518 4517
4519 cat > conftest.$ac_ext <<EOF 4518 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure" 4519 #line 4520 "configure"
4521 #include "confdefs.h" 4520 #include "confdefs.h"
4522 /* System header to define __stub macros and hopefully few prototypes, 4521 /* System header to define __stub macros and hopefully few prototypes,
4523 which can conflict with char gethostbyname(); below. */ 4522 which can conflict with char gethostbyname(); below. */
4524 #include <assert.h> 4523 #include <assert.h>
4525 /* Override any gcc2 internal prototype to avoid an error. */ 4524 /* Override any gcc2 internal prototype to avoid an error. */
4538 gethostbyname(); 4537 gethostbyname();
4539 #endif 4538 #endif
4540 4539
4541 ; return 0; } 4540 ; return 0; }
4542 EOF 4541 EOF
4543 if { (eval echo configure:4544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4544 rm -rf conftest* 4543 rm -rf conftest*
4545 eval "ac_cv_func_gethostbyname=yes" 4544 eval "ac_cv_func_gethostbyname=yes"
4546 else 4545 else
4547 echo "configure: failed program was:" >&5 4546 echo "configure: failed program was:" >&5
4548 cat conftest.$ac_ext >&5 4547 cat conftest.$ac_ext >&5
4559 fi 4558 fi
4560 4559
4561 if test $ac_cv_func_gethostbyname = no; then 4560 if test $ac_cv_func_gethostbyname = no; then
4562 4561
4563 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 4562 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4564 echo "configure:4565: checking for gethostbyname in -lnsl" >&5 4563 echo "configure:4564: checking for gethostbyname in -lnsl" >&5
4565 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 4564 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
4566 4565
4567 xe_check_libs=" -lnsl " 4566 xe_check_libs=" -lnsl "
4568 cat > conftest.$ac_ext <<EOF 4567 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure" 4568 #line 4569 "configure"
4570 #include "confdefs.h" 4569 #include "confdefs.h"
4571 /* Override any gcc2 internal prototype to avoid an error. */ 4570 /* Override any gcc2 internal prototype to avoid an error. */
4572 /* We use char because int might match the return type of a gcc2 4571 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */ 4572 builtin and then its argument prototype would still apply. */
4574 char gethostbyname(); 4573 char gethostbyname();
4575 4574
4576 int main() { 4575 int main() {
4577 gethostbyname() 4576 gethostbyname()
4578 ; return 0; } 4577 ; return 0; }
4579 EOF 4578 EOF
4580 if { (eval echo configure:4581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4579 if { (eval echo configure:4580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4581 rm -rf conftest* 4580 rm -rf conftest*
4582 eval "ac_cv_lib_$ac_lib_var=yes" 4581 eval "ac_cv_lib_$ac_lib_var=yes"
4583 else 4582 else
4584 echo "configure: failed program was:" >&5 4583 echo "configure: failed program was:" >&5
4585 cat conftest.$ac_ext >&5 4584 cat conftest.$ac_ext >&5
4605 # on later versions), says simon@lia.di.epfl.ch: it contains 4604 # on later versions), says simon@lia.di.epfl.ch: it contains
4606 # gethostby* variants that don't use the nameserver (or something). 4605 # gethostby* variants that don't use the nameserver (or something).
4607 # -lsocket must be given before -lnsl if both are needed. 4606 # -lsocket must be given before -lnsl if both are needed.
4608 # We assume that if connect needs -lnsl, so does gethostbyname. 4607 # We assume that if connect needs -lnsl, so does gethostbyname.
4609 echo $ac_n "checking for connect""... $ac_c" 1>&6 4608 echo $ac_n "checking for connect""... $ac_c" 1>&6
4610 echo "configure:4611: checking for connect" >&5 4609 echo "configure:4610: checking for connect" >&5
4611 4610
4612 cat > conftest.$ac_ext <<EOF 4611 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure" 4612 #line 4613 "configure"
4614 #include "confdefs.h" 4613 #include "confdefs.h"
4615 /* System header to define __stub macros and hopefully few prototypes, 4614 /* System header to define __stub macros and hopefully few prototypes,
4616 which can conflict with char connect(); below. */ 4615 which can conflict with char connect(); below. */
4617 #include <assert.h> 4616 #include <assert.h>
4618 /* Override any gcc2 internal prototype to avoid an error. */ 4617 /* Override any gcc2 internal prototype to avoid an error. */
4631 connect(); 4630 connect();
4632 #endif 4631 #endif
4633 4632
4634 ; return 0; } 4633 ; return 0; }
4635 EOF 4634 EOF
4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4637 rm -rf conftest* 4636 rm -rf conftest*
4638 eval "ac_cv_func_connect=yes" 4637 eval "ac_cv_func_connect=yes"
4639 else 4638 else
4640 echo "configure: failed program was:" >&5 4639 echo "configure: failed program was:" >&5
4641 cat conftest.$ac_ext >&5 4640 cat conftest.$ac_ext >&5
4654 if test $ac_cv_func_connect = no; then 4653 if test $ac_cv_func_connect = no; then
4655 4654
4656 xe_msg_checking="for connect in -lsocket" 4655 xe_msg_checking="for connect in -lsocket"
4657 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 4656 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
4658 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 4657 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
4659 echo "configure:4660: checking "$xe_msg_checking"" >&5 4658 echo "configure:4659: checking "$xe_msg_checking"" >&5
4660 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 4659 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4661 4660
4662 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 4661 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
4663 cat > conftest.$ac_ext <<EOF 4662 cat > conftest.$ac_ext <<EOF
4664 #line 4665 "configure" 4663 #line 4664 "configure"
4665 #include "confdefs.h" 4664 #include "confdefs.h"
4666 /* Override any gcc2 internal prototype to avoid an error. */ 4665 /* Override any gcc2 internal prototype to avoid an error. */
4667 /* We use char because int might match the return type of a gcc2 4666 /* We use char because int might match the return type of a gcc2
4668 builtin and then its argument prototype would still apply. */ 4667 builtin and then its argument prototype would still apply. */
4669 char connect(); 4668 char connect();
4670 4669
4671 int main() { 4670 int main() {
4672 connect() 4671 connect()
4673 ; return 0; } 4672 ; return 0; }
4674 EOF 4673 EOF
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4674 if { (eval echo configure:4675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4676 rm -rf conftest* 4675 rm -rf conftest*
4677 eval "ac_cv_lib_$ac_lib_var=yes" 4676 eval "ac_cv_lib_$ac_lib_var=yes"
4678 else 4677 else
4679 echo "configure: failed program was:" >&5 4678 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5 4679 cat conftest.$ac_ext >&5
4694 4693
4695 fi 4694 fi
4696 4695
4697 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 4696 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4698 echo $ac_n "checking for remove""... $ac_c" 1>&6 4697 echo $ac_n "checking for remove""... $ac_c" 1>&6
4699 echo "configure:4700: checking for remove" >&5 4698 echo "configure:4699: checking for remove" >&5
4700 4699
4701 cat > conftest.$ac_ext <<EOF 4700 cat > conftest.$ac_ext <<EOF
4702 #line 4703 "configure" 4701 #line 4702 "configure"
4703 #include "confdefs.h" 4702 #include "confdefs.h"
4704 /* System header to define __stub macros and hopefully few prototypes, 4703 /* System header to define __stub macros and hopefully few prototypes,
4705 which can conflict with char remove(); below. */ 4704 which can conflict with char remove(); below. */
4706 #include <assert.h> 4705 #include <assert.h>
4707 /* Override any gcc2 internal prototype to avoid an error. */ 4706 /* Override any gcc2 internal prototype to avoid an error. */
4720 remove(); 4719 remove();
4721 #endif 4720 #endif
4722 4721
4723 ; return 0; } 4722 ; return 0; }
4724 EOF 4723 EOF
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4724 if { (eval echo configure:4725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4726 rm -rf conftest* 4725 rm -rf conftest*
4727 eval "ac_cv_func_remove=yes" 4726 eval "ac_cv_func_remove=yes"
4728 else 4727 else
4729 echo "configure: failed program was:" >&5 4728 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5 4729 cat conftest.$ac_ext >&5
4741 fi 4740 fi
4742 4741
4743 if test $ac_cv_func_remove = no; then 4742 if test $ac_cv_func_remove = no; then
4744 4743
4745 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 4744 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4746 echo "configure:4747: checking for remove in -lposix" >&5 4745 echo "configure:4746: checking for remove in -lposix" >&5
4747 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 4746 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4748 4747
4749 xe_check_libs=" -lposix " 4748 xe_check_libs=" -lposix "
4750 cat > conftest.$ac_ext <<EOF 4749 cat > conftest.$ac_ext <<EOF
4751 #line 4752 "configure" 4750 #line 4751 "configure"
4752 #include "confdefs.h" 4751 #include "confdefs.h"
4753 /* Override any gcc2 internal prototype to avoid an error. */ 4752 /* Override any gcc2 internal prototype to avoid an error. */
4754 /* We use char because int might match the return type of a gcc2 4753 /* We use char because int might match the return type of a gcc2
4755 builtin and then its argument prototype would still apply. */ 4754 builtin and then its argument prototype would still apply. */
4756 char remove(); 4755 char remove();
4757 4756
4758 int main() { 4757 int main() {
4759 remove() 4758 remove()
4760 ; return 0; } 4759 ; return 0; }
4761 EOF 4760 EOF
4762 if { (eval echo configure:4763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4763 rm -rf conftest* 4762 rm -rf conftest*
4764 eval "ac_cv_lib_$ac_lib_var=yes" 4763 eval "ac_cv_lib_$ac_lib_var=yes"
4765 else 4764 else
4766 echo "configure: failed program was:" >&5 4765 echo "configure: failed program was:" >&5
4767 cat conftest.$ac_ext >&5 4766 cat conftest.$ac_ext >&5
4781 4780
4782 fi 4781 fi
4783 4782
4784 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4783 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4785 echo $ac_n "checking for shmat""... $ac_c" 1>&6 4784 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4786 echo "configure:4787: checking for shmat" >&5 4785 echo "configure:4786: checking for shmat" >&5
4787 4786
4788 cat > conftest.$ac_ext <<EOF 4787 cat > conftest.$ac_ext <<EOF
4789 #line 4790 "configure" 4788 #line 4789 "configure"
4790 #include "confdefs.h" 4789 #include "confdefs.h"
4791 /* System header to define __stub macros and hopefully few prototypes, 4790 /* System header to define __stub macros and hopefully few prototypes,
4792 which can conflict with char shmat(); below. */ 4791 which can conflict with char shmat(); below. */
4793 #include <assert.h> 4792 #include <assert.h>
4794 /* Override any gcc2 internal prototype to avoid an error. */ 4793 /* Override any gcc2 internal prototype to avoid an error. */
4807 shmat(); 4806 shmat();
4808 #endif 4807 #endif
4809 4808
4810 ; return 0; } 4809 ; return 0; }
4811 EOF 4810 EOF
4812 if { (eval echo configure:4813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4811 if { (eval echo configure:4812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4813 rm -rf conftest* 4812 rm -rf conftest*
4814 eval "ac_cv_func_shmat=yes" 4813 eval "ac_cv_func_shmat=yes"
4815 else 4814 else
4816 echo "configure: failed program was:" >&5 4815 echo "configure: failed program was:" >&5
4817 cat conftest.$ac_ext >&5 4816 cat conftest.$ac_ext >&5
4828 fi 4827 fi
4829 4828
4830 if test $ac_cv_func_shmat = no; then 4829 if test $ac_cv_func_shmat = no; then
4831 4830
4832 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 4831 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4833 echo "configure:4834: checking for shmat in -lipc" >&5 4832 echo "configure:4833: checking for shmat in -lipc" >&5
4834 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 4833 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4835 4834
4836 xe_check_libs=" -lipc " 4835 xe_check_libs=" -lipc "
4837 cat > conftest.$ac_ext <<EOF 4836 cat > conftest.$ac_ext <<EOF
4838 #line 4839 "configure" 4837 #line 4838 "configure"
4839 #include "confdefs.h" 4838 #include "confdefs.h"
4840 /* Override any gcc2 internal prototype to avoid an error. */ 4839 /* Override any gcc2 internal prototype to avoid an error. */
4841 /* We use char because int might match the return type of a gcc2 4840 /* We use char because int might match the return type of a gcc2
4842 builtin and then its argument prototype would still apply. */ 4841 builtin and then its argument prototype would still apply. */
4843 char shmat(); 4842 char shmat();
4844 4843
4845 int main() { 4844 int main() {
4846 shmat() 4845 shmat()
4847 ; return 0; } 4846 ; return 0; }
4848 EOF 4847 EOF
4849 if { (eval echo configure:4850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4850 rm -rf conftest* 4849 rm -rf conftest*
4851 eval "ac_cv_lib_$ac_lib_var=yes" 4850 eval "ac_cv_lib_$ac_lib_var=yes"
4852 else 4851 else
4853 echo "configure: failed program was:" >&5 4852 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5 4853 cat conftest.$ac_ext >&5
4878 # These have to be linked with before -lX11, unlike the other 4877 # These have to be linked with before -lX11, unlike the other
4879 # libraries we check for below, so use a different variable. 4878 # libraries we check for below, so use a different variable.
4880 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 4879 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4881 4880
4882 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 4881 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4883 echo "configure:4884: checking for IceConnectionNumber in -lICE" >&5 4882 echo "configure:4883: checking for IceConnectionNumber in -lICE" >&5
4884 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 4883 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4885 4884
4886 xe_check_libs=" -lICE " 4885 xe_check_libs=" -lICE "
4887 cat > conftest.$ac_ext <<EOF 4886 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure" 4887 #line 4888 "configure"
4889 #include "confdefs.h" 4888 #include "confdefs.h"
4890 /* Override any gcc2 internal prototype to avoid an error. */ 4889 /* Override any gcc2 internal prototype to avoid an error. */
4891 /* We use char because int might match the return type of a gcc2 4890 /* We use char because int might match the return type of a gcc2
4892 builtin and then its argument prototype would still apply. */ 4891 builtin and then its argument prototype would still apply. */
4893 char IceConnectionNumber(); 4892 char IceConnectionNumber();
4894 4893
4895 int main() { 4894 int main() {
4896 IceConnectionNumber() 4895 IceConnectionNumber()
4897 ; return 0; } 4896 ; return 0; }
4898 EOF 4897 EOF
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4900 rm -rf conftest* 4899 rm -rf conftest*
4901 eval "ac_cv_lib_$ac_lib_var=yes" 4900 eval "ac_cv_lib_$ac_lib_var=yes"
4902 else 4901 else
4903 echo "configure: failed program was:" >&5 4902 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5 4903 cat conftest.$ac_ext >&5
5027 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done 5026 for var in x_libraries x_includes X_CFLAGS X_LIBS X_PRE_LIBS X_EXTRA_LIBS; do eval "echo \"$var = '\$$var'\""; done
5028 echo 5027 echo
5029 fi 5028 fi
5030 5029
5031 echo "checking for X defines extracted by xmkmf" 1>&6 5030 echo "checking for X defines extracted by xmkmf" 1>&6
5032 echo "configure:5033: checking for X defines extracted by xmkmf" >&5 5031 echo "configure:5032: checking for X defines extracted by xmkmf" >&5
5033 rm -fr conftestdir 5032 rm -fr conftestdir
5034 if mkdir conftestdir; then 5033 if mkdir conftestdir; then
5035 cd conftestdir 5034 cd conftestdir
5036 cat > Imakefile <<'EOF' 5035 cat > Imakefile <<'EOF'
5037 xetest: 5036 xetest:
5059 done 5058 done
5060 fi 5059 fi
5061 5060
5062 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 5061 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
5063 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 5062 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
5064 echo "configure:5065: checking for X11/Intrinsic.h" >&5 5063 echo "configure:5064: checking for X11/Intrinsic.h" >&5
5065 5064
5066 cat > conftest.$ac_ext <<EOF 5065 cat > conftest.$ac_ext <<EOF
5067 #line 5068 "configure" 5066 #line 5067 "configure"
5068 #include "confdefs.h" 5067 #include "confdefs.h"
5069 #include <X11/Intrinsic.h> 5068 #include <X11/Intrinsic.h>
5070 EOF 5069 EOF
5071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5072 { (eval echo configure:5073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5071 { (eval echo configure:5072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5073 ac_err=`grep -v '^ *+' conftest.out` 5072 ac_err=`grep -v '^ *+' conftest.out`
5074 if test -z "$ac_err"; then 5073 if test -z "$ac_err"; then
5075 rm -rf conftest* 5074 rm -rf conftest*
5076 eval "ac_cv_header_$ac_safe=yes" 5075 eval "ac_cv_header_$ac_safe=yes"
5077 else 5076 else
5091 fi 5090 fi
5092 5091
5093 5092
5094 5093
5095 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 5094 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
5096 echo "configure:5097: checking for XOpenDisplay in -lX11" >&5 5095 echo "configure:5096: checking for XOpenDisplay in -lX11" >&5
5097 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 5096 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
5098 5097
5099 xe_check_libs=" -lX11 " 5098 xe_check_libs=" -lX11 "
5100 cat > conftest.$ac_ext <<EOF 5099 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure" 5100 #line 5101 "configure"
5102 #include "confdefs.h" 5101 #include "confdefs.h"
5103 /* Override any gcc2 internal prototype to avoid an error. */ 5102 /* Override any gcc2 internal prototype to avoid an error. */
5104 /* We use char because int might match the return type of a gcc2 5103 /* We use char because int might match the return type of a gcc2
5105 builtin and then its argument prototype would still apply. */ 5104 builtin and then its argument prototype would still apply. */
5106 char XOpenDisplay(); 5105 char XOpenDisplay();
5107 5106
5108 int main() { 5107 int main() {
5109 XOpenDisplay() 5108 XOpenDisplay()
5110 ; return 0; } 5109 ; return 0; }
5111 EOF 5110 EOF
5112 if { (eval echo configure:5113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5111 if { (eval echo configure:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5113 rm -rf conftest* 5112 rm -rf conftest*
5114 eval "ac_cv_lib_$ac_lib_var=yes" 5113 eval "ac_cv_lib_$ac_lib_var=yes"
5115 else 5114 else
5116 echo "configure: failed program was:" >&5 5115 echo "configure: failed program was:" >&5
5117 cat conftest.$ac_ext >&5 5116 cat conftest.$ac_ext >&5
5132 if test "$have_lib_x11" != "yes"; then 5131 if test "$have_lib_x11" != "yes"; then
5133 5132
5134 xe_msg_checking="for XGetFontProperty in -lX11" 5133 xe_msg_checking="for XGetFontProperty in -lX11"
5135 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 5134 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
5136 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5135 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5137 echo "configure:5138: checking "$xe_msg_checking"" >&5 5136 echo "configure:5137: checking "$xe_msg_checking"" >&5
5138 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 5137 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
5139 5138
5140 xe_check_libs=" -lX11 -b i486-linuxaout" 5139 xe_check_libs=" -lX11 -b i486-linuxaout"
5141 cat > conftest.$ac_ext <<EOF 5140 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure" 5141 #line 5142 "configure"
5143 #include "confdefs.h" 5142 #include "confdefs.h"
5144 /* Override any gcc2 internal prototype to avoid an error. */ 5143 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2 5144 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */ 5145 builtin and then its argument prototype would still apply. */
5147 char XGetFontProperty(); 5146 char XGetFontProperty();
5148 5147
5149 int main() { 5148 int main() {
5150 XGetFontProperty() 5149 XGetFontProperty()
5151 ; return 0; } 5150 ; return 0; }
5152 EOF 5151 EOF
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5154 rm -rf conftest* 5153 rm -rf conftest*
5155 eval "ac_cv_lib_$ac_lib_var=yes" 5154 eval "ac_cv_lib_$ac_lib_var=yes"
5156 else 5155 else
5157 echo "configure: failed program was:" >&5 5156 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5 5157 cat conftest.$ac_ext >&5
5175 libs_x="-lX11" 5174 libs_x="-lX11"
5176 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 5175 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
5177 5176
5178 5177
5179 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 5178 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
5180 echo "configure:5181: checking for XShapeSelectInput in -lXext" >&5 5179 echo "configure:5180: checking for XShapeSelectInput in -lXext" >&5
5181 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 5180 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
5182 5181
5183 xe_check_libs=" -lXext " 5182 xe_check_libs=" -lXext "
5184 cat > conftest.$ac_ext <<EOF 5183 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure" 5184 #line 5185 "configure"
5186 #include "confdefs.h" 5185 #include "confdefs.h"
5187 /* Override any gcc2 internal prototype to avoid an error. */ 5186 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2 5187 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */ 5188 builtin and then its argument prototype would still apply. */
5190 char XShapeSelectInput(); 5189 char XShapeSelectInput();
5191 5190
5192 int main() { 5191 int main() {
5193 XShapeSelectInput() 5192 XShapeSelectInput()
5194 ; return 0; } 5193 ; return 0; }
5195 EOF 5194 EOF
5196 if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5195 if { (eval echo configure:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5197 rm -rf conftest* 5196 rm -rf conftest*
5198 eval "ac_cv_lib_$ac_lib_var=yes" 5197 eval "ac_cv_lib_$ac_lib_var=yes"
5199 else 5198 else
5200 echo "configure: failed program was:" >&5 5199 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5 5200 cat conftest.$ac_ext >&5
5214 5213
5215 5214
5216 5215
5217 5216
5218 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 5217 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
5219 echo "configure:5220: checking for XtOpenDisplay in -lXt" >&5 5218 echo "configure:5219: checking for XtOpenDisplay in -lXt" >&5
5220 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 5219 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
5221 5220
5222 xe_check_libs=" -lXt " 5221 xe_check_libs=" -lXt "
5223 cat > conftest.$ac_ext <<EOF 5222 cat > conftest.$ac_ext <<EOF
5224 #line 5225 "configure" 5223 #line 5224 "configure"
5225 #include "confdefs.h" 5224 #include "confdefs.h"
5226 /* Override any gcc2 internal prototype to avoid an error. */ 5225 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2 5226 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */ 5227 builtin and then its argument prototype would still apply. */
5229 char XtOpenDisplay(); 5228 char XtOpenDisplay();
5230 5229
5231 int main() { 5230 int main() {
5232 XtOpenDisplay() 5231 XtOpenDisplay()
5233 ; return 0; } 5232 ; return 0; }
5234 EOF 5233 EOF
5235 if { (eval echo configure:5236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5234 if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5236 rm -rf conftest* 5235 rm -rf conftest*
5237 eval "ac_cv_lib_$ac_lib_var=yes" 5236 eval "ac_cv_lib_$ac_lib_var=yes"
5238 else 5237 else
5239 echo "configure: failed program was:" >&5 5238 echo "configure: failed program was:" >&5
5240 cat conftest.$ac_ext >&5 5239 cat conftest.$ac_ext >&5
5253 fi 5252 fi
5254 5253
5255 5254
5256 5255
5257 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 5256 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
5258 echo "configure:5259: checking the version of X11 being used" >&5 5257 echo "configure:5258: checking the version of X11 being used" >&5
5259 cat > conftest.$ac_ext <<EOF 5258 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure" 5259 #line 5260 "configure"
5261 #include "confdefs.h" 5260 #include "confdefs.h"
5262 #include <X11/Intrinsic.h> 5261 #include <X11/Intrinsic.h>
5263 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; } 5262 main(int c, char* v[]) { return c>1 ? XlibSpecificationRelease : 0; }
5264 EOF 5263 EOF
5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
5266 then 5265 then
5267 ./conftest foobar; x11_release=$? 5266 ./conftest foobar; x11_release=$?
5268 else 5267 else
5269 echo "configure: failed program was:" >&5 5268 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5 5269 cat conftest.$ac_ext >&5
5284 5283
5285 for ac_hdr in X11/Xlocale.h 5284 for ac_hdr in X11/Xlocale.h
5286 do 5285 do
5287 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5286 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5288 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5287 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5289 echo "configure:5290: checking for $ac_hdr" >&5 5288 echo "configure:5289: checking for $ac_hdr" >&5
5290 5289
5291 cat > conftest.$ac_ext <<EOF 5290 cat > conftest.$ac_ext <<EOF
5292 #line 5293 "configure" 5291 #line 5292 "configure"
5293 #include "confdefs.h" 5292 #include "confdefs.h"
5294 #include <$ac_hdr> 5293 #include <$ac_hdr>
5295 EOF 5294 EOF
5296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5297 { (eval echo configure:5298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5296 { (eval echo configure:5297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5298 ac_err=`grep -v '^ *+' conftest.out` 5297 ac_err=`grep -v '^ *+' conftest.out`
5299 if test -z "$ac_err"; then 5298 if test -z "$ac_err"; then
5300 rm -rf conftest* 5299 rm -rf conftest*
5301 eval "ac_cv_header_$ac_safe=yes" 5300 eval "ac_cv_header_$ac_safe=yes"
5302 else 5301 else
5323 fi 5322 fi
5324 done 5323 done
5325 5324
5326 5325
5327 echo $ac_n "checking for XFree86""... $ac_c" 1>&6 5326 echo $ac_n "checking for XFree86""... $ac_c" 1>&6
5328 echo "configure:5329: checking for XFree86" >&5 5327 echo "configure:5328: checking for XFree86" >&5
5329 if test -d "/usr/X386/include" -o \ 5328 if test -d "/usr/X386/include" -o \
5330 -f "/etc/XF86Config" -o \ 5329 -f "/etc/XF86Config" -o \
5331 -f "/etc/X11/XF86Config" -o \ 5330 -f "/etc/X11/XF86Config" -o \
5332 -f "/usr/X11R6/lib/X11/XF86Config"; then 5331 -f "/usr/X11R6/lib/X11/XF86Config"; then
5333 echo "$ac_t""yes" 1>&6 5332 echo "$ac_t""yes" 1>&6
5343 echo "$ac_t""no" 1>&6 5342 echo "$ac_t""no" 1>&6
5344 fi 5343 fi
5345 5344
5346 test -z "$with_xmu" && { 5345 test -z "$with_xmu" && {
5347 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 5346 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
5348 echo "configure:5349: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 5347 echo "configure:5348: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
5349 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 5348 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
5350 5349
5351 xe_check_libs=" -lXmu " 5350 xe_check_libs=" -lXmu "
5352 cat > conftest.$ac_ext <<EOF 5351 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure" 5352 #line 5353 "configure"
5354 #include "confdefs.h" 5353 #include "confdefs.h"
5355 /* Override any gcc2 internal prototype to avoid an error. */ 5354 /* Override any gcc2 internal prototype to avoid an error. */
5356 /* We use char because int might match the return type of a gcc2 5355 /* We use char because int might match the return type of a gcc2
5357 builtin and then its argument prototype would still apply. */ 5356 builtin and then its argument prototype would still apply. */
5358 char XmuReadBitmapDataFromFile(); 5357 char XmuReadBitmapDataFromFile();
5359 5358
5360 int main() { 5359 int main() {
5361 XmuReadBitmapDataFromFile() 5360 XmuReadBitmapDataFromFile()
5362 ; return 0; } 5361 ; return 0; }
5363 EOF 5362 EOF
5364 if { (eval echo configure:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5363 if { (eval echo configure:5364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5365 rm -rf conftest* 5364 rm -rf conftest*
5366 eval "ac_cv_lib_$ac_lib_var=yes" 5365 eval "ac_cv_lib_$ac_lib_var=yes"
5367 else 5366 else
5368 echo "configure: failed program was:" >&5 5367 echo "configure: failed program was:" >&5
5369 cat conftest.$ac_ext >&5 5368 cat conftest.$ac_ext >&5
5389 else libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi 5388 else libs_x="-lXmu $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXmu\" to \$libs_x"; fi
5390 fi 5389 fi
5391 5390
5392 5391
5393 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 5392 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
5394 echo "configure:5395: checking for main in -lXbsd" >&5 5393 echo "configure:5394: checking for main in -lXbsd" >&5
5395 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 5394 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
5396 5395
5397 xe_check_libs=" -lXbsd " 5396 xe_check_libs=" -lXbsd "
5398 cat > conftest.$ac_ext <<EOF 5397 cat > conftest.$ac_ext <<EOF
5399 #line 5400 "configure" 5398 #line 5399 "configure"
5400 #include "confdefs.h" 5399 #include "confdefs.h"
5401 5400
5402 int main() { 5401 int main() {
5403 main() 5402 main()
5404 ; return 0; } 5403 ; return 0; }
5405 EOF 5404 EOF
5406 if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5405 if { (eval echo configure:5406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5407 rm -rf conftest* 5406 rm -rf conftest*
5408 eval "ac_cv_lib_$ac_lib_var=yes" 5407 eval "ac_cv_lib_$ac_lib_var=yes"
5409 else 5408 else
5410 echo "configure: failed program was:" >&5 5409 echo "configure: failed program was:" >&5
5411 cat conftest.$ac_ext >&5 5410 cat conftest.$ac_ext >&5
5424 5423
5425 5424
5426 5425
5427 5426
5428 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 5427 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
5429 echo "configure:5430: checking for XawScrollbarSetThumb in -lXaw" >&5 5428 echo "configure:5429: checking for XawScrollbarSetThumb in -lXaw" >&5
5430 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 5429 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5431 5430
5432 xe_check_libs=" -lXaw " 5431 xe_check_libs=" -lXaw "
5433 cat > conftest.$ac_ext <<EOF 5432 cat > conftest.$ac_ext <<EOF
5434 #line 5435 "configure" 5433 #line 5434 "configure"
5435 #include "confdefs.h" 5434 #include "confdefs.h"
5436 /* Override any gcc2 internal prototype to avoid an error. */ 5435 /* Override any gcc2 internal prototype to avoid an error. */
5437 /* We use char because int might match the return type of a gcc2 5436 /* We use char because int might match the return type of a gcc2
5438 builtin and then its argument prototype would still apply. */ 5437 builtin and then its argument prototype would still apply. */
5439 char XawScrollbarSetThumb(); 5438 char XawScrollbarSetThumb();
5440 5439
5441 int main() { 5440 int main() {
5442 XawScrollbarSetThumb() 5441 XawScrollbarSetThumb()
5443 ; return 0; } 5442 ; return 0; }
5444 EOF 5443 EOF
5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5444 if { (eval echo configure:5445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5446 rm -rf conftest* 5445 rm -rf conftest*
5447 eval "ac_cv_lib_$ac_lib_var=yes" 5446 eval "ac_cv_lib_$ac_lib_var=yes"
5448 else 5447 else
5449 echo "configure: failed program was:" >&5 5448 echo "configure: failed program was:" >&5
5450 cat conftest.$ac_ext >&5 5449 cat conftest.$ac_ext >&5
5464 5463
5465 5464
5466 if test "$have_xaw" = "yes"; then 5465 if test "$have_xaw" = "yes"; then
5467 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'` 5466 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'`
5468 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6 5467 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6
5469 echo "configure:5470: checking for X11/Xaw/Reports.h" >&5 5468 echo "configure:5469: checking for X11/Xaw/Reports.h" >&5
5470 5469
5471 cat > conftest.$ac_ext <<EOF 5470 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure" 5471 #line 5472 "configure"
5473 #include "confdefs.h" 5472 #include "confdefs.h"
5474 #include <X11/Xaw/Reports.h> 5473 #include <X11/Xaw/Reports.h>
5475 EOF 5474 EOF
5476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5477 { (eval echo configure:5478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5476 { (eval echo configure:5477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5478 ac_err=`grep -v '^ *+' conftest.out` 5477 ac_err=`grep -v '^ *+' conftest.out`
5479 if test -z "$ac_err"; then 5478 if test -z "$ac_err"; then
5480 rm -rf conftest* 5479 rm -rf conftest*
5481 eval "ac_cv_header_$ac_safe=yes" 5480 eval "ac_cv_header_$ac_safe=yes"
5482 else 5481 else
5529 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5528 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5530 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5529 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5531 esac 5530 esac
5532 5531
5533 echo "checking for session-management option" 1>&6 5532 echo "checking for session-management option" 1>&6
5534 echo "configure:5535: checking for session-management option" >&5; 5533 echo "configure:5534: checking for session-management option" >&5;
5535 if test "$with_session" != "no"; then 5534 if test "$with_session" != "no"; then
5536 { test "$extra_verbose" = "yes" && cat << \EOF 5535 { test "$extra_verbose" = "yes" && cat << \EOF
5537 Defining HAVE_SESSION 5536 Defining HAVE_SESSION
5538 EOF 5537 EOF
5539 cat >> confdefs.h <<\EOF 5538 cat >> confdefs.h <<\EOF
5544 fi 5543 fi
5545 5544
5546 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5545 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5547 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5546 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5548 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5547 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5549 echo "configure:5550: checking for X11/Xauth.h" >&5 5548 echo "configure:5549: checking for X11/Xauth.h" >&5
5550 5549
5551 cat > conftest.$ac_ext <<EOF 5550 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure" 5551 #line 5552 "configure"
5553 #include "confdefs.h" 5552 #include "confdefs.h"
5554 #include <X11/Xauth.h> 5553 #include <X11/Xauth.h>
5555 EOF 5554 EOF
5556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5557 { (eval echo configure:5558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5556 { (eval echo configure:5557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5558 ac_err=`grep -v '^ *+' conftest.out` 5557 ac_err=`grep -v '^ *+' conftest.out`
5559 if test -z "$ac_err"; then 5558 if test -z "$ac_err"; then
5560 rm -rf conftest* 5559 rm -rf conftest*
5561 eval "ac_cv_header_$ac_safe=yes" 5560 eval "ac_cv_header_$ac_safe=yes"
5562 else 5561 else
5575 with_xauth=no 5574 with_xauth=no
5576 fi 5575 fi
5577 } 5576 }
5578 test -z "$with_xauth" && { 5577 test -z "$with_xauth" && {
5579 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5578 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5580 echo "configure:5581: checking for XauGetAuthByAddr in -lXau" >&5 5579 echo "configure:5580: checking for XauGetAuthByAddr in -lXau" >&5
5581 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5580 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5582 5581
5583 xe_check_libs=" -lXau " 5582 xe_check_libs=" -lXau "
5584 cat > conftest.$ac_ext <<EOF 5583 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure" 5584 #line 5585 "configure"
5586 #include "confdefs.h" 5585 #include "confdefs.h"
5587 /* Override any gcc2 internal prototype to avoid an error. */ 5586 /* Override any gcc2 internal prototype to avoid an error. */
5588 /* We use char because int might match the return type of a gcc2 5587 /* We use char because int might match the return type of a gcc2
5589 builtin and then its argument prototype would still apply. */ 5588 builtin and then its argument prototype would still apply. */
5590 char XauGetAuthByAddr(); 5589 char XauGetAuthByAddr();
5591 5590
5592 int main() { 5591 int main() {
5593 XauGetAuthByAddr() 5592 XauGetAuthByAddr()
5594 ; return 0; } 5593 ; return 0; }
5595 EOF 5594 EOF
5596 if { (eval echo configure:5597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5595 if { (eval echo configure:5596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5597 rm -rf conftest* 5596 rm -rf conftest*
5598 eval "ac_cv_lib_$ac_lib_var=yes" 5597 eval "ac_cv_lib_$ac_lib_var=yes"
5599 else 5598 else
5600 echo "configure: failed program was:" >&5 5599 echo "configure: failed program was:" >&5
5601 cat conftest.$ac_ext >&5 5600 cat conftest.$ac_ext >&5
5632 fi 5631 fi
5633 5632
5634 5633
5635 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5634 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5636 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5635 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5637 echo "configure:5638: checking for OffiX/DragAndDrop.h" >&5 5636 echo "configure:5637: checking for OffiX/DragAndDrop.h" >&5
5638 5637
5639 cat > conftest.$ac_ext <<EOF 5638 cat > conftest.$ac_ext <<EOF
5640 #line 5641 "configure" 5639 #line 5640 "configure"
5641 #include "confdefs.h" 5640 #include "confdefs.h"
5642 #include <OffiX/DragAndDrop.h> 5641 #include <OffiX/DragAndDrop.h>
5643 EOF 5642 EOF
5644 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5645 { (eval echo configure:5646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5644 { (eval echo configure:5645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5646 ac_err=`grep -v '^ *+' conftest.out` 5645 ac_err=`grep -v '^ *+' conftest.out`
5647 if test -z "$ac_err"; then 5646 if test -z "$ac_err"; then
5648 rm -rf conftest* 5647 rm -rf conftest*
5649 eval "ac_cv_header_$ac_safe=yes" 5648 eval "ac_cv_header_$ac_safe=yes"
5650 else 5649 else
5663 with_offix=no 5662 with_offix=no
5664 fi 5663 fi
5665 } 5664 }
5666 test -z "$with_offix" && { 5665 test -z "$with_offix" && {
5667 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5666 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5668 echo "configure:5669: checking for DndInitialize in -lDnd" >&5 5667 echo "configure:5668: checking for DndInitialize in -lDnd" >&5
5669 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5668 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5670 5669
5671 xe_check_libs=" -lDnd " 5670 xe_check_libs=" -lDnd "
5672 cat > conftest.$ac_ext <<EOF 5671 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure" 5672 #line 5673 "configure"
5674 #include "confdefs.h" 5673 #include "confdefs.h"
5675 /* Override any gcc2 internal prototype to avoid an error. */ 5674 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2 5675 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */ 5676 builtin and then its argument prototype would still apply. */
5678 char DndInitialize(); 5677 char DndInitialize();
5679 5678
5680 int main() { 5679 int main() {
5681 DndInitialize() 5680 DndInitialize()
5682 ; return 0; } 5681 ; return 0; }
5683 EOF 5682 EOF
5684 if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5683 if { (eval echo configure:5684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5685 rm -rf conftest* 5684 rm -rf conftest*
5686 eval "ac_cv_lib_$ac_lib_var=yes" 5685 eval "ac_cv_lib_$ac_lib_var=yes"
5687 else 5686 else
5688 echo "configure: failed program was:" >&5 5687 echo "configure: failed program was:" >&5
5689 cat conftest.$ac_ext >&5 5688 cat conftest.$ac_ext >&5
5718 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5717 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5719 if test "$with_tooltalk" != "no" ; then 5718 if test "$with_tooltalk" != "no" ; then
5720 for dir in "" "Tt/" "desktop/" ; do 5719 for dir in "" "Tt/" "desktop/" ; do
5721 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5720 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5722 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5721 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5723 echo "configure:5724: checking for ${dir}tt_c.h" >&5 5722 echo "configure:5723: checking for ${dir}tt_c.h" >&5
5724 5723
5725 cat > conftest.$ac_ext <<EOF 5724 cat > conftest.$ac_ext <<EOF
5726 #line 5727 "configure" 5725 #line 5726 "configure"
5727 #include "confdefs.h" 5726 #include "confdefs.h"
5728 #include <${dir}tt_c.h> 5727 #include <${dir}tt_c.h>
5729 EOF 5728 EOF
5730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5731 { (eval echo configure:5732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5730 { (eval echo configure:5731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5732 ac_err=`grep -v '^ *+' conftest.out` 5731 ac_err=`grep -v '^ *+' conftest.out`
5733 if test -z "$ac_err"; then 5732 if test -z "$ac_err"; then
5734 rm -rf conftest* 5733 rm -rf conftest*
5735 eval "ac_cv_header_$ac_safe=yes" 5734 eval "ac_cv_header_$ac_safe=yes"
5736 else 5735 else
5755 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5754 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5756 5755
5757 xe_msg_checking="for tt_message_create in -ltt" 5756 xe_msg_checking="for tt_message_create in -ltt"
5758 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5757 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5759 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5758 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5760 echo "configure:5761: checking "$xe_msg_checking"" >&5 5759 echo "configure:5760: checking "$xe_msg_checking"" >&5
5761 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5760 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5762 5761
5763 xe_check_libs=" -ltt $extra_libs" 5762 xe_check_libs=" -ltt $extra_libs"
5764 cat > conftest.$ac_ext <<EOF 5763 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure" 5764 #line 5765 "configure"
5766 #include "confdefs.h" 5765 #include "confdefs.h"
5767 /* Override any gcc2 internal prototype to avoid an error. */ 5766 /* Override any gcc2 internal prototype to avoid an error. */
5768 /* We use char because int might match the return type of a gcc2 5767 /* We use char because int might match the return type of a gcc2
5769 builtin and then its argument prototype would still apply. */ 5768 builtin and then its argument prototype would still apply. */
5770 char tt_message_create(); 5769 char tt_message_create();
5771 5770
5772 int main() { 5771 int main() {
5773 tt_message_create() 5772 tt_message_create()
5774 ; return 0; } 5773 ; return 0; }
5775 EOF 5774 EOF
5776 if { (eval echo configure:5777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5775 if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5777 rm -rf conftest* 5776 rm -rf conftest*
5778 eval "ac_cv_lib_$ac_lib_var=yes" 5777 eval "ac_cv_lib_$ac_lib_var=yes"
5779 else 5778 else
5780 echo "configure: failed program was:" >&5 5779 echo "configure: failed program was:" >&5
5781 cat conftest.$ac_ext >&5 5780 cat conftest.$ac_ext >&5
5820 fi 5819 fi
5821 fi 5820 fi
5822 5821
5823 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5822 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5824 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5823 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5825 echo "configure:5826: checking for Dt/Dt.h" >&5 5824 echo "configure:5825: checking for Dt/Dt.h" >&5
5826 5825
5827 cat > conftest.$ac_ext <<EOF 5826 cat > conftest.$ac_ext <<EOF
5828 #line 5829 "configure" 5827 #line 5828 "configure"
5829 #include "confdefs.h" 5828 #include "confdefs.h"
5830 #include <Dt/Dt.h> 5829 #include <Dt/Dt.h>
5831 EOF 5830 EOF
5832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5833 { (eval echo configure:5834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5832 { (eval echo configure:5833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5834 ac_err=`grep -v '^ *+' conftest.out` 5833 ac_err=`grep -v '^ *+' conftest.out`
5835 if test -z "$ac_err"; then 5834 if test -z "$ac_err"; then
5836 rm -rf conftest* 5835 rm -rf conftest*
5837 eval "ac_cv_header_$ac_safe=yes" 5836 eval "ac_cv_header_$ac_safe=yes"
5838 else 5837 else
5851 with_cde=no 5850 with_cde=no
5852 fi 5851 fi
5853 } 5852 }
5854 test -z "$with_cde" && { 5853 test -z "$with_cde" && {
5855 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5854 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5856 echo "configure:5857: checking for DtDndDragStart in -lDtSvc" >&5 5855 echo "configure:5856: checking for DtDndDragStart in -lDtSvc" >&5
5857 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5856 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5858 5857
5859 xe_check_libs=" -lDtSvc " 5858 xe_check_libs=" -lDtSvc "
5860 cat > conftest.$ac_ext <<EOF 5859 cat > conftest.$ac_ext <<EOF
5861 #line 5862 "configure" 5860 #line 5861 "configure"
5862 #include "confdefs.h" 5861 #include "confdefs.h"
5863 /* Override any gcc2 internal prototype to avoid an error. */ 5862 /* Override any gcc2 internal prototype to avoid an error. */
5864 /* We use char because int might match the return type of a gcc2 5863 /* We use char because int might match the return type of a gcc2
5865 builtin and then its argument prototype would still apply. */ 5864 builtin and then its argument prototype would still apply. */
5866 char DtDndDragStart(); 5865 char DtDndDragStart();
5867 5866
5868 int main() { 5867 int main() {
5869 DtDndDragStart() 5868 DtDndDragStart()
5870 ; return 0; } 5869 ; return 0; }
5871 EOF 5870 EOF
5872 if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5871 if { (eval echo configure:5872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5873 rm -rf conftest* 5872 rm -rf conftest*
5874 eval "ac_cv_lib_$ac_lib_var=yes" 5873 eval "ac_cv_lib_$ac_lib_var=yes"
5875 else 5874 else
5876 echo "configure: failed program was:" >&5 5875 echo "configure: failed program was:" >&5
5877 cat conftest.$ac_ext >&5 5876 cat conftest.$ac_ext >&5
5914 EOF 5913 EOF
5915 } 5914 }
5916 5915
5917 5916
5918 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5917 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5919 echo "configure:5920: checking for main in -lenergize" >&5 5918 echo "configure:5919: checking for main in -lenergize" >&5
5920 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5919 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5921 5920
5922 xe_check_libs=" -lenergize " 5921 xe_check_libs=" -lenergize "
5923 cat > conftest.$ac_ext <<EOF 5922 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure" 5923 #line 5924 "configure"
5925 #include "confdefs.h" 5924 #include "confdefs.h"
5926 5925
5927 int main() { 5926 int main() {
5928 main() 5927 main()
5929 ; return 0; } 5928 ; return 0; }
5930 EOF 5929 EOF
5931 if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5930 if { (eval echo configure:5931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5932 rm -rf conftest* 5931 rm -rf conftest*
5933 eval "ac_cv_lib_$ac_lib_var=yes" 5932 eval "ac_cv_lib_$ac_lib_var=yes"
5934 else 5933 else
5935 echo "configure: failed program was:" >&5 5934 echo "configure: failed program was:" >&5
5936 cat conftest.$ac_ext >&5 5935 cat conftest.$ac_ext >&5
5958 5957
5959 5958
5960 if test -z "$energize_version"; then 5959 if test -z "$energize_version"; then
5961 5960
5962 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5961 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5963 echo "configure:5964: checking for main in -lconn" >&5 5962 echo "configure:5963: checking for main in -lconn" >&5
5964 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5963 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5965 5964
5966 xe_check_libs=" -lconn " 5965 xe_check_libs=" -lconn "
5967 cat > conftest.$ac_ext <<EOF 5966 cat > conftest.$ac_ext <<EOF
5968 #line 5969 "configure" 5967 #line 5968 "configure"
5969 #include "confdefs.h" 5968 #include "confdefs.h"
5970 5969
5971 int main() { 5970 int main() {
5972 main() 5971 main()
5973 ; return 0; } 5972 ; return 0; }
5974 EOF 5973 EOF
5975 if { (eval echo configure:5976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5976 rm -rf conftest* 5975 rm -rf conftest*
5977 eval "ac_cv_lib_$ac_lib_var=yes" 5976 eval "ac_cv_lib_$ac_lib_var=yes"
5978 else 5977 else
5979 echo "configure: failed program was:" >&5 5978 echo "configure: failed program was:" >&5
5980 cat conftest.$ac_ext >&5 5979 cat conftest.$ac_ext >&5
6003 6002
6004 6003
6005 fi 6004 fi
6006 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 6005 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
6007 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 6006 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
6008 echo "configure:6009: checking for editorconn.h" >&5 6007 echo "configure:6008: checking for editorconn.h" >&5
6009 6008
6010 cat > conftest.$ac_ext <<EOF 6009 cat > conftest.$ac_ext <<EOF
6011 #line 6012 "configure" 6010 #line 6011 "configure"
6012 #include "confdefs.h" 6011 #include "confdefs.h"
6013 #include <editorconn.h> 6012 #include <editorconn.h>
6014 EOF 6013 EOF
6015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6016 { (eval echo configure:6017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6015 { (eval echo configure:6016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6017 ac_err=`grep -v '^ *+' conftest.out` 6016 ac_err=`grep -v '^ *+' conftest.out`
6018 if test -z "$ac_err"; then 6017 if test -z "$ac_err"; then
6019 rm -rf conftest* 6018 rm -rf conftest*
6020 eval "ac_cv_header_$ac_safe=yes" 6019 eval "ac_cv_header_$ac_safe=yes"
6021 else 6020 else
6053 6052
6054 fi 6053 fi
6055 6054
6056 6055
6057 echo "checking for graphics libraries" 1>&6 6056 echo "checking for graphics libraries" 1>&6
6058 echo "configure:6059: checking for graphics libraries" >&5 6057 echo "configure:6058: checking for graphics libraries" >&5
6059 test -z "$with_gif" && with_gif=yes; 6058 test -z "$with_gif" && with_gif=yes;
6060 if test "$with_gif" = "yes"; then 6059 if test "$with_gif" = "yes"; then
6061 { test "$extra_verbose" = "yes" && cat << \EOF 6060 { test "$extra_verbose" = "yes" && cat << \EOF
6062 Defining HAVE_GIF 6061 Defining HAVE_GIF
6063 EOF 6062 EOF
6070 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 6069 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
6071 fi 6070 fi
6072 fi 6071 fi
6073 6072
6074 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6073 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6075 echo "configure:6076: checking for Xpm - no older than 3.4f" >&5 6074 echo "configure:6075: checking for Xpm - no older than 3.4f" >&5
6076 xe_check_libs=-lXpm 6075 xe_check_libs=-lXpm
6077 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 6076 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure" 6077 #line 6078 "configure"
6079 #include "confdefs.h" 6078 #include "confdefs.h"
6080 #include <X11/xpm.h> 6079 #include <X11/xpm.h>
6081 int main(int c, char **v) { 6080 int main(int c, char **v) {
6082 return c == 1 ? 0 : 6081 return c == 1 ? 0 :
6083 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6082 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6084 XpmIncludeVersion < 30406 ? 2 : 6083 XpmIncludeVersion < 30406 ? 2 :
6085 0 ; 6084 0 ;
6086 } 6085 }
6087 EOF 6086 EOF
6088 if { (eval echo configure:6089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6087 if { (eval echo configure:6088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6089 then 6088 then
6090 ./conftest foobar; xpm_status=$?; 6089 ./conftest foobar; xpm_status=$?;
6091 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 6090 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
6092 else 6091 else
6093 echo "configure: failed program was:" >&5 6092 echo "configure: failed program was:" >&5
6121 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6120 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6122 fi 6121 fi
6123 6122
6124 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6123 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6125 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6124 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6126 echo "configure:6127: checking for compface.h" >&5 6125 echo "configure:6126: checking for compface.h" >&5
6127 6126
6128 cat > conftest.$ac_ext <<EOF 6127 cat > conftest.$ac_ext <<EOF
6129 #line 6130 "configure" 6128 #line 6129 "configure"
6130 #include "confdefs.h" 6129 #include "confdefs.h"
6131 #include <compface.h> 6130 #include <compface.h>
6132 EOF 6131 EOF
6133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6134 { (eval echo configure:6135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6133 { (eval echo configure:6134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6135 ac_err=`grep -v '^ *+' conftest.out` 6134 ac_err=`grep -v '^ *+' conftest.out`
6136 if test -z "$ac_err"; then 6135 if test -z "$ac_err"; then
6137 rm -rf conftest* 6136 rm -rf conftest*
6138 eval "ac_cv_header_$ac_safe=yes" 6137 eval "ac_cv_header_$ac_safe=yes"
6139 else 6138 else
6152 with_xface=no 6151 with_xface=no
6153 fi 6152 fi
6154 } 6153 }
6155 test -z "$with_xface" && { 6154 test -z "$with_xface" && {
6156 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6155 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6157 echo "configure:6158: checking for UnGenFace in -lcompface" >&5 6156 echo "configure:6157: checking for UnGenFace in -lcompface" >&5
6158 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6157 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6159 6158
6160 xe_check_libs=" -lcompface " 6159 xe_check_libs=" -lcompface "
6161 cat > conftest.$ac_ext <<EOF 6160 cat > conftest.$ac_ext <<EOF
6162 #line 6163 "configure" 6161 #line 6162 "configure"
6163 #include "confdefs.h" 6162 #include "confdefs.h"
6164 /* Override any gcc2 internal prototype to avoid an error. */ 6163 /* Override any gcc2 internal prototype to avoid an error. */
6165 /* We use char because int might match the return type of a gcc2 6164 /* We use char because int might match the return type of a gcc2
6166 builtin and then its argument prototype would still apply. */ 6165 builtin and then its argument prototype would still apply. */
6167 char UnGenFace(); 6166 char UnGenFace();
6168 6167
6169 int main() { 6168 int main() {
6170 UnGenFace() 6169 UnGenFace()
6171 ; return 0; } 6170 ; return 0; }
6172 EOF 6171 EOF
6173 if { (eval echo configure:6174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6172 if { (eval echo configure:6173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6174 rm -rf conftest* 6173 rm -rf conftest*
6175 eval "ac_cv_lib_$ac_lib_var=yes" 6174 eval "ac_cv_lib_$ac_lib_var=yes"
6176 else 6175 else
6177 echo "configure: failed program was:" >&5 6176 echo "configure: failed program was:" >&5
6178 cat conftest.$ac_ext >&5 6177 cat conftest.$ac_ext >&5
6204 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 6203 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6205 fi 6204 fi
6206 6205
6207 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6206 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6208 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6207 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6209 echo "configure:6210: checking for jpeglib.h" >&5 6208 echo "configure:6209: checking for jpeglib.h" >&5
6210 6209
6211 cat > conftest.$ac_ext <<EOF 6210 cat > conftest.$ac_ext <<EOF
6212 #line 6213 "configure" 6211 #line 6212 "configure"
6213 #include "confdefs.h" 6212 #include "confdefs.h"
6214 #include <jpeglib.h> 6213 #include <jpeglib.h>
6215 EOF 6214 EOF
6216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6217 { (eval echo configure:6218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6216 { (eval echo configure:6217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6218 ac_err=`grep -v '^ *+' conftest.out` 6217 ac_err=`grep -v '^ *+' conftest.out`
6219 if test -z "$ac_err"; then 6218 if test -z "$ac_err"; then
6220 rm -rf conftest* 6219 rm -rf conftest*
6221 eval "ac_cv_header_$ac_safe=yes" 6220 eval "ac_cv_header_$ac_safe=yes"
6222 else 6221 else
6235 with_jpeg=no 6234 with_jpeg=no
6236 fi 6235 fi
6237 } 6236 }
6238 test -z "$with_jpeg" && { 6237 test -z "$with_jpeg" && {
6239 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6238 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6240 echo "configure:6241: checking for jpeg_destroy_decompress in -ljpeg" >&5 6239 echo "configure:6240: checking for jpeg_destroy_decompress in -ljpeg" >&5
6241 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6240 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6242 6241
6243 xe_check_libs=" -ljpeg " 6242 xe_check_libs=" -ljpeg "
6244 cat > conftest.$ac_ext <<EOF 6243 cat > conftest.$ac_ext <<EOF
6245 #line 6246 "configure" 6244 #line 6245 "configure"
6246 #include "confdefs.h" 6245 #include "confdefs.h"
6247 /* Override any gcc2 internal prototype to avoid an error. */ 6246 /* Override any gcc2 internal prototype to avoid an error. */
6248 /* We use char because int might match the return type of a gcc2 6247 /* We use char because int might match the return type of a gcc2
6249 builtin and then its argument prototype would still apply. */ 6248 builtin and then its argument prototype would still apply. */
6250 char jpeg_destroy_decompress(); 6249 char jpeg_destroy_decompress();
6251 6250
6252 int main() { 6251 int main() {
6253 jpeg_destroy_decompress() 6252 jpeg_destroy_decompress()
6254 ; return 0; } 6253 ; return 0; }
6255 EOF 6254 EOF
6256 if { (eval echo configure:6257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6255 if { (eval echo configure:6256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6257 rm -rf conftest* 6256 rm -rf conftest*
6258 eval "ac_cv_lib_$ac_lib_var=yes" 6257 eval "ac_cv_lib_$ac_lib_var=yes"
6259 else 6258 else
6260 echo "configure: failed program was:" >&5 6259 echo "configure: failed program was:" >&5
6261 cat conftest.$ac_ext >&5 6260 cat conftest.$ac_ext >&5
6287 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6286 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6288 fi 6287 fi
6289 6288
6290 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6289 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6291 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6290 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6292 echo "configure:6293: checking for png.h" >&5 6291 echo "configure:6292: checking for png.h" >&5
6293 6292
6294 cat > conftest.$ac_ext <<EOF 6293 cat > conftest.$ac_ext <<EOF
6295 #line 6296 "configure" 6294 #line 6295 "configure"
6296 #include "confdefs.h" 6295 #include "confdefs.h"
6297 #include <png.h> 6296 #include <png.h>
6298 EOF 6297 EOF
6299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6300 { (eval echo configure:6301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6299 { (eval echo configure:6300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6301 ac_err=`grep -v '^ *+' conftest.out` 6300 ac_err=`grep -v '^ *+' conftest.out`
6302 if test -z "$ac_err"; then 6301 if test -z "$ac_err"; then
6303 rm -rf conftest* 6302 rm -rf conftest*
6304 eval "ac_cv_header_$ac_safe=yes" 6303 eval "ac_cv_header_$ac_safe=yes"
6305 else 6304 else
6317 echo "$ac_t""no" 1>&6 6316 echo "$ac_t""no" 1>&6
6318 with_png=no 6317 with_png=no
6319 fi 6318 fi
6320 } 6319 }
6321 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6320 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6322 echo "configure:6323: checking for pow" >&5 6321 echo "configure:6322: checking for pow" >&5
6323 6322
6324 cat > conftest.$ac_ext <<EOF 6323 cat > conftest.$ac_ext <<EOF
6325 #line 6326 "configure" 6324 #line 6325 "configure"
6326 #include "confdefs.h" 6325 #include "confdefs.h"
6327 /* System header to define __stub macros and hopefully few prototypes, 6326 /* System header to define __stub macros and hopefully few prototypes,
6328 which can conflict with char pow(); below. */ 6327 which can conflict with char pow(); below. */
6329 #include <assert.h> 6328 #include <assert.h>
6330 /* Override any gcc2 internal prototype to avoid an error. */ 6329 /* Override any gcc2 internal prototype to avoid an error. */
6343 pow(); 6342 pow();
6344 #endif 6343 #endif
6345 6344
6346 ; return 0; } 6345 ; return 0; }
6347 EOF 6346 EOF
6348 if { (eval echo configure:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6347 if { (eval echo configure:6348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6349 rm -rf conftest* 6348 rm -rf conftest*
6350 eval "ac_cv_func_pow=yes" 6349 eval "ac_cv_func_pow=yes"
6351 else 6350 else
6352 echo "configure: failed program was:" >&5 6351 echo "configure: failed program was:" >&5
6353 cat conftest.$ac_ext >&5 6352 cat conftest.$ac_ext >&5
6368 for extra_libs in "" "-lz" "-lgz"; do 6367 for extra_libs in "" "-lz" "-lgz"; do
6369 6368
6370 xe_msg_checking="for png_read_image in -lpng" 6369 xe_msg_checking="for png_read_image in -lpng"
6371 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6370 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6372 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6371 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6373 echo "configure:6374: checking "$xe_msg_checking"" >&5 6372 echo "configure:6373: checking "$xe_msg_checking"" >&5
6374 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6373 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6375 6374
6376 xe_check_libs=" -lpng $extra_libs" 6375 xe_check_libs=" -lpng $extra_libs"
6377 cat > conftest.$ac_ext <<EOF 6376 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure" 6377 #line 6378 "configure"
6379 #include "confdefs.h" 6378 #include "confdefs.h"
6380 /* Override any gcc2 internal prototype to avoid an error. */ 6379 /* Override any gcc2 internal prototype to avoid an error. */
6381 /* We use char because int might match the return type of a gcc2 6380 /* We use char because int might match the return type of a gcc2
6382 builtin and then its argument prototype would still apply. */ 6381 builtin and then its argument prototype would still apply. */
6383 char png_read_image(); 6382 char png_read_image();
6384 6383
6385 int main() { 6384 int main() {
6386 png_read_image() 6385 png_read_image()
6387 ; return 0; } 6386 ; return 0; }
6388 EOF 6387 EOF
6389 if { (eval echo configure:6390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6388 if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6390 rm -rf conftest* 6389 rm -rf conftest*
6391 eval "ac_cv_lib_$ac_lib_var=yes" 6390 eval "ac_cv_lib_$ac_lib_var=yes"
6392 else 6391 else
6393 echo "configure: failed program was:" >&5 6392 echo "configure: failed program was:" >&5
6394 cat conftest.$ac_ext >&5 6393 cat conftest.$ac_ext >&5
6434 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 6433 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
6435 fi 6434 fi
6436 6435
6437 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6436 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6438 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6437 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6439 echo "configure:6440: checking for Xm/Xm.h" >&5 6438 echo "configure:6439: checking for Xm/Xm.h" >&5
6440 6439
6441 cat > conftest.$ac_ext <<EOF 6440 cat > conftest.$ac_ext <<EOF
6442 #line 6443 "configure" 6441 #line 6442 "configure"
6443 #include "confdefs.h" 6442 #include "confdefs.h"
6444 #include <Xm/Xm.h> 6443 #include <Xm/Xm.h>
6445 EOF 6444 EOF
6446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6447 { (eval echo configure:6448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6446 { (eval echo configure:6447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6448 ac_err=`grep -v '^ *+' conftest.out` 6447 ac_err=`grep -v '^ *+' conftest.out`
6449 if test -z "$ac_err"; then 6448 if test -z "$ac_err"; then
6450 rm -rf conftest* 6449 rm -rf conftest*
6451 eval "ac_cv_header_$ac_safe=yes" 6450 eval "ac_cv_header_$ac_safe=yes"
6452 else 6451 else
6459 rm -f conftest* 6458 rm -f conftest*
6460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6461 echo "$ac_t""yes" 1>&6 6460 echo "$ac_t""yes" 1>&6
6462 6461
6463 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6462 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6464 echo "configure:6465: checking for XmStringFree in -lXm" >&5 6463 echo "configure:6464: checking for XmStringFree in -lXm" >&5
6465 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6464 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6466 6465
6467 xe_check_libs=" -lXm " 6466 xe_check_libs=" -lXm "
6468 cat > conftest.$ac_ext <<EOF 6467 cat > conftest.$ac_ext <<EOF
6469 #line 6470 "configure" 6468 #line 6469 "configure"
6470 #include "confdefs.h" 6469 #include "confdefs.h"
6471 /* Override any gcc2 internal prototype to avoid an error. */ 6470 /* Override any gcc2 internal prototype to avoid an error. */
6472 /* We use char because int might match the return type of a gcc2 6471 /* We use char because int might match the return type of a gcc2
6473 builtin and then its argument prototype would still apply. */ 6472 builtin and then its argument prototype would still apply. */
6474 char XmStringFree(); 6473 char XmStringFree();
6475 6474
6476 int main() { 6475 int main() {
6477 XmStringFree() 6476 XmStringFree()
6478 ; return 0; } 6477 ; return 0; }
6479 EOF 6478 EOF
6480 if { (eval echo configure:6481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6481 rm -rf conftest* 6480 rm -rf conftest*
6482 eval "ac_cv_lib_$ac_lib_var=yes" 6481 eval "ac_cv_lib_$ac_lib_var=yes"
6483 else 6482 else
6484 echo "configure: failed program was:" >&5 6483 echo "configure: failed program was:" >&5
6485 cat conftest.$ac_ext >&5 6484 cat conftest.$ac_ext >&5
6723 6722
6724 test -z "$with_mule" && with_mule=no 6723 test -z "$with_mule" && with_mule=no
6725 6724
6726 if test "$with_mule" = "yes" ; then 6725 if test "$with_mule" = "yes" ; then
6727 echo "checking for Mule-related features" 1>&6 6726 echo "checking for Mule-related features" 1>&6
6728 echo "configure:6729: checking for Mule-related features" >&5 6727 echo "configure:6728: checking for Mule-related features" >&5
6729 { test "$extra_verbose" = "yes" && cat << \EOF 6728 { test "$extra_verbose" = "yes" && cat << \EOF
6730 Defining MULE 6729 Defining MULE
6731 EOF 6730 EOF
6732 cat >> confdefs.h <<\EOF 6731 cat >> confdefs.h <<\EOF
6733 #define MULE 1 6732 #define MULE 1
6740 6739
6741 for ac_hdr in libintl.h 6740 for ac_hdr in libintl.h
6742 do 6741 do
6743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6745 echo "configure:6746: checking for $ac_hdr" >&5 6744 echo "configure:6745: checking for $ac_hdr" >&5
6746 6745
6747 cat > conftest.$ac_ext <<EOF 6746 cat > conftest.$ac_ext <<EOF
6748 #line 6749 "configure" 6747 #line 6748 "configure"
6749 #include "confdefs.h" 6748 #include "confdefs.h"
6750 #include <$ac_hdr> 6749 #include <$ac_hdr>
6751 EOF 6750 EOF
6752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6753 { (eval echo configure:6754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6752 { (eval echo configure:6753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6754 ac_err=`grep -v '^ *+' conftest.out` 6753 ac_err=`grep -v '^ *+' conftest.out`
6755 if test -z "$ac_err"; then 6754 if test -z "$ac_err"; then
6756 rm -rf conftest* 6755 rm -rf conftest*
6757 eval "ac_cv_header_$ac_safe=yes" 6756 eval "ac_cv_header_$ac_safe=yes"
6758 else 6757 else
6779 fi 6778 fi
6780 done 6779 done
6781 6780
6782 6781
6783 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6782 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6784 echo "configure:6785: checking for strerror in -lintl" >&5 6783 echo "configure:6784: checking for strerror in -lintl" >&5
6785 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6784 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6786 6785
6787 xe_check_libs=" -lintl " 6786 xe_check_libs=" -lintl "
6788 cat > conftest.$ac_ext <<EOF 6787 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure" 6788 #line 6789 "configure"
6790 #include "confdefs.h" 6789 #include "confdefs.h"
6791 /* Override any gcc2 internal prototype to avoid an error. */ 6790 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2 6791 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */ 6792 builtin and then its argument prototype would still apply. */
6794 char strerror(); 6793 char strerror();
6795 6794
6796 int main() { 6795 int main() {
6797 strerror() 6796 strerror()
6798 ; return 0; } 6797 ; return 0; }
6799 EOF 6798 EOF
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6801 rm -rf conftest* 6800 rm -rf conftest*
6802 eval "ac_cv_lib_$ac_lib_var=yes" 6801 eval "ac_cv_lib_$ac_lib_var=yes"
6803 else 6802 else
6804 echo "configure: failed program was:" >&5 6803 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5 6804 cat conftest.$ac_ext >&5
6828 fi 6827 fi
6829 6828
6830 6829
6831 6830
6832 echo "checking for Mule input methods" 1>&6 6831 echo "checking for Mule input methods" 1>&6
6833 echo "configure:6834: checking for Mule input methods" >&5 6832 echo "configure:6833: checking for Mule input methods" >&5
6834 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6833 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6835 case "$with_xim" in "" | "yes" ) 6834 case "$with_xim" in "" | "yes" )
6836 echo "checking for XIM" 1>&6 6835 echo "checking for XIM" 1>&6
6837 echo "configure:6838: checking for XIM" >&5 6836 echo "configure:6837: checking for XIM" >&5
6838 6837
6839 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6838 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6840 echo "configure:6841: checking for XmImMbLookupString in -lXm" >&5 6839 echo "configure:6840: checking for XmImMbLookupString in -lXm" >&5
6841 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6840 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6842 6841
6843 xe_check_libs=" -lXm " 6842 xe_check_libs=" -lXm "
6844 cat > conftest.$ac_ext <<EOF 6843 cat > conftest.$ac_ext <<EOF
6845 #line 6846 "configure" 6844 #line 6845 "configure"
6846 #include "confdefs.h" 6845 #include "confdefs.h"
6847 /* Override any gcc2 internal prototype to avoid an error. */ 6846 /* Override any gcc2 internal prototype to avoid an error. */
6848 /* We use char because int might match the return type of a gcc2 6847 /* We use char because int might match the return type of a gcc2
6849 builtin and then its argument prototype would still apply. */ 6848 builtin and then its argument prototype would still apply. */
6850 char XmImMbLookupString(); 6849 char XmImMbLookupString();
6851 6850
6852 int main() { 6851 int main() {
6853 XmImMbLookupString() 6852 XmImMbLookupString()
6854 ; return 0; } 6853 ; return 0; }
6855 EOF 6854 EOF
6856 if { (eval echo configure:6857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6855 if { (eval echo configure:6856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6857 rm -rf conftest* 6856 rm -rf conftest*
6858 eval "ac_cv_lib_$ac_lib_var=yes" 6857 eval "ac_cv_lib_$ac_lib_var=yes"
6859 else 6858 else
6860 echo "configure: failed program was:" >&5 6859 echo "configure: failed program was:" >&5
6861 cat conftest.$ac_ext >&5 6860 cat conftest.$ac_ext >&5
6914 if test "$with_xfs" = "yes"; then 6913 if test "$with_xfs" = "yes"; then
6915 with_xfs=no 6914 with_xfs=no
6916 fi 6915 fi
6917 else case "$with_xfs" in "yes" ) 6916 else case "$with_xfs" in "yes" )
6918 echo "checking for XFontSet" 1>&6 6917 echo "checking for XFontSet" 1>&6
6919 echo "configure:6920: checking for XFontSet" >&5 6918 echo "configure:6919: checking for XFontSet" >&5
6920 6919
6921 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6920 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6922 echo "configure:6923: checking for XmbDrawString in -lX11" >&5 6921 echo "configure:6922: checking for XmbDrawString in -lX11" >&5
6923 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6922 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6924 6923
6925 xe_check_libs=" -lX11 " 6924 xe_check_libs=" -lX11 "
6926 cat > conftest.$ac_ext <<EOF 6925 cat > conftest.$ac_ext <<EOF
6927 #line 6928 "configure" 6926 #line 6927 "configure"
6928 #include "confdefs.h" 6927 #include "confdefs.h"
6929 /* Override any gcc2 internal prototype to avoid an error. */ 6928 /* Override any gcc2 internal prototype to avoid an error. */
6930 /* We use char because int might match the return type of a gcc2 6929 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */ 6930 builtin and then its argument prototype would still apply. */
6932 char XmbDrawString(); 6931 char XmbDrawString();
6933 6932
6934 int main() { 6933 int main() {
6935 XmbDrawString() 6934 XmbDrawString()
6936 ; return 0; } 6935 ; return 0; }
6937 EOF 6936 EOF
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6937 if { (eval echo configure:6938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6939 rm -rf conftest* 6938 rm -rf conftest*
6940 eval "ac_cv_lib_$ac_lib_var=yes" 6939 eval "ac_cv_lib_$ac_lib_var=yes"
6941 else 6940 else
6942 echo "configure: failed program was:" >&5 6941 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5 6942 cat conftest.$ac_ext >&5
6972 fi 6971 fi
6973 fi 6972 fi
6974 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6973 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6975 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6974 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6976 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 6975 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6977 echo "configure:6978: checking for wnn/jllib.h" >&5 6976 echo "configure:6977: checking for wnn/jllib.h" >&5
6978 6977
6979 cat > conftest.$ac_ext <<EOF 6978 cat > conftest.$ac_ext <<EOF
6980 #line 6981 "configure" 6979 #line 6980 "configure"
6981 #include "confdefs.h" 6980 #include "confdefs.h"
6982 #include <wnn/jllib.h> 6981 #include <wnn/jllib.h>
6983 EOF 6982 EOF
6984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6985 { (eval echo configure:6986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6984 { (eval echo configure:6985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6986 ac_err=`grep -v '^ *+' conftest.out` 6985 ac_err=`grep -v '^ *+' conftest.out`
6987 if test -z "$ac_err"; then 6986 if test -z "$ac_err"; then
6988 rm -rf conftest* 6987 rm -rf conftest*
6989 eval "ac_cv_header_$ac_safe=yes" 6988 eval "ac_cv_header_$ac_safe=yes"
6990 else 6989 else
7005 } 7004 }
7006 if test "$with_wnn" != "no"; then 7005 if test "$with_wnn" != "no"; then
7007 for ac_func in crypt 7006 for ac_func in crypt
7008 do 7007 do
7009 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7010 echo "configure:7011: checking for $ac_func" >&5 7009 echo "configure:7010: checking for $ac_func" >&5
7011 7010
7012 cat > conftest.$ac_ext <<EOF 7011 cat > conftest.$ac_ext <<EOF
7013 #line 7014 "configure" 7012 #line 7013 "configure"
7014 #include "confdefs.h" 7013 #include "confdefs.h"
7015 /* System header to define __stub macros and hopefully few prototypes, 7014 /* System header to define __stub macros and hopefully few prototypes,
7016 which can conflict with char $ac_func(); below. */ 7015 which can conflict with char $ac_func(); below. */
7017 #include <assert.h> 7016 #include <assert.h>
7018 /* Override any gcc2 internal prototype to avoid an error. */ 7017 /* Override any gcc2 internal prototype to avoid an error. */
7031 $ac_func(); 7030 $ac_func();
7032 #endif 7031 #endif
7033 7032
7034 ; return 0; } 7033 ; return 0; }
7035 EOF 7034 EOF
7036 if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7035 if { (eval echo configure:7036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7037 rm -rf conftest* 7036 rm -rf conftest*
7038 eval "ac_cv_func_$ac_func=yes" 7037 eval "ac_cv_func_$ac_func=yes"
7039 else 7038 else
7040 echo "configure: failed program was:" >&5 7039 echo "configure: failed program was:" >&5
7041 cat conftest.$ac_ext >&5 7040 cat conftest.$ac_ext >&5
7060 fi 7059 fi
7061 done 7060 done
7062 7061
7063 test "$ac_cv_func_crypt" != "yes" && { 7062 test "$ac_cv_func_crypt" != "yes" && {
7064 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7063 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7065 echo "configure:7066: checking for crypt in -lcrypt" >&5 7064 echo "configure:7065: checking for crypt in -lcrypt" >&5
7066 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7065 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7067 7066
7068 xe_check_libs=" -lcrypt " 7067 xe_check_libs=" -lcrypt "
7069 cat > conftest.$ac_ext <<EOF 7068 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure" 7069 #line 7070 "configure"
7071 #include "confdefs.h" 7070 #include "confdefs.h"
7072 /* Override any gcc2 internal prototype to avoid an error. */ 7071 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2 7072 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */ 7073 builtin and then its argument prototype would still apply. */
7075 char crypt(); 7074 char crypt();
7076 7075
7077 int main() { 7076 int main() {
7078 crypt() 7077 crypt()
7079 ; return 0; } 7078 ; return 0; }
7080 EOF 7079 EOF
7081 if { (eval echo configure:7082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7080 if { (eval echo configure:7081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7082 rm -rf conftest* 7081 rm -rf conftest*
7083 eval "ac_cv_lib_$ac_lib_var=yes" 7082 eval "ac_cv_lib_$ac_lib_var=yes"
7084 else 7083 else
7085 echo "configure: failed program was:" >&5 7084 echo "configure: failed program was:" >&5
7086 cat conftest.$ac_ext >&5 7085 cat conftest.$ac_ext >&5
7110 7109
7111 } 7110 }
7112 fi 7111 fi
7113 test -z "$with_wnn" && { 7112 test -z "$with_wnn" && {
7114 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7113 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7115 echo "configure:7116: checking for jl_dic_list_e in -lwnn" >&5 7114 echo "configure:7115: checking for jl_dic_list_e in -lwnn" >&5
7116 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7115 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7117 7116
7118 xe_check_libs=" -lwnn " 7117 xe_check_libs=" -lwnn "
7119 cat > conftest.$ac_ext <<EOF 7118 cat > conftest.$ac_ext <<EOF
7120 #line 7121 "configure" 7119 #line 7120 "configure"
7121 #include "confdefs.h" 7120 #include "confdefs.h"
7122 /* Override any gcc2 internal prototype to avoid an error. */ 7121 /* Override any gcc2 internal prototype to avoid an error. */
7123 /* We use char because int might match the return type of a gcc2 7122 /* We use char because int might match the return type of a gcc2
7124 builtin and then its argument prototype would still apply. */ 7123 builtin and then its argument prototype would still apply. */
7125 char jl_dic_list_e(); 7124 char jl_dic_list_e();
7126 7125
7127 int main() { 7126 int main() {
7128 jl_dic_list_e() 7127 jl_dic_list_e()
7129 ; return 0; } 7128 ; return 0; }
7130 EOF 7129 EOF
7131 if { (eval echo configure:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7130 if { (eval echo configure:7131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7132 rm -rf conftest* 7131 rm -rf conftest*
7133 eval "ac_cv_lib_$ac_lib_var=yes" 7132 eval "ac_cv_lib_$ac_lib_var=yes"
7134 else 7133 else
7135 echo "configure: failed program was:" >&5 7134 echo "configure: failed program was:" >&5
7136 cat conftest.$ac_ext >&5 7135 cat conftest.$ac_ext >&5
7163 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7162 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7164 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7163 echo " xemacs will be linked with \"mule-wnnfns.o\""
7165 fi 7164 fi
7166 7165
7167 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7166 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7168 echo "configure:7169: checking for jl_fi_dic_list in -lwnn" >&5 7167 echo "configure:7168: checking for jl_fi_dic_list in -lwnn" >&5
7169 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7168 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7170 7169
7171 xe_check_libs=" -lwnn " 7170 xe_check_libs=" -lwnn "
7172 cat > conftest.$ac_ext <<EOF 7171 cat > conftest.$ac_ext <<EOF
7173 #line 7174 "configure" 7172 #line 7173 "configure"
7174 #include "confdefs.h" 7173 #include "confdefs.h"
7175 /* Override any gcc2 internal prototype to avoid an error. */ 7174 /* Override any gcc2 internal prototype to avoid an error. */
7176 /* We use char because int might match the return type of a gcc2 7175 /* We use char because int might match the return type of a gcc2
7177 builtin and then its argument prototype would still apply. */ 7176 builtin and then its argument prototype would still apply. */
7178 char jl_fi_dic_list(); 7177 char jl_fi_dic_list();
7179 7178
7180 int main() { 7179 int main() {
7181 jl_fi_dic_list() 7180 jl_fi_dic_list()
7182 ; return 0; } 7181 ; return 0; }
7183 EOF 7182 EOF
7184 if { (eval echo configure:7185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7183 if { (eval echo configure:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7185 rm -rf conftest* 7184 rm -rf conftest*
7186 eval "ac_cv_lib_$ac_lib_var=yes" 7185 eval "ac_cv_lib_$ac_lib_var=yes"
7187 else 7186 else
7188 echo "configure: failed program was:" >&5 7187 echo "configure: failed program was:" >&5
7189 cat conftest.$ac_ext >&5 7188 cat conftest.$ac_ext >&5
7211 7210
7212 fi 7211 fi
7213 7212
7214 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7213 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7215 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7214 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7216 echo "configure:7217: checking for canna/RK.h" >&5 7215 echo "configure:7216: checking for canna/RK.h" >&5
7217 7216
7218 cat > conftest.$ac_ext <<EOF 7217 cat > conftest.$ac_ext <<EOF
7219 #line 7220 "configure" 7218 #line 7219 "configure"
7220 #include "confdefs.h" 7219 #include "confdefs.h"
7221 #include <canna/RK.h> 7220 #include <canna/RK.h>
7222 EOF 7221 EOF
7223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7224 { (eval echo configure:7225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7223 { (eval echo configure:7224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7225 ac_err=`grep -v '^ *+' conftest.out` 7224 ac_err=`grep -v '^ *+' conftest.out`
7226 if test -z "$ac_err"; then 7225 if test -z "$ac_err"; then
7227 rm -rf conftest* 7226 rm -rf conftest*
7228 eval "ac_cv_header_$ac_safe=yes" 7227 eval "ac_cv_header_$ac_safe=yes"
7229 else 7228 else
7242 with_canna=no 7241 with_canna=no
7243 fi 7242 fi
7244 } 7243 }
7245 test -z "$with_canna" && { 7244 test -z "$with_canna" && {
7246 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7245 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7247 echo "configure:7248: checking for RkBgnBun in -lRKC" >&5 7246 echo "configure:7247: checking for RkBgnBun in -lRKC" >&5
7248 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7247 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7249 7248
7250 xe_check_libs=" -lRKC " 7249 xe_check_libs=" -lRKC "
7251 cat > conftest.$ac_ext <<EOF 7250 cat > conftest.$ac_ext <<EOF
7252 #line 7253 "configure" 7251 #line 7252 "configure"
7253 #include "confdefs.h" 7252 #include "confdefs.h"
7254 /* Override any gcc2 internal prototype to avoid an error. */ 7253 /* Override any gcc2 internal prototype to avoid an error. */
7255 /* We use char because int might match the return type of a gcc2 7254 /* We use char because int might match the return type of a gcc2
7256 builtin and then its argument prototype would still apply. */ 7255 builtin and then its argument prototype would still apply. */
7257 char RkBgnBun(); 7256 char RkBgnBun();
7258 7257
7259 int main() { 7258 int main() {
7260 RkBgnBun() 7259 RkBgnBun()
7261 ; return 0; } 7260 ; return 0; }
7262 EOF 7261 EOF
7263 if { (eval echo configure:7264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7264 rm -rf conftest* 7263 rm -rf conftest*
7265 eval "ac_cv_lib_$ac_lib_var=yes" 7264 eval "ac_cv_lib_$ac_lib_var=yes"
7266 else 7265 else
7267 echo "configure: failed program was:" >&5 7266 echo "configure: failed program was:" >&5
7268 cat conftest.$ac_ext >&5 7267 cat conftest.$ac_ext >&5
7281 fi 7280 fi
7282 7281
7283 } 7282 }
7284 test -z "$with_canna" && { 7283 test -z "$with_canna" && {
7285 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7284 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7286 echo "configure:7287: checking for jrKanjiControl in -lcanna" >&5 7285 echo "configure:7286: checking for jrKanjiControl in -lcanna" >&5
7287 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7286 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7288 7287
7289 xe_check_libs=" -lcanna " 7288 xe_check_libs=" -lcanna "
7290 cat > conftest.$ac_ext <<EOF 7289 cat > conftest.$ac_ext <<EOF
7291 #line 7292 "configure" 7290 #line 7291 "configure"
7292 #include "confdefs.h" 7291 #include "confdefs.h"
7293 /* Override any gcc2 internal prototype to avoid an error. */ 7292 /* Override any gcc2 internal prototype to avoid an error. */
7294 /* We use char because int might match the return type of a gcc2 7293 /* We use char because int might match the return type of a gcc2
7295 builtin and then its argument prototype would still apply. */ 7294 builtin and then its argument prototype would still apply. */
7296 char jrKanjiControl(); 7295 char jrKanjiControl();
7297 7296
7298 int main() { 7297 int main() {
7299 jrKanjiControl() 7298 jrKanjiControl()
7300 ; return 0; } 7299 ; return 0; }
7301 EOF 7300 EOF
7302 if { (eval echo configure:7303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7301 if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7303 rm -rf conftest* 7302 rm -rf conftest*
7304 eval "ac_cv_lib_$ac_lib_var=yes" 7303 eval "ac_cv_lib_$ac_lib_var=yes"
7305 else 7304 else
7306 echo "configure: failed program was:" >&5 7305 echo "configure: failed program was:" >&5
7307 cat conftest.$ac_ext >&5 7306 cat conftest.$ac_ext >&5
7397 fi 7396 fi
7398 7397
7399 for ac_func in acosh asinh atanh 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 strcasecmp strerror tzset ulimit usleep utimes waitpid 7398 for ac_func in acosh asinh atanh 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 strcasecmp strerror tzset ulimit usleep utimes waitpid
7400 do 7399 do
7401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7402 echo "configure:7403: checking for $ac_func" >&5 7401 echo "configure:7402: checking for $ac_func" >&5
7403 7402
7404 cat > conftest.$ac_ext <<EOF 7403 cat > conftest.$ac_ext <<EOF
7405 #line 7406 "configure" 7404 #line 7405 "configure"
7406 #include "confdefs.h" 7405 #include "confdefs.h"
7407 /* System header to define __stub macros and hopefully few prototypes, 7406 /* System header to define __stub macros and hopefully few prototypes,
7408 which can conflict with char $ac_func(); below. */ 7407 which can conflict with char $ac_func(); below. */
7409 #include <assert.h> 7408 #include <assert.h>
7410 /* Override any gcc2 internal prototype to avoid an error. */ 7409 /* Override any gcc2 internal prototype to avoid an error. */
7423 $ac_func(); 7422 $ac_func();
7424 #endif 7423 #endif
7425 7424
7426 ; return 0; } 7425 ; return 0; }
7427 EOF 7426 EOF
7428 if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7427 if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7429 rm -rf conftest* 7428 rm -rf conftest*
7430 eval "ac_cv_func_$ac_func=yes" 7429 eval "ac_cv_func_$ac_func=yes"
7431 else 7430 else
7432 echo "configure: failed program was:" >&5 7431 echo "configure: failed program was:" >&5
7433 cat conftest.$ac_ext >&5 7432 cat conftest.$ac_ext >&5
7460 fi ;; 7459 fi ;;
7461 * ) 7460 * )
7462 for ac_func in realpath 7461 for ac_func in realpath
7463 do 7462 do
7464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7465 echo "configure:7466: checking for $ac_func" >&5 7464 echo "configure:7465: checking for $ac_func" >&5
7466 7465
7467 cat > conftest.$ac_ext <<EOF 7466 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure" 7467 #line 7468 "configure"
7469 #include "confdefs.h" 7468 #include "confdefs.h"
7470 /* System header to define __stub macros and hopefully few prototypes, 7469 /* System header to define __stub macros and hopefully few prototypes,
7471 which can conflict with char $ac_func(); below. */ 7470 which can conflict with char $ac_func(); below. */
7472 #include <assert.h> 7471 #include <assert.h>
7473 /* Override any gcc2 internal prototype to avoid an error. */ 7472 /* Override any gcc2 internal prototype to avoid an error. */
7486 $ac_func(); 7485 $ac_func();
7487 #endif 7486 #endif
7488 7487
7489 ; return 0; } 7488 ; return 0; }
7490 EOF 7489 EOF
7491 if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7490 if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7492 rm -rf conftest* 7491 rm -rf conftest*
7493 eval "ac_cv_func_$ac_func=yes" 7492 eval "ac_cv_func_$ac_func=yes"
7494 else 7493 else
7495 echo "configure: failed program was:" >&5 7494 echo "configure: failed program was:" >&5
7496 cat conftest.$ac_ext >&5 7495 cat conftest.$ac_ext >&5
7519 echo " xemacs will be linked with \"realpath.o\"" 7518 echo " xemacs will be linked with \"realpath.o\""
7520 fi ;; 7519 fi ;;
7521 esac 7520 esac
7522 7521
7523 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7522 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7524 echo "configure:7525: checking whether netdb declares h_errno" >&5 7523 echo "configure:7524: checking whether netdb declares h_errno" >&5
7525 cat > conftest.$ac_ext <<EOF 7524 cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure" 7525 #line 7526 "configure"
7527 #include "confdefs.h" 7526 #include "confdefs.h"
7528 #include <netdb.h> 7527 #include <netdb.h>
7529 int main() { 7528 int main() {
7530 return h_errno; 7529 return h_errno;
7531 ; return 0; } 7530 ; return 0; }
7532 EOF 7531 EOF
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7534 rm -rf conftest* 7533 rm -rf conftest*
7535 echo "$ac_t""yes" 1>&6 7534 echo "$ac_t""yes" 1>&6
7536 { test "$extra_verbose" = "yes" && cat << \EOF 7535 { test "$extra_verbose" = "yes" && cat << \EOF
7537 Defining HAVE_H_ERRNO 7536 Defining HAVE_H_ERRNO
7538 EOF 7537 EOF
7548 echo "$ac_t""no" 1>&6 7547 echo "$ac_t""no" 1>&6
7549 fi 7548 fi
7550 rm -f conftest* 7549 rm -f conftest*
7551 7550
7552 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7551 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7553 echo "configure:7554: checking for sigsetjmp" >&5 7552 echo "configure:7553: checking for sigsetjmp" >&5
7554 cat > conftest.$ac_ext <<EOF 7553 cat > conftest.$ac_ext <<EOF
7555 #line 7556 "configure" 7554 #line 7555 "configure"
7556 #include "confdefs.h" 7555 #include "confdefs.h"
7557 #include <setjmp.h> 7556 #include <setjmp.h>
7558 int main() { 7557 int main() {
7559 sigjmp_buf bar; sigsetjmp (bar, 0); 7558 sigjmp_buf bar; sigsetjmp (bar, 0);
7560 ; return 0; } 7559 ; return 0; }
7561 EOF 7560 EOF
7562 if { (eval echo configure:7563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7561 if { (eval echo configure:7562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7563 rm -rf conftest* 7562 rm -rf conftest*
7564 echo "$ac_t""yes" 1>&6 7563 echo "$ac_t""yes" 1>&6
7565 { test "$extra_verbose" = "yes" && cat << \EOF 7564 { test "$extra_verbose" = "yes" && cat << \EOF
7566 Defining HAVE_SIGSETJMP 7565 Defining HAVE_SIGSETJMP
7567 EOF 7566 EOF
7577 echo "$ac_t""no" 1>&6 7576 echo "$ac_t""no" 1>&6
7578 fi 7577 fi
7579 rm -f conftest* 7578 rm -f conftest*
7580 7579
7581 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7580 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7582 echo "configure:7583: checking whether localtime caches TZ" >&5 7581 echo "configure:7582: checking whether localtime caches TZ" >&5
7583 7582
7584 if test "$ac_cv_func_tzset" = "yes"; then 7583 if test "$ac_cv_func_tzset" = "yes"; then
7585 cat > conftest.$ac_ext <<EOF 7584 cat > conftest.$ac_ext <<EOF
7586 #line 7587 "configure" 7585 #line 7586 "configure"
7587 #include "confdefs.h" 7586 #include "confdefs.h"
7588 #include <time.h> 7587 #include <time.h>
7589 #if STDC_HEADERS 7588 #if STDC_HEADERS
7590 # include <stdlib.h> 7589 # include <stdlib.h>
7591 #endif 7590 #endif
7616 if (localtime (&now)->tm_hour != hour_unset) 7615 if (localtime (&now)->tm_hour != hour_unset)
7617 exit (1); 7616 exit (1);
7618 exit (0); 7617 exit (0);
7619 } 7618 }
7620 EOF 7619 EOF
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7620 if { (eval echo configure:7621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7622 then 7621 then
7623 emacs_cv_localtime_cache=no 7622 emacs_cv_localtime_cache=no
7624 else 7623 else
7625 echo "configure: failed program was:" >&5 7624 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5 7625 cat conftest.$ac_ext >&5
7645 7644
7646 fi 7645 fi
7647 7646
7648 if test "$HAVE_TIMEVAL" = "yes"; then 7647 if test "$HAVE_TIMEVAL" = "yes"; then
7649 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7648 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7650 echo "configure:7651: checking whether gettimeofday cannot accept two arguments" >&5 7649 echo "configure:7650: checking whether gettimeofday cannot accept two arguments" >&5
7651 cat > conftest.$ac_ext <<EOF 7650 cat > conftest.$ac_ext <<EOF
7652 #line 7653 "configure" 7651 #line 7652 "configure"
7653 #include "confdefs.h" 7652 #include "confdefs.h"
7654 7653
7655 #ifdef TIME_WITH_SYS_TIME 7654 #ifdef TIME_WITH_SYS_TIME
7656 #include <sys/time.h> 7655 #include <sys/time.h>
7657 #include <time.h> 7656 #include <time.h>
7669 struct timezone dummy; 7668 struct timezone dummy;
7670 gettimeofday (&time, &dummy); 7669 gettimeofday (&time, &dummy);
7671 7670
7672 ; return 0; } 7671 ; return 0; }
7673 EOF 7672 EOF
7674 if { (eval echo configure:7675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7673 if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7675 rm -rf conftest* 7674 rm -rf conftest*
7676 echo "$ac_t""no" 1>&6 7675 echo "$ac_t""no" 1>&6
7677 else 7676 else
7678 echo "configure: failed program was:" >&5 7677 echo "configure: failed program was:" >&5
7679 cat conftest.$ac_ext >&5 7678 cat conftest.$ac_ext >&5
7691 rm -f conftest* 7690 rm -f conftest*
7692 fi 7691 fi
7693 7692
7694 7693
7695 echo $ac_n "checking for inline""... $ac_c" 1>&6 7694 echo $ac_n "checking for inline""... $ac_c" 1>&6
7696 echo "configure:7697: checking for inline" >&5 7695 echo "configure:7696: checking for inline" >&5
7697 7696
7698 ac_cv_c_inline=no 7697 ac_cv_c_inline=no
7699 for ac_kw in inline __inline__ __inline; do 7698 for ac_kw in inline __inline__ __inline; do
7700 cat > conftest.$ac_ext <<EOF 7699 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure" 7700 #line 7701 "configure"
7702 #include "confdefs.h" 7701 #include "confdefs.h"
7703 7702
7704 int main() { 7703 int main() {
7705 } $ac_kw foo() { 7704 } $ac_kw foo() {
7706 ; return 0; } 7705 ; return 0; }
7707 EOF 7706 EOF
7708 if { (eval echo configure:7709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7707 if { (eval echo configure:7708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7709 rm -rf conftest* 7708 rm -rf conftest*
7710 ac_cv_c_inline=$ac_kw; break 7709 ac_cv_c_inline=$ac_kw; break
7711 else 7710 else
7712 echo "configure: failed program was:" >&5 7711 echo "configure: failed program was:" >&5
7713 cat conftest.$ac_ext >&5 7712 cat conftest.$ac_ext >&5
7753 7752
7754 7753
7755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7754 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7756 # for constant arguments. Useless! 7755 # for constant arguments. Useless!
7757 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7756 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7758 echo "configure:7759: checking for working alloca.h" >&5 7757 echo "configure:7758: checking for working alloca.h" >&5
7759 7758
7760 cat > conftest.$ac_ext <<EOF 7759 cat > conftest.$ac_ext <<EOF
7761 #line 7762 "configure" 7760 #line 7761 "configure"
7762 #include "confdefs.h" 7761 #include "confdefs.h"
7763 #include <alloca.h> 7762 #include <alloca.h>
7764 int main() { 7763 int main() {
7765 char *p = alloca(2 * sizeof(int)); 7764 char *p = alloca(2 * sizeof(int));
7766 ; return 0; } 7765 ; return 0; }
7767 EOF 7766 EOF
7768 if { (eval echo configure:7769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7767 if { (eval echo configure:7768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7769 rm -rf conftest* 7768 rm -rf conftest*
7770 ac_cv_header_alloca_h=yes 7769 ac_cv_header_alloca_h=yes
7771 else 7770 else
7772 echo "configure: failed program was:" >&5 7771 echo "configure: failed program was:" >&5
7773 cat conftest.$ac_ext >&5 7772 cat conftest.$ac_ext >&5
7787 } 7786 }
7788 7787
7789 fi 7788 fi
7790 7789
7791 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7790 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7792 echo "configure:7793: checking for alloca" >&5 7791 echo "configure:7792: checking for alloca" >&5
7793 7792
7794 cat > conftest.$ac_ext <<EOF 7793 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure" 7794 #line 7795 "configure"
7796 #include "confdefs.h" 7795 #include "confdefs.h"
7797 7796
7798 #ifdef __GNUC__ 7797 #ifdef __GNUC__
7799 # define alloca __builtin_alloca 7798 # define alloca __builtin_alloca
7800 #else 7799 #else
7813 7812
7814 int main() { 7813 int main() {
7815 char *p = (char *) alloca(1); 7814 char *p = (char *) alloca(1);
7816 ; return 0; } 7815 ; return 0; }
7817 EOF 7816 EOF
7818 if { (eval echo configure:7819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7817 if { (eval echo configure:7818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7819 rm -rf conftest* 7818 rm -rf conftest*
7820 ac_cv_func_alloca_works=yes 7819 ac_cv_func_alloca_works=yes
7821 else 7820 else
7822 echo "configure: failed program was:" >&5 7821 echo "configure: failed program was:" >&5
7823 cat conftest.$ac_ext >&5 7822 cat conftest.$ac_ext >&5
7852 EOF 7851 EOF
7853 } 7852 }
7854 7853
7855 7854
7856 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7855 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7857 echo "configure:7858: checking whether alloca needs Cray hooks" >&5 7856 echo "configure:7857: checking whether alloca needs Cray hooks" >&5
7858 7857
7859 cat > conftest.$ac_ext <<EOF 7858 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure" 7859 #line 7860 "configure"
7861 #include "confdefs.h" 7860 #include "confdefs.h"
7862 #if defined(CRAY) && ! defined(CRAY2) 7861 #if defined(CRAY) && ! defined(CRAY2)
7863 webecray 7862 webecray
7864 #else 7863 #else
7865 wenotbecray 7864 wenotbecray
7879 7878
7880 echo "$ac_t""$ac_cv_os_cray" 1>&6 7879 echo "$ac_t""$ac_cv_os_cray" 1>&6
7881 if test $ac_cv_os_cray = yes; then 7880 if test $ac_cv_os_cray = yes; then
7882 for ac_func in _getb67 GETB67 getb67; do 7881 for ac_func in _getb67 GETB67 getb67; do
7883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7882 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7884 echo "configure:7885: checking for $ac_func" >&5 7883 echo "configure:7884: checking for $ac_func" >&5
7885 7884
7886 cat > conftest.$ac_ext <<EOF 7885 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure" 7886 #line 7887 "configure"
7888 #include "confdefs.h" 7887 #include "confdefs.h"
7889 /* System header to define __stub macros and hopefully few prototypes, 7888 /* System header to define __stub macros and hopefully few prototypes,
7890 which can conflict with char $ac_func(); below. */ 7889 which can conflict with char $ac_func(); below. */
7891 #include <assert.h> 7890 #include <assert.h>
7892 /* Override any gcc2 internal prototype to avoid an error. */ 7891 /* Override any gcc2 internal prototype to avoid an error. */
7905 $ac_func(); 7904 $ac_func();
7906 #endif 7905 #endif
7907 7906
7908 ; return 0; } 7907 ; return 0; }
7909 EOF 7908 EOF
7910 if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7909 if { (eval echo configure:7910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7911 rm -rf conftest* 7910 rm -rf conftest*
7912 eval "ac_cv_func_$ac_func=yes" 7911 eval "ac_cv_func_$ac_func=yes"
7913 else 7912 else
7914 echo "configure: failed program was:" >&5 7913 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5 7914 cat conftest.$ac_ext >&5
7935 7934
7936 done 7935 done
7937 fi 7936 fi
7938 7937
7939 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7938 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7940 echo "configure:7941: checking stack direction for C alloca" >&5 7939 echo "configure:7940: checking stack direction for C alloca" >&5
7941 7940
7942 cat > conftest.$ac_ext <<EOF 7941 cat > conftest.$ac_ext <<EOF
7943 #line 7944 "configure" 7942 #line 7943 "configure"
7944 #include "confdefs.h" 7943 #include "confdefs.h"
7945 find_stack_direction () 7944 find_stack_direction ()
7946 { 7945 {
7947 static char *addr = 0; 7946 static char *addr = 0;
7948 auto char dummy; 7947 auto char dummy;
7957 main () 7956 main ()
7958 { 7957 {
7959 exit (find_stack_direction() < 0); 7958 exit (find_stack_direction() < 0);
7960 } 7959 }
7961 EOF 7960 EOF
7962 if { (eval echo configure:7963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7961 if { (eval echo configure:7962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7963 then 7962 then
7964 ac_cv_c_stack_direction=1 7963 ac_cv_c_stack_direction=1
7965 else 7964 else
7966 echo "configure: failed program was:" >&5 7965 echo "configure: failed program was:" >&5
7967 cat conftest.$ac_ext >&5 7966 cat conftest.$ac_ext >&5
7985 echo " xemacs will be linked with \"$ALLOCA\"" 7984 echo " xemacs will be linked with \"$ALLOCA\""
7986 fi 7985 fi
7987 7986
7988 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 7987 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
7989 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 7988 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
7990 echo "configure:7991: checking for vfork.h" >&5 7989 echo "configure:7990: checking for vfork.h" >&5
7991 7990
7992 cat > conftest.$ac_ext <<EOF 7991 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure" 7992 #line 7993 "configure"
7994 #include "confdefs.h" 7993 #include "confdefs.h"
7995 #include <vfork.h> 7994 #include <vfork.h>
7996 EOF 7995 EOF
7997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7998 { (eval echo configure:7999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7997 { (eval echo configure:7998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7999 ac_err=`grep -v '^ *+' conftest.out` 7998 ac_err=`grep -v '^ *+' conftest.out`
8000 if test -z "$ac_err"; then 7999 if test -z "$ac_err"; then
8001 rm -rf conftest* 8000 rm -rf conftest*
8002 eval "ac_cv_header_$ac_safe=yes" 8001 eval "ac_cv_header_$ac_safe=yes"
8003 else 8002 else
8021 else 8020 else
8022 echo "$ac_t""no" 1>&6 8021 echo "$ac_t""no" 1>&6
8023 fi 8022 fi
8024 8023
8025 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8024 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8026 echo "configure:8027: checking for working vfork" >&5 8025 echo "configure:8026: checking for working vfork" >&5
8027 8026
8028 cat > conftest.$ac_ext <<EOF 8027 cat > conftest.$ac_ext <<EOF
8029 #line 8030 "configure" 8028 #line 8029 "configure"
8030 #include "confdefs.h" 8029 #include "confdefs.h"
8031 /* Thanks to Paul Eggert for this test. */ 8030 /* Thanks to Paul Eggert for this test. */
8032 #include <stdio.h> 8031 #include <stdio.h>
8033 #include <sys/types.h> 8032 #include <sys/types.h>
8034 #include <sys/stat.h> 8033 #include <sys/stat.h>
8119 || fstat(fileno(stdout), &st) != 0 8118 || fstat(fileno(stdout), &st) != 0
8120 ); 8119 );
8121 } 8120 }
8122 } 8121 }
8123 EOF 8122 EOF
8124 if { (eval echo configure:8125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8125 then 8124 then
8126 ac_cv_func_vfork_works=yes 8125 ac_cv_func_vfork_works=yes
8127 else 8126 else
8128 echo "configure: failed program was:" >&5 8127 echo "configure: failed program was:" >&5
8129 cat conftest.$ac_ext >&5 8128 cat conftest.$ac_ext >&5
8144 8143
8145 fi 8144 fi
8146 8145
8147 8146
8148 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8147 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8149 echo "configure:8150: checking for working strcoll" >&5 8148 echo "configure:8149: checking for working strcoll" >&5
8150 8149
8151 cat > conftest.$ac_ext <<EOF 8150 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure" 8151 #line 8152 "configure"
8153 #include "confdefs.h" 8152 #include "confdefs.h"
8154 #include <string.h> 8153 #include <string.h>
8155 main () 8154 main ()
8156 { 8155 {
8157 exit (strcoll ("abc", "def") >= 0 || 8156 exit (strcoll ("abc", "def") >= 0 ||
8158 strcoll ("ABC", "DEF") >= 0 || 8157 strcoll ("ABC", "DEF") >= 0 ||
8159 strcoll ("123", "456") >= 0); 8158 strcoll ("123", "456") >= 0);
8160 } 8159 }
8161 EOF 8160 EOF
8162 if { (eval echo configure:8163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8161 if { (eval echo configure:8162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8163 then 8162 then
8164 ac_cv_func_strcoll_works=yes 8163 ac_cv_func_strcoll_works=yes
8165 else 8164 else
8166 echo "configure: failed program was:" >&5 8165 echo "configure: failed program was:" >&5
8167 cat conftest.$ac_ext >&5 8166 cat conftest.$ac_ext >&5
8184 8183
8185 8184
8186 for ac_func in getpgrp 8185 for ac_func in getpgrp
8187 do 8186 do
8188 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8189 echo "configure:8190: checking for $ac_func" >&5 8188 echo "configure:8189: checking for $ac_func" >&5
8190 8189
8191 cat > conftest.$ac_ext <<EOF 8190 cat > conftest.$ac_ext <<EOF
8192 #line 8193 "configure" 8191 #line 8192 "configure"
8193 #include "confdefs.h" 8192 #include "confdefs.h"
8194 /* System header to define __stub macros and hopefully few prototypes, 8193 /* System header to define __stub macros and hopefully few prototypes,
8195 which can conflict with char $ac_func(); below. */ 8194 which can conflict with char $ac_func(); below. */
8196 #include <assert.h> 8195 #include <assert.h>
8197 /* Override any gcc2 internal prototype to avoid an error. */ 8196 /* Override any gcc2 internal prototype to avoid an error. */
8210 $ac_func(); 8209 $ac_func();
8211 #endif 8210 #endif
8212 8211
8213 ; return 0; } 8212 ; return 0; }
8214 EOF 8213 EOF
8215 if { (eval echo configure:8216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8216 rm -rf conftest* 8215 rm -rf conftest*
8217 eval "ac_cv_func_$ac_func=yes" 8216 eval "ac_cv_func_$ac_func=yes"
8218 else 8217 else
8219 echo "configure: failed program was:" >&5 8218 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5 8219 cat conftest.$ac_ext >&5
8238 echo "$ac_t""no" 1>&6 8237 echo "$ac_t""no" 1>&6
8239 fi 8238 fi
8240 done 8239 done
8241 8240
8242 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8241 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8243 echo "configure:8244: checking whether getpgrp takes no argument" >&5 8242 echo "configure:8243: checking whether getpgrp takes no argument" >&5
8244 8243
8245 cat > conftest.$ac_ext <<EOF 8244 cat > conftest.$ac_ext <<EOF
8246 #line 8247 "configure" 8245 #line 8246 "configure"
8247 #include "confdefs.h" 8246 #include "confdefs.h"
8248 8247
8249 /* 8248 /*
8250 * If this system has a BSD-style getpgrp(), 8249 * If this system has a BSD-style getpgrp(),
8251 * which takes a pid argument, exit unsuccessfully. 8250 * which takes a pid argument, exit unsuccessfully.
8296 exit(s>>8); 8295 exit(s>>8);
8297 } 8296 }
8298 } 8297 }
8299 8298
8300 EOF 8299 EOF
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8300 if { (eval echo configure:8301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8302 then 8301 then
8303 ac_cv_func_getpgrp_void=yes 8302 ac_cv_func_getpgrp_void=yes
8304 else 8303 else
8305 echo "configure: failed program was:" >&5 8304 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5 8305 cat conftest.$ac_ext >&5
8322 8321
8323 fi 8322 fi
8324 8323
8325 8324
8326 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8325 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8327 echo "configure:8328: checking for working mmap" >&5 8326 echo "configure:8327: checking for working mmap" >&5
8328 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8327 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8329 cat > conftest.$ac_ext <<EOF 8328 cat > conftest.$ac_ext <<EOF
8330 #line 8331 "configure" 8329 #line 8330 "configure"
8331 #include "confdefs.h" 8330 #include "confdefs.h"
8332 #include <stdio.h> 8331 #include <stdio.h>
8333 #include <unistd.h> 8332 #include <unistd.h>
8334 #include <fcntl.h> 8333 #include <fcntl.h>
8335 #include <sys/mman.h> 8334 #include <sys/mman.h>
8358 return 0; 8357 return 0;
8359 perror ("conftest: mmap failed"); 8358 perror ("conftest: mmap failed");
8360 return 1; 8359 return 1;
8361 } 8360 }
8362 EOF 8361 EOF
8363 if { (eval echo configure:8364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8362 if { (eval echo configure:8363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8364 then 8363 then
8365 have_mmap=yes 8364 have_mmap=yes
8366 else 8365 else
8367 echo "configure: failed program was:" >&5 8366 echo "configure: failed program was:" >&5
8368 cat conftest.$ac_ext >&5 8367 cat conftest.$ac_ext >&5
8392 } 8391 }
8393 8392
8394 8393
8395 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8394 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8396 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8395 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8397 echo "configure:8398: checking for termios.h" >&5 8396 echo "configure:8397: checking for termios.h" >&5
8398 8397
8399 cat > conftest.$ac_ext <<EOF 8398 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure" 8399 #line 8400 "configure"
8401 #include "confdefs.h" 8400 #include "confdefs.h"
8402 #include <termios.h> 8401 #include <termios.h>
8403 EOF 8402 EOF
8404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8405 { (eval echo configure:8406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8404 { (eval echo configure:8405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8406 ac_err=`grep -v '^ *+' conftest.out` 8405 ac_err=`grep -v '^ *+' conftest.out`
8407 if test -z "$ac_err"; then 8406 if test -z "$ac_err"; then
8408 rm -rf conftest* 8407 rm -rf conftest*
8409 eval "ac_cv_header_$ac_safe=yes" 8408 eval "ac_cv_header_$ac_safe=yes"
8410 else 8409 else
8443 8442
8444 else 8443 else
8445 echo "$ac_t""no" 1>&6 8444 echo "$ac_t""no" 1>&6
8446 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8445 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8447 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8446 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8448 echo "configure:8449: checking for termio.h" >&5 8447 echo "configure:8448: checking for termio.h" >&5
8449 8448
8450 cat > conftest.$ac_ext <<EOF 8449 cat > conftest.$ac_ext <<EOF
8451 #line 8452 "configure" 8450 #line 8451 "configure"
8452 #include "confdefs.h" 8451 #include "confdefs.h"
8453 #include <termio.h> 8452 #include <termio.h>
8454 EOF 8453 EOF
8455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8456 { (eval echo configure:8457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8455 { (eval echo configure:8456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8457 ac_err=`grep -v '^ *+' conftest.out` 8456 ac_err=`grep -v '^ *+' conftest.out`
8458 if test -z "$ac_err"; then 8457 if test -z "$ac_err"; then
8459 rm -rf conftest* 8458 rm -rf conftest*
8460 eval "ac_cv_header_$ac_safe=yes" 8459 eval "ac_cv_header_$ac_safe=yes"
8461 else 8460 else
8483 fi 8482 fi
8484 8483
8485 8484
8486 8485
8487 echo $ac_n "checking for socket""... $ac_c" 1>&6 8486 echo $ac_n "checking for socket""... $ac_c" 1>&6
8488 echo "configure:8489: checking for socket" >&5 8487 echo "configure:8488: checking for socket" >&5
8489 8488
8490 cat > conftest.$ac_ext <<EOF 8489 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure" 8490 #line 8491 "configure"
8492 #include "confdefs.h" 8491 #include "confdefs.h"
8493 /* System header to define __stub macros and hopefully few prototypes, 8492 /* System header to define __stub macros and hopefully few prototypes,
8494 which can conflict with char socket(); below. */ 8493 which can conflict with char socket(); below. */
8495 #include <assert.h> 8494 #include <assert.h>
8496 /* Override any gcc2 internal prototype to avoid an error. */ 8495 /* Override any gcc2 internal prototype to avoid an error. */
8509 socket(); 8508 socket();
8510 #endif 8509 #endif
8511 8510
8512 ; return 0; } 8511 ; return 0; }
8513 EOF 8512 EOF
8514 if { (eval echo configure:8515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8513 if { (eval echo configure:8514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8515 rm -rf conftest* 8514 rm -rf conftest*
8516 eval "ac_cv_func_socket=yes" 8515 eval "ac_cv_func_socket=yes"
8517 else 8516 else
8518 echo "configure: failed program was:" >&5 8517 echo "configure: failed program was:" >&5
8519 cat conftest.$ac_ext >&5 8518 cat conftest.$ac_ext >&5
8524 8523
8525 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8524 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8526 echo "$ac_t""yes" 1>&6 8525 echo "$ac_t""yes" 1>&6
8527 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8526 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8528 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8527 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8529 echo "configure:8530: checking for netinet/in.h" >&5 8528 echo "configure:8529: checking for netinet/in.h" >&5
8530 8529
8531 cat > conftest.$ac_ext <<EOF 8530 cat > conftest.$ac_ext <<EOF
8532 #line 8533 "configure" 8531 #line 8532 "configure"
8533 #include "confdefs.h" 8532 #include "confdefs.h"
8534 #include <netinet/in.h> 8533 #include <netinet/in.h>
8535 EOF 8534 EOF
8536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8537 { (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8536 { (eval echo configure:8537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8538 ac_err=`grep -v '^ *+' conftest.out` 8537 ac_err=`grep -v '^ *+' conftest.out`
8539 if test -z "$ac_err"; then 8538 if test -z "$ac_err"; then
8540 rm -rf conftest* 8539 rm -rf conftest*
8541 eval "ac_cv_header_$ac_safe=yes" 8540 eval "ac_cv_header_$ac_safe=yes"
8542 else 8541 else
8549 rm -f conftest* 8548 rm -f conftest*
8550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8551 echo "$ac_t""yes" 1>&6 8550 echo "$ac_t""yes" 1>&6
8552 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8551 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8553 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8552 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8554 echo "configure:8555: checking for arpa/inet.h" >&5 8553 echo "configure:8554: checking for arpa/inet.h" >&5
8555 8554
8556 cat > conftest.$ac_ext <<EOF 8555 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure" 8556 #line 8557 "configure"
8558 #include "confdefs.h" 8557 #include "confdefs.h"
8559 #include <arpa/inet.h> 8558 #include <arpa/inet.h>
8560 EOF 8559 EOF
8561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8562 { (eval echo configure:8563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8561 { (eval echo configure:8562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8563 ac_err=`grep -v '^ *+' conftest.out` 8562 ac_err=`grep -v '^ *+' conftest.out`
8564 if test -z "$ac_err"; then 8563 if test -z "$ac_err"; then
8565 rm -rf conftest* 8564 rm -rf conftest*
8566 eval "ac_cv_header_$ac_safe=yes" 8565 eval "ac_cv_header_$ac_safe=yes"
8567 else 8566 else
8582 #define HAVE_SOCKETS 1 8581 #define HAVE_SOCKETS 1
8583 EOF 8582 EOF
8584 } 8583 }
8585 8584
8586 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8585 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8587 echo "configure:8588: checking "for sun_len member in struct sockaddr_un"" >&5 8586 echo "configure:8587: checking "for sun_len member in struct sockaddr_un"" >&5
8588 cat > conftest.$ac_ext <<EOF 8587 cat > conftest.$ac_ext <<EOF
8589 #line 8590 "configure" 8588 #line 8589 "configure"
8590 #include "confdefs.h" 8589 #include "confdefs.h"
8591 8590
8592 #include <sys/types.h> 8591 #include <sys/types.h>
8593 #include <sys/socket.h> 8592 #include <sys/socket.h>
8594 #include <sys/un.h> 8593 #include <sys/un.h>
8595 8594
8596 int main() { 8595 int main() {
8597 static struct sockaddr_un x; x.sun_len = 1; 8596 static struct sockaddr_un x; x.sun_len = 1;
8598 ; return 0; } 8597 ; return 0; }
8599 EOF 8598 EOF
8600 if { (eval echo configure:8601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8601 rm -rf conftest* 8600 rm -rf conftest*
8602 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8601 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8603 Defining HAVE_SOCKADDR_SUN_LEN 8602 Defining HAVE_SOCKADDR_SUN_LEN
8604 EOF 8603 EOF
8605 cat >> confdefs.h <<\EOF 8604 cat >> confdefs.h <<\EOF
8626 echo "$ac_t""no" 1>&6 8625 echo "$ac_t""no" 1>&6
8627 fi 8626 fi
8628 8627
8629 8628
8630 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8629 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8631 echo "configure:8632: checking for msgget" >&5 8630 echo "configure:8631: checking for msgget" >&5
8632 8631
8633 cat > conftest.$ac_ext <<EOF 8632 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure" 8633 #line 8634 "configure"
8635 #include "confdefs.h" 8634 #include "confdefs.h"
8636 /* System header to define __stub macros and hopefully few prototypes, 8635 /* System header to define __stub macros and hopefully few prototypes,
8637 which can conflict with char msgget(); below. */ 8636 which can conflict with char msgget(); below. */
8638 #include <assert.h> 8637 #include <assert.h>
8639 /* Override any gcc2 internal prototype to avoid an error. */ 8638 /* Override any gcc2 internal prototype to avoid an error. */
8652 msgget(); 8651 msgget();
8653 #endif 8652 #endif
8654 8653
8655 ; return 0; } 8654 ; return 0; }
8656 EOF 8655 EOF
8657 if { (eval echo configure:8658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8658 rm -rf conftest* 8657 rm -rf conftest*
8659 eval "ac_cv_func_msgget=yes" 8658 eval "ac_cv_func_msgget=yes"
8660 else 8659 else
8661 echo "configure: failed program was:" >&5 8660 echo "configure: failed program was:" >&5
8662 cat conftest.$ac_ext >&5 8661 cat conftest.$ac_ext >&5
8667 8666
8668 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8667 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8669 echo "$ac_t""yes" 1>&6 8668 echo "$ac_t""yes" 1>&6
8670 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8669 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8671 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8670 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8672 echo "configure:8673: checking for sys/ipc.h" >&5 8671 echo "configure:8672: checking for sys/ipc.h" >&5
8673 8672
8674 cat > conftest.$ac_ext <<EOF 8673 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure" 8674 #line 8675 "configure"
8676 #include "confdefs.h" 8675 #include "confdefs.h"
8677 #include <sys/ipc.h> 8676 #include <sys/ipc.h>
8678 EOF 8677 EOF
8679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8680 { (eval echo configure:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8679 { (eval echo configure:8680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8681 ac_err=`grep -v '^ *+' conftest.out` 8680 ac_err=`grep -v '^ *+' conftest.out`
8682 if test -z "$ac_err"; then 8681 if test -z "$ac_err"; then
8683 rm -rf conftest* 8682 rm -rf conftest*
8684 eval "ac_cv_header_$ac_safe=yes" 8683 eval "ac_cv_header_$ac_safe=yes"
8685 else 8684 else
8692 rm -f conftest* 8691 rm -f conftest*
8693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8692 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8694 echo "$ac_t""yes" 1>&6 8693 echo "$ac_t""yes" 1>&6
8695 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8694 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8696 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8695 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8697 echo "configure:8698: checking for sys/msg.h" >&5 8696 echo "configure:8697: checking for sys/msg.h" >&5
8698 8697
8699 cat > conftest.$ac_ext <<EOF 8698 cat > conftest.$ac_ext <<EOF
8700 #line 8701 "configure" 8699 #line 8700 "configure"
8701 #include "confdefs.h" 8700 #include "confdefs.h"
8702 #include <sys/msg.h> 8701 #include <sys/msg.h>
8703 EOF 8702 EOF
8704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8705 { (eval echo configure:8706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8704 { (eval echo configure:8705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8706 ac_err=`grep -v '^ *+' conftest.out` 8705 ac_err=`grep -v '^ *+' conftest.out`
8707 if test -z "$ac_err"; then 8706 if test -z "$ac_err"; then
8708 rm -rf conftest* 8707 rm -rf conftest*
8709 eval "ac_cv_header_$ac_safe=yes" 8708 eval "ac_cv_header_$ac_safe=yes"
8710 else 8709 else
8738 fi 8737 fi
8739 8738
8740 8739
8741 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8740 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8742 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8741 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8743 echo "configure:8744: checking for dirent.h" >&5 8742 echo "configure:8743: checking for dirent.h" >&5
8744 8743
8745 cat > conftest.$ac_ext <<EOF 8744 cat > conftest.$ac_ext <<EOF
8746 #line 8747 "configure" 8745 #line 8746 "configure"
8747 #include "confdefs.h" 8746 #include "confdefs.h"
8748 #include <dirent.h> 8747 #include <dirent.h>
8749 EOF 8748 EOF
8750 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8751 { (eval echo configure:8752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8750 { (eval echo configure:8751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8752 ac_err=`grep -v '^ *+' conftest.out` 8751 ac_err=`grep -v '^ *+' conftest.out`
8753 if test -z "$ac_err"; then 8752 if test -z "$ac_err"; then
8754 rm -rf conftest* 8753 rm -rf conftest*
8755 eval "ac_cv_header_$ac_safe=yes" 8754 eval "ac_cv_header_$ac_safe=yes"
8756 else 8755 else
8773 8772
8774 else 8773 else
8775 echo "$ac_t""no" 1>&6 8774 echo "$ac_t""no" 1>&6
8776 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8775 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8777 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8776 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8778 echo "configure:8779: checking for sys/dir.h" >&5 8777 echo "configure:8778: checking for sys/dir.h" >&5
8779 8778
8780 cat > conftest.$ac_ext <<EOF 8779 cat > conftest.$ac_ext <<EOF
8781 #line 8782 "configure" 8780 #line 8781 "configure"
8782 #include "confdefs.h" 8781 #include "confdefs.h"
8783 #include <sys/dir.h> 8782 #include <sys/dir.h>
8784 EOF 8783 EOF
8785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8786 { (eval echo configure:8787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8785 { (eval echo configure:8786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8787 ac_err=`grep -v '^ *+' conftest.out` 8786 ac_err=`grep -v '^ *+' conftest.out`
8788 if test -z "$ac_err"; then 8787 if test -z "$ac_err"; then
8789 rm -rf conftest* 8788 rm -rf conftest*
8790 eval "ac_cv_header_$ac_safe=yes" 8789 eval "ac_cv_header_$ac_safe=yes"
8791 else 8790 else
8814 fi 8813 fi
8815 8814
8816 8815
8817 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8816 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8818 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8817 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8819 echo "configure:8820: checking for nlist.h" >&5 8818 echo "configure:8819: checking for nlist.h" >&5
8820 8819
8821 cat > conftest.$ac_ext <<EOF 8820 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure" 8821 #line 8822 "configure"
8823 #include "confdefs.h" 8822 #include "confdefs.h"
8824 #include <nlist.h> 8823 #include <nlist.h>
8825 EOF 8824 EOF
8826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8827 { (eval echo configure:8828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8826 { (eval echo configure:8827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8828 ac_err=`grep -v '^ *+' conftest.out` 8827 ac_err=`grep -v '^ *+' conftest.out`
8829 if test -z "$ac_err"; then 8828 if test -z "$ac_err"; then
8830 rm -rf conftest* 8829 rm -rf conftest*
8831 eval "ac_cv_header_$ac_safe=yes" 8830 eval "ac_cv_header_$ac_safe=yes"
8832 else 8831 else
8863 break; fi 8862 break; fi
8864 done 8863 done
8865 8864
8866 8865
8867 echo "checking "for sound support"" 1>&6 8866 echo "checking "for sound support"" 1>&6
8868 echo "configure:8869: checking "for sound support"" >&5 8867 echo "configure:8868: checking "for sound support"" >&5
8869 case "$with_sound" in 8868 case "$with_sound" in
8870 native | both ) with_native_sound=yes;; 8869 native | both ) with_native_sound=yes;;
8871 nas | no ) with_native_sound=no;; 8870 nas | no ) with_native_sound=no;;
8872 esac 8871 esac
8873 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8872 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8874 8873
8875 if test "$with_native_sound" != "no"; then 8874 if test "$with_native_sound" != "no"; then
8876 if test -n "$native_sound_lib"; then 8875 if test -n "$native_sound_lib"; then
8877 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8876 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8878 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8877 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8879 echo "configure:8880: checking for multimedia/audio_device.h" >&5 8878 echo "configure:8879: checking for multimedia/audio_device.h" >&5
8880 8879
8881 cat > conftest.$ac_ext <<EOF 8880 cat > conftest.$ac_ext <<EOF
8882 #line 8883 "configure" 8881 #line 8882 "configure"
8883 #include "confdefs.h" 8882 #include "confdefs.h"
8884 #include <multimedia/audio_device.h> 8883 #include <multimedia/audio_device.h>
8885 EOF 8884 EOF
8886 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8887 { (eval echo configure:8888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8886 { (eval echo configure:8887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8888 ac_err=`grep -v '^ *+' conftest.out` 8887 ac_err=`grep -v '^ *+' conftest.out`
8889 if test -z "$ac_err"; then 8888 if test -z "$ac_err"; then
8890 rm -rf conftest* 8889 rm -rf conftest*
8891 eval "ac_cv_header_$ac_safe=yes" 8890 eval "ac_cv_header_$ac_safe=yes"
8892 else 8891 else
8930 case "$canonical" in 8929 case "$canonical" in
8931 *-sgi-* ) 8930 *-sgi-* )
8932 if test -z "$native_sound_lib"; then 8931 if test -z "$native_sound_lib"; then
8933 8932
8934 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8933 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8935 echo "configure:8936: checking for ALopenport in -laudio" >&5 8934 echo "configure:8935: checking for ALopenport in -laudio" >&5
8936 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8935 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8937 8936
8938 xe_check_libs=" -laudio " 8937 xe_check_libs=" -laudio "
8939 cat > conftest.$ac_ext <<EOF 8938 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure" 8939 #line 8940 "configure"
8941 #include "confdefs.h" 8940 #include "confdefs.h"
8942 /* Override any gcc2 internal prototype to avoid an error. */ 8941 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2 8942 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */ 8943 builtin and then its argument prototype would still apply. */
8945 char ALopenport(); 8944 char ALopenport();
8946 8945
8947 int main() { 8946 int main() {
8948 ALopenport() 8947 ALopenport()
8949 ; return 0; } 8948 ; return 0; }
8950 EOF 8949 EOF
8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8950 if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8952 rm -rf conftest* 8951 rm -rf conftest*
8953 eval "ac_cv_lib_$ac_lib_var=yes" 8952 eval "ac_cv_lib_$ac_lib_var=yes"
8954 else 8953 else
8955 echo "configure: failed program was:" >&5 8954 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5 8955 cat conftest.$ac_ext >&5
8977 fi ;; 8976 fi ;;
8978 hppa*-hp-hpux* ) 8977 hppa*-hp-hpux* )
8979 if test -z "$native_sound_lib"; then 8978 if test -z "$native_sound_lib"; then
8980 8979
8981 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 8980 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
8982 echo "configure:8983: checking for AOpenAudio in -lAlib" >&5 8981 echo "configure:8982: checking for AOpenAudio in -lAlib" >&5
8983 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 8982 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
8984 8983
8985 xe_check_libs=" -lAlib " 8984 xe_check_libs=" -lAlib "
8986 cat > conftest.$ac_ext <<EOF 8985 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure" 8986 #line 8987 "configure"
8988 #include "confdefs.h" 8987 #include "confdefs.h"
8989 /* Override any gcc2 internal prototype to avoid an error. */ 8988 /* Override any gcc2 internal prototype to avoid an error. */
8990 /* We use char because int might match the return type of a gcc2 8989 /* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */ 8990 builtin and then its argument prototype would still apply. */
8992 char AOpenAudio(); 8991 char AOpenAudio();
8993 8992
8994 int main() { 8993 int main() {
8995 AOpenAudio() 8994 AOpenAudio()
8996 ; return 0; } 8995 ; return 0; }
8997 EOF 8996 EOF
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8997 if { (eval echo configure:8998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8999 rm -rf conftest* 8998 rm -rf conftest*
9000 eval "ac_cv_lib_$ac_lib_var=yes" 8999 eval "ac_cv_lib_$ac_lib_var=yes"
9001 else 9000 else
9002 echo "configure: failed program was:" >&5 9001 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5 9002 cat conftest.$ac_ext >&5
9031 9030
9032 if test -z "$sound_found"; then 9031 if test -z "$sound_found"; then
9033 for dir in "machine" "sys" "linux"; do 9032 for dir in "machine" "sys" "linux"; do
9034 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9033 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9035 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9034 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9036 echo "configure:9037: checking for ${dir}/soundcard.h" >&5 9035 echo "configure:9036: checking for ${dir}/soundcard.h" >&5
9037 9036
9038 cat > conftest.$ac_ext <<EOF 9037 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure" 9038 #line 9039 "configure"
9040 #include "confdefs.h" 9039 #include "confdefs.h"
9041 #include <${dir}/soundcard.h> 9040 #include <${dir}/soundcard.h>
9042 EOF 9041 EOF
9043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9044 { (eval echo configure:9045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9043 { (eval echo configure:9044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9045 ac_err=`grep -v '^ *+' conftest.out` 9044 ac_err=`grep -v '^ *+' conftest.out`
9046 if test -z "$ac_err"; then 9045 if test -z "$ac_err"; then
9047 rm -rf conftest* 9046 rm -rf conftest*
9048 eval "ac_cv_header_$ac_safe=yes" 9047 eval "ac_cv_header_$ac_safe=yes"
9049 else 9048 else
9109 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9108 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9110 echo " xemacs will be linked with \"nas.o\"" 9109 echo " xemacs will be linked with \"nas.o\""
9111 fi 9110 fi
9112 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 9111 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
9113 cat > conftest.$ac_ext <<EOF 9112 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure" 9113 #line 9114 "configure"
9115 #include "confdefs.h" 9114 #include "confdefs.h"
9116 #include <audio/Xtutil.h> 9115 #include <audio/Xtutil.h>
9117 EOF 9116 EOF
9118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9119 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9118 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9136 9135
9137 test -z "$with_tty" && with_tty=yes 9136 test -z "$with_tty" && with_tty=yes
9138 9137
9139 if test "$with_tty" = "yes" ; then 9138 if test "$with_tty" = "yes" ; then
9140 echo "checking for TTY-related features" 1>&6 9139 echo "checking for TTY-related features" 1>&6
9141 echo "configure:9142: checking for TTY-related features" >&5 9140 echo "configure:9141: checking for TTY-related features" >&5
9142 { test "$extra_verbose" = "yes" && cat << \EOF 9141 { test "$extra_verbose" = "yes" && cat << \EOF
9143 Defining HAVE_TTY 9142 Defining HAVE_TTY
9144 EOF 9143 EOF
9145 cat >> confdefs.h <<\EOF 9144 cat >> confdefs.h <<\EOF
9146 #define HAVE_TTY 1 9145 #define HAVE_TTY 1
9152 fi 9151 fi
9153 9152
9154 if test -z "$with_ncurses"; then 9153 if test -z "$with_ncurses"; then
9155 9154
9156 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9155 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9157 echo "configure:9158: checking for tgetent in -lncurses" >&5 9156 echo "configure:9157: checking for tgetent in -lncurses" >&5
9158 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9157 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9159 9158
9160 xe_check_libs=" -lncurses " 9159 xe_check_libs=" -lncurses "
9161 cat > conftest.$ac_ext <<EOF 9160 cat > conftest.$ac_ext <<EOF
9162 #line 9163 "configure" 9161 #line 9162 "configure"
9163 #include "confdefs.h" 9162 #include "confdefs.h"
9164 /* Override any gcc2 internal prototype to avoid an error. */ 9163 /* Override any gcc2 internal prototype to avoid an error. */
9165 /* We use char because int might match the return type of a gcc2 9164 /* We use char because int might match the return type of a gcc2
9166 builtin and then its argument prototype would still apply. */ 9165 builtin and then its argument prototype would still apply. */
9167 char tgetent(); 9166 char tgetent();
9168 9167
9169 int main() { 9168 int main() {
9170 tgetent() 9169 tgetent()
9171 ; return 0; } 9170 ; return 0; }
9172 EOF 9171 EOF
9173 if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9172 if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9174 rm -rf conftest* 9173 rm -rf conftest*
9175 eval "ac_cv_lib_$ac_lib_var=yes" 9174 eval "ac_cv_lib_$ac_lib_var=yes"
9176 else 9175 else
9177 echo "configure: failed program was:" >&5 9176 echo "configure: failed program was:" >&5
9178 cat conftest.$ac_ext >&5 9177 cat conftest.$ac_ext >&5
9201 EOF 9200 EOF
9202 } 9201 }
9203 9202
9204 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9203 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9205 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9204 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9206 echo "configure:9207: checking for ncurses/curses.h" >&5 9205 echo "configure:9206: checking for ncurses/curses.h" >&5
9207 9206
9208 cat > conftest.$ac_ext <<EOF 9207 cat > conftest.$ac_ext <<EOF
9209 #line 9210 "configure" 9208 #line 9209 "configure"
9210 #include "confdefs.h" 9209 #include "confdefs.h"
9211 #include <ncurses/curses.h> 9210 #include <ncurses/curses.h>
9212 EOF 9211 EOF
9213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9214 { (eval echo configure:9215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9213 { (eval echo configure:9214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9215 ac_err=`grep -v '^ *+' conftest.out` 9214 ac_err=`grep -v '^ *+' conftest.out`
9216 if test -z "$ac_err"; then 9215 if test -z "$ac_err"; then
9217 rm -rf conftest* 9216 rm -rf conftest*
9218 eval "ac_cv_header_$ac_safe=yes" 9217 eval "ac_cv_header_$ac_safe=yes"
9219 else 9218 else
9231 echo "$ac_t""no" 1>&6 9230 echo "$ac_t""no" 1>&6
9232 fi 9231 fi
9233 9232
9234 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9233 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9235 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9234 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9236 echo "configure:9237: checking for ncurses/term.h" >&5 9235 echo "configure:9236: checking for ncurses/term.h" >&5
9237 9236
9238 cat > conftest.$ac_ext <<EOF 9237 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure" 9238 #line 9239 "configure"
9240 #include "confdefs.h" 9239 #include "confdefs.h"
9241 #include <ncurses/term.h> 9240 #include <ncurses/term.h>
9242 EOF 9241 EOF
9243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9244 { (eval echo configure:9245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9243 { (eval echo configure:9244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9245 ac_err=`grep -v '^ *+' conftest.out` 9244 ac_err=`grep -v '^ *+' conftest.out`
9246 if test -z "$ac_err"; then 9245 if test -z "$ac_err"; then
9247 rm -rf conftest* 9246 rm -rf conftest*
9248 eval "ac_cv_header_$ac_safe=yes" 9247 eval "ac_cv_header_$ac_safe=yes"
9249 else 9248 else
9269 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9268 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9270 save_c_switch_site="$c_switch_site" 9269 save_c_switch_site="$c_switch_site"
9271 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9270 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9272 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9271 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9273 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9272 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9274 echo "configure:9275: checking for ncurses/curses.h" >&5 9273 echo "configure:9274: checking for ncurses/curses.h" >&5
9275 9274
9276 cat > conftest.$ac_ext <<EOF 9275 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure" 9276 #line 9277 "configure"
9278 #include "confdefs.h" 9277 #include "confdefs.h"
9279 #include <ncurses/curses.h> 9278 #include <ncurses/curses.h>
9280 EOF 9279 EOF
9281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9282 { (eval echo configure:9283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9281 { (eval echo configure:9282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9283 ac_err=`grep -v '^ *+' conftest.out` 9282 ac_err=`grep -v '^ *+' conftest.out`
9284 if test -z "$ac_err"; then 9283 if test -z "$ac_err"; then
9285 rm -rf conftest* 9284 rm -rf conftest*
9286 eval "ac_cv_header_$ac_safe=yes" 9285 eval "ac_cv_header_$ac_safe=yes"
9287 else 9286 else
9312 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9311 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9313 else 9312 else
9314 for lib in curses termlib termcap; do 9313 for lib in curses termlib termcap; do
9315 9314
9316 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9315 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9317 echo "configure:9318: checking for tgetent in -l$lib" >&5 9316 echo "configure:9317: checking for tgetent in -l$lib" >&5
9318 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9317 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9319 9318
9320 xe_check_libs=" -l$lib " 9319 xe_check_libs=" -l$lib "
9321 cat > conftest.$ac_ext <<EOF 9320 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure" 9321 #line 9322 "configure"
9323 #include "confdefs.h" 9322 #include "confdefs.h"
9324 /* Override any gcc2 internal prototype to avoid an error. */ 9323 /* Override any gcc2 internal prototype to avoid an error. */
9325 /* We use char because int might match the return type of a gcc2 9324 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */ 9325 builtin and then its argument prototype would still apply. */
9327 char tgetent(); 9326 char tgetent();
9328 9327
9329 int main() { 9328 int main() {
9330 tgetent() 9329 tgetent()
9331 ; return 0; } 9330 ; return 0; }
9332 EOF 9331 EOF
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9332 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9334 rm -rf conftest* 9333 rm -rf conftest*
9335 eval "ac_cv_lib_$ac_lib_var=yes" 9334 eval "ac_cv_lib_$ac_lib_var=yes"
9336 else 9335 else
9337 echo "configure: failed program was:" >&5 9336 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5 9337 cat conftest.$ac_ext >&5
9359 if test -n "$libs_termcap"; then 9358 if test -n "$libs_termcap"; then
9360 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9359 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9361 else 9360 else
9362 9361
9363 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9362 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9364 echo "configure:9365: checking for tgetent in -lcurses" >&5 9363 echo "configure:9364: checking for tgetent in -lcurses" >&5
9365 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9364 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9366 9365
9367 xe_check_libs=" -lcurses " 9366 xe_check_libs=" -lcurses "
9368 cat > conftest.$ac_ext <<EOF 9367 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure" 9368 #line 9369 "configure"
9370 #include "confdefs.h" 9369 #include "confdefs.h"
9371 /* Override any gcc2 internal prototype to avoid an error. */ 9370 /* Override any gcc2 internal prototype to avoid an error. */
9372 /* We use char because int might match the return type of a gcc2 9371 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */ 9372 builtin and then its argument prototype would still apply. */
9374 char tgetent(); 9373 char tgetent();
9375 9374
9376 int main() { 9375 int main() {
9377 tgetent() 9376 tgetent()
9378 ; return 0; } 9377 ; return 0; }
9379 EOF 9378 EOF
9380 if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9379 if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9381 rm -rf conftest* 9380 rm -rf conftest*
9382 eval "ac_cv_lib_$ac_lib_var=yes" 9381 eval "ac_cv_lib_$ac_lib_var=yes"
9383 else 9382 else
9384 echo "configure: failed program was:" >&5 9383 echo "configure: failed program was:" >&5
9385 cat conftest.$ac_ext >&5 9384 cat conftest.$ac_ext >&5
9393 echo "$ac_t""yes" 1>&6 9392 echo "$ac_t""yes" 1>&6
9394 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9393 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9395 else 9394 else
9396 echo "$ac_t""no" 1>&6 9395 echo "$ac_t""no" 1>&6
9397 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9396 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9398 echo "configure:9399: checking for tgetent in -ltermcap" >&5 9397 echo "configure:9398: checking for tgetent in -ltermcap" >&5
9399 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9398 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9400 9399
9401 xe_check_libs=" -ltermcap " 9400 xe_check_libs=" -ltermcap "
9402 cat > conftest.$ac_ext <<EOF 9401 cat > conftest.$ac_ext <<EOF
9403 #line 9404 "configure" 9402 #line 9403 "configure"
9404 #include "confdefs.h" 9403 #include "confdefs.h"
9405 /* Override any gcc2 internal prototype to avoid an error. */ 9404 /* Override any gcc2 internal prototype to avoid an error. */
9406 /* We use char because int might match the return type of a gcc2 9405 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */ 9406 builtin and then its argument prototype would still apply. */
9408 char tgetent(); 9407 char tgetent();
9409 9408
9410 int main() { 9409 int main() {
9411 tgetent() 9410 tgetent()
9412 ; return 0; } 9411 ; return 0; }
9413 EOF 9412 EOF
9414 if { (eval echo configure:9415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9413 if { (eval echo configure:9414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9415 rm -rf conftest* 9414 rm -rf conftest*
9416 eval "ac_cv_lib_$ac_lib_var=yes" 9415 eval "ac_cv_lib_$ac_lib_var=yes"
9417 else 9416 else
9418 echo "configure: failed program was:" >&5 9417 echo "configure: failed program was:" >&5
9419 cat conftest.$ac_ext >&5 9418 cat conftest.$ac_ext >&5
9457 } 9456 }
9458 9457
9459 9458
9460 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9459 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9461 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9460 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9462 echo "configure:9463: checking for gpm.h" >&5 9461 echo "configure:9462: checking for gpm.h" >&5
9463 9462
9464 cat > conftest.$ac_ext <<EOF 9463 cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure" 9464 #line 9465 "configure"
9466 #include "confdefs.h" 9465 #include "confdefs.h"
9467 #include <gpm.h> 9466 #include <gpm.h>
9468 EOF 9467 EOF
9469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9470 { (eval echo configure:9471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9469 { (eval echo configure:9470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9471 ac_err=`grep -v '^ *+' conftest.out` 9470 ac_err=`grep -v '^ *+' conftest.out`
9472 if test -z "$ac_err"; then 9471 if test -z "$ac_err"; then
9473 rm -rf conftest* 9472 rm -rf conftest*
9474 eval "ac_cv_header_$ac_safe=yes" 9473 eval "ac_cv_header_$ac_safe=yes"
9475 else 9474 else
9488 with_gpm=no 9487 with_gpm=no
9489 fi 9488 fi
9490 } 9489 }
9491 test -z "$with_gpm" && { 9490 test -z "$with_gpm" && {
9492 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9491 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9493 echo "configure:9494: checking for Gpm_Open in -lgpm" >&5 9492 echo "configure:9493: checking for Gpm_Open in -lgpm" >&5
9494 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9493 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9495 9494
9496 xe_check_libs=" -lgpm " 9495 xe_check_libs=" -lgpm "
9497 cat > conftest.$ac_ext <<EOF 9496 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure" 9497 #line 9498 "configure"
9499 #include "confdefs.h" 9498 #include "confdefs.h"
9500 /* Override any gcc2 internal prototype to avoid an error. */ 9499 /* Override any gcc2 internal prototype to avoid an error. */
9501 /* We use char because int might match the return type of a gcc2 9500 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */ 9501 builtin and then its argument prototype would still apply. */
9503 char Gpm_Open(); 9502 char Gpm_Open();
9504 9503
9505 int main() { 9504 int main() {
9506 Gpm_Open() 9505 Gpm_Open()
9507 ; return 0; } 9506 ; return 0; }
9508 EOF 9507 EOF
9509 if { (eval echo configure:9510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9510 rm -rf conftest* 9509 rm -rf conftest*
9511 eval "ac_cv_lib_$ac_lib_var=yes" 9510 eval "ac_cv_lib_$ac_lib_var=yes"
9512 else 9511 else
9513 echo "configure: failed program was:" >&5 9512 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5 9513 cat conftest.$ac_ext >&5
9553 echo " xemacs will be linked with \"event-unixoid.o\"" 9552 echo " xemacs will be linked with \"event-unixoid.o\""
9554 fi 9553 fi
9555 9554
9556 9555
9557 echo "checking for database support" 1>&6 9556 echo "checking for database support" 1>&6
9558 echo "configure:9559: checking for database support" >&5 9557 echo "configure:9558: checking for database support" >&5
9559 9558
9560 if test "$with_database_gnudbm" != "no"; then 9559 if test "$with_database_gnudbm" != "no"; then
9561 9560
9562 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9561 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9563 echo "configure:9564: checking for dbm_open in -lgdbm" >&5 9562 echo "configure:9563: checking for dbm_open in -lgdbm" >&5
9564 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9563 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9565 9564
9566 xe_check_libs=" -lgdbm " 9565 xe_check_libs=" -lgdbm "
9567 cat > conftest.$ac_ext <<EOF 9566 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure" 9567 #line 9568 "configure"
9569 #include "confdefs.h" 9568 #include "confdefs.h"
9570 /* Override any gcc2 internal prototype to avoid an error. */ 9569 /* Override any gcc2 internal prototype to avoid an error. */
9571 /* We use char because int might match the return type of a gcc2 9570 /* We use char because int might match the return type of a gcc2
9572 builtin and then its argument prototype would still apply. */ 9571 builtin and then its argument prototype would still apply. */
9573 char dbm_open(); 9572 char dbm_open();
9574 9573
9575 int main() { 9574 int main() {
9576 dbm_open() 9575 dbm_open()
9577 ; return 0; } 9576 ; return 0; }
9578 EOF 9577 EOF
9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9578 if { (eval echo configure:9579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9580 rm -rf conftest* 9579 rm -rf conftest*
9581 eval "ac_cv_lib_$ac_lib_var=yes" 9580 eval "ac_cv_lib_$ac_lib_var=yes"
9582 else 9581 else
9583 echo "configure: failed program was:" >&5 9582 echo "configure: failed program was:" >&5
9584 cat conftest.$ac_ext >&5 9583 cat conftest.$ac_ext >&5
9596 fi 9595 fi
9597 9596
9598 9597
9599 if test "$with_database_gnudbm" != "yes"; then 9598 if test "$with_database_gnudbm" != "yes"; then
9600 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9599 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9601 echo "configure:9602: checking for dbm_open" >&5 9600 echo "configure:9601: checking for dbm_open" >&5
9602 9601
9603 cat > conftest.$ac_ext <<EOF 9602 cat > conftest.$ac_ext <<EOF
9604 #line 9605 "configure" 9603 #line 9604 "configure"
9605 #include "confdefs.h" 9604 #include "confdefs.h"
9606 /* System header to define __stub macros and hopefully few prototypes, 9605 /* System header to define __stub macros and hopefully few prototypes,
9607 which can conflict with char dbm_open(); below. */ 9606 which can conflict with char dbm_open(); below. */
9608 #include <assert.h> 9607 #include <assert.h>
9609 /* Override any gcc2 internal prototype to avoid an error. */ 9608 /* Override any gcc2 internal prototype to avoid an error. */
9622 dbm_open(); 9621 dbm_open();
9623 #endif 9622 #endif
9624 9623
9625 ; return 0; } 9624 ; return 0; }
9626 EOF 9625 EOF
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9626 if { (eval echo configure:9627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9628 rm -rf conftest* 9627 rm -rf conftest*
9629 eval "ac_cv_func_dbm_open=yes" 9628 eval "ac_cv_func_dbm_open=yes"
9630 else 9629 else
9631 echo "configure: failed program was:" >&5 9630 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5 9631 cat conftest.$ac_ext >&5
9658 fi 9657 fi
9659 fi 9658 fi
9660 9659
9661 if test "$with_database_dbm" != "no"; then 9660 if test "$with_database_dbm" != "no"; then
9662 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9661 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9663 echo "configure:9664: checking for dbm_open" >&5 9662 echo "configure:9663: checking for dbm_open" >&5
9664 9663
9665 cat > conftest.$ac_ext <<EOF 9664 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure" 9665 #line 9666 "configure"
9667 #include "confdefs.h" 9666 #include "confdefs.h"
9668 /* System header to define __stub macros and hopefully few prototypes, 9667 /* System header to define __stub macros and hopefully few prototypes,
9669 which can conflict with char dbm_open(); below. */ 9668 which can conflict with char dbm_open(); below. */
9670 #include <assert.h> 9669 #include <assert.h>
9671 /* Override any gcc2 internal prototype to avoid an error. */ 9670 /* Override any gcc2 internal prototype to avoid an error. */
9684 dbm_open(); 9683 dbm_open();
9685 #endif 9684 #endif
9686 9685
9687 ; return 0; } 9686 ; return 0; }
9688 EOF 9687 EOF
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9688 if { (eval echo configure:9689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9690 rm -rf conftest* 9689 rm -rf conftest*
9691 eval "ac_cv_func_dbm_open=yes" 9690 eval "ac_cv_func_dbm_open=yes"
9692 else 9691 else
9693 echo "configure: failed program was:" >&5 9692 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5 9693 cat conftest.$ac_ext >&5
9705 fi 9704 fi
9706 9705
9707 if test "$need_libdbm" != "no"; then 9706 if test "$need_libdbm" != "no"; then
9708 9707
9709 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9708 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9710 echo "configure:9711: checking for dbm_open in -ldbm" >&5 9709 echo "configure:9710: checking for dbm_open in -ldbm" >&5
9711 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9710 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9712 9711
9713 xe_check_libs=" -ldbm " 9712 xe_check_libs=" -ldbm "
9714 cat > conftest.$ac_ext <<EOF 9713 cat > conftest.$ac_ext <<EOF
9715 #line 9716 "configure" 9714 #line 9715 "configure"
9716 #include "confdefs.h" 9715 #include "confdefs.h"
9717 /* Override any gcc2 internal prototype to avoid an error. */ 9716 /* Override any gcc2 internal prototype to avoid an error. */
9718 /* We use char because int might match the return type of a gcc2 9717 /* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */ 9718 builtin and then its argument prototype would still apply. */
9720 char dbm_open(); 9719 char dbm_open();
9721 9720
9722 int main() { 9721 int main() {
9723 dbm_open() 9722 dbm_open()
9724 ; return 0; } 9723 ; return 0; }
9725 EOF 9724 EOF
9726 if { (eval echo configure:9727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9725 if { (eval echo configure:9726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9727 rm -rf conftest* 9726 rm -rf conftest*
9728 eval "ac_cv_lib_$ac_lib_var=yes" 9727 eval "ac_cv_lib_$ac_lib_var=yes"
9729 else 9728 else
9730 echo "configure: failed program was:" >&5 9729 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5 9730 cat conftest.$ac_ext >&5
9758 fi 9757 fi
9759 fi 9758 fi
9760 9759
9761 if test "$with_database_berkdb" != "no"; then 9760 if test "$with_database_berkdb" != "no"; then
9762 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9761 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9763 echo "configure:9764: checking for dbopen" >&5 9762 echo "configure:9763: checking for dbopen" >&5
9764 9763
9765 cat > conftest.$ac_ext <<EOF 9764 cat > conftest.$ac_ext <<EOF
9766 #line 9767 "configure" 9765 #line 9766 "configure"
9767 #include "confdefs.h" 9766 #include "confdefs.h"
9768 /* System header to define __stub macros and hopefully few prototypes, 9767 /* System header to define __stub macros and hopefully few prototypes,
9769 which can conflict with char dbopen(); below. */ 9768 which can conflict with char dbopen(); below. */
9770 #include <assert.h> 9769 #include <assert.h>
9771 /* Override any gcc2 internal prototype to avoid an error. */ 9770 /* Override any gcc2 internal prototype to avoid an error. */
9784 dbopen(); 9783 dbopen();
9785 #endif 9784 #endif
9786 9785
9787 ; return 0; } 9786 ; return 0; }
9788 EOF 9787 EOF
9789 if { (eval echo configure:9790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9788 if { (eval echo configure:9789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9790 rm -rf conftest* 9789 rm -rf conftest*
9791 eval "ac_cv_func_dbopen=yes" 9790 eval "ac_cv_func_dbopen=yes"
9792 else 9791 else
9793 echo "configure: failed program was:" >&5 9792 echo "configure: failed program was:" >&5
9794 cat conftest.$ac_ext >&5 9793 cat conftest.$ac_ext >&5
9805 fi 9804 fi
9806 9805
9807 if test "$need_libdb" != "no"; then 9806 if test "$need_libdb" != "no"; then
9808 9807
9809 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9808 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9810 echo "configure:9811: checking for dbopen in -ldb" >&5 9809 echo "configure:9810: checking for dbopen in -ldb" >&5
9811 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9810 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9812 9811
9813 xe_check_libs=" -ldb " 9812 xe_check_libs=" -ldb "
9814 cat > conftest.$ac_ext <<EOF 9813 cat > conftest.$ac_ext <<EOF
9815 #line 9816 "configure" 9814 #line 9815 "configure"
9816 #include "confdefs.h" 9815 #include "confdefs.h"
9817 /* Override any gcc2 internal prototype to avoid an error. */ 9816 /* Override any gcc2 internal prototype to avoid an error. */
9818 /* We use char because int might match the return type of a gcc2 9817 /* We use char because int might match the return type of a gcc2
9819 builtin and then its argument prototype would still apply. */ 9818 builtin and then its argument prototype would still apply. */
9820 char dbopen(); 9819 char dbopen();
9821 9820
9822 int main() { 9821 int main() {
9823 dbopen() 9822 dbopen()
9824 ; return 0; } 9823 ; return 0; }
9825 EOF 9824 EOF
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9825 if { (eval echo configure:9826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9827 rm -rf conftest* 9826 rm -rf conftest*
9828 eval "ac_cv_lib_$ac_lib_var=yes" 9827 eval "ac_cv_lib_$ac_lib_var=yes"
9829 else 9828 else
9830 echo "configure: failed program was:" >&5 9829 echo "configure: failed program was:" >&5
9831 cat conftest.$ac_ext >&5 9830 cat conftest.$ac_ext >&5
9845 9844
9846 fi 9845 fi
9847 if test "$with_database_berkdb" = "yes"; then 9846 if test "$with_database_berkdb" = "yes"; then
9848 for path in "db/db.h" "db.h"; do 9847 for path in "db/db.h" "db.h"; do
9849 cat > conftest.$ac_ext <<EOF 9848 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure" 9849 #line 9850 "configure"
9851 #include "confdefs.h" 9850 #include "confdefs.h"
9852 #ifdef HAVE_INTTYPES_H 9851 #ifdef HAVE_INTTYPES_H
9853 #define __BIT_TYPES_DEFINED__ 9852 #define __BIT_TYPES_DEFINED__
9854 #include <inttypes.h> 9853 #include <inttypes.h>
9855 typedef uint8_t u_int8_t; 9854 typedef uint8_t u_int8_t;
9858 #ifdef WE_DONT_NEED_QUADS 9857 #ifdef WE_DONT_NEED_QUADS
9859 typedef uint64_t u_int64_t; 9858 typedef uint64_t u_int64_t;
9860 #endif 9859 #endif
9861 #endif 9860 #endif
9862 #include <$path> 9861 #include <$path>
9862 #ifdef DB_VERSION_MAJOR
9863 #if DB_VERSION_MAJOR > 1
9864 choke me;
9865 #endif
9866 #endif
9863 9867
9864 int main() { 9868 int main() {
9865 9869
9866 ; return 0; } 9870 ; return 0; }
9867 EOF 9871 EOF
9868 if { (eval echo configure:9869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9872 if { (eval echo configure:9873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9869 rm -rf conftest* 9873 rm -rf conftest*
9870 db_h_path="$path"; break 9874 db_h_path="$path"; break
9871 else 9875 else
9872 echo "configure: failed program was:" >&5 9876 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5 9877 cat conftest.$ac_ext >&5
9915 fi 9919 fi
9916 9920
9917 if test "$with_socks" = "yes"; then 9921 if test "$with_socks" = "yes"; then
9918 9922
9919 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9923 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9920 echo "configure:9921: checking for SOCKSinit in -lsocks" >&5 9924 echo "configure:9925: checking for SOCKSinit in -lsocks" >&5
9921 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9925 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9922 9926
9923 xe_check_libs=" -lsocks " 9927 xe_check_libs=" -lsocks "
9924 cat > conftest.$ac_ext <<EOF 9928 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure" 9929 #line 9930 "configure"
9926 #include "confdefs.h" 9930 #include "confdefs.h"
9927 /* Override any gcc2 internal prototype to avoid an error. */ 9931 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2 9932 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */ 9933 builtin and then its argument prototype would still apply. */
9930 char SOCKSinit(); 9934 char SOCKSinit();
9931 9935
9932 int main() { 9936 int main() {
9933 SOCKSinit() 9937 SOCKSinit()
9934 ; return 0; } 9938 ; return 0; }
9935 EOF 9939 EOF
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9940 if { (eval echo configure:9941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9937 rm -rf conftest* 9941 rm -rf conftest*
9938 eval "ac_cv_lib_$ac_lib_var=yes" 9942 eval "ac_cv_lib_$ac_lib_var=yes"
9939 else 9943 else
9940 echo "configure: failed program was:" >&5 9944 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5 9945 cat conftest.$ac_ext >&5
10245 #define RAW_PURESIZE $puresize 10249 #define RAW_PURESIZE $puresize
10246 EOF 10250 EOF
10247 } 10251 }
10248 10252
10249 10253
10250 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF 10254 if test "$GNU_MALLOC" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
10251 Defining GNU_MALLOC 10255 Defining GNU_MALLOC
10252 EOF 10256 EOF
10253 cat >> confdefs.h <<\EOF 10257 cat >> confdefs.h <<\EOF
10254 #define GNU_MALLOC 1 10258 #define GNU_MALLOC 1
10255 EOF 10259 EOF
10256 } 10260 }
10257 10261
10258 elif test "$use_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF 10262 elif test "$with_system_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
10259 Defining USE_SYSTEM_MALLOC 10263 Defining USE_SYSTEM_MALLOC
10260 EOF 10264 EOF
10261 cat >> confdefs.h <<\EOF 10265 cat >> confdefs.h <<\EOF
10262 #define USE_SYSTEM_MALLOC 1 10266 #define USE_SYSTEM_MALLOC 1
10263 EOF 10267 EOF
10264 } 10268 }
10265 10269
10266 elif test "$use_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF 10270 elif test "$with_debug_malloc" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF
10267 Defining USE_DEBUG_MALLOC 10271 Defining USE_DEBUG_MALLOC
10268 EOF 10272 EOF
10269 cat >> confdefs.h <<\EOF 10273 cat >> confdefs.h <<\EOF
10270 #define USE_DEBUG_MALLOC 1 10274 #define USE_DEBUG_MALLOC 1
10271 EOF 10275 EOF
10272 } 10276 }
10273 10277
10274 { test "$extra_verbose" = "yes" && cat << \EOF 10278 { test "$extra_verbose" = "yes" && cat << \EOF
10275 Defining USE_SYSTEM_MALLOC 10279 Defining USE_SYSTEM_MALLOC
10276 EOF 10280 EOF
10277 cat >> confdefs.h <<\EOF 10281 cat >> confdefs.h <<\EOF
10278 #define USE_SYSTEM_MALLOC 1 10282 #define USE_SYSTEM_MALLOC 1
10279 EOF 10283 EOF
10570 done 10574 done
10571 10575
10572 ac_given_srcdir=$srcdir 10576 ac_given_srcdir=$srcdir
10573 ac_given_INSTALL="$INSTALL" 10577 ac_given_INSTALL="$INSTALL"
10574 10578
10575 trap 'rm -fr `echo "$internal_makefile_list src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 10579 trap 'rm -fr `echo "$internal_makefile_list lib-src/config.values src/config.h lwlib/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
10576 EOF 10580 EOF
10577 cat >> $CONFIG_STATUS <<EOF 10581 cat >> $CONFIG_STATUS <<EOF
10578 10582
10579 # Protect against being on the right side of a sed subst in config.status. 10583 # Protect against being on the right side of a sed subst in config.status.
10580 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 10584 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
10601 s%@includedir@%$includedir%g 10605 s%@includedir@%$includedir%g
10602 s%@oldincludedir@%$oldincludedir%g 10606 s%@oldincludedir@%$oldincludedir%g
10603 s%@infodir@%$infodir%g 10607 s%@infodir@%$infodir%g
10604 s%@mandir@%$mandir%g 10608 s%@mandir@%$mandir%g
10605 s%@LN_S@%$LN_S%g 10609 s%@LN_S@%$LN_S%g
10610 s%@blddir@%$blddir%g
10606 s%@CC@%$CC%g 10611 s%@CC@%$CC%g
10607 s%@CPP@%$CPP%g 10612 s%@CPP@%$CPP%g
10608 s%@ld_switch_shared@%$ld_switch_shared%g 10613 s%@ld_switch_shared@%$ld_switch_shared%g
10609 s%@start_files@%$start_files%g 10614 s%@start_files@%$start_files%g
10610 s%@start_flags@%$start_flags%g 10615 s%@start_flags@%$start_flags%g
10700 fi 10705 fi
10701 EOF 10706 EOF
10702 10707
10703 cat >> $CONFIG_STATUS <<EOF 10708 cat >> $CONFIG_STATUS <<EOF
10704 10709
10705 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list"} 10710 CONFIG_FILES=\${CONFIG_FILES-"$internal_makefile_list lib-src/config.values"}
10706 EOF 10711 EOF
10707 cat >> $CONFIG_STATUS <<\EOF 10712 cat >> $CONFIG_STATUS <<\EOF
10708 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 10713 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 10714 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10710 case "$ac_file" in 10715 case "$ac_file" in
10911 mv -f Makefile.new Makefile 10916 mv -f Makefile.new Makefile
10912 rm -f junk.c junk.cpp 10917 rm -f junk.c junk.cpp
10913 ) 10918 )
10914 done 10919 done
10915 10920
10916 sed < config.status > lib-src/config.values \ 10921 sed < config.status >> lib-src/config.values \
10917 -e 's/^s%@\(.*\)@%\(.*\)%g$/\1 "\2"/p' \ 10922 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \
10918 -e '/{ac_dA}.*{ac_dB}.*{ac_dC}.*{ac_dD}$/!d' \ 10923 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \
10919 -e 's/\${ac_dA}\(.*\)\${ac_dB}.*\${ac_dC}\(.*\)\${ac_dD}/\1 \2/' \ 10924 -e 's/^\([^ ]*\) $/\1 ""/' \
10920 -e 's/^\([^ ]*\) $/\1 ""/' \ 10925 -e 's/ 1$/ t/'
10921 -e 's/ 1$/ t/'
10922 10926
10923 10927
10924 exit 0 10928 exit 0
10925 EOF 10929 EOF
10926 chmod +x $CONFIG_STATUS 10930 chmod +x $CONFIG_STATUS