? libgnomecanvas-glade-optional.patch
? docs/reference/libgnomecanvas.interfaces
? docs/reference/libgnomecanvas.prerequisites
? docs/reference/xml
? libgnomecanvas/libgnomecanvas-2.0-uninstalled.pc
Index: configure.in
===================================================================
RCS file: /cvs/gnome/libgnomecanvas/configure.in,v
retrieving revision 1.133
diff -u -r1.133 configure.in
--- configure.in	4 Mar 2004 12:02:16 -0000	1.133
+++ configure.in	29 Mar 2004 09:35:02 -0000
@@ -68,9 +68,20 @@
 AC_SUBST(LIBGNOMECANVAS_CFLAGS)
 AC_SUBST(LIBGNOMECANVAS_LIBS)
 
-PKG_CHECK_MODULES(CANVAS_GLADE, $CANVAS_MODULES libglade-2.0 >= $LIBGLADE_REQUIRED)
-AC_SUBST(CANVAS_GLADE_CFLAGS)
-AC_SUBST(CANVAS_GLADE_LIBS)
+AC_ARG_ENABLE(glade, [  --enable-glade		enable glade support (needs libglade-2.0) [default=auto]], , enable_glade=yes)
+if test "x$enable_glade" = "xyes"; then
+  PKG_CHECK_MODULES(CANVAS_GLADE, $CANVAS_MODULES libglade-2.0 >= $LIBGLADE_REQUIRED,
+    use_glade=yes
+    AC_SUBST(CANVAS_GLADE_CFLAGS)
+    AC_SUBST(CANVAS_GLADE_LIBS),
+    AC_MSG_ERROR([
+*** libglade-2.0 is needed. Either install it or turn off
+*** glade support using the --disable-glade option.]))
+else
+  AC_MSG_WARN([*** libgnomecanvas will be built without glade support.])
+fi
+
+AM_CONDITIONAL(USE_GLADE, test "x$use_glade" = xyes)
 
 AC_MSG_CHECKING([for native Win32])
 case "$host" in
Index: glade/Makefile.am
===================================================================
RCS file: /cvs/gnome/libgnomecanvas/glade/Makefile.am,v
retrieving revision 1.3
diff -u -r1.3 Makefile.am
--- glade/Makefile.am	9 Jan 2003 02:00:49 -0000	1.3
+++ glade/Makefile.am	29 Mar 2004 09:35:02 -0000
@@ -11,7 +11,9 @@
 	$(CANVAS_GLADE_CFLAGS)
 
 glademoduledir = $(libdir)/libglade/2.0
+if USE_GLADE
 glademodule_LTLIBRARIES = libcanvas.la
+endif
 
 libcanvas_la_LIBADD = \
 	$(top_builddir)/libgnomecanvas/libgnomecanvas-2.la	\
