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