Mercurial > hg > nginx-vendor-0-8
annotate auto/endianess @ 526:0161f3197817 NGINX_0_8_15
nginx 0.8.15
*) Security: a segmentation fault might occur in worker process while
specially crafted request handling.
Thanks to Chris Ries.
*) Bugfix: if names .domain.tld, .sub.domain.tld, and .domain-some.tld
were defined, then the name .sub.domain.tld was matched by
.domain.tld.
*) Bugfix: in transparency support in the ngx_http_image_filter_module.
*) Bugfix: in file AIO.
*) Bugfix: in X-Accel-Redirect usage; the bug had appeared in 0.8.11.
*) Bugfix: in embedded perl module; the bug had appeared in 0.8.11.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 14 Sep 2009 00:00:00 +0400 |
parents | c982febb7588 |
children |
rev | line source |
---|---|
0 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
4 | 5 echo $ngx_n "checking for system endianess ...$ngx_c" |
0 | 6 echo >> $NGX_ERR |
7 echo "checking for system endianess" >> $NGX_ERR | |
8 | |
9 | |
10 cat << END > $NGX_AUTOTEST.c | |
11 | |
12 int main() { | |
13 int i = 0x11223344; | |
14 char *p; | |
15 | |
16 p = (char *) &i; | |
17 if (*p == 0x44) return 0; | |
18 return 1; | |
19 } | |
20 | |
21 END | |
22 | |
132 | 23 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \ |
126 | 24 -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs" |
25 | |
26 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1" | |
0 | 27 |
28 if [ -x $NGX_AUTOTEST ]; then | |
236 | 29 if $NGX_AUTOTEST >/dev/null 2>&1; then |
0 | 30 echo " little endianess" |
18 | 31 have=NGX_HAVE_LITTLE_ENDIAN . auto/have |
0 | 32 else |
33 echo " big endianess" | |
34 fi | |
35 | |
36 rm $NGX_AUTOTEST* | |
37 | |
38 else | |
39 rm $NGX_AUTOTEST* | |
40 | |
41 echo | |
42 echo "$0: error: can not detect system endianess" | |
43 exit 1 | |
44 fi |