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