summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--configure.ac14
2 files changed, 14 insertions, 5 deletions
diff --git a/README b/README
index 01a69236fd..b56febcef3 100644
--- a/README
+++ b/README
@@ -23,8 +23,9 @@ EFL build is based on "profiles". It will default to "dev" for
23unreleased software and "release" for official tarballs. One can 23unreleased software and "release" for official tarballs. One can
24change it with --with-profile=NAME, where NAME is one of: 24change it with --with-profile=NAME, where NAME is one of:
25 25
26 * dev: debug features, assert() and extra checks useful to test 26 * dev: extra checks useful to test software.
27 software. 27
28 * debug: superset of dev, with debug features and assert().
28 29
29 * release: optimizations and less checks so it runs faster. 30 * release: optimizations and less checks so it runs faster.
30 31
diff --git a/configure.ac b/configure.ac
index ceb351b4a6..51180291d4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,13 +87,13 @@ AC_CANONICAL_HOST
87 87
88AC_ARG_WITH([profile], 88AC_ARG_WITH([profile],
89 [AC_HELP_STRING([--with-profile=PROFILE], 89 [AC_HELP_STRING([--with-profile=PROFILE],
90 [use the predefined build profile, one of: dev, release. 90 [use the predefined build profile, one of: dev, debug and release.
91 @<:@default=dev@:>@])], 91 @<:@default=dev@:>@])],
92 [build_profile=${withval}], 92 [build_profile=${withval}],
93 [build_profile=dev]) 93 [build_profile=dev])
94 94
95case "$build_profile" in 95case "$build_profile" in
96 dev|release) 96 dev|debug|release)
97 ;; 97 ;;
98 *) 98 *)
99 AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}]) 99 AC_MSG_ERROR([Unknown build profile --with-profile=${build_profile}])
@@ -218,7 +218,7 @@ AC_FUNC_ALLOCA
218 218
219prefer_assert="no" 219prefer_assert="no"
220case "$build_profile" in 220case "$build_profile" in
221 dev) 221 dev|debug)
222 prefer_assert="yes" 222 prefer_assert="yes"
223 ;; 223 ;;
224esac 224esac
@@ -354,6 +354,14 @@ have_magic_debug="yes"
354have_safety_checks="yes" 354have_safety_checks="yes"
355want_log="yes" 355want_log="yes"
356case "$build_profile" in 356case "$build_profile" in
357 debug)
358 with_max_log_level=""
359 have_stringshare_usage="no"
360 want_valgrind="no" # TODO: "yes" is not working: relocation R_X86_64_32S against `vgPlain_interim_stack' can not be used when making a shared object; recompile with -fPIC
361 want_debug_malloc="no"
362 want_debug_threads="no"
363 ;;
364
357 dev) 365 dev)
358 with_max_log_level="" 366 with_max_log_level=""
359 have_stringshare_usage="yes" 367 have_stringshare_usage="yes"