configure: Link the extra valgrind debugging to --enable-debug

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-13 10:05:25 +00:00
parent d02dc0fd84
commit db7c9e8561
1 changed files with 2 additions and 2 deletions

View File

@ -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