From: Diego Elio Pettenò Date: Thu, 8 Apr 2010 09:52:46 +0000 (+0200) Subject: Avoid searching for windres when not building for Windows X-Git-Tag: v0.8.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cea2af3fc7a8a55163418cec09412a2ae4e0856;p=thirdparty%2Flibvirt.git 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 --- 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