configure.in
changeset 8022 7396e3cc5337
parent 8016 3746af784462
child 8056 abd9434c5d3e
     1.1 --- a/configure.in	Fri Nov 22 13:24:53 2013 -0300
     1.2 +++ b/configure.in	Fri Nov 22 14:19:52 2013 -0300
     1.3 @@ -1738,6 +1738,43 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Check for Windows OpenGL
     1.8 +CheckWINDOWSGLES()
     1.9 +{
    1.10 +    if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
    1.11 +
    1.12 +        AC_MSG_CHECKING(for EGL support)
    1.13 +        video_opengl_egl=no
    1.14 +        AC_TRY_COMPILE([
    1.15 +         #include <EGL/egl.h>
    1.16 +        ],[
    1.17 +        ],[
    1.18 +        video_opengl_egl=yes
    1.19 +        ])
    1.20 +        AC_MSG_RESULT($video_opengl_egl)
    1.21 +        if test x$video_opengl_egl = xyes; then
    1.22 +            AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
    1.23 +            AC_DEFINE(SDL_VIDEO_OPENGL_EGL, 1, [ ])
    1.24 +        fi
    1.25 +       
    1.26 +        AC_MSG_CHECKING(for OpenGL ES v2 headers)
    1.27 +        video_opengles_v2=no
    1.28 +        AC_TRY_COMPILE([
    1.29 +         #include <GLES2/gl2.h>
    1.30 +         #include <GLES2/gl2ext.h>
    1.31 +        ],[
    1.32 +        ],[
    1.33 +        video_opengles_v2=yes
    1.34 +        ])
    1.35 +        AC_MSG_RESULT($video_opengles_v2)
    1.36 +        if test x$video_opengles_v2 = xyes; then
    1.37 +            AC_DEFINE(SDL_VIDEO_OPENGL, 1, [ ])
    1.38 +            AC_DEFINE(SDL_VIDEO_OPENGL_ES2, 1, [ ])
    1.39 +            AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES2, 1, [ ])
    1.40 +        fi
    1.41 +    fi
    1.42 +}
    1.43 +
    1.44  dnl Check for Haiku OpenGL
    1.45  CheckHaikuGL()
    1.46  {
    1.47 @@ -2515,6 +2552,7 @@
    1.48          CheckDummyAudio
    1.49          CheckWINDOWS
    1.50          CheckWINDOWSGL
    1.51 +        CheckWINDOWSGLES
    1.52          CheckDIRECTX
    1.53  
    1.54          # Set up the core platform files