diff options
author | Ken Raeburn <raeburn@mit.edu> | 2004-07-04 08:52:45 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2004-07-04 08:52:45 +0000 |
commit | 4a51cc6b152082b4907d3701983e5535510ef9c1 (patch) | |
tree | d9850e865e7ce8a587b069cc7762e757248e927e /src/aclocal.m4 | |
parent | 0f603f72496ff9ba52a1b6af75b8c8c4a45e67df (diff) | |
download | krb5-4a51cc6b152082b4907d3701983e5535510ef9c1.zip krb5-4a51cc6b152082b4907d3701983e5535510ef9c1.tar.gz krb5-4a51cc6b152082b4907d3701983e5535510ef9c1.tar.bz2 |
* aclocal.m4 (AC_LIBRARY_NET): Look for res_nsearch.
* configure.in: If thread support is enabled and res_nsearch isn't found, issue
a warning.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16542 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r-- | src/aclocal.m4 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 97ddb19..80e3687 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1308,10 +1308,14 @@ AC_DEFUN(AC_LIBRARY_NET, [ AC_CHECK_LIB(socket, socket, LIBS="-lsocket -lnsl $LIBS", , -lnsl))) KRB5_AC_ENABLE_DNS if test "$enable_dns" = yes ; then - AC_CHECK_FUNC(res_search, , AC_CHECK_LIB(resolv, res_search, - LIBS="$LIBS -lresolv" ; RESOLV_LIB=-lresolv, - AC_MSG_ERROR(Cannot find resolver support routine res_search in -lresolv.) - )) + AC_CHECK_FUNC(res_nsearch, , [AC_CHECK_LIB(resolv, res_nsearch, + [LIBS="$LIBS -lresolv" ; RESOLV_LIB=-lresolv + AC_DEFINE(HAVE_RES_NSEARCH,1,[Define if BIND 8 routine res_nsearch is available]) + ], + [AC_CHECK_FUNC(res_search, , AC_CHECK_LIB(resolv, res_search, + LIBS="$LIBS -lresolv" ; RESOLV_LIB=-lresolv, + AC_MSG_ERROR(Cannot find resolver support routine res_search in -lresolv.) + ))])]) fi AC_SUBST(RESOLV_LIB) ]) |