[metacity] build: add AX_CHECK_ENABLE_DEBUG



commit e2d6beadb342732a149da1d6b92b854ff908ad5c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Sep 20 02:06:59 2015 +0300

    build: add AX_CHECK_ENABLE_DEBUG

 configure.ac |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 487ed10..4e158c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,6 +31,12 @@ dnl **************************************************************************
 AX_IS_RELEASE([git-directory])
 
 dnl **************************************************************************
+dnl Enable debug
+dnl **************************************************************************
+
+AX_CHECK_ENABLE_DEBUG([yes])
+
+dnl **************************************************************************
 dnl Initialize automake
 dnl **************************************************************************
 
@@ -442,13 +448,6 @@ if test x"$ZENITY" = xno; then
   AC_MSG_ERROR([zenity not found in your path - needed for dialogs])
 fi
 
-AC_ARG_ENABLE(debug,
-       [  --enable-debug               enable debugging],,
-       enable_debug=no)
-if test "x$enable_debug" = "xyes"; then
-       CFLAGS="$CFLAGS -g -O"
-fi
-
 # Warnings are there for a reason
 if test "x$GCC" = "xyes"; then
   CFLAGS="$CFLAGS -Wall -ansi"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]