aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-07 22:24:53 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-07 22:24:53 +0000
commit5286e5bfe01e48f1ea55eba1dfa4dabc07fb20b4 (patch)
treea381ec68047e1057718458949eeeb2e381a93699 /configure.ac
parentmoved edje into EFL. (diff)
downloadefl-5286e5bfe01e48f1ea55eba1dfa4dabc07fb20b4.tar.gz
efl: add back valgrind check, with enable option and warning.
SVN revision: 82368
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 19 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 49909c3313..6a84b5ad75 100644
--- a/configure.ac
+++ b/configure.ac
@@ -708,7 +708,7 @@ case "${build_profile}" in
dev)
with_max_log_level=""
have_stringshare_usage="no"
- want_valgrind="no"
+ want_valgrind="auto"
want_debug_malloc="no"
want_debug_threads="no"
want_default_mempool="no"
@@ -717,7 +717,7 @@ case "${build_profile}" in
debug)
with_max_log_level=""
have_stringshare_usage="yes"
- want_valgrind="no"
+ want_valgrind="auto"
want_debug_malloc="yes"
want_debug_threads="yes"
want_default_mempool="yes"
@@ -759,6 +759,23 @@ EFL_ADD_LIBS([EINA], [-lm])
## Options
# Valgrind
+AC_ARG_ENABLE([valgrind],
+ [AC_HELP_STRING([--disable-valgrind],
+ [enable valgrind mempool declaration. @<:@default=disabled@:>@])],
+ [
+ if test "x${enableval}" = "xyes" ; then
+ want_valgrind="yes"
+ else
+ want_valgrind="no"
+ fi
+ ])
+
+if test "${want_valgrind}" = "auto"; then
+ PKG_CHECK_EXISTS([valgrind >= 2.4.0], [want_valgrind="yes"],
+ [want_valgrind="no"
+ AC_MSG_WARN([valgrind support desired by --with-profile=${build_profile} but not found. If your platform supports it, install valgrind.])])
+fi
+
if test "${want_valgrind}" = "no"; then
AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled])
else