summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-09-12 15:29:00 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-09-12 15:29:00 +0200
commit034e45c101d81163aaba62a3971353cfad26106f (patch)
tree9077abc0de4db9208e039453687a9378b3abfdda
parente5dd947f3daf284be2f0c3bc8eb78344637c995d (diff)
Fix configure check for OpenGL ES and EGL on Android
-rw-r--r--configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d0e1773c0..977889288 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1519,8 +1519,28 @@ AG_GST_CHECK_FEATURE(RSVG, [rsvg decoder], rsvg, [
dnl *** eglgles ***
translit(dnm, m, l) AM_CONDITIONAL(USE_EGLGLES, true)
AG_GST_CHECK_FEATURE(EGLGLES, [eglgles sink], eglgles, [
+ HAVE_EGLGLES="no"
PKG_CHECK_MODULES(EGLGLES, egl glesv2, HAVE_EGLGLES="yes", [
HAVE_EGLGLES="no"
+ old_LIBS=$LIBS
+ old_CFLAGS=$CFLAGS
+ AC_CHECK_LIB([GLESv2], [glEnable],
+ [
+ AC_CHECK_HEADER([GLES2/gl2.h],
+ [
+ AC_CHECK_LIB([EGL], [eglGetProcAddress],
+ [
+ AC_CHECK_HEADER([EGL/egl.h],
+ [
+ HAVE_EGLGLES="yes"
+ EGLGLES_LIBS="-lGLESv2 -lEGL"
+ EGLGLES_CFLAGS=""
+ ])
+ ])
+ ])
+ ])
+ LIBS=$old_LIBS
+ CFLAGS=$old_CFLAGS
])
AC_SUBST(EGLGLES_CFLAGS)
AC_SUBST(EGLGLES_LIBS)