summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-18 15:52:22 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-18 15:53:51 +0100
commit585667c2f9f88554ed89ff21ae38600f761d964c (patch)
tree8ca9946c7679ae4fe9659a9d54bcfe7ef00da0b9 /configure.ac
parentde0286ed9f7814f903d56e488c7a4b3eb0ca56b0 (diff)
sna: Bump the required xserver version to 1.10
SNA requires some pending bug fixes to the xserver so it makes little sense to conditionalise the code and deliberately cause broken behaviour. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3843 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac29
1 files changed, 16 insertions, 13 deletions
diff --git a/configure.ac b/configure.ac
index bfd6e993..7bde7680 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,6 +20,8 @@
#
# Process this file with autoconf to produce a configure script
+required_xorg_xserver_version=1.6
+
# Initialize Autoconf
AC_PREREQ([2.63])
AC_INIT([xf86-video-intel],
@@ -97,12 +99,25 @@ AC_ARG_ENABLE(sna,
[Enable SandyBridge's New Acceleration (SNA) [default=no]]),
[SNA="$enableval"],
[SNA=no])
+AM_CONDITIONAL(SNA, test x$SNA != xno)
+AC_MSG_CHECKING([whether to include SNA support])
+if test "x$SNA" != "xno"; then
+ required_xorg_xserver_version=1.10
+ AC_DEFINE(USE_SNA, 1, [Enable SNA support])
+fi
+AC_MSG_RESULT([$SNA])
+
AC_ARG_ENABLE(vmap,
AS_HELP_STRING([--enable-vmap],
[Enable use of vmap [default=no]]),
[VMAP="$enableval"],
[VMAP=no])
+AM_CONDITIONAL(USE_VMAP, test x$VMAP = xyes)
+if test "x$VMAP" = xyes; then
+ AC_DEFINE(USE_VMAP,1,[Assume VMAP support])
+fi
+
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
@@ -117,7 +132,7 @@ XORG_DRIVER_CHECK_EXT(XF86DRI, xextproto x11)
XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
# Obtain compiler/linker options for the driver dependencies
-PKG_CHECK_MODULES(XORG, [xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES])
+PKG_CHECK_MODULES(XORG, [xorg-server >= $required_xorg_xserver_version xproto fontsproto $REQUIRED_MODULES])
PKG_CHECK_MODULES(DRM, [libdrm >= 2.4.23])
PKG_CHECK_MODULES(DRI, [xf86driproto], , DRI=no)
PKG_CHECK_MODULES(DRI2, [dri2proto >= 2.6])
@@ -181,18 +196,6 @@ if test "x$KMS_ONLY" = xyes; then
AC_DEFINE(KMS_ONLY,1,[Assume KMS support])
fi
-AM_CONDITIONAL(USE_VMAP, test x$VMAP = xyes)
-if test "x$VMAP" = xyes; then
- AC_DEFINE(USE_VMAP,1,[Assume VMAP support])
-fi
-
-AM_CONDITIONAL(SNA, test x$SNA != xno)
-AC_MSG_CHECKING([whether to include SNA support])
-if test "x$SNA" != "xno"; then
- AC_DEFINE(USE_SNA, 1, [Enable SNA support])
-fi
-AC_MSG_RESULT([$SNA])
-
AM_CONDITIONAL(DEBUG, test x$DEBUG != xno)
if test "x$DEBUG" = xno; then
AC_DEFINE(NDEBUG,1,[Disable internal debugging])