<URL: http://bugs.freeciv.org/Ticket/Display.html?id=39549 >

 $subject


 - ML

diff -Nurd -X.diff_ignore freeciv/configure.ac freeciv/configure.ac
--- freeciv/configure.ac	2007-08-09 11:35:00.000000000 +0300
+++ freeciv/configure.ac	2007-08-12 20:39:35.000000000 +0300
@@ -345,6 +345,11 @@
 AC_DIAGNOSE([obsolete],[AC_MINGW32 is obsolete: use AC_CANONICAL_HOST and $host_os])
 
 if test x"$MINGW32" = "xyes"; then
+  AC_CHECK_TOOL([WINDRES], [windres])
+  if test -z $WINDRES; then
+	AC_MSG_ERROR([*** 'windres' missing.  Install binutils, fix your \$PATH, or set \$WINDRES manually. ***])
+  fi
+
   AC_DEFINE(SOCKET_ZERO_ISNT_STDIN, 1, [Mingw32-specific setting - stdin])
   AC_DEFINE(ALWAYS_ROOT, 1, [Mingw32-specific setting - root])
   AC_DEFINE(WIN32_NATIVE, 1, [Mingw32-specific setting - native])
diff -Nurd -X.diff_ignore freeciv/win32/Makefile.am freeciv/win32/Makefile.am
--- freeciv/win32/Makefile.am	2007-08-04 18:38:35.000000000 +0300
+++ freeciv/win32/Makefile.am	2007-08-12 20:40:03.000000000 +0300
@@ -14,9 +14,8 @@
 CLEANFILES = $(nodist_noinst_DATA)
 
 clienticon.o: clienticon.rc
-	windres -i clienticon.rc -o clienticon.o
+	$(WINDRES) -i clienticon.rc -o clienticon.o
 
 servericon.o: servericon.rc
-	windres -i servericon.rc -o servericon.o
+	$(WINDRES) -i servericon.rc -o servericon.o
 endif
-
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to