summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index be21f3d2..dd4607c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,8 +101,15 @@ AC_DEFINE_UNQUOTED([X15_MAX_CPUS], [$opt_max_cpus],
AC_MSG_NOTICE([maximum number of supported processors: $opt_max_cpus])
AS_IF([test x"$enable_mutex_pi" = xyes],
+ [mutex_impl="priority inheritance"],
+ [mutex_impl=plain])
+AC_MSG_NOTICE([mutex implementation: $mutex_impl])
+
+AS_IF([test x"$enable_mutex_pi" = xyes],
[AC_DEFINE_UNQUOTED([X15_MUTEX_PI], [],
[Enable priority inheritance for regular mutexes])])
+AM_CONDITIONAL([MUTEX_PI],
+ [test x"$enable_mutex_pi" = xyes])
AS_IF([test x"$enable_thread_stack_guard" = xyes],
[AC_DEFINE_UNQUOTED([X15_THREAD_STACK_GUARD], [],