aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-06-13 07:53:51 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-06-13 07:53:51 +0000
commitfc71b7c9623e0a642f6b976ad9bbdc9beb3d2573 (patch)
treef6252761875742b559465c5f5fb164fce3ebd772 /configure.ac
parentUpdated copyright notice to 2008. (diff)
downloadopenvpn-fc71b7c9623e0a642f6b976ad9bbdc9beb3d2573.tar.xz
Version 2.1_rc8v2.1_rc8
On Windows, use -leay32 and -lssl32 to link with OpenSSL. On Windows, bundle pkcs11-helper-1.06-beta1. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2997 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 11 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 9ca2c4e..357e1a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -611,7 +611,7 @@ fi
dnl
dnl Check if LoadLibrary exists on Windows
dnl
-if test "${WIN32}" == "yes"; then
+if test "${WIN32}" = "yes"; then
if test "$PLUGINS" = "yes"; then
AC_TRY_LINK([
#include <windows.h>
@@ -683,7 +683,11 @@ if test "$CRYPTO" = "yes"; then
],
[
AC_DEFINE(USE_CRYPTO, 1, [Use OpenSSL crypto library])
- OPENVPN_ADD_LIBS(-lcrypto)
+ if test "${WIN32}" = "yes"; then
+ OPENVPN_ADD_LIBS(-leay32)
+ else
+ OPENVPN_ADD_LIBS(-lcrypto)
+ fi
AC_CHECK_FUNCS(EVP_CIPHER_CTX_set_key_length)
dnl check for OpenSSL crypto acceleration capability
@@ -725,7 +729,11 @@ dnl
[AC_MSG_ERROR([OpenSSL SSL headers not found.])]
)
AC_DEFINE(USE_SSL, 1, [Use OpenSSL SSL library])
- OPENVPN_ADD_LIBS(-lssl)
+ if test "${WIN32}" = "yes"; then
+ OPENVPN_ADD_LIBS(-lssl32)
+ else
+ OPENVPN_ADD_LIBS(-lssl)
+ fi
fi
fi