From 9daf47b32504f797d3ec3ee3883ee0502863b2eb Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 10 Jan 2003 16:29:35 +0000 Subject: [PATCH] Check for POSIX thread condition variables. git-svn-id: https://svn.dealii.org/trunk@6909 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 1d71d3387e..f367a98c82 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -1022,6 +1022,29 @@ AC_DEFUN(DEAL_II_CHECK_POSIX_THREAD_FUNCTIONS, dnl AC_MSG_ERROR(not found) ]) + AC_MSG_CHECKING(for posix thread condition variable functions) + AC_LANG(C++) + AC_TRY_COMPILE( + [ +# include + ], + [ + pthread_cond_t pc; + pthread_cond_init (&pc, 0); + pthread_cond_signal (&pc); + pthread_cond_broadcast (&pc); + + pthread_mutex_t pm; + pthread_cond_wait (&pc, &pm); + pthread_cond_destroy (&pc); + ], + [ + AC_MSG_RESULT(ok) + ], + [ + AC_MSG_ERROR(not found) + ]) + AC_MSG_CHECKING(for posix thread barrier functions) AC_LANG(C++) AC_TRY_COMPILE( -- 2.39.5