#include <exception>
#include <cassert>
#include <type_traits>
+#if BOOST_VERSION > 106100
+#include <boost/context/detail/fcontext.hpp>
+#else
#include <boost/context/fcontext.hpp>
+#endif
#include <boost/version.hpp>
using boost::context::make_fcontext;
LDFLAGS="$LDFLAGS $BOOST_THREAD_LDFLAGS"
fi
AC_MSG_NOTICE([checking whether the Boost context library actually links...])
- BOOST_FIND_HEADER([boost/context/fcontext.hpp], [ : ], [
- BOOST_FIND_LIB([context], [$1], [boost/context/fcontext.hpp], [[]])
- ])
+ if test $boost_major_version -ge 161; then
+ BOOST_FIND_HEADER([boost/context/detail/fcontext.hpp], [ : ], [
+ BOOST_FIND_LIB([context], [$1], [boost/context/detail/fcontext.hpp], [[]])
+ ])
+ else
+ BOOST_FIND_HEADER([boost/context/fcontext.hpp], [ : ], [
+ BOOST_FIND_LIB([context], [$1], [boost/context/fcontext.hpp], [[]])
+ ])
+ fi
case $boost_cv_lib_context in
(yes)
AC_MSG_NOTICE([MTasker will use the Boost context library for context switching])