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