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.
258 AC_ARG_ENABLE(c-cpplib,
259 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
260 (HIGHLY EXPERIMENTAL).],
261 if test x$enable_c_cpplib != xno; then
262 extra_c_objs="${extra_c_objs} libcpp.a"
263 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
264 AC_DEFINE(USE_CPPLIB, 1,
265 [Define if you want the preprocessor merged into the C and C++ compilers.
266 This mode is not ready for production use.])
269 # Enable Multibyte Characters for C/C++
270 AC_ARG_ENABLE(c-mbchar,
271 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
272 if test x$enable_c_mbchar != xno; then
273 AC_DEFINE(MULTIBYTE_CHARS, 1,
274 [Define if you want the C and C++ compilers to support multibyte
275 character sets for source code.])
279 # Pass with no value to take the default
280 # Pass with a value to specify a thread package
281 AC_ARG_ENABLE(threads,
282 [ --enable-threads enable thread usage for target GCC.
283 --enable-threads=LIB use LIB thread package for target GCC.],
284 if test x$enable_threads = xno; then
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)
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 # Determine the host, build, and target systems
328 # Find the native compiler
331 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
332 NO_MINUS_C_MINUS_O=yes
334 AC_SUBST(NO_MINUS_C_MINUS_O)
338 AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
339 ac_cv_prog_cc_no_long_long,
340 [save_CFLAGS="$CFLAGS"
341 CFLAGS="-Wno-long-long"
342 AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
343 ac_cv_prog_cc_no_long_long=no)
344 CFLAGS="$save_CFLAGS"])
346 # If the native compiler is GCC, we can enable warnings even in stage1.
347 # That's useful for people building cross-compilers, or just running a
349 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
350 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
351 if test "x$GCC" = "xyes"; then
352 if test $ac_cv_prog_cc_no_long_long = yes; then
353 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
356 stage1_warn_cflags=""
359 # Stage specific cflags for build.
364 stage1_warn_cflags="$stage1_warn_cflags -Wa,-J"
366 stage1_warn_cflags="$stage1_warn_cflags -J"
371 AC_SUBST(stage1_warn_cflags)
372 AC_SUBST(stage2_warn_cflags)
376 AC_MSG_CHECKING([whether a default assembler was specified])
377 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
378 if test x"$gas_flag" = x"no"; then
379 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
381 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
387 AC_MSG_CHECKING([whether a default linker was specified])
388 if test x"${DEFAULT_LINKER+set}" = x"set"; then
389 if test x"$gnu_ld_flag" = x"no"; then
390 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
392 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
398 # Define _GNU_SOURCE, since this is a GNU program.
399 AC_DEFINE(_GNU_SOURCE, 1, [Always define this])
403 # Find some useful tools
417 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
418 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
419 sys/resource.h sys/param.h sys/times.h sys/stat.h \
420 direct.h malloc.h langinfo.h iconv.h)
422 # Check for thread headers.
423 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
424 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
426 # See if GNAT has been installed
427 AC_CHECK_PROG(gnat, gnatbind, yes, no)
429 # Do we have a single-tree copy of texinfo?
430 if test -f $srcdir/../texinfo/Makefile.in; then
431 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
432 gcc_cv_prog_makeinfo_modern=yes
433 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
435 # See if makeinfo has been installed and is modern enough
436 # that we can use it.
437 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
438 [GNU texinfo.* \([0-9][0-9.]*\)],
439 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
442 if test $gcc_cv_prog_makeinfo_modern = no; then
444 *** Makeinfo is missing or too old.
445 *** Info documentation will not be built or installed.])
449 BUILD_INFO=info AC_SUBST(BUILD_INFO)
450 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
453 # See if the stage1 system preprocessor understands the ANSI C
454 # preprocessor stringification operator.
457 # Use <inttypes.h> only if it exists,
458 # doesn't clash with <sys/types.h>, and declares intmax_t.
459 AC_MSG_CHECKING(for inttypes.h)
460 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
462 [#include <sys/types.h>
463 #include <inttypes.h>],
465 [gcc_cv_header_inttypes_h=yes],
466 gcc_cv_header_inttypes_h=no)])
467 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
468 if test $gcc_cv_header_inttypes_h = yes; then
469 AC_DEFINE(HAVE_INTTYPES_H, 1,
470 [Define if you have a working <inttypes.h> header file.])
474 # Determine if enumerated bitfields are unsigned. ISO C says they can
475 # be either signed or unsigned.
477 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
478 [AC_TRY_RUN(#include <stdlib.h>
479 enum t { BLAH = 128 } ;
480 struct s_t { enum t member : 8; } s ;
484 if (s.member < 0) exit(1);
487 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
488 if test $gcc_cv_enum_bf_unsigned = yes; then
489 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
490 [Define if enumerated bitfields are treated as unsigned values.])
493 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
494 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
495 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
496 fputs_unlocked getrusage valloc iconv nl_langinfo)
498 AC_CHECK_TYPE(ssize_t, int)
500 # Try to determine the array type of the second argument of getgroups
501 # for the target system (int or gid_t).
503 if test "${target}" = "${build}"; then
504 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
507 # This condition may need some tweaking. It should include all
508 # targets where the array type of the second argument of getgroups
509 # is int and the type of gid_t is not equivalent to int.
510 *-*-sunos* | *-*-ultrix*)
511 TARGET_GETGROUPS_T=int
514 TARGET_GETGROUPS_T=gid_t
518 AC_SUBST(TARGET_GETGROUPS_T)
520 gcc_AC_FUNC_VFPRINTF_DOPRNT
521 gcc_AC_FUNC_PRINTF_PTR
525 # Under some versions of uwin, vfork is notoriously buggy and the test
526 # can hang configure; on other versions, vfork exists just as a stub.
527 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
528 ac_cv_func_vfork_works=no
532 AC_FUNC_MMAP_ANYWHERE
535 # We will need to find libiberty.h and ansidecl.h
536 saved_CFLAGS="$CFLAGS"
537 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
538 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
539 index rindex getenv atol sbrk abort atof getcwd getwd \
540 strsignal putc_unlocked fputs_unlocked strstr environ \
541 malloc realloc calloc free basename getopt, , ,[
542 #include "gansidecl.h"
543 #include "system.h"])
545 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
546 #include "gansidecl.h"
548 #ifdef HAVE_SYS_RESOURCE_H
549 #include <sys/resource.h>
553 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
554 CFLAGS="$saved_CFLAGS"
556 # mkdir takes a single argument on some systems.
557 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
567 build_install_headers_dir=install-headers-tar
572 host_truncate_target=
575 # Decode the host machine, then the target machine.
576 # For the host machine, we save the xm_file variable as host_xm_file;
577 # then we decode the target machine and forget everything else
578 # that came from the host machine.
579 for machine in $build $host $target; do
593 # Set this to force installation and use of collect2.
595 # Set this to override the default target model.
597 # Set this to control how the header file directory is installed.
598 install_headers_dir=install-headers-tar
599 # Set this to a non-empty list of args to pass to cpp if the target
600 # wants its .md file passed through cpp.
602 # Set this if directory names should be truncated to 14 characters.
604 # Set this if gdb needs a dir command with `dirname $out_file`
605 gdb_needs_out_file_path=
606 # Set this if the build machine requires executables to have a
609 # Set this to control which thread package will be used.
611 # Reinitialize these from the flag values every loop pass, since some
612 # configure entries modify them.
614 gnu_ld="$gnu_ld_flag"
615 enable_threads=$enable_threads_flag
617 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
618 # updated in each machine entry.
620 cpu_type=`echo $machine | sed 's/-.*$//'`
662 tm_file=${cpu_type}/${cpu_type}.h
663 xm_file=${cpu_type}/xm-${cpu_type}.h
664 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
666 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
668 # On a.out targets, we need to use collect2.
675 # Common parts for linux and openbsd systems
678 xm_defines="HAVE_ATEXIT POSIX BSTRING"
681 tm_file=${cpu_type}/openbsd.h
682 tmake_file="t-libc-ok t-openbsd"
683 # avoid surprises, always provide an xm-openbsd file
684 xm_file=${cpu_type}/xm-openbsd.h
685 # don't depend on processor x-fragments as well
687 if test x$enable_threads = xyes; then
689 tmake_file="${tmake_file} t-openbsd-thread"
695 # Support site-specific machine types.
697 cpu_type=`echo $machine | sed -e 's/-.*//'`
698 rest=`echo $machine | sed -e "s/$cpu_type-//"`
699 xm_file=${cpu_type}/xm-$rest.h
700 tm_file=${cpu_type}/$rest.h
701 if test -f $srcdir/config/${cpu_type}/x-$rest; \
702 then xmake_file=${cpu_type}/x-$rest; \
705 if test -f $srcdir/config/${cpu_type}/t-$rest; \
706 then tmake_file=${cpu_type}/t-$rest; \
712 a29k-*-bsd* | a29k-*-sym1*)
713 tm_file="${tm_file} a29k/unix.h"
715 xmake_file=a29k/x-unix
718 a29k-*-udi | a29k-*-coff)
719 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
720 tmake_file=a29k/t-a29kbare
723 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
724 tmake_file=a29k/t-vx29k
725 extra_parts="crtbegin.o crtend.o"
726 thread_file='vxworks'
728 a29k-*-*) # Default a29k environment.
732 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
734 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
735 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
737 # GAS + IEEE_CONFORMANT
738 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
740 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
741 xmake_file="x-interix alpha/t-pe"
742 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
743 if test x$enable_threads = xyes ; then
746 if test x$stabs = xyes ; then
747 tm_file="${tm_file} dbxcoff.h"
749 #prefix='$$INTERIX_ROOT'/usr/contrib
750 #local_prefix='$$INTERIX_ROOT'/usr/contrib
752 alpha*-*-linux*ecoff*)
753 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
754 target_cpu_default="MASK_GAS"
755 tmake_file="alpha/t-alpha alpha/t-ieee"
760 alpha*-*-linux*libc1*)
761 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
762 target_cpu_default="MASK_GAS"
763 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
764 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
767 if test x$enable_threads = xyes; then
772 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
773 target_cpu_default="MASK_GAS"
774 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
775 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
778 if test x$enable_threads = xyes; then
783 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
784 target_cpu_default="MASK_GAS"
785 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
786 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
792 # default x-alpha is only appropriate for dec-osf.
793 target_cpu_default="MASK_GAS"
794 tmake_file="alpha/t-alpha alpha/t-ieee"
798 if test x$stabs = xyes
800 tm_file="${tm_file} dbx.h"
802 if test x$gas != xyes
804 extra_passes="mips-tfile mips-tdump"
807 tmake_file="alpha/t-alpha alpha/t-ieee"
810 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
815 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
818 tm_file="${tm_file} alpha/osf.h"
819 # Some versions of OSF4 (specifically X4.0-9 296.7) have
820 # a broken tar, so we use cpio instead.
821 install_headers_dir=install-headers-cpio
824 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
829 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
831 target_cpu_default=MASK_SUPPORT_ARCH
836 tm_file="${tm_file} dbx.h alpha/vxworks.h"
837 tmake_file="alpha/t-alpha alpha/t-ieee"
840 extra_passes="mips-tfile mips-tdump"
843 thread_file='vxworks'
846 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
847 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
848 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
849 xmake_file=winnt/x-winnt
850 extra_host_objs=oldnames.o
851 extra_gcc_objs="spawnv.o oldnames.o"
852 if test x$gnu_ld != xyes
854 extra_programs=ld.exe
856 if test x$enable_threads = xyes; then
862 xm_file="${xm_file} alpha/xm-vms.h"
863 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
866 extra_parts="crtinit.o crtfini.o"
868 arm-*-coff* | armel-*-coff*)
870 tmake_file=arm/t-arm-coff
874 tmake_file=arm/t-arm-coff
875 thread_file='vxworks'
878 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
880 tm_file=arm/riscix1-1.h
883 arm-*-riscix*) # Acorn RISC machine
886 tm_file=arm/rix-gas.h
890 xmake_file=arm/x-riscix
891 tmake_file=arm/t-riscix
894 arm-semi-aout | armel-semi-aout)
896 tmake_file=arm/t-semi
898 arm-semi-aof | armel-semi-aof)
899 tm_file=arm/semiaof.h
900 tmake_file=arm/t-semiaof
904 tmake_file="t-netbsd arm/t-netbsd"
907 arm*-*-linux*aout*) # ARM GNU/Linux with a.out
910 tm_file=arm/linux-aout.h
911 tmake_file=arm/t-linux
914 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
915 xm_file=arm/xm-linux.h
917 tm_file="arm/linux-oldld.h arm/linux-elf.h"
920 tm_file="arm/linux-elf26.h $tm_file"
923 tmake_file="t-linux arm/t-linux"
924 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
926 case x${enable_threads} in
927 x | xyes | xpthreads | xposix)
932 arm*-*-linux*) # ARM GNU/Linux with ELF
933 xm_file=arm/xm-linux.h
935 tm_file="arm/linux-elf.h"
938 tm_file="arm/linux-elf26.h $tm_file"
941 tmake_file="t-linux arm/t-linux"
942 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
944 case x${enable_threads} in
945 x | xyes | xpthreads | xposix)
950 arm*-*-uclinux*) # ARM ucLinux
951 tm_file=arm/uclinux-elf.h
952 tmake_file=arm/t-arm-elf
956 tmake_file=arm/t-arm-aout
959 tm_file=arm/ecos-elf.h
960 tmake_file=arm/t-arm-elf
963 tm_file=arm/unknown-elf.h
964 tmake_file=arm/t-arm-elf
967 tm_file=arm/conix-elf.h
968 tmake_file=arm/t-arm-elf
971 tm_file=arm/unknown-elf-oabi.h
972 tmake_file=arm/t-arm-elf
981 c1-convex-*) # Convex C1
985 c2-convex-*) # Convex C2
998 target_cpu_default=16
1003 tmake_file=c4x/t-c4x
1005 clipper-intergraph-clix*)
1006 tm_file="${tm_file} svr3.h clipper/clix.h"
1007 xm_file=clipper/xm-clix.h
1008 xmake_file=clipper/x-clix
1009 extra_headers=va-clipper.h
1010 extra_parts="crtbegin.o crtend.o"
1011 install_headers_dir=install-headers-cpio
1022 tm_file="fr30/fr30.h"
1023 tmake_file=fr30/t-fr30
1024 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1026 # This hasn't been upgraded to GCC 2.
1027 # fx80-alliant-*) # Alliant FX/80
1033 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1034 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1035 tmake_file="t-linux pa/t-linux"
1036 extra_parts="crtbegin.o crtend.o"
1039 if test x$enable_threads = xyes; then
1044 target_cpu_default="MASK_PA_11"
1045 tmake_file=pa/t-openbsd
1048 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1049 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1050 xm_file=pa/xm-papro.h
1054 target_cpu_default="MASK_PA_11"
1055 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1059 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1060 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1061 xm_file=pa/xm-papro.h
1065 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1069 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1070 target_cpu_default="MASK_PA_11"
1074 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1078 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1079 xm_file=pa/xm-pahpux.h
1080 xmake_file=pa/x-pa-hpux
1081 if test x$gas = xyes
1083 tm_file="${tm_file} pa/gas.h"
1085 install_headers_dir=install-headers-cpio
1089 hppa1.0-*-hpux8.0[0-2]*)
1091 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1092 xm_file=pa/xm-pahpux.h
1093 xmake_file=pa/x-pa-hpux
1094 if test x$gas = xyes
1096 tm_file="${tm_file} pa/pa-gas.h"
1098 tm_file="pa/pa-oldas.h ${tm_file}"
1100 install_headers_dir=install-headers-cpio
1104 hppa1.1-*-hpux8.0[0-2]*)
1106 target_cpu_default="MASK_PA_11"
1107 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.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/pa-gas.h"
1114 tm_file="pa/pa-oldas.h ${tm_file}"
1116 install_headers_dir=install-headers-cpio
1120 target_cpu_default="MASK_PA_11"
1121 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1122 xm_file=pa/xm-pahpux.h
1123 xmake_file=pa/x-pa-hpux
1124 if test x$gas = xyes
1126 tm_file="${tm_file} pa/pa-gas.h"
1128 install_headers_dir=install-headers-cpio
1132 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1133 xm_file=pa/xm-pahpux.h
1134 xmake_file=pa/x-pa-hpux
1135 if test x$gas = xyes
1137 tm_file="${tm_file} pa/pa-gas.h"
1139 install_headers_dir=install-headers-cpio
1142 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1143 target_cpu_default="MASK_PA_11"
1144 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1146 xm_file=pa/xm-pahpux.h
1147 xmake_file=pa/x-pa-hpux
1149 if test x$gas = xyes
1151 tm_file="${tm_file} pa/pa-gas.h"
1153 if test x$enable_threads = x; then
1154 enable_threads=$have_pthread_h
1156 case x${enable_threads} in
1158 tmake_file="${tmake_file} pa/t-dce-thr"
1161 install_headers_dir=install-headers-cpio
1165 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1167 xm_file=pa/xm-pahpux.h
1168 xmake_file=pa/x-pa-hpux
1170 if test x$gas = xyes
1172 tm_file="${tm_file} pa/pa-gas.h"
1174 if test x$enable_threads = x; then
1175 enable_threads=$have_pthread_h
1177 case x${enable_threads} in
1179 tmake_file="${tmake_file} pa/t-dce-thr"
1182 install_headers_dir=install-headers-cpio
1186 target_cpu_default="MASK_PA_11"
1187 xm_file=pa/xm-pa64hpux.h
1188 xmake_file=pa/x-pa-hpux
1190 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"
1192 tmake_file=pa/t-pa64
1193 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1195 if [[ x$gas = xyes ]]
1197 tm_file="${tm_file} pa/pa-gas.h"
1199 # if [[ x$enable_threads = x ]]; then
1200 # enable_threads=$have_pthread_h
1202 # if [[ x$enable_threads = xyes ]]; then
1204 # tmake_file="${tmake_file} pa/t-dce-thr"
1206 install_headers_dir=install-headers-cpio
1209 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1210 target_cpu_default="MASK_PA_11"
1211 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1213 xm_file=pa/xm-pahpux.h
1214 xmake_file=pa/x-pa-hpux
1216 if test x$gas = xyes
1218 tm_file="${tm_file} pa/pa-gas.h"
1220 # if test x$enable_threads = x; then
1221 # enable_threads=$have_pthread_h
1223 # if test x$enable_threads = xyes; then
1225 # tmake_file="${tmake_file} pa/t-dce-thr"
1227 install_headers_dir=install-headers-cpio
1231 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1233 xm_file=pa/xm-pahpux.h
1234 xmake_file=pa/x-pa-hpux
1235 if test x$gas = xyes
1237 tm_file="${tm_file} pa/pa-gas.h"
1239 # if test x$enable_threads = x; then
1240 # enable_threads=$have_pthread_h
1242 # if test x$enable_threads = xyes; then
1244 # tmake_file="${tmake_file} pa/t-dce-thr"
1246 install_headers_dir=install-headers-cpio
1249 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1250 target_cpu_default="MASK_PA_11"
1251 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1252 xm_file=pa/xm-pahpux.h
1253 xmake_file=pa/x-pa-hpux
1254 if test x$gas = xyes
1256 tm_file="${tm_file} pa/pa-gas.h"
1258 install_headers_dir=install-headers-cpio
1262 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1263 xm_file=pa/xm-pahpux.h
1264 xmake_file=pa/x-pa-hpux
1265 if test x$gas = xyes
1267 tm_file="${tm_file} pa/pa-gas.h"
1269 install_headers_dir=install-headers-cpio
1272 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1273 target_cpu_default="MASK_PA_11"
1274 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1275 xm_file=pa/xm-pahpux.h
1276 xmake_file=pa/x-pa-hpux
1277 if test x$gas = xyes
1279 tm_file="${tm_file} pa/pa-gas.h"
1281 install_headers_dir=install-headers-cpio
1285 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1286 xm_file=pa/xm-pahpux.h
1287 xmake_file=pa/x-pa-hpux
1288 if test x$gas = xyes
1290 tm_file="${tm_file} pa/pa-gas.h"
1292 install_headers_dir=install-headers-cpio
1296 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1297 target_cpu_default="MASK_PA_11"
1301 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1302 xm_file=pa/xm-pampeix.h
1303 xmake_file=pa/x-pa-mpeix
1304 echo "You must use gas. Assuming it is already installed."
1305 install_headers_dir=install-headers-tar
1308 i370-*-opened*) # IBM 360/370/390 Architecture
1309 xm_file=i370/xm-oe.h
1311 xmake_file=i370/x-oe
1312 tmake_file=i370/t-oe
1315 xm_file=i370/xm-mvs.h
1317 tmake_file=i370/t-mvs
1320 xm_file="xm-linux.h i370/xm-linux.h"
1322 tm_file="i370/linux.h ${tm_file}"
1323 tmake_file="t-linux i370/t-linux"
1324 # broken_install=yes
1325 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1326 # extra_parts="crtbegin.o crtend.o"
1330 if test x$enable_threads = xyes; then
1337 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1338 tm_file=i386/i386elf.h
1339 tmake_file=i386/t-i386elf
1343 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1345 if test x$gas = xyes
1347 tm_file=i386/aix386.h
1348 extra_parts="crtbegin.o crtend.o"
1349 tmake_file=i386/t-crtstuff
1351 tm_file=i386/aix386ng.h
1354 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1356 xmake_file=i386/x-aix
1359 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1361 xm_file="xm-alloca.h ${xm_file}"
1362 xm_defines="USG POSIX SMALL_ARG_MAX"
1363 xmake_file=i386/x-ncr3000
1364 if test x$stabs = xyes -a x$gas = xyes
1366 tm_file=i386/sysv4gdb.h
1368 tm_file=i386/sysv4.h
1370 extra_parts="crtbegin.o crtend.o"
1371 tmake_file=i386/t-crtpic
1377 xm_file=i386/xm-next.h
1378 tmake_file=i386/t-next
1379 xmake_file=i386/x-next
1380 extra_objs=nextstep.o
1381 extra_parts="crtbegin.o crtend.o"
1382 if test x$enable_threads = xyes; then
1387 i[34567]86-sequent-bsd*) # 80386 from Sequent
1390 if test x$gas = xyes
1392 tm_file=i386/seq-gas.h
1394 tm_file=i386/sequent.h
1398 i[34567]86-sequent-ptx1*)
1400 xm_defines="USG SVR3"
1401 xmake_file=i386/x-sysv3
1402 tm_file=i386/seq-sysv3.h
1403 tmake_file=i386/t-crtstuff
1404 extra_parts="crtbegin.o crtend.o"
1405 install_headers_dir=install-headers-cpio
1408 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1410 xm_defines="USG SVR3"
1411 xmake_file=i386/x-sysv3
1412 tm_file=i386/seq2-sysv3.h
1413 tmake_file=i386/t-crtstuff
1414 extra_parts="crtbegin.o crtend.o"
1415 install_headers_dir=install-headers-cpio
1418 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1420 xm_file="xm-alloca.h ${xm_file}"
1421 xm_defines="USG POSIX SMALL_ARG_MAX"
1423 tm_file=i386/ptx4-i.h
1425 extra_parts="crtbegin.o crtend.o"
1426 install_headers_dir=install-headers-cpio
1428 i386-sun-sunos*) # Sun i386 roadrunner
1434 i[34567]86-wrs-vxworks*)
1436 tm_file=i386/vxi386.h
1437 tmake_file=i386/t-i386bare
1438 thread_file='vxworks'
1443 tm_file=i386/i386-aout.h
1444 tmake_file=i386/t-i386bare
1447 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1449 xm_file=i386/xm-beos.h
1450 tmake_file='i386/t-beos i386/t-crtpic'
1451 tm_file=i386/beos-elf.h
1452 xmake_file=i386/x-beos
1453 extra_parts='crtbegin.o crtend.o'
1456 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1458 tm_file=i386/bsd386.h
1459 # tmake_file=t-libc-ok
1464 tm_file=i386/386bsd.h
1465 # tmake_file=t-libc-ok
1466 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1470 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1472 tm_file="i386/freebsd.h i386/perform.h"
1473 tmake_file=t-freebsd
1476 i[34567]86-*-freebsd*)
1478 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1479 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1480 tmake_file=t-freebsd
1484 case x${enable_threads} in
1485 xyes | xpthreads | xposix)
1487 tmake_file="${tmake_file} t-freebsd-thread"
1492 i[34567]86-*-netbsd*)
1494 tm_file=i386/netbsd.h
1499 i[34567]86-*-openbsd*)
1501 # we need collect2 until our bug is fixed...
1507 tm_file=i386/i386-coff.h
1508 tmake_file=i386/t-i386bare
1511 i[34567]86-*-isc*) # 80386 running ISC system
1513 xm_file="${xm_file} i386/xm-isc.h"
1514 xm_defines="USG SVR3"
1517 i[34567]86-*-isc[34]*)
1519 xmake_file=i386/x-isc3
1522 xmake_file=i386/x-isc
1525 if test x$gas = xyes -a x$stabs = xyes
1527 tm_file=i386/iscdbx.h
1528 tmake_file=i386/t-svr3dbx
1529 extra_parts="svr3.ifile svr3z.ifile"
1531 tm_file=i386/isccoff.h
1532 tmake_file=i386/t-crtstuff
1533 extra_parts="crtbegin.o crtend.o"
1535 tmake_file="$tmake_file i386/t-i386bare"
1536 install_headers_dir=install-headers-cpio
1539 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1540 changequote([,])dnl # with a.out format using
1542 xmake_file=x-linux-aout
1543 tmake_file="t-linux-aout i386/t-crtstuff"
1544 tm_file=i386/linux-oldld.h
1549 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1550 changequote([,])dnl # with a.out format
1551 xmake_file=x-linux-aout
1552 tmake_file="t-linux-aout i386/t-crtstuff"
1553 tm_file=i386/linux-aout.h
1558 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1559 changequote([,])dnl # with ELF format using the
1560 # GNU/Linux C library 5
1562 tm_file=i386/linux.h
1563 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1564 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1567 if test x$enable_threads = xyes; then
1568 thread_file='single'
1572 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1573 changequote([,])dnl # with ELF format using glibc 2
1574 # aka GNU/Linux C library 6
1576 tm_file=i386/linux.h
1577 tmake_file="t-linux i386/t-crtstuff"
1578 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1581 if test x$enable_threads = xyes; then
1591 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1593 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1597 i[34567]86-pc-msdosdjgpp*)
1599 xm_file=i386/xm-djgpp.h
1600 tm_file=i386/djgpp.h
1601 tmake_file=i386/t-djgpp
1602 xmake_file=i386/x-djgpp
1607 case $host in *pc-msdosdjgpp*)
1613 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1616 tmake_file=t-libc-ok
1621 i[34567]86-*-lynxos*)
1623 if test x$gas = xyes
1627 tm_file=i386/lynx-ng.h
1629 xm_file=i386/xm-lynx.h
1630 tmake_file=i386/t-i386bare
1637 # tmake_file=t-libc-ok
1641 i[34567]86-*-osfrose*) # 386 using OSF/rose
1643 if test x$elf = xyes
1645 tm_file=i386/osfelf.h
1648 tm_file=i386/osfrose.h
1651 xm_file="i386/xm-osf.h ${xm_file}"
1652 xmake_file=i386/x-osfrose
1653 tmake_file=i386/t-osf
1654 extra_objs=halfpic.o
1657 i[34567]86-go32-rtems*)
1660 xm_file=i386/xm-go32.h
1661 tm_file=i386/go32-rtems.h
1662 tmake_file="i386/t-go32 t-rtems"
1665 i[34567]86-*-rtemscoff*)
1668 tm_file=i386/rtems.h
1669 tmake_file="i386/t-i386bare t-rtems"
1672 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1675 tm_file=i386/rtemself.h
1676 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1677 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1680 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1682 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1683 xm_defines="USG SVR3"
1684 xmake_file=i386/x-sco5
1685 install_headers_dir=install-headers-cpio
1687 if test x$gas = xyes
1689 tm_file="i386/sco5gas.h ${tm_file}"
1690 tmake_file=i386/t-sco5gas
1692 tmake_file=i386/t-sco5
1694 tmake_file="$tmake_file i386/t-i386bare"
1695 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1698 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1700 xm_file="${xm_file} i386/xm-sco.h"
1701 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1702 xmake_file=i386/x-sco4
1703 install_headers_dir=install-headers-cpio
1704 if test x$stabs = xyes
1706 tm_file=i386/sco4dbx.h
1707 tmake_file=i386/t-svr3dbx
1708 extra_parts="svr3.ifile svr3z.rfile"
1711 tmake_file=i386/t-crtstuff
1712 extra_parts="crtbegin.o crtend.o"
1714 tmake_file="$tmake_file i386/t-i386bare"
1715 # The default EAFS filesystem supports long file names.
1716 # Truncating the target makes $host != $target which
1717 # makes gcc think it is doing a cross-compile.
1718 # truncate_target=yes
1721 i[34567]86-*-sco*) # 80386 running SCO system
1723 xm_file=i386/xm-sco.h
1724 xmake_file=i386/x-sco
1725 install_headers_dir=install-headers-cpio
1726 if test x$stabs = xyes
1728 tm_file=i386/scodbx.h
1729 tmake_file=i386/t-svr3dbx
1730 extra_parts="svr3.ifile svr3z.rfile"
1733 extra_parts="crtbegin.o crtend.o"
1734 tmake_file=i386/t-crtstuff
1736 tmake_file="$tmake_file i386/t-i386bare"
1740 i[34567]86-*-solaris2*)
1742 xm_file="xm-alloca.h ${xm_file}"
1743 xm_defines="USG POSIX SMALL_ARG_MAX"
1745 if test x$gas = xyes; then
1746 # Only needed if gas does not support -s
1747 tm_file="i386/sol2gas.h ${tm_file}"
1749 tmake_file="i386/t-i386bare i386/t-sol2"
1750 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1752 if test x${enable_threads} = x; then
1753 enable_threads=$have_pthread_h
1754 if test x${enable_threads} = x; then
1755 enable_threads=$have_thread_h
1758 if test x${enable_threads} = xyes; then
1759 if test x${have_pthread_h} = xyes; then
1762 thread_file='solaris'
1767 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1769 xm_file="xm-alloca.h ${xm_file}"
1770 xm_defines="USG POSIX"
1771 tm_file=i386/sysv5.h
1772 if test x$stabs = xyes
1774 tm_file="${tm_file} dbx.h"
1776 tmake_file="i386/t-i386bare i386/t-crtpic"
1778 extra_parts="crtbegin.o crtend.o"
1779 if test x$enable_threads = xyes; then
1784 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1786 xm_file="xm-alloca.h ${xm_file}"
1787 xm_defines="USG POSIX SMALL_ARG_MAX"
1788 tm_file=i386/sysv4.h
1789 if test x$stabs = xyes
1791 tm_file="${tm_file} dbx.h"
1793 tmake_file="i386/t-i386bare i386/t-crtpic"
1795 extra_parts="crtbegin.o crtend.o"
1798 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1800 xm_file="xm-alloca.h ${xm_file}"
1801 xm_defines="USG POSIX"
1803 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1805 extra_parts="crtbegin.o crtend.o"
1806 install_headers_dir=install-headers-cpio
1809 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1812 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1813 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1814 if test x$stabs = xyes
1816 tm_file=i386/osf1elfgdb.h
1818 tm_file=i386/osf1elf.h
1820 tmake_file=i386/t-osf1elf
1821 xmake_file=i386/x-osf1elf
1822 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1825 i[34567]86-*-sysv*) # Intel 80386's running system V
1827 xm_defines="USG SVR3"
1828 xmake_file=i386/x-sysv3
1829 if test x$gas = xyes
1831 if test x$stabs = xyes
1833 tm_file=i386/svr3dbx.h
1834 tmake_file=i386/t-svr3dbx
1835 extra_parts="svr3.ifile svr3z.rfile"
1837 tm_file=i386/svr3gas.h
1838 extra_parts="crtbegin.o crtend.o"
1839 tmake_file=i386/t-crtstuff
1842 tm_file=i386/sysv3.h
1843 extra_parts="crtbegin.o crtend.o"
1844 tmake_file=i386/t-crtstuff
1846 tmake_file="$tmake_file i386/t-crtpic"
1848 i386-*-vsta) # Intel 80386's running VSTa kernel
1849 xm_file="${xm_file} i386/xm-vsta.h"
1851 tmake_file=i386/t-vsta
1852 xmake_file=i386/x-vsta
1857 xm_file="${xm_file} i386/xm-cygwin.h"
1858 tmake_file=i386/t-cygwin
1859 tm_file=i386/win32.h
1860 xmake_file=i386/x-cygwin
1862 if test x$enable_threads = xyes; then
1868 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1870 xm_file="${xm_file} i386/xm-cygwin.h"
1871 tmake_file=i386/t-cygwin
1872 tm_file=i386/cygwin.h
1873 xmake_file=i386/x-cygwin
1875 if test x$enable_threads = xyes; then
1881 i[34567]86-*-mingw32*)
1883 tm_file=i386/mingw32.h
1884 xm_file="${xm_file} i386/xm-mingw32.h"
1885 tmake_file="i386/t-cygwin i386/t-mingw32"
1887 xmake_file=i386/x-cygwin
1888 if test x$enable_threads = xyes; then
1895 *minwg32crt* | *mingw32*)
1896 tm_file="${tm_file} i386/crtdll.h"
1904 xm_file="${xm_file} i386/xm-uwin.h"
1905 xm_defines="USG NO_STAB_H"
1906 tmake_file="i386/t-cygwin i386/t-uwin"
1908 xmake_file=i386/x-cygwin
1909 if test x$enable_threads = xyes; then
1915 i[34567]86-*-interix*)
1917 tm_file="i386/i386-interix.h interix.h"
1918 xm_file="i386/xm-i386-interix.h xm-interix.h"
1920 tmake_file="i386/t-interix"
1921 extra_objs=interix.o
1922 xmake_file=x-interix
1923 if test x$enable_threads = xyes ; then
1926 if test x$stabs = xyes ; then
1927 tm_file="${tm_file} dbxcoff.h"
1931 i[34567]86-*-winnt3*)
1933 tm_file=i386/win-nt.h
1934 out_file=i386/i386.c
1935 xm_file="xm-winnt.h ${xm_file}"
1936 xmake_file=winnt/x-winnt
1937 tmake_file=i386/t-winnt
1938 extra_host_objs="winnt.o oldnames.o"
1939 extra_gcc_objs="spawnv.o oldnames.o"
1940 if test x$gnu_ld != xyes
1942 extra_programs=ld.exe
1944 if test x$enable_threads = xyes; then
1949 i[34567]86-dg-dgux*)
1951 xm_file="xm-alloca.h ${xm_file}"
1952 xm_defines="USG POSIX"
1953 out_file=i386/dgux.c
1955 tmake_file=i386/t-dgux
1956 xmake_file=i386/x-dgux
1957 install_headers_dir=install-headers-cpio
1959 i860-alliant-*) # Alliant FX/2800
1960 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1961 xm_file="${xm_file}"
1962 xmake_file=i860/x-fx2800
1963 tmake_file=i860/t-fx2800
1964 extra_parts="crtbegin.o crtend.o"
1967 tm_file="${tm_file} i860/bsd.h"
1968 if test x$gas = xyes
1970 tm_file="${tm_file} i860/bsd-gas.h"
1975 tm_file="${tm_file} i860/mach.h"
1976 tmake_file=t-libc-ok
1978 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1979 tm_file="${tm_file} svr3.h i860/paragon.h"
1980 xm_defines="USG SVR3"
1984 tm_file="${tm_file} svr3.h i860/sysv3.h"
1985 xm_defines="USG SVR3"
1986 xmake_file=i860/x-sysv3
1987 extra_parts="crtbegin.o crtend.o"
1990 tm_file="${tm_file} svr4.h i860/sysv4.h"
1991 xm_defines="USG SVR3"
1992 xmake_file=i860/x-sysv4
1994 extra_parts="crtbegin.o crtend.o"
1996 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1997 tm_file="${tm_file} i960/vx960.h"
1998 tmake_file=i960/t-vxworks960
2000 thread_file='vxworks'
2002 i960-wrs-vxworks5* | i960-wrs-vxworks)
2003 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2004 tmake_file=i960/t-vxworks960
2006 thread_file='vxworks'
2009 tm_file="${tm_file} i960/vx960.h"
2010 tmake_file=i960/t-vxworks960
2012 thread_file='vxworks'
2015 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2016 tmake_file=i960/t-960bare
2020 tmake_file="i960/t-960bare t-rtems"
2021 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2024 i960-*-*) # Default i960 environment.
2029 tmake_file="ia64/t-ia64"
2030 target_cpu_default="0"
2031 if test x$gas = xyes
2033 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2035 if test x$gnu_ld = xyes
2037 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2042 tm_file=ia64/linux.h
2043 tmake_file="t-linux ia64/t-ia64"
2044 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2045 if test x$enable_threads = xyes; then
2051 extra_parts="crtinit.o crtfini.o"
2053 # m68hc11 and m68hc12 share the same machine description.
2054 m68hc11-*-*|m6811-*-*)
2055 tm_file="m68hc11/m68hc11.h"
2056 xm_file="m68hc11/xm-m68hc11.h"
2057 tm_p_file="m68hc11/m68hc11-protos.h"
2058 md_file="m68hc11/m68hc11.md"
2059 out_file="m68hc11/m68hc11.c"
2060 tmake_file="m68hc11/t-m68hc11-gas"
2062 m68hc12-*-*|m6812-*-*)
2063 tm_file="m68hc11/m68hc12.h"
2064 tm_p_file="m68hc11/m68hc11-protos.h"
2065 xm_file="m68hc11/xm-m68hc11.h"
2066 md_file="m68hc11/m68hc11.md"
2067 out_file="m68hc11/m68hc11.c"
2068 tmake_file="m68hc11/t-m68hc11-gas"
2070 m68000-convergent-sysv*)
2072 xm_file="m68k/xm-3b1.h ${xm_file}"
2075 extra_headers=math-68881.h
2077 m68000-hp-bsd*) # HP 9000/200 running BSD
2078 tm_file=m68k/hp2bsd.h
2079 xmake_file=m68k/x-hp2bsd
2081 extra_headers=math-68881.h
2083 m68000-hp-hpux*) # HP 9000 series 300
2084 xm_file="xm-alloca.h ${xm_file}"
2086 if test x$gas = xyes
2088 xmake_file=m68k/x-hp320g
2089 tm_file=m68k/hp310g.h
2091 xmake_file=m68k/x-hp320
2092 tm_file=m68k/hp310.h
2094 install_headers_dir=install-headers-cpio
2096 extra_headers=math-68881.h
2101 extra_headers=math-68881.h
2104 tm_file=m68k/sun2o4.h
2106 extra_headers=math-68881.h
2109 xm_file="m68k/xm-3b1.h ${xm_file}"
2111 if test x$gas = xyes
2118 extra_headers=math-68881.h
2120 m68k-apple-aux*) # Apple Macintosh running A/UX
2121 xm_defines="USG AUX"
2122 tmake_file=m68k/t-aux
2123 install_headers_dir=install-headers-cpio
2124 extra_headers=math-68881.h
2125 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2127 if test "$gnu_ld" = yes
2129 tm_file="${tm_file} m68k/auxgld.h"
2131 tm_file="${tm_file} m68k/auxld.h"
2133 if test "$gas" = yes
2135 tm_file="${tm_file} m68k/auxgas.h"
2137 tm_file="${tm_file} m68k/auxas.h"
2139 tm_file="${tm_file} m68k/a-ux.h"
2143 tm_file=m68k/apollo68.h
2144 xmake_file=m68k/x-apollo68
2146 extra_headers=math-68881.h
2149 m68k-altos-sysv*) # Altos 3068
2150 if test x$gas = xyes
2152 tm_file=m68k/altos3068.h
2155 echo "The Altos is supported only with the GNU assembler" 1>&2
2158 extra_headers=math-68881.h
2160 m68k-bull-sysv*) # Bull DPX/2
2161 if test x$gas = xyes
2163 if test x$stabs = xyes
2165 tm_file=m68k/dpx2cdbx.h
2167 tm_file=m68k/dpx2g.h
2172 xm_file="xm-alloca.h ${xm_file}"
2174 xmake_file=m68k/x-dpx2
2176 extra_headers=math-68881.h
2178 m68k-atari-sysv4*) # Atari variant of V.4.
2179 tm_file=m68k/atari.h
2180 xm_file="xm-alloca.h ${xm_file}"
2181 xm_defines="USG FULL_PROTOTYPES"
2183 extra_parts="crtbegin.o crtend.o"
2184 extra_headers=math-68881.h
2187 m68k-motorola-sysv*)
2188 tm_file=m68k/mot3300.h
2189 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2190 if test x$gas = xyes
2192 xmake_file=m68k/x-mot3300-gas
2193 if test x$gnu_ld = xyes
2195 tmake_file=m68k/t-mot3300-gald
2197 tmake_file=m68k/t-mot3300-gas
2201 xmake_file=m68k/x-mot3300
2202 if test x$gnu_ld = xyes
2204 tmake_file=m68k/t-mot3300-gld
2206 tmake_file=m68k/t-mot3300
2210 gdb_needs_out_file_path=yes
2211 extra_parts="crt0.o mcrt0.o"
2212 extra_headers=math-68881.h
2215 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2216 tm_file=m68k/tower-as.h
2217 xm_defines="USG SVR3"
2218 xmake_file=m68k/x-tower
2219 extra_parts="crtbegin.o crtend.o"
2220 extra_headers=math-68881.h
2223 tm_file=m68k/plexus.h
2224 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2227 extra_headers=math-68881.h
2231 xm_file="xm-alloca.h ${xm_file}"
2233 extra_headers=math-68881.h
2236 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2237 xm_defines="USG unos"
2238 xmake_file=m68k/x-crds
2241 extra_headers=math-68881.h
2243 m68k-cbm-sysv4*) # Commodore variant of V.4.
2245 xm_file="xm-alloca.h ${xm_file}"
2246 xm_defines="USG FULL_PROTOTYPES"
2247 xmake_file=m68k/x-amix
2249 extra_parts="crtbegin.o crtend.o"
2250 extra_headers=math-68881.h
2254 tm_file=m68k/ccur-GAS.h
2255 xmake_file=m68k/x-ccur
2256 extra_headers=math-68881.h
2260 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2261 tm_file=m68k/hp3bsd44.h
2262 xmake_file=m68k/x-hp3bsd44
2264 extra_headers=math-68881.h
2267 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2268 tm_file=m68k/hp3bsd.h
2270 extra_headers=math-68881.h
2274 if test x$with_fp = xno
2276 tm_file=m68k/isi-nfp.h
2282 extra_headers=math-68881.h
2284 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2285 xm_file="xm-alloca.h ${xm_file}"
2287 if test x$gas = xyes
2289 xmake_file=m68k/x-hp320g
2290 tm_file=m68k/hp320g.h
2292 xmake_file=m68k/x-hp320
2293 tm_file=m68k/hpux7.h
2295 install_headers_dir=install-headers-cpio
2297 extra_headers=math-68881.h
2300 m68k-hp-hpux*) # HP 9000 series 300
2301 xm_file="xm-alloca.h ${xm_file}"
2303 if test x$gas = xyes
2305 xmake_file=m68k/x-hp320g
2306 tm_file=m68k/hp320g.h
2308 xmake_file=m68k/x-hp320
2309 tm_file=m68k/hp320.h
2311 install_headers_dir=install-headers-cpio
2313 extra_headers=math-68881.h
2317 tm_file=m68k/sun3mach.h
2319 extra_headers=math-68881.h
2323 if test x$gas = xyes
2325 tm_file=m68k/news3gas.h
2327 tm_file=m68k/news3.h
2330 extra_headers=math-68881.h
2333 m68k-sony-bsd* | m68k-sony-newsos*)
2334 if test x$gas = xyes
2336 tm_file=m68k/newsgas.h
2341 extra_headers=math-68881.h
2344 m68k-next-nextstep2*)
2345 tm_file=m68k/next21.h
2346 xm_file="m68k/xm-next.h ${xm_file}"
2347 tmake_file=m68k/t-next
2348 xmake_file=m68k/x-next
2349 extra_objs=nextstep.o
2350 extra_headers=math-68881.h
2355 m68k-next-nextstep[34]*)
2358 xm_file="m68k/xm-next.h ${xm_file}"
2359 tmake_file=m68k/t-next
2360 xmake_file=m68k/x-next
2361 extra_objs=nextstep.o
2362 extra_parts="crtbegin.o crtend.o"
2363 extra_headers=math-68881.h
2365 if test x$enable_threads = xyes; then
2370 if test x$with_fp = xno
2372 tm_file=m68k/sun3n3.h
2374 tm_file=m68k/sun3o3.h
2378 extra_headers=math-68881.h
2380 m68k-sun-sunos*) # For SunOS 4 (the default).
2381 if test x$with_fp = xno
2383 tm_file=m68k/sun3n.h
2389 extra_headers=math-68881.h
2392 tm_file=m68k/vxm68k.h
2393 tmake_file=m68k/t-vxworks68
2394 extra_headers=math-68881.h
2395 thread_file='vxworks'
2399 tmake_file=m68k/t-m68kbare
2400 tm_file="m68k/m68k-aout.h libgloss.h"
2401 extra_headers=math-68881.h
2405 tmake_file=m68k/t-m68kbare
2406 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2407 extra_headers=math-68881.h
2410 m68020-*-elf* | m68k-*-elf*)
2411 tm_file="m68k/m68020-elf.h"
2412 xm_file=m68k/xm-m68kv.h
2413 tmake_file=m68k/t-m68kelf
2414 header_files=math-68881.h
2417 if test x$gas = xyes
2421 tm_file=m68k/lynx-ng.h
2423 xm_file=m68k/xm-lynx.h
2425 tmake_file=m68k/t-lynx
2426 extra_headers=math-68881.h
2430 tm_file=m68k/netbsd.h
2437 # we need collect2 until our bug is fixed...
2440 m68k-*-sysv3*) # Motorola m68k's running system V.3
2441 xm_file="xm-alloca.h ${xm_file}"
2443 xmake_file=m68k/x-m68kv
2444 extra_parts="crtbegin.o crtend.o"
2445 extra_headers=math-68881.h
2448 m68k-*-sysv4*) # Motorola m68k's running system V.4
2449 tm_file=m68k/m68kv4.h
2450 xm_file="xm-alloca.h ${xm_file}"
2453 extra_parts="crtbegin.o crtend.o"
2454 extra_headers=math-68881.h
2457 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2460 tm_file=m68k/linux-aout.h
2461 tmake_file="t-linux-aout m68k/t-linux-aout"
2462 extra_headers=math-68881.h
2466 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2467 # with ELF format using the
2468 # GNU/Linux C library 5
2470 tm_file=m68k/linux.h
2471 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2472 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2473 extra_headers=math-68881.h
2477 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2478 # with ELF format using glibc 2
2479 # aka the GNU/Linux C library 6.
2481 tm_file=m68k/linux.h
2482 tmake_file="t-linux m68k/t-linux"
2483 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2484 extra_headers=math-68881.h
2487 if test x$enable_threads = xyes; then
2492 tmake_file=m68k/t-m68kbare
2493 tm_file=m68k/m68k-psos.h
2494 extra_headers=math-68881.h
2498 tmake_file="m68k/t-m68kbare t-rtems"
2499 tm_file=m68k/rtems.h
2500 extra_headers=math-68881.h
2503 m68k-*-rtemself*|m68k-*-rtems*)
2504 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2505 tm_file=m68k/rtemself.h
2506 extra_headers=math-68881.h
2512 tm_file=m88k/dguxbcs.h
2513 tmake_file=m88k/t-dguxbcs
2517 tmake_file=m88k/t-dgux
2520 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2521 xmake_file=m88k/x-dgux
2522 if test x$gas = xyes
2524 tmake_file=m88k/t-dgux-gas
2527 m88k-dolphin-sysv3*)
2528 tm_file=m88k/dolph.h
2529 extra_parts="crtbegin.o crtend.o"
2530 xm_file="m88k/xm-sysv3.h ${xm_file}"
2531 xmake_file=m88k/x-dolph
2532 if test x$gas = xyes
2534 tmake_file=m88k/t-m88k-gas
2537 m88k-tektronix-sysv3)
2538 tm_file=m88k/tekXD88.h
2539 extra_parts="crtbegin.o crtend.o"
2540 xm_file="m88k/xm-sysv3.h ${xm_file}"
2541 xmake_file=m88k/x-tekXD88
2542 if test x$gas = xyes
2544 tmake_file=m88k/t-m88k-gas
2548 tm_file=m88k/m88k-aout.h
2551 tm_file=m88k/m88k-coff.h
2552 tmake_file=m88k/t-bug
2556 extra_parts="crtbegin.o crtend.o"
2557 if test x$gas = xyes
2559 tmake_file=m88k/t-luna-gas
2561 tmake_file=m88k/t-luna
2565 tmake_file="${tmake_file} m88k/t-luna-gas"
2566 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2567 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2570 tm_file=m88k/sysv3.h
2571 extra_parts="crtbegin.o crtend.o"
2572 xm_file="m88k/xm-sysv3.h ${xm_file}"
2573 xmake_file=m88k/x-sysv3
2574 if test x$gas = xyes
2576 tmake_file=m88k/t-m88k-gas
2580 tm_file=m88k/sysv4.h
2581 extra_parts="crtbegin.o crtend.o"
2582 xmake_file=m88k/x-sysv4
2583 tmake_file=m88k/t-sysv4
2586 tm_file=mcore/mcore-elf.h
2587 tmake_file=mcore/t-mcore
2590 tm_file=mcore/mcore-pe.h
2591 tmake_file=mcore/t-mcore-pe
2593 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2594 if test "x$gnu_ld" = xyes
2596 tm_file="mips/iris6.h mips/iris6gld.h"
2598 tm_file=mips/iris6.h
2600 tmake_file=mips/t-iris6
2601 xm_file=mips/xm-iris6.h
2602 xmake_file=mips/x-iris6
2603 # if test x$enable_threads = xyes; then
2604 # thread_file='irix'
2608 tm_file="mips/elf.h mips/vxworks.h"
2609 tmake_file=mips/t-ecoff
2612 extra_parts="crtbegin.o crtend.o"
2613 thread_file='vxworks'
2615 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2616 tm_file="mips/iris6.h mips/cross64.h"
2618 xm_file="mips/xm-iris5.h"
2619 xmake_file=mips/x-iris
2620 tmake_file=mips/t-cross64
2621 # See comment in mips/iris[56].h files.
2623 # if test x$enable_threads = xyes; then
2624 # thread_file='irix'
2628 if test x$gas = xyes
2630 if test x$stabs = xyes
2632 tm_file=mips/iris5gdb.h
2634 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2637 tm_file=mips/sni-svr4.h
2640 xmake_file=mips/x-sni-svr4
2641 tmake_file=mips/t-mips-gas
2642 if test x$gnu_ld != xyes
2647 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2648 if test x$gas = xyes
2650 tm_file="mips/iris5.h mips/iris5gas.h"
2651 if test x$stabs = xyes
2653 tm_file="${tm_file} dbx.h"
2656 tm_file=mips/iris5.h
2659 xm_file="mips/xm-iris5.h"
2660 xmake_file=mips/x-iris
2661 # mips-tfile doesn't work yet
2662 tmake_file=mips/t-mips-gas
2663 # See comment in mips/iris5.h file.
2665 # if test x$enable_threads = xyes; then
2666 # thread_file='irix'
2669 mips-sgi-irix4loser*) # Mostly like a MIPS.
2670 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2671 if test x$stabs = xyes; then
2672 tm_file="${tm_file} dbx.h"
2675 xmake_file=mips/x-iris
2676 if test x$gas = xyes
2678 tmake_file=mips/t-mips-gas
2680 extra_passes="mips-tfile mips-tdump"
2682 if test x$gnu_ld != xyes
2686 # if test x$enable_threads = xyes; then
2687 # thread_file='irix'
2690 mips-sgi-irix4*) # Mostly like a MIPS.
2691 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2692 if test x$stabs = xyes; then
2693 tm_file="${tm_file} dbx.h"
2696 xmake_file=mips/x-iris
2697 if test x$gas = xyes
2699 tmake_file=mips/t-mips-gas
2701 extra_passes="mips-tfile mips-tdump"
2703 if test x$gnu_ld != xyes
2707 # if test x$enable_threads = xyes; then
2708 # thread_file='irix'
2711 mips-sgi-*) # Mostly like a MIPS.
2712 tm_file="mips/iris3.h ${tm_file}"
2713 if test x$stabs = xyes; then
2714 tm_file="${tm_file} dbx.h"
2717 xmake_file=mips/x-iris3
2718 if test x$gas = xyes
2720 tmake_file=mips/t-mips-gas
2722 extra_passes="mips-tfile mips-tdump"
2724 if test x$gnu_ld != xyes
2729 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2730 tm_file="mips/osfrose.h ${tm_file}"
2731 xmake_file=mips/x-osfrose
2732 tmake_file=mips/t-osfrose
2733 extra_objs=halfpic.o
2736 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2737 tm_file=mips/dec-osf1.h
2738 if test x$stabs = xyes; then
2739 tm_file="${tm_file} dbx.h"
2741 xmake_file=mips/x-dec-osf1
2742 if test x$gas = xyes
2744 tmake_file=mips/t-mips-gas
2746 tmake_file=mips/t-ultrix
2747 extra_passes="mips-tfile mips-tdump"
2749 if test x$gnu_ld != xyes
2754 mips-dec-bsd*) # Decstation running 4.4 BSD
2755 tm_file=mips/dec-bsd.h
2756 if test x$gas = xyes
2758 tmake_file=mips/t-mips-gas
2760 tmake_file=mips/t-ultrix
2761 extra_passes="mips-tfile mips-tdump"
2763 if test x$gnu_ld != xyes
2768 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2769 tm_file=mips/netbsd.h
2770 # On NetBSD, the headers are already okay, except for math.h.
2773 mips*-*-linux*) # Linux MIPS, either endian.
2776 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2777 *) tm_file="mips/elf.h mips/linux.h" ;;
2780 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2783 if test x$enable_threads = xyes; then
2787 mips*el-*-openbsd*) # mips little endian
2788 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2790 mips*-*-openbsd*) # mips big endian
2791 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2792 tm_file="mips/openbsd-be.h ${tm_file}"
2794 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2795 tm_file="mips/news4.h ${tm_file}"
2796 if test x$stabs = xyes; then
2797 tm_file="${tm_file} dbx.h"
2799 if test x$gas = xyes
2801 tmake_file=mips/t-mips-gas
2803 extra_passes="mips-tfile mips-tdump"
2805 if test x$gnu_ld != xyes
2809 xmake_file=mips/x-sony
2811 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2812 # That is based on svr4.
2813 # t-svr4 is not right because this system doesn't use ELF.
2814 tm_file="mips/news5.h ${tm_file}"
2815 if test x$stabs = xyes; then
2816 tm_file="${tm_file} dbx.h"
2819 if test x$gas = xyes
2821 tmake_file=mips/t-mips-gas
2823 extra_passes="mips-tfile mips-tdump"
2825 if test x$gnu_ld != xyes
2830 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2831 tm_file="mips/svr4-5.h mips/svr4-t.h"
2832 if test x$stabs = xyes; then
2833 tm_file="${tm_file} dbx.h"
2836 xmake_file=mips/x-sysv
2837 if test x$gas = xyes
2839 tmake_file=mips/t-mips-gas
2840 extra_parts="crtbegin.o crtend.o"
2842 tmake_file=mips/t-mips
2843 extra_passes="mips-tfile mips-tdump"
2845 if test x$gnu_ld != xyes
2850 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2851 tm_file="mips/ultrix.h ${tm_file}"
2852 if test x$stabs = xyes; then
2853 tm_file="${tm_file} dbx.h"
2855 xmake_file=mips/x-ultrix
2856 if test x$gas = xyes
2858 tmake_file=mips/t-mips-gas
2860 tmake_file=mips/t-ultrix
2861 extra_passes="mips-tfile mips-tdump"
2863 if test x$gnu_ld != xyes
2869 mips-*-riscos[56789]bsd*)
2871 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2872 if test x$stabs = xyes; then
2873 tm_file="${tm_file} dbx.h"
2875 if test x$gas = xyes
2877 tmake_file=mips/t-bsd-gas
2879 tmake_file=mips/t-bsd
2880 extra_passes="mips-tfile mips-tdump"
2882 if test x$gnu_ld != xyes
2888 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2890 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2891 if test x$stabs = xyes; then
2892 tm_file="${tm_file} dbx.h"
2894 if test x$gas = xyes
2896 tmake_file=mips/t-bsd-gas
2898 tmake_file=mips/t-bsd
2899 extra_passes="mips-tfile mips-tdump"
2901 if test x$gnu_ld != xyes
2907 mips-*-riscos[56789]sysv4*)
2909 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2910 if test x$stabs = xyes; then
2911 tm_file="${tm_file} dbx.h"
2913 xmake_file=mips/x-sysv
2914 if test x$gas = xyes
2916 tmake_file=mips/t-svr4-gas
2918 tmake_file=mips/t-svr4
2919 extra_passes="mips-tfile mips-tdump"
2921 if test x$gnu_ld != xyes
2927 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2929 tm_file="mips/svr4-4.h ${tm_file}"
2930 if test x$stabs = xyes; then
2931 tm_file="${tm_file} dbx.h"
2934 xmake_file=mips/x-sysv
2935 if test x$gas = xyes
2937 tmake_file=mips/t-svr4-gas
2939 tmake_file=mips/t-svr4
2940 extra_passes="mips-tfile mips-tdump"
2942 if test x$gnu_ld != xyes
2948 mips-*-riscos[56789]sysv*)
2950 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2951 if test x$stabs = xyes; then
2952 tm_file="${tm_file} dbx.h"
2955 xmake_file=mips/x-sysv
2956 if test x$gas = xyes
2958 tmake_file=mips/t-svr3-gas
2960 tmake_file=mips/t-svr3
2961 extra_passes="mips-tfile mips-tdump"
2963 if test x$gnu_ld != xyes
2968 mips-*-sysv* | mips-*-riscos*sysv*)
2969 tm_file="mips/svr3-4.h ${tm_file}"
2970 if test x$stabs = xyes; then
2971 tm_file="${tm_file} dbx.h"
2974 xmake_file=mips/x-sysv
2975 if test x$gas = xyes
2977 tmake_file=mips/t-svr3-gas
2979 tmake_file=mips/t-svr3
2980 extra_passes="mips-tfile mips-tdump"
2982 if test x$gnu_ld != xyes
2988 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2990 tm_file=mips/mips-5.h
2991 if test x$stabs = xyes; then
2992 tm_file="${tm_file} dbx.h"
2994 if test x$gas = xyes
2996 tmake_file=mips/t-mips-gas
2998 extra_passes="mips-tfile mips-tdump"
3000 if test x$gnu_ld != xyes
3008 tm_file=mips/ecoffl.h
3009 if test x$stabs = xyes; then
3010 tm_file="${tm_file} dbx.h"
3012 tmake_file=mips/t-ecoff
3015 tm_file="gofast.h mips/ecoff.h"
3016 if test x$stabs = xyes; then
3017 tm_file="${tm_file} dbx.h"
3019 tmake_file=mips/t-ecoff
3022 tm_file="mips/elfl.h"
3023 tmake_file=mips/t-elf
3026 tm_file="mips/elf.h"
3027 tmake_file=mips/t-elf
3030 tm_file="mips/elfl64.h"
3031 tmake_file=mips/t-elf
3033 mips64orionel-*-elf*)
3034 tm_file="mips/elforion.h mips/elfl64.h"
3035 tmake_file=mips/t-elf
3038 tm_file="mips/elf64.h"
3039 tmake_file=mips/t-elf
3042 tm_file="mips/elforion.h mips/elf64.h"
3043 tmake_file=mips/t-elf
3045 mips64orion-*-rtems*)
3046 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3047 tmake_file="mips/t-elf t-rtems"
3050 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3051 tmake_file=mips/t-r3900
3054 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3055 tmake_file=mips/t-r3900
3057 mips-*-*) # Default MIPS RISC-OS 4.0.
3058 if test x$stabs = xyes; then
3059 tm_file="${tm_file} dbx.h"
3061 if test x$gas = xyes
3063 tmake_file=mips/t-mips-gas
3065 extra_passes="mips-tfile mips-tdump"
3067 if test x$gnu_ld != xyes
3075 tm_file="mn10200/mn10200.h"
3076 if test x$stabs = xyes
3078 tm_file="${tm_file} dbx.h"
3084 tm_file="mn10300/mn10300.h"
3085 if test x$stabs = xyes
3087 tm_file="${tm_file} dbx.h"
3092 tm_file=ns32k/encore.h
3096 tm_file=ns32k/sequent.h
3100 tm_file=ns32k/tek6100.h
3104 tm_file=ns32k/tek6200.h
3107 # This has not been updated to GCC 2.
3110 # xmake_file=ns32k/x-genix
3111 # tm_file=ns32k/genix.h
3115 tm_file=ns32k/merlin.h
3119 tm_file=ns32k/pc532-mach.h
3123 tm_file=ns32k/pc532-min.h
3124 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3129 tm_file=ns32k/netbsd.h
3130 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3131 # On NetBSD, the headers are already okay, except for math.h.
3136 tm_file="${tm_file} pdp11/2bsd.h"
3145 # This has not been updated to GCC 2.
3148 # xmake_file=pyr/x-pyr
3153 tm_file="svr4.h pj/linux.h ${tm_file}"
3158 tm_file="svr4.h pj/pjl.h ${tm_file}"
3165 xmake_file=romp/x-mach
3172 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3176 tm_file=rs6000/beos.h
3177 xm_file=rs6000/xm-beos.h
3178 tmake_file=rs6000/t-beos
3179 xmake_file=rs6000/x-beos
3182 tm_file=rs6000/sysv4.h
3183 xm_file="rs6000/xm-sysv4.h"
3184 xm_defines="USG POSIX"
3185 extra_headers=ppc-asm.h
3186 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3187 xmake_file=rs6000/x-sysv4
3190 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3191 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3192 extra_headers=ppc-asm.h
3195 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3196 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3197 extra_headers=ppc-asm.h
3200 tm_file="rs6000/sysv4.h"
3201 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3202 extra_headers=ppc-asm.h
3205 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3206 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3207 extra_headers=ppc-asm.h
3210 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3211 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3212 extra_headers=ppc-asm.h
3214 powerpc-*-linux*libc1)
3215 tm_file="rs6000/sysv4.h rs6000/linux.h"
3216 xm_file=rs6000/xm-sysv4.h
3217 out_file=rs6000/rs6000.c
3218 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3220 extra_headers=ppc-asm.h
3221 if test x$enable_threads = xyes; then
3226 tm_file="rs6000/sysv4.h rs6000/linux.h"
3227 xm_file="rs6000/xm-sysv4.h"
3228 xm_defines="USG ${xm_defines}"
3229 out_file=rs6000/rs6000.c
3230 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3232 extra_headers=ppc-asm.h
3233 if test x$enable_threads = xyes; then
3237 powerpc-wrs-vxworks*)
3239 xm_file="rs6000/xm-sysv4.h"
3240 xm_defines="USG POSIX"
3241 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3242 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3243 extra_headers=ppc-asm.h
3244 thread_file='vxworks'
3246 powerpcle-wrs-vxworks*)
3248 xm_file="rs6000/xm-sysv4.h"
3249 xm_defines="USG POSIX"
3250 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3251 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3252 extra_headers=ppc-asm.h
3253 thread_file='vxworks'
3256 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3257 xm_file="rs6000/xm-sysv4.h"
3258 xm_defines="USG POSIX"
3259 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3260 xmake_file=rs6000/x-sysv4
3261 extra_headers=ppc-asm.h
3264 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3265 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3266 extra_headers=ppc-asm.h
3268 powerpcle-*-eabisim*)
3269 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3270 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3271 extra_headers=ppc-asm.h
3274 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3275 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3276 extra_headers=ppc-asm.h
3278 powerpcle-*-solaris2*)
3279 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3280 xm_file="rs6000/xm-sysv4.h"
3281 xm_defines="USG POSIX"
3282 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3283 xmake_file=rs6000/x-sysv4
3284 extra_headers=ppc-asm.h
3287 rs6000-ibm-aix3.[01]*)
3289 tm_file=rs6000/aix31.h
3290 xmake_file=rs6000/x-aix31
3295 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3297 tm_file=rs6000/aix3newas.h
3298 if test x$host != x$target
3300 tmake_file=rs6000/t-xnewas
3302 tmake_file=rs6000/t-newas
3308 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3310 tm_file=rs6000/aix41.h
3311 if test x$host != x$target
3313 tmake_file=rs6000/t-xnewas
3315 tmake_file=rs6000/t-newas
3317 if test "$gnu_ld" = yes
3319 xmake_file=rs6000/x-aix41-gld
3321 tmake_file='rs6000/t-newas rs6000/t-aix41'
3323 xmake_file=rs6000/x-aix41
3328 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3330 tm_file=rs6000/aix43.h
3331 tmake_file=rs6000/t-aix43
3332 xmake_file=rs6000/x-aix41
3337 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3339 tm_file=rs6000/aix43.h
3340 tmake_file=rs6000/t-aix43
3341 xmake_file=rs6000/x-aix41
3354 tm_file=rs6000/mach.h
3355 xm_file="${xm_file} rs6000/xm-mach.h"
3356 xmake_file=rs6000/x-mach
3360 tm_file=rs6000/lynx.h
3361 xm_file=rs6000/xm-lynx.h
3362 tmake_file=rs6000/t-rs6000
3363 xmake_file=rs6000/x-lynx
3367 tmake_file="sh/t-sh sh/t-elf"
3368 tm_file="sh/sh.h sh/elf.h"
3372 tmake_file="sh/t-sh sh/t-elf t-rtems"
3373 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
3377 tmake_file="sh/t-sh t-rtems"
3378 tm_file="sh/sh.h sh/rtems.h"
3382 tm_file="sh/sh.h sh/elf.h sh/linux.h"
3383 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3386 if test x$enable_threads = xyes; then
3396 xm_file="xm-alloca.h ${xm_file}"
3399 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3400 tm_file=sparc/vxsparc.h
3401 tmake_file=sparc/t-vxsparc
3403 thread_file='vxworks'
3406 tmake_file=sparc/t-sparcbare
3407 tm_file="sparc/aout.h libgloss.h"
3410 tm_file=sparc/netbsd.h
3415 # we need collect2 until our bug is fixed...
3423 tmake_file=sparc/t-elf
3424 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3428 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3429 xm_file="${xm_file} sparc/xm-linux.h"
3430 tm_file=sparc/linux-aout.h
3434 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3435 xm_file="${xm_file} sparc/xm-linux.h"
3437 tm_file=sparc/linux.h
3438 tmake_file="t-linux t-linux-gnulibc1"
3439 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3443 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3444 xm_file="${xm_file} sparc/xm-linux.h"
3446 tm_file=sparc/linux.h
3447 tmake_file="t-linux"
3448 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3450 if test x$enable_threads = xyes; then
3456 if test x$gas = xyes
3458 tm_file=sparc/lynx.h
3460 tm_file=sparc/lynx-ng.h
3462 xm_file=sparc/xm-lynx.h
3463 tmake_file=sparc/t-sunos41
3467 tmake_file="sparc/t-sparcbare t-rtems"
3468 tm_file=sparc/rtems.h
3470 sparc-*-rtems*|sparc-*-rtemself*)
3471 tm_file="sparc/rtemself.h"
3472 tmake_file="sparc/t-elf t-rtems"
3473 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3477 sparcv9-*-solaris2*)
3478 if test x$gnu_ld = xyes
3480 tm_file=sparc/sol2-64.h
3482 tm_file=sparc/sol2-sld-64.h
3484 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3485 xm_defines="USG POSIX"
3486 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3487 xmake_file=sparc/x-sysv4
3488 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3490 if test x${enable_threads} = x ; then
3491 enable_threads=$have_pthread_h
3492 if test x${enable_threads} = x ; then
3493 enable_threads=$have_thread_h
3496 if test x${enable_threads} = xyes ; then
3497 if test x${have_pthread_h} = xyes ; then
3500 thread_file='solaris'
3504 sparc-hal-solaris2*)
3505 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3506 xm_defines="USG POSIX"
3507 tm_file="sparc/sol2.h sparc/hal.h"
3508 tmake_file="sparc/t-halos sparc/t-sol2"
3509 xmake_file=sparc/x-sysv4
3510 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3521 thread_file='solaris'
3524 if test x$gnu_ld = xyes
3526 tm_file=sparc/sol2.h
3528 tm_file=sparc/sol2-sld.h
3530 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3531 xm_defines="USG POSIX"
3532 tmake_file=sparc/t-sol2
3533 xmake_file=sparc/x-sysv4
3534 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3537 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3540 if test x$gnu_ld = xyes
3542 tm_file=sparc/sol2-64.h
3544 tm_file=sparc/sol2-sld-64.h
3546 tmake_file="$tmake_file sparc/t-sol2-64"
3559 if test x${enable_threads} = x; then
3560 enable_threads=$have_pthread_h
3561 if test x${enable_threads} = x; then
3562 enable_threads=$have_thread_h
3565 if test x${enable_threads} = xyes; then
3566 if test x${have_pthread_h} = xyes; then
3569 thread_file='solaris'
3574 tm_file=sparc/sunos4.h
3575 tmake_file=sparc/t-sunos40
3579 tm_file=sparc/sunos4.h
3580 tmake_file=sparc/t-sunos41
3582 if test x$gas = xyes; then
3583 tm_file="${tm_file} sparc/sun4gas.h"
3587 tm_file=sparc/sun4o3.h
3591 tm_file=sparc/sysv4.h
3592 xm_file="sparc/xm-sysv4.h"
3593 xm_defines="USG POSIX"
3595 xmake_file=sparc/x-sysv4
3596 extra_parts="crtbegin.o crtend.o"
3599 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3600 xm_defines="USG POSIX"
3601 tm_file=sparc/vxsim.h
3602 tmake_file=sparc/t-vxsparc
3603 xmake_file=sparc/x-sysv4
3606 tm_file="sparc/splet.h libgloss.h"
3607 tmake_file=sparc/t-splet
3610 tm_file="sparc/litecoff.h libgloss.h"
3611 tmake_file=sparc/t-sparclite
3614 tm_file="sparc/lite.h aoutos.h libgloss.h"
3615 tmake_file=sparc/t-sparclite
3618 tm_file="sparc/liteelf.h"
3619 tmake_file=sparc/t-sparclite
3620 extra_parts="crtbegin.o crtend.o"
3623 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3624 tmake_file=sparc/t-sp86x
3627 tm_file="sparc/sp86x-elf.h"
3628 tmake_file=sparc/t-sp86x
3629 extra_parts="crtbegin.o crtend.o"
3632 tmake_file=sparc/t-sp64
3633 tm_file=sparc/sp64-aout.h
3636 tmake_file=sparc/t-sp64
3637 tm_file=sparc/sp64-elf.h
3638 extra_parts="crtbegin.o crtend.o"
3640 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3641 tmake_file="t-linux sparc/t-linux64"
3642 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3643 tm_file=sparc/linux64.h
3645 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3647 if test x$enable_threads = xyes; then
3652 # This hasn't been upgraded to GCC 2.
3653 # tahoe-harris-*) # Harris tahoe, using COFF.
3654 # tm_file=tahoe/harris.h
3656 # tahoe-*-bsd*) # tahoe running BSD
3661 *** The Thumb targets have been depreciated. The equivalent
3662 *** ARM based toolchain can now generated Thumb instructions
3663 *** when the -mthumb switch is given to the compiler.])
3665 # This hasn't been upgraded to GCC 2.
3672 tm_file="v850/rtems.h"
3673 xm_file="v850/xm-v850.h"
3674 tmake_file="v850/t-v850 t-rtems"
3675 if test x$stabs = xyes
3677 tm_file="${tm_file} dbx.h"
3682 target_cpu_default="TARGET_CPU_generic"
3684 tm_file="v850/v850.h"
3685 xm_file="v850/xm-v850.h"
3686 tmake_file=v850/t-v850
3687 if test x$stabs = xyes
3689 tm_file="${tm_file} dbx.h"
3693 vax-*-bsd*) # vaxen running BSD
3697 vax-*-sysv*) # vaxen running system V
3698 tm_file="${tm_file} vax/vaxv.h"
3703 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3709 tmake_file="${tmake_file} vax/t-openbsd"
3710 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3711 xm_file="xm-openbsd.h vax/xm-vax.h"
3715 vax-*-ultrix*) # vaxen running ultrix
3716 tm_file="${tm_file} vax/ultrix.h"
3719 vax-*-vms*) # vaxen running VMS
3720 xm_file=vax/xm-vms.h
3724 vax-*-*) # vax default entry
3728 xm_file="${xm_file} xm-svr3"
3732 echo "Configuration $machine not supported" 1>&2
3739 ;; # Existing GNU/Linux systems do not use the GNU setup.
3741 # On the GNU system, the setup is just about the same on
3742 # each different CPU. The specific machines that GNU
3743 # supports are matched above and just set $cpu_type.
3744 xm_file="xm-gnu.h ${xm_file}"
3745 tm_file=${cpu_type}/gnu.h
3746 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3747 # GNU always uses ELF.
3749 # GNU tools are the only tools.
3752 xmake_file=x-linux # These details are the same as Linux.
3753 tmake_file=t-gnu # These are not.
3756 xmake_try_sysv=x-sysv
3757 install_headers_dir=install-headers-cpio
3760 install_headers_dir=install-headers-cpio
3764 # Distinguish i[34567]86
3765 # Also, do not run mips-tfile on MIPS if using gas.
3766 # Process --with-cpu= for PowerPC/rs6000
3767 target_cpu_default2=
3770 target_cpu_default2=1
3773 case $target_alias in
3775 target_cpu_default2=4
3778 target_cpu_default2=2
3782 i686-*-* | i786-*-*)
3783 target_cpu_default2=3
3790 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3793 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3796 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3799 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3802 target_cpu_default2="MASK_CPU_EV5"
3806 if test x$gas = xyes
3808 if test "$target_cpu_default2" = ""
3810 target_cpu_default2="MASK_GAS"
3812 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3817 case "x$with_cpu" in
3820 target_cpu_default2="TARGET_CPU_generic"
3823 # Distinguish cores, and major variants
3824 # arm7m doesn't exist, but D & I don't affect code
3826 xarm[23678] | xarm250 | xarm[67][01]0 \
3827 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3828 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3829 | xstrongarm | xstrongarm110 | xstrongarm1100)
3831 target_cpu_default2="TARGET_CPU_$with_cpu"
3835 echo "--with-cpu must be passed a value" 1>&2
3840 if test x$pass2done = xyes
3842 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3849 mips*-*-ecoff* | mips*-*-elf*)
3850 if test x$gas = xyes
3852 if test x$gnu_ld = xyes
3854 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3856 target_cpu_default2="MASK_GAS"
3861 if test x$gas = xyes
3863 target_cpu_default2="MASK_GAS"
3866 powerpc*-*-* | rs6000-*-*)
3867 case "x$with_cpu" in
3871 xcommon | xpower | xpower2 | xpowerpc | xrios \
3872 | xrios1 | xrios2 | xrsc | xrsc1 \
3873 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3874 | xec603e | x740 | x750 | x401 \
3875 | x403 | x505 | x801 | x821 | x823 | x860)
3876 target_cpu_default2="\"$with_cpu\""
3880 echo "--with-cpu must be passed a value" 1>&2
3885 if test x$pass2done = xyes
3887 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3894 case ".$with_cpu" in
3896 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3898 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3899 target_cpu_default2="TARGET_CPU_$with_cpu"
3902 if test x$pass2done = xyes
3904 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3912 if test "$target_cpu_default2" != ""
3914 if test "$target_cpu_default" != ""
3916 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3918 target_cpu_default=$target_cpu_default2
3922 # No need for collect2 if we have the GNU linker.
3923 # Actually, there is now; GNU ld doesn't handle the EH info or
3924 # collecting for shared libraries.
3931 # Save data on machine being used to compile GCC in build_xm_file.
3932 # Save data on host machine in vars host_xm_file and host_xmake_file.
3933 if test x$pass1done = x
3935 if test x"$xm_file" = x
3936 then build_xm_file=$cpu_type/xm-$cpu_type.h
3937 else build_xm_file=$xm_file
3939 build_xm_defines=$xm_defines
3940 build_install_headers_dir=$install_headers_dir
3941 build_exeext=$exeext
3944 if test x$pass2done = x
3946 if test x"$xm_file" = x
3947 then host_xm_file=$cpu_type/xm-$cpu_type.h
3948 else host_xm_file=$xm_file
3950 host_xm_defines=$xm_defines
3951 if test x"$xmake_file" = x
3952 then xmake_file=$cpu_type/x-$cpu_type
3954 host_xmake_file="$xmake_file"
3955 host_truncate_target=$truncate_target
3956 host_extra_gcc_objs=$extra_gcc_objs
3957 host_extra_objs=$extra_host_objs
3964 extra_objs="${host_extra_objs} ${extra_objs}"
3966 # Default the target-machine variables that were not explicitly set.
3967 if test x"$tm_file" = x
3968 then tm_file=$cpu_type/$cpu_type.h; fi
3970 if test x$extra_headers = x
3971 then extra_headers=; fi
3973 if test x"$xm_file" = x
3974 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3976 if test x$md_file = x
3977 then md_file=$cpu_type/$cpu_type.md; fi
3979 if test x$out_file = x
3980 then out_file=$cpu_type/$cpu_type.c; fi
3982 if test x"$tmake_file" = x
3983 then tmake_file=$cpu_type/t-$cpu_type
3986 if test x"$dwarf2" = xyes
3987 then tm_file="$tm_file tm-dwarf2.h"
3990 if test x$float_format = x
3991 then float_format=i64
3994 if test $float_format = none
3995 then float_h_file=Makefile.in
3996 else float_h_file=float-$float_format.h
3999 # Handle cpp installation.
4000 if test x$enable_cpp != xno
4002 tmake_file="$tmake_file t-install-cpp"
4005 # Say what files are being used for the output code and MD file.
4006 echo "Using \`$srcdir/config/$out_file' to output insns."
4007 echo "Using \`$srcdir/config/$md_file' as machine description file."
4010 for f in $tm_file; do
4013 if test $count = ax; then
4014 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4016 echo "Using the following target machine macro files:"
4017 for f in $tm_file; do
4018 echo " $srcdir/config/$f"
4023 for f in $host_xm_file; do
4026 if test $count = ax; then
4027 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4029 echo "Using the following host machine macro files:"
4030 for f in $host_xm_file; do
4031 echo " $srcdir/config/$f"
4035 if test "$host_xm_file" != "$build_xm_file"; then
4037 for f in $build_xm_file; do
4040 if test $count = ax; then
4041 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4043 echo "Using the following build machine macro files:"
4044 for f in $build_xm_file; do
4045 echo " $srcdir/config/$f"
4050 if test x$thread_file = x; then
4051 if test x$target_thread_file != x; then
4052 thread_file=$target_thread_file
4054 thread_file='single'
4058 # Set up the header files.
4059 # $links is the list of header files to create.
4060 # $vars is the list of shell variables with file names to include.
4061 # auto-host.h is the file containing items generated by autoconf and is
4062 # the first file included by config.h.
4064 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4066 # If host=build, it is correct to have hconfig include auto-host.h
4067 # as well. If host!=build, we are in error and need to do more
4068 # work to find out the build config parameters.
4069 if test x$host = x$build
4071 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4073 # We create a subdir, then run autoconf in the subdir.
4074 # To prevent recursion we set host and build for the new
4075 # invocation of configure to the build for this invocation
4082 /*) realsrcdir=${srcdir};;
4083 *) realsrcdir=../${srcdir};;
4085 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4086 --target=$target --host=$build --build=$build
4088 # We just finished tests for the build machine, so rename
4089 # the file auto-build.h in the gcc directory.
4090 mv auto-host.h ../auto-build.h
4093 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4096 xm_file="gansidecl.h ${xm_file}"
4097 tm_file="gansidecl.h ${tm_file}"
4099 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4100 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4101 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4104 if test -f config.status; then mv -f config.status config.bak; fi
4107 while test -n "$vars"
4109 set $vars; var=$1; shift; vars=$*
4110 set $links; link=$1; shift; links=$*
4111 set $defines; define=$1; shift; defines=$*
4114 # Make sure the file is created, even if it is empty.
4117 # Define TARGET_CPU_DEFAULT if the system wants one.
4118 # This substitutes for lots of *.h files.
4119 if test "$target_cpu_default" != "" -a $link = tm.h
4121 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4124 for file in `eval echo '$'$var`; do
4126 auto-host.h | auto-build.h )
4129 echo '#ifdef IN_GCC' >>$link
4132 echo "#include \"$file\"" >>$link
4134 auto-host.h | auto-build.h )
4137 echo '#endif' >>$link
4142 for def in `eval echo '$'$define`; do
4143 echo "#ifndef $def" >>$link
4144 echo "#define $def" >>$link
4145 echo "#endif" >>$link
4149 # Truncate the target if necessary
4150 if test x$host_truncate_target != x; then
4151 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4154 # Get the version trigger filename from the toplevel
4155 if test "${with_gcc_version_trigger+set}" = set; then
4156 gcc_version_trigger=$with_gcc_version_trigger
4158 gcc_version_trigger=${srcdir}/version.c
4161 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4164 # Internationalization
4166 VERSION="$gcc_version"
4167 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4168 [Define to the name of the distribution.])
4169 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4170 [Define to the version of the distribution.])
4176 # Enable NLS support by default
4178 [ --enable-nls use Native Language Support (default)],
4181 # if cross compiling, disable NLS support.
4182 # It's not worth the trouble, at least for now.
4184 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4185 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4190 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4192 # Windows32 Registry support for specifying GCC installation paths.
4193 AC_ARG_ENABLE(win32-registry,
4194 [ --disable-win32-registry
4195 Disable lookup of installation paths in the
4196 Registry on Windows hosts.
4197 --enable-win32-registry Enable registry lookup (default).
4198 --enable-win32-registry=KEY
4199 Use KEY instead of GCC version as the last portion
4200 of the registry key.],,)
4202 AC_MSG_CHECKING(whether windows registry support is requested)
4203 if test x$enable_win32_registry != xno; then
4204 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4205 [Define to 1 if installation paths should be looked up in Windows32
4206 Registry. Ignored on non windows32 hosts.])
4212 # Check if user specified a different registry key.
4213 case x${enable_win32_registry} in
4216 gcc_cv_win32_registry_key="$VERSION"
4219 # no registry lookup.
4220 gcc_cv_win32_registry_key=''
4223 # user-specified key.
4224 gcc_cv_win32_registry_key="$enable_win32_registry"
4228 if test x$enable_win32_registry != xno; then
4229 AC_MSG_CHECKING(registry key on windows hosts)
4230 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4231 [Define to be the last portion of registry key on windows hosts.])
4232 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4235 # Get an absolute path to the GCC top-level source directory
4241 # Conditionalize the makefile for this host machine.
4242 # Make-host contains the concatenation of all host makefile fragments
4243 # [there can be more than one]. This file is built by configure.frag.
4244 host_overrides=Make-host
4245 dep_host_xmake_file=
4246 for f in .. ${host_xmake_file}
4248 if test -f ${srcdir}/config/$f
4250 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4254 # Conditionalize the makefile for this target machine.
4255 # Make-target contains the concatenation of all host makefile fragments
4256 # [there can be more than one]. This file is built by configure.frag.
4257 target_overrides=Make-target
4259 for f in .. ${tmake_file}
4261 if test -f ${srcdir}/config/$f
4263 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4267 # If the host doesn't support symlinks, modify CC in
4268 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4269 # Otherwise, we can use "CC=$(CC)".
4271 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4273 cc_set_by_configure="\$(CC)"
4274 quoted_cc_set_by_configure="\$(CC)"
4275 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4278 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4280 symbolic_link="cp -p"
4284 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4285 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4286 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4290 out_object_file=`basename $out_file .c`.o
4293 for f in $tm_file; do
4296 tm_file_list="${tm_file_list} $f" ;;
4297 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4302 for f in $host_xm_file; do
4304 auto-host.h | gansidecl.h | hwint.h )
4305 host_xm_file_list="${host_xm_file_list} $f" ;;
4306 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4311 for f in $build_xm_file; do
4313 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4314 build_xm_file_list="${build_xm_file_list} $f" ;;
4315 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4319 # Define macro CROSS_COMPILE in compilation
4320 # if this is a cross-compiler.
4321 # Also use all.cross instead of all.internal
4322 # and add cross-make to Makefile.
4323 cross_overrides="/dev/null"
4324 if test x$host != x$target
4326 cross_defines="CROSS=-DCROSS_COMPILE"
4327 cross_overrides="${topdir}/cross-make"
4330 # If this is a cross-compiler that does not
4331 # have its own set of headers then define
4334 # If this is using newlib, then define inhibit_libc in
4335 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4336 # libgcc.a, but that's OK because newlib should have its own version of
4339 if [test x$host != x$target] && [test x$with_headers = x]; then
4340 inhibit_libc=-Dinhibit_libc
4342 if [test x$with_newlib = xyes]; then
4343 inhibit_libc=-Dinhibit_libc
4346 AC_SUBST(inhibit_libc)
4348 # When building gcc with a cross-compiler, we need to fix a few things.
4349 # This must come after cross-make as we want all.build to override
4351 build_overrides="/dev/null"
4352 if test x$build != x$host
4354 build_overrides="${topdir}/build-make"
4357 # Expand extra_headers to include complete path.
4358 # This substitutes for lots of t-* files.
4360 if test "x$extra_headers" = x
4363 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4364 for file in $extra_headers;
4366 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4370 if test x$use_collect2 = xno; then
4374 # Add a definition of USE_COLLECT2 if system wants one.
4375 # Also tell toplev.c what to do.
4376 # This substitutes for lots of t-* files.
4377 if test x$use_collect2 = x
4382 will_use_collect2="collect2"
4383 maybe_use_collect2="-DUSE_COLLECT2"
4387 # Set MD_DEPS if the real md file is in md.pre-cpp.
4388 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4389 # for line oriented comments, so we must always use a GNU cpp. If
4390 # building gcc with a cross compiler, use the cross compiler just
4391 # built. Otherwise, we can use the cpp just built.
4393 if test "x$md_cppflags" = x
4395 md_file_sub=$srcdir/config/$md_file
4400 # If we have gas in the build tree, make a link to it.
4401 if test -f ../gas/Makefile; then
4402 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4405 # If we have nm in the build tree, make a link to it.
4406 if test -f ../binutils/Makefile; then
4407 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4410 # If we have ld in the build tree, make a link to it.
4411 if test -f ../ld/Makefile; then
4412 # if test x$use_collect2 = x; then
4413 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4415 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4419 # Figure out what assembler alignment features are present.
4420 AC_MSG_CHECKING(assembler alignment features)
4422 gcc_cv_as_alignment_features=
4423 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4424 if test -x "$DEFAULT_ASSEMBLER"; then
4425 gcc_cv_as="$DEFAULT_ASSEMBLER"
4426 elif test -x "$AS"; then
4428 elif test -x as$host_exeext; then
4429 # Build using assembler in the current directory.
4430 gcc_cv_as=./as$host_exeext
4431 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4432 # Single tree build which includes gas.
4433 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4436 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4438 if test x$gcc_cv_gas_version != x; then
4443 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4444 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4446 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4447 # Gas version 2.6 and later support for .balign and .p2align.
4448 # bytes to skip when using .p2align.
4449 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
4450 gcc_cv_as_alignment_features=".balign and .p2align"
4451 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4453 # Gas version 2.8 and later support specifying the maximum
4454 # bytes to skip when using .p2align.
4455 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
4456 gcc_cv_as_alignment_features=".p2align including maximum skip"
4457 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4460 elif test x$host = x$target; then
4462 # Search the same directories that the installed compiler will
4463 # search. Else we may find the wrong assembler and lose. If we
4464 # do not find a suitable assembler binary, then try the user's
4467 # Also note we have to check MD_EXEC_PREFIX before checking the
4468 # user's path. Unfortunately, there is no good way to get at the
4469 # value of MD_EXEC_PREFIX here. So we do a brute force search
4470 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4471 # to be fixed as part of the make/configure rewrite too.
4473 if test "x$exec_prefix" = xNONE; then
4474 if test "x$prefix" = xNONE; then
4475 test_prefix=/usr/local
4480 test_prefix=$exec_prefix
4483 # If the loop below does not find an assembler, then use whatever
4484 # one we can find in the users's path.
4488 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4489 $test_prefix/lib/gcc-lib/$target \
4490 /usr/lib/gcc/$target/$gcc_version \
4491 /usr/lib/gcc/$target \
4492 $test_prefix/$target/bin/$target/$gcc_version \
4493 $test_prefix/$target/bin \
4498 /bsd43/usr/lib/cmplrs/cc \
4499 /usr/cross64/usr/bin \
4500 /usr/lib/cmplrs/cc \
4501 /sysv/usr/lib/cmplrs/cc \
4502 /svr4/usr/lib/cmplrs/cc \
4505 for dir in $test_dirs; do
4506 if test -f $dir/as$host_exeext; then
4507 gcc_cv_as=$dir/as$host_exeext
4512 if test x$gcc_cv_as != x; then
4513 # Check if we have .balign and .p2align
4514 echo ".balign 4" > conftest.s
4515 echo ".p2align 2" >> conftest.s
4516 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4517 gcc_cv_as_alignment_features=".balign and .p2align"
4518 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4520 rm -f conftest.s conftest.o
4521 # Check if specifying the maximum bytes to skip when
4522 # using .p2align is supported.
4523 echo ".p2align 4,,7" > conftest.s
4524 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4525 gcc_cv_as_alignment_features=".p2align including maximum skip"
4526 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4528 rm -f conftest.s conftest.o
4530 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4532 AC_MSG_CHECKING(assembler subsection support)
4533 gcc_cv_as_subsections=
4534 if test x$gcc_cv_as != x; then
4535 # Check if we have .subsection
4536 echo ".subsection 1" > conftest.s
4537 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4538 gcc_cv_as_subsections=".subsection"
4539 if test -x nm$host_exeext; then
4540 gcc_cv_nm=./nm$host_exeext
4541 elif test x$host = x$target; then
4543 gcc_cv_nm=nm$host_exeext
4545 if test x$gcc_cv_nm != x; then
4546 cat > conftest.s <<EOF
4547 conftest_label1: .word 0
4549 conftest_label2: .word 0
4552 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4553 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4554 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4555 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4558 gcc_cv_as_subsections="working .subsection -1"
4559 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4560 [Define if your assembler supports .subsection and .subsection -1 starts
4561 emitting at the beginning of your section.])
4566 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4568 AC_MSG_RESULT($gcc_cv_as_subsections)
4570 AC_MSG_CHECKING(assembler weak support)
4572 if test x$gcc_cv_as != x; then
4573 # Check if we have .weak
4574 echo " .weak foobar" > conftest.s
4575 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4576 AC_DEFINE(HAVE_GAS_WEAK, 1,
4577 [Define if your assembler supports .weak.])
4578 gcc_cv_as_weak="yes"
4580 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4582 AC_MSG_RESULT($gcc_cv_as_weak)
4584 AC_MSG_CHECKING(assembler hidden support)
4586 if test x$gcc_cv_as != x; then
4587 # Check if we have .hidden
4588 echo " .hidden foobar" > conftest.s
4589 echo "foobar:" >> conftest.s
4590 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4591 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4592 [Define if your assembler supports .hidden.])
4593 gcc_cv_as_hidden="yes"
4595 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4597 AC_MSG_RESULT($gcc_cv_as_hidden)
4601 AC_CACHE_CHECK([assembler .register pseudo-op support],
4602 gcc_cv_as_register_pseudo_op, [
4603 gcc_cv_as_register_pseudo_op=unknown
4604 if test x$gcc_cv_as != x; then
4605 # Check if we have .register
4606 echo ".register %g2, #scratch" > conftest.s
4607 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4608 gcc_cv_as_register_pseudo_op=yes
4610 gcc_cv_as_register_pseudo_op=no
4612 rm -f conftest.s conftest.o
4615 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4616 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4617 [Define if your assembler supports .register.])
4620 AC_CACHE_CHECK([assembler supports -relax],
4621 gcc_cv_as_relax_opt, [
4622 gcc_cv_as_relax_opt=unknown
4623 if test x$gcc_cv_as != x; then
4624 # Check if gas supports -relax
4625 echo ".text" > conftest.s
4626 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4627 gcc_cv_as_relax_opt=yes
4629 gcc_cv_as_relax_opt=no
4631 rm -f conftest.s conftest.o
4634 if test "x$gcc_cv_as_relax_opt" = xyes; then
4635 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4636 [Define if your assembler supports -relax option.])
4641 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4642 gcc_cv_as_flags64, [
4643 if test -n "$gcc_cv_as"; then
4644 echo ".xword foo" > conftest.s
4645 gcc_cv_as_flags64=no
4646 for flag in "-xarch=v9" "-64 -Av9"; do
4647 if $gcc_cv_as $flag -o conftest.o conftest.s \
4648 > /dev/null 2>&1; then
4649 gcc_cv_as_flags64=$flag
4653 rm -f conftest.s conftest.o
4655 if test "$gas" = yes; then
4656 gcc_cv_as_flags64="-64 -Av9"
4658 gcc_cv_as_flags64="-xarch=v9"
4662 if test "x$gcc_cv_as_flags64" = xno; then
4664 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4665 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4668 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4669 [Define if the assembler supports 64bit sparc.])
4672 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4676 if test "x$gcc_cv_as_flags64" != xno; then
4677 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4678 gcc_cv_as_offsetable_lo10, [
4679 gcc_cv_as_offsetable_lo10=unknown
4680 if test "x$gcc_cv_as" != x; then
4681 # Check if assembler has offsetable %lo()
4682 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4683 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4684 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4686 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4687 > /dev/null 2>&1; then
4688 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4689 gcc_cv_as_offsetable_lo10=no
4691 gcc_cv_as_offsetable_lo10=yes
4694 gcc_cv_as_offsetable_lo10=no
4696 rm -f conftest.s conftest.o conftest1.s conftest1.o
4699 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4700 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4701 [Define if your assembler supports offsetable %lo().])
4709 AC_MSG_CHECKING(assembler instructions)
4710 gcc_cv_as_instructions=
4711 if test x$gcc_cv_as != x; then
4712 set "filds fists" "filds mem; fists mem"
4715 echo "$2" > conftest.s
4716 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4717 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4718 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4722 rm -f conftest.s conftest.o
4724 AC_MSG_RESULT($gcc_cv_as_instructions)
4728 # Figure out what language subdirectories are present.
4729 # Look if the user specified --enable-languages="..."; if not, use
4730 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4732 if test x"${enable_languages+set}" != xset; then
4733 if test x"${LANGUAGES+set}" = xset; then
4734 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4736 enable_languages=all
4739 if test x"${enable_languages}" = x; then
4740 AC_MSG_ERROR([--enable-languages needs at least one argument])
4744 for lang in ${srcdir}/*/config-lang.in ..
4748 # The odd quoting in the next line works around
4749 # an apparent bug in bash 1.12 on linux.
4751 ${srcdir}/[*]/config-lang.in) ;;
4753 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4754 if test "x$lang_alias" = x
4756 echo "$lang doesn't set \$language." 1>&2
4759 if test x"${enable_languages}" = xall; then
4762 case "${enable_languages}" in
4763 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4771 if test x"${add_this_lang}" = xyes; then
4773 ${srcdir}/ada/config-lang.in)
4774 if test x$gnat = xyes ; then
4775 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4779 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4788 # Make gthr-default.h if we have a thread file.
4790 if test $thread_file != single; then
4791 rm -f gthr-default.h
4792 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4793 gthread_flags=-DHAVE_GTHR_DEFAULT
4795 AC_SUBST(gthread_flags)
4797 # Find out what GC implementation we want, or may, use.
4799 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4800 with the compiler.],
4806 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4809 [if test $ac_cv_func_mmap_anywhere = yes \
4810 || test $ac_cv_func_valloc = yes; then
4816 echo "Using $GGC for garbage collection."
4818 # Use the system's zlib library.
4819 zlibdir=-L../../zlib
4820 zlibinc="-I\$(srcdir)/../../zlib"
4821 AC_ARG_WITH(system-zlib,
4822 [ --with-system-zlib use installed libz],
4829 # Build a new-abi (c++) system
4830 AC_ARG_ENABLE(new-gxx-abi,
4831 [ --enable-new-gxx-abi
4832 select the new abi for g++. You must select an ABI
4833 at configuration time, so that the correct runtime
4834 support is built. You cannot mix ABIs.],
4835 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4836 [Define if you want to always select the new-abi for g++.])
4837 GXX_ABI_FLAG='-fnew-abi'
4838 echo "Building a new-abi g++ compiler."
4840 AC_SUBST(GXX_ABI_FLAG)
4842 # Build a new-libstdc++ system (ie libstdc++-v3)
4843 AC_MSG_CHECKING([for libstdc++ to install])
4844 AC_ARG_ENABLE(libstdcxx-v3,
4845 [ --enable-libstdcxx-v3
4846 enable libstdc++-v3 for building and installation],
4847 [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
4849 if test x$enable_libstdcxx_v3 = xyes; then
4856 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4857 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4859 dnl Very limited version of automake's enable-maintainer-mode
4861 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4862 dnl maintainer-mode is disabled by default
4863 AC_ARG_ENABLE(maintainer-mode,
4864 [ --enable-maintainer-mode enable make rules and dependencies not useful
4865 (and sometimes confusing) to the casual installer],
4866 maintainer_mode=$enableval,
4869 AC_MSG_RESULT($maintainer_mode)
4871 if test "$maintainer_mode" = "yes"; then
4878 # Make empty files to contain the specs and options for each language.
4879 # Then add #include lines to for a compiler that has specs and/or options.
4884 rm -f specs.h options.h gencheck.h
4885 touch specs.h options.h gencheck.h
4886 for subdir in . $subdirs
4888 if test -f $srcdir/$subdir/lang-specs.h; then
4889 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4890 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4892 if test -f $srcdir/$subdir/lang-options.h; then
4893 echo "#include \"$subdir/lang-options.h\"" >>options.h
4894 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4896 if test -f $srcdir/$subdir/$subdir-tree.def; then
4897 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4898 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4902 # These (without "all_") are set in each config-lang.in.
4903 # `language' must be a single word so is spelled singularly.
4909 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4910 # List of language makefile fragments.
4915 # Add the language fragments.
4916 # Languages are added via two mechanisms. Some information must be
4917 # recorded in makefile variables, these are defined in config-lang.in.
4918 # We accumulate them and plug them into the main Makefile.
4919 # The other mechanism is a set of hooks for each of the main targets
4920 # like `clean', `install', etc.
4922 language_fragments="Make-lang"
4923 language_hooks="Make-hooks"
4926 for s in .. $subdirs
4938 . ${srcdir}/$s/config-lang.in
4939 if test "x$language" = x
4941 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4944 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4945 all_languages="$all_languages $language"
4946 if test "x$boot_language" = xyes
4948 all_boot_languages="$all_boot_languages $language"
4950 all_compilers="$all_compilers $compilers"
4951 all_stagestuff="$all_stagestuff $stagestuff"
4952 all_diff_excludes="$all_diff_excludes $diff_excludes"
4953 all_headers="$all_headers $headers"
4954 all_outputs="$all_outputs $outputs"
4955 if test x$outputs = x
4957 oldstyle_subdirs="$oldstyle_subdirs $s"
4959 all_lib2funcs="$all_lib2funcs $lib2funcs"
4963 # Since we can't use `::' targets, we link each language in
4964 # with a set of hooks, reached indirectly via lang.${target}.
4968 target_list="all.build all.cross start.encap rest.encap \
4970 install-normal install-common install-info install-man \
4972 mostlyclean clean distclean extraclean maintainer-clean \
4973 stage1 stage2 stage3 stage4"
4974 for t in $target_list
4977 for lang in .. $all_languages
4979 if test $lang != ".."; then
4983 echo "lang.$t: $x" >> Make-hooks
4986 # If we're not building in srcdir, create .gdbinit.
4988 if test ! -f Makefile.in; then
4989 echo "dir ." > .gdbinit
4990 echo "dir ${srcdir}" >> .gdbinit
4991 if test x$gdb_needs_out_file_path = xyes
4993 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4995 if test "x$subdirs" != x; then
4998 echo "dir ${srcdir}/$s" >> .gdbinit
5001 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5004 # Define variables host_canonical and build_canonical
5005 # because some Cygnus local changes in the Makefile depend on them.
5006 build_canonical=${build}
5007 host_canonical=${host}
5009 if test "${host}" != "${target}" ; then
5010 target_subdir=${target}/
5012 AC_SUBST(build_canonical)
5013 AC_SUBST(host_canonical)
5014 AC_SUBST(target_subdir)
5016 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
5017 # absolute path for gcc_tooldir based on inserting the number of up-directory
5018 # movements required to get from $(exec_prefix) to $(prefix) into the basic
5019 # $(libsubdir)/@(unlibsubdir) based path.
5020 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
5021 # make and thus we'd get different behavior depending on where we built the
5023 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
5024 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
5026 changequote(<<, >>)dnl
5027 # An explanation of the sed strings:
5028 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
5029 # -e 's|/$||' match a trailing forward slash and eliminates it
5030 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
5031 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
5033 # (*) Note this pattern overwrites the first character of the string
5034 # with a forward slash if one is not already present. This is not a
5035 # problem because the exact names of the sub-directories concerned is
5036 # unimportant, just the number of them matters.
5038 # The practical upshot of these patterns is like this:
5040 # prefix exec_prefix result
5041 # ------ ----------- ------
5043 # /foo/ /foo/bar ../
5044 # /foo /foo/bar/ ../
5045 # /foo/ /foo/bar/ ../
5046 # /foo /foo/bar/ugg ../../
5049 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
5050 changequote([, ])dnl
5052 AC_SUBST(gcc_tooldir)
5055 # Nothing to do for FLOAT_H, float_format already handled.
5059 # Process the language and host/target makefile fragments.
5060 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5062 # Substitute configuration variables
5064 AC_SUBST(all_boot_languages)
5065 AC_SUBST(all_compilers)
5066 AC_SUBST(all_diff_excludes)
5067 AC_SUBST(all_headers)
5068 AC_SUBST(all_lang_makefiles)
5069 AC_SUBST(all_languages)
5070 AC_SUBST(all_lib2funcs)
5071 AC_SUBST(all_stagestuff)
5072 AC_SUBST(build_exeext)
5073 AC_SUBST(build_install_headers_dir)
5074 AC_SUBST(build_xm_file_list)
5075 AC_SUBST(cc_set_by_configure)
5076 AC_SUBST(quoted_cc_set_by_configure)
5077 AC_SUBST(cpp_install_dir)
5078 AC_SUBST(dep_host_xmake_file)
5079 AC_SUBST(dep_tmake_file)
5080 AC_SUBST(extra_c_flags)
5081 AC_SUBST(extra_c_objs)
5082 AC_SUBST(extra_cpp_objs)
5083 AC_SUBST(extra_cxx_objs)
5084 AC_SUBST(extra_headers_list)
5085 AC_SUBST(extra_objs)
5086 AC_SUBST(extra_parts)
5087 AC_SUBST(extra_passes)
5088 AC_SUBST(extra_programs)
5089 AC_SUBST(float_h_file)
5090 AC_SUBST(gcc_gxx_include_dir)
5091 AC_SUBST(gcc_version)
5092 AC_SUBST(gcc_version_trigger)
5093 AC_SUBST(host_exeext)
5094 AC_SUBST(host_extra_gcc_objs)
5095 AC_SUBST(host_xm_file_list)
5097 AC_SUBST(lang_options_files)
5098 AC_SUBST(lang_specs_files)
5099 AC_SUBST(lang_tree_files)
5100 AC_SUBST(local_prefix)
5101 AC_SUBST(maybe_use_collect2)
5103 AC_SUBST(objc_boehm_gc)
5105 AC_SUBST(out_object_file)
5106 AC_SUBST(stage_prefix_set_by_configure)
5107 AC_SUBST(symbolic_link)
5108 AC_SUBST(thread_file)
5109 AC_SUBST(tm_file_list)
5110 AC_SUBST(will_use_collect2)
5113 AC_SUBST_FILE(target_overrides)
5114 AC_SUBST_FILE(host_overrides)
5115 AC_SUBST(cross_defines)
5116 AC_SUBST_FILE(cross_overrides)
5117 AC_SUBST_FILE(build_overrides)
5118 AC_SUBST_FILE(language_fragments)
5119 AC_SUBST_FILE(language_hooks)
5121 # Echo that links are built
5122 if test x$host = x$target
5130 if test x$host != x$build
5132 str3=" on a $build system"
5135 if test "x$str2" != x || test "x$str3" != x
5140 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5142 if test "x$str2" != x || test "x$str3" != x
5144 echo " ${str2}${str3}." 1>&2
5147 # Truncate the target if necessary
5148 if test x$host_truncate_target != x; then
5149 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5152 # Configure the subdirectories
5153 # AC_CONFIG_SUBDIRS($subdirs)
5155 # Create the Makefile
5156 # and configure language subdirectories
5157 AC_OUTPUT($all_outputs,
5159 . $srcdir/configure.lang
5160 case x$CONFIG_HEADERS in
5161 xauto-host.h:config.in)
5164 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5165 # bootstrapping and the installation procedure can still use
5166 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5167 # FLAGS_TO_PASS has been modified to solve the problem there.
5168 # This is virtually a duplicate of what happens in configure.lang; we do
5169 # an extra check to make sure this only happens if ln -s can be used.
5170 if test "$symbolic_link" = "ln -s"; then
5171 for d in .. ${subdirs} ; do
5172 if test $d != ..; then
5175 for t in stage1 stage2 stage3 stage4 include
5178 $symbolic_link ../$t $t 2>/dev/null
5184 # Avoid having to add intl to our include paths.
5185 if test -f intl/libintl.h; then
5186 echo creating libintl.h
5187 echo '#include "intl/libintl.h"' >libintl.h
5194 target_alias='${target_alias}'
5196 subdirs='${subdirs}'
5197 oldstyle_subdirs='${oldstyle_subdirs}'
5198 symbolic_link='${symbolic_link}'
5199 program_transform_set='${program_transform_set}'
5200 program_transform_name='${program_transform_name}'
5201 dep_host_xmake_file='${dep_host_xmake_file}'
5202 host_xmake_file='${host_xmake_file}'
5203 dep_tmake_file='${dep_tmake_file}'
5204 tmake_file='${tmake_file}'
5205 thread_file='${thread_file}'
5206 gcc_version='${gcc_version}'
5207 gcc_version_trigger='${gcc_version_trigger}'
5208 local_prefix='${local_prefix}'
5209 build_install_headers_dir='${build_install_headers_dir}'
5210 build_exeext='${build_exeext}'
5211 host_exeext='${host_exeext}'
5212 out_file='${out_file}'
5213 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5214 SET_MAKE='${SET_MAKE}'
5215 target_list='${target_list}'
5216 target_overrides='${target_overrides}'
5217 host_overrides='${host_overrides}'
5218 cross_defines='${cross_defines}'
5219 cross_overrides='${cross_overrides}'
5220 build_overrides='${build_overrides}'
5221 cpp_install_dir='${cpp_install_dir}'