commit 4e6a2ef0321a9561ec1ed38099bc89c25cfe9ebf
parent 333f56c3894449ccd6786c41257ddcc5cf021efe
Author: Paul <paul@claws-mail.org>
Date: Thu, 20 Oct 2022 09:13:24 +0100
clean up check for valgrind
Diffstat:
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -1024,13 +1024,15 @@ fi
AC_MSG_CHECKING([whether to use valgrind])
if test x$enable_valgrind = xyes; then
AC_MSG_RESULT(yes)
- PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
- enable_valgrind=yes, enable_valgrind=no)
- if test x"$enable_valgrind" = xyes; then
+ PKG_CHECK_MODULES([VALGRIND], [valgrind >= 2.4.0],
+ [
AC_DEFINE(HAVE_VALGRIND, 1, Define if you want valgrind support)
- else
- AC_MSG_RESULT(not found)
- fi
+ enable_valgrind=yes
+ ],
+ [
+ AC_MSG_NOTICE([valgrind support deactivated as valgrind >= 2.4.0 was not found])
+ enable_valgrind=no
+ ])
else
AC_MSG_RESULT(no)
fi