Update test for separate Linux source and build directories
authorIan Abbott <abbotti@mev.co.uk>
Wed, 22 Oct 2008 15:56:03 +0000 (15:56 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 22 Oct 2008 15:56:03 +0000 (15:56 +0000)
(it broke for 2.6.25 onwards).

m4/as-linux.m4

index 62d620867d6db13c3c465430d9228853fbe80c8b..d0a7c142bf4665aac1f2b88d7de114d066e3994d 100644 (file)
@@ -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"