comparison auto/types/typedef @ 4:4b2dafa26fe2 NGINX_0_1_2

nginx 0.1.2 *) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; bug appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; bug appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
author Igor Sysoev <http://sysoev.ru>
date Thu, 21 Oct 2004 00:00:00 +0400
parents f0b350454894
children 91372f004adf
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
1 1
2 # Copyright (C) Igor Sysoev 2 # Copyright (C) Igor Sysoev
3 3
4 4
5 echo $ngx_n "checking for $ngx_type ..." $ngx_c 5 echo $ngx_n "checking for $ngx_type ...$ngx_c"
6 echo >> $NGX_ERR
7 echo "checking for $ngx_type" >> $NGX_ERR
8 6
9 found=no 7 cat << END >> $NGX_AUTOCONF_ERR
10 8
11 for type in $ngx_type $ngx_types 9 ----------------------------------------
10 checking for $ngx_type
11
12 END
13
14 ngx_found=no
15
16 for ngx_try in $ngx_type $ngx_types
12 do 17 do
13 18
14 cat << END > $NGX_AUTOTEST.c 19 cat << END > $NGX_AUTOTEST.c
15 20
16 #include <sys/types.h> 21 #include <sys/types.h>
17 #include <signal.h> 22 #include <signal.h>
18 #include <sys/socket.h> 23 #include <sys/socket.h>
19 #include <sys/time.h> 24 #include <sys/time.h>
20 #include <sys/resource.h> 25 #include <sys/resource.h>
21 #include <netinet/in.h> 26 #include <netinet/in.h>
22 $NGX_INTTYPES_H 27 $NGX_INCLUDE_INTTYPES_H
23 28
24 int main() { 29 int main() {
25 $type i = 0; 30 $ngx_try i = 0;
26 return 0; 31 return 0;
27 } 32 }
28 33
29 END 34 END
30 35
31 eval "$CC -o $NGX_AUTOTEST $NGX_AUTOTEST.c >> $NGX_ERR 2>&1" 36 ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS -o $NGX_AUTOTEST $NGX_AUTOTEST.c"
37 eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
32 38
33 if [ -x $NGX_AUTOTEST ]; then 39 if [ -x $NGX_AUTOTEST ]; then
34 if [ $type = $ngx_type ]; then 40 if [ $ngx_try = $ngx_type ]; then
35 echo " found" 41 echo " found"
36 found=yes 42 ngx_found=yes
37 else 43 else
38 echo ", $type used" 44 echo ", $ngx_try used"
39 found=$type 45 ngx_found=$ngx_try
40 fi 46 fi
41 fi 47 fi
42 48
43 rm $NGX_AUTOTEST* 49 rm -f $NGX_AUTOTEST
44 50
45 if [ $found = no ]; then 51 if [ $ngx_found = no ]; then
46 echo $ngx_n " $type not found" $ngx_c 52 echo $ngx_n " $ngx_try not found$ngx_c"
53
54 echo "----------" >> $NGX_AUTOCONF_ERR
55 cat $NGX_AUTOTEST.c >> $NGX_AUTOCONF_ERR
56 echo "----------" >> $NGX_AUTOCONF_ERR
57 echo $ngx_test >> $NGX_AUTOCONF_ERR
58 echo "----------" >> $NGX_AUTOCONF_ERR
59
47 else 60 else
48 break 61 break
49 fi 62 fi
50 done 63 done
51 64
52 if [ $found = no ]; then 65 if [ $ngx_found = no ]; then
53 echo 66 echo
54 echo "$0: error: can not define $ngx_type" 67 echo "$0: error: can not define $ngx_type"
68
55 exit 1 69 exit 1
56 fi 70 fi
57 71
58 if [ $found != yes ]; then 72 if [ $ngx_found != yes ]; then
59 echo "typedef $found $ngx_type;" >> $NGX_AUTO_CONFIG_H 73 echo "typedef $ngx_found $ngx_type;" >> $NGX_AUTO_CONFIG_H
60 fi 74 fi