[lttng-dev] [URCU PATCH] Fix autoconf futex check
David Goulet
dgoulet at efficios.com
Mon Jan 9 17:41:32 EST 2012
The check was always returning true.
Signed-off-by: David Goulet <dgoulet at efficios.com>
---
configure.ac | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 46770c5..f18d95b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,13 +102,12 @@ AS_IF([test "x$ARCHTYPE" = "xx86"],[
# Check if sys_futex() is available
AC_MSG_CHECKING([for sys_futex()])
-AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <sys/syscall.h>
- ]],[[
#ifndef __NR_futex
#error "futexes not available"
#endif
- ]])
+ ])
],[
AC_MSG_RESULT([yes])
AC_DEFINE([CONFIG_RCU_HAVE_FUTEX], [1])
--
1.7.8.2
More information about the lttng-dev
mailing list