aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2007-11-20 23:06:39 +0000
committerAndreas Schwab2007-11-20 23:06:39 +0000
commitc0a3f2a24a3a4b8241c0aec2f9fc32c4e5e55367 (patch)
tree5dfe9d007ddeb4060a234ab984ea54a75b52faf4
parenta49e5cc32093a1ed3670b84c2b86fc03b956c378 (diff)
downloademacs-c0a3f2a24a3a4b8241c0aec2f9fc32c4e5e55367.tar.gz
emacs-c0a3f2a24a3a4b8241c0aec2f9fc32c4e5e55367.zip
Always include <resolv.h> when checking for
res_init.
-rw-r--r--configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.in b/configure.in
index 12b1347b6d0..930129bfdaf 100644
--- a/configure.in
+++ b/configure.in
@@ -2756,15 +2756,19 @@ AC_CHECK_LIB(ncurses, tparm)
2756# Do we have res_init, for detecting changes in /etc/resolv.conf? 2756# Do we have res_init, for detecting changes in /etc/resolv.conf?
2757 2757
2758resolv=no 2758resolv=no
2759AC_CHECK_FUNC(res_init, have_res_init=yes, have_res_init=no) 2759AC_TRY_LINK([#include <netinet/in.h>
2760#include <arpa/nameser.h>
2761#include <resolv.h>],
2762 [return res_init();],
2763 have_res_init=yes, have_res_init=no)
2760if test "$have_res_init" = no; then 2764if test "$have_res_init" = no; then
2761 OLIBS="$LIBS" 2765 OLIBS="$LIBS"
2762 LIBS="$LIBS -lresolv" 2766 LIBS="$LIBS -lresolv"
2763 AC_MSG_CHECKING(for res_init with -lresolv) 2767 AC_MSG_CHECKING(for res_init with -lresolv)
2764 AC_TRY_LINK([#include <netinet/in.h> 2768 AC_TRY_LINK([#include <netinet/in.h>
2765#include <arpa/nameser.h> 2769#include <arpa/nameser.h>
2766#include <resolv.h> ], 2770#include <resolv.h>],
2767 [res_init();], 2771 [return res_init();],
2768 have_res_init=yes, have_res_init=no) 2772 have_res_init=yes, have_res_init=no)
2769 AC_MSG_RESULT($have_res_init) 2773 AC_MSG_RESULT($have_res_init)
2770 if test "$have_res_init" = yes ; then 2774 if test "$have_res_init" = yes ; then