From 30d4d2967bbf6e97d2a6196d6068ec269e8a4290 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Wed, 11 May 2011 17:29:22 +0000 Subject: [PATCH] Fix code coverage with cutter. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5f7cad1..078c7b4 100644 --- a/configure.ac +++ b/configure.ac @@ -63,7 +63,7 @@ PKG_CHECK_MODULES([LIBNFC], [libnfc >= $LIBNFC_REQUIRED_VERSION], [], [AC_MSG_ER PKG_CONFIG_REQUIRES="libnfc" AC_SUBST([PKG_CONFIG_REQUIRES]) -CUTTER_REQUIRED_VERSION=1.1.2 +CUTTER_REQUIRED_VERSION=1.1.7 m4_ifdef([AC_CHECK_CUTTER], [AC_CHECK_CUTTER([>= $CUTTER_REQUIRED_VERSION])], [ac_cv_use_cutter="no"]) if test x$ac_cv_with_cutter = xyes -a x$ac_cv_use_cutter = xno; then AC_MSG_ERROR([cutter >= $CUTTER_REQUIRED_VERSION is mandatory.]) @@ -72,7 +72,7 @@ AM_CONDITIONAL([WITH_CUTTER], [test "$ac_cv_use_cutter" != "no"]) m4_ifdef([AC_CHECK_COVERAGE], [AC_CHECK_COVERAGE]) -if test x$ac_cv_enable_coverage = xyes; then +if test x$cutter_enable_coverage = xyes; then CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage" fi