From: Lars Ingebrigtsen Date: Thu, 28 Jan 2016 22:51:55 +0000 (+0100) Subject: Add checks for getaddrinfo_a X-Git-Tag: emacs-26.0.90~2520^2~68 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b013e6a90c0d5f734f37ffafdc848ab94e92380d;p=emacs.git Add checks for getaddrinfo_a * configure.ac: Detect getaddrinfo_a. --- diff --git a/configure.ac b/configure.ac index d3b518366ef..b00cc1a266f 100644 --- a/configure.ac +++ b/configure.ac @@ -2408,6 +2408,15 @@ 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 HAVE_GTK=no GTK_OBJ= diff --git a/src/Makefile.in b/src/Makefile.in index defce62c529..233ed19e8fb 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -229,6 +229,8 @@ IMAGEMAGICK_CFLAGS= @IMAGEMAGICK_CFLAGS@ LIBXML2_LIBS = @LIBXML2_LIBS@ LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ +GETADDRINFO_A_LIBS = @GETADDRINFO_A_LIBS@ + LIBZ = @LIBZ@ ## system-specific libs for dynamic modules, else empty @@ -473,7 +475,7 @@ LIBES = $(LIBS) $(W32_LIBS) $(LIBS_GNUSTEP) $(LIBX_BASE) $(LIBIMAGE) \ $(LIBXML2_LIBS) $(LIBGPM) $(LIBRESOLV) $(LIBS_SYSTEM) $(CAIRO_LIBS) \ $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) $(SETTINGS_LIBS) $(LIBSELINUX_LIBS) \ $(FREETYPE_LIBS) $(FONTCONFIG_LIBS) $(LIBOTF_LIBS) $(M17N_FLT_LIBS) \ - $(LIBGNUTLS_LIBS) $(LIB_PTHREAD) \ + $(LIBGNUTLS_LIBS) $(LIB_PTHREAD) $(GETADDRINFO_A_LIBS) \ $(NOTIFY_LIBS) $(LIB_MATH) $(LIBZ) $(LIBMODULES) $(leimdir)/leim-list.el: bootstrap-emacs$(EXEEXT)