aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2012-08-25 18:32:54 -0400
committerBrian Behlendorf <[email protected]>2012-08-26 13:49:09 -0700
commit074e72953cb3229e270e384f4dabd6d05c836060 (patch)
tree3794671a9ab6e4af77c63bb1e3ae664b1b936fa2 /configure
parent9e11c7eee232b73600c2590c8c3326b2725daba5 (diff)
Check kernel source directory for SPL
ZFS fails to build when SPL is built into the kernel on unless --with-spl=/path/to/kernel/sources is specified. We fallback to the kernel sources directory when SPL is not found elsewhere to resolve that. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closed #896
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
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}`