Mercurial > emacs
comparison configure @ 28607:7d75f0ff6c50
*** empty log message ***
author | Dave Love <fx@gnu.org> |
---|---|
date | Sun, 16 Apr 2000 14:54:52 +0000 |
parents | 5b7b3b5d54df |
children | 780bb4727911 |
comparison
equal
deleted
inserted
replaced
28606:da1977d6bcfd | 28607:7d75f0ff6c50 |
---|---|
2889 #include "confdefs.h" | 2889 #include "confdefs.h" |
2890 | 2890 |
2891 int main() { | 2891 int main() { |
2892 | 2892 |
2893 /* Ultrix mips cc rejects this. */ | 2893 /* Ultrix mips cc rejects this. */ |
2894 typedef int charset[2]; const charset x; | 2894 typedef int charset[2]; const charset x = {0,0}; |
2895 /* SunOS 4.1.1 cc rejects this. */ | 2895 /* SunOS 4.1.1 cc rejects this. */ |
2896 char const *const *ccp; | 2896 char const *const *ccp; |
2897 char **p; | 2897 char **p; |
2898 /* NEC SVR4.0.2 mips cc rejects this. */ | 2898 /* NEC SVR4.0.2 mips cc rejects this. */ |
2899 struct point {int x, y;}; | 2899 struct point {int x, y;}; |
4873 cat > conftest.$ac_ext <<EOF | 4873 cat > conftest.$ac_ext <<EOF |
4874 #line 4875 "configure" | 4874 #line 4875 "configure" |
4875 #include "confdefs.h" | 4875 #include "confdefs.h" |
4876 #include <alloca.h> | 4876 #include <alloca.h> |
4877 int main() { | 4877 int main() { |
4878 char *p = alloca(2 * sizeof(int)); | 4878 void *p = alloca(2 * sizeof(int)); |
4879 ; return 0; } | 4879 ; return 0; } |
4880 EOF | 4880 EOF |
4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4881 if { (eval echo configure:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4882 rm -rf conftest* | 4882 rm -rf conftest* |
4883 ac_cv_header_alloca_h=yes | 4883 ac_cv_header_alloca_h=yes |
5387 for ac_func in gettimeofday gethostname getdomainname dup2 \ | 5387 for ac_func in gettimeofday gethostname getdomainname dup2 \ |
5388 rename closedir mkdir rmdir sysinfo \ | 5388 rename closedir mkdir rmdir sysinfo \ |
5389 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | 5389 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
5390 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | 5390 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
5391 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ | 5391 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ |
5392 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm | 5392 __fpending ftello mblen mbrlen strsignal setitimer ualarm |
5393 do | 5393 do |
5394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5395 echo "configure:5396: checking for $ac_func" >&5 | 5395 echo "configure:5396: checking for $ac_func" >&5 |
5396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5397 echo $ac_n "(cached) $ac_c" 1>&6 | 5397 echo $ac_n "(cached) $ac_c" 1>&6 |
5443 echo "$ac_t""no" 1>&6 | 5443 echo "$ac_t""no" 1>&6 |
5444 fi | 5444 fi |
5445 done | 5445 done |
5446 | 5446 |
5447 | 5447 |
5448 for ac_hdr in sys/time.h unistd.h | |
5449 do | |
5450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
5451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5452 echo "configure:5453: checking for $ac_hdr" >&5 | |
5453 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
5454 echo $ac_n "(cached) $ac_c" 1>&6 | |
5455 else | |
5456 cat > conftest.$ac_ext <<EOF | |
5457 #line 5458 "configure" | |
5458 #include "confdefs.h" | |
5459 #include <$ac_hdr> | |
5460 EOF | |
5461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5462 { (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5464 if test -z "$ac_err"; then | |
5465 rm -rf conftest* | |
5466 eval "ac_cv_header_$ac_safe=yes" | |
5467 else | |
5468 echo "$ac_err" >&5 | |
5469 echo "configure: failed program was:" >&5 | |
5470 cat conftest.$ac_ext >&5 | |
5471 rm -rf conftest* | |
5472 eval "ac_cv_header_$ac_safe=no" | |
5473 fi | |
5474 rm -f conftest* | |
5475 fi | |
5476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5477 echo "$ac_t""yes" 1>&6 | |
5478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
5479 cat >> confdefs.h <<EOF | |
5480 #define $ac_tr_hdr 1 | |
5481 EOF | |
5482 | |
5483 else | |
5484 echo "$ac_t""no" 1>&6 | |
5485 fi | |
5486 done | |
5487 | |
5488 for ac_func in alarm | |
5489 do | |
5490 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5491 echo "configure:5492: checking for $ac_func" >&5 | |
5492 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
5493 echo $ac_n "(cached) $ac_c" 1>&6 | |
5494 else | |
5495 cat > conftest.$ac_ext <<EOF | |
5496 #line 5497 "configure" | |
5497 #include "confdefs.h" | |
5498 /* System header to define __stub macros and hopefully few prototypes, | |
5499 which can conflict with char $ac_func(); below. */ | |
5500 #include <assert.h> | |
5501 /* Override any gcc2 internal prototype to avoid an error. */ | |
5502 /* We use char because int might match the return type of a gcc2 | |
5503 builtin and then its argument prototype would still apply. */ | |
5504 char $ac_func(); | |
5505 | |
5506 int main() { | |
5507 | |
5508 /* The GNU C library defines this for functions which it implements | |
5509 to always fail with ENOSYS. Some functions are actually named | |
5510 something starting with __ and the normal name is an alias. */ | |
5511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5512 choke me | |
5513 #else | |
5514 $ac_func(); | |
5515 #endif | |
5516 | |
5517 ; return 0; } | |
5518 EOF | |
5519 if { (eval echo configure:5520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5520 rm -rf conftest* | |
5521 eval "ac_cv_func_$ac_func=yes" | |
5522 else | |
5523 echo "configure: failed program was:" >&5 | |
5524 cat conftest.$ac_ext >&5 | |
5525 rm -rf conftest* | |
5526 eval "ac_cv_func_$ac_func=no" | |
5527 fi | |
5528 rm -f conftest* | |
5529 fi | |
5530 | |
5531 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5532 echo "$ac_t""yes" 1>&6 | |
5533 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5534 cat >> confdefs.h <<EOF | |
5535 #define $ac_tr_func 1 | |
5536 EOF | |
5537 | |
5538 else | |
5539 echo "$ac_t""no" 1>&6 | |
5540 fi | |
5541 done | |
5542 | |
5543 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | |
5544 echo "configure:5545: checking for working mktime" >&5 | |
5545 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | |
5546 echo $ac_n "(cached) $ac_c" 1>&6 | |
5547 else | |
5548 if test "$cross_compiling" = yes; then | |
5549 ac_cv_func_working_mktime=no | |
5550 else | |
5551 cat > conftest.$ac_ext <<EOF | |
5552 #line 5553 "configure" | |
5553 #include "confdefs.h" | |
5554 /* Test program from Paul Eggert (eggert@twinsun.com) | |
5555 and Tony Leneis (tony@plaza.ds.adp.com). */ | |
5556 #if TIME_WITH_SYS_TIME | |
5557 # include <sys/time.h> | |
5558 # include <time.h> | |
5559 #else | |
5560 # if HAVE_SYS_TIME_H | |
5561 # include <sys/time.h> | |
5562 # else | |
5563 # include <time.h> | |
5564 # endif | |
5565 #endif | |
5566 | |
5567 #if HAVE_UNISTD_H | |
5568 # include <unistd.h> | |
5569 #endif | |
5570 | |
5571 #if !HAVE_ALARM | |
5572 # define alarm(X) /* empty */ | |
5573 #endif | |
5574 | |
5575 /* Work around redefinition to rpl_putenv by other config tests. */ | |
5576 #undef putenv | |
5577 | |
5578 static time_t time_t_max; | |
5579 | |
5580 /* Values we'll use to set the TZ environment variable. */ | |
5581 static const char *const tz_strings[] = { | |
5582 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
5583 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
5584 }; | |
5585 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
5586 | |
5587 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
5588 Based on a problem report from Andreas Jaeger. */ | |
5589 static void | |
5590 spring_forward_gap () | |
5591 { | |
5592 /* glibc (up to about 1998-10-07) failed this test) */ | |
5593 struct tm tm; | |
5594 | |
5595 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
5596 instead of "TZ=America/Vancouver" in order to detect the bug even | |
5597 on systems that don't support the Olson extension, or don't have the | |
5598 full zoneinfo tables installed. */ | |
5599 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
5600 | |
5601 tm.tm_year = 98; | |
5602 tm.tm_mon = 3; | |
5603 tm.tm_mday = 5; | |
5604 tm.tm_hour = 2; | |
5605 tm.tm_min = 0; | |
5606 tm.tm_sec = 0; | |
5607 tm.tm_isdst = -1; | |
5608 if (mktime (&tm) == (time_t)-1) | |
5609 exit (1); | |
5610 } | |
5611 | |
5612 static void | |
5613 mktime_test (now) | |
5614 time_t now; | |
5615 { | |
5616 struct tm *lt; | |
5617 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5618 exit (1); | |
5619 now = time_t_max - now; | |
5620 if ((lt = localtime (&now)) && mktime (lt) != now) | |
5621 exit (1); | |
5622 } | |
5623 | |
5624 static void | |
5625 irix_6_4_bug () | |
5626 { | |
5627 /* Based on code from Ariel Faigon. */ | |
5628 struct tm tm; | |
5629 tm.tm_year = 96; | |
5630 tm.tm_mon = 3; | |
5631 tm.tm_mday = 0; | |
5632 tm.tm_hour = 0; | |
5633 tm.tm_min = 0; | |
5634 tm.tm_sec = 0; | |
5635 tm.tm_isdst = -1; | |
5636 mktime (&tm); | |
5637 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
5638 exit (1); | |
5639 } | |
5640 | |
5641 static void | |
5642 bigtime_test (j) | |
5643 int j; | |
5644 { | |
5645 struct tm tm; | |
5646 time_t now; | |
5647 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
5648 now = mktime (&tm); | |
5649 if (now != (time_t) -1) | |
5650 { | |
5651 struct tm *lt = localtime (&now); | |
5652 if (! (lt | |
5653 && lt->tm_year == tm.tm_year | |
5654 && lt->tm_mon == tm.tm_mon | |
5655 && lt->tm_mday == tm.tm_mday | |
5656 && lt->tm_hour == tm.tm_hour | |
5657 && lt->tm_min == tm.tm_min | |
5658 && lt->tm_sec == tm.tm_sec | |
5659 && lt->tm_yday == tm.tm_yday | |
5660 && lt->tm_wday == tm.tm_wday | |
5661 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
5662 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
5663 exit (1); | |
5664 } | |
5665 } | |
5666 | |
5667 int | |
5668 main () | |
5669 { | |
5670 time_t t, delta; | |
5671 int i, j; | |
5672 | |
5673 /* This test makes some buggy mktime implementations loop. | |
5674 Give up after 60 seconds; a mktime slower than that | |
5675 isn't worth using anyway. */ | |
5676 alarm (60); | |
5677 | |
5678 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
5679 continue; | |
5680 time_t_max--; | |
5681 delta = time_t_max / 997; /* a suitable prime number */ | |
5682 for (i = 0; i < N_STRINGS; i++) | |
5683 { | |
5684 if (tz_strings[i]) | |
5685 putenv (tz_strings[i]); | |
5686 | |
5687 for (t = 0; t <= time_t_max - delta; t += delta) | |
5688 mktime_test (t); | |
5689 mktime_test ((time_t) 60 * 60); | |
5690 mktime_test ((time_t) 60 * 60 * 24); | |
5691 | |
5692 for (j = 1; 0 < j; j *= 2) | |
5693 bigtime_test (j); | |
5694 bigtime_test (j - 1); | |
5695 } | |
5696 irix_6_4_bug (); | |
5697 spring_forward_gap (); | |
5698 exit (0); | |
5699 } | |
5700 EOF | |
5701 if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
5702 then | |
5703 ac_cv_func_working_mktime=yes | |
5704 else | |
5705 echo "configure: failed program was:" >&5 | |
5706 cat conftest.$ac_ext >&5 | |
5707 rm -fr conftest* | |
5708 ac_cv_func_working_mktime=no | |
5709 fi | |
5710 rm -fr conftest* | |
5711 fi | |
5712 | |
5713 fi | |
5714 | |
5715 echo "$ac_t""$ac_cv_func_working_mktime" 1>&6 | |
5716 if test $ac_cv_func_working_mktime = no; then | |
5717 LIBOBJS="$LIBOBJS mktime.${ac_objext}" | |
5718 fi | |
5719 | |
5720 if test "$ac_cv_func_working_mktime" = no; then | |
5721 cat >> confdefs.h <<\EOF | |
5722 #define BROKEN_MKTIME 1 | |
5723 EOF | |
5724 | |
5725 fi | |
5726 | |
5727 ac_have_func=no # yes means we've found a way to get the load average. | |
5728 | |
5729 # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
5730 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
5731 # to get the right answer into the cache. | |
5732 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | |
5733 echo "configure:5734: checking for elf_begin in -lelf" >&5 | |
5734 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | |
5735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5736 echo $ac_n "(cached) $ac_c" 1>&6 | |
5737 else | |
5738 ac_save_LIBS="$LIBS" | |
5739 LIBS="-lelf $LIBS" | |
5740 cat > conftest.$ac_ext <<EOF | |
5741 #line 5742 "configure" | |
5742 #include "confdefs.h" | |
5743 /* Override any gcc2 internal prototype to avoid an error. */ | |
5744 /* We use char because int might match the return type of a gcc2 | |
5745 builtin and then its argument prototype would still apply. */ | |
5746 char elf_begin(); | |
5747 | |
5748 int main() { | |
5749 elf_begin() | |
5750 ; return 0; } | |
5751 EOF | |
5752 if { (eval echo configure:5753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5753 rm -rf conftest* | |
5754 eval "ac_cv_lib_$ac_lib_var=yes" | |
5755 else | |
5756 echo "configure: failed program was:" >&5 | |
5757 cat conftest.$ac_ext >&5 | |
5758 rm -rf conftest* | |
5759 eval "ac_cv_lib_$ac_lib_var=no" | |
5760 fi | |
5761 rm -f conftest* | |
5762 LIBS="$ac_save_LIBS" | |
5763 | |
5764 fi | |
5765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5766 echo "$ac_t""yes" 1>&6 | |
5767 LIBS="-lelf $LIBS" | |
5768 else | |
5769 echo "$ac_t""no" 1>&6 | |
5770 fi | |
5771 | |
5772 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | |
5773 echo "configure:5774: checking for kvm_open in -lkvm" >&5 | |
5774 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | |
5775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5776 echo $ac_n "(cached) $ac_c" 1>&6 | |
5777 else | |
5778 ac_save_LIBS="$LIBS" | |
5779 LIBS="-lkvm $LIBS" | |
5780 cat > conftest.$ac_ext <<EOF | |
5781 #line 5782 "configure" | |
5782 #include "confdefs.h" | |
5783 /* Override any gcc2 internal prototype to avoid an error. */ | |
5784 /* We use char because int might match the return type of a gcc2 | |
5785 builtin and then its argument prototype would still apply. */ | |
5786 char kvm_open(); | |
5787 | |
5788 int main() { | |
5789 kvm_open() | |
5790 ; return 0; } | |
5791 EOF | |
5792 if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5793 rm -rf conftest* | |
5794 eval "ac_cv_lib_$ac_lib_var=yes" | |
5795 else | |
5796 echo "configure: failed program was:" >&5 | |
5797 cat conftest.$ac_ext >&5 | |
5798 rm -rf conftest* | |
5799 eval "ac_cv_lib_$ac_lib_var=no" | |
5800 fi | |
5801 rm -f conftest* | |
5802 LIBS="$ac_save_LIBS" | |
5803 | |
5804 fi | |
5805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5806 echo "$ac_t""yes" 1>&6 | |
5807 LIBS="-lkvm $LIBS" | |
5808 else | |
5809 echo "$ac_t""no" 1>&6 | |
5810 fi | |
5811 | |
5812 # Check for the 4.4BSD definition of getloadavg. | |
5813 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | |
5814 echo "configure:5815: checking for getloadavg in -lutil" >&5 | |
5815 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | |
5816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5817 echo $ac_n "(cached) $ac_c" 1>&6 | |
5818 else | |
5819 ac_save_LIBS="$LIBS" | |
5820 LIBS="-lutil $LIBS" | |
5821 cat > conftest.$ac_ext <<EOF | |
5822 #line 5823 "configure" | |
5823 #include "confdefs.h" | |
5824 /* Override any gcc2 internal prototype to avoid an error. */ | |
5825 /* We use char because int might match the return type of a gcc2 | |
5826 builtin and then its argument prototype would still apply. */ | |
5827 char getloadavg(); | |
5828 | |
5829 int main() { | |
5830 getloadavg() | |
5831 ; return 0; } | |
5832 EOF | |
5833 if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5834 rm -rf conftest* | |
5835 eval "ac_cv_lib_$ac_lib_var=yes" | |
5836 else | |
5837 echo "configure: failed program was:" >&5 | |
5838 cat conftest.$ac_ext >&5 | |
5839 rm -rf conftest* | |
5840 eval "ac_cv_lib_$ac_lib_var=no" | |
5841 fi | |
5842 rm -f conftest* | |
5843 LIBS="$ac_save_LIBS" | |
5844 | |
5845 fi | |
5846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5847 echo "$ac_t""yes" 1>&6 | |
5848 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
5849 else | |
5850 echo "$ac_t""no" 1>&6 | |
5851 fi | |
5852 | |
5853 | |
5854 if test $ac_have_func = no; then | |
5855 # There is a commonly available library for RS/6000 AIX. | |
5856 # Since it is not a standard part of AIX, it might be installed locally. | |
5857 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | |
5858 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | |
5859 echo "configure:5860: checking for getloadavg in -lgetloadavg" >&5 | |
5860 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | |
5861 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
5862 echo $ac_n "(cached) $ac_c" 1>&6 | |
5863 else | |
5864 ac_save_LIBS="$LIBS" | |
5865 LIBS="-lgetloadavg $LIBS" | |
5866 cat > conftest.$ac_ext <<EOF | |
5867 #line 5868 "configure" | |
5868 #include "confdefs.h" | |
5869 /* Override any gcc2 internal prototype to avoid an error. */ | |
5870 /* We use char because int might match the return type of a gcc2 | |
5871 builtin and then its argument prototype would still apply. */ | |
5872 char getloadavg(); | |
5873 | |
5874 int main() { | |
5875 getloadavg() | |
5876 ; return 0; } | |
5877 EOF | |
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5879 rm -rf conftest* | |
5880 eval "ac_cv_lib_$ac_lib_var=yes" | |
5881 else | |
5882 echo "configure: failed program was:" >&5 | |
5883 cat conftest.$ac_ext >&5 | |
5884 rm -rf conftest* | |
5885 eval "ac_cv_lib_$ac_lib_var=no" | |
5886 fi | |
5887 rm -f conftest* | |
5888 LIBS="$ac_save_LIBS" | |
5889 | |
5890 fi | |
5891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
5892 echo "$ac_t""yes" 1>&6 | |
5893 LIBS="-lgetloadavg $LIBS" | |
5894 else | |
5895 echo "$ac_t""no" 1>&6 | |
5896 LIBS="$ac_getloadavg_LIBS" | |
5897 fi | |
5898 | |
5899 fi | |
5900 | |
5901 # Make sure it is really in the library, if we think we found it. | |
5902 for ac_func in getloadavg | |
5903 do | |
5904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
5905 echo "configure:5906: checking for $ac_func" >&5 | |
5906 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
5907 echo $ac_n "(cached) $ac_c" 1>&6 | |
5908 else | |
5909 cat > conftest.$ac_ext <<EOF | |
5910 #line 5911 "configure" | |
5911 #include "confdefs.h" | |
5912 /* System header to define __stub macros and hopefully few prototypes, | |
5913 which can conflict with char $ac_func(); below. */ | |
5914 #include <assert.h> | |
5915 /* Override any gcc2 internal prototype to avoid an error. */ | |
5916 /* We use char because int might match the return type of a gcc2 | |
5917 builtin and then its argument prototype would still apply. */ | |
5918 char $ac_func(); | |
5919 | |
5920 int main() { | |
5921 | |
5922 /* The GNU C library defines this for functions which it implements | |
5923 to always fail with ENOSYS. Some functions are actually named | |
5924 something starting with __ and the normal name is an alias. */ | |
5925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5926 choke me | |
5927 #else | |
5928 $ac_func(); | |
5929 #endif | |
5930 | |
5931 ; return 0; } | |
5932 EOF | |
5933 if { (eval echo configure:5934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5934 rm -rf conftest* | |
5935 eval "ac_cv_func_$ac_func=yes" | |
5936 else | |
5937 echo "configure: failed program was:" >&5 | |
5938 cat conftest.$ac_ext >&5 | |
5939 rm -rf conftest* | |
5940 eval "ac_cv_func_$ac_func=no" | |
5941 fi | |
5942 rm -f conftest* | |
5943 fi | |
5944 | |
5945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
5946 echo "$ac_t""yes" 1>&6 | |
5947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
5948 cat >> confdefs.h <<EOF | |
5949 #define $ac_tr_func 1 | |
5950 EOF | |
5951 | |
5952 else | |
5953 echo "$ac_t""no" 1>&6 | |
5954 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" | |
5955 fi | |
5956 done | |
5957 | |
5958 | |
5959 | |
5960 if test $ac_cv_func_getloadavg = yes; then | |
5961 cat >> confdefs.h <<\EOF | |
5962 #define HAVE_GETLOADAVG 1 | |
5963 EOF | |
5964 | |
5965 ac_have_func=yes | |
5966 else | |
5967 # Figure out what our getloadavg.c needs. | |
5968 ac_have_func=no | |
5969 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | |
5970 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | |
5971 echo "configure:5972: checking for sys/dg_sys_info.h" >&5 | |
5972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
5973 echo $ac_n "(cached) $ac_c" 1>&6 | |
5974 else | |
5975 cat > conftest.$ac_ext <<EOF | |
5976 #line 5977 "configure" | |
5977 #include "confdefs.h" | |
5978 #include <sys/dg_sys_info.h> | |
5979 EOF | |
5980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5981 { (eval echo configure:5982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
5982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
5983 if test -z "$ac_err"; then | |
5984 rm -rf conftest* | |
5985 eval "ac_cv_header_$ac_safe=yes" | |
5986 else | |
5987 echo "$ac_err" >&5 | |
5988 echo "configure: failed program was:" >&5 | |
5989 cat conftest.$ac_ext >&5 | |
5990 rm -rf conftest* | |
5991 eval "ac_cv_header_$ac_safe=no" | |
5992 fi | |
5993 rm -f conftest* | |
5994 fi | |
5995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
5996 echo "$ac_t""yes" 1>&6 | |
5997 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
5998 #define DGUX 1 | |
5999 EOF | |
6000 | |
6001 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | |
6002 echo "configure:6003: checking for dg_sys_info in -ldgc" >&5 | |
6003 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | |
6004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6005 echo $ac_n "(cached) $ac_c" 1>&6 | |
6006 else | |
6007 ac_save_LIBS="$LIBS" | |
6008 LIBS="-ldgc $LIBS" | |
6009 cat > conftest.$ac_ext <<EOF | |
6010 #line 6011 "configure" | |
6011 #include "confdefs.h" | |
6012 /* Override any gcc2 internal prototype to avoid an error. */ | |
6013 /* We use char because int might match the return type of a gcc2 | |
6014 builtin and then its argument prototype would still apply. */ | |
6015 char dg_sys_info(); | |
6016 | |
6017 int main() { | |
6018 dg_sys_info() | |
6019 ; return 0; } | |
6020 EOF | |
6021 if { (eval echo configure:6022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6022 rm -rf conftest* | |
6023 eval "ac_cv_lib_$ac_lib_var=yes" | |
6024 else | |
6025 echo "configure: failed program was:" >&5 | |
6026 cat conftest.$ac_ext >&5 | |
6027 rm -rf conftest* | |
6028 eval "ac_cv_lib_$ac_lib_var=no" | |
6029 fi | |
6030 rm -f conftest* | |
6031 LIBS="$ac_save_LIBS" | |
6032 | |
6033 fi | |
6034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6035 echo "$ac_t""yes" 1>&6 | |
6036 ac_tr_lib=HAVE_LIB`echo dgc | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
6037 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
6038 cat >> confdefs.h <<EOF | |
6039 #define $ac_tr_lib 1 | |
6040 EOF | |
6041 | |
6042 LIBS="-ldgc $LIBS" | |
6043 | |
6044 else | |
6045 echo "$ac_t""no" 1>&6 | |
6046 fi | |
6047 | |
6048 else | |
6049 echo "$ac_t""no" 1>&6 | |
6050 fi | |
6051 | |
6052 | |
6053 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
6054 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
6055 # Irix 4.0.5F has the header but not the library. | |
6056 if test $ac_have_func = no && test $ac_cv_lib_elf_elf_begin = yes; then | |
6057 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6058 #define SVR4 1 | |
6059 EOF | |
6060 | |
6061 fi | |
6062 | |
6063 if test $ac_have_func = no; then | |
6064 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | |
6065 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | |
6066 echo "configure:6067: checking for inq_stats/cpustats.h" >&5 | |
6067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6068 echo $ac_n "(cached) $ac_c" 1>&6 | |
6069 else | |
6070 cat > conftest.$ac_ext <<EOF | |
6071 #line 6072 "configure" | |
6072 #include "confdefs.h" | |
6073 #include <inq_stats/cpustats.h> | |
6074 EOF | |
6075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6076 { (eval echo configure:6077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6078 if test -z "$ac_err"; then | |
6079 rm -rf conftest* | |
6080 eval "ac_cv_header_$ac_safe=yes" | |
6081 else | |
6082 echo "$ac_err" >&5 | |
6083 echo "configure: failed program was:" >&5 | |
6084 cat conftest.$ac_ext >&5 | |
6085 rm -rf conftest* | |
6086 eval "ac_cv_header_$ac_safe=no" | |
6087 fi | |
6088 rm -f conftest* | |
6089 fi | |
6090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6091 echo "$ac_t""yes" 1>&6 | |
6092 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6093 #define UMAX 1 | |
6094 EOF | |
6095 | |
6096 cat >> confdefs.h <<\EOF | |
6097 #define UMAX4_3 1 | |
6098 EOF | |
6099 | |
6100 else | |
6101 echo "$ac_t""no" 1>&6 | |
6102 fi | |
6103 | |
6104 fi | |
6105 | |
6106 if test $ac_have_func = no; then | |
6107 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | |
6108 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | |
6109 echo "configure:6110: checking for sys/cpustats.h" >&5 | |
6110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6111 echo $ac_n "(cached) $ac_c" 1>&6 | |
6112 else | |
6113 cat > conftest.$ac_ext <<EOF | |
6114 #line 6115 "configure" | |
6115 #include "confdefs.h" | |
6116 #include <sys/cpustats.h> | |
6117 EOF | |
6118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6119 { (eval echo configure:6120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6121 if test -z "$ac_err"; then | |
6122 rm -rf conftest* | |
6123 eval "ac_cv_header_$ac_safe=yes" | |
6124 else | |
6125 echo "$ac_err" >&5 | |
6126 echo "configure: failed program was:" >&5 | |
6127 cat conftest.$ac_ext >&5 | |
6128 rm -rf conftest* | |
6129 eval "ac_cv_header_$ac_safe=no" | |
6130 fi | |
6131 rm -f conftest* | |
6132 fi | |
6133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6134 echo "$ac_t""yes" 1>&6 | |
6135 ac_have_func=yes; cat >> confdefs.h <<\EOF | |
6136 #define UMAX 1 | |
6137 EOF | |
6138 | |
6139 else | |
6140 echo "$ac_t""no" 1>&6 | |
6141 fi | |
6142 | |
6143 fi | |
6144 | |
6145 if test $ac_have_func = no; then | |
6146 for ac_hdr in mach/mach.h | |
6147 do | |
6148 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
6149 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6150 echo "configure:6151: checking for $ac_hdr" >&5 | |
6151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6152 echo $ac_n "(cached) $ac_c" 1>&6 | |
6153 else | |
6154 cat > conftest.$ac_ext <<EOF | |
6155 #line 6156 "configure" | |
6156 #include "confdefs.h" | |
6157 #include <$ac_hdr> | |
6158 EOF | |
6159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6160 { (eval echo configure:6161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6162 if test -z "$ac_err"; then | |
6163 rm -rf conftest* | |
6164 eval "ac_cv_header_$ac_safe=yes" | |
6165 else | |
6166 echo "$ac_err" >&5 | |
6167 echo "configure: failed program was:" >&5 | |
6168 cat conftest.$ac_ext >&5 | |
6169 rm -rf conftest* | |
6170 eval "ac_cv_header_$ac_safe=no" | |
6171 fi | |
6172 rm -f conftest* | |
6173 fi | |
6174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6175 echo "$ac_t""yes" 1>&6 | |
6176 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
6177 cat >> confdefs.h <<EOF | |
6178 #define $ac_tr_hdr 1 | |
6179 EOF | |
6180 | |
6181 else | |
6182 echo "$ac_t""no" 1>&6 | |
6183 fi | |
6184 done | |
6185 | |
6186 fi | |
6187 | |
6188 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | |
6189 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | |
6190 echo "configure:6191: checking for nlist.h" >&5 | |
6191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
6192 echo $ac_n "(cached) $ac_c" 1>&6 | |
6193 else | |
6194 cat > conftest.$ac_ext <<EOF | |
6195 #line 6196 "configure" | |
6196 #include "confdefs.h" | |
6197 #include <nlist.h> | |
6198 EOF | |
6199 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6200 { (eval echo configure:6201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6201 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6202 if test -z "$ac_err"; then | |
6203 rm -rf conftest* | |
6204 eval "ac_cv_header_$ac_safe=yes" | |
6205 else | |
6206 echo "$ac_err" >&5 | |
6207 echo "configure: failed program was:" >&5 | |
6208 cat conftest.$ac_ext >&5 | |
6209 rm -rf conftest* | |
6210 eval "ac_cv_header_$ac_safe=no" | |
6211 fi | |
6212 rm -f conftest* | |
6213 fi | |
6214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
6215 echo "$ac_t""yes" 1>&6 | |
6216 cat >> confdefs.h <<\EOF | |
6217 #define NLIST_STRUCT 1 | |
6218 EOF | |
6219 | |
6220 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | |
6221 echo "configure:6222: checking for n_un in struct nlist" >&5 | |
6222 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | |
6223 echo $ac_n "(cached) $ac_c" 1>&6 | |
6224 else | |
6225 cat > conftest.$ac_ext <<EOF | |
6226 #line 6227 "configure" | |
6227 #include "confdefs.h" | |
6228 #include <nlist.h> | |
6229 int main() { | |
6230 struct nlist n; n.n_un.n_name = 0; | |
6231 ; return 0; } | |
6232 EOF | |
6233 if { (eval echo configure:6234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
6234 rm -rf conftest* | |
6235 ac_cv_struct_nlist_n_un=yes | |
6236 else | |
6237 echo "configure: failed program was:" >&5 | |
6238 cat conftest.$ac_ext >&5 | |
6239 rm -rf conftest* | |
6240 ac_cv_struct_nlist_n_un=no | |
6241 fi | |
6242 rm -f conftest* | |
6243 fi | |
6244 | |
6245 echo "$ac_t""$ac_cv_struct_nlist_n_un" 1>&6 | |
6246 if test $ac_cv_struct_nlist_n_un = yes; then | |
6247 cat >> confdefs.h <<\EOF | |
6248 #define NLIST_NAME_UNION 1 | |
6249 EOF | |
6250 | |
6251 fi | |
6252 | |
6253 else | |
6254 echo "$ac_t""no" 1>&6 | |
6255 fi | |
6256 fi # Do not have getloadavg in system libraries. | |
6257 | |
6258 # Some definitions of getloadavg require that the program be installed setgid. | |
6259 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | |
6260 echo "configure:6261: checking whether getloadavg requires setgid" >&5 | |
6261 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | |
6262 echo $ac_n "(cached) $ac_c" 1>&6 | |
6263 else | |
6264 cat > conftest.$ac_ext <<EOF | |
6265 #line 6266 "configure" | |
6266 #include "confdefs.h" | |
6267 #include "$srcdir/getloadavg.c" | |
6268 #ifdef LDAV_PRIVILEGED | |
6269 Yowza Am I SETGID yet | |
6270 #endif | |
6271 EOF | |
6272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6273 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
6274 rm -rf conftest* | |
6275 ac_cv_func_getloadavg_setgid=yes | |
6276 else | |
6277 rm -rf conftest* | |
6278 ac_cv_func_getloadavg_setgid=no | |
6279 fi | |
6280 rm -f conftest* | |
6281 | |
6282 fi | |
6283 | |
6284 echo "$ac_t""$ac_cv_func_getloadavg_setgid" 1>&6 | |
6285 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6286 NEED_SETGID=true; cat >> confdefs.h <<\EOF | |
6287 #define GETLOADAVG_PRIVILEGED 1 | |
6288 EOF | |
6289 | |
6290 else | |
6291 NEED_SETGID=false | |
6292 fi | |
6293 | |
6294 if test $ac_cv_func_getloadavg_setgid = yes; then | |
6295 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | |
6296 echo "configure:6297: checking group of /dev/kmem" >&5 | |
6297 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | |
6298 echo $ac_n "(cached) $ac_c" 1>&6 | |
6299 else | |
6300 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
6301 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
6302 # If we got an error (system does not support symlinks), try without -L. | |
6303 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
6304 ac_cv_group_kmem=`echo $ac_ls_output \ | |
6305 | sed -ne 's/[ ][ ]*/ /g; | |
6306 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
6307 / /s/.* //;p;'` | |
6308 | |
6309 fi | |
6310 | |
6311 echo "$ac_t""$ac_cv_group_kmem" 1>&6 | |
6312 KMEM_GROUP=$ac_cv_group_kmem | |
6313 fi | |
6314 | |
6315 | |
5448 # Check this now, so that we will NOT find the above functions in ncurses. | 6316 # Check this now, so that we will NOT find the above functions in ncurses. |
5449 # That is because we have not set up to link ncurses in lib-src. | 6317 # That is because we have not set up to link ncurses in lib-src. |
5450 # It's better to believe a function is not available | 6318 # It's better to believe a function is not available |
5451 # than to expect to find it in ncurses. | 6319 # than to expect to find it in ncurses. |
5452 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 6320 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
5453 echo "configure:5454: checking for tparm in -lncurses" >&5 | 6321 echo "configure:6322: checking for tparm in -lncurses" >&5 |
5454 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 6322 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
5455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5456 echo $ac_n "(cached) $ac_c" 1>&6 | 6324 echo $ac_n "(cached) $ac_c" 1>&6 |
5457 else | 6325 else |
5458 ac_save_LIBS="$LIBS" | 6326 ac_save_LIBS="$LIBS" |
5459 LIBS="-lncurses $LIBS" | 6327 LIBS="-lncurses $LIBS" |
5460 cat > conftest.$ac_ext <<EOF | 6328 cat > conftest.$ac_ext <<EOF |
5461 #line 5462 "configure" | 6329 #line 6330 "configure" |
5462 #include "confdefs.h" | 6330 #include "confdefs.h" |
5463 /* Override any gcc2 internal prototype to avoid an error. */ | 6331 /* Override any gcc2 internal prototype to avoid an error. */ |
5464 /* We use char because int might match the return type of a gcc2 | 6332 /* We use char because int might match the return type of a gcc2 |
5465 builtin and then its argument prototype would still apply. */ | 6333 builtin and then its argument prototype would still apply. */ |
5466 char tparm(); | 6334 char tparm(); |
5467 | 6335 |
5468 int main() { | 6336 int main() { |
5469 tparm() | 6337 tparm() |
5470 ; return 0; } | 6338 ; return 0; } |
5471 EOF | 6339 EOF |
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6340 if { (eval echo configure:6341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5473 rm -rf conftest* | 6341 rm -rf conftest* |
5474 eval "ac_cv_lib_$ac_lib_var=yes" | 6342 eval "ac_cv_lib_$ac_lib_var=yes" |
5475 else | 6343 else |
5476 echo "configure: failed program was:" >&5 | 6344 echo "configure: failed program was:" >&5 |
5477 cat conftest.$ac_ext >&5 | 6345 cat conftest.$ac_ext >&5 |
5498 | 6366 |
5499 | 6367 |
5500 # These tell us which Kerberos-related libraries to use. | 6368 # These tell us which Kerberos-related libraries to use. |
5501 if test "${with_kerberos+set}" = set; then | 6369 if test "${with_kerberos+set}" = set; then |
5502 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 6370 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
5503 echo "configure:5504: checking for com_err in -lcom_err" >&5 | 6371 echo "configure:6372: checking for com_err in -lcom_err" >&5 |
5504 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 6372 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
5505 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5506 echo $ac_n "(cached) $ac_c" 1>&6 | 6374 echo $ac_n "(cached) $ac_c" 1>&6 |
5507 else | 6375 else |
5508 ac_save_LIBS="$LIBS" | 6376 ac_save_LIBS="$LIBS" |
5509 LIBS="-lcom_err $LIBS" | 6377 LIBS="-lcom_err $LIBS" |
5510 cat > conftest.$ac_ext <<EOF | 6378 cat > conftest.$ac_ext <<EOF |
5511 #line 5512 "configure" | 6379 #line 6380 "configure" |
5512 #include "confdefs.h" | 6380 #include "confdefs.h" |
5513 /* Override any gcc2 internal prototype to avoid an error. */ | 6381 /* Override any gcc2 internal prototype to avoid an error. */ |
5514 /* We use char because int might match the return type of a gcc2 | 6382 /* We use char because int might match the return type of a gcc2 |
5515 builtin and then its argument prototype would still apply. */ | 6383 builtin and then its argument prototype would still apply. */ |
5516 char com_err(); | 6384 char com_err(); |
5517 | 6385 |
5518 int main() { | 6386 int main() { |
5519 com_err() | 6387 com_err() |
5520 ; return 0; } | 6388 ; return 0; } |
5521 EOF | 6389 EOF |
5522 if { (eval echo configure:5523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6390 if { (eval echo configure:6391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5523 rm -rf conftest* | 6391 rm -rf conftest* |
5524 eval "ac_cv_lib_$ac_lib_var=yes" | 6392 eval "ac_cv_lib_$ac_lib_var=yes" |
5525 else | 6393 else |
5526 echo "configure: failed program was:" >&5 | 6394 echo "configure: failed program was:" >&5 |
5527 cat conftest.$ac_ext >&5 | 6395 cat conftest.$ac_ext >&5 |
5545 else | 6413 else |
5546 echo "$ac_t""no" 1>&6 | 6414 echo "$ac_t""no" 1>&6 |
5547 fi | 6415 fi |
5548 | 6416 |
5549 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 6417 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
5550 echo "configure:5551: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 6418 echo "configure:6419: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
5551 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 6419 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6420 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5553 echo $ac_n "(cached) $ac_c" 1>&6 | 6421 echo $ac_n "(cached) $ac_c" 1>&6 |
5554 else | 6422 else |
5555 ac_save_LIBS="$LIBS" | 6423 ac_save_LIBS="$LIBS" |
5556 LIBS="-lk5crypto $LIBS" | 6424 LIBS="-lk5crypto $LIBS" |
5557 cat > conftest.$ac_ext <<EOF | 6425 cat > conftest.$ac_ext <<EOF |
5558 #line 5559 "configure" | 6426 #line 6427 "configure" |
5559 #include "confdefs.h" | 6427 #include "confdefs.h" |
5560 /* Override any gcc2 internal prototype to avoid an error. */ | 6428 /* Override any gcc2 internal prototype to avoid an error. */ |
5561 /* We use char because int might match the return type of a gcc2 | 6429 /* We use char because int might match the return type of a gcc2 |
5562 builtin and then its argument prototype would still apply. */ | 6430 builtin and then its argument prototype would still apply. */ |
5563 char mit_des_cbc_encrypt(); | 6431 char mit_des_cbc_encrypt(); |
5564 | 6432 |
5565 int main() { | 6433 int main() { |
5566 mit_des_cbc_encrypt() | 6434 mit_des_cbc_encrypt() |
5567 ; return 0; } | 6435 ; return 0; } |
5568 EOF | 6436 EOF |
5569 if { (eval echo configure:5570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6437 if { (eval echo configure:6438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5570 rm -rf conftest* | 6438 rm -rf conftest* |
5571 eval "ac_cv_lib_$ac_lib_var=yes" | 6439 eval "ac_cv_lib_$ac_lib_var=yes" |
5572 else | 6440 else |
5573 echo "configure: failed program was:" >&5 | 6441 echo "configure: failed program was:" >&5 |
5574 cat conftest.$ac_ext >&5 | 6442 cat conftest.$ac_ext >&5 |
5592 else | 6460 else |
5593 echo "$ac_t""no" 1>&6 | 6461 echo "$ac_t""no" 1>&6 |
5594 fi | 6462 fi |
5595 | 6463 |
5596 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 6464 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
5597 echo "configure:5598: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 6465 echo "configure:6466: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
5598 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 6466 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5600 echo $ac_n "(cached) $ac_c" 1>&6 | 6468 echo $ac_n "(cached) $ac_c" 1>&6 |
5601 else | 6469 else |
5602 ac_save_LIBS="$LIBS" | 6470 ac_save_LIBS="$LIBS" |
5603 LIBS="-lcrypto $LIBS" | 6471 LIBS="-lcrypto $LIBS" |
5604 cat > conftest.$ac_ext <<EOF | 6472 cat > conftest.$ac_ext <<EOF |
5605 #line 5606 "configure" | 6473 #line 6474 "configure" |
5606 #include "confdefs.h" | 6474 #include "confdefs.h" |
5607 /* Override any gcc2 internal prototype to avoid an error. */ | 6475 /* Override any gcc2 internal prototype to avoid an error. */ |
5608 /* We use char because int might match the return type of a gcc2 | 6476 /* We use char because int might match the return type of a gcc2 |
5609 builtin and then its argument prototype would still apply. */ | 6477 builtin and then its argument prototype would still apply. */ |
5610 char mit_des_cbc_encrypt(); | 6478 char mit_des_cbc_encrypt(); |
5611 | 6479 |
5612 int main() { | 6480 int main() { |
5613 mit_des_cbc_encrypt() | 6481 mit_des_cbc_encrypt() |
5614 ; return 0; } | 6482 ; return 0; } |
5615 EOF | 6483 EOF |
5616 if { (eval echo configure:5617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6484 if { (eval echo configure:6485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5617 rm -rf conftest* | 6485 rm -rf conftest* |
5618 eval "ac_cv_lib_$ac_lib_var=yes" | 6486 eval "ac_cv_lib_$ac_lib_var=yes" |
5619 else | 6487 else |
5620 echo "configure: failed program was:" >&5 | 6488 echo "configure: failed program was:" >&5 |
5621 cat conftest.$ac_ext >&5 | 6489 cat conftest.$ac_ext >&5 |
5639 else | 6507 else |
5640 echo "$ac_t""no" 1>&6 | 6508 echo "$ac_t""no" 1>&6 |
5641 fi | 6509 fi |
5642 | 6510 |
5643 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 6511 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
5644 echo "configure:5645: checking for krb5_init_context in -lkrb5" >&5 | 6512 echo "configure:6513: checking for krb5_init_context in -lkrb5" >&5 |
5645 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 6513 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
5646 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6514 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5647 echo $ac_n "(cached) $ac_c" 1>&6 | 6515 echo $ac_n "(cached) $ac_c" 1>&6 |
5648 else | 6516 else |
5649 ac_save_LIBS="$LIBS" | 6517 ac_save_LIBS="$LIBS" |
5650 LIBS="-lkrb5 $LIBS" | 6518 LIBS="-lkrb5 $LIBS" |
5651 cat > conftest.$ac_ext <<EOF | 6519 cat > conftest.$ac_ext <<EOF |
5652 #line 5653 "configure" | 6520 #line 6521 "configure" |
5653 #include "confdefs.h" | 6521 #include "confdefs.h" |
5654 /* Override any gcc2 internal prototype to avoid an error. */ | 6522 /* Override any gcc2 internal prototype to avoid an error. */ |
5655 /* We use char because int might match the return type of a gcc2 | 6523 /* We use char because int might match the return type of a gcc2 |
5656 builtin and then its argument prototype would still apply. */ | 6524 builtin and then its argument prototype would still apply. */ |
5657 char krb5_init_context(); | 6525 char krb5_init_context(); |
5658 | 6526 |
5659 int main() { | 6527 int main() { |
5660 krb5_init_context() | 6528 krb5_init_context() |
5661 ; return 0; } | 6529 ; return 0; } |
5662 EOF | 6530 EOF |
5663 if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6531 if { (eval echo configure:6532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5664 rm -rf conftest* | 6532 rm -rf conftest* |
5665 eval "ac_cv_lib_$ac_lib_var=yes" | 6533 eval "ac_cv_lib_$ac_lib_var=yes" |
5666 else | 6534 else |
5667 echo "configure: failed program was:" >&5 | 6535 echo "configure: failed program was:" >&5 |
5668 cat conftest.$ac_ext >&5 | 6536 cat conftest.$ac_ext >&5 |
5687 echo "$ac_t""no" 1>&6 | 6555 echo "$ac_t""no" 1>&6 |
5688 fi | 6556 fi |
5689 | 6557 |
5690 if test "${with_kerberos5+set}" != set; then | 6558 if test "${with_kerberos5+set}" != set; then |
5691 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 6559 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
5692 echo "configure:5693: checking for des_cbc_encrypt in -ldes425" >&5 | 6560 echo "configure:6561: checking for des_cbc_encrypt in -ldes425" >&5 |
5693 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 6561 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5695 echo $ac_n "(cached) $ac_c" 1>&6 | 6563 echo $ac_n "(cached) $ac_c" 1>&6 |
5696 else | 6564 else |
5697 ac_save_LIBS="$LIBS" | 6565 ac_save_LIBS="$LIBS" |
5698 LIBS="-ldes425 $LIBS" | 6566 LIBS="-ldes425 $LIBS" |
5699 cat > conftest.$ac_ext <<EOF | 6567 cat > conftest.$ac_ext <<EOF |
5700 #line 5701 "configure" | 6568 #line 6569 "configure" |
5701 #include "confdefs.h" | 6569 #include "confdefs.h" |
5702 /* Override any gcc2 internal prototype to avoid an error. */ | 6570 /* Override any gcc2 internal prototype to avoid an error. */ |
5703 /* We use char because int might match the return type of a gcc2 | 6571 /* We use char because int might match the return type of a gcc2 |
5704 builtin and then its argument prototype would still apply. */ | 6572 builtin and then its argument prototype would still apply. */ |
5705 char des_cbc_encrypt(); | 6573 char des_cbc_encrypt(); |
5706 | 6574 |
5707 int main() { | 6575 int main() { |
5708 des_cbc_encrypt() | 6576 des_cbc_encrypt() |
5709 ; return 0; } | 6577 ; return 0; } |
5710 EOF | 6578 EOF |
5711 if { (eval echo configure:5712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6579 if { (eval echo configure:6580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5712 rm -rf conftest* | 6580 rm -rf conftest* |
5713 eval "ac_cv_lib_$ac_lib_var=yes" | 6581 eval "ac_cv_lib_$ac_lib_var=yes" |
5714 else | 6582 else |
5715 echo "configure: failed program was:" >&5 | 6583 echo "configure: failed program was:" >&5 |
5716 cat conftest.$ac_ext >&5 | 6584 cat conftest.$ac_ext >&5 |
5732 LIBS="-ldes425 $LIBS" | 6600 LIBS="-ldes425 $LIBS" |
5733 | 6601 |
5734 else | 6602 else |
5735 echo "$ac_t""no" 1>&6 | 6603 echo "$ac_t""no" 1>&6 |
5736 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 6604 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
5737 echo "configure:5738: checking for des_cbc_encrypt in -ldes" >&5 | 6605 echo "configure:6606: checking for des_cbc_encrypt in -ldes" >&5 |
5738 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 6606 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
5739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5740 echo $ac_n "(cached) $ac_c" 1>&6 | 6608 echo $ac_n "(cached) $ac_c" 1>&6 |
5741 else | 6609 else |
5742 ac_save_LIBS="$LIBS" | 6610 ac_save_LIBS="$LIBS" |
5743 LIBS="-ldes $LIBS" | 6611 LIBS="-ldes $LIBS" |
5744 cat > conftest.$ac_ext <<EOF | 6612 cat > conftest.$ac_ext <<EOF |
5745 #line 5746 "configure" | 6613 #line 6614 "configure" |
5746 #include "confdefs.h" | 6614 #include "confdefs.h" |
5747 /* Override any gcc2 internal prototype to avoid an error. */ | 6615 /* Override any gcc2 internal prototype to avoid an error. */ |
5748 /* We use char because int might match the return type of a gcc2 | 6616 /* We use char because int might match the return type of a gcc2 |
5749 builtin and then its argument prototype would still apply. */ | 6617 builtin and then its argument prototype would still apply. */ |
5750 char des_cbc_encrypt(); | 6618 char des_cbc_encrypt(); |
5751 | 6619 |
5752 int main() { | 6620 int main() { |
5753 des_cbc_encrypt() | 6621 des_cbc_encrypt() |
5754 ; return 0; } | 6622 ; return 0; } |
5755 EOF | 6623 EOF |
5756 if { (eval echo configure:5757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5757 rm -rf conftest* | 6625 rm -rf conftest* |
5758 eval "ac_cv_lib_$ac_lib_var=yes" | 6626 eval "ac_cv_lib_$ac_lib_var=yes" |
5759 else | 6627 else |
5760 echo "configure: failed program was:" >&5 | 6628 echo "configure: failed program was:" >&5 |
5761 cat conftest.$ac_ext >&5 | 6629 cat conftest.$ac_ext >&5 |
5781 fi | 6649 fi |
5782 | 6650 |
5783 fi | 6651 fi |
5784 | 6652 |
5785 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 6653 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
5786 echo "configure:5787: checking for krb_get_cred in -lkrb4" >&5 | 6654 echo "configure:6655: checking for krb_get_cred in -lkrb4" >&5 |
5787 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 6655 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
5788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5789 echo $ac_n "(cached) $ac_c" 1>&6 | 6657 echo $ac_n "(cached) $ac_c" 1>&6 |
5790 else | 6658 else |
5791 ac_save_LIBS="$LIBS" | 6659 ac_save_LIBS="$LIBS" |
5792 LIBS="-lkrb4 $LIBS" | 6660 LIBS="-lkrb4 $LIBS" |
5793 cat > conftest.$ac_ext <<EOF | 6661 cat > conftest.$ac_ext <<EOF |
5794 #line 5795 "configure" | 6662 #line 6663 "configure" |
5795 #include "confdefs.h" | 6663 #include "confdefs.h" |
5796 /* Override any gcc2 internal prototype to avoid an error. */ | 6664 /* Override any gcc2 internal prototype to avoid an error. */ |
5797 /* We use char because int might match the return type of a gcc2 | 6665 /* We use char because int might match the return type of a gcc2 |
5798 builtin and then its argument prototype would still apply. */ | 6666 builtin and then its argument prototype would still apply. */ |
5799 char krb_get_cred(); | 6667 char krb_get_cred(); |
5800 | 6668 |
5801 int main() { | 6669 int main() { |
5802 krb_get_cred() | 6670 krb_get_cred() |
5803 ; return 0; } | 6671 ; return 0; } |
5804 EOF | 6672 EOF |
5805 if { (eval echo configure:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6673 if { (eval echo configure:6674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5806 rm -rf conftest* | 6674 rm -rf conftest* |
5807 eval "ac_cv_lib_$ac_lib_var=yes" | 6675 eval "ac_cv_lib_$ac_lib_var=yes" |
5808 else | 6676 else |
5809 echo "configure: failed program was:" >&5 | 6677 echo "configure: failed program was:" >&5 |
5810 cat conftest.$ac_ext >&5 | 6678 cat conftest.$ac_ext >&5 |
5826 LIBS="-lkrb4 $LIBS" | 6694 LIBS="-lkrb4 $LIBS" |
5827 | 6695 |
5828 else | 6696 else |
5829 echo "$ac_t""no" 1>&6 | 6697 echo "$ac_t""no" 1>&6 |
5830 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 6698 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
5831 echo "configure:5832: checking for krb_get_cred in -lkrb" >&5 | 6699 echo "configure:6700: checking for krb_get_cred in -lkrb" >&5 |
5832 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 6700 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
5833 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6701 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5834 echo $ac_n "(cached) $ac_c" 1>&6 | 6702 echo $ac_n "(cached) $ac_c" 1>&6 |
5835 else | 6703 else |
5836 ac_save_LIBS="$LIBS" | 6704 ac_save_LIBS="$LIBS" |
5837 LIBS="-lkrb $LIBS" | 6705 LIBS="-lkrb $LIBS" |
5838 cat > conftest.$ac_ext <<EOF | 6706 cat > conftest.$ac_ext <<EOF |
5839 #line 5840 "configure" | 6707 #line 6708 "configure" |
5840 #include "confdefs.h" | 6708 #include "confdefs.h" |
5841 /* Override any gcc2 internal prototype to avoid an error. */ | 6709 /* Override any gcc2 internal prototype to avoid an error. */ |
5842 /* We use char because int might match the return type of a gcc2 | 6710 /* We use char because int might match the return type of a gcc2 |
5843 builtin and then its argument prototype would still apply. */ | 6711 builtin and then its argument prototype would still apply. */ |
5844 char krb_get_cred(); | 6712 char krb_get_cred(); |
5845 | 6713 |
5846 int main() { | 6714 int main() { |
5847 krb_get_cred() | 6715 krb_get_cred() |
5848 ; return 0; } | 6716 ; return 0; } |
5849 EOF | 6717 EOF |
5850 if { (eval echo configure:5851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5851 rm -rf conftest* | 6719 rm -rf conftest* |
5852 eval "ac_cv_lib_$ac_lib_var=yes" | 6720 eval "ac_cv_lib_$ac_lib_var=yes" |
5853 else | 6721 else |
5854 echo "configure: failed program was:" >&5 | 6722 echo "configure: failed program was:" >&5 |
5855 cat conftest.$ac_ext >&5 | 6723 cat conftest.$ac_ext >&5 |
5881 if test "${with_kerberos5+set}" = set; then | 6749 if test "${with_kerberos5+set}" = set; then |
5882 for ac_hdr in krb5.h | 6750 for ac_hdr in krb5.h |
5883 do | 6751 do |
5884 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5885 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5886 echo "configure:5887: checking for $ac_hdr" >&5 | 6754 echo "configure:6755: checking for $ac_hdr" >&5 |
5887 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5888 echo $ac_n "(cached) $ac_c" 1>&6 | 6756 echo $ac_n "(cached) $ac_c" 1>&6 |
5889 else | 6757 else |
5890 cat > conftest.$ac_ext <<EOF | 6758 cat > conftest.$ac_ext <<EOF |
5891 #line 5892 "configure" | 6759 #line 6760 "configure" |
5892 #include "confdefs.h" | 6760 #include "confdefs.h" |
5893 #include <$ac_hdr> | 6761 #include <$ac_hdr> |
5894 EOF | 6762 EOF |
5895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5896 { (eval echo configure:5897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6764 { (eval echo configure:6765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5898 if test -z "$ac_err"; then | 6766 if test -z "$ac_err"; then |
5899 rm -rf conftest* | 6767 rm -rf conftest* |
5900 eval "ac_cv_header_$ac_safe=yes" | 6768 eval "ac_cv_header_$ac_safe=yes" |
5901 else | 6769 else |
5922 else | 6790 else |
5923 for ac_hdr in des.h | 6791 for ac_hdr in des.h |
5924 do | 6792 do |
5925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5927 echo "configure:5928: checking for $ac_hdr" >&5 | 6795 echo "configure:6796: checking for $ac_hdr" >&5 |
5928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5929 echo $ac_n "(cached) $ac_c" 1>&6 | 6797 echo $ac_n "(cached) $ac_c" 1>&6 |
5930 else | 6798 else |
5931 cat > conftest.$ac_ext <<EOF | 6799 cat > conftest.$ac_ext <<EOF |
5932 #line 5933 "configure" | 6800 #line 6801 "configure" |
5933 #include "confdefs.h" | 6801 #include "confdefs.h" |
5934 #include <$ac_hdr> | 6802 #include <$ac_hdr> |
5935 EOF | 6803 EOF |
5936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5937 { (eval echo configure:5938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6805 { (eval echo configure:6806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5939 if test -z "$ac_err"; then | 6807 if test -z "$ac_err"; then |
5940 rm -rf conftest* | 6808 rm -rf conftest* |
5941 eval "ac_cv_header_$ac_safe=yes" | 6809 eval "ac_cv_header_$ac_safe=yes" |
5942 else | 6810 else |
5959 echo "$ac_t""no" 1>&6 | 6827 echo "$ac_t""no" 1>&6 |
5960 for ac_hdr in kerberosIV/des.h | 6828 for ac_hdr in kerberosIV/des.h |
5961 do | 6829 do |
5962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6830 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
5963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
5964 echo "configure:5965: checking for $ac_hdr" >&5 | 6832 echo "configure:6833: checking for $ac_hdr" >&5 |
5965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5966 echo $ac_n "(cached) $ac_c" 1>&6 | 6834 echo $ac_n "(cached) $ac_c" 1>&6 |
5967 else | 6835 else |
5968 cat > conftest.$ac_ext <<EOF | 6836 cat > conftest.$ac_ext <<EOF |
5969 #line 5970 "configure" | 6837 #line 6838 "configure" |
5970 #include "confdefs.h" | 6838 #include "confdefs.h" |
5971 #include <$ac_hdr> | 6839 #include <$ac_hdr> |
5972 EOF | 6840 EOF |
5973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5974 { (eval echo configure:5975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6842 { (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5976 if test -z "$ac_err"; then | 6844 if test -z "$ac_err"; then |
5977 rm -rf conftest* | 6845 rm -rf conftest* |
5978 eval "ac_cv_header_$ac_safe=yes" | 6846 eval "ac_cv_header_$ac_safe=yes" |
5979 else | 6847 else |
5996 echo "$ac_t""no" 1>&6 | 6864 echo "$ac_t""no" 1>&6 |
5997 for ac_hdr in kerberos/des.h | 6865 for ac_hdr in kerberos/des.h |
5998 do | 6866 do |
5999 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6000 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6001 echo "configure:6002: checking for $ac_hdr" >&5 | 6869 echo "configure:6870: checking for $ac_hdr" >&5 |
6002 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6870 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6003 echo $ac_n "(cached) $ac_c" 1>&6 | 6871 echo $ac_n "(cached) $ac_c" 1>&6 |
6004 else | 6872 else |
6005 cat > conftest.$ac_ext <<EOF | 6873 cat > conftest.$ac_ext <<EOF |
6006 #line 6007 "configure" | 6874 #line 6875 "configure" |
6007 #include "confdefs.h" | 6875 #include "confdefs.h" |
6008 #include <$ac_hdr> | 6876 #include <$ac_hdr> |
6009 EOF | 6877 EOF |
6010 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6011 { (eval echo configure:6012: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6879 { (eval echo configure:6880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6012 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6013 if test -z "$ac_err"; then | 6881 if test -z "$ac_err"; then |
6014 rm -rf conftest* | 6882 rm -rf conftest* |
6015 eval "ac_cv_header_$ac_safe=yes" | 6883 eval "ac_cv_header_$ac_safe=yes" |
6016 else | 6884 else |
6042 | 6910 |
6043 for ac_hdr in krb.h | 6911 for ac_hdr in krb.h |
6044 do | 6912 do |
6045 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6046 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6047 echo "configure:6048: checking for $ac_hdr" >&5 | 6915 echo "configure:6916: checking for $ac_hdr" >&5 |
6048 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6049 echo $ac_n "(cached) $ac_c" 1>&6 | 6917 echo $ac_n "(cached) $ac_c" 1>&6 |
6050 else | 6918 else |
6051 cat > conftest.$ac_ext <<EOF | 6919 cat > conftest.$ac_ext <<EOF |
6052 #line 6053 "configure" | 6920 #line 6921 "configure" |
6053 #include "confdefs.h" | 6921 #include "confdefs.h" |
6054 #include <$ac_hdr> | 6922 #include <$ac_hdr> |
6055 EOF | 6923 EOF |
6056 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6057 { (eval echo configure:6058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6925 { (eval echo configure:6926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6058 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6059 if test -z "$ac_err"; then | 6927 if test -z "$ac_err"; then |
6060 rm -rf conftest* | 6928 rm -rf conftest* |
6061 eval "ac_cv_header_$ac_safe=yes" | 6929 eval "ac_cv_header_$ac_safe=yes" |
6062 else | 6930 else |
6079 echo "$ac_t""no" 1>&6 | 6947 echo "$ac_t""no" 1>&6 |
6080 for ac_hdr in kerberosIV/krb.h | 6948 for ac_hdr in kerberosIV/krb.h |
6081 do | 6949 do |
6082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6950 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6084 echo "configure:6085: checking for $ac_hdr" >&5 | 6952 echo "configure:6953: checking for $ac_hdr" >&5 |
6085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6086 echo $ac_n "(cached) $ac_c" 1>&6 | 6954 echo $ac_n "(cached) $ac_c" 1>&6 |
6087 else | 6955 else |
6088 cat > conftest.$ac_ext <<EOF | 6956 cat > conftest.$ac_ext <<EOF |
6089 #line 6090 "configure" | 6957 #line 6958 "configure" |
6090 #include "confdefs.h" | 6958 #include "confdefs.h" |
6091 #include <$ac_hdr> | 6959 #include <$ac_hdr> |
6092 EOF | 6960 EOF |
6093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6094 { (eval echo configure:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6962 { (eval echo configure:6963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6096 if test -z "$ac_err"; then | 6964 if test -z "$ac_err"; then |
6097 rm -rf conftest* | 6965 rm -rf conftest* |
6098 eval "ac_cv_header_$ac_safe=yes" | 6966 eval "ac_cv_header_$ac_safe=yes" |
6099 else | 6967 else |
6116 echo "$ac_t""no" 1>&6 | 6984 echo "$ac_t""no" 1>&6 |
6117 for ac_hdr in kerberos/krb.h | 6985 for ac_hdr in kerberos/krb.h |
6118 do | 6986 do |
6119 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6120 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6121 echo "configure:6122: checking for $ac_hdr" >&5 | 6989 echo "configure:6990: checking for $ac_hdr" >&5 |
6122 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6123 echo $ac_n "(cached) $ac_c" 1>&6 | 6991 echo $ac_n "(cached) $ac_c" 1>&6 |
6124 else | 6992 else |
6125 cat > conftest.$ac_ext <<EOF | 6993 cat > conftest.$ac_ext <<EOF |
6126 #line 6127 "configure" | 6994 #line 6995 "configure" |
6127 #include "confdefs.h" | 6995 #include "confdefs.h" |
6128 #include <$ac_hdr> | 6996 #include <$ac_hdr> |
6129 EOF | 6997 EOF |
6130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6131 { (eval echo configure:6132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6999 { (eval echo configure:7000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6133 if test -z "$ac_err"; then | 7001 if test -z "$ac_err"; then |
6134 rm -rf conftest* | 7002 rm -rf conftest* |
6135 eval "ac_cv_header_$ac_safe=yes" | 7003 eval "ac_cv_header_$ac_safe=yes" |
6136 else | 7004 else |
6163 fi | 7031 fi |
6164 for ac_hdr in com_err.h | 7032 for ac_hdr in com_err.h |
6165 do | 7033 do |
6166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6168 echo "configure:6169: checking for $ac_hdr" >&5 | 7036 echo "configure:7037: checking for $ac_hdr" >&5 |
6169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7037 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6170 echo $ac_n "(cached) $ac_c" 1>&6 | 7038 echo $ac_n "(cached) $ac_c" 1>&6 |
6171 else | 7039 else |
6172 cat > conftest.$ac_ext <<EOF | 7040 cat > conftest.$ac_ext <<EOF |
6173 #line 6174 "configure" | 7041 #line 7042 "configure" |
6174 #include "confdefs.h" | 7042 #include "confdefs.h" |
6175 #include <$ac_hdr> | 7043 #include <$ac_hdr> |
6176 EOF | 7044 EOF |
6177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7045 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6178 { (eval echo configure:6179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7046 { (eval echo configure:7047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7047 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6180 if test -z "$ac_err"; then | 7048 if test -z "$ac_err"; then |
6181 rm -rf conftest* | 7049 rm -rf conftest* |
6182 eval "ac_cv_header_$ac_safe=yes" | 7050 eval "ac_cv_header_$ac_safe=yes" |
6183 else | 7051 else |
6204 fi | 7072 fi |
6205 | 7073 |
6206 # Solaris requires -lintl if you want strerror (which calls dgettext) | 7074 # Solaris requires -lintl if you want strerror (which calls dgettext) |
6207 # to return localized messages. | 7075 # to return localized messages. |
6208 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 7076 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
6209 echo "configure:6210: checking for dgettext in -lintl" >&5 | 7077 echo "configure:7078: checking for dgettext in -lintl" >&5 |
6210 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 7078 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
6211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7079 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6212 echo $ac_n "(cached) $ac_c" 1>&6 | 7080 echo $ac_n "(cached) $ac_c" 1>&6 |
6213 else | 7081 else |
6214 ac_save_LIBS="$LIBS" | 7082 ac_save_LIBS="$LIBS" |
6215 LIBS="-lintl $LIBS" | 7083 LIBS="-lintl $LIBS" |
6216 cat > conftest.$ac_ext <<EOF | 7084 cat > conftest.$ac_ext <<EOF |
6217 #line 6218 "configure" | 7085 #line 7086 "configure" |
6218 #include "confdefs.h" | 7086 #include "confdefs.h" |
6219 /* Override any gcc2 internal prototype to avoid an error. */ | 7087 /* Override any gcc2 internal prototype to avoid an error. */ |
6220 /* We use char because int might match the return type of a gcc2 | 7088 /* We use char because int might match the return type of a gcc2 |
6221 builtin and then its argument prototype would still apply. */ | 7089 builtin and then its argument prototype would still apply. */ |
6222 char dgettext(); | 7090 char dgettext(); |
6223 | 7091 |
6224 int main() { | 7092 int main() { |
6225 dgettext() | 7093 dgettext() |
6226 ; return 0; } | 7094 ; return 0; } |
6227 EOF | 7095 EOF |
6228 if { (eval echo configure:6229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6229 rm -rf conftest* | 7097 rm -rf conftest* |
6230 eval "ac_cv_lib_$ac_lib_var=yes" | 7098 eval "ac_cv_lib_$ac_lib_var=yes" |
6231 else | 7099 else |
6232 echo "configure: failed program was:" >&5 | 7100 echo "configure: failed program was:" >&5 |
6233 cat conftest.$ac_ext >&5 | 7101 cat conftest.$ac_ext >&5 |
6252 echo "$ac_t""no" 1>&6 | 7120 echo "$ac_t""no" 1>&6 |
6253 fi | 7121 fi |
6254 | 7122 |
6255 | 7123 |
6256 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 7124 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
6257 echo "configure:6258: checking whether localtime caches TZ" >&5 | 7125 echo "configure:7126: checking whether localtime caches TZ" >&5 |
6258 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 7126 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
6259 echo $ac_n "(cached) $ac_c" 1>&6 | 7127 echo $ac_n "(cached) $ac_c" 1>&6 |
6260 else | 7128 else |
6261 if test x$ac_cv_func_tzset = xyes; then | 7129 if test x$ac_cv_func_tzset = xyes; then |
6262 if test "$cross_compiling" = yes; then | 7130 if test "$cross_compiling" = yes; then |
6263 # If we have tzset, assume the worst when cross-compiling. | 7131 # If we have tzset, assume the worst when cross-compiling. |
6264 emacs_cv_localtime_cache=yes | 7132 emacs_cv_localtime_cache=yes |
6265 else | 7133 else |
6266 cat > conftest.$ac_ext <<EOF | 7134 cat > conftest.$ac_ext <<EOF |
6267 #line 6268 "configure" | 7135 #line 7136 "configure" |
6268 #include "confdefs.h" | 7136 #include "confdefs.h" |
6269 #include <time.h> | 7137 #include <time.h> |
6270 extern char **environ; | 7138 extern char **environ; |
6271 unset_TZ () | 7139 unset_TZ () |
6272 { | 7140 { |
6294 if (localtime (&now)->tm_hour != hour_unset) | 7162 if (localtime (&now)->tm_hour != hour_unset) |
6295 exit (1); | 7163 exit (1); |
6296 exit (0); | 7164 exit (0); |
6297 } | 7165 } |
6298 EOF | 7166 EOF |
6299 if { (eval echo configure:6300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7167 if { (eval echo configure:7168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6300 then | 7168 then |
6301 emacs_cv_localtime_cache=no | 7169 emacs_cv_localtime_cache=no |
6302 else | 7170 else |
6303 echo "configure: failed program was:" >&5 | 7171 echo "configure: failed program was:" >&5 |
6304 cat conftest.$ac_ext >&5 | 7172 cat conftest.$ac_ext >&5 |
6322 | 7190 |
6323 fi | 7191 fi |
6324 | 7192 |
6325 if test "x$HAVE_TIMEVAL" = xyes; then | 7193 if test "x$HAVE_TIMEVAL" = xyes; then |
6326 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 7194 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
6327 echo "configure:6328: checking whether gettimeofday can accept two arguments" >&5 | 7195 echo "configure:7196: checking whether gettimeofday can accept two arguments" >&5 |
6328 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 7196 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
6329 echo $ac_n "(cached) $ac_c" 1>&6 | 7197 echo $ac_n "(cached) $ac_c" 1>&6 |
6330 else | 7198 else |
6331 cat > conftest.$ac_ext <<EOF | 7199 cat > conftest.$ac_ext <<EOF |
6332 #line 6333 "configure" | 7200 #line 7201 "configure" |
6333 #include "confdefs.h" | 7201 #include "confdefs.h" |
6334 | 7202 |
6335 #ifdef TIME_WITH_SYS_TIME | 7203 #ifdef TIME_WITH_SYS_TIME |
6336 #include <sys/time.h> | 7204 #include <sys/time.h> |
6337 #include <time.h> | 7205 #include <time.h> |
6349 struct timezone dummy; | 7217 struct timezone dummy; |
6350 gettimeofday (&time, &dummy); | 7218 gettimeofday (&time, &dummy); |
6351 | 7219 |
6352 ; return 0; } | 7220 ; return 0; } |
6353 EOF | 7221 EOF |
6354 if { (eval echo configure:6355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7222 if { (eval echo configure:7223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6355 rm -rf conftest* | 7223 rm -rf conftest* |
6356 emacs_cv_gettimeofday_two_arguments=yes | 7224 emacs_cv_gettimeofday_two_arguments=yes |
6357 else | 7225 else |
6358 echo "configure: failed program was:" >&5 | 7226 echo "configure: failed program was:" >&5 |
6359 cat conftest.$ac_ext >&5 | 7227 cat conftest.$ac_ext >&5 |
6372 fi | 7240 fi |
6373 fi | 7241 fi |
6374 | 7242 |
6375 ok_so_far=yes | 7243 ok_so_far=yes |
6376 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 7244 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
6377 echo "configure:6378: checking for socket" >&5 | 7245 echo "configure:7246: checking for socket" >&5 |
6378 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 7246 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
6379 echo $ac_n "(cached) $ac_c" 1>&6 | 7247 echo $ac_n "(cached) $ac_c" 1>&6 |
6380 else | 7248 else |
6381 cat > conftest.$ac_ext <<EOF | 7249 cat > conftest.$ac_ext <<EOF |
6382 #line 6383 "configure" | 7250 #line 7251 "configure" |
6383 #include "confdefs.h" | 7251 #include "confdefs.h" |
6384 /* System header to define __stub macros and hopefully few prototypes, | 7252 /* System header to define __stub macros and hopefully few prototypes, |
6385 which can conflict with char socket(); below. */ | 7253 which can conflict with char socket(); below. */ |
6386 #include <assert.h> | 7254 #include <assert.h> |
6387 /* Override any gcc2 internal prototype to avoid an error. */ | 7255 /* Override any gcc2 internal prototype to avoid an error. */ |
6400 socket(); | 7268 socket(); |
6401 #endif | 7269 #endif |
6402 | 7270 |
6403 ; return 0; } | 7271 ; return 0; } |
6404 EOF | 7272 EOF |
6405 if { (eval echo configure:6406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7273 if { (eval echo configure:7274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6406 rm -rf conftest* | 7274 rm -rf conftest* |
6407 eval "ac_cv_func_socket=yes" | 7275 eval "ac_cv_func_socket=yes" |
6408 else | 7276 else |
6409 echo "configure: failed program was:" >&5 | 7277 echo "configure: failed program was:" >&5 |
6410 cat conftest.$ac_ext >&5 | 7278 cat conftest.$ac_ext >&5 |
6423 fi | 7291 fi |
6424 | 7292 |
6425 if test $ok_so_far = yes; then | 7293 if test $ok_so_far = yes; then |
6426 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 7294 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
6427 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 7295 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
6428 echo "configure:6429: checking for netinet/in.h" >&5 | 7296 echo "configure:7297: checking for netinet/in.h" >&5 |
6429 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6430 echo $ac_n "(cached) $ac_c" 1>&6 | 7298 echo $ac_n "(cached) $ac_c" 1>&6 |
6431 else | 7299 else |
6432 cat > conftest.$ac_ext <<EOF | 7300 cat > conftest.$ac_ext <<EOF |
6433 #line 6434 "configure" | 7301 #line 7302 "configure" |
6434 #include "confdefs.h" | 7302 #include "confdefs.h" |
6435 #include <netinet/in.h> | 7303 #include <netinet/in.h> |
6436 EOF | 7304 EOF |
6437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6438 { (eval echo configure:6439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7306 { (eval echo configure:7307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6440 if test -z "$ac_err"; then | 7308 if test -z "$ac_err"; then |
6441 rm -rf conftest* | 7309 rm -rf conftest* |
6442 eval "ac_cv_header_$ac_safe=yes" | 7310 eval "ac_cv_header_$ac_safe=yes" |
6443 else | 7311 else |
6459 | 7327 |
6460 fi | 7328 fi |
6461 if test $ok_so_far = yes; then | 7329 if test $ok_so_far = yes; then |
6462 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 7330 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
6463 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 7331 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
6464 echo "configure:6465: checking for arpa/inet.h" >&5 | 7332 echo "configure:7333: checking for arpa/inet.h" >&5 |
6465 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6466 echo $ac_n "(cached) $ac_c" 1>&6 | 7334 echo $ac_n "(cached) $ac_c" 1>&6 |
6467 else | 7335 else |
6468 cat > conftest.$ac_ext <<EOF | 7336 cat > conftest.$ac_ext <<EOF |
6469 #line 6470 "configure" | 7337 #line 7338 "configure" |
6470 #include "confdefs.h" | 7338 #include "confdefs.h" |
6471 #include <arpa/inet.h> | 7339 #include <arpa/inet.h> |
6472 EOF | 7340 EOF |
6473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6474 { (eval echo configure:6475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7342 { (eval echo configure:7343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6476 if test -z "$ac_err"; then | 7344 if test -z "$ac_err"; then |
6477 rm -rf conftest* | 7345 rm -rf conftest* |
6478 eval "ac_cv_header_$ac_safe=yes" | 7346 eval "ac_cv_header_$ac_safe=yes" |
6479 else | 7347 else |
6507 EOF | 7375 EOF |
6508 | 7376 |
6509 fi | 7377 fi |
6510 | 7378 |
6511 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 7379 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
6512 echo "configure:6513: checking whether system supports dynamic ptys" >&5 | 7380 echo "configure:7381: checking whether system supports dynamic ptys" >&5 |
6513 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 7381 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
6514 echo "$ac_t""yes" 1>&6 | 7382 echo "$ac_t""yes" 1>&6 |
6515 cat >> confdefs.h <<\EOF | 7383 cat >> confdefs.h <<\EOF |
6516 #define HAVE_DEV_PTMX 1 | 7384 #define HAVE_DEV_PTMX 1 |
6517 EOF | 7385 EOF |
6519 else | 7387 else |
6520 echo "$ac_t""no" 1>&6 | 7388 echo "$ac_t""no" 1>&6 |
6521 fi | 7389 fi |
6522 | 7390 |
6523 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 7391 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
6524 echo "configure:6525: checking for pid_t" >&5 | 7392 echo "configure:7393: checking for pid_t" >&5 |
6525 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 7393 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
6526 echo $ac_n "(cached) $ac_c" 1>&6 | 7394 echo $ac_n "(cached) $ac_c" 1>&6 |
6527 else | 7395 else |
6528 cat > conftest.$ac_ext <<EOF | 7396 cat > conftest.$ac_ext <<EOF |
6529 #line 6530 "configure" | 7397 #line 7398 "configure" |
6530 #include "confdefs.h" | 7398 #include "confdefs.h" |
6531 #include <sys/types.h> | 7399 #include <sys/types.h> |
6532 #if STDC_HEADERS | 7400 #if STDC_HEADERS |
6533 #include <stdlib.h> | 7401 #include <stdlib.h> |
6534 #include <stddef.h> | 7402 #include <stddef.h> |
6553 | 7421 |
6554 fi | 7422 fi |
6555 | 7423 |
6556 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 7424 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
6557 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 7425 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
6558 echo "configure:6559: checking for vfork.h" >&5 | 7426 echo "configure:7427: checking for vfork.h" >&5 |
6559 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7427 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6560 echo $ac_n "(cached) $ac_c" 1>&6 | 7428 echo $ac_n "(cached) $ac_c" 1>&6 |
6561 else | 7429 else |
6562 cat > conftest.$ac_ext <<EOF | 7430 cat > conftest.$ac_ext <<EOF |
6563 #line 6564 "configure" | 7431 #line 7432 "configure" |
6564 #include "confdefs.h" | 7432 #include "confdefs.h" |
6565 #include <vfork.h> | 7433 #include <vfork.h> |
6566 EOF | 7434 EOF |
6567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6568 { (eval echo configure:6569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7436 { (eval echo configure:7437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6570 if test -z "$ac_err"; then | 7438 if test -z "$ac_err"; then |
6571 rm -rf conftest* | 7439 rm -rf conftest* |
6572 eval "ac_cv_header_$ac_safe=yes" | 7440 eval "ac_cv_header_$ac_safe=yes" |
6573 else | 7441 else |
6588 else | 7456 else |
6589 echo "$ac_t""no" 1>&6 | 7457 echo "$ac_t""no" 1>&6 |
6590 fi | 7458 fi |
6591 | 7459 |
6592 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 7460 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
6593 echo "configure:6594: checking for working vfork" >&5 | 7461 echo "configure:7462: checking for working vfork" >&5 |
6594 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 7462 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
6595 echo $ac_n "(cached) $ac_c" 1>&6 | 7463 echo $ac_n "(cached) $ac_c" 1>&6 |
6596 else | 7464 else |
6597 if test "$cross_compiling" = yes; then | 7465 if test "$cross_compiling" = yes; then |
6598 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 7466 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
6599 echo "configure:6600: checking for vfork" >&5 | 7467 echo "configure:7468: checking for vfork" >&5 |
6600 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 7468 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
6601 echo $ac_n "(cached) $ac_c" 1>&6 | 7469 echo $ac_n "(cached) $ac_c" 1>&6 |
6602 else | 7470 else |
6603 cat > conftest.$ac_ext <<EOF | 7471 cat > conftest.$ac_ext <<EOF |
6604 #line 6605 "configure" | 7472 #line 7473 "configure" |
6605 #include "confdefs.h" | 7473 #include "confdefs.h" |
6606 /* System header to define __stub macros and hopefully few prototypes, | 7474 /* System header to define __stub macros and hopefully few prototypes, |
6607 which can conflict with char vfork(); below. */ | 7475 which can conflict with char vfork(); below. */ |
6608 #include <assert.h> | 7476 #include <assert.h> |
6609 /* Override any gcc2 internal prototype to avoid an error. */ | 7477 /* Override any gcc2 internal prototype to avoid an error. */ |
6622 vfork(); | 7490 vfork(); |
6623 #endif | 7491 #endif |
6624 | 7492 |
6625 ; return 0; } | 7493 ; return 0; } |
6626 EOF | 7494 EOF |
6627 if { (eval echo configure:6628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7495 if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6628 rm -rf conftest* | 7496 rm -rf conftest* |
6629 eval "ac_cv_func_vfork=yes" | 7497 eval "ac_cv_func_vfork=yes" |
6630 else | 7498 else |
6631 echo "configure: failed program was:" >&5 | 7499 echo "configure: failed program was:" >&5 |
6632 cat conftest.$ac_ext >&5 | 7500 cat conftest.$ac_ext >&5 |
6644 fi | 7512 fi |
6645 | 7513 |
6646 ac_cv_func_vfork_works=$ac_cv_func_vfork | 7514 ac_cv_func_vfork_works=$ac_cv_func_vfork |
6647 else | 7515 else |
6648 cat > conftest.$ac_ext <<EOF | 7516 cat > conftest.$ac_ext <<EOF |
6649 #line 6650 "configure" | 7517 #line 7518 "configure" |
6650 #include "confdefs.h" | 7518 #include "confdefs.h" |
6651 /* Thanks to Paul Eggert for this test. */ | 7519 /* Thanks to Paul Eggert for this test. */ |
6652 #include <stdio.h> | 7520 #include <stdio.h> |
6653 #include <sys/types.h> | 7521 #include <sys/types.h> |
6654 #include <sys/stat.h> | 7522 #include <sys/stat.h> |
6739 || fstat(fileno(stdout), &st) != 0 | 7607 || fstat(fileno(stdout), &st) != 0 |
6740 ); | 7608 ); |
6741 } | 7609 } |
6742 } | 7610 } |
6743 EOF | 7611 EOF |
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 7612 if { (eval echo configure:7613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6745 then | 7613 then |
6746 ac_cv_func_vfork_works=yes | 7614 ac_cv_func_vfork_works=yes |
6747 else | 7615 else |
6748 echo "configure: failed program was:" >&5 | 7616 echo "configure: failed program was:" >&5 |
6749 cat conftest.$ac_ext >&5 | 7617 cat conftest.$ac_ext >&5 |
7070 s%@YACC@%$YACC%g | 7938 s%@YACC@%$YACC%g |
7071 s%@RANLIB@%$RANLIB%g | 7939 s%@RANLIB@%$RANLIB%g |
7072 s%@SET_MAKE@%$SET_MAKE%g | 7940 s%@SET_MAKE@%$SET_MAKE%g |
7073 s%@ALLOCA@%$ALLOCA%g | 7941 s%@ALLOCA@%$ALLOCA%g |
7074 s%@liblockfile@%$liblockfile%g | 7942 s%@liblockfile@%$liblockfile%g |
7943 s%@LIBOBJS@%$LIBOBJS%g | |
7944 s%@NEED_SETGID@%$NEED_SETGID%g | |
7945 s%@KMEM_GROUP@%$KMEM_GROUP%g | |
7075 s%@version@%$version%g | 7946 s%@version@%$version%g |
7076 s%@configuration@%$configuration%g | 7947 s%@configuration@%$configuration%g |
7077 s%@canonical@%$canonical%g | 7948 s%@canonical@%$canonical%g |
7078 s%@srcdir@%$srcdir%g | 7949 s%@srcdir@%$srcdir%g |
7079 s%@lispdir@%$lispdir%g | 7950 s%@lispdir@%$lispdir%g |