]> git.sommitrealweird.co.uk Git - onak.git/commitdiff
Allow db4 backend to compile with later versions of Berkeley DB
authorJonathan McDowell <noodles@earth.li>
Fri, 8 Apr 2011 06:34:27 +0000 (23:34 -0700)
committerJonathan McDowell <noodles@earth.li>
Fri, 8 Apr 2011 06:34:27 +0000 (23:34 -0700)
  db5 is compatible with db4 at an API level, so look for >= v4 rather
  than = v4 in our configure script.

configure.ac

index 746d9e67e1e85504bf8aa7176aa73ed8fcfa75c6..f3821439a2e82d42d274283b7fe5203b350bd6cc 100644 (file)
@@ -17,7 +17,7 @@ AC_MSG_CHECKING(for libdb version in db.h)
 printf "#include <db.h>\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"