OSDN Git Service

* i386/go32-rtems.h, i386/rtems.h, i960/rtems.h,
[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 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(config.h:config.in)
26
27 native_prefix=/usr
28 remove=rm
29 hard_link=ln
30 symbolic_link='ln -s'
31 copy=cp
32
33 # Check for additional parameters
34
35 # With GNU ld
36 AC_ARG_WITH(gnu-ld,
37 [  --with-gnu-ld           arrange to work with GNU ld.],
38 gnu_ld=yes,
39 gnu_ld=no)
40
41 # With GNU as
42 AC_ARG_WITH(gnu-as,
43 [  --with-gnu-as           arrange to work with GNU as.],
44 gas=yes,
45 gas=no)
46
47 # With stabs
48 AC_ARG_WITH(stabs,
49 [  --with-stabs            arrange to use stabs instead of host debug format.],
50 stabs=yes,
51 stabs=no)
52
53 # With ELF
54 AC_ARG_WITH(elf,
55 [  --with-elf              arrange to use ELF instead of host debug format.],
56 elf=yes,
57 elf=no)
58
59 # Specify the local prefix
60 AC_ARG_WITH(local-prefix,
61 [  --with-local-prefix=DIR specifies directory to put local include.],
62 local_prefix=$with_local_prefix,
63 local_prefix=/usr/local)
64
65 # Default local prefix if it is empty
66 if [[ x$local_prefix = x ]]; then
67         local_prefix=/usr/local
68 fi
69
70 # Specify the g++ header file directory
71 AC_ARG_WITH(gxx-include-dir,
72 [  --with-gxx-include-dir=DIR
73                           specifies directory to put g++ header files.],
74 gxx_include_dir=$with_gxx_include_dir,
75 gxx_include_dir='${prefix}/include/g++')
76
77 # Default g++ header file directory if it is empty
78 if [[ x$gxx_include_dir = x ]]; then
79         gxx_include_dir='${prefix}/include/g++'
80 fi
81
82 # Enable use of cpplib for C.
83 AC_ARG_ENABLE(c-cpplib,
84 [  --enable-c-cpplib       Use cpplib for C.],
85 if [[[ x$enable_c_cpplib != xno ]]]; then
86   extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
87   extra_c_flags=-DUSE_CPPLIB=1
88 fi)
89
90 # Enable threads
91 # Pass with no value to take the default
92 # Pass with a value to specify a thread package
93 AC_ARG_ENABLE(threads,
94 [  --enable-threads        enable thread usage for target GCC.
95   --enable-threads=LIB    use LIB thread package for target GCC.],
96 if [[[ x$enable_threads = xno ]]]; then
97         enable_threads=''
98 fi,
99 enable_threads='')
100
101 # Check if a valid thread package
102 case x${enable_threads} in
103         x | xno)
104                 # No threads
105                 thread_file='single'
106                 ;;
107         xyes)
108                 # default
109                 thread_file=''
110                 ;;
111         xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
112         xsolaris | xwin32)
113                 thread_file=$enable_threads
114                 ;;
115         *)
116                 echo "$enable_threads is an unknown thread package" 1>&2
117                 exit 1
118                 ;;
119 esac
120
121 # Determine the host, build, and target systems
122 AC_CANONICAL_SYSTEM
123
124 # Find some useful tools
125 AC_PROG_AWK
126 AC_PROG_LEX
127 AC_PROG_LN_S
128 AC_PROG_RANLIB
129 AC_PROG_YACC
130 AC_PROG_INSTALL
131
132 # Find the native compiler
133 AC_PROG_CC
134 AC_PROG_MAKE_SET
135
136 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
137
138 GCC_NEED_DECLARATION(malloc)
139 GCC_NEED_DECLARATION(realloc)
140 GCC_NEED_DECLARATION(calloc)
141 GCC_NEED_DECLARATION(free)
142
143 # File extensions
144 manext='.1'
145 objext='.o'
146 AC_SUBST(manext)
147 AC_SUBST(objext)
148
149 build_xm_file=
150 build_install_headers_dir=install-headers-tar
151 build_exeext=
152 host_xm_file=
153 host_xmake_file=
154 host_truncate_target=
155
156 # Decode the host machine, then the target machine.
157 # For the host machine, we save the xm_file variable as host_xm_file;
158 # then we decode the target machine and forget everything else
159 # that came from the host machine.
160 for machine in $build $host $target; do
161
162         out_file=
163         xmake_file=
164         tmake_file=
165         extra_headers=
166         extra_passes=
167         extra_parts=
168         extra_programs=
169         extra_objs=
170         extra_host_objs=
171         extra_gcc_objs=
172         float_format=
173         # Set this to force installation and use of collect2.
174         use_collect2=
175         # Set this to override the default target model.
176         target_cpu_default=
177         # Set this to control which fixincludes program to use.
178         fixincludes=fixincludes
179         # Set this to control how the header file directory is installed.
180         install_headers_dir=install-headers-tar
181         # Set this to a non-empty list of args to pass to cpp if the target
182         # wants its .md file passed through cpp.
183         md_cppflags=
184         # Set this if directory names should be truncated to 14 characters.
185         truncate_target=
186         # Set this if gdb needs a dir command with `dirname $out_file`
187         gdb_needs_out_file_path=
188         # Set this if the build machine requires executables to have a
189         # file name suffix.
190         exeext=
191
192         # Set default cpu_type, tm_file and xm_file so it can be updated in
193         # each machine entry.
194         cpu_type=`echo $machine | sed 's/-.*$//'`
195         case $machine in
196         alpha*-*-*)
197                 cpu_type=alpha
198                 ;;
199         arm*-*-*)
200                 cpu_type=arm
201                 ;;
202         c*-convex-*)
203                 cpu_type=convex
204                 ;;
205         i[[3456]]86-*-*)
206                 cpu_type=i386
207                 ;;
208         hppa*-*-*)
209                 cpu_type=pa
210                 ;;
211         m68000-*-*)
212                 cpu_type=m68k
213                 ;;
214         mips*-*-*)
215                 cpu_type=mips
216                 ;;
217         powerpc*-*-*)
218                 cpu_type=rs6000
219                 ;;
220         pyramid-*-*)
221                 cpu_type=pyr
222                 ;;
223         sparc*-*-*)
224                 cpu_type=sparc
225                 ;;
226         esac
227
228         tm_file=${cpu_type}/${cpu_type}.h
229         xm_file=${cpu_type}/xm-${cpu_type}.h
230         
231         case $machine in
232         # Support site-specific machine types.
233         *local*)
234                 cpu_type=`echo $machine | sed -e 's/-.*//'`
235                 rest=`echo $machine | sed -e "s/$cpu_type-//"`
236                 xm_file=${cpu_type}/xm-$rest.h
237                 tm_file=${cpu_type}/$rest.h
238                 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
239                 then xmake_file=${cpu_type}/x-$rest; \
240                 else true; \
241                 fi
242                 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
243                 then tmake_file=${cpu_type}/t-$rest; \
244                 else true; \
245                 fi
246                 ;;
247         1750a-*-*)
248                 ;;
249         a29k-*-bsd* | a29k-*-sym1*)
250                 tm_file="${tm_file} a29k/unix.h"
251                 xm_file=a29k/xm-unix.h
252                 xmake_file=a29k/x-unix
253                 use_collect2=yes
254                 ;;
255         a29k-*-udi | a29k-*-coff)
256                 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
257                 tmake_file=a29k/t-a29kbare
258                 ;;
259         a29k-*-vxworks*)
260                 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
261                 tmake_file=a29k/t-vx29k
262                 extra_parts="crtbegin.o crtend.o"
263                 ;;
264         a29k-*-*)                       # Default a29k environment.
265                 use_collect2=yes
266                 ;;
267         alpha*-*-linux-gnuecoff*)
268                 tm_file="${tm_file} alpha/linux.h"
269                 xm_file="${xm_file} alpha/xm-linux.h"
270                 target_cpu_default="MASK_GAS"
271                 gas=no
272                 xmake_file=none
273                 fixincludes=Makefile.in
274                 gas=yes gnu_ld=yes
275                 ;;
276         alpha*-*-linux-gnulibc1*)
277                 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
278                 xm_file="${xm_file} alpha/xm-linux.h"
279                 target_cpu_default="MASK_GAS"
280                 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
281                 xmake_file=none
282                 fixincludes=Makefile.in
283                 gas=yes gnu_ld=yes
284                 if [[ x$enable_threads = xyes ]]; then
285                         thread_file='posix'
286                 fi
287                 ;;
288         alpha*-*-linux-gnu*)
289                 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
290                 xm_file="${xm_file} alpha/xm-linux.h"
291                 target_cpu_default="MASK_GAS"
292                 tmake_file="t-linux alpha/t-linux"
293                 xmake_file=none
294                 fixincludes=Makefile.in
295                 gas=yes gnu_ld=yes
296                 if [[ x$enable_threads = xyes ]]; then
297                         thread_file='posix'
298                 fi
299                 ;;
300         alpha*-dec-osf[[456789]]*)
301                 if [[ x$stabs = xyes ]]
302                 then
303                         tm_file="${tm_file} dbx.h"
304                 fi
305                 if [[ x$gas != xyes ]]
306                 then
307                         extra_passes="mips-tfile mips-tdump"
308                 fi
309                 use_collect2=yes
310                 # Some versions of OSF4 (specifically X4.0-9 296.7) have
311                 # a broken tar, so we use cpio instead.
312                 case $machine in
313                   alpha*-dec-osf4*)
314                     install_headers_dir=install-headers-cpio
315                     ;;
316                 esac
317                 ;;
318         alpha*-dec-osf[[23]]*)
319                 tm_file="${tm_file} alpha/osf2or3.h"
320                 if [[ x$stabs = xyes ]]
321                 then
322                         tm_file="${tm_file} dbx.h"
323                 fi
324                 if [[ x$gas != xyes ]]
325                 then
326                         extra_passes="mips-tfile mips-tdump"
327                 fi
328                 use_collect2=yes
329                 ;;
330         alpha*-dec-osf1.2)
331                 tm_file="${tm_file} alpha/osf12.h"
332                 if [[ x$stabs = xyes ]]
333                 then
334                         tm_file="${tm_file} dbx.h"
335                 fi
336                 if [[ x$gas != xyes ]]
337                 then
338                         extra_passes="mips-tfile mips-tdump"
339                 fi
340                 use_collect2=yes
341                 ;;
342         alpha*-*-osf*)
343                 if [[ x$stabs = xyes ]]
344                 then
345                         tm_file="${tm_file} dbx.h"
346                 fi
347                 if [[ x$gas != xyes ]]
348                 then
349                         extra_passes="mips-tfile mips-tdump"
350                 fi
351                 use_collect2=yes
352                 ;;
353         alpha*-*-winnt3*)
354                 tm_file="${tm_file} alpha/win-nt.h"
355                 target_cpu_default=MASK_WINDOWS_NT
356                 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
357                 tmake_file=t-libc-ok
358                 xmake_file=winnt/x-winnt
359                 extra_host_objs=oldnames.o
360                 extra_gcc_objs="spawnv.o oldnames.o"
361                 fixincludes=fixinc.winnt
362                 if [[ x$gnu_ld != xyes ]]
363                 then
364                         extra_programs=ld.exe
365                 fi
366                 if [[ x$enable_threads = xyes ]]; then
367                         thread_file='win32'
368                 fi
369                 ;;
370         alpha*-dec-vms*)
371                 tm_file=alpha/vms.h
372                 xm_file="${xm_file} alpha/xm-vms.h"
373                 tmake_file=alpha/t-vms
374                 fixincludes=Makefile.in
375                 ;;
376         arm-*-coff* | armel-*-coff*)
377                 tm_file=arm/coff.h
378                 tmake_file=arm/t-bare
379                 ;;
380         arm-*-riscix1.[[01]]*)          # Acorn RISC machine (early versions)
381                 tm_file=arm/riscix1-1.h
382                 use_collect2=yes
383                 ;;
384         arm-*-riscix*)                  # Acorn RISC machine
385                 if [[ x$gas = xyes ]]
386                 then
387                     tm_file=arm/rix-gas.h
388                 else
389                     tm_file=arm/riscix.h
390                 fi
391                 xmake_file=arm/x-riscix
392                 tmake_file=arm/t-riscix
393                 use_collect2=yes
394                 ;;
395         arm-semi-aout | armel-semi-aout)
396                 tm_file=arm/semi.h
397                 tmake_file=arm/t-semi
398                 fixincludes=Makefile.in # There is nothing to fix
399                 ;;
400         arm-semi-aof | armel-semi-aof)
401                 tm_file=arm/semiaof.h
402                 tmake_file=arm/t-semiaof
403                 fixincludes=Makefile.in # There is nothing to fix
404                 ;;
405         arm-*-netbsd*)
406                 tm_file=arm/netbsd.h
407                 xm_file=arm/xm-netbsd.h
408                 tmake_file=arm/t-netbsd
409                 # On NetBSD, the headers are already okay.
410                 fixincludes=Makefile.in
411                 use_collect2=yes
412                 ;;
413         arm-*-linux-gnuaout*)           # ARM Linux
414                 cpu_type=arm
415                 xm_file=arm/xm-linux.h
416                 xmake_file=x-linux
417                 tm_file=arm/linux-gas.h
418                 tmake_file=arm/t-linux
419                 fixincludes=Makefile.in
420                 gnu_ld=yes
421                 ;;
422         arm-*-aout)
423                 tm_file=arm/aout.h
424                 ;;
425         c1-convex-*)                    # Convex C1
426                 target_cpu_default=1
427                 use_collect2=yes
428                 fixincludes=Makefile.in
429                 ;;
430         c2-convex-*)                    # Convex C2
431                 target_cpu_default=2
432                 use_collect2=yes
433                 fixincludes=Makefile.in
434                 ;;
435         c32-convex-*)
436                 target_cpu_default=4
437                 use_collect2=yes
438                 fixincludes=Makefile.in
439                 ;;
440         c34-convex-*)
441                 target_cpu_default=8
442                 use_collect2=yes
443                 fixincludes=Makefile.in
444                 ;;
445         c38-convex-*)
446                 target_cpu_default=16           
447                 use_collect2=yes
448                 fixincludes=Makefile.in
449                 ;;
450         clipper-intergraph-clix*)
451                 tm_file="${tm_file} svr3.h clipper/clix.h"
452                 xm_file=clipper/xm-clix.h
453                 xmake_file=clipper/x-clix
454                 extra_headers=va-clipper.h
455                 extra_parts="crtbegin.o crtend.o"
456                 install_headers_dir=install-headers-cpio
457                 ;;
458         dsp16xx-*)
459                 ;;
460         elxsi-elxsi-*)
461                 use_collect2=yes
462                 ;;
463 # This hasn't been upgraded to GCC 2.
464 #       fx80-alliant-*)                 # Alliant FX/80
465 #               ;;
466         h8300-*-*)
467                 float_format=i32
468                 ;;
469         hppa1.1-*-pro*)
470                 if [[ x$enable_haifa != xno ]]; then
471                         enable_haifa=yes
472                 fi
473                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
474                 xm_file=pa/xm-papro.h
475                 tmake_file=pa/t-pro
476                 ;;
477         hppa1.1-*-osf*)
478                 if [[ x$enable_haifa != xno ]]; then
479                         enable_haifa=yes
480                 fi
481                 target_cpu_default=1
482                 tm_file="${tm_file} pa/pa-osf.h"
483                 use_collect2=yes
484                 fixincludes=Makefile.in
485                 ;;
486         hppa1.1-*-rtems*)
487                 if [[ x$enable_haifa != xno ]]; then
488                         enable_haifa=yes
489                 fi
490                 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
491                 xm_file=pa/xm-papro.h
492                 tmake_file=pa/t-pro
493                 ;;
494         hppa1.0-*-osf*)
495                 if [[ x$enable_haifa != xno ]]; then
496                         enable_haifa=yes
497                 fi
498                 tm_file="${tm_file} pa/pa-osf.h"
499                 use_collect2=yes
500                 fixincludes=Makefile.in
501                 ;;
502         hppa1.1-*-bsd*)
503                 if [[ x$enable_haifa != xno ]]; then
504                         enable_haifa=yes
505                 fi
506                 target_cpu_default=1
507                 use_collect2=yes
508                 fixincludes=Makefile.in
509                 ;;
510         hppa1.0-*-bsd*)
511                 if [[ x$enable_haifa != xno ]]; then
512                         enable_haifa=yes
513                 fi
514                 use_collect2=yes
515                 fixincludes=Makefile.in
516                 ;;
517         hppa1.0-*-hpux7*)
518                 if [[ x$enable_haifa != xno ]]; then
519                         enable_haifa=yes
520                 fi
521                 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
522                 xm_file=pa/xm-pahpux.h
523                 xmake_file=pa/x-pa-hpux
524                 if [[ x$gas = xyes ]]
525                 then
526                         tm_file="${tm_file} pa/gas.h"
527                 fi
528                 install_headers_dir=install-headers-cpio
529                 use_collect2=yes
530                 ;;
531         hppa1.0-*-hpux8.0[[0-2]]*)
532                 if [[ x$enable_haifa != xno ]]; then
533                         enable_haifa=yes
534                 fi
535                 tm_file="${tm_file} pa/pa-hpux.h"
536                 xm_file=pa/xm-pahpux.h
537                 xmake_file=pa/x-pa-hpux
538                 if [[ x$gas = xyes ]]
539                 then
540                         tm_file="${tm_file} pa/pa-gas.h"
541                 else
542                         tm_file="pa/pa-oldas.h ${tm_file}"
543                 fi
544                 install_headers_dir=install-headers-cpio
545                 use_collect2=yes
546                 ;;
547         hppa1.1-*-hpux8.0[[0-2]]*)
548                 if [[ x$enable_haifa != xno ]]; then
549                         enable_haifa=yes
550                 fi
551                 target_cpu_default=1
552                 tm_file="${tm_file} pa/pa-hpux.h"
553                 xm_file=pa/xm-pahpux.h
554                 xmake_file=pa/x-pa-hpux
555                 if [[ x$gas = xyes ]]
556                 then
557                         tm_file="${tm_file} pa/pa-gas.h"
558                 else
559                         tm_file="pa/pa-oldas.h ${tm_file}"
560                 fi
561                 install_headers_dir=install-headers-cpio
562                 use_collect2=yes
563                 ;;
564         hppa1.1-*-hpux8*)
565                 if [[ x$enable_haifa != xno ]]; then
566                         enable_haifa=yes
567                 fi
568                 target_cpu_default=1
569                 tm_file="${tm_file} pa/pa-hpux.h"
570                 xm_file=pa/xm-pahpux.h
571                 xmake_file=pa/x-pa-hpux
572                 if [[ x$gas = xyes ]]
573                 then
574                         tm_file="${tm_file} pa/pa-gas.h"
575                 fi
576                 install_headers_dir=install-headers-cpio
577                 use_collect2=yes
578                 ;;
579         hppa1.0-*-hpux8*)
580                 if [[ x$enable_haifa != xno ]]; then
581                         enable_haifa=yes
582                 fi
583                 tm_file="${tm_file} pa/pa-hpux.h"
584                 xm_file=pa/xm-pahpux.h
585                 xmake_file=pa/x-pa-hpux
586                 if [[ x$gas = xyes ]]
587                 then
588                         tm_file="${tm_file} pa/pa-gas.h"
589                 fi
590                 install_headers_dir=install-headers-cpio
591                 use_collect2=yes
592                 ;;
593         hppa1.1-*-hpux10*)
594                 if [[ x$enable_haifa != xno ]]; then
595                         enable_haifa=yes
596                 fi
597                 target_cpu_default=1
598                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
599                 xm_file=pa/xm-pahpux.h
600                 xmake_file=pa/x-pa-hpux
601                 if [[ x$gas = xyes ]]
602                 then
603                         tm_file="${tm_file} pa/pa-gas.h"
604                 fi
605                 install_headers_dir=install-headers-cpio
606                 use_collect2=yes
607                 ;;
608         hppa1.0-*-hpux10*)
609                 if [[ x$enable_haifa != xno ]]; then
610                         enable_haifa=yes
611                 fi
612                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
613                 xm_file=pa/xm-pahpux.h
614                 xmake_file=pa/x-pa-hpux
615                 if [[ x$gas = xyes ]]
616                 then
617                         tm_file="${tm_file} pa/pa-gas.h"
618                 fi
619                 install_headers_dir=install-headers-cpio
620                 use_collect2=yes
621                 ;;
622         hppa1.1-*-hpux*)
623                 if [[ x$enable_haifa != xno ]]; then
624                         enable_haifa=yes
625                 fi
626                 target_cpu_default=1
627                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
628                 xm_file=pa/xm-pahpux.h
629                 xmake_file=pa/x-pa-hpux
630                 if [[ x$gas = xyes ]]
631                 then
632                         tm_file="${tm_file} pa/pa-gas.h"
633                 fi
634                 install_headers_dir=install-headers-cpio
635                 use_collect2=yes
636                 ;;
637         hppa1.0-*-hpux*)
638                 if [[ x$enable_haifa != xno ]]; then
639                         enable_haifa=yes
640                 fi
641                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
642                 xm_file=pa/xm-pahpux.h
643                 xmake_file=pa/x-pa-hpux
644                 if [[ x$gas = xyes ]]
645                 then
646                         tm_file="${tm_file} pa/pa-gas.h"
647                 fi
648                 install_headers_dir=install-headers-cpio
649                 use_collect2=yes
650                 ;;
651         hppa1.1-*-hiux*)
652                 if [[ x$enable_haifa != xno ]]; then
653                         enable_haifa=yes
654                 fi
655                 target_cpu_default=1
656                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
657                 xm_file=pa/xm-pahpux.h
658                 xmake_file=pa/x-pa-hpux
659                 if [[ x$gas = xyes ]]
660                 then
661                         tm_file="${tm_file} pa/pa-gas.h"
662                 fi
663                 install_headers_dir=install-headers-cpio
664                 use_collect2=yes
665                 ;;
666         hppa1.0-*-hiux*)
667                 if [[ x$enable_haifa != xno ]]; then
668                         enable_haifa=yes
669                 fi
670                 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
671                 xm_file=pa/xm-pahpux.h
672                 xmake_file=pa/x-pa-hpux
673                 if [[ x$gas = xyes ]]
674                 then
675                         tm_file="${tm_file} pa/pa-gas.h"
676                 fi
677                 install_headers_dir=install-headers-cpio
678                 use_collect2=yes
679                 ;;
680         hppa*-*-lites*)
681                 if [[ x$enable_haifa != xno ]]; then
682                         enable_haifa=yes
683                 fi
684                 target_cpu_default=1
685                 use_collect2=yes
686                 fixincludes=Makefile.in
687                 ;;
688         i370-*-mvs*)
689                 ;;
690         i[[3456]]86-ibm-aix*)           # IBM PS/2 running AIX
691                 if [[ x$gas = xyes ]]
692                 then
693                         tm_file=i386/aix386.h
694                         extra_parts="crtbegin.o crtend.o"
695                         tmake_file=i386/t-crtstuff
696                 else
697                         tm_file=i386/aix386ng.h
698                         use_collect2=yes
699                 fi
700                 xm_file=i386/xm-aix.h
701                 xmake_file=i386/x-aix
702                 ;;
703         i486-ncr-sysv4*)                # NCR 3000 - i486 running system V.4
704                 xm_file=i386/xm-sysv4.h
705                 xmake_file=i386/x-ncr3000
706                 if [[ x$stabs = xyes -a x$gas = xyes ]]
707                 then
708                         tm_file=i386/sysv4gdb.h
709                 else
710                         tm_file=i386/sysv4.h
711                 fi
712                 extra_parts="crtbegin.o crtend.o"
713                 tmake_file=i386/t-crtpic
714                 ;;
715         i[[3456]]86-next-*)
716                 tm_file=i386/next.h
717                 xm_file=i386/xm-next.h
718                 tmake_file=i386/t-next
719                 xmake_file=i386/x-next
720                 extra_objs=nextstep.o
721                 if [[ x$enable_threads = xyes ]]; then
722                         thread_file='mach'
723                 fi
724                 ;;
725         i[[3456]]86-sequent-bsd*)               # 80386 from Sequent
726                 use_collect2=yes
727                 if [[ x$gas = xyes ]]
728                 then
729                         tm_file=i386/seq-gas.h
730                 else
731                         tm_file=i386/sequent.h
732                 fi
733                 ;;
734         i[[3456]]86-sequent-ptx1*)
735                 xm_file=i386/xm-sysv3.h
736                 xmake_file=i386/x-sysv3
737                 tm_file=i386/seq-sysv3.h
738                 tmake_file=i386/t-crtstuff
739                 fixincludes=fixinc.ptx
740                 extra_parts="crtbegin.o crtend.o"
741                 install_headers_dir=install-headers-cpio
742                 ;;
743         i[[3456]]86-sequent-ptx2* | i[[3456]]86-sequent-sysv3*)
744                 xm_file=i386/xm-sysv3.h
745                 xmake_file=i386/x-sysv3
746                 tm_file=i386/seq2-sysv3.h
747                 tmake_file=i386/t-crtstuff
748                 extra_parts="crtbegin.o crtend.o"
749                 fixincludes=fixinc.ptx
750                 install_headers_dir=install-headers-cpio
751                 ;;
752         i[[3456]]86-sequent-ptx4* | i[[3456]]86-sequent-sysv4*)
753                 xm_file=i386/xm-sysv4.h
754                 xmake_file=x-svr4
755                 tm_file=i386/ptx4-i.h
756                 tmake_file=t-svr4
757                 extra_parts="crtbegin.o crtend.o"
758                 fixincludes=fixinc.ptx
759                 install_headers_dir=install-headers-cpio
760                 ;;
761         i386-sun-sunos*)                # Sun i386 roadrunner
762                 xm_file=i386/xm-sun.h
763                 tm_file=i386/sun.h
764                 use_collect2=yes
765                 ;;
766         i[[3456]]86-*-aout*)
767                 tm_file=i386/i386-aout.h
768                 tmake_file=i386/t-i386bare
769                 ;;
770         i[[3456]]86-*-bsdi* | i[[345]]86-*-bsd386*)
771                 tm_file=i386/bsd386.h
772                 xm_file=i386/xm-bsd386.h
773 #               tmake_file=t-libc-ok
774                 ;;
775         i[[3456]]86-*-bsd*)
776                 tm_file=i386/386bsd.h
777                 xm_file=i386/xm-bsd386.h
778 #               tmake_file=t-libc-ok
779 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
780 #               use_collect2=yes
781                 ;;
782         i[[3456]]86-*-freebsdelf*)
783                 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
784                 xm_file=i386/xm-freebsd.h
785                 # On FreeBSD, the headers are already ok.
786                 fixincludes=Makefile.in
787                 tmake_file=i386/t-freebsd
788                 gas=yes
789                 gnu_ld=yes
790                 stabs=yes
791                 ;;
792         i[[3456]]86-*-freebsd*)
793                 tm_file=i386/freebsd.h
794                 xm_file=i386/xm-freebsd.h
795                 # On FreeBSD, the headers are already ok.
796                 fixincludes=Makefile.in
797                 tmake_file=i386/t-freebsd
798                 ;;
799         i[[3456]]86-*-netbsd*)
800                 tm_file=i386/netbsd.h
801                 xm_file=i386/xm-netbsd.h
802                 # On NetBSD, the headers are already okay.
803                 fixincludes=Makefile.in
804                 tmake_file=t-netbsd
805                 ;;
806         i[[3456]]86-*-coff*)
807                 tm_file=i386/i386-coff.h
808                 tmake_file=i386/t-i386bare
809                 ;;
810         i[[3456]]86-*-isc*)             # 80386 running ISC system
811                 xm_file=i386/xm-isc.h
812                 case $machine in
813                   i[[345]]86-*-isc[[34]]*)
814                     xmake_file=i386/x-isc3
815                     ;;
816                   *)
817                     xmake_file=i386/x-isc
818                     ;;
819                 esac
820                 if [[ x$gas = xyes -a x$stabs = xyes ]]
821                 then
822                         tm_file=i386/iscdbx.h
823                         tmake_file=i386/t-svr3dbx
824                         extra_parts="svr3.ifile svr3z.ifile"
825                 else
826                         tm_file=i386/isccoff.h
827                         tmake_file=i386/t-crtstuff
828                         extra_parts="crtbegin.o crtend.o"
829                 fi
830                 install_headers_dir=install-headers-cpio
831                 ;;
832         i[[3456]]86-*-linux-gnuoldld*)  # Intel 80386's running Linux
833                 xm_file=i386/xm-linux.h # with a.out format using pre BFD linkers
834                 xmake_file=x-linux-aout
835                 tmake_file="t-linux-aout i386/t-crtstuff"
836                 tm_file=i386/linux-oldld.h
837                 fixincludes=Makefile.in #On Linux, the headers are ok already.
838                 gnu_ld=yes
839                 ;;
840         i[[3456]]86-*-linux-gnuaout*)           # Intel 80386's running Linux
841                 xm_file=i386/xm-linux.h         # with a.out format
842                 xmake_file=x-linux-aout
843                 tmake_file="t-linux-aout i386/t-crtstuff"
844                 tm_file=i386/linux-aout.h
845                 fixincludes=Makefile.in #On Linux, the headers are ok already.
846                 gnu_ld=yes
847                 ;;
848         i[[3456]]86-*-linux-gnulibc1)
849                 xm_file=i386/xm-linux.h # Intel 80386's running Linux
850                 xmake_file=x-linux      # with ELF format using the
851                 tm_file=i386/linux.h    # Linux C library 5
852                 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
853                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
854                 fixincludes=Makefile.in #On Linux, the headers are ok already.
855                 gnu_ld=yes
856                 if [[ x$enable_threads = xyes ]]; then
857                         thread_file='single'
858                 fi
859                 ;;
860         i[[3456]]86-*-linux-gnu*)               # Intel 80386's running Linux
861                 xm_file=i386/xm-linux.h # with ELF format using glibc 2
862                 xmake_file=x-linux      # aka Linux C library 6
863                 tm_file=i386/linux.h
864                 tmake_file="t-linux i386/t-crtstuff"
865                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
866                 fixincludes=Makefile.in #On Linux, the headers are ok already.
867                 gnu_ld=yes
868                 if [[ x$enable_threads = xyes ]]; then
869                         thread_file='posix'
870                 fi
871                 ;;
872         i[[3456]]86-*-gnu*)
873                 ;;
874         i[[3456]]86-go32-msdos | i[[3456]]86-*-go32*)
875                 xm_file=i386/xm-go32.h
876                 tm_file=i386/go32.h
877                 tmake_file=i386/t-go32
878                 ;;
879         i[[3456]]86-moss-msdos* | i[[3456]]86-*-moss*)
880                 tm_file=i386/moss.h
881                 tmake_file=t-libc-ok
882                 fixincludes=Makefile.in
883                 gnu_ld=yes
884                 gas=yes
885                 ;;
886         i[[3456]]86-*-lynxos*)
887                 if [[ x$gas = xyes ]]
888                 then
889                         tm_file=i386/lynx.h
890                 else
891                         tm_file=i386/lynx-ng.h
892                 fi
893                 xm_file=i386/xm-lynx.h
894                 tmake_file=i386/t-i386bare
895                 xmake_file=x-lynx
896                 ;;
897         i[[3456]]86-*-mach*)
898                 tm_file=i386/mach.h
899 #               tmake_file=t-libc-ok
900                 use_collect2=yes
901                 ;;
902         i[[3456]]86-*-osfrose*)         # 386 using OSF/rose
903                 if [[ x$elf = xyes ]]
904                 then
905                         tm_file=i386/osfelf.h
906                         use_collect2=
907                 else
908                         tm_file=i386/osfrose.h
909                         use_collect2=yes
910                 fi
911                 xm_file=i386/xm-osf.h
912                 xmake_file=i386/x-osfrose
913                 tmake_file=i386/t-osf
914                 extra_objs=halfpic.o
915                 ;;
916         i[[345]]86-go32-rtems*)
917                 cpu_type=i386
918                 xm_file=i386/xm-go32.h
919                 tm_file=i386/go32-rtems.h
920                 tmake_file="i386/t-go32 t-rtems"
921                 ;;
922         i[[345]]86-*-rtems*)
923                 cpu_type=i386
924                 tm_file=i386/rtems.h
925                 tmake_file="i386/t-i386bare t-rtems"
926                 ;;
927         i[[3456]]86-*-sco3.2v5*)                # 80386 running SCO Open Server 5
928                 xm_file=i386/xm-sco5.h
929                 xmake_file=i386/x-sco5
930                 fixincludes=fixinc.sco
931                 tm_file=i386/sco5.h
932                 tmake_file=i386/t-sco5
933                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
934                 ;;
935         i[[3456]]86-*-sco3.2v4*)                # 80386 running SCO 3.2v4 system
936                 xm_file=i386/xm-sco.h
937                 xmake_file=i386/x-sco4
938                 fixincludes=fixinc.sco
939                 install_headers_dir=install-headers-cpio
940                 if [[ x$stabs = xyes ]]
941                 then
942                         tm_file=i386/sco4dbx.h
943                         tmake_file=i386/t-svr3dbx
944                         extra_parts="svr3.ifile svr3z.rfile"
945                 else
946                         tm_file=i386/sco4.h
947                         tmake_file=i386/t-crtstuff
948                         extra_parts="crtbegin.o crtend.o"
949                 fi
950                 truncate_target=yes
951                 ;;
952         i[[3456]]86-*-sco*)             # 80386 running SCO system
953                 xm_file=i386/xm-sco.h
954                 xmake_file=i386/x-sco
955                 install_headers_dir=install-headers-cpio
956                 if [[ x$stabs = xyes ]]
957                 then
958                         tm_file=i386/scodbx.h
959                         tmake_file=i386/t-svr3dbx
960                         extra_parts="svr3.ifile svr3z.rfile"
961                 else
962                         tm_file=i386/sco.h
963                         extra_parts="crtbegin.o crtend.o"
964                         tmake_file=i386/t-crtstuff
965                 fi
966                 truncate_target=yes
967                 ;;
968         i[[3456]]86-*-solaris2*)
969                 xm_file=i386/xm-sysv4.h
970                 if [[ x$stabs = xyes ]]
971                 then
972                         tm_file=i386/sol2dbg.h
973                 else
974                         tm_file=i386/sol2.h
975                 fi
976                 tmake_file=i386/t-sol2
977                 extra_parts="crt1.o crti.o crtn.o crtbegin.o crtend.o"
978                 xmake_file=x-svr4
979                 fixincludes=fixinc.svr4
980                 if [[ x$enable_threads = xyes ]]; then
981                         thread_file='solaris'
982                 fi
983                 ;;
984         i[[3456]]86-*-sysv4*)           # Intel 80386's running system V.4
985                 xm_file=i386/xm-sysv4.h
986                 tm_file=i386/sysv4.h
987                 if [[ x$stabs = xyes ]]
988                 then
989                         tm_file="${tm_file} dbx.h"
990                 fi
991                 tmake_file=i386/t-crtpic
992                 xmake_file=x-svr4
993                 extra_parts="crtbegin.o crtend.o"
994                 ;;
995         i[[3456]]86-*-sysv*)            # Intel 80386's running system V
996                 xm_file=i386/xm-sysv3.h
997                 xmake_file=i386/x-sysv3
998                 if [[ x$gas = xyes ]]
999                 then
1000                         if [[ x$stabs = xyes ]]
1001                         then
1002                                 tm_file=i386/svr3dbx.h
1003                                 tmake_file=i386/t-svr3dbx
1004                                 extra_parts="svr3.ifile svr3z.rfile"
1005                         else
1006                                 tm_file=i386/svr3gas.h
1007                                 extra_parts="crtbegin.o crtend.o"
1008                                 tmake_file=i386/t-crtstuff
1009                         fi
1010                 else
1011                         tm_file=i386/sysv3.h
1012                         extra_parts="crtbegin.o crtend.o"
1013                         tmake_file=i386/t-crtstuff
1014                 fi
1015                 ;;
1016         i386-*-vsta)                    # Intel 80386's running VSTa kernel
1017                 xm_file=i386/xm-vsta.h
1018                 tm_file=i386/vsta.h
1019                 tmake_file=i386/t-vsta
1020                 xmake_file=i386/x-vsta
1021                 ;;
1022         i[[3456]]86-*-pe | i[[3456]]86-*-cygwin32)
1023                 xm_file="${xm_file} i386/xm-cygwin32.h"
1024                 tmake_file=i386/t-cygwin32
1025                 tm_file=i386/cygwin32.h
1026                 xmake_file=i386/x-cygwin32
1027                 extra_objs=winnt.o
1028                 fixincludes=Makefile.in
1029                 if [[ x$enable_threads = xyes ]]; then
1030                         thread_file='win32'
1031                 fi
1032                 exeext=.exe
1033                 ;;
1034         i[[3456]]86-*-mingw32)
1035                 tm_file=i386/mingw32.h
1036                 xm_file="${xm_file} i386/xm-mingw32.h"
1037                 tmake_file=i386/t-cygwin32
1038                 extra_objs=winnt.o
1039                 xmake_file=i386/x-cygwin32
1040                 fixincludes=Makefile.in
1041                 if [[ x$enable_threads = xyes ]]; then
1042                         thread_file='win32'
1043                 fi
1044                 exeext=.exe
1045                 ;;
1046         i[[3456]]86-*-winnt3*)
1047                 tm_file=i386/win-nt.h
1048                 out_file=i386/i386.c
1049                 xm_file=i386/xm-winnt.h
1050                 xmake_file=winnt/x-winnt
1051                 tmake_file=i386/t-winnt
1052                 extra_host_objs="winnt.o oldnames.o"
1053                 extra_gcc_objs="spawnv.o oldnames.o"
1054                 fixincludes=fixinc.winnt
1055                 if [[ x$gnu_ld != xyes ]]
1056                 then
1057                         extra_programs=ld.exe
1058                 fi
1059                 if [[ x$enable_threads = xyes ]]; then
1060                         thread_file='win32'
1061                 fi
1062                 ;;
1063         i[[3456]]86-dg-dgux)
1064                 xm_file=i386/xm-dgux.h
1065                 out_file=i386/dgux.c
1066                 tm_file=i386/dgux.h
1067                 tmake_file=i386/t-dgux
1068                 xmake_file=i386/x-dgux
1069                 fixincludes=fixinc.dgux
1070                 install_headers_dir=install-headers-cpio
1071               ;;
1072         i860-alliant-*)         # Alliant FX/2800
1073                 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1074                 xm_file="${xm_file} i860/xm-fx2800.h"
1075                 xmake_file=i860/x-fx2800
1076                 tmake_file=i860/t-fx2800
1077                 extra_parts="crtbegin.o crtend.o"
1078                 ;;
1079         i860-*-bsd*)
1080                 tm_file="${tm_file} i860/bsd.h"
1081                 if [[ x$gas = xyes ]]
1082                 then
1083                         tm_file="${tm_file} i860/bsd-gas.h"
1084                 fi
1085                 use_collect2=yes
1086                 ;;
1087         i860-*-mach*)
1088                 tm_file="${tm_file} i860/mach.h"
1089                 tmake_file=t-libc-ok
1090                 ;;
1091         i860-*-osf*)                    # Intel Paragon XP/S, OSF/1AD
1092                 tm_file="${tm_file} svr3.h i860/paragon.h"
1093                 xm_file="${xm_file} xm-svr3.h"
1094                 tmake_file=t-osf
1095                 ;;
1096         i860-*-sysv3*)
1097                 tm_file="${tm_file} svr3.h i860/sysv3.h"
1098                 xm_file="${tm_file} xm-svr3.h"
1099                 xmake_file=i860/x-sysv3
1100                 extra_parts="crtbegin.o crtend.o"
1101                 ;;
1102         i860-*-sysv4*)
1103                 tm_file="${tm_file} svr4.h i860/sysv4.h"
1104                 xm_file="${xm_file} xm-svr3.h"
1105                 xmake_file=i860/x-sysv4
1106                 tmake_file=t-svr4
1107                 extra_parts="crtbegin.o crtend.o"
1108                 ;;
1109         i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1110                 tm_file="${tm_file} i960/vx960.h"
1111                 tmake_file=i960/t-vxworks960
1112                 use_collect2=yes
1113                 ;;
1114         i960-wrs-vxworks5*)
1115                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1116                 tmake_file=i960/t-vxworks960
1117                 use_collect2=yes
1118                 ;;
1119         i960-wrs-vxworks*)
1120                 tm_file="${tm_file} i960/vx960.h"
1121                 tmake_file=i960/t-vxworks960
1122                 use_collect2=yes
1123                 ;;
1124         i960-*-coff*)
1125                 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1126                 tmake_file=i960/t-960bare
1127                 use_collect2=yes
1128                 ;;
1129         i960-*-rtems)
1130                 tmake_file="i960/t-960bare t-rtems"
1131                 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1132                 use_collect2=yes
1133                 ;;
1134         i960-*-*)                       # Default i960 environment.
1135                 use_collect2=yes
1136                 ;;
1137         m32r-*-elf*)
1138                 extra_parts="crtinit.o crtfini.o"
1139                 ;;
1140         m68000-convergent-sysv*)
1141                 tm_file=m68k/ctix.h
1142                 xm_file=m68k/xm-3b1.h
1143                 use_collect2=yes
1144                 extra_headers=math-68881.h
1145                 ;;
1146         m68000-hp-bsd*)                 # HP 9000/200 running BSD
1147                 tm_file=m68k/hp2bsd.h
1148                 xmake_file=m68k/x-hp2bsd
1149                 use_collect2=yes
1150                 extra_headers=math-68881.h
1151                 ;;
1152         m68000-hp-hpux*)                # HP 9000 series 300
1153                 xm_file=m68k/xm-hp320.h
1154                 if [[ x$gas = xyes ]]
1155                 then
1156                         xmake_file=m68k/x-hp320g
1157                         tm_file=m68k/hp310g.h
1158                 else
1159                         xmake_file=m68k/x-hp320
1160                         tm_file=m68k/hp310.h
1161                 fi
1162                 install_headers_dir=install-headers-cpio
1163                 use_collect2=yes
1164                 extra_headers=math-68881.h
1165                 ;;
1166         m68000-sun-sunos3*)
1167                 tm_file=m68k/sun2.h
1168                 use_collect2=yes
1169                 extra_headers=math-68881.h
1170                 ;;
1171         m68000-sun-sunos4*)
1172                 tm_file=m68k/sun2o4.h
1173                 use_collect2=yes
1174                 extra_headers=math-68881.h
1175                 ;;
1176         m68000-att-sysv*)
1177                 xm_file=m68k/xm-3b1.h
1178                 if [[ x$gas = xyes ]]
1179                 then
1180                         tm_file=m68k/3b1g.h
1181                 else
1182                         tm_file=m68k/3b1.h
1183                 fi
1184                 use_collect2=yes
1185                 extra_headers=math-68881.h
1186                 ;;
1187         m68k-apple-aux*)                # Apple Macintosh running A/UX
1188                 xm_file=m68k/xm-aux.h
1189                 tmake_file=m68k/t-aux
1190                 install_headers_dir=install-headers-cpio
1191                 extra_headers=math-68881.h
1192                 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1193                 tm_file=
1194                 if [[ "$gnu_ld" = yes ]]
1195                 then
1196                         tm_file="${tm_file} m68k/auxgld.h"
1197                 else
1198                         tm_file="${tm_file} m68k/auxld.h"
1199                 fi
1200                 if [[ "$gas" = yes ]]
1201                 then
1202                         tm_file="${tm_file} m68k/auxgas.h"
1203                 else
1204                         tm_file="${tm_file} m68k/auxas.h"
1205                 fi
1206                 tm_file="${tm_file} m68k/a-ux.h"
1207                 ;;
1208         m68k-apollo-*)
1209                 tm_file=m68k/apollo68.h
1210                 xmake_file=m68k/x-apollo68
1211                 use_collect2=yes
1212                 extra_headers=math-68881.h
1213                 ;;
1214         m68k-altos-sysv*)                  # Altos 3068
1215                 if [[ x$gas = xyes ]]
1216                 then
1217                         tm_file=m68k/altos3068.h
1218                         xm_file=m68k/xm-altos3068.h
1219                 else
1220                         echo "The Altos is supported only with the GNU assembler" 1>&2
1221                         exit 1
1222                 fi
1223                 extra_headers=math-68881.h
1224                 ;;
1225         m68k-bull-sysv*)                # Bull DPX/2
1226                 if [[ x$gas = xyes ]]
1227                 then
1228                         if [[ x$stabs = xyes ]]
1229                         then
1230                                 tm_file=m68k/dpx2cdbx.h
1231                         else
1232                                 tm_file=m68k/dpx2g.h
1233                         fi
1234                 else
1235                         tm_file=m68k/dpx2.h
1236                 fi
1237                 xm_file=m68k/xm-m68kv.h
1238                 xmake_file=m68k/x-dpx2
1239                 use_collect2=yes
1240                 extra_headers=math-68881.h
1241                 ;;
1242         m68k-atari-sysv4*)              # Atari variant of V.4.
1243                 tm_file=m68k/atari.h
1244                 xm_file=m68k/xm-atari.h
1245                 tmake_file=t-svr4
1246                 extra_parts="crtbegin.o crtend.o"
1247                 extra_headers=math-68881.h
1248                 ;;
1249         m68k-motorola-sysv*)
1250                 tm_file=m68k/mot3300.h
1251                 xm_file=m68k/xm-mot3300.h
1252                 if [[ x$gas = xyes ]]
1253                 then
1254                         xmake_file=m68k/x-mot3300-gas
1255                         if [[ x$gnu_ld = xyes ]]
1256                         then
1257                                 tmake_file=m68k/t-mot3300-gald
1258                         else
1259                                 tmake_file=m68k/t-mot3300-gas
1260                                 use_collect2=yes
1261                         fi
1262                 else
1263                         xmake_file=m68k/x-mot3300
1264                         if [[ x$gnu_ld = xyes ]]
1265                         then
1266                                 tmake_file=m68k/t-mot3300-gld
1267                         else
1268                                 tmake_file=m68k/t-mot3300
1269                                 use_collect2=yes
1270                         fi
1271                 fi
1272                 gdb_needs_out_file_path=yes
1273                 extra_parts="crt0.o mcrt0.o"
1274                 extra_headers=math-68881.h
1275                 ;;
1276         m68k-ncr-sysv*)                 # NCR Tower 32 SVR3
1277                 tm_file=m68k/tower-as.h
1278                 xm_file=m68k/xm-tower.h
1279                 xmake_file=m68k/x-tower
1280                 extra_parts="crtbegin.o crtend.o"
1281                 extra_headers=math-68881.h
1282                 ;;
1283         m68k-plexus-sysv*)
1284                 tm_file=m68k/plexus.h
1285                 xm_file=m68k/xm-plexus.h
1286                 use_collect2=yes
1287                 extra_headers=math-68881.h
1288                 ;;
1289         m68k-tti-*)
1290                 tm_file=m68k/pbb.h
1291                 xm_file=m68k/xm-m68kv.h
1292                 extra_headers=math-68881.h
1293                 ;;
1294         m68k-crds-unos*)
1295                 xm_file=m68k/xm-crds.h
1296                 xmake_file=m68k/x-crds
1297                 tm_file=m68k/crds.h
1298                 use_collect2=yes
1299                 extra_headers=math-68881.h
1300                 ;;
1301         m68k-cbm-sysv4*)                # Commodore variant of V.4.
1302                 tm_file=m68k/amix.h
1303                 xm_file=m68k/xm-amix.h
1304                 xmake_file=m68k/x-amix
1305                 tmake_file=t-svr4
1306                 extra_parts="crtbegin.o crtend.o"
1307                 extra_headers=math-68881.h
1308                 ;;
1309         m68k-ccur-rtu)
1310                 tm_file=m68k/ccur-GAS.h
1311                 xmake_file=m68k/x-ccur
1312                 extra_headers=math-68881.h
1313                 use_collect2=yes
1314                 ;;
1315         m68k-hp-bsd4.4*)                # HP 9000/3xx running 4.4bsd
1316                 tm_file=m68k/hp3bsd44.h
1317                 xmake_file=m68k/x-hp3bsd44
1318                 use_collect2=yes
1319                 extra_headers=math-68881.h
1320                 ;;
1321         m68k-hp-bsd*)                   # HP 9000/3xx running Berkeley Unix
1322                 tm_file=m68k/hp3bsd.h
1323                 use_collect2=yes
1324                 extra_headers=math-68881.h
1325                 ;;
1326         m68k-isi-bsd*)
1327                 if [[ x$with_fp = xno ]]
1328                 then
1329                         tm_file=m68k/isi-nfp.h
1330                 else
1331                         tm_file=m68k/isi.h
1332                 fi
1333                 use_collect2=yes
1334                 extra_headers=math-68881.h
1335                 ;;
1336         m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1337                 xm_file=m68k/xm-hp320.h
1338                 if [[ x$gas = xyes ]]
1339                 then
1340                         xmake_file=m68k/x-hp320g
1341                         tm_file=m68k/hp320g.h
1342                 else
1343                         xmake_file=m68k/x-hp320
1344                         tm_file=m68k/hpux7.h
1345                 fi
1346                 install_headers_dir=install-headers-cpio
1347                 use_collect2=yes
1348                 extra_headers=math-68881.h
1349                 ;;
1350         m68k-hp-hpux*)  # HP 9000 series 300
1351                 xm_file=m68k/xm-hp320.h
1352                 if [[ x$gas = xyes ]]
1353                 then
1354                         xmake_file=m68k/x-hp320g
1355                         tm_file=m68k/hp320g.h
1356                 else
1357                         xmake_file=m68k/x-hp320
1358                         tm_file=m68k/hp320.h
1359                 fi
1360                 install_headers_dir=install-headers-cpio
1361                 use_collect2=yes
1362                 extra_headers=math-68881.h
1363                 ;;
1364         m68k-sun-mach*)
1365                 tm_file=m68k/sun3mach.h
1366                 use_collect2=yes
1367                 extra_headers=math-68881.h
1368                 ;;
1369         m68k-sony-newsos3*)
1370                 if [[ x$gas = xyes ]]
1371                 then
1372                         tm_file=m68k/news3gas.h
1373                 else
1374                         tm_file=m68k/news3.h
1375                 fi
1376                 use_collect2=yes
1377                 extra_headers=math-68881.h
1378                 ;;
1379         m68k-sony-bsd* | m68k-sony-newsos*)
1380                 if [[ x$gas = xyes ]]
1381                 then
1382                         tm_file=m68k/newsgas.h
1383                 else
1384                         tm_file=m68k/news.h
1385                 fi
1386                 use_collect2=yes
1387                 extra_headers=math-68881.h
1388                 ;;
1389         m68k-next-nextstep2*)
1390                 tm_file=m68k/next21.h
1391                 xm_file=m68k/xm-next.h
1392                 tmake_file=m68k/t-next
1393                 xmake_file=m68k/x-next
1394                 extra_objs=nextstep.o
1395                 extra_headers=math-68881.h
1396                 use_collect2=yes
1397                 ;;
1398         m68k-next-nextstep3*)
1399                 tm_file=m68k/next.h
1400                 xm_file=m68k/xm-next.h
1401                 tmake_file=m68k/t-next
1402                 xmake_file=m68k/x-next
1403                 extra_objs=nextstep.o
1404                 extra_headers=math-68881.h
1405                 if [[ x$enable_threads = xyes ]]; then
1406                         thread_file='mach'
1407                 fi
1408                 ;;
1409         m68k-sun-sunos3*)
1410                 if [[ x$with_fp = xno ]]
1411                 then
1412                         tm_file=m68k/sun3n3.h
1413                 else
1414                         tm_file=m68k/sun3o3.h
1415                 fi
1416                 use_collect2=yes
1417                 extra_headers=math-68881.h
1418                 ;;
1419         m68k-sun-sunos*)                        # For SunOS 4 (the default).
1420                 if [[ x$with_fp = xno ]]
1421                 then
1422                         tm_file=m68k/sun3n.h
1423                 else
1424                         tm_file=m68k/sun3.h
1425                 fi
1426                 xm_file=m68k/xm-sun3.h
1427                 use_collect2=yes
1428                 extra_headers=math-68881.h
1429                 ;;
1430         m68k-wrs-vxworks*)
1431                 tm_file=m68k/vxm68k.h
1432                 tmake_file=m68k/t-vxworks68
1433                 extra_headers=math-68881.h
1434                 ;;
1435         m68k-*-aout*)
1436                 tmake_file=m68k/t-m68kbare
1437                 tm_file="m68k/m68k-aout.h libgloss.h"
1438                 extra_headers=math-68881.h
1439                 ;;
1440         m68k-*-coff*)
1441                 tmake_file=m68k/t-m68kbare
1442                 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1443                 extra_headers=math-68881.h
1444                 ;;
1445         m68k-*-lynxos*)
1446                 if [[ x$gas = xyes ]]
1447                 then
1448                         tm_file=m68k/lynx.h
1449                 else
1450                         tm_file=m68k/lynx-ng.h
1451                 fi
1452                 xm_file=m68k/xm-lynx.h
1453                 xmake_file=x-lynx
1454                 tmake_file=m68k/t-lynx
1455                 extra_headers=math-68881.h
1456                 ;;
1457         m68k-*-netbsd*)
1458                 tm_file=m68k/netbsd.h
1459                 xm_file=m68k/xm-netbsd.h
1460                 # On NetBSD, the headers are already okay.
1461                 fixincludes=Makefile.in
1462                 tmake_file=t-netbsd
1463                 ;;
1464         m68k-*-sysv3*)                  # Motorola m68k's running system V.3
1465                 xm_file=m68k/xm-m68kv.h
1466                 xmake_file=m68k/x-m68kv
1467                 extra_parts="crtbegin.o crtend.o"
1468                 extra_headers=math-68881.h
1469                 ;;
1470         m68k-*-sysv4*)                  # Motorola m68k's running system V.4
1471                 tm_file=m68k/m68kv4.h
1472                 xm_file=m68k/xm-m68kv.h
1473                 tmake_file=t-svr4
1474                 extra_parts="crtbegin.o crtend.o"
1475                 extra_headers=math-68881.h
1476                 ;;
1477         m68k-*-linux-gnuaout*)          # Motorola m68k's running Linux
1478                 xm_file=m68k/xm-linux.h # with a.out format
1479                 xmake_file=x-linux
1480                 tm_file=m68k/linux-aout.h
1481                 tmake_file="t-linux-aout m68k/t-linux-aout"
1482                 fixincludes=Makefile.in #On Linux, the headers are ok already.
1483                 extra_headers=math-68881.h
1484                 gnu_ld=yes
1485                 ;;
1486         m68k-*-linux-gnulibc1)          # Motorola m68k's running Linux
1487                 xm_file=m68k/xm-linux.h # with ELF format using the
1488                 xmake_file=x-linux      # Linux C library 5
1489                 tm_file=m68k/linux.h
1490                 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1491                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1492                 fixincludes=Makefile.in #On Linux, the headers are ok already.
1493                 extra_headers=math-68881.h
1494                 gnu_ld=yes
1495                 ;;
1496         m68k-*-linux-gnu*)                      # Motorola m68k's running Linux
1497                 xm_file=m68k/xm-linux.h # with ELF format using glibc 2
1498                 xmake_file=x-linux      # aka the Linux C library 6.
1499                 tm_file=m68k/linux.h
1500                 tmake_file="t-linux m68k/t-linux"
1501                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1502                 fixincludes=Makefile.in #On Linux, the headers are ok already.
1503                 extra_headers=math-68881.h
1504                 gnu_ld=yes
1505                 if [[ x$enable_threads = xyes ]]; then
1506                         thread_file='posix'
1507                 fi
1508                 ;;
1509         m68k-*-psos*)
1510                 tmake_file=m68k/t-m68kbare
1511                 tm_file=m68k/m68k-psos.h
1512                 extra_headers=math-68881.h
1513                 ;;
1514         m68k-*-rtems*)
1515                 tmake_file="m68k/t-m68kbare t-rtems"
1516                 tm_file=m68k/rtems.h
1517                 extra_headers=math-68881.h
1518                 ;;
1519
1520         m88k-dg-dgux*)
1521                 case $machine in
1522                   m88k-dg-dguxbcs*)
1523                     tm_file=m88k/dguxbcs.h
1524                     tmake_file=m88k/t-dguxbcs
1525                     ;;
1526                   *)
1527                     tm_file=m88k/dgux.h
1528                     tmake_file=m88k/t-dgux
1529                     ;;
1530                 esac
1531                 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1532                 xmake_file=m88k/x-dgux
1533                 if [[ x$gas = xyes ]]
1534                 then
1535                         tmake_file=m88k/t-dgux-gas
1536                 fi
1537                 fixincludes=fixinc.dgux
1538                 ;;
1539         m88k-dolphin-sysv3*)
1540                 tm_file=m88k/dolph.h
1541                 extra_parts="crtbegin.o crtend.o"
1542                 xm_file=m88k/xm-sysv3.h
1543                 xmake_file=m88k/x-dolph
1544                 if [[ x$gas = xyes ]]
1545                 then
1546                         tmake_file=m88k/t-m88k-gas
1547                 fi
1548                 ;;
1549         m88k-tektronix-sysv3)
1550                 tm_file=m88k/tekXD88.h
1551                 extra_parts="crtbegin.o crtend.o"
1552                 xm_file=m88k/xm-sysv3.h
1553                 xmake_file=m88k/x-tekXD88
1554                 if [[ x$gas = xyes ]]
1555                 then
1556                         tmake_file=m88k/t-m88k-gas
1557                 fi
1558                 ;;
1559         m88k-*-aout*)
1560                 tm_file=m88k/m88k-aout.h
1561                 ;;
1562         m88k-*-coff*)
1563                 tm_file=m88k/m88k-coff.h
1564                 tmake_file=m88k/t-bug
1565                 ;;
1566         m88k-*-luna*)
1567                 tm_file=m88k/luna.h
1568                 extra_parts="crtbegin.o crtend.o"
1569                 if [[ x$gas = xyes ]]
1570                 then
1571                         tmake_file=m88k/t-luna-gas
1572                 else
1573                         tmake_file=m88k/t-luna
1574                 fi
1575                 ;;
1576         m88k-*-sysv3*)
1577                 tm_file=m88k/sysv3.h
1578                 extra_parts="crtbegin.o crtend.o"
1579                 xm_file=m88k/xm-sysv3.h
1580                 xmake_file=m88k/x-sysv3
1581                 if [[ x$gas = xyes ]]
1582                 then
1583                         tmake_file=m88k/t-m88k-gas
1584                 fi
1585                 ;;
1586         m88k-*-sysv4*)
1587                 tm_file=m88k/sysv4.h
1588                 extra_parts="crtbegin.o crtend.o"
1589                 xmake_file=m88k/x-sysv4
1590                 tmake_file=m88k/t-sysv4
1591                 ;;
1592         mips-sgi-irix6*)                # SGI System V.4., IRIX 6
1593                 tm_file=mips/iris6.h
1594                 xm_file=mips/xm-iris6.h
1595                 fixincludes=fixinc.irix
1596                 xmake_file=mips/x-iris6
1597                 tmake_file=mips/t-iris6
1598                 if [[ x$enable_threads = xyes ]]; then
1599                         thread_file='irix'
1600                 fi
1601                 ;;
1602         mips-sgi-irix5cross64)          # Irix5 host, Irix 6 target, cross64
1603                 tm_file=mips/cross64.h
1604                 xm_file=mips/xm-iris5.h
1605                 fixincludes=Makefile.in
1606                 xmake_file=mips/x-iris
1607                 tmake_file=mips/t-cross64
1608                 # See comment in mips/iris[56].h files.
1609                 use_collect2=yes
1610                 if [[ x$enable_threads = xyes ]]; then
1611                         thread_file='irix'
1612                 fi
1613                 ;;
1614         mips-sni-sysv4)
1615                 if [[ x$gas = xyes ]]
1616                 then
1617                         if [[ x$stabs = xyes ]]
1618                         then
1619                                 tm_file=mips/iris5gdb.h
1620                         else
1621                                 tm_file=mips/sni-gas.h
1622                         fi
1623                 else
1624                         tm_file=mips/sni-svr4.h
1625                 fi
1626                 xm_file=mips/xm-sysv.h
1627                 xmake_file=mips/x-sni-svr4
1628                 tmake_file=mips/t-mips-gas
1629                 if [[ x$gnu_ld != xyes ]]
1630                 then
1631                         use_collect2=yes
1632                 fi
1633                 ;;
1634         mips-sgi-irix5*)                # SGI System V.4., IRIX 5
1635                 if [[ x$gas = xyes ]]
1636                 then
1637                         tm_file=mips/iris5gas.h
1638                         if [[ x$stabs = xyes ]]
1639                         then
1640                                 tm_file="${tm_file} dbx.h"
1641                         fi
1642                 else
1643                         tm_file=mips/iris5.h
1644                 fi
1645                 xm_file=mips/xm-iris5.h
1646                 fixincludes=fixinc.irix
1647                 xmake_file=mips/x-iris
1648                 # mips-tfile doesn't work yet
1649                 tmake_file=mips/t-mips-gas
1650                 # See comment in mips/iris5.h file.
1651                 use_collect2=yes
1652                 if [[ x$enable_threads = xyes ]]; then
1653                         thread_file='irix'
1654                 fi
1655                 ;;
1656         mips-sgi-irix4loser*)           # Mostly like a MIPS.
1657                 tm_file=mips/iris4loser.h
1658                 if [[ x$stabs = xyes ]]; then
1659                         tm_file="${tm_file} dbx.h"
1660                 fi
1661                 xm_file=mips/xm-iris4.h
1662                 xmake_file=mips/x-iris
1663                 if [[ x$gas = xyes ]]
1664                 then
1665                         tmake_file=mips/t-mips-gas
1666                 else
1667                         extra_passes="mips-tfile mips-tdump"
1668                 fi
1669                 if [[ x$gnu_ld != xyes ]]
1670                 then
1671                         use_collect2=yes
1672                 fi
1673                 if [[ x$enable_threads = xyes ]]; then
1674                         thread_file='irix'
1675                 fi
1676                 ;;
1677         mips-sgi-irix4*)                # Mostly like a MIPS.
1678                 tm_file=mips/iris4.h
1679                 if [[ x$stabs = xyes ]]; then
1680                         tm_file="${tm_file} dbx.h"
1681                 fi
1682                 xm_file=mips/xm-iris4.h
1683                 xmake_file=mips/x-iris
1684                 if [[ x$gas = xyes ]]
1685                 then
1686                         tmake_file=mips/t-mips-gas
1687                 else
1688                         extra_passes="mips-tfile mips-tdump"
1689                 fi
1690                 if [[ x$gnu_ld != xyes ]]
1691                 then
1692                         use_collect2=yes
1693                 fi
1694                 if [[ x$enable_threads = xyes ]]; then
1695                         thread_file='irix'
1696                 fi
1697                 ;;
1698         mips-sgi-*)                     # Mostly like a MIPS.
1699                 tm_file=mips/iris3.h
1700                 if [[ x$stabs = xyes ]]; then
1701                         tm_file="${tm_file} dbx.h"
1702                 fi
1703                 xm_file=mips/xm-iris3.h
1704                 xmake_file=mips/x-iris3
1705                 if [[ x$gas = xyes ]]
1706                 then
1707                         tmake_file=mips/t-mips-gas
1708                 else
1709                         extra_passes="mips-tfile mips-tdump"
1710                 fi
1711                 if [[ x$gnu_ld != xyes ]]
1712                 then
1713                         use_collect2=yes
1714                 fi
1715                 ;;
1716         mips-dec-osfrose*)              # Decstation running OSF/1 reference port with OSF/rose.
1717                 tm_file=mips/osfrose.h
1718                 xmake_file=mips/x-osfrose
1719                 tmake_file=mips/t-osfrose
1720                 extra_objs=halfpic.o
1721                 use_collect2=yes
1722                 ;;
1723         mips-dec-osf*)                  # Decstation running OSF/1 as shipped by DIGITAL
1724                 tm_file=mips/dec-osf1.h
1725                 if [[ x$stabs = xyes ]]; then
1726                         tm_file="${tm_file} dbx.h"
1727                 fi
1728                 xmake_file=mips/x-dec-osf1
1729                 if [[ x$gas = xyes ]]
1730                 then
1731                         tmake_file=mips/t-mips-gas
1732                 else
1733                         tmake_file=mips/t-ultrix
1734                         extra_passes="mips-tfile mips-tdump"
1735                 fi
1736                 if [[ x$gnu_ld != xyes ]]
1737                 then
1738                         use_collect2=yes
1739                 fi
1740                 ;;
1741         mips-dec-bsd*)                  # Decstation running 4.4 BSD
1742               tm_file=mips/dec-bsd.h
1743               fixincludes=
1744               if [[ x$gas = xyes ]]
1745               then
1746                         tmake_file=mips/t-mips-gas
1747               else
1748                         tmake_file=mips/t-ultrix
1749                         extra_passes="mips-tfile mips-tdump"
1750               fi
1751               if [[ x$gnu_ld != xyes ]]
1752               then
1753                         use_collect2=yes
1754               fi
1755               ;;
1756         mips-dec-netbsd*)                  # Decstation running NetBSD
1757                 tm_file=mips/netbsd.h
1758                 xm_file=mips/xm-netbsd.h
1759                 # On NetBSD, the headers are already okay.
1760                 fixincludes=Makefile.in
1761                 tmake_file=t-netbsd
1762                 if [[ x$prefix = xNONE ]]; then
1763                         prefix=$native_prefix
1764                 fi
1765                 prefix=$native_prefix
1766                 ;;
1767         mips-sony-bsd* | mips-sony-newsos*)     # Sony NEWS 3600 or risc/news.
1768                 tm_file=mips/news4.h
1769                 if [[ x$stabs = xyes ]]; then
1770                         tm_file="${tm_file} dbx.h"
1771                 fi
1772                 if [[ x$gas = xyes ]]
1773                 then
1774                         tmake_file=mips/t-mips-gas
1775                 else
1776                         extra_passes="mips-tfile mips-tdump"
1777                 fi
1778                 if [[ x$gnu_ld != xyes ]]
1779                 then
1780                         use_collect2=yes
1781                 fi
1782                 xmake_file=mips/x-sony
1783                 ;;
1784         mips-sony-sysv*)                # Sony NEWS 3800 with NEWSOS5.0.
1785                                         # That is based on svr4.
1786                 # t-svr4 is not right because this system doesn't use ELF.
1787                 tm_file=mips/news5.h
1788                 if [[ x$stabs = xyes ]]; then
1789                         tm_file="${tm_file} dbx.h"
1790                 fi
1791                 xm_file=mips/xm-news.h
1792                 if [[ x$gas = xyes ]]
1793                 then
1794                         tmake_file=mips/t-mips-gas
1795                 else
1796                         extra_passes="mips-tfile mips-tdump"
1797                 fi
1798                 if [[ x$gnu_ld != xyes ]]
1799                 then
1800                         use_collect2=yes
1801                 fi
1802                 ;;
1803         mips-tandem-sysv4*)             # Tandem S2 running NonStop UX
1804                 tm_file=mips/svr4-t.h
1805                 if [[ x$stabs = xyes ]]; then
1806                         tm_file="${tm_file} dbx.h"
1807                 fi
1808                 xm_file=mips/xm-sysv4.h
1809                 xmake_file=mips/x-sysv
1810                 if [[ x$gas = xyes ]]
1811                 then
1812                         tmake_file=mips/t-mips-gas
1813                         extra_parts="crtbegin.o crtend.o"
1814                 else
1815                         tmake_file=mips/t-mips
1816                         extra_passes="mips-tfile mips-tdump"
1817                 fi
1818                 if [[ x$gnu_ld != xyes ]]
1819                 then
1820                         use_collect2=yes
1821                 fi
1822                 ;;
1823         mips-*-ultrix* | mips-dec-mach3)        # Decstation.
1824                 tm_file=mips/ultrix.h
1825                 if [[ x$stabs = xyes ]]; then
1826                         tm_file="${tm_file} dbx.h"
1827                 fi
1828                 xmake_file=mips/x-ultrix
1829                 if [[ x$gas = xyes ]]
1830                 then
1831                         tmake_file=mips/t-mips-gas
1832                 else
1833                         tmake_file=mips/t-ultrix
1834                         extra_passes="mips-tfile mips-tdump"
1835                 fi
1836                 if [[ x$gnu_ld != xyes ]]
1837                 then
1838                         use_collect2=yes
1839                 fi
1840                 ;;
1841         mips-*-riscos[[56789]]bsd*)
1842                 tm_file=mips/bsd-5.h    # MIPS BSD 4.3, RISC-OS 5.0
1843                 if [[ x$stabs = xyes ]]; then
1844                         tm_file="${tm_file} dbx.h"
1845                 fi
1846                 if [[ x$gas = xyes ]]
1847                 then
1848                         tmake_file=mips/t-bsd-gas
1849                 else
1850                         tmake_file=mips/t-bsd
1851                         extra_passes="mips-tfile mips-tdump"
1852                 fi
1853                 if [[ x$gnu_ld != xyes ]]
1854                 then
1855                         use_collect2=yes
1856                 fi
1857                 ;;
1858         mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1859                 tm_file=mips/bsd-4.h    # MIPS BSD 4.3, RISC-OS 4.0
1860                 if [[ x$stabs = xyes ]]; then
1861                         tm_file="${tm_file} dbx.h"
1862                 fi
1863                 if [[ x$gas = xyes ]]
1864                 then
1865                         tmake_file=mips/t-bsd-gas
1866                 else
1867                         tmake_file=mips/t-bsd
1868                         extra_passes="mips-tfile mips-tdump"
1869                 fi
1870                 if [[ x$gnu_ld != xyes ]]
1871                 then
1872                         use_collect2=yes
1873                 fi
1874                 ;;
1875         mips-*-riscos[[56789]]sysv4*)
1876                 tm_file=mips/svr4-5.h   # MIPS System V.4., RISC-OS 5.0
1877                 if [[ x$stabs = xyes ]]; then
1878                         tm_file="${tm_file} dbx.h"
1879                 fi
1880                 xm_file=mips/xm-sysv4.h
1881                 xmake_file=mips/x-sysv
1882                 if [[ x$gas = xyes ]]
1883                 then
1884                         tmake_file=mips/t-svr4-gas
1885                 else
1886                         tmake_file=mips/t-svr4
1887                         extra_passes="mips-tfile mips-tdump"
1888                 fi
1889                 if [[ x$gnu_ld != xyes ]]
1890                 then
1891                         use_collect2=yes
1892                 fi
1893                 ;;
1894         mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
1895                 tm_file=mips/svr4-4.h   # MIPS System V.4. RISC-OS 4.0
1896                 if [[ x$stabs = xyes ]]; then
1897                         tm_file="${tm_file} dbx.h"
1898                 fi
1899                 xm_file=mips/xm-sysv.h
1900                 xmake_file=mips/x-sysv
1901                 if [[ x$gas = xyes ]]
1902                 then
1903                         tmake_file=mips/t-svr4-gas
1904                 else
1905                         tmake_file=mips/t-svr4
1906                         extra_passes="mips-tfile mips-tdump"
1907                 fi
1908                 if [[ x$gnu_ld != xyes ]]
1909                 then
1910                         use_collect2=yes
1911                 fi
1912                 ;;
1913         mips-*-riscos[[56789]]sysv*)
1914                 tm_file=mips/svr3-5.h   # MIPS System V.3, RISC-OS 5.0
1915                 if [[ x$stabs = xyes ]]; then
1916                         tm_file="${tm_file} dbx.h"
1917                 fi
1918                 xm_file=mips/xm-sysv.h
1919                 xmake_file=mips/x-sysv
1920                 if [[ x$gas = xyes ]]
1921                 then
1922                         tmake_file=mips/t-svr3-gas
1923                 else
1924                         tmake_file=mips/t-svr3
1925                         extra_passes="mips-tfile mips-tdump"
1926                 fi
1927                 if [[ x$gnu_ld != xyes ]]
1928                 then
1929                         use_collect2=yes
1930                 fi
1931                 ;;
1932         mips-*-sysv* | mips-*-riscos*sysv*)
1933                 tm_file=mips/svr3-4.h   # MIPS System V.3, RISC-OS 4.0
1934                 if [[ x$stabs = xyes ]]; then
1935                         tm_file="${tm_file} dbx.h"
1936                 fi
1937                 xm_file=mips/xm-sysv.h
1938                 xmake_file=mips/x-sysv
1939                 if [[ x$gas = xyes ]]
1940                 then
1941                         tmake_file=mips/t-svr3-gas
1942                 else
1943                         tmake_file=mips/t-svr3
1944                         extra_passes="mips-tfile mips-tdump"
1945                 fi
1946                 if [[ x$gnu_ld != xyes ]]
1947                 then
1948                         use_collect2=yes
1949                 fi
1950                 ;;
1951         mips-*-riscos[[56789]]*)                # Default MIPS RISC-OS 5.0.
1952                 tm_file=mips/mips-5.h
1953                 if [[ x$stabs = xyes ]]; then
1954                         tm_file="${tm_file} dbx.h"
1955                 fi
1956                 if [[ x$gas = xyes ]]
1957                 then
1958                         tmake_file=mips/t-mips-gas
1959                 else
1960                         extra_passes="mips-tfile mips-tdump"
1961                 fi
1962                 if [[ x$gnu_ld != xyes ]]
1963                 then
1964                         use_collect2=yes
1965                 fi
1966                 ;;
1967         mips-*-gnu*)
1968                 ;;
1969         mipsel-*-ecoff*)
1970                 tm_file=mips/ecoffl.h
1971                 if [[ x$stabs = xyes ]]; then
1972                         tm_file="${tm_file} dbx.h"
1973                 fi
1974                 tmake_file=mips/t-ecoff
1975                 ;;
1976         mips-*-ecoff*)
1977                 tm_file=mips/ecoff.h
1978                 if [[ x$stabs = xyes ]]; then
1979                         tm_file="${tm_file} dbx.h"
1980                 fi
1981                 tmake_file=mips/t-ecoff
1982                 ;;
1983         mipsel-*-elf*)
1984                 tm_file="mips/elfl.h libgloss.h"
1985                 tmake_file=mips/t-ecoff
1986                 ;;
1987         mips-*-elf*)
1988                 tm_file="mips/elf.h libgloss.h"
1989                 tmake_file=mips/t-ecoff
1990                 ;;
1991         mips64el-*-elf*)
1992                 tm_file="mips/elfl64.h libgloss.h"
1993                 tmake_file=mips/t-ecoff
1994                 ;;
1995         mips64orionel-*-elf*)
1996                 tm_file="mips/elflorion.h libgloss.h"
1997                 tmake_file=mips/t-ecoff
1998                 ;;
1999         mips64-*-elf*)
2000                 tm_file="mips/elf64.h libgloss.h"
2001                 tmake_file=mips/t-ecoff
2002                 ;;
2003         mips64orion-*-elf*)
2004                 tm_file="mips/elforion.h libgloss.h"
2005                 tmake_file=mips/t-ecoff
2006                 ;;
2007         mips64orion-*-rtems*)
2008                 tm_file=mips/rtems64.h
2009                 tmake_file="mips/t-ecoff t-rtems"
2010                 ;;
2011         mips-*-*)                               # Default MIPS RISC-OS 4.0.
2012                 if [[ x$stabs = xyes ]]; then
2013                         tm_file="${tm_file} dbx.h"
2014                 fi
2015                 if [[ x$gas = xyes ]]
2016                 then
2017                         tmake_file=mips/t-mips-gas
2018                 else
2019                         extra_passes="mips-tfile mips-tdump"
2020                 fi
2021                 if [[ x$gnu_ld != xyes ]]
2022                 then
2023                         use_collect2=yes
2024                 fi
2025                 ;;
2026         mn10200-*-*)
2027                 cpu_type=mn10200
2028                 tm_file="mn10200/mn10200.h"
2029                 if [[ x$stabs = xyes ]]
2030                 then
2031                         tm_file="${tm_file} dbx.h"
2032                 fi
2033                 use_collect2=no
2034                 ;;
2035         mn10300-*-*)
2036                 cpu_type=mn10300
2037                 tm_file="mn10300/mn10300.h"
2038                 if [[ x$stabs = xyes ]]
2039                 then
2040                         tm_file="${tm_file} dbx.h"
2041                 fi
2042                 use_collect2=no
2043                 ;;
2044         ns32k-encore-bsd*)
2045                 tm_file=ns32k/encore.h
2046                 use_collect2=yes
2047                 ;;
2048         ns32k-sequent-bsd*)
2049                 tm_file=ns32k/sequent.h
2050                 use_collect2=yes
2051                 ;;
2052         ns32k-tek6100-bsd*)
2053                 tm_file=ns32k/tek6100.h
2054                 use_collect2=yes
2055                 ;;
2056         ns32k-tek6200-bsd*)
2057                 tm_file=ns32k/tek6200.h
2058                 use_collect2=yes
2059                 ;;
2060 # This has not been updated to GCC 2.
2061 #       ns32k-ns-genix*)
2062 #               xm_file=ns32k/xm-genix.h
2063 #               xmake_file=ns32k/x-genix
2064 #               tm_file=ns32k/genix.h
2065 #               use_collect2=yes
2066 #               ;;
2067         ns32k-merlin-*)
2068                 tm_file=ns32k/merlin.h
2069                 use_collect2=yes
2070                 ;;
2071         ns32k-pc532-mach*)
2072                 tm_file=ns32k/pc532-mach.h
2073                 use_collect2=yes
2074                 ;;
2075         ns32k-pc532-minix*)
2076                 tm_file=ns32k/pc532-min.h
2077                 xm_file=ns32k/xm-pc532-min.h
2078                 use_collect2=yes
2079                 ;;
2080         ns32k-pc532-netbsd*)
2081                 tm_file=ns32k/netbsd.h
2082                 xm_file=ns32k/xm-netbsd.h
2083                 # On NetBSD, the headers are already okay.
2084                 fixincludes=Makefile.in
2085                 tmake_file=t-netbsd
2086                 ;;
2087         pdp11-*-bsd)
2088                 tm_file="${tm_file} pdp11/2bsd.h"
2089                 ;;
2090         pdp11-*-*)
2091                 ;;
2092         pyramid-*-*)
2093                 cpu_type=pyr
2094                 xmake_file=pyr/x-pyr
2095                 use_collect2=yes
2096                 ;;
2097         romp-*-aos*)
2098                 use_collect2=yes
2099                 ;;
2100         romp-*-mach*)
2101                 xmake_file=romp/x-mach
2102                 use_collect2=yes
2103                 ;;
2104         powerpc-*-sysv* | powerpc-*-elf*)
2105                 tm_file=rs6000/sysv4.h
2106                 xm_file=rs6000/xm-sysv4.h
2107                 extra_headers=ppc-asm.h
2108                 if [[ x$gas = xyes ]]
2109                 then
2110                         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2111                 else
2112                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2113                 fi
2114                 xmake_file=rs6000/x-sysv4
2115                 ;;
2116         powerpc-*-eabiaix*)
2117                 tm_file=rs6000/eabiaix.h
2118                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2119                 fixincludes=Makefile.in
2120                 extra_headers=ppc-asm.h
2121                 ;;
2122         powerpc-*-eabisim*)
2123                 tm_file=rs6000/eabisim.h
2124                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2125                 fixincludes=Makefile.in
2126                 extra_headers=ppc-asm.h
2127                 ;;
2128         powerpc-*-eabi*)
2129                 tm_file=rs6000/eabi.h
2130                 if [[ x$gas = xyes ]]
2131                 then
2132                         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2133                 else
2134                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2135                 fi
2136                 fixincludes=Makefile.in
2137                 extra_headers=ppc-asm.h
2138                 ;;
2139         powerpc-*-rtems*)
2140                 tm_file=rs6000/rtems.h
2141                 if [[ x$gas = xyes ]]
2142                 then
2143                      tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2144                 else
2145                      tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2146                 fi
2147                 fixincludes=Makefile.in
2148                 extra_headers=ppc-asm.h
2149                 ;;
2150         powerpc-*-linux-gnu*)
2151                 tm_file=rs6000/linux.h
2152                 xm_file=rs6000/xm-sysv4.h
2153                 out_file=rs6000/rs6000.c
2154                 if [[ x$gas = xyes ]]
2155                 then
2156                         tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2157                 else
2158                         tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2159                 fi
2160                 xmake_file=x-linux
2161                 fixincludes=Makefile.in
2162                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2163                 extra_headers=ppc-asm.h
2164                 if [[ x$enable_threads = xyes ]]; then
2165                         thread_file='posix'
2166                 fi
2167                 ;;
2168         powerpc-*-vxworks*)
2169                 cpu_type=rs6000
2170                 xm_file=rs6000/xm-sysv4.h
2171                 tm_file=rs6000/vxppc.h
2172                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2173                 extra_headers=ppc-asm.h
2174                 ;;
2175         powerpcle-*-sysv* | powerpcle-*-elf*)
2176                 tm_file=rs6000/sysv4le.h
2177                 xm_file=rs6000/xm-sysv4.h
2178                 if [[ x$gas = xyes ]]
2179                 then
2180                         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2181                 else
2182                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2183                 fi
2184                 xmake_file=rs6000/x-sysv4
2185                 extra_headers=ppc-asm.h
2186                 ;;
2187         powerpcle-*-eabisim*)
2188                 tm_file=rs6000/eabilesim.h
2189                 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2190                 fixincludes=Makefile.in
2191                 extra_headers=ppc-asm.h
2192                 ;;
2193         powerpcle-*-eabi*)
2194                 tm_file=rs6000/eabile.h
2195                 if [[ x$gas = xyes ]]
2196                 then
2197                         tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2198                 else
2199                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2200                 fi
2201                 fixincludes=Makefile.in
2202                 extra_headers=ppc-asm.h
2203                 ;;
2204         powerpcle-*-winnt* )
2205                 tm_file=rs6000/win-nt.h
2206                 tmake_file=rs6000/t-winnt
2207 #               extra_objs=pe.o
2208                 fixincludes=Makefile.in
2209                 if [[ x$enable_threads = xyes ]]; then
2210                         thread_file='win32'
2211                 fi
2212                 extra_headers=ppc-asm.h
2213                 ;;
2214         powerpcle-*-pe | powerpcle-*-cygwin32)
2215                 tm_file=rs6000/cygwin32.h
2216                 xm_file=rs6000/xm-cygwin32.h
2217                 tmake_file=rs6000/t-winnt
2218                 xmake_file=rs6000/x-cygwin32
2219 #               extra_objs=pe.o
2220                 fixincludes=Makefile.in
2221                 if [[ x$enable_threads = xyes ]]; then
2222                         thread_file='win32'
2223                 fi
2224                 exeext=.exe
2225                 extra_headers=ppc-asm.h
2226                 ;;
2227         powerpcle-*-solaris2*)
2228                 tm_file=rs6000/sol2.h
2229                 xm_file=rs6000/xm-sysv4.h
2230                 if [[ x$gas = xyes ]]
2231                 then
2232                         tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2233                 else
2234                         tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2235                 fi
2236                 xmake_file=rs6000/x-sysv4
2237                 fixincludes=fixinc.svr4
2238                 extra_headers=ppc-asm.h
2239                 ;;
2240         rs6000-ibm-aix3.[[01]]*)
2241                 tm_file=rs6000/aix31.h
2242                 xmake_file=rs6000/x-aix31
2243                 use_collect2=yes
2244                 ;;
2245         rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2246                 tm_file=rs6000/aix3newas.h
2247                 if [[ x$host != x$target ]]
2248                 then
2249                         tmake_file=rs6000/t-xnewas
2250                 else
2251                         tmake_file=rs6000/t-newas
2252                 fi
2253                 use_collect2=yes
2254                 ;;
2255         rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2256                 tm_file=rs6000/aix41.h
2257                 if [[ x$host != x$target ]]
2258                 then
2259                         tmake_file=rs6000/t-xnewas
2260                 else
2261                         tmake_file=rs6000/t-newas
2262                 fi
2263                 xmake_file=rs6000/x-aix31
2264                 use_collect2=yes
2265                 ;;
2266         rs6000-ibm-aix*)
2267                 use_collect2=yes
2268                 ;;
2269         rs6000-bull-bosx)
2270                 use_collect2=yes
2271                 ;;
2272         rs6000-*-mach*)
2273                 tm_file=rs6000/mach.h
2274                 xm_file=rs6000/xm-mach.h
2275                 xmake_file=rs6000/x-mach
2276                 use_collect2=yes
2277                 ;;
2278         rs6000-*-lynxos*)
2279                 tm_file=rs6000/lynx.h
2280                 xm_file=rs6000/xm-lynx.h
2281                 tmake_file=rs6000/t-rs6000
2282                 xmake_file=rs6000/x-lynx
2283                 use_collect2=yes
2284                 ;;
2285         sh-*-elf*)
2286                 tm_file=sh/elf.h
2287                 float_format=sh
2288                 ;;
2289         sh-*-rtems*)
2290                 tmake_file="sh/t-sh t-rtems"
2291                 tm_file=sh/rtems.h
2292                 float_format=sh
2293                 ;;
2294         sh-*-*)
2295                 float_format=sh
2296                 ;;
2297         sparc-tti-*)
2298                 tm_file=sparc/pbd.h
2299                 xm_file=sparc/xm-pbd.h
2300                 ;;
2301         sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2302                 tm_file=sparc/vxsparc.h
2303                 tmake_file=sparc/t-vxsparc
2304                 use_collect2=yes
2305                 ;;
2306         sparc-*-aout*)
2307                 tmake_file=sparc/t-sparcbare
2308                 tm_file="sparc/aout.h libgloss.h"
2309                 ;;
2310         sparc-*-netbsd*)
2311                 tm_file=sparc/netbsd.h
2312                 xm_file=sparc/xm-netbsd.h
2313                 # On NetBSD, the headers are already okay.
2314                 fixincludes=Makefile.in
2315                 tmake_file=t-netbsd
2316                 ;;
2317         sparc-*-bsd*)
2318                 tm_file=sparc/bsd.h
2319                 ;;
2320         sparc-*-linux-gnuaout*)         # Sparc's running Linux, a.out
2321                 xm_file=sparc/xm-linux.h
2322                 tm_file=sparc/linux-aout.h
2323                 xmake_file=x-linux
2324                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2325                 gnu_ld=yes
2326                 ;;
2327         sparc-*-linux-gnulibc1*)                 # Sparc's running Linux
2328                 xm_file=sparc/xm-linux.h # with ELF format using the
2329                 xmake_file=x-linux       # Linux C library 5.
2330                 tm_file=sparc/linux.h
2331                 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
2332                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2333                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2334                 gnu_ld=yes
2335                 ;;
2336         sparc-*-linux-gnu*)                      # Sparc's running Linux
2337                 xm_file=sparc/xm-linux.h # with ELF format using glibc 2
2338                 xmake_file=x-linux       # aka the Linux C library 6.
2339                 tm_file=sparc/linux.h
2340                 tmake_file="t-linux sparc/t-linux"
2341                 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2342                 fixincludes=Makefile.in #On Linux, the headers are ok already.
2343                 gnu_ld=yes
2344                 if [[ x$enable_threads = xyes ]]; then
2345                         thread_file='posix'
2346                 fi
2347                 ;;
2348         sparc-*-lynxos*)
2349                 if [[ x$gas = xyes ]]
2350                 then
2351                         tm_file=sparc/lynx.h
2352                 else
2353                         tm_file=sparc/lynx-ng.h
2354                 fi
2355                 xm_file=sparc/xm-lynx.h
2356                 tmake_file=sparc/t-sunos41
2357                 xmake_file=x-lynx
2358                 ;;
2359         sparc-*-rtems*)
2360                 tmake_file="sparc/t-sparcbare t-rtems"
2361                 tm_file=sparc/rtems.h
2362                 ;;
2363         sparc-*-solaris2*)
2364                 tm_file=sparc/sol2.h
2365                 xm_file=sparc/xm-sol2.h
2366                 tmake_file=sparc/t-sol2
2367                 xmake_file=sparc/x-sysv4
2368                 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2369                 fixincludes=fixinc.svr4
2370                 if [[ x$enable_threads = xyes ]]; then
2371                         thread_file='solaris'
2372                 fi
2373                 ;;
2374         sparc-*-sunos4.0*)
2375                 tm_file=sparc/sunos4.h
2376                 tmake_file=sparc/t-sunos40
2377                 use_collect2=yes
2378                 ;;
2379         sparc-*-sunos4*)
2380                 tm_file=sparc/sunos4.h
2381                 tmake_file=sparc/t-sunos41
2382                 use_collect2=yes
2383                 ;;
2384         sparc-*-sunos3*)
2385                 tm_file=sparc/sun4o3.h
2386                 use_collect2=yes
2387                 ;;
2388         sparc-*-sysv4*)
2389                 tm_file=sparc/sysv4.h
2390                 xm_file=sparc/xm-sysv4.h
2391                 tmake_file=t-svr4
2392                 xmake_file=sparc/x-sysv4
2393                 extra_parts="crtbegin.o crtend.o"
2394                 ;;
2395         sparc-*-vxsim*)
2396                 xm_file=sparc/xm-sol2.h
2397                 tm_file=sparc/vxsim.h
2398                 tmake_file=sparc/t-vxsparc
2399                 xmake_file=sparc/x-sysv4
2400                 ;;
2401         sparclet-*-aout*)
2402                 tm_file="sparc/splet.h libgloss.h"
2403                 tmake_file=sparc/t-splet
2404                 ;;
2405         sparclite-*-coff*)
2406                 tm_file="sparc/litecoff.h libgloss.h"
2407                 tmake_file=sparc/t-sparclite
2408                 ;;
2409         sparclite-*-aout*)
2410                 tm_file="sparc/lite.h aoutos.h libgloss.h"
2411                 tmake_file=sparc/t-sparclite
2412                 ;;
2413         sparc64-*-aout*)
2414                 tmake_file=sparc/t-sp64
2415                 tm_file=sparc/sp64-aout.h
2416                 ;;
2417         sparc64-*-elf*)
2418                 tmake_file=sparc/t-sp64
2419                 tm_file=sparc/sp64-elf.h
2420                 extra_parts="crtbegin.o crtend.o"
2421                 ;;
2422 # This hasn't been upgraded to GCC 2.
2423 #       tahoe-harris-*)                 # Harris tahoe, using COFF.
2424 #               tm_file=tahoe/harris.h
2425 #               ;;
2426 #       tahoe-*-bsd*)                   # tahoe running BSD
2427 #               ;;
2428 # This hasn't been upgraded to GCC 2.
2429 #       tron-*-*)
2430 #               cpu_type=gmicro
2431 #               use_collect2=yes
2432 #               ;;
2433         vax-*-bsd*)                     # vaxen running BSD
2434                 use_collect2=yes
2435                 float_format=vax
2436                 ;;
2437         vax-*-sysv*)                    # vaxen running system V
2438                 tm_file="${tm_file} vax/vaxv.h"
2439                 xm_file="${tm_file} vax/xm-vaxv.h"
2440                 float_format=vax
2441                 ;;
2442         vax-*-netbsd*)
2443                 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2444                 xm_file="${xm_file} xm-netbsd.h"
2445                 # On NetBSD, the headers are already okay.
2446                 fixincludes=Makefile.in
2447                 tmake_file=t-netbsd
2448                 float_format=vax
2449                 ;;
2450         vax-*-ultrix*)                  # vaxen running ultrix
2451                 tm_file="${tm_file} vax/ultrix.h"
2452                 use_collect2=yes
2453                 float_format=vax
2454                 ;;
2455         vax-*-vms*)                     # vaxen running VMS
2456                 xm_file=vax/xm-vms.h
2457                 tm_file=vax/vms.h
2458                 float_format=vax
2459                 ;;
2460         vax-*-*)                        # vax default entry
2461                 float_format=vax
2462                 ;;
2463         we32k-att-sysv*)
2464                 xm_file="${xm_file} xm-svr3"
2465                 use_collect2=yes
2466                 ;;
2467         *)
2468                 echo "Configuration $machine not supported" 1>&2
2469                 exit 1
2470                 ;;
2471         esac
2472
2473         case $machine in
2474         *-*-linux-gnu*)
2475                 ;; # Existing Linux/GNU systems do not use the GNU setup.
2476         *-*-gnu*)
2477                 # On the GNU system, the setup is just about the same on
2478                 # each different CPU.  The specific machines that GNU
2479                 # supports are matched above and just set $cpu_type.
2480                 xm_file=${cpu_type}/xm-gnu.h
2481                 tm_file=${cpu_type}/gnu.h
2482                 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2483                 # GNU always uses ELF.
2484                 elf=yes
2485                 # GNU tools are the only tools.
2486                 gnu_ld=yes
2487                 gas=yes
2488                 # On GNU, the headers are already okay.
2489                 fixincludes=Makefile.in
2490                 xmake_file=x-linux      # These details are the same as Linux.
2491                 tmake_file=t-gnu        # These are not.
2492                 ;;
2493         *-*-sysv4*)
2494                 fixincludes=fixinc.svr4
2495                 xmake_try_sysv=x-sysv
2496                 install_headers_dir=install-headers-cpio
2497                 ;;
2498         *-*-sysv*)
2499                 install_headers_dir=install-headers-cpio
2500                 ;;
2501         esac
2502
2503         # Distinguish i[3456]86
2504         # Also, do not run mips-tfile on MIPS if using gas.
2505         # Process --with-cpu= for PowerPC/rs6000
2506         target_cpu_default2=
2507         case $machine in
2508         i486-*-*)
2509                 target_cpu_default2=1
2510                 ;;
2511         i586-*-*)
2512                 target_cpu_default2=2
2513                 ;;
2514         i686-*-*)
2515                 target_cpu_default2=3
2516                 ;;
2517         alpha*-*-*)
2518                 case $machine in
2519                         alphaev56*)
2520                                 target_cpu_default2="MASK_CPU_EV5|MASK_BYTE_OPS"
2521                                 ;;
2522                         alphaev5*)
2523                                 target_cpu_default2="MASK_CPU_EV5"
2524                                 ;;
2525                 esac
2526                                 
2527                 if [[ x$gas = xyes ]]
2528                 then
2529                         if [[ x$target_cpu_default2 = x ]]
2530                         then
2531                                 target_cpu_default2="MASK_GAS"
2532                         else
2533                                 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2534                         fi
2535                 fi
2536                 ;;
2537         mips*-*-ecoff* | mips*-*-elf*)
2538                 if [[ x$gas = xyes ]]
2539                 then
2540                         if [[ x$gnu_ld = xyes ]]
2541                         then
2542                                 target_cpu_default2=20
2543                         else
2544                                 target_cpu_default2=16
2545                         fi
2546                 fi
2547                 ;;
2548         mips*-*-*)
2549                 if [[ x$gas = xyes ]]
2550                 then
2551                         target_cpu_default2=16
2552                 fi
2553                 ;;
2554         powerpc*-*-* | rs6000-*-*)
2555                 case "x$with_cpu" in
2556                         x)
2557                                 ;;
2558
2559                         xcommon | xpower | xpower2 | xpowerpc | xrios \
2560                           | xrios1 | xrios2 | xrsc | xrsc1 \
2561                           | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2562                           | x403 | x505 | x801 | x821 | x823 | x860)
2563                                 target_cpu_default2="\"$with_cpu\""
2564                                 ;;
2565
2566                         xyes | xno)
2567                                 echo "--with-cpu must be passed a value" 1>&2
2568                                 exit 1
2569                                 ;;
2570
2571                         *)
2572                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2573                                 exit 1
2574                                 ;;
2575                 esac
2576                 ;;
2577         sparc*-*-*)
2578                 case ".$with_cpu" in
2579                         .)
2580                                 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2581                                 ;;
2582                         .supersparc | .ultrasparc | .v7 | .v8)
2583                                 target_cpu_default2="TARGET_CPU_$with_cpu"
2584                                 ;;
2585                         *)
2586                                 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2587                                 exit 1
2588                                 ;;
2589                 esac
2590                 ;;
2591         esac
2592
2593         if [[ x$target_cpu_default2 != x ]]
2594         then
2595                 if [[ x$target_cpu_default != x ]]
2596                 then
2597                         target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2598                 else
2599                         target_cpu_default=$target_cpu_default2
2600                 fi
2601         fi
2602
2603         # No need for collect2 if we have the GNU linker.
2604         case x$gnu_ld in
2605         xyes)
2606                 use_collect2=
2607                 ;;
2608         esac
2609
2610 # Save data on machine being used to compile GCC in build_xm_file.
2611 # Save data on host machine in vars host_xm_file and host_xmake_file.
2612         if [[ x$pass1done = x ]]
2613         then
2614                 if [[ x"$xm_file" = x ]]
2615                 then build_xm_file=$cpu_type/xm-$cpu_type.h
2616                 else build_xm_file=$xm_file
2617                 fi
2618                 build_install_headers_dir=$install_headers_dir
2619                 build_exeext=$exeext
2620                 pass1done=yes
2621         else
2622                 if [[ x$pass2done = x ]]
2623                 then
2624                         if [[ x"$xm_file" = x ]]
2625                         then host_xm_file=$cpu_type/xm-$cpu_type.h
2626                         else host_xm_file=$xm_file
2627                         fi
2628                         if [[ x"$xmake_file" = x ]]
2629                         then xmake_file=$cpu_type/x-$cpu_type
2630                         fi
2631                         host_xmake_file="$xmake_file"
2632                         host_truncate_target=$truncate_target
2633                         host_extra_gcc_objs=$extra_gcc_objs
2634                         host_extra_objs=$extra_host_objs
2635                         pass2done=yes
2636                 fi
2637         fi
2638 done
2639
2640 extra_objs="${host_extra_objs} ${extra_objs}"
2641
2642 # Default the target-machine variables that were not explicitly set.
2643 if [[ x"$tm_file" = x ]]
2644 then tm_file=$cpu_type/$cpu_type.h; fi
2645
2646 if [[ x$extra_headers = x ]]
2647 then extra_headers=; fi
2648
2649 if [[ x"$xm_file" = x ]]
2650 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2651
2652 md_file=$cpu_type/$cpu_type.md
2653
2654 if [[ x$out_file = x ]]
2655 then out_file=$cpu_type/$cpu_type.c; fi
2656
2657 if [[ x"$tmake_file" = x ]]
2658 then tmake_file=$cpu_type/t-$cpu_type
2659 fi
2660
2661 if [[ x$float_format = x ]]
2662 then float_format=i64
2663 fi
2664
2665 # Say what files are being used for the output code and MD file.
2666 echo "Using \`$srcdir/config/$out_file' to output insns."
2667 echo "Using \`$srcdir/config/$md_file' as machine description file."
2668
2669 count=a
2670 for f in $tm_file; do
2671         count=${count}x
2672 done
2673 if [[ $count = ax ]]; then
2674         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2675 else
2676         echo "Using the following target machine macro files:"
2677         for f in $tm_file; do
2678                 echo "  $srcdir/config/$f"
2679         done
2680 fi
2681
2682 count=a
2683 for f in $host_xm_file; do
2684         count=${count}x
2685 done
2686 if [[ $count = ax ]]; then
2687         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2688 else
2689         echo "Using the following host machine macro files:"
2690         for f in $host_xm_file; do
2691                 echo "  $srcdir/config/$f"
2692         done
2693 fi
2694
2695 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2696         count=a
2697         for f in $build_xm_file; do
2698                 count=${count}x
2699         done
2700         if [[ $count = ax ]]; then
2701                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2702         else
2703                 echo "Using the following build machine macro files:"
2704                 for f in $build_xm_file; do
2705                         echo "  $srcdir/config/$f"
2706                 done
2707         fi
2708 fi
2709
2710 if [[ x$thread_file = x ]]
2711 then thread_file='single'
2712 fi
2713
2714 # Set up the header files.
2715 # $links is the list of header files to create.
2716 # $vars is the list of shell variables with file names to include.
2717 # config2.h is the old config.h.  It is included by the new config.h which
2718 # created from config.in.  The goal is to simplify the transition to autoconf.
2719 vars="host_xm_file tm_file xm_file build_xm_file"
2720 links="config2.h tm.h tconfig.h hconfig.h"
2721
2722 rm -f config.bak
2723 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
2724
2725 # Make the links.
2726 while [[ -n "$vars" ]]
2727 do
2728         # set file to car of files, files to cdr of files
2729         set $vars; var=$1; shift; vars=$*
2730         set $links; link=$1; shift; links=$*
2731
2732         rm -f $link
2733
2734         # Define TARGET_CPU_DEFAULT if the system wants one.
2735         # This substitutes for lots of *.h files.
2736         if [[ x$target_cpu_default != x -a $link = tm.h ]]
2737         then
2738                 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
2739         fi
2740
2741         for file in `eval echo '$'$var`; do
2742                 echo "#include \"$file\"" >>$link
2743         done
2744 done
2745
2746 # Truncate the target if necessary
2747 if [[ x$host_truncate_target != x ]]; then
2748         target=`echo $target | sed -e 's/\(..............\).*/\1/'`
2749 fi
2750
2751 # Get the version number from the toplevel
2752 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
2753
2754 # Are we using gcc as the native compiler?
2755 case $host in
2756 *linux*)        # All Linux's use gcc as the native compiler.
2757         if [[ x$prefix = xNONE ]]; then
2758                 prefix=$native_prefix
2759         fi
2760         ;;
2761 esac
2762
2763 # Get an absolute path to the GCC top-level source directory
2764 holddir=`pwd`
2765 cd $srcdir
2766 topdir=`pwd`
2767 cd $holddir
2768
2769 # Conditionalize the makefile for this host machine.
2770 # Make-host contains the concatenation of all host makefile fragments
2771 # [there can be more than one].  This file is built by configure.frag.
2772 host_overrides=Make-host
2773 dep_host_xmake_file=
2774 for f in .. ${host_xmake_file}
2775 do
2776         if [[ -f ${srcdir}/config/$f ]]
2777         then
2778                 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
2779         fi
2780 done
2781
2782 # Conditionalize the makefile for this target machine.
2783 # Make-target contains the concatenation of all host makefile fragments
2784 # [there can be more than one].  This file is built by configure.frag.
2785 target_overrides=Make-target
2786 dep_tmake_file=
2787 for f in .. ${tmake_file}
2788 do
2789         if [[ -f ${srcdir}/config/$f ]]
2790         then
2791                 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
2792         fi
2793 done
2794
2795 # If the host doesn't support symlinks, modify CC in
2796 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
2797 # Otherwise, we can use "CC=$(CC)".
2798 rm -f symtest.tem
2799 if $symbolic_link symtest1.tem symtest.tem 2>/dev/null
2800 then
2801         cc_set_by_configure="\$(CC)"
2802         stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
2803 else
2804         cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
2805         stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
2806 fi
2807 rm -f symtest.tem
2808
2809 out_object_file=`basename $out_file .c`.o
2810
2811 tm_file_list=
2812 for f in $tm_file; do
2813         tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
2814 done
2815
2816 host_xm_file_list=
2817 for f in $host_xm_file; do
2818         host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
2819 done
2820
2821 build_xm_file_list=
2822 for f in $build_xm_file; do
2823         build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
2824 done
2825
2826 # Define macro CROSS_COMPILE in compilation
2827 # if this is a cross-compiler.
2828 # Also use all.cross instead of all.internal
2829 # and add cross-make to Makefile.
2830 cross_overrides="/dev/null"
2831 if [[ x$host != x$target ]]
2832 then
2833         cross_defines="CROSS=-DCROSS_COMPILE"
2834         cross_overrides="${topdir}/cross-make"
2835 fi
2836
2837 # When building gcc with a cross-compiler, we need to fix a few things.
2838 # This must come after cross-make as we want all.build to override
2839 # all.cross.
2840 build_overrides="/dev/null"
2841 if [[ x$build != x$host ]]
2842 then
2843         build_overrides="${topdir}/build-make"
2844 fi
2845
2846 # Expand extra_headers to include complete path.
2847 # This substitutes for lots of t-* files.
2848 extra_headers_list=
2849 if [[ "x$extra_headers" = x ]]
2850 then true
2851 else
2852         # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
2853         for file in $extra_headers;
2854         do
2855                 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
2856         done
2857 fi
2858
2859 # Add a definition of USE_COLLECT2 if system wants one.
2860 # Also tell toplev.c what to do.
2861 # This substitutes for lots of t-* files.
2862 if [[ x$use_collect2 = x ]]
2863 then
2864         will_use_collect2=
2865         maybe_use_collect2=
2866 else
2867         will_use_collect2="ld"
2868         maybe_use_collect2="-DUSE_COLLECT2"
2869 fi
2870
2871 # NEED TO CONVERT
2872 # Set MD_DEPS if the real md file is in md.pre-cpp.
2873 # Set MD_CPP to the cpp to pass the md file through.  Md files use ';'
2874 # for line oriented comments, so we must always use a GNU cpp.  If
2875 # building gcc with a cross compiler, use the cross compiler just
2876 # built.  Otherwise, we can use the cpp just built.
2877 md_file_sub=
2878 if [[ "x$md_cppflags" = x ]]
2879 then
2880         md_file_sub=$srcdir/config/$md_file
2881 else
2882         md_file=md
2883 fi
2884
2885 # If we have gas in the build tree, make a link to it.
2886 if [[ -f ../gas/Makefile ]]; then
2887         rm -f as; $symbolic_link ../gas/as.new as 2>/dev/null
2888 fi
2889
2890 # If we have ld in the build tree, make a link to it.
2891 if [[ -f ../ld/Makefile ]]; then
2892 #       if [[ x$use_collect2 = x ]]; then
2893 #               rm -f ld; $symbolic_link ../ld/ld.new ld 2>/dev/null
2894 #       else
2895                 rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
2896 #       fi
2897 fi
2898
2899 # Figure out what language subdirectories are present.
2900 subdirs=
2901 for lang in ${srcdir}/*/config-lang.in ..
2902 do
2903         case $lang in
2904         ..) ;;
2905         # The odd quoting in the next line works around
2906         # an apparent bug in bash 1.12 on linux.
2907         ${srcdir}/[[*]]/config-lang.in) ;;
2908         *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
2909         esac
2910 done
2911
2912 # Make empty files to contain the specs and options for each language.
2913 # Then add #include lines to for a compiler that has specs and/or options.
2914
2915 lang_specs_files=
2916 lang_options_files=
2917 rm -f specs.h options.h
2918 touch specs.h options.h
2919 for subdir in . $subdirs
2920 do
2921         if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
2922                 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
2923                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
2924         fi
2925         if [[ -f $srcdir/$subdir/lang-options.h ]]; then
2926                 echo "#include \"$subdir/lang-options.h\"" >>options.h
2927                 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
2928         fi
2929 done
2930
2931 # These (without "all_") are set in each config-lang.in.
2932 # `language' must be a single word so is spelled singularly.
2933 all_languages=
2934 all_boot_languages=
2935 all_compilers=
2936 all_stagestuff=
2937 all_diff_excludes=
2938 all_outputs=Makefile
2939 # List of language makefile fragments.
2940 all_lang_makefiles=
2941 all_headers=
2942 all_lib2funcs=
2943
2944 # Add the language fragments.
2945 # Languages are added via two mechanisms.  Some information must be
2946 # recorded in makefile variables, these are defined in config-lang.in.
2947 # We accumulate them and plug them into the main Makefile.
2948 # The other mechanism is a set of hooks for each of the main targets
2949 # like `clean', `install', etc.
2950
2951 language_fragments="Make-lang"
2952 language_hooks="Make-hooks"
2953 oldstyle_subdirs=
2954
2955 for s in .. $subdirs
2956 do
2957         if [[ $s != ".." ]]
2958         then
2959                 language=
2960                 boot_language=
2961                 compilers=
2962                 stagestuff=
2963                 diff_excludes=
2964                 headers=
2965                 outputs=
2966                 lib2funcs=
2967                 . ${srcdir}/$s/config-lang.in
2968                 if [[ "x$language" = x ]]
2969                 then
2970                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
2971                         exit 1
2972                 fi
2973                 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
2974                 all_languages="$all_languages $language"
2975                 if [[ "x$boot_language" = xyes ]]
2976                 then
2977                         all_boot_languages="$all_boot_languages $language"
2978                 fi
2979                 all_compilers="$all_compilers $compilers"
2980                 all_stagestuff="$all_stagestuff $stagestuff"
2981                 all_diff_excludes="$all_diff_excludes $diff_excludes"
2982                 all_headers="$all_headers $headers"
2983                 all_outputs="$all_outputs $outputs"
2984                 if [[ x$outputs = x ]]
2985                 then
2986                         oldstyle_subdirs="$oldstyle_subdirs $s"
2987                 fi
2988                 all_lib2funcs="$all_lib2funcs $lib2funcs"
2989         fi
2990 done
2991
2992 # Since we can't use `::' targets, we link each language in
2993 # with a set of hooks, reached indirectly via lang.${target}.
2994
2995 rm -f Make-hooks
2996 touch Make-hooks
2997 target_list="all.build all.cross start.encap rest.encap \
2998         info dvi \
2999         install-normal install-common install-info install-man \
3000         uninstall distdir \
3001         mostlyclean clean distclean extraclean maintainer-clean \
3002         stage1 stage2 stage3 stage4"
3003 for t in $target_list
3004 do
3005         x=
3006         for l in .. $all_languages
3007         do
3008                 if [[ $l != ".." ]]; then
3009                         x="$x $l.$t"
3010                 fi
3011         done
3012         echo "lang.$t: $x" >> Make-hooks
3013 done
3014
3015 # If we're not building in srcdir, create .gdbinit.
3016
3017 if [[ ! -f Makefile.in ]]; then
3018         echo "dir ." > .gdbinit
3019         echo "dir ${srcdir}" >> .gdbinit
3020         if [[ x$gdb_needs_out_file_path = xyes ]]
3021         then
3022                 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3023         fi
3024         if [[ "x$subdirs" != x ]]; then
3025                 for s in $subdirs
3026                 do
3027                         echo "dir ${srcdir}/$s" >> .gdbinit
3028                 done
3029         fi
3030         echo "source ${srcdir}/.gdbinit" >> .gdbinit
3031 fi
3032
3033 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3034 sched_prefix=
3035 sched_cflags=
3036 if [[ x$enable_haifa = xyes ]]; then
3037     echo "Using the Haifa scheduler."
3038     sched_prefix=haifa-
3039     sched_cflags=-DHAIFA
3040 fi
3041 AC_SUBST(sched_prefix)
3042 AC_SUBST(sched_cflags)
3043 if [[ x$enable_haifa != x ]]; then
3044     # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3045     for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3046         if [[ -f $x ]]; then
3047             echo "Removing $x"
3048             rm -f $x
3049         fi
3050     done
3051 fi
3052
3053 # Process the language and host/target makefile fragments.
3054 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3055
3056 # Substitute configuration variables
3057 AC_SUBST(subdirs)
3058 AC_SUBST(all_languages)
3059 AC_SUBST(all_boot_languages)
3060 AC_SUBST(all_compilers)
3061 AC_SUBST(all_lang_makefiles)
3062 AC_SUBST(all_stagestuff)
3063 AC_SUBST(all_diff_excludes)
3064 AC_SUBST(all_lib2funcs)
3065 AC_SUBST(all_headers)
3066 AC_SUBST(extra_passes)
3067 AC_SUBST(extra_programs)
3068 AC_SUBST(extra_parts)
3069 AC_SUBST(extra_c_objs)
3070 AC_SUBST(extra_c_flags)
3071 AC_SUBST(extra_objs)
3072 AC_SUBST(host_extra_gcc_objs)
3073 AC_SUBST(extra_headers_list)
3074 AC_SUBST(dep_host_xmake_file)
3075 AC_SUBST(dep_tmake_file)
3076 AC_SUBST(out_file)
3077 AC_SUBST(out_object_file)
3078 AC_SUBST(md_file)
3079 AC_SUBST(tm_file_list)
3080 AC_SUBST(build_xm_file_list)
3081 AC_SUBST(host_xm_file_list)
3082 AC_SUBST(lang_specs_files)
3083 AC_SUBST(lang_options_files)
3084 AC_SUBST(thread_file)
3085 AC_SUBST(version)
3086 AC_SUBST(local_prefix)
3087 AC_SUBST(gxx_include_dir)
3088 AC_SUBST(fixincludes)
3089 AC_SUBST(build_install_headers_dir)
3090 AC_SUBST(build_exeext)
3091 AC_SUBST(float_format)
3092 AC_SUBST(will_use_collect2)
3093 AC_SUBST(maybe_use_collect2)
3094 AC_SUBST(cc_set_by_configure)
3095 AC_SUBST(stage_prefix_set_by_configure)
3096
3097 AC_SUBST_FILE(target_overrides)
3098 AC_SUBST_FILE(host_overrides)
3099 AC_SUBST(cross_defines)
3100 AC_SUBST_FILE(cross_overrides)
3101 AC_SUBST_FILE(build_overrides)
3102 AC_SUBST_FILE(language_fragments)
3103 AC_SUBST_FILE(language_hooks)
3104
3105 # Echo that links are built
3106 if [[ x$host = x$target ]]
3107 then
3108         str1="native "
3109 else
3110         str1="cross-"
3111         str2=" from $host"
3112 fi
3113
3114 if [[ x$host != x$build ]]
3115 then
3116         str3=" on a $build system"
3117 fi
3118
3119 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3120 then
3121         str4=
3122 fi
3123
3124 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3125
3126 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3127 then
3128         echo " ${str2}${str3}." 1>&2
3129 fi
3130
3131 # Configure the subdirectories
3132 # AC_CONFIG_SUBDIRS($subdirs)
3133
3134 # Create the Makefile
3135 # and configure language subdirectories
3136 AC_OUTPUT($all_outputs,
3137 [
3138 . $srcdir/configure.lang
3139 case x$CONFIG_HEADERS in
3140 xconfig.h:config.in)
3141 echo > cstamp-h ;;
3142 esac
3143 ],
3144 [
3145 host='${host}'
3146 build='${build}'
3147 target='${target}'
3148 target_alias='${target_alias}'
3149 srcdir='${srcdir}'
3150 subdirs='${subdirs}'
3151 oldstyle_subdirs='${oldstyle_subdirs}'
3152 symbolic_link='${symbolic_link}'
3153 program_transform_set='${program_transform_set}'
3154 program_transform_name='${program_transform_name}'
3155 dep_host_xmake_file='${dep_host_xmake_file}'
3156 host_xmake_file='${host_xmake_file}'
3157 dep_tmake_file='${dep_tmake_file}'
3158 tmake_file='${tmake_file}'
3159 thread_file='${thread_file}'
3160 version='${version}'
3161 local_prefix='${local_prefix}'
3162 build_install_headers_dir='${build_install_headers_dir}'
3163 build_exeext='${build_exeext}'
3164 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3165 SET_MAKE='${SET_MAKE}'
3166 target_list='${target_list}'
3167 target_overrides='${target_overrides}'
3168 host_overrides='${host_overrides}'
3169 cross_defines='${cross_defines}'
3170 cross_overrides='${cross_overrides}'
3171 build_overrides='${build_overrides}'
3172 ])