test/configure.in
changeset 6188 e82023802002
parent 3623 9a73fecd9181
child 6250 cce0ddcf6747
     1.1 --- a/test/configure.in	Sun Jan 08 01:15:20 2012 -0500
     1.2 +++ b/test/configure.in	Sun Jan 08 02:23:37 2012 -0500
     1.3 @@ -103,12 +103,10 @@
     1.4  AC_MSG_CHECKING(for OpenGL ES support)
     1.5  have_opengles=no
     1.6  AC_TRY_COMPILE([
     1.7 - #if defined (__QNXNTO__)
     1.8 -    #include <GLES/gl.h>
     1.9 - #elif defined (__IPHONEOS__)
    1.10 + #if defined (__IPHONEOS__)
    1.11      #include <OpenGLES/ES1/gl.h>
    1.12   #else
    1.13 -    #error "No OpenGL ES support"
    1.14 +    #include <GLES/gl.h>
    1.15   #endif /* __QNXNTO__ */
    1.16  ],[
    1.17  ],[
    1.18 @@ -116,12 +114,13 @@
    1.19  ])
    1.20  AC_MSG_RESULT($have_opengles)
    1.21  
    1.22 -if test x$have_opengl = xyes; then
    1.23 +GLLIB=""
    1.24 +if test x$have_opengles = xyes; then
    1.25 +    CFLAGS="$CFLAGS -DHAVE_OPENGLES"
    1.26 +    GLLIB="$XPATH -lGLESv1_CM"
    1.27 +elif test x$have_opengl = xyes; then
    1.28      CFLAGS="$CFLAGS -DHAVE_OPENGL"
    1.29      GLLIB="$XPATH $SYS_GL_LIBS"
    1.30 -elif test x$have_opengles = xyes; then
    1.31 -    CFLAGS="$CFLAGS -DHAVE_OPENGLES"
    1.32 -    GLLIB="$XPATH $SYS_GL_LIBS"
    1.33  else
    1.34      GLLIB=""
    1.35  fi