From b5d6a57f12025aef9850c7d9baa6905f776be971 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 12 Jul 2012 22:16:27 +0100 Subject: Enable compilation of SNA by default But only if we meet the required versions of Xorg and leave UXA as the default AccelMethod for the time being. Signed-off-by: Chris Wilson --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 128a30c7..d323da7f 100644 --- a/configure.ac +++ b/configure.ac @@ -120,13 +120,17 @@ required_pixman_version=0.24 AC_ARG_ENABLE(sna, AS_HELP_STRING([--enable-sna], - [Enable SandyBridge's New Acceleration (SNA) [default=no]]), + [Enable SandyBridge's New Acceleration (SNA) [default=auto]]), [SNA="$enableval"], - [SNA=no]) + [SNA=auto]) + +AC_CHECK_HEADERS([sys/sysinfo.h], , SNA=no) +if test "x$SNA" = "xauto" && pkg-config --exists "xorg-server >= 1.10"; then + SNA=yes +fi if test "x$SNA" != "xno"; then required_xorg_xserver_version=1.10 AC_DEFINE(USE_SNA, 1, [Enable SNA support]) - AC_CHECK_HEADERS([sys/sysinfo.h]) fi AC_MSG_CHECKING([whether to include SNA support]) AM_CONDITIONAL(SNA, test x$SNA != xno) -- cgit v1.2.3