forked from enlightenment/efl
valgrind support is now automatic, make usage clear at summary
SVN revision: 53823
This commit is contained in:
parent
a528a88fe0
commit
be4836a118
|
@ -122,19 +122,21 @@ fi
|
||||||
AC_SUBST(EINA_CONFIGURE_MAGIC_DEBUG)
|
AC_SUBST(EINA_CONFIGURE_MAGIC_DEBUG)
|
||||||
|
|
||||||
# Valgrind
|
# Valgrind
|
||||||
want_valgrind="no"
|
want_valgrind="auto"
|
||||||
|
have_valgrind="no"
|
||||||
|
|
||||||
AC_MSG_CHECKING(whether to enable build with valgrind)
|
AC_MSG_CHECKING(whether to enable build with valgrind)
|
||||||
AC_ARG_ENABLE(valgrind,
|
AC_ARG_ENABLE(valgrind,
|
||||||
AC_HELP_STRING([--enable-valgrind], [enable valgrind fixes to stop false reports]),
|
AC_HELP_STRING([--enable-valgrind], [improve valgrind support by hinting it of our memory usages, having it to report proper mempool leaks.]),
|
||||||
[want_valgrind=$enableval]
|
[want_valgrind=$enableval]
|
||||||
)
|
)
|
||||||
AC_MSG_RESULT($want_valgrind)
|
AC_MSG_RESULT($want_valgrind)
|
||||||
|
|
||||||
if test x$want_valgrind = "xyes"; then
|
if test "x${want_valgrind}" = "xyes" -o "x${want_valgrind}" = "xauto"; then
|
||||||
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
|
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
|
||||||
[
|
[
|
||||||
requirement_eina="valgrind ${requirement_eina}"
|
requirement_eina="valgrind ${requirement_eina}"
|
||||||
|
have_valgrind="yes"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
|
AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
|
||||||
|
@ -615,6 +617,7 @@ echo " Magic debug..........: ${have_magic_debug}"
|
||||||
echo " Safety checks........: ${have_safety_checks}"
|
echo " Safety checks........: ${have_safety_checks}"
|
||||||
echo " Maximum log level....: ${with_max_log_level}"
|
echo " Maximum log level....: ${with_max_log_level}"
|
||||||
echo " Report string usage..: ${have_stringshare_usage}"
|
echo " Report string usage..: ${have_stringshare_usage}"
|
||||||
|
echo " Valgrind support.....: ${have_valgrind}"
|
||||||
echo " Default mempool......: ${have_default_mempool}"
|
echo " Default mempool......: ${have_default_mempool}"
|
||||||
echo " Thread Support.......: ${have_threads}"
|
echo " Thread Support.......: ${have_threads}"
|
||||||
if test "${have_threads}" = "POSIX" ; then
|
if test "${have_threads}" = "POSIX" ; then
|
||||||
|
|
Loading…
Reference in New Issue