diff options
author | Emanuele Aina <em@nerd.ocracy.org> | 2007-06-26 13:21:54 +0000 |
---|---|---|
committer | Emanuele Aina <em@nerd.ocracy.org> | 2007-06-26 13:21:54 +0000 |
commit | 0e15968b5ee1c61bf9e1720e5240b598a1143660 (patch) | |
tree | 258fde9d484996323066b81ede07aa40ba081430 /m4/salut-args.m4 | |
parent | ee29278e4d92f0057277199c3947a666ec3c4aa1 (diff) |
Fixed the valgrind and coverage compile options reorganizing the macro inclusion
Diffstat (limited to 'm4/salut-args.m4')
-rw-r--r-- | m4/salut-args.m4 | 17 |
1 files changed, 10 insertions, 7 deletions
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) ]) |