test/configure
changeset 8014 0a4b6dec7de5
parent 7981 6d538bc1b395
child 8021 f96e12e0ade9
     1.1 --- a/test/configure	Tue Nov 19 10:00:05 2013 -0300
     1.2 +++ b/test/configure	Tue Nov 19 10:56:38 2013 -0300
     1.3 @@ -587,6 +587,7 @@
     1.4  SDL_TTF_LIB
     1.5  XLIB
     1.6  GLESLIB
     1.7 +GLES2LIB
     1.8  GLLIB
     1.9  CPP
    1.10  XMKMF
    1.11 @@ -3860,12 +3861,49 @@
    1.12  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles" >&5
    1.13  $as_echo "$have_opengles" >&6; }
    1.14  
    1.15 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES2 support" >&5
    1.16 +$as_echo_n "checking for OpenGL ES2 support... " >&6; }
    1.17 +have_opengles2=no
    1.18 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.19 +/* end confdefs.h.  */
    1.20 +
    1.21 + #if defined (__IPHONEOS__)
    1.22 +    #include <OpenGLES/ES2/gl.h>
    1.23 +    #include <OpenGLES/ES2/glext.h>
    1.24 + #else
    1.25 +    #include <GLES2/gl2.h>
    1.26 +    #include <GLES2/gl2ext.h>
    1.27 + #endif
    1.28 +
    1.29 +int
    1.30 +main ()
    1.31 +{
    1.32 +
    1.33 +
    1.34 +  ;
    1.35 +  return 0;
    1.36 +}
    1.37 +_ACEOF
    1.38 +if ac_fn_c_try_compile "$LINENO"; then :
    1.39 +
    1.40 +have_opengles2=yes
    1.41 +
    1.42 +fi
    1.43 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.44 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_opengles2" >&5
    1.45 +$as_echo "$have_opengles2" >&6; }
    1.46 +
    1.47  GLLIB=""
    1.48  GLESLIB=""
    1.49 +GLES2LIB=""
    1.50  if test x$have_opengles = xyes; then
    1.51      CFLAGS="$CFLAGS -DHAVE_OPENGLES"
    1.52      GLESLIB="$XPATH -lGLESv1_CM"
    1.53  fi
    1.54 +if test x$have_opengles2 = xyes; then
    1.55 +    CFLAGS="$CFLAGS -DHAVE_OPENGLES2"
    1.56 +    GLES2LIB="$XPATH -lGLESv2"
    1.57 +fi
    1.58  if test x$have_opengl = xyes; then
    1.59      CFLAGS="$CFLAGS -DHAVE_OPENGL"
    1.60      GLLIB="$XPATH $SYS_GL_LIBS"