summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-04-15 11:15:16 +0200
committerPatrick McHardy <kaber@trash.net>2008-04-15 13:54:07 +0200
commit493c712d61c35a6d8db877b208d34c111337a918 (patch)
treee5fd2af55f674b0bfd27d360212e4ccabec6079d
parentb95fc082a82953b590a5f3a039b022a455bd77da (diff)
Dynamically create xtables.h.in with version
-rw-r--r--configure.ac2
-rw-r--r--include/xtables.h.in (renamed from include/xtables.h)2
2 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2d9862ef..b6afa349 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,4 +56,4 @@ AC_SUBST([kinclude_CFLAGS])
AC_SUBST([kbuilddir])
AC_SUBST([ksourcedir])
AC_SUBST([xtlibdir])
-AC_OUTPUT([Makefile extensions/GNUmakefile libipq/Makefile])
+AC_OUTPUT([Makefile extensions/GNUmakefile libipq/Makefile include/xtables.h])
diff --git a/include/xtables.h b/include/xtables.h.in
index 5eba8aca..c8a8746f 100644
--- a/include/xtables.h
+++ b/include/xtables.h.in
@@ -17,6 +17,8 @@
#define IPPROTO_UDPLITE 136
#endif
+#define XTABLES_VERSION "@PACKAGE_VERSION@"
+
/* Include file for additions: new matches and targets. */
struct xtables_match
{