Kaydet (Commit) ed33c9af authored tarafından Skip Montanaro's avatar Skip Montanaro

autodetect presence of libdb - this allows bsddbmodule to be built

automatically if dbopen is found in libc or libdb.  This closes patch
#101420
üst 6c8affe5
...@@ -15,5 +15,5 @@ ...@@ -15,5 +15,5 @@
#*shared* #*shared*
# bsddb module enabled by --with-libdb or presence of db.h # bsddb module enabled by --with-libdb or presence of db.h
@USE_BSDDB_MODULE@bsddb bsddbmodule.c -ldb @USE_BSDDB_MODULE@bsddb bsddbmodule.c @HAVE_LIBDB@
This diff is collapsed.
...@@ -836,6 +836,13 @@ else ...@@ -836,6 +836,13 @@ else
fi fi
AC_MSG_RESULT($with_libdb) AC_MSG_RESULT($with_libdb)
if test "$with_libdb" = "yes"
then
# check for libdb; BSD systems have the DB routines in libc --tg
AC_SUBST(HAVE_LIBDB)
AC_CHECK_FUNC(dbopen, [HAVE_LIBDB=], AC_CHECK_LIB(db, dbopen, [HAVE_LIBDB=-ldb]))
fi
# Check for --with-wctype-functions # Check for --with-wctype-functions
AC_MSG_CHECKING(for --with-wctype-functions) AC_MSG_CHECKING(for --with-wctype-functions)
AC_ARG_WITH(wctype-functions, AC_ARG_WITH(wctype-functions,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment