summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/kernel.m47
-rwxr-xr-xconfigure14
2 files changed, 21 insertions, 0 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4
index c08b6a22c..efb408c40 100644
--- a/config/kernel.m4
+++ b/config/kernel.m4
@@ -302,6 +302,13 @@ AC_DEFUN([ZFS_AC_SPL], [
sourcelink=../spl
])
+ dnl #
+ dnl # Look in the kernel directory
+ dnl #
+ AS_IF([test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h], [
+ sourcelink="$LINUX"
+ ])
+
AS_IF([test -e $sourcelink/spl_config.h], [
splsrc=`readlink -f ${sourcelink}`
], [
diff --git a/configure b/configure
index 83fc2a89c..714aaad2c 100755
--- a/configure
+++ b/configure
@@ -12306,6 +12306,13 @@ fi
fi
+ if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
+
+ sourcelink="$LINUX"
+
+fi
+
+
if test -e $sourcelink/spl_config.h; then
splsrc=`readlink -f ${sourcelink}`
@@ -19915,6 +19922,13 @@ fi
fi
+ if test -z "$sourcelink" || test ! -e $sourcelink/spl_config.h; then
+
+ sourcelink="$LINUX"
+
+fi
+
+
if test -e $sourcelink/spl_config.h; then
splsrc=`readlink -f ${sourcelink}`