Skip to content

Commit d3ef947

Browse files
committed
build: Check that Homebrew's berkeley-db4 package is actually installed
1 parent a0489f3 commit d3ef947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,9 @@ case $host in
641641
dnl It's safe to add these paths even if the functionality is disabled by
642642
dnl the user (--without-wallet or --without-gui for example).
643643

644-
bdb_prefix=$($BREW --prefix berkeley-db4 2>/dev/null)
645644
qt5_prefix=$($BREW --prefix qt5 2>/dev/null)
646-
if test x$bdb_prefix != x && test "x$BDB_CFLAGS" = "x" && test "x$BDB_LIBS" = "x" && test "$use_bdb" != "no"; then
645+
if $BREW list --versions berkeley-db4 >/dev/null && test "x$BDB_CFLAGS" = "x" && test "x$BDB_LIBS" = "x" && test "$use_bdb" != "no"; then
646+
bdb_prefix=$($BREW --prefix berkeley-db4 2>/dev/null)
647647
dnl This must precede the call to BITCOIN_FIND_BDB48 below.
648648
BDB_CFLAGS="-I$bdb_prefix/include"
649649
BDB_LIBS="-L$bdb_prefix/lib -ldb_cxx-4.8"

0 commit comments

Comments
 (0)