comparison test/configure.in @ 3087:0b6f51c29267

Date: Wed, 4 Mar 2009 15:38:22 +0200 From: "Mike Gorchak" Subject: Re: About QNX support in SDL 1.3 Here is another batch of patches. 1) Makefile.in - added SDL_opengles.h header as header to install. 2) configure.in - Added special define to detect Common Lite OpenGL ES library in case if Common library is not installed. Added check for clock_gettime in libc (in QNX it is in libc). 3) SDL_config.h.in - Added SDL_VIDEO_RENDER_OPENGL_ES and SDL_VIDEO_OPENGL_ES declarations for configure script autodetection. 4) SDL_opengles.h - Added GL_API definition if it is not defined. Added extension GL_OES_draw_texture because OpenGL ES Renderer uses it without declaration. Added GL_OES_vertex_buffer_object extension, which is supported under QNX OpenGL ES. Added GL_OES_single_precision extension. 5) To the test directory I've added building OpenGL ES test applications through the autotools suite. Was support for iPhone IDE building only.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 04 Mar 2009 15:10:47 +0000
parents 9af6717e676a
children 37f9304df6a9
comparison
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])