OSDN Git Service

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