* aclocal.m4 (AC_LIBRARY_NET): Only look for res_search() in
authorTom Yu <tlyu@mit.edu>
Wed, 15 Sep 2004 21:32:04 +0000 (21:32 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 15 Sep 2004 21:32:04 +0000 (21:32 +0000)
libraries, not headers, in case it's present but not prototyped.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16759 dc483132-0cff-0310-8789-dd5450dbe970

src/ChangeLog
src/aclocal.m4

index 4444d12a371bad3f8930433e0bb7bb49b80e72da..2d8444f61ed97c577827f1aa68dd1552f72b449c 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-15  Tom Yu  <tlyu@mit.edu>
+
+       * aclocal.m4 (AC_LIBRARY_NET): Only look for res_search() in
+       libraries, not headers, in case it's present but not prototyped.
+
 2004-09-14  Tom Yu  <tlyu@mit.edu>
 
        * aclocal.m4 (AC_LIBRARY_NET): Require the BIND_8_COMPAT check
index 07a303d1857d24de4104433a403477a03e4383cd..fc6176bdd585bb9bce7c4f27b799bd2c40940ba9 100644 (file)
@@ -1363,7 +1363,7 @@ AC_REQUIRE([KRB5_AC_NEED_BIND_8_COMPAT])
     AC_CHECK_LIB(resolv, main)
     AC_CHECK_DECL(res_nsearch, 
        AC_DEFINE(HAVE_RES_NSEARCH,,[Have the RES_NSEARCH function]),
-       [AC_CHECK_DECL(res_search, 
+       [AC_CHECK_FUNC(res_search, 
            AC_DEFINE(HAVE_RES_SEARCH,,[Have the res_search function]), 
            AC_MSG_ERROR(Failed to find resolver search routine),
            [#include <sys/types.h>