summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarico Xu <marico.xu@arm.com>2015-07-24 14:01:09 +0800
committerMarico Xu <marico.xu@arm.com>2015-07-24 08:35:34 +0100
commit20c4a8872e3e557e9926985bbd3d856d7ecf3d10 (patch)
tree3b17574dfba11df45070e4ff254f43758399686a
parentfe19c29e66d2e15dce17cc10f1e249560a361331 (diff)
Add check for xextproto in configure.ac
drmmode_display.c already tries to check if the xext proto is 7.1 or above to include the correct header, but until now the used constant was not checked/defined during configure at all. Add the configure part is based on what xf86-video-modesetting does. Change-Id: I1a37cb258f9f137731b083aeb2f3e572dc8977a2
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index eeffd92..d5536a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,6 +82,11 @@ PKG_CHECK_MODULES(XORG,
pixman-1
$REQUIRED_MODULES)
+PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
+ HAVE_XEXTPROTO_71="yes"; AC_DEFINE(HAVE_XEXTPROTO_71, 1, [xextproto 7.1 available]),
+ HAVE_XEXTPROTO_71="no")
+AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes"])
+
# Checks for header files.
AC_HEADER_STDC