Skip to content

Commit ee7b84e

Browse files
committed
build: Use Homebrew's sqlite package if it is available
1 parent c96d1f6 commit ee7b84e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,13 +642,17 @@ case $host in
642642
dnl It's safe to add these paths even if the functionality is disabled by
643643
dnl the user (--without-wallet or --without-gui for example).
644644

645-
if $BREW list --versions berkeley-db4 >/dev/null && test "x$BDB_CFLAGS" = "x" && test "x$BDB_LIBS" = "x" && test "$use_bdb" != "no"; then
645+
if test "x$use_bdb" != xno && $BREW list --versions berkeley-db4 >/dev/null && test "x$BDB_CFLAGS" = "x" && test "x$BDB_LIBS" = "x"; then
646646
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"
650650
fi
651651

652+
if test "x$use_sqlite" != xno && $BREW list --versions sqlite3 >/dev/null; then
653+
export PKG_CONFIG_PATH="$($BREW --prefix sqlite3 2>/dev/null)/lib/pkgconfig:$PKG_CONFIG_PATH"
654+
fi
655+
652656
if $BREW list --versions qt5 >/dev/null; then
653657
export PKG_CONFIG_PATH="$($BREW --prefix qt5 2>/dev/null)/lib/pkgconfig:$PKG_CONFIG_PATH"
654658
fi

0 commit comments

Comments
 (0)