From 2ae16c2f685ab81916526a65969d821c4fa3322e Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 8 Jul 2016 19:03:06 +1000 Subject: [PATCH] gl/build: fix configure when --enable-cocoa is passed on OS X https://bugzilla.gnome.org/show_bug.cgi?id=768553 --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 573d3bdfbd..4ca9aaa44a 100644 --- a/configure.ac +++ b/configure.ac @@ -789,6 +789,17 @@ case $host in CFLAGS=$old_CFLAGS PKG_CHECK_MODULES(WAYLAND_EGL, wayland-client >= 1.0 wayland-cursor >= 1.0 wayland-egl >= 9.0, HAVE_WAYLAND_EGL=yes, HAVE_WAYLAND_EGL=no) + + # OS X and iOS always have GL available + case $host in + *-darwin*) + if test "x$HAVE_IOS" = "xyes"; then + HAVE_GLES2=yes + else + HAVE_GL=yes + fi + ;; + esac ;; esac