comparison configure @ 197:acd284d43ca1 r20-3b25

Import from CVS: tag r20-3b25
author cvs
date Mon, 13 Aug 2007 10:00:02 +0200
parents f53b5ca2e663
children eb5470882647
comparison
equal deleted inserted replaced
196:58e0786448ca 197:acd284d43ca1
332 --with-jpeg (*) Compile with support for JPEG image conversion. 332 --with-jpeg (*) Compile with support for JPEG image conversion.
333 Requires libjpeg from the Independent JPEG Group. 333 Requires libjpeg from the Independent JPEG Group.
334 Get it from the XEmacs FTP site. 334 Get it from the XEmacs FTP site.
335 --with-png (*) Compile with support for PNG image conversion. 335 --with-png (*) Compile with support for PNG image conversion.
336 Requires libpng. Get it from the XEmacs FTP site. 336 Requires libpng. Get it from the XEmacs FTP site.
337 --with-tiff Compile with support for TIFF image conversion 337 --with-tiff (*) Compile with support for TIFF image conversion
338 (not yet implemented). 338 (not yet implemented).
339 339
340 340
341 TTY options: 341 TTY options:
342 342
5577 libs_xauth="$T" 5577 libs_xauth="$T"
5578 5578
5579 fi 5579 fi
5580 5580
5581 5581
5582 OFFIX_O=""
5582 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'` 5583 test -z "$with_offix" && { ac_safe=`echo "OffiX/DragAndDrop.h" | sed 'y%./+-%__p_%'`
5583 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6 5584 echo $ac_n "checking for OffiX/DragAndDrop.h""... $ac_c" 1>&6
5584 echo "configure:5585: checking for OffiX/DragAndDrop.h" >&5 5585 echo "configure:5586: checking for OffiX/DragAndDrop.h" >&5
5585 5586
5586 cat > conftest.$ac_ext <<EOF 5587 cat > conftest.$ac_ext <<EOF
5587 #line 5588 "configure" 5588 #line 5589 "configure"
5588 #include "confdefs.h" 5589 #include "confdefs.h"
5589 #include <OffiX/DragAndDrop.h> 5590 #include <OffiX/DragAndDrop.h>
5590 EOF 5591 EOF
5591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5592 { (eval echo configure:5593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5593 { (eval echo configure:5594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5593 ac_err=`grep -v '^ *+' conftest.out` 5594 ac_err=`grep -v '^ *+' conftest.out`
5594 if test -z "$ac_err"; then 5595 if test -z "$ac_err"; then
5595 rm -rf conftest* 5596 rm -rf conftest*
5596 eval "ac_cv_header_$ac_safe=yes" 5597 eval "ac_cv_header_$ac_safe=yes"
5597 else 5598 else
5610 with_offix=no 5611 with_offix=no
5611 fi 5612 fi
5612 } 5613 }
5613 test -z "$with_offix" && { 5614 test -z "$with_offix" && {
5614 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6 5615 echo $ac_n "checking for DndInitialize in -lDnd""... $ac_c" 1>&6
5615 echo "configure:5616: checking for DndInitialize in -lDnd" >&5 5616 echo "configure:5617: checking for DndInitialize in -lDnd" >&5
5616 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'` 5617 ac_lib_var=`echo Dnd'_'DndInitialize | sed 'y%./+-%__p_%'`
5617 5618
5618 xe_check_libs=" -lDnd " 5619 xe_check_libs=" -lDnd "
5619 cat > conftest.$ac_ext <<EOF 5620 cat > conftest.$ac_ext <<EOF
5620 #line 5621 "configure" 5621 #line 5622 "configure"
5621 #include "confdefs.h" 5622 #include "confdefs.h"
5622 /* Override any gcc2 internal prototype to avoid an error. */ 5623 /* Override any gcc2 internal prototype to avoid an error. */
5623 /* We use char because int might match the return type of a gcc2 5624 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */ 5625 builtin and then its argument prototype would still apply. */
5625 char DndInitialize(); 5626 char DndInitialize();
5626 5627
5627 int main() { 5628 int main() {
5628 DndInitialize() 5629 DndInitialize()
5629 ; return 0; } 5630 ; return 0; }
5630 EOF 5631 EOF
5631 if { (eval echo configure:5632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5632 if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5632 rm -rf conftest* 5633 rm -rf conftest*
5633 eval "ac_cv_lib_$ac_lib_var=yes" 5634 eval "ac_cv_lib_$ac_lib_var=yes"
5634 else 5635 else
5635 echo "configure: failed program was:" >&5 5636 echo "configure: failed program was:" >&5
5636 cat conftest.$ac_ext >&5 5637 cat conftest.$ac_ext >&5
5657 cat >> confdefs.h <<\EOF 5658 cat >> confdefs.h <<\EOF
5658 #define HAVE_OFFIX_DND 1 5659 #define HAVE_OFFIX_DND 1
5659 EOF 5660 EOF
5660 } 5661 }
5661 5662
5662 libs_x="-lDnd $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lDnd\" to \$libs_x"; fi 5663 OFFIX_O="offix.o"
5663 fi 5664 fi
5665
5664 5666
5665 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk 5667 test "$with_cde" = "yes" && with_tooltalk=yes # CDE requires tooltalk
5666 if test "$with_tooltalk" != "no" ; then 5668 if test "$with_tooltalk" != "no" ; then
5667 for dir in "" "Tt/" "desktop/" ; do 5669 for dir in "" "Tt/" "desktop/" ; do
5668 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 5670 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
5669 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 5671 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
5670 echo "configure:5671: checking for ${dir}tt_c.h" >&5 5672 echo "configure:5673: checking for ${dir}tt_c.h" >&5
5671 5673
5672 cat > conftest.$ac_ext <<EOF 5674 cat > conftest.$ac_ext <<EOF
5673 #line 5674 "configure" 5675 #line 5676 "configure"
5674 #include "confdefs.h" 5676 #include "confdefs.h"
5675 #include <${dir}tt_c.h> 5677 #include <${dir}tt_c.h>
5676 EOF 5678 EOF
5677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5678 { (eval echo configure:5679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5680 { (eval echo configure:5681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5679 ac_err=`grep -v '^ *+' conftest.out` 5681 ac_err=`grep -v '^ *+' conftest.out`
5680 if test -z "$ac_err"; then 5682 if test -z "$ac_err"; then
5681 rm -rf conftest* 5683 rm -rf conftest*
5682 eval "ac_cv_header_$ac_safe=yes" 5684 eval "ac_cv_header_$ac_safe=yes"
5683 else 5685 else
5702 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 5704 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
5703 5705
5704 xe_msg_checking="for tt_message_create in -ltt" 5706 xe_msg_checking="for tt_message_create in -ltt"
5705 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 5707 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
5706 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 5708 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
5707 echo "configure:5708: checking "$xe_msg_checking"" >&5 5709 echo "configure:5710: checking "$xe_msg_checking"" >&5
5708 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 5710 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
5709 5711
5710 xe_check_libs=" -ltt $extra_libs" 5712 xe_check_libs=" -ltt $extra_libs"
5711 cat > conftest.$ac_ext <<EOF 5713 cat > conftest.$ac_ext <<EOF
5712 #line 5713 "configure" 5714 #line 5715 "configure"
5713 #include "confdefs.h" 5715 #include "confdefs.h"
5714 /* Override any gcc2 internal prototype to avoid an error. */ 5716 /* Override any gcc2 internal prototype to avoid an error. */
5715 /* We use char because int might match the return type of a gcc2 5717 /* We use char because int might match the return type of a gcc2
5716 builtin and then its argument prototype would still apply. */ 5718 builtin and then its argument prototype would still apply. */
5717 char tt_message_create(); 5719 char tt_message_create();
5718 5720
5719 int main() { 5721 int main() {
5720 tt_message_create() 5722 tt_message_create()
5721 ; return 0; } 5723 ; return 0; }
5722 EOF 5724 EOF
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5725 if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5724 rm -rf conftest* 5726 rm -rf conftest*
5725 eval "ac_cv_lib_$ac_lib_var=yes" 5727 eval "ac_cv_lib_$ac_lib_var=yes"
5726 else 5728 else
5727 echo "configure: failed program was:" >&5 5729 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5 5730 cat conftest.$ac_ext >&5
5767 fi 5769 fi
5768 fi 5770 fi
5769 5771
5770 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 5772 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
5771 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 5773 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
5772 echo "configure:5773: checking for Dt/Dt.h" >&5 5774 echo "configure:5775: checking for Dt/Dt.h" >&5
5773 5775
5774 cat > conftest.$ac_ext <<EOF 5776 cat > conftest.$ac_ext <<EOF
5775 #line 5776 "configure" 5777 #line 5778 "configure"
5776 #include "confdefs.h" 5778 #include "confdefs.h"
5777 #include <Dt/Dt.h> 5779 #include <Dt/Dt.h>
5778 EOF 5780 EOF
5779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5780 { (eval echo configure:5781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5782 { (eval echo configure:5783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5781 ac_err=`grep -v '^ *+' conftest.out` 5783 ac_err=`grep -v '^ *+' conftest.out`
5782 if test -z "$ac_err"; then 5784 if test -z "$ac_err"; then
5783 rm -rf conftest* 5785 rm -rf conftest*
5784 eval "ac_cv_header_$ac_safe=yes" 5786 eval "ac_cv_header_$ac_safe=yes"
5785 else 5787 else
5798 with_cde=no 5800 with_cde=no
5799 fi 5801 fi
5800 } 5802 }
5801 test -z "$with_cde" && { 5803 test -z "$with_cde" && {
5802 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 5804 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
5803 echo "configure:5804: checking for DtDndDragStart in -lDtSvc" >&5 5805 echo "configure:5806: checking for DtDndDragStart in -lDtSvc" >&5
5804 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 5806 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
5805 5807
5806 xe_check_libs=" -lDtSvc " 5808 xe_check_libs=" -lDtSvc "
5807 cat > conftest.$ac_ext <<EOF 5809 cat > conftest.$ac_ext <<EOF
5808 #line 5809 "configure" 5810 #line 5811 "configure"
5809 #include "confdefs.h" 5811 #include "confdefs.h"
5810 /* Override any gcc2 internal prototype to avoid an error. */ 5812 /* Override any gcc2 internal prototype to avoid an error. */
5811 /* We use char because int might match the return type of a gcc2 5813 /* We use char because int might match the return type of a gcc2
5812 builtin and then its argument prototype would still apply. */ 5814 builtin and then its argument prototype would still apply. */
5813 char DtDndDragStart(); 5815 char DtDndDragStart();
5814 5816
5815 int main() { 5817 int main() {
5816 DtDndDragStart() 5818 DtDndDragStart()
5817 ; return 0; } 5819 ; return 0; }
5818 EOF 5820 EOF
5819 if { (eval echo configure:5820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5821 if { (eval echo configure:5822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5820 rm -rf conftest* 5822 rm -rf conftest*
5821 eval "ac_cv_lib_$ac_lib_var=yes" 5823 eval "ac_cv_lib_$ac_lib_var=yes"
5822 else 5824 else
5823 echo "configure: failed program was:" >&5 5825 echo "configure: failed program was:" >&5
5824 cat conftest.$ac_ext >&5 5826 cat conftest.$ac_ext >&5
5861 EOF 5863 EOF
5862 } 5864 }
5863 5865
5864 5866
5865 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6 5867 echo $ac_n "checking for main in -lenergize""... $ac_c" 1>&6
5866 echo "configure:5867: checking for main in -lenergize" >&5 5868 echo "configure:5869: checking for main in -lenergize" >&5
5867 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'` 5869 ac_lib_var=`echo energize'_'main | sed 'y%./+-%__p_%'`
5868 5870
5869 xe_check_libs=" -lenergize " 5871 xe_check_libs=" -lenergize "
5870 cat > conftest.$ac_ext <<EOF 5872 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure" 5873 #line 5874 "configure"
5872 #include "confdefs.h" 5874 #include "confdefs.h"
5873 5875
5874 int main() { 5876 int main() {
5875 main() 5877 main()
5876 ; return 0; } 5878 ; return 0; }
5877 EOF 5879 EOF
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5880 if { (eval echo configure:5881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5879 rm -rf conftest* 5881 rm -rf conftest*
5880 eval "ac_cv_lib_$ac_lib_var=yes" 5882 eval "ac_cv_lib_$ac_lib_var=yes"
5881 else 5883 else
5882 echo "configure: failed program was:" >&5 5884 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5 5885 cat conftest.$ac_ext >&5
5905 5907
5906 5908
5907 if test -z "$energize_version"; then 5909 if test -z "$energize_version"; then
5908 5910
5909 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6 5911 echo $ac_n "checking for main in -lconn""... $ac_c" 1>&6
5910 echo "configure:5911: checking for main in -lconn" >&5 5912 echo "configure:5913: checking for main in -lconn" >&5
5911 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'` 5913 ac_lib_var=`echo conn'_'main | sed 'y%./+-%__p_%'`
5912 5914
5913 xe_check_libs=" -lconn " 5915 xe_check_libs=" -lconn "
5914 cat > conftest.$ac_ext <<EOF 5916 cat > conftest.$ac_ext <<EOF
5915 #line 5916 "configure" 5917 #line 5918 "configure"
5916 #include "confdefs.h" 5918 #include "confdefs.h"
5917 5919
5918 int main() { 5920 int main() {
5919 main() 5921 main()
5920 ; return 0; } 5922 ; return 0; }
5921 EOF 5923 EOF
5922 if { (eval echo configure:5923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 5924 if { (eval echo configure:5925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5923 rm -rf conftest* 5925 rm -rf conftest*
5924 eval "ac_cv_lib_$ac_lib_var=yes" 5926 eval "ac_cv_lib_$ac_lib_var=yes"
5925 else 5927 else
5926 echo "configure: failed program was:" >&5 5928 echo "configure: failed program was:" >&5
5927 cat conftest.$ac_ext >&5 5929 cat conftest.$ac_ext >&5
5950 5952
5951 5953
5952 fi 5954 fi
5953 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'` 5955 ac_safe=`echo "editorconn.h" | sed 'y%./+-%__p_%'`
5954 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6 5956 echo $ac_n "checking for editorconn.h""... $ac_c" 1>&6
5955 echo "configure:5956: checking for editorconn.h" >&5 5957 echo "configure:5958: checking for editorconn.h" >&5
5956 5958
5957 cat > conftest.$ac_ext <<EOF 5959 cat > conftest.$ac_ext <<EOF
5958 #line 5959 "configure" 5960 #line 5961 "configure"
5959 #include "confdefs.h" 5961 #include "confdefs.h"
5960 #include <editorconn.h> 5962 #include <editorconn.h>
5961 EOF 5963 EOF
5962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5963 { (eval echo configure:5964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5965 { (eval echo configure:5966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5964 ac_err=`grep -v '^ *+' conftest.out` 5966 ac_err=`grep -v '^ *+' conftest.out`
5965 if test -z "$ac_err"; then 5967 if test -z "$ac_err"; then
5966 rm -rf conftest* 5968 rm -rf conftest*
5967 eval "ac_cv_header_$ac_safe=yes" 5969 eval "ac_cv_header_$ac_safe=yes"
5968 else 5970 else
6002 6004
6003 6005
6004 if test "$with_x11" = "yes"; then 6006 if test "$with_x11" = "yes"; then
6005 6007
6006 echo "checking for X11 graphics libraries" 1>&6 6008 echo "checking for X11 graphics libraries" 1>&6
6007 echo "configure:6008: checking for X11 graphics libraries" >&5 6009 echo "configure:6010: checking for X11 graphics libraries" >&5
6008 test -z "$with_gif" && with_gif=yes; 6010 test -z "$with_gif" && with_gif=yes;
6009 if test "$with_gif" = "yes"; then 6011 if test "$with_gif" = "yes"; then
6010 { test "$extra_verbose" = "yes" && cat << \EOF 6012 { test "$extra_verbose" = "yes" && cat << \EOF
6011 Defining HAVE_GIF 6013 Defining HAVE_GIF
6012 EOF 6014 EOF
6019 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\"" 6021 echo " xemacs will be linked with \"dgif_lib.o gif_err.o gifalloc.o\""
6020 fi 6022 fi
6021 fi 6023 fi
6022 6024
6023 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 6025 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
6024 echo "configure:6025: checking for Xpm - no older than 3.4f" >&5 6026 echo "configure:6027: checking for Xpm - no older than 3.4f" >&5
6025 xe_check_libs=-lXpm 6027 xe_check_libs=-lXpm
6026 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF 6028 test -z "$with_xpm" && { cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure" 6029 #line 6030 "configure"
6028 #include "confdefs.h" 6030 #include "confdefs.h"
6029 #include <X11/xpm.h> 6031 #include <X11/xpm.h>
6030 int main(int c, char **v) { 6032 int main(int c, char **v) {
6031 return c == 1 ? 0 : 6033 return c == 1 ? 0 :
6032 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 6034 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
6033 XpmIncludeVersion < 30406 ? 2 : 6035 XpmIncludeVersion < 30406 ? 2 :
6034 0 ; 6036 0 ;
6035 } 6037 }
6036 EOF 6038 EOF
6037 if { (eval echo configure:6038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 6039 if { (eval echo configure:6040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
6038 then 6040 then
6039 ./conftest foobar; xpm_status=$?; 6041 ./conftest foobar; xpm_status=$?;
6040 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi; 6042 if test "$xpm_status" = "0"; then with_xpm=yes; else with_xpm=no; fi;
6041 else 6043 else
6042 echo "configure: failed program was:" >&5 6044 echo "configure: failed program was:" >&5
6070 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 6072 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
6071 fi 6073 fi
6072 6074
6073 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 6075 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
6074 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 6076 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
6075 echo "configure:6076: checking for compface.h" >&5 6077 echo "configure:6078: checking for compface.h" >&5
6076 6078
6077 cat > conftest.$ac_ext <<EOF 6079 cat > conftest.$ac_ext <<EOF
6078 #line 6079 "configure" 6080 #line 6081 "configure"
6079 #include "confdefs.h" 6081 #include "confdefs.h"
6080 #include <compface.h> 6082 #include <compface.h>
6081 EOF 6083 EOF
6082 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6083 { (eval echo configure:6084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6085 { (eval echo configure:6086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6084 ac_err=`grep -v '^ *+' conftest.out` 6086 ac_err=`grep -v '^ *+' conftest.out`
6085 if test -z "$ac_err"; then 6087 if test -z "$ac_err"; then
6086 rm -rf conftest* 6088 rm -rf conftest*
6087 eval "ac_cv_header_$ac_safe=yes" 6089 eval "ac_cv_header_$ac_safe=yes"
6088 else 6090 else
6101 with_xface=no 6103 with_xface=no
6102 fi 6104 fi
6103 } 6105 }
6104 test -z "$with_xface" && { 6106 test -z "$with_xface" && {
6105 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 6107 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
6106 echo "configure:6107: checking for UnGenFace in -lcompface" >&5 6108 echo "configure:6109: checking for UnGenFace in -lcompface" >&5
6107 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 6109 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
6108 6110
6109 xe_check_libs=" -lcompface " 6111 xe_check_libs=" -lcompface "
6110 cat > conftest.$ac_ext <<EOF 6112 cat > conftest.$ac_ext <<EOF
6111 #line 6112 "configure" 6113 #line 6114 "configure"
6112 #include "confdefs.h" 6114 #include "confdefs.h"
6113 /* Override any gcc2 internal prototype to avoid an error. */ 6115 /* Override any gcc2 internal prototype to avoid an error. */
6114 /* We use char because int might match the return type of a gcc2 6116 /* We use char because int might match the return type of a gcc2
6115 builtin and then its argument prototype would still apply. */ 6117 builtin and then its argument prototype would still apply. */
6116 char UnGenFace(); 6118 char UnGenFace();
6117 6119
6118 int main() { 6120 int main() {
6119 UnGenFace() 6121 UnGenFace()
6120 ; return 0; } 6122 ; return 0; }
6121 EOF 6123 EOF
6122 if { (eval echo configure:6123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6124 if { (eval echo configure:6125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6123 rm -rf conftest* 6125 rm -rf conftest*
6124 eval "ac_cv_lib_$ac_lib_var=yes" 6126 eval "ac_cv_lib_$ac_lib_var=yes"
6125 else 6127 else
6126 echo "configure: failed program was:" >&5 6128 echo "configure: failed program was:" >&5
6127 cat conftest.$ac_ext >&5 6129 cat conftest.$ac_ext >&5
6153 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi 6155 libs_x="-lcompface $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_x"; fi
6154 fi 6156 fi
6155 6157
6156 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 6158 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
6157 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 6159 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
6158 echo "configure:6159: checking for jpeglib.h" >&5 6160 echo "configure:6161: checking for jpeglib.h" >&5
6159 6161
6160 cat > conftest.$ac_ext <<EOF 6162 cat > conftest.$ac_ext <<EOF
6161 #line 6162 "configure" 6163 #line 6164 "configure"
6162 #include "confdefs.h" 6164 #include "confdefs.h"
6163 #include <jpeglib.h> 6165 #include <jpeglib.h>
6164 EOF 6166 EOF
6165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6166 { (eval echo configure:6167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6168 { (eval echo configure:6169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6167 ac_err=`grep -v '^ *+' conftest.out` 6169 ac_err=`grep -v '^ *+' conftest.out`
6168 if test -z "$ac_err"; then 6170 if test -z "$ac_err"; then
6169 rm -rf conftest* 6171 rm -rf conftest*
6170 eval "ac_cv_header_$ac_safe=yes" 6172 eval "ac_cv_header_$ac_safe=yes"
6171 else 6173 else
6184 with_jpeg=no 6186 with_jpeg=no
6185 fi 6187 fi
6186 } 6188 }
6187 test -z "$with_jpeg" && { 6189 test -z "$with_jpeg" && {
6188 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 6190 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
6189 echo "configure:6190: checking for jpeg_destroy_decompress in -ljpeg" >&5 6191 echo "configure:6192: checking for jpeg_destroy_decompress in -ljpeg" >&5
6190 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 6192 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
6191 6193
6192 xe_check_libs=" -ljpeg " 6194 xe_check_libs=" -ljpeg "
6193 cat > conftest.$ac_ext <<EOF 6195 cat > conftest.$ac_ext <<EOF
6194 #line 6195 "configure" 6196 #line 6197 "configure"
6195 #include "confdefs.h" 6197 #include "confdefs.h"
6196 /* Override any gcc2 internal prototype to avoid an error. */ 6198 /* Override any gcc2 internal prototype to avoid an error. */
6197 /* We use char because int might match the return type of a gcc2 6199 /* We use char because int might match the return type of a gcc2
6198 builtin and then its argument prototype would still apply. */ 6200 builtin and then its argument prototype would still apply. */
6199 char jpeg_destroy_decompress(); 6201 char jpeg_destroy_decompress();
6200 6202
6201 int main() { 6203 int main() {
6202 jpeg_destroy_decompress() 6204 jpeg_destroy_decompress()
6203 ; return 0; } 6205 ; return 0; }
6204 EOF 6206 EOF
6205 if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6206 rm -rf conftest* 6208 rm -rf conftest*
6207 eval "ac_cv_lib_$ac_lib_var=yes" 6209 eval "ac_cv_lib_$ac_lib_var=yes"
6208 else 6210 else
6209 echo "configure: failed program was:" >&5 6211 echo "configure: failed program was:" >&5
6210 cat conftest.$ac_ext >&5 6212 cat conftest.$ac_ext >&5
6236 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 6238 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
6237 fi 6239 fi
6238 6240
6239 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 6241 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
6240 echo $ac_n "checking for png.h""... $ac_c" 1>&6 6242 echo $ac_n "checking for png.h""... $ac_c" 1>&6
6241 echo "configure:6242: checking for png.h" >&5 6243 echo "configure:6244: checking for png.h" >&5
6242 6244
6243 cat > conftest.$ac_ext <<EOF 6245 cat > conftest.$ac_ext <<EOF
6244 #line 6245 "configure" 6246 #line 6247 "configure"
6245 #include "confdefs.h" 6247 #include "confdefs.h"
6246 #include <png.h> 6248 #include <png.h>
6247 EOF 6249 EOF
6248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6249 { (eval echo configure:6250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6251 { (eval echo configure:6252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6250 ac_err=`grep -v '^ *+' conftest.out` 6252 ac_err=`grep -v '^ *+' conftest.out`
6251 if test -z "$ac_err"; then 6253 if test -z "$ac_err"; then
6252 rm -rf conftest* 6254 rm -rf conftest*
6253 eval "ac_cv_header_$ac_safe=yes" 6255 eval "ac_cv_header_$ac_safe=yes"
6254 else 6256 else
6266 echo "$ac_t""no" 1>&6 6268 echo "$ac_t""no" 1>&6
6267 with_png=no 6269 with_png=no
6268 fi 6270 fi
6269 } 6271 }
6270 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 6272 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
6271 echo "configure:6272: checking for pow" >&5 6273 echo "configure:6274: checking for pow" >&5
6272 6274
6273 cat > conftest.$ac_ext <<EOF 6275 cat > conftest.$ac_ext <<EOF
6274 #line 6275 "configure" 6276 #line 6277 "configure"
6275 #include "confdefs.h" 6277 #include "confdefs.h"
6276 /* System header to define __stub macros and hopefully few prototypes, 6278 /* System header to define __stub macros and hopefully few prototypes,
6277 which can conflict with char pow(); below. */ 6279 which can conflict with char pow(); below. */
6278 #include <assert.h> 6280 #include <assert.h>
6279 /* Override any gcc2 internal prototype to avoid an error. */ 6281 /* Override any gcc2 internal prototype to avoid an error. */
6292 pow(); 6294 pow();
6293 #endif 6295 #endif
6294 6296
6295 ; return 0; } 6297 ; return 0; }
6296 EOF 6298 EOF
6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6298 rm -rf conftest* 6300 rm -rf conftest*
6299 eval "ac_cv_func_pow=yes" 6301 eval "ac_cv_func_pow=yes"
6300 else 6302 else
6301 echo "configure: failed program was:" >&5 6303 echo "configure: failed program was:" >&5
6302 cat conftest.$ac_ext >&5 6304 cat conftest.$ac_ext >&5
6317 for extra_libs in "" "-lz" "-lgz"; do 6319 for extra_libs in "" "-lz" "-lgz"; do
6318 6320
6319 xe_msg_checking="for png_read_image in -lpng" 6321 xe_msg_checking="for png_read_image in -lpng"
6320 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 6322 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6321 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6323 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6322 echo "configure:6323: checking "$xe_msg_checking"" >&5 6324 echo "configure:6325: checking "$xe_msg_checking"" >&5
6323 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 6325 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
6324 6326
6325 xe_check_libs=" -lpng $extra_libs" 6327 xe_check_libs=" -lpng $extra_libs"
6326 cat > conftest.$ac_ext <<EOF 6328 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure" 6329 #line 6330 "configure"
6328 #include "confdefs.h" 6330 #include "confdefs.h"
6329 /* Override any gcc2 internal prototype to avoid an error. */ 6331 /* Override any gcc2 internal prototype to avoid an error. */
6330 /* We use char because int might match the return type of a gcc2 6332 /* We use char because int might match the return type of a gcc2
6331 builtin and then its argument prototype would still apply. */ 6333 builtin and then its argument prototype would still apply. */
6332 char png_read_image(); 6334 char png_read_image();
6333 6335
6334 int main() { 6336 int main() {
6335 png_read_image() 6337 png_read_image()
6336 ; return 0; } 6338 ; return 0; }
6337 EOF 6339 EOF
6338 if { (eval echo configure:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6340 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6339 rm -rf conftest* 6341 rm -rf conftest*
6340 eval "ac_cv_lib_$ac_lib_var=yes" 6342 eval "ac_cv_lib_$ac_lib_var=yes"
6341 else 6343 else
6342 echo "configure: failed program was:" >&5 6344 echo "configure: failed program was:" >&5
6343 cat conftest.$ac_ext >&5 6345 cat conftest.$ac_ext >&5
6369 } 6371 }
6370 6372
6371 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi 6373 libs_x="$png_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$png_libs\" to \$libs_x"; fi
6372 fi 6374 fi
6373 6375
6374 if test "$with_tiff" = "yes"; then 6376 if test "$with_tiff" != no; then
6377 for extra_libs in "" "-lz" "-lgz"; do
6378
6379 xe_msg_checking="for TIFFReadScanline in -ltiff"
6380 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
6381 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6382 echo "configure:6383: checking "$xe_msg_checking"" >&5
6383 ac_lib_var=`echo tiff'_'TIFFReadScanline | sed 'y%./+-%__p_%'`
6384
6385 xe_check_libs=" -ltiff $extra_libs"
6386 cat > conftest.$ac_ext <<EOF
6387 #line 6388 "configure"
6388 #include "confdefs.h"
6389 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6392 char TIFFReadScanline();
6393
6394 int main() {
6395 TIFFReadScanline()
6396 ; return 0; }
6397 EOF
6398 if { (eval echo configure:6399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6399 rm -rf conftest*
6400 eval "ac_cv_lib_$ac_lib_var=yes"
6401 else
6402 echo "configure: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6404 rm -rf conftest*
6405 eval "ac_cv_lib_$ac_lib_var=no"
6406 fi
6407 rm -f conftest*
6408 xe_check_libs=""
6409
6410 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
6411 echo "$ac_t""yes" 1>&6
6412 tiff_libs="-ltiff $extra_libs" with_tiff=yes; break
6413 else
6414 echo "$ac_t""no" 1>&6
6415 :
6416 fi
6417
6418
6419 done
6420 fi
6421 test -z "$with_tiff" && with_tiff=no
6422 if test "$with_tiff" = "yes"; then
6375 { test "$extra_verbose" = "yes" && cat << \EOF 6423 { test "$extra_verbose" = "yes" && cat << \EOF
6376 Defining HAVE_TIFF 6424 Defining HAVE_TIFF
6377 EOF 6425 EOF
6378 cat >> confdefs.h <<\EOF 6426 cat >> confdefs.h <<\EOF
6379 #define HAVE_TIFF 1 6427 #define HAVE_TIFF 1
6383 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi 6431 libs_x="-ltiff $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ltiff\" to \$libs_x"; fi
6384 fi 6432 fi
6385 6433
6386 6434
6387 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6 6435 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw""... $ac_c" 1>&6
6388 echo "configure:6389: checking for XawScrollbarSetThumb in -lXaw" >&5 6436 echo "configure:6437: checking for XawScrollbarSetThumb in -lXaw" >&5
6389 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 6437 ac_lib_var=`echo Xaw'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
6390 6438
6391 xe_check_libs=" -lXaw " 6439 xe_check_libs=" -lXaw "
6392 cat > conftest.$ac_ext <<EOF 6440 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure" 6441 #line 6442 "configure"
6394 #include "confdefs.h" 6442 #include "confdefs.h"
6395 /* Override any gcc2 internal prototype to avoid an error. */ 6443 /* Override any gcc2 internal prototype to avoid an error. */
6396 /* We use char because int might match the return type of a gcc2 6444 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */ 6445 builtin and then its argument prototype would still apply. */
6398 char XawScrollbarSetThumb(); 6446 char XawScrollbarSetThumb();
6399 6447
6400 int main() { 6448 int main() {
6401 XawScrollbarSetThumb() 6449 XawScrollbarSetThumb()
6402 ; return 0; } 6450 ; return 0; }
6403 EOF 6451 EOF
6404 if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6452 if { (eval echo configure:6453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6405 rm -rf conftest* 6453 rm -rf conftest*
6406 eval "ac_cv_lib_$ac_lib_var=yes" 6454 eval "ac_cv_lib_$ac_lib_var=yes"
6407 else 6455 else
6408 echo "configure: failed program was:" >&5 6456 echo "configure: failed program was:" >&5
6409 cat conftest.$ac_ext >&5 6457 cat conftest.$ac_ext >&5
6423 6471
6424 6472
6425 if test "$have_xaw" = "yes"; then 6473 if test "$have_xaw" = "yes"; then
6426 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'` 6474 ac_safe=`echo "X11/Xaw/Reports.h" | sed 'y%./+-%__p_%'`
6427 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6 6475 echo $ac_n "checking for X11/Xaw/Reports.h""... $ac_c" 1>&6
6428 echo "configure:6429: checking for X11/Xaw/Reports.h" >&5 6476 echo "configure:6477: checking for X11/Xaw/Reports.h" >&5
6429 6477
6430 cat > conftest.$ac_ext <<EOF 6478 cat > conftest.$ac_ext <<EOF
6431 #line 6432 "configure" 6479 #line 6480 "configure"
6432 #include "confdefs.h" 6480 #include "confdefs.h"
6433 #include <X11/Xaw/Reports.h> 6481 #include <X11/Xaw/Reports.h>
6434 EOF 6482 EOF
6435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6483 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; } 6484 { (eval echo configure:6485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6437 ac_err=`grep -v '^ *+' conftest.out` 6485 ac_err=`grep -v '^ *+' conftest.out`
6438 if test -z "$ac_err"; then 6486 if test -z "$ac_err"; then
6439 rm -rf conftest* 6487 rm -rf conftest*
6440 eval "ac_cv_header_$ac_safe=yes" 6488 eval "ac_cv_header_$ac_safe=yes"
6441 else 6489 else
6457 6505
6458 fi 6506 fi
6459 6507
6460 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6508 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6461 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6509 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6462 echo "configure:6463: checking for Xm/Xm.h" >&5 6510 echo "configure:6511: checking for Xm/Xm.h" >&5
6463 6511
6464 cat > conftest.$ac_ext <<EOF 6512 cat > conftest.$ac_ext <<EOF
6465 #line 6466 "configure" 6513 #line 6514 "configure"
6466 #include "confdefs.h" 6514 #include "confdefs.h"
6467 #include <Xm/Xm.h> 6515 #include <Xm/Xm.h>
6468 EOF 6516 EOF
6469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6470 { (eval echo configure:6471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6518 { (eval echo configure:6519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6471 ac_err=`grep -v '^ *+' conftest.out` 6519 ac_err=`grep -v '^ *+' conftest.out`
6472 if test -z "$ac_err"; then 6520 if test -z "$ac_err"; then
6473 rm -rf conftest* 6521 rm -rf conftest*
6474 eval "ac_cv_header_$ac_safe=yes" 6522 eval "ac_cv_header_$ac_safe=yes"
6475 else 6523 else
6482 rm -f conftest* 6530 rm -f conftest*
6483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6531 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6484 echo "$ac_t""yes" 1>&6 6532 echo "$ac_t""yes" 1>&6
6485 6533
6486 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6534 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6487 echo "configure:6488: checking for XmStringFree in -lXm" >&5 6535 echo "configure:6536: checking for XmStringFree in -lXm" >&5
6488 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6536 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6489 6537
6490 xe_check_libs=" -lXm " 6538 xe_check_libs=" -lXm "
6491 cat > conftest.$ac_ext <<EOF 6539 cat > conftest.$ac_ext <<EOF
6492 #line 6493 "configure" 6540 #line 6541 "configure"
6493 #include "confdefs.h" 6541 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */ 6542 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2 6543 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */ 6544 builtin and then its argument prototype would still apply. */
6497 char XmStringFree(); 6545 char XmStringFree();
6498 6546
6499 int main() { 6547 int main() {
6500 XmStringFree() 6548 XmStringFree()
6501 ; return 0; } 6549 ; return 0; }
6502 EOF 6550 EOF
6503 if { (eval echo configure:6504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6551 if { (eval echo configure:6552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6504 rm -rf conftest* 6552 rm -rf conftest*
6505 eval "ac_cv_lib_$ac_lib_var=yes" 6553 eval "ac_cv_lib_$ac_lib_var=yes"
6506 else 6554 else
6507 echo "configure: failed program was:" >&5 6555 echo "configure: failed program was:" >&5
6508 cat conftest.$ac_ext >&5 6556 cat conftest.$ac_ext >&5
6747 6795
6748 test -z "$with_mule" && with_mule=no 6796 test -z "$with_mule" && with_mule=no
6749 6797
6750 if test "$with_mule" = "yes" ; then 6798 if test "$with_mule" = "yes" ; then
6751 echo "checking for Mule-related features" 1>&6 6799 echo "checking for Mule-related features" 1>&6
6752 echo "configure:6753: checking for Mule-related features" >&5 6800 echo "configure:6801: checking for Mule-related features" >&5
6753 { test "$extra_verbose" = "yes" && cat << \EOF 6801 { test "$extra_verbose" = "yes" && cat << \EOF
6754 Defining MULE 6802 Defining MULE
6755 EOF 6803 EOF
6756 cat >> confdefs.h <<\EOF 6804 cat >> confdefs.h <<\EOF
6757 #define MULE 1 6805 #define MULE 1
6764 6812
6765 for ac_hdr in libintl.h 6813 for ac_hdr in libintl.h
6766 do 6814 do
6767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6769 echo "configure:6770: checking for $ac_hdr" >&5 6817 echo "configure:6818: checking for $ac_hdr" >&5
6770 6818
6771 cat > conftest.$ac_ext <<EOF 6819 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure" 6820 #line 6821 "configure"
6773 #include "confdefs.h" 6821 #include "confdefs.h"
6774 #include <$ac_hdr> 6822 #include <$ac_hdr>
6775 EOF 6823 EOF
6776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6777 { (eval echo configure:6778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6825 { (eval echo configure:6826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6778 ac_err=`grep -v '^ *+' conftest.out` 6826 ac_err=`grep -v '^ *+' conftest.out`
6779 if test -z "$ac_err"; then 6827 if test -z "$ac_err"; then
6780 rm -rf conftest* 6828 rm -rf conftest*
6781 eval "ac_cv_header_$ac_safe=yes" 6829 eval "ac_cv_header_$ac_safe=yes"
6782 else 6830 else
6803 fi 6851 fi
6804 done 6852 done
6805 6853
6806 6854
6807 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 6855 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
6808 echo "configure:6809: checking for strerror in -lintl" >&5 6856 echo "configure:6857: checking for strerror in -lintl" >&5
6809 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 6857 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
6810 6858
6811 xe_check_libs=" -lintl " 6859 xe_check_libs=" -lintl "
6812 cat > conftest.$ac_ext <<EOF 6860 cat > conftest.$ac_ext <<EOF
6813 #line 6814 "configure" 6861 #line 6862 "configure"
6814 #include "confdefs.h" 6862 #include "confdefs.h"
6815 /* Override any gcc2 internal prototype to avoid an error. */ 6863 /* Override any gcc2 internal prototype to avoid an error. */
6816 /* We use char because int might match the return type of a gcc2 6864 /* We use char because int might match the return type of a gcc2
6817 builtin and then its argument prototype would still apply. */ 6865 builtin and then its argument prototype would still apply. */
6818 char strerror(); 6866 char strerror();
6819 6867
6820 int main() { 6868 int main() {
6821 strerror() 6869 strerror()
6822 ; return 0; } 6870 ; return 0; }
6823 EOF 6871 EOF
6824 if { (eval echo configure:6825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6872 if { (eval echo configure:6873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6825 rm -rf conftest* 6873 rm -rf conftest*
6826 eval "ac_cv_lib_$ac_lib_var=yes" 6874 eval "ac_cv_lib_$ac_lib_var=yes"
6827 else 6875 else
6828 echo "configure: failed program was:" >&5 6876 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5 6877 cat conftest.$ac_ext >&5
6852 fi 6900 fi
6853 6901
6854 6902
6855 6903
6856 echo "checking for Mule input methods" 1>&6 6904 echo "checking for Mule input methods" 1>&6
6857 echo "configure:6858: checking for Mule input methods" >&5 6905 echo "configure:6906: checking for Mule input methods" >&5
6858 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no 6906 test -z "$with_xim" -a "$opsys" != "sol2" && with_xim=no
6859 case "$with_xim" in "" | "yes" ) 6907 case "$with_xim" in "" | "yes" )
6860 echo "checking for XIM" 1>&6 6908 echo "checking for XIM" 1>&6
6861 echo "configure:6862: checking for XIM" >&5 6909 echo "configure:6910: checking for XIM" >&5
6862 6910
6863 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 6911 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
6864 echo "configure:6865: checking for XmImMbLookupString in -lXm" >&5 6912 echo "configure:6913: checking for XmImMbLookupString in -lXm" >&5
6865 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 6913 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
6866 6914
6867 xe_check_libs=" -lXm " 6915 xe_check_libs=" -lXm "
6868 cat > conftest.$ac_ext <<EOF 6916 cat > conftest.$ac_ext <<EOF
6869 #line 6870 "configure" 6917 #line 6918 "configure"
6870 #include "confdefs.h" 6918 #include "confdefs.h"
6871 /* Override any gcc2 internal prototype to avoid an error. */ 6919 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2 6920 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */ 6921 builtin and then its argument prototype would still apply. */
6874 char XmImMbLookupString(); 6922 char XmImMbLookupString();
6875 6923
6876 int main() { 6924 int main() {
6877 XmImMbLookupString() 6925 XmImMbLookupString()
6878 ; return 0; } 6926 ; return 0; }
6879 EOF 6927 EOF
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 6928 if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6881 rm -rf conftest* 6929 rm -rf conftest*
6882 eval "ac_cv_lib_$ac_lib_var=yes" 6930 eval "ac_cv_lib_$ac_lib_var=yes"
6883 else 6931 else
6884 echo "configure: failed program was:" >&5 6932 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5 6933 cat conftest.$ac_ext >&5
6938 if test "$with_xfs" = "yes"; then 6986 if test "$with_xfs" = "yes"; then
6939 with_xfs=no 6987 with_xfs=no
6940 fi 6988 fi
6941 else case "$with_xfs" in "yes" ) 6989 else case "$with_xfs" in "yes" )
6942 echo "checking for XFontSet" 1>&6 6990 echo "checking for XFontSet" 1>&6
6943 echo "configure:6944: checking for XFontSet" >&5 6991 echo "configure:6992: checking for XFontSet" >&5
6944 6992
6945 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 6993 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
6946 echo "configure:6947: checking for XmbDrawString in -lX11" >&5 6994 echo "configure:6995: checking for XmbDrawString in -lX11" >&5
6947 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 6995 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
6948 6996
6949 xe_check_libs=" -lX11 " 6997 xe_check_libs=" -lX11 "
6950 cat > conftest.$ac_ext <<EOF 6998 cat > conftest.$ac_ext <<EOF
6951 #line 6952 "configure" 6999 #line 7000 "configure"
6952 #include "confdefs.h" 7000 #include "confdefs.h"
6953 /* Override any gcc2 internal prototype to avoid an error. */ 7001 /* Override any gcc2 internal prototype to avoid an error. */
6954 /* We use char because int might match the return type of a gcc2 7002 /* We use char because int might match the return type of a gcc2
6955 builtin and then its argument prototype would still apply. */ 7003 builtin and then its argument prototype would still apply. */
6956 char XmbDrawString(); 7004 char XmbDrawString();
6957 7005
6958 int main() { 7006 int main() {
6959 XmbDrawString() 7007 XmbDrawString()
6960 ; return 0; } 7008 ; return 0; }
6961 EOF 7009 EOF
6962 if { (eval echo configure:6963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
6963 rm -rf conftest* 7011 rm -rf conftest*
6964 eval "ac_cv_lib_$ac_lib_var=yes" 7012 eval "ac_cv_lib_$ac_lib_var=yes"
6965 else 7013 else
6966 echo "configure: failed program was:" >&5 7014 echo "configure: failed program was:" >&5
6967 cat conftest.$ac_ext >&5 7015 cat conftest.$ac_ext >&5
6996 fi 7044 fi
6997 fi 7045 fi
6998 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 7046 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
6999 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 7047 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
7000 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 7048 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
7001 echo "configure:7002: checking for wnn/jllib.h" >&5 7049 echo "configure:7050: checking for wnn/jllib.h" >&5
7002 7050
7003 cat > conftest.$ac_ext <<EOF 7051 cat > conftest.$ac_ext <<EOF
7004 #line 7005 "configure" 7052 #line 7053 "configure"
7005 #include "confdefs.h" 7053 #include "confdefs.h"
7006 #include <wnn/jllib.h> 7054 #include <wnn/jllib.h>
7007 EOF 7055 EOF
7008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7009 { (eval echo configure:7010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7057 { (eval echo configure:7058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7010 ac_err=`grep -v '^ *+' conftest.out` 7058 ac_err=`grep -v '^ *+' conftest.out`
7011 if test -z "$ac_err"; then 7059 if test -z "$ac_err"; then
7012 rm -rf conftest* 7060 rm -rf conftest*
7013 eval "ac_cv_header_$ac_safe=yes" 7061 eval "ac_cv_header_$ac_safe=yes"
7014 else 7062 else
7029 } 7077 }
7030 if test "$with_wnn" != "no"; then 7078 if test "$with_wnn" != "no"; then
7031 for ac_func in crypt 7079 for ac_func in crypt
7032 do 7080 do
7033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7081 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7034 echo "configure:7035: checking for $ac_func" >&5 7082 echo "configure:7083: checking for $ac_func" >&5
7035 7083
7036 cat > conftest.$ac_ext <<EOF 7084 cat > conftest.$ac_ext <<EOF
7037 #line 7038 "configure" 7085 #line 7086 "configure"
7038 #include "confdefs.h" 7086 #include "confdefs.h"
7039 /* System header to define __stub macros and hopefully few prototypes, 7087 /* System header to define __stub macros and hopefully few prototypes,
7040 which can conflict with char $ac_func(); below. */ 7088 which can conflict with char $ac_func(); below. */
7041 #include <assert.h> 7089 #include <assert.h>
7042 /* Override any gcc2 internal prototype to avoid an error. */ 7090 /* Override any gcc2 internal prototype to avoid an error. */
7055 $ac_func(); 7103 $ac_func();
7056 #endif 7104 #endif
7057 7105
7058 ; return 0; } 7106 ; return 0; }
7059 EOF 7107 EOF
7060 if { (eval echo configure:7061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7108 if { (eval echo configure:7109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7061 rm -rf conftest* 7109 rm -rf conftest*
7062 eval "ac_cv_func_$ac_func=yes" 7110 eval "ac_cv_func_$ac_func=yes"
7063 else 7111 else
7064 echo "configure: failed program was:" >&5 7112 echo "configure: failed program was:" >&5
7065 cat conftest.$ac_ext >&5 7113 cat conftest.$ac_ext >&5
7084 fi 7132 fi
7085 done 7133 done
7086 7134
7087 test "$ac_cv_func_crypt" != "yes" && { 7135 test "$ac_cv_func_crypt" != "yes" && {
7088 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 7136 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
7089 echo "configure:7090: checking for crypt in -lcrypt" >&5 7137 echo "configure:7138: checking for crypt in -lcrypt" >&5
7090 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 7138 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
7091 7139
7092 xe_check_libs=" -lcrypt " 7140 xe_check_libs=" -lcrypt "
7093 cat > conftest.$ac_ext <<EOF 7141 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure" 7142 #line 7143 "configure"
7095 #include "confdefs.h" 7143 #include "confdefs.h"
7096 /* Override any gcc2 internal prototype to avoid an error. */ 7144 /* Override any gcc2 internal prototype to avoid an error. */
7097 /* We use char because int might match the return type of a gcc2 7145 /* We use char because int might match the return type of a gcc2
7098 builtin and then its argument prototype would still apply. */ 7146 builtin and then its argument prototype would still apply. */
7099 char crypt(); 7147 char crypt();
7100 7148
7101 int main() { 7149 int main() {
7102 crypt() 7150 crypt()
7103 ; return 0; } 7151 ; return 0; }
7104 EOF 7152 EOF
7105 if { (eval echo configure:7106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7153 if { (eval echo configure:7154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7106 rm -rf conftest* 7154 rm -rf conftest*
7107 eval "ac_cv_lib_$ac_lib_var=yes" 7155 eval "ac_cv_lib_$ac_lib_var=yes"
7108 else 7156 else
7109 echo "configure: failed program was:" >&5 7157 echo "configure: failed program was:" >&5
7110 cat conftest.$ac_ext >&5 7158 cat conftest.$ac_ext >&5
7134 7182
7135 } 7183 }
7136 fi 7184 fi
7137 test -z "$with_wnn" && { 7185 test -z "$with_wnn" && {
7138 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 7186 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
7139 echo "configure:7140: checking for jl_dic_list_e in -lwnn" >&5 7187 echo "configure:7188: checking for jl_dic_list_e in -lwnn" >&5
7140 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 7188 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
7141 7189
7142 xe_check_libs=" -lwnn " 7190 xe_check_libs=" -lwnn "
7143 cat > conftest.$ac_ext <<EOF 7191 cat > conftest.$ac_ext <<EOF
7144 #line 7145 "configure" 7192 #line 7193 "configure"
7145 #include "confdefs.h" 7193 #include "confdefs.h"
7146 /* Override any gcc2 internal prototype to avoid an error. */ 7194 /* Override any gcc2 internal prototype to avoid an error. */
7147 /* We use char because int might match the return type of a gcc2 7195 /* We use char because int might match the return type of a gcc2
7148 builtin and then its argument prototype would still apply. */ 7196 builtin and then its argument prototype would still apply. */
7149 char jl_dic_list_e(); 7197 char jl_dic_list_e();
7150 7198
7151 int main() { 7199 int main() {
7152 jl_dic_list_e() 7200 jl_dic_list_e()
7153 ; return 0; } 7201 ; return 0; }
7154 EOF 7202 EOF
7155 if { (eval echo configure:7156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7203 if { (eval echo configure:7204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7156 rm -rf conftest* 7204 rm -rf conftest*
7157 eval "ac_cv_lib_$ac_lib_var=yes" 7205 eval "ac_cv_lib_$ac_lib_var=yes"
7158 else 7206 else
7159 echo "configure: failed program was:" >&5 7207 echo "configure: failed program was:" >&5
7160 cat conftest.$ac_ext >&5 7208 cat conftest.$ac_ext >&5
7187 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then 7235 extra_objs="$extra_objs mule-wnnfns.o" && if test "$extra_verbose" = "yes"; then
7188 echo " xemacs will be linked with \"mule-wnnfns.o\"" 7236 echo " xemacs will be linked with \"mule-wnnfns.o\""
7189 fi 7237 fi
7190 7238
7191 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6 7239 echo $ac_n "checking for jl_fi_dic_list in -lwnn""... $ac_c" 1>&6
7192 echo "configure:7193: checking for jl_fi_dic_list in -lwnn" >&5 7240 echo "configure:7241: checking for jl_fi_dic_list in -lwnn" >&5
7193 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 7241 ac_lib_var=`echo wnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
7194 7242
7195 xe_check_libs=" -lwnn " 7243 xe_check_libs=" -lwnn "
7196 cat > conftest.$ac_ext <<EOF 7244 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure" 7245 #line 7246 "configure"
7198 #include "confdefs.h" 7246 #include "confdefs.h"
7199 /* Override any gcc2 internal prototype to avoid an error. */ 7247 /* Override any gcc2 internal prototype to avoid an error. */
7200 /* We use char because int might match the return type of a gcc2 7248 /* We use char because int might match the return type of a gcc2
7201 builtin and then its argument prototype would still apply. */ 7249 builtin and then its argument prototype would still apply. */
7202 char jl_fi_dic_list(); 7250 char jl_fi_dic_list();
7203 7251
7204 int main() { 7252 int main() {
7205 jl_fi_dic_list() 7253 jl_fi_dic_list()
7206 ; return 0; } 7254 ; return 0; }
7207 EOF 7255 EOF
7208 if { (eval echo configure:7209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7256 if { (eval echo configure:7257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7209 rm -rf conftest* 7257 rm -rf conftest*
7210 eval "ac_cv_lib_$ac_lib_var=yes" 7258 eval "ac_cv_lib_$ac_lib_var=yes"
7211 else 7259 else
7212 echo "configure: failed program was:" >&5 7260 echo "configure: failed program was:" >&5
7213 cat conftest.$ac_ext >&5 7261 cat conftest.$ac_ext >&5
7235 7283
7236 fi 7284 fi
7237 7285
7238 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 7286 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
7239 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 7287 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
7240 echo "configure:7241: checking for canna/RK.h" >&5 7288 echo "configure:7289: checking for canna/RK.h" >&5
7241 7289
7242 cat > conftest.$ac_ext <<EOF 7290 cat > conftest.$ac_ext <<EOF
7243 #line 7244 "configure" 7291 #line 7292 "configure"
7244 #include "confdefs.h" 7292 #include "confdefs.h"
7245 #include <canna/RK.h> 7293 #include <canna/RK.h>
7246 EOF 7294 EOF
7247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7248 { (eval echo configure:7249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7296 { (eval echo configure:7297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7249 ac_err=`grep -v '^ *+' conftest.out` 7297 ac_err=`grep -v '^ *+' conftest.out`
7250 if test -z "$ac_err"; then 7298 if test -z "$ac_err"; then
7251 rm -rf conftest* 7299 rm -rf conftest*
7252 eval "ac_cv_header_$ac_safe=yes" 7300 eval "ac_cv_header_$ac_safe=yes"
7253 else 7301 else
7266 with_canna=no 7314 with_canna=no
7267 fi 7315 fi
7268 } 7316 }
7269 test -z "$with_canna" && { 7317 test -z "$with_canna" && {
7270 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 7318 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
7271 echo "configure:7272: checking for RkBgnBun in -lRKC" >&5 7319 echo "configure:7320: checking for RkBgnBun in -lRKC" >&5
7272 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 7320 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
7273 7321
7274 xe_check_libs=" -lRKC " 7322 xe_check_libs=" -lRKC "
7275 cat > conftest.$ac_ext <<EOF 7323 cat > conftest.$ac_ext <<EOF
7276 #line 7277 "configure" 7324 #line 7325 "configure"
7277 #include "confdefs.h" 7325 #include "confdefs.h"
7278 /* Override any gcc2 internal prototype to avoid an error. */ 7326 /* Override any gcc2 internal prototype to avoid an error. */
7279 /* We use char because int might match the return type of a gcc2 7327 /* We use char because int might match the return type of a gcc2
7280 builtin and then its argument prototype would still apply. */ 7328 builtin and then its argument prototype would still apply. */
7281 char RkBgnBun(); 7329 char RkBgnBun();
7282 7330
7283 int main() { 7331 int main() {
7284 RkBgnBun() 7332 RkBgnBun()
7285 ; return 0; } 7333 ; return 0; }
7286 EOF 7334 EOF
7287 if { (eval echo configure:7288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7335 if { (eval echo configure:7336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7288 rm -rf conftest* 7336 rm -rf conftest*
7289 eval "ac_cv_lib_$ac_lib_var=yes" 7337 eval "ac_cv_lib_$ac_lib_var=yes"
7290 else 7338 else
7291 echo "configure: failed program was:" >&5 7339 echo "configure: failed program was:" >&5
7292 cat conftest.$ac_ext >&5 7340 cat conftest.$ac_ext >&5
7305 fi 7353 fi
7306 7354
7307 } 7355 }
7308 test -z "$with_canna" && { 7356 test -z "$with_canna" && {
7309 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 7357 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
7310 echo "configure:7311: checking for jrKanjiControl in -lcanna" >&5 7358 echo "configure:7359: checking for jrKanjiControl in -lcanna" >&5
7311 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 7359 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
7312 7360
7313 xe_check_libs=" -lcanna " 7361 xe_check_libs=" -lcanna "
7314 cat > conftest.$ac_ext <<EOF 7362 cat > conftest.$ac_ext <<EOF
7315 #line 7316 "configure" 7363 #line 7364 "configure"
7316 #include "confdefs.h" 7364 #include "confdefs.h"
7317 /* Override any gcc2 internal prototype to avoid an error. */ 7365 /* Override any gcc2 internal prototype to avoid an error. */
7318 /* We use char because int might match the return type of a gcc2 7366 /* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */ 7367 builtin and then its argument prototype would still apply. */
7320 char jrKanjiControl(); 7368 char jrKanjiControl();
7321 7369
7322 int main() { 7370 int main() {
7323 jrKanjiControl() 7371 jrKanjiControl()
7324 ; return 0; } 7372 ; return 0; }
7325 EOF 7373 EOF
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7374 if { (eval echo configure:7375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7327 rm -rf conftest* 7375 rm -rf conftest*
7328 eval "ac_cv_lib_$ac_lib_var=yes" 7376 eval "ac_cv_lib_$ac_lib_var=yes"
7329 else 7377 else
7330 echo "configure: failed program was:" >&5 7378 echo "configure: failed program was:" >&5
7331 cat conftest.$ac_ext >&5 7379 cat conftest.$ac_ext >&5
7421 fi 7469 fi
7422 7470
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 7471 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
7424 do 7472 do
7425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7473 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7426 echo "configure:7427: checking for $ac_func" >&5 7474 echo "configure:7475: checking for $ac_func" >&5
7427 7475
7428 cat > conftest.$ac_ext <<EOF 7476 cat > conftest.$ac_ext <<EOF
7429 #line 7430 "configure" 7477 #line 7478 "configure"
7430 #include "confdefs.h" 7478 #include "confdefs.h"
7431 /* System header to define __stub macros and hopefully few prototypes, 7479 /* System header to define __stub macros and hopefully few prototypes,
7432 which can conflict with char $ac_func(); below. */ 7480 which can conflict with char $ac_func(); below. */
7433 #include <assert.h> 7481 #include <assert.h>
7434 /* Override any gcc2 internal prototype to avoid an error. */ 7482 /* Override any gcc2 internal prototype to avoid an error. */
7447 $ac_func(); 7495 $ac_func();
7448 #endif 7496 #endif
7449 7497
7450 ; return 0; } 7498 ; return 0; }
7451 EOF 7499 EOF
7452 if { (eval echo configure:7453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7500 if { (eval echo configure:7501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7453 rm -rf conftest* 7501 rm -rf conftest*
7454 eval "ac_cv_func_$ac_func=yes" 7502 eval "ac_cv_func_$ac_func=yes"
7455 else 7503 else
7456 echo "configure: failed program was:" >&5 7504 echo "configure: failed program was:" >&5
7457 cat conftest.$ac_ext >&5 7505 cat conftest.$ac_ext >&5
7484 fi ;; 7532 fi ;;
7485 * ) 7533 * )
7486 for ac_func in realpath 7534 for ac_func in realpath
7487 do 7535 do
7488 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7489 echo "configure:7490: checking for $ac_func" >&5 7537 echo "configure:7538: checking for $ac_func" >&5
7490 7538
7491 cat > conftest.$ac_ext <<EOF 7539 cat > conftest.$ac_ext <<EOF
7492 #line 7493 "configure" 7540 #line 7541 "configure"
7493 #include "confdefs.h" 7541 #include "confdefs.h"
7494 /* System header to define __stub macros and hopefully few prototypes, 7542 /* System header to define __stub macros and hopefully few prototypes,
7495 which can conflict with char $ac_func(); below. */ 7543 which can conflict with char $ac_func(); below. */
7496 #include <assert.h> 7544 #include <assert.h>
7497 /* Override any gcc2 internal prototype to avoid an error. */ 7545 /* Override any gcc2 internal prototype to avoid an error. */
7510 $ac_func(); 7558 $ac_func();
7511 #endif 7559 #endif
7512 7560
7513 ; return 0; } 7561 ; return 0; }
7514 EOF 7562 EOF
7515 if { (eval echo configure:7516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7563 if { (eval echo configure:7564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7516 rm -rf conftest* 7564 rm -rf conftest*
7517 eval "ac_cv_func_$ac_func=yes" 7565 eval "ac_cv_func_$ac_func=yes"
7518 else 7566 else
7519 echo "configure: failed program was:" >&5 7567 echo "configure: failed program was:" >&5
7520 cat conftest.$ac_ext >&5 7568 cat conftest.$ac_ext >&5
7543 echo " xemacs will be linked with \"realpath.o\"" 7591 echo " xemacs will be linked with \"realpath.o\""
7544 fi ;; 7592 fi ;;
7545 esac 7593 esac
7546 7594
7547 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 7595 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
7548 echo "configure:7549: checking whether netdb declares h_errno" >&5 7596 echo "configure:7597: checking whether netdb declares h_errno" >&5
7549 cat > conftest.$ac_ext <<EOF 7597 cat > conftest.$ac_ext <<EOF
7550 #line 7551 "configure" 7598 #line 7599 "configure"
7551 #include "confdefs.h" 7599 #include "confdefs.h"
7552 #include <netdb.h> 7600 #include <netdb.h>
7553 int main() { 7601 int main() {
7554 return h_errno; 7602 return h_errno;
7555 ; return 0; } 7603 ; return 0; }
7556 EOF 7604 EOF
7557 if { (eval echo configure:7558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7605 if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7558 rm -rf conftest* 7606 rm -rf conftest*
7559 echo "$ac_t""yes" 1>&6 7607 echo "$ac_t""yes" 1>&6
7560 { test "$extra_verbose" = "yes" && cat << \EOF 7608 { test "$extra_verbose" = "yes" && cat << \EOF
7561 Defining HAVE_H_ERRNO 7609 Defining HAVE_H_ERRNO
7562 EOF 7610 EOF
7572 echo "$ac_t""no" 1>&6 7620 echo "$ac_t""no" 1>&6
7573 fi 7621 fi
7574 rm -f conftest* 7622 rm -f conftest*
7575 7623
7576 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 7624 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
7577 echo "configure:7578: checking for sigsetjmp" >&5 7625 echo "configure:7626: checking for sigsetjmp" >&5
7578 cat > conftest.$ac_ext <<EOF 7626 cat > conftest.$ac_ext <<EOF
7579 #line 7580 "configure" 7627 #line 7628 "configure"
7580 #include "confdefs.h" 7628 #include "confdefs.h"
7581 #include <setjmp.h> 7629 #include <setjmp.h>
7582 int main() { 7630 int main() {
7583 sigjmp_buf bar; sigsetjmp (bar, 0); 7631 sigjmp_buf bar; sigsetjmp (bar, 0);
7584 ; return 0; } 7632 ; return 0; }
7585 EOF 7633 EOF
7586 if { (eval echo configure:7587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7634 if { (eval echo configure:7635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7587 rm -rf conftest* 7635 rm -rf conftest*
7588 echo "$ac_t""yes" 1>&6 7636 echo "$ac_t""yes" 1>&6
7589 { test "$extra_verbose" = "yes" && cat << \EOF 7637 { test "$extra_verbose" = "yes" && cat << \EOF
7590 Defining HAVE_SIGSETJMP 7638 Defining HAVE_SIGSETJMP
7591 EOF 7639 EOF
7601 echo "$ac_t""no" 1>&6 7649 echo "$ac_t""no" 1>&6
7602 fi 7650 fi
7603 rm -f conftest* 7651 rm -f conftest*
7604 7652
7605 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 7653 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
7606 echo "configure:7607: checking whether localtime caches TZ" >&5 7654 echo "configure:7655: checking whether localtime caches TZ" >&5
7607 7655
7608 if test "$ac_cv_func_tzset" = "yes"; then 7656 if test "$ac_cv_func_tzset" = "yes"; then
7609 cat > conftest.$ac_ext <<EOF 7657 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure" 7658 #line 7659 "configure"
7611 #include "confdefs.h" 7659 #include "confdefs.h"
7612 #include <time.h> 7660 #include <time.h>
7613 #if STDC_HEADERS 7661 #if STDC_HEADERS
7614 # include <stdlib.h> 7662 # include <stdlib.h>
7615 #endif 7663 #endif
7640 if (localtime (&now)->tm_hour != hour_unset) 7688 if (localtime (&now)->tm_hour != hour_unset)
7641 exit (1); 7689 exit (1);
7642 exit (0); 7690 exit (0);
7643 } 7691 }
7644 EOF 7692 EOF
7645 if { (eval echo configure:7646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 7693 if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7646 then 7694 then
7647 emacs_cv_localtime_cache=no 7695 emacs_cv_localtime_cache=no
7648 else 7696 else
7649 echo "configure: failed program was:" >&5 7697 echo "configure: failed program was:" >&5
7650 cat conftest.$ac_ext >&5 7698 cat conftest.$ac_ext >&5
7669 7717
7670 fi 7718 fi
7671 7719
7672 if test "$HAVE_TIMEVAL" = "yes"; then 7720 if test "$HAVE_TIMEVAL" = "yes"; then
7673 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6 7721 echo $ac_n "checking whether gettimeofday cannot accept two arguments""... $ac_c" 1>&6
7674 echo "configure:7675: checking whether gettimeofday cannot accept two arguments" >&5 7722 echo "configure:7723: checking whether gettimeofday cannot accept two arguments" >&5
7675 cat > conftest.$ac_ext <<EOF 7723 cat > conftest.$ac_ext <<EOF
7676 #line 7677 "configure" 7724 #line 7725 "configure"
7677 #include "confdefs.h" 7725 #include "confdefs.h"
7678 7726
7679 #ifdef TIME_WITH_SYS_TIME 7727 #ifdef TIME_WITH_SYS_TIME
7680 #include <sys/time.h> 7728 #include <sys/time.h>
7681 #include <time.h> 7729 #include <time.h>
7693 struct timezone dummy; 7741 struct timezone dummy;
7694 gettimeofday (&time, &dummy); 7742 gettimeofday (&time, &dummy);
7695 7743
7696 ; return 0; } 7744 ; return 0; }
7697 EOF 7745 EOF
7698 if { (eval echo configure:7699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7746 if { (eval echo configure:7747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7699 rm -rf conftest* 7747 rm -rf conftest*
7700 echo "$ac_t""no" 1>&6 7748 echo "$ac_t""no" 1>&6
7701 else 7749 else
7702 echo "configure: failed program was:" >&5 7750 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5 7751 cat conftest.$ac_ext >&5
7715 rm -f conftest* 7763 rm -f conftest*
7716 fi 7764 fi
7717 7765
7718 7766
7719 echo $ac_n "checking for inline""... $ac_c" 1>&6 7767 echo $ac_n "checking for inline""... $ac_c" 1>&6
7720 echo "configure:7721: checking for inline" >&5 7768 echo "configure:7769: checking for inline" >&5
7721 7769
7722 ac_cv_c_inline=no 7770 ac_cv_c_inline=no
7723 for ac_kw in inline __inline__ __inline; do 7771 for ac_kw in inline __inline__ __inline; do
7724 cat > conftest.$ac_ext <<EOF 7772 cat > conftest.$ac_ext <<EOF
7725 #line 7726 "configure" 7773 #line 7774 "configure"
7726 #include "confdefs.h" 7774 #include "confdefs.h"
7727 7775
7728 int main() { 7776 int main() {
7729 } $ac_kw foo() { 7777 } $ac_kw foo() {
7730 ; return 0; } 7778 ; return 0; }
7731 EOF 7779 EOF
7732 if { (eval echo configure:7733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7780 if { (eval echo configure:7781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7733 rm -rf conftest* 7781 rm -rf conftest*
7734 ac_cv_c_inline=$ac_kw; break 7782 ac_cv_c_inline=$ac_kw; break
7735 else 7783 else
7736 echo "configure: failed program was:" >&5 7784 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5 7785 cat conftest.$ac_ext >&5
7777 7825
7778 7826
7779 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 7827 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7780 # for constant arguments. Useless! 7828 # for constant arguments. Useless!
7781 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 7829 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
7782 echo "configure:7783: checking for working alloca.h" >&5 7830 echo "configure:7831: checking for working alloca.h" >&5
7783 7831
7784 cat > conftest.$ac_ext <<EOF 7832 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure" 7833 #line 7834 "configure"
7786 #include "confdefs.h" 7834 #include "confdefs.h"
7787 #include <alloca.h> 7835 #include <alloca.h>
7788 int main() { 7836 int main() {
7789 char *p = alloca(2 * sizeof(int)); 7837 char *p = alloca(2 * sizeof(int));
7790 ; return 0; } 7838 ; return 0; }
7791 EOF 7839 EOF
7792 if { (eval echo configure:7793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7840 if { (eval echo configure:7841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7793 rm -rf conftest* 7841 rm -rf conftest*
7794 ac_cv_header_alloca_h=yes 7842 ac_cv_header_alloca_h=yes
7795 else 7843 else
7796 echo "configure: failed program was:" >&5 7844 echo "configure: failed program was:" >&5
7797 cat conftest.$ac_ext >&5 7845 cat conftest.$ac_ext >&5
7811 } 7859 }
7812 7860
7813 fi 7861 fi
7814 7862
7815 echo $ac_n "checking for alloca""... $ac_c" 1>&6 7863 echo $ac_n "checking for alloca""... $ac_c" 1>&6
7816 echo "configure:7817: checking for alloca" >&5 7864 echo "configure:7865: checking for alloca" >&5
7817 7865
7818 cat > conftest.$ac_ext <<EOF 7866 cat > conftest.$ac_ext <<EOF
7819 #line 7820 "configure" 7867 #line 7868 "configure"
7820 #include "confdefs.h" 7868 #include "confdefs.h"
7821 7869
7822 #ifdef __GNUC__ 7870 #ifdef __GNUC__
7823 # define alloca __builtin_alloca 7871 # define alloca __builtin_alloca
7824 #else 7872 #else
7837 7885
7838 int main() { 7886 int main() {
7839 char *p = (char *) alloca(1); 7887 char *p = (char *) alloca(1);
7840 ; return 0; } 7888 ; return 0; }
7841 EOF 7889 EOF
7842 if { (eval echo configure:7843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7890 if { (eval echo configure:7891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7843 rm -rf conftest* 7891 rm -rf conftest*
7844 ac_cv_func_alloca_works=yes 7892 ac_cv_func_alloca_works=yes
7845 else 7893 else
7846 echo "configure: failed program was:" >&5 7894 echo "configure: failed program was:" >&5
7847 cat conftest.$ac_ext >&5 7895 cat conftest.$ac_ext >&5
7876 EOF 7924 EOF
7877 } 7925 }
7878 7926
7879 7927
7880 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 7928 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
7881 echo "configure:7882: checking whether alloca needs Cray hooks" >&5 7929 echo "configure:7930: checking whether alloca needs Cray hooks" >&5
7882 7930
7883 cat > conftest.$ac_ext <<EOF 7931 cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure" 7932 #line 7933 "configure"
7885 #include "confdefs.h" 7933 #include "confdefs.h"
7886 #if defined(CRAY) && ! defined(CRAY2) 7934 #if defined(CRAY) && ! defined(CRAY2)
7887 webecray 7935 webecray
7888 #else 7936 #else
7889 wenotbecray 7937 wenotbecray
7903 7951
7904 echo "$ac_t""$ac_cv_os_cray" 1>&6 7952 echo "$ac_t""$ac_cv_os_cray" 1>&6
7905 if test $ac_cv_os_cray = yes; then 7953 if test $ac_cv_os_cray = yes; then
7906 for ac_func in _getb67 GETB67 getb67; do 7954 for ac_func in _getb67 GETB67 getb67; do
7907 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7908 echo "configure:7909: checking for $ac_func" >&5 7956 echo "configure:7957: checking for $ac_func" >&5
7909 7957
7910 cat > conftest.$ac_ext <<EOF 7958 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure" 7959 #line 7960 "configure"
7912 #include "confdefs.h" 7960 #include "confdefs.h"
7913 /* System header to define __stub macros and hopefully few prototypes, 7961 /* System header to define __stub macros and hopefully few prototypes,
7914 which can conflict with char $ac_func(); below. */ 7962 which can conflict with char $ac_func(); below. */
7915 #include <assert.h> 7963 #include <assert.h>
7916 /* Override any gcc2 internal prototype to avoid an error. */ 7964 /* Override any gcc2 internal prototype to avoid an error. */
7929 $ac_func(); 7977 $ac_func();
7930 #endif 7978 #endif
7931 7979
7932 ; return 0; } 7980 ; return 0; }
7933 EOF 7981 EOF
7934 if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 7982 if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
7935 rm -rf conftest* 7983 rm -rf conftest*
7936 eval "ac_cv_func_$ac_func=yes" 7984 eval "ac_cv_func_$ac_func=yes"
7937 else 7985 else
7938 echo "configure: failed program was:" >&5 7986 echo "configure: failed program was:" >&5
7939 cat conftest.$ac_ext >&5 7987 cat conftest.$ac_ext >&5
7959 8007
7960 done 8008 done
7961 fi 8009 fi
7962 8010
7963 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 8011 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
7964 echo "configure:7965: checking stack direction for C alloca" >&5 8012 echo "configure:8013: checking stack direction for C alloca" >&5
7965 8013
7966 cat > conftest.$ac_ext <<EOF 8014 cat > conftest.$ac_ext <<EOF
7967 #line 7968 "configure" 8015 #line 8016 "configure"
7968 #include "confdefs.h" 8016 #include "confdefs.h"
7969 find_stack_direction () 8017 find_stack_direction ()
7970 { 8018 {
7971 static char *addr = 0; 8019 static char *addr = 0;
7972 auto char dummy; 8020 auto char dummy;
7981 main () 8029 main ()
7982 { 8030 {
7983 exit (find_stack_direction() < 0); 8031 exit (find_stack_direction() < 0);
7984 } 8032 }
7985 EOF 8033 EOF
7986 if { (eval echo configure:7987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8034 if { (eval echo configure:8035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
7987 then 8035 then
7988 ac_cv_c_stack_direction=1 8036 ac_cv_c_stack_direction=1
7989 else 8037 else
7990 echo "configure: failed program was:" >&5 8038 echo "configure: failed program was:" >&5
7991 cat conftest.$ac_ext >&5 8039 cat conftest.$ac_ext >&5
8009 echo " xemacs will be linked with \"$ALLOCA\"" 8057 echo " xemacs will be linked with \"$ALLOCA\""
8010 fi 8058 fi
8011 8059
8012 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8060 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8013 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8061 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8014 echo "configure:8015: checking for vfork.h" >&5 8062 echo "configure:8063: checking for vfork.h" >&5
8015 8063
8016 cat > conftest.$ac_ext <<EOF 8064 cat > conftest.$ac_ext <<EOF
8017 #line 8018 "configure" 8065 #line 8066 "configure"
8018 #include "confdefs.h" 8066 #include "confdefs.h"
8019 #include <vfork.h> 8067 #include <vfork.h>
8020 EOF 8068 EOF
8021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8022 { (eval echo configure:8023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8070 { (eval echo configure:8071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8023 ac_err=`grep -v '^ *+' conftest.out` 8071 ac_err=`grep -v '^ *+' conftest.out`
8024 if test -z "$ac_err"; then 8072 if test -z "$ac_err"; then
8025 rm -rf conftest* 8073 rm -rf conftest*
8026 eval "ac_cv_header_$ac_safe=yes" 8074 eval "ac_cv_header_$ac_safe=yes"
8027 else 8075 else
8045 else 8093 else
8046 echo "$ac_t""no" 1>&6 8094 echo "$ac_t""no" 1>&6
8047 fi 8095 fi
8048 8096
8049 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8097 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8050 echo "configure:8051: checking for working vfork" >&5 8098 echo "configure:8099: checking for working vfork" >&5
8051 8099
8052 cat > conftest.$ac_ext <<EOF 8100 cat > conftest.$ac_ext <<EOF
8053 #line 8054 "configure" 8101 #line 8102 "configure"
8054 #include "confdefs.h" 8102 #include "confdefs.h"
8055 /* Thanks to Paul Eggert for this test. */ 8103 /* Thanks to Paul Eggert for this test. */
8056 #include <stdio.h> 8104 #include <stdio.h>
8057 #include <sys/types.h> 8105 #include <sys/types.h>
8058 #include <sys/stat.h> 8106 #include <sys/stat.h>
8143 || fstat(fileno(stdout), &st) != 0 8191 || fstat(fileno(stdout), &st) != 0
8144 ); 8192 );
8145 } 8193 }
8146 } 8194 }
8147 EOF 8195 EOF
8148 if { (eval echo configure:8149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8196 if { (eval echo configure:8197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8149 then 8197 then
8150 ac_cv_func_vfork_works=yes 8198 ac_cv_func_vfork_works=yes
8151 else 8199 else
8152 echo "configure: failed program was:" >&5 8200 echo "configure: failed program was:" >&5
8153 cat conftest.$ac_ext >&5 8201 cat conftest.$ac_ext >&5
8168 8216
8169 fi 8217 fi
8170 8218
8171 8219
8172 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 8220 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
8173 echo "configure:8174: checking for working strcoll" >&5 8221 echo "configure:8222: checking for working strcoll" >&5
8174 8222
8175 cat > conftest.$ac_ext <<EOF 8223 cat > conftest.$ac_ext <<EOF
8176 #line 8177 "configure" 8224 #line 8225 "configure"
8177 #include "confdefs.h" 8225 #include "confdefs.h"
8178 #include <string.h> 8226 #include <string.h>
8179 main () 8227 main ()
8180 { 8228 {
8181 exit (strcoll ("abc", "def") >= 0 || 8229 exit (strcoll ("abc", "def") >= 0 ||
8182 strcoll ("ABC", "DEF") >= 0 || 8230 strcoll ("ABC", "DEF") >= 0 ||
8183 strcoll ("123", "456") >= 0); 8231 strcoll ("123", "456") >= 0);
8184 } 8232 }
8185 EOF 8233 EOF
8186 if { (eval echo configure:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8234 if { (eval echo configure:8235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8187 then 8235 then
8188 ac_cv_func_strcoll_works=yes 8236 ac_cv_func_strcoll_works=yes
8189 else 8237 else
8190 echo "configure: failed program was:" >&5 8238 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5 8239 cat conftest.$ac_ext >&5
8208 8256
8209 8257
8210 for ac_func in getpgrp 8258 for ac_func in getpgrp
8211 do 8259 do
8212 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8213 echo "configure:8214: checking for $ac_func" >&5 8261 echo "configure:8262: checking for $ac_func" >&5
8214 8262
8215 cat > conftest.$ac_ext <<EOF 8263 cat > conftest.$ac_ext <<EOF
8216 #line 8217 "configure" 8264 #line 8265 "configure"
8217 #include "confdefs.h" 8265 #include "confdefs.h"
8218 /* System header to define __stub macros and hopefully few prototypes, 8266 /* System header to define __stub macros and hopefully few prototypes,
8219 which can conflict with char $ac_func(); below. */ 8267 which can conflict with char $ac_func(); below. */
8220 #include <assert.h> 8268 #include <assert.h>
8221 /* Override any gcc2 internal prototype to avoid an error. */ 8269 /* Override any gcc2 internal prototype to avoid an error. */
8234 $ac_func(); 8282 $ac_func();
8235 #endif 8283 #endif
8236 8284
8237 ; return 0; } 8285 ; return 0; }
8238 EOF 8286 EOF
8239 if { (eval echo configure:8240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8240 rm -rf conftest* 8288 rm -rf conftest*
8241 eval "ac_cv_func_$ac_func=yes" 8289 eval "ac_cv_func_$ac_func=yes"
8242 else 8290 else
8243 echo "configure: failed program was:" >&5 8291 echo "configure: failed program was:" >&5
8244 cat conftest.$ac_ext >&5 8292 cat conftest.$ac_ext >&5
8262 echo "$ac_t""no" 1>&6 8310 echo "$ac_t""no" 1>&6
8263 fi 8311 fi
8264 done 8312 done
8265 8313
8266 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 8314 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
8267 echo "configure:8268: checking whether getpgrp takes no argument" >&5 8315 echo "configure:8316: checking whether getpgrp takes no argument" >&5
8268 8316
8269 cat > conftest.$ac_ext <<EOF 8317 cat > conftest.$ac_ext <<EOF
8270 #line 8271 "configure" 8318 #line 8319 "configure"
8271 #include "confdefs.h" 8319 #include "confdefs.h"
8272 8320
8273 /* 8321 /*
8274 * If this system has a BSD-style getpgrp(), 8322 * If this system has a BSD-style getpgrp(),
8275 * which takes a pid argument, exit unsuccessfully. 8323 * which takes a pid argument, exit unsuccessfully.
8320 exit(s>>8); 8368 exit(s>>8);
8321 } 8369 }
8322 } 8370 }
8323 8371
8324 EOF 8372 EOF
8325 if { (eval echo configure:8326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8373 if { (eval echo configure:8374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8326 then 8374 then
8327 ac_cv_func_getpgrp_void=yes 8375 ac_cv_func_getpgrp_void=yes
8328 else 8376 else
8329 echo "configure: failed program was:" >&5 8377 echo "configure: failed program was:" >&5
8330 cat conftest.$ac_ext >&5 8378 cat conftest.$ac_ext >&5
8346 8394
8347 fi 8395 fi
8348 8396
8349 8397
8350 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 8398 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8351 echo "configure:8352: checking for working mmap" >&5 8399 echo "configure:8400: checking for working mmap" >&5
8352 case "$opsys" in ultrix* ) have_mmap=no ;; *) 8400 case "$opsys" in ultrix* ) have_mmap=no ;; *)
8353 cat > conftest.$ac_ext <<EOF 8401 cat > conftest.$ac_ext <<EOF
8354 #line 8355 "configure" 8402 #line 8403 "configure"
8355 #include "confdefs.h" 8403 #include "confdefs.h"
8356 #include <stdio.h> 8404 #include <stdio.h>
8357 #include <unistd.h> 8405 #include <unistd.h>
8358 #include <fcntl.h> 8406 #include <fcntl.h>
8359 #include <sys/mman.h> 8407 #include <sys/mman.h>
8382 return 0; 8430 return 0;
8383 perror ("conftest: mmap failed"); 8431 perror ("conftest: mmap failed");
8384 return 1; 8432 return 1;
8385 } 8433 }
8386 EOF 8434 EOF
8387 if { (eval echo configure:8388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 8435 if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5
8388 then 8436 then
8389 have_mmap=yes 8437 have_mmap=yes
8390 else 8438 else
8391 echo "configure: failed program was:" >&5 8439 echo "configure: failed program was:" >&5
8392 cat conftest.$ac_ext >&5 8440 cat conftest.$ac_ext >&5
8416 } 8464 }
8417 8465
8418 8466
8419 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 8467 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
8420 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 8468 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
8421 echo "configure:8422: checking for termios.h" >&5 8469 echo "configure:8470: checking for termios.h" >&5
8422 8470
8423 cat > conftest.$ac_ext <<EOF 8471 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure" 8472 #line 8473 "configure"
8425 #include "confdefs.h" 8473 #include "confdefs.h"
8426 #include <termios.h> 8474 #include <termios.h>
8427 EOF 8475 EOF
8428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8429 { (eval echo configure:8430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8477 { (eval echo configure:8478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8430 ac_err=`grep -v '^ *+' conftest.out` 8478 ac_err=`grep -v '^ *+' conftest.out`
8431 if test -z "$ac_err"; then 8479 if test -z "$ac_err"; then
8432 rm -rf conftest* 8480 rm -rf conftest*
8433 eval "ac_cv_header_$ac_safe=yes" 8481 eval "ac_cv_header_$ac_safe=yes"
8434 else 8482 else
8467 8515
8468 else 8516 else
8469 echo "$ac_t""no" 1>&6 8517 echo "$ac_t""no" 1>&6
8470 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 8518 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
8471 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 8519 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
8472 echo "configure:8473: checking for termio.h" >&5 8520 echo "configure:8521: checking for termio.h" >&5
8473 8521
8474 cat > conftest.$ac_ext <<EOF 8522 cat > conftest.$ac_ext <<EOF
8475 #line 8476 "configure" 8523 #line 8524 "configure"
8476 #include "confdefs.h" 8524 #include "confdefs.h"
8477 #include <termio.h> 8525 #include <termio.h>
8478 EOF 8526 EOF
8479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8480 { (eval echo configure:8481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8528 { (eval echo configure:8529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8481 ac_err=`grep -v '^ *+' conftest.out` 8529 ac_err=`grep -v '^ *+' conftest.out`
8482 if test -z "$ac_err"; then 8530 if test -z "$ac_err"; then
8483 rm -rf conftest* 8531 rm -rf conftest*
8484 eval "ac_cv_header_$ac_safe=yes" 8532 eval "ac_cv_header_$ac_safe=yes"
8485 else 8533 else
8507 fi 8555 fi
8508 8556
8509 8557
8510 8558
8511 echo $ac_n "checking for socket""... $ac_c" 1>&6 8559 echo $ac_n "checking for socket""... $ac_c" 1>&6
8512 echo "configure:8513: checking for socket" >&5 8560 echo "configure:8561: checking for socket" >&5
8513 8561
8514 cat > conftest.$ac_ext <<EOF 8562 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure" 8563 #line 8564 "configure"
8516 #include "confdefs.h" 8564 #include "confdefs.h"
8517 /* System header to define __stub macros and hopefully few prototypes, 8565 /* System header to define __stub macros and hopefully few prototypes,
8518 which can conflict with char socket(); below. */ 8566 which can conflict with char socket(); below. */
8519 #include <assert.h> 8567 #include <assert.h>
8520 /* Override any gcc2 internal prototype to avoid an error. */ 8568 /* Override any gcc2 internal prototype to avoid an error. */
8533 socket(); 8581 socket();
8534 #endif 8582 #endif
8535 8583
8536 ; return 0; } 8584 ; return 0; }
8537 EOF 8585 EOF
8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8586 if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8539 rm -rf conftest* 8587 rm -rf conftest*
8540 eval "ac_cv_func_socket=yes" 8588 eval "ac_cv_func_socket=yes"
8541 else 8589 else
8542 echo "configure: failed program was:" >&5 8590 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5 8591 cat conftest.$ac_ext >&5
8548 8596
8549 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 8597 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8550 echo "$ac_t""yes" 1>&6 8598 echo "$ac_t""yes" 1>&6
8551 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8599 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8552 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8600 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8553 echo "configure:8554: checking for netinet/in.h" >&5 8601 echo "configure:8602: checking for netinet/in.h" >&5
8554 8602
8555 cat > conftest.$ac_ext <<EOF 8603 cat > conftest.$ac_ext <<EOF
8556 #line 8557 "configure" 8604 #line 8605 "configure"
8557 #include "confdefs.h" 8605 #include "confdefs.h"
8558 #include <netinet/in.h> 8606 #include <netinet/in.h>
8559 EOF 8607 EOF
8560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8561 { (eval echo configure:8562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8609 { (eval echo configure:8610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8562 ac_err=`grep -v '^ *+' conftest.out` 8610 ac_err=`grep -v '^ *+' conftest.out`
8563 if test -z "$ac_err"; then 8611 if test -z "$ac_err"; then
8564 rm -rf conftest* 8612 rm -rf conftest*
8565 eval "ac_cv_header_$ac_safe=yes" 8613 eval "ac_cv_header_$ac_safe=yes"
8566 else 8614 else
8573 rm -f conftest* 8621 rm -f conftest*
8574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8575 echo "$ac_t""yes" 1>&6 8623 echo "$ac_t""yes" 1>&6
8576 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8624 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8577 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8625 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8578 echo "configure:8579: checking for arpa/inet.h" >&5 8626 echo "configure:8627: checking for arpa/inet.h" >&5
8579 8627
8580 cat > conftest.$ac_ext <<EOF 8628 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure" 8629 #line 8630 "configure"
8582 #include "confdefs.h" 8630 #include "confdefs.h"
8583 #include <arpa/inet.h> 8631 #include <arpa/inet.h>
8584 EOF 8632 EOF
8585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8586 { (eval echo configure:8587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8634 { (eval echo configure:8635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8587 ac_err=`grep -v '^ *+' conftest.out` 8635 ac_err=`grep -v '^ *+' conftest.out`
8588 if test -z "$ac_err"; then 8636 if test -z "$ac_err"; then
8589 rm -rf conftest* 8637 rm -rf conftest*
8590 eval "ac_cv_header_$ac_safe=yes" 8638 eval "ac_cv_header_$ac_safe=yes"
8591 else 8639 else
8606 #define HAVE_SOCKETS 1 8654 #define HAVE_SOCKETS 1
8607 EOF 8655 EOF
8608 } 8656 }
8609 8657
8610 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 8658 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
8611 echo "configure:8612: checking "for sun_len member in struct sockaddr_un"" >&5 8659 echo "configure:8660: checking "for sun_len member in struct sockaddr_un"" >&5
8612 cat > conftest.$ac_ext <<EOF 8660 cat > conftest.$ac_ext <<EOF
8613 #line 8614 "configure" 8661 #line 8662 "configure"
8614 #include "confdefs.h" 8662 #include "confdefs.h"
8615 8663
8616 #include <sys/types.h> 8664 #include <sys/types.h>
8617 #include <sys/socket.h> 8665 #include <sys/socket.h>
8618 #include <sys/un.h> 8666 #include <sys/un.h>
8619 8667
8620 int main() { 8668 int main() {
8621 static struct sockaddr_un x; x.sun_len = 1; 8669 static struct sockaddr_un x; x.sun_len = 1;
8622 ; return 0; } 8670 ; return 0; }
8623 EOF 8671 EOF
8624 if { (eval echo configure:8625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8672 if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8625 rm -rf conftest* 8673 rm -rf conftest*
8626 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 8674 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
8627 Defining HAVE_SOCKADDR_SUN_LEN 8675 Defining HAVE_SOCKADDR_SUN_LEN
8628 EOF 8676 EOF
8629 cat >> confdefs.h <<\EOF 8677 cat >> confdefs.h <<\EOF
8650 echo "$ac_t""no" 1>&6 8698 echo "$ac_t""no" 1>&6
8651 fi 8699 fi
8652 8700
8653 8701
8654 echo $ac_n "checking for msgget""... $ac_c" 1>&6 8702 echo $ac_n "checking for msgget""... $ac_c" 1>&6
8655 echo "configure:8656: checking for msgget" >&5 8703 echo "configure:8704: checking for msgget" >&5
8656 8704
8657 cat > conftest.$ac_ext <<EOF 8705 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure" 8706 #line 8707 "configure"
8659 #include "confdefs.h" 8707 #include "confdefs.h"
8660 /* System header to define __stub macros and hopefully few prototypes, 8708 /* System header to define __stub macros and hopefully few prototypes,
8661 which can conflict with char msgget(); below. */ 8709 which can conflict with char msgget(); below. */
8662 #include <assert.h> 8710 #include <assert.h>
8663 /* Override any gcc2 internal prototype to avoid an error. */ 8711 /* Override any gcc2 internal prototype to avoid an error. */
8676 msgget(); 8724 msgget();
8677 #endif 8725 #endif
8678 8726
8679 ; return 0; } 8727 ; return 0; }
8680 EOF 8728 EOF
8681 if { (eval echo configure:8682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8682 rm -rf conftest* 8730 rm -rf conftest*
8683 eval "ac_cv_func_msgget=yes" 8731 eval "ac_cv_func_msgget=yes"
8684 else 8732 else
8685 echo "configure: failed program was:" >&5 8733 echo "configure: failed program was:" >&5
8686 cat conftest.$ac_ext >&5 8734 cat conftest.$ac_ext >&5
8691 8739
8692 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 8740 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
8693 echo "$ac_t""yes" 1>&6 8741 echo "$ac_t""yes" 1>&6
8694 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 8742 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
8695 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 8743 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
8696 echo "configure:8697: checking for sys/ipc.h" >&5 8744 echo "configure:8745: checking for sys/ipc.h" >&5
8697 8745
8698 cat > conftest.$ac_ext <<EOF 8746 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure" 8747 #line 8748 "configure"
8700 #include "confdefs.h" 8748 #include "confdefs.h"
8701 #include <sys/ipc.h> 8749 #include <sys/ipc.h>
8702 EOF 8750 EOF
8703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8704 { (eval echo configure:8705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8752 { (eval echo configure:8753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8705 ac_err=`grep -v '^ *+' conftest.out` 8753 ac_err=`grep -v '^ *+' conftest.out`
8706 if test -z "$ac_err"; then 8754 if test -z "$ac_err"; then
8707 rm -rf conftest* 8755 rm -rf conftest*
8708 eval "ac_cv_header_$ac_safe=yes" 8756 eval "ac_cv_header_$ac_safe=yes"
8709 else 8757 else
8716 rm -f conftest* 8764 rm -f conftest*
8717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8765 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8718 echo "$ac_t""yes" 1>&6 8766 echo "$ac_t""yes" 1>&6
8719 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 8767 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
8720 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 8768 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
8721 echo "configure:8722: checking for sys/msg.h" >&5 8769 echo "configure:8770: checking for sys/msg.h" >&5
8722 8770
8723 cat > conftest.$ac_ext <<EOF 8771 cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure" 8772 #line 8773 "configure"
8725 #include "confdefs.h" 8773 #include "confdefs.h"
8726 #include <sys/msg.h> 8774 #include <sys/msg.h>
8727 EOF 8775 EOF
8728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8729 { (eval echo configure:8730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8777 { (eval echo configure:8778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8730 ac_err=`grep -v '^ *+' conftest.out` 8778 ac_err=`grep -v '^ *+' conftest.out`
8731 if test -z "$ac_err"; then 8779 if test -z "$ac_err"; then
8732 rm -rf conftest* 8780 rm -rf conftest*
8733 eval "ac_cv_header_$ac_safe=yes" 8781 eval "ac_cv_header_$ac_safe=yes"
8734 else 8782 else
8762 fi 8810 fi
8763 8811
8764 8812
8765 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 8813 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
8766 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 8814 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
8767 echo "configure:8768: checking for dirent.h" >&5 8815 echo "configure:8816: checking for dirent.h" >&5
8768 8816
8769 cat > conftest.$ac_ext <<EOF 8817 cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure" 8818 #line 8819 "configure"
8771 #include "confdefs.h" 8819 #include "confdefs.h"
8772 #include <dirent.h> 8820 #include <dirent.h>
8773 EOF 8821 EOF
8774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8775 { (eval echo configure:8776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8823 { (eval echo configure:8824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8776 ac_err=`grep -v '^ *+' conftest.out` 8824 ac_err=`grep -v '^ *+' conftest.out`
8777 if test -z "$ac_err"; then 8825 if test -z "$ac_err"; then
8778 rm -rf conftest* 8826 rm -rf conftest*
8779 eval "ac_cv_header_$ac_safe=yes" 8827 eval "ac_cv_header_$ac_safe=yes"
8780 else 8828 else
8797 8845
8798 else 8846 else
8799 echo "$ac_t""no" 1>&6 8847 echo "$ac_t""no" 1>&6
8800 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 8848 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
8801 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 8849 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
8802 echo "configure:8803: checking for sys/dir.h" >&5 8850 echo "configure:8851: checking for sys/dir.h" >&5
8803 8851
8804 cat > conftest.$ac_ext <<EOF 8852 cat > conftest.$ac_ext <<EOF
8805 #line 8806 "configure" 8853 #line 8854 "configure"
8806 #include "confdefs.h" 8854 #include "confdefs.h"
8807 #include <sys/dir.h> 8855 #include <sys/dir.h>
8808 EOF 8856 EOF
8809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8810 { (eval echo configure:8811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8858 { (eval echo configure:8859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8811 ac_err=`grep -v '^ *+' conftest.out` 8859 ac_err=`grep -v '^ *+' conftest.out`
8812 if test -z "$ac_err"; then 8860 if test -z "$ac_err"; then
8813 rm -rf conftest* 8861 rm -rf conftest*
8814 eval "ac_cv_header_$ac_safe=yes" 8862 eval "ac_cv_header_$ac_safe=yes"
8815 else 8863 else
8838 fi 8886 fi
8839 8887
8840 8888
8841 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 8889 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
8842 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 8890 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
8843 echo "configure:8844: checking for nlist.h" >&5 8891 echo "configure:8892: checking for nlist.h" >&5
8844 8892
8845 cat > conftest.$ac_ext <<EOF 8893 cat > conftest.$ac_ext <<EOF
8846 #line 8847 "configure" 8894 #line 8895 "configure"
8847 #include "confdefs.h" 8895 #include "confdefs.h"
8848 #include <nlist.h> 8896 #include <nlist.h>
8849 EOF 8897 EOF
8850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8851 { (eval echo configure:8852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8899 { (eval echo configure:8900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8852 ac_err=`grep -v '^ *+' conftest.out` 8900 ac_err=`grep -v '^ *+' conftest.out`
8853 if test -z "$ac_err"; then 8901 if test -z "$ac_err"; then
8854 rm -rf conftest* 8902 rm -rf conftest*
8855 eval "ac_cv_header_$ac_safe=yes" 8903 eval "ac_cv_header_$ac_safe=yes"
8856 else 8904 else
8887 break; fi 8935 break; fi
8888 done 8936 done
8889 8937
8890 8938
8891 echo "checking "for sound support"" 1>&6 8939 echo "checking "for sound support"" 1>&6
8892 echo "configure:8893: checking "for sound support"" >&5 8940 echo "configure:8941: checking "for sound support"" >&5
8893 case "$with_sound" in 8941 case "$with_sound" in
8894 native | both ) with_native_sound=yes;; 8942 native | both ) with_native_sound=yes;;
8895 nas | no ) with_native_sound=no;; 8943 nas | no ) with_native_sound=no;;
8896 esac 8944 esac
8897 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 8945 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
8898 8946
8899 if test "$with_native_sound" != "no"; then 8947 if test "$with_native_sound" != "no"; then
8900 if test -n "$native_sound_lib"; then 8948 if test -n "$native_sound_lib"; then
8901 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 8949 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
8902 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 8950 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
8903 echo "configure:8904: checking for multimedia/audio_device.h" >&5 8951 echo "configure:8952: checking for multimedia/audio_device.h" >&5
8904 8952
8905 cat > conftest.$ac_ext <<EOF 8953 cat > conftest.$ac_ext <<EOF
8906 #line 8907 "configure" 8954 #line 8955 "configure"
8907 #include "confdefs.h" 8955 #include "confdefs.h"
8908 #include <multimedia/audio_device.h> 8956 #include <multimedia/audio_device.h>
8909 EOF 8957 EOF
8910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8911 { (eval echo configure:8912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8959 { (eval echo configure:8960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8912 ac_err=`grep -v '^ *+' conftest.out` 8960 ac_err=`grep -v '^ *+' conftest.out`
8913 if test -z "$ac_err"; then 8961 if test -z "$ac_err"; then
8914 rm -rf conftest* 8962 rm -rf conftest*
8915 eval "ac_cv_header_$ac_safe=yes" 8963 eval "ac_cv_header_$ac_safe=yes"
8916 else 8964 else
8954 case "$canonical" in 9002 case "$canonical" in
8955 *-sgi-* ) 9003 *-sgi-* )
8956 if test -z "$native_sound_lib"; then 9004 if test -z "$native_sound_lib"; then
8957 9005
8958 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 9006 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
8959 echo "configure:8960: checking for ALopenport in -laudio" >&5 9007 echo "configure:9008: checking for ALopenport in -laudio" >&5
8960 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 9008 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
8961 9009
8962 xe_check_libs=" -laudio " 9010 xe_check_libs=" -laudio "
8963 cat > conftest.$ac_ext <<EOF 9011 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure" 9012 #line 9013 "configure"
8965 #include "confdefs.h" 9013 #include "confdefs.h"
8966 /* Override any gcc2 internal prototype to avoid an error. */ 9014 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2 9015 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */ 9016 builtin and then its argument prototype would still apply. */
8969 char ALopenport(); 9017 char ALopenport();
8970 9018
8971 int main() { 9019 int main() {
8972 ALopenport() 9020 ALopenport()
8973 ; return 0; } 9021 ; return 0; }
8974 EOF 9022 EOF
8975 if { (eval echo configure:8976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9023 if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
8976 rm -rf conftest* 9024 rm -rf conftest*
8977 eval "ac_cv_lib_$ac_lib_var=yes" 9025 eval "ac_cv_lib_$ac_lib_var=yes"
8978 else 9026 else
8979 echo "configure: failed program was:" >&5 9027 echo "configure: failed program was:" >&5
8980 cat conftest.$ac_ext >&5 9028 cat conftest.$ac_ext >&5
9001 fi ;; 9049 fi ;;
9002 hppa*-hp-hpux* ) 9050 hppa*-hp-hpux* )
9003 if test -z "$native_sound_lib"; then 9051 if test -z "$native_sound_lib"; then
9004 9052
9005 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 9053 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
9006 echo "configure:9007: checking for AOpenAudio in -lAlib" >&5 9054 echo "configure:9055: checking for AOpenAudio in -lAlib" >&5
9007 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 9055 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
9008 9056
9009 xe_check_libs=" -lAlib " 9057 xe_check_libs=" -lAlib "
9010 cat > conftest.$ac_ext <<EOF 9058 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure" 9059 #line 9060 "configure"
9012 #include "confdefs.h" 9060 #include "confdefs.h"
9013 /* Override any gcc2 internal prototype to avoid an error. */ 9061 /* Override any gcc2 internal prototype to avoid an error. */
9014 /* We use char because int might match the return type of a gcc2 9062 /* We use char because int might match the return type of a gcc2
9015 builtin and then its argument prototype would still apply. */ 9063 builtin and then its argument prototype would still apply. */
9016 char AOpenAudio(); 9064 char AOpenAudio();
9017 9065
9018 int main() { 9066 int main() {
9019 AOpenAudio() 9067 AOpenAudio()
9020 ; return 0; } 9068 ; return 0; }
9021 EOF 9069 EOF
9022 if { (eval echo configure:9023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9070 if { (eval echo configure:9071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9023 rm -rf conftest* 9071 rm -rf conftest*
9024 eval "ac_cv_lib_$ac_lib_var=yes" 9072 eval "ac_cv_lib_$ac_lib_var=yes"
9025 else 9073 else
9026 echo "configure: failed program was:" >&5 9074 echo "configure: failed program was:" >&5
9027 cat conftest.$ac_ext >&5 9075 cat conftest.$ac_ext >&5
9055 9103
9056 if test -z "$sound_found"; then 9104 if test -z "$sound_found"; then
9057 for dir in "machine" "sys" "linux"; do 9105 for dir in "machine" "sys" "linux"; do
9058 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 9106 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
9059 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 9107 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
9060 echo "configure:9061: checking for ${dir}/soundcard.h" >&5 9108 echo "configure:9109: checking for ${dir}/soundcard.h" >&5
9061 9109
9062 cat > conftest.$ac_ext <<EOF 9110 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure" 9111 #line 9112 "configure"
9064 #include "confdefs.h" 9112 #include "confdefs.h"
9065 #include <${dir}/soundcard.h> 9113 #include <${dir}/soundcard.h>
9066 EOF 9114 EOF
9067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9068 { (eval echo configure:9069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9116 { (eval echo configure:9117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9069 ac_err=`grep -v '^ *+' conftest.out` 9117 ac_err=`grep -v '^ *+' conftest.out`
9070 if test -z "$ac_err"; then 9118 if test -z "$ac_err"; then
9071 rm -rf conftest* 9119 rm -rf conftest*
9072 eval "ac_cv_header_$ac_safe=yes" 9120 eval "ac_cv_header_$ac_safe=yes"
9073 else 9121 else
9133 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 9181 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
9134 echo " xemacs will be linked with \"nas.o\"" 9182 echo " xemacs will be linked with \"nas.o\""
9135 fi 9183 fi
9136 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi 9184 LIBS="-laudio $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$LIBS"; fi
9137 cat > conftest.$ac_ext <<EOF 9185 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure" 9186 #line 9187 "configure"
9139 #include "confdefs.h" 9187 #include "confdefs.h"
9140 #include <audio/Xtutil.h> 9188 #include <audio/Xtutil.h>
9141 EOF 9189 EOF
9142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9143 egrep "AuXtErrorJump" >/dev/null 2>&1; then 9191 egrep "AuXtErrorJump" >/dev/null 2>&1; then
9160 9208
9161 test -z "$with_tty" && with_tty=yes 9209 test -z "$with_tty" && with_tty=yes
9162 9210
9163 if test "$with_tty" = "yes" ; then 9211 if test "$with_tty" = "yes" ; then
9164 echo "checking for TTY-related features" 1>&6 9212 echo "checking for TTY-related features" 1>&6
9165 echo "configure:9166: checking for TTY-related features" >&5 9213 echo "configure:9214: checking for TTY-related features" >&5
9166 { test "$extra_verbose" = "yes" && cat << \EOF 9214 { test "$extra_verbose" = "yes" && cat << \EOF
9167 Defining HAVE_TTY 9215 Defining HAVE_TTY
9168 EOF 9216 EOF
9169 cat >> confdefs.h <<\EOF 9217 cat >> confdefs.h <<\EOF
9170 #define HAVE_TTY 1 9218 #define HAVE_TTY 1
9176 fi 9224 fi
9177 9225
9178 if test -z "$with_ncurses"; then 9226 if test -z "$with_ncurses"; then
9179 9227
9180 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 9228 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
9181 echo "configure:9182: checking for tgetent in -lncurses" >&5 9229 echo "configure:9230: checking for tgetent in -lncurses" >&5
9182 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 9230 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
9183 9231
9184 xe_check_libs=" -lncurses " 9232 xe_check_libs=" -lncurses "
9185 cat > conftest.$ac_ext <<EOF 9233 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure" 9234 #line 9235 "configure"
9187 #include "confdefs.h" 9235 #include "confdefs.h"
9188 /* Override any gcc2 internal prototype to avoid an error. */ 9236 /* Override any gcc2 internal prototype to avoid an error. */
9189 /* We use char because int might match the return type of a gcc2 9237 /* We use char because int might match the return type of a gcc2
9190 builtin and then its argument prototype would still apply. */ 9238 builtin and then its argument prototype would still apply. */
9191 char tgetent(); 9239 char tgetent();
9192 9240
9193 int main() { 9241 int main() {
9194 tgetent() 9242 tgetent()
9195 ; return 0; } 9243 ; return 0; }
9196 EOF 9244 EOF
9197 if { (eval echo configure:9198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9245 if { (eval echo configure:9246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9198 rm -rf conftest* 9246 rm -rf conftest*
9199 eval "ac_cv_lib_$ac_lib_var=yes" 9247 eval "ac_cv_lib_$ac_lib_var=yes"
9200 else 9248 else
9201 echo "configure: failed program was:" >&5 9249 echo "configure: failed program was:" >&5
9202 cat conftest.$ac_ext >&5 9250 cat conftest.$ac_ext >&5
9225 EOF 9273 EOF
9226 } 9274 }
9227 9275
9228 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9276 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9229 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9277 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9230 echo "configure:9231: checking for ncurses/curses.h" >&5 9278 echo "configure:9279: checking for ncurses/curses.h" >&5
9231 9279
9232 cat > conftest.$ac_ext <<EOF 9280 cat > conftest.$ac_ext <<EOF
9233 #line 9234 "configure" 9281 #line 9282 "configure"
9234 #include "confdefs.h" 9282 #include "confdefs.h"
9235 #include <ncurses/curses.h> 9283 #include <ncurses/curses.h>
9236 EOF 9284 EOF
9237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9238 { (eval echo configure:9239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9286 { (eval echo configure:9287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9239 ac_err=`grep -v '^ *+' conftest.out` 9287 ac_err=`grep -v '^ *+' conftest.out`
9240 if test -z "$ac_err"; then 9288 if test -z "$ac_err"; then
9241 rm -rf conftest* 9289 rm -rf conftest*
9242 eval "ac_cv_header_$ac_safe=yes" 9290 eval "ac_cv_header_$ac_safe=yes"
9243 else 9291 else
9255 echo "$ac_t""no" 1>&6 9303 echo "$ac_t""no" 1>&6
9256 fi 9304 fi
9257 9305
9258 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 9306 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
9259 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 9307 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
9260 echo "configure:9261: checking for ncurses/term.h" >&5 9308 echo "configure:9309: checking for ncurses/term.h" >&5
9261 9309
9262 cat > conftest.$ac_ext <<EOF 9310 cat > conftest.$ac_ext <<EOF
9263 #line 9264 "configure" 9311 #line 9312 "configure"
9264 #include "confdefs.h" 9312 #include "confdefs.h"
9265 #include <ncurses/term.h> 9313 #include <ncurses/term.h>
9266 EOF 9314 EOF
9267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9268 { (eval echo configure:9269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9316 { (eval echo configure:9317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9269 ac_err=`grep -v '^ *+' conftest.out` 9317 ac_err=`grep -v '^ *+' conftest.out`
9270 if test -z "$ac_err"; then 9318 if test -z "$ac_err"; then
9271 rm -rf conftest* 9319 rm -rf conftest*
9272 eval "ac_cv_header_$ac_safe=yes" 9320 eval "ac_cv_header_$ac_safe=yes"
9273 else 9321 else
9293 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 9341 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
9294 save_c_switch_site="$c_switch_site" 9342 save_c_switch_site="$c_switch_site"
9295 c_switch_site="$c_switch_site -I/usr/include/ncurses" 9343 c_switch_site="$c_switch_site -I/usr/include/ncurses"
9296 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 9344 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
9297 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 9345 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
9298 echo "configure:9299: checking for ncurses/curses.h" >&5 9346 echo "configure:9347: checking for ncurses/curses.h" >&5
9299 9347
9300 cat > conftest.$ac_ext <<EOF 9348 cat > conftest.$ac_ext <<EOF
9301 #line 9302 "configure" 9349 #line 9350 "configure"
9302 #include "confdefs.h" 9350 #include "confdefs.h"
9303 #include <ncurses/curses.h> 9351 #include <ncurses/curses.h>
9304 EOF 9352 EOF
9305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9353 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9306 { (eval echo configure:9307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9354 { (eval echo configure:9355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9307 ac_err=`grep -v '^ *+' conftest.out` 9355 ac_err=`grep -v '^ *+' conftest.out`
9308 if test -z "$ac_err"; then 9356 if test -z "$ac_err"; then
9309 rm -rf conftest* 9357 rm -rf conftest*
9310 eval "ac_cv_header_$ac_safe=yes" 9358 eval "ac_cv_header_$ac_safe=yes"
9311 else 9359 else
9336 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
9337 else 9385 else
9338 for lib in curses termlib termcap; do 9386 for lib in curses termlib termcap; do
9339 9387
9340 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 9388 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
9341 echo "configure:9342: checking for tgetent in -l$lib" >&5 9389 echo "configure:9390: checking for tgetent in -l$lib" >&5
9342 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 9390 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
9343 9391
9344 xe_check_libs=" -l$lib " 9392 xe_check_libs=" -l$lib "
9345 cat > conftest.$ac_ext <<EOF 9393 cat > conftest.$ac_ext <<EOF
9346 #line 9347 "configure" 9394 #line 9395 "configure"
9347 #include "confdefs.h" 9395 #include "confdefs.h"
9348 /* Override any gcc2 internal prototype to avoid an error. */ 9396 /* Override any gcc2 internal prototype to avoid an error. */
9349 /* We use char because int might match the return type of a gcc2 9397 /* We use char because int might match the return type of a gcc2
9350 builtin and then its argument prototype would still apply. */ 9398 builtin and then its argument prototype would still apply. */
9351 char tgetent(); 9399 char tgetent();
9352 9400
9353 int main() { 9401 int main() {
9354 tgetent() 9402 tgetent()
9355 ; return 0; } 9403 ; return 0; }
9356 EOF 9404 EOF
9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9405 if { (eval echo configure:9406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9358 rm -rf conftest* 9406 rm -rf conftest*
9359 eval "ac_cv_lib_$ac_lib_var=yes" 9407 eval "ac_cv_lib_$ac_lib_var=yes"
9360 else 9408 else
9361 echo "configure: failed program was:" >&5 9409 echo "configure: failed program was:" >&5
9362 cat conftest.$ac_ext >&5 9410 cat conftest.$ac_ext >&5
9383 if test -n "$libs_termcap"; then 9431 if test -n "$libs_termcap"; then
9384 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 9432 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
9385 else 9433 else
9386 9434
9387 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 9435 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
9388 echo "configure:9389: checking for tgetent in -lcurses" >&5 9436 echo "configure:9437: checking for tgetent in -lcurses" >&5
9389 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 9437 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
9390 9438
9391 xe_check_libs=" -lcurses " 9439 xe_check_libs=" -lcurses "
9392 cat > conftest.$ac_ext <<EOF 9440 cat > conftest.$ac_ext <<EOF
9393 #line 9394 "configure" 9441 #line 9442 "configure"
9394 #include "confdefs.h" 9442 #include "confdefs.h"
9395 /* Override any gcc2 internal prototype to avoid an error. */ 9443 /* Override any gcc2 internal prototype to avoid an error. */
9396 /* We use char because int might match the return type of a gcc2 9444 /* We use char because int might match the return type of a gcc2
9397 builtin and then its argument prototype would still apply. */ 9445 builtin and then its argument prototype would still apply. */
9398 char tgetent(); 9446 char tgetent();
9399 9447
9400 int main() { 9448 int main() {
9401 tgetent() 9449 tgetent()
9402 ; return 0; } 9450 ; return 0; }
9403 EOF 9451 EOF
9404 if { (eval echo configure:9405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9452 if { (eval echo configure:9453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9405 rm -rf conftest* 9453 rm -rf conftest*
9406 eval "ac_cv_lib_$ac_lib_var=yes" 9454 eval "ac_cv_lib_$ac_lib_var=yes"
9407 else 9455 else
9408 echo "configure: failed program was:" >&5 9456 echo "configure: failed program was:" >&5
9409 cat conftest.$ac_ext >&5 9457 cat conftest.$ac_ext >&5
9417 echo "$ac_t""yes" 1>&6 9465 echo "$ac_t""yes" 1>&6
9418 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 9466 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
9419 else 9467 else
9420 echo "$ac_t""no" 1>&6 9468 echo "$ac_t""no" 1>&6
9421 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 9469 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
9422 echo "configure:9423: checking for tgetent in -ltermcap" >&5 9470 echo "configure:9471: checking for tgetent in -ltermcap" >&5
9423 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 9471 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
9424 9472
9425 xe_check_libs=" -ltermcap " 9473 xe_check_libs=" -ltermcap "
9426 cat > conftest.$ac_ext <<EOF 9474 cat > conftest.$ac_ext <<EOF
9427 #line 9428 "configure" 9475 #line 9476 "configure"
9428 #include "confdefs.h" 9476 #include "confdefs.h"
9429 /* Override any gcc2 internal prototype to avoid an error. */ 9477 /* Override any gcc2 internal prototype to avoid an error. */
9430 /* We use char because int might match the return type of a gcc2 9478 /* We use char because int might match the return type of a gcc2
9431 builtin and then its argument prototype would still apply. */ 9479 builtin and then its argument prototype would still apply. */
9432 char tgetent(); 9480 char tgetent();
9433 9481
9434 int main() { 9482 int main() {
9435 tgetent() 9483 tgetent()
9436 ; return 0; } 9484 ; return 0; }
9437 EOF 9485 EOF
9438 if { (eval echo configure:9439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9486 if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9439 rm -rf conftest* 9487 rm -rf conftest*
9440 eval "ac_cv_lib_$ac_lib_var=yes" 9488 eval "ac_cv_lib_$ac_lib_var=yes"
9441 else 9489 else
9442 echo "configure: failed program was:" >&5 9490 echo "configure: failed program was:" >&5
9443 cat conftest.$ac_ext >&5 9491 cat conftest.$ac_ext >&5
9481 } 9529 }
9482 9530
9483 9531
9484 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 9532 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
9485 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 9533 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
9486 echo "configure:9487: checking for gpm.h" >&5 9534 echo "configure:9535: checking for gpm.h" >&5
9487 9535
9488 cat > conftest.$ac_ext <<EOF 9536 cat > conftest.$ac_ext <<EOF
9489 #line 9490 "configure" 9537 #line 9538 "configure"
9490 #include "confdefs.h" 9538 #include "confdefs.h"
9491 #include <gpm.h> 9539 #include <gpm.h>
9492 EOF 9540 EOF
9493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9494 { (eval echo configure:9495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9542 { (eval echo configure:9543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9495 ac_err=`grep -v '^ *+' conftest.out` 9543 ac_err=`grep -v '^ *+' conftest.out`
9496 if test -z "$ac_err"; then 9544 if test -z "$ac_err"; then
9497 rm -rf conftest* 9545 rm -rf conftest*
9498 eval "ac_cv_header_$ac_safe=yes" 9546 eval "ac_cv_header_$ac_safe=yes"
9499 else 9547 else
9512 with_gpm=no 9560 with_gpm=no
9513 fi 9561 fi
9514 } 9562 }
9515 test -z "$with_gpm" && { 9563 test -z "$with_gpm" && {
9516 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 9564 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
9517 echo "configure:9518: checking for Gpm_Open in -lgpm" >&5 9565 echo "configure:9566: checking for Gpm_Open in -lgpm" >&5
9518 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 9566 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
9519 9567
9520 xe_check_libs=" -lgpm " 9568 xe_check_libs=" -lgpm "
9521 cat > conftest.$ac_ext <<EOF 9569 cat > conftest.$ac_ext <<EOF
9522 #line 9523 "configure" 9570 #line 9571 "configure"
9523 #include "confdefs.h" 9571 #include "confdefs.h"
9524 /* Override any gcc2 internal prototype to avoid an error. */ 9572 /* Override any gcc2 internal prototype to avoid an error. */
9525 /* We use char because int might match the return type of a gcc2 9573 /* We use char because int might match the return type of a gcc2
9526 builtin and then its argument prototype would still apply. */ 9574 builtin and then its argument prototype would still apply. */
9527 char Gpm_Open(); 9575 char Gpm_Open();
9528 9576
9529 int main() { 9577 int main() {
9530 Gpm_Open() 9578 Gpm_Open()
9531 ; return 0; } 9579 ; return 0; }
9532 EOF 9580 EOF
9533 if { (eval echo configure:9534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9581 if { (eval echo configure:9582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9534 rm -rf conftest* 9582 rm -rf conftest*
9535 eval "ac_cv_lib_$ac_lib_var=yes" 9583 eval "ac_cv_lib_$ac_lib_var=yes"
9536 else 9584 else
9537 echo "configure: failed program was:" >&5 9585 echo "configure: failed program was:" >&5
9538 cat conftest.$ac_ext >&5 9586 cat conftest.$ac_ext >&5
9577 echo " xemacs will be linked with \"event-unixoid.o\"" 9625 echo " xemacs will be linked with \"event-unixoid.o\""
9578 fi 9626 fi
9579 9627
9580 9628
9581 echo "checking for database support" 1>&6 9629 echo "checking for database support" 1>&6
9582 echo "configure:9583: checking for database support" >&5 9630 echo "configure:9631: checking for database support" >&5
9583 9631
9584 if test "$with_database_gnudbm" != "no"; then 9632 if test "$with_database_gnudbm" != "no"; then
9585 9633
9586 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 9634 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
9587 echo "configure:9588: checking for dbm_open in -lgdbm" >&5 9635 echo "configure:9636: checking for dbm_open in -lgdbm" >&5
9588 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 9636 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
9589 9637
9590 xe_check_libs=" -lgdbm " 9638 xe_check_libs=" -lgdbm "
9591 cat > conftest.$ac_ext <<EOF 9639 cat > conftest.$ac_ext <<EOF
9592 #line 9593 "configure" 9640 #line 9641 "configure"
9593 #include "confdefs.h" 9641 #include "confdefs.h"
9594 /* Override any gcc2 internal prototype to avoid an error. */ 9642 /* Override any gcc2 internal prototype to avoid an error. */
9595 /* We use char because int might match the return type of a gcc2 9643 /* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */ 9644 builtin and then its argument prototype would still apply. */
9597 char dbm_open(); 9645 char dbm_open();
9598 9646
9599 int main() { 9647 int main() {
9600 dbm_open() 9648 dbm_open()
9601 ; return 0; } 9649 ; return 0; }
9602 EOF 9650 EOF
9603 if { (eval echo configure:9604: \"$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
9604 rm -rf conftest* 9652 rm -rf conftest*
9605 eval "ac_cv_lib_$ac_lib_var=yes" 9653 eval "ac_cv_lib_$ac_lib_var=yes"
9606 else 9654 else
9607 echo "configure: failed program was:" >&5 9655 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5 9656 cat conftest.$ac_ext >&5
9620 fi 9668 fi
9621 9669
9622 9670
9623 if test "$with_database_gnudbm" != "yes"; then 9671 if test "$with_database_gnudbm" != "yes"; then
9624 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9672 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9625 echo "configure:9626: checking for dbm_open" >&5 9673 echo "configure:9674: checking for dbm_open" >&5
9626 9674
9627 cat > conftest.$ac_ext <<EOF 9675 cat > conftest.$ac_ext <<EOF
9628 #line 9629 "configure" 9676 #line 9677 "configure"
9629 #include "confdefs.h" 9677 #include "confdefs.h"
9630 /* System header to define __stub macros and hopefully few prototypes, 9678 /* System header to define __stub macros and hopefully few prototypes,
9631 which can conflict with char dbm_open(); below. */ 9679 which can conflict with char dbm_open(); below. */
9632 #include <assert.h> 9680 #include <assert.h>
9633 /* Override any gcc2 internal prototype to avoid an error. */ 9681 /* Override any gcc2 internal prototype to avoid an error. */
9646 dbm_open(); 9694 dbm_open();
9647 #endif 9695 #endif
9648 9696
9649 ; return 0; } 9697 ; return 0; }
9650 EOF 9698 EOF
9651 if { (eval echo configure:9652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9699 if { (eval echo configure:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9652 rm -rf conftest* 9700 rm -rf conftest*
9653 eval "ac_cv_func_dbm_open=yes" 9701 eval "ac_cv_func_dbm_open=yes"
9654 else 9702 else
9655 echo "configure: failed program was:" >&5 9703 echo "configure: failed program was:" >&5
9656 cat conftest.$ac_ext >&5 9704 cat conftest.$ac_ext >&5
9682 fi 9730 fi
9683 fi 9731 fi
9684 9732
9685 if test "$with_database_dbm" != "no"; then 9733 if test "$with_database_dbm" != "no"; then
9686 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 9734 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
9687 echo "configure:9688: checking for dbm_open" >&5 9735 echo "configure:9736: checking for dbm_open" >&5
9688 9736
9689 cat > conftest.$ac_ext <<EOF 9737 cat > conftest.$ac_ext <<EOF
9690 #line 9691 "configure" 9738 #line 9739 "configure"
9691 #include "confdefs.h" 9739 #include "confdefs.h"
9692 /* System header to define __stub macros and hopefully few prototypes, 9740 /* System header to define __stub macros and hopefully few prototypes,
9693 which can conflict with char dbm_open(); below. */ 9741 which can conflict with char dbm_open(); below. */
9694 #include <assert.h> 9742 #include <assert.h>
9695 /* Override any gcc2 internal prototype to avoid an error. */ 9743 /* Override any gcc2 internal prototype to avoid an error. */
9708 dbm_open(); 9756 dbm_open();
9709 #endif 9757 #endif
9710 9758
9711 ; return 0; } 9759 ; return 0; }
9712 EOF 9760 EOF
9713 if { (eval echo configure:9714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9714 rm -rf conftest* 9762 rm -rf conftest*
9715 eval "ac_cv_func_dbm_open=yes" 9763 eval "ac_cv_func_dbm_open=yes"
9716 else 9764 else
9717 echo "configure: failed program was:" >&5 9765 echo "configure: failed program was:" >&5
9718 cat conftest.$ac_ext >&5 9766 cat conftest.$ac_ext >&5
9729 fi 9777 fi
9730 9778
9731 if test "$need_libdbm" != "no"; then 9779 if test "$need_libdbm" != "no"; then
9732 9780
9733 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 9781 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
9734 echo "configure:9735: checking for dbm_open in -ldbm" >&5 9782 echo "configure:9783: checking for dbm_open in -ldbm" >&5
9735 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 9783 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
9736 9784
9737 xe_check_libs=" -ldbm " 9785 xe_check_libs=" -ldbm "
9738 cat > conftest.$ac_ext <<EOF 9786 cat > conftest.$ac_ext <<EOF
9739 #line 9740 "configure" 9787 #line 9788 "configure"
9740 #include "confdefs.h" 9788 #include "confdefs.h"
9741 /* Override any gcc2 internal prototype to avoid an error. */ 9789 /* Override any gcc2 internal prototype to avoid an error. */
9742 /* We use char because int might match the return type of a gcc2 9790 /* We use char because int might match the return type of a gcc2
9743 builtin and then its argument prototype would still apply. */ 9791 builtin and then its argument prototype would still apply. */
9744 char dbm_open(); 9792 char dbm_open();
9745 9793
9746 int main() { 9794 int main() {
9747 dbm_open() 9795 dbm_open()
9748 ; return 0; } 9796 ; return 0; }
9749 EOF 9797 EOF
9750 if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9798 if { (eval echo configure:9799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9751 rm -rf conftest* 9799 rm -rf conftest*
9752 eval "ac_cv_lib_$ac_lib_var=yes" 9800 eval "ac_cv_lib_$ac_lib_var=yes"
9753 else 9801 else
9754 echo "configure: failed program was:" >&5 9802 echo "configure: failed program was:" >&5
9755 cat conftest.$ac_ext >&5 9803 cat conftest.$ac_ext >&5
9782 fi 9830 fi
9783 fi 9831 fi
9784 9832
9785 if test "$with_database_berkdb" != "no"; then 9833 if test "$with_database_berkdb" != "no"; then
9786 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 9834 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
9787 echo "configure:9788: checking for dbopen" >&5 9835 echo "configure:9836: checking for dbopen" >&5
9788 9836
9789 cat > conftest.$ac_ext <<EOF 9837 cat > conftest.$ac_ext <<EOF
9790 #line 9791 "configure" 9838 #line 9839 "configure"
9791 #include "confdefs.h" 9839 #include "confdefs.h"
9792 /* System header to define __stub macros and hopefully few prototypes, 9840 /* System header to define __stub macros and hopefully few prototypes,
9793 which can conflict with char dbopen(); below. */ 9841 which can conflict with char dbopen(); below. */
9794 #include <assert.h> 9842 #include <assert.h>
9795 /* Override any gcc2 internal prototype to avoid an error. */ 9843 /* Override any gcc2 internal prototype to avoid an error. */
9808 dbopen(); 9856 dbopen();
9809 #endif 9857 #endif
9810 9858
9811 ; return 0; } 9859 ; return 0; }
9812 EOF 9860 EOF
9813 if { (eval echo configure:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9861 if { (eval echo configure:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9814 rm -rf conftest* 9862 rm -rf conftest*
9815 eval "ac_cv_func_dbopen=yes" 9863 eval "ac_cv_func_dbopen=yes"
9816 else 9864 else
9817 echo "configure: failed program was:" >&5 9865 echo "configure: failed program was:" >&5
9818 cat conftest.$ac_ext >&5 9866 cat conftest.$ac_ext >&5
9829 fi 9877 fi
9830 9878
9831 if test "$need_libdb" != "no"; then 9879 if test "$need_libdb" != "no"; then
9832 9880
9833 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 9881 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
9834 echo "configure:9835: checking for dbopen in -ldb" >&5 9882 echo "configure:9883: checking for dbopen in -ldb" >&5
9835 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` 9883 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
9836 9884
9837 xe_check_libs=" -ldb " 9885 xe_check_libs=" -ldb "
9838 cat > conftest.$ac_ext <<EOF 9886 cat > conftest.$ac_ext <<EOF
9839 #line 9840 "configure" 9887 #line 9888 "configure"
9840 #include "confdefs.h" 9888 #include "confdefs.h"
9841 /* Override any gcc2 internal prototype to avoid an error. */ 9889 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2 9890 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */ 9891 builtin and then its argument prototype would still apply. */
9844 char dbopen(); 9892 char dbopen();
9845 9893
9846 int main() { 9894 int main() {
9847 dbopen() 9895 dbopen()
9848 ; return 0; } 9896 ; return 0; }
9849 EOF 9897 EOF
9850 if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 9898 if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9851 rm -rf conftest* 9899 rm -rf conftest*
9852 eval "ac_cv_lib_$ac_lib_var=yes" 9900 eval "ac_cv_lib_$ac_lib_var=yes"
9853 else 9901 else
9854 echo "configure: failed program was:" >&5 9902 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5 9903 cat conftest.$ac_ext >&5
9869 9917
9870 fi 9918 fi
9871 if test "$with_database_berkdb" = "yes"; then 9919 if test "$with_database_berkdb" = "yes"; then
9872 for path in "db/db.h" "db.h"; do 9920 for path in "db/db.h" "db.h"; do
9873 cat > conftest.$ac_ext <<EOF 9921 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure" 9922 #line 9923 "configure"
9875 #include "confdefs.h" 9923 #include "confdefs.h"
9876 #ifdef HAVE_INTTYPES_H 9924 #ifdef HAVE_INTTYPES_H
9877 #define __BIT_TYPES_DEFINED__ 9925 #define __BIT_TYPES_DEFINED__
9878 #include <inttypes.h> 9926 #include <inttypes.h>
9879 typedef uint8_t u_int8_t; 9927 typedef uint8_t u_int8_t;
9892 9940
9893 int main() { 9941 int main() {
9894 9942
9895 ; return 0; } 9943 ; return 0; }
9896 EOF 9944 EOF
9897 if { (eval echo configure:9898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 9945 if { (eval echo configure:9946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9898 rm -rf conftest* 9946 rm -rf conftest*
9899 db_h_path="$path"; break 9947 db_h_path="$path"; break
9900 else 9948 else
9901 echo "configure: failed program was:" >&5 9949 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5 9950 cat conftest.$ac_ext >&5
9944 fi 9992 fi
9945 9993
9946 if test "$with_socks" = "yes"; then 9994 if test "$with_socks" = "yes"; then
9947 9995
9948 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 9996 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
9949 echo "configure:9950: checking for SOCKSinit in -lsocks" >&5 9997 echo "configure:9998: checking for SOCKSinit in -lsocks" >&5
9950 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 9998 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
9951 9999
9952 xe_check_libs=" -lsocks " 10000 xe_check_libs=" -lsocks "
9953 cat > conftest.$ac_ext <<EOF 10001 cat > conftest.$ac_ext <<EOF
9954 #line 9955 "configure" 10002 #line 10003 "configure"
9955 #include "confdefs.h" 10003 #include "confdefs.h"
9956 /* Override any gcc2 internal prototype to avoid an error. */ 10004 /* Override any gcc2 internal prototype to avoid an error. */
9957 /* We use char because int might match the return type of a gcc2 10005 /* We use char because int might match the return type of a gcc2
9958 builtin and then its argument prototype would still apply. */ 10006 builtin and then its argument prototype would still apply. */
9959 char SOCKSinit(); 10007 char SOCKSinit();
9960 10008
9961 int main() { 10009 int main() {
9962 SOCKSinit() 10010 SOCKSinit()
9963 ; return 0; } 10011 ; return 0; }
9964 EOF 10012 EOF
9965 if { (eval echo configure:9966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
9966 rm -rf conftest* 10014 rm -rf conftest*
9967 eval "ac_cv_lib_$ac_lib_var=yes" 10015 eval "ac_cv_lib_$ac_lib_var=yes"
9968 else 10016 else
9969 echo "configure: failed program was:" >&5 10017 echo "configure: failed program was:" >&5
9970 cat conftest.$ac_ext >&5 10018 cat conftest.$ac_ext >&5
10650 s%@X_CFLAGS@%$X_CFLAGS%g 10698 s%@X_CFLAGS@%$X_CFLAGS%g
10651 s%@X_PRE_LIBS@%$X_PRE_LIBS%g 10699 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
10652 s%@X_LIBS@%$X_LIBS%g 10700 s%@X_LIBS@%$X_LIBS%g
10653 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 10701 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
10654 s%@libs_xauth@%$libs_xauth%g 10702 s%@libs_xauth@%$libs_xauth%g
10703 s%@OFFIX_O@%$OFFIX_O%g
10655 s%@lwlib_objs@%$lwlib_objs%g 10704 s%@lwlib_objs@%$lwlib_objs%g
10656 s%@ALLOCA@%$ALLOCA%g 10705 s%@ALLOCA@%$ALLOCA%g
10657 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g 10706 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
10658 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g 10707 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
10659 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g 10708 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g