aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 19:02:45 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-07-30 19:02:45 +0000
commit12316946dcceb0aba0b7f45d8f67c7a77dc5aff5 (patch)
tree993584b67a55f0f217001c92b6f816282e188835 /configure
parent0c3bfd09d915a99ec158eb401970d05aec80e055 (diff)
Extend OpenGL configure test to also check for glx/wgl and proper linking.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23950 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 17 insertions, 1 deletions
diff --git a/configure b/configure
index 7d33a53830..14fd16c04b 100755
--- a/configure
+++ b/configure
@@ -4025,7 +4025,23 @@ echocheck "OpenGL"
if (test "$_x11" = yes || win32) && test "$_gl" != no ; then
cat > $TMPC << EOF
#include <GL/gl.h>
-int main(void) { return 0; }
+#ifdef GL_WIN32
+#include <windows.h>
+#include <GL/glext.h>
+#else
+#include <X11/Xlib.h>
+#include <GL/glx.h>
+#endif
+int main(void) {
+#ifdef GL_WIN32
+ HDC dc;
+ wglCreateContext(dc);
+#else
+ glXCreateContext(NULL, NULL, NULL, True);
+#endif
+ glFinish();
+ return 0;
+}
EOF
_gl=no
if cc_check -lGL $_ld_lm ; then