netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add --with-kernel-includes configure option to libnfnetlink
@ 2009-01-20 16:43 Bart De Schuymer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart De Schuymer @ 2009-01-20 16:43 UTC (permalink / raw)
  To: netfilter-devel

Hi,

This adds the --with-kernel-includes configure option to
libnfnetlink and updates README. This option allows compiling
with kernel headers not located at /usr/include.
Note that the --with-kernel option isn't implemented.


Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>


--- libnfnetlink-0.0.40/configure.in.old	2009-01-19 17:31:08.000000000 +0100
+++ libnfnetlink-0.0.40/configure.in	2009-01-20 15:21:27.000000000 +0100
@@ -17,8 +17,26 @@ case $target in 
 esac
 
 
-dnl--------------------------------
-dnl--------------------------------
+dnl Allows compiling the library with kernel include headers not located
+dnl at /usr/include
+AC_ARG_WITH([kernel-includes],
+    [AS_HELP_STRING([--with-kernel-includes=PATH],
+    [Path to kernel source include files @<:@default=/usr/include@:>@])],
+    [
+    if test x$withval = xyes -o x$withval = x ; then
+	AC_MSG_ERROR(--with-kernel-includes must be given the path to your kernel source include files.)
+    fi
+    if ! test -d $withval ; then
+	AC_MSG_ERROR(The --with-kernel-includes path $withval is not a directory.)
+    fi
+    if ! test -d $withval/linux ; then
+	AC_MSG_ERROR(The --with-kernel-includes directory $withval must contain the directory 'linux'.)
+    fi
+    if ! test -r $withval/linux ; then
+	AC_MSG_ERROR(You must have read permissions for the kernel source include files.)
+    fi
+    KERNEL_INCLUDES=`(cd $withval; /bin/pwd)`
+    CFLAGS="$CFLAGS -I$KERNEL_INCLUDES"],)
 
 
 dnl Output the makefile
--- libnfnetlink-0.0.40/README.old	2009-01-18 18:10:42.000000000 +0100
+++ libnfnetlink-0.0.40/README	2009-01-20 15:06:43.000000000 +0100
@@ -1,5 +1,5 @@
 libnfnetlink - userspace library for handling of netfilter netlink messages
-(C) 2001-2005 Netfilter Core Team <coreteam@netfilter.org>
+(C) 2001-2009 Netfilter Core Team <coreteam@netfilter.org>
 ===========================================================================
 
 What is nfnetlink?
@@ -13,22 +13,22 @@ What is libnfnetlink?
 
 libnfnetlink is a userspace library that provides some low-level
 nfnetlink handling functions.  It is used as a foundation for other, netfilter
-subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log
-and libnfnetlink_queue.
+subsystem specific libraries such as libnetfilter_conntrack, libnetfilter_log
+and libnetfilter_queue.
 
 
 Prerequirements for libnfnetlink
 
 You will need kernel headers from a kernel that has nfnetlink support.  The
-first official kernel release to include nfnetlink support is 2.6.14.  
-You can specify the location of your kernel sources using the "--with-kernel="
-configure option.
+first official kernel release to include nfnetlink support is 2.6.14.
+You can specify the location of your kernel sources using the
+"--with-kernel-includes" configure option.
 
 
 Where can I find documentation?
 
 At the moment, you will have to RTFS.  Sorry, but we have barely enough
-manpower to keep development ongoing.  If you want to conribute documentation,
+manpower to keep development ongoing.  If you want to contribute documentation,
 please contact us.
 
 
@@ -40,6 +40,5 @@ the "libnfnetlink" Product.
 
 Where do I get support?
 
-The netfilter@lists.netfilter.org and netfilter-devel@lists.netfilter.org
-mailinglists server as support forum.
-
+The netfilter@vger.kernel.org and netfilter-devel@vger.kernel.org
+mailinglists serve as support forum.

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [PATCH] add --with-kernel-includes configure option to libnfnetlink
@ 2009-01-24 11:25 Bart De Schuymer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart De Schuymer @ 2009-01-24 11:25 UTC (permalink / raw)
  To: netfilter-devel

Hi,

[This is a rediff which includes support for directories with
spaces.]


This adds the --with-kernel-includes configure option to
libnfnetlink and updates README. This option allows compiling
with kernel headers not located at /usr/include.

Signed-off-by: Bart De Schuymer <bdschuym@pandora.be>


--- libnfnetlink-0.0.40/configure.in.old	2009-01-19 17:31:08.000000000 +0100
+++ libnfnetlink-0.0.40/configure.in	2009-01-20 19:25:22.000000000 +0100
@@ -17,8 +17,26 @@ case $target in 
 esac
 
 
-dnl--------------------------------
-dnl--------------------------------
+dnl Allows compiling the library with kernel include headers not located
+dnl at /usr/include
+AC_ARG_WITH([kernel-includes],
+    [AS_HELP_STRING([--with-kernel-includes=PATH],
+    [Path to kernel source include files @<:@default=/usr/include@:>@])],
+    [
+    if test "x$withval" = xyes -o "x$withval" = x ; then
+	AC_MSG_ERROR(--with-kernel-includes must be given the path to your kernel source include files.)
+    fi
+    if ! test -d "$withval" ; then
+	AC_MSG_ERROR(The --with-kernel-includes path $withval is not a directory.)
+    fi
+    if ! test -d "$withval/linux" ; then
+	AC_MSG_ERROR(The --with-kernel-includes directory $withval must contain the directory 'linux'.)
+    fi
+    if ! test -r "$withval/linux" ; then
+	AC_MSG_ERROR(You must have read permissions for the kernel source include files.)
+    fi
+    KERNEL_INCLUDES=`(cd "$withval"; /bin/pwd)`
+    CFLAGS="$CFLAGS -I\"$KERNEL_INCLUDES\""],)
 
 
 dnl Output the makefile
--- libnfnetlink-0.0.40/README.old	2009-01-18 18:10:42.000000000 +0100
+++ libnfnetlink-0.0.40/README	2009-01-20 15:06:43.000000000 +0100
@@ -1,5 +1,5 @@
 libnfnetlink - userspace library for handling of netfilter netlink messages
-(C) 2001-2005 Netfilter Core Team <coreteam@netfilter.org>
+(C) 2001-2009 Netfilter Core Team <coreteam@netfilter.org>
 ===========================================================================
 
 What is nfnetlink?
@@ -13,22 +13,22 @@ What is libnfnetlink?
 
 libnfnetlink is a userspace library that provides some low-level
 nfnetlink handling functions.  It is used as a foundation for other, netfilter
-subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log
-and libnfnetlink_queue.
+subsystem specific libraries such as libnetfilter_conntrack, libnetfilter_log
+and libnetfilter_queue.
 
 
 Prerequirements for libnfnetlink
 
 You will need kernel headers from a kernel that has nfnetlink support.  The
-first official kernel release to include nfnetlink support is 2.6.14.  
-You can specify the location of your kernel sources using the "--with-kernel="
-configure option.
+first official kernel release to include nfnetlink support is 2.6.14.
+You can specify the location of your kernel sources using the
+"--with-kernel-includes" configure option.
 
 
 Where can I find documentation?
 
 At the moment, you will have to RTFS.  Sorry, but we have barely enough
-manpower to keep development ongoing.  If you want to conribute documentation,
+manpower to keep development ongoing.  If you want to contribute documentation,
 please contact us.
 
 
@@ -40,6 +40,5 @@ the "libnfnetlink" Product.
 
 Where do I get support?
 
-The netfilter@lists.netfilter.org and netfilter-devel@lists.netfilter.org
-mailinglists server as support forum.
-
+The netfilter@vger.kernel.org and netfilter-devel@vger.kernel.org
+mailinglists serve as support forum.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-24 11:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-20 16:43 [PATCH] add --with-kernel-includes configure option to libnfnetlink Bart De Schuymer
  -- strict thread matches above, loose matches on Subject: below --
2009-01-24 11:25 Bart De Schuymer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).