]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libipq: add pkgconfig file
authorJan Engelhardt <jengelh@medozas.de>
Mon, 8 Aug 2011 00:38:41 +0000 (02:38 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 8 Aug 2011 00:38:41 +0000 (02:38 +0200)
This is just to make sure that projects (still) using it do so with
the right cflags, e.g. for when the include file ends up in a
non-standard location due to ./configure having been called with
--include=/somewhere/else.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
configure.ac
libipq/.gitignore [new file with mode: 0644]
libipq/Makefile.am
libipq/libipq.pc.in [new file with mode: 0644]

index 6aa0b2a72ce608fb32d698bdb597adfc3a9611c2..ab824a4fd7a1e922caa80220ed9986eb0374309d 100644 (file)
@@ -111,6 +111,7 @@ AC_SUBST([libxtables_vmajor])
 
 AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
        iptables/Makefile iptables/xtables.pc
-       libipq/Makefile libiptc/Makefile libiptc/libiptc.pc utils/Makefile
+       libipq/Makefile libipq/libipq.pc
+       libiptc/Makefile libiptc/libiptc.pc utils/Makefile
        include/xtables.h include/iptables/internal.h])
 AC_OUTPUT
diff --git a/libipq/.gitignore b/libipq/.gitignore
new file mode 100644 (file)
index 0000000..6cb21a3
--- /dev/null
@@ -0,0 +1 @@
+/libipq.pc
index 93e5b1c878ba47ede9ab1e4017d32bcda949082e..9e3a2ca6c42e2da360c526fef59db8277d7e15b1 100644 (file)
@@ -9,3 +9,5 @@ man_MANS         = ipq_create_handle.3 ipq_destroy_handle.3 ipq_errstr.3 \
                    ipq_get_msgerr.3 ipq_get_packet.3 ipq_message_type.3 \
                    ipq_perror.3 ipq_read.3 ipq_set_mode.3 ipq_set_verdict.3 \
                    libipq.3
+
+pkgconfig_DATA = libipq.pc
diff --git a/libipq/libipq.pc.in b/libipq/libipq.pc.in
new file mode 100644 (file)
index 0000000..ea31ec7
--- /dev/null
@@ -0,0 +1,11 @@
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name:          libipq
+Description:   Interface to the (old) ip_queue mechanism
+Version:       @PACKAGE_VERSION@
+Libs:          -L${libdir} -lipq
+Cflags:                -I${includedir}