diff options
author | Ben Pfaff <blp@nicira.com> | 2010-03-23 09:27:08 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-03-23 12:09:02 -0700 |
commit | e0510a6c9b4b82b90ccf564368c1bbdcfdeb7410 (patch) | |
tree | dd920b60f352756ffad8eabdc686237a9e610c75 /acinclude.m4 | |
parent | 7e67d10d501074d02a0a00f8ecabbba10796c0f8 (diff) |
datapath: Support 2.6.33 kernel layout in build system.
The 2.6.33 kernel moves generated header files to include/generated, so
we need to look for autoconf.h there.
Reported-by: Brandon Heller <brandonh@stanford.edu>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index e38676fd..abbc57e6 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -70,8 +70,9 @@ AC_DEFUN([OVS_CHECK_LINUX26], [ AC_ERROR([Linux kernel in build tree $KBUILD26 (source tree $KSRC26) is not version 2.6]) fi fi - if ! test -e "$KBUILD26"/include/linux/version.h || \ - ! test -e "$KBUILD26"/include/linux/autoconf.h; then + if test ! -e "$KBUILD26"/include/linux/version.h || \ + (test ! -e "$KBUILD26"/include/linux/autoconf.h && \ + test ! -e "$KBUILD26"/include/generated/autoconf.h); then AC_MSG_ERROR([Linux kernel source in $KBUILD26 is not configured]) fi OVS_CHECK_LINUX26_COMPAT |