summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2010-08-30 11:36:07 +0200
committerCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2010-08-30 11:36:07 +0200
commit75219825d61edec6e2b1ad5efe29d8fbf0540d6e (patch)
tree6db4585b82b9982f679fa5f6a3aca46c2cf07f22 /configure.ac
parent80a14a93939cf9125a91f4698bdc91a61ac67e19 (diff)
configure: always set the right value to $enable_coverage
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 1e96baa..f223a8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,14 +167,18 @@ AC_ARG_ENABLE(coverage, AC_HELP_STRING([--enable-coverage],
[compile with coverage profiling instrumentation (gcc only)]),
[
case "${enableval}" in
- "yes"|"no") coverage="${enableval}" ;;
+ "yes"|"no") enable_coverage="${enableval}" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-coverage) ;;
esac
]
)
-WOCKY_GCOV(${coverage})
-WOCKY_LCOV(${coverage})
+WOCKY_GCOV(${enable_coverage})
+WOCKY_LCOV(${enable_coverage})
+
+if test "x$enable_coverage" = "x"; then
+ enable_coverage=no
+fi
AC_SUBST(PACKAGE_STRING)