From: Ian Abbott Date: Thu, 21 Feb 2013 15:39:10 +0000 (+0000) Subject: as-linux.m4: update AS_LINUX_OVERRIDE_KERNEL_RELEASE() X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4cc2a228ac6ec3511640009ac1dac5d73bf78d47;p=comedi.git as-linux.m4: update AS_LINUX_OVERRIDE_KERNEL_RELEASE() 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 --- diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 84823436..e0363a09 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -240,7 +240,10 @@ dnl first argument is the Linux build directory 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