[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] ioemu: Improve SDL openGL configure-script detection.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1205884885 0
# Node ID 0901aec1d00b685a0922e916ea9a8e60ea14b8ca
# Parent  eee1bbb0e9f557c0d412bbada48369213dfc9df7
ioemu: Improve SDL openGL configure-script detection.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/ioemu/configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r eee1bbb0e9f5 -r 0901aec1d00b tools/ioemu/configure
--- a/tools/ioemu/configure     Tue Mar 18 21:05:47 2008 +0000
+++ b/tools/ioemu/configure     Wed Mar 19 00:01:25 2008 +0000
@@ -546,13 +546,13 @@ if test -z "$opengl" && test "$sdl" = "y
 if test -z "$opengl" && test "$sdl" = "yes"
 then
 cat > $TMPC << EOF
-#include <GL/gl.h>
+#include <SDL_opengl.h>
 #ifndef GL_TEXTURE_RECTANGLE_ARB
 #error "Opengl doesn't support GL_TEXTURE_RECTANGLE_ARB"
 #endif
 int main( void ) { return (int) glGetString(GL_EXTENSIONS); }
 EOF
-if $cc -o $TMPE $TMPC -lGL 2> /dev/null
+if $cc -o $TMPE `$sdl_config --cflags --libs 2> /dev/null` -I/usr/include/GL 
$TMPC -lXext -lGL 2> /dev/null
 then
 opengl="yes"
 else

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.