Mercurial > hg > nginx
annotate auto/lib/sha1/conf @ 2665:4d627567c324
fix r2664: ..._cache_valid did not work for stale responses
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 03 Apr 2009 15:47:45 +0000 |
parents | bd6cc5370fc1 |
children | 9c057d5e1c27 |
rev | line source |
---|---|
653 | 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 | |
2010
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
38 |
653 | 39 SHA1=NO |
40 | |
41 # FreeBSD | |
42 | |
43 ngx_feature="sha1 in system md library" | |
44 ngx_feature_name= | |
45 ngx_feature_run=no | |
46 ngx_feature_incs="#include <sha.h>" | |
875
7af8276b1c2f
test PCRE in FreeBSD, Linux, and NetBSD
Igor Sysoev <igor@sysoev.ru>
parents:
653
diff
changeset
|
47 ngx_feature_path= |
653 | 48 ngx_feature_libs="-lmd" |
49 ngx_feature_test="SHA_CTX sha1; SHA1_Init(&sha1)" | |
50 . auto/feature | |
51 | |
2010
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
52 ngx_sha1_lib="system md" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
53 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
54 if [ $ngx_found = no ]; then |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
55 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
56 # OpenSSL crypto library |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
57 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
58 ngx_feature="OpenSSL sha1 crypto library" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
59 ngx_feature_incs="#include <openssl/sha.h>" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
60 ngx_feature_libs="-lcrypto" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
61 . auto/feature |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
62 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
63 ngx_sha1_lib="system crypto" |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
64 |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
65 if [ $ngx_found = yes ]; then |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
66 have=NGX_HAVE_OPENSSL_SHA1_H . auto/have |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
67 fi |
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
68 fi |
653 | 69 |
70 if [ $ngx_found = yes ]; then | |
71 CORE_LIBS="$CORE_LIBS $ngx_feature_libs" | |
72 SHA1=YES | |
2010
bd6cc5370fc1
simplify library autoconfigure
Igor Sysoev <igor@sysoev.ru>
parents:
875
diff
changeset
|
73 SHA1_LIB=$ngx_sha1_lib |
653 | 74 fi |
75 fi | |
76 | |
77 fi |