emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/async-dns 68f1797: Fix autoconf test for getaddrin


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] feature/async-dns 68f1797: Fix autoconf test for getaddrinfo_a
Date: Mon, 01 Feb 2016 03:53:47 +0000

branch: feature/async-dns
commit 68f1797cab339eb5391b0502270ac20f69fea64e
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Fix autoconf test for getaddrinfo_a
    
    * configure.ac: Make the test for getaddrinfo_a work.
---
 configure.ac |   16 +++++++---------
 1 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index b00cc1a..1d2b175 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2408,15 +2408,13 @@ if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = 
"yes" || test "${HAVE_W32}"
   fi
 fi
 
-GETADDRINFO_A_LIBS="-lanl"
-AC_CHECK_LIB(anl, getaddrinfo_a, HAVE_GETADDRINFO_A=yes, HAVE_GETADDRINFO_A=no,
-        [$GETADDRINFO_A_LIBS])
-AC_SUBST(GETADDRINFO_A_LIBS)
-
-OLD_LIBS=$LIBS
-LIBS="-lanl $LIBS"
-AC_CHECK_FUNCS(getaddrinfo_a)
-LIBS=$OLD_LIBS
+AC_CHECK_LIB(anl, getaddrinfo_a, HAVE_GETADDRINFO_A=yes)
+if test "${HAVE_GETADDRINFO_A}" = "yes"; then
+  AC_DEFINE(HAVE_GETADDRINFO_A, 1,
+[Define to 1 if you have getaddrinfo_a for asynchronous DNS resolution.])
+  GETADDRINFO_A_LIBS="-lanl"
+  AC_SUBST(GETADDRINFO_A_LIBS)
+fi
 
 HAVE_GTK=no
 GTK_OBJ=



reply via email to

[Prev in Thread] Current Thread [Next in Thread]