# HG changeset patch # User atmos4 # Date 1020457760 0 # Node ID 70b326241d52ca6a3a9fcfa5eae0344c6d5151d8 # Parent 1ab2605a9e44f6c776304d750e6ed3a92429c0c3 More verbose error reporting to configure.log for SDL and fix a long pustanding bug, with type mismatch in test-compile-code (affected eg. cygwin, too) diff -r 1ab2605a9e44 -r 70b326241d52 configure --- a/configure Fri May 03 19:45:43 2002 +0000 +++ b/configure Fri May 03 20:29:20 2002 +0000 @@ -2341,9 +2341,9 @@ echocheck "SDL" if test -z "$_sdlconfig" ; then - if ( sdl-config --version ) >/dev/null 2>&1 ; then + if ( sdl-config --version ) >>"$TMPLOG" 2>&1 ; then _sdlconfig="sdl-config" - elif ( sdl11-config --version ) >/dev/null 2>&1 ; then + elif ( sdl11-config --version ) >>"$TMPLOG" 2>&1 ; then _sdlconfig="sdl11-config" else _sdlconfig=false @@ -2352,11 +2352,11 @@ if test "$_sdl" = auto || test "$_sdl" = yes ; then cat > $TMPC << EOF #include -int main(void) { return 0; } +int main(int argc, char *argv[]) { return 0; } EOF _sdl=no - if "$_sdlconfig" --version >/dev/null 2>&1 ; then - if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` ; then + if "$_sdlconfig" --version >>"$TMPLOG" 2>&1 ; then + if cc_check `$_sdlconfig --cflags` `$_sdlconfig --libs` >>"$TMPLOG" 2>&1 ; then _sdlversion=`$_sdlconfig --version | sed 's/[^0-9]//g'` if test "$_sdlversion" -gt 116 ; then if test "$_sdlversion" -lt 121 ; then