summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-03-23 11:05:55 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-03-23 11:05:55 +0000
commit4460c6d0d30cf20b76854d47fd9e3aecf1839f15 (patch)
tree19780291ee8eebc6e9fbfe85125c298b42156ff3 /configure.ac
parent168ecd96f23756e185af627f814f81b8a4c0c529 (diff)
configure: Stop the debug build erroring out if it cannot find valgrind
Another case where I passed an empty string believing that would be sufficient to replace the error path... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 7ca3075c..b5919bf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -254,8 +254,10 @@ 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], 1, [Use valgrind intrinsics to suppress false warings]),)
+ PKG_CHECK_MODULES(VALGRIND, [valgrind], have_valgrind=yes, have_valgrind=no)
+ if test x$have_valgrind = xyes; then
+ AC_DEFINE([HAVE_VALGRIND], 1, [Use valgrind intrinsics to suppress false warnings])
+ fi
fi
if test "x$DEBUG" = xfull; then
AC_DEFINE(HAS_DEBUG_FULL,1,[Enable all debugging])