diff options
Diffstat (limited to 'qpid/cpp/configure.ac')
| -rw-r--r-- | qpid/cpp/configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/qpid/cpp/configure.ac b/qpid/cpp/configure.ac index 058bce148f..a590f9b5e1 100644 --- a/qpid/cpp/configure.ac +++ b/qpid/cpp/configure.ac @@ -119,6 +119,22 @@ if test "$enable_APR" = yes; then USE_APR=1 fi +AC_ARG_ENABLE(valgrind, + [ --enable-valgrind enable testing via valgrind, if available (recommended) + --disable-valgrind do not use valgrind], + [case $enableval in + yes|no) enable_VALGRIND=$enableval;; + *) AC_MSG_ERROR([invalid valgrind enable/disable value: $enableval]);; + esac], + [enable_VALGRIND=no] # no option given, default + ) + +# We use valgrind for the tests. See if it's available. +# Check for it unconditionally, so we don't have to duplicate its +# use of AC_SUBST([VALGRIND]). +AC_CHECK_PROG([VALGRIND], [valgrind], [valgrind]) +test "$enable_VALGRIND" = no && VALGRIND= + AC_CONFIG_FILES([ Makefile gen/Makefile |
