comparison auto/lib/md5/conf @ 320:d621239c30f7

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