From: Florian Forster Date: Sun, 1 Feb 2009 10:46:03 +0000 (+0100) Subject: libcollectdclient: Add a .pc file for pkg-config. X-Git-Tag: collectd-4.6.0~89 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9ece08deeff008c16f320a45989b26630cc9b42a;p=collectd.git libcollectdclient: Add a .pc file for pkg-config. --- diff --git a/configure.in b/configure.in index e54d87e0..83bb03c2 100644 --- a/configure.in +++ b/configure.in @@ -70,6 +70,10 @@ then CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS" fi +# Where to install .pc files. +pkgconfigdir="${libdir}/pkgconfig" +AC_SUBST(pkgconfigdir) + # # Checks for header files. # @@ -3095,7 +3099,7 @@ AC_SUBST(LCC_VERSION_STRING) AC_CONFIG_FILES(src/libcollectdclient/lcc_features.h) -AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/libiptc/Makefile src/libcollectdclient/Makefile src/liboconfig/Makefile src/liboping/Makefile bindings/Makefile) +AC_OUTPUT(Makefile src/Makefile src/collectd.conf src/libiptc/Makefile src/libcollectdclient/Makefile src/libcollectdclient/libcollectdclient.pc src/liboconfig/Makefile src/liboping/Makefile bindings/Makefile) if test "x$with_librrd" = "xyes" \ && test "x$librrd_threadsafe" != "xyes" diff --git a/src/libcollectdclient/Makefile.am b/src/libcollectdclient/Makefile.am index b8a8cbe1..60441452 100644 --- a/src/libcollectdclient/Makefile.am +++ b/src/libcollectdclient/Makefile.am @@ -6,6 +6,7 @@ endif pkginclude_HEADERS = client.h lcc_features.h lib_LTLIBRARIES = libcollectdclient.la +nodist_pkgconfig_DATA = libcollectdclient.pc BUILT_SOURCES = lcc_features.h diff --git a/src/libcollectdclient/libcollectdclient.pc.in b/src/libcollectdclient/libcollectdclient.pc.in new file mode 100644 index 00000000..faade70c --- /dev/null +++ b/src/libcollectdclient/libcollectdclient.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libcollectdclient +Description: Client library for the unixsock plugin of collectd. +Version: @LCC_VERSION_STRING@ +URL: http://collectd.org/ +Libs: -L${libdir} -lcollectdclient +Cflags: -I${includedir}