[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/12] configure: proper OpenGL/GLX probe
From: |
Michael Walle |
Subject: |
[Qemu-devel] [PATCH 11/12] configure: proper OpenGL/GLX probe |
Date: |
Wed, 6 Mar 2013 23:00:08 +0100 |
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 <address@hidden>
---
configure | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 2f98c5a..4f0d011 100755
--- a/configure
+++ b/configure
@@ -2437,9 +2437,9 @@ if test "$opengl" != "no" ; then
#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
- [Qemu-devel] [PATCH 00/12] target-lm32: various fixes, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 02/12] lm32-dis: fix NULL pointer dereference, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 01/12] target-lm32: fix debug memory access, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 03/12] milkymist-uart: fix receive buffering, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 04/12] lm32_uart: fix receive buffering, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 05/12] target-lm32: don't log cpu state in translation, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 09/12] target-lm32: flush tlb after clearing env, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 08/12] target-lm32: remove dead code, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 06/12] tests: tcg: lm32: add more test cases, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 12/12] configure: rename OpenGL feature to GLX, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 11/12] configure: proper OpenGL/GLX probe,
Michael Walle <=
- [Qemu-devel] [PATCH 07/12] target-lm32: fix cmpgui and cmpgeui opcodes, Michael Walle, 2013/03/06
- [Qemu-devel] [PATCH 10/12] target-lm32: use HELPER() macro, Michael Walle, 2013/03/06