From 657e7f898de916a8b2bfa375ee2605f2776d825e Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 9 Jan 2012 18:11:23 -0500 Subject: [PATCH] Fix autoconf futex check The check was always returning true. Signed-off-by: David Goulet Signed-off-by: Mathieu Desnoyers --- configure.ac | 5 ++--- 1 file 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 - ]],[[ #ifndef __NR_futex #error "futexes not available" #endif - ]]) + ]) ],[ AC_MSG_RESULT([yes]) AC_DEFINE([CONFIG_RCU_HAVE_FUTEX], [1]) -- 2.34.1