On master (a0489f3472f3799dc1ece32a59556fd239c4c14b) the configure
script is not able to determine that Homebrew’s berkeley-db4
package is uninstalled. This causes a compile error on macOS.
With this PR, and with the uninstalled berkeley-db4
package:
0% ./configure -q
1configure: error: libdb_cxx headers missing, Bitcoin Core requires this library for BDB wallet support (--without-bdb to disable BDB wallet support)
Related #20478.