fix regression in configure script which affected OpenSSL builds on MSYS

This commit is contained in:
Yang Tse 2008-09-20 12:44:44 +00:00
parent fe5f448015
commit 6abbbaad1b
3 changed files with 23 additions and 1 deletions

View File

@ -6,6 +6,9 @@
Changelog Changelog
Yang Tse (20 Sep 2008)
- Fix regression in configure script which affected OpenSSL builds on MSYS.
Yang Tse (19 Sep 2008) Yang Tse (19 Sep 2008)
- configure script now checks availability of the alarm() function. - configure script now checks availability of the alarm() function.

View File

@ -21,6 +21,7 @@ This release includes the following bugfixes:
o curl_easy_pause() could behave wrongly on unpause o curl_easy_pause() could behave wrongly on unpause
o cookie with invalid expire dates are now considered expired o cookie with invalid expire dates are now considered expired
o HTTP pipelining over proxy o HTTP pipelining over proxy
o fix regression in configure script which affected OpenSSL builds on MSYS
This release includes the following known bugs: 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, Keith Mok, Yang Tse, Daniel Fandrich, Guenter Knauf, Dmitriy Sergeyev,
Linus Nielsen Feltzing, Martin Drasar, Stefan Krause, Dmitry Kurochkin, Linus Nielsen Feltzing, Martin Drasar, Stefan Krause, Dmitry Kurochkin,
Mike Revi Mike Revi, Andres Garcia
Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)

View File

@ -1275,6 +1275,24 @@ if test X"$OPT_SSL" != Xno; then
fi fi
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,[ AC_CHECK_LIB(crypto, CRYPTO_lock,[
HAVECRYPTO="yes" HAVECRYPTO="yes"
LIBS="-lcrypto $LIBS" LIBS="-lcrypto $LIBS"