Look for "${INCDIR}/generated/utsrelease.h" first, falling back to
"${INCDIR}/linux/utsrelease.h" and then to "${INCDIR}/linux/version.h".
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
AC_DEFUN([AS_LINUX_OVERRIDE_KERNEL_RELEASE],
[
INCDIR="$1/include"
- UTSINC="${INCDIR}/linux/utsrelease.h"
+ UTSINC="${INCDIR}/generated/utsrelease.h"
+ if ! test -f "${UTSINC}"; then
+ UTSINC="${INCDIR}/linux/utsrelease.h"
+ fi
if ! test -f "${UTSINC}"; then
UTSINC="${INCDIR}/linux/version.h"
fi