From 7ec2804ef656e553c5b13bdd2c0398db1d03e475 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 9 Apr 2013 09:44:24 +0100 Subject: [PATCH] Add wayland client egl support to build infrastructure. Signed-off-by: Chris Michael --- configure.ac | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/configure.ac b/configure.ac index c2d11ed76..57a17fb70 100644 --- a/configure.ac +++ b/configure.ac @@ -840,6 +840,28 @@ fi AM_CONDITIONAL([HAVE_WAYLAND_CLIENTS], [test "x${have_wayland_clients}" = "xyes"]) +if test "x${have_wayland_clients}" = "xyes"; then + AC_ARG_ENABLE([wayland-egl], + AS_HELP_STRING([--enable-wayland-egl],[enable wayland clients to render using EGL @<:@default=disabled@:>@]), + [e_cv_want_wayland_egl=$enableval], + [e_cv_want_wayland_egl=no]) + + AC_MSG_CHECKING([whether wayland client EGL support is enabled]) + AC_MSG_RESULT([${e_cv_want_wayland_egl}]) + + if test "x$e_cv_want_wayland_egl" != "xno";then + PKG_CHECK_MODULES([WAYLAND_EGL], [egl >= 7.10], + [ + have_wayland_egl=yes + AC_DEFINE_UNQUOTED([HAVE_WAYLAND_EGL],[1],[enable wayland client EGL support]) + ], + [have_wayland_egl=no]) + else + have_wayland_egl=no + fi + + AM_CONDITIONAL([HAVE_WAYLAND_EGL], [test "x${have_wayland_egl}" = "xyes"]) +fi AC_E_OPTIONAL_MODULE([ibar], true) AC_E_OPTIONAL_MODULE([clock], true)