comparison auto/lib/sha1/conf @ 202:ca5f86d94316 NGINX_0_3_48

nginx 0.3.48 *) Change: now the ngx_http_charset_module works for subrequests, if the response has no "Content-Type" header line. *) Bugfix: if the "proxy_pass" directive has no URI part, then the "proxy_redirect default" directive add the unnecessary slash in start of the rewritten redirect. *) Bugfix: the internal redirect always transform client's HTTP method to GET, now the transformation is made for the "X-Accel-Redirect" redirects only and if the method is not HEAD; bug appeared in 0.3.42. *) Bugfix: the ngx_http_perl_module could not be built, if the perl was built with the threads support; bug appeared in 0.3.46.
author Igor Sysoev <http://sysoev.ru>
date Mon, 29 May 2006 00:00:00 +0400
parents
children 6ae1357b7b7c
comparison
equal deleted inserted replaced
201:958c1992c173 202:ca5f86d94316
1
2 # Copyright (C) Igor Sysoev
3
4
5 if [ $SHA1 != NONE ]; then
6
7 CORE_INCS="$CORE_INCS $SHA1"
8
9 case "$NGX_CC_NAME" in
10
11 msvc* | owc* | bcc)
12 LINK_DEPS="$LINK_DEPS $SHA1/sha1.lib"
13 CORE_LIBS="$CORE_LIBS $SHA1/sha1.lib"
14 ;;
15
16 icc*)
17 LINK_DEPS="$LINK_DEPS $SHA1/libsha.a"
18
19 # to allow -ipo optimization we link with the *.o but not library
20 CORE_LIBS="$CORE_LIBS $SHA1/sha1_dgst.o"
21
22 if [ $SHA1_ASM = YES ]; then
23 CORE_LIBS="$CORE_LIBS $SHA1/asm/sx86-elf.o"
24 fi
25 ;;
26
27 *)
28 LINK_DEPS="$LINK_DEPS $SHA1/libsha.a"
29 CORE_LIBS="$CORE_LIBS $SHA1/libsha.a"
30 #CORE_LIBS="$CORE_LIBS -L $SHA1 -lsha"
31 ;;
32
33 esac
34
35 else
36
37 if [ "$NGX_PLATFORM" != win32 ]; then
38 SHA1=NO
39
40 # FreeBSD
41
42 ngx_feature="sha1 in system md library"
43 ngx_feature_name=
44 ngx_feature_run=no
45 ngx_feature_incs="#include <sha.h>"
46 ngx_feature_libs="-lmd"
47 ngx_feature_test="SHA_CTX sha1; SHA1_Init(&sha1)"
48 . auto/feature
49
50
51 if [ $ngx_found = yes ]; then
52 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
53 SHA1=YES
54 SHA1_LIB=md
55 ngx_found=no
56
57 else
58 if [ $SHA1 = NO ]; then
59
60 # OpenSSL crypto library
61
62 ngx_feature="OpenSSL sha1 crypto library"
63 ngx_feature_name=
64 ngx_feature_run=no
65 ngx_feature_incs="#include <openssl/sha.h>"
66 ngx_feature_libs="-lcrypto"
67 ngx_feature_test="SHA_CTX sha1; SHA1_Init(&sha1)"
68 . auto/feature
69 fi
70 fi
71
72
73 if [ $ngx_found = yes ]; then
74 have=NGX_HAVE_OPENSSL_SHA1_H . auto/have
75 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
76 SHA1=YES
77 SHA1_LIB=crypto
78 fi
79 fi
80
81 fi