summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-27 17:16:50 +0200
committerraveit65 <[email protected]>2019-09-27 20:33:44 +0200
commit95d8bca1eb7ac8c846d826afa3dfa5589b729287 (patch)
tree32a77452532f46b2ca01db87dce78a602b8e04f8 /macros
parent3e9287e6c4f720de9ef9cc1789d19419e6311145 (diff)
downloadmate-common-95d8bca1eb7ac8c846d826afa3dfa5589b729287.tar.bz2
mate-common-95d8bca1eb7ac8c846d826afa3dfa5589b729287.tar.xz
Set compiler debug flags in MATE_DEBUG_CHECK
Diffstat (limited to 'macros')
-rw-r--r--macros/mate-common.m415
1 files changed, 6 insertions, 9 deletions
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 ()