summaryrefslogtreecommitdiff
path: root/configure.ac.in
diff options
context:
space:
mode:
authorOlivier Fourdan <fourdan@xfce.org>2015-02-25 23:10:28 +0100
committerOlivier Fourdan <fourdan@xfce.org>2015-04-24 22:10:55 +0200
commitae32b1c8dca527e117d3c373517a6941bd4c2e98 (patch)
tree3f3775222136830745ec04186eea48e2e69bcf5f /configure.ac.in
parentcd2d6098dc233ea03deddb7ddce64a2c85d4a11c (diff)
downloadxfwm4-ae32b1c8dca527e117d3c373517a6941bd4c2e98.tar.gz
compositor: Add support for DRI3/Present
Bug: 11126 Make use of the newly released libXpresent library to add support for DRI3/Present to the compositor using double-buffering. This makes the compositor tear-free on supported hardware. Signed-off-by: Olivier Fourdan <fourdan@xfce.org>
Diffstat (limited to 'configure.ac.in')
-rw-r--r--configure.ac.in23
1 files changed, 22 insertions, 1 deletions
diff --git a/configure.ac.in b/configure.ac.in
index 9bec57954..7dc7d5913 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -20,9 +20,10 @@ m4_define([wnck_minimum_version], [2.22])
m4_define([startup_notification_minimum_version], [0.5])
m4_define([intltool_minimum_version], [0.35])
m4_define([libepoxy_minimum_version], [1.0])
+m4_define([xpresent_minimum_version], [1.0])
dnl init autoconf
-AC_COPYRIGHT([Copyright (c) 2002-2014
+AC_COPYRIGHT([Copyright (c) 2002-2015
The Xfce development team. All rights reserved.
Written for Xfce by Olivier Fourdan <fourdan@xfce.org>.])
@@ -176,6 +177,7 @@ if test x"$enable_randr" = x"yes"; then
AC_CHECK_LIB(Xrandr, XRRUpdateConfiguration,
[AC_CHECK_HEADER(X11/extensions/Xrandr.h,
RANDR_LIBS="-lXrandr -lXrender"
+
AC_DEFINE([HAVE_RANDR], [1], [Define to enable xrandr])
have_xrandr="yes",,
[#include <X11/Xlib.h>])],,
@@ -186,6 +188,24 @@ fi
AC_SUBST([RANDR_LIBS])
dnl
+dnl XPresent support
+dnl
+AC_ARG_ENABLE([xpresent],
+AC_HELP_STRING([--enable-xpresent], [try to use the xpresent extension])
+AC_HELP_STRING([--disable-render], [don't try to use the xpresent extension]),
+ [], [enable_xpresent=yes])
+have_xpresent="no"
+XPRESENT_LIBS=
+if test x"$enable_xpresent" = x"yes"; then
+ if $PKG_CONFIG --print-errors --exists xpresent 2>&1; then
+ PKG_CHECK_MODULES(PRESENT_EXTENSION, xpresent)
+ have_xpresent="yes"
+ AC_DEFINE([HAVE_PRESENT_EXTENSION], [1], [Define to enable xpresent])
+ fi
+fi
+AC_SUBST([PRESENT_EXTENSION_LIBS])
+
+dnl
dnl Xcomposite and related extensions
dnl
compositor="no"
@@ -261,6 +281,7 @@ echo " Startup notification support: $LIBSTARTUP_NOTIFICATION_FOUND"
echo " XSync support: $have_xsync"
echo " Render support: $have_render"
echo " Xrandr support: $have_xrandr"
+echo " Xpresent support: $have_xpresent"
echo " Embedded compositor: $compositor"
echo " Epoxy support: $EPOXY_FOUND"
echo " KDE systray protocol proxy: $kde_systray"