summaryrefslogtreecommitdiff
path: root/m4/salut-lcov.m4
diff options
context:
space:
mode:
authorEmanuele Aina <em@nerd.ocracy.org>2007-06-26 13:21:54 +0000
committerEmanuele Aina <em@nerd.ocracy.org>2007-06-26 13:21:54 +0000
commit0e15968b5ee1c61bf9e1720e5240b598a1143660 (patch)
tree258fde9d484996323066b81ede07aa40ba081430 /m4/salut-lcov.m4
parentee29278e4d92f0057277199c3947a666ec3c4aa1 (diff)
downloadtelepathy-salut-0e15968b5ee1c61bf9e1720e5240b598a1143660.tar.gz
Fixed the valgrind and coverage compile options reorganizing the macro inclusion
20070626132154-f974e-1c612eaa640fd535b4ebb5b8bfc40695ff9819f5.gz
Diffstat (limited to 'm4/salut-lcov.m4')
-rw-r--r--m4/salut-lcov.m412
1 files changed, 8 insertions, 4 deletions
diff --git a/m4/salut-lcov.m4 b/m4/salut-lcov.m4
index 8d9a4da1..c0bbbf9c 100644
--- a/m4/salut-lcov.m4
+++ b/m4/salut-lcov.m4
@@ -2,9 +2,11 @@ dnl Check for lcov utility
AC_DEFUN([SALUT_LCOV],
[
- AC_PATH_PROG(LCOV_PATH, [lcov], [no])
+ enable=$1
- if test X$LCOV_PATH != Xno ; then
+ AC_PATH_PROG(LCOV_PATH, lcov)
+
+ if test -n "$LCOV_PATH" ; then
AC_MSG_CHECKING([whether lcov accepts --compat-libtool])
if $LCOV_PATH --compat-libtool --help > /dev/null 2>&1 ; then
AC_MSG_RESULT(ok)
@@ -12,12 +14,14 @@ AC_DEFUN([SALUT_LCOV],
AC_MSG_RESULT(no)
AC_MSG_WARN([lcov option --compat-libtool is not supported])
AC_MSG_WARN([update lcov to version > 1.5])
- LCOV_PATH=no
+ LCOV_PATH=""
fi
fi
- if test X$LCOV_PATH == Xno ; then
+ if test -z "$LCOV_PATH" ; then
AC_MSG_WARN([will use an internal lcov copy])
LCOV_PATH='$(top_srcdir)/scripts/lcov/lcov'
fi
+
+ AM_CONDITIONAL(HAVE_LCOV, test -n "$LCOV_PATH" && test "x$enable" = xyes)
])