From: Yannick Brosseau Date: Thu, 30 May 2013 18:40:49 +0000 (-0400) Subject: Don't solely rely on babeltrace pkg-config for detection X-Git-Tag: v1.5-beta1~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b3db7f062cd974adcc54eefee833e7a152c740bf;p=lttv.git Don't solely rely on babeltrace pkg-config for detection The babeltrace.pc file is not yet reliably available on all distribution Signed-off-by: Yannick Brosseau --- diff --git a/configure.ac b/configure.ac index 59338a27..817a46d9 100644 --- a/configure.ac +++ b/configure.ac @@ -109,7 +109,16 @@ PKG_CHECK_MODULES(GMODULE, [$pkg_modules]) pkg_modules="gobject-2.0 >= 2.0.0" PKG_CHECK_MODULES(GOBJECT, [$pkg_modules]) -PKG_CHECK_MODULES(BABELTRACE, [babeltrace >= 1.1.0]) +PKG_CHECK_MODULES(BABELTRACE, [babeltrace >= 1.1.0], [], + [AC_CHECK_LIB([babeltrace], [bt_context_create], [], + [AC_MSG_ERROR([Cannot find the babeltrace library.])] + ) + +# Check for libbabeltrace-ctf +AC_CHECK_LIB([babeltrace-ctf], [bt_ctf_iter_create], [], + [AC_MSG_ERROR([Cannot find the babeltrace-ctf library.])] + ) +]) AC_CHECK_LIB([babeltrace], [bt_iter_equals_pos], [AC_DEFINE([HAVE_BT_ITER_EQUALS_POS],[],[Have equal function])], [])