summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-09-02 20:44:41 -0700
committerBrian Behlendorf <[email protected]>2010-09-02 20:44:41 -0700
commit5e6121455c0b941f4612ceb2c1f312d527534b46 (patch)
tree6d8835a04bf9bb05b655c58edab8d0bb149edd4a /config
parent8160dd9a74b5b5eb3439d4aa0f0bc50e3400c123 (diff)
Fix spl version check
The spl_config.h file is checked to determine the spl version. However, the zfs code was looking for it in the source directory and not the build directory.
Diffstat (limited to 'config')
-rw-r--r--config/kernel.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/config/kernel.m4 b/config/kernel.m4
index 4c06981dc..2d3a1774a 100644
--- a/config/kernel.m4
+++ b/config/kernel.m4
@@ -231,12 +231,12 @@ AC_DEFUN([ZFS_AC_SPL], [
AC_MSG_RESULT([$splbuild])
AC_MSG_CHECKING([spl source version])
- if test -r $splsrc/spl_config.h &&
- fgrep -q SPL_META_VERSION $splsrc/spl_config.h; then
+ if test -r $splbuild/spl_config.h &&
+ fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
splsrcver=`(echo "#include <spl_config.h>";
echo "splsrcver=SPL_META_VERSION") |
- cpp -I $splsrc |
+ cpp -I $splbuild |
grep "^splsrcver=" | cut -d \" -f 2`
fi