From 6d2623ff9eb7e20e20455a8a2860a19f0b0ea4a8 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 22 Oct 2008 15:56:03 +0000 Subject: [PATCH] Update test for separate Linux source and build directories (it broke for 2.6.25 onwards). --- m4/as-linux.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 62d62086..d0a7c142 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -180,6 +180,10 @@ AC_DEFUN([AS_LINUX_SRC_DIR], if test "${LINUX_SRC_DIR}" = "default" ; then AC_MSG_CHECKING(for separate Linux source and build directory) dir=`sed -n -e 's/^KERNELSRC *:= *\(.*\)/\1/p' "$1/Makefile"` + if test -z "$dir"; then + # 2.6.25 + dir=`sed -n -e 's/^MAKEARGS *:= *-C *\(.*\)/\1/p' "$1/Makefile"` + fi if test -z "$dir"; then AC_MSG_RESULT([no]) LINUX_SRC_DIR="$1" -- 2.26.2