Mercurial > emacs
comparison configure @ 44569:01399b2a0c1e
Regenerated.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Sun, 14 Apr 2002 01:42:18 +0000 |
parents | dc864bb90c6c |
children | a99665332964 |
comparison
equal
deleted
inserted
replaced
44568:1b75a98a4de4 | 44569:01399b2a0c1e |
---|---|
905 ac_top_srcdir=$ac_top_builddir$srcdir ;; | 905 ac_top_srcdir=$ac_top_builddir$srcdir ;; |
906 esac | 906 esac |
907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 907 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
908 # absolute. | 908 # absolute. |
909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 909 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
910 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | 910 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 911 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 912 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
913 | 913 |
914 cd $ac_dir | 914 cd $ac_dir |
915 # Check for guested configure; otherwise get Cygnus style configure. | 915 # Check for guested configure; otherwise get Cygnus style configure. |
1288 #define MAIL_USE_POP 1 | 1288 #define MAIL_USE_POP 1 |
1289 _ACEOF | 1289 _ACEOF |
1290 | 1290 |
1291 fi; | 1291 fi; |
1292 | 1292 |
1293 | |
1293 # Check whether --with-kerberos or --without-kerberos was given. | 1294 # Check whether --with-kerberos or --without-kerberos was given. |
1294 if test "${with_kerberos+set}" = set; then | 1295 if test "${with_kerberos+set}" = set; then |
1295 withval="$with_kerberos" | 1296 withval="$with_kerberos" |
1296 cat >>confdefs.h <<\_ACEOF | 1297 cat >>confdefs.h <<\_ACEOF |
1297 #define KERBEROS 1 | 1298 #define KERBEROS 1 |
1298 _ACEOF | 1299 _ACEOF |
1299 | 1300 |
1300 fi; | 1301 fi; |
1302 | |
1301 | 1303 |
1302 # Check whether --with-kerberos5 or --without-kerberos5 was given. | 1304 # Check whether --with-kerberos5 or --without-kerberos5 was given. |
1303 if test "${with_kerberos5+set}" = set; then | 1305 if test "${with_kerberos5+set}" = set; then |
1304 withval="$with_kerberos5" | 1306 withval="$with_kerberos5" |
1305 if test "${with_kerberos5+set}" = set; then | 1307 if test "${with_kerberos5+set}" = set; then |
1309 #define KERBEROS 1 | 1311 #define KERBEROS 1 |
1310 _ACEOF | 1312 _ACEOF |
1311 | 1313 |
1312 fi | 1314 fi |
1313 fi | 1315 fi |
1316 | |
1314 cat >>confdefs.h <<\_ACEOF | 1317 cat >>confdefs.h <<\_ACEOF |
1315 #define KERBEROS5 1 | 1318 #define KERBEROS5 1 |
1316 _ACEOF | 1319 _ACEOF |
1317 | 1320 |
1318 fi; | 1321 fi; |
1319 | 1322 |
1320 # Check whether --with-hesiod or --without-hesiod was given. | 1323 # Check whether --with-hesiod or --without-hesiod was given. |
1321 if test "${with_hesiod+set}" = set; then | 1324 if test "${with_hesiod+set}" = set; then |
1322 withval="$with_hesiod" | 1325 withval="$with_hesiod" |
1323 cat >>confdefs.h <<\_ACEOF | 1326 |
1327 cat >>confdefs.h <<\_ACEOF | |
1324 #define HESIOD 1 | 1328 #define HESIOD 1 |
1325 _ACEOF | 1329 _ACEOF |
1326 | 1330 |
1327 fi; | 1331 fi; |
1328 | 1332 |
5112 rm -f conftest.$ac_objext conftest.$ac_ext | 5116 rm -f conftest.$ac_objext conftest.$ac_ext |
5113 fi | 5117 fi |
5114 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 | 5118 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
5115 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 | 5119 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
5116 if test $emacs_cv_struct_utimbuf = yes; then | 5120 if test $emacs_cv_struct_utimbuf = yes; then |
5117 cat >>confdefs.h <<\_ACEOF | 5121 |
5122 cat >>confdefs.h <<\_ACEOF | |
5118 #define HAVE_STRUCT_UTIMBUF 1 | 5123 #define HAVE_STRUCT_UTIMBUF 1 |
5119 _ACEOF | 5124 _ACEOF |
5120 | 5125 |
5121 fi | 5126 fi |
5122 | 5127 |
5226 rm -f conftest.$ac_objext conftest.$ac_ext | 5231 rm -f conftest.$ac_objext conftest.$ac_ext |
5227 fi | 5232 fi |
5228 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 | 5233 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
5229 echo "${ECHO_T}$emacs_cv_speed_t" >&6 | 5234 echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
5230 if test $emacs_cv_speed_t = yes; then | 5235 if test $emacs_cv_speed_t = yes; then |
5231 cat >>confdefs.h <<\_ACEOF | 5236 |
5237 cat >>confdefs.h <<\_ACEOF | |
5232 #define HAVE_SPEED_T 1 | 5238 #define HAVE_SPEED_T 1 |
5233 _ACEOF | 5239 _ACEOF |
5234 | 5240 |
5235 fi | 5241 fi |
5236 | 5242 |
5288 fi | 5294 fi |
5289 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 | 5295 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
5290 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 | 5296 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
5291 HAVE_TIMEVAL=$emacs_cv_struct_timeval | 5297 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
5292 if test $emacs_cv_struct_timeval = yes; then | 5298 if test $emacs_cv_struct_timeval = yes; then |
5293 cat >>confdefs.h <<\_ACEOF | 5299 |
5300 cat >>confdefs.h <<\_ACEOF | |
5294 #define HAVE_TIMEVAL 1 | 5301 #define HAVE_TIMEVAL 1 |
5295 _ACEOF | 5302 _ACEOF |
5296 | 5303 |
5297 fi | 5304 fi |
5298 | 5305 |
5341 fi | 5348 fi |
5342 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 | 5349 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
5343 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 | 5350 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
5344 HAVE_EXCEPTION=$emacs_cv_struct_exception | 5351 HAVE_EXCEPTION=$emacs_cv_struct_exception |
5345 if test $emacs_cv_struct_exception != yes; then | 5352 if test $emacs_cv_struct_exception != yes; then |
5346 cat >>confdefs.h <<\_ACEOF | 5353 |
5354 cat >>confdefs.h <<\_ACEOF | |
5347 #define NO_MATHERR 1 | 5355 #define NO_MATHERR 1 |
5348 _ACEOF | 5356 _ACEOF |
5349 | 5357 |
5350 fi | 5358 fi |
5351 | 5359 |
5526 _ACEOF | 5534 _ACEOF |
5527 | 5535 |
5528 fi | 5536 fi |
5529 fi | 5537 fi |
5530 | 5538 |
5531 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | 5539 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
5532 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | 5540 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 |
5533 if test "${emacs_cv_tm_gmtoff+set}" = set; then | 5541 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then |
5534 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5542 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5535 else | 5543 else |
5536 cat >conftest.$ac_ext <<_ACEOF | 5544 cat >conftest.$ac_ext <<_ACEOF |
5537 #line $LINENO "configure" | 5545 #line $LINENO "configure" |
5538 #include "confdefs.h" | 5546 #include "confdefs.h" |
5539 #include <time.h> | 5547 #include <time.h> |
5548 | |
5540 #ifdef F77_DUMMY_MAIN | 5549 #ifdef F77_DUMMY_MAIN |
5541 # ifdef __cplusplus | 5550 # ifdef __cplusplus |
5542 extern "C" | 5551 extern "C" |
5543 # endif | 5552 # endif |
5544 int F77_DUMMY_MAIN() { return 1; } | 5553 int F77_DUMMY_MAIN() { return 1; } |
5545 #endif | 5554 #endif |
5546 int | 5555 int |
5547 main () | 5556 main () |
5548 { | 5557 { |
5549 struct tm t; t.tm_gmtoff = 0 | 5558 static struct tm ac_aggr; |
5559 if (ac_aggr.tm_gmtoff) | |
5560 return 0; | |
5550 ; | 5561 ; |
5551 return 0; | 5562 return 0; |
5552 } | 5563 } |
5553 _ACEOF | 5564 _ACEOF |
5554 rm -f conftest.$ac_objext conftest$ac_exeext | 5565 rm -f conftest.$ac_objext |
5555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5556 (eval $ac_link) 2>&5 | 5567 (eval $ac_compile) 2>&5 |
5557 ac_status=$? | 5568 ac_status=$? |
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5559 (exit $ac_status); } && | 5570 (exit $ac_status); } && |
5560 { ac_try='test -s conftest$ac_exeext' | 5571 { ac_try='test -s conftest.$ac_objext' |
5561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5562 (eval $ac_try) 2>&5 | 5573 (eval $ac_try) 2>&5 |
5563 ac_status=$? | 5574 ac_status=$? |
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5565 (exit $ac_status); }; }; then | 5576 (exit $ac_status); }; }; then |
5566 emacs_cv_tm_gmtoff=yes | 5577 ac_cv_member_struct_tm_tm_gmtoff=yes |
5567 else | 5578 else |
5568 echo "$as_me: failed program was:" >&5 | 5579 echo "$as_me: failed program was:" >&5 |
5569 cat conftest.$ac_ext >&5 | 5580 cat conftest.$ac_ext >&5 |
5570 emacs_cv_tm_gmtoff=no | 5581 ac_cv_member_struct_tm_tm_gmtoff=no |
5571 fi | 5582 fi |
5572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 5583 rm -f conftest.$ac_objext conftest.$ac_ext |
5573 fi | 5584 fi |
5574 echo "$as_me:$LINENO: result: $emacs_cv_tm_gmtoff" >&5 | 5585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
5575 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6 | 5586 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 |
5576 if test $emacs_cv_tm_gmtoff = yes; then | 5587 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then |
5577 cat >>confdefs.h <<\_ACEOF | 5588 |
5589 cat >>confdefs.h <<\_ACEOF | |
5578 #define HAVE_TM_GMTOFF 1 | 5590 #define HAVE_TM_GMTOFF 1 |
5579 _ACEOF | 5591 _ACEOF |
5580 | 5592 |
5581 fi | 5593 fi |
5594 | |
5582 | 5595 |
5583 | 5596 |
5584 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | 5597 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
5585 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | 5598 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
5586 if test "${ac_cv_prog_cc_stdc+set}" = set; then | 5599 if test "${ac_cv_prog_cc_stdc+set}" = set; then |
5907 #define POINTER_TYPE char | 5920 #define POINTER_TYPE char |
5908 _ACEOF | 5921 _ACEOF |
5909 | 5922 |
5910 fi | 5923 fi |
5911 | 5924 |
5925 | |
5912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 5926 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
5913 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | 5927 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
5914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | 5928 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
5915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | 5929 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
5916 echo $ECHO_N "(cached) $ECHO_C" >&6 | 5930 echo $ECHO_N "(cached) $ECHO_C" >&6 |
5999 echo "$as_me:$LINENO: result: yes" >&5 | 6013 echo "$as_me:$LINENO: result: yes" >&5 |
6000 echo "${ECHO_T}yes" >&6 | 6014 echo "${ECHO_T}yes" >&6 |
6001 if test "$gamedir" = "yes"; then | 6015 if test "$gamedir" = "yes"; then |
6002 gamedir="${localstatedir}/games/emacs" | 6016 gamedir="${localstatedir}/games/emacs" |
6003 fi | 6017 fi |
6004 tgamedir=`eval "echo $gamedir"` | 6018 eval tgamedir=\"$gamedir\" |
6005 cat >>confdefs.h <<_ACEOF | 6019 |
6020 cat >>confdefs.h <<_ACEOF | |
6006 #define HAVE_SHARED_GAME_DIR "$tgamedir" | 6021 #define HAVE_SHARED_GAME_DIR "$tgamedir" |
6007 _ACEOF | 6022 _ACEOF |
6008 | 6023 |
6009 else | 6024 else |
6010 echo "$as_me:$LINENO: result: no" >&5 | 6025 echo "$as_me:$LINENO: result: no" >&5 |
6524 if test "$doug_lea_malloc" = "yes" ; then | 6539 if test "$doug_lea_malloc" = "yes" ; then |
6525 if test "$GNU_MALLOC" = yes ; then | 6540 if test "$GNU_MALLOC" = yes ; then |
6526 GNU_MALLOC_reason=" | 6541 GNU_MALLOC_reason=" |
6527 (Using Doug Lea's new malloc from the GNU C Library.)" | 6542 (Using Doug Lea's new malloc from the GNU C Library.)" |
6528 fi | 6543 fi |
6529 cat >>confdefs.h <<\_ACEOF | 6544 |
6545 cat >>confdefs.h <<\_ACEOF | |
6530 #define DOUG_LEA_MALLOC 1 | 6546 #define DOUG_LEA_MALLOC 1 |
6531 _ACEOF | 6547 _ACEOF |
6532 | 6548 |
6533 fi | 6549 fi |
6534 | 6550 |
7271 fi | 7287 fi |
7272 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 7288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
7273 echo "$as_me:$LINENO: result: $emacs_xkb" >&5 | 7289 echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
7274 echo "${ECHO_T}$emacs_xkb" >&6 | 7290 echo "${ECHO_T}$emacs_xkb" >&6 |
7275 if test $emacs_xkb = yes; then | 7291 if test $emacs_xkb = yes; then |
7276 cat >>confdefs.h <<\_ACEOF | 7292 |
7293 cat >>confdefs.h <<\_ACEOF | |
7277 #define HAVE_XKBGETKEYBOARD 1 | 7294 #define HAVE_XKBGETKEYBOARD 1 |
7278 _ACEOF | 7295 _ACEOF |
7279 | 7296 |
7280 fi | 7297 fi |
7281 | 7298 |
7410 fi | 7427 fi |
7411 | 7428 |
7412 if test $emacs_cv_x11_version_6 = yes; then | 7429 if test $emacs_cv_x11_version_6 = yes; then |
7413 echo "$as_me:$LINENO: result: 6 or newer" >&5 | 7430 echo "$as_me:$LINENO: result: 6 or newer" >&5 |
7414 echo "${ECHO_T}6 or newer" >&6 | 7431 echo "${ECHO_T}6 or newer" >&6 |
7415 cat >>confdefs.h <<\_ACEOF | 7432 |
7433 cat >>confdefs.h <<\_ACEOF | |
7416 #define HAVE_X11R6 1 | 7434 #define HAVE_X11R6 1 |
7417 _ACEOF | 7435 _ACEOF |
7418 | 7436 |
7419 else | 7437 else |
7420 echo "$as_me:$LINENO: result: before 6" >&5 | 7438 echo "$as_me:$LINENO: result: before 6" >&5 |
7472 | 7490 |
7473 if test $emacs_cv_x11_version_5 = yes; then | 7491 if test $emacs_cv_x11_version_5 = yes; then |
7474 echo "$as_me:$LINENO: result: 5 or newer" >&5 | 7492 echo "$as_me:$LINENO: result: 5 or newer" >&5 |
7475 echo "${ECHO_T}5 or newer" >&6 | 7493 echo "${ECHO_T}5 or newer" >&6 |
7476 HAVE_X11R5=yes | 7494 HAVE_X11R5=yes |
7477 cat >>confdefs.h <<\_ACEOF | 7495 |
7496 cat >>confdefs.h <<\_ACEOF | |
7478 #define HAVE_X11R5 1 | 7497 #define HAVE_X11R5 1 |
7479 _ACEOF | 7498 _ACEOF |
7480 | 7499 |
7481 else | 7500 else |
7482 HAVE_X11R5=no | 7501 HAVE_X11R5=no |
7599 | 7618 |
7600 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | 7619 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
7601 if test $emacs_cv_x11_toolkit_version_6 = yes; then | 7620 if test $emacs_cv_x11_toolkit_version_6 = yes; then |
7602 echo "$as_me:$LINENO: result: 6 or newer" >&5 | 7621 echo "$as_me:$LINENO: result: 6 or newer" >&5 |
7603 echo "${ECHO_T}6 or newer" >&6 | 7622 echo "${ECHO_T}6 or newer" >&6 |
7604 cat >>confdefs.h <<\_ACEOF | 7623 |
7624 cat >>confdefs.h <<\_ACEOF | |
7605 #define HAVE_X11XTR6 1 | 7625 #define HAVE_X11XTR6 1 |
7606 _ACEOF | 7626 _ACEOF |
7607 | 7627 |
7608 else | 7628 else |
7609 echo "$as_me:$LINENO: result: before 6" >&5 | 7629 echo "$as_me:$LINENO: result: before 6" >&5 |
7806 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 | 7826 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
7807 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 | 7827 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
7808 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 | 7828 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
7809 if test $emacs_cv_motif_version_2_1 = yes; then | 7829 if test $emacs_cv_motif_version_2_1 = yes; then |
7810 HAVE_LIBXP=no | 7830 HAVE_LIBXP=no |
7811 cat >>confdefs.h <<\_ACEOF | 7831 |
7832 cat >>confdefs.h <<\_ACEOF | |
7812 #define HAVE_MOTIF_2_1 1 | 7833 #define HAVE_MOTIF_2_1 1 |
7813 _ACEOF | 7834 _ACEOF |
7814 | 7835 |
7815 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 | 7836 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
7816 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 | 7837 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
7870 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | 7891 if test $ac_cv_lib_Xp_XpCreateContext = yes; then |
7871 HAVE_LIBXP=yes | 7892 HAVE_LIBXP=yes |
7872 fi | 7893 fi |
7873 | 7894 |
7874 if test ${HAVE_LIBXP} = yes; then | 7895 if test ${HAVE_LIBXP} = yes; then |
7875 cat >>confdefs.h <<\_ACEOF | 7896 |
7897 cat >>confdefs.h <<\_ACEOF | |
7876 #define HAVE_LIBXP 1 | 7898 #define HAVE_LIBXP 1 |
7877 _ACEOF | 7899 _ACEOF |
7878 | 7900 |
7879 fi | 7901 fi |
7880 fi | 7902 fi |
8047 | 8069 |
8048 fi | 8070 fi |
8049 | 8071 |
8050 | 8072 |
8051 if test "${HAVE_XAW3D}" = "yes"; then | 8073 if test "${HAVE_XAW3D}" = "yes"; then |
8052 cat >>confdefs.h <<\_ACEOF | 8074 |
8075 cat >>confdefs.h <<\_ACEOF | |
8053 #define HAVE_XAW3D 1 | 8076 #define HAVE_XAW3D 1 |
8054 _ACEOF | 8077 _ACEOF |
8055 | 8078 |
8056 fi | 8079 fi |
8057 fi | 8080 fi |
8058 fi | 8081 fi |
8082 | |
8059 | 8083 |
8060 | 8084 |
8061 USE_TOOLKIT_SCROLL_BARS=no | 8085 USE_TOOLKIT_SCROLL_BARS=no |
8062 if test "${with_toolkit_scroll_bars}" != "no"; then | 8086 if test "${with_toolkit_scroll_bars}" != "no"; then |
8063 if test "${USE_X_TOOLKIT}" != "none"; then | 8087 if test "${USE_X_TOOLKIT}" != "none"; then |
8078 fi | 8102 fi |
8079 fi | 8103 fi |
8080 | 8104 |
8081 | 8105 |
8082 if test "${with_xim}" != "no"; then | 8106 if test "${with_xim}" != "no"; then |
8083 cat >>confdefs.h <<\_ACEOF | 8107 |
8108 cat >>confdefs.h <<\_ACEOF | |
8084 #define USE_XIM 1 | 8109 #define USE_XIM 1 |
8085 _ACEOF | 8110 _ACEOF |
8086 | 8111 |
8087 fi | 8112 fi |
8088 | 8113 |
8284 fi | 8309 fi |
8285 fi | 8310 fi |
8286 fi | 8311 fi |
8287 | 8312 |
8288 if test "${HAVE_XPM}" = "yes"; then | 8313 if test "${HAVE_XPM}" = "yes"; then |
8289 cat >>confdefs.h <<\_ACEOF | 8314 |
8315 cat >>confdefs.h <<\_ACEOF | |
8290 #define HAVE_XPM 1 | 8316 #define HAVE_XPM 1 |
8291 _ACEOF | 8317 _ACEOF |
8292 | 8318 |
8293 fi | 8319 fi |
8294 fi | 8320 fi |
8461 fi | 8487 fi |
8462 | 8488 |
8463 | 8489 |
8464 fi | 8490 fi |
8465 | 8491 |
8492 | |
8466 if test "${HAVE_JPEG}" = "yes"; then | 8493 if test "${HAVE_JPEG}" = "yes"; then |
8467 cat >>confdefs.h <<\_ACEOF | 8494 cat >>confdefs.h <<\_ACEOF |
8468 #define HAVE_JPEG 1 | 8495 #define HAVE_JPEG 1 |
8469 _ACEOF | 8496 _ACEOF |
8470 | 8497 |
8660 | 8687 |
8661 | 8688 |
8662 fi | 8689 fi |
8663 | 8690 |
8664 if test "${HAVE_PNG}" = "yes"; then | 8691 if test "${HAVE_PNG}" = "yes"; then |
8665 cat >>confdefs.h <<\_ACEOF | 8692 |
8693 cat >>confdefs.h <<\_ACEOF | |
8666 #define HAVE_PNG 1 | 8694 #define HAVE_PNG 1 |
8667 _ACEOF | 8695 _ACEOF |
8668 | 8696 |
8669 fi | 8697 fi |
8670 fi | 8698 fi |
8841 | 8869 |
8842 | 8870 |
8843 fi | 8871 fi |
8844 | 8872 |
8845 if test "${HAVE_TIFF}" = "yes"; then | 8873 if test "${HAVE_TIFF}" = "yes"; then |
8846 cat >>confdefs.h <<\_ACEOF | 8874 |
8875 cat >>confdefs.h <<\_ACEOF | |
8847 #define HAVE_TIFF 1 | 8876 #define HAVE_TIFF 1 |
8848 _ACEOF | 8877 _ACEOF |
8849 | 8878 |
8850 fi | 8879 fi |
8851 fi | 8880 fi |
9021 | 9050 |
9022 | 9051 |
9023 fi | 9052 fi |
9024 | 9053 |
9025 if test "${HAVE_GIF}" = "yes"; then | 9054 if test "${HAVE_GIF}" = "yes"; then |
9026 cat >>confdefs.h <<\_ACEOF | 9055 |
9056 cat >>confdefs.h <<\_ACEOF | |
9027 #define HAVE_GIF 1 | 9057 #define HAVE_GIF 1 |
9028 _ACEOF | 9058 _ACEOF |
9029 | 9059 |
9030 fi | 9060 fi |
9031 fi | 9061 fi |
9199 fi | 9229 fi |
9200 | 9230 |
9201 | 9231 |
9202 | 9232 |
9203 if test "${HAVE_X_SM}" = "yes"; then | 9233 if test "${HAVE_X_SM}" = "yes"; then |
9204 cat >>confdefs.h <<\_ACEOF | 9234 |
9235 cat >>confdefs.h <<\_ACEOF | |
9205 #define HAVE_X_SM 1 | 9236 #define HAVE_X_SM 1 |
9206 _ACEOF | 9237 _ACEOF |
9207 | 9238 |
9208 case "$LIBS" in | 9239 case "$LIBS" in |
9209 *-lSM*) ;; | 9240 *-lSM*) ;; |
9257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 9288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
9258 fi | 9289 fi |
9259 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 | 9290 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
9260 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 | 9291 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
9261 if test $emacs_cv_netdb_declares_h_errno = yes; then | 9292 if test $emacs_cv_netdb_declares_h_errno = yes; then |
9262 cat >>confdefs.h <<\_ACEOF | 9293 |
9294 cat >>confdefs.h <<\_ACEOF | |
9263 #define HAVE_H_ERRNO 1 | 9295 #define HAVE_H_ERRNO 1 |
9264 _ACEOF | 9296 _ACEOF |
9265 | 9297 |
9266 fi | 9298 fi |
9267 | 9299 |
9786 else | 9818 else |
9787 if test -n "$liblockfile"; then | 9819 if test -n "$liblockfile"; then |
9788 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 9820 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
9789 else | 9821 else |
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | 9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9791 for as_dir in /usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH | 9823 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
9824 for as_dir in $as_dummy | |
9792 do | 9825 do |
9793 IFS=$as_save_IFS | 9826 IFS=$as_save_IFS |
9794 test -z "$as_dir" && as_dir=. | 9827 test -z "$as_dir" && as_dir=. |
9795 for ac_exec_ext in '' $ac_executable_extensions; do | 9828 for ac_exec_ext in '' $ac_executable_extensions; do |
9796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | 9829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9819 There may be a \`development' package to install containing liblockfile." >&5 | 9852 There may be a \`development' package to install containing liblockfile." >&5 |
9820 echo "$as_me: error: Shared liblockfile found but can't link against it. | 9853 echo "$as_me: error: Shared liblockfile found but can't link against it. |
9821 This probably means that movemail could lose mail. | 9854 This probably means that movemail could lose mail. |
9822 There may be a \`development' package to install containing liblockfile." >&2;} | 9855 There may be a \`development' package to install containing liblockfile." >&2;} |
9823 { (exit 1); exit 1; }; } | 9856 { (exit 1); exit 1; }; } |
9824 else cat >>confdefs.h <<\_ACEOF | 9857 else |
9858 cat >>confdefs.h <<\_ACEOF | |
9825 #define LIBMAIL -llockfile | 9859 #define LIBMAIL -llockfile |
9826 _ACEOF | 9860 _ACEOF |
9827 | 9861 |
9828 fi | 9862 fi |
9829 else : | 9863 else : |
10647 if test $ac_cv_func_working_mktime = no; then | 10681 if test $ac_cv_func_working_mktime = no; then |
10648 LIBOBJS="$LIBOBJS mktime.$ac_objext" | 10682 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
10649 fi | 10683 fi |
10650 | 10684 |
10651 if test "$ac_cv_func_working_mktime" = no; then | 10685 if test "$ac_cv_func_working_mktime" = no; then |
10652 cat >>confdefs.h <<\_ACEOF | 10686 |
10687 cat >>confdefs.h <<\_ACEOF | |
10653 #define BROKEN_MKTIME 1 | 10688 #define BROKEN_MKTIME 1 |
10654 _ACEOF | 10689 _ACEOF |
10655 | 10690 |
10656 fi | 10691 fi |
10657 | 10692 |
12175 fi | 12210 fi |
12176 LIBS=$ac_save_LIBS | 12211 LIBS=$ac_save_LIBS |
12177 | 12212 |
12178 | 12213 |
12179 | 12214 |
12180 ac_have_func=no # yes means we've found a way to get the load average. | 12215 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
12181 | 12216 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
12182 ac_save_LIBS=$LIBS | 12217 if test "${ac_cv_sys_largefile_source+set}" = set; then |
12183 | 12218 echo $ECHO_N "(cached) $ECHO_C" >&6 |
12184 # Check for getloadavg, but be sure not to touch the cache variable. | 12219 else |
12185 (echo "$as_me:$LINENO: checking for getloadavg" >&5 | 12220 while :; do |
12186 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 | 12221 ac_cv_sys_largefile_source=no |
12187 if test "${ac_cv_func_getloadavg+set}" = set; then | |
12188 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12189 else | |
12190 cat >conftest.$ac_ext <<_ACEOF | 12222 cat >conftest.$ac_ext <<_ACEOF |
12191 #line $LINENO "configure" | 12223 #line $LINENO "configure" |
12192 #include "confdefs.h" | 12224 #include "confdefs.h" |
12193 /* System header to define __stub macros and hopefully few prototypes, | 12225 #include <stdio.h> |
12194 which can conflict with char getloadavg (); below. */ | |
12195 #include <assert.h> | |
12196 /* Override any gcc2 internal prototype to avoid an error. */ | |
12197 #ifdef __cplusplus | |
12198 extern "C" | |
12199 #endif | |
12200 /* We use char because int might match the return type of a gcc2 | |
12201 builtin and then its argument prototype would still apply. */ | |
12202 char getloadavg (); | |
12203 char (*f) (); | |
12204 | |
12205 #ifdef F77_DUMMY_MAIN | 12226 #ifdef F77_DUMMY_MAIN |
12206 # ifdef __cplusplus | 12227 # ifdef __cplusplus |
12207 extern "C" | 12228 extern "C" |
12208 # endif | 12229 # endif |
12209 int F77_DUMMY_MAIN() { return 1; } | 12230 int F77_DUMMY_MAIN() { return 1; } |
12210 #endif | 12231 #endif |
12211 int | 12232 int |
12212 main () | 12233 main () |
12213 { | 12234 { |
12214 /* The GNU C library defines this for functions which it implements | 12235 return !fseeko; |
12215 to always fail with ENOSYS. Some functions are actually named | 12236 ; |
12216 something starting with __ and the normal name is an alias. */ | 12237 return 0; |
12217 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | 12238 } |
12218 choke me | 12239 _ACEOF |
12219 #else | 12240 rm -f conftest.$ac_objext |
12220 f = getloadavg; | 12241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12221 #endif | 12242 (eval $ac_compile) 2>&5 |
12222 | 12243 ac_status=$? |
12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12245 (exit $ac_status); } && | |
12246 { ac_try='test -s conftest.$ac_objext' | |
12247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12248 (eval $ac_try) 2>&5 | |
12249 ac_status=$? | |
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12251 (exit $ac_status); }; }; then | |
12252 break | |
12253 else | |
12254 echo "$as_me: failed program was:" >&5 | |
12255 cat conftest.$ac_ext >&5 | |
12256 fi | |
12257 rm -f conftest.$ac_objext conftest.$ac_ext | |
12258 cat >conftest.$ac_ext <<_ACEOF | |
12259 #line $LINENO "configure" | |
12260 #include "confdefs.h" | |
12261 #define _LARGEFILE_SOURCE 1 | |
12262 #include <stdio.h> | |
12263 #ifdef F77_DUMMY_MAIN | |
12264 # ifdef __cplusplus | |
12265 extern "C" | |
12266 # endif | |
12267 int F77_DUMMY_MAIN() { return 1; } | |
12268 #endif | |
12269 int | |
12270 main () | |
12271 { | |
12272 return !fseeko; | |
12273 ; | |
12274 return 0; | |
12275 } | |
12276 _ACEOF | |
12277 rm -f conftest.$ac_objext | |
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12279 (eval $ac_compile) 2>&5 | |
12280 ac_status=$? | |
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12282 (exit $ac_status); } && | |
12283 { ac_try='test -s conftest.$ac_objext' | |
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12285 (eval $ac_try) 2>&5 | |
12286 ac_status=$? | |
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12288 (exit $ac_status); }; }; then | |
12289 ac_cv_sys_largefile_source=1; break | |
12290 else | |
12291 echo "$as_me: failed program was:" >&5 | |
12292 cat conftest.$ac_ext >&5 | |
12293 fi | |
12294 rm -f conftest.$ac_objext conftest.$ac_ext | |
12295 break | |
12296 done | |
12297 fi | |
12298 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
12299 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
12300 if test "$ac_cv_sys_largefile_source" != no; then | |
12301 | |
12302 cat >>confdefs.h <<_ACEOF | |
12303 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
12304 _ACEOF | |
12305 | |
12306 fi | |
12307 rm -f conftest* | |
12308 | |
12309 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
12310 # in glibc 2.1.3, but that breaks too many other things. | |
12311 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
12312 echo "$as_me:$LINENO: checking for fseeko" >&5 | |
12313 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
12314 if test "${ac_cv_func_fseeko+set}" = set; then | |
12315 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12316 else | |
12317 cat >conftest.$ac_ext <<_ACEOF | |
12318 #line $LINENO "configure" | |
12319 #include "confdefs.h" | |
12320 #include <stdio.h> | |
12321 #ifdef F77_DUMMY_MAIN | |
12322 # ifdef __cplusplus | |
12323 extern "C" | |
12324 # endif | |
12325 int F77_DUMMY_MAIN() { return 1; } | |
12326 #endif | |
12327 int | |
12328 main () | |
12329 { | |
12330 return fseeko && fseeko (stdin, 0, 0); | |
12223 ; | 12331 ; |
12224 return 0; | 12332 return 0; |
12225 } | 12333 } |
12226 _ACEOF | 12334 _ACEOF |
12227 rm -f conftest.$ac_objext conftest$ac_exeext | 12335 rm -f conftest.$ac_objext conftest$ac_exeext |
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12235 (eval $ac_try) 2>&5 | 12343 (eval $ac_try) 2>&5 |
12236 ac_status=$? | 12344 ac_status=$? |
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12238 (exit $ac_status); }; }; then | 12346 (exit $ac_status); }; }; then |
12239 ac_cv_func_getloadavg=yes | 12347 ac_cv_func_fseeko=yes |
12240 else | 12348 else |
12241 echo "$as_me: failed program was:" >&5 | 12349 echo "$as_me: failed program was:" >&5 |
12242 cat conftest.$ac_ext >&5 | 12350 cat conftest.$ac_ext >&5 |
12243 ac_cv_func_getloadavg=no | 12351 ac_cv_func_fseeko=no |
12244 fi | 12352 fi |
12245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | 12353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
12246 fi | 12354 fi |
12247 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 | 12355 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 |
12248 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 | 12356 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
12249 if test $ac_cv_func_getloadavg = yes; then | 12357 if test $ac_cv_func_fseeko = yes; then |
12250 exit 0 | 12358 |
12251 else | 12359 cat >>confdefs.h <<\_ACEOF |
12252 exit 1 | 12360 #define HAVE_FSEEKO 1 |
12253 fi | 12361 _ACEOF |
12254 ) && ac_have_func=yes | 12362 |
12255 | 12363 fi |
12256 # On HPUX9, an unprivileged user can get load averages through this function. | 12364 |
12257 | 12365 |
12258 for ac_func in pstat_getdynamic | 12366 # UNIX98 PTYs. |
12367 | |
12368 for ac_func in grantpt | |
12259 do | 12369 do |
12260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 12370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12261 echo "$as_me:$LINENO: checking for $ac_func" >&5 | 12371 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12263 if eval "test \"\${$as_ac_var+set}\" = set"; then | 12373 if eval "test \"\${$as_ac_var+set}\" = set"; then |
12329 | 12439 |
12330 fi | 12440 fi |
12331 done | 12441 done |
12332 | 12442 |
12333 | 12443 |
12334 # Solaris has libkstat which does not require root. | 12444 # PTY-related GNU extensions. |
12335 | 12445 |
12336 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 | 12446 for ac_func in getpt |
12337 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 | |
12338 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
12339 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12340 else | |
12341 ac_check_lib_save_LIBS=$LIBS | |
12342 LIBS="-lkstat $LIBS" | |
12343 cat >conftest.$ac_ext <<_ACEOF | |
12344 #line $LINENO "configure" | |
12345 #include "confdefs.h" | |
12346 | |
12347 /* Override any gcc2 internal prototype to avoid an error. */ | |
12348 #ifdef __cplusplus | |
12349 extern "C" | |
12350 #endif | |
12351 /* We use char because int might match the return type of a gcc2 | |
12352 builtin and then its argument prototype would still apply. */ | |
12353 char kstat_open (); | |
12354 #ifdef F77_DUMMY_MAIN | |
12355 # ifdef __cplusplus | |
12356 extern "C" | |
12357 # endif | |
12358 int F77_DUMMY_MAIN() { return 1; } | |
12359 #endif | |
12360 int | |
12361 main () | |
12362 { | |
12363 kstat_open (); | |
12364 ; | |
12365 return 0; | |
12366 } | |
12367 _ACEOF | |
12368 rm -f conftest.$ac_objext conftest$ac_exeext | |
12369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12370 (eval $ac_link) 2>&5 | |
12371 ac_status=$? | |
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12373 (exit $ac_status); } && | |
12374 { ac_try='test -s conftest$ac_exeext' | |
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12376 (eval $ac_try) 2>&5 | |
12377 ac_status=$? | |
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12379 (exit $ac_status); }; }; then | |
12380 ac_cv_lib_kstat_kstat_open=yes | |
12381 else | |
12382 echo "$as_me: failed program was:" >&5 | |
12383 cat conftest.$ac_ext >&5 | |
12384 ac_cv_lib_kstat_kstat_open=no | |
12385 fi | |
12386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12387 LIBS=$ac_check_lib_save_LIBS | |
12388 fi | |
12389 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 | |
12390 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 | |
12391 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
12392 cat >>confdefs.h <<_ACEOF | |
12393 #define HAVE_LIBKSTAT 1 | |
12394 _ACEOF | |
12395 | |
12396 LIBS="-lkstat $LIBS" | |
12397 | |
12398 fi | |
12399 | |
12400 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
12401 | |
12402 # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
12403 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
12404 # to get the right answer into the cache. | |
12405 # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
12406 if test $ac_have_func = no; then | |
12407 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 | |
12408 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 | |
12409 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
12410 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12411 else | |
12412 ac_check_lib_save_LIBS=$LIBS | |
12413 LIBS="-lelf $LIBS" | |
12414 cat >conftest.$ac_ext <<_ACEOF | |
12415 #line $LINENO "configure" | |
12416 #include "confdefs.h" | |
12417 | |
12418 /* Override any gcc2 internal prototype to avoid an error. */ | |
12419 #ifdef __cplusplus | |
12420 extern "C" | |
12421 #endif | |
12422 /* We use char because int might match the return type of a gcc2 | |
12423 builtin and then its argument prototype would still apply. */ | |
12424 char elf_begin (); | |
12425 #ifdef F77_DUMMY_MAIN | |
12426 # ifdef __cplusplus | |
12427 extern "C" | |
12428 # endif | |
12429 int F77_DUMMY_MAIN() { return 1; } | |
12430 #endif | |
12431 int | |
12432 main () | |
12433 { | |
12434 elf_begin (); | |
12435 ; | |
12436 return 0; | |
12437 } | |
12438 _ACEOF | |
12439 rm -f conftest.$ac_objext conftest$ac_exeext | |
12440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12441 (eval $ac_link) 2>&5 | |
12442 ac_status=$? | |
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12444 (exit $ac_status); } && | |
12445 { ac_try='test -s conftest$ac_exeext' | |
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12447 (eval $ac_try) 2>&5 | |
12448 ac_status=$? | |
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12450 (exit $ac_status); }; }; then | |
12451 ac_cv_lib_elf_elf_begin=yes | |
12452 else | |
12453 echo "$as_me: failed program was:" >&5 | |
12454 cat conftest.$ac_ext >&5 | |
12455 ac_cv_lib_elf_elf_begin=no | |
12456 fi | |
12457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12458 LIBS=$ac_check_lib_save_LIBS | |
12459 fi | |
12460 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 | |
12461 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 | |
12462 if test $ac_cv_lib_elf_elf_begin = yes; then | |
12463 LIBS="-lelf $LIBS" | |
12464 fi | |
12465 | |
12466 fi | |
12467 if test $ac_have_func = no; then | |
12468 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 | |
12469 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 | |
12470 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
12471 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12472 else | |
12473 ac_check_lib_save_LIBS=$LIBS | |
12474 LIBS="-lkvm $LIBS" | |
12475 cat >conftest.$ac_ext <<_ACEOF | |
12476 #line $LINENO "configure" | |
12477 #include "confdefs.h" | |
12478 | |
12479 /* Override any gcc2 internal prototype to avoid an error. */ | |
12480 #ifdef __cplusplus | |
12481 extern "C" | |
12482 #endif | |
12483 /* We use char because int might match the return type of a gcc2 | |
12484 builtin and then its argument prototype would still apply. */ | |
12485 char kvm_open (); | |
12486 #ifdef F77_DUMMY_MAIN | |
12487 # ifdef __cplusplus | |
12488 extern "C" | |
12489 # endif | |
12490 int F77_DUMMY_MAIN() { return 1; } | |
12491 #endif | |
12492 int | |
12493 main () | |
12494 { | |
12495 kvm_open (); | |
12496 ; | |
12497 return 0; | |
12498 } | |
12499 _ACEOF | |
12500 rm -f conftest.$ac_objext conftest$ac_exeext | |
12501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12502 (eval $ac_link) 2>&5 | |
12503 ac_status=$? | |
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 (exit $ac_status); } && | |
12506 { ac_try='test -s conftest$ac_exeext' | |
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12508 (eval $ac_try) 2>&5 | |
12509 ac_status=$? | |
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12511 (exit $ac_status); }; }; then | |
12512 ac_cv_lib_kvm_kvm_open=yes | |
12513 else | |
12514 echo "$as_me: failed program was:" >&5 | |
12515 cat conftest.$ac_ext >&5 | |
12516 ac_cv_lib_kvm_kvm_open=no | |
12517 fi | |
12518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12519 LIBS=$ac_check_lib_save_LIBS | |
12520 fi | |
12521 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 | |
12522 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 | |
12523 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
12524 LIBS="-lkvm $LIBS" | |
12525 fi | |
12526 | |
12527 # Check for the 4.4BSD definition of getloadavg. | |
12528 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 | |
12529 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 | |
12530 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
12531 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12532 else | |
12533 ac_check_lib_save_LIBS=$LIBS | |
12534 LIBS="-lutil $LIBS" | |
12535 cat >conftest.$ac_ext <<_ACEOF | |
12536 #line $LINENO "configure" | |
12537 #include "confdefs.h" | |
12538 | |
12539 /* Override any gcc2 internal prototype to avoid an error. */ | |
12540 #ifdef __cplusplus | |
12541 extern "C" | |
12542 #endif | |
12543 /* We use char because int might match the return type of a gcc2 | |
12544 builtin and then its argument prototype would still apply. */ | |
12545 char getloadavg (); | |
12546 #ifdef F77_DUMMY_MAIN | |
12547 # ifdef __cplusplus | |
12548 extern "C" | |
12549 # endif | |
12550 int F77_DUMMY_MAIN() { return 1; } | |
12551 #endif | |
12552 int | |
12553 main () | |
12554 { | |
12555 getloadavg (); | |
12556 ; | |
12557 return 0; | |
12558 } | |
12559 _ACEOF | |
12560 rm -f conftest.$ac_objext conftest$ac_exeext | |
12561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12562 (eval $ac_link) 2>&5 | |
12563 ac_status=$? | |
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12565 (exit $ac_status); } && | |
12566 { ac_try='test -s conftest$ac_exeext' | |
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12568 (eval $ac_try) 2>&5 | |
12569 ac_status=$? | |
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12571 (exit $ac_status); }; }; then | |
12572 ac_cv_lib_util_getloadavg=yes | |
12573 else | |
12574 echo "$as_me: failed program was:" >&5 | |
12575 cat conftest.$ac_ext >&5 | |
12576 ac_cv_lib_util_getloadavg=no | |
12577 fi | |
12578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12579 LIBS=$ac_check_lib_save_LIBS | |
12580 fi | |
12581 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 | |
12582 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 | |
12583 if test $ac_cv_lib_util_getloadavg = yes; then | |
12584 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
12585 fi | |
12586 | |
12587 fi | |
12588 | |
12589 if test $ac_have_func = no; then | |
12590 # There is a commonly available library for RS/6000 AIX. | |
12591 # Since it is not a standard part of AIX, it might be installed locally. | |
12592 ac_getloadavg_LIBS=$LIBS | |
12593 LIBS="-L/usr/local/lib $LIBS" | |
12594 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 | |
12595 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 | |
12596 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
12597 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12598 else | |
12599 ac_check_lib_save_LIBS=$LIBS | |
12600 LIBS="-lgetloadavg $LIBS" | |
12601 cat >conftest.$ac_ext <<_ACEOF | |
12602 #line $LINENO "configure" | |
12603 #include "confdefs.h" | |
12604 | |
12605 /* Override any gcc2 internal prototype to avoid an error. */ | |
12606 #ifdef __cplusplus | |
12607 extern "C" | |
12608 #endif | |
12609 /* We use char because int might match the return type of a gcc2 | |
12610 builtin and then its argument prototype would still apply. */ | |
12611 char getloadavg (); | |
12612 #ifdef F77_DUMMY_MAIN | |
12613 # ifdef __cplusplus | |
12614 extern "C" | |
12615 # endif | |
12616 int F77_DUMMY_MAIN() { return 1; } | |
12617 #endif | |
12618 int | |
12619 main () | |
12620 { | |
12621 getloadavg (); | |
12622 ; | |
12623 return 0; | |
12624 } | |
12625 _ACEOF | |
12626 rm -f conftest.$ac_objext conftest$ac_exeext | |
12627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12628 (eval $ac_link) 2>&5 | |
12629 ac_status=$? | |
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12631 (exit $ac_status); } && | |
12632 { ac_try='test -s conftest$ac_exeext' | |
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12634 (eval $ac_try) 2>&5 | |
12635 ac_status=$? | |
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12637 (exit $ac_status); }; }; then | |
12638 ac_cv_lib_getloadavg_getloadavg=yes | |
12639 else | |
12640 echo "$as_me: failed program was:" >&5 | |
12641 cat conftest.$ac_ext >&5 | |
12642 ac_cv_lib_getloadavg_getloadavg=no | |
12643 fi | |
12644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12645 LIBS=$ac_check_lib_save_LIBS | |
12646 fi | |
12647 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 | |
12648 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 | |
12649 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
12650 LIBS="-lgetloadavg $LIBS" | |
12651 else | |
12652 LIBS=$ac_getloadavg_LIBS | |
12653 fi | |
12654 | |
12655 fi | |
12656 | |
12657 # Make sure it is really in the library, if we think we found it, | |
12658 # otherwise set up the replacement function. | |
12659 | |
12660 for ac_func in getloadavg | |
12661 do | 12447 do |
12662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | 12448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12663 echo "$as_me:$LINENO: checking for $ac_func" >&5 | 12449 echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | 12450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
12665 if eval "test \"\${$as_ac_var+set}\" = set"; then | 12451 if eval "test \"\${$as_ac_var+set}\" = set"; then |
12727 if test `eval echo '${'$as_ac_var'}'` = yes; then | 12513 if test `eval echo '${'$as_ac_var'}'` = yes; then |
12728 cat >>confdefs.h <<_ACEOF | 12514 cat >>confdefs.h <<_ACEOF |
12729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | 12515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
12730 _ACEOF | 12516 _ACEOF |
12731 | 12517 |
12732 else | |
12733 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
12734 | |
12735 cat >>confdefs.h <<\_ACEOF | |
12736 #define C_GETLOADAVG 1 | |
12737 _ACEOF | |
12738 | |
12739 # Figure out what our getloadavg.c needs. | |
12740 ac_have_func=no | |
12741 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
12742 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
12743 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
12744 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
12745 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12746 fi | |
12747 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
12748 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
12749 else | |
12750 # Is the header compilable? | |
12751 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
12752 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 | |
12753 cat >conftest.$ac_ext <<_ACEOF | |
12754 #line $LINENO "configure" | |
12755 #include "confdefs.h" | |
12756 $ac_includes_default | |
12757 #include <sys/dg_sys_info.h> | |
12758 _ACEOF | |
12759 rm -f conftest.$ac_objext | |
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12761 (eval $ac_compile) 2>&5 | |
12762 ac_status=$? | |
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12764 (exit $ac_status); } && | |
12765 { ac_try='test -s conftest.$ac_objext' | |
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12767 (eval $ac_try) 2>&5 | |
12768 ac_status=$? | |
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12770 (exit $ac_status); }; }; then | |
12771 ac_header_compiler=yes | |
12772 else | |
12773 echo "$as_me: failed program was:" >&5 | |
12774 cat conftest.$ac_ext >&5 | |
12775 ac_header_compiler=no | |
12776 fi | |
12777 rm -f conftest.$ac_objext conftest.$ac_ext | |
12778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12779 echo "${ECHO_T}$ac_header_compiler" >&6 | |
12780 | |
12781 # Is the header present? | |
12782 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
12783 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 | |
12784 cat >conftest.$ac_ext <<_ACEOF | |
12785 #line $LINENO "configure" | |
12786 #include "confdefs.h" | |
12787 #include <sys/dg_sys_info.h> | |
12788 _ACEOF | |
12789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12791 ac_status=$? | |
12792 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12793 rm -f conftest.er1 | |
12794 cat conftest.err >&5 | |
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12796 (exit $ac_status); } >/dev/null; then | |
12797 if test -s conftest.err; then | |
12798 ac_cpp_err=$ac_c_preproc_warn_flag | |
12799 else | |
12800 ac_cpp_err= | |
12801 fi | |
12802 else | |
12803 ac_cpp_err=yes | |
12804 fi | |
12805 if test -z "$ac_cpp_err"; then | |
12806 ac_header_preproc=yes | |
12807 else | |
12808 echo "$as_me: failed program was:" >&5 | |
12809 cat conftest.$ac_ext >&5 | |
12810 ac_header_preproc=no | |
12811 fi | |
12812 rm -f conftest.err conftest.$ac_ext | |
12813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12814 echo "${ECHO_T}$ac_header_preproc" >&6 | |
12815 | |
12816 # So? What about this header? | |
12817 case $ac_header_compiler:$ac_header_preproc in | |
12818 yes:no ) | |
12819 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12820 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12821 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
12822 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
12823 no:yes ) | |
12824 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
12825 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
12826 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
12827 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
12828 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
12829 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};; | |
12830 esac | |
12831 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
12832 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 | |
12833 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
12834 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12835 else | |
12836 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
12837 fi | |
12838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
12839 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 | |
12840 | |
12841 fi | |
12842 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
12843 ac_have_func=yes | |
12844 | |
12845 cat >>confdefs.h <<\_ACEOF | |
12846 #define DGUX 1 | |
12847 _ACEOF | |
12848 | |
12849 | |
12850 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 | |
12851 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 | |
12852 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
12853 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12854 else | |
12855 ac_check_lib_save_LIBS=$LIBS | |
12856 LIBS="-ldgc $LIBS" | |
12857 cat >conftest.$ac_ext <<_ACEOF | |
12858 #line $LINENO "configure" | |
12859 #include "confdefs.h" | |
12860 | |
12861 /* Override any gcc2 internal prototype to avoid an error. */ | |
12862 #ifdef __cplusplus | |
12863 extern "C" | |
12864 #endif | |
12865 /* We use char because int might match the return type of a gcc2 | |
12866 builtin and then its argument prototype would still apply. */ | |
12867 char dg_sys_info (); | |
12868 #ifdef F77_DUMMY_MAIN | |
12869 # ifdef __cplusplus | |
12870 extern "C" | |
12871 # endif | |
12872 int F77_DUMMY_MAIN() { return 1; } | |
12873 #endif | |
12874 int | |
12875 main () | |
12876 { | |
12877 dg_sys_info (); | |
12878 ; | |
12879 return 0; | |
12880 } | |
12881 _ACEOF | |
12882 rm -f conftest.$ac_objext conftest$ac_exeext | |
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12884 (eval $ac_link) 2>&5 | |
12885 ac_status=$? | |
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12887 (exit $ac_status); } && | |
12888 { ac_try='test -s conftest$ac_exeext' | |
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12890 (eval $ac_try) 2>&5 | |
12891 ac_status=$? | |
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12893 (exit $ac_status); }; }; then | |
12894 ac_cv_lib_dgc_dg_sys_info=yes | |
12895 else | |
12896 echo "$as_me: failed program was:" >&5 | |
12897 cat conftest.$ac_ext >&5 | |
12898 ac_cv_lib_dgc_dg_sys_info=no | |
12899 fi | |
12900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12901 LIBS=$ac_check_lib_save_LIBS | |
12902 fi | |
12903 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 | |
12904 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 | |
12905 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
12906 cat >>confdefs.h <<_ACEOF | |
12907 #define HAVE_LIBDGC 1 | |
12908 _ACEOF | |
12909 | |
12910 LIBS="-ldgc $LIBS" | |
12911 | |
12912 fi | |
12913 | |
12914 fi | |
12915 | |
12916 | |
12917 | |
12918 if test "${ac_cv_header_locale_h+set}" = set; then | |
12919 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
12920 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
12921 if test "${ac_cv_header_locale_h+set}" = set; then | |
12922 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12923 fi | |
12924 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
12925 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
12926 else | |
12927 # Is the header compilable? | |
12928 echo "$as_me:$LINENO: checking locale.h usability" >&5 | |
12929 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 | |
12930 cat >conftest.$ac_ext <<_ACEOF | |
12931 #line $LINENO "configure" | |
12932 #include "confdefs.h" | |
12933 $ac_includes_default | |
12934 #include <locale.h> | |
12935 _ACEOF | |
12936 rm -f conftest.$ac_objext | |
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12938 (eval $ac_compile) 2>&5 | |
12939 ac_status=$? | |
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12941 (exit $ac_status); } && | |
12942 { ac_try='test -s conftest.$ac_objext' | |
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12944 (eval $ac_try) 2>&5 | |
12945 ac_status=$? | |
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12947 (exit $ac_status); }; }; then | |
12948 ac_header_compiler=yes | |
12949 else | |
12950 echo "$as_me: failed program was:" >&5 | |
12951 cat conftest.$ac_ext >&5 | |
12952 ac_header_compiler=no | |
12953 fi | |
12954 rm -f conftest.$ac_objext conftest.$ac_ext | |
12955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12956 echo "${ECHO_T}$ac_header_compiler" >&6 | |
12957 | |
12958 # Is the header present? | |
12959 echo "$as_me:$LINENO: checking locale.h presence" >&5 | |
12960 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 | |
12961 cat >conftest.$ac_ext <<_ACEOF | |
12962 #line $LINENO "configure" | |
12963 #include "confdefs.h" | |
12964 #include <locale.h> | |
12965 _ACEOF | |
12966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12968 ac_status=$? | |
12969 egrep -v '^ *\+' conftest.er1 >conftest.err | |
12970 rm -f conftest.er1 | |
12971 cat conftest.err >&5 | |
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12973 (exit $ac_status); } >/dev/null; then | |
12974 if test -s conftest.err; then | |
12975 ac_cpp_err=$ac_c_preproc_warn_flag | |
12976 else | |
12977 ac_cpp_err= | |
12978 fi | |
12979 else | |
12980 ac_cpp_err=yes | |
12981 fi | |
12982 if test -z "$ac_cpp_err"; then | |
12983 ac_header_preproc=yes | |
12984 else | |
12985 echo "$as_me: failed program was:" >&5 | |
12986 cat conftest.$ac_ext >&5 | |
12987 ac_header_preproc=no | |
12988 fi | |
12989 rm -f conftest.err conftest.$ac_ext | |
12990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12991 echo "${ECHO_T}$ac_header_preproc" >&6 | |
12992 | |
12993 # So? What about this header? | |
12994 case $ac_header_compiler:$ac_header_preproc in | |
12995 yes:no ) | |
12996 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12997 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12998 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
12999 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
13000 no:yes ) | |
13001 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 | |
13002 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
13003 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 | |
13004 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
13005 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 | |
13006 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};; | |
13007 esac | |
13008 echo "$as_me:$LINENO: checking for locale.h" >&5 | |
13009 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 | |
13010 if test "${ac_cv_header_locale_h+set}" = set; then | |
13011 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13012 else | |
13013 ac_cv_header_locale_h=$ac_header_preproc | |
13014 fi | |
13015 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 | |
13016 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 | |
13017 | |
13018 fi | |
13019 | |
13020 | |
13021 | |
13022 for ac_func in setlocale | |
13023 do | |
13024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13025 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13027 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13028 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13029 else | |
13030 cat >conftest.$ac_ext <<_ACEOF | |
13031 #line $LINENO "configure" | |
13032 #include "confdefs.h" | |
13033 /* System header to define __stub macros and hopefully few prototypes, | |
13034 which can conflict with char $ac_func (); below. */ | |
13035 #include <assert.h> | |
13036 /* Override any gcc2 internal prototype to avoid an error. */ | |
13037 #ifdef __cplusplus | |
13038 extern "C" | |
13039 #endif | |
13040 /* We use char because int might match the return type of a gcc2 | |
13041 builtin and then its argument prototype would still apply. */ | |
13042 char $ac_func (); | |
13043 char (*f) (); | |
13044 | |
13045 #ifdef F77_DUMMY_MAIN | |
13046 # ifdef __cplusplus | |
13047 extern "C" | |
13048 # endif | |
13049 int F77_DUMMY_MAIN() { return 1; } | |
13050 #endif | |
13051 int | |
13052 main () | |
13053 { | |
13054 /* The GNU C library defines this for functions which it implements | |
13055 to always fail with ENOSYS. Some functions are actually named | |
13056 something starting with __ and the normal name is an alias. */ | |
13057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13058 choke me | |
13059 #else | |
13060 f = $ac_func; | |
13061 #endif | |
13062 | |
13063 ; | |
13064 return 0; | |
13065 } | |
13066 _ACEOF | |
13067 rm -f conftest.$ac_objext conftest$ac_exeext | |
13068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13069 (eval $ac_link) 2>&5 | |
13070 ac_status=$? | |
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13072 (exit $ac_status); } && | |
13073 { ac_try='test -s conftest$ac_exeext' | |
13074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13075 (eval $ac_try) 2>&5 | |
13076 ac_status=$? | |
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13078 (exit $ac_status); }; }; then | |
13079 eval "$as_ac_var=yes" | |
13080 else | |
13081 echo "$as_me: failed program was:" >&5 | |
13082 cat conftest.$ac_ext >&5 | |
13083 eval "$as_ac_var=no" | |
13084 fi | |
13085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13086 fi | |
13087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13089 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13090 cat >>confdefs.h <<_ACEOF | |
13091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13092 _ACEOF | |
13093 | |
13094 fi | |
13095 done | |
13096 | |
13097 | |
13098 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
13099 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
13100 # Irix 4.0.5F has the header but not the library. | |
13101 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
13102 ac_have_func=yes | |
13103 | |
13104 cat >>confdefs.h <<\_ACEOF | |
13105 #define SVR4 1 | |
13106 _ACEOF | |
13107 | |
13108 fi | |
13109 | |
13110 if test $ac_have_func = no; then | |
13111 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
13112 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
13113 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
13114 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
13115 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13116 fi | |
13117 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
13118 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
13119 else | |
13120 # Is the header compilable? | |
13121 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 | |
13122 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 | |
13123 cat >conftest.$ac_ext <<_ACEOF | |
13124 #line $LINENO "configure" | |
13125 #include "confdefs.h" | |
13126 $ac_includes_default | |
13127 #include <inq_stats/cpustats.h> | |
13128 _ACEOF | |
13129 rm -f conftest.$ac_objext | |
13130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13131 (eval $ac_compile) 2>&5 | |
13132 ac_status=$? | |
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13134 (exit $ac_status); } && | |
13135 { ac_try='test -s conftest.$ac_objext' | |
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13137 (eval $ac_try) 2>&5 | |
13138 ac_status=$? | |
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13140 (exit $ac_status); }; }; then | |
13141 ac_header_compiler=yes | |
13142 else | |
13143 echo "$as_me: failed program was:" >&5 | |
13144 cat conftest.$ac_ext >&5 | |
13145 ac_header_compiler=no | |
13146 fi | |
13147 rm -f conftest.$ac_objext conftest.$ac_ext | |
13148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13149 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13150 | |
13151 # Is the header present? | |
13152 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 | |
13153 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 | |
13154 cat >conftest.$ac_ext <<_ACEOF | |
13155 #line $LINENO "configure" | |
13156 #include "confdefs.h" | |
13157 #include <inq_stats/cpustats.h> | |
13158 _ACEOF | |
13159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13161 ac_status=$? | |
13162 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13163 rm -f conftest.er1 | |
13164 cat conftest.err >&5 | |
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13166 (exit $ac_status); } >/dev/null; then | |
13167 if test -s conftest.err; then | |
13168 ac_cpp_err=$ac_c_preproc_warn_flag | |
13169 else | |
13170 ac_cpp_err= | |
13171 fi | |
13172 else | |
13173 ac_cpp_err=yes | |
13174 fi | |
13175 if test -z "$ac_cpp_err"; then | |
13176 ac_header_preproc=yes | |
13177 else | |
13178 echo "$as_me: failed program was:" >&5 | |
13179 cat conftest.$ac_ext >&5 | |
13180 ac_header_preproc=no | |
13181 fi | |
13182 rm -f conftest.err conftest.$ac_ext | |
13183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13184 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13185 | |
13186 # So? What about this header? | |
13187 case $ac_header_compiler:$ac_header_preproc in | |
13188 yes:no ) | |
13189 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13190 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13191 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13192 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13193 no:yes ) | |
13194 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 | |
13195 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
13196 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 | |
13197 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
13198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13199 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13200 esac | |
13201 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 | |
13202 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 | |
13203 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
13204 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13205 else | |
13206 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
13207 fi | |
13208 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 | |
13209 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 | |
13210 | |
13211 fi | |
13212 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
13213 ac_have_func=yes | |
13214 | |
13215 cat >>confdefs.h <<\_ACEOF | |
13216 #define UMAX 1 | |
13217 _ACEOF | |
13218 | |
13219 | |
13220 cat >>confdefs.h <<\_ACEOF | |
13221 #define UMAX4_3 1 | |
13222 _ACEOF | |
13223 | |
13224 fi | |
13225 | |
13226 | |
13227 fi | |
13228 | |
13229 if test $ac_have_func = no; then | |
13230 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
13231 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
13232 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
13233 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
13234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13235 fi | |
13236 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
13237 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
13238 else | |
13239 # Is the header compilable? | |
13240 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 | |
13241 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 | |
13242 cat >conftest.$ac_ext <<_ACEOF | |
13243 #line $LINENO "configure" | |
13244 #include "confdefs.h" | |
13245 $ac_includes_default | |
13246 #include <sys/cpustats.h> | |
13247 _ACEOF | |
13248 rm -f conftest.$ac_objext | |
13249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13250 (eval $ac_compile) 2>&5 | |
13251 ac_status=$? | |
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13253 (exit $ac_status); } && | |
13254 { ac_try='test -s conftest.$ac_objext' | |
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13256 (eval $ac_try) 2>&5 | |
13257 ac_status=$? | |
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13259 (exit $ac_status); }; }; then | |
13260 ac_header_compiler=yes | |
13261 else | |
13262 echo "$as_me: failed program was:" >&5 | |
13263 cat conftest.$ac_ext >&5 | |
13264 ac_header_compiler=no | |
13265 fi | |
13266 rm -f conftest.$ac_objext conftest.$ac_ext | |
13267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13268 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13269 | |
13270 # Is the header present? | |
13271 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 | |
13272 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 | |
13273 cat >conftest.$ac_ext <<_ACEOF | |
13274 #line $LINENO "configure" | |
13275 #include "confdefs.h" | |
13276 #include <sys/cpustats.h> | |
13277 _ACEOF | |
13278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13280 ac_status=$? | |
13281 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13282 rm -f conftest.er1 | |
13283 cat conftest.err >&5 | |
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13285 (exit $ac_status); } >/dev/null; then | |
13286 if test -s conftest.err; then | |
13287 ac_cpp_err=$ac_c_preproc_warn_flag | |
13288 else | |
13289 ac_cpp_err= | |
13290 fi | |
13291 else | |
13292 ac_cpp_err=yes | |
13293 fi | |
13294 if test -z "$ac_cpp_err"; then | |
13295 ac_header_preproc=yes | |
13296 else | |
13297 echo "$as_me: failed program was:" >&5 | |
13298 cat conftest.$ac_ext >&5 | |
13299 ac_header_preproc=no | |
13300 fi | |
13301 rm -f conftest.err conftest.$ac_ext | |
13302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13303 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13304 | |
13305 # So? What about this header? | |
13306 case $ac_header_compiler:$ac_header_preproc in | |
13307 yes:no ) | |
13308 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13309 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13310 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13311 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13312 no:yes ) | |
13313 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 | |
13314 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
13315 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 | |
13316 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
13317 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 | |
13318 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};; | |
13319 esac | |
13320 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 | |
13321 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 | |
13322 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
13323 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13324 else | |
13325 ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
13326 fi | |
13327 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 | |
13328 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 | |
13329 | |
13330 fi | |
13331 if test $ac_cv_header_sys_cpustats_h = yes; then | |
13332 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF | |
13333 #define UMAX 1 | |
13334 _ACEOF | |
13335 | |
13336 fi | |
13337 | |
13338 | |
13339 fi | |
13340 | |
13341 if test $ac_have_func = no; then | |
13342 | |
13343 for ac_header in mach/mach.h | |
13344 do | |
13345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13346 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13347 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13349 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13350 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13351 fi | |
13352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13353 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13354 else | |
13355 # Is the header compilable? | |
13356 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13358 cat >conftest.$ac_ext <<_ACEOF | |
13359 #line $LINENO "configure" | |
13360 #include "confdefs.h" | |
13361 $ac_includes_default | |
13362 #include <$ac_header> | |
13363 _ACEOF | |
13364 rm -f conftest.$ac_objext | |
13365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13366 (eval $ac_compile) 2>&5 | |
13367 ac_status=$? | |
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13369 (exit $ac_status); } && | |
13370 { ac_try='test -s conftest.$ac_objext' | |
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13372 (eval $ac_try) 2>&5 | |
13373 ac_status=$? | |
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13375 (exit $ac_status); }; }; then | |
13376 ac_header_compiler=yes | |
13377 else | |
13378 echo "$as_me: failed program was:" >&5 | |
13379 cat conftest.$ac_ext >&5 | |
13380 ac_header_compiler=no | |
13381 fi | |
13382 rm -f conftest.$ac_objext conftest.$ac_ext | |
13383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13384 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13385 | |
13386 # Is the header present? | |
13387 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13389 cat >conftest.$ac_ext <<_ACEOF | |
13390 #line $LINENO "configure" | |
13391 #include "confdefs.h" | |
13392 #include <$ac_header> | |
13393 _ACEOF | |
13394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13396 ac_status=$? | |
13397 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13398 rm -f conftest.er1 | |
13399 cat conftest.err >&5 | |
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13401 (exit $ac_status); } >/dev/null; then | |
13402 if test -s conftest.err; then | |
13403 ac_cpp_err=$ac_c_preproc_warn_flag | |
13404 else | |
13405 ac_cpp_err= | |
13406 fi | |
13407 else | |
13408 ac_cpp_err=yes | |
13409 fi | |
13410 if test -z "$ac_cpp_err"; then | |
13411 ac_header_preproc=yes | |
13412 else | |
13413 echo "$as_me: failed program was:" >&5 | |
13414 cat conftest.$ac_ext >&5 | |
13415 ac_header_preproc=no | |
13416 fi | |
13417 rm -f conftest.err conftest.$ac_ext | |
13418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13419 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13420 | |
13421 # So? What about this header? | |
13422 case $ac_header_compiler:$ac_header_preproc in | |
13423 yes:no ) | |
13424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13428 no:yes ) | |
13429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13435 esac | |
13436 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13439 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13440 else | |
13441 eval "$as_ac_Header=$ac_header_preproc" | |
13442 fi | |
13443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13445 | |
13446 fi | |
13447 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13448 cat >>confdefs.h <<_ACEOF | |
13449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13450 _ACEOF | |
13451 | |
13452 fi | |
13453 | |
13454 done | |
13455 | |
13456 fi | |
13457 | |
13458 | |
13459 for ac_header in nlist.h | |
13460 do | |
13461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13462 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13463 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13465 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13466 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13467 fi | |
13468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13470 else | |
13471 # Is the header compilable? | |
13472 echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13474 cat >conftest.$ac_ext <<_ACEOF | |
13475 #line $LINENO "configure" | |
13476 #include "confdefs.h" | |
13477 $ac_includes_default | |
13478 #include <$ac_header> | |
13479 _ACEOF | |
13480 rm -f conftest.$ac_objext | |
13481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13482 (eval $ac_compile) 2>&5 | |
13483 ac_status=$? | |
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13485 (exit $ac_status); } && | |
13486 { ac_try='test -s conftest.$ac_objext' | |
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13488 (eval $ac_try) 2>&5 | |
13489 ac_status=$? | |
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13491 (exit $ac_status); }; }; then | |
13492 ac_header_compiler=yes | |
13493 else | |
13494 echo "$as_me: failed program was:" >&5 | |
13495 cat conftest.$ac_ext >&5 | |
13496 ac_header_compiler=no | |
13497 fi | |
13498 rm -f conftest.$ac_objext conftest.$ac_ext | |
13499 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13500 echo "${ECHO_T}$ac_header_compiler" >&6 | |
13501 | |
13502 # Is the header present? | |
13503 echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13504 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13505 cat >conftest.$ac_ext <<_ACEOF | |
13506 #line $LINENO "configure" | |
13507 #include "confdefs.h" | |
13508 #include <$ac_header> | |
13509 _ACEOF | |
13510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13512 ac_status=$? | |
13513 egrep -v '^ *\+' conftest.er1 >conftest.err | |
13514 rm -f conftest.er1 | |
13515 cat conftest.err >&5 | |
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13517 (exit $ac_status); } >/dev/null; then | |
13518 if test -s conftest.err; then | |
13519 ac_cpp_err=$ac_c_preproc_warn_flag | |
13520 else | |
13521 ac_cpp_err= | |
13522 fi | |
13523 else | |
13524 ac_cpp_err=yes | |
13525 fi | |
13526 if test -z "$ac_cpp_err"; then | |
13527 ac_header_preproc=yes | |
13528 else | |
13529 echo "$as_me: failed program was:" >&5 | |
13530 cat conftest.$ac_ext >&5 | |
13531 ac_header_preproc=no | |
13532 fi | |
13533 rm -f conftest.err conftest.$ac_ext | |
13534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13535 echo "${ECHO_T}$ac_header_preproc" >&6 | |
13536 | |
13537 # So? What about this header? | |
13538 case $ac_header_compiler:$ac_header_preproc in | |
13539 yes:no ) | |
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13544 no:yes ) | |
13545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
13551 esac | |
13552 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13554 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13555 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13556 else | |
13557 eval "$as_ac_Header=$ac_header_preproc" | |
13558 fi | |
13559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13561 | |
13562 fi | |
13563 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13564 cat >>confdefs.h <<_ACEOF | |
13565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13566 _ACEOF | |
13567 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 | |
13568 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 | |
13569 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
13570 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13571 else | |
13572 cat >conftest.$ac_ext <<_ACEOF | |
13573 #line $LINENO "configure" | |
13574 #include "confdefs.h" | |
13575 #include <nlist.h> | |
13576 | |
13577 #ifdef F77_DUMMY_MAIN | |
13578 # ifdef __cplusplus | |
13579 extern "C" | |
13580 # endif | |
13581 int F77_DUMMY_MAIN() { return 1; } | |
13582 #endif | |
13583 int | |
13584 main () | |
13585 { | |
13586 static struct nlist ac_aggr; | |
13587 if (ac_aggr.n_un.n_name) | |
13588 return 0; | |
13589 ; | |
13590 return 0; | |
13591 } | |
13592 _ACEOF | |
13593 rm -f conftest.$ac_objext | |
13594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13595 (eval $ac_compile) 2>&5 | |
13596 ac_status=$? | |
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13598 (exit $ac_status); } && | |
13599 { ac_try='test -s conftest.$ac_objext' | |
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13601 (eval $ac_try) 2>&5 | |
13602 ac_status=$? | |
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13604 (exit $ac_status); }; }; then | |
13605 ac_cv_member_struct_nlist_n_un_n_name=yes | |
13606 else | |
13607 echo "$as_me: failed program was:" >&5 | |
13608 cat conftest.$ac_ext >&5 | |
13609 ac_cv_member_struct_nlist_n_un_n_name=no | |
13610 fi | |
13611 rm -f conftest.$ac_objext conftest.$ac_ext | |
13612 fi | |
13613 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 | |
13614 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 | |
13615 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
13616 | |
13617 cat >>confdefs.h <<_ACEOF | |
13618 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
13619 _ACEOF | |
13620 | |
13621 | |
13622 cat >>confdefs.h <<\_ACEOF | |
13623 #define NLIST_NAME_UNION 1 | |
13624 _ACEOF | |
13625 | |
13626 fi | |
13627 | |
13628 | |
13629 fi | |
13630 | |
13631 done | |
13632 | |
13633 fi | |
13634 done | |
13635 | |
13636 | |
13637 # Some definitions of getloadavg require that the program be installed setgid. | |
13638 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 | |
13639 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 | |
13640 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
13641 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13642 else | |
13643 cat >conftest.$ac_ext <<_ACEOF | |
13644 #line $LINENO "configure" | |
13645 #include "confdefs.h" | |
13646 #include "$srcdir/getloadavg.c" | |
13647 #ifdef LDAV_PRIVILEGED | |
13648 Yowza Am I SETGID yet | |
13649 #endif | |
13650 _ACEOF | |
13651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13652 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
13653 ac_cv_func_getloadavg_setgid=yes | |
13654 else | |
13655 ac_cv_func_getloadavg_setgid=no | |
13656 fi | |
13657 rm -f conftest* | |
13658 | |
13659 fi | |
13660 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 | |
13661 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 | |
13662 if test $ac_cv_func_getloadavg_setgid = yes; then | |
13663 NEED_SETGID=true | |
13664 | |
13665 cat >>confdefs.h <<\_ACEOF | |
13666 #define GETLOADAVG_PRIVILEGED 1 | |
13667 _ACEOF | |
13668 | |
13669 else | |
13670 NEED_SETGID=false | |
13671 fi | |
13672 | |
13673 if test $ac_cv_func_getloadavg_setgid = yes; then | |
13674 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 | |
13675 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 | |
13676 if test "${ac_cv_group_kmem+set}" = set; then | |
13677 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13678 else | |
13679 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
13680 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
13681 # If we got an error (system does not support symlinks), try without -L. | |
13682 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
13683 ac_cv_group_kmem=`echo $ac_ls_output \ | |
13684 | sed -ne 's/[ ][ ]*/ /g; | |
13685 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
13686 / /s/.* //;p;'` | |
13687 | |
13688 fi | |
13689 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 | |
13690 echo "${ECHO_T}$ac_cv_group_kmem" >&6 | |
13691 KMEM_GROUP=$ac_cv_group_kmem | |
13692 fi | |
13693 if test "x$ac_save_LIBS" = x; then | |
13694 GETLOADAVG_LIBS=$LIBS | |
13695 else | |
13696 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
13697 fi | |
13698 LIBS=$ac_save_LIBS | |
13699 | |
13700 | |
13701 | |
13702 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
13703 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 | |
13704 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
13705 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13706 else | |
13707 while :; do | |
13708 ac_cv_sys_largefile_source=no | |
13709 cat >conftest.$ac_ext <<_ACEOF | |
13710 #line $LINENO "configure" | |
13711 #include "confdefs.h" | |
13712 #include <stdio.h> | |
13713 #ifdef F77_DUMMY_MAIN | |
13714 # ifdef __cplusplus | |
13715 extern "C" | |
13716 # endif | |
13717 int F77_DUMMY_MAIN() { return 1; } | |
13718 #endif | |
13719 int | |
13720 main () | |
13721 { | |
13722 return !fseeko; | |
13723 ; | |
13724 return 0; | |
13725 } | |
13726 _ACEOF | |
13727 rm -f conftest.$ac_objext | |
13728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13729 (eval $ac_compile) 2>&5 | |
13730 ac_status=$? | |
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13732 (exit $ac_status); } && | |
13733 { ac_try='test -s conftest.$ac_objext' | |
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13735 (eval $ac_try) 2>&5 | |
13736 ac_status=$? | |
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13738 (exit $ac_status); }; }; then | |
13739 break | |
13740 else | |
13741 echo "$as_me: failed program was:" >&5 | |
13742 cat conftest.$ac_ext >&5 | |
13743 fi | |
13744 rm -f conftest.$ac_objext conftest.$ac_ext | |
13745 cat >conftest.$ac_ext <<_ACEOF | |
13746 #line $LINENO "configure" | |
13747 #include "confdefs.h" | |
13748 #define _LARGEFILE_SOURCE 1 | |
13749 #include <stdio.h> | |
13750 #ifdef F77_DUMMY_MAIN | |
13751 # ifdef __cplusplus | |
13752 extern "C" | |
13753 # endif | |
13754 int F77_DUMMY_MAIN() { return 1; } | |
13755 #endif | |
13756 int | |
13757 main () | |
13758 { | |
13759 return !fseeko; | |
13760 ; | |
13761 return 0; | |
13762 } | |
13763 _ACEOF | |
13764 rm -f conftest.$ac_objext | |
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13766 (eval $ac_compile) 2>&5 | |
13767 ac_status=$? | |
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13769 (exit $ac_status); } && | |
13770 { ac_try='test -s conftest.$ac_objext' | |
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13772 (eval $ac_try) 2>&5 | |
13773 ac_status=$? | |
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13775 (exit $ac_status); }; }; then | |
13776 ac_cv_sys_largefile_source=1; break | |
13777 else | |
13778 echo "$as_me: failed program was:" >&5 | |
13779 cat conftest.$ac_ext >&5 | |
13780 fi | |
13781 rm -f conftest.$ac_objext conftest.$ac_ext | |
13782 break | |
13783 done | |
13784 fi | |
13785 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
13786 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
13787 if test "$ac_cv_sys_largefile_source" != no; then | |
13788 | |
13789 cat >>confdefs.h <<_ACEOF | |
13790 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
13791 _ACEOF | |
13792 | |
13793 fi | |
13794 rm -f conftest* | |
13795 | |
13796 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
13797 # in glibc 2.1.3, but that breaks too many other things. | |
13798 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
13799 echo "$as_me:$LINENO: checking for fseeko" >&5 | |
13800 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
13801 if test "${ac_cv_func_fseeko+set}" = set; then | |
13802 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13803 else | |
13804 cat >conftest.$ac_ext <<_ACEOF | |
13805 #line $LINENO "configure" | |
13806 #include "confdefs.h" | |
13807 #include <stdio.h> | |
13808 #ifdef F77_DUMMY_MAIN | |
13809 # ifdef __cplusplus | |
13810 extern "C" | |
13811 # endif | |
13812 int F77_DUMMY_MAIN() { return 1; } | |
13813 #endif | |
13814 int | |
13815 main () | |
13816 { | |
13817 return fseeko && fseeko (stdin, 0, 0); | |
13818 ; | |
13819 return 0; | |
13820 } | |
13821 _ACEOF | |
13822 rm -f conftest.$ac_objext conftest$ac_exeext | |
13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13824 (eval $ac_link) 2>&5 | |
13825 ac_status=$? | |
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13827 (exit $ac_status); } && | |
13828 { ac_try='test -s conftest$ac_exeext' | |
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13830 (eval $ac_try) 2>&5 | |
13831 ac_status=$? | |
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13833 (exit $ac_status); }; }; then | |
13834 ac_cv_func_fseeko=yes | |
13835 else | |
13836 echo "$as_me: failed program was:" >&5 | |
13837 cat conftest.$ac_ext >&5 | |
13838 ac_cv_func_fseeko=no | |
13839 fi | |
13840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13841 fi | |
13842 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
13843 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
13844 if test $ac_cv_func_fseeko = yes; then | |
13845 | |
13846 cat >>confdefs.h <<\_ACEOF | |
13847 #define HAVE_FSEEKO 1 | |
13848 _ACEOF | |
13849 | |
13850 fi | |
13851 | |
13852 | |
13853 # UNIX98 PTYs. | |
13854 | |
13855 for ac_func in grantpt | |
13856 do | |
13857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13858 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13860 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13861 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13862 else | |
13863 cat >conftest.$ac_ext <<_ACEOF | |
13864 #line $LINENO "configure" | |
13865 #include "confdefs.h" | |
13866 /* System header to define __stub macros and hopefully few prototypes, | |
13867 which can conflict with char $ac_func (); below. */ | |
13868 #include <assert.h> | |
13869 /* Override any gcc2 internal prototype to avoid an error. */ | |
13870 #ifdef __cplusplus | |
13871 extern "C" | |
13872 #endif | |
13873 /* We use char because int might match the return type of a gcc2 | |
13874 builtin and then its argument prototype would still apply. */ | |
13875 char $ac_func (); | |
13876 char (*f) (); | |
13877 | |
13878 #ifdef F77_DUMMY_MAIN | |
13879 # ifdef __cplusplus | |
13880 extern "C" | |
13881 # endif | |
13882 int F77_DUMMY_MAIN() { return 1; } | |
13883 #endif | |
13884 int | |
13885 main () | |
13886 { | |
13887 /* The GNU C library defines this for functions which it implements | |
13888 to always fail with ENOSYS. Some functions are actually named | |
13889 something starting with __ and the normal name is an alias. */ | |
13890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13891 choke me | |
13892 #else | |
13893 f = $ac_func; | |
13894 #endif | |
13895 | |
13896 ; | |
13897 return 0; | |
13898 } | |
13899 _ACEOF | |
13900 rm -f conftest.$ac_objext conftest$ac_exeext | |
13901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13902 (eval $ac_link) 2>&5 | |
13903 ac_status=$? | |
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13905 (exit $ac_status); } && | |
13906 { ac_try='test -s conftest$ac_exeext' | |
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13908 (eval $ac_try) 2>&5 | |
13909 ac_status=$? | |
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13911 (exit $ac_status); }; }; then | |
13912 eval "$as_ac_var=yes" | |
13913 else | |
13914 echo "$as_me: failed program was:" >&5 | |
13915 cat conftest.$ac_ext >&5 | |
13916 eval "$as_ac_var=no" | |
13917 fi | |
13918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13919 fi | |
13920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13922 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13923 cat >>confdefs.h <<_ACEOF | |
13924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13925 _ACEOF | |
13926 | |
13927 fi | |
13928 done | |
13929 | |
13930 | |
13931 # PTY-related GNU extensions. | |
13932 | |
13933 for ac_func in getpt | |
13934 do | |
13935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13936 echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13938 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13939 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13940 else | |
13941 cat >conftest.$ac_ext <<_ACEOF | |
13942 #line $LINENO "configure" | |
13943 #include "confdefs.h" | |
13944 /* System header to define __stub macros and hopefully few prototypes, | |
13945 which can conflict with char $ac_func (); below. */ | |
13946 #include <assert.h> | |
13947 /* Override any gcc2 internal prototype to avoid an error. */ | |
13948 #ifdef __cplusplus | |
13949 extern "C" | |
13950 #endif | |
13951 /* We use char because int might match the return type of a gcc2 | |
13952 builtin and then its argument prototype would still apply. */ | |
13953 char $ac_func (); | |
13954 char (*f) (); | |
13955 | |
13956 #ifdef F77_DUMMY_MAIN | |
13957 # ifdef __cplusplus | |
13958 extern "C" | |
13959 # endif | |
13960 int F77_DUMMY_MAIN() { return 1; } | |
13961 #endif | |
13962 int | |
13963 main () | |
13964 { | |
13965 /* The GNU C library defines this for functions which it implements | |
13966 to always fail with ENOSYS. Some functions are actually named | |
13967 something starting with __ and the normal name is an alias. */ | |
13968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13969 choke me | |
13970 #else | |
13971 f = $ac_func; | |
13972 #endif | |
13973 | |
13974 ; | |
13975 return 0; | |
13976 } | |
13977 _ACEOF | |
13978 rm -f conftest.$ac_objext conftest$ac_exeext | |
13979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13980 (eval $ac_link) 2>&5 | |
13981 ac_status=$? | |
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13983 (exit $ac_status); } && | |
13984 { ac_try='test -s conftest$ac_exeext' | |
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13986 (eval $ac_try) 2>&5 | |
13987 ac_status=$? | |
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13989 (exit $ac_status); }; }; then | |
13990 eval "$as_ac_var=yes" | |
13991 else | |
13992 echo "$as_me: failed program was:" >&5 | |
13993 cat conftest.$ac_ext >&5 | |
13994 eval "$as_ac_var=no" | |
13995 fi | |
13996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13997 fi | |
13998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14000 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14001 cat >>confdefs.h <<_ACEOF | |
14002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14003 _ACEOF | |
14004 | |
14005 fi | 12518 fi |
14006 done | 12519 done |
14007 | 12520 |
14008 | 12521 |
14009 # Check this now, so that we will NOT find the above functions in ncurses. | 12522 # Check this now, so that we will NOT find the above functions in ncurses. |
14337 | 12850 |
14338 fi | 12851 fi |
14339 | 12852 |
14340 if test "$resolv" = yes ; then | 12853 if test "$resolv" = yes ; then |
14341 RESOLVLIB=-lresolv | 12854 RESOLVLIB=-lresolv |
14342 cat >>confdefs.h <<\_ACEOF | 12855 |
12856 cat >>confdefs.h <<\_ACEOF | |
14343 #define HAVE_LIBRESOLV 1 | 12857 #define HAVE_LIBRESOLV 1 |
14344 _ACEOF | 12858 _ACEOF |
14345 | 12859 |
14346 else | 12860 else |
14347 RESOLVLIB= | 12861 RESOLVLIB= |
14467 LIBS=$ac_check_lib_save_LIBS | 12981 LIBS=$ac_check_lib_save_LIBS |
14468 fi | 12982 fi |
14469 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 | 12983 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
14470 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 | 12984 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
14471 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then | 12985 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
14472 cat >>confdefs.h <<\_ACEOF | 12986 |
12987 cat >>confdefs.h <<\_ACEOF | |
14473 #define HAVE_LIBHESIOD 1 | 12988 #define HAVE_LIBHESIOD 1 |
14474 _ACEOF | 12989 _ACEOF |
14475 | 12990 |
14476 else | 12991 else |
14477 : | 12992 : |
16068 fi | 14583 fi |
16069 fi | 14584 fi |
16070 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 | 14585 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
16071 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 | 14586 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
16072 if test $emacs_cv_localtime_cache = yes; then | 14587 if test $emacs_cv_localtime_cache = yes; then |
16073 cat >>confdefs.h <<\_ACEOF | 14588 |
14589 cat >>confdefs.h <<\_ACEOF | |
16074 #define LOCALTIME_CACHE 1 | 14590 #define LOCALTIME_CACHE 1 |
16075 _ACEOF | 14591 _ACEOF |
16076 | 14592 |
16077 fi | 14593 fi |
16078 | 14594 |
16151 _ACEOF | 14667 _ACEOF |
16152 | 14668 |
16153 fi | 14669 fi |
16154 done | 14670 done |
16155 | 14671 |
16156 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | 14672 if test $ac_cv_func_gettimeofday = yes; then |
14673 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
16157 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 | 14674 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
16158 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | 14675 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then |
16159 echo $ECHO_N "(cached) $ECHO_C" >&6 | 14676 echo $ECHO_N "(cached) $ECHO_C" >&6 |
16160 else | 14677 else |
16161 cat >conftest.$ac_ext <<_ACEOF | 14678 cat >conftest.$ac_ext <<_ACEOF |
16180 #endif | 14697 #endif |
16181 int | 14698 int |
16182 main () | 14699 main () |
16183 { | 14700 { |
16184 struct timeval time; | 14701 struct timeval time; |
16185 gettimeofday (&time, 0); | 14702 gettimeofday (&time, 0); |
16186 ; | 14703 ; |
16187 return 0; | 14704 return 0; |
16188 } | 14705 } |
16189 _ACEOF | 14706 _ACEOF |
16190 rm -f conftest.$ac_objext | 14707 rm -f conftest.$ac_objext |
16207 fi | 14724 fi |
16208 rm -f conftest.$ac_objext conftest.$ac_ext | 14725 rm -f conftest.$ac_objext conftest.$ac_ext |
16209 fi | 14726 fi |
16210 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 | 14727 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
16211 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 | 14728 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
16212 if test $emacs_cv_gettimeofday_two_arguments = no; then | 14729 if test $emacs_cv_gettimeofday_two_arguments = no; then |
16213 cat >>confdefs.h <<\_ACEOF | 14730 |
14731 cat >>confdefs.h <<\_ACEOF | |
16214 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | 14732 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
16215 _ACEOF | 14733 _ACEOF |
16216 | 14734 |
14735 fi | |
16217 fi | 14736 fi |
16218 fi | 14737 fi |
16219 | 14738 |
16220 if test "$ac_cv_func_gettimeofday" = yes; then | 14739 if test "$ac_cv_func_gettimeofday" = yes; then |
16221 echo "$as_me:$LINENO: checking for struct timezone" >&5 | 14740 echo "$as_me:$LINENO: checking for struct timezone" >&5 |
16598 fi | 15117 fi |
16599 | 15118 |
16600 | 15119 |
16601 fi | 15120 fi |
16602 if test $ok_so_far = yes; then | 15121 if test $ok_so_far = yes; then |
16603 cat >>confdefs.h <<\_ACEOF | 15122 |
15123 cat >>confdefs.h <<\_ACEOF | |
16604 #define HAVE_INET_SOCKETS 1 | 15124 #define HAVE_INET_SOCKETS 1 |
16605 _ACEOF | 15125 _ACEOF |
16606 | 15126 |
16607 fi | 15127 fi |
16608 | 15128 |
16609 if test -f /usr/lpp/X11/bin/smt.exp; then | 15129 if test -f /usr/lpp/X11/bin/smt.exp; then |
16610 cat >>confdefs.h <<\_ACEOF | 15130 |
15131 cat >>confdefs.h <<\_ACEOF | |
16611 #define HAVE_AIX_SMT_EXP 1 | 15132 #define HAVE_AIX_SMT_EXP 1 |
16612 _ACEOF | 15133 _ACEOF |
16613 | 15134 |
16614 fi | 15135 fi |
16615 | 15136 |
16616 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 | 15137 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
16617 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 | 15138 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
16618 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 15139 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
16619 echo "$as_me:$LINENO: result: yes" >&5 | 15140 echo "$as_me:$LINENO: result: yes" >&5 |
16620 echo "${ECHO_T}yes" >&6 | 15141 echo "${ECHO_T}yes" >&6 |
16621 cat >>confdefs.h <<\_ACEOF | 15142 |
15143 cat >>confdefs.h <<\_ACEOF | |
16622 #define HAVE_DEV_PTMX 1 | 15144 #define HAVE_DEV_PTMX 1 |
16623 _ACEOF | 15145 _ACEOF |
16624 | 15146 |
16625 else | 15147 else |
16626 echo "$as_me:$LINENO: result: no" >&5 | 15148 echo "$as_me:$LINENO: result: no" >&5 |
17207 | 15729 |
17208 | 15730 |
17209 | 15731 |
17210 | 15732 |
17211 | 15733 |
15734 | |
17212 cat >>confdefs.h <<_ACEOF | 15735 cat >>confdefs.h <<_ACEOF |
17213 #define EMACS_CONFIGURATION "${canonical}" | 15736 #define EMACS_CONFIGURATION "${canonical}" |
17214 _ACEOF | 15737 _ACEOF |
17215 | 15738 |
15739 | |
17216 cat >>confdefs.h <<_ACEOF | 15740 cat >>confdefs.h <<_ACEOF |
17217 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | 15741 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
17218 _ACEOF | 15742 _ACEOF |
17219 | 15743 |
15744 | |
17220 cat >>confdefs.h <<_ACEOF | 15745 cat >>confdefs.h <<_ACEOF |
17221 #define config_machfile "${machfile}" | 15746 #define config_machfile "${machfile}" |
17222 _ACEOF | 15747 _ACEOF |
17223 | 15748 |
15749 | |
17224 cat >>confdefs.h <<_ACEOF | 15750 cat >>confdefs.h <<_ACEOF |
17225 #define config_opsysfile "${opsysfile}" | 15751 #define config_opsysfile "${opsysfile}" |
17226 _ACEOF | 15752 _ACEOF |
17227 | 15753 |
15754 | |
17228 cat >>confdefs.h <<_ACEOF | 15755 cat >>confdefs.h <<_ACEOF |
17229 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | 15756 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
17230 _ACEOF | 15757 _ACEOF |
17231 | 15758 |
15759 | |
17232 cat >>confdefs.h <<_ACEOF | 15760 cat >>confdefs.h <<_ACEOF |
17233 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | 15761 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
17234 _ACEOF | 15762 _ACEOF |
17235 | 15763 |
15764 | |
17236 cat >>confdefs.h <<_ACEOF | 15765 cat >>confdefs.h <<_ACEOF |
17237 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | 15766 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
17238 _ACEOF | 15767 _ACEOF |
17239 | 15768 |
15769 | |
17240 cat >>confdefs.h <<_ACEOF | 15770 cat >>confdefs.h <<_ACEOF |
17241 #define UNEXEC_SRC ${UNEXEC_SRC} | 15771 #define UNEXEC_SRC ${UNEXEC_SRC} |
17242 _ACEOF | 15772 _ACEOF |
17243 | 15773 |
17244 | 15774 |
17245 if test "${HAVE_X_WINDOWS}" = "yes" ; then | 15775 if test "${HAVE_X_WINDOWS}" = "yes" ; then |
17246 cat >>confdefs.h <<\_ACEOF | 15776 |
15777 cat >>confdefs.h <<\_ACEOF | |
17247 #define HAVE_X_WINDOWS 1 | 15778 #define HAVE_X_WINDOWS 1 |
17248 _ACEOF | 15779 _ACEOF |
17249 | 15780 |
17250 fi | 15781 fi |
17251 if test "${USE_X_TOOLKIT}" != "none" ; then | 15782 if test "${USE_X_TOOLKIT}" != "none" ; then |
17252 cat >>confdefs.h <<\_ACEOF | 15783 |
15784 cat >>confdefs.h <<\_ACEOF | |
17253 #define USE_X_TOOLKIT 1 | 15785 #define USE_X_TOOLKIT 1 |
17254 _ACEOF | 15786 _ACEOF |
17255 | 15787 |
17256 fi | 15788 fi |
17257 if test "${HAVE_X11}" = "yes" ; then | 15789 if test "${HAVE_X11}" = "yes" ; then |
17258 cat >>confdefs.h <<\_ACEOF | 15790 |
15791 cat >>confdefs.h <<\_ACEOF | |
17259 #define HAVE_X11 1 | 15792 #define HAVE_X11 1 |
17260 _ACEOF | 15793 _ACEOF |
17261 | 15794 |
17262 fi | 15795 fi |
17263 if test "${HAVE_XFREE386}" = "yes" ; then | 15796 if test "${HAVE_XFREE386}" = "yes" ; then |
17264 cat >>confdefs.h <<\_ACEOF | 15797 |
15798 cat >>confdefs.h <<\_ACEOF | |
17265 #define HAVE_XFREE386 1 | 15799 #define HAVE_XFREE386 1 |
17266 _ACEOF | 15800 _ACEOF |
17267 | 15801 |
17268 fi | 15802 fi |
17269 if test "${HAVE_MENUS}" = "yes" ; then | 15803 if test "${HAVE_MENUS}" = "yes" ; then |
17270 cat >>confdefs.h <<\_ACEOF | 15804 |
15805 cat >>confdefs.h <<\_ACEOF | |
17271 #define HAVE_MENUS 1 | 15806 #define HAVE_MENUS 1 |
17272 _ACEOF | 15807 _ACEOF |
17273 | 15808 |
17274 fi | 15809 fi |
17275 if test "${GNU_MALLOC}" = "yes" ; then | 15810 if test "${GNU_MALLOC}" = "yes" ; then |
17276 cat >>confdefs.h <<\_ACEOF | 15811 |
15812 cat >>confdefs.h <<\_ACEOF | |
17277 #define GNU_MALLOC 1 | 15813 #define GNU_MALLOC 1 |
17278 _ACEOF | 15814 _ACEOF |
17279 | 15815 |
17280 fi | 15816 fi |
17281 if test "${REL_ALLOC}" = "yes" ; then | 15817 if test "${REL_ALLOC}" = "yes" ; then |
17282 cat >>confdefs.h <<\_ACEOF | 15818 |
15819 cat >>confdefs.h <<\_ACEOF | |
17283 #define REL_ALLOC 1 | 15820 #define REL_ALLOC 1 |
17284 _ACEOF | 15821 _ACEOF |
17285 | 15822 |
17286 fi | 15823 fi |
17287 | 15824 |
17400 _ACEOF | 15937 _ACEOF |
17401 | 15938 |
17402 fi | 15939 fi |
17403 | 15940 |
17404 done | 15941 done |
15942 | |
15943 | |
15944 | |
15945 | |
17405 | 15946 |
17406 | 15947 |
17407 #### Report on what we decided to do. | 15948 #### Report on what we decided to do. |
17408 echo " | 15949 echo " |
17409 Configured for \`${canonical}'. | 15950 Configured for \`${canonical}'. |
18210 ac_top_srcdir=$ac_top_builddir$srcdir ;; | 16751 ac_top_srcdir=$ac_top_builddir$srcdir ;; |
18211 esac | 16752 esac |
18212 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 16753 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
18213 # absolute. | 16754 # absolute. |
18214 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 16755 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
18215 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | 16756 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
18216 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 16757 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
18217 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 16758 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
18218 | 16759 |
18219 | 16760 |
18220 case $INSTALL in | 16761 case $INSTALL in |
18557 ac_top_srcdir=$ac_top_builddir$srcdir ;; | 17098 ac_top_srcdir=$ac_top_builddir$srcdir ;; |
18558 esac | 17099 esac |
18559 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | 17100 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
18560 # absolute. | 17101 # absolute. |
18561 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | 17102 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
18562 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | 17103 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
18563 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | 17104 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
18564 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | 17105 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
18565 | 17106 |
18566 | 17107 |
18567 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | 17108 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |