Mercurial > emacs
comparison configure @ 86261:2952f49ed8a7
Regenerate.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Tue, 20 Nov 2007 23:07:46 +0000 |
parents | 2babe0c7e252 |
children | 07648bba8409 |
comparison
equal
deleted
inserted
replaced
86260:40dbe784a4f7 | 86261:2952f49ed8a7 |
---|---|
19536 | 19536 |
19537 | 19537 |
19538 # Do we have res_init, for detecting changes in /etc/resolv.conf? | 19538 # Do we have res_init, for detecting changes in /etc/resolv.conf? |
19539 | 19539 |
19540 resolv=no | 19540 resolv=no |
19541 { echo "$as_me:$LINENO: checking for res_init" >&5 | 19541 cat >conftest.$ac_ext <<_ACEOF |
19542 echo $ECHO_N "checking for res_init... $ECHO_C" >&6; } | 19542 /* confdefs.h. */ |
19543 if test "${ac_cv_func_res_init+set}" = set; then | 19543 _ACEOF |
19544 echo $ECHO_N "(cached) $ECHO_C" >&6 | 19544 cat confdefs.h >>conftest.$ac_ext |
19545 else | 19545 cat >>conftest.$ac_ext <<_ACEOF |
19546 cat >conftest.$ac_ext <<_ACEOF | 19546 /* end confdefs.h. */ |
19547 /* confdefs.h. */ | 19547 #include <netinet/in.h> |
19548 _ACEOF | 19548 #include <arpa/nameser.h> |
19549 cat confdefs.h >>conftest.$ac_ext | 19549 #include <resolv.h> |
19550 cat >>conftest.$ac_ext <<_ACEOF | |
19551 /* end confdefs.h. */ | |
19552 /* Define res_init to an innocuous variant, in case <limits.h> declares res_init. | |
19553 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19554 #define res_init innocuous_res_init | |
19555 | |
19556 /* System header to define __stub macros and hopefully few prototypes, | |
19557 which can conflict with char res_init (); below. | |
19558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19559 <limits.h> exists even on freestanding compilers. */ | |
19560 | |
19561 #ifdef __STDC__ | |
19562 # include <limits.h> | |
19563 #else | |
19564 # include <assert.h> | |
19565 #endif | |
19566 | |
19567 #undef res_init | |
19568 | |
19569 /* Override any GCC internal prototype to avoid an error. | |
19570 Use char because int might match the return type of a GCC | |
19571 builtin and then its argument prototype would still apply. */ | |
19572 #ifdef __cplusplus | |
19573 extern "C" | |
19574 #endif | |
19575 char res_init (); | |
19576 /* The GNU C library defines this for functions which it implements | |
19577 to always fail with ENOSYS. Some functions are actually named | |
19578 something starting with __ and the normal name is an alias. */ | |
19579 #if defined __stub_res_init || defined __stub___res_init | |
19580 choke me | |
19581 #endif | |
19582 | |
19583 int | 19550 int |
19584 main () | 19551 main () |
19585 { | 19552 { |
19586 return res_init (); | 19553 return res_init(); |
19587 ; | 19554 ; |
19588 return 0; | 19555 return 0; |
19589 } | 19556 } |
19590 _ACEOF | 19557 _ACEOF |
19591 rm -f conftest.$ac_objext conftest$ac_exeext | 19558 rm -f conftest.$ac_objext conftest$ac_exeext |
19604 (exit $ac_status); } && { | 19571 (exit $ac_status); } && { |
19605 test -z "$ac_c_werror_flag" || | 19572 test -z "$ac_c_werror_flag" || |
19606 test ! -s conftest.err | 19573 test ! -s conftest.err |
19607 } && test -s conftest$ac_exeext && | 19574 } && test -s conftest$ac_exeext && |
19608 $as_test_x conftest$ac_exeext; then | 19575 $as_test_x conftest$ac_exeext; then |
19609 ac_cv_func_res_init=yes | 19576 have_res_init=yes |
19610 else | 19577 else |
19611 echo "$as_me: failed program was:" >&5 | 19578 echo "$as_me: failed program was:" >&5 |
19612 sed 's/^/| /' conftest.$ac_ext >&5 | 19579 sed 's/^/| /' conftest.$ac_ext >&5 |
19613 | 19580 |
19614 ac_cv_func_res_init=no | 19581 have_res_init=no |
19615 fi | 19582 fi |
19616 | 19583 |
19617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | 19584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19618 conftest$ac_exeext conftest.$ac_ext | 19585 conftest$ac_exeext conftest.$ac_ext |
19619 fi | |
19620 { echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5 | |
19621 echo "${ECHO_T}$ac_cv_func_res_init" >&6; } | |
19622 if test $ac_cv_func_res_init = yes; then | |
19623 have_res_init=yes | |
19624 else | |
19625 have_res_init=no | |
19626 fi | |
19627 | |
19628 if test "$have_res_init" = no; then | 19586 if test "$have_res_init" = no; then |
19629 OLIBS="$LIBS" | 19587 OLIBS="$LIBS" |
19630 LIBS="$LIBS -lresolv" | 19588 LIBS="$LIBS -lresolv" |
19631 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 | 19589 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 |
19632 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; } | 19590 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; } |
19640 #include <arpa/nameser.h> | 19598 #include <arpa/nameser.h> |
19641 #include <resolv.h> | 19599 #include <resolv.h> |
19642 int | 19600 int |
19643 main () | 19601 main () |
19644 { | 19602 { |
19645 res_init(); | 19603 return res_init(); |
19646 ; | 19604 ; |
19647 return 0; | 19605 return 0; |
19648 } | 19606 } |
19649 _ACEOF | 19607 _ACEOF |
19650 rm -f conftest.$ac_objext conftest$ac_exeext | 19608 rm -f conftest.$ac_objext conftest$ac_exeext |