2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 if [ "$NGX_PLATFORM" != win32 ]; then
8 ngx_feature="C compiler"
17 if [ $ngx_found = no ]; then
19 echo $0: error: C compiler $CC is not found
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
33 echo " + using Microsoft Visual C++ 10 compiler"
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
40 echo " + using Microsoft Visual C++ 8 compiler"
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
47 echo " + using Microsoft Visual C++ 7 compiler"
51 echo " + using Microsoft Visual C++ compiler"
54 elif [ "$CC" = wcl386 ]; then
56 echo " + using Open Watcom C compiler"
58 elif [ "$CC" = bcc32 ]; then
60 echo " + using Borland C++ compiler"
62 elif `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
64 echo " + using Intel C++ compiler"
66 elif `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
68 echo " + using GNU C compiler"
70 elif `$CC -v 2>&1 | grep '\(clang\|LLVM\) version' >/dev/null 2>&1`; then
72 echo " + using Clang C compiler"
74 elif `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
76 echo " + using Sun C compiler"
78 elif `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then
80 echo " + using Compaq C compiler"
82 elif `$CC -V 2>&1 | grep '^aCC: ' >/dev/null 2>&1`; then
84 echo " + using HP aC++ compiler"