From 40c47a8d1650aa4349c735ab2ad670b74c44f353 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 9 Apr 2020 11:40:55 -0400 Subject: [PATCH] configure: add check for DEFINE_URCU_TLS_INIT Signed-off-by: Mathieu Desnoyers --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index bfada519..ead15307 100644 --- a/configure.ac +++ b/configure.ac @@ -249,6 +249,17 @@ AM_CONDITIONAL([HAVE_DLINFO], [test "x${ac_cv_have_decl_RTLD_DI_LINKMAP}" = "xye # URCU +AC_MSG_CHECKING([DEFINE_URCU_TLS_INIT()]) +AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ + #include + DEFINE_URCU_TLS_INIT(int, a, 1); +]])], [ + AC_MSG_RESULT([yes]) +], [ + AC_MSG_RESULT([no]) + AC_MSG_ERROR([Please upgrade your version of liburcu to 0.12.0 or better]) +]) + # urcu - check if we just find the headers it out of the box. AC_CHECK_HEADERS([urcu-bp.h], [], [AC_MSG_ERROR([Cannot find [URCU] headers (urcu-bp.h). Use [CPPFLAGS]=-Idir to specify their location. This error can also occur when the liburcu package's configure script has not been run.])]) -- 2.34.1