Skip to content

Commit

Permalink
configure.ac: Add LTTng tracepoints feature
Browse files Browse the repository at this point in the history
Change-Id: I192ff24448a6454c8d504febd7ab2df2ccf88272
  • Loading branch information
Olivier Dion committed May 20, 2022
1 parent 95ec084 commit 67fa5a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ AC_ARG_ENABLE([agent],
AM_CONDITIONAL([ENABLE_AGENT], [test "x$enable_agent" = "xyes"])
AM_COND_IF([ENABLE_AGENT], [AC_CONFIG_FILES([test/agent/Makefile])])

AC_ARG_ENABLE([tracepoints], AS_HELP_STRING([--enable-tracepoints], [Enable tracepoints]))

AM_CONDITIONAL([ENABLE_TRACEPOINTS], [test "x$enable_tracepoints" = "xyes"])


dnl Check for programs
AC_PROG_CC
AC_PROG_CXX
Expand Down Expand Up @@ -613,6 +618,11 @@ AC_DEFINE_UNQUOTED([HAVE_SHM],
`if test "x$with_dbus" == xyes; then echo 1; else echo 0; fi`,
[Define if you have shared memory support])

# LTTNG
AM_COND_IF([ENABLE_TRACEPOINTS],
[PKG_CHECK_MODULES(LTTNG, [lttng-ust >= 2.13],, AC_MSG_ERROR([Missing lttng-ust]))
PKG_CHECK_MODULES(LIBURCU, [liburcu >= 0.13.1],, AC_MSG_ERROR([Missng liburcu]))])

# DOXYGEN
# required dependency(ies): doxygen
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
Expand Down

0 comments on commit 67fa5a3

Please sign in to comment.