summaryrefslogtreecommitdiff
path: root/sysutils/cfengine2/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/cfengine2/patches/patch-af')
-rw-r--r--sysutils/cfengine2/patches/patch-af35
1 files changed, 24 insertions, 11 deletions
diff --git a/sysutils/cfengine2/patches/patch-af b/sysutils/cfengine2/patches/patch-af
index 113a1eef61d..bf5afddc1b4 100644
--- a/sysutils/cfengine2/patches/patch-af
+++ b/sysutils/cfengine2/patches/patch-af
@@ -1,13 +1,26 @@
-$NetBSD: patch-af,v 1.1.1.1 2002/12/22 13:04:38 seb Exp $
+$NetBSD: patch-af,v 1.2 2003/04/26 08:33:01 seb Exp $
---- configure.orig Tue Dec 17 14:08:36 2002
-+++ configure Tue Dec 17 15:30:26 2002
-@@ -3488,6 +3488,6 @@
- done
+--- configure.orig 2003-04-09 12:32:54.000000000 +0000
++++ configure
+@@ -4781,7 +4781,20 @@ echo "$as_me: error: Cannot find Berkele
+ echo "$as_me:4781: result: $BERKELEY_DB_DIR" >&5
+ echo "${ECHO_T}$BERKELEY_DB_DIR" >&6
+ else
+- { { echo "$as_me:4784: error: Cannot find BerkeleyDB" >&5
++ 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"
++ echo "$as_me:4790: result: $d" >&5
++echo "${ECHO_T}$d" >&6
++ break
++ fi
++ done
++ fi
++ if test x"$BERKELEY_DB_LIB" = "x"; then
++ { { echo "$as_me:4797: error: Cannot find BerkeleyDB" >&5
+ echo "$as_me: error: Cannot find BerkeleyDB" >&2;}
+ { (exit 1); exit 1; }; }
fi
-- if test "x$BERKELEY_DB_DIR" = "xyes" ; then
-- for d in /opt /usr/local /usr; do
-+ if test "x$BERKELEY_DB_DIR" != "x" ; then
-+ for d in $BERKELEY_DB_DIR /opt /usr/local /usr; do
- for v in db4 db3 db; do
- if test -f "$d/include/$v/db.h" ; then