]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: On some older machines SDL is available
authorMark Hatle <mhatle@windriver.com>
Thu, 26 Aug 2010 18:49:37 +0000 (11:49 -0700)
committerMark Hatle <mhatle@windriver.com>
Thu, 26 Aug 2010 21:30:36 +0000 (14:30 -0700)
On some older machines SDL is available, even if a pkgconfig
file for SDL is not there.  (See RHEL5.1)

Extend the check, to see if the primary SDL header is there, if
the pkgconfig check fails.

Signed-off-by: Mark Hatle <mhatle@windriver.com>
meta/packages/qemu/qemu.inc

index 5711596cc25017ad13066be6bbac86fb29954177..5425aaf4a5185a2b5ab52b21bb24522373b57cfe 100644 (file)
@@ -16,7 +16,8 @@ do_configure_prepend_virtclass-native() {
     test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes'
     test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes'
 
-    test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc && libsdl='yes'
+    test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc -o -e /usr/include/SDL/SDL.h && libsdl='yes'
+
 
     if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
        echo "You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native.