[OpenAFS-devel] [PATCH] fix for linux 2.6 with separate build tree

Jean-Marc Saffroy saffroy@gmail.com
Sun, 5 Nov 2006 12:55:26 +0100 (CET)


Hello,

I built my Linux kernel out of its source tree, and this confuses the 
openafs-modules configure (called by Debian's module-assistant), since 
scripts/Makefile.build does not exist in the build tree. The patch below 
(made for openafs-modules-source 1.4.2-2 on Etch) seems to solve the 
problem for me.


Cheers,

-- 
saffroy@gmail.com

Index: src/modules/openafs/src/cf/linux-test1.m4
===================================================================
--- src.orig/modules/openafs/src/cf/linux-test1.m4	2006-11-05 12:09:11.000000000 +0100
+++ src/modules/openafs/src/cf/linux-test1.m4	2006-11-05 12:25:58.000000000 +0100
@@ -42,7 +42,7 @@
  #               [ACTION-IF-SUCCESS], [ACTION-IF-FAILURE])
  #
  AC_DEFUN([AC_TRY_KBUILD], [
-  if test -f $LINUX_KERNEL_PATH/scripts/Makefile.build; then
+  if test -d $LINUX_KERNEL_PATH/scripts/kconfig; then
      AC_TRY_KBUILD26([$1], [$2], [$3], [$4])
    else
      AC_TRY_KBUILD24([$1], [$2], [$3], [$4])