summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2012-07-13 14:33:47 +1000
committerDave Airlie <airlied@gmail.com>2012-07-13 14:33:47 +1000
commit138d1ea01298aedbe414ecc48374e433d6960010 (patch)
tree9285a6c55d4bcff924497644e95e81192455ff50 /configure.ac
parenteafaa2666fa43d6b06bec013feb254ea92759406 (diff)
ast: deal with XAA removal.
This deals with the removal of XAA from the server, should fix tinderbox. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2db4ac2..ca23998 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,6 +76,25 @@ if test "x$XSERVER_LIBPCIACCESS" = xyes; then
fi
AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes)
+AC_ARG_ENABLE(xaa,
+ AS_HELP_STRING([--enable-xaa],
+ [Enable legacy X Acceleration Architecture (XAA) [default=auto]]),
+ [XAA="$enableval"],
+ [XAA=auto])
+if test "x$XAA" != xno; then
+ save_CFLAGS=$CFLAGS
+ save_CPPFLAGS=$CPPFLAGS
+ CFLAGS=$XORG_CFLAGS
+ CPPFLAGS="$XORG_CFLAGS"
+ AC_CHECK_HEADERS([xaa.h], XAA=yes, XAA=no)
+ CFLAGS=$save_CFLAGS
+ CPPFLAGS=$save_CPPFLAGS
+fi
+AC_MSG_CHECKING([whether to include XAA support])
+AM_CONDITIONAL(XAA, test "x$XAA" = xyes)
+AC_MSG_RESULT([$XAA])
+
+
AC_SUBST([moduledir])
DRIVER_NAME=nv