blob: 690a65e2054fdf244bf8e30c6e805409322dcb60 [file] [log] [blame]
Igor Sysoevdc867cd2003-12-14 20:10:27 +00001
Igor Sysoevff8da912004-09-29 16:00:49 +00002# Copyright (C) Igor Sysoev
3
4
Igor Sysoev31eb8c02005-09-23 11:02:22 +00005### STUB
6
7if [ $USE_THREADS != NO ]; then
8
9cat << END
10
11$0: error: the threads support is broken now.
12
13END
14 exit 1
15 fi
16
17###
18
19
Igor Sysoevdc867cd2003-12-14 20:10:27 +000020echo
21echo "Configuration summary"
22
Igor Sysoev090849d2004-05-18 20:28:54 +000023
Igor Sysoev723e6cc2004-10-25 15:29:23 +000024case $USE_THREADS in
25 rfork) echo " + using rfork()ed threads" ;;
26 pthreads) echo " + using libpthread threads library" ;;
27 libthr) echo " + using FreeBSD libthr threads library" ;;
28 libc_r) echo " + using FreeBSD libc_r threads library" ;;
29 linuxthreads) echo " + using FreeBSD LinuxThreads port library" ;;
30 NO) echo " + threads are not used" ;;
31 *) echo " + using lib$USE_THREADS threads library" ;;
32esac
33
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000034if [ $USE_PCRE = DISABLED ]; then
Igor Sysoevc1571722005-03-19 12:38:37 +000035 echo " + PCRE library is disabled"
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000036
37else
38 case $PCRE in
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000039 YES) echo " + using system PCRE library" ;;
40 NONE) echo " + PCRE library is not used" ;;
41 NO) echo " + PCRE library is not found" ;;
42 *) echo " + using PCRE library: $PCRE" ;;
Igor Sysoev0ee5d3c2004-02-20 16:48:59 +000043 esac
44fi
Igor Sysoeve89c4582003-12-19 08:15:11 +000045
Igor Sysoev0599b112004-07-25 18:34:14 +000046case $OPENSSL in
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000047 YES) echo " + using system OpenSSL library" ;;
48 NONE) echo " + OpenSSL library is not used" ;;
49 NO) echo " + OpenSSL library is not found" ;;
50 *) echo " + using OpenSSL library: $OPENSSL" ;;
Igor Sysoev0599b112004-07-25 18:34:14 +000051esac
52
Igor Sysoevb1dfe472004-12-21 12:30:30 +000053case $MD5 in
54 YES)
55 case $OPENSSL in
56 NONE|NO) echo " + md5: using system $MD5_LIB library" ;;
57 *) echo " + md5: using OpenSSL library" ;;
58 esac
59 ;;
60
61 NONE) echo " + md5 library is not used" ;;
62 NO) echo " + md5 library is not found" ;;
63 *) echo " + using md5 library: $MD5" ;;
64esac
65
Igor Sysoevdc867cd2003-12-14 20:10:27 +000066case $ZLIB in
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000067 YES) echo " + using system zlib library" ;;
68 NONE) echo " + zlib library is not used" ;;
69 NO) echo " + zlib library is not found" ;;
70 *) echo " + using zlib library: $ZLIB" ;;
Igor Sysoevdc867cd2003-12-14 20:10:27 +000071esac
72
73echo
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000074
75
76if [ $HTTP_REWRITE = YES ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +000077 if [ $USE_PCRE = DISABLED ]; then
78
79cat << END
80$0: error: the HTTP rewrite module requires the PCRE library.
81You can either disable the module by using --without-http_rewrite_module
82option or you have to enable the PCRE support.
83
84END
85 exit 1
86 fi
87
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000088 if [ $PCRE = NONE -o $PCRE = NO ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +000089
90cat << END
91$0: error: the HTTP rewrite module requires the PCRE library.
92You can either disable the module by using --without-http_rewrite_module
93option, or install the PCRE library into the system, or build the PCRE library
94statically from the source with nginx by using --with-pcre=<path> option.
95
96END
Igor Sysoev6bb889f2004-03-11 15:42:41 +000097
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000098 exit 1
99 fi
100fi
101
102
103if [ $HTTP_GZIP = YES ]; then
104 if [ $ZLIB = NONE -o $ZLIB = NO ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +0000105
106cat << END
107$0: error: the HTTP gzip module requires the zlib library.
108You can either disable the module by using --without-http_gzip_module
109option, or install the zlib library into the system, or build the zlib library
110statically from the source with nginx by using --with-zlib=<path> option.
111
112END
Igor Sysoev6bb889f2004-03-11 15:42:41 +0000113
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000114 exit 1
115 fi
116fi
Igor Sysoev090849d2004-05-18 20:28:54 +0000117
118
Igor Sysoev02025fd2005-01-18 13:03:58 +0000119if [ $HTTP_SSL = YES ]; then
120 if [ $OPENSSL = NONE -o $OPENSSL = NO ]; then
121
122cat << END
123$0: error: the HTTP SSL module requires the OpenSSL library.
124You can either do not enable the module, or install the OpenSSL library
125into the system, or build the OpenSSL library statically from the source
126with nginx by using --with-openssl=<path> option.
127
128END
129
130 exit 1
131 fi
132fi
133
134
135cat << END
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000136 nginx path prefix: "$NGX_PREFIX"
137 nginx binary file: "$NGX_SBIN_PATH"
138 nginx configuration file: "$NGX_CONF_PATH"
139 nginx pid file: "$NGX_PID_PATH"
Igor Sysoev02025fd2005-01-18 13:03:58 +0000140END
141
Igor Sysoevf6906042004-11-25 16:17:31 +0000142if test -n "$NGX_ERROR_LOG_PATH"; then
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000143 echo " nginx error log file: \"$NGX_ERROR_LOG_PATH\""
Igor Sysoevff8da912004-09-29 16:00:49 +0000144else
145 echo " nginx logs errors to stderr"
146fi
Igor Sysoev02025fd2005-01-18 13:03:58 +0000147
148cat << END
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000149 nginx http access log file: "$NGX_HTTP_LOG_PATH"
150 nginx http client request body temporary files: "$NGX_HTTP_CLIENT_TEMP_PATH"
151 nginx http proxy temporary files: "$NGX_HTTP_PROXY_TEMP_PATH"
152 nginx http fastcgi temporary files: "$NGX_HTTP_FASTCGI_TEMP_PATH"
Igor Sysoev02025fd2005-01-18 13:03:58 +0000153
154END