Besides the usual stuff, a "xlocaledatadir" variable is added; this is very useful for programs who wish to use the files without doing guesswork or requiring explicit configure flags.
Signed-off-by: Ran Benita <[email protected]> --- Makefile.am | 3 +++ configure.ac | 3 ++- xlocale-config.pc.in | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 xlocale-config.pc.in diff --git a/Makefile.am b/Makefile.am index 5d163e8..0826e15 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,9 @@ SUBDIRS=nls specs ACLOCAL_AMFLAGS = -I m4 +pkgconfigdir = $(datadir)/pkgconfig +pkgconfig_DATA = xlocale-config.pc + MAINTAINERCLEANFILES = ChangeLog INSTALL .PHONY: ChangeLog INSTALL diff --git a/configure.ac b/configure.ac index 76e0fce..9b599c8 100644 --- a/configure.ac +++ b/configure.ac @@ -59,5 +59,6 @@ AC_CONFIG_FILES([Makefile specs/Makefile specs/i18n/Makefile specs/i18n/compose/Makefile - specs/i18n/localedb/Makefile]) + specs/i18n/localedb/Makefile + xlocale-config.pc]) AC_OUTPUT diff --git a/xlocale-config.pc.in b/xlocale-config.pc.in new file mode 100644 index 0000000..ec902ab --- /dev/null +++ b/xlocale-config.pc.in @@ -0,0 +1,8 @@ +prefix=@prefix@ +datarootdir=@datarootdir@ +datadir=@datadir@ +xlocaledatadir=@X11_LOCALEDATADIR@ + +Name: xlocale-config +Description: X locale configuration data +Version: @VERSION@ -- 2.1.0 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
