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