Codebase list kmscube / 1d57afe
configure: Check for the GBM modifiers Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Ben Widawsky 7 years ago
1 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4848 fi
4949 AM_CONDITIONAL(ENABLE_GST, [test "x$HAVE_GST" = "xyes"])
5050
51 AC_CHECK_LIB([gbm], [gbm_bo_get_modifier], [gbm_modifiers=yes], [])
52
53 AC_ARG_ENABLE([gbm-modifiers],
54 [AS_HELP_STRING([--enable-gbm-modifiers],
55 [enable using GBM modifiers @<:@default=auto@:>@])],
56 [enable_gbm_modifiers="$enableval"],
57 [enable_gbm_modifiers=auto])
58
59 if test "x$enable_gbm_modifiers" = xyes -a "x$gbm_modifiers" != xyes; then
60 AC_MSG_ERROR([Cannot find gbm modifier supported mesa])
61 fi
62
63 if test "x$gbm_modifiers" = xyes; then
64 AC_DEFINE(HAVE_GBM_MODIFIERS, 1, [Define if you can use GBM properties.])
65 fi
66
5167 AC_CONFIG_FILES([Makefile])
5268 AC_OUTPUT