summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Widawsky <ben@bwidawsk.net>2016-10-21 09:04:21 -0700
committerBen Widawsky <ben@bwidawsk.net>2017-04-13 11:19:51 -0700
commit471410a362a0f5469d6de8de627d372221c9e7a3 (patch)
treec9dda3b200fd5125ed1cfea4660ca756dd7b3c5e
parent79f341579c64b380e05b6b22b18fe32625a86303 (diff)
configure: Check for the GBM modifiers
-rw-r--r--configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index aa0ef36..33167e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,5 +49,21 @@ if test "x$HAVE_GST" = "xyes"; then
fi
AM_CONDITIONAL(ENABLE_GST, [test "x$HAVE_GST" = "xyes"])
+AC_CHECK_LIB([gbm], [gbm_bo_get_modifier], [gbm_modifiers=yes], [])
+
+AC_ARG_ENABLE([gbm-modifiers],
+ [AS_HELP_STRING([--enable-gbm-modifiers],
+ [enable using GBM modifiers @<:@default=auto@:>@])],
+ [enable_gbm_modifiers="$enableval"],
+ [enable_gbm_modifiers=auto])
+
+if test "x$enable_gbm_modifiers" = xyes -a "x$gbm_modifiers" != xyes; then
+ AC_MSG_ERROR([Cannot find gbm modifier supported mesa])
+fi
+
+if test "x$gbm_modifiers" = xyes; then
+ AC_DEFINE(HAVE_GBM_MODIFIERS, 1, [Define if you can use GBM properties.])
+fi
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT