2
2
# Copyright (C) Igor Sysoev
3
# Copyright (C) Nginx, Inc.
5
6
if [ $OPENSSL != NONE ]; then
6
CORE_INCS="$CORE_INCS $OPENSSL/include"
11
have=NGX_OPENSSL . auto/have
12
have=NGX_SSL . auto/have
14
CFLAGS="$CFLAGS -DNO_SYS_TYPES_H"
16
CORE_INCS="$CORE_INCS $OPENSSL/openssl/include"
17
CORE_DEPS="$CORE_DEPS $OPENSSL/openssl/include/openssl/ssl.h"
18
CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/ssleay32.lib"
19
CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libeay32.lib"
21
# libeay32.lib requires gdi32.lib
22
CORE_LIBS="$CORE_LIBS gdi32.lib"
23
# OpenSSL 1.0.0 requires crypt32.lib
24
CORE_LIBS="$CORE_LIBS crypt32.lib"
10
28
have=NGX_OPENSSL . auto/have
11
29
have=NGX_SSL . auto/have
12
LINK_DEPS="$LINK_DEPS $OPENSSL/libssl.a $OPENSSL/libcrypto.a"
13
CORE_LIBS="$CORE_LIBS $OPENSSL/libssl.a $OPENSSL/libcrypto.a"
19
CORE_LIBS="$CORE_LIBS -ldl"
31
CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include"
32
CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h"
33
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
34
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"
35
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
26
case "$NGX_PLATFORM" in
29
have=NGX_OPENSSL . auto/have
41
if [ "$NGX_PLATFORM" != win32 ]; then
45
ngx_feature="OpenSSL library"
46
ngx_feature_name="NGX_OPENSSL"
48
ngx_feature_incs="#include <openssl/ssl.h>"
50
ngx_feature_libs="-lssl -lcrypto"
51
ngx_feature_test="SSL_library_init()"
54
if [ $ngx_found = yes ]; then
30
55
have=NGX_SSL . auto/have
56
CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
33
CORE_INCS="$CORE_INCS c:/openssl/include"
34
CORE_LIBS="$CORE_LIBS c:/openssl/ssleay32.lib"
35
CORE_LIBS="$CORE_LIBS c:/openssl/libeay32.lib"
37
# libeay32.lib requires gdi32.lib
38
CORE_LIBS="$CORE_LIBS gdi32.lib"
39
# OpenSSL 0.8's libeay32.lib requires advapi32.lib
40
CORE_LIBS="$CORE_LIBS advapi32.lib"
46
ngx_feature="OpenSSL library"
47
ngx_feature_name="NGX_OPENSSL"
49
ngx_feature_incs="#include <openssl/ssl.h>"
51
ngx_feature_libs="-lssl -lcrypto"
52
ngx_feature_test="SSL_library_init()"
55
if [ $ngx_found = yes ]; then
56
have=NGX_SSL . auto/have
57
CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
62
CORE_LIBS="$CORE_LIBS -ldl"
61
if [ $OPENSSL != YES ]; then
65
$0: error: SSL modules require the OpenSSL library.
66
You can either do not enable the modules, or install the OpenSSL library
67
into the system, or build the OpenSSL library statically from the source
68
with nginx by using --with-openssl=<path> option.