[OpenAFS-devel] PATCH: better default linux kernel headers path

Troy Benjegerdes hozer@hozed.org
Fri, 11 Mar 2005 21:33:48 -0600


This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_kalmia.hozed.org-23500-1110598428-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On most linux systems (includeing RedHat, debian, and any system someone
built their own kernel and ran 'make modules_install'), 

/lib/modules/`uname -r`/build

points to the correct kernel headers.

This patch makes a './configure && make' much more likely to succeed.


--=_kalmia.hozed.org-23500-1110598428-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=default-linux-kernel-path

? fidd
Index: acinclude.m4
===================================================================
RCS file: /cvs/openafs/acinclude.m4,v
retrieving revision 1.136
diff -r1.136 acinclude.m4
44c44
< [  --with-linux-kernel-headers=path    	use the kernel headers found at path(optional, defaults to /usr/src/linux-2.4, then /usr/src/linux)]
---
> [  --with-linux-kernel-headers=path    	use the kernel headers found at path(optional, defaults to /lib/modules/`uname -r`/build )]
118,121c118
< 		   LINUX_KERNEL_PATH="/usr/src/linux-2.4"
< 		   if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then
< 		     LINUX_KERNEL_PATH="/usr/src/linux"
< 		   fi
---
> 		   LINUX_KERNEL_PATH="/lib/modules/`uname -r`/build"

--=_kalmia.hozed.org-23500-1110598428-0001-2--