upstream nginx-0.7.31
[nginx.git] / nginx / auto / summary
1
2 # Copyright (C) Igor Sysoev
3
4
5 ### STUB
6
7 if [ $USE_THREADS != NO ]; then
8
9 cat << END
10
11 $0: error: the threads support is broken now.
12
13 END
14         exit 1
15     fi
16
17 ###
18
19
20 echo
21 echo "Configuration summary"
22
23
24 #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
33
34 if [ $USE_PCRE = DISABLED ]; then
35     echo "  + PCRE library is disabled"
36
37 else
38     case $PCRE in
39         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" ;;
43     esac
44 fi
45
46 case $OPENSSL in
47     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" ;;
51 esac
52
53 case $MD5 in
54     YES)   echo "  + md5: using $MD5_LIB library" ;;
55     NONE)  echo "  + md5 library is not used" ;;
56     NO)    echo "  + md5 library is not found" ;;
57     *)     echo "  + using md5 library: $MD5" ;;
58 esac
59
60 case $SHA1 in
61     YES)   echo "  + sha1: using $SHA1_LIB library" ;;
62     NONE)  echo "  + sha1 library is not used" ;;
63     NO)    echo "  + sha1 library is not found" ;;
64     *)     echo "  + using sha1 library: $SHA1" ;;
65 esac
66
67 case $ZLIB in
68     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" ;;
72 esac
73
74 echo
75
76
77 if [ $HTTP_REWRITE = YES ]; then
78     if [ $USE_PCRE = DISABLED ]; then
79
80 cat << END
81 $0: error: the HTTP rewrite module requires the PCRE library.
82 You can either disable the module by using --without-http_rewrite_module
83 option or you have to enable the PCRE support.
84
85 END
86         exit 1
87     fi
88
89     if [ $PCRE = NONE -o $PCRE = NO ]; then
90
91 cat << END
92 $0: error: the HTTP rewrite module requires the PCRE library.
93 You can either disable the module by using --without-http_rewrite_module
94 option, or install the PCRE library into the system, or build the PCRE library
95 statically from the source with nginx by using --with-pcre=<path> option.
96
97 END
98
99         exit 1
100     fi
101 fi
102
103
104 if [ $HTTP_GZIP = YES ]; then
105     if [ $ZLIB = NONE -o $ZLIB = NO ]; then
106
107 cat << END
108 $0: error: the HTTP gzip module requires the zlib library.
109 You can either disable the module by using --without-http_gzip_module
110 option, or install the zlib library into the system, or build the zlib library
111 statically from the source with nginx by using --with-zlib=<path> option.
112
113 END
114
115         exit 1
116     fi
117 fi
118
119
120 if [ $HTTP_SSL = YES ]; then
121     if [ $OPENSSL = NONE -o $OPENSSL = NO ]; then
122
123 cat << END
124 $0: error: the HTTP SSL module requires the OpenSSL library.
125 You can either do not enable the module, or install the OpenSSL library
126 into the system, or build the OpenSSL library statically from the source
127 with nginx by using --with-openssl=<path> option.
128
129 END
130
131         exit 1
132     fi
133 fi
134
135
136 cat << END
137   nginx path prefix: "$NGX_PREFIX"
138   nginx binary file: "$NGX_SBIN_PATH"
139   nginx configuration prefix: "$NGX_CONF_PREFIX"
140   nginx configuration file: "$NGX_CONF_PATH"
141   nginx pid file: "$NGX_PID_PATH"
142 END
143
144 if test -n "$NGX_ERROR_LOG_PATH"; then
145     echo "  nginx error log file: \"$NGX_ERROR_LOG_PATH\""
146 else
147     echo "  nginx logs errors to stderr"
148 fi
149
150 cat << END
151   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"
155
156 END