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