Mercurial > hg > nginx
annotate auto/lib/openssl/conf @ 3545:11c4f3a1e439
use ngx_str_set() and ngx_str_null()
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Jun 2010 16:12:00 +0000 |
parents | 92378c49456d |
children | 312c2f9b53ac |
rev | line source |
---|---|
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
399
diff
changeset
|
1 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
399
diff
changeset
|
2 # Copyright (C) Igor Sysoev |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
399
diff
changeset
|
3 |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
4 |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
5 if [ $OPENSSL != NONE ]; then |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
6 |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
7 case "$CC" in |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
8 |
2846
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
9 cl | bcc32) |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
10 have=NGX_OPENSSL . auto/have |
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
11 have=NGX_SSL . auto/have |
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
12 |
2846
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
13 CFLAGS="$CFLAGS -DNO_SYS_TYPES_H" |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
14 |
2846
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
15 CORE_INCS="$CORE_INCS $OPENSSL/openssl/include" |
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
16 CORE_DEPS="$CORE_DEPS $OPENSSL/openssl/include/openssl/ssl.h" |
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
17 CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/ssleay32.lib" |
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
18 CORE_LIBS="$CORE_LIBS $OPENSSL/openssl/lib/libeay32.lib" |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
19 |
2731
06d53ecd70c8
*) move advapi32.lib to core libs since it's required for Registry and Event Log
Igor Sysoev <igor@sysoev.ru>
parents:
2712
diff
changeset
|
20 # libeay32.lib requires gdi32.lib |
06d53ecd70c8
*) move advapi32.lib to core libs since it's required for Registry and Event Log
Igor Sysoev <igor@sysoev.ru>
parents:
2712
diff
changeset
|
21 CORE_LIBS="$CORE_LIBS gdi32.lib" |
3488
92378c49456d
MSVC8 compatibility with OpenSSL 1.0.0
Igor Sysoev <igor@sysoev.ru>
parents:
3168
diff
changeset
|
22 # OpenSSL 1.0.0 requires crypt32.lib |
92378c49456d
MSVC8 compatibility with OpenSSL 1.0.0
Igor Sysoev <igor@sysoev.ru>
parents:
3168
diff
changeset
|
23 CORE_LIBS="$CORE_LIBS crypt32.lib" |
2712
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
24 ;; |
41f993457021
OpenSSL building by MSVC and BCC from sources
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
25 |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
26 *) |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
27 have=NGX_OPENSSL . auto/have |
577 | 28 have=NGX_SSL . auto/have |
2846
dfec0e090265
fix building OpenSSL on Win32
Igor Sysoev <igor@sysoev.ru>
parents:
2817
diff
changeset
|
29 |
3168
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
30 CORE_INCS="$CORE_INCS $OPENSSL/.openssl/include" |
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
31 CORE_DEPS="$CORE_DEPS $OPENSSL/.openssl/include/openssl/ssl.h" |
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
32 CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libssl.a" |
83c940b0d18a
allow "make clean" for OpenSSL, the bug was introduced in r2874
Igor Sysoev <igor@sysoev.ru>
parents:
2893
diff
changeset
|
33 CORE_LIBS="$CORE_LIBS $OPENSSL/.openssl/lib/libcrypto.a" |
2817
38e59bcc35f2
test whether libdl is required for dynamic linking:
Igor Sysoev <igor@sysoev.ru>
parents:
2731
diff
changeset
|
34 CORE_LIBS="$CORE_LIBS $NGX_LIBDL" |
479 | 35 ;; |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
36 esac |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
37 |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
38 else |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
39 |
583 | 40 case "$NGX_PLATFORM" in |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
41 |
583 | 42 win32) |
43 have=NGX_OPENSSL . auto/have | |
577 | 44 have=NGX_SSL . auto/have |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
45 OPENSSL=YES |
561 | 46 |
583 | 47 CORE_INCS="$CORE_INCS c:/openssl/include" |
48 CORE_LIBS="$CORE_LIBS c:/openssl/ssleay32.lib" | |
49 CORE_LIBS="$CORE_LIBS c:/openssl/libeay32.lib" | |
50 | |
2731
06d53ecd70c8
*) move advapi32.lib to core libs since it's required for Registry and Event Log
Igor Sysoev <igor@sysoev.ru>
parents:
2712
diff
changeset
|
51 # libeay32.lib requires gdi32.lib |
06d53ecd70c8
*) move advapi32.lib to core libs since it's required for Registry and Event Log
Igor Sysoev <igor@sysoev.ru>
parents:
2712
diff
changeset
|
52 CORE_LIBS="$CORE_LIBS gdi32.lib" |
583 | 53 ;; |
54 | |
55 *) | |
56 OPENSSL=NO | |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
57 |
583 | 58 ngx_feature="OpenSSL library" |
59 ngx_feature_name="NGX_OPENSSL" | |
60 ngx_feature_run=no | |
61 ngx_feature_incs="#include <openssl/ssl.h>" | |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
583
diff
changeset
|
62 ngx_feature_path= |
583 | 63 ngx_feature_libs="-lssl -lcrypto" |
64 ngx_feature_test="SSL_library_init()" | |
65 . auto/feature | |
66 | |
67 if [ $ngx_found = yes ]; then | |
68 have=NGX_SSL . auto/have | |
2876
658725e3eef4
use -ldl for any OS that needs it
Igor Sysoev <igor@sysoev.ru>
parents:
2873
diff
changeset
|
69 CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL" |
583 | 70 OPENSSL=YES |
2893
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
71 else |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
72 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
73 cat << END |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
74 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
75 $0: error: SSL modules require the OpenSSL library. |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
76 You can either do not enable the modules, or install the OpenSSL library |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
77 into the system, or build the OpenSSL library statically from the source |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
78 with nginx by using --with-openssl=<path> option. |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
79 |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
80 END |
da1ba8a5c8c9
stop ./configure at once on library failure
Igor Sysoev <igor@sysoev.ru>
parents:
2876
diff
changeset
|
81 exit 1 |
583 | 82 fi |
83 ;; | |
84 | |
85 esac | |
399
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
86 |
4e21d1291a14
nginx-0.0.7-2004-07-25-22:34:14 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
87 fi |