From db7c9e8561afcc1ca7ab16b3bf2d5b49938e26d9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 13 Dec 2011 10:05:25 +0000 Subject: [PATCH] configure: Link the extra valgrind debugging to --enable-debug Signed-off-by: Chris Wilson --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 6dbeb285..4efb65d8 100644 --- a/configure.ac +++ b/configure.ac @@ -260,11 +260,11 @@ if test "x$DEBUG" = xno; then fi if test "x$DEBUG" != xno; then AC_DEFINE(HAS_EXTRA_DEBUG,1,[Enable additional debugging]) + PKG_CHECK_MODULES(VALGRIND, [valgrind], + AC_DEFINE([HAVE_VALGRIND], 0, [Use valgind intrinsics to suppress false warings]),) fi if test "x$DEBUG" = xfull; then AC_DEFINE(HAS_DEBUG_FULL,1,[Enable all debugging]) - PKG_CHECK_MODULES(VALGRIND, [valgrind], - AC_DEFINE([HAVE_VALGRIND], 0, [Use valgind intrinsics to suppress false warings]),) CFLAGS="$CFLAGS -O0 -ggdb3" fi