Make peace with autoconf-2.68

This commit is contained in:
Panu Matilainen 2011-03-04 18:34:01 +02:00
parent d0c6d74f3d
commit 584b9d4f5a
1 changed files with 2 additions and 0 deletions

View File

@ -314,10 +314,12 @@ case "$with_external_db" in
yes )
AC_CHECK_HEADERS([db.h],[
AC_PREPROC_IFELSE([
AC_LANG_SOURCE([
#include <db.h>
#if ((DB_VERSION_MAJOR < 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR < 5))
#error Berkeley DB too old
#endif
])
],[ WITH_DB_LIB=-ldb ],
[ AC_MSG_ERROR([Berkeley DB version >= 4.5 required])
])