]> granicus.if.org Git - curl/commitdiff
fix regression in configure script which affected OpenSSL builds on MSYS
authorYang Tse <yangsita@gmail.com>
Sat, 20 Sep 2008 12:44:44 +0000 (12:44 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 20 Sep 2008 12:44:44 +0000 (12:44 +0000)
CHANGES
RELEASE-NOTES
configure.ac

diff --git a/CHANGES b/CHANGES
index 4eb7cd8c363fa76d8245da1132ed413fddccc817..efc64d9dadc0971679616121bbafd9333d96127e 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
 
                                   Changelog
 
+Yang Tse (20 Sep 2008)
+- Fix regression in configure script which affected OpenSSL builds on MSYS.
+
 Yang Tse (19 Sep 2008)
 - configure script now checks availability of the alarm() function.
 
index d0131f057a7038f27c9ce7d89513d4b65c4ea647..2901dd2a66f7c4928d3fb46fbb70756f447ccda0 100644 (file)
@@ -21,6 +21,7 @@ This release includes the following bugfixes:
  o curl_easy_pause() could behave wrongly on unpause
  o cookie with invalid expire dates are now considered expired
  o HTTP pipelining over proxy
+ o fix regression in configure script which affected OpenSSL builds on MSYS
 
 This release includes the following known bugs:
 
@@ -35,6 +36,6 @@ advice from friends like these:
 
  Keith Mok, Yang Tse, Daniel Fandrich, Guenter Knauf, Dmitriy Sergeyev,
  Linus Nielsen Feltzing, Martin Drasar, Stefan Krause, Dmitry Kurochkin,
- Mike Revi
+ Mike Revi, Andres Garcia
 
         Thanks! (and sorry if I forgot to mention someone)
index 2a1bce95d143ece19ddbe0ea178202ffd7cc1531..ddde3b7a131d8ecd002f69188c570dc04c6b6c75 100644 (file)
@@ -1275,6 +1275,24 @@ if test X"$OPT_SSL" != Xno; then
     fi
   fi
 
+  dnl This is for Msys/Mingw
+  case $host in
+    *-*-msys* | *-*-mingw*)
+      AC_MSG_CHECKING([for gdi32])
+      my_ac_save_LIBS=$LIBS
+      LIBS="-lgdi32 $LIBS"
+      AC_TRY_LINK([#include <windef.h>
+                   #include <wingdi.h>],
+                   [GdiFlush();],
+                   [ dnl worked!
+                   AC_MSG_RESULT([yes])],
+                   [ dnl failed, restore LIBS
+                   LIBS=$my_ac_save_LIBS
+                   AC_MSG_RESULT(no)]
+                  )
+      ;;
+  esac
+
   AC_CHECK_LIB(crypto, CRYPTO_lock,[
      HAVECRYPTO="yes"
      LIBS="-lcrypto $LIBS"