Commit 20b40c6a55c5d3a86edf70f6061b656822dddbd6
1 parent
e784ba70
Display SDL configuration error, idea by Ben Taylor.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3070 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
6 additions
and
1 deletions
configure
... | ... | @@ -553,7 +553,7 @@ cat > $TMPC << EOF |
553 | 553 | int main( void ) { return SDL_Init (SDL_INIT_VIDEO); } |
554 | 554 | EOF |
555 | 555 | |
556 | -if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /dev/null ; then | |
556 | +if $cc -o $TMPE `$sdl_config --cflags 2> /dev/null` $TMPC `$sdl_config --libs 2> /dev/null` 2> /tmp/qemu-$$-sdl-config.log ; then | |
557 | 557 | _sdlversion=`$sdl_config --version | sed 's/[^0-9]//g'` |
558 | 558 | if test "$_sdlversion" -lt 121 ; then |
559 | 559 | sdl_too_old=yes |
... | ... | @@ -688,6 +688,11 @@ echo "uname -r $uname_release" |
688 | 688 | if test $sdl_too_old = "yes"; then |
689 | 689 | echo "-> Your SDL version is too old - please upgrade to have SDL support" |
690 | 690 | fi |
691 | +if [ -s /tmp/qemu-$$-sdl-config.log ]; then | |
692 | + echo "The error log from compiling the libSDL test is: " | |
693 | + cat /tmp/qemu-$$-sdl-config.log | |
694 | +fi | |
695 | +rm -f /tmp/qemu-$$-sdl-config.log | |
691 | 696 | #if test "$sdl_static" = "no"; then |
692 | 697 | # echo "WARNING: cannot compile statically with SDL - qemu-fast won't have a graphical output" |
693 | 698 | #fi | ... | ... |