From: Amos Jeffries Date: Fri, 18 Feb 2011 13:31:38 +0000 (+1300) Subject: auto-detect res_search() for Kerberos helpers X-Git-Tag: take03^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3932c6749e60cf36d905dc949e0e9dd1f563382e;p=thirdparty%2Fsquid.git auto-detect res_search() for Kerberos helpers From libc6 2.2 res_init which we were looking for is located in libc but res_search is only located in libresolv. --- diff --git a/configure.ac b/configure.ac index be89677fc6..1656f4c78f 100644 --- a/configure.ac +++ b/configure.ac @@ -1821,6 +1821,9 @@ if test x"$krb5confpath" != "xno"; then fi fi if test "x$ac_krb5_config" = "xyes" ; then + # Kerberos helpers use res_search() from libresolv or libc + AC_SEARCH_LIBS([__res_search],[resolv]) + ac_heimdal="`$krb5confpath --version 2>/dev/null | grep -i heimdal`" ac_solaris="`$krb5confpath --version 2>/dev/null | grep -i solaris`" if test "x$ac_heimdal" != "x" ; then