comparison auto/lib/openssl/conf @ 3683:312c2f9b53ac

do not use prebuild OpenSSL Win32 libraries
author Igor Sysoev <igor@sysoev.ru>
date Thu, 08 Jul 2010 15:51:47 +0000
parents 92378c49456d
children 4d47a0658e7d
comparison
equal deleted inserted replaced
3682:e76fbd1a49f3 3683:312c2f9b53ac
35 ;; 35 ;;
36 esac 36 esac
37 37
38 else 38 else
39 39
40 case "$NGX_PLATFORM" in 40 if [ "$NGX_PLATFORM" != win32 ]; then
41 41
42 win32) 42 OPENSSL=NO
43 have=NGX_OPENSSL . auto/have 43
44 ngx_feature="OpenSSL library"
45 ngx_feature_name="NGX_OPENSSL"
46 ngx_feature_run=no
47 ngx_feature_incs="#include <openssl/ssl.h>"
48 ngx_feature_path=
49 ngx_feature_libs="-lssl -lcrypto"
50 ngx_feature_test="SSL_library_init()"
51 . auto/feature
52
53 if [ $ngx_found = yes ]; then
44 have=NGX_SSL . auto/have 54 have=NGX_SSL . auto/have
55 CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
45 OPENSSL=YES 56 OPENSSL=YES
46 57 else
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
51 # libeay32.lib requires gdi32.lib
52 CORE_LIBS="$CORE_LIBS gdi32.lib"
53 ;;
54
55 *)
56 OPENSSL=NO
57
58 ngx_feature="OpenSSL library"
59 ngx_feature_name="NGX_OPENSSL"
60 ngx_feature_run=no
61 ngx_feature_incs="#include <openssl/ssl.h>"
62 ngx_feature_path=
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
69 CORE_LIBS="$CORE_LIBS $ngx_feature_libs $NGX_LIBDL"
70 OPENSSL=YES
71 else
72 58
73 cat << END 59 cat << END
74 60
75 $0: error: SSL modules require the OpenSSL library. 61 $0: error: SSL modules require the OpenSSL library.
76 You can either do not enable the modules, or install the OpenSSL library 62 You can either do not enable the modules, or install the OpenSSL library
77 into the system, or build the OpenSSL library statically from the source 63 into the system, or build the OpenSSL library statically from the source
78 with nginx by using --with-openssl=<path> option. 64 with nginx by using --with-openssl=<path> option.
79 65
80 END 66 END
81 exit 1 67 exit 1
82 fi 68 fi
83 ;; 69 fi
84
85 esac
86 70
87 fi 71 fi