Lines 1-6
Link Here
|
1 |
--- configure.orig 2012-05-12 01:08:28.473233004 -0500 |
1 |
--- configure.orig 2013-07-09 16:33:11 UTC |
2 |
+++ configure 2012-05-12 01:10:33.294799627 -0500 |
2 |
+++ configure |
3 |
@@ -3111,7 +3111,7 @@ echocheck "pthread" |
3 |
@@ -1234,7 +1234,7 @@ if test "$(basename $_cc)" = "icc" || te |
|
|
4 |
esac |
5 |
echores "$cc_version" |
6 |
else |
7 |
- for _cc in "$_cc" gcc cc ; do |
8 |
+ for _cc in "$_cc" cc cc ; do |
9 |
cc_name_tmp=$($_cc -v 2>&1 | tail -n 1 | cut -d ' ' -f 1) |
10 |
if test "$cc_name_tmp" = "gcc"; then |
11 |
cc_name=$cc_name_tmp |
12 |
@@ -1383,7 +1383,7 @@ EOF |
13 |
if test "$_gcc3_ext" != ""; then |
14 |
# if we had to disable sse/sse2 because the active kernel does not |
15 |
# support this instruction set extension, we also have to tell |
16 |
- # gcc3 to not generate sse/sse2 instructions for normal C code |
17 |
+ # cc to not generate sse/sse2 instructions for normal C code |
18 |
cflag_check $_march $_gcc3_ext && _march="$_march $_gcc3_ext" |
19 |
fi |
20 |
|
21 |
@@ -1428,15 +1428,15 @@ case "$host_arch" in |
22 |
# AMD CPUs just from their signature. Instead, we check directly |
23 |
# whether it supports SSE. |
24 |
if test "$_sse" = yes; then |
25 |
- # gcc treats athlon-xp, athlon-4 and athlon-mp similarly. |
26 |
+ # cc treats athlon-xp, athlon-4 and athlon-mp similarly. |
27 |
proc=athlon-xp |
28 |
else |
29 |
- # Again, gcc treats athlon and athlon-tbird similarly. |
30 |
+ # Again, cc treats athlon and athlon-tbird similarly. |
31 |
proc=athlon |
32 |
fi |
33 |
;; |
34 |
15) iproc=686 |
35 |
- # k8 cpu-type only supported in gcc >= 3.4.0, but that will be |
36 |
+ # k8 cpu-type only supported in cc >= 3.4.0, but that will be |
37 |
# caught and remedied in the optimization tests below. |
38 |
proc=k8 |
39 |
;; |
40 |
@@ -1520,11 +1520,11 @@ case "$host_arch" in |
41 |
fi # test "$_runtime_cpudetection" = no |
42 |
|
43 |
|
44 |
- # check that gcc supports our CPU, if not, fall back to earlier ones |
45 |
+ # check that cc supports our CPU, if not, fall back to earlier ones |
46 |
# LGB: check -mcpu and -march swithing step by step with enabling |
47 |
# to fall back till 386. |
48 |
|
49 |
- # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead |
50 |
+ # cc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead |
51 |
|
52 |
if [ "$cc_vendor" = "gnu" ] && ([ "$_cc_major" -gt 3 ] || ( [ "$_cc_major" = 3 ] && [ "$_cc_minor" -ge 4 ])) ; then |
53 |
cpuopt=-mtune |
54 |
@@ -1648,7 +1648,7 @@ case "$host_arch" in |
55 |
def_fast_64bit='#define HAVE_FAST_64BIT 1' |
56 |
iproc='x86_64' |
57 |
|
58 |
- # gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead |
59 |
+ # cc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead |
60 |
if test "$cc_vendor" = "gnu" && test "$_cc_major" -gt 3 -o "$_cc_major" -eq 3 -a "$_cc_minor" -ge 4 ; then |
61 |
cpuopt=-mtune |
62 |
else |
63 |
@@ -1694,7 +1694,7 @@ case "$host_arch" in |
64 |
if test "$proc" = "k8"; then |
65 |
cflag_check -march=$proc $cpuopt=$proc || proc=athlon-xp |
66 |
fi |
67 |
- # This will fail if gcc version < 3.3, which is ok because earlier |
68 |
+ # This will fail if cc version < 3.3, which is ok because earlier |
69 |
# versions don't really support 64-bit on amd64. |
70 |
# Is this a valid assumption? -Corey |
71 |
if test "$proc" = "athlon-xp"; then |
72 |
@@ -1793,7 +1793,7 @@ case "$host_arch" in |
73 |
fi |
74 |
;; |
75 |
NetBSD) |
76 |
- # only gcc 3.4 works reliably with AltiVec code under NetBSD |
77 |
+ # only cc 3.4 works reliably with AltiVec code under NetBSD |
78 |
case $cc_version in |
79 |
2*|3.0*|3.1*|3.2*|3.3*) |
80 |
;; |
81 |
@@ -1830,7 +1830,7 @@ case "$host_arch" in |
82 |
POWER3) _march='-mcpu=power3' _mcpu='-mtune=power3' ;; |
83 |
*) ;; |
84 |
esac |
85 |
- # gcc 3.1(.1) and up supports 7400 and 7450 |
86 |
+ # cc 3.1(.1) and up supports 7400 and 7450 |
87 |
if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1" || test "$_cc_major" -ge "4"; then |
88 |
case "$proc" in |
89 |
7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7400' ;; |
90 |
@@ -1838,21 +1838,21 @@ case "$host_arch" in |
91 |
*) ;; |
92 |
esac |
93 |
fi |
94 |
- # gcc 3.2 and up supports 970 |
95 |
+ # cc 3.2 and up supports 970 |
96 |
if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then |
97 |
case "$proc" in |
98 |
970*|PPC970*) _march='-mcpu=970' _mcpu='-mtune=970' ;; |
99 |
*) ;; |
100 |
esac |
101 |
fi |
102 |
- # gcc 3.3 and up supports POWER4 |
103 |
+ # cc 3.3 and up supports POWER4 |
104 |
if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "3" || test "$_cc_major" -ge "4"; then |
105 |
case "$proc" in |
106 |
POWER4) _march='-mcpu=power4' _mcpu='-mtune=power4' ;; |
107 |
*) ;; |
108 |
esac |
109 |
fi |
110 |
- # gcc 3.4 and up supports 440* |
111 |
+ # cc 3.4 and up supports 440* |
112 |
if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "4" || test "$_cc_major" -ge "4"; then |
113 |
case "$proc" in |
114 |
440EP*) _march='-mcpu=440fp' _mcpu='-mtune=440fp' ;; |
115 |
@@ -1860,7 +1860,7 @@ case "$host_arch" in |
116 |
*) ;; |
117 |
esac |
118 |
fi |
119 |
- # gcc 4.0 and up supports POWER5 |
120 |
+ # cc 4.0 and up supports POWER5 |
121 |
if test "$_cc_major" -ge "4"; then |
122 |
case "$proc" in |
123 |
POWER5*) _march='-mcpu=power5' _mcpu='-mtune=power5' ;; |
124 |
@@ -2025,7 +2025,7 @@ if darwin && test "$cc_vendor" = "gnu" ; |
125 |
echocheck "GCC support of -mstackrealign" |
126 |
# GCC 4.2 and some earlier Apple versions support this flag on x86. Since |
127 |
# Mac OS X/Intel has an ABI different from Windows this is needed to avoid |
128 |
-# crashes when loading Win32 DLLs. Unfortunately some gcc versions create |
129 |
+# crashes when loading Win32 DLLs. Unfortunately some cc versions create |
130 |
# wrong code with this flag, but this can be worked around by adding |
131 |
# -fno-unit-at-a-time as described in the blog post at |
132 |
# http://www.dribin.org/dave/blog/archives/2006/12/05/missing_third_param/ |
133 |
@@ -2139,7 +2139,7 @@ int main(void) { |
134 |
"xor %0, %0" |
135 |
:"=b"(x) |
136 |
// just adding ebx to clobber list seems unreliable with some |
137 |
- // compilers, e.g. Haiku's gcc 2.95 |
138 |
+ // compilers, e.g. Haiku's cc 2.95 |
139 |
); |
140 |
// and the above check does not work for OSX 64 bit... |
141 |
__asm__ volatile("":::"%ebx"); |
142 |
@@ -2676,7 +2676,7 @@ echocheck "pthread" |
4 |
if linux ; then |
143 |
if linux ; then |
5 |
THREAD_CFLAGS=-D_REENTRANT |
144 |
THREAD_CFLAGS=-D_REENTRANT |
6 |
elif freebsd || netbsd || openbsd || bsdos ; then |
145 |
elif freebsd || netbsd || openbsd || bsdos ; then |
Lines 9-15
Link Here
|
9 |
fi |
148 |
fi |
10 |
if test "$_pthreads" = auto ; then |
149 |
if test "$_pthreads" = auto ; then |
11 |
cat > $TMPC << EOF |
150 |
cat > $TMPC << EOF |
12 |
@@ -3128,7 +3128,7 @@ int main(void) { |
151 |
@@ -2693,7 +2693,7 @@ int main(void) { |
13 |
EOF |
152 |
EOF |
14 |
_pthreads=no |
153 |
_pthreads=no |
15 |
if ! hpux ; then |
154 |
if ! hpux ; then |
Lines 18-24
Link Here
|
18 |
# for crosscompilation, we cannot execute the program, be happy if we can link statically |
157 |
# for crosscompilation, we cannot execute the program, be happy if we can link statically |
19 |
cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break |
158 |
cc_check $THREAD_CFLAGS $_ld_tmp && (tmp_run || test "$_ld_static") && _ld_pthread="$_ld_tmp" && _pthreads=yes && break |
20 |
done |
159 |
done |
21 |
@@ -6340,7 +6340,7 @@ TIMER = $_timer |
160 |
@@ -2898,7 +2898,7 @@ fi #if hpux |
|
|
161 |
echocheck "termcap" |
162 |
if test "$_termcap" = auto ; then |
163 |
_termcap=no |
164 |
- for _ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do |
165 |
+ for _ld_tmp in "/usr/lib/libncurses.so" "-ltinfo" "-ltermcap"; do |
166 |
statement_check term.h 'tgetent(0, 0)' $_ld_tmp && |
167 |
extra_ldflags="$extra_ldflags $_ld_tmp" && _termcap=yes && break |
168 |
done |
169 |
@@ -3355,7 +3355,7 @@ echocheck "X11 headers presence" |
170 |
fi |
171 |
done |
172 |
if test $_cross_compile = no; then |
173 |
- for I in /usr/X11/include /usr/X11R7/include /usr/local/include /usr/X11R6/include \ |
174 |
+ for I in /usr/X11/include /usr/X11R7/include /usr/local/include /usr/local/include \ |
175 |
/usr/include/X11R6 /usr/openwin/include ; do |
176 |
if test -f "$I/X11/Xlib.h" ; then |
177 |
extra_cflags="$extra_cflags -I$I" |
178 |
@@ -3370,8 +3370,8 @@ echores "$_x11_headers" |
179 |
|
180 |
echocheck "X11" |
181 |
if test "$_x11" = auto && test "$_x11_headers" = yes ; then |
182 |
- for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib/X11R6 \ |
183 |
- -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/X11R6/lib64 \ |
184 |
+ for I in "" -L/usr/X11R7/lib -L/usr/local/lib -L/usr/local/lib -L/usr/lib/X11R6 \ |
185 |
+ -L/usr/X11/lib -L/usr/lib32 -L/usr/openwin/lib -L/usr/local/lib64 -L/usr/local/lib64 \ |
186 |
-L/usr/lib ; do |
187 |
if netbsd; then |
188 |
_ld_tmp="$I -lXext -lX11 $_ld_pthread -Wl,-R$(echo $I | sed s/^-L//)" |
189 |
@@ -4192,7 +4192,7 @@ elif darwin ; then |
190 |
elif dragonfly ; then |
191 |
default_cdrom_device="/dev/cd0" |
192 |
elif freebsd ; then |
193 |
- default_cdrom_device="/dev/acd0" |
194 |
+ default_cdrom_device="/dev/cd0" |
195 |
elif openbsd ; then |
196 |
default_cdrom_device="/dev/rcd0c" |
197 |
elif amigaos ; then |
198 |
@@ -5190,7 +5190,7 @@ echores "$_lircc" |
199 |
|
200 |
############################################################################# |
201 |
|
202 |
-CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" |
203 |
+CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64" |
204 |
|
205 |
# This must be the last test to be performed. Any other tests following it |
206 |
# could fail due to linker errors. libdvdnavmini is intentionally not linked |
207 |
@@ -5296,7 +5296,7 @@ RST2MAN = $_rst2man |
22 |
EXESUF = $_exesuf |
208 |
EXESUF = $_exesuf |
23 |
EXESUFS_ALL = .exe |
209 |
EXESUFS_ALL = .exe |
24 |
|
210 |
|