We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c955e2 commit 8d9ceb2Copy full SHA for 8d9ceb2
1 file changed
build-aux/boost.m4
@@ -1332,11 +1332,17 @@ BOOST_DEFUN([String_Algo],
1332
# --------------------------------
1333
# Look for Boost.System. For the documentation of PREFERRED-RT-OPT, see the
1334
# documentation of BOOST_FIND_LIB above. This library was introduced in Boost
1335
-# 1.35.0.
+# 1.35.0 and is header only since 1.70.
1336
BOOST_DEFUN([System],
1337
-[BOOST_FIND_LIB([system], [$1],
+[
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],
1343
[boost/system/error_code.hpp],
1344
[boost::system::error_code e; e.clear();], [], [], [$2])
1345
+fi
1346
])# BOOST_SYSTEM
1347
1348
0 commit comments