Changeset View
Changeset View
Standalone View
Standalone View
build-aux/m4/bitcoin_find_bdb53.m4
Show All 39 Lines | if test "x$BDB_CFLAGS" = "x"; then | ||||
fi | fi | ||||
else | else | ||||
BDB_CPPFLAGS=${BDB_CFLAGS} | BDB_CPPFLAGS=${BDB_CFLAGS} | ||||
fi | fi | ||||
AC_SUBST(BDB_CPPFLAGS) | AC_SUBST(BDB_CPPFLAGS) | ||||
if test "x$BDB_LIBS" = "x"; then | if test "x$BDB_LIBS" = "x"; then | ||||
# TODO: Ideally this could find the library version and make sure it matches the headers being used | # TODO: Ideally this could find the library version and make sure it matches the headers being used | ||||
for searchlib in db_cxx-5.3 db_cxx; do | for searchlib in db_cxx-5.3 db_cxx db5_cxx; do | ||||
AC_CHECK_LIB([$searchlib],[main],[ | AC_CHECK_LIB([$searchlib],[main],[ | ||||
BDB_LIBS="-l${searchlib}" | BDB_LIBS="-l${searchlib}" | ||||
break | break | ||||
]) | ]) | ||||
done | done | ||||
if test "x$BDB_LIBS" = "x"; then | if test "x$BDB_LIBS" = "x"; then | ||||
AC_MSG_ERROR([libdb_cxx missing, ]AC_PACKAGE_NAME[ requires this library for wallet functionality (--disable-wallet to disable wallet functionality)]) | AC_MSG_ERROR([libdb_cxx missing, ]AC_PACKAGE_NAME[ requires this library for wallet functionality (--disable-wallet to disable wallet functionality)]) | ||||
fi | fi | ||||
fi | fi | ||||
AC_SUBST(BDB_LIBS) | AC_SUBST(BDB_LIBS) | ||||
]) | ]) |