From: Matias Elo <matias....@nokia.com>

Disable debug checks by default for optimal performance.

Signed-off-by: Matias Elo <matias....@nokia.com>
---
/** Email created from pull request 281 (matiaselo:dev/misc_perf_opt)
 ** https://github.com/Linaro/odp/pull/281
 ** Patch: https://github.com/Linaro/odp/pull/281.patch
 ** Base sha: 9163719bd4c04321592dad9da7f26539f49c8b7a
 ** Merge commit sha: 788ccdfbb8df9ba8bbc49305ad08f178377a5d30
 **/
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 459ea2311..95e316026 100644
--- a/configure.ac
+++ b/configure.ac
@@ -227,7 +227,8 @@ DX_INIT_DOXYGEN($PACKAGE_NAME,
 AC_ARG_ENABLE([debug],
     [AS_HELP_STRING([--enable-debug],
                    [include additional debugging code ]
-                   [(set to 'full' to enable all --enable-*-debug-* 
options)])])
+                   [(set to 'full' to enable all --enable-*-debug-* 
options)])],
+                   [], [enable_debug=no])
 
 AS_IF([test "x$enable_debug" != "xno"], [ODP_DEBUG=1],
       [ODP_DEBUG=0])
@@ -380,6 +381,7 @@ AC_MSG_RESULT([
        shared libraries:       ${enable_shared}
        ABI compatible:         ${abi_compat}
        Deprecated APIs:        ${deprecated}
+       debug:                  ${enable_debug}
        cunit:                  ${cunit_support}
        test_vald:              ${test_vald}
        test_perf:              ${test_perf}

Reply via email to