aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-11 21:14:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-11 21:14:54 +0000
commita3d39efa3b0ea9f1887449db744f5b77ea0b4787 (patch)
tree1a095f17691001787a1ce0e06eeccfc3dba4315b
parent50efb8f33e379177e9d40ba05fa3d0d31b5249b7 (diff)
Andrés García's additional fix to make the OpenSSL stuff work for msys/mingw
-rw-r--r--configure.ac16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2cc42af37..f40533ca1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,7 +259,7 @@ then
AC_TRY_LINK([#include <winsock2.h>],
[gethostbyname("www.dummysite.com");],
[ dnl worked!
- AC_MSG_CHECKING([yes])
+ AC_MSG_RESULT([yes])
HAVE_GETHOSTBYNAME="1"],
[ dnl failed, restore LIBS
LIBS=$my_ac_save_LIBS
@@ -692,6 +692,20 @@ else
dnl This is only reasonable to do if crypto actually is there: check for
dnl SSL libs NOTE: it is important to do this AFTER the crypto lib
+ dnl This is for 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)]
+ )
+
AC_CHECK_LIB(crypto, CRYPTO_add_lock)
AC_CHECK_LIB(ssl, SSL_connect)