Skip to content

Commit 394ccf7

Browse files
committed
Make Boost use std::atomic internally
1 parent 987a6c0 commit 394ccf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

configure.ac

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,10 @@ AX_BOOST_PROGRAM_OPTIONS
676676
AX_BOOST_THREAD
677677
AX_BOOST_CHRONO
678678

679+
dnl Boost 1.56 through 1.62 allow using std::atomic instead of its own atomic
680+
dnl counter implementations. In 1.63 and later the std::atomic approach is default.
681+
m4_pattern_allow(DBOOST_AC_USE_STD_ATOMIC) dnl otherwise it's treated like a macro
682+
BOOST_CPPFLAGS="-DBOOST_SP_USE_STD_ATOMIC -DBOOST_AC_USE_STD_ATOMIC $BOOST_CPPFLAGS"
679683

680684
if test x$use_reduce_exports = xyes; then
681685
AC_MSG_CHECKING([for working boost reduced exports])

0 commit comments

Comments
 (0)