Configuring for kernels 2.6.18 and 2.6.19, thanks to Ralf Roesch.
--- a/configure.ac Mon Jan 01 14:58:55 2007 +0000
+++ b/configure.ac Tue Jan 02 12:47:11 2007 +0000
@@ -52,11 +52,13 @@
# Try to get kernel release string
if test -r ${sourcedir}/.kernelrelease; then
kernelrelease=`cat $sourcedir/.kernelrelease`
+elif test -r ${sourcedir}/include/config/kernel.release; then
+ kernelrelease=`cat $sourcedir/include/config/kernel.release`
+elif test -r ${sourcedir}/include/linux/utsrelease.h; then
+ hdr=${sourcedir}/include/linux/utsrelease.h
+ kernelrelease=`grep UTS_RELEASE $hdr | cut -d " " -f 3- | tr -d \"`
elif test -r ${sourcedir}/include/linux/version.h; then
- hdr=$sourcedir/include/linux/utsrelease.h
- if ! test -r $hdr; then
- hdr=$sourcedir/include/linux/version.h
- fi
+ hdr=${sourcedir}/include/linux/version.h
kernelrelease=`grep UTS_RELEASE $hdr | cut -d " " -f 3- | tr -d \"`
fi