comparison configure @ 193:f53b5ca2e663 r20-3b23

Import from CVS: tag r20-3b23
author cvs
date Mon, 13 Aug 2007 09:58:30 +0200
parents b405438285a2
children acd284d43ca1
comparison
equal deleted inserted replaced
192:9d35321dd38c 193:f53b5ca2e663
5443 echo "$ac_t""no" 1>&6 5443 echo "$ac_t""no" 1>&6
5444 fi 5444 fi
5445 5445
5446 5446
5447 5447
5448
5449 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
5450 echo "configure:5451: checking for XawScrollbarSetThumb in -lXaw" >&5
5451 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
5452
5453 xe_check_libs=" -lXaw "
5454 cat > conftest.$ac_ext <<EOF
5455 #line 5456 "configure"
5456 #include "confdefs.h"
5457 /* Override any gcc2 internal prototype to avoid an error. */
5458 /* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
5460 char XawScrollbarSetThumb();
5461
5462 int main() {
5463 XawScrollbarSetThumb()
5464 ; return 0; }
5465 EOF
5466 if { (eval echo configure:5467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5467 rm -rf conftest*
5468 eval "ac_cv_lib_$ac_lib_var=yes"
5469 else
5470 echo "configure: failed program was:" >&5
5471 cat conftest.$ac_ext >&5
5472 rm -rf conftest*
5473 eval "ac_cv_lib_$ac_lib_var=no"
5474 fi
5475 rm -f conftest*
5476 xe_check_libs=""
5477
5478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
5479 echo "$ac_t""yes" 1>&6
5480 have_xaw=yes
5481 else
5482 echo "$ac_t""no" 1>&6
5483 have_xaw=no
5484 fi
5485
5486
5487 if test "$have_xaw" = "yes"; then
5488 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'`
5489 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6
5490 echo "configure:5491: checking for X11/Xaw/Reports.h" >&5
5491
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 #include <X11/Xaw/Reports.h>
5496 EOF
5497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5498 { (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5499 ac_err=`grep -v '^ *+' conftest.out`
5500 if test -z "$ac_err"; then
5501 rm -rf conftest*
5502 eval "ac_cv_header_$ac_safe=yes"
5503 else
5504 echo "$ac_err" >&5
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 rm -rf conftest*
5508 eval "ac_cv_header_$ac_safe=no"
5509 fi
5510 rm -f conftest*
5511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5512 echo "$ac_t""yes" 1>&6
5513
5514 MAKE_SUBDIR="$MAKE_SUBDIR pkg-src/tree-x" && if test "$extra_verbose" = "yes"; then echo " Appending \"pkg-src/tree-x\" to \$MAKE_SUBDIR"; fi
5515 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR pkg-src/tree-x" && if test "$extra_verbose" = "yes"; then echo " Appending \"pkg-src/tree-x\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
5516 else
5517 echo "$ac_t""no" 1>&6
5518 fi
5519
5520 fi
5521
5522 fi 5448 fi
5523 test -z "$window_system" && window_system="none" 5449 test -z "$window_system" && window_system="none"
5524 5450
5525 if test "$window_system" = "none" ; then 5451 if test "$window_system" = "none" ; then
5526 if test "$with_tty" = "no" ; then 5452 if test "$with_tty" = "no" ; then
5550 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 5476 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
5551 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 5477 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
5552 esac 5478 esac
5553 5479
5554 echo "checking for session-management option" 1>&6 5480 echo "checking for session-management option" 1>&6
5555 echo "configure:5556: checking for session-management option" >&5; 5481 echo "configure:5482: checking for session-management option" >&5;
5556 if test "$with_session" != "no"; then 5482 if test "$with_session" != "no"; then
5557 { test "$extra_verbose" = "yes" && cat << \EOF 5483 { test "$extra_verbose" = "yes" && cat << \EOF
5558 Defining HAVE_SESSION 5484 Defining HAVE_SESSION
5559 EOF 5485 EOF
5560 cat >> confdefs.h <<\EOF 5486 cat >> confdefs.h <<\EOF
5565 fi 5491 fi
5566 5492
5567 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 5493 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
5568 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 5494 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
5569 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 5495 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
5570 echo "configure:5571: checking for X11/Xauth.h" >&5 5496 echo "configure:5497: checking for X11/Xauth.h" >&5
5571 5497
5572 cat > conftest.$ac_ext <<EOF 5498 cat > conftest.$ac_ext <<EOF
5573 #line 5574 "configure" 5499 #line 5500 "configure"
5574 #include "confdefs.h" 5500 #include "confdefs.h"
5575 #include <X11/Xauth.h> 5501 #include <X11/Xauth.h>
5576 EOF 5502 EOF
5577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5578 { (eval echo configure:5579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5504 { (eval echo configure:5505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5579 ac_err=`grep -v '^ *+' conftest.out` 5505 ac_err=`grep -v '^ *+' conftest.out`
5580 if test -z "$ac_err"; then 5506 if test -z "$ac_err"; then
5581 rm -rf conftest* 5507 rm -rf conftest*
5582 eval "ac_cv_header_$ac_safe=yes" 5508 eval "ac_cv_header_$ac_safe=yes"
5583 else 5509 else
5596 with_xauth=no 5522 with_xauth=no
5597 fi 5523 fi
5598 } 5524 }
5599 test -z "$with_xauth" && { 5525 test -z "$with_xauth" && {
5600 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 5526 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
5601 echo "configure:5602: checking for XauGetAuthByAddr in -lXau" >&5 5527 echo "configure:5528: checking for XauGetAuthByAddr in -lXau" >&5
5602 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 5528 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
5603 5529
5604 xe_check_libs=" -lXau " 5530 xe_check_libs=" -lXau "
5605 cat > conftest.$ac_ext <<EOF 5531 cat > conftest.$ac_ext <<EOF
5606 #line 5607 "configure" 5532 #line 5533 "configure"
5607 #include "confdefs.h" 5533 #include "confdefs.h"
5608 /* Override any gcc2 internal prototype to avoid an error. */ 5534 /* Override any gcc2 internal prototype to avoid an error. */
5609 /* We use char because int might match the return type of a gcc2 5535 /* We use char because int might match the return type of a gcc2
5610 builtin and then its argument prototype would still apply. */ 5536 builtin and then its argument prototype would still apply. */
5611 char XauGetAuthByAddr(); 5537 char XauGetAuthByAddr();
5612 5538
5613 int main() { 5539 int main() {
5614 XauGetAuthByAddr() 5540 XauGetAuthByAddr()
5615 ; return 0; } 5541 ; return 0; }
5616 EOF 5542 EOF
5617 if { (eval echo configure:5618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5543 if { (eval echo configure:5544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5618 rm -rf conftest* 5544 rm -rf conftest*
5619 eval "ac_cv_lib_$ac_lib_var=yes" 5545 eval "ac_cv_lib_$ac_lib_var=yes"
5620 else 5546 else
5621 echo "configure: failed program was:" >&5 5547 echo "configure: failed program was:" >&5
5622 cat conftest.$ac_ext >&5 5548 cat conftest.$ac_ext >&5
5653 fi 5579 fi
5654 5580
5655 5581
5656 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5582 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5657 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5583 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5658 echo "configure:5659: checking for OffiX/DragAndDrop.h" >&5 5584 echo "configure:5585: checking for OffiX/DragAndDrop.h" >&5
5659 5585
5660 cat > conftest.$ac_ext <<EOF 5586 cat > conftest.$ac_ext <<EOF
5661 #line 5662 "configure" 5587 #line 5588 "configure"
5662 #include "confdefs.h" 5588 #include "confdefs.h"
5663 #include <OffiX/DragAndDrop.h> 5589 #include <OffiX/DragAndDrop.h>
5664 EOF 5590 EOF
5665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5666 { (eval echo configure:5667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5592 { (eval echo configure:5593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5667 ac_err=`grep -v '^ *+' conftest.out` 5593 ac_err=`grep -v '^ *+' conftest.out`
5668 if test -z "$ac_err"; then 5594 if test -z "$ac_err"; then
5669 rm -rf conftest* 5595 rm -rf conftest*
5670 eval "ac_cv_header_$ac_safe=yes" 5596 eval "ac_cv_header_$ac_safe=yes"
5671 else 5597 else
5684 with_offix=no 5610 with_offix=no
5685 fi 5611 fi
5686 } 5612 }
5687 test -z "$with_offix" && { 5613 test -z "$with_offix" && {
5688 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5614 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5689 echo "configure:5690: checking for DndInitialize in -lDnd" >&5 5615 echo "configure:5616: checking for DndInitialize in -lDnd" >&5
5690 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5616 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5691 5617
5692 xe_check_libs=" -lDnd " 5618 xe_check_libs=" -lDnd "
5693 cat > conftest.$ac_ext <<EOF 5619 cat > conftest.$ac_ext <<EOF
5694 #line 5695 "configure" 5620 #line 5621 "configure"
5695 #include "confdefs.h" 5621 #include "confdefs.h"
5696 /* Override any gcc2 internal prototype to avoid an error. */ 5622 /* Override any gcc2 internal prototype to avoid an error. */
5697 /* We use char because int might match the return type of a gcc2 5623 /* We use char because int might match the return type of a gcc2
5698 builtin and then its argument prototype would still apply. */ 5624 builtin and then its argument prototype would still apply. */
5699 char DndInitialize(); 5625 char DndInitialize();
5700 5626
5701 int main() { 5627 int main() {
5702 DndInitialize() 5628 DndInitialize()
5703 ; return 0; } 5629 ; return 0; }
5704 EOF 5630 EOF
5705 if { (eval echo configure:5706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5631 if { (eval echo configure:5632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5706 rm -rf conftest* 5632 rm -rf conftest*
5707 eval "ac_cv_lib_$ac_lib_var=yes" 5633 eval "ac_cv_lib_$ac_lib_var=yes"
5708 else 5634 else
5709 echo "configure: failed program was:" >&5 5635 echo "configure: failed program was:" >&5
5710 cat conftest.$ac_ext >&5 5636 cat conftest.$ac_ext >&5
5739 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5665 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5740 if test "$with_tooltalk" != "no" ; then 5666 if test "$with_tooltalk" != "no" ; then
5741 for dir in "" "Tt/" "desktop/" ; do 5667 for dir in "" "Tt/" "desktop/" ; do
5742 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5668 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5743 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5669 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5744 echo "configure:5745: checking for ${dir}tt_c.h" >&5 5670 echo "configure:5671: checking for ${dir}tt_c.h" >&5
5745 5671
5746 cat > conftest.$ac_ext <<EOF 5672 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure" 5673 #line 5674 "configure"
5748 #include "confdefs.h" 5674 #include "confdefs.h"
5749 #include <${dir}tt_c.h> 5675 #include <${dir}tt_c.h>
5750 EOF 5676 EOF
5751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5752 { (eval echo configure:5753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5678 { (eval echo configure:5679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5753 ac_err=`grep -v '^ *+' conftest.out` 5679 ac_err=`grep -v '^ *+' conftest.out`
5754 if test -z "$ac_err"; then 5680 if test -z "$ac_err"; then
5755 rm -rf conftest* 5681 rm -rf conftest*
5756 eval "ac_cv_header_$ac_safe=yes" 5682 eval "ac_cv_header_$ac_safe=yes"
5757 else 5683 else
5776 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5702 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5777 5703
5778 xe_msg_checking="for tt_message_create in -ltt" 5704 xe_msg_checking="for tt_message_create in -ltt"
5779 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5705 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5780 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5706 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5781 echo "configure:5782: checking "$xe_msg_checking"" >&5 5707 echo "configure:5708: checking "$xe_msg_checking"" >&5
5782 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5708 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5783 5709
5784 xe_check_libs=" -ltt $extra_libs" 5710 xe_check_libs=" -ltt $extra_libs"
5785 cat > conftest.$ac_ext <<EOF 5711 cat > conftest.$ac_ext <<EOF
5786 #line 5787 "configure" 5712 #line 5713 "configure"
5787 #include "confdefs.h" 5713 #include "confdefs.h"
5788 /* Override any gcc2 internal prototype to avoid an error. */ 5714 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2 5715 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */ 5716 builtin and then its argument prototype would still apply. */
5791 char tt_message_create(); 5717 char tt_message_create();
5792 5718
5793 int main() { 5719 int main() {
5794 tt_message_create() 5720 tt_message_create()
5795 ; return 0; } 5721 ; return 0; }
5796 EOF 5722 EOF
5797 if { (eval echo configure:5798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5798 rm -rf conftest* 5724 rm -rf conftest*
5799 eval "ac_cv_lib_$ac_lib_var=yes" 5725 eval "ac_cv_lib_$ac_lib_var=yes"
5800 else 5726 else
5801 echo "configure: failed program was:" >&5 5727 echo "configure: failed program was:" >&5
5802 cat conftest.$ac_ext >&5 5728 cat conftest.$ac_ext >&5
5841 fi 5767 fi
5842 fi 5768 fi
5843 5769
5844 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5770 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5845 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5771 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5846 echo "configure:5847: checking for Dt/Dt.h" >&5 5772 echo "configure:5773: checking for Dt/Dt.h" >&5
5847 5773
5848 cat > conftest.$ac_ext <<EOF 5774 cat > conftest.$ac_ext <<EOF
5849 #line 5850 "configure" 5775 #line 5776 "configure"
5850 #include "confdefs.h" 5776 #include "confdefs.h"
5851 #include <Dt/Dt.h> 5777 #include <Dt/Dt.h>
5852 EOF 5778 EOF
5853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5854 { (eval echo configure:5855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5780 { (eval echo configure:5781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5855 ac_err=`grep -v '^ *+' conftest.out` 5781 ac_err=`grep -v '^ *+' conftest.out`
5856 if test -z "$ac_err"; then 5782 if test -z "$ac_err"; then
5857 rm -rf conftest* 5783 rm -rf conftest*
5858 eval "ac_cv_header_$ac_safe=yes" 5784 eval "ac_cv_header_$ac_safe=yes"
5859 else 5785 else
5872 with_cde=no 5798 with_cde=no
5873 fi 5799 fi
5874 } 5800 }
5875 test -z "$with_cde" && { 5801 test -z "$with_cde" && {
5876 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5802 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5877 echo "configure:5878: checking for DtDndDragStart in -lDtSvc" >&5 5803 echo "configure:5804: checking for DtDndDragStart in -lDtSvc" >&5
5878 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5804 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5879 5805
5880 xe_check_libs=" -lDtSvc " 5806 xe_check_libs=" -lDtSvc "
5881 cat > conftest.$ac_ext <<EOF 5807 cat > conftest.$ac_ext <<EOF
5882 #line 5883 "configure" 5808 #line 5809 "configure"
5883 #include "confdefs.h" 5809 #include "confdefs.h"
5884 /* Override any gcc2 internal prototype to avoid an error. */ 5810 /* Override any gcc2 internal prototype to avoid an error. */
5885 /* We use char because int might match the return type of a gcc2 5811 /* We use char because int might match the return type of a gcc2
5886 builtin and then its argument prototype would still apply. */ 5812 builtin and then its argument prototype would still apply. */
5887 char DtDndDragStart(); 5813 char DtDndDragStart();
5888 5814
5889 int main() { 5815 int main() {
5890 DtDndDragStart() 5816 DtDndDragStart()
5891 ; return 0; } 5817 ; return 0; }
5892 EOF 5818 EOF
5893 if { (eval echo configure:5894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5894 rm -rf conftest* 5820 rm -rf conftest*
5895 eval "ac_cv_lib_$ac_lib_var=yes" 5821 eval "ac_cv_lib_$ac_lib_var=yes"
5896 else 5822 else
5897 echo "configure: failed program was:" >&5 5823 echo "configure: failed program was:" >&5
5898 cat conftest.$ac_ext >&5 5824 cat conftest.$ac_ext >&5
5935 EOF 5861 EOF
5936 } 5862 }
5937 5863
5938 5864
5939 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5865 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5940 echo "configure:5941: checking for main in -lenergize" >&5 5866 echo "configure:5867: checking for main in -lenergize" >&5
5941 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5867 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5942 5868
5943 xe_check_libs=" -lenergize " 5869 xe_check_libs=" -lenergize "
5944 cat > conftest.$ac_ext <<EOF 5870 cat > conftest.$ac_ext <<EOF
5945 #line 5946 "configure" 5871 #line 5872 "configure"
5946 #include "confdefs.h" 5872 #include "confdefs.h"
5947 5873
5948 int main() { 5874 int main() {
5949 main() 5875 main()
5950 ; return 0; } 5876 ; return 0; }
5951 EOF 5877 EOF
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5953 rm -rf conftest* 5879 rm -rf conftest*
5954 eval "ac_cv_lib_$ac_lib_var=yes" 5880 eval "ac_cv_lib_$ac_lib_var=yes"
5955 else 5881 else
5956 echo "configure: failed program was:" >&5 5882 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5 5883 cat conftest.$ac_ext >&5
5979 5905
5980 5906
5981 if test -z "$energize_version"; then 5907 if test -z "$energize_version"; then
5982 5908
5983 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5909 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5984 echo "configure:5985: checking for main in -lconn" >&5 5910 echo "configure:5911: checking for main in -lconn" >&5
5985 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5911 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5986 5912
5987 xe_check_libs=" -lconn " 5913 xe_check_libs=" -lconn "
5988 cat > conftest.$ac_ext <<EOF 5914 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure" 5915 #line 5916 "configure"
5990 #include "confdefs.h" 5916 #include "confdefs.h"
5991 5917
5992 int main() { 5918 int main() {
5993 main() 5919 main()
5994 ; return 0; } 5920 ; return 0; }
5995 EOF 5921 EOF
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5922 if { (eval echo configure:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5997 rm -rf conftest* 5923 rm -rf conftest*
5998 eval "ac_cv_lib_$ac_lib_var=yes" 5924 eval "ac_cv_lib_$ac_lib_var=yes"
5999 else 5925 else
6000 echo "configure: failed program was:" >&5 5926 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5 5927 cat conftest.$ac_ext >&5
6024 5950
6025 5951
6026 fi 5952 fi
6027 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5953 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
6028 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5954 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
6029 echo "configure:6030: checking for editorconn.h" >&5 5955 echo "configure:5956: checking for editorconn.h" >&5
6030 5956
6031 cat > conftest.$ac_ext <<EOF 5957 cat > conftest.$ac_ext <<EOF
6032 #line 6033 "configure" 5958 #line 5959 "configure"
6033 #include "confdefs.h" 5959 #include "confdefs.h"
6034 #include <editorconn.h> 5960 #include <editorconn.h>
6035 EOF 5961 EOF
6036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6037 { (eval echo configure:6038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5963 { (eval echo configure:5964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6038 ac_err=`grep -v '^ *+' conftest.out` 5964 ac_err=`grep -v '^ *+' conftest.out`
6039 if test -z "$ac_err"; then 5965 if test -z "$ac_err"; then
6040 rm -rf conftest* 5966 rm -rf conftest*
6041 eval "ac_cv_header_$ac_safe=yes" 5967 eval "ac_cv_header_$ac_safe=yes"
6042 else 5968 else
6073 } 5999 }
6074 6000
6075 fi 6001 fi
6076 6002
6077 6003
6078 echo "checking for graphics libraries" 1>&6 6004 if test "$with_x11" = "yes"; then
6079 echo "configure:6080: checking for graphics libraries" >&5 6005
6080 test -z "$with_gif" && with_gif=yes; 6006 echo "checking for X11 graphics libraries" 1>&6
6081 if test "$with_gif" = "yes"; then 6007 echo "configure:6008: checking for X11 graphics libraries" >&5
6082 { test "$extra_verbose" = "yes" && cat << \EOF 6008 test -z "$with_gif" && with_gif=yes;
6009 if test "$with_gif" = "yes"; then
6010 { test "$extra_verbose" = "yes" && cat << \EOF
6083 Defining HAVE_GIF 6011 Defining HAVE_GIF
6084 EOF 6012 EOF
6085 cat >> confdefs.h <<\EOF 6013 cat >> confdefs.h <<\EOF
6086 #define HAVE_GIF 1 6014 #define HAVE_GIF 1
6087 EOF 6015 EOF
6088 } 6016 }
6089 6017
6090 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then 6018 extra_objs="$extra_objs dgif_lib.o gif_err.o gifalloc.o" && if test "$extra_verbose" = "yes"; then
6091 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 6019 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
6092 fi 6020 fi
6093 fi 6021 fi
6094 6022
6095 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6023 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6096 echo "configure:6097: checking for Xpm - no older than 3.4f" >&5 6024 echo "configure:6025: checking for Xpm - no older than 3.4f" >&5
6097 xe_check_libs=-lXpm 6025 xe_check_libs=-lXpm
6098 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 6026 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure" 6027 #line 6028 "configure"
6100 #include "confdefs.h" 6028 #include "confdefs.h"
6101 #include <X11/xpm.h> 6029 #include <X11/xpm.h>
6102 int main(int c, char **v) { 6030 int main(int c, char **v) {
6103 return c == 1 ? 0 : 6031 return c == 1 ? 0 :
6104 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6032 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6105 XpmIncludeVersion < 30406 ? 2 : 6033 XpmIncludeVersion < 30406 ? 2 :
6106 0 ; 6034 0 ;
6107 } 6035 }
6108 EOF 6036 EOF
6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6110 then 6038 then
6111 ./conftest foobar; xpm_status=$?; 6039 ./conftest foobar; xpm_status=$?;
6112 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 6040 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
6113 else 6041 else
6114 echo "configure: failed program was:" >&5 6042 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5 6043 cat conftest.$ac_ext >&5
6116 rm -fr conftest* 6044 rm -fr conftest*
6117 with_xpm=no 6045 with_xpm=no
6118 fi 6046 fi
6119 rm -fr conftest* 6047 rm -fr conftest*
6120 } 6048 }
6121 xe_check_libs= 6049 xe_check_libs=
6122 echo "$ac_t""$with_xpm" 1>&6 6050 echo "$ac_t""$with_xpm" 1>&6
6123 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then 6051 if test "$xpm_status" = "1" -o "$xpm_status" = "2"; then
6124 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!" 6052 test "$xpm_status" = "1" && problem="Xpm library version and header file version don't match!"
6125 test "$xpm_status" = "2" && problem="Xpm library version is too old!" 6053 test "$xpm_status" = "2" && problem="Xpm library version is too old!"
6126 echo " 6054 echo "
6127 *** WARNING *** $problem 6055 *** WARNING *** $problem
6128 I'm not touching that with a 10-foot pole! 6056 I'm not touching that with a 10-foot pole!
6129 If you really want to use the installed version of Xpm, rerun 6057 If you really want to use the installed version of Xpm, rerun
6130 configure --with-xpm=yes, but don't blame me if XEmacs crashes! 6058 configure --with-xpm=yes, but don't blame me if XEmacs crashes!
6131 " 6059 "
6132 fi 6060 fi
6133 if test "$with_xpm" = "yes"; then 6061 if test "$with_xpm" = "yes"; then
6134 { test "$extra_verbose" = "yes" && cat << \EOF 6062 { test "$extra_verbose" = "yes" && cat << \EOF
6135 Defining HAVE_XPM 6063 Defining HAVE_XPM
6136 EOF 6064 EOF
6137 cat >> confdefs.h <<\EOF 6065 cat >> confdefs.h <<\EOF
6138 #define HAVE_XPM 1 6066 #define HAVE_XPM 1
6139 EOF 6067 EOF
6140 } 6068 }
6141 6069
6142 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6070 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6143 fi 6071 fi
6144 6072
6145 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6073 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6146 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6074 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6147 echo "configure:6148: checking for compface.h" >&5 6075 echo "configure:6076: checking for compface.h" >&5
6148 6076
6149 cat > conftest.$ac_ext <<EOF 6077 cat > conftest.$ac_ext <<EOF
6150 #line 6151 "configure" 6078 #line 6079 "configure"
6151 #include "confdefs.h" 6079 #include "confdefs.h"
6152 #include <compface.h> 6080 #include <compface.h>
6153 EOF 6081 EOF
6154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6155 { (eval echo configure:6156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6083 { (eval echo configure:6084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6156 ac_err=`grep -v '^ *+' conftest.out` 6084 ac_err=`grep -v '^ *+' conftest.out`
6157 if test -z "$ac_err"; then 6085 if test -z "$ac_err"; then
6158 rm -rf conftest* 6086 rm -rf conftest*
6159 eval "ac_cv_header_$ac_safe=yes" 6087 eval "ac_cv_header_$ac_safe=yes"
6160 else 6088 else
6171 else 6099 else
6172 echo "$ac_t""no" 1>&6 6100 echo "$ac_t""no" 1>&6
6173 with_xface=no 6101 with_xface=no
6174 fi 6102 fi
6175 } 6103 }
6176 test -z "$with_xface" && { 6104 test -z "$with_xface" && {
6177 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6105 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6178 echo "configure:6179: checking for UnGenFace in -lcompface" >&5 6106 echo "configure:6107: checking for UnGenFace in -lcompface" >&5
6179 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6107 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6180 6108
6181 xe_check_libs=" -lcompface " 6109 xe_check_libs=" -lcompface "
6182 cat > conftest.$ac_ext <<EOF 6110 cat > conftest.$ac_ext <<EOF
6183 #line 6184 "configure" 6111 #line 6112 "configure"
6184 #include "confdefs.h" 6112 #include "confdefs.h"
6185 /* Override any gcc2 internal prototype to avoid an error. */ 6113 /* Override any gcc2 internal prototype to avoid an error. */
6186 /* We use char because int might match the return type of a gcc2 6114 /* We use char because int might match the return type of a gcc2
6187 builtin and then its argument prototype would still apply. */ 6115 builtin and then its argument prototype would still apply. */
6188 char UnGenFace(); 6116 char UnGenFace();
6189 6117
6190 int main() { 6118 int main() {
6191 UnGenFace() 6119 UnGenFace()
6192 ; return 0; } 6120 ; return 0; }
6193 EOF 6121 EOF
6194 if { (eval echo configure:6195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6195 rm -rf conftest* 6123 rm -rf conftest*
6196 eval "ac_cv_lib_$ac_lib_var=yes" 6124 eval "ac_cv_lib_$ac_lib_var=yes"
6197 else 6125 else
6198 echo "configure: failed program was:" >&5 6126 echo "configure: failed program was:" >&5
6199 cat conftest.$ac_ext >&5 6127 cat conftest.$ac_ext >&5
6210 echo "$ac_t""no" 1>&6 6138 echo "$ac_t""no" 1>&6
6211 with_xface=no 6139 with_xface=no
6212 fi 6140 fi
6213 6141
6214 } 6142 }
6215 test -z "$with_xface" && with_xface=yes 6143 test -z "$with_xface" && with_xface=yes
6216 if test "$with_xface" = "yes"; then 6144 if test "$with_xface" = "yes"; then
6217 { test "$extra_verbose" = "yes" && cat << \EOF 6145 { test "$extra_verbose" = "yes" && cat << \EOF
6218 Defining HAVE_XFACE 6146 Defining HAVE_XFACE
6219 EOF 6147 EOF
6220 cat >> confdefs.h <<\EOF 6148 cat >> confdefs.h <<\EOF
6221 #define HAVE_XFACE 1 6149 #define HAVE_XFACE 1
6222 EOF 6150 EOF
6223 } 6151 }
6224 6152
6225 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 6153 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6226 fi 6154 fi
6227 6155
6228 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6156 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6229 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6157 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6230 echo "configure:6231: checking for jpeglib.h" >&5 6158 echo "configure:6159: checking for jpeglib.h" >&5
6231 6159
6232 cat > conftest.$ac_ext <<EOF 6160 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure" 6161 #line 6162 "configure"
6234 #include "confdefs.h" 6162 #include "confdefs.h"
6235 #include <jpeglib.h> 6163 #include <jpeglib.h>
6236 EOF 6164 EOF
6237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6238 { (eval echo configure:6239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6166 { (eval echo configure:6167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6239 ac_err=`grep -v '^ *+' conftest.out` 6167 ac_err=`grep -v '^ *+' conftest.out`
6240 if test -z "$ac_err"; then 6168 if test -z "$ac_err"; then
6241 rm -rf conftest* 6169 rm -rf conftest*
6242 eval "ac_cv_header_$ac_safe=yes" 6170 eval "ac_cv_header_$ac_safe=yes"
6243 else 6171 else
6254 else 6182 else
6255 echo "$ac_t""no" 1>&6 6183 echo "$ac_t""no" 1>&6
6256 with_jpeg=no 6184 with_jpeg=no
6257 fi 6185 fi
6258 } 6186 }
6259 test -z "$with_jpeg" && { 6187 test -z "$with_jpeg" && {
6260 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6188 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6261 echo "configure:6262: checking for jpeg_destroy_decompress in -ljpeg" >&5 6189 echo "configure:6190: checking for jpeg_destroy_decompress in -ljpeg" >&5
6262 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6190 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6263 6191
6264 xe_check_libs=" -ljpeg " 6192 xe_check_libs=" -ljpeg "
6265 cat > conftest.$ac_ext <<EOF 6193 cat > conftest.$ac_ext <<EOF
6266 #line 6267 "configure" 6194 #line 6195 "configure"
6267 #include "confdefs.h" 6195 #include "confdefs.h"
6268 /* Override any gcc2 internal prototype to avoid an error. */ 6196 /* Override any gcc2 internal prototype to avoid an error. */
6269 /* We use char because int might match the return type of a gcc2 6197 /* We use char because int might match the return type of a gcc2
6270 builtin and then its argument prototype would still apply. */ 6198 builtin and then its argument prototype would still apply. */
6271 char jpeg_destroy_decompress(); 6199 char jpeg_destroy_decompress();
6272 6200
6273 int main() { 6201 int main() {
6274 jpeg_destroy_decompress() 6202 jpeg_destroy_decompress()
6275 ; return 0; } 6203 ; return 0; }
6276 EOF 6204 EOF
6277 if { (eval echo configure:6278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6278 rm -rf conftest* 6206 rm -rf conftest*
6279 eval "ac_cv_lib_$ac_lib_var=yes" 6207 eval "ac_cv_lib_$ac_lib_var=yes"
6280 else 6208 else
6281 echo "configure: failed program was:" >&5 6209 echo "configure: failed program was:" >&5
6282 cat conftest.$ac_ext >&5 6210 cat conftest.$ac_ext >&5
6293 echo "$ac_t""no" 1>&6 6221 echo "$ac_t""no" 1>&6
6294 with_jpeg=no 6222 with_jpeg=no
6295 fi 6223 fi
6296 6224
6297 } 6225 }
6298 test -z "$with_jpeg" && with_jpeg=yes 6226 test -z "$with_jpeg" && with_jpeg=yes
6299 if test "$with_jpeg" = "yes"; then 6227 if test "$with_jpeg" = "yes"; then
6300 { test "$extra_verbose" = "yes" && cat << \EOF 6228 { test "$extra_verbose" = "yes" && cat << \EOF
6301 Defining HAVE_JPEG 6229 Defining HAVE_JPEG
6302 EOF 6230 EOF
6303 cat >> confdefs.h <<\EOF 6231 cat >> confdefs.h <<\EOF
6304 #define HAVE_JPEG 1 6232 #define HAVE_JPEG 1
6305 EOF 6233 EOF
6306 } 6234 }
6307 6235
6308 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6236 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6309 fi 6237 fi
6310 6238
6311 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6239 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6312 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6240 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6313 echo "configure:6314: checking for png.h" >&5 6241 echo "configure:6242: checking for png.h" >&5
6314 6242
6315 cat > conftest.$ac_ext <<EOF 6243 cat > conftest.$ac_ext <<EOF
6316 #line 6317 "configure" 6244 #line 6245 "configure"
6317 #include "confdefs.h" 6245 #include "confdefs.h"
6318 #include <png.h> 6246 #include <png.h>
6319 EOF 6247 EOF
6320 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6321 { (eval echo configure:6322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6249 { (eval echo configure:6250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6322 ac_err=`grep -v '^ *+' conftest.out` 6250 ac_err=`grep -v '^ *+' conftest.out`
6323 if test -z "$ac_err"; then 6251 if test -z "$ac_err"; then
6324 rm -rf conftest* 6252 rm -rf conftest*
6325 eval "ac_cv_header_$ac_safe=yes" 6253 eval "ac_cv_header_$ac_safe=yes"
6326 else 6254 else
6337 else 6265 else
6338 echo "$ac_t""no" 1>&6 6266 echo "$ac_t""no" 1>&6
6339 with_png=no 6267 with_png=no
6340 fi 6268 fi
6341 } 6269 }
6342 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6270 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6343 echo "configure:6344: checking for pow" >&5 6271 echo "configure:6272: checking for pow" >&5
6344 6272
6345 cat > conftest.$ac_ext <<EOF 6273 cat > conftest.$ac_ext <<EOF
6346 #line 6347 "configure" 6274 #line 6275 "configure"
6347 #include "confdefs.h" 6275 #include "confdefs.h"
6348 /* System header to define __stub macros and hopefully few prototypes, 6276 /* System header to define __stub macros and hopefully few prototypes,
6349 which can conflict with char pow(); below. */ 6277 which can conflict with char pow(); below. */
6350 #include <assert.h> 6278 #include <assert.h>
6351 /* Override any gcc2 internal prototype to avoid an error. */ 6279 /* Override any gcc2 internal prototype to avoid an error. */
6364 pow(); 6292 pow();
6365 #endif 6293 #endif
6366 6294
6367 ; return 0; } 6295 ; return 0; }
6368 EOF 6296 EOF
6369 if { (eval echo configure:6370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6370 rm -rf conftest* 6298 rm -rf conftest*
6371 eval "ac_cv_func_pow=yes" 6299 eval "ac_cv_func_pow=yes"
6372 else 6300 else
6373 echo "configure: failed program was:" >&5 6301 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5 6302 cat conftest.$ac_ext >&5
6383 else 6311 else
6384 echo "$ac_t""no" 1>&6 6312 echo "$ac_t""no" 1>&6
6385 with_png=no 6313 with_png=no
6386 fi 6314 fi
6387 } 6315 }
6388 if test "$with_png" != "no"; then 6316 if test "$with_png" != "no"; then
6389 for extra_libs in "" "-lz" "-lgz"; do 6317 for extra_libs in "" "-lz" "-lgz"; do
6390 6318
6391 xe_msg_checking="for png_read_image in -lpng" 6319 xe_msg_checking="for png_read_image in -lpng"
6392 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6320 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6393 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6321 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6394 echo "configure:6395: checking "$xe_msg_checking"" >&5 6322 echo "configure:6323: checking "$xe_msg_checking"" >&5
6395 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6323 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6396 6324
6397 xe_check_libs=" -lpng $extra_libs" 6325 xe_check_libs=" -lpng $extra_libs"
6398 cat > conftest.$ac_ext <<EOF 6326 cat > conftest.$ac_ext <<EOF
6399 #line 6400 "configure" 6327 #line 6328 "configure"
6400 #include "confdefs.h" 6328 #include "confdefs.h"
6401 /* Override any gcc2 internal prototype to avoid an error. */ 6329 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2 6330 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */ 6331 builtin and then its argument prototype would still apply. */
6404 char png_read_image(); 6332 char png_read_image();
6405 6333
6406 int main() { 6334 int main() {
6407 png_read_image() 6335 png_read_image()
6408 ; return 0; } 6336 ; return 0; }
6409 EOF 6337 EOF
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6411 rm -rf conftest* 6339 rm -rf conftest*
6412 eval "ac_cv_lib_$ac_lib_var=yes" 6340 eval "ac_cv_lib_$ac_lib_var=yes"
6413 else 6341 else
6414 echo "configure: failed program was:" >&5 6342 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5 6343 cat conftest.$ac_ext >&5
6426 echo "$ac_t""no" 1>&6 6354 echo "$ac_t""no" 1>&6
6427 : 6355 :
6428 fi 6356 fi
6429 6357
6430 6358
6431 done 6359 done
6432 fi 6360 fi
6433 test -z "$with_png" && with_png=no 6361 test -z "$with_png" && with_png=no
6434 if test "$with_png" = "yes"; then 6362 if test "$with_png" = "yes"; then
6435 { test "$extra_verbose" = "yes" && cat << \EOF 6363 { test "$extra_verbose" = "yes" && cat << \EOF
6436 Defining HAVE_PNG 6364 Defining HAVE_PNG
6437 EOF 6365 EOF
6438 cat >> confdefs.h <<\EOF 6366 cat >> confdefs.h <<\EOF
6439 #define HAVE_PNG 1 6367 #define HAVE_PNG 1
6440 EOF 6368 EOF
6441 } 6369 }
6442 6370
6443 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi 6371 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi
6444 fi 6372 fi
6445 6373
6446 if test "$with_tiff" = "yes"; then 6374 if test "$with_tiff" = "yes"; then
6447 { test "$extra_verbose" = "yes" && cat << \EOF 6375 { test "$extra_verbose" = "yes" && cat << \EOF
6448 Defining HAVE_TIFF 6376 Defining HAVE_TIFF
6449 EOF 6377 EOF
6450 cat >> confdefs.h <<\EOF 6378 cat >> confdefs.h <<\EOF
6451 #define HAVE_TIFF 1 6379 #define HAVE_TIFF 1
6452 EOF 6380 EOF
6453 } 6381 }
6454 6382
6455 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 6383 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
6456 fi 6384 fi
6457 6385
6458 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6386
6387 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6388 echo "configure:6389: checking for XawScrollbarSetThumb in -lXaw" >&5
6389 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6390
6391 xe_check_libs=" -lXaw "
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char XawScrollbarSetThumb();
6399
6400 int main() {
6401 XawScrollbarSetThumb()
6402 ; return 0; }
6403 EOF
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6405 rm -rf conftest*
6406 eval "ac_cv_lib_$ac_lib_var=yes"
6407 else
6408 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5
6410 rm -rf conftest*
6411 eval "ac_cv_lib_$ac_lib_var=no"
6412 fi
6413 rm -f conftest*
6414 xe_check_libs=""
6415
6416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6417 echo "$ac_t""yes" 1>&6
6418 have_xaw=yes
6419 else
6420 echo "$ac_t""no" 1>&6
6421 have_xaw=no
6422 fi
6423
6424
6425 if test "$have_xaw" = "yes"; then
6426 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'`
6427 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6
6428 echo "configure:6429: checking for X11/Xaw/Reports.h" >&5
6429
6430 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure"
6432 #include "confdefs.h"
6433 #include <X11/Xaw/Reports.h>
6434 EOF
6435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6436 { (eval echo configure:6437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6437 ac_err=`grep -v '^ *+' conftest.out`
6438 if test -z "$ac_err"; then
6439 rm -rf conftest*
6440 eval "ac_cv_header_$ac_safe=yes"
6441 else
6442 echo "$ac_err" >&5
6443 echo "configure: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 rm -rf conftest*
6446 eval "ac_cv_header_$ac_safe=no"
6447 fi
6448 rm -f conftest*
6449 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6450 echo "$ac_t""yes" 1>&6
6451
6452 MAKE_SUBDIR="$MAKE_SUBDIR pkg-src/tree-x" && if test "$extra_verbose" = "yes"; then echo " Appending \"pkg-src/tree-x\" to \$MAKE_SUBDIR"; fi
6453 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR pkg-src/tree-x" && if test "$extra_verbose" = "yes"; then echo " Appending \"pkg-src/tree-x\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
6454 else
6455 echo "$ac_t""no" 1>&6
6456 fi
6457
6458 fi
6459
6460 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6459 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6461 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6460 echo "configure:6461: checking for Xm/Xm.h" >&5 6462 echo "configure:6463: checking for Xm/Xm.h" >&5
6461 6463
6462 cat > conftest.$ac_ext <<EOF 6464 cat > conftest.$ac_ext <<EOF
6463 #line 6464 "configure" 6465 #line 6466 "configure"
6464 #include "confdefs.h" 6466 #include "confdefs.h"
6465 #include <Xm/Xm.h> 6467 #include <Xm/Xm.h>
6466 EOF 6468 EOF
6467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6468 { (eval echo configure:6469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6470 { (eval echo configure:6471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6469 ac_err=`grep -v '^ *+' conftest.out` 6471 ac_err=`grep -v '^ *+' conftest.out`
6470 if test -z "$ac_err"; then 6472 if test -z "$ac_err"; then
6471 rm -rf conftest* 6473 rm -rf conftest*
6472 eval "ac_cv_header_$ac_safe=yes" 6474 eval "ac_cv_header_$ac_safe=yes"
6473 else 6475 else
6480 rm -f conftest* 6482 rm -f conftest*
6481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6482 echo "$ac_t""yes" 1>&6 6484 echo "$ac_t""yes" 1>&6
6483 6485
6484 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6486 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6485 echo "configure:6486: checking for XmStringFree in -lXm" >&5 6487 echo "configure:6488: checking for XmStringFree in -lXm" >&5
6486 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6488 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6487 6489
6488 xe_check_libs=" -lXm " 6490 xe_check_libs=" -lXm "
6489 cat > conftest.$ac_ext <<EOF 6491 cat > conftest.$ac_ext <<EOF
6490 #line 6491 "configure" 6492 #line 6493 "configure"
6491 #include "confdefs.h" 6493 #include "confdefs.h"
6492 /* Override any gcc2 internal prototype to avoid an error. */ 6494 /* Override any gcc2 internal prototype to avoid an error. */
6493 /* We use char because int might match the return type of a gcc2 6495 /* We use char because int might match the return type of a gcc2
6494 builtin and then its argument prototype would still apply. */ 6496 builtin and then its argument prototype would still apply. */
6495 char XmStringFree(); 6497 char XmStringFree();
6496 6498
6497 int main() { 6499 int main() {
6498 XmStringFree() 6500 XmStringFree()
6499 ; return 0; } 6501 ; return 0; }
6500 EOF 6502 EOF
6501 if { (eval echo configure:6502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6502 rm -rf conftest* 6504 rm -rf conftest*
6503 eval "ac_cv_lib_$ac_lib_var=yes" 6505 eval "ac_cv_lib_$ac_lib_var=yes"
6504 else 6506 else
6505 echo "configure: failed program was:" >&5 6507 echo "configure: failed program was:" >&5
6506 cat conftest.$ac_ext >&5 6508 cat conftest.$ac_ext >&5
6523 echo "$ac_t""no" 1>&6 6525 echo "$ac_t""no" 1>&6
6524 have_motif=no 6526 have_motif=no
6525 fi 6527 fi
6526 6528
6527 6529
6530 fi
6528 6531
6529 case "$with_menubars" in "" | "yes" | "athena" ) 6532 case "$with_menubars" in "" | "yes" | "athena" )
6530 with_menubars="lucid" ;; 6533 with_menubars="lucid" ;;
6531 esac 6534 esac
6532 case "$with_dialogs" in "" | "yes" | "lucid" ) 6535 case "$with_dialogs" in "" | "yes" | "lucid" )
6744 6747
6745 test -z "$with_mule" && with_mule=no 6748 test -z "$with_mule" && with_mule=no
6746 6749
6747 if test "$with_mule" = "yes" ; then 6750 if test "$with_mule" = "yes" ; then
6748 echo "checking for Mule-related features" 1>&6 6751 echo "checking for Mule-related features" 1>&6
6749 echo "configure:6750: checking for Mule-related features" >&5 6752 echo "configure:6753: checking for Mule-related features" >&5
6750 { test "$extra_verbose" = "yes" && cat << \EOF 6753 { test "$extra_verbose" = "yes" && cat << \EOF
6751 Defining MULE 6754 Defining MULE
6752 EOF 6755 EOF
6753 cat >> confdefs.h <<\EOF 6756 cat >> confdefs.h <<\EOF
6754 #define MULE 1 6757 #define MULE 1
6761 6764
6762 for ac_hdr in libintl.h 6765 for ac_hdr in libintl.h
6763 do 6766 do
6764 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6765 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6766 echo "configure:6767: checking for $ac_hdr" >&5 6769 echo "configure:6770: checking for $ac_hdr" >&5
6767 6770
6768 cat > conftest.$ac_ext <<EOF 6771 cat > conftest.$ac_ext <<EOF
6769 #line 6770 "configure" 6772 #line 6773 "configure"
6770 #include "confdefs.h" 6773 #include "confdefs.h"
6771 #include <$ac_hdr> 6774 #include <$ac_hdr>
6772 EOF 6775 EOF
6773 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6774 { (eval echo configure:6775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6777 { (eval echo configure:6778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6775 ac_err=`grep -v '^ *+' conftest.out` 6778 ac_err=`grep -v '^ *+' conftest.out`
6776 if test -z "$ac_err"; then 6779 if test -z "$ac_err"; then
6777 rm -rf conftest* 6780 rm -rf conftest*
6778 eval "ac_cv_header_$ac_safe=yes" 6781 eval "ac_cv_header_$ac_safe=yes"
6779 else 6782 else
6800 fi 6803 fi
6801 done 6804 done
6802 6805
6803 6806
6804 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6807 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6805 echo "configure:6806: checking for strerror in -lintl" >&5 6808 echo "configure:6809: checking for strerror in -lintl" >&5
6806 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6809 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6807 6810
6808 xe_check_libs=" -lintl " 6811 xe_check_libs=" -lintl "
6809 cat > conftest.$ac_ext <<EOF 6812 cat > conftest.$ac_ext <<EOF
6810 #line 6811 "configure" 6813 #line 6814 "configure"
6811 #include "confdefs.h" 6814 #include "confdefs.h"
6812 /* Override any gcc2 internal prototype to avoid an error. */ 6815 /* Override any gcc2 internal prototype to avoid an error. */
6813 /* We use char because int might match the return type of a gcc2 6816 /* We use char because int might match the return type of a gcc2
6814 builtin and then its argument prototype would still apply. */ 6817 builtin and then its argument prototype would still apply. */
6815 char strerror(); 6818 char strerror();
6816 6819
6817 int main() { 6820 int main() {
6818 strerror() 6821 strerror()
6819 ; return 0; } 6822 ; return 0; }
6820 EOF 6823 EOF
6821 if { (eval echo configure:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6822 rm -rf conftest* 6825 rm -rf conftest*
6823 eval "ac_cv_lib_$ac_lib_var=yes" 6826 eval "ac_cv_lib_$ac_lib_var=yes"
6824 else 6827 else
6825 echo "configure: failed program was:" >&5 6828 echo "configure: failed program was:" >&5
6826 cat conftest.$ac_ext >&5 6829 cat conftest.$ac_ext >&5
6849 fi 6852 fi
6850 6853
6851 6854
6852 6855
6853 echo "checking for Mule input methods" 1>&6 6856 echo "checking for Mule input methods" 1>&6
6854 echo "configure:6855: checking for Mule input methods" >&5 6857 echo "configure:6858: checking for Mule input methods" >&5
6855 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6858 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6856 case "$with_xim" in "" | "yes" ) 6859 case "$with_xim" in "" | "yes" )
6857 echo "checking for XIM" 1>&6 6860 echo "checking for XIM" 1>&6
6858 echo "configure:6859: checking for XIM" >&5 6861 echo "configure:6862: checking for XIM" >&5
6859 6862
6860 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6863 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6861 echo "configure:6862: checking for XmImMbLookupString in -lXm" >&5 6864 echo "configure:6865: checking for XmImMbLookupString in -lXm" >&5
6862 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6865 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6863 6866
6864 xe_check_libs=" -lXm " 6867 xe_check_libs=" -lXm "
6865 cat > conftest.$ac_ext <<EOF 6868 cat > conftest.$ac_ext <<EOF
6866 #line 6867 "configure" 6869 #line 6870 "configure"
6867 #include "confdefs.h" 6870 #include "confdefs.h"
6868 /* Override any gcc2 internal prototype to avoid an error. */ 6871 /* Override any gcc2 internal prototype to avoid an error. */
6869 /* We use char because int might match the return type of a gcc2 6872 /* We use char because int might match the return type of a gcc2
6870 builtin and then its argument prototype would still apply. */ 6873 builtin and then its argument prototype would still apply. */
6871 char XmImMbLookupString(); 6874 char XmImMbLookupString();
6872 6875
6873 int main() { 6876 int main() {
6874 XmImMbLookupString() 6877 XmImMbLookupString()
6875 ; return 0; } 6878 ; return 0; }
6876 EOF 6879 EOF
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6878 rm -rf conftest* 6881 rm -rf conftest*
6879 eval "ac_cv_lib_$ac_lib_var=yes" 6882 eval "ac_cv_lib_$ac_lib_var=yes"
6880 else 6883 else
6881 echo "configure: failed program was:" >&5 6884 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5 6885 cat conftest.$ac_ext >&5
6935 if test "$with_xfs" = "yes"; then 6938 if test "$with_xfs" = "yes"; then
6936 with_xfs=no 6939 with_xfs=no
6937 fi 6940 fi
6938 else case "$with_xfs" in "yes" ) 6941 else case "$with_xfs" in "yes" )
6939 echo "checking for XFontSet" 1>&6 6942 echo "checking for XFontSet" 1>&6
6940 echo "configure:6941: checking for XFontSet" >&5 6943 echo "configure:6944: checking for XFontSet" >&5
6941 6944
6942 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6945 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6943 echo "configure:6944: checking for XmbDrawString in -lX11" >&5 6946 echo "configure:6947: checking for XmbDrawString in -lX11" >&5
6944 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6947 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6945 6948
6946 xe_check_libs=" -lX11 " 6949 xe_check_libs=" -lX11 "
6947 cat > conftest.$ac_ext <<EOF 6950 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure" 6951 #line 6952 "configure"
6949 #include "confdefs.h" 6952 #include "confdefs.h"
6950 /* Override any gcc2 internal prototype to avoid an error. */ 6953 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2 6954 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */ 6955 builtin and then its argument prototype would still apply. */
6953 char XmbDrawString(); 6956 char XmbDrawString();
6954 6957
6955 int main() { 6958 int main() {
6956 XmbDrawString() 6959 XmbDrawString()
6957 ; return 0; } 6960 ; return 0; }
6958 EOF 6961 EOF
6959 if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6962 if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6960 rm -rf conftest* 6963 rm -rf conftest*
6961 eval "ac_cv_lib_$ac_lib_var=yes" 6964 eval "ac_cv_lib_$ac_lib_var=yes"
6962 else 6965 else
6963 echo "configure: failed program was:" >&5 6966 echo "configure: failed program was:" >&5
6964 cat conftest.$ac_ext >&5 6967 cat conftest.$ac_ext >&5
6993 fi 6996 fi
6994 fi 6997 fi
6995 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 6998 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6996 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 6999 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
6997 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7000 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
6998 echo "configure:6999: checking for wnn/jllib.h" >&5 7001 echo "configure:7002: checking for wnn/jllib.h" >&5
6999 7002
7000 cat > conftest.$ac_ext <<EOF 7003 cat > conftest.$ac_ext <<EOF
7001 #line 7002 "configure" 7004 #line 7005 "configure"
7002 #include "confdefs.h" 7005 #include "confdefs.h"
7003 #include <wnn/jllib.h> 7006 #include <wnn/jllib.h>
7004 EOF 7007 EOF
7005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7006 { (eval echo configure:7007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7009 { (eval echo configure:7010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7007 ac_err=`grep -v '^ *+' conftest.out` 7010 ac_err=`grep -v '^ *+' conftest.out`
7008 if test -z "$ac_err"; then 7011 if test -z "$ac_err"; then
7009 rm -rf conftest* 7012 rm -rf conftest*
7010 eval "ac_cv_header_$ac_safe=yes" 7013 eval "ac_cv_header_$ac_safe=yes"
7011 else 7014 else
7026 } 7029 }
7027 if test "$with_wnn" != "no"; then 7030 if test "$with_wnn" != "no"; then
7028 for ac_func in crypt 7031 for ac_func in crypt
7029 do 7032 do
7030 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7031 echo "configure:7032: checking for $ac_func" >&5 7034 echo "configure:7035: checking for $ac_func" >&5
7032 7035
7033 cat > conftest.$ac_ext <<EOF 7036 cat > conftest.$ac_ext <<EOF
7034 #line 7035 "configure" 7037 #line 7038 "configure"
7035 #include "confdefs.h" 7038 #include "confdefs.h"
7036 /* System header to define __stub macros and hopefully few prototypes, 7039 /* System header to define __stub macros and hopefully few prototypes,
7037 which can conflict with char $ac_func(); below. */ 7040 which can conflict with char $ac_func(); below. */
7038 #include <assert.h> 7041 #include <assert.h>
7039 /* Override any gcc2 internal prototype to avoid an error. */ 7042 /* Override any gcc2 internal prototype to avoid an error. */
7052 $ac_func(); 7055 $ac_func();
7053 #endif 7056 #endif
7054 7057
7055 ; return 0; } 7058 ; return 0; }
7056 EOF 7059 EOF
7057 if { (eval echo configure:7058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7058 rm -rf conftest* 7061 rm -rf conftest*
7059 eval "ac_cv_func_$ac_func=yes" 7062 eval "ac_cv_func_$ac_func=yes"
7060 else 7063 else
7061 echo "configure: failed program was:" >&5 7064 echo "configure: failed program was:" >&5
7062 cat conftest.$ac_ext >&5 7065 cat conftest.$ac_ext >&5
7081 fi 7084 fi
7082 done 7085 done
7083 7086
7084 test "$ac_cv_func_crypt" != "yes" && { 7087 test "$ac_cv_func_crypt" != "yes" && {
7085 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7088 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7086 echo "configure:7087: checking for crypt in -lcrypt" >&5 7089 echo "configure:7090: checking for crypt in -lcrypt" >&5
7087 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7090 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7088 7091
7089 xe_check_libs=" -lcrypt " 7092 xe_check_libs=" -lcrypt "
7090 cat > conftest.$ac_ext <<EOF 7093 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure" 7094 #line 7095 "configure"
7092 #include "confdefs.h" 7095 #include "confdefs.h"
7093 /* Override any gcc2 internal prototype to avoid an error. */ 7096 /* Override any gcc2 internal prototype to avoid an error. */
7094 /* We use char because int might match the return type of a gcc2 7097 /* We use char because int might match the return type of a gcc2
7095 builtin and then its argument prototype would still apply. */ 7098 builtin and then its argument prototype would still apply. */
7096 char crypt(); 7099 char crypt();
7097 7100
7098 int main() { 7101 int main() {
7099 crypt() 7102 crypt()
7100 ; return 0; } 7103 ; return 0; }
7101 EOF 7104 EOF
7102 if { (eval echo configure:7103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7103 rm -rf conftest* 7106 rm -rf conftest*
7104 eval "ac_cv_lib_$ac_lib_var=yes" 7107 eval "ac_cv_lib_$ac_lib_var=yes"
7105 else 7108 else
7106 echo "configure: failed program was:" >&5 7109 echo "configure: failed program was:" >&5
7107 cat conftest.$ac_ext >&5 7110 cat conftest.$ac_ext >&5
7131 7134
7132 } 7135 }
7133 fi 7136 fi
7134 test -z "$with_wnn" && { 7137 test -z "$with_wnn" && {
7135 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7138 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7136 echo "configure:7137: checking for jl_dic_list_e in -lwnn" >&5 7139 echo "configure:7140: checking for jl_dic_list_e in -lwnn" >&5
7137 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7140 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7138 7141
7139 xe_check_libs=" -lwnn " 7142 xe_check_libs=" -lwnn "
7140 cat > conftest.$ac_ext <<EOF 7143 cat > conftest.$ac_ext <<EOF
7141 #line 7142 "configure" 7144 #line 7145 "configure"
7142 #include "confdefs.h" 7145 #include "confdefs.h"
7143 /* Override any gcc2 internal prototype to avoid an error. */ 7146 /* Override any gcc2 internal prototype to avoid an error. */
7144 /* We use char because int might match the return type of a gcc2 7147 /* We use char because int might match the return type of a gcc2
7145 builtin and then its argument prototype would still apply. */ 7148 builtin and then its argument prototype would still apply. */
7146 char jl_dic_list_e(); 7149 char jl_dic_list_e();
7147 7150
7148 int main() { 7151 int main() {
7149 jl_dic_list_e() 7152 jl_dic_list_e()
7150 ; return 0; } 7153 ; return 0; }
7151 EOF 7154 EOF
7152 if { (eval echo configure:7153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7155 if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7153 rm -rf conftest* 7156 rm -rf conftest*
7154 eval "ac_cv_lib_$ac_lib_var=yes" 7157 eval "ac_cv_lib_$ac_lib_var=yes"
7155 else 7158 else
7156 echo "configure: failed program was:" >&5 7159 echo "configure: failed program was:" >&5
7157 cat conftest.$ac_ext >&5 7160 cat conftest.$ac_ext >&5
7184 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7187 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7185 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7188 echo " xemacs will be linked with \"mule-wnnfns.o\""
7186 fi 7189 fi
7187 7190
7188 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7191 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7189 echo "configure:7190: checking for jl_fi_dic_list in -lwnn" >&5 7192 echo "configure:7193: checking for jl_fi_dic_list in -lwnn" >&5
7190 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7193 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7191 7194
7192 xe_check_libs=" -lwnn " 7195 xe_check_libs=" -lwnn "
7193 cat > conftest.$ac_ext <<EOF 7196 cat > conftest.$ac_ext <<EOF
7194 #line 7195 "configure" 7197 #line 7198 "configure"
7195 #include "confdefs.h" 7198 #include "confdefs.h"
7196 /* Override any gcc2 internal prototype to avoid an error. */ 7199 /* Override any gcc2 internal prototype to avoid an error. */
7197 /* We use char because int might match the return type of a gcc2 7200 /* We use char because int might match the return type of a gcc2
7198 builtin and then its argument prototype would still apply. */ 7201 builtin and then its argument prototype would still apply. */
7199 char jl_fi_dic_list(); 7202 char jl_fi_dic_list();
7200 7203
7201 int main() { 7204 int main() {
7202 jl_fi_dic_list() 7205 jl_fi_dic_list()
7203 ; return 0; } 7206 ; return 0; }
7204 EOF 7207 EOF
7205 if { (eval echo configure:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7206 rm -rf conftest* 7209 rm -rf conftest*
7207 eval "ac_cv_lib_$ac_lib_var=yes" 7210 eval "ac_cv_lib_$ac_lib_var=yes"
7208 else 7211 else
7209 echo "configure: failed program was:" >&5 7212 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5 7213 cat conftest.$ac_ext >&5
7232 7235
7233 fi 7236 fi
7234 7237
7235 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7238 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7236 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7239 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7237 echo "configure:7238: checking for canna/RK.h" >&5 7240 echo "configure:7241: checking for canna/RK.h" >&5
7238 7241
7239 cat > conftest.$ac_ext <<EOF 7242 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure" 7243 #line 7244 "configure"
7241 #include "confdefs.h" 7244 #include "confdefs.h"
7242 #include <canna/RK.h> 7245 #include <canna/RK.h>
7243 EOF 7246 EOF
7244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7245 { (eval echo configure:7246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7248 { (eval echo configure:7249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7246 ac_err=`grep -v '^ *+' conftest.out` 7249 ac_err=`grep -v '^ *+' conftest.out`
7247 if test -z "$ac_err"; then 7250 if test -z "$ac_err"; then
7248 rm -rf conftest* 7251 rm -rf conftest*
7249 eval "ac_cv_header_$ac_safe=yes" 7252 eval "ac_cv_header_$ac_safe=yes"
7250 else 7253 else
7263 with_canna=no 7266 with_canna=no
7264 fi 7267 fi
7265 } 7268 }
7266 test -z "$with_canna" && { 7269 test -z "$with_canna" && {
7267 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7270 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7268 echo "configure:7269: checking for RkBgnBun in -lRKC" >&5 7271 echo "configure:7272: checking for RkBgnBun in -lRKC" >&5
7269 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7272 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7270 7273
7271 xe_check_libs=" -lRKC " 7274 xe_check_libs=" -lRKC "
7272 cat > conftest.$ac_ext <<EOF 7275 cat > conftest.$ac_ext <<EOF
7273 #line 7274 "configure" 7276 #line 7277 "configure"
7274 #include "confdefs.h" 7277 #include "confdefs.h"
7275 /* Override any gcc2 internal prototype to avoid an error. */ 7278 /* Override any gcc2 internal prototype to avoid an error. */
7276 /* We use char because int might match the return type of a gcc2 7279 /* We use char because int might match the return type of a gcc2
7277 builtin and then its argument prototype would still apply. */ 7280 builtin and then its argument prototype would still apply. */
7278 char RkBgnBun(); 7281 char RkBgnBun();
7279 7282
7280 int main() { 7283 int main() {
7281 RkBgnBun() 7284 RkBgnBun()
7282 ; return 0; } 7285 ; return 0; }
7283 EOF 7286 EOF
7284 if { (eval echo configure:7285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7285 rm -rf conftest* 7288 rm -rf conftest*
7286 eval "ac_cv_lib_$ac_lib_var=yes" 7289 eval "ac_cv_lib_$ac_lib_var=yes"
7287 else 7290 else
7288 echo "configure: failed program was:" >&5 7291 echo "configure: failed program was:" >&5
7289 cat conftest.$ac_ext >&5 7292 cat conftest.$ac_ext >&5
7302 fi 7305 fi
7303 7306
7304 } 7307 }
7305 test -z "$with_canna" && { 7308 test -z "$with_canna" && {
7306 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7309 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7307 echo "configure:7308: checking for jrKanjiControl in -lcanna" >&5 7310 echo "configure:7311: checking for jrKanjiControl in -lcanna" >&5
7308 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7311 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7309 7312
7310 xe_check_libs=" -lcanna " 7313 xe_check_libs=" -lcanna "
7311 cat > conftest.$ac_ext <<EOF 7314 cat > conftest.$ac_ext <<EOF
7312 #line 7313 "configure" 7315 #line 7316 "configure"
7313 #include "confdefs.h" 7316 #include "confdefs.h"
7314 /* Override any gcc2 internal prototype to avoid an error. */ 7317 /* Override any gcc2 internal prototype to avoid an error. */
7315 /* We use char because int might match the return type of a gcc2 7318 /* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */ 7319 builtin and then its argument prototype would still apply. */
7317 char jrKanjiControl(); 7320 char jrKanjiControl();
7318 7321
7319 int main() { 7322 int main() {
7320 jrKanjiControl() 7323 jrKanjiControl()
7321 ; return 0; } 7324 ; return 0; }
7322 EOF 7325 EOF
7323 if { (eval echo configure:7324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7324 rm -rf conftest* 7327 rm -rf conftest*
7325 eval "ac_cv_lib_$ac_lib_var=yes" 7328 eval "ac_cv_lib_$ac_lib_var=yes"
7326 else 7329 else
7327 echo "configure: failed program was:" >&5 7330 echo "configure: failed program was:" >&5
7328 cat conftest.$ac_ext >&5 7331 cat conftest.$ac_ext >&5
7418 fi 7421 fi
7419 7422
7420 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 7423 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
7421 do 7424 do
7422 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7423 echo "configure:7424: checking for $ac_func" >&5 7426 echo "configure:7427: checking for $ac_func" >&5
7424 7427
7425 cat > conftest.$ac_ext <<EOF 7428 cat > conftest.$ac_ext <<EOF
7426 #line 7427 "configure" 7429 #line 7430 "configure"
7427 #include "confdefs.h" 7430 #include "confdefs.h"
7428 /* System header to define __stub macros and hopefully few prototypes, 7431 /* System header to define __stub macros and hopefully few prototypes,
7429 which can conflict with char $ac_func(); below. */ 7432 which can conflict with char $ac_func(); below. */
7430 #include <assert.h> 7433 #include <assert.h>
7431 /* Override any gcc2 internal prototype to avoid an error. */ 7434 /* Override any gcc2 internal prototype to avoid an error. */
7444 $ac_func(); 7447 $ac_func();
7445 #endif 7448 #endif
7446 7449
7447 ; return 0; } 7450 ; return 0; }
7448 EOF 7451 EOF
7449 if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7452 if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7450 rm -rf conftest* 7453 rm -rf conftest*
7451 eval "ac_cv_func_$ac_func=yes" 7454 eval "ac_cv_func_$ac_func=yes"
7452 else 7455 else
7453 echo "configure: failed program was:" >&5 7456 echo "configure: failed program was:" >&5
7454 cat conftest.$ac_ext >&5 7457 cat conftest.$ac_ext >&5
7481 fi ;; 7484 fi ;;
7482 * ) 7485 * )
7483 for ac_func in realpath 7486 for ac_func in realpath
7484 do 7487 do
7485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7486 echo "configure:7487: checking for $ac_func" >&5 7489 echo "configure:7490: checking for $ac_func" >&5
7487 7490
7488 cat > conftest.$ac_ext <<EOF 7491 cat > conftest.$ac_ext <<EOF
7489 #line 7490 "configure" 7492 #line 7493 "configure"
7490 #include "confdefs.h" 7493 #include "confdefs.h"
7491 /* System header to define __stub macros and hopefully few prototypes, 7494 /* System header to define __stub macros and hopefully few prototypes,
7492 which can conflict with char $ac_func(); below. */ 7495 which can conflict with char $ac_func(); below. */
7493 #include <assert.h> 7496 #include <assert.h>
7494 /* Override any gcc2 internal prototype to avoid an error. */ 7497 /* Override any gcc2 internal prototype to avoid an error. */
7507 $ac_func(); 7510 $ac_func();
7508 #endif 7511 #endif
7509 7512
7510 ; return 0; } 7513 ; return 0; }
7511 EOF 7514 EOF
7512 if { (eval echo configure:7513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7515 if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7513 rm -rf conftest* 7516 rm -rf conftest*
7514 eval "ac_cv_func_$ac_func=yes" 7517 eval "ac_cv_func_$ac_func=yes"
7515 else 7518 else
7516 echo "configure: failed program was:" >&5 7519 echo "configure: failed program was:" >&5
7517 cat conftest.$ac_ext >&5 7520 cat conftest.$ac_ext >&5
7540 echo " xemacs will be linked with \"realpath.o\"" 7543 echo " xemacs will be linked with \"realpath.o\""
7541 fi ;; 7544 fi ;;
7542 esac 7545 esac
7543 7546
7544 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7547 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7545 echo "configure:7546: checking whether netdb declares h_errno" >&5 7548 echo "configure:7549: checking whether netdb declares h_errno" >&5
7546 cat > conftest.$ac_ext <<EOF 7549 cat > conftest.$ac_ext <<EOF
7547 #line 7548 "configure" 7550 #line 7551 "configure"
7548 #include "confdefs.h" 7551 #include "confdefs.h"
7549 #include <netdb.h> 7552 #include <netdb.h>
7550 int main() { 7553 int main() {
7551 return h_errno; 7554 return h_errno;
7552 ; return 0; } 7555 ; return 0; }
7553 EOF 7556 EOF
7554 if { (eval echo configure:7555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7555 rm -rf conftest* 7558 rm -rf conftest*
7556 echo "$ac_t""yes" 1>&6 7559 echo "$ac_t""yes" 1>&6
7557 { test "$extra_verbose" = "yes" && cat << \EOF 7560 { test "$extra_verbose" = "yes" && cat << \EOF
7558 Defining HAVE_H_ERRNO 7561 Defining HAVE_H_ERRNO
7559 EOF 7562 EOF
7569 echo "$ac_t""no" 1>&6 7572 echo "$ac_t""no" 1>&6
7570 fi 7573 fi
7571 rm -f conftest* 7574 rm -f conftest*
7572 7575
7573 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7576 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7574 echo "configure:7575: checking for sigsetjmp" >&5 7577 echo "configure:7578: checking for sigsetjmp" >&5
7575 cat > conftest.$ac_ext <<EOF 7578 cat > conftest.$ac_ext <<EOF
7576 #line 7577 "configure" 7579 #line 7580 "configure"
7577 #include "confdefs.h" 7580 #include "confdefs.h"
7578 #include <setjmp.h> 7581 #include <setjmp.h>
7579 int main() { 7582 int main() {
7580 sigjmp_buf bar; sigsetjmp (bar, 0); 7583 sigjmp_buf bar; sigsetjmp (bar, 0);
7581 ; return 0; } 7584 ; return 0; }
7582 EOF 7585 EOF
7583 if { (eval echo configure:7584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7586 if { (eval echo configure:7587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7584 rm -rf conftest* 7587 rm -rf conftest*
7585 echo "$ac_t""yes" 1>&6 7588 echo "$ac_t""yes" 1>&6
7586 { test "$extra_verbose" = "yes" && cat << \EOF 7589 { test "$extra_verbose" = "yes" && cat << \EOF
7587 Defining HAVE_SIGSETJMP 7590 Defining HAVE_SIGSETJMP
7588 EOF 7591 EOF
7598 echo "$ac_t""no" 1>&6 7601 echo "$ac_t""no" 1>&6
7599 fi 7602 fi
7600 rm -f conftest* 7603 rm -f conftest*
7601 7604
7602 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7605 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7603 echo "configure:7604: checking whether localtime caches TZ" >&5 7606 echo "configure:7607: checking whether localtime caches TZ" >&5
7604 7607
7605 if test "$ac_cv_func_tzset" = "yes"; then 7608 if test "$ac_cv_func_tzset" = "yes"; then
7606 cat > conftest.$ac_ext <<EOF 7609 cat > conftest.$ac_ext <<EOF
7607 #line 7608 "configure" 7610 #line 7611 "configure"
7608 #include "confdefs.h" 7611 #include "confdefs.h"
7609 #include <time.h> 7612 #include <time.h>
7610 #if STDC_HEADERS 7613 #if STDC_HEADERS
7611 # include <stdlib.h> 7614 # include <stdlib.h>
7612 #endif 7615 #endif
7637 if (localtime (&now)->tm_hour != hour_unset) 7640 if (localtime (&now)->tm_hour != hour_unset)
7638 exit (1); 7641 exit (1);
7639 exit (0); 7642 exit (0);
7640 } 7643 }
7641 EOF 7644 EOF
7642 if { (eval echo configure:7643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7645 if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7643 then 7646 then
7644 emacs_cv_localtime_cache=no 7647 emacs_cv_localtime_cache=no
7645 else 7648 else
7646 echo "configure: failed program was:" >&5 7649 echo "configure: failed program was:" >&5
7647 cat conftest.$ac_ext >&5 7650 cat conftest.$ac_ext >&5
7666 7669
7667 fi 7670 fi
7668 7671
7669 if test "$HAVE_TIMEVAL" = "yes"; then 7672 if test "$HAVE_TIMEVAL" = "yes"; then
7670 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7673 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7671 echo "configure:7672: checking whether gettimeofday cannot accept two arguments" >&5 7674 echo "configure:7675: checking whether gettimeofday cannot accept two arguments" >&5
7672 cat > conftest.$ac_ext <<EOF 7675 cat > conftest.$ac_ext <<EOF
7673 #line 7674 "configure" 7676 #line 7677 "configure"
7674 #include "confdefs.h" 7677 #include "confdefs.h"
7675 7678
7676 #ifdef TIME_WITH_SYS_TIME 7679 #ifdef TIME_WITH_SYS_TIME
7677 #include <sys/time.h> 7680 #include <sys/time.h>
7678 #include <time.h> 7681 #include <time.h>
7690 struct timezone dummy; 7693 struct timezone dummy;
7691 gettimeofday (&time, &dummy); 7694 gettimeofday (&time, &dummy);
7692 7695
7693 ; return 0; } 7696 ; return 0; }
7694 EOF 7697 EOF
7695 if { (eval echo configure:7696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7698 if { (eval echo configure:7699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7696 rm -rf conftest* 7699 rm -rf conftest*
7697 echo "$ac_t""no" 1>&6 7700 echo "$ac_t""no" 1>&6
7698 else 7701 else
7699 echo "configure: failed program was:" >&5 7702 echo "configure: failed program was:" >&5
7700 cat conftest.$ac_ext >&5 7703 cat conftest.$ac_ext >&5
7712 rm -f conftest* 7715 rm -f conftest*
7713 fi 7716 fi
7714 7717
7715 7718
7716 echo $ac_n "checking for inline""... $ac_c" 1>&6 7719 echo $ac_n "checking for inline""... $ac_c" 1>&6
7717 echo "configure:7718: checking for inline" >&5 7720 echo "configure:7721: checking for inline" >&5
7718 7721
7719 ac_cv_c_inline=no 7722 ac_cv_c_inline=no
7720 for ac_kw in inline __inline__ __inline; do 7723 for ac_kw in inline __inline__ __inline; do
7721 cat > conftest.$ac_ext <<EOF 7724 cat > conftest.$ac_ext <<EOF
7722 #line 7723 "configure" 7725 #line 7726 "configure"
7723 #include "confdefs.h" 7726 #include "confdefs.h"
7724 7727
7725 int main() { 7728 int main() {
7726 } $ac_kw foo() { 7729 } $ac_kw foo() {
7727 ; return 0; } 7730 ; return 0; }
7728 EOF 7731 EOF
7729 if { (eval echo configure:7730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7732 if { (eval echo configure:7733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7730 rm -rf conftest* 7733 rm -rf conftest*
7731 ac_cv_c_inline=$ac_kw; break 7734 ac_cv_c_inline=$ac_kw; break
7732 else 7735 else
7733 echo "configure: failed program was:" >&5 7736 echo "configure: failed program was:" >&5
7734 cat conftest.$ac_ext >&5 7737 cat conftest.$ac_ext >&5
7774 7777
7775 7778
7776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7779 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7777 # for constant arguments. Useless! 7780 # for constant arguments. Useless!
7778 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7781 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7779 echo "configure:7780: checking for working alloca.h" >&5 7782 echo "configure:7783: checking for working alloca.h" >&5
7780 7783
7781 cat > conftest.$ac_ext <<EOF 7784 cat > conftest.$ac_ext <<EOF
7782 #line 7783 "configure" 7785 #line 7786 "configure"
7783 #include "confdefs.h" 7786 #include "confdefs.h"
7784 #include <alloca.h> 7787 #include <alloca.h>
7785 int main() { 7788 int main() {
7786 char *p = alloca(2 * sizeof(int)); 7789 char *p = alloca(2 * sizeof(int));
7787 ; return 0; } 7790 ; return 0; }
7788 EOF 7791 EOF
7789 if { (eval echo configure:7790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7790 rm -rf conftest* 7793 rm -rf conftest*
7791 ac_cv_header_alloca_h=yes 7794 ac_cv_header_alloca_h=yes
7792 else 7795 else
7793 echo "configure: failed program was:" >&5 7796 echo "configure: failed program was:" >&5
7794 cat conftest.$ac_ext >&5 7797 cat conftest.$ac_ext >&5
7808 } 7811 }
7809 7812
7810 fi 7813 fi
7811 7814
7812 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7815 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7813 echo "configure:7814: checking for alloca" >&5 7816 echo "configure:7817: checking for alloca" >&5
7814 7817
7815 cat > conftest.$ac_ext <<EOF 7818 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure" 7819 #line 7820 "configure"
7817 #include "confdefs.h" 7820 #include "confdefs.h"
7818 7821
7819 #ifdef __GNUC__ 7822 #ifdef __GNUC__
7820 # define alloca __builtin_alloca 7823 # define alloca __builtin_alloca
7821 #else 7824 #else
7834 7837
7835 int main() { 7838 int main() {
7836 char *p = (char *) alloca(1); 7839 char *p = (char *) alloca(1);
7837 ; return 0; } 7840 ; return 0; }
7838 EOF 7841 EOF
7839 if { (eval echo configure:7840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7840 rm -rf conftest* 7843 rm -rf conftest*
7841 ac_cv_func_alloca_works=yes 7844 ac_cv_func_alloca_works=yes
7842 else 7845 else
7843 echo "configure: failed program was:" >&5 7846 echo "configure: failed program was:" >&5
7844 cat conftest.$ac_ext >&5 7847 cat conftest.$ac_ext >&5
7873 EOF 7876 EOF
7874 } 7877 }
7875 7878
7876 7879
7877 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7880 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7878 echo "configure:7879: checking whether alloca needs Cray hooks" >&5 7881 echo "configure:7882: checking whether alloca needs Cray hooks" >&5
7879 7882
7880 cat > conftest.$ac_ext <<EOF 7883 cat > conftest.$ac_ext <<EOF
7881 #line 7882 "configure" 7884 #line 7885 "configure"
7882 #include "confdefs.h" 7885 #include "confdefs.h"
7883 #if defined(CRAY) && ! defined(CRAY2) 7886 #if defined(CRAY) && ! defined(CRAY2)
7884 webecray 7887 webecray
7885 #else 7888 #else
7886 wenotbecray 7889 wenotbecray
7900 7903
7901 echo "$ac_t""$ac_cv_os_cray" 1>&6 7904 echo "$ac_t""$ac_cv_os_cray" 1>&6
7902 if test $ac_cv_os_cray = yes; then 7905 if test $ac_cv_os_cray = yes; then
7903 for ac_func in _getb67 GETB67 getb67; do 7906 for ac_func in _getb67 GETB67 getb67; do
7904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7905 echo "configure:7906: checking for $ac_func" >&5 7908 echo "configure:7909: checking for $ac_func" >&5
7906 7909
7907 cat > conftest.$ac_ext <<EOF 7910 cat > conftest.$ac_ext <<EOF
7908 #line 7909 "configure" 7911 #line 7912 "configure"
7909 #include "confdefs.h" 7912 #include "confdefs.h"
7910 /* System header to define __stub macros and hopefully few prototypes, 7913 /* System header to define __stub macros and hopefully few prototypes,
7911 which can conflict with char $ac_func(); below. */ 7914 which can conflict with char $ac_func(); below. */
7912 #include <assert.h> 7915 #include <assert.h>
7913 /* Override any gcc2 internal prototype to avoid an error. */ 7916 /* Override any gcc2 internal prototype to avoid an error. */
7926 $ac_func(); 7929 $ac_func();
7927 #endif 7930 #endif
7928 7931
7929 ; return 0; } 7932 ; return 0; }
7930 EOF 7933 EOF
7931 if { (eval echo configure:7932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7934 if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7932 rm -rf conftest* 7935 rm -rf conftest*
7933 eval "ac_cv_func_$ac_func=yes" 7936 eval "ac_cv_func_$ac_func=yes"
7934 else 7937 else
7935 echo "configure: failed program was:" >&5 7938 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5 7939 cat conftest.$ac_ext >&5
7956 7959
7957 done 7960 done
7958 fi 7961 fi
7959 7962
7960 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 7963 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7961 echo "configure:7962: checking stack direction for C alloca" >&5 7964 echo "configure:7965: checking stack direction for C alloca" >&5
7962 7965
7963 cat > conftest.$ac_ext <<EOF 7966 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure" 7967 #line 7968 "configure"
7965 #include "confdefs.h" 7968 #include "confdefs.h"
7966 find_stack_direction () 7969 find_stack_direction ()
7967 { 7970 {
7968 static char *addr = 0; 7971 static char *addr = 0;
7969 auto char dummy; 7972 auto char dummy;
7978 main () 7981 main ()
7979 { 7982 {
7980 exit (find_stack_direction() < 0); 7983 exit (find_stack_direction() < 0);
7981 } 7984 }
7982 EOF 7985 EOF
7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7984 then 7987 then
7985 ac_cv_c_stack_direction=1 7988 ac_cv_c_stack_direction=1
7986 else 7989 else
7987 echo "configure: failed program was:" >&5 7990 echo "configure: failed program was:" >&5
7988 cat conftest.$ac_ext >&5 7991 cat conftest.$ac_ext >&5
8006 echo " xemacs will be linked with \"$ALLOCA\"" 8009 echo " xemacs will be linked with \"$ALLOCA\""
8007 fi 8010 fi
8008 8011
8009 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8012 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8010 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8013 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8011 echo "configure:8012: checking for vfork.h" >&5 8014 echo "configure:8015: checking for vfork.h" >&5
8012 8015
8013 cat > conftest.$ac_ext <<EOF 8016 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure" 8017 #line 8018 "configure"
8015 #include "confdefs.h" 8018 #include "confdefs.h"
8016 #include <vfork.h> 8019 #include <vfork.h>
8017 EOF 8020 EOF
8018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8019 { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8022 { (eval echo configure:8023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8020 ac_err=`grep -v '^ *+' conftest.out` 8023 ac_err=`grep -v '^ *+' conftest.out`
8021 if test -z "$ac_err"; then 8024 if test -z "$ac_err"; then
8022 rm -rf conftest* 8025 rm -rf conftest*
8023 eval "ac_cv_header_$ac_safe=yes" 8026 eval "ac_cv_header_$ac_safe=yes"
8024 else 8027 else
8042 else 8045 else
8043 echo "$ac_t""no" 1>&6 8046 echo "$ac_t""no" 1>&6
8044 fi 8047 fi
8045 8048
8046 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8049 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8047 echo "configure:8048: checking for working vfork" >&5 8050 echo "configure:8051: checking for working vfork" >&5
8048 8051
8049 cat > conftest.$ac_ext <<EOF 8052 cat > conftest.$ac_ext <<EOF
8050 #line 8051 "configure" 8053 #line 8054 "configure"
8051 #include "confdefs.h" 8054 #include "confdefs.h"
8052 /* Thanks to Paul Eggert for this test. */ 8055 /* Thanks to Paul Eggert for this test. */
8053 #include <stdio.h> 8056 #include <stdio.h>
8054 #include <sys/types.h> 8057 #include <sys/types.h>
8055 #include <sys/stat.h> 8058 #include <sys/stat.h>
8140 || fstat(fileno(stdout), &st) != 0 8143 || fstat(fileno(stdout), &st) != 0
8141 ); 8144 );
8142 } 8145 }
8143 } 8146 }
8144 EOF 8147 EOF
8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8148 if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8146 then 8149 then
8147 ac_cv_func_vfork_works=yes 8150 ac_cv_func_vfork_works=yes
8148 else 8151 else
8149 echo "configure: failed program was:" >&5 8152 echo "configure: failed program was:" >&5
8150 cat conftest.$ac_ext >&5 8153 cat conftest.$ac_ext >&5
8165 8168
8166 fi 8169 fi
8167 8170
8168 8171
8169 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8172 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8170 echo "configure:8171: checking for working strcoll" >&5 8173 echo "configure:8174: checking for working strcoll" >&5
8171 8174
8172 cat > conftest.$ac_ext <<EOF 8175 cat > conftest.$ac_ext <<EOF
8173 #line 8174 "configure" 8176 #line 8177 "configure"
8174 #include "confdefs.h" 8177 #include "confdefs.h"
8175 #include <string.h> 8178 #include <string.h>
8176 main () 8179 main ()
8177 { 8180 {
8178 exit (strcoll ("abc", "def") >= 0 || 8181 exit (strcoll ("abc", "def") >= 0 ||
8179 strcoll ("ABC", "DEF") >= 0 || 8182 strcoll ("ABC", "DEF") >= 0 ||
8180 strcoll ("123", "456") >= 0); 8183 strcoll ("123", "456") >= 0);
8181 } 8184 }
8182 EOF 8185 EOF
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8186 if { (eval echo configure:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8184 then 8187 then
8185 ac_cv_func_strcoll_works=yes 8188 ac_cv_func_strcoll_works=yes
8186 else 8189 else
8187 echo "configure: failed program was:" >&5 8190 echo "configure: failed program was:" >&5
8188 cat conftest.$ac_ext >&5 8191 cat conftest.$ac_ext >&5
8205 8208
8206 8209
8207 for ac_func in getpgrp 8210 for ac_func in getpgrp
8208 do 8211 do
8209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8210 echo "configure:8211: checking for $ac_func" >&5 8213 echo "configure:8214: checking for $ac_func" >&5
8211 8214
8212 cat > conftest.$ac_ext <<EOF 8215 cat > conftest.$ac_ext <<EOF
8213 #line 8214 "configure" 8216 #line 8217 "configure"
8214 #include "confdefs.h" 8217 #include "confdefs.h"
8215 /* System header to define __stub macros and hopefully few prototypes, 8218 /* System header to define __stub macros and hopefully few prototypes,
8216 which can conflict with char $ac_func(); below. */ 8219 which can conflict with char $ac_func(); below. */
8217 #include <assert.h> 8220 #include <assert.h>
8218 /* Override any gcc2 internal prototype to avoid an error. */ 8221 /* Override any gcc2 internal prototype to avoid an error. */
8231 $ac_func(); 8234 $ac_func();
8232 #endif 8235 #endif
8233 8236
8234 ; return 0; } 8237 ; return 0; }
8235 EOF 8238 EOF
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8237 rm -rf conftest* 8240 rm -rf conftest*
8238 eval "ac_cv_func_$ac_func=yes" 8241 eval "ac_cv_func_$ac_func=yes"
8239 else 8242 else
8240 echo "configure: failed program was:" >&5 8243 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5 8244 cat conftest.$ac_ext >&5
8259 echo "$ac_t""no" 1>&6 8262 echo "$ac_t""no" 1>&6
8260 fi 8263 fi
8261 done 8264 done
8262 8265
8263 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8266 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8264 echo "configure:8265: checking whether getpgrp takes no argument" >&5 8267 echo "configure:8268: checking whether getpgrp takes no argument" >&5
8265 8268
8266 cat > conftest.$ac_ext <<EOF 8269 cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure" 8270 #line 8271 "configure"
8268 #include "confdefs.h" 8271 #include "confdefs.h"
8269 8272
8270 /* 8273 /*
8271 * If this system has a BSD-style getpgrp(), 8274 * If this system has a BSD-style getpgrp(),
8272 * which takes a pid argument, exit unsuccessfully. 8275 * which takes a pid argument, exit unsuccessfully.
8317 exit(s>>8); 8320 exit(s>>8);
8318 } 8321 }
8319 } 8322 }
8320 8323
8321 EOF 8324 EOF
8322 if { (eval echo configure:8323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8325 if { (eval echo configure:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8323 then 8326 then
8324 ac_cv_func_getpgrp_void=yes 8327 ac_cv_func_getpgrp_void=yes
8325 else 8328 else
8326 echo "configure: failed program was:" >&5 8329 echo "configure: failed program was:" >&5
8327 cat conftest.$ac_ext >&5 8330 cat conftest.$ac_ext >&5
8343 8346
8344 fi 8347 fi
8345 8348
8346 8349
8347 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8350 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8348 echo "configure:8349: checking for working mmap" >&5 8351 echo "configure:8352: checking for working mmap" >&5
8349 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8352 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8350 cat > conftest.$ac_ext <<EOF 8353 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure" 8354 #line 8355 "configure"
8352 #include "confdefs.h" 8355 #include "confdefs.h"
8353 #include <stdio.h> 8356 #include <stdio.h>
8354 #include <unistd.h> 8357 #include <unistd.h>
8355 #include <fcntl.h> 8358 #include <fcntl.h>
8356 #include <sys/mman.h> 8359 #include <sys/mman.h>
8379 return 0; 8382 return 0;
8380 perror ("conftest: mmap failed"); 8383 perror ("conftest: mmap failed");
8381 return 1; 8384 return 1;
8382 } 8385 }
8383 EOF 8386 EOF
8384 if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8387 if { (eval echo configure:8388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8385 then 8388 then
8386 have_mmap=yes 8389 have_mmap=yes
8387 else 8390 else
8388 echo "configure: failed program was:" >&5 8391 echo "configure: failed program was:" >&5
8389 cat conftest.$ac_ext >&5 8392 cat conftest.$ac_ext >&5
8413 } 8416 }
8414 8417
8415 8418
8416 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8419 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8417 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8420 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8418 echo "configure:8419: checking for termios.h" >&5 8421 echo "configure:8422: checking for termios.h" >&5
8419 8422
8420 cat > conftest.$ac_ext <<EOF 8423 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure" 8424 #line 8425 "configure"
8422 #include "confdefs.h" 8425 #include "confdefs.h"
8423 #include <termios.h> 8426 #include <termios.h>
8424 EOF 8427 EOF
8425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8426 { (eval echo configure:8427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8429 { (eval echo configure:8430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8427 ac_err=`grep -v '^ *+' conftest.out` 8430 ac_err=`grep -v '^ *+' conftest.out`
8428 if test -z "$ac_err"; then 8431 if test -z "$ac_err"; then
8429 rm -rf conftest* 8432 rm -rf conftest*
8430 eval "ac_cv_header_$ac_safe=yes" 8433 eval "ac_cv_header_$ac_safe=yes"
8431 else 8434 else
8464 8467
8465 else 8468 else
8466 echo "$ac_t""no" 1>&6 8469 echo "$ac_t""no" 1>&6
8467 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8470 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8468 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8471 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8469 echo "configure:8470: checking for termio.h" >&5 8472 echo "configure:8473: checking for termio.h" >&5
8470 8473
8471 cat > conftest.$ac_ext <<EOF 8474 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure" 8475 #line 8476 "configure"
8473 #include "confdefs.h" 8476 #include "confdefs.h"
8474 #include <termio.h> 8477 #include <termio.h>
8475 EOF 8478 EOF
8476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8477 { (eval echo configure:8478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8480 { (eval echo configure:8481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8478 ac_err=`grep -v '^ *+' conftest.out` 8481 ac_err=`grep -v '^ *+' conftest.out`
8479 if test -z "$ac_err"; then 8482 if test -z "$ac_err"; then
8480 rm -rf conftest* 8483 rm -rf conftest*
8481 eval "ac_cv_header_$ac_safe=yes" 8484 eval "ac_cv_header_$ac_safe=yes"
8482 else 8485 else
8504 fi 8507 fi
8505 8508
8506 8509
8507 8510
8508 echo $ac_n "checking for socket""... $ac_c" 1>&6 8511 echo $ac_n "checking for socket""... $ac_c" 1>&6
8509 echo "configure:8510: checking for socket" >&5 8512 echo "configure:8513: checking for socket" >&5
8510 8513
8511 cat > conftest.$ac_ext <<EOF 8514 cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure" 8515 #line 8516 "configure"
8513 #include "confdefs.h" 8516 #include "confdefs.h"
8514 /* System header to define __stub macros and hopefully few prototypes, 8517 /* System header to define __stub macros and hopefully few prototypes,
8515 which can conflict with char socket(); below. */ 8518 which can conflict with char socket(); below. */
8516 #include <assert.h> 8519 #include <assert.h>
8517 /* Override any gcc2 internal prototype to avoid an error. */ 8520 /* Override any gcc2 internal prototype to avoid an error. */
8530 socket(); 8533 socket();
8531 #endif 8534 #endif
8532 8535
8533 ; return 0; } 8536 ; return 0; }
8534 EOF 8537 EOF
8535 if { (eval echo configure:8536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8536 rm -rf conftest* 8539 rm -rf conftest*
8537 eval "ac_cv_func_socket=yes" 8540 eval "ac_cv_func_socket=yes"
8538 else 8541 else
8539 echo "configure: failed program was:" >&5 8542 echo "configure: failed program was:" >&5
8540 cat conftest.$ac_ext >&5 8543 cat conftest.$ac_ext >&5
8545 8548
8546 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8549 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8547 echo "$ac_t""yes" 1>&6 8550 echo "$ac_t""yes" 1>&6
8548 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8551 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8549 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8552 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8550 echo "configure:8551: checking for netinet/in.h" >&5 8553 echo "configure:8554: checking for netinet/in.h" >&5
8551 8554
8552 cat > conftest.$ac_ext <<EOF 8555 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure" 8556 #line 8557 "configure"
8554 #include "confdefs.h" 8557 #include "confdefs.h"
8555 #include <netinet/in.h> 8558 #include <netinet/in.h>
8556 EOF 8559 EOF
8557 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"
8558 { (eval echo configure:8559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8561 { (eval echo configure:8562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8559 ac_err=`grep -v '^ *+' conftest.out` 8562 ac_err=`grep -v '^ *+' conftest.out`
8560 if test -z "$ac_err"; then 8563 if test -z "$ac_err"; then
8561 rm -rf conftest* 8564 rm -rf conftest*
8562 eval "ac_cv_header_$ac_safe=yes" 8565 eval "ac_cv_header_$ac_safe=yes"
8563 else 8566 else
8570 rm -f conftest* 8573 rm -f conftest*
8571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6 8575 echo "$ac_t""yes" 1>&6
8573 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8576 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8574 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8577 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8575 echo "configure:8576: checking for arpa/inet.h" >&5 8578 echo "configure:8579: checking for arpa/inet.h" >&5
8576 8579
8577 cat > conftest.$ac_ext <<EOF 8580 cat > conftest.$ac_ext <<EOF
8578 #line 8579 "configure" 8581 #line 8582 "configure"
8579 #include "confdefs.h" 8582 #include "confdefs.h"
8580 #include <arpa/inet.h> 8583 #include <arpa/inet.h>
8581 EOF 8584 EOF
8582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8583 { (eval echo configure:8584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8586 { (eval echo configure:8587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8584 ac_err=`grep -v '^ *+' conftest.out` 8587 ac_err=`grep -v '^ *+' conftest.out`
8585 if test -z "$ac_err"; then 8588 if test -z "$ac_err"; then
8586 rm -rf conftest* 8589 rm -rf conftest*
8587 eval "ac_cv_header_$ac_safe=yes" 8590 eval "ac_cv_header_$ac_safe=yes"
8588 else 8591 else
8603 #define HAVE_SOCKETS 1 8606 #define HAVE_SOCKETS 1
8604 EOF 8607 EOF
8605 } 8608 }
8606 8609
8607 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8610 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8608 echo "configure:8609: checking "for sun_len member in struct sockaddr_un"" >&5 8611 echo "configure:8612: checking "for sun_len member in struct sockaddr_un"" >&5
8609 cat > conftest.$ac_ext <<EOF 8612 cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure" 8613 #line 8614 "configure"
8611 #include "confdefs.h" 8614 #include "confdefs.h"
8612 8615
8613 #include <sys/types.h> 8616 #include <sys/types.h>
8614 #include <sys/socket.h> 8617 #include <sys/socket.h>
8615 #include <sys/un.h> 8618 #include <sys/un.h>
8616 8619
8617 int main() { 8620 int main() {
8618 static struct sockaddr_un x; x.sun_len = 1; 8621 static struct sockaddr_un x; x.sun_len = 1;
8619 ; return 0; } 8622 ; return 0; }
8620 EOF 8623 EOF
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8622 rm -rf conftest* 8625 rm -rf conftest*
8623 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8626 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8624 Defining HAVE_SOCKADDR_SUN_LEN 8627 Defining HAVE_SOCKADDR_SUN_LEN
8625 EOF 8628 EOF
8626 cat >> confdefs.h <<\EOF 8629 cat >> confdefs.h <<\EOF
8647 echo "$ac_t""no" 1>&6 8650 echo "$ac_t""no" 1>&6
8648 fi 8651 fi
8649 8652
8650 8653
8651 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8654 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8652 echo "configure:8653: checking for msgget" >&5 8655 echo "configure:8656: checking for msgget" >&5
8653 8656
8654 cat > conftest.$ac_ext <<EOF 8657 cat > conftest.$ac_ext <<EOF
8655 #line 8656 "configure" 8658 #line 8659 "configure"
8656 #include "confdefs.h" 8659 #include "confdefs.h"
8657 /* System header to define __stub macros and hopefully few prototypes, 8660 /* System header to define __stub macros and hopefully few prototypes,
8658 which can conflict with char msgget(); below. */ 8661 which can conflict with char msgget(); below. */
8659 #include <assert.h> 8662 #include <assert.h>
8660 /* Override any gcc2 internal prototype to avoid an error. */ 8663 /* Override any gcc2 internal prototype to avoid an error. */
8673 msgget(); 8676 msgget();
8674 #endif 8677 #endif
8675 8678
8676 ; return 0; } 8679 ; return 0; }
8677 EOF 8680 EOF
8678 if { (eval echo configure:8679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8681 if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8679 rm -rf conftest* 8682 rm -rf conftest*
8680 eval "ac_cv_func_msgget=yes" 8683 eval "ac_cv_func_msgget=yes"
8681 else 8684 else
8682 echo "configure: failed program was:" >&5 8685 echo "configure: failed program was:" >&5
8683 cat conftest.$ac_ext >&5 8686 cat conftest.$ac_ext >&5
8688 8691
8689 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8692 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8690 echo "$ac_t""yes" 1>&6 8693 echo "$ac_t""yes" 1>&6
8691 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8694 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8692 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8695 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8693 echo "configure:8694: checking for sys/ipc.h" >&5 8696 echo "configure:8697: checking for sys/ipc.h" >&5
8694 8697
8695 cat > conftest.$ac_ext <<EOF 8698 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure" 8699 #line 8700 "configure"
8697 #include "confdefs.h" 8700 #include "confdefs.h"
8698 #include <sys/ipc.h> 8701 #include <sys/ipc.h>
8699 EOF 8702 EOF
8700 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"
8701 { (eval echo configure:8702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8704 { (eval echo configure:8705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8702 ac_err=`grep -v '^ *+' conftest.out` 8705 ac_err=`grep -v '^ *+' conftest.out`
8703 if test -z "$ac_err"; then 8706 if test -z "$ac_err"; then
8704 rm -rf conftest* 8707 rm -rf conftest*
8705 eval "ac_cv_header_$ac_safe=yes" 8708 eval "ac_cv_header_$ac_safe=yes"
8706 else 8709 else
8713 rm -f conftest* 8716 rm -f conftest*
8714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8715 echo "$ac_t""yes" 1>&6 8718 echo "$ac_t""yes" 1>&6
8716 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8719 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8717 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8720 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8718 echo "configure:8719: checking for sys/msg.h" >&5 8721 echo "configure:8722: checking for sys/msg.h" >&5
8719 8722
8720 cat > conftest.$ac_ext <<EOF 8723 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure" 8724 #line 8725 "configure"
8722 #include "confdefs.h" 8725 #include "confdefs.h"
8723 #include <sys/msg.h> 8726 #include <sys/msg.h>
8724 EOF 8727 EOF
8725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8726 { (eval echo configure:8727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8729 { (eval echo configure:8730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8727 ac_err=`grep -v '^ *+' conftest.out` 8730 ac_err=`grep -v '^ *+' conftest.out`
8728 if test -z "$ac_err"; then 8731 if test -z "$ac_err"; then
8729 rm -rf conftest* 8732 rm -rf conftest*
8730 eval "ac_cv_header_$ac_safe=yes" 8733 eval "ac_cv_header_$ac_safe=yes"
8731 else 8734 else
8759 fi 8762 fi
8760 8763
8761 8764
8762 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8765 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8763 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8766 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8764 echo "configure:8765: checking for dirent.h" >&5 8767 echo "configure:8768: checking for dirent.h" >&5
8765 8768
8766 cat > conftest.$ac_ext <<EOF 8769 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure" 8770 #line 8771 "configure"
8768 #include "confdefs.h" 8771 #include "confdefs.h"
8769 #include <dirent.h> 8772 #include <dirent.h>
8770 EOF 8773 EOF
8771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8772 { (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8775 { (eval echo configure:8776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8773 ac_err=`grep -v '^ *+' conftest.out` 8776 ac_err=`grep -v '^ *+' conftest.out`
8774 if test -z "$ac_err"; then 8777 if test -z "$ac_err"; then
8775 rm -rf conftest* 8778 rm -rf conftest*
8776 eval "ac_cv_header_$ac_safe=yes" 8779 eval "ac_cv_header_$ac_safe=yes"
8777 else 8780 else
8794 8797
8795 else 8798 else
8796 echo "$ac_t""no" 1>&6 8799 echo "$ac_t""no" 1>&6
8797 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8800 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8798 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8801 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8799 echo "configure:8800: checking for sys/dir.h" >&5 8802 echo "configure:8803: checking for sys/dir.h" >&5
8800 8803
8801 cat > conftest.$ac_ext <<EOF 8804 cat > conftest.$ac_ext <<EOF
8802 #line 8803 "configure" 8805 #line 8806 "configure"
8803 #include "confdefs.h" 8806 #include "confdefs.h"
8804 #include <sys/dir.h> 8807 #include <sys/dir.h>
8805 EOF 8808 EOF
8806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8807 { (eval echo configure:8808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8810 { (eval echo configure:8811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8808 ac_err=`grep -v '^ *+' conftest.out` 8811 ac_err=`grep -v '^ *+' conftest.out`
8809 if test -z "$ac_err"; then 8812 if test -z "$ac_err"; then
8810 rm -rf conftest* 8813 rm -rf conftest*
8811 eval "ac_cv_header_$ac_safe=yes" 8814 eval "ac_cv_header_$ac_safe=yes"
8812 else 8815 else
8835 fi 8838 fi
8836 8839
8837 8840
8838 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8841 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8839 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8842 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8840 echo "configure:8841: checking for nlist.h" >&5 8843 echo "configure:8844: checking for nlist.h" >&5
8841 8844
8842 cat > conftest.$ac_ext <<EOF 8845 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure" 8846 #line 8847 "configure"
8844 #include "confdefs.h" 8847 #include "confdefs.h"
8845 #include <nlist.h> 8848 #include <nlist.h>
8846 EOF 8849 EOF
8847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8848 { (eval echo configure:8849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8851 { (eval echo configure:8852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8849 ac_err=`grep -v '^ *+' conftest.out` 8852 ac_err=`grep -v '^ *+' conftest.out`
8850 if test -z "$ac_err"; then 8853 if test -z "$ac_err"; then
8851 rm -rf conftest* 8854 rm -rf conftest*
8852 eval "ac_cv_header_$ac_safe=yes" 8855 eval "ac_cv_header_$ac_safe=yes"
8853 else 8856 else
8884 break; fi 8887 break; fi
8885 done 8888 done
8886 8889
8887 8890
8888 echo "checking "for sound support"" 1>&6 8891 echo "checking "for sound support"" 1>&6
8889 echo "configure:8890: checking "for sound support"" >&5 8892 echo "configure:8893: checking "for sound support"" >&5
8890 case "$with_sound" in 8893 case "$with_sound" in
8891 native | both ) with_native_sound=yes;; 8894 native | both ) with_native_sound=yes;;
8892 nas | no ) with_native_sound=no;; 8895 nas | no ) with_native_sound=no;;
8893 esac 8896 esac
8894 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8897 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8895 8898
8896 if test "$with_native_sound" != "no"; then 8899 if test "$with_native_sound" != "no"; then
8897 if test -n "$native_sound_lib"; then 8900 if test -n "$native_sound_lib"; then
8898 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8901 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8899 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8902 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8900 echo "configure:8901: checking for multimedia/audio_device.h" >&5 8903 echo "configure:8904: checking for multimedia/audio_device.h" >&5
8901 8904
8902 cat > conftest.$ac_ext <<EOF 8905 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure" 8906 #line 8907 "configure"
8904 #include "confdefs.h" 8907 #include "confdefs.h"
8905 #include <multimedia/audio_device.h> 8908 #include <multimedia/audio_device.h>
8906 EOF 8909 EOF
8907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8908 { (eval echo configure:8909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8911 { (eval echo configure:8912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8909 ac_err=`grep -v '^ *+' conftest.out` 8912 ac_err=`grep -v '^ *+' conftest.out`
8910 if test -z "$ac_err"; then 8913 if test -z "$ac_err"; then
8911 rm -rf conftest* 8914 rm -rf conftest*
8912 eval "ac_cv_header_$ac_safe=yes" 8915 eval "ac_cv_header_$ac_safe=yes"
8913 else 8916 else
8951 case "$canonical" in 8954 case "$canonical" in
8952 *-sgi-* ) 8955 *-sgi-* )
8953 if test -z "$native_sound_lib"; then 8956 if test -z "$native_sound_lib"; then
8954 8957
8955 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 8958 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8956 echo "configure:8957: checking for ALopenport in -laudio" >&5 8959 echo "configure:8960: checking for ALopenport in -laudio" >&5
8957 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 8960 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8958 8961
8959 xe_check_libs=" -laudio " 8962 xe_check_libs=" -laudio "
8960 cat > conftest.$ac_ext <<EOF 8963 cat > conftest.$ac_ext <<EOF
8961 #line 8962 "configure" 8964 #line 8965 "configure"
8962 #include "confdefs.h" 8965 #include "confdefs.h"
8963 /* Override any gcc2 internal prototype to avoid an error. */ 8966 /* Override any gcc2 internal prototype to avoid an error. */
8964 /* We use char because int might match the return type of a gcc2 8967 /* We use char because int might match the return type of a gcc2
8965 builtin and then its argument prototype would still apply. */ 8968 builtin and then its argument prototype would still apply. */
8966 char ALopenport(); 8969 char ALopenport();
8967 8970
8968 int main() { 8971 int main() {
8969 ALopenport() 8972 ALopenport()
8970 ; return 0; } 8973 ; return 0; }
8971 EOF 8974 EOF
8972 if { (eval echo configure:8973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8975 if { (eval echo configure:8976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8973 rm -rf conftest* 8976 rm -rf conftest*
8974 eval "ac_cv_lib_$ac_lib_var=yes" 8977 eval "ac_cv_lib_$ac_lib_var=yes"
8975 else 8978 else
8976 echo "configure: failed program was:" >&5 8979 echo "configure: failed program was:" >&5
8977 cat conftest.$ac_ext >&5 8980 cat conftest.$ac_ext >&5
8998 fi ;; 9001 fi ;;
8999 hppa*-hp-hpux* ) 9002 hppa*-hp-hpux* )
9000 if test -z "$native_sound_lib"; then 9003 if test -z "$native_sound_lib"; then
9001 9004
9002 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9005 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9003 echo "configure:9004: checking for AOpenAudio in -lAlib" >&5 9006 echo "configure:9007: checking for AOpenAudio in -lAlib" >&5
9004 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9007 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9005 9008
9006 xe_check_libs=" -lAlib " 9009 xe_check_libs=" -lAlib "
9007 cat > conftest.$ac_ext <<EOF 9010 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure" 9011 #line 9012 "configure"
9009 #include "confdefs.h" 9012 #include "confdefs.h"
9010 /* Override any gcc2 internal prototype to avoid an error. */ 9013 /* Override any gcc2 internal prototype to avoid an error. */
9011 /* We use char because int might match the return type of a gcc2 9014 /* We use char because int might match the return type of a gcc2
9012 builtin and then its argument prototype would still apply. */ 9015 builtin and then its argument prototype would still apply. */
9013 char AOpenAudio(); 9016 char AOpenAudio();
9014 9017
9015 int main() { 9018 int main() {
9016 AOpenAudio() 9019 AOpenAudio()
9017 ; return 0; } 9020 ; return 0; }
9018 EOF 9021 EOF
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9022 if { (eval echo configure:9023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9020 rm -rf conftest* 9023 rm -rf conftest*
9021 eval "ac_cv_lib_$ac_lib_var=yes" 9024 eval "ac_cv_lib_$ac_lib_var=yes"
9022 else 9025 else
9023 echo "configure: failed program was:" >&5 9026 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5 9027 cat conftest.$ac_ext >&5
9052 9055
9053 if test -z "$sound_found"; then 9056 if test -z "$sound_found"; then
9054 for dir in "machine" "sys" "linux"; do 9057 for dir in "machine" "sys" "linux"; do
9055 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9058 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9056 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9059 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9057 echo "configure:9058: checking for ${dir}/soundcard.h" >&5 9060 echo "configure:9061: checking for ${dir}/soundcard.h" >&5
9058 9061
9059 cat > conftest.$ac_ext <<EOF 9062 cat > conftest.$ac_ext <<EOF
9060 #line 9061 "configure" 9063 #line 9064 "configure"
9061 #include "confdefs.h" 9064 #include "confdefs.h"
9062 #include <${dir}/soundcard.h> 9065 #include <${dir}/soundcard.h>
9063 EOF 9066 EOF
9064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9065 { (eval echo configure:9066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9068 { (eval echo configure:9069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9066 ac_err=`grep -v '^ *+' conftest.out` 9069 ac_err=`grep -v '^ *+' conftest.out`
9067 if test -z "$ac_err"; then 9070 if test -z "$ac_err"; then
9068 rm -rf conftest* 9071 rm -rf conftest*
9069 eval "ac_cv_header_$ac_safe=yes" 9072 eval "ac_cv_header_$ac_safe=yes"
9070 else 9073 else
9130 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9133 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9131 echo " xemacs will be linked with \"nas.o\"" 9134 echo " xemacs will be linked with \"nas.o\""
9132 fi 9135 fi
9133 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 9136 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
9134 cat > conftest.$ac_ext <<EOF 9137 cat > conftest.$ac_ext <<EOF
9135 #line 9136 "configure" 9138 #line 9139 "configure"
9136 #include "confdefs.h" 9139 #include "confdefs.h"
9137 #include <audio/Xtutil.h> 9140 #include <audio/Xtutil.h>
9138 EOF 9141 EOF
9139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9140 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9143 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9157 9160
9158 test -z "$with_tty" && with_tty=yes 9161 test -z "$with_tty" && with_tty=yes
9159 9162
9160 if test "$with_tty" = "yes" ; then 9163 if test "$with_tty" = "yes" ; then
9161 echo "checking for TTY-related features" 1>&6 9164 echo "checking for TTY-related features" 1>&6
9162 echo "configure:9163: checking for TTY-related features" >&5 9165 echo "configure:9166: checking for TTY-related features" >&5
9163 { test "$extra_verbose" = "yes" && cat << \EOF 9166 { test "$extra_verbose" = "yes" && cat << \EOF
9164 Defining HAVE_TTY 9167 Defining HAVE_TTY
9165 EOF 9168 EOF
9166 cat >> confdefs.h <<\EOF 9169 cat >> confdefs.h <<\EOF
9167 #define HAVE_TTY 1 9170 #define HAVE_TTY 1
9173 fi 9176 fi
9174 9177
9175 if test -z "$with_ncurses"; then 9178 if test -z "$with_ncurses"; then
9176 9179
9177 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9180 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9178 echo "configure:9179: checking for tgetent in -lncurses" >&5 9181 echo "configure:9182: checking for tgetent in -lncurses" >&5
9179 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9182 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9180 9183
9181 xe_check_libs=" -lncurses " 9184 xe_check_libs=" -lncurses "
9182 cat > conftest.$ac_ext <<EOF 9185 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure" 9186 #line 9187 "configure"
9184 #include "confdefs.h" 9187 #include "confdefs.h"
9185 /* Override any gcc2 internal prototype to avoid an error. */ 9188 /* Override any gcc2 internal prototype to avoid an error. */
9186 /* We use char because int might match the return type of a gcc2 9189 /* We use char because int might match the return type of a gcc2
9187 builtin and then its argument prototype would still apply. */ 9190 builtin and then its argument prototype would still apply. */
9188 char tgetent(); 9191 char tgetent();
9189 9192
9190 int main() { 9193 int main() {
9191 tgetent() 9194 tgetent()
9192 ; return 0; } 9195 ; return 0; }
9193 EOF 9196 EOF
9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9197 if { (eval echo configure:9198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9195 rm -rf conftest* 9198 rm -rf conftest*
9196 eval "ac_cv_lib_$ac_lib_var=yes" 9199 eval "ac_cv_lib_$ac_lib_var=yes"
9197 else 9200 else
9198 echo "configure: failed program was:" >&5 9201 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5 9202 cat conftest.$ac_ext >&5
9222 EOF 9225 EOF
9223 } 9226 }
9224 9227
9225 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9228 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9226 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9229 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9227 echo "configure:9228: checking for ncurses/curses.h" >&5 9230 echo "configure:9231: checking for ncurses/curses.h" >&5
9228 9231
9229 cat > conftest.$ac_ext <<EOF 9232 cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure" 9233 #line 9234 "configure"
9231 #include "confdefs.h" 9234 #include "confdefs.h"
9232 #include <ncurses/curses.h> 9235 #include <ncurses/curses.h>
9233 EOF 9236 EOF
9234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9235 { (eval echo configure:9236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9238 { (eval echo configure:9239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9236 ac_err=`grep -v '^ *+' conftest.out` 9239 ac_err=`grep -v '^ *+' conftest.out`
9237 if test -z "$ac_err"; then 9240 if test -z "$ac_err"; then
9238 rm -rf conftest* 9241 rm -rf conftest*
9239 eval "ac_cv_header_$ac_safe=yes" 9242 eval "ac_cv_header_$ac_safe=yes"
9240 else 9243 else
9252 echo "$ac_t""no" 1>&6 9255 echo "$ac_t""no" 1>&6
9253 fi 9256 fi
9254 9257
9255 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9258 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9256 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9259 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9257 echo "configure:9258: checking for ncurses/term.h" >&5 9260 echo "configure:9261: checking for ncurses/term.h" >&5
9258 9261
9259 cat > conftest.$ac_ext <<EOF 9262 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure" 9263 #line 9264 "configure"
9261 #include "confdefs.h" 9264 #include "confdefs.h"
9262 #include <ncurses/term.h> 9265 #include <ncurses/term.h>
9263 EOF 9266 EOF
9264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9265 { (eval echo configure:9266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9268 { (eval echo configure:9269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9266 ac_err=`grep -v '^ *+' conftest.out` 9269 ac_err=`grep -v '^ *+' conftest.out`
9267 if test -z "$ac_err"; then 9270 if test -z "$ac_err"; then
9268 rm -rf conftest* 9271 rm -rf conftest*
9269 eval "ac_cv_header_$ac_safe=yes" 9272 eval "ac_cv_header_$ac_safe=yes"
9270 else 9273 else
9290 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9293 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9291 save_c_switch_site="$c_switch_site" 9294 save_c_switch_site="$c_switch_site"
9292 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9295 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9293 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9296 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9294 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9297 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9295 echo "configure:9296: checking for ncurses/curses.h" >&5 9298 echo "configure:9299: checking for ncurses/curses.h" >&5
9296 9299
9297 cat > conftest.$ac_ext <<EOF 9300 cat > conftest.$ac_ext <<EOF
9298 #line 9299 "configure" 9301 #line 9302 "configure"
9299 #include "confdefs.h" 9302 #include "confdefs.h"
9300 #include <ncurses/curses.h> 9303 #include <ncurses/curses.h>
9301 EOF 9304 EOF
9302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9303 { (eval echo configure:9304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9306 { (eval echo configure:9307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9304 ac_err=`grep -v '^ *+' conftest.out` 9307 ac_err=`grep -v '^ *+' conftest.out`
9305 if test -z "$ac_err"; then 9308 if test -z "$ac_err"; then
9306 rm -rf conftest* 9309 rm -rf conftest*
9307 eval "ac_cv_header_$ac_safe=yes" 9310 eval "ac_cv_header_$ac_safe=yes"
9308 else 9311 else
9333 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9336 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9334 else 9337 else
9335 for lib in curses termlib termcap; do 9338 for lib in curses termlib termcap; do
9336 9339
9337 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9340 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9338 echo "configure:9339: checking for tgetent in -l$lib" >&5 9341 echo "configure:9342: checking for tgetent in -l$lib" >&5
9339 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9342 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9340 9343
9341 xe_check_libs=" -l$lib " 9344 xe_check_libs=" -l$lib "
9342 cat > conftest.$ac_ext <<EOF 9345 cat > conftest.$ac_ext <<EOF
9343 #line 9344 "configure" 9346 #line 9347 "configure"
9344 #include "confdefs.h" 9347 #include "confdefs.h"
9345 /* Override any gcc2 internal prototype to avoid an error. */ 9348 /* Override any gcc2 internal prototype to avoid an error. */
9346 /* We use char because int might match the return type of a gcc2 9349 /* We use char because int might match the return type of a gcc2
9347 builtin and then its argument prototype would still apply. */ 9350 builtin and then its argument prototype would still apply. */
9348 char tgetent(); 9351 char tgetent();
9349 9352
9350 int main() { 9353 int main() {
9351 tgetent() 9354 tgetent()
9352 ; return 0; } 9355 ; return 0; }
9353 EOF 9356 EOF
9354 if { (eval echo configure:9355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9355 rm -rf conftest* 9358 rm -rf conftest*
9356 eval "ac_cv_lib_$ac_lib_var=yes" 9359 eval "ac_cv_lib_$ac_lib_var=yes"
9357 else 9360 else
9358 echo "configure: failed program was:" >&5 9361 echo "configure: failed program was:" >&5
9359 cat conftest.$ac_ext >&5 9362 cat conftest.$ac_ext >&5
9380 if test -n "$libs_termcap"; then 9383 if test -n "$libs_termcap"; then
9381 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9384 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9382 else 9385 else
9383 9386
9384 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9387 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9385 echo "configure:9386: checking for tgetent in -lcurses" >&5 9388 echo "configure:9389: checking for tgetent in -lcurses" >&5
9386 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9389 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9387 9390
9388 xe_check_libs=" -lcurses " 9391 xe_check_libs=" -lcurses "
9389 cat > conftest.$ac_ext <<EOF 9392 cat > conftest.$ac_ext <<EOF
9390 #line 9391 "configure" 9393 #line 9394 "configure"
9391 #include "confdefs.h" 9394 #include "confdefs.h"
9392 /* Override any gcc2 internal prototype to avoid an error. */ 9395 /* Override any gcc2 internal prototype to avoid an error. */
9393 /* We use char because int might match the return type of a gcc2 9396 /* We use char because int might match the return type of a gcc2
9394 builtin and then its argument prototype would still apply. */ 9397 builtin and then its argument prototype would still apply. */
9395 char tgetent(); 9398 char tgetent();
9396 9399
9397 int main() { 9400 int main() {
9398 tgetent() 9401 tgetent()
9399 ; return 0; } 9402 ; return 0; }
9400 EOF 9403 EOF
9401 if { (eval echo configure:9402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9404 if { (eval echo configure:9405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9402 rm -rf conftest* 9405 rm -rf conftest*
9403 eval "ac_cv_lib_$ac_lib_var=yes" 9406 eval "ac_cv_lib_$ac_lib_var=yes"
9404 else 9407 else
9405 echo "configure: failed program was:" >&5 9408 echo "configure: failed program was:" >&5
9406 cat conftest.$ac_ext >&5 9409 cat conftest.$ac_ext >&5
9414 echo "$ac_t""yes" 1>&6 9417 echo "$ac_t""yes" 1>&6
9415 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9418 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9416 else 9419 else
9417 echo "$ac_t""no" 1>&6 9420 echo "$ac_t""no" 1>&6
9418 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9421 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9419 echo "configure:9420: checking for tgetent in -ltermcap" >&5 9422 echo "configure:9423: checking for tgetent in -ltermcap" >&5
9420 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9423 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9421 9424
9422 xe_check_libs=" -ltermcap " 9425 xe_check_libs=" -ltermcap "
9423 cat > conftest.$ac_ext <<EOF 9426 cat > conftest.$ac_ext <<EOF
9424 #line 9425 "configure" 9427 #line 9428 "configure"
9425 #include "confdefs.h" 9428 #include "confdefs.h"
9426 /* Override any gcc2 internal prototype to avoid an error. */ 9429 /* Override any gcc2 internal prototype to avoid an error. */
9427 /* We use char because int might match the return type of a gcc2 9430 /* We use char because int might match the return type of a gcc2
9428 builtin and then its argument prototype would still apply. */ 9431 builtin and then its argument prototype would still apply. */
9429 char tgetent(); 9432 char tgetent();
9430 9433
9431 int main() { 9434 int main() {
9432 tgetent() 9435 tgetent()
9433 ; return 0; } 9436 ; return 0; }
9434 EOF 9437 EOF
9435 if { (eval echo configure:9436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9436 rm -rf conftest* 9439 rm -rf conftest*
9437 eval "ac_cv_lib_$ac_lib_var=yes" 9440 eval "ac_cv_lib_$ac_lib_var=yes"
9438 else 9441 else
9439 echo "configure: failed program was:" >&5 9442 echo "configure: failed program was:" >&5
9440 cat conftest.$ac_ext >&5 9443 cat conftest.$ac_ext >&5
9478 } 9481 }
9479 9482
9480 9483
9481 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9484 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9482 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9485 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9483 echo "configure:9484: checking for gpm.h" >&5 9486 echo "configure:9487: checking for gpm.h" >&5
9484 9487
9485 cat > conftest.$ac_ext <<EOF 9488 cat > conftest.$ac_ext <<EOF
9486 #line 9487 "configure" 9489 #line 9490 "configure"
9487 #include "confdefs.h" 9490 #include "confdefs.h"
9488 #include <gpm.h> 9491 #include <gpm.h>
9489 EOF 9492 EOF
9490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9491 { (eval echo configure:9492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9494 { (eval echo configure:9495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9492 ac_err=`grep -v '^ *+' conftest.out` 9495 ac_err=`grep -v '^ *+' conftest.out`
9493 if test -z "$ac_err"; then 9496 if test -z "$ac_err"; then
9494 rm -rf conftest* 9497 rm -rf conftest*
9495 eval "ac_cv_header_$ac_safe=yes" 9498 eval "ac_cv_header_$ac_safe=yes"
9496 else 9499 else
9509 with_gpm=no 9512 with_gpm=no
9510 fi 9513 fi
9511 } 9514 }
9512 test -z "$with_gpm" && { 9515 test -z "$with_gpm" && {
9513 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9516 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9514 echo "configure:9515: checking for Gpm_Open in -lgpm" >&5 9517 echo "configure:9518: checking for Gpm_Open in -lgpm" >&5
9515 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9518 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9516 9519
9517 xe_check_libs=" -lgpm " 9520 xe_check_libs=" -lgpm "
9518 cat > conftest.$ac_ext <<EOF 9521 cat > conftest.$ac_ext <<EOF
9519 #line 9520 "configure" 9522 #line 9523 "configure"
9520 #include "confdefs.h" 9523 #include "confdefs.h"
9521 /* Override any gcc2 internal prototype to avoid an error. */ 9524 /* Override any gcc2 internal prototype to avoid an error. */
9522 /* We use char because int might match the return type of a gcc2 9525 /* We use char because int might match the return type of a gcc2
9523 builtin and then its argument prototype would still apply. */ 9526 builtin and then its argument prototype would still apply. */
9524 char Gpm_Open(); 9527 char Gpm_Open();
9525 9528
9526 int main() { 9529 int main() {
9527 Gpm_Open() 9530 Gpm_Open()
9528 ; return 0; } 9531 ; return 0; }
9529 EOF 9532 EOF
9530 if { (eval echo configure:9531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9533 if { (eval echo configure:9534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9531 rm -rf conftest* 9534 rm -rf conftest*
9532 eval "ac_cv_lib_$ac_lib_var=yes" 9535 eval "ac_cv_lib_$ac_lib_var=yes"
9533 else 9536 else
9534 echo "configure: failed program was:" >&5 9537 echo "configure: failed program was:" >&5
9535 cat conftest.$ac_ext >&5 9538 cat conftest.$ac_ext >&5
9574 echo " xemacs will be linked with \"event-unixoid.o\"" 9577 echo " xemacs will be linked with \"event-unixoid.o\""
9575 fi 9578 fi
9576 9579
9577 9580
9578 echo "checking for database support" 1>&6 9581 echo "checking for database support" 1>&6
9579 echo "configure:9580: checking for database support" >&5 9582 echo "configure:9583: checking for database support" >&5
9580 9583
9581 if test "$with_database_gnudbm" != "no"; then 9584 if test "$with_database_gnudbm" != "no"; then
9582 9585
9583 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9586 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9584 echo "configure:9585: checking for dbm_open in -lgdbm" >&5 9587 echo "configure:9588: checking for dbm_open in -lgdbm" >&5
9585 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9588 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9586 9589
9587 xe_check_libs=" -lgdbm " 9590 xe_check_libs=" -lgdbm "
9588 cat > conftest.$ac_ext <<EOF 9591 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure" 9592 #line 9593 "configure"
9590 #include "confdefs.h" 9593 #include "confdefs.h"
9591 /* Override any gcc2 internal prototype to avoid an error. */ 9594 /* Override any gcc2 internal prototype to avoid an error. */
9592 /* We use char because int might match the return type of a gcc2 9595 /* We use char because int might match the return type of a gcc2
9593 builtin and then its argument prototype would still apply. */ 9596 builtin and then its argument prototype would still apply. */
9594 char dbm_open(); 9597 char dbm_open();
9595 9598
9596 int main() { 9599 int main() {
9597 dbm_open() 9600 dbm_open()
9598 ; return 0; } 9601 ; return 0; }
9599 EOF 9602 EOF
9600 if { (eval echo configure:9601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9603 if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9601 rm -rf conftest* 9604 rm -rf conftest*
9602 eval "ac_cv_lib_$ac_lib_var=yes" 9605 eval "ac_cv_lib_$ac_lib_var=yes"
9603 else 9606 else
9604 echo "configure: failed program was:" >&5 9607 echo "configure: failed program was:" >&5
9605 cat conftest.$ac_ext >&5 9608 cat conftest.$ac_ext >&5
9617 fi 9620 fi
9618 9621
9619 9622
9620 if test "$with_database_gnudbm" != "yes"; then 9623 if test "$with_database_gnudbm" != "yes"; then
9621 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9624 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9622 echo "configure:9623: checking for dbm_open" >&5 9625 echo "configure:9626: checking for dbm_open" >&5
9623 9626
9624 cat > conftest.$ac_ext <<EOF 9627 cat > conftest.$ac_ext <<EOF
9625 #line 9626 "configure" 9628 #line 9629 "configure"
9626 #include "confdefs.h" 9629 #include "confdefs.h"
9627 /* System header to define __stub macros and hopefully few prototypes, 9630 /* System header to define __stub macros and hopefully few prototypes,
9628 which can conflict with char dbm_open(); below. */ 9631 which can conflict with char dbm_open(); below. */
9629 #include <assert.h> 9632 #include <assert.h>
9630 /* Override any gcc2 internal prototype to avoid an error. */ 9633 /* Override any gcc2 internal prototype to avoid an error. */
9643 dbm_open(); 9646 dbm_open();
9644 #endif 9647 #endif
9645 9648
9646 ; return 0; } 9649 ; return 0; }
9647 EOF 9650 EOF
9648 if { (eval echo configure:9649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9651 if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9649 rm -rf conftest* 9652 rm -rf conftest*
9650 eval "ac_cv_func_dbm_open=yes" 9653 eval "ac_cv_func_dbm_open=yes"
9651 else 9654 else
9652 echo "configure: failed program was:" >&5 9655 echo "configure: failed program was:" >&5
9653 cat conftest.$ac_ext >&5 9656 cat conftest.$ac_ext >&5
9679 fi 9682 fi
9680 fi 9683 fi
9681 9684
9682 if test "$with_database_dbm" != "no"; then 9685 if test "$with_database_dbm" != "no"; then
9683 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9686 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9684 echo "configure:9685: checking for dbm_open" >&5 9687 echo "configure:9688: checking for dbm_open" >&5
9685 9688
9686 cat > conftest.$ac_ext <<EOF 9689 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure" 9690 #line 9691 "configure"
9688 #include "confdefs.h" 9691 #include "confdefs.h"
9689 /* System header to define __stub macros and hopefully few prototypes, 9692 /* System header to define __stub macros and hopefully few prototypes,
9690 which can conflict with char dbm_open(); below. */ 9693 which can conflict with char dbm_open(); below. */
9691 #include <assert.h> 9694 #include <assert.h>
9692 /* Override any gcc2 internal prototype to avoid an error. */ 9695 /* Override any gcc2 internal prototype to avoid an error. */
9705 dbm_open(); 9708 dbm_open();
9706 #endif 9709 #endif
9707 9710
9708 ; return 0; } 9711 ; return 0; }
9709 EOF 9712 EOF
9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9713 if { (eval echo configure:9714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9711 rm -rf conftest* 9714 rm -rf conftest*
9712 eval "ac_cv_func_dbm_open=yes" 9715 eval "ac_cv_func_dbm_open=yes"
9713 else 9716 else
9714 echo "configure: failed program was:" >&5 9717 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5 9718 cat conftest.$ac_ext >&5
9726 fi 9729 fi
9727 9730
9728 if test "$need_libdbm" != "no"; then 9731 if test "$need_libdbm" != "no"; then
9729 9732
9730 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9733 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9731 echo "configure:9732: checking for dbm_open in -ldbm" >&5 9734 echo "configure:9735: checking for dbm_open in -ldbm" >&5
9732 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9735 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9733 9736
9734 xe_check_libs=" -ldbm " 9737 xe_check_libs=" -ldbm "
9735 cat > conftest.$ac_ext <<EOF 9738 cat > conftest.$ac_ext <<EOF
9736 #line 9737 "configure" 9739 #line 9740 "configure"
9737 #include "confdefs.h" 9740 #include "confdefs.h"
9738 /* Override any gcc2 internal prototype to avoid an error. */ 9741 /* Override any gcc2 internal prototype to avoid an error. */
9739 /* We use char because int might match the return type of a gcc2 9742 /* We use char because int might match the return type of a gcc2
9740 builtin and then its argument prototype would still apply. */ 9743 builtin and then its argument prototype would still apply. */
9741 char dbm_open(); 9744 char dbm_open();
9742 9745
9743 int main() { 9746 int main() {
9744 dbm_open() 9747 dbm_open()
9745 ; return 0; } 9748 ; return 0; }
9746 EOF 9749 EOF
9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9750 if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9748 rm -rf conftest* 9751 rm -rf conftest*
9749 eval "ac_cv_lib_$ac_lib_var=yes" 9752 eval "ac_cv_lib_$ac_lib_var=yes"
9750 else 9753 else
9751 echo "configure: failed program was:" >&5 9754 echo "configure: failed program was:" >&5
9752 cat conftest.$ac_ext >&5 9755 cat conftest.$ac_ext >&5
9779 fi 9782 fi
9780 fi 9783 fi
9781 9784
9782 if test "$with_database_berkdb" != "no"; then 9785 if test "$with_database_berkdb" != "no"; then
9783 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9786 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9784 echo "configure:9785: checking for dbopen" >&5 9787 echo "configure:9788: checking for dbopen" >&5
9785 9788
9786 cat > conftest.$ac_ext <<EOF 9789 cat > conftest.$ac_ext <<EOF
9787 #line 9788 "configure" 9790 #line 9791 "configure"
9788 #include "confdefs.h" 9791 #include "confdefs.h"
9789 /* System header to define __stub macros and hopefully few prototypes, 9792 /* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char dbopen(); below. */ 9793 which can conflict with char dbopen(); below. */
9791 #include <assert.h> 9794 #include <assert.h>
9792 /* Override any gcc2 internal prototype to avoid an error. */ 9795 /* Override any gcc2 internal prototype to avoid an error. */
9805 dbopen(); 9808 dbopen();
9806 #endif 9809 #endif
9807 9810
9808 ; return 0; } 9811 ; return 0; }
9809 EOF 9812 EOF
9810 if { (eval echo configure:9811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9813 if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9811 rm -rf conftest* 9814 rm -rf conftest*
9812 eval "ac_cv_func_dbopen=yes" 9815 eval "ac_cv_func_dbopen=yes"
9813 else 9816 else
9814 echo "configure: failed program was:" >&5 9817 echo "configure: failed program was:" >&5
9815 cat conftest.$ac_ext >&5 9818 cat conftest.$ac_ext >&5
9826 fi 9829 fi
9827 9830
9828 if test "$need_libdb" != "no"; then 9831 if test "$need_libdb" != "no"; then
9829 9832
9830 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9833 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9831 echo "configure:9832: checking for dbopen in -ldb" >&5 9834 echo "configure:9835: checking for dbopen in -ldb" >&5
9832 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9835 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9833 9836
9834 xe_check_libs=" -ldb " 9837 xe_check_libs=" -ldb "
9835 cat > conftest.$ac_ext <<EOF 9838 cat > conftest.$ac_ext <<EOF
9836 #line 9837 "configure" 9839 #line 9840 "configure"
9837 #include "confdefs.h" 9840 #include "confdefs.h"
9838 /* Override any gcc2 internal prototype to avoid an error. */ 9841 /* Override any gcc2 internal prototype to avoid an error. */
9839 /* We use char because int might match the return type of a gcc2 9842 /* We use char because int might match the return type of a gcc2
9840 builtin and then its argument prototype would still apply. */ 9843 builtin and then its argument prototype would still apply. */
9841 char dbopen(); 9844 char dbopen();
9842 9845
9843 int main() { 9846 int main() {
9844 dbopen() 9847 dbopen()
9845 ; return 0; } 9848 ; return 0; }
9846 EOF 9849 EOF
9847 if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9848 rm -rf conftest* 9851 rm -rf conftest*
9849 eval "ac_cv_lib_$ac_lib_var=yes" 9852 eval "ac_cv_lib_$ac_lib_var=yes"
9850 else 9853 else
9851 echo "configure: failed program was:" >&5 9854 echo "configure: failed program was:" >&5
9852 cat conftest.$ac_ext >&5 9855 cat conftest.$ac_ext >&5
9866 9869
9867 fi 9870 fi
9868 if test "$with_database_berkdb" = "yes"; then 9871 if test "$with_database_berkdb" = "yes"; then
9869 for path in "db/db.h" "db.h"; do 9872 for path in "db/db.h" "db.h"; do
9870 cat > conftest.$ac_ext <<EOF 9873 cat > conftest.$ac_ext <<EOF
9871 #line 9872 "configure" 9874 #line 9875 "configure"
9872 #include "confdefs.h" 9875 #include "confdefs.h"
9873 #ifdef HAVE_INTTYPES_H 9876 #ifdef HAVE_INTTYPES_H
9874 #define __BIT_TYPES_DEFINED__ 9877 #define __BIT_TYPES_DEFINED__
9875 #include <inttypes.h> 9878 #include <inttypes.h>
9876 typedef uint8_t u_int8_t; 9879 typedef uint8_t u_int8_t;
9889 9892
9890 int main() { 9893 int main() {
9891 9894
9892 ; return 0; } 9895 ; return 0; }
9893 EOF 9896 EOF
9894 if { (eval echo configure:9895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9897 if { (eval echo configure:9898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9895 rm -rf conftest* 9898 rm -rf conftest*
9896 db_h_path="$path"; break 9899 db_h_path="$path"; break
9897 else 9900 else
9898 echo "configure: failed program was:" >&5 9901 echo "configure: failed program was:" >&5
9899 cat conftest.$ac_ext >&5 9902 cat conftest.$ac_ext >&5
9941 fi 9944 fi
9942 9945
9943 if test "$with_socks" = "yes"; then 9946 if test "$with_socks" = "yes"; then
9944 9947
9945 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9948 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9946 echo "configure:9947: checking for SOCKSinit in -lsocks" >&5 9949 echo "configure:9950: checking for SOCKSinit in -lsocks" >&5
9947 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9950 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9948 9951
9949 xe_check_libs=" -lsocks " 9952 xe_check_libs=" -lsocks "
9950 cat > conftest.$ac_ext <<EOF 9953 cat > conftest.$ac_ext <<EOF
9951 #line 9952 "configure" 9954 #line 9955 "configure"
9952 #include "confdefs.h" 9955 #include "confdefs.h"
9953 /* Override any gcc2 internal prototype to avoid an error. */ 9956 /* Override any gcc2 internal prototype to avoid an error. */
9954 /* We use char because int might match the return type of a gcc2 9957 /* We use char because int might match the return type of a gcc2
9955 builtin and then its argument prototype would still apply. */ 9958 builtin and then its argument prototype would still apply. */
9956 char SOCKSinit(); 9959 char SOCKSinit();
9957 9960
9958 int main() { 9961 int main() {
9959 SOCKSinit() 9962 SOCKSinit()
9960 ; return 0; } 9963 ; return 0; }
9961 EOF 9964 EOF
9962 if { (eval echo configure:9963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9965 if { (eval echo configure:9966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9963 rm -rf conftest* 9966 rm -rf conftest*
9964 eval "ac_cv_lib_$ac_lib_var=yes" 9967 eval "ac_cv_lib_$ac_lib_var=yes"
9965 else 9968 else
9966 echo "configure: failed program was:" >&5 9969 echo "configure: failed program was:" >&5
9967 cat conftest.$ac_ext >&5 9970 cat conftest.$ac_ext >&5