Configure --with-spl{-obj} auto-detect cleanup
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 Feb 2013 23:50:00 +0000 (15:50 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 13 Mar 2013 20:42:16 +0000 (13:42 -0700)
commit9b2af9a097c119b818bd584eb89ca51ba475c7f2
treea101a421948a6629af20c8746828c96522565003
parent775f2d34a3ccd5f866cfa04be76f83cb562f3881
Configure --with-spl{-obj} auto-detect cleanup

Because the install location for the spl/zfs-devel headers was
changed we need to refresh the auto-detect code.  Note that
for packaging which already explicitly calls --with-spl{-obj}
nothing has changed.

The updated code is now structured like that in ZFS_AC_KERNEL
and should be cleaner and easier to maintain.  In addition,
it's stricter about detecting a valid source and object
directory.  It requires:

* The source directory contains the file 'spl.release'
* The object directory contains the file 'spl_config.h'
* The following paths will be checked.  Notice the /var/lib/
  and /usr/src paths require that the spl and zfs version be
  matched.  This is done to prevent accidentally mixing releases.

        dnl # 1) /var/lib/dkms/spl/<version>/build
        dnl # 2) /usr/src/spl-<version>/<kernel-version>
        dnl # 3) /usr/src/spl-<version>
        dnl # 4) ../spl
        dnl # 5) /usr/src/kernels/<kernel-version>

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
config/kernel.m4