diff options
Diffstat (limited to 'sysutils/cfengine2/patches/patch-ai')
-rw-r--r-- | sysutils/cfengine2/patches/patch-ai | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/sysutils/cfengine2/patches/patch-ai b/sysutils/cfengine2/patches/patch-ai index 39538feff43..7238240f5c3 100644 --- a/sysutils/cfengine2/patches/patch-ai +++ b/sysutils/cfengine2/patches/patch-ai @@ -1,23 +1,16 @@ -$NetBSD: patch-ai,v 1.2 2003/04/26 08:33:01 seb Exp $ +$NetBSD: patch-ai,v 1.3 2004/08/10 14:18:44 ben Exp $ ---- configure.ac.orig 2003-04-07 17:47:46.000000000 +0000 -+++ configure.ac -@@ -133,6 +133,18 @@ else - BERKELEY_DB_LIB="-ldb" - AC_MSG_RESULT($BERKELEY_DB_DIR) - else -+ d="$BERKELEY_DB_DIR" -+ for v in db-4 db4 db3 db; do -+ if test -f "$d/include/$v/db.h" ; then -+ test "x$d" != "x/usr" && BERKELEY_DB_LDFLAGS="-L$d/lib" -+ BERKELEY_DB_CFLAGS="-I$d/include/$v" -+ BERKELEY_DB_LIB="-l$v" -+ AC_MSG_RESULT($d) +--- configure.ac.orig 2004-08-09 20:55:01.000000000 -0400 ++++ configure.ac 2004-08-09 20:55:48.000000000 -0400 +@@ -159,4 +159,5 @@ + if test -f "$BERKELEY_DB_DIR/include/$v/db.h"; then + BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include/$v" + break -+ fi -+ done -+ fi -+ if test x"$BERKELEY_DB_LIB" = "x"; then - AC_MSG_ERROR(Cannot find BerkeleyDB) - fi - AC_DEFINE(USE_BERKELEY_DB, 1, [Define if BerkeleyDB is available.]) + fi + done +@@ -166,4 +167,5 @@ + if test -f "$BERKELEY_DB_DIR/lib/lib$v.so"; then + BERKELEY_DB_LIB="-l$v" ++ break + fi + done |