summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-26 18:50:10 +0200
committerraveit65 <[email protected]>2019-10-01 19:00:28 +0200
commit88f1176c39d073746ce94d10ee469a3423dab641 (patch)
treed121f5f0240cfce323dc634f636f42f2974d4b43
parent1c381a61f3dbe9c42945cbd5ca73832d0b7cfe25 (diff)
downloadmate-power-manager-88f1176c39d073746ce94d10ee469a3423dab641.tar.bz2
mate-power-manager-88f1176c39d073746ce94d10ee469a3423dab641.tar.xz
Set compiler debug flags using MATE_DEBUG_CHECK
-enable-debug=yes/info/profile/no By default, compiler debug flags are disabled. Test: $ ./autogen.sh --prefix=/usr -enable-debug ... MATE Power Manager 1.23.0 ============================= prefix: /usr datadir: ${datarootdir} compiler: gcc cflags: -g -O0 gnome-keyring support: yes Building extra applets: yes Self test support: no dbus-1 services dir: ${datarootdir}/dbus-1/services Now type `make' to compile mate-power-manager $ ./autogen.sh --prefix=/usr ... MATE Power Manager 1.23.0 ============================= prefix: /usr datadir: ${datarootdir} compiler: gcc cflags: gnome-keyring support: yes Building extra applets: yes Self test support: no dbus-1 services dir: ${datarootdir}/dbus-1/services Now type `make' to compile mate-power-manager
-rw-r--r--configure.ac6
1 files changed, 2 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 4a4f098..5740342 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,8 @@ AC_CONFIG_MACRO_DIR([m4])
# enable nice build output on automake1.11
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
+MATE_DEBUG_CHECK([no])
+
AC_PROG_CC
AM_PROG_CC_C_O
@@ -45,10 +47,6 @@ if test "x$enable_deprecated" = "xyes"; then
CPPFLAGS="$CPPFLAGS $DISABLE_DEPRECATED"
fi
-dnl ---------------------------------------------------------------------------
-dnl - Debugging switches (uncomment this if you want to use gdb)
-dnl ---------------------------------------------------------------------------
-CPPFLAGS="$CPPFLAGS -g"
CPPFLAGS="$CPPFLAGS -fexceptions"
dnl ---------------------------------------------------------------------------