2 # Copyright (C) Igor Sysoev
5 if [ "$NGX_PLATFORM" != win32 ]; then
7 ngx_feature="C compiler"
16 if [ $ngx_found = no ]; then
18 echo $0: error: C compiler $CC is not found
26 if [ "$CC" = cl ]; then
27 if `$NGX_WINE $CC -v 2>&1 \
28 | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14' \
29 >/dev/null 2>&1`; then
32 echo " + using Microsoft Visual C++ 8 compiler"
34 else if `$NGX_WINE $CC -v 2>&1 \
35 | grep '^Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13' \
36 >/dev/null 2>&1`; then
39 echo " + using Microsoft Visual C++ 7 compiler"
43 echo " + using Microsoft Visual C++ compiler"
48 if [ "$CC" = wcl386 ]; then
50 echo " + using Open Watcom C compiler"
53 if [ "$CC" = bcc32 ]; then
55 echo " + using Borland C++ compiler"
58 if `$CC -v 2>&1 | grep 'gcc version' >/dev/null 2>&1`; then
60 echo " + using GNU C compiler"
63 if `$CC -V 2>&1 | grep '^Intel(R) C' >/dev/null 2>&1`; then
65 echo " + using Intel C++ compiler"
68 if `$CC -V 2>&1 | grep 'Sun C' >/dev/null 2>&1`; then
70 echo " + using Sun C compiler"
73 if `$CC -V 2>&1 | grep '^Compaq C' >/dev/null 2>&1`; then
75 echo " + using Compaq C compiler"
78 if `$CC -V 2>&1 | grep '^aCC: ' >/dev/null 2>&1`; then
80 echo " + using HP aC++ compiler"