+AC_CHECK_DECL([rcu_thread_offline], [],
+ [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include <urcu.h>]]
+)
+AC_CHECK_DECL([rcu_thread_online], [],
+ [AC_MSG_ERROR([liburcu $liburcu_version or newer is needed])], [[#include <urcu.h>]]
+)
+AC_CHECK_DECL([ustctl_create_session],
+ [
+ AC_DEFINE([CONFIG_LTTNG_TOOLS_HAVE_UST], 1)
+ have_ust_test=1
+ ],
+ [
+ AC_MSG_WARN([UST header not found. Building without UST support.])
+ have_ust_test=0
+ ],
+ [[#include <ust/lttng-ust-ctl.h>]]
+)
+
+AM_CONDITIONAL([LTTNG_TOOLS_HAVE_UST], [ test "x$have_ust_test" = "x1" ])