TaggedOpenLibrary constants off by one fix.
[AROS.git] / tools / crosstools / gcc-4.2.2-aros.diff
blobb3fa079854546039ae12fe3d8c5b0844141b8c72
1 diff --git gcc-4.2.2/configure gcc-4.2.2/configure
2 index 0b1d98a..98a5ba0 100755
3 --- gcc-4.2.2/configure
4 +++ gcc-4.2.2/configure
5 @@ -1125,6 +1125,9 @@ case "${host}" in
6 ppc*-*-pe)
7 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
8 ;;
9 + *-*-aros*)
10 + noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv gdb"
11 + ;;
12 powerpc-*-beos*)
13 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
15 @@ -1817,6 +1820,8 @@ case "${host}" in
16 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
17 host_makefile_frag="config/mh-x86omitfp"
19 + *-*-aros*)
20 + ;;
21 esac
24 @@ -1862,7 +1867,7 @@ else
25 # Extract the first word of "gcc", so it can be a program name with args.
26 set dummy gcc; ac_word=$2
27 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
28 -echo "configure:1866: checking for $ac_word" >&5
29 +echo "configure:1871: checking for $ac_word" >&5
30 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
31 echo $ac_n "(cached) $ac_c" 1>&6
32 else
33 @@ -1892,7 +1897,7 @@ if test -z "$CC"; then
34 # Extract the first word of "cc", so it can be a program name with args.
35 set dummy cc; ac_word=$2
36 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
37 -echo "configure:1896: checking for $ac_word" >&5
38 +echo "configure:1901: checking for $ac_word" >&5
39 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
40 echo $ac_n "(cached) $ac_c" 1>&6
41 else
42 @@ -1943,7 +1948,7 @@ fi
43 # Extract the first word of "cl", so it can be a program name with args.
44 set dummy cl; ac_word=$2
45 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
46 -echo "configure:1947: checking for $ac_word" >&5
47 +echo "configure:1952: checking for $ac_word" >&5
48 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
49 echo $ac_n "(cached) $ac_c" 1>&6
50 else
51 @@ -1975,7 +1980,7 @@ fi
54 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
55 -echo "configure:1979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
56 +echo "configure:1984: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
58 ac_ext=c
59 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
60 @@ -1986,12 +1991,12 @@ cross_compiling=$ac_cv_prog_cc_cross
62 cat > conftest.$ac_ext << EOF
64 -#line 1990 "configure"
65 +#line 1995 "configure"
66 #include "confdefs.h"
68 main(){return(0);}
69 EOF
70 -if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
71 +if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
72 ac_cv_prog_cc_works=yes
73 # If we can't run a trivial program, we are probably using a cross compiler.
74 if (./conftest; exit) 2>/dev/null; then
75 @@ -2017,12 +2022,12 @@ if test $ac_cv_prog_cc_works = no; then
76 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
78 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
79 -echo "configure:2021: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
80 +echo "configure:2026: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
81 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
82 cross_compiling=$ac_cv_prog_cc_cross
84 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
85 -echo "configure:2026: checking whether we are using GNU C" >&5
86 +echo "configure:2031: checking whether we are using GNU C" >&5
87 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
88 echo $ac_n "(cached) $ac_c" 1>&6
89 else
90 @@ -2031,7 +2036,7 @@ else
91 yes;
92 #endif
93 EOF
94 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
95 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
96 ac_cv_prog_gcc=yes
97 else
98 ac_cv_prog_gcc=no
99 @@ -2050,7 +2055,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
100 ac_save_CFLAGS="$CFLAGS"
101 CFLAGS=
102 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
103 -echo "configure:2054: checking whether ${CC-cc} accepts -g" >&5
104 +echo "configure:2059: checking whether ${CC-cc} accepts -g" >&5
105 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
106 echo $ac_n "(cached) $ac_c" 1>&6
107 else
108 @@ -2117,7 +2122,7 @@ fi
109 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
110 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
112 -echo "configure:2121: checking for $ac_word" >&5
113 +echo "configure:2126: checking for $ac_word" >&5
114 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
115 echo $ac_n "(cached) $ac_c" 1>&6
116 else
117 @@ -2149,7 +2154,7 @@ if test -n "$ac_tool_prefix"; then
118 # Extract the first word of "gnatbind", so it can be a program name with args.
119 set dummy gnatbind; ac_word=$2
120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
121 -echo "configure:2153: checking for $ac_word" >&5
122 +echo "configure:2158: checking for $ac_word" >&5
123 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
124 echo $ac_n "(cached) $ac_c" 1>&6
125 else
126 @@ -2182,7 +2187,7 @@ fi
129 echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6
130 -echo "configure:2186: checking whether compiler driver understands Ada" >&5
131 +echo "configure:2191: checking whether compiler driver understands Ada" >&5
132 if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then
133 echo $ac_n "(cached) $ac_c" 1>&6
134 else
135 @@ -2214,7 +2219,7 @@ else
138 echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6
139 -echo "configure:2218: checking how to compare bootstrapped objects" >&5
140 +echo "configure:2223: checking how to compare bootstrapped objects" >&5
141 if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
142 echo $ac_n "(cached) $ac_c" 1>&6
143 else
144 @@ -2334,9 +2339,9 @@ saved_CFLAGS="$CFLAGS"
145 CFLAGS="$CFLAGS $gmpinc"
146 # Check GMP actually works
147 echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
148 -echo "configure:2338: checking for correct version of gmp.h" >&5
149 +echo "configure:2343: checking for correct version of gmp.h" >&5
150 cat > conftest.$ac_ext <<EOF
151 -#line 2340 "configure"
152 +#line 2345 "configure"
153 #include "confdefs.h"
154 #include "gmp.h"
155 int main() {
156 @@ -2347,7 +2352,7 @@ choke me
158 ; return 0; }
160 -if { (eval echo configure:2351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
161 +if { (eval echo configure:2356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
162 rm -rf conftest*
163 echo "$ac_t""yes" 1>&6
164 else
165 @@ -2360,9 +2365,9 @@ rm -f conftest*
167 if test x"$have_gmp" = xyes; then
168 echo $ac_n "checking for correct version of mpfr.h""... $ac_c" 1>&6
169 -echo "configure:2364: checking for correct version of mpfr.h" >&5
170 +echo "configure:2369: checking for correct version of mpfr.h" >&5
171 cat > conftest.$ac_ext <<EOF
172 -#line 2366 "configure"
173 +#line 2371 "configure"
174 #include "confdefs.h"
175 #include "gmp.h"
176 #include <mpfr.h>
177 @@ -2374,7 +2379,7 @@ int main() {
179 ; return 0; }
181 -if { (eval echo configure:2378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
182 +if { (eval echo configure:2383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
183 rm -rf conftest*
184 echo "$ac_t""yes" 1>&6
185 else
186 @@ -2388,9 +2393,9 @@ rm -f conftest*
187 saved_LIBS="$LIBS"
188 LIBS="$LIBS $gmplibs"
189 echo $ac_n "checking for any version of mpfr.h""... $ac_c" 1>&6
190 -echo "configure:2392: checking for any version of mpfr.h" >&5
191 +echo "configure:2397: checking for any version of mpfr.h" >&5
192 cat > conftest.$ac_ext <<EOF
193 -#line 2394 "configure"
194 +#line 2399 "configure"
195 #include "confdefs.h"
196 #include <gmp.h>
197 #include <mpfr.h>
198 @@ -2398,7 +2403,7 @@ int main() {
199 mpfr_t n; mpfr_init(n);
200 ; return 0; }
202 -if { (eval echo configure:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
203 +if { (eval echo configure:2407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
204 rm -rf conftest*
205 echo "$ac_t""yes" 1>&6
206 else
207 @@ -3509,7 +3514,7 @@ do
208 # Extract the first word of "$ac_prog", so it can be a program name with args.
209 set dummy $ac_prog; ac_word=$2
210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
211 -echo "configure:3513: checking for $ac_word" >&5
212 +echo "configure:3518: checking for $ac_word" >&5
213 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
214 echo $ac_n "(cached) $ac_c" 1>&6
215 else
216 @@ -3549,7 +3554,7 @@ do
217 # Extract the first word of "$ac_prog", so it can be a program name with args.
218 set dummy $ac_prog; ac_word=$2
219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
220 -echo "configure:3553: checking for $ac_word" >&5
221 +echo "configure:3558: checking for $ac_word" >&5
222 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then
223 echo $ac_n "(cached) $ac_c" 1>&6
224 else
225 @@ -3588,7 +3593,7 @@ do
226 # Extract the first word of "$ac_prog", so it can be a program name with args.
227 set dummy $ac_prog; ac_word=$2
228 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
229 -echo "configure:3592: checking for $ac_word" >&5
230 +echo "configure:3597: checking for $ac_word" >&5
231 if eval "test \"`echo '$''{'ac_cv_prog_M4'+set}'`\" = set"; then
232 echo $ac_n "(cached) $ac_c" 1>&6
233 else
234 @@ -3627,7 +3632,7 @@ do
235 # Extract the first word of "$ac_prog", so it can be a program name with args.
236 set dummy $ac_prog; ac_word=$2
237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
238 -echo "configure:3631: checking for $ac_word" >&5
239 +echo "configure:3636: checking for $ac_word" >&5
240 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
241 echo $ac_n "(cached) $ac_c" 1>&6
242 else
243 @@ -3667,7 +3672,7 @@ do
244 # Extract the first word of "$ac_prog", so it can be a program name with args.
245 set dummy $ac_prog; ac_word=$2
246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
247 -echo "configure:3671: checking for $ac_word" >&5
248 +echo "configure:3676: checking for $ac_word" >&5
249 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then
250 echo $ac_n "(cached) $ac_c" 1>&6
251 else
252 @@ -3706,7 +3711,7 @@ do
253 # Extract the first word of "$ac_prog", so it can be a program name with args.
254 set dummy $ac_prog; ac_word=$2
255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
256 -echo "configure:3710: checking for $ac_word" >&5
257 +echo "configure:3715: checking for $ac_word" >&5
258 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
259 echo $ac_n "(cached) $ac_c" 1>&6
260 else
261 @@ -3759,7 +3764,7 @@ do
262 # Extract the first word of "$ac_prog", so it can be a program name with args.
263 set dummy $ac_prog; ac_word=$2
264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
265 -echo "configure:3763: checking for $ac_word" >&5
266 +echo "configure:3768: checking for $ac_word" >&5
267 if eval "test \"`echo '$''{'ac_cv_prog_EXPECT'+set}'`\" = set"; then
268 echo $ac_n "(cached) $ac_c" 1>&6
269 else
270 @@ -3800,7 +3805,7 @@ do
271 # Extract the first word of "$ac_prog", so it can be a program name with args.
272 set dummy $ac_prog; ac_word=$2
273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
274 -echo "configure:3804: checking for $ac_word" >&5
275 +echo "configure:3809: checking for $ac_word" >&5
276 if eval "test \"`echo '$''{'ac_cv_prog_RUNTEST'+set}'`\" = set"; then
277 echo $ac_n "(cached) $ac_c" 1>&6
278 else
279 @@ -3848,7 +3853,7 @@ test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
280 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
281 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
283 -echo "configure:3852: checking for $ac_word" >&5
284 +echo "configure:3857: checking for $ac_word" >&5
285 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
286 echo $ac_n "(cached) $ac_c" 1>&6
287 else
288 @@ -3879,7 +3884,7 @@ fi
289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
290 set dummy ${ncn_progname}; ac_word=$2
291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
292 -echo "configure:3883: checking for $ac_word" >&5
293 +echo "configure:3888: checking for $ac_word" >&5
294 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
295 echo $ac_n "(cached) $ac_c" 1>&6
296 else
297 @@ -3923,7 +3928,7 @@ fi
298 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
299 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
301 -echo "configure:3927: checking for $ac_word" >&5
302 +echo "configure:3932: checking for $ac_word" >&5
303 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
304 echo $ac_n "(cached) $ac_c" 1>&6
305 else
306 @@ -3954,7 +3959,7 @@ fi
307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
308 set dummy ${ncn_progname}; ac_word=$2
309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
310 -echo "configure:3958: checking for $ac_word" >&5
311 +echo "configure:3963: checking for $ac_word" >&5
312 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
313 echo $ac_n "(cached) $ac_c" 1>&6
314 else
315 @@ -3998,7 +4003,7 @@ fi
316 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
317 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
319 -echo "configure:4002: checking for $ac_word" >&5
320 +echo "configure:4007: checking for $ac_word" >&5
321 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
322 echo $ac_n "(cached) $ac_c" 1>&6
323 else
324 @@ -4029,7 +4034,7 @@ fi
325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
326 set dummy ${ncn_progname}; ac_word=$2
327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
328 -echo "configure:4033: checking for $ac_word" >&5
329 +echo "configure:4038: checking for $ac_word" >&5
330 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
331 echo $ac_n "(cached) $ac_c" 1>&6
332 else
333 @@ -4073,7 +4078,7 @@ fi
334 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
335 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
337 -echo "configure:4077: checking for $ac_word" >&5
338 +echo "configure:4082: checking for $ac_word" >&5
339 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
340 echo $ac_n "(cached) $ac_c" 1>&6
341 else
342 @@ -4104,7 +4109,7 @@ fi
343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
344 set dummy ${ncn_progname}; ac_word=$2
345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
346 -echo "configure:4108: checking for $ac_word" >&5
347 +echo "configure:4113: checking for $ac_word" >&5
348 if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
349 echo $ac_n "(cached) $ac_c" 1>&6
350 else
351 @@ -4148,7 +4153,7 @@ fi
352 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
353 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
355 -echo "configure:4152: checking for $ac_word" >&5
356 +echo "configure:4157: checking for $ac_word" >&5
357 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
358 echo $ac_n "(cached) $ac_c" 1>&6
359 else
360 @@ -4179,7 +4184,7 @@ fi
361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
362 set dummy ${ncn_progname}; ac_word=$2
363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
364 -echo "configure:4183: checking for $ac_word" >&5
365 +echo "configure:4188: checking for $ac_word" >&5
366 if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
367 echo $ac_n "(cached) $ac_c" 1>&6
368 else
369 @@ -4223,7 +4228,7 @@ fi
370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
371 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
373 -echo "configure:4227: checking for $ac_word" >&5
374 +echo "configure:4232: checking for $ac_word" >&5
375 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
376 echo $ac_n "(cached) $ac_c" 1>&6
377 else
378 @@ -4254,7 +4259,7 @@ fi
379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
380 set dummy ${ncn_progname}; ac_word=$2
381 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
382 -echo "configure:4258: checking for $ac_word" >&5
383 +echo "configure:4263: checking for $ac_word" >&5
384 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
385 echo $ac_n "(cached) $ac_c" 1>&6
386 else
387 @@ -4298,7 +4303,7 @@ fi
388 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
389 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
391 -echo "configure:4302: checking for $ac_word" >&5
392 +echo "configure:4307: checking for $ac_word" >&5
393 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
394 echo $ac_n "(cached) $ac_c" 1>&6
395 else
396 @@ -4329,7 +4334,7 @@ fi
397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
398 set dummy ${ncn_progname}; ac_word=$2
399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
400 -echo "configure:4333: checking for $ac_word" >&5
401 +echo "configure:4338: checking for $ac_word" >&5
402 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
403 echo $ac_n "(cached) $ac_c" 1>&6
404 else
405 @@ -4368,7 +4373,7 @@ fi
406 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
407 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
409 -echo "configure:4372: checking for $ac_word" >&5
410 +echo "configure:4377: checking for $ac_word" >&5
411 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
412 echo $ac_n "(cached) $ac_c" 1>&6
413 else
414 @@ -4399,7 +4404,7 @@ fi
415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
416 set dummy ${ncn_progname}; ac_word=$2
417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
418 -echo "configure:4403: checking for $ac_word" >&5
419 +echo "configure:4408: checking for $ac_word" >&5
420 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
421 echo $ac_n "(cached) $ac_c" 1>&6
422 else
423 @@ -4438,7 +4443,7 @@ fi
424 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
425 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
427 -echo "configure:4442: checking for $ac_word" >&5
428 +echo "configure:4447: checking for $ac_word" >&5
429 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
430 echo $ac_n "(cached) $ac_c" 1>&6
431 else
432 @@ -4469,7 +4474,7 @@ fi
433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
434 set dummy ${ncn_progname}; ac_word=$2
435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
436 -echo "configure:4473: checking for $ac_word" >&5
437 +echo "configure:4478: checking for $ac_word" >&5
438 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
439 echo $ac_n "(cached) $ac_c" 1>&6
440 else
441 @@ -4513,7 +4518,7 @@ fi
442 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
443 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
445 -echo "configure:4517: checking for $ac_word" >&5
446 +echo "configure:4522: checking for $ac_word" >&5
447 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
448 echo $ac_n "(cached) $ac_c" 1>&6
449 else
450 @@ -4544,7 +4549,7 @@ fi
451 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
452 set dummy ${ncn_progname}; ac_word=$2
453 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
454 -echo "configure:4548: checking for $ac_word" >&5
455 +echo "configure:4553: checking for $ac_word" >&5
456 if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
457 echo $ac_n "(cached) $ac_c" 1>&6
458 else
459 @@ -4588,7 +4593,7 @@ fi
460 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
461 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
463 -echo "configure:4592: checking for $ac_word" >&5
464 +echo "configure:4597: checking for $ac_word" >&5
465 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
466 echo $ac_n "(cached) $ac_c" 1>&6
467 else
468 @@ -4619,7 +4624,7 @@ fi
469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
470 set dummy ${ncn_progname}; ac_word=$2
471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
472 -echo "configure:4623: checking for $ac_word" >&5
473 +echo "configure:4628: checking for $ac_word" >&5
474 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
475 echo $ac_n "(cached) $ac_c" 1>&6
476 else
477 @@ -4683,7 +4688,7 @@ fi
478 if test -n "$with_build_time_tools"; then
479 for ncn_progname in cc gcc; do
480 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
481 -echo "configure:4687: checking for ${ncn_progname} in $with_build_time_tools" >&5
482 +echo "configure:4692: checking for ${ncn_progname} in $with_build_time_tools" >&5
483 if test -x $with_build_time_tools/${ncn_progname}; then
484 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
485 echo "$ac_t""yes" 1>&6
486 @@ -4700,7 +4705,7 @@ if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
487 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
488 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
490 -echo "configure:4704: checking for $ac_word" >&5
491 +echo "configure:4709: checking for $ac_word" >&5
492 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
493 echo $ac_n "(cached) $ac_c" 1>&6
494 else
495 @@ -4731,7 +4736,7 @@ fi
496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
497 set dummy ${ncn_progname}; ac_word=$2
498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
499 -echo "configure:4735: checking for $ac_word" >&5
500 +echo "configure:4740: checking for $ac_word" >&5
501 if eval "test \"`echo '$''{'ac_cv_prog_CC_FOR_TARGET'+set}'`\" = set"; then
502 echo $ac_n "(cached) $ac_c" 1>&6
503 else
504 @@ -4776,7 +4781,7 @@ fi
505 if test -n "$with_build_time_tools"; then
506 for ncn_progname in c++ g++ cxx gxx; do
507 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
508 -echo "configure:4780: checking for ${ncn_progname} in $with_build_time_tools" >&5
509 +echo "configure:4785: checking for ${ncn_progname} in $with_build_time_tools" >&5
510 if test -x $with_build_time_tools/${ncn_progname}; then
511 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
512 echo "$ac_t""yes" 1>&6
513 @@ -4793,7 +4798,7 @@ if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
514 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
515 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
517 -echo "configure:4797: checking for $ac_word" >&5
518 +echo "configure:4802: checking for $ac_word" >&5
519 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
520 echo $ac_n "(cached) $ac_c" 1>&6
521 else
522 @@ -4824,7 +4829,7 @@ fi
523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
524 set dummy ${ncn_progname}; ac_word=$2
525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
526 -echo "configure:4828: checking for $ac_word" >&5
527 +echo "configure:4833: checking for $ac_word" >&5
528 if eval "test \"`echo '$''{'ac_cv_prog_CXX_FOR_TARGET'+set}'`\" = set"; then
529 echo $ac_n "(cached) $ac_c" 1>&6
530 else
531 @@ -4869,7 +4874,7 @@ fi
532 if test -n "$with_build_time_tools"; then
533 for ncn_progname in gcc; do
534 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
535 -echo "configure:4873: checking for ${ncn_progname} in $with_build_time_tools" >&5
536 +echo "configure:4878: checking for ${ncn_progname} in $with_build_time_tools" >&5
537 if test -x $with_build_time_tools/${ncn_progname}; then
538 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
539 echo "$ac_t""yes" 1>&6
540 @@ -4886,7 +4891,7 @@ if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
542 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
544 -echo "configure:4890: checking for $ac_word" >&5
545 +echo "configure:4895: checking for $ac_word" >&5
546 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&6
548 else
549 @@ -4917,7 +4922,7 @@ fi
550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
551 set dummy ${ncn_progname}; ac_word=$2
552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553 -echo "configure:4921: checking for $ac_word" >&5
554 +echo "configure:4926: checking for $ac_word" >&5
555 if eval "test \"`echo '$''{'ac_cv_prog_GCC_FOR_TARGET'+set}'`\" = set"; then
556 echo $ac_n "(cached) $ac_c" 1>&6
557 else
558 @@ -4957,7 +4962,7 @@ fi
559 if test -n "$with_build_time_tools"; then
560 for ncn_progname in gcj; do
561 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
562 -echo "configure:4961: checking for ${ncn_progname} in $with_build_time_tools" >&5
563 +echo "configure:4966: checking for ${ncn_progname} in $with_build_time_tools" >&5
564 if test -x $with_build_time_tools/${ncn_progname}; then
565 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
566 echo "$ac_t""yes" 1>&6
567 @@ -4974,7 +4979,7 @@ if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
568 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
569 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
571 -echo "configure:4978: checking for $ac_word" >&5
572 +echo "configure:4983: checking for $ac_word" >&5
573 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
575 else
576 @@ -5005,7 +5010,7 @@ fi
577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
578 set dummy ${ncn_progname}; ac_word=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 -echo "configure:5009: checking for $ac_word" >&5
581 +echo "configure:5014: checking for $ac_word" >&5
582 if eval "test \"`echo '$''{'ac_cv_prog_GCJ_FOR_TARGET'+set}'`\" = set"; then
583 echo $ac_n "(cached) $ac_c" 1>&6
584 else
585 @@ -5050,7 +5055,7 @@ fi
586 if test -n "$with_build_time_tools"; then
587 for ncn_progname in gfortran; do
588 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
589 -echo "configure:5054: checking for ${ncn_progname} in $with_build_time_tools" >&5
590 +echo "configure:5059: checking for ${ncn_progname} in $with_build_time_tools" >&5
591 if test -x $with_build_time_tools/${ncn_progname}; then
592 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
593 echo "$ac_t""yes" 1>&6
594 @@ -5067,7 +5072,7 @@ if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
595 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
596 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598 -echo "configure:5071: checking for $ac_word" >&5
599 +echo "configure:5076: checking for $ac_word" >&5
600 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
602 else
603 @@ -5098,7 +5103,7 @@ fi
604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
605 set dummy ${ncn_progname}; ac_word=$2
606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607 -echo "configure:5102: checking for $ac_word" >&5
608 +echo "configure:5107: checking for $ac_word" >&5
609 if eval "test \"`echo '$''{'ac_cv_prog_GFORTRAN_FOR_TARGET'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
611 else
612 @@ -5207,7 +5212,7 @@ rm conftest.c
613 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
614 if test -n "$with_build_time_tools"; then
615 echo $ac_n "checking for ar in $with_build_time_tools""... $ac_c" 1>&6
616 -echo "configure:5211: checking for ar in $with_build_time_tools" >&5
617 +echo "configure:5216: checking for ar in $with_build_time_tools" >&5
618 if test -x $with_build_time_tools/ar; then
619 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
620 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
621 @@ -5225,7 +5230,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
622 # Extract the first word of "ar", so it can be a program name with args.
623 set dummy ar; ac_word=$2
624 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
625 -echo "configure:5229: checking for $ac_word" >&5
626 +echo "configure:5234: checking for $ac_word" >&5
627 if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
628 echo $ac_n "(cached) $ac_c" 1>&6
629 else
630 @@ -5262,7 +5267,7 @@ if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
631 if test -n "$with_build_time_tools"; then
632 for ncn_progname in ar; do
633 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
634 -echo "configure:5266: checking for ${ncn_progname} in $with_build_time_tools" >&5
635 +echo "configure:5271: checking for ${ncn_progname} in $with_build_time_tools" >&5
636 if test -x $with_build_time_tools/${ncn_progname}; then
637 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
638 echo "$ac_t""yes" 1>&6
639 @@ -5279,7 +5284,7 @@ if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
641 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
643 -echo "configure:5283: checking for $ac_word" >&5
644 +echo "configure:5288: checking for $ac_word" >&5
645 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
647 else
648 @@ -5310,7 +5315,7 @@ fi
649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
650 set dummy ${ncn_progname}; ac_word=$2
651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
652 -echo "configure:5314: checking for $ac_word" >&5
653 +echo "configure:5319: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_AR_FOR_TARGET'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656 else
657 @@ -5362,7 +5367,7 @@ fi
658 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
659 if test -n "$with_build_time_tools"; then
660 echo $ac_n "checking for as in $with_build_time_tools""... $ac_c" 1>&6
661 -echo "configure:5366: checking for as in $with_build_time_tools" >&5
662 +echo "configure:5371: checking for as in $with_build_time_tools" >&5
663 if test -x $with_build_time_tools/as; then
664 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
665 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
666 @@ -5380,7 +5385,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
667 # Extract the first word of "as", so it can be a program name with args.
668 set dummy as; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 -echo "configure:5384: checking for $ac_word" >&5
671 +echo "configure:5389: checking for $ac_word" >&5
672 if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
673 echo $ac_n "(cached) $ac_c" 1>&6
674 else
675 @@ -5417,7 +5422,7 @@ if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
676 if test -n "$with_build_time_tools"; then
677 for ncn_progname in as; do
678 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
679 -echo "configure:5421: checking for ${ncn_progname} in $with_build_time_tools" >&5
680 +echo "configure:5426: checking for ${ncn_progname} in $with_build_time_tools" >&5
681 if test -x $with_build_time_tools/${ncn_progname}; then
682 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
683 echo "$ac_t""yes" 1>&6
684 @@ -5434,7 +5439,7 @@ if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
686 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688 -echo "configure:5438: checking for $ac_word" >&5
689 +echo "configure:5443: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
692 else
693 @@ -5465,7 +5470,7 @@ fi
694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
695 set dummy ${ncn_progname}; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 -echo "configure:5469: checking for $ac_word" >&5
698 +echo "configure:5474: checking for $ac_word" >&5
699 if eval "test \"`echo '$''{'ac_cv_prog_AS_FOR_TARGET'+set}'`\" = set"; then
700 echo $ac_n "(cached) $ac_c" 1>&6
701 else
702 @@ -5517,7 +5522,7 @@ fi
703 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
704 if test -n "$with_build_time_tools"; then
705 echo $ac_n "checking for dlltool in $with_build_time_tools""... $ac_c" 1>&6
706 -echo "configure:5521: checking for dlltool in $with_build_time_tools" >&5
707 +echo "configure:5526: checking for dlltool in $with_build_time_tools" >&5
708 if test -x $with_build_time_tools/dlltool; then
709 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
710 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
711 @@ -5535,7 +5540,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
712 # Extract the first word of "dlltool", so it can be a program name with args.
713 set dummy dlltool; ac_word=$2
714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
715 -echo "configure:5539: checking for $ac_word" >&5
716 +echo "configure:5544: checking for $ac_word" >&5
717 if eval "test \"`echo '$''{'ac_cv_path_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
718 echo $ac_n "(cached) $ac_c" 1>&6
719 else
720 @@ -5572,7 +5577,7 @@ if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
721 if test -n "$with_build_time_tools"; then
722 for ncn_progname in dlltool; do
723 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
724 -echo "configure:5576: checking for ${ncn_progname} in $with_build_time_tools" >&5
725 +echo "configure:5581: checking for ${ncn_progname} in $with_build_time_tools" >&5
726 if test -x $with_build_time_tools/${ncn_progname}; then
727 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
728 echo "$ac_t""yes" 1>&6
729 @@ -5589,7 +5594,7 @@ if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
730 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
731 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 -echo "configure:5593: checking for $ac_word" >&5
734 +echo "configure:5598: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
737 else
738 @@ -5620,7 +5625,7 @@ fi
739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
740 set dummy ${ncn_progname}; ac_word=$2
741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
742 -echo "configure:5624: checking for $ac_word" >&5
743 +echo "configure:5629: checking for $ac_word" >&5
744 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
745 echo $ac_n "(cached) $ac_c" 1>&6
746 else
747 @@ -5672,7 +5677,7 @@ fi
748 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
749 if test -n "$with_build_time_tools"; then
750 echo $ac_n "checking for ld in $with_build_time_tools""... $ac_c" 1>&6
751 -echo "configure:5676: checking for ld in $with_build_time_tools" >&5
752 +echo "configure:5681: checking for ld in $with_build_time_tools" >&5
753 if test -x $with_build_time_tools/ld; then
754 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
755 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
756 @@ -5690,7 +5695,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
757 # Extract the first word of "ld", so it can be a program name with args.
758 set dummy ld; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 -echo "configure:5694: checking for $ac_word" >&5
761 +echo "configure:5699: checking for $ac_word" >&5
762 if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
764 else
765 @@ -5727,7 +5732,7 @@ if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
766 if test -n "$with_build_time_tools"; then
767 for ncn_progname in ld; do
768 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
769 -echo "configure:5731: checking for ${ncn_progname} in $with_build_time_tools" >&5
770 +echo "configure:5736: checking for ${ncn_progname} in $with_build_time_tools" >&5
771 if test -x $with_build_time_tools/${ncn_progname}; then
772 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
773 echo "$ac_t""yes" 1>&6
774 @@ -5744,7 +5749,7 @@ if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
776 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 -echo "configure:5748: checking for $ac_word" >&5
779 +echo "configure:5753: checking for $ac_word" >&5
780 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
781 echo $ac_n "(cached) $ac_c" 1>&6
782 else
783 @@ -5775,7 +5780,7 @@ fi
784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
785 set dummy ${ncn_progname}; ac_word=$2
786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
787 -echo "configure:5779: checking for $ac_word" >&5
788 +echo "configure:5784: checking for $ac_word" >&5
789 if eval "test \"`echo '$''{'ac_cv_prog_LD_FOR_TARGET'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
791 else
792 @@ -5827,7 +5832,7 @@ fi
793 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
794 if test -n "$with_build_time_tools"; then
795 echo $ac_n "checking for lipo in $with_build_time_tools""... $ac_c" 1>&6
796 -echo "configure:5831: checking for lipo in $with_build_time_tools" >&5
797 +echo "configure:5836: checking for lipo in $with_build_time_tools" >&5
798 if test -x $with_build_time_tools/lipo; then
799 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
800 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
801 @@ -5845,7 +5850,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
802 # Extract the first word of "lipo", so it can be a program name with args.
803 set dummy lipo; ac_word=$2
804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
805 -echo "configure:5849: checking for $ac_word" >&5
806 +echo "configure:5854: checking for $ac_word" >&5
807 if eval "test \"`echo '$''{'ac_cv_path_LIPO_FOR_TARGET'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809 else
810 @@ -5882,7 +5887,7 @@ if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
811 if test -n "$with_build_time_tools"; then
812 for ncn_progname in lipo; do
813 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
814 -echo "configure:5886: checking for ${ncn_progname} in $with_build_time_tools" >&5
815 +echo "configure:5891: checking for ${ncn_progname} in $with_build_time_tools" >&5
816 if test -x $with_build_time_tools/${ncn_progname}; then
817 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
818 echo "$ac_t""yes" 1>&6
819 @@ -5899,7 +5904,7 @@ if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
821 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 -echo "configure:5903: checking for $ac_word" >&5
824 +echo "configure:5908: checking for $ac_word" >&5
825 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
826 echo $ac_n "(cached) $ac_c" 1>&6
827 else
828 @@ -5930,7 +5935,7 @@ fi
829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
830 set dummy ${ncn_progname}; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 -echo "configure:5934: checking for $ac_word" >&5
833 +echo "configure:5939: checking for $ac_word" >&5
834 if eval "test \"`echo '$''{'ac_cv_prog_LIPO_FOR_TARGET'+set}'`\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
836 else
837 @@ -5982,7 +5987,7 @@ fi
838 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
839 if test -n "$with_build_time_tools"; then
840 echo $ac_n "checking for nm in $with_build_time_tools""... $ac_c" 1>&6
841 -echo "configure:5986: checking for nm in $with_build_time_tools" >&5
842 +echo "configure:5991: checking for nm in $with_build_time_tools" >&5
843 if test -x $with_build_time_tools/nm; then
844 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
845 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
846 @@ -6000,7 +6005,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
847 # Extract the first word of "nm", so it can be a program name with args.
848 set dummy nm; ac_word=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 -echo "configure:6004: checking for $ac_word" >&5
851 +echo "configure:6009: checking for $ac_word" >&5
852 if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
853 echo $ac_n "(cached) $ac_c" 1>&6
854 else
855 @@ -6037,7 +6042,7 @@ if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
856 if test -n "$with_build_time_tools"; then
857 for ncn_progname in nm; do
858 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
859 -echo "configure:6041: checking for ${ncn_progname} in $with_build_time_tools" >&5
860 +echo "configure:6046: checking for ${ncn_progname} in $with_build_time_tools" >&5
861 if test -x $with_build_time_tools/${ncn_progname}; then
862 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
863 echo "$ac_t""yes" 1>&6
864 @@ -6054,7 +6059,7 @@ if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
865 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
866 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
868 -echo "configure:6058: checking for $ac_word" >&5
869 +echo "configure:6063: checking for $ac_word" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
872 else
873 @@ -6085,7 +6090,7 @@ fi
874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
875 set dummy ${ncn_progname}; ac_word=$2
876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877 -echo "configure:6089: checking for $ac_word" >&5
878 +echo "configure:6094: checking for $ac_word" >&5
879 if eval "test \"`echo '$''{'ac_cv_prog_NM_FOR_TARGET'+set}'`\" = set"; then
880 echo $ac_n "(cached) $ac_c" 1>&6
881 else
882 @@ -6137,7 +6142,7 @@ fi
883 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
884 if test -n "$with_build_time_tools"; then
885 echo $ac_n "checking for objdump in $with_build_time_tools""... $ac_c" 1>&6
886 -echo "configure:6141: checking for objdump in $with_build_time_tools" >&5
887 +echo "configure:6146: checking for objdump in $with_build_time_tools" >&5
888 if test -x $with_build_time_tools/objdump; then
889 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
890 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
891 @@ -6155,7 +6160,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
892 # Extract the first word of "objdump", so it can be a program name with args.
893 set dummy objdump; ac_word=$2
894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895 -echo "configure:6159: checking for $ac_word" >&5
896 +echo "configure:6164: checking for $ac_word" >&5
897 if eval "test \"`echo '$''{'ac_cv_path_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
899 else
900 @@ -6192,7 +6197,7 @@ if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
901 if test -n "$with_build_time_tools"; then
902 for ncn_progname in objdump; do
903 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
904 -echo "configure:6196: checking for ${ncn_progname} in $with_build_time_tools" >&5
905 +echo "configure:6201: checking for ${ncn_progname} in $with_build_time_tools" >&5
906 if test -x $with_build_time_tools/${ncn_progname}; then
907 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
908 echo "$ac_t""yes" 1>&6
909 @@ -6209,7 +6214,7 @@ if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
911 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
913 -echo "configure:6213: checking for $ac_word" >&5
914 +echo "configure:6218: checking for $ac_word" >&5
915 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
917 else
918 @@ -6240,7 +6245,7 @@ fi
919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
920 set dummy ${ncn_progname}; ac_word=$2
921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922 -echo "configure:6244: checking for $ac_word" >&5
923 +echo "configure:6249: checking for $ac_word" >&5
924 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP_FOR_TARGET'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
926 else
927 @@ -6292,7 +6297,7 @@ fi
928 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
929 if test -n "$with_build_time_tools"; then
930 echo $ac_n "checking for ranlib in $with_build_time_tools""... $ac_c" 1>&6
931 -echo "configure:6296: checking for ranlib in $with_build_time_tools" >&5
932 +echo "configure:6301: checking for ranlib in $with_build_time_tools" >&5
933 if test -x $with_build_time_tools/ranlib; then
934 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
935 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
936 @@ -6310,7 +6315,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
937 # Extract the first word of "ranlib", so it can be a program name with args.
938 set dummy ranlib; ac_word=$2
939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
940 -echo "configure:6314: checking for $ac_word" >&5
941 +echo "configure:6319: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
944 else
945 @@ -6347,7 +6352,7 @@ if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
946 if test -n "$with_build_time_tools"; then
947 for ncn_progname in ranlib; do
948 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
949 -echo "configure:6351: checking for ${ncn_progname} in $with_build_time_tools" >&5
950 +echo "configure:6356: checking for ${ncn_progname} in $with_build_time_tools" >&5
951 if test -x $with_build_time_tools/${ncn_progname}; then
952 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
953 echo "$ac_t""yes" 1>&6
954 @@ -6364,7 +6369,7 @@ if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
956 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 -echo "configure:6368: checking for $ac_word" >&5
959 +echo "configure:6373: checking for $ac_word" >&5
960 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
961 echo $ac_n "(cached) $ac_c" 1>&6
962 else
963 @@ -6395,7 +6400,7 @@ fi
964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
965 set dummy ${ncn_progname}; ac_word=$2
966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967 -echo "configure:6399: checking for $ac_word" >&5
968 +echo "configure:6404: checking for $ac_word" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB_FOR_TARGET'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
971 else
972 @@ -6447,7 +6452,7 @@ fi
973 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
974 if test -n "$with_build_time_tools"; then
975 echo $ac_n "checking for strip in $with_build_time_tools""... $ac_c" 1>&6
976 -echo "configure:6451: checking for strip in $with_build_time_tools" >&5
977 +echo "configure:6456: checking for strip in $with_build_time_tools" >&5
978 if test -x $with_build_time_tools/strip; then
979 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
980 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
981 @@ -6465,7 +6470,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
982 # Extract the first word of "strip", so it can be a program name with args.
983 set dummy strip; ac_word=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 -echo "configure:6469: checking for $ac_word" >&5
986 +echo "configure:6474: checking for $ac_word" >&5
987 if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
988 echo $ac_n "(cached) $ac_c" 1>&6
989 else
990 @@ -6502,7 +6507,7 @@ if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
991 if test -n "$with_build_time_tools"; then
992 for ncn_progname in strip; do
993 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
994 -echo "configure:6506: checking for ${ncn_progname} in $with_build_time_tools" >&5
995 +echo "configure:6511: checking for ${ncn_progname} in $with_build_time_tools" >&5
996 if test -x $with_build_time_tools/${ncn_progname}; then
997 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
998 echo "$ac_t""yes" 1>&6
999 @@ -6519,7 +6524,7 @@ if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
1000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
1001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1002 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1003 -echo "configure:6523: checking for $ac_word" >&5
1004 +echo "configure:6528: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008 @@ -6550,7 +6555,7 @@ fi
1009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
1010 set dummy ${ncn_progname}; ac_word=$2
1011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012 -echo "configure:6554: checking for $ac_word" >&5
1013 +echo "configure:6559: checking for $ac_word" >&5
1014 if eval "test \"`echo '$''{'ac_cv_prog_STRIP_FOR_TARGET'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1016 else
1017 @@ -6602,7 +6607,7 @@ fi
1018 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
1019 if test -n "$with_build_time_tools"; then
1020 echo $ac_n "checking for windres in $with_build_time_tools""... $ac_c" 1>&6
1021 -echo "configure:6606: checking for windres in $with_build_time_tools" >&5
1022 +echo "configure:6611: checking for windres in $with_build_time_tools" >&5
1023 if test -x $with_build_time_tools/windres; then
1024 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
1025 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
1026 @@ -6620,7 +6625,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
1027 # Extract the first word of "windres", so it can be a program name with args.
1028 set dummy windres; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 -echo "configure:6624: checking for $ac_word" >&5
1031 +echo "configure:6629: checking for $ac_word" >&5
1032 if eval "test \"`echo '$''{'ac_cv_path_WINDRES_FOR_TARGET'+set}'`\" = set"; then
1033 echo $ac_n "(cached) $ac_c" 1>&6
1034 else
1035 @@ -6657,7 +6662,7 @@ if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
1036 if test -n "$with_build_time_tools"; then
1037 for ncn_progname in windres; do
1038 echo $ac_n "checking for ${ncn_progname} in $with_build_time_tools""... $ac_c" 1>&6
1039 -echo "configure:6661: checking for ${ncn_progname} in $with_build_time_tools" >&5
1040 +echo "configure:6666: checking for ${ncn_progname} in $with_build_time_tools" >&5
1041 if test -x $with_build_time_tools/${ncn_progname}; then
1042 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
1043 echo "$ac_t""yes" 1>&6
1044 @@ -6674,7 +6679,7 @@ if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
1045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
1046 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 -echo "configure:6678: checking for $ac_word" >&5
1049 +echo "configure:6683: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1052 else
1053 @@ -6705,7 +6710,7 @@ fi
1054 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
1055 set dummy ${ncn_progname}; ac_word=$2
1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1057 -echo "configure:6709: checking for $ac_word" >&5
1058 +echo "configure:6714: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_WINDRES_FOR_TARGET'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1061 else
1062 @@ -6755,7 +6760,7 @@ fi
1063 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
1065 echo $ac_n "checking where to find the target ar""... $ac_c" 1>&6
1066 -echo "configure:6759: checking where to find the target ar" >&5
1067 +echo "configure:6764: checking where to find the target ar" >&5
1068 if test "x${build}" != "x${host}" ; then
1069 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
1070 # We already found the complete path
1071 @@ -6788,7 +6793,7 @@ else
1074 echo $ac_n "checking where to find the target as""... $ac_c" 1>&6
1075 -echo "configure:6792: checking where to find the target as" >&5
1076 +echo "configure:6797: checking where to find the target as" >&5
1077 if test "x${build}" != "x${host}" ; then
1078 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
1079 # We already found the complete path
1080 @@ -6821,7 +6826,7 @@ else
1083 echo $ac_n "checking where to find the target cc""... $ac_c" 1>&6
1084 -echo "configure:6825: checking where to find the target cc" >&5
1085 +echo "configure:6830: checking where to find the target cc" >&5
1086 if test "x${build}" != "x${host}" ; then
1087 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
1088 # We already found the complete path
1089 @@ -6854,7 +6859,7 @@ else
1092 echo $ac_n "checking where to find the target c++""... $ac_c" 1>&6
1093 -echo "configure:6858: checking where to find the target c++" >&5
1094 +echo "configure:6863: checking where to find the target c++" >&5
1095 if test "x${build}" != "x${host}" ; then
1096 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
1097 # We already found the complete path
1098 @@ -6890,7 +6895,7 @@ else
1101 echo $ac_n "checking where to find the target c++ for libstdc++""... $ac_c" 1>&6
1102 -echo "configure:6894: checking where to find the target c++ for libstdc++" >&5
1103 +echo "configure:6899: checking where to find the target c++ for libstdc++" >&5
1104 if test "x${build}" != "x${host}" ; then
1105 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
1106 # We already found the complete path
1107 @@ -6926,7 +6931,7 @@ else
1110 echo $ac_n "checking where to find the target dlltool""... $ac_c" 1>&6
1111 -echo "configure:6930: checking where to find the target dlltool" >&5
1112 +echo "configure:6935: checking where to find the target dlltool" >&5
1113 if test "x${build}" != "x${host}" ; then
1114 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
1115 # We already found the complete path
1116 @@ -6959,7 +6964,7 @@ else
1119 echo $ac_n "checking where to find the target gcc""... $ac_c" 1>&6
1120 -echo "configure:6963: checking where to find the target gcc" >&5
1121 +echo "configure:6968: checking where to find the target gcc" >&5
1122 if test "x${build}" != "x${host}" ; then
1123 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
1124 # We already found the complete path
1125 @@ -6992,7 +6997,7 @@ else
1128 echo $ac_n "checking where to find the target gcj""... $ac_c" 1>&6
1129 -echo "configure:6996: checking where to find the target gcj" >&5
1130 +echo "configure:7001: checking where to find the target gcj" >&5
1131 if test "x${build}" != "x${host}" ; then
1132 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
1133 # We already found the complete path
1134 @@ -7028,7 +7033,7 @@ else
1137 echo $ac_n "checking where to find the target gfortran""... $ac_c" 1>&6
1138 -echo "configure:7032: checking where to find the target gfortran" >&5
1139 +echo "configure:7037: checking where to find the target gfortran" >&5
1140 if test "x${build}" != "x${host}" ; then
1141 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
1142 # We already found the complete path
1143 @@ -7064,7 +7069,7 @@ else
1146 echo $ac_n "checking where to find the target ld""... $ac_c" 1>&6
1147 -echo "configure:7068: checking where to find the target ld" >&5
1148 +echo "configure:7073: checking where to find the target ld" >&5
1149 if test "x${build}" != "x${host}" ; then
1150 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
1151 # We already found the complete path
1152 @@ -7097,7 +7102,7 @@ else
1155 echo $ac_n "checking where to find the target lipo""... $ac_c" 1>&6
1156 -echo "configure:7101: checking where to find the target lipo" >&5
1157 +echo "configure:7106: checking where to find the target lipo" >&5
1158 if test "x${build}" != "x${host}" ; then
1159 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
1160 # We already found the complete path
1161 @@ -7120,7 +7125,7 @@ else
1164 echo $ac_n "checking where to find the target nm""... $ac_c" 1>&6
1165 -echo "configure:7124: checking where to find the target nm" >&5
1166 +echo "configure:7129: checking where to find the target nm" >&5
1167 if test "x${build}" != "x${host}" ; then
1168 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
1169 # We already found the complete path
1170 @@ -7153,7 +7158,7 @@ else
1173 echo $ac_n "checking where to find the target objdump""... $ac_c" 1>&6
1174 -echo "configure:7157: checking where to find the target objdump" >&5
1175 +echo "configure:7162: checking where to find the target objdump" >&5
1176 if test "x${build}" != "x${host}" ; then
1177 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
1178 # We already found the complete path
1179 @@ -7186,7 +7191,7 @@ else
1182 echo $ac_n "checking where to find the target ranlib""... $ac_c" 1>&6
1183 -echo "configure:7190: checking where to find the target ranlib" >&5
1184 +echo "configure:7195: checking where to find the target ranlib" >&5
1185 if test "x${build}" != "x${host}" ; then
1186 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
1187 # We already found the complete path
1188 @@ -7219,7 +7224,7 @@ else
1191 echo $ac_n "checking where to find the target strip""... $ac_c" 1>&6
1192 -echo "configure:7223: checking where to find the target strip" >&5
1193 +echo "configure:7228: checking where to find the target strip" >&5
1194 if test "x${build}" != "x${host}" ; then
1195 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
1196 # We already found the complete path
1197 @@ -7252,7 +7257,7 @@ else
1200 echo $ac_n "checking where to find the target windres""... $ac_c" 1>&6
1201 -echo "configure:7256: checking where to find the target windres" >&5
1202 +echo "configure:7261: checking where to find the target windres" >&5
1203 if test "x${build}" != "x${host}" ; then
1204 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
1205 # We already found the complete path
1206 @@ -7313,7 +7318,7 @@ fi
1209 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1210 -echo "configure:7317: checking whether to enable maintainer-specific portions of Makefiles" >&5
1211 +echo "configure:7322: checking whether to enable maintainer-specific portions of Makefiles" >&5
1212 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1213 if test "${enable_maintainer_mode+set}" = set; then
1214 enableval="$enable_maintainer_mode"
1215 @@ -7362,9 +7367,9 @@ if test "$GCC" = yes; then
1216 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
1217 CFLAGS="$CFLAGS -fkeep-inline-functions"
1218 echo $ac_n "checking whether -fkeep-inline-functions is supported""... $ac_c" 1>&6
1219 -echo "configure:7366: checking whether -fkeep-inline-functions is supported" >&5
1220 +echo "configure:7371: checking whether -fkeep-inline-functions is supported" >&5
1221 cat > conftest.$ac_ext <<EOF
1222 -#line 7368 "configure"
1223 +#line 7373 "configure"
1224 #include "confdefs.h"
1226 #if (__GNUC__ < 3) \
1227 @@ -7377,7 +7382,7 @@ int main() {
1229 ; return 0; }
1231 -if { (eval echo configure:7381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1232 +if { (eval echo configure:7386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1233 rm -rf conftest*
1234 echo "$ac_t""yes" 1>&6; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1235 else
1236 diff --git gcc-4.2.2/configure.in gcc-4.2.2/configure.in
1237 index ebd5d5b..4e80fc3 100644
1238 --- gcc-4.2.2/configure.in
1239 +++ gcc-4.2.2/configure.in
1240 @@ -293,6 +293,9 @@ case "${host}" in
1241 ppc*-*-pe)
1242 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
1244 + *-*-aros*)
1245 + noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv gdb"
1246 + ;;
1247 powerpc-*-beos*)
1248 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
1250 @@ -977,6 +980,8 @@ case "${host}" in
1251 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
1252 host_makefile_frag="config/mh-x86omitfp"
1254 + *-*-aros*)
1255 + ;;
1256 esac
1259 diff --git gcc-4.2.2/fixincludes/configure gcc-4.2.2/fixincludes/configure
1260 index 418b785..dcb4dd6 100755
1261 --- gcc-4.2.2/fixincludes/configure
1262 +++ gcc-4.2.2/fixincludes/configure
1263 @@ -2561,6 +2561,7 @@ else
1265 else
1266 case $host in
1267 + *-*-aros* | \
1268 i?86-*-msdosdjgpp* | \
1269 i?86-*-mingw32* | \
1270 *-*-beos* )
1271 diff --git gcc-4.2.2/fixincludes/configure.ac gcc-4.2.2/fixincludes/configure.ac
1272 index a24061c..899247d 100644
1273 --- gcc-4.2.2/fixincludes/configure.ac
1274 +++ gcc-4.2.2/fixincludes/configure.ac
1275 @@ -47,6 +47,7 @@ else
1276 TARGET=oneprocess
1277 fi],
1278 [case $host in
1279 + *-*-aros* | \
1280 i?86-*-msdosdjgpp* | \
1281 i?86-*-mingw32* | \
1282 *-*-beos* )
1283 diff --git gcc-4.2.2/gcc/c-incpath.c gcc-4.2.2/gcc/c-incpath.c
1284 index 4de2257..6ba72f7 100644
1285 --- gcc-4.2.2/gcc/c-incpath.c
1286 +++ gcc-4.2.2/gcc/c-incpath.c
1287 @@ -38,7 +38,7 @@
1288 # define INO_T_EQ(A, B) (!memcmp (&(A), &(B), sizeof (A)))
1289 # define INO_T_COPY(DEST, SRC) memcpy(&(DEST), &(SRC), sizeof (SRC))
1290 #else
1291 -# if (defined _WIN32 && !defined (_UWIN)) || defined __MSDOS__
1292 +# if (defined _WIN32 && !defined (_UWIN)) || defined __MSDOS__ || defined __AROS__
1293 # define INO_T_EQ(A, B) 0
1294 # else
1295 # define INO_T_EQ(A, B) ((A) == (B))
1296 diff --git gcc-4.2.2/gcc/config.gcc gcc-4.2.2/gcc/config.gcc
1297 index 8e117a1..d50eac1 100644
1298 --- gcc-4.2.2/gcc/config.gcc
1299 +++ gcc-4.2.2/gcc/config.gcc
1300 @@ -539,6 +539,14 @@ case ${target} in
1302 esac
1304 +*-*-aros*)
1305 + gas=yes
1306 + gnu_ld=yes
1307 + thread_file=single
1308 + use_collect2=no
1309 + xm_defines='STDC_HEADERS=1'
1310 + ;;
1312 *-*-openbsd*)
1313 tmake_file="t-libc-ok t-openbsd t-libgcc-pic"
1314 case ${enable_threads} in
1315 @@ -1106,6 +1114,12 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
1316 esac
1317 tmake_file="${tmake_file} i386/t-linux64 i386/t-crtfm t-dfprules"
1319 +i[34567]86-*-aros*)
1320 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h aros.h i386/aros.h"
1321 + ;;
1322 +x86_64-*-aros*)
1323 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h aros.h i386/x86-64.h i386/aros64.h"
1324 + ;;
1325 i[34567]86-*-gnu*)
1327 i[34567]86-pc-msdosdjgpp*)
1328 @@ -1797,6 +1811,11 @@ powerpc-*-linux*spe*)
1329 extra_options="${extra_options} rs6000/sysv4.opt"
1330 tmake_file="rs6000/t-fprules rs6000/t-fprules-softfp soft-fp/t-softfp rs6000/t-ppcos ${tmake_file} rs6000/t-ppccomm"
1332 +powerpc-*-aros*)
1333 + tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h aros.h"
1334 + extra_options="${extra_options} rs6000/sysv4.opt"
1335 + tm_file="${tm_file} rs6000/aros.h"
1336 + ;;
1337 powerpc-*-linux*)
1338 tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h"
1339 extra_options="${extra_options} rs6000/sysv4.opt"
1340 diff --git gcc-4.2.2/gcc/config.host gcc-4.2.2/gcc/config.host
1341 index 7668907..48acd3a 100644
1342 --- gcc-4.2.2/gcc/config.host
1343 +++ gcc-4.2.2/gcc/config.host
1344 @@ -209,4 +209,7 @@ case ${host} in
1345 out_host_hook_obj=host-hpux.o
1346 host_xmake_file="${host_xmake_file} x-hpux"
1348 + *-*-aros*)
1349 + host_can_use_collect2=no
1350 + ;;
1351 esac
1352 diff --git gcc-4.2.2/gcc/config/aros.h gcc-4.2.2/gcc/config/aros.h
1353 new file mode 100644
1354 index 0000000..286fe33
1355 --- /dev/null
1356 +++ gcc-4.2.2/gcc/config/aros.h
1357 @@ -0,0 +1,93 @@
1358 +/* Definitions for AROS
1359 + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
1360 + Contributed by Fabio Alemagna
1361 + Based upon linux.h, contributed by Eric Youngdale.
1363 +This file is part of GNU CC.
1365 +GNU CC is free software; you can redistribute it and/or modify
1366 +it under the terms of the GNU General Public License as published by
1367 +the Free Software Foundation; either version 2, or (at your option)
1368 +any later version.
1370 +GNU CC is distributed in the hope that it will be useful,
1371 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1372 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1373 +GNU General Public License for more details.
1375 +You should have received a copy of the GNU General Public License
1376 +along with GNU CC; see the file COPYING. If not, write to
1377 +the Free Software Foundation, 59 Temple Place - Suite 330,
1378 +Boston, MA 02111-1307, USA. */
1380 +/* Don't assume anything about the header files. */
1381 +#define NO_IMPLICIT_EXTERN_C
1383 +/* AROS uses ctype from libc.a. I am not sure how complete it is.
1384 + For now, we play safe. It may change later. */
1386 +#if 0
1387 +#undef MULTIBYTE_CHARS
1388 +#define MULTIBYTE_CHARS 1
1389 +#endif
1391 +#undef TARGET_OS_CPP_BUILTINS
1392 +#define TARGET_OS_CPP_BUILTINS() \
1393 + do \
1394 + { \
1395 + builtin_define_std ("unix"); \
1396 + builtin_define_std ("AROS"); \
1397 + builtin_define ("__ELF__"); \
1398 + builtin_assert ("system=posix"); \
1399 + } \
1400 + while (0)
1402 +#undef ASM_APP_ON
1403 +#define ASM_APP_ON "#APP\n"
1405 +#undef ASM_APP_OFF
1406 +#define ASM_APP_OFF "#NO_APP\n"
1408 +#undef MD_EXEC_PREFIX
1409 +#undef MD_STARTFILE_PREFIX
1411 +/* Provide a STARTFILE_SPEC appropriate for AROS. AROS has its own
1412 + set of startup files which also take care of handling C++
1413 + constructors/destructors. */
1415 +#undef STARTFILE_SPEC
1416 +#define STARTFILE_SPEC \
1417 + "%{detach:detach.o%s} startup.o%s %{nix:nixmain.o%s}"
1419 +/* Provide a ENDFILE_SPEC appropriate for AROS. */
1421 +#undef ENDFILE_SPEC
1422 +#define ENDFILE_SPEC \
1423 + "-lautoinit"
1425 +/* This is for -profile to use -lc_p instead of -lc. */
1426 +#ifndef CC1_SPEC
1427 +#define CC1_SPEC "%{profile:-p}"
1428 +#endif
1430 +/* The GNU C++ standard library requires that these macros be defined. */
1431 +#undef CPLUSPLUS_CPP_SPEC
1432 +#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
1434 +#undef LIB_SPEC
1435 +#define LIB_SPEC \
1436 + "-lamiga -larossupport %{!noarosc:-larosc} -lm"
1438 +#if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
1439 +#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
1440 +#endif
1442 +/* AROS uses its own collect-like program for the moment. */
1443 +#undef LINKER_NAME
1444 +#define LINKER_NAME "collect-aros"
1446 +/* Define this so we can compile MS code for use with WINE. */
1447 +#undef HANDLE_PRAGMA_PACK_PUSH_POP
1448 +#define HANDLE_PRAGMA_PACK_PUSH_POP
1450 +#define TARGET_HAS_F_SETLKW
1451 diff --git gcc-4.2.2/gcc/config/i386/aros.h gcc-4.2.2/gcc/config/i386/aros.h
1452 new file mode 100644
1453 index 0000000..4a48234
1454 --- /dev/null
1455 +++ gcc-4.2.2/gcc/config/i386/aros.h
1456 @@ -0,0 +1,120 @@
1457 +/* Definitions for Intel 386 running AROS systems with ELF format.
1458 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
1459 + Free Software Foundation, Inc.
1460 + Contributed by Fabio Alemagna.
1461 + Based upon i386/linux.h by Eric Youngdale.
1463 +This file is part of GNU CC.
1465 +GNU CC is free software; you can redistribute it and/or modify
1466 +it under the terms of the GNU General Public License as published by
1467 +the Free Software Foundation; either version 2, or (at your option)
1468 +any later version.
1470 +GNU CC is distributed in the hope that it will be useful,
1471 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1472 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1473 +GNU General Public License for more details.
1475 +You should have received a copy of the GNU General Public License
1476 +along with GNU CC; see the file COPYING. If not, write to
1477 +the Free Software Foundation, 59 Temple Place - Suite 330,
1478 +Boston, MA 02111-1307, USA. */
1480 +/* Output at beginning of assembler file. */
1481 +/* The .file command should always begin the output. */
1482 +#undef TARGET_ASM_FILE_START_FILE_DIRECTIVE
1483 +#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
1485 +#define TARGET_VERSION fprintf (stderr, " (i386 AROS/ELF)");
1487 +/* The svr4 ABI for the i386 says that records and unions are returned
1488 + in memory. */
1489 +#undef DEFAULT_PCC_STRUCT_RETURN
1490 +#define DEFAULT_PCC_STRUCT_RETURN 1
1492 +#undef ASM_COMMENT_START
1493 +#define ASM_COMMENT_START "#"
1495 +#undef DBX_REGISTER_NUMBER
1496 +#define DBX_REGISTER_NUMBER(n) \
1497 + (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
1499 +/* Output assembler code to FILE to call the profiler.
1500 + To the best of my knowledge, no Linux libc has required the label
1501 + argument to mcount. */
1503 +#define NO_PROFILE_COUNTERS 1
1505 +#undef MCOUNT_NAME
1506 +#define MCOUNT_NAME "mcount"
1508 +/* The GLIBC version of mcount for the x86 assumes that there is a
1509 + frame, so we cannot allow profiling without a frame pointer. */
1511 +#undef SUBTARGET_FRAME_POINTER_REQUIRED
1512 +#define SUBTARGET_FRAME_POINTER_REQUIRED current_function_profile
1514 +#undef SIZE_TYPE
1515 +#define SIZE_TYPE "unsigned int"
1517 +#undef PTRDIFF_TYPE
1518 +#define PTRDIFF_TYPE "int"
1520 +#undef WCHAR_TYPE
1521 +#define WCHAR_TYPE "long int"
1523 +#undef WCHAR_TYPE_SIZE
1524 +#define WCHAR_TYPE_SIZE BITS_PER_WORD
1526 +#undef CPP_SPEC
1527 +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
1529 +#undef CC1_SPEC
1530 +#define CC1_SPEC "%(cc1_cpu) %{profile:-p}"
1532 +/* Provide a LINK_SPEC appropriate for AROS. */
1534 +#undef LINK_SPEC
1535 +#define LINK_SPEC "-m elf_i386"
1537 +/* A C statement (sans semicolon) to output to the stdio stream
1538 + FILE the assembler definition of uninitialized global DECL named
1539 + NAME whose size is SIZE bytes and alignment is ALIGN bytes.
1540 + Try to use asm_output_aligned_bss to implement this macro. */
1542 +#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
1543 + asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
1545 +/* A C statement to output to the stdio stream FILE an assembler
1546 + command to advance the location counter to a multiple of 1<<LOG
1547 + bytes if it is within MAX_SKIP bytes.
1549 + This is used to align code labels according to Intel recommendations. */
1551 +#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
1552 +#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
1553 + do { \
1554 + if ((LOG) != 0) { \
1555 + if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
1556 + else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
1557 + } \
1558 + } while (0)
1559 +#endif
1561 +/* Handle special EH pointer encodings. Absolute, pc-relative, and
1562 + indirect are handled automatically. */
1563 +#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
1564 + do { \
1565 + if ((SIZE) == 4 && ((ENCODING) & 0x70) == DW_EH_PE_datarel) \
1566 + { \
1567 + fputs (ASM_LONG, FILE); \
1568 + assemble_name (FILE, XSTR (ADDR, 0)); \
1569 + fputs (((ENCODING) & DW_EH_PE_indirect ? "@GOT" : "@GOTOFF"), FILE); \
1570 + goto DONE; \
1571 + } \
1572 + } while (0)
1575 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
1576 +#undef MD_FALLBACK_FRAME_STATE_FOR
1577 diff --git gcc-4.2.2/gcc/config/i386/aros64.h gcc-4.2.2/gcc/config/i386/aros64.h
1578 new file mode 100644
1579 index 0000000..2c64b27
1580 --- /dev/null
1581 +++ gcc-4.2.2/gcc/config/i386/aros64.h
1582 @@ -0,0 +1,43 @@
1583 +/* Definitions for AMD x86_64 running AROS systems with ELF64 format.
1584 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
1585 + Free Software Foundation, Inc.
1586 + Contributed by Stanislaw Szymczyk <sszymczy@gmail.com>. Based on aros.h.
1588 +This file is part of GNU CC.
1590 +GNU CC is free software; you can redistribute it and/or modify
1591 +it under the terms of the GNU General Public License as published by
1592 +the Free Software Foundation; either version 2, or (at your option)
1593 +any later version.
1595 +GNU CC is distributed in the hope that it will be useful,
1596 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1597 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1598 +GNU General Public License for more details.
1600 +You should have received a copy of the GNU General Public License
1601 +along with GNU CC; see the file COPYING. If not, write to
1602 +the Free Software Foundation, 59 Temple Place - Suite 330,
1603 +Boston, MA 02111-1307, USA. */
1605 +/* Output at beginning of assembler file. */
1606 +/* The .file command should always begin the output. */
1608 +#define TARGET_VERSION fprintf (stderr, " (x86_64 AROS/ELF)");
1610 +#undef CPP_SPEC
1611 +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
1613 +/* The svr4 ABI for the i386 says that records and unions are returned
1614 + in memory. In the 64bit compilation we will turn this flag off in
1615 + override_options, as we never do pcc_struct_return scheme on this target. */
1616 +#undef DEFAULT_PCC_STRUCT_RETURN
1617 +#define DEFAULT_PCC_STRUCT_RETURN 1
1619 +/* Provide a LINK_SPEC appropriate for AROS. */
1621 +#undef LINK_SPEC
1622 +#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386}"
1624 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
1625 +#undef MD_FALLBACK_FRAME_STATE_FOR
1626 diff --git gcc-4.2.2/gcc/config/rs6000/aros.h gcc-4.2.2/gcc/config/rs6000/aros.h
1627 new file mode 100644
1628 index 0000000..9760058
1629 --- /dev/null
1630 +++ gcc-4.2.2/gcc/config/rs6000/aros.h
1631 @@ -0,0 +1,175 @@
1632 +/* Definitions for Powerpc running AROS systems with ELF format.
1633 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
1634 + Free Software Foundation, Inc.
1635 + Contributed by Markus Weiss.
1636 + Based upon i386/aros.h by Fabio Alemagna.
1638 +This file is part of GNU CC.
1640 +GNU CC is free software; you can redistribute it and/or modify
1641 +it under the terms of the GNU General Public License as published by
1642 +the Free Software Foundation; either version 2, or (at your option)
1643 +any later version.
1645 +GNU CC is distributed in the hope that it will be useful,
1646 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1647 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1648 +GNU General Public License for more details.
1650 +You should have received a copy of the GNU General Public License
1651 +along with GNU CC; see the file COPYING. If not, write to
1652 +the Free Software Foundation, 59 Temple Place - Suite 330,
1653 +Boston, MA 02111-1307, USA. */
1655 +/* Symbols missing in comparison to i386/aros.h are either
1656 + defined in elfos.h, rs6000/rs6000.h rs6000/sysv4.h
1657 + or not needed for PowerPC.
1660 +/* We need to define __powerpc__. */
1662 +#undef TARGET_OS_CPP_BUILTINS
1663 +#define TARGET_OS_CPP_BUILTINS() \
1664 + do \
1665 + { \
1666 + builtin_define_std ("unix"); \
1667 + builtin_define_std ("AROS"); \
1668 + builtin_define ("__powerpc__"); \
1669 + builtin_define ("__ELF__"); \
1670 + builtin_assert ("system=posix"); \
1671 + if (flag_pic) \
1672 + { \
1673 + builtin_define ("__PIC__"); \
1674 + builtin_define ("__pic__"); \
1675 + } \
1676 + } \
1677 + while (0)
1679 +/* This one taken from linux.h. */
1680 +/* We are 32-bit all the time, so optimize a little. */
1681 +#undef TARGET_64BIT
1682 +#define TARGET_64BIT 0
1684 +/* Output at beginning of assembler file. */
1685 +/* The .file command should always begin the output. */
1686 +/*#undef TARGET_ASM_FILE_START_FILE_DIRECTIVE
1687 +#define TARGET_ASM_FILE_START_FILE_DIRECTIVE true
1688 +defined in elfos.h
1691 +#undef TARGET_VERSION
1692 +#define TARGET_VERSION fprintf (stderr, " (PowerPC AROS/ELF)");
1694 +/* The svr4 ABI for the i386 says that records and unions are returned
1695 + in memory. */
1696 +/*#undef DEFAULT_PCC_STRUCT_RETURN
1697 +#define DEFAULT_PCC_STRUCT_RETURN 1
1698 +see rs6000/rs6000.h
1702 +#undef ASM_COMMENT_START
1703 +#define ASM_COMMENT_START "#"
1704 +see rs6000/rs6000.h
1708 +#undef DBX_REGISTER_NUMBER
1709 +#define DBX_REGISTER_NUMBER(n) \
1710 + (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
1711 +see rs6000/sysv4.h
1714 +/* Output assembler code to FILE to call the profiler.
1715 + To the best of my knowledge, no Linux libc has required the label
1716 + argument to mcount. */
1719 +#define NO_PROFILE_COUNTERS 1
1720 +not used by other similar ppc compilers
1721 +only in darwin.h rs6000/linux64.h rs6000/rs6000.c
1725 +#undef MCOUNT_NAME
1726 +#define MCOUNT_NAME "mcount"
1727 +see rs6000/sysv4.h RS6000_MCOUNT
1730 +/* The GLIBC version of mcount for the x86 assumes that there is a
1731 + frame, so we cannot allow profiling without a frame pointer. */
1733 +#undef SUBTARGET_FRAME_POINTER_REQUIRED
1734 +#define SUBTARGET_FRAME_POINTER_REQUIRED current_function_profile
1735 +seems to be handled by rs6000/rs6000.h
1738 +#undef SIZE_TYPE
1739 +#define SIZE_TYPE "unsigned int"
1741 +#undef PTRDIFF_TYPE
1742 +#define PTRDIFF_TYPE "int"
1744 +#undef WCHAR_TYPE
1745 +#define WCHAR_TYPE "long int"
1747 +#undef WCHAR_TYPE_SIZE
1748 +#define WCHAR_TYPE_SIZE BITS_PER_WORD
1750 +#undef CPP_SPEC
1751 +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
1753 +#undef CC1_SPEC
1754 +#define CC1_SPEC "%(cc1_cpu) %{profile:-p}"
1756 +/* Provide a LINK_SPEC appropriate for AROS. */
1758 +#undef LINK_SPEC
1759 +#define LINK_SPEC "-m elf32ppc"
1761 +/* A C statement (sans semicolon) to output to the stdio stream
1762 + FILE the assembler definition of uninitialized global DECL named
1763 + NAME whose size is SIZE bytes and alignment is ALIGN bytes.
1764 + Try to use asm_output_aligned_bss to implement this macro. */
1766 +#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
1767 + asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
1768 +see rs6000/sysv4.h
1771 +/* A C statement to output to the stdio stream FILE an assembler
1772 + command to advance the location counter to a multiple of 1<<LOG
1773 + bytes if it is within MAX_SKIP bytes.
1775 + This is used to align code labels according to Intel recommendations. */
1777 +#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
1778 +#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
1779 + do { \
1780 + if ((LOG) != 0) { \
1781 + if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
1782 + else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
1783 + } \
1784 + } while (0)
1785 +#endif
1786 +see rs6000/sysv4.h
1789 +/* Handle special EH pointer encodings. Absolute, pc-relative, and
1790 + indirect are handled automatically. */
1792 +#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
1793 + do { \
1794 + if ((SIZE) == 4 && ((ENCODING) & 0x70) == DW_EH_PE_datarel) \
1795 + { \
1796 + fputs (ASM_LONG, FILE); \
1797 + assemble_name (FILE, XSTR (ADDR, 0)); \
1798 + fputs (((ENCODING) & DW_EH_PE_indirect ? "@GOT" : "@GOTOFF"), FILE); \
1799 + goto DONE; \
1800 + } \
1801 + } while (0)
1802 +not used for PowerPC
1805 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
1806 +#undef MD_FALLBACK_FRAME_STATE_FOR
1807 diff --git gcc-4.2.2/gcc/config/rs6000/rs6000.c gcc-4.2.2/gcc/config/rs6000/rs6000.c
1808 index 5e4a0aa..1b88e0a 100644
1809 --- gcc-4.2.2/gcc/config/rs6000/rs6000.c
1810 +++ gcc-4.2.2/gcc/config/rs6000/rs6000.c
1811 @@ -4434,6 +4434,9 @@ init_cumulative_args (CUMULATIVE_ARGS *cum, tree fntype,
1812 && !lookup_attribute ("shortcall", TYPE_ATTRIBUTES (fntype))))
1813 cum->call_cookie |= CALL_LONG;
1815 + cum->stackparm = fntype && lookup_attribute("stackparm",
1816 + TYPE_ATTRIBUTES(fntype));
1818 if (TARGET_DEBUG_ARG)
1820 fprintf (stderr, "\ninit_cumulative_args:");
1821 @@ -5233,6 +5236,9 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode,
1822 return GEN_INT (cum->call_cookie);
1825 + if (cum->stackparm)
1826 + return NULL_RTX;
1828 if (rs6000_darwin64_abi && mode == BLKmode
1829 && TREE_CODE (type) == RECORD_TYPE)
1831 @@ -5634,6 +5640,9 @@ setup_incoming_varargs (CUMULATIVE_ARGS *cum, enum machine_mode mode,
1832 rtx save_area = NULL_RTX, mem;
1833 int first_reg_offset, set;
1835 + if (cum->stackparm)
1836 + return;
1838 /* Skip the last named argument. */
1839 next_cum = *cum;
1840 function_arg_advance (&next_cum, mode, type, 1, 0);
1841 @@ -17509,6 +17518,7 @@ const struct attribute_spec rs6000_attribute_table[] =
1842 { "altivec", 1, 1, false, true, false, rs6000_handle_altivec_attribute },
1843 { "longcall", 0, 0, false, true, true, rs6000_handle_longcall_attribute },
1844 { "shortcall", 0, 0, false, true, true, rs6000_handle_longcall_attribute },
1845 + { "stackparm", 0, 0, false, true, true, rs6000_handle_longcall_attribute },
1846 { "ms_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute },
1847 { "gcc_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute },
1848 #ifdef SUBTARGET_ATTRIBUTE_TABLE
1849 diff --git gcc-4.2.2/gcc/config/rs6000/rs6000.h gcc-4.2.2/gcc/config/rs6000/rs6000.h
1850 index f916ffe..d3fdcfe 100644
1851 --- gcc-4.2.2/gcc/config/rs6000/rs6000.h
1852 +++ gcc-4.2.2/gcc/config/rs6000/rs6000.h
1853 @@ -1369,6 +1369,7 @@ typedef struct rs6000_args
1854 int nargs_prototype; /* # args left in the current prototype */
1855 int prototype; /* Whether a prototype was defined */
1856 int stdarg; /* Whether function is a stdarg function. */
1857 + int stackparm; /* Whether function has all args on the stack */
1858 int call_cookie; /* Do special things for this call */
1859 int sysv_gregno; /* next available GP register */
1860 int intoffset; /* running offset in struct (darwin64) */
1861 diff --git gcc-4.2.2/gcc/gcc.c gcc-4.2.2/gcc/gcc.c
1862 index 0831e4d..90c55b1 100644
1863 --- gcc-4.2.2/gcc/gcc.c
1864 +++ gcc-4.2.2/gcc/gcc.c
1865 @@ -3723,7 +3723,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n"
1867 /* -pipe has to go into the switches array as well as
1868 setting a flag. */
1869 - use_pipes = 1;
1870 + use_pipes = 0;
1871 n_switches++;
1873 else if (strcmp (argv[i], "-###") == 0)
1874 diff --git gcc-4.2.2/gcc/ginclude/stddef.h gcc-4.2.2/gcc/ginclude/stddef.h
1875 index 7e61795..d02f878 100644
1876 --- gcc-4.2.2/gcc/ginclude/stddef.h
1877 +++ gcc-4.2.2/gcc/ginclude/stddef.h
1878 @@ -58,7 +58,7 @@ Boston, MA 02110-1301, USA. */
1879 #include <machine/ansi.h>
1880 #endif
1881 /* On FreeBSD 5, machine/ansi.h does not exist anymore... */
1882 -#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
1883 +#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) || defined(__AROS__)
1884 #include <sys/_types.h>
1885 #endif
1887 @@ -66,31 +66,36 @@ Boston, MA 02110-1301, USA. */
1888 defined if the corresponding type is *not* defined.
1889 FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_ */
1890 #if defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_)
1891 -#if !defined(_SIZE_T_) && !defined(_BSD_SIZE_T_)
1892 +#if !defined(_SIZE_T_) && !defined(_BSD_SIZE_T_) && !defined(_AROS_SIZE_T_)
1893 #define _SIZE_T
1894 #endif
1895 -#if !defined(_PTRDIFF_T_) && !defined(_BSD_PTRDIFF_T_)
1896 +#if !defined(_PTRDIFF_T_) && !defined(_BSD_PTRDIFF_T_) && !defined(_AROS_PTRDIFF_T_)
1897 #define _PTRDIFF_T
1898 #endif
1899 /* On BSD/386 1.1, at least, machine/ansi.h defines _BSD_WCHAR_T_
1900 instead of _WCHAR_T_. */
1901 -#if !defined(_WCHAR_T_) && !defined(_BSD_WCHAR_T_)
1902 +#if !defined(_WCHAR_T_) && !defined(_BSD_WCHAR_T_) && !defined(_AROS_WCHAR_T_)
1903 #ifndef _BSD_WCHAR_T_
1904 +#ifndef _AROS_WCHAR_T_
1905 #define _WCHAR_T
1906 #endif
1907 #endif
1908 +#endif
1909 /* Undef _FOO_T_ if we are supposed to define foo_t. */
1910 #if defined (__need_ptrdiff_t) || defined (_STDDEF_H_)
1911 #undef _PTRDIFF_T_
1912 #undef _BSD_PTRDIFF_T_
1913 +#undef _AROS_PTRDIFF_T_
1914 #endif
1915 #if defined (__need_size_t) || defined (_STDDEF_H_)
1916 #undef _SIZE_T_
1917 #undef _BSD_SIZE_T_
1918 +#undef _AROS_PTRDIFF_T_
1919 #endif
1920 #if defined (__need_wchar_t) || defined (_STDDEF_H_)
1921 #undef _WCHAR_T_
1922 #undef _BSD_WCHAR_T_
1923 +#undef _AROS_PTRDIFF_T_
1924 #endif
1925 #endif /* defined(_ANSI_H_) || defined(_MACHINE_ANSI_H_) */
1927 @@ -136,6 +141,7 @@ _TYPE_wchar_t;
1928 #ifndef __PTRDIFF_T
1929 #ifndef _PTRDIFF_T_
1930 #ifndef _BSD_PTRDIFF_T_
1931 +#ifndef _AROS_PTRDIFF_T_
1932 #ifndef ___int_ptrdiff_t_h
1933 #ifndef _GCC_PTRDIFF_T
1934 #define _PTRDIFF_T
1935 @@ -144,6 +150,7 @@ _TYPE_wchar_t;
1936 #define __PTRDIFF_T
1937 #define _PTRDIFF_T_
1938 #define _BSD_PTRDIFF_T_
1939 +#define _AROS_PTRDIFF_T_
1940 #define ___int_ptrdiff_t_h
1941 #define _GCC_PTRDIFF_T
1942 #ifndef __PTRDIFF_TYPE__
1943 @@ -152,6 +159,7 @@ _TYPE_wchar_t;
1944 typedef __PTRDIFF_TYPE__ ptrdiff_t;
1945 #endif /* _GCC_PTRDIFF_T */
1946 #endif /* ___int_ptrdiff_t_h */
1947 +#endif /* _AROS_PTRDIFF_T_ */
1948 #endif /* _BSD_PTRDIFF_T_ */
1949 #endif /* _PTRDIFF_T_ */
1950 #endif /* __PTRDIFF_T */
1951 @@ -178,6 +186,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
1952 #ifndef __SIZE_T
1953 #ifndef _SIZE_T_
1954 #ifndef _BSD_SIZE_T_
1955 +#ifndef _AROS_SIZE_T_
1956 #ifndef _SIZE_T_DEFINED_
1957 #ifndef _SIZE_T_DEFINED
1958 #ifndef _BSD_SIZE_T_DEFINED_ /* Darwin */
1959 @@ -202,7 +211,7 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
1960 #define ___int_size_t_h
1961 #define _GCC_SIZE_T
1962 #define _SIZET_
1963 -#if defined (__FreeBSD__) && (__FreeBSD__ >= 5)
1964 +#if (defined (__FreeBSD__) && (__FreeBSD__ >= 5)) || defined(__AROS__)
1965 /* __size_t is a typedef on FreeBSD 5!, must not trash it. */
1966 #else
1967 #define __size_t
1968 @@ -224,6 +233,7 @@ typedef long ssize_t;
1969 #endif /* _BSD_SIZE_T_DEFINED_ */
1970 #endif /* _SIZE_T_DEFINED */
1971 #endif /* _SIZE_T_DEFINED_ */
1972 +#endif /* _AROS_SIZE_T_ */
1973 #endif /* _BSD_SIZE_T_ */
1974 #endif /* _SIZE_T_ */
1975 #endif /* __SIZE_T */
1976 @@ -253,6 +263,7 @@ typedef long ssize_t;
1977 #ifndef __WCHAR_T
1978 #ifndef _WCHAR_T_
1979 #ifndef _BSD_WCHAR_T_
1980 +#ifndef _AROS_WCHAR_T_
1981 #ifndef _BSD_WCHAR_T_DEFINED_ /* Darwin */
1982 #ifndef _BSD_RUNE_T_DEFINED_ /* Darwin */
1983 #ifndef _WCHAR_T_DECLARED /* FreeBSD 5 */
1984 @@ -270,6 +281,7 @@ typedef long ssize_t;
1985 #define __WCHAR_T
1986 #define _WCHAR_T_
1987 #define _BSD_WCHAR_T_
1988 +#define _AROS_WCHAR_T_
1989 #define _WCHAR_T_DEFINED_
1990 #define _WCHAR_T_DEFINED
1991 #define _WCHAR_T_H
1992 @@ -340,6 +352,7 @@ typedef __WCHAR_TYPE__ wchar_t;
1993 #endif
1994 #endif
1995 #endif
1996 +#endif
1997 #endif /* __WCHAR_T__ */
1998 #endif /* __wchar_t__ */
1999 #undef __need_wchar_t
2000 @@ -366,27 +379,33 @@ typedef __WINT_TYPE__ wint_t;
2001 #ifdef _GCC_PTRDIFF_T_
2002 #undef _PTRDIFF_T_
2003 #undef _BSD_PTRDIFF_T_
2004 +#undef _AROS_PTRDIFF_T_
2005 #endif
2006 #ifdef _GCC_SIZE_T_
2007 #undef _SIZE_T_
2008 #undef _BSD_SIZE_T_
2009 +#undef _AROS_SIZE_T_
2010 #endif
2011 #ifdef _GCC_WCHAR_T_
2012 #undef _WCHAR_T_
2013 #undef _BSD_WCHAR_T_
2014 +#undef _AROS_WCHAR_T_
2015 #endif
2016 /* The following ones are the real ones. */
2017 #ifdef _GCC_PTRDIFF_T
2018 #undef _PTRDIFF_T_
2019 #undef _BSD_PTRDIFF_T_
2020 +#undef _AROS_PTRDIFF_T_
2021 #endif
2022 #ifdef _GCC_SIZE_T
2023 #undef _SIZE_T_
2024 #undef _BSD_SIZE_T_
2025 +#undef _AROS_SIZE_T_
2026 #endif
2027 #ifdef _GCC_WCHAR_T
2028 #undef _WCHAR_T_
2029 #undef _BSD_WCHAR_T_
2030 +#undef _AROS_WCHAR_T_
2031 #endif
2032 #endif /* _ANSI_H_ || _MACHINE_ANSI_H_ */
2034 diff --git gcc-4.2.2/gcc/toplev.c gcc-4.2.2/gcc/toplev.c
2035 index 34411cb..5883d53 100644
2036 --- gcc-4.2.2/gcc/toplev.c
2037 +++ gcc-4.2.2/gcc/toplev.c
2038 @@ -530,7 +530,7 @@ read_integral_parameter (const char *p, const char *pname, const int defval)
2039 for floor_log2 and exact_log2; see toplev.h. That construct, however,
2040 conflicts with the ISO C++ One Definition Rule. */
2042 -#if GCC_VERSION < 3004 || !defined (__cplusplus)
2043 +#if GCC_VERSION < 3004 || !defined (__cplusplus) || GCC_VERSION >= 4003
2045 /* Given X, an unsigned number, return the largest int Y such that 2**Y <= X.
2046 If X is 0, return -1. */
2047 diff --git gcc-4.2.2/gcc/toplev.h gcc-4.2.2/gcc/toplev.h
2048 index 9e564a6..cd08eff 100644
2049 --- gcc-4.2.2/gcc/toplev.h
2050 +++ gcc-4.2.2/gcc/toplev.h
2051 @@ -157,7 +157,7 @@ extern int exact_log2 (unsigned HOST_WIDE_INT);
2052 extern int floor_log2 (unsigned HOST_WIDE_INT);
2054 /* Inline versions of the above for speed. */
2055 -#if GCC_VERSION >= 3004
2056 +#if GCC_VERSION >= 3004 && GCC_VERSION < 4003
2057 # if HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG
2058 # define CLZ_HWI __builtin_clzl
2059 # define CTZ_HWI __builtin_ctzl
2060 diff --git gcc-4.2.2/include/filenames.h gcc-4.2.2/include/filenames.h
2061 index 6b72fd2..8e51b69 100644
2062 --- gcc-4.2.2/include/filenames.h
2063 +++ gcc-4.2.2/include/filenames.h
2064 @@ -40,6 +40,12 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
2065 #define IS_ABSOLUTE_PATH(f) (IS_DIR_SEPARATOR((f)[0]) || (((f)[0]) && ((f)[1] == ':')))
2066 #define FILENAME_CMP(s1, s2) strcasecmp(s1, s2)
2068 +#elif defined __AROS__
2070 +#define IS_DIR_SEPARATOR(c) ((c) == '/' || (c) == ':')
2071 +#define IS_ABSOLUTE_PATH(f) (IS_DIR_SEPARATOR((f)[0]) || (strchr((f), ':')))
2072 +#define FILENAME_CMP(s1, s2) strcasecmp(s1, s2)
2074 #else /* not DOSish */
2076 #define IS_DIR_SEPARATOR(c) ((c) == '/')
2077 diff --git gcc-4.2.2/libiberty/Makefile.in gcc-4.2.2/libiberty/Makefile.in
2078 index 570d2e8..32c8f8d 100644
2079 --- gcc-4.2.2/libiberty/Makefile.in
2080 +++ gcc-4.2.2/libiberty/Makefile.in
2081 @@ -145,7 +145,7 @@ CFILES = alloca.c argv.c asprintf.c atexit.c \
2082 objalloc.c obstack.c \
2083 partition.c pexecute.c \
2084 pex-common.c pex-djgpp.c pex-msdos.c pex-one.c \
2085 - pex-unix.c pex-win32.c \
2086 + pex-unix.c pex-win32.c pex-aros.c \
2087 physmem.c putenv.c \
2088 random.c regex.c rename.c rindex.c \
2089 safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \
2090 @@ -194,7 +194,7 @@ CONFIGURED_OFILES = ./asprintf.o ./atexit.o \
2091 ./memchr.o ./memcmp.o ./memcpy.o ./memmove.o ./mempcpy.o \
2092 ./memset.o ./mkstemps.o \
2093 ./pex-djgpp.o ./pex-msdos.o \
2094 - ./pex-unix.o ./pex-win32.o \
2095 + ./pex-unix.o ./pex-win32.o pex-aros.o \
2096 ./putenv.o \
2097 ./random.o ./rename.o ./rindex.o \
2098 ./setenv.o ./sigsetmask.o ./snprintf.o ./stpcpy.o ./stpncpy.o \
2099 @@ -879,6 +879,13 @@ $(CONFIGURED_OFILES): stamp-picdir
2100 else true; fi
2101 $(COMPILE.c) $(srcdir)/pexecute.c $(OUTPUT_OPTION)
2103 +./pex-aros.o: $(srcdir)/pex-aros.c config.h $(INCDIR)/ansidecl.h \
2104 + $(INCDIR)/libiberty.h $(srcdir)/pex-common.h
2105 + if [ x"$(PICFLAG)" != x ]; then \
2106 + $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-aros.c -o pic/$@; \
2107 + else true; fi
2108 + $(COMPILE.c) $(srcdir)/pex-aros.c $(OUTPUT_OPTION)
2110 ./physmem.o: $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \
2111 $(INCDIR)/libiberty.h
2112 if [ x"$(PICFLAG)" != x ]; then \
2113 diff --git gcc-4.2.2/libiberty/configure gcc-4.2.2/libiberty/configure
2114 index 3491102..05ee23d 100755
2115 --- gcc-4.2.2/libiberty/configure
2116 +++ gcc-4.2.2/libiberty/configure
2117 @@ -8403,6 +8403,7 @@ case "${host}" in
2118 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
2119 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
2120 *-*-msdos*) pexecute=./pex-msdos.o ;;
2121 + *-*-aros*) pexecute=./pex-aros.o ;;
2122 *) pexecute=./pex-unix.o ;;
2123 esac
2125 diff --git gcc-4.2.2/libiberty/configure.ac gcc-4.2.2/libiberty/configure.ac
2126 index f9713c2..9059660 100644
2127 --- gcc-4.2.2/libiberty/configure.ac
2128 +++ gcc-4.2.2/libiberty/configure.ac
2129 @@ -663,6 +663,7 @@ case "${host}" in
2130 *-*-mingw* | *-*-winnt*) pexecute=./pex-win32.o ;;
2131 *-*-msdosdjgpp*) pexecute=./pex-djgpp.o ;;
2132 *-*-msdos*) pexecute=./pex-msdos.o ;;
2133 + *-*-aros*) pexecute=./pex-aros.o ;;
2134 *) pexecute=./pex-unix.o ;;
2135 esac
2136 AC_SUBST(pexecute)
2137 diff --git gcc-4.2.2/libiberty/pex-aros.c gcc-4.2.2/libiberty/pex-aros.c
2138 new file mode 100644
2139 index 0000000..a1647e2
2140 --- /dev/null
2141 +++ gcc-4.2.2/libiberty/pex-aros.c
2142 @@ -0,0 +1,303 @@
2143 +/* Utilities to execute a program in a subprocess (possibly linked by pipes
2144 + with other subprocesses), and wait for it. OS/2 specialization.
2145 + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
2146 + Free Software Foundation, Inc.
2148 +This file is part of the libiberty library.
2149 +Libiberty is free software; you can redistribute it and/or
2150 +modify it under the terms of the GNU Library General Public
2151 +License as published by the Free Software Foundation; either
2152 +version 2 of the License, or (at your option) any later version.
2154 +Libiberty is distributed in the hope that it will be useful,
2155 +but WITHOUT ANY WARRANTY; without even the implied warranty of
2156 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2157 +Library General Public License for more details.
2159 +You should have received a copy of the GNU Library General Public
2160 +License along with libiberty; see the file COPYING.LIB. If not,
2161 +write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
2162 +Boston, MA 02111-1307, USA. */
2164 +#include "config.h"
2165 +#include "libiberty.h"
2166 +#include "pex-common.h"
2168 +#include <stdio.h>
2169 +#include <signal.h>
2170 +#include <errno.h>
2171 +#ifdef NEED_DECLARATION_ERRNO
2172 +extern int errno;
2173 +#endif
2174 +#ifdef HAVE_STDLIB_H
2175 +#include <stdlib.h>
2176 +#endif
2177 +#ifdef HAVE_STRING_H
2178 +#include <string.h>
2179 +#endif
2180 +#ifdef HAVE_UNISTD_H
2181 +#include <unistd.h>
2182 +#endif
2184 +#include <sys/types.h>
2186 +#ifdef HAVE_FCNTL_H
2187 +#include <fcntl.h>
2188 +#endif
2189 +#ifdef HAVE_SYS_WAIT_H
2190 +#include <sys/wait.h>
2191 +#endif
2192 +#ifdef HAVE_GETRUSAGE
2193 +#include <sys/time.h>
2194 +#include <sys/resource.h>
2195 +#endif
2196 +#ifdef HAVE_SYS_STAT_H
2197 +#include <sys/stat.h>
2198 +#endif
2200 +#include <process.h>
2201 +#include <ctype.h>
2203 +static int pex_aros_open_read (struct pex_obj *, const char *, int);
2204 +static int pex_aros_open_write (struct pex_obj *, const char *, int);
2205 +static long pex_aros_exec_child (struct pex_obj *, int, const char *,
2206 + char * const *, char * const *,
2207 + int, int, int, int,
2208 + const char **, int *);
2209 +static int pex_aros_close (struct pex_obj *, int);
2210 +static int pex_aros_wait (struct pex_obj *, long, int *, struct pex_time *,
2211 + int, const char **, int *);
2213 +/* The list of functions we pass to the common routines. */
2215 +const struct pex_funcs funcs =
2217 + pex_aros_open_read,
2218 + pex_aros_open_write,
2219 + pex_aros_exec_child,
2220 + pex_aros_close,
2221 + pex_aros_wait,
2222 + NULL, /* pipe */
2223 + NULL, /* fdopenr */
2224 + NULL, /* fdopenw */
2225 + NULL /* cleanup */
2228 +/* Return a newly initialized pex_obj structure. */
2230 +struct pex_obj *
2231 +pex_init (int flags, const char *pname, const char *tempbase)
2233 + /* at the moment we do not support pipes */
2234 + flags &= ~ PEX_USE_PIPES;
2236 + return pex_init_common (flags, pname, tempbase, &funcs);
2239 +/* Open a file for reading. */
2241 +static int
2242 +pex_aros_open_read (struct pex_obj *obj ATTRIBUTE_UNUSED, const char *name,
2243 + int binary ATTRIBUTE_UNUSED)
2245 + return open (name, O_RDONLY);
2248 +/* Open a file for writing. */
2250 +static int
2251 +pex_aros_open_write (struct pex_obj *obj ATTRIBUTE_UNUSED, const char *name,
2252 + int binary ATTRIBUTE_UNUSED)
2254 + /* Note that we can't use O_EXCL here because gcc may have already
2255 + created the temporary file via make_temp_file. */
2256 + return open (name, O_WRONLY | O_CREAT | O_TRUNC);
2259 +/* Close a file. */
2261 +static int
2262 +pex_aros_close (struct pex_obj *obj ATTRIBUTE_UNUSED, int fd)
2264 + return close (fd);
2267 +/* Execute a child. */
2269 +static long
2270 +pex_aros_exec_child (struct pex_obj *obj, int flags, const char *executable,
2271 + char * const * argv, char * const * env ATTRIBUTE_UNUSED,
2272 + int in, int out, int errdes,
2273 + int toclose ATTRIBUTE_UNUSED, const char **errmsg, int *err)
2275 + int org_in, org_out, org_errdes;
2276 + int status;
2277 + int *statuses;
2279 + org_in = -1;
2280 + org_out = -1;
2281 + org_errdes = -1;
2283 + if (in != STDIN_FILE_NO)
2285 + org_in = dup (STDIN_FILE_NO);
2286 + if (org_in < 0)
2288 + *err = errno;
2289 + *errmsg = "dup";
2290 + return -1;
2292 + if (dup2 (in, STDIN_FILE_NO) < 0)
2294 + *err = errno;
2295 + *errmsg = "dup2";
2296 + return -1;
2298 + if (close (in) < 0)
2300 + *err = errno;
2301 + *errmsg = "close";
2302 + return -1;
2306 + if (out != STDOUT_FILE_NO)
2308 + org_out = dup (STDOUT_FILE_NO);
2309 + if (org_out < 0)
2311 + *err = errno;
2312 + *errmsg = "dup";
2313 + return -1;
2315 + if (dup2 (out, STDOUT_FILE_NO) < 0)
2317 + *err = errno;
2318 + *errmsg = "dup2";
2319 + return -1;
2321 + if (close (out) < 0)
2323 + *err = errno;
2324 + *errmsg = "close";
2325 + return -1;
2329 + if (errdes != STDERR_FILE_NO
2330 + || (flags & PEX_STDERR_TO_STDOUT) != 0)
2332 + org_errdes = dup (STDERR_FILE_NO);
2333 + if (org_errdes < 0)
2335 + *err = errno;
2336 + *errmsg = "dup";
2337 + return -1;
2339 + if (dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes,
2340 + STDERR_FILE_NO) < 0)
2342 + *err = errno;
2343 + *errmsg = "dup2";
2344 + return -1;
2346 + if (errdes != STDERR_FILE_NO)
2348 + if (close (errdes) < 0)
2350 + *err = errno;
2351 + *errmsg = "close";
2352 + return -1;
2357 + status = (((flags & PEX_SEARCH) != 0 ? spawnvp : spawnv)
2358 + (P_WAIT, executable, (char * const *) argv));
2360 + if (status == -1)
2362 + *err = errno;
2363 + *errmsg = ((flags & PEX_SEARCH) != 0) ? "spawnvp" : "spawnv";
2366 + if (in != STDIN_FILE_NO)
2368 + if (dup2 (org_in, STDIN_FILE_NO) < 0)
2370 + *err = errno;
2371 + *errmsg = "dup2";
2372 + return -1;
2374 + if (close (org_in) < 0)
2376 + *err = errno;
2377 + *errmsg = "close";
2378 + return -1;
2382 + if (out != STDOUT_FILE_NO)
2384 + if (dup2 (org_out, STDOUT_FILE_NO) < 0)
2386 + *err = errno;
2387 + *errmsg = "dup2";
2388 + return -1;
2390 + if (close (org_out) < 0)
2392 + *err = errno;
2393 + *errmsg = "close";
2394 + return -1;
2398 + if (errdes != STDERR_FILE_NO
2399 + || (flags & PEX_STDERR_TO_STDOUT) != 0)
2401 + if (dup2 (org_errdes, STDERR_FILE_NO) < 0)
2403 + *err = errno;
2404 + *errmsg = "dup2";
2405 + return -1;
2407 + if (close (org_errdes) < 0)
2409 + *err = errno;
2410 + *errmsg = "close";
2411 + return -1;
2415 + /* Save the exit status for later. When we are called, obj->count
2416 + is the number of children which have executed before this
2417 + one. */
2418 + statuses = (int *) obj->sysdep;
2419 + statuses = XRESIZEVEC (int, statuses, obj->count + 1);
2420 + statuses[obj->count] = status;
2421 + obj->sysdep = (void *) statuses;
2423 + return obj->count;
2426 +/* Wait for a child process to complete. Actually the child process
2427 + has already completed, and we just need to return the exit
2428 + status. */
2430 +static int
2431 +pex_aros_wait (struct pex_obj *obj, long pid, int *status,
2432 + struct pex_time *time, int done ATTRIBUTE_UNUSED,
2433 + const char **errmsg ATTRIBUTE_UNUSED,
2434 + int *err ATTRIBUTE_UNUSED)
2436 + int *statuses;
2438 + if (time != NULL)
2439 + memset (time, 0, sizeof (struct pex_time));
2441 + statuses = (int *) obj->sysdep;
2442 + *status = statuses[pid];
2444 + return 0;
2446 diff --git gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_base.h gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_base.h
2447 new file mode 100644
2448 index 0000000..d9d7019
2449 --- /dev/null
2450 +++ gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_base.h
2451 @@ -0,0 +1,24 @@
2452 +_GLIBCXX_BEGIN_NAMESPACE(std)
2454 +struct ctype_base {
2455 + /* Non-standard typedefs */
2456 + typedef int * __to_type;
2458 + /* NB: Offsets into ctype<char>::_M_table force a particular size
2459 + on the mask type. Because of this, we don't use an enum. */
2460 + typedef unsigned short int mask;
2462 + static const mask upper = _ISupper;
2463 + static const mask lower = _ISlower;
2464 + static const mask alpha = _ISalpha;
2465 + static const mask digit = _ISdigit;
2466 + static const mask xdigit = _ISxdigit;
2467 + static const mask space = _ISspace;
2468 + static const mask print = _ISprint;
2469 + static const mask graph = _ISgraph;
2470 + static const mask cntrl = _IScntrl;
2471 + static const mask punct = _ISpunct;
2472 + static const mask alnum = _ISalnum;
2475 +_GLIBCXX_END_NAMESPACE
2476 diff --git gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_inline.h gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_inline.h
2477 new file mode 100644
2478 index 0000000..511bf9d
2479 --- /dev/null
2480 +++ gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_inline.h
2481 @@ -0,0 +1,170 @@
2482 +// Locale support -*- C++ -*-
2484 +// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
2486 +// This file is part of the GNU ISO C++ Library. This library is free
2487 +// software; you can redistribute it and/or modify it under the
2488 +// terms of the GNU General Public License as published by the
2489 +// Free Software Foundation; either version 2, or (at your option)
2490 +// any later version.
2492 +// This library is distributed in the hope that it will be useful,
2493 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
2494 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2495 +// GNU General Public License for more details.
2497 +// You should have received a copy of the GNU General Public License along
2498 +// with this library; see the file COPYING. If not, write to the Free
2499 +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
2500 +// USA.
2502 +// As a special exception, you may use this file as part of a free software
2503 +// library without restriction. Specifically, if other files instantiate
2504 +// templates or use macros or inline functions from this file, or you compile
2505 +// this file and link it with other files to produce an executable, this
2506 +// file does not by itself cause the resulting executable to be covered by
2507 +// the GNU General Public License. This exception does not however
2508 +// invalidate any other reasons why the executable file might be covered by
2509 +// the GNU General Public License.
2511 +/** @file ctype_inline.h
2512 + * This is an internal header file, included by other library headers.
2513 + * You should not attempt to use it directly.
2514 + */
2517 +// ISO C++ 14882: 22.1 Locales
2520 +// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
2521 +// functions go in ctype.cc
2523 +// The following definitions are portable, but insanely slow. If one
2524 +// cares at all about performance, then specialized ctype
2525 +// functionality should be added for the native os in question: see
2526 +// the config/os/bits/ctype_*.h files.
2528 +// Constructing a synthetic "C" table should be seriously considered...
2530 +_GLIBCXX_BEGIN_NAMESPACE(std)
2532 + bool
2533 + ctype<char>::
2534 + is(mask __m, char __c) const
2535 + {
2536 + if (_M_table)
2537 + return _M_table[static_cast<unsigned char>(__c)] & __m;
2538 + else
2540 + bool __ret = false;
2541 + const size_t __bitmasksize = 15;
2542 + size_t __bitcur = 0; // Lowest bitmask in ctype_base == 0
2543 + for (; __bitcur <= __bitmasksize; ++__bitcur)
2545 + const mask __bit = static_cast<mask>(1 << __bitcur);
2546 + if (__m & __bit)
2548 + bool __testis;
2549 + switch (__bit)
2551 + case space:
2552 + __testis = isspace(__c);
2553 + break;
2554 + case print:
2555 + __testis = isprint(__c);
2556 + break;
2557 + case cntrl:
2558 + __testis = iscntrl(__c);
2559 + break;
2560 + case upper:
2561 + __testis = isupper(__c);
2562 + break;
2563 + case lower:
2564 + __testis = islower(__c);
2565 + break;
2566 + case alpha:
2567 + __testis = isalpha(__c);
2568 + break;
2569 + case digit:
2570 + __testis = isdigit(__c);
2571 + break;
2572 + case punct:
2573 + __testis = ispunct(__c);
2574 + break;
2575 + case xdigit:
2576 + __testis = isxdigit(__c);
2577 + break;
2578 + case alnum:
2579 + __testis = isalnum(__c);
2580 + break;
2581 + case graph:
2582 + __testis = isgraph(__c);
2583 + break;
2584 + default:
2585 + __testis = false;
2586 + break;
2588 + __ret |= __testis;
2591 + return __ret;
2595 + const char*
2596 + ctype<char>::
2597 + is(const char* __low, const char* __high, mask* __vec) const
2599 + if (_M_table)
2600 + while (__low < __high)
2601 + *__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
2602 + else
2604 + // Highest bitmask in ctype_base == 10.
2605 + const size_t __bitmasksize = 15;
2606 + for (;__low < __high; ++__vec, ++__low)
2608 + mask __m = 0;
2609 + // Lowest bitmask in ctype_base == 0
2610 + size_t __i = 0;
2611 + for (;__i <= __bitmasksize; ++__i)
2613 + const mask __bit = static_cast<mask>(1 << __i);
2614 + if (this->is(__bit, *__low))
2615 + __m |= __bit;
2617 + *__vec = __m;
2620 + return __high;
2623 + const char*
2624 + ctype<char>::
2625 + scan_is(mask __m, const char* __low, const char* __high) const
2627 + if (_M_table)
2628 + while (__low < __high
2629 + && !(_M_table[static_cast<unsigned char>(*__low)] & __m))
2630 + ++__low;
2631 + else
2632 + while (__low < __high && !this->is(__m, *__low))
2633 + ++__low;
2634 + return __low;
2637 + const char*
2638 + ctype<char>::
2639 + scan_not(mask __m, const char* __low, const char* __high) const
2641 + if (_M_table)
2642 + while (__low < __high
2643 + && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
2644 + ++__low;
2645 + else
2646 + while (__low < __high && this->is(__m, *__low) != 0)
2647 + ++__low;
2648 + return __low;
2651 +_GLIBCXX_END_NAMESPACE
2652 diff --git gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_noninline.h gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_noninline.h
2653 new file mode 100644
2654 index 0000000..1e0185b
2655 --- /dev/null
2656 +++ gcc-4.2.2/libstdc++-v3/config/os/aros/ctype_noninline.h
2657 @@ -0,0 +1,56 @@
2658 + const ctype_base::mask*
2659 + ctype<char>::classic_table() throw()
2660 + { return __ctype_b; }
2662 + ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
2663 + size_t __refs)
2664 + : facet(__refs), _M_del(__table != 0 && __del),
2665 + _M_toupper(NULL), _M_tolower(NULL),
2666 + _M_table(__table ? __table : classic_table())
2667 + {
2668 + memset(_M_widen, 0, sizeof(_M_widen));
2669 + _M_widen_ok = 0;
2670 + memset(_M_narrow, 0, sizeof(_M_narrow));
2671 + _M_narrow_ok = 0;
2674 + ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
2675 + : facet(__refs), _M_del(__table != 0 && __del),
2676 + _M_toupper(NULL), _M_tolower(NULL),
2677 + _M_table(__table ? __table : classic_table())
2678 + {
2679 + memset(_M_widen, 0, sizeof(_M_widen));
2680 + _M_widen_ok = 0;
2681 + memset(_M_narrow, 0, sizeof(_M_narrow));
2682 + _M_narrow_ok = 0;
2685 + char
2686 + ctype<char>::do_toupper(char __c) const
2687 + { return ::toupper((int) __c); }
2689 + const char*
2690 + ctype<char>::do_toupper(char* __low, const char* __high) const
2692 + while (__low < __high)
2694 + *__low = ::toupper((int) *__low);
2695 + ++__low;
2697 + return __high;
2700 + char
2701 + ctype<char>::do_tolower(char __c) const
2702 + { return ::tolower((int) __c); }
2704 + const char*
2705 + ctype<char>::do_tolower(char* __low, const char* __high) const
2707 + while (__low < __high)
2709 + *__low = ::tolower((int) *__low);
2710 + ++__low;
2712 + return __high;
2714 diff --git gcc-4.2.2/libstdc++-v3/config/os/aros/os_defines.h gcc-4.2.2/libstdc++-v3/config/os/aros/os_defines.h
2715 new file mode 100644
2716 index 0000000..5edb8bc
2717 --- /dev/null
2718 +++ gcc-4.2.2/libstdc++-v3/config/os/aros/os_defines.h
2719 @@ -0,0 +1,6 @@
2720 +#ifndef _GLIBCXX_OS_DEFINES
2721 +#define _GLIBCXX_OS_DEFINES
2723 +#define __off64_t off_t
2725 +#endif
2726 diff --git gcc-4.2.2/libstdc++-v3/configure gcc-4.2.2/libstdc++-v3/configure
2727 index 03a7f2b..ecf8de7 100755
2728 --- gcc-4.2.2/libstdc++-v3/configure
2729 +++ gcc-4.2.2/libstdc++-v3/configure
2730 @@ -32533,6 +32533,918 @@ _ACEOF
2732 # Base decisions on target environment.
2733 case "${host}" in
2734 + *-aros*)
2747 +for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
2748 + machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h
2750 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2751 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
2752 + echo "$as_me:$LINENO: checking for $ac_header" >&5
2753 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2754 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
2755 + echo $ECHO_N "(cached) $ECHO_C" >&6
2757 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2758 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2759 +else
2760 + # Is the header compilable?
2761 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
2762 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2763 +cat >conftest.$ac_ext <<_ACEOF
2764 +/* confdefs.h. */
2765 +_ACEOF
2766 +cat confdefs.h >>conftest.$ac_ext
2767 +cat >>conftest.$ac_ext <<_ACEOF
2768 +/* end confdefs.h. */
2769 +$ac_includes_default
2770 +#include <$ac_header>
2771 +_ACEOF
2772 +rm -f conftest.$ac_objext
2773 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774 + (eval $ac_compile) 2>conftest.er1
2775 + ac_status=$?
2776 + grep -v '^ *+' conftest.er1 >conftest.err
2777 + rm -f conftest.er1
2778 + cat conftest.err >&5
2779 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 + (exit $ac_status); } &&
2781 + { ac_try='test -z "$ac_c_werror_flag"
2782 + || test ! -s conftest.err'
2783 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 + (eval $ac_try) 2>&5
2785 + ac_status=$?
2786 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 + (exit $ac_status); }; } &&
2788 + { ac_try='test -s conftest.$ac_objext'
2789 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790 + (eval $ac_try) 2>&5
2791 + ac_status=$?
2792 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 + (exit $ac_status); }; }; then
2794 + ac_header_compiler=yes
2795 +else
2796 + echo "$as_me: failed program was:" >&5
2797 +sed 's/^/| /' conftest.$ac_ext >&5
2799 +ac_header_compiler=no
2801 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2802 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2803 +echo "${ECHO_T}$ac_header_compiler" >&6
2805 +# Is the header present?
2806 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
2807 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2808 +cat >conftest.$ac_ext <<_ACEOF
2809 +/* confdefs.h. */
2810 +_ACEOF
2811 +cat confdefs.h >>conftest.$ac_ext
2812 +cat >>conftest.$ac_ext <<_ACEOF
2813 +/* end confdefs.h. */
2814 +#include <$ac_header>
2815 +_ACEOF
2816 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2817 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2818 + ac_status=$?
2819 + grep -v '^ *+' conftest.er1 >conftest.err
2820 + rm -f conftest.er1
2821 + cat conftest.err >&5
2822 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 + (exit $ac_status); } >/dev/null; then
2824 + if test -s conftest.err; then
2825 + ac_cpp_err=$ac_c_preproc_warn_flag
2826 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2827 + else
2828 + ac_cpp_err=
2829 + fi
2830 +else
2831 + ac_cpp_err=yes
2833 +if test -z "$ac_cpp_err"; then
2834 + ac_header_preproc=yes
2835 +else
2836 + echo "$as_me: failed program was:" >&5
2837 +sed 's/^/| /' conftest.$ac_ext >&5
2839 + ac_header_preproc=no
2841 +rm -f conftest.err conftest.$ac_ext
2842 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2843 +echo "${ECHO_T}$ac_header_preproc" >&6
2845 +# So? What about this header?
2846 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2847 + yes:no: )
2848 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2849 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2850 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2851 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2852 + ac_header_preproc=yes
2853 + ;;
2854 + no:yes:* )
2855 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2856 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2857 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2858 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2859 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2860 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2861 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2862 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2863 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2864 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2865 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2866 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2868 + cat <<\_ASBOX
2869 +## ----------------------------------------- ##
2870 +## Report this to the package-unused lists. ##
2871 +## ----------------------------------------- ##
2872 +_ASBOX
2873 + ) |
2874 + sed "s/^/$as_me: WARNING: /" >&2
2875 + ;;
2876 +esac
2877 +echo "$as_me:$LINENO: checking for $ac_header" >&5
2878 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2879 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
2880 + echo $ECHO_N "(cached) $ECHO_C" >&6
2881 +else
2882 + eval "$as_ac_Header=\$ac_header_preproc"
2884 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2885 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2888 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
2889 + cat >>confdefs.h <<_ACEOF
2890 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2891 +_ACEOF
2895 +done
2899 + # If we're not using GNU ld, then there's no point in even trying these
2900 + # tests. Check for that first. We should have already tested for gld
2901 + # by now (in libtool), but require it now just to be safe...
2902 + test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
2903 + test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
2907 + # The name set by libtool depends on the version of libtool. Shame on us
2908 + # for depending on an impl detail, but c'est la vie. Older versions used
2909 + # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
2910 + # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
2911 + # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
2912 + # set (hence we're using an older libtool), then set it.
2913 + if test x${with_gnu_ld+set} != xset; then
2914 + if test x${ac_cv_prog_gnu_ld+set} != xset; then
2915 + # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
2916 + with_gnu_ld=no
2917 + else
2918 + with_gnu_ld=$ac_cv_prog_gnu_ld
2919 + fi
2920 + fi
2922 + # Start by getting the version number. I think the libtool test already
2923 + # does some of this, but throws away the result.
2924 + if test x"$with_gnu_ld" = x"yes"; then
2925 + echo "$as_me:$LINENO: checking for ld version" >&5
2926 +echo $ECHO_N "checking for ld version... $ECHO_C" >&6
2928 + ldver=`$LD --version 2>/dev/null | head -1 | \
2929 + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
2931 + glibcxx_gnu_ld_version=`echo $ldver | \
2932 + $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
2933 + echo "$as_me:$LINENO: result: $glibcxx_gnu_ld_version" >&5
2934 +echo "${ECHO_T}$glibcxx_gnu_ld_version" >&6
2935 + fi
2937 + # Set --gc-sections.
2938 + glibcxx_gcsections_min_ld=21602
2939 + if test x"$with_gnu_ld" = x"yes" &&
2940 + test $glibcxx_gnu_ld_version -gt $glibcxx_gcsections_min_ld ; then
2942 + # Sufficiently young GNU ld it is! Joy and bunny rabbits!
2943 + # NB: This flag only works reliably after 2.16.1. Configure tests
2944 + # for this are difficult, so hard wire a value that should work.
2946 + ac_test_CFLAGS="${CFLAGS+set}"
2947 + ac_save_CFLAGS="$CFLAGS"
2948 + CFLAGS='-Wl,--gc-sections'
2950 + # Check for -Wl,--gc-sections
2951 + echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
2952 +echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
2953 + if test x$gcc_no_link = xyes; then
2954 + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
2955 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
2956 + { (exit 1); exit 1; }; }
2958 +cat >conftest.$ac_ext <<_ACEOF
2959 +/* confdefs.h. */
2960 +_ACEOF
2961 +cat confdefs.h >>conftest.$ac_ext
2962 +cat >>conftest.$ac_ext <<_ACEOF
2963 +/* end confdefs.h. */
2964 + int one(void) { return 1; }
2965 + int two(void) { return 2; }
2967 +int
2968 +main ()
2970 + two();
2972 + return 0;
2974 +_ACEOF
2975 +rm -f conftest.$ac_objext conftest$ac_exeext
2976 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2977 + (eval $ac_link) 2>conftest.er1
2978 + ac_status=$?
2979 + grep -v '^ *+' conftest.er1 >conftest.err
2980 + rm -f conftest.er1
2981 + cat conftest.err >&5
2982 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 + (exit $ac_status); } &&
2984 + { ac_try='test -z "$ac_c_werror_flag"
2985 + || test ! -s conftest.err'
2986 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987 + (eval $ac_try) 2>&5
2988 + ac_status=$?
2989 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 + (exit $ac_status); }; } &&
2991 + { ac_try='test -s conftest$ac_exeext'
2992 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993 + (eval $ac_try) 2>&5
2994 + ac_status=$?
2995 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 + (exit $ac_status); }; }; then
2997 + ac_gcsections=yes
2998 +else
2999 + echo "$as_me: failed program was:" >&5
3000 +sed 's/^/| /' conftest.$ac_ext >&5
3002 +ac_gcsections=no
3004 +rm -f conftest.err conftest.$ac_objext \
3005 + conftest$ac_exeext conftest.$ac_ext
3006 + if test "$ac_gcsections" = "yes"; then
3007 + rm -f conftest.c
3008 + touch conftest.c
3009 + if $CC -c conftest.c; then
3010 + if $LD --gc-sections -o conftest conftest.o 2>&1 | \
3011 + grep "Warning: gc-sections option ignored" > /dev/null; then
3012 + ac_gcsections=no
3013 + fi
3014 + fi
3015 + rm -f conftest.c conftest.o conftest
3016 + fi
3017 + if test "$ac_gcsections" = "yes"; then
3018 + SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
3019 + fi
3020 + echo "$as_me:$LINENO: result: $ac_gcsections" >&5
3021 +echo "${ECHO_T}$ac_gcsections" >&6
3023 + if test "$ac_test_CFLAGS" = set; then
3024 + CFLAGS="$ac_save_CFLAGS"
3025 + else
3026 + # this is the suspicious part
3027 + CFLAGS=''
3028 + fi
3029 + fi
3031 + # Set -z,relro.
3032 + # Note this is only for shared objects.
3033 + ac_ld_relro=no
3034 + if test x"$with_gnu_ld" = x"yes"; then
3035 + echo "$as_me:$LINENO: checking for ld that supports -Wl,-z,relro" >&5
3036 +echo $ECHO_N "checking for ld that supports -Wl,-z,relro... $ECHO_C" >&6
3037 + cxx_z_relo=`$LD -v --help 2>/dev/null | grep "z relro"`
3038 + if test -n "$cxx_z_relo"; then
3039 + OPT_LDFLAGS="-Wl,-z,relro"
3040 + ac_ld_relro=yes
3041 + fi
3042 + echo "$as_me:$LINENO: result: $ac_ld_relro" >&5
3043 +echo "${ECHO_T}$ac_ld_relro" >&6
3044 + fi
3046 + # Set linker optimization flags.
3047 + if test x"$with_gnu_ld" = x"yes"; then
3048 + OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
3049 + fi
3056 +echo "$as_me:$LINENO: checking for main in -lm" >&5
3057 +echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
3058 +if test "${ac_cv_lib_m_main+set}" = set; then
3059 + echo $ECHO_N "(cached) $ECHO_C" >&6
3060 +else
3061 + ac_check_lib_save_LIBS=$LIBS
3062 +LIBS="-lm $LIBS"
3063 +if test x$gcc_no_link = xyes; then
3064 + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3065 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3066 + { (exit 1); exit 1; }; }
3068 +cat >conftest.$ac_ext <<_ACEOF
3069 +/* confdefs.h. */
3070 +_ACEOF
3071 +cat confdefs.h >>conftest.$ac_ext
3072 +cat >>conftest.$ac_ext <<_ACEOF
3073 +/* end confdefs.h. */
3076 +int
3077 +main ()
3079 +main ();
3081 + return 0;
3083 +_ACEOF
3084 +rm -f conftest.$ac_objext conftest$ac_exeext
3085 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3086 + (eval $ac_link) 2>conftest.er1
3087 + ac_status=$?
3088 + grep -v '^ *+' conftest.er1 >conftest.err
3089 + rm -f conftest.er1
3090 + cat conftest.err >&5
3091 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 + (exit $ac_status); } &&
3093 + { ac_try='test -z "$ac_c_werror_flag"
3094 + || test ! -s conftest.err'
3095 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 + (eval $ac_try) 2>&5
3097 + ac_status=$?
3098 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 + (exit $ac_status); }; } &&
3100 + { ac_try='test -s conftest$ac_exeext'
3101 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 + (eval $ac_try) 2>&5
3103 + ac_status=$?
3104 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 + (exit $ac_status); }; }; then
3106 + ac_cv_lib_m_main=yes
3107 +else
3108 + echo "$as_me: failed program was:" >&5
3109 +sed 's/^/| /' conftest.$ac_ext >&5
3111 +ac_cv_lib_m_main=no
3113 +rm -f conftest.err conftest.$ac_objext \
3114 + conftest$ac_exeext conftest.$ac_ext
3115 +LIBS=$ac_check_lib_save_LIBS
3117 +echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
3118 +echo "${ECHO_T}$ac_cv_lib_m_main" >&6
3119 +if test $ac_cv_lib_m_main = yes; then
3120 + cat >>confdefs.h <<_ACEOF
3121 +#define HAVE_LIBM 1
3122 +_ACEOF
3124 + LIBS="-lm $LIBS"
3129 +for ac_func in copysignf
3131 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3132 +echo "$as_me:$LINENO: checking for $ac_func" >&5
3133 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3134 +if eval "test \"\${$as_ac_var+set}\" = set"; then
3135 + echo $ECHO_N "(cached) $ECHO_C" >&6
3136 +else
3137 + if test x$gcc_no_link = xyes; then
3138 + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3139 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3140 + { (exit 1); exit 1; }; }
3142 +cat >conftest.$ac_ext <<_ACEOF
3143 +/* confdefs.h. */
3144 +_ACEOF
3145 +cat confdefs.h >>conftest.$ac_ext
3146 +cat >>conftest.$ac_ext <<_ACEOF
3147 +/* end confdefs.h. */
3148 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3149 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
3150 +#define $ac_func innocuous_$ac_func
3152 +/* System header to define __stub macros and hopefully few prototypes,
3153 + which can conflict with char $ac_func (); below.
3154 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3155 + <limits.h> exists even on freestanding compilers. */
3157 +#ifdef __STDC__
3158 +# include <limits.h>
3159 +#else
3160 +# include <assert.h>
3161 +#endif
3163 +#undef $ac_func
3165 +/* Override any gcc2 internal prototype to avoid an error. */
3166 +#ifdef __cplusplus
3167 +extern "C"
3169 +#endif
3170 +/* We use char because int might match the return type of a gcc2
3171 + builtin and then its argument prototype would still apply. */
3172 +char $ac_func ();
3173 +/* The GNU C library defines this for functions which it implements
3174 + to always fail with ENOSYS. Some functions are actually named
3175 + something starting with __ and the normal name is an alias. */
3176 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3177 +choke me
3178 +#else
3179 +char (*f) () = $ac_func;
3180 +#endif
3181 +#ifdef __cplusplus
3183 +#endif
3185 +int
3186 +main ()
3188 +return f != $ac_func;
3190 + return 0;
3192 +_ACEOF
3193 +rm -f conftest.$ac_objext conftest$ac_exeext
3194 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3195 + (eval $ac_link) 2>conftest.er1
3196 + ac_status=$?
3197 + grep -v '^ *+' conftest.er1 >conftest.err
3198 + rm -f conftest.er1
3199 + cat conftest.err >&5
3200 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 + (exit $ac_status); } &&
3202 + { ac_try='test -z "$ac_c_werror_flag"
3203 + || test ! -s conftest.err'
3204 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205 + (eval $ac_try) 2>&5
3206 + ac_status=$?
3207 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 + (exit $ac_status); }; } &&
3209 + { ac_try='test -s conftest$ac_exeext'
3210 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211 + (eval $ac_try) 2>&5
3212 + ac_status=$?
3213 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 + (exit $ac_status); }; }; then
3215 + eval "$as_ac_var=yes"
3216 +else
3217 + echo "$as_me: failed program was:" >&5
3218 +sed 's/^/| /' conftest.$ac_ext >&5
3220 +eval "$as_ac_var=no"
3222 +rm -f conftest.err conftest.$ac_objext \
3223 + conftest$ac_exeext conftest.$ac_ext
3225 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3226 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3227 +if test `eval echo '${'$as_ac_var'}'` = yes; then
3228 + cat >>confdefs.h <<_ACEOF
3229 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3230 +_ACEOF
3232 +else
3233 + LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
3235 +done
3239 +for ac_func in __signbit
3241 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3242 +echo "$as_me:$LINENO: checking for $ac_func" >&5
3243 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3244 +if eval "test \"\${$as_ac_var+set}\" = set"; then
3245 + echo $ECHO_N "(cached) $ECHO_C" >&6
3246 +else
3247 + if test x$gcc_no_link = xyes; then
3248 + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3249 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3250 + { (exit 1); exit 1; }; }
3252 +cat >conftest.$ac_ext <<_ACEOF
3253 +/* confdefs.h. */
3254 +_ACEOF
3255 +cat confdefs.h >>conftest.$ac_ext
3256 +cat >>conftest.$ac_ext <<_ACEOF
3257 +/* end confdefs.h. */
3258 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3259 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
3260 +#define $ac_func innocuous_$ac_func
3262 +/* System header to define __stub macros and hopefully few prototypes,
3263 + which can conflict with char $ac_func (); below.
3264 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3265 + <limits.h> exists even on freestanding compilers. */
3267 +#ifdef __STDC__
3268 +# include <limits.h>
3269 +#else
3270 +# include <assert.h>
3271 +#endif
3273 +#undef $ac_func
3275 +/* Override any gcc2 internal prototype to avoid an error. */
3276 +#ifdef __cplusplus
3277 +extern "C"
3279 +#endif
3280 +/* We use char because int might match the return type of a gcc2
3281 + builtin and then its argument prototype would still apply. */
3282 +char $ac_func ();
3283 +/* The GNU C library defines this for functions which it implements
3284 + to always fail with ENOSYS. Some functions are actually named
3285 + something starting with __ and the normal name is an alias. */
3286 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3287 +choke me
3288 +#else
3289 +char (*f) () = $ac_func;
3290 +#endif
3291 +#ifdef __cplusplus
3293 +#endif
3295 +int
3296 +main ()
3298 +return f != $ac_func;
3300 + return 0;
3302 +_ACEOF
3303 +rm -f conftest.$ac_objext conftest$ac_exeext
3304 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305 + (eval $ac_link) 2>conftest.er1
3306 + ac_status=$?
3307 + grep -v '^ *+' conftest.er1 >conftest.err
3308 + rm -f conftest.er1
3309 + cat conftest.err >&5
3310 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 + (exit $ac_status); } &&
3312 + { ac_try='test -z "$ac_c_werror_flag"
3313 + || test ! -s conftest.err'
3314 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 + (eval $ac_try) 2>&5
3316 + ac_status=$?
3317 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 + (exit $ac_status); }; } &&
3319 + { ac_try='test -s conftest$ac_exeext'
3320 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 + (eval $ac_try) 2>&5
3322 + ac_status=$?
3323 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 + (exit $ac_status); }; }; then
3325 + eval "$as_ac_var=yes"
3326 +else
3327 + echo "$as_me: failed program was:" >&5
3328 +sed 's/^/| /' conftest.$ac_ext >&5
3330 +eval "$as_ac_var=no"
3332 +rm -f conftest.err conftest.$ac_objext \
3333 + conftest$ac_exeext conftest.$ac_ext
3335 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3336 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3337 +if test `eval echo '${'$as_ac_var'}'` = yes; then
3338 + cat >>confdefs.h <<_ACEOF
3339 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3340 +_ACEOF
3342 +else
3343 + LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
3345 +done
3349 +for ac_func in __signbitf
3351 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3352 +echo "$as_me:$LINENO: checking for $ac_func" >&5
3353 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3354 +if eval "test \"\${$as_ac_var+set}\" = set"; then
3355 + echo $ECHO_N "(cached) $ECHO_C" >&6
3356 +else
3357 + if test x$gcc_no_link = xyes; then
3358 + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3359 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3360 + { (exit 1); exit 1; }; }
3362 +cat >conftest.$ac_ext <<_ACEOF
3363 +/* confdefs.h. */
3364 +_ACEOF
3365 +cat confdefs.h >>conftest.$ac_ext
3366 +cat >>conftest.$ac_ext <<_ACEOF
3367 +/* end confdefs.h. */
3368 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3369 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
3370 +#define $ac_func innocuous_$ac_func
3372 +/* System header to define __stub macros and hopefully few prototypes,
3373 + which can conflict with char $ac_func (); below.
3374 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 + <limits.h> exists even on freestanding compilers. */
3377 +#ifdef __STDC__
3378 +# include <limits.h>
3379 +#else
3380 +# include <assert.h>
3381 +#endif
3383 +#undef $ac_func
3385 +/* Override any gcc2 internal prototype to avoid an error. */
3386 +#ifdef __cplusplus
3387 +extern "C"
3389 +#endif
3390 +/* We use char because int might match the return type of a gcc2
3391 + builtin and then its argument prototype would still apply. */
3392 +char $ac_func ();
3393 +/* The GNU C library defines this for functions which it implements
3394 + to always fail with ENOSYS. Some functions are actually named
3395 + something starting with __ and the normal name is an alias. */
3396 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3397 +choke me
3398 +#else
3399 +char (*f) () = $ac_func;
3400 +#endif
3401 +#ifdef __cplusplus
3403 +#endif
3405 +int
3406 +main ()
3408 +return f != $ac_func;
3410 + return 0;
3412 +_ACEOF
3413 +rm -f conftest.$ac_objext conftest$ac_exeext
3414 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3415 + (eval $ac_link) 2>conftest.er1
3416 + ac_status=$?
3417 + grep -v '^ *+' conftest.er1 >conftest.err
3418 + rm -f conftest.er1
3419 + cat conftest.err >&5
3420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 + (exit $ac_status); } &&
3422 + { ac_try='test -z "$ac_c_werror_flag"
3423 + || test ! -s conftest.err'
3424 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 + (eval $ac_try) 2>&5
3426 + ac_status=$?
3427 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 + (exit $ac_status); }; } &&
3429 + { ac_try='test -s conftest$ac_exeext'
3430 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 + (eval $ac_try) 2>&5
3432 + ac_status=$?
3433 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 + (exit $ac_status); }; }; then
3435 + eval "$as_ac_var=yes"
3436 +else
3437 + echo "$as_me: failed program was:" >&5
3438 +sed 's/^/| /' conftest.$ac_ext >&5
3440 +eval "$as_ac_var=no"
3442 +rm -f conftest.err conftest.$ac_objext \
3443 + conftest$ac_exeext conftest.$ac_ext
3445 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3446 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3447 +if test `eval echo '${'$as_ac_var'}'` = yes; then
3448 + cat >>confdefs.h <<_ACEOF
3449 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3450 +_ACEOF
3452 +else
3453 + LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
3455 +done
3458 + if test x$ac_cv_func_copysignl = x"yes"; then
3460 +for ac_func in __signbitl
3462 +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3463 +echo "$as_me:$LINENO: checking for $ac_func" >&5
3464 +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3465 +if eval "test \"\${$as_ac_var+set}\" = set"; then
3466 + echo $ECHO_N "(cached) $ECHO_C" >&6
3467 +else
3468 + if test x$gcc_no_link = xyes; then
3469 + { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3470 +echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3471 + { (exit 1); exit 1; }; }
3473 +cat >conftest.$ac_ext <<_ACEOF
3474 +/* confdefs.h. */
3475 +_ACEOF
3476 +cat confdefs.h >>conftest.$ac_ext
3477 +cat >>conftest.$ac_ext <<_ACEOF
3478 +/* end confdefs.h. */
3479 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3480 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
3481 +#define $ac_func innocuous_$ac_func
3483 +/* System header to define __stub macros and hopefully few prototypes,
3484 + which can conflict with char $ac_func (); below.
3485 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3486 + <limits.h> exists even on freestanding compilers. */
3488 +#ifdef __STDC__
3489 +# include <limits.h>
3490 +#else
3491 +# include <assert.h>
3492 +#endif
3494 +#undef $ac_func
3496 +/* Override any gcc2 internal prototype to avoid an error. */
3497 +#ifdef __cplusplus
3498 +extern "C"
3500 +#endif
3501 +/* We use char because int might match the return type of a gcc2
3502 + builtin and then its argument prototype would still apply. */
3503 +char $ac_func ();
3504 +/* The GNU C library defines this for functions which it implements
3505 + to always fail with ENOSYS. Some functions are actually named
3506 + something starting with __ and the normal name is an alias. */
3507 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3508 +choke me
3509 +#else
3510 +char (*f) () = $ac_func;
3511 +#endif
3512 +#ifdef __cplusplus
3514 +#endif
3516 +int
3517 +main ()
3519 +return f != $ac_func;
3521 + return 0;
3523 +_ACEOF
3524 +rm -f conftest.$ac_objext conftest$ac_exeext
3525 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526 + (eval $ac_link) 2>conftest.er1
3527 + ac_status=$?
3528 + grep -v '^ *+' conftest.er1 >conftest.err
3529 + rm -f conftest.er1
3530 + cat conftest.err >&5
3531 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 + (exit $ac_status); } &&
3533 + { ac_try='test -z "$ac_c_werror_flag"
3534 + || test ! -s conftest.err'
3535 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 + (eval $ac_try) 2>&5
3537 + ac_status=$?
3538 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 + (exit $ac_status); }; } &&
3540 + { ac_try='test -s conftest$ac_exeext'
3541 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 + (eval $ac_try) 2>&5
3543 + ac_status=$?
3544 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 + (exit $ac_status); }; }; then
3546 + eval "$as_ac_var=yes"
3547 +else
3548 + echo "$as_me: failed program was:" >&5
3549 +sed 's/^/| /' conftest.$ac_ext >&5
3551 +eval "$as_ac_var=no"
3553 +rm -f conftest.err conftest.$ac_objext \
3554 + conftest$ac_exeext conftest.$ac_ext
3556 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3557 +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3558 +if test `eval echo '${'$as_ac_var'}'` = yes; then
3559 + cat >>confdefs.h <<_ACEOF
3560 +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3561 +_ACEOF
3563 +else
3564 + LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
3566 +done
3568 + fi
3570 + # Used in libmath/Makefile.am.
3571 + if test -n "$LIBMATHOBJS"; then
3572 + need_libmath=yes
3573 + fi
3576 + GLIBCXX_CHECK_WCHAR_T_SUPPORT
3578 + cat >>confdefs.h <<\_ACEOF
3579 +#define HAVE_COPYSIGN 1
3580 +_ACEOF
3582 + cat >>confdefs.h <<\_ACEOF
3583 +#define HAVE_COPYSIGNF 1
3584 +_ACEOF
3586 + cat >>confdefs.h <<\_ACEOF
3587 +#define HAVE_FINITE 1
3588 +_ACEOF
3590 + cat >>confdefs.h <<\_ACEOF
3591 +#define HAVE_FINITEF 1
3592 +_ACEOF
3594 + cat >>confdefs.h <<\_ACEOF
3595 +#define HAVE_FREXPF 1
3596 +_ACEOF
3598 + cat >>confdefs.h <<\_ACEOF
3599 +#define HAVE_HYPOTF 1
3600 +_ACEOF
3602 + cat >>confdefs.h <<\_ACEOF
3603 +#define HAVE_ISINF 1
3604 +_ACEOF
3606 + cat >>confdefs.h <<\_ACEOF
3607 +#define HAVE_ISINFF 1
3608 +_ACEOF
3610 + cat >>confdefs.h <<\_ACEOF
3611 +#define HAVE_ISNAN 1
3612 +_ACEOF
3614 + cat >>confdefs.h <<\_ACEOF
3615 +#define HAVE_ISNANF 1
3616 +_ACEOF
3618 + cat >>confdefs.h <<\_ACEOF
3619 +#define HAVE_SINCOS 1
3620 +_ACEOF
3622 + cat >>confdefs.h <<\_ACEOF
3623 +#define HAVE_SINCOSF 1
3624 +_ACEOF
3626 + if test x"long_double_math_on_this_cpu" = x"yes"; then
3627 + cat >>confdefs.h <<\_ACEOF
3628 +#define HAVE_FINITEL 1
3629 +_ACEOF
3631 + cat >>confdefs.h <<\_ACEOF
3632 +#define HAVE_HYPOTL 1
3633 +_ACEOF
3635 + cat >>confdefs.h <<\_ACEOF
3636 +#define HAVE_ISINFL 1
3637 +_ACEOF
3639 + cat >>confdefs.h <<\_ACEOF
3640 +#define HAVE_ISNANL 1
3641 +_ACEOF
3643 + fi
3644 + ;;
3646 arm*-*-symbianelf*)
3647 # This is a freestanding configuration; there is nothing to do here.
3649 diff --git gcc-4.2.2/libstdc++-v3/configure.host gcc-4.2.2/libstdc++-v3/configure.host
3650 index 441eb4c..76e7db6 100644
3651 --- gcc-4.2.2/libstdc++-v3/configure.host
3652 +++ gcc-4.2.2/libstdc++-v3/configure.host
3653 @@ -184,6 +184,9 @@ case "${host_os}" in
3654 os_include_dir="os/generic"
3655 atomicity_dir="cpu/generic"
3657 + aros*)
3658 + os_include_dir="os/aros"
3659 + ;;
3660 bsd*)
3661 # Plain BSD attempts to share FreeBSD files.
3662 os_include_dir="os/bsd/freebsd"
3663 diff --git gcc-4.2.2/libstdc++-v3/crossconfig.m4 gcc-4.2.2/libstdc++-v3/crossconfig.m4
3664 index 3d1d356..0402ba2 100644
3665 --- gcc-4.2.2/libstdc++-v3/crossconfig.m4
3666 +++ gcc-4.2.2/libstdc++-v3/crossconfig.m4
3667 @@ -5,6 +5,34 @@ dnl
3668 AC_DEFUN([GLIBCXX_CROSSCONFIG],[
3669 # Base decisions on target environment.
3670 case "${host}" in
3671 + *-aros*)
3672 + AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
3673 + machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h])
3675 + GLIBCXX_CHECK_LINKER_FEATURES
3676 + GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
3677 + GLIBCXX_CHECK_WCHAR_T_SUPPORT
3679 + AC_DEFINE(HAVE_COPYSIGN)
3680 + AC_DEFINE(HAVE_COPYSIGNF)
3681 + AC_DEFINE(HAVE_FINITE)
3682 + AC_DEFINE(HAVE_FINITEF)
3683 + AC_DEFINE(HAVE_FREXPF)
3684 + AC_DEFINE(HAVE_HYPOTF)
3685 + AC_DEFINE(HAVE_ISINF)
3686 + AC_DEFINE(HAVE_ISINFF)
3687 + AC_DEFINE(HAVE_ISNAN)
3688 + AC_DEFINE(HAVE_ISNANF)
3689 + AC_DEFINE(HAVE_SINCOS)
3690 + AC_DEFINE(HAVE_SINCOSF)
3691 + if test x"long_double_math_on_this_cpu" = x"yes"; then
3692 + AC_DEFINE(HAVE_FINITEL)
3693 + AC_DEFINE(HAVE_HYPOTL)
3694 + AC_DEFINE(HAVE_ISINFL)
3695 + AC_DEFINE(HAVE_ISNANL)
3696 + fi
3697 + ;;
3699 arm*-*-symbianelf*)
3700 # This is a freestanding configuration; there is nothing to do here.