Mercurial > hg > xemacs-beta
comparison configure @ 535:c69610198c35
[xemacs-hg @ 2001-05-14 04:52:02 by martinb]
Eliminate the need to define HAVE_PTYS in s&m files.
author | martinb |
---|---|
date | Mon, 14 May 2001 04:52:49 +0000 |
parents | 7b35ad872326 |
children | 836d476763d0 |
comparison
equal
deleted
inserted
replaced
534:a0266879cecf | 535:c69610198c35 |
---|---|
6409 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` | 6409 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` |
6410 fi | 6410 fi |
6411 cd .. | 6411 cd .. |
6412 rm -fr conftestdir | 6412 rm -fr conftestdir |
6413 for word in $xmkmf_defines; do | 6413 for word in $xmkmf_defines; do |
6414 case "$word" in | 6414 case "$word" in |
6415 -D__STDC__*) ;; | 6415 -D__STDC__*) ;; |
6416 -D* ) | 6416 -D* ) |
6417 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` | 6417 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` |
6418 case "$word" in | 6418 case "$word" in |
6419 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; | 6419 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; |
10978 cat >> confdefs.h <<\EOF | 10978 cat >> confdefs.h <<\EOF |
10979 #define HAVE_OPENPTY 1 | 10979 #define HAVE_OPENPTY 1 |
10980 EOF | 10980 EOF |
10981 } | 10981 } |
10982 | 10982 |
10983 for ac_hdr in pty.h libutil.h util.h | 10983 for ac_hdr in libutil.h util.h |
10984 do | 10984 do |
10985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 10985 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 10986 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
10987 echo "configure:10988: checking for $ac_hdr" >&5 | 10987 echo "configure:10988: checking for $ac_hdr" >&5 |
10988 | 10988 |
11022 done | 11022 done |
11023 | 11023 |
11024 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi | 11024 test "$need_libutil" = "yes" && libs_system="$libs_system -lutil" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lutil\" to \$libs_system"; fi |
11025 fi | 11025 fi |
11026 | 11026 |
11027 case "$opsys" in | |
11028 hpux*) for ac_hdr in sys/ptyio.h | |
11029 do | |
11030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11032 echo "configure:11033: checking for $ac_hdr" >&5 | |
11033 | |
11034 cat > conftest.$ac_ext <<EOF | |
11035 #line 11036 "configure" | |
11036 #include "confdefs.h" | |
11037 #include <$ac_hdr> | |
11038 EOF | |
11039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11040 { (eval echo configure:11041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11042 if test -z "$ac_err"; then | |
11043 rm -rf conftest* | |
11044 eval "ac_cv_header_$ac_safe=yes" | |
11045 else | |
11046 echo "$ac_err" >&5 | |
11047 echo "configure: failed program was:" >&5 | |
11048 cat conftest.$ac_ext >&5 | |
11049 rm -rf conftest* | |
11050 eval "ac_cv_header_$ac_safe=no" | |
11051 fi | |
11052 rm -f conftest* | |
11053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11054 echo "$ac_t""yes" 1>&6 | |
11055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11056 { test "$extra_verbose" = "yes" && cat << EOF | |
11057 Defining $ac_tr_hdr | |
11058 EOF | |
11059 cat >> confdefs.h <<EOF | |
11060 #define $ac_tr_hdr 1 | |
11061 EOF | |
11062 } | |
11063 | |
11064 else | |
11065 echo "$ac_t""no" 1>&6 | |
11066 fi | |
11067 done | |
11068 ;; | |
11069 *) for ac_hdr in pty.h | |
11070 do | |
11071 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11072 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11073 echo "configure:11074: checking for $ac_hdr" >&5 | |
11074 | |
11075 cat > conftest.$ac_ext <<EOF | |
11076 #line 11077 "configure" | |
11077 #include "confdefs.h" | |
11078 #include <$ac_hdr> | |
11079 EOF | |
11080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11081 { (eval echo configure:11082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11083 if test -z "$ac_err"; then | |
11084 rm -rf conftest* | |
11085 eval "ac_cv_header_$ac_safe=yes" | |
11086 else | |
11087 echo "$ac_err" >&5 | |
11088 echo "configure: failed program was:" >&5 | |
11089 cat conftest.$ac_ext >&5 | |
11090 rm -rf conftest* | |
11091 eval "ac_cv_header_$ac_safe=no" | |
11092 fi | |
11093 rm -f conftest* | |
11094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11095 echo "$ac_t""yes" 1>&6 | |
11096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11097 { test "$extra_verbose" = "yes" && cat << EOF | |
11098 Defining $ac_tr_hdr | |
11099 EOF | |
11100 cat >> confdefs.h <<EOF | |
11101 #define $ac_tr_hdr 1 | |
11102 EOF | |
11103 } | |
11104 | |
11105 else | |
11106 echo "$ac_t""no" 1>&6 | |
11107 fi | |
11108 done | |
11109 | |
11110 test "$ac_cv_header_pty_h" = "no" && for ac_hdr in sys/pty.h | |
11111 do | |
11112 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11113 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11114 echo "configure:11115: checking for $ac_hdr" >&5 | |
11115 | |
11116 cat > conftest.$ac_ext <<EOF | |
11117 #line 11118 "configure" | |
11118 #include "confdefs.h" | |
11119 #include <$ac_hdr> | |
11120 EOF | |
11121 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11122 { (eval echo configure:11123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11123 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11124 if test -z "$ac_err"; then | |
11125 rm -rf conftest* | |
11126 eval "ac_cv_header_$ac_safe=yes" | |
11127 else | |
11128 echo "$ac_err" >&5 | |
11129 echo "configure: failed program was:" >&5 | |
11130 cat conftest.$ac_ext >&5 | |
11131 rm -rf conftest* | |
11132 eval "ac_cv_header_$ac_safe=no" | |
11133 fi | |
11134 rm -f conftest* | |
11135 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11136 echo "$ac_t""yes" 1>&6 | |
11137 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11138 { test "$extra_verbose" = "yes" && cat << EOF | |
11139 Defining $ac_tr_hdr | |
11140 EOF | |
11141 cat >> confdefs.h <<EOF | |
11142 #define $ac_tr_hdr 1 | |
11143 EOF | |
11144 } | |
11145 | |
11146 else | |
11147 echo "$ac_t""no" 1>&6 | |
11148 fi | |
11149 done | |
11150 | |
11151 ;; | |
11152 esac | |
11153 | |
11027 for ac_hdr in stropts.h | 11154 for ac_hdr in stropts.h |
11028 do | 11155 do |
11029 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11156 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11030 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11031 echo "configure:11032: checking for $ac_hdr" >&5 | 11158 echo "configure:11159: checking for $ac_hdr" >&5 |
11032 | 11159 |
11033 cat > conftest.$ac_ext <<EOF | 11160 cat > conftest.$ac_ext <<EOF |
11034 #line 11035 "configure" | 11161 #line 11162 "configure" |
11035 #include "confdefs.h" | 11162 #include "confdefs.h" |
11036 #include <$ac_hdr> | 11163 #include <$ac_hdr> |
11037 EOF | 11164 EOF |
11038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11039 { (eval echo configure:11040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11166 { (eval echo configure:11167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11041 if test -z "$ac_err"; then | 11168 if test -z "$ac_err"; then |
11042 rm -rf conftest* | 11169 rm -rf conftest* |
11043 eval "ac_cv_header_$ac_safe=yes" | 11170 eval "ac_cv_header_$ac_safe=yes" |
11044 else | 11171 else |
11067 | 11194 |
11068 if test "$ac_cv_header_stropts_h" = "yes"; then | 11195 if test "$ac_cv_header_stropts_h" = "yes"; then |
11069 for ac_func in isastream | 11196 for ac_func in isastream |
11070 do | 11197 do |
11071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11072 echo "configure:11073: checking for $ac_func" >&5 | 11199 echo "configure:11200: checking for $ac_func" >&5 |
11073 | 11200 |
11074 cat > conftest.$ac_ext <<EOF | 11201 cat > conftest.$ac_ext <<EOF |
11075 #line 11076 "configure" | 11202 #line 11203 "configure" |
11076 #include "confdefs.h" | 11203 #include "confdefs.h" |
11077 /* System header to define __stub macros and hopefully few prototypes, | 11204 /* System header to define __stub macros and hopefully few prototypes, |
11078 which can conflict with char $ac_func(); below. */ | 11205 which can conflict with char $ac_func(); below. */ |
11079 #include <assert.h> | 11206 #include <assert.h> |
11080 /* Override any gcc2 internal prototype to avoid an error. */ | 11207 /* Override any gcc2 internal prototype to avoid an error. */ |
11093 $ac_func(); | 11220 $ac_func(); |
11094 #endif | 11221 #endif |
11095 | 11222 |
11096 ; return 0; } | 11223 ; return 0; } |
11097 EOF | 11224 EOF |
11098 if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11099 rm -rf conftest* | 11226 rm -rf conftest* |
11100 eval "ac_cv_func_$ac_func=yes" | 11227 eval "ac_cv_func_$ac_func=yes" |
11101 else | 11228 else |
11102 echo "configure: failed program was:" >&5 | 11229 echo "configure: failed program was:" >&5 |
11103 cat conftest.$ac_ext >&5 | 11230 cat conftest.$ac_ext >&5 |
11124 | 11251 |
11125 for ac_hdr in strtio.h | 11252 for ac_hdr in strtio.h |
11126 do | 11253 do |
11127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11129 echo "configure:11130: checking for $ac_hdr" >&5 | 11256 echo "configure:11257: checking for $ac_hdr" >&5 |
11130 | 11257 |
11131 cat > conftest.$ac_ext <<EOF | 11258 cat > conftest.$ac_ext <<EOF |
11132 #line 11133 "configure" | 11259 #line 11260 "configure" |
11133 #include "confdefs.h" | 11260 #include "confdefs.h" |
11134 #include <$ac_hdr> | 11261 #include <$ac_hdr> |
11135 EOF | 11262 EOF |
11136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11137 { (eval echo configure:11138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11264 { (eval echo configure:11265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11139 if test -z "$ac_err"; then | 11266 if test -z "$ac_err"; then |
11140 rm -rf conftest* | 11267 rm -rf conftest* |
11141 eval "ac_cv_header_$ac_safe=yes" | 11268 eval "ac_cv_header_$ac_safe=yes" |
11142 else | 11269 else |
11169 fi | 11296 fi |
11170 | 11297 |
11171 for ac_func in getloadavg | 11298 for ac_func in getloadavg |
11172 do | 11299 do |
11173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11300 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11174 echo "configure:11175: checking for $ac_func" >&5 | 11301 echo "configure:11302: checking for $ac_func" >&5 |
11175 | 11302 |
11176 cat > conftest.$ac_ext <<EOF | 11303 cat > conftest.$ac_ext <<EOF |
11177 #line 11178 "configure" | 11304 #line 11305 "configure" |
11178 #include "confdefs.h" | 11305 #include "confdefs.h" |
11179 /* System header to define __stub macros and hopefully few prototypes, | 11306 /* System header to define __stub macros and hopefully few prototypes, |
11180 which can conflict with char $ac_func(); below. */ | 11307 which can conflict with char $ac_func(); below. */ |
11181 #include <assert.h> | 11308 #include <assert.h> |
11182 /* Override any gcc2 internal prototype to avoid an error. */ | 11309 /* Override any gcc2 internal prototype to avoid an error. */ |
11195 $ac_func(); | 11322 $ac_func(); |
11196 #endif | 11323 #endif |
11197 | 11324 |
11198 ; return 0; } | 11325 ; return 0; } |
11199 EOF | 11326 EOF |
11200 if { (eval echo configure:11201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11327 if { (eval echo configure:11328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11201 rm -rf conftest* | 11328 rm -rf conftest* |
11202 eval "ac_cv_func_$ac_func=yes" | 11329 eval "ac_cv_func_$ac_func=yes" |
11203 else | 11330 else |
11204 echo "configure: failed program was:" >&5 | 11331 echo "configure: failed program was:" >&5 |
11205 cat conftest.$ac_ext >&5 | 11332 cat conftest.$ac_ext >&5 |
11228 if test "$ac_cv_func_getloadavg" = "yes"; then | 11355 if test "$ac_cv_func_getloadavg" = "yes"; then |
11229 for ac_hdr in sys/loadavg.h | 11356 for ac_hdr in sys/loadavg.h |
11230 do | 11357 do |
11231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11358 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11359 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11233 echo "configure:11234: checking for $ac_hdr" >&5 | 11360 echo "configure:11361: checking for $ac_hdr" >&5 |
11234 | 11361 |
11235 cat > conftest.$ac_ext <<EOF | 11362 cat > conftest.$ac_ext <<EOF |
11236 #line 11237 "configure" | 11363 #line 11364 "configure" |
11237 #include "confdefs.h" | 11364 #include "confdefs.h" |
11238 #include <$ac_hdr> | 11365 #include <$ac_hdr> |
11239 EOF | 11366 EOF |
11240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11241 { (eval echo configure:11242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11368 { (eval echo configure:11369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11243 if test -z "$ac_err"; then | 11370 if test -z "$ac_err"; then |
11244 rm -rf conftest* | 11371 rm -rf conftest* |
11245 eval "ac_cv_header_$ac_safe=yes" | 11372 eval "ac_cv_header_$ac_safe=yes" |
11246 else | 11373 else |
11272 echo " xemacs will be linked with \"getloadavg.o\"" | 11399 echo " xemacs will be linked with \"getloadavg.o\"" |
11273 fi | 11400 fi |
11274 | 11401 |
11275 | 11402 |
11276 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 | 11403 echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 |
11277 echo "configure:11278: checking for kstat_open in -lkstat" >&5 | 11404 echo "configure:11405: checking for kstat_open in -lkstat" >&5 |
11278 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` | 11405 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` |
11279 | 11406 |
11280 xe_check_libs=" -lkstat " | 11407 xe_check_libs=" -lkstat " |
11281 cat > conftest.$ac_ext <<EOF | 11408 cat > conftest.$ac_ext <<EOF |
11282 #line 11283 "configure" | 11409 #line 11410 "configure" |
11283 #include "confdefs.h" | 11410 #include "confdefs.h" |
11284 /* Override any gcc2 internal prototype to avoid an error. */ | 11411 /* Override any gcc2 internal prototype to avoid an error. */ |
11285 /* We use char because int might match the return type of a gcc2 | 11412 /* We use char because int might match the return type of a gcc2 |
11286 builtin and then its argument prototype would still apply. */ | 11413 builtin and then its argument prototype would still apply. */ |
11287 char kstat_open(); | 11414 char kstat_open(); |
11288 | 11415 |
11289 int main() { | 11416 int main() { |
11290 kstat_open() | 11417 kstat_open() |
11291 ; return 0; } | 11418 ; return 0; } |
11292 EOF | 11419 EOF |
11293 if { (eval echo configure:11294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11420 if { (eval echo configure:11421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11294 rm -rf conftest* | 11421 rm -rf conftest* |
11295 eval "ac_cv_lib_$ac_lib_var=yes" | 11422 eval "ac_cv_lib_$ac_lib_var=yes" |
11296 else | 11423 else |
11297 echo "configure: failed program was:" >&5 | 11424 echo "configure: failed program was:" >&5 |
11298 cat conftest.$ac_ext >&5 | 11425 cat conftest.$ac_ext >&5 |
11323 | 11450 |
11324 for ac_hdr in kstat.h | 11451 for ac_hdr in kstat.h |
11325 do | 11452 do |
11326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11328 echo "configure:11329: checking for $ac_hdr" >&5 | 11455 echo "configure:11456: checking for $ac_hdr" >&5 |
11329 | 11456 |
11330 cat > conftest.$ac_ext <<EOF | 11457 cat > conftest.$ac_ext <<EOF |
11331 #line 11332 "configure" | 11458 #line 11459 "configure" |
11332 #include "confdefs.h" | 11459 #include "confdefs.h" |
11333 #include <$ac_hdr> | 11460 #include <$ac_hdr> |
11334 EOF | 11461 EOF |
11335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11336 { (eval echo configure:11337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11463 { (eval echo configure:11464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 11464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11338 if test -z "$ac_err"; then | 11465 if test -z "$ac_err"; then |
11339 rm -rf conftest* | 11466 rm -rf conftest* |
11340 eval "ac_cv_header_$ac_safe=yes" | 11467 eval "ac_cv_header_$ac_safe=yes" |
11341 else | 11468 else |
11363 done | 11490 done |
11364 | 11491 |
11365 | 11492 |
11366 | 11493 |
11367 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 | 11494 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 |
11368 echo "configure:11369: checking for kvm_read in -lkvm" >&5 | 11495 echo "configure:11496: checking for kvm_read in -lkvm" >&5 |
11369 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` | 11496 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` |
11370 | 11497 |
11371 xe_check_libs=" -lkvm " | 11498 xe_check_libs=" -lkvm " |
11372 cat > conftest.$ac_ext <<EOF | 11499 cat > conftest.$ac_ext <<EOF |
11373 #line 11374 "configure" | 11500 #line 11501 "configure" |
11374 #include "confdefs.h" | 11501 #include "confdefs.h" |
11375 /* Override any gcc2 internal prototype to avoid an error. */ | 11502 /* Override any gcc2 internal prototype to avoid an error. */ |
11376 /* We use char because int might match the return type of a gcc2 | 11503 /* We use char because int might match the return type of a gcc2 |
11377 builtin and then its argument prototype would still apply. */ | 11504 builtin and then its argument prototype would still apply. */ |
11378 char kvm_read(); | 11505 char kvm_read(); |
11379 | 11506 |
11380 int main() { | 11507 int main() { |
11381 kvm_read() | 11508 kvm_read() |
11382 ; return 0; } | 11509 ; return 0; } |
11383 EOF | 11510 EOF |
11384 if { (eval echo configure:11385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11511 if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11385 rm -rf conftest* | 11512 rm -rf conftest* |
11386 eval "ac_cv_lib_$ac_lib_var=yes" | 11513 eval "ac_cv_lib_$ac_lib_var=yes" |
11387 else | 11514 else |
11388 echo "configure: failed program was:" >&5 | 11515 echo "configure: failed program was:" >&5 |
11389 cat conftest.$ac_ext >&5 | 11516 cat conftest.$ac_ext >&5 |
11413 | 11540 |
11414 | 11541 |
11415 fi | 11542 fi |
11416 | 11543 |
11417 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 11544 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
11418 echo "configure:11419: checking whether netdb declares h_errno" >&5 | 11545 echo "configure:11546: checking whether netdb declares h_errno" >&5 |
11419 cat > conftest.$ac_ext <<EOF | 11546 cat > conftest.$ac_ext <<EOF |
11420 #line 11421 "configure" | 11547 #line 11548 "configure" |
11421 #include "confdefs.h" | 11548 #include "confdefs.h" |
11422 #include <netdb.h> | 11549 #include <netdb.h> |
11423 int main() { | 11550 int main() { |
11424 return h_errno; | 11551 return h_errno; |
11425 ; return 0; } | 11552 ; return 0; } |
11426 EOF | 11553 EOF |
11427 if { (eval echo configure:11428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11554 if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11428 rm -rf conftest* | 11555 rm -rf conftest* |
11429 echo "$ac_t""yes" 1>&6 | 11556 echo "$ac_t""yes" 1>&6 |
11430 { test "$extra_verbose" = "yes" && cat << \EOF | 11557 { test "$extra_verbose" = "yes" && cat << \EOF |
11431 Defining HAVE_H_ERRNO | 11558 Defining HAVE_H_ERRNO |
11432 EOF | 11559 EOF |
11442 echo "$ac_t""no" 1>&6 | 11569 echo "$ac_t""no" 1>&6 |
11443 fi | 11570 fi |
11444 rm -f conftest* | 11571 rm -f conftest* |
11445 | 11572 |
11446 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 | 11573 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 |
11447 echo "configure:11448: checking for sigsetjmp" >&5 | 11574 echo "configure:11575: checking for sigsetjmp" >&5 |
11448 cat > conftest.$ac_ext <<EOF | 11575 cat > conftest.$ac_ext <<EOF |
11449 #line 11450 "configure" | 11576 #line 11577 "configure" |
11450 #include "confdefs.h" | 11577 #include "confdefs.h" |
11451 #include <setjmp.h> | 11578 #include <setjmp.h> |
11452 int main() { | 11579 int main() { |
11453 sigjmp_buf bar; sigsetjmp (bar, 0); | 11580 sigjmp_buf bar; sigsetjmp (bar, 0); |
11454 ; return 0; } | 11581 ; return 0; } |
11455 EOF | 11582 EOF |
11456 if { (eval echo configure:11457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11583 if { (eval echo configure:11584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
11457 rm -rf conftest* | 11584 rm -rf conftest* |
11458 echo "$ac_t""yes" 1>&6 | 11585 echo "$ac_t""yes" 1>&6 |
11459 { test "$extra_verbose" = "yes" && cat << \EOF | 11586 { test "$extra_verbose" = "yes" && cat << \EOF |
11460 Defining HAVE_SIGSETJMP | 11587 Defining HAVE_SIGSETJMP |
11461 EOF | 11588 EOF |
11471 echo "$ac_t""no" 1>&6 | 11598 echo "$ac_t""no" 1>&6 |
11472 fi | 11599 fi |
11473 rm -f conftest* | 11600 rm -f conftest* |
11474 | 11601 |
11475 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 11602 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
11476 echo "configure:11477: checking whether localtime caches TZ" >&5 | 11603 echo "configure:11604: checking whether localtime caches TZ" >&5 |
11477 | 11604 |
11478 if test "$ac_cv_func_tzset" = "yes"; then | 11605 if test "$ac_cv_func_tzset" = "yes"; then |
11479 cat > conftest.$ac_ext <<EOF | 11606 cat > conftest.$ac_ext <<EOF |
11480 #line 11481 "configure" | 11607 #line 11608 "configure" |
11481 #include "confdefs.h" | 11608 #include "confdefs.h" |
11482 #include <time.h> | 11609 #include <time.h> |
11483 #if STDC_HEADERS | 11610 #if STDC_HEADERS |
11484 # include <stdlib.h> | 11611 # include <stdlib.h> |
11485 #endif | 11612 #endif |
11510 if (localtime (&now)->tm_hour != hour_unset) | 11637 if (localtime (&now)->tm_hour != hour_unset) |
11511 exit (1); | 11638 exit (1); |
11512 exit (0); | 11639 exit (0); |
11513 } | 11640 } |
11514 EOF | 11641 EOF |
11515 if { (eval echo configure:11516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 11642 if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
11516 then | 11643 then |
11517 emacs_cv_localtime_cache=no | 11644 emacs_cv_localtime_cache=no |
11518 else | 11645 else |
11519 conftest_rc="$?" | 11646 conftest_rc="$?" |
11520 echo "configure: failed program was:" >&5 | 11647 echo "configure: failed program was:" >&5 |
11540 | 11667 |
11541 fi | 11668 fi |
11542 | 11669 |
11543 if test "$HAVE_TIMEVAL" = "yes"; then | 11670 if test "$HAVE_TIMEVAL" = "yes"; then |
11544 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 | 11671 echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 |
11545 echo "configure:11546: checking whether gettimeofday accepts one or two arguments" >&5 | 11672 echo "configure:11673: checking whether gettimeofday accepts one or two arguments" >&5 |
11546 cat > conftest.$ac_ext <<EOF | 11673 cat > conftest.$ac_ext <<EOF |
11547 #line 11548 "configure" | 11674 #line 11675 "configure" |
11548 #include "confdefs.h" | 11675 #include "confdefs.h" |
11549 | 11676 |
11550 #ifdef TIME_WITH_SYS_TIME | 11677 #ifdef TIME_WITH_SYS_TIME |
11551 #include <sys/time.h> | 11678 #include <sys/time.h> |
11552 #include <time.h> | 11679 #include <time.h> |
11563 struct timeval time; | 11690 struct timeval time; |
11564 gettimeofday (&time, 0); | 11691 gettimeofday (&time, 0); |
11565 | 11692 |
11566 ; return 0; } | 11693 ; return 0; } |
11567 EOF | 11694 EOF |
11568 if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11569 rm -rf conftest* | 11696 rm -rf conftest* |
11570 echo "$ac_t""two" 1>&6 | 11697 echo "$ac_t""two" 1>&6 |
11571 else | 11698 else |
11572 echo "configure: failed program was:" >&5 | 11699 echo "configure: failed program was:" >&5 |
11573 cat conftest.$ac_ext >&5 | 11700 cat conftest.$ac_ext >&5 |
11585 rm -f conftest* | 11712 rm -f conftest* |
11586 fi | 11713 fi |
11587 | 11714 |
11588 | 11715 |
11589 echo $ac_n "checking for inline""... $ac_c" 1>&6 | 11716 echo $ac_n "checking for inline""... $ac_c" 1>&6 |
11590 echo "configure:11591: checking for inline" >&5 | 11717 echo "configure:11718: checking for inline" >&5 |
11591 | 11718 |
11592 ac_cv_c_inline=no | 11719 ac_cv_c_inline=no |
11593 for ac_kw in inline __inline__ __inline; do | 11720 for ac_kw in inline __inline__ __inline; do |
11594 cat > conftest.$ac_ext <<EOF | 11721 cat > conftest.$ac_ext <<EOF |
11595 #line 11596 "configure" | 11722 #line 11723 "configure" |
11596 #include "confdefs.h" | 11723 #include "confdefs.h" |
11597 | 11724 |
11598 int main() { | 11725 int main() { |
11599 } $ac_kw foo() { | 11726 } $ac_kw foo() { |
11600 ; return 0; } | 11727 ; return 0; } |
11601 EOF | 11728 EOF |
11602 if { (eval echo configure:11603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 11729 if { (eval echo configure:11730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
11603 rm -rf conftest* | 11730 rm -rf conftest* |
11604 ac_cv_c_inline=$ac_kw; break | 11731 ac_cv_c_inline=$ac_kw; break |
11605 else | 11732 else |
11606 echo "configure: failed program was:" >&5 | 11733 echo "configure: failed program was:" >&5 |
11607 cat conftest.$ac_ext >&5 | 11734 cat conftest.$ac_ext >&5 |
11638 | 11765 |
11639 if test "$__DECC" != "yes"; then | 11766 if test "$__DECC" != "yes"; then |
11640 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 11767 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
11641 # for constant arguments. Useless! | 11768 # for constant arguments. Useless! |
11642 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 11769 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
11643 echo "configure:11644: checking for working alloca.h" >&5 | 11770 echo "configure:11771: checking for working alloca.h" >&5 |
11644 | 11771 |
11645 cat > conftest.$ac_ext <<EOF | 11772 cat > conftest.$ac_ext <<EOF |
11646 #line 11647 "configure" | 11773 #line 11774 "configure" |
11647 #include "confdefs.h" | 11774 #include "confdefs.h" |
11648 #include <alloca.h> | 11775 #include <alloca.h> |
11649 int main() { | 11776 int main() { |
11650 char *p = alloca(2 * sizeof(int)); | 11777 char *p = alloca(2 * sizeof(int)); |
11651 ; return 0; } | 11778 ; return 0; } |
11652 EOF | 11779 EOF |
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11780 if { (eval echo configure:11781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11654 rm -rf conftest* | 11781 rm -rf conftest* |
11655 ac_cv_header_alloca_h=yes | 11782 ac_cv_header_alloca_h=yes |
11656 else | 11783 else |
11657 echo "configure: failed program was:" >&5 | 11784 echo "configure: failed program was:" >&5 |
11658 cat conftest.$ac_ext >&5 | 11785 cat conftest.$ac_ext >&5 |
11672 } | 11799 } |
11673 | 11800 |
11674 fi | 11801 fi |
11675 | 11802 |
11676 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 11803 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
11677 echo "configure:11678: checking for alloca" >&5 | 11804 echo "configure:11805: checking for alloca" >&5 |
11678 | 11805 |
11679 cat > conftest.$ac_ext <<EOF | 11806 cat > conftest.$ac_ext <<EOF |
11680 #line 11681 "configure" | 11807 #line 11808 "configure" |
11681 #include "confdefs.h" | 11808 #include "confdefs.h" |
11682 | 11809 |
11683 #ifdef __GNUC__ | 11810 #ifdef __GNUC__ |
11684 # define alloca __builtin_alloca | 11811 # define alloca __builtin_alloca |
11685 #else | 11812 #else |
11703 | 11830 |
11704 int main() { | 11831 int main() { |
11705 char *p = (char *) alloca(1); | 11832 char *p = (char *) alloca(1); |
11706 ; return 0; } | 11833 ; return 0; } |
11707 EOF | 11834 EOF |
11708 if { (eval echo configure:11709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11835 if { (eval echo configure:11836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11709 rm -rf conftest* | 11836 rm -rf conftest* |
11710 ac_cv_func_alloca_works=yes | 11837 ac_cv_func_alloca_works=yes |
11711 else | 11838 else |
11712 echo "configure: failed program was:" >&5 | 11839 echo "configure: failed program was:" >&5 |
11713 cat conftest.$ac_ext >&5 | 11840 cat conftest.$ac_ext >&5 |
11742 EOF | 11869 EOF |
11743 } | 11870 } |
11744 | 11871 |
11745 | 11872 |
11746 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 11873 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
11747 echo "configure:11748: checking whether alloca needs Cray hooks" >&5 | 11874 echo "configure:11875: checking whether alloca needs Cray hooks" >&5 |
11748 | 11875 |
11749 cat > conftest.$ac_ext <<EOF | 11876 cat > conftest.$ac_ext <<EOF |
11750 #line 11751 "configure" | 11877 #line 11878 "configure" |
11751 #include "confdefs.h" | 11878 #include "confdefs.h" |
11752 #if defined(CRAY) && ! defined(CRAY2) | 11879 #if defined(CRAY) && ! defined(CRAY2) |
11753 webecray | 11880 webecray |
11754 #else | 11881 #else |
11755 wenotbecray | 11882 wenotbecray |
11769 | 11896 |
11770 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 11897 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
11771 if test $ac_cv_os_cray = yes; then | 11898 if test $ac_cv_os_cray = yes; then |
11772 for ac_func in _getb67 GETB67 getb67; do | 11899 for ac_func in _getb67 GETB67 getb67; do |
11773 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11774 echo "configure:11775: checking for $ac_func" >&5 | 11901 echo "configure:11902: checking for $ac_func" >&5 |
11775 | 11902 |
11776 cat > conftest.$ac_ext <<EOF | 11903 cat > conftest.$ac_ext <<EOF |
11777 #line 11778 "configure" | 11904 #line 11905 "configure" |
11778 #include "confdefs.h" | 11905 #include "confdefs.h" |
11779 /* System header to define __stub macros and hopefully few prototypes, | 11906 /* System header to define __stub macros and hopefully few prototypes, |
11780 which can conflict with char $ac_func(); below. */ | 11907 which can conflict with char $ac_func(); below. */ |
11781 #include <assert.h> | 11908 #include <assert.h> |
11782 /* Override any gcc2 internal prototype to avoid an error. */ | 11909 /* Override any gcc2 internal prototype to avoid an error. */ |
11795 $ac_func(); | 11922 $ac_func(); |
11796 #endif | 11923 #endif |
11797 | 11924 |
11798 ; return 0; } | 11925 ; return 0; } |
11799 EOF | 11926 EOF |
11800 if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 11927 if { (eval echo configure:11928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11801 rm -rf conftest* | 11928 rm -rf conftest* |
11802 eval "ac_cv_func_$ac_func=yes" | 11929 eval "ac_cv_func_$ac_func=yes" |
11803 else | 11930 else |
11804 echo "configure: failed program was:" >&5 | 11931 echo "configure: failed program was:" >&5 |
11805 cat conftest.$ac_ext >&5 | 11932 cat conftest.$ac_ext >&5 |
11825 | 11952 |
11826 done | 11953 done |
11827 fi | 11954 fi |
11828 | 11955 |
11829 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 11956 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
11830 echo "configure:11831: checking stack direction for C alloca" >&5 | 11957 echo "configure:11958: checking stack direction for C alloca" >&5 |
11831 | 11958 |
11832 cat > conftest.$ac_ext <<EOF | 11959 cat > conftest.$ac_ext <<EOF |
11833 #line 11834 "configure" | 11960 #line 11961 "configure" |
11834 #include "confdefs.h" | 11961 #include "confdefs.h" |
11835 find_stack_direction () | 11962 find_stack_direction () |
11836 { | 11963 { |
11837 static char *addr = 0; | 11964 static char *addr = 0; |
11838 auto char dummy; | 11965 auto char dummy; |
11847 main () | 11974 main () |
11848 { | 11975 { |
11849 exit (find_stack_direction() < 0); | 11976 exit (find_stack_direction() < 0); |
11850 } | 11977 } |
11851 EOF | 11978 EOF |
11852 if { (eval echo configure:11853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 11979 if { (eval echo configure:11980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
11853 then | 11980 then |
11854 ac_cv_c_stack_direction=1 | 11981 ac_cv_c_stack_direction=1 |
11855 else | 11982 else |
11856 conftest_rc="$?" | 11983 conftest_rc="$?" |
11857 echo "configure: failed program was:" >&5 | 11984 echo "configure: failed program was:" >&5 |
11877 fi | 12004 fi |
11878 fi | 12005 fi |
11879 | 12006 |
11880 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 12007 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
11881 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 12008 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
11882 echo "configure:11883: checking for vfork.h" >&5 | 12009 echo "configure:12010: checking for vfork.h" >&5 |
11883 | 12010 |
11884 cat > conftest.$ac_ext <<EOF | 12011 cat > conftest.$ac_ext <<EOF |
11885 #line 11886 "configure" | 12012 #line 12013 "configure" |
11886 #include "confdefs.h" | 12013 #include "confdefs.h" |
11887 #include <vfork.h> | 12014 #include <vfork.h> |
11888 EOF | 12015 EOF |
11889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11890 { (eval echo configure:11891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12017 { (eval echo configure:12018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11892 if test -z "$ac_err"; then | 12019 if test -z "$ac_err"; then |
11893 rm -rf conftest* | 12020 rm -rf conftest* |
11894 eval "ac_cv_header_$ac_safe=yes" | 12021 eval "ac_cv_header_$ac_safe=yes" |
11895 else | 12022 else |
11913 else | 12040 else |
11914 echo "$ac_t""no" 1>&6 | 12041 echo "$ac_t""no" 1>&6 |
11915 fi | 12042 fi |
11916 | 12043 |
11917 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 12044 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
11918 echo "configure:11919: checking for working vfork" >&5 | 12045 echo "configure:12046: checking for working vfork" >&5 |
11919 | 12046 |
11920 cat > conftest.$ac_ext <<EOF | 12047 cat > conftest.$ac_ext <<EOF |
11921 #line 11922 "configure" | 12048 #line 12049 "configure" |
11922 #include "confdefs.h" | 12049 #include "confdefs.h" |
11923 /* Thanks to Paul Eggert for this test. */ | 12050 /* Thanks to Paul Eggert for this test. */ |
11924 #include <stdio.h> | 12051 #include <stdio.h> |
11925 #include <sys/types.h> | 12052 #include <sys/types.h> |
11926 #include <sys/stat.h> | 12053 #include <sys/stat.h> |
12011 || fstat(fileno(stdout), &st) != 0 | 12138 || fstat(fileno(stdout), &st) != 0 |
12012 ); | 12139 ); |
12013 } | 12140 } |
12014 } | 12141 } |
12015 EOF | 12142 EOF |
12016 if { (eval echo configure:12017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 12143 if { (eval echo configure:12144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
12017 then | 12144 then |
12018 ac_cv_func_vfork_works=yes | 12145 ac_cv_func_vfork_works=yes |
12019 else | 12146 else |
12020 conftest_rc="$?" | 12147 conftest_rc="$?" |
12021 echo "configure: failed program was:" >&5 | 12148 echo "configure: failed program was:" >&5 |
12037 | 12164 |
12038 fi | 12165 fi |
12039 | 12166 |
12040 | 12167 |
12041 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 | 12168 echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 |
12042 echo "configure:12043: checking for working strcoll" >&5 | 12169 echo "configure:12170: checking for working strcoll" >&5 |
12043 | 12170 |
12044 cat > conftest.$ac_ext <<EOF | 12171 cat > conftest.$ac_ext <<EOF |
12045 #line 12046 "configure" | 12172 #line 12173 "configure" |
12046 #include "confdefs.h" | 12173 #include "confdefs.h" |
12047 #include <string.h> | 12174 #include <string.h> |
12048 main () | 12175 main () |
12049 { | 12176 { |
12050 exit (strcoll ("abc", "def") >= 0 || | 12177 exit (strcoll ("abc", "def") >= 0 || |
12051 strcoll ("ABC", "DEF") >= 0 || | 12178 strcoll ("ABC", "DEF") >= 0 || |
12052 strcoll ("123", "456") >= 0); | 12179 strcoll ("123", "456") >= 0); |
12053 } | 12180 } |
12054 EOF | 12181 EOF |
12055 if { (eval echo configure:12056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 12182 if { (eval echo configure:12183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
12056 then | 12183 then |
12057 ac_cv_func_strcoll_works=yes | 12184 ac_cv_func_strcoll_works=yes |
12058 else | 12185 else |
12059 conftest_rc="$?" | 12186 conftest_rc="$?" |
12060 echo "configure: failed program was:" >&5 | 12187 echo "configure: failed program was:" >&5 |
12078 | 12205 |
12079 | 12206 |
12080 for ac_func in getpgrp | 12207 for ac_func in getpgrp |
12081 do | 12208 do |
12082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 12209 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
12083 echo "configure:12084: checking for $ac_func" >&5 | 12210 echo "configure:12211: checking for $ac_func" >&5 |
12084 | 12211 |
12085 cat > conftest.$ac_ext <<EOF | 12212 cat > conftest.$ac_ext <<EOF |
12086 #line 12087 "configure" | 12213 #line 12214 "configure" |
12087 #include "confdefs.h" | 12214 #include "confdefs.h" |
12088 /* System header to define __stub macros and hopefully few prototypes, | 12215 /* System header to define __stub macros and hopefully few prototypes, |
12089 which can conflict with char $ac_func(); below. */ | 12216 which can conflict with char $ac_func(); below. */ |
12090 #include <assert.h> | 12217 #include <assert.h> |
12091 /* Override any gcc2 internal prototype to avoid an error. */ | 12218 /* Override any gcc2 internal prototype to avoid an error. */ |
12104 $ac_func(); | 12231 $ac_func(); |
12105 #endif | 12232 #endif |
12106 | 12233 |
12107 ; return 0; } | 12234 ; return 0; } |
12108 EOF | 12235 EOF |
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12236 if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12110 rm -rf conftest* | 12237 rm -rf conftest* |
12111 eval "ac_cv_func_$ac_func=yes" | 12238 eval "ac_cv_func_$ac_func=yes" |
12112 else | 12239 else |
12113 echo "configure: failed program was:" >&5 | 12240 echo "configure: failed program was:" >&5 |
12114 cat conftest.$ac_ext >&5 | 12241 cat conftest.$ac_ext >&5 |
12132 echo "$ac_t""no" 1>&6 | 12259 echo "$ac_t""no" 1>&6 |
12133 fi | 12260 fi |
12134 done | 12261 done |
12135 | 12262 |
12136 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 | 12263 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 |
12137 echo "configure:12138: checking whether getpgrp takes no argument" >&5 | 12264 echo "configure:12265: checking whether getpgrp takes no argument" >&5 |
12138 | 12265 |
12139 cat > conftest.$ac_ext <<EOF | 12266 cat > conftest.$ac_ext <<EOF |
12140 #line 12141 "configure" | 12267 #line 12268 "configure" |
12141 #include "confdefs.h" | 12268 #include "confdefs.h" |
12142 | 12269 |
12143 /* | 12270 /* |
12144 * If this system has a BSD-style getpgrp(), | 12271 * If this system has a BSD-style getpgrp(), |
12145 * which takes a pid argument, exit unsuccessfully. | 12272 * which takes a pid argument, exit unsuccessfully. |
12190 exit(s>>8); | 12317 exit(s>>8); |
12191 } | 12318 } |
12192 } | 12319 } |
12193 | 12320 |
12194 EOF | 12321 EOF |
12195 if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 12322 if { (eval echo configure:12323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
12196 then | 12323 then |
12197 ac_cv_func_getpgrp_void=yes | 12324 ac_cv_func_getpgrp_void=yes |
12198 else | 12325 else |
12199 conftest_rc="$?" | 12326 conftest_rc="$?" |
12200 echo "configure: failed program was:" >&5 | 12327 echo "configure: failed program was:" >&5 |
12217 | 12344 |
12218 fi | 12345 fi |
12219 | 12346 |
12220 | 12347 |
12221 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 12348 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
12222 echo "configure:12223: checking for working mmap" >&5 | 12349 echo "configure:12350: checking for working mmap" >&5 |
12223 case "$opsys" in ultrix* ) have_mmap=no ;; *) | 12350 case "$opsys" in ultrix* ) have_mmap=no ;; *) |
12224 cat > conftest.$ac_ext <<EOF | 12351 cat > conftest.$ac_ext <<EOF |
12225 #line 12226 "configure" | 12352 #line 12353 "configure" |
12226 #include "confdefs.h" | 12353 #include "confdefs.h" |
12227 #include <stdio.h> | 12354 #include <stdio.h> |
12228 #include <unistd.h> | 12355 #include <unistd.h> |
12229 #include <fcntl.h> | 12356 #include <fcntl.h> |
12230 #include <sys/mman.h> | 12357 #include <sys/mman.h> |
12253 return 0; | 12380 return 0; |
12254 perror ("conftest: mmap failed"); | 12381 perror ("conftest: mmap failed"); |
12255 return 1; | 12382 return 1; |
12256 } | 12383 } |
12257 EOF | 12384 EOF |
12258 if { (eval echo configure:12259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 12385 if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
12259 then | 12386 then |
12260 have_mmap=yes | 12387 have_mmap=yes |
12261 else | 12388 else |
12262 conftest_rc="$?" | 12389 conftest_rc="$?" |
12263 echo "configure: failed program was:" >&5 | 12390 echo "configure: failed program was:" >&5 |
12275 #define HAVE_MMAP 1 | 12402 #define HAVE_MMAP 1 |
12276 EOF | 12403 EOF |
12277 } | 12404 } |
12278 | 12405 |
12279 | 12406 |
12280 case "$opsys" in cygwin*) | 12407 case "$opsys" in cygwin*) |
12281 test "$rel_alloc" = "default" && rel_alloc=no ;; | 12408 test "$rel_alloc" = "default" && rel_alloc=no ;; |
12282 esac | 12409 esac |
12283 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no | 12410 test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no |
12284 if test "$rel_alloc $have_mmap" = "default yes"; then | 12411 if test "$rel_alloc $have_mmap" = "default yes"; then |
12285 if test "$doug_lea_malloc" = "yes"; then | 12412 if test "$doug_lea_malloc" = "yes"; then |
12286 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 | 12413 echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 |
12287 echo "configure:12288: checking for M_MMAP_THRESHOLD" >&5 | 12414 echo "configure:12415: checking for M_MMAP_THRESHOLD" >&5 |
12288 cat > conftest.$ac_ext <<EOF | 12415 cat > conftest.$ac_ext <<EOF |
12289 #line 12290 "configure" | 12416 #line 12417 "configure" |
12290 #include "confdefs.h" | 12417 #include "confdefs.h" |
12291 #include <malloc.h> | 12418 #include <malloc.h> |
12292 int main() { | 12419 int main() { |
12293 | 12420 |
12294 #ifndef M_MMAP_THRESHOLD | 12421 #ifndef M_MMAP_THRESHOLD |
12296 !@+$%^&*_)(_ - unlikely to compile... | 12423 !@+$%^&*_)(_ - unlikely to compile... |
12297 #endif | 12424 #endif |
12298 | 12425 |
12299 ; return 0; } | 12426 ; return 0; } |
12300 EOF | 12427 EOF |
12301 if { (eval echo configure:12302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 12428 if { (eval echo configure:12429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
12302 rm -rf conftest* | 12429 rm -rf conftest* |
12303 rel_alloc=no; echo "$ac_t""yes" 1>&6; | 12430 rel_alloc=no; echo "$ac_t""yes" 1>&6; |
12304 else | 12431 else |
12305 echo "configure: failed program was:" >&5 | 12432 echo "configure: failed program was:" >&5 |
12306 cat conftest.$ac_ext >&5 | 12433 cat conftest.$ac_ext >&5 |
12321 } | 12448 } |
12322 | 12449 |
12323 | 12450 |
12324 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` | 12451 ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` |
12325 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 | 12452 echo $ac_n "checking for termios.h""... $ac_c" 1>&6 |
12326 echo "configure:12327: checking for termios.h" >&5 | 12453 echo "configure:12454: checking for termios.h" >&5 |
12327 | 12454 |
12328 cat > conftest.$ac_ext <<EOF | 12455 cat > conftest.$ac_ext <<EOF |
12329 #line 12330 "configure" | 12456 #line 12457 "configure" |
12330 #include "confdefs.h" | 12457 #include "confdefs.h" |
12331 #include <termios.h> | 12458 #include <termios.h> |
12332 EOF | 12459 EOF |
12333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12460 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12334 { (eval echo configure:12335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12461 { (eval echo configure:12462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12462 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12336 if test -z "$ac_err"; then | 12463 if test -z "$ac_err"; then |
12337 rm -rf conftest* | 12464 rm -rf conftest* |
12338 eval "ac_cv_header_$ac_safe=yes" | 12465 eval "ac_cv_header_$ac_safe=yes" |
12339 else | 12466 else |
12372 | 12499 |
12373 else | 12500 else |
12374 echo "$ac_t""no" 1>&6 | 12501 echo "$ac_t""no" 1>&6 |
12375 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` | 12502 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` |
12376 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 | 12503 echo $ac_n "checking for termio.h""... $ac_c" 1>&6 |
12377 echo "configure:12378: checking for termio.h" >&5 | 12504 echo "configure:12505: checking for termio.h" >&5 |
12378 | 12505 |
12379 cat > conftest.$ac_ext <<EOF | 12506 cat > conftest.$ac_ext <<EOF |
12380 #line 12381 "configure" | 12507 #line 12508 "configure" |
12381 #include "confdefs.h" | 12508 #include "confdefs.h" |
12382 #include <termio.h> | 12509 #include <termio.h> |
12383 EOF | 12510 EOF |
12384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12385 { (eval echo configure:12386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12512 { (eval echo configure:12513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12387 if test -z "$ac_err"; then | 12514 if test -z "$ac_err"; then |
12388 rm -rf conftest* | 12515 rm -rf conftest* |
12389 eval "ac_cv_header_$ac_safe=yes" | 12516 eval "ac_cv_header_$ac_safe=yes" |
12390 else | 12517 else |
12412 fi | 12539 fi |
12413 | 12540 |
12414 | 12541 |
12415 | 12542 |
12416 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 12543 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
12417 echo "configure:12418: checking for socket" >&5 | 12544 echo "configure:12545: checking for socket" >&5 |
12418 | 12545 |
12419 cat > conftest.$ac_ext <<EOF | 12546 cat > conftest.$ac_ext <<EOF |
12420 #line 12421 "configure" | 12547 #line 12548 "configure" |
12421 #include "confdefs.h" | 12548 #include "confdefs.h" |
12422 /* System header to define __stub macros and hopefully few prototypes, | 12549 /* System header to define __stub macros and hopefully few prototypes, |
12423 which can conflict with char socket(); below. */ | 12550 which can conflict with char socket(); below. */ |
12424 #include <assert.h> | 12551 #include <assert.h> |
12425 /* Override any gcc2 internal prototype to avoid an error. */ | 12552 /* Override any gcc2 internal prototype to avoid an error. */ |
12438 socket(); | 12565 socket(); |
12439 #endif | 12566 #endif |
12440 | 12567 |
12441 ; return 0; } | 12568 ; return 0; } |
12442 EOF | 12569 EOF |
12443 if { (eval echo configure:12444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12444 rm -rf conftest* | 12571 rm -rf conftest* |
12445 eval "ac_cv_func_socket=yes" | 12572 eval "ac_cv_func_socket=yes" |
12446 else | 12573 else |
12447 echo "configure: failed program was:" >&5 | 12574 echo "configure: failed program was:" >&5 |
12448 cat conftest.$ac_ext >&5 | 12575 cat conftest.$ac_ext >&5 |
12453 | 12580 |
12454 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | 12581 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
12455 echo "$ac_t""yes" 1>&6 | 12582 echo "$ac_t""yes" 1>&6 |
12456 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 12583 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
12457 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 12584 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
12458 echo "configure:12459: checking for netinet/in.h" >&5 | 12585 echo "configure:12586: checking for netinet/in.h" >&5 |
12459 | 12586 |
12460 cat > conftest.$ac_ext <<EOF | 12587 cat > conftest.$ac_ext <<EOF |
12461 #line 12462 "configure" | 12588 #line 12589 "configure" |
12462 #include "confdefs.h" | 12589 #include "confdefs.h" |
12463 #include <netinet/in.h> | 12590 #include <netinet/in.h> |
12464 EOF | 12591 EOF |
12465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12466 { (eval echo configure:12467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12593 { (eval echo configure:12594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12468 if test -z "$ac_err"; then | 12595 if test -z "$ac_err"; then |
12469 rm -rf conftest* | 12596 rm -rf conftest* |
12470 eval "ac_cv_header_$ac_safe=yes" | 12597 eval "ac_cv_header_$ac_safe=yes" |
12471 else | 12598 else |
12478 rm -f conftest* | 12605 rm -f conftest* |
12479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 12606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12480 echo "$ac_t""yes" 1>&6 | 12607 echo "$ac_t""yes" 1>&6 |
12481 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 12608 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
12482 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 12609 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
12483 echo "configure:12484: checking for arpa/inet.h" >&5 | 12610 echo "configure:12611: checking for arpa/inet.h" >&5 |
12484 | 12611 |
12485 cat > conftest.$ac_ext <<EOF | 12612 cat > conftest.$ac_ext <<EOF |
12486 #line 12487 "configure" | 12613 #line 12614 "configure" |
12487 #include "confdefs.h" | 12614 #include "confdefs.h" |
12488 #include <arpa/inet.h> | 12615 #include <arpa/inet.h> |
12489 EOF | 12616 EOF |
12490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12491 { (eval echo configure:12492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12618 { (eval echo configure:12619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12493 if test -z "$ac_err"; then | 12620 if test -z "$ac_err"; then |
12494 rm -rf conftest* | 12621 rm -rf conftest* |
12495 eval "ac_cv_header_$ac_safe=yes" | 12622 eval "ac_cv_header_$ac_safe=yes" |
12496 else | 12623 else |
12511 #define HAVE_SOCKETS 1 | 12638 #define HAVE_SOCKETS 1 |
12512 EOF | 12639 EOF |
12513 } | 12640 } |
12514 | 12641 |
12515 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 | 12642 echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 |
12516 echo "configure:12517: checking "for sun_len member in struct sockaddr_un"" >&5 | 12643 echo "configure:12644: checking "for sun_len member in struct sockaddr_un"" >&5 |
12517 cat > conftest.$ac_ext <<EOF | 12644 cat > conftest.$ac_ext <<EOF |
12518 #line 12519 "configure" | 12645 #line 12646 "configure" |
12519 #include "confdefs.h" | 12646 #include "confdefs.h" |
12520 | 12647 |
12521 #include <sys/types.h> | 12648 #include <sys/types.h> |
12522 #include <sys/socket.h> | 12649 #include <sys/socket.h> |
12523 #include <sys/un.h> | 12650 #include <sys/un.h> |
12524 | 12651 |
12525 int main() { | 12652 int main() { |
12526 static struct sockaddr_un x; x.sun_len = 1; | 12653 static struct sockaddr_un x; x.sun_len = 1; |
12527 ; return 0; } | 12654 ; return 0; } |
12528 EOF | 12655 EOF |
12529 if { (eval echo configure:12530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12656 if { (eval echo configure:12657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12530 rm -rf conftest* | 12657 rm -rf conftest* |
12531 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | 12658 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
12532 Defining HAVE_SOCKADDR_SUN_LEN | 12659 Defining HAVE_SOCKADDR_SUN_LEN |
12533 EOF | 12660 EOF |
12534 cat >> confdefs.h <<\EOF | 12661 cat >> confdefs.h <<\EOF |
12542 rm -rf conftest* | 12669 rm -rf conftest* |
12543 echo "$ac_t""no" 1>&6 | 12670 echo "$ac_t""no" 1>&6 |
12544 fi | 12671 fi |
12545 rm -f conftest* | 12672 rm -f conftest* |
12546 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 | 12673 echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 |
12547 echo "configure:12548: checking "for ip_mreq struct in netinet/in.h"" >&5 | 12674 echo "configure:12675: checking "for ip_mreq struct in netinet/in.h"" >&5 |
12548 cat > conftest.$ac_ext <<EOF | 12675 cat > conftest.$ac_ext <<EOF |
12549 #line 12550 "configure" | 12676 #line 12677 "configure" |
12550 #include "confdefs.h" | 12677 #include "confdefs.h" |
12551 | 12678 |
12552 #include <sys/types.h> | 12679 #include <sys/types.h> |
12553 #include <netinet/in.h> | 12680 #include <netinet/in.h> |
12554 | 12681 |
12555 int main() { | 12682 int main() { |
12556 static struct ip_mreq x; | 12683 static struct ip_mreq x; |
12557 ; return 0; } | 12684 ; return 0; } |
12558 EOF | 12685 EOF |
12559 if { (eval echo configure:12560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12686 if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12560 rm -rf conftest* | 12687 rm -rf conftest* |
12561 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF | 12688 echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF |
12562 Defining HAVE_MULTICAST | 12689 Defining HAVE_MULTICAST |
12563 EOF | 12690 EOF |
12564 cat >> confdefs.h <<\EOF | 12691 cat >> confdefs.h <<\EOF |
12585 echo "$ac_t""no" 1>&6 | 12712 echo "$ac_t""no" 1>&6 |
12586 fi | 12713 fi |
12587 | 12714 |
12588 | 12715 |
12589 echo $ac_n "checking for msgget""... $ac_c" 1>&6 | 12716 echo $ac_n "checking for msgget""... $ac_c" 1>&6 |
12590 echo "configure:12591: checking for msgget" >&5 | 12717 echo "configure:12718: checking for msgget" >&5 |
12591 | 12718 |
12592 cat > conftest.$ac_ext <<EOF | 12719 cat > conftest.$ac_ext <<EOF |
12593 #line 12594 "configure" | 12720 #line 12721 "configure" |
12594 #include "confdefs.h" | 12721 #include "confdefs.h" |
12595 /* System header to define __stub macros and hopefully few prototypes, | 12722 /* System header to define __stub macros and hopefully few prototypes, |
12596 which can conflict with char msgget(); below. */ | 12723 which can conflict with char msgget(); below. */ |
12597 #include <assert.h> | 12724 #include <assert.h> |
12598 /* Override any gcc2 internal prototype to avoid an error. */ | 12725 /* Override any gcc2 internal prototype to avoid an error. */ |
12611 msgget(); | 12738 msgget(); |
12612 #endif | 12739 #endif |
12613 | 12740 |
12614 ; return 0; } | 12741 ; return 0; } |
12615 EOF | 12742 EOF |
12616 if { (eval echo configure:12617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 12743 if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12617 rm -rf conftest* | 12744 rm -rf conftest* |
12618 eval "ac_cv_func_msgget=yes" | 12745 eval "ac_cv_func_msgget=yes" |
12619 else | 12746 else |
12620 echo "configure: failed program was:" >&5 | 12747 echo "configure: failed program was:" >&5 |
12621 cat conftest.$ac_ext >&5 | 12748 cat conftest.$ac_ext >&5 |
12626 | 12753 |
12627 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then | 12754 if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then |
12628 echo "$ac_t""yes" 1>&6 | 12755 echo "$ac_t""yes" 1>&6 |
12629 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` | 12756 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` |
12630 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 | 12757 echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 |
12631 echo "configure:12632: checking for sys/ipc.h" >&5 | 12758 echo "configure:12759: checking for sys/ipc.h" >&5 |
12632 | 12759 |
12633 cat > conftest.$ac_ext <<EOF | 12760 cat > conftest.$ac_ext <<EOF |
12634 #line 12635 "configure" | 12761 #line 12762 "configure" |
12635 #include "confdefs.h" | 12762 #include "confdefs.h" |
12636 #include <sys/ipc.h> | 12763 #include <sys/ipc.h> |
12637 EOF | 12764 EOF |
12638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12639 { (eval echo configure:12640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12766 { (eval echo configure:12767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12641 if test -z "$ac_err"; then | 12768 if test -z "$ac_err"; then |
12642 rm -rf conftest* | 12769 rm -rf conftest* |
12643 eval "ac_cv_header_$ac_safe=yes" | 12770 eval "ac_cv_header_$ac_safe=yes" |
12644 else | 12771 else |
12651 rm -f conftest* | 12778 rm -f conftest* |
12652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 12779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12653 echo "$ac_t""yes" 1>&6 | 12780 echo "$ac_t""yes" 1>&6 |
12654 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` | 12781 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` |
12655 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 | 12782 echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 |
12656 echo "configure:12657: checking for sys/msg.h" >&5 | 12783 echo "configure:12784: checking for sys/msg.h" >&5 |
12657 | 12784 |
12658 cat > conftest.$ac_ext <<EOF | 12785 cat > conftest.$ac_ext <<EOF |
12659 #line 12660 "configure" | 12786 #line 12787 "configure" |
12660 #include "confdefs.h" | 12787 #include "confdefs.h" |
12661 #include <sys/msg.h> | 12788 #include <sys/msg.h> |
12662 EOF | 12789 EOF |
12663 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12664 { (eval echo configure:12665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12791 { (eval echo configure:12792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12665 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12666 if test -z "$ac_err"; then | 12793 if test -z "$ac_err"; then |
12667 rm -rf conftest* | 12794 rm -rf conftest* |
12668 eval "ac_cv_header_$ac_safe=yes" | 12795 eval "ac_cv_header_$ac_safe=yes" |
12669 else | 12796 else |
12697 fi | 12824 fi |
12698 | 12825 |
12699 | 12826 |
12700 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` | 12827 ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` |
12701 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 | 12828 echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 |
12702 echo "configure:12703: checking for dirent.h" >&5 | 12829 echo "configure:12830: checking for dirent.h" >&5 |
12703 | 12830 |
12704 cat > conftest.$ac_ext <<EOF | 12831 cat > conftest.$ac_ext <<EOF |
12705 #line 12706 "configure" | 12832 #line 12833 "configure" |
12706 #include "confdefs.h" | 12833 #include "confdefs.h" |
12707 #include <dirent.h> | 12834 #include <dirent.h> |
12708 EOF | 12835 EOF |
12709 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12710 { (eval echo configure:12711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12837 { (eval echo configure:12838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12711 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12712 if test -z "$ac_err"; then | 12839 if test -z "$ac_err"; then |
12713 rm -rf conftest* | 12840 rm -rf conftest* |
12714 eval "ac_cv_header_$ac_safe=yes" | 12841 eval "ac_cv_header_$ac_safe=yes" |
12715 else | 12842 else |
12732 | 12859 |
12733 else | 12860 else |
12734 echo "$ac_t""no" 1>&6 | 12861 echo "$ac_t""no" 1>&6 |
12735 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` | 12862 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` |
12736 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 | 12863 echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 |
12737 echo "configure:12738: checking for sys/dir.h" >&5 | 12864 echo "configure:12865: checking for sys/dir.h" >&5 |
12738 | 12865 |
12739 cat > conftest.$ac_ext <<EOF | 12866 cat > conftest.$ac_ext <<EOF |
12740 #line 12741 "configure" | 12867 #line 12868 "configure" |
12741 #include "confdefs.h" | 12868 #include "confdefs.h" |
12742 #include <sys/dir.h> | 12869 #include <sys/dir.h> |
12743 EOF | 12870 EOF |
12744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12745 { (eval echo configure:12746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12872 { (eval echo configure:12873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12747 if test -z "$ac_err"; then | 12874 if test -z "$ac_err"; then |
12748 rm -rf conftest* | 12875 rm -rf conftest* |
12749 eval "ac_cv_header_$ac_safe=yes" | 12876 eval "ac_cv_header_$ac_safe=yes" |
12750 else | 12877 else |
12773 fi | 12900 fi |
12774 | 12901 |
12775 | 12902 |
12776 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 12903 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
12777 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 12904 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
12778 echo "configure:12779: checking for nlist.h" >&5 | 12905 echo "configure:12906: checking for nlist.h" >&5 |
12779 | 12906 |
12780 cat > conftest.$ac_ext <<EOF | 12907 cat > conftest.$ac_ext <<EOF |
12781 #line 12782 "configure" | 12908 #line 12909 "configure" |
12782 #include "confdefs.h" | 12909 #include "confdefs.h" |
12783 #include <nlist.h> | 12910 #include <nlist.h> |
12784 EOF | 12911 EOF |
12785 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12786 { (eval echo configure:12787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12913 { (eval echo configure:12914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12787 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12788 if test -z "$ac_err"; then | 12915 if test -z "$ac_err"; then |
12789 rm -rf conftest* | 12916 rm -rf conftest* |
12790 eval "ac_cv_header_$ac_safe=yes" | 12917 eval "ac_cv_header_$ac_safe=yes" |
12791 else | 12918 else |
12811 fi | 12938 fi |
12812 | 12939 |
12813 | 12940 |
12814 | 12941 |
12815 echo "checking "for sound support"" 1>&6 | 12942 echo "checking "for sound support"" 1>&6 |
12816 echo "configure:12817: checking "for sound support"" >&5 | 12943 echo "configure:12944: checking "for sound support"" >&5 |
12817 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes | 12944 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes |
12818 | 12945 |
12819 if test "$with_native_sound" != "no"; then | 12946 if test "$with_native_sound" != "no"; then |
12820 if test -n "$native_sound_lib"; then | 12947 if test -n "$native_sound_lib"; then |
12821 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` | 12948 ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` |
12822 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 | 12949 echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 |
12823 echo "configure:12824: checking for multimedia/audio_device.h" >&5 | 12950 echo "configure:12951: checking for multimedia/audio_device.h" >&5 |
12824 | 12951 |
12825 cat > conftest.$ac_ext <<EOF | 12952 cat > conftest.$ac_ext <<EOF |
12826 #line 12827 "configure" | 12953 #line 12954 "configure" |
12827 #include "confdefs.h" | 12954 #include "confdefs.h" |
12828 #include <multimedia/audio_device.h> | 12955 #include <multimedia/audio_device.h> |
12829 EOF | 12956 EOF |
12830 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 12957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12831 { (eval echo configure:12832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 12958 { (eval echo configure:12959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12832 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 12959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12833 if test -z "$ac_err"; then | 12960 if test -z "$ac_err"; then |
12834 rm -rf conftest* | 12961 rm -rf conftest* |
12835 eval "ac_cv_header_$ac_safe=yes" | 12962 eval "ac_cv_header_$ac_safe=yes" |
12836 else | 12963 else |
12874 case "$canonical" in | 13001 case "$canonical" in |
12875 *-sgi-* ) | 13002 *-sgi-* ) |
12876 if test -z "$native_sound_lib"; then | 13003 if test -z "$native_sound_lib"; then |
12877 | 13004 |
12878 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 | 13005 echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 |
12879 echo "configure:12880: checking for ALopenport in -laudio" >&5 | 13006 echo "configure:13007: checking for ALopenport in -laudio" >&5 |
12880 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` | 13007 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` |
12881 | 13008 |
12882 xe_check_libs=" -laudio " | 13009 xe_check_libs=" -laudio " |
12883 cat > conftest.$ac_ext <<EOF | 13010 cat > conftest.$ac_ext <<EOF |
12884 #line 12885 "configure" | 13011 #line 13012 "configure" |
12885 #include "confdefs.h" | 13012 #include "confdefs.h" |
12886 /* Override any gcc2 internal prototype to avoid an error. */ | 13013 /* Override any gcc2 internal prototype to avoid an error. */ |
12887 /* We use char because int might match the return type of a gcc2 | 13014 /* We use char because int might match the return type of a gcc2 |
12888 builtin and then its argument prototype would still apply. */ | 13015 builtin and then its argument prototype would still apply. */ |
12889 char ALopenport(); | 13016 char ALopenport(); |
12890 | 13017 |
12891 int main() { | 13018 int main() { |
12892 ALopenport() | 13019 ALopenport() |
12893 ; return 0; } | 13020 ; return 0; } |
12894 EOF | 13021 EOF |
12895 if { (eval echo configure:12896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13022 if { (eval echo configure:13023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12896 rm -rf conftest* | 13023 rm -rf conftest* |
12897 eval "ac_cv_lib_$ac_lib_var=yes" | 13024 eval "ac_cv_lib_$ac_lib_var=yes" |
12898 else | 13025 else |
12899 echo "configure: failed program was:" >&5 | 13026 echo "configure: failed program was:" >&5 |
12900 cat conftest.$ac_ext >&5 | 13027 cat conftest.$ac_ext >&5 |
12921 fi ;; | 13048 fi ;; |
12922 hppa*-hp-hpux* ) | 13049 hppa*-hp-hpux* ) |
12923 if test -z "$native_sound_lib"; then | 13050 if test -z "$native_sound_lib"; then |
12924 | 13051 |
12925 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 | 13052 echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 |
12926 echo "configure:12927: checking for AOpenAudio in -lAlib" >&5 | 13053 echo "configure:13054: checking for AOpenAudio in -lAlib" >&5 |
12927 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` | 13054 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` |
12928 | 13055 |
12929 xe_check_libs=" -lAlib " | 13056 xe_check_libs=" -lAlib " |
12930 cat > conftest.$ac_ext <<EOF | 13057 cat > conftest.$ac_ext <<EOF |
12931 #line 12932 "configure" | 13058 #line 13059 "configure" |
12932 #include "confdefs.h" | 13059 #include "confdefs.h" |
12933 /* Override any gcc2 internal prototype to avoid an error. */ | 13060 /* Override any gcc2 internal prototype to avoid an error. */ |
12934 /* We use char because int might match the return type of a gcc2 | 13061 /* We use char because int might match the return type of a gcc2 |
12935 builtin and then its argument prototype would still apply. */ | 13062 builtin and then its argument prototype would still apply. */ |
12936 char AOpenAudio(); | 13063 char AOpenAudio(); |
12937 | 13064 |
12938 int main() { | 13065 int main() { |
12939 AOpenAudio() | 13066 AOpenAudio() |
12940 ; return 0; } | 13067 ; return 0; } |
12941 EOF | 13068 EOF |
12942 if { (eval echo configure:12943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13069 if { (eval echo configure:13070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
12943 rm -rf conftest* | 13070 rm -rf conftest* |
12944 eval "ac_cv_lib_$ac_lib_var=yes" | 13071 eval "ac_cv_lib_$ac_lib_var=yes" |
12945 else | 13072 else |
12946 echo "configure: failed program was:" >&5 | 13073 echo "configure: failed program was:" >&5 |
12947 cat conftest.$ac_ext >&5 | 13074 cat conftest.$ac_ext >&5 |
12975 | 13102 |
12976 if test -z "$sound_found"; then | 13103 if test -z "$sound_found"; then |
12977 for dir in "machine" "sys" "linux"; do | 13104 for dir in "machine" "sys" "linux"; do |
12978 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` | 13105 ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` |
12979 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 | 13106 echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 |
12980 echo "configure:12981: checking for ${dir}/soundcard.h" >&5 | 13107 echo "configure:13108: checking for ${dir}/soundcard.h" >&5 |
12981 | 13108 |
12982 cat > conftest.$ac_ext <<EOF | 13109 cat > conftest.$ac_ext <<EOF |
12983 #line 12984 "configure" | 13110 #line 13111 "configure" |
12984 #include "confdefs.h" | 13111 #include "confdefs.h" |
12985 #include <${dir}/soundcard.h> | 13112 #include <${dir}/soundcard.h> |
12986 EOF | 13113 EOF |
12987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
12988 { (eval echo configure:12989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13115 { (eval echo configure:13116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12990 if test -z "$ac_err"; then | 13117 if test -z "$ac_err"; then |
12991 rm -rf conftest* | 13118 rm -rf conftest* |
12992 eval "ac_cv_header_$ac_safe=yes" | 13119 eval "ac_cv_header_$ac_safe=yes" |
12993 else | 13120 else |
13044 fi | 13171 fi |
13045 | 13172 |
13046 if test "$with_nas_sound" != "no"; then | 13173 if test "$with_nas_sound" != "no"; then |
13047 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` | 13174 ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` |
13048 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 | 13175 echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 |
13049 echo "configure:13050: checking for audio/audiolib.h" >&5 | 13176 echo "configure:13177: checking for audio/audiolib.h" >&5 |
13050 | 13177 |
13051 cat > conftest.$ac_ext <<EOF | 13178 cat > conftest.$ac_ext <<EOF |
13052 #line 13053 "configure" | 13179 #line 13180 "configure" |
13053 #include "confdefs.h" | 13180 #include "confdefs.h" |
13054 #include <audio/audiolib.h> | 13181 #include <audio/audiolib.h> |
13055 EOF | 13182 EOF |
13056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13057 { (eval echo configure:13058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13184 { (eval echo configure:13185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13059 if test -z "$ac_err"; then | 13186 if test -z "$ac_err"; then |
13060 rm -rf conftest* | 13187 rm -rf conftest* |
13061 eval "ac_cv_header_$ac_safe=yes" | 13188 eval "ac_cv_header_$ac_safe=yes" |
13062 else | 13189 else |
13070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 13197 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13071 echo "$ac_t""yes" 1>&6 | 13198 echo "$ac_t""yes" 1>&6 |
13072 | 13199 |
13073 | 13200 |
13074 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 | 13201 echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 |
13075 echo "configure:13076: checking for AuOpenServer in -laudio" >&5 | 13202 echo "configure:13203: checking for AuOpenServer in -laudio" >&5 |
13076 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` | 13203 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` |
13077 | 13204 |
13078 xe_check_libs=" -laudio " | 13205 xe_check_libs=" -laudio " |
13079 cat > conftest.$ac_ext <<EOF | 13206 cat > conftest.$ac_ext <<EOF |
13080 #line 13081 "configure" | 13207 #line 13208 "configure" |
13081 #include "confdefs.h" | 13208 #include "confdefs.h" |
13082 /* Override any gcc2 internal prototype to avoid an error. */ | 13209 /* Override any gcc2 internal prototype to avoid an error. */ |
13083 /* We use char because int might match the return type of a gcc2 | 13210 /* We use char because int might match the return type of a gcc2 |
13084 builtin and then its argument prototype would still apply. */ | 13211 builtin and then its argument prototype would still apply. */ |
13085 char AuOpenServer(); | 13212 char AuOpenServer(); |
13086 | 13213 |
13087 int main() { | 13214 int main() { |
13088 AuOpenServer() | 13215 AuOpenServer() |
13089 ; return 0; } | 13216 ; return 0; } |
13090 EOF | 13217 EOF |
13091 if { (eval echo configure:13092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13218 if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13092 rm -rf conftest* | 13219 rm -rf conftest* |
13093 eval "ac_cv_lib_$ac_lib_var=yes" | 13220 eval "ac_cv_lib_$ac_lib_var=yes" |
13094 else | 13221 else |
13095 echo "configure: failed program was:" >&5 | 13222 echo "configure: failed program was:" >&5 |
13096 cat conftest.$ac_ext >&5 | 13223 cat conftest.$ac_ext >&5 |
13125 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then | 13252 extra_objs="$extra_objs nas.o" && if test "$extra_verbose" = "yes"; then |
13126 echo " xemacs will be linked with \"nas.o\"" | 13253 echo " xemacs will be linked with \"nas.o\"" |
13127 fi | 13254 fi |
13128 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi | 13255 libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi |
13129 cat > conftest.$ac_ext <<EOF | 13256 cat > conftest.$ac_ext <<EOF |
13130 #line 13131 "configure" | 13257 #line 13258 "configure" |
13131 #include "confdefs.h" | 13258 #include "confdefs.h" |
13132 #include <audio/Xtutil.h> | 13259 #include <audio/Xtutil.h> |
13133 EOF | 13260 EOF |
13134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 13261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13135 egrep "AuXtErrorJump" >/dev/null 2>&1; then | 13262 egrep "AuXtErrorJump" >/dev/null 2>&1; then |
13156 | 13283 |
13157 if test "$with_esd_sound" != "no"; then | 13284 if test "$with_esd_sound" != "no"; then |
13158 # Extract the first word of "esd-config", so it can be a program name with args. | 13285 # Extract the first word of "esd-config", so it can be a program name with args. |
13159 set dummy esd-config; ac_word=$2 | 13286 set dummy esd-config; ac_word=$2 |
13160 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 13287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
13161 echo "configure:13162: checking for $ac_word" >&5 | 13288 echo "configure:13289: checking for $ac_word" >&5 |
13162 | 13289 |
13163 if test -n "$have_esd_config"; then | 13290 if test -n "$have_esd_config"; then |
13164 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. | 13291 ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. |
13165 else | 13292 else |
13166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | 13293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13185 if test "$have_esd_config" = "yes"; then | 13312 if test "$have_esd_config" = "yes"; then |
13186 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" | 13313 save_c_switch_site="$c_switch_site" save_LIBS="$LIBS" |
13187 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 | 13314 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 |
13188 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi | 13315 LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi |
13189 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 | 13316 echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 |
13190 echo "configure:13191: checking for esd_play_stream" >&5 | 13317 echo "configure:13318: checking for esd_play_stream" >&5 |
13191 | 13318 |
13192 cat > conftest.$ac_ext <<EOF | 13319 cat > conftest.$ac_ext <<EOF |
13193 #line 13194 "configure" | 13320 #line 13321 "configure" |
13194 #include "confdefs.h" | 13321 #include "confdefs.h" |
13195 /* System header to define __stub macros and hopefully few prototypes, | 13322 /* System header to define __stub macros and hopefully few prototypes, |
13196 which can conflict with char esd_play_stream(); below. */ | 13323 which can conflict with char esd_play_stream(); below. */ |
13197 #include <assert.h> | 13324 #include <assert.h> |
13198 /* Override any gcc2 internal prototype to avoid an error. */ | 13325 /* Override any gcc2 internal prototype to avoid an error. */ |
13211 esd_play_stream(); | 13338 esd_play_stream(); |
13212 #endif | 13339 #endif |
13213 | 13340 |
13214 ; return 0; } | 13341 ; return 0; } |
13215 EOF | 13342 EOF |
13216 if { (eval echo configure:13217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13343 if { (eval echo configure:13344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13217 rm -rf conftest* | 13344 rm -rf conftest* |
13218 eval "ac_cv_func_esd_play_stream=yes" | 13345 eval "ac_cv_func_esd_play_stream=yes" |
13219 else | 13346 else |
13220 echo "configure: failed program was:" >&5 | 13347 echo "configure: failed program was:" >&5 |
13221 cat conftest.$ac_ext >&5 | 13348 cat conftest.$ac_ext >&5 |
13262 | 13389 |
13263 test -z "$with_tty" && with_tty=yes | 13390 test -z "$with_tty" && with_tty=yes |
13264 | 13391 |
13265 if test "$with_tty" = "yes" ; then | 13392 if test "$with_tty" = "yes" ; then |
13266 echo "checking for TTY-related features" 1>&6 | 13393 echo "checking for TTY-related features" 1>&6 |
13267 echo "configure:13268: checking for TTY-related features" >&5 | 13394 echo "configure:13395: checking for TTY-related features" >&5 |
13268 { test "$extra_verbose" = "yes" && cat << \EOF | 13395 { test "$extra_verbose" = "yes" && cat << \EOF |
13269 Defining HAVE_TTY | 13396 Defining HAVE_TTY |
13270 EOF | 13397 EOF |
13271 cat >> confdefs.h <<\EOF | 13398 cat >> confdefs.h <<\EOF |
13272 #define HAVE_TTY 1 | 13399 #define HAVE_TTY 1 |
13278 fi | 13405 fi |
13279 | 13406 |
13280 if test -z "$with_ncurses"; then | 13407 if test -z "$with_ncurses"; then |
13281 | 13408 |
13282 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 | 13409 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 |
13283 echo "configure:13284: checking for tgetent in -lncurses" >&5 | 13410 echo "configure:13411: checking for tgetent in -lncurses" >&5 |
13284 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` | 13411 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` |
13285 | 13412 |
13286 xe_check_libs=" -lncurses " | 13413 xe_check_libs=" -lncurses " |
13287 cat > conftest.$ac_ext <<EOF | 13414 cat > conftest.$ac_ext <<EOF |
13288 #line 13289 "configure" | 13415 #line 13416 "configure" |
13289 #include "confdefs.h" | 13416 #include "confdefs.h" |
13290 /* Override any gcc2 internal prototype to avoid an error. */ | 13417 /* Override any gcc2 internal prototype to avoid an error. */ |
13291 /* We use char because int might match the return type of a gcc2 | 13418 /* We use char because int might match the return type of a gcc2 |
13292 builtin and then its argument prototype would still apply. */ | 13419 builtin and then its argument prototype would still apply. */ |
13293 char tgetent(); | 13420 char tgetent(); |
13294 | 13421 |
13295 int main() { | 13422 int main() { |
13296 tgetent() | 13423 tgetent() |
13297 ; return 0; } | 13424 ; return 0; } |
13298 EOF | 13425 EOF |
13299 if { (eval echo configure:13300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13426 if { (eval echo configure:13427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13300 rm -rf conftest* | 13427 rm -rf conftest* |
13301 eval "ac_cv_lib_$ac_lib_var=yes" | 13428 eval "ac_cv_lib_$ac_lib_var=yes" |
13302 else | 13429 else |
13303 echo "configure: failed program was:" >&5 | 13430 echo "configure: failed program was:" >&5 |
13304 cat conftest.$ac_ext >&5 | 13431 cat conftest.$ac_ext >&5 |
13327 EOF | 13454 EOF |
13328 } | 13455 } |
13329 | 13456 |
13330 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 13457 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
13331 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 13458 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
13332 echo "configure:13333: checking for ncurses/curses.h" >&5 | 13459 echo "configure:13460: checking for ncurses/curses.h" >&5 |
13333 | 13460 |
13334 cat > conftest.$ac_ext <<EOF | 13461 cat > conftest.$ac_ext <<EOF |
13335 #line 13336 "configure" | 13462 #line 13463 "configure" |
13336 #include "confdefs.h" | 13463 #include "confdefs.h" |
13337 #include <ncurses/curses.h> | 13464 #include <ncurses/curses.h> |
13338 EOF | 13465 EOF |
13339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13340 { (eval echo configure:13341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13467 { (eval echo configure:13468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13342 if test -z "$ac_err"; then | 13469 if test -z "$ac_err"; then |
13343 rm -rf conftest* | 13470 rm -rf conftest* |
13344 eval "ac_cv_header_$ac_safe=yes" | 13471 eval "ac_cv_header_$ac_safe=yes" |
13345 else | 13472 else |
13357 echo "$ac_t""no" 1>&6 | 13484 echo "$ac_t""no" 1>&6 |
13358 fi | 13485 fi |
13359 | 13486 |
13360 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` | 13487 ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` |
13361 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 | 13488 echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 |
13362 echo "configure:13363: checking for ncurses/term.h" >&5 | 13489 echo "configure:13490: checking for ncurses/term.h" >&5 |
13363 | 13490 |
13364 cat > conftest.$ac_ext <<EOF | 13491 cat > conftest.$ac_ext <<EOF |
13365 #line 13366 "configure" | 13492 #line 13493 "configure" |
13366 #include "confdefs.h" | 13493 #include "confdefs.h" |
13367 #include <ncurses/term.h> | 13494 #include <ncurses/term.h> |
13368 EOF | 13495 EOF |
13369 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13370 { (eval echo configure:13371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13497 { (eval echo configure:13498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13371 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13372 if test -z "$ac_err"; then | 13499 if test -z "$ac_err"; then |
13373 rm -rf conftest* | 13500 rm -rf conftest* |
13374 eval "ac_cv_header_$ac_safe=yes" | 13501 eval "ac_cv_header_$ac_safe=yes" |
13375 else | 13502 else |
13395 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then | 13522 if test "$ac_cv_header_ncurses_curses_h" != "yes" ; then |
13396 save_c_switch_site="$c_switch_site" | 13523 save_c_switch_site="$c_switch_site" |
13397 c_switch_site="$c_switch_site -I/usr/include/ncurses" | 13524 c_switch_site="$c_switch_site -I/usr/include/ncurses" |
13398 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` | 13525 ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` |
13399 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 | 13526 echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 |
13400 echo "configure:13401: checking for ncurses/curses.h" >&5 | 13527 echo "configure:13528: checking for ncurses/curses.h" >&5 |
13401 | 13528 |
13402 cat > conftest.$ac_ext <<EOF | 13529 cat > conftest.$ac_ext <<EOF |
13403 #line 13404 "configure" | 13530 #line 13531 "configure" |
13404 #include "confdefs.h" | 13531 #include "confdefs.h" |
13405 #include <ncurses/curses.h> | 13532 #include <ncurses/curses.h> |
13406 EOF | 13533 EOF |
13407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13408 { (eval echo configure:13409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13535 { (eval echo configure:13536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13410 if test -z "$ac_err"; then | 13537 if test -z "$ac_err"; then |
13411 rm -rf conftest* | 13538 rm -rf conftest* |
13412 eval "ac_cv_header_$ac_safe=yes" | 13539 eval "ac_cv_header_$ac_safe=yes" |
13413 else | 13540 else |
13438 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 13565 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
13439 else | 13566 else |
13440 for lib in curses termlib termcap; do | 13567 for lib in curses termlib termcap; do |
13441 | 13568 |
13442 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 | 13569 echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 |
13443 echo "configure:13444: checking for tgetent in -l$lib" >&5 | 13570 echo "configure:13571: checking for tgetent in -l$lib" >&5 |
13444 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` | 13571 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` |
13445 | 13572 |
13446 xe_check_libs=" -l$lib " | 13573 xe_check_libs=" -l$lib " |
13447 cat > conftest.$ac_ext <<EOF | 13574 cat > conftest.$ac_ext <<EOF |
13448 #line 13449 "configure" | 13575 #line 13576 "configure" |
13449 #include "confdefs.h" | 13576 #include "confdefs.h" |
13450 /* Override any gcc2 internal prototype to avoid an error. */ | 13577 /* Override any gcc2 internal prototype to avoid an error. */ |
13451 /* We use char because int might match the return type of a gcc2 | 13578 /* We use char because int might match the return type of a gcc2 |
13452 builtin and then its argument prototype would still apply. */ | 13579 builtin and then its argument prototype would still apply. */ |
13453 char tgetent(); | 13580 char tgetent(); |
13454 | 13581 |
13455 int main() { | 13582 int main() { |
13456 tgetent() | 13583 tgetent() |
13457 ; return 0; } | 13584 ; return 0; } |
13458 EOF | 13585 EOF |
13459 if { (eval echo configure:13460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13586 if { (eval echo configure:13587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13460 rm -rf conftest* | 13587 rm -rf conftest* |
13461 eval "ac_cv_lib_$ac_lib_var=yes" | 13588 eval "ac_cv_lib_$ac_lib_var=yes" |
13462 else | 13589 else |
13463 echo "configure: failed program was:" >&5 | 13590 echo "configure: failed program was:" >&5 |
13464 cat conftest.$ac_ext >&5 | 13591 cat conftest.$ac_ext >&5 |
13485 if test -n "$libs_termcap"; then | 13612 if test -n "$libs_termcap"; then |
13486 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi | 13613 LIBS="$libs_termcap $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"$libs_termcap\" to \$LIBS"; fi |
13487 else | 13614 else |
13488 | 13615 |
13489 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 | 13616 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 |
13490 echo "configure:13491: checking for tgetent in -lcurses" >&5 | 13617 echo "configure:13618: checking for tgetent in -lcurses" >&5 |
13491 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` | 13618 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` |
13492 | 13619 |
13493 xe_check_libs=" -lcurses " | 13620 xe_check_libs=" -lcurses " |
13494 cat > conftest.$ac_ext <<EOF | 13621 cat > conftest.$ac_ext <<EOF |
13495 #line 13496 "configure" | 13622 #line 13623 "configure" |
13496 #include "confdefs.h" | 13623 #include "confdefs.h" |
13497 /* Override any gcc2 internal prototype to avoid an error. */ | 13624 /* Override any gcc2 internal prototype to avoid an error. */ |
13498 /* We use char because int might match the return type of a gcc2 | 13625 /* We use char because int might match the return type of a gcc2 |
13499 builtin and then its argument prototype would still apply. */ | 13626 builtin and then its argument prototype would still apply. */ |
13500 char tgetent(); | 13627 char tgetent(); |
13501 | 13628 |
13502 int main() { | 13629 int main() { |
13503 tgetent() | 13630 tgetent() |
13504 ; return 0; } | 13631 ; return 0; } |
13505 EOF | 13632 EOF |
13506 if { (eval echo configure:13507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13633 if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13507 rm -rf conftest* | 13634 rm -rf conftest* |
13508 eval "ac_cv_lib_$ac_lib_var=yes" | 13635 eval "ac_cv_lib_$ac_lib_var=yes" |
13509 else | 13636 else |
13510 echo "configure: failed program was:" >&5 | 13637 echo "configure: failed program was:" >&5 |
13511 cat conftest.$ac_ext >&5 | 13638 cat conftest.$ac_ext >&5 |
13519 echo "$ac_t""yes" 1>&6 | 13646 echo "$ac_t""yes" 1>&6 |
13520 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi | 13647 LIBS="-lcurses $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcurses\" to \$LIBS"; fi |
13521 else | 13648 else |
13522 echo "$ac_t""no" 1>&6 | 13649 echo "$ac_t""no" 1>&6 |
13523 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 | 13650 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 |
13524 echo "configure:13525: checking for tgetent in -ltermcap" >&5 | 13651 echo "configure:13652: checking for tgetent in -ltermcap" >&5 |
13525 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` | 13652 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` |
13526 | 13653 |
13527 xe_check_libs=" -ltermcap " | 13654 xe_check_libs=" -ltermcap " |
13528 cat > conftest.$ac_ext <<EOF | 13655 cat > conftest.$ac_ext <<EOF |
13529 #line 13530 "configure" | 13656 #line 13657 "configure" |
13530 #include "confdefs.h" | 13657 #include "confdefs.h" |
13531 /* Override any gcc2 internal prototype to avoid an error. */ | 13658 /* Override any gcc2 internal prototype to avoid an error. */ |
13532 /* We use char because int might match the return type of a gcc2 | 13659 /* We use char because int might match the return type of a gcc2 |
13533 builtin and then its argument prototype would still apply. */ | 13660 builtin and then its argument prototype would still apply. */ |
13534 char tgetent(); | 13661 char tgetent(); |
13535 | 13662 |
13536 int main() { | 13663 int main() { |
13537 tgetent() | 13664 tgetent() |
13538 ; return 0; } | 13665 ; return 0; } |
13539 EOF | 13666 EOF |
13540 if { (eval echo configure:13541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13667 if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13541 rm -rf conftest* | 13668 rm -rf conftest* |
13542 eval "ac_cv_lib_$ac_lib_var=yes" | 13669 eval "ac_cv_lib_$ac_lib_var=yes" |
13543 else | 13670 else |
13544 echo "configure: failed program was:" >&5 | 13671 echo "configure: failed program was:" >&5 |
13545 cat conftest.$ac_ext >&5 | 13672 cat conftest.$ac_ext >&5 |
13583 } | 13710 } |
13584 | 13711 |
13585 | 13712 |
13586 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` | 13713 test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` |
13587 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 | 13714 echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 |
13588 echo "configure:13589: checking for gpm.h" >&5 | 13715 echo "configure:13716: checking for gpm.h" >&5 |
13589 | 13716 |
13590 cat > conftest.$ac_ext <<EOF | 13717 cat > conftest.$ac_ext <<EOF |
13591 #line 13592 "configure" | 13718 #line 13719 "configure" |
13592 #include "confdefs.h" | 13719 #include "confdefs.h" |
13593 #include <gpm.h> | 13720 #include <gpm.h> |
13594 EOF | 13721 EOF |
13595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13596 { (eval echo configure:13597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13723 { (eval echo configure:13724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13598 if test -z "$ac_err"; then | 13725 if test -z "$ac_err"; then |
13599 rm -rf conftest* | 13726 rm -rf conftest* |
13600 eval "ac_cv_header_$ac_safe=yes" | 13727 eval "ac_cv_header_$ac_safe=yes" |
13601 else | 13728 else |
13614 with_gpm=no | 13741 with_gpm=no |
13615 fi | 13742 fi |
13616 } | 13743 } |
13617 test -z "$with_gpm" && { | 13744 test -z "$with_gpm" && { |
13618 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 | 13745 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 |
13619 echo "configure:13620: checking for Gpm_Open in -lgpm" >&5 | 13746 echo "configure:13747: checking for Gpm_Open in -lgpm" >&5 |
13620 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` | 13747 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` |
13621 | 13748 |
13622 xe_check_libs=" -lgpm " | 13749 xe_check_libs=" -lgpm " |
13623 cat > conftest.$ac_ext <<EOF | 13750 cat > conftest.$ac_ext <<EOF |
13624 #line 13625 "configure" | 13751 #line 13752 "configure" |
13625 #include "confdefs.h" | 13752 #include "confdefs.h" |
13626 /* Override any gcc2 internal prototype to avoid an error. */ | 13753 /* Override any gcc2 internal prototype to avoid an error. */ |
13627 /* We use char because int might match the return type of a gcc2 | 13754 /* We use char because int might match the return type of a gcc2 |
13628 builtin and then its argument prototype would still apply. */ | 13755 builtin and then its argument prototype would still apply. */ |
13629 char Gpm_Open(); | 13756 char Gpm_Open(); |
13630 | 13757 |
13631 int main() { | 13758 int main() { |
13632 Gpm_Open() | 13759 Gpm_Open() |
13633 ; return 0; } | 13760 ; return 0; } |
13634 EOF | 13761 EOF |
13635 if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13762 if { (eval echo configure:13763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13636 rm -rf conftest* | 13763 rm -rf conftest* |
13637 eval "ac_cv_lib_$ac_lib_var=yes" | 13764 eval "ac_cv_lib_$ac_lib_var=yes" |
13638 else | 13765 else |
13639 echo "configure: failed program was:" >&5 | 13766 echo "configure: failed program was:" >&5 |
13640 cat conftest.$ac_ext >&5 | 13767 cat conftest.$ac_ext >&5 |
13680 fi | 13807 fi |
13681 | 13808 |
13682 | 13809 |
13683 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ | 13810 test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ |
13684 != "no no no" && echo "checking for database support" 1>&6 | 13811 != "no no no" && echo "checking for database support" 1>&6 |
13685 echo "configure:13686: checking for database support" >&5 | 13812 echo "configure:13813: checking for database support" >&5 |
13686 | 13813 |
13687 if test "$with_database_gdbm $with_database_dbm" != "no no"; then | 13814 if test "$with_database_gdbm $with_database_dbm" != "no no"; then |
13688 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` | 13815 ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` |
13689 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 | 13816 echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 |
13690 echo "configure:13691: checking for ndbm.h" >&5 | 13817 echo "configure:13818: checking for ndbm.h" >&5 |
13691 | 13818 |
13692 cat > conftest.$ac_ext <<EOF | 13819 cat > conftest.$ac_ext <<EOF |
13693 #line 13694 "configure" | 13820 #line 13821 "configure" |
13694 #include "confdefs.h" | 13821 #include "confdefs.h" |
13695 #include <ndbm.h> | 13822 #include <ndbm.h> |
13696 EOF | 13823 EOF |
13697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 13824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
13698 { (eval echo configure:13699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 13825 { (eval echo configure:13826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 13826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13700 if test -z "$ac_err"; then | 13827 if test -z "$ac_err"; then |
13701 rm -rf conftest* | 13828 rm -rf conftest* |
13702 eval "ac_cv_header_$ac_safe=yes" | 13829 eval "ac_cv_header_$ac_safe=yes" |
13703 else | 13830 else |
13723 fi | 13850 fi |
13724 | 13851 |
13725 if test "$with_database_gdbm" != "no"; then | 13852 if test "$with_database_gdbm" != "no"; then |
13726 | 13853 |
13727 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 | 13854 echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 |
13728 echo "configure:13729: checking for dbm_open in -lgdbm" >&5 | 13855 echo "configure:13856: checking for dbm_open in -lgdbm" >&5 |
13729 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` | 13856 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` |
13730 | 13857 |
13731 xe_check_libs=" -lgdbm " | 13858 xe_check_libs=" -lgdbm " |
13732 cat > conftest.$ac_ext <<EOF | 13859 cat > conftest.$ac_ext <<EOF |
13733 #line 13734 "configure" | 13860 #line 13861 "configure" |
13734 #include "confdefs.h" | 13861 #include "confdefs.h" |
13735 /* Override any gcc2 internal prototype to avoid an error. */ | 13862 /* Override any gcc2 internal prototype to avoid an error. */ |
13736 /* We use char because int might match the return type of a gcc2 | 13863 /* We use char because int might match the return type of a gcc2 |
13737 builtin and then its argument prototype would still apply. */ | 13864 builtin and then its argument prototype would still apply. */ |
13738 char dbm_open(); | 13865 char dbm_open(); |
13739 | 13866 |
13740 int main() { | 13867 int main() { |
13741 dbm_open() | 13868 dbm_open() |
13742 ; return 0; } | 13869 ; return 0; } |
13743 EOF | 13870 EOF |
13744 if { (eval echo configure:13745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13871 if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13745 rm -rf conftest* | 13872 rm -rf conftest* |
13746 eval "ac_cv_lib_$ac_lib_var=yes" | 13873 eval "ac_cv_lib_$ac_lib_var=yes" |
13747 else | 13874 else |
13748 echo "configure: failed program was:" >&5 | 13875 echo "configure: failed program was:" >&5 |
13749 cat conftest.$ac_ext >&5 | 13876 cat conftest.$ac_ext >&5 |
13767 | 13894 |
13768 fi | 13895 fi |
13769 | 13896 |
13770 if test "$with_database_dbm" != "no"; then | 13897 if test "$with_database_dbm" != "no"; then |
13771 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 | 13898 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 |
13772 echo "configure:13773: checking for dbm_open" >&5 | 13899 echo "configure:13900: checking for dbm_open" >&5 |
13773 | 13900 |
13774 cat > conftest.$ac_ext <<EOF | 13901 cat > conftest.$ac_ext <<EOF |
13775 #line 13776 "configure" | 13902 #line 13903 "configure" |
13776 #include "confdefs.h" | 13903 #include "confdefs.h" |
13777 /* System header to define __stub macros and hopefully few prototypes, | 13904 /* System header to define __stub macros and hopefully few prototypes, |
13778 which can conflict with char dbm_open(); below. */ | 13905 which can conflict with char dbm_open(); below. */ |
13779 #include <assert.h> | 13906 #include <assert.h> |
13780 /* Override any gcc2 internal prototype to avoid an error. */ | 13907 /* Override any gcc2 internal prototype to avoid an error. */ |
13793 dbm_open(); | 13920 dbm_open(); |
13794 #endif | 13921 #endif |
13795 | 13922 |
13796 ; return 0; } | 13923 ; return 0; } |
13797 EOF | 13924 EOF |
13798 if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13925 if { (eval echo configure:13926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13799 rm -rf conftest* | 13926 rm -rf conftest* |
13800 eval "ac_cv_func_dbm_open=yes" | 13927 eval "ac_cv_func_dbm_open=yes" |
13801 else | 13928 else |
13802 echo "configure: failed program was:" >&5 | 13929 echo "configure: failed program was:" >&5 |
13803 cat conftest.$ac_ext >&5 | 13930 cat conftest.$ac_ext >&5 |
13812 else | 13939 else |
13813 echo "$ac_t""no" 1>&6 | 13940 echo "$ac_t""no" 1>&6 |
13814 | 13941 |
13815 | 13942 |
13816 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 | 13943 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 |
13817 echo "configure:13818: checking for dbm_open in -ldbm" >&5 | 13944 echo "configure:13945: checking for dbm_open in -ldbm" >&5 |
13818 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` | 13945 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` |
13819 | 13946 |
13820 xe_check_libs=" -ldbm " | 13947 xe_check_libs=" -ldbm " |
13821 cat > conftest.$ac_ext <<EOF | 13948 cat > conftest.$ac_ext <<EOF |
13822 #line 13823 "configure" | 13949 #line 13950 "configure" |
13823 #include "confdefs.h" | 13950 #include "confdefs.h" |
13824 /* Override any gcc2 internal prototype to avoid an error. */ | 13951 /* Override any gcc2 internal prototype to avoid an error. */ |
13825 /* We use char because int might match the return type of a gcc2 | 13952 /* We use char because int might match the return type of a gcc2 |
13826 builtin and then its argument prototype would still apply. */ | 13953 builtin and then its argument prototype would still apply. */ |
13827 char dbm_open(); | 13954 char dbm_open(); |
13828 | 13955 |
13829 int main() { | 13956 int main() { |
13830 dbm_open() | 13957 dbm_open() |
13831 ; return 0; } | 13958 ; return 0; } |
13832 EOF | 13959 EOF |
13833 if { (eval echo configure:13834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 13960 if { (eval echo configure:13961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13834 rm -rf conftest* | 13961 rm -rf conftest* |
13835 eval "ac_cv_lib_$ac_lib_var=yes" | 13962 eval "ac_cv_lib_$ac_lib_var=yes" |
13836 else | 13963 else |
13837 echo "configure: failed program was:" >&5 | 13964 echo "configure: failed program was:" >&5 |
13838 cat conftest.$ac_ext >&5 | 13965 cat conftest.$ac_ext >&5 |
13869 } | 13996 } |
13870 | 13997 |
13871 | 13998 |
13872 if test "$with_database_berkdb" != "no"; then | 13999 if test "$with_database_berkdb" != "no"; then |
13873 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 | 14000 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 |
13874 echo "configure:13875: checking for Berkeley db.h" >&5 | 14001 echo "configure:14002: checking for Berkeley db.h" >&5 |
13875 for header in "db/db.h" "db.h"; do | 14002 for header in "db/db.h" "db.h"; do |
13876 cat > conftest.$ac_ext <<EOF | 14003 cat > conftest.$ac_ext <<EOF |
13877 #line 13878 "configure" | 14004 #line 14005 "configure" |
13878 #include "confdefs.h" | 14005 #include "confdefs.h" |
13879 | 14006 |
13880 #include <stdlib.h> | 14007 #include <stdlib.h> |
13881 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) | 14008 #if !(defined __GLIBC__ && __GLIBC_MINOR__ >= 1) |
13882 #ifdef HAVE_INTTYPES_H | 14009 #ifdef HAVE_INTTYPES_H |
13894 | 14021 |
13895 int main() { | 14022 int main() { |
13896 | 14023 |
13897 ; return 0; } | 14024 ; return 0; } |
13898 EOF | 14025 EOF |
13899 if { (eval echo configure:13900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 14026 if { (eval echo configure:14027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
13900 rm -rf conftest* | 14027 rm -rf conftest* |
13901 db_h_file="$header"; break | 14028 db_h_file="$header"; break |
13902 else | 14029 else |
13903 echo "configure: failed program was:" >&5 | 14030 echo "configure: failed program was:" >&5 |
13904 cat conftest.$ac_ext >&5 | 14031 cat conftest.$ac_ext >&5 |
13910 else echo "$ac_t""$db_h_file" 1>&6 | 14037 else echo "$ac_t""$db_h_file" 1>&6 |
13911 fi | 14038 fi |
13912 | 14039 |
13913 if test "$with_database_berkdb" != "no"; then | 14040 if test "$with_database_berkdb" != "no"; then |
13914 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 | 14041 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 |
13915 echo "configure:13916: checking for Berkeley DB version" >&5 | 14042 echo "configure:14043: checking for Berkeley DB version" >&5 |
13916 cat > conftest.$ac_ext <<EOF | 14043 cat > conftest.$ac_ext <<EOF |
13917 #line 13918 "configure" | 14044 #line 14045 "configure" |
13918 #include "confdefs.h" | 14045 #include "confdefs.h" |
13919 #include <$db_h_file> | 14046 #include <$db_h_file> |
13920 #if DB_VERSION_MAJOR > 1 | 14047 #if DB_VERSION_MAJOR > 1 |
13921 yes | 14048 yes |
13922 #endif | 14049 #endif |
13924 EOF | 14051 EOF |
13925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 14052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13926 egrep "yes" >/dev/null 2>&1; then | 14053 egrep "yes" >/dev/null 2>&1; then |
13927 rm -rf conftest* | 14054 rm -rf conftest* |
13928 cat > conftest.$ac_ext <<EOF | 14055 cat > conftest.$ac_ext <<EOF |
13929 #line 13930 "configure" | 14056 #line 14057 "configure" |
13930 #include "confdefs.h" | 14057 #include "confdefs.h" |
13931 #include <$db_h_file> | 14058 #include <$db_h_file> |
13932 #if DB_VERSION_MAJOR > 2 | 14059 #if DB_VERSION_MAJOR > 2 |
13933 yes | 14060 yes |
13934 #endif | 14061 #endif |
13951 echo "$ac_t""1" 1>&6; dbfunc=dbopen | 14078 echo "$ac_t""1" 1>&6; dbfunc=dbopen |
13952 fi | 14079 fi |
13953 rm -f conftest* | 14080 rm -f conftest* |
13954 | 14081 |
13955 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 | 14082 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 |
13956 echo "configure:13957: checking for $dbfunc" >&5 | 14083 echo "configure:14084: checking for $dbfunc" >&5 |
13957 | 14084 |
13958 cat > conftest.$ac_ext <<EOF | 14085 cat > conftest.$ac_ext <<EOF |
13959 #line 13960 "configure" | 14086 #line 14087 "configure" |
13960 #include "confdefs.h" | 14087 #include "confdefs.h" |
13961 /* System header to define __stub macros and hopefully few prototypes, | 14088 /* System header to define __stub macros and hopefully few prototypes, |
13962 which can conflict with char $dbfunc(); below. */ | 14089 which can conflict with char $dbfunc(); below. */ |
13963 #include <assert.h> | 14090 #include <assert.h> |
13964 /* Override any gcc2 internal prototype to avoid an error. */ | 14091 /* Override any gcc2 internal prototype to avoid an error. */ |
13977 $dbfunc(); | 14104 $dbfunc(); |
13978 #endif | 14105 #endif |
13979 | 14106 |
13980 ; return 0; } | 14107 ; return 0; } |
13981 EOF | 14108 EOF |
13982 if { (eval echo configure:13983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
13983 rm -rf conftest* | 14110 rm -rf conftest* |
13984 eval "ac_cv_func_$dbfunc=yes" | 14111 eval "ac_cv_func_$dbfunc=yes" |
13985 else | 14112 else |
13986 echo "configure: failed program was:" >&5 | 14113 echo "configure: failed program was:" >&5 |
13987 cat conftest.$ac_ext >&5 | 14114 cat conftest.$ac_ext >&5 |
13996 else | 14123 else |
13997 echo "$ac_t""no" 1>&6 | 14124 echo "$ac_t""no" 1>&6 |
13998 | 14125 |
13999 | 14126 |
14000 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | 14127 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 |
14001 echo "configure:14002: checking for $dbfunc in -ldb" >&5 | 14128 echo "configure:14129: checking for $dbfunc in -ldb" >&5 |
14002 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | 14129 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` |
14003 | 14130 |
14004 xe_check_libs=" -ldb " | 14131 xe_check_libs=" -ldb " |
14005 cat > conftest.$ac_ext <<EOF | 14132 cat > conftest.$ac_ext <<EOF |
14006 #line 14007 "configure" | 14133 #line 14134 "configure" |
14007 #include "confdefs.h" | 14134 #include "confdefs.h" |
14008 /* Override any gcc2 internal prototype to avoid an error. */ | 14135 /* Override any gcc2 internal prototype to avoid an error. */ |
14009 /* We use char because int might match the return type of a gcc2 | 14136 /* We use char because int might match the return type of a gcc2 |
14010 builtin and then its argument prototype would still apply. */ | 14137 builtin and then its argument prototype would still apply. */ |
14011 char $dbfunc(); | 14138 char $dbfunc(); |
14012 | 14139 |
14013 int main() { | 14140 int main() { |
14014 $dbfunc() | 14141 $dbfunc() |
14015 ; return 0; } | 14142 ; return 0; } |
14016 EOF | 14143 EOF |
14017 if { (eval echo configure:14018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14144 if { (eval echo configure:14145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14018 rm -rf conftest* | 14145 rm -rf conftest* |
14019 eval "ac_cv_lib_$ac_lib_var=yes" | 14146 eval "ac_cv_lib_$ac_lib_var=yes" |
14020 else | 14147 else |
14021 echo "configure: failed program was:" >&5 | 14148 echo "configure: failed program was:" >&5 |
14022 cat conftest.$ac_ext >&5 | 14149 cat conftest.$ac_ext >&5 |
14076 fi | 14203 fi |
14077 | 14204 |
14078 if test "$with_socks" = "yes"; then | 14205 if test "$with_socks" = "yes"; then |
14079 | 14206 |
14080 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | 14207 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
14081 echo "configure:14082: checking for SOCKSinit in -lsocks" >&5 | 14208 echo "configure:14209: checking for SOCKSinit in -lsocks" >&5 |
14082 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | 14209 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
14083 | 14210 |
14084 xe_check_libs=" -lsocks " | 14211 xe_check_libs=" -lsocks " |
14085 cat > conftest.$ac_ext <<EOF | 14212 cat > conftest.$ac_ext <<EOF |
14086 #line 14087 "configure" | 14213 #line 14214 "configure" |
14087 #include "confdefs.h" | 14214 #include "confdefs.h" |
14088 /* Override any gcc2 internal prototype to avoid an error. */ | 14215 /* Override any gcc2 internal prototype to avoid an error. */ |
14089 /* We use char because int might match the return type of a gcc2 | 14216 /* We use char because int might match the return type of a gcc2 |
14090 builtin and then its argument prototype would still apply. */ | 14217 builtin and then its argument prototype would still apply. */ |
14091 char SOCKSinit(); | 14218 char SOCKSinit(); |
14092 | 14219 |
14093 int main() { | 14220 int main() { |
14094 SOCKSinit() | 14221 SOCKSinit() |
14095 ; return 0; } | 14222 ; return 0; } |
14096 EOF | 14223 EOF |
14097 if { (eval echo configure:14098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14224 if { (eval echo configure:14225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14098 rm -rf conftest* | 14225 rm -rf conftest* |
14099 eval "ac_cv_lib_$ac_lib_var=yes" | 14226 eval "ac_cv_lib_$ac_lib_var=yes" |
14100 else | 14227 else |
14101 echo "configure: failed program was:" >&5 | 14228 echo "configure: failed program was:" >&5 |
14102 cat conftest.$ac_ext >&5 | 14229 cat conftest.$ac_ext >&5 |
14147 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi | 14274 LIBS="-Bstatic -lut -Bdynamic $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-Bstatic -lut -Bdynamic\" to \$LIBS"; fi |
14148 fi | 14275 fi |
14149 | 14276 |
14150 if test "$with_modules" != "no"; then | 14277 if test "$with_modules" != "no"; then |
14151 echo "checking for module support" 1>&6 | 14278 echo "checking for module support" 1>&6 |
14152 echo "configure:14153: checking for module support" >&5 | 14279 echo "configure:14280: checking for module support" >&5 |
14153 | 14280 |
14154 if test "$with_msw" = "yes"; then | 14281 if test "$with_msw" = "yes"; then |
14155 have_dl=yes; | 14282 have_dl=yes; |
14156 else | 14283 else |
14157 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` | 14284 ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` |
14158 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 | 14285 echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 |
14159 echo "configure:14160: checking for dlfcn.h" >&5 | 14286 echo "configure:14287: checking for dlfcn.h" >&5 |
14160 | 14287 |
14161 cat > conftest.$ac_ext <<EOF | 14288 cat > conftest.$ac_ext <<EOF |
14162 #line 14163 "configure" | 14289 #line 14290 "configure" |
14163 #include "confdefs.h" | 14290 #include "confdefs.h" |
14164 #include <dlfcn.h> | 14291 #include <dlfcn.h> |
14165 EOF | 14292 EOF |
14166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 14293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
14167 { (eval echo configure:14168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 14294 { (eval echo configure:14295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 14295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14169 if test -z "$ac_err"; then | 14296 if test -z "$ac_err"; then |
14170 rm -rf conftest* | 14297 rm -rf conftest* |
14171 eval "ac_cv_header_$ac_safe=yes" | 14298 eval "ac_cv_header_$ac_safe=yes" |
14172 else | 14299 else |
14179 rm -f conftest* | 14306 rm -f conftest* |
14180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 14307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14181 echo "$ac_t""yes" 1>&6 | 14308 echo "$ac_t""yes" 1>&6 |
14182 | 14309 |
14183 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 | 14310 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 |
14184 echo "configure:14185: checking for dlopen in -lc" >&5 | 14311 echo "configure:14312: checking for dlopen in -lc" >&5 |
14185 cat > conftest.$ac_ext <<EOF | 14312 cat > conftest.$ac_ext <<EOF |
14186 #line 14187 "configure" | 14313 #line 14314 "configure" |
14187 #include "confdefs.h" | 14314 #include "confdefs.h" |
14188 #include <dlfcn.h> | 14315 #include <dlfcn.h> |
14189 int main() { | 14316 int main() { |
14190 dlopen ("", 0); | 14317 dlopen ("", 0); |
14191 ; return 0; } | 14318 ; return 0; } |
14192 EOF | 14319 EOF |
14193 if { (eval echo configure:14194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14320 if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14194 rm -rf conftest* | 14321 rm -rf conftest* |
14195 have_dl=yes | 14322 have_dl=yes |
14196 else | 14323 else |
14197 echo "configure: failed program was:" >&5 | 14324 echo "configure: failed program was:" >&5 |
14198 cat conftest.$ac_ext >&5 | 14325 cat conftest.$ac_ext >&5 |
14199 rm -rf conftest* | 14326 rm -rf conftest* |
14200 | 14327 |
14201 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 14328 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
14202 echo "configure:14203: checking for dlopen in -ldl" >&5 | 14329 echo "configure:14330: checking for dlopen in -ldl" >&5 |
14203 ac_save_LIBS="$LIBS" | 14330 ac_save_LIBS="$LIBS" |
14204 LIBS="-ldl $LIBS" | 14331 LIBS="-ldl $LIBS" |
14205 cat > conftest.$ac_ext <<EOF | 14332 cat > conftest.$ac_ext <<EOF |
14206 #line 14207 "configure" | 14333 #line 14334 "configure" |
14207 #include "confdefs.h" | 14334 #include "confdefs.h" |
14208 #include <dlfcn.h> | 14335 #include <dlfcn.h> |
14209 int main() { | 14336 int main() { |
14210 dlopen ("", 0); | 14337 dlopen ("", 0); |
14211 ; return 0; } | 14338 ; return 0; } |
14212 EOF | 14339 EOF |
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14340 if { (eval echo configure:14341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14214 rm -rf conftest* | 14341 rm -rf conftest* |
14215 have_dl=yes | 14342 have_dl=yes |
14216 else | 14343 else |
14217 echo "configure: failed program was:" >&5 | 14344 echo "configure: failed program was:" >&5 |
14218 cat conftest.$ac_ext >&5 | 14345 cat conftest.$ac_ext >&5 |
14237 } | 14364 } |
14238 | 14365 |
14239 else | 14366 else |
14240 | 14367 |
14241 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 14368 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
14242 echo "configure:14243: checking for shl_load in -ldld" >&5 | 14369 echo "configure:14370: checking for shl_load in -ldld" >&5 |
14243 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 14370 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
14244 | 14371 |
14245 xe_check_libs=" -ldld " | 14372 xe_check_libs=" -ldld " |
14246 cat > conftest.$ac_ext <<EOF | 14373 cat > conftest.$ac_ext <<EOF |
14247 #line 14248 "configure" | 14374 #line 14375 "configure" |
14248 #include "confdefs.h" | 14375 #include "confdefs.h" |
14249 /* Override any gcc2 internal prototype to avoid an error. */ | 14376 /* Override any gcc2 internal prototype to avoid an error. */ |
14250 /* We use char because int might match the return type of a gcc2 | 14377 /* We use char because int might match the return type of a gcc2 |
14251 builtin and then its argument prototype would still apply. */ | 14378 builtin and then its argument prototype would still apply. */ |
14252 char shl_load(); | 14379 char shl_load(); |
14253 | 14380 |
14254 int main() { | 14381 int main() { |
14255 shl_load() | 14382 shl_load() |
14256 ; return 0; } | 14383 ; return 0; } |
14257 EOF | 14384 EOF |
14258 if { (eval echo configure:14259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14385 if { (eval echo configure:14386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14259 rm -rf conftest* | 14386 rm -rf conftest* |
14260 eval "ac_cv_lib_$ac_lib_var=yes" | 14387 eval "ac_cv_lib_$ac_lib_var=yes" |
14261 else | 14388 else |
14262 echo "configure: failed program was:" >&5 | 14389 echo "configure: failed program was:" >&5 |
14263 cat conftest.$ac_ext >&5 | 14390 cat conftest.$ac_ext >&5 |
14280 | 14407 |
14281 else | 14408 else |
14282 echo "$ac_t""no" 1>&6 | 14409 echo "$ac_t""no" 1>&6 |
14283 | 14410 |
14284 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 | 14411 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 |
14285 echo "configure:14286: checking for dld_init in -ldld" >&5 | 14412 echo "configure:14413: checking for dld_init in -ldld" >&5 |
14286 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` | 14413 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` |
14287 | 14414 |
14288 xe_check_libs=" -ldld " | 14415 xe_check_libs=" -ldld " |
14289 cat > conftest.$ac_ext <<EOF | 14416 cat > conftest.$ac_ext <<EOF |
14290 #line 14291 "configure" | 14417 #line 14418 "configure" |
14291 #include "confdefs.h" | 14418 #include "confdefs.h" |
14292 /* Override any gcc2 internal prototype to avoid an error. */ | 14419 /* Override any gcc2 internal prototype to avoid an error. */ |
14293 /* We use char because int might match the return type of a gcc2 | 14420 /* We use char because int might match the return type of a gcc2 |
14294 builtin and then its argument prototype would still apply. */ | 14421 builtin and then its argument prototype would still apply. */ |
14295 char dld_init(); | 14422 char dld_init(); |
14296 | 14423 |
14297 int main() { | 14424 int main() { |
14298 dld_init() | 14425 dld_init() |
14299 ; return 0; } | 14426 ; return 0; } |
14300 EOF | 14427 EOF |
14301 if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14428 if { (eval echo configure:14429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14302 rm -rf conftest* | 14429 rm -rf conftest* |
14303 eval "ac_cv_lib_$ac_lib_var=yes" | 14430 eval "ac_cv_lib_$ac_lib_var=yes" |
14304 else | 14431 else |
14305 echo "configure: failed program was:" >&5 | 14432 echo "configure: failed program was:" >&5 |
14306 cat conftest.$ac_ext >&5 | 14433 cat conftest.$ac_ext >&5 |
14341 ld_dynamic_link_flags= | 14468 ld_dynamic_link_flags= |
14342 xehost=$canonical | 14469 xehost=$canonical |
14343 xealias=$internal_configuration | 14470 xealias=$internal_configuration |
14344 | 14471 |
14345 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 | 14472 echo "checking how to build dynamic libraries for ${xehost}" 1>&6 |
14346 echo "configure:14347: checking how to build dynamic libraries for ${xehost}" >&5 | 14473 echo "configure:14474: checking how to build dynamic libraries for ${xehost}" >&5 |
14347 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. | 14474 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. |
14348 case "$xehost" in | 14475 case "$xehost" in |
14349 *-*-linux-gnu*) ;; | 14476 *-*-linux-gnu*) ;; |
14350 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` | 14477 *-*-linux*) xehost=`echo $xehost | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
14351 esac | 14478 esac |
14369 # Now see if the compiler is really GCC. | 14496 # Now see if the compiler is really GCC. |
14370 if test "$GCC" = "yes"; then | 14497 if test "$GCC" = "yes"; then |
14371 XEGCC=yes | 14498 XEGCC=yes |
14372 else | 14499 else |
14373 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 | 14500 echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 |
14374 echo "configure:14375: checking checking whether we are using GNU C" >&5 | 14501 echo "configure:14502: checking checking whether we are using GNU C" >&5 |
14375 cat > conftest.$ac_ext <<EOF | 14502 cat > conftest.$ac_ext <<EOF |
14376 #line 14377 "configure" | 14503 #line 14504 "configure" |
14377 #include "confdefs.h" | 14504 #include "confdefs.h" |
14378 | 14505 |
14379 #ifdef __GNUC__ | 14506 #ifdef __GNUC__ |
14380 yes; | 14507 yes; |
14381 #endif | 14508 #endif |
14393 | 14520 |
14394 echo "$ac_t""${XEGCC}" 1>&6 | 14521 echo "$ac_t""${XEGCC}" 1>&6 |
14395 fi | 14522 fi |
14396 | 14523 |
14397 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 | 14524 echo $ac_n "checking how to produce PIC code""... $ac_c" 1>&6 |
14398 echo "configure:14399: checking how to produce PIC code" >&5 | 14525 echo "configure:14526: checking how to produce PIC code" >&5 |
14399 wl= | 14526 wl= |
14400 | 14527 |
14401 can_build_shared=yes | 14528 can_build_shared=yes |
14402 if test "$XEGCC" = yes; then | 14529 if test "$XEGCC" = yes; then |
14403 wl='-Wl,' | 14530 wl='-Wl,' |
14494 if test -n "$dll_cflags"; then | 14621 if test -n "$dll_cflags"; then |
14495 echo "$ac_t""${dll_cflags}" 1>&6 | 14622 echo "$ac_t""${dll_cflags}" 1>&6 |
14496 | 14623 |
14497 # Check to make sure the dll_cflags actually works. | 14624 # Check to make sure the dll_cflags actually works. |
14498 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 | 14625 echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 |
14499 echo "configure:14500: checking if PIC flag ${dll_cflags} really works" >&5 | 14626 echo "configure:14627: checking if PIC flag ${dll_cflags} really works" >&5 |
14500 save_CFLAGS="$CFLAGS" | 14627 save_CFLAGS="$CFLAGS" |
14501 CFLAGS="$CFLAGS $dll_cflags -DPIC" | 14628 CFLAGS="$CFLAGS $dll_cflags -DPIC" |
14502 cat > conftest.$ac_ext <<EOF | 14629 cat > conftest.$ac_ext <<EOF |
14503 #line 14504 "configure" | 14630 #line 14631 "configure" |
14504 #include "confdefs.h" | 14631 #include "confdefs.h" |
14505 | 14632 |
14506 int main() { | 14633 int main() { |
14507 int x=0; | 14634 int x=0; |
14508 ; return 0; } | 14635 ; return 0; } |
14509 EOF | 14636 EOF |
14510 if { (eval echo configure:14511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 14637 if { (eval echo configure:14638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
14511 rm -rf conftest* | 14638 rm -rf conftest* |
14512 | 14639 |
14513 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also | 14640 # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also |
14514 # reports no error. So, we need to grep stderr for (Bundled). | 14641 # reports no error. So, we need to grep stderr for (Bundled). |
14515 if grep '(Bundled)' config.log >/dev/null; then | 14642 if grep '(Bundled)' config.log >/dev/null; then |
14536 if test "$can_build_shared" = "yes"; then | 14663 if test "$can_build_shared" = "yes"; then |
14537 cc_produces_so=no | 14664 cc_produces_so=no |
14538 xldf= | 14665 xldf= |
14539 xcldf= | 14666 xcldf= |
14540 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 | 14667 echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 |
14541 echo "configure:14542: checking if C compiler can produce shared libraries" >&5 | 14668 echo "configure:14669: checking if C compiler can produce shared libraries" >&5 |
14542 if test "$XEGCC" = yes; then | 14669 if test "$XEGCC" = yes; then |
14543 xcldf="-shared" | 14670 xcldf="-shared" |
14544 xldf="-shared" | 14671 xldf="-shared" |
14545 else # Not using GCC | 14672 else # Not using GCC |
14546 case "$xehost_os" in | 14673 case "$xehost_os" in |
14587 LDFLAGS="$xcldf $LDFLAGS" | 14714 LDFLAGS="$xcldf $LDFLAGS" |
14588 LIBS= | 14715 LIBS= |
14589 xe_libs= | 14716 xe_libs= |
14590 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' | 14717 ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' |
14591 cat > conftest.$ac_ext <<EOF | 14718 cat > conftest.$ac_ext <<EOF |
14592 #line 14593 "configure" | 14719 #line 14720 "configure" |
14593 #include "confdefs.h" | 14720 #include "confdefs.h" |
14594 | 14721 |
14595 int main() { | 14722 int main() { |
14596 int x=0; | 14723 int x=0; |
14597 ; return 0; } | 14724 ; return 0; } |
14598 EOF | 14725 EOF |
14599 if { (eval echo configure:14600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 14726 if { (eval echo configure:14727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14600 rm -rf conftest* | 14727 rm -rf conftest* |
14601 cc_produces_so=yes | 14728 cc_produces_so=yes |
14602 else | 14729 else |
14603 echo "configure: failed program was:" >&5 | 14730 echo "configure: failed program was:" >&5 |
14604 cat conftest.$ac_ext >&5 | 14731 cat conftest.$ac_ext >&5 |
14619 if test -z "$LTLD"; then | 14746 if test -z "$LTLD"; then |
14620 ac_prog=ld | 14747 ac_prog=ld |
14621 if test "$XEGCC" = yes; then | 14748 if test "$XEGCC" = yes; then |
14622 # Check if gcc -print-prog-name=ld gives a path. | 14749 # Check if gcc -print-prog-name=ld gives a path. |
14623 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | 14750 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
14624 echo "configure:14625: checking for ld used by GCC" >&5 | 14751 echo "configure:14752: checking for ld used by GCC" >&5 |
14625 ac_prog=`($CC -print-prog-name=ld) 2>&5` | 14752 ac_prog=`($CC -print-prog-name=ld) 2>&5` |
14626 case "$ac_prog" in | 14753 case "$ac_prog" in |
14627 # Accept absolute paths. | 14754 # Accept absolute paths. |
14628 /*) | 14755 /*) |
14629 if test -z "$LTLD"; then | 14756 if test -z "$LTLD"; then |
14644 with_gnu_ld=unknown | 14771 with_gnu_ld=unknown |
14645 ;; | 14772 ;; |
14646 esac | 14773 esac |
14647 else | 14774 else |
14648 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | 14775 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
14649 echo "configure:14650: checking for GNU ld" >&5 | 14776 echo "configure:14777: checking for GNU ld" >&5 |
14650 fi | 14777 fi |
14651 | 14778 |
14652 if test -z "$LTLD"; then | 14779 if test -z "$LTLD"; then |
14653 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 14780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
14654 for ac_dir in $PATH; do | 14781 for ac_dir in $PATH; do |
14682 | 14809 |
14683 ld_dynamic_link_flags= | 14810 ld_dynamic_link_flags= |
14684 | 14811 |
14685 # Check to see if it really is or isn't GNU ld. | 14812 # Check to see if it really is or isn't GNU ld. |
14686 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 | 14813 echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 |
14687 echo "configure:14688: checking if the linker is GNU ld" >&5 | 14814 echo "configure:14815: checking if the linker is GNU ld" >&5 |
14688 # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 14815 # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
14689 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 14816 if $LTLD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
14690 xe_gnu_ld=yes | 14817 xe_gnu_ld=yes |
14691 else | 14818 else |
14692 xe_gnu_ld=no | 14819 xe_gnu_ld=no |
14710 ld_shlibs=yes | 14837 ld_shlibs=yes |
14711 else | 14838 else |
14712 # OK - only NOW do we futz about with ld. | 14839 # OK - only NOW do we futz about with ld. |
14713 # See if the linker supports building shared libraries. | 14840 # See if the linker supports building shared libraries. |
14714 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 | 14841 echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 |
14715 echo "configure:14716: checking whether the linker supports shared libraries" >&5 | 14842 echo "configure:14843: checking whether the linker supports shared libraries" >&5 |
14716 dll_ld=$CC | 14843 dll_ld=$CC |
14717 dll_ldflags=$LDFLAGS | 14844 dll_ldflags=$LDFLAGS |
14718 ld_shlibs=yes | 14845 ld_shlibs=yes |
14719 can_build_shared=yes | 14846 can_build_shared=yes |
14720 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then | 14847 if test "$xe_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then |
14921 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi | 15048 INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR src" && if test "$extra_verbose" = "yes"; then echo " Appending \"src\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi |
14922 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi | 15049 test -n "$libdl" && LIBS="-l${libdl} $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-l${libdl}\" to \$LIBS"; fi |
14923 for ac_func in dlerror _dlerror | 15050 for ac_func in dlerror _dlerror |
14924 do | 15051 do |
14925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 15052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
14926 echo "configure:14927: checking for $ac_func" >&5 | 15053 echo "configure:15054: checking for $ac_func" >&5 |
14927 | 15054 |
14928 cat > conftest.$ac_ext <<EOF | 15055 cat > conftest.$ac_ext <<EOF |
14929 #line 14930 "configure" | 15056 #line 15057 "configure" |
14930 #include "confdefs.h" | 15057 #include "confdefs.h" |
14931 /* System header to define __stub macros and hopefully few prototypes, | 15058 /* System header to define __stub macros and hopefully few prototypes, |
14932 which can conflict with char $ac_func(); below. */ | 15059 which can conflict with char $ac_func(); below. */ |
14933 #include <assert.h> | 15060 #include <assert.h> |
14934 /* Override any gcc2 internal prototype to avoid an error. */ | 15061 /* Override any gcc2 internal prototype to avoid an error. */ |
14947 $ac_func(); | 15074 $ac_func(); |
14948 #endif | 15075 #endif |
14949 | 15076 |
14950 ; return 0; } | 15077 ; return 0; } |
14951 EOF | 15078 EOF |
14952 if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 15079 if { (eval echo configure:15080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
14953 rm -rf conftest* | 15080 rm -rf conftest* |
14954 eval "ac_cv_func_$ac_func=yes" | 15081 eval "ac_cv_func_$ac_func=yes" |
14955 else | 15082 else |
14956 echo "configure: failed program was:" >&5 | 15083 echo "configure: failed program was:" >&5 |
14957 cat conftest.$ac_ext >&5 | 15084 cat conftest.$ac_ext >&5 |
14986 with_modules=no | 15113 with_modules=no |
14987 fi | 15114 fi |
14988 fi | 15115 fi |
14989 | 15116 |
14990 cat > conftest.$ac_ext <<EOF | 15117 cat > conftest.$ac_ext <<EOF |
14991 #line 14992 "configure" | 15118 #line 15119 "configure" |
14992 #include "confdefs.h" | 15119 #include "confdefs.h" |
14993 int main(int c,char *v[]){return 0;} | 15120 int main(int c,char *v[]){return 0;} |
14994 EOF | 15121 EOF |
14995 if { (eval echo configure:14996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 | 15122 if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 |
14996 then | 15123 then |
14997 : | 15124 : |
14998 else | 15125 else |
14999 conftest_rc="$?" | 15126 conftest_rc="$?" |
15000 echo "configure: failed program was:" >&5 | 15127 echo "configure: failed program was:" >&5 |