comparison configure @ 594:fd49b88b9f06

[xemacs-hg @ 2001-05-31 12:47:21 by ben] goddamn fucking cvs
author ben
date Thu, 31 May 2001 12:47:28 +0000
parents 5ce8d1ac7bde
children cdb192350f65
comparison
equal deleted inserted replaced
593:5fd7ba8b56e7 594:fd49b88b9f06
236 with_site_modules='yes' 236 with_site_modules='yes'
237 with_menubars='' 237 with_menubars=''
238 with_scrollbars='' 238 with_scrollbars=''
239 with_widgets='' 239 with_widgets=''
240 with_dialogs='' 240 with_dialogs=''
241 with_file_coding='no'
242 cpp='' cppflags='' libs='' ldflags='' 241 cpp='' cppflags='' libs='' ldflags=''
243 extra_includes='' 242 extra_includes=''
244 dynamic='' 243 dynamic=''
245 with_x11='' 244 with_x11=''
246 with_msw='' 245 with_msw=''
373 eval "$opt=\"$val\"" ;; 372 eval "$opt=\"$val\"" ;;
374 373
375 374
376 srcdir | \ 375 srcdir | \
377 compiler | \ 376 compiler | \
377 xemacs_compiler | \
378 cflags | \ 378 cflags | \
379 cpp | \ 379 cpp | \
380 cppflags | \ 380 cppflags | \
381 libs | \ 381 libs | \
382 ldflags | \ 382 ldflags | \
9864 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then 9864 extra_objs="$extra_objs file-coding.o" && if test "$extra_verbose" = "yes"; then
9865 echo " xemacs will be linked with \"file-coding.o\"" 9865 echo " xemacs will be linked with \"file-coding.o\""
9866 fi 9866 fi
9867 fi 9867 fi
9868 9868
9869 test -z "$with_file_coding" && with_file_coding=no
9870
9869 if test "$with_mule" = "yes" ; then 9871 if test "$with_mule" = "yes" ; then
9870 echo "checking for Mule-related features" 1>&6 9872 echo "checking for Mule-related features" 1>&6
9871 echo "configure:9872: checking for Mule-related features" >&5 9873 echo "configure:9874: checking for Mule-related features" >&5
9872 { test "$extra_verbose" = "yes" && cat << \EOF 9874 { test "$extra_verbose" = "yes" && cat << \EOF
9873 Defining MULE 9875 Defining MULE
9874 EOF 9876 EOF
9875 cat >> confdefs.h <<\EOF 9877 cat >> confdefs.h <<\EOF
9876 #define MULE 1 9878 #define MULE 1
9891 9893
9892 for ac_hdr in libintl.h 9894 for ac_hdr in libintl.h
9893 do 9895 do
9894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 9896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 9897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9896 echo "configure:9897: checking for $ac_hdr" >&5 9898 echo "configure:9899: checking for $ac_hdr" >&5
9897 9899
9898 cat > conftest.$ac_ext <<EOF 9900 cat > conftest.$ac_ext <<EOF
9899 #line 9900 "configure" 9901 #line 9902 "configure"
9900 #include "confdefs.h" 9902 #include "confdefs.h"
9901 #include <$ac_hdr> 9903 #include <$ac_hdr>
9902 EOF 9904 EOF
9903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 9905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9904 { (eval echo configure:9905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 9906 { (eval echo configure:9907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 9907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9906 if test -z "$ac_err"; then 9908 if test -z "$ac_err"; then
9907 rm -rf conftest* 9909 rm -rf conftest*
9908 eval "ac_cv_header_$ac_safe=yes" 9910 eval "ac_cv_header_$ac_safe=yes"
9909 else 9911 else
9930 fi 9932 fi
9931 done 9933 done
9932 9934
9933 9935
9934 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 9936 echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6
9935 echo "configure:9936: checking for strerror in -lintl" >&5 9937 echo "configure:9938: checking for strerror in -lintl" >&5
9936 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` 9938 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'`
9937 9939
9938 xe_check_libs=" -lintl " 9940 xe_check_libs=" -lintl "
9939 cat > conftest.$ac_ext <<EOF 9941 cat > conftest.$ac_ext <<EOF
9940 #line 9941 "configure" 9942 #line 9943 "configure"
9941 #include "confdefs.h" 9943 #include "confdefs.h"
9942 /* Override any gcc2 internal prototype to avoid an error. */ 9944 /* Override any gcc2 internal prototype to avoid an error. */
9943 /* We use char because int might match the return type of a gcc2 9945 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */ 9946 builtin and then its argument prototype would still apply. */
9945 char strerror(); 9947 char strerror();
9946 9948
9947 int main() { 9949 int main() {
9948 strerror() 9950 strerror()
9949 ; return 0; } 9951 ; return 0; }
9950 EOF 9952 EOF
9951 if { (eval echo configure:9952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 9953 if { (eval echo configure:9954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9952 rm -rf conftest* 9954 rm -rf conftest*
9953 eval "ac_cv_lib_$ac_lib_var=yes" 9955 eval "ac_cv_lib_$ac_lib_var=yes"
9954 else 9956 else
9955 echo "configure: failed program was:" >&5 9957 echo "configure: failed program was:" >&5
9956 cat conftest.$ac_ext >&5 9958 cat conftest.$ac_ext >&5
9979 fi 9981 fi
9980 9982
9981 9983
9982 9984
9983 echo "checking for Mule input methods" 1>&6 9985 echo "checking for Mule input methods" 1>&6
9984 echo "configure:9985: checking for Mule input methods" >&5 9986 echo "configure:9987: checking for Mule input methods" >&5
9985 case "$with_xim" in "" | "yes" ) 9987 case "$with_xim" in "" | "yes" )
9986 echo "checking for XIM" 1>&6 9988 echo "checking for XIM" 1>&6
9987 echo "configure:9988: checking for XIM" >&5 9989 echo "configure:9990: checking for XIM" >&5
9988 9990
9989 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 9991 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6
9990 echo "configure:9991: checking for XOpenIM in -lX11" >&5 9992 echo "configure:9993: checking for XOpenIM in -lX11" >&5
9991 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` 9993 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'`
9992 9994
9993 xe_check_libs=" -lX11 " 9995 xe_check_libs=" -lX11 "
9994 cat > conftest.$ac_ext <<EOF 9996 cat > conftest.$ac_ext <<EOF
9995 #line 9996 "configure" 9997 #line 9998 "configure"
9996 #include "confdefs.h" 9998 #include "confdefs.h"
9997 /* Override any gcc2 internal prototype to avoid an error. */ 9999 /* Override any gcc2 internal prototype to avoid an error. */
9998 /* We use char because int might match the return type of a gcc2 10000 /* We use char because int might match the return type of a gcc2
9999 builtin and then its argument prototype would still apply. */ 10001 builtin and then its argument prototype would still apply. */
10000 char XOpenIM(); 10002 char XOpenIM();
10001 10003
10002 int main() { 10004 int main() {
10003 XOpenIM() 10005 XOpenIM()
10004 ; return 0; } 10006 ; return 0; }
10005 EOF 10007 EOF
10006 if { (eval echo configure:10007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10008 if { (eval echo configure:10009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10007 rm -rf conftest* 10009 rm -rf conftest*
10008 eval "ac_cv_lib_$ac_lib_var=yes" 10010 eval "ac_cv_lib_$ac_lib_var=yes"
10009 else 10011 else
10010 echo "configure: failed program was:" >&5 10012 echo "configure: failed program was:" >&5
10011 cat conftest.$ac_ext >&5 10013 cat conftest.$ac_ext >&5
10025 10027
10026 10028
10027 if test "$have_motif $have_lesstif" = "yes no"; then 10029 if test "$have_motif $have_lesstif" = "yes no"; then
10028 10030
10029 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 10031 echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6
10030 echo "configure:10031: checking for XmImMbLookupString in -lXm" >&5 10032 echo "configure:10033: checking for XmImMbLookupString in -lXm" >&5
10031 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` 10033 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'`
10032 10034
10033 xe_check_libs=" -lXm " 10035 xe_check_libs=" -lXm "
10034 cat > conftest.$ac_ext <<EOF 10036 cat > conftest.$ac_ext <<EOF
10035 #line 10036 "configure" 10037 #line 10038 "configure"
10036 #include "confdefs.h" 10038 #include "confdefs.h"
10037 /* Override any gcc2 internal prototype to avoid an error. */ 10039 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2 10040 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */ 10041 builtin and then its argument prototype would still apply. */
10040 char XmImMbLookupString(); 10042 char XmImMbLookupString();
10041 10043
10042 int main() { 10044 int main() {
10043 XmImMbLookupString() 10045 XmImMbLookupString()
10044 ; return 0; } 10046 ; return 0; }
10045 EOF 10047 EOF
10046 if { (eval echo configure:10047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10047 rm -rf conftest* 10049 rm -rf conftest*
10048 eval "ac_cv_lib_$ac_lib_var=yes" 10050 eval "ac_cv_lib_$ac_lib_var=yes"
10049 else 10051 else
10050 echo "configure: failed program was:" >&5 10052 echo "configure: failed program was:" >&5
10051 cat conftest.$ac_ext >&5 10053 cat conftest.$ac_ext >&5
10106 fi 10108 fi
10107 fi 10109 fi
10108 10110
10109 if test "$with_xfs" = "yes" ; then 10111 if test "$with_xfs" = "yes" ; then
10110 echo "checking for XFontSet" 1>&6 10112 echo "checking for XFontSet" 1>&6
10111 echo "configure:10112: checking for XFontSet" >&5 10113 echo "configure:10114: checking for XFontSet" >&5
10112 10114
10113 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 10115 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6
10114 echo "configure:10115: checking for XmbDrawString in -lX11" >&5 10116 echo "configure:10117: checking for XmbDrawString in -lX11" >&5
10115 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` 10117 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'`
10116 10118
10117 xe_check_libs=" -lX11 " 10119 xe_check_libs=" -lX11 "
10118 cat > conftest.$ac_ext <<EOF 10120 cat > conftest.$ac_ext <<EOF
10119 #line 10120 "configure" 10121 #line 10122 "configure"
10120 #include "confdefs.h" 10122 #include "confdefs.h"
10121 /* Override any gcc2 internal prototype to avoid an error. */ 10123 /* Override any gcc2 internal prototype to avoid an error. */
10122 /* We use char because int might match the return type of a gcc2 10124 /* We use char because int might match the return type of a gcc2
10123 builtin and then its argument prototype would still apply. */ 10125 builtin and then its argument prototype would still apply. */
10124 char XmbDrawString(); 10126 char XmbDrawString();
10125 10127
10126 int main() { 10128 int main() {
10127 XmbDrawString() 10129 XmbDrawString()
10128 ; return 0; } 10130 ; return 0; }
10129 EOF 10131 EOF
10130 if { (eval echo configure:10131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10132 if { (eval echo configure:10133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10131 rm -rf conftest* 10133 rm -rf conftest*
10132 eval "ac_cv_lib_$ac_lib_var=yes" 10134 eval "ac_cv_lib_$ac_lib_var=yes"
10133 else 10135 else
10134 echo "configure: failed program was:" >&5 10136 echo "configure: failed program was:" >&5
10135 cat conftest.$ac_ext >&5 10137 cat conftest.$ac_ext >&5
10165 fi 10167 fi
10166 fi 10168 fi
10167 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support 10169 test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support
10168 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` 10170 test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'`
10169 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 10171 echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6
10170 echo "configure:10171: checking for wnn/jllib.h" >&5 10172 echo "configure:10173: checking for wnn/jllib.h" >&5
10171 10173
10172 cat > conftest.$ac_ext <<EOF 10174 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure" 10175 #line 10176 "configure"
10174 #include "confdefs.h" 10176 #include "confdefs.h"
10175 #include <wnn/jllib.h> 10177 #include <wnn/jllib.h>
10176 EOF 10178 EOF
10177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10178 { (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10180 { (eval echo configure:10181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10180 if test -z "$ac_err"; then 10182 if test -z "$ac_err"; then
10181 rm -rf conftest* 10183 rm -rf conftest*
10182 eval "ac_cv_header_$ac_safe=yes" 10184 eval "ac_cv_header_$ac_safe=yes"
10183 else 10185 else
10196 with_wnn=no 10198 with_wnn=no
10197 fi 10199 fi
10198 } 10200 }
10199 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` 10201 test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'`
10200 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 10202 echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6
10201 echo "configure:10202: checking for wnn/commonhd.h" >&5 10203 echo "configure:10204: checking for wnn/commonhd.h" >&5
10202 10204
10203 cat > conftest.$ac_ext <<EOF 10205 cat > conftest.$ac_ext <<EOF
10204 #line 10205 "configure" 10206 #line 10207 "configure"
10205 #include "confdefs.h" 10207 #include "confdefs.h"
10206 #include <wnn/commonhd.h> 10208 #include <wnn/commonhd.h>
10207 EOF 10209 EOF
10208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10209 { (eval echo configure:10210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10211 { (eval echo configure:10212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10211 if test -z "$ac_err"; then 10213 if test -z "$ac_err"; then
10212 rm -rf conftest* 10214 rm -rf conftest*
10213 eval "ac_cv_header_$ac_safe=yes" 10215 eval "ac_cv_header_$ac_safe=yes"
10214 else 10216 else
10229 } 10231 }
10230 if test "$with_wnn" != "no"; then 10232 if test "$with_wnn" != "no"; then
10231 for ac_func in crypt 10233 for ac_func in crypt
10232 do 10234 do
10233 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10234 echo "configure:10235: checking for $ac_func" >&5 10236 echo "configure:10237: checking for $ac_func" >&5
10235 10237
10236 cat > conftest.$ac_ext <<EOF 10238 cat > conftest.$ac_ext <<EOF
10237 #line 10238 "configure" 10239 #line 10240 "configure"
10238 #include "confdefs.h" 10240 #include "confdefs.h"
10239 /* System header to define __stub macros and hopefully few prototypes, 10241 /* System header to define __stub macros and hopefully few prototypes,
10240 which can conflict with char $ac_func(); below. */ 10242 which can conflict with char $ac_func(); below. */
10241 #include <assert.h> 10243 #include <assert.h>
10242 /* Override any gcc2 internal prototype to avoid an error. */ 10244 /* Override any gcc2 internal prototype to avoid an error. */
10255 $ac_func(); 10257 $ac_func();
10256 #endif 10258 #endif
10257 10259
10258 ; return 0; } 10260 ; return 0; }
10259 EOF 10261 EOF
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 rm -rf conftest* 10263 rm -rf conftest*
10262 eval "ac_cv_func_$ac_func=yes" 10264 eval "ac_cv_func_$ac_func=yes"
10263 else 10265 else
10264 echo "configure: failed program was:" >&5 10266 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5 10267 cat conftest.$ac_ext >&5
10284 fi 10286 fi
10285 done 10287 done
10286 10288
10287 test "$ac_cv_func_crypt" != "yes" && { 10289 test "$ac_cv_func_crypt" != "yes" && {
10288 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 10290 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
10289 echo "configure:10290: checking for crypt in -lcrypt" >&5 10291 echo "configure:10292: checking for crypt in -lcrypt" >&5
10290 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` 10292 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
10291 10293
10292 xe_check_libs=" -lcrypt " 10294 xe_check_libs=" -lcrypt "
10293 cat > conftest.$ac_ext <<EOF 10295 cat > conftest.$ac_ext <<EOF
10294 #line 10295 "configure" 10296 #line 10297 "configure"
10295 #include "confdefs.h" 10297 #include "confdefs.h"
10296 /* Override any gcc2 internal prototype to avoid an error. */ 10298 /* Override any gcc2 internal prototype to avoid an error. */
10297 /* We use char because int might match the return type of a gcc2 10299 /* We use char because int might match the return type of a gcc2
10298 builtin and then its argument prototype would still apply. */ 10300 builtin and then its argument prototype would still apply. */
10299 char crypt(); 10301 char crypt();
10300 10302
10301 int main() { 10303 int main() {
10302 crypt() 10304 crypt()
10303 ; return 0; } 10305 ; return 0; }
10304 EOF 10306 EOF
10305 if { (eval echo configure:10306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10306 rm -rf conftest* 10308 rm -rf conftest*
10307 eval "ac_cv_lib_$ac_lib_var=yes" 10309 eval "ac_cv_lib_$ac_lib_var=yes"
10308 else 10310 else
10309 echo "configure: failed program was:" >&5 10311 echo "configure: failed program was:" >&5
10310 cat conftest.$ac_ext >&5 10312 cat conftest.$ac_ext >&5
10335 } 10337 }
10336 fi 10338 fi
10337 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then 10339 if test -z "$with_wnn" -o "$with_wnn" = "yes"; then
10338 10340
10339 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 10341 echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6
10340 echo "configure:10341: checking for jl_dic_list_e in -lwnn" >&5 10342 echo "configure:10343: checking for jl_dic_list_e in -lwnn" >&5
10341 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10343 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10342 10344
10343 xe_check_libs=" -lwnn " 10345 xe_check_libs=" -lwnn "
10344 cat > conftest.$ac_ext <<EOF 10346 cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure" 10347 #line 10348 "configure"
10346 #include "confdefs.h" 10348 #include "confdefs.h"
10347 /* Override any gcc2 internal prototype to avoid an error. */ 10349 /* Override any gcc2 internal prototype to avoid an error. */
10348 /* We use char because int might match the return type of a gcc2 10350 /* We use char because int might match the return type of a gcc2
10349 builtin and then its argument prototype would still apply. */ 10351 builtin and then its argument prototype would still apply. */
10350 char jl_dic_list_e(); 10352 char jl_dic_list_e();
10351 10353
10352 int main() { 10354 int main() {
10353 jl_dic_list_e() 10355 jl_dic_list_e()
10354 ; return 0; } 10356 ; return 0; }
10355 EOF 10357 EOF
10356 if { (eval echo configure:10357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10357 rm -rf conftest* 10359 rm -rf conftest*
10358 eval "ac_cv_lib_$ac_lib_var=yes" 10360 eval "ac_cv_lib_$ac_lib_var=yes"
10359 else 10361 else
10360 echo "configure: failed program was:" >&5 10362 echo "configure: failed program was:" >&5
10361 cat conftest.$ac_ext >&5 10363 cat conftest.$ac_ext >&5
10369 echo "$ac_t""yes" 1>&6 10371 echo "$ac_t""yes" 1>&6
10370 libwnn=wnn 10372 libwnn=wnn
10371 else 10373 else
10372 echo "$ac_t""no" 1>&6 10374 echo "$ac_t""no" 1>&6
10373 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 10375 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6
10374 echo "configure:10375: checking for jl_dic_list_e in -lwnn4" >&5 10376 echo "configure:10377: checking for jl_dic_list_e in -lwnn4" >&5
10375 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10377 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10376 10378
10377 xe_check_libs=" -lwnn4 " 10379 xe_check_libs=" -lwnn4 "
10378 cat > conftest.$ac_ext <<EOF 10380 cat > conftest.$ac_ext <<EOF
10379 #line 10380 "configure" 10381 #line 10382 "configure"
10380 #include "confdefs.h" 10382 #include "confdefs.h"
10381 /* Override any gcc2 internal prototype to avoid an error. */ 10383 /* Override any gcc2 internal prototype to avoid an error. */
10382 /* We use char because int might match the return type of a gcc2 10384 /* We use char because int might match the return type of a gcc2
10383 builtin and then its argument prototype would still apply. */ 10385 builtin and then its argument prototype would still apply. */
10384 char jl_dic_list_e(); 10386 char jl_dic_list_e();
10385 10387
10386 int main() { 10388 int main() {
10387 jl_dic_list_e() 10389 jl_dic_list_e()
10388 ; return 0; } 10390 ; return 0; }
10389 EOF 10391 EOF
10390 if { (eval echo configure:10391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10392 if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10391 rm -rf conftest* 10393 rm -rf conftest*
10392 eval "ac_cv_lib_$ac_lib_var=yes" 10394 eval "ac_cv_lib_$ac_lib_var=yes"
10393 else 10395 else
10394 echo "configure: failed program was:" >&5 10396 echo "configure: failed program was:" >&5
10395 cat conftest.$ac_ext >&5 10397 cat conftest.$ac_ext >&5
10403 echo "$ac_t""yes" 1>&6 10405 echo "$ac_t""yes" 1>&6
10404 libwnn=wnn4 10406 libwnn=wnn4
10405 else 10407 else
10406 echo "$ac_t""no" 1>&6 10408 echo "$ac_t""no" 1>&6
10407 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 10409 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6
10408 echo "configure:10409: checking for jl_dic_list_e in -lwnn6" >&5 10410 echo "configure:10411: checking for jl_dic_list_e in -lwnn6" >&5
10409 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` 10411 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'`
10410 10412
10411 xe_check_libs=" -lwnn6 " 10413 xe_check_libs=" -lwnn6 "
10412 cat > conftest.$ac_ext <<EOF 10414 cat > conftest.$ac_ext <<EOF
10413 #line 10414 "configure" 10415 #line 10416 "configure"
10414 #include "confdefs.h" 10416 #include "confdefs.h"
10415 /* Override any gcc2 internal prototype to avoid an error. */ 10417 /* Override any gcc2 internal prototype to avoid an error. */
10416 /* We use char because int might match the return type of a gcc2 10418 /* We use char because int might match the return type of a gcc2
10417 builtin and then its argument prototype would still apply. */ 10419 builtin and then its argument prototype would still apply. */
10418 char jl_dic_list_e(); 10420 char jl_dic_list_e();
10419 10421
10420 int main() { 10422 int main() {
10421 jl_dic_list_e() 10423 jl_dic_list_e()
10422 ; return 0; } 10424 ; return 0; }
10423 EOF 10425 EOF
10424 if { (eval echo configure:10425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10426 if { (eval echo configure:10427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10425 rm -rf conftest* 10427 rm -rf conftest*
10426 eval "ac_cv_lib_$ac_lib_var=yes" 10428 eval "ac_cv_lib_$ac_lib_var=yes"
10427 else 10429 else
10428 echo "configure: failed program was:" >&5 10430 echo "configure: failed program was:" >&5
10429 cat conftest.$ac_ext >&5 10431 cat conftest.$ac_ext >&5
10437 echo "$ac_t""yes" 1>&6 10439 echo "$ac_t""yes" 1>&6
10438 libwnn=wnn6 10440 libwnn=wnn6
10439 else 10441 else
10440 echo "$ac_t""no" 1>&6 10442 echo "$ac_t""no" 1>&6
10441 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 10443 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6
10442 echo "configure:10443: checking for dic_list_e in -lwnn6_fromsrc" >&5 10444 echo "configure:10445: checking for dic_list_e in -lwnn6_fromsrc" >&5
10443 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` 10445 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'`
10444 10446
10445 xe_check_libs=" -lwnn6_fromsrc " 10447 xe_check_libs=" -lwnn6_fromsrc "
10446 cat > conftest.$ac_ext <<EOF 10448 cat > conftest.$ac_ext <<EOF
10447 #line 10448 "configure" 10449 #line 10450 "configure"
10448 #include "confdefs.h" 10450 #include "confdefs.h"
10449 /* Override any gcc2 internal prototype to avoid an error. */ 10451 /* Override any gcc2 internal prototype to avoid an error. */
10450 /* We use char because int might match the return type of a gcc2 10452 /* We use char because int might match the return type of a gcc2
10451 builtin and then its argument prototype would still apply. */ 10453 builtin and then its argument prototype would still apply. */
10452 char dic_list_e(); 10454 char dic_list_e();
10453 10455
10454 int main() { 10456 int main() {
10455 dic_list_e() 10457 dic_list_e()
10456 ; return 0; } 10458 ; return 0; }
10457 EOF 10459 EOF
10458 if { (eval echo configure:10459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10460 if { (eval echo configure:10461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10459 rm -rf conftest* 10461 rm -rf conftest*
10460 eval "ac_cv_lib_$ac_lib_var=yes" 10462 eval "ac_cv_lib_$ac_lib_var=yes"
10461 else 10463 else
10462 echo "configure: failed program was:" >&5 10464 echo "configure: failed program was:" >&5
10463 cat conftest.$ac_ext >&5 10465 cat conftest.$ac_ext >&5
10501 echo " xemacs will be linked with \"mule-wnnfns.o\"" 10503 echo " xemacs will be linked with \"mule-wnnfns.o\""
10502 fi 10504 fi
10503 if test "$with_wnn6" != "no"; then 10505 if test "$with_wnn6" != "no"; then
10504 10506
10505 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 10507 echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6
10506 echo "configure:10507: checking for jl_fi_dic_list in -l$libwnn" >&5 10508 echo "configure:10509: checking for jl_fi_dic_list in -l$libwnn" >&5
10507 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` 10509 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'`
10508 10510
10509 xe_check_libs=" -l$libwnn " 10511 xe_check_libs=" -l$libwnn "
10510 cat > conftest.$ac_ext <<EOF 10512 cat > conftest.$ac_ext <<EOF
10511 #line 10512 "configure" 10513 #line 10514 "configure"
10512 #include "confdefs.h" 10514 #include "confdefs.h"
10513 /* Override any gcc2 internal prototype to avoid an error. */ 10515 /* Override any gcc2 internal prototype to avoid an error. */
10514 /* We use char because int might match the return type of a gcc2 10516 /* We use char because int might match the return type of a gcc2
10515 builtin and then its argument prototype would still apply. */ 10517 builtin and then its argument prototype would still apply. */
10516 char jl_fi_dic_list(); 10518 char jl_fi_dic_list();
10517 10519
10518 int main() { 10520 int main() {
10519 jl_fi_dic_list() 10521 jl_fi_dic_list()
10520 ; return 0; } 10522 ; return 0; }
10521 EOF 10523 EOF
10522 if { (eval echo configure:10523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10524 if { (eval echo configure:10525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10523 rm -rf conftest* 10525 rm -rf conftest*
10524 eval "ac_cv_lib_$ac_lib_var=yes" 10526 eval "ac_cv_lib_$ac_lib_var=yes"
10525 else 10527 else
10526 echo "configure: failed program was:" >&5 10528 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5 10529 cat conftest.$ac_ext >&5
10552 10554
10553 canna_includes_found=no 10555 canna_includes_found=no
10554 if test "$with_canna" != "no"; then 10556 if test "$with_canna" != "no"; then
10555 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10557 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10556 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10558 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10557 echo "configure:10558: checking for canna/jrkanji.h" >&5 10559 echo "configure:10560: checking for canna/jrkanji.h" >&5
10558 10560
10559 cat > conftest.$ac_ext <<EOF 10561 cat > conftest.$ac_ext <<EOF
10560 #line 10561 "configure" 10562 #line 10563 "configure"
10561 #include "confdefs.h" 10563 #include "confdefs.h"
10562 #include <canna/jrkanji.h> 10564 #include <canna/jrkanji.h>
10563 EOF 10565 EOF
10564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10565 { (eval echo configure:10566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10567 { (eval echo configure:10568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10567 if test -z "$ac_err"; then 10569 if test -z "$ac_err"; then
10568 rm -rf conftest* 10570 rm -rf conftest*
10569 eval "ac_cv_header_$ac_safe=yes" 10571 eval "ac_cv_header_$ac_safe=yes"
10570 else 10572 else
10587 -d "/usr/local/canna/include"; then 10589 -d "/usr/local/canna/include"; then
10588 save_c_switch_site="$c_switch_site" 10590 save_c_switch_site="$c_switch_site"
10589 c_switch_site="$c_switch_site -I/usr/local/canna/include" 10591 c_switch_site="$c_switch_site -I/usr/local/canna/include"
10590 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` 10592 ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'`
10591 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 10593 echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6
10592 echo "configure:10593: checking for canna/jrkanji.h" >&5 10594 echo "configure:10595: checking for canna/jrkanji.h" >&5
10593 10595
10594 cat > conftest.$ac_ext <<EOF 10596 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure" 10597 #line 10598 "configure"
10596 #include "confdefs.h" 10598 #include "confdefs.h"
10597 #include <canna/jrkanji.h> 10599 #include <canna/jrkanji.h>
10598 EOF 10600 EOF
10599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10600 { (eval echo configure:10601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10602 { (eval echo configure:10603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10602 if test -z "$ac_err"; then 10604 if test -z "$ac_err"; then
10603 rm -rf conftest* 10605 rm -rf conftest*
10604 eval "ac_cv_header_$ac_safe=yes" 10606 eval "ac_cv_header_$ac_safe=yes"
10605 else 10607 else
10623 fi 10625 fi
10624 fi 10626 fi
10625 10627
10626 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` 10628 test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'`
10627 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 10629 echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6
10628 echo "configure:10629: checking for canna/RK.h" >&5 10630 echo "configure:10631: checking for canna/RK.h" >&5
10629 10631
10630 cat > conftest.$ac_ext <<EOF 10632 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure" 10633 #line 10634 "configure"
10632 #include "confdefs.h" 10634 #include "confdefs.h"
10633 #include <canna/RK.h> 10635 #include <canna/RK.h>
10634 EOF 10636 EOF
10635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 10637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10636 { (eval echo configure:10637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 10638 { (eval echo configure:10639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 10639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10638 if test -z "$ac_err"; then 10640 if test -z "$ac_err"; then
10639 rm -rf conftest* 10641 rm -rf conftest*
10640 eval "ac_cv_header_$ac_safe=yes" 10642 eval "ac_cv_header_$ac_safe=yes"
10641 else 10643 else
10654 with_canna=no 10656 with_canna=no
10655 fi 10657 fi
10656 } 10658 }
10657 test -z "$with_canna" && { 10659 test -z "$with_canna" && {
10658 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 10660 echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6
10659 echo "configure:10660: checking for RkBgnBun in -lRKC" >&5 10661 echo "configure:10662: checking for RkBgnBun in -lRKC" >&5
10660 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` 10662 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'`
10661 10663
10662 xe_check_libs=" -lRKC " 10664 xe_check_libs=" -lRKC "
10663 cat > conftest.$ac_ext <<EOF 10665 cat > conftest.$ac_ext <<EOF
10664 #line 10665 "configure" 10666 #line 10667 "configure"
10665 #include "confdefs.h" 10667 #include "confdefs.h"
10666 /* Override any gcc2 internal prototype to avoid an error. */ 10668 /* Override any gcc2 internal prototype to avoid an error. */
10667 /* We use char because int might match the return type of a gcc2 10669 /* We use char because int might match the return type of a gcc2
10668 builtin and then its argument prototype would still apply. */ 10670 builtin and then its argument prototype would still apply. */
10669 char RkBgnBun(); 10671 char RkBgnBun();
10670 10672
10671 int main() { 10673 int main() {
10672 RkBgnBun() 10674 RkBgnBun()
10673 ; return 0; } 10675 ; return 0; }
10674 EOF 10676 EOF
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10677 if { (eval echo configure:10678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10676 rm -rf conftest* 10678 rm -rf conftest*
10677 eval "ac_cv_lib_$ac_lib_var=yes" 10679 eval "ac_cv_lib_$ac_lib_var=yes"
10678 else 10680 else
10679 echo "configure: failed program was:" >&5 10681 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5 10682 cat conftest.$ac_ext >&5
10693 fi 10695 fi
10694 10696
10695 } 10697 }
10696 test -z "$with_canna" && { 10698 test -z "$with_canna" && {
10697 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 10699 echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6
10698 echo "configure:10699: checking for jrKanjiControl in -lcanna" >&5 10700 echo "configure:10701: checking for jrKanjiControl in -lcanna" >&5
10699 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` 10701 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'`
10700 10702
10701 xe_check_libs=" -lcanna " 10703 xe_check_libs=" -lcanna "
10702 cat > conftest.$ac_ext <<EOF 10704 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure" 10705 #line 10706 "configure"
10704 #include "confdefs.h" 10706 #include "confdefs.h"
10705 /* Override any gcc2 internal prototype to avoid an error. */ 10707 /* Override any gcc2 internal prototype to avoid an error. */
10706 /* We use char because int might match the return type of a gcc2 10708 /* We use char because int might match the return type of a gcc2
10707 builtin and then its argument prototype would still apply. */ 10709 builtin and then its argument prototype would still apply. */
10708 char jrKanjiControl(); 10710 char jrKanjiControl();
10709 10711
10710 int main() { 10712 int main() {
10711 jrKanjiControl() 10713 jrKanjiControl()
10712 ; return 0; } 10714 ; return 0; }
10713 EOF 10715 EOF
10714 if { (eval echo configure:10715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10715 rm -rf conftest* 10717 rm -rf conftest*
10716 eval "ac_cv_lib_$ac_lib_var=yes" 10718 eval "ac_cv_lib_$ac_lib_var=yes"
10717 else 10719 else
10718 echo "configure: failed program was:" >&5 10720 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5 10721 cat conftest.$ac_ext >&5
10758 10760
10759 if test "$need_motif" = "yes" ; then 10761 if test "$need_motif" = "yes" ; then
10760 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi 10762 libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi
10761 10763
10762 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 10764 echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6
10763 echo "configure:10764: checking for layout_object_getvalue in -li18n" >&5 10765 echo "configure:10766: checking for layout_object_getvalue in -li18n" >&5
10764 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` 10766 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'`
10765 10767
10766 xe_check_libs=" -li18n " 10768 xe_check_libs=" -li18n "
10767 cat > conftest.$ac_ext <<EOF 10769 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure" 10770 #line 10771 "configure"
10769 #include "confdefs.h" 10771 #include "confdefs.h"
10770 /* Override any gcc2 internal prototype to avoid an error. */ 10772 /* Override any gcc2 internal prototype to avoid an error. */
10771 /* We use char because int might match the return type of a gcc2 10773 /* We use char because int might match the return type of a gcc2
10772 builtin and then its argument prototype would still apply. */ 10774 builtin and then its argument prototype would still apply. */
10773 char layout_object_getvalue(); 10775 char layout_object_getvalue();
10774 10776
10775 int main() { 10777 int main() {
10776 layout_object_getvalue() 10778 layout_object_getvalue()
10777 ; return 0; } 10779 ; return 0; }
10778 EOF 10780 EOF
10779 if { (eval echo configure:10780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10781 if { (eval echo configure:10782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10780 rm -rf conftest* 10782 rm -rf conftest*
10781 eval "ac_cv_lib_$ac_lib_var=yes" 10783 eval "ac_cv_lib_$ac_lib_var=yes"
10782 else 10784 else
10783 echo "configure: failed program was:" >&5 10785 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5 10786 cat conftest.$ac_ext >&5
10860 fi 10862 fi
10861 10863
10862 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask 10864 for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask
10863 do 10865 do
10864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10866 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10865 echo "configure:10866: checking for $ac_func" >&5 10867 echo "configure:10868: checking for $ac_func" >&5
10866 10868
10867 cat > conftest.$ac_ext <<EOF 10869 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure" 10870 #line 10871 "configure"
10869 #include "confdefs.h" 10871 #include "confdefs.h"
10870 /* System header to define __stub macros and hopefully few prototypes, 10872 /* System header to define __stub macros and hopefully few prototypes,
10871 which can conflict with char $ac_func(); below. */ 10873 which can conflict with char $ac_func(); below. */
10872 #include <assert.h> 10874 #include <assert.h>
10873 /* Override any gcc2 internal prototype to avoid an error. */ 10875 /* Override any gcc2 internal prototype to avoid an error. */
10886 $ac_func(); 10888 $ac_func();
10887 #endif 10889 #endif
10888 10890
10889 ; return 0; } 10891 ; return 0; }
10890 EOF 10892 EOF
10891 if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10893 if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10892 rm -rf conftest* 10894 rm -rf conftest*
10893 eval "ac_cv_func_$ac_func=yes" 10895 eval "ac_cv_func_$ac_func=yes"
10894 else 10896 else
10895 echo "configure: failed program was:" >&5 10897 echo "configure: failed program was:" >&5
10896 cat conftest.$ac_ext >&5 10898 cat conftest.$ac_ext >&5
10918 10920
10919 10921
10920 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp 10922 for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp
10921 do 10923 do
10922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 10924 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10923 echo "configure:10924: checking for $ac_func" >&5 10925 echo "configure:10926: checking for $ac_func" >&5
10924 10926
10925 cat > conftest.$ac_ext <<EOF 10927 cat > conftest.$ac_ext <<EOF
10926 #line 10927 "configure" 10928 #line 10929 "configure"
10927 #include "confdefs.h" 10929 #include "confdefs.h"
10928 /* System header to define __stub macros and hopefully few prototypes, 10930 /* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func(); below. */ 10931 which can conflict with char $ac_func(); below. */
10930 #include <assert.h> 10932 #include <assert.h>
10931 /* Override any gcc2 internal prototype to avoid an error. */ 10933 /* Override any gcc2 internal prototype to avoid an error. */
10944 $ac_func(); 10946 $ac_func();
10945 #endif 10947 #endif
10946 10948
10947 ; return 0; } 10949 ; return 0; }
10948 EOF 10950 EOF
10949 if { (eval echo configure:10950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 10951 if { (eval echo configure:10952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10950 rm -rf conftest* 10952 rm -rf conftest*
10951 eval "ac_cv_func_$ac_func=yes" 10953 eval "ac_cv_func_$ac_func=yes"
10952 else 10954 else
10953 echo "configure: failed program was:" >&5 10955 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5 10956 cat conftest.$ac_ext >&5
10973 fi 10975 fi
10974 done 10976 done
10975 10977
10976 10978
10977 echo $ac_n "checking for openpty""... $ac_c" 1>&6 10979 echo $ac_n "checking for openpty""... $ac_c" 1>&6
10978 echo "configure:10979: checking for openpty" >&5 10980 echo "configure:10981: checking for openpty" >&5
10979 10981
10980 cat > conftest.$ac_ext <<EOF 10982 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure" 10983 #line 10984 "configure"
10982 #include "confdefs.h" 10984 #include "confdefs.h"
10983 /* System header to define __stub macros and hopefully few prototypes, 10985 /* System header to define __stub macros and hopefully few prototypes,
10984 which can conflict with char openpty(); below. */ 10986 which can conflict with char openpty(); below. */
10985 #include <assert.h> 10987 #include <assert.h>
10986 /* Override any gcc2 internal prototype to avoid an error. */ 10988 /* Override any gcc2 internal prototype to avoid an error. */
10999 openpty(); 11001 openpty();
11000 #endif 11002 #endif
11001 11003
11002 ; return 0; } 11004 ; return 0; }
11003 EOF 11005 EOF
11004 if { (eval echo configure:11005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11006 if { (eval echo configure:11007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11005 rm -rf conftest* 11007 rm -rf conftest*
11006 eval "ac_cv_func_openpty=yes" 11008 eval "ac_cv_func_openpty=yes"
11007 else 11009 else
11008 echo "configure: failed program was:" >&5 11010 echo "configure: failed program was:" >&5
11009 cat conftest.$ac_ext >&5 11011 cat conftest.$ac_ext >&5
11018 else 11020 else
11019 echo "$ac_t""no" 1>&6 11021 echo "$ac_t""no" 1>&6
11020 11022
11021 11023
11022 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 11024 echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6
11023 echo "configure:11024: checking for openpty in -lutil" >&5 11025 echo "configure:11026: checking for openpty in -lutil" >&5
11024 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` 11026 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'`
11025 11027
11026 xe_check_libs=" -lutil " 11028 xe_check_libs=" -lutil "
11027 cat > conftest.$ac_ext <<EOF 11029 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure" 11030 #line 11031 "configure"
11029 #include "confdefs.h" 11031 #include "confdefs.h"
11030 /* Override any gcc2 internal prototype to avoid an error. */ 11032 /* Override any gcc2 internal prototype to avoid an error. */
11031 /* We use char because int might match the return type of a gcc2 11033 /* We use char because int might match the return type of a gcc2
11032 builtin and then its argument prototype would still apply. */ 11034 builtin and then its argument prototype would still apply. */
11033 char openpty(); 11035 char openpty();
11034 11036
11035 int main() { 11037 int main() {
11036 openpty() 11038 openpty()
11037 ; return 0; } 11039 ; return 0; }
11038 EOF 11040 EOF
11039 if { (eval echo configure:11040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11040 rm -rf conftest* 11042 rm -rf conftest*
11041 eval "ac_cv_lib_$ac_lib_var=yes" 11043 eval "ac_cv_lib_$ac_lib_var=yes"
11042 else 11044 else
11043 echo "configure: failed program was:" >&5 11045 echo "configure: failed program was:" >&5
11044 cat conftest.$ac_ext >&5 11046 cat conftest.$ac_ext >&5
11069 11071
11070 for ac_hdr in libutil.h util.h 11072 for ac_hdr in libutil.h util.h
11071 do 11073 do
11072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11074 echo "configure:11075: checking for $ac_hdr" >&5 11076 echo "configure:11077: checking for $ac_hdr" >&5
11075 11077
11076 cat > conftest.$ac_ext <<EOF 11078 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure" 11079 #line 11080 "configure"
11078 #include "confdefs.h" 11080 #include "confdefs.h"
11079 #include <$ac_hdr> 11081 #include <$ac_hdr>
11080 EOF 11082 EOF
11081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11082 { (eval echo configure:11083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11084 { (eval echo configure:11085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11084 if test -z "$ac_err"; then 11086 if test -z "$ac_err"; then
11085 rm -rf conftest* 11087 rm -rf conftest*
11086 eval "ac_cv_header_$ac_safe=yes" 11088 eval "ac_cv_header_$ac_safe=yes"
11087 else 11089 else
11114 case "$opsys" in 11116 case "$opsys" in
11115 hpux*) for ac_hdr in sys/ptyio.h 11117 hpux*) for ac_hdr in sys/ptyio.h
11116 do 11118 do
11117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11119 echo "configure:11120: checking for $ac_hdr" >&5 11121 echo "configure:11122: checking for $ac_hdr" >&5
11120 11122
11121 cat > conftest.$ac_ext <<EOF 11123 cat > conftest.$ac_ext <<EOF
11122 #line 11123 "configure" 11124 #line 11125 "configure"
11123 #include "confdefs.h" 11125 #include "confdefs.h"
11124 #include <$ac_hdr> 11126 #include <$ac_hdr>
11125 EOF 11127 EOF
11126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11127 { (eval echo configure:11128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11129 if test -z "$ac_err"; then 11131 if test -z "$ac_err"; then
11130 rm -rf conftest* 11132 rm -rf conftest*
11131 eval "ac_cv_header_$ac_safe=yes" 11133 eval "ac_cv_header_$ac_safe=yes"
11132 else 11134 else
11155 ;; 11157 ;;
11156 *) for ac_hdr in pty.h 11158 *) for ac_hdr in pty.h
11157 do 11159 do
11158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11160 echo "configure:11161: checking for $ac_hdr" >&5 11162 echo "configure:11163: checking for $ac_hdr" >&5
11161 11163
11162 cat > conftest.$ac_ext <<EOF 11164 cat > conftest.$ac_ext <<EOF
11163 #line 11164 "configure" 11165 #line 11166 "configure"
11164 #include "confdefs.h" 11166 #include "confdefs.h"
11165 #include <$ac_hdr> 11167 #include <$ac_hdr>
11166 EOF 11168 EOF
11167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11168 { (eval echo configure:11169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11170 { (eval echo configure:11171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11170 if test -z "$ac_err"; then 11172 if test -z "$ac_err"; then
11171 rm -rf conftest* 11173 rm -rf conftest*
11172 eval "ac_cv_header_$ac_safe=yes" 11174 eval "ac_cv_header_$ac_safe=yes"
11173 else 11175 else
11196 11198
11197 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h 11199 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h
11198 do 11200 do
11199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11201 echo "configure:11202: checking for $ac_hdr" >&5 11203 echo "configure:11204: checking for $ac_hdr" >&5
11202 11204
11203 cat > conftest.$ac_ext <<EOF 11205 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure" 11206 #line 11207 "configure"
11205 #include "confdefs.h" 11207 #include "confdefs.h"
11206 #include <$ac_hdr> 11208 #include <$ac_hdr>
11207 EOF 11209 EOF
11208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11209 { (eval echo configure:11210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11211 { (eval echo configure:11212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11211 if test -z "$ac_err"; then 11213 if test -z "$ac_err"; then
11212 rm -rf conftest* 11214 rm -rf conftest*
11213 eval "ac_cv_header_$ac_safe=yes" 11215 eval "ac_cv_header_$ac_safe=yes"
11214 else 11216 else
11240 11242
11241 for ac_hdr in stropts.h 11243 for ac_hdr in stropts.h
11242 do 11244 do
11243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11245 echo "configure:11246: checking for $ac_hdr" >&5 11247 echo "configure:11248: checking for $ac_hdr" >&5
11246 11248
11247 cat > conftest.$ac_ext <<EOF 11249 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure" 11250 #line 11251 "configure"
11249 #include "confdefs.h" 11251 #include "confdefs.h"
11250 #include <$ac_hdr> 11252 #include <$ac_hdr>
11251 EOF 11253 EOF
11252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11253 { (eval echo configure:11254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11255 { (eval echo configure:11256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11255 if test -z "$ac_err"; then 11257 if test -z "$ac_err"; then
11256 rm -rf conftest* 11258 rm -rf conftest*
11257 eval "ac_cv_header_$ac_safe=yes" 11259 eval "ac_cv_header_$ac_safe=yes"
11258 else 11260 else
11281 11283
11282 if test "$ac_cv_header_stropts_h" = "yes"; then 11284 if test "$ac_cv_header_stropts_h" = "yes"; then
11283 for ac_func in isastream 11285 for ac_func in isastream
11284 do 11286 do
11285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11286 echo "configure:11287: checking for $ac_func" >&5 11288 echo "configure:11289: checking for $ac_func" >&5
11287 11289
11288 cat > conftest.$ac_ext <<EOF 11290 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure" 11291 #line 11292 "configure"
11290 #include "confdefs.h" 11292 #include "confdefs.h"
11291 /* System header to define __stub macros and hopefully few prototypes, 11293 /* System header to define __stub macros and hopefully few prototypes,
11292 which can conflict with char $ac_func(); below. */ 11294 which can conflict with char $ac_func(); below. */
11293 #include <assert.h> 11295 #include <assert.h>
11294 /* Override any gcc2 internal prototype to avoid an error. */ 11296 /* Override any gcc2 internal prototype to avoid an error. */
11307 $ac_func(); 11309 $ac_func();
11308 #endif 11310 #endif
11309 11311
11310 ; return 0; } 11312 ; return 0; }
11311 EOF 11313 EOF
11312 if { (eval echo configure:11313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11314 if { (eval echo configure:11315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11313 rm -rf conftest* 11315 rm -rf conftest*
11314 eval "ac_cv_func_$ac_func=yes" 11316 eval "ac_cv_func_$ac_func=yes"
11315 else 11317 else
11316 echo "configure: failed program was:" >&5 11318 echo "configure: failed program was:" >&5
11317 cat conftest.$ac_ext >&5 11319 cat conftest.$ac_ext >&5
11338 11340
11339 for ac_hdr in strtio.h 11341 for ac_hdr in strtio.h
11340 do 11342 do
11341 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11342 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11343 echo "configure:11344: checking for $ac_hdr" >&5 11345 echo "configure:11346: checking for $ac_hdr" >&5
11344 11346
11345 cat > conftest.$ac_ext <<EOF 11347 cat > conftest.$ac_ext <<EOF
11346 #line 11347 "configure" 11348 #line 11349 "configure"
11347 #include "confdefs.h" 11349 #include "confdefs.h"
11348 #include <$ac_hdr> 11350 #include <$ac_hdr>
11349 EOF 11351 EOF
11350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11351 { (eval echo configure:11352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11353 { (eval echo configure:11354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11353 if test -z "$ac_err"; then 11355 if test -z "$ac_err"; then
11354 rm -rf conftest* 11356 rm -rf conftest*
11355 eval "ac_cv_header_$ac_safe=yes" 11357 eval "ac_cv_header_$ac_safe=yes"
11356 else 11358 else
11383 fi 11385 fi
11384 11386
11385 for ac_func in getloadavg 11387 for ac_func in getloadavg
11386 do 11388 do
11387 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11388 echo "configure:11389: checking for $ac_func" >&5 11390 echo "configure:11391: checking for $ac_func" >&5
11389 11391
11390 cat > conftest.$ac_ext <<EOF 11392 cat > conftest.$ac_ext <<EOF
11391 #line 11392 "configure" 11393 #line 11394 "configure"
11392 #include "confdefs.h" 11394 #include "confdefs.h"
11393 /* System header to define __stub macros and hopefully few prototypes, 11395 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func(); below. */ 11396 which can conflict with char $ac_func(); below. */
11395 #include <assert.h> 11397 #include <assert.h>
11396 /* Override any gcc2 internal prototype to avoid an error. */ 11398 /* Override any gcc2 internal prototype to avoid an error. */
11409 $ac_func(); 11411 $ac_func();
11410 #endif 11412 #endif
11411 11413
11412 ; return 0; } 11414 ; return 0; }
11413 EOF 11415 EOF
11414 if { (eval echo configure:11415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11416 if { (eval echo configure:11417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11415 rm -rf conftest* 11417 rm -rf conftest*
11416 eval "ac_cv_func_$ac_func=yes" 11418 eval "ac_cv_func_$ac_func=yes"
11417 else 11419 else
11418 echo "configure: failed program was:" >&5 11420 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5 11421 cat conftest.$ac_ext >&5
11442 if test "$ac_cv_func_getloadavg" = "yes"; then 11444 if test "$ac_cv_func_getloadavg" = "yes"; then
11443 for ac_hdr in sys/loadavg.h 11445 for ac_hdr in sys/loadavg.h
11444 do 11446 do
11445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11447 echo "configure:11448: checking for $ac_hdr" >&5 11449 echo "configure:11450: checking for $ac_hdr" >&5
11448 11450
11449 cat > conftest.$ac_ext <<EOF 11451 cat > conftest.$ac_ext <<EOF
11450 #line 11451 "configure" 11452 #line 11453 "configure"
11451 #include "confdefs.h" 11453 #include "confdefs.h"
11452 #include <$ac_hdr> 11454 #include <$ac_hdr>
11453 EOF 11455 EOF
11454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11455 { (eval echo configure:11456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11457 { (eval echo configure:11458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11457 if test -z "$ac_err"; then 11459 if test -z "$ac_err"; then
11458 rm -rf conftest* 11460 rm -rf conftest*
11459 eval "ac_cv_header_$ac_safe=yes" 11461 eval "ac_cv_header_$ac_safe=yes"
11460 else 11462 else
11486 echo " xemacs will be linked with \"getloadavg.o\"" 11488 echo " xemacs will be linked with \"getloadavg.o\""
11487 fi 11489 fi
11488 11490
11489 11491
11490 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 11492 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6
11491 echo "configure:11492: checking for kstat_open in -lkstat" >&5 11493 echo "configure:11494: checking for kstat_open in -lkstat" >&5
11492 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` 11494 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'`
11493 11495
11494 xe_check_libs=" -lkstat " 11496 xe_check_libs=" -lkstat "
11495 cat > conftest.$ac_ext <<EOF 11497 cat > conftest.$ac_ext <<EOF
11496 #line 11497 "configure" 11498 #line 11499 "configure"
11497 #include "confdefs.h" 11499 #include "confdefs.h"
11498 /* Override any gcc2 internal prototype to avoid an error. */ 11500 /* Override any gcc2 internal prototype to avoid an error. */
11499 /* We use char because int might match the return type of a gcc2 11501 /* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */ 11502 builtin and then its argument prototype would still apply. */
11501 char kstat_open(); 11503 char kstat_open();
11502 11504
11503 int main() { 11505 int main() {
11504 kstat_open() 11506 kstat_open()
11505 ; return 0; } 11507 ; return 0; }
11506 EOF 11508 EOF
11507 if { (eval echo configure:11508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11509 if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11508 rm -rf conftest* 11510 rm -rf conftest*
11509 eval "ac_cv_lib_$ac_lib_var=yes" 11511 eval "ac_cv_lib_$ac_lib_var=yes"
11510 else 11512 else
11511 echo "configure: failed program was:" >&5 11513 echo "configure: failed program was:" >&5
11512 cat conftest.$ac_ext >&5 11514 cat conftest.$ac_ext >&5
11537 11539
11538 for ac_hdr in kstat.h 11540 for ac_hdr in kstat.h
11539 do 11541 do
11540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 11542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 11543 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11542 echo "configure:11543: checking for $ac_hdr" >&5 11544 echo "configure:11545: checking for $ac_hdr" >&5
11543 11545
11544 cat > conftest.$ac_ext <<EOF 11546 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure" 11547 #line 11548 "configure"
11546 #include "confdefs.h" 11548 #include "confdefs.h"
11547 #include <$ac_hdr> 11549 #include <$ac_hdr>
11548 EOF 11550 EOF
11549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 11551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11550 { (eval echo configure:11551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 11552 { (eval echo configure:11553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 11553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11552 if test -z "$ac_err"; then 11554 if test -z "$ac_err"; then
11553 rm -rf conftest* 11555 rm -rf conftest*
11554 eval "ac_cv_header_$ac_safe=yes" 11556 eval "ac_cv_header_$ac_safe=yes"
11555 else 11557 else
11577 done 11579 done
11578 11580
11579 11581
11580 11582
11581 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 11583 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
11582 echo "configure:11583: checking for kvm_read in -lkvm" >&5 11584 echo "configure:11585: checking for kvm_read in -lkvm" >&5
11583 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` 11585 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
11584 11586
11585 xe_check_libs=" -lkvm " 11587 xe_check_libs=" -lkvm "
11586 cat > conftest.$ac_ext <<EOF 11588 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure" 11589 #line 11590 "configure"
11588 #include "confdefs.h" 11590 #include "confdefs.h"
11589 /* Override any gcc2 internal prototype to avoid an error. */ 11591 /* Override any gcc2 internal prototype to avoid an error. */
11590 /* We use char because int might match the return type of a gcc2 11592 /* We use char because int might match the return type of a gcc2
11591 builtin and then its argument prototype would still apply. */ 11593 builtin and then its argument prototype would still apply. */
11592 char kvm_read(); 11594 char kvm_read();
11593 11595
11594 int main() { 11596 int main() {
11595 kvm_read() 11597 kvm_read()
11596 ; return 0; } 11598 ; return 0; }
11597 EOF 11599 EOF
11598 if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11600 if { (eval echo configure:11601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11599 rm -rf conftest* 11601 rm -rf conftest*
11600 eval "ac_cv_lib_$ac_lib_var=yes" 11602 eval "ac_cv_lib_$ac_lib_var=yes"
11601 else 11603 else
11602 echo "configure: failed program was:" >&5 11604 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5 11605 cat conftest.$ac_ext >&5
11627 11629
11628 11630
11629 fi 11631 fi
11630 11632
11631 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 11633 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
11632 echo "configure:11633: checking whether netdb declares h_errno" >&5 11634 echo "configure:11635: checking whether netdb declares h_errno" >&5
11633 cat > conftest.$ac_ext <<EOF 11635 cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure" 11636 #line 11637 "configure"
11635 #include "confdefs.h" 11637 #include "confdefs.h"
11636 #include <netdb.h> 11638 #include <netdb.h>
11637 int main() { 11639 int main() {
11638 return h_errno; 11640 return h_errno;
11639 ; return 0; } 11641 ; return 0; }
11640 EOF 11642 EOF
11641 if { (eval echo configure:11642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11643 if { (eval echo configure:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11642 rm -rf conftest* 11644 rm -rf conftest*
11643 echo "$ac_t""yes" 1>&6 11645 echo "$ac_t""yes" 1>&6
11644 { test "$extra_verbose" = "yes" && cat << \EOF 11646 { test "$extra_verbose" = "yes" && cat << \EOF
11645 Defining HAVE_H_ERRNO 11647 Defining HAVE_H_ERRNO
11646 EOF 11648 EOF
11656 echo "$ac_t""no" 1>&6 11658 echo "$ac_t""no" 1>&6
11657 fi 11659 fi
11658 rm -f conftest* 11660 rm -f conftest*
11659 11661
11660 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 11662 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
11661 echo "configure:11662: checking for sigsetjmp" >&5 11663 echo "configure:11664: checking for sigsetjmp" >&5
11662 cat > conftest.$ac_ext <<EOF 11664 cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure" 11665 #line 11666 "configure"
11664 #include "confdefs.h" 11666 #include "confdefs.h"
11665 #include <setjmp.h> 11667 #include <setjmp.h>
11666 int main() { 11668 int main() {
11667 sigjmp_buf bar; sigsetjmp (bar, 0); 11669 sigjmp_buf bar; sigsetjmp (bar, 0);
11668 ; return 0; } 11670 ; return 0; }
11669 EOF 11671 EOF
11670 if { (eval echo configure:11671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11672 if { (eval echo configure:11673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11671 rm -rf conftest* 11673 rm -rf conftest*
11672 echo "$ac_t""yes" 1>&6 11674 echo "$ac_t""yes" 1>&6
11673 { test "$extra_verbose" = "yes" && cat << \EOF 11675 { test "$extra_verbose" = "yes" && cat << \EOF
11674 Defining HAVE_SIGSETJMP 11676 Defining HAVE_SIGSETJMP
11675 EOF 11677 EOF
11685 echo "$ac_t""no" 1>&6 11687 echo "$ac_t""no" 1>&6
11686 fi 11688 fi
11687 rm -f conftest* 11689 rm -f conftest*
11688 11690
11689 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 11691 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
11690 echo "configure:11691: checking whether localtime caches TZ" >&5 11692 echo "configure:11693: checking whether localtime caches TZ" >&5
11691 11693
11692 if test "$ac_cv_func_tzset" = "yes"; then 11694 if test "$ac_cv_func_tzset" = "yes"; then
11693 cat > conftest.$ac_ext <<EOF 11695 cat > conftest.$ac_ext <<EOF
11694 #line 11695 "configure" 11696 #line 11697 "configure"
11695 #include "confdefs.h" 11697 #include "confdefs.h"
11696 #include <time.h> 11698 #include <time.h>
11697 #if STDC_HEADERS 11699 #if STDC_HEADERS
11698 # include <stdlib.h> 11700 # include <stdlib.h>
11699 #endif 11701 #endif
11724 if (localtime (&now)->tm_hour != hour_unset) 11726 if (localtime (&now)->tm_hour != hour_unset)
11725 exit (1); 11727 exit (1);
11726 exit (0); 11728 exit (0);
11727 } 11729 }
11728 EOF 11730 EOF
11729 if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 11731 if { (eval echo configure:11732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
11730 then 11732 then
11731 emacs_cv_localtime_cache=no 11733 emacs_cv_localtime_cache=no
11732 else 11734 else
11733 conftest_rc="$?" 11735 conftest_rc="$?"
11734 echo "configure: failed program was:" >&5 11736 echo "configure: failed program was:" >&5
11754 11756
11755 fi 11757 fi
11756 11758
11757 if test "$HAVE_TIMEVAL" = "yes"; then 11759 if test "$HAVE_TIMEVAL" = "yes"; then
11758 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 11760 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6
11759 echo "configure:11760: checking whether gettimeofday accepts one or two arguments" >&5 11761 echo "configure:11762: checking whether gettimeofday accepts one or two arguments" >&5
11760 cat > conftest.$ac_ext <<EOF 11762 cat > conftest.$ac_ext <<EOF
11761 #line 11762 "configure" 11763 #line 11764 "configure"
11762 #include "confdefs.h" 11764 #include "confdefs.h"
11763 11765
11764 #ifdef TIME_WITH_SYS_TIME 11766 #ifdef TIME_WITH_SYS_TIME
11765 #include <sys/time.h> 11767 #include <sys/time.h>
11766 #include <time.h> 11768 #include <time.h>
11777 struct timeval time; 11779 struct timeval time;
11778 gettimeofday (&time, 0); 11780 gettimeofday (&time, 0);
11779 11781
11780 ; return 0; } 11782 ; return 0; }
11781 EOF 11783 EOF
11782 if { (eval echo configure:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11784 if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11783 rm -rf conftest* 11785 rm -rf conftest*
11784 echo "$ac_t""two" 1>&6 11786 echo "$ac_t""two" 1>&6
11785 else 11787 else
11786 echo "configure: failed program was:" >&5 11788 echo "configure: failed program was:" >&5
11787 cat conftest.$ac_ext >&5 11789 cat conftest.$ac_ext >&5
11799 rm -f conftest* 11801 rm -f conftest*
11800 fi 11802 fi
11801 11803
11802 11804
11803 echo $ac_n "checking for inline""... $ac_c" 1>&6 11805 echo $ac_n "checking for inline""... $ac_c" 1>&6
11804 echo "configure:11805: checking for inline" >&5 11806 echo "configure:11807: checking for inline" >&5
11805 11807
11806 ac_cv_c_inline=no 11808 ac_cv_c_inline=no
11807 for ac_kw in inline __inline__ __inline; do 11809 for ac_kw in inline __inline__ __inline; do
11808 cat > conftest.$ac_ext <<EOF 11810 cat > conftest.$ac_ext <<EOF
11809 #line 11810 "configure" 11811 #line 11812 "configure"
11810 #include "confdefs.h" 11812 #include "confdefs.h"
11811 11813
11812 int main() { 11814 int main() {
11813 } $ac_kw foo() { 11815 } $ac_kw foo() {
11814 ; return 0; } 11816 ; return 0; }
11815 EOF 11817 EOF
11816 if { (eval echo configure:11817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 11818 if { (eval echo configure:11819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11817 rm -rf conftest* 11819 rm -rf conftest*
11818 ac_cv_c_inline=$ac_kw; break 11820 ac_cv_c_inline=$ac_kw; break
11819 else 11821 else
11820 echo "configure: failed program was:" >&5 11822 echo "configure: failed program was:" >&5
11821 cat conftest.$ac_ext >&5 11823 cat conftest.$ac_ext >&5
11852 11854
11853 if test "$__DECC" != "yes"; then 11855 if test "$__DECC" != "yes"; then
11854 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 11856 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11855 # for constant arguments. Useless! 11857 # for constant arguments. Useless!
11856 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 11858 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11857 echo "configure:11858: checking for working alloca.h" >&5 11859 echo "configure:11860: checking for working alloca.h" >&5
11858 11860
11859 cat > conftest.$ac_ext <<EOF 11861 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure" 11862 #line 11863 "configure"
11861 #include "confdefs.h" 11863 #include "confdefs.h"
11862 #include <alloca.h> 11864 #include <alloca.h>
11863 int main() { 11865 int main() {
11864 char *p = alloca(2 * sizeof(int)); 11866 char *p = alloca(2 * sizeof(int));
11865 ; return 0; } 11867 ; return 0; }
11866 EOF 11868 EOF
11867 if { (eval echo configure:11868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11869 if { (eval echo configure:11870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11868 rm -rf conftest* 11870 rm -rf conftest*
11869 ac_cv_header_alloca_h=yes 11871 ac_cv_header_alloca_h=yes
11870 else 11872 else
11871 echo "configure: failed program was:" >&5 11873 echo "configure: failed program was:" >&5
11872 cat conftest.$ac_ext >&5 11874 cat conftest.$ac_ext >&5
11886 } 11888 }
11887 11889
11888 fi 11890 fi
11889 11891
11890 echo $ac_n "checking for alloca""... $ac_c" 1>&6 11892 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11891 echo "configure:11892: checking for alloca" >&5 11893 echo "configure:11894: checking for alloca" >&5
11892 11894
11893 cat > conftest.$ac_ext <<EOF 11895 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure" 11896 #line 11897 "configure"
11895 #include "confdefs.h" 11897 #include "confdefs.h"
11896 11898
11897 #ifdef __GNUC__ 11899 #ifdef __GNUC__
11898 # define alloca __builtin_alloca 11900 # define alloca __builtin_alloca
11899 #else 11901 #else
11917 11919
11918 int main() { 11920 int main() {
11919 char *p = (char *) alloca(1); 11921 char *p = (char *) alloca(1);
11920 ; return 0; } 11922 ; return 0; }
11921 EOF 11923 EOF
11922 if { (eval echo configure:11923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 11924 if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11923 rm -rf conftest* 11925 rm -rf conftest*
11924 ac_cv_func_alloca_works=yes 11926 ac_cv_func_alloca_works=yes
11925 else 11927 else
11926 echo "configure: failed program was:" >&5 11928 echo "configure: failed program was:" >&5
11927 cat conftest.$ac_ext >&5 11929 cat conftest.$ac_ext >&5
11956 EOF 11958 EOF
11957 } 11959 }
11958 11960
11959 11961
11960 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 11962 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11961 echo "configure:11962: checking whether alloca needs Cray hooks" >&5 11963 echo "configure:11964: checking whether alloca needs Cray hooks" >&5
11962 11964
11963 cat > conftest.$ac_ext <<EOF 11965 cat > conftest.$ac_ext <<EOF
11964 #line 11965 "configure" 11966 #line 11967 "configure"
11965 #include "confdefs.h" 11967 #include "confdefs.h"
11966 #if defined(CRAY) && ! defined(CRAY2) 11968 #if defined(CRAY) && ! defined(CRAY2)
11967 webecray 11969 webecray
11968 #else 11970 #else
11969 wenotbecray 11971 wenotbecray
11983 11985
11984 echo "$ac_t""$ac_cv_os_cray" 1>&6 11986 echo "$ac_t""$ac_cv_os_cray" 1>&6
11985 if test $ac_cv_os_cray = yes; then 11987 if test $ac_cv_os_cray = yes; then
11986 for ac_func in _getb67 GETB67 getb67; do 11988 for ac_func in _getb67 GETB67 getb67; do
11987 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 11989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11988 echo "configure:11989: checking for $ac_func" >&5 11990 echo "configure:11991: checking for $ac_func" >&5
11989 11991
11990 cat > conftest.$ac_ext <<EOF 11992 cat > conftest.$ac_ext <<EOF
11991 #line 11992 "configure" 11993 #line 11994 "configure"
11992 #include "confdefs.h" 11994 #include "confdefs.h"
11993 /* System header to define __stub macros and hopefully few prototypes, 11995 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func(); below. */ 11996 which can conflict with char $ac_func(); below. */
11995 #include <assert.h> 11997 #include <assert.h>
11996 /* Override any gcc2 internal prototype to avoid an error. */ 11998 /* Override any gcc2 internal prototype to avoid an error. */
12009 $ac_func(); 12011 $ac_func();
12010 #endif 12012 #endif
12011 12013
12012 ; return 0; } 12014 ; return 0; }
12013 EOF 12015 EOF
12014 if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12015 rm -rf conftest* 12017 rm -rf conftest*
12016 eval "ac_cv_func_$ac_func=yes" 12018 eval "ac_cv_func_$ac_func=yes"
12017 else 12019 else
12018 echo "configure: failed program was:" >&5 12020 echo "configure: failed program was:" >&5
12019 cat conftest.$ac_ext >&5 12021 cat conftest.$ac_ext >&5
12039 12041
12040 done 12042 done
12041 fi 12043 fi
12042 12044
12043 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 12045 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
12044 echo "configure:12045: checking stack direction for C alloca" >&5 12046 echo "configure:12047: checking stack direction for C alloca" >&5
12045 12047
12046 cat > conftest.$ac_ext <<EOF 12048 cat > conftest.$ac_ext <<EOF
12047 #line 12048 "configure" 12049 #line 12050 "configure"
12048 #include "confdefs.h" 12050 #include "confdefs.h"
12049 find_stack_direction () 12051 find_stack_direction ()
12050 { 12052 {
12051 static char *addr = 0; 12053 static char *addr = 0;
12052 auto char dummy; 12054 auto char dummy;
12061 main () 12063 main ()
12062 { 12064 {
12063 exit (find_stack_direction() < 0); 12065 exit (find_stack_direction() < 0);
12064 } 12066 }
12065 EOF 12067 EOF
12066 if { (eval echo configure:12067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12068 if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12067 then 12069 then
12068 ac_cv_c_stack_direction=1 12070 ac_cv_c_stack_direction=1
12069 else 12071 else
12070 conftest_rc="$?" 12072 conftest_rc="$?"
12071 echo "configure: failed program was:" >&5 12073 echo "configure: failed program was:" >&5
12091 fi 12093 fi
12092 fi 12094 fi
12093 12095
12094 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 12096 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
12095 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 12097 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
12096 echo "configure:12097: checking for vfork.h" >&5 12098 echo "configure:12099: checking for vfork.h" >&5
12097 12099
12098 cat > conftest.$ac_ext <<EOF 12100 cat > conftest.$ac_ext <<EOF
12099 #line 12100 "configure" 12101 #line 12102 "configure"
12100 #include "confdefs.h" 12102 #include "confdefs.h"
12101 #include <vfork.h> 12103 #include <vfork.h>
12102 EOF 12104 EOF
12103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12104 { (eval echo configure:12105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12106 { (eval echo configure:12107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12106 if test -z "$ac_err"; then 12108 if test -z "$ac_err"; then
12107 rm -rf conftest* 12109 rm -rf conftest*
12108 eval "ac_cv_header_$ac_safe=yes" 12110 eval "ac_cv_header_$ac_safe=yes"
12109 else 12111 else
12127 else 12129 else
12128 echo "$ac_t""no" 1>&6 12130 echo "$ac_t""no" 1>&6
12129 fi 12131 fi
12130 12132
12131 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 12133 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
12132 echo "configure:12133: checking for working vfork" >&5 12134 echo "configure:12135: checking for working vfork" >&5
12133 12135
12134 cat > conftest.$ac_ext <<EOF 12136 cat > conftest.$ac_ext <<EOF
12135 #line 12136 "configure" 12137 #line 12138 "configure"
12136 #include "confdefs.h" 12138 #include "confdefs.h"
12137 /* Thanks to Paul Eggert for this test. */ 12139 /* Thanks to Paul Eggert for this test. */
12138 #include <stdio.h> 12140 #include <stdio.h>
12139 #include <sys/types.h> 12141 #include <sys/types.h>
12140 #include <sys/stat.h> 12142 #include <sys/stat.h>
12225 || fstat(fileno(stdout), &st) != 0 12227 || fstat(fileno(stdout), &st) != 0
12226 ); 12228 );
12227 } 12229 }
12228 } 12230 }
12229 EOF 12231 EOF
12230 if { (eval echo configure:12231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12232 if { (eval echo configure:12233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12231 then 12233 then
12232 ac_cv_func_vfork_works=yes 12234 ac_cv_func_vfork_works=yes
12233 else 12235 else
12234 conftest_rc="$?" 12236 conftest_rc="$?"
12235 echo "configure: failed program was:" >&5 12237 echo "configure: failed program was:" >&5
12251 12253
12252 fi 12254 fi
12253 12255
12254 12256
12255 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 12257 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
12256 echo "configure:12257: checking for working strcoll" >&5 12258 echo "configure:12259: checking for working strcoll" >&5
12257 12259
12258 cat > conftest.$ac_ext <<EOF 12260 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure" 12261 #line 12262 "configure"
12260 #include "confdefs.h" 12262 #include "confdefs.h"
12261 #include <string.h> 12263 #include <string.h>
12262 main () 12264 main ()
12263 { 12265 {
12264 exit (strcoll ("abc", "def") >= 0 || 12266 exit (strcoll ("abc", "def") >= 0 ||
12265 strcoll ("ABC", "DEF") >= 0 || 12267 strcoll ("ABC", "DEF") >= 0 ||
12266 strcoll ("123", "456") >= 0); 12268 strcoll ("123", "456") >= 0);
12267 } 12269 }
12268 EOF 12270 EOF
12269 if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12271 if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12270 then 12272 then
12271 ac_cv_func_strcoll_works=yes 12273 ac_cv_func_strcoll_works=yes
12272 else 12274 else
12273 conftest_rc="$?" 12275 conftest_rc="$?"
12274 echo "configure: failed program was:" >&5 12276 echo "configure: failed program was:" >&5
12292 12294
12293 12295
12294 for ac_func in getpgrp 12296 for ac_func in getpgrp
12295 do 12297 do
12296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 12298 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12297 echo "configure:12298: checking for $ac_func" >&5 12299 echo "configure:12300: checking for $ac_func" >&5
12298 12300
12299 cat > conftest.$ac_ext <<EOF 12301 cat > conftest.$ac_ext <<EOF
12300 #line 12301 "configure" 12302 #line 12303 "configure"
12301 #include "confdefs.h" 12303 #include "confdefs.h"
12302 /* System header to define __stub macros and hopefully few prototypes, 12304 /* System header to define __stub macros and hopefully few prototypes,
12303 which can conflict with char $ac_func(); below. */ 12305 which can conflict with char $ac_func(); below. */
12304 #include <assert.h> 12306 #include <assert.h>
12305 /* Override any gcc2 internal prototype to avoid an error. */ 12307 /* Override any gcc2 internal prototype to avoid an error. */
12318 $ac_func(); 12320 $ac_func();
12319 #endif 12321 #endif
12320 12322
12321 ; return 0; } 12323 ; return 0; }
12322 EOF 12324 EOF
12323 if { (eval echo configure:12324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12325 if { (eval echo configure:12326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12324 rm -rf conftest* 12326 rm -rf conftest*
12325 eval "ac_cv_func_$ac_func=yes" 12327 eval "ac_cv_func_$ac_func=yes"
12326 else 12328 else
12327 echo "configure: failed program was:" >&5 12329 echo "configure: failed program was:" >&5
12328 cat conftest.$ac_ext >&5 12330 cat conftest.$ac_ext >&5
12346 echo "$ac_t""no" 1>&6 12348 echo "$ac_t""no" 1>&6
12347 fi 12349 fi
12348 done 12350 done
12349 12351
12350 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 12352 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
12351 echo "configure:12352: checking whether getpgrp takes no argument" >&5 12353 echo "configure:12354: checking whether getpgrp takes no argument" >&5
12352 12354
12353 cat > conftest.$ac_ext <<EOF 12355 cat > conftest.$ac_ext <<EOF
12354 #line 12355 "configure" 12356 #line 12357 "configure"
12355 #include "confdefs.h" 12357 #include "confdefs.h"
12356 12358
12357 /* 12359 /*
12358 * If this system has a BSD-style getpgrp(), 12360 * If this system has a BSD-style getpgrp(),
12359 * which takes a pid argument, exit unsuccessfully. 12361 * which takes a pid argument, exit unsuccessfully.
12404 exit(s>>8); 12406 exit(s>>8);
12405 } 12407 }
12406 } 12408 }
12407 12409
12408 EOF 12410 EOF
12409 if { (eval echo configure:12410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12410 then 12412 then
12411 ac_cv_func_getpgrp_void=yes 12413 ac_cv_func_getpgrp_void=yes
12412 else 12414 else
12413 conftest_rc="$?" 12415 conftest_rc="$?"
12414 echo "configure: failed program was:" >&5 12416 echo "configure: failed program was:" >&5
12431 12433
12432 fi 12434 fi
12433 12435
12434 12436
12435 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 12437 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
12436 echo "configure:12437: checking for working mmap" >&5 12438 echo "configure:12439: checking for working mmap" >&5
12437 case "$opsys" in ultrix* ) have_mmap=no ;; *) 12439 case "$opsys" in ultrix* ) have_mmap=no ;; *)
12438 cat > conftest.$ac_ext <<EOF 12440 cat > conftest.$ac_ext <<EOF
12439 #line 12440 "configure" 12441 #line 12442 "configure"
12440 #include "confdefs.h" 12442 #include "confdefs.h"
12441 #include <stdio.h> 12443 #include <stdio.h>
12442 #include <unistd.h> 12444 #include <unistd.h>
12443 #include <fcntl.h> 12445 #include <fcntl.h>
12444 #include <sys/mman.h> 12446 #include <sys/mman.h>
12467 return 0; 12469 return 0;
12468 perror ("conftest: mmap failed"); 12470 perror ("conftest: mmap failed");
12469 return 1; 12471 return 1;
12470 } 12472 }
12471 EOF 12473 EOF
12472 if { (eval echo configure:12473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
12473 then 12475 then
12474 have_mmap=yes 12476 have_mmap=yes
12475 else 12477 else
12476 conftest_rc="$?" 12478 conftest_rc="$?"
12477 echo "configure: failed program was:" >&5 12479 echo "configure: failed program was:" >&5
12496 esac 12498 esac
12497 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no 12499 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no
12498 if test "$rel_alloc $have_mmap" = "default yes"; then 12500 if test "$rel_alloc $have_mmap" = "default yes"; then
12499 if test "$doug_lea_malloc" = "yes"; then 12501 if test "$doug_lea_malloc" = "yes"; then
12500 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 12502 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6
12501 echo "configure:12502: checking for M_MMAP_THRESHOLD" >&5 12503 echo "configure:12504: checking for M_MMAP_THRESHOLD" >&5
12502 cat > conftest.$ac_ext <<EOF 12504 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure" 12505 #line 12506 "configure"
12504 #include "confdefs.h" 12506 #include "confdefs.h"
12505 #include <malloc.h> 12507 #include <malloc.h>
12506 int main() { 12508 int main() {
12507 12509
12508 #ifndef M_MMAP_THRESHOLD 12510 #ifndef M_MMAP_THRESHOLD
12510 !@+$%^&*_)(_ - unlikely to compile... 12512 !@+$%^&*_)(_ - unlikely to compile...
12511 #endif 12513 #endif
12512 12514
12513 ; return 0; } 12515 ; return 0; }
12514 EOF 12516 EOF
12515 if { (eval echo configure:12516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 12517 if { (eval echo configure:12518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12516 rm -rf conftest* 12518 rm -rf conftest*
12517 rel_alloc=no; echo "$ac_t""yes" 1>&6; 12519 rel_alloc=no; echo "$ac_t""yes" 1>&6;
12518 else 12520 else
12519 echo "configure: failed program was:" >&5 12521 echo "configure: failed program was:" >&5
12520 cat conftest.$ac_ext >&5 12522 cat conftest.$ac_ext >&5
12535 } 12537 }
12536 12538
12537 12539
12538 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` 12540 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'`
12539 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 12541 echo $ac_n "checking for termios.h""... $ac_c" 1>&6
12540 echo "configure:12541: checking for termios.h" >&5 12542 echo "configure:12543: checking for termios.h" >&5
12541 12543
12542 cat > conftest.$ac_ext <<EOF 12544 cat > conftest.$ac_ext <<EOF
12543 #line 12544 "configure" 12545 #line 12546 "configure"
12544 #include "confdefs.h" 12546 #include "confdefs.h"
12545 #include <termios.h> 12547 #include <termios.h>
12546 EOF 12548 EOF
12547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12548 { (eval echo configure:12549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12550 { (eval echo configure:12551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12550 if test -z "$ac_err"; then 12552 if test -z "$ac_err"; then
12551 rm -rf conftest* 12553 rm -rf conftest*
12552 eval "ac_cv_header_$ac_safe=yes" 12554 eval "ac_cv_header_$ac_safe=yes"
12553 else 12555 else
12586 12588
12587 else 12589 else
12588 echo "$ac_t""no" 1>&6 12590 echo "$ac_t""no" 1>&6
12589 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` 12591 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'`
12590 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 12592 echo $ac_n "checking for termio.h""... $ac_c" 1>&6
12591 echo "configure:12592: checking for termio.h" >&5 12593 echo "configure:12594: checking for termio.h" >&5
12592 12594
12593 cat > conftest.$ac_ext <<EOF 12595 cat > conftest.$ac_ext <<EOF
12594 #line 12595 "configure" 12596 #line 12597 "configure"
12595 #include "confdefs.h" 12597 #include "confdefs.h"
12596 #include <termio.h> 12598 #include <termio.h>
12597 EOF 12599 EOF
12598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12599 { (eval echo configure:12600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12601 { (eval echo configure:12602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12601 if test -z "$ac_err"; then 12603 if test -z "$ac_err"; then
12602 rm -rf conftest* 12604 rm -rf conftest*
12603 eval "ac_cv_header_$ac_safe=yes" 12605 eval "ac_cv_header_$ac_safe=yes"
12604 else 12606 else
12626 fi 12628 fi
12627 12629
12628 12630
12629 12631
12630 echo $ac_n "checking for socket""... $ac_c" 1>&6 12632 echo $ac_n "checking for socket""... $ac_c" 1>&6
12631 echo "configure:12632: checking for socket" >&5 12633 echo "configure:12634: checking for socket" >&5
12632 12634
12633 cat > conftest.$ac_ext <<EOF 12635 cat > conftest.$ac_ext <<EOF
12634 #line 12635 "configure" 12636 #line 12637 "configure"
12635 #include "confdefs.h" 12637 #include "confdefs.h"
12636 /* System header to define __stub macros and hopefully few prototypes, 12638 /* System header to define __stub macros and hopefully few prototypes,
12637 which can conflict with char socket(); below. */ 12639 which can conflict with char socket(); below. */
12638 #include <assert.h> 12640 #include <assert.h>
12639 /* Override any gcc2 internal prototype to avoid an error. */ 12641 /* Override any gcc2 internal prototype to avoid an error. */
12652 socket(); 12654 socket();
12653 #endif 12655 #endif
12654 12656
12655 ; return 0; } 12657 ; return 0; }
12656 EOF 12658 EOF
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12659 if { (eval echo configure:12660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12658 rm -rf conftest* 12660 rm -rf conftest*
12659 eval "ac_cv_func_socket=yes" 12661 eval "ac_cv_func_socket=yes"
12660 else 12662 else
12661 echo "configure: failed program was:" >&5 12663 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5 12664 cat conftest.$ac_ext >&5
12667 12669
12668 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then 12670 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
12669 echo "$ac_t""yes" 1>&6 12671 echo "$ac_t""yes" 1>&6
12670 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 12672 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
12671 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 12673 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
12672 echo "configure:12673: checking for netinet/in.h" >&5 12674 echo "configure:12675: checking for netinet/in.h" >&5
12673 12675
12674 cat > conftest.$ac_ext <<EOF 12676 cat > conftest.$ac_ext <<EOF
12675 #line 12676 "configure" 12677 #line 12678 "configure"
12676 #include "confdefs.h" 12678 #include "confdefs.h"
12677 #include <netinet/in.h> 12679 #include <netinet/in.h>
12678 EOF 12680 EOF
12679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12680 { (eval echo configure:12681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12682 { (eval echo configure:12683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12682 if test -z "$ac_err"; then 12684 if test -z "$ac_err"; then
12683 rm -rf conftest* 12685 rm -rf conftest*
12684 eval "ac_cv_header_$ac_safe=yes" 12686 eval "ac_cv_header_$ac_safe=yes"
12685 else 12687 else
12692 rm -f conftest* 12694 rm -f conftest*
12693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12695 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12694 echo "$ac_t""yes" 1>&6 12696 echo "$ac_t""yes" 1>&6
12695 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 12697 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
12696 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 12698 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
12697 echo "configure:12698: checking for arpa/inet.h" >&5 12699 echo "configure:12700: checking for arpa/inet.h" >&5
12698 12700
12699 cat > conftest.$ac_ext <<EOF 12701 cat > conftest.$ac_ext <<EOF
12700 #line 12701 "configure" 12702 #line 12703 "configure"
12701 #include "confdefs.h" 12703 #include "confdefs.h"
12702 #include <arpa/inet.h> 12704 #include <arpa/inet.h>
12703 EOF 12705 EOF
12704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12705 { (eval echo configure:12706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12707 { (eval echo configure:12708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12707 if test -z "$ac_err"; then 12709 if test -z "$ac_err"; then
12708 rm -rf conftest* 12710 rm -rf conftest*
12709 eval "ac_cv_header_$ac_safe=yes" 12711 eval "ac_cv_header_$ac_safe=yes"
12710 else 12712 else
12725 #define HAVE_SOCKETS 1 12727 #define HAVE_SOCKETS 1
12726 EOF 12728 EOF
12727 } 12729 }
12728 12730
12729 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 12731 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6
12730 echo "configure:12731: checking "for sun_len member in struct sockaddr_un"" >&5 12732 echo "configure:12733: checking "for sun_len member in struct sockaddr_un"" >&5
12731 cat > conftest.$ac_ext <<EOF 12733 cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure" 12734 #line 12735 "configure"
12733 #include "confdefs.h" 12735 #include "confdefs.h"
12734 12736
12735 #include <sys/types.h> 12737 #include <sys/types.h>
12736 #include <sys/socket.h> 12738 #include <sys/socket.h>
12737 #include <sys/un.h> 12739 #include <sys/un.h>
12738 12740
12739 int main() { 12741 int main() {
12740 static struct sockaddr_un x; x.sun_len = 1; 12742 static struct sockaddr_un x; x.sun_len = 1;
12741 ; return 0; } 12743 ; return 0; }
12742 EOF 12744 EOF
12743 if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12745 if { (eval echo configure:12746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12744 rm -rf conftest* 12746 rm -rf conftest*
12745 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12747 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12746 Defining HAVE_SOCKADDR_SUN_LEN 12748 Defining HAVE_SOCKADDR_SUN_LEN
12747 EOF 12749 EOF
12748 cat >> confdefs.h <<\EOF 12750 cat >> confdefs.h <<\EOF
12756 rm -rf conftest* 12758 rm -rf conftest*
12757 echo "$ac_t""no" 1>&6 12759 echo "$ac_t""no" 1>&6
12758 fi 12760 fi
12759 rm -f conftest* 12761 rm -f conftest*
12760 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 12762 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6
12761 echo "configure:12762: checking "for ip_mreq struct in netinet/in.h"" >&5 12763 echo "configure:12764: checking "for ip_mreq struct in netinet/in.h"" >&5
12762 cat > conftest.$ac_ext <<EOF 12764 cat > conftest.$ac_ext <<EOF
12763 #line 12764 "configure" 12765 #line 12766 "configure"
12764 #include "confdefs.h" 12766 #include "confdefs.h"
12765 12767
12766 #include <sys/types.h> 12768 #include <sys/types.h>
12767 #include <netinet/in.h> 12769 #include <netinet/in.h>
12768 12770
12769 int main() { 12771 int main() {
12770 static struct ip_mreq x; 12772 static struct ip_mreq x;
12771 ; return 0; } 12773 ; return 0; }
12772 EOF 12774 EOF
12773 if { (eval echo configure:12774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12775 if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12774 rm -rf conftest* 12776 rm -rf conftest*
12775 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF 12777 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF
12776 Defining HAVE_MULTICAST 12778 Defining HAVE_MULTICAST
12777 EOF 12779 EOF
12778 cat >> confdefs.h <<\EOF 12780 cat >> confdefs.h <<\EOF
12799 echo "$ac_t""no" 1>&6 12801 echo "$ac_t""no" 1>&6
12800 fi 12802 fi
12801 12803
12802 12804
12803 echo $ac_n "checking for msgget""... $ac_c" 1>&6 12805 echo $ac_n "checking for msgget""... $ac_c" 1>&6
12804 echo "configure:12805: checking for msgget" >&5 12806 echo "configure:12807: checking for msgget" >&5
12805 12807
12806 cat > conftest.$ac_ext <<EOF 12808 cat > conftest.$ac_ext <<EOF
12807 #line 12808 "configure" 12809 #line 12810 "configure"
12808 #include "confdefs.h" 12810 #include "confdefs.h"
12809 /* System header to define __stub macros and hopefully few prototypes, 12811 /* System header to define __stub macros and hopefully few prototypes,
12810 which can conflict with char msgget(); below. */ 12812 which can conflict with char msgget(); below. */
12811 #include <assert.h> 12813 #include <assert.h>
12812 /* Override any gcc2 internal prototype to avoid an error. */ 12814 /* Override any gcc2 internal prototype to avoid an error. */
12825 msgget(); 12827 msgget();
12826 #endif 12828 #endif
12827 12829
12828 ; return 0; } 12830 ; return 0; }
12829 EOF 12831 EOF
12830 if { (eval echo configure:12831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 12832 if { (eval echo configure:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12831 rm -rf conftest* 12833 rm -rf conftest*
12832 eval "ac_cv_func_msgget=yes" 12834 eval "ac_cv_func_msgget=yes"
12833 else 12835 else
12834 echo "configure: failed program was:" >&5 12836 echo "configure: failed program was:" >&5
12835 cat conftest.$ac_ext >&5 12837 cat conftest.$ac_ext >&5
12840 12842
12841 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then 12843 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then
12842 echo "$ac_t""yes" 1>&6 12844 echo "$ac_t""yes" 1>&6
12843 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` 12845 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'`
12844 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 12846 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6
12845 echo "configure:12846: checking for sys/ipc.h" >&5 12847 echo "configure:12848: checking for sys/ipc.h" >&5
12846 12848
12847 cat > conftest.$ac_ext <<EOF 12849 cat > conftest.$ac_ext <<EOF
12848 #line 12849 "configure" 12850 #line 12851 "configure"
12849 #include "confdefs.h" 12851 #include "confdefs.h"
12850 #include <sys/ipc.h> 12852 #include <sys/ipc.h>
12851 EOF 12853 EOF
12852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12853 { (eval echo configure:12854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12855 { (eval echo configure:12856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12855 if test -z "$ac_err"; then 12857 if test -z "$ac_err"; then
12856 rm -rf conftest* 12858 rm -rf conftest*
12857 eval "ac_cv_header_$ac_safe=yes" 12859 eval "ac_cv_header_$ac_safe=yes"
12858 else 12860 else
12865 rm -f conftest* 12867 rm -f conftest*
12866 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 12868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12867 echo "$ac_t""yes" 1>&6 12869 echo "$ac_t""yes" 1>&6
12868 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` 12870 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'`
12869 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 12871 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6
12870 echo "configure:12871: checking for sys/msg.h" >&5 12872 echo "configure:12873: checking for sys/msg.h" >&5
12871 12873
12872 cat > conftest.$ac_ext <<EOF 12874 cat > conftest.$ac_ext <<EOF
12873 #line 12874 "configure" 12875 #line 12876 "configure"
12874 #include "confdefs.h" 12876 #include "confdefs.h"
12875 #include <sys/msg.h> 12877 #include <sys/msg.h>
12876 EOF 12878 EOF
12877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12878 { (eval echo configure:12879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12880 { (eval echo configure:12881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12880 if test -z "$ac_err"; then 12882 if test -z "$ac_err"; then
12881 rm -rf conftest* 12883 rm -rf conftest*
12882 eval "ac_cv_header_$ac_safe=yes" 12884 eval "ac_cv_header_$ac_safe=yes"
12883 else 12885 else
12911 fi 12913 fi
12912 12914
12913 12915
12914 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` 12916 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'`
12915 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 12917 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6
12916 echo "configure:12917: checking for dirent.h" >&5 12918 echo "configure:12919: checking for dirent.h" >&5
12917 12919
12918 cat > conftest.$ac_ext <<EOF 12920 cat > conftest.$ac_ext <<EOF
12919 #line 12920 "configure" 12921 #line 12922 "configure"
12920 #include "confdefs.h" 12922 #include "confdefs.h"
12921 #include <dirent.h> 12923 #include <dirent.h>
12922 EOF 12924 EOF
12923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12924 { (eval echo configure:12925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12926 { (eval echo configure:12927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12926 if test -z "$ac_err"; then 12928 if test -z "$ac_err"; then
12927 rm -rf conftest* 12929 rm -rf conftest*
12928 eval "ac_cv_header_$ac_safe=yes" 12930 eval "ac_cv_header_$ac_safe=yes"
12929 else 12931 else
12946 12948
12947 else 12949 else
12948 echo "$ac_t""no" 1>&6 12950 echo "$ac_t""no" 1>&6
12949 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` 12951 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'`
12950 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 12952 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6
12951 echo "configure:12952: checking for sys/dir.h" >&5 12953 echo "configure:12954: checking for sys/dir.h" >&5
12952 12954
12953 cat > conftest.$ac_ext <<EOF 12955 cat > conftest.$ac_ext <<EOF
12954 #line 12955 "configure" 12956 #line 12957 "configure"
12955 #include "confdefs.h" 12957 #include "confdefs.h"
12956 #include <sys/dir.h> 12958 #include <sys/dir.h>
12957 EOF 12959 EOF
12958 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 12960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12959 { (eval echo configure:12960: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 12961 { (eval echo configure:12962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12960 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 12962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12961 if test -z "$ac_err"; then 12963 if test -z "$ac_err"; then
12962 rm -rf conftest* 12964 rm -rf conftest*
12963 eval "ac_cv_header_$ac_safe=yes" 12965 eval "ac_cv_header_$ac_safe=yes"
12964 else 12966 else
12987 fi 12989 fi
12988 12990
12989 12991
12990 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 12992 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
12991 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 12993 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
12992 echo "configure:12993: checking for nlist.h" >&5 12994 echo "configure:12995: checking for nlist.h" >&5
12993 12995
12994 cat > conftest.$ac_ext <<EOF 12996 cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure" 12997 #line 12998 "configure"
12996 #include "confdefs.h" 12998 #include "confdefs.h"
12997 #include <nlist.h> 12999 #include <nlist.h>
12998 EOF 13000 EOF
12999 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13000 { (eval echo configure:13001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13002 { (eval echo configure:13003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13001 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13002 if test -z "$ac_err"; then 13004 if test -z "$ac_err"; then
13003 rm -rf conftest* 13005 rm -rf conftest*
13004 eval "ac_cv_header_$ac_safe=yes" 13006 eval "ac_cv_header_$ac_safe=yes"
13005 else 13007 else
13025 fi 13027 fi
13026 13028
13027 13029
13028 13030
13029 echo "checking "for sound support"" 1>&6 13031 echo "checking "for sound support"" 1>&6
13030 echo "configure:13031: checking "for sound support"" >&5 13032 echo "configure:13033: checking "for sound support"" >&5
13031 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes 13033 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes
13032 13034
13033 if test "$with_native_sound" != "no"; then 13035 if test "$with_native_sound" != "no"; then
13034 if test -n "$native_sound_lib"; then 13036 if test -n "$native_sound_lib"; then
13035 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` 13037 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'`
13036 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 13038 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6
13037 echo "configure:13038: checking for multimedia/audio_device.h" >&5 13039 echo "configure:13040: checking for multimedia/audio_device.h" >&5
13038 13040
13039 cat > conftest.$ac_ext <<EOF 13041 cat > conftest.$ac_ext <<EOF
13040 #line 13041 "configure" 13042 #line 13043 "configure"
13041 #include "confdefs.h" 13043 #include "confdefs.h"
13042 #include <multimedia/audio_device.h> 13044 #include <multimedia/audio_device.h>
13043 EOF 13045 EOF
13044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13045 { (eval echo configure:13046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13047 { (eval echo configure:13048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13047 if test -z "$ac_err"; then 13049 if test -z "$ac_err"; then
13048 rm -rf conftest* 13050 rm -rf conftest*
13049 eval "ac_cv_header_$ac_safe=yes" 13051 eval "ac_cv_header_$ac_safe=yes"
13050 else 13052 else
13088 case "$canonical" in 13090 case "$canonical" in
13089 *-sgi-* ) 13091 *-sgi-* )
13090 if test -z "$native_sound_lib"; then 13092 if test -z "$native_sound_lib"; then
13091 13093
13092 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 13094 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6
13093 echo "configure:13094: checking for ALopenport in -laudio" >&5 13095 echo "configure:13096: checking for ALopenport in -laudio" >&5
13094 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` 13096 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'`
13095 13097
13096 xe_check_libs=" -laudio " 13098 xe_check_libs=" -laudio "
13097 cat > conftest.$ac_ext <<EOF 13099 cat > conftest.$ac_ext <<EOF
13098 #line 13099 "configure" 13100 #line 13101 "configure"
13099 #include "confdefs.h" 13101 #include "confdefs.h"
13100 /* Override any gcc2 internal prototype to avoid an error. */ 13102 /* Override any gcc2 internal prototype to avoid an error. */
13101 /* We use char because int might match the return type of a gcc2 13103 /* We use char because int might match the return type of a gcc2
13102 builtin and then its argument prototype would still apply. */ 13104 builtin and then its argument prototype would still apply. */
13103 char ALopenport(); 13105 char ALopenport();
13104 13106
13105 int main() { 13107 int main() {
13106 ALopenport() 13108 ALopenport()
13107 ; return 0; } 13109 ; return 0; }
13108 EOF 13110 EOF
13109 if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13111 if { (eval echo configure:13112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13110 rm -rf conftest* 13112 rm -rf conftest*
13111 eval "ac_cv_lib_$ac_lib_var=yes" 13113 eval "ac_cv_lib_$ac_lib_var=yes"
13112 else 13114 else
13113 echo "configure: failed program was:" >&5 13115 echo "configure: failed program was:" >&5
13114 cat conftest.$ac_ext >&5 13116 cat conftest.$ac_ext >&5
13135 fi ;; 13137 fi ;;
13136 hppa*-hp-hpux* ) 13138 hppa*-hp-hpux* )
13137 if test -z "$native_sound_lib"; then 13139 if test -z "$native_sound_lib"; then
13138 13140
13139 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 13141 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6
13140 echo "configure:13141: checking for AOpenAudio in -lAlib" >&5 13142 echo "configure:13143: checking for AOpenAudio in -lAlib" >&5
13141 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` 13143 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'`
13142 13144
13143 xe_check_libs=" -lAlib " 13145 xe_check_libs=" -lAlib "
13144 cat > conftest.$ac_ext <<EOF 13146 cat > conftest.$ac_ext <<EOF
13145 #line 13146 "configure" 13147 #line 13148 "configure"
13146 #include "confdefs.h" 13148 #include "confdefs.h"
13147 /* Override any gcc2 internal prototype to avoid an error. */ 13149 /* Override any gcc2 internal prototype to avoid an error. */
13148 /* We use char because int might match the return type of a gcc2 13150 /* We use char because int might match the return type of a gcc2
13149 builtin and then its argument prototype would still apply. */ 13151 builtin and then its argument prototype would still apply. */
13150 char AOpenAudio(); 13152 char AOpenAudio();
13151 13153
13152 int main() { 13154 int main() {
13153 AOpenAudio() 13155 AOpenAudio()
13154 ; return 0; } 13156 ; return 0; }
13155 EOF 13157 EOF
13156 if { (eval echo configure:13157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13158 if { (eval echo configure:13159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13157 rm -rf conftest* 13159 rm -rf conftest*
13158 eval "ac_cv_lib_$ac_lib_var=yes" 13160 eval "ac_cv_lib_$ac_lib_var=yes"
13159 else 13161 else
13160 echo "configure: failed program was:" >&5 13162 echo "configure: failed program was:" >&5
13161 cat conftest.$ac_ext >&5 13163 cat conftest.$ac_ext >&5
13187 esac 13189 esac
13188 fi 13190 fi
13189 13191
13190 if test -z "$sound_found"; then 13192 if test -z "$sound_found"; then
13191 if test "$with_msw" = "yes"; then 13193 if test "$with_msw" = "yes"; then
13192 sound_found=yes 13194 sound_found=yes
13193 native_sound_lib= 13195 native_sound_lib=
13196 extra_objs="$extra_objs ntplay.o" && if test "$extra_verbose" = "yes"; then
13197 echo " xemacs will be linked with \"ntplay.o\""
13198 fi
13194 fi 13199 fi
13195 fi 13200 fi
13196 13201
13197 if test -z "$sound_found"; then 13202 if test -z "$sound_found"; then
13198 for dir in "machine" "sys" "linux"; do 13203 for dir in "machine" "sys" "linux"; do
13199 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` 13204 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'`
13200 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 13205 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6
13201 echo "configure:13202: checking for ${dir}/soundcard.h" >&5 13206 echo "configure:13207: checking for ${dir}/soundcard.h" >&5
13202 13207
13203 cat > conftest.$ac_ext <<EOF 13208 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure" 13209 #line 13210 "configure"
13205 #include "confdefs.h" 13210 #include "confdefs.h"
13206 #include <${dir}/soundcard.h> 13211 #include <${dir}/soundcard.h>
13207 EOF 13212 EOF
13208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13209 { (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13214 { (eval echo configure:13215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13211 if test -z "$ac_err"; then 13216 if test -z "$ac_err"; then
13212 rm -rf conftest* 13217 rm -rf conftest*
13213 eval "ac_cv_header_$ac_safe=yes" 13218 eval "ac_cv_header_$ac_safe=yes"
13214 else 13219 else
13258 fi 13263 fi
13259 13264
13260 if test "$with_nas_sound" != "no"; then 13265 if test "$with_nas_sound" != "no"; then
13261 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` 13266 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'`
13262 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 13267 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6
13263 echo "configure:13264: checking for audio/audiolib.h" >&5 13268 echo "configure:13269: checking for audio/audiolib.h" >&5
13264 13269
13265 cat > conftest.$ac_ext <<EOF 13270 cat > conftest.$ac_ext <<EOF
13266 #line 13267 "configure" 13271 #line 13272 "configure"
13267 #include "confdefs.h" 13272 #include "confdefs.h"
13268 #include <audio/audiolib.h> 13273 #include <audio/audiolib.h>
13269 EOF 13274 EOF
13270 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13271 { (eval echo configure:13272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13276 { (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13272 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13273 if test -z "$ac_err"; then 13278 if test -z "$ac_err"; then
13274 rm -rf conftest* 13279 rm -rf conftest*
13275 eval "ac_cv_header_$ac_safe=yes" 13280 eval "ac_cv_header_$ac_safe=yes"
13276 else 13281 else
13284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 13289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13285 echo "$ac_t""yes" 1>&6 13290 echo "$ac_t""yes" 1>&6
13286 13291
13287 13292
13288 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 13293 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6
13289 echo "configure:13290: checking for AuOpenServer in -laudio" >&5 13294 echo "configure:13295: checking for AuOpenServer in -laudio" >&5
13290 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` 13295 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'`
13291 13296
13292 xe_check_libs=" -laudio " 13297 xe_check_libs=" -laudio "
13293 cat > conftest.$ac_ext <<EOF 13298 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure" 13299 #line 13300 "configure"
13295 #include "confdefs.h" 13300 #include "confdefs.h"
13296 /* Override any gcc2 internal prototype to avoid an error. */ 13301 /* Override any gcc2 internal prototype to avoid an error. */
13297 /* We use char because int might match the return type of a gcc2 13302 /* We use char because int might match the return type of a gcc2
13298 builtin and then its argument prototype would still apply. */ 13303 builtin and then its argument prototype would still apply. */
13299 char AuOpenServer(); 13304 char AuOpenServer();
13300 13305
13301 int main() { 13306 int main() {
13302 AuOpenServer() 13307 AuOpenServer()
13303 ; return 0; } 13308 ; return 0; }
13304 EOF 13309 EOF
13305 if { (eval echo configure:13306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13310 if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13306 rm -rf conftest* 13311 rm -rf conftest*
13307 eval "ac_cv_lib_$ac_lib_var=yes" 13312 eval "ac_cv_lib_$ac_lib_var=yes"
13308 else 13313 else
13309 echo "configure: failed program was:" >&5 13314 echo "configure: failed program was:" >&5
13310 cat conftest.$ac_ext >&5 13315 cat conftest.$ac_ext >&5
13339 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then 13344 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then
13340 echo " xemacs will be linked with \"nas.o\"" 13345 echo " xemacs will be linked with \"nas.o\""
13341 fi 13346 fi
13342 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi 13347 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi
13343 cat > conftest.$ac_ext <<EOF 13348 cat > conftest.$ac_ext <<EOF
13344 #line 13345 "configure" 13349 #line 13350 "configure"
13345 #include "confdefs.h" 13350 #include "confdefs.h"
13346 #include <audio/Xtutil.h> 13351 #include <audio/Xtutil.h>
13347 EOF 13352 EOF
13348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13349 egrep "AuXtErrorJump" >/dev/null 2>&1; then 13354 egrep "AuXtErrorJump" >/dev/null 2>&1; then
13370 13375
13371 if test "$with_esd_sound" != "no"; then 13376 if test "$with_esd_sound" != "no"; then
13372 # Extract the first word of "esd-config", so it can be a program name with args. 13377 # Extract the first word of "esd-config", so it can be a program name with args.
13373 set dummy esd-config; ac_word=$2 13378 set dummy esd-config; ac_word=$2
13374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 13379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13375 echo "configure:13376: checking for $ac_word" >&5 13380 echo "configure:13381: checking for $ac_word" >&5
13376 13381
13377 if test -n "$have_esd_config"; then 13382 if test -n "$have_esd_config"; then
13378 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. 13383 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test.
13379 else 13384 else
13380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 13385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13399 if test "$have_esd_config" = "yes"; then 13404 if test "$have_esd_config" = "yes"; then
13400 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" 13405 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS"
13401 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 13406 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
13402 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi 13407 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi
13403 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 13408 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6
13404 echo "configure:13405: checking for esd_play_stream" >&5 13409 echo "configure:13410: checking for esd_play_stream" >&5
13405 13410
13406 cat > conftest.$ac_ext <<EOF 13411 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure" 13412 #line 13413 "configure"
13408 #include "confdefs.h" 13413 #include "confdefs.h"
13409 /* System header to define __stub macros and hopefully few prototypes, 13414 /* System header to define __stub macros and hopefully few prototypes,
13410 which can conflict with char esd_play_stream(); below. */ 13415 which can conflict with char esd_play_stream(); below. */
13411 #include <assert.h> 13416 #include <assert.h>
13412 /* Override any gcc2 internal prototype to avoid an error. */ 13417 /* Override any gcc2 internal prototype to avoid an error. */
13425 esd_play_stream(); 13430 esd_play_stream();
13426 #endif 13431 #endif
13427 13432
13428 ; return 0; } 13433 ; return 0; }
13429 EOF 13434 EOF
13430 if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13435 if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13431 rm -rf conftest* 13436 rm -rf conftest*
13432 eval "ac_cv_func_esd_play_stream=yes" 13437 eval "ac_cv_func_esd_play_stream=yes"
13433 else 13438 else
13434 echo "configure: failed program was:" >&5 13439 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5 13440 cat conftest.$ac_ext >&5
13476 13481
13477 test -z "$with_tty" && with_tty=yes 13482 test -z "$with_tty" && with_tty=yes
13478 13483
13479 if test "$with_tty" = "yes" ; then 13484 if test "$with_tty" = "yes" ; then
13480 echo "checking for TTY-related features" 1>&6 13485 echo "checking for TTY-related features" 1>&6
13481 echo "configure:13482: checking for TTY-related features" >&5 13486 echo "configure:13487: checking for TTY-related features" >&5
13482 { test "$extra_verbose" = "yes" && cat << \EOF 13487 { test "$extra_verbose" = "yes" && cat << \EOF
13483 Defining HAVE_TTY 13488 Defining HAVE_TTY
13484 EOF 13489 EOF
13485 cat >> confdefs.h <<\EOF 13490 cat >> confdefs.h <<\EOF
13486 #define HAVE_TTY 1 13491 #define HAVE_TTY 1
13492 fi 13497 fi
13493 13498
13494 if test -z "$with_ncurses"; then 13499 if test -z "$with_ncurses"; then
13495 13500
13496 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 13501 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
13497 echo "configure:13498: checking for tgetent in -lncurses" >&5 13502 echo "configure:13503: checking for tgetent in -lncurses" >&5
13498 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 13503 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
13499 13504
13500 xe_check_libs=" -lncurses " 13505 xe_check_libs=" -lncurses "
13501 cat > conftest.$ac_ext <<EOF 13506 cat > conftest.$ac_ext <<EOF
13502 #line 13503 "configure" 13507 #line 13508 "configure"
13503 #include "confdefs.h" 13508 #include "confdefs.h"
13504 /* Override any gcc2 internal prototype to avoid an error. */ 13509 /* Override any gcc2 internal prototype to avoid an error. */
13505 /* We use char because int might match the return type of a gcc2 13510 /* We use char because int might match the return type of a gcc2
13506 builtin and then its argument prototype would still apply. */ 13511 builtin and then its argument prototype would still apply. */
13507 char tgetent(); 13512 char tgetent();
13508 13513
13509 int main() { 13514 int main() {
13510 tgetent() 13515 tgetent()
13511 ; return 0; } 13516 ; return 0; }
13512 EOF 13517 EOF
13513 if { (eval echo configure:13514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13518 if { (eval echo configure:13519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13514 rm -rf conftest* 13519 rm -rf conftest*
13515 eval "ac_cv_lib_$ac_lib_var=yes" 13520 eval "ac_cv_lib_$ac_lib_var=yes"
13516 else 13521 else
13517 echo "configure: failed program was:" >&5 13522 echo "configure: failed program was:" >&5
13518 cat conftest.$ac_ext >&5 13523 cat conftest.$ac_ext >&5
13541 EOF 13546 EOF
13542 } 13547 }
13543 13548
13544 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13549 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13545 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13550 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13546 echo "configure:13547: checking for ncurses/curses.h" >&5 13551 echo "configure:13552: checking for ncurses/curses.h" >&5
13547 13552
13548 cat > conftest.$ac_ext <<EOF 13553 cat > conftest.$ac_ext <<EOF
13549 #line 13550 "configure" 13554 #line 13555 "configure"
13550 #include "confdefs.h" 13555 #include "confdefs.h"
13551 #include <ncurses/curses.h> 13556 #include <ncurses/curses.h>
13552 EOF 13557 EOF
13553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13554 { (eval echo configure:13555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13559 { (eval echo configure:13560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13556 if test -z "$ac_err"; then 13561 if test -z "$ac_err"; then
13557 rm -rf conftest* 13562 rm -rf conftest*
13558 eval "ac_cv_header_$ac_safe=yes" 13563 eval "ac_cv_header_$ac_safe=yes"
13559 else 13564 else
13571 echo "$ac_t""no" 1>&6 13576 echo "$ac_t""no" 1>&6
13572 fi 13577 fi
13573 13578
13574 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` 13579 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'`
13575 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 13580 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6
13576 echo "configure:13577: checking for ncurses/term.h" >&5 13581 echo "configure:13582: checking for ncurses/term.h" >&5
13577 13582
13578 cat > conftest.$ac_ext <<EOF 13583 cat > conftest.$ac_ext <<EOF
13579 #line 13580 "configure" 13584 #line 13585 "configure"
13580 #include "confdefs.h" 13585 #include "confdefs.h"
13581 #include <ncurses/term.h> 13586 #include <ncurses/term.h>
13582 EOF 13587 EOF
13583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13584 { (eval echo configure:13585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13589 { (eval echo configure:13590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13586 if test -z "$ac_err"; then 13591 if test -z "$ac_err"; then
13587 rm -rf conftest* 13592 rm -rf conftest*
13588 eval "ac_cv_header_$ac_safe=yes" 13593 eval "ac_cv_header_$ac_safe=yes"
13589 else 13594 else
13609 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then 13614 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then
13610 save_c_switch_site="$c_switch_site" 13615 save_c_switch_site="$c_switch_site"
13611 c_switch_site="$c_switch_site -I/usr/include/ncurses" 13616 c_switch_site="$c_switch_site -I/usr/include/ncurses"
13612 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` 13617 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'`
13613 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 13618 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6
13614 echo "configure:13615: checking for ncurses/curses.h" >&5 13619 echo "configure:13620: checking for ncurses/curses.h" >&5
13615 13620
13616 cat > conftest.$ac_ext <<EOF 13621 cat > conftest.$ac_ext <<EOF
13617 #line 13618 "configure" 13622 #line 13623 "configure"
13618 #include "confdefs.h" 13623 #include "confdefs.h"
13619 #include <ncurses/curses.h> 13624 #include <ncurses/curses.h>
13620 EOF 13625 EOF
13621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13622 { (eval echo configure:13623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13627 { (eval echo configure:13628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13624 if test -z "$ac_err"; then 13629 if test -z "$ac_err"; then
13625 rm -rf conftest* 13630 rm -rf conftest*
13626 eval "ac_cv_header_$ac_safe=yes" 13631 eval "ac_cv_header_$ac_safe=yes"
13627 else 13632 else
13652 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13657 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13653 else 13658 else
13654 for lib in curses termlib termcap; do 13659 for lib in curses termlib termcap; do
13655 13660
13656 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 13661 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6
13657 echo "configure:13658: checking for tgetent in -l$lib" >&5 13662 echo "configure:13663: checking for tgetent in -l$lib" >&5
13658 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` 13663 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'`
13659 13664
13660 xe_check_libs=" -l$lib " 13665 xe_check_libs=" -l$lib "
13661 cat > conftest.$ac_ext <<EOF 13666 cat > conftest.$ac_ext <<EOF
13662 #line 13663 "configure" 13667 #line 13668 "configure"
13663 #include "confdefs.h" 13668 #include "confdefs.h"
13664 /* Override any gcc2 internal prototype to avoid an error. */ 13669 /* Override any gcc2 internal prototype to avoid an error. */
13665 /* We use char because int might match the return type of a gcc2 13670 /* We use char because int might match the return type of a gcc2
13666 builtin and then its argument prototype would still apply. */ 13671 builtin and then its argument prototype would still apply. */
13667 char tgetent(); 13672 char tgetent();
13668 13673
13669 int main() { 13674 int main() {
13670 tgetent() 13675 tgetent()
13671 ; return 0; } 13676 ; return 0; }
13672 EOF 13677 EOF
13673 if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13674 rm -rf conftest* 13679 rm -rf conftest*
13675 eval "ac_cv_lib_$ac_lib_var=yes" 13680 eval "ac_cv_lib_$ac_lib_var=yes"
13676 else 13681 else
13677 echo "configure: failed program was:" >&5 13682 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5 13683 cat conftest.$ac_ext >&5
13699 if test -n "$libs_termcap"; then 13704 if test -n "$libs_termcap"; then
13700 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi 13705 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi
13701 else 13706 else
13702 13707
13703 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 13708 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
13704 echo "configure:13705: checking for tgetent in -lcurses" >&5 13709 echo "configure:13710: checking for tgetent in -lcurses" >&5
13705 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 13710 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
13706 13711
13707 xe_check_libs=" -lcurses " 13712 xe_check_libs=" -lcurses "
13708 cat > conftest.$ac_ext <<EOF 13713 cat > conftest.$ac_ext <<EOF
13709 #line 13710 "configure" 13714 #line 13715 "configure"
13710 #include "confdefs.h" 13715 #include "confdefs.h"
13711 /* Override any gcc2 internal prototype to avoid an error. */ 13716 /* Override any gcc2 internal prototype to avoid an error. */
13712 /* We use char because int might match the return type of a gcc2 13717 /* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */ 13718 builtin and then its argument prototype would still apply. */
13714 char tgetent(); 13719 char tgetent();
13715 13720
13716 int main() { 13721 int main() {
13717 tgetent() 13722 tgetent()
13718 ; return 0; } 13723 ; return 0; }
13719 EOF 13724 EOF
13720 if { (eval echo configure:13721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13721 rm -rf conftest* 13726 rm -rf conftest*
13722 eval "ac_cv_lib_$ac_lib_var=yes" 13727 eval "ac_cv_lib_$ac_lib_var=yes"
13723 else 13728 else
13724 echo "configure: failed program was:" >&5 13729 echo "configure: failed program was:" >&5
13725 cat conftest.$ac_ext >&5 13730 cat conftest.$ac_ext >&5
13733 echo "$ac_t""yes" 1>&6 13738 echo "$ac_t""yes" 1>&6
13734 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi 13739 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi
13735 else 13740 else
13736 echo "$ac_t""no" 1>&6 13741 echo "$ac_t""no" 1>&6
13737 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 13742 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
13738 echo "configure:13739: checking for tgetent in -ltermcap" >&5 13743 echo "configure:13744: checking for tgetent in -ltermcap" >&5
13739 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 13744 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
13740 13745
13741 xe_check_libs=" -ltermcap " 13746 xe_check_libs=" -ltermcap "
13742 cat > conftest.$ac_ext <<EOF 13747 cat > conftest.$ac_ext <<EOF
13743 #line 13744 "configure" 13748 #line 13749 "configure"
13744 #include "confdefs.h" 13749 #include "confdefs.h"
13745 /* Override any gcc2 internal prototype to avoid an error. */ 13750 /* Override any gcc2 internal prototype to avoid an error. */
13746 /* We use char because int might match the return type of a gcc2 13751 /* We use char because int might match the return type of a gcc2
13747 builtin and then its argument prototype would still apply. */ 13752 builtin and then its argument prototype would still apply. */
13748 char tgetent(); 13753 char tgetent();
13749 13754
13750 int main() { 13755 int main() {
13751 tgetent() 13756 tgetent()
13752 ; return 0; } 13757 ; return 0; }
13753 EOF 13758 EOF
13754 if { (eval echo configure:13755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13759 if { (eval echo configure:13760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13755 rm -rf conftest* 13760 rm -rf conftest*
13756 eval "ac_cv_lib_$ac_lib_var=yes" 13761 eval "ac_cv_lib_$ac_lib_var=yes"
13757 else 13762 else
13758 echo "configure: failed program was:" >&5 13763 echo "configure: failed program was:" >&5
13759 cat conftest.$ac_ext >&5 13764 cat conftest.$ac_ext >&5
13797 } 13802 }
13798 13803
13799 13804
13800 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` 13805 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'`
13801 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 13806 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6
13802 echo "configure:13803: checking for gpm.h" >&5 13807 echo "configure:13808: checking for gpm.h" >&5
13803 13808
13804 cat > conftest.$ac_ext <<EOF 13809 cat > conftest.$ac_ext <<EOF
13805 #line 13806 "configure" 13810 #line 13811 "configure"
13806 #include "confdefs.h" 13811 #include "confdefs.h"
13807 #include <gpm.h> 13812 #include <gpm.h>
13808 EOF 13813 EOF
13809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13810 { (eval echo configure:13811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13815 { (eval echo configure:13816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13812 if test -z "$ac_err"; then 13817 if test -z "$ac_err"; then
13813 rm -rf conftest* 13818 rm -rf conftest*
13814 eval "ac_cv_header_$ac_safe=yes" 13819 eval "ac_cv_header_$ac_safe=yes"
13815 else 13820 else
13828 with_gpm=no 13833 with_gpm=no
13829 fi 13834 fi
13830 } 13835 }
13831 test -z "$with_gpm" && { 13836 test -z "$with_gpm" && {
13832 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 13837 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
13833 echo "configure:13834: checking for Gpm_Open in -lgpm" >&5 13838 echo "configure:13839: checking for Gpm_Open in -lgpm" >&5
13834 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` 13839 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
13835 13840
13836 xe_check_libs=" -lgpm " 13841 xe_check_libs=" -lgpm "
13837 cat > conftest.$ac_ext <<EOF 13842 cat > conftest.$ac_ext <<EOF
13838 #line 13839 "configure" 13843 #line 13844 "configure"
13839 #include "confdefs.h" 13844 #include "confdefs.h"
13840 /* Override any gcc2 internal prototype to avoid an error. */ 13845 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2 13846 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */ 13847 builtin and then its argument prototype would still apply. */
13843 char Gpm_Open(); 13848 char Gpm_Open();
13844 13849
13845 int main() { 13850 int main() {
13846 Gpm_Open() 13851 Gpm_Open()
13847 ; return 0; } 13852 ; return 0; }
13848 EOF 13853 EOF
13849 if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13854 if { (eval echo configure:13855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13850 rm -rf conftest* 13855 rm -rf conftest*
13851 eval "ac_cv_lib_$ac_lib_var=yes" 13856 eval "ac_cv_lib_$ac_lib_var=yes"
13852 else 13857 else
13853 echo "configure: failed program was:" >&5 13858 echo "configure: failed program was:" >&5
13854 cat conftest.$ac_ext >&5 13859 cat conftest.$ac_ext >&5
13894 fi 13899 fi
13895 13900
13896 13901
13897 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ 13902 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \
13898 != "no no no" && echo "checking for database support" 1>&6 13903 != "no no no" && echo "checking for database support" 1>&6
13899 echo "configure:13900: checking for database support" >&5 13904 echo "configure:13905: checking for database support" >&5
13900 13905
13901 if test "$with_database_gdbm $with_database_dbm" != "no no"; then 13906 if test "$with_database_gdbm $with_database_dbm" != "no no"; then
13902 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` 13907 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'`
13903 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 13908 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6
13904 echo "configure:13905: checking for ndbm.h" >&5 13909 echo "configure:13910: checking for ndbm.h" >&5
13905 13910
13906 cat > conftest.$ac_ext <<EOF 13911 cat > conftest.$ac_ext <<EOF
13907 #line 13908 "configure" 13912 #line 13913 "configure"
13908 #include "confdefs.h" 13913 #include "confdefs.h"
13909 #include <ndbm.h> 13914 #include <ndbm.h>
13910 EOF 13915 EOF
13911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 13916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13912 { (eval echo configure:13913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 13917 { (eval echo configure:13918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 13918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13914 if test -z "$ac_err"; then 13919 if test -z "$ac_err"; then
13915 rm -rf conftest* 13920 rm -rf conftest*
13916 eval "ac_cv_header_$ac_safe=yes" 13921 eval "ac_cv_header_$ac_safe=yes"
13917 else 13922 else
13937 fi 13942 fi
13938 13943
13939 if test "$with_database_gdbm" != "no"; then 13944 if test "$with_database_gdbm" != "no"; then
13940 13945
13941 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 13946 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6
13942 echo "configure:13943: checking for dbm_open in -lgdbm" >&5 13947 echo "configure:13948: checking for dbm_open in -lgdbm" >&5
13943 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` 13948 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'`
13944 13949
13945 xe_check_libs=" -lgdbm " 13950 xe_check_libs=" -lgdbm "
13946 cat > conftest.$ac_ext <<EOF 13951 cat > conftest.$ac_ext <<EOF
13947 #line 13948 "configure" 13952 #line 13953 "configure"
13948 #include "confdefs.h" 13953 #include "confdefs.h"
13949 /* Override any gcc2 internal prototype to avoid an error. */ 13954 /* Override any gcc2 internal prototype to avoid an error. */
13950 /* We use char because int might match the return type of a gcc2 13955 /* We use char because int might match the return type of a gcc2
13951 builtin and then its argument prototype would still apply. */ 13956 builtin and then its argument prototype would still apply. */
13952 char dbm_open(); 13957 char dbm_open();
13953 13958
13954 int main() { 13959 int main() {
13955 dbm_open() 13960 dbm_open()
13956 ; return 0; } 13961 ; return 0; }
13957 EOF 13962 EOF
13958 if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 13963 if { (eval echo configure:13964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13959 rm -rf conftest* 13964 rm -rf conftest*
13960 eval "ac_cv_lib_$ac_lib_var=yes" 13965 eval "ac_cv_lib_$ac_lib_var=yes"
13961 else 13966 else
13962 echo "configure: failed program was:" >&5 13967 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5 13968 cat conftest.$ac_ext >&5
13981 13986
13982 fi 13987 fi
13983 13988
13984 if test "$with_database_dbm" != "no"; then 13989 if test "$with_database_dbm" != "no"; then
13985 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 13990 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13986 echo "configure:13987: checking for dbm_open" >&5 13991 echo "configure:13992: checking for dbm_open" >&5
13987 13992
13988 cat > conftest.$ac_ext <<EOF 13993 cat > conftest.$ac_ext <<EOF
13989 #line 13990 "configure" 13994 #line 13995 "configure"
13990 #include "confdefs.h" 13995 #include "confdefs.h"
13991 /* System header to define __stub macros and hopefully few prototypes, 13996 /* System header to define __stub macros and hopefully few prototypes,
13992 which can conflict with char dbm_open(); below. */ 13997 which can conflict with char dbm_open(); below. */
13993 #include <assert.h> 13998 #include <assert.h>
13994 /* Override any gcc2 internal prototype to avoid an error. */ 13999 /* Override any gcc2 internal prototype to avoid an error. */
14007 dbm_open(); 14012 dbm_open();
14008 #endif 14013 #endif
14009 14014
14010 ; return 0; } 14015 ; return 0; }
14011 EOF 14016 EOF
14012 if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14017 if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14013 rm -rf conftest* 14018 rm -rf conftest*
14014 eval "ac_cv_func_dbm_open=yes" 14019 eval "ac_cv_func_dbm_open=yes"
14015 else 14020 else
14016 echo "configure: failed program was:" >&5 14021 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5 14022 cat conftest.$ac_ext >&5
14026 else 14031 else
14027 echo "$ac_t""no" 1>&6 14032 echo "$ac_t""no" 1>&6
14028 14033
14029 14034
14030 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 14035 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
14031 echo "configure:14032: checking for dbm_open in -ldbm" >&5 14036 echo "configure:14037: checking for dbm_open in -ldbm" >&5
14032 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` 14037 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
14033 14038
14034 xe_check_libs=" -ldbm " 14039 xe_check_libs=" -ldbm "
14035 cat > conftest.$ac_ext <<EOF 14040 cat > conftest.$ac_ext <<EOF
14036 #line 14037 "configure" 14041 #line 14042 "configure"
14037 #include "confdefs.h" 14042 #include "confdefs.h"
14038 /* Override any gcc2 internal prototype to avoid an error. */ 14043 /* Override any gcc2 internal prototype to avoid an error. */
14039 /* We use char because int might match the return type of a gcc2 14044 /* We use char because int might match the return type of a gcc2
14040 builtin and then its argument prototype would still apply. */ 14045 builtin and then its argument prototype would still apply. */
14041 char dbm_open(); 14046 char dbm_open();
14042 14047
14043 int main() { 14048 int main() {
14044 dbm_open() 14049 dbm_open()
14045 ; return 0; } 14050 ; return 0; }
14046 EOF 14051 EOF
14047 if { (eval echo configure:14048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14048 rm -rf conftest* 14053 rm -rf conftest*
14049 eval "ac_cv_lib_$ac_lib_var=yes" 14054 eval "ac_cv_lib_$ac_lib_var=yes"
14050 else 14055 else
14051 echo "configure: failed program was:" >&5 14056 echo "configure: failed program was:" >&5
14052 cat conftest.$ac_ext >&5 14057 cat conftest.$ac_ext >&5
14083 } 14088 }
14084 14089
14085 14090
14086 if test "$with_database_berkdb" != "no"; then 14091 if test "$with_database_berkdb" != "no"; then
14087 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 14092 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6
14088 echo "configure:14089: checking for Berkeley db.h" >&5 14093 echo "configure:14094: checking for Berkeley db.h" >&5
14089 for header in "db/db.h" "db.h"; do 14094 for header in "db/db.h" "db.h"; do
14090 cat > conftest.$ac_ext <<EOF 14095 cat > conftest.$ac_ext <<EOF
14091 #line 14092 "configure" 14096 #line 14097 "configure"
14092 #include "confdefs.h" 14097 #include "confdefs.h"
14093 14098
14094 #include <stdlib.h> 14099 #include <stdlib.h>
14095 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) 14100 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1)
14096 #ifdef HAVE_INTTYPES_H 14101 #ifdef HAVE_INTTYPES_H
14108 14113
14109 int main() { 14114 int main() {
14110 14115
14111 ; return 0; } 14116 ; return 0; }
14112 EOF 14117 EOF
14113 if { (eval echo configure:14114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14118 if { (eval echo configure:14119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14114 rm -rf conftest* 14119 rm -rf conftest*
14115 db_h_file="$header"; break 14120 db_h_file="$header"; break
14116 else 14121 else
14117 echo "configure: failed program was:" >&5 14122 echo "configure: failed program was:" >&5
14118 cat conftest.$ac_ext >&5 14123 cat conftest.$ac_ext >&5
14124 else echo "$ac_t""$db_h_file" 1>&6 14129 else echo "$ac_t""$db_h_file" 1>&6
14125 fi 14130 fi
14126 14131
14127 if test "$with_database_berkdb" != "no"; then 14132 if test "$with_database_berkdb" != "no"; then
14128 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 14133 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6
14129 echo "configure:14130: checking for Berkeley DB version" >&5 14134 echo "configure:14135: checking for Berkeley DB version" >&5
14130 cat > conftest.$ac_ext <<EOF 14135 cat > conftest.$ac_ext <<EOF
14131 #line 14132 "configure" 14136 #line 14137 "configure"
14132 #include "confdefs.h" 14137 #include "confdefs.h"
14133 #include <$db_h_file> 14138 #include <$db_h_file>
14134 #if DB_VERSION_MAJOR > 1 14139 #if DB_VERSION_MAJOR > 1
14135 yes 14140 yes
14136 #endif 14141 #endif
14138 EOF 14143 EOF
14139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14140 egrep "yes" >/dev/null 2>&1; then 14145 egrep "yes" >/dev/null 2>&1; then
14141 rm -rf conftest* 14146 rm -rf conftest*
14142 cat > conftest.$ac_ext <<EOF 14147 cat > conftest.$ac_ext <<EOF
14143 #line 14144 "configure" 14148 #line 14149 "configure"
14144 #include "confdefs.h" 14149 #include "confdefs.h"
14145 #include <$db_h_file> 14150 #include <$db_h_file>
14146 #if DB_VERSION_MAJOR > 2 14151 #if DB_VERSION_MAJOR > 2
14147 yes 14152 yes
14148 #endif 14153 #endif
14165 echo "$ac_t""1" 1>&6; dbfunc=dbopen 14170 echo "$ac_t""1" 1>&6; dbfunc=dbopen
14166 fi 14171 fi
14167 rm -f conftest* 14172 rm -f conftest*
14168 14173
14169 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 14174 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6
14170 echo "configure:14171: checking for $dbfunc" >&5 14175 echo "configure:14176: checking for $dbfunc" >&5
14171 14176
14172 cat > conftest.$ac_ext <<EOF 14177 cat > conftest.$ac_ext <<EOF
14173 #line 14174 "configure" 14178 #line 14179 "configure"
14174 #include "confdefs.h" 14179 #include "confdefs.h"
14175 /* System header to define __stub macros and hopefully few prototypes, 14180 /* System header to define __stub macros and hopefully few prototypes,
14176 which can conflict with char $dbfunc(); below. */ 14181 which can conflict with char $dbfunc(); below. */
14177 #include <assert.h> 14182 #include <assert.h>
14178 /* Override any gcc2 internal prototype to avoid an error. */ 14183 /* Override any gcc2 internal prototype to avoid an error. */
14191 $dbfunc(); 14196 $dbfunc();
14192 #endif 14197 #endif
14193 14198
14194 ; return 0; } 14199 ; return 0; }
14195 EOF 14200 EOF
14196 if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14201 if { (eval echo configure:14202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14197 rm -rf conftest* 14202 rm -rf conftest*
14198 eval "ac_cv_func_$dbfunc=yes" 14203 eval "ac_cv_func_$dbfunc=yes"
14199 else 14204 else
14200 echo "configure: failed program was:" >&5 14205 echo "configure: failed program was:" >&5
14201 cat conftest.$ac_ext >&5 14206 cat conftest.$ac_ext >&5
14210 else 14215 else
14211 echo "$ac_t""no" 1>&6 14216 echo "$ac_t""no" 1>&6
14212 14217
14213 14218
14214 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 14219 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6
14215 echo "configure:14216: checking for $dbfunc in -ldb" >&5 14220 echo "configure:14221: checking for $dbfunc in -ldb" >&5
14216 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` 14221 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'`
14217 14222
14218 xe_check_libs=" -ldb " 14223 xe_check_libs=" -ldb "
14219 cat > conftest.$ac_ext <<EOF 14224 cat > conftest.$ac_ext <<EOF
14220 #line 14221 "configure" 14225 #line 14226 "configure"
14221 #include "confdefs.h" 14226 #include "confdefs.h"
14222 /* Override any gcc2 internal prototype to avoid an error. */ 14227 /* Override any gcc2 internal prototype to avoid an error. */
14223 /* We use char because int might match the return type of a gcc2 14228 /* We use char because int might match the return type of a gcc2
14224 builtin and then its argument prototype would still apply. */ 14229 builtin and then its argument prototype would still apply. */
14225 char $dbfunc(); 14230 char $dbfunc();
14226 14231
14227 int main() { 14232 int main() {
14228 $dbfunc() 14233 $dbfunc()
14229 ; return 0; } 14234 ; return 0; }
14230 EOF 14235 EOF
14231 if { (eval echo configure:14232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14236 if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14232 rm -rf conftest* 14237 rm -rf conftest*
14233 eval "ac_cv_lib_$ac_lib_var=yes" 14238 eval "ac_cv_lib_$ac_lib_var=yes"
14234 else 14239 else
14235 echo "configure: failed program was:" >&5 14240 echo "configure: failed program was:" >&5
14236 cat conftest.$ac_ext >&5 14241 cat conftest.$ac_ext >&5
14290 fi 14295 fi
14291 14296
14292 if test "$with_socks" = "yes"; then 14297 if test "$with_socks" = "yes"; then
14293 14298
14294 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 14299 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6
14295 echo "configure:14296: checking for SOCKSinit in -lsocks" >&5 14300 echo "configure:14301: checking for SOCKSinit in -lsocks" >&5
14296 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` 14301 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'`
14297 14302
14298 xe_check_libs=" -lsocks " 14303 xe_check_libs=" -lsocks "
14299 cat > conftest.$ac_ext <<EOF 14304 cat > conftest.$ac_ext <<EOF
14300 #line 14301 "configure" 14305 #line 14306 "configure"
14301 #include "confdefs.h" 14306 #include "confdefs.h"
14302 /* Override any gcc2 internal prototype to avoid an error. */ 14307 /* Override any gcc2 internal prototype to avoid an error. */
14303 /* We use char because int might match the return type of a gcc2 14308 /* We use char because int might match the return type of a gcc2
14304 builtin and then its argument prototype would still apply. */ 14309 builtin and then its argument prototype would still apply. */
14305 char SOCKSinit(); 14310 char SOCKSinit();
14306 14311
14307 int main() { 14312 int main() {
14308 SOCKSinit() 14313 SOCKSinit()
14309 ; return 0; } 14314 ; return 0; }
14310 EOF 14315 EOF
14311 if { (eval echo configure:14312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14316 if { (eval echo configure:14317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14312 rm -rf conftest* 14317 rm -rf conftest*
14313 eval "ac_cv_lib_$ac_lib_var=yes" 14318 eval "ac_cv_lib_$ac_lib_var=yes"
14314 else 14319 else
14315 echo "configure: failed program was:" >&5 14320 echo "configure: failed program was:" >&5
14316 cat conftest.$ac_ext >&5 14321 cat conftest.$ac_ext >&5
14361 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi 14366 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi
14362 fi 14367 fi
14363 14368
14364 if test "$with_modules" != "no"; then 14369 if test "$with_modules" != "no"; then
14365 echo "checking for module support" 1>&6 14370 echo "checking for module support" 1>&6
14366 echo "configure:14367: checking for module support" >&5 14371 echo "configure:14372: checking for module support" >&5
14367 14372
14368 if test "$with_msw" = "yes"; then 14373 if test "$with_msw" = "yes"; then
14369 have_dl=yes; 14374 have_dl=yes;
14370 else 14375 else
14371 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 14376 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
14372 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 14377 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
14373 echo "configure:14374: checking for dlfcn.h" >&5 14378 echo "configure:14379: checking for dlfcn.h" >&5
14374 14379
14375 cat > conftest.$ac_ext <<EOF 14380 cat > conftest.$ac_ext <<EOF
14376 #line 14377 "configure" 14381 #line 14382 "configure"
14377 #include "confdefs.h" 14382 #include "confdefs.h"
14378 #include <dlfcn.h> 14383 #include <dlfcn.h>
14379 EOF 14384 EOF
14380 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 14385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14381 { (eval echo configure:14382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 14386 { (eval echo configure:14387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14382 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 14387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14383 if test -z "$ac_err"; then 14388 if test -z "$ac_err"; then
14384 rm -rf conftest* 14389 rm -rf conftest*
14385 eval "ac_cv_header_$ac_safe=yes" 14390 eval "ac_cv_header_$ac_safe=yes"
14386 else 14391 else
14393 rm -f conftest* 14398 rm -f conftest*
14394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 14399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14395 echo "$ac_t""yes" 1>&6 14400 echo "$ac_t""yes" 1>&6
14396 14401
14397 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 14402 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6
14398 echo "configure:14399: checking for dlopen in -lc" >&5 14403 echo "configure:14404: checking for dlopen in -lc" >&5
14399 cat > conftest.$ac_ext <<EOF 14404 cat > conftest.$ac_ext <<EOF
14400 #line 14401 "configure" 14405 #line 14406 "configure"
14401 #include "confdefs.h" 14406 #include "confdefs.h"
14402 #include <dlfcn.h> 14407 #include <dlfcn.h>
14403 int main() { 14408 int main() {
14404 dlopen ("", 0); 14409 dlopen ("", 0);
14405 ; return 0; } 14410 ; return 0; }
14406 EOF 14411 EOF
14407 if { (eval echo configure:14408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14412 if { (eval echo configure:14413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14408 rm -rf conftest* 14413 rm -rf conftest*
14409 have_dl=yes 14414 have_dl=yes
14410 else 14415 else
14411 echo "configure: failed program was:" >&5 14416 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5 14417 cat conftest.$ac_ext >&5
14413 rm -rf conftest* 14418 rm -rf conftest*
14414 14419
14415 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 14420 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
14416 echo "configure:14417: checking for dlopen in -ldl" >&5 14421 echo "configure:14422: checking for dlopen in -ldl" >&5
14417 ac_save_LIBS="$LIBS" 14422 ac_save_LIBS="$LIBS"
14418 LIBS="-ldl $LIBS" 14423 LIBS="-ldl $LIBS"
14419 cat > conftest.$ac_ext <<EOF 14424 cat > conftest.$ac_ext <<EOF
14420 #line 14421 "configure" 14425 #line 14426 "configure"
14421 #include "confdefs.h" 14426 #include "confdefs.h"
14422 #include <dlfcn.h> 14427 #include <dlfcn.h>
14423 int main() { 14428 int main() {
14424 dlopen ("", 0); 14429 dlopen ("", 0);
14425 ; return 0; } 14430 ; return 0; }
14426 EOF 14431 EOF
14427 if { (eval echo configure:14428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14432 if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14428 rm -rf conftest* 14433 rm -rf conftest*
14429 have_dl=yes 14434 have_dl=yes
14430 else 14435 else
14431 echo "configure: failed program was:" >&5 14436 echo "configure: failed program was:" >&5
14432 cat conftest.$ac_ext >&5 14437 cat conftest.$ac_ext >&5
14451 } 14456 }
14452 14457
14453 else 14458 else
14454 14459
14455 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 14460 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
14456 echo "configure:14457: checking for shl_load in -ldld" >&5 14461 echo "configure:14462: checking for shl_load in -ldld" >&5
14457 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 14462 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
14458 14463
14459 xe_check_libs=" -ldld " 14464 xe_check_libs=" -ldld "
14460 cat > conftest.$ac_ext <<EOF 14465 cat > conftest.$ac_ext <<EOF
14461 #line 14462 "configure" 14466 #line 14467 "configure"
14462 #include "confdefs.h" 14467 #include "confdefs.h"
14463 /* Override any gcc2 internal prototype to avoid an error. */ 14468 /* Override any gcc2 internal prototype to avoid an error. */
14464 /* We use char because int might match the return type of a gcc2 14469 /* We use char because int might match the return type of a gcc2
14465 builtin and then its argument prototype would still apply. */ 14470 builtin and then its argument prototype would still apply. */
14466 char shl_load(); 14471 char shl_load();
14467 14472
14468 int main() { 14473 int main() {
14469 shl_load() 14474 shl_load()
14470 ; return 0; } 14475 ; return 0; }
14471 EOF 14476 EOF
14472 if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14477 if { (eval echo configure:14478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14473 rm -rf conftest* 14478 rm -rf conftest*
14474 eval "ac_cv_lib_$ac_lib_var=yes" 14479 eval "ac_cv_lib_$ac_lib_var=yes"
14475 else 14480 else
14476 echo "configure: failed program was:" >&5 14481 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5 14482 cat conftest.$ac_ext >&5
14494 14499
14495 else 14500 else
14496 echo "$ac_t""no" 1>&6 14501 echo "$ac_t""no" 1>&6
14497 14502
14498 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 14503 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6
14499 echo "configure:14500: checking for dld_init in -ldld" >&5 14504 echo "configure:14505: checking for dld_init in -ldld" >&5
14500 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` 14505 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'`
14501 14506
14502 xe_check_libs=" -ldld " 14507 xe_check_libs=" -ldld "
14503 cat > conftest.$ac_ext <<EOF 14508 cat > conftest.$ac_ext <<EOF
14504 #line 14505 "configure" 14509 #line 14510 "configure"
14505 #include "confdefs.h" 14510 #include "confdefs.h"
14506 /* Override any gcc2 internal prototype to avoid an error. */ 14511 /* Override any gcc2 internal prototype to avoid an error. */
14507 /* We use char because int might match the return type of a gcc2 14512 /* We use char because int might match the return type of a gcc2
14508 builtin and then its argument prototype would still apply. */ 14513 builtin and then its argument prototype would still apply. */
14509 char dld_init(); 14514 char dld_init();
14510 14515
14511 int main() { 14516 int main() {
14512 dld_init() 14517 dld_init()
14513 ; return 0; } 14518 ; return 0; }
14514 EOF 14519 EOF
14515 if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14520 if { (eval echo configure:14521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14516 rm -rf conftest* 14521 rm -rf conftest*
14517 eval "ac_cv_lib_$ac_lib_var=yes" 14522 eval "ac_cv_lib_$ac_lib_var=yes"
14518 else 14523 else
14519 echo "configure: failed program was:" >&5 14524 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5 14525 cat conftest.$ac_ext >&5
14555 ld_dynamic_link_flags= 14560 ld_dynamic_link_flags=
14556 xehost=$canonical 14561 xehost=$canonical
14557 xealias=$internal_configuration 14562 xealias=$internal_configuration
14558 14563
14559 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 14564 echo "checking how to build dynamic libraries for ${xehost}" 1>&6
14560 echo "configure:14561: checking how to build dynamic libraries for ${xehost}" >&5 14565 echo "configure:14566: checking how to build dynamic libraries for ${xehost}" >&5
14561 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. 14566 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts.
14562 case "$xehost" in 14567 case "$xehost" in
14563 *-*-linux-gnu*) ;; 14568 *-*-linux-gnu*) ;;
14564 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 14569 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
14565 esac 14570 esac
14583 # Now see if the compiler is really GCC. 14588 # Now see if the compiler is really GCC.
14584 if test "$GCC" = "yes"; then 14589 if test "$GCC" = "yes"; then
14585 XEGCC=yes 14590 XEGCC=yes
14586 else 14591 else
14587 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 14592 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6
14588 echo "configure:14589: checking checking whether we are using GNU C" >&5 14593 echo "configure:14594: checking checking whether we are using GNU C" >&5
14589 cat > conftest.$ac_ext <<EOF 14594 cat > conftest.$ac_ext <<EOF
14590 #line 14591 "configure" 14595 #line 14596 "configure"
14591 #include "confdefs.h" 14596 #include "confdefs.h"
14592 14597
14593 #ifdef __GNUC__ 14598 #ifdef __GNUC__
14594 yes; 14599 yes;
14595 #endif 14600 #endif
14607 14612
14608 echo "$ac_t""${XEGCC}" 1>&6 14613 echo "$ac_t""${XEGCC}" 1>&6
14609 fi 14614 fi
14610 14615
14611 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 14616 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6
14612 echo "configure:14613: checking how to produce PIC code" >&5 14617 echo "configure:14618: checking how to produce PIC code" >&5
14613 wl= 14618 wl=
14614 14619
14615 can_build_shared=yes 14620 can_build_shared=yes
14616 if test "$XEGCC" = yes; then 14621 if test "$XEGCC" = yes; then
14617 wl='-Wl,' 14622 wl='-Wl,'
14708 if test -n "$dll_cflags"; then 14713 if test -n "$dll_cflags"; then
14709 echo "$ac_t""${dll_cflags}" 1>&6 14714 echo "$ac_t""${dll_cflags}" 1>&6
14710 14715
14711 # Check to make sure the dll_cflags actually works. 14716 # Check to make sure the dll_cflags actually works.
14712 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 14717 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6
14713 echo "configure:14714: checking if PIC flag ${dll_cflags} really works" >&5 14718 echo "configure:14719: checking if PIC flag ${dll_cflags} really works" >&5
14714 save_CFLAGS="$CFLAGS" 14719 save_CFLAGS="$CFLAGS"
14715 CFLAGS="$CFLAGS $dll_cflags -DPIC" 14720 CFLAGS="$CFLAGS $dll_cflags -DPIC"
14716 cat > conftest.$ac_ext <<EOF 14721 cat > conftest.$ac_ext <<EOF
14717 #line 14718 "configure" 14722 #line 14723 "configure"
14718 #include "confdefs.h" 14723 #include "confdefs.h"
14719 14724
14720 int main() { 14725 int main() {
14721 int x=0; 14726 int x=0;
14722 ; return 0; } 14727 ; return 0; }
14723 EOF 14728 EOF
14724 if { (eval echo configure:14725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 14729 if { (eval echo configure:14730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14725 rm -rf conftest* 14730 rm -rf conftest*
14726 14731
14727 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also 14732 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also
14728 # reports no error. So, we need to grep stderr for (Bundled). 14733 # reports no error. So, we need to grep stderr for (Bundled).
14729 if grep '(Bundled)' config.log >/dev/null; then 14734 if grep '(Bundled)' config.log >/dev/null; then
14750 if test "$can_build_shared" = "yes"; then 14755 if test "$can_build_shared" = "yes"; then
14751 cc_produces_so=no 14756 cc_produces_so=no
14752 xldf= 14757 xldf=
14753 xcldf= 14758 xcldf=
14754 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 14759 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6
14755 echo "configure:14756: checking if C compiler can produce shared libraries" >&5 14760 echo "configure:14761: checking if C compiler can produce shared libraries" >&5
14756 if test "$XEGCC" = yes; then 14761 if test "$XEGCC" = yes; then
14757 xcldf="-shared" 14762 xcldf="-shared"
14758 xldf="-shared" 14763 xldf="-shared"
14759 else # Not using GCC 14764 else # Not using GCC
14760 case "$xehost_os" in 14765 case "$xehost_os" in
14801 LDFLAGS="$xcldf $LDFLAGS" 14806 LDFLAGS="$xcldf $LDFLAGS"
14802 LIBS= 14807 LIBS=
14803 xe_libs= 14808 xe_libs=
14804 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' 14809 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5'
14805 cat > conftest.$ac_ext <<EOF 14810 cat > conftest.$ac_ext <<EOF
14806 #line 14807 "configure" 14811 #line 14812 "configure"
14807 #include "confdefs.h" 14812 #include "confdefs.h"
14808 14813
14809 int main() { 14814 int main() {
14810 int x=0; 14815 int x=0;
14811 ; return 0; } 14816 ; return 0; }
14812 EOF 14817 EOF
14813 if { (eval echo configure:14814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 14818 if { (eval echo configure:14819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14814 rm -rf conftest* 14819 rm -rf conftest*
14815 cc_produces_so=yes 14820 cc_produces_so=yes
14816 else 14821 else
14817 echo "configure: failed program was:" >&5 14822 echo "configure: failed program was:" >&5
14818 cat conftest.$ac_ext >&5 14823 cat conftest.$ac_ext >&5
14833 if test -z "$LTLD"; then 14838 if test -z "$LTLD"; then
14834 ac_prog=ld 14839 ac_prog=ld
14835 if test "$XEGCC" = yes; then 14840 if test "$XEGCC" = yes; then
14836 # Check if gcc -print-prog-name=ld gives a path. 14841 # Check if gcc -print-prog-name=ld gives a path.
14837 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 14842 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
14838 echo "configure:14839: checking for ld used by GCC" >&5 14843 echo "configure:14844: checking for ld used by GCC" >&5
14839 ac_prog=`($CC -print-prog-name=ld) 2>&5` 14844 ac_prog=`($CC -print-prog-name=ld) 2>&5`
14840 case "$ac_prog" in 14845 case "$ac_prog" in
14841 # Accept absolute paths. 14846 # Accept absolute paths.
14842 /*) 14847 /*)
14843 if test -z "$LTLD"; then 14848 if test -z "$LTLD"; then
14858 with_gnu_ld=unknown 14863 with_gnu_ld=unknown
14859 ;; 14864 ;;
14860 esac 14865 esac
14861 else 14866 else
14862 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 14867 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
14863 echo "configure:14864: checking for GNU ld" >&5 14868 echo "configure:14869: checking for GNU ld" >&5
14864 fi 14869 fi
14865 14870
14866 if test -z "$LTLD"; then 14871 if test -z "$LTLD"; then
14867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 14872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14868 for ac_dir in $PATH; do 14873 for ac_dir in $PATH; do
14896 14901
14897 ld_dynamic_link_flags= 14902 ld_dynamic_link_flags=
14898 14903
14899 # Check to see if it really is or isn't GNU ld. 14904 # Check to see if it really is or isn't GNU ld.
14900 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 14905 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6
14901 echo "configure:14902: checking if the linker is GNU ld" >&5 14906 echo "configure:14907: checking if the linker is GNU ld" >&5
14902 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 14907 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14903 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 14908 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
14904 xe_gnu_ld=yes 14909 xe_gnu_ld=yes
14905 else 14910 else
14906 xe_gnu_ld=no 14911 xe_gnu_ld=no
14924 ld_shlibs=yes 14929 ld_shlibs=yes
14925 else 14930 else
14926 # OK - only NOW do we futz about with ld. 14931 # OK - only NOW do we futz about with ld.
14927 # See if the linker supports building shared libraries. 14932 # See if the linker supports building shared libraries.
14928 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 14933 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6
14929 echo "configure:14930: checking whether the linker supports shared libraries" >&5 14934 echo "configure:14935: checking whether the linker supports shared libraries" >&5
14930 dll_ld=$CC 14935 dll_ld=$CC
14931 dll_ldflags=$LDFLAGS 14936 dll_ldflags=$LDFLAGS
14932 ld_shlibs=yes 14937 ld_shlibs=yes
14933 can_build_shared=yes 14938 can_build_shared=yes
14934 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then 14939 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
15135 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi 15140 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi
15136 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi 15141 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi
15137 for ac_func in dlerror _dlerror 15142 for ac_func in dlerror _dlerror
15138 do 15143 do
15139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 15144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15140 echo "configure:15141: checking for $ac_func" >&5 15145 echo "configure:15146: checking for $ac_func" >&5
15141 15146
15142 cat > conftest.$ac_ext <<EOF 15147 cat > conftest.$ac_ext <<EOF
15143 #line 15144 "configure" 15148 #line 15149 "configure"
15144 #include "confdefs.h" 15149 #include "confdefs.h"
15145 /* System header to define __stub macros and hopefully few prototypes, 15150 /* System header to define __stub macros and hopefully few prototypes,
15146 which can conflict with char $ac_func(); below. */ 15151 which can conflict with char $ac_func(); below. */
15147 #include <assert.h> 15152 #include <assert.h>
15148 /* Override any gcc2 internal prototype to avoid an error. */ 15153 /* Override any gcc2 internal prototype to avoid an error. */
15161 $ac_func(); 15166 $ac_func();
15162 #endif 15167 #endif
15163 15168
15164 ; return 0; } 15169 ; return 0; }
15165 EOF 15170 EOF
15166 if { (eval echo configure:15167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 15171 if { (eval echo configure:15172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15167 rm -rf conftest* 15172 rm -rf conftest*
15168 eval "ac_cv_func_$ac_func=yes" 15173 eval "ac_cv_func_$ac_func=yes"
15169 else 15174 else
15170 echo "configure: failed program was:" >&5 15175 echo "configure: failed program was:" >&5
15171 cat conftest.$ac_ext >&5 15176 cat conftest.$ac_ext >&5
15200 with_modules=no 15205 with_modules=no
15201 fi 15206 fi
15202 fi 15207 fi
15203 15208
15204 cat > conftest.$ac_ext <<EOF 15209 cat > conftest.$ac_ext <<EOF
15205 #line 15206 "configure" 15210 #line 15211 "configure"
15206 #include "confdefs.h" 15211 #include "confdefs.h"
15207 int main(int c,char *v[]){return 0;} 15212 int main(int c,char *v[]){return 0;}
15208 EOF 15213 EOF
15209 if { (eval echo configure:15210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 15214 if { (eval echo configure:15215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5
15210 then 15215 then
15211 : 15216 :
15212 else 15217 else
15213 conftest_rc="$?" 15218 conftest_rc="$?"
15214 echo "configure: failed program was:" >&5 15219 echo "configure: failed program was:" >&5
15547 15552
15548 15553
15549 15554
15550 15555
15551 15556
15552 : ${XEMACS_CC:=$CC} 15557
15558 test -n "$xemacs_compiler" && XEMACS_CC="$xemacs_compiler"
15559 : ${XEMACS_CC:="$CC"}
15553 15560
15554 15561
15555 if test "$with_prefix" = "yes"; then 15562 if test "$with_prefix" = "yes"; then
15556 { test "$extra_verbose" = "yes" && cat << \EOF 15563 { test "$extra_verbose" = "yes" && cat << \EOF
15557 Defining PREFIX_USER_DEFINED 15564 Defining PREFIX_USER_DEFINED