OSDN Git Service

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