comparison configure @ 33286:2281a1a9c54a

*** empty log message ***
author Dave Love <fx@gnu.org>
date Tue, 07 Nov 2000 18:13:46 +0000
parents 9492a4c33e92
children ce8363e1347d
comparison
equal deleted inserted replaced
33285:91819a44456a 33286:2281a1a9c54a
6164 for ac_func in gethostname getdomainname dup2 \ 6164 for ac_func in gethostname getdomainname dup2 \
6165 rename closedir mkdir rmdir sysinfo \ 6165 rename closedir mkdir rmdir sysinfo \
6166 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ 6166 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
6167 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 6167 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
6168 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ 6168 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
6169 __fpending mblen mbrlen strsignal setitimer ualarm index rindex gai_strerror 6169 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \
6170 gai_strerror mkstemp
6170 do 6171 do
6171 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6172 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6172 echo "configure:6173: checking for $ac_func" >&5 6173 echo "configure:6174: checking for $ac_func" >&5
6173 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6174 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6174 echo $ac_n "(cached) $ac_c" 1>&6 6175 echo $ac_n "(cached) $ac_c" 1>&6
6175 else 6176 else
6176 cat > conftest.$ac_ext <<EOF 6177 cat > conftest.$ac_ext <<EOF
6177 #line 6178 "configure" 6178 #line 6179 "configure"
6178 #include "confdefs.h" 6179 #include "confdefs.h"
6179 /* System header to define __stub macros and hopefully few prototypes, 6180 /* System header to define __stub macros and hopefully few prototypes,
6180 which can conflict with char $ac_func(); below. */ 6181 which can conflict with char $ac_func(); below. */
6181 #include <assert.h> 6182 #include <assert.h>
6182 /* Override any gcc2 internal prototype to avoid an error. */ 6183 /* Override any gcc2 internal prototype to avoid an error. */
6195 $ac_func(); 6196 $ac_func();
6196 #endif 6197 #endif
6197 6198
6198 ; return 0; } 6199 ; return 0; }
6199 EOF 6200 EOF
6200 if { (eval echo configure:6201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6201 if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 rm -rf conftest* 6202 rm -rf conftest*
6202 eval "ac_cv_func_$ac_func=yes" 6203 eval "ac_cv_func_$ac_func=yes"
6203 else 6204 else
6204 echo "configure: failed program was:" >&5 6205 echo "configure: failed program was:" >&5
6205 cat conftest.$ac_ext >&5 6206 cat conftest.$ac_ext >&5
6224 6225
6225 for ac_hdr in sys/time.h unistd.h 6226 for ac_hdr in sys/time.h unistd.h
6226 do 6227 do
6227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6229 echo "configure:6230: checking for $ac_hdr" >&5 6230 echo "configure:6231: checking for $ac_hdr" >&5
6230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6231 echo $ac_n "(cached) $ac_c" 1>&6 6232 echo $ac_n "(cached) $ac_c" 1>&6
6232 else 6233 else
6233 cat > conftest.$ac_ext <<EOF 6234 cat > conftest.$ac_ext <<EOF
6234 #line 6235 "configure" 6235 #line 6236 "configure"
6235 #include "confdefs.h" 6236 #include "confdefs.h"
6236 #include <$ac_hdr> 6237 #include <$ac_hdr>
6237 EOF 6238 EOF
6238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6239 { (eval echo configure:6240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6240 { (eval echo configure:6241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6241 if test -z "$ac_err"; then 6242 if test -z "$ac_err"; then
6242 rm -rf conftest* 6243 rm -rf conftest*
6243 eval "ac_cv_header_$ac_safe=yes" 6244 eval "ac_cv_header_$ac_safe=yes"
6244 else 6245 else
6263 done 6264 done
6264 6265
6265 for ac_func in alarm 6266 for ac_func in alarm
6266 do 6267 do
6267 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6268 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6268 echo "configure:6269: checking for $ac_func" >&5 6269 echo "configure:6270: checking for $ac_func" >&5
6269 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6270 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6270 echo $ac_n "(cached) $ac_c" 1>&6 6271 echo $ac_n "(cached) $ac_c" 1>&6
6271 else 6272 else
6272 cat > conftest.$ac_ext <<EOF 6273 cat > conftest.$ac_ext <<EOF
6273 #line 6274 "configure" 6274 #line 6275 "configure"
6274 #include "confdefs.h" 6275 #include "confdefs.h"
6275 /* System header to define __stub macros and hopefully few prototypes, 6276 /* System header to define __stub macros and hopefully few prototypes,
6276 which can conflict with char $ac_func(); below. */ 6277 which can conflict with char $ac_func(); below. */
6277 #include <assert.h> 6278 #include <assert.h>
6278 /* Override any gcc2 internal prototype to avoid an error. */ 6279 /* Override any gcc2 internal prototype to avoid an error. */
6291 $ac_func(); 6292 $ac_func();
6292 #endif 6293 #endif
6293 6294
6294 ; return 0; } 6295 ; return 0; }
6295 EOF 6296 EOF
6296 if { (eval echo configure:6297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6297 if { (eval echo configure:6298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6297 rm -rf conftest* 6298 rm -rf conftest*
6298 eval "ac_cv_func_$ac_func=yes" 6299 eval "ac_cv_func_$ac_func=yes"
6299 else 6300 else
6300 echo "configure: failed program was:" >&5 6301 echo "configure: failed program was:" >&5
6301 cat conftest.$ac_ext >&5 6302 cat conftest.$ac_ext >&5
6316 echo "$ac_t""no" 1>&6 6317 echo "$ac_t""no" 1>&6
6317 fi 6318 fi
6318 done 6319 done
6319 6320
6320 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 6321 echo $ac_n "checking for working mktime""... $ac_c" 1>&6
6321 echo "configure:6322: checking for working mktime" >&5 6322 echo "configure:6323: checking for working mktime" >&5
6322 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then 6323 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then
6323 echo $ac_n "(cached) $ac_c" 1>&6 6324 echo $ac_n "(cached) $ac_c" 1>&6
6324 else 6325 else
6325 if test "$cross_compiling" = yes; then 6326 if test "$cross_compiling" = yes; then
6326 ac_cv_func_working_mktime=no 6327 ac_cv_func_working_mktime=no
6327 else 6328 else
6328 cat > conftest.$ac_ext <<EOF 6329 cat > conftest.$ac_ext <<EOF
6329 #line 6330 "configure" 6330 #line 6331 "configure"
6330 #include "confdefs.h" 6331 #include "confdefs.h"
6331 /* Test program from Paul Eggert (eggert@twinsun.com) 6332 /* Test program from Paul Eggert (eggert@twinsun.com)
6332 and Tony Leneis (tony@plaza.ds.adp.com). */ 6333 and Tony Leneis (tony@plaza.ds.adp.com). */
6333 #if TIME_WITH_SYS_TIME 6334 #if TIME_WITH_SYS_TIME
6334 # include <sys/time.h> 6335 # include <sys/time.h>
6473 irix_6_4_bug (); 6474 irix_6_4_bug ();
6474 spring_forward_gap (); 6475 spring_forward_gap ();
6475 exit (0); 6476 exit (0);
6476 } 6477 }
6477 EOF 6478 EOF
6478 if { (eval echo configure:6479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6479 if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6479 then 6480 then
6480 ac_cv_func_working_mktime=yes 6481 ac_cv_func_working_mktime=yes
6481 else 6482 else
6482 echo "configure: failed program was:" >&5 6483 echo "configure: failed program was:" >&5
6483 cat conftest.$ac_ext >&5 6484 cat conftest.$ac_ext >&5
6505 6506
6506 # Some systems with -lutil have (and need) -lkvm as well, some do not. 6507 # Some systems with -lutil have (and need) -lkvm as well, some do not.
6507 # On Solaris, -lkvm requires nlist from -lelf, so check that first 6508 # On Solaris, -lkvm requires nlist from -lelf, so check that first
6508 # to get the right answer into the cache. 6509 # to get the right answer into the cache.
6509 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 6510 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6
6510 echo "configure:6511: checking for elf_begin in -lelf" >&5 6511 echo "configure:6512: checking for elf_begin in -lelf" >&5
6511 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` 6512 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'`
6512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6513 echo $ac_n "(cached) $ac_c" 1>&6 6514 echo $ac_n "(cached) $ac_c" 1>&6
6514 else 6515 else
6515 ac_save_LIBS="$LIBS" 6516 ac_save_LIBS="$LIBS"
6516 LIBS="-lelf $LIBS" 6517 LIBS="-lelf $LIBS"
6517 cat > conftest.$ac_ext <<EOF 6518 cat > conftest.$ac_ext <<EOF
6518 #line 6519 "configure" 6519 #line 6520 "configure"
6519 #include "confdefs.h" 6520 #include "confdefs.h"
6520 /* Override any gcc2 internal prototype to avoid an error. */ 6521 /* Override any gcc2 internal prototype to avoid an error. */
6521 /* We use char because int might match the return type of a gcc2 6522 /* We use char because int might match the return type of a gcc2
6522 builtin and then its argument prototype would still apply. */ 6523 builtin and then its argument prototype would still apply. */
6523 char elf_begin(); 6524 char elf_begin();
6524 6525
6525 int main() { 6526 int main() {
6526 elf_begin() 6527 elf_begin()
6527 ; return 0; } 6528 ; return 0; }
6528 EOF 6529 EOF
6529 if { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6530 if { (eval echo configure:6531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6530 rm -rf conftest* 6531 rm -rf conftest*
6531 eval "ac_cv_lib_$ac_lib_var=yes" 6532 eval "ac_cv_lib_$ac_lib_var=yes"
6532 else 6533 else
6533 echo "configure: failed program was:" >&5 6534 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5 6535 cat conftest.$ac_ext >&5
6545 else 6546 else
6546 echo "$ac_t""no" 1>&6 6547 echo "$ac_t""no" 1>&6
6547 fi 6548 fi
6548 6549
6549 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 6550 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6
6550 echo "configure:6551: checking for kvm_open in -lkvm" >&5 6551 echo "configure:6552: checking for kvm_open in -lkvm" >&5
6551 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` 6552 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'`
6552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6553 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6553 echo $ac_n "(cached) $ac_c" 1>&6 6554 echo $ac_n "(cached) $ac_c" 1>&6
6554 else 6555 else
6555 ac_save_LIBS="$LIBS" 6556 ac_save_LIBS="$LIBS"
6556 LIBS="-lkvm $LIBS" 6557 LIBS="-lkvm $LIBS"
6557 cat > conftest.$ac_ext <<EOF 6558 cat > conftest.$ac_ext <<EOF
6558 #line 6559 "configure" 6559 #line 6560 "configure"
6559 #include "confdefs.h" 6560 #include "confdefs.h"
6560 /* Override any gcc2 internal prototype to avoid an error. */ 6561 /* Override any gcc2 internal prototype to avoid an error. */
6561 /* We use char because int might match the return type of a gcc2 6562 /* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */ 6563 builtin and then its argument prototype would still apply. */
6563 char kvm_open(); 6564 char kvm_open();
6564 6565
6565 int main() { 6566 int main() {
6566 kvm_open() 6567 kvm_open()
6567 ; return 0; } 6568 ; return 0; }
6568 EOF 6569 EOF
6569 if { (eval echo configure:6570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6570 if { (eval echo configure:6571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6570 rm -rf conftest* 6571 rm -rf conftest*
6571 eval "ac_cv_lib_$ac_lib_var=yes" 6572 eval "ac_cv_lib_$ac_lib_var=yes"
6572 else 6573 else
6573 echo "configure: failed program was:" >&5 6574 echo "configure: failed program was:" >&5
6574 cat conftest.$ac_ext >&5 6575 cat conftest.$ac_ext >&5
6586 echo "$ac_t""no" 1>&6 6587 echo "$ac_t""no" 1>&6
6587 fi 6588 fi
6588 6589
6589 # Check for the 4.4BSD definition of getloadavg. 6590 # Check for the 4.4BSD definition of getloadavg.
6590 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 6591 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6
6591 echo "configure:6592: checking for getloadavg in -lutil" >&5 6592 echo "configure:6593: checking for getloadavg in -lutil" >&5
6592 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` 6593 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'`
6593 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6594 echo $ac_n "(cached) $ac_c" 1>&6 6595 echo $ac_n "(cached) $ac_c" 1>&6
6595 else 6596 else
6596 ac_save_LIBS="$LIBS" 6597 ac_save_LIBS="$LIBS"
6597 LIBS="-lutil $LIBS" 6598 LIBS="-lutil $LIBS"
6598 cat > conftest.$ac_ext <<EOF 6599 cat > conftest.$ac_ext <<EOF
6599 #line 6600 "configure" 6600 #line 6601 "configure"
6600 #include "confdefs.h" 6601 #include "confdefs.h"
6601 /* Override any gcc2 internal prototype to avoid an error. */ 6602 /* Override any gcc2 internal prototype to avoid an error. */
6602 /* We use char because int might match the return type of a gcc2 6603 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */ 6604 builtin and then its argument prototype would still apply. */
6604 char getloadavg(); 6605 char getloadavg();
6605 6606
6606 int main() { 6607 int main() {
6607 getloadavg() 6608 getloadavg()
6608 ; return 0; } 6609 ; return 0; }
6609 EOF 6610 EOF
6610 if { (eval echo configure:6611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6611 if { (eval echo configure:6612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 rm -rf conftest* 6612 rm -rf conftest*
6612 eval "ac_cv_lib_$ac_lib_var=yes" 6613 eval "ac_cv_lib_$ac_lib_var=yes"
6613 else 6614 else
6614 echo "configure: failed program was:" >&5 6615 echo "configure: failed program was:" >&5
6615 cat conftest.$ac_ext >&5 6616 cat conftest.$ac_ext >&5
6631 if test $ac_have_func = no; then 6632 if test $ac_have_func = no; then
6632 # There is a commonly available library for RS/6000 AIX. 6633 # There is a commonly available library for RS/6000 AIX.
6633 # Since it is not a standard part of AIX, it might be installed locally. 6634 # Since it is not a standard part of AIX, it might be installed locally.
6634 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" 6635 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS"
6635 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 6636 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6
6636 echo "configure:6637: checking for getloadavg in -lgetloadavg" >&5 6637 echo "configure:6638: checking for getloadavg in -lgetloadavg" >&5
6637 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` 6638 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'`
6638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6639 echo $ac_n "(cached) $ac_c" 1>&6 6640 echo $ac_n "(cached) $ac_c" 1>&6
6640 else 6641 else
6641 ac_save_LIBS="$LIBS" 6642 ac_save_LIBS="$LIBS"
6642 LIBS="-lgetloadavg $LIBS" 6643 LIBS="-lgetloadavg $LIBS"
6643 cat > conftest.$ac_ext <<EOF 6644 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure" 6645 #line 6646 "configure"
6645 #include "confdefs.h" 6646 #include "confdefs.h"
6646 /* Override any gcc2 internal prototype to avoid an error. */ 6647 /* Override any gcc2 internal prototype to avoid an error. */
6647 /* We use char because int might match the return type of a gcc2 6648 /* We use char because int might match the return type of a gcc2
6648 builtin and then its argument prototype would still apply. */ 6649 builtin and then its argument prototype would still apply. */
6649 char getloadavg(); 6650 char getloadavg();
6650 6651
6651 int main() { 6652 int main() {
6652 getloadavg() 6653 getloadavg()
6653 ; return 0; } 6654 ; return 0; }
6654 EOF 6655 EOF
6655 if { (eval echo configure:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6656 rm -rf conftest* 6657 rm -rf conftest*
6657 eval "ac_cv_lib_$ac_lib_var=yes" 6658 eval "ac_cv_lib_$ac_lib_var=yes"
6658 else 6659 else
6659 echo "configure: failed program was:" >&5 6660 echo "configure: failed program was:" >&5
6660 cat conftest.$ac_ext >&5 6661 cat conftest.$ac_ext >&5
6677 6678
6678 # Make sure it is really in the library, if we think we found it. 6679 # Make sure it is really in the library, if we think we found it.
6679 for ac_func in getloadavg 6680 for ac_func in getloadavg
6680 do 6681 do
6681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6682 echo "configure:6683: checking for $ac_func" >&5 6683 echo "configure:6684: checking for $ac_func" >&5
6683 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6684 echo $ac_n "(cached) $ac_c" 1>&6 6685 echo $ac_n "(cached) $ac_c" 1>&6
6685 else 6686 else
6686 cat > conftest.$ac_ext <<EOF 6687 cat > conftest.$ac_ext <<EOF
6687 #line 6688 "configure" 6688 #line 6689 "configure"
6688 #include "confdefs.h" 6689 #include "confdefs.h"
6689 /* System header to define __stub macros and hopefully few prototypes, 6690 /* System header to define __stub macros and hopefully few prototypes,
6690 which can conflict with char $ac_func(); below. */ 6691 which can conflict with char $ac_func(); below. */
6691 #include <assert.h> 6692 #include <assert.h>
6692 /* Override any gcc2 internal prototype to avoid an error. */ 6693 /* Override any gcc2 internal prototype to avoid an error. */
6705 $ac_func(); 6706 $ac_func();
6706 #endif 6707 #endif
6707 6708
6708 ; return 0; } 6709 ; return 0; }
6709 EOF 6710 EOF
6710 if { (eval echo configure:6711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 rm -rf conftest* 6712 rm -rf conftest*
6712 eval "ac_cv_func_$ac_func=yes" 6713 eval "ac_cv_func_$ac_func=yes"
6713 else 6714 else
6714 echo "configure: failed program was:" >&5 6715 echo "configure: failed program was:" >&5
6715 cat conftest.$ac_ext >&5 6716 cat conftest.$ac_ext >&5
6743 else 6744 else
6744 # Figure out what our getloadavg.c needs. 6745 # Figure out what our getloadavg.c needs.
6745 ac_have_func=no 6746 ac_have_func=no
6746 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` 6747 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'`
6747 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 6748 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6
6748 echo "configure:6749: checking for sys/dg_sys_info.h" >&5 6749 echo "configure:6750: checking for sys/dg_sys_info.h" >&5
6749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6750 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6750 echo $ac_n "(cached) $ac_c" 1>&6 6751 echo $ac_n "(cached) $ac_c" 1>&6
6751 else 6752 else
6752 cat > conftest.$ac_ext <<EOF 6753 cat > conftest.$ac_ext <<EOF
6753 #line 6754 "configure" 6754 #line 6755 "configure"
6754 #include "confdefs.h" 6755 #include "confdefs.h"
6755 #include <sys/dg_sys_info.h> 6756 #include <sys/dg_sys_info.h>
6756 EOF 6757 EOF
6757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6758 { (eval echo configure:6759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6759 { (eval echo configure:6760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6760 if test -z "$ac_err"; then 6761 if test -z "$ac_err"; then
6761 rm -rf conftest* 6762 rm -rf conftest*
6762 eval "ac_cv_header_$ac_safe=yes" 6763 eval "ac_cv_header_$ac_safe=yes"
6763 else 6764 else
6774 ac_have_func=yes; cat >> confdefs.h <<\EOF 6775 ac_have_func=yes; cat >> confdefs.h <<\EOF
6775 #define DGUX 1 6776 #define DGUX 1
6776 EOF 6777 EOF
6777 6778
6778 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 6779 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6
6779 echo "configure:6780: checking for dg_sys_info in -ldgc" >&5 6780 echo "configure:6781: checking for dg_sys_info in -ldgc" >&5
6780 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` 6781 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'`
6781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6782 echo $ac_n "(cached) $ac_c" 1>&6 6783 echo $ac_n "(cached) $ac_c" 1>&6
6783 else 6784 else
6784 ac_save_LIBS="$LIBS" 6785 ac_save_LIBS="$LIBS"
6785 LIBS="-ldgc $LIBS" 6786 LIBS="-ldgc $LIBS"
6786 cat > conftest.$ac_ext <<EOF 6787 cat > conftest.$ac_ext <<EOF
6787 #line 6788 "configure" 6788 #line 6789 "configure"
6788 #include "confdefs.h" 6789 #include "confdefs.h"
6789 /* Override any gcc2 internal prototype to avoid an error. */ 6790 /* Override any gcc2 internal prototype to avoid an error. */
6790 /* We use char because int might match the return type of a gcc2 6791 /* We use char because int might match the return type of a gcc2
6791 builtin and then its argument prototype would still apply. */ 6792 builtin and then its argument prototype would still apply. */
6792 char dg_sys_info(); 6793 char dg_sys_info();
6793 6794
6794 int main() { 6795 int main() {
6795 dg_sys_info() 6796 dg_sys_info()
6796 ; return 0; } 6797 ; return 0; }
6797 EOF 6798 EOF
6798 if { (eval echo configure:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6799 if { (eval echo configure:6800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6799 rm -rf conftest* 6800 rm -rf conftest*
6800 eval "ac_cv_lib_$ac_lib_var=yes" 6801 eval "ac_cv_lib_$ac_lib_var=yes"
6801 else 6802 else
6802 echo "configure: failed program was:" >&5 6803 echo "configure: failed program was:" >&5
6803 cat conftest.$ac_ext >&5 6804 cat conftest.$ac_ext >&5
6838 fi 6839 fi
6839 6840
6840 if test $ac_have_func = no; then 6841 if test $ac_have_func = no; then
6841 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` 6842 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'`
6842 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 6843 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6
6843 echo "configure:6844: checking for inq_stats/cpustats.h" >&5 6844 echo "configure:6845: checking for inq_stats/cpustats.h" >&5
6844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6845 echo $ac_n "(cached) $ac_c" 1>&6 6846 echo $ac_n "(cached) $ac_c" 1>&6
6846 else 6847 else
6847 cat > conftest.$ac_ext <<EOF 6848 cat > conftest.$ac_ext <<EOF
6848 #line 6849 "configure" 6849 #line 6850 "configure"
6849 #include "confdefs.h" 6850 #include "confdefs.h"
6850 #include <inq_stats/cpustats.h> 6851 #include <inq_stats/cpustats.h>
6851 EOF 6852 EOF
6852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6853 { (eval echo configure:6854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6854 { (eval echo configure:6855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6855 if test -z "$ac_err"; then 6856 if test -z "$ac_err"; then
6856 rm -rf conftest* 6857 rm -rf conftest*
6857 eval "ac_cv_header_$ac_safe=yes" 6858 eval "ac_cv_header_$ac_safe=yes"
6858 else 6859 else
6881 fi 6882 fi
6882 6883
6883 if test $ac_have_func = no; then 6884 if test $ac_have_func = no; then
6884 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` 6885 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'`
6885 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 6886 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6
6886 echo "configure:6887: checking for sys/cpustats.h" >&5 6887 echo "configure:6888: checking for sys/cpustats.h" >&5
6887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6888 echo $ac_n "(cached) $ac_c" 1>&6 6889 echo $ac_n "(cached) $ac_c" 1>&6
6889 else 6890 else
6890 cat > conftest.$ac_ext <<EOF 6891 cat > conftest.$ac_ext <<EOF
6891 #line 6892 "configure" 6892 #line 6893 "configure"
6892 #include "confdefs.h" 6893 #include "confdefs.h"
6893 #include <sys/cpustats.h> 6894 #include <sys/cpustats.h>
6894 EOF 6895 EOF
6895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6896 { (eval echo configure:6897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6897 { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6898 if test -z "$ac_err"; then 6899 if test -z "$ac_err"; then
6899 rm -rf conftest* 6900 rm -rf conftest*
6900 eval "ac_cv_header_$ac_safe=yes" 6901 eval "ac_cv_header_$ac_safe=yes"
6901 else 6902 else
6922 if test $ac_have_func = no; then 6923 if test $ac_have_func = no; then
6923 for ac_hdr in mach/mach.h 6924 for ac_hdr in mach/mach.h
6924 do 6925 do
6925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6927 echo "configure:6928: checking for $ac_hdr" >&5 6928 echo "configure:6929: checking for $ac_hdr" >&5
6928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6929 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6929 echo $ac_n "(cached) $ac_c" 1>&6 6930 echo $ac_n "(cached) $ac_c" 1>&6
6930 else 6931 else
6931 cat > conftest.$ac_ext <<EOF 6932 cat > conftest.$ac_ext <<EOF
6932 #line 6933 "configure" 6933 #line 6934 "configure"
6933 #include "confdefs.h" 6934 #include "confdefs.h"
6934 #include <$ac_hdr> 6935 #include <$ac_hdr>
6935 EOF 6936 EOF
6936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6937 { (eval echo configure:6938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6938 { (eval echo configure:6939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6939 if test -z "$ac_err"; then 6940 if test -z "$ac_err"; then
6940 rm -rf conftest* 6941 rm -rf conftest*
6941 eval "ac_cv_header_$ac_safe=yes" 6942 eval "ac_cv_header_$ac_safe=yes"
6942 else 6943 else
6962 6963
6963 fi 6964 fi
6964 6965
6965 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` 6966 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'`
6966 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 6967 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6
6967 echo "configure:6968: checking for nlist.h" >&5 6968 echo "configure:6969: checking for nlist.h" >&5
6968 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6969 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6969 echo $ac_n "(cached) $ac_c" 1>&6 6970 echo $ac_n "(cached) $ac_c" 1>&6
6970 else 6971 else
6971 cat > conftest.$ac_ext <<EOF 6972 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure" 6973 #line 6974 "configure"
6973 #include "confdefs.h" 6974 #include "confdefs.h"
6974 #include <nlist.h> 6975 #include <nlist.h>
6975 EOF 6976 EOF
6976 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6977 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6977 { (eval echo configure:6978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6978 { (eval echo configure:6979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6978 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6979 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6979 if test -z "$ac_err"; then 6980 if test -z "$ac_err"; then
6980 rm -rf conftest* 6981 rm -rf conftest*
6981 eval "ac_cv_header_$ac_safe=yes" 6982 eval "ac_cv_header_$ac_safe=yes"
6982 else 6983 else
6993 cat >> confdefs.h <<\EOF 6994 cat >> confdefs.h <<\EOF
6994 #define NLIST_STRUCT 1 6995 #define NLIST_STRUCT 1
6995 EOF 6996 EOF
6996 6997
6997 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 6998 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6
6998 echo "configure:6999: checking for n_un in struct nlist" >&5 6999 echo "configure:7000: checking for n_un in struct nlist" >&5
6999 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then 7000 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then
7000 echo $ac_n "(cached) $ac_c" 1>&6 7001 echo $ac_n "(cached) $ac_c" 1>&6
7001 else 7002 else
7002 cat > conftest.$ac_ext <<EOF 7003 cat > conftest.$ac_ext <<EOF
7003 #line 7004 "configure" 7004 #line 7005 "configure"
7004 #include "confdefs.h" 7005 #include "confdefs.h"
7005 #include <nlist.h> 7006 #include <nlist.h>
7006 int main() { 7007 int main() {
7007 struct nlist n; n.n_un.n_name = 0; 7008 struct nlist n; n.n_un.n_name = 0;
7008 ; return 0; } 7009 ; return 0; }
7009 EOF 7010 EOF
7010 if { (eval echo configure:7011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7011 if { (eval echo configure:7012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7011 rm -rf conftest* 7012 rm -rf conftest*
7012 ac_cv_struct_nlist_n_un=yes 7013 ac_cv_struct_nlist_n_un=yes
7013 else 7014 else
7014 echo "configure: failed program was:" >&5 7015 echo "configure: failed program was:" >&5
7015 cat conftest.$ac_ext >&5 7016 cat conftest.$ac_ext >&5
7032 fi 7033 fi
7033 fi # Do not have getloadavg in system libraries. 7034 fi # Do not have getloadavg in system libraries.
7034 7035
7035 # Some definitions of getloadavg require that the program be installed setgid. 7036 # Some definitions of getloadavg require that the program be installed setgid.
7036 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 7037 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6
7037 echo "configure:7038: checking whether getloadavg requires setgid" >&5 7038 echo "configure:7039: checking whether getloadavg requires setgid" >&5
7038 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then 7039 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6 7040 echo $ac_n "(cached) $ac_c" 1>&6
7040 else 7041 else
7041 cat > conftest.$ac_ext <<EOF 7042 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure" 7043 #line 7044 "configure"
7043 #include "confdefs.h" 7044 #include "confdefs.h"
7044 #include "$srcdir/getloadavg.c" 7045 #include "$srcdir/getloadavg.c"
7045 #ifdef LDAV_PRIVILEGED 7046 #ifdef LDAV_PRIVILEGED
7046 Yowza Am I SETGID yet 7047 Yowza Am I SETGID yet
7047 #endif 7048 #endif
7068 NEED_SETGID=false 7069 NEED_SETGID=false
7069 fi 7070 fi
7070 7071
7071 if test $ac_cv_func_getloadavg_setgid = yes; then 7072 if test $ac_cv_func_getloadavg_setgid = yes; then
7072 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 7073 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6
7073 echo "configure:7074: checking group of /dev/kmem" >&5 7074 echo "configure:7075: checking group of /dev/kmem" >&5
7074 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then 7075 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6 7076 echo $ac_n "(cached) $ac_c" 1>&6
7076 else 7077 else
7077 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 7078 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
7078 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 7079 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
7091 7092
7092 7093
7093 for ac_func in ftello 7094 for ac_func in ftello
7094 do 7095 do
7095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7096 echo "configure:7097: checking for $ac_func" >&5 7097 echo "configure:7098: checking for $ac_func" >&5
7097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7098 echo $ac_n "(cached) $ac_c" 1>&6 7099 echo $ac_n "(cached) $ac_c" 1>&6
7099 else 7100 else
7100 cat > conftest.$ac_ext <<EOF 7101 cat > conftest.$ac_ext <<EOF
7101 #line 7102 "configure" 7102 #line 7103 "configure"
7102 #include "confdefs.h" 7103 #include "confdefs.h"
7103 /* System header to define __stub macros and hopefully few prototypes, 7104 /* System header to define __stub macros and hopefully few prototypes,
7104 which can conflict with char $ac_func(); below. */ 7105 which can conflict with char $ac_func(); below. */
7105 #include <assert.h> 7106 #include <assert.h>
7106 /* Override any gcc2 internal prototype to avoid an error. */ 7107 /* Override any gcc2 internal prototype to avoid an error. */
7119 $ac_func(); 7120 $ac_func();
7120 #endif 7121 #endif
7121 7122
7122 ; return 0; } 7123 ; return 0; }
7123 EOF 7124 EOF
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7125 if { (eval echo configure:7126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7125 rm -rf conftest* 7126 rm -rf conftest*
7126 eval "ac_cv_func_$ac_func=yes" 7127 eval "ac_cv_func_$ac_func=yes"
7127 else 7128 else
7128 echo "configure: failed program was:" >&5 7129 echo "configure: failed program was:" >&5
7129 cat conftest.$ac_ext >&5 7130 cat conftest.$ac_ext >&5
7149 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE 7150 # UNIX98 PTYs. AC_SYS_LARGEFILE should have defined _XOPEN_SOURCE
7150 # if we need it. 7151 # if we need it.
7151 for ac_func in grantpt 7152 for ac_func in grantpt
7152 do 7153 do
7153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7154 echo "configure:7155: checking for $ac_func" >&5 7155 echo "configure:7156: checking for $ac_func" >&5
7155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7156 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7156 echo $ac_n "(cached) $ac_c" 1>&6 7157 echo $ac_n "(cached) $ac_c" 1>&6
7157 else 7158 else
7158 cat > conftest.$ac_ext <<EOF 7159 cat > conftest.$ac_ext <<EOF
7159 #line 7160 "configure" 7160 #line 7161 "configure"
7160 #include "confdefs.h" 7161 #include "confdefs.h"
7161 /* System header to define __stub macros and hopefully few prototypes, 7162 /* System header to define __stub macros and hopefully few prototypes,
7162 which can conflict with char $ac_func(); below. */ 7163 which can conflict with char $ac_func(); below. */
7163 #include <assert.h> 7164 #include <assert.h>
7164 /* Override any gcc2 internal prototype to avoid an error. */ 7165 /* Override any gcc2 internal prototype to avoid an error. */
7177 $ac_func(); 7178 $ac_func();
7178 #endif 7179 #endif
7179 7180
7180 ; return 0; } 7181 ; return 0; }
7181 EOF 7182 EOF
7182 if { (eval echo configure:7183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7183 if { (eval echo configure:7184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7183 rm -rf conftest* 7184 rm -rf conftest*
7184 eval "ac_cv_func_$ac_func=yes" 7185 eval "ac_cv_func_$ac_func=yes"
7185 else 7186 else
7186 echo "configure: failed program was:" >&5 7187 echo "configure: failed program was:" >&5
7187 cat conftest.$ac_ext >&5 7188 cat conftest.$ac_ext >&5
7206 7207
7207 # PTY-related GNU extensions. 7208 # PTY-related GNU extensions.
7208 for ac_func in getpt 7209 for ac_func in getpt
7209 do 7210 do
7210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7211 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7211 echo "configure:7212: checking for $ac_func" >&5 7212 echo "configure:7213: checking for $ac_func" >&5
7212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7213 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6 7214 echo $ac_n "(cached) $ac_c" 1>&6
7214 else 7215 else
7215 cat > conftest.$ac_ext <<EOF 7216 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure" 7217 #line 7218 "configure"
7217 #include "confdefs.h" 7218 #include "confdefs.h"
7218 /* System header to define __stub macros and hopefully few prototypes, 7219 /* System header to define __stub macros and hopefully few prototypes,
7219 which can conflict with char $ac_func(); below. */ 7220 which can conflict with char $ac_func(); below. */
7220 #include <assert.h> 7221 #include <assert.h>
7221 /* Override any gcc2 internal prototype to avoid an error. */ 7222 /* Override any gcc2 internal prototype to avoid an error. */
7234 $ac_func(); 7235 $ac_func();
7235 #endif 7236 #endif
7236 7237
7237 ; return 0; } 7238 ; return 0; }
7238 EOF 7239 EOF
7239 if { (eval echo configure:7240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7240 if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7240 rm -rf conftest* 7241 rm -rf conftest*
7241 eval "ac_cv_func_$ac_func=yes" 7242 eval "ac_cv_func_$ac_func=yes"
7242 else 7243 else
7243 echo "configure: failed program was:" >&5 7244 echo "configure: failed program was:" >&5
7244 cat conftest.$ac_ext >&5 7245 cat conftest.$ac_ext >&5
7264 # Check this now, so that we will NOT find the above functions in ncurses. 7265 # Check this now, so that we will NOT find the above functions in ncurses.
7265 # That is because we have not set up to link ncurses in lib-src. 7266 # That is because we have not set up to link ncurses in lib-src.
7266 # It's better to believe a function is not available 7267 # It's better to believe a function is not available
7267 # than to expect to find it in ncurses. 7268 # than to expect to find it in ncurses.
7268 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 7269 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
7269 echo "configure:7270: checking for tparm in -lncurses" >&5 7270 echo "configure:7271: checking for tparm in -lncurses" >&5
7270 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 7271 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
7271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7272 echo $ac_n "(cached) $ac_c" 1>&6 7273 echo $ac_n "(cached) $ac_c" 1>&6
7273 else 7274 else
7274 ac_save_LIBS="$LIBS" 7275 ac_save_LIBS="$LIBS"
7275 LIBS="-lncurses $LIBS" 7276 LIBS="-lncurses $LIBS"
7276 cat > conftest.$ac_ext <<EOF 7277 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure" 7278 #line 7279 "configure"
7278 #include "confdefs.h" 7279 #include "confdefs.h"
7279 /* Override any gcc2 internal prototype to avoid an error. */ 7280 /* Override any gcc2 internal prototype to avoid an error. */
7280 /* We use char because int might match the return type of a gcc2 7281 /* We use char because int might match the return type of a gcc2
7281 builtin and then its argument prototype would still apply. */ 7282 builtin and then its argument prototype would still apply. */
7282 char tparm(); 7283 char tparm();
7283 7284
7284 int main() { 7285 int main() {
7285 tparm() 7286 tparm()
7286 ; return 0; } 7287 ; return 0; }
7287 EOF 7288 EOF
7288 if { (eval echo configure:7289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7289 if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7289 rm -rf conftest* 7290 rm -rf conftest*
7290 eval "ac_cv_lib_$ac_lib_var=yes" 7291 eval "ac_cv_lib_$ac_lib_var=yes"
7291 else 7292 else
7292 echo "configure: failed program was:" >&5 7293 echo "configure: failed program was:" >&5
7293 cat conftest.$ac_ext >&5 7294 cat conftest.$ac_ext >&5
7314 7315
7315 7316
7316 # These tell us which Kerberos-related libraries to use. 7317 # These tell us which Kerberos-related libraries to use.
7317 if test "${with_kerberos+set}" = set; then 7318 if test "${with_kerberos+set}" = set; then
7318 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 7319 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
7319 echo "configure:7320: checking for com_err in -lcom_err" >&5 7320 echo "configure:7321: checking for com_err in -lcom_err" >&5
7320 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 7321 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
7321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7322 echo $ac_n "(cached) $ac_c" 1>&6 7323 echo $ac_n "(cached) $ac_c" 1>&6
7323 else 7324 else
7324 ac_save_LIBS="$LIBS" 7325 ac_save_LIBS="$LIBS"
7325 LIBS="-lcom_err $LIBS" 7326 LIBS="-lcom_err $LIBS"
7326 cat > conftest.$ac_ext <<EOF 7327 cat > conftest.$ac_ext <<EOF
7327 #line 7328 "configure" 7328 #line 7329 "configure"
7328 #include "confdefs.h" 7329 #include "confdefs.h"
7329 /* Override any gcc2 internal prototype to avoid an error. */ 7330 /* Override any gcc2 internal prototype to avoid an error. */
7330 /* We use char because int might match the return type of a gcc2 7331 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */ 7332 builtin and then its argument prototype would still apply. */
7332 char com_err(); 7333 char com_err();
7333 7334
7334 int main() { 7335 int main() {
7335 com_err() 7336 com_err()
7336 ; return 0; } 7337 ; return 0; }
7337 EOF 7338 EOF
7338 if { (eval echo configure:7339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7339 if { (eval echo configure:7340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7339 rm -rf conftest* 7340 rm -rf conftest*
7340 eval "ac_cv_lib_$ac_lib_var=yes" 7341 eval "ac_cv_lib_$ac_lib_var=yes"
7341 else 7342 else
7342 echo "configure: failed program was:" >&5 7343 echo "configure: failed program was:" >&5
7343 cat conftest.$ac_ext >&5 7344 cat conftest.$ac_ext >&5
7361 else 7362 else
7362 echo "$ac_t""no" 1>&6 7363 echo "$ac_t""no" 1>&6
7363 fi 7364 fi
7364 7365
7365 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 7366 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
7366 echo "configure:7367: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 7367 echo "configure:7368: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
7367 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7368 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7368 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7369 echo $ac_n "(cached) $ac_c" 1>&6 7370 echo $ac_n "(cached) $ac_c" 1>&6
7370 else 7371 else
7371 ac_save_LIBS="$LIBS" 7372 ac_save_LIBS="$LIBS"
7372 LIBS="-lk5crypto $LIBS" 7373 LIBS="-lk5crypto $LIBS"
7373 cat > conftest.$ac_ext <<EOF 7374 cat > conftest.$ac_ext <<EOF
7374 #line 7375 "configure" 7375 #line 7376 "configure"
7375 #include "confdefs.h" 7376 #include "confdefs.h"
7376 /* Override any gcc2 internal prototype to avoid an error. */ 7377 /* Override any gcc2 internal prototype to avoid an error. */
7377 /* We use char because int might match the return type of a gcc2 7378 /* We use char because int might match the return type of a gcc2
7378 builtin and then its argument prototype would still apply. */ 7379 builtin and then its argument prototype would still apply. */
7379 char mit_des_cbc_encrypt(); 7380 char mit_des_cbc_encrypt();
7380 7381
7381 int main() { 7382 int main() {
7382 mit_des_cbc_encrypt() 7383 mit_des_cbc_encrypt()
7383 ; return 0; } 7384 ; return 0; }
7384 EOF 7385 EOF
7385 if { (eval echo configure:7386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7386 if { (eval echo configure:7387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7386 rm -rf conftest* 7387 rm -rf conftest*
7387 eval "ac_cv_lib_$ac_lib_var=yes" 7388 eval "ac_cv_lib_$ac_lib_var=yes"
7388 else 7389 else
7389 echo "configure: failed program was:" >&5 7390 echo "configure: failed program was:" >&5
7390 cat conftest.$ac_ext >&5 7391 cat conftest.$ac_ext >&5
7408 else 7409 else
7409 echo "$ac_t""no" 1>&6 7410 echo "$ac_t""no" 1>&6
7410 fi 7411 fi
7411 7412
7412 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 7413 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
7413 echo "configure:7414: checking for mit_des_cbc_encrypt in -lcrypto" >&5 7414 echo "configure:7415: checking for mit_des_cbc_encrypt in -lcrypto" >&5
7414 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 7415 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
7415 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7416 echo $ac_n "(cached) $ac_c" 1>&6 7417 echo $ac_n "(cached) $ac_c" 1>&6
7417 else 7418 else
7418 ac_save_LIBS="$LIBS" 7419 ac_save_LIBS="$LIBS"
7419 LIBS="-lcrypto $LIBS" 7420 LIBS="-lcrypto $LIBS"
7420 cat > conftest.$ac_ext <<EOF 7421 cat > conftest.$ac_ext <<EOF
7421 #line 7422 "configure" 7422 #line 7423 "configure"
7422 #include "confdefs.h" 7423 #include "confdefs.h"
7423 /* Override any gcc2 internal prototype to avoid an error. */ 7424 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2 7425 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */ 7426 builtin and then its argument prototype would still apply. */
7426 char mit_des_cbc_encrypt(); 7427 char mit_des_cbc_encrypt();
7427 7428
7428 int main() { 7429 int main() {
7429 mit_des_cbc_encrypt() 7430 mit_des_cbc_encrypt()
7430 ; return 0; } 7431 ; return 0; }
7431 EOF 7432 EOF
7432 if { (eval echo configure:7433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7433 if { (eval echo configure:7434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7433 rm -rf conftest* 7434 rm -rf conftest*
7434 eval "ac_cv_lib_$ac_lib_var=yes" 7435 eval "ac_cv_lib_$ac_lib_var=yes"
7435 else 7436 else
7436 echo "configure: failed program was:" >&5 7437 echo "configure: failed program was:" >&5
7437 cat conftest.$ac_ext >&5 7438 cat conftest.$ac_ext >&5
7455 else 7456 else
7456 echo "$ac_t""no" 1>&6 7457 echo "$ac_t""no" 1>&6
7457 fi 7458 fi
7458 7459
7459 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 7460 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
7460 echo "configure:7461: checking for krb5_init_context in -lkrb5" >&5 7461 echo "configure:7462: checking for krb5_init_context in -lkrb5" >&5
7461 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 7462 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
7462 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7463 echo $ac_n "(cached) $ac_c" 1>&6 7464 echo $ac_n "(cached) $ac_c" 1>&6
7464 else 7465 else
7465 ac_save_LIBS="$LIBS" 7466 ac_save_LIBS="$LIBS"
7466 LIBS="-lkrb5 $LIBS" 7467 LIBS="-lkrb5 $LIBS"
7467 cat > conftest.$ac_ext <<EOF 7468 cat > conftest.$ac_ext <<EOF
7468 #line 7469 "configure" 7469 #line 7470 "configure"
7469 #include "confdefs.h" 7470 #include "confdefs.h"
7470 /* Override any gcc2 internal prototype to avoid an error. */ 7471 /* Override any gcc2 internal prototype to avoid an error. */
7471 /* We use char because int might match the return type of a gcc2 7472 /* We use char because int might match the return type of a gcc2
7472 builtin and then its argument prototype would still apply. */ 7473 builtin and then its argument prototype would still apply. */
7473 char krb5_init_context(); 7474 char krb5_init_context();
7474 7475
7475 int main() { 7476 int main() {
7476 krb5_init_context() 7477 krb5_init_context()
7477 ; return 0; } 7478 ; return 0; }
7478 EOF 7479 EOF
7479 if { (eval echo configure:7480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7480 if { (eval echo configure:7481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7480 rm -rf conftest* 7481 rm -rf conftest*
7481 eval "ac_cv_lib_$ac_lib_var=yes" 7482 eval "ac_cv_lib_$ac_lib_var=yes"
7482 else 7483 else
7483 echo "configure: failed program was:" >&5 7484 echo "configure: failed program was:" >&5
7484 cat conftest.$ac_ext >&5 7485 cat conftest.$ac_ext >&5
7503 echo "$ac_t""no" 1>&6 7504 echo "$ac_t""no" 1>&6
7504 fi 7505 fi
7505 7506
7506 if test "${with_kerberos5+set}" != set; then 7507 if test "${with_kerberos5+set}" != set; then
7507 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 7508 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
7508 echo "configure:7509: checking for des_cbc_encrypt in -ldes425" >&5 7509 echo "configure:7510: checking for des_cbc_encrypt in -ldes425" >&5
7509 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7510 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7511 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7511 echo $ac_n "(cached) $ac_c" 1>&6 7512 echo $ac_n "(cached) $ac_c" 1>&6
7512 else 7513 else
7513 ac_save_LIBS="$LIBS" 7514 ac_save_LIBS="$LIBS"
7514 LIBS="-ldes425 $LIBS" 7515 LIBS="-ldes425 $LIBS"
7515 cat > conftest.$ac_ext <<EOF 7516 cat > conftest.$ac_ext <<EOF
7516 #line 7517 "configure" 7517 #line 7518 "configure"
7517 #include "confdefs.h" 7518 #include "confdefs.h"
7518 /* Override any gcc2 internal prototype to avoid an error. */ 7519 /* Override any gcc2 internal prototype to avoid an error. */
7519 /* We use char because int might match the return type of a gcc2 7520 /* We use char because int might match the return type of a gcc2
7520 builtin and then its argument prototype would still apply. */ 7521 builtin and then its argument prototype would still apply. */
7521 char des_cbc_encrypt(); 7522 char des_cbc_encrypt();
7522 7523
7523 int main() { 7524 int main() {
7524 des_cbc_encrypt() 7525 des_cbc_encrypt()
7525 ; return 0; } 7526 ; return 0; }
7526 EOF 7527 EOF
7527 if { (eval echo configure:7528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7528 if { (eval echo configure:7529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7528 rm -rf conftest* 7529 rm -rf conftest*
7529 eval "ac_cv_lib_$ac_lib_var=yes" 7530 eval "ac_cv_lib_$ac_lib_var=yes"
7530 else 7531 else
7531 echo "configure: failed program was:" >&5 7532 echo "configure: failed program was:" >&5
7532 cat conftest.$ac_ext >&5 7533 cat conftest.$ac_ext >&5
7548 LIBS="-ldes425 $LIBS" 7549 LIBS="-ldes425 $LIBS"
7549 7550
7550 else 7551 else
7551 echo "$ac_t""no" 1>&6 7552 echo "$ac_t""no" 1>&6
7552 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 7553 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
7553 echo "configure:7554: checking for des_cbc_encrypt in -ldes" >&5 7554 echo "configure:7555: checking for des_cbc_encrypt in -ldes" >&5
7554 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 7555 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
7555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7556 echo $ac_n "(cached) $ac_c" 1>&6 7557 echo $ac_n "(cached) $ac_c" 1>&6
7557 else 7558 else
7558 ac_save_LIBS="$LIBS" 7559 ac_save_LIBS="$LIBS"
7559 LIBS="-ldes $LIBS" 7560 LIBS="-ldes $LIBS"
7560 cat > conftest.$ac_ext <<EOF 7561 cat > conftest.$ac_ext <<EOF
7561 #line 7562 "configure" 7562 #line 7563 "configure"
7562 #include "confdefs.h" 7563 #include "confdefs.h"
7563 /* Override any gcc2 internal prototype to avoid an error. */ 7564 /* Override any gcc2 internal prototype to avoid an error. */
7564 /* We use char because int might match the return type of a gcc2 7565 /* We use char because int might match the return type of a gcc2
7565 builtin and then its argument prototype would still apply. */ 7566 builtin and then its argument prototype would still apply. */
7566 char des_cbc_encrypt(); 7567 char des_cbc_encrypt();
7567 7568
7568 int main() { 7569 int main() {
7569 des_cbc_encrypt() 7570 des_cbc_encrypt()
7570 ; return 0; } 7571 ; return 0; }
7571 EOF 7572 EOF
7572 if { (eval echo configure:7573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7573 if { (eval echo configure:7574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7573 rm -rf conftest* 7574 rm -rf conftest*
7574 eval "ac_cv_lib_$ac_lib_var=yes" 7575 eval "ac_cv_lib_$ac_lib_var=yes"
7575 else 7576 else
7576 echo "configure: failed program was:" >&5 7577 echo "configure: failed program was:" >&5
7577 cat conftest.$ac_ext >&5 7578 cat conftest.$ac_ext >&5
7597 fi 7598 fi
7598 7599
7599 fi 7600 fi
7600 7601
7601 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 7602 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
7602 echo "configure:7603: checking for krb_get_cred in -lkrb4" >&5 7603 echo "configure:7604: checking for krb_get_cred in -lkrb4" >&5
7603 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 7604 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
7604 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6 7606 echo $ac_n "(cached) $ac_c" 1>&6
7606 else 7607 else
7607 ac_save_LIBS="$LIBS" 7608 ac_save_LIBS="$LIBS"
7608 LIBS="-lkrb4 $LIBS" 7609 LIBS="-lkrb4 $LIBS"
7609 cat > conftest.$ac_ext <<EOF 7610 cat > conftest.$ac_ext <<EOF
7610 #line 7611 "configure" 7611 #line 7612 "configure"
7611 #include "confdefs.h" 7612 #include "confdefs.h"
7612 /* Override any gcc2 internal prototype to avoid an error. */ 7613 /* Override any gcc2 internal prototype to avoid an error. */
7613 /* We use char because int might match the return type of a gcc2 7614 /* We use char because int might match the return type of a gcc2
7614 builtin and then its argument prototype would still apply. */ 7615 builtin and then its argument prototype would still apply. */
7615 char krb_get_cred(); 7616 char krb_get_cred();
7616 7617
7617 int main() { 7618 int main() {
7618 krb_get_cred() 7619 krb_get_cred()
7619 ; return 0; } 7620 ; return 0; }
7620 EOF 7621 EOF
7621 if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7622 if { (eval echo configure:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7622 rm -rf conftest* 7623 rm -rf conftest*
7623 eval "ac_cv_lib_$ac_lib_var=yes" 7624 eval "ac_cv_lib_$ac_lib_var=yes"
7624 else 7625 else
7625 echo "configure: failed program was:" >&5 7626 echo "configure: failed program was:" >&5
7626 cat conftest.$ac_ext >&5 7627 cat conftest.$ac_ext >&5
7642 LIBS="-lkrb4 $LIBS" 7643 LIBS="-lkrb4 $LIBS"
7643 7644
7644 else 7645 else
7645 echo "$ac_t""no" 1>&6 7646 echo "$ac_t""no" 1>&6
7646 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 7647 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
7647 echo "configure:7648: checking for krb_get_cred in -lkrb" >&5 7648 echo "configure:7649: checking for krb_get_cred in -lkrb" >&5
7648 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 7649 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
7649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7650 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7650 echo $ac_n "(cached) $ac_c" 1>&6 7651 echo $ac_n "(cached) $ac_c" 1>&6
7651 else 7652 else
7652 ac_save_LIBS="$LIBS" 7653 ac_save_LIBS="$LIBS"
7653 LIBS="-lkrb $LIBS" 7654 LIBS="-lkrb $LIBS"
7654 cat > conftest.$ac_ext <<EOF 7655 cat > conftest.$ac_ext <<EOF
7655 #line 7656 "configure" 7656 #line 7657 "configure"
7656 #include "confdefs.h" 7657 #include "confdefs.h"
7657 /* Override any gcc2 internal prototype to avoid an error. */ 7658 /* Override any gcc2 internal prototype to avoid an error. */
7658 /* We use char because int might match the return type of a gcc2 7659 /* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */ 7660 builtin and then its argument prototype would still apply. */
7660 char krb_get_cred(); 7661 char krb_get_cred();
7661 7662
7662 int main() { 7663 int main() {
7663 krb_get_cred() 7664 krb_get_cred()
7664 ; return 0; } 7665 ; return 0; }
7665 EOF 7666 EOF
7666 if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7667 if { (eval echo configure:7668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7667 rm -rf conftest* 7668 rm -rf conftest*
7668 eval "ac_cv_lib_$ac_lib_var=yes" 7669 eval "ac_cv_lib_$ac_lib_var=yes"
7669 else 7670 else
7670 echo "configure: failed program was:" >&5 7671 echo "configure: failed program was:" >&5
7671 cat conftest.$ac_ext >&5 7672 cat conftest.$ac_ext >&5
7697 if test "${with_kerberos5+set}" = set; then 7698 if test "${with_kerberos5+set}" = set; then
7698 for ac_hdr in krb5.h 7699 for ac_hdr in krb5.h
7699 do 7700 do
7700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7702 echo "configure:7703: checking for $ac_hdr" >&5 7703 echo "configure:7704: checking for $ac_hdr" >&5
7703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6 7705 echo $ac_n "(cached) $ac_c" 1>&6
7705 else 7706 else
7706 cat > conftest.$ac_ext <<EOF 7707 cat > conftest.$ac_ext <<EOF
7707 #line 7708 "configure" 7708 #line 7709 "configure"
7708 #include "confdefs.h" 7709 #include "confdefs.h"
7709 #include <$ac_hdr> 7710 #include <$ac_hdr>
7710 EOF 7711 EOF
7711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7712 { (eval echo configure:7713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7713 { (eval echo configure:7714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7714 if test -z "$ac_err"; then 7715 if test -z "$ac_err"; then
7715 rm -rf conftest* 7716 rm -rf conftest*
7716 eval "ac_cv_header_$ac_safe=yes" 7717 eval "ac_cv_header_$ac_safe=yes"
7717 else 7718 else
7738 else 7739 else
7739 for ac_hdr in des.h 7740 for ac_hdr in des.h
7740 do 7741 do
7741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7743 echo "configure:7744: checking for $ac_hdr" >&5 7744 echo "configure:7745: checking for $ac_hdr" >&5
7744 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7745 echo $ac_n "(cached) $ac_c" 1>&6 7746 echo $ac_n "(cached) $ac_c" 1>&6
7746 else 7747 else
7747 cat > conftest.$ac_ext <<EOF 7748 cat > conftest.$ac_ext <<EOF
7748 #line 7749 "configure" 7749 #line 7750 "configure"
7749 #include "confdefs.h" 7750 #include "confdefs.h"
7750 #include <$ac_hdr> 7751 #include <$ac_hdr>
7751 EOF 7752 EOF
7752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7753 { (eval echo configure:7754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7754 { (eval echo configure:7755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7755 if test -z "$ac_err"; then 7756 if test -z "$ac_err"; then
7756 rm -rf conftest* 7757 rm -rf conftest*
7757 eval "ac_cv_header_$ac_safe=yes" 7758 eval "ac_cv_header_$ac_safe=yes"
7758 else 7759 else
7775 echo "$ac_t""no" 1>&6 7776 echo "$ac_t""no" 1>&6
7776 for ac_hdr in kerberosIV/des.h 7777 for ac_hdr in kerberosIV/des.h
7777 do 7778 do
7778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7780 echo "configure:7781: checking for $ac_hdr" >&5 7781 echo "configure:7782: checking for $ac_hdr" >&5
7781 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7782 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6 7783 echo $ac_n "(cached) $ac_c" 1>&6
7783 else 7784 else
7784 cat > conftest.$ac_ext <<EOF 7785 cat > conftest.$ac_ext <<EOF
7785 #line 7786 "configure" 7786 #line 7787 "configure"
7786 #include "confdefs.h" 7787 #include "confdefs.h"
7787 #include <$ac_hdr> 7788 #include <$ac_hdr>
7788 EOF 7789 EOF
7789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7790 { (eval echo configure:7791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7791 { (eval echo configure:7792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7792 if test -z "$ac_err"; then 7793 if test -z "$ac_err"; then
7793 rm -rf conftest* 7794 rm -rf conftest*
7794 eval "ac_cv_header_$ac_safe=yes" 7795 eval "ac_cv_header_$ac_safe=yes"
7795 else 7796 else
7812 echo "$ac_t""no" 1>&6 7813 echo "$ac_t""no" 1>&6
7813 for ac_hdr in kerberos/des.h 7814 for ac_hdr in kerberos/des.h
7814 do 7815 do
7815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7817 echo "configure:7818: checking for $ac_hdr" >&5 7818 echo "configure:7819: checking for $ac_hdr" >&5
7818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7819 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6 7820 echo $ac_n "(cached) $ac_c" 1>&6
7820 else 7821 else
7821 cat > conftest.$ac_ext <<EOF 7822 cat > conftest.$ac_ext <<EOF
7822 #line 7823 "configure" 7823 #line 7824 "configure"
7823 #include "confdefs.h" 7824 #include "confdefs.h"
7824 #include <$ac_hdr> 7825 #include <$ac_hdr>
7825 EOF 7826 EOF
7826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7827 { (eval echo configure:7828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7828 { (eval echo configure:7829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7829 if test -z "$ac_err"; then 7830 if test -z "$ac_err"; then
7830 rm -rf conftest* 7831 rm -rf conftest*
7831 eval "ac_cv_header_$ac_safe=yes" 7832 eval "ac_cv_header_$ac_safe=yes"
7832 else 7833 else
7858 7859
7859 for ac_hdr in krb.h 7860 for ac_hdr in krb.h
7860 do 7861 do
7861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7863 echo "configure:7864: checking for $ac_hdr" >&5 7864 echo "configure:7865: checking for $ac_hdr" >&5
7864 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7865 echo $ac_n "(cached) $ac_c" 1>&6 7866 echo $ac_n "(cached) $ac_c" 1>&6
7866 else 7867 else
7867 cat > conftest.$ac_ext <<EOF 7868 cat > conftest.$ac_ext <<EOF
7868 #line 7869 "configure" 7869 #line 7870 "configure"
7869 #include "confdefs.h" 7870 #include "confdefs.h"
7870 #include <$ac_hdr> 7871 #include <$ac_hdr>
7871 EOF 7872 EOF
7872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7873 { (eval echo configure:7874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7874 { (eval echo configure:7875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7875 if test -z "$ac_err"; then 7876 if test -z "$ac_err"; then
7876 rm -rf conftest* 7877 rm -rf conftest*
7877 eval "ac_cv_header_$ac_safe=yes" 7878 eval "ac_cv_header_$ac_safe=yes"
7878 else 7879 else
7895 echo "$ac_t""no" 1>&6 7896 echo "$ac_t""no" 1>&6
7896 for ac_hdr in kerberosIV/krb.h 7897 for ac_hdr in kerberosIV/krb.h
7897 do 7898 do
7898 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7899 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7900 echo "configure:7901: checking for $ac_hdr" >&5 7901 echo "configure:7902: checking for $ac_hdr" >&5
7901 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7902 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6 7903 echo $ac_n "(cached) $ac_c" 1>&6
7903 else 7904 else
7904 cat > conftest.$ac_ext <<EOF 7905 cat > conftest.$ac_ext <<EOF
7905 #line 7906 "configure" 7906 #line 7907 "configure"
7906 #include "confdefs.h" 7907 #include "confdefs.h"
7907 #include <$ac_hdr> 7908 #include <$ac_hdr>
7908 EOF 7909 EOF
7909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7910 { (eval echo configure:7911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7911 { (eval echo configure:7912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7912 if test -z "$ac_err"; then 7913 if test -z "$ac_err"; then
7913 rm -rf conftest* 7914 rm -rf conftest*
7914 eval "ac_cv_header_$ac_safe=yes" 7915 eval "ac_cv_header_$ac_safe=yes"
7915 else 7916 else
7932 echo "$ac_t""no" 1>&6 7933 echo "$ac_t""no" 1>&6
7933 for ac_hdr in kerberos/krb.h 7934 for ac_hdr in kerberos/krb.h
7934 do 7935 do
7935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7936 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7937 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7937 echo "configure:7938: checking for $ac_hdr" >&5 7938 echo "configure:7939: checking for $ac_hdr" >&5
7938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7939 echo $ac_n "(cached) $ac_c" 1>&6 7940 echo $ac_n "(cached) $ac_c" 1>&6
7940 else 7941 else
7941 cat > conftest.$ac_ext <<EOF 7942 cat > conftest.$ac_ext <<EOF
7942 #line 7943 "configure" 7943 #line 7944 "configure"
7943 #include "confdefs.h" 7944 #include "confdefs.h"
7944 #include <$ac_hdr> 7945 #include <$ac_hdr>
7945 EOF 7946 EOF
7946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7947 { (eval echo configure:7948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7948 { (eval echo configure:7949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7949 if test -z "$ac_err"; then 7950 if test -z "$ac_err"; then
7950 rm -rf conftest* 7951 rm -rf conftest*
7951 eval "ac_cv_header_$ac_safe=yes" 7952 eval "ac_cv_header_$ac_safe=yes"
7952 else 7953 else
7979 fi 7980 fi
7980 for ac_hdr in com_err.h 7981 for ac_hdr in com_err.h
7981 do 7982 do
7982 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 7983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7983 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 7984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7984 echo "configure:7985: checking for $ac_hdr" >&5 7985 echo "configure:7986: checking for $ac_hdr" >&5
7985 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 7986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7986 echo $ac_n "(cached) $ac_c" 1>&6 7987 echo $ac_n "(cached) $ac_c" 1>&6
7987 else 7988 else
7988 cat > conftest.$ac_ext <<EOF 7989 cat > conftest.$ac_ext <<EOF
7989 #line 7990 "configure" 7990 #line 7991 "configure"
7990 #include "confdefs.h" 7991 #include "confdefs.h"
7991 #include <$ac_hdr> 7992 #include <$ac_hdr>
7992 EOF 7993 EOF
7993 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 7994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7994 { (eval echo configure:7995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 7995 { (eval echo configure:7996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7995 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 7996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7996 if test -z "$ac_err"; then 7997 if test -z "$ac_err"; then
7997 rm -rf conftest* 7998 rm -rf conftest*
7998 eval "ac_cv_header_$ac_safe=yes" 7999 eval "ac_cv_header_$ac_safe=yes"
7999 else 8000 else
8020 fi 8021 fi
8021 8022
8022 # Solaris requires -lintl if you want strerror (which calls dgettext) 8023 # Solaris requires -lintl if you want strerror (which calls dgettext)
8023 # to return localized messages. 8024 # to return localized messages.
8024 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 8025 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
8025 echo "configure:8026: checking for dgettext in -lintl" >&5 8026 echo "configure:8027: checking for dgettext in -lintl" >&5
8026 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 8027 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
8027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6 8029 echo $ac_n "(cached) $ac_c" 1>&6
8029 else 8030 else
8030 ac_save_LIBS="$LIBS" 8031 ac_save_LIBS="$LIBS"
8031 LIBS="-lintl $LIBS" 8032 LIBS="-lintl $LIBS"
8032 cat > conftest.$ac_ext <<EOF 8033 cat > conftest.$ac_ext <<EOF
8033 #line 8034 "configure" 8034 #line 8035 "configure"
8034 #include "confdefs.h" 8035 #include "confdefs.h"
8035 /* Override any gcc2 internal prototype to avoid an error. */ 8036 /* Override any gcc2 internal prototype to avoid an error. */
8036 /* We use char because int might match the return type of a gcc2 8037 /* We use char because int might match the return type of a gcc2
8037 builtin and then its argument prototype would still apply. */ 8038 builtin and then its argument prototype would still apply. */
8038 char dgettext(); 8039 char dgettext();
8039 8040
8040 int main() { 8041 int main() {
8041 dgettext() 8042 dgettext()
8042 ; return 0; } 8043 ; return 0; }
8043 EOF 8044 EOF
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8045 if { (eval echo configure:8046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8045 rm -rf conftest* 8046 rm -rf conftest*
8046 eval "ac_cv_lib_$ac_lib_var=yes" 8047 eval "ac_cv_lib_$ac_lib_var=yes"
8047 else 8048 else
8048 echo "configure: failed program was:" >&5 8049 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5 8050 cat conftest.$ac_ext >&5
8068 echo "$ac_t""no" 1>&6 8069 echo "$ac_t""no" 1>&6
8069 fi 8070 fi
8070 8071
8071 8072
8072 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 8073 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
8073 echo "configure:8074: checking whether localtime caches TZ" >&5 8074 echo "configure:8075: checking whether localtime caches TZ" >&5
8074 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 8075 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6 8076 echo $ac_n "(cached) $ac_c" 1>&6
8076 else 8077 else
8077 if test x$ac_cv_func_tzset = xyes; then 8078 if test x$ac_cv_func_tzset = xyes; then
8078 if test "$cross_compiling" = yes; then 8079 if test "$cross_compiling" = yes; then
8079 # If we have tzset, assume the worst when cross-compiling. 8080 # If we have tzset, assume the worst when cross-compiling.
8080 emacs_cv_localtime_cache=yes 8081 emacs_cv_localtime_cache=yes
8081 else 8082 else
8082 cat > conftest.$ac_ext <<EOF 8083 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure" 8084 #line 8085 "configure"
8084 #include "confdefs.h" 8085 #include "confdefs.h"
8085 #include <time.h> 8086 #include <time.h>
8086 extern char **environ; 8087 extern char **environ;
8087 unset_TZ () 8088 unset_TZ ()
8088 { 8089 {
8110 if (localtime (&now)->tm_hour != hour_unset) 8111 if (localtime (&now)->tm_hour != hour_unset)
8111 exit (1); 8112 exit (1);
8112 exit (0); 8113 exit (0);
8113 } 8114 }
8114 EOF 8115 EOF
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8116 then 8117 then
8117 emacs_cv_localtime_cache=no 8118 emacs_cv_localtime_cache=no
8118 else 8119 else
8119 echo "configure: failed program was:" >&5 8120 echo "configure: failed program was:" >&5
8120 cat conftest.$ac_ext >&5 8121 cat conftest.$ac_ext >&5
8140 8141
8141 if test "x$HAVE_TIMEVAL" = xyes; then 8142 if test "x$HAVE_TIMEVAL" = xyes; then
8142 for ac_func in gettimeofday 8143 for ac_func in gettimeofday
8143 do 8144 do
8144 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8145 echo "configure:8146: checking for $ac_func" >&5 8146 echo "configure:8147: checking for $ac_func" >&5
8146 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8147 echo $ac_n "(cached) $ac_c" 1>&6 8148 echo $ac_n "(cached) $ac_c" 1>&6
8148 else 8149 else
8149 cat > conftest.$ac_ext <<EOF 8150 cat > conftest.$ac_ext <<EOF
8150 #line 8151 "configure" 8151 #line 8152 "configure"
8151 #include "confdefs.h" 8152 #include "confdefs.h"
8152 /* System header to define __stub macros and hopefully few prototypes, 8153 /* System header to define __stub macros and hopefully few prototypes,
8153 which can conflict with char $ac_func(); below. */ 8154 which can conflict with char $ac_func(); below. */
8154 #include <assert.h> 8155 #include <assert.h>
8155 /* Override any gcc2 internal prototype to avoid an error. */ 8156 /* Override any gcc2 internal prototype to avoid an error. */
8168 $ac_func(); 8169 $ac_func();
8169 #endif 8170 #endif
8170 8171
8171 ; return 0; } 8172 ; return 0; }
8172 EOF 8173 EOF
8173 if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8174 if { (eval echo configure:8175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8174 rm -rf conftest* 8175 rm -rf conftest*
8175 eval "ac_cv_func_$ac_func=yes" 8176 eval "ac_cv_func_$ac_func=yes"
8176 else 8177 else
8177 echo "configure: failed program was:" >&5 8178 echo "configure: failed program was:" >&5
8178 cat conftest.$ac_ext >&5 8179 cat conftest.$ac_ext >&5
8193 echo "$ac_t""no" 1>&6 8194 echo "$ac_t""no" 1>&6
8194 fi 8195 fi
8195 done 8196 done
8196 8197
8197 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 8198 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
8198 echo "configure:8199: checking whether gettimeofday can accept two arguments" >&5 8199 echo "configure:8200: checking whether gettimeofday can accept two arguments" >&5
8199 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 8200 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
8200 echo $ac_n "(cached) $ac_c" 1>&6 8201 echo $ac_n "(cached) $ac_c" 1>&6
8201 else 8202 else
8202 cat > conftest.$ac_ext <<EOF 8203 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure" 8204 #line 8205 "configure"
8204 #include "confdefs.h" 8205 #include "confdefs.h"
8205 8206
8206 #ifdef TIME_WITH_SYS_TIME 8207 #ifdef TIME_WITH_SYS_TIME
8207 #include <sys/time.h> 8208 #include <sys/time.h>
8208 #include <time.h> 8209 #include <time.h>
8216 int main() { 8217 int main() {
8217 struct timeval time; 8218 struct timeval time;
8218 gettimeofday (&time, 0); 8219 gettimeofday (&time, 0);
8219 ; return 0; } 8220 ; return 0; }
8220 EOF 8221 EOF
8221 if { (eval echo configure:8222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8222 if { (eval echo configure:8223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8222 rm -rf conftest* 8223 rm -rf conftest*
8223 emacs_cv_gettimeofday_two_arguments=yes 8224 emacs_cv_gettimeofday_two_arguments=yes
8224 else 8225 else
8225 echo "configure: failed program was:" >&5 8226 echo "configure: failed program was:" >&5
8226 cat conftest.$ac_ext >&5 8227 cat conftest.$ac_ext >&5
8239 fi 8240 fi
8240 fi 8241 fi
8241 8242
8242 if test "$ac_cv_func_gettimeofday" = yes; then 8243 if test "$ac_cv_func_gettimeofday" = yes; then
8243 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 8244 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6
8244 echo "configure:8245: checking for struct timezone" >&5 8245 echo "configure:8246: checking for struct timezone" >&5
8245 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then 8246 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then
8246 echo $ac_n "(cached) $ac_c" 1>&6 8247 echo $ac_n "(cached) $ac_c" 1>&6
8247 else 8248 else
8248 cat > conftest.$ac_ext <<EOF 8249 cat > conftest.$ac_ext <<EOF
8249 #line 8250 "configure" 8250 #line 8251 "configure"
8250 #include "confdefs.h" 8251 #include "confdefs.h"
8251 #include <sys/time.h> 8252 #include <sys/time.h>
8252 int main() { 8253 int main() {
8253 struct timezone tz; 8254 struct timezone tz;
8254 ; return 0; } 8255 ; return 0; }
8255 EOF 8256 EOF
8256 if { (eval echo configure:8257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8257 if { (eval echo configure:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8257 rm -rf conftest* 8258 rm -rf conftest*
8258 if test "$cross_compiling" = yes; then 8259 if test "$cross_compiling" = yes; then
8259 emacs_cv_struct_timezone=yes 8260 emacs_cv_struct_timezone=yes
8260 else 8261 else
8261 cat > conftest.$ac_ext <<EOF 8262 cat > conftest.$ac_ext <<EOF
8262 #line 8263 "configure" 8263 #line 8264 "configure"
8263 #include "confdefs.h" 8264 #include "confdefs.h"
8264 8265
8265 #ifdef TIME_WITH_SYS_TIME 8266 #ifdef TIME_WITH_SYS_TIME
8266 #include <sys/time.h> 8267 #include <sys/time.h>
8267 #include <time.h> 8268 #include <time.h>
8276 struct timeval time; 8277 struct timeval time;
8277 struct timezone dummy; 8278 struct timezone dummy;
8278 exit (gettimeofday (&time, &dummy)); 8279 exit (gettimeofday (&time, &dummy));
8279 } 8280 }
8280 EOF 8281 EOF
8281 if { (eval echo configure:8282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8282 if { (eval echo configure:8283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8282 then 8283 then
8283 emacs_cv_struct_timezone=yes 8284 emacs_cv_struct_timezone=yes
8284 else 8285 else
8285 echo "configure: failed program was:" >&5 8286 echo "configure: failed program was:" >&5
8286 cat conftest.$ac_ext >&5 8287 cat conftest.$ac_ext >&5
8302 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 8303 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6
8303 fi 8304 fi
8304 8305
8305 ok_so_far=yes 8306 ok_so_far=yes
8306 echo $ac_n "checking for socket""... $ac_c" 1>&6 8307 echo $ac_n "checking for socket""... $ac_c" 1>&6
8307 echo "configure:8308: checking for socket" >&5 8308 echo "configure:8309: checking for socket" >&5
8308 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 8309 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
8309 echo $ac_n "(cached) $ac_c" 1>&6 8310 echo $ac_n "(cached) $ac_c" 1>&6
8310 else 8311 else
8311 cat > conftest.$ac_ext <<EOF 8312 cat > conftest.$ac_ext <<EOF
8312 #line 8313 "configure" 8313 #line 8314 "configure"
8313 #include "confdefs.h" 8314 #include "confdefs.h"
8314 /* System header to define __stub macros and hopefully few prototypes, 8315 /* System header to define __stub macros and hopefully few prototypes,
8315 which can conflict with char socket(); below. */ 8316 which can conflict with char socket(); below. */
8316 #include <assert.h> 8317 #include <assert.h>
8317 /* Override any gcc2 internal prototype to avoid an error. */ 8318 /* Override any gcc2 internal prototype to avoid an error. */
8330 socket(); 8331 socket();
8331 #endif 8332 #endif
8332 8333
8333 ; return 0; } 8334 ; return 0; }
8334 EOF 8335 EOF
8335 if { (eval echo configure:8336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8336 if { (eval echo configure:8337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8336 rm -rf conftest* 8337 rm -rf conftest*
8337 eval "ac_cv_func_socket=yes" 8338 eval "ac_cv_func_socket=yes"
8338 else 8339 else
8339 echo "configure: failed program was:" >&5 8340 echo "configure: failed program was:" >&5
8340 cat conftest.$ac_ext >&5 8341 cat conftest.$ac_ext >&5
8353 fi 8354 fi
8354 8355
8355 if test $ok_so_far = yes; then 8356 if test $ok_so_far = yes; then
8356 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 8357 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
8357 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 8358 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
8358 echo "configure:8359: checking for netinet/in.h" >&5 8359 echo "configure:8360: checking for netinet/in.h" >&5
8359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6 8361 echo $ac_n "(cached) $ac_c" 1>&6
8361 else 8362 else
8362 cat > conftest.$ac_ext <<EOF 8363 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure" 8364 #line 8365 "configure"
8364 #include "confdefs.h" 8365 #include "confdefs.h"
8365 #include <netinet/in.h> 8366 #include <netinet/in.h>
8366 EOF 8367 EOF
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8369 { (eval echo configure:8370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then 8371 if test -z "$ac_err"; then
8371 rm -rf conftest* 8372 rm -rf conftest*
8372 eval "ac_cv_header_$ac_safe=yes" 8373 eval "ac_cv_header_$ac_safe=yes"
8373 else 8374 else
8389 8390
8390 fi 8391 fi
8391 if test $ok_so_far = yes; then 8392 if test $ok_so_far = yes; then
8392 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 8393 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
8393 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 8394 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
8394 echo "configure:8395: checking for arpa/inet.h" >&5 8395 echo "configure:8396: checking for arpa/inet.h" >&5
8395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8396 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8396 echo $ac_n "(cached) $ac_c" 1>&6 8397 echo $ac_n "(cached) $ac_c" 1>&6
8397 else 8398 else
8398 cat > conftest.$ac_ext <<EOF 8399 cat > conftest.$ac_ext <<EOF
8399 #line 8400 "configure" 8400 #line 8401 "configure"
8400 #include "confdefs.h" 8401 #include "confdefs.h"
8401 #include <arpa/inet.h> 8402 #include <arpa/inet.h>
8402 EOF 8403 EOF
8403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8404 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8404 { (eval echo configure:8405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8405 { (eval echo configure:8406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8406 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8406 if test -z "$ac_err"; then 8407 if test -z "$ac_err"; then
8407 rm -rf conftest* 8408 rm -rf conftest*
8408 eval "ac_cv_header_$ac_safe=yes" 8409 eval "ac_cv_header_$ac_safe=yes"
8409 else 8410 else
8437 EOF 8438 EOF
8438 8439
8439 fi 8440 fi
8440 8441
8441 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 8442 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
8442 echo "configure:8443: checking whether system supports dynamic ptys" >&5 8443 echo "configure:8444: checking whether system supports dynamic ptys" >&5
8443 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 8444 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
8444 echo "$ac_t""yes" 1>&6 8445 echo "$ac_t""yes" 1>&6
8445 cat >> confdefs.h <<\EOF 8446 cat >> confdefs.h <<\EOF
8446 #define HAVE_DEV_PTMX 1 8447 #define HAVE_DEV_PTMX 1
8447 EOF 8448 EOF
8449 else 8450 else
8450 echo "$ac_t""no" 1>&6 8451 echo "$ac_t""no" 1>&6
8451 fi 8452 fi
8452 8453
8453 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 8454 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8454 echo "configure:8455: checking for pid_t" >&5 8455 echo "configure:8456: checking for pid_t" >&5
8455 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 8456 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8456 echo $ac_n "(cached) $ac_c" 1>&6 8457 echo $ac_n "(cached) $ac_c" 1>&6
8457 else 8458 else
8458 cat > conftest.$ac_ext <<EOF 8459 cat > conftest.$ac_ext <<EOF
8459 #line 8460 "configure" 8460 #line 8461 "configure"
8460 #include "confdefs.h" 8461 #include "confdefs.h"
8461 #include <sys/types.h> 8462 #include <sys/types.h>
8462 #if STDC_HEADERS 8463 #if STDC_HEADERS
8463 #include <stdlib.h> 8464 #include <stdlib.h>
8464 #include <stddef.h> 8465 #include <stddef.h>
8483 8484
8484 fi 8485 fi
8485 8486
8486 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 8487 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
8487 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 8488 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
8488 echo "configure:8489: checking for vfork.h" >&5 8489 echo "configure:8490: checking for vfork.h" >&5
8489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8490 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8490 echo $ac_n "(cached) $ac_c" 1>&6 8491 echo $ac_n "(cached) $ac_c" 1>&6
8491 else 8492 else
8492 cat > conftest.$ac_ext <<EOF 8493 cat > conftest.$ac_ext <<EOF
8493 #line 8494 "configure" 8494 #line 8495 "configure"
8494 #include "confdefs.h" 8495 #include "confdefs.h"
8495 #include <vfork.h> 8496 #include <vfork.h>
8496 EOF 8497 EOF
8497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8498 { (eval echo configure:8499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8499 { (eval echo configure:8500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8500 if test -z "$ac_err"; then 8501 if test -z "$ac_err"; then
8501 rm -rf conftest* 8502 rm -rf conftest*
8502 eval "ac_cv_header_$ac_safe=yes" 8503 eval "ac_cv_header_$ac_safe=yes"
8503 else 8504 else
8518 else 8519 else
8519 echo "$ac_t""no" 1>&6 8520 echo "$ac_t""no" 1>&6
8520 fi 8521 fi
8521 8522
8522 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 8523 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
8523 echo "configure:8524: checking for working vfork" >&5 8524 echo "configure:8525: checking for working vfork" >&5
8524 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 8525 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6 8526 echo $ac_n "(cached) $ac_c" 1>&6
8526 else 8527 else
8527 if test "$cross_compiling" = yes; then 8528 if test "$cross_compiling" = yes; then
8528 echo $ac_n "checking for vfork""... $ac_c" 1>&6 8529 echo $ac_n "checking for vfork""... $ac_c" 1>&6
8529 echo "configure:8530: checking for vfork" >&5 8530 echo "configure:8531: checking for vfork" >&5
8530 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 8531 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
8531 echo $ac_n "(cached) $ac_c" 1>&6 8532 echo $ac_n "(cached) $ac_c" 1>&6
8532 else 8533 else
8533 cat > conftest.$ac_ext <<EOF 8534 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure" 8535 #line 8536 "configure"
8535 #include "confdefs.h" 8536 #include "confdefs.h"
8536 /* System header to define __stub macros and hopefully few prototypes, 8537 /* System header to define __stub macros and hopefully few prototypes,
8537 which can conflict with char vfork(); below. */ 8538 which can conflict with char vfork(); below. */
8538 #include <assert.h> 8539 #include <assert.h>
8539 /* Override any gcc2 internal prototype to avoid an error. */ 8540 /* Override any gcc2 internal prototype to avoid an error. */
8552 vfork(); 8553 vfork();
8553 #endif 8554 #endif
8554 8555
8555 ; return 0; } 8556 ; return 0; }
8556 EOF 8557 EOF
8557 if { (eval echo configure:8558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8558 rm -rf conftest* 8559 rm -rf conftest*
8559 eval "ac_cv_func_vfork=yes" 8560 eval "ac_cv_func_vfork=yes"
8560 else 8561 else
8561 echo "configure: failed program was:" >&5 8562 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5 8563 cat conftest.$ac_ext >&5
8574 fi 8575 fi
8575 8576
8576 ac_cv_func_vfork_works=$ac_cv_func_vfork 8577 ac_cv_func_vfork_works=$ac_cv_func_vfork
8577 else 8578 else
8578 cat > conftest.$ac_ext <<EOF 8579 cat > conftest.$ac_ext <<EOF
8579 #line 8580 "configure" 8580 #line 8581 "configure"
8580 #include "confdefs.h" 8581 #include "confdefs.h"
8581 /* Thanks to Paul Eggert for this test. */ 8582 /* Thanks to Paul Eggert for this test. */
8582 #include <stdio.h> 8583 #include <stdio.h>
8583 #include <sys/types.h> 8584 #include <sys/types.h>
8584 #include <sys/stat.h> 8585 #include <sys/stat.h>
8669 || fstat(fileno(stdout), &st) != 0 8670 || fstat(fileno(stdout), &st) != 0
8670 ); 8671 );
8671 } 8672 }
8672 } 8673 }
8673 EOF 8674 EOF
8674 if { (eval echo configure:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8675 if { (eval echo configure:8676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8675 then 8676 then
8676 ac_cv_func_vfork_works=yes 8677 ac_cv_func_vfork_works=yes
8677 else 8678 else
8678 echo "configure: failed program was:" >&5 8679 echo "configure: failed program was:" >&5
8679 cat conftest.$ac_ext >&5 8680 cat conftest.$ac_ext >&5
8694 fi 8695 fi
8695 8696
8696 8697
8697 # Fixme: This should be replaced when we have autoconf 2.14. 8698 # Fixme: This should be replaced when we have autoconf 2.14.
8698 echo $ac_n "checking for size_t""... $ac_c" 1>&6 8699 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8699 echo "configure:8700: checking for size_t" >&5 8700 echo "configure:8701: checking for size_t" >&5
8700 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 8701 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8701 echo $ac_n "(cached) $ac_c" 1>&6 8702 echo $ac_n "(cached) $ac_c" 1>&6
8702 else 8703 else
8703 cat > conftest.$ac_ext <<EOF 8704 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure" 8705 #line 8706 "configure"
8705 #include "confdefs.h" 8706 #include "confdefs.h"
8706 #include <sys/types.h> 8707 #include <sys/types.h>
8707 #if STDC_HEADERS 8708 #if STDC_HEADERS
8708 #include <stdlib.h> 8709 #include <stdlib.h>
8709 #include <stddef.h> 8710 #include <stddef.h>