diff --git a/configure.ac b/configure.ac index c6ff31daa8761434eb0557dbba163037eef825d1..fc6e790aa528bf9149cdde4a0fc8f3c7994e57fc 100644 --- a/configure.ac +++ b/configure.ac @@ -98,13 +98,15 @@ AC_SUBST(LDAP_CFLAGS) # ------------------------------------------------------------------- # resolv -AC_MSG_CHECKING(for which library has res_query) +AC_MSG_CHECKING([for which library has res_query, ns_get16 and ns_get32]) for lib in "" "-lresolv"; do saved_LIBS="$LIBS" LIBS="$LIBS $lib" AC_LINK_IFELSE([ AC_LANG_PROGRAM([#include ], - [res_query (0, 0, 0, 0, 0)]) + [res_query (0, 0, 0, 0, 0); + ns_get32 (NULL); + ns_get16 (NULL);]) ], [ AC_MSG_RESULT(${lib:-libc}); have_res_query="yes"; break; ], [ LIBS="$saved_LIBS" ])