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