Default *.schemas files repository location - PATCH
- From: Yanko Kaneti <yaneti declera com>
- To: "gconf-list gnome org" <gconf-list gnome org>
- Subject: Default *.schemas files repository location - PATCH
- Date: 26 Aug 2001 15:39:55 +0300
hi
i think we should consider the administrative installation of the
foo.schemas file defining the schemas for foo to have the same scope as
the actuall schemas install in the default database
so how about the following extension to gconf.m4 macro?
if defines another variable GCONF_SCHEMAS_FILES_REPOSITORY which
defaults to gconfsysconfdir/gconf/schemas/ and can be controlled by
--with-gconf-schemas-repository=dir
this will allow packages to have something like
schemasdir = $(GCONF_SCHEMAS_FILES_REPOSITORY)
schemas_DATA = foo.schemas
regards
yanko
p.s. if found acceptable, i would gladly patch the remaining bits
(HEAD,docs)
Index: gconf.m4.in
===================================================================
RCS file: /cvs/gnome/gconf/gconf.m4.in,v
retrieving revision 1.1.2.2
diff -u -b -p -r1.1.2.2 gconf.m4.in
--- gconf.m4.in 2001/08/13 22:37:23 1.1.2.2
+++ gconf.m4.in 2001/08/26 12:26:58
@@ -66,7 +66,7 @@ AC_ARG_ENABLE(gconftest, [ --disable-gc
])
dnl AM_GCONF_SOURCE
-dnl Define GCONF_SCHEMA_CONFIG_SOURCE
+dnl Define GCONF_SCHEMA_CONFIG_SOURCE and GCONF_SCHEMAS_FILES_REPOSITORY
dnl
AC_DEFUN(AM_GCONF_SOURCE,
[
@@ -77,8 +77,21 @@ else
fi
AC_ARG_WITH(gconf-source,
-[ --with-gconf-source=sourceaddress Where to install schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
+[ --with-gconf-source=sourceaddress Where to install the schemas.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
AC_MSG_RESULT("Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation")
+
+
+if test "x$GCONF_SCHEMAS_REPOSITORY" = "x"; then
+ GCONF_SCHEMAS_FILES_REPOSITORY= EXPANDED_SYSCONFDIR@/gconf/schemas/
+else
+ GCONF_SCHEMAS_FILES_REPOSITORY=$GCONF_SCHEMAS_REPOSITORY
+fi
+
+AC_ARG_WITH(gconf-schemas-repository,
+[ --with-gconf-schemas-repository=dir Repository to install the schemas files.],GCONF_SCHEMAS_FILES_REPOSITORY="$withval",)
+
+ AC_SUBST(GCONF_SCHEMAS_FILES_REPOSITORY)
+ AC_MSG_RESULT("Using $GCONF_SCHEMAS_FILES_REPOSITORY as schemas files repository")
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]