comparison 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 4800979de337
children 0d12e8f1de3c
comparison
equal deleted inserted replaced
3086:0102ed19c21a 3087:0b6f51c29267
1703 video_opengl=yes 1703 video_opengl=yes
1704 ]) 1704 ])
1705 AC_MSG_RESULT($video_opengl) 1705 AC_MSG_RESULT($video_opengl)
1706 if test x$video_opengl = xyes; then 1706 if test x$video_opengl = xyes; then
1707 AC_DEFINE(SDL_VIDEO_OPENGL_ES) 1707 AC_DEFINE(SDL_VIDEO_OPENGL_ES)
1708 AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES)
1709 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CM" 1708 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CM"
1710 else 1709 else
1711 AC_MSG_CHECKING(for QNX OpenGL ES (CL) support) 1710 AC_MSG_CHECKING(for QNX OpenGL ES (CL) support)
1712 video_opengl=no 1711 video_opengl=no
1713 AC_TRY_COMPILE([ 1712 AC_TRY_COMPILE([
1713 #define COMMON_LITE
1714 #include <GLES/egl.h> 1714 #include <GLES/egl.h>
1715 ],[ 1715 ],[
1716 ],[ 1716 ],[
1717 video_opengl=yes 1717 video_opengl=yes
1718 ]) 1718 ])
1719 AC_MSG_RESULT($video_opengl) 1719 AC_MSG_RESULT($video_opengl)
1720 if test x$video_opengl = xyes; then 1720 if test x$video_opengl = xyes; then
1721 AC_DEFINE(SDL_VIDEO_OPENGL_ES) 1721 AC_DEFINE(SDL_VIDEO_OPENGL_ES)
1722 AC_DEFINE(SDL_VIDEO_RENDER_OGL_ES)
1723 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CL" 1722 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lGLES_CL"
1724 fi 1723 fi
1725 fi 1724 fi
1726 fi 1725 fi
1727 } 1726 }
2293 if test x$enable_clock_gettime = xyes; then 2292 if test x$enable_clock_gettime = xyes; then
2294 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes) 2293 AC_CHECK_LIB(rt, clock_gettime, have_clock_gettime=yes)
2295 if test x$have_clock_gettime = xyes; then 2294 if test x$have_clock_gettime = xyes; then
2296 AC_DEFINE(HAVE_CLOCK_GETTIME) 2295 AC_DEFINE(HAVE_CLOCK_GETTIME)
2297 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt" 2296 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lrt"
2297 else
2298 AC_CHECK_LIB(c, clock_gettime, have_clock_gettime=yes)
2299 if test x$have_clock_gettime = xyes; then
2300 AC_DEFINE(HAVE_CLOCK_GETTIME)
2301 EXTRA_LDFLAGS="$EXTRA_LDFLAGS"
2302 fi
2298 fi 2303 fi
2299 fi 2304 fi
2300 } 2305 }
2301 2306
2302 dnl Check for a valid linux/version.h 2307 dnl Check for a valid linux/version.h