Mercurial > hg > nginx-quic
annotate auto/cc/sunc @ 728:e82eed614d4a
turn off startup debug logging introduced by previous commit
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Oct 2006 08:50:03 +0000 |
parents | 67deba330372 |
children | 34bb8726f454 |
rev | line source |
---|---|
561 | 1 |
2 # Copyright (C) Igor Sysoev | |
3 | |
4 | |
5 # Sun C 5.7 Patch 117837-04 2005/05/11 | |
702
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
6 # Sun C 5.8 2005/10/13 |
561 | 7 |
8 NGX_SUNC_VER=`$CC -V 2>&1 | grep 'Sun C' 2>&1 \ | |
702
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
9 | sed -e 's/^.* Sun C \(.*\)/\1/'` |
561 | 10 |
11 echo " + Sun C version: $NGX_SUNC_VER" | |
12 | |
13 have=NGX_COMPILER value="\"Sun C $NGX_SUNC_VER\"" . auto/define | |
14 | |
15 | |
16 case "$NGX_PLATFORM" in | |
17 | |
18 *:i86pc) | |
702
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
19 ngx_feature="PAUSE hardware capability bug" |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
20 ngx_feature_name= |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
21 ngx_feature_run=bug |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
22 ngx_feature_incs= |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
23 ngx_feature_libs= |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
24 ngx_feature_test='__asm ("pause")' |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
25 |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
26 . auto/feature |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
27 |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
28 if [ $ngx_found = yes ]; then |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
29 # disable [ PAUSE ] hwcap for Sun Studio 11 |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
30 CORE_LINK="$CORE_LINK -Msrc/os/unix/ngx_sunpro_x86.map" |
67deba330372
auto/configure [ PAUSE ] hwcap bug
Igor Sysoev <igor@sysoev.ru>
parents:
697
diff
changeset
|
31 fi |
697
36c51f8f0f4d
disable [ PAUSE ] hwcap for Sun Studio 11
Igor Sysoev <igor@sysoev.ru>
parents:
561
diff
changeset
|
32 |
561 | 33 NGX_AUX=" src/os/unix/ngx_sunpro_x86.il" |
34 ;; | |
35 | |
36 *:sun4u) | |
37 # "-xarch=v9" enables the "casa" assembler instruction | |
38 CFLAGS="$CFLAGS -xarch=v9" | |
39 CORE_LINK="$CORE_LINK -xarch=v9" | |
40 NGX_AUX=" src/os/unix/ngx_sunpro_sparc64.il" | |
41 ;; | |
42 | |
43 esac | |
44 | |
45 | |
46 # optimizations | |
47 | |
48 CFLAGS="$CFLAGS -fast" | |
49 | |
50 | |
51 case $CPU in | |
52 pentium) | |
53 # optimize for Pentium and Athlon | |
54 CPU_OPT="-xchip=pentium" | |
55 ;; | |
56 | |
57 pentiumpro) | |
58 # optimize for Pentium Pro, Pentium II | |
59 CPU_OPT="-xchip=pentium_pro" | |
60 ;; | |
61 | |
62 pentium3) | |
63 # optimize for Pentium III | |
64 CPU_OPT="-xchip=pentium3" | |
65 #CPU_OPT="$CPU_OPT -xarch=sse" | |
66 CPU_OPT="$CPU_OPT -xcache=16/32/4:256/32/4" | |
67 ;; | |
68 | |
69 pentium4) | |
70 # optimize for Pentium 4 | |
71 CPU_OPT="-xchip=pentium4" | |
72 #CPU_OPT="$CPU_OPT -xarch=sse2" | |
73 CPU_OPT="$CPU_OPT -xcache=8/64/4:256/128/8" | |
74 ;; | |
75 | |
76 opteron) | |
77 # optimize for Opteron | |
78 CPU_OPT="-xchip=opteron" | |
79 #CPU_OPT="$CPU_OPT -xarch=sse2" | |
80 CPU_OPT="$CPU_OPT -xcache=64/64/2:1024/64/16" | |
81 ;; | |
82 | |
83 amd64) | |
84 # build 64-bit amd64 binary | |
85 CPU_OPT="-xarch=amd64" | |
86 CORE_LINK="$CORE_LINK -xarch=amd64" | |
87 NGX_AUX=" src/os/unix/ngx_sunpro_amd64.il" | |
88 ;; | |
89 | |
90 esac | |
91 | |
92 | |
93 CFLAGS="$CFLAGS $CPU_OPT" | |
94 | |
95 | |
96 if [ ".$PCRE_OPT" = "." ]; then | |
97 PCRE_OPT="-fast $CPU_OPT" | |
98 fi | |
99 | |
100 if [ ".$MD5_OPT" = "." ]; then | |
101 MD5_OPT="-fast $CPU_OPT" | |
102 fi | |
103 | |
104 if [ ".$ZLIB_OPT" = "." ]; then | |
105 ZLIB_OPT="-fast $CPU_OPT" | |
106 fi | |
107 | |
108 | |
109 # stop on warning | |
110 CFLAGS="$CFLAGS -errwarn=%all" |