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@:>@])],
### 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=""