[pygtk] Add --without-glade configure option. No change to current behaviour



commit 913fe0227f0c00b5c4f9c2af594eba56b0972545
Author: John Stowers <john stowers gmail com>
Date:   Fri Mar 25 00:21:32 2011 +1300

    Add --without-glade configure option. No change to current behaviour

 configure.ac |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 474f00e..99bc1b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -386,8 +386,12 @@ if test "x$have_pycairo" = "xtrue"; then
   AC_DEFINE([HAVE_GTK_2_24], [$have_gtk_224], [If Gtk 2.24 was found])
 
   dnl libglade
-  PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= libglade_required_version],
+  have_libglade=false
+  AC_ARG_WITH([glade], AS_HELP_STRING([--without-glade], [Build without glade library (default: test)]))
+  if test "x$with_glade" != "xno"; then
+    PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0 >= libglade_required_version],
 	  have_libglade=true, have_libglade=false)
+  fi
   AC_SUBST(LIBGLADE_CFLAGS)
   AC_SUBST(LIBGLADE_LIBS)
   AM_CONDITIONAL(BUILD_LIBGLADE, $have_libglade)



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