as-linux.m4: update AS_LINUX_OVERRIDE_KERNEL_RELEASE()
authorIan Abbott <abbotti@mev.co.uk>
Thu, 21 Feb 2013 15:39:10 +0000 (15:39 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Thu, 21 Feb 2013 15:39:10 +0000 (15:39 +0000)
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>
m4/as-linux.m4

index 848234364861328a4ff47c147e39dbaf0cf2ddc6..e0363a0917ff3398a9848579cb34779858e13b2b 100644 (file)
@@ -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