diff --git a/build-aux/m4/bitcoin_find_bdb53.m4 b/build-aux/m4/bitcoin_find_bdb53.m4 --- a/build-aux/m4/bitcoin_find_bdb53.m4 +++ b/build-aux/m4/bitcoin_find_bdb53.m4 @@ -45,7 +45,7 @@ if test "x$BDB_LIBS" = "x"; then # TODO: Ideally this could find the library version and make sure it matches the headers being used - for searchlib in db_cxx-5.3 db_cxx; do + for searchlib in db_cxx-5.3 db_cxx db5_cxx; do AC_CHECK_LIB([$searchlib],[main],[ BDB_LIBS="-l${searchlib}" break diff --git a/cmake/modules/FindBerkeleyDB.cmake b/cmake/modules/FindBerkeleyDB.cmake --- a/cmake/modules/FindBerkeleyDB.cmake +++ b/cmake/modules/FindBerkeleyDB.cmake @@ -22,7 +22,7 @@ HINTS ${BREW_HINT} ) find_library(BDBXX_LIBRARY - NAMES db_cxx libdb_cxx + NAMES db_cxx libdb_cxx db5_cxx HINTS ${BREW_HINT} ) diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -546,6 +546,9 @@ *openbsd*) LEVELDB_TARGET_FLAGS="-DOS_OPENBSD" ;; + *netbsd*) + LEVELDB_TARGET_FLAGS="-DOS_NETBSD" + ;; *) OTHER_OS=`echo ${host_os} | awk '{print toupper($0)}'` AC_MSG_WARN([Guessing LevelDB OS as OS_${OTHER_OS}, please check whether this is correct, if not add an entry to configure.ac.])