diff options
author | Matthew Rezny <matthew@reztek.cz> | 2015-06-21 19:50:43 +0200 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-07-01 11:03:46 -0400 |
commit | da1223394ac9b6f3974b0b2570cbf46a2425fc11 (patch) | |
tree | e602ae96b940635719e828aaa46e2d0b8a673ea6 /configure.ac | |
parent | 8ed77eb7920f375e9490a31f907eccb02fb123cd (diff) |
MGA DDX: make it possible to find EXA support
Newer versions of the xserver stricter requirements on header order
which caused the configure tests for EXA support to erroneously fail.
Since XAA was already removed from an earlier version of xserver, the
configure failure meant no acceleration was possible. Patch configure
tests similar to r128.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index b770c88..14271f1 100644 --- a/configure.ac +++ b/configure.ac @@ -155,8 +155,9 @@ if test "x$EXA" = xyes; then SAVE_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" - AC_CHECK_HEADER(exa.h, - [have_exa_h="yes"], [have_exa_h="no"]) + AC_CHECK_HEADERS(exa.h, + [have_exa_h="yes"], [have_exa_h="no"], + [#include "xorg-server.h"]) CPPFLAGS="$SAVE_CPPFLAGS" else AC_MSG_RESULT(no) @@ -167,6 +168,7 @@ CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" if test "x$have_exa_h" = xyes; then AC_MSG_CHECKING([whether EXA version is at least 2.0.0]) AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ +#include "xorg-server.h" #include "exa.h" #if EXA_VERSION_MAJOR < 2 #error OLD EXA! |