summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index f02f23a..aacbd5f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,7 +7,7 @@ include ()
# 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 @@ include ()
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
}