qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] configure: proper OpenGL/GLX probe
@ 2012-11-30 22:24 Michael Walle
  2012-11-30 22:24 ` [Qemu-devel] [PATCH 2/2] configure: rename OpenGL feature to GLX Michael Walle
  2012-12-09 22:21 ` [Qemu-devel] [PATCH 1/2] configure: proper OpenGL/GLX probe Michael Walle
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Walle @ 2012-11-30 22:24 UTC (permalink / raw)
  To: qemu-devel; +Cc: Michael Walle

Probe for GL and GLX symbols and X11 library. This fixes a build error
where the header files are available but the libraries are not.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 configure |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index 994f731..fedde51 100755
--- a/configure
+++ b/configure
@@ -2323,14 +2323,14 @@ fi
 ##########################################
 # opengl probe, used by milkymist-tmu2
 if test "$opengl" != "no" ; then
-  opengl_libs="-lGL"
+  opengl_libs="-lGL -lX11"
   cat > $TMPC << EOF
 #include <X11/Xlib.h>
 #include <GL/gl.h>
 #include <GL/glx.h>
-int main(void) { return GL_VERSION != 0; }
+int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; }
 EOF
-  if compile_prog "" "-lGL" ; then
+  if compile_prog "" "-lGL -lX11" ; then
     opengl=yes
   else
     if test "$opengl" = "yes" ; then
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-09 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-30 22:24 [Qemu-devel] [PATCH 1/2] configure: proper OpenGL/GLX probe Michael Walle
2012-11-30 22:24 ` [Qemu-devel] [PATCH 2/2] configure: rename OpenGL feature to GLX Michael Walle
2012-12-09 22:21 ` [Qemu-devel] [PATCH 1/2] configure: proper OpenGL/GLX probe Michael Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).