2004-07-26 02:34:14 +08:00
|
|
|
|
2004-09-30 00:00:49 +08:00
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
2004-07-26 02:34:14 +08:00
|
|
|
if [ $OPENSSL != NONE ]; then
|
|
|
|
|
|
|
|
case "$CC" in
|
2009-04-16 03:46:24 +08:00
|
|
|
|
2009-05-14 23:46:34 +08:00
|
|
|
cl | bcc32)
|
2009-04-16 03:46:24 +08:00
|
|
|
have=NGX_OPENSSL . auto/have
|
|
|
|
have=NGX_SSL . auto/have
|
|
|
|
|
2009-05-14 23:46:34 +08:00
|
|
|
CFLAGS="$CFLAGS -DNO_SYS_TYPES_H"
|
2009-04-16 03:46:24 +08:00
|
|
|
|
2009-05-14 23:46:34 +08:00
|
|
|
CORE_INCS="$CORE_INCS $OPENSSL/openssl/include"
|
|
|
|
CORE_DEPS="$CORE_DEPS $OPENSSL/openssl/include/openssl/ssl.h"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/ssleay32.lib"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libeay32.lib"
|
2009-04-16 03:46:24 +08:00
|
|
|
|
2009-04-21 22:31:40 +08:00
|
|
|
# libeay32.lib requires gdi32.lib
|
|
|
|
CORE_LIBS="$CORE_LIBS gdi32.lib"
|
2009-04-16 03:46:24 +08:00
|
|
|
;;
|
|
|
|
|
2004-07-26 02:34:14 +08:00
|
|
|
*)
|
|
|
|
have=NGX_OPENSSL . auto/have
|
2005-11-15 21:30:52 +08:00
|
|
|
have=NGX_SSL . auto/have
|
2009-05-14 23:46:34 +08:00
|
|
|
|
2009-09-28 20:24:09 +08:00
|
|
|
CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include"
|
|
|
|
CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a"
|
|
|
|
CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a"
|
2009-05-08 17:39:53 +08:00
|
|
|
CORE_LIBS="$CORE_LIBS $NGX_LIBDL"
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
;;
|
2004-07-26 02:34:14 +08:00
|
|
|
esac
|
|
|
|
|
|
|
|
else
|
|
|
|
|
2005-12-05 21:18:09 +08:00
|
|
|
case "$NGX_PLATFORM" in
|
|
|
|
|
|
|
|
win32)
|
|
|
|
have=NGX_OPENSSL . auto/have
|
2005-11-15 21:30:52 +08:00
|
|
|
have=NGX_SSL . auto/have
|
2004-07-26 02:34:14 +08:00
|
|
|
OPENSSL=YES
|
2005-10-12 21:50:36 +08:00
|
|
|
|
2005-12-05 21:18:09 +08:00
|
|
|
CORE_INCS="$CORE_INCS c:/openssl/include"
|
|
|
|
CORE_LIBS="$CORE_LIBS c:/openssl/ssleay32.lib"
|
|
|
|
CORE_LIBS="$CORE_LIBS c:/openssl/libeay32.lib"
|
|
|
|
|
2009-04-21 22:31:40 +08:00
|
|
|
# libeay32.lib requires gdi32.lib
|
|
|
|
CORE_LIBS="$CORE_LIBS gdi32.lib"
|
2005-12-05 21:18:09 +08:00
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
OPENSSL=NO
|
2004-07-26 02:34:14 +08:00
|
|
|
|
2005-12-05 21:18:09 +08:00
|
|
|
ngx_feature="OpenSSL library"
|
|
|
|
ngx_feature_name="NGX_OPENSSL"
|
|
|
|
ngx_feature_run=no
|
|
|
|
ngx_feature_incs="#include <openssl/ssl.h>"
|
2006-11-27 19:07:09 +08:00
|
|
|
ngx_feature_path=
|
2005-12-05 21:18:09 +08:00
|
|
|
ngx_feature_libs="-lssl -lcrypto"
|
|
|
|
ngx_feature_test="SSL_library_init()"
|
|
|
|
. auto/feature
|
|
|
|
|
|
|
|
if [ $ngx_found = yes ]; then
|
|
|
|
have=NGX_SSL . auto/have
|
2009-05-22 17:22:28 +08:00
|
|
|
CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
|
2005-12-05 21:18:09 +08:00
|
|
|
OPENSSL=YES
|
2009-05-26 22:28:49 +08:00
|
|
|
else
|
|
|
|
|
|
|
|
cat << END
|
|
|
|
|
|
|
|
$0: error: SSL modules require the OpenSSL library.
|
|
|
|
You can either do not enable the modules, or install the OpenSSL library
|
|
|
|
into the system, or build the OpenSSL library statically from the source
|
|
|
|
with nginx by using --with-openssl=<path> option.
|
|
|
|
|
|
|
|
END
|
|
|
|
exit 1
|
2005-12-05 21:18:09 +08:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
2004-07-26 02:34:14 +08:00
|
|
|
|
|
|
|
fi
|