From 10f4257c3b87a73a45d55cc5cca94406b2d77804 Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 28 Jun 2014 12:10:31 -0700 Subject: [PATCH] configure: support WIC + OpenGL under mingw64 fixes issue #211 original patch by grizzly dot nyo at gmail Change-Id: Ie7bf63d24c112e7e351979da4bebcb690a831c5d --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 665647d4..972d188a 100644 --- a/configure.ac +++ b/configure.ac @@ -190,7 +190,7 @@ AS_IF([test "x$enable_gl" != "xno"], [ # find libGL GL_SAVED_LIBS="$LIBS" - AC_SEARCH_LIBS([glBegin], [GL OpenGL]) + AC_SEARCH_LIBS([glBegin], [GL OpenGL opengl32]) LIBS="$GL_SAVED_LIBS" # A direct link to libGL may not be necessary on e.g., linux. @@ -369,7 +369,8 @@ AC_ARG_ENABLE([wic], @<:@default=auto@:>@]),, [enable_wic=yes]) -if test "$target_os" = "mingw32" -a "$enable_wic" = "yes"; then +if test \( "$target_os" = "mingw32" -o "$target_os" = "mingw64" \) \ + -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)