diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2017-07-29 16:17:16 -0700 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2017-07-30 15:39:08 -0700 |
commit | 4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77 (patch) | |
tree | df3b326ec190c79a27a52f761e0a3a6e1e42bd9d /configure.ac | |
parent | Appveyor: Change to use MSYSTEM with MSYS to get correct MinGW tools (diff) | |
download | redshift-ng-4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77.tar.gz redshift-ng-4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77.tar.bz2 redshift-ng-4e6f2fa7ab00c3342d04f543ac1b27b2e3a4ab77.tar.xz |
Add Windows resources
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 77cdf3f..3b329d9 100644 --- a/configure.ac +++ b/configure.ac @@ -18,6 +18,27 @@ AC_LANG([C]) AC_PROG_INTLTOOL([0.50]) +AC_CANONICAL_HOST + +# Test host platform +build_windows=no +case "${host_os}" in + mingw*) + build_windows=yes + ;; +esac + +# Test whether to compile Windows resources +AC_CHECK_TOOL([WINDRES], [windres], []) +AS_IF([test "x$build_windows" = "xyes" -a -n "x$WINDRES"], [ + enable_windows_resource=yes +], [ + enable_windows_resource=no +]) +AM_CONDITIONAL([ENABLE_WINDOWS_RESOURCE], + [test "x$enable_windows_resource" = xyes]) + + # Test whether Objective C compiler works AC_MSG_CHECKING([whether Objective C compiler works]) AC_LANG_PUSH([Objective C]) @@ -128,7 +149,7 @@ AS_IF([test "x$enable_randr" != xno], [ ]) AM_CONDITIONAL([ENABLE_RANDR], [test "x$enable_randr" = xyes]) -# Check VidMode method +# Check VidMode method AC_MSG_CHECKING([whether to enable VidMode method]) AC_ARG_ENABLE([vidmode], [AC_HELP_STRING([--enable-vidmode], [enable VidMode method])], @@ -180,7 +201,7 @@ AM_CONDITIONAL([ENABLE_QUARTZ], [test "x$enable_quartz" = xyes]) AC_SUBST([QUARTZ_CFLAGS]) AC_SUBST([QUARTZ_LIBS]) -# Check Windows GDI method +# Check Windows GDI method AC_MSG_CHECKING([whether to enable WinGDI method]) AC_ARG_ENABLE([wingdi], [AC_HELP_STRING([--enable-wingdi], [enable WinGDI method])], |