X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=configure.ac;h=ae75a3be66f9ec8309f46a6cdb7ed483e83356ad;hb=28d4495eeefb8d7d169f34af6497d84089b77be8;hp=9fc78599d5bfa448b0e39bccb45b5b64ec4bcb2b;hpb=75906a2c1a0d8ab1065ecb41898b4ea84d5c835f;p=userspace-rcu.git diff --git a/configure.ac b/configure.ac index 9fc7859..ae75a3b 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,7 @@ AH_TEMPLATE([CONFIG_RCU_HAVE_FUTEX], [Defined when on a system with futex suppor AH_TEMPLATE([CONFIG_RCU_COMPAT_ARCH], [Compatibility mode for i386 which lacks cmpxchg instruction.]) AH_TEMPLATE([CONFIG_RCU_ARM_HAVE_DMB], [Use the dmb instruction if available for use on ARM.]) AH_TEMPLATE([CONFIG_RCU_TLS], [TLS provided by the compiler.]) +AH_TEMPLATE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [clock_gettime() is detected.]) # Allow overriding storage used for TLS variables. AC_ARG_ENABLE([compiler-tls], @@ -220,9 +221,9 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ ]) # Search for clock_gettime -AC_SEARCH_LIBS([clock_gettime], [rt], [], - [AC_MSG_ERROR([Cannot find clock_gettime function.])] -) +AC_SEARCH_LIBS([clock_gettime], [rt], [ + AC_DEFINE([CONFIG_RCU_HAVE_CLOCK_GETTIME], [1]) +], []) # Check for pthread AC_CHECK_LIB([pthread], [pthread_create],