Merge commit 'refs/top-bases/linux-legacy' into linux-legacy
This commit is contained in:
commit
60a0d50970
|
@ -76,8 +76,14 @@ AC_DEFUN([ZFS_AC_KERNEL], [
|
||||||
|
|
||||||
AC_MSG_CHECKING([kernel source directory])
|
AC_MSG_CHECKING([kernel source directory])
|
||||||
if test -z "$kernelsrc"; then
|
if test -z "$kernelsrc"; then
|
||||||
sourcelink=`ls -1d /usr/src/kernels/* /usr/src/linux-* \
|
headersdir="/lib/modules/$(uname -r)/build"
|
||||||
2>/dev/null | grep -v obj | tail -1`
|
if test -e "$headersdir"; then
|
||||||
|
sourcelink=$(readlink -f "$headersdir")
|
||||||
|
else
|
||||||
|
sourcelink=$(ls -1d /usr/src/kernels/* \
|
||||||
|
/usr/src/linux-* \
|
||||||
|
2>/dev/null | grep -v obj | tail -1)
|
||||||
|
fi
|
||||||
|
|
||||||
if test -e $sourcelink; then
|
if test -e $sourcelink; then
|
||||||
kernelsrc=`readlink -f ${sourcelink}`
|
kernelsrc=`readlink -f ${sourcelink}`
|
||||||
|
|
Loading…
Reference in New Issue