configure: require boost.thread v2

This commit is contained in:
Andrzej Rybczak
2013-07-11 03:06:40 +02:00
parent 1710f892c5
commit 1731ee2d38

View File

@@ -143,6 +143,17 @@ AC_CHECK_LIB(boost_regex$BOOST_LIB_SUFFIX, main, LDFLAGS="$LDFLAGS -lboost_regex
AC_MSG_ERROR([no boost.regex library found])
)
dnl =============================
dnl = checking for boost.thread =
dnl =============================
CPPFLAGS="$CPPFLAGS -DBOOST_THREAD_VERSION=2"
AC_CHECK_HEADERS([boost/thread.hpp], ,
AC_MSG_ERROR([boost/thread.hpp is missing or your boost version is too old (boost.thread v2 is required)])
)
AC_CHECK_LIB(boost_thread$BOOST_LIB_SUFFIX, main, LDFLAGS="$LDFLAGS -lboost_thread$BOOST_LIB_SUFFIX",
AC_MSG_ERROR([no boost.thread library found])
)
dnl ==============================
dnl = checking for regex (win32) =
dnl ==============================