[lttng-dev] [URCU PATCH] Fix autoconf futex check

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Mon Jan 9 18:11:20 EST 2012


* David Goulet (dgoulet at efficios.com) wrote:
> The check was always returning true.
> 
> Signed-off-by: David Goulet <dgoulet at efficios.com>

Merged, thanks!

Mathieu

> ---
>  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
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list