aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-13 12:02:59 -0500
committerTed Gould <ted@gould.cx>2010-08-13 12:02:59 -0500
commit6a055d8bfda60a818fa8c9118561b0afc2b4c4f5 (patch)
tree3f788f4cf5ea08164538ca249d7f8695555fdd26 /configure.ac
parent53265a332a1d59a2f0867207fcd81926bf40ff6c (diff)
parent89924de7c425e5cc6e6c201b2bb4e05c979aec7a (diff)
downloadlibayatana-indicator-6a055d8bfda60a818fa8c9118561b0afc2b4c4f5.tar.gz
libayatana-indicator-6a055d8bfda60a818fa8c9118561b0afc2b4c4f5.tar.bz2
libayatana-indicator-6a055d8bfda60a818fa8c9118561b0afc2b4c4f5.zip
Adding debug flag
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 23350c6..9065602 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,20 @@ AC_DEFINE_PATH(PREFIX, "${prefix}", [prefix directory])
AC_DEFINE_PATH(SYSCONFDIR, "${sysconfdir}", [system configuration dir])
AC_DEFINE_PATH(LIBDIR, "${libdir}", [system configuration dir])
+#########################
+# Debug symbols
+#########################
+AC_ARG_ENABLE([debug],
+ AC_HELP_STRING([--enable-debug], [build with debug symbols]),,
+ [enable_debug=no])
+
+if test "x$enable_debug" = "xyes"; then
+ CFLAGS="-g $CFLAGS"
+ AC_DEFINE(ENABLE_DEBUG, 1, [build with extra debug information])
+fi
+
+AM_CONDITIONAL(ENABLE_DEBUG, test "$enable_debug" = "yes")
+
###########################
# Files
###########################
@@ -105,4 +119,6 @@ AC_MSG_NOTICE([
Libindicator Configuration:
Prefix: $prefix
+
+ Enable debugging: $enable_debug
])