Exports xkbcomp version and the xkb base directory.
Signed-off-by: Peter Hutterer <[email protected]>
---
Something like this should do to get us around the bugs.
Makefile.am | 3 +++
configure.ac | 3 ++-
xkbcomp.pc.in | 8 ++++++++
3 files changed, 13 insertions(+), 1 deletions(-)
create mode 100644 xkbcomp.pc.in
diff --git a/Makefile.am b/Makefile.am
index d0e991d..2493f1e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,6 +60,9 @@ xkbcomp_SOURCES = \
xkbpath.h \
xkbscan.c
+pkgconfigdir = $(datadir)/pkgconfig
+pkgconfig_DATA = xkbcomp.pc
+
MAINTAINERCLEANFILES = ChangeLog INSTALL
.PHONY: ChangeLog INSTALL
diff --git a/configure.ac b/configure.ac
index 252eb1a..b4635de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,5 +58,6 @@ AC_SUBST([XKBCONFIGROOT])
AC_CONFIG_FILES([
Makefile
- man/Makefile])
+ man/Makefile
+ xkbcomp.pc])
AC_OUTPUT
diff --git a/xkbcomp.pc.in b/xkbcomp.pc.in
new file mode 100644
index 0000000..0950e2d
--- /dev/null
+++ b/xkbcomp.pc.in
@@ -0,0 +1,8 @@
+prefix=@prefix@
+datarootdir=@datarootdir@
+datadir=@datadir@
+xkbconfigdir=@XKBCONFIGROOT@
+
+Name: xkbcomp
+Description: XKB keymap compiler
+Version: @PACKAGE_VERSION@
--
1.7.5.4
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel