blob: bcb8bcd12c3da87fc2466b90d046d0e668385682 [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 Sysoev84433602008-04-29 09:27:55 +000024#case $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" ;;
32#esac
Igor Sysoev723e6cc2004-10-25 15:29:23 +000033
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
Igor Sysoev76566f82008-05-16 14:32:58 +000054 YES) echo " + md5: using $MD5_LIB library" ;;
Igor Sysoevb1dfe472004-12-21 12:30:30 +000055 NONE) echo " + md5 library is not used" ;;
56 NO) echo " + md5 library is not found" ;;
57 *) echo " + using md5 library: $MD5" ;;
58esac
59
Igor Sysoevafd7ec52006-05-29 17:28:12 +000060case $SHA1 in
Igor Sysoev76566f82008-05-16 14:32:58 +000061 YES) echo " + sha1: using $SHA1_LIB library" ;;
Igor Sysoevafd7ec52006-05-29 17:28:12 +000062 NONE) echo " + sha1 library is not used" ;;
63 NO) echo " + sha1 library is not found" ;;
64 *) echo " + using sha1 library: $SHA1" ;;
65esac
66
Igor Sysoevdc867cd2003-12-14 20:10:27 +000067case $ZLIB in
Igor Sysoeve2ff3ea2004-09-14 15:55:24 +000068 YES) echo " + using system zlib library" ;;
69 NONE) echo " + zlib library is not used" ;;
70 NO) echo " + zlib library is not found" ;;
71 *) echo " + using zlib library: $ZLIB" ;;
Igor Sysoevdc867cd2003-12-14 20:10:27 +000072esac
73
74echo
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000075
76
77if [ $HTTP_REWRITE = YES ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +000078 if [ $USE_PCRE = DISABLED ]; then
79
80cat << END
81$0: error: the HTTP rewrite module requires the PCRE library.
82You can either disable the module by using --without-http_rewrite_module
83option or you have to enable the PCRE support.
84
85END
86 exit 1
87 fi
88
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000089 if [ $PCRE = NONE -o $PCRE = NO ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +000090
91cat << END
92$0: error: the HTTP rewrite module requires the PCRE library.
93You can either disable the module by using --without-http_rewrite_module
94option, or install the PCRE library into the system, or build the PCRE library
95statically from the source with nginx by using --with-pcre=<path> option.
96
97END
Igor Sysoev6bb889f2004-03-11 15:42:41 +000098
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000099 exit 1
100 fi
101fi
102
103
104if [ $HTTP_GZIP = YES ]; then
105 if [ $ZLIB = NONE -o $ZLIB = NO ]; then
Igor Sysoev0bc87e92004-09-30 15:30:54 +0000106
107cat << END
108$0: error: the HTTP gzip module requires the zlib library.
109You can either disable the module by using --without-http_gzip_module
110option, or install the zlib library into the system, or build the zlib library
111statically from the source with nginx by using --with-zlib=<path> option.
112
113END
Igor Sysoev6bb889f2004-03-11 15:42:41 +0000114
Igor Sysoeve9b2cb12004-02-09 20:47:18 +0000115 exit 1
116 fi
117fi
Igor Sysoev090849d2004-05-18 20:28:54 +0000118
119
Igor Sysoev02025fd2005-01-18 13:03:58 +0000120if [ $HTTP_SSL = YES ]; then
121 if [ $OPENSSL = NONE -o $OPENSSL = NO ]; then
122
123cat << END
124$0: error: the HTTP SSL module requires the OpenSSL library.
125You can either do not enable the module, or install the OpenSSL library
126into the system, or build the OpenSSL library statically from the source
127with nginx by using --with-openssl=<path> option.
128
129END
130
131 exit 1
132 fi
133fi
134
135
136cat << END
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000137 nginx path prefix: "$NGX_PREFIX"
138 nginx binary file: "$NGX_SBIN_PATH"
Igor Sysoeva1df4162007-07-29 18:05:45 +0000139 nginx configuration prefix: "$NGX_CONF_PREFIX"
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000140 nginx configuration file: "$NGX_CONF_PATH"
141 nginx pid file: "$NGX_PID_PATH"
Igor Sysoev02025fd2005-01-18 13:03:58 +0000142END
143
Igor Sysoevf6906042004-11-25 16:17:31 +0000144if test -n "$NGX_ERROR_LOG_PATH"; then
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000145 echo " nginx error log file: \"$NGX_ERROR_LOG_PATH\""
Igor Sysoevff8da912004-09-29 16:00:49 +0000146else
147 echo " nginx logs errors to stderr"
148fi
Igor Sysoev02025fd2005-01-18 13:03:58 +0000149
150cat << END
Igor Sysoevd039a2e2005-02-22 14:40:13 +0000151 nginx http access log file: "$NGX_HTTP_LOG_PATH"
152 nginx http client request body temporary files: "$NGX_HTTP_CLIENT_TEMP_PATH"
153 nginx http proxy temporary files: "$NGX_HTTP_PROXY_TEMP_PATH"
154 nginx http fastcgi temporary files: "$NGX_HTTP_FASTCGI_TEMP_PATH"
Igor Sysoev02025fd2005-01-18 13:03:58 +0000155
156END