Annotation of embedaddon/nginx/auto/cc/name, revision 1.1.1.1
1.1 misho 1:
2: # Copyright (C) Igor Sysoev
3: # Copyright (C) Nginx, Inc.
4:
5:
6: if [ "$NGX_PLATFORM" != win32 ]; then
7:
8: ngx_feature="C compiler"
9: ngx_feature_name=
10: ngx_feature_run=yes
11: ngx_feature_incs=
12: ngx_feature_path=
13: ngx_feature_libs=
14: ngx_feature_test=
15: . auto/feature
16:
17: if [ $ngx_found = no ]; then
18: echo
19: echo $0: error: C compiler $CC is not found
20: echo
21: exit 1
22: fi
23:
24: fi
25:
26:
27: if [ "$CC" = cl ]; then
28: if `$NGX_WINE $CC -v 2>&1 \
29: | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16' \
30: >/dev/null 2>&1`; then
31:
32: NGX_CC_NAME=msvc10
33: echo " + using Microsoft Visual C++ 10 compiler"
34:
35: elif `$NGX_WINE $CC -v 2>&1 \
36: | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14' \
37: >/dev/null 2>&1`; then
38:
39: NGX_CC_NAME=msvc8
40: echo " + using Microsoft Visual C++ 8 compiler"
41:
42: elif `$NGX_WINE $CC -v 2>&1 \
43: | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13' \
44: >/dev/null 2>&1`; then
45:
46: NGX_CC_NAME=msvc7
47: echo " + using Microsoft Visual C++ 7 compiler"
48:
49: else
50: NGX_CC_NAME=msvc
51: echo " + using Microsoft Visual C++ compiler"
52: fi
53:
54: elif [ "$CC" = wcl386 ]; then
55: NGX_CC_NAME=owc
56: echo " + using Open Watcom C compiler"
57:
58: elif [ "$CC" = bcc32 ]; then
59: NGX_CC_NAME=bcc
60: echo " + using Borland C++ compiler"
61:
62: elif `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
63: NGX_CC_NAME=icc
64: echo " + using Intel C++ compiler"
65:
66: elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
67: NGX_CC_NAME=gcc
68: echo " + using GNU C compiler"
69:
70: elif `$CC -v 2>&1 | grep 'clang version' >/dev/null 2>&1`; then
71: NGX_CC_NAME=clang
72: echo " + using Clang C compiler"
73:
74: elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
75: NGX_CC_NAME=sunc
76: echo " + using Sun C compiler"
77:
78: elif `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then
79: NGX_CC_NAME=ccc
80: echo " + using Compaq C compiler"
81:
82: elif `$CC -V 2>&1 | grep '^aCC: ' >/dev/null 2>&1`; then
83: NGX_CC_NAME=acc
84: echo " + using HP aC++ compiler"
85:
86: else
87: NGX_CC_NAME=unknown
88:
89: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>