forked from enlightenment/efl
Eina: Moved valgrind check to the libararies check section.
As suggested by vtorri. SVN revision: 61990
This commit is contained in:
parent
fde1f6eed6
commit
ea689302c5
|
@ -150,34 +150,6 @@ if test "x${have_magic_debug}" = "xyes" ; then
|
|||
fi
|
||||
AC_SUBST(EINA_CONFIGURE_MAGIC_DEBUG)
|
||||
|
||||
# Valgrind
|
||||
want_valgrind="auto"
|
||||
have_valgrind="no"
|
||||
|
||||
AC_MSG_CHECKING(whether to enable build with valgrind)
|
||||
AC_ARG_ENABLE(valgrind,
|
||||
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]
|
||||
)
|
||||
AC_MSG_RESULT($want_valgrind)
|
||||
|
||||
if test "x${want_valgrind}" = "xyes" -o "x${want_valgrind}" = "xauto"; then
|
||||
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
|
||||
[
|
||||
requirement_eina="valgrind ${requirement_eina}"
|
||||
have_valgrind="yes"
|
||||
],
|
||||
[
|
||||
AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
|
||||
if test "x$want_valgrind" = "xyes"; then
|
||||
AC_MSG_ERROR([Valgrind >= 2.4.0 is required)])
|
||||
fi
|
||||
]
|
||||
)
|
||||
else
|
||||
AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
|
||||
fi
|
||||
|
||||
# Safety checks (avoid crashes on wrong api usage)
|
||||
AC_ARG_ENABLE(safety-checks,
|
||||
[AC_HELP_STRING([--disable-safety-checks], [disable safety checks for NULL pointers and like. @<:@default=enabled@:>@])],
|
||||
|
@ -308,6 +280,35 @@ EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
|
|||
|
||||
### Checks for libraries
|
||||
|
||||
# Valgrind
|
||||
want_valgrind="auto"
|
||||
have_valgrind="no"
|
||||
|
||||
AC_MSG_CHECKING(whether to enable build with valgrind)
|
||||
AC_ARG_ENABLE(valgrind,
|
||||
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]
|
||||
)
|
||||
AC_MSG_RESULT($want_valgrind)
|
||||
|
||||
if test "x${want_valgrind}" = "xyes" -o "x${want_valgrind}" = "xauto"; then
|
||||
PKG_CHECK_MODULES(VALGRIND, valgrind >= 2.4.0,
|
||||
[
|
||||
requirement_eina="valgrind ${requirement_eina}"
|
||||
have_valgrind="yes"
|
||||
],
|
||||
[
|
||||
AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
|
||||
if test "x$want_valgrind" = "xyes"; then
|
||||
AC_MSG_ERROR([Valgrind >= 2.4.0 is required)])
|
||||
fi
|
||||
]
|
||||
)
|
||||
else
|
||||
AC_DEFINE(NVALGRIND, 1, [Valgrind support disabled])
|
||||
fi
|
||||
|
||||
|
||||
# Evil library for compilation on Windows CE
|
||||
|
||||
EFL_EINA_BUILD=""
|
||||
|
|
Loading…
Reference in New Issue