aboutsummaryrefslogtreecommitdiff
path: root/m4/gcov.m4
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2012-03-21 16:49:51 -0400
committerKen VanDine <ken.vandine@canonical.com>2012-03-21 16:49:51 -0400
commit3b5f1f96c4c72df927ba4266c03ac4bec64864c0 (patch)
tree93bc7aaeb4e2a6eb6899f58a858bc172537c7ade /m4/gcov.m4
parent2ac0106d8114b81b86bfaeabf8746375425563a2 (diff)
parentb6760ba8d8977c9ebbf0f49d427310bd8dd4d58d (diff)
downloadayatana-indicator-messages-3b5f1f96c4c72df927ba4266c03ac4bec64864c0.tar.gz
ayatana-indicator-messages-3b5f1f96c4c72df927ba4266c03ac4bec64864c0.tar.bz2
ayatana-indicator-messages-3b5f1f96c4c72df927ba4266c03ac4bec64864c0.zip
* New upstream release.
* Fix for missing icons in the messaging menu (LP: #960553) * Fix i18n for description (LP: #957525) * Implementing initial testing * Fixing blacklists (LP: #939258) * debian/control: Adding dep on libgtest-dev
Diffstat (limited to 'm4/gcov.m4')
-rw-r--r--m4/gcov.m423
1 files changed, 13 insertions, 10 deletions
diff --git a/m4/gcov.m4 b/m4/gcov.m4
index 1169573..3163584 100644
--- a/m4/gcov.m4
+++ b/m4/gcov.m4
@@ -5,11 +5,10 @@
# * gcovr
#
# Sets ac_cv_check_gcov to yes if tooling is present
-# and reports the executables to the variables LCOV, GCOVR and GENHTML.
+# and reports the executables to the variables LCOV, GCOVR and GENHTML.
AC_DEFUN([AC_TDD_GCOV],
-[AC_CACHE_CHECK([whether code coverage tools are available], ac_cv_check_gcov,
[
-AC_ARG_ENABLE(gcov,
+ AC_ARG_ENABLE(gcov,
AS_HELP_STRING([--enable-gcov],
[enable coverage testing with gcov]),
[use_gcov=$enableval], [use_gcov=no])
@@ -34,7 +33,6 @@ AC_ARG_ENABLE(gcov,
lcov_version_list="1.6 1.7 1.8 1.9"
AC_CHECK_PROG(LCOV, lcov, lcov)
AC_CHECK_PROG(GENHTML, genhtml, genhtml)
- AC_CHECK_PROG(GCOVR, gcovr, gcovr)
if test "$LCOV"; then
AC_CACHE_CHECK([for lcov version], glib_cv_lcov_version, [
@@ -63,10 +61,8 @@ AC_ARG_ENABLE(gcov,
AC_MSG_ERROR([Could not find genhtml from the lcov package])
fi
- if test -z "$GCOVR"; then
- AC_MSG_ERROR([Could not find gcovr; easy_install (or pip) gcovr])
- fi
-
+ ac_cv_check_gcov=yes
+ ac_cv_check_lcov=yes
# Remove all optimization flags from CFLAGS
changequote({,})
@@ -78,6 +74,13 @@ AC_ARG_ENABLE(gcov,
COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage"
COVERAGE_LDFLAGS="-lgcov"
-fi
-])]) # AC_TDD_GCOV
+ # Check availability of gcovr
+ AC_CHECK_PROG(GCOVR, gcovr, gcovr)
+ if test -z "$GCOVR"; then
+ ac_cv_check_gcovr=no
+ else
+ ac_cv_check_gcovr=yes
+ fi
+fi
+]) # AC_TDD_GCOV