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.])
270 # Enable Multibyte Characters for C/C++
271 AC_ARG_ENABLE(c-mbchar,
272 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
273 if test x$enable_c_mbchar != xno; then
274 AC_DEFINE(MULTIBYTE_CHARS, 1,
275 [Define if you want the C and C++ compilers to support multibyte
276 character sets for source code.])
280 # Pass with no value to take the default
281 # Pass with a value to specify a thread package
282 AC_ARG_ENABLE(threads,
283 [ --enable-threads enable thread usage for target GCC.
284 --enable-threads=LIB use LIB thread package for target GCC.],
285 if test x$enable_threads = xno; then
290 enable_threads_flag=$enable_threads
291 # Check if a valid thread package
292 case x${enable_threads_flag} in
295 target_thread_file='single'
299 target_thread_file=''
301 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
302 xsolaris | xwin32 | xdce | xvxworks)
303 target_thread_file=$enable_threads_flag
306 echo "$enable_threads is an unknown thread package" 1>&2
311 AC_ARG_ENABLE(objc-gc,
312 [ --enable-objc-gc enable the use of Boehm's garbage collector with
313 the GNU Objective-C runtime.],
314 if test x$enable_objc_gc = xno; then
322 [ --with-dwarf2 force the default debug format to be DWARF2.],
323 dwarf2="$with_dwarf2",
326 # Determine the host, build, and target systems
329 # Find the native compiler
332 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
333 NO_MINUS_C_MINUS_O=yes
335 AC_SUBST(NO_MINUS_C_MINUS_O)
339 AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
340 ac_cv_prog_cc_no_long_long,
341 [save_CFLAGS="$CFLAGS"
342 CFLAGS="-Wno-long-long"
343 AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
344 ac_cv_prog_cc_no_long_long=no)
345 CFLAGS="$save_CFLAGS"])
347 # If the native compiler is GCC, we can enable warnings even in stage1.
348 # That's useful for people building cross-compilers, or just running a
350 stage1_warn_cflags=" -W -Wall -Wtraditional -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
351 stage2_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
352 if test "x$GCC" = "xyes"; then
353 if test $ac_cv_prog_cc_no_long_long = yes; then
354 stage1_warn_cflags="$stage1_warn_cflags -pedantic -Wno-long-long"
357 stage1_warn_cflags=""
359 AC_SUBST(stage1_warn_cflags)
360 AC_SUBST(stage2_warn_cflags)
364 AC_MSG_CHECKING([whether a default assembler was specified])
365 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
366 if test x"$gas_flag" = x"no"; then
367 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
369 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
375 AC_MSG_CHECKING([whether a default linker was specified])
376 if test x"${DEFAULT_LINKER+set}" = x"set"; then
377 if test x"$gnu_ld_flag" = x"no"; then
378 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
380 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
388 # Find some useful tools
402 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
403 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
404 sys/resource.h sys/param.h sys/times.h sys/stat.h \
407 # Check for thread headers.
408 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
409 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
411 # See if GNAT has been installed
412 AC_CHECK_PROG(gnat, gnatbind, yes, no)
414 # Do we have a single-tree copy of texinfo?
415 if test -f $srcdir/../texinfo/Makefile.in; then
416 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
417 gcc_cv_prog_makeinfo_modern=yes
418 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
420 # See if makeinfo has been installed and is modern enough
421 # that we can use it.
422 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
423 [GNU texinfo.* \([0-9][0-9.]*\)],
424 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
427 if test $gcc_cv_prog_makeinfo_modern = no; then
429 *** Makeinfo is missing or too old.
430 *** Info documentation will not be built or installed.])
434 BUILD_INFO=info AC_SUBST(BUILD_INFO)
435 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
438 # See if the stage1 system preprocessor understands the ANSI C
439 # preprocessor stringification operator.
442 # Use <inttypes.h> only if it exists,
443 # doesn't clash with <sys/types.h>, and declares intmax_t.
444 AC_MSG_CHECKING(for inttypes.h)
445 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
447 [#include <sys/types.h>
448 #include <inttypes.h>],
450 [gcc_cv_header_inttypes_h=yes],
451 gcc_cv_header_inttypes_h=no)])
452 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
453 if test $gcc_cv_header_inttypes_h = yes; then
454 AC_DEFINE(HAVE_INTTYPES_H, 1,
455 [Define if you have a working <inttypes.h> header file.])
459 # Determine if enumerated bitfields are unsigned. ISO C says they can
460 # be either signed or unsigned.
462 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
463 [AC_TRY_RUN(#include <stdlib.h>
464 enum t { BLAH = 128 } ;
465 struct s_t { enum t member : 8; } s ;
469 if (s.member < 0) exit(1);
472 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
473 if test $gcc_cv_enum_bf_unsigned = yes; then
474 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
475 [Define if enumerated bitfields are treated as unsigned values.])
478 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
479 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
480 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
481 fputs_unlocked getrusage valloc)
483 AC_CHECK_TYPE(ssize_t, int)
485 # Try to determine the array type of the second argument of getgroups
486 # for the target system (int or gid_t).
488 if test "${target}" = "${build}"; then
489 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
492 # This condition may need some tweaking. It should include all
493 # targets where the array type of the second argument of getgroups
494 # is int and the type of gid_t is not equivalent to int.
495 *-*-sunos* | *-*-ultrix*)
496 TARGET_GETGROUPS_T=int
499 TARGET_GETGROUPS_T=gid_t
503 AC_SUBST(TARGET_GETGROUPS_T)
505 gcc_AC_FUNC_VFPRINTF_DOPRNT
506 gcc_AC_FUNC_PRINTF_PTR
510 # Under some versions of uwin, vfork is notoriously buggy and the test
511 # can hang configure; on other versions, vfork exists just as a stub.
512 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
513 ac_cv_func_vfork_works=no
517 AC_FUNC_MMAP_ANYWHERE
520 # We will need to find libiberty.h and ansidecl.h
521 saved_CFLAGS="$CFLAGS"
522 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
523 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
524 index rindex getenv atol sbrk abort atof getcwd getwd \
525 strsignal putc_unlocked fputs_unlocked strstr environ \
526 malloc realloc calloc free basename getopt, , ,[
527 #include "gansidecl.h"
528 #include "system.h"])
530 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
531 #include "gansidecl.h"
533 #ifdef HAVE_SYS_RESOURCE_H
534 #include <sys/resource.h>
538 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
539 CFLAGS="$saved_CFLAGS"
541 # mkdir takes a single argument on some systems.
542 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
552 build_install_headers_dir=install-headers-tar
557 host_truncate_target=
560 # Decode the host machine, then the target machine.
561 # For the host machine, we save the xm_file variable as host_xm_file;
562 # then we decode the target machine and forget everything else
563 # that came from the host machine.
564 for machine in $build $host $target; do
578 # Set this to force installation and use of collect2.
580 # Set this to override the default target model.
582 # Set this to control how the header file directory is installed.
583 install_headers_dir=install-headers-tar
584 # Set this to a non-empty list of args to pass to cpp if the target
585 # wants its .md file passed through cpp.
587 # Set this if directory names should be truncated to 14 characters.
589 # Set this if gdb needs a dir command with `dirname $out_file`
590 gdb_needs_out_file_path=
591 # Set this if the build machine requires executables to have a
594 # Set this to control which thread package will be used.
596 # Reinitialize these from the flag values every loop pass, since some
597 # configure entries modify them.
599 gnu_ld="$gnu_ld_flag"
600 enable_threads=$enable_threads_flag
602 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
603 # updated in each machine entry.
605 cpu_type=`echo $machine | sed 's/-.*$//'`
647 tm_file=${cpu_type}/${cpu_type}.h
648 xm_file=${cpu_type}/xm-${cpu_type}.h
649 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
651 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
653 # On a.out targets, we need to use collect2.
660 # Common parts for linux-gnu and openbsd systems
663 xm_defines="HAVE_ATEXIT POSIX BSTRING"
666 tm_file=${cpu_type}/openbsd.h
667 tmake_file="t-libc-ok t-openbsd"
668 # avoid surprises, always provide an xm-openbsd file
669 xm_file=${cpu_type}/xm-openbsd.h
670 # don't depend on processor x-fragments as well
672 if test x$enable_threads = xyes; then
674 tmake_file="${tmake_file} t-openbsd-thread"
680 # Support site-specific machine types.
682 cpu_type=`echo $machine | sed -e 's/-.*//'`
683 rest=`echo $machine | sed -e "s/$cpu_type-//"`
684 xm_file=${cpu_type}/xm-$rest.h
685 tm_file=${cpu_type}/$rest.h
686 if test -f $srcdir/config/${cpu_type}/x-$rest; \
687 then xmake_file=${cpu_type}/x-$rest; \
690 if test -f $srcdir/config/${cpu_type}/t-$rest; \
691 then tmake_file=${cpu_type}/t-$rest; \
697 a29k-*-bsd* | a29k-*-sym1*)
698 tm_file="${tm_file} a29k/unix.h"
700 xmake_file=a29k/x-unix
703 a29k-*-udi | a29k-*-coff)
704 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
705 tmake_file=a29k/t-a29kbare
708 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
709 tmake_file=a29k/t-vx29k
710 extra_parts="crtbegin.o crtend.o"
711 thread_file='vxworks'
713 a29k-*-*) # Default a29k environment.
717 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
719 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
720 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
722 # GAS + IEEE_CONFORMANT
723 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
725 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
726 xmake_file="x-interix alpha/t-pe"
727 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
728 if test x$enable_threads = xyes ; then
731 if test x$stabs = xyes ; then
732 tm_file="${tm_file} dbxcoff.h"
734 #prefix='$$INTERIX_ROOT'/usr/contrib
735 #local_prefix='$$INTERIX_ROOT'/usr/contrib
737 alpha*-*-linux-gnuecoff*)
738 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
739 target_cpu_default="MASK_GAS"
740 tmake_file="alpha/t-alpha alpha/t-ieee"
745 alpha*-*-linux-gnulibc1*)
746 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
747 target_cpu_default="MASK_GAS"
748 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
749 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
752 if test x$enable_threads = xyes; then
757 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
758 target_cpu_default="MASK_GAS"
759 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
760 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
763 if test x$enable_threads = xyes; then
768 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
769 target_cpu_default="MASK_GAS"
770 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
771 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
777 # default x-alpha is only appropriate for dec-osf.
778 target_cpu_default="MASK_GAS"
779 tmake_file="alpha/t-alpha alpha/t-ieee"
783 if test x$stabs = xyes
785 tm_file="${tm_file} dbx.h"
787 if test x$gas != xyes
789 extra_passes="mips-tfile mips-tdump"
792 tmake_file="alpha/t-alpha alpha/t-ieee"
795 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
800 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
803 tm_file="${tm_file} alpha/osf.h"
804 # Some versions of OSF4 (specifically X4.0-9 296.7) have
805 # a broken tar, so we use cpio instead.
806 install_headers_dir=install-headers-cpio
809 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
814 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
816 target_cpu_default=MASK_SUPPORT_ARCH
821 tm_file="${tm_file} dbx.h alpha/vxworks.h"
822 tmake_file="alpha/t-alpha alpha/t-ieee"
825 extra_passes="mips-tfile mips-tdump"
828 thread_file='vxworks'
831 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
832 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
833 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
834 xmake_file=winnt/x-winnt
835 extra_host_objs=oldnames.o
836 extra_gcc_objs="spawnv.o oldnames.o"
837 if test x$gnu_ld != xyes
839 extra_programs=ld.exe
841 if test x$enable_threads = xyes; then
847 xm_file="${xm_file} alpha/xm-vms.h"
848 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
851 extra_parts="crtinit.o crtfini.o"
853 arm-*-coff* | armel-*-coff*)
855 tmake_file=arm/t-arm-coff
859 tmake_file=arm/t-arm-coff
860 thread_file='vxworks'
863 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
865 tm_file=arm/riscix1-1.h
868 arm-*-riscix*) # Acorn RISC machine
871 tm_file=arm/rix-gas.h
875 xmake_file=arm/x-riscix
876 tmake_file=arm/t-riscix
879 arm-semi-aout | armel-semi-aout)
881 tmake_file=arm/t-semi
883 arm-semi-aof | armel-semi-aof)
884 tm_file=arm/semiaof.h
885 tmake_file=arm/t-semiaof
889 tmake_file="t-netbsd arm/t-netbsd"
892 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
895 tm_file=arm/linux-aout.h
896 tmake_file=arm/t-linux
899 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
900 xm_file=arm/xm-linux.h
902 tm_file="arm/linux-oldld.h arm/linux-elf.h"
905 tm_file="arm/linux-elf26.h $tm_file"
908 tmake_file="t-linux arm/t-linux"
909 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
911 case x${enable_threads} in
912 x | xyes | xpthreads | xposix)
917 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
918 xm_file=arm/xm-linux.h
920 tm_file="arm/linux-elf.h"
923 tm_file="arm/linux-elf26.h $tm_file"
926 tmake_file="t-linux arm/t-linux"
927 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
929 case x${enable_threads} in
930 x | xyes | xpthreads | xposix)
935 arm*-*-uclinux*) # ARM ucLinux
936 tm_file=arm/uclinux-elf.h
937 tmake_file=arm/t-arm-elf
941 tmake_file=arm/t-arm-aout
944 tm_file=arm/ecos-elf.h
945 tmake_file=arm/t-arm-elf
948 tm_file=arm/unknown-elf.h
949 tmake_file=arm/t-arm-elf
952 tm_file=arm/conix-elf.h
953 tmake_file=arm/t-arm-elf
956 tm_file=arm/unknown-elf-oabi.h
957 tmake_file=arm/t-arm-elf
966 c1-convex-*) # Convex C1
970 c2-convex-*) # Convex C2
983 target_cpu_default=16
990 clipper-intergraph-clix*)
991 tm_file="${tm_file} svr3.h clipper/clix.h"
992 xm_file=clipper/xm-clix.h
993 xmake_file=clipper/x-clix
994 extra_headers=va-clipper.h
995 extra_parts="crtbegin.o crtend.o"
996 install_headers_dir=install-headers-cpio
1007 tm_file="fr30/fr30.h"
1008 tmake_file=fr30/t-fr30
1009 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1011 # This hasn't been upgraded to GCC 2.
1012 # fx80-alliant-*) # Alliant FX/80
1018 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1019 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1020 tmake_file="t-linux pa/t-linux"
1021 extra_parts="crtbegin.o crtend.o"
1024 if test x$enable_threads = xyes; then
1029 target_cpu_default="MASK_PA_11"
1030 tmake_file=pa/t-openbsd
1033 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1034 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1035 xm_file=pa/xm-papro.h
1039 target_cpu_default="MASK_PA_11"
1040 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1044 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1045 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1046 xm_file=pa/xm-papro.h
1050 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1054 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1055 target_cpu_default="MASK_PA_11"
1059 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1063 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1064 xm_file=pa/xm-pahpux.h
1065 xmake_file=pa/x-pa-hpux
1066 if test x$gas = xyes
1068 tm_file="${tm_file} pa/gas.h"
1070 install_headers_dir=install-headers-cpio
1074 hppa1.0-*-hpux8.0[0-2]*)
1076 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1077 xm_file=pa/xm-pahpux.h
1078 xmake_file=pa/x-pa-hpux
1079 if test x$gas = xyes
1081 tm_file="${tm_file} pa/pa-gas.h"
1083 tm_file="pa/pa-oldas.h ${tm_file}"
1085 install_headers_dir=install-headers-cpio
1089 hppa1.1-*-hpux8.0[0-2]*)
1091 target_cpu_default="MASK_PA_11"
1092 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1093 xm_file=pa/xm-pahpux.h
1094 xmake_file=pa/x-pa-hpux
1095 if test x$gas = xyes
1097 tm_file="${tm_file} pa/pa-gas.h"
1099 tm_file="pa/pa-oldas.h ${tm_file}"
1101 install_headers_dir=install-headers-cpio
1105 target_cpu_default="MASK_PA_11"
1106 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1107 xm_file=pa/xm-pahpux.h
1108 xmake_file=pa/x-pa-hpux
1109 if test x$gas = xyes
1111 tm_file="${tm_file} pa/pa-gas.h"
1113 install_headers_dir=install-headers-cpio
1117 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1118 xm_file=pa/xm-pahpux.h
1119 xmake_file=pa/x-pa-hpux
1120 if test x$gas = xyes
1122 tm_file="${tm_file} pa/pa-gas.h"
1124 install_headers_dir=install-headers-cpio
1127 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1128 target_cpu_default="MASK_PA_11"
1129 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1131 xm_file=pa/xm-pahpux.h
1132 xmake_file=pa/x-pa-hpux
1134 if test x$gas = xyes
1136 tm_file="${tm_file} pa/pa-gas.h"
1138 if test x$enable_threads = x; then
1139 enable_threads=$have_pthread_h
1141 case x${enable_threads} in
1143 tmake_file="${tmake_file} pa/t-dce-thr"
1146 install_headers_dir=install-headers-cpio
1150 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1152 xm_file=pa/xm-pahpux.h
1153 xmake_file=pa/x-pa-hpux
1155 if test x$gas = xyes
1157 tm_file="${tm_file} pa/pa-gas.h"
1159 if test x$enable_threads = x; then
1160 enable_threads=$have_pthread_h
1162 case x${enable_threads} in
1164 tmake_file="${tmake_file} pa/t-dce-thr"
1167 install_headers_dir=install-headers-cpio
1171 target_cpu_default="MASK_PA_11"
1172 xm_file=pa/xm-pa64hpux.h
1173 xmake_file=pa/x-pa-hpux
1175 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"
1177 tmake_file=pa/t-pa64
1178 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1180 if [[ x$gas = xyes ]]
1182 tm_file="${tm_file} pa/pa-gas.h"
1184 # if [[ x$enable_threads = x ]]; then
1185 # enable_threads=$have_pthread_h
1187 # if [[ x$enable_threads = xyes ]]; then
1189 # tmake_file="${tmake_file} pa/t-dce-thr"
1191 install_headers_dir=install-headers-cpio
1194 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1195 target_cpu_default="MASK_PA_11"
1196 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1198 xm_file=pa/xm-pahpux.h
1199 xmake_file=pa/x-pa-hpux
1201 if test x$gas = xyes
1203 tm_file="${tm_file} pa/pa-gas.h"
1205 # if test x$enable_threads = x; then
1206 # enable_threads=$have_pthread_h
1208 # if test x$enable_threads = xyes; then
1210 # tmake_file="${tmake_file} pa/t-dce-thr"
1212 install_headers_dir=install-headers-cpio
1216 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1218 xm_file=pa/xm-pahpux.h
1219 xmake_file=pa/x-pa-hpux
1220 if test x$gas = xyes
1222 tm_file="${tm_file} pa/pa-gas.h"
1224 # if test x$enable_threads = x; then
1225 # enable_threads=$have_pthread_h
1227 # if test x$enable_threads = xyes; then
1229 # tmake_file="${tmake_file} pa/t-dce-thr"
1231 install_headers_dir=install-headers-cpio
1234 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1235 target_cpu_default="MASK_PA_11"
1236 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1237 xm_file=pa/xm-pahpux.h
1238 xmake_file=pa/x-pa-hpux
1239 if test x$gas = xyes
1241 tm_file="${tm_file} pa/pa-gas.h"
1243 install_headers_dir=install-headers-cpio
1247 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1248 xm_file=pa/xm-pahpux.h
1249 xmake_file=pa/x-pa-hpux
1250 if test x$gas = xyes
1252 tm_file="${tm_file} pa/pa-gas.h"
1254 install_headers_dir=install-headers-cpio
1257 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1258 target_cpu_default="MASK_PA_11"
1259 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1260 xm_file=pa/xm-pahpux.h
1261 xmake_file=pa/x-pa-hpux
1262 if test x$gas = xyes
1264 tm_file="${tm_file} pa/pa-gas.h"
1266 install_headers_dir=install-headers-cpio
1270 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1271 xm_file=pa/xm-pahpux.h
1272 xmake_file=pa/x-pa-hpux
1273 if test x$gas = xyes
1275 tm_file="${tm_file} pa/pa-gas.h"
1277 install_headers_dir=install-headers-cpio
1281 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1282 target_cpu_default="MASK_PA_11"
1286 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1287 xm_file=pa/xm-pampeix.h
1288 xmake_file=pa/x-pa-mpeix
1289 echo "You must use gas. Assuming it is already installed."
1290 install_headers_dir=install-headers-tar
1293 i370-*-opened*) # IBM 360/370/390 Architecture
1294 xm_file=i370/xm-oe.h
1296 xmake_file=i370/x-oe
1297 tmake_file=i370/t-oe
1300 xm_file=i370/xm-mvs.h
1302 tmake_file=i370/t-mvs
1305 xm_file="xm-linux.h i370/xm-linux.h"
1307 tm_file="i370/linux.h ${tm_file}"
1308 tmake_file="t-linux i370/t-linux"
1309 # broken_install=yes
1310 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1311 # extra_parts="crtbegin.o crtend.o"
1315 if test x$enable_threads = xyes; then
1322 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1323 tm_file=i386/i386elf.h
1324 tmake_file=i386/t-i386elf
1328 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1330 if test x$gas = xyes
1332 tm_file=i386/aix386.h
1333 extra_parts="crtbegin.o crtend.o"
1334 tmake_file=i386/t-crtstuff
1336 tm_file=i386/aix386ng.h
1339 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1341 xmake_file=i386/x-aix
1344 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1346 xm_file="xm-alloca.h ${xm_file}"
1347 xm_defines="USG POSIX SMALL_ARG_MAX"
1348 xmake_file=i386/x-ncr3000
1349 if test x$stabs = xyes -a x$gas = xyes
1351 tm_file=i386/sysv4gdb.h
1353 tm_file=i386/sysv4.h
1355 extra_parts="crtbegin.o crtend.o"
1356 tmake_file=i386/t-crtpic
1362 xm_file=i386/xm-next.h
1363 tmake_file=i386/t-next
1364 xmake_file=i386/x-next
1365 extra_objs=nextstep.o
1366 extra_parts="crtbegin.o crtend.o"
1367 if test x$enable_threads = xyes; then
1372 i[34567]86-sequent-bsd*) # 80386 from Sequent
1375 if test x$gas = xyes
1377 tm_file=i386/seq-gas.h
1379 tm_file=i386/sequent.h
1383 i[34567]86-sequent-ptx1*)
1385 xm_defines="USG SVR3"
1386 xmake_file=i386/x-sysv3
1387 tm_file=i386/seq-sysv3.h
1388 tmake_file=i386/t-crtstuff
1389 extra_parts="crtbegin.o crtend.o"
1390 install_headers_dir=install-headers-cpio
1393 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1395 xm_defines="USG SVR3"
1396 xmake_file=i386/x-sysv3
1397 tm_file=i386/seq2-sysv3.h
1398 tmake_file=i386/t-crtstuff
1399 extra_parts="crtbegin.o crtend.o"
1400 install_headers_dir=install-headers-cpio
1403 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1405 xm_file="xm-alloca.h ${xm_file}"
1406 xm_defines="USG POSIX SMALL_ARG_MAX"
1408 tm_file=i386/ptx4-i.h
1410 extra_parts="crtbegin.o crtend.o"
1411 install_headers_dir=install-headers-cpio
1413 i386-sun-sunos*) # Sun i386 roadrunner
1419 i[34567]86-wrs-vxworks*)
1421 tm_file=i386/vxi386.h
1422 tmake_file=i386/t-i386bare
1423 thread_file='vxworks'
1428 tm_file=i386/i386-aout.h
1429 tmake_file=i386/t-i386bare
1432 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1434 xm_file=i386/xm-beos.h
1435 tmake_file='i386/t-beos i386/t-crtpic'
1436 tm_file=i386/beos-elf.h
1437 xmake_file=i386/x-beos
1438 extra_parts='crtbegin.o crtend.o'
1441 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1443 tm_file=i386/bsd386.h
1444 # tmake_file=t-libc-ok
1449 tm_file=i386/386bsd.h
1450 # tmake_file=t-libc-ok
1451 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1455 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1457 tm_file="i386/freebsd.h i386/perform.h"
1458 tmake_file=t-freebsd
1461 i[34567]86-*-freebsd*)
1463 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1464 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1465 tmake_file=t-freebsd
1469 case x${enable_threads} in
1470 xyes | xpthreads | xposix)
1472 tmake_file="${tmake_file} t-freebsd-thread"
1477 i[34567]86-*-netbsd*)
1479 tm_file=i386/netbsd.h
1484 i[34567]86-*-openbsd*)
1486 # we need collect2 until our bug is fixed...
1492 tm_file=i386/i386-coff.h
1493 tmake_file=i386/t-i386bare
1496 i[34567]86-*-isc*) # 80386 running ISC system
1498 xm_file="${xm_file} i386/xm-isc.h"
1499 xm_defines="USG SVR3"
1502 i[34567]86-*-isc[34]*)
1504 xmake_file=i386/x-isc3
1507 xmake_file=i386/x-isc
1510 if test x$gas = xyes -a x$stabs = xyes
1512 tm_file=i386/iscdbx.h
1513 tmake_file=i386/t-svr3dbx
1514 extra_parts="svr3.ifile svr3z.ifile"
1516 tm_file=i386/isccoff.h
1517 tmake_file=i386/t-crtstuff
1518 extra_parts="crtbegin.o crtend.o"
1520 tmake_file="$tmake_file i386/t-i386bare"
1521 install_headers_dir=install-headers-cpio
1524 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1525 changequote([,])dnl # with a.out format using
1527 xmake_file=x-linux-aout
1528 tmake_file="t-linux-aout i386/t-crtstuff"
1529 tm_file=i386/linux-oldld.h
1534 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1535 changequote([,])dnl # with a.out format
1536 xmake_file=x-linux-aout
1537 tmake_file="t-linux-aout i386/t-crtstuff"
1538 tm_file=i386/linux-aout.h
1543 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1544 changequote([,])dnl # with ELF format using the
1545 # GNU/Linux C library 5
1547 tm_file=i386/linux.h
1548 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1549 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1552 if test x$enable_threads = xyes; then
1553 thread_file='single'
1557 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1558 changequote([,])dnl # with ELF format using glibc 2
1559 # aka GNU/Linux C library 6
1561 tm_file=i386/linux.h
1562 tmake_file="t-linux i386/t-crtstuff"
1563 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1566 if test x$enable_threads = xyes; then
1576 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1578 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1582 i[34567]86-pc-msdosdjgpp*)
1584 xm_file=i386/xm-djgpp.h
1585 tm_file=i386/djgpp.h
1586 tmake_file=i386/t-djgpp
1587 xmake_file=i386/x-djgpp
1592 case $host in *pc-msdosdjgpp*)
1598 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1601 tmake_file=t-libc-ok
1606 i[34567]86-*-lynxos*)
1608 if test x$gas = xyes
1612 tm_file=i386/lynx-ng.h
1614 xm_file=i386/xm-lynx.h
1615 tmake_file=i386/t-i386bare
1622 # tmake_file=t-libc-ok
1626 i[34567]86-*-osfrose*) # 386 using OSF/rose
1628 if test x$elf = xyes
1630 tm_file=i386/osfelf.h
1633 tm_file=i386/osfrose.h
1636 xm_file="i386/xm-osf.h ${xm_file}"
1637 xmake_file=i386/x-osfrose
1638 tmake_file=i386/t-osf
1639 extra_objs=halfpic.o
1642 i[34567]86-go32-rtems*)
1645 xm_file=i386/xm-go32.h
1646 tm_file=i386/go32-rtems.h
1647 tmake_file="i386/t-go32 t-rtems"
1650 i[34567]86-*-rtemscoff*)
1653 tm_file=i386/rtems.h
1654 tmake_file="i386/t-i386bare t-rtems"
1657 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1660 tm_file=i386/rtemself.h
1661 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1662 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1665 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1667 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1668 xm_defines="USG SVR3"
1669 xmake_file=i386/x-sco5
1670 install_headers_dir=install-headers-cpio
1672 if test x$gas = xyes
1674 tm_file="i386/sco5gas.h ${tm_file}"
1675 tmake_file=i386/t-sco5gas
1677 tmake_file=i386/t-sco5
1679 tmake_file="$tmake_file i386/t-i386bare"
1680 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1683 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1685 xm_file="${xm_file} i386/xm-sco.h"
1686 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1687 xmake_file=i386/x-sco4
1688 install_headers_dir=install-headers-cpio
1689 if test x$stabs = xyes
1691 tm_file=i386/sco4dbx.h
1692 tmake_file=i386/t-svr3dbx
1693 extra_parts="svr3.ifile svr3z.rfile"
1696 tmake_file=i386/t-crtstuff
1697 extra_parts="crtbegin.o crtend.o"
1699 tmake_file="$tmake_file i386/t-i386bare"
1700 # The default EAFS filesystem supports long file names.
1701 # Truncating the target makes $host != $target which
1702 # makes gcc think it is doing a cross-compile.
1703 # truncate_target=yes
1706 i[34567]86-*-sco*) # 80386 running SCO system
1708 xm_file=i386/xm-sco.h
1709 xmake_file=i386/x-sco
1710 install_headers_dir=install-headers-cpio
1711 if test x$stabs = xyes
1713 tm_file=i386/scodbx.h
1714 tmake_file=i386/t-svr3dbx
1715 extra_parts="svr3.ifile svr3z.rfile"
1718 extra_parts="crtbegin.o crtend.o"
1719 tmake_file=i386/t-crtstuff
1721 tmake_file="$tmake_file i386/t-i386bare"
1725 i[34567]86-*-solaris2*)
1727 xm_file="xm-alloca.h ${xm_file}"
1728 xm_defines="USG POSIX SMALL_ARG_MAX"
1730 if test x$gas = xyes; then
1731 # Only needed if gas does not support -s
1732 tm_file="i386/sol2gas.h ${tm_file}"
1734 tmake_file="i386/t-i386bare i386/t-sol2"
1735 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1737 if test x${enable_threads} = x; then
1738 enable_threads=$have_pthread_h
1739 if test x${enable_threads} = x; then
1740 enable_threads=$have_thread_h
1743 if test x${enable_threads} = xyes; then
1744 if test x${have_pthread_h} = xyes; then
1747 thread_file='solaris'
1752 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1754 xm_file="xm-alloca.h ${xm_file}"
1755 xm_defines="USG POSIX"
1756 tm_file=i386/sysv5.h
1757 if test x$stabs = xyes
1759 tm_file="${tm_file} dbx.h"
1761 tmake_file="i386/t-i386bare i386/t-crtpic"
1763 extra_parts="crtbegin.o crtend.o"
1764 if test x$enable_threads = xyes; then
1769 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1771 xm_file="xm-alloca.h ${xm_file}"
1772 xm_defines="USG POSIX SMALL_ARG_MAX"
1773 tm_file=i386/sysv4.h
1774 if test x$stabs = xyes
1776 tm_file="${tm_file} dbx.h"
1778 tmake_file="i386/t-i386bare i386/t-crtpic"
1780 extra_parts="crtbegin.o crtend.o"
1783 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1785 xm_file="xm-alloca.h ${xm_file}"
1786 xm_defines="USG POSIX"
1788 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1790 extra_parts="crtbegin.o crtend.o"
1791 install_headers_dir=install-headers-cpio
1794 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1797 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1798 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1799 if test x$stabs = xyes
1801 tm_file=i386/osf1elfgdb.h
1803 tm_file=i386/osf1elf.h
1805 tmake_file=i386/t-osf1elf
1806 xmake_file=i386/x-osf1elf
1807 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1810 i[34567]86-*-sysv*) # Intel 80386's running system V
1812 xm_defines="USG SVR3"
1813 xmake_file=i386/x-sysv3
1814 if test x$gas = xyes
1816 if test x$stabs = xyes
1818 tm_file=i386/svr3dbx.h
1819 tmake_file=i386/t-svr3dbx
1820 extra_parts="svr3.ifile svr3z.rfile"
1822 tm_file=i386/svr3gas.h
1823 extra_parts="crtbegin.o crtend.o"
1824 tmake_file=i386/t-crtstuff
1827 tm_file=i386/sysv3.h
1828 extra_parts="crtbegin.o crtend.o"
1829 tmake_file=i386/t-crtstuff
1831 tmake_file="$tmake_file i386/t-crtpic"
1833 i386-*-vsta) # Intel 80386's running VSTa kernel
1834 xm_file="${xm_file} i386/xm-vsta.h"
1836 tmake_file=i386/t-vsta
1837 xmake_file=i386/x-vsta
1842 xm_file="${xm_file} i386/xm-cygwin.h"
1843 tmake_file=i386/t-cygwin
1844 tm_file=i386/win32.h
1845 xmake_file=i386/x-cygwin
1847 if test x$enable_threads = xyes; then
1853 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1855 xm_file="${xm_file} i386/xm-cygwin.h"
1856 tmake_file=i386/t-cygwin
1857 tm_file=i386/cygwin.h
1858 xmake_file=i386/x-cygwin
1860 if test x$enable_threads = xyes; then
1866 i[34567]86-*-mingw32*)
1868 tm_file=i386/mingw32.h
1869 xm_file="${xm_file} i386/xm-mingw32.h"
1870 tmake_file="i386/t-cygwin i386/t-mingw32"
1872 xmake_file=i386/x-cygwin
1873 if test x$enable_threads = xyes; then
1880 *minwg32crt* | *mingw32*)
1881 tm_file="${tm_file} i386/crtdll.h"
1889 xm_file="${xm_file} i386/xm-uwin.h"
1890 xm_defines="USG NO_STAB_H"
1891 tmake_file="i386/t-cygwin i386/t-uwin"
1893 xmake_file=i386/x-cygwin
1894 if test x$enable_threads = xyes; then
1900 i[34567]86-*-interix*)
1902 tm_file="i386/i386-interix.h interix.h"
1903 xm_file="i386/xm-i386-interix.h xm-interix.h"
1905 tmake_file="i386/t-interix"
1906 extra_objs=interix.o
1907 xmake_file=x-interix
1908 if test x$enable_threads = xyes ; then
1911 if test x$stabs = xyes ; then
1912 tm_file="${tm_file} dbxcoff.h"
1916 i[34567]86-*-winnt3*)
1918 tm_file=i386/win-nt.h
1919 out_file=i386/i386.c
1920 xm_file="xm-winnt.h ${xm_file}"
1921 xmake_file=winnt/x-winnt
1922 tmake_file=i386/t-winnt
1923 extra_host_objs="winnt.o oldnames.o"
1924 extra_gcc_objs="spawnv.o oldnames.o"
1925 if test x$gnu_ld != xyes
1927 extra_programs=ld.exe
1929 if test x$enable_threads = xyes; then
1934 i[34567]86-dg-dgux*)
1936 xm_file="xm-alloca.h ${xm_file}"
1937 xm_defines="USG POSIX"
1938 out_file=i386/dgux.c
1940 tmake_file=i386/t-dgux
1941 xmake_file=i386/x-dgux
1942 install_headers_dir=install-headers-cpio
1944 i860-alliant-*) # Alliant FX/2800
1945 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1946 xm_file="${xm_file}"
1947 xmake_file=i860/x-fx2800
1948 tmake_file=i860/t-fx2800
1949 extra_parts="crtbegin.o crtend.o"
1952 tm_file="${tm_file} i860/bsd.h"
1953 if test x$gas = xyes
1955 tm_file="${tm_file} i860/bsd-gas.h"
1960 tm_file="${tm_file} i860/mach.h"
1961 tmake_file=t-libc-ok
1963 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1964 tm_file="${tm_file} svr3.h i860/paragon.h"
1965 xm_defines="USG SVR3"
1969 tm_file="${tm_file} svr3.h i860/sysv3.h"
1970 xm_defines="USG SVR3"
1971 xmake_file=i860/x-sysv3
1972 extra_parts="crtbegin.o crtend.o"
1975 tm_file="${tm_file} svr4.h i860/sysv4.h"
1976 xm_defines="USG SVR3"
1977 xmake_file=i860/x-sysv4
1979 extra_parts="crtbegin.o crtend.o"
1981 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1982 tm_file="${tm_file} i960/vx960.h"
1983 tmake_file=i960/t-vxworks960
1985 thread_file='vxworks'
1987 i960-wrs-vxworks5* | i960-wrs-vxworks)
1988 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1989 tmake_file=i960/t-vxworks960
1991 thread_file='vxworks'
1994 tm_file="${tm_file} i960/vx960.h"
1995 tmake_file=i960/t-vxworks960
1997 thread_file='vxworks'
2000 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2001 tmake_file=i960/t-960bare
2005 tmake_file="i960/t-960bare t-rtems"
2006 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2009 i960-*-*) # Default i960 environment.
2014 tmake_file="ia64/t-ia64"
2015 target_cpu_default="0"
2016 if test x$gas = xyes
2018 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2020 if test x$gnu_ld = xyes
2022 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2026 tm_file=ia64/linux.h
2027 tmake_file="t-linux ia64/t-ia64"
2028 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2029 if test x$enable_threads = xyes; then
2034 extra_parts="crtinit.o crtfini.o"
2036 m68000-convergent-sysv*)
2038 xm_file="m68k/xm-3b1.h ${xm_file}"
2041 extra_headers=math-68881.h
2043 m68000-hp-bsd*) # HP 9000/200 running BSD
2044 tm_file=m68k/hp2bsd.h
2045 xmake_file=m68k/x-hp2bsd
2047 extra_headers=math-68881.h
2049 m68000-hp-hpux*) # HP 9000 series 300
2050 xm_file="xm-alloca.h ${xm_file}"
2052 if test x$gas = xyes
2054 xmake_file=m68k/x-hp320g
2055 tm_file=m68k/hp310g.h
2057 xmake_file=m68k/x-hp320
2058 tm_file=m68k/hp310.h
2060 install_headers_dir=install-headers-cpio
2062 extra_headers=math-68881.h
2067 extra_headers=math-68881.h
2070 tm_file=m68k/sun2o4.h
2072 extra_headers=math-68881.h
2075 xm_file="m68k/xm-3b1.h ${xm_file}"
2077 if test x$gas = xyes
2084 extra_headers=math-68881.h
2086 m68k-apple-aux*) # Apple Macintosh running A/UX
2087 xm_defines="USG AUX"
2088 tmake_file=m68k/t-aux
2089 install_headers_dir=install-headers-cpio
2090 extra_headers=math-68881.h
2091 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2093 if test "$gnu_ld" = yes
2095 tm_file="${tm_file} m68k/auxgld.h"
2097 tm_file="${tm_file} m68k/auxld.h"
2099 if test "$gas" = yes
2101 tm_file="${tm_file} m68k/auxgas.h"
2103 tm_file="${tm_file} m68k/auxas.h"
2105 tm_file="${tm_file} m68k/a-ux.h"
2109 tm_file=m68k/apollo68.h
2110 xmake_file=m68k/x-apollo68
2112 extra_headers=math-68881.h
2115 m68k-altos-sysv*) # Altos 3068
2116 if test x$gas = xyes
2118 tm_file=m68k/altos3068.h
2121 echo "The Altos is supported only with the GNU assembler" 1>&2
2124 extra_headers=math-68881.h
2126 m68k-bull-sysv*) # Bull DPX/2
2127 if test x$gas = xyes
2129 if test x$stabs = xyes
2131 tm_file=m68k/dpx2cdbx.h
2133 tm_file=m68k/dpx2g.h
2138 xm_file="xm-alloca.h ${xm_file}"
2140 xmake_file=m68k/x-dpx2
2142 extra_headers=math-68881.h
2144 m68k-atari-sysv4*) # Atari variant of V.4.
2145 tm_file=m68k/atari.h
2146 xm_file="xm-alloca.h ${xm_file}"
2147 xm_defines="USG FULL_PROTOTYPES"
2149 extra_parts="crtbegin.o crtend.o"
2150 extra_headers=math-68881.h
2153 m68k-motorola-sysv*)
2154 tm_file=m68k/mot3300.h
2155 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2156 if test x$gas = xyes
2158 xmake_file=m68k/x-mot3300-gas
2159 if test x$gnu_ld = xyes
2161 tmake_file=m68k/t-mot3300-gald
2163 tmake_file=m68k/t-mot3300-gas
2167 xmake_file=m68k/x-mot3300
2168 if test x$gnu_ld = xyes
2170 tmake_file=m68k/t-mot3300-gld
2172 tmake_file=m68k/t-mot3300
2176 gdb_needs_out_file_path=yes
2177 extra_parts="crt0.o mcrt0.o"
2178 extra_headers=math-68881.h
2181 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2182 tm_file=m68k/tower-as.h
2183 xm_defines="USG SVR3"
2184 xmake_file=m68k/x-tower
2185 extra_parts="crtbegin.o crtend.o"
2186 extra_headers=math-68881.h
2189 tm_file=m68k/plexus.h
2190 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2193 extra_headers=math-68881.h
2197 xm_file="xm-alloca.h ${xm_file}"
2199 extra_headers=math-68881.h
2202 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2203 xm_defines="USG unos"
2204 xmake_file=m68k/x-crds
2207 extra_headers=math-68881.h
2209 m68k-cbm-sysv4*) # Commodore variant of V.4.
2211 xm_file="xm-alloca.h ${xm_file}"
2212 xm_defines="USG FULL_PROTOTYPES"
2213 xmake_file=m68k/x-amix
2215 extra_parts="crtbegin.o crtend.o"
2216 extra_headers=math-68881.h
2220 tm_file=m68k/ccur-GAS.h
2221 xmake_file=m68k/x-ccur
2222 extra_headers=math-68881.h
2226 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2227 tm_file=m68k/hp3bsd44.h
2228 xmake_file=m68k/x-hp3bsd44
2230 extra_headers=math-68881.h
2233 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2234 tm_file=m68k/hp3bsd.h
2236 extra_headers=math-68881.h
2240 if test x$with_fp = xno
2242 tm_file=m68k/isi-nfp.h
2248 extra_headers=math-68881.h
2250 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2251 xm_file="xm-alloca.h ${xm_file}"
2253 if test x$gas = xyes
2255 xmake_file=m68k/x-hp320g
2256 tm_file=m68k/hp320g.h
2258 xmake_file=m68k/x-hp320
2259 tm_file=m68k/hpux7.h
2261 install_headers_dir=install-headers-cpio
2263 extra_headers=math-68881.h
2266 m68k-hp-hpux*) # HP 9000 series 300
2267 xm_file="xm-alloca.h ${xm_file}"
2269 if test x$gas = xyes
2271 xmake_file=m68k/x-hp320g
2272 tm_file=m68k/hp320g.h
2274 xmake_file=m68k/x-hp320
2275 tm_file=m68k/hp320.h
2277 install_headers_dir=install-headers-cpio
2279 extra_headers=math-68881.h
2283 tm_file=m68k/sun3mach.h
2285 extra_headers=math-68881.h
2289 if test x$gas = xyes
2291 tm_file=m68k/news3gas.h
2293 tm_file=m68k/news3.h
2296 extra_headers=math-68881.h
2299 m68k-sony-bsd* | m68k-sony-newsos*)
2300 if test x$gas = xyes
2302 tm_file=m68k/newsgas.h
2307 extra_headers=math-68881.h
2310 m68k-next-nextstep2*)
2311 tm_file=m68k/next21.h
2312 xm_file="m68k/xm-next.h ${xm_file}"
2313 tmake_file=m68k/t-next
2314 xmake_file=m68k/x-next
2315 extra_objs=nextstep.o
2316 extra_headers=math-68881.h
2321 m68k-next-nextstep[34]*)
2324 xm_file="m68k/xm-next.h ${xm_file}"
2325 tmake_file=m68k/t-next
2326 xmake_file=m68k/x-next
2327 extra_objs=nextstep.o
2328 extra_parts="crtbegin.o crtend.o"
2329 extra_headers=math-68881.h
2331 if test x$enable_threads = xyes; then
2336 if test x$with_fp = xno
2338 tm_file=m68k/sun3n3.h
2340 tm_file=m68k/sun3o3.h
2344 extra_headers=math-68881.h
2346 m68k-sun-sunos*) # For SunOS 4 (the default).
2347 if test x$with_fp = xno
2349 tm_file=m68k/sun3n.h
2355 extra_headers=math-68881.h
2358 tm_file=m68k/vxm68k.h
2359 tmake_file=m68k/t-vxworks68
2360 extra_headers=math-68881.h
2361 thread_file='vxworks'
2365 tmake_file=m68k/t-m68kbare
2366 tm_file="m68k/m68k-aout.h libgloss.h"
2367 extra_headers=math-68881.h
2371 tmake_file=m68k/t-m68kbare
2372 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2373 extra_headers=math-68881.h
2376 m68020-*-elf* | m68k-*-elf*)
2377 tm_file="m68k/m68020-elf.h"
2378 xm_file=m68k/xm-m68kv.h
2379 tmake_file=m68k/t-m68kelf
2380 header_files=math-68881.h
2383 if test x$gas = xyes
2387 tm_file=m68k/lynx-ng.h
2389 xm_file=m68k/xm-lynx.h
2391 tmake_file=m68k/t-lynx
2392 extra_headers=math-68881.h
2396 tm_file=m68k/netbsd.h
2403 # we need collect2 until our bug is fixed...
2406 m68k-*-sysv3*) # Motorola m68k's running system V.3
2407 xm_file="xm-alloca.h ${xm_file}"
2409 xmake_file=m68k/x-m68kv
2410 extra_parts="crtbegin.o crtend.o"
2411 extra_headers=math-68881.h
2414 m68k-*-sysv4*) # Motorola m68k's running system V.4
2415 tm_file=m68k/m68kv4.h
2416 xm_file="xm-alloca.h ${xm_file}"
2419 extra_parts="crtbegin.o crtend.o"
2420 extra_headers=math-68881.h
2423 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2426 tm_file=m68k/linux-aout.h
2427 tmake_file="t-linux-aout m68k/t-linux-aout"
2428 extra_headers=math-68881.h
2432 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2433 # with ELF format using the
2434 # GNU/Linux C library 5
2436 tm_file=m68k/linux.h
2437 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2438 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2439 extra_headers=math-68881.h
2443 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2444 # with ELF format using glibc 2
2445 # aka the GNU/Linux C library 6.
2447 tm_file=m68k/linux.h
2448 tmake_file="t-linux m68k/t-linux"
2449 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2450 extra_headers=math-68881.h
2453 if test x$enable_threads = xyes; then
2458 tmake_file=m68k/t-m68kbare
2459 tm_file=m68k/m68k-psos.h
2460 extra_headers=math-68881.h
2464 tmake_file="m68k/t-m68kbare t-rtems"
2465 tm_file=m68k/rtems.h
2466 extra_headers=math-68881.h
2469 m68k-*-rtemself*|m68k-*-rtems*)
2470 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2471 tm_file=m68k/rtemself.h
2472 extra_headers=math-68881.h
2478 tm_file=m88k/dguxbcs.h
2479 tmake_file=m88k/t-dguxbcs
2483 tmake_file=m88k/t-dgux
2486 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2487 xmake_file=m88k/x-dgux
2488 if test x$gas = xyes
2490 tmake_file=m88k/t-dgux-gas
2493 m88k-dolphin-sysv3*)
2494 tm_file=m88k/dolph.h
2495 extra_parts="crtbegin.o crtend.o"
2496 xm_file="m88k/xm-sysv3.h ${xm_file}"
2497 xmake_file=m88k/x-dolph
2498 if test x$gas = xyes
2500 tmake_file=m88k/t-m88k-gas
2503 m88k-tektronix-sysv3)
2504 tm_file=m88k/tekXD88.h
2505 extra_parts="crtbegin.o crtend.o"
2506 xm_file="m88k/xm-sysv3.h ${xm_file}"
2507 xmake_file=m88k/x-tekXD88
2508 if test x$gas = xyes
2510 tmake_file=m88k/t-m88k-gas
2514 tm_file=m88k/m88k-aout.h
2517 tm_file=m88k/m88k-coff.h
2518 tmake_file=m88k/t-bug
2522 extra_parts="crtbegin.o crtend.o"
2523 if test x$gas = xyes
2525 tmake_file=m88k/t-luna-gas
2527 tmake_file=m88k/t-luna
2531 tmake_file="${tmake_file} m88k/t-luna-gas"
2532 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2533 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2536 tm_file=m88k/sysv3.h
2537 extra_parts="crtbegin.o crtend.o"
2538 xm_file="m88k/xm-sysv3.h ${xm_file}"
2539 xmake_file=m88k/x-sysv3
2540 if test x$gas = xyes
2542 tmake_file=m88k/t-m88k-gas
2546 tm_file=m88k/sysv4.h
2547 extra_parts="crtbegin.o crtend.o"
2548 xmake_file=m88k/x-sysv4
2549 tmake_file=m88k/t-sysv4
2552 tm_file=mcore/mcore-elf.h
2553 tmake_file=mcore/t-mcore
2556 tm_file=mcore/mcore-pe.h
2557 tmake_file=mcore/t-mcore-pe
2559 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2560 if test "x$gnu_ld" = xyes
2562 tm_file="mips/iris6.h mips/iris6gld.h"
2564 tm_file=mips/iris6.h
2566 tmake_file=mips/t-iris6
2567 xm_file=mips/xm-iris6.h
2568 xmake_file=mips/x-iris6
2569 # if test x$enable_threads = xyes; then
2570 # thread_file='irix'
2574 tm_file="mips/elf.h mips/vxworks.h"
2575 tmake_file=mips/t-ecoff
2578 extra_parts="crtbegin.o crtend.o"
2579 thread_file='vxworks'
2581 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2582 tm_file="mips/iris6.h mips/cross64.h"
2584 xm_file="mips/xm-iris5.h"
2585 xmake_file=mips/x-iris
2586 tmake_file=mips/t-cross64
2587 # See comment in mips/iris[56].h files.
2589 # if test x$enable_threads = xyes; then
2590 # thread_file='irix'
2594 if test x$gas = xyes
2596 if test x$stabs = xyes
2598 tm_file=mips/iris5gdb.h
2600 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2603 tm_file=mips/sni-svr4.h
2606 xmake_file=mips/x-sni-svr4
2607 tmake_file=mips/t-mips-gas
2608 if test x$gnu_ld != xyes
2613 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2614 if test x$gas = xyes
2616 tm_file="mips/iris5.h mips/iris5gas.h"
2617 if test x$stabs = xyes
2619 tm_file="${tm_file} dbx.h"
2622 tm_file=mips/iris5.h
2625 xm_file="mips/xm-iris5.h"
2626 xmake_file=mips/x-iris
2627 # mips-tfile doesn't work yet
2628 tmake_file=mips/t-mips-gas
2629 # See comment in mips/iris5.h file.
2631 # if test x$enable_threads = xyes; then
2632 # thread_file='irix'
2635 mips-sgi-irix4loser*) # Mostly like a MIPS.
2636 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2637 if test x$stabs = xyes; then
2638 tm_file="${tm_file} dbx.h"
2641 xmake_file=mips/x-iris
2642 if test x$gas = xyes
2644 tmake_file=mips/t-mips-gas
2646 extra_passes="mips-tfile mips-tdump"
2648 if test x$gnu_ld != xyes
2652 # if test x$enable_threads = xyes; then
2653 # thread_file='irix'
2656 mips-sgi-irix4*) # Mostly like a MIPS.
2657 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2658 if test x$stabs = xyes; then
2659 tm_file="${tm_file} dbx.h"
2662 xmake_file=mips/x-iris
2663 if test x$gas = xyes
2665 tmake_file=mips/t-mips-gas
2667 extra_passes="mips-tfile mips-tdump"
2669 if test x$gnu_ld != xyes
2673 # if test x$enable_threads = xyes; then
2674 # thread_file='irix'
2677 mips-sgi-*) # Mostly like a MIPS.
2678 tm_file="mips/iris3.h ${tm_file}"
2679 if test x$stabs = xyes; then
2680 tm_file="${tm_file} dbx.h"
2683 xmake_file=mips/x-iris3
2684 if test x$gas = xyes
2686 tmake_file=mips/t-mips-gas
2688 extra_passes="mips-tfile mips-tdump"
2690 if test x$gnu_ld != xyes
2695 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2696 tm_file="mips/osfrose.h ${tm_file}"
2697 xmake_file=mips/x-osfrose
2698 tmake_file=mips/t-osfrose
2699 extra_objs=halfpic.o
2702 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2703 tm_file=mips/dec-osf1.h
2704 if test x$stabs = xyes; then
2705 tm_file="${tm_file} dbx.h"
2707 xmake_file=mips/x-dec-osf1
2708 if test x$gas = xyes
2710 tmake_file=mips/t-mips-gas
2712 tmake_file=mips/t-ultrix
2713 extra_passes="mips-tfile mips-tdump"
2715 if test x$gnu_ld != xyes
2720 mips-dec-bsd*) # Decstation running 4.4 BSD
2721 tm_file=mips/dec-bsd.h
2722 if test x$gas = xyes
2724 tmake_file=mips/t-mips-gas
2726 tmake_file=mips/t-ultrix
2727 extra_passes="mips-tfile mips-tdump"
2729 if test x$gnu_ld != xyes
2734 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2735 tm_file=mips/netbsd.h
2736 # On NetBSD, the headers are already okay, except for math.h.
2739 mips*-*-linux*) # Linux MIPS, either endian.
2742 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2743 *) tm_file="mips/elf.h mips/linux.h" ;;
2746 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2749 if test x$enable_threads = xyes; then
2753 mips*el-*-openbsd*) # mips little endian
2754 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2756 mips*-*-openbsd*) # mips big endian
2757 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2758 tm_file="mips/openbsd-be.h ${tm_file}"
2760 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2761 tm_file="mips/news4.h ${tm_file}"
2762 if test x$stabs = xyes; then
2763 tm_file="${tm_file} dbx.h"
2765 if test x$gas = xyes
2767 tmake_file=mips/t-mips-gas
2769 extra_passes="mips-tfile mips-tdump"
2771 if test x$gnu_ld != xyes
2775 xmake_file=mips/x-sony
2777 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2778 # That is based on svr4.
2779 # t-svr4 is not right because this system doesn't use ELF.
2780 tm_file="mips/news5.h ${tm_file}"
2781 if test x$stabs = xyes; then
2782 tm_file="${tm_file} dbx.h"
2785 if test x$gas = xyes
2787 tmake_file=mips/t-mips-gas
2789 extra_passes="mips-tfile mips-tdump"
2791 if test x$gnu_ld != xyes
2796 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2797 tm_file="mips/svr4-5.h mips/svr4-t.h"
2798 if test x$stabs = xyes; then
2799 tm_file="${tm_file} dbx.h"
2802 xmake_file=mips/x-sysv
2803 if test x$gas = xyes
2805 tmake_file=mips/t-mips-gas
2806 extra_parts="crtbegin.o crtend.o"
2808 tmake_file=mips/t-mips
2809 extra_passes="mips-tfile mips-tdump"
2811 if test x$gnu_ld != xyes
2816 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2817 tm_file="mips/ultrix.h ${tm_file}"
2818 if test x$stabs = xyes; then
2819 tm_file="${tm_file} dbx.h"
2821 xmake_file=mips/x-ultrix
2822 if test x$gas = xyes
2824 tmake_file=mips/t-mips-gas
2826 tmake_file=mips/t-ultrix
2827 extra_passes="mips-tfile mips-tdump"
2829 if test x$gnu_ld != xyes
2835 mips-*-riscos[56789]bsd*)
2837 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2838 if test x$stabs = xyes; then
2839 tm_file="${tm_file} dbx.h"
2841 if test x$gas = xyes
2843 tmake_file=mips/t-bsd-gas
2845 tmake_file=mips/t-bsd
2846 extra_passes="mips-tfile mips-tdump"
2848 if test x$gnu_ld != xyes
2854 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2856 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2857 if test x$stabs = xyes; then
2858 tm_file="${tm_file} dbx.h"
2860 if test x$gas = xyes
2862 tmake_file=mips/t-bsd-gas
2864 tmake_file=mips/t-bsd
2865 extra_passes="mips-tfile mips-tdump"
2867 if test x$gnu_ld != xyes
2873 mips-*-riscos[56789]sysv4*)
2875 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2876 if test x$stabs = xyes; then
2877 tm_file="${tm_file} dbx.h"
2879 xmake_file=mips/x-sysv
2880 if test x$gas = xyes
2882 tmake_file=mips/t-svr4-gas
2884 tmake_file=mips/t-svr4
2885 extra_passes="mips-tfile mips-tdump"
2887 if test x$gnu_ld != xyes
2893 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2895 tm_file="mips/svr4-4.h ${tm_file}"
2896 if test x$stabs = xyes; then
2897 tm_file="${tm_file} dbx.h"
2900 xmake_file=mips/x-sysv
2901 if test x$gas = xyes
2903 tmake_file=mips/t-svr4-gas
2905 tmake_file=mips/t-svr4
2906 extra_passes="mips-tfile mips-tdump"
2908 if test x$gnu_ld != xyes
2914 mips-*-riscos[56789]sysv*)
2916 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2917 if test x$stabs = xyes; then
2918 tm_file="${tm_file} dbx.h"
2921 xmake_file=mips/x-sysv
2922 if test x$gas = xyes
2924 tmake_file=mips/t-svr3-gas
2926 tmake_file=mips/t-svr3
2927 extra_passes="mips-tfile mips-tdump"
2929 if test x$gnu_ld != xyes
2934 mips-*-sysv* | mips-*-riscos*sysv*)
2935 tm_file="mips/svr3-4.h ${tm_file}"
2936 if test x$stabs = xyes; then
2937 tm_file="${tm_file} dbx.h"
2940 xmake_file=mips/x-sysv
2941 if test x$gas = xyes
2943 tmake_file=mips/t-svr3-gas
2945 tmake_file=mips/t-svr3
2946 extra_passes="mips-tfile mips-tdump"
2948 if test x$gnu_ld != xyes
2954 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2956 tm_file=mips/mips-5.h
2957 if test x$stabs = xyes; then
2958 tm_file="${tm_file} dbx.h"
2960 if test x$gas = xyes
2962 tmake_file=mips/t-mips-gas
2964 extra_passes="mips-tfile mips-tdump"
2966 if test x$gnu_ld != xyes
2974 tm_file=mips/ecoffl.h
2975 if test x$stabs = xyes; then
2976 tm_file="${tm_file} dbx.h"
2978 tmake_file=mips/t-ecoff
2981 tm_file="gofast.h mips/ecoff.h"
2982 if test x$stabs = xyes; then
2983 tm_file="${tm_file} dbx.h"
2985 tmake_file=mips/t-ecoff
2988 tm_file="mips/elfl.h"
2989 tmake_file=mips/t-elf
2992 tm_file="mips/elf.h"
2993 tmake_file=mips/t-elf
2996 tm_file="mips/elfl64.h"
2997 tmake_file=mips/t-elf
2999 mips64orionel-*-elf*)
3000 tm_file="mips/elforion.h mips/elfl64.h"
3001 tmake_file=mips/t-elf
3004 tm_file="mips/elf64.h"
3005 tmake_file=mips/t-elf
3008 tm_file="mips/elforion.h mips/elf64.h"
3009 tmake_file=mips/t-elf
3011 mips64orion-*-rtems*)
3012 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3013 tmake_file="mips/t-elf t-rtems"
3016 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3017 tmake_file=mips/t-r3900
3020 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3021 tmake_file=mips/t-r3900
3023 mips-*-*) # Default MIPS RISC-OS 4.0.
3024 if test x$stabs = xyes; then
3025 tm_file="${tm_file} dbx.h"
3027 if test x$gas = xyes
3029 tmake_file=mips/t-mips-gas
3031 extra_passes="mips-tfile mips-tdump"
3033 if test x$gnu_ld != xyes
3041 tm_file="mn10200/mn10200.h"
3042 if test x$stabs = xyes
3044 tm_file="${tm_file} dbx.h"
3050 tm_file="mn10300/mn10300.h"
3051 if test x$stabs = xyes
3053 tm_file="${tm_file} dbx.h"
3058 tm_file=ns32k/encore.h
3062 tm_file=ns32k/sequent.h
3066 tm_file=ns32k/tek6100.h
3070 tm_file=ns32k/tek6200.h
3073 # This has not been updated to GCC 2.
3076 # xmake_file=ns32k/x-genix
3077 # tm_file=ns32k/genix.h
3081 tm_file=ns32k/merlin.h
3085 tm_file=ns32k/pc532-mach.h
3089 tm_file=ns32k/pc532-min.h
3090 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3095 tm_file=ns32k/netbsd.h
3096 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3097 # On NetBSD, the headers are already okay, except for math.h.
3102 tm_file="${tm_file} pdp11/2bsd.h"
3111 # This has not been updated to GCC 2.
3114 # xmake_file=pyr/x-pyr
3119 tm_file="svr4.h pj/linux.h ${tm_file}"
3124 tm_file="svr4.h pj/pjl.h ${tm_file}"
3131 xmake_file=romp/x-mach
3138 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3142 tm_file=rs6000/beos.h
3143 xm_file=rs6000/xm-beos.h
3144 tmake_file=rs6000/t-beos
3145 xmake_file=rs6000/x-beos
3148 tm_file=rs6000/sysv4.h
3149 xm_file="rs6000/xm-sysv4.h"
3150 xm_defines="USG POSIX"
3151 extra_headers=ppc-asm.h
3152 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3153 xmake_file=rs6000/x-sysv4
3156 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3157 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3158 extra_headers=ppc-asm.h
3161 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3162 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3163 extra_headers=ppc-asm.h
3166 tm_file="rs6000/sysv4.h"
3167 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3168 extra_headers=ppc-asm.h
3171 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3172 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3173 extra_headers=ppc-asm.h
3176 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3177 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3178 extra_headers=ppc-asm.h
3180 powerpc-*-linux-gnulibc1)
3181 tm_file="rs6000/sysv4.h rs6000/linux.h"
3182 xm_file=rs6000/xm-sysv4.h
3183 out_file=rs6000/rs6000.c
3184 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3186 extra_headers=ppc-asm.h
3187 if test x$enable_threads = xyes; then
3191 powerpc-*-linux-gnu*)
3192 tm_file="rs6000/sysv4.h rs6000/linux.h"
3193 xm_file="rs6000/xm-sysv4.h"
3194 xm_defines="USG ${xm_defines}"
3195 out_file=rs6000/rs6000.c
3196 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3198 extra_headers=ppc-asm.h
3199 if test x$enable_threads = xyes; then
3203 powerpc-wrs-vxworks*)
3205 xm_file="rs6000/xm-sysv4.h"
3206 xm_defines="USG POSIX"
3207 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3208 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3209 extra_headers=ppc-asm.h
3210 thread_file='vxworks'
3212 powerpcle-wrs-vxworks*)
3214 xm_file="rs6000/xm-sysv4.h"
3215 xm_defines="USG POSIX"
3216 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3217 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3218 extra_headers=ppc-asm.h
3219 thread_file='vxworks'
3222 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3223 xm_file="rs6000/xm-sysv4.h"
3224 xm_defines="USG POSIX"
3225 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3226 xmake_file=rs6000/x-sysv4
3227 extra_headers=ppc-asm.h
3230 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3231 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3232 extra_headers=ppc-asm.h
3234 powerpcle-*-eabisim*)
3235 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3236 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3237 extra_headers=ppc-asm.h
3240 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3241 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3242 extra_headers=ppc-asm.h
3244 powerpcle-*-solaris2*)
3245 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3246 xm_file="rs6000/xm-sysv4.h"
3247 xm_defines="USG POSIX"
3248 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3249 xmake_file=rs6000/x-sysv4
3250 extra_headers=ppc-asm.h
3253 rs6000-ibm-aix3.[01]*)
3255 tm_file=rs6000/aix31.h
3256 xmake_file=rs6000/x-aix31
3261 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3263 tm_file=rs6000/aix3newas.h
3264 if test x$host != x$target
3266 tmake_file=rs6000/t-xnewas
3268 tmake_file=rs6000/t-newas
3274 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3276 tm_file=rs6000/aix41.h
3277 if test x$host != x$target
3279 tmake_file=rs6000/t-xnewas
3281 tmake_file=rs6000/t-newas
3283 if test "$gnu_ld" = yes
3285 xmake_file=rs6000/x-aix41-gld
3287 tmake_file="rs6000/t-newas rs6000/t-aix41"
3289 xmake_file=rs6000/x-aix41
3294 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3296 tm_file=rs6000/aix43.h
3297 tmake_file=rs6000/t-aix43
3298 xmake_file=rs6000/x-aix41
3303 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3305 tm_file=rs6000/aix43.h
3306 tmake_file=rs6000/t-aix43
3307 xmake_file=rs6000/x-aix41
3320 tm_file=rs6000/mach.h
3321 xm_file="${xm_file} rs6000/xm-mach.h"
3322 xmake_file=rs6000/x-mach
3326 tm_file=rs6000/lynx.h
3327 xm_file=rs6000/xm-lynx.h
3328 tmake_file=rs6000/t-rs6000
3329 xmake_file=rs6000/x-lynx
3337 tmake_file="sh/t-sh t-rtems"
3338 tm_file=sh/rtemself.h
3342 tmake_file="sh/t-sh t-rtems"
3351 xm_file="xm-alloca.h ${xm_file}"
3354 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3355 tm_file=sparc/vxsparc.h
3356 tmake_file=sparc/t-vxsparc
3358 thread_file='vxworks'
3361 tmake_file=sparc/t-sparcbare
3362 tm_file="sparc/aout.h libgloss.h"
3365 tm_file=sparc/netbsd.h
3370 # we need collect2 until our bug is fixed...
3378 tmake_file=sparc/t-elf
3379 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3383 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3384 xm_file="${xm_file} sparc/xm-linux.h"
3385 tm_file=sparc/linux-aout.h
3389 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3390 xm_file="${xm_file} sparc/xm-linux.h"
3392 tm_file=sparc/linux.h
3393 tmake_file="t-linux t-linux-gnulibc1"
3394 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3398 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3399 xm_file="${xm_file} sparc/xm-linux.h"
3401 tm_file=sparc/linux.h
3402 tmake_file="t-linux"
3403 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3405 if test x$enable_threads = xyes; then
3411 if test x$gas = xyes
3413 tm_file=sparc/lynx.h
3415 tm_file=sparc/lynx-ng.h
3417 xm_file=sparc/xm-lynx.h
3418 tmake_file=sparc/t-sunos41
3422 tmake_file="sparc/t-sparcbare t-rtems"
3423 tm_file=sparc/rtems.h
3425 sparc-*-rtems*|sparc-*-rtemself*)
3426 tm_file="sparc/rtemself.h"
3427 tmake_file="sparc/t-elf t-rtems"
3428 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3432 sparcv9-*-solaris2*)
3433 if test x$gnu_ld = xyes
3435 tm_file=sparc/sol2-64.h
3437 tm_file=sparc/sol2-sld-64.h
3439 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3440 xm_defines="USG POSIX"
3441 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3442 xmake_file=sparc/x-sysv4
3443 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3445 if test x${enable_threads} = x ; then
3446 enable_threads=$have_pthread_h
3447 if test x${enable_threads} = x ; then
3448 enable_threads=$have_thread_h
3451 if test x${enable_threads} = xyes ; then
3452 if test x${have_pthread_h} = xyes ; then
3455 thread_file='solaris'
3459 sparc-hal-solaris2*)
3460 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3461 xm_defines="USG POSIX"
3462 tm_file="sparc/sol2.h sparc/hal.h"
3463 tmake_file="sparc/t-halos sparc/t-sol2"
3464 xmake_file=sparc/x-sysv4
3465 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3476 thread_file='solaris'
3479 if test x$gnu_ld = xyes
3481 tm_file=sparc/sol2.h
3483 tm_file=sparc/sol2-sld.h
3485 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3486 xm_defines="USG POSIX"
3487 tmake_file=sparc/t-sol2
3488 xmake_file=sparc/x-sysv4
3489 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3492 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3495 if test x$gnu_ld = xyes
3497 tm_file=sparc/sol2-64.h
3499 tm_file=sparc/sol2-sld-64.h
3501 tmake_file="$tmake_file sparc/t-sol2-64"
3514 if test x${enable_threads} = x; then
3515 enable_threads=$have_pthread_h
3516 if test x${enable_threads} = x; then
3517 enable_threads=$have_thread_h
3520 if test x${enable_threads} = xyes; then
3521 if test x${have_pthread_h} = xyes; then
3524 thread_file='solaris'
3529 tm_file=sparc/sunos4.h
3530 tmake_file=sparc/t-sunos40
3534 tm_file=sparc/sunos4.h
3535 tmake_file=sparc/t-sunos41
3537 if test x$gas = xyes; then
3538 tm_file="${tm_file} sparc/sun4gas.h"
3542 tm_file=sparc/sun4o3.h
3546 tm_file=sparc/sysv4.h
3547 xm_file="sparc/xm-sysv4.h"
3548 xm_defines="USG POSIX"
3550 xmake_file=sparc/x-sysv4
3551 extra_parts="crtbegin.o crtend.o"
3554 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3555 xm_defines="USG POSIX"
3556 tm_file=sparc/vxsim.h
3557 tmake_file=sparc/t-vxsparc
3558 xmake_file=sparc/x-sysv4
3561 tm_file="sparc/splet.h libgloss.h"
3562 tmake_file=sparc/t-splet
3565 tm_file="sparc/litecoff.h libgloss.h"
3566 tmake_file=sparc/t-sparclite
3569 tm_file="sparc/lite.h aoutos.h libgloss.h"
3570 tmake_file=sparc/t-sparclite
3573 tm_file="sparc/liteelf.h"
3574 tmake_file=sparc/t-sparclite
3575 extra_parts="crtbegin.o crtend.o"
3578 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3579 tmake_file=sparc/t-sp86x
3582 tm_file="sparc/sp86x-elf.h"
3583 tmake_file=sparc/t-sp86x
3584 extra_parts="crtbegin.o crtend.o"
3587 tmake_file=sparc/t-sp64
3588 tm_file=sparc/sp64-aout.h
3591 tmake_file=sparc/t-sp64
3592 tm_file=sparc/sp64-elf.h
3593 extra_parts="crtbegin.o crtend.o"
3595 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3596 tmake_file="t-linux sparc/t-linux64"
3597 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3598 tm_file=sparc/linux64.h
3600 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3602 if test x$enable_threads = xyes; then
3607 # This hasn't been upgraded to GCC 2.
3608 # tahoe-harris-*) # Harris tahoe, using COFF.
3609 # tm_file=tahoe/harris.h
3611 # tahoe-*-bsd*) # tahoe running BSD
3616 *** The Thumb targets have been depreciated. The equivalent
3617 *** ARM based toolchain can now generated Thumb instructions
3618 *** when the -mthumb switch is given to the compiler.])
3620 # This hasn't been upgraded to GCC 2.
3627 tm_file="v850/rtems.h"
3628 xm_file="v850/xm-v850.h"
3629 tmake_file="v850/t-v850 t-rtems"
3630 if test x$stabs = xyes
3632 tm_file="${tm_file} dbx.h"
3637 target_cpu_default="TARGET_CPU_generic"
3639 tm_file="v850/v850.h"
3640 xm_file="v850/xm-v850.h"
3641 tmake_file=v850/t-v850
3642 if test x$stabs = xyes
3644 tm_file="${tm_file} dbx.h"
3648 vax-*-bsd*) # vaxen running BSD
3652 vax-*-sysv*) # vaxen running system V
3653 tm_file="${tm_file} vax/vaxv.h"
3658 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3664 tmake_file="${tmake_file} vax/t-openbsd"
3665 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3666 xm_file="xm-openbsd.h vax/xm-vax.h"
3670 vax-*-ultrix*) # vaxen running ultrix
3671 tm_file="${tm_file} vax/ultrix.h"
3675 vax-*-vms*) # vaxen running VMS
3676 xm_file=vax/xm-vms.h
3680 vax-*-*) # vax default entry
3684 xm_file="${xm_file} xm-svr3"
3688 echo "Configuration $machine not supported" 1>&2
3695 ;; # Existing GNU/Linux systems do not use the GNU setup.
3697 # On the GNU system, the setup is just about the same on
3698 # each different CPU. The specific machines that GNU
3699 # supports are matched above and just set $cpu_type.
3700 xm_file="xm-gnu.h ${xm_file}"
3701 tm_file=${cpu_type}/gnu.h
3702 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3703 # GNU always uses ELF.
3705 # GNU tools are the only tools.
3708 xmake_file=x-linux # These details are the same as Linux.
3709 tmake_file=t-gnu # These are not.
3712 xmake_try_sysv=x-sysv
3713 install_headers_dir=install-headers-cpio
3716 install_headers_dir=install-headers-cpio
3720 # Distinguish i[34567]86
3721 # Also, do not run mips-tfile on MIPS if using gas.
3722 # Process --with-cpu= for PowerPC/rs6000
3723 target_cpu_default2=
3726 target_cpu_default2=1
3729 case $target_alias in
3731 target_cpu_default2=4
3734 target_cpu_default2=2
3738 i686-*-* | i786-*-*)
3739 target_cpu_default2=3
3746 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3749 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3752 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3755 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3758 target_cpu_default2="MASK_CPU_EV5"
3762 if test x$gas = xyes
3764 if test "$target_cpu_default2" = ""
3766 target_cpu_default2="MASK_GAS"
3768 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3773 case "x$with_cpu" in
3776 target_cpu_default2="TARGET_CPU_generic"
3779 # Distinguish cores, and major variants
3780 # arm7m doesn't exist, but D & I don't affect code
3782 xarm[23678] | xarm250 | xarm[67][01]0 \
3783 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3784 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3785 | xstrongarm | xstrongarm110 | xstrongarm1100)
3787 target_cpu_default2="TARGET_CPU_$with_cpu"
3791 echo "--with-cpu must be passed a value" 1>&2
3796 if test x$pass2done = xyes
3798 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3805 mips*-*-ecoff* | mips*-*-elf*)
3806 if test x$gas = xyes
3808 if test x$gnu_ld = xyes
3810 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3812 target_cpu_default2="MASK_GAS"
3817 if test x$gas = xyes
3819 target_cpu_default2="MASK_GAS"
3822 powerpc*-*-* | rs6000-*-*)
3823 case "x$with_cpu" in
3827 xcommon | xpower | xpower2 | xpowerpc | xrios \
3828 | xrios1 | xrios2 | xrsc | xrsc1 \
3829 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3830 | xec603e | x740 | x750 | x401 \
3831 | x403 | x505 | x801 | x821 | x823 | x860)
3832 target_cpu_default2="\"$with_cpu\""
3836 echo "--with-cpu must be passed a value" 1>&2
3841 if test x$pass2done = xyes
3843 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3850 case ".$with_cpu" in
3852 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3854 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3855 target_cpu_default2="TARGET_CPU_$with_cpu"
3858 if test x$pass2done = xyes
3860 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3868 if test "$target_cpu_default2" != ""
3870 if test "$target_cpu_default" != ""
3872 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3874 target_cpu_default=$target_cpu_default2
3878 # No need for collect2 if we have the GNU linker.
3879 # Actually, there is now; GNU ld doesn't handle the EH info or
3880 # collecting for shared libraries.
3887 # Save data on machine being used to compile GCC in build_xm_file.
3888 # Save data on host machine in vars host_xm_file and host_xmake_file.
3889 if test x$pass1done = x
3891 if test x"$xm_file" = x
3892 then build_xm_file=$cpu_type/xm-$cpu_type.h
3893 else build_xm_file=$xm_file
3895 build_xm_defines=$xm_defines
3896 build_install_headers_dir=$install_headers_dir
3897 build_exeext=$exeext
3900 if test x$pass2done = x
3902 if test x"$xm_file" = x
3903 then host_xm_file=$cpu_type/xm-$cpu_type.h
3904 else host_xm_file=$xm_file
3906 host_xm_defines=$xm_defines
3907 if test x"$xmake_file" = x
3908 then xmake_file=$cpu_type/x-$cpu_type
3910 host_xmake_file="$xmake_file"
3911 host_truncate_target=$truncate_target
3912 host_extra_gcc_objs=$extra_gcc_objs
3913 host_extra_objs=$extra_host_objs
3920 extra_objs="${host_extra_objs} ${extra_objs}"
3922 # Default the target-machine variables that were not explicitly set.
3923 if test x"$tm_file" = x
3924 then tm_file=$cpu_type/$cpu_type.h; fi
3926 if test x$extra_headers = x
3927 then extra_headers=; fi
3929 if test x"$xm_file" = x
3930 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3932 if test x$md_file = x
3933 then md_file=$cpu_type/$cpu_type.md; fi
3935 if test x$out_file = x
3936 then out_file=$cpu_type/$cpu_type.c; fi
3938 if test x"$tmake_file" = x
3939 then tmake_file=$cpu_type/t-$cpu_type
3942 if test x"$dwarf2" = xyes
3943 then tm_file="$tm_file tm-dwarf2.h"
3946 if test x$float_format = x
3947 then float_format=i64
3950 if test $float_format = none
3951 then float_h_file=Makefile.in
3952 else float_h_file=float-$float_format.h
3955 # Handle cpp installation.
3956 if test x$enable_cpp != xno
3958 tmake_file="$tmake_file t-install-cpp"
3961 # Say what files are being used for the output code and MD file.
3962 echo "Using \`$srcdir/config/$out_file' to output insns."
3963 echo "Using \`$srcdir/config/$md_file' as machine description file."
3966 for f in $tm_file; do
3969 if test $count = ax; then
3970 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3972 echo "Using the following target machine macro files:"
3973 for f in $tm_file; do
3974 echo " $srcdir/config/$f"
3979 for f in $host_xm_file; do
3982 if test $count = ax; then
3983 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3985 echo "Using the following host machine macro files:"
3986 for f in $host_xm_file; do
3987 echo " $srcdir/config/$f"
3991 if test "$host_xm_file" != "$build_xm_file"; then
3993 for f in $build_xm_file; do
3996 if test $count = ax; then
3997 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3999 echo "Using the following build machine macro files:"
4000 for f in $build_xm_file; do
4001 echo " $srcdir/config/$f"
4006 if test x$thread_file = x; then
4007 if test x$target_thread_file != x; then
4008 thread_file=$target_thread_file
4010 thread_file='single'
4014 # Set up the header files.
4015 # $links is the list of header files to create.
4016 # $vars is the list of shell variables with file names to include.
4017 # auto-host.h is the file containing items generated by autoconf and is
4018 # the first file included by config.h.
4020 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4022 # If host=build, it is correct to have hconfig include auto-host.h
4023 # as well. If host!=build, we are in error and need to do more
4024 # work to find out the build config parameters.
4025 if test x$host = x$build
4027 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4029 # We create a subdir, then run autoconf in the subdir.
4030 # To prevent recursion we set host and build for the new
4031 # invocation of configure to the build for this invocation
4038 /*) realsrcdir=${srcdir};;
4039 *) realsrcdir=../${srcdir};;
4041 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4042 --target=$target --host=$build --build=$build
4044 # We just finished tests for the build machine, so rename
4045 # the file auto-build.h in the gcc directory.
4046 mv auto-host.h ../auto-build.h
4049 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4052 xm_file="gansidecl.h ${xm_file}"
4053 tm_file="gansidecl.h ${tm_file}"
4055 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4056 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4057 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4060 if test -f config.status; then mv -f config.status config.bak; fi
4063 while test -n "$vars"
4065 set $vars; var=$1; shift; vars=$*
4066 set $links; link=$1; shift; links=$*
4067 set $defines; define=$1; shift; defines=$*
4070 # Make sure the file is created, even if it is empty.
4073 # Define TARGET_CPU_DEFAULT if the system wants one.
4074 # This substitutes for lots of *.h files.
4075 if test "$target_cpu_default" != "" -a $link = tm.h
4077 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4080 for file in `eval echo '$'$var`; do
4082 auto-host.h | auto-build.h )
4085 echo '#ifdef IN_GCC' >>$link
4088 echo "#include \"$file\"" >>$link
4090 auto-host.h | auto-build.h )
4093 echo '#endif' >>$link
4098 for def in `eval echo '$'$define`; do
4099 echo "#ifndef $def" >>$link
4100 echo "#define $def" >>$link
4101 echo "#endif" >>$link
4105 # Truncate the target if necessary
4106 if test x$host_truncate_target != x; then
4107 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4110 # Get the version trigger filename from the toplevel
4111 if test "${with_gcc_version_trigger+set}" = set; then
4112 gcc_version_trigger=$with_gcc_version_trigger
4114 gcc_version_trigger=${srcdir}/version.c
4117 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4120 # Internationalization
4122 VERSION="$gcc_version"
4123 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4124 [Define to the name of the distribution.])
4125 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4126 [Define to the version of the distribution.])
4132 # Enable NLS support by default
4134 [ --enable-nls use Native Language Support (default)],
4137 # if cross compiling, disable NLS support.
4138 # It's not worth the trouble, at least for now.
4140 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4141 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4146 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4148 # Windows32 Registry support for specifying GCC installation paths.
4149 AC_ARG_ENABLE(win32-registry,
4150 [ --disable-win32-registry
4151 Disable lookup of installation paths in the
4152 Registry on Windows hosts.
4153 --enable-win32-registry Enable registry lookup (default).
4154 --enable-win32-registry=KEY
4155 Use KEY instead of GCC version as the last portion
4156 of the registry key.],,)
4158 AC_MSG_CHECKING(whether windows registry support is requested)
4159 if test x$enable_win32_registry != xno; then
4160 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4161 [Define to 1 if installation paths should be looked up in Windows32
4162 Registry. Ignored on non windows32 hosts.])
4168 # Check if user specified a different registry key.
4169 case x${enable_win32_registry} in
4172 gcc_cv_win32_registry_key="$VERSION"
4175 # no registry lookup.
4176 gcc_cv_win32_registry_key=''
4179 # user-specified key.
4180 gcc_cv_win32_registry_key="$enable_win32_registry"
4184 if test x$enable_win32_registry != xno; then
4185 AC_MSG_CHECKING(registry key on windows hosts)
4186 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4187 [Define to be the last portion of registry key on windows hosts.])
4188 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4191 # Get an absolute path to the GCC top-level source directory
4197 # Conditionalize the makefile for this host machine.
4198 # Make-host contains the concatenation of all host makefile fragments
4199 # [there can be more than one]. This file is built by configure.frag.
4200 host_overrides=Make-host
4201 dep_host_xmake_file=
4202 for f in .. ${host_xmake_file}
4204 if test -f ${srcdir}/config/$f
4206 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4210 # Conditionalize the makefile for this target machine.
4211 # Make-target contains the concatenation of all host makefile fragments
4212 # [there can be more than one]. This file is built by configure.frag.
4213 target_overrides=Make-target
4215 for f in .. ${tmake_file}
4217 if test -f ${srcdir}/config/$f
4219 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4223 # If the host doesn't support symlinks, modify CC in
4224 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4225 # Otherwise, we can use "CC=$(CC)".
4227 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4229 cc_set_by_configure="\$(CC)"
4230 quoted_cc_set_by_configure="\$(CC)"
4231 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4234 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4236 symbolic_link="cp -p"
4240 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4241 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4242 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4246 out_object_file=`basename $out_file .c`.o
4249 for f in $tm_file; do
4252 tm_file_list="${tm_file_list} $f" ;;
4253 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4258 for f in $host_xm_file; do
4260 auto-host.h | gansidecl.h | hwint.h )
4261 host_xm_file_list="${host_xm_file_list} $f" ;;
4262 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4267 for f in $build_xm_file; do
4269 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4270 build_xm_file_list="${build_xm_file_list} $f" ;;
4271 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4275 # Define macro CROSS_COMPILE in compilation
4276 # if this is a cross-compiler.
4277 # Also use all.cross instead of all.internal
4278 # and add cross-make to Makefile.
4279 cross_overrides="/dev/null"
4280 if test x$host != x$target
4282 cross_defines="CROSS=-DCROSS_COMPILE"
4283 cross_overrides="${topdir}/cross-make"
4286 # If this is a cross-compiler that does not
4287 # have its own set of headers then define
4290 # If this is using newlib, then define inhibit_libc in
4291 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4292 # libgcc.a, but that's OK because newlib should have its own version of
4295 if [test x$host != x$target] && [test x$with_headers = x]; then
4296 inhibit_libc=-Dinhibit_libc
4298 if [test x$with_newlib = xyes]; then
4299 inhibit_libc=-Dinhibit_libc
4302 AC_SUBST(inhibit_libc)
4304 # When building gcc with a cross-compiler, we need to fix a few things.
4305 # This must come after cross-make as we want all.build to override
4307 build_overrides="/dev/null"
4308 if test x$build != x$host
4310 build_overrides="${topdir}/build-make"
4313 # Expand extra_headers to include complete path.
4314 # This substitutes for lots of t-* files.
4316 if test "x$extra_headers" = x
4319 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4320 for file in $extra_headers;
4322 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4326 if test x$use_collect2 = xno; then
4330 # Add a definition of USE_COLLECT2 if system wants one.
4331 # Also tell toplev.c what to do.
4332 # This substitutes for lots of t-* files.
4333 if test x$use_collect2 = x
4338 will_use_collect2="collect2"
4339 maybe_use_collect2="-DUSE_COLLECT2"
4343 # Set MD_DEPS if the real md file is in md.pre-cpp.
4344 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4345 # for line oriented comments, so we must always use a GNU cpp. If
4346 # building gcc with a cross compiler, use the cross compiler just
4347 # built. Otherwise, we can use the cpp just built.
4349 if test "x$md_cppflags" = x
4351 md_file_sub=$srcdir/config/$md_file
4356 # If we have gas in the build tree, make a link to it.
4357 if test -f ../gas/Makefile; then
4358 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4361 # If we have nm in the build tree, make a link to it.
4362 if test -f ../binutils/Makefile; then
4363 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4366 # If we have ld in the build tree, make a link to it.
4367 if test -f ../ld/Makefile; then
4368 # if test x$use_collect2 = x; then
4369 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4371 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4375 # Figure out what assembler alignment features are present.
4376 AC_MSG_CHECKING(assembler alignment features)
4378 gcc_cv_as_alignment_features=
4379 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4380 if test -x "$DEFAULT_ASSEMBLER"; then
4381 gcc_cv_as="$DEFAULT_ASSEMBLER"
4382 elif test -x "$AS"; then
4384 elif test -x as$host_exeext; then
4385 # Build using assembler in the current directory.
4386 gcc_cv_as=./as$host_exeext
4387 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4388 # Single tree build which includes gas.
4389 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4392 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4394 if test x$gcc_cv_gas_version != x; then
4399 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4400 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4402 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4403 # Gas version 2.6 and later support for .balign and .p2align.
4404 # bytes to skip when using .p2align.
4405 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
4406 gcc_cv_as_alignment_features=".balign and .p2align"
4407 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4409 # Gas version 2.8 and later support specifying the maximum
4410 # bytes to skip when using .p2align.
4411 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
4412 gcc_cv_as_alignment_features=".p2align including maximum skip"
4413 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4416 elif test x$host = x$target; then
4418 # Search the same directories that the installed compiler will
4419 # search. Else we may find the wrong assembler and lose. If we
4420 # do not find a suitable assembler binary, then try the user's
4423 # Also note we have to check MD_EXEC_PREFIX before checking the
4424 # user's path. Unfortunately, there is no good way to get at the
4425 # value of MD_EXEC_PREFIX here. So we do a brute force search
4426 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4427 # to be fixed as part of the make/configure rewrite too.
4429 if test "x$exec_prefix" = xNONE; then
4430 if test "x$prefix" = xNONE; then
4431 test_prefix=/usr/local
4436 test_prefix=$exec_prefix
4439 # If the loop below does not find an assembler, then use whatever
4440 # one we can find in the users's path.
4444 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4445 $test_prefix/lib/gcc-lib/$target \
4446 /usr/lib/gcc/$target/$gcc_version \
4447 /usr/lib/gcc/$target \
4448 $test_prefix/$target/bin/$target/$gcc_version \
4449 $test_prefix/$target/bin \
4454 /bsd43/usr/lib/cmplrs/cc \
4455 /usr/cross64/usr/bin \
4456 /usr/lib/cmplrs/cc \
4457 /sysv/usr/lib/cmplrs/cc \
4458 /svr4/usr/lib/cmplrs/cc \
4461 for dir in $test_dirs; do
4462 if test -f $dir/as$host_exeext; then
4463 gcc_cv_as=$dir/as$host_exeext
4468 if test x$gcc_cv_as != x; then
4469 # Check if we have .balign and .p2align
4470 echo ".balign 4" > conftest.s
4471 echo ".p2align 2" >> conftest.s
4472 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4473 gcc_cv_as_alignment_features=".balign and .p2align"
4474 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4476 rm -f conftest.s conftest.o
4477 # Check if specifying the maximum bytes to skip when
4478 # using .p2align is supported.
4479 echo ".p2align 4,,7" > conftest.s
4480 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4481 gcc_cv_as_alignment_features=".p2align including maximum skip"
4482 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4484 rm -f conftest.s conftest.o
4486 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4488 AC_MSG_CHECKING(assembler subsection support)
4489 gcc_cv_as_subsections=
4490 if test x$gcc_cv_as != x; then
4491 # Check if we have .subsection
4492 echo ".subsection 1" > conftest.s
4493 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4494 gcc_cv_as_subsections=".subsection"
4495 if test -x nm$host_exeext; then
4496 gcc_cv_nm=./nm$host_exeext
4497 elif test x$host = x$target; then
4499 gcc_cv_nm=nm$host_exeext
4501 if test x$gcc_cv_nm != x; then
4502 cat > conftest.s <<EOF
4503 conftest_label1: .word 0
4505 conftest_label2: .word 0
4508 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4509 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4510 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4511 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4514 gcc_cv_as_subsections="working .subsection -1"
4515 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4516 [Define if your assembler supports .subsection and .subsection -1 starts
4517 emitting at the beginning of your section.])
4522 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4524 AC_MSG_RESULT($gcc_cv_as_subsections)
4526 AC_MSG_CHECKING(assembler weak support)
4528 if test x$gcc_cv_as != x; then
4529 # Check if we have .weak
4530 echo " .weak foobar" > conftest.s
4531 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4532 AC_DEFINE(HAVE_GAS_WEAK, 1,
4533 [Define if your assembler supports .weak.])
4534 gcc_cv_as_weak="yes"
4536 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4538 AC_MSG_RESULT($gcc_cv_as_weak)
4540 AC_MSG_CHECKING(assembler hidden support)
4542 if test x$gcc_cv_as != x; then
4543 # Check if we have .hidden
4544 echo " .hidden foobar" > conftest.s
4545 echo "foobar:" >> conftest.s
4546 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4547 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4548 [Define if your assembler supports .hidden.])
4549 gcc_cv_as_hidden="yes"
4551 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4553 AC_MSG_RESULT($gcc_cv_as_hidden)
4557 AC_CACHE_CHECK([assembler .register pseudo-op support],
4558 gcc_cv_as_register_pseudo_op, [
4559 gcc_cv_as_register_pseudo_op=unknown
4560 if test x$gcc_cv_as != x; then
4561 # Check if we have .register
4562 echo ".register %g2, #scratch" > conftest.s
4563 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4564 gcc_cv_as_register_pseudo_op=yes
4566 gcc_cv_as_register_pseudo_op=no
4568 rm -f conftest.s conftest.o
4571 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4572 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4573 [Define if your assembler supports .register.])
4576 AC_CACHE_CHECK([assembler supports -relax],
4577 gcc_cv_as_relax_opt, [
4578 gcc_cv_as_relax_opt=unknown
4579 if test x$gcc_cv_as != x; then
4580 # Check if gas supports -relax
4581 echo ".text" > conftest.s
4582 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4583 gcc_cv_as_relax_opt=yes
4585 gcc_cv_as_relax_opt=no
4587 rm -f conftest.s conftest.o
4590 if test "x$gcc_cv_as_relax_opt" = xyes; then
4591 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4592 [Define if your assembler supports -relax option.])
4597 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4598 gcc_cv_as_flags64, [
4599 if test -n "$gcc_cv_as"; then
4600 echo ".xword foo" > conftest.s
4601 gcc_cv_as_flags64=no
4602 for flag in "-xarch=v9" "-64 -Av9"; do
4603 if $gcc_cv_as $flag -o conftest.o conftest.s \
4604 > /dev/null 2>&1; then
4605 gcc_cv_as_flags64=$flag
4609 rm -f conftest.s conftest.o
4611 if test "$gas" = yes; then
4612 gcc_cv_as_flags64="-64 -Av9"
4614 gcc_cv_as_flags64="-xarch=v9"
4618 if test "x$gcc_cv_as_flags64" = xno; then
4620 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4621 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4624 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4625 [Define if the assembler supports 64bit sparc.])
4628 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4632 if test "x$gcc_cv_as_flags64" != xno; then
4633 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4634 gcc_cv_as_offsetable_lo10, [
4635 gcc_cv_as_offsetable_lo10=unknown
4636 if test "x$gcc_cv_as" != x; then
4637 # Check if assembler has offsetable %lo()
4638 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4639 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4640 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4642 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4643 > /dev/null 2>&1; then
4644 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4645 gcc_cv_as_offsetable_lo10=no
4647 gcc_cv_as_offsetable_lo10=yes
4650 gcc_cv_as_offsetable_lo10=no
4652 rm -f conftest.s conftest.o conftest1.s conftest1.o
4655 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4656 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4657 [Define if your assembler supports offsetable %lo().])
4665 AC_MSG_CHECKING(assembler instructions)
4666 gcc_cv_as_instructions=
4667 if test x$gcc_cv_as != x; then
4668 set "filds fists" "filds mem; fists mem"
4671 echo "$2" > conftest.s
4672 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4673 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4674 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4678 rm -f conftest.s conftest.o
4680 AC_MSG_RESULT($gcc_cv_as_instructions)
4684 # Figure out what language subdirectories are present.
4685 # Look if the user specified --enable-languages="..."; if not, use
4686 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4688 if test x"${enable_languages+set}" != xset; then
4689 if test x"${LANGUAGES+set}" = xset; then
4690 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4692 enable_languages=all
4695 if test x"${enable_languages}" = x; then
4696 AC_MSG_ERROR([--enable-languages needs at least one argument])
4700 for lang in ${srcdir}/*/config-lang.in ..
4704 # The odd quoting in the next line works around
4705 # an apparent bug in bash 1.12 on linux.
4707 ${srcdir}/[*]/config-lang.in) ;;
4709 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4710 if test "x$lang_alias" = x
4712 echo "$lang doesn't set \$language." 1>&2
4715 if test x"${enable_languages}" = xall; then
4718 case "${enable_languages}" in
4719 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4727 if test x"${add_this_lang}" = xyes; then
4729 ${srcdir}/ada/config-lang.in)
4730 if test x$gnat = xyes ; then
4731 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4735 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4744 # Make gthr-default.h if we have a thread file.
4746 if test $thread_file != single; then
4747 rm -f gthr-default.h
4748 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4749 gthread_flags=-DHAVE_GTHR_DEFAULT
4751 AC_SUBST(gthread_flags)
4753 # Find out what GC implementation we want, or may, use.
4755 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4756 with the compiler.],
4762 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4765 [if test $ac_cv_func_mmap_anywhere = yes \
4766 || test $ac_cv_func_valloc = yes; then
4772 echo "Using $GGC for garbage collection."
4774 # Build a new-abi (c++) system
4775 AC_ARG_ENABLE(new-gxx-abi,
4776 [ --enable-new-gxx-abi
4777 select the new abi for g++. You must select an ABI
4778 at configuration time, so that the correct runtime
4779 support is built. You cannot mix ABIs.],
4780 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4781 [Define if you want to always select the new-abi for g++.])
4782 GXX_ABI_FLAG='-fnew-abi'
4783 echo "Building a new-abi g++ compiler."
4785 AC_SUBST(GXX_ABI_FLAG)
4787 # Build a new-libstdc++ system (ie libstdc++-v3)
4788 AC_MSG_CHECKING([for libstdc++ to install])
4789 AC_ARG_ENABLE(libstdcxx-v3,
4790 [ --enable-libstdcxx-v3
4791 enable libstdc++-v3 for building and installation],
4792 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4794 if test x$enable_libstdcxx_v3 = xyes; then
4801 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4802 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4804 dnl Very limited version of automake's enable-maintainer-mode
4806 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4807 dnl maintainer-mode is disabled by default
4808 AC_ARG_ENABLE(maintainer-mode,
4809 [ --enable-maintainer-mode enable make rules and dependencies not useful
4810 (and sometimes confusing) to the casual installer],
4811 maintainer_mode=$enableval,
4814 AC_MSG_RESULT($maintainer_mode)
4816 if test "$maintainer_mode" = "yes"; then
4823 # Make empty files to contain the specs and options for each language.
4824 # Then add #include lines to for a compiler that has specs and/or options.
4829 rm -f specs.h options.h gencheck.h
4830 touch specs.h options.h gencheck.h
4831 for subdir in . $subdirs
4833 if test -f $srcdir/$subdir/lang-specs.h; then
4834 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4835 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4837 if test -f $srcdir/$subdir/lang-options.h; then
4838 echo "#include \"$subdir/lang-options.h\"" >>options.h
4839 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4841 if test -f $srcdir/$subdir/$subdir-tree.def; then
4842 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4843 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4847 # These (without "all_") are set in each config-lang.in.
4848 # `language' must be a single word so is spelled singularly.
4854 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4855 # List of language makefile fragments.
4860 # Add the language fragments.
4861 # Languages are added via two mechanisms. Some information must be
4862 # recorded in makefile variables, these are defined in config-lang.in.
4863 # We accumulate them and plug them into the main Makefile.
4864 # The other mechanism is a set of hooks for each of the main targets
4865 # like `clean', `install', etc.
4867 language_fragments="Make-lang"
4868 language_hooks="Make-hooks"
4871 for s in .. $subdirs
4883 . ${srcdir}/$s/config-lang.in
4884 if test "x$language" = x
4886 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4889 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4890 all_languages="$all_languages $language"
4891 if test "x$boot_language" = xyes
4893 all_boot_languages="$all_boot_languages $language"
4895 all_compilers="$all_compilers $compilers"
4896 all_stagestuff="$all_stagestuff $stagestuff"
4897 all_diff_excludes="$all_diff_excludes $diff_excludes"
4898 all_headers="$all_headers $headers"
4899 all_outputs="$all_outputs $outputs"
4900 if test x$outputs = x
4902 oldstyle_subdirs="$oldstyle_subdirs $s"
4904 all_lib2funcs="$all_lib2funcs $lib2funcs"
4908 # Since we can't use `::' targets, we link each language in
4909 # with a set of hooks, reached indirectly via lang.${target}.
4913 target_list="all.build all.cross start.encap rest.encap \
4915 install-normal install-common install-info install-man \
4917 mostlyclean clean distclean extraclean maintainer-clean \
4918 stage1 stage2 stage3 stage4"
4919 for t in $target_list
4922 for lang in .. $all_languages
4924 if test $lang != ".."; then
4928 echo "lang.$t: $x" >> Make-hooks
4931 # If we're not building in srcdir, create .gdbinit.
4933 if test ! -f Makefile.in; then
4934 echo "dir ." > .gdbinit
4935 echo "dir ${srcdir}" >> .gdbinit
4936 if test x$gdb_needs_out_file_path = xyes
4938 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4940 if test "x$subdirs" != x; then
4943 echo "dir ${srcdir}/$s" >> .gdbinit
4946 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4949 # Define variables host_canonical and build_canonical
4950 # because some Cygnus local changes in the Makefile depend on them.
4951 build_canonical=${build}
4952 host_canonical=${host}
4954 if test "${host}" != "${target}" ; then
4955 target_subdir=${target}/
4957 AC_SUBST(build_canonical)
4958 AC_SUBST(host_canonical)
4959 AC_SUBST(target_subdir)
4961 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4962 # absolute path for gcc_tooldir based on inserting the number of up-directory
4963 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4964 # $(libsubdir)/@(unlibsubdir) based path.
4965 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4966 # make and thus we'd get different behavior depending on where we built the
4968 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4969 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4971 changequote(<<, >>)dnl
4972 # An explanation of the sed strings:
4973 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4974 # -e 's|/$||' match a trailing forward slash and eliminates it
4975 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4976 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4978 # (*) Note this pattern overwrites the first character of the string
4979 # with a forward slash if one is not already present. This is not a
4980 # problem because the exact names of the sub-directories concerned is
4981 # unimportant, just the number of them matters.
4983 # The practical upshot of these patterns is like this:
4985 # prefix exec_prefix result
4986 # ------ ----------- ------
4988 # /foo/ /foo/bar ../
4989 # /foo /foo/bar/ ../
4990 # /foo/ /foo/bar/ ../
4991 # /foo /foo/bar/ugg ../../
4994 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4995 changequote([, ])dnl
4997 AC_SUBST(gcc_tooldir)
5000 # Nothing to do for FLOAT_H, float_format already handled.
5004 # Process the language and host/target makefile fragments.
5005 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5007 # Substitute configuration variables
5009 AC_SUBST(all_boot_languages)
5010 AC_SUBST(all_compilers)
5011 AC_SUBST(all_diff_excludes)
5012 AC_SUBST(all_headers)
5013 AC_SUBST(all_lang_makefiles)
5014 AC_SUBST(all_languages)
5015 AC_SUBST(all_lib2funcs)
5016 AC_SUBST(all_stagestuff)
5017 AC_SUBST(build_exeext)
5018 AC_SUBST(build_install_headers_dir)
5019 AC_SUBST(build_xm_file_list)
5020 AC_SUBST(cc_set_by_configure)
5021 AC_SUBST(quoted_cc_set_by_configure)
5022 AC_SUBST(cpp_install_dir)
5023 AC_SUBST(dep_host_xmake_file)
5024 AC_SUBST(dep_tmake_file)
5025 AC_SUBST(extra_c_flags)
5026 AC_SUBST(extra_c_objs)
5027 AC_SUBST(extra_cpp_objs)
5028 AC_SUBST(extra_cxx_objs)
5029 AC_SUBST(extra_headers_list)
5030 AC_SUBST(extra_objs)
5031 AC_SUBST(extra_parts)
5032 AC_SUBST(extra_passes)
5033 AC_SUBST(extra_programs)
5034 AC_SUBST(float_h_file)
5035 AC_SUBST(gcc_gxx_include_dir)
5036 AC_SUBST(gcc_version)
5037 AC_SUBST(gcc_version_trigger)
5038 AC_SUBST(host_exeext)
5039 AC_SUBST(host_extra_gcc_objs)
5040 AC_SUBST(host_xm_file_list)
5042 AC_SUBST(lang_options_files)
5043 AC_SUBST(lang_specs_files)
5044 AC_SUBST(lang_tree_files)
5045 AC_SUBST(local_prefix)
5046 AC_SUBST(maybe_use_collect2)
5048 AC_SUBST(objc_boehm_gc)
5050 AC_SUBST(out_object_file)
5051 AC_SUBST(stage_prefix_set_by_configure)
5052 AC_SUBST(symbolic_link)
5053 AC_SUBST(thread_file)
5054 AC_SUBST(tm_file_list)
5055 AC_SUBST(will_use_collect2)
5058 AC_SUBST_FILE(target_overrides)
5059 AC_SUBST_FILE(host_overrides)
5060 AC_SUBST(cross_defines)
5061 AC_SUBST_FILE(cross_overrides)
5062 AC_SUBST_FILE(build_overrides)
5063 AC_SUBST_FILE(language_fragments)
5064 AC_SUBST_FILE(language_hooks)
5066 # Echo that links are built
5067 if test x$host = x$target
5075 if test x$host != x$build
5077 str3=" on a $build system"
5080 if test "x$str2" != x || test "x$str3" != x
5085 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5087 if test "x$str2" != x || test "x$str3" != x
5089 echo " ${str2}${str3}." 1>&2
5092 # Truncate the target if necessary
5093 if test x$host_truncate_target != x; then
5094 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5097 # Configure the subdirectories
5098 # AC_CONFIG_SUBDIRS($subdirs)
5100 # Create the Makefile
5101 # and configure language subdirectories
5102 AC_OUTPUT($all_outputs,
5104 . $srcdir/configure.lang
5105 case x$CONFIG_HEADERS in
5106 xauto-host.h:config.in)
5109 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5110 # bootstrapping and the installation procedure can still use
5111 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5112 # FLAGS_TO_PASS has been modified to solve the problem there.
5113 # This is virtually a duplicate of what happens in configure.lang; we do
5114 # an extra check to make sure this only happens if ln -s can be used.
5115 if test "$symbolic_link" = "ln -s"; then
5116 for d in .. ${subdirs} ; do
5117 if test $d != ..; then
5120 for t in stage1 stage2 stage3 stage4 include
5123 $symbolic_link ../$t $t 2>/dev/null
5129 # Avoid having to add intl to our include paths.
5130 if test -f intl/libintl.h; then
5131 echo creating libintl.h
5132 echo '#include "intl/libintl.h"' >libintl.h
5139 target_alias='${target_alias}'
5141 subdirs='${subdirs}'
5142 oldstyle_subdirs='${oldstyle_subdirs}'
5143 symbolic_link='${symbolic_link}'
5144 program_transform_set='${program_transform_set}'
5145 program_transform_name='${program_transform_name}'
5146 dep_host_xmake_file='${dep_host_xmake_file}'
5147 host_xmake_file='${host_xmake_file}'
5148 dep_tmake_file='${dep_tmake_file}'
5149 tmake_file='${tmake_file}'
5150 thread_file='${thread_file}'
5151 gcc_version='${gcc_version}'
5152 gcc_version_trigger='${gcc_version_trigger}'
5153 local_prefix='${local_prefix}'
5154 build_install_headers_dir='${build_install_headers_dir}'
5155 build_exeext='${build_exeext}'
5156 host_exeext='${host_exeext}'
5157 out_file='${out_file}'
5158 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5159 SET_MAKE='${SET_MAKE}'
5160 target_list='${target_list}'
5161 target_overrides='${target_overrides}'
5162 host_overrides='${host_overrides}'
5163 cross_defines='${cross_defines}'
5164 cross_overrides='${cross_overrides}'
5165 build_overrides='${build_overrides}'
5166 cpp_install_dir='${cpp_install_dir}'