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