From e1431577975f16550213502f5e6767db240c5124 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Jan 2021 11:20:33 +0100 Subject: Set compiler debug flags / logging with MATE_DEBUG_CHECK --- configure.ac | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac index 9a2a802..1a3713e 100644 --- a/configure.ac +++ b/configure.ac @@ -51,17 +51,18 @@ if test "x$enable_deprecation_flags" = "xyes"; then AC_SUBST(DISABLE_DEPRECATED_CFLAGS) fi -dnl --enable-debug=(yes/info/profile/no) -AS_CASE([$ax_enable_debug], - [yes|info], [ - DEBUG_CFLAGS="-DG_ENABLE_DEBUG" - ], - [no], [ +dnl --------------------------------------------------------------------------- +dnl - logging +dnl --------------------------------------------------------------------------- +if test "$ax_enable_debug" = "yes"; then + DEBUG_CFLAGS="-DG_ENABLE_DEBUG" +else + if test "x$ax_enable_debug" = "xno"; then DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS" - ], - [ + else DEBUG_CFLAGS="" - ]) + fi +fi AC_SUBST(DEBUG_CFLAGS) GOBJECT_INTROSPECTION_CHECK([0.6.7]) @@ -100,7 +101,7 @@ echo " Maintainer mode: ${USE_MAINTAINER_MODE} Use *_DISABLE_DEPRECATED: ${enable_deprecation_flags} - Turn on debugging: ${enable_debug} + Turn on debugging: ${ax_enable_debug} Build introspection support: ${found_introspection} " -- cgit v1.2.1