summaryrefslogtreecommitdiff
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
parenta69ba655a2ad566f68dd98d0bbc38a4280e50a1a (diff)
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 49909c3..6a84b5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -708,7 +708,7 @@ case "${build_profile}" in
708 dev) 708 dev)
709 with_max_log_level="" 709 with_max_log_level=""
710 have_stringshare_usage="no" 710 have_stringshare_usage="no"
711 want_valgrind="no" 711 want_valgrind="auto"
712 want_debug_malloc="no" 712 want_debug_malloc="no"
713 want_debug_threads="no" 713 want_debug_threads="no"
714 want_default_mempool="no" 714 want_default_mempool="no"
@@ -717,7 +717,7 @@ case "${build_profile}" in
717 debug) 717 debug)
718 with_max_log_level="" 718 with_max_log_level=""
719 have_stringshare_usage="yes" 719 have_stringshare_usage="yes"
720 want_valgrind="no" 720 want_valgrind="auto"
721 want_debug_malloc="yes" 721 want_debug_malloc="yes"
722 want_debug_threads="yes" 722 want_debug_threads="yes"
723 want_default_mempool="yes" 723 want_default_mempool="yes"
@@ -759,6 +759,23 @@ EFL_ADD_LIBS([EINA], [-lm])
759## Options 759## Options
760 760
761# Valgrind 761# Valgrind
762AC_ARG_ENABLE([valgrind],
763 [AC_HELP_STRING([--disable-valgrind],
764 [enable valgrind mempool declaration. @<:@default=disabled@:>@])],
765 [
766 if test "x${enableval}" = "xyes" ; then
767 want_valgrind="yes"
768 else
769 want_valgrind="no"
770 fi
771 ])
772
773if test "${want_valgrind}" = "auto"; then
774 PKG_CHECK_EXISTS([valgrind >= 2.4.0], [want_valgrind="yes"],
775 [want_valgrind="no"
776 AC_MSG_WARN([valgrind support desired by --with-profile=${build_profile} but not found. If your platform supports it, install valgrind.])])
777fi
778
762if test "${want_valgrind}" = "no"; then 779if test "${want_valgrind}" = "no"; then
763 AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled]) 780 AC_DEFINE([NVALGRIND], [1], [Valgrind support disabled])
764else 781else