nginx 1.1.11
[nginx.git] / configure
blob6be54f7b2a5f4616395c305cb4a414dbacac0c94
1 #!/bin/sh
3 # Copyright (C) Igor Sysoev
6 . auto/options
7 . auto/init
8 . auto/sources
10 test -d $NGX_OBJS || mkdir $NGX_OBJS
12 echo > $NGX_AUTO_HEADERS_H
13 echo > $NGX_AUTOCONF_ERR
15 echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H
18 if [ $NGX_DEBUG = YES ]; then
19 have=NGX_DEBUG . auto/have
23 if test -z "$NGX_PLATFORM"; then
24 echo "checking for OS"
26 NGX_SYSTEM=`uname -s 2>/dev/null`
27 NGX_RELEASE=`uname -r 2>/dev/null`
28 NGX_MACHINE=`uname -m 2>/dev/null`
30 echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE"
32 NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE";
34 case "$NGX_SYSTEM" in
35 MINGW32_*)
36 NGX_PLATFORM=win32
38 esac
40 else
41 echo "building for $NGX_PLATFORM"
42 NGX_SYSTEM=$NGX_PLATFORM
45 . auto/cc/conf
47 if [ "$NGX_PLATFORM" != win32 ]; then
48 . auto/headers
51 . auto/os/conf
53 if [ "$NGX_PLATFORM" != win32 ]; then
54 . auto/unix
57 . auto/modules
58 . auto/lib/conf
60 case ".$NGX_PREFIX" in
62 NGX_PREFIX=${NGX_PREFIX:-/usr/local/nginx}
63 have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
66 .!)
67 NGX_PREFIX=
71 have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define
73 esac
75 if [ ".$NGX_CONF_PREFIX" != "." ]; then
76 have=NGX_CONF_PREFIX value="\"$NGX_CONF_PREFIX/\"" . auto/define
79 have=NGX_SBIN_PATH value="\"$NGX_SBIN_PATH\"" . auto/define
80 have=NGX_CONF_PATH value="\"$NGX_CONF_PATH\"" . auto/define
81 have=NGX_PID_PATH value="\"$NGX_PID_PATH\"" . auto/define
82 have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define
83 have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define
85 have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define
86 have=NGX_HTTP_CLIENT_TEMP_PATH value="\"$NGX_HTTP_CLIENT_TEMP_PATH\""
87 . auto/define
88 have=NGX_HTTP_PROXY_TEMP_PATH value="\"$NGX_HTTP_PROXY_TEMP_PATH\""
89 . auto/define
90 have=NGX_HTTP_FASTCGI_TEMP_PATH value="\"$NGX_HTTP_FASTCGI_TEMP_PATH\""
91 . auto/define
92 have=NGX_HTTP_UWSGI_TEMP_PATH value="\"$NGX_HTTP_UWSGI_TEMP_PATH\""
93 . auto/define
94 have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\""
95 . auto/define
97 . auto/make
98 . auto/lib/make
99 . auto/install
101 # STUB
102 . auto/stubs
104 have=NGX_USER value="\"$NGX_USER\"" . auto/define
105 have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
107 . auto/summary