All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KERNEL_DIR support in autogen.sh for libnfnetlink/libnetfilter_conntrack
@ 2005-11-14 23:48 Krzysztof Oledzki
  2005-11-15  0:25 ` Pablo Neira
  2005-11-15  8:11 ` Sven Schuster
  0 siblings, 2 replies; 6+ messages in thread
From: Krzysztof Oledzki @ 2005-11-14 23:48 UTC (permalink / raw)
  To: Pablo Neira; +Cc: netfilter-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 271 bytes --]

Hello,

Attached two patches for libnfnetlink and libnetfilter_conntrack allow 
user to specify custom KERNEL_DIR like in iptables build. If KERNEL_DIR is 
empty default directory - "/lib/modules/`uname -r`/build" is used.

Best regards,


 				Krzysztof Olędzki

[-- Attachment #2: Type: TEXT/PLAIN, Size: 990 bytes --]


[libnfnetlink] Add KERNEL_DIR support to autogen.sh

Allow user to specify custom KERNEL_DIR to support building library
against selected kernel tree.

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>

Index: autogen.sh
===================================================================
--- autogen.sh	(revision 4538)
+++ autogen.sh	(working copy)
@@ -7,14 +7,15 @@
     # the headers that we need from the lastest kernel version at autogen
     # stage.
 
-    INCLUDEDIR=/lib/modules/`uname -r`/build/include/linux
+    INCLUDEDIR=${KERNEL_DIR:-/lib/modules/`uname -r`/build}/include/linux
+
     if [ -f $INCLUDEDIR/netfilter/nfnetlink.h ]
     then
     	TARGET=include/libnfnetlink/linux_nfnetlink.h
     	echo "Copying nfnetlink.h to linux_nfnetlink.h"
     	cp $INCLUDEDIR/netfilter/nfnetlink.h $TARGET
     else
-    	echo "can't find nfnetlink.h kernel file"
+    	echo "can't find nfnetlink.h kernel file in $INCLUDEDIR"
     	exit 1
     fi
 }

[-- Attachment #3: Type: TEXT/PLAIN, Size: 1068 bytes --]


[libnetfilter_conntrack] Add KERNEL_DIR support to autogen.sh

Allow user to specify custom KERNEL_DIR to support building library
against selected kernel tree.

Signed-off-by: Krzysztof Piotr Oledzki <ole@ans.pl>

Index: autogen.sh
===================================================================
--- autogen.sh	(revision 4538)
+++ autogen.sh	(working copy)
@@ -7,7 +7,7 @@
     # the headers that we need from the lastest kernel version at autogen
     # stage.
 
-    INCLUDEDIR=/lib/modules/`uname -r`/build/include/linux
+    INCLUDEDIR=${KERNEL_DIR:-/lib/modules/`uname -r`/build}/include/linux
     if [ -f $INCLUDEDIR/netfilter/nfnetlink_conntrack.h ]
     then
     	TARGET=include/libnetfilter_conntrack/linux_nfnetlink_conntrack.h
@@ -17,7 +17,7 @@
 	sed 's/linux\/netfilter\/nfnetlink.h/libnfnetlink\/linux_nfnetlink.h/g' $TARGET > $TEMP
 	mv $TEMP $TARGET
     else
-    	echo "can't find nfnetlink_conntrack.h kernel file"
+    	echo "can't find nfnetlink_conntrack.h kernel file in $INCLUDEDIR"
     	exit 1
     fi
 }

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

end of thread, other threads:[~2005-11-17 12:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 23:48 [PATCH] KERNEL_DIR support in autogen.sh for libnfnetlink/libnetfilter_conntrack Krzysztof Oledzki
2005-11-15  0:25 ` Pablo Neira
2005-11-15 13:15   ` Krzysztof Oledzki
2005-11-17 12:55     ` Harald Welte
2005-11-15  8:11 ` Sven Schuster
2005-11-15  8:14   ` Sven Schuster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.