Mercurial > hg > nginx-quic
annotate auto/configure @ 4311:45272aab5eea
Unlock of shared memory zones on process crash.
If process exited abnormally while holding lock on some shared memory zone -
unlock it. It may be not safe thing to do (as crash with lock held may
result in corrupted shared memory structure, and other processes will
subsequently crash while trying to access shared data), therefore complain
loudly if unlock succeeds.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 23 Nov 2011 14:09:19 +0000 |
parents | b5c169873c6b |
children | d620f497c50f |
rev | line source |
---|---|
275
b836469c37c3
nginx-0.0.2-2004-03-02-18:40:59 import
Igor Sysoev <igor@sysoev.ru>
parents:
266
diff
changeset
|
1 #!/bin/sh |
192
31824be1fc66
nginx-0.0.1-2003-11-20-10:05:50 import; auto/configure
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
2 |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
3 # Copyright (C) Igor Sysoev |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
4 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
5 |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
194
diff
changeset
|
6 . auto/options |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
194
diff
changeset
|
7 . auto/init |
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
194
diff
changeset
|
8 . auto/sources |
194
2357fa41738a
nginx-0.0.1-2003-11-21-09:30:49 import
Igor Sysoev <igor@sysoev.ru>
parents:
193
diff
changeset
|
9 |
469 | 10 test -d $NGX_OBJS || mkdir $NGX_OBJS |
455 | 11 |
12 echo > $NGX_AUTO_HEADERS_H | |
467 | 13 echo > $NGX_AUTOCONF_ERR |
14 | |
945 | 15 echo "#define NGX_CONFIGURE \"$NGX_CONFIGURE\"" > $NGX_AUTO_CONFIG_H |
16 | |
248
e885208c518b
nginx-0.0.2-2004-02-03-00:19:52 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
17 |
469 | 18 if [ $NGX_DEBUG = YES ]; then |
285
8f48e6366d09
nginx-0.0.2-2004-03-11-18:42:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
275
diff
changeset
|
19 have=NGX_DEBUG . auto/have |
8f48e6366d09
nginx-0.0.2-2004-03-11-18:42:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
275
diff
changeset
|
20 fi |
8f48e6366d09
nginx-0.0.2-2004-03-11-18:42:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
275
diff
changeset
|
21 |
8f48e6366d09
nginx-0.0.2-2004-03-11-18:42:41 import
Igor Sysoev <igor@sysoev.ru>
parents:
275
diff
changeset
|
22 |
563 | 23 if test -z "$NGX_PLATFORM"; then |
24 echo "checking for OS" | |
25 | |
26 NGX_SYSTEM=`uname -s 2>/dev/null` | |
27 NGX_RELEASE=`uname -r 2>/dev/null` | |
28 NGX_MACHINE=`uname -m 2>/dev/null` | |
29 | |
30 echo " + $NGX_SYSTEM $NGX_RELEASE $NGX_MACHINE" | |
31 | |
32 NGX_PLATFORM="$NGX_SYSTEM:$NGX_RELEASE:$NGX_MACHINE"; | |
33 | |
2828
f5c80c69a72e
backout -r2827 and add correct fix
Igor Sysoev <igor@sysoev.ru>
parents:
2758
diff
changeset
|
34 case "$NGX_SYSTEM" in |
f5c80c69a72e
backout -r2827 and add correct fix
Igor Sysoev <igor@sysoev.ru>
parents:
2758
diff
changeset
|
35 MINGW32_*) |
f5c80c69a72e
backout -r2827 and add correct fix
Igor Sysoev <igor@sysoev.ru>
parents:
2758
diff
changeset
|
36 NGX_PLATFORM=win32 |
f5c80c69a72e
backout -r2827 and add correct fix
Igor Sysoev <igor@sysoev.ru>
parents:
2758
diff
changeset
|
37 ;; |
f5c80c69a72e
backout -r2827 and add correct fix
Igor Sysoev <igor@sysoev.ru>
parents:
2758
diff
changeset
|
38 esac |
f5c80c69a72e
backout -r2827 and add correct fix
Igor Sysoev <igor@sysoev.ru>
parents:
2758
diff
changeset
|
39 |
563 | 40 else |
41 echo "building for $NGX_PLATFORM" | |
946 | 42 NGX_SYSTEM=$NGX_PLATFORM |
563 | 43 fi |
44 | |
946 | 45 . auto/cc/conf |
563 | 46 |
469 | 47 if [ "$NGX_PLATFORM" != win32 ]; then |
253
b6793bc5034b
nginx-0.0.2-2004-02-09-10:46:43 import
Igor Sysoev <igor@sysoev.ru>
parents:
248
diff
changeset
|
48 . auto/headers |
b6793bc5034b
nginx-0.0.2-2004-02-09-10:46:43 import
Igor Sysoev <igor@sysoev.ru>
parents:
248
diff
changeset
|
49 fi |
b6793bc5034b
nginx-0.0.2-2004-02-09-10:46:43 import
Igor Sysoev <igor@sysoev.ru>
parents:
248
diff
changeset
|
50 |
561 | 51 . auto/os/conf |
248
e885208c518b
nginx-0.0.2-2004-02-03-00:19:52 import
Igor Sysoev <igor@sysoev.ru>
parents:
210
diff
changeset
|
52 |
469 | 53 if [ "$NGX_PLATFORM" != win32 ]; then |
3931
c8884c8f7c74
Support POSIX semaphores on Linux.
Igor Sysoev <igor@sysoev.ru>
parents:
3637
diff
changeset
|
54 . auto/unix |
266
5238e93961a1
nginx-0.0.2-2004-02-23-23:57:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
256
diff
changeset
|
55 fi |
5238e93961a1
nginx-0.0.2-2004-02-23-23:57:12 import
Igor Sysoev <igor@sysoev.ru>
parents:
256
diff
changeset
|
56 |
457 | 57 . auto/modules |
58 . auto/lib/conf | |
59 | |
2758 | 60 case ".$NGX_PREFIX" in |
61 .) | |
62 NGX_PREFIX=${NGX_PREFIX:-/usr/local/nginx} | |
63 have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define | |
64 ;; | |
194
2357fa41738a
nginx-0.0.1-2003-11-21-09:30:49 import
Igor Sysoev <igor@sysoev.ru>
parents:
193
diff
changeset
|
65 |
2758 | 66 .!) |
67 NGX_PREFIX= | |
68 ;; | |
69 | |
70 *) | |
71 have=NGX_PREFIX value="\"$NGX_PREFIX/\"" . auto/define | |
72 ;; | |
73 esac | |
74 | |
75 if [ ".$NGX_CONF_PREFIX" != "." ]; then | |
76 have=NGX_CONF_PREFIX value="\"$NGX_CONF_PREFIX/\"" . auto/define | |
195
8dee38ea9117
nginx-0.0.1-2003-11-25-23:44:56 import
Igor Sysoev <igor@sysoev.ru>
parents:
194
diff
changeset
|
77 fi |
210
00cafae0bdf1
nginx-0.0.1-2003-12-14-23:10:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
78 |
469 | 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 | |
611 | 82 have=NGX_LOCK_PATH value="\"$NGX_LOCK_PATH\"" . auto/define |
2743
d8316f307b6a
issue start up errors and warning on both stderr and error_log
Igor Sysoev <igor@sysoev.ru>
parents:
1352
diff
changeset
|
83 have=NGX_ERROR_LOG_PATH value="\"$NGX_ERROR_LOG_PATH\"" . auto/define |
479 | 84 |
469 | 85 have=NGX_HTTP_LOG_PATH value="\"$NGX_HTTP_LOG_PATH\"" . auto/define |
479 | 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 | |
3549
0b3613117ac5
./configure --http-uwsgi-temp-path=PATH
Igor Sysoev <igor@sysoev.ru>
parents:
2828
diff
changeset
|
92 have=NGX_HTTP_UWSGI_TEMP_PATH value="\"$NGX_HTTP_UWSGI_TEMP_PATH\"" |
0b3613117ac5
./configure --http-uwsgi-temp-path=PATH
Igor Sysoev <igor@sysoev.ru>
parents:
2828
diff
changeset
|
93 . auto/define |
3637 | 94 have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\"" |
95 . auto/define | |
337
4feff829a849
nginx-0.0.3-2004-05-19-00:28:54 import
Igor Sysoev <igor@sysoev.ru>
parents:
303
diff
changeset
|
96 |
2758 | 97 . auto/make |
98 . auto/lib/make | |
99 . auto/install | |
100 | |
101 # STUB | |
102 . auto/stubs | |
103 | |
455 | 104 have=NGX_USER value="\"$NGX_USER\"" . auto/define |
105 have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define | |
106 | |
210
00cafae0bdf1
nginx-0.0.1-2003-12-14-23:10:27 import
Igor Sysoev <igor@sysoev.ru>
parents:
195
diff
changeset
|
107 . auto/summary |