[no subject]



Proposed patch attached.

Matt

--=-XmpJ6PKctrrj7F0gSkNA
Content-Description: 
Content-Disposition: inline; filename="gnome-common.patch"
Content-Type: text/x-patch; name="gnome-common.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit

commit f6a4ce37e5ea1dc0df62ac244fbeb158de3d2cb2
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Mar 30 09:06:49 2010 -0400

    Add GNOME_DEVELOPER_DEFINES
    
    Similiar to GNOME_MAINTAINER_MODE_DEFINES, but checks for the presence
    of "$srcdir/.git" instead of checking maintainer mode.

diff --git a/macros2/gnome-common.m4 b/macros2/gnome-common.m4
index a5a0ead..b3ec5a8 100644
--- a/macros2/gnome-common.m4
+++ b/macros2/gnome-common.m4
@@ -48,3 +48,19 @@ AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
 
 	AC_SUBST(DISABLE_DEPRECATED)
 ])
+
+dnl GNOME_DEVELOPER_DEFINES ()
+dnl define DISABLE_DEPRECATED
+dnl
+AC_DEFUN([GNOME_DEVELOPER_DEFINES],
+[
+	DISABLE_DEPRECATED=""
+	if test -d "$srcdir/.git"; then
+	        DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP"
+	        for DOMAIN in $DOMAINS; do
+	               DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES"
+	        done
+	fi
+
+	AC_SUBST(DISABLE_DEPRECATED)
+])

--=-XmpJ6PKctrrj7F0gSkNA--



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