X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=0bca42a686634dc8dd0dba97438ae66c33782c96;hb=4fe638e78c6c0f68314fa6fb3e1551f947f8f1ea;hp=ba7538dbfca5cf33d4ae1b95deb2963f8a9ef08f;hpb=628a1a723be893a52b715d25a2d529dc56c2dc03;p=urcu.git diff --git a/configure.ac b/configure.ac index ba7538d..0bca42a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,9 @@ AC_PREREQ(2.59) -AC_INIT([userspace-rcu],[0.10.0-pre],[mathieu dot desnoyers at efficios dot com], [], [http://liburcu.org/]) +AC_INIT([userspace-rcu],[0.10.3],[mathieu dot desnoyers at efficios dot com], [], [http://liburcu.org/]) # Following the numbering scheme proposed by libtool for the library version # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html -AC_SUBST([URCU_LIBRARY_VERSION], [5:0:1]) +AC_SUBST([URCU_LIBRARY_VERSION], [6:0:0]) AC_CONFIG_HEADERS([include/config.h include/urcu/config.h]) AC_CONFIG_AUX_DIR([config]) @@ -42,14 +42,7 @@ AC_ARG_ENABLE([compiler-tls], [def_compiler_tls=$enableval], [def_compiler_tls="yes"]) -# If not overridden, use ax_tls.m4 to check if TLS is available. -AS_IF([test "x$def_compiler_tls" = "xyes"], - [AX_TLS([def_tls_detect=$ac_cv_tls], [:])], - [:]) - -AS_IF([test "x$def_tls_detect" = "x"], - [:], - [AC_DEFINE_UNQUOTED([CONFIG_RCU_TLS], $def_tls_detect)]) +AS_IF([test "x$def_compiler_tls" = "xyes"], AC_DEFINE([CONFIG_RCU_TLS], [1]), [:]) # Checks for C compiler AC_USE_SYSTEM_EXTENSIONS @@ -89,9 +82,8 @@ AS_IF([test "x$ax_cv___attribute__" = "xyes"], [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])]) AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])]) -LIBS="$PTHREAD_LIBS $LIBS" -CFLAGS="$CFLAGS $PTHREAD_CFLAGS" -CC="$PTHREAD_CC" + +AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" # Checks for library functions. AC_FUNC_MMAP @@ -149,6 +141,7 @@ AS_CASE([$host_cpu], [nios2*], [ARCHTYPE="nios2"], [tile*], [ARCHTYPE="tile"], [hppa*], [ARCHTYPE="hppa"], + [m68k], [ARCHTYPE="m68k"], [ARCHTYPE="unknown"] ) @@ -168,7 +161,7 @@ AS_IF([test "x$SUBARCHTYPE" = xx86compat],[ ]) AS_IF([test "$host_cpu" = "armv7l"],[ - CFLAGS="$CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1" + AM_CFLAGS="$AM_CFLAGS -mcpu=cortex-a9 -mtune=cortex-a9 -O1" ]) # ARM-specific checks @@ -367,8 +360,11 @@ AC_CHECK_FUNCS([sched_setaffinity],[ ]) ]) -DEFAULT_INCLUDES="-include config.h" -AC_SUBST(DEFAULT_INCLUDES) +AM_CPPFLAGS="-include config.h" +AC_SUBST(AM_CPPFLAGS) + +AM_CFLAGS="-Wall $AM_CFLAGS" +AC_SUBST(AM_CFLAGS) AC_CONFIG_LINKS([ include/urcu/arch.h:$ARCHSRC @@ -425,7 +421,7 @@ test "x$compat_futex_test" = "x0" && value=1 || value=0 PPRINT_PROP_BOOL([Futex support], $value) # TLS -test "x$def_tls_detect" = "x" && value="pthread_getspecific()" || value="$def_tls_detect" +test "x$def_compiler_tls" = "xyes" && value="compiler TLS" || value="pthread_getspecific()" PPRINT_PROP_STRING([Thread Local Storage (TLS)], [$value]) # clock_gettime() available