From: Jonathan McDowell Date: Fri, 8 Apr 2011 06:34:27 +0000 (-0700) Subject: Allow db4 backend to compile with later versions of Berkeley DB X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/commitdiff_plain/2725e4d426f80dc79071c0280e1809c84aa2fa4d?ds=sidebyside;hp=c48970b5aa2975f83b85f7e6ffe45a5d599ae79b Allow db4 backend to compile with later versions of Berkeley DB db5 is compatible with db4 at an API level, so look for >= v4 rather than = v4 in our configure script. --- diff --git a/configure.ac b/configure.ac index 746d9e6..f382143 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ AC_MSG_CHECKING(for libdb version in db.h) printf "#include \nDB_VERSION_MAJOR DB_VERSION_MINOR\n" >conftest.c set `eval $ac_cpp conftest.c | egrep '^ *[[0-9]] *'`; v="$1"; vv="$2" AC_MSG_RESULT($v.$vv) -if test "$v" -eq 4; then +if test "$v" -ge 4; then for db in "db-$v.$vv" "db$v.$vv" "db-$v" "db$v" "db"; do AC_MSG_CHECKING(for db_create in lib$db) oldLIBS="$LIBS"