diff options
author | Louie S <louie@example.com> | 2023-05-09 17:20:31 -0700 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-05-09 17:20:31 -0700 |
commit | 14a6e82cc82e8c1802c0d468c6b32553d56099a6 (patch) | |
tree | fd5e3efa83476f5b77b0928eafb0573135a9dd2d /configure.ac | |
parent | 85398018f86932363623387b5a0417bf63db2db9 (diff) |
Don't check for windres on unix builds
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 78ee96c..bb8e8e8 100644 --- a/configure.ac +++ b/configure.ac @@ -59,10 +59,14 @@ AC_ARG_ENABLE([embed_icon], [embed icon in windows executable (default is yes)])], [embed_icon=no]) if test "x$embed_icon" = "xyes"; then - AC_CHECK_TOOL([WINDRES], [windres]) - AS_VAR_IF([WINDRES], [], - [AC_MSG_WARN([Cannot embed icon]) - embed_icon=no]) + if test "x$build_windows" = "xyes"; then + AC_CHECK_TOOL([WINDRES], [windres]) + AS_VAR_IF([WINDRES], [], + [AC_MSG_WARN([Cannot embed icon]) + embed_icon=no]) + else + embed_icon=no + fi fi AM_CONDITIONAL([EMBED_ICON], [test "$embed_icon" = "yes"]) |