From a6f1fbd51cf1090d163d9da10e81a28a50440671 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Sun, 20 Mar 2005 15:08:18 +0000 Subject: [PATCH] STABLE14-linux-find-kernel-build-link-path-to-kernel-headers-20050320 look in /lib/modules for a path to the kernel build instead of just in /usr/src (cherry picked from commit 2cfd611e919524ec39403a1eef3970a41f2e348f) --- acinclude.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index a5fb5935d..2d041795c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -115,7 +115,10 @@ case $system in if test "x$with_linux_kernel_headers" != "x"; then LINUX_KERNEL_PATH="$with_linux_kernel_headers" else - LINUX_KERNEL_PATH="/usr/src/linux-2.4" + LINUX_KERNEL_PATH="/lib/modules/`uname -r`/build" + if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then + LINUX_KERNEL_PATH="/usr/src/linux-2.4" + fi if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then LINUX_KERNEL_PATH="/usr/src/linux" fi -- 2.39.5