[Scummvm-cvs-logs] SF.net SVN: scummvm:[51676] scummvm/branches/gsoc2010-opengl/configure
vgvgf at users.sourceforge.net
vgvgf at users.sourceforge.net
Tue Aug 3 05:14:36 CEST 2010
Revision: 51676
http://scummvm.svn.sourceforge.net/scummvm/?rev=51676&view=rev
Author: vgvgf
Date: 2010-08-03 03:14:35 +0000 (Tue, 03 Aug 2010)
Log Message:
-----------
OPENGL: Add basic configure detection.
Modified Paths:
--------------
scummvm/branches/gsoc2010-opengl/configure
Modified: scummvm/branches/gsoc2010-opengl/configure
===================================================================
--- scummvm/branches/gsoc2010-opengl/configure 2010-08-03 02:30:36 UTC (rev 51675)
+++ scummvm/branches/gsoc2010-opengl/configure 2010-08-03 03:14:35 UTC (rev 51676)
@@ -2310,13 +2310,23 @@
#
# Check for OpenGL (ES)
#
+
echocheck "OpenGL (ES)"
if test "$_opengl" = auto ; then
-# TODO: This is just a quick hack until actual detection is added, which
-# will be a pain because of the various directories that OpenGL can have
-# its headers in. Maybe we should force the platforms to automatically
-# include the directory that includes gl.h?
- _opengl=yes
+ _opengl=no
+ cat > $TMPC << EOF
+#if defined(__MACOSX__)
+#include <gl.h>
+#else
+#if defined(__WIN32__)
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#endif
+#include <GL/gl.h>
+#endif
+int main(void) { return GL_VERSION_1_1; }
+EOF
+ cc_check $OPENGL_CFLAGS $OPENGL_LIBS && _opengl=yes
fi
if test "$_opengl" = yes ; then
_def_opengl='#define USE_OPENGL'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list