* [Qemu-devel] logging the sdl test error
@ 2007-06-14 18:11 Ben Taylor
0 siblings, 0 replies; only message in thread
From: Ben Taylor @ 2007-06-14 18:11 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
This is short configure patch which saves the output of the libsdl test comile output
for a file which can be reviewed after configure runs. This allows for easier debugging
of why the libSDL test failed.
Ben
[-- Attachment #2: configure-sdl-err.diff --]
[-- Type: text/x-patch, Size: 1077 bytes --]
--- qemu/configure.ORIG 2007-06-14 13:58:26.144281000 -0400
+++ qemu/configure 2007-06-14 14:07:40.975474000 -0400
@@ -547,7 +547,7 @@
int main( void ) { return SDL_Init (SDL_INIT_VIDEO); }
EOF
-if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /dev/null ; then
+if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-sdl-config.log ; then
_sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'`
if test "$_sdlversion" -lt 121 ; then
sdl_too_old=yes
@@ -572,6 +572,8 @@
fi # static link
+else
+ check_sdl_log="yes"
fi # sdl compile test
fi # cross compilation
@@ -682,6 +684,9 @@
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
fi
+if test "$check_sdl_log" = "yes"; then
+ echo "The error log from compiling the libSDL test is in /tmp/qemu-sdl-config.log"
+fi
#if test "$sdl_static" = "no"; then
# echo "WARNING: cannot compile statically with SDL - qemu-fast won't have a graphical output"
#fi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-06-14 18:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-14 18:11 [Qemu-devel] logging the sdl test error Ben Taylor
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).