test/configure.in
changeset 3087 0b6f51c29267
parent 2138 9af6717e676a
child 3090 37f9304df6a9
     1.1 --- a/test/configure.in	Wed Mar 04 09:35:32 2009 +0000
     1.2 +++ b/test/configure.in	Wed Mar 04 15:10:47 2009 +0000
     1.3 @@ -49,7 +49,12 @@
     1.4          else
     1.5              SYS_GL_LIBS="-lOSMesa"
     1.6          fi
     1.7 -		;;
     1.8 +        ;;
     1.9 +    *-*-qnx*)
    1.10 +        EXE=""
    1.11 +        MATHLIB=""
    1.12 +        SYS_GL_LIBS="-lGLES_CM"
    1.13 +        ;;
    1.14      *)
    1.15          EXE=""
    1.16          MATHLIB="-lm"
    1.17 @@ -99,6 +104,30 @@
    1.18  else
    1.19      GLLIB=""
    1.20  fi
    1.21 +
    1.22 +dnl Check for OpenGL ES
    1.23 +AC_MSG_CHECKING(for OpenGL ES support)
    1.24 +have_opengles=no
    1.25 +AC_TRY_COMPILE([
    1.26 + #if defined (__QNXNTO__)
    1.27 +    #include <GLES/gl.h>
    1.28 + #elif defined (__IPHONEOS__)
    1.29 +    #include <OpenGLES/ES1/gl.h>
    1.30 + #else
    1.31 +    #error "No OpenGL ES support"
    1.32 + #endif /* __QNXNTO__ */
    1.33 +],[
    1.34 +],[
    1.35 +have_opengles=yes
    1.36 +])
    1.37 +AC_MSG_RESULT($have_opengles)
    1.38 +if test x$have_opengles = xyes; then
    1.39 +    CFLAGS="$CFLAGS -DHAVE_OPENGLES"
    1.40 +    GLLIB="$XPATH $SYS_GL_LIBS"
    1.41 +else
    1.42 +    GLLIB=""
    1.43 +fi
    1.44 +
    1.45  AC_SUBST(GLLIB)
    1.46  
    1.47  dnl Finally create all the generated files