test/configure.in
changeset 8014 0a4b6dec7de5
parent 7981 6d538bc1b395
child 8021 f96e12e0ade9
     1.1 --- a/test/configure.in	Tue Nov 19 10:00:05 2013 -0300
     1.2 +++ b/test/configure.in	Tue Nov 19 10:56:38 2013 -0300
     1.3 @@ -135,12 +135,34 @@
     1.4  ])
     1.5  AC_MSG_RESULT($have_opengles)
     1.6  
     1.7 +dnl Check for OpenGL ES2
     1.8 +AC_MSG_CHECKING(for OpenGL ES2 support)
     1.9 +have_opengles2=no
    1.10 +AC_TRY_COMPILE([
    1.11 + #if defined (__IPHONEOS__)
    1.12 +    #include <OpenGLES/ES2/gl.h>
    1.13 +    #include <OpenGLES/ES2/glext.h>
    1.14 + #else
    1.15 +    #include <GLES2/gl2.h>
    1.16 +    #include <GLES2/gl2ext.h>
    1.17 + #endif
    1.18 +],[
    1.19 +],[
    1.20 +have_opengles2=yes
    1.21 +])
    1.22 +AC_MSG_RESULT($have_opengles2)
    1.23 +
    1.24  GLLIB=""
    1.25  GLESLIB=""
    1.26 +GLES2LIB=""
    1.27  if test x$have_opengles = xyes; then
    1.28      CFLAGS="$CFLAGS -DHAVE_OPENGLES"
    1.29      GLESLIB="$XPATH -lGLESv1_CM"
    1.30  fi
    1.31 +if test x$have_opengles2 = xyes; then
    1.32 +    CFLAGS="$CFLAGS -DHAVE_OPENGLES2"
    1.33 +    GLES2LIB="$XPATH -lGLESv2"
    1.34 +fi
    1.35  if test x$have_opengl = xyes; then
    1.36      CFLAGS="$CFLAGS -DHAVE_OPENGL"
    1.37      GLLIB="$XPATH $SYS_GL_LIBS"
    1.38 @@ -148,6 +170,7 @@
    1.39  
    1.40  AC_SUBST(GLLIB)
    1.41  AC_SUBST(GLESLIB)
    1.42 +AC_SUBST(GLES2LIB)
    1.43  AC_SUBST(XLIB)
    1.44  
    1.45  dnl Check for SDL_ttf