diff options
author | Fabian Greffrath | 2015-09-03 07:44:56 +0200 |
---|---|---|
committer | Mike Swanson | 2015-09-05 09:16:29 -0700 |
commit | 13ceb8b96838fa6c60d002557792282c36372ecc (patch) | |
tree | 2382e9525f9255644c1f841a6c10d3ed9e1900c7 | |
parent | 59acab4c89c29d4b8016281f34eb7540df7e03f5 (diff) | |
download | chocolate-doom-13ceb8b96838fa6c60d002557792282c36372ecc.tar.gz chocolate-doom-13ceb8b96838fa6c60d002557792282c36372ecc.tar.bz2 chocolate-doom-13ceb8b96838fa6c60d002557792282c36372ecc.zip |
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
-rw-r--r-- | configure.ac | 10 |
1 files changed, 9 insertions, 1 deletions
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" != "") |