Mercurial > hg > nginx-quic
comparison auto/lib/md5/conf @ 307:ce375c313e96
nginx-0.0.3-2004-04-08-19:58:25 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 08 Apr 2004 15:58:25 +0000 |
parents | 6b91bfbc4123 |
children | d621239c30f7 |
comparison
equal
deleted
inserted
replaced
306:6b91bfbc4123 | 307:ce375c313e96 |
---|---|
38 | 38 |
39 esac | 39 esac |
40 | 40 |
41 else | 41 else |
42 | 42 |
43 ngx_lib_inc="#include <sys/types.h> | 43 if [ $PLATFORM != win32 ]; then |
44 MD5=NO | |
45 | |
46 # Solaris 8/9 | |
47 | |
48 ngx_lib_inc="#include <sys/types.h> | |
44 #include <md5.h>" | 49 #include <md5.h>" |
45 | 50 ngx_lib="rsaref md5 library" |
46 MD5=NO | 51 ngx_lib_test="MD5_CTX md5; MD5Init(&md5)" |
47 | 52 ngx_libs=-lmd5 |
48 # Solaris 8/9 | 53 . auto/lib/test |
49 | |
50 ngx_lib="rsaref md5" | |
51 ngx_lib_test="MD5_CTX md5; MD5Init(&md5)" | |
52 ngx_libs=-lmd5 | |
53 . auto/lib/test | |
54 | 54 |
55 | 55 |
56 if [ $ngx_found = yes ]; then | 56 if [ $ngx_found = yes ]; then |
57 CORE_LIBS="$CORE_LIBS $ngx_libs" | 57 CORE_LIBS="$CORE_LIBS $ngx_libs" |
58 MD5=YES | 58 MD5=YES |
59 MD5_LIB=md5 | 59 MD5_LIB=md5 |
60 ngx_found=no | 60 ngx_found=no |
61 | 61 |
62 else | 62 else |
63 # FreeBSD | 63 # FreeBSD |
64 | 64 |
65 ngx_lib="rsaref md" | 65 ngx_lib="rsaref md library" |
66 ngx_lib_test="MD5_CTX md5; MD5Init(&md5)" | 66 ngx_lib_test="MD5_CTX md5; MD5Init(&md5)" |
67 ngx_libs=-lmd | 67 ngx_libs=-lmd |
68 . auto/lib/test | 68 . auto/lib/test |
69 fi | |
70 | |
71 | |
72 if [ $ngx_found = yes ]; then | |
73 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
74 MD5=YES | |
75 MD5_LIB=md | |
76 ngx_found=no | |
77 | |
78 else | |
79 # OpenSSL crypto library | |
80 | |
81 ngx_inc="#include <openssl/md5.h>" | |
82 ngx_lib="OpenSSL md5 crypto library" | |
83 ngx_lib_test="MD5_CTX md5; MD5_Init(&md5)" | |
84 ngx_libs=-lcrypto | |
85 . auto/lib/test | |
86 fi | |
87 | |
88 | |
89 if [ $ngx_found = yes ]; then | |
90 have=HAVE_OPENSSL_MD5 . auto/have | |
91 have=HAVE_OPENSSL_MD5_H . auto/have | |
92 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
93 MD5=YES | |
94 MD5_LIB=crypto | |
95 fi | |
69 fi | 96 fi |
70 | 97 |
71 | |
72 if [ $ngx_found = yes ]; then | |
73 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
74 MD5=YES | |
75 MD5_LIB=md | |
76 ngx_found=no | |
77 | |
78 else | |
79 # OpenSSL crypto library | |
80 | |
81 ngx_inc="#include <openssl/md5.h>" | |
82 ngx_lib="OpenSSL md5 crypto" | |
83 ngx_lib_test="MD5_CTX md5; MD5_Init(&md5)" | |
84 ngx_libs=-lcrypto | |
85 . auto/lib/test | |
86 fi | |
87 | |
88 | |
89 if [ $ngx_found = yes ]; then | |
90 have=HAVE_OPENSSL_MD5 . auto/have | |
91 have=HAVE_OPENSSL_MD5_H . auto/have | |
92 CORE_LIBS="$CORE_LIBS $ngx_libs" | |
93 MD5=YES | |
94 MD5_LIB=crypto | |
95 fi | |
96 fi | 98 fi |