[maemo-commits] [maemo-commits] r16259 - projects/haf/trunk/sapwood

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Mon Sep 29 14:13:41 EEST 2008
Author: herzi
Date: 2008-09-29 14:13:38 +0300 (Mon, 29 Sep 2008)
New Revision: 16259

Modified:
   projects/haf/trunk/sapwood/ChangeLog
   projects/haf/trunk/sapwood/autogen.sh
   projects/haf/trunk/sapwood/configure.in
Log:
2008-09-29  Sven Herzberg  <sven at imendio.com>

	Added --enable-debug to define ENABLE_DEBUG properly; define
	automatically for developer builds

	* autogen.sh: pass --enable-debug to the configure script
	* configure.in: accept --enable-debug and set ENABLE_DEBUG properly


Modified: projects/haf/trunk/sapwood/ChangeLog
===================================================================
--- projects/haf/trunk/sapwood/ChangeLog	2008-09-29 11:13:24 UTC (rev 16258)
+++ projects/haf/trunk/sapwood/ChangeLog	2008-09-29 11:13:38 UTC (rev 16259)
@@ -1,3 +1,11 @@
+2008-09-29  Sven Herzberg  <sven at imendio.com>
+
+	Added --enable-debug to define ENABLE_DEBUG properly; define
+	automatically for developer builds
+
+	* autogen.sh: pass --enable-debug to the configure script
+	* configure.in: accept --enable-debug and set ENABLE_DEBUG properly
+
 2008-09-23  Sven Herzberg  <sven at imendio.com>
 
 	Added a folder for the tests

Modified: projects/haf/trunk/sapwood/autogen.sh
===================================================================
--- projects/haf/trunk/sapwood/autogen.sh	2008-09-29 11:13:24 UTC (rev 16258)
+++ projects/haf/trunk/sapwood/autogen.sh	2008-09-29 11:13:38 UTC (rev 16259)
@@ -8,7 +8,7 @@
 automake-1.8 --add-missing --foreign || automake --add-missing --foreign
 
 if test x$NOCONFIGURE = x; then
-  ./configure --enable-maintainer-mode "$@"
+  ./configure --enable-maintainer-mode --enable-debug "$@"
 else
   echo Skipping configure process.
 fi

Modified: projects/haf/trunk/sapwood/configure.in
===================================================================
--- projects/haf/trunk/sapwood/configure.in	2008-09-29 11:13:24 UTC (rev 16258)
+++ projects/haf/trunk/sapwood/configure.in	2008-09-29 11:13:38 UTC (rev 16259)
@@ -100,6 +100,26 @@
 AC_SUBST(GDK_CFLAGS)
 AC_SUBST(GDK_LIBS)
 
+PKG_CHECK_MODULES(GIO,[gio-2.0])
+
+dnl  ------------------
+dnl | Extra Debugging? |
+dnl  ------------------
+
+AC_MSG_CHECKING([for debugging support])
+AC_ARG_ENABLE([debug],
+              AS_HELP_STRING([--enable-debug],[Enable debugging via environment variable]),
+              [enable_debug=yes],
+              [enable_debug=no])
+AC_MSG_RESULT([$enable_debug])
+if test ! -z "$enable_debug" -a "$enable_debug" -eq "yes"; then
+        AC_DEFINE([ENABLE_DEBUG],[],[Enable debugging via environment variable])
+fi
+
+dnl  ---------------------------
+dnl | Write Configuration Files |
+dnl  ---------------------------
+
 AC_OUTPUT([
 Makefile
 protocol/Makefile


More information about the maemo-commits mailing list