---
configure.ac | 1 +
gobject/.gitignore | 1 +
gobject/Makefile.am | 3 +++
gobject/libguestfs-gobject-1.0.pc.in | 11 +++++++++++
4 files changed, 16 insertions(+)
create mode 100644 gobject/libguestfs-gobject-1.0.pc.in
diff --git a/configure.ac b/configure.ac
index a1e761e..dc8d9bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1440,6 +1440,7 @@ AC_CONFIG_FILES([Makefile
generator/Makefile
gnulib/lib/Makefile
gnulib/tests/Makefile
+ gobject/libguestfs-gobject-1.0.pc
gobject/Makefile
gobject/docs/Makefile
gobject/docs/guestfs-docs.sgml
diff --git a/gobject/.gitignore b/gobject/.gitignore
index 9dbad7b..1afffa0 100644
--- a/gobject/.gitignore
+++ b/gobject/.gitignore
@@ -1,3 +1,4 @@
# Generated sources
/include
+/libguestfs-gobject-1.0.pc
/src
diff --git a/gobject/Makefile.am b/gobject/Makefile.am
index d949401..864b6b1 100644
--- a/gobject/Makefile.am
+++ b/gobject/Makefile.am
@@ -57,6 +57,9 @@ libguestfs_gobject_1_0_la_LIBS = $(GOBJECT_LIBS)
libguestfs_gobject_1_0_la_LDFLAGS = $(LDFLAGS) -L$(top_builddir)/src
libguestfs_gobject_1_0_la_LIBADD = -lguestfs
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libguestfs-gobject-1.0.pc
+
# All the headers except <guestfs-gobject.h> should be installed
# in the subdirectory.
install-data-hook:
diff --git a/gobject/libguestfs-gobject-1.0.pc.in b/gobject/libguestfs-gobject-1.0.pc.in
new file mode 100644
index 0000000..8effad7
--- /dev/null
+++ b/gobject/libguestfs-gobject-1.0.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libguestfs-gobject-1.0
+Version: @VERSION@
+Description: gobject bindings for the libguestfs library
+Requires: libguestfs,gobject-2.0,gio-2.0
+Cflags: -I${includedir}
+Libs: -L${libdir} -lguestfs-gobject-1.0
--
1.7.11.7