Skip to content

Commit da5b433

Browse files
kwvgPastaPastaPasta
authored andcommitted
merge bitcoin#26952: Avoid BOOST_NO_CXX98_FUNCTION_BASE macro redefinition
1 parent 7a1f48e commit da5b433

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

configure.ac

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,9 +1471,11 @@ if test x$want_boost = xno; then
14711471
fi
14721472

14731473
dnl Prevent use of std::unary_function, which was removed in C++17,
1474-
dnl and will generate warnings with newer compilers.
1475-
dnl See: https://github.com/boostorg/container_hash/issues/22.
1476-
BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_NO_CXX98_FUNCTION_BASE"
1474+
dnl and will generate warnings with newer compilers for Boost
1475+
dnl older than 1.80.
1476+
dnl See: https://github.com/boostorg/config/pull/430.
1477+
AX_CHECK_PREPROC_FLAG([-DBOOST_NO_CXX98_FUNCTION_BASE], [BOOST_CPPFLAGS="$BOOST_CPPFLAGS -DBOOST_NO_CXX98_FUNCTION_BASE"], [], [$CXXFLAG_WERROR],
1478+
[AC_LANG_PROGRAM([[#include <boost/config.hpp>]])])
14771479

14781480
dnl Opt-in to Boost Process
14791481
if test "x$boost_process" != xno; then

0 commit comments

Comments
 (0)