1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
8 #GNU CC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2, or (at your option)
13 #GNU CC is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details.
18 #You should have received a copy of the GNU General Public License
19 #along with GNU CC; see the file COPYING. If not, write to
20 #the Free Software Foundation, 59 Temple Place - Suite 330,
21 #Boston, MA 02111-1307, USA.
23 # Initialization and defaults
26 AC_CONFIG_HEADER(auto-host.h:config.in)
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building gcc. Please change the environment variable
57 *** and run configure again.])
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building gcc. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105 [Define to enable the use of a default linker.])
110 [ --with-gnu-as arrange to work with GNU as.],
111 gas_flag="$with_gnu_as",
115 [ --with-as arrange to use the specified as (full pathname).],
116 DEFAULT_ASSEMBLER="$with_as")
117 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118 if test ! -x "$DEFAULT_ASSEMBLER"; then
119 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
120 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124 [Define to enable the use of a default assembler.])
129 [ --with-stabs arrange to use stabs instead of host debug format.],
135 [ --with-elf arrange to use ELF instead of host debug format.],
139 # Specify the local prefix
141 AC_ARG_WITH(local-prefix,
142 [ --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
146 *) local_prefix=$with_local_prefix ;;
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151 local_prefix=/usr/local
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
165 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
168 if test x${gcc_gxx_include_dir} = x; then
169 if test x${enable_version_specific_runtime_libs} = xyes; then
170 gcc_gxx_include_dir='${libsubdir}/include/g++'
172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [ --enable-checking[=LIST]
182 enable expensive run-time checks. With LIST,
183 enable only specific categories of checks.
184 Categories are: misc,tree,rtl,gc,gcac; default
190 ac_gc_always_collect=
191 case "${enableval}" in
192 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
194 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
195 set fnord $enableval; shift
200 misc) ac_checking=1 ;;
201 tree) ac_tree_checking=1 ;;
202 rtl) ac_rtl_checking=1 ;;
203 gc) ac_gc_checking=1 ;;
204 gcac) ac_gc_always_collect=1 ;;
205 *) AC_MSG_ERROR(unknown check category $check) ;;
211 # Enable some checks by default for development versions of GCC
212 [ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;])
213 if test x$ac_checking != x ; then
214 AC_DEFINE(ENABLE_CHECKING, 1,
215 [Define if you want more run-time sanity checks. This one gets a grab
216 bag of miscellaneous but relatively cheap checks.])
218 if test x$ac_tree_checking != x ; then
219 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
220 [Define if you want all operations on trees (the basic data
221 structure of the front ends) to be checked for dynamic type safety
222 at runtime. This is moderately expensive.])
224 if test x$ac_rtl_checking != x ; then
225 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
226 [Define if you want all operations on RTL (the basic data structure
227 of the optimizer and back end) to be checked for dynamic type safety
228 at runtime. This is quite expensive.])
230 if test x$ac_gc_checking != x ; then
231 AC_DEFINE(ENABLE_GC_CHECKING, 1,
232 [Define if you want the garbage collector to do object poisoning and
233 other memory allocation checks. This is quite expensive.])
235 if test x$ac_gc_always_collect != x ; then
236 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
237 [Define if you want the garbage collector to operate in maximally
238 paranoid mode, validating the entire heap and collecting garbage at
239 every opportunity. This is extremely expensive.])
244 [ --disable-cpp don't provide a user-visible C preprocessor.],
245 [], [enable_cpp=yes])
247 AC_ARG_WITH(cpp_install_dir,
248 [ --with-cpp-install-dir=DIR
249 install the user visible C preprocessor in DIR
250 (relative to PREFIX) as well as PREFIX/bin.],
251 [if test x$withval = xyes; then
252 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
253 elif test x$withval != xno; then
254 cpp_install_dir=$withval
257 # Link cpplib into the compiler proper, for C/C++/ObjC. Defaults to on.
258 maybe_cpplib=libcpp.a
259 AC_ARG_ENABLE(c-cpplib,
260 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
261 (HIGHLY EXPERIMENTAL).],
262 [if test x$enable_c_cpplib != xyes; then
266 if test x$maybe_cpplib != x ; then
267 AC_DEFINE(USE_CPPLIB, 1,
268 [Define if you want the preprocessor merged into the C and C++ compilers.])
270 AC_SUBST(maybe_cpplib)
272 # Enable Multibyte Characters for C/C++
273 AC_ARG_ENABLE(c-mbchar,
274 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
275 if test x$enable_c_mbchar != xno; then
276 AC_DEFINE(MULTIBYTE_CHARS, 1,
277 [Define if you want the C and C++ compilers to support multibyte
278 character sets for source code.])
282 # Pass with no value to take the default
283 # Pass with a value to specify a thread package
284 AC_ARG_ENABLE(threads,
285 [ --enable-threads enable thread usage for target GCC.
286 --enable-threads=LIB use LIB thread package for target GCC.],,
289 enable_threads_flag=$enable_threads
290 # Check if a valid thread package
291 case x${enable_threads_flag} in
294 target_thread_file='single'
298 target_thread_file=''
300 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
301 xsolaris | xwin32 | xdce | xvxworks | xaix)
302 target_thread_file=$enable_threads_flag
305 echo "$enable_threads is an unknown thread package" 1>&2
310 AC_ARG_ENABLE(objc-gc,
311 [ --enable-objc-gc enable the use of Boehm's garbage collector with
312 the GNU Objective-C runtime.],
313 if test x$enable_objc_gc = xno; then
321 [ --with-dwarf2 force the default debug format to be DWARF2.],
322 dwarf2="$with_dwarf2",
325 AC_ARG_ENABLE(shared,
326 [ --disable-shared don't provide a shared libgcc.],
327 [], [enable_shared=yes])
328 AC_SUBST(enable_shared)
330 # Determine the host, build, and target systems
333 # Find the native compiler
336 # autoconf is lame and doesn't give us any substitution variable for this.
337 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
338 NO_MINUS_C_MINUS_O=yes
340 OUTPUT_OPTION='-o $@'
342 AC_SUBST(NO_MINUS_C_MINUS_O)
343 AC_SUBST(OUTPUT_OPTION)
347 AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
348 ac_cv_prog_cc_no_long_long,
349 [save_CFLAGS="$CFLAGS"
350 CFLAGS="-Wno-long-long"
351 AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
352 ac_cv_prog_cc_no_long_long=no)
353 CFLAGS="$save_CFLAGS"])
355 if test $ac_cv_prog_cc_no_long_long = yes; then
356 strict1_warn="-pedantic -Wno-long-long"
358 AC_SUBST(strict1_warn)
360 # If the native compiler is GCC, we can enable warnings even in stage1.
361 # That's useful for people building cross-compilers, or just running a
364 if test "x$GCC" = "xyes"; then
365 warn_cflags='$(GCC_WARN_CFLAGS)'
367 AC_SUBST(warn_cflags)
369 # Stage specific cflags for build.
375 stage1_cflags="-Wa,-J"
381 AC_SUBST(stage1_cflags)
385 AC_MSG_CHECKING([whether a default assembler was specified])
386 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
387 if test x"$gas_flag" = x"no"; then
388 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
390 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
396 AC_MSG_CHECKING([whether a default linker was specified])
397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
398 if test x"$gnu_ld_flag" = x"no"; then
399 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
401 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
407 AC_MSG_CHECKING(for GNU C library)
408 AC_CACHE_VAL(gcc_cv_glibc,
410 [#include <features.h>],[
411 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
412 #error Not a GNU C library system
416 AC_MSG_RESULT($gcc_cv_glibc)
417 if test $gcc_cv_glibc = yes; then
418 AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library])
423 # Find some useful tools
437 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
438 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
439 sys/resource.h sys/param.h sys/times.h sys/stat.h \
440 direct.h malloc.h langinfo.h iconv.h)
442 # Check for thread headers.
443 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
444 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
446 # See if GNAT has been installed
447 AC_CHECK_PROG(gnat, gnatbind, yes, no)
449 # Do we have a single-tree copy of texinfo?
450 if test -f $srcdir/../texinfo/Makefile.in; then
451 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
452 gcc_cv_prog_makeinfo_modern=yes
453 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
455 # See if makeinfo has been installed and is modern enough
456 # that we can use it.
457 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
458 [GNU texinfo.* \([0-9][0-9.]*\)],
459 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
462 if test $gcc_cv_prog_makeinfo_modern = no; then
464 *** Makeinfo is missing or too old.
465 *** Info documentation will not be built or installed.])
469 BUILD_INFO=info AC_SUBST(BUILD_INFO)
470 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
473 # See if the stage1 system preprocessor understands the ANSI C
474 # preprocessor stringification operator.
477 # Use <inttypes.h> only if it exists,
478 # doesn't clash with <sys/types.h>, and declares intmax_t.
479 AC_MSG_CHECKING(for inttypes.h)
480 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
482 [#include <sys/types.h>
483 #include <inttypes.h>],
485 [gcc_cv_header_inttypes_h=yes],
486 gcc_cv_header_inttypes_h=no)])
487 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
488 if test $gcc_cv_header_inttypes_h = yes; then
489 AC_DEFINE(HAVE_INTTYPES_H, 1,
490 [Define if you have a working <inttypes.h> header file.])
494 # Determine if enumerated bitfields are unsigned. ISO C says they can
495 # be either signed or unsigned.
497 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
498 [AC_TRY_RUN(#include <stdlib.h>
499 enum t { BLAH = 128 } ;
500 struct s_t { enum t member : 8; } s ;
504 if (s.member < 0) exit(1);
507 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
508 if test $gcc_cv_enum_bf_unsigned = yes; then
509 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
510 [Define if enumerated bitfields are treated as unsigned values.])
513 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy \
514 strchr strrchr kill getrlimit setrlimit atoll atoq \
515 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
516 fputs_unlocked getrusage valloc iconv nl_langinfo)
518 AC_CHECK_TYPE(ssize_t, int)
520 # Try to determine the array type of the second argument of getgroups
521 # for the target system (int or gid_t).
523 if test "${target}" = "${build}"; then
524 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
527 # This condition may need some tweaking. It should include all
528 # targets where the array type of the second argument of getgroups
529 # is int and the type of gid_t is not equivalent to int.
530 *-*-sunos* | *-*-ultrix*)
531 TARGET_GETGROUPS_T=int
534 TARGET_GETGROUPS_T=gid_t
538 AC_SUBST(TARGET_GETGROUPS_T)
540 gcc_AC_FUNC_VFPRINTF_DOPRNT
541 gcc_AC_FUNC_PRINTF_PTR
545 # Under some versions of uwin, vfork is notoriously buggy and the test
546 # can hang configure; on other versions, vfork exists just as a stub.
547 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
548 ac_cv_func_vfork_works=no
552 AC_FUNC_MMAP_ANYWHERE
555 # We will need to find libiberty.h and ansidecl.h
556 saved_CFLAGS="$CFLAGS"
557 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
558 gcc_AC_CHECK_DECLS(bcopy \
559 getenv atol sbrk abort atof getcwd getwd \
560 strsignal putc_unlocked fputs_unlocked strstr environ \
561 malloc realloc calloc free basename getopt, , ,[
562 #include "gansidecl.h"
563 #include "system.h"])
565 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
566 #include "gansidecl.h"
568 #ifdef HAVE_SYS_RESOURCE_H
569 #include <sys/resource.h>
573 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
574 CFLAGS="$saved_CFLAGS"
576 # mkdir takes a single argument on some systems.
577 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
587 build_install_headers_dir=install-headers-tar
592 host_truncate_target=
595 # Decode the host machine, then the target machine.
596 # For the host machine, we save the xm_file variable as host_xm_file;
597 # then we decode the target machine and forget everything else
598 # that came from the host machine.
599 for machine in $build $host $target; do
613 # Set this to force installation and use of collect2.
615 # Set this to override the default target model.
617 # Set this to control how the header file directory is installed.
618 install_headers_dir=install-headers-tar
619 # Set this to a non-empty list of args to pass to cpp if the target
620 # wants its .md file passed through cpp.
622 # Set this if directory names should be truncated to 14 characters.
624 # Set this if gdb needs a dir command with `dirname $out_file`
625 gdb_needs_out_file_path=
626 # Set this if the build machine requires executables to have a
629 # Set this to control which thread package will be used.
631 # Reinitialize these from the flag values every loop pass, since some
632 # configure entries modify them.
634 gnu_ld="$gnu_ld_flag"
635 enable_threads=$enable_threads_flag
637 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
638 # updated in each machine entry.
640 cpu_type=`echo $machine | sed 's/-.*$//'`
682 tm_file=${cpu_type}/${cpu_type}.h
683 xm_file=${cpu_type}/xm-${cpu_type}.h
684 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
686 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
688 # On a.out targets, we need to use collect2.
695 # Common parts for linux and openbsd systems
698 xm_defines="HAVE_ATEXIT POSIX BSTRING"
701 tm_file=${cpu_type}/openbsd.h
702 tmake_file="t-libc-ok t-openbsd"
703 # avoid surprises, always provide an xm-openbsd file
704 xm_file=${cpu_type}/xm-openbsd.h
705 # don't depend on processor x-fragments as well
707 if test x$enable_threads = xyes; then
709 tmake_file="${tmake_file} t-openbsd-thread"
715 # Support site-specific machine types.
717 cpu_type=`echo $machine | sed -e 's/-.*//'`
718 rest=`echo $machine | sed -e "s/$cpu_type-//"`
719 xm_file=${cpu_type}/xm-$rest.h
720 tm_file=${cpu_type}/$rest.h
721 if test -f $srcdir/config/${cpu_type}/x-$rest; \
722 then xmake_file=${cpu_type}/x-$rest; \
725 if test -f $srcdir/config/${cpu_type}/t-$rest; \
726 then tmake_file=${cpu_type}/t-$rest; \
732 a29k-*-bsd* | a29k-*-sym1*)
733 tm_file="${tm_file} a29k/unix.h"
735 xmake_file=a29k/x-unix
738 a29k-*-udi | a29k-*-coff)
739 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
740 tmake_file=a29k/t-a29kbare
743 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
744 tmake_file=a29k/t-vx29k
745 extra_parts="crtbegin.o crtend.o"
746 thread_file='vxworks'
748 a29k-*-*) # Default a29k environment.
752 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
754 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
755 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
757 # GAS + IEEE_CONFORMANT
758 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
760 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
761 xmake_file="x-interix alpha/t-pe"
762 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
763 if test x$enable_threads = xyes ; then
766 if test x$stabs = xyes ; then
767 tm_file="${tm_file} dbxcoff.h"
769 #prefix='$$INTERIX_ROOT'/usr/contrib
770 #local_prefix='$$INTERIX_ROOT'/usr/contrib
772 alpha*-*-linux*ecoff*)
773 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
774 target_cpu_default="MASK_GAS"
775 tmake_file="alpha/t-alpha alpha/t-ieee"
780 alpha*-*-linux*libc1*)
781 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
782 target_cpu_default="MASK_GAS"
783 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
784 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
787 if test x$enable_threads = xyes; then
792 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
793 target_cpu_default="MASK_GAS"
794 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
795 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
798 if test x$enable_threads = xyes; then
803 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
804 target_cpu_default="MASK_GAS"
805 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
806 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
810 case x${enable_threads} in
811 xyes | xpthreads | xposix)
813 tmake_file="${tmake_file} t-freebsd-thread"
818 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
819 target_cpu_default="MASK_GAS"
820 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
821 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
827 # default x-alpha is only appropriate for dec-osf.
828 target_cpu_default="MASK_GAS"
829 tmake_file="alpha/t-alpha alpha/t-ieee"
833 if test x$stabs = xyes
835 tm_file="${tm_file} dbx.h"
837 if test x$gas != xyes
839 extra_passes="mips-tfile mips-tdump"
842 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
843 xmake_file=alpha/x-osf
846 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
851 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
854 tm_file="${tm_file} alpha/osf.h"
855 tmake_file="$tmake_file alpha/t-osf4"
856 # Some versions of OSF4 (specifically X4.0-9 296.7) have
857 # a broken tar, so we use cpio instead.
858 install_headers_dir=install-headers-cpio
861 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
862 tmake_file="$tmake_file alpha/t-osf4"
867 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
869 target_cpu_default=MASK_SUPPORT_ARCH
874 tm_file="${tm_file} dbx.h alpha/vxworks.h"
875 tmake_file="alpha/t-alpha alpha/t-ieee"
878 extra_passes="mips-tfile mips-tdump"
881 thread_file='vxworks'
884 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
885 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
886 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
887 xmake_file=winnt/x-winnt
888 extra_host_objs=oldnames.o
889 extra_gcc_objs="spawnv.o oldnames.o"
890 if test x$gnu_ld != xyes
892 extra_programs=ld.exe
894 if test x$enable_threads = xyes; then
900 xm_file="${xm_file} alpha/xm-vms.h"
901 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
904 extra_parts="crtinit.o crtfini.o"
906 arm-*-coff* | armel-*-coff*)
908 tmake_file=arm/t-arm-coff
912 tmake_file=arm/t-arm-coff
913 thread_file='vxworks'
916 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
918 tm_file=arm/riscix1-1.h
921 arm-*-riscix*) # Acorn RISC machine
924 tm_file=arm/rix-gas.h
928 xmake_file=arm/x-riscix
929 tmake_file=arm/t-riscix
932 arm-semi-aout | armel-semi-aout)
934 tmake_file=arm/t-semi
936 arm-semi-aof | armel-semi-aof)
937 tm_file=arm/semiaof.h
938 tmake_file=arm/t-semiaof
942 tmake_file="t-netbsd arm/t-netbsd"
945 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
946 xm_file=arm/xm-linux.h
948 tm_file="arm/linux-oldld.h arm/linux-elf.h"
951 tm_file="arm/linux-elf26.h $tm_file"
954 tmake_file="t-linux arm/t-linux"
955 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
957 case x${enable_threads} in
958 x | xyes | xpthreads | xposix)
963 arm*-*-linux*) # ARM GNU/Linux with ELF
964 xm_file=arm/xm-linux.h
966 tm_file="arm/linux-elf.h"
969 tm_file="arm/linux-elf26.h $tm_file"
972 tmake_file="t-linux arm/t-linux"
973 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
975 case x${enable_threads} in
976 x | xyes | xpthreads | xposix)
981 arm*-*-uclinux*) # ARM ucLinux
982 tm_file=arm/uclinux-elf.h
983 tmake_file=arm/t-arm-elf
987 tmake_file=arm/t-arm-aout
990 tm_file=arm/ecos-elf.h
991 tmake_file=arm/t-arm-elf
994 tm_file=arm/unknown-elf.h
995 tmake_file=arm/t-arm-elf
998 tm_file=arm/conix-elf.h
999 tmake_file=arm/t-arm-elf
1002 tm_file=arm/unknown-elf-oabi.h
1003 tmake_file=arm/t-arm-elf
1012 c1-convex-*) # Convex C1
1013 target_cpu_default=1
1016 c2-convex-*) # Convex C2
1017 target_cpu_default=2
1021 target_cpu_default=4
1025 target_cpu_default=8
1029 target_cpu_default=16
1035 tmake_file=c4x/t-c4x
1037 clipper-intergraph-clix*)
1038 tm_file="${tm_file} svr3.h clipper/clix.h"
1039 xm_file=clipper/xm-clix.h
1040 xmake_file=clipper/x-clix
1041 extra_headers=va-clipper.h
1042 extra_parts="crtbegin.o crtend.o"
1043 install_headers_dir=install-headers-cpio
1054 tm_file="fr30/fr30.h"
1055 tmake_file=fr30/t-fr30
1056 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1062 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1063 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1064 tmake_file="t-linux pa/t-linux"
1065 extra_parts="crtbegin.o crtend.o"
1068 if test x$enable_threads = xyes; then
1073 target_cpu_default="MASK_PA_11"
1074 tmake_file=pa/t-openbsd
1077 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1078 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1079 xm_file=pa/xm-papro.h
1083 target_cpu_default="MASK_PA_11"
1084 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1088 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1089 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1090 xm_file=pa/xm-papro.h
1094 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1098 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1099 target_cpu_default="MASK_PA_11"
1103 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1107 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1108 xm_file=pa/xm-pahpux.h
1109 xmake_file=pa/x-pa-hpux
1110 if test x$gas = xyes
1112 tm_file="${tm_file} pa/gas.h"
1114 install_headers_dir=install-headers-cpio
1118 hppa1.0-*-hpux8.0[0-2]*)
1120 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1121 xm_file=pa/xm-pahpux.h
1122 xmake_file=pa/x-pa-hpux
1123 if test x$gas = xyes
1125 tm_file="${tm_file} pa/pa-gas.h"
1127 tm_file="pa/pa-oldas.h ${tm_file}"
1129 install_headers_dir=install-headers-cpio
1133 hppa1.1-*-hpux8.0[0-2]*)
1135 target_cpu_default="MASK_PA_11"
1136 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1137 xm_file=pa/xm-pahpux.h
1138 xmake_file=pa/x-pa-hpux
1139 if test x$gas = xyes
1141 tm_file="${tm_file} pa/pa-gas.h"
1143 tm_file="pa/pa-oldas.h ${tm_file}"
1145 install_headers_dir=install-headers-cpio
1149 target_cpu_default="MASK_PA_11"
1150 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1151 xm_file=pa/xm-pahpux.h
1152 xmake_file=pa/x-pa-hpux
1153 if test x$gas = xyes
1155 tm_file="${tm_file} pa/pa-gas.h"
1157 install_headers_dir=install-headers-cpio
1161 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1162 xm_file=pa/xm-pahpux.h
1163 xmake_file=pa/x-pa-hpux
1164 if test x$gas = xyes
1166 tm_file="${tm_file} pa/pa-gas.h"
1168 install_headers_dir=install-headers-cpio
1171 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1172 target_cpu_default="MASK_PA_11"
1173 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1175 xm_file=pa/xm-pahpux.h
1176 xmake_file=pa/x-pa-hpux
1178 if test x$gas = xyes
1180 tm_file="${tm_file} pa/pa-gas.h"
1182 if test x$enable_threads = x; then
1183 enable_threads=$have_pthread_h
1185 case x${enable_threads} in
1187 tmake_file="${tmake_file} pa/t-dce-thr"
1190 install_headers_dir=install-headers-cpio
1194 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1196 xm_file=pa/xm-pahpux.h
1197 xmake_file=pa/x-pa-hpux
1199 if test x$gas = xyes
1201 tm_file="${tm_file} pa/pa-gas.h"
1203 if test x$enable_threads = x; then
1204 enable_threads=$have_pthread_h
1206 case x${enable_threads} in
1208 tmake_file="${tmake_file} pa/t-dce-thr"
1211 install_headers_dir=install-headers-cpio
1215 target_cpu_default="MASK_PA_11"
1216 xm_file=pa/xm-pa64hpux.h
1217 xmake_file=pa/x-pa-hpux
1219 tm_file="pa/pa64-start.h ${tm_file} pa/pa64-regs.h pa/long_double.h pa/elf.h pa/pa-hpux.h pa/pa-hpux11.h pa/pa-64.h"
1221 tmake_file=pa/t-pa64
1222 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1224 if [[ x$gas = xyes ]]
1226 tm_file="${tm_file} pa/pa-gas.h"
1228 # if [[ x$enable_threads = x ]]; then
1229 # enable_threads=$have_pthread_h
1231 # if [[ x$enable_threads = xyes ]]; then
1233 # tmake_file="${tmake_file} pa/t-dce-thr"
1235 install_headers_dir=install-headers-cpio
1238 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1239 target_cpu_default="MASK_PA_11"
1240 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1242 xm_file=pa/xm-pahpux.h
1243 xmake_file=pa/x-pa-hpux
1245 if test x$gas = xyes
1247 tm_file="${tm_file} pa/pa-gas.h"
1249 # if test x$enable_threads = x; then
1250 # enable_threads=$have_pthread_h
1252 # if test x$enable_threads = xyes; then
1254 # tmake_file="${tmake_file} pa/t-dce-thr"
1256 install_headers_dir=install-headers-cpio
1260 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1262 xm_file=pa/xm-pahpux.h
1263 xmake_file=pa/x-pa-hpux
1264 if test x$gas = xyes
1266 tm_file="${tm_file} pa/pa-gas.h"
1268 # if test x$enable_threads = x; then
1269 # enable_threads=$have_pthread_h
1271 # if test x$enable_threads = xyes; then
1273 # tmake_file="${tmake_file} pa/t-dce-thr"
1275 install_headers_dir=install-headers-cpio
1278 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1279 target_cpu_default="MASK_PA_11"
1280 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1281 xm_file=pa/xm-pahpux.h
1282 xmake_file=pa/x-pa-hpux
1283 if test x$gas = xyes
1285 tm_file="${tm_file} pa/pa-gas.h"
1287 install_headers_dir=install-headers-cpio
1291 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1292 xm_file=pa/xm-pahpux.h
1293 xmake_file=pa/x-pa-hpux
1294 if test x$gas = xyes
1296 tm_file="${tm_file} pa/pa-gas.h"
1298 install_headers_dir=install-headers-cpio
1301 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1302 target_cpu_default="MASK_PA_11"
1303 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1304 xm_file=pa/xm-pahpux.h
1305 xmake_file=pa/x-pa-hpux
1306 if test x$gas = xyes
1308 tm_file="${tm_file} pa/pa-gas.h"
1310 install_headers_dir=install-headers-cpio
1314 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1315 xm_file=pa/xm-pahpux.h
1316 xmake_file=pa/x-pa-hpux
1317 if test x$gas = xyes
1319 tm_file="${tm_file} pa/pa-gas.h"
1321 install_headers_dir=install-headers-cpio
1325 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1326 target_cpu_default="MASK_PA_11"
1330 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1331 xm_file=pa/xm-pampeix.h
1332 xmake_file=pa/x-pa-mpeix
1333 echo "You must use gas. Assuming it is already installed."
1334 install_headers_dir=install-headers-tar
1337 i370-*-opened*) # IBM 360/370/390 Architecture
1338 xm_file=i370/xm-oe.h
1340 xmake_file=i370/x-oe
1341 tmake_file=i370/t-oe
1344 xm_file=i370/xm-mvs.h
1346 tmake_file=i370/t-mvs
1349 xm_file="xm-linux.h i370/xm-linux.h"
1351 tm_file="i370/linux.h ${tm_file}"
1352 tmake_file="t-linux i370/t-linux"
1353 # broken_install=yes
1354 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1355 # extra_parts="crtbegin.o crtend.o"
1359 if test x$enable_threads = xyes; then
1366 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1367 tm_file=i386/i386elf.h
1368 tmake_file=i386/t-i386elf
1372 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1374 if test x$gas = xyes
1376 tm_file=i386/aix386.h
1377 extra_parts="crtbegin.o crtend.o"
1378 tmake_file=i386/t-crtstuff
1380 tm_file=i386/aix386ng.h
1383 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1385 xmake_file=i386/x-aix
1388 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1390 xm_file="xm-alloca.h ${xm_file}"
1391 xm_defines="USG POSIX SMALL_ARG_MAX"
1392 xmake_file=i386/x-ncr3000
1393 if test x$stabs = xyes -a x$gas = xyes
1395 tm_file=i386/sysv4gdb.h
1397 tm_file=i386/sysv4.h
1399 extra_parts="crtbegin.o crtend.o"
1400 tmake_file=i386/t-crtpic
1406 xm_file=i386/xm-next.h
1407 tmake_file=i386/t-next
1408 xmake_file=i386/x-next
1409 extra_objs=nextstep.o
1410 extra_parts="crtbegin.o crtend.o"
1411 if test x$enable_threads = xyes; then
1416 i[34567]86-*-netware) # Intel 80386's running netware
1418 tm_file=i386/netware.h
1419 tmake_file=i386/t-netware
1422 i[34567]86-sequent-bsd*) # 80386 from Sequent
1425 if test x$gas = xyes
1427 tm_file=i386/seq-gas.h
1429 tm_file=i386/sequent.h
1433 i[34567]86-sequent-ptx1*)
1435 xm_defines="USG SVR3"
1436 xmake_file=i386/x-sysv3
1437 tm_file=i386/seq-sysv3.h
1438 tmake_file=i386/t-crtstuff
1439 extra_parts="crtbegin.o crtend.o"
1440 install_headers_dir=install-headers-cpio
1443 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1445 xm_defines="USG SVR3"
1446 xmake_file=i386/x-sysv3
1447 tm_file=i386/seq2-sysv3.h
1448 tmake_file=i386/t-crtstuff
1449 extra_parts="crtbegin.o crtend.o"
1450 install_headers_dir=install-headers-cpio
1453 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1455 xm_file="xm-alloca.h ${xm_file}"
1456 xm_defines="USG POSIX SMALL_ARG_MAX"
1458 tm_file=i386/ptx4-i.h
1460 extra_parts="crtbegin.o crtend.o"
1461 install_headers_dir=install-headers-cpio
1463 i386-sun-sunos*) # Sun i386 roadrunner
1469 i[34567]86-wrs-vxworks*)
1471 tm_file=i386/vxi386.h
1472 tmake_file=i386/t-i386bare
1473 thread_file='vxworks'
1478 tm_file=i386/i386-aout.h
1479 tmake_file=i386/t-i386bare
1482 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1484 xm_file=i386/xm-beos.h
1485 tmake_file='i386/t-beos i386/t-crtpic'
1486 tm_file=i386/beos-elf.h
1487 xmake_file=i386/x-beos
1488 extra_parts='crtbegin.o crtend.o'
1491 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1493 tm_file=i386/bsd386.h
1494 # tmake_file=t-libc-ok
1499 tm_file=i386/386bsd.h
1500 # tmake_file=t-libc-ok
1501 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1505 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1507 tm_file="i386/freebsd-aout.h i386/perform.h"
1508 tmake_file=t-freebsd
1511 i[34567]86-*-freebsd*)
1513 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
1514 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1515 tmake_file=t-freebsd
1519 case x${enable_threads} in
1520 xyes | xpthreads | xposix)
1522 tmake_file="${tmake_file} t-freebsd-thread"
1527 i[34567]86-*-netbsd*)
1529 tm_file=i386/netbsd.h
1534 i[34567]86-*-openbsd*)
1536 # we need collect2 until our bug is fixed...
1542 tm_file=i386/i386-coff.h
1543 tmake_file=i386/t-i386bare
1546 i[34567]86-*-isc*) # 80386 running ISC system
1548 xm_file="${xm_file} i386/xm-isc.h"
1549 xm_defines="USG SVR3"
1552 i[34567]86-*-isc[34]*)
1554 xmake_file=i386/x-isc3
1557 xmake_file=i386/x-isc
1560 if test x$gas = xyes -a x$stabs = xyes
1562 tm_file=i386/iscdbx.h
1563 tmake_file=i386/t-svr3dbx
1564 extra_parts="svr3.ifile svr3z.ifile"
1566 tm_file=i386/isccoff.h
1567 tmake_file=i386/t-crtstuff
1568 extra_parts="crtbegin.o crtend.o"
1570 tmake_file="$tmake_file i386/t-i386bare"
1571 install_headers_dir=install-headers-cpio
1574 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1575 changequote([,])dnl # with a.out format using
1577 xmake_file=x-linux-aout
1578 tmake_file="t-linux-aout i386/t-crtstuff"
1579 tm_file=i386/linux-oldld.h
1584 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1585 changequote([,])dnl # with a.out format
1586 xmake_file=x-linux-aout
1587 tmake_file="t-linux-aout i386/t-crtstuff"
1588 tm_file=i386/linux-aout.h
1593 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1594 changequote([,])dnl # with ELF format using the
1595 # GNU/Linux C library 5
1597 tm_file=i386/linux.h
1598 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1599 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1602 if test x$enable_threads = xyes; then
1603 thread_file='single'
1607 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1608 changequote([,])dnl # with ELF format using glibc 2
1609 # aka GNU/Linux C library 6
1611 tm_file=i386/linux.h
1612 tmake_file="t-linux i386/t-crtstuff"
1613 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1616 if test x$enable_threads = xyes; then
1626 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1628 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1632 i[34567]86-pc-msdosdjgpp*)
1634 xm_file=i386/xm-djgpp.h
1635 tm_file=i386/djgpp.h
1636 tmake_file=i386/t-djgpp
1637 xmake_file=i386/x-djgpp
1642 case $host in *pc-msdosdjgpp*)
1648 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1651 tmake_file=t-libc-ok
1656 i[34567]86-*-lynxos*)
1658 if test x$gas = xyes
1662 tm_file=i386/lynx-ng.h
1664 xm_file=i386/xm-lynx.h
1665 tmake_file=i386/t-i386bare
1672 # tmake_file=t-libc-ok
1676 i[34567]86-*-osfrose*) # 386 using OSF/rose
1678 if test x$elf = xyes
1680 tm_file=i386/osfelf.h
1683 tm_file=i386/osfrose.h
1686 xm_file="i386/xm-osf.h ${xm_file}"
1687 xmake_file=i386/x-osfrose
1688 tmake_file=i386/t-osf
1689 extra_objs=halfpic.o
1692 i[34567]86-go32-rtems*)
1695 xm_file=i386/xm-go32.h
1696 tm_file=i386/go32-rtems.h
1697 tmake_file="i386/t-go32 t-rtems"
1700 i[34567]86-*-rtemscoff*)
1703 tm_file=i386/rtems.h
1704 tmake_file="i386/t-i386bare t-rtems"
1707 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1710 tm_file=i386/rtemself.h
1711 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1712 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1715 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1717 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1718 xm_defines="USG SVR3"
1719 xmake_file=i386/x-sco5
1720 install_headers_dir=install-headers-cpio
1722 if test x$gas = xyes
1724 tm_file="i386/sco5gas.h ${tm_file}"
1725 tmake_file=i386/t-sco5gas
1727 tmake_file=i386/t-sco5
1729 tmake_file="$tmake_file i386/t-i386bare"
1730 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1733 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1735 xm_file="${xm_file} i386/xm-sco.h"
1736 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1737 xmake_file=i386/x-sco4
1738 install_headers_dir=install-headers-cpio
1739 if test x$stabs = xyes
1741 tm_file=i386/sco4dbx.h
1742 tmake_file=i386/t-svr3dbx
1743 extra_parts="svr3.ifile svr3z.rfile"
1746 tmake_file=i386/t-crtstuff
1747 extra_parts="crtbegin.o crtend.o"
1749 tmake_file="$tmake_file i386/t-i386bare"
1750 # The default EAFS filesystem supports long file names.
1751 # Truncating the target makes $host != $target which
1752 # makes gcc think it is doing a cross-compile.
1753 # truncate_target=yes
1756 i[34567]86-*-sco*) # 80386 running SCO system
1758 xm_file=i386/xm-sco.h
1759 xmake_file=i386/x-sco
1760 install_headers_dir=install-headers-cpio
1761 if test x$stabs = xyes
1763 tm_file=i386/scodbx.h
1764 tmake_file=i386/t-svr3dbx
1765 extra_parts="svr3.ifile svr3z.rfile"
1768 extra_parts="crtbegin.o crtend.o"
1769 tmake_file=i386/t-crtstuff
1771 tmake_file="$tmake_file i386/t-i386bare"
1775 i[34567]86-*-solaris2*)
1777 xm_file="xm-alloca.h ${xm_file}"
1778 xm_defines="USG POSIX SMALL_ARG_MAX"
1780 if test x$gas = xyes; then
1781 # Only needed if gas does not support -s
1782 tm_file="i386/sol2gas.h ${tm_file}"
1784 tmake_file="i386/t-i386bare i386/t-sol2"
1785 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1787 if test x${enable_threads} = x; then
1788 enable_threads=$have_pthread_h
1789 if test x${enable_threads} = x; then
1790 enable_threads=$have_thread_h
1793 if test x${enable_threads} = xyes; then
1794 if test x${have_pthread_h} = xyes; then
1797 thread_file='solaris'
1802 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1804 xm_file="xm-alloca.h ${xm_file}"
1805 xm_defines="USG POSIX"
1806 tm_file=i386/sysv5.h
1807 if test x$stabs = xyes
1809 tm_file="${tm_file} dbx.h"
1811 tmake_file="i386/t-i386bare i386/t-crtpic"
1813 extra_parts="crtbegin.o crtend.o"
1814 if test x$enable_threads = xyes; then
1819 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1821 xm_file="xm-alloca.h ${xm_file}"
1822 xm_defines="USG POSIX SMALL_ARG_MAX"
1823 tm_file=i386/sysv4.h
1824 if test x$stabs = xyes
1826 tm_file="${tm_file} dbx.h"
1828 tmake_file="i386/t-i386bare i386/t-crtpic"
1830 extra_parts="crtbegin.o crtend.o"
1833 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1835 xm_file="xm-alloca.h ${xm_file}"
1836 xm_defines="USG POSIX"
1838 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1840 extra_parts="crtbegin.o crtend.o"
1841 install_headers_dir=install-headers-cpio
1844 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1847 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1848 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1849 if test x$stabs = xyes
1851 tm_file=i386/osf1elfgdb.h
1853 tm_file=i386/osf1elf.h
1855 tmake_file=i386/t-osf1elf
1856 xmake_file=i386/x-osf1elf
1857 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1860 i[34567]86-*-sysv*) # Intel 80386's running system V
1862 xm_defines="USG SVR3"
1863 xmake_file=i386/x-sysv3
1864 if test x$gas = xyes
1866 if test x$stabs = xyes
1868 tm_file=i386/svr3dbx.h
1869 tmake_file=i386/t-svr3dbx
1870 extra_parts="svr3.ifile svr3z.rfile"
1872 tm_file=i386/svr3gas.h
1873 extra_parts="crtbegin.o crtend.o"
1874 tmake_file=i386/t-crtstuff
1877 tm_file=i386/sysv3.h
1878 extra_parts="crtbegin.o crtend.o"
1879 tmake_file=i386/t-crtstuff
1881 tmake_file="$tmake_file i386/t-crtpic"
1883 i386-*-vsta) # Intel 80386's running VSTa kernel
1884 xm_file="${xm_file} i386/xm-vsta.h"
1886 tmake_file=i386/t-vsta
1887 xmake_file=i386/x-vsta
1892 xm_file="${xm_file} i386/xm-cygwin.h"
1893 tmake_file=i386/t-cygwin
1894 tm_file=i386/win32.h
1895 xmake_file=i386/x-cygwin
1897 if test x$enable_threads = xyes; then
1903 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1905 xm_file="${xm_file} i386/xm-cygwin.h"
1906 tmake_file=i386/t-cygwin
1907 tm_file=i386/cygwin.h
1908 xmake_file=i386/x-cygwin
1910 if test x$enable_threads = xyes; then
1916 i[34567]86-*-mingw32*)
1918 tm_file=i386/mingw32.h
1919 xm_file="${xm_file} i386/xm-mingw32.h"
1920 tmake_file="i386/t-cygwin i386/t-mingw32"
1922 xmake_file=i386/x-cygwin
1923 if test x$enable_threads = xyes; then
1930 *minwg32crt* | *mingw32*)
1931 tm_file="${tm_file} i386/crtdll.h"
1939 xm_file="${xm_file} i386/xm-uwin.h"
1940 xm_defines="USG NO_STAB_H"
1941 tmake_file="i386/t-cygwin i386/t-uwin"
1943 xmake_file=i386/x-cygwin
1944 if test x$enable_threads = xyes; then
1950 i[34567]86-*-interix*)
1952 tm_file="i386/i386-interix.h interix.h"
1953 xm_file="i386/xm-i386-interix.h xm-interix.h"
1955 tmake_file="i386/t-interix"
1956 extra_objs=interix.o
1957 xmake_file=x-interix
1958 if test x$enable_threads = xyes ; then
1961 if test x$stabs = xyes ; then
1962 tm_file="${tm_file} dbxcoff.h"
1966 i[34567]86-*-winnt3*)
1968 tm_file=i386/win-nt.h
1969 out_file=i386/i386.c
1970 xm_file="xm-winnt.h ${xm_file}"
1971 xmake_file=winnt/x-winnt
1972 tmake_file=i386/t-winnt
1973 extra_host_objs="winnt.o oldnames.o"
1974 extra_gcc_objs="spawnv.o oldnames.o"
1975 if test x$gnu_ld != xyes
1977 extra_programs=ld.exe
1979 if test x$enable_threads = xyes; then
1984 i[34567]86-dg-dgux*)
1986 xm_file="xm-alloca.h ${xm_file}"
1987 xm_defines="USG POSIX"
1988 out_file=i386/dgux.c
1990 tmake_file=i386/t-dgux
1991 xmake_file=i386/x-dgux
1992 install_headers_dir=install-headers-cpio
1994 i860-alliant-*) # Alliant FX/2800
1995 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1996 xm_file="${xm_file}"
1997 xmake_file=i860/x-fx2800
1998 tmake_file=i860/t-fx2800
1999 extra_parts="crtbegin.o crtend.o"
2002 tm_file="${tm_file} i860/bsd.h"
2003 if test x$gas = xyes
2005 tm_file="${tm_file} i860/bsd-gas.h"
2010 tm_file="${tm_file} i860/mach.h"
2011 tmake_file=t-libc-ok
2013 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2014 tm_file="${tm_file} svr3.h i860/paragon.h"
2015 xm_defines="USG SVR3"
2019 tm_file="${tm_file} svr3.h i860/sysv3.h"
2020 xm_defines="USG SVR3"
2021 xmake_file=i860/x-sysv3
2022 extra_parts="crtbegin.o crtend.o"
2025 tm_file="${tm_file} svr4.h i860/sysv4.h"
2026 xm_defines="USG SVR3"
2027 xmake_file=i860/x-sysv4
2029 extra_parts="crtbegin.o crtend.o"
2031 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2032 tm_file="${tm_file} i960/vx960.h"
2033 tmake_file=i960/t-vxworks960
2035 thread_file='vxworks'
2037 i960-wrs-vxworks5* | i960-wrs-vxworks)
2038 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2039 tmake_file=i960/t-vxworks960
2041 thread_file='vxworks'
2044 tm_file="${tm_file} i960/vx960.h"
2045 tmake_file=i960/t-vxworks960
2047 thread_file='vxworks'
2050 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2051 tmake_file=i960/t-960bare
2055 tmake_file="i960/t-960bare t-rtems"
2056 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2059 i960-*-*) # Default i960 environment.
2064 tmake_file="ia64/t-ia64"
2065 target_cpu_default="0"
2066 if test x$gas = xyes
2068 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2070 if test x$gnu_ld = xyes
2072 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2077 tm_file=ia64/linux.h
2078 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
2079 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2080 if test x$enable_threads = xyes; then
2086 extra_parts="crtinit.o crtfini.o"
2088 # m68hc11 and m68hc12 share the same machine description.
2089 m68hc11-*-*|m6811-*-*)
2090 tm_file="m68hc11/m68hc11.h"
2091 xm_file="m68hc11/xm-m68hc11.h"
2092 tm_p_file="m68hc11/m68hc11-protos.h"
2093 md_file="m68hc11/m68hc11.md"
2094 out_file="m68hc11/m68hc11.c"
2095 tmake_file="m68hc11/t-m68hc11-gas"
2097 m68hc12-*-*|m6812-*-*)
2098 tm_file="m68hc11/m68hc12.h"
2099 tm_p_file="m68hc11/m68hc11-protos.h"
2100 xm_file="m68hc11/xm-m68hc11.h"
2101 md_file="m68hc11/m68hc11.md"
2102 out_file="m68hc11/m68hc11.c"
2103 tmake_file="m68hc11/t-m68hc11-gas"
2105 m68000-convergent-sysv*)
2107 xm_file="m68k/xm-3b1.h ${xm_file}"
2110 extra_headers=math-68881.h
2112 m68000-hp-bsd*) # HP 9000/200 running BSD
2113 tm_file=m68k/hp2bsd.h
2114 xmake_file=m68k/x-hp2bsd
2116 extra_headers=math-68881.h
2118 m68000-hp-hpux*) # HP 9000 series 300
2119 xm_file="xm-alloca.h ${xm_file}"
2121 if test x$gas = xyes
2123 xmake_file=m68k/x-hp320g
2124 tm_file=m68k/hp310g.h
2126 xmake_file=m68k/x-hp320
2127 tm_file=m68k/hp310.h
2129 install_headers_dir=install-headers-cpio
2131 extra_headers=math-68881.h
2136 extra_headers=math-68881.h
2139 tm_file=m68k/sun2o4.h
2141 extra_headers=math-68881.h
2144 xm_file="m68k/xm-3b1.h ${xm_file}"
2146 if test x$gas = xyes
2153 extra_headers=math-68881.h
2155 m68k-apple-aux*) # Apple Macintosh running A/UX
2156 xm_defines="USG AUX"
2157 tmake_file=m68k/t-aux
2158 install_headers_dir=install-headers-cpio
2159 extra_headers=math-68881.h
2160 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2162 if test "$gnu_ld" = yes
2164 tm_file="${tm_file} m68k/auxgld.h"
2166 tm_file="${tm_file} m68k/auxld.h"
2168 if test "$gas" = yes
2170 tm_file="${tm_file} m68k/auxgas.h"
2172 tm_file="${tm_file} m68k/auxas.h"
2174 tm_file="${tm_file} m68k/a-ux.h"
2178 tm_file=m68k/apollo68.h
2179 xmake_file=m68k/x-apollo68
2181 extra_headers=math-68881.h
2184 m68k-altos-sysv*) # Altos 3068
2185 if test x$gas = xyes
2187 tm_file=m68k/altos3068.h
2190 echo "The Altos is supported only with the GNU assembler" 1>&2
2193 extra_headers=math-68881.h
2195 m68k-bull-sysv*) # Bull DPX/2
2196 if test x$gas = xyes
2198 if test x$stabs = xyes
2200 tm_file=m68k/dpx2cdbx.h
2202 tm_file=m68k/dpx2g.h
2207 xm_file="xm-alloca.h ${xm_file}"
2209 xmake_file=m68k/x-dpx2
2211 extra_headers=math-68881.h
2213 m68k-atari-sysv4*) # Atari variant of V.4.
2214 tm_file=m68k/atari.h
2215 xm_file="xm-alloca.h ${xm_file}"
2216 xm_defines="USG FULL_PROTOTYPES"
2218 extra_parts="crtbegin.o crtend.o"
2219 extra_headers=math-68881.h
2222 m68k-motorola-sysv*)
2223 tm_file=m68k/mot3300.h
2224 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2225 if test x$gas = xyes
2227 xmake_file=m68k/x-mot3300-gas
2228 if test x$gnu_ld = xyes
2230 tmake_file=m68k/t-mot3300-gald
2232 tmake_file=m68k/t-mot3300-gas
2236 xmake_file=m68k/x-mot3300
2237 if test x$gnu_ld = xyes
2239 tmake_file=m68k/t-mot3300-gld
2241 tmake_file=m68k/t-mot3300
2245 gdb_needs_out_file_path=yes
2246 extra_parts="crt0.o mcrt0.o"
2247 extra_headers=math-68881.h
2250 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2251 tm_file=m68k/tower-as.h
2252 xm_defines="USG SVR3"
2253 xmake_file=m68k/x-tower
2254 extra_parts="crtbegin.o crtend.o"
2255 extra_headers=math-68881.h
2258 tm_file=m68k/plexus.h
2259 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2262 extra_headers=math-68881.h
2266 xm_file="xm-alloca.h ${xm_file}"
2268 extra_headers=math-68881.h
2271 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2272 xm_defines="USG unos"
2273 xmake_file=m68k/x-crds
2276 extra_headers=math-68881.h
2278 m68k-cbm-sysv4*) # Commodore variant of V.4.
2280 xm_file="xm-alloca.h ${xm_file}"
2281 xm_defines="USG FULL_PROTOTYPES"
2282 xmake_file=m68k/x-amix
2284 extra_parts="crtbegin.o crtend.o"
2285 extra_headers=math-68881.h
2289 tm_file=m68k/ccur-GAS.h
2290 xmake_file=m68k/x-ccur
2291 extra_headers=math-68881.h
2295 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2296 tm_file=m68k/hp3bsd44.h
2297 xmake_file=m68k/x-hp3bsd44
2299 extra_headers=math-68881.h
2302 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2303 tm_file=m68k/hp3bsd.h
2305 extra_headers=math-68881.h
2309 if test x$with_fp = xno
2311 tm_file=m68k/isi-nfp.h
2317 extra_headers=math-68881.h
2319 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2320 xm_file="xm-alloca.h ${xm_file}"
2322 if test x$gas = xyes
2324 xmake_file=m68k/x-hp320g
2325 tm_file=m68k/hp320g.h
2327 xmake_file=m68k/x-hp320
2328 tm_file=m68k/hpux7.h
2330 install_headers_dir=install-headers-cpio
2332 extra_headers=math-68881.h
2335 m68k-hp-hpux*) # HP 9000 series 300
2336 xm_file="xm-alloca.h ${xm_file}"
2338 if test x$gas = xyes
2340 xmake_file=m68k/x-hp320g
2341 tm_file=m68k/hp320g.h
2343 xmake_file=m68k/x-hp320
2344 tm_file=m68k/hp320.h
2346 install_headers_dir=install-headers-cpio
2348 extra_headers=math-68881.h
2352 tm_file=m68k/sun3mach.h
2354 extra_headers=math-68881.h
2358 if test x$gas = xyes
2360 tm_file=m68k/news3gas.h
2362 tm_file=m68k/news3.h
2365 extra_headers=math-68881.h
2368 m68k-sony-bsd* | m68k-sony-newsos*)
2369 if test x$gas = xyes
2371 tm_file=m68k/newsgas.h
2376 extra_headers=math-68881.h
2379 m68k-next-nextstep2*)
2380 tm_file=m68k/next21.h
2381 xm_file="m68k/xm-next.h ${xm_file}"
2382 tmake_file=m68k/t-next
2383 xmake_file=m68k/x-next
2384 extra_objs=nextstep.o
2385 extra_headers=math-68881.h
2390 m68k-next-nextstep[34]*)
2393 xm_file="m68k/xm-next.h ${xm_file}"
2394 tmake_file=m68k/t-next
2395 xmake_file=m68k/x-next
2396 extra_objs=nextstep.o
2397 extra_parts="crtbegin.o crtend.o"
2398 extra_headers=math-68881.h
2400 if test x$enable_threads = xyes; then
2405 if test x$with_fp = xno
2407 tm_file=m68k/sun3n3.h
2409 tm_file=m68k/sun3o3.h
2413 extra_headers=math-68881.h
2415 m68k-sun-sunos*) # For SunOS 4 (the default).
2416 if test x$with_fp = xno
2418 tm_file=m68k/sun3n.h
2424 extra_headers=math-68881.h
2427 tm_file=m68k/vxm68k.h
2428 tmake_file=m68k/t-vxworks68
2429 extra_headers=math-68881.h
2430 thread_file='vxworks'
2434 tmake_file=m68k/t-m68kbare
2435 tm_file="m68k/m68k-aout.h libgloss.h"
2436 extra_headers=math-68881.h
2440 tmake_file=m68k/t-m68kbare
2441 tm_file="m68k/m68k-coff.h dbx.h"
2442 extra_headers=math-68881.h
2445 m68020-*-elf* | m68k-*-elf*)
2446 tm_file="m68k/m68020-elf.h"
2447 xm_file=m68k/xm-m68kv.h
2448 tmake_file=m68k/t-m68kelf
2449 header_files=math-68881.h
2452 if test x$gas = xyes
2456 tm_file=m68k/lynx-ng.h
2458 xm_file=m68k/xm-lynx.h
2460 tmake_file=m68k/t-lynx
2461 extra_headers=math-68881.h
2465 tm_file=m68k/netbsd.h
2472 # we need collect2 until our bug is fixed...
2475 m68k-*-sysv3*) # Motorola m68k's running system V.3
2476 xm_file="xm-alloca.h ${xm_file}"
2478 xmake_file=m68k/x-m68kv
2479 extra_parts="crtbegin.o crtend.o"
2480 extra_headers=math-68881.h
2483 m68k-*-sysv4*) # Motorola m68k's running system V.4
2484 tm_file=m68k/m68kv4.h
2485 xm_file="xm-alloca.h ${xm_file}"
2488 extra_parts="crtbegin.o crtend.o"
2489 extra_headers=math-68881.h
2492 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2495 tm_file=m68k/linux-aout.h
2496 tmake_file="t-linux-aout m68k/t-linux-aout"
2497 extra_headers=math-68881.h
2501 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2502 # with ELF format using the
2503 # GNU/Linux C library 5
2505 tm_file=m68k/linux.h
2506 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2507 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2508 extra_headers=math-68881.h
2512 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2513 # with ELF format using glibc 2
2514 # aka the GNU/Linux C library 6.
2516 tm_file=m68k/linux.h
2517 tmake_file="t-linux m68k/t-linux"
2518 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2519 extra_headers=math-68881.h
2522 if test x$enable_threads = xyes; then
2527 tmake_file=m68k/t-m68kbare
2528 tm_file=m68k/m68k-psos.h
2529 extra_headers=math-68881.h
2533 tmake_file="m68k/t-m68kbare t-rtems"
2534 tm_file=m68k/rtems.h
2535 extra_headers=math-68881.h
2538 m68k-*-rtemself*|m68k-*-rtems*)
2539 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2540 tm_file=m68k/rtemself.h
2541 extra_headers=math-68881.h
2547 tm_file=m88k/dguxbcs.h
2548 tmake_file=m88k/t-dguxbcs
2552 tmake_file=m88k/t-dgux
2555 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2556 xmake_file=m88k/x-dgux
2557 if test x$gas = xyes
2559 tmake_file=m88k/t-dgux-gas
2562 m88k-dolphin-sysv3*)
2563 tm_file=m88k/dolph.h
2564 extra_parts="crtbegin.o crtend.o"
2565 xm_file="m88k/xm-sysv3.h ${xm_file}"
2566 xmake_file=m88k/x-dolph
2567 if test x$gas = xyes
2569 tmake_file=m88k/t-m88k-gas
2572 m88k-tektronix-sysv3)
2573 tm_file=m88k/tekXD88.h
2574 extra_parts="crtbegin.o crtend.o"
2575 xm_file="m88k/xm-sysv3.h ${xm_file}"
2576 xmake_file=m88k/x-tekXD88
2577 if test x$gas = xyes
2579 tmake_file=m88k/t-m88k-gas
2583 tm_file=m88k/m88k-aout.h
2586 tm_file=m88k/m88k-coff.h
2587 tmake_file=m88k/t-bug
2591 extra_parts="crtbegin.o crtend.o"
2592 if test x$gas = xyes
2594 tmake_file=m88k/t-luna-gas
2596 tmake_file=m88k/t-luna
2600 tmake_file="${tmake_file} m88k/t-luna-gas"
2601 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2602 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2605 tm_file=m88k/sysv3.h
2606 extra_parts="crtbegin.o crtend.o"
2607 xm_file="m88k/xm-sysv3.h ${xm_file}"
2608 xmake_file=m88k/x-sysv3
2609 if test x$gas = xyes
2611 tmake_file=m88k/t-m88k-gas
2615 tm_file=m88k/sysv4.h
2616 extra_parts="crtbegin.o crtend.o"
2617 xmake_file=m88k/x-sysv4
2618 tmake_file=m88k/t-sysv4
2621 tm_file=mcore/mcore-elf.h
2622 tmake_file=mcore/t-mcore
2625 tm_file=mcore/mcore-pe.h
2626 tmake_file=mcore/t-mcore-pe
2628 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2629 if test "x$gnu_ld" = xyes
2631 tm_file="mips/iris6.h mips/iris6gld.h"
2633 tm_file=mips/iris6.h
2635 tmake_file=mips/t-iris6
2636 xm_file=mips/xm-iris6.h
2637 xmake_file=mips/x-iris6
2638 # if test x$enable_threads = xyes; then
2639 # thread_file='irix'
2643 tm_file="mips/elf.h mips/vxworks.h"
2644 tmake_file=mips/t-ecoff
2647 extra_parts="crtbegin.o crtend.o"
2648 thread_file='vxworks'
2650 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2651 tm_file="mips/iris6.h mips/cross64.h"
2653 xm_file="mips/xm-iris5.h"
2654 xmake_file=mips/x-iris
2655 tmake_file=mips/t-cross64
2656 # See comment in mips/iris[56].h files.
2658 # if test x$enable_threads = xyes; then
2659 # thread_file='irix'
2663 if test x$gas = xyes
2665 if test x$stabs = xyes
2667 tm_file=mips/iris5gdb.h
2669 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2672 tm_file=mips/sni-svr4.h
2675 xmake_file=mips/x-sni-svr4
2676 tmake_file=mips/t-mips-gas
2677 if test x$gnu_ld != xyes
2682 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2683 if test x$gas = xyes
2685 tm_file="mips/iris5.h mips/iris5gas.h"
2686 if test x$stabs = xyes
2688 tm_file="${tm_file} dbx.h"
2691 tm_file=mips/iris5.h
2694 xm_file="mips/xm-iris5.h"
2695 xmake_file=mips/x-iris
2696 # mips-tfile doesn't work yet
2697 tmake_file=mips/t-mips-gas
2698 # See comment in mips/iris5.h file.
2700 # if test x$enable_threads = xyes; then
2701 # thread_file='irix'
2704 mips-sgi-irix4loser*) # Mostly like a MIPS.
2705 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2706 if test x$stabs = xyes; then
2707 tm_file="${tm_file} dbx.h"
2710 xmake_file=mips/x-iris
2711 if test x$gas = xyes
2713 tmake_file=mips/t-mips-gas
2715 extra_passes="mips-tfile mips-tdump"
2717 if test x$gnu_ld != xyes
2721 # if test x$enable_threads = xyes; then
2722 # thread_file='irix'
2725 mips-sgi-irix4*) # Mostly like a MIPS.
2726 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2727 if test x$stabs = xyes; then
2728 tm_file="${tm_file} dbx.h"
2731 xmake_file=mips/x-iris
2732 if test x$gas = xyes
2734 tmake_file=mips/t-mips-gas
2736 extra_passes="mips-tfile mips-tdump"
2738 if test x$gnu_ld != xyes
2742 # if test x$enable_threads = xyes; then
2743 # thread_file='irix'
2746 mips-sgi-*) # Mostly like a MIPS.
2747 tm_file="mips/iris3.h ${tm_file}"
2748 if test x$stabs = xyes; then
2749 tm_file="${tm_file} dbx.h"
2752 xmake_file=mips/x-iris3
2753 if test x$gas = xyes
2755 tmake_file=mips/t-mips-gas
2757 extra_passes="mips-tfile mips-tdump"
2759 if test x$gnu_ld != xyes
2764 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2765 tm_file="mips/osfrose.h ${tm_file}"
2766 xmake_file=mips/x-osfrose
2767 tmake_file=mips/t-osfrose
2768 extra_objs=halfpic.o
2771 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2772 tm_file=mips/dec-osf1.h
2773 if test x$stabs = xyes; then
2774 tm_file="${tm_file} dbx.h"
2776 xmake_file=mips/x-dec-osf1
2777 if test x$gas = xyes
2779 tmake_file=mips/t-mips-gas
2781 tmake_file=mips/t-ultrix
2782 extra_passes="mips-tfile mips-tdump"
2784 if test x$gnu_ld != xyes
2789 mips-dec-bsd*) # Decstation running 4.4 BSD
2790 tm_file=mips/dec-bsd.h
2791 if test x$gas = xyes
2793 tmake_file=mips/t-mips-gas
2795 tmake_file=mips/t-ultrix
2796 extra_passes="mips-tfile mips-tdump"
2798 if test x$gnu_ld != xyes
2803 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2804 tm_file=mips/netbsd.h
2805 # On NetBSD, the headers are already okay, except for math.h.
2808 mips*-*-linux*) # Linux MIPS, either endian.
2811 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2812 *) tm_file="mips/elf.h mips/linux.h" ;;
2815 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2818 if test x$enable_threads = xyes; then
2822 mips*el-*-openbsd*) # mips little endian
2823 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2825 mips*-*-openbsd*) # mips big endian
2826 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2827 tm_file="mips/openbsd-be.h ${tm_file}"
2829 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2830 tm_file="mips/news4.h ${tm_file}"
2831 if test x$stabs = xyes; then
2832 tm_file="${tm_file} dbx.h"
2834 if test x$gas = xyes
2836 tmake_file=mips/t-mips-gas
2838 extra_passes="mips-tfile mips-tdump"
2840 if test x$gnu_ld != xyes
2844 xmake_file=mips/x-sony
2846 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2847 # That is based on svr4.
2848 # t-svr4 is not right because this system doesn't use ELF.
2849 tm_file="mips/news5.h ${tm_file}"
2850 if test x$stabs = xyes; then
2851 tm_file="${tm_file} dbx.h"
2854 if test x$gas = xyes
2856 tmake_file=mips/t-mips-gas
2858 extra_passes="mips-tfile mips-tdump"
2860 if test x$gnu_ld != xyes
2865 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2866 tm_file="mips/svr4-5.h mips/svr4-t.h"
2867 if test x$stabs = xyes; then
2868 tm_file="${tm_file} dbx.h"
2871 xmake_file=mips/x-sysv
2872 if test x$gas = xyes
2874 tmake_file=mips/t-mips-gas
2875 extra_parts="crtbegin.o crtend.o"
2877 tmake_file=mips/t-mips
2878 extra_passes="mips-tfile mips-tdump"
2880 if test x$gnu_ld != xyes
2885 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2886 tm_file="mips/ultrix.h ${tm_file}"
2887 if test x$stabs = xyes; then
2888 tm_file="${tm_file} dbx.h"
2890 xmake_file=mips/x-ultrix
2891 if test x$gas = xyes
2893 tmake_file=mips/t-mips-gas
2895 tmake_file=mips/t-ultrix
2896 extra_passes="mips-tfile mips-tdump"
2898 if test x$gnu_ld != xyes
2904 mips-*-riscos[56789]bsd*)
2906 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2907 if test x$stabs = xyes; then
2908 tm_file="${tm_file} dbx.h"
2910 if test x$gas = xyes
2912 tmake_file=mips/t-bsd-gas
2914 tmake_file=mips/t-bsd
2915 extra_passes="mips-tfile mips-tdump"
2917 if test x$gnu_ld != xyes
2923 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2925 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2926 if test x$stabs = xyes; then
2927 tm_file="${tm_file} dbx.h"
2929 if test x$gas = xyes
2931 tmake_file=mips/t-bsd-gas
2933 tmake_file=mips/t-bsd
2934 extra_passes="mips-tfile mips-tdump"
2936 if test x$gnu_ld != xyes
2942 mips-*-riscos[56789]sysv4*)
2944 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2945 if test x$stabs = xyes; then
2946 tm_file="${tm_file} dbx.h"
2948 xmake_file=mips/x-sysv
2949 if test x$gas = xyes
2951 tmake_file=mips/t-svr4-gas
2953 tmake_file=mips/t-svr4
2954 extra_passes="mips-tfile mips-tdump"
2956 if test x$gnu_ld != xyes
2962 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2964 tm_file="mips/svr4-4.h ${tm_file}"
2965 if test x$stabs = xyes; then
2966 tm_file="${tm_file} dbx.h"
2969 xmake_file=mips/x-sysv
2970 if test x$gas = xyes
2972 tmake_file=mips/t-svr4-gas
2974 tmake_file=mips/t-svr4
2975 extra_passes="mips-tfile mips-tdump"
2977 if test x$gnu_ld != xyes
2983 mips-*-riscos[56789]sysv*)
2985 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2986 if test x$stabs = xyes; then
2987 tm_file="${tm_file} dbx.h"
2990 xmake_file=mips/x-sysv
2991 if test x$gas = xyes
2993 tmake_file=mips/t-svr3-gas
2995 tmake_file=mips/t-svr3
2996 extra_passes="mips-tfile mips-tdump"
2998 if test x$gnu_ld != xyes
3003 mips-*-sysv* | mips-*-riscos*sysv*)
3004 tm_file="mips/svr3-4.h ${tm_file}"
3005 if test x$stabs = xyes; then
3006 tm_file="${tm_file} dbx.h"
3009 xmake_file=mips/x-sysv
3010 if test x$gas = xyes
3012 tmake_file=mips/t-svr3-gas
3014 tmake_file=mips/t-svr3
3015 extra_passes="mips-tfile mips-tdump"
3017 if test x$gnu_ld != xyes
3023 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3025 tm_file=mips/mips-5.h
3026 if test x$stabs = xyes; then
3027 tm_file="${tm_file} dbx.h"
3029 if test x$gas = xyes
3031 tmake_file=mips/t-mips-gas
3033 extra_passes="mips-tfile mips-tdump"
3035 if test x$gnu_ld != xyes
3043 tm_file=mips/ecoffl.h
3044 if test x$stabs = xyes; then
3045 tm_file="${tm_file} dbx.h"
3047 tmake_file=mips/t-ecoff
3050 tm_file="gofast.h mips/ecoff.h"
3051 if test x$stabs = xyes; then
3052 tm_file="${tm_file} dbx.h"
3054 tmake_file=mips/t-ecoff
3057 tm_file="mips/elfl.h"
3058 tmake_file=mips/t-elf
3061 tm_file="mips/elf.h"
3062 tmake_file=mips/t-elf
3065 tm_file="mips/elfl64.h"
3066 tmake_file=mips/t-elf
3068 mips64orionel-*-elf*)
3069 tm_file="mips/elforion.h mips/elfl64.h"
3070 tmake_file=mips/t-elf
3073 tm_file="mips/elf64.h"
3074 tmake_file=mips/t-elf
3077 tm_file="mips/elforion.h mips/elf64.h"
3078 tmake_file=mips/t-elf
3080 mips64orion-*-rtems*)
3081 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3082 tmake_file="mips/t-elf t-rtems"
3085 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3086 tmake_file=mips/t-r3900
3089 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3090 tmake_file=mips/t-r3900
3092 mips-*-*) # Default MIPS RISC-OS 4.0.
3093 if test x$stabs = xyes; then
3094 tm_file="${tm_file} dbx.h"
3096 if test x$gas = xyes
3098 tmake_file=mips/t-mips-gas
3100 extra_passes="mips-tfile mips-tdump"
3102 if test x$gnu_ld != xyes
3110 tm_file="mn10200/mn10200.h"
3111 if test x$stabs = xyes
3113 tm_file="${tm_file} dbx.h"
3119 tm_file="mn10300/mn10300.h"
3120 if test x$stabs = xyes
3122 tm_file="${tm_file} dbx.h"
3127 tm_file=ns32k/encore.h
3131 tm_file=ns32k/sequent.h
3135 tm_file=ns32k/tek6100.h
3139 tm_file=ns32k/tek6200.h
3143 tm_file=ns32k/merlin.h
3147 tm_file=ns32k/pc532-mach.h
3151 tm_file=ns32k/pc532-min.h
3152 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3157 tm_file=ns32k/netbsd.h
3158 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3159 # On NetBSD, the headers are already okay, except for math.h.
3164 tm_file="${tm_file} pdp11/2bsd.h"
3174 tm_file="svr4.h pj/linux.h ${tm_file}"
3179 tm_file="svr4.h pj/pjl.h ${tm_file}"
3186 xmake_file=romp/x-mach
3193 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3197 tm_file=rs6000/beos.h
3198 xm_file=rs6000/xm-beos.h
3199 tmake_file=rs6000/t-beos
3200 xmake_file=rs6000/x-beos
3203 tm_file=rs6000/sysv4.h
3204 xm_file="rs6000/xm-sysv4.h"
3205 xm_defines="USG POSIX"
3206 extra_headers=ppc-asm.h
3207 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3208 xmake_file=rs6000/x-sysv4
3211 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3212 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3213 extra_headers=ppc-asm.h
3216 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3217 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3218 extra_headers=ppc-asm.h
3221 tm_file="rs6000/sysv4.h"
3222 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3223 extra_headers=ppc-asm.h
3226 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3227 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3228 extra_headers=ppc-asm.h
3231 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3232 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3233 extra_headers=ppc-asm.h
3235 powerpc-*-linux*libc1)
3236 tm_file="rs6000/sysv4.h rs6000/linux.h"
3237 xm_file=rs6000/xm-sysv4.h
3238 out_file=rs6000/rs6000.c
3239 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3241 extra_headers=ppc-asm.h
3242 if test x$enable_threads = xyes; then
3247 tm_file="rs6000/sysv4.h rs6000/linux.h"
3248 xm_file="rs6000/xm-sysv4.h"
3249 xm_defines="USG ${xm_defines}"
3250 out_file=rs6000/rs6000.c
3251 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3253 extra_headers=ppc-asm.h
3254 if test x$enable_threads = xyes; then
3258 powerpc-wrs-vxworks*)
3260 xm_file="rs6000/xm-sysv4.h"
3261 xm_defines="USG POSIX"
3262 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3263 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3264 extra_headers=ppc-asm.h
3265 thread_file='vxworks'
3267 powerpcle-wrs-vxworks*)
3269 xm_file="rs6000/xm-sysv4.h"
3270 xm_defines="USG POSIX"
3271 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3272 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3273 extra_headers=ppc-asm.h
3274 thread_file='vxworks'
3277 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3278 xm_file="rs6000/xm-sysv4.h"
3279 xm_defines="USG POSIX"
3280 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3281 xmake_file=rs6000/x-sysv4
3282 extra_headers=ppc-asm.h
3285 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3286 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3287 extra_headers=ppc-asm.h
3289 powerpcle-*-eabisim*)
3290 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3291 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3292 extra_headers=ppc-asm.h
3295 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3296 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3297 extra_headers=ppc-asm.h
3299 powerpcle-*-solaris2*)
3300 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3301 xm_file="rs6000/xm-sysv4.h"
3302 xm_defines="USG POSIX"
3303 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3304 xmake_file=rs6000/x-sysv4
3305 extra_headers=ppc-asm.h
3308 rs6000-ibm-aix3.[01]*)
3310 tm_file=rs6000/aix31.h
3311 xmake_file=rs6000/x-aix31
3316 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3318 tm_file=rs6000/aix3newas.h
3319 if test x$host != x$target
3321 tmake_file=rs6000/t-xnewas
3323 tmake_file=rs6000/t-newas
3329 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3331 tm_file=rs6000/aix41.h
3332 if test x$host != x$target
3334 tmake_file=rs6000/t-xnewas
3336 tmake_file=rs6000/t-newas
3338 if test "$gnu_ld" = yes
3340 xmake_file=rs6000/x-aix41-gld
3342 tmake_file='rs6000/t-newas'
3344 xmake_file=rs6000/x-aix41
3349 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3351 tm_file=rs6000/aix43.h
3352 tmake_file=rs6000/t-aix43
3353 xmake_file=rs6000/x-aix41
3359 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3361 tm_file=rs6000/aix43.h
3362 tmake_file=rs6000/t-aix43
3363 xmake_file=rs6000/x-aix41
3377 tm_file=rs6000/mach.h
3378 xm_file="${xm_file} rs6000/xm-mach.h"
3379 xmake_file=rs6000/x-mach
3383 tm_file=rs6000/lynx.h
3384 xm_file=rs6000/xm-lynx.h
3385 tmake_file=rs6000/t-rs6000
3386 xmake_file=rs6000/x-lynx
3390 tmake_file="sh/t-sh sh/t-elf"
3391 tm_file="sh/sh.h sh/elf.h"
3395 tmake_file="sh/t-sh sh/t-elf t-rtems"
3396 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
3400 tmake_file="sh/t-sh t-rtems"
3401 tm_file="sh/sh.h sh/rtems.h"
3405 tm_file="sh/sh.h sh/elf.h sh/linux.h"
3406 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3409 if test x$enable_threads = xyes; then
3419 xm_file="xm-alloca.h ${xm_file}"
3422 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3423 tm_file=sparc/vxsparc.h
3424 tmake_file=sparc/t-vxsparc
3426 thread_file='vxworks'
3429 tmake_file=sparc/t-sparcbare
3430 tm_file="sparc/aout.h libgloss.h"
3433 tm_file=sparc/netbsd.h
3438 # we need collect2 until our bug is fixed...
3446 tmake_file=sparc/t-elf
3447 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3451 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3452 xm_file="${xm_file} sparc/xm-linux.h"
3453 tm_file=sparc/linux-aout.h
3457 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3458 xm_file="${xm_file} sparc/xm-linux.h"
3460 tm_file=sparc/linux.h
3461 tmake_file="t-linux t-linux-gnulibc1"
3462 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3466 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3467 xm_file="${xm_file} sparc/xm-linux.h"
3469 tm_file=sparc/linux.h
3470 tmake_file="t-linux"
3471 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3473 if test x$enable_threads = xyes; then
3479 if test x$gas = xyes
3481 tm_file=sparc/lynx.h
3483 tm_file=sparc/lynx-ng.h
3485 xm_file=sparc/xm-lynx.h
3486 tmake_file=sparc/t-sunos41
3490 tmake_file="sparc/t-sparcbare t-rtems"
3491 tm_file=sparc/rtems.h
3493 sparc-*-rtems*|sparc-*-rtemself*)
3494 tm_file="sparc/rtemself.h"
3495 tmake_file="sparc/t-elf t-rtems"
3496 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3500 sparcv9-*-solaris2*)
3501 if test x$gnu_ld = xyes
3503 tm_file=sparc/sol2-64.h
3505 tm_file=sparc/sol2-sld-64.h
3507 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3508 xm_defines="USG POSIX"
3509 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3510 if test x$gnu_ld = xyes; then
3511 tmake_file="$tmake_file sparc/t-slibgcc"
3513 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3515 xmake_file=sparc/x-sysv4
3516 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3518 if test x${enable_threads} = x ; then
3519 enable_threads=$have_pthread_h
3520 if test x${enable_threads} = x ; then
3521 enable_threads=$have_thread_h
3524 if test x${enable_threads} = xyes ; then
3525 if test x${have_pthread_h} = xyes ; then
3528 thread_file='solaris'
3532 sparc-hal-solaris2*)
3533 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3534 xm_defines="USG POSIX"
3535 tm_file="sparc/sol2.h sparc/hal.h"
3536 tmake_file="sparc/t-halos sparc/t-sol2"
3537 if test x$gnu_ld = xyes; then
3538 tmake_file="$tmake_file sparc/t-slibgcc"
3540 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3542 xmake_file=sparc/x-sysv4
3543 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3554 thread_file='solaris'
3557 if test x$gnu_ld = xyes
3559 tm_file=sparc/sol2.h
3561 tm_file=sparc/sol2-sld.h
3563 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3564 xm_defines="USG POSIX"
3565 tmake_file=sparc/t-sol2
3566 if test x$gnu_ld = xyes; then
3567 tmake_file="$tmake_file sparc/t-slibgcc"
3569 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3571 xmake_file=sparc/x-sysv4
3572 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3573 # At the moment, 32-to-64 cross compilation doesn't work.
3576 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3577 #changequote([,])dnl
3579 # if test x$gnu_ld = xyes
3581 # tm_file=sparc/sol2-64.h
3583 # tm_file=sparc/sol2-sld-64.h
3585 # tmake_file="$tmake_file sparc/t-sol2-64"
3598 if test x${enable_threads} = x; then
3599 enable_threads=$have_pthread_h
3600 if test x${enable_threads} = x; then
3601 enable_threads=$have_thread_h
3604 if test x${enable_threads} = xyes; then
3605 if test x${have_pthread_h} = xyes; then
3608 thread_file='solaris'
3613 tm_file=sparc/sunos4.h
3614 tmake_file=sparc/t-sunos40
3618 tm_file=sparc/sunos4.h
3619 tmake_file=sparc/t-sunos41
3621 if test x$gas = xyes; then
3622 tm_file="${tm_file} sparc/sun4gas.h"
3626 tm_file=sparc/sun4o3.h
3630 tm_file=sparc/sysv4.h
3631 xm_file="sparc/xm-sysv4.h"
3632 xm_defines="USG POSIX"
3634 xmake_file=sparc/x-sysv4
3635 extra_parts="crtbegin.o crtend.o"
3638 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3639 xm_defines="USG POSIX"
3640 tm_file=sparc/vxsim.h
3641 tmake_file=sparc/t-vxsparc
3642 xmake_file=sparc/x-sysv4
3645 tm_file="sparc/splet.h libgloss.h"
3646 tmake_file=sparc/t-splet
3649 tm_file="sparc/litecoff.h libgloss.h"
3650 tmake_file=sparc/t-sparclite
3653 tm_file="sparc/lite.h aoutos.h libgloss.h"
3654 tmake_file=sparc/t-sparclite
3657 tm_file="sparc/liteelf.h"
3658 tmake_file=sparc/t-sparclite
3659 extra_parts="crtbegin.o crtend.o"
3662 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3663 tmake_file=sparc/t-sp86x
3666 tm_file="sparc/sp86x-elf.h"
3667 tmake_file=sparc/t-sp86x
3668 extra_parts="crtbegin.o crtend.o"
3671 tmake_file=sparc/t-sp64
3672 tm_file=sparc/sp64-aout.h
3675 tmake_file=sparc/t-sp64
3676 tm_file=sparc/sp64-elf.h
3677 extra_parts="crtbegin.o crtend.o"
3679 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3680 tmake_file="t-linux sparc/t-linux64"
3681 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3682 tm_file=sparc/linux64.h
3684 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3686 if test x$enable_threads = xyes; then
3693 *** The Thumb targets have been depreciated. The equivalent
3694 *** ARM based toolchain can now generated Thumb instructions
3695 *** when the -mthumb switch is given to the compiler.])
3699 tm_file="v850/rtems.h"
3700 xm_file="v850/xm-v850.h"
3701 tmake_file="v850/t-v850 t-rtems"
3702 if test x$stabs = xyes
3704 tm_file="${tm_file} dbx.h"
3709 target_cpu_default="TARGET_CPU_generic"
3711 tm_file="v850/v850.h"
3712 xm_file="v850/xm-v850.h"
3713 tmake_file=v850/t-v850
3714 if test x$stabs = xyes
3716 tm_file="${tm_file} dbx.h"
3720 vax-*-bsd*) # vaxen running BSD
3724 vax-*-sysv*) # vaxen running system V
3725 tm_file="${tm_file} vax/vaxv.h"
3730 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3736 tmake_file="${tmake_file} vax/t-openbsd"
3737 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3738 xm_file="xm-openbsd.h vax/xm-vax.h"
3742 vax-*-ultrix*) # vaxen running ultrix
3743 tm_file="${tm_file} vax/ultrix.h"
3746 vax-*-vms*) # vaxen running VMS
3747 xm_file=vax/xm-vms.h
3751 vax-*-*) # vax default entry
3755 xm_file="${xm_file} xm-svr3"
3759 echo "Configuration $machine not supported" 1>&2
3766 ;; # Existing GNU/Linux systems do not use the GNU setup.
3768 # On the GNU system, the setup is just about the same on
3769 # each different CPU. The specific machines that GNU
3770 # supports are matched above and just set $cpu_type.
3771 xm_file="xm-gnu.h ${xm_file}"
3772 tm_file=${cpu_type}/gnu.h
3773 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3774 # GNU always uses ELF.
3776 # GNU tools are the only tools.
3779 xmake_file=x-linux # These details are the same as Linux.
3780 tmake_file=t-gnu # These are not.
3783 xmake_try_sysv=x-sysv
3784 install_headers_dir=install-headers-cpio
3787 install_headers_dir=install-headers-cpio
3791 # Distinguish i[34567]86
3792 # Also, do not run mips-tfile on MIPS if using gas.
3793 # Process --with-cpu= for PowerPC/rs6000
3794 target_cpu_default2=
3797 target_cpu_default2=1
3800 case $target_alias in
3802 target_cpu_default2=4
3805 target_cpu_default2=2
3809 i686-*-* | i786-*-*)
3810 target_cpu_default2=3
3817 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3820 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3823 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3826 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3829 target_cpu_default2="MASK_CPU_EV5"
3833 if test x$gas = xyes
3835 if test "$target_cpu_default2" = ""
3837 target_cpu_default2="MASK_GAS"
3839 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3844 case "x$with_cpu" in
3847 target_cpu_default2="TARGET_CPU_generic"
3850 # Distinguish cores, and major variants
3851 # arm7m doesn't exist, but D & I don't affect code
3853 xarm[23678] | xarm250 | xarm[67][01]0 \
3854 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3855 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3856 | xstrongarm | xstrongarm110 | xstrongarm1100)
3858 target_cpu_default2="TARGET_CPU_$with_cpu"
3862 echo "--with-cpu must be passed a value" 1>&2
3867 if test x$pass2done = xyes
3869 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3876 mips*-*-ecoff* | mips*-*-elf*)
3877 if test x$gas = xyes
3879 if test x$gnu_ld = xyes
3881 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3883 target_cpu_default2="MASK_GAS"
3888 if test x$gas = xyes
3890 target_cpu_default2="MASK_GAS"
3893 powerpc*-*-* | rs6000-*-*)
3894 case "x$with_cpu" in
3898 xcommon | xpower | xpower2 | xpowerpc | xrios \
3899 | xrios1 | xrios2 | xrsc | xrsc1 \
3900 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3901 | xec603e | x740 | x750 | x401 \
3902 | x403 | x505 | x801 | x821 | x823 | x860)
3903 target_cpu_default2="\"$with_cpu\""
3907 echo "--with-cpu must be passed a value" 1>&2
3912 if test x$pass2done = xyes
3914 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3921 case ".$with_cpu" in
3923 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3925 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3926 target_cpu_default2="TARGET_CPU_$with_cpu"
3929 if test x$pass2done = xyes
3931 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3939 if test "$target_cpu_default2" != ""
3941 if test "$target_cpu_default" != ""
3943 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3945 target_cpu_default=$target_cpu_default2
3949 # No need for collect2 if we have the GNU linker.
3950 # Actually, there is now; GNU ld doesn't handle the EH info or
3951 # collecting for shared libraries.
3958 # Save data on machine being used to compile GCC in build_xm_file.
3959 # Save data on host machine in vars host_xm_file and host_xmake_file.
3960 if test x$pass1done = x
3962 if test x"$xm_file" = x
3963 then build_xm_file=$cpu_type/xm-$cpu_type.h
3964 else build_xm_file=$xm_file
3966 build_xm_defines=$xm_defines
3967 build_install_headers_dir=$install_headers_dir
3968 build_exeext=$exeext
3971 if test x$pass2done = x
3973 if test x"$xm_file" = x
3974 then host_xm_file=$cpu_type/xm-$cpu_type.h
3975 else host_xm_file=$xm_file
3977 host_xm_defines=$xm_defines
3978 if test x"$xmake_file" = x
3979 then xmake_file=$cpu_type/x-$cpu_type
3981 host_xmake_file="$xmake_file"
3982 host_truncate_target=$truncate_target
3983 host_extra_gcc_objs=$extra_gcc_objs
3984 host_extra_objs=$extra_host_objs
3991 extra_objs="${host_extra_objs} ${extra_objs}"
3993 # Default the target-machine variables that were not explicitly set.
3994 if test x"$tm_file" = x
3995 then tm_file=$cpu_type/$cpu_type.h; fi
3997 if test x$extra_headers = x
3998 then extra_headers=; fi
4000 if test x"$xm_file" = x
4001 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4003 if test x$md_file = x
4004 then md_file=$cpu_type/$cpu_type.md; fi
4006 if test x$out_file = x
4007 then out_file=$cpu_type/$cpu_type.c; fi
4009 if test x"$tmake_file" = x
4010 then tmake_file=$cpu_type/t-$cpu_type
4013 if test x"$dwarf2" = xyes
4014 then tm_file="$tm_file tm-dwarf2.h"
4017 if test x$float_format = x
4018 then float_format=i64
4021 if test $float_format = none
4022 then float_h_file=Makefile.in
4023 else float_h_file=float-$float_format.h
4026 # Handle cpp installation.
4027 if test x$enable_cpp != xno
4029 tmake_file="$tmake_file t-install-cpp"
4032 # Say what files are being used for the output code and MD file.
4033 echo "Using \`$srcdir/config/$out_file' to output insns."
4034 echo "Using \`$srcdir/config/$md_file' as machine description file."
4037 for f in $tm_file; do
4040 if test $count = ax; then
4041 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4043 echo "Using the following target machine macro files:"
4044 for f in $tm_file; do
4045 echo " $srcdir/config/$f"
4050 for f in $host_xm_file; do
4053 if test $count = ax; then
4054 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4056 echo "Using the following host machine macro files:"
4057 for f in $host_xm_file; do
4058 echo " $srcdir/config/$f"
4062 if test "$host_xm_file" != "$build_xm_file"; then
4064 for f in $build_xm_file; do
4067 if test $count = ax; then
4068 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4070 echo "Using the following build machine macro files:"
4071 for f in $build_xm_file; do
4072 echo " $srcdir/config/$f"
4077 if test x$thread_file = x; then
4078 if test x$target_thread_file != x; then
4079 thread_file=$target_thread_file
4081 thread_file='single'
4085 # Set up the header files.
4086 # $links is the list of header files to create.
4087 # $vars is the list of shell variables with file names to include.
4088 # auto-host.h is the file containing items generated by autoconf and is
4089 # the first file included by config.h.
4091 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4093 # If host=build, it is correct to have hconfig include auto-host.h
4094 # as well. If host!=build, we are in error and need to do more
4095 # work to find out the build config parameters.
4096 if test x$host = x$build
4098 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4100 # We create a subdir, then run autoconf in the subdir.
4101 # To prevent recursion we set host and build for the new
4102 # invocation of configure to the build for this invocation
4109 /*) realsrcdir=${srcdir};;
4110 *) realsrcdir=../${srcdir};;
4112 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4113 --target=$target --host=$build --build=$build
4115 # We just finished tests for the build machine, so rename
4116 # the file auto-build.h in the gcc directory.
4117 mv auto-host.h ../auto-build.h
4120 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4123 xm_file="gansidecl.h ${xm_file}"
4124 tm_file="gansidecl.h ${tm_file}"
4126 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4127 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4128 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4131 if test -f config.status; then mv -f config.status config.bak; fi
4134 while test -n "$vars"
4136 set $vars; var=$1; shift; vars=$*
4137 set $links; link=$1; shift; links=$*
4138 set $defines; define=$1; shift; defines=$*
4141 # Make sure the file is created, even if it is empty.
4144 # Define TARGET_CPU_DEFAULT if the system wants one.
4145 # This substitutes for lots of *.h files.
4146 if test "$target_cpu_default" != "" -a $link = tm.h
4148 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4151 for file in `eval echo '$'$var`; do
4153 auto-host.h | auto-build.h )
4156 echo '#ifdef IN_GCC' >>$link
4159 echo "#include \"$file\"" >>$link
4161 auto-host.h | auto-build.h )
4164 echo '#endif' >>$link
4169 for def in `eval echo '$'$define`; do
4170 echo "#ifndef $def" >>$link
4171 echo "#define $def" >>$link
4172 echo "#endif" >>$link
4176 # Truncate the target if necessary
4177 if test x$host_truncate_target != x; then
4178 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4181 # Get the version trigger filename from the toplevel
4182 if test "${with_gcc_version_trigger+set}" = set; then
4183 gcc_version_trigger=$with_gcc_version_trigger
4185 gcc_version_trigger=${srcdir}/version.c
4188 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4189 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4192 # Internationalization
4194 VERSION="$gcc_version"
4195 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4196 [Define to the name of the distribution.])
4197 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4198 [Define to the version of the distribution.])
4204 # Enable NLS support by default
4206 [ --enable-nls use Native Language Support (default)],
4209 # if cross compiling, disable NLS support.
4210 # It's not worth the trouble, at least for now.
4212 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4213 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4217 # if NLS is enabled, also enable check in po subdir
4218 if test $enable_nls = yes; then
4227 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4229 # Windows32 Registry support for specifying GCC installation paths.
4230 AC_ARG_ENABLE(win32-registry,
4231 [ --disable-win32-registry
4232 Disable lookup of installation paths in the
4233 Registry on Windows hosts.
4234 --enable-win32-registry Enable registry lookup (default).
4235 --enable-win32-registry=KEY
4236 Use KEY instead of GCC version as the last portion
4237 of the registry key.],,)
4239 AC_MSG_CHECKING(whether windows registry support is requested)
4240 if test x$enable_win32_registry != xno; then
4241 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4242 [Define to 1 if installation paths should be looked up in Windows32
4243 Registry. Ignored on non windows32 hosts.])
4249 # Check if user specified a different registry key.
4250 case x${enable_win32_registry} in
4253 gcc_cv_win32_registry_key="$VERSION"
4256 # no registry lookup.
4257 gcc_cv_win32_registry_key=''
4260 # user-specified key.
4261 gcc_cv_win32_registry_key="$enable_win32_registry"
4265 if test x$enable_win32_registry != xno; then
4266 AC_MSG_CHECKING(registry key on windows hosts)
4267 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4268 [Define to be the last portion of registry key on windows hosts.])
4269 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4272 # Get an absolute path to the GCC top-level source directory
4278 # Conditionalize the makefile for this host machine.
4279 # Make-host contains the concatenation of all host makefile fragments
4280 # [there can be more than one]. This file is built by configure.frag.
4281 host_overrides=Make-host
4282 dep_host_xmake_file=
4283 for f in .. ${host_xmake_file}
4285 if test -f ${srcdir}/config/$f
4287 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4291 # Conditionalize the makefile for this target machine.
4292 # Make-target contains the concatenation of all host makefile fragments
4293 # [there can be more than one]. This file is built by configure.frag.
4294 target_overrides=Make-target
4296 for f in .. ${tmake_file}
4298 if test -f ${srcdir}/config/$f
4300 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4304 # If the host doesn't support symlinks, modify CC in
4305 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4306 # Otherwise, we can use "CC=$(CC)".
4308 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4310 cc_set_by_configure="\$(CC)"
4311 quoted_cc_set_by_configure="\$(CC)"
4312 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4315 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4317 symbolic_link="cp -p"
4321 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4322 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4323 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4327 out_object_file=`basename $out_file .c`.o
4330 for f in $tm_file; do
4333 tm_file_list="${tm_file_list} $f" ;;
4334 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4339 for f in $host_xm_file; do
4341 auto-host.h | gansidecl.h | hwint.h )
4342 host_xm_file_list="${host_xm_file_list} $f" ;;
4343 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4348 for f in $build_xm_file; do
4350 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4351 build_xm_file_list="${build_xm_file_list} $f" ;;
4352 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4356 # Define macro CROSS_COMPILE in compilation
4357 # if this is a cross-compiler.
4358 # Also use all.cross instead of all.internal
4359 # and add cross-make to Makefile.
4360 cross_overrides="/dev/null"
4361 if test x$host != x$target
4363 cross_defines="CROSS=-DCROSS_COMPILE"
4364 cross_overrides="${topdir}/cross-make"
4367 # If this is a cross-compiler that does not
4368 # have its own set of headers then define
4371 # If this is using newlib, then define inhibit_libc in
4372 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4373 # libgcc.a, but that's OK because newlib should have its own version of
4376 if [test x$host != x$target] && [test x$with_headers = x]; then
4377 inhibit_libc=-Dinhibit_libc
4379 if [test x$with_newlib = xyes]; then
4380 inhibit_libc=-Dinhibit_libc
4383 AC_SUBST(inhibit_libc)
4385 # When building gcc with a cross-compiler, we need to fix a few things.
4386 # This must come after cross-make as we want all.build to override
4388 build_overrides="/dev/null"
4389 if test x$build != x$host
4391 build_overrides="${topdir}/build-make"
4394 # Expand extra_headers to include complete path.
4395 # This substitutes for lots of t-* files.
4397 if test "x$extra_headers" = x
4400 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4401 for file in $extra_headers;
4403 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4407 if test x$use_collect2 = xno; then
4411 # Add a definition of USE_COLLECT2 if system wants one.
4412 # Also tell toplev.c what to do.
4413 # This substitutes for lots of t-* files.
4414 if test x$use_collect2 = x
4419 will_use_collect2="collect2"
4420 maybe_use_collect2="-DUSE_COLLECT2"
4424 # Set MD_DEPS if the real md file is in md.pre-cpp.
4425 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4426 # for line oriented comments, so we must always use a GNU cpp. If
4427 # building gcc with a cross compiler, use the cross compiler just
4428 # built. Otherwise, we can use the cpp just built.
4430 if test "x$md_cppflags" = x
4432 md_file_sub=$srcdir/config/$md_file
4437 # If we have gas in the build tree, make a link to it.
4438 if test -f ../gas/Makefile; then
4439 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4442 # If we have nm in the build tree, make a link to it.
4443 if test -f ../binutils/Makefile; then
4444 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4447 # If we have ld in the build tree, make a link to it.
4448 if test -f ../ld/Makefile; then
4449 # if test x$use_collect2 = x; then
4450 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4452 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4456 # Figure out what assembler we will be using.
4457 AC_MSG_CHECKING(what assembler to use)
4459 gcc_cv_gas_major_version=
4460 gcc_cv_gas_minor_version=
4461 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4462 if test -x "$DEFAULT_ASSEMBLER"; then
4463 gcc_cv_as="$DEFAULT_ASSEMBLER"
4464 elif test -x "$AS"; then
4466 elif test -x as$host_exeext; then
4467 # Build using assembler in the current directory.
4468 gcc_cv_as=./as$host_exeext
4469 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4470 # Single tree build which includes gas.
4471 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4474 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4476 if test x$gcc_cv_gas_version != x; then
4481 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4482 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4486 if test "x$gcc_cv_as" = x -a x$host = x$target; then
4488 # Search the same directories that the installed compiler will
4489 # search. Else we may find the wrong assembler and lose. If we
4490 # do not find a suitable assembler binary, then try the user's
4493 # Also note we have to check MD_EXEC_PREFIX before checking the
4494 # user's path. Unfortunately, there is no good way to get at the
4495 # value of MD_EXEC_PREFIX here. So we do a brute force search
4496 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4497 # to be fixed as part of the make/configure rewrite too.
4499 if test "x$exec_prefix" = xNONE; then
4500 if test "x$prefix" = xNONE; then
4501 test_prefix=/usr/local
4506 test_prefix=$exec_prefix
4509 # If the loop below does not find an assembler, then use whatever
4510 # one we can find in the users's path.
4514 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4515 $test_prefix/lib/gcc-lib/$target \
4516 /usr/lib/gcc/$target/$gcc_version \
4517 /usr/lib/gcc/$target \
4518 $test_prefix/$target/bin/$target/$gcc_version \
4519 $test_prefix/$target/bin \
4524 /bsd43/usr/lib/cmplrs/cc \
4525 /usr/cross64/usr/bin \
4526 /usr/lib/cmplrs/cc \
4527 /sysv/usr/lib/cmplrs/cc \
4528 /svr4/usr/lib/cmplrs/cc \
4531 for dir in $test_dirs; do
4532 if test -f $dir/as$host_exeext; then
4533 gcc_cv_as=$dir/as$host_exeext
4538 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4539 AC_MSG_RESULT("newly built gas")
4541 AC_MSG_RESULT($gcc_cv_as)
4544 # Figure out what nm we will be using.
4545 AC_MSG_CHECKING(what nm to use)
4546 if test -x nm$host_exeext; then
4547 gcc_cv_nm=./nm$host_exeext
4548 elif test x$host = x$target; then
4550 gcc_cv_nm=nm$host_exeext
4552 AC_MSG_RESULT($gcc_cv_nm)
4554 # Figure out what assembler alignment features are present.
4555 AC_MSG_CHECKING(assembler alignment features)
4556 gcc_cv_as_alignment_features=
4557 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4558 # Gas version 2.6 and later support for .balign and .p2align.
4559 # bytes to skip when using .p2align.
4560 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
4561 gcc_cv_as_alignment_features=".balign and .p2align"
4562 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4564 # Gas version 2.8 and later support specifying the maximum
4565 # bytes to skip when using .p2align.
4566 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
4567 gcc_cv_as_alignment_features=".p2align including maximum skip"
4568 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4570 elif test x$gcc_cv_as != x; then
4571 # Check if we have .balign and .p2align
4572 echo ".balign 4" > conftest.s
4573 echo ".p2align 2" >> conftest.s
4574 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4575 gcc_cv_as_alignment_features=".balign and .p2align"
4576 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4578 rm -f conftest.s conftest.o
4579 # Check if specifying the maximum bytes to skip when
4580 # using .p2align is supported.
4581 echo ".p2align 4,,7" > conftest.s
4582 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4583 gcc_cv_as_alignment_features=".p2align including maximum skip"
4584 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4586 rm -f conftest.s conftest.o
4588 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4590 AC_MSG_CHECKING(assembler subsection support)
4591 gcc_cv_as_subsections=
4592 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4593 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
4594 gcc_cv_as_subsections="working .subsection -1"
4596 elif test x$gcc_cv_as != x; then
4597 # Check if we have .subsection
4598 echo ".subsection 1" > conftest.s
4599 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4600 gcc_cv_as_subsections=".subsection"
4601 if test x$gcc_cv_nm != x; then
4602 cat > conftest.s <<EOF
4603 conftest_label1: .word 0
4605 conftest_label2: .word 0
4608 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4609 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4610 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4611 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4614 gcc_cv_as_subsections="working .subsection -1"
4619 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4621 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
4622 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4623 [Define if your assembler supports .subsection and .subsection -1 starts
4624 emitting at the beginning of your section.])
4626 AC_MSG_RESULT($gcc_cv_as_subsections)
4628 AC_MSG_CHECKING(assembler weak support)
4630 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4631 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
4632 gcc_cv_as_weak="yes"
4634 elif test x$gcc_cv_as != x; then
4635 # Check if we have .weak
4636 echo " .weak foobar" > conftest.s
4637 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4638 gcc_cv_as_weak="yes"
4640 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4642 if test x"$gcc_cv_as_weak" = xyes; then
4643 AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])
4645 AC_MSG_RESULT($gcc_cv_as_weak)
4647 AC_MSG_CHECKING(assembler hidden support)
4649 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4650 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
4651 gcc_cv_as_hidden="yes"
4653 elif test x$gcc_cv_as != x; then
4654 # Check if we have .hidden
4655 echo " .hidden foobar" > conftest.s
4656 echo "foobar:" >> conftest.s
4657 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4658 gcc_cv_as_hidden="yes"
4660 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4662 if test x"$gcc_cv_as_hidden" = xyes; then
4663 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4664 [Define if your assembler supports .hidden.])
4666 AC_MSG_RESULT($gcc_cv_as_hidden)
4670 AC_CACHE_CHECK([assembler .register pseudo-op support],
4671 gcc_cv_as_register_pseudo_op, [
4672 gcc_cv_as_register_pseudo_op=unknown
4673 if test x$gcc_cv_as != x; then
4674 # Check if we have .register
4675 echo ".register %g2, #scratch" > conftest.s
4676 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4677 gcc_cv_as_register_pseudo_op=yes
4679 gcc_cv_as_register_pseudo_op=no
4681 rm -f conftest.s conftest.o
4684 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4685 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4686 [Define if your assembler supports .register.])
4689 AC_CACHE_CHECK([assembler supports -relax],
4690 gcc_cv_as_relax_opt, [
4691 gcc_cv_as_relax_opt=unknown
4692 if test x$gcc_cv_as != x; then
4693 # Check if gas supports -relax
4694 echo ".text" > conftest.s
4695 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4696 gcc_cv_as_relax_opt=yes
4698 gcc_cv_as_relax_opt=no
4700 rm -f conftest.s conftest.o
4703 if test "x$gcc_cv_as_relax_opt" = xyes; then
4704 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4705 [Define if your assembler supports -relax option.])
4710 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4711 gcc_cv_as_flags64, [
4712 if test -n "$gcc_cv_as"; then
4713 echo ".xword foo" > conftest.s
4714 gcc_cv_as_flags64=no
4715 for flag in "-xarch=v9" "-64 -Av9"; do
4716 if $gcc_cv_as $flag -o conftest.o conftest.s \
4717 > /dev/null 2>&1; then
4718 gcc_cv_as_flags64=$flag
4722 rm -f conftest.s conftest.o
4724 if test "$gas" = yes; then
4725 gcc_cv_as_flags64="-64 -Av9"
4727 gcc_cv_as_flags64="-xarch=v9"
4731 if test "x$gcc_cv_as_flags64" = xno; then
4733 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4734 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4737 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4738 [Define if the assembler supports 64bit sparc.])
4741 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4745 if test "x$gcc_cv_as_flags64" != xno; then
4746 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4747 gcc_cv_as_offsetable_lo10, [
4748 gcc_cv_as_offsetable_lo10=unknown
4749 if test "x$gcc_cv_as" != x; then
4750 # Check if assembler has offsetable %lo()
4751 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4752 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4753 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4755 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4756 > /dev/null 2>&1; then
4757 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4758 gcc_cv_as_offsetable_lo10=no
4760 gcc_cv_as_offsetable_lo10=yes
4763 gcc_cv_as_offsetable_lo10=no
4765 rm -f conftest.s conftest.o conftest1.s conftest1.o
4768 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4769 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4770 [Define if your assembler supports offsetable %lo().])
4778 AC_MSG_CHECKING(assembler instructions)
4779 gcc_cv_as_instructions=
4780 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4781 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
4782 gcc_cv_as_instructions="filds fists"
4784 elif test x$gcc_cv_as != x; then
4785 set "filds fists" "filds mem; fists mem"
4788 echo "$2" > conftest.s
4789 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4790 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4794 rm -f conftest.s conftest.o
4796 if test x"$gcc_cv_as_instructions" != x; then
4797 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr '[a-z ]' '[A-Z_]'`)
4799 AC_MSG_RESULT($gcc_cv_as_instructions)
4803 # Figure out what language subdirectories are present.
4804 # Look if the user specified --enable-languages="..."; if not, use
4805 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4807 if test x"${enable_languages+set}" != xset; then
4808 if test x"${LANGUAGES+set}" = xset; then
4809 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4811 enable_languages=all
4814 if test x"${enable_languages}" = x; then
4815 AC_MSG_ERROR([--enable-languages needs at least one argument])
4819 for lang in ${srcdir}/*/config-lang.in ..
4823 # The odd quoting in the next line works around
4824 # an apparent bug in bash 1.12 on linux.
4826 ${srcdir}/[*]/config-lang.in) ;;
4828 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4829 if test "x$lang_alias" = x
4831 echo "$lang doesn't set \$language." 1>&2
4834 if test x"${enable_languages}" = xall && test x"${lang_alias}" != xCHILL; then
4837 case "${enable_languages}" in
4838 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4846 if test x"${add_this_lang}" = xyes; then
4848 ${srcdir}/ada/config-lang.in)
4849 if test x$gnat = xyes ; then
4850 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4854 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4863 # Make gthr-default.h if we have a thread file.
4865 if test $thread_file != single; then
4866 rm -f gthr-default.h
4867 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4868 gthread_flags=-DHAVE_GTHR_DEFAULT
4870 AC_SUBST(gthread_flags)
4872 # Find out what GC implementation we want, or may, use.
4874 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4875 with the compiler.],
4881 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4884 [if test $ac_cv_func_mmap_anywhere = yes \
4885 || test $ac_cv_func_valloc = yes; then
4891 echo "Using $GGC for garbage collection."
4893 # Use the system's zlib library.
4895 zlibinc="-I\$(srcdir)/../zlib"
4896 AC_ARG_WITH(system-zlib,
4897 [ --with-system-zlib use installed libz],
4904 # Build a new-abi (c++) system
4905 AC_ARG_ENABLE(new-gxx-abi,
4906 [ --enable-new-gxx-abi
4907 select the new abi for g++. You must select an ABI
4908 at configuration time, so that the correct runtime
4909 support is built. You cannot mix ABIs.],
4910 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4911 [Define if you want to always select the new-abi for g++.])
4912 GXX_ABI_FLAG='-fnew-abi'
4913 echo "Building a new-abi g++ compiler."
4915 AC_SUBST(GXX_ABI_FLAG)
4917 # Build a new-libstdc++ system (ie libstdc++-v3)
4918 AC_MSG_CHECKING([for libstdc++ to install])
4919 AC_ARG_ENABLE(libstdcxx-v3,
4920 [ --enable-libstdcxx-v3
4921 enable libstdc++-v3 for building and installation],
4922 [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
4924 if test x$enable_libstdcxx_v3 = xyes; then
4933 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4934 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4935 AC_SUBST(HAVE_LIBSTDCXX_V3)
4937 dnl Very limited version of automake's enable-maintainer-mode
4939 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4940 dnl maintainer-mode is disabled by default
4941 AC_ARG_ENABLE(maintainer-mode,
4942 [ --enable-maintainer-mode enable make rules and dependencies not useful
4943 (and sometimes confusing) to the casual installer],
4944 maintainer_mode=$enableval,
4947 AC_MSG_RESULT($maintainer_mode)
4949 if test "$maintainer_mode" = "yes"; then
4956 # Make empty files to contain the specs and options for each language.
4957 # Then add #include lines to for a compiler that has specs and/or options.
4962 rm -f specs.h options.h gencheck.h
4963 touch specs.h options.h gencheck.h
4964 for subdir in . $subdirs
4966 if test -f $srcdir/$subdir/lang-specs.h; then
4967 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4968 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4970 if test -f $srcdir/$subdir/lang-options.h; then
4971 echo "#include \"$subdir/lang-options.h\"" >>options.h
4972 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4974 if test -f $srcdir/$subdir/$subdir-tree.def; then
4975 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4976 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4980 # These (without "all_") are set in each config-lang.in.
4981 # `language' must be a single word so is spelled singularly.
4987 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4988 # List of language makefile fragments.
4993 # Add the language fragments.
4994 # Languages are added via two mechanisms. Some information must be
4995 # recorded in makefile variables, these are defined in config-lang.in.
4996 # We accumulate them and plug them into the main Makefile.
4997 # The other mechanism is a set of hooks for each of the main targets
4998 # like `clean', `install', etc.
5000 language_fragments="Make-lang"
5001 language_hooks="Make-hooks"
5003 for s in .. $subdirs
5015 . ${srcdir}/$s/config-lang.in
5016 if test "x$language" = x
5018 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5021 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in $outputs"
5022 all_languages="$all_languages $language"
5023 if test "x$boot_language" = xyes
5025 all_boot_languages="$all_boot_languages $language"
5027 all_compilers="$all_compilers $compilers"
5028 all_stagestuff="$all_stagestuff $stagestuff"
5029 all_diff_excludes="$all_diff_excludes $diff_excludes"
5030 all_headers="$all_headers $headers"
5031 all_outputs="$all_outputs $outputs"
5032 all_lib2funcs="$all_lib2funcs $lib2funcs"
5036 # Since we can't use `::' targets, we link each language in
5037 # with a set of hooks, reached indirectly via lang.${target}.
5041 target_list="all.build all.cross start.encap rest.encap \
5043 install-normal install-common install-info install-man \
5045 mostlyclean clean distclean extraclean maintainer-clean \
5046 stage1 stage2 stage3 stage4"
5047 for t in $target_list
5050 for lang in .. $all_languages
5052 if test $lang != ".."; then
5056 echo "lang.$t: $x" >> Make-hooks
5059 # If we're not building in srcdir, create .gdbinit.
5061 if test ! -f Makefile.in; then
5062 echo "dir ." > .gdbinit
5063 echo "dir ${srcdir}" >> .gdbinit
5064 if test x$gdb_needs_out_file_path = xyes
5066 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5068 if test "x$subdirs" != x; then
5071 echo "dir ${srcdir}/$s" >> .gdbinit
5074 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5077 # Define variables host_canonical and build_canonical
5078 # because some Cygnus local changes in the Makefile depend on them.
5079 build_canonical=${build}
5080 host_canonical=${host}
5082 if test "${host}" != "${target}" ; then
5083 target_subdir=${target}/
5085 AC_SUBST(build_canonical)
5086 AC_SUBST(host_canonical)
5087 AC_SUBST(target_subdir)
5089 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
5090 # absolute path for gcc_tooldir based on inserting the number of up-directory
5091 # movements required to get from $(exec_prefix) to $(prefix) into the basic
5092 # $(libsubdir)/@(unlibsubdir) based path.
5093 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
5094 # make and thus we'd get different behavior depending on where we built the
5096 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
5097 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
5099 changequote(<<, >>)dnl
5100 # An explanation of the sed strings:
5101 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
5102 # -e 's|/$||' match a trailing forward slash and eliminates it
5103 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
5104 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
5106 # (*) Note this pattern overwrites the first character of the string
5107 # with a forward slash if one is not already present. This is not a
5108 # problem because the exact names of the sub-directories concerned is
5109 # unimportant, just the number of them matters.
5111 # The practical upshot of these patterns is like this:
5113 # prefix exec_prefix result
5114 # ------ ----------- ------
5116 # /foo/ /foo/bar ../
5117 # /foo /foo/bar/ ../
5118 # /foo/ /foo/bar/ ../
5119 # /foo /foo/bar/ugg ../../
5122 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
5123 changequote([, ])dnl
5125 AC_SUBST(gcc_tooldir)
5128 # Nothing to do for FLOAT_H, float_format already handled.
5132 # Process the language and host/target makefile fragments.
5133 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5135 # Substitute configuration variables
5137 AC_SUBST(all_boot_languages)
5138 AC_SUBST(all_compilers)
5139 AC_SUBST(all_diff_excludes)
5140 AC_SUBST(all_headers)
5141 AC_SUBST(all_lang_makefiles)
5142 AC_SUBST(all_languages)
5143 AC_SUBST(all_lib2funcs)
5144 AC_SUBST(all_stagestuff)
5145 AC_SUBST(build_exeext)
5146 AC_SUBST(build_install_headers_dir)
5147 AC_SUBST(build_xm_file_list)
5148 AC_SUBST(cc_set_by_configure)
5149 AC_SUBST(quoted_cc_set_by_configure)
5150 AC_SUBST(cpp_install_dir)
5151 AC_SUBST(dep_host_xmake_file)
5152 AC_SUBST(dep_tmake_file)
5153 AC_SUBST(extra_c_flags)
5154 AC_SUBST(extra_headers_list)
5155 AC_SUBST(extra_objs)
5156 AC_SUBST(extra_parts)
5157 AC_SUBST(extra_passes)
5158 AC_SUBST(extra_programs)
5159 AC_SUBST(float_h_file)
5160 AC_SUBST(gcc_gxx_include_dir)
5161 AC_SUBST(gcc_version)
5162 AC_SUBST(gcc_version_full)
5163 AC_SUBST(gcc_version_trigger)
5164 AC_SUBST(host_exeext)
5165 AC_SUBST(host_extra_gcc_objs)
5166 AC_SUBST(host_xm_file_list)
5168 AC_SUBST(lang_options_files)
5169 AC_SUBST(lang_specs_files)
5170 AC_SUBST(lang_tree_files)
5171 AC_SUBST(local_prefix)
5172 AC_SUBST(maybe_use_collect2)
5174 AC_SUBST(objc_boehm_gc)
5176 AC_SUBST(out_object_file)
5177 AC_SUBST(stage_prefix_set_by_configure)
5178 AC_SUBST(symbolic_link)
5179 AC_SUBST(thread_file)
5180 AC_SUBST(tm_file_list)
5181 AC_SUBST(will_use_collect2)
5184 AC_SUBST_FILE(target_overrides)
5185 AC_SUBST_FILE(host_overrides)
5186 AC_SUBST(cross_defines)
5187 AC_SUBST_FILE(cross_overrides)
5188 AC_SUBST_FILE(build_overrides)
5189 AC_SUBST_FILE(language_fragments)
5190 AC_SUBST_FILE(language_hooks)
5192 # Echo that links are built
5193 if test x$host = x$target
5201 if test x$host != x$build
5203 str3=" on a $build system"
5206 if test "x$str2" != x || test "x$str3" != x
5211 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5213 if test "x$str2" != x || test "x$str3" != x
5215 echo " ${str2}${str3}." 1>&2
5218 # Truncate the target if necessary
5219 if test x$host_truncate_target != x; then
5220 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5223 # Configure the subdirectories
5224 # AC_CONFIG_SUBDIRS($subdirs)
5226 # Create the Makefile
5227 # and configure language subdirectories
5228 AC_OUTPUT($all_outputs,
5230 case x$CONFIG_HEADERS in
5231 xauto-host.h:config.in)
5234 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5235 # bootstrapping and the installation procedure can still use
5236 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5237 # FLAGS_TO_PASS has been modified to solve the problem there.
5238 # This is virtually a duplicate of what happens in configure.lang; we do
5239 # an extra check to make sure this only happens if ln -s can be used.
5240 if test "$symbolic_link" = "ln -s"; then
5241 for d in .. ${subdirs} ; do
5242 if test $d != ..; then
5245 for t in stage1 stage2 stage3 stage4 include
5248 $symbolic_link ../$t $t 2>/dev/null
5254 # Avoid having to add intl to our include paths.
5255 if test -f intl/libintl.h; then
5256 echo creating libintl.h
5257 echo '#include "intl/libintl.h"' >libintl.h
5264 target_alias='${target_alias}'
5266 subdirs='${subdirs}'
5267 symbolic_link='${symbolic_link}'
5268 program_transform_set='${program_transform_set}'
5269 program_transform_name='${program_transform_name}'
5270 dep_host_xmake_file='${dep_host_xmake_file}'
5271 host_xmake_file='${host_xmake_file}'
5272 dep_tmake_file='${dep_tmake_file}'
5273 tmake_file='${tmake_file}'
5274 thread_file='${thread_file}'
5275 gcc_version='${gcc_version}'
5276 gcc_version_full='${gcc_version_full}'
5277 gcc_version_trigger='${gcc_version_trigger}'
5278 local_prefix='${local_prefix}'
5279 build_install_headers_dir='${build_install_headers_dir}'
5280 build_exeext='${build_exeext}'
5281 host_exeext='${host_exeext}'
5282 out_file='${out_file}'
5283 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5284 SET_MAKE='${SET_MAKE}'
5285 target_list='${target_list}'
5286 target_overrides='${target_overrides}'
5287 host_overrides='${host_overrides}'
5288 cross_defines='${cross_defines}'
5289 cross_overrides='${cross_overrides}'
5290 build_overrides='${build_overrides}'
5291 cpp_install_dir='${cpp_install_dir}'