For separate kernel source and build directories, allow the kernel build
authorIan Abbott <abbotti@mev.co.uk>
Mon, 4 Feb 2008 16:47:54 +0000 (16:47 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Mon, 4 Feb 2008 16:47:54 +0000 (16:47 +0000)
directory's Makefile to specify KERNELSRC using a relative path.
This avoids having to use the --with-kernelsrcdir option when configuring
Comedi for SuSE Linux's kernels.

m4/as-linux.m4

index 468b5596a9c2e92b62de0ccb8395147ec718436b..74fcb416d5b8c354df2b4f2aa8b156e0ab58737f 100644 (file)
@@ -185,6 +185,9 @@ AC_DEFUN([AS_LINUX_SRC_DIR],
                        LINUX_SRC_DIR="$1"
                else
                        AC_MSG_RESULT([yes])
+                       case "$dir" in
+                       .*) dir="$1/$dir" ;;
+                       esac
                        AS_TRY_LINUX_SRC_DIR([${dir}], [LINUX_SRC_DIR=${dir}], )
                fi
        fi