From 95d8bca1eb7ac8c846d826afa3dfa5589b729287 Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 27 Sep 2019 17:16:50 +0200 Subject: Set compiler debug flags in MATE_DEBUG_CHECK --- macros/mate-common.m4 | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'macros') diff --git a/macros/mate-common.m4 b/macros/mate-common.m4 index 8ebae30..c9056a5 100644 --- a/macros/mate-common.m4 +++ b/macros/mate-common.m4 @@ -34,15 +34,12 @@ AC_DEFUN([MATE_COMMON_INIT], AC_DEFUN([MATE_DEBUG_CHECK], [ - AC_ARG_ENABLE([debug], - AS_HELP_STRING([--enable-debug], - [turn on debugging]),, - [enable_debug=no]) - - if test x$enable_debug = xyes ; then - AC_DEFINE(MATE_ENABLE_DEBUG, 1, - [Enable additional debugging at the expense of performance and size]) - fi + m4_ifdef([AX_CHECK_ENABLE_DEBUG],[ + AX_CHECK_ENABLE_DEBUG([ + m4_default([$1],[no])],[ + MATE_ENABLE_DEBUG])],[ + AC_MSG_ERROR([You need to install the autoconf-archive package.]) + ]) ]) dnl MATE_MAINTAINER_MODE_DEFINES () -- cgit v1.2.1