diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 55fa37cf..7c05009c 100644 --- a/configure.ac +++ b/configure.ac @@ -637,9 +637,30 @@ AC_SUBST([HAVE_GLES2]) if test "x$GL_LIBRARY_DIRECTLY_LINKED" = "xyes"; then AC_DEFINE([HAVE_DIRECTLY_LINKED_GL_LIBRARY], [1], - [Defined if the GL library shouldn't be dlopened]) + [Defined if the GL library should not be dlopened]) fi +AC_ARG_ENABLE( + [cogl-gles2], + [AC_HELP_STRING([--enable-cogl-gles2=@<:@no/yes@:>@], + [Enable libcogl-gles2 frontend api for OpenGL-ES 2.0 @<:@default=auto@:>@])], + [], + [ + AS_IF([test "x$HAVE_GLES2" = "x1"], + [enable_cogl_gles2=yes], + [enable_cogl_gles2=no]) + ] +) +AS_IF([test "x$enable_cogl_gles2" = "xyes"], + [ + AS_IF([test "x$HAVE_GLES2" != "x1"], + [ + AC_MSG_ERROR([libcogl-gles2 is currently only supported on systems with a native GLES 2.0 library]) + ]) + ]) +AM_CONDITIONAL([BUILD_COGL_GLES2], [test "x$enable_cogl_gles2" = "xyes"]) + + dnl ======================================================== dnl Check window system integration libraries... dnl ======================================================== @@ -1126,6 +1147,8 @@ cogl-pango/Makefile cogl-pango/cogl-pango-1.0.pc cogl-pango/cogl-pango-2.0-experimental.pc cogl-pango/cogl-pango.rc +cogl-gles2/Makefile +cogl-gles2/cogl-gles2-experimental.pc doc/Makefile doc/reference/Makefile doc/reference/cogl/Makefile @@ -1167,6 +1190,7 @@ if test "x$SUPPORT_EGL" = "xyes"; then echo " EGL Platforms:${EGL_PLATFORMS}" echo " Wayland compositor support: ${enable_wayland_egl_server}" fi +echo " Build libcogl-gles2 GLES 2.0 frontend api: ${BUILD_COGL_GLES2}" echo " Image backend: ${COGL_IMAGE_BACKEND}" echo " Cogl Pango: ${enable_cogl_pango}" echo " Profiling: ${enable_profile}" |