Skip to content

Commit 8d9ceb2

Browse files
gerlachstsuna
authored andcommitted
fix boost.system for boost >= 1.70 (header only)
1 parent 0c955e2 commit 8d9ceb2

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

build-aux/boost.m4

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,11 +1332,17 @@ BOOST_DEFUN([String_Algo],
13321332
# --------------------------------
13331333
# Look for Boost.System. For the documentation of PREFERRED-RT-OPT, see the
13341334
# documentation of BOOST_FIND_LIB above. This library was introduced in Boost
1335-
# 1.35.0.
1335+
# 1.35.0 and is header only since 1.70.
13361336
BOOST_DEFUN([System],
1337-
[BOOST_FIND_LIB([system], [$1],
1337+
[
1338+
+[
1339+
if test $boost_major_version -ge 170; then
1340+
BOOST_FIND_HEADER([boost/system/error_code.hpp])
1341+
else
1342+
BOOST_FIND_LIB([system], [$1],
13381343
[boost/system/error_code.hpp],
13391344
[boost::system::error_code e; e.clear();], [], [], [$2])
1345+
fi
13401346
])# BOOST_SYSTEM
13411347
13421348

0 commit comments

Comments
 (0)