Add support to link against libresolv Mac OS X

This commit is contained in:
Alexis Hildebrandt 2014-06-22 16:43:15 +02:00 committed by Guus Sliepen
parent e76df30cb2
commit b99e1a306c

View file

@ -204,7 +204,7 @@ AC_CHECK_DECLS([freeaddrinfo, gai_strerror, getaddrinfo, getnameinfo],
[], [], [#include "src/have.h"]
)
AC_CHECK_DECLS([res_init], [], [], [
AC_CHECK_DECLS([res_init], [LIBS="$LIBS -lresolv"], [], [
#include <netinet/in.h>
#include <resolv.h>
])