[seed] Make OS module build conditional



commit f6b9ccea62a345665150609067ab004281f14c84
Author: Robert Carr <racarr svn gnome org>
Date:   Tue Apr 28 12:52:49 2009 -0400

    Make OS module build conditional
---
 configure.ac           |   11 +++++++++++
 modules/os/Makefile.am |    3 +++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3acfaa1..5a130f0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -155,6 +155,17 @@ AC_SUBST(BUILD_EXAMPLE_MODULE)
 dnl ==== dbus? ====
 want_dbus_modules="yes"
 
+dnl ==== os ====
+AC_ARG_ENABLE(os-module,
+			  AC_HELP_STRING([--enable-os-module],
+							 [enable the os Seed module. [default=yes]]),
+			  [want_os_module=$enableval],[want_os_module="yes"])
+
+
+AM_CONDITIONAL(BUILD_OS_MODULE, test "x$want_os_module" = "xyes")
+AC_SUBST(BUILD_OS_MODULE)
+
+
 dnl =========================turtle example====================================
 AC_ARG_ENABLE(turtle-example,
 			  AC_HELP_STRING([--enable-turtle-example],
diff --git a/modules/os/Makefile.am b/modules/os/Makefile.am
index a58198c..798cf6d 100644
--- a/modules/os/Makefile.am
+++ b/modules/os/Makefile.am
@@ -1,3 +1,5 @@
+if BUILD_OS_MODULE
+
 seedlibdir = ${exec_prefix}/lib/seed
 
 seedlib_LTLIBRARIES = \
@@ -18,3 +20,4 @@ libos_la_LDFLAGS = \
         $(SEED_DEBUG_LDFLAGS) \
         $(SEED_PROFILE_LIBS)
 
+endif



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