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.
This commit is contained in:
Brian Behlendorf
2009-07-22 06:59:28 -07:00
parent 78d6de97bd
commit 749e5eb1ed
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -115,8 +115,10 @@ AC_DEFUN([SPL_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