OSDN Git Service

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