clean up check for valgrind
This commit is contained in:
parent
333f56c389
commit
4e6a2ef032
14
configure.ac
14
configure.ac
|
@ -1024,13 +1024,15 @@ fi
|
||||||
AC_MSG_CHECKING([whether to use valgrind])
|
AC_MSG_CHECKING([whether to use valgrind])
|
||||||
if test x$enable_valgrind = xyes; then
|
if test x$enable_valgrind = xyes; then
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
|
PKG_CHECK_MODULES([VALGRIND], [valgrind >= 2.4.0],
|
||||||
enable_valgrind=yes, enable_valgrind=no)
|
[
|
||||||
if test x"$enable_valgrind" = xyes; then
|
|
||||||
AC_DEFINE(HAVE_VALGRIND, 1, Define if you want valgrind support)
|
AC_DEFINE(HAVE_VALGRIND, 1, Define if you want valgrind support)
|
||||||
else
|
enable_valgrind=yes
|
||||||
AC_MSG_RESULT(not found)
|
],
|
||||||
fi
|
[
|
||||||
|
AC_MSG_NOTICE([valgrind support deactivated as valgrind >= 2.4.0 was not found])
|
||||||
|
enable_valgrind=no
|
||||||
|
])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue