Commit baf40975 authored by Francis Dupont's avatar Francis Dupont

[918-check-c-11-thread-support-in-configure] Added check for condition variable

parent adbcc263
......@@ -200,6 +200,19 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do
[AC_MSG_RESULT([no])
continue])
AC_MSG_CHECKING(condition variable support)
feature="condition variable"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include <condition_variable>
std::mutex mtx;
std::condition_variable cv;],
[std::lock_guard<std::mutex> lock(mtx);
cv.notify_one();])],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
continue])
AC_MSG_CHECKING(atomic support)
feature="atomic"
AC_COMPILE_IFELSE(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment