annotate auto/lib/libatomic/conf @ 554:5c576ea5dbd9 NGINX_0_8_29

nginx 0.8.29 *) Change: now the "009" status code is written to an access log for proxied HTTP/0.9 responses. *) Feature: the "addition_types", "charset_types", "gzip_types", "ssi_types", "sub_filter_types", and "xslt_types" directives support an "*" parameter. *) Feature: GCC 4.1+ built-in atomic operations usage. Thanks to W-Mark Kubacki. *) Feature: the --with-libatomic[=DIR] option in the configure. Thanks to W-Mark Kubacki. *) Bugfix: listen unix domain socket had limited access rights. *) Bugfix: cached HTTP/0.9 responses were handled incorrectly. *) Bugfix: regular expression named captures given by "?P<...>" did not work in a "server_name" directive. Thanks to Maxim Dounin.
author Igor Sysoev <http://sysoev.ru>
date Mon, 30 Nov 2009 00:00:00 +0300
parents
children 25255878df91
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
554
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
1
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
2 # Copyright (C) Igor Sysoev
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
3
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
4
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
5 if [ $NGX_LIBATOMIC != YES ]; then
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
6
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
7 have=NGX_HAVE_LIBATOMIC . auto/have
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
8 CORE_INCS="$CORE_INCS $NGX_LIBATOMIC/src"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
9 LINK_DEPS="$LINK_DEPS $NGX_LIBATOMIC/src/libatomic_ops.a"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
10 CORE_LIBS="$CORE_LIBS $NGX_LIBATOMIC/src/libatomic_ops.a"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
11
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
12 else
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
13
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
14 ngx_feature="atomic_ops library"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
15 ngx_feature_name=NGX_HAVE_LIBATOMIC
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
16 ngx_feature_run=yes
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
17 ngx_feature_incs="#include <atomic_ops.h>"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
18 ngx_feature_path=
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
19 ngx_feature_libs="-latomic_ops"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
20 ngx_feature_test="long n = 0;
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
21 if (!AO_compare_and_swap(&n, 0, 1))
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
22 return 1;
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
23 if (AO_fetch_and_add(&n, 1) != 1)
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
24 return 1;
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
25 if (n != 2)
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
26 return 1;
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
27 AO_nop();"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
28 . auto/feature
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
29
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
30 if [ $ngx_found = yes ]; then
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
31 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
32 else
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
33
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
34 cat << END
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
35
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
36 $0: error: libatomic_ops library was not found.
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
37
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
38 END
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
39 exit 1
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
40 fi
5c576ea5dbd9 nginx 0.8.29
Igor Sysoev <http://sysoev.ru>
parents:
diff changeset
41 fi