-AC_CACHE_CHECK(
- [for std::this_thread::sleep_for],
- [folly_cv_func_this_thread_sleep_for],
- [AC_COMPILE_IFELSE(
- [AC_LANG_SOURCE[
- #include <thread>
- #include <chrono>
- void func() { std::this_thread::sleep_for(std::chrono::seconds(1)); }]],
- [folly_cv_func_this_thread_sleep_for=yes],
- [folly_cv_func_this_thread_sleep_for=no])])
-
-if test "$folly_cv_func_this_thread_sleep_for" = yes; then
- AC_DEFINE([HAVE_STD__THIS_THREAD__SLEEP_FOR], [1],
- [Define to 1 if std::this_thread::sleep_for() is defined.])
-fi
-