From 9cea2af3fc7a8a55163418cec09412a2ae4e0856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Thu, 8 Apr 2010 11:52:46 +0200 Subject: [PATCH] Avoid searching for windres when not building for Windows Just checking for a windres tool might hit even on Linux systems when building for Linux (e.g.: when using Gentoo and having built binutils with multitarget support), and will then fail to link properly at the end of the build. * configure.ac: Avoid searching for windres on non windows target --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index dd1298f178..2faab9e107 100644 --- a/configure.ac +++ b/configure.ac @@ -1816,10 +1816,14 @@ AC_SUBST([CYGWIN_EXTRA_PYTHON_LIBADD]) AC_SUBST([MINGW_EXTRA_LDFLAGS]) AC_SUBST([WIN32_EXTRA_CFLAGS]) -dnl Look for windres to build a Windows icon resource. -AC_CHECK_TOOL([WINDRES], [windres], [no]) -AM_CONDITIONAL([WITH_WIN_ICON], [test "$WINDRES" != "no"]) +dnl Look for windres to build a Windows icon resource. +case "$host" in + *-*-mingw* | *-*-cygwin* | *-*-msvc* ) + AC_CHECK_TOOL([WINDRES], [windres], []) + ;; +esac +AM_CONDITIONAL([WITH_WIN_ICON], [test "$WINDRES" != ""]) dnl Driver-Modules library