--------------------- PatchSet 5509 Date: 2002/11/23 14:51:35 Author: serassio Branch: nt-2_5 Tag: (none) Log: Added OpenSSL support on MinGW Members: configure.in:1.42.2.5.4.30->1.42.2.5.4.31 Index: squid/configure.in =================================================================== RCS file: /cvsroot/squid-sf//squid/configure.in,v retrieving revision 1.42.2.5.4.30 retrieving revision 1.42.2.5.4.31 diff -u -r1.42.2.5.4.30 -r1.42.2.5.4.31 --- squid/configure.in 10 Nov 2002 16:02:02 -0000 1.42.2.5.4.30 +++ squid/configure.in 23 Nov 2002 14:51:35 -0000 1.42.2.5.4.31 @@ -3,7 +3,7 @@ dnl dnl Duane Wessels, wessels@nlanr.net, February 1996 (autoconf v2.9) dnl -dnl $Id: configure.in,v 1.42.2.5.4.30 2002/11/10 16:02:02 serassio Exp $ +dnl $Id: configure.in,v 1.42.2.5.4.31 2002/11/23 14:51:35 serassio Exp $ dnl dnl dnl @@ -11,7 +11,7 @@ AC_CONFIG_AUX_DIR(cfgaux) AM_INIT_AUTOMAKE(squid, 2.5.STABLE1.NT-CVS) AM_CONFIG_HEADER(include/autoconf.h) -AC_REVISION($Revision: 1.42.2.5.4.30 $)dnl +AC_REVISION($Revision: 1.42.2.5.4.31 $)dnl AC_PREFIX_DEFAULT(/usr/local/squid) AM_MAINTAINER_MODE @@ -44,21 +44,6 @@ fi AC_SUBST(CGIEXT) -dnl Check if we are "Cross compiling" for MinGW target on Cygwin -case "$host_os" in -cygwin|cygwin32) - if echo "$CC" | grep -q mno-cygwin; then - echo "Using $CC on $host" - host_os=mingw32 - host=i686-pc-mingw32 - echo "Changed host_os type to $host_os" - echo "Changed host type to $host" - fi - ;; -*) - ;; -esac - dnl this should be expanded to a list of platform sensible support requirements. dnl (adding an option like --enable-cygwin-support doesn't make sense :]) - R Collins 2001 case "$host_os" in @@ -586,6 +571,14 @@ echo "SSL gatewaying using OpenSSL enabled" AC_DEFINE(USE_SSL) AM_CONDITIONAL(ENABLE_SSL, true) + case "$host_os" in + mingw|mingw32) + SSLLIB='-lssl -lcrypto -lgdi32' + ;; + *) + SSLLIB='-lssl -lcrypto' + ;; + esac SSLLIB='-lssl -lcrypto' USE_OPENSSL=1 fi