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