[libgda/LIBGDA_4.2] Added --enable-gi-system-install configure option



commit 47e1df9499eb4c5c837e469078ec43194449f69a
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sat May 21 10:46:25 2011 +0200

    Added --enable-gi-system-install configure option
    
    it allows to specify that GObject Introspection files
    have to be installed in the system dir. or in a dir. below $prefix

 configure.ac          |    5 +++++
 libgda-ui/Makefile.am |    9 +++++++--
 libgda/Makefile.am    |   10 ++++++++--
 3 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index cd2dea2..55fa458 100644
--- a/configure.ac
+++ b/configure.ac
@@ -480,6 +480,11 @@ else
 fi
 AM_CONDITIONAL(ENABLE_GDAUI_GI, [test "$enable_gdaui_gi" = "yes"])
 
+AC_ARG_ENABLE([gi-system-install],
+    AS_HELP_STRING([--enable-gi-system-install], [Install GObject Introspection files along with system installed files [default=yes]]),
+    [enable_gi_system_install=$enableval],[enable_gi_system_install=yes])
+AM_CONDITIONAL(ENABLE_GI_SYSTEM_INSTALL, [test x"$enable_gi_system_install" = "xyes"])
+
 dnl ******************************
 dnl Checks for libcrypto
 dnl ******************************
diff --git a/libgda-ui/Makefile.am b/libgda-ui/Makefile.am
index b1511ef..2af194a 100644
--- a/libgda-ui/Makefile.am
+++ b/libgda-ui/Makefile.am
@@ -223,10 +223,15 @@ Gdaui_4_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
 INTROSPECTION_COMPILER_ARGS = --includedir=$(top_builddir)/libgda
 INTROSPECTION_GIRS += Gdaui-4.0.gir
 
+if ENABLE_GI_SYSTEM_INSTALL
 girdir = $(INTROSPECTION_GIRDIR)
-gir_DATA = $(INTROSPECTION_GIRS)
-
 typelibsdir = $(INTROSPECTION_TYPELIBDIR)
+else
+girdir = $(datadir)/gir-1.0
+typelibsdir = $(libdir)/girepository-1.0
+endif
+
+gir_DATA = $(INTROSPECTION_GIRS)
 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
 
 CLEANFILES += $(INTROSPECTION_GIRS) $(typelibs_DATA)
diff --git a/libgda/Makefile.am b/libgda/Makefile.am
index 4fa2a1e..5143f6f 100644
--- a/libgda/Makefile.am
+++ b/libgda/Makefile.am
@@ -361,10 +361,16 @@ Gda_4_0_gir_LIBS = $(lib_LTLIBRARIES)
 Gda_4_0_gir_FILES = $(addprefix $(srcdir)/,$(introspection_sources))
 INTROSPECTION_GIRS += Gda-4.0.gir
 
+if ENABLE_GI_SYSTEM_INSTALL
 girdir = $(INTROSPECTION_GIRDIR)
-gir_DATA = $(INTROSPECTION_GIRS)
-
 typelibsdir = $(INTROSPECTION_TYPELIBDIR)
+else
+girdir = $(datadir)/gir-1.0
+typelibsdir = $(libdir)/girepository-1.0
+endif
+
+gir_DATA = $(INTROSPECTION_GIRS)
 typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
 CLEANFILES += $(INTROSPECTION_GIRS) $(typelibs_DATA)
 endif



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