From 051d8c7c7d4aeab8202c047c150cc0583cdde516 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Fri, 22 May 2009 11:11:13 +0000 Subject: [PATCH] When checking for separate Linux source and build directory, ignore any extra paramters after MAKEARGS := -C $(SOURCE_DIR). Fixes Debian bug #526707. --- m4/as-linux.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index d0a7c142..c1fee7a9 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -182,7 +182,7 @@ AC_DEFUN([AS_LINUX_SRC_DIR], 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"` + dir=`sed -n -e 's/^MAKEARGS *:= *-C *\([^[:space:]]*\).*/\1/p' "$LINUX_DIR/Makefile"` fi if test -z "$dir"; then AC_MSG_RESULT([no]) -- 2.26.2