configure
changeset 8022 7396e3cc5337
parent 8007 f4264c673a8d
child 8056 abd9434c5d3e
     1.1 --- a/configure	Fri Nov 22 13:24:53 2013 -0300
     1.2 +++ b/configure	Fri Nov 22 14:19:52 2013 -0300
     1.3 @@ -20703,6 +20703,84 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +CheckWINDOWSGLES()
     1.8 +{
     1.9 +    if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    1.10 +
    1.11 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
    1.12 +$as_echo_n "checking for EGL support... " >&6; }
    1.13 +        video_opengl_egl=no
    1.14 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.15 +/* end confdefs.h.  */
    1.16 +
    1.17 +         #include <EGL/egl.h>
    1.18 +
    1.19 +int
    1.20 +main ()
    1.21 +{
    1.22 +
    1.23 +
    1.24 +  ;
    1.25 +  return 0;
    1.26 +}
    1.27 +_ACEOF
    1.28 +if ac_fn_c_try_compile "$LINENO"; then :
    1.29 +
    1.30 +        video_opengl_egl=yes
    1.31 +
    1.32 +fi
    1.33 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.34 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengl_egl" >&5
    1.35 +$as_echo "$video_opengl_egl" >&6; }
    1.36 +        if test x$video_opengl_egl = xyes; then
    1.37 +
    1.38 +$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
    1.39 +
    1.40 +
    1.41 +$as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
    1.42 +
    1.43 +        fi
    1.44 +
    1.45 +        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
    1.46 +$as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
    1.47 +        video_opengles_v2=no
    1.48 +        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.49 +/* end confdefs.h.  */
    1.50 +
    1.51 +         #include <GLES2/gl2.h>
    1.52 +         #include <GLES2/gl2ext.h>
    1.53 +
    1.54 +int
    1.55 +main ()
    1.56 +{
    1.57 +
    1.58 +
    1.59 +  ;
    1.60 +  return 0;
    1.61 +}
    1.62 +_ACEOF
    1.63 +if ac_fn_c_try_compile "$LINENO"; then :
    1.64 +
    1.65 +        video_opengles_v2=yes
    1.66 +
    1.67 +fi
    1.68 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.69 +        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
    1.70 +$as_echo "$video_opengles_v2" >&6; }
    1.71 +        if test x$video_opengles_v2 = xyes; then
    1.72 +
    1.73 +$as_echo "#define SDL_VIDEO_OPENGL 1" >>confdefs.h
    1.74 +
    1.75 +
    1.76 +$as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
    1.77 +
    1.78 +
    1.79 +$as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
    1.80 +
    1.81 +        fi
    1.82 +    fi
    1.83 +}
    1.84 +
    1.85  CheckHaikuGL()
    1.86  {
    1.87      if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
    1.88 @@ -22261,6 +22339,7 @@
    1.89          CheckDummyAudio
    1.90          CheckWINDOWS
    1.91          CheckWINDOWSGL
    1.92 +        CheckWINDOWSGLES
    1.93          CheckDIRECTX
    1.94  
    1.95          # Set up the core platform files