diff options
author | randy-waterhouse <noone@yodasan> | 2014-08-27 09:25:33 +1200 |
---|---|---|
committer | kiwigb <kiwigb@localhost.localdomain> | 2014-09-16 23:17:20 +1200 |
commit | e2a98d270d511711111a54f350c25733bc15a5b2 (patch) | |
tree | 3243ab25922b2a47c42ce82b78e880f89f0d8700 /build-aux/m4/bitcoin_find_bdb48.m4 | |
parent | e54381117a86f51a129056b18ad7f48967bdcf3a (diff) |
Update obsolete AC macros.
Diffstat (limited to 'build-aux/m4/bitcoin_find_bdb48.m4')
-rw-r--r-- | build-aux/m4/bitcoin_find_bdb48.m4 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/build-aux/m4/bitcoin_find_bdb48.m4 b/build-aux/m4/bitcoin_find_bdb48.m4 index 5223163fe5..f3b14461eb 100644 --- a/build-aux/m4/bitcoin_find_bdb48.m4 +++ b/build-aux/m4/bitcoin_find_bdb48.m4 @@ -12,29 +12,29 @@ AC_DEFUN([BITCOIN_FIND_BDB48],[ done for searchpath in $bdbdirlist ''; do test -n "${searchpath}" && searchpath="${searchpath}/" - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <${searchpath}db_cxx.h> - ],[ + ]],[[ #if !((DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 8) || DB_VERSION_MAJOR > 4) #error "failed to find bdb 4.8+" #endif - ],[ + ]])],[ if test "x$bdbpath" = "xX"; then bdbpath="${searchpath}" fi ],[ continue ]) - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <${searchpath}db_cxx.h> - ],[ + ]],[[ #if !(DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR == 8) #error "failed to find bdb 4.8" #endif - ],[ + ]])],[ bdb48path="${searchpath}" break - ]) + ],[]) done if test "x$bdbpath" = "xX"; then AC_MSG_RESULT([no]) |