Fix: Missing libs dependencies in configure check for lttng-ust-ctl
authorChristian Babeux <christian.babeux@efficios.com>
Fri, 3 Aug 2012 20:31:28 +0000 (16:31 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 11 Sep 2012 15:19:41 +0000 (11:19 -0400)
commit1d586c7f93f26f4f29d308835c738b06834d6a70
treed7d8c7af4ff438c37e90ab8592e0bd3d22dc922a
parentb5e7bec3024d6af95a172afd776bbd0f782e3dcb
Fix: Missing libs dependencies in configure check for lttng-ust-ctl

The lttng-ust-ctl library depends on liburcu-{common,bp,cds}.  The
AC_CHECK_LIBRARY macro can't automatically resolve dependents libraries
(ala libtool), so any additionnals dependencies must be manually
specified.

Also, the AC_CHECK_LIB action-if-found case for the lttng-ust-ctl check
is modified to have a similar behavior as the default action, which is
to define HAVE_LIBxxx and append -lxxx to $LIBS, *except* for the later
step. This is to ensure that any future addition of AC_CHECK_LIB after
the one for lttng-ust-ctl will not need to append the liburcu
dependencies or fail unexpectedly.

Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
configure.ac
This page took 0.024944 seconds and 4 git commands to generate.