]> gcc.gnu.org Git - gcc.git/blob - gcc/configure.in
configure.in: Add --enable-cpplib option which uses cpplib for cpp...
[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-*-osf1*) # Intel 80386's running OSF/1 1.3+
1355 changequote([,])dnl
1356 cpu_type=i386
1357 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1358 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1359 fixincludes=Makefile.in #Don't do it on OSF/1
1360 if test x$stabs = xyes
1361 then
1362 tm_file=i386/osf1elfgdb.h
1363 else
1364 tm_file=i386/osf1elf.h
1365 fi
1366 tmake_file=i386/t-osf1elf
1367 xmake_file=i386/x-osf1elf
1368 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1369 ;;
1370 changequote(,)dnl
1371 i[34567]86-*-sysv*) # Intel 80386's running system V
1372 changequote([,])dnl
1373 xm_defines="USG SVR3"
1374 xmake_file=i386/x-sysv3
1375 if test x$gas = xyes
1376 then
1377 if test x$stabs = xyes
1378 then
1379 tm_file=i386/svr3dbx.h
1380 tmake_file=i386/t-svr3dbx
1381 extra_parts="svr3.ifile svr3z.rfile"
1382 else
1383 tm_file=i386/svr3gas.h
1384 extra_parts="crtbegin.o crtend.o"
1385 tmake_file=i386/t-crtstuff
1386 fi
1387 else
1388 tm_file=i386/sysv3.h
1389 extra_parts="crtbegin.o crtend.o"
1390 tmake_file=i386/t-crtstuff
1391 fi
1392 ;;
1393 i386-*-vsta) # Intel 80386's running VSTa kernel
1394 xm_file="${xm_file} i386/xm-vsta.h"
1395 tm_file=i386/vsta.h
1396 tmake_file=i386/t-vsta
1397 xmake_file=i386/x-vsta
1398 ;;
1399 changequote(,)dnl
1400 i[34567]86-*-win32)
1401 changequote([,])dnl
1402 xm_file="${xm_file} i386/xm-cygwin32.h"
1403 tmake_file=i386/t-cygwin32
1404 tm_file=i386/win32.h
1405 xmake_file=i386/x-cygwin32
1406 extra_objs=winnt.o
1407 fixincludes=Makefile.in
1408 if test x$enable_threads = xyes; then
1409 thread_file='win32'
1410 fi
1411 exeext=.exe
1412 ;;
1413 changequote(,)dnl
1414 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1415 changequote([,])dnl
1416 xm_file="${xm_file} i386/xm-cygwin32.h"
1417 tmake_file=i386/t-cygwin32
1418 tm_file=i386/cygwin32.h
1419 xmake_file=i386/x-cygwin32
1420 extra_objs=winnt.o
1421 fixincludes=Makefile.in
1422 if test x$enable_threads = xyes; then
1423 thread_file='win32'
1424 fi
1425 exeext=.exe
1426 ;;
1427 changequote(,)dnl
1428 i[34567]86-*-mingw32*)
1429 changequote([,])dnl
1430 tm_file=i386/mingw32.h
1431 xm_file="${xm_file} i386/xm-mingw32.h"
1432 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1433 extra_objs=winnt.o
1434 xmake_file=i386/x-cygwin32
1435 fixincludes=Makefile.in
1436 if test x$enable_threads = xyes; then
1437 thread_file='win32'
1438 fi
1439 exeext=.exe
1440 case $machine in
1441 *mingw32msv*)
1442 ;;
1443 *minwg32crt* | *mingw32*)
1444 tm_file="${tm_file} i386/crtdll.h"
1445 ;;
1446 esac
1447 ;;
1448 changequote(,)dnl
1449 i[34567]86-*-winnt3*)
1450 changequote([,])dnl
1451 tm_file=i386/win-nt.h
1452 out_file=i386/i386.c
1453 xm_file="xm-winnt.h ${xm_file}"
1454 xmake_file=winnt/x-winnt
1455 tmake_file=i386/t-winnt
1456 extra_host_objs="winnt.o oldnames.o"
1457 extra_gcc_objs="spawnv.o oldnames.o"
1458 fixincludes=fixinc.winnt
1459 if test x$gnu_ld != xyes
1460 then
1461 extra_programs=ld.exe
1462 fi
1463 if test x$enable_threads = xyes; then
1464 thread_file='win32'
1465 fi
1466 ;;
1467 changequote(,)dnl
1468 i[34567]86-dg-dgux*)
1469 changequote([,])dnl
1470 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1471 xm_defines="USG POSIX"
1472 out_file=i386/dgux.c
1473 tm_file=i386/dgux.h
1474 tmake_file=i386/t-dgux
1475 xmake_file=i386/x-dgux
1476 fixincludes=fixinc.dgux
1477 install_headers_dir=install-headers-cpio
1478 ;;
1479 i860-alliant-*) # Alliant FX/2800
1480 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1481 xm_file="${xm_file}"
1482 xmake_file=i860/x-fx2800
1483 tmake_file=i860/t-fx2800
1484 extra_parts="crtbegin.o crtend.o"
1485 ;;
1486 i860-*-bsd*)
1487 tm_file="${tm_file} i860/bsd.h"
1488 if test x$gas = xyes
1489 then
1490 tm_file="${tm_file} i860/bsd-gas.h"
1491 fi
1492 use_collect2=yes
1493 ;;
1494 i860-*-mach*)
1495 tm_file="${tm_file} i860/mach.h"
1496 tmake_file=t-libc-ok
1497 ;;
1498 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1499 tm_file="${tm_file} svr3.h i860/paragon.h"
1500 xm_defines="USG SVR3"
1501 tmake_file=t-osf
1502 ;;
1503 i860-*-sysv3*)
1504 tm_file="${tm_file} svr3.h i860/sysv3.h"
1505 xm_defines="USG SVR3"
1506 xmake_file=i860/x-sysv3
1507 extra_parts="crtbegin.o crtend.o"
1508 ;;
1509 i860-*-sysv4*)
1510 tm_file="${tm_file} svr4.h i860/sysv4.h"
1511 xm_defines="USG SVR3"
1512 xmake_file=i860/x-sysv4
1513 tmake_file=t-svr4
1514 extra_parts="crtbegin.o crtend.o"
1515 ;;
1516 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1517 tm_file="${tm_file} i960/vx960.h"
1518 tmake_file=i960/t-vxworks960
1519 use_collect2=yes
1520 thread_file='vxworks'
1521 ;;
1522 i960-wrs-vxworks5* | i960-wrs-vxworks)
1523 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1524 tmake_file=i960/t-vxworks960
1525 use_collect2=yes
1526 thread_file='vxworks'
1527 ;;
1528 i960-wrs-vxworks*)
1529 tm_file="${tm_file} i960/vx960.h"
1530 tmake_file=i960/t-vxworks960
1531 use_collect2=yes
1532 thread_file='vxworks'
1533 ;;
1534 i960-*-coff*)
1535 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1536 tmake_file=i960/t-960bare
1537 use_collect2=yes
1538 ;;
1539 i960-*-rtems)
1540 tmake_file="i960/t-960bare t-rtems"
1541 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1542 use_collect2=yes
1543 ;;
1544 i960-*-*) # Default i960 environment.
1545 use_collect2=yes
1546 ;;
1547 m32r-*-elf*)
1548 extra_parts="crtinit.o crtfini.o"
1549 ;;
1550 m68000-convergent-sysv*)
1551 tm_file=m68k/ctix.h
1552 xm_file="m68k/xm-3b1.h ${xm_file}"
1553 xm_defines=USG
1554 use_collect2=yes
1555 extra_headers=math-68881.h
1556 ;;
1557 m68000-hp-bsd*) # HP 9000/200 running BSD
1558 tm_file=m68k/hp2bsd.h
1559 xmake_file=m68k/x-hp2bsd
1560 use_collect2=yes
1561 extra_headers=math-68881.h
1562 ;;
1563 m68000-hp-hpux*) # HP 9000 series 300
1564 xm_file="xm_alloca.h ${xm_file}"
1565 xm_defines="USG NO_SYS_SIGLIST"
1566 if test x$gas = xyes
1567 then
1568 xmake_file=m68k/x-hp320g
1569 tm_file=m68k/hp310g.h
1570 else
1571 xmake_file=m68k/x-hp320
1572 tm_file=m68k/hp310.h
1573 fi
1574 install_headers_dir=install-headers-cpio
1575 use_collect2=yes
1576 extra_headers=math-68881.h
1577 ;;
1578 m68000-sun-sunos3*)
1579 tm_file=m68k/sun2.h
1580 use_collect2=yes
1581 extra_headers=math-68881.h
1582 ;;
1583 m68000-sun-sunos4*)
1584 tm_file=m68k/sun2o4.h
1585 use_collect2=yes
1586 extra_headers=math-68881.h
1587 ;;
1588 m68000-att-sysv*)
1589 xm_file="m68k/xm-3b1.h ${xm_file}"
1590 xm_defines=USG
1591 if test x$gas = xyes
1592 then
1593 tm_file=m68k/3b1g.h
1594 else
1595 tm_file=m68k/3b1.h
1596 fi
1597 use_collect2=yes
1598 extra_headers=math-68881.h
1599 ;;
1600 m68k-apple-aux*) # Apple Macintosh running A/UX
1601 xm_defines="USG AUX"
1602 tmake_file=m68k/t-aux
1603 install_headers_dir=install-headers-cpio
1604 extra_headers=math-68881.h
1605 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1606 tm_file=
1607 if test "$gnu_ld" = yes
1608 then
1609 tm_file="${tm_file} m68k/auxgld.h"
1610 else
1611 tm_file="${tm_file} m68k/auxld.h"
1612 fi
1613 if test "$gas" = yes
1614 then
1615 tm_file="${tm_file} m68k/auxgas.h"
1616 else
1617 tm_file="${tm_file} m68k/auxas.h"
1618 fi
1619 tm_file="${tm_file} m68k/a-ux.h"
1620 float_format=m68k
1621 ;;
1622 m68k-apollo-*)
1623 tm_file=m68k/apollo68.h
1624 xmake_file=m68k/x-apollo68
1625 use_collect2=yes
1626 extra_headers=math-68881.h
1627 float_format=m68k
1628 ;;
1629 m68k-altos-sysv*) # Altos 3068
1630 if test x$gas = xyes
1631 then
1632 tm_file=m68k/altos3068.h
1633 xm_defines=USG
1634 else
1635 echo "The Altos is supported only with the GNU assembler" 1>&2
1636 exit 1
1637 fi
1638 extra_headers=math-68881.h
1639 ;;
1640 m68k-bull-sysv*) # Bull DPX/2
1641 if test x$gas = xyes
1642 then
1643 if test x$stabs = xyes
1644 then
1645 tm_file=m68k/dpx2cdbx.h
1646 else
1647 tm_file=m68k/dpx2g.h
1648 fi
1649 else
1650 tm_file=m68k/dpx2.h
1651 fi
1652 xm_file="xm-alloca.h ${xm_file}"
1653 xm_defines=USG
1654 xmake_file=m68k/x-dpx2
1655 use_collect2=yes
1656 extra_headers=math-68881.h
1657 ;;
1658 m68k-atari-sysv4*) # Atari variant of V.4.
1659 tm_file=m68k/atari.h
1660 xm_file="xm-alloca.h ${xm_file}"
1661 xm_defines="USG FULL_PROTOTYPES"
1662 tmake_file=t-svr4
1663 extra_parts="crtbegin.o crtend.o"
1664 extra_headers=math-68881.h
1665 float_format=m68k
1666 ;;
1667 m68k-motorola-sysv*)
1668 tm_file=m68k/mot3300.h
1669 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1670 xm_defines=NO_SYS_SIGLIST
1671 if test x$gas = xyes
1672 then
1673 xmake_file=m68k/x-mot3300-gas
1674 if test x$gnu_ld = xyes
1675 then
1676 tmake_file=m68k/t-mot3300-gald
1677 else
1678 tmake_file=m68k/t-mot3300-gas
1679 use_collect2=yes
1680 fi
1681 else
1682 xmake_file=m68k/x-mot3300
1683 if test x$gnu_ld = xyes
1684 then
1685 tmake_file=m68k/t-mot3300-gld
1686 else
1687 tmake_file=m68k/t-mot3300
1688 use_collect2=yes
1689 fi
1690 fi
1691 gdb_needs_out_file_path=yes
1692 extra_parts="crt0.o mcrt0.o"
1693 extra_headers=math-68881.h
1694 float_format=m68k
1695 ;;
1696 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1697 tm_file=m68k/tower-as.h
1698 xm_defines="USG SVR3"
1699 xmake_file=m68k/x-tower
1700 extra_parts="crtbegin.o crtend.o"
1701 extra_headers=math-68881.h
1702 ;;
1703 m68k-plexus-sysv*)
1704 tm_file=m68k/plexus.h
1705 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1706 xm_defines=USG
1707 use_collect2=yes
1708 extra_headers=math-68881.h
1709 ;;
1710 m68k-tti-*)
1711 tm_file=m68k/pbb.h
1712 xm_file="xm-alloca.h ${xm_file}"
1713 xm_defines=USG
1714 extra_headers=math-68881.h
1715 ;;
1716 m68k-crds-unos*)
1717 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1718 xm_defines="USG unos"
1719 xmake_file=m68k/x-crds
1720 tm_file=m68k/crds.h
1721 use_collect2=yes
1722 extra_headers=math-68881.h
1723 ;;
1724 m68k-cbm-sysv4*) # Commodore variant of V.4.
1725 tm_file=m68k/amix.h
1726 xm_file="xm-alloca.h ${xm_file}"
1727 xm_defines="USG FULL_PROTOTYPES"
1728 xmake_file=m68k/x-amix
1729 tmake_file=t-svr4
1730 extra_parts="crtbegin.o crtend.o"
1731 extra_headers=math-68881.h
1732 float_format=m68k
1733 ;;
1734 m68k-ccur-rtu)
1735 tm_file=m68k/ccur-GAS.h
1736 xmake_file=m68k/x-ccur
1737 extra_headers=math-68881.h
1738 use_collect2=yes
1739 float_format=m68k
1740 ;;
1741 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1742 tm_file=m68k/hp3bsd44.h
1743 xmake_file=m68k/x-hp3bsd44
1744 use_collect2=yes
1745 extra_headers=math-68881.h
1746 float_format=m68k
1747 ;;
1748 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1749 tm_file=m68k/hp3bsd.h
1750 use_collect2=yes
1751 extra_headers=math-68881.h
1752 float_format=m68k
1753 ;;
1754 m68k-isi-bsd*)
1755 if test x$with_fp = xno
1756 then
1757 tm_file=m68k/isi-nfp.h
1758 else
1759 tm_file=m68k/isi.h
1760 float_format=m68k
1761 fi
1762 use_collect2=yes
1763 extra_headers=math-68881.h
1764 ;;
1765 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1766 xm_file="xm_alloca.h ${xm_file}"
1767 xm_defines="USG NO_SYS_SIGLIST"
1768 if test x$gas = xyes
1769 then
1770 xmake_file=m68k/x-hp320g
1771 tm_file=m68k/hp320g.h
1772 else
1773 xmake_file=m68k/x-hp320
1774 tm_file=m68k/hpux7.h
1775 fi
1776 install_headers_dir=install-headers-cpio
1777 use_collect2=yes
1778 extra_headers=math-68881.h
1779 float_format=m68k
1780 ;;
1781 m68k-hp-hpux*) # HP 9000 series 300
1782 xm_file="xm_alloca.h ${xm_file}"
1783 xm_defines="USG NO_SYS_SIGLIST"
1784 if test x$gas = xyes
1785 then
1786 xmake_file=m68k/x-hp320g
1787 tm_file=m68k/hp320g.h
1788 else
1789 xmake_file=m68k/x-hp320
1790 tm_file=m68k/hp320.h
1791 fi
1792 install_headers_dir=install-headers-cpio
1793 use_collect2=yes
1794 extra_headers=math-68881.h
1795 float_format=m68k
1796 ;;
1797 m68k-sun-mach*)
1798 tm_file=m68k/sun3mach.h
1799 use_collect2=yes
1800 extra_headers=math-68881.h
1801 float_format=m68k
1802 ;;
1803 m68k-sony-newsos3*)
1804 if test x$gas = xyes
1805 then
1806 tm_file=m68k/news3gas.h
1807 else
1808 tm_file=m68k/news3.h
1809 fi
1810 use_collect2=yes
1811 extra_headers=math-68881.h
1812 float_format=m68k
1813 ;;
1814 m68k-sony-bsd* | m68k-sony-newsos*)
1815 if test x$gas = xyes
1816 then
1817 tm_file=m68k/newsgas.h
1818 else
1819 tm_file=m68k/news.h
1820 fi
1821 use_collect2=yes
1822 extra_headers=math-68881.h
1823 float_format=m68k
1824 ;;
1825 m68k-next-nextstep2*)
1826 tm_file=m68k/next21.h
1827 xm_file="m68k/xm-next.h ${xm_file}"
1828 tmake_file=m68k/t-next
1829 xmake_file=m68k/x-next
1830 extra_objs=nextstep.o
1831 extra_headers=math-68881.h
1832 use_collect2=yes
1833 float_format=m68k
1834 ;;
1835 m68k-next-nextstep3*)
1836 tm_file=m68k/next.h
1837 xm_file="m68k/xm-next.h ${xm_file}"
1838 tmake_file=m68k/t-next
1839 xmake_file=m68k/x-next
1840 extra_objs=nextstep.o
1841 extra_parts="crtbegin.o crtend.o"
1842 extra_headers=math-68881.h
1843 float_format=m68k
1844 if test x$enable_threads = xyes; then
1845 thread_file='mach'
1846 fi
1847 ;;
1848 m68k-sun-sunos3*)
1849 if test x$with_fp = xno
1850 then
1851 tm_file=m68k/sun3n3.h
1852 else
1853 tm_file=m68k/sun3o3.h
1854 float_format=m68k
1855 fi
1856 use_collect2=yes
1857 extra_headers=math-68881.h
1858 ;;
1859 m68k-sun-sunos*) # For SunOS 4 (the default).
1860 if test x$with_fp = xno
1861 then
1862 tm_file=m68k/sun3n.h
1863 else
1864 tm_file=m68k/sun3.h
1865 float_format=m68k
1866 fi
1867 use_collect2=yes
1868 extra_headers=math-68881.h
1869 ;;
1870 m68k-wrs-vxworks*)
1871 tm_file=m68k/vxm68k.h
1872 tmake_file=m68k/t-vxworks68
1873 extra_headers=math-68881.h
1874 thread_file='vxworks'
1875 float_format=m68k
1876 ;;
1877 m68k-*-aout*)
1878 tmake_file=m68k/t-m68kbare
1879 tm_file="m68k/m68k-aout.h libgloss.h"
1880 extra_headers=math-68881.h
1881 float_format=m68k
1882 ;;
1883 m68k-*-coff*)
1884 tmake_file=m68k/t-m68kbare
1885 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1886 extra_headers=math-68881.h
1887 float_format=m68k
1888 ;;
1889 m68k-*-lynxos*)
1890 if test x$gas = xyes
1891 then
1892 tm_file=m68k/lynx.h
1893 else
1894 tm_file=m68k/lynx-ng.h
1895 fi
1896 xm_file=m68k/xm-lynx.h
1897 xmake_file=x-lynx
1898 tmake_file=m68k/t-lynx
1899 extra_headers=math-68881.h
1900 float_format=m68k
1901 ;;
1902 m68k*-*-netbsd*)
1903 tm_file=m68k/netbsd.h
1904 # On NetBSD, the headers are already okay, except for math.h.
1905 fixincludes=fixinc.wrap
1906 tmake_file=t-netbsd
1907 float_format=m68k
1908 ;;
1909 m68k-*-sysv3*) # Motorola m68k's running system V.3
1910 xm_file="xm-alloca.h ${xm_file}"
1911 xm_defines=USG
1912 xmake_file=m68k/x-m68kv
1913 extra_parts="crtbegin.o crtend.o"
1914 extra_headers=math-68881.h
1915 float_format=m68k
1916 ;;
1917 m68k-*-sysv4*) # Motorola m68k's running system V.4
1918 tm_file=m68k/m68kv4.h
1919 xm_file="xm-alloca.h ${xm_file}"
1920 xm_defines=USG
1921 tmake_file=t-svr4
1922 extra_parts="crtbegin.o crtend.o"
1923 extra_headers=math-68881.h
1924 float_format=m68k
1925 ;;
1926 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1927 # with a.out format
1928 xmake_file=x-linux
1929 tm_file=m68k/linux-aout.h
1930 tmake_file="t-linux-aout m68k/t-linux-aout"
1931 fixincludes=Makefile.in # The headers are ok already.
1932 extra_headers=math-68881.h
1933 float_format=m68k
1934 gnu_ld=yes
1935 ;;
1936 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1937 # with ELF format using the
1938 # GNU/Linux C library 5
1939 xmake_file=x-linux
1940 tm_file=m68k/linux.h
1941 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1942 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1943 fixincludes=Makefile.in # The headers are ok already.
1944 extra_headers=math-68881.h
1945 float_format=m68k
1946 gnu_ld=yes
1947 ;;
1948 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1949 # with ELF format using glibc 2
1950 # aka the GNU/Linux C library 6.
1951 xmake_file=x-linux
1952 tm_file=m68k/linux.h
1953 tmake_file="t-linux m68k/t-linux"
1954 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1955 fixincludes=Makefile.in # The headers are ok already.
1956 extra_headers=math-68881.h
1957 float_format=m68k
1958 gnu_ld=yes
1959 if test x$enable_threads = xyes; then
1960 thread_file='posix'
1961 fi
1962 ;;
1963 m68k-*-psos*)
1964 tmake_file=m68k/t-m68kbare
1965 tm_file=m68k/m68k-psos.h
1966 extra_headers=math-68881.h
1967 float_format=m68k
1968 ;;
1969 m68k-*-rtems*)
1970 tmake_file="m68k/t-m68kbare t-rtems"
1971 tm_file=m68k/rtems.h
1972 extra_headers=math-68881.h
1973 float_format=m68k
1974 ;;
1975
1976 m88k-dg-dgux*)
1977 case $machine in
1978 m88k-dg-dguxbcs*)
1979 tm_file=m88k/dguxbcs.h
1980 tmake_file=m88k/t-dguxbcs
1981 ;;
1982 *)
1983 tm_file=m88k/dgux.h
1984 tmake_file=m88k/t-dgux
1985 ;;
1986 esac
1987 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1988 xmake_file=m88k/x-dgux
1989 if test x$gas = xyes
1990 then
1991 tmake_file=m88k/t-dgux-gas
1992 fi
1993 fixincludes=fixinc.dgux
1994 ;;
1995 m88k-dolphin-sysv3*)
1996 tm_file=m88k/dolph.h
1997 extra_parts="crtbegin.o crtend.o"
1998 xm_file="m88k/xm-sysv3.h ${xm_file}"
1999 xmake_file=m88k/x-dolph
2000 if test x$gas = xyes
2001 then
2002 tmake_file=m88k/t-m88k-gas
2003 fi
2004 ;;
2005 m88k-tektronix-sysv3)
2006 tm_file=m88k/tekXD88.h
2007 extra_parts="crtbegin.o crtend.o"
2008 xm_file="m88k/xm-sysv3.h ${xm_file}"
2009 xmake_file=m88k/x-tekXD88
2010 if test x$gas = xyes
2011 then
2012 tmake_file=m88k/t-m88k-gas
2013 fi
2014 ;;
2015 m88k-*-aout*)
2016 tm_file=m88k/m88k-aout.h
2017 ;;
2018 m88k-*-coff*)
2019 tm_file=m88k/m88k-coff.h
2020 tmake_file=m88k/t-bug
2021 ;;
2022 m88k-*-luna*)
2023 tm_file=m88k/luna.h
2024 extra_parts="crtbegin.o crtend.o"
2025 if test x$gas = xyes
2026 then
2027 tmake_file=m88k/t-luna-gas
2028 else
2029 tmake_file=m88k/t-luna
2030 fi
2031 ;;
2032 m88k-*-sysv3*)
2033 tm_file=m88k/sysv3.h
2034 extra_parts="crtbegin.o crtend.o"
2035 xm_file="m88k/xm-sysv3.h ${xm_file}"
2036 xmake_file=m88k/x-sysv3
2037 if test x$gas = xyes
2038 then
2039 tmake_file=m88k/t-m88k-gas
2040 fi
2041 ;;
2042 m88k-*-sysv4*)
2043 tm_file=m88k/sysv4.h
2044 extra_parts="crtbegin.o crtend.o"
2045 xmake_file=m88k/x-sysv4
2046 tmake_file=m88k/t-sysv4
2047 ;;
2048 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2049 tm_file=mips/iris6.h
2050 xm_file=mips/xm-iris6.h
2051 fixincludes=fixinc.irix
2052 xmake_file=mips/x-iris6
2053 tmake_file=mips/t-iris6
2054 # if test x$enable_threads = xyes; then
2055 # thread_file='irix'
2056 # fi
2057 ;;
2058 mips-wrs-vxworks)
2059 tm_file="mips/elf.h libgloss.h"
2060 tmake_file=mips/t-ecoff
2061 gas=yes
2062 gnu_ld=yes
2063 extra_parts="crtbegin.o crtend.o"
2064 # thread_file='vxworks'
2065 ;;
2066 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2067 tm_file="mips/iris6.h mips/cross64.h"
2068 xm_defines=USG
2069 xm_file="mips/xm-iris5.h"
2070 fixincludes=Makefile.in
2071 xmake_file=mips/x-iris
2072 tmake_file=mips/t-cross64
2073 # See comment in mips/iris[56].h files.
2074 use_collect2=yes
2075 # if test x$enable_threads = xyes; then
2076 # thread_file='irix'
2077 # fi
2078 ;;
2079 mips-sni-sysv4)
2080 if test x$gas = xyes
2081 then
2082 if test x$stabs = xyes
2083 then
2084 tm_file=mips/iris5gdb.h
2085 else
2086 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2087 fi
2088 else
2089 tm_file=mips/sni-svr4.h
2090 fi
2091 xm_defines=USG
2092 xmake_file=mips/x-sni-svr4
2093 tmake_file=mips/t-mips-gas
2094 if test x$gnu_ld != xyes
2095 then
2096 use_collect2=yes
2097 fi
2098 ;;
2099 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2100 if test x$gas = xyes
2101 then
2102 tm_file="mips/iris5.h mips/iris5gas.h"
2103 if test x$stabs = xyes
2104 then
2105 tm_file="${tm_file} dbx.h"
2106 fi
2107 else
2108 tm_file=mips/iris5.h
2109 fi
2110 xm_defines=USG
2111 xm_file="mips/xm-iris5.h"
2112 fixincludes=fixinc.irix
2113 xmake_file=mips/x-iris
2114 # mips-tfile doesn't work yet
2115 tmake_file=mips/t-mips-gas
2116 # See comment in mips/iris5.h file.
2117 use_collect2=yes
2118 # if test x$enable_threads = xyes; then
2119 # thread_file='irix'
2120 # fi
2121 ;;
2122 mips-sgi-irix4loser*) # Mostly like a MIPS.
2123 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2124 if test x$stabs = xyes; then
2125 tm_file="${tm_file} dbx.h"
2126 fi
2127 xm_defines=USG
2128 xmake_file=mips/x-iris
2129 if test x$gas = xyes
2130 then
2131 tmake_file=mips/t-mips-gas
2132 else
2133 extra_passes="mips-tfile mips-tdump"
2134 fi
2135 if test x$gnu_ld != xyes
2136 then
2137 use_collect2=yes
2138 fi
2139 # if test x$enable_threads = xyes; then
2140 # thread_file='irix'
2141 # fi
2142 ;;
2143 mips-sgi-irix4*) # Mostly like a MIPS.
2144 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2145 if test x$stabs = xyes; then
2146 tm_file="${tm_file} dbx.h"
2147 fi
2148 xm_defines=USG
2149 xmake_file=mips/x-iris
2150 if test x$gas = xyes
2151 then
2152 tmake_file=mips/t-mips-gas
2153 else
2154 extra_passes="mips-tfile mips-tdump"
2155 fi
2156 if test x$gnu_ld != xyes
2157 then
2158 use_collect2=yes
2159 fi
2160 # if test x$enable_threads = xyes; then
2161 # thread_file='irix'
2162 # fi
2163 ;;
2164 mips-sgi-*) # Mostly like a MIPS.
2165 tm_file="mips/iris3.h ${tm_file}"
2166 if test x$stabs = xyes; then
2167 tm_file="${tm_file} dbx.h"
2168 fi
2169 xm_defines=USG
2170 xmake_file=mips/x-iris3
2171 if test x$gas = xyes
2172 then
2173 tmake_file=mips/t-mips-gas
2174 else
2175 extra_passes="mips-tfile mips-tdump"
2176 fi
2177 if test x$gnu_ld != xyes
2178 then
2179 use_collect2=yes
2180 fi
2181 ;;
2182 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2183 tm_file="mips/osfrose.h ${tm_file}"
2184 xmake_file=mips/x-osfrose
2185 tmake_file=mips/t-osfrose
2186 extra_objs=halfpic.o
2187 use_collect2=yes
2188 ;;
2189 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2190 tm_file=mips/dec-osf1.h
2191 if test x$stabs = xyes; then
2192 tm_file="${tm_file} dbx.h"
2193 fi
2194 xmake_file=mips/x-dec-osf1
2195 if test x$gas = xyes
2196 then
2197 tmake_file=mips/t-mips-gas
2198 else
2199 tmake_file=mips/t-ultrix
2200 extra_passes="mips-tfile mips-tdump"
2201 fi
2202 if test x$gnu_ld != xyes
2203 then
2204 use_collect2=yes
2205 fi
2206 ;;
2207 mips-dec-bsd*) # Decstation running 4.4 BSD
2208 tm_file=mips/dec-bsd.h
2209 fixincludes=
2210 if test x$gas = xyes
2211 then
2212 tmake_file=mips/t-mips-gas
2213 else
2214 tmake_file=mips/t-ultrix
2215 extra_passes="mips-tfile mips-tdump"
2216 fi
2217 if test x$gnu_ld != xyes
2218 then
2219 use_collect2=yes
2220 fi
2221 ;;
2222 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2223 tm_file=mips/netbsd.h
2224 # On NetBSD, the headers are already okay, except for math.h.
2225 fixincludes=fixinc.wrap
2226 tmake_file=t-netbsd
2227 ;;
2228 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2229 tm_file="mips/news4.h ${tm_file}"
2230 if test x$stabs = xyes; then
2231 tm_file="${tm_file} dbx.h"
2232 fi
2233 if test x$gas = xyes
2234 then
2235 tmake_file=mips/t-mips-gas
2236 else
2237 extra_passes="mips-tfile mips-tdump"
2238 fi
2239 if test x$gnu_ld != xyes
2240 then
2241 use_collect2=yes
2242 fi
2243 xmake_file=mips/x-sony
2244 ;;
2245 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2246 # That is based on svr4.
2247 # t-svr4 is not right because this system doesn't use ELF.
2248 tm_file="mips/news5.h ${tm_file}"
2249 if test x$stabs = xyes; then
2250 tm_file="${tm_file} dbx.h"
2251 fi
2252 xm_file="xm-siglist.h ${xm_file}"
2253 xm_defines=USG
2254 if test x$gas = xyes
2255 then
2256 tmake_file=mips/t-mips-gas
2257 else
2258 extra_passes="mips-tfile mips-tdump"
2259 fi
2260 if test x$gnu_ld != xyes
2261 then
2262 use_collect2=yes
2263 fi
2264 ;;
2265 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2266 tm_file="mips/svr4-5.h mips/svr4-t.h"
2267 if test x$stabs = xyes; then
2268 tm_file="${tm_file} dbx.h"
2269 fi
2270 xm_file="xm-siglist.h ${xm_file}"
2271 xm_defines=USG
2272 xmake_file=mips/x-sysv
2273 if test x$gas = xyes
2274 then
2275 tmake_file=mips/t-mips-gas
2276 extra_parts="crtbegin.o crtend.o"
2277 else
2278 tmake_file=mips/t-mips
2279 extra_passes="mips-tfile mips-tdump"
2280 fi
2281 if test x$gnu_ld != xyes
2282 then
2283 use_collect2=yes
2284 fi
2285 ;;
2286 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2287 tm_file="mips/ultrix.h ${tm_file}"
2288 if test x$stabs = xyes; then
2289 tm_file="${tm_file} dbx.h"
2290 fi
2291 xmake_file=mips/x-ultrix
2292 if test x$gas = xyes
2293 then
2294 tmake_file=mips/t-mips-gas
2295 else
2296 tmake_file=mips/t-ultrix
2297 extra_passes="mips-tfile mips-tdump"
2298 fi
2299 if test x$gnu_ld != xyes
2300 then
2301 use_collect2=yes
2302 fi
2303 ;;
2304 changequote(,)dnl
2305 mips-*-riscos[56789]bsd*)
2306 changequote([,])dnl
2307 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2308 if test x$stabs = xyes; then
2309 tm_file="${tm_file} dbx.h"
2310 fi
2311 if test x$gas = xyes
2312 then
2313 tmake_file=mips/t-bsd-gas
2314 else
2315 tmake_file=mips/t-bsd
2316 extra_passes="mips-tfile mips-tdump"
2317 fi
2318 if test x$gnu_ld != xyes
2319 then
2320 use_collect2=yes
2321 fi
2322 ;;
2323 changequote(,)dnl
2324 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2325 changequote([,])dnl
2326 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2327 if test x$stabs = xyes; then
2328 tm_file="${tm_file} dbx.h"
2329 fi
2330 if test x$gas = xyes
2331 then
2332 tmake_file=mips/t-bsd-gas
2333 else
2334 tmake_file=mips/t-bsd
2335 extra_passes="mips-tfile mips-tdump"
2336 fi
2337 if test x$gnu_ld != xyes
2338 then
2339 use_collect2=yes
2340 fi
2341 ;;
2342 changequote(,)dnl
2343 mips-*-riscos[56789]sysv4*)
2344 changequote([,])dnl
2345 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2346 if test x$stabs = xyes; then
2347 tm_file="${tm_file} dbx.h"
2348 fi
2349 xm_file="xm-siglist.h ${xm_file}"
2350 xmake_file=mips/x-sysv
2351 if test x$gas = xyes
2352 then
2353 tmake_file=mips/t-svr4-gas
2354 else
2355 tmake_file=mips/t-svr4
2356 extra_passes="mips-tfile mips-tdump"
2357 fi
2358 if test x$gnu_ld != xyes
2359 then
2360 use_collect2=yes
2361 fi
2362 ;;
2363 changequote(,)dnl
2364 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2365 changequote([,])dnl
2366 tm_file="mips/svr4-4.h ${tm_file}"
2367 if test x$stabs = xyes; then
2368 tm_file="${tm_file} dbx.h"
2369 fi
2370 xm_defines=USG
2371 xmake_file=mips/x-sysv
2372 if test x$gas = xyes
2373 then
2374 tmake_file=mips/t-svr4-gas
2375 else
2376 tmake_file=mips/t-svr4
2377 extra_passes="mips-tfile mips-tdump"
2378 fi
2379 if test x$gnu_ld != xyes
2380 then
2381 use_collect2=yes
2382 fi
2383 ;;
2384 changequote(,)dnl
2385 mips-*-riscos[56789]sysv*)
2386 changequote([,])dnl
2387 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2388 if test x$stabs = xyes; then
2389 tm_file="${tm_file} dbx.h"
2390 fi
2391 xm_defines=USG
2392 xmake_file=mips/x-sysv
2393 if test x$gas = xyes
2394 then
2395 tmake_file=mips/t-svr3-gas
2396 else
2397 tmake_file=mips/t-svr3
2398 extra_passes="mips-tfile mips-tdump"
2399 fi
2400 if test x$gnu_ld != xyes
2401 then
2402 use_collect2=yes
2403 fi
2404 ;;
2405 mips-*-sysv* | mips-*-riscos*sysv*)
2406 tm_file="mips/svr3-4.h ${tm_file}"
2407 if test x$stabs = xyes; then
2408 tm_file="${tm_file} dbx.h"
2409 fi
2410 xm_defines=USG
2411 xmake_file=mips/x-sysv
2412 if test x$gas = xyes
2413 then
2414 tmake_file=mips/t-svr3-gas
2415 else
2416 tmake_file=mips/t-svr3
2417 extra_passes="mips-tfile mips-tdump"
2418 fi
2419 if test x$gnu_ld != xyes
2420 then
2421 use_collect2=yes
2422 fi
2423 ;;
2424 changequote(,)dnl
2425 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2426 changequote([,])dnl
2427 tm_file=mips/mips-5.h
2428 if test x$stabs = xyes; then
2429 tm_file="${tm_file} dbx.h"
2430 fi
2431 if test x$gas = xyes
2432 then
2433 tmake_file=mips/t-mips-gas
2434 else
2435 extra_passes="mips-tfile mips-tdump"
2436 fi
2437 if test x$gnu_ld != xyes
2438 then
2439 use_collect2=yes
2440 fi
2441 ;;
2442 mips-*-gnu*)
2443 ;;
2444 mipsel-*-ecoff*)
2445 tm_file=mips/ecoffl.h
2446 if test x$stabs = xyes; then
2447 tm_file="${tm_file} dbx.h"
2448 fi
2449 tmake_file=mips/t-ecoff
2450 ;;
2451 mips-*-ecoff*)
2452 tm_file="gofast.h mips/ecoff.h"
2453 if test x$stabs = xyes; then
2454 tm_file="${tm_file} dbx.h"
2455 fi
2456 tmake_file=mips/t-ecoff
2457 ;;
2458 mipsel-*-elf*)
2459 tm_file="mips/elfl.h libgloss.h"
2460 tmake_file=mips/t-ecoff
2461 ;;
2462 mips-*-elf*)
2463 tm_file="mips/elf.h libgloss.h"
2464 tmake_file=mips/t-ecoff
2465 ;;
2466 mips64el-*-elf*)
2467 tm_file="mips/elfl64.h libgloss.h"
2468 tmake_file=mips/t-ecoff
2469 ;;
2470 mips64orionel-*-elf*)
2471 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2472 tmake_file=mips/t-ecoff
2473 ;;
2474 mips64-*-elf*)
2475 tm_file="mips/elf64.h libgloss.h"
2476 tmake_file=mips/t-ecoff
2477 ;;
2478 mips64orion-*-elf*)
2479 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2480 tmake_file=mips/t-ecoff
2481 ;;
2482 mips64orion-*-rtems*)
2483 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2484 tmake_file="mips/t-ecoff t-rtems"
2485 ;;
2486 mipstx39el-*-elf*)
2487 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2488 tmake_file=mips/t-r3900
2489 ;;
2490 mipstx39-*-elf*)
2491 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2492 tmake_file=mips/t-r3900
2493 # FIXME mips-elf should be fixed to use crtstuff.
2494 use_collect2=yes
2495 ;;
2496 mips-*-*) # Default MIPS RISC-OS 4.0.
2497 if test x$stabs = xyes; then
2498 tm_file="${tm_file} dbx.h"
2499 fi
2500 if test x$gas = xyes
2501 then
2502 tmake_file=mips/t-mips-gas
2503 else
2504 extra_passes="mips-tfile mips-tdump"
2505 fi
2506 if test x$gnu_ld != xyes
2507 then
2508 use_collect2=yes
2509 fi
2510 ;;
2511 mn10200-*-*)
2512 cpu_type=mn10200
2513 tm_file="mn10200/mn10200.h"
2514 if test x$stabs = xyes
2515 then
2516 tm_file="${tm_file} dbx.h"
2517 fi
2518 use_collect2=no
2519 ;;
2520 mn10300-*-*)
2521 cpu_type=mn10300
2522 tm_file="mn10300/mn10300.h"
2523 if test x$stabs = xyes
2524 then
2525 tm_file="${tm_file} dbx.h"
2526 fi
2527 use_collect2=no
2528 ;;
2529 ns32k-encore-bsd*)
2530 tm_file=ns32k/encore.h
2531 use_collect2=yes
2532 ;;
2533 ns32k-sequent-bsd*)
2534 tm_file=ns32k/sequent.h
2535 use_collect2=yes
2536 ;;
2537 ns32k-tek6100-bsd*)
2538 tm_file=ns32k/tek6100.h
2539 use_collect2=yes
2540 ;;
2541 ns32k-tek6200-bsd*)
2542 tm_file=ns32k/tek6200.h
2543 use_collect2=yes
2544 ;;
2545 # This has not been updated to GCC 2.
2546 # ns32k-ns-genix*)
2547 # xm_defines=USG
2548 # xmake_file=ns32k/x-genix
2549 # tm_file=ns32k/genix.h
2550 # use_collect2=yes
2551 # ;;
2552 ns32k-merlin-*)
2553 tm_file=ns32k/merlin.h
2554 use_collect2=yes
2555 ;;
2556 ns32k-pc532-mach*)
2557 tm_file=ns32k/pc532-mach.h
2558 use_collect2=yes
2559 ;;
2560 ns32k-pc532-minix*)
2561 tm_file=ns32k/pc532-min.h
2562 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2563 xm_defines=USG
2564 use_collect2=yes
2565 ;;
2566 ns32k-*-netbsd*)
2567 tm_file=ns32k/netbsd.h
2568 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2569 # On NetBSD, the headers are already okay, except for math.h.
2570 fixincludes=fixinc.wrap
2571 tmake_file=t-netbsd
2572 ;;
2573 pdp11-*-bsd)
2574 tm_file="${tm_file} pdp11/2bsd.h"
2575 ;;
2576 pdp11-*-*)
2577 ;;
2578 pyramid-*-*)
2579 cpu_type=pyr
2580 xmake_file=pyr/x-pyr
2581 use_collect2=yes
2582 ;;
2583 romp-*-aos*)
2584 use_collect2=yes
2585 ;;
2586 romp-*-mach*)
2587 xmake_file=romp/x-mach
2588 use_collect2=yes
2589 ;;
2590 powerpc-*-beos*)
2591 cpu_type=rs6000
2592 tm_file=rs6000/beos.h
2593 xm_file=rs6000/xm-beos.h
2594 tmake_file=rs6000/t-beos
2595 xmake_file=rs6000/x-beos
2596 ;;
2597 powerpc-*-sysv* | powerpc-*-elf*)
2598 tm_file=rs6000/sysv4.h
2599 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2600 xm_defines="USG POSIX"
2601 extra_headers=ppc-asm.h
2602 if test x$gas = xyes
2603 then
2604 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2605 else
2606 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2607 fi
2608 xmake_file=rs6000/x-sysv4
2609 ;;
2610 powerpc-*-eabiaix*)
2611 tm_file=rs6000/eabiaix.h
2612 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2613 fixincludes=Makefile.in
2614 extra_headers=ppc-asm.h
2615 ;;
2616 powerpc-*-eabisim*)
2617 tm_file=rs6000/eabisim.h
2618 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2619 fixincludes=Makefile.in
2620 extra_headers=ppc-asm.h
2621 ;;
2622 powerpc-*-eabi*)
2623 tm_file=rs6000/eabi.h
2624 if test x$gas = xyes
2625 then
2626 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2627 else
2628 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2629 fi
2630 fixincludes=Makefile.in
2631 extra_headers=ppc-asm.h
2632 ;;
2633 powerpc-*-rtems*)
2634 tm_file=rs6000/rtems.h
2635 if test x$gas = xyes
2636 then
2637 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2638 else
2639 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2640 fi
2641 fixincludes=Makefile.in
2642 extra_headers=ppc-asm.h
2643 ;;
2644 powerpc-*-linux-gnulibc1)
2645 tm_file=rs6000/linux.h
2646 xm_file=rs6000/xm-sysv4.h
2647 out_file=rs6000/rs6000.c
2648 if test x$gas = xyes
2649 then
2650 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2651 else
2652 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2653 fi
2654 xmake_file=x-linux
2655 fixincludes=Makefile.in
2656 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2657 extra_headers=ppc-asm.h
2658 if test x$enable_threads = xyes; then
2659 thread_file='posix'
2660 fi
2661 ;;
2662 powerpc-*-linux-gnu*)
2663 tm_file=rs6000/linux.h
2664 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2665 xm_defines="USG ${xm_defines}"
2666 out_file=rs6000/rs6000.c
2667 if test x$gas = xyes
2668 then
2669 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2670 else
2671 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2672 fi
2673 xmake_file=x-linux
2674 fixincludes=Makefile.in
2675 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2676 extra_headers=ppc-asm.h
2677 if test x$enable_threads = xyes; then
2678 thread_file='posix'
2679 fi
2680 ;;
2681 powerpc-wrs-vxworks*)
2682 cpu_type=rs6000
2683 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2684 xm_defines="USG POSIX"
2685 tm_file=rs6000/vxppc.h
2686 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2687 extra_headers=ppc-asm.h
2688 thread_file='vxworks'
2689 ;;
2690 powerpcle-*-sysv* | powerpcle-*-elf*)
2691 tm_file=rs6000/sysv4le.h
2692 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2693 xm_defines="USG POSIX"
2694 if test x$gas = xyes
2695 then
2696 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2697 else
2698 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2699 fi
2700 xmake_file=rs6000/x-sysv4
2701 extra_headers=ppc-asm.h
2702 ;;
2703 powerpcle-*-eabisim*)
2704 tm_file=rs6000/eabilesim.h
2705 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2706 fixincludes=Makefile.in
2707 extra_headers=ppc-asm.h
2708 ;;
2709 powerpcle-*-eabi*)
2710 tm_file=rs6000/eabile.h
2711 if test x$gas = xyes
2712 then
2713 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2714 else
2715 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2716 fi
2717 fixincludes=Makefile.in
2718 extra_headers=ppc-asm.h
2719 ;;
2720 powerpcle-*-winnt* )
2721 tm_file=rs6000/win-nt.h
2722 tmake_file=rs6000/t-winnt
2723 # extra_objs=pe.o
2724 fixincludes=Makefile.in
2725 if test x$enable_threads = xyes; then
2726 thread_file='win32'
2727 fi
2728 extra_headers=ppc-asm.h
2729 ;;
2730 powerpcle-*-pe | powerpcle-*-cygwin32)
2731 tm_file=rs6000/cygwin32.h
2732 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2733 tmake_file=rs6000/t-winnt
2734 xmake_file=rs6000/x-cygwin32
2735 # extra_objs=pe.o
2736 fixincludes=Makefile.in
2737 if test x$enable_threads = xyes; then
2738 thread_file='win32'
2739 fi
2740 exeext=.exe
2741 extra_headers=ppc-asm.h
2742 ;;
2743 powerpcle-*-solaris2*)
2744 tm_file=rs6000/sol2.h
2745 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2746 xm_defines="USG POSIX"
2747 if test x$gas = xyes
2748 then
2749 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2750 else
2751 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2752 fi
2753 xmake_file=rs6000/x-sysv4
2754 case $machine in
2755 changequote(,)dnl
2756 *-*-solaris2.[0-4])
2757 changequote([,])dnl
2758 fixincludes=fixinc.svr4;;
2759 *)
2760 fixincludes=fixinc.wrap;;
2761 esac
2762 extra_headers=ppc-asm.h
2763 ;;
2764 changequote(,)dnl
2765 rs6000-ibm-aix3.[01]*)
2766 changequote([,])dnl
2767 tm_file=rs6000/aix31.h
2768 xmake_file=rs6000/x-aix31
2769 use_collect2=yes
2770 ;;
2771 changequote(,)dnl
2772 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2773 changequote([,])dnl
2774 tm_file=rs6000/aix3newas.h
2775 if test x$host != x$target
2776 then
2777 tmake_file=rs6000/t-xnewas
2778 else
2779 tmake_file=rs6000/t-newas
2780 fi
2781 use_collect2=yes
2782 ;;
2783 changequote(,)dnl
2784 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2785 changequote([,])dnl
2786 tm_file=rs6000/aix41.h
2787 if test x$host != x$target
2788 then
2789 tmake_file=rs6000/t-xnewas
2790 else
2791 tmake_file=rs6000/t-newas
2792 fi
2793 xmake_file=rs6000/x-aix41
2794 use_collect2=yes
2795 ;;
2796 changequote(,)dnl
2797 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2798 changequote([,])dnl
2799 tm_file=rs6000/aix43.h
2800 if test x$host != x$target
2801 then
2802 tmake_file=rs6000/t-xaix43
2803 else
2804 tmake_file=rs6000/t-aix43
2805 fi
2806 xmake_file=rs6000/x-aix43
2807 use_collect2=yes
2808 ;;
2809 changequote(,)dnl
2810 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2811 changequote([,])dnl
2812 tm_file=rs6000/aix43.h
2813 if test x$host != x$target
2814 then
2815 tmake_file=rs6000/t-xaix43
2816 else
2817 tmake_file=rs6000/t-aix43
2818 fi
2819 xmake_file=rs6000/x-aix43
2820 use_collect2=yes
2821 ;;
2822 rs6000-ibm-aix*)
2823 use_collect2=yes
2824 ;;
2825 rs6000-bull-bosx)
2826 use_collect2=yes
2827 ;;
2828 rs6000-*-mach*)
2829 tm_file=rs6000/mach.h
2830 xm_file="${xm_file} rs6000/xm-mach.h"
2831 xmake_file=rs6000/x-mach
2832 use_collect2=yes
2833 ;;
2834 rs6000-*-lynxos*)
2835 tm_file=rs6000/lynx.h
2836 xm_file=rs6000/xm-lynx.h
2837 tmake_file=rs6000/t-rs6000
2838 xmake_file=rs6000/x-lynx
2839 use_collect2=yes
2840 ;;
2841 sh-*-elf*)
2842 tm_file=sh/elf.h
2843 float_format=sh
2844 ;;
2845 sh-*-rtemself*)
2846 tmake_file="sh/t-sh t-rtems"
2847 tm_file=sh/rtemself.h
2848 float_format=sh
2849 ;;
2850 sh-*-rtems*)
2851 tmake_file="sh/t-sh t-rtems"
2852 tm_file=sh/rtems.h
2853 float_format=sh
2854 ;;
2855 sh-*-*)
2856 float_format=sh
2857 ;;
2858 sparc-tti-*)
2859 tm_file=sparc/pbd.h
2860 xm_file="xm-alloca.h ${xm_file}"
2861 xm_defines=USG
2862 ;;
2863 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2864 tm_file=sparc/vxsparc.h
2865 tmake_file=sparc/t-vxsparc
2866 use_collect2=yes
2867 thread_file='vxworks'
2868 ;;
2869 sparc-*-aout*)
2870 tmake_file=sparc/t-sparcbare
2871 tm_file="sparc/aout.h libgloss.h"
2872 ;;
2873 sparc-*-netbsd*)
2874 tm_file=sparc/netbsd.h
2875 # On NetBSD, the headers are already okay, except for math.h.
2876 fixincludes=fixinc.wrap
2877 tmake_file=t-netbsd
2878 ;;
2879 sparc-*-bsd*)
2880 tm_file=sparc/bsd.h
2881 ;;
2882 sparc-*-elf*)
2883 tm_file=sparc/elf.h
2884 tmake_file=sparc/t-elf
2885 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2886 #float_format=i128
2887 float_format=i64
2888 ;;
2889 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2890 xm_file="${xm_file} sparc/xm-linux.h"
2891 tm_file=sparc/linux-aout.h
2892 xmake_file=x-linux
2893 fixincludes=Makefile.in #On Linux, the headers are ok already.
2894 gnu_ld=yes
2895 ;;
2896 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2897 xm_file="${xm_file} sparc/xm-linux.h"
2898 xmake_file=x-linux
2899 tm_file=sparc/linux.h
2900 tmake_file="t-linux t-linux-gnulibc1"
2901 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2902 fixincludes=Makefile.in #On Linux, the headers are ok already.
2903 gnu_ld=yes
2904 ;;
2905 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2906 xm_file="${xm_file} sparc/xm-linux.h"
2907 xmake_file=x-linux
2908 tm_file=sparc/linux.h
2909 tmake_file="t-linux"
2910 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2911 fixincludes=Makefile.in #On Linux, the headers are ok already.
2912 gnu_ld=yes
2913 if test x$enable_threads = xyes; then
2914 thread_file='posix'
2915 fi
2916 ;;
2917 sparc-*-lynxos*)
2918 if test x$gas = xyes
2919 then
2920 tm_file=sparc/lynx.h
2921 else
2922 tm_file=sparc/lynx-ng.h
2923 fi
2924 xm_file=sparc/xm-lynx.h
2925 tmake_file=sparc/t-sunos41
2926 xmake_file=x-lynx
2927 ;;
2928 sparc-*-rtems*)
2929 tmake_file="sparc/t-sparcbare t-rtems"
2930 tm_file=sparc/rtems.h
2931 ;;
2932 sparcv9-*-solaris2*)
2933 tm_file=sparc/sol2-sld-64.h
2934 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2935 xm_defines="USG POSIX"
2936 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2937 xmake_file=sparc/x-sysv4
2938 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2939 fixincludes=fixinc.wrap
2940 float_format=i128
2941 if test x${enable_threads} = x ; then
2942 enable_threads=$have_pthread_h
2943 if test x${enable_threads} = x ; then
2944 enable_threads=$have_thread_h
2945 fi
2946 fi
2947 if test x${enable_threads} = xyes ; then
2948 if test x${have_pthread_h} = xyes ; then
2949 thread_file='posix'
2950 else
2951 thread_file='solaris'
2952 fi
2953 fi
2954 ;;
2955 sparc-*-solaris2*)
2956 if test x$gnu_ld = xyes
2957 then
2958 tm_file=sparc/sol2.h
2959 else
2960 tm_file=sparc/sol2-sld.h
2961 fi
2962 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2963 xm_defines="USG POSIX"
2964 tmake_file=sparc/t-sol2
2965 xmake_file=sparc/x-sysv4
2966 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2967 case $machine in
2968 changequote(,)dnl
2969 *-*-solaris2.[0-4])
2970 changequote([,])dnl
2971 fixincludes=fixinc.svr4;;
2972 *)
2973 fixincludes=fixinc.wrap;;
2974 esac
2975 float_format=i128
2976 if test x${enable_threads} = x; then
2977 enable_threads=$have_pthread_h
2978 if test x${enable_threads} = x; then
2979 enable_threads=$have_thread_h
2980 fi
2981 fi
2982 if test x${enable_threads} = xyes; then
2983 if test x${have_pthread_h} = xyes; then
2984 thread_file='posix'
2985 else
2986 thread_file='solaris'
2987 fi
2988 fi
2989 ;;
2990 sparc-*-sunos4.0*)
2991 tm_file=sparc/sunos4.h
2992 tmake_file=sparc/t-sunos40
2993 use_collect2=yes
2994 ;;
2995 sparc-*-sunos4*)
2996 tm_file=sparc/sunos4.h
2997 tmake_file=sparc/t-sunos41
2998 use_collect2=yes
2999 if test x$gas = xyes; then
3000 tm_file="${tm_file} sparc/sun4gas.h"
3001 fi
3002 ;;
3003 sparc-*-sunos3*)
3004 tm_file=sparc/sun4o3.h
3005 use_collect2=yes
3006 ;;
3007 sparc-*-sysv4*)
3008 tm_file=sparc/sysv4.h
3009 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3010 xm_defines="USG POSIX"
3011 tmake_file=t-svr4
3012 xmake_file=sparc/x-sysv4
3013 extra_parts="crtbegin.o crtend.o"
3014 ;;
3015 sparc-*-vxsim*)
3016 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3017 xm_defines="USG POSIX"
3018 tm_file=sparc/vxsim.h
3019 tmake_file=sparc/t-vxsparc
3020 xmake_file=sparc/x-sysv4
3021 ;;
3022 sparclet-*-aout*)
3023 tm_file="sparc/splet.h libgloss.h"
3024 tmake_file=sparc/t-splet
3025 ;;
3026 sparclite-*-coff*)
3027 tm_file="sparc/litecoff.h libgloss.h"
3028 tmake_file=sparc/t-sparclite
3029 ;;
3030 sparclite-*-aout*)
3031 tm_file="sparc/lite.h aoutos.h libgloss.h"
3032 tmake_file=sparc/t-sparclite
3033 ;;
3034 sparc64-*-aout*)
3035 tmake_file=sparc/t-sp64
3036 tm_file=sparc/sp64-aout.h
3037 ;;
3038 sparc64-*-elf*)
3039 tmake_file=sparc/t-sp64
3040 tm_file=sparc/sp64-elf.h
3041 extra_parts="crtbegin.o crtend.o"
3042 ;;
3043 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3044 tmake_file="t-linux sparc/t-linux64"
3045 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3046 tm_file=sparc/linux64.h
3047 xmake_file=x-linux
3048 fixincludes=Makefile.in # The headers are ok already.
3049 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3050 gnu_ld=yes
3051 ;;
3052 # This hasn't been upgraded to GCC 2.
3053 # tahoe-harris-*) # Harris tahoe, using COFF.
3054 # tm_file=tahoe/harris.h
3055 # ;;
3056 # tahoe-*-bsd*) # tahoe running BSD
3057 # ;;
3058 thumb-*-coff* | thumbel-*-coff*)
3059 tm_file=arm/tcoff.h
3060 out_file=arm/thumb.c
3061 xm_file=arm/xm-thumb.h
3062 md_file=arm/thumb.md
3063 tmake_file=arm/t-thumb
3064 fixincludes=Makefile.in # There is nothing to fix
3065 ;;
3066 # This hasn't been upgraded to GCC 2.
3067 # tron-*-*)
3068 # cpu_type=gmicro
3069 # use_collect2=yes
3070 # ;;
3071 v850-*-*)
3072 cpu_type=v850
3073 tm_file="v850/v850.h"
3074 xm_file="v850/xm-v850.h"
3075 tmake_file=v850/t-v850
3076 if test x$stabs = xyes
3077 then
3078 tm_file="${tm_file} dbx.h"
3079 fi
3080 use_collect2=no
3081 ;;
3082 vax-*-bsd*) # vaxen running BSD
3083 use_collect2=yes
3084 float_format=vax
3085 ;;
3086 vax-*-sysv*) # vaxen running system V
3087 tm_file="${tm_file} vax/vaxv.h"
3088 xm_defines=USG
3089 float_format=vax
3090 ;;
3091 vax-*-netbsd*)
3092 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3093 # On NetBSD, the headers are already okay, except for math.h.
3094 fixincludes=fixinc.wrap
3095 tmake_file=t-netbsd
3096 float_format=vax
3097 ;;
3098 vax-*-ultrix*) # vaxen running ultrix
3099 tm_file="${tm_file} vax/ultrix.h"
3100 use_collect2=yes
3101 float_format=vax
3102 ;;
3103 vax-*-vms*) # vaxen running VMS
3104 xm_file=vax/xm-vms.h
3105 tm_file=vax/vms.h
3106 float_format=vax
3107 ;;
3108 vax-*-*) # vax default entry
3109 float_format=vax
3110 ;;
3111 we32k-att-sysv*)
3112 xm_file="${xm_file} xm-svr3"
3113 use_collect2=yes
3114 ;;
3115 *)
3116 echo "Configuration $machine not supported" 1>&2
3117 exit 1
3118 ;;
3119 esac
3120
3121 case $machine in
3122 *-*-linux-gnu*)
3123 ;; # Existing GNU/Linux systems do not use the GNU setup.
3124 *-*-gnu*)
3125 # On the GNU system, the setup is just about the same on
3126 # each different CPU. The specific machines that GNU
3127 # supports are matched above and just set $cpu_type.
3128 xm_file="xm-gnu.h ${xm_file}"
3129 tm_file=${cpu_type}/gnu.h
3130 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3131 # GNU always uses ELF.
3132 elf=yes
3133 # GNU tools are the only tools.
3134 gnu_ld=yes
3135 gas=yes
3136 # On GNU, the headers are already okay.
3137 fixincludes=Makefile.in
3138 xmake_file=x-linux # These details are the same as Linux.
3139 tmake_file=t-gnu # These are not.
3140 ;;
3141 *-*-sysv4*)
3142 fixincludes=fixinc.svr4
3143 xmake_try_sysv=x-sysv
3144 install_headers_dir=install-headers-cpio
3145 ;;
3146 *-*-sysv*)
3147 install_headers_dir=install-headers-cpio
3148 ;;
3149 esac
3150
3151 # Distinguish i[34567]86
3152 # Also, do not run mips-tfile on MIPS if using gas.
3153 # Process --with-cpu= for PowerPC/rs6000
3154 target_cpu_default2=
3155 case $machine in
3156 i486-*-*)
3157 target_cpu_default2=1
3158 ;;
3159 i586-*-*)
3160 target_cpu_default2=2
3161 ;;
3162 i686-*-* | i786-*-*)
3163 target_cpu_default2=3
3164 ;;
3165 alpha*-*-*)
3166 case $machine in
3167 alphaev6*)
3168 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3169 ;;
3170 alphapca56*)
3171 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3172 ;;
3173 alphaev56*)
3174 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3175 ;;
3176 alphaev5*)
3177 target_cpu_default2="MASK_CPU_EV5"
3178 ;;
3179 esac
3180
3181 if test x$gas = xyes
3182 then
3183 if test "$target_cpu_default2" = ""
3184 then
3185 target_cpu_default2="MASK_GAS"
3186 else
3187 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3188 fi
3189 fi
3190 ;;
3191 arm*-*-*)
3192 case "x$with_cpu" in
3193 x)
3194 # The most generic
3195 target_cpu_default2="TARGET_CPU_generic"
3196 ;;
3197
3198 # Distinguish cores, and major variants
3199 # arm7m doesn't exist, but D & I don't affect code
3200 xarm[23678] | xarm250 | xarm[67][01]0 \
3201 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3202 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3203 | xstrongarm | xstrongarm110)
3204 target_cpu_default2="TARGET_CPU_$with_cpu"
3205 ;;
3206
3207 xyes | xno)
3208 echo "--with-cpu must be passed a value" 1>&2
3209 exit 1
3210 ;;
3211
3212 *)
3213 if test x$pass2done = xyes
3214 then
3215 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3216 exit 1
3217 fi
3218 ;;
3219 esac
3220 ;;
3221
3222 mips*-*-ecoff* | mips*-*-elf*)
3223 if test x$gas = xyes
3224 then
3225 if test x$gnu_ld = xyes
3226 then
3227 target_cpu_default2=20
3228 else
3229 target_cpu_default2=16
3230 fi
3231 fi
3232 ;;
3233 mips*-*-*)
3234 if test x$gas = xyes
3235 then
3236 target_cpu_default2=16
3237 fi
3238 ;;
3239 powerpc*-*-* | rs6000-*-*)
3240 case "x$with_cpu" in
3241 x)
3242 ;;
3243
3244 xcommon | xpower | xpower2 | xpowerpc | xrios \
3245 | xrios1 | xrios2 | xrsc | xrsc1 \
3246 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3247 | x403 | x505 | x801 | x821 | x823 | x860)
3248 target_cpu_default2="\"$with_cpu\""
3249 ;;
3250
3251 xyes | xno)
3252 echo "--with-cpu must be passed a value" 1>&2
3253 exit 1
3254 ;;
3255
3256 *)
3257 if test x$pass2done = xyes
3258 then
3259 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3260 exit 1
3261 fi
3262 ;;
3263 esac
3264 ;;
3265 sparc*-*-*)
3266 case ".$with_cpu" in
3267 .)
3268 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3269 ;;
3270 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3271 target_cpu_default2="TARGET_CPU_$with_cpu"
3272 ;;
3273 *)
3274 if test x$pass2done = xyes
3275 then
3276 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3277 exit 1
3278 fi
3279 ;;
3280 esac
3281 ;;
3282 esac
3283
3284 if test "$target_cpu_default2" != ""
3285 then
3286 if test "$target_cpu_default" != ""
3287 then
3288 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3289 else
3290 target_cpu_default=$target_cpu_default2
3291 fi
3292 fi
3293
3294 # No need for collect2 if we have the GNU linker.
3295 # Actually, there is now; GNU ld doesn't handle the EH info or
3296 # collecting for shared libraries.
3297 #case x$gnu_ld in
3298 #xyes)
3299 # use_collect2=
3300 # ;;
3301 #esac
3302
3303 # Save data on machine being used to compile GCC in build_xm_file.
3304 # Save data on host machine in vars host_xm_file and host_xmake_file.
3305 if test x$pass1done = x
3306 then
3307 if test x"$xm_file" = x
3308 then build_xm_file=$cpu_type/xm-$cpu_type.h
3309 else build_xm_file=$xm_file
3310 fi
3311 build_xm_defines=$xm_defines
3312 build_install_headers_dir=$install_headers_dir
3313 build_exeext=$exeext
3314 pass1done=yes
3315 else
3316 if test x$pass2done = x
3317 then
3318 if test x"$xm_file" = x
3319 then host_xm_file=$cpu_type/xm-$cpu_type.h
3320 else host_xm_file=$xm_file
3321 fi
3322 host_xm_defines=$xm_defines
3323 if test x"$xmake_file" = x
3324 then xmake_file=$cpu_type/x-$cpu_type
3325 fi
3326 host_xmake_file="$xmake_file"
3327 host_truncate_target=$truncate_target
3328 host_extra_gcc_objs=$extra_gcc_objs
3329 host_extra_objs=$extra_host_objs
3330 host_exeext=$exeext
3331 pass2done=yes
3332 fi
3333 fi
3334 done
3335
3336 extra_objs="${host_extra_objs} ${extra_objs}"
3337
3338 # Default the target-machine variables that were not explicitly set.
3339 if test x"$tm_file" = x
3340 then tm_file=$cpu_type/$cpu_type.h; fi
3341
3342 if test x$extra_headers = x
3343 then extra_headers=; fi
3344
3345 if test x"$xm_file" = x
3346 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3347
3348 if test x$md_file = x
3349 then md_file=$cpu_type/$cpu_type.md; fi
3350
3351 if test x$out_file = x
3352 then out_file=$cpu_type/$cpu_type.c; fi
3353
3354 if test x"$tmake_file" = x
3355 then tmake_file=$cpu_type/t-$cpu_type
3356 fi
3357
3358 if test x$float_format = x
3359 then float_format=i64
3360 fi
3361
3362 if test x$enable_haifa = x
3363 then
3364 case $target in
3365 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3366 enable_haifa=yes;;
3367 esac
3368 fi
3369
3370 # Say what files are being used for the output code and MD file.
3371 echo "Using \`$srcdir/config/$out_file' to output insns."
3372 echo "Using \`$srcdir/config/$md_file' as machine description file."
3373
3374 count=a
3375 for f in $tm_file; do
3376 count=${count}x
3377 done
3378 if test $count = ax; then
3379 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3380 else
3381 echo "Using the following target machine macro files:"
3382 for f in $tm_file; do
3383 echo " $srcdir/config/$f"
3384 done
3385 fi
3386
3387 count=a
3388 for f in $host_xm_file; do
3389 count=${count}x
3390 done
3391 if test $count = ax; then
3392 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3393 else
3394 echo "Using the following host machine macro files:"
3395 for f in $host_xm_file; do
3396 echo " $srcdir/config/$f"
3397 done
3398 fi
3399
3400 if test "$host_xm_file" != "$build_xm_file"; then
3401 count=a
3402 for f in $build_xm_file; do
3403 count=${count}x
3404 done
3405 if test $count = ax; then
3406 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3407 else
3408 echo "Using the following build machine macro files:"
3409 for f in $build_xm_file; do
3410 echo " $srcdir/config/$f"
3411 done
3412 fi
3413 fi
3414
3415 if test x$thread_file = x; then
3416 if test x$target_thread_file != x; then
3417 thread_file=$target_thread_file
3418 else
3419 thread_file='single'
3420 fi
3421 fi
3422
3423 # Set up the header files.
3424 # $links is the list of header files to create.
3425 # $vars is the list of shell variables with file names to include.
3426 # auto-host.h is the file containing items generated by autoconf and is
3427 # the first file included by config.h.
3428 null_defines=
3429 host_xm_file="auto-host.h ${host_xm_file}"
3430
3431 # If host=build, it is correct to have hconfig include auto-host.h
3432 # as well. If host!=build, we are in error and need to do more
3433 # work to find out the build config parameters.
3434 if test x$host = x$build
3435 then
3436 build_xm_file="auto-host.h ${build_xm_file}"
3437 else
3438 # We create a subdir, then run autoconf in the subdir.
3439 # To prevent recursion we set host and build for the new
3440 # invocation of configure to the build for this invocation
3441 # of configure.
3442 tempdir=build.$$
3443 rm -rf $tempdir
3444 mkdir $tempdir
3445 cd $tempdir
3446 case ${srcdir} in
3447 /*) realsrcdir=${srcdir};;
3448 *) realsrcdir=../${srcdir};;
3449 esac
3450 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3451 --target=$target --host=$build --build=$build
3452
3453 # We just finished tests for the build machine, so rename
3454 # the file auto-build.h in the gcc directory.
3455 mv auto-host.h ../auto-build.h
3456 cd ..
3457 rm -rf $tempdir
3458 build_xm_file="auto-build.h ${build_xm_file}"
3459 fi
3460
3461 vars="host_xm_file tm_file xm_file build_xm_file"
3462 links="config.h tm.h tconfig.h hconfig.h"
3463 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3464
3465 rm -f config.bak
3466 if test -f config.status; then mv -f config.status config.bak; fi
3467
3468 # Make the links.
3469 while test -n "$vars"
3470 do
3471 set $vars; var=$1; shift; vars=$*
3472 set $links; link=$1; shift; links=$*
3473 set $defines; define=$1; shift; defines=$*
3474
3475 rm -f $link
3476
3477 # Define TARGET_CPU_DEFAULT if the system wants one.
3478 # This substitutes for lots of *.h files.
3479 if test "$target_cpu_default" != "" -a $link = tm.h
3480 then
3481 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3482 fi
3483
3484 for file in `eval echo '$'$var`; do
3485 echo "#include \"$file\"" >>$link
3486 done
3487
3488 for def in `eval echo '$'$define`; do
3489 echo "#ifndef $def" >>$link
3490 echo "#define $def" >>$link
3491 echo "#endif" >>$link
3492 done
3493 done
3494
3495 # Truncate the target if necessary
3496 if test x$host_truncate_target != x; then
3497 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3498 fi
3499
3500 # Get the version trigger filename from the toplevel
3501 if test "${with_gcc_version_trigger+set}" = set; then
3502 gcc_version_trigger=$with_gcc_version_trigger
3503 else
3504 gcc_version_trigger=${srcdir}/version.c
3505 fi
3506 changequote(,)dnl
3507 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3508 changequote([,])dnl
3509
3510 # Get an absolute path to the GCC top-level source directory
3511 holddir=`pwd`
3512 cd $srcdir
3513 topdir=`pwd`
3514 cd $holddir
3515
3516 # Conditionalize the makefile for this host machine.
3517 # Make-host contains the concatenation of all host makefile fragments
3518 # [there can be more than one]. This file is built by configure.frag.
3519 host_overrides=Make-host
3520 dep_host_xmake_file=
3521 for f in .. ${host_xmake_file}
3522 do
3523 if test -f ${srcdir}/config/$f
3524 then
3525 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3526 fi
3527 done
3528
3529 # Conditionalize the makefile for this target machine.
3530 # Make-target contains the concatenation of all host makefile fragments
3531 # [there can be more than one]. This file is built by configure.frag.
3532 target_overrides=Make-target
3533 dep_tmake_file=
3534 for f in .. ${tmake_file}
3535 do
3536 if test -f ${srcdir}/config/$f
3537 then
3538 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3539 fi
3540 done
3541
3542 # If the host doesn't support symlinks, modify CC in
3543 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3544 # Otherwise, we can use "CC=$(CC)".
3545 rm -f symtest.tem
3546 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3547 then
3548 cc_set_by_configure="\$(CC)"
3549 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3550 else
3551 rm -f symtest.tem
3552 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3553 then
3554 symbolic_link="cp -p"
3555 else
3556 symbolic_link="cp"
3557 fi
3558 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3559 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3560 fi
3561 rm -f symtest.tem
3562
3563 out_object_file=`basename $out_file .c`.o
3564
3565 tm_file_list=
3566 for f in $tm_file; do
3567 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3568 done
3569
3570 host_xm_file_list=
3571 for f in $host_xm_file; do
3572 if test $f != "auto-host.h"; then
3573 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3574 else
3575 host_xm_file_list="${host_xm_file_list} auto-host.h"
3576 fi
3577 done
3578
3579 build_xm_file_list=
3580 for f in $build_xm_file; do
3581 if test $f != "auto-build.h"; then
3582 if test $f != "auto-host.h"; then
3583 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3584 else
3585 build_xm_file_list="${build_xm_file_list} auto-host.h"
3586 fi
3587 else
3588 build_xm_file_list="${build_xm_file_list} auto-build.h"
3589 fi
3590 done
3591
3592 # Define macro CROSS_COMPILE in compilation
3593 # if this is a cross-compiler.
3594 # Also use all.cross instead of all.internal
3595 # and add cross-make to Makefile.
3596 cross_overrides="/dev/null"
3597 if test x$host != x$target
3598 then
3599 cross_defines="CROSS=-DCROSS_COMPILE"
3600 cross_overrides="${topdir}/cross-make"
3601 fi
3602
3603 # When building gcc with a cross-compiler, we need to fix a few things.
3604 # This must come after cross-make as we want all.build to override
3605 # all.cross.
3606 build_overrides="/dev/null"
3607 if test x$build != x$host
3608 then
3609 build_overrides="${topdir}/build-make"
3610 fi
3611
3612 # Expand extra_headers to include complete path.
3613 # This substitutes for lots of t-* files.
3614 extra_headers_list=
3615 if test "x$extra_headers" = x
3616 then true
3617 else
3618 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3619 for file in $extra_headers;
3620 do
3621 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3622 done
3623 fi
3624
3625 if test x$use_collect2 = xno; then
3626 use_collect2=
3627 fi
3628
3629 # Add a definition of USE_COLLECT2 if system wants one.
3630 # Also tell toplev.c what to do.
3631 # This substitutes for lots of t-* files.
3632 if test x$use_collect2 = x
3633 then
3634 will_use_collect2=
3635 maybe_use_collect2=
3636 else
3637 will_use_collect2="collect2"
3638 maybe_use_collect2="-DUSE_COLLECT2"
3639 fi
3640
3641 # NEED TO CONVERT
3642 # Set MD_DEPS if the real md file is in md.pre-cpp.
3643 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3644 # for line oriented comments, so we must always use a GNU cpp. If
3645 # building gcc with a cross compiler, use the cross compiler just
3646 # built. Otherwise, we can use the cpp just built.
3647 md_file_sub=
3648 if test "x$md_cppflags" = x
3649 then
3650 md_file_sub=$srcdir/config/$md_file
3651 else
3652 md_file=md
3653 fi
3654
3655 # If we have gas in the build tree, make a link to it.
3656 if test -f ../gas/Makefile; then
3657 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3658 fi
3659
3660 # If we have nm in the build tree, make a link to it.
3661 if test -f ../binutils/Makefile; then
3662 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3663 fi
3664
3665 # If we have ld in the build tree, make a link to it.
3666 if test -f ../ld/Makefile; then
3667 # if test x$use_collect2 = x; then
3668 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3669 # else
3670 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3671 # fi
3672 fi
3673
3674 # Figure out what assembler alignment features are present.
3675 AC_MSG_CHECKING(assembler alignment features)
3676 gcc_cv_as=
3677 gcc_cv_as_alignment_features=
3678 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3679 if test -x "$AS"; then
3680 gcc_cv_as=$AS
3681 elif test -x as$host_exeext; then
3682 # Build using assembler in the current directory.
3683 gcc_cv_as=./as$host_exeext
3684 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3685 # Single tree build which includes gas.
3686 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3687 do
3688 changequote(,)dnl
3689 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3690 changequote([,])dnl
3691 if test x$gcc_cv_gas_version != x; then
3692 break
3693 fi
3694 done
3695 changequote(,)dnl
3696 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3697 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3698 changequote([,])dnl
3699 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3700 # Gas version 2.6 and later support for .balign and .p2align.
3701 # bytes to skip when using .p2align.
3702 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
3703 gcc_cv_as_alignment_features=".balign and .p2align"
3704 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3705 fi
3706 # Gas version 2.8 and later support specifying the maximum
3707 # bytes to skip when using .p2align.
3708 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
3709 gcc_cv_as_alignment_features=".p2align including maximum skip"
3710 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3711 fi
3712 fi
3713 elif test x$host = x$target; then
3714 # Native build.
3715 gcc_cv_as=as$host_exeext
3716 fi
3717 if test x$gcc_cv_as != x; then
3718 # Check if we have .balign and .p2align
3719 echo ".balign 4" > conftest.s
3720 echo ".p2align 2" >> conftest.s
3721 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3722 gcc_cv_as_alignment_features=".balign and .p2align"
3723 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3724 fi
3725 rm -f conftest.s conftest.o
3726 # Check if specifying the maximum bytes to skip when
3727 # using .p2align is supported.
3728 echo ".p2align 4,,7" > conftest.s
3729 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3730 gcc_cv_as_alignment_features=".p2align including maximum skip"
3731 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3732 fi
3733 rm -f conftest.s conftest.o
3734 fi
3735 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3736
3737 AC_MSG_CHECKING(assembler subsection support)
3738 gcc_cv_as_subsections=
3739 if test x$gcc_cv_as != x; then
3740 # Check if we have .subsection
3741 echo ".subsection 1" > conftest.s
3742 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3743 gcc_cv_as_subsections=".subsection"
3744 if test -x nm$host_exeext; then
3745 gcc_cv_nm=./nm$host_exeext
3746 elif test x$host = x$target; then
3747 # Native build.
3748 gcc_cv_nm=nm$host_exeext
3749 fi
3750 if test x$gcc_cv_nm != x; then
3751 cat > conftest.s <<EOF
3752 conftest_label1: .word 0
3753 .subsection -1
3754 conftest_label2: .word 0
3755 .previous
3756 EOF
3757 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3758 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3759 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3760 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3761 :
3762 else
3763 gcc_cv_as_subsections="working .subsection -1"
3764 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3765 fi
3766 fi
3767 fi
3768 fi
3769 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3770 fi
3771 AC_MSG_RESULT($gcc_cv_as_subsections)
3772
3773 # Figure out what language subdirectories are present.
3774 subdirs=
3775 for lang in ${srcdir}/*/config-lang.in ..
3776 do
3777 case $lang in
3778 ..) ;;
3779 # The odd quoting in the next line works around
3780 # an apparent bug in bash 1.12 on linux.
3781 changequote(,)dnl
3782 ${srcdir}/ada/config-lang.in)
3783 if test x$gnat = xyes ; then
3784 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3785 fi
3786 ;;
3787 ${srcdir}/[*]/config-lang.in) ;;
3788 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3789 changequote([,])dnl
3790 esac
3791 done
3792
3793 # Make gthr-default.h if we have a thread file.
3794 gthread_flags=
3795 if test $thread_file != single; then
3796 rm -f gthr-default.h
3797 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3798 gthread_flags=-DHAVE_GTHR_DEFAULT
3799 fi
3800 AC_SUBST(gthread_flags)
3801
3802 # Make empty files to contain the specs and options for each language.
3803 # Then add #include lines to for a compiler that has specs and/or options.
3804
3805 lang_specs_files=
3806 lang_options_files=
3807 lang_tree_files=
3808 rm -f specs.h options.h gencheck.h
3809 touch specs.h options.h gencheck.h
3810 for subdir in . $subdirs
3811 do
3812 if test -f $srcdir/$subdir/lang-specs.h; then
3813 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3814 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3815 fi
3816 if test -f $srcdir/$subdir/lang-options.h; then
3817 echo "#include \"$subdir/lang-options.h\"" >>options.h
3818 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3819 fi
3820 if test -f $srcdir/$subdir/$subdir-tree.def; then
3821 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3822 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3823 fi
3824 done
3825
3826 # These (without "all_") are set in each config-lang.in.
3827 # `language' must be a single word so is spelled singularly.
3828 all_languages=
3829 all_boot_languages=
3830 all_compilers=
3831 all_stagestuff=
3832 all_diff_excludes=
3833 all_outputs=Makefile
3834 # List of language makefile fragments.
3835 all_lang_makefiles=
3836 all_headers=
3837 all_lib2funcs=
3838
3839 # Add the language fragments.
3840 # Languages are added via two mechanisms. Some information must be
3841 # recorded in makefile variables, these are defined in config-lang.in.
3842 # We accumulate them and plug them into the main Makefile.
3843 # The other mechanism is a set of hooks for each of the main targets
3844 # like `clean', `install', etc.
3845
3846 language_fragments="Make-lang"
3847 language_hooks="Make-hooks"
3848 oldstyle_subdirs=
3849
3850 for s in .. $subdirs
3851 do
3852 if test $s != ".."
3853 then
3854 language=
3855 boot_language=
3856 compilers=
3857 stagestuff=
3858 diff_excludes=
3859 headers=
3860 outputs=
3861 lib2funcs=
3862 . ${srcdir}/$s/config-lang.in
3863 if test "x$language" = x
3864 then
3865 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3866 exit 1
3867 fi
3868 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3869 all_languages="$all_languages $language"
3870 if test "x$boot_language" = xyes
3871 then
3872 all_boot_languages="$all_boot_languages $language"
3873 fi
3874 all_compilers="$all_compilers $compilers"
3875 all_stagestuff="$all_stagestuff $stagestuff"
3876 all_diff_excludes="$all_diff_excludes $diff_excludes"
3877 all_headers="$all_headers $headers"
3878 all_outputs="$all_outputs $outputs"
3879 if test x$outputs = x
3880 then
3881 oldstyle_subdirs="$oldstyle_subdirs $s"
3882 fi
3883 all_lib2funcs="$all_lib2funcs $lib2funcs"
3884 fi
3885 done
3886
3887 # Since we can't use `::' targets, we link each language in
3888 # with a set of hooks, reached indirectly via lang.${target}.
3889
3890 rm -f Make-hooks
3891 touch Make-hooks
3892 target_list="all.build all.cross start.encap rest.encap \
3893 info dvi \
3894 install-normal install-common install-info install-man \
3895 uninstall distdir \
3896 mostlyclean clean distclean extraclean maintainer-clean \
3897 stage1 stage2 stage3 stage4"
3898 for t in $target_list
3899 do
3900 x=
3901 for l in .. $all_languages
3902 do
3903 if test $l != ".."; then
3904 x="$x $l.$t"
3905 fi
3906 done
3907 echo "lang.$t: $x" >> Make-hooks
3908 done
3909
3910 # If we're not building in srcdir, create .gdbinit.
3911
3912 if test ! -f Makefile.in; then
3913 echo "dir ." > .gdbinit
3914 echo "dir ${srcdir}" >> .gdbinit
3915 if test x$gdb_needs_out_file_path = xyes
3916 then
3917 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3918 fi
3919 if test "x$subdirs" != x; then
3920 for s in $subdirs
3921 do
3922 echo "dir ${srcdir}/$s" >> .gdbinit
3923 done
3924 fi
3925 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3926 fi
3927
3928 # Define variables host_canonical and build_canonical
3929 # because some Cygnus local changes in the Makefile depend on them.
3930 build_canonical=${build}
3931 host_canonical=${host}
3932 target_subdir=
3933 if test "${host}" != "${target}" ; then
3934 target_subdir=${target}/
3935 fi
3936 AC_SUBST(build_canonical)
3937 AC_SUBST(host_canonical)
3938 AC_SUBST(target_subdir)
3939
3940 # If this is using newlib, then define inhibit_libc in
3941 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3942 # libgcc.a, but that's OK because newib should have its own version of
3943 # assert.h.
3944 inhibit_libc=
3945 if test x$with_newlib = xyes; then
3946 inhibit_libc=-Dinhibit_libc
3947 fi
3948 AC_SUBST(inhibit_libc)
3949
3950 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3951 sched_prefix=
3952 sched_cflags=
3953 if test x$enable_haifa = xyes; then
3954 echo "Using the Haifa scheduler."
3955 sched_prefix=haifa-
3956 sched_cflags=-DHAIFA
3957 fi
3958 AC_SUBST(sched_prefix)
3959 AC_SUBST(sched_cflags)
3960 if test x$enable_haifa != x; then
3961 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3962 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3963 if test -f $x; then
3964 echo "Removing $x"
3965 rm -f $x
3966 fi
3967 done
3968 fi
3969
3970 # Warn if using init_priority.
3971 AC_MSG_CHECKING(whether to enable init_priority by default)
3972 if test x$enable_init_priority != xyes; then
3973 enable_init_priority=no
3974 fi
3975 AC_MSG_RESULT($enable_init_priority)
3976
3977 # Nothing to do for FLOAT_H, float_format already handled.
3978 objdir=`pwd`
3979 AC_SUBST(objdir)
3980
3981 # Process the language and host/target makefile fragments.
3982 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3983
3984 # Substitute configuration variables
3985 AC_SUBST(subdirs)
3986 AC_SUBST(all_languages)
3987 AC_SUBST(all_boot_languages)
3988 AC_SUBST(all_compilers)
3989 AC_SUBST(all_lang_makefiles)
3990 AC_SUBST(all_stagestuff)
3991 AC_SUBST(all_diff_excludes)
3992 AC_SUBST(all_lib2funcs)
3993 AC_SUBST(all_headers)
3994 AC_SUBST(cpp_main)
3995 AC_SUBST(extra_passes)
3996 AC_SUBST(extra_programs)
3997 AC_SUBST(extra_parts)
3998 AC_SUBST(extra_c_objs)
3999 AC_SUBST(extra_cxx_objs)
4000 AC_SUBST(extra_cpp_objs)
4001 AC_SUBST(extra_c_flags)
4002 AC_SUBST(extra_objs)
4003 AC_SUBST(host_extra_gcc_objs)
4004 AC_SUBST(extra_headers_list)
4005 AC_SUBST(dep_host_xmake_file)
4006 AC_SUBST(dep_tmake_file)
4007 AC_SUBST(out_file)
4008 AC_SUBST(out_object_file)
4009 AC_SUBST(md_file)
4010 AC_SUBST(tm_file_list)
4011 AC_SUBST(build_xm_file_list)
4012 AC_SUBST(host_xm_file_list)
4013 AC_SUBST(lang_specs_files)
4014 AC_SUBST(lang_options_files)
4015 AC_SUBST(lang_tree_files)
4016 AC_SUBST(thread_file)
4017 AC_SUBST(objc_boehm_gc)
4018 AC_SUBST(gcc_version)
4019 AC_SUBST(gcc_version_trigger)
4020 AC_SUBST(local_prefix)
4021 AC_SUBST(gxx_include_dir)
4022 AC_SUBST(fixincludes)
4023 AC_SUBST(build_install_headers_dir)
4024 AC_SUBST(build_exeext)
4025 AC_SUBST(host_exeext)
4026 AC_SUBST(float_format)
4027 AC_SUBST(will_use_collect2)
4028 AC_SUBST(maybe_use_collect2)
4029 AC_SUBST(cc_set_by_configure)
4030 AC_SUBST(stage_prefix_set_by_configure)
4031 AC_SUBST(install)
4032 AC_SUBST(symbolic_link)
4033
4034 AC_SUBST_FILE(target_overrides)
4035 AC_SUBST_FILE(host_overrides)
4036 AC_SUBST(cross_defines)
4037 AC_SUBST_FILE(cross_overrides)
4038 AC_SUBST_FILE(build_overrides)
4039 AC_SUBST_FILE(language_fragments)
4040 AC_SUBST_FILE(language_hooks)
4041
4042 # Echo that links are built
4043 if test x$host = x$target
4044 then
4045 str1="native "
4046 else
4047 str1="cross-"
4048 str2=" from $host"
4049 fi
4050
4051 if test x$host != x$build
4052 then
4053 str3=" on a $build system"
4054 fi
4055
4056 if test "x$str2" != x || test "x$str3" != x
4057 then
4058 str4=
4059 fi
4060
4061 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4062
4063 if test "x$str2" != x || test "x$str3" != x
4064 then
4065 echo " ${str2}${str3}." 1>&2
4066 fi
4067
4068 # Truncate the target if necessary
4069 if test x$host_truncate_target != x; then
4070 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4071 fi
4072
4073 # Configure the subdirectories
4074 # AC_CONFIG_SUBDIRS($subdirs)
4075
4076 # Create the Makefile
4077 # and configure language subdirectories
4078 AC_OUTPUT($all_outputs,
4079 [
4080 . $srcdir/configure.lang
4081 case x$CONFIG_HEADERS in
4082 xauto-host.h:config.in)
4083 echo > cstamp-h ;;
4084 esac
4085 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4086 # bootstrapping and the installation procedure can still use
4087 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4088 # FLAGS_TO_PASS has been modified to solve the problem there.
4089 # This is virtually a duplicate of what happens in configure.lang; we do
4090 # an extra check to make sure this only happens if ln -s can be used.
4091 if test "$symbolic_link" = "ln -s"; then
4092 for d in .. ${subdirs} ; do
4093 if test $d != ..; then
4094 STARTDIR=`pwd`
4095 cd $d
4096 for t in stage1 stage2 stage3 stage4 include
4097 do
4098 rm -f $t
4099 $symbolic_link ../$t $t 2>/dev/null
4100 done
4101 cd $STARTDIR
4102 fi
4103 done
4104 else true ; fi
4105 ],
4106 [
4107 host='${host}'
4108 build='${build}'
4109 target='${target}'
4110 target_alias='${target_alias}'
4111 srcdir='${srcdir}'
4112 subdirs='${subdirs}'
4113 oldstyle_subdirs='${oldstyle_subdirs}'
4114 symbolic_link='${symbolic_link}'
4115 program_transform_set='${program_transform_set}'
4116 program_transform_name='${program_transform_name}'
4117 dep_host_xmake_file='${dep_host_xmake_file}'
4118 host_xmake_file='${host_xmake_file}'
4119 dep_tmake_file='${dep_tmake_file}'
4120 tmake_file='${tmake_file}'
4121 thread_file='${thread_file}'
4122 gcc_version='${gcc_version}'
4123 gcc_version_trigger='${gcc_version_trigger}'
4124 local_prefix='${local_prefix}'
4125 build_install_headers_dir='${build_install_headers_dir}'
4126 build_exeext='${build_exeext}'
4127 host_exeext='${host_exeext}'
4128 out_file='${out_file}'
4129 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4130 SET_MAKE='${SET_MAKE}'
4131 target_list='${target_list}'
4132 target_overrides='${target_overrides}'
4133 host_overrides='${host_overrides}'
4134 cross_defines='${cross_defines}'
4135 cross_overrides='${cross_overrides}'
4136 build_overrides='${build_overrides}'
4137 ])
This page took 0.467991 seconds and 6 git commands to generate.