summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/cyrus-imapd/files/cyrus-imapd-2.2.3-db4.patch')
-rw-r--r--net-mail/cyrus-imapd/files/cyrus-imapd-2.2.3-db4.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/net-mail/cyrus-imapd/files/cyrus-imapd-2.2.3-db4.patch b/net-mail/cyrus-imapd/files/cyrus-imapd-2.2.3-db4.patch
new file mode 100644
index 000000000000..ace2f28ea8e1
--- /dev/null
+++ b/net-mail/cyrus-imapd/files/cyrus-imapd-2.2.3-db4.patch
@@ -0,0 +1,28 @@
+diff -urN cyrus-imapd-2.2.3/cmulocal/berkdb.m4 cyrus-imapd-2.2.3/cmulocal/berkdb.m4
+--- cyrus-imapd-2.2.3/cmulocal/berkdb.m4 2003-04-15 17:25:41.000000000 -0500
++++ cyrus-imapd-2.2.3/cmulocal/berkdb.m4 2003-07-09 03:17:48.000000000 -0500
+@@ -211,12 +211,21 @@
+ BDB_LIBADD=""
+ fi
+
+- for dbname in db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db33 db-3.2 db3.2 db32 db-3.1 db3.1 db31 db-3 db30 db3 db
++ for dbname in db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
+ do
+- AC_CHECK_LIB($dbname, db_create, BDB_LIBADD="$BDB_LIBADD -l$dbname";
+- dblib="berkeley"; break, dblib="no")
++ AC_CHECK_LIB($dbname, db_create_4000, BDB_LIBADD="$BDB_LIBADD -l$dbname";
++ dblib="berkeley"; break, AC_CHECK_LIB($dbname, db_create_4001, BDB_LIBADD="$BDB_LIBADD -l$dbname";
++ dblib="berkeley"; break, AC_CHECK_LIB($dbname, db_create_4002, BDB_LIBADD="$BDB_LIBADD -l$dbname";
++ dblib="berkeley"; break, dblib="no")))
+ done
+ if test "$dblib" = "no"; then
++ for dbname in db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db-3.3 db3.3 db-3.2 db3.2 db-3.1 db3.1 db-3 db3 db
++ do
++ AC_CHECK_LIB($dbname, db_create, BDB_LIBADD="$BDB_LIBADD -l$dbname";
++ dblib="berkeley"; break, dblib="no")
++ done
++ fi
++ if test "$dblib" = "no"; then
+ AC_CHECK_LIB(db, db_open, BDB_LIBADD="$BDB_LIBADD -ldb";
+ dblib="berkeley"; dbname=db,
+ dblib="no")