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