From 13ceb8b96838fa6c60d002557792282c36372ecc Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 3 Sep 2015 07:44:56 +0200 Subject: configure: Check for windres only if building for windows This is based on a patch proposed for libvirt: https://www.redhat.com/archives/libvir-list/2010-February/msg00863.html Fixes #604 --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index e281b114..b2742d75 100644 --- a/configure.ac +++ b/configure.ac @@ -103,7 +103,15 @@ AC_SDL_MAIN_WORKAROUND([ AC_CHECK_LIB(amd64, amd64_iopl) ]) -AC_CHECK_TOOL(WINDRES, windres, ) +case $host in + *cygwin* | *mingw* ) + AC_CHECK_TOOL(WINDRES, windres, ) + ;; + *) + WINDRES= + ;; +esac + AC_CHECK_TOOL(STRIP, strip, ) AM_CONDITIONAL(HAVE_WINDRES, test "$WINDRES" != "") -- cgit v1.2.3