Berkeley DB uniquename handling
Clint Adams
schizo at debian.org
Fri Dec 13 16:38:23 CET 2002
Currently, if one tries to build bogofilter against a Berkeley DB
compiled with --enable-uniquename, bogofilter's configure will fail.
This allows one to specify the uniquename to configure and build
bogofilter.
Index: configure.in
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/configure.in,v
retrieving revision 1.61
diff -u -r1.61 configure.in
--- configure.in 10 Dec 2002 20:32:40 -0000 1.61
+++ configure.in 13 Dec 2002 15:25:08 -0000
@@ -80,8 +80,13 @@
You can download BerkeleyDB 4.0.x from http://www.sleepycat.com])
)
-AC_CHECK_LIB(db-4, db_create, LIBS="$LIBS -ldb-4",
-AC_CHECK_LIB(db4, db_create, LIBS="$LIBS -ldb4",
+AC_ARG_ENABLE(db-uniquename,
+ AC_HELP_STRING([--enable-db-uniquename=name],
+ [Use specified Berkeley DB uniquename]),
+ uniqname=$enableval)
+
+AC_CHECK_LIB(db-4, db_create$uniqname, LIBS="$LIBS -ldb-4",
+AC_CHECK_LIB(db4, db_create$uniqname, LIBS="$LIBS -ldb4",
AC_CHECK_LIB(db-3, db_create, LIBS="$LIBS -ldb-3",
AC_CHECK_LIB(db3, db_create, LIBS="$LIBS -ldb3",
AC_CHECK_LIB(db-2, db_create, LIBS="$LIBS -ldb-2",
@@ -93,7 +98,7 @@
AC_MSG_CHECKING(BerkeleyDB)
-AC_TRY_LINK_FUNC(db_create,, AC_MSG_ERROR([BerkeleyDB v3+ package is not working properly. Specify a different one using --with-db=PATH]))
+AC_TRY_LINK_FUNC(db_create$uniqname,, AC_MSG_ERROR([BerkeleyDB v3+ package is not working properly. Specify a different one using --with-db=PATH]))
AC_MSG_RESULT(BerkeleyDB)
# Allow the user to specify a header name to use to indicate whether a given
More information about the bogofilter-dev
mailing list