]>
Commit | Line | Data |
---|---|---|
46f18e7b RK |
1 | # configure.in for GNU CC |
2 | # Process this file with autoconf to generate a configuration script. | |
3 | ||
4 | # Copyright (C) 1997 Free Software Foundation, Inc. | |
5 | ||
6 | #This file is part of GNU CC. | |
7 | ||
8 | #GNU CC is free software; you can redistribute it and/or modify | |
9 | #it under the terms of the GNU General Public License as published by | |
10 | #the Free Software Foundation; either version 2, or (at your option) | |
11 | #any later version. | |
12 | ||
13 | #GNU CC is distributed in the hope that it will be useful, | |
14 | #but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | #GNU General Public License for more details. | |
17 | ||
18 | #You should have received a copy of the GNU General Public License | |
19 | #along with GNU CC; see the file COPYING. If not, write to | |
20 | #the Free Software Foundation, 59 Temple Place - Suite 330, | |
21 | #Boston, MA 02111-1307, USA. | |
22 | ||
23 | # Initialization and defaults | |
24 | AC_INIT(tree.c) | |
46f18e7b | 25 | native_prefix=/usr |
46f18e7b RK |
26 | remove=rm |
27 | hard_link=ln | |
28 | symbolic_link='ln -s' | |
29 | copy=cp | |
30 | ||
31 | # Check for additional parameters | |
32 | ||
33 | # With GNU ld | |
34 | AC_ARG_WITH(gnu-ld, | |
35 | [ --with-gnu-ld arrange to work with GNU ld.], | |
36 | gnu_ld=yes, | |
37 | gnu_ld=no) | |
38 | ||
39 | # With GNU as | |
40 | AC_ARG_WITH(gnu-as, | |
4d8392b7 | 41 | [ --with-gnu-as arrange to work with GNU as.], |
46f18e7b RK |
42 | gas=yes, |
43 | gas=no) | |
44 | ||
45 | # With stabs | |
46 | AC_ARG_WITH(stabs, | |
47 | [ --with-stabs arrange to use stabs instead of host debug format.], | |
48 | stabs=yes, | |
49 | stabs=no) | |
50 | ||
51 | # With ELF | |
52 | AC_ARG_WITH(elf, | |
53 | [ --with-elf arrange to use ELF instead of host debug format.], | |
54 | elf=yes, | |
55 | elf=no) | |
56 | ||
4d8392b7 RK |
57 | # Specify the local prefix |
58 | AC_ARG_WITH(local-prefix, | |
59 | [ --with-local-prefix=DIR specifies directory to put local include.], | |
60 | local_prefix=$with_local_prefix, | |
61 | local_prefix=/usr/local) | |
62 | ||
63 | # Default local prefix if it is empty | |
64 | if [[ x$local_prefix = x ]]; then | |
65 | local_prefix=/usr/local | |
66 | fi | |
67 | ||
9514f0d1 RK |
68 | # Specify the g++ header file directory |
69 | AC_ARG_WITH(gxx-include-dir, | |
70 | [ --with-gxx-include-dir=DIR | |
71 | specifies directory to put g++ header files.], | |
72 | gxx_include_dir=$with_gxx_include_dir, | |
73 | gxx_include_dir='${prefix}/include/g++') | |
74 | ||
75 | # Default g++ header file directory if it is empty | |
76 | if [[ x$gxx_include_dir = x ]]; then | |
77 | gxx_include_dir='${prefix}/include/g++' | |
78 | fi | |
46f18e7b | 79 | |
0bbb1697 RK |
80 | # Enable threads |
81 | # Pass with no value to take the default | |
82 | # Pass with a value to specify a thread package | |
83 | AC_ARG_ENABLE(threads, | |
84 | [ --enable-threads enable thread usage for target GCC. | |
85 | --enable-threads=LIB use LIB thread package for target GCC.], | |
86 | if [[[ x$enable_threads = xno ]]]; then | |
87 | enable_threads='' | |
88 | fi, | |
89 | enable_threads='') | |
90 | ||
91 | # Check if a valid thread package | |
92 | case x${enable_threads} in | |
93 | x | xno) | |
94 | # No threads | |
95 | thread_file='single' | |
96 | ;; | |
97 | xyes) | |
98 | # default | |
99 | thread_file='' | |
100 | ;; | |
101 | xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ | |
102 | xsolaris | xwin32) | |
103 | thread_file=$enable_threads | |
104 | ;; | |
105 | *) | |
106 | echo "$enable_threads is an unknown thread package" 1>&2 | |
107 | exit 1 | |
108 | ;; | |
109 | esac | |
110 | ||
46f18e7b RK |
111 | # Determine the host, build, and target systems |
112 | AC_CANONICAL_SYSTEM | |
113 | ||
114 | # Find some useful tools | |
115 | AC_PROG_AWK | |
116 | AC_PROG_LEX | |
117 | AC_PROG_LN_S | |
118 | AC_PROG_RANLIB | |
119 | AC_PROG_YACC | |
120 | AC_PROG_INSTALL | |
121 | ||
122 | # Find the native compiler | |
123 | AC_PROG_CC | |
124 | AC_PROG_MAKE_SET | |
125 | ||
126 | # File extensions | |
127 | manext='.1' | |
128 | objext='.o' | |
46f18e7b RK |
129 | AC_SUBST(manext) |
130 | AC_SUBST(objext) | |
46f18e7b RK |
131 | |
132 | build_xm_file= | |
133 | build_broken_install= | |
134 | build_install_headers_dir=install-headers-tar | |
135 | build_exeext= | |
136 | host_xm_file= | |
137 | host_xmake_file= | |
138 | host_truncate_target= | |
139 | ||
140 | # Decode the host machine, then the target machine. | |
141 | # For the host machine, we save the xm_file variable as host_xm_file; | |
142 | # then we decode the target machine and forget everything else | |
143 | # that came from the host machine. | |
144 | for machine in $build $host $target; do | |
145 | ||
146 | out_file= | |
147 | xmake_file= | |
148 | tmake_file= | |
149 | extra_headers= | |
150 | extra_passes= | |
151 | extra_parts= | |
152 | extra_programs= | |
153 | extra_objs= | |
154 | extra_host_objs= | |
155 | extra_gcc_objs= | |
156 | float_format= | |
157 | # Set this to force installation and use of collect2. | |
158 | use_collect2= | |
159 | # Set this to override the default target model. | |
160 | target_cpu_default= | |
161 | # Set this to force use of install.sh. | |
162 | broken_install= | |
163 | # Set this to control which fixincludes program to use. | |
164 | fixincludes=fixincludes | |
165 | # Set this to control how the header file directory is installed. | |
166 | install_headers_dir=install-headers-tar | |
167 | # Set this to a non-empty list of args to pass to cpp if the target | |
168 | # wants its .md file passed through cpp. | |
169 | md_cppflags= | |
170 | # Set this if directory names should be truncated to 14 characters. | |
171 | truncate_target= | |
172 | # Set this if gdb needs a dir command with `dirname $out_file` | |
173 | gdb_needs_out_file_path= | |
46f18e7b RK |
174 | # Set this if the build machine requires executables to have a |
175 | # file name suffix. | |
176 | exeext= | |
177 | ||
178 | # Set default cpu_type, tm_file and xm_file so it can be updated in | |
179 | # each machine entry. | |
180 | cpu_type=`echo $machine | sed 's/-.*$//'` | |
181 | case $machine in | |
182 | arm*-*-*) | |
183 | cpu_type=arm | |
184 | ;; | |
185 | c*-convex-*) | |
186 | cpu_type=convex | |
187 | ;; | |
188 | i[[3456]]86-*-*) | |
189 | cpu_type=i386 | |
190 | ;; | |
191 | hppa*-*-*) | |
192 | cpu_type=pa | |
193 | ;; | |
194 | m68000-*-*) | |
195 | cpu_type=m68k | |
196 | ;; | |
197 | mips*-*-*) | |
198 | cpu_type=mips | |
199 | ;; | |
200 | powerpc*-*-*) | |
201 | cpu_type=rs6000 | |
202 | ;; | |
203 | pyramid-*-*) | |
204 | cpu_type=pyr | |
205 | ;; | |
206 | sparc*-*-*) | |
207 | cpu_type=sparc | |
208 | ;; | |
209 | esac | |
210 | ||
211 | tm_file=${cpu_type}/${cpu_type}.h | |
212 | xm_file=${cpu_type}/xm-${cpu_type}.h | |
213 | ||
214 | case $machine in | |
215 | # Support site-specific machine types. | |
216 | *local*) | |
217 | cpu_type=`echo $machine | sed -e 's/-.*//'` | |
218 | rest=`echo $machine | sed -e "s/$cpu_type-//"` | |
219 | xm_file=${cpu_type}/xm-$rest.h | |
220 | tm_file=${cpu_type}/$rest.h | |
221 | if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \ | |
222 | then xmake_file=${cpu_type}/x-$rest; \ | |
223 | else true; \ | |
224 | fi | |
225 | if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \ | |
226 | then tmake_file=${cpu_type}/t-$rest; \ | |
227 | else true; \ | |
228 | fi | |
229 | ;; | |
230 | 1750a-*-*) | |
231 | ;; | |
232 | a29k-*-bsd* | a29k-*-sym1*) | |
233 | tm_file="${tm_file} a29k/unix.h" | |
234 | xm_file=a29k/xm-unix.h | |
235 | xmake_file=a29k/x-unix | |
236 | use_collect2=yes | |
237 | ;; | |
238 | a29k-*-udi | a29k-*-coff) | |
239 | tm_file="${tm_file} dbxcoff.h a29k/udi.h" | |
240 | tmake_file=a29k/t-a29kbare | |
241 | ;; | |
242 | a29k-*-vxworks*) | |
243 | tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h" | |
244 | tmake_file=a29k/t-vx29k | |
245 | extra_parts="crtbegin.o crtend.o" | |
246 | ;; | |
247 | a29k-*-*) # Default a29k environment. | |
248 | use_collect2=yes | |
249 | ;; | |
844dadc7 | 250 | alpha-*-linux-gnuecoff*) |
46f18e7b RK |
251 | tm_file="${tm_file} alpha/linux.h" |
252 | xm_file="${xm_file} alpha/xm-linux.h" | |
46f18e7b RK |
253 | target_cpu_default=4 |
254 | xmake_file=none | |
255 | fixincludes=Makefile.in | |
256 | gas=yes gnu_ld=yes | |
257 | ;; | |
844dadc7 | 258 | alpha-*-linux-gnu*) |
46f18e7b RK |
259 | tm_file="${tm_file} alpha/linux.h alpha/elf.h" |
260 | xm_file="${xm_file} alpha/xm-linux.h" | |
261 | target_cpu_default=4 | |
1c988fb7 | 262 | tmake_file="t-linux alpha/t-linux" |
46f18e7b RK |
263 | xmake_file=none |
264 | fixincludes=Makefile.in | |
265 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
266 | gas=yes gnu_ld=yes | |
c811d261 RK |
267 | if [[ x$thread_file = x ]]; then |
268 | thread_file='posix' | |
269 | fi | |
46f18e7b | 270 | ;; |
dec3e070 JW |
271 | alpha-dec-osf[[456789]]*) |
272 | if [[ x$stabs = xyes ]] | |
273 | then | |
274 | tm_file="${tm_file} dbx.h" | |
275 | fi | |
276 | if [[ x$gas != xyes ]] | |
277 | then | |
278 | extra_passes="mips-tfile mips-tdump" | |
279 | fi | |
280 | broken_install=yes | |
281 | use_collect2=yes | |
282 | # Some versions of OSF4 (specifically X4.0-9 296.7) have | |
283 | # a broken tar, so we use cpio instead. | |
284 | case $machine in | |
285 | alpha-dec-osf4*) | |
286 | install_headers_dir=install-headers-cpio | |
287 | ;; | |
288 | esac | |
289 | ;; | |
290 | alpha-dec-osf[[23]]*) | |
291 | tm_file="${tm_file} alpha/osf2or3.h" | |
46f18e7b RK |
292 | if [[ x$stabs = xyes ]] |
293 | then | |
294 | tm_file="${tm_file} dbx.h" | |
295 | fi | |
296 | if [[ x$gas != xyes ]] | |
297 | then | |
298 | extra_passes="mips-tfile mips-tdump" | |
299 | fi | |
300 | broken_install=yes | |
301 | use_collect2=yes | |
302 | ;; | |
303 | alpha-dec-osf1.2) | |
304 | tm_file="${tm_file} alpha/osf12.h" | |
305 | if [[ x$stabs = xyes ]] | |
306 | then | |
307 | tm_file="${tm_file} dbx.h" | |
308 | fi | |
309 | if [[ x$gas != xyes ]] | |
310 | then | |
311 | extra_passes="mips-tfile mips-tdump" | |
312 | fi | |
313 | broken_install=yes | |
314 | use_collect2=yes | |
315 | ;; | |
316 | alpha-*-osf*) | |
317 | if [[ x$stabs = xyes ]] | |
318 | then | |
319 | tm_file="${tm_file} dbx.h" | |
320 | fi | |
321 | if [[ x$gas != xyes ]] | |
322 | then | |
323 | extra_passes="mips-tfile mips-tdump" | |
324 | fi | |
325 | broken_install=yes | |
326 | use_collect2=yes | |
327 | ;; | |
328 | alpha-*-winnt3*) | |
329 | tm_file="${tm_file} alpha/win-nt.h" | |
330 | target_cpu_default=64 | |
331 | xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h" | |
332 | tmake_file=t-libc-ok | |
333 | xmake_file=winnt/x-winnt | |
334 | extra_host_objs=oldnames.o | |
335 | extra_gcc_objs="spawnv.o oldnames.o" | |
336 | fixincludes=fixinc.winnt | |
337 | if [[ x$gnu_ld != xyes ]] | |
338 | then | |
339 | extra_programs=ld.exe | |
340 | fi | |
434332b5 | 341 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
342 | thread_file='win32' |
343 | fi | |
46f18e7b RK |
344 | ;; |
345 | alpha-dec-vms*) | |
346 | tm_file=alpha/vms.h | |
347 | xm_file="${xm_file} alpha/xm-vms.h" | |
348 | tmake_file=alpha/t-vms | |
349 | fixincludes=Makefile.in | |
350 | ;; | |
351 | arm-*-coff* | armel-*-coff*) | |
352 | tm_file=arm/coff.h | |
353 | tmake_file=arm/t-bare | |
354 | ;; | |
355 | arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions) | |
356 | tm_file=arm/riscix1-1.h | |
357 | use_collect2=yes | |
358 | ;; | |
359 | arm-*-riscix*) # Acorn RISC machine | |
360 | if [[ x$gas = xyes ]] | |
361 | then | |
362 | tm_file=arm/rix-gas.h | |
363 | else | |
364 | tm_file=arm/riscix.h | |
365 | fi | |
366 | xmake_file=arm/x-riscix | |
367 | tmake_file=arm/t-riscix | |
368 | use_collect2=yes | |
369 | ;; | |
370 | arm-semi-aout | armel-semi-aout) | |
371 | tm_file=arm/semi.h | |
372 | tmake_file=arm/t-semi | |
373 | fixincludes=Makefile.in # There is nothing to fix | |
374 | ;; | |
375 | arm-semi-aof | armel-semi-aof) | |
376 | tm_file=arm/semiaof.h | |
377 | tmake_file=arm/t-semiaof | |
378 | fixincludes=Makefile.in # There is nothing to fix | |
379 | ;; | |
844dadc7 | 380 | arm-*-linux-gnuaout*) # ARM Linux |
618d2e70 RK |
381 | cpu_type=arm |
382 | xm_file=arm/xm-linux.h | |
383 | xmake_file=x-linux | |
384 | tm_file=arm/linux-gas.h | |
385 | tmake_file=arm/t-linux | |
386 | fixincludes=Makefile.in | |
387 | broken_install=yes | |
388 | gnu_ld=yes | |
389 | ;; | |
46f18e7b RK |
390 | arm-*-*) # generic version |
391 | ;; | |
392 | c1-convex-*) # Convex C1 | |
393 | target_cpu_default=1 | |
394 | use_collect2=yes | |
395 | fixincludes=Makefile.in | |
396 | ;; | |
397 | c2-convex-*) # Convex C2 | |
398 | target_cpu_default=2 | |
399 | use_collect2=yes | |
400 | fixincludes=Makefile.in | |
401 | ;; | |
402 | c32-convex-*) | |
403 | target_cpu_default=4 | |
404 | use_collect2=yes | |
405 | fixincludes=Makefile.in | |
406 | ;; | |
407 | c34-convex-*) | |
408 | target_cpu_default=8 | |
409 | use_collect2=yes | |
410 | fixincludes=Makefile.in | |
411 | ;; | |
412 | c38-convex-*) | |
413 | target_cpu_default=16 | |
414 | use_collect2=yes | |
415 | fixincludes=Makefile.in | |
416 | ;; | |
417 | clipper-intergraph-clix*) | |
418 | tm_file="${tm_file} svr3.h clipper/clix.h" | |
419 | xm_file=clipper/xm-clix.h | |
420 | xmake_file=clipper/x-clix | |
421 | extra_headers=va-clipper.h | |
422 | extra_parts="crtbegin.o crtend.o" | |
423 | install_headers_dir=install-headers-cpio | |
424 | broken_install=yes | |
425 | ;; | |
426 | dsp16xx-*) | |
427 | ;; | |
428 | elxsi-elxsi-*) | |
429 | use_collect2=yes | |
430 | ;; | |
431 | # This hasn't been upgraded to GCC 2. | |
432 | # fx80-alliant-*) # Alliant FX/80 | |
433 | # ;; | |
434 | h8300-*-*) | |
435 | float_format=i32 | |
436 | ;; | |
437 | hppa1.1-*-pro*) | |
438 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h" | |
439 | xm_file=pa/xm-papro.h | |
440 | tmake_file=pa/t-pro | |
441 | ;; | |
442 | hppa1.1-*-osf*) | |
443 | target_cpu_default=1 | |
444 | tm_file="${tm_file} pa/pa-osf.h" | |
445 | use_collect2=yes | |
446 | fixincludes=Makefile.in | |
447 | ;; | |
dec3e070 JW |
448 | hppa1.1-*-rtems*) |
449 | tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h" | |
450 | xm_file=pa/xm-papro.h | |
451 | tmake_file=pa/t-pro | |
452 | ;; | |
46f18e7b RK |
453 | hppa1.0-*-osf*) |
454 | tm_file="${tm_file} pa/pa-osf.h" | |
455 | use_collect2=yes | |
456 | fixincludes=Makefile.in | |
457 | ;; | |
458 | hppa1.1-*-bsd*) | |
459 | target_cpu_default=1 | |
460 | use_collect2=yes | |
461 | fixincludes=Makefile.in | |
462 | ;; | |
463 | hppa1.0-*-bsd*) | |
464 | use_collect2=yes | |
465 | fixincludes=Makefile.in | |
466 | ;; | |
467 | hppa1.0-*-hpux7*) | |
468 | tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h" | |
469 | xm_file=pa/xm-pahpux.h | |
470 | xmake_file=pa/x-pa-hpux | |
471 | if [[ x$gas = xyes ]] | |
472 | then | |
473 | tm_file="${tm_file} pa/gas.h" | |
474 | fi | |
475 | broken_install=yes | |
476 | install_headers_dir=install-headers-cpio | |
477 | use_collect2=yes | |
478 | ;; | |
479 | hppa1.0-*-hpux8.0[[0-2]]*) | |
480 | tm_file="${tm_file} pa/pa-hpux.h" | |
481 | xm_file=pa/xm-pahpux.h | |
482 | xmake_file=pa/x-pa-hpux | |
483 | if [[ x$gas = xyes ]] | |
484 | then | |
485 | tm_file="${tm_file} pa/pa-gas.h" | |
486 | else | |
487 | tm_file="pa/pa-oldas.h ${tm_file}" | |
488 | fi | |
489 | broken_install=yes | |
490 | install_headers_dir=install-headers-cpio | |
491 | use_collect2=yes | |
492 | ;; | |
493 | hppa1.1-*-hpux8.0[[0-2]]*) | |
494 | target_cpu_default=1 | |
495 | tm_file="${tm_file} pa/pa-hpux.h" | |
496 | xm_file=pa/xm-pahpux.h | |
497 | xmake_file=pa/x-pa-hpux | |
498 | if [[ x$gas = xyes ]] | |
499 | then | |
500 | tm_file="${tm_file} pa/pa-gas.h" | |
501 | else | |
502 | tm_file="pa/pa-oldas.h ${tm_file}" | |
503 | fi | |
504 | broken_install=yes | |
505 | install_headers_dir=install-headers-cpio | |
506 | use_collect2=yes | |
507 | ;; | |
508 | hppa1.1-*-hpux8*) | |
509 | target_cpu_default=1 | |
510 | tm_file="${tm_file} pa/pa-hpux.h" | |
511 | xm_file=pa/xm-pahpux.h | |
512 | xmake_file=pa/x-pa-hpux | |
513 | if [[ x$gas = xyes ]] | |
514 | then | |
515 | tm_file="${tm_file} pa/pa-gas.h" | |
516 | fi | |
517 | broken_install=yes | |
518 | install_headers_dir=install-headers-cpio | |
519 | use_collect2=yes | |
520 | ;; | |
521 | hppa1.0-*-hpux8*) | |
522 | tm_file="${tm_file} pa/pa-hpux.h" | |
523 | xm_file=pa/xm-pahpux.h | |
524 | xmake_file=pa/x-pa-hpux | |
525 | if [[ x$gas = xyes ]] | |
526 | then | |
527 | tm_file="${tm_file} pa/pa-gas.h" | |
528 | fi | |
529 | broken_install=yes | |
530 | install_headers_dir=install-headers-cpio | |
531 | use_collect2=yes | |
532 | ;; | |
533 | hppa1.1-*-hpux10*) | |
534 | target_cpu_default=1 | |
535 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
536 | xm_file=pa/xm-pahpux.h | |
537 | xmake_file=pa/x-pa-hpux | |
538 | if [[ x$gas = xyes ]] | |
539 | then | |
540 | tm_file="${tm_file} pa/pa-gas.h" | |
541 | fi | |
542 | broken_install=yes | |
543 | install_headers_dir=install-headers-cpio | |
544 | use_collect2=yes | |
545 | ;; | |
546 | hppa1.0-*-hpux10*) | |
547 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h" | |
548 | xm_file=pa/xm-pahpux.h | |
549 | xmake_file=pa/x-pa-hpux | |
550 | if [[ x$gas = xyes ]] | |
551 | then | |
552 | tm_file="${tm_file} pa/pa-gas.h" | |
553 | fi | |
554 | broken_install=yes | |
555 | install_headers_dir=install-headers-cpio | |
556 | use_collect2=yes | |
557 | ;; | |
558 | hppa1.1-*-hpux*) | |
559 | target_cpu_default=1 | |
560 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
561 | xm_file=pa/xm-pahpux.h | |
562 | xmake_file=pa/x-pa-hpux | |
563 | if [[ x$gas = xyes ]] | |
564 | then | |
565 | tm_file="${tm_file} pa/pa-gas.h" | |
566 | fi | |
567 | broken_install=yes | |
568 | install_headers_dir=install-headers-cpio | |
569 | use_collect2=yes | |
570 | ;; | |
571 | hppa1.0-*-hpux*) | |
572 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h" | |
573 | xm_file=pa/xm-pahpux.h | |
574 | xmake_file=pa/x-pa-hpux | |
575 | if [[ x$gas = xyes ]] | |
576 | then | |
577 | tm_file="${tm_file} pa/pa-gas.h" | |
578 | fi | |
579 | broken_install=yes | |
580 | install_headers_dir=install-headers-cpio | |
581 | use_collect2=yes | |
582 | ;; | |
583 | hppa1.1-*-hiux*) | |
584 | target_cpu_default=1 | |
585 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
586 | xm_file=pa/xm-pahpux.h | |
587 | xmake_file=pa/x-pa-hpux | |
588 | if [[ x$gas = xyes ]] | |
589 | then | |
590 | tm_file="${tm_file} pa/pa-gas.h" | |
591 | fi | |
592 | broken_install=yes | |
593 | install_headers_dir=install-headers-cpio | |
594 | use_collect2=yes | |
595 | ;; | |
596 | hppa1.0-*-hiux*) | |
597 | tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h" | |
598 | xm_file=pa/xm-pahpux.h | |
599 | xmake_file=pa/x-pa-hpux | |
600 | if [[ x$gas = xyes ]] | |
601 | then | |
602 | tm_file="${tm_file} pa/pa-gas.h" | |
603 | fi | |
604 | broken_install=yes | |
605 | install_headers_dir=install-headers-cpio | |
606 | use_collect2=yes | |
607 | ;; | |
608 | hppa*-*-lites*) | |
609 | target_cpu_default=1 | |
610 | use_collect2=yes | |
611 | fixincludes=Makefile.in | |
612 | ;; | |
613 | i370-*-mvs*) | |
614 | ;; | |
615 | i[[3456]]86-ibm-aix*) # IBM PS/2 running AIX | |
616 | if [[ x$gas = xyes ]] | |
617 | then | |
618 | tm_file=i386/aix386.h | |
619 | extra_parts="crtbegin.o crtend.o" | |
620 | tmake_file=i386/t-crtstuff | |
621 | else | |
622 | tm_file=i386/aix386ng.h | |
623 | use_collect2=yes | |
624 | fi | |
625 | xm_file=i386/xm-aix.h | |
626 | xmake_file=i386/x-aix | |
627 | broken_install=yes | |
628 | ;; | |
629 | i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4 | |
630 | xm_file=i386/xm-sysv4.h | |
631 | xmake_file=i386/x-ncr3000 | |
632 | if [[ x$stabs = xyes -a x$gas = xyes ]] | |
633 | then | |
634 | tm_file=i386/sysv4gdb.h | |
635 | else | |
636 | tm_file=i386/sysv4.h | |
637 | fi | |
638 | extra_parts="crtbegin.o crtend.o" | |
639 | tmake_file=i386/t-crtpic | |
640 | ;; | |
641 | i[[3456]]86-next-*) | |
642 | tm_file=i386/next.h | |
643 | xm_file=i386/xm-next.h | |
644 | tmake_file=i386/t-next | |
645 | xmake_file=i386/x-next | |
646 | extra_objs=nextstep.o | |
434332b5 | 647 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
648 | thread_file='mach' |
649 | fi | |
46f18e7b RK |
650 | ;; |
651 | i[[3456]]86-sequent-bsd*) # 80386 from Sequent | |
652 | use_collect2=yes | |
653 | if [[ x$gas = xyes ]] | |
654 | then | |
655 | tm_file=i386/seq-gas.h | |
656 | else | |
657 | tm_file=i386/sequent.h | |
658 | fi | |
659 | ;; | |
660 | i[[3456]]86-sequent-ptx1*) | |
661 | xm_file=i386/xm-sysv3.h | |
662 | xmake_file=i386/x-sysv3 | |
663 | tm_file=i386/seq-sysv3.h | |
664 | tmake_file=i386/t-crtstuff | |
665 | fixincludes=fixinc.ptx | |
666 | extra_parts="crtbegin.o crtend.o" | |
667 | install_headers_dir=install-headers-cpio | |
668 | broken_install=yes | |
669 | ;; | |
670 | i[[3456]]86-sequent-ptx2* | i[[3456]]86-sequent-sysv3*) | |
671 | xm_file=i386/xm-sysv3.h | |
672 | xmake_file=i386/x-sysv3 | |
673 | tm_file=i386/seq2-sysv3.h | |
674 | tmake_file=i386/t-crtstuff | |
675 | extra_parts="crtbegin.o crtend.o" | |
676 | fixincludes=fixinc.ptx | |
677 | install_headers_dir=install-headers-cpio | |
678 | broken_install=yes | |
679 | ;; | |
680 | i[[3456]]86-sequent-ptx4* | i[[3456]]86-sequent-sysv4*) | |
681 | xm_file=i386/xm-sysv4.h | |
682 | xmake_file=x-svr4 | |
683 | tm_file=i386/ptx4-i.h | |
684 | tmake_file=t-svr4 | |
685 | extra_parts="crtbegin.o crtend.o" | |
686 | fixincludes=fixinc.ptx | |
687 | install_headers_dir=install-headers-cpio | |
688 | broken_install=yes | |
689 | ;; | |
690 | i386-sun-sunos*) # Sun i386 roadrunner | |
691 | xm_file=i386/xm-sun.h | |
692 | tm_file=i386/sun.h | |
693 | use_collect2=yes | |
694 | ;; | |
695 | i[[3456]]86-*-aout*) | |
696 | tm_file=i386/i386-aout.h | |
697 | tmake_file=i386/t-i386bare | |
698 | ;; | |
699 | i[[3456]]86-*-bsdi* | i[[345]]86-*-bsd386*) | |
700 | tm_file=i386/bsd386.h | |
701 | xm_file=i386/xm-bsd386.h | |
702 | # tmake_file=t-libc-ok | |
703 | ;; | |
704 | i[[3456]]86-*-bsd*) | |
705 | tm_file=i386/386bsd.h | |
706 | xm_file=i386/xm-bsd386.h | |
707 | # tmake_file=t-libc-ok | |
708 | # Next line turned off because both 386BSD and BSD/386 use GNU ld. | |
709 | # use_collect2=yes | |
710 | ;; | |
711 | i[[3456]]86-*-freebsdelf*) | |
712 | tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h" | |
713 | xm_file=i386/xm-freebsd.h | |
714 | # On FreeBSD, the headers are already ok. | |
715 | fixincludes=Makefile.in | |
716 | tmake_file=i386/t-freebsd | |
717 | gas=yes | |
718 | gnu_ld=yes | |
719 | stabs=yes | |
720 | ;; | |
721 | i[[3456]]86-*-freebsd*) | |
722 | tm_file=i386/freebsd.h | |
723 | xm_file=i386/xm-freebsd.h | |
724 | # On FreeBSD, the headers are already ok. | |
725 | fixincludes=Makefile.in | |
726 | tmake_file=i386/t-freebsd | |
727 | ;; | |
728 | i[[3456]]86-*-netbsd*) | |
729 | tm_file=i386/netbsd.h | |
730 | xm_file=i386/xm-netbsd.h | |
731 | # On NetBSD, the headers are already okay. | |
732 | fixincludes=Makefile.in | |
e47f44f4 | 733 | tmake_file=t-netbsd |
46f18e7b RK |
734 | ;; |
735 | i[[3456]]86-*-coff*) | |
736 | tm_file=i386/i386-coff.h | |
737 | tmake_file=i386/t-i386bare | |
738 | ;; | |
739 | i[[3456]]86-*-isc*) # 80386 running ISC system | |
740 | xm_file=i386/xm-isc.h | |
741 | case $machine in | |
742 | i[[345]]86-*-isc[[34]]*) | |
743 | xmake_file=i386/x-isc3 | |
744 | ;; | |
745 | *) | |
746 | xmake_file=i386/x-isc | |
747 | ;; | |
748 | esac | |
749 | if [[ x$gas = xyes -a x$stabs = xyes ]] | |
750 | then | |
751 | tm_file=i386/iscdbx.h | |
752 | tmake_file=i386/t-svr3dbx | |
753 | extra_parts="svr3.ifile svr3z.ifile" | |
754 | else | |
755 | tm_file=i386/isccoff.h | |
756 | tmake_file=i386/t-crtstuff | |
757 | extra_parts="crtbegin.o crtend.o" | |
758 | fi | |
759 | install_headers_dir=install-headers-cpio | |
760 | broken_install=yes | |
761 | ;; | |
844dadc7 | 762 | i[[3456]]86-*-linux-gnuoldld*) # Intel 80386's running Linux |
46f18e7b RK |
763 | xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers |
764 | xmake_file=x-linux-aout | |
765 | tmake_file="t-linux-aout i386/t-crtstuff" | |
766 | tm_file=i386/linux-oldld.h | |
767 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
768 | broken_install=yes | |
769 | gnu_ld=yes | |
46f18e7b | 770 | ;; |
844dadc7 | 771 | i[[3456]]86-*-linux-gnuaout*) # Intel 80386's running Linux |
46f18e7b RK |
772 | xm_file=i386/xm-linux.h # with a.out format |
773 | xmake_file=x-linux-aout | |
774 | tmake_file="t-linux-aout i386/t-crtstuff" | |
775 | tm_file=i386/linux-aout.h | |
776 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
777 | broken_install=yes | |
778 | gnu_ld=yes | |
46f18e7b | 779 | ;; |
844dadc7 | 780 | i[[3456]]86-*-linux-gnulibc1) |
78b9f8df RK |
781 | xm_file=i386/xm-linux.h # Intel 80386's running Linux |
782 | xmake_file=x-linux # with ELF format using the | |
783 | tm_file=i386/linux.h # Linux C library 5 | |
784 | tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff" | |
785 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
786 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
787 | broken_install=yes | |
788 | gnu_ld=yes | |
434332b5 | 789 | if [[ x$enable_threads = xyes ]]; then |
78b9f8df RK |
790 | thread_file='single' |
791 | fi | |
792 | ;; | |
844dadc7 | 793 | i[[3456]]86-*-linux-gnu*) # Intel 80386's running Linux |
78b9f8df RK |
794 | xm_file=i386/xm-linux.h # with ELF format using glibc 2 |
795 | xmake_file=x-linux # aka Linux C library 6 | |
46f18e7b RK |
796 | tm_file=i386/linux.h |
797 | tmake_file="t-linux i386/t-crtstuff" | |
798 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
799 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
800 | broken_install=yes | |
801 | gnu_ld=yes | |
434332b5 | 802 | if [[ x$enable_threads = xyes ]]; then |
78b9f8df RK |
803 | thread_file='posix' |
804 | fi | |
46f18e7b RK |
805 | ;; |
806 | i[[3456]]86-*-gnu*) | |
807 | ;; | |
808 | i[[3456]]86-go32-msdos | i[[3456]]86-*-go32*) | |
809 | xm_file=i386/xm-go32.h | |
810 | tm_file=i386/go32.h | |
811 | tmake_file=i386/t-go32 | |
812 | ;; | |
813 | i[[3456]]86-moss-msdos* | i[[3456]]86-*-moss*) | |
814 | tm_file=i386/moss.h | |
815 | tmake_file=t-libc-ok | |
816 | fixincludes=Makefile.in | |
817 | gnu_ld=yes | |
818 | gas=yes | |
819 | ;; | |
820 | i[[3456]]86-*-lynxos*) | |
821 | if [[ x$gas = xyes ]] | |
822 | then | |
823 | tm_file=i386/lynx.h | |
824 | else | |
825 | tm_file=i386/lynx-ng.h | |
826 | fi | |
827 | xm_file=i386/xm-lynx.h | |
828 | tmake_file=i386/t-i386bare | |
829 | xmake_file=x-lynx | |
830 | ;; | |
831 | i[[3456]]86-*-mach*) | |
832 | tm_file=i386/mach.h | |
833 | # tmake_file=t-libc-ok | |
834 | use_collect2=yes | |
835 | ;; | |
836 | i[[3456]]86-*-osfrose*) # 386 using OSF/rose | |
837 | if [[ x$elf = xyes ]] | |
838 | then | |
839 | tm_file=i386/osfelf.h | |
840 | use_collect2= | |
841 | else | |
842 | tm_file=i386/osfrose.h | |
843 | use_collect2=yes | |
844 | fi | |
845 | xm_file=i386/xm-osf.h | |
846 | xmake_file=i386/x-osfrose | |
847 | tmake_file=i386/t-osf | |
848 | extra_objs=halfpic.o | |
849 | ;; | |
850 | i[[345]]86-go32-rtems*) | |
851 | cpu_type=i386 | |
852 | xm_file=i386/xm-go32.h | |
853 | tm_file=i386/go32-rtems.h | |
854 | tmake_file="i386/t-go32 t-rtems" | |
855 | ;; | |
856 | i[[345]]86-*-rtems*) | |
857 | cpu_type=i386 | |
858 | tm_file=i386/rtems.h | |
859 | tmake_file="i386/t-i386bare t-rtems" | |
860 | ;; | |
861 | i[[3456]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5 | |
862 | xm_file=i386/xm-sco5.h | |
863 | xmake_file=i386/x-sco5 | |
864 | fixincludes=fixinc.sco | |
865 | broken_install=yes | |
866 | tm_file=i386/sco5.h | |
867 | tmake_file=i386/t-sco5 | |
868 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" | |
869 | ;; | |
870 | i[[3456]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system | |
871 | xm_file=i386/xm-sco.h | |
872 | xmake_file=i386/x-sco4 | |
873 | fixincludes=fixinc.sco | |
874 | broken_install=yes | |
875 | install_headers_dir=install-headers-cpio | |
876 | if [[ x$stabs = xyes ]] | |
877 | then | |
878 | tm_file=i386/sco4dbx.h | |
879 | tmake_file=i386/t-svr3dbx | |
880 | extra_parts="svr3.ifile svr3z.rfile" | |
881 | else | |
882 | tm_file=i386/sco4.h | |
883 | tmake_file=i386/t-crtstuff | |
884 | extra_parts="crtbegin.o crtend.o" | |
885 | fi | |
886 | truncate_target=yes | |
887 | ;; | |
888 | i[[3456]]86-*-sco*) # 80386 running SCO system | |
889 | xm_file=i386/xm-sco.h | |
890 | xmake_file=i386/x-sco | |
891 | broken_install=yes | |
892 | install_headers_dir=install-headers-cpio | |
893 | if [[ x$stabs = xyes ]] | |
894 | then | |
895 | tm_file=i386/scodbx.h | |
896 | tmake_file=i386/t-svr3dbx | |
897 | extra_parts="svr3.ifile svr3z.rfile" | |
898 | else | |
899 | tm_file=i386/sco.h | |
900 | extra_parts="crtbegin.o crtend.o" | |
901 | tmake_file=i386/t-crtstuff | |
902 | fi | |
903 | truncate_target=yes | |
904 | ;; | |
905 | i[[3456]]86-*-solaris2*) | |
906 | xm_file=i386/xm-sysv4.h | |
907 | if [[ x$stabs = xyes ]] | |
908 | then | |
dec3e070 | 909 | tm_file=i386/sol2dbg.h |
46f18e7b RK |
910 | else |
911 | tm_file=i386/sol2.h | |
912 | fi | |
913 | tmake_file=i386/t-sol2 | |
914 | extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o" | |
915 | xmake_file=x-svr4 | |
916 | fixincludes=fixinc.svr4 | |
917 | broken_install=yes | |
434332b5 | 918 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
919 | thread_file='solaris' |
920 | fi | |
46f18e7b RK |
921 | ;; |
922 | i[[3456]]86-*-sysv4*) # Intel 80386's running system V.4 | |
923 | xm_file=i386/xm-sysv4.h | |
924 | tm_file=i386/sysv4.h | |
925 | if [[ x$stabs = xyes ]] | |
926 | then | |
927 | tm_file="${tm_file} dbx.h" | |
928 | fi | |
929 | tmake_file=i386/t-crtpic | |
930 | xmake_file=x-svr4 | |
931 | extra_parts="crtbegin.o crtend.o" | |
932 | ;; | |
933 | i[[3456]]86-*-sysv*) # Intel 80386's running system V | |
934 | xm_file=i386/xm-sysv3.h | |
935 | xmake_file=i386/x-sysv3 | |
936 | if [[ x$gas = xyes ]] | |
937 | then | |
938 | if [[ x$stabs = xyes ]] | |
939 | then | |
940 | tm_file=i386/svr3dbx.h | |
941 | tmake_file=i386/t-svr3dbx | |
942 | extra_parts="svr3.ifile svr3z.rfile" | |
943 | else | |
944 | tm_file=i386/svr3gas.h | |
945 | extra_parts="crtbegin.o crtend.o" | |
946 | tmake_file=i386/t-crtstuff | |
947 | fi | |
948 | else | |
949 | tm_file=i386/sysv3.h | |
950 | extra_parts="crtbegin.o crtend.o" | |
951 | tmake_file=i386/t-crtstuff | |
952 | fi | |
953 | ;; | |
954 | i386-*-vsta) # Intel 80386's running VSTa kernel | |
955 | xm_file=i386/xm-vsta.h | |
956 | tm_file=i386/vsta.h | |
957 | tmake_file=i386/t-vsta | |
958 | xmake_file=i386/x-vsta | |
959 | ;; | |
960 | i[[3456]]86-*-pe | i[[3456]]86-*-cygwin32) | |
961 | xm_file="${xm_file} i386/xm-cygwin32.h" | |
962 | tmake_file=i386/t-cygwin32 | |
963 | tm_file=i386/cygwin32.h | |
964 | xmake_file=i386/x-cygwin32 | |
965 | extra_objs=winnt.o | |
966 | fixincludes=Makefile.in | |
434332b5 | 967 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
968 | thread_file='win32' |
969 | fi | |
46f18e7b RK |
970 | exeext=.exe |
971 | ;; | |
5dfe8508 RK |
972 | i[[3456]]86-*-mingw32) |
973 | tm_file=i386/mingw32.h | |
974 | xm_file="${xm_file} i386/xm-mingw32.h" | |
975 | tmake_file=i386/t-cygwin32 | |
976 | extra_objs=winnt.o | |
977 | xmake_file=i386/x-cygwin32 | |
978 | fixincludes=Makefile.in | |
434332b5 | 979 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
980 | thread_file='win32' |
981 | fi | |
5dfe8508 RK |
982 | exeext=.exe |
983 | ;; | |
46f18e7b RK |
984 | i[[3456]]86-*-winnt3*) |
985 | tm_file=i386/win-nt.h | |
986 | out_file=i386/i386.c | |
987 | xm_file=i386/xm-winnt.h | |
988 | xmake_file=winnt/x-winnt | |
989 | tmake_file=i386/t-winnt | |
990 | extra_host_objs="winnt.o oldnames.o" | |
991 | extra_gcc_objs="spawnv.o oldnames.o" | |
992 | fixincludes=fixinc.winnt | |
993 | if [[ x$gnu_ld != xyes ]] | |
994 | then | |
995 | extra_programs=ld.exe | |
996 | fi | |
434332b5 | 997 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
998 | thread_file='win32' |
999 | fi | |
46f18e7b RK |
1000 | ;; |
1001 | i[[3456]]86-dg-dgux) | |
1002 | xm_file=i386/xm-dgux.h | |
1003 | out_file=i386/dgux.c | |
1004 | tm_file=i386/dgux.h | |
1005 | tmake_file=i386/t-dgux | |
1006 | xmake_file=i386/x-dgux | |
1007 | fixincludes=fixinc.dgux | |
1008 | install_headers_dir=install-headers-cpio | |
1009 | ;; | |
1010 | i860-alliant-*) # Alliant FX/2800 | |
1011 | tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h" | |
1012 | xm_file="${xm_file} i860/xm-fx2800.h" | |
1013 | xmake_file=i860/x-fx2800 | |
1014 | tmake_file=i860/t-fx2800 | |
1015 | extra_parts="crtbegin.o crtend.o" | |
1016 | ;; | |
1017 | i860-*-bsd*) | |
1018 | tm_file="${tm_file} i860/bsd.h" | |
1019 | if [[ x$gas = xyes ]] | |
1020 | then | |
1021 | tm_file="${tm_file} i860/bsd-gas.h" | |
1022 | fi | |
1023 | use_collect2=yes | |
1024 | ;; | |
1025 | i860-*-mach*) | |
1026 | tm_file="${tm_file} i860/mach.h" | |
1027 | tmake_file=t-libc-ok | |
1028 | ;; | |
1029 | i860-*-osf*) # Intel Paragon XP/S, OSF/1AD | |
1030 | tm_file="${tm_file} svr3.h i860/paragon.h" | |
1031 | xm_file="${xm_file} xm-svr3.h" | |
1032 | tmake_file=t-osf | |
1033 | broken_install=yes | |
1034 | ;; | |
1035 | i860-*-sysv3*) | |
1036 | tm_file="${tm_file} svr3.h i860/sysv3.h" | |
1037 | xm_file="${tm_file} xm-svr3.h" | |
1038 | xmake_file=i860/x-sysv3 | |
1039 | extra_parts="crtbegin.o crtend.o" | |
1040 | ;; | |
1041 | i860-*-sysv4*) | |
1042 | tm_file="${tm_file} svr4.h i860/sysv4.h" | |
1043 | xm_file="${xm_file} xm-svr3.h" | |
1044 | xmake_file=i860/x-sysv4 | |
1045 | tmake_file=t-svr4 | |
1046 | extra_parts="crtbegin.o crtend.o" | |
1047 | ;; | |
1048 | i960-wrs-vxworks5 | i960-wrs-vxworks5.0*) | |
1049 | tm_file="${tm_file} i960/vx960.h" | |
1050 | tmake_file=i960/t-vxworks960 | |
1051 | use_collect2=yes | |
1052 | ;; | |
1053 | i960-wrs-vxworks5*) | |
1054 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h" | |
1055 | tmake_file=i960/t-vxworks960 | |
1056 | use_collect2=yes | |
1057 | ;; | |
1058 | i960-wrs-vxworks*) | |
1059 | tm_file="${tm_file} i960/vx960.h" | |
1060 | tmake_file=i960/t-vxworks960 | |
1061 | use_collect2=yes | |
1062 | ;; | |
1063 | i960-*-coff*) | |
1064 | tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h" | |
1065 | tmake_file=i960/t-960bare | |
1066 | use_collect2=yes | |
1067 | ;; | |
1068 | i960-*-rtems) | |
1069 | tmake_file="i960/t-960bare t-rtems" | |
1070 | tm_file="${tm_file} dbxcoff.h i960/rtems.h" | |
1071 | use_collect2=yes | |
1072 | ;; | |
1073 | i960-*-*) # Default i960 environment. | |
1074 | use_collect2=yes | |
1075 | ;; | |
dec3e070 JW |
1076 | m32r-*-elf*) |
1077 | extra_parts="crtinit.o crtfini.o" | |
1078 | ;; | |
46f18e7b RK |
1079 | m68000-convergent-sysv*) |
1080 | tm_file=m68k/ctix.h | |
1081 | xm_file=m68k/xm-3b1.h | |
1082 | use_collect2=yes | |
1083 | extra_headers=math-68881.h | |
1084 | ;; | |
1085 | m68000-hp-bsd*) # HP 9000/200 running BSD | |
1086 | tm_file=m68k/hp2bsd.h | |
1087 | xmake_file=m68k/x-hp2bsd | |
1088 | use_collect2=yes | |
1089 | extra_headers=math-68881.h | |
1090 | ;; | |
1091 | m68000-hp-hpux*) # HP 9000 series 300 | |
1092 | xm_file=m68k/xm-hp320.h | |
1093 | if [[ x$gas = xyes ]] | |
1094 | then | |
1095 | xmake_file=m68k/x-hp320g | |
1096 | tm_file=m68k/hp310g.h | |
1097 | else | |
1098 | xmake_file=m68k/x-hp320 | |
1099 | tm_file=m68k/hp310.h | |
1100 | fi | |
1101 | broken_install=yes | |
1102 | install_headers_dir=install-headers-cpio | |
1103 | use_collect2=yes | |
1104 | extra_headers=math-68881.h | |
1105 | ;; | |
1106 | m68000-sun-sunos3*) | |
1107 | tm_file=m68k/sun2.h | |
1108 | use_collect2=yes | |
1109 | extra_headers=math-68881.h | |
1110 | ;; | |
1111 | m68000-sun-sunos4*) | |
1112 | tm_file=m68k/sun2o4.h | |
1113 | use_collect2=yes | |
1114 | extra_headers=math-68881.h | |
1115 | ;; | |
1116 | m68000-att-sysv*) | |
1117 | xm_file=m68k/xm-3b1.h | |
1118 | if [[ x$gas = xyes ]] | |
1119 | then | |
1120 | tm_file=m68k/3b1g.h | |
1121 | else | |
1122 | tm_file=m68k/3b1.h | |
1123 | fi | |
1124 | use_collect2=yes | |
1125 | extra_headers=math-68881.h | |
1126 | ;; | |
1127 | m68k-apple-aux*) # Apple Macintosh running A/UX | |
1128 | xm_file=m68k/xm-aux.h | |
1129 | tmake_file=m68k/t-aux | |
1130 | broken_install=yes | |
1131 | install_headers_dir=install-headers-cpio | |
1132 | extra_headers=math-68881.h | |
1133 | extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o" | |
1134 | tm_file= | |
1135 | if [[ "$gnu_ld" = yes ]] | |
1136 | then | |
1137 | tm_file="${tm_file} m68k/auxgld.h" | |
1138 | else | |
1139 | tm_file="${tm_file} m68k/auxld.h" | |
1140 | fi | |
1141 | if [[ "$gas" = yes ]] | |
1142 | then | |
1143 | tm_file="${tm_file} m68k/auxgas.h" | |
1144 | else | |
1145 | tm_file="${tm_file} m68k/auxas.h" | |
1146 | fi | |
1147 | tm_file="${tm_file} m68k/a-ux.h" | |
1148 | ;; | |
1149 | m68k-apollo-*) | |
1150 | tm_file=m68k/apollo68.h | |
1151 | xmake_file=m68k/x-apollo68 | |
1152 | use_collect2=yes | |
1153 | extra_headers=math-68881.h | |
1154 | ;; | |
1155 | m68k-altos-sysv*) # Altos 3068 | |
1156 | if [[ x$gas = xyes ]] | |
1157 | then | |
1158 | tm_file=m68k/altos3068.h | |
1159 | xm_file=m68k/xm-altos3068.h | |
1160 | else | |
1161 | echo "The Altos is supported only with the GNU assembler" 1>&2 | |
1162 | exit 1 | |
1163 | fi | |
1164 | extra_headers=math-68881.h | |
1165 | ;; | |
1166 | m68k-bull-sysv*) # Bull DPX/2 | |
1167 | if [[ x$gas = xyes ]] | |
1168 | then | |
1169 | if [[ x$stabs = xyes ]] | |
1170 | then | |
1171 | tm_file=m68k/dpx2cdbx.h | |
1172 | else | |
1173 | tm_file=m68k/dpx2g.h | |
1174 | fi | |
1175 | else | |
1176 | tm_file=m68k/dpx2.h | |
1177 | fi | |
1178 | xm_file=m68k/xm-m68kv.h | |
1179 | xmake_file=m68k/x-dpx2 | |
1180 | use_collect2=yes | |
1181 | extra_headers=math-68881.h | |
1182 | ;; | |
1183 | m68k-atari-sysv4*) # Atari variant of V.4. | |
1184 | tm_file=m68k/atari.h | |
1185 | xm_file=m68k/xm-atari.h | |
1186 | tmake_file=t-svr4 | |
1187 | extra_parts="crtbegin.o crtend.o" | |
1188 | extra_headers=math-68881.h | |
1189 | ;; | |
1190 | m68k-motorola-sysv*) | |
1191 | tm_file=m68k/mot3300.h | |
1192 | xm_file=m68k/xm-mot3300.h | |
1193 | if [[ x$gas = xyes ]] | |
1194 | then | |
1195 | xmake_file=m68k/x-mot3300-gas | |
1196 | if [[ x$gnu_ld = xyes ]] | |
1197 | then | |
1198 | tmake_file=m68k/t-mot3300-gald | |
1199 | else | |
1200 | tmake_file=m68k/t-mot3300-gas | |
1201 | use_collect2=yes | |
1202 | fi | |
1203 | else | |
1204 | xmake_file=m68k/x-mot3300 | |
1205 | if [[ x$gnu_ld = xyes ]] | |
1206 | then | |
1207 | tmake_file=m68k/t-mot3300-gld | |
1208 | else | |
1209 | tmake_file=m68k/t-mot3300 | |
1210 | use_collect2=yes | |
1211 | fi | |
1212 | fi | |
1213 | gdb_needs_out_file_path=yes | |
1214 | extra_parts="crt0.o mcrt0.o" | |
1215 | extra_headers=math-68881.h | |
1216 | ;; | |
1217 | m68k-ncr-sysv*) # NCR Tower 32 SVR3 | |
1218 | tm_file=m68k/tower-as.h | |
1219 | xm_file=m68k/xm-tower.h | |
1220 | xmake_file=m68k/x-tower | |
1221 | extra_parts="crtbegin.o crtend.o" | |
1222 | extra_headers=math-68881.h | |
1223 | ;; | |
1224 | m68k-plexus-sysv*) | |
1225 | tm_file=m68k/plexus.h | |
1226 | xm_file=m68k/xm-plexus.h | |
1227 | use_collect2=yes | |
1228 | extra_headers=math-68881.h | |
1229 | ;; | |
1230 | m68k-tti-*) | |
1231 | tm_file=m68k/pbb.h | |
1232 | xm_file=m68k/xm-m68kv.h | |
1233 | extra_headers=math-68881.h | |
1234 | ;; | |
1235 | m68k-crds-unos*) | |
1236 | xm_file=m68k/xm-crds.h | |
1237 | xmake_file=m68k/x-crds | |
1238 | tm_file=m68k/crds.h | |
1239 | broken_install=yes | |
1240 | use_collect2=yes | |
1241 | extra_headers=math-68881.h | |
1242 | ;; | |
1243 | m68k-cbm-sysv4*) # Commodore variant of V.4. | |
1244 | tm_file=m68k/amix.h | |
1245 | xm_file=m68k/xm-amix.h | |
1246 | xmake_file=m68k/x-amix | |
1247 | tmake_file=t-svr4 | |
1248 | extra_parts="crtbegin.o crtend.o" | |
1249 | extra_headers=math-68881.h | |
1250 | ;; | |
1251 | m68k-ccur-rtu) | |
1252 | tm_file=m68k/ccur-GAS.h | |
1253 | xmake_file=m68k/x-ccur | |
1254 | extra_headers=math-68881.h | |
1255 | use_collect2=yes | |
1256 | broken_install=yes | |
1257 | ;; | |
1258 | m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd | |
1259 | tm_file=m68k/hp3bsd44.h | |
1260 | xmake_file=m68k/x-hp3bsd44 | |
1261 | use_collect2=yes | |
1262 | extra_headers=math-68881.h | |
1263 | ;; | |
1264 | m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix | |
1265 | tm_file=m68k/hp3bsd.h | |
1266 | use_collect2=yes | |
1267 | extra_headers=math-68881.h | |
1268 | ;; | |
1269 | m68k-isi-bsd*) | |
1270 | if [[ x$with_fp = xno ]] | |
1271 | then | |
1272 | tm_file=m68k/isi-nfp.h | |
1273 | else | |
1274 | tm_file=m68k/isi.h | |
1275 | fi | |
1276 | use_collect2=yes | |
1277 | extra_headers=math-68881.h | |
1278 | ;; | |
1279 | m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7. | |
1280 | xm_file=m68k/xm-hp320.h | |
1281 | if [[ x$gas = xyes ]] | |
1282 | then | |
1283 | xmake_file=m68k/x-hp320g | |
1284 | tm_file=m68k/hp320g.h | |
1285 | else | |
1286 | xmake_file=m68k/x-hp320 | |
1287 | tm_file=m68k/hpux7.h | |
1288 | fi | |
1289 | broken_install=yes | |
1290 | install_headers_dir=install-headers-cpio | |
1291 | use_collect2=yes | |
1292 | extra_headers=math-68881.h | |
1293 | ;; | |
1294 | m68k-hp-hpux*) # HP 9000 series 300 | |
1295 | xm_file=m68k/xm-hp320.h | |
1296 | if [[ x$gas = xyes ]] | |
1297 | then | |
1298 | xmake_file=m68k/x-hp320g | |
1299 | tm_file=m68k/hp320g.h | |
1300 | else | |
1301 | xmake_file=m68k/x-hp320 | |
1302 | tm_file=m68k/hp320.h | |
1303 | fi | |
1304 | broken_install=yes | |
1305 | install_headers_dir=install-headers-cpio | |
1306 | use_collect2=yes | |
1307 | extra_headers=math-68881.h | |
1308 | ;; | |
1309 | m68k-sun-mach*) | |
1310 | tm_file=m68k/sun3mach.h | |
1311 | use_collect2=yes | |
1312 | extra_headers=math-68881.h | |
1313 | ;; | |
1314 | m68k-sony-newsos3*) | |
1315 | if [[ x$gas = xyes ]] | |
1316 | then | |
1317 | tm_file=m68k/news3gas.h | |
1318 | else | |
1319 | tm_file=m68k/news3.h | |
1320 | fi | |
1321 | use_collect2=yes | |
1322 | extra_headers=math-68881.h | |
1323 | ;; | |
1324 | m68k-sony-bsd* | m68k-sony-newsos*) | |
1325 | if [[ x$gas = xyes ]] | |
1326 | then | |
1327 | tm_file=m68k/newsgas.h | |
1328 | else | |
1329 | tm_file=m68k/news.h | |
1330 | fi | |
1331 | use_collect2=yes | |
1332 | extra_headers=math-68881.h | |
1333 | ;; | |
1334 | m68k-next-nextstep2*) | |
1335 | tm_file=m68k/next21.h | |
1336 | xm_file=m68k/xm-next.h | |
1337 | tmake_file=m68k/t-next | |
1338 | xmake_file=m68k/x-next | |
1339 | extra_objs=nextstep.o | |
1340 | extra_headers=math-68881.h | |
1341 | use_collect2=yes | |
1342 | ;; | |
1343 | m68k-next-nextstep3*) | |
1344 | tm_file=m68k/next.h | |
1345 | xm_file=m68k/xm-next.h | |
1346 | tmake_file=m68k/t-next | |
1347 | xmake_file=m68k/x-next | |
1348 | extra_objs=nextstep.o | |
1349 | extra_headers=math-68881.h | |
434332b5 | 1350 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1351 | thread_file='mach' |
1352 | fi | |
46f18e7b RK |
1353 | ;; |
1354 | m68k-sun-sunos3*) | |
1355 | if [[ x$with_fp = xno ]] | |
1356 | then | |
1357 | tm_file=m68k/sun3n3.h | |
1358 | else | |
1359 | tm_file=m68k/sun3o3.h | |
1360 | fi | |
1361 | use_collect2=yes | |
1362 | extra_headers=math-68881.h | |
1363 | ;; | |
1364 | m68k-sun-sunos*) # For SunOS 4 (the default). | |
1365 | if [[ x$with_fp = xno ]] | |
1366 | then | |
1367 | tm_file=m68k/sun3n.h | |
1368 | else | |
1369 | tm_file=m68k/sun3.h | |
1370 | fi | |
1371 | xm_file=m68k/xm-sun3.h | |
1372 | use_collect2=yes | |
1373 | extra_headers=math-68881.h | |
1374 | ;; | |
1375 | m68k-wrs-vxworks*) | |
1376 | tm_file=m68k/vxm68k.h | |
1377 | tmake_file=m68k/t-vxworks68 | |
1378 | extra_headers=math-68881.h | |
1379 | ;; | |
1380 | m68k-*-aout*) | |
1381 | tmake_file=m68k/t-m68kbare | |
1382 | tm_file="m68k/m68k-aout.h libgloss.h" | |
1383 | extra_headers=math-68881.h | |
1384 | ;; | |
1385 | m68k-*-coff*) | |
1386 | tmake_file=m68k/t-m68kbare | |
1387 | tm_file="m68k/m68k-coff.h dbx.h libgloss.h" | |
1388 | extra_headers=math-68881.h | |
1389 | ;; | |
1390 | m68k-*-lynxos*) | |
1391 | if [[ x$gas = xyes ]] | |
1392 | then | |
1393 | tm_file=m68k/lynx.h | |
1394 | else | |
1395 | tm_file=m68k/lynx-ng.h | |
1396 | fi | |
1397 | xm_file=m68k/xm-lynx.h | |
1398 | xmake_file=x-lynx | |
1399 | tmake_file=m68k/t-lynx | |
1400 | extra_headers=math-68881.h | |
1401 | ;; | |
1402 | m68k-*-netbsd*) | |
1403 | tm_file=m68k/netbsd.h | |
1404 | xm_file=m68k/xm-netbsd.h | |
1405 | # On NetBSD, the headers are already okay. | |
1406 | fixincludes=Makefile.in | |
e47f44f4 | 1407 | tmake_file=t-netbsd |
46f18e7b RK |
1408 | ;; |
1409 | m68k-*-sysv3*) # Motorola m68k's running system V.3 | |
1410 | xm_file=m68k/xm-m68kv.h | |
1411 | xmake_file=m68k/x-m68kv | |
1412 | extra_parts="crtbegin.o crtend.o" | |
1413 | extra_headers=math-68881.h | |
1414 | ;; | |
1415 | m68k-*-sysv4*) # Motorola m68k's running system V.4 | |
1416 | tm_file=m68k/m68kv4.h | |
1417 | xm_file=m68k/xm-m68kv.h | |
1418 | tmake_file=t-svr4 | |
1419 | extra_parts="crtbegin.o crtend.o" | |
1420 | extra_headers=math-68881.h | |
1421 | ;; | |
844dadc7 | 1422 | m68k-*-linux-gnuaout*) # Motorola m68k's running Linux |
46f18e7b RK |
1423 | xm_file=m68k/xm-linux.h # with a.out format |
1424 | xmake_file=x-linux | |
1425 | tm_file=m68k/linux-aout.h | |
1426 | tmake_file="t-linux-aout m68k/t-linux-aout" | |
1427 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
1428 | extra_headers=math-68881.h | |
1429 | gnu_ld=yes | |
46f18e7b | 1430 | ;; |
95fd3981 RK |
1431 | m68k-*-linux-gnulibc1) # Motorola m68k's running Linux |
1432 | xm_file=m68k/xm-linux.h # with ELF format using the | |
1433 | xmake_file=x-linux # Linux C library 5 | |
1434 | tm_file=m68k/linux.h | |
1435 | tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux" | |
1436 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1437 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
1438 | extra_headers=math-68881.h | |
1439 | gnu_ld=yes | |
1440 | ;; | |
844dadc7 | 1441 | m68k-*-linux-gnu*) # Motorola m68k's running Linux |
95fd3981 RK |
1442 | xm_file=m68k/xm-linux.h # with ELF format using glibc 2 |
1443 | xmake_file=x-linux # aka the Linux C library 6. | |
46f18e7b RK |
1444 | tm_file=m68k/linux.h |
1445 | tmake_file="t-linux m68k/t-linux" | |
1446 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" | |
1447 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
1448 | extra_headers=math-68881.h | |
1449 | gnu_ld=yes | |
95fd3981 RK |
1450 | if [[ x$thread_file = x ]]; then |
1451 | thread_file='posix' | |
1452 | fi | |
46f18e7b RK |
1453 | ;; |
1454 | m68k-*-psos*) | |
1455 | tmake_file=m68k/t-m68kbare | |
1456 | tm_file=m68k/m68k-psos.h | |
1457 | extra_headers=math-68881.h | |
1458 | ;; | |
1459 | m68k-*-rtems*) | |
1460 | tmake_file="m68k/t-m68kbare t-rtems" | |
1461 | tm_file=m68k/rtems.h | |
1462 | extra_headers=math-68881.h | |
1463 | ;; | |
1464 | ||
1465 | m88k-dg-dgux*) | |
1466 | case $machine in | |
1467 | m88k-dg-dguxbcs*) | |
1468 | tm_file=m88k/dguxbcs.h | |
1469 | tmake_file=m88k/t-dguxbcs | |
1470 | ;; | |
1471 | *) | |
1472 | tm_file=m88k/dgux.h | |
1473 | tmake_file=m88k/t-dgux | |
1474 | ;; | |
1475 | esac | |
1476 | extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld" | |
1477 | broken_install=yes | |
1478 | xmake_file=m88k/x-dgux | |
1479 | if [[ x$gas = xyes ]] | |
1480 | then | |
1481 | tmake_file=m88k/t-dgux-gas | |
1482 | fi | |
1483 | fixincludes=fixinc.dgux | |
1484 | ;; | |
1485 | m88k-dolphin-sysv3*) | |
1486 | tm_file=m88k/dolph.h | |
1487 | extra_parts="crtbegin.o crtend.o" | |
1488 | xm_file=m88k/xm-sysv3.h | |
1489 | xmake_file=m88k/x-dolph | |
1490 | if [[ x$gas = xyes ]] | |
1491 | then | |
1492 | tmake_file=m88k/t-m88k-gas | |
1493 | fi | |
1494 | ;; | |
1495 | m88k-tektronix-sysv3) | |
1496 | tm_file=m88k/tekXD88.h | |
1497 | extra_parts="crtbegin.o crtend.o" | |
1498 | xm_file=m88k/xm-sysv3.h | |
1499 | xmake_file=m88k/x-tekXD88 | |
1500 | if [[ x$gas = xyes ]] | |
1501 | then | |
1502 | tmake_file=m88k/t-m88k-gas | |
1503 | fi | |
1504 | ;; | |
1505 | m88k-*-aout*) | |
1506 | tm_file=m88k/m88k-aout.h | |
1507 | ;; | |
1508 | m88k-*-coff*) | |
1509 | tm_file=m88k/m88k-coff.h | |
1510 | tmake_file=m88k/t-bug | |
1511 | ;; | |
1512 | m88k-*-luna*) | |
1513 | tm_file=m88k/luna.h | |
1514 | extra_parts="crtbegin.o crtend.o" | |
1515 | if [[ x$gas = xyes ]] | |
1516 | then | |
1517 | tmake_file=m88k/t-luna-gas | |
1518 | else | |
1519 | tmake_file=m88k/t-luna | |
1520 | fi | |
1521 | ;; | |
1522 | m88k-*-sysv3*) | |
1523 | tm_file=m88k/sysv3.h | |
1524 | extra_parts="crtbegin.o crtend.o" | |
1525 | xm_file=m88k/xm-sysv3.h | |
1526 | xmake_file=m88k/x-sysv3 | |
1527 | if [[ x$gas = xyes ]] | |
1528 | then | |
1529 | tmake_file=m88k/t-m88k-gas | |
1530 | fi | |
1531 | ;; | |
1532 | m88k-*-sysv4*) | |
1533 | tm_file=m88k/sysv4.h | |
1534 | extra_parts="crtbegin.o crtend.o" | |
1535 | xmake_file=m88k/x-sysv4 | |
1536 | tmake_file=m88k/t-sysv4 | |
1537 | ;; | |
1538 | mips-sgi-irix6*) # SGI System V.4., IRIX 6 | |
1539 | tm_file=mips/iris6.h | |
1540 | xm_file=mips/xm-iris6.h | |
1541 | broken_install=yes | |
1542 | fixincludes=fixinc.irix | |
1543 | xmake_file=mips/x-iris6 | |
1544 | tmake_file=mips/t-iris6 | |
434332b5 | 1545 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1546 | thread_file='irix' |
1547 | fi | |
46f18e7b RK |
1548 | ;; |
1549 | mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64 | |
1550 | tm_file=mips/cross64.h | |
1551 | xm_file=mips/xm-iris5.h | |
1552 | broken_install=yes | |
1553 | fixincludes=Makefile.in | |
1554 | xmake_file=mips/x-iris | |
1555 | tmake_file=mips/t-cross64 | |
1556 | # See comment in mips/iris[56].h files. | |
1557 | use_collect2=yes | |
434332b5 | 1558 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1559 | thread_file='irix' |
1560 | fi | |
46f18e7b RK |
1561 | ;; |
1562 | mips-sni-sysv4) | |
1563 | if [[ x$gas = xyes ]] | |
1564 | then | |
1565 | if [[ x$stabs = xyes ]] | |
1566 | then | |
1567 | tm_file=mips/iris5gdb.h | |
1568 | else | |
1569 | tm_file=mips/sni-gas.h | |
1570 | fi | |
1571 | else | |
1572 | tm_file=mips/sni-svr4.h | |
1573 | fi | |
1574 | xm_file=mips/xm-sysv.h | |
1575 | xmake_file=mips/x-sni-svr4 | |
1576 | tmake_file=mips/t-mips-gas | |
1577 | if [[ x$gnu_ld != xyes ]] | |
1578 | then | |
1579 | use_collect2=yes | |
1580 | fi | |
1581 | broken_install=yes | |
1582 | ;; | |
1583 | mips-sgi-irix5*) # SGI System V.4., IRIX 5 | |
1584 | if [[ x$gas = xyes ]] | |
1585 | then | |
1586 | tm_file=mips/iris5gas.h | |
1587 | if [[ x$stabs = xyes ]] | |
1588 | then | |
1589 | tm_file="${tm_file} dbx.h" | |
1590 | fi | |
1591 | else | |
1592 | tm_file=mips/iris5.h | |
1593 | fi | |
1594 | xm_file=mips/xm-iris5.h | |
1595 | broken_install=yes | |
1596 | fixincludes=fixinc.irix | |
1597 | xmake_file=mips/x-iris | |
1598 | # mips-tfile doesn't work yet | |
1599 | tmake_file=mips/t-mips-gas | |
1600 | # See comment in mips/iris5.h file. | |
1601 | use_collect2=yes | |
434332b5 | 1602 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1603 | thread_file='irix' |
1604 | fi | |
46f18e7b RK |
1605 | ;; |
1606 | mips-sgi-irix4loser*) # Mostly like a MIPS. | |
1607 | tm_file=mips/iris4loser.h | |
1608 | if [[ x$stabs = xyes ]]; then | |
1609 | tm_file="${tm_file} dbx.h" | |
1610 | fi | |
1611 | xm_file=mips/xm-iris4.h | |
1612 | broken_install=yes | |
1613 | xmake_file=mips/x-iris | |
1614 | if [[ x$gas = xyes ]] | |
1615 | then | |
1616 | tmake_file=mips/t-mips-gas | |
1617 | else | |
1618 | extra_passes="mips-tfile mips-tdump" | |
1619 | fi | |
1620 | if [[ x$gnu_ld != xyes ]] | |
1621 | then | |
1622 | use_collect2=yes | |
1623 | fi | |
434332b5 | 1624 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1625 | thread_file='irix' |
1626 | fi | |
46f18e7b RK |
1627 | ;; |
1628 | mips-sgi-irix4*) # Mostly like a MIPS. | |
1629 | tm_file=mips/iris4.h | |
1630 | if [[ x$stabs = xyes ]]; then | |
1631 | tm_file="${tm_file} dbx.h" | |
1632 | fi | |
1633 | xm_file=mips/xm-iris4.h | |
1634 | broken_install=yes | |
1635 | xmake_file=mips/x-iris | |
1636 | if [[ x$gas = xyes ]] | |
1637 | then | |
1638 | tmake_file=mips/t-mips-gas | |
1639 | else | |
1640 | extra_passes="mips-tfile mips-tdump" | |
1641 | fi | |
1642 | if [[ x$gnu_ld != xyes ]] | |
1643 | then | |
1644 | use_collect2=yes | |
1645 | fi | |
434332b5 | 1646 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
1647 | thread_file='irix' |
1648 | fi | |
46f18e7b RK |
1649 | ;; |
1650 | mips-sgi-*) # Mostly like a MIPS. | |
1651 | tm_file=mips/iris3.h | |
1652 | if [[ x$stabs = xyes ]]; then | |
1653 | tm_file="${tm_file} dbx.h" | |
1654 | fi | |
1655 | xm_file=mips/xm-iris3.h | |
1656 | broken_install=yes | |
1657 | xmake_file=mips/x-iris3 | |
1658 | if [[ x$gas = xyes ]] | |
1659 | then | |
1660 | tmake_file=mips/t-mips-gas | |
1661 | else | |
1662 | extra_passes="mips-tfile mips-tdump" | |
1663 | fi | |
1664 | if [[ x$gnu_ld != xyes ]] | |
1665 | then | |
1666 | use_collect2=yes | |
1667 | fi | |
1668 | ;; | |
1669 | mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose. | |
1670 | tm_file=mips/osfrose.h | |
1671 | xmake_file=mips/x-osfrose | |
1672 | tmake_file=mips/t-osfrose | |
1673 | extra_objs=halfpic.o | |
1674 | use_collect2=yes | |
1675 | ;; | |
1676 | mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL | |
1677 | tm_file=mips/dec-osf1.h | |
1678 | if [[ x$stabs = xyes ]]; then | |
1679 | tm_file="${tm_file} dbx.h" | |
1680 | fi | |
1681 | xmake_file=mips/x-dec-osf1 | |
1682 | if [[ x$gas = xyes ]] | |
1683 | then | |
1684 | tmake_file=mips/t-mips-gas | |
1685 | else | |
1686 | tmake_file=mips/t-ultrix | |
1687 | extra_passes="mips-tfile mips-tdump" | |
1688 | fi | |
1689 | if [[ x$gnu_ld != xyes ]] | |
1690 | then | |
1691 | use_collect2=yes | |
1692 | fi | |
1693 | ;; | |
1694 | mips-dec-bsd*) # Decstation running 4.4 BSD | |
1695 | tm_file=mips/dec-bsd.h | |
1696 | fixincludes= | |
1697 | if [[ x$gas = xyes ]] | |
1698 | then | |
1699 | tmake_file=mips/t-mips-gas | |
1700 | else | |
1701 | tmake_file=mips/t-ultrix | |
1702 | extra_passes="mips-tfile mips-tdump" | |
1703 | fi | |
1704 | if [[ x$gnu_ld != xyes ]] | |
1705 | then | |
1706 | use_collect2=yes | |
1707 | fi | |
1708 | ;; | |
1709 | mips-dec-netbsd*) # Decstation running NetBSD | |
1710 | tm_file=mips/netbsd.h | |
1711 | xm_file=mips/xm-netbsd.h | |
e47f44f4 | 1712 | # On NetBSD, the headers are already okay. |
46f18e7b | 1713 | fixincludes=Makefile.in |
e47f44f4 | 1714 | tmake_file=t-netbsd |
a588a9a1 RK |
1715 | if [[ x$prefix = xNONE ]]; then |
1716 | prefix=$native_prefix | |
1717 | fi | |
46f18e7b RK |
1718 | prefix=$native_prefix |
1719 | ;; | |
1720 | mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news. | |
1721 | tm_file=mips/news4.h | |
1722 | if [[ x$stabs = xyes ]]; then | |
1723 | tm_file="${tm_file} dbx.h" | |
1724 | fi | |
1725 | if [[ x$gas = xyes ]] | |
1726 | then | |
1727 | tmake_file=mips/t-mips-gas | |
1728 | else | |
1729 | extra_passes="mips-tfile mips-tdump" | |
1730 | fi | |
1731 | if [[ x$gnu_ld != xyes ]] | |
1732 | then | |
1733 | use_collect2=yes | |
1734 | fi | |
1735 | xmake_file=mips/x-sony | |
1736 | ;; | |
1737 | mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0. | |
1738 | # That is based on svr4. | |
1739 | # t-svr4 is not right because this system doesn't use ELF. | |
1740 | tm_file=mips/news5.h | |
1741 | if [[ x$stabs = xyes ]]; then | |
1742 | tm_file="${tm_file} dbx.h" | |
1743 | fi | |
1744 | xm_file=mips/xm-news.h | |
1745 | if [[ x$gas = xyes ]] | |
1746 | then | |
1747 | tmake_file=mips/t-mips-gas | |
1748 | else | |
1749 | extra_passes="mips-tfile mips-tdump" | |
1750 | fi | |
1751 | if [[ x$gnu_ld != xyes ]] | |
1752 | then | |
1753 | use_collect2=yes | |
1754 | fi | |
1755 | ;; | |
1756 | mips-tandem-sysv4*) # Tandem S2 running NonStop UX | |
1757 | tm_file=mips/svr4-t.h | |
1758 | if [[ x$stabs = xyes ]]; then | |
1759 | tm_file="${tm_file} dbx.h" | |
1760 | fi | |
1761 | xm_file=mips/xm-sysv4.h | |
1762 | xmake_file=mips/x-sysv | |
1763 | if [[ x$gas = xyes ]] | |
1764 | then | |
1765 | tmake_file=mips/t-mips-gas | |
1766 | extra_parts="crtbegin.o crtend.o" | |
1767 | else | |
1768 | tmake_file=mips/t-mips | |
1769 | extra_passes="mips-tfile mips-tdump" | |
1770 | fi | |
1771 | if [[ x$gnu_ld != xyes ]] | |
1772 | then | |
1773 | use_collect2=yes | |
1774 | fi | |
1775 | broken_install=yes | |
1776 | ;; | |
1777 | mips-*-ultrix* | mips-dec-mach3) # Decstation. | |
1778 | tm_file=mips/ultrix.h | |
1779 | if [[ x$stabs = xyes ]]; then | |
1780 | tm_file="${tm_file} dbx.h" | |
1781 | fi | |
1782 | xmake_file=mips/x-ultrix | |
1783 | if [[ x$gas = xyes ]] | |
1784 | then | |
1785 | tmake_file=mips/t-mips-gas | |
1786 | else | |
1787 | tmake_file=mips/t-ultrix | |
1788 | extra_passes="mips-tfile mips-tdump" | |
1789 | fi | |
1790 | if [[ x$gnu_ld != xyes ]] | |
1791 | then | |
1792 | use_collect2=yes | |
1793 | fi | |
1794 | ;; | |
1795 | mips-*-riscos[[56789]]bsd*) | |
1796 | tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0 | |
1797 | if [[ x$stabs = xyes ]]; then | |
1798 | tm_file="${tm_file} dbx.h" | |
1799 | fi | |
1800 | if [[ x$gas = xyes ]] | |
1801 | then | |
1802 | tmake_file=mips/t-bsd-gas | |
1803 | else | |
1804 | tmake_file=mips/t-bsd | |
1805 | extra_passes="mips-tfile mips-tdump" | |
1806 | fi | |
1807 | if [[ x$gnu_ld != xyes ]] | |
1808 | then | |
1809 | use_collect2=yes | |
1810 | fi | |
1811 | broken_install=yes | |
1812 | ;; | |
1813 | mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*) | |
1814 | tm_file=mips/bsd-4.h # MIPS BSD 4.3, RISC-OS 4.0 | |
1815 | if [[ x$stabs = xyes ]]; then | |
1816 | tm_file="${tm_file} dbx.h" | |
1817 | fi | |
1818 | if [[ x$gas = xyes ]] | |
1819 | then | |
1820 | tmake_file=mips/t-bsd-gas | |
1821 | else | |
1822 | tmake_file=mips/t-bsd | |
1823 | extra_passes="mips-tfile mips-tdump" | |
1824 | fi | |
1825 | if [[ x$gnu_ld != xyes ]] | |
1826 | then | |
1827 | use_collect2=yes | |
1828 | fi | |
1829 | broken_install=yes | |
1830 | ;; | |
1831 | mips-*-riscos[[56789]]sysv4*) | |
1832 | tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0 | |
1833 | if [[ x$stabs = xyes ]]; then | |
1834 | tm_file="${tm_file} dbx.h" | |
1835 | fi | |
1836 | xm_file=mips/xm-sysv4.h | |
1837 | xmake_file=mips/x-sysv | |
1838 | if [[ x$gas = xyes ]] | |
1839 | then | |
1840 | tmake_file=mips/t-svr4-gas | |
1841 | else | |
1842 | tmake_file=mips/t-svr4 | |
1843 | extra_passes="mips-tfile mips-tdump" | |
1844 | fi | |
1845 | if [[ x$gnu_ld != xyes ]] | |
1846 | then | |
1847 | use_collect2=yes | |
1848 | fi | |
1849 | broken_install=yes | |
1850 | ;; | |
1851 | mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*) | |
1852 | tm_file=mips/svr4-4.h # MIPS System V.4. RISC-OS 4.0 | |
1853 | if [[ x$stabs = xyes ]]; then | |
1854 | tm_file="${tm_file} dbx.h" | |
1855 | fi | |
1856 | xm_file=mips/xm-sysv.h | |
1857 | xmake_file=mips/x-sysv | |
1858 | if [[ x$gas = xyes ]] | |
1859 | then | |
1860 | tmake_file=mips/t-svr4-gas | |
1861 | else | |
1862 | tmake_file=mips/t-svr4 | |
1863 | extra_passes="mips-tfile mips-tdump" | |
1864 | fi | |
1865 | if [[ x$gnu_ld != xyes ]] | |
1866 | then | |
1867 | use_collect2=yes | |
1868 | fi | |
1869 | broken_install=yes | |
1870 | ;; | |
1871 | mips-*-riscos[[56789]]sysv*) | |
1872 | tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0 | |
1873 | if [[ x$stabs = xyes ]]; then | |
1874 | tm_file="${tm_file} dbx.h" | |
1875 | fi | |
1876 | xm_file=mips/xm-sysv.h | |
1877 | xmake_file=mips/x-sysv | |
1878 | if [[ x$gas = xyes ]] | |
1879 | then | |
1880 | tmake_file=mips/t-svr3-gas | |
1881 | else | |
1882 | tmake_file=mips/t-svr3 | |
1883 | extra_passes="mips-tfile mips-tdump" | |
1884 | fi | |
1885 | if [[ x$gnu_ld != xyes ]] | |
1886 | then | |
1887 | use_collect2=yes | |
1888 | fi | |
1889 | broken_install=yes | |
1890 | ;; | |
1891 | mips-*-sysv* | mips-*-riscos*sysv*) | |
1892 | tm_file=mips/svr3-4.h # MIPS System V.3, RISC-OS 4.0 | |
1893 | if [[ x$stabs = xyes ]]; then | |
1894 | tm_file="${tm_file} dbx.h" | |
1895 | fi | |
1896 | xm_file=mips/xm-sysv.h | |
1897 | xmake_file=mips/x-sysv | |
1898 | if [[ x$gas = xyes ]] | |
1899 | then | |
1900 | tmake_file=mips/t-svr3-gas | |
1901 | else | |
1902 | tmake_file=mips/t-svr3 | |
1903 | extra_passes="mips-tfile mips-tdump" | |
1904 | fi | |
1905 | if [[ x$gnu_ld != xyes ]] | |
1906 | then | |
1907 | use_collect2=yes | |
1908 | fi | |
1909 | broken_install=yes | |
1910 | ;; | |
1911 | mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0. | |
1912 | tm_file=mips/mips-5.h | |
1913 | if [[ x$stabs = xyes ]]; then | |
1914 | tm_file="${tm_file} dbx.h" | |
1915 | fi | |
1916 | if [[ x$gas = xyes ]] | |
1917 | then | |
1918 | tmake_file=mips/t-mips-gas | |
1919 | else | |
1920 | extra_passes="mips-tfile mips-tdump" | |
1921 | fi | |
1922 | if [[ x$gnu_ld != xyes ]] | |
1923 | then | |
1924 | use_collect2=yes | |
1925 | fi | |
1926 | broken_install=yes | |
1927 | ;; | |
1928 | mips-*-gnu*) | |
1929 | ;; | |
1930 | mipsel-*-ecoff*) | |
1931 | tm_file=mips/ecoffl.h | |
1932 | if [[ x$stabs = xyes ]]; then | |
1933 | tm_file="${tm_file} dbx.h" | |
1934 | fi | |
1935 | tmake_file=mips/t-ecoff | |
1936 | ;; | |
1937 | mips-*-ecoff*) | |
1938 | tm_file=mips/ecoff.h | |
1939 | if [[ x$stabs = xyes ]]; then | |
1940 | tm_file="${tm_file} dbx.h" | |
1941 | fi | |
1942 | tmake_file=mips/t-ecoff | |
1943 | broken_install=yes | |
1944 | ;; | |
1945 | mipsel-*-elf*) | |
1946 | tm_file="mips/elfl.h libgloss.h" | |
1947 | tmake_file=mips/t-ecoff | |
1948 | ;; | |
1949 | mips-*-elf*) | |
1950 | tm_file="mips/elf.h libgloss.h" | |
1951 | tmake_file=mips/t-ecoff | |
1952 | ;; | |
1953 | mips64el-*-elf*) | |
1954 | tm_file="mips/elfl64.h libgloss.h" | |
1955 | tmake_file=mips/t-ecoff | |
1956 | ;; | |
1957 | mips64orionel-*-elf*) | |
1958 | tm_file="mips/elflorion.h libgloss.h" | |
1959 | tmake_file=mips/t-ecoff | |
1960 | ;; | |
1961 | mips64-*-elf*) | |
1962 | tm_file="mips/elf64.h libgloss.h" | |
1963 | tmake_file=mips/t-ecoff | |
1964 | ;; | |
1965 | mips64orion-*-elf*) | |
1966 | tm_file="mips/elforion.h libgloss.h" | |
1967 | tmake_file=mips/t-ecoff | |
1968 | ;; | |
1969 | mips64orion-*-rtems*) | |
1970 | tm_file=mips/rtems64.h | |
1971 | tmake_file="mips/t-ecoff t-rtems" | |
1972 | ;; | |
1973 | mips-*-*) # Default MIPS RISC-OS 4.0. | |
1974 | if [[ x$stabs = xyes ]]; then | |
1975 | tm_file="${tm_file} dbx.h" | |
1976 | fi | |
1977 | if [[ x$gas = xyes ]] | |
1978 | then | |
1979 | tmake_file=mips/t-mips-gas | |
1980 | else | |
1981 | extra_passes="mips-tfile mips-tdump" | |
1982 | fi | |
1983 | if [[ x$gnu_ld != xyes ]] | |
1984 | then | |
1985 | use_collect2=yes | |
1986 | fi | |
1987 | ;; | |
cef64ec4 RK |
1988 | mn10200-*-*) |
1989 | cpu_type=mn10200 | |
1990 | tm_file="mn10200/mn10200.h" | |
1991 | if [[ x$stabs = xyes ]] | |
1992 | then | |
1993 | tm_file="${tm_file} dbx.h" | |
1994 | fi | |
1995 | use_collect2=no | |
1996 | ;; | |
46f18e7b RK |
1997 | mn10300-*-*) |
1998 | cpu_type=mn10300 | |
1999 | tm_file="mn10300/mn10300.h" | |
2000 | if [[ x$stabs = xyes ]] | |
2001 | then | |
2002 | tm_file="${tm_file} dbx.h" | |
2003 | fi | |
2004 | use_collect2=no | |
2005 | ;; | |
2006 | ns32k-encore-bsd*) | |
2007 | tm_file=ns32k/encore.h | |
2008 | use_collect2=yes | |
2009 | ;; | |
2010 | ns32k-sequent-bsd*) | |
2011 | tm_file=ns32k/sequent.h | |
2012 | use_collect2=yes | |
2013 | ;; | |
2014 | ns32k-tek6100-bsd*) | |
2015 | tm_file=ns32k/tek6100.h | |
2016 | broken_install=yes | |
2017 | use_collect2=yes | |
2018 | ;; | |
2019 | ns32k-tek6200-bsd*) | |
2020 | tm_file=ns32k/tek6200.h | |
2021 | broken_install=yes | |
2022 | use_collect2=yes | |
2023 | ;; | |
2024 | # This has not been updated to GCC 2. | |
2025 | # ns32k-ns-genix*) | |
2026 | # xm_file=ns32k/xm-genix.h | |
2027 | # xmake_file=ns32k/x-genix | |
2028 | # tm_file=ns32k/genix.h | |
2029 | # broken_install=yes | |
2030 | # use_collect2=yes | |
2031 | # ;; | |
2032 | ns32k-merlin-*) | |
2033 | tm_file=ns32k/merlin.h | |
2034 | use_collect2=yes | |
2035 | ;; | |
2036 | ns32k-pc532-mach*) | |
2037 | tm_file=ns32k/pc532-mach.h | |
2038 | use_collect2=yes | |
2039 | ;; | |
2040 | ns32k-pc532-minix*) | |
2041 | tm_file=ns32k/pc532-min.h | |
2042 | xm_file=ns32k/xm-pc532-min.h | |
2043 | use_collect2=yes | |
2044 | ;; | |
2045 | ns32k-pc532-netbsd*) | |
2046 | tm_file=ns32k/netbsd.h | |
2047 | xm_file=ns32k/xm-netbsd.h | |
46f18e7b RK |
2048 | # On NetBSD, the headers are already okay. |
2049 | fixincludes=Makefile.in | |
e47f44f4 | 2050 | tmake_file=t-netbsd |
46f18e7b RK |
2051 | ;; |
2052 | pdp11-*-bsd) | |
2053 | tm_file="${tm_file} pdp11/2bsd.h" | |
2054 | ;; | |
2055 | pdp11-*-*) | |
2056 | ;; | |
2057 | pyramid-*-*) | |
2058 | cpu_type=pyr | |
2059 | xmake_file=pyr/x-pyr | |
2060 | use_collect2=yes | |
2061 | ;; | |
2062 | romp-*-aos*) | |
2063 | use_collect2=yes | |
2064 | ;; | |
2065 | romp-*-mach*) | |
2066 | xmake_file=romp/x-mach | |
2067 | use_collect2=yes | |
2068 | ;; | |
2069 | powerpc-*-sysv* | powerpc-*-elf*) | |
2070 | tm_file=rs6000/sysv4.h | |
2071 | xm_file=rs6000/xm-sysv4.h | |
2072 | extra_headers=ppc-asm.h | |
2073 | if [[ x$gas = xyes ]] | |
2074 | then | |
2075 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2076 | else | |
2077 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2078 | fi | |
2079 | xmake_file=rs6000/x-sysv4 | |
2080 | ;; | |
2081 | powerpc-*-eabiaix*) | |
2082 | tm_file=rs6000/eabiaix.h | |
2083 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2084 | fixincludes=Makefile.in | |
2085 | extra_headers=ppc-asm.h | |
2086 | ;; | |
2087 | powerpc-*-eabisim*) | |
2088 | tm_file=rs6000/eabisim.h | |
2089 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2090 | fixincludes=Makefile.in | |
2091 | extra_headers=ppc-asm.h | |
2092 | ;; | |
2093 | powerpc-*-eabi*) | |
2094 | tm_file=rs6000/eabi.h | |
2095 | if [[ x$gas = xyes ]] | |
2096 | then | |
2097 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2098 | else | |
2099 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2100 | fi | |
2101 | fixincludes=Makefile.in | |
2102 | extra_headers=ppc-asm.h | |
2103 | ;; | |
dec3e070 JW |
2104 | powerpc-*-rtems*) |
2105 | tm_file=rs6000/rtems.h | |
46f18e7b RK |
2106 | if [[ x$gas = xyes ]] |
2107 | then | |
dec3e070 | 2108 | tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" |
46f18e7b | 2109 | else |
dec3e070 | 2110 | tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm" |
46f18e7b | 2111 | fi |
46f18e7b | 2112 | fixincludes=Makefile.in |
46f18e7b RK |
2113 | extra_headers=ppc-asm.h |
2114 | ;; | |
844dadc7 | 2115 | powerpc-*-linux-gnu*) |
dec3e070 | 2116 | tm_file=rs6000/linux.h |
46f18e7b | 2117 | xm_file=rs6000/xm-sysv4.h |
dec3e070 | 2118 | out_file=rs6000/rs6000.c |
46f18e7b RK |
2119 | if [[ x$gas = xyes ]] |
2120 | then | |
dec3e070 | 2121 | tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm" |
46f18e7b | 2122 | else |
dec3e070 | 2123 | tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm" |
46f18e7b | 2124 | fi |
d7308c0c | 2125 | xmake_file=x-linux |
dec3e070 | 2126 | fixincludes=Makefile.in |
d7308c0c | 2127 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b | 2128 | extra_headers=ppc-asm.h |
d7308c0c RK |
2129 | if [[ x$thread_file = x ]]; then |
2130 | thread_file='posix' | |
2131 | fi | |
46f18e7b RK |
2132 | ;; |
2133 | powerpc-*-vxworks*) | |
2134 | cpu_type=rs6000 | |
2135 | xm_file=rs6000/xm-sysv4.h | |
2136 | tm_file=rs6000/vxppc.h | |
2137 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2138 | extra_headers=ppc-asm.h | |
2139 | ;; | |
2140 | powerpcle-*-sysv* | powerpcle-*-elf*) | |
2141 | tm_file=rs6000/sysv4le.h | |
2142 | xm_file=rs6000/xm-sysv4.h | |
2143 | if [[ x$gas = xyes ]] | |
2144 | then | |
2145 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2146 | else | |
2147 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2148 | fi | |
2149 | xmake_file=rs6000/x-sysv4 | |
2150 | extra_headers=ppc-asm.h | |
2151 | ;; | |
2152 | powerpcle-*-eabisim*) | |
2153 | tm_file=rs6000/eabilesim.h | |
2154 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2155 | fixincludes=Makefile.in | |
2156 | extra_headers=ppc-asm.h | |
2157 | ;; | |
2158 | powerpcle-*-eabi*) | |
2159 | tm_file=rs6000/eabile.h | |
2160 | if [[ x$gas = xyes ]] | |
2161 | then | |
2162 | tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm" | |
2163 | else | |
2164 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2165 | fi | |
2166 | fixincludes=Makefile.in | |
2167 | extra_headers=ppc-asm.h | |
2168 | ;; | |
2169 | powerpcle-*-winnt* ) | |
2170 | tm_file=rs6000/win-nt.h | |
2171 | tmake_file=rs6000/t-winnt | |
2172 | # extra_objs=pe.o | |
2173 | fixincludes=Makefile.in | |
434332b5 | 2174 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
2175 | thread_file='win32' |
2176 | fi | |
46f18e7b RK |
2177 | extra_headers=ppc-asm.h |
2178 | ;; | |
2179 | powerpcle-*-pe | powerpcle-*-cygwin32) | |
2180 | tm_file=rs6000/cygwin32.h | |
2181 | xm_file=rs6000/xm-cygwin32.h | |
2182 | tmake_file=rs6000/t-winnt | |
2183 | xmake_file=rs6000/x-cygwin32 | |
2184 | # extra_objs=pe.o | |
2185 | fixincludes=Makefile.in | |
434332b5 | 2186 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
2187 | thread_file='win32' |
2188 | fi | |
46f18e7b RK |
2189 | exeext=.exe |
2190 | extra_headers=ppc-asm.h | |
2191 | ;; | |
2192 | powerpcle-*-solaris2*) | |
2193 | tm_file=rs6000/sol2.h | |
2194 | xm_file=rs6000/xm-sysv4.h | |
2195 | if [[ x$gas = xyes ]] | |
2196 | then | |
2197 | tmake_file="rs6000/t-ppcos rs6000/t-ppccomm" | |
2198 | else | |
2199 | tmake_file="rs6000/t-ppc rs6000/t-ppccomm" | |
2200 | fi | |
2201 | xmake_file=rs6000/x-sysv4 | |
2202 | fixincludes=fixinc.svr4 | |
2203 | extra_headers=ppc-asm.h | |
2204 | ;; | |
2205 | rs6000-ibm-aix3.[[01]]*) | |
2206 | tm_file=rs6000/aix31.h | |
2207 | xmake_file=rs6000/x-aix31 | |
2208 | use_collect2=yes | |
2209 | ;; | |
2210 | rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*) | |
2211 | tm_file=rs6000/aix3newas.h | |
2212 | if [[ x$host != x$target ]] | |
2213 | then | |
2214 | tmake_file=rs6000/t-xnewas | |
2215 | else | |
2216 | tmake_file=rs6000/t-newas | |
2217 | fi | |
2218 | use_collect2=yes | |
2219 | ;; | |
2220 | rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*) | |
2221 | tm_file=rs6000/aix41.h | |
2222 | if [[ x$host != x$target ]] | |
2223 | then | |
2224 | tmake_file=rs6000/t-xnewas | |
2225 | else | |
2226 | tmake_file=rs6000/t-newas | |
2227 | fi | |
2228 | xmake_file=rs6000/x-aix31 | |
2229 | use_collect2=yes | |
2230 | ;; | |
2231 | rs6000-ibm-aix*) | |
2232 | use_collect2=yes | |
2233 | ;; | |
2234 | rs6000-bull-bosx) | |
2235 | use_collect2=yes | |
2236 | ;; | |
2237 | rs6000-*-mach*) | |
2238 | tm_file=rs6000/mach.h | |
2239 | xm_file=rs6000/xm-mach.h | |
2240 | xmake_file=rs6000/x-mach | |
2241 | use_collect2=yes | |
2242 | ;; | |
2243 | rs6000-*-lynxos*) | |
2244 | tm_file=rs6000/lynx.h | |
2245 | xm_file=rs6000/xm-lynx.h | |
2246 | tmake_file=rs6000/t-rs6000 | |
2247 | xmake_file=rs6000/x-lynx | |
2248 | use_collect2=yes | |
2249 | ;; | |
2250 | sh-*-elf*) | |
2251 | tm_file=sh/elf.h | |
2252 | float_format=sh | |
2253 | ;; | |
2254 | sh-*-*) | |
2255 | float_format=sh | |
2256 | ;; | |
2257 | sparc-tti-*) | |
2258 | tm_file=sparc/pbd.h | |
2259 | xm_file=sparc/xm-pbd.h | |
2260 | ;; | |
2261 | sparc-wrs-vxworks* | sparclite-wrs-vxworks*) | |
2262 | tm_file=sparc/vxsparc.h | |
2263 | tmake_file=sparc/t-vxsparc | |
2264 | use_collect2=yes | |
2265 | ;; | |
2266 | sparc-*-aout*) | |
2267 | tmake_file=sparc/t-sparcbare | |
2268 | tm_file="sparc/aout.h libgloss.h" | |
2269 | ;; | |
2270 | sparc-*-netbsd*) | |
2271 | tm_file=sparc/netbsd.h | |
2272 | xm_file=sparc/xm-netbsd.h | |
2273 | # On NetBSD, the headers are already okay. | |
2274 | fixincludes=Makefile.in | |
e47f44f4 | 2275 | tmake_file=t-netbsd |
46f18e7b RK |
2276 | ;; |
2277 | sparc-*-bsd*) | |
2278 | tm_file=sparc/bsd.h | |
2279 | ;; | |
844dadc7 | 2280 | sparc-*-linux-gnuaout*) # Sparc's running Linux, a.out |
46f18e7b RK |
2281 | xm_file=sparc/xm-linux.h |
2282 | tm_file=sparc/linux-aout.h | |
2283 | xmake_file=x-linux | |
2284 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
2285 | broken_install=yes | |
2286 | gnu_ld=yes | |
46f18e7b | 2287 | ;; |
9ad03bc1 RK |
2288 | sparc-*-linux-gnulibc1*) # Sparc's running Linux |
2289 | xm_file=sparc/xm-linux.h # with ELF format using the | |
2290 | xmake_file=x-linux # Linux C library 5. | |
46f18e7b | 2291 | tm_file=sparc/linux.h |
604d63b0 | 2292 | tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux" |
9ad03bc1 RK |
2293 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
2294 | fixincludes=Makefile.in #On Linux, the headers are ok already. | |
2295 | broken_install=yes | |
2296 | gnu_ld=yes | |
2297 | ;; | |
2298 | sparc-*-linux-gnu*) # Sparc's running Linux | |
2299 | xm_file=sparc/xm-linux.h # with ELF format using glibc 2 | |
2300 | xmake_file=x-linux # aka the Linux C library 6. | |
2301 | tm_file=sparc/linux.h | |
604d63b0 | 2302 | tmake_file="t-linux sparc/t-linux" |
9ad03bc1 | 2303 | extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" |
46f18e7b RK |
2304 | fixincludes=Makefile.in #On Linux, the headers are ok already. |
2305 | broken_install=yes | |
2306 | gnu_ld=yes | |
9ad03bc1 RK |
2307 | if [[ x$thread_file = x ]]; then |
2308 | thread_file='posix' | |
2309 | fi | |
46f18e7b RK |
2310 | ;; |
2311 | sparc-*-lynxos*) | |
2312 | if [[ x$gas = xyes ]] | |
2313 | then | |
2314 | tm_file=sparc/lynx.h | |
2315 | else | |
2316 | tm_file=sparc/lynx-ng.h | |
2317 | fi | |
2318 | xm_file=sparc/xm-lynx.h | |
2319 | tmake_file=sparc/t-sunos41 | |
2320 | xmake_file=x-lynx | |
2321 | ;; | |
2322 | sparc-*-rtems*) | |
2323 | tmake_file="sparc/t-sparcbare t-rtems" | |
2324 | tm_file=sparc/rtems.h | |
2325 | ;; | |
2326 | sparc-*-solaris2*) | |
2327 | tm_file=sparc/sol2.h | |
2328 | xm_file=sparc/xm-sol2.h | |
2329 | tmake_file=sparc/t-sol2 | |
2330 | xmake_file=sparc/x-sysv4 | |
2331 | extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" | |
2332 | fixincludes=fixinc.svr4 | |
2333 | broken_install=yes | |
434332b5 | 2334 | if [[ x$enable_threads = xyes ]]; then |
0bbb1697 RK |
2335 | thread_file='solaris' |
2336 | fi | |
46f18e7b RK |
2337 | ;; |
2338 | sparc-*-sunos4.0*) | |
2339 | tm_file=sparc/sunos4.h | |
2340 | tmake_file=sparc/t-sunos40 | |
2341 | use_collect2=yes | |
2342 | ;; | |
2343 | sparc-*-sunos4*) | |
2344 | tm_file=sparc/sunos4.h | |
2345 | tmake_file=sparc/t-sunos41 | |
2346 | use_collect2=yes | |
2347 | ;; | |
2348 | sparc-*-sunos3*) | |
2349 | tm_file=sparc/sun4o3.h | |
2350 | use_collect2=yes | |
2351 | ;; | |
2352 | sparc-*-sysv4*) | |
2353 | tm_file=sparc/sysv4.h | |
2354 | xm_file=sparc/xm-sysv4.h | |
2355 | tmake_file=t-svr4 | |
2356 | xmake_file=sparc/x-sysv4 | |
2357 | extra_parts="crtbegin.o crtend.o" | |
2358 | ;; | |
2359 | sparc-*-vxsim*) | |
2360 | xm_file=sparc/xm-sol2.h | |
2361 | tm_file=sparc/vxsim.h | |
2362 | tmake_file=sparc/t-vxsparc | |
2363 | xmake_file=sparc/x-sysv4 | |
2364 | ;; | |
2365 | sparclet-*-aout*) | |
2366 | tm_file="sparc/splet.h libgloss.h" | |
2367 | tmake_file=sparc/t-splet | |
2368 | ;; | |
2369 | sparclite-*-coff*) | |
2370 | tm_file="sparc/litecoff.h libgloss.h" | |
2371 | tmake_file=sparc/t-sparclite | |
2372 | ;; | |
2373 | sparclite-*-aout*) | |
2374 | tm_file="sparc/lite.h aoutos.h libgloss.h" | |
2375 | tmake_file=sparc/t-sparclite | |
2376 | ;; | |
2377 | sparc64-*-aout*) | |
2378 | tmake_file=sparc/t-sp64 | |
2379 | tm_file=sparc/sp64-aout.h | |
2380 | ;; | |
2381 | sparc64-*-elf*) | |
2382 | tmake_file=sparc/t-sp64 | |
2383 | tm_file=sparc/sp64-elf.h | |
2384 | extra_parts="crtbegin.o crtend.o" | |
2385 | ;; | |
2386 | # This hasn't been upgraded to GCC 2. | |
2387 | # tahoe-harris-*) # Harris tahoe, using COFF. | |
2388 | # tm_file=tahoe/harris.h | |
2389 | # ;; | |
2390 | # tahoe-*-bsd*) # tahoe running BSD | |
2391 | # ;; | |
2392 | # This hasn't been upgraded to GCC 2. | |
2393 | # tron-*-*) | |
2394 | # cpu_type=gmicro | |
2395 | # use_collect2=yes | |
2396 | # ;; | |
2397 | vax-*-bsd*) # vaxen running BSD | |
2398 | use_collect2=yes | |
2399 | float_format=vax | |
2400 | ;; | |
2401 | vax-*-sysv*) # vaxen running system V | |
2402 | tm_file="${tm_file} vax/vaxv.h" | |
2403 | xm_file="${tm_file} vax/xm-vaxv.h" | |
2404 | float_format=vax | |
2405 | ;; | |
2406 | vax-*-netbsd*) | |
2407 | tm_file="${tm_file} netbsd.h vax/netbsd.h" | |
2408 | xm_file="${xm_file} xm-netbsd.h" | |
46f18e7b RK |
2409 | # On NetBSD, the headers are already okay. |
2410 | fixincludes=Makefile.in | |
e47f44f4 | 2411 | tmake_file=t-netbsd |
46f18e7b RK |
2412 | float_format=vax |
2413 | ;; | |
2414 | vax-*-ultrix*) # vaxen running ultrix | |
2415 | tm_file="${tm_file} vax/ultrix.h" | |
2416 | use_collect2=yes | |
2417 | float_format=vax | |
2418 | ;; | |
2419 | vax-*-vms*) # vaxen running VMS | |
2420 | xm_file=vax/xm-vms.h | |
2421 | tm_file=vax/vms.h | |
2422 | float_format=vax | |
2423 | ;; | |
2424 | vax-*-*) # vax default entry | |
2425 | float_format=vax | |
2426 | ;; | |
2427 | we32k-att-sysv*) | |
2428 | xm_file="${xm_file} xm-svr3" | |
2429 | use_collect2=yes | |
2430 | ;; | |
2431 | *) | |
2432 | echo "Configuration $machine not supported" 1>&2 | |
2433 | exit 1 | |
2434 | ;; | |
2435 | esac | |
2436 | ||
2437 | case $machine in | |
2438 | *-*-linux-gnu*) | |
2439 | ;; # Existing Linux/GNU systems do not use the GNU setup. | |
2440 | *-*-gnu*) | |
2441 | # On the GNU system, the setup is just about the same on | |
2442 | # each different CPU. The specific machines that GNU | |
2443 | # supports are matched above and just set $cpu_type. | |
2444 | xm_file=${cpu_type}/xm-gnu.h | |
2445 | tm_file=${cpu_type}/gnu.h | |
6b403743 | 2446 | extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o" |
46f18e7b RK |
2447 | # GNU always uses ELF. |
2448 | elf=yes | |
2449 | # GNU tools are the only tools. | |
2450 | gnu_ld=yes | |
2451 | gas=yes | |
2452 | # On GNU, the headers are already okay. | |
2453 | fixincludes=Makefile.in | |
2454 | xmake_file=x-linux # These details are the same as Linux. | |
2455 | tmake_file=t-gnu # These are not. | |
2456 | ;; | |
2457 | *-*-sysv4*) | |
2458 | fixincludes=fixinc.svr4 | |
2459 | xmake_try_sysv=x-sysv | |
2460 | broken_install=yes | |
2461 | install_headers_dir=install-headers-cpio | |
2462 | ;; | |
2463 | *-*-sysv*) | |
2464 | broken_install=yes | |
2465 | install_headers_dir=install-headers-cpio | |
2466 | ;; | |
2467 | esac | |
2468 | ||
2469 | # Distinguish i[3456]86 | |
2470 | # Also, do not run mips-tfile on MIPS if using gas. | |
2471 | # Process --with-cpu= for PowerPC/rs6000 | |
2472 | target_cpu_default2= | |
2473 | case $machine in | |
2474 | i486-*-*) | |
2475 | target_cpu_default2=1 | |
2476 | ;; | |
2477 | i586-*-*) | |
2478 | target_cpu_default2=2 | |
2479 | ;; | |
2480 | i686-*-*) | |
2481 | target_cpu_default2=3 | |
2482 | ;; | |
2483 | alpha-*-*) | |
2484 | if [[ x$gas = xyes ]] | |
2485 | then | |
2486 | target_cpu_default2=4 | |
2487 | fi | |
2488 | ;; | |
2489 | mips*-*-ecoff* | mips*-*-elf*) | |
2490 | if [[ x$gas = xyes ]] | |
2491 | then | |
2492 | if [[ x$gnu_ld = xyes ]] | |
2493 | then | |
2494 | target_cpu_default2=20 | |
2495 | else | |
2496 | target_cpu_default2=16 | |
2497 | fi | |
2498 | fi | |
2499 | ;; | |
2500 | mips*-*-*) | |
2501 | if [[ x$gas = xyes ]] | |
2502 | then | |
2503 | target_cpu_default2=16 | |
2504 | fi | |
2505 | ;; | |
2506 | powerpc*-*-* | rs6000-*-*) | |
2507 | case "x$with_cpu" in | |
2508 | x) | |
2509 | ;; | |
2510 | ||
2511 | xcommon | xpower | xpower2 | xpowerpc | xrios \ | |
52cddadb MM |
2512 | | xrios1 | xrios2 | xrsc | xrsc1 \ |
2513 | | x601 | x602 | x603 | x603e | x604 | x604e | x620 \ | |
2514 | | x403 | x505 | x801 | x821 | x823 | x860) | |
46f18e7b RK |
2515 | target_cpu_default2="'\"$with_cpu\"'" |
2516 | ;; | |
2517 | ||
2518 | xyes | xno) | |
2519 | echo "--with-cpu must be passed a value" 1>&2 | |
2520 | exit 1 | |
2521 | ;; | |
2522 | ||
2523 | *) | |
2524 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2525 | exit 1 | |
2526 | ;; | |
2527 | esac | |
2528 | ;; | |
2529 | sparc*-*-*) | |
2530 | case ".$with_cpu" in | |
2531 | .) | |
2532 | target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`" | |
2533 | ;; | |
2534 | .supersparc | .ultrasparc | .v7 | .v8) | |
2535 | target_cpu_default2="TARGET_CPU_$with_cpu" | |
2536 | ;; | |
2537 | *) | |
2538 | echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2 | |
2539 | exit 1 | |
2540 | ;; | |
2541 | esac | |
2542 | ;; | |
2543 | esac | |
2544 | ||
2545 | if [[ x$target_cpu_default2 != x ]] | |
2546 | then | |
2547 | if [[ x$target_cpu_default != x ]] | |
2548 | then | |
2549 | target_cpu_default="(${target_cpu_default}|${target_cpu_default2})" | |
2550 | else | |
2551 | target_cpu_default=$target_cpu_default2 | |
2552 | fi | |
2553 | fi | |
2554 | ||
2555 | # No need for collect2 if we have the GNU linker. | |
2556 | case x$gnu_ld in | |
2557 | xyes) | |
2558 | use_collect2= | |
2559 | ;; | |
2560 | esac | |
2561 | ||
2562 | # Save data on machine being used to compile GCC in build_xm_file. | |
2563 | # Save data on host machine in vars host_xm_file and host_xmake_file. | |
2564 | if [[ x$pass1done = x ]] | |
2565 | then | |
2566 | if [[ x"$xm_file" = x ]] | |
2567 | then build_xm_file=$cpu_type/xm-$cpu_type.h | |
2568 | else build_xm_file=$xm_file | |
2569 | fi | |
2570 | build_broken_install=$broken_install | |
2571 | build_install_headers_dir=$install_headers_dir | |
2572 | build_exeext=$exeext | |
2573 | pass1done=yes | |
2574 | else | |
2575 | if [[ x$pass2done = x ]] | |
2576 | then | |
2577 | if [[ x"$xm_file" = x ]] | |
2578 | then host_xm_file=$cpu_type/xm-$cpu_type.h | |
2579 | else host_xm_file=$xm_file | |
2580 | fi | |
2581 | if [[ x"$xmake_file" = x ]] | |
2582 | then xmake_file=$cpu_type/x-$cpu_type | |
2583 | fi | |
2584 | host_xmake_file="$xmake_file" | |
2585 | host_truncate_target=$truncate_target | |
2586 | host_extra_gcc_objs=$extra_gcc_objs | |
2587 | host_extra_objs=$extra_host_objs | |
2588 | pass2done=yes | |
2589 | fi | |
2590 | fi | |
2591 | done | |
2592 | ||
2593 | extra_objs="${host_extra_objs} ${extra_objs}" | |
2594 | ||
2595 | # Default the target-machine variables that were not explicitly set. | |
2596 | if [[ x"$tm_file" = x ]] | |
2597 | then tm_file=$cpu_type/$cpu_type.h; fi | |
2598 | ||
2599 | if [[ x$extra_headers = x ]] | |
2600 | then extra_headers=; fi | |
2601 | ||
2602 | if [[ x"$xm_file" = x ]] | |
2603 | then xm_file=$cpu_type/xm-$cpu_type.h; fi | |
2604 | ||
2605 | md_file=$cpu_type/$cpu_type.md | |
2606 | ||
2607 | if [[ x$out_file = x ]] | |
2608 | then out_file=$cpu_type/$cpu_type.c; fi | |
2609 | ||
2610 | if [[ x"$tmake_file" = x ]] | |
2611 | then tmake_file=$cpu_type/t-$cpu_type | |
2612 | fi | |
2613 | ||
2614 | if [[ x$float_format = x ]] | |
2615 | then float_format=i64 | |
2616 | fi | |
2617 | ||
2618 | # Say what files are being used for the output code and MD file. | |
2619 | echo "Using \`$srcdir/config/$out_file' to output insns." | |
2620 | echo "Using \`$srcdir/config/$md_file' as machine description file." | |
2621 | ||
2622 | count=a | |
2623 | for f in $tm_file; do | |
2624 | count=${count}x | |
2625 | done | |
2626 | if [[ $count = ax ]]; then | |
2627 | echo "Using \`$srcdir/config/$tm_file' as target machine macro file." | |
2628 | else | |
2629 | echo "Using the following target machine macro files:" | |
2630 | for f in $tm_file; do | |
2631 | echo " $srcdir/config/$f" | |
2632 | done | |
2633 | fi | |
2634 | ||
2635 | count=a | |
2636 | for f in $host_xm_file; do | |
2637 | count=${count}x | |
2638 | done | |
2639 | if [[ $count = ax ]]; then | |
2640 | echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file." | |
2641 | else | |
2642 | echo "Using the following host machine macro files:" | |
2643 | for f in $host_xm_file; do | |
2644 | echo " $srcdir/config/$f" | |
2645 | done | |
2646 | fi | |
2647 | ||
2648 | if [[ "$host_xm_file" != "$build_xm_file" ]]; then | |
2649 | count=a | |
2650 | for f in $build_xm_file; do | |
2651 | count=${count}x | |
2652 | done | |
2653 | if [[ $count = ax ]]; then | |
2654 | echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file." | |
2655 | else | |
2656 | echo "Using the following build machine macro files:" | |
2657 | for f in $build_xm_file; do | |
2658 | echo " $srcdir/config/$f" | |
2659 | done | |
2660 | fi | |
2661 | fi | |
2662 | ||
0bbb1697 RK |
2663 | if [[ x$thread_file = x ]] |
2664 | then thread_file='single' | |
46f18e7b | 2665 | fi |
46f18e7b RK |
2666 | |
2667 | # Set up the header files. | |
2668 | # $links is the list of header files to create. | |
2669 | # $vars is the list of shell variables with file names to include. | |
2670 | vars="host_xm_file tm_file xm_file build_xm_file" | |
2671 | links="config.h tm.h tconfig.h hconfig.h" | |
2672 | ||
2673 | rm -f config.bak | |
2674 | if [[ -f config.status ]]; then mv -f config.status config.bak; fi | |
2675 | ||
2676 | # Make the links. | |
2677 | while [[ -n "$vars" ]] | |
2678 | do | |
2679 | # set file to car of files, files to cdr of files | |
2680 | set $vars; var=$1; shift; vars=$* | |
2681 | set $links; link=$1; shift; links=$* | |
2682 | ||
2683 | rm -f $link | |
2684 | ||
2685 | # Define TARGET_CPU_DEFAULT if the system wants one. | |
2686 | # This substitutes for lots of *.h files. | |
2687 | if [[ x$target_cpu_default != x -a $link = tm.h ]] | |
2688 | then | |
2689 | echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link | |
2690 | fi | |
2691 | ||
2692 | for file in `eval echo '$'$var`; do | |
2693 | echo "#include \"$file\"" >>$link | |
2694 | done | |
2695 | done | |
2696 | ||
2697 | # Truncate the target if necessary | |
2698 | if [[ x$host_truncate_target != x ]]; then | |
2699 | target=`echo $target | sed -e 's/\(..............\).*/\1/'` | |
2700 | fi | |
2701 | ||
2702 | # Get the version number from the toplevel | |
2703 | version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c` | |
2704 | ||
2705 | # For the current directory and all of the language subdirectories, | |
2706 | # do the rest of the script ... | |
2707 | ||
2708 | subdirs= | |
2709 | for lang in ${srcdir}/*/config-lang.in .. | |
2710 | do | |
2711 | case $lang in | |
2712 | ..) ;; | |
2713 | # The odd quoting in the next line works around | |
2714 | # an apparent bug in bash 1.12 on linux. | |
2715 | ${srcdir}/[[*]]/config-lang.in) ;; | |
2716 | *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;; | |
2717 | esac | |
2718 | done | |
2719 | ||
2720 | # Are we using gcc as the native compiler? | |
2721 | case $host in | |
2722 | *linux*) # All Linux's use gcc as the native compiler. | |
a588a9a1 RK |
2723 | if [[ x$prefix = xNONE ]]; then |
2724 | prefix=$native_prefix | |
2725 | fi | |
46f18e7b RK |
2726 | ;; |
2727 | esac | |
2728 | ||
2729 | # Make empty files to contain the specs and options for each language. | |
2730 | # Then add #include lines to for a compiler that has specs and/or options. | |
2731 | ||
2732 | lang_specs_files= | |
2733 | lang_options_files= | |
2734 | rm -f specs.h options.h | |
2735 | touch specs.h options.h | |
2736 | for subdir in . $subdirs | |
2737 | do | |
2738 | if [[ -f $srcdir/$subdir/lang-specs.h ]]; then | |
2739 | echo "#include \"$subdir/lang-specs.h\"" >>specs.h | |
2740 | lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h" | |
2741 | fi | |
2742 | if [[ -f $srcdir/$subdir/lang-options.h ]]; then | |
2743 | echo "#include \"$subdir/lang-options.h\"" >>options.h | |
2744 | lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h" | |
2745 | fi | |
2746 | done | |
2747 | ||
7fa10b25 RK |
2748 | # Get an absolute path to the GCC top-level source directory |
2749 | holddir=`pwd` | |
2750 | cd $srcdir | |
2751 | topdir=`pwd` | |
2752 | cd $holddir | |
2753 | ||
46f18e7b RK |
2754 | # These (without "all_") are set in each config-lang.in. |
2755 | # `language' must be a single word so is spelled singularly. | |
2756 | all_languages= | |
2757 | all_boot_languages= | |
2758 | all_compilers= | |
2759 | all_stagestuff= | |
2760 | all_diff_excludes= | |
2761 | # List of language makefile fragments. | |
2762 | all_lang_makefiles= | |
2763 | all_headers= | |
2764 | all_lib2funcs= | |
2765 | ||
46f18e7b RK |
2766 | host_overrides="Make-host" |
2767 | target_overrides="Make-target" | |
95e141cd RK |
2768 | cross_overrides="/dev/null" |
2769 | build_overrides="/dev/null" | |
46f18e7b RK |
2770 | language_fragments="Make-lang" |
2771 | language_hooks="Make-hooks" | |
2772 | ||
2773 | savesrcdir=$srcdir | |
2774 | for subdir in . $subdirs | |
2775 | do | |
2776 | oldsrcdir=$savesrcdir | |
2777 | ||
2778 | # Re-adjust the path | |
2779 | case $oldsrcdir in | |
2780 | /*) | |
2781 | case $subdir in | |
2782 | .) | |
2783 | srcdir=$oldsrcdir | |
2784 | ;; | |
2785 | *) | |
2786 | srcdir=$oldsrcdir/$subdir | |
2787 | ;; | |
2788 | esac | |
2789 | ;; | |
2790 | *) | |
2791 | case $subdir in | |
2792 | .) | |
2793 | ;; | |
2794 | *) | |
2795 | oldsrcdir=../${oldsrcdir} | |
2796 | srcdir=$oldsrcdir/$subdir | |
2797 | ;; | |
2798 | esac | |
2799 | ;; | |
2800 | esac | |
2801 | mainsrcdir=$oldsrcdir | |
2802 | STARTDIR=`pwd` | |
2803 | test -d $subdir || mkdir $subdir | |
2804 | cd $subdir | |
2805 | ||
289661dc RK |
2806 | rm -f Make-host Make-target Make-hooks |
2807 | touch Make-host | |
2808 | touch Make-target | |
2809 | touch Make-hooks | |
46f18e7b RK |
2810 | # Conditionalize the makefile for this host machine. |
2811 | dep_host_xmake_file= | |
46f18e7b RK |
2812 | merged_frags= |
2813 | for f in .. ${host_xmake_file} | |
2814 | do | |
2815 | if [[ -f ${mainsrcdir}/config/$f ]] | |
2816 | then | |
46f18e7b RK |
2817 | cat ${mainsrcdir}/config/$f >> Make-host |
2818 | dep_host_xmake_file="${dep_host_xmake_file} \$(srcdir)/config/$f" | |
2819 | fi | |
2820 | done | |
46f18e7b RK |
2821 | |
2822 | # Set EXTRA_HEADERS according to extra_headers. | |
2823 | # This substitutes for lots of t-* files. | |
2824 | extra_headers_list= | |
2825 | if [[ "x$extra_headers" = x ]] | |
2826 | then true | |
2827 | else | |
2828 | # Prepend ${srcdir}/ginclude/ to every entry in extra_headers. | |
2829 | for file in $extra_headers; | |
2830 | do | |
2831 | extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}" | |
2832 | done | |
46f18e7b RK |
2833 | fi |
2834 | ||
2835 | # Add a definition of USE_COLLECT2 if system wants one. | |
2836 | # Also tell toplev.c what to do. | |
2837 | # This substitutes for lots of t-* files. | |
2838 | if [[ x$use_collect2 = x ]] | |
2839 | then | |
2840 | will_use_collect2= | |
2841 | maybe_use_collect2= | |
2842 | else | |
2843 | will_use_collect2="ld" | |
2844 | maybe_use_collect2="-DUSE_COLLECT2" | |
46f18e7b RK |
2845 | fi |
2846 | ||
2847 | # NEED TO CONVERT | |
2848 | # Set MD_DEPS if the real md file is in md.pre-cpp. | |
2849 | # Set MD_CPP to the cpp to pass the md file through. Md files use ';' | |
2850 | # for line oriented comments, so we must always use a GNU cpp. If | |
2851 | # building gcc with a cross compiler, use the cross compiler just | |
2852 | # built. Otherwise, we can use the cpp just built. | |
2853 | md_file_sub= | |
2854 | if [[ "x$md_cppflags" = x ]] | |
2855 | then | |
2856 | md_file_sub=$srcdir/config/$md_file | |
2857 | else | |
46f18e7b | 2858 | md_file=md |
46f18e7b RK |
2859 | fi |
2860 | ||
2861 | # If we have gas in the build tree, make a link to it. | |
2862 | if [[ -f ../gas/Makefile ]]; then | |
2863 | rm -f as; $symbolic_link ../gas/as.new as 2>/dev/null | |
2864 | fi | |
2865 | ||
2866 | # If we have ld in the build tree, make a link to it. | |
2867 | if [[ -f ../ld/Makefile ]]; then | |
2868 | if [[ x$use_collect2 = x ]]; then | |
2869 | rm -f ld; $symbolic_link ../ld/ld.new ld 2>/dev/null | |
2870 | else | |
2871 | rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null | |
2872 | fi | |
2873 | fi | |
2874 | ||
46f18e7b RK |
2875 | # Conditionalize the makefile for this target machine. |
2876 | dep_tmake_file= | |
46f18e7b RK |
2877 | merged_frags= |
2878 | for f in .. ${tmake_file} | |
2879 | do | |
2880 | if [[ -f ${mainsrcdir}/config/$f ]] | |
2881 | then | |
2882 | cat ${mainsrcdir}/config/$f >> Make-target | |
2883 | dep_tmake_file="${dep_tmake_file} \$(srcdir)/config/$f" | |
46f18e7b RK |
2884 | fi |
2885 | done | |
46f18e7b RK |
2886 | |
2887 | # If this is the top level Makefile, add the language fragments. | |
2888 | # Languages are added via two mechanisms. Some information must be | |
2889 | # recorded in makefile variables, these are defined in config-lang.in. | |
2890 | # We accumulate them and plug them into the main Makefile. | |
2891 | # The other mechanism is a set of hooks for each of the main targets | |
2892 | # like `clean', `install', etc. | |
2893 | if [[ $subdir = . ]] | |
2894 | then | |
46f18e7b RK |
2895 | for s in .. $subdirs |
2896 | do | |
2897 | if [[ $s != ".." ]] | |
2898 | then | |
2899 | language= | |
2900 | boot_language= | |
2901 | compilers= | |
2902 | stagestuff= | |
2903 | diff_excludes= | |
ffdd22a9 RK |
2904 | headers= |
2905 | lib2funcs= | |
46f18e7b RK |
2906 | . ${mainsrcdir}/$s/config-lang.in |
2907 | if [[ "x$language" = x ]] | |
2908 | then | |
2909 | echo "${mainsrcdir}/$s/config-lang.in doesn't set \$language." 1>&2 | |
2910 | exit 1 | |
2911 | fi | |
2912 | all_lang_makefiles="$all_lang_makefiles ${mainsrcdir}/$s/Make-lang.in ${mainsrcdir}/$s/Makefile.in" | |
2913 | all_languages="$all_languages $language" | |
2914 | if [[ "x$boot_language" = xyes ]] | |
2915 | then | |
2916 | all_boot_languages="$all_boot_languages $language" | |
2917 | fi | |
2918 | all_compilers="$all_compilers $compilers" | |
2919 | all_stagestuff="$all_stagestuff $stagestuff" | |
2920 | all_diff_excludes="$all_diff_excludes $diff_excludes" | |
2921 | all_headers="$all_headers $headers" | |
2922 | all_lib2funcs="$all_lib2funcs $lib2funcs" | |
46f18e7b RK |
2923 | fi |
2924 | done | |
46f18e7b RK |
2925 | |
2926 | # Since we can't use `::' targets, we link each language in | |
2927 | # with a set of hooks, reached indirectly via lang.${target}. | |
2928 | ||
2929 | target_list="all.build all.cross start.encap rest.encap \ | |
2930 | info dvi \ | |
2931 | install-normal install-common install-info install-man \ | |
2932 | uninstall distdir \ | |
2933 | mostlyclean clean distclean extraclean maintainer-clean \ | |
2934 | stage1 stage2 stage3 stage4" | |
46f18e7b RK |
2935 | for t in $target_list |
2936 | do | |
2937 | x= | |
2938 | for l in .. $all_languages | |
2939 | do | |
2940 | if [[ $l != ".." ]]; then | |
2941 | x="$x $l.$t" | |
2942 | fi | |
2943 | done | |
2944 | echo "lang.$t: $x" >> Make-hooks | |
46f18e7b | 2945 | done |
46f18e7b RK |
2946 | |
2947 | # If the host doesn't support symlinks, modify CC in | |
2948 | # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works. | |
2949 | # Otherwise, we can use "CC=$(CC)". | |
2950 | rm -f symtest.tem | |
2951 | if $symbolic_link symtest1.tem symtest.tem 2>/dev/null | |
2952 | then | |
2953 | cc_set_by_configure="\$(CC)" | |
2954 | stage_prefix_set_by_configure="\$(STAGE_PREFIX)" | |
46f18e7b | 2955 | else |
f4fac32b | 2956 | cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`" |
46f18e7b | 2957 | |
f4fac32b | 2958 | stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`" |
46f18e7b RK |
2959 | fi |
2960 | ||
2961 | # Otherwise, this is a language subdirectory. If the host supports | |
2962 | # symlinks, point stage[123] at ../stage[123] so bootstrapping and the | |
2963 | # installation procedure can still use CC="stage1/xgcc -Bstage1/". | |
2964 | # If the host doesn't support symlinks, FLAGS_TO_PASS has been | |
2965 | # modified to solve the problem there. | |
2966 | else | |
2967 | for t in stage1 stage2 stage3 stage4 include | |
2968 | do | |
2969 | rm -f $t | |
2970 | $symbolic_link ../$t $t 2>/dev/null | |
2971 | done | |
2972 | fi | |
2973 | ||
2974 | out_object_file=`basename $out_file .c`.o | |
2975 | ||
2976 | if [[ $subdir = . ]] | |
2977 | then | |
2978 | tm_file_list= | |
2979 | for f in $tm_file; do | |
2980 | tm_file_list="${tm_file_sub} \$(srcdir)/config/$f" | |
2981 | done | |
2982 | ||
2983 | host_xm_file_list= | |
2984 | for f in $host_xm_file; do | |
2985 | host_xm_file_list="${host_xm_file_sub} \$(srcdir)/config/$f" | |
2986 | done | |
2987 | ||
2988 | build_xm_file_list= | |
2989 | for f in $build_xm_file; do | |
2990 | build_xm_file_list="${build_xm_file_sub} \$(srcdir)/config/$f" | |
2991 | done | |
2992 | fi | |
2993 | ||
2994 | # Remove all formfeeds, since some Makes get confused by them. | |
2995 | # Also arrange to give the variables `target', `host_xmake_file', | |
2996 | # `tmake_file', `prefix', `local_prefix', `exec_prefix', `FIXINCLUDES' | |
2997 | # `out_file', `out_object', `md_file', `lang_specs_files', | |
2998 | # `lang_options_files', `INSTALL_HEADERS_DIR', and `CROSS_FLOAT_H' | |
2999 | # values in the Makefile from the values they have in this script. | |
5891b37d | 3000 | |
46f18e7b RK |
3001 | tm_file_sub= |
3002 | for f in $tm_file; do | |
3003 | tm_file_sub="${tm_file_sub} ${srcdir}/config/$f" | |
3004 | done | |
5891b37d | 3005 | |
46f18e7b RK |
3006 | host_xm_file_sub= |
3007 | for f in $host_xm_file; do | |
3008 | host_xm_file_sub="${host_xm_file_sub} ${srcdir}/config/$f" | |
3009 | done | |
5891b37d | 3010 | |
46f18e7b RK |
3011 | build_xm_file_sub= |
3012 | for f in $build_xm_file; do | |
3013 | build_xm_file_sub="${build_xm_file_sub} ${srcdir}/config/$f" | |
3014 | done | |
5891b37d | 3015 | |
46f18e7b RK |
3016 | # Define macro CROSS_COMPILE in compilation |
3017 | # if this is a cross-compiler. | |
3018 | # Also use all.cross instead of all.internal | |
3019 | # and add cross-make to Makefile. | |
3020 | if [[ x$host != x$target ]] | |
3021 | then | |
3022 | cross_defines="CROSS=-DCROSS_COMPILE" | |
7fa10b25 | 3023 | cross_overrides="${topdir}/cross-make" |
46f18e7b RK |
3024 | fi |
3025 | ||
3026 | # When building gcc with a cross-compiler, we need to fix a few things. | |
3027 | # This must come after cross-make as we want all.build to override | |
3028 | # all.cross. | |
3029 | if [[ x$build != x$host ]] | |
3030 | then | |
7fa10b25 | 3031 | build_overrides="${topdir}/build-make" |
46f18e7b RK |
3032 | fi |
3033 | ||
3034 | cd $STARTDIR | |
3035 | done # end of current-dir SUBDIRS loop | |
3036 | ||
3037 | srcdir=$savesrcdir | |
3038 | ||
47866ac0 | 3039 | # Process the language fragments |
bee07132 | 3040 | ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" |
47866ac0 | 3041 | |
46f18e7b RK |
3042 | # Substitute configuration variables |
3043 | AC_SUBST(subdirs) | |
3044 | AC_SUBST(all_languages) | |
3045 | AC_SUBST(all_boot_languages) | |
3046 | AC_SUBST(all_compilers) | |
3047 | AC_SUBST(all_lang_makefiles) | |
3048 | AC_SUBST(all_stagestuff) | |
3049 | AC_SUBST(all_diff_excludes) | |
3050 | AC_SUBST(all_lib2funcs) | |
3051 | AC_SUBST(all_headers) | |
3052 | AC_SUBST(extra_passes) | |
3053 | AC_SUBST(extra_programs) | |
3054 | AC_SUBST(extra_parts) | |
3055 | AC_SUBST(extra_objs) | |
3056 | AC_SUBST(host_extra_gcc_objs) | |
3057 | AC_SUBST(extra_headers_list) | |
3058 | AC_SUBST(dep_host_xmake_file) | |
3059 | AC_SUBST(dep_tmake_file) | |
3060 | AC_SUBST(out_file) | |
3061 | AC_SUBST(out_object_file) | |
3062 | AC_SUBST(md_file) | |
3063 | AC_SUBST(tm_file_list) | |
3064 | AC_SUBST(build_xm_file_list) | |
3065 | AC_SUBST(host_xm_file_list) | |
3066 | AC_SUBST(lang_specs_files) | |
3067 | AC_SUBST(lang_options_files) | |
0bbb1697 | 3068 | AC_SUBST(thread_file) |
46f18e7b RK |
3069 | AC_SUBST(version) |
3070 | AC_SUBST(local_prefix) | |
9514f0d1 | 3071 | AC_SUBST(gxx_include_dir) |
46f18e7b RK |
3072 | AC_SUBST(fixincludes) |
3073 | AC_SUBST(build_install_headers_dir) | |
a204adc6 | 3074 | AC_SUBST(build_exeext) |
46f18e7b RK |
3075 | AC_SUBST(float_format) |
3076 | AC_SUBST(will_use_collect2) | |
3077 | AC_SUBST(maybe_use_collect2) | |
3078 | AC_SUBST(cc_set_by_configure) | |
3079 | AC_SUBST(stage_prefix_set_by_configure) | |
3080 | ||
3081 | AC_SUBST_FILE(target_overrides) | |
3082 | AC_SUBST_FILE(host_overrides) | |
3083 | AC_SUBST(cross_defines) | |
3084 | AC_SUBST_FILE(cross_overrides) | |
3085 | AC_SUBST_FILE(build_overrides) | |
3086 | AC_SUBST_FILE(language_fragments) | |
3087 | AC_SUBST_FILE(language_hooks) | |
3088 | ||
3089 | # Echo that links are built | |
3090 | if [[ x$host = x$target ]] | |
3091 | then | |
3092 | str1="native " | |
3093 | else | |
3094 | str1="cross-" | |
3095 | str2=" from $host" | |
3096 | fi | |
3097 | ||
3098 | if [[ x$host != x$build ]] | |
3099 | then | |
3100 | str3=" on a $build system" | |
3101 | fi | |
3102 | ||
3103 | if [[ "x$str2" != x ]] || [[ "x$str3" != x ]] | |
3104 | then | |
3105 | str4= | |
3106 | fi | |
3107 | ||
3108 | echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2 | |
3109 | ||
3110 | if [[ "x$str2" != x ]] || [[ "x$str3" != x ]] | |
3111 | then | |
3112 | echo " ${str2}${str3}." 1>&2 | |
3113 | fi | |
3114 | ||
3115 | # Configure the subdirectories | |
3116 | # AC_CONFIG_SUBDIRS($subdirs) | |
3117 | ||
3118 | # Create the Makefile | |
5891b37d RK |
3119 | # and configure language subdirectories |
3120 | AC_OUTPUT(Makefile, | |
3121 | . $srcdir/configure.lang, | |
3122 | host='${host}' | |
3123 | build='${build}' | |
3124 | target='${target}' | |
52060267 | 3125 | target_alias='${target_alias}' |
5891b37d RK |
3126 | srcdir='${srcdir}' |
3127 | subdirs='${subdirs}' | |
3128 | symbolic_link='${symbolic_link}' | |
3129 | program_transform_set='${program_transform_set}' | |
3130 | program_transform_name='${program_transform_name}' | |
3131 | all_languages='${all_languages}' | |
3132 | all_boot_languages='${all_boot_languages}' | |
3133 | all_compilers='${all_compilers}' | |
3134 | all_lang_makefiles='${all_lang_makefiles}' | |
3135 | all_stagestuff='${all_stagestuff}' | |
3136 | all_diff_excludes='${all_diff_excludes}' | |
3137 | all_lib2funcs='${all_lib2funcs}' | |
3138 | all_headers='${all_headers}' | |
3139 | extra_headers='${extra_headers}' | |
3140 | extra_passes='${extra_passes}' | |
3141 | extra_programs='${extra_programs}' | |
3142 | extra_parts='${extra_parts}' | |
3143 | extra_objs='${extra_objs}' | |
3144 | host_extra_gcc_objs='${host_extra_gcc_objs}' | |
3145 | extra_headers_list='${extra_headers_list}' | |
3146 | dep_host_xmake_file='${dep_host_xmake_file}' | |
3147 | host_xmake_file='${host_xmake_file}' | |
3148 | dep_tmake_file='${dep_tmake_file}' | |
3149 | tmake_file='${tmake_file}' | |
3150 | out_file='${out_file}' | |
3151 | out_object_file='${out_object_file}' | |
3152 | md_file='${md_file}' | |
3153 | md_file_sub='${md_file_sub}' | |
3154 | tm_file_list='${tm_file_list}' | |
3155 | tm_file_sub='${tm_file_sub}' | |
3156 | build_xm_file_list='${build_xm_file_list}' | |
3157 | build_xm_file_sub='${build_xm_file_sub}' | |
3158 | host_xm_file_list='${host_xm_file_list}' | |
3159 | host_xm_file_sub='${host_xm_file_sub}' | |
3160 | lang_specs_files='${lang_specs_files}' | |
3161 | lang_options_files='${lang_options_files}' | |
0bbb1697 | 3162 | thread_file='${thread_file}' |
5891b37d RK |
3163 | version='${version}' |
3164 | local_prefix='${local_prefix}' | |
9514f0d1 | 3165 | gxx_include_dir='${gxx_include_dir}' |
5891b37d RK |
3166 | fixincludes='${fixincludes}' |
3167 | build_install_headers_dir='${build_install_headers_dir}' | |
a204adc6 | 3168 | build_exeext='${build_exeext}' |
5891b37d RK |
3169 | float_format='${float_format}' |
3170 | use_collect2='${use_collect2}' | |
3171 | will_use_collect2='${will_use_collect2}' | |
3172 | maybe_use_collect2='${maybe_use_collect2}' | |
5891b37d RK |
3173 | gdb_needs_out_file_path='${gdb_needs_out_file_path}' |
3174 | SET_MAKE='${SET_MAKE}' | |
3175 | build_broken_install='${build_broken_install}' | |
3176 | md_cppflags='${md_cppflags}' | |
3177 | target_list='${target_list}' | |
3178 | ||
3179 | target_overrides='${target_overrides}' | |
3180 | host_overrides='${host_overrides}' | |
3181 | cross_defines='${cross_defines}' | |
3182 | cross_overrides='${cross_overrides}' | |
3183 | build_overrides='${build_overrides}' | |
3184 | language_fragments='${language_fragments}' | |
3185 | language_hooks='${language_hooks}' | |
3186 | ) |