message: Don't set BDB flags when configuring without
diff: @@ -645,7 +645,7 @@ case $host in
  PKG_CONFIG_PATH="$openssl_prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
  export PKG_CONFIG_PATH
  fi
  - 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"
  