media-gfx/photoqt: Stabilize 4.7-r1 amd64, #948000
[gentoo/gentoo.git] / net-mail / courier-imap / files / courier-imap-4.17-db4-configure.ac.patch
blobe89c5618f842114c868fb85e00551644d0cbc381
1 --- a/configure.ac.orig 2013-09-28 19:44:24.000000000 +0200
2 +++ b/configure.ac 2013-11-22 10:46:34.910990069 +0100
3 @@ -180,15 +180,21 @@
4 if test "$db" != "gdbm"
5 then
7 - AC_CHECK_LIB(db, dbopen, [ LIBDB=-ldb ; LIBS="-ldb $LIBS" ],
8 - AC_CHECK_LIB(db, db_open, [ LIBDB=-ldb ; LIBS="-ldb $LIBS"],
9 - AC_CHECK_LIB(db, db_env_create,
10 - [ LIBDB=-ldb; LIBS="-ldb $LIBS"])
11 - ))
13 - AC_CHECK_FUNC(dbopen, HAVE_BDB=1)
14 - AC_CHECK_FUNC(db_open, HAVE_BDB=1)
15 - AC_CHECK_FUNC(db_env_create, HAVE_BDB=1)
16 +for dbname in db-4.4 db4.4 db44 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db-4.0 db4.0 db-4 db40 db4 db
17 + do
18 + AC_CHECK_LIB($dbname, db_create_4004, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
19 + AC_CHECK_LIB($dbname, db_create_4003, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
20 + AC_CHECK_LIB($dbname, db_create_4002, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
21 + AC_CHECK_LIB($dbname, db_create_4001, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
22 + AC_CHECK_LIB($dbname, db_create_4000, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ],
23 + AC_CHECK_LIB($dbname, db_create, [ LIBDB=-l$dbname ; LIBS="-l$dbname $LIBS"; break ]))))))
24 + done
25 +AC_CHECK_FUNC(db_create_4004, HAVE_BDB=1)
26 +AC_CHECK_FUNC(db_create_4003, HAVE_BDB=1)
27 +AC_CHECK_FUNC(db_create_4002, HAVE_BDB=1)
28 +AC_CHECK_FUNC(db_create_4001, HAVE_BDB=1)
29 +AC_CHECK_FUNC(db_create_4000, HAVE_BDB=1)
30 +AC_CHECK_FUNC(db_create, HAVE_BDB=1)
33 LIBS="$saveLIBS"