From 0e15968b5ee1c61bf9e1720e5240b598a1143660 Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Tue, 26 Jun 2007 13:21:54 +0000 Subject: Fixed the valgrind and coverage compile options reorganizing the macro inclusion 20070626132154-f974e-1c612eaa640fd535b4ebb5b8bfc40695ff9819f5.gz --- m4/salut-args.m4 | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'm4/salut-args.m4') diff --git a/m4/salut-args.m4 b/m4/salut-args.m4 index eee986da..433113a2 100644 --- a/m4/salut-args.m4 +++ b/m4/salut-args.m4 @@ -39,15 +39,16 @@ AC_DEFUN([SALUT_ARG_VALGRIND], [ dnl valgrind inclusion AC_ARG_ENABLE(valgrind, - AC_HELP_STRING([--disable-valgrind],[disable run-time valgrind detection]), + AC_HELP_STRING([--enable-valgrind],[enable valgrind checking and run-time detection]), [ case "${enableval}" in - yes) ENABLE_VALGRIND=yes ;; - no) ENABLE_VALGRIND=no ;; + yes|no) enable="${enableval}" ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-valgrind) ;; esac ], - [ENABLE_VALGRIND=no]) + [enable=no]) + + SALUT_VALGRIND($enable) ]) AC_DEFUN([SALUT_ARG_COVERAGE], @@ -57,10 +58,12 @@ AC_DEFUN([SALUT_ARG_COVERAGE], [compile with coverage profiling instrumentation (gcc only)]), [ case "${enableval}" in - yes) ENABLE_COVERAGE=yes ;; - no) ENABLE_COVERAGE=no ;; + yes|no) enable="${enableval}" ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-coverage) ;; esac ], - [ENABLE_COVERAGE=no]) + [enable=no]) + + SALUT_GCOV($enable) + SALUT_LCOV($enable) ]) -- cgit v1.2.3