From a01e04fee00d771e3c9d9551219246ebf4f9663d Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 7 Dec 2013 11:56:34 -0800 Subject: [PATCH] autoconf: add --disable-wic this allows windows builds to prefer libjpeg, libpng etc. for import and export Change-Id: Ibe1648b68a3f7b5016044e82530843dea46a94a4 --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 09405636..a9238eb5 100644 --- a/configure.ac +++ b/configure.ac @@ -316,7 +316,13 @@ AM_CONDITIONAL([BUILD_GIF2WEBP], [test "${build_gif2webp}" = "yes"]) dnl === check for WIC support === -if test "$target_os" = "mingw32"; then +AC_ARG_ENABLE([wic], + AS_HELP_STRING([--disable-wic], + [Disable Windows Imaging Component (WIC) detection. + @<:@default=auto@:>@]),, + [enable_wic=yes]) + +if test "$target_os" = "mingw32" -a "$enable_wic" = "yes"; then AC_CHECK_HEADERS([wincodec.h shlwapi.h windows.h]) if test "$ac_cv_header_wincodec_h" = "yes"; then AC_MSG_CHECKING(for Windows Imaging Component support)