X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=macros%2Fdb3-check.m4;h=902220befa3581e0a1d6a9dea9bc4a850e4ea599;hb=e0d6aef6917c6ba51c193ef9e8461180cbf197c6;hp=2cc59cbbb6200f40785c98d22d2c1df944dc1050;hpb=1a6013c7ecd313e03eee1192d54bee624d4a9293;p=netatalk.git diff --git a/macros/db3-check.m4 b/macros/db3-check.m4 index 2cc59cbb..902220be 100644 --- a/macros/db3-check.m4 +++ b/macros/db3-check.m4 @@ -1,4 +1,3 @@ -dnl $Id: db3-check.m4,v 1.23 2010-04-12 14:28:48 franklahm Exp $ dnl Autoconf macros to check for the Berkeley DB library dnl -- check header for minimum version and return version in @@ -83,7 +82,8 @@ AC_DEFUN([NETATALK_BDB_TRY_LINK],[ ]) dnl -- This is called from configure -AC_DEFUN([AC_PATH_BDB],[ +AC_DEFUN([AC_NETATALK_PATH_BDB],[ +if test "x$bdb_required" = "xyes"; then trybdbdir="" dobdbsearch=yes bdb_search_dirs="/usr/local /usr" @@ -206,6 +206,7 @@ AC_DEFUN([AC_PATH_BDB],[ ifelse([$1], , :, [$1]) else ifelse([$2], , :, [$2]) + AC_MSG_ERROR([Berkeley DB library required but not found!]) fi CFLAGS_REMOVE_USR_INCLUDE(BDB_CFLAGS) @@ -214,6 +215,7 @@ AC_DEFUN([AC_PATH_BDB],[ AC_SUBST(BDB_LIBS) AC_SUBST(BDB_BIN) AC_SUBST(BDB_PATH) +fi ])