Use AC_SEARCH_LIBS() instead of AC_CHECK_LIB() to figure out if
authorWayne Davison <wayned@samba.org>
Wed, 14 Dec 2005 22:54:54 +0000 (22:54 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 14 Dec 2005 22:54:54 +0000 (22:54 +0000)
we need to include libresolv or not.

configure.in

index d36cc39..93b2643 100644 (file)
@@ -377,7 +377,7 @@ if test x"$ac_cv_func_connect" = x"no"; then
     fi
 fi
 
-AC_CHECK_LIB(resolv, inet_ntop)
+AC_SEARCH_LIBS(inet_ntop, resolv)
 
 dnl AC_MSG_NOTICE([Looking in libraries: $LIBS])