From: Ruben Kerkhof Date: Sun, 28 Sep 2014 09:24:29 +0000 (+0200) Subject: Detect cdb on OSX X-Git-Tag: auth-3.4.0~11^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1742%2Fhead;p=thirdparty%2Fpdns.git Detect cdb on OSX cdb from homebrew doesn't ship a .pc file so detect it the old-fashioned way. --- diff --git a/m4/pdns_check_cdb.m4 b/m4/pdns_check_cdb.m4 index 8e2a198d34..e31680cb06 100644 --- a/m4/pdns_check_cdb.m4 +++ b/m4/pdns_check_cdb.m4 @@ -1,7 +1,13 @@ AC_DEFUN([PDNS_CHECK_CDB],[ PKG_CHECK_MODULES([CDB], [libcdb], - [HAVE_CDB=yes], - [AC_MSG_ERROR([Could not find libcdb/tinycdb])] + [], + [AC_CHECK_HEADERS([cdb.h], + [AC_CHECK_LIB([cdb], [cdb_find], + [CDB_LIBS="-lcdb"], + [AC_MSG_ERROR([Could not find libcdb])] + )], + [AC_MSG_ERROR([Could not find cdb])] + )] ) AC_SUBST(CDB_LIBS) AC_SUBST(CDB_CFLAGS)