From 18ffe73d3faf5b048a88994a478e2c1b3f966fad Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 24 Jul 2009 16:26:17 -0700 Subject: [PATCH] Check arch/default/ path when detecting kernel objects on SLES We still preferentially use arch/arch looking for a native version but if that fails it is acceptable to use default. --- config/kernel.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/kernel.m4 b/config/kernel.m4 index 1f06369efd..b61b842f36 100644 --- a/config/kernel.m4 +++ b/config/kernel.m4 @@ -79,8 +79,10 @@ AC_DEFUN([ZFS_AC_KERNEL], [ AC_MSG_RESULT([$kernelsrc]) AC_MSG_CHECKING([kernel build directory]) if test -z "$kernelbuild"; then - if test -d ${kernelsrc}-obj; then + if test -d ${kernelsrc}-obj/`arch`/`arch`; then kernelbuild=${kernelsrc}-obj/`arch`/`arch` + elif test -d ${kernelsrc}-obj/`arch`/default; then + kernelbuild=${kernelsrc}-obj/`arch`/default elif test -d `dirname ${kernelsrc}`/build-`arch`; then kernelbuild=`dirname ${kernelsrc}`/build-`arch` else