ia64/xen-unstable

changeset 17260:0901aec1d00b

ioemu: Improve SDL openGL configure-script detection.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 19 00:01:25 2008 +0000 (2008-03-19)
parents eee1bbb0e9f5
children 4af873c95d0b
files tools/ioemu/configure
line diff
     1.1 --- a/tools/ioemu/configure	Tue Mar 18 21:05:47 2008 +0000
     1.2 +++ b/tools/ioemu/configure	Wed Mar 19 00:01:25 2008 +0000
     1.3 @@ -546,13 +546,13 @@ fi # -z $sdl
     1.4  if test -z "$opengl" && test "$sdl" = "yes"
     1.5  then
     1.6  cat > $TMPC << EOF
     1.7 -#include <GL/gl.h>
     1.8 +#include <SDL_opengl.h>
     1.9  #ifndef GL_TEXTURE_RECTANGLE_ARB
    1.10  #error "Opengl doesn't support GL_TEXTURE_RECTANGLE_ARB"
    1.11  #endif
    1.12  int main( void ) { return (int) glGetString(GL_EXTENSIONS); }
    1.13  EOF
    1.14 -if $cc -o $TMPE $TMPC -lGL 2> /dev/null
    1.15 +if $cc -o $TMPE `$sdl_config --cflags --libs 2> /dev/null` -I/usr/include/GL $TMPC -lXext -lGL 2> /dev/null
    1.16  then
    1.17  opengl="yes"
    1.18  else