Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nginx / auto / cc / conf
blob1f3af216ff935fd5fa121dd139d05ec60e404f8a
2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 LINK="\$(CC)"
8 ngx_include_opt="-I "
9 ngx_compile_opt="-c"
10 ngx_objout="-o "
11 ngx_binout="-o "
12 ngx_objext="o"
13 ngx_binext=
15 ngx_long_start=
16 ngx_long_end=
18 ngx_regex_dirsep="\/"
19 ngx_dirsep='/'
21 ngx_regex_cont=' \\\
22         '
23 ngx_cont=' \
24         '
25 ngx_tab=' \
26                 '
27 ngx_spacer=
29 ngx_long_regex_cont=$ngx_regex_cont
30 ngx_long_cont=$ngx_cont
32 . auto/cc/name
34 if test -n "$CFLAGS"; then
36     CC_TEST_FLAGS="$CFLAGS $NGX_CC_OPT"
38     case $NGX_CC_NAME in
40         ccc)
41             # Compaq C V6.5-207
43             ngx_include_opt="-I"
44         ;;
46         sunc)
48             case "$NGX_MACHINE" in
50                 i86pc)
51                     NGX_AUX=" src/os/unix/ngx_sunpro_x86.il"
52                 ;;
54                 sun4u | sun4v)
55                     NGX_AUX=" src/os/unix/ngx_sunpro_sparc64.il"
56                 ;;
58             esac
60             case $CPU in
62                 amd64)
63                     NGX_AUX=" src/os/unix/ngx_sunpro_amd64.il"
64                 ;;
66             esac
67         ;;
69     esac
71 else
73     case $NGX_CC_NAME in
74         gcc)
75             # gcc 2.7.2.3, 2.8.1, 2.95.4, egcs-1.1.2
76             #     3.0.4, 3.1.1, 3.2.3, 3.3.2, 3.3.3, 3.3.4, 3.4.0, 3.4.2
77             #     4.0.0, 4.0.1, 4.1.0
79             . auto/cc/gcc
80         ;;
82         clang)
83             # Clang C compiler
85             . auto/cc/clang
86         ;;
88         icc)
89             # Intel C++ compiler 7.1, 8.0, 8.1
91             . auto/cc/icc
92         ;;
94         sunc)
95             # Sun C 5.7 Patch 117837-04 2005/05/11
97             . auto/cc/sunc
98         ;;
100         ccc)
101             # Compaq C V6.5-207
103             . auto/cc/ccc
104         ;;
106         acc)
107             # aCC: HP ANSI C++ B3910B A.03.55.02
109             . auto/cc/acc
110         ;;
112         msvc*)
113             # MSVC++ 6.0 SP2, MSVC++ Toolkit 2003
115             . auto/cc/msvc
116         ;;
118         owc)
119             # Open Watcom C 1.0, 1.2
121             . auto/cc/owc
122         ;;
124         bcc)
125             # Borland C++ 5.5
127             . auto/cc/bcc
128         ;;
130     esac
132     CC_TEST_FLAGS="$CC_TEST_FLAGS $NGX_CC_OPT"
136 CFLAGS="$CFLAGS $NGX_CC_OPT"
137 NGX_TEST_LD_OPT="$NGX_LD_OPT"
139 if [ "$NGX_PLATFORM" != win32 ]; then
141     if test -n "$NGX_LD_OPT"; then
142         ngx_feature=--with-ld-opt=\"$NGX_LD_OPT\"
143         ngx_feature_name=
144         ngx_feature_run=no
145         ngx_feature_incs=
146         ngx_feature_path=
147         ngx_feature_libs=
148         ngx_feature_test=
149         . auto/feature
151         if [ $ngx_found = no ]; then
152             echo $0: error: the invalid value in --with-ld-opt=\"$NGX_LD_OPT\"
153             echo
154             exit 1
155         fi
156     fi
159     ngx_feature="gcc builtin atomic operations"
160     ngx_feature_name=NGX_HAVE_GCC_ATOMIC
161     ngx_feature_run=yes
162     ngx_feature_incs=
163     ngx_feature_path=
164     ngx_feature_libs=
165     ngx_feature_test="long  n = 0;
166                       if (!__sync_bool_compare_and_swap(&n, 0, 1))
167                           return 1;
168                       if (__sync_fetch_and_add(&n, 1) != 1)
169                           return 1;
170                       if (n != 2)
171                           return 1;
172                       __sync_synchronize();"
173     . auto/feature
176     if [ "$NGX_CC_NAME" = "ccc" ]; then
177         echo "checking for C99 variadic macros ... disabled"
178     else
179         ngx_feature="C99 variadic macros"
180         ngx_feature_name="NGX_HAVE_C99_VARIADIC_MACROS"
181         ngx_feature_run=no
182         ngx_feature_incs="#include <stdio.h>
183 #define var(dummy, ...)  sprintf(__VA_ARGS__)"
184         ngx_feature_path=
185         ngx_feature_libs=
186         ngx_feature_test="char  buf[30]; buf[0] = '0';
187                           var(0, buf, \"%d\", 1);
188                           if (buf[0] != '1') return 1"
189         . auto/feature
190      fi
193     ngx_feature="gcc variadic macros"
194     ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
195     ngx_feature_run=no
196     ngx_feature_incs="#include <stdio.h>
197 #define var(dummy, args...)  sprintf(args)"
198     ngx_feature_path=
199     ngx_feature_libs=
200     ngx_feature_test="char  buf[30]; buf[0] = '0';
201                       var(0, buf, \"%d\", 1);
202                       if (buf[0] != '1') return 1"
203     . auto/feature
206 #    ngx_feature="inline"
207 #    ngx_feature_name=
208 #    ngx_feature_run=no
209 #    ngx_feature_incs="int inline f(void) { return 1 }"
210 #    ngx_feature_path=
211 #    ngx_feature_libs=
212 #    ngx_feature_test=
213 #    . auto/feature
215 #    if [ $ngx_found = yes ]; then
216 #    fi