From: Derrick Brashear Date: Tue, 12 Sep 2006 19:58:42 +0000 (+0000) Subject: STABLE14-suse-kernel-source-path-update-20060912 X-Git-Tag: openafs-stable-1_4_2fc4~14 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=391a4843e15a79c934ffa3e8540ef39019e9814f;p=packages%2Fo%2Fopenafs.git STABLE14-suse-kernel-source-path-update-20060912 no one can ever agree on anything (cherry picked from commit 94ff5651cb84a26ab931626392908684fae913f3) --- diff --git a/acinclude.m4 b/acinclude.m4 index 3eaeee37a..d94eefda7 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -113,7 +113,10 @@ case $system in if test "x$with_linux_kernel_headers" != "x"; then LINUX_KERNEL_PATH="$with_linux_kernel_headers" else - LINUX_KERNEL_PATH="/lib/modules/`uname -r`/build" + LINUX_KERNEL_PATH="/lib/modules/`uname -r`/source" + if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then + LINUX_KERNEL_PATH="/lib/modules/`uname -r`/build" + fi if test ! -f "$LINUX_KERNEL_PATH/include/linux/version.h"; then LINUX_KERNEL_PATH="/usr/src/linux-2.4" fi