[patch] disable XXA when XAA header can not be found

Martin Stolpe martinstolpe at gmail.com
Wed Jun 30 09:55:39 PDT 2010


Hello,
I've compiled the xorg-server without XAA support and it the driver won't 
compile without this patch.

Best regards,

Martin

--- xf86-video-ati/configure.ac	2010-01-26 09:46:01.000000000 +0100
+++ xf86-video-ati-build/configure.ac	2010-01-26 10:10:41.000000000 +0100
@@ -166,7 +166,25 @@
 AC_CHECK_HEADER(xf86Modes.h,[XMODES=yes],[XMODES=no],[#include "xorg-
server.h"])
 CFLAGS="$save_CFLAGS"
 
-AC_DEFINE(USE_XAA, 1, [Build support for XAA])
+# Adding XAA target
+AC_MSG_CHECKING([whether to enable XXA support])
+if test "x$XAA" = xyes; then
+        AC_MSG_RESULT(yes)
+
+        SAVE_CPPFLAGS="$CPPFLAGS"
+        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
+        AC_CHECK_HEADER(xaa.h,
+                       [have_xaa_h="yes"], [have_xaa_h="no"])
+        CPPFLAGS="$SAVE_CPPFLAGS"
+else
+        AC_MSG_RESULT(no)
+fi
+
+SAVE_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
+if test "x$have_xaa_h" = xyes; then
+        AC_DEFINE(USE_XAA, 1, [Build support for XAA])
+fi
 
 # Properly handle EXA.
 AC_MSG_CHECKING([whether to enable EXA support])


More information about the xorg-driver-ati mailing list