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