[PATCH] Add libnl-cli-3.0 to pkg-config tool

Jiří Župka jzupka at redhat.com
Tue Oct 4 03:27:40 EDT 2011


Signed-off-by: Jiří Župka <jzupka at redhat.com>
---
 Makefile.am         |    6 +++++-
 configure.in        |    1 +
 libnl-cli-3.0.pc.in |   11 +++++++++++
 3 files changed, 17 insertions(+), 1 deletions(-)
 create mode 100644 libnl-cli-3.0.pc.in

diff --git a/Makefile.am b/Makefile.am
index 70d1b76..4b8f020 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,9 +3,11 @@
 ACLOCAL_AMFLAGS = -I m4
 
 OPT_DIRS =
+PKGCONFIGS =
 
 if ENABLE_CLI
 OPT_DIRS += src
+PKGCONFIGS += libnl-cli-3.0.pc
 endif
 
 SUBDIRS = include lib doc man python $(OPT_DIRS)
@@ -13,7 +15,9 @@ SUBDIRS = include lib doc man python $(OPT_DIRS)
 pkgconfig_DATA = libnl-3.0.pc \
 		 libnl-route-3.0.pc \
 		 libnl-genl-3.0.pc \
-		 libnl-nf-3.0.pc
+		 libnl-nf-3.0.pc \
+		 $(PKGCONFIGS)
+
 
 pkgsysconfdir = ${sysconfdir}/libnl
 pkgsysconf_DATA = etc/pktloc etc/classid
diff --git a/configure.in b/configure.in
index a9e3a7a..31b5bff 100644
--- a/configure.in
+++ b/configure.in
@@ -76,6 +76,7 @@ libnl-3.0.pc
 libnl-route-3.0.pc
 libnl-genl-3.0.pc
 libnl-nf-3.0.pc
+libnl-cli-3.0.pc
 doc/Doxyfile
 doc/Makefile
 lib/Makefile
diff --git a/libnl-cli-3.0.pc.in b/libnl-cli-3.0.pc.in
new file mode 100644
index 0000000..501e8ce
--- /dev/null
+++ b/libnl-cli-3.0.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libnl-cli
+Description: Command Line Interface library for netlink sockets
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lnl-cli
+Cflags: -I${includedir}
+Requires: libnl-3.0 libnl-genl-3.0 libnl-nf-3.0 libnl-route-3.0
-- 
1.7.6.4




More information about the libnl mailing list