OSDN Git Service

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