configure: Replace two remaining usages of AC_HAVE_LIBRARY with AC_CHECK_LIB

This commit is contained in:
Tobias Brunner 2016-04-08 14:35:47 +02:00
parent 960632ffb0
commit e8c73c1cf0
1 changed files with 2 additions and 2 deletions

View File

@ -917,9 +917,9 @@ if test x$curl = xtrue; then
fi
if test x$unbound = xtrue; then
AC_HAVE_LIBRARY([ldns],[LIBS="$LIBS"],[AC_MSG_ERROR([UNBOUND library ldns not found])])
AC_CHECK_LIB([ldns],[main],[LIBS="$LIBS"],[AC_MSG_ERROR([UNBOUND library ldns not found])],[])
AC_CHECK_HEADER([ldns/ldns.h],,[AC_MSG_ERROR([UNBOUND header ldns/ldns.h not found!])])
AC_HAVE_LIBRARY([unbound],[LIBS="$LIBS"],[AC_MSG_ERROR([UNBOUND library libunbound not found])])
AC_CHECK_LIB([unbound],[main],[LIBS="$LIBS"],[AC_MSG_ERROR([UNBOUND library libunbound not found])],[])
AC_CHECK_HEADER([unbound.h],,[AC_MSG_ERROR([UNBOUND header unbound.h not found!])])
fi