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