# HG changeset patch
# User Sam Lantinga <slouken@libsdl.org>
# Date 1184731540 0
# Node ID ca7d2227d6304c6baa6d916e664010e47c67cb79
# Parent  a64c891037fdcbd887e5d77e4d7a0c6499a5c765
Better windres detection

diff -r a64c891037fd -r ca7d2227d630 configure.in
--- a/configure.in	Mon Jul 16 14:19:47 2007 +0000
+++ b/configure.in	Wed Jul 18 04:05:40 2007 +0000
@@ -96,7 +96,12 @@
 AC_PROG_CXX
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
-AC_CHECK_PROGS(WINDRES, windres i386-mingw32-windres)
+if test -z "$host_alias"; then
+    hostaliaswindres=
+else
+    hostaliaswindres="$host_alias-windres"
+fi
+AC_CHECK_PROGS(WINDRES, [windres $hostaliaswindres $host_os-windres])
 
 dnl Check for compiler characteristics
 AC_C_CONST