Add a check for 'windres' to configure.ac,

if Windows GUI or Console
This commit is contained in:
Holger Vogt
2020-10-10 13:55:32 +02:00
parent ef7f43a060
commit 16b225705f
2 changed files with 18 additions and 10 deletions
+16
View File
@@ -609,6 +609,22 @@ case $host_os in
esac
AM_CONDITIONAL([WINCONSOLE], [test "x$has_winconsole" = xyes])
if test "x$has_winconsole" = xyes; then
AC_CHECK_PROGS([WINRES], [windres windres.exe], [no])
if test "x$WINRES" = xno; then
AC_MSG_WARN([If you want adding the icon you should install windres])
fi
fi
if test "x$with_wingui" = xyes; then
AC_CHECK_PROGS([WINRES], [windres windres.exe], [no])
if test "x$WINRES" = xno; then
AC_MSG_WARN([If you want adding the icon you should install windres])
fi
fi
AM_CONDITIONAL([WINRESOURCE], [test "x$WINRES" = xwindres])
case $with_wingui in
yes )
AC_DEFINE([X_DISPLAY_MISSING])