comparison configure @ 1470:1364f9716d7b

[xemacs-hg @ 2003-05-10 02:57:05 by youngs] 2003-05-10 Steve Youngs <youngs@xemacs.org> * Revert this patch: 2003-05-01 Andrew Begel <abegel@CS.Berkeley.EDU> * configure.in: Move module detection to after src/ is added to MAKE_SUBDIR. On MacOS X, building modules requires xemacs to already be built. * aclocal.m4 (XE_SHLIB_STUFF): Properly define ellcc flags for MacOS X. It was stopping certain libs from making their way into the Makefiles. * configure: Regenerate.
author youngs
date Sat, 10 May 2003 02:57:07 +0000
parents b02bdcffb55f
children d968d4073031
comparison
equal deleted inserted replaced
1469:51cfeb2ed271 1470:1364f9716d7b
4637 4637
4638 cat > conftest.$ac_ext <<EOF 4638 cat > conftest.$ac_ext <<EOF
4639 #line 4640 "configure" 4639 #line 4640 "configure"
4640 #include "confdefs.h" 4640 #include "confdefs.h"
4641 #include <stdio.h> 4641 #include <stdio.h>
4642 #include <sys/types.h>
4643 main() 4642 main()
4644 { 4643 {
4645 FILE *f=fopen("conftestval", "w"); 4644 FILE *f=fopen("conftestval", "w");
4646 if (!f) exit(1); 4645 if (!f) exit(1);
4647 fprintf(f, "%d\n", sizeof(short)); 4646 fprintf(f, "%d\n", sizeof(short));
4648 exit(0); 4647 exit(0);
4649 } 4648 }
4650 EOF 4649 EOF
4651 if { (eval echo configure:4652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4650 if { (eval echo configure:4651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4652 then 4651 then
4653 ac_cv_sizeof_short=`cat conftestval` 4652 ac_cv_sizeof_short=`cat conftestval`
4654 else 4653 else
4655 conftest_rc="$?" 4654 conftest_rc="$?"
4656 echo "configure: failed program was:" >&5 4655 echo "configure: failed program was:" >&5
4674 echo "*** PANIC *** Configure tests are not working - compiler is broken." 4673 echo "*** PANIC *** Configure tests are not working - compiler is broken."
4675 echo "*** PANIC *** Please examine config.log for compilation errors." 4674 echo "*** PANIC *** Please examine config.log for compilation errors."
4676 exit 1 4675 exit 1
4677 fi 4676 fi
4678 echo $ac_n "checking size of int""... $ac_c" 1>&6 4677 echo $ac_n "checking size of int""... $ac_c" 1>&6
4679 echo "configure:4680: checking size of int" >&5 4678 echo "configure:4679: checking size of int" >&5
4680 4679
4681 cat > conftest.$ac_ext <<EOF 4680 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure" 4681 #line 4682 "configure"
4683 #include "confdefs.h" 4682 #include "confdefs.h"
4684 #include <stdio.h> 4683 #include <stdio.h>
4685 #include <sys/types.h>
4686 main() 4684 main()
4687 { 4685 {
4688 FILE *f=fopen("conftestval", "w"); 4686 FILE *f=fopen("conftestval", "w");
4689 if (!f) exit(1); 4687 if (!f) exit(1);
4690 fprintf(f, "%d\n", sizeof(int)); 4688 fprintf(f, "%d\n", sizeof(int));
4691 exit(0); 4689 exit(0);
4692 } 4690 }
4693 EOF 4691 EOF
4694 if { (eval echo configure:4695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4695 then 4693 then
4696 ac_cv_sizeof_int=`cat conftestval` 4694 ac_cv_sizeof_int=`cat conftestval`
4697 else 4695 else
4698 conftest_rc="$?" 4696 conftest_rc="$?"
4699 echo "configure: failed program was:" >&5 4697 echo "configure: failed program was:" >&5
4711 EOF 4709 EOF
4712 } 4710 }
4713 4711
4714 4712
4715 echo $ac_n "checking size of long""... $ac_c" 1>&6 4713 echo $ac_n "checking size of long""... $ac_c" 1>&6
4716 echo "configure:4717: checking size of long" >&5 4714 echo "configure:4715: checking size of long" >&5
4717 4715
4718 cat > conftest.$ac_ext <<EOF 4716 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure" 4717 #line 4718 "configure"
4720 #include "confdefs.h" 4718 #include "confdefs.h"
4721 #include <stdio.h> 4719 #include <stdio.h>
4722 #include <sys/types.h>
4723 main() 4720 main()
4724 { 4721 {
4725 FILE *f=fopen("conftestval", "w"); 4722 FILE *f=fopen("conftestval", "w");
4726 if (!f) exit(1); 4723 if (!f) exit(1);
4727 fprintf(f, "%d\n", sizeof(long)); 4724 fprintf(f, "%d\n", sizeof(long));
4728 exit(0); 4725 exit(0);
4729 } 4726 }
4730 EOF 4727 EOF
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4728 if { (eval echo configure:4729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4732 then 4729 then
4733 ac_cv_sizeof_long=`cat conftestval` 4730 ac_cv_sizeof_long=`cat conftestval`
4734 else 4731 else
4735 conftest_rc="$?" 4732 conftest_rc="$?"
4736 echo "configure: failed program was:" >&5 4733 echo "configure: failed program was:" >&5
4748 EOF 4745 EOF
4749 } 4746 }
4750 4747
4751 4748
4752 echo $ac_n "checking size of long long""... $ac_c" 1>&6 4749 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4753 echo "configure:4754: checking size of long long" >&5 4750 echo "configure:4751: checking size of long long" >&5
4754 4751
4755 cat > conftest.$ac_ext <<EOF 4752 cat > conftest.$ac_ext <<EOF
4756 #line 4757 "configure" 4753 #line 4754 "configure"
4757 #include "confdefs.h" 4754 #include "confdefs.h"
4758 #include <stdio.h> 4755 #include <stdio.h>
4759 #include <sys/types.h>
4760 main() 4756 main()
4761 { 4757 {
4762 FILE *f=fopen("conftestval", "w"); 4758 FILE *f=fopen("conftestval", "w");
4763 if (!f) exit(1); 4759 if (!f) exit(1);
4764 fprintf(f, "%d\n", sizeof(long long)); 4760 fprintf(f, "%d\n", sizeof(long long));
4765 exit(0); 4761 exit(0);
4766 } 4762 }
4767 EOF 4763 EOF
4768 if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4764 if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4769 then 4765 then
4770 ac_cv_sizeof_long_long=`cat conftestval` 4766 ac_cv_sizeof_long_long=`cat conftestval`
4771 else 4767 else
4772 conftest_rc="$?" 4768 conftest_rc="$?"
4773 echo "configure: failed program was:" >&5 4769 echo "configure: failed program was:" >&5
4785 EOF 4781 EOF
4786 } 4782 }
4787 4783
4788 4784
4789 echo $ac_n "checking size of void *""... $ac_c" 1>&6 4785 echo $ac_n "checking size of void *""... $ac_c" 1>&6
4790 echo "configure:4791: checking size of void *" >&5 4786 echo "configure:4787: checking size of void *" >&5
4791 4787
4792 cat > conftest.$ac_ext <<EOF 4788 cat > conftest.$ac_ext <<EOF
4793 #line 4794 "configure" 4789 #line 4790 "configure"
4794 #include "confdefs.h" 4790 #include "confdefs.h"
4795 #include <stdio.h> 4791 #include <stdio.h>
4796 #include <sys/types.h>
4797 main() 4792 main()
4798 { 4793 {
4799 FILE *f=fopen("conftestval", "w"); 4794 FILE *f=fopen("conftestval", "w");
4800 if (!f) exit(1); 4795 if (!f) exit(1);
4801 fprintf(f, "%d\n", sizeof(void *)); 4796 fprintf(f, "%d\n", sizeof(void *));
4802 exit(0); 4797 exit(0);
4803 } 4798 }
4804 EOF 4799 EOF
4805 if { (eval echo configure:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 4800 if { (eval echo configure:4801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
4806 then 4801 then
4807 ac_cv_sizeof_void_p=`cat conftestval` 4802 ac_cv_sizeof_void_p=`cat conftestval`
4808 else 4803 else
4809 conftest_rc="$?" 4804 conftest_rc="$?"
4810 echo "configure: failed program was:" >&5 4805 echo "configure: failed program was:" >&5
4823 } 4818 }
4824 4819
4825 4820
4826 4821
4827 echo $ac_n "checking for long file names""... $ac_c" 1>&6 4822 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4828 echo "configure:4829: checking for long file names" >&5 4823 echo "configure:4824: checking for long file names" >&5
4829 4824
4830 ac_cv_sys_long_file_names=yes 4825 ac_cv_sys_long_file_names=yes
4831 # Test for long file names in all the places we know might matter: 4826 # Test for long file names in all the places we know might matter:
4832 # . the current directory, where building will happen 4827 # . the current directory, where building will happen
4833 # $prefix/lib where we will be installing things 4828 # $prefix/lib where we will be installing things
4869 4864
4870 fi 4865 fi
4871 4866
4872 4867
4873 echo $ac_n "checking for sin""... $ac_c" 1>&6 4868 echo $ac_n "checking for sin""... $ac_c" 1>&6
4874 echo "configure:4875: checking for sin" >&5 4869 echo "configure:4870: checking for sin" >&5
4875 4870
4876 cat > conftest.$ac_ext <<EOF 4871 cat > conftest.$ac_ext <<EOF
4877 #line 4878 "configure" 4872 #line 4873 "configure"
4878 #include "confdefs.h" 4873 #include "confdefs.h"
4879 /* System header to define __stub macros and hopefully few prototypes, 4874 /* System header to define __stub macros and hopefully few prototypes,
4880 which can conflict with char sin(); below. */ 4875 which can conflict with char sin(); below. */
4881 #include <assert.h> 4876 #include <assert.h>
4882 /* Override any gcc2 internal prototype to avoid an error. */ 4877 /* Override any gcc2 internal prototype to avoid an error. */
4895 sin(); 4890 sin();
4896 #endif 4891 #endif
4897 4892
4898 ; return 0; } 4893 ; return 0; }
4899 EOF 4894 EOF
4900 if { (eval echo configure:4901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4901 rm -rf conftest* 4896 rm -rf conftest*
4902 eval "ac_cv_func_sin=yes" 4897 eval "ac_cv_func_sin=yes"
4903 else 4898 else
4904 echo "configure: failed program was:" >&5 4899 echo "configure: failed program was:" >&5
4905 cat conftest.$ac_ext >&5 4900 cat conftest.$ac_ext >&5
4913 : 4908 :
4914 else 4909 else
4915 echo "$ac_t""no" 1>&6 4910 echo "$ac_t""no" 1>&6
4916 4911
4917 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 4912 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
4918 echo "configure:4919: checking for sin in -lm" >&5 4913 echo "configure:4914: checking for sin in -lm" >&5
4919 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` 4914 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
4920 4915
4921 xe_check_libs=" -lm " 4916 xe_check_libs=" -lm "
4922 cat > conftest.$ac_ext <<EOF 4917 cat > conftest.$ac_ext <<EOF
4923 #line 4924 "configure" 4918 #line 4919 "configure"
4924 #include "confdefs.h" 4919 #include "confdefs.h"
4925 /* Override any gcc2 internal prototype to avoid an error. */ 4920 /* Override any gcc2 internal prototype to avoid an error. */
4926 /* We use char because int might match the return type of a gcc2 4921 /* We use char because int might match the return type of a gcc2
4927 builtin and then its argument prototype would still apply. */ 4922 builtin and then its argument prototype would still apply. */
4928 char sin(); 4923 char sin();
4929 4924
4930 int main() { 4925 int main() {
4931 sin() 4926 sin()
4932 ; return 0; } 4927 ; return 0; }
4933 EOF 4928 EOF
4934 if { (eval echo configure:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4929 if { (eval echo configure:4930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4935 rm -rf conftest* 4930 rm -rf conftest*
4936 eval "ac_cv_lib_$ac_lib_var=yes" 4931 eval "ac_cv_lib_$ac_lib_var=yes"
4937 else 4932 else
4938 echo "configure: failed program was:" >&5 4933 echo "configure: failed program was:" >&5
4939 cat conftest.$ac_ext >&5 4934 cat conftest.$ac_ext >&5
4964 4959
4965 fi 4960 fi
4966 4961
4967 4962
4968 cat > conftest.$ac_ext <<EOF 4963 cat > conftest.$ac_ext <<EOF
4969 #line 4970 "configure" 4964 #line 4965 "configure"
4970 #include "confdefs.h" 4965 #include "confdefs.h"
4971 #include <math.h> 4966 #include <math.h>
4972 int main() { 4967 int main() {
4973 return atanh(1.0) + asinh(1.0) + acosh(1.0); 4968 return atanh(1.0) + asinh(1.0) + acosh(1.0);
4974 ; return 0; } 4969 ; return 0; }
4975 EOF 4970 EOF
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4971 if { (eval echo configure:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4977 rm -rf conftest* 4972 rm -rf conftest*
4978 { test "$extra_verbose" = "yes" && cat << \EOF 4973 { test "$extra_verbose" = "yes" && cat << \EOF
4979 Defining HAVE_INVERSE_HYPERBOLIC 4974 Defining HAVE_INVERSE_HYPERBOLIC
4980 EOF 4975 EOF
4981 cat >> confdefs.h <<\EOF 4976 cat >> confdefs.h <<\EOF
4990 rm -f conftest* 4985 rm -f conftest*
4991 4986
4992 for ac_func in mkstemp 4987 for ac_func in mkstemp
4993 do 4988 do
4994 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4995 echo "configure:4996: checking for $ac_func" >&5 4990 echo "configure:4991: checking for $ac_func" >&5
4996 4991
4997 cat > conftest.$ac_ext <<EOF 4992 cat > conftest.$ac_ext <<EOF
4998 #line 4999 "configure" 4993 #line 4994 "configure"
4999 #include "confdefs.h" 4994 #include "confdefs.h"
5000 /* System header to define __stub macros and hopefully few prototypes, 4995 /* System header to define __stub macros and hopefully few prototypes,
5001 which can conflict with char $ac_func(); below. */ 4996 which can conflict with char $ac_func(); below. */
5002 #include <assert.h> 4997 #include <assert.h>
5003 /* Override any gcc2 internal prototype to avoid an error. */ 4998 /* Override any gcc2 internal prototype to avoid an error. */
5016 $ac_func(); 5011 $ac_func();
5017 #endif 5012 #endif
5018 5013
5019 ; return 0; } 5014 ; return 0; }
5020 EOF 5015 EOF
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5016 if { (eval echo configure:5017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 rm -rf conftest* 5017 rm -rf conftest*
5023 eval "ac_cv_func_$ac_func=yes" 5018 eval "ac_cv_func_$ac_func=yes"
5024 else 5019 else
5025 echo "configure: failed program was:" >&5 5020 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5 5021 cat conftest.$ac_ext >&5
5045 fi 5040 fi
5046 done 5041 done
5047 5042
5048 5043
5049 echo "checking type of mail spool file locking" 1>&6 5044 echo "checking type of mail spool file locking" 1>&6
5050 echo "configure:5051: checking type of mail spool file locking" >&5 5045 echo "configure:5046: checking type of mail spool file locking" >&5
5051 for ac_func in lockf flock 5046 for ac_func in lockf flock
5052 do 5047 do
5053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5054 echo "configure:5055: checking for $ac_func" >&5 5049 echo "configure:5050: checking for $ac_func" >&5
5055 5050
5056 cat > conftest.$ac_ext <<EOF 5051 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure" 5052 #line 5053 "configure"
5058 #include "confdefs.h" 5053 #include "confdefs.h"
5059 /* System header to define __stub macros and hopefully few prototypes, 5054 /* System header to define __stub macros and hopefully few prototypes,
5060 which can conflict with char $ac_func(); below. */ 5055 which can conflict with char $ac_func(); below. */
5061 #include <assert.h> 5056 #include <assert.h>
5062 /* Override any gcc2 internal prototype to avoid an error. */ 5057 /* Override any gcc2 internal prototype to avoid an error. */
5075 $ac_func(); 5070 $ac_func();
5076 #endif 5071 #endif
5077 5072
5078 ; return 0; } 5073 ; return 0; }
5079 EOF 5074 EOF
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5075 if { (eval echo configure:5076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5081 rm -rf conftest* 5076 rm -rf conftest*
5082 eval "ac_cv_func_$ac_func=yes" 5077 eval "ac_cv_func_$ac_func=yes"
5083 else 5078 else
5084 echo "configure: failed program was:" >&5 5079 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5 5080 cat conftest.$ac_ext >&5
5157 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; } 5152 { echo "Error:" "locking mail locking requested but not available." >&2; exit 1; }
5158 5153
5159 case "$opsys" in decosf*) 5154 case "$opsys" in decosf*)
5160 5155
5161 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 5156 echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6
5162 echo "configure:5163: checking for cma_open in -lpthreads" >&5 5157 echo "configure:5158: checking for cma_open in -lpthreads" >&5
5163 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` 5158 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'`
5164 5159
5165 xe_check_libs=" -lpthreads " 5160 xe_check_libs=" -lpthreads "
5166 cat > conftest.$ac_ext <<EOF 5161 cat > conftest.$ac_ext <<EOF
5167 #line 5168 "configure" 5162 #line 5163 "configure"
5168 #include "confdefs.h" 5163 #include "confdefs.h"
5169 /* Override any gcc2 internal prototype to avoid an error. */ 5164 /* Override any gcc2 internal prototype to avoid an error. */
5170 /* We use char because int might match the return type of a gcc2 5165 /* We use char because int might match the return type of a gcc2
5171 builtin and then its argument prototype would still apply. */ 5166 builtin and then its argument prototype would still apply. */
5172 char cma_open(); 5167 char cma_open();
5173 5168
5174 int main() { 5169 int main() {
5175 cma_open() 5170 cma_open()
5176 ; return 0; } 5171 ; return 0; }
5177 EOF 5172 EOF
5178 if { (eval echo configure:5179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5173 if { (eval echo configure:5174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5179 rm -rf conftest* 5174 rm -rf conftest*
5180 eval "ac_cv_lib_$ac_lib_var=yes" 5175 eval "ac_cv_lib_$ac_lib_var=yes"
5181 else 5176 else
5182 echo "configure: failed program was:" >&5 5177 echo "configure: failed program was:" >&5
5183 cat conftest.$ac_ext >&5 5178 cat conftest.$ac_ext >&5
5210 c_switch_site="$c_switch_site -threads" ;; 5205 c_switch_site="$c_switch_site -threads" ;;
5211 esac 5206 esac
5212 5207
5213 5208
5214 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 5209 echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6
5215 echo "configure:5216: checking whether the -xildoff compiler flag is required" >&5 5210 echo "configure:5211: checking whether the -xildoff compiler flag is required" >&5
5216 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then 5211 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then
5217 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; 5212 if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ;
5218 then echo "$ac_t""no" 1>&6; 5213 then echo "$ac_t""no" 1>&6;
5219 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi 5214 else echo "$ac_t""yes" 1>&6; ld_switch_site="$ld_switch_site -xildoff" && if test "$extra_verbose" = "yes"; then echo " Appending \"-xildoff\" to \$ld_switch_site"; fi
5220 fi 5215 fi
5222 fi 5217 fi
5223 5218
5224 if test "$opsys" = "sol2"; then 5219 if test "$opsys" = "sol2"; then
5225 if test "$os_release" -ge 56; then 5220 if test "$os_release" -ge 56; then
5226 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 5221 echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6
5227 echo "configure:5228: checking for \"-z ignore\" linker flag" >&5 5222 echo "configure:5223: checking for \"-z ignore\" linker flag" >&5
5228 case "`ld -h 2>&1`" in 5223 case "`ld -h 2>&1`" in
5229 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 5224 *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6
5230 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; 5225 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;;
5231 *) echo "$ac_t""no" 1>&6 ;; 5226 *) echo "$ac_t""no" 1>&6 ;;
5232 esac 5227 esac
5233 fi 5228 fi
5234 fi 5229 fi
5235 5230
5236 5231
5237 echo "checking "for specified window system"" 1>&6 5232 echo "checking "for specified window system"" 1>&6
5238 echo "configure:5239: checking "for specified window system"" >&5 5233 echo "configure:5234: checking "for specified window system"" >&5
5239 5234
5240 5235
5241 GNOME_CONFIG=no 5236 GNOME_CONFIG=no
5242 GTK_CONFIG=no 5237 GTK_CONFIG=no
5243 5238
5244 if test "$with_gnome" != "no"; then 5239 if test "$with_gnome" != "no"; then
5245 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 5240 echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6
5246 echo "configure:5247: checking for GNOME configuration script" >&5 5241 echo "configure:5242: checking for GNOME configuration script" >&5
5247 for possible in gnome-config 5242 for possible in gnome-config
5248 do 5243 do
5249 possible_version=`${possible} --version 2> /dev/null` 5244 possible_version=`${possible} --version 2> /dev/null`
5250 if test "x${possible_version}" != "x"; then 5245 if test "x${possible_version}" != "x"; then
5251 GNOME_CONFIG="${possible}" 5246 GNOME_CONFIG="${possible}"
5272 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi 5267 c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi
5273 fi 5268 fi
5274 5269
5275 if test "$with_gtk" != "no";then 5270 if test "$with_gtk" != "no";then
5276 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 5271 echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6
5277 echo "configure:5278: checking for GTK configuration script" >&5 5272 echo "configure:5273: checking for GTK configuration script" >&5
5278 for possible in gtk12-config gtk14-config gtk-config 5273 for possible in gtk12-config gtk14-config gtk-config
5279 do 5274 do
5280 possible_version=`${possible} --version 2> /dev/null` 5275 possible_version=`${possible} --version 2> /dev/null`
5281 if test "x${possible_version}" != "x"; then 5276 if test "x${possible_version}" != "x"; then
5282 GTK_CONFIG="${possible}" 5277 GTK_CONFIG="${possible}"
5294 echo "$ac_t""${GTK_CONFIG}" 1>&6 5289 echo "$ac_t""${GTK_CONFIG}" 1>&6
5295 fi 5290 fi
5296 5291
5297 if test "${GTK_CONFIG}" != "no"; then 5292 if test "${GTK_CONFIG}" != "no"; then
5298 echo $ac_n "checking gtk version""... $ac_c" 1>&6 5293 echo $ac_n "checking gtk version""... $ac_c" 1>&6
5299 echo "configure:5300: checking gtk version" >&5 5294 echo "configure:5295: checking gtk version" >&5
5300 GTK_VERSION=`${GTK_CONFIG} --version` 5295 GTK_VERSION=`${GTK_CONFIG} --version`
5301 echo "$ac_t""${GTK_VERSION}" 1>&6 5296 echo "$ac_t""${GTK_VERSION}" 1>&6
5302 5297
5303 echo $ac_n "checking gtk libs""... $ac_c" 1>&6 5298 echo $ac_n "checking gtk libs""... $ac_c" 1>&6
5304 echo "configure:5305: checking gtk libs" >&5 5299 echo "configure:5300: checking gtk libs" >&5
5305 GTK_LIBS=`${GTK_CONFIG} --libs` 5300 GTK_LIBS=`${GTK_CONFIG} --libs`
5306 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi 5301 libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi
5307 echo "$ac_t""${GTK_LIBS}" 1>&6 5302 echo "$ac_t""${GTK_LIBS}" 1>&6
5308 5303
5309 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 5304 echo $ac_n "checking gtk cflags""... $ac_c" 1>&6
5310 echo "configure:5311: checking gtk cflags" >&5 5305 echo "configure:5306: checking gtk cflags" >&5
5311 GTK_CFLAGS=`${GTK_CONFIG} --cflags` 5306 GTK_CFLAGS=`${GTK_CONFIG} --cflags`
5312 if test "$GCC" = "yes"; then 5307 if test "$GCC" = "yes"; then
5313 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow" 5308 GTK_CFLAGS="${GTK_CFLAGS} -Wno-shadow"
5314 fi 5309 fi
5315 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi 5310 c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi
5316 echo "$ac_t""${GTK_CFLAGS}" 1>&6 5311 echo "$ac_t""${GTK_CFLAGS}" 1>&6
5317 5312
5318 5313
5319 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 5314 echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6
5320 echo "configure:5321: checking for main in -lgdk_imlib" >&5 5315 echo "configure:5316: checking for main in -lgdk_imlib" >&5
5321 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` 5316 ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'`
5322 5317
5323 xe_check_libs=" -lgdk_imlib " 5318 xe_check_libs=" -lgdk_imlib "
5324 cat > conftest.$ac_ext <<EOF 5319 cat > conftest.$ac_ext <<EOF
5325 #line 5326 "configure" 5320 #line 5321 "configure"
5326 #include "confdefs.h" 5321 #include "confdefs.h"
5327 5322
5328 int main() { 5323 int main() {
5329 main() 5324 main()
5330 ; return 0; } 5325 ; return 0; }
5331 EOF 5326 EOF
5332 if { (eval echo configure:5333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5327 if { (eval echo configure:5328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5333 rm -rf conftest* 5328 rm -rf conftest*
5334 eval "ac_cv_lib_$ac_lib_var=yes" 5329 eval "ac_cv_lib_$ac_lib_var=yes"
5335 else 5330 else
5336 echo "configure: failed program was:" >&5 5331 echo "configure: failed program was:" >&5
5337 cat conftest.$ac_ext >&5 5332 cat conftest.$ac_ext >&5
5349 fi 5344 fi
5350 5345
5351 5346
5352 5347
5353 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 5348 echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6
5354 echo "configure:5355: checking for Imlib_init in -lImlib" >&5 5349 echo "configure:5350: checking for Imlib_init in -lImlib" >&5
5355 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` 5350 ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'`
5356 5351
5357 xe_check_libs=" -lImlib " 5352 xe_check_libs=" -lImlib "
5358 cat > conftest.$ac_ext <<EOF 5353 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure" 5354 #line 5355 "configure"
5360 #include "confdefs.h" 5355 #include "confdefs.h"
5361 /* Override any gcc2 internal prototype to avoid an error. */ 5356 /* Override any gcc2 internal prototype to avoid an error. */
5362 /* We use char because int might match the return type of a gcc2 5357 /* We use char because int might match the return type of a gcc2
5363 builtin and then its argument prototype would still apply. */ 5358 builtin and then its argument prototype would still apply. */
5364 char Imlib_init(); 5359 char Imlib_init();
5365 5360
5366 int main() { 5361 int main() {
5367 Imlib_init() 5362 Imlib_init()
5368 ; return 0; } 5363 ; return 0; }
5369 EOF 5364 EOF
5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5371 rm -rf conftest* 5366 rm -rf conftest*
5372 eval "ac_cv_lib_$ac_lib_var=yes" 5367 eval "ac_cv_lib_$ac_lib_var=yes"
5373 else 5368 else
5374 echo "configure: failed program was:" >&5 5369 echo "configure: failed program was:" >&5
5375 cat conftest.$ac_ext >&5 5370 cat conftest.$ac_ext >&5
5388 5383
5389 5384
5390 for ac_func in gdk_imlib_init 5385 for ac_func in gdk_imlib_init
5391 do 5386 do
5392 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5393 echo "configure:5394: checking for $ac_func" >&5 5388 echo "configure:5389: checking for $ac_func" >&5
5394 5389
5395 cat > conftest.$ac_ext <<EOF 5390 cat > conftest.$ac_ext <<EOF
5396 #line 5397 "configure" 5391 #line 5392 "configure"
5397 #include "confdefs.h" 5392 #include "confdefs.h"
5398 /* System header to define __stub macros and hopefully few prototypes, 5393 /* System header to define __stub macros and hopefully few prototypes,
5399 which can conflict with char $ac_func(); below. */ 5394 which can conflict with char $ac_func(); below. */
5400 #include <assert.h> 5395 #include <assert.h>
5401 /* Override any gcc2 internal prototype to avoid an error. */ 5396 /* Override any gcc2 internal prototype to avoid an error. */
5414 $ac_func(); 5409 $ac_func();
5415 #endif 5410 #endif
5416 5411
5417 ; return 0; } 5412 ; return 0; }
5418 EOF 5413 EOF
5419 if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5414 if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5420 rm -rf conftest* 5415 rm -rf conftest*
5421 eval "ac_cv_func_$ac_func=yes" 5416 eval "ac_cv_func_$ac_func=yes"
5422 else 5417 else
5423 echo "configure: failed program was:" >&5 5418 echo "configure: failed program was:" >&5
5424 cat conftest.$ac_ext >&5 5419 cat conftest.$ac_ext >&5
5480 LDFLAGS="${LDFLAGS} ${GTK_LIBS}" 5475 LDFLAGS="${LDFLAGS} ${GTK_LIBS}"
5481 for ac_hdr in glade/glade.h glade.h 5476 for ac_hdr in glade/glade.h glade.h
5482 do 5477 do
5483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5478 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5479 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5485 echo "configure:5486: checking for $ac_hdr" >&5 5480 echo "configure:5481: checking for $ac_hdr" >&5
5486 5481
5487 cat > conftest.$ac_ext <<EOF 5482 cat > conftest.$ac_ext <<EOF
5488 #line 5489 "configure" 5483 #line 5484 "configure"
5489 #include "confdefs.h" 5484 #include "confdefs.h"
5490 #include <$ac_hdr> 5485 #include <$ac_hdr>
5491 EOF 5486 EOF
5492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5487 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5493 { (eval echo configure:5494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5488 { (eval echo configure:5489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5489 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5495 if test -z "$ac_err"; then 5490 if test -z "$ac_err"; then
5496 rm -rf conftest* 5491 rm -rf conftest*
5497 eval "ac_cv_header_$ac_safe=yes" 5492 eval "ac_cv_header_$ac_safe=yes"
5498 else 5493 else
5519 fi 5514 fi
5520 done 5515 done
5521 5516
5522 5517
5523 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 5518 echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6
5524 echo "configure:5525: checking for main in -lxml" >&5 5519 echo "configure:5520: checking for main in -lxml" >&5
5525 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` 5520 ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'`
5526 5521
5527 xe_check_libs=" -lxml " 5522 xe_check_libs=" -lxml "
5528 cat > conftest.$ac_ext <<EOF 5523 cat > conftest.$ac_ext <<EOF
5529 #line 5530 "configure" 5524 #line 5525 "configure"
5530 #include "confdefs.h" 5525 #include "confdefs.h"
5531 5526
5532 int main() { 5527 int main() {
5533 main() 5528 main()
5534 ; return 0; } 5529 ; return 0; }
5535 EOF 5530 EOF
5536 if { (eval echo configure:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5531 if { (eval echo configure:5532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5537 rm -rf conftest* 5532 rm -rf conftest*
5538 eval "ac_cv_lib_$ac_lib_var=yes" 5533 eval "ac_cv_lib_$ac_lib_var=yes"
5539 else 5534 else
5540 echo "configure: failed program was:" >&5 5535 echo "configure: failed program was:" >&5
5541 cat conftest.$ac_ext >&5 5536 cat conftest.$ac_ext >&5
5553 fi 5548 fi
5554 5549
5555 5550
5556 5551
5557 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 5552 echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6
5558 echo "configure:5559: checking for main in -lglade" >&5 5553 echo "configure:5554: checking for main in -lglade" >&5
5559 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` 5554 ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'`
5560 5555
5561 xe_check_libs=" -lglade " 5556 xe_check_libs=" -lglade "
5562 cat > conftest.$ac_ext <<EOF 5557 cat > conftest.$ac_ext <<EOF
5563 #line 5564 "configure" 5558 #line 5559 "configure"
5564 #include "confdefs.h" 5559 #include "confdefs.h"
5565 5560
5566 int main() { 5561 int main() {
5567 main() 5562 main()
5568 ; return 0; } 5563 ; return 0; }
5569 EOF 5564 EOF
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5565 if { (eval echo configure:5566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5571 rm -rf conftest* 5566 rm -rf conftest*
5572 eval "ac_cv_lib_$ac_lib_var=yes" 5567 eval "ac_cv_lib_$ac_lib_var=yes"
5573 else 5568 else
5574 echo "configure: failed program was:" >&5 5569 echo "configure: failed program was:" >&5
5575 cat conftest.$ac_ext >&5 5570 cat conftest.$ac_ext >&5
5587 fi 5582 fi
5588 5583
5589 5584
5590 5585
5591 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 5586 echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6
5592 echo "configure:5593: checking for main in -lglade-gnome" >&5 5587 echo "configure:5588: checking for main in -lglade-gnome" >&5
5593 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` 5588 ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'`
5594 5589
5595 xe_check_libs=" -lglade-gnome " 5590 xe_check_libs=" -lglade-gnome "
5596 cat > conftest.$ac_ext <<EOF 5591 cat > conftest.$ac_ext <<EOF
5597 #line 5598 "configure" 5592 #line 5593 "configure"
5598 #include "confdefs.h" 5593 #include "confdefs.h"
5599 5594
5600 int main() { 5595 int main() {
5601 main() 5596 main()
5602 ; return 0; } 5597 ; return 0; }
5603 EOF 5598 EOF
5604 if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5599 if { (eval echo configure:5600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5605 rm -rf conftest* 5600 rm -rf conftest*
5606 eval "ac_cv_lib_$ac_lib_var=yes" 5601 eval "ac_cv_lib_$ac_lib_var=yes"
5607 else 5602 else
5608 echo "configure: failed program was:" >&5 5603 echo "configure: failed program was:" >&5
5609 cat conftest.$ac_ext >&5 5604 cat conftest.$ac_ext >&5
5620 echo "$ac_t""no" 1>&6 5615 echo "$ac_t""no" 1>&6
5621 fi 5616 fi
5622 5617
5623 5618
5624 cat > conftest.$ac_ext <<EOF 5619 cat > conftest.$ac_ext <<EOF
5625 #line 5626 "configure" 5620 #line 5621 "configure"
5626 #include "confdefs.h" 5621 #include "confdefs.h"
5627 #include <glade/glade-xml.h> 5622 #include <glade/glade-xml.h>
5628 EOF 5623 EOF
5629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5630 egrep "char \*txtdomain;" >/dev/null 2>&1; then 5625 egrep "char \*txtdomain;" >/dev/null 2>&1; then
5679 # If we find X, set shell vars x_includes and x_libraries to the 5674 # If we find X, set shell vars x_includes and x_libraries to the
5680 # paths, otherwise set no_x=yes. 5675 # paths, otherwise set no_x=yes.
5681 # Uses ac_ vars as temps to allow command line to override cache and checks. 5676 # Uses ac_ vars as temps to allow command line to override cache and checks.
5682 # --without-x overrides everything else, but does not touch the cache. 5677 # --without-x overrides everything else, but does not touch the cache.
5683 echo $ac_n "checking for X""... $ac_c" 1>&6 5678 echo $ac_n "checking for X""... $ac_c" 1>&6
5684 echo "configure:5685: checking for X" >&5 5679 echo "configure:5680: checking for X" >&5
5685 5680
5686 # Check whether --with-x or --without-x was given. 5681 # Check whether --with-x or --without-x was given.
5687 if test "${with_x+set}" = set; then 5682 if test "${with_x+set}" = set; then
5688 withval="$with_x" 5683 withval="$with_x"
5689 : 5684 :
5739 # Guess where to find include files, by looking for this one X11 .h file. 5734 # Guess where to find include files, by looking for this one X11 .h file.
5740 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 5735 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
5741 5736
5742 # First, try using that file with no special directory specified. 5737 # First, try using that file with no special directory specified.
5743 cat > conftest.$ac_ext <<EOF 5738 cat > conftest.$ac_ext <<EOF
5744 #line 5745 "configure" 5739 #line 5740 "configure"
5745 #include "confdefs.h" 5740 #include "confdefs.h"
5746 #include <$x_direct_test_include> 5741 #include <$x_direct_test_include>
5747 EOF 5742 EOF
5748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5749 { (eval echo configure:5750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5744 { (eval echo configure:5745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5751 if test -z "$ac_err"; then 5746 if test -z "$ac_err"; then
5752 rm -rf conftest* 5747 rm -rf conftest*
5753 # We can compile using X headers with no special include directory. 5748 # We can compile using X headers with no special include directory.
5754 ac_x_includes= 5749 ac_x_includes=
5813 # See if we find them without any special options. 5808 # See if we find them without any special options.
5814 # Don't add to $LIBS permanently. 5809 # Don't add to $LIBS permanently.
5815 ac_save_LIBS="$LIBS" 5810 ac_save_LIBS="$LIBS"
5816 LIBS="-l$x_direct_test_library $LIBS" 5811 LIBS="-l$x_direct_test_library $LIBS"
5817 cat > conftest.$ac_ext <<EOF 5812 cat > conftest.$ac_ext <<EOF
5818 #line 5819 "configure" 5813 #line 5814 "configure"
5819 #include "confdefs.h" 5814 #include "confdefs.h"
5820 5815
5821 int main() { 5816 int main() {
5822 ${x_direct_test_function}() 5817 ${x_direct_test_function}()
5823 ; return 0; } 5818 ; return 0; }
5824 EOF 5819 EOF
5825 if { (eval echo configure:5826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5820 if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5826 rm -rf conftest* 5821 rm -rf conftest*
5827 LIBS="$ac_save_LIBS" 5822 LIBS="$ac_save_LIBS"
5828 # We can link X programs with no special library path. 5823 # We can link X programs with no special library path.
5829 ac_x_libraries= 5824 ac_x_libraries=
5830 else 5825 else
5929 # For Solaris; some versions of Sun CC require a space after -R and 5924 # For Solaris; some versions of Sun CC require a space after -R and
5930 # others require no space. Words are not sufficient . . . . 5925 # others require no space. Words are not sufficient . . . .
5931 case "`(uname -sr) 2>/dev/null`" in 5926 case "`(uname -sr) 2>/dev/null`" in
5932 "SunOS 5"*) 5927 "SunOS 5"*)
5933 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 5928 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
5934 echo "configure:5935: checking whether -R must be followed by a space" >&5 5929 echo "configure:5930: checking whether -R must be followed by a space" >&5
5935 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 5930 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
5936 cat > conftest.$ac_ext <<EOF 5931 cat > conftest.$ac_ext <<EOF
5937 #line 5938 "configure" 5932 #line 5933 "configure"
5938 #include "confdefs.h" 5933 #include "confdefs.h"
5939 5934
5940 int main() { 5935 int main() {
5941 5936
5942 ; return 0; } 5937 ; return 0; }
5943 EOF 5938 EOF
5944 if { (eval echo configure:5945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5939 if { (eval echo configure:5940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5945 rm -rf conftest* 5940 rm -rf conftest*
5946 ac_R_nospace=yes 5941 ac_R_nospace=yes
5947 else 5942 else
5948 echo "configure: failed program was:" >&5 5943 echo "configure: failed program was:" >&5
5949 cat conftest.$ac_ext >&5 5944 cat conftest.$ac_ext >&5
5955 echo "$ac_t""no" 1>&6 5950 echo "$ac_t""no" 1>&6
5956 X_LIBS="$X_LIBS -R$x_libraries" 5951 X_LIBS="$X_LIBS -R$x_libraries"
5957 else 5952 else
5958 LIBS="$ac_xsave_LIBS -R $x_libraries" 5953 LIBS="$ac_xsave_LIBS -R $x_libraries"
5959 cat > conftest.$ac_ext <<EOF 5954 cat > conftest.$ac_ext <<EOF
5960 #line 5961 "configure" 5955 #line 5956 "configure"
5961 #include "confdefs.h" 5956 #include "confdefs.h"
5962 5957
5963 int main() { 5958 int main() {
5964 5959
5965 ; return 0; } 5960 ; return 0; }
5966 EOF 5961 EOF
5967 if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5968 rm -rf conftest* 5963 rm -rf conftest*
5969 ac_R_space=yes 5964 ac_R_space=yes
5970 else 5965 else
5971 echo "configure: failed program was:" >&5 5966 echo "configure: failed program was:" >&5
5972 cat conftest.$ac_ext >&5 5967 cat conftest.$ac_ext >&5
5998 if test "$with_dnet" = "no" ; then 5993 if test "$with_dnet" = "no" ; then
5999 ac_cv_lib_dnet_dnet_ntoa=no 5994 ac_cv_lib_dnet_dnet_ntoa=no
6000 else 5995 else
6001 5996
6002 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 5997 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
6003 echo "configure:6004: checking for dnet_ntoa in -ldnet" >&5 5998 echo "configure:5999: checking for dnet_ntoa in -ldnet" >&5
6004 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 5999 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6005 6000
6006 xe_check_libs=" -ldnet " 6001 xe_check_libs=" -ldnet "
6007 cat > conftest.$ac_ext <<EOF 6002 cat > conftest.$ac_ext <<EOF
6008 #line 6009 "configure" 6003 #line 6004 "configure"
6009 #include "confdefs.h" 6004 #include "confdefs.h"
6010 /* Override any gcc2 internal prototype to avoid an error. */ 6005 /* Override any gcc2 internal prototype to avoid an error. */
6011 /* We use char because int might match the return type of a gcc2 6006 /* We use char because int might match the return type of a gcc2
6012 builtin and then its argument prototype would still apply. */ 6007 builtin and then its argument prototype would still apply. */
6013 char dnet_ntoa(); 6008 char dnet_ntoa();
6014 6009
6015 int main() { 6010 int main() {
6016 dnet_ntoa() 6011 dnet_ntoa()
6017 ; return 0; } 6012 ; return 0; }
6018 EOF 6013 EOF
6019 if { (eval echo configure:6020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6014 if { (eval echo configure:6015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6020 rm -rf conftest* 6015 rm -rf conftest*
6021 eval "ac_cv_lib_$ac_lib_var=yes" 6016 eval "ac_cv_lib_$ac_lib_var=yes"
6022 else 6017 else
6023 echo "configure: failed program was:" >&5 6018 echo "configure: failed program was:" >&5
6024 cat conftest.$ac_ext >&5 6019 cat conftest.$ac_ext >&5
6038 fi 6033 fi
6039 6034
6040 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6035 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6041 6036
6042 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 6037 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
6043 echo "configure:6044: checking for dnet_ntoa in -ldnet_stub" >&5 6038 echo "configure:6039: checking for dnet_ntoa in -ldnet_stub" >&5
6044 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 6039 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
6045 6040
6046 xe_check_libs=" -ldnet_stub " 6041 xe_check_libs=" -ldnet_stub "
6047 cat > conftest.$ac_ext <<EOF 6042 cat > conftest.$ac_ext <<EOF
6048 #line 6049 "configure" 6043 #line 6044 "configure"
6049 #include "confdefs.h" 6044 #include "confdefs.h"
6050 /* Override any gcc2 internal prototype to avoid an error. */ 6045 /* Override any gcc2 internal prototype to avoid an error. */
6051 /* We use char because int might match the return type of a gcc2 6046 /* We use char because int might match the return type of a gcc2
6052 builtin and then its argument prototype would still apply. */ 6047 builtin and then its argument prototype would still apply. */
6053 char dnet_ntoa(); 6048 char dnet_ntoa();
6054 6049
6055 int main() { 6050 int main() {
6056 dnet_ntoa() 6051 dnet_ntoa()
6057 ; return 0; } 6052 ; return 0; }
6058 EOF 6053 EOF
6059 if { (eval echo configure:6060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6054 if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6060 rm -rf conftest* 6055 rm -rf conftest*
6061 eval "ac_cv_lib_$ac_lib_var=yes" 6056 eval "ac_cv_lib_$ac_lib_var=yes"
6062 else 6057 else
6063 echo "configure: failed program was:" >&5 6058 echo "configure: failed program was:" >&5
6064 cat conftest.$ac_ext >&5 6059 cat conftest.$ac_ext >&5
6083 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 6078 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
6084 # needs -lnsl. 6079 # needs -lnsl.
6085 # The nsl library prevents programs from opening the X display 6080 # The nsl library prevents programs from opening the X display
6086 # on Irix 5.2, according to dickey@clark.net. 6081 # on Irix 5.2, according to dickey@clark.net.
6087 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 6082 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
6088 echo "configure:6089: checking for gethostbyname" >&5 6083 echo "configure:6084: checking for gethostbyname" >&5
6089 6084
6090 cat > conftest.$ac_ext <<EOF 6085 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure" 6086 #line 6087 "configure"
6092 #include "confdefs.h" 6087 #include "confdefs.h"
6093 /* System header to define __stub macros and hopefully few prototypes, 6088 /* System header to define __stub macros and hopefully few prototypes,
6094 which can conflict with char gethostbyname(); below. */ 6089 which can conflict with char gethostbyname(); below. */
6095 #include <assert.h> 6090 #include <assert.h>
6096 /* Override any gcc2 internal prototype to avoid an error. */ 6091 /* Override any gcc2 internal prototype to avoid an error. */
6109 gethostbyname(); 6104 gethostbyname();
6110 #endif 6105 #endif
6111 6106
6112 ; return 0; } 6107 ; return 0; }
6113 EOF 6108 EOF
6114 if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6109 if { (eval echo configure:6110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 rm -rf conftest* 6110 rm -rf conftest*
6116 eval "ac_cv_func_gethostbyname=yes" 6111 eval "ac_cv_func_gethostbyname=yes"
6117 else 6112 else
6118 echo "configure: failed program was:" >&5 6113 echo "configure: failed program was:" >&5
6119 cat conftest.$ac_ext >&5 6114 cat conftest.$ac_ext >&5
6130 fi 6125 fi
6131 6126
6132 if test $ac_cv_func_gethostbyname = no; then 6127 if test $ac_cv_func_gethostbyname = no; then
6133 6128
6134 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 6129 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
6135 echo "configure:6136: checking for gethostbyname in -lnsl" >&5 6130 echo "configure:6131: checking for gethostbyname in -lnsl" >&5
6136 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 6131 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
6137 6132
6138 xe_check_libs=" -lnsl " 6133 xe_check_libs=" -lnsl "
6139 cat > conftest.$ac_ext <<EOF 6134 cat > conftest.$ac_ext <<EOF
6140 #line 6141 "configure" 6135 #line 6136 "configure"
6141 #include "confdefs.h" 6136 #include "confdefs.h"
6142 /* Override any gcc2 internal prototype to avoid an error. */ 6137 /* Override any gcc2 internal prototype to avoid an error. */
6143 /* We use char because int might match the return type of a gcc2 6138 /* We use char because int might match the return type of a gcc2
6144 builtin and then its argument prototype would still apply. */ 6139 builtin and then its argument prototype would still apply. */
6145 char gethostbyname(); 6140 char gethostbyname();
6146 6141
6147 int main() { 6142 int main() {
6148 gethostbyname() 6143 gethostbyname()
6149 ; return 0; } 6144 ; return 0; }
6150 EOF 6145 EOF
6151 if { (eval echo configure:6152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6152 rm -rf conftest* 6147 rm -rf conftest*
6153 eval "ac_cv_lib_$ac_lib_var=yes" 6148 eval "ac_cv_lib_$ac_lib_var=yes"
6154 else 6149 else
6155 echo "configure: failed program was:" >&5 6150 echo "configure: failed program was:" >&5
6156 cat conftest.$ac_ext >&5 6151 cat conftest.$ac_ext >&5
6176 # on later versions), says simon@lia.di.epfl.ch: it contains 6171 # on later versions), says simon@lia.di.epfl.ch: it contains
6177 # gethostby* variants that don't use the nameserver (or something). 6172 # gethostby* variants that don't use the nameserver (or something).
6178 # -lsocket must be given before -lnsl if both are needed. 6173 # -lsocket must be given before -lnsl if both are needed.
6179 # We assume that if connect needs -lnsl, so does gethostbyname. 6174 # We assume that if connect needs -lnsl, so does gethostbyname.
6180 echo $ac_n "checking for connect""... $ac_c" 1>&6 6175 echo $ac_n "checking for connect""... $ac_c" 1>&6
6181 echo "configure:6182: checking for connect" >&5 6176 echo "configure:6177: checking for connect" >&5
6182 6177
6183 cat > conftest.$ac_ext <<EOF 6178 cat > conftest.$ac_ext <<EOF
6184 #line 6185 "configure" 6179 #line 6180 "configure"
6185 #include "confdefs.h" 6180 #include "confdefs.h"
6186 /* System header to define __stub macros and hopefully few prototypes, 6181 /* System header to define __stub macros and hopefully few prototypes,
6187 which can conflict with char connect(); below. */ 6182 which can conflict with char connect(); below. */
6188 #include <assert.h> 6183 #include <assert.h>
6189 /* Override any gcc2 internal prototype to avoid an error. */ 6184 /* Override any gcc2 internal prototype to avoid an error. */
6202 connect(); 6197 connect();
6203 #endif 6198 #endif
6204 6199
6205 ; return 0; } 6200 ; return 0; }
6206 EOF 6201 EOF
6207 if { (eval echo configure:6208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6202 if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6208 rm -rf conftest* 6203 rm -rf conftest*
6209 eval "ac_cv_func_connect=yes" 6204 eval "ac_cv_func_connect=yes"
6210 else 6205 else
6211 echo "configure: failed program was:" >&5 6206 echo "configure: failed program was:" >&5
6212 cat conftest.$ac_ext >&5 6207 cat conftest.$ac_ext >&5
6225 if test $ac_cv_func_connect = no; then 6220 if test $ac_cv_func_connect = no; then
6226 6221
6227 xe_msg_checking="for connect in -lsocket" 6222 xe_msg_checking="for connect in -lsocket"
6228 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6223 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6229 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6224 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6230 echo "configure:6231: checking "$xe_msg_checking"" >&5 6225 echo "configure:6226: checking "$xe_msg_checking"" >&5
6231 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 6226 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
6232 6227
6233 xe_check_libs=" -lsocket $X_EXTRA_LIBS" 6228 xe_check_libs=" -lsocket $X_EXTRA_LIBS"
6234 cat > conftest.$ac_ext <<EOF 6229 cat > conftest.$ac_ext <<EOF
6235 #line 6236 "configure" 6230 #line 6231 "configure"
6236 #include "confdefs.h" 6231 #include "confdefs.h"
6237 /* Override any gcc2 internal prototype to avoid an error. */ 6232 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2 6233 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */ 6234 builtin and then its argument prototype would still apply. */
6240 char connect(); 6235 char connect();
6241 6236
6242 int main() { 6237 int main() {
6243 connect() 6238 connect()
6244 ; return 0; } 6239 ; return 0; }
6245 EOF 6240 EOF
6246 if { (eval echo configure:6247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6241 if { (eval echo configure:6242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6247 rm -rf conftest* 6242 rm -rf conftest*
6248 eval "ac_cv_lib_$ac_lib_var=yes" 6243 eval "ac_cv_lib_$ac_lib_var=yes"
6249 else 6244 else
6250 echo "configure: failed program was:" >&5 6245 echo "configure: failed program was:" >&5
6251 cat conftest.$ac_ext >&5 6246 cat conftest.$ac_ext >&5
6265 6260
6266 fi 6261 fi
6267 6262
6268 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 6263 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
6269 echo $ac_n "checking for remove""... $ac_c" 1>&6 6264 echo $ac_n "checking for remove""... $ac_c" 1>&6
6270 echo "configure:6271: checking for remove" >&5 6265 echo "configure:6266: checking for remove" >&5
6271 6266
6272 cat > conftest.$ac_ext <<EOF 6267 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure" 6268 #line 6269 "configure"
6274 #include "confdefs.h" 6269 #include "confdefs.h"
6275 /* System header to define __stub macros and hopefully few prototypes, 6270 /* System header to define __stub macros and hopefully few prototypes,
6276 which can conflict with char remove(); below. */ 6271 which can conflict with char remove(); below. */
6277 #include <assert.h> 6272 #include <assert.h>
6278 /* Override any gcc2 internal prototype to avoid an error. */ 6273 /* Override any gcc2 internal prototype to avoid an error. */
6291 remove(); 6286 remove();
6292 #endif 6287 #endif
6293 6288
6294 ; return 0; } 6289 ; return 0; }
6295 EOF 6290 EOF
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6291 if { (eval echo configure:6292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 rm -rf conftest* 6292 rm -rf conftest*
6298 eval "ac_cv_func_remove=yes" 6293 eval "ac_cv_func_remove=yes"
6299 else 6294 else
6300 echo "configure: failed program was:" >&5 6295 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5 6296 cat conftest.$ac_ext >&5
6312 fi 6307 fi
6313 6308
6314 if test $ac_cv_func_remove = no; then 6309 if test $ac_cv_func_remove = no; then
6315 6310
6316 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 6311 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
6317 echo "configure:6318: checking for remove in -lposix" >&5 6312 echo "configure:6313: checking for remove in -lposix" >&5
6318 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 6313 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
6319 6314
6320 xe_check_libs=" -lposix " 6315 xe_check_libs=" -lposix "
6321 cat > conftest.$ac_ext <<EOF 6316 cat > conftest.$ac_ext <<EOF
6322 #line 6323 "configure" 6317 #line 6318 "configure"
6323 #include "confdefs.h" 6318 #include "confdefs.h"
6324 /* Override any gcc2 internal prototype to avoid an error. */ 6319 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2 6320 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */ 6321 builtin and then its argument prototype would still apply. */
6327 char remove(); 6322 char remove();
6328 6323
6329 int main() { 6324 int main() {
6330 remove() 6325 remove()
6331 ; return 0; } 6326 ; return 0; }
6332 EOF 6327 EOF
6333 if { (eval echo configure:6334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6334 rm -rf conftest* 6329 rm -rf conftest*
6335 eval "ac_cv_lib_$ac_lib_var=yes" 6330 eval "ac_cv_lib_$ac_lib_var=yes"
6336 else 6331 else
6337 echo "configure: failed program was:" >&5 6332 echo "configure: failed program was:" >&5
6338 cat conftest.$ac_ext >&5 6333 cat conftest.$ac_ext >&5
6352 6347
6353 fi 6348 fi
6354 6349
6355 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6350 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6356 echo $ac_n "checking for shmat""... $ac_c" 1>&6 6351 echo $ac_n "checking for shmat""... $ac_c" 1>&6
6357 echo "configure:6358: checking for shmat" >&5 6352 echo "configure:6353: checking for shmat" >&5
6358 6353
6359 cat > conftest.$ac_ext <<EOF 6354 cat > conftest.$ac_ext <<EOF
6360 #line 6361 "configure" 6355 #line 6356 "configure"
6361 #include "confdefs.h" 6356 #include "confdefs.h"
6362 /* System header to define __stub macros and hopefully few prototypes, 6357 /* System header to define __stub macros and hopefully few prototypes,
6363 which can conflict with char shmat(); below. */ 6358 which can conflict with char shmat(); below. */
6364 #include <assert.h> 6359 #include <assert.h>
6365 /* Override any gcc2 internal prototype to avoid an error. */ 6360 /* Override any gcc2 internal prototype to avoid an error. */
6378 shmat(); 6373 shmat();
6379 #endif 6374 #endif
6380 6375
6381 ; return 0; } 6376 ; return 0; }
6382 EOF 6377 EOF
6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6378 if { (eval echo configure:6379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6384 rm -rf conftest* 6379 rm -rf conftest*
6385 eval "ac_cv_func_shmat=yes" 6380 eval "ac_cv_func_shmat=yes"
6386 else 6381 else
6387 echo "configure: failed program was:" >&5 6382 echo "configure: failed program was:" >&5
6388 cat conftest.$ac_ext >&5 6383 cat conftest.$ac_ext >&5
6399 fi 6394 fi
6400 6395
6401 if test $ac_cv_func_shmat = no; then 6396 if test $ac_cv_func_shmat = no; then
6402 6397
6403 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 6398 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
6404 echo "configure:6405: checking for shmat in -lipc" >&5 6399 echo "configure:6400: checking for shmat in -lipc" >&5
6405 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 6400 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
6406 6401
6407 xe_check_libs=" -lipc " 6402 xe_check_libs=" -lipc "
6408 cat > conftest.$ac_ext <<EOF 6403 cat > conftest.$ac_ext <<EOF
6409 #line 6410 "configure" 6404 #line 6405 "configure"
6410 #include "confdefs.h" 6405 #include "confdefs.h"
6411 /* Override any gcc2 internal prototype to avoid an error. */ 6406 /* Override any gcc2 internal prototype to avoid an error. */
6412 /* We use char because int might match the return type of a gcc2 6407 /* We use char because int might match the return type of a gcc2
6413 builtin and then its argument prototype would still apply. */ 6408 builtin and then its argument prototype would still apply. */
6414 char shmat(); 6409 char shmat();
6415 6410
6416 int main() { 6411 int main() {
6417 shmat() 6412 shmat()
6418 ; return 0; } 6413 ; return 0; }
6419 EOF 6414 EOF
6420 if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6415 if { (eval echo configure:6416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6421 rm -rf conftest* 6416 rm -rf conftest*
6422 eval "ac_cv_lib_$ac_lib_var=yes" 6417 eval "ac_cv_lib_$ac_lib_var=yes"
6423 else 6418 else
6424 echo "configure: failed program was:" >&5 6419 echo "configure: failed program was:" >&5
6425 cat conftest.$ac_ext >&5 6420 cat conftest.$ac_ext >&5
6451 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 6446 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
6452 6447
6453 xe_msg_checking="for IceConnectionNumber in -lICE" 6448 xe_msg_checking="for IceConnectionNumber in -lICE"
6454 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" 6449 test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS"
6455 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6450 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6456 echo "configure:6457: checking "$xe_msg_checking"" >&5 6451 echo "configure:6452: checking "$xe_msg_checking"" >&5
6457 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 6452 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
6458 6453
6459 xe_check_libs=" -lICE $X_EXTRA_LIBS" 6454 xe_check_libs=" -lICE $X_EXTRA_LIBS"
6460 cat > conftest.$ac_ext <<EOF 6455 cat > conftest.$ac_ext <<EOF
6461 #line 6462 "configure" 6456 #line 6457 "configure"
6462 #include "confdefs.h" 6457 #include "confdefs.h"
6463 /* Override any gcc2 internal prototype to avoid an error. */ 6458 /* Override any gcc2 internal prototype to avoid an error. */
6464 /* We use char because int might match the return type of a gcc2 6459 /* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */ 6460 builtin and then its argument prototype would still apply. */
6466 char IceConnectionNumber(); 6461 char IceConnectionNumber();
6467 6462
6468 int main() { 6463 int main() {
6469 IceConnectionNumber() 6464 IceConnectionNumber()
6470 ; return 0; } 6465 ; return 0; }
6471 EOF 6466 EOF
6472 if { (eval echo configure:6473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6467 if { (eval echo configure:6468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6473 rm -rf conftest* 6468 rm -rf conftest*
6474 eval "ac_cv_lib_$ac_lib_var=yes" 6469 eval "ac_cv_lib_$ac_lib_var=yes"
6475 else 6470 else
6476 echo "configure: failed program was:" >&5 6471 echo "configure: failed program was:" >&5
6477 cat conftest.$ac_ext >&5 6472 cat conftest.$ac_ext >&5
6513 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi 6508 SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS lwlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"lwlib\" to \$SRC_SUBDIR_DEPS"; fi
6514 6509
6515 6510
6516 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 6511 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
6517 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 6512 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
6518 echo "configure:6519: checking for Xm/Xm.h" >&5 6513 echo "configure:6514: checking for Xm/Xm.h" >&5
6519 6514
6520 cat > conftest.$ac_ext <<EOF 6515 cat > conftest.$ac_ext <<EOF
6521 #line 6522 "configure" 6516 #line 6517 "configure"
6522 #include "confdefs.h" 6517 #include "confdefs.h"
6523 #include <Xm/Xm.h> 6518 #include <Xm/Xm.h>
6524 EOF 6519 EOF
6525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6526 { (eval echo configure:6527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6521 { (eval echo configure:6522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6528 if test -z "$ac_err"; then 6523 if test -z "$ac_err"; then
6529 rm -rf conftest* 6524 rm -rf conftest*
6530 eval "ac_cv_header_$ac_safe=yes" 6525 eval "ac_cv_header_$ac_safe=yes"
6531 else 6526 else
6538 rm -f conftest* 6533 rm -f conftest*
6539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6540 echo "$ac_t""yes" 1>&6 6535 echo "$ac_t""yes" 1>&6
6541 6536
6542 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 6537 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
6543 echo "configure:6544: checking for XmStringFree in -lXm" >&5 6538 echo "configure:6539: checking for XmStringFree in -lXm" >&5
6544 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 6539 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
6545 6540
6546 xe_check_libs=" -lXm " 6541 xe_check_libs=" -lXm "
6547 cat > conftest.$ac_ext <<EOF 6542 cat > conftest.$ac_ext <<EOF
6548 #line 6549 "configure" 6543 #line 6544 "configure"
6549 #include "confdefs.h" 6544 #include "confdefs.h"
6550 /* Override any gcc2 internal prototype to avoid an error. */ 6545 /* Override any gcc2 internal prototype to avoid an error. */
6551 /* We use char because int might match the return type of a gcc2 6546 /* We use char because int might match the return type of a gcc2
6552 builtin and then its argument prototype would still apply. */ 6547 builtin and then its argument prototype would still apply. */
6553 char XmStringFree(); 6548 char XmStringFree();
6554 6549
6555 int main() { 6550 int main() {
6556 XmStringFree() 6551 XmStringFree()
6557 ; return 0; } 6552 ; return 0; }
6558 EOF 6553 EOF
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6554 if { (eval echo configure:6555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6560 rm -rf conftest* 6555 rm -rf conftest*
6561 eval "ac_cv_lib_$ac_lib_var=yes" 6556 eval "ac_cv_lib_$ac_lib_var=yes"
6562 else 6557 else
6563 echo "configure: failed program was:" >&5 6558 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5 6559 cat conftest.$ac_ext >&5
6706 EOF 6701 EOF
6707 } 6702 }
6708 6703
6709 6704
6710 echo "checking for X defines extracted by xmkmf" 1>&6 6705 echo "checking for X defines extracted by xmkmf" 1>&6
6711 echo "configure:6712: checking for X defines extracted by xmkmf" >&5 6706 echo "configure:6707: checking for X defines extracted by xmkmf" >&5
6712 rm -fr conftestdir 6707 rm -fr conftestdir
6713 if mkdir conftestdir; then 6708 if mkdir conftestdir; then
6714 cd conftestdir 6709 cd conftestdir
6715 cat > Imakefile <<'EOF' 6710 cat > Imakefile <<'EOF'
6716 xetest: 6711 xetest:
6755 done 6750 done
6756 fi 6751 fi
6757 6752
6758 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` 6753 ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 6754 echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6
6760 echo "configure:6761: checking for X11/Intrinsic.h" >&5 6755 echo "configure:6756: checking for X11/Intrinsic.h" >&5
6761 6756
6762 cat > conftest.$ac_ext <<EOF 6757 cat > conftest.$ac_ext <<EOF
6763 #line 6764 "configure" 6758 #line 6759 "configure"
6764 #include "confdefs.h" 6759 #include "confdefs.h"
6765 #include <X11/Intrinsic.h> 6760 #include <X11/Intrinsic.h>
6766 EOF 6761 EOF
6767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6768 { (eval echo configure:6769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6763 { (eval echo configure:6764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6770 if test -z "$ac_err"; then 6765 if test -z "$ac_err"; then
6771 rm -rf conftest* 6766 rm -rf conftest*
6772 eval "ac_cv_header_$ac_safe=yes" 6767 eval "ac_cv_header_$ac_safe=yes"
6773 else 6768 else
6787 fi 6782 fi
6788 6783
6789 6784
6790 6785
6791 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 6786 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
6792 echo "configure:6793: checking for XOpenDisplay in -lX11" >&5 6787 echo "configure:6788: checking for XOpenDisplay in -lX11" >&5
6793 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` 6788 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
6794 6789
6795 xe_check_libs=" -lX11 " 6790 xe_check_libs=" -lX11 "
6796 cat > conftest.$ac_ext <<EOF 6791 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure" 6792 #line 6793 "configure"
6798 #include "confdefs.h" 6793 #include "confdefs.h"
6799 /* Override any gcc2 internal prototype to avoid an error. */ 6794 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2 6795 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */ 6796 builtin and then its argument prototype would still apply. */
6802 char XOpenDisplay(); 6797 char XOpenDisplay();
6803 6798
6804 int main() { 6799 int main() {
6805 XOpenDisplay() 6800 XOpenDisplay()
6806 ; return 0; } 6801 ; return 0; }
6807 EOF 6802 EOF
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 rm -rf conftest* 6804 rm -rf conftest*
6810 eval "ac_cv_lib_$ac_lib_var=yes" 6805 eval "ac_cv_lib_$ac_lib_var=yes"
6811 else 6806 else
6812 echo "configure: failed program was:" >&5 6807 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5 6808 cat conftest.$ac_ext >&5
6828 if test "$have_lib_x11" != "yes"; then 6823 if test "$have_lib_x11" != "yes"; then
6829 6824
6830 xe_msg_checking="for XGetFontProperty in -lX11" 6825 xe_msg_checking="for XGetFontProperty in -lX11"
6831 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" 6826 test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout"
6832 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 6827 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
6833 echo "configure:6834: checking "$xe_msg_checking"" >&5 6828 echo "configure:6829: checking "$xe_msg_checking"" >&5
6834 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` 6829 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'`
6835 6830
6836 xe_check_libs=" -lX11 -b i486-linuxaout" 6831 xe_check_libs=" -lX11 -b i486-linuxaout"
6837 cat > conftest.$ac_ext <<EOF 6832 cat > conftest.$ac_ext <<EOF
6838 #line 6839 "configure" 6833 #line 6834 "configure"
6839 #include "confdefs.h" 6834 #include "confdefs.h"
6840 /* Override any gcc2 internal prototype to avoid an error. */ 6835 /* Override any gcc2 internal prototype to avoid an error. */
6841 /* We use char because int might match the return type of a gcc2 6836 /* We use char because int might match the return type of a gcc2
6842 builtin and then its argument prototype would still apply. */ 6837 builtin and then its argument prototype would still apply. */
6843 char XGetFontProperty(); 6838 char XGetFontProperty();
6844 6839
6845 int main() { 6840 int main() {
6846 XGetFontProperty() 6841 XGetFontProperty()
6847 ; return 0; } 6842 ; return 0; }
6848 EOF 6843 EOF
6849 if { (eval echo configure:6850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6850 rm -rf conftest* 6845 rm -rf conftest*
6851 eval "ac_cv_lib_$ac_lib_var=yes" 6846 eval "ac_cv_lib_$ac_lib_var=yes"
6852 else 6847 else
6853 echo "configure: failed program was:" >&5 6848 echo "configure: failed program was:" >&5
6854 cat conftest.$ac_ext >&5 6849 cat conftest.$ac_ext >&5
6871 libs_x="-lX11" 6866 libs_x="-lX11"
6872 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\"" 6867 test "$extra_verbose" = "yes" && echo " Setting libs_x to \"-lX11\""
6873 6868
6874 6869
6875 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 6870 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
6876 echo "configure:6877: checking for XShapeSelectInput in -lXext" >&5 6871 echo "configure:6872: checking for XShapeSelectInput in -lXext" >&5
6877 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` 6872 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
6878 6873
6879 xe_check_libs=" -lXext " 6874 xe_check_libs=" -lXext "
6880 cat > conftest.$ac_ext <<EOF 6875 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure" 6876 #line 6877 "configure"
6882 #include "confdefs.h" 6877 #include "confdefs.h"
6883 /* Override any gcc2 internal prototype to avoid an error. */ 6878 /* Override any gcc2 internal prototype to avoid an error. */
6884 /* We use char because int might match the return type of a gcc2 6879 /* We use char because int might match the return type of a gcc2
6885 builtin and then its argument prototype would still apply. */ 6880 builtin and then its argument prototype would still apply. */
6886 char XShapeSelectInput(); 6881 char XShapeSelectInput();
6887 6882
6888 int main() { 6883 int main() {
6889 XShapeSelectInput() 6884 XShapeSelectInput()
6890 ; return 0; } 6885 ; return 0; }
6891 EOF 6886 EOF
6892 if { (eval echo configure:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6887 if { (eval echo configure:6888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 rm -rf conftest* 6888 rm -rf conftest*
6894 eval "ac_cv_lib_$ac_lib_var=yes" 6889 eval "ac_cv_lib_$ac_lib_var=yes"
6895 else 6890 else
6896 echo "configure: failed program was:" >&5 6891 echo "configure: failed program was:" >&5
6897 cat conftest.$ac_ext >&5 6892 cat conftest.$ac_ext >&5
6910 6905
6911 6906
6912 6907
6913 6908
6914 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 6909 echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6
6915 echo "configure:6916: checking for XtOpenDisplay in -lXt" >&5 6910 echo "configure:6911: checking for XtOpenDisplay in -lXt" >&5
6916 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` 6911 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'`
6917 6912
6918 xe_check_libs=" -lXt " 6913 xe_check_libs=" -lXt "
6919 cat > conftest.$ac_ext <<EOF 6914 cat > conftest.$ac_ext <<EOF
6920 #line 6921 "configure" 6915 #line 6916 "configure"
6921 #include "confdefs.h" 6916 #include "confdefs.h"
6922 /* Override any gcc2 internal prototype to avoid an error. */ 6917 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2 6918 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */ 6919 builtin and then its argument prototype would still apply. */
6925 char XtOpenDisplay(); 6920 char XtOpenDisplay();
6926 6921
6927 int main() { 6922 int main() {
6928 XtOpenDisplay() 6923 XtOpenDisplay()
6929 ; return 0; } 6924 ; return 0; }
6930 EOF 6925 EOF
6931 if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6926 if { (eval echo configure:6927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6932 rm -rf conftest* 6927 rm -rf conftest*
6933 eval "ac_cv_lib_$ac_lib_var=yes" 6928 eval "ac_cv_lib_$ac_lib_var=yes"
6934 else 6929 else
6935 echo "configure: failed program was:" >&5 6930 echo "configure: failed program was:" >&5
6936 cat conftest.$ac_ext >&5 6931 cat conftest.$ac_ext >&5
6949 fi 6944 fi
6950 6945
6951 6946
6952 6947
6953 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 6948 echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6
6954 echo "configure:6955: checking the version of X11 being used" >&5 6949 echo "configure:6950: checking the version of X11 being used" >&5
6955 cat > conftest.$ac_ext <<EOF 6950 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure" 6951 #line 6952 "configure"
6957 #include "confdefs.h" 6952 #include "confdefs.h"
6958 #include <X11/Intrinsic.h> 6953 #include <X11/Intrinsic.h>
6959 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } 6954 int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; }
6960 EOF 6955 EOF
6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 6956 if { (eval echo configure:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
6962 then 6957 then
6963 ./conftest foobar; x11_release=$? 6958 ./conftest foobar; x11_release=$?
6964 else 6959 else
6965 conftest_rc="$?" 6960 conftest_rc="$?"
6966 echo "configure: failed program was:" >&5 6961 echo "configure: failed program was:" >&5
6987 fi 6982 fi
6988 6983
6989 for ac_func in XConvertCase 6984 for ac_func in XConvertCase
6990 do 6985 do
6991 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6992 echo "configure:6993: checking for $ac_func" >&5 6987 echo "configure:6988: checking for $ac_func" >&5
6993 6988
6994 cat > conftest.$ac_ext <<EOF 6989 cat > conftest.$ac_ext <<EOF
6995 #line 6996 "configure" 6990 #line 6991 "configure"
6996 #include "confdefs.h" 6991 #include "confdefs.h"
6997 /* System header to define __stub macros and hopefully few prototypes, 6992 /* System header to define __stub macros and hopefully few prototypes,
6998 which can conflict with char $ac_func(); below. */ 6993 which can conflict with char $ac_func(); below. */
6999 #include <assert.h> 6994 #include <assert.h>
7000 /* Override any gcc2 internal prototype to avoid an error. */ 6995 /* Override any gcc2 internal prototype to avoid an error. */
7013 $ac_func(); 7008 $ac_func();
7014 #endif 7009 #endif
7015 7010
7016 ; return 0; } 7011 ; return 0; }
7017 EOF 7012 EOF
7018 if { (eval echo configure:7019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7019 rm -rf conftest* 7014 rm -rf conftest*
7020 eval "ac_cv_func_$ac_func=yes" 7015 eval "ac_cv_func_$ac_func=yes"
7021 else 7016 else
7022 echo "configure: failed program was:" >&5 7017 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5 7018 cat conftest.$ac_ext >&5
7045 7040
7046 for ac_hdr in X11/Xlocale.h 7041 for ac_hdr in X11/Xlocale.h
7047 do 7042 do
7048 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7049 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7050 echo "configure:7051: checking for $ac_hdr" >&5 7045 echo "configure:7046: checking for $ac_hdr" >&5
7051 7046
7052 cat > conftest.$ac_ext <<EOF 7047 cat > conftest.$ac_ext <<EOF
7053 #line 7054 "configure" 7048 #line 7049 "configure"
7054 #include "confdefs.h" 7049 #include "confdefs.h"
7055 #include <$ac_hdr> 7050 #include <$ac_hdr>
7056 EOF 7051 EOF
7057 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7058 { (eval echo configure:7059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7053 { (eval echo configure:7054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7059 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7060 if test -z "$ac_err"; then 7055 if test -z "$ac_err"; then
7061 rm -rf conftest* 7056 rm -rf conftest*
7062 eval "ac_cv_header_$ac_safe=yes" 7057 eval "ac_cv_header_$ac_safe=yes"
7063 else 7058 else
7086 7081
7087 7082
7088 for ac_func in XRegisterIMInstantiateCallback 7083 for ac_func in XRegisterIMInstantiateCallback
7089 do 7084 do
7090 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7091 echo "configure:7092: checking for $ac_func" >&5 7086 echo "configure:7087: checking for $ac_func" >&5
7092 7087
7093 cat > conftest.$ac_ext <<EOF 7088 cat > conftest.$ac_ext <<EOF
7094 #line 7095 "configure" 7089 #line 7090 "configure"
7095 #include "confdefs.h" 7090 #include "confdefs.h"
7096 /* System header to define __stub macros and hopefully few prototypes, 7091 /* System header to define __stub macros and hopefully few prototypes,
7097 which can conflict with char $ac_func(); below. */ 7092 which can conflict with char $ac_func(); below. */
7098 #include <assert.h> 7093 #include <assert.h>
7099 /* Override any gcc2 internal prototype to avoid an error. */ 7094 /* Override any gcc2 internal prototype to avoid an error. */
7112 $ac_func(); 7107 $ac_func();
7113 #endif 7108 #endif
7114 7109
7115 ; return 0; } 7110 ; return 0; }
7116 EOF 7111 EOF
7117 if { (eval echo configure:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7112 if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7118 rm -rf conftest* 7113 rm -rf conftest*
7119 eval "ac_cv_func_$ac_func=yes" 7114 eval "ac_cv_func_$ac_func=yes"
7120 else 7115 else
7121 echo "configure: failed program was:" >&5 7116 echo "configure: failed program was:" >&5
7122 cat conftest.$ac_ext >&5 7117 cat conftest.$ac_ext >&5
7140 echo "$ac_t""no" 1>&6 7135 echo "$ac_t""no" 1>&6
7141 fi 7136 fi
7142 done 7137 done
7143 7138
7144 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 7139 echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6
7145 echo "configure:7146: checking for standard XRegisterIMInstantiateCallback prototype" >&5 7140 echo "configure:7141: checking for standard XRegisterIMInstantiateCallback prototype" >&5
7146 cat > conftest.$ac_ext <<EOF 7141 cat > conftest.$ac_ext <<EOF
7147 #line 7148 "configure" 7142 #line 7143 "configure"
7148 #include "confdefs.h" 7143 #include "confdefs.h"
7149 7144
7150 #define NeedFunctionPrototypes 1 7145 #define NeedFunctionPrototypes 1
7151 #include <X11/Xlib.h> 7146 #include <X11/Xlib.h>
7152 extern Bool XRegisterIMInstantiateCallback( 7147 extern Bool XRegisterIMInstantiateCallback(
7154 7149
7155 int main() { 7150 int main() {
7156 7151
7157 ; return 0; } 7152 ; return 0; }
7158 EOF 7153 EOF
7159 if { (eval echo configure:7160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7154 if { (eval echo configure:7155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7160 rm -rf conftest* 7155 rm -rf conftest*
7161 echo "$ac_t""yes" 1>&6 7156 echo "$ac_t""yes" 1>&6
7162 else 7157 else
7163 echo "configure: failed program was:" >&5 7158 echo "configure: failed program was:" >&5
7164 cat conftest.$ac_ext >&5 7159 cat conftest.$ac_ext >&5
7175 fi 7170 fi
7176 rm -f conftest* 7171 rm -f conftest*
7177 7172
7178 test -z "$with_xmu" && { 7173 test -z "$with_xmu" && {
7179 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 7174 echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6
7180 echo "configure:7181: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 7175 echo "configure:7176: checking for XmuReadBitmapDataFromFile in -lXmu" >&5
7181 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` 7176 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'`
7182 7177
7183 xe_check_libs=" -lXmu " 7178 xe_check_libs=" -lXmu "
7184 cat > conftest.$ac_ext <<EOF 7179 cat > conftest.$ac_ext <<EOF
7185 #line 7186 "configure" 7180 #line 7181 "configure"
7186 #include "confdefs.h" 7181 #include "confdefs.h"
7187 /* Override any gcc2 internal prototype to avoid an error. */ 7182 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2 7183 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */ 7184 builtin and then its argument prototype would still apply. */
7190 char XmuReadBitmapDataFromFile(); 7185 char XmuReadBitmapDataFromFile();
7191 7186
7192 int main() { 7187 int main() {
7193 XmuReadBitmapDataFromFile() 7188 XmuReadBitmapDataFromFile()
7194 ; return 0; } 7189 ; return 0; }
7195 EOF 7190 EOF
7196 if { (eval echo configure:7197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7197 rm -rf conftest* 7192 rm -rf conftest*
7198 eval "ac_cv_lib_$ac_lib_var=yes" 7193 eval "ac_cv_lib_$ac_lib_var=yes"
7199 else 7194 else
7200 echo "configure: failed program was:" >&5 7195 echo "configure: failed program was:" >&5
7201 cat conftest.$ac_ext >&5 7196 cat conftest.$ac_ext >&5
7230 7225
7231 fi 7226 fi
7232 7227
7233 7228
7234 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 7229 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
7235 echo "configure:7236: checking for main in -lXbsd" >&5 7230 echo "configure:7231: checking for main in -lXbsd" >&5
7236 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` 7231 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
7237 7232
7238 xe_check_libs=" -lXbsd " 7233 xe_check_libs=" -lXbsd "
7239 cat > conftest.$ac_ext <<EOF 7234 cat > conftest.$ac_ext <<EOF
7240 #line 7241 "configure" 7235 #line 7236 "configure"
7241 #include "confdefs.h" 7236 #include "confdefs.h"
7242 7237
7243 int main() { 7238 int main() {
7244 main() 7239 main()
7245 ; return 0; } 7240 ; return 0; }
7246 EOF 7241 EOF
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7242 if { (eval echo configure:7243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7248 rm -rf conftest* 7243 rm -rf conftest*
7249 eval "ac_cv_lib_$ac_lib_var=yes" 7244 eval "ac_cv_lib_$ac_lib_var=yes"
7250 else 7245 else
7251 echo "configure: failed program was:" >&5 7246 echo "configure: failed program was:" >&5
7252 cat conftest.$ac_ext >&5 7247 cat conftest.$ac_ext >&5
7279 fi 7274 fi
7280 7275
7281 fi 7276 fi
7282 if test "$with_msw" != "no"; then 7277 if test "$with_msw" != "no"; then
7283 echo "checking for MS-Windows" 1>&6 7278 echo "checking for MS-Windows" 1>&6
7284 echo "configure:7285: checking for MS-Windows" >&5 7279 echo "configure:7280: checking for MS-Windows" >&5
7285 7280
7286 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 7281 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6
7287 echo "configure:7288: checking for main in -lgdi32" >&5 7282 echo "configure:7283: checking for main in -lgdi32" >&5
7288 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` 7283 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'`
7289 7284
7290 xe_check_libs=" -lgdi32 " 7285 xe_check_libs=" -lgdi32 "
7291 cat > conftest.$ac_ext <<EOF 7286 cat > conftest.$ac_ext <<EOF
7292 #line 7293 "configure" 7287 #line 7288 "configure"
7293 #include "confdefs.h" 7288 #include "confdefs.h"
7294 7289
7295 int main() { 7290 int main() {
7296 main() 7291 main()
7297 ; return 0; } 7292 ; return 0; }
7298 EOF 7293 EOF
7299 if { (eval echo configure:7300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7300 rm -rf conftest* 7295 rm -rf conftest*
7301 eval "ac_cv_lib_$ac_lib_var=yes" 7296 eval "ac_cv_lib_$ac_lib_var=yes"
7302 else 7297 else
7303 echo "configure: failed program was:" >&5 7298 echo "configure: failed program was:" >&5
7304 cat conftest.$ac_ext >&5 7299 cat conftest.$ac_ext >&5
7345 test "$with_toolbars" != "no" && with_toolbars=msw 7340 test "$with_toolbars" != "no" && with_toolbars=msw
7346 test "$with_dialogs" != "no" && with_dialogs=msw 7341 test "$with_dialogs" != "no" && with_dialogs=msw
7347 test "$with_widgets" != "no" && with_widgets=msw 7342 test "$with_widgets" != "no" && with_widgets=msw
7348 fi 7343 fi
7349 cat > conftest.$ac_ext <<EOF 7344 cat > conftest.$ac_ext <<EOF
7350 #line 7351 "configure" 7345 #line 7346 "configure"
7351 #include "confdefs.h" 7346 #include "confdefs.h"
7352 #include <fcntl.h> 7347 #include <fcntl.h>
7353 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } 7348 int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; }
7354 EOF 7349 EOF
7355 if { (eval echo configure:7356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 7350 if { (eval echo configure:7351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7356 then 7351 then
7357 { test "$extra_verbose" = "yes" && cat << \EOF 7352 { test "$extra_verbose" = "yes" && cat << \EOF
7358 Defining HAVE_MSG_SELECT 7353 Defining HAVE_MSG_SELECT
7359 EOF 7354 EOF
7360 cat >> confdefs.h <<\EOF 7355 cat >> confdefs.h <<\EOF
7411 fi 7406 fi
7412 7407
7413 if test "$with_x11" = "yes"; then 7408 if test "$with_x11" = "yes"; then
7414 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` 7409 ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'`
7415 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 7410 echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6
7416 echo "configure:7417: checking for X11/extensions/shape.h" >&5 7411 echo "configure:7412: checking for X11/extensions/shape.h" >&5
7417 7412
7418 cat > conftest.$ac_ext <<EOF 7413 cat > conftest.$ac_ext <<EOF
7419 #line 7420 "configure" 7414 #line 7415 "configure"
7420 #include "confdefs.h" 7415 #include "confdefs.h"
7421 #include <X11/extensions/shape.h> 7416 #include <X11/extensions/shape.h>
7422 EOF 7417 EOF
7423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7424 { (eval echo configure:7425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7419 { (eval echo configure:7420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7426 if test -z "$ac_err"; then 7421 if test -z "$ac_err"; then
7427 rm -rf conftest* 7422 rm -rf conftest*
7428 eval "ac_cv_header_$ac_safe=yes" 7423 eval "ac_cv_header_$ac_safe=yes"
7429 else 7424 else
7469 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h" 7464 test "$opsys" = "hpux9" && opsysfile="s/hpux9-x11r4.h"
7470 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h" 7465 test "$opsys" = "hpux9-shr" && opsysfile="s/hpux9shxr4.h"
7471 esac 7466 esac
7472 7467
7473 echo "checking for WM_COMMAND option" 1>&6 7468 echo "checking for WM_COMMAND option" 1>&6
7474 echo "configure:7475: checking for WM_COMMAND option" >&5; 7469 echo "configure:7470: checking for WM_COMMAND option" >&5;
7475 if test "$with_wmcommand" != "no"; then 7470 if test "$with_wmcommand" != "no"; then
7476 { test "$extra_verbose" = "yes" && cat << \EOF 7471 { test "$extra_verbose" = "yes" && cat << \EOF
7477 Defining HAVE_WMCOMMAND 7472 Defining HAVE_WMCOMMAND
7478 EOF 7473 EOF
7479 cat >> confdefs.h <<\EOF 7474 cat >> confdefs.h <<\EOF
7484 fi 7479 fi
7485 7480
7486 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no 7481 test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no
7487 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` 7482 test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'`
7488 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 7483 echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6
7489 echo "configure:7490: checking for X11/Xauth.h" >&5 7484 echo "configure:7485: checking for X11/Xauth.h" >&5
7490 7485
7491 cat > conftest.$ac_ext <<EOF 7486 cat > conftest.$ac_ext <<EOF
7492 #line 7493 "configure" 7487 #line 7488 "configure"
7493 #include "confdefs.h" 7488 #include "confdefs.h"
7494 #include <X11/Xauth.h> 7489 #include <X11/Xauth.h>
7495 EOF 7490 EOF
7496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7497 { (eval echo configure:7498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7492 { (eval echo configure:7493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7499 if test -z "$ac_err"; then 7494 if test -z "$ac_err"; then
7500 rm -rf conftest* 7495 rm -rf conftest*
7501 eval "ac_cv_header_$ac_safe=yes" 7496 eval "ac_cv_header_$ac_safe=yes"
7502 else 7497 else
7515 with_xauth=no 7510 with_xauth=no
7516 fi 7511 fi
7517 } 7512 }
7518 test -z "$with_xauth" && { 7513 test -z "$with_xauth" && {
7519 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 7514 echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6
7520 echo "configure:7521: checking for XauGetAuthByAddr in -lXau" >&5 7515 echo "configure:7516: checking for XauGetAuthByAddr in -lXau" >&5
7521 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` 7516 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'`
7522 7517
7523 xe_check_libs=" -lXau " 7518 xe_check_libs=" -lXau "
7524 cat > conftest.$ac_ext <<EOF 7519 cat > conftest.$ac_ext <<EOF
7525 #line 7526 "configure" 7520 #line 7521 "configure"
7526 #include "confdefs.h" 7521 #include "confdefs.h"
7527 /* Override any gcc2 internal prototype to avoid an error. */ 7522 /* Override any gcc2 internal prototype to avoid an error. */
7528 /* We use char because int might match the return type of a gcc2 7523 /* We use char because int might match the return type of a gcc2
7529 builtin and then its argument prototype would still apply. */ 7524 builtin and then its argument prototype would still apply. */
7530 char XauGetAuthByAddr(); 7525 char XauGetAuthByAddr();
7531 7526
7532 int main() { 7527 int main() {
7533 XauGetAuthByAddr() 7528 XauGetAuthByAddr()
7534 ; return 0; } 7529 ; return 0; }
7535 EOF 7530 EOF
7536 if { (eval echo configure:7537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7531 if { (eval echo configure:7532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7537 rm -rf conftest* 7532 rm -rf conftest*
7538 eval "ac_cv_lib_$ac_lib_var=yes" 7533 eval "ac_cv_lib_$ac_lib_var=yes"
7539 else 7534 else
7540 echo "configure: failed program was:" >&5 7535 echo "configure: failed program was:" >&5
7541 cat conftest.$ac_ext >&5 7536 cat conftest.$ac_ext >&5
7576 7571
7577 7572
7578 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler" 7573 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
7579 : ${XEMACS_CC:="$CC"} 7574 : ${XEMACS_CC:="$CC"}
7580 7575
7576 if test "$with_modules" != "no"; then
7577 echo "checking for module support" 1>&6
7578 echo "configure:7579: checking for module support" >&5
7579
7580 if test "$with_msw" = "yes"; then
7581 have_dl=yes;
7582 else
7583 case "$opsys" in
7584 darwin ) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
7585 Defining HAVE_DYLD
7586 EOF
7587 cat >> confdefs.h <<\EOF
7588 #define HAVE_DYLD 1
7589 EOF
7590 }
7591 ;;
7592 * )
7593 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
7594 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
7595 echo "configure:7596: checking for dlfcn.h" >&5
7596
7597 cat > conftest.$ac_ext <<EOF
7598 #line 7599 "configure"
7599 #include "confdefs.h"
7600 #include <dlfcn.h>
7601 EOF
7602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7603 { (eval echo configure:7604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7605 if test -z "$ac_err"; then
7606 rm -rf conftest*
7607 eval "ac_cv_header_$ac_safe=yes"
7608 else
7609 echo "$ac_err" >&5
7610 echo "configure: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7612 rm -rf conftest*
7613 eval "ac_cv_header_$ac_safe=no"
7614 fi
7615 rm -f conftest*
7616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7617 echo "$ac_t""yes" 1>&6
7618
7619 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
7620 echo "configure:7621: checking for dlopen in -lc" >&5
7621 cat > conftest.$ac_ext <<EOF
7622 #line 7623 "configure"
7623 #include "confdefs.h"
7624 #include <dlfcn.h>
7625 int main() {
7626 dlopen ("", 0);
7627 ; return 0; }
7628 EOF
7629 if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7630 rm -rf conftest*
7631 have_dl=yes
7632 else
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7635 rm -rf conftest*
7636
7637 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7638 echo "configure:7639: checking for dlopen in -ldl" >&5
7639 ac_save_LIBS="$LIBS"
7640 LIBS="-ldl $LIBS"
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7644 #include <dlfcn.h>
7645 int main() {
7646 dlopen ("", 0);
7647 ; return 0; }
7648 EOF
7649 if { (eval echo configure:7650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7650 rm -rf conftest*
7651 have_dl=yes
7652 else
7653 echo "configure: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7655 rm -rf conftest*
7656 LIBS="$ac_save_LIBS"
7657 fi
7658 rm -f conftest*
7659 ac_save_LIBS=
7660 fi
7661 rm -f conftest*
7662 else
7663 echo "$ac_t""no" 1>&6
7664 fi
7665
7666 if test -n "$have_dl"; then
7667 { test "$extra_verbose" = "yes" && cat << \EOF
7668 Defining HAVE_DLOPEN
7669 EOF
7670 cat >> confdefs.h <<\EOF
7671 #define HAVE_DLOPEN 1
7672 EOF
7673 }
7674
7675 else
7676
7677 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
7678 echo "configure:7679: checking for shl_load in -ldld" >&5
7679 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
7680
7681 xe_check_libs=" -ldld "
7682 cat > conftest.$ac_ext <<EOF
7683 #line 7684 "configure"
7684 #include "confdefs.h"
7685 /* Override any gcc2 internal prototype to avoid an error. */
7686 /* We use char because int might match the return type of a gcc2
7687 builtin and then its argument prototype would still apply. */
7688 char shl_load();
7689
7690 int main() {
7691 shl_load()
7692 ; return 0; }
7693 EOF
7694 if { (eval echo configure:7695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7695 rm -rf conftest*
7696 eval "ac_cv_lib_$ac_lib_var=yes"
7697 else
7698 echo "configure: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7700 rm -rf conftest*
7701 eval "ac_cv_lib_$ac_lib_var=no"
7702 fi
7703 rm -f conftest*
7704 xe_check_libs=""
7705
7706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7707 echo "$ac_t""yes" 1>&6
7708 libdl=dld have_dl=yes;
7709 { test "$extra_verbose" = "yes" && cat << \EOF
7710 Defining HAVE_SHL_LOAD
7711 EOF
7712 cat >> confdefs.h <<\EOF
7713 #define HAVE_SHL_LOAD 1
7714 EOF
7715 }
7716
7717 else
7718 echo "$ac_t""no" 1>&6
7719
7720 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
7721 echo "configure:7722: checking for dld_init in -ldld" >&5
7722 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
7723
7724 xe_check_libs=" -ldld "
7725 cat > conftest.$ac_ext <<EOF
7726 #line 7727 "configure"
7727 #include "confdefs.h"
7728 /* Override any gcc2 internal prototype to avoid an error. */
7729 /* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7731 char dld_init();
7732
7733 int main() {
7734 dld_init()
7735 ; return 0; }
7736 EOF
7737 if { (eval echo configure:7738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7738 rm -rf conftest*
7739 eval "ac_cv_lib_$ac_lib_var=yes"
7740 else
7741 echo "configure: failed program was:" >&5
7742 cat conftest.$ac_ext >&5
7743 rm -rf conftest*
7744 eval "ac_cv_lib_$ac_lib_var=no"
7745 fi
7746 rm -f conftest*
7747 xe_check_libs=""
7748
7749 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
7750 echo "$ac_t""yes" 1>&6
7751 libdl=dld have_dl=yes;
7752 { test "$extra_verbose" = "yes" && cat << \EOF
7753 Defining HAVE_DLD_INIT
7754 EOF
7755 cat >> confdefs.h <<\EOF
7756 #define HAVE_DLD_INIT 1
7757 EOF
7758 }
7759
7760 else
7761 echo "$ac_t""no" 1>&6
7762 fi
7763
7764
7765 fi
7766
7767
7768 fi
7769 esac fi
7770 if test -n "$have_dl"; then
7771
7772 dll_ld=
7773 dll_ldflags=
7774 dll_cflags=
7775 dll_post=
7776 dll_ldo="-o"
7777 ld_dynamic_link_flags=
7778 xehost=$canonical
7779 xealias=$internal_configuration
7780
7781 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
7782 echo "configure:7783: checking how to build dynamic libraries for ${xehost}" >&5
7783 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
7784 case "$xehost" in
7785 *-*-linux-gnu*) ;;
7786 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
7787 esac
7788
7789 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
7790 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
7791 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
7792
7793 case "$xehost_os" in
7794 aix3*)
7795 # AIX sometimes has problems with the GCC collect2 program. For some
7796 # reason, if we set the COLLECT_NAMES environment variable, the problems
7797 # vanish in a puff of smoke.
7798 if test "${COLLECT_NAMES+set}" != set; then
7799 COLLECT_NAMES=
7800 export COLLECT_NAMES
7801 fi
7802 ;;
7803 esac
7804
7805 # Now see if the compiler is really GCC.
7806 if test "$GCC" = "yes"; then
7807 XEGCC=yes
7808 else
7809 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
7810 echo "configure:7811: checking checking whether we are using GNU C" >&5
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7814
7815 #ifdef __GNUC__
7816 yes;
7817 #endif
7818
7819 EOF
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821 egrep "yes" >/dev/null 2>&1; then
7822 rm -rf conftest*
7823 XEGCC=yes
7824 else
7825 rm -rf conftest*
7826 XEGCC=no
7827 fi
7828 rm -f conftest*
7829
7830 echo "$ac_t""${XEGCC}" 1>&6
7831 fi
7832
7833 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
7834 echo "configure:7835: checking how to produce PIC code" >&5
7835 wl=
7836
7837 can_build_shared=yes
7838 cygwin_warn=
7839 if test "$XEGCC" = yes; then
7840 wl='-Wl,'
7841
7842 case "$xehost_os" in
7843 aix[3-9]* | irix[5-9]* | osf[3-9])
7844 # PIC is the default for these OSes.
7845 ;;
7846
7847 os2*)
7848 # We can build DLLs from non-PIC.
7849 ;;
7850 amigaos*)
7851 # FIXME: we need at least 68020 code to build shared libraries, but
7852 # adding the `-m68020' flag to GCC prevents building anything better,
7853 # like `-m68040'.
7854 dll_cflags='-m68020 -resident32 -malways-restore-a4'
7855 ;;
7856 *cygwin* | *mingw* )
7857 # PIC is the default
7858 cygwin_warn=yes
7859 # #### Need some trickery involving import libraries that we don't
7860 # currently support.
7861 can_build_shared=no
7862 ;;
7863 *)
7864 dll_cflags='-fPIC'
7865 ;;
7866 esac
7867 else
7868 # PORTME Check for PIC flags for the system compiler.
7869 case "$xehost_os" in
7870 hpux9* | hpux1[0-9]*)
7871 # Is there a better link_static_flag that works with the bundled CC?
7872 wl='-Wl,'
7873 dll_cflags='+Z'
7874 ;;
7875
7876 irix[5-9]*)
7877 wl='-Wl,'
7878 # PIC (with -KPIC) is the default.
7879 ;;
7880
7881 os2*)
7882 # We can build DLLs from non-PIC.
7883 ;;
7884
7885 osf[3-9]*)
7886 # All OSF/1 code is PIC.
7887 wl='-Wl,'
7888 ;;
7889
7890 aix[3-9]*)
7891 # All AIX code is PIC.
7892 wl='-Wl,'
7893 ;;
7894
7895 sco3.2v5*)
7896 dll_cflags='-belf -Kpic'
7897 wl='-Wl,'
7898 ;;
7899
7900 unixware*)
7901 dll_cflags="-KPIC"
7902 wl="-Wl,"
7903 ;;
7904
7905 sysv4*)
7906 dll_cflags="-KPIC"
7907 wl="-Wl,"
7908 ;;
7909
7910 sysv5*)
7911 dll_cflags="-KPIC"
7912 wl="-Wl,"
7913 ;;
7914
7915 solaris2*)
7916 dll_cflags='-KPIC'
7917 wl='-Wl,'
7918 ;;
7919
7920 sunos4*)
7921 dll_cflags='-PIC'
7922 wl='-Qoption ld '
7923 ;;
7924
7925 uts4*)
7926 dll_cflags='-pic'
7927 ;;
7928
7929 *)
7930 can_build_shared=no
7931 ;;
7932 esac
7933 fi
7934
7935 if test -n "$dll_cflags"; then
7936 echo "$ac_t""${dll_cflags}" 1>&6
7937
7938 # Check to make sure the dll_cflags actually works.
7939 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
7940 echo "configure:7941: checking if PIC flag ${dll_cflags} really works" >&5
7941 save_CFLAGS="$CFLAGS"
7942 CFLAGS="$CFLAGS $dll_cflags -DPIC"
7943 cat > conftest.$ac_ext <<EOF
7944 #line 7945 "configure"
7945 #include "confdefs.h"
7946
7947 int main() {
7948 int x=0;
7949 ; return 0; }
7950 EOF
7951 if { (eval echo configure:7952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7952 rm -rf conftest*
7953
7954 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
7955 # reports no error. So, we need to grep stderr for (Bundled).
7956 if grep '(Bundled)' config.log >/dev/null; then
7957 echo "$ac_t""no" 1>&6
7958 can_build_shared=no
7959 dll_cflags=
7960 else
7961 echo "$ac_t""yes" 1>&6
7962 fi
7963 else
7964 echo "configure: failed program was:" >&5
7965 cat conftest.$ac_ext >&5
7966 rm -rf conftest*
7967 echo "$ac_t""no" 1>&6
7968 can_build_shared=no
7969 dll_cflags=
7970 fi
7971 rm -f conftest*
7972 CFLAGS="$save_CFLAGS"
7973 else
7974 echo "$ac_t""none" 1>&6
7975 fi
7976
7977 if test -n "$cygwin_warn"; then
7978 echo "configure: warning: Cannot currently build modules under Cygwin." 1>&2
7979 fi
7980
7981 if test "$can_build_shared" = "yes"; then
7982 cc_produces_so=no
7983 xldf=
7984 xcldf=
7985 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
7986 echo "configure:7987: checking if C compiler can produce shared libraries" >&5
7987 if test "$XEGCC" = yes; then
7988 xcldf="-shared"
7989 xldf="-shared"
7990 else # Not using GCC
7991 case "$xehost_os" in
7992 aix[3-9]*)
7993 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
7994 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
7995 ;;
7996
7997 freebsd2* | netbsd* | openbsd*)
7998 xldf="-Bshareable"
7999 xcldf="${wl}-Bshareable"
8000 ;;
8001
8002 freebsd3*)
8003 xcldf="-shared"
8004 ;;
8005
8006 hpux*)
8007 xldf="-b +s"
8008 xcldf="${wl}-b ${wl}+s"
8009 ;;
8010
8011 irix[5-9]* | osf[3-9]*)
8012 xcldf="${wl}-shared"
8013 xldf="-shared"
8014 ;;
8015
8016 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
8017 xcldf="-G"
8018 xldf="-G"
8019 ;;
8020
8021 sunos4*)
8022 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
8023 xldf="-assert pure-text -Bstatic"
8024 ;;
8025 esac
8026 fi # End if if we are using gcc
8027
8028 if test -n "$xcldf"; then
8029 save_LDFLAGS=$LDFLAGS
8030 save_LIBS=$LIBS
8031 save_xe_libs=$xe_libs
8032 LDFLAGS="$xcldf $LDFLAGS"
8033 LIBS=
8034 xe_libs=
8035 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
8036 cat > conftest.$ac_ext <<EOF
8037 #line 8038 "configure"
8038 #include "confdefs.h"
8039
8040 int main() {
8041 int x=0;
8042 ; return 0; }
8043 EOF
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8045 rm -rf conftest*
8046 cc_produces_so=yes
8047 else
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8050 rm -rf conftest*
8051 cc_produces_so=no
8052 fi
8053 rm -f conftest*
8054 LDFLAGS=$save_LDFLAGS
8055 LIBS=$save_LIBS
8056 xe_libs=$save_xe_libs
8057 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
8058 else
8059 cc_produces_so=no
8060 fi
8061 echo "$ac_t""${cc_produces_so}" 1>&6
8062
8063 LTLD=$LD
8064 if test -z "$LTLD"; then
8065 ac_prog=ld
8066 if test "$XEGCC" = yes; then
8067 # Check if gcc -print-prog-name=ld gives a path.
8068 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
8069 echo "configure:8070: checking for ld used by GCC" >&5
8070 ac_prog=`($CC -print-prog-name=ld) 2>&5`
8071 case "$ac_prog" in
8072 # Accept absolute paths.
8073 /*)
8074 if test -z "$LTLD"; then
8075 # case "$ac_prog" in
8076 # *gcc-lib*) LTLD="$CC"
8077 # ;;
8078 # *)
8079 LTLD="$ac_prog"
8080 # ;;
8081 # esac
8082 fi
8083 ;;
8084 "")
8085 # If it fails, then pretend we aren't using GCC.
8086 ac_prog=ld
8087 ;;
8088 *)
8089 # If it is relative, then search for the first ld in PATH.
8090 with_gnu_ld=unknown
8091 ;;
8092 esac
8093 else
8094 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
8095 echo "configure:8096: checking for GNU ld" >&5
8096 fi
8097
8098 if test -z "$LTLD"; then
8099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8100 for ac_dir in $PATH; do
8101 test -z "$ac_dir" && ac_dir=.
8102 if test -f "$ac_dir/$ac_prog"; then
8103 LTLD="$ac_dir/$ac_prog"
8104 # Check to see if the program is GNU ld. I'd rather use --version,
8105 # but apparently some GNU ld's only accept -v.
8106 # Break only if it was the GNU/non-GNU ld that we prefer.
8107 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8108 xe_gnu_ld=yes
8109 else
8110 xe_gnu_ld=no
8111 fi
8112 fi
8113 done
8114 IFS="$ac_save_ifs"
8115 fi
8116
8117 if test -n "$LTLD"; then
8118 echo "$ac_t""${LTLD}" 1>&6
8119 else
8120 echo "$ac_t""no" 1>&6
8121 fi
8122
8123 if test -z "$LTLD" -a "$cc_produces_so" = no; then
8124 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
8125 exit 1
8126 fi
8127 fi
8128
8129 ld_dynamic_link_flags=
8130
8131 # Check to see if it really is or isn't GNU ld.
8132 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
8133 echo "configure:8134: checking if the linker is GNU ld" >&5
8134 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8135 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8136 xe_gnu_ld=yes
8137 else
8138 xe_gnu_ld=no
8139 fi
8140 echo "$ac_t""${xe_gnu_ld}" 1>&6
8141
8142 case "$xehost_os" in
8143 amigaos* | sunos4*)
8144 # On these operating systems, we should treat GNU ld like the system ld.
8145 gnu_ld_acts_native=yes
8146 ;;
8147 *)
8148 gnu_ld_acts_native=no
8149 ;;
8150 esac
8151
8152 if test "$cc_produces_so" = "yes"; then
8153 dll_ld=$CC
8154 dll_ldflags=$xcldf
8155 can_build_shared=yes
8156 ld_shlibs=yes
8157 else
8158 # OK - only NOW do we futz about with ld.
8159 # See if the linker supports building shared libraries.
8160 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
8161 echo "configure:8162: checking whether the linker supports shared libraries" >&5
8162 dll_ld=$CC
8163 dll_ldflags=$LDFLAGS
8164 ld_shlibs=yes
8165 can_build_shared=yes
8166 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
8167 # See if GNU ld supports shared libraries.
8168 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8169 dll_ld=$CC
8170 dll_ldflags="-shared"
8171 ld_shlibs=yes
8172 else
8173 ld_shlibs=no
8174 fi
8175 else
8176 # PORTME fill in a description of your system's linker (not GNU ld)
8177 case "$xehost_os" in
8178 aix3*)
8179 dll_ld=$LTLD
8180 dll_ldflags=$xldf
8181 ;;
8182
8183 aix[4-9]*)
8184 dll_ldflags=$xcldf
8185 ;;
8186
8187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8188 # support. Future versions do this automatically, but an explicit c++rt0.o
8189 # doesn't break anything, and helps significantly (at the cost of a little
8190 # extra space).
8191 freebsd2.2*)
8192 dll_ld=$LTLD
8193 dll_ldflags=$xldf
8194 dll_post="/usr/lib/c++rt0.o"
8195 ;;
8196
8197 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
8198 freebsd2*)
8199 dll_ld=$LTLD
8200 dll_ldflags="-Bshareable"
8201 ;;
8202
8203 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
8204 freebsd3*)
8205 dll_ldflags="-shared"
8206 ;;
8207
8208 hpux*)
8209 dll_ld=$LTLD
8210 dll_ldflags=$xldf
8211 ;;
8212
8213 irix[5-9]*)
8214 dll_ld=$LTLD
8215 dll_ldflags=$xldf
8216 ;;
8217
8218 netbsd*)
8219 # Tested with NetBSD 1.2 ld
8220 dll_ld=$LTLD
8221 dll_ldflags=$xldf
8222 ;;
8223
8224 openbsd*)
8225 dll_ld=$LTLD
8226 dll_ldflags=$xldf
8227 ;;
8228
8229 osf3* | osf4*)
8230 dll_ld=$LTLD
8231 dll_ldflags=$xldf
8232 ;;
8233
8234 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
8235 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
8236 dll_ld=$LTLD
8237 case "$dll_ld" in
8238 *gcc*) dll_ldflags="-shared"
8239 dll_ld=$CC
8240 ;;
8241 *) dll_ldflags="-G"
8242 ;;
8243 esac
8244 ;;
8245
8246 sunos4*)
8247 if test "$XEGCC" = yes; then
8248 dll_ld=$CC
8249 else
8250 dll_ld=$LTLD
8251 fi
8252 dll_ldflags=$xldf
8253 ;;
8254
8255 uts4*)
8256 dll_ld=$LTLD
8257 dll_ldflags="-G"
8258 ;;
8259
8260 bsdi*)
8261 dll_ldflags="-r"
8262 dll_ld="shlicc2"
8263 ;;
8264
8265 *)
8266 ld_shlibs=no
8267 can_build_shared=no
8268 ;;
8269 esac
8270 fi
8271 echo "$ac_t""${ld_shlibs}" 1>&6
8272 if test "$ld_shlibs" = "no"; then
8273 can_build_shared=no
8274 fi
8275 fi # End of if cc_produces_so = no
8276
8277
8278 if test "$xe_gnu_ld" = yes; then
8279 if test "$ld_shlibs" = yes; then
8280 ld_dynamic_link_flags="${wl}-export-dynamic"
8281 fi
8282 fi
8283
8284 if test -z "$ld_dynamic_link_flags"; then
8285 case "$xehost_os" in
8286 aix[3-9]*)
8287 ld_dynamic_link_flags=
8288 ;;
8289
8290 freebsd2.2*)
8291 ld_dynamic_link_flags=
8292 ;;
8293
8294 freebsd2*)
8295 ld_dynamic_link_flags=
8296 ;;
8297
8298 freebsd3*)
8299 ld_dynamic_link_flags=
8300 ;;
8301
8302 hpux*)
8303 ld_dynamic_link_flags="${wl}-E"
8304 ;;
8305
8306 irix[5-9]*)
8307 ld_dynamic_link_flags=
8308 ;;
8309
8310 netbsd*)
8311 ld_dynamic_link_flags=
8312 ;;
8313
8314 openbsd*)
8315 ld_dynamic_link_flags=
8316 ;;
8317
8318 osf3* | osf4*)
8319 ld_dynamic_link_flags=
8320 ;;
8321
8322 solaris2* | solaris7*)
8323 ld_dynamic_link_flags=
8324 ;;
8325
8326 sco3.2v5* | unixware* | sysv5* | sysv4*)
8327 ld_dynamic_link_flags="${wl}-Bexport"
8328 ;;
8329
8330 sunos4*)
8331 ld_dynamic_link_flags=
8332 ;;
8333
8334 uts4*)
8335 ld_dynamic_link_flags=
8336 ;;
8337
8338 bsdi*)
8339 ld_dynamic_link_flags=
8340 ;;
8341
8342 esac
8343 fi # End of if -z ld_dynamic_link_flags
8344 fi # End of if test "$can_build_shared" = "yes"
8345
8346
8347
8348
8349
8350
8351
8352
8353 fi
8354
8355 if test "$can_build_shared" = "yes"; then
8356 { test "$extra_verbose" = "yes" && cat << \EOF
8357 Defining HAVE_SHLIB
8358 EOF
8359 cat >> confdefs.h <<\EOF
8360 #define HAVE_SHLIB 1
8361 EOF
8362 }
8363
8364 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
8365 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
8366 for ac_func in dlerror _dlerror
8367 do
8368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8369 echo "configure:8370: checking for $ac_func" >&5
8370
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 /* System header to define __stub macros and hopefully few prototypes,
8375 which can conflict with char $ac_func(); below. */
8376 #include <assert.h>
8377 /* Override any gcc2 internal prototype to avoid an error. */
8378 /* We use char because int might match the return type of a gcc2
8379 builtin and then its argument prototype would still apply. */
8380 char $ac_func();
8381
8382 int main() {
8383
8384 /* The GNU C library defines this for functions which it implements
8385 to always fail with ENOSYS. Some functions are actually named
8386 something starting with __ and the normal name is an alias. */
8387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8388 choke me
8389 #else
8390 $ac_func();
8391 #endif
8392
8393 ; return 0; }
8394 EOF
8395 if { (eval echo configure:8396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8396 rm -rf conftest*
8397 eval "ac_cv_func_$ac_func=yes"
8398 else
8399 echo "configure: failed program was:" >&5
8400 cat conftest.$ac_ext >&5
8401 rm -rf conftest*
8402 eval "ac_cv_func_$ac_func=no"
8403 fi
8404 rm -f conftest*
8405
8406 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8407 echo "$ac_t""yes" 1>&6
8408 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8409 { test "$extra_verbose" = "yes" && cat << EOF
8410 Defining $ac_tr_func
8411 EOF
8412 cat >> confdefs.h <<EOF
8413 #define $ac_tr_func 1
8414 EOF
8415 }
8416
8417 else
8418 echo "$ac_t""no" 1>&6
8419 fi
8420 done
8421
8422 with_modules=yes
8423 MOD_CC="../../lib-src/ellcc"
8424 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
8425 INSTALLPATH="\$(moduledir)"
8426 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
8427 OBJECT_TO_BUILD="\$(MODNAME).ell"
8428 else
8429 if test "$with_modules" = "yes"; then
8430 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
8431 else
8432 echo " No module support."
8433 fi
8434 with_modules=no
8435 MOD_CC="$XEMACS_CC"
8436 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
8437 INSTALLPATH=""
8438 MOD_INSTALL_PROGRAM="true"
8439 OBJECT_TO_BUILD="\$(MODNAME).o"
8440 fi
8441 fi
8442 MODARCHDIR=
8443 MAKE_DOCFILE="../../lib-src/make-docfile"
8444
8445
8446
8447
8448
8449
8450
8451
7581 8452
7582 if test "$with_tooltalk" != "no" ; then 8453 if test "$with_tooltalk" != "no" ; then
7583 for dir in "" "Tt/" "desktop/" ; do 8454 for dir in "" "Tt/" "desktop/" ; do
7584 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` 8455 ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'`
7585 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 8456 echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6
7586 echo "configure:7587: checking for ${dir}tt_c.h" >&5 8457 echo "configure:8458: checking for ${dir}tt_c.h" >&5
7587 8458
7588 cat > conftest.$ac_ext <<EOF 8459 cat > conftest.$ac_ext <<EOF
7589 #line 7590 "configure" 8460 #line 8461 "configure"
7590 #include "confdefs.h" 8461 #include "confdefs.h"
7591 #include <${dir}tt_c.h> 8462 #include <${dir}tt_c.h>
7592 EOF 8463 EOF
7593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7594 { (eval echo configure:7595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8465 { (eval echo configure:8466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7596 if test -z "$ac_err"; then 8467 if test -z "$ac_err"; then
7597 rm -rf conftest* 8468 rm -rf conftest*
7598 eval "ac_cv_header_$ac_safe=yes" 8469 eval "ac_cv_header_$ac_safe=yes"
7599 else 8470 else
7625 for extra_libs in "" "-lI18N -lce" "-lcxx"; do 8496 for extra_libs in "" "-lI18N -lce" "-lcxx"; do
7626 8497
7627 xe_msg_checking="for tt_message_create in -ltt" 8498 xe_msg_checking="for tt_message_create in -ltt"
7628 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" 8499 test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs"
7629 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 8500 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
7630 echo "configure:7631: checking "$xe_msg_checking"" >&5 8501 echo "configure:8502: checking "$xe_msg_checking"" >&5
7631 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` 8502 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'`
7632 8503
7633 xe_check_libs=" -ltt $extra_libs" 8504 xe_check_libs=" -ltt $extra_libs"
7634 cat > conftest.$ac_ext <<EOF 8505 cat > conftest.$ac_ext <<EOF
7635 #line 7636 "configure" 8506 #line 8507 "configure"
7636 #include "confdefs.h" 8507 #include "confdefs.h"
7637 /* Override any gcc2 internal prototype to avoid an error. */ 8508 /* Override any gcc2 internal prototype to avoid an error. */
7638 /* We use char because int might match the return type of a gcc2 8509 /* We use char because int might match the return type of a gcc2
7639 builtin and then its argument prototype would still apply. */ 8510 builtin and then its argument prototype would still apply. */
7640 char tt_message_create(); 8511 char tt_message_create();
7641 8512
7642 int main() { 8513 int main() {
7643 tt_message_create() 8514 tt_message_create()
7644 ; return 0; } 8515 ; return 0; }
7645 EOF 8516 EOF
7646 if { (eval echo configure:7647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8517 if { (eval echo configure:8518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7647 rm -rf conftest* 8518 rm -rf conftest*
7648 eval "ac_cv_lib_$ac_lib_var=yes" 8519 eval "ac_cv_lib_$ac_lib_var=yes"
7649 else 8520 else
7650 echo "configure: failed program was:" >&5 8521 echo "configure: failed program was:" >&5
7651 cat conftest.$ac_ext >&5 8522 cat conftest.$ac_ext >&5
7695 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi 8566 libs_x="$tt_libs $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$tt_libs\" to \$libs_x"; fi
7696 fi 8567 fi
7697 8568
7698 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` 8569 test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'`
7699 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 8570 echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6
7700 echo "configure:7701: checking for Dt/Dt.h" >&5 8571 echo "configure:8572: checking for Dt/Dt.h" >&5
7701 8572
7702 cat > conftest.$ac_ext <<EOF 8573 cat > conftest.$ac_ext <<EOF
7703 #line 7704 "configure" 8574 #line 8575 "configure"
7704 #include "confdefs.h" 8575 #include "confdefs.h"
7705 #include <Dt/Dt.h> 8576 #include <Dt/Dt.h>
7706 EOF 8577 EOF
7707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7708 { (eval echo configure:7709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8579 { (eval echo configure:8580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7710 if test -z "$ac_err"; then 8581 if test -z "$ac_err"; then
7711 rm -rf conftest* 8582 rm -rf conftest*
7712 eval "ac_cv_header_$ac_safe=yes" 8583 eval "ac_cv_header_$ac_safe=yes"
7713 else 8584 else
7726 with_cde=no 8597 with_cde=no
7727 fi 8598 fi
7728 } 8599 }
7729 test -z "$with_cde" && { 8600 test -z "$with_cde" && {
7730 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 8601 echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6
7731 echo "configure:7732: checking for DtDndDragStart in -lDtSvc" >&5 8602 echo "configure:8603: checking for DtDndDragStart in -lDtSvc" >&5
7732 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` 8603 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'`
7733 8604
7734 xe_check_libs=" -lDtSvc " 8605 xe_check_libs=" -lDtSvc "
7735 cat > conftest.$ac_ext <<EOF 8606 cat > conftest.$ac_ext <<EOF
7736 #line 7737 "configure" 8607 #line 8608 "configure"
7737 #include "confdefs.h" 8608 #include "confdefs.h"
7738 /* Override any gcc2 internal prototype to avoid an error. */ 8609 /* Override any gcc2 internal prototype to avoid an error. */
7739 /* We use char because int might match the return type of a gcc2 8610 /* We use char because int might match the return type of a gcc2
7740 builtin and then its argument prototype would still apply. */ 8611 builtin and then its argument prototype would still apply. */
7741 char DtDndDragStart(); 8612 char DtDndDragStart();
7742 8613
7743 int main() { 8614 int main() {
7744 DtDndDragStart() 8615 DtDndDragStart()
7745 ; return 0; } 8616 ; return 0; }
7746 EOF 8617 EOF
7747 if { (eval echo configure:7748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8618 if { (eval echo configure:8619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7748 rm -rf conftest* 8619 rm -rf conftest*
7749 eval "ac_cv_lib_$ac_lib_var=yes" 8620 eval "ac_cv_lib_$ac_lib_var=yes"
7750 else 8621 else
7751 echo "configure: failed program was:" >&5 8622 echo "configure: failed program was:" >&5
7752 cat conftest.$ac_ext >&5 8623 cat conftest.$ac_ext >&5
7823 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi 8694 dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi
7824 fi 8695 fi
7825 8696
7826 if test "$with_dragndrop" != "no" ; then 8697 if test "$with_dragndrop" != "no" ; then
7827 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 8698 echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6
7828 echo "configure:7829: checking if drag and drop API is needed" >&5 8699 echo "configure:8700: checking if drag and drop API is needed" >&5
7829 if test -n "$dragndrop_proto" ; then 8700 if test -n "$dragndrop_proto" ; then
7830 with_dragndrop=yes 8701 with_dragndrop=yes
7831 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 8702 echo "$ac_t""yes (${dragndrop_proto} )" 1>&6
7832 { test "$extra_verbose" = "yes" && cat << \EOF 8703 { test "$extra_verbose" = "yes" && cat << \EOF
7833 Defining HAVE_DRAGNDROP 8704 Defining HAVE_DRAGNDROP
7842 with_dragndrop=no 8713 with_dragndrop=no
7843 echo "$ac_t""no" 1>&6 8714 echo "$ac_t""no" 1>&6
7844 fi 8715 fi
7845 fi 8716 fi
7846 8717
8718 echo "checking for LDAP" 1>&6
8719 echo "configure:8720: checking for LDAP" >&5
8720 ldap_libs=
8721 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
8722 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
8723 echo "configure:8724: checking for ldap.h" >&5
8724
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 #include <ldap.h>
8729 EOF
8730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8731 { (eval echo configure:8732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8733 if test -z "$ac_err"; then
8734 rm -rf conftest*
8735 eval "ac_cv_header_$ac_safe=yes"
8736 else
8737 echo "$ac_err" >&5
8738 echo "configure: failed program was:" >&5
8739 cat conftest.$ac_ext >&5
8740 rm -rf conftest*
8741 eval "ac_cv_header_$ac_safe=no"
8742 fi
8743 rm -f conftest*
8744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8745 echo "$ac_t""yes" 1>&6
8746 :
8747 else
8748 echo "$ac_t""no" 1>&6
8749 with_ldap=no
8750 fi
8751 }
8752 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
8753 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
8754 echo "configure:8755: checking for lber.h" >&5
8755
8756 cat > conftest.$ac_ext <<EOF
8757 #line 8758 "configure"
8758 #include "confdefs.h"
8759 #include <lber.h>
8760 EOF
8761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8762 { (eval echo configure:8763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8764 if test -z "$ac_err"; then
8765 rm -rf conftest*
8766 eval "ac_cv_header_$ac_safe=yes"
8767 else
8768 echo "$ac_err" >&5
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 rm -rf conftest*
8772 eval "ac_cv_header_$ac_safe=no"
8773 fi
8774 rm -f conftest*
8775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8776 echo "$ac_t""yes" 1>&6
8777 :
8778 else
8779 echo "$ac_t""no" 1>&6
8780 with_ldap=no
8781 fi
8782 }
8783 if test "$with_ldap" != "no"; then
8784
8785 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
8786 echo "configure:8787: checking for ldap_search in -lldap" >&5
8787 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
8788
8789 xe_check_libs=" -lldap "
8790 cat > conftest.$ac_ext <<EOF
8791 #line 8792 "configure"
8792 #include "confdefs.h"
8793 /* Override any gcc2 internal prototype to avoid an error. */
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8796 char ldap_search();
8797
8798 int main() {
8799 ldap_search()
8800 ; return 0; }
8801 EOF
8802 if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8803 rm -rf conftest*
8804 eval "ac_cv_lib_$ac_lib_var=yes"
8805 else
8806 echo "configure: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8808 rm -rf conftest*
8809 eval "ac_cv_lib_$ac_lib_var=no"
8810 fi
8811 rm -f conftest*
8812 xe_check_libs=""
8813
8814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8815 echo "$ac_t""yes" 1>&6
8816 with_ldap_nolber=yes
8817 else
8818 echo "$ac_t""no" 1>&6
8819 with_ldap_nolber=no
8820 fi
8821
8822
8823 test "$with_ldap_nolber" = "no" && {
8824 xe_msg_checking="for ldap_open in -lldap"
8825 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
8826 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8827 echo "configure:8828: checking "$xe_msg_checking"" >&5
8828 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8829
8830 xe_check_libs=" -lldap -llber"
8831 cat > conftest.$ac_ext <<EOF
8832 #line 8833 "configure"
8833 #include "confdefs.h"
8834 /* Override any gcc2 internal prototype to avoid an error. */
8835 /* We use char because int might match the return type of a gcc2
8836 builtin and then its argument prototype would still apply. */
8837 char ldap_open();
8838
8839 int main() {
8840 ldap_open()
8841 ; return 0; }
8842 EOF
8843 if { (eval echo configure:8844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8844 rm -rf conftest*
8845 eval "ac_cv_lib_$ac_lib_var=yes"
8846 else
8847 echo "configure: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8849 rm -rf conftest*
8850 eval "ac_cv_lib_$ac_lib_var=no"
8851 fi
8852 rm -f conftest*
8853 xe_check_libs=""
8854
8855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8856 echo "$ac_t""yes" 1>&6
8857 with_ldap_lber=yes
8858 else
8859 echo "$ac_t""no" 1>&6
8860 with_ldap_lber=no
8861 fi
8862
8863 }
8864 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
8865 xe_msg_checking="for ldap_open in -lldap"
8866 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
8867 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8868 echo "configure:8869: checking "$xe_msg_checking"" >&5
8869 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8870
8871 xe_check_libs=" -lldap -llber -lkrb"
8872 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 /* Override any gcc2 internal prototype to avoid an error. */
8876 /* We use char because int might match the return type of a gcc2
8877 builtin and then its argument prototype would still apply. */
8878 char ldap_open();
8879
8880 int main() {
8881 ldap_open()
8882 ; return 0; }
8883 EOF
8884 if { (eval echo configure:8885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8885 rm -rf conftest*
8886 eval "ac_cv_lib_$ac_lib_var=yes"
8887 else
8888 echo "configure: failed program was:" >&5
8889 cat conftest.$ac_ext >&5
8890 rm -rf conftest*
8891 eval "ac_cv_lib_$ac_lib_var=no"
8892 fi
8893 rm -f conftest*
8894 xe_check_libs=""
8895
8896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8897 echo "$ac_t""yes" 1>&6
8898 with_ldap_krb=yes
8899 else
8900 echo "$ac_t""no" 1>&6
8901 with_ldap_krb=no
8902 fi
8903
8904 }
8905 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
8906 xe_msg_checking="for ldap_open in -lldap"
8907 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
8908 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
8909 echo "configure:8910: checking "$xe_msg_checking"" >&5
8910 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
8911
8912 xe_check_libs=" -lldap -llber -lkrb -ldes"
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8919 char ldap_open();
8920
8921 int main() {
8922 ldap_open()
8923 ; return 0; }
8924 EOF
8925 if { (eval echo configure:8926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8926 rm -rf conftest*
8927 eval "ac_cv_lib_$ac_lib_var=yes"
8928 else
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8931 rm -rf conftest*
8932 eval "ac_cv_lib_$ac_lib_var=no"
8933 fi
8934 rm -f conftest*
8935 xe_check_libs=""
8936
8937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8938 echo "$ac_t""yes" 1>&6
8939 with_ldap_krbdes=yes
8940 else
8941 echo "$ac_t""no" 1>&6
8942 with_ldap_krbdes=no
8943 fi
8944
8945 }
8946 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
8947 fi
8948 if test "$with_ldap" = "yes"; then
8949 { test "$extra_verbose" = "yes" && cat << \EOF
8950 Defining HAVE_LDAP
8951 EOF
8952 cat >> confdefs.h <<\EOF
8953 #define HAVE_LDAP 1
8954 EOF
8955 }
8956
8957 if test "$with_ldap_nolber" = "yes" ; then
8958 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
8959 else
8960 if test "$with_ldap_krb" = "yes" ; then
8961 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
8962 fi
8963 if test "$with_ldap_krbdes" = "yes" ; then
8964 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
8965 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
8966 fi
8967 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
8968 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
8969 fi
8970 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
8971 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
8972 do
8973 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8974 echo "configure:8975: checking for $ac_func" >&5
8975
8976 cat > conftest.$ac_ext <<EOF
8977 #line 8978 "configure"
8978 #include "confdefs.h"
8979 /* System header to define __stub macros and hopefully few prototypes,
8980 which can conflict with char $ac_func(); below. */
8981 #include <assert.h>
8982 /* Override any gcc2 internal prototype to avoid an error. */
8983 /* We use char because int might match the return type of a gcc2
8984 builtin and then its argument prototype would still apply. */
8985 char $ac_func();
8986
8987 int main() {
8988
8989 /* The GNU C library defines this for functions which it implements
8990 to always fail with ENOSYS. Some functions are actually named
8991 something starting with __ and the normal name is an alias. */
8992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8993 choke me
8994 #else
8995 $ac_func();
8996 #endif
8997
8998 ; return 0; }
8999 EOF
9000 if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9001 rm -rf conftest*
9002 eval "ac_cv_func_$ac_func=yes"
9003 else
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9006 rm -rf conftest*
9007 eval "ac_cv_func_$ac_func=no"
9008 fi
9009 rm -f conftest*
9010
9011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9012 echo "$ac_t""yes" 1>&6
9013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9014 { test "$extra_verbose" = "yes" && cat << EOF
9015 Defining $ac_tr_func
9016 EOF
9017 cat >> confdefs.h <<EOF
9018 #define $ac_tr_func 1
9019 EOF
9020 }
9021
9022 else
9023 echo "$ac_t""no" 1>&6
9024 fi
9025 done
9026
9027 LIBS="$save_LIBS"
9028 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
9029 need_modules_common=yes
9030 if test "$with_modules" = "yes"; then
9031 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
9032 fi
9033 fi
9034
9035
9036 postgresql_libs=
9037 if test "$with_postgresql" != "no"; then
9038 echo "checking for PostgreSQL" 1>&6
9039 echo "configure:9040: checking for PostgreSQL" >&5
9040
9041 for header_dir in "" "pgsql/" "postgresql/"; do
9042 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
9043 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
9044 echo "configure:9045: checking for ${header_dir}libpq-fe.h" >&5
9045
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9049 #include <${header_dir}libpq-fe.h>
9050 EOF
9051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9052 { (eval echo configure:9053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9054 if test -z "$ac_err"; then
9055 rm -rf conftest*
9056 eval "ac_cv_header_$ac_safe=yes"
9057 else
9058 echo "$ac_err" >&5
9059 echo "configure: failed program was:" >&5
9060 cat conftest.$ac_ext >&5
9061 rm -rf conftest*
9062 eval "ac_cv_header_$ac_safe=no"
9063 fi
9064 rm -f conftest*
9065 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9066 echo "$ac_t""yes" 1>&6
9067 libpq_fe_h_file=${header_dir}libpq-fe.h; break
9068 else
9069 echo "$ac_t""no" 1>&6
9070 fi
9071
9072 done
9073
9074 test -n "$libpq_fe_h_file" && {
9075 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
9076 echo "configure:9077: checking for PQconnectdb in -lpq" >&5
9077 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
9078
9079 xe_check_libs=" -lpq "
9080 cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 /* Override any gcc2 internal prototype to avoid an error. */
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9086 char PQconnectdb();
9087
9088 int main() {
9089 PQconnectdb()
9090 ; return 0; }
9091 EOF
9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9093 rm -rf conftest*
9094 eval "ac_cv_lib_$ac_lib_var=yes"
9095 else
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 rm -rf conftest*
9099 eval "ac_cv_lib_$ac_lib_var=no"
9100 fi
9101 rm -f conftest*
9102 xe_check_libs=""
9103
9104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9105 echo "$ac_t""yes" 1>&6
9106 have_libpq=yes
9107 else
9108 echo "$ac_t""no" 1>&6
9109 fi
9110
9111 }
9112
9113 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
9114 with_postgresql=yes
9115 { test "$extra_verbose" = "yes" && cat << \EOF
9116 Defining HAVE_POSTGRESQL
9117 EOF
9118 cat >> confdefs.h <<\EOF
9119 #define HAVE_POSTGRESQL 1
9120 EOF
9121 }
9122
9123
9124 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
9125 echo "configure:9126: checking for PQconnectStart in -lpq" >&5
9126 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
9127
9128 xe_check_libs=" -lpq "
9129 cat > conftest.$ac_ext <<EOF
9130 #line 9131 "configure"
9131 #include "confdefs.h"
9132 /* Override any gcc2 internal prototype to avoid an error. */
9133 /* We use char because int might match the return type of a gcc2
9134 builtin and then its argument prototype would still apply. */
9135 char PQconnectStart();
9136
9137 int main() {
9138 PQconnectStart()
9139 ; return 0; }
9140 EOF
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9142 rm -rf conftest*
9143 eval "ac_cv_lib_$ac_lib_var=yes"
9144 else
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9147 rm -rf conftest*
9148 eval "ac_cv_lib_$ac_lib_var=no"
9149 fi
9150 rm -f conftest*
9151 xe_check_libs=""
9152
9153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
9154 echo "$ac_t""yes" 1>&6
9155 with_postgresqlv7=yes;
9156 { test "$extra_verbose" = "yes" && cat << \EOF
9157 Defining HAVE_POSTGRESQLV7
9158 EOF
9159 cat >> confdefs.h <<\EOF
9160 #define HAVE_POSTGRESQLV7 1
9161 EOF
9162 }
9163
9164 else
9165 echo "$ac_t""no" 1>&6
9166 fi
9167
9168
9169 { test "$extra_verbose" = "yes" && cat << EOF
9170 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
9171 EOF
9172 cat >> confdefs.h <<EOF
9173 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
9174 EOF
9175 }
9176
9177 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
9178 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
9179 need_modules_common=yes
9180 if test "$with_modules" = "yes"; then
9181 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
9182 fi
9183 elif test "$with_postgresql" = "yes"; then
9184 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
9185 fi
9186 fi
9187
7847 9188
7848 9189
7849 if test "$window_system" != "none"; then 9190 if test "$window_system" != "none"; then
7850 echo "checking for graphics libraries" 1>&6 9191 echo "checking for graphics libraries" 1>&6
7851 echo "configure:7852: checking for graphics libraries" >&5 9192 echo "configure:9193: checking for graphics libraries" >&5
7852 9193
7853 libpath_xpm= 9194 libpath_xpm=
7854 incpath_xpm= 9195 incpath_xpm=
7855 case "$opsys" in 9196 case "$opsys" in
7856 cygwin*) 9197 cygwin*)
7872 xpm_problem="" 9213 xpm_problem=""
7873 if test -z "$with_xpm"; then 9214 if test -z "$with_xpm"; then
7874 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9215 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
7875 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9216 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
7876 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 9217 echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6
7877 echo "configure:7878: checking for Xpm - no older than 3.4f" >&5 9218 echo "configure:9219: checking for Xpm - no older than 3.4f" >&5
7878 xe_check_libs=-lXpm 9219 xe_check_libs=-lXpm
7879 cat > conftest.$ac_ext <<EOF 9220 cat > conftest.$ac_ext <<EOF
7880 #line 7881 "configure" 9221 #line 9222 "configure"
7881 #include "confdefs.h" 9222 #include "confdefs.h"
7882 #define XPM_NUMBERS 9223 #define XPM_NUMBERS
7883 #include <X11/xpm.h> 9224 #include <X11/xpm.h>
7884 int main(int c, char **v) { 9225 int main(int c, char **v) {
7885 return c == 1 ? 0 : 9226 return c == 1 ? 0 :
7886 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 9227 XpmIncludeVersion != XpmLibraryVersion() ? 1 :
7887 XpmIncludeVersion < 30406 ? 2 : 0 ;} 9228 XpmIncludeVersion < 30406 ? 2 : 0 ;}
7888 EOF 9229 EOF
7889 if { (eval echo configure:7890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9230 if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
7890 then 9231 then
7891 ./conftest dummy_arg; xpm_status=$?; 9232 ./conftest dummy_arg; xpm_status=$?;
7892 if test "$xpm_status" = "0"; then 9233 if test "$xpm_status" = "0"; then
7893 with_xpm=yes; 9234 with_xpm=yes;
7894 else 9235 else
7928 9269
7929 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi 9270 LDFLAGS=""$libpath_xpm" $LDFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$libpath_xpm"\" to \$LDFLAGS"; fi
7930 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi 9271 libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi
7931 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi 9272 CFLAGS=""$incpath_xpm" $CFLAGS" && if test "$extra_verbose" = "yes"; then echo " Prepending \""$incpath_xpm"\" to \$CFLAGS"; fi
7932 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 9273 echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6
7933 echo "configure:7934: checking for \"FOR_MSW\" xpm" >&5 9274 echo "configure:9275: checking for \"FOR_MSW\" xpm" >&5
7934 xe_check_libs=-lXpm 9275 xe_check_libs=-lXpm
7935 cat > conftest.$ac_ext <<EOF 9276 cat > conftest.$ac_ext <<EOF
7936 #line 7937 "configure" 9277 #line 9278 "configure"
7937 #include "confdefs.h" 9278 #include "confdefs.h"
7938 9279
7939 int main() { 9280 int main() {
7940 XpmCreatePixmapFromData() 9281 XpmCreatePixmapFromData()
7941 ; return 0; } 9282 ; return 0; }
7942 EOF 9283 EOF
7943 if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9284 if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7944 rm -rf conftest* 9285 rm -rf conftest*
7945 xpm_for_msw=no 9286 xpm_for_msw=no
7946 else 9287 else
7947 echo "configure: failed program was:" >&5 9288 echo "configure: failed program was:" >&5
7948 cat conftest.$ac_ext >&5 9289 cat conftest.$ac_ext >&5
7964 fi 9305 fi
7965 fi 9306 fi
7966 9307
7967 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9308 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
7968 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9309 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
7969 echo "configure:7970: checking for compface.h" >&5 9310 echo "configure:9311: checking for compface.h" >&5
7970 9311
7971 cat > conftest.$ac_ext <<EOF 9312 cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure" 9313 #line 9314 "configure"
7973 #include "confdefs.h" 9314 #include "confdefs.h"
7974 #include <compface.h> 9315 #include <compface.h>
7975 EOF 9316 EOF
7976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9317 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7977 { (eval echo configure:7978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9318 { (eval echo configure:9319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9319 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7979 if test -z "$ac_err"; then 9320 if test -z "$ac_err"; then
7980 rm -rf conftest* 9321 rm -rf conftest*
7981 eval "ac_cv_header_$ac_safe=yes" 9322 eval "ac_cv_header_$ac_safe=yes"
7982 else 9323 else
7995 with_xface=no 9336 with_xface=no
7996 fi 9337 fi
7997 } 9338 }
7998 test -z "$with_xface" && { 9339 test -z "$with_xface" && {
7999 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9340 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8000 echo "configure:8001: checking for UnGenFace in -lcompface" >&5 9341 echo "configure:9342: checking for UnGenFace in -lcompface" >&5
8001 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9342 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8002 9343
8003 xe_check_libs=" -lcompface " 9344 xe_check_libs=" -lcompface "
8004 cat > conftest.$ac_ext <<EOF 9345 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure" 9346 #line 9347 "configure"
8006 #include "confdefs.h" 9347 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */ 9348 /* Override any gcc2 internal prototype to avoid an error. */
8008 /* We use char because int might match the return type of a gcc2 9349 /* We use char because int might match the return type of a gcc2
8009 builtin and then its argument prototype would still apply. */ 9350 builtin and then its argument prototype would still apply. */
8010 char UnGenFace(); 9351 char UnGenFace();
8011 9352
8012 int main() { 9353 int main() {
8013 UnGenFace() 9354 UnGenFace()
8014 ; return 0; } 9355 ; return 0; }
8015 EOF 9356 EOF
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9357 if { (eval echo configure:9358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017 rm -rf conftest* 9358 rm -rf conftest*
8018 eval "ac_cv_lib_$ac_lib_var=yes" 9359 eval "ac_cv_lib_$ac_lib_var=yes"
8019 else 9360 else
8020 echo "configure: failed program was:" >&5 9361 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5 9362 cat conftest.$ac_ext >&5
8060 fi 9401 fi
8061 9402
8062 if test "$with_png $with_tiff" != "no no"; then 9403 if test "$with_png $with_tiff" != "no no"; then
8063 9404
8064 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 9405 echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6
8065 echo "configure:8066: checking for inflate in -lc" >&5 9406 echo "configure:9407: checking for inflate in -lc" >&5
8066 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` 9407 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'`
8067 9408
8068 xe_check_libs=" -lc " 9409 xe_check_libs=" -lc "
8069 cat > conftest.$ac_ext <<EOF 9410 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure" 9411 #line 9412 "configure"
8071 #include "confdefs.h" 9412 #include "confdefs.h"
8072 /* Override any gcc2 internal prototype to avoid an error. */ 9413 /* Override any gcc2 internal prototype to avoid an error. */
8073 /* We use char because int might match the return type of a gcc2 9414 /* We use char because int might match the return type of a gcc2
8074 builtin and then its argument prototype would still apply. */ 9415 builtin and then its argument prototype would still apply. */
8075 char inflate(); 9416 char inflate();
8076 9417
8077 int main() { 9418 int main() {
8078 inflate() 9419 inflate()
8079 ; return 0; } 9420 ; return 0; }
8080 EOF 9421 EOF
8081 if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9422 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8082 rm -rf conftest* 9423 rm -rf conftest*
8083 eval "ac_cv_lib_$ac_lib_var=yes" 9424 eval "ac_cv_lib_$ac_lib_var=yes"
8084 else 9425 else
8085 echo "configure: failed program was:" >&5 9426 echo "configure: failed program was:" >&5
8086 cat conftest.$ac_ext >&5 9427 cat conftest.$ac_ext >&5
8095 : 9436 :
8096 else 9437 else
8097 echo "$ac_t""no" 1>&6 9438 echo "$ac_t""no" 1>&6
8098 9439
8099 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 9440 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6
8100 echo "configure:8101: checking for inflate in -lz" >&5 9441 echo "configure:9442: checking for inflate in -lz" >&5
8101 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` 9442 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'`
8102 9443
8103 xe_check_libs=" -lz " 9444 xe_check_libs=" -lz "
8104 cat > conftest.$ac_ext <<EOF 9445 cat > conftest.$ac_ext <<EOF
8105 #line 8106 "configure" 9446 #line 9447 "configure"
8106 #include "confdefs.h" 9447 #include "confdefs.h"
8107 /* Override any gcc2 internal prototype to avoid an error. */ 9448 /* Override any gcc2 internal prototype to avoid an error. */
8108 /* We use char because int might match the return type of a gcc2 9449 /* We use char because int might match the return type of a gcc2
8109 builtin and then its argument prototype would still apply. */ 9450 builtin and then its argument prototype would still apply. */
8110 char inflate(); 9451 char inflate();
8111 9452
8112 int main() { 9453 int main() {
8113 inflate() 9454 inflate()
8114 ; return 0; } 9455 ; return 0; }
8115 EOF 9456 EOF
8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9457 if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8117 rm -rf conftest* 9458 rm -rf conftest*
8118 eval "ac_cv_lib_$ac_lib_var=yes" 9459 eval "ac_cv_lib_$ac_lib_var=yes"
8119 else 9460 else
8120 echo "configure: failed program was:" >&5 9461 echo "configure: failed program was:" >&5
8121 cat conftest.$ac_ext >&5 9462 cat conftest.$ac_ext >&5
8130 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi 9471 libs_x="-lz $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lz\" to \$libs_x"; fi
8131 else 9472 else
8132 echo "$ac_t""no" 1>&6 9473 echo "$ac_t""no" 1>&6
8133 9474
8134 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 9475 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6
8135 echo "configure:8136: checking for inflate in -lgz" >&5 9476 echo "configure:9477: checking for inflate in -lgz" >&5
8136 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` 9477 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'`
8137 9478
8138 xe_check_libs=" -lgz " 9479 xe_check_libs=" -lgz "
8139 cat > conftest.$ac_ext <<EOF 9480 cat > conftest.$ac_ext <<EOF
8140 #line 8141 "configure" 9481 #line 9482 "configure"
8141 #include "confdefs.h" 9482 #include "confdefs.h"
8142 /* Override any gcc2 internal prototype to avoid an error. */ 9483 /* Override any gcc2 internal prototype to avoid an error. */
8143 /* We use char because int might match the return type of a gcc2 9484 /* We use char because int might match the return type of a gcc2
8144 builtin and then its argument prototype would still apply. */ 9485 builtin and then its argument prototype would still apply. */
8145 char inflate(); 9486 char inflate();
8146 9487
8147 int main() { 9488 int main() {
8148 inflate() 9489 inflate()
8149 ; return 0; } 9490 ; return 0; }
8150 EOF 9491 EOF
8151 if { (eval echo configure:8152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9492 if { (eval echo configure:9493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8152 rm -rf conftest* 9493 rm -rf conftest*
8153 eval "ac_cv_lib_$ac_lib_var=yes" 9494 eval "ac_cv_lib_$ac_lib_var=yes"
8154 else 9495 else
8155 echo "configure: failed program was:" >&5 9496 echo "configure: failed program was:" >&5
8156 cat conftest.$ac_ext >&5 9497 cat conftest.$ac_ext >&5
8176 9517
8177 fi 9518 fi
8178 9519
8179 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` 9520 test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
8180 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 9521 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
8181 echo "configure:8182: checking for jpeglib.h" >&5 9522 echo "configure:9523: checking for jpeglib.h" >&5
8182 9523
8183 cat > conftest.$ac_ext <<EOF 9524 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure" 9525 #line 9526 "configure"
8185 #include "confdefs.h" 9526 #include "confdefs.h"
8186 #include <jpeglib.h> 9527 #include <jpeglib.h>
8187 EOF 9528 EOF
8188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8189 { (eval echo configure:8190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9530 { (eval echo configure:9531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8191 if test -z "$ac_err"; then 9532 if test -z "$ac_err"; then
8192 rm -rf conftest* 9533 rm -rf conftest*
8193 eval "ac_cv_header_$ac_safe=yes" 9534 eval "ac_cv_header_$ac_safe=yes"
8194 else 9535 else
8207 with_jpeg=no 9548 with_jpeg=no
8208 fi 9549 fi
8209 } 9550 }
8210 test -z "$with_jpeg" && { 9551 test -z "$with_jpeg" && {
8211 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 9552 echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6
8212 echo "configure:8213: checking for jpeg_destroy_decompress in -ljpeg" >&5 9553 echo "configure:9554: checking for jpeg_destroy_decompress in -ljpeg" >&5
8213 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` 9554 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'`
8214 9555
8215 xe_check_libs=" -ljpeg " 9556 xe_check_libs=" -ljpeg "
8216 cat > conftest.$ac_ext <<EOF 9557 cat > conftest.$ac_ext <<EOF
8217 #line 8218 "configure" 9558 #line 9559 "configure"
8218 #include "confdefs.h" 9559 #include "confdefs.h"
8219 /* Override any gcc2 internal prototype to avoid an error. */ 9560 /* Override any gcc2 internal prototype to avoid an error. */
8220 /* We use char because int might match the return type of a gcc2 9561 /* We use char because int might match the return type of a gcc2
8221 builtin and then its argument prototype would still apply. */ 9562 builtin and then its argument prototype would still apply. */
8222 char jpeg_destroy_decompress(); 9563 char jpeg_destroy_decompress();
8223 9564
8224 int main() { 9565 int main() {
8225 jpeg_destroy_decompress() 9566 jpeg_destroy_decompress()
8226 ; return 0; } 9567 ; return 0; }
8227 EOF 9568 EOF
8228 if { (eval echo configure:8229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8229 rm -rf conftest* 9570 rm -rf conftest*
8230 eval "ac_cv_lib_$ac_lib_var=yes" 9571 eval "ac_cv_lib_$ac_lib_var=yes"
8231 else 9572 else
8232 echo "configure: failed program was:" >&5 9573 echo "configure: failed program was:" >&5
8233 cat conftest.$ac_ext >&5 9574 cat conftest.$ac_ext >&5
8259 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi 9600 libs_x="-ljpeg $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ljpeg\" to \$libs_x"; fi
8260 fi 9601 fi
8261 9602
8262 png_problem="" 9603 png_problem=""
8263 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 9604 test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6
8264 echo "configure:8265: checking for pow" >&5 9605 echo "configure:9606: checking for pow" >&5
8265 9606
8266 cat > conftest.$ac_ext <<EOF 9607 cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure" 9608 #line 9609 "configure"
8268 #include "confdefs.h" 9609 #include "confdefs.h"
8269 /* System header to define __stub macros and hopefully few prototypes, 9610 /* System header to define __stub macros and hopefully few prototypes,
8270 which can conflict with char pow(); below. */ 9611 which can conflict with char pow(); below. */
8271 #include <assert.h> 9612 #include <assert.h>
8272 /* Override any gcc2 internal prototype to avoid an error. */ 9613 /* Override any gcc2 internal prototype to avoid an error. */
8285 pow(); 9626 pow();
8286 #endif 9627 #endif
8287 9628
8288 ; return 0; } 9629 ; return 0; }
8289 EOF 9630 EOF
8290 if { (eval echo configure:8291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9631 if { (eval echo configure:9632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8291 rm -rf conftest* 9632 rm -rf conftest*
8292 eval "ac_cv_func_pow=yes" 9633 eval "ac_cv_func_pow=yes"
8293 else 9634 else
8294 echo "configure: failed program was:" >&5 9635 echo "configure: failed program was:" >&5
8295 cat conftest.$ac_ext >&5 9636 cat conftest.$ac_ext >&5
8306 with_png=no 9647 with_png=no
8307 fi 9648 fi
8308 } 9649 }
8309 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` 9650 test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
8310 echo $ac_n "checking for png.h""... $ac_c" 1>&6 9651 echo $ac_n "checking for png.h""... $ac_c" 1>&6
8311 echo "configure:8312: checking for png.h" >&5 9652 echo "configure:9653: checking for png.h" >&5
8312 9653
8313 cat > conftest.$ac_ext <<EOF 9654 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure" 9655 #line 9656 "configure"
8315 #include "confdefs.h" 9656 #include "confdefs.h"
8316 #include <png.h> 9657 #include <png.h>
8317 EOF 9658 EOF
8318 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9659 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8319 { (eval echo configure:8320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9660 { (eval echo configure:9661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8320 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9661 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8321 if test -z "$ac_err"; then 9662 if test -z "$ac_err"; then
8322 rm -rf conftest* 9663 rm -rf conftest*
8323 eval "ac_cv_header_$ac_safe=yes" 9664 eval "ac_cv_header_$ac_safe=yes"
8324 else 9665 else
8337 with_png=no 9678 with_png=no
8338 fi 9679 fi
8339 } 9680 }
8340 test -z "$with_png" && { 9681 test -z "$with_png" && {
8341 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 9682 echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6
8342 echo "configure:8343: checking for png_read_image in -lpng" >&5 9683 echo "configure:9684: checking for png_read_image in -lpng" >&5
8343 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` 9684 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'`
8344 9685
8345 xe_check_libs=" -lpng " 9686 xe_check_libs=" -lpng "
8346 cat > conftest.$ac_ext <<EOF 9687 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure" 9688 #line 9689 "configure"
8348 #include "confdefs.h" 9689 #include "confdefs.h"
8349 /* Override any gcc2 internal prototype to avoid an error. */ 9690 /* Override any gcc2 internal prototype to avoid an error. */
8350 /* We use char because int might match the return type of a gcc2 9691 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */ 9692 builtin and then its argument prototype would still apply. */
8352 char png_read_image(); 9693 char png_read_image();
8353 9694
8354 int main() { 9695 int main() {
8355 png_read_image() 9696 png_read_image()
8356 ; return 0; } 9697 ; return 0; }
8357 EOF 9698 EOF
8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9699 if { (eval echo configure:9700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8359 rm -rf conftest* 9700 rm -rf conftest*
8360 eval "ac_cv_lib_$ac_lib_var=yes" 9701 eval "ac_cv_lib_$ac_lib_var=yes"
8361 else 9702 else
8362 echo "configure: failed program was:" >&5 9703 echo "configure: failed program was:" >&5
8363 cat conftest.$ac_ext >&5 9704 cat conftest.$ac_ext >&5
8376 fi 9717 fi
8377 9718
8378 } 9719 }
8379 if test -z "$with_png"; then 9720 if test -z "$with_png"; then
8380 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 9721 echo $ac_n "checking for workable png version information""... $ac_c" 1>&6
8381 echo "configure:8382: checking for workable png version information" >&5 9722 echo "configure:9723: checking for workable png version information" >&5
8382 xe_check_libs="-lpng -lz" 9723 xe_check_libs="-lpng -lz"
8383 cat > conftest.$ac_ext <<EOF 9724 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure" 9725 #line 9726 "configure"
8385 #include "confdefs.h" 9726 #include "confdefs.h"
8386 #include <png.h> 9727 #include <png.h>
8387 int main(int c, char **v) { 9728 int main(int c, char **v) {
8388 if (c == 1) return 0; 9729 if (c == 1) return 0;
8389 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; 9730 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1;
8390 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} 9731 return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;}
8391 EOF 9732 EOF
8392 if { (eval echo configure:8393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 9733 if { (eval echo configure:9734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
8393 then 9734 then
8394 ./conftest dummy_arg; png_status=$?; 9735 ./conftest dummy_arg; png_status=$?;
8395 if test "$png_status" = "0"; then 9736 if test "$png_status" = "0"; then
8396 with_png=yes; 9737 with_png=yes;
8397 else 9738 else
8430 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi 9771 libs_x="-lpng $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpng\" to \$libs_x"; fi
8431 fi 9772 fi
8432 9773
8433 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` 9774 test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
8434 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 9775 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
8435 echo "configure:8436: checking for tiffio.h" >&5 9776 echo "configure:9777: checking for tiffio.h" >&5
8436 9777
8437 cat > conftest.$ac_ext <<EOF 9778 cat > conftest.$ac_ext <<EOF
8438 #line 8439 "configure" 9779 #line 9780 "configure"
8439 #include "confdefs.h" 9780 #include "confdefs.h"
8440 #include <tiffio.h> 9781 #include <tiffio.h>
8441 EOF 9782 EOF
8442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8443 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9784 { (eval echo configure:9785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8445 if test -z "$ac_err"; then 9786 if test -z "$ac_err"; then
8446 rm -rf conftest* 9787 rm -rf conftest*
8447 eval "ac_cv_header_$ac_safe=yes" 9788 eval "ac_cv_header_$ac_safe=yes"
8448 else 9789 else
8461 with_tiff=no 9802 with_tiff=no
8462 fi 9803 fi
8463 } 9804 }
8464 test -z "$with_tiff" && { 9805 test -z "$with_tiff" && {
8465 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 9806 echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6
8466 echo "configure:8467: checking for TIFFClientOpen in -ltiff" >&5 9807 echo "configure:9808: checking for TIFFClientOpen in -ltiff" >&5
8467 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` 9808 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'`
8468 9809
8469 xe_check_libs=" -ltiff " 9810 xe_check_libs=" -ltiff "
8470 cat > conftest.$ac_ext <<EOF 9811 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure" 9812 #line 9813 "configure"
8472 #include "confdefs.h" 9813 #include "confdefs.h"
8473 /* Override any gcc2 internal prototype to avoid an error. */ 9814 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2 9815 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */ 9816 builtin and then its argument prototype would still apply. */
8476 char TIFFClientOpen(); 9817 char TIFFClientOpen();
8477 9818
8478 int main() { 9819 int main() {
8479 TIFFClientOpen() 9820 TIFFClientOpen()
8480 ; return 0; } 9821 ; return 0; }
8481 EOF 9822 EOF
8482 if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9823 if { (eval echo configure:9824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8483 rm -rf conftest* 9824 rm -rf conftest*
8484 eval "ac_cv_lib_$ac_lib_var=yes" 9825 eval "ac_cv_lib_$ac_lib_var=yes"
8485 else 9826 else
8486 echo "configure: failed program was:" >&5 9827 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5 9828 cat conftest.$ac_ext >&5
8516 9857
8517 9858
8518 if test "$with_gtk" = "yes"; then 9859 if test "$with_gtk" = "yes"; then
8519 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` 9860 test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'`
8520 echo $ac_n "checking for compface.h""... $ac_c" 1>&6 9861 echo $ac_n "checking for compface.h""... $ac_c" 1>&6
8521 echo "configure:8522: checking for compface.h" >&5 9862 echo "configure:9863: checking for compface.h" >&5
8522 9863
8523 cat > conftest.$ac_ext <<EOF 9864 cat > conftest.$ac_ext <<EOF
8524 #line 8525 "configure" 9865 #line 9866 "configure"
8525 #include "confdefs.h" 9866 #include "confdefs.h"
8526 #include <compface.h> 9867 #include <compface.h>
8527 EOF 9868 EOF
8528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8529 { (eval echo configure:8530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9870 { (eval echo configure:9871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8531 if test -z "$ac_err"; then 9872 if test -z "$ac_err"; then
8532 rm -rf conftest* 9873 rm -rf conftest*
8533 eval "ac_cv_header_$ac_safe=yes" 9874 eval "ac_cv_header_$ac_safe=yes"
8534 else 9875 else
8547 with_xface=no 9888 with_xface=no
8548 fi 9889 fi
8549 } 9890 }
8550 test -z "$with_xface" && { 9891 test -z "$with_xface" && {
8551 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 9892 echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6
8552 echo "configure:8553: checking for UnGenFace in -lcompface" >&5 9893 echo "configure:9894: checking for UnGenFace in -lcompface" >&5
8553 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` 9894 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'`
8554 9895
8555 xe_check_libs=" -lcompface " 9896 xe_check_libs=" -lcompface "
8556 cat > conftest.$ac_ext <<EOF 9897 cat > conftest.$ac_ext <<EOF
8557 #line 8558 "configure" 9898 #line 9899 "configure"
8558 #include "confdefs.h" 9899 #include "confdefs.h"
8559 /* Override any gcc2 internal prototype to avoid an error. */ 9900 /* Override any gcc2 internal prototype to avoid an error. */
8560 /* We use char because int might match the return type of a gcc2 9901 /* We use char because int might match the return type of a gcc2
8561 builtin and then its argument prototype would still apply. */ 9902 builtin and then its argument prototype would still apply. */
8562 char UnGenFace(); 9903 char UnGenFace();
8563 9904
8564 int main() { 9905 int main() {
8565 UnGenFace() 9906 UnGenFace()
8566 ; return 0; } 9907 ; return 0; }
8567 EOF 9908 EOF
8568 if { (eval echo configure:8569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9909 if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8569 rm -rf conftest* 9910 rm -rf conftest*
8570 eval "ac_cv_lib_$ac_lib_var=yes" 9911 eval "ac_cv_lib_$ac_lib_var=yes"
8571 else 9912 else
8572 echo "configure: failed program was:" >&5 9913 echo "configure: failed program was:" >&5
8573 cat conftest.$ac_ext >&5 9914 cat conftest.$ac_ext >&5
8602 9943
8603 9944
8604 9945
8605 if test "$with_x11" = "yes"; then 9946 if test "$with_x11" = "yes"; then
8606 echo "checking for X11 graphics libraries" 1>&6 9947 echo "checking for X11 graphics libraries" 1>&6
8607 echo "configure:8608: checking for X11 graphics libraries" >&5 9948 echo "configure:9949: checking for X11 graphics libraries" >&5
8608 fi 9949 fi
8609 9950
8610 case "$with_widgets" in 9951 case "$with_widgets" in
8611 "yes" | "athena") detect_athena=yes ;; 9952 "yes" | "athena") detect_athena=yes ;;
8612 *) detect_athena=no ;; 9953 *) detect_athena=no ;;
8613 esac 9954 esac
8614 9955
8615 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then 9956 if test "$with_x11" = "yes" -a "$detect_athena" = "yes" ; then
8616 echo "checking for the Athena widgets" 1>&6 9957 echo "checking for the Athena widgets" 1>&6
8617 echo "configure:8618: checking for the Athena widgets" >&5 9958 echo "configure:9959: checking for the Athena widgets" >&5
8618 9959
8619 case "$with_athena" in 9960 case "$with_athena" in
8620 "xaw" | "") athena_variant=Xaw athena_3d=no ;; 9961 "xaw" | "") athena_variant=Xaw athena_3d=no ;;
8621 "3d") athena_variant=Xaw3d athena_3d=yes ;; 9962 "3d") athena_variant=Xaw3d athena_3d=yes ;;
8622 "next") athena_variant=neXtaw athena_3d=yes ;; 9963 "next") athena_variant=neXtaw athena_3d=yes ;;
8626 esac 9967 esac
8627 9968
8628 if test "$athena_3d" = "no"; then 9969 if test "$athena_3d" = "no"; then
8629 9970
8630 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 9971 echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6
8631 echo "configure:8632: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 9972 echo "configure:9973: checking for XawScrollbarSetThumb in -l$athena_variant" >&5
8632 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` 9973 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'`
8633 9974
8634 xe_check_libs=" -l$athena_variant " 9975 xe_check_libs=" -l$athena_variant "
8635 cat > conftest.$ac_ext <<EOF 9976 cat > conftest.$ac_ext <<EOF
8636 #line 8637 "configure" 9977 #line 9978 "configure"
8637 #include "confdefs.h" 9978 #include "confdefs.h"
8638 /* Override any gcc2 internal prototype to avoid an error. */ 9979 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2 9980 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */ 9981 builtin and then its argument prototype would still apply. */
8641 char XawScrollbarSetThumb(); 9982 char XawScrollbarSetThumb();
8642 9983
8643 int main() { 9984 int main() {
8644 XawScrollbarSetThumb() 9985 XawScrollbarSetThumb()
8645 ; return 0; } 9986 ; return 0; }
8646 EOF 9987 EOF
8647 if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8648 rm -rf conftest* 9989 rm -rf conftest*
8649 eval "ac_cv_lib_$ac_lib_var=yes" 9990 eval "ac_cv_lib_$ac_lib_var=yes"
8650 else 9991 else
8651 echo "configure: failed program was:" >&5 9992 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5 9993 cat conftest.$ac_ext >&5
8658 9999
8659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then 10000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
8660 echo "$ac_t""yes" 1>&6 10001 echo "$ac_t""yes" 1>&6
8661 10002
8662 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 10003 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8663 echo "configure:8664: checking for threeDClassRec in -l$athena_variant" >&5 10004 echo "configure:10005: checking for threeDClassRec in -l$athena_variant" >&5
8664 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 10005 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8665 10006
8666 xe_check_libs=" -l$athena_variant " 10007 xe_check_libs=" -l$athena_variant "
8667 cat > conftest.$ac_ext <<EOF 10008 cat > conftest.$ac_ext <<EOF
8668 #line 8669 "configure" 10009 #line 10010 "configure"
8669 #include "confdefs.h" 10010 #include "confdefs.h"
8670 /* Override any gcc2 internal prototype to avoid an error. */ 10011 /* Override any gcc2 internal prototype to avoid an error. */
8671 /* We use char because int might match the return type of a gcc2 10012 /* We use char because int might match the return type of a gcc2
8672 builtin and then its argument prototype would still apply. */ 10013 builtin and then its argument prototype would still apply. */
8673 char threeDClassRec(); 10014 char threeDClassRec();
8674 10015
8675 int main() { 10016 int main() {
8676 threeDClassRec() 10017 threeDClassRec()
8677 ; return 0; } 10018 ; return 0; }
8678 EOF 10019 EOF
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10020 if { (eval echo configure:10021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8680 rm -rf conftest* 10021 rm -rf conftest*
8681 eval "ac_cv_lib_$ac_lib_var=yes" 10022 eval "ac_cv_lib_$ac_lib_var=yes"
8682 else 10023 else
8683 echo "configure: failed program was:" >&5 10024 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5 10025 cat conftest.$ac_ext >&5
8705 10046
8706 10047
8707 else 10048 else
8708 10049
8709 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 10050 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6
8710 echo "configure:8711: checking for threeDClassRec in -l$athena_variant" >&5 10051 echo "configure:10052: checking for threeDClassRec in -l$athena_variant" >&5
8711 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` 10052 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'`
8712 10053
8713 xe_check_libs=" -l$athena_variant " 10054 xe_check_libs=" -l$athena_variant "
8714 cat > conftest.$ac_ext <<EOF 10055 cat > conftest.$ac_ext <<EOF
8715 #line 8716 "configure" 10056 #line 10057 "configure"
8716 #include "confdefs.h" 10057 #include "confdefs.h"
8717 /* Override any gcc2 internal prototype to avoid an error. */ 10058 /* Override any gcc2 internal prototype to avoid an error. */
8718 /* We use char because int might match the return type of a gcc2 10059 /* We use char because int might match the return type of a gcc2
8719 builtin and then its argument prototype would still apply. */ 10060 builtin and then its argument prototype would still apply. */
8720 char threeDClassRec(); 10061 char threeDClassRec();
8721 10062
8722 int main() { 10063 int main() {
8723 threeDClassRec() 10064 threeDClassRec()
8724 ; return 0; } 10065 ; return 0; }
8725 EOF 10066 EOF
8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10067 if { (eval echo configure:10068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8727 rm -rf conftest* 10068 rm -rf conftest*
8728 eval "ac_cv_lib_$ac_lib_var=yes" 10069 eval "ac_cv_lib_$ac_lib_var=yes"
8729 else 10070 else
8730 echo "configure: failed program was:" >&5 10071 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5 10072 cat conftest.$ac_ext >&5
8739 echo "$ac_t""yes" 1>&6 10080 echo "$ac_t""yes" 1>&6
8740 athena_lib=$athena_variant 10081 athena_lib=$athena_variant
8741 else 10082 else
8742 echo "$ac_t""no" 1>&6 10083 echo "$ac_t""no" 1>&6
8743 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 10084 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6
8744 echo "configure:8745: checking for threeDClassRec in -lXaw" >&5 10085 echo "configure:10086: checking for threeDClassRec in -lXaw" >&5
8745 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` 10086 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'`
8746 10087
8747 xe_check_libs=" -lXaw " 10088 xe_check_libs=" -lXaw "
8748 cat > conftest.$ac_ext <<EOF 10089 cat > conftest.$ac_ext <<EOF
8749 #line 8750 "configure" 10090 #line 10091 "configure"
8750 #include "confdefs.h" 10091 #include "confdefs.h"
8751 /* Override any gcc2 internal prototype to avoid an error. */ 10092 /* Override any gcc2 internal prototype to avoid an error. */
8752 /* We use char because int might match the return type of a gcc2 10093 /* We use char because int might match the return type of a gcc2
8753 builtin and then its argument prototype would still apply. */ 10094 builtin and then its argument prototype would still apply. */
8754 char threeDClassRec(); 10095 char threeDClassRec();
8755 10096
8756 int main() { 10097 int main() {
8757 threeDClassRec() 10098 threeDClassRec()
8758 ; return 0; } 10099 ; return 0; }
8759 EOF 10100 EOF
8760 if { (eval echo configure:8761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10101 if { (eval echo configure:10102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8761 rm -rf conftest* 10102 rm -rf conftest*
8762 eval "ac_cv_lib_$ac_lib_var=yes" 10103 eval "ac_cv_lib_$ac_lib_var=yes"
8763 else 10104 else
8764 echo "configure: failed program was:" >&5 10105 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5 10106 cat conftest.$ac_ext >&5
8786 fi 10127 fi
8787 10128
8788 if test "$athena_3d" = "no"; then 10129 if test "$athena_3d" = "no"; then
8789 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10130 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
8790 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10131 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
8791 echo "configure:8792: checking for X11/Xaw/ThreeD.h" >&5 10132 echo "configure:10133: checking for X11/Xaw/ThreeD.h" >&5
8792 10133
8793 cat > conftest.$ac_ext <<EOF 10134 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure" 10135 #line 10136 "configure"
8795 #include "confdefs.h" 10136 #include "confdefs.h"
8796 #include <X11/Xaw/ThreeD.h> 10137 #include <X11/Xaw/ThreeD.h>
8797 EOF 10138 EOF
8798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8799 { (eval echo configure:8800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10140 { (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8801 if test -z "$ac_err"; then 10142 if test -z "$ac_err"; then
8802 rm -rf conftest* 10143 rm -rf conftest*
8803 eval "ac_cv_header_$ac_safe=yes" 10144 eval "ac_cv_header_$ac_safe=yes"
8804 else 10145 else
8814 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2 10155 echo "configure: warning: Could not find a non-3d Athena header set." 1>&2
8815 else 10156 else
8816 echo "$ac_t""no" 1>&6 10157 echo "$ac_t""no" 1>&6
8817 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` 10158 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'`
8818 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 10159 echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6
8819 echo "configure:8820: checking for X11/Xaw/XawInit.h" >&5 10160 echo "configure:10161: checking for X11/Xaw/XawInit.h" >&5
8820 10161
8821 cat > conftest.$ac_ext <<EOF 10162 cat > conftest.$ac_ext <<EOF
8822 #line 8823 "configure" 10163 #line 10164 "configure"
8823 #include "confdefs.h" 10164 #include "confdefs.h"
8824 #include <X11/Xaw/XawInit.h> 10165 #include <X11/Xaw/XawInit.h>
8825 EOF 10166 EOF
8826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8827 { (eval echo configure:8828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10168 { (eval echo configure:10169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8829 if test -z "$ac_err"; then 10170 if test -z "$ac_err"; then
8830 rm -rf conftest* 10171 rm -rf conftest*
8831 eval "ac_cv_header_$ac_safe=yes" 10172 eval "ac_cv_header_$ac_safe=yes"
8832 else 10173 else
8848 fi 10189 fi
8849 10190
8850 else 10191 else
8851 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10192 ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8852 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 10193 echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6
8853 echo "configure:8854: checking for X11/$athena_variant/XawInit.h" >&5 10194 echo "configure:10195: checking for X11/$athena_variant/XawInit.h" >&5
8854 10195
8855 cat > conftest.$ac_ext <<EOF 10196 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure" 10197 #line 10198 "configure"
8857 #include "confdefs.h" 10198 #include "confdefs.h"
8858 #include <X11/$athena_variant/XawInit.h> 10199 #include <X11/$athena_variant/XawInit.h>
8859 EOF 10200 EOF
8860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8861 { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10202 { (eval echo configure:10203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8863 if test -z "$ac_err"; then 10204 if test -z "$ac_err"; then
8864 rm -rf conftest* 10205 rm -rf conftest*
8865 eval "ac_cv_header_$ac_safe=yes" 10206 eval "ac_cv_header_$ac_safe=yes"
8866 else 10207 else
8873 rm -f conftest* 10214 rm -f conftest*
8874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8875 echo "$ac_t""yes" 1>&6 10216 echo "$ac_t""yes" 1>&6
8876 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10217 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8877 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 10218 echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6
8878 echo "configure:8879: checking for X11/$athena_variant/ThreeD.h" >&5 10219 echo "configure:10220: checking for X11/$athena_variant/ThreeD.h" >&5
8879 10220
8880 cat > conftest.$ac_ext <<EOF 10221 cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure" 10222 #line 10223 "configure"
8882 #include "confdefs.h" 10223 #include "confdefs.h"
8883 #include <X11/$athena_variant/ThreeD.h> 10224 #include <X11/$athena_variant/ThreeD.h>
8884 EOF 10225 EOF
8885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10226 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8886 { (eval echo configure:8887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10227 { (eval echo configure:10228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10228 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8888 if test -z "$ac_err"; then 10229 if test -z "$ac_err"; then
8889 rm -rf conftest* 10230 rm -rf conftest*
8890 eval "ac_cv_header_$ac_safe=yes" 10231 eval "ac_cv_header_$ac_safe=yes"
8891 else 10232 else
8909 10250
8910 10251
8911 if test -z "$athena_h_path"; then 10252 if test -z "$athena_h_path"; then
8912 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` 10253 ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'`
8913 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 10254 echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6
8914 echo "configure:8915: checking for $athena_variant/XawInit.h" >&5 10255 echo "configure:10256: checking for $athena_variant/XawInit.h" >&5
8915 10256
8916 cat > conftest.$ac_ext <<EOF 10257 cat > conftest.$ac_ext <<EOF
8917 #line 8918 "configure" 10258 #line 10259 "configure"
8918 #include "confdefs.h" 10259 #include "confdefs.h"
8919 #include <$athena_variant/XawInit.h> 10260 #include <$athena_variant/XawInit.h>
8920 EOF 10261 EOF
8921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8922 { (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10263 { (eval echo configure:10264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8924 if test -z "$ac_err"; then 10265 if test -z "$ac_err"; then
8925 rm -rf conftest* 10266 rm -rf conftest*
8926 eval "ac_cv_header_$ac_safe=yes" 10267 eval "ac_cv_header_$ac_safe=yes"
8927 else 10268 else
8934 rm -f conftest* 10275 rm -f conftest*
8935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6 10277 echo "$ac_t""yes" 1>&6
8937 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` 10278 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'`
8938 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 10279 echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6
8939 echo "configure:8940: checking for $athena_variant/ThreeD.h" >&5 10280 echo "configure:10281: checking for $athena_variant/ThreeD.h" >&5
8940 10281
8941 cat > conftest.$ac_ext <<EOF 10282 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure" 10283 #line 10284 "configure"
8943 #include "confdefs.h" 10284 #include "confdefs.h"
8944 #include <$athena_variant/ThreeD.h> 10285 #include <$athena_variant/ThreeD.h>
8945 EOF 10286 EOF
8946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8947 { (eval echo configure:8948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10288 { (eval echo configure:10289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8949 if test -z "$ac_err"; then 10290 if test -z "$ac_err"; then
8950 rm -rf conftest* 10291 rm -rf conftest*
8951 eval "ac_cv_header_$ac_safe=yes" 10292 eval "ac_cv_header_$ac_safe=yes"
8952 else 10293 else
8971 fi 10312 fi
8972 10313
8973 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10314 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
8974 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10315 ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
8975 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 10316 echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6
8976 echo "configure:8977: checking for X11/Xaw3d/XawInit.h" >&5 10317 echo "configure:10318: checking for X11/Xaw3d/XawInit.h" >&5
8977 10318
8978 cat > conftest.$ac_ext <<EOF 10319 cat > conftest.$ac_ext <<EOF
8979 #line 8980 "configure" 10320 #line 10321 "configure"
8980 #include "confdefs.h" 10321 #include "confdefs.h"
8981 #include <X11/Xaw3d/XawInit.h> 10322 #include <X11/Xaw3d/XawInit.h>
8982 EOF 10323 EOF
8983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8984 { (eval echo configure:8985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10325 { (eval echo configure:10326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8986 if test -z "$ac_err"; then 10327 if test -z "$ac_err"; then
8987 rm -rf conftest* 10328 rm -rf conftest*
8988 eval "ac_cv_header_$ac_safe=yes" 10329 eval "ac_cv_header_$ac_safe=yes"
8989 else 10330 else
8996 rm -f conftest* 10337 rm -f conftest*
8997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6 10339 echo "$ac_t""yes" 1>&6
8999 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10340 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9000 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 10341 echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6
9001 echo "configure:9002: checking for X11/Xaw3d/ThreeD.h" >&5 10342 echo "configure:10343: checking for X11/Xaw3d/ThreeD.h" >&5
9002 10343
9003 cat > conftest.$ac_ext <<EOF 10344 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure" 10345 #line 10346 "configure"
9005 #include "confdefs.h" 10346 #include "confdefs.h"
9006 #include <X11/Xaw3d/ThreeD.h> 10347 #include <X11/Xaw3d/ThreeD.h>
9007 EOF 10348 EOF
9008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9009 { (eval echo configure:9010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10350 { (eval echo configure:10351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9011 if test -z "$ac_err"; then 10352 if test -z "$ac_err"; then
9012 rm -rf conftest* 10353 rm -rf conftest*
9013 eval "ac_cv_header_$ac_safe=yes" 10354 eval "ac_cv_header_$ac_safe=yes"
9014 else 10355 else
9036 fi 10377 fi
9037 10378
9038 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then 10379 if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then
9039 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` 10380 ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'`
9040 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 10381 echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6
9041 echo "configure:9042: checking for Xaw3d/XawInit.h" >&5 10382 echo "configure:10383: checking for Xaw3d/XawInit.h" >&5
9042 10383
9043 cat > conftest.$ac_ext <<EOF 10384 cat > conftest.$ac_ext <<EOF
9044 #line 9045 "configure" 10385 #line 10386 "configure"
9045 #include "confdefs.h" 10386 #include "confdefs.h"
9046 #include <Xaw3d/XawInit.h> 10387 #include <Xaw3d/XawInit.h>
9047 EOF 10388 EOF
9048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9049 { (eval echo configure:9050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10390 { (eval echo configure:10391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9051 if test -z "$ac_err"; then 10392 if test -z "$ac_err"; then
9052 rm -rf conftest* 10393 rm -rf conftest*
9053 eval "ac_cv_header_$ac_safe=yes" 10394 eval "ac_cv_header_$ac_safe=yes"
9054 else 10395 else
9061 rm -f conftest* 10402 rm -f conftest*
9062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9063 echo "$ac_t""yes" 1>&6 10404 echo "$ac_t""yes" 1>&6
9064 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` 10405 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'`
9065 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 10406 echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6
9066 echo "configure:9067: checking for Xaw3d/ThreeD.h" >&5 10407 echo "configure:10408: checking for Xaw3d/ThreeD.h" >&5
9067 10408
9068 cat > conftest.$ac_ext <<EOF 10409 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure" 10410 #line 10411 "configure"
9070 #include "confdefs.h" 10411 #include "confdefs.h"
9071 #include <Xaw3d/ThreeD.h> 10412 #include <Xaw3d/ThreeD.h>
9072 EOF 10413 EOF
9073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9074 { (eval echo configure:9075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10415 { (eval echo configure:10416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9076 if test -z "$ac_err"; then 10417 if test -z "$ac_err"; then
9077 rm -rf conftest* 10418 rm -rf conftest*
9078 eval "ac_cv_header_$ac_safe=yes" 10419 eval "ac_cv_header_$ac_safe=yes"
9079 else 10420 else
9101 fi 10442 fi
9102 10443
9103 if test -z "$athena_h_path"; then 10444 if test -z "$athena_h_path"; then
9104 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` 10445 ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'`
9105 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 10446 echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6
9106 echo "configure:9107: checking for X11/Xaw/ThreeD.h" >&5 10447 echo "configure:10448: checking for X11/Xaw/ThreeD.h" >&5
9107 10448
9108 cat > conftest.$ac_ext <<EOF 10449 cat > conftest.$ac_ext <<EOF
9109 #line 9110 "configure" 10450 #line 10451 "configure"
9110 #include "confdefs.h" 10451 #include "confdefs.h"
9111 #include <X11/Xaw/ThreeD.h> 10452 #include <X11/Xaw/ThreeD.h>
9112 EOF 10453 EOF
9113 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9114 { (eval echo configure:9115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10455 { (eval echo configure:10456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9115 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9116 if test -z "$ac_err"; then 10457 if test -z "$ac_err"; then
9117 rm -rf conftest* 10458 rm -rf conftest*
9118 eval "ac_cv_header_$ac_safe=yes" 10459 eval "ac_cv_header_$ac_safe=yes"
9119 else 10460 else
9148 have_xaw=no 10489 have_xaw=no
9149 fi 10490 fi
9150 if test "$with_x11" = "yes"; then 10491 if test "$with_x11" = "yes"; then
9151 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` 10492 ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'`
9152 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 10493 echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6
9153 echo "configure:9154: checking for Xm/Xm.h" >&5 10494 echo "configure:10495: checking for Xm/Xm.h" >&5
9154 10495
9155 cat > conftest.$ac_ext <<EOF 10496 cat > conftest.$ac_ext <<EOF
9156 #line 9157 "configure" 10497 #line 10498 "configure"
9157 #include "confdefs.h" 10498 #include "confdefs.h"
9158 #include <Xm/Xm.h> 10499 #include <Xm/Xm.h>
9159 EOF 10500 EOF
9160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9161 { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10502 { (eval echo configure:10503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9163 if test -z "$ac_err"; then 10504 if test -z "$ac_err"; then
9164 rm -rf conftest* 10505 rm -rf conftest*
9165 eval "ac_cv_header_$ac_safe=yes" 10506 eval "ac_cv_header_$ac_safe=yes"
9166 else 10507 else
9173 rm -f conftest* 10514 rm -f conftest*
9174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 10515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9175 echo "$ac_t""yes" 1>&6 10516 echo "$ac_t""yes" 1>&6
9176 10517
9177 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 10518 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6
9178 echo "configure:9179: checking for XmStringFree in -lXm" >&5 10519 echo "configure:10520: checking for XmStringFree in -lXm" >&5
9179 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` 10520 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'`
9180 10521
9181 xe_check_libs=" -lXm " 10522 xe_check_libs=" -lXm "
9182 cat > conftest.$ac_ext <<EOF 10523 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure" 10524 #line 10525 "configure"
9184 #include "confdefs.h" 10525 #include "confdefs.h"
9185 /* Override any gcc2 internal prototype to avoid an error. */ 10526 /* Override any gcc2 internal prototype to avoid an error. */
9186 /* We use char because int might match the return type of a gcc2 10527 /* We use char because int might match the return type of a gcc2
9187 builtin and then its argument prototype would still apply. */ 10528 builtin and then its argument prototype would still apply. */
9188 char XmStringFree(); 10529 char XmStringFree();
9189 10530
9190 int main() { 10531 int main() {
9191 XmStringFree() 10532 XmStringFree()
9192 ; return 0; } 10533 ; return 0; }
9193 EOF 10534 EOF
9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9195 rm -rf conftest* 10536 rm -rf conftest*
9196 eval "ac_cv_lib_$ac_lib_var=yes" 10537 eval "ac_cv_lib_$ac_lib_var=yes"
9197 else 10538 else
9198 echo "configure: failed program was:" >&5 10539 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5 10540 cat conftest.$ac_ext >&5
9218 fi 10559 fi
9219 10560
9220 10561
9221 if test "$have_motif" = "yes"; then 10562 if test "$have_motif" = "yes"; then
9222 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 10563 echo $ac_n "checking for Lesstif""... $ac_c" 1>&6
9223 echo "configure:9224: checking for Lesstif" >&5 10564 echo "configure:10565: checking for Lesstif" >&5
9224 cat > conftest.$ac_ext <<EOF 10565 cat > conftest.$ac_ext <<EOF
9225 #line 9226 "configure" 10566 #line 10567 "configure"
9226 #include "confdefs.h" 10567 #include "confdefs.h"
9227 #include <Xm/Xm.h> 10568 #include <Xm/Xm.h>
9228 #ifdef LESSTIF_VERSION 10569 #ifdef LESSTIF_VERSION
9229 yes 10570 yes
9230 #endif 10571 #endif
9593 10934
9594 fi 10935 fi
9595 10936
9596 if test "$with_mule" = "yes" ; then 10937 if test "$with_mule" = "yes" ; then
9597 echo "checking for Mule-related features" 1>&6 10938 echo "checking for Mule-related features" 1>&6
9598 echo "configure:9599: checking for Mule-related features" >&5 10939 echo "configure:10940: checking for Mule-related features" >&5
9599 { test "$extra_verbose" = "yes" && cat << \EOF 10940 { test "$extra_verbose" = "yes" && cat << \EOF
9600 Defining MULE 10941 Defining MULE
9601 EOF 10942 EOF
9602 cat >> confdefs.h <<\EOF 10943 cat >> confdefs.h <<\EOF
9603 #define MULE 1 10944 #define MULE 1
9607 10948
9608 for ac_hdr in libintl.h 10949 for ac_hdr in libintl.h
9609 do 10950 do
9610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 10951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 10952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9612 echo "configure:9613: checking for $ac_hdr" >&5 10953 echo "configure:10954: checking for $ac_hdr" >&5
9613 10954
9614 cat > conftest.$ac_ext <<EOF 10955 cat > conftest.$ac_ext <<EOF
9615 #line 9616 "configure" 10956 #line 10957 "configure"
9616 #include "confdefs.h" 10957 #include "confdefs.h"
9617 #include <$ac_hdr> 10958 #include <$ac_hdr>
9618 EOF 10959 EOF
9619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9620 { (eval echo configure:9621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10961 { (eval echo configure:10962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9622 if test -z "$ac_err"; then 10963 if test -z "$ac_err"; then
9623 rm -rf conftest* 10964 rm -rf conftest*
9624 eval "ac_cv_header_$ac_safe=yes" 10965 eval "ac_cv_header_$ac_safe=yes"
9625 else 10966 else
9646 fi 10987 fi
9647 done 10988 done
9648 10989
9649 10990
9650 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 10991 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9651 echo "configure:9652: checking for strerror in -lintl" >&5 10992 echo "configure:10993: checking for strerror in -lintl" >&5
9652 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 10993 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9653 10994
9654 xe_check_libs=" -lintl " 10995 xe_check_libs=" -lintl "
9655 cat > conftest.$ac_ext <<EOF 10996 cat > conftest.$ac_ext <<EOF
9656 #line 9657 "configure" 10997 #line 10998 "configure"
9657 #include "confdefs.h" 10998 #include "confdefs.h"
9658 /* Override any gcc2 internal prototype to avoid an error. */ 10999 /* Override any gcc2 internal prototype to avoid an error. */
9659 /* We use char because int might match the return type of a gcc2 11000 /* We use char because int might match the return type of a gcc2
9660 builtin and then its argument prototype would still apply. */ 11001 builtin and then its argument prototype would still apply. */
9661 char strerror(); 11002 char strerror();
9662 11003
9663 int main() { 11004 int main() {
9664 strerror() 11005 strerror()
9665 ; return 0; } 11006 ; return 0; }
9666 EOF 11007 EOF
9667 if { (eval echo configure:9668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11008 if { (eval echo configure:11009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9668 rm -rf conftest* 11009 rm -rf conftest*
9669 eval "ac_cv_lib_$ac_lib_var=yes" 11010 eval "ac_cv_lib_$ac_lib_var=yes"
9670 else 11011 else
9671 echo "configure: failed program was:" >&5 11012 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5 11013 cat conftest.$ac_ext >&5
9695 fi 11036 fi
9696 11037
9697 11038
9698 11039
9699 echo "checking for Mule input methods" 1>&6 11040 echo "checking for Mule input methods" 1>&6
9700 echo "configure:9701: checking for Mule input methods" >&5 11041 echo "configure:11042: checking for Mule input methods" >&5
9701 case "$with_xim" in "" | "yes" ) 11042 case "$with_xim" in "" | "yes" )
9702 echo "checking for XIM" 1>&6 11043 echo "checking for XIM" 1>&6
9703 echo "configure:9704: checking for XIM" >&5 11044 echo "configure:11045: checking for XIM" >&5
9704 11045
9705 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 11046 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9706 echo "configure:9707: checking for XOpenIM in -lX11" >&5 11047 echo "configure:11048: checking for XOpenIM in -lX11" >&5
9707 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 11048 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9708 11049
9709 xe_check_libs=" -lX11 " 11050 xe_check_libs=" -lX11 "
9710 cat > conftest.$ac_ext <<EOF 11051 cat > conftest.$ac_ext <<EOF
9711 #line 9712 "configure" 11052 #line 11053 "configure"
9712 #include "confdefs.h" 11053 #include "confdefs.h"
9713 /* Override any gcc2 internal prototype to avoid an error. */ 11054 /* Override any gcc2 internal prototype to avoid an error. */
9714 /* We use char because int might match the return type of a gcc2 11055 /* We use char because int might match the return type of a gcc2
9715 builtin and then its argument prototype would still apply. */ 11056 builtin and then its argument prototype would still apply. */
9716 char XOpenIM(); 11057 char XOpenIM();
9717 11058
9718 int main() { 11059 int main() {
9719 XOpenIM() 11060 XOpenIM()
9720 ; return 0; } 11061 ; return 0; }
9721 EOF 11062 EOF
9722 if { (eval echo configure:9723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11063 if { (eval echo configure:11064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9723 rm -rf conftest* 11064 rm -rf conftest*
9724 eval "ac_cv_lib_$ac_lib_var=yes" 11065 eval "ac_cv_lib_$ac_lib_var=yes"
9725 else 11066 else
9726 echo "configure: failed program was:" >&5 11067 echo "configure: failed program was:" >&5
9727 cat conftest.$ac_ext >&5 11068 cat conftest.$ac_ext >&5
9741 11082
9742 11083
9743 if test "$have_motif $have_lesstif" = "yes no"; then 11084 if test "$have_motif $have_lesstif" = "yes no"; then
9744 11085
9745 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 11086 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
9746 echo "configure:9747: checking for XmImMbLookupString in -lXm" >&5 11087 echo "configure:11088: checking for XmImMbLookupString in -lXm" >&5
9747 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 11088 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
9748 11089
9749 xe_check_libs=" -lXm " 11090 xe_check_libs=" -lXm "
9750 cat > conftest.$ac_ext <<EOF 11091 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure" 11092 #line 11093 "configure"
9752 #include "confdefs.h" 11093 #include "confdefs.h"
9753 /* Override any gcc2 internal prototype to avoid an error. */ 11094 /* Override any gcc2 internal prototype to avoid an error. */
9754 /* We use char because int might match the return type of a gcc2 11095 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */ 11096 builtin and then its argument prototype would still apply. */
9756 char XmImMbLookupString(); 11097 char XmImMbLookupString();
9757 11098
9758 int main() { 11099 int main() {
9759 XmImMbLookupString() 11100 XmImMbLookupString()
9760 ; return 0; } 11101 ; return 0; }
9761 EOF 11102 EOF
9762 if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11103 if { (eval echo configure:11104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9763 rm -rf conftest* 11104 rm -rf conftest*
9764 eval "ac_cv_lib_$ac_lib_var=yes" 11105 eval "ac_cv_lib_$ac_lib_var=yes"
9765 else 11106 else
9766 echo "configure: failed program was:" >&5 11107 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5 11108 cat conftest.$ac_ext >&5
9822 fi 11163 fi
9823 fi 11164 fi
9824 11165
9825 if test "$with_xfs" = "yes" ; then 11166 if test "$with_xfs" = "yes" ; then
9826 echo "checking for XFontSet" 1>&6 11167 echo "checking for XFontSet" 1>&6
9827 echo "configure:9828: checking for XFontSet" >&5 11168 echo "configure:11169: checking for XFontSet" >&5
9828 11169
9829 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 11170 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
9830 echo "configure:9831: checking for XmbDrawString in -lX11" >&5 11171 echo "configure:11172: checking for XmbDrawString in -lX11" >&5
9831 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 11172 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
9832 11173
9833 xe_check_libs=" -lX11 " 11174 xe_check_libs=" -lX11 "
9834 cat > conftest.$ac_ext <<EOF 11175 cat > conftest.$ac_ext <<EOF
9835 #line 9836 "configure" 11176 #line 11177 "configure"
9836 #include "confdefs.h" 11177 #include "confdefs.h"
9837 /* Override any gcc2 internal prototype to avoid an error. */ 11178 /* Override any gcc2 internal prototype to avoid an error. */
9838 /* We use char because int might match the return type of a gcc2 11179 /* We use char because int might match the return type of a gcc2
9839 builtin and then its argument prototype would still apply. */ 11180 builtin and then its argument prototype would still apply. */
9840 char XmbDrawString(); 11181 char XmbDrawString();
9841 11182
9842 int main() { 11183 int main() {
9843 XmbDrawString() 11184 XmbDrawString()
9844 ; return 0; } 11185 ; return 0; }
9845 EOF 11186 EOF
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11187 if { (eval echo configure:11188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9847 rm -rf conftest* 11188 rm -rf conftest*
9848 eval "ac_cv_lib_$ac_lib_var=yes" 11189 eval "ac_cv_lib_$ac_lib_var=yes"
9849 else 11190 else
9850 echo "configure: failed program was:" >&5 11191 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5 11192 cat conftest.$ac_ext >&5
9881 fi 11222 fi
9882 fi 11223 fi
9883 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 11224 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
9884 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 11225 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
9885 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 11226 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
9886 echo "configure:9887: checking for wnn/jllib.h" >&5 11227 echo "configure:11228: checking for wnn/jllib.h" >&5
9887 11228
9888 cat > conftest.$ac_ext <<EOF 11229 cat > conftest.$ac_ext <<EOF
9889 #line 9890 "configure" 11230 #line 11231 "configure"
9890 #include "confdefs.h" 11231 #include "confdefs.h"
9891 #include <wnn/jllib.h> 11232 #include <wnn/jllib.h>
9892 EOF 11233 EOF
9893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9894 { (eval echo configure:9895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11235 { (eval echo configure:11236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9896 if test -z "$ac_err"; then 11237 if test -z "$ac_err"; then
9897 rm -rf conftest* 11238 rm -rf conftest*
9898 eval "ac_cv_header_$ac_safe=yes" 11239 eval "ac_cv_header_$ac_safe=yes"
9899 else 11240 else
9912 with_wnn=no 11253 with_wnn=no
9913 fi 11254 fi
9914 } 11255 }
9915 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 11256 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
9916 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 11257 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
9917 echo "configure:9918: checking for wnn/commonhd.h" >&5 11258 echo "configure:11259: checking for wnn/commonhd.h" >&5
9918 11259
9919 cat > conftest.$ac_ext <<EOF 11260 cat > conftest.$ac_ext <<EOF
9920 #line 9921 "configure" 11261 #line 11262 "configure"
9921 #include "confdefs.h" 11262 #include "confdefs.h"
9922 #include <wnn/commonhd.h> 11263 #include <wnn/commonhd.h>
9923 EOF 11264 EOF
9924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9925 { (eval echo configure:9926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11266 { (eval echo configure:11267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9927 if test -z "$ac_err"; then 11268 if test -z "$ac_err"; then
9928 rm -rf conftest* 11269 rm -rf conftest*
9929 eval "ac_cv_header_$ac_safe=yes" 11270 eval "ac_cv_header_$ac_safe=yes"
9930 else 11271 else
9945 } 11286 }
9946 if test "$with_wnn" != "no"; then 11287 if test "$with_wnn" != "no"; then
9947 for ac_func in crypt 11288 for ac_func in crypt
9948 do 11289 do
9949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9950 echo "configure:9951: checking for $ac_func" >&5 11291 echo "configure:11292: checking for $ac_func" >&5
9951 11292
9952 cat > conftest.$ac_ext <<EOF 11293 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure" 11294 #line 11295 "configure"
9954 #include "confdefs.h" 11295 #include "confdefs.h"
9955 /* System header to define __stub macros and hopefully few prototypes, 11296 /* System header to define __stub macros and hopefully few prototypes,
9956 which can conflict with char $ac_func(); below. */ 11297 which can conflict with char $ac_func(); below. */
9957 #include <assert.h> 11298 #include <assert.h>
9958 /* Override any gcc2 internal prototype to avoid an error. */ 11299 /* Override any gcc2 internal prototype to avoid an error. */
9971 $ac_func(); 11312 $ac_func();
9972 #endif 11313 #endif
9973 11314
9974 ; return 0; } 11315 ; return 0; }
9975 EOF 11316 EOF
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11317 if { (eval echo configure:11318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9977 rm -rf conftest* 11318 rm -rf conftest*
9978 eval "ac_cv_func_$ac_func=yes" 11319 eval "ac_cv_func_$ac_func=yes"
9979 else 11320 else
9980 echo "configure: failed program was:" >&5 11321 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5 11322 cat conftest.$ac_ext >&5
10000 fi 11341 fi
10001 done 11342 done
10002 11343
10003 test "$ac_cv_func_crypt" != "yes" && { 11344 test "$ac_cv_func_crypt" != "yes" && {
10004 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 11345 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10005 echo "configure:10006: checking for crypt in -lcrypt" >&5 11346 echo "configure:11347: checking for crypt in -lcrypt" >&5
10006 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 11347 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10007 11348
10008 xe_check_libs=" -lcrypt " 11349 xe_check_libs=" -lcrypt "
10009 cat > conftest.$ac_ext <<EOF 11350 cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure" 11351 #line 11352 "configure"
10011 #include "confdefs.h" 11352 #include "confdefs.h"
10012 /* Override any gcc2 internal prototype to avoid an error. */ 11353 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2 11354 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */ 11355 builtin and then its argument prototype would still apply. */
10015 char crypt(); 11356 char crypt();
10016 11357
10017 int main() { 11358 int main() {
10018 crypt() 11359 crypt()
10019 ; return 0; } 11360 ; return 0; }
10020 EOF 11361 EOF
10021 if { (eval echo configure:10022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11362 if { (eval echo configure:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10022 rm -rf conftest* 11363 rm -rf conftest*
10023 eval "ac_cv_lib_$ac_lib_var=yes" 11364 eval "ac_cv_lib_$ac_lib_var=yes"
10024 else 11365 else
10025 echo "configure: failed program was:" >&5 11366 echo "configure: failed program was:" >&5
10026 cat conftest.$ac_ext >&5 11367 cat conftest.$ac_ext >&5
10051 } 11392 }
10052 fi 11393 fi
10053 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 11394 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10054 11395
10055 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 11396 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10056 echo "configure:10057: checking for jl_dic_list_e in -lwnn" >&5 11397 echo "configure:11398: checking for jl_dic_list_e in -lwnn" >&5
10057 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11398 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10058 11399
10059 xe_check_libs=" -lwnn " 11400 xe_check_libs=" -lwnn "
10060 cat > conftest.$ac_ext <<EOF 11401 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure" 11402 #line 11403 "configure"
10062 #include "confdefs.h" 11403 #include "confdefs.h"
10063 /* Override any gcc2 internal prototype to avoid an error. */ 11404 /* Override any gcc2 internal prototype to avoid an error. */
10064 /* We use char because int might match the return type of a gcc2 11405 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */ 11406 builtin and then its argument prototype would still apply. */
10066 char jl_dic_list_e(); 11407 char jl_dic_list_e();
10067 11408
10068 int main() { 11409 int main() {
10069 jl_dic_list_e() 11410 jl_dic_list_e()
10070 ; return 0; } 11411 ; return 0; }
10071 EOF 11412 EOF
10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10073 rm -rf conftest* 11414 rm -rf conftest*
10074 eval "ac_cv_lib_$ac_lib_var=yes" 11415 eval "ac_cv_lib_$ac_lib_var=yes"
10075 else 11416 else
10076 echo "configure: failed program was:" >&5 11417 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5 11418 cat conftest.$ac_ext >&5
10085 echo "$ac_t""yes" 1>&6 11426 echo "$ac_t""yes" 1>&6
10086 libwnn=wnn 11427 libwnn=wnn
10087 else 11428 else
10088 echo "$ac_t""no" 1>&6 11429 echo "$ac_t""no" 1>&6
10089 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 11430 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10090 echo "configure:10091: checking for jl_dic_list_e in -lwnn4" >&5 11431 echo "configure:11432: checking for jl_dic_list_e in -lwnn4" >&5
10091 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11432 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10092 11433
10093 xe_check_libs=" -lwnn4 " 11434 xe_check_libs=" -lwnn4 "
10094 cat > conftest.$ac_ext <<EOF 11435 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure" 11436 #line 11437 "configure"
10096 #include "confdefs.h" 11437 #include "confdefs.h"
10097 /* Override any gcc2 internal prototype to avoid an error. */ 11438 /* Override any gcc2 internal prototype to avoid an error. */
10098 /* We use char because int might match the return type of a gcc2 11439 /* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */ 11440 builtin and then its argument prototype would still apply. */
10100 char jl_dic_list_e(); 11441 char jl_dic_list_e();
10101 11442
10102 int main() { 11443 int main() {
10103 jl_dic_list_e() 11444 jl_dic_list_e()
10104 ; return 0; } 11445 ; return 0; }
10105 EOF 11446 EOF
10106 if { (eval echo configure:10107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11447 if { (eval echo configure:11448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10107 rm -rf conftest* 11448 rm -rf conftest*
10108 eval "ac_cv_lib_$ac_lib_var=yes" 11449 eval "ac_cv_lib_$ac_lib_var=yes"
10109 else 11450 else
10110 echo "configure: failed program was:" >&5 11451 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5 11452 cat conftest.$ac_ext >&5
10119 echo "$ac_t""yes" 1>&6 11460 echo "$ac_t""yes" 1>&6
10120 libwnn=wnn4 11461 libwnn=wnn4
10121 else 11462 else
10122 echo "$ac_t""no" 1>&6 11463 echo "$ac_t""no" 1>&6
10123 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 11464 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10124 echo "configure:10125: checking for jl_dic_list_e in -lwnn6" >&5 11465 echo "configure:11466: checking for jl_dic_list_e in -lwnn6" >&5
10125 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 11466 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10126 11467
10127 xe_check_libs=" -lwnn6 " 11468 xe_check_libs=" -lwnn6 "
10128 cat > conftest.$ac_ext <<EOF 11469 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure" 11470 #line 11471 "configure"
10130 #include "confdefs.h" 11471 #include "confdefs.h"
10131 /* Override any gcc2 internal prototype to avoid an error. */ 11472 /* Override any gcc2 internal prototype to avoid an error. */
10132 /* We use char because int might match the return type of a gcc2 11473 /* We use char because int might match the return type of a gcc2
10133 builtin and then its argument prototype would still apply. */ 11474 builtin and then its argument prototype would still apply. */
10134 char jl_dic_list_e(); 11475 char jl_dic_list_e();
10135 11476
10136 int main() { 11477 int main() {
10137 jl_dic_list_e() 11478 jl_dic_list_e()
10138 ; return 0; } 11479 ; return 0; }
10139 EOF 11480 EOF
10140 if { (eval echo configure:10141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11481 if { (eval echo configure:11482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10141 rm -rf conftest* 11482 rm -rf conftest*
10142 eval "ac_cv_lib_$ac_lib_var=yes" 11483 eval "ac_cv_lib_$ac_lib_var=yes"
10143 else 11484 else
10144 echo "configure: failed program was:" >&5 11485 echo "configure: failed program was:" >&5
10145 cat conftest.$ac_ext >&5 11486 cat conftest.$ac_ext >&5
10153 echo "$ac_t""yes" 1>&6 11494 echo "$ac_t""yes" 1>&6
10154 libwnn=wnn6 11495 libwnn=wnn6
10155 else 11496 else
10156 echo "$ac_t""no" 1>&6 11497 echo "$ac_t""no" 1>&6
10157 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 11498 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10158 echo "configure:10159: checking for dic_list_e in -lwnn6_fromsrc" >&5 11499 echo "configure:11500: checking for dic_list_e in -lwnn6_fromsrc" >&5
10159 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 11500 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10160 11501
10161 xe_check_libs=" -lwnn6_fromsrc " 11502 xe_check_libs=" -lwnn6_fromsrc "
10162 cat > conftest.$ac_ext <<EOF 11503 cat > conftest.$ac_ext <<EOF
10163 #line 10164 "configure" 11504 #line 11505 "configure"
10164 #include "confdefs.h" 11505 #include "confdefs.h"
10165 /* Override any gcc2 internal prototype to avoid an error. */ 11506 /* Override any gcc2 internal prototype to avoid an error. */
10166 /* We use char because int might match the return type of a gcc2 11507 /* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */ 11508 builtin and then its argument prototype would still apply. */
10168 char dic_list_e(); 11509 char dic_list_e();
10169 11510
10170 int main() { 11511 int main() {
10171 dic_list_e() 11512 dic_list_e()
10172 ; return 0; } 11513 ; return 0; }
10173 EOF 11514 EOF
10174 if { (eval echo configure:10175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11515 if { (eval echo configure:11516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10175 rm -rf conftest* 11516 rm -rf conftest*
10176 eval "ac_cv_lib_$ac_lib_var=yes" 11517 eval "ac_cv_lib_$ac_lib_var=yes"
10177 else 11518 else
10178 echo "configure: failed program was:" >&5 11519 echo "configure: failed program was:" >&5
10179 cat conftest.$ac_ext >&5 11520 cat conftest.$ac_ext >&5
10214 11555
10215 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi 11556 libs_x="-l$libwnn $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l$libwnn\" to \$libs_x"; fi
10216 if test "$with_wnn6" != "no"; then 11557 if test "$with_wnn6" != "no"; then
10217 11558
10218 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 11559 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10219 echo "configure:10220: checking for jl_fi_dic_list in -l$libwnn" >&5 11560 echo "configure:11561: checking for jl_fi_dic_list in -l$libwnn" >&5
10220 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 11561 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10221 11562
10222 xe_check_libs=" -l$libwnn " 11563 xe_check_libs=" -l$libwnn "
10223 cat > conftest.$ac_ext <<EOF 11564 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure" 11565 #line 11566 "configure"
10225 #include "confdefs.h" 11566 #include "confdefs.h"
10226 /* Override any gcc2 internal prototype to avoid an error. */ 11567 /* Override any gcc2 internal prototype to avoid an error. */
10227 /* We use char because int might match the return type of a gcc2 11568 /* We use char because int might match the return type of a gcc2
10228 builtin and then its argument prototype would still apply. */ 11569 builtin and then its argument prototype would still apply. */
10229 char jl_fi_dic_list(); 11570 char jl_fi_dic_list();
10230 11571
10231 int main() { 11572 int main() {
10232 jl_fi_dic_list() 11573 jl_fi_dic_list()
10233 ; return 0; } 11574 ; return 0; }
10234 EOF 11575 EOF
10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11576 if { (eval echo configure:11577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10236 rm -rf conftest* 11577 rm -rf conftest*
10237 eval "ac_cv_lib_$ac_lib_var=yes" 11578 eval "ac_cv_lib_$ac_lib_var=yes"
10238 else 11579 else
10239 echo "configure: failed program was:" >&5 11580 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5 11581 cat conftest.$ac_ext >&5
10265 11606
10266 canna_includes_found=no 11607 canna_includes_found=no
10267 if test "$with_canna" != "no"; then 11608 if test "$with_canna" != "no"; then
10268 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11609 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10269 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11610 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10270 echo "configure:10271: checking for canna/jrkanji.h" >&5 11611 echo "configure:11612: checking for canna/jrkanji.h" >&5
10271 11612
10272 cat > conftest.$ac_ext <<EOF 11613 cat > conftest.$ac_ext <<EOF
10273 #line 10274 "configure" 11614 #line 11615 "configure"
10274 #include "confdefs.h" 11615 #include "confdefs.h"
10275 #include <canna/jrkanji.h> 11616 #include <canna/jrkanji.h>
10276 EOF 11617 EOF
10277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10278 { (eval echo configure:10279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11619 { (eval echo configure:11620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10280 if test -z "$ac_err"; then 11621 if test -z "$ac_err"; then
10281 rm -rf conftest* 11622 rm -rf conftest*
10282 eval "ac_cv_header_$ac_safe=yes" 11623 eval "ac_cv_header_$ac_safe=yes"
10283 else 11624 else
10300 -d "/usr/local/canna/include"; then 11641 -d "/usr/local/canna/include"; then
10301 save_c_switch_site="$c_switch_site" 11642 save_c_switch_site="$c_switch_site"
10302 c_switch_site="$c_switch_site -I/usr/local/canna/include" 11643 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10303 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 11644 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10304 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 11645 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10305 echo "configure:10306: checking for canna/jrkanji.h" >&5 11646 echo "configure:11647: checking for canna/jrkanji.h" >&5
10306 11647
10307 cat > conftest.$ac_ext <<EOF 11648 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure" 11649 #line 11650 "configure"
10309 #include "confdefs.h" 11650 #include "confdefs.h"
10310 #include <canna/jrkanji.h> 11651 #include <canna/jrkanji.h>
10311 EOF 11652 EOF
10312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10313 { (eval echo configure:10314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11654 { (eval echo configure:11655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10315 if test -z "$ac_err"; then 11656 if test -z "$ac_err"; then
10316 rm -rf conftest* 11657 rm -rf conftest*
10317 eval "ac_cv_header_$ac_safe=yes" 11658 eval "ac_cv_header_$ac_safe=yes"
10318 else 11659 else
10336 fi 11677 fi
10337 fi 11678 fi
10338 11679
10339 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 11680 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10340 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 11681 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10341 echo "configure:10342: checking for canna/RK.h" >&5 11682 echo "configure:11683: checking for canna/RK.h" >&5
10342 11683
10343 cat > conftest.$ac_ext <<EOF 11684 cat > conftest.$ac_ext <<EOF
10344 #line 10345 "configure" 11685 #line 11686 "configure"
10345 #include "confdefs.h" 11686 #include "confdefs.h"
10346 #include <canna/RK.h> 11687 #include <canna/RK.h>
10347 EOF 11688 EOF
10348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10349 { (eval echo configure:10350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11690 { (eval echo configure:11691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10351 if test -z "$ac_err"; then 11692 if test -z "$ac_err"; then
10352 rm -rf conftest* 11693 rm -rf conftest*
10353 eval "ac_cv_header_$ac_safe=yes" 11694 eval "ac_cv_header_$ac_safe=yes"
10354 else 11695 else
10367 with_canna=no 11708 with_canna=no
10368 fi 11709 fi
10369 } 11710 }
10370 test -z "$with_canna" && { 11711 test -z "$with_canna" && {
10371 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 11712 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10372 echo "configure:10373: checking for RkBgnBun in -lRKC" >&5 11713 echo "configure:11714: checking for RkBgnBun in -lRKC" >&5
10373 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 11714 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10374 11715
10375 xe_check_libs=" -lRKC " 11716 xe_check_libs=" -lRKC "
10376 cat > conftest.$ac_ext <<EOF 11717 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure" 11718 #line 11719 "configure"
10378 #include "confdefs.h" 11719 #include "confdefs.h"
10379 /* Override any gcc2 internal prototype to avoid an error. */ 11720 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2 11721 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */ 11722 builtin and then its argument prototype would still apply. */
10382 char RkBgnBun(); 11723 char RkBgnBun();
10383 11724
10384 int main() { 11725 int main() {
10385 RkBgnBun() 11726 RkBgnBun()
10386 ; return 0; } 11727 ; return 0; }
10387 EOF 11728 EOF
10388 if { (eval echo configure:10389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11729 if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10389 rm -rf conftest* 11730 rm -rf conftest*
10390 eval "ac_cv_lib_$ac_lib_var=yes" 11731 eval "ac_cv_lib_$ac_lib_var=yes"
10391 else 11732 else
10392 echo "configure: failed program was:" >&5 11733 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5 11734 cat conftest.$ac_ext >&5
10406 fi 11747 fi
10407 11748
10408 } 11749 }
10409 test -z "$with_canna" && { 11750 test -z "$with_canna" && {
10410 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 11751 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10411 echo "configure:10412: checking for jrKanjiControl in -lcanna" >&5 11752 echo "configure:11753: checking for jrKanjiControl in -lcanna" >&5
10412 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 11753 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10413 11754
10414 xe_check_libs=" -lcanna " 11755 xe_check_libs=" -lcanna "
10415 cat > conftest.$ac_ext <<EOF 11756 cat > conftest.$ac_ext <<EOF
10416 #line 10417 "configure" 11757 #line 11758 "configure"
10417 #include "confdefs.h" 11758 #include "confdefs.h"
10418 /* Override any gcc2 internal prototype to avoid an error. */ 11759 /* Override any gcc2 internal prototype to avoid an error. */
10419 /* We use char because int might match the return type of a gcc2 11760 /* We use char because int might match the return type of a gcc2
10420 builtin and then its argument prototype would still apply. */ 11761 builtin and then its argument prototype would still apply. */
10421 char jrKanjiControl(); 11762 char jrKanjiControl();
10422 11763
10423 int main() { 11764 int main() {
10424 jrKanjiControl() 11765 jrKanjiControl()
10425 ; return 0; } 11766 ; return 0; }
10426 EOF 11767 EOF
10427 if { (eval echo configure:10428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11768 if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10428 rm -rf conftest* 11769 rm -rf conftest*
10429 eval "ac_cv_lib_$ac_lib_var=yes" 11770 eval "ac_cv_lib_$ac_lib_var=yes"
10430 else 11771 else
10431 echo "configure: failed program was:" >&5 11772 echo "configure: failed program was:" >&5
10432 cat conftest.$ac_ext >&5 11773 cat conftest.$ac_ext >&5
10468 11809
10469 if test "$need_motif" = "yes" ; then 11810 if test "$need_motif" = "yes" ; then
10470 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 11811 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10471 11812
10472 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 11813 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10473 echo "configure:10474: checking for layout_object_getvalue in -li18n" >&5 11814 echo "configure:11815: checking for layout_object_getvalue in -li18n" >&5
10474 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 11815 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10475 11816
10476 xe_check_libs=" -li18n " 11817 xe_check_libs=" -li18n "
10477 cat > conftest.$ac_ext <<EOF 11818 cat > conftest.$ac_ext <<EOF
10478 #line 10479 "configure" 11819 #line 11820 "configure"
10479 #include "confdefs.h" 11820 #include "confdefs.h"
10480 /* Override any gcc2 internal prototype to avoid an error. */ 11821 /* Override any gcc2 internal prototype to avoid an error. */
10481 /* We use char because int might match the return type of a gcc2 11822 /* We use char because int might match the return type of a gcc2
10482 builtin and then its argument prototype would still apply. */ 11823 builtin and then its argument prototype would still apply. */
10483 char layout_object_getvalue(); 11824 char layout_object_getvalue();
10484 11825
10485 int main() { 11826 int main() {
10486 layout_object_getvalue() 11827 layout_object_getvalue()
10487 ; return 0; } 11828 ; return 0; }
10488 EOF 11829 EOF
10489 if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11830 if { (eval echo configure:11831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10490 rm -rf conftest* 11831 rm -rf conftest*
10491 eval "ac_cv_lib_$ac_lib_var=yes" 11832 eval "ac_cv_lib_$ac_lib_var=yes"
10492 else 11833 else
10493 echo "configure: failed program was:" >&5 11834 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5 11835 cat conftest.$ac_ext >&5
10571 11912
10572 11913
10573 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp 11914 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd link logb lrand48 matherr mkdir mktime perror poll random readlink rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror strlwr strupr symlink tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask wcslen wcscmp
10574 do 11915 do
10575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10576 echo "configure:10577: checking for $ac_func" >&5 11917 echo "configure:11918: checking for $ac_func" >&5
10577 11918
10578 cat > conftest.$ac_ext <<EOF 11919 cat > conftest.$ac_ext <<EOF
10579 #line 10580 "configure" 11920 #line 11921 "configure"
10580 #include "confdefs.h" 11921 #include "confdefs.h"
10581 /* System header to define __stub macros and hopefully few prototypes, 11922 /* System header to define __stub macros and hopefully few prototypes,
10582 which can conflict with char $ac_func(); below. */ 11923 which can conflict with char $ac_func(); below. */
10583 #include <assert.h> 11924 #include <assert.h>
10584 /* Override any gcc2 internal prototype to avoid an error. */ 11925 /* Override any gcc2 internal prototype to avoid an error. */
10597 $ac_func(); 11938 $ac_func();
10598 #endif 11939 #endif
10599 11940
10600 ; return 0; } 11941 ; return 0; }
10601 EOF 11942 EOF
10602 if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11943 if { (eval echo configure:11944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10603 rm -rf conftest* 11944 rm -rf conftest*
10604 eval "ac_cv_func_$ac_func=yes" 11945 eval "ac_cv_func_$ac_func=yes"
10605 else 11946 else
10606 echo "configure: failed program was:" >&5 11947 echo "configure: failed program was:" >&5
10607 cat conftest.$ac_ext >&5 11948 cat conftest.$ac_ext >&5
10638 11979
10639 11980
10640 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 11981 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10641 do 11982 do
10642 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10643 echo "configure:10644: checking for $ac_func" >&5 11984 echo "configure:11985: checking for $ac_func" >&5
10644 11985
10645 cat > conftest.$ac_ext <<EOF 11986 cat > conftest.$ac_ext <<EOF
10646 #line 10647 "configure" 11987 #line 11988 "configure"
10647 #include "confdefs.h" 11988 #include "confdefs.h"
10648 /* System header to define __stub macros and hopefully few prototypes, 11989 /* System header to define __stub macros and hopefully few prototypes,
10649 which can conflict with char $ac_func(); below. */ 11990 which can conflict with char $ac_func(); below. */
10650 #include <assert.h> 11991 #include <assert.h>
10651 /* Override any gcc2 internal prototype to avoid an error. */ 11992 /* Override any gcc2 internal prototype to avoid an error. */
10664 $ac_func(); 12005 $ac_func();
10665 #endif 12006 #endif
10666 12007
10667 ; return 0; } 12008 ; return 0; }
10668 EOF 12009 EOF
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12010 if { (eval echo configure:12011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10670 rm -rf conftest* 12011 rm -rf conftest*
10671 eval "ac_cv_func_$ac_func=yes" 12012 eval "ac_cv_func_$ac_func=yes"
10672 else 12013 else
10673 echo "configure: failed program was:" >&5 12014 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5 12015 cat conftest.$ac_ext >&5
10693 fi 12034 fi
10694 done 12035 done
10695 12036
10696 12037
10697 echo $ac_n "checking for openpty""... $ac_c" 1>&6 12038 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10698 echo "configure:10699: checking for openpty" >&5 12039 echo "configure:12040: checking for openpty" >&5
10699 12040
10700 cat > conftest.$ac_ext <<EOF 12041 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure" 12042 #line 12043 "configure"
10702 #include "confdefs.h" 12043 #include "confdefs.h"
10703 /* System header to define __stub macros and hopefully few prototypes, 12044 /* System header to define __stub macros and hopefully few prototypes,
10704 which can conflict with char openpty(); below. */ 12045 which can conflict with char openpty(); below. */
10705 #include <assert.h> 12046 #include <assert.h>
10706 /* Override any gcc2 internal prototype to avoid an error. */ 12047 /* Override any gcc2 internal prototype to avoid an error. */
10719 openpty(); 12060 openpty();
10720 #endif 12061 #endif
10721 12062
10722 ; return 0; } 12063 ; return 0; }
10723 EOF 12064 EOF
10724 if { (eval echo configure:10725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12065 if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10725 rm -rf conftest* 12066 rm -rf conftest*
10726 eval "ac_cv_func_openpty=yes" 12067 eval "ac_cv_func_openpty=yes"
10727 else 12068 else
10728 echo "configure: failed program was:" >&5 12069 echo "configure: failed program was:" >&5
10729 cat conftest.$ac_ext >&5 12070 cat conftest.$ac_ext >&5
10738 else 12079 else
10739 echo "$ac_t""no" 1>&6 12080 echo "$ac_t""no" 1>&6
10740 12081
10741 12082
10742 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 12083 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
10743 echo "configure:10744: checking for openpty in -lutil" >&5 12084 echo "configure:12085: checking for openpty in -lutil" >&5
10744 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 12085 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
10745 12086
10746 xe_check_libs=" -lutil " 12087 xe_check_libs=" -lutil "
10747 cat > conftest.$ac_ext <<EOF 12088 cat > conftest.$ac_ext <<EOF
10748 #line 10749 "configure" 12089 #line 12090 "configure"
10749 #include "confdefs.h" 12090 #include "confdefs.h"
10750 /* Override any gcc2 internal prototype to avoid an error. */ 12091 /* Override any gcc2 internal prototype to avoid an error. */
10751 /* We use char because int might match the return type of a gcc2 12092 /* We use char because int might match the return type of a gcc2
10752 builtin and then its argument prototype would still apply. */ 12093 builtin and then its argument prototype would still apply. */
10753 char openpty(); 12094 char openpty();
10754 12095
10755 int main() { 12096 int main() {
10756 openpty() 12097 openpty()
10757 ; return 0; } 12098 ; return 0; }
10758 EOF 12099 EOF
10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10760 rm -rf conftest* 12101 rm -rf conftest*
10761 eval "ac_cv_lib_$ac_lib_var=yes" 12102 eval "ac_cv_lib_$ac_lib_var=yes"
10762 else 12103 else
10763 echo "configure: failed program was:" >&5 12104 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5 12105 cat conftest.$ac_ext >&5
10789 12130
10790 for ac_hdr in libutil.h util.h 12131 for ac_hdr in libutil.h util.h
10791 do 12132 do
10792 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10794 echo "configure:10795: checking for $ac_hdr" >&5 12135 echo "configure:12136: checking for $ac_hdr" >&5
10795 12136
10796 cat > conftest.$ac_ext <<EOF 12137 cat > conftest.$ac_ext <<EOF
10797 #line 10798 "configure" 12138 #line 12139 "configure"
10798 #include "confdefs.h" 12139 #include "confdefs.h"
10799 #include <$ac_hdr> 12140 #include <$ac_hdr>
10800 EOF 12141 EOF
10801 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10802 { (eval echo configure:10803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12143 { (eval echo configure:12144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10803 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10804 if test -z "$ac_err"; then 12145 if test -z "$ac_err"; then
10805 rm -rf conftest* 12146 rm -rf conftest*
10806 eval "ac_cv_header_$ac_safe=yes" 12147 eval "ac_cv_header_$ac_safe=yes"
10807 else 12148 else
10834 case "$opsys" in 12175 case "$opsys" in
10835 hpux*) for ac_hdr in sys/ptyio.h 12176 hpux*) for ac_hdr in sys/ptyio.h
10836 do 12177 do
10837 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12178 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10838 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12179 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10839 echo "configure:10840: checking for $ac_hdr" >&5 12180 echo "configure:12181: checking for $ac_hdr" >&5
10840 12181
10841 cat > conftest.$ac_ext <<EOF 12182 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure" 12183 #line 12184 "configure"
10843 #include "confdefs.h" 12184 #include "confdefs.h"
10844 #include <$ac_hdr> 12185 #include <$ac_hdr>
10845 EOF 12186 EOF
10846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10847 { (eval echo configure:10848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12188 { (eval echo configure:12189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10849 if test -z "$ac_err"; then 12190 if test -z "$ac_err"; then
10850 rm -rf conftest* 12191 rm -rf conftest*
10851 eval "ac_cv_header_$ac_safe=yes" 12192 eval "ac_cv_header_$ac_safe=yes"
10852 else 12193 else
10875 ;; 12216 ;;
10876 *) for ac_hdr in pty.h 12217 *) for ac_hdr in pty.h
10877 do 12218 do
10878 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10879 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10880 echo "configure:10881: checking for $ac_hdr" >&5 12221 echo "configure:12222: checking for $ac_hdr" >&5
10881 12222
10882 cat > conftest.$ac_ext <<EOF 12223 cat > conftest.$ac_ext <<EOF
10883 #line 10884 "configure" 12224 #line 12225 "configure"
10884 #include "confdefs.h" 12225 #include "confdefs.h"
10885 #include <$ac_hdr> 12226 #include <$ac_hdr>
10886 EOF 12227 EOF
10887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10888 { (eval echo configure:10889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12229 { (eval echo configure:12230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10890 if test -z "$ac_err"; then 12231 if test -z "$ac_err"; then
10891 rm -rf conftest* 12232 rm -rf conftest*
10892 eval "ac_cv_header_$ac_safe=yes" 12233 eval "ac_cv_header_$ac_safe=yes"
10893 else 12234 else
10916 12257
10917 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 12258 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
10918 do 12259 do
10919 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12260 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10920 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12261 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10921 echo "configure:10922: checking for $ac_hdr" >&5 12262 echo "configure:12263: checking for $ac_hdr" >&5
10922 12263
10923 cat > conftest.$ac_ext <<EOF 12264 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure" 12265 #line 12266 "configure"
10925 #include "confdefs.h" 12266 #include "confdefs.h"
10926 #include <$ac_hdr> 12267 #include <$ac_hdr>
10927 EOF 12268 EOF
10928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10929 { (eval echo configure:10930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12270 { (eval echo configure:12271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10931 if test -z "$ac_err"; then 12272 if test -z "$ac_err"; then
10932 rm -rf conftest* 12273 rm -rf conftest*
10933 eval "ac_cv_header_$ac_safe=yes" 12274 eval "ac_cv_header_$ac_safe=yes"
10934 else 12275 else
10960 12301
10961 for ac_hdr in stropts.h 12302 for ac_hdr in stropts.h
10962 do 12303 do
10963 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12304 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10964 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12305 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10965 echo "configure:10966: checking for $ac_hdr" >&5 12306 echo "configure:12307: checking for $ac_hdr" >&5
10966 12307
10967 cat > conftest.$ac_ext <<EOF 12308 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure" 12309 #line 12310 "configure"
10969 #include "confdefs.h" 12310 #include "confdefs.h"
10970 #include <$ac_hdr> 12311 #include <$ac_hdr>
10971 EOF 12312 EOF
10972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10973 { (eval echo configure:10974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12314 { (eval echo configure:12315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10975 if test -z "$ac_err"; then 12316 if test -z "$ac_err"; then
10976 rm -rf conftest* 12317 rm -rf conftest*
10977 eval "ac_cv_header_$ac_safe=yes" 12318 eval "ac_cv_header_$ac_safe=yes"
10978 else 12319 else
11001 12342
11002 if test "$ac_cv_header_stropts_h" = "yes"; then 12343 if test "$ac_cv_header_stropts_h" = "yes"; then
11003 for ac_func in isastream 12344 for ac_func in isastream
11004 do 12345 do
11005 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11006 echo "configure:11007: checking for $ac_func" >&5 12347 echo "configure:12348: checking for $ac_func" >&5
11007 12348
11008 cat > conftest.$ac_ext <<EOF 12349 cat > conftest.$ac_ext <<EOF
11009 #line 11010 "configure" 12350 #line 12351 "configure"
11010 #include "confdefs.h" 12351 #include "confdefs.h"
11011 /* System header to define __stub macros and hopefully few prototypes, 12352 /* System header to define __stub macros and hopefully few prototypes,
11012 which can conflict with char $ac_func(); below. */ 12353 which can conflict with char $ac_func(); below. */
11013 #include <assert.h> 12354 #include <assert.h>
11014 /* Override any gcc2 internal prototype to avoid an error. */ 12355 /* Override any gcc2 internal prototype to avoid an error. */
11027 $ac_func(); 12368 $ac_func();
11028 #endif 12369 #endif
11029 12370
11030 ; return 0; } 12371 ; return 0; }
11031 EOF 12372 EOF
11032 if { (eval echo configure:11033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12373 if { (eval echo configure:12374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11033 rm -rf conftest* 12374 rm -rf conftest*
11034 eval "ac_cv_func_$ac_func=yes" 12375 eval "ac_cv_func_$ac_func=yes"
11035 else 12376 else
11036 echo "configure: failed program was:" >&5 12377 echo "configure: failed program was:" >&5
11037 cat conftest.$ac_ext >&5 12378 cat conftest.$ac_ext >&5
11058 12399
11059 for ac_hdr in strtio.h 12400 for ac_hdr in strtio.h
11060 do 12401 do
11061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11063 echo "configure:11064: checking for $ac_hdr" >&5 12404 echo "configure:12405: checking for $ac_hdr" >&5
11064 12405
11065 cat > conftest.$ac_ext <<EOF 12406 cat > conftest.$ac_ext <<EOF
11066 #line 11067 "configure" 12407 #line 12408 "configure"
11067 #include "confdefs.h" 12408 #include "confdefs.h"
11068 #include <$ac_hdr> 12409 #include <$ac_hdr>
11069 EOF 12410 EOF
11070 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11071 { (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12412 { (eval echo configure:12413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11072 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11073 if test -z "$ac_err"; then 12414 if test -z "$ac_err"; then
11074 rm -rf conftest* 12415 rm -rf conftest*
11075 eval "ac_cv_header_$ac_safe=yes" 12416 eval "ac_cv_header_$ac_safe=yes"
11076 else 12417 else
11099 fi 12440 fi
11100 12441
11101 for ac_func in getloadavg 12442 for ac_func in getloadavg
11102 do 12443 do
11103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11104 echo "configure:11105: checking for $ac_func" >&5 12445 echo "configure:12446: checking for $ac_func" >&5
11105 12446
11106 cat > conftest.$ac_ext <<EOF 12447 cat > conftest.$ac_ext <<EOF
11107 #line 11108 "configure" 12448 #line 12449 "configure"
11108 #include "confdefs.h" 12449 #include "confdefs.h"
11109 /* System header to define __stub macros and hopefully few prototypes, 12450 /* System header to define __stub macros and hopefully few prototypes,
11110 which can conflict with char $ac_func(); below. */ 12451 which can conflict with char $ac_func(); below. */
11111 #include <assert.h> 12452 #include <assert.h>
11112 /* Override any gcc2 internal prototype to avoid an error. */ 12453 /* Override any gcc2 internal prototype to avoid an error. */
11125 $ac_func(); 12466 $ac_func();
11126 #endif 12467 #endif
11127 12468
11128 ; return 0; } 12469 ; return 0; }
11129 EOF 12470 EOF
11130 if { (eval echo configure:11131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12471 if { (eval echo configure:12472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11131 rm -rf conftest* 12472 rm -rf conftest*
11132 eval "ac_cv_func_$ac_func=yes" 12473 eval "ac_cv_func_$ac_func=yes"
11133 else 12474 else
11134 echo "configure: failed program was:" >&5 12475 echo "configure: failed program was:" >&5
11135 cat conftest.$ac_ext >&5 12476 cat conftest.$ac_ext >&5
11158 if test "$ac_cv_func_getloadavg" = "yes"; then 12499 if test "$ac_cv_func_getloadavg" = "yes"; then
11159 for ac_hdr in sys/loadavg.h 12500 for ac_hdr in sys/loadavg.h
11160 do 12501 do
11161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11163 echo "configure:11164: checking for $ac_hdr" >&5 12504 echo "configure:12505: checking for $ac_hdr" >&5
11164 12505
11165 cat > conftest.$ac_ext <<EOF 12506 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure" 12507 #line 12508 "configure"
11167 #include "confdefs.h" 12508 #include "confdefs.h"
11168 #include <$ac_hdr> 12509 #include <$ac_hdr>
11169 EOF 12510 EOF
11170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11171 { (eval echo configure:11172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12512 { (eval echo configure:12513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11173 if test -z "$ac_err"; then 12514 if test -z "$ac_err"; then
11174 rm -rf conftest* 12515 rm -rf conftest*
11175 eval "ac_cv_header_$ac_safe=yes" 12516 eval "ac_cv_header_$ac_safe=yes"
11176 else 12517 else
11202 echo " xemacs will be linked with \"getloadavg.o\"" 12543 echo " xemacs will be linked with \"getloadavg.o\""
11203 fi 12544 fi
11204 12545
11205 12546
11206 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 12547 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11207 echo "configure:11208: checking for kstat_open in -lkstat" >&5 12548 echo "configure:12549: checking for kstat_open in -lkstat" >&5
11208 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 12549 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11209 12550
11210 xe_check_libs=" -lkstat " 12551 xe_check_libs=" -lkstat "
11211 cat > conftest.$ac_ext <<EOF 12552 cat > conftest.$ac_ext <<EOF
11212 #line 11213 "configure" 12553 #line 12554 "configure"
11213 #include "confdefs.h" 12554 #include "confdefs.h"
11214 /* Override any gcc2 internal prototype to avoid an error. */ 12555 /* Override any gcc2 internal prototype to avoid an error. */
11215 /* We use char because int might match the return type of a gcc2 12556 /* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */ 12557 builtin and then its argument prototype would still apply. */
11217 char kstat_open(); 12558 char kstat_open();
11218 12559
11219 int main() { 12560 int main() {
11220 kstat_open() 12561 kstat_open()
11221 ; return 0; } 12562 ; return 0; }
11222 EOF 12563 EOF
11223 if { (eval echo configure:11224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12564 if { (eval echo configure:12565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 rm -rf conftest* 12565 rm -rf conftest*
11225 eval "ac_cv_lib_$ac_lib_var=yes" 12566 eval "ac_cv_lib_$ac_lib_var=yes"
11226 else 12567 else
11227 echo "configure: failed program was:" >&5 12568 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5 12569 cat conftest.$ac_ext >&5
11253 12594
11254 for ac_hdr in kstat.h 12595 for ac_hdr in kstat.h
11255 do 12596 do
11256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 12597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 12598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11258 echo "configure:11259: checking for $ac_hdr" >&5 12599 echo "configure:12600: checking for $ac_hdr" >&5
11259 12600
11260 cat > conftest.$ac_ext <<EOF 12601 cat > conftest.$ac_ext <<EOF
11261 #line 11262 "configure" 12602 #line 12603 "configure"
11262 #include "confdefs.h" 12603 #include "confdefs.h"
11263 #include <$ac_hdr> 12604 #include <$ac_hdr>
11264 EOF 12605 EOF
11265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11266 { (eval echo configure:11267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12607 { (eval echo configure:12608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11268 if test -z "$ac_err"; then 12609 if test -z "$ac_err"; then
11269 rm -rf conftest* 12610 rm -rf conftest*
11270 eval "ac_cv_header_$ac_safe=yes" 12611 eval "ac_cv_header_$ac_safe=yes"
11271 else 12612 else
11293 done 12634 done
11294 12635
11295 12636
11296 12637
11297 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 12638 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11298 echo "configure:11299: checking for kvm_read in -lkvm" >&5 12639 echo "configure:12640: checking for kvm_read in -lkvm" >&5
11299 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 12640 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11300 12641
11301 xe_check_libs=" -lkvm " 12642 xe_check_libs=" -lkvm "
11302 cat > conftest.$ac_ext <<EOF 12643 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure" 12644 #line 12645 "configure"
11304 #include "confdefs.h" 12645 #include "confdefs.h"
11305 /* Override any gcc2 internal prototype to avoid an error. */ 12646 /* Override any gcc2 internal prototype to avoid an error. */
11306 /* We use char because int might match the return type of a gcc2 12647 /* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */ 12648 builtin and then its argument prototype would still apply. */
11308 char kvm_read(); 12649 char kvm_read();
11309 12650
11310 int main() { 12651 int main() {
11311 kvm_read() 12652 kvm_read()
11312 ; return 0; } 12653 ; return 0; }
11313 EOF 12654 EOF
11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12655 if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11315 rm -rf conftest* 12656 rm -rf conftest*
11316 eval "ac_cv_lib_$ac_lib_var=yes" 12657 eval "ac_cv_lib_$ac_lib_var=yes"
11317 else 12658 else
11318 echo "configure: failed program was:" >&5 12659 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5 12660 cat conftest.$ac_ext >&5
11343 12684
11344 12685
11345 fi 12686 fi
11346 12687
11347 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 12688 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11348 echo "configure:11349: checking whether netdb declares h_errno" >&5 12689 echo "configure:12690: checking whether netdb declares h_errno" >&5
11349 cat > conftest.$ac_ext <<EOF 12690 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure" 12691 #line 12692 "configure"
11351 #include "confdefs.h" 12692 #include "confdefs.h"
11352 #include <netdb.h> 12693 #include <netdb.h>
11353 int main() { 12694 int main() {
11354 return h_errno; 12695 return h_errno;
11355 ; return 0; } 12696 ; return 0; }
11356 EOF 12697 EOF
11357 if { (eval echo configure:11358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12698 if { (eval echo configure:12699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11358 rm -rf conftest* 12699 rm -rf conftest*
11359 echo "$ac_t""yes" 1>&6 12700 echo "$ac_t""yes" 1>&6
11360 { test "$extra_verbose" = "yes" && cat << \EOF 12701 { test "$extra_verbose" = "yes" && cat << \EOF
11361 Defining HAVE_H_ERRNO 12702 Defining HAVE_H_ERRNO
11362 EOF 12703 EOF
11372 echo "$ac_t""no" 1>&6 12713 echo "$ac_t""no" 1>&6
11373 fi 12714 fi
11374 rm -f conftest* 12715 rm -f conftest*
11375 12716
11376 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 12717 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11377 echo "configure:11378: checking for sigsetjmp" >&5 12718 echo "configure:12719: checking for sigsetjmp" >&5
11378 cat > conftest.$ac_ext <<EOF 12719 cat > conftest.$ac_ext <<EOF
11379 #line 11380 "configure" 12720 #line 12721 "configure"
11380 #include "confdefs.h" 12721 #include "confdefs.h"
11381 #include <setjmp.h> 12722 #include <setjmp.h>
11382 int main() { 12723 int main() {
11383 sigjmp_buf bar; sigsetjmp (bar, 0); 12724 sigjmp_buf bar; sigsetjmp (bar, 0);
11384 ; return 0; } 12725 ; return 0; }
11385 EOF 12726 EOF
11386 if { (eval echo configure:11387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12727 if { (eval echo configure:12728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11387 rm -rf conftest* 12728 rm -rf conftest*
11388 echo "$ac_t""yes" 1>&6 12729 echo "$ac_t""yes" 1>&6
11389 { test "$extra_verbose" = "yes" && cat << \EOF 12730 { test "$extra_verbose" = "yes" && cat << \EOF
11390 Defining HAVE_SIGSETJMP 12731 Defining HAVE_SIGSETJMP
11391 EOF 12732 EOF
11401 echo "$ac_t""no" 1>&6 12742 echo "$ac_t""no" 1>&6
11402 fi 12743 fi
11403 rm -f conftest* 12744 rm -f conftest*
11404 12745
11405 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 12746 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11406 echo "configure:11407: checking whether localtime caches TZ" >&5 12747 echo "configure:12748: checking whether localtime caches TZ" >&5
11407 12748
11408 if test "$ac_cv_func_tzset" = "yes"; then 12749 if test "$ac_cv_func_tzset" = "yes"; then
11409 cat > conftest.$ac_ext <<EOF 12750 cat > conftest.$ac_ext <<EOF
11410 #line 11411 "configure" 12751 #line 12752 "configure"
11411 #include "confdefs.h" 12752 #include "confdefs.h"
11412 #include <time.h> 12753 #include <time.h>
11413 #if STDC_HEADERS 12754 #if STDC_HEADERS
11414 # include <stdlib.h> 12755 # include <stdlib.h>
11415 #endif 12756 #endif
11440 if (localtime (&now)->tm_hour != hour_unset) 12781 if (localtime (&now)->tm_hour != hour_unset)
11441 exit (1); 12782 exit (1);
11442 exit (0); 12783 exit (0);
11443 } 12784 }
11444 EOF 12785 EOF
11445 if { (eval echo configure:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12786 if { (eval echo configure:12787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11446 then 12787 then
11447 emacs_cv_localtime_cache=no 12788 emacs_cv_localtime_cache=no
11448 else 12789 else
11449 conftest_rc="$?" 12790 conftest_rc="$?"
11450 echo "configure: failed program was:" >&5 12791 echo "configure: failed program was:" >&5
11470 12811
11471 fi 12812 fi
11472 12813
11473 if test "$HAVE_TIMEVAL" = "yes"; then 12814 if test "$HAVE_TIMEVAL" = "yes"; then
11474 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 12815 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11475 echo "configure:11476: checking whether gettimeofday accepts one or two arguments" >&5 12816 echo "configure:12817: checking whether gettimeofday accepts one or two arguments" >&5
11476 cat > conftest.$ac_ext <<EOF 12817 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure" 12818 #line 12819 "configure"
11478 #include "confdefs.h" 12819 #include "confdefs.h"
11479 12820
11480 #ifdef TIME_WITH_SYS_TIME 12821 #ifdef TIME_WITH_SYS_TIME
11481 #include <sys/time.h> 12822 #include <sys/time.h>
11482 #include <time.h> 12823 #include <time.h>
11493 struct timeval time; 12834 struct timeval time;
11494 gettimeofday (&time, 0); 12835 gettimeofday (&time, 0);
11495 12836
11496 ; return 0; } 12837 ; return 0; }
11497 EOF 12838 EOF
11498 if { (eval echo configure:11499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12839 if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11499 rm -rf conftest* 12840 rm -rf conftest*
11500 echo "$ac_t""two" 1>&6 12841 echo "$ac_t""two" 1>&6
11501 else 12842 else
11502 echo "configure: failed program was:" >&5 12843 echo "configure: failed program was:" >&5
11503 cat conftest.$ac_ext >&5 12844 cat conftest.$ac_ext >&5
11515 rm -f conftest* 12856 rm -f conftest*
11516 fi 12857 fi
11517 12858
11518 12859
11519 echo $ac_n "checking for inline""... $ac_c" 1>&6 12860 echo $ac_n "checking for inline""... $ac_c" 1>&6
11520 echo "configure:11521: checking for inline" >&5 12861 echo "configure:12862: checking for inline" >&5
11521 12862
11522 ac_cv_c_inline=no 12863 ac_cv_c_inline=no
11523 for ac_kw in inline __inline__ __inline; do 12864 for ac_kw in inline __inline__ __inline; do
11524 cat > conftest.$ac_ext <<EOF 12865 cat > conftest.$ac_ext <<EOF
11525 #line 11526 "configure" 12866 #line 12867 "configure"
11526 #include "confdefs.h" 12867 #include "confdefs.h"
11527 12868
11528 int main() { 12869 int main() {
11529 } $ac_kw foo() { 12870 } $ac_kw foo() {
11530 ; return 0; } 12871 ; return 0; }
11531 EOF 12872 EOF
11532 if { (eval echo configure:11533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12873 if { (eval echo configure:12874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11533 rm -rf conftest* 12874 rm -rf conftest*
11534 ac_cv_c_inline=$ac_kw; break 12875 ac_cv_c_inline=$ac_kw; break
11535 else 12876 else
11536 echo "configure: failed program was:" >&5 12877 echo "configure: failed program was:" >&5
11537 cat conftest.$ac_ext >&5 12878 cat conftest.$ac_ext >&5
11568 12909
11569 if test "$__DECC" != "yes"; then 12910 if test "$__DECC" != "yes"; then
11570 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12911 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11571 # for constant arguments. Useless! 12912 # for constant arguments. Useless!
11572 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 12913 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11573 echo "configure:11574: checking for working alloca.h" >&5 12914 echo "configure:12915: checking for working alloca.h" >&5
11574 12915
11575 cat > conftest.$ac_ext <<EOF 12916 cat > conftest.$ac_ext <<EOF
11576 #line 11577 "configure" 12917 #line 12918 "configure"
11577 #include "confdefs.h" 12918 #include "confdefs.h"
11578 #include <alloca.h> 12919 #include <alloca.h>
11579 int main() { 12920 int main() {
11580 char *p = alloca(2 * sizeof(int)); 12921 char *p = alloca(2 * sizeof(int));
11581 ; return 0; } 12922 ; return 0; }
11582 EOF 12923 EOF
11583 if { (eval echo configure:11584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12924 if { (eval echo configure:12925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11584 rm -rf conftest* 12925 rm -rf conftest*
11585 ac_cv_header_alloca_h=yes 12926 ac_cv_header_alloca_h=yes
11586 else 12927 else
11587 echo "configure: failed program was:" >&5 12928 echo "configure: failed program was:" >&5
11588 cat conftest.$ac_ext >&5 12929 cat conftest.$ac_ext >&5
11602 } 12943 }
11603 12944
11604 fi 12945 fi
11605 12946
11606 echo $ac_n "checking for alloca""... $ac_c" 1>&6 12947 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11607 echo "configure:11608: checking for alloca" >&5 12948 echo "configure:12949: checking for alloca" >&5
11608 12949
11609 cat > conftest.$ac_ext <<EOF 12950 cat > conftest.$ac_ext <<EOF
11610 #line 11611 "configure" 12951 #line 12952 "configure"
11611 #include "confdefs.h" 12952 #include "confdefs.h"
11612 12953
11613 #ifdef __GNUC__ 12954 #ifdef __GNUC__
11614 # define alloca __builtin_alloca 12955 # define alloca __builtin_alloca
11615 #else 12956 #else
11633 12974
11634 int main() { 12975 int main() {
11635 char *p = (char *) alloca(1); 12976 char *p = (char *) alloca(1);
11636 ; return 0; } 12977 ; return 0; }
11637 EOF 12978 EOF
11638 if { (eval echo configure:11639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12979 if { (eval echo configure:12980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11639 rm -rf conftest* 12980 rm -rf conftest*
11640 ac_cv_func_alloca_works=yes 12981 ac_cv_func_alloca_works=yes
11641 else 12982 else
11642 echo "configure: failed program was:" >&5 12983 echo "configure: failed program was:" >&5
11643 cat conftest.$ac_ext >&5 12984 cat conftest.$ac_ext >&5
11672 EOF 13013 EOF
11673 } 13014 }
11674 13015
11675 13016
11676 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 13017 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11677 echo "configure:11678: checking whether alloca needs Cray hooks" >&5 13018 echo "configure:13019: checking whether alloca needs Cray hooks" >&5
11678 13019
11679 cat > conftest.$ac_ext <<EOF 13020 cat > conftest.$ac_ext <<EOF
11680 #line 11681 "configure" 13021 #line 13022 "configure"
11681 #include "confdefs.h" 13022 #include "confdefs.h"
11682 #if defined(CRAY) && ! defined(CRAY2) 13023 #if defined(CRAY) && ! defined(CRAY2)
11683 webecray 13024 webecray
11684 #else 13025 #else
11685 wenotbecray 13026 wenotbecray
11699 13040
11700 echo "$ac_t""$ac_cv_os_cray" 1>&6 13041 echo "$ac_t""$ac_cv_os_cray" 1>&6
11701 if test $ac_cv_os_cray = yes; then 13042 if test $ac_cv_os_cray = yes; then
11702 for ac_func in _getb67 GETB67 getb67; do 13043 for ac_func in _getb67 GETB67 getb67; do
11703 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13044 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11704 echo "configure:11705: checking for $ac_func" >&5 13045 echo "configure:13046: checking for $ac_func" >&5
11705 13046
11706 cat > conftest.$ac_ext <<EOF 13047 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure" 13048 #line 13049 "configure"
11708 #include "confdefs.h" 13049 #include "confdefs.h"
11709 /* System header to define __stub macros and hopefully few prototypes, 13050 /* System header to define __stub macros and hopefully few prototypes,
11710 which can conflict with char $ac_func(); below. */ 13051 which can conflict with char $ac_func(); below. */
11711 #include <assert.h> 13052 #include <assert.h>
11712 /* Override any gcc2 internal prototype to avoid an error. */ 13053 /* Override any gcc2 internal prototype to avoid an error. */
11725 $ac_func(); 13066 $ac_func();
11726 #endif 13067 #endif
11727 13068
11728 ; return 0; } 13069 ; return 0; }
11729 EOF 13070 EOF
11730 if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13071 if { (eval echo configure:13072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11731 rm -rf conftest* 13072 rm -rf conftest*
11732 eval "ac_cv_func_$ac_func=yes" 13073 eval "ac_cv_func_$ac_func=yes"
11733 else 13074 else
11734 echo "configure: failed program was:" >&5 13075 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5 13076 cat conftest.$ac_ext >&5
11755 13096
11756 done 13097 done
11757 fi 13098 fi
11758 13099
11759 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 13100 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11760 echo "configure:11761: checking stack direction for C alloca" >&5 13101 echo "configure:13102: checking stack direction for C alloca" >&5
11761 13102
11762 cat > conftest.$ac_ext <<EOF 13103 cat > conftest.$ac_ext <<EOF
11763 #line 11764 "configure" 13104 #line 13105 "configure"
11764 #include "confdefs.h" 13105 #include "confdefs.h"
11765 find_stack_direction () 13106 find_stack_direction ()
11766 { 13107 {
11767 static char *addr = 0; 13108 static char *addr = 0;
11768 auto char dummy; 13109 auto char dummy;
11777 main () 13118 main ()
11778 { 13119 {
11779 exit (find_stack_direction() < 0); 13120 exit (find_stack_direction() < 0);
11780 } 13121 }
11781 EOF 13122 EOF
11782 if { (eval echo configure:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13123 if { (eval echo configure:13124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11783 then 13124 then
11784 ac_cv_c_stack_direction=1 13125 ac_cv_c_stack_direction=1
11785 else 13126 else
11786 conftest_rc="$?" 13127 conftest_rc="$?"
11787 echo "configure: failed program was:" >&5 13128 echo "configure: failed program was:" >&5
11806 echo " xemacs will be linked with \"$ALLOCA\"" 13147 echo " xemacs will be linked with \"$ALLOCA\""
11807 fi 13148 fi
11808 fi 13149 fi
11809 13150
11810 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6 13151 echo $ac_n "checking for working alloca in function calls""... $ac_c" 1>&6
11811 echo "configure:11812: checking for working alloca in function calls" >&5 13152 echo "configure:13153: checking for working alloca in function calls" >&5
11812 cat > conftest.$ac_ext <<EOF 13153 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure" 13154 #line 13155 "configure"
11814 #include "confdefs.h" 13155 #include "confdefs.h"
11815 13156
11816 #if defined (__CYGWIN__) 13157 #if defined (__CYGWIN__)
11817 #include <alloca.h> 13158 #include <alloca.h>
11818 #elif defined (__GNUC__) 13159 #elif defined (__GNUC__)
11861 return 1; 13202 return 1;
11862 return 0; 13203 return 0;
11863 } 13204 }
11864 13205
11865 EOF 13206 EOF
11866 if { (eval echo configure:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13207 if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11867 then 13208 then
11868 working_alloca_in_function_calls=yes 13209 working_alloca_in_function_calls=yes
11869 else 13210 else
11870 conftest_rc="$?" 13211 conftest_rc="$?"
11871 echo "configure: failed program was:" >&5 13212 echo "configure: failed program was:" >&5
11884 EOF 13225 EOF
11885 } 13226 }
11886 13227
11887 13228
11888 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 13229 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
11889 echo "configure:11890: checking for working strcoll" >&5 13230 echo "configure:13231: checking for working strcoll" >&5
11890 13231
11891 cat > conftest.$ac_ext <<EOF 13232 cat > conftest.$ac_ext <<EOF
11892 #line 11893 "configure" 13233 #line 13234 "configure"
11893 #include "confdefs.h" 13234 #include "confdefs.h"
11894 #include <string.h> 13235 #include <string.h>
11895 main () 13236 main ()
11896 { 13237 {
11897 exit (strcoll ("abc", "def") >= 0 || 13238 exit (strcoll ("abc", "def") >= 0 ||
11898 strcoll ("ABC", "DEF") >= 0 || 13239 strcoll ("ABC", "DEF") >= 0 ||
11899 strcoll ("123", "456") >= 0); 13240 strcoll ("123", "456") >= 0);
11900 } 13241 }
11901 EOF 13242 EOF
11902 if { (eval echo configure:11903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13243 if { (eval echo configure:13244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11903 then 13244 then
11904 ac_cv_func_strcoll_works=yes 13245 ac_cv_func_strcoll_works=yes
11905 else 13246 else
11906 conftest_rc="$?" 13247 conftest_rc="$?"
11907 echo "configure: failed program was:" >&5 13248 echo "configure: failed program was:" >&5
11925 13266
11926 13267
11927 for ac_func in getpgrp 13268 for ac_func in getpgrp
11928 do 13269 do
11929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 13270 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11930 echo "configure:11931: checking for $ac_func" >&5 13271 echo "configure:13272: checking for $ac_func" >&5
11931 13272
11932 cat > conftest.$ac_ext <<EOF 13273 cat > conftest.$ac_ext <<EOF
11933 #line 11934 "configure" 13274 #line 13275 "configure"
11934 #include "confdefs.h" 13275 #include "confdefs.h"
11935 /* System header to define __stub macros and hopefully few prototypes, 13276 /* System header to define __stub macros and hopefully few prototypes,
11936 which can conflict with char $ac_func(); below. */ 13277 which can conflict with char $ac_func(); below. */
11937 #include <assert.h> 13278 #include <assert.h>
11938 /* Override any gcc2 internal prototype to avoid an error. */ 13279 /* Override any gcc2 internal prototype to avoid an error. */
11951 $ac_func(); 13292 $ac_func();
11952 #endif 13293 #endif
11953 13294
11954 ; return 0; } 13295 ; return 0; }
11955 EOF 13296 EOF
11956 if { (eval echo configure:11957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13297 if { (eval echo configure:13298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11957 rm -rf conftest* 13298 rm -rf conftest*
11958 eval "ac_cv_func_$ac_func=yes" 13299 eval "ac_cv_func_$ac_func=yes"
11959 else 13300 else
11960 echo "configure: failed program was:" >&5 13301 echo "configure: failed program was:" >&5
11961 cat conftest.$ac_ext >&5 13302 cat conftest.$ac_ext >&5
11979 echo "$ac_t""no" 1>&6 13320 echo "$ac_t""no" 1>&6
11980 fi 13321 fi
11981 done 13322 done
11982 13323
11983 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 13324 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
11984 echo "configure:11985: checking whether getpgrp takes no argument" >&5 13325 echo "configure:13326: checking whether getpgrp takes no argument" >&5
11985 13326
11986 cat > conftest.$ac_ext <<EOF 13327 cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure" 13328 #line 13329 "configure"
11988 #include "confdefs.h" 13329 #include "confdefs.h"
11989 13330
11990 /* 13331 /*
11991 * If this system has a BSD-style getpgrp(), 13332 * If this system has a BSD-style getpgrp(),
11992 * which takes a pid argument, exit unsuccessfully. 13333 * which takes a pid argument, exit unsuccessfully.
12037 exit(s>>8); 13378 exit(s>>8);
12038 } 13379 }
12039 } 13380 }
12040 13381
12041 EOF 13382 EOF
12042 if { (eval echo configure:12043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13383 if { (eval echo configure:13384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12043 then 13384 then
12044 ac_cv_func_getpgrp_void=yes 13385 ac_cv_func_getpgrp_void=yes
12045 else 13386 else
12046 conftest_rc="$?" 13387 conftest_rc="$?"
12047 echo "configure: failed program was:" >&5 13388 echo "configure: failed program was:" >&5
12064 13405
12065 fi 13406 fi
12066 13407
12067 13408
12068 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 13409 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12069 echo "configure:12070: checking for working mmap" >&5 13410 echo "configure:13411: checking for working mmap" >&5
12070 case "$opsys" in ultrix* ) have_mmap=no ;; *) 13411 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12071 cat > conftest.$ac_ext <<EOF 13412 cat > conftest.$ac_ext <<EOF
12072 #line 12073 "configure" 13413 #line 13414 "configure"
12073 #include "confdefs.h" 13414 #include "confdefs.h"
12074 #include <stdio.h> 13415 #include <stdio.h>
12075 #include <unistd.h> 13416 #include <unistd.h>
12076 #include <fcntl.h> 13417 #include <fcntl.h>
12077 #include <sys/mman.h> 13418 #include <sys/mman.h>
12100 return 0; 13441 return 0;
12101 perror ("conftest: mmap failed"); 13442 perror ("conftest: mmap failed");
12102 return 1; 13443 return 1;
12103 } 13444 }
12104 EOF 13445 EOF
12105 if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 13446 if { (eval echo configure:13447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12106 then 13447 then
12107 have_mmap=yes 13448 have_mmap=yes
12108 else 13449 else
12109 conftest_rc="$?" 13450 conftest_rc="$?"
12110 echo "configure: failed program was:" >&5 13451 echo "configure: failed program was:" >&5
12129 esac 13470 esac
12130 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 13471 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12131 if test "$rel_alloc $have_mmap" = "default yes"; then 13472 if test "$rel_alloc $have_mmap" = "default yes"; then
12132 if test "$doug_lea_malloc" = "yes"; then 13473 if test "$doug_lea_malloc" = "yes"; then
12133 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 13474 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12134 echo "configure:12135: checking for M_MMAP_THRESHOLD" >&5 13475 echo "configure:13476: checking for M_MMAP_THRESHOLD" >&5
12135 cat > conftest.$ac_ext <<EOF 13476 cat > conftest.$ac_ext <<EOF
12136 #line 12137 "configure" 13477 #line 13478 "configure"
12137 #include "confdefs.h" 13478 #include "confdefs.h"
12138 #include <malloc.h> 13479 #include <malloc.h>
12139 int main() { 13480 int main() {
12140 13481
12141 #ifndef M_MMAP_THRESHOLD 13482 #ifndef M_MMAP_THRESHOLD
12143 !@+$%^&*_)(_ - unlikely to compile... 13484 !@+$%^&*_)(_ - unlikely to compile...
12144 #endif 13485 #endif
12145 13486
12146 ; return 0; } 13487 ; return 0; }
12147 EOF 13488 EOF
12148 if { (eval echo configure:12149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 13489 if { (eval echo configure:13490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12149 rm -rf conftest* 13490 rm -rf conftest*
12150 rel_alloc=no; echo "$ac_t""yes" 1>&6; 13491 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12151 else 13492 else
12152 echo "configure: failed program was:" >&5 13493 echo "configure: failed program was:" >&5
12153 cat conftest.$ac_ext >&5 13494 cat conftest.$ac_ext >&5
12168 } 13509 }
12169 13510
12170 13511
12171 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 13512 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12172 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 13513 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12173 echo "configure:12174: checking for termios.h" >&5 13514 echo "configure:13515: checking for termios.h" >&5
12174 13515
12175 cat > conftest.$ac_ext <<EOF 13516 cat > conftest.$ac_ext <<EOF
12176 #line 12177 "configure" 13517 #line 13518 "configure"
12177 #include "confdefs.h" 13518 #include "confdefs.h"
12178 #include <termios.h> 13519 #include <termios.h>
12179 EOF 13520 EOF
12180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13521 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12181 { (eval echo configure:12182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13522 { (eval echo configure:13523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13523 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12183 if test -z "$ac_err"; then 13524 if test -z "$ac_err"; then
12184 rm -rf conftest* 13525 rm -rf conftest*
12185 eval "ac_cv_header_$ac_safe=yes" 13526 eval "ac_cv_header_$ac_safe=yes"
12186 else 13527 else
12219 13560
12220 else 13561 else
12221 echo "$ac_t""no" 1>&6 13562 echo "$ac_t""no" 1>&6
12222 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 13563 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12223 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 13564 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12224 echo "configure:12225: checking for termio.h" >&5 13565 echo "configure:13566: checking for termio.h" >&5
12225 13566
12226 cat > conftest.$ac_ext <<EOF 13567 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure" 13568 #line 13569 "configure"
12228 #include "confdefs.h" 13569 #include "confdefs.h"
12229 #include <termio.h> 13570 #include <termio.h>
12230 EOF 13571 EOF
12231 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12232 { (eval echo configure:12233: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13573 { (eval echo configure:13574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12233 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12234 if test -z "$ac_err"; then 13575 if test -z "$ac_err"; then
12235 rm -rf conftest* 13576 rm -rf conftest*
12236 eval "ac_cv_header_$ac_safe=yes" 13577 eval "ac_cv_header_$ac_safe=yes"
12237 else 13578 else
12259 fi 13600 fi
12260 13601
12261 13602
12262 13603
12263 echo $ac_n "checking for socket""... $ac_c" 1>&6 13604 echo $ac_n "checking for socket""... $ac_c" 1>&6
12264 echo "configure:12265: checking for socket" >&5 13605 echo "configure:13606: checking for socket" >&5
12265 13606
12266 cat > conftest.$ac_ext <<EOF 13607 cat > conftest.$ac_ext <<EOF
12267 #line 12268 "configure" 13608 #line 13609 "configure"
12268 #include "confdefs.h" 13609 #include "confdefs.h"
12269 /* System header to define __stub macros and hopefully few prototypes, 13610 /* System header to define __stub macros and hopefully few prototypes,
12270 which can conflict with char socket(); below. */ 13611 which can conflict with char socket(); below. */
12271 #include <assert.h> 13612 #include <assert.h>
12272 /* Override any gcc2 internal prototype to avoid an error. */ 13613 /* Override any gcc2 internal prototype to avoid an error. */
12285 socket(); 13626 socket();
12286 #endif 13627 #endif
12287 13628
12288 ; return 0; } 13629 ; return 0; }
12289 EOF 13630 EOF
12290 if { (eval echo configure:12291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13631 if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12291 rm -rf conftest* 13632 rm -rf conftest*
12292 eval "ac_cv_func_socket=yes" 13633 eval "ac_cv_func_socket=yes"
12293 else 13634 else
12294 echo "configure: failed program was:" >&5 13635 echo "configure: failed program was:" >&5
12295 cat conftest.$ac_ext >&5 13636 cat conftest.$ac_ext >&5
12300 13641
12301 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 13642 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12302 echo "$ac_t""yes" 1>&6 13643 echo "$ac_t""yes" 1>&6
12303 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 13644 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12304 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 13645 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12305 echo "configure:12306: checking for netinet/in.h" >&5 13646 echo "configure:13647: checking for netinet/in.h" >&5
12306 13647
12307 cat > conftest.$ac_ext <<EOF 13648 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure" 13649 #line 13650 "configure"
12309 #include "confdefs.h" 13650 #include "confdefs.h"
12310 #include <netinet/in.h> 13651 #include <netinet/in.h>
12311 EOF 13652 EOF
12312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13653 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12313 { (eval echo configure:12314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13654 { (eval echo configure:13655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13655 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12315 if test -z "$ac_err"; then 13656 if test -z "$ac_err"; then
12316 rm -rf conftest* 13657 rm -rf conftest*
12317 eval "ac_cv_header_$ac_safe=yes" 13658 eval "ac_cv_header_$ac_safe=yes"
12318 else 13659 else
12325 rm -f conftest* 13666 rm -f conftest*
12326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12327 echo "$ac_t""yes" 1>&6 13668 echo "$ac_t""yes" 1>&6
12328 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 13669 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12329 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 13670 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12330 echo "configure:12331: checking for arpa/inet.h" >&5 13671 echo "configure:13672: checking for arpa/inet.h" >&5
12331 13672
12332 cat > conftest.$ac_ext <<EOF 13673 cat > conftest.$ac_ext <<EOF
12333 #line 12334 "configure" 13674 #line 13675 "configure"
12334 #include "confdefs.h" 13675 #include "confdefs.h"
12335 #include <arpa/inet.h> 13676 #include <arpa/inet.h>
12336 EOF 13677 EOF
12337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12338 { (eval echo configure:12339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13679 { (eval echo configure:13680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12340 if test -z "$ac_err"; then 13681 if test -z "$ac_err"; then
12341 rm -rf conftest* 13682 rm -rf conftest*
12342 eval "ac_cv_header_$ac_safe=yes" 13683 eval "ac_cv_header_$ac_safe=yes"
12343 else 13684 else
12358 #define HAVE_SOCKETS 1 13699 #define HAVE_SOCKETS 1
12359 EOF 13700 EOF
12360 } 13701 }
12361 13702
12362 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 13703 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12363 echo "configure:12364: checking "for sun_len member in struct sockaddr_un"" >&5 13704 echo "configure:13705: checking "for sun_len member in struct sockaddr_un"" >&5
12364 cat > conftest.$ac_ext <<EOF 13705 cat > conftest.$ac_ext <<EOF
12365 #line 12366 "configure" 13706 #line 13707 "configure"
12366 #include "confdefs.h" 13707 #include "confdefs.h"
12367 13708
12368 #include <sys/types.h> 13709 #include <sys/types.h>
12369 #include <sys/socket.h> 13710 #include <sys/socket.h>
12370 #include <sys/un.h> 13711 #include <sys/un.h>
12371 13712
12372 int main() { 13713 int main() {
12373 static struct sockaddr_un x; x.sun_len = 1; 13714 static struct sockaddr_un x; x.sun_len = 1;
12374 ; return 0; } 13715 ; return 0; }
12375 EOF 13716 EOF
12376 if { (eval echo configure:12377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13717 if { (eval echo configure:13718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12377 rm -rf conftest* 13718 rm -rf conftest*
12378 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13719 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12379 Defining HAVE_SOCKADDR_SUN_LEN 13720 Defining HAVE_SOCKADDR_SUN_LEN
12380 EOF 13721 EOF
12381 cat >> confdefs.h <<\EOF 13722 cat >> confdefs.h <<\EOF
12389 rm -rf conftest* 13730 rm -rf conftest*
12390 echo "$ac_t""no" 1>&6 13731 echo "$ac_t""no" 1>&6
12391 fi 13732 fi
12392 rm -f conftest* 13733 rm -f conftest*
12393 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 13734 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12394 echo "configure:12395: checking "for ip_mreq struct in netinet/in.h"" >&5 13735 echo "configure:13736: checking "for ip_mreq struct in netinet/in.h"" >&5
12395 cat > conftest.$ac_ext <<EOF 13736 cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure" 13737 #line 13738 "configure"
12397 #include "confdefs.h" 13738 #include "confdefs.h"
12398 13739
12399 #include <sys/types.h> 13740 #include <sys/types.h>
12400 #include <netinet/in.h> 13741 #include <netinet/in.h>
12401 13742
12402 int main() { 13743 int main() {
12403 static struct ip_mreq x; 13744 static struct ip_mreq x;
12404 ; return 0; } 13745 ; return 0; }
12405 EOF 13746 EOF
12406 if { (eval echo configure:12407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13747 if { (eval echo configure:13748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12407 rm -rf conftest* 13748 rm -rf conftest*
12408 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 13749 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12409 Defining HAVE_MULTICAST 13750 Defining HAVE_MULTICAST
12410 EOF 13751 EOF
12411 cat >> confdefs.h <<\EOF 13752 cat >> confdefs.h <<\EOF
12432 echo "$ac_t""no" 1>&6 13773 echo "$ac_t""no" 1>&6
12433 fi 13774 fi
12434 13775
12435 13776
12436 echo $ac_n "checking for msgget""... $ac_c" 1>&6 13777 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12437 echo "configure:12438: checking for msgget" >&5 13778 echo "configure:13779: checking for msgget" >&5
12438 13779
12439 cat > conftest.$ac_ext <<EOF 13780 cat > conftest.$ac_ext <<EOF
12440 #line 12441 "configure" 13781 #line 13782 "configure"
12441 #include "confdefs.h" 13782 #include "confdefs.h"
12442 /* System header to define __stub macros and hopefully few prototypes, 13783 /* System header to define __stub macros and hopefully few prototypes,
12443 which can conflict with char msgget(); below. */ 13784 which can conflict with char msgget(); below. */
12444 #include <assert.h> 13785 #include <assert.h>
12445 /* Override any gcc2 internal prototype to avoid an error. */ 13786 /* Override any gcc2 internal prototype to avoid an error. */
12458 msgget(); 13799 msgget();
12459 #endif 13800 #endif
12460 13801
12461 ; return 0; } 13802 ; return 0; }
12462 EOF 13803 EOF
12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13804 if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12464 rm -rf conftest* 13805 rm -rf conftest*
12465 eval "ac_cv_func_msgget=yes" 13806 eval "ac_cv_func_msgget=yes"
12466 else 13807 else
12467 echo "configure: failed program was:" >&5 13808 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5 13809 cat conftest.$ac_ext >&5
12473 13814
12474 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 13815 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12475 echo "$ac_t""yes" 1>&6 13816 echo "$ac_t""yes" 1>&6
12476 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 13817 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12477 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 13818 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12478 echo "configure:12479: checking for sys/ipc.h" >&5 13819 echo "configure:13820: checking for sys/ipc.h" >&5
12479 13820
12480 cat > conftest.$ac_ext <<EOF 13821 cat > conftest.$ac_ext <<EOF
12481 #line 12482 "configure" 13822 #line 13823 "configure"
12482 #include "confdefs.h" 13823 #include "confdefs.h"
12483 #include <sys/ipc.h> 13824 #include <sys/ipc.h>
12484 EOF 13825 EOF
12485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12486 { (eval echo configure:12487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13827 { (eval echo configure:13828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12488 if test -z "$ac_err"; then 13829 if test -z "$ac_err"; then
12489 rm -rf conftest* 13830 rm -rf conftest*
12490 eval "ac_cv_header_$ac_safe=yes" 13831 eval "ac_cv_header_$ac_safe=yes"
12491 else 13832 else
12498 rm -f conftest* 13839 rm -f conftest*
12499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13840 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12500 echo "$ac_t""yes" 1>&6 13841 echo "$ac_t""yes" 1>&6
12501 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 13842 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12502 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 13843 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12503 echo "configure:12504: checking for sys/msg.h" >&5 13844 echo "configure:13845: checking for sys/msg.h" >&5
12504 13845
12505 cat > conftest.$ac_ext <<EOF 13846 cat > conftest.$ac_ext <<EOF
12506 #line 12507 "configure" 13847 #line 13848 "configure"
12507 #include "confdefs.h" 13848 #include "confdefs.h"
12508 #include <sys/msg.h> 13849 #include <sys/msg.h>
12509 EOF 13850 EOF
12510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12511 { (eval echo configure:12512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13852 { (eval echo configure:13853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12513 if test -z "$ac_err"; then 13854 if test -z "$ac_err"; then
12514 rm -rf conftest* 13855 rm -rf conftest*
12515 eval "ac_cv_header_$ac_safe=yes" 13856 eval "ac_cv_header_$ac_safe=yes"
12516 else 13857 else
12544 fi 13885 fi
12545 13886
12546 13887
12547 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 13888 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12548 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 13889 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12549 echo "configure:12550: checking for dirent.h" >&5 13890 echo "configure:13891: checking for dirent.h" >&5
12550 13891
12551 cat > conftest.$ac_ext <<EOF 13892 cat > conftest.$ac_ext <<EOF
12552 #line 12553 "configure" 13893 #line 13894 "configure"
12553 #include "confdefs.h" 13894 #include "confdefs.h"
12554 #include <dirent.h> 13895 #include <dirent.h>
12555 EOF 13896 EOF
12556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12557 { (eval echo configure:12558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13898 { (eval echo configure:13899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12558 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12559 if test -z "$ac_err"; then 13900 if test -z "$ac_err"; then
12560 rm -rf conftest* 13901 rm -rf conftest*
12561 eval "ac_cv_header_$ac_safe=yes" 13902 eval "ac_cv_header_$ac_safe=yes"
12562 else 13903 else
12579 13920
12580 else 13921 else
12581 echo "$ac_t""no" 1>&6 13922 echo "$ac_t""no" 1>&6
12582 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 13923 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12583 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 13924 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12584 echo "configure:12585: checking for sys/dir.h" >&5 13925 echo "configure:13926: checking for sys/dir.h" >&5
12585 13926
12586 cat > conftest.$ac_ext <<EOF 13927 cat > conftest.$ac_ext <<EOF
12587 #line 12588 "configure" 13928 #line 13929 "configure"
12588 #include "confdefs.h" 13929 #include "confdefs.h"
12589 #include <sys/dir.h> 13930 #include <sys/dir.h>
12590 EOF 13931 EOF
12591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12592 { (eval echo configure:12593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13933 { (eval echo configure:13934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12594 if test -z "$ac_err"; then 13935 if test -z "$ac_err"; then
12595 rm -rf conftest* 13936 rm -rf conftest*
12596 eval "ac_cv_header_$ac_safe=yes" 13937 eval "ac_cv_header_$ac_safe=yes"
12597 else 13938 else
12620 fi 13961 fi
12621 13962
12622 13963
12623 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 13964 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12624 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 13965 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12625 echo "configure:12626: checking for nlist.h" >&5 13966 echo "configure:13967: checking for nlist.h" >&5
12626 13967
12627 cat > conftest.$ac_ext <<EOF 13968 cat > conftest.$ac_ext <<EOF
12628 #line 12629 "configure" 13969 #line 13970 "configure"
12629 #include "confdefs.h" 13970 #include "confdefs.h"
12630 #include <nlist.h> 13971 #include <nlist.h>
12631 EOF 13972 EOF
12632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12633 { (eval echo configure:12634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13974 { (eval echo configure:13975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12635 if test -z "$ac_err"; then 13976 if test -z "$ac_err"; then
12636 rm -rf conftest* 13977 rm -rf conftest*
12637 eval "ac_cv_header_$ac_safe=yes" 13978 eval "ac_cv_header_$ac_safe=yes"
12638 else 13979 else
12658 fi 13999 fi
12659 14000
12660 14001
12661 14002
12662 echo "checking "for sound support"" 1>&6 14003 echo "checking "for sound support"" 1>&6
12663 echo "configure:12664: checking "for sound support"" >&5 14004 echo "configure:14005: checking "for sound support"" >&5
12664 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 14005 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
12665 14006
12666 if test "$with_native_sound" != "no"; then 14007 if test "$with_native_sound" != "no"; then
12667 if test -n "$native_sound_lib"; then 14008 if test -n "$native_sound_lib"; then
12668 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 14009 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
12669 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 14010 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
12670 echo "configure:12671: checking for multimedia/audio_device.h" >&5 14011 echo "configure:14012: checking for multimedia/audio_device.h" >&5
12671 14012
12672 cat > conftest.$ac_ext <<EOF 14013 cat > conftest.$ac_ext <<EOF
12673 #line 12674 "configure" 14014 #line 14015 "configure"
12674 #include "confdefs.h" 14015 #include "confdefs.h"
12675 #include <multimedia/audio_device.h> 14016 #include <multimedia/audio_device.h>
12676 EOF 14017 EOF
12677 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12678 { (eval echo configure:12679: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14019 { (eval echo configure:14020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12679 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12680 if test -z "$ac_err"; then 14021 if test -z "$ac_err"; then
12681 rm -rf conftest* 14022 rm -rf conftest*
12682 eval "ac_cv_header_$ac_safe=yes" 14023 eval "ac_cv_header_$ac_safe=yes"
12683 else 14024 else
12721 case "$canonical" in 14062 case "$canonical" in
12722 *-sgi-* ) 14063 *-sgi-* )
12723 if test -z "$native_sound_lib"; then 14064 if test -z "$native_sound_lib"; then
12724 14065
12725 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 14066 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
12726 echo "configure:12727: checking for ALopenport in -laudio" >&5 14067 echo "configure:14068: checking for ALopenport in -laudio" >&5
12727 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 14068 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
12728 14069
12729 xe_check_libs=" -laudio " 14070 xe_check_libs=" -laudio "
12730 cat > conftest.$ac_ext <<EOF 14071 cat > conftest.$ac_ext <<EOF
12731 #line 12732 "configure" 14072 #line 14073 "configure"
12732 #include "confdefs.h" 14073 #include "confdefs.h"
12733 /* Override any gcc2 internal prototype to avoid an error. */ 14074 /* Override any gcc2 internal prototype to avoid an error. */
12734 /* We use char because int might match the return type of a gcc2 14075 /* We use char because int might match the return type of a gcc2
12735 builtin and then its argument prototype would still apply. */ 14076 builtin and then its argument prototype would still apply. */
12736 char ALopenport(); 14077 char ALopenport();
12737 14078
12738 int main() { 14079 int main() {
12739 ALopenport() 14080 ALopenport()
12740 ; return 0; } 14081 ; return 0; }
12741 EOF 14082 EOF
12742 if { (eval echo configure:12743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14083 if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12743 rm -rf conftest* 14084 rm -rf conftest*
12744 eval "ac_cv_lib_$ac_lib_var=yes" 14085 eval "ac_cv_lib_$ac_lib_var=yes"
12745 else 14086 else
12746 echo "configure: failed program was:" >&5 14087 echo "configure: failed program was:" >&5
12747 cat conftest.$ac_ext >&5 14088 cat conftest.$ac_ext >&5
12768 fi ;; 14109 fi ;;
12769 hppa*-hp-hpux* ) 14110 hppa*-hp-hpux* )
12770 if test -z "$native_sound_lib"; then 14111 if test -z "$native_sound_lib"; then
12771 14112
12772 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 14113 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
12773 echo "configure:12774: checking for AOpenAudio in -lAlib" >&5 14114 echo "configure:14115: checking for AOpenAudio in -lAlib" >&5
12774 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 14115 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
12775 14116
12776 xe_check_libs=" -lAlib " 14117 xe_check_libs=" -lAlib "
12777 cat > conftest.$ac_ext <<EOF 14118 cat > conftest.$ac_ext <<EOF
12778 #line 12779 "configure" 14119 #line 14120 "configure"
12779 #include "confdefs.h" 14120 #include "confdefs.h"
12780 /* Override any gcc2 internal prototype to avoid an error. */ 14121 /* Override any gcc2 internal prototype to avoid an error. */
12781 /* We use char because int might match the return type of a gcc2 14122 /* We use char because int might match the return type of a gcc2
12782 builtin and then its argument prototype would still apply. */ 14123 builtin and then its argument prototype would still apply. */
12783 char AOpenAudio(); 14124 char AOpenAudio();
12784 14125
12785 int main() { 14126 int main() {
12786 AOpenAudio() 14127 AOpenAudio()
12787 ; return 0; } 14128 ; return 0; }
12788 EOF 14129 EOF
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14130 if { (eval echo configure:14131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12790 rm -rf conftest* 14131 rm -rf conftest*
12791 eval "ac_cv_lib_$ac_lib_var=yes" 14132 eval "ac_cv_lib_$ac_lib_var=yes"
12792 else 14133 else
12793 echo "configure: failed program was:" >&5 14134 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5 14135 cat conftest.$ac_ext >&5
12832 14173
12833 if test -z "$sound_found"; then 14174 if test -z "$sound_found"; then
12834 for dir in "machine" "sys" "linux"; do 14175 for dir in "machine" "sys" "linux"; do
12835 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 14176 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
12836 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 14177 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
12837 echo "configure:12838: checking for ${dir}/soundcard.h" >&5 14178 echo "configure:14179: checking for ${dir}/soundcard.h" >&5
12838 14179
12839 cat > conftest.$ac_ext <<EOF 14180 cat > conftest.$ac_ext <<EOF
12840 #line 12841 "configure" 14181 #line 14182 "configure"
12841 #include "confdefs.h" 14182 #include "confdefs.h"
12842 #include <${dir}/soundcard.h> 14183 #include <${dir}/soundcard.h>
12843 EOF 14184 EOF
12844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14185 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12845 { (eval echo configure:12846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14186 { (eval echo configure:14187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14187 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12847 if test -z "$ac_err"; then 14188 if test -z "$ac_err"; then
12848 rm -rf conftest* 14189 rm -rf conftest*
12849 eval "ac_cv_header_$ac_safe=yes" 14190 eval "ac_cv_header_$ac_safe=yes"
12850 else 14191 else
12894 fi 14235 fi
12895 14236
12896 if test "$with_nas_sound" != "no"; then 14237 if test "$with_nas_sound" != "no"; then
12897 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 14238 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
12898 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 14239 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
12899 echo "configure:12900: checking for audio/audiolib.h" >&5 14240 echo "configure:14241: checking for audio/audiolib.h" >&5
12900 14241
12901 cat > conftest.$ac_ext <<EOF 14242 cat > conftest.$ac_ext <<EOF
12902 #line 12903 "configure" 14243 #line 14244 "configure"
12903 #include "confdefs.h" 14244 #include "confdefs.h"
12904 #include <audio/audiolib.h> 14245 #include <audio/audiolib.h>
12905 EOF 14246 EOF
12906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12907 { (eval echo configure:12908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14248 { (eval echo configure:14249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12909 if test -z "$ac_err"; then 14250 if test -z "$ac_err"; then
12910 rm -rf conftest* 14251 rm -rf conftest*
12911 eval "ac_cv_header_$ac_safe=yes" 14252 eval "ac_cv_header_$ac_safe=yes"
12912 else 14253 else
12920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14261 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12921 echo "$ac_t""yes" 1>&6 14262 echo "$ac_t""yes" 1>&6
12922 14263
12923 14264
12924 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 14265 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
12925 echo "configure:12926: checking for AuOpenServer in -laudio" >&5 14266 echo "configure:14267: checking for AuOpenServer in -laudio" >&5
12926 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 14267 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
12927 14268
12928 xe_check_libs=" -laudio " 14269 xe_check_libs=" -laudio "
12929 cat > conftest.$ac_ext <<EOF 14270 cat > conftest.$ac_ext <<EOF
12930 #line 12931 "configure" 14271 #line 14272 "configure"
12931 #include "confdefs.h" 14272 #include "confdefs.h"
12932 /* Override any gcc2 internal prototype to avoid an error. */ 14273 /* Override any gcc2 internal prototype to avoid an error. */
12933 /* We use char because int might match the return type of a gcc2 14274 /* We use char because int might match the return type of a gcc2
12934 builtin and then its argument prototype would still apply. */ 14275 builtin and then its argument prototype would still apply. */
12935 char AuOpenServer(); 14276 char AuOpenServer();
12936 14277
12937 int main() { 14278 int main() {
12938 AuOpenServer() 14279 AuOpenServer()
12939 ; return 0; } 14280 ; return 0; }
12940 EOF 14281 EOF
12941 if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14282 if { (eval echo configure:14283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12942 rm -rf conftest* 14283 rm -rf conftest*
12943 eval "ac_cv_lib_$ac_lib_var=yes" 14284 eval "ac_cv_lib_$ac_lib_var=yes"
12944 else 14285 else
12945 echo "configure: failed program was:" >&5 14286 echo "configure: failed program was:" >&5
12946 cat conftest.$ac_ext >&5 14287 cat conftest.$ac_ext >&5
12975 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 14316 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
12976 echo " xemacs will be linked with \"nas.o\"" 14317 echo " xemacs will be linked with \"nas.o\""
12977 fi 14318 fi
12978 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 14319 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
12979 cat > conftest.$ac_ext <<EOF 14320 cat > conftest.$ac_ext <<EOF
12980 #line 12981 "configure" 14321 #line 14322 "configure"
12981 #include "confdefs.h" 14322 #include "confdefs.h"
12982 #include <audio/Xtutil.h> 14323 #include <audio/Xtutil.h>
12983 EOF 14324 EOF
12984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12985 egrep "AuXtErrorJump" >/dev/null 2>&1; then 14326 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13006 14347
13007 if test "$with_esd_sound" != "no"; then 14348 if test "$with_esd_sound" != "no"; then
13008 # Extract the first word of "esd-config", so it can be a program name with args. 14349 # Extract the first word of "esd-config", so it can be a program name with args.
13009 set dummy esd-config; ac_word=$2 14350 set dummy esd-config; ac_word=$2
13010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 14351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13011 echo "configure:13012: checking for $ac_word" >&5 14352 echo "configure:14353: checking for $ac_word" >&5
13012 14353
13013 if test -n "$have_esd_config"; then 14354 if test -n "$have_esd_config"; then
13014 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 14355 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13015 else 14356 else
13016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 14357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13035 if test "$have_esd_config" = "yes"; then 14376 if test "$have_esd_config" = "yes"; then
13036 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 14377 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13037 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi 14378 c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi
13038 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 14379 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13039 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 14380 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13040 echo "configure:13041: checking for esd_play_stream" >&5 14381 echo "configure:14382: checking for esd_play_stream" >&5
13041 14382
13042 cat > conftest.$ac_ext <<EOF 14383 cat > conftest.$ac_ext <<EOF
13043 #line 13044 "configure" 14384 #line 14385 "configure"
13044 #include "confdefs.h" 14385 #include "confdefs.h"
13045 /* System header to define __stub macros and hopefully few prototypes, 14386 /* System header to define __stub macros and hopefully few prototypes,
13046 which can conflict with char esd_play_stream(); below. */ 14387 which can conflict with char esd_play_stream(); below. */
13047 #include <assert.h> 14388 #include <assert.h>
13048 /* Override any gcc2 internal prototype to avoid an error. */ 14389 /* Override any gcc2 internal prototype to avoid an error. */
13061 esd_play_stream(); 14402 esd_play_stream();
13062 #endif 14403 #endif
13063 14404
13064 ; return 0; } 14405 ; return 0; }
13065 EOF 14406 EOF
13066 if { (eval echo configure:13067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13067 rm -rf conftest* 14408 rm -rf conftest*
13068 eval "ac_cv_func_esd_play_stream=yes" 14409 eval "ac_cv_func_esd_play_stream=yes"
13069 else 14410 else
13070 echo "configure: failed program was:" >&5 14411 echo "configure: failed program was:" >&5
13071 cat conftest.$ac_ext >&5 14412 cat conftest.$ac_ext >&5
13112 14453
13113 test -z "$with_tty" && with_tty=yes 14454 test -z "$with_tty" && with_tty=yes
13114 14455
13115 if test "$with_tty" = "yes" ; then 14456 if test "$with_tty" = "yes" ; then
13116 echo "checking for TTY-related features" 1>&6 14457 echo "checking for TTY-related features" 1>&6
13117 echo "configure:13118: checking for TTY-related features" >&5 14458 echo "configure:14459: checking for TTY-related features" >&5
13118 { test "$extra_verbose" = "yes" && cat << \EOF 14459 { test "$extra_verbose" = "yes" && cat << \EOF
13119 Defining HAVE_TTY 14460 Defining HAVE_TTY
13120 EOF 14461 EOF
13121 cat >> confdefs.h <<\EOF 14462 cat >> confdefs.h <<\EOF
13122 #define HAVE_TTY 1 14463 #define HAVE_TTY 1
13125 14466
13126 14467
13127 if test -z "$with_ncurses"; then 14468 if test -z "$with_ncurses"; then
13128 14469
13129 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 14470 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13130 echo "configure:13131: checking for tgetent in -lncurses" >&5 14471 echo "configure:14472: checking for tgetent in -lncurses" >&5
13131 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 14472 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13132 14473
13133 xe_check_libs=" -lncurses " 14474 xe_check_libs=" -lncurses "
13134 cat > conftest.$ac_ext <<EOF 14475 cat > conftest.$ac_ext <<EOF
13135 #line 13136 "configure" 14476 #line 14477 "configure"
13136 #include "confdefs.h" 14477 #include "confdefs.h"
13137 /* Override any gcc2 internal prototype to avoid an error. */ 14478 /* Override any gcc2 internal prototype to avoid an error. */
13138 /* We use char because int might match the return type of a gcc2 14479 /* We use char because int might match the return type of a gcc2
13139 builtin and then its argument prototype would still apply. */ 14480 builtin and then its argument prototype would still apply. */
13140 char tgetent(); 14481 char tgetent();
13141 14482
13142 int main() { 14483 int main() {
13143 tgetent() 14484 tgetent()
13144 ; return 0; } 14485 ; return 0; }
13145 EOF 14486 EOF
13146 if { (eval echo configure:13147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14487 if { (eval echo configure:14488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13147 rm -rf conftest* 14488 rm -rf conftest*
13148 eval "ac_cv_lib_$ac_lib_var=yes" 14489 eval "ac_cv_lib_$ac_lib_var=yes"
13149 else 14490 else
13150 echo "configure: failed program was:" >&5 14491 echo "configure: failed program was:" >&5
13151 cat conftest.$ac_ext >&5 14492 cat conftest.$ac_ext >&5
13174 EOF 14515 EOF
13175 } 14516 }
13176 14517
13177 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14518 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13178 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14519 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13179 echo "configure:13180: checking for ncurses/curses.h" >&5 14520 echo "configure:14521: checking for ncurses/curses.h" >&5
13180 14521
13181 cat > conftest.$ac_ext <<EOF 14522 cat > conftest.$ac_ext <<EOF
13182 #line 13183 "configure" 14523 #line 14524 "configure"
13183 #include "confdefs.h" 14524 #include "confdefs.h"
13184 #include <ncurses/curses.h> 14525 #include <ncurses/curses.h>
13185 EOF 14526 EOF
13186 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13187 { (eval echo configure:13188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14528 { (eval echo configure:14529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13188 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13189 if test -z "$ac_err"; then 14530 if test -z "$ac_err"; then
13190 rm -rf conftest* 14531 rm -rf conftest*
13191 eval "ac_cv_header_$ac_safe=yes" 14532 eval "ac_cv_header_$ac_safe=yes"
13192 else 14533 else
13204 echo "$ac_t""no" 1>&6 14545 echo "$ac_t""no" 1>&6
13205 fi 14546 fi
13206 14547
13207 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 14548 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13208 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 14549 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13209 echo "configure:13210: checking for ncurses/term.h" >&5 14550 echo "configure:14551: checking for ncurses/term.h" >&5
13210 14551
13211 cat > conftest.$ac_ext <<EOF 14552 cat > conftest.$ac_ext <<EOF
13212 #line 13213 "configure" 14553 #line 14554 "configure"
13213 #include "confdefs.h" 14554 #include "confdefs.h"
13214 #include <ncurses/term.h> 14555 #include <ncurses/term.h>
13215 EOF 14556 EOF
13216 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13217 { (eval echo configure:13218: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14558 { (eval echo configure:14559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13218 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13219 if test -z "$ac_err"; then 14560 if test -z "$ac_err"; then
13220 rm -rf conftest* 14561 rm -rf conftest*
13221 eval "ac_cv_header_$ac_safe=yes" 14562 eval "ac_cv_header_$ac_safe=yes"
13222 else 14563 else
13242 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 14583 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13243 save_c_switch_site="$c_switch_site" 14584 save_c_switch_site="$c_switch_site"
13244 c_switch_site="$c_switch_site -I/usr/include/ncurses" 14585 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13245 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 14586 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13246 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 14587 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13247 echo "configure:13248: checking for ncurses/curses.h" >&5 14588 echo "configure:14589: checking for ncurses/curses.h" >&5
13248 14589
13249 cat > conftest.$ac_ext <<EOF 14590 cat > conftest.$ac_ext <<EOF
13250 #line 13251 "configure" 14591 #line 14592 "configure"
13251 #include "confdefs.h" 14592 #include "confdefs.h"
13252 #include <ncurses/curses.h> 14593 #include <ncurses/curses.h>
13253 EOF 14594 EOF
13254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13255 { (eval echo configure:13256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14596 { (eval echo configure:14597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13257 if test -z "$ac_err"; then 14598 if test -z "$ac_err"; then
13258 rm -rf conftest* 14599 rm -rf conftest*
13259 eval "ac_cv_header_$ac_safe=yes" 14600 eval "ac_cv_header_$ac_safe=yes"
13260 else 14601 else
13285 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14626 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13286 else 14627 else
13287 for lib in curses termlib termcap; do 14628 for lib in curses termlib termcap; do
13288 14629
13289 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 14630 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13290 echo "configure:13291: checking for tgetent in -l$lib" >&5 14631 echo "configure:14632: checking for tgetent in -l$lib" >&5
13291 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 14632 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13292 14633
13293 xe_check_libs=" -l$lib " 14634 xe_check_libs=" -l$lib "
13294 cat > conftest.$ac_ext <<EOF 14635 cat > conftest.$ac_ext <<EOF
13295 #line 13296 "configure" 14636 #line 14637 "configure"
13296 #include "confdefs.h" 14637 #include "confdefs.h"
13297 /* Override any gcc2 internal prototype to avoid an error. */ 14638 /* Override any gcc2 internal prototype to avoid an error. */
13298 /* We use char because int might match the return type of a gcc2 14639 /* We use char because int might match the return type of a gcc2
13299 builtin and then its argument prototype would still apply. */ 14640 builtin and then its argument prototype would still apply. */
13300 char tgetent(); 14641 char tgetent();
13301 14642
13302 int main() { 14643 int main() {
13303 tgetent() 14644 tgetent()
13304 ; return 0; } 14645 ; return 0; }
13305 EOF 14646 EOF
13306 if { (eval echo configure:13307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14647 if { (eval echo configure:14648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13307 rm -rf conftest* 14648 rm -rf conftest*
13308 eval "ac_cv_lib_$ac_lib_var=yes" 14649 eval "ac_cv_lib_$ac_lib_var=yes"
13309 else 14650 else
13310 echo "configure: failed program was:" >&5 14651 echo "configure: failed program was:" >&5
13311 cat conftest.$ac_ext >&5 14652 cat conftest.$ac_ext >&5
13332 if test -n "$libs_termcap"; then 14673 if test -n "$libs_termcap"; then
13333 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 14674 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13334 else 14675 else
13335 14676
13336 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 14677 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13337 echo "configure:13338: checking for tgetent in -lcurses" >&5 14678 echo "configure:14679: checking for tgetent in -lcurses" >&5
13338 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 14679 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13339 14680
13340 xe_check_libs=" -lcurses " 14681 xe_check_libs=" -lcurses "
13341 cat > conftest.$ac_ext <<EOF 14682 cat > conftest.$ac_ext <<EOF
13342 #line 13343 "configure" 14683 #line 14684 "configure"
13343 #include "confdefs.h" 14684 #include "confdefs.h"
13344 /* Override any gcc2 internal prototype to avoid an error. */ 14685 /* Override any gcc2 internal prototype to avoid an error. */
13345 /* We use char because int might match the return type of a gcc2 14686 /* We use char because int might match the return type of a gcc2
13346 builtin and then its argument prototype would still apply. */ 14687 builtin and then its argument prototype would still apply. */
13347 char tgetent(); 14688 char tgetent();
13348 14689
13349 int main() { 14690 int main() {
13350 tgetent() 14691 tgetent()
13351 ; return 0; } 14692 ; return 0; }
13352 EOF 14693 EOF
13353 if { (eval echo configure:13354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14694 if { (eval echo configure:14695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13354 rm -rf conftest* 14695 rm -rf conftest*
13355 eval "ac_cv_lib_$ac_lib_var=yes" 14696 eval "ac_cv_lib_$ac_lib_var=yes"
13356 else 14697 else
13357 echo "configure: failed program was:" >&5 14698 echo "configure: failed program was:" >&5
13358 cat conftest.$ac_ext >&5 14699 cat conftest.$ac_ext >&5
13366 echo "$ac_t""yes" 1>&6 14707 echo "$ac_t""yes" 1>&6
13367 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 14708 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13368 else 14709 else
13369 echo "$ac_t""no" 1>&6 14710 echo "$ac_t""no" 1>&6
13370 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 14711 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13371 echo "configure:13372: checking for tgetent in -ltermcap" >&5 14712 echo "configure:14713: checking for tgetent in -ltermcap" >&5
13372 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 14713 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13373 14714
13374 xe_check_libs=" -ltermcap " 14715 xe_check_libs=" -ltermcap "
13375 cat > conftest.$ac_ext <<EOF 14716 cat > conftest.$ac_ext <<EOF
13376 #line 13377 "configure" 14717 #line 14718 "configure"
13377 #include "confdefs.h" 14718 #include "confdefs.h"
13378 /* Override any gcc2 internal prototype to avoid an error. */ 14719 /* Override any gcc2 internal prototype to avoid an error. */
13379 /* We use char because int might match the return type of a gcc2 14720 /* We use char because int might match the return type of a gcc2
13380 builtin and then its argument prototype would still apply. */ 14721 builtin and then its argument prototype would still apply. */
13381 char tgetent(); 14722 char tgetent();
13382 14723
13383 int main() { 14724 int main() {
13384 tgetent() 14725 tgetent()
13385 ; return 0; } 14726 ; return 0; }
13386 EOF 14727 EOF
13387 if { (eval echo configure:13388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14728 if { (eval echo configure:14729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13388 rm -rf conftest* 14729 rm -rf conftest*
13389 eval "ac_cv_lib_$ac_lib_var=yes" 14730 eval "ac_cv_lib_$ac_lib_var=yes"
13390 else 14731 else
13391 echo "configure: failed program was:" >&5 14732 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5 14733 cat conftest.$ac_ext >&5
13430 } 14771 }
13431 14772
13432 14773
13433 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 14774 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13434 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 14775 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13435 echo "configure:13436: checking for gpm.h" >&5 14776 echo "configure:14777: checking for gpm.h" >&5
13436 14777
13437 cat > conftest.$ac_ext <<EOF 14778 cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure" 14779 #line 14780 "configure"
13439 #include "confdefs.h" 14780 #include "confdefs.h"
13440 #include <gpm.h> 14781 #include <gpm.h>
13441 EOF 14782 EOF
13442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14783 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13443 { (eval echo configure:13444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14784 { (eval echo configure:14785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14785 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13445 if test -z "$ac_err"; then 14786 if test -z "$ac_err"; then
13446 rm -rf conftest* 14787 rm -rf conftest*
13447 eval "ac_cv_header_$ac_safe=yes" 14788 eval "ac_cv_header_$ac_safe=yes"
13448 else 14789 else
13461 with_gpm=no 14802 with_gpm=no
13462 fi 14803 fi
13463 } 14804 }
13464 test -z "$with_gpm" && { 14805 test -z "$with_gpm" && {
13465 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 14806 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13466 echo "configure:13467: checking for Gpm_Open in -lgpm" >&5 14807 echo "configure:14808: checking for Gpm_Open in -lgpm" >&5
13467 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 14808 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13468 14809
13469 xe_check_libs=" -lgpm " 14810 xe_check_libs=" -lgpm "
13470 cat > conftest.$ac_ext <<EOF 14811 cat > conftest.$ac_ext <<EOF
13471 #line 13472 "configure" 14812 #line 14813 "configure"
13472 #include "confdefs.h" 14813 #include "confdefs.h"
13473 /* Override any gcc2 internal prototype to avoid an error. */ 14814 /* Override any gcc2 internal prototype to avoid an error. */
13474 /* We use char because int might match the return type of a gcc2 14815 /* We use char because int might match the return type of a gcc2
13475 builtin and then its argument prototype would still apply. */ 14816 builtin and then its argument prototype would still apply. */
13476 char Gpm_Open(); 14817 char Gpm_Open();
13477 14818
13478 int main() { 14819 int main() {
13479 Gpm_Open() 14820 Gpm_Open()
13480 ; return 0; } 14821 ; return 0; }
13481 EOF 14822 EOF
13482 if { (eval echo configure:13483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14823 if { (eval echo configure:14824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13483 rm -rf conftest* 14824 rm -rf conftest*
13484 eval "ac_cv_lib_$ac_lib_var=yes" 14825 eval "ac_cv_lib_$ac_lib_var=yes"
13485 else 14826 else
13486 echo "configure: failed program was:" >&5 14827 echo "configure: failed program was:" >&5
13487 cat conftest.$ac_ext >&5 14828 cat conftest.$ac_ext >&5
13520 done 14861 done
13521 fi 14862 fi
13522 14863
13523 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 14864 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13524 != "no no no" && echo "checking for database support" 1>&6 14865 != "no no no" && echo "checking for database support" 1>&6
13525 echo "configure:13526: checking for database support" >&5 14866 echo "configure:14867: checking for database support" >&5
13526 14867
13527 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 14868 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13528 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 14869 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13529 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 14870 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13530 echo "configure:13531: checking for ndbm.h" >&5 14871 echo "configure:14872: checking for ndbm.h" >&5
13531 14872
13532 cat > conftest.$ac_ext <<EOF 14873 cat > conftest.$ac_ext <<EOF
13533 #line 13534 "configure" 14874 #line 14875 "configure"
13534 #include "confdefs.h" 14875 #include "confdefs.h"
13535 #include <ndbm.h> 14876 #include <ndbm.h>
13536 EOF 14877 EOF
13537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13538 { (eval echo configure:13539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14879 { (eval echo configure:14880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13540 if test -z "$ac_err"; then 14881 if test -z "$ac_err"; then
13541 rm -rf conftest* 14882 rm -rf conftest*
13542 eval "ac_cv_header_$ac_safe=yes" 14883 eval "ac_cv_header_$ac_safe=yes"
13543 else 14884 else
13563 fi 14904 fi
13564 14905
13565 if test "$with_database_gdbm" != "no"; then 14906 if test "$with_database_gdbm" != "no"; then
13566 14907
13567 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 14908 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13568 echo "configure:13569: checking for dbm_open in -lgdbm" >&5 14909 echo "configure:14910: checking for dbm_open in -lgdbm" >&5
13569 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 14910 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13570 14911
13571 xe_check_libs=" -lgdbm " 14912 xe_check_libs=" -lgdbm "
13572 cat > conftest.$ac_ext <<EOF 14913 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure" 14914 #line 14915 "configure"
13574 #include "confdefs.h" 14915 #include "confdefs.h"
13575 /* Override any gcc2 internal prototype to avoid an error. */ 14916 /* Override any gcc2 internal prototype to avoid an error. */
13576 /* We use char because int might match the return type of a gcc2 14917 /* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */ 14918 builtin and then its argument prototype would still apply. */
13578 char dbm_open(); 14919 char dbm_open();
13579 14920
13580 int main() { 14921 int main() {
13581 dbm_open() 14922 dbm_open()
13582 ; return 0; } 14923 ; return 0; }
13583 EOF 14924 EOF
13584 if { (eval echo configure:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14925 if { (eval echo configure:14926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13585 rm -rf conftest* 14926 rm -rf conftest*
13586 eval "ac_cv_lib_$ac_lib_var=yes" 14927 eval "ac_cv_lib_$ac_lib_var=yes"
13587 else 14928 else
13588 echo "configure: failed program was:" >&5 14929 echo "configure: failed program was:" >&5
13589 cat conftest.$ac_ext >&5 14930 cat conftest.$ac_ext >&5
13607 14948
13608 fi 14949 fi
13609 14950
13610 if test "$with_database_dbm" != "no"; then 14951 if test "$with_database_dbm" != "no"; then
13611 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 14952 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13612 echo "configure:13613: checking for dbm_open" >&5 14953 echo "configure:14954: checking for dbm_open" >&5
13613 14954
13614 cat > conftest.$ac_ext <<EOF 14955 cat > conftest.$ac_ext <<EOF
13615 #line 13616 "configure" 14956 #line 14957 "configure"
13616 #include "confdefs.h" 14957 #include "confdefs.h"
13617 /* System header to define __stub macros and hopefully few prototypes, 14958 /* System header to define __stub macros and hopefully few prototypes,
13618 which can conflict with char dbm_open(); below. */ 14959 which can conflict with char dbm_open(); below. */
13619 #include <assert.h> 14960 #include <assert.h>
13620 /* Override any gcc2 internal prototype to avoid an error. */ 14961 /* Override any gcc2 internal prototype to avoid an error. */
13633 dbm_open(); 14974 dbm_open();
13634 #endif 14975 #endif
13635 14976
13636 ; return 0; } 14977 ; return 0; }
13637 EOF 14978 EOF
13638 if { (eval echo configure:13639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13639 rm -rf conftest* 14980 rm -rf conftest*
13640 eval "ac_cv_func_dbm_open=yes" 14981 eval "ac_cv_func_dbm_open=yes"
13641 else 14982 else
13642 echo "configure: failed program was:" >&5 14983 echo "configure: failed program was:" >&5
13643 cat conftest.$ac_ext >&5 14984 cat conftest.$ac_ext >&5
13652 else 14993 else
13653 echo "$ac_t""no" 1>&6 14994 echo "$ac_t""no" 1>&6
13654 14995
13655 14996
13656 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 14997 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13657 echo "configure:13658: checking for dbm_open in -ldbm" >&5 14998 echo "configure:14999: checking for dbm_open in -ldbm" >&5
13658 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 14999 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
13659 15000
13660 xe_check_libs=" -ldbm " 15001 xe_check_libs=" -ldbm "
13661 cat > conftest.$ac_ext <<EOF 15002 cat > conftest.$ac_ext <<EOF
13662 #line 13663 "configure" 15003 #line 15004 "configure"
13663 #include "confdefs.h" 15004 #include "confdefs.h"
13664 /* Override any gcc2 internal prototype to avoid an error. */ 15005 /* Override any gcc2 internal prototype to avoid an error. */
13665 /* We use char because int might match the return type of a gcc2 15006 /* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */ 15007 builtin and then its argument prototype would still apply. */
13667 char dbm_open(); 15008 char dbm_open();
13668 15009
13669 int main() { 15010 int main() {
13670 dbm_open() 15011 dbm_open()
13671 ; return 0; } 15012 ; return 0; }
13672 EOF 15013 EOF
13673 if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15014 if { (eval echo configure:15015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13674 rm -rf conftest* 15015 rm -rf conftest*
13675 eval "ac_cv_lib_$ac_lib_var=yes" 15016 eval "ac_cv_lib_$ac_lib_var=yes"
13676 else 15017 else
13677 echo "configure: failed program was:" >&5 15018 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5 15019 cat conftest.$ac_ext >&5
13709 } 15050 }
13710 15051
13711 15052
13712 if test "$with_database_berkdb" != "no"; then 15053 if test "$with_database_berkdb" != "no"; then
13713 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 15054 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
13714 echo "configure:13715: checking for Berkeley db.h" >&5 15055 echo "configure:15056: checking for Berkeley db.h" >&5
13715 for header in "db/db.h" "db.h"; do 15056 for header in "db/db.h" "db.h"; do
13716 cat > conftest.$ac_ext <<EOF 15057 cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure" 15058 #line 15059 "configure"
13718 #include "confdefs.h" 15059 #include "confdefs.h"
13719 15060
13720 #include <stdlib.h> 15061 #include <stdlib.h>
13721 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 15062 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
13722 #ifdef HAVE_INTTYPES_H 15063 #ifdef HAVE_INTTYPES_H
13734 15075
13735 int main() { 15076 int main() {
13736 15077
13737 ; return 0; } 15078 ; return 0; }
13738 EOF 15079 EOF
13739 if { (eval echo configure:13740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 15080 if { (eval echo configure:15081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13740 rm -rf conftest* 15081 rm -rf conftest*
13741 db_h_file="$header"; break 15082 db_h_file="$header"; break
13742 else 15083 else
13743 echo "configure: failed program was:" >&5 15084 echo "configure: failed program was:" >&5
13744 cat conftest.$ac_ext >&5 15085 cat conftest.$ac_ext >&5
13750 else echo "$ac_t""$db_h_file" 1>&6 15091 else echo "$ac_t""$db_h_file" 1>&6
13751 fi 15092 fi
13752 15093
13753 if test "$with_database_berkdb" != "no"; then 15094 if test "$with_database_berkdb" != "no"; then
13754 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 15095 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
13755 echo "configure:13756: checking for Berkeley DB version" >&5 15096 echo "configure:15097: checking for Berkeley DB version" >&5
13756 cat > conftest.$ac_ext <<EOF 15097 cat > conftest.$ac_ext <<EOF
13757 #line 13758 "configure" 15098 #line 15099 "configure"
13758 #include "confdefs.h" 15099 #include "confdefs.h"
13759 #include <$db_h_file> 15100 #include <$db_h_file>
13760 #if DB_VERSION_MAJOR > 1 15101 #if DB_VERSION_MAJOR > 1
13761 yes 15102 yes
13762 #endif 15103 #endif
13764 EOF 15105 EOF
13765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13766 egrep "yes" >/dev/null 2>&1; then 15107 egrep "yes" >/dev/null 2>&1; then
13767 rm -rf conftest* 15108 rm -rf conftest*
13768 cat > conftest.$ac_ext <<EOF 15109 cat > conftest.$ac_ext <<EOF
13769 #line 13770 "configure" 15110 #line 15111 "configure"
13770 #include "confdefs.h" 15111 #include "confdefs.h"
13771 #include <$db_h_file> 15112 #include <$db_h_file>
13772 #if DB_VERSION_MAJOR > 2 15113 #if DB_VERSION_MAJOR > 2
13773 yes 15114 yes
13774 #endif 15115 #endif
13776 EOF 15117 EOF
13777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13778 egrep "yes" >/dev/null 2>&1; then 15119 egrep "yes" >/dev/null 2>&1; then
13779 rm -rf conftest* 15120 rm -rf conftest*
13780 cat > conftest.$ac_ext <<EOF 15121 cat > conftest.$ac_ext <<EOF
13781 #line 13782 "configure" 15122 #line 15123 "configure"
13782 #include "confdefs.h" 15123 #include "confdefs.h"
13783 #include <$db_h_file> 15124 #include <$db_h_file>
13784 #if DB_VERSION_MAJOR > 3 15125 #if DB_VERSION_MAJOR > 3
13785 yes 15126 yes
13786 #endif 15127 #endif
13810 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1 15151 echo "$ac_t""1" 1>&6; dbfunc=dbopen; dbver=1
13811 fi 15152 fi
13812 rm -f conftest* 15153 rm -f conftest*
13813 15154
13814 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 15155 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
13815 echo "configure:13816: checking for $dbfunc" >&5 15156 echo "configure:15157: checking for $dbfunc" >&5
13816 15157
13817 cat > conftest.$ac_ext <<EOF 15158 cat > conftest.$ac_ext <<EOF
13818 #line 13819 "configure" 15159 #line 15160 "configure"
13819 #include "confdefs.h" 15160 #include "confdefs.h"
13820 /* System header to define __stub macros and hopefully few prototypes, 15161 /* System header to define __stub macros and hopefully few prototypes,
13821 which can conflict with char $dbfunc(); below. */ 15162 which can conflict with char $dbfunc(); below. */
13822 #include <assert.h> 15163 #include <assert.h>
13823 /* Override any gcc2 internal prototype to avoid an error. */ 15164 /* Override any gcc2 internal prototype to avoid an error. */
13836 $dbfunc(); 15177 $dbfunc();
13837 #endif 15178 #endif
13838 15179
13839 ; return 0; } 15180 ; return 0; }
13840 EOF 15181 EOF
13841 if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15182 if { (eval echo configure:15183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13842 rm -rf conftest* 15183 rm -rf conftest*
13843 eval "ac_cv_func_$dbfunc=yes" 15184 eval "ac_cv_func_$dbfunc=yes"
13844 else 15185 else
13845 echo "configure: failed program was:" >&5 15186 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5 15187 cat conftest.$ac_ext >&5
13855 else 15196 else
13856 echo "$ac_t""no" 1>&6 15197 echo "$ac_t""no" 1>&6
13857 15198
13858 15199
13859 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 15200 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13860 echo "configure:13861: checking for $dbfunc in -ldb" >&5 15201 echo "configure:15202: checking for $dbfunc in -ldb" >&5
13861 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 15202 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13862 15203
13863 xe_check_libs=" -ldb " 15204 xe_check_libs=" -ldb "
13864 cat > conftest.$ac_ext <<EOF 15205 cat > conftest.$ac_ext <<EOF
13865 #line 13866 "configure" 15206 #line 15207 "configure"
13866 #include "confdefs.h" 15207 #include "confdefs.h"
13867 /* Override any gcc2 internal prototype to avoid an error. */ 15208 /* Override any gcc2 internal prototype to avoid an error. */
13868 /* We use char because int might match the return type of a gcc2 15209 /* We use char because int might match the return type of a gcc2
13869 builtin and then its argument prototype would still apply. */ 15210 builtin and then its argument prototype would still apply. */
13870 char $dbfunc(); 15211 char $dbfunc();
13871 15212
13872 int main() { 15213 int main() {
13873 $dbfunc() 15214 $dbfunc()
13874 ; return 0; } 15215 ; return 0; }
13875 EOF 15216 EOF
13876 if { (eval echo configure:13877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15217 if { (eval echo configure:15218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13877 rm -rf conftest* 15218 rm -rf conftest*
13878 eval "ac_cv_lib_$ac_lib_var=yes" 15219 eval "ac_cv_lib_$ac_lib_var=yes"
13879 else 15220 else
13880 echo "configure: failed program was:" >&5 15221 echo "configure: failed program was:" >&5
13881 cat conftest.$ac_ext >&5 15222 cat conftest.$ac_ext >&5
13905 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"` 15246 | sed -n -e "s/[ ]*=[ \"]*/='/" -e "s/[ \"]*\$/'/" -e "s/^configure___//p"`
13906 rm -f $tempcname 15247 rm -f $tempcname
13907 echo "configure: warning: "db_create is really $dbfunc"" 1>&2 15248 echo "configure: warning: "db_create is really $dbfunc"" 1>&2
13908 15249
13909 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 15250 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
13910 echo "configure:13911: checking for $dbfunc in -ldb" >&5 15251 echo "configure:15252: checking for $dbfunc in -ldb" >&5
13911 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 15252 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
13912 15253
13913 xe_check_libs=" -ldb " 15254 xe_check_libs=" -ldb "
13914 cat > conftest.$ac_ext <<EOF 15255 cat > conftest.$ac_ext <<EOF
13915 #line 13916 "configure" 15256 #line 15257 "configure"
13916 #include "confdefs.h" 15257 #include "confdefs.h"
13917 /* Override any gcc2 internal prototype to avoid an error. */ 15258 /* Override any gcc2 internal prototype to avoid an error. */
13918 /* We use char because int might match the return type of a gcc2 15259 /* We use char because int might match the return type of a gcc2
13919 builtin and then its argument prototype would still apply. */ 15260 builtin and then its argument prototype would still apply. */
13920 char $dbfunc(); 15261 char $dbfunc();
13921 15262
13922 int main() { 15263 int main() {
13923 $dbfunc() 15264 $dbfunc()
13924 ; return 0; } 15265 ; return 0; }
13925 EOF 15266 EOF
13926 if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15267 if { (eval echo configure:15268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13927 rm -rf conftest* 15268 rm -rf conftest*
13928 eval "ac_cv_lib_$ac_lib_var=yes" 15269 eval "ac_cv_lib_$ac_lib_var=yes"
13929 else 15270 else
13930 echo "configure: failed program was:" >&5 15271 echo "configure: failed program was:" >&5
13931 cat conftest.$ac_ext >&5 15272 cat conftest.$ac_ext >&5
13980 fi 15321 fi
13981 15322
13982 if test "$with_socks" = "yes"; then 15323 if test "$with_socks" = "yes"; then
13983 15324
13984 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 15325 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
13985 echo "configure:13986: checking for SOCKSinit in -lsocks" >&5 15326 echo "configure:15327: checking for SOCKSinit in -lsocks" >&5
13986 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 15327 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
13987 15328
13988 xe_check_libs=" -lsocks " 15329 xe_check_libs=" -lsocks "
13989 cat > conftest.$ac_ext <<EOF 15330 cat > conftest.$ac_ext <<EOF
13990 #line 13991 "configure" 15331 #line 15332 "configure"
13991 #include "confdefs.h" 15332 #include "confdefs.h"
13992 /* Override any gcc2 internal prototype to avoid an error. */ 15333 /* Override any gcc2 internal prototype to avoid an error. */
13993 /* We use char because int might match the return type of a gcc2 15334 /* We use char because int might match the return type of a gcc2
13994 builtin and then its argument prototype would still apply. */ 15335 builtin and then its argument prototype would still apply. */
13995 char SOCKSinit(); 15336 char SOCKSinit();
13996 15337
13997 int main() { 15338 int main() {
13998 SOCKSinit() 15339 SOCKSinit()
13999 ; return 0; } 15340 ; return 0; }
14000 EOF 15341 EOF
14001 if { (eval echo configure:14002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14002 rm -rf conftest* 15343 rm -rf conftest*
14003 eval "ac_cv_lib_$ac_lib_var=yes" 15344 eval "ac_cv_lib_$ac_lib_var=yes"
14004 else 15345 else
14005 echo "configure: failed program was:" >&5 15346 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5 15347 cat conftest.$ac_ext >&5
14050 15391
14051 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 15392 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14052 fi 15393 fi
14053 15394
14054 cat > conftest.$ac_ext <<EOF 15395 cat > conftest.$ac_ext <<EOF
14055 #line 14056 "configure" 15396 #line 15397 "configure"
14056 #include "confdefs.h" 15397 #include "confdefs.h"
14057 int main(int c,char *v[]){return 0;} 15398 int main(int c,char *v[]){return 0;}
14058 EOF 15399 EOF
14059 if { (eval echo configure:14060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 15400 if { (eval echo configure:15401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
14060 then 15401 then
14061 : 15402 :
14062 else 15403 else
14063 conftest_rc="$?" 15404 conftest_rc="$?"
14064 echo "configure: failed program was:" >&5 15405 echo "configure: failed program was:" >&5
14160 for W in $ld_libs_window_system $ld_libs_general $ld_libs_module; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done 15501 for W in $ld_libs_window_system $ld_libs_general $ld_libs_module; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done
14161 ld_libs_all="$T" 15502 ld_libs_all="$T"
14162 15503
14163 15504
14164 15505
14165
14166 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi 15506 MAKE_SUBDIR="$MAKE_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$MAKE_SUBDIR"; fi
14167
14168 if test "$with_modules" != "no"; then
14169 echo "checking for module support" 1>&6
14170 echo "configure:14171: checking for module support" >&5
14171
14172 if test "$with_msw" = "yes"; then
14173 have_dl=yes;
14174 else
14175 case "$opsys" in
14176 darwin ) have_dl=yes; { test "$extra_verbose" = "yes" && cat << \EOF
14177 Defining HAVE_DYLD
14178 EOF
14179 cat >> confdefs.h <<\EOF
14180 #define HAVE_DYLD 1
14181 EOF
14182 }
14183 ;;
14184 * )
14185 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14186 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14187 echo "configure:14188: checking for dlfcn.h" >&5
14188
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 #include <dlfcn.h>
14193 EOF
14194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14195 { (eval echo configure:14196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14197 if test -z "$ac_err"; then
14198 rm -rf conftest*
14199 eval "ac_cv_header_$ac_safe=yes"
14200 else
14201 echo "$ac_err" >&5
14202 echo "configure: failed program was:" >&5
14203 cat conftest.$ac_ext >&5
14204 rm -rf conftest*
14205 eval "ac_cv_header_$ac_safe=no"
14206 fi
14207 rm -f conftest*
14208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14209 echo "$ac_t""yes" 1>&6
14210
14211 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14212 echo "configure:14213: checking for dlopen in -lc" >&5
14213 cat > conftest.$ac_ext <<EOF
14214 #line 14215 "configure"
14215 #include "confdefs.h"
14216 #include <dlfcn.h>
14217 int main() {
14218 dlopen ("", 0);
14219 ; return 0; }
14220 EOF
14221 if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14222 rm -rf conftest*
14223 have_dl=yes
14224 else
14225 echo "configure: failed program was:" >&5
14226 cat conftest.$ac_ext >&5
14227 rm -rf conftest*
14228
14229 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14230 echo "configure:14231: checking for dlopen in -ldl" >&5
14231 ac_save_LIBS="$LIBS"
14232 LIBS="-ldl $LIBS"
14233 cat > conftest.$ac_ext <<EOF
14234 #line 14235 "configure"
14235 #include "confdefs.h"
14236 #include <dlfcn.h>
14237 int main() {
14238 dlopen ("", 0);
14239 ; return 0; }
14240 EOF
14241 if { (eval echo configure:14242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14242 rm -rf conftest*
14243 have_dl=yes
14244 else
14245 echo "configure: failed program was:" >&5
14246 cat conftest.$ac_ext >&5
14247 rm -rf conftest*
14248 LIBS="$ac_save_LIBS"
14249 fi
14250 rm -f conftest*
14251 ac_save_LIBS=
14252 fi
14253 rm -f conftest*
14254 else
14255 echo "$ac_t""no" 1>&6
14256 fi
14257
14258 if test -n "$have_dl"; then
14259 { test "$extra_verbose" = "yes" && cat << \EOF
14260 Defining HAVE_DLOPEN
14261 EOF
14262 cat >> confdefs.h <<\EOF
14263 #define HAVE_DLOPEN 1
14264 EOF
14265 }
14266
14267 else
14268
14269 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14270 echo "configure:14271: checking for shl_load in -ldld" >&5
14271 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14272
14273 xe_check_libs=" -ldld "
14274 cat > conftest.$ac_ext <<EOF
14275 #line 14276 "configure"
14276 #include "confdefs.h"
14277 /* Override any gcc2 internal prototype to avoid an error. */
14278 /* We use char because int might match the return type of a gcc2
14279 builtin and then its argument prototype would still apply. */
14280 char shl_load();
14281
14282 int main() {
14283 shl_load()
14284 ; return 0; }
14285 EOF
14286 if { (eval echo configure:14287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14287 rm -rf conftest*
14288 eval "ac_cv_lib_$ac_lib_var=yes"
14289 else
14290 echo "configure: failed program was:" >&5
14291 cat conftest.$ac_ext >&5
14292 rm -rf conftest*
14293 eval "ac_cv_lib_$ac_lib_var=no"
14294 fi
14295 rm -f conftest*
14296 xe_check_libs=""
14297
14298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14299 echo "$ac_t""yes" 1>&6
14300 libdl=dld have_dl=yes;
14301 { test "$extra_verbose" = "yes" && cat << \EOF
14302 Defining HAVE_SHL_LOAD
14303 EOF
14304 cat >> confdefs.h <<\EOF
14305 #define HAVE_SHL_LOAD 1
14306 EOF
14307 }
14308
14309 else
14310 echo "$ac_t""no" 1>&6
14311
14312 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14313 echo "configure:14314: checking for dld_init in -ldld" >&5
14314 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14315
14316 xe_check_libs=" -ldld "
14317 cat > conftest.$ac_ext <<EOF
14318 #line 14319 "configure"
14319 #include "confdefs.h"
14320 /* Override any gcc2 internal prototype to avoid an error. */
14321 /* We use char because int might match the return type of a gcc2
14322 builtin and then its argument prototype would still apply. */
14323 char dld_init();
14324
14325 int main() {
14326 dld_init()
14327 ; return 0; }
14328 EOF
14329 if { (eval echo configure:14330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14330 rm -rf conftest*
14331 eval "ac_cv_lib_$ac_lib_var=yes"
14332 else
14333 echo "configure: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14335 rm -rf conftest*
14336 eval "ac_cv_lib_$ac_lib_var=no"
14337 fi
14338 rm -f conftest*
14339 xe_check_libs=""
14340
14341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
14342 echo "$ac_t""yes" 1>&6
14343 libdl=dld have_dl=yes;
14344 { test "$extra_verbose" = "yes" && cat << \EOF
14345 Defining HAVE_DLD_INIT
14346 EOF
14347 cat >> confdefs.h <<\EOF
14348 #define HAVE_DLD_INIT 1
14349 EOF
14350 }
14351
14352 else
14353 echo "$ac_t""no" 1>&6
14354 fi
14355
14356
14357 fi
14358
14359
14360 fi
14361 esac fi
14362 if test -n "$have_dl"; then
14363
14364 dll_ld=
14365 dll_ldflags=
14366 dll_cflags=
14367 dll_post=
14368 dll_ldo="-o"
14369 ld_dynamic_link_flags=
14370 xehost=$canonical
14371 xealias=$internal_configuration
14372
14373 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14374 echo "configure:14375: checking how to build dynamic libraries for ${xehost}" >&5
14375 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14376 case "$xehost" in
14377 *-*-linux-gnu*) ;;
14378 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14379 esac
14380
14381 xehost_cpu=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14382 xehost_vendor=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14383 xehost_os=`echo $xehost | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14384
14385 case "$xehost_os" in
14386 aix3*)
14387 # AIX sometimes has problems with the GCC collect2 program. For some
14388 # reason, if we set the COLLECT_NAMES environment variable, the problems
14389 # vanish in a puff of smoke.
14390 if test "${COLLECT_NAMES+set}" != set; then
14391 COLLECT_NAMES=
14392 export COLLECT_NAMES
14393 fi
14394 ;;
14395 esac
14396
14397 # Now see if the compiler is really GCC.
14398 if test "$GCC" = "yes"; then
14399 XEGCC=yes
14400 else
14401 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14402 echo "configure:14403: checking checking whether we are using GNU C" >&5
14403 cat > conftest.$ac_ext <<EOF
14404 #line 14405 "configure"
14405 #include "confdefs.h"
14406
14407 #ifdef __GNUC__
14408 yes;
14409 #endif
14410
14411 EOF
14412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14413 egrep "yes" >/dev/null 2>&1; then
14414 rm -rf conftest*
14415 XEGCC=yes
14416 else
14417 rm -rf conftest*
14418 XEGCC=no
14419 fi
14420 rm -f conftest*
14421
14422 echo "$ac_t""${XEGCC}" 1>&6
14423 fi
14424
14425 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14426 echo "configure:14427: checking how to produce PIC code" >&5
14427 wl=
14428
14429 can_build_shared=yes
14430 cygwin_warn=
14431 if test "$XEGCC" = yes; then
14432 wl='-Wl,'
14433
14434 case "$xehost_os" in
14435 aix[3-9]* | irix[5-9]* | osf[3-9])
14436 # PIC is the default for these OSes.
14437 ;;
14438
14439 *darwin*) dll_cflags='-dynamic'
14440 ;;
14441
14442 os2*)
14443 # We can build DLLs from non-PIC.
14444 ;;
14445 amigaos*)
14446 # FIXME: we need at least 68020 code to build shared libraries, but
14447 # adding the `-m68020' flag to GCC prevents building anything better,
14448 # like `-m68040'.
14449 dll_cflags='-m68020 -resident32 -malways-restore-a4'
14450 ;;
14451 *cygwin* | *mingw* )
14452 # PIC is the default
14453 cygwin_warn=yes
14454 # #### Need some trickery involving import libraries that we don't
14455 # currently support.
14456 can_build_shared=no
14457 ;;
14458 *)
14459 dll_cflags='-fPIC'
14460 ;;
14461 esac
14462 else
14463 # PORTME Check for PIC flags for the system compiler.
14464 case "$xehost_os" in
14465 hpux9* | hpux1[0-9]*)
14466 # Is there a better link_static_flag that works with the bundled CC?
14467 wl='-Wl,'
14468 dll_cflags='+Z'
14469 ;;
14470
14471 irix[5-9]*)
14472 wl='-Wl,'
14473 # PIC (with -KPIC) is the default.
14474 ;;
14475
14476 os2*)
14477 # We can build DLLs from non-PIC.
14478 ;;
14479
14480 osf[3-9]*)
14481 # All OSF/1 code is PIC.
14482 wl='-Wl,'
14483 ;;
14484
14485 aix[3-9]*)
14486 # All AIX code is PIC.
14487 wl='-Wl,'
14488 ;;
14489
14490 sco3.2v5*)
14491 dll_cflags='-belf -Kpic'
14492 wl='-Wl,'
14493 ;;
14494
14495 unixware*)
14496 dll_cflags="-KPIC"
14497 wl="-Wl,"
14498 ;;
14499
14500 sysv4*)
14501 dll_cflags="-KPIC"
14502 wl="-Wl,"
14503 ;;
14504
14505 sysv5*)
14506 dll_cflags="-KPIC"
14507 wl="-Wl,"
14508 ;;
14509
14510 solaris2*)
14511 dll_cflags='-KPIC'
14512 wl='-Wl,'
14513 ;;
14514
14515 sunos4*)
14516 dll_cflags='-PIC'
14517 wl='-Qoption ld '
14518 ;;
14519
14520 uts4*)
14521 dll_cflags='-pic'
14522 ;;
14523
14524 *)
14525 can_build_shared=no
14526 ;;
14527 esac
14528 fi
14529
14530 if test -n "$dll_cflags"; then
14531 echo "$ac_t""${dll_cflags}" 1>&6
14532
14533 # Check to make sure the dll_cflags actually works.
14534 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14535 echo "configure:14536: checking if PIC flag ${dll_cflags} really works" >&5
14536 save_CFLAGS="$CFLAGS"
14537 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14538 cat > conftest.$ac_ext <<EOF
14539 #line 14540 "configure"
14540 #include "confdefs.h"
14541
14542 int main() {
14543 int x=0;
14544 ; return 0; }
14545 EOF
14546 if { (eval echo configure:14547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14547 rm -rf conftest*
14548
14549 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14550 # reports no error. So, we need to grep stderr for (Bundled).
14551 if grep '(Bundled)' config.log >/dev/null; then
14552 echo "$ac_t""no" 1>&6
14553 can_build_shared=no
14554 dll_cflags=
14555 else
14556 echo "$ac_t""yes" 1>&6
14557 fi
14558 else
14559 echo "configure: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14561 rm -rf conftest*
14562 echo "$ac_t""no" 1>&6
14563 can_build_shared=no
14564 dll_cflags=
14565 fi
14566 rm -f conftest*
14567 CFLAGS="$save_CFLAGS"
14568 else
14569 echo "$ac_t""none" 1>&6
14570 fi
14571
14572 if test -n "$cygwin_warn"; then
14573 echo "configure: warning: Cannot currently build modules under Cygwin." 1>&2
14574 fi
14575
14576 if test "$can_build_shared" = "yes"; then
14577 cc_produces_so=no
14578 xldf=
14579 xcldf=
14580 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14581 echo "configure:14582: checking if C compiler can produce shared libraries" >&5
14582 if test "$XEGCC" = yes; then
14583 case "$xehost_os" in
14584 *darwin*)
14585 xcldf='-bundle'
14586 xldf='-bundle -bundle_loader ../../src/xemacs'
14587 ;;
14588 * )
14589 xcldf="-shared"
14590 xldf="-shared"
14591 ;;
14592 esac
14593 else # Not using GCC
14594 case "$xehost_os" in
14595 aix[3-9]*)
14596 xldf="-bE:ELLSONAME.exp -H512 -T512 -bhalt:4 -bM:SRE -bnoentry -lc"
14597 xcldf="${wl}-bE:ELLSONAME.exp ${wl}-H512 ${wl}-T512 ${wl}-bhalt:4 ${wl}-bM:SRE ${wl}-bnoentry ${wl}-lc"
14598 ;;
14599
14600 freebsd2* | netbsd* | openbsd*)
14601 xldf="-Bshareable"
14602 xcldf="${wl}-Bshareable"
14603 ;;
14604
14605 freebsd3*)
14606 xcldf="-shared"
14607 ;;
14608
14609 hpux*)
14610 xldf="-b +s"
14611 xcldf="${wl}-b ${wl}+s"
14612 ;;
14613
14614 irix[5-9]* | osf[3-9]*)
14615 xcldf="${wl}-shared"
14616 xldf="-shared"
14617 ;;
14618
14619 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7* | uts4*)
14620 xcldf="-G"
14621 xldf="-G"
14622 ;;
14623
14624 sunos4*)
14625 xcldf="${wl}-assert ${wl}pure-text ${wl}-Bstatic"
14626 xldf="-assert pure-text -Bstatic"
14627 ;;
14628 esac
14629 fi # End if if we are using gcc
14630
14631 if test -n "$xcldf"; then
14632 save_LDFLAGS=$LDFLAGS
14633 save_LIBS=$LIBS
14634 save_xe_libs=$xe_libs
14635 LDFLAGS="$xcldf $LDFLAGS"
14636 LIBS=
14637 xe_libs=
14638 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14639 cat > conftest.$ac_ext <<EOF
14640 #line 14641 "configure"
14641 #include "confdefs.h"
14642
14643 int main() {
14644 int x=0;
14645 ; return 0; }
14646 EOF
14647 if { (eval echo configure:14648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14648 rm -rf conftest*
14649 cc_produces_so=yes
14650 else
14651 echo "configure: failed program was:" >&5
14652 cat conftest.$ac_ext >&5
14653 rm -rf conftest*
14654 cc_produces_so=no
14655 fi
14656 rm -f conftest*
14657 LDFLAGS=$save_LDFLAGS
14658 LIBS=$save_LIBS
14659 xe_libs=$save_xe_libs
14660 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14661 else
14662 cc_produces_so=no
14663 fi
14664 echo "$ac_t""${cc_produces_so}" 1>&6
14665
14666 LTLD=$LD
14667 if test -z "$LTLD"; then
14668 ac_prog=ld
14669 if test "$XEGCC" = yes; then
14670 # Check if gcc -print-prog-name=ld gives a path.
14671 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14672 echo "configure:14673: checking for ld used by GCC" >&5
14673 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14674 case "$ac_prog" in
14675 # Accept absolute paths.
14676 /*)
14677 if test -z "$LTLD"; then
14678 # case "$ac_prog" in
14679 # *gcc-lib*) LTLD="$CC"
14680 # ;;
14681 # *)
14682 LTLD="$ac_prog"
14683 # ;;
14684 # esac
14685 fi
14686 ;;
14687 "")
14688 # If it fails, then pretend we aren't using GCC.
14689 ac_prog=ld
14690 ;;
14691 *)
14692 # If it is relative, then search for the first ld in PATH.
14693 with_gnu_ld=unknown
14694 ;;
14695 esac
14696 else
14697 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14698 echo "configure:14699: checking for GNU ld" >&5
14699 fi
14700
14701 if test -z "$LTLD"; then
14702 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14703 for ac_dir in $PATH; do
14704 test -z "$ac_dir" && ac_dir=.
14705 if test -f "$ac_dir/$ac_prog"; then
14706 LTLD="$ac_dir/$ac_prog"
14707 # Check to see if the program is GNU ld. I'd rather use --version,
14708 # but apparently some GNU ld's only accept -v.
14709 # Break only if it was the GNU/non-GNU ld that we prefer.
14710 if "$LTLD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
14711 xe_gnu_ld=yes
14712 else
14713 xe_gnu_ld=no
14714 fi
14715 fi
14716 done
14717 IFS="$ac_save_ifs"
14718 fi
14719
14720 if test -n "$LTLD"; then
14721 echo "$ac_t""${LTLD}" 1>&6
14722 else
14723 echo "$ac_t""no" 1>&6
14724 fi
14725
14726 if test -z "$LTLD" -a "$cc_produces_so" = no; then
14727 { echo "configure: error: no acceptable linker found in \$PATH" 1>&2; exit 1; }
14728 exit 1
14729 fi
14730 fi
14731
14732 ld_dynamic_link_flags=
14733
14734 # Check to see if it really is or isn't GNU ld.
14735 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14736 echo "configure:14737: checking if the linker is GNU ld" >&5
14737 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14738 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14739 xe_gnu_ld=yes
14740 else
14741 xe_gnu_ld=no
14742 fi
14743 echo "$ac_t""${xe_gnu_ld}" 1>&6
14744
14745 case "$xehost_os" in
14746 amigaos* | sunos4*)
14747 # On these operating systems, we should treat GNU ld like the system ld.
14748 gnu_ld_acts_native=yes
14749 ;;
14750 *)
14751 gnu_ld_acts_native=no
14752 ;;
14753 esac
14754
14755 if test "$cc_produces_so" = "yes"; then
14756 dll_ld=$CC
14757 dll_ldflags=$xcldf
14758 can_build_shared=yes
14759 ld_shlibs=yes
14760 else
14761 # OK - only NOW do we futz about with ld.
14762 # See if the linker supports building shared libraries.
14763 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14764 echo "configure:14765: checking whether the linker supports shared libraries" >&5
14765 dll_ld=$CC
14766 dll_ldflags=$LDFLAGS
14767 ld_shlibs=yes
14768 can_build_shared=yes
14769 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
14770 # See if GNU ld supports shared libraries.
14771 if $LTLD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14772 dll_ld=$CC
14773 dll_ldflags="-shared"
14774 ld_shlibs=yes
14775 else
14776 ld_shlibs=no
14777 fi
14778 else
14779 # PORTME fill in a description of your system's linker (not GNU ld)
14780 case "$xehost_os" in
14781 aix3*)
14782 dll_ld=$LTLD
14783 dll_ldflags=$xldf
14784 ;;
14785
14786 aix[4-9]*)
14787 dll_ldflags=$xcldf
14788 ;;
14789
14790 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14791 # support. Future versions do this automatically, but an explicit c++rt0.o
14792 # doesn't break anything, and helps significantly (at the cost of a little
14793 # extra space).
14794 freebsd2.2*)
14795 dll_ld=$LTLD
14796 dll_ldflags=$xldf
14797 dll_post="/usr/lib/c++rt0.o"
14798 ;;
14799
14800 # Unfortunately, older versions of FreeBSD 2 don't have this feature.
14801 freebsd2*)
14802 dll_ld=$LTLD
14803 dll_ldflags="-Bshareable"
14804 ;;
14805
14806 # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
14807 freebsd3*)
14808 dll_ldflags="-shared"
14809 ;;
14810
14811 hpux*)
14812 dll_ld=$LTLD
14813 dll_ldflags=$xldf
14814 ;;
14815
14816 irix[5-9]*)
14817 dll_ld=$LTLD
14818 dll_ldflags=$xldf
14819 ;;
14820
14821 netbsd*)
14822 # Tested with NetBSD 1.2 ld
14823 dll_ld=$LTLD
14824 dll_ldflags=$xldf
14825 ;;
14826
14827 openbsd*)
14828 dll_ld=$LTLD
14829 dll_ldflags=$xldf
14830 ;;
14831
14832 osf3* | osf4*)
14833 dll_ld=$LTLD
14834 dll_ldflags=$xldf
14835 ;;
14836
14837 # For both SCO and Solaris we MAY want to have LDFLAGS include -z text
14838 sco3.2v5* | unixware* | sysv5* | sysv4* | solaris2* | solaris7*)
14839 dll_ld=$LTLD
14840 case "$dll_ld" in
14841 *gcc*) dll_ldflags="-shared"
14842 dll_ld=$CC
14843 ;;
14844 *) dll_ldflags="-G"
14845 ;;
14846 esac
14847 ;;
14848
14849 sunos4*)
14850 if test "$XEGCC" = yes; then
14851 dll_ld=$CC
14852 else
14853 dll_ld=$LTLD
14854 fi
14855 dll_ldflags=$xldf
14856 ;;
14857
14858 uts4*)
14859 dll_ld=$LTLD
14860 dll_ldflags="-G"
14861 ;;
14862
14863 bsdi*)
14864 dll_ldflags="-r"
14865 dll_ld="shlicc2"
14866 ;;
14867 *)
14868 ld_shlibs=no
14869 can_build_shared=no
14870 ;;
14871 esac
14872 fi
14873 echo "$ac_t""${ld_shlibs}" 1>&6
14874 if test "$ld_shlibs" = "no"; then
14875 can_build_shared=no
14876 fi
14877 fi # End of if cc_produces_so = no
14878
14879
14880 if test "$xe_gnu_ld" = yes; then
14881 if test "$ld_shlibs" = yes; then
14882 ld_dynamic_link_flags="${wl}-export-dynamic"
14883 fi
14884 fi
14885
14886 if test -z "$ld_dynamic_link_flags"; then
14887 case "$xehost_os" in
14888 aix[3-9]*)
14889 ld_dynamic_link_flags=
14890 ;;
14891
14892 *darwin*)
14893 ld_dynamic_link_flags=
14894 ;;
14895
14896 freebsd2.2*)
14897 ld_dynamic_link_flags=
14898 ;;
14899
14900 freebsd2*)
14901 ld_dynamic_link_flags=
14902 ;;
14903
14904 freebsd3*)
14905 ld_dynamic_link_flags=
14906 ;;
14907
14908 hpux*)
14909 ld_dynamic_link_flags="${wl}-E"
14910 ;;
14911
14912 irix[5-9]*)
14913 ld_dynamic_link_flags=
14914 ;;
14915
14916 netbsd*)
14917 ld_dynamic_link_flags=
14918 ;;
14919
14920 openbsd*)
14921 ld_dynamic_link_flags=
14922 ;;
14923
14924 osf3* | osf4*)
14925 ld_dynamic_link_flags=
14926 ;;
14927
14928 solaris2* | solaris7*)
14929 ld_dynamic_link_flags=
14930 ;;
14931
14932 sco3.2v5* | unixware* | sysv5* | sysv4*)
14933 ld_dynamic_link_flags="${wl}-Bexport"
14934 ;;
14935
14936 sunos4*)
14937 ld_dynamic_link_flags=
14938 ;;
14939
14940 uts4*)
14941 ld_dynamic_link_flags=
14942 ;;
14943
14944 bsdi*)
14945 ld_dynamic_link_flags=
14946 ;;
14947
14948 esac
14949 fi # End of if -z ld_dynamic_link_flags
14950 fi # End of if test "$can_build_shared" = "yes"
14951
14952
14953
14954
14955
14956
14957
14958
14959 fi
14960
14961 if test "$can_build_shared" = "yes"; then
14962 { test "$extra_verbose" = "yes" && cat << \EOF
14963 Defining HAVE_SHLIB
14964 EOF
14965 cat >> confdefs.h <<\EOF
14966 #define HAVE_SHLIB 1
14967 EOF
14968 }
14969
14970 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
14971 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
14972 for ac_func in dlerror _dlerror
14973 do
14974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14975 echo "configure:14976: checking for $ac_func" >&5
14976
14977 cat > conftest.$ac_ext <<EOF
14978 #line 14979 "configure"
14979 #include "confdefs.h"
14980 /* System header to define __stub macros and hopefully few prototypes,
14981 which can conflict with char $ac_func(); below. */
14982 #include <assert.h>
14983 /* Override any gcc2 internal prototype to avoid an error. */
14984 /* We use char because int might match the return type of a gcc2
14985 builtin and then its argument prototype would still apply. */
14986 char $ac_func();
14987
14988 int main() {
14989
14990 /* The GNU C library defines this for functions which it implements
14991 to always fail with ENOSYS. Some functions are actually named
14992 something starting with __ and the normal name is an alias. */
14993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14994 choke me
14995 #else
14996 $ac_func();
14997 #endif
14998
14999 ; return 0; }
15000 EOF
15001 if { (eval echo configure:15002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15002 rm -rf conftest*
15003 eval "ac_cv_func_$ac_func=yes"
15004 else
15005 echo "configure: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 rm -rf conftest*
15008 eval "ac_cv_func_$ac_func=no"
15009 fi
15010 rm -f conftest*
15011
15012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15013 echo "$ac_t""yes" 1>&6
15014 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15015 { test "$extra_verbose" = "yes" && cat << EOF
15016 Defining $ac_tr_func
15017 EOF
15018 cat >> confdefs.h <<EOF
15019 #define $ac_tr_func 1
15020 EOF
15021 }
15022
15023 else
15024 echo "$ac_t""no" 1>&6
15025 fi
15026 done
15027
15028 with_modules=yes
15029 MOD_CC="../../lib-src/ellcc"
15030 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I../../src -I\$(srcdir)/../../src"
15031 INSTALLPATH="\$(moduledir)"
15032 MOD_INSTALL_PROGRAM=${INSTALL_PROGRAM}
15033 OBJECT_TO_BUILD="\$(MODNAME).ell"
15034 else
15035 if test "$with_modules" = "yes"; then
15036 { echo "Error:" "Required module support cannot be provided." >&2; exit 1; }
15037 else
15038 echo " No module support."
15039 fi
15040 with_modules=no
15041 MOD_CC="$XEMACS_CC"
15042 MODCFLAGS="\$(CFLAGS) -I../../src -I\$(srcdir)/../../src"
15043 INSTALLPATH=""
15044 MOD_INSTALL_PROGRAM="true"
15045 OBJECT_TO_BUILD="\$(MODNAME).o"
15046 fi
15047 fi
15048 MODARCHDIR=
15049 MAKE_DOCFILE="../../lib-src/make-docfile"
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060 echo "checking for LDAP" 1>&6
15061 echo "configure:15062: checking for LDAP" >&5
15062 ldap_libs=
15063 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
15064 echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
15065 echo "configure:15066: checking for ldap.h" >&5
15066
15067 cat > conftest.$ac_ext <<EOF
15068 #line 15069 "configure"
15069 #include "confdefs.h"
15070 #include <ldap.h>
15071 EOF
15072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15073 { (eval echo configure:15074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15075 if test -z "$ac_err"; then
15076 rm -rf conftest*
15077 eval "ac_cv_header_$ac_safe=yes"
15078 else
15079 echo "$ac_err" >&5
15080 echo "configure: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 rm -rf conftest*
15083 eval "ac_cv_header_$ac_safe=no"
15084 fi
15085 rm -f conftest*
15086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15087 echo "$ac_t""yes" 1>&6
15088 :
15089 else
15090 echo "$ac_t""no" 1>&6
15091 with_ldap=no
15092 fi
15093 }
15094 test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
15095 echo $ac_n "checking for lber.h""... $ac_c" 1>&6
15096 echo "configure:15097: checking for lber.h" >&5
15097
15098 cat > conftest.$ac_ext <<EOF
15099 #line 15100 "configure"
15100 #include "confdefs.h"
15101 #include <lber.h>
15102 EOF
15103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15104 { (eval echo configure:15105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15106 if test -z "$ac_err"; then
15107 rm -rf conftest*
15108 eval "ac_cv_header_$ac_safe=yes"
15109 else
15110 echo "$ac_err" >&5
15111 echo "configure: failed program was:" >&5
15112 cat conftest.$ac_ext >&5
15113 rm -rf conftest*
15114 eval "ac_cv_header_$ac_safe=no"
15115 fi
15116 rm -f conftest*
15117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15118 echo "$ac_t""yes" 1>&6
15119 :
15120 else
15121 echo "$ac_t""no" 1>&6
15122 with_ldap=no
15123 fi
15124 }
15125 if test "$with_ldap" != "no"; then
15126
15127 echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6
15128 echo "configure:15129: checking for ldap_search in -lldap" >&5
15129 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'`
15130
15131 xe_check_libs=" -lldap "
15132 cat > conftest.$ac_ext <<EOF
15133 #line 15134 "configure"
15134 #include "confdefs.h"
15135 /* Override any gcc2 internal prototype to avoid an error. */
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15138 char ldap_search();
15139
15140 int main() {
15141 ldap_search()
15142 ; return 0; }
15143 EOF
15144 if { (eval echo configure:15145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15145 rm -rf conftest*
15146 eval "ac_cv_lib_$ac_lib_var=yes"
15147 else
15148 echo "configure: failed program was:" >&5
15149 cat conftest.$ac_ext >&5
15150 rm -rf conftest*
15151 eval "ac_cv_lib_$ac_lib_var=no"
15152 fi
15153 rm -f conftest*
15154 xe_check_libs=""
15155
15156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15157 echo "$ac_t""yes" 1>&6
15158 with_ldap_nolber=yes
15159 else
15160 echo "$ac_t""no" 1>&6
15161 with_ldap_nolber=no
15162 fi
15163
15164
15165 test "$with_ldap_nolber" = "no" && {
15166 xe_msg_checking="for ldap_open in -lldap"
15167 test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber"
15168 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15169 echo "configure:15170: checking "$xe_msg_checking"" >&5
15170 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
15171
15172 xe_check_libs=" -lldap -llber"
15173 cat > conftest.$ac_ext <<EOF
15174 #line 15175 "configure"
15175 #include "confdefs.h"
15176 /* Override any gcc2 internal prototype to avoid an error. */
15177 /* We use char because int might match the return type of a gcc2
15178 builtin and then its argument prototype would still apply. */
15179 char ldap_open();
15180
15181 int main() {
15182 ldap_open()
15183 ; return 0; }
15184 EOF
15185 if { (eval echo configure:15186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15186 rm -rf conftest*
15187 eval "ac_cv_lib_$ac_lib_var=yes"
15188 else
15189 echo "configure: failed program was:" >&5
15190 cat conftest.$ac_ext >&5
15191 rm -rf conftest*
15192 eval "ac_cv_lib_$ac_lib_var=no"
15193 fi
15194 rm -f conftest*
15195 xe_check_libs=""
15196
15197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15198 echo "$ac_t""yes" 1>&6
15199 with_ldap_lber=yes
15200 else
15201 echo "$ac_t""no" 1>&6
15202 with_ldap_lber=no
15203 fi
15204
15205 }
15206 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" && {
15207 xe_msg_checking="for ldap_open in -lldap"
15208 test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb"
15209 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15210 echo "configure:15211: checking "$xe_msg_checking"" >&5
15211 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
15212
15213 xe_check_libs=" -lldap -llber -lkrb"
15214 cat > conftest.$ac_ext <<EOF
15215 #line 15216 "configure"
15216 #include "confdefs.h"
15217 /* Override any gcc2 internal prototype to avoid an error. */
15218 /* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15220 char ldap_open();
15221
15222 int main() {
15223 ldap_open()
15224 ; return 0; }
15225 EOF
15226 if { (eval echo configure:15227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15227 rm -rf conftest*
15228 eval "ac_cv_lib_$ac_lib_var=yes"
15229 else
15230 echo "configure: failed program was:" >&5
15231 cat conftest.$ac_ext >&5
15232 rm -rf conftest*
15233 eval "ac_cv_lib_$ac_lib_var=no"
15234 fi
15235 rm -f conftest*
15236 xe_check_libs=""
15237
15238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15239 echo "$ac_t""yes" 1>&6
15240 with_ldap_krb=yes
15241 else
15242 echo "$ac_t""no" 1>&6
15243 with_ldap_krb=no
15244 fi
15245
15246 }
15247 test "$with_ldap_nolber" = "no" -a "$with_ldap_lber" = "no" -a "$with_ldap_krb" = "no" && {
15248 xe_msg_checking="for ldap_open in -lldap"
15249 test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes"
15250 echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6
15251 echo "configure:15252: checking "$xe_msg_checking"" >&5
15252 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'`
15253
15254 xe_check_libs=" -lldap -llber -lkrb -ldes"
15255 cat > conftest.$ac_ext <<EOF
15256 #line 15257 "configure"
15257 #include "confdefs.h"
15258 /* Override any gcc2 internal prototype to avoid an error. */
15259 /* We use char because int might match the return type of a gcc2
15260 builtin and then its argument prototype would still apply. */
15261 char ldap_open();
15262
15263 int main() {
15264 ldap_open()
15265 ; return 0; }
15266 EOF
15267 if { (eval echo configure:15268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15268 rm -rf conftest*
15269 eval "ac_cv_lib_$ac_lib_var=yes"
15270 else
15271 echo "configure: failed program was:" >&5
15272 cat conftest.$ac_ext >&5
15273 rm -rf conftest*
15274 eval "ac_cv_lib_$ac_lib_var=no"
15275 fi
15276 rm -f conftest*
15277 xe_check_libs=""
15278
15279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15280 echo "$ac_t""yes" 1>&6
15281 with_ldap_krbdes=yes
15282 else
15283 echo "$ac_t""no" 1>&6
15284 with_ldap_krbdes=no
15285 fi
15286
15287 }
15288 test -z "$with_ldap" -a \( "$with_ldap_lber" = "yes" -o "$with_ldap_nolber" = "yes" -o "$with_ldap_krb" = "yes" -o "$with_ldap_krbdes" = "yes" \) && with_ldap=yes
15289 fi
15290 if test "$with_ldap" = "yes"; then
15291 { test "$extra_verbose" = "yes" && cat << \EOF
15292 Defining HAVE_LDAP
15293 EOF
15294 cat >> confdefs.h <<\EOF
15295 #define HAVE_LDAP 1
15296 EOF
15297 }
15298
15299 if test "$with_ldap_nolber" = "yes" ; then
15300 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
15301 else
15302 if test "$with_ldap_krb" = "yes" ; then
15303 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
15304 fi
15305 if test "$with_ldap_krbdes" = "yes" ; then
15306 ldap_libs="-ldes $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-ldes\" to \$ldap_libs"; fi
15307 ldap_libs="-lkrb $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lkrb\" to \$ldap_libs"; fi
15308 fi
15309 ldap_libs="-llber $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-llber\" to \$ldap_libs"; fi
15310 ldap_libs="-lldap $ldap_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lldap\" to \$ldap_libs"; fi
15311 fi
15312 save_LIBS="$LIBS" LIBS="$LIBS $ldap_libs"
15313 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
15314 do
15315 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15316 echo "configure:15317: checking for $ac_func" >&5
15317
15318 cat > conftest.$ac_ext <<EOF
15319 #line 15320 "configure"
15320 #include "confdefs.h"
15321 /* System header to define __stub macros and hopefully few prototypes,
15322 which can conflict with char $ac_func(); below. */
15323 #include <assert.h>
15324 /* Override any gcc2 internal prototype to avoid an error. */
15325 /* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
15327 char $ac_func();
15328
15329 int main() {
15330
15331 /* The GNU C library defines this for functions which it implements
15332 to always fail with ENOSYS. Some functions are actually named
15333 something starting with __ and the normal name is an alias. */
15334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15335 choke me
15336 #else
15337 $ac_func();
15338 #endif
15339
15340 ; return 0; }
15341 EOF
15342 if { (eval echo configure:15343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15343 rm -rf conftest*
15344 eval "ac_cv_func_$ac_func=yes"
15345 else
15346 echo "configure: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 rm -rf conftest*
15349 eval "ac_cv_func_$ac_func=no"
15350 fi
15351 rm -f conftest*
15352
15353 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15354 echo "$ac_t""yes" 1>&6
15355 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15356 { test "$extra_verbose" = "yes" && cat << EOF
15357 Defining $ac_tr_func
15358 EOF
15359 cat >> confdefs.h <<EOF
15360 #define $ac_tr_func 1
15361 EOF
15362 }
15363
15364 else
15365 echo "$ac_t""no" 1>&6
15366 fi
15367 done
15368
15369 LIBS="$save_LIBS"
15370 MAKE_SUBDIR="$MAKE_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$MAKE_SUBDIR"; fi
15371 need_modules_common=yes
15372 if test "$with_modules" = "yes"; then
15373 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/ldap" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/ldap\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15374 fi
15375 fi
15376
15377
15378 postgresql_libs=
15379 if test "$with_postgresql" != "no"; then
15380 echo "checking for PostgreSQL" 1>&6
15381 echo "configure:15382: checking for PostgreSQL" >&5
15382
15383 for header_dir in "" "pgsql/" "postgresql/"; do
15384 ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'`
15385 echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6
15386 echo "configure:15387: checking for ${header_dir}libpq-fe.h" >&5
15387
15388 cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 #include <${header_dir}libpq-fe.h>
15392 EOF
15393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15394 { (eval echo configure:15395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15396 if test -z "$ac_err"; then
15397 rm -rf conftest*
15398 eval "ac_cv_header_$ac_safe=yes"
15399 else
15400 echo "$ac_err" >&5
15401 echo "configure: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 rm -rf conftest*
15404 eval "ac_cv_header_$ac_safe=no"
15405 fi
15406 rm -f conftest*
15407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15408 echo "$ac_t""yes" 1>&6
15409 libpq_fe_h_file=${header_dir}libpq-fe.h; break
15410 else
15411 echo "$ac_t""no" 1>&6
15412 fi
15413
15414 done
15415
15416 test -n "$libpq_fe_h_file" && {
15417 echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6
15418 echo "configure:15419: checking for PQconnectdb in -lpq" >&5
15419 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'`
15420
15421 xe_check_libs=" -lpq "
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 /* Override any gcc2 internal prototype to avoid an error. */
15426 /* We use char because int might match the return type of a gcc2
15427 builtin and then its argument prototype would still apply. */
15428 char PQconnectdb();
15429
15430 int main() {
15431 PQconnectdb()
15432 ; return 0; }
15433 EOF
15434 if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15435 rm -rf conftest*
15436 eval "ac_cv_lib_$ac_lib_var=yes"
15437 else
15438 echo "configure: failed program was:" >&5
15439 cat conftest.$ac_ext >&5
15440 rm -rf conftest*
15441 eval "ac_cv_lib_$ac_lib_var=no"
15442 fi
15443 rm -f conftest*
15444 xe_check_libs=""
15445
15446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15447 echo "$ac_t""yes" 1>&6
15448 have_libpq=yes
15449 else
15450 echo "$ac_t""no" 1>&6
15451 fi
15452
15453 }
15454
15455 if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"; then
15456 with_postgresql=yes
15457 { test "$extra_verbose" = "yes" && cat << \EOF
15458 Defining HAVE_POSTGRESQL
15459 EOF
15460 cat >> confdefs.h <<\EOF
15461 #define HAVE_POSTGRESQL 1
15462 EOF
15463 }
15464
15465
15466 echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6
15467 echo "configure:15468: checking for PQconnectStart in -lpq" >&5
15468 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'`
15469
15470 xe_check_libs=" -lpq "
15471 cat > conftest.$ac_ext <<EOF
15472 #line 15473 "configure"
15473 #include "confdefs.h"
15474 /* Override any gcc2 internal prototype to avoid an error. */
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char PQconnectStart();
15478
15479 int main() {
15480 PQconnectStart()
15481 ; return 0; }
15482 EOF
15483 if { (eval echo configure:15484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15484 rm -rf conftest*
15485 eval "ac_cv_lib_$ac_lib_var=yes"
15486 else
15487 echo "configure: failed program was:" >&5
15488 cat conftest.$ac_ext >&5
15489 rm -rf conftest*
15490 eval "ac_cv_lib_$ac_lib_var=no"
15491 fi
15492 rm -f conftest*
15493 xe_check_libs=""
15494
15495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then
15496 echo "$ac_t""yes" 1>&6
15497 with_postgresqlv7=yes;
15498 { test "$extra_verbose" = "yes" && cat << \EOF
15499 Defining HAVE_POSTGRESQLV7
15500 EOF
15501 cat >> confdefs.h <<\EOF
15502 #define HAVE_POSTGRESQLV7 1
15503 EOF
15504 }
15505
15506 else
15507 echo "$ac_t""no" 1>&6
15508 fi
15509
15510
15511 { test "$extra_verbose" = "yes" && cat << EOF
15512 Defining LIBPQ_FE_H_FILE = "$libpq_fe_h_file"
15513 EOF
15514 cat >> confdefs.h <<EOF
15515 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file"
15516 EOF
15517 }
15518
15519 postgresql_libs="-lpq $postgresql_libs" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lpq\" to \$postgresql_libs"; fi
15520 MAKE_SUBDIR="$MAKE_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$MAKE_SUBDIR"; fi
15521 need_modules_common=yes
15522 if test "$with_modules" = "yes"; then
15523 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR modules/postgresql" && if test "$extra_verbose" = "yes"; then echo " Appending \"modules/postgresql\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15524 fi
15525 elif test "$with_postgresql" = "yes"; then
15526 { echo "Error:" "Required PostgreSQL support cannot be provided. Check --site-prefixes." >&2; exit 1; }
15527 fi
15528 fi
15529
15530
15531 internal_makefile_list="Makefile.in" 15507 internal_makefile_list="Makefile.in"
15532 SUBDIR_MAKEFILES='' 15508 SUBDIR_MAKEFILES=''
15533 test -d lock || mkdir lock 15509 test -d lock || mkdir lock
15534 for dir in $MAKE_SUBDIR; do 15510 for dir in $MAKE_SUBDIR; do
15535 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do 15511 case "$dir" in */* ) ( for d in `echo $dir | sed 's:/: :g'` ; do
16364 s%@X_LIBS@%$X_LIBS%g 16340 s%@X_LIBS@%$X_LIBS%g
16365 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 16341 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
16366 s%@install_pp@%$install_pp%g 16342 s%@install_pp@%$install_pp%g
16367 s%@libs_xauth@%$libs_xauth%g 16343 s%@libs_xauth@%$libs_xauth%g
16368 s%@dnd_objs@%$dnd_objs%g 16344 s%@dnd_objs@%$dnd_objs%g
16369 s%@lwlib_objs@%$lwlib_objs%g
16370 s%@ALLOCA@%$ALLOCA%g
16371 s%@have_esd_config@%$have_esd_config%g
16372 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16373 s%@dll_ld@%$dll_ld%g 16345 s%@dll_ld@%$dll_ld%g
16374 s%@dll_cflags@%$dll_cflags%g 16346 s%@dll_cflags@%$dll_cflags%g
16375 s%@dll_ldflags@%$dll_ldflags%g 16347 s%@dll_ldflags@%$dll_ldflags%g
16376 s%@dll_post@%$dll_post%g 16348 s%@dll_post@%$dll_post%g
16377 s%@dll_ldo@%$dll_ldo%g 16349 s%@dll_ldo@%$dll_ldo%g
16384 s%@INSTALLPATH@%$INSTALLPATH%g 16356 s%@INSTALLPATH@%$INSTALLPATH%g
16385 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g 16357 s%@MOD_INSTALL_PROGRAM@%$MOD_INSTALL_PROGRAM%g
16386 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g 16358 s%@OBJECT_TO_BUILD@%$OBJECT_TO_BUILD%g
16387 s%@ldap_libs@%$ldap_libs%g 16359 s%@ldap_libs@%$ldap_libs%g
16388 s%@postgresql_libs@%$postgresql_libs%g 16360 s%@postgresql_libs@%$postgresql_libs%g
16361 s%@lwlib_objs@%$lwlib_objs%g
16362 s%@ALLOCA@%$ALLOCA%g
16363 s%@have_esd_config@%$have_esd_config%g
16364 s%@SRC_SUBDIR_DEPS@%$SRC_SUBDIR_DEPS%g
16389 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g 16365 s%@INSTALL_ARCH_DEP_SUBDIR@%$INSTALL_ARCH_DEP_SUBDIR%g
16390 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g 16366 s%@MAKE_SUBDIR@%$MAKE_SUBDIR%g
16391 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g 16367 s%@SUBDIR_MAKEFILES@%$SUBDIR_MAKEFILES%g
16392 s%@PROGNAME@%$PROGNAME%g 16368 s%@PROGNAME@%$PROGNAME%g
16393 s%@version@%$version%g 16369 s%@version@%$version%g