Mercurial > hg > nginx
annotate auto/cc/name @ 3096:8ba95d7cab37 stable-0.7
merge r2984, r2985, r3000:
XSLT filter fixes:
*) preserve XML wellFormed field before freeing memory
*) fix libxml2 error message
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 Sep 2009 10:05:36 +0000 |
parents | 7d125a707158 |
children | fbd6d1e5cdef |
rev | line source |
---|---|
455 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
946 | 5 if [ "$NGX_PLATFORM" != win32 ]; then |
6 | |
7 ngx_feature="C compiler" | |
8 ngx_feature_name= | |
9 ngx_feature_run=yes | |
10 ngx_feature_incs= | |
11 ngx_feature_path= | |
12 ngx_feature_libs= | |
13 ngx_feature_test= | |
14 . auto/feature | |
15 | |
16 if [ $ngx_found = no ]; then | |
17 echo | |
18 echo $0: error: C compiler $CC is not found | |
19 echo | |
20 exit 1 | |
21 fi | |
22 | |
23 fi | |
455 | 24 |
25 | |
577 | 26 if [ "$CC" = cl ]; then |
461 | 27 if `$NGX_WINE $CC -v 2>&1 \ |
1639
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
28 | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14' \ |
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
29 >/dev/null 2>&1`; then |
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
30 |
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
31 NGX_CC_NAME=msvc8 |
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
32 echo " + using Microsoft Visual C++ 8 compiler" |
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
33 |
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
34 else if `$NGX_WINE $CC -v 2>&1 \ |
461 | 35 | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13' \ |
703 | 36 >/dev/null 2>&1`; then |
461 | 37 |
38 NGX_CC_NAME=msvc7 | |
946 | 39 echo " + using Microsoft Visual C++ 7 compiler" |
461 | 40 |
41 else | |
42 NGX_CC_NAME=msvc | |
946 | 43 echo " + using Microsoft Visual C++ compiler" |
461 | 44 fi |
1639
7d125a707158
msvc8 compatibility: it can not build with debug under Wine
Igor Sysoev <igor@sysoev.ru>
parents:
946
diff
changeset
|
45 fi |
455 | 46 |
47 else | |
577 | 48 if [ "$CC" = wcl386 ]; then |
455 | 49 NGX_CC_NAME=owc |
946 | 50 echo " + using Open Watcom C compiler" |
455 | 51 |
52 else | |
577 | 53 if [ "$CC" = bcc32 ]; then |
455 | 54 NGX_CC_NAME=bcc |
946 | 55 echo " + using Borland C++ compiler" |
455 | 56 |
57 else | |
703 | 58 if `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then |
455 | 59 NGX_CC_NAME=gcc |
946 | 60 echo " + using GNU C compiler" |
455 | 61 |
62 else | |
703 | 63 if `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then |
455 | 64 NGX_CC_NAME=icc |
946 | 65 echo " + using Intel C++ compiler" |
455 | 66 |
67 else | |
703 | 68 if `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then |
561 | 69 NGX_CC_NAME=sunc |
946 | 70 echo " + using Sun C compiler" |
561 | 71 |
72 else | |
703 | 73 if `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then |
455 | 74 NGX_CC_NAME=ccc |
946 | 75 echo " + using Compaq C compiler" |
455 | 76 |
77 else | |
703 | 78 if `$CC -V 2>&1 | grep '^aCC: ' >/dev/null 2>&1`; then |
455 | 79 NGX_CC_NAME=acc |
946 | 80 echo " + using HP aC++ compiler" |
455 | 81 |
82 else | |
517 | 83 NGX_CC_NAME=unknown |
455 | 84 |
85 fi # acc | |
86 fi # ccc | |
561 | 87 fi # sunc |
455 | 88 fi # icc |
89 fi # gcc | |
90 fi # bcc | |
91 fi # owc | |
92 fi # msvc |