test/configure.in
changeset 3087 0b6f51c29267
parent 2138 9af6717e676a
child 3090 37f9304df6a9
equal deleted inserted replaced
3086:0102ed19c21a 3087:0b6f51c29267
    47             CFLAGS="$CFLAGS $OSMESA_CFLAGS"
    47             CFLAGS="$CFLAGS $OSMESA_CFLAGS"
    48             SYS_GL_LIBS="$OSMESA_LIBS"
    48             SYS_GL_LIBS="$OSMESA_LIBS"
    49         else
    49         else
    50             SYS_GL_LIBS="-lOSMesa"
    50             SYS_GL_LIBS="-lOSMesa"
    51         fi
    51         fi
    52 		;;
    52         ;;
       
    53     *-*-qnx*)
       
    54         EXE=""
       
    55         MATHLIB=""
       
    56         SYS_GL_LIBS="-lGLES_CM"
       
    57         ;;
    53     *)
    58     *)
    54         EXE=""
    59         EXE=""
    55         MATHLIB="-lm"
    60         MATHLIB="-lm"
    56         SYS_GL_LIBS="-lGL"
    61         SYS_GL_LIBS="-lGL"
    57         ;;
    62         ;;
    97     CFLAGS="$CFLAGS -DHAVE_OPENGL"
   102     CFLAGS="$CFLAGS -DHAVE_OPENGL"
    98     GLLIB="$XPATH $SYS_GL_LIBS"
   103     GLLIB="$XPATH $SYS_GL_LIBS"
    99 else
   104 else
   100     GLLIB=""
   105     GLLIB=""
   101 fi
   106 fi
       
   107 
       
   108 dnl Check for OpenGL ES
       
   109 AC_MSG_CHECKING(for OpenGL ES support)
       
   110 have_opengles=no
       
   111 AC_TRY_COMPILE([
       
   112  #if defined (__QNXNTO__)
       
   113     #include <GLES/gl.h>
       
   114  #elif defined (__IPHONEOS__)
       
   115     #include <OpenGLES/ES1/gl.h>
       
   116  #else
       
   117     #error "No OpenGL ES support"
       
   118  #endif /* __QNXNTO__ */
       
   119 ],[
       
   120 ],[
       
   121 have_opengles=yes
       
   122 ])
       
   123 AC_MSG_RESULT($have_opengles)
       
   124 if test x$have_opengles = xyes; then
       
   125     CFLAGS="$CFLAGS -DHAVE_OPENGLES"
       
   126     GLLIB="$XPATH $SYS_GL_LIBS"
       
   127 else
       
   128     GLLIB=""
       
   129 fi
       
   130 
   102 AC_SUBST(GLLIB)
   131 AC_SUBST(GLLIB)
   103 
   132 
   104 dnl Finally create all the generated files
   133 dnl Finally create all the generated files
   105 AC_OUTPUT([Makefile])
   134 AC_OUTPUT([Makefile])