From 61e316e66168be593fcc90b90217062fa9d993dc Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Tue, 24 Nov 2020 15:08:28 +0100 Subject: [PATCH] Don't set BDB flags when configuring without Github-Pull: #20478 Rebased-From: 982e548a9a78b1b0abad59b54c780b6b06570452 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 19056e5a09..c689633dde 100644 --- a/configure.ac +++ b/configure.ac @@ -648,7 +648,7 @@ case $host in bdb_prefix=$($BREW --prefix berkeley-db4 2>/dev/null) qt5_prefix=$($BREW --prefix qt5 2>/dev/null) - if test x$bdb_prefix != x && test "x$BDB_CFLAGS" = "x" && test "x$BDB_LIBS" = "x"; then + if test x$bdb_prefix != x && test "x$BDB_CFLAGS" = "x" && test "x$BDB_LIBS" = "x" && test "$use_bdb" != "no"; then dnl This must precede the call to BITCOIN_FIND_BDB48 below. BDB_CFLAGS="-I$bdb_prefix/include" BDB_LIBS="-L$bdb_prefix/lib -ldb_cxx-4.8"