test/configure
changeset 6188 e82023802002
parent 6102 bf7254ec1bf9
child 6250 cce0ddcf6747
     1.1 --- a/test/configure	Sun Jan 08 01:15:20 2012 -0500
     1.2 +++ b/test/configure	Sun Jan 08 02:23:37 2012 -0500
     1.3 @@ -3764,12 +3764,10 @@
     1.4  cat >>conftest.$ac_ext <<_ACEOF
     1.5  /* end confdefs.h.  */
     1.6  
     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  int
    1.18 @@ -3812,12 +3810,13 @@
    1.19  { echo "$as_me:$LINENO: result: $have_opengles" >&5
    1.20  echo "${ECHO_T}$have_opengles" >&6; }
    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