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.
259 AC_ARG_ENABLE(c-cpplib,
260 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
261 (HIGHLY EXPERIMENTAL).],
262 if test x$enable_c_cpplib != xno; then
263 maybe_cpplib=libcpp.a
264 AC_DEFINE(USE_CPPLIB, 1,
265 [Define if you want the preprocessor merged into the C and C++ compilers.])
267 AC_SUBST(maybe_cpplib)
269 # Enable Multibyte Characters for C/C++
270 AC_ARG_ENABLE(c-mbchar,
271 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
272 if test x$enable_c_mbchar != xno; then
273 AC_DEFINE(MULTIBYTE_CHARS, 1,
274 [Define if you want the C and C++ compilers to support multibyte
275 character sets for source code.])
279 # Pass with no value to take the default
280 # Pass with a value to specify a thread package
281 AC_ARG_ENABLE(threads,
282 [ --enable-threads enable thread usage for target GCC.
283 --enable-threads=LIB use LIB thread package for target GCC.],,
286 enable_threads_flag=$enable_threads
287 # Check if a valid thread package
288 case x${enable_threads_flag} in
291 target_thread_file='single'
295 target_thread_file=''
297 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
298 xsolaris | xwin32 | xdce | xvxworks | xaix)
299 target_thread_file=$enable_threads_flag
302 echo "$enable_threads is an unknown thread package" 1>&2
307 AC_ARG_ENABLE(objc-gc,
308 [ --enable-objc-gc enable the use of Boehm's garbage collector with
309 the GNU Objective-C runtime.],
310 if test x$enable_objc_gc = xno; then
318 [ --with-dwarf2 force the default debug format to be DWARF2.],
319 dwarf2="$with_dwarf2",
322 AC_ARG_ENABLE(shared,
323 [ --disable-shared don't provide a shared libgcc.],
324 [], [enable_shared=yes])
325 AC_SUBST(enable_shared)
327 # Determine the host, build, and target systems
330 # Find the native compiler
333 # autoconf is lame and doesn't give us any substitution variable for this.
334 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
335 NO_MINUS_C_MINUS_O=yes
337 OUTPUT_OPTION='-o $@'
339 AC_SUBST(NO_MINUS_C_MINUS_O)
340 AC_SUBST(OUTPUT_OPTION)
344 AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
345 ac_cv_prog_cc_no_long_long,
346 [save_CFLAGS="$CFLAGS"
347 CFLAGS="-Wno-long-long"
348 AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
349 ac_cv_prog_cc_no_long_long=no)
350 CFLAGS="$save_CFLAGS"])
352 if test $ac_cv_prog_cc_no_long_long = yes; then
353 strict1_warn="-pedantic -Wno-long-long"
355 AC_SUBST(strict1_warn)
357 # If the native compiler is GCC, we can enable warnings even in stage1.
358 # That's useful for people building cross-compilers, or just running a
361 if test "x$GCC" = "xyes"; then
362 warn_cflags='$(GCC_WARN_CFLAGS)'
364 AC_SUBST(warn_cflags)
366 # Stage specific cflags for build.
372 stage1_cflags="-Wa,-J"
378 AC_SUBST(stage1_cflags)
382 AC_MSG_CHECKING([whether a default assembler was specified])
383 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
384 if test x"$gas_flag" = x"no"; then
385 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
387 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
393 AC_MSG_CHECKING([whether a default linker was specified])
394 if test x"${DEFAULT_LINKER+set}" = x"set"; then
395 if test x"$gnu_ld_flag" = x"no"; then
396 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
398 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
404 AC_MSG_CHECKING(for GNU C library)
405 AC_CACHE_VAL(gcc_cv_glibc,
407 [#include <features.h>],[
408 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
409 #error Not a GNU C library system
413 AC_MSG_RESULT($gcc_cv_glibc)
414 if test $gcc_cv_glibc = yes; then
415 AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library])
420 # Find some useful tools
434 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
435 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
436 sys/resource.h sys/param.h sys/times.h sys/stat.h \
437 direct.h malloc.h langinfo.h iconv.h)
439 # Check for thread headers.
440 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
441 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
443 # See if GNAT has been installed
444 AC_CHECK_PROG(gnat, gnatbind, yes, no)
446 # Do we have a single-tree copy of texinfo?
447 if test -f $srcdir/../texinfo/Makefile.in; then
448 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
449 gcc_cv_prog_makeinfo_modern=yes
450 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
452 # See if makeinfo has been installed and is modern enough
453 # that we can use it.
454 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
455 [GNU texinfo.* \([0-9][0-9.]*\)],
456 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
459 if test $gcc_cv_prog_makeinfo_modern = no; then
461 *** Makeinfo is missing or too old.
462 *** Info documentation will not be built or installed.])
466 BUILD_INFO=info AC_SUBST(BUILD_INFO)
467 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
470 # See if the stage1 system preprocessor understands the ANSI C
471 # preprocessor stringification operator.
474 # Use <inttypes.h> only if it exists,
475 # doesn't clash with <sys/types.h>, and declares intmax_t.
476 AC_MSG_CHECKING(for inttypes.h)
477 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
479 [#include <sys/types.h>
480 #include <inttypes.h>],
482 [gcc_cv_header_inttypes_h=yes],
483 gcc_cv_header_inttypes_h=no)])
484 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
485 if test $gcc_cv_header_inttypes_h = yes; then
486 AC_DEFINE(HAVE_INTTYPES_H, 1,
487 [Define if you have a working <inttypes.h> header file.])
491 # Determine if enumerated bitfields are unsigned. ISO C says they can
492 # be either signed or unsigned.
494 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
495 [AC_TRY_RUN(#include <stdlib.h>
496 enum t { BLAH = 128 } ;
497 struct s_t { enum t member : 8; } s ;
501 if (s.member < 0) exit(1);
504 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
505 if test $gcc_cv_enum_bf_unsigned = yes; then
506 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
507 [Define if enumerated bitfields are treated as unsigned values.])
510 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
511 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
512 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
513 fputs_unlocked getrusage valloc iconv nl_langinfo)
515 AC_CHECK_TYPE(ssize_t, int)
517 # Try to determine the array type of the second argument of getgroups
518 # for the target system (int or gid_t).
520 if test "${target}" = "${build}"; then
521 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
524 # This condition may need some tweaking. It should include all
525 # targets where the array type of the second argument of getgroups
526 # is int and the type of gid_t is not equivalent to int.
527 *-*-sunos* | *-*-ultrix*)
528 TARGET_GETGROUPS_T=int
531 TARGET_GETGROUPS_T=gid_t
535 AC_SUBST(TARGET_GETGROUPS_T)
537 gcc_AC_FUNC_VFPRINTF_DOPRNT
538 gcc_AC_FUNC_PRINTF_PTR
542 # Under some versions of uwin, vfork is notoriously buggy and the test
543 # can hang configure; on other versions, vfork exists just as a stub.
544 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
545 ac_cv_func_vfork_works=no
549 AC_FUNC_MMAP_ANYWHERE
552 # We will need to find libiberty.h and ansidecl.h
553 saved_CFLAGS="$CFLAGS"
554 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
555 gcc_AC_CHECK_DECLS(bcopy bzero bcmp \
556 index rindex getenv atol sbrk abort atof getcwd getwd \
557 strsignal putc_unlocked fputs_unlocked strstr environ \
558 malloc realloc calloc free basename getopt, , ,[
559 #include "gansidecl.h"
560 #include "system.h"])
562 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
563 #include "gansidecl.h"
565 #ifdef HAVE_SYS_RESOURCE_H
566 #include <sys/resource.h>
570 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
571 CFLAGS="$saved_CFLAGS"
573 # mkdir takes a single argument on some systems.
574 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
584 build_install_headers_dir=install-headers-tar
589 host_truncate_target=
592 # Decode the host machine, then the target machine.
593 # For the host machine, we save the xm_file variable as host_xm_file;
594 # then we decode the target machine and forget everything else
595 # that came from the host machine.
596 for machine in $build $host $target; do
610 # Set this to force installation and use of collect2.
612 # Set this to override the default target model.
614 # Set this to control how the header file directory is installed.
615 install_headers_dir=install-headers-tar
616 # Set this to a non-empty list of args to pass to cpp if the target
617 # wants its .md file passed through cpp.
619 # Set this if directory names should be truncated to 14 characters.
621 # Set this if gdb needs a dir command with `dirname $out_file`
622 gdb_needs_out_file_path=
623 # Set this if the build machine requires executables to have a
626 # Set this to control which thread package will be used.
628 # Reinitialize these from the flag values every loop pass, since some
629 # configure entries modify them.
631 gnu_ld="$gnu_ld_flag"
632 enable_threads=$enable_threads_flag
634 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
635 # updated in each machine entry.
637 cpu_type=`echo $machine | sed 's/-.*$//'`
679 tm_file=${cpu_type}/${cpu_type}.h
680 xm_file=${cpu_type}/xm-${cpu_type}.h
681 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
683 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
685 # On a.out targets, we need to use collect2.
692 # Common parts for linux and openbsd systems
695 xm_defines="HAVE_ATEXIT POSIX BSTRING"
698 tm_file=${cpu_type}/openbsd.h
699 tmake_file="t-libc-ok t-openbsd"
700 # avoid surprises, always provide an xm-openbsd file
701 xm_file=${cpu_type}/xm-openbsd.h
702 # don't depend on processor x-fragments as well
704 if test x$enable_threads = xyes; then
706 tmake_file="${tmake_file} t-openbsd-thread"
712 # Support site-specific machine types.
714 cpu_type=`echo $machine | sed -e 's/-.*//'`
715 rest=`echo $machine | sed -e "s/$cpu_type-//"`
716 xm_file=${cpu_type}/xm-$rest.h
717 tm_file=${cpu_type}/$rest.h
718 if test -f $srcdir/config/${cpu_type}/x-$rest; \
719 then xmake_file=${cpu_type}/x-$rest; \
722 if test -f $srcdir/config/${cpu_type}/t-$rest; \
723 then tmake_file=${cpu_type}/t-$rest; \
729 a29k-*-bsd* | a29k-*-sym1*)
730 tm_file="${tm_file} a29k/unix.h"
732 xmake_file=a29k/x-unix
735 a29k-*-udi | a29k-*-coff)
736 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
737 tmake_file=a29k/t-a29kbare
740 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
741 tmake_file=a29k/t-vx29k
742 extra_parts="crtbegin.o crtend.o"
743 thread_file='vxworks'
745 a29k-*-*) # Default a29k environment.
749 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
751 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
752 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
754 # GAS + IEEE_CONFORMANT
755 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
757 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
758 xmake_file="x-interix alpha/t-pe"
759 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
760 if test x$enable_threads = xyes ; then
763 if test x$stabs = xyes ; then
764 tm_file="${tm_file} dbxcoff.h"
766 #prefix='$$INTERIX_ROOT'/usr/contrib
767 #local_prefix='$$INTERIX_ROOT'/usr/contrib
769 alpha*-*-linux*ecoff*)
770 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
771 target_cpu_default="MASK_GAS"
772 tmake_file="alpha/t-alpha alpha/t-ieee"
777 alpha*-*-linux*libc1*)
778 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
779 target_cpu_default="MASK_GAS"
780 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
781 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
784 if test x$enable_threads = xyes; then
789 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
790 target_cpu_default="MASK_GAS"
791 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
792 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
795 if test x$enable_threads = xyes; then
800 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
801 target_cpu_default="MASK_GAS"
802 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
803 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
809 # default x-alpha is only appropriate for dec-osf.
810 target_cpu_default="MASK_GAS"
811 tmake_file="alpha/t-alpha alpha/t-ieee"
815 if test x$stabs = xyes
817 tm_file="${tm_file} dbx.h"
819 if test x$gas != xyes
821 extra_passes="mips-tfile mips-tdump"
824 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
825 xmake_file=alpha/x-osf
828 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
833 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
836 tm_file="${tm_file} alpha/osf.h"
837 tmake_file="$tmake_file alpha/t-osf4"
838 # Some versions of OSF4 (specifically X4.0-9 296.7) have
839 # a broken tar, so we use cpio instead.
840 install_headers_dir=install-headers-cpio
843 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
844 tmake_file="$tmake_file alpha/t-osf4"
849 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
851 target_cpu_default=MASK_SUPPORT_ARCH
856 tm_file="${tm_file} dbx.h alpha/vxworks.h"
857 tmake_file="alpha/t-alpha alpha/t-ieee"
860 extra_passes="mips-tfile mips-tdump"
863 thread_file='vxworks'
866 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
867 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
868 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
869 xmake_file=winnt/x-winnt
870 extra_host_objs=oldnames.o
871 extra_gcc_objs="spawnv.o oldnames.o"
872 if test x$gnu_ld != xyes
874 extra_programs=ld.exe
876 if test x$enable_threads = xyes; then
882 xm_file="${xm_file} alpha/xm-vms.h"
883 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
886 extra_parts="crtinit.o crtfini.o"
888 arm-*-coff* | armel-*-coff*)
890 tmake_file=arm/t-arm-coff
894 tmake_file=arm/t-arm-coff
895 thread_file='vxworks'
898 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
900 tm_file=arm/riscix1-1.h
903 arm-*-riscix*) # Acorn RISC machine
906 tm_file=arm/rix-gas.h
910 xmake_file=arm/x-riscix
911 tmake_file=arm/t-riscix
914 arm-semi-aout | armel-semi-aout)
916 tmake_file=arm/t-semi
918 arm-semi-aof | armel-semi-aof)
919 tm_file=arm/semiaof.h
920 tmake_file=arm/t-semiaof
924 tmake_file="t-netbsd arm/t-netbsd"
927 arm*-*-linux*aout*) # ARM GNU/Linux with a.out
930 tm_file=arm/linux-aout.h
931 tmake_file=arm/t-linux
934 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
935 xm_file=arm/xm-linux.h
937 tm_file="arm/linux-oldld.h arm/linux-elf.h"
940 tm_file="arm/linux-elf26.h $tm_file"
943 tmake_file="t-linux arm/t-linux"
944 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
946 case x${enable_threads} in
947 x | xyes | xpthreads | xposix)
952 arm*-*-linux*) # ARM GNU/Linux with ELF
953 xm_file=arm/xm-linux.h
955 tm_file="arm/linux-elf.h"
958 tm_file="arm/linux-elf26.h $tm_file"
961 tmake_file="t-linux arm/t-linux"
962 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
964 case x${enable_threads} in
965 x | xyes | xpthreads | xposix)
970 arm*-*-uclinux*) # ARM ucLinux
971 tm_file=arm/uclinux-elf.h
972 tmake_file=arm/t-arm-elf
976 tmake_file=arm/t-arm-aout
979 tm_file=arm/ecos-elf.h
980 tmake_file=arm/t-arm-elf
983 tm_file=arm/unknown-elf.h
984 tmake_file=arm/t-arm-elf
987 tm_file=arm/conix-elf.h
988 tmake_file=arm/t-arm-elf
991 tm_file=arm/unknown-elf-oabi.h
992 tmake_file=arm/t-arm-elf
1001 c1-convex-*) # Convex C1
1002 target_cpu_default=1
1005 c2-convex-*) # Convex C2
1006 target_cpu_default=2
1010 target_cpu_default=4
1014 target_cpu_default=8
1018 target_cpu_default=16
1024 tmake_file=c4x/t-c4x
1026 clipper-intergraph-clix*)
1027 tm_file="${tm_file} svr3.h clipper/clix.h"
1028 xm_file=clipper/xm-clix.h
1029 xmake_file=clipper/x-clix
1030 extra_headers=va-clipper.h
1031 extra_parts="crtbegin.o crtend.o"
1032 install_headers_dir=install-headers-cpio
1043 tm_file="fr30/fr30.h"
1044 tmake_file=fr30/t-fr30
1045 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1051 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1052 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1053 tmake_file="t-linux pa/t-linux"
1054 extra_parts="crtbegin.o crtend.o"
1057 if test x$enable_threads = xyes; then
1062 target_cpu_default="MASK_PA_11"
1063 tmake_file=pa/t-openbsd
1066 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1067 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1068 xm_file=pa/xm-papro.h
1072 target_cpu_default="MASK_PA_11"
1073 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1077 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1078 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1079 xm_file=pa/xm-papro.h
1083 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1087 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1088 target_cpu_default="MASK_PA_11"
1092 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1096 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1097 xm_file=pa/xm-pahpux.h
1098 xmake_file=pa/x-pa-hpux
1099 if test x$gas = xyes
1101 tm_file="${tm_file} pa/gas.h"
1103 install_headers_dir=install-headers-cpio
1107 hppa1.0-*-hpux8.0[0-2]*)
1109 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1110 xm_file=pa/xm-pahpux.h
1111 xmake_file=pa/x-pa-hpux
1112 if test x$gas = xyes
1114 tm_file="${tm_file} pa/pa-gas.h"
1116 tm_file="pa/pa-oldas.h ${tm_file}"
1118 install_headers_dir=install-headers-cpio
1122 hppa1.1-*-hpux8.0[0-2]*)
1124 target_cpu_default="MASK_PA_11"
1125 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1126 xm_file=pa/xm-pahpux.h
1127 xmake_file=pa/x-pa-hpux
1128 if test x$gas = xyes
1130 tm_file="${tm_file} pa/pa-gas.h"
1132 tm_file="pa/pa-oldas.h ${tm_file}"
1134 install_headers_dir=install-headers-cpio
1138 target_cpu_default="MASK_PA_11"
1139 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1140 xm_file=pa/xm-pahpux.h
1141 xmake_file=pa/x-pa-hpux
1142 if test x$gas = xyes
1144 tm_file="${tm_file} pa/pa-gas.h"
1146 install_headers_dir=install-headers-cpio
1150 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1151 xm_file=pa/xm-pahpux.h
1152 xmake_file=pa/x-pa-hpux
1153 if test x$gas = xyes
1155 tm_file="${tm_file} pa/pa-gas.h"
1157 install_headers_dir=install-headers-cpio
1160 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1161 target_cpu_default="MASK_PA_11"
1162 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1164 xm_file=pa/xm-pahpux.h
1165 xmake_file=pa/x-pa-hpux
1167 if test x$gas = xyes
1169 tm_file="${tm_file} pa/pa-gas.h"
1171 if test x$enable_threads = x; then
1172 enable_threads=$have_pthread_h
1174 case x${enable_threads} in
1176 tmake_file="${tmake_file} pa/t-dce-thr"
1179 install_headers_dir=install-headers-cpio
1183 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1185 xm_file=pa/xm-pahpux.h
1186 xmake_file=pa/x-pa-hpux
1188 if test x$gas = xyes
1190 tm_file="${tm_file} pa/pa-gas.h"
1192 if test x$enable_threads = x; then
1193 enable_threads=$have_pthread_h
1195 case x${enable_threads} in
1197 tmake_file="${tmake_file} pa/t-dce-thr"
1200 install_headers_dir=install-headers-cpio
1204 target_cpu_default="MASK_PA_11"
1205 xm_file=pa/xm-pa64hpux.h
1206 xmake_file=pa/x-pa-hpux
1208 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"
1210 tmake_file=pa/t-pa64
1211 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1213 if [[ x$gas = xyes ]]
1215 tm_file="${tm_file} pa/pa-gas.h"
1217 # if [[ x$enable_threads = x ]]; then
1218 # enable_threads=$have_pthread_h
1220 # if [[ x$enable_threads = xyes ]]; then
1222 # tmake_file="${tmake_file} pa/t-dce-thr"
1224 install_headers_dir=install-headers-cpio
1227 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1228 target_cpu_default="MASK_PA_11"
1229 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1231 xm_file=pa/xm-pahpux.h
1232 xmake_file=pa/x-pa-hpux
1234 if test x$gas = xyes
1236 tm_file="${tm_file} pa/pa-gas.h"
1238 # if test x$enable_threads = x; then
1239 # enable_threads=$have_pthread_h
1241 # if test x$enable_threads = xyes; then
1243 # tmake_file="${tmake_file} pa/t-dce-thr"
1245 install_headers_dir=install-headers-cpio
1249 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1251 xm_file=pa/xm-pahpux.h
1252 xmake_file=pa/x-pa-hpux
1253 if test x$gas = xyes
1255 tm_file="${tm_file} pa/pa-gas.h"
1257 # if test x$enable_threads = x; then
1258 # enable_threads=$have_pthread_h
1260 # if test x$enable_threads = xyes; then
1262 # tmake_file="${tmake_file} pa/t-dce-thr"
1264 install_headers_dir=install-headers-cpio
1267 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1268 target_cpu_default="MASK_PA_11"
1269 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1270 xm_file=pa/xm-pahpux.h
1271 xmake_file=pa/x-pa-hpux
1272 if test x$gas = xyes
1274 tm_file="${tm_file} pa/pa-gas.h"
1276 install_headers_dir=install-headers-cpio
1280 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1281 xm_file=pa/xm-pahpux.h
1282 xmake_file=pa/x-pa-hpux
1283 if test x$gas = xyes
1285 tm_file="${tm_file} pa/pa-gas.h"
1287 install_headers_dir=install-headers-cpio
1290 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1291 target_cpu_default="MASK_PA_11"
1292 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1293 xm_file=pa/xm-pahpux.h
1294 xmake_file=pa/x-pa-hpux
1295 if test x$gas = xyes
1297 tm_file="${tm_file} pa/pa-gas.h"
1299 install_headers_dir=install-headers-cpio
1303 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1304 xm_file=pa/xm-pahpux.h
1305 xmake_file=pa/x-pa-hpux
1306 if test x$gas = xyes
1308 tm_file="${tm_file} pa/pa-gas.h"
1310 install_headers_dir=install-headers-cpio
1314 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1315 target_cpu_default="MASK_PA_11"
1319 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1320 xm_file=pa/xm-pampeix.h
1321 xmake_file=pa/x-pa-mpeix
1322 echo "You must use gas. Assuming it is already installed."
1323 install_headers_dir=install-headers-tar
1326 i370-*-opened*) # IBM 360/370/390 Architecture
1327 xm_file=i370/xm-oe.h
1329 xmake_file=i370/x-oe
1330 tmake_file=i370/t-oe
1333 xm_file=i370/xm-mvs.h
1335 tmake_file=i370/t-mvs
1338 xm_file="xm-linux.h i370/xm-linux.h"
1340 tm_file="i370/linux.h ${tm_file}"
1341 tmake_file="t-linux i370/t-linux"
1342 # broken_install=yes
1343 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1344 # extra_parts="crtbegin.o crtend.o"
1348 if test x$enable_threads = xyes; then
1355 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1356 tm_file=i386/i386elf.h
1357 tmake_file=i386/t-i386elf
1361 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1363 if test x$gas = xyes
1365 tm_file=i386/aix386.h
1366 extra_parts="crtbegin.o crtend.o"
1367 tmake_file=i386/t-crtstuff
1369 tm_file=i386/aix386ng.h
1372 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1374 xmake_file=i386/x-aix
1377 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1379 xm_file="xm-alloca.h ${xm_file}"
1380 xm_defines="USG POSIX SMALL_ARG_MAX"
1381 xmake_file=i386/x-ncr3000
1382 if test x$stabs = xyes -a x$gas = xyes
1384 tm_file=i386/sysv4gdb.h
1386 tm_file=i386/sysv4.h
1388 extra_parts="crtbegin.o crtend.o"
1389 tmake_file=i386/t-crtpic
1395 xm_file=i386/xm-next.h
1396 tmake_file=i386/t-next
1397 xmake_file=i386/x-next
1398 extra_objs=nextstep.o
1399 extra_parts="crtbegin.o crtend.o"
1400 if test x$enable_threads = xyes; then
1405 i[34567]86-*-netware) # Intel 80386's running netware
1407 tm_file=i386/netware.h
1408 tmake_file=i386/t-netware
1411 i[34567]86-sequent-bsd*) # 80386 from Sequent
1414 if test x$gas = xyes
1416 tm_file=i386/seq-gas.h
1418 tm_file=i386/sequent.h
1422 i[34567]86-sequent-ptx1*)
1424 xm_defines="USG SVR3"
1425 xmake_file=i386/x-sysv3
1426 tm_file=i386/seq-sysv3.h
1427 tmake_file=i386/t-crtstuff
1428 extra_parts="crtbegin.o crtend.o"
1429 install_headers_dir=install-headers-cpio
1432 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1434 xm_defines="USG SVR3"
1435 xmake_file=i386/x-sysv3
1436 tm_file=i386/seq2-sysv3.h
1437 tmake_file=i386/t-crtstuff
1438 extra_parts="crtbegin.o crtend.o"
1439 install_headers_dir=install-headers-cpio
1442 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1444 xm_file="xm-alloca.h ${xm_file}"
1445 xm_defines="USG POSIX SMALL_ARG_MAX"
1447 tm_file=i386/ptx4-i.h
1449 extra_parts="crtbegin.o crtend.o"
1450 install_headers_dir=install-headers-cpio
1452 i386-sun-sunos*) # Sun i386 roadrunner
1458 i[34567]86-wrs-vxworks*)
1460 tm_file=i386/vxi386.h
1461 tmake_file=i386/t-i386bare
1462 thread_file='vxworks'
1467 tm_file=i386/i386-aout.h
1468 tmake_file=i386/t-i386bare
1471 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1473 xm_file=i386/xm-beos.h
1474 tmake_file='i386/t-beos i386/t-crtpic'
1475 tm_file=i386/beos-elf.h
1476 xmake_file=i386/x-beos
1477 extra_parts='crtbegin.o crtend.o'
1480 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1482 tm_file=i386/bsd386.h
1483 # tmake_file=t-libc-ok
1488 tm_file=i386/386bsd.h
1489 # tmake_file=t-libc-ok
1490 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1494 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1496 tm_file="i386/freebsd-aout.h i386/perform.h"
1497 tmake_file=t-freebsd
1500 i[34567]86-*-freebsd*)
1502 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
1503 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1504 tmake_file=t-freebsd
1508 case x${enable_threads} in
1509 xyes | xpthreads | xposix)
1511 tmake_file="${tmake_file} t-freebsd-thread"
1516 i[34567]86-*-netbsd*)
1518 tm_file=i386/netbsd.h
1523 i[34567]86-*-openbsd*)
1525 # we need collect2 until our bug is fixed...
1531 tm_file=i386/i386-coff.h
1532 tmake_file=i386/t-i386bare
1535 i[34567]86-*-isc*) # 80386 running ISC system
1537 xm_file="${xm_file} i386/xm-isc.h"
1538 xm_defines="USG SVR3"
1541 i[34567]86-*-isc[34]*)
1543 xmake_file=i386/x-isc3
1546 xmake_file=i386/x-isc
1549 if test x$gas = xyes -a x$stabs = xyes
1551 tm_file=i386/iscdbx.h
1552 tmake_file=i386/t-svr3dbx
1553 extra_parts="svr3.ifile svr3z.ifile"
1555 tm_file=i386/isccoff.h
1556 tmake_file=i386/t-crtstuff
1557 extra_parts="crtbegin.o crtend.o"
1559 tmake_file="$tmake_file i386/t-i386bare"
1560 install_headers_dir=install-headers-cpio
1563 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1564 changequote([,])dnl # with a.out format using
1566 xmake_file=x-linux-aout
1567 tmake_file="t-linux-aout i386/t-crtstuff"
1568 tm_file=i386/linux-oldld.h
1573 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1574 changequote([,])dnl # with a.out format
1575 xmake_file=x-linux-aout
1576 tmake_file="t-linux-aout i386/t-crtstuff"
1577 tm_file=i386/linux-aout.h
1582 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1583 changequote([,])dnl # with ELF format using the
1584 # GNU/Linux C library 5
1586 tm_file=i386/linux.h
1587 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1588 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1591 if test x$enable_threads = xyes; then
1592 thread_file='single'
1596 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1597 changequote([,])dnl # with ELF format using glibc 2
1598 # aka GNU/Linux C library 6
1600 tm_file=i386/linux.h
1601 tmake_file="t-linux i386/t-crtstuff"
1602 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1605 if test x$enable_threads = xyes; then
1615 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1617 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1621 i[34567]86-pc-msdosdjgpp*)
1623 xm_file=i386/xm-djgpp.h
1624 tm_file=i386/djgpp.h
1625 tmake_file=i386/t-djgpp
1626 xmake_file=i386/x-djgpp
1631 case $host in *pc-msdosdjgpp*)
1637 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1640 tmake_file=t-libc-ok
1645 i[34567]86-*-lynxos*)
1647 if test x$gas = xyes
1651 tm_file=i386/lynx-ng.h
1653 xm_file=i386/xm-lynx.h
1654 tmake_file=i386/t-i386bare
1661 # tmake_file=t-libc-ok
1665 i[34567]86-*-osfrose*) # 386 using OSF/rose
1667 if test x$elf = xyes
1669 tm_file=i386/osfelf.h
1672 tm_file=i386/osfrose.h
1675 xm_file="i386/xm-osf.h ${xm_file}"
1676 xmake_file=i386/x-osfrose
1677 tmake_file=i386/t-osf
1678 extra_objs=halfpic.o
1681 i[34567]86-go32-rtems*)
1684 xm_file=i386/xm-go32.h
1685 tm_file=i386/go32-rtems.h
1686 tmake_file="i386/t-go32 t-rtems"
1689 i[34567]86-*-rtemscoff*)
1692 tm_file=i386/rtems.h
1693 tmake_file="i386/t-i386bare t-rtems"
1696 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1699 tm_file=i386/rtemself.h
1700 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1701 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1704 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1706 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1707 xm_defines="USG SVR3"
1708 xmake_file=i386/x-sco5
1709 install_headers_dir=install-headers-cpio
1711 if test x$gas = xyes
1713 tm_file="i386/sco5gas.h ${tm_file}"
1714 tmake_file=i386/t-sco5gas
1716 tmake_file=i386/t-sco5
1718 tmake_file="$tmake_file i386/t-i386bare"
1719 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1722 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1724 xm_file="${xm_file} i386/xm-sco.h"
1725 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1726 xmake_file=i386/x-sco4
1727 install_headers_dir=install-headers-cpio
1728 if test x$stabs = xyes
1730 tm_file=i386/sco4dbx.h
1731 tmake_file=i386/t-svr3dbx
1732 extra_parts="svr3.ifile svr3z.rfile"
1735 tmake_file=i386/t-crtstuff
1736 extra_parts="crtbegin.o crtend.o"
1738 tmake_file="$tmake_file i386/t-i386bare"
1739 # The default EAFS filesystem supports long file names.
1740 # Truncating the target makes $host != $target which
1741 # makes gcc think it is doing a cross-compile.
1742 # truncate_target=yes
1745 i[34567]86-*-sco*) # 80386 running SCO system
1747 xm_file=i386/xm-sco.h
1748 xmake_file=i386/x-sco
1749 install_headers_dir=install-headers-cpio
1750 if test x$stabs = xyes
1752 tm_file=i386/scodbx.h
1753 tmake_file=i386/t-svr3dbx
1754 extra_parts="svr3.ifile svr3z.rfile"
1757 extra_parts="crtbegin.o crtend.o"
1758 tmake_file=i386/t-crtstuff
1760 tmake_file="$tmake_file i386/t-i386bare"
1764 i[34567]86-*-solaris2*)
1766 xm_file="xm-alloca.h ${xm_file}"
1767 xm_defines="USG POSIX SMALL_ARG_MAX"
1769 if test x$gas = xyes; then
1770 # Only needed if gas does not support -s
1771 tm_file="i386/sol2gas.h ${tm_file}"
1773 tmake_file="i386/t-i386bare i386/t-sol2"
1774 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1776 if test x${enable_threads} = x; then
1777 enable_threads=$have_pthread_h
1778 if test x${enable_threads} = x; then
1779 enable_threads=$have_thread_h
1782 if test x${enable_threads} = xyes; then
1783 if test x${have_pthread_h} = xyes; then
1786 thread_file='solaris'
1791 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1793 xm_file="xm-alloca.h ${xm_file}"
1794 xm_defines="USG POSIX"
1795 tm_file=i386/sysv5.h
1796 if test x$stabs = xyes
1798 tm_file="${tm_file} dbx.h"
1800 tmake_file="i386/t-i386bare i386/t-crtpic"
1802 extra_parts="crtbegin.o crtend.o"
1803 if test x$enable_threads = xyes; then
1808 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1810 xm_file="xm-alloca.h ${xm_file}"
1811 xm_defines="USG POSIX SMALL_ARG_MAX"
1812 tm_file=i386/sysv4.h
1813 if test x$stabs = xyes
1815 tm_file="${tm_file} dbx.h"
1817 tmake_file="i386/t-i386bare i386/t-crtpic"
1819 extra_parts="crtbegin.o crtend.o"
1822 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1824 xm_file="xm-alloca.h ${xm_file}"
1825 xm_defines="USG POSIX"
1827 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1829 extra_parts="crtbegin.o crtend.o"
1830 install_headers_dir=install-headers-cpio
1833 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1836 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1837 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1838 if test x$stabs = xyes
1840 tm_file=i386/osf1elfgdb.h
1842 tm_file=i386/osf1elf.h
1844 tmake_file=i386/t-osf1elf
1845 xmake_file=i386/x-osf1elf
1846 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1849 i[34567]86-*-sysv*) # Intel 80386's running system V
1851 xm_defines="USG SVR3"
1852 xmake_file=i386/x-sysv3
1853 if test x$gas = xyes
1855 if test x$stabs = xyes
1857 tm_file=i386/svr3dbx.h
1858 tmake_file=i386/t-svr3dbx
1859 extra_parts="svr3.ifile svr3z.rfile"
1861 tm_file=i386/svr3gas.h
1862 extra_parts="crtbegin.o crtend.o"
1863 tmake_file=i386/t-crtstuff
1866 tm_file=i386/sysv3.h
1867 extra_parts="crtbegin.o crtend.o"
1868 tmake_file=i386/t-crtstuff
1870 tmake_file="$tmake_file i386/t-crtpic"
1872 i386-*-vsta) # Intel 80386's running VSTa kernel
1873 xm_file="${xm_file} i386/xm-vsta.h"
1875 tmake_file=i386/t-vsta
1876 xmake_file=i386/x-vsta
1881 xm_file="${xm_file} i386/xm-cygwin.h"
1882 tmake_file=i386/t-cygwin
1883 tm_file=i386/win32.h
1884 xmake_file=i386/x-cygwin
1886 if test x$enable_threads = xyes; then
1892 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1894 xm_file="${xm_file} i386/xm-cygwin.h"
1895 tmake_file=i386/t-cygwin
1896 tm_file=i386/cygwin.h
1897 xmake_file=i386/x-cygwin
1899 if test x$enable_threads = xyes; then
1905 i[34567]86-*-mingw32*)
1907 tm_file=i386/mingw32.h
1908 xm_file="${xm_file} i386/xm-mingw32.h"
1909 tmake_file="i386/t-cygwin i386/t-mingw32"
1911 xmake_file=i386/x-cygwin
1912 if test x$enable_threads = xyes; then
1919 *minwg32crt* | *mingw32*)
1920 tm_file="${tm_file} i386/crtdll.h"
1928 xm_file="${xm_file} i386/xm-uwin.h"
1929 xm_defines="USG NO_STAB_H"
1930 tmake_file="i386/t-cygwin i386/t-uwin"
1932 xmake_file=i386/x-cygwin
1933 if test x$enable_threads = xyes; then
1939 i[34567]86-*-interix*)
1941 tm_file="i386/i386-interix.h interix.h"
1942 xm_file="i386/xm-i386-interix.h xm-interix.h"
1944 tmake_file="i386/t-interix"
1945 extra_objs=interix.o
1946 xmake_file=x-interix
1947 if test x$enable_threads = xyes ; then
1950 if test x$stabs = xyes ; then
1951 tm_file="${tm_file} dbxcoff.h"
1955 i[34567]86-*-winnt3*)
1957 tm_file=i386/win-nt.h
1958 out_file=i386/i386.c
1959 xm_file="xm-winnt.h ${xm_file}"
1960 xmake_file=winnt/x-winnt
1961 tmake_file=i386/t-winnt
1962 extra_host_objs="winnt.o oldnames.o"
1963 extra_gcc_objs="spawnv.o oldnames.o"
1964 if test x$gnu_ld != xyes
1966 extra_programs=ld.exe
1968 if test x$enable_threads = xyes; then
1973 i[34567]86-dg-dgux*)
1975 xm_file="xm-alloca.h ${xm_file}"
1976 xm_defines="USG POSIX"
1977 out_file=i386/dgux.c
1979 tmake_file=i386/t-dgux
1980 xmake_file=i386/x-dgux
1981 install_headers_dir=install-headers-cpio
1983 i860-alliant-*) # Alliant FX/2800
1984 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1985 xm_file="${xm_file}"
1986 xmake_file=i860/x-fx2800
1987 tmake_file=i860/t-fx2800
1988 extra_parts="crtbegin.o crtend.o"
1991 tm_file="${tm_file} i860/bsd.h"
1992 if test x$gas = xyes
1994 tm_file="${tm_file} i860/bsd-gas.h"
1999 tm_file="${tm_file} i860/mach.h"
2000 tmake_file=t-libc-ok
2002 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2003 tm_file="${tm_file} svr3.h i860/paragon.h"
2004 xm_defines="USG SVR3"
2008 tm_file="${tm_file} svr3.h i860/sysv3.h"
2009 xm_defines="USG SVR3"
2010 xmake_file=i860/x-sysv3
2011 extra_parts="crtbegin.o crtend.o"
2014 tm_file="${tm_file} svr4.h i860/sysv4.h"
2015 xm_defines="USG SVR3"
2016 xmake_file=i860/x-sysv4
2018 extra_parts="crtbegin.o crtend.o"
2020 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2021 tm_file="${tm_file} i960/vx960.h"
2022 tmake_file=i960/t-vxworks960
2024 thread_file='vxworks'
2026 i960-wrs-vxworks5* | i960-wrs-vxworks)
2027 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2028 tmake_file=i960/t-vxworks960
2030 thread_file='vxworks'
2033 tm_file="${tm_file} i960/vx960.h"
2034 tmake_file=i960/t-vxworks960
2036 thread_file='vxworks'
2039 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2040 tmake_file=i960/t-960bare
2044 tmake_file="i960/t-960bare t-rtems"
2045 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2048 i960-*-*) # Default i960 environment.
2053 tmake_file="ia64/t-ia64"
2054 target_cpu_default="0"
2055 if test x$gas = xyes
2057 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2059 if test x$gnu_ld = xyes
2061 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2066 tm_file=ia64/linux.h
2067 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
2068 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2069 if test x$enable_threads = xyes; then
2075 extra_parts="crtinit.o crtfini.o"
2077 # m68hc11 and m68hc12 share the same machine description.
2078 m68hc11-*-*|m6811-*-*)
2079 tm_file="m68hc11/m68hc11.h"
2080 xm_file="m68hc11/xm-m68hc11.h"
2081 tm_p_file="m68hc11/m68hc11-protos.h"
2082 md_file="m68hc11/m68hc11.md"
2083 out_file="m68hc11/m68hc11.c"
2084 tmake_file="m68hc11/t-m68hc11-gas"
2086 m68hc12-*-*|m6812-*-*)
2087 tm_file="m68hc11/m68hc12.h"
2088 tm_p_file="m68hc11/m68hc11-protos.h"
2089 xm_file="m68hc11/xm-m68hc11.h"
2090 md_file="m68hc11/m68hc11.md"
2091 out_file="m68hc11/m68hc11.c"
2092 tmake_file="m68hc11/t-m68hc11-gas"
2094 m68000-convergent-sysv*)
2096 xm_file="m68k/xm-3b1.h ${xm_file}"
2099 extra_headers=math-68881.h
2101 m68000-hp-bsd*) # HP 9000/200 running BSD
2102 tm_file=m68k/hp2bsd.h
2103 xmake_file=m68k/x-hp2bsd
2105 extra_headers=math-68881.h
2107 m68000-hp-hpux*) # HP 9000 series 300
2108 xm_file="xm-alloca.h ${xm_file}"
2110 if test x$gas = xyes
2112 xmake_file=m68k/x-hp320g
2113 tm_file=m68k/hp310g.h
2115 xmake_file=m68k/x-hp320
2116 tm_file=m68k/hp310.h
2118 install_headers_dir=install-headers-cpio
2120 extra_headers=math-68881.h
2125 extra_headers=math-68881.h
2128 tm_file=m68k/sun2o4.h
2130 extra_headers=math-68881.h
2133 xm_file="m68k/xm-3b1.h ${xm_file}"
2135 if test x$gas = xyes
2142 extra_headers=math-68881.h
2144 m68k-apple-aux*) # Apple Macintosh running A/UX
2145 xm_defines="USG AUX"
2146 tmake_file=m68k/t-aux
2147 install_headers_dir=install-headers-cpio
2148 extra_headers=math-68881.h
2149 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2151 if test "$gnu_ld" = yes
2153 tm_file="${tm_file} m68k/auxgld.h"
2155 tm_file="${tm_file} m68k/auxld.h"
2157 if test "$gas" = yes
2159 tm_file="${tm_file} m68k/auxgas.h"
2161 tm_file="${tm_file} m68k/auxas.h"
2163 tm_file="${tm_file} m68k/a-ux.h"
2167 tm_file=m68k/apollo68.h
2168 xmake_file=m68k/x-apollo68
2170 extra_headers=math-68881.h
2173 m68k-altos-sysv*) # Altos 3068
2174 if test x$gas = xyes
2176 tm_file=m68k/altos3068.h
2179 echo "The Altos is supported only with the GNU assembler" 1>&2
2182 extra_headers=math-68881.h
2184 m68k-bull-sysv*) # Bull DPX/2
2185 if test x$gas = xyes
2187 if test x$stabs = xyes
2189 tm_file=m68k/dpx2cdbx.h
2191 tm_file=m68k/dpx2g.h
2196 xm_file="xm-alloca.h ${xm_file}"
2198 xmake_file=m68k/x-dpx2
2200 extra_headers=math-68881.h
2202 m68k-atari-sysv4*) # Atari variant of V.4.
2203 tm_file=m68k/atari.h
2204 xm_file="xm-alloca.h ${xm_file}"
2205 xm_defines="USG FULL_PROTOTYPES"
2207 extra_parts="crtbegin.o crtend.o"
2208 extra_headers=math-68881.h
2211 m68k-motorola-sysv*)
2212 tm_file=m68k/mot3300.h
2213 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2214 if test x$gas = xyes
2216 xmake_file=m68k/x-mot3300-gas
2217 if test x$gnu_ld = xyes
2219 tmake_file=m68k/t-mot3300-gald
2221 tmake_file=m68k/t-mot3300-gas
2225 xmake_file=m68k/x-mot3300
2226 if test x$gnu_ld = xyes
2228 tmake_file=m68k/t-mot3300-gld
2230 tmake_file=m68k/t-mot3300
2234 gdb_needs_out_file_path=yes
2235 extra_parts="crt0.o mcrt0.o"
2236 extra_headers=math-68881.h
2239 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2240 tm_file=m68k/tower-as.h
2241 xm_defines="USG SVR3"
2242 xmake_file=m68k/x-tower
2243 extra_parts="crtbegin.o crtend.o"
2244 extra_headers=math-68881.h
2247 tm_file=m68k/plexus.h
2248 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2251 extra_headers=math-68881.h
2255 xm_file="xm-alloca.h ${xm_file}"
2257 extra_headers=math-68881.h
2260 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2261 xm_defines="USG unos"
2262 xmake_file=m68k/x-crds
2265 extra_headers=math-68881.h
2267 m68k-cbm-sysv4*) # Commodore variant of V.4.
2269 xm_file="xm-alloca.h ${xm_file}"
2270 xm_defines="USG FULL_PROTOTYPES"
2271 xmake_file=m68k/x-amix
2273 extra_parts="crtbegin.o crtend.o"
2274 extra_headers=math-68881.h
2278 tm_file=m68k/ccur-GAS.h
2279 xmake_file=m68k/x-ccur
2280 extra_headers=math-68881.h
2284 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2285 tm_file=m68k/hp3bsd44.h
2286 xmake_file=m68k/x-hp3bsd44
2288 extra_headers=math-68881.h
2291 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2292 tm_file=m68k/hp3bsd.h
2294 extra_headers=math-68881.h
2298 if test x$with_fp = xno
2300 tm_file=m68k/isi-nfp.h
2306 extra_headers=math-68881.h
2308 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2309 xm_file="xm-alloca.h ${xm_file}"
2311 if test x$gas = xyes
2313 xmake_file=m68k/x-hp320g
2314 tm_file=m68k/hp320g.h
2316 xmake_file=m68k/x-hp320
2317 tm_file=m68k/hpux7.h
2319 install_headers_dir=install-headers-cpio
2321 extra_headers=math-68881.h
2324 m68k-hp-hpux*) # HP 9000 series 300
2325 xm_file="xm-alloca.h ${xm_file}"
2327 if test x$gas = xyes
2329 xmake_file=m68k/x-hp320g
2330 tm_file=m68k/hp320g.h
2332 xmake_file=m68k/x-hp320
2333 tm_file=m68k/hp320.h
2335 install_headers_dir=install-headers-cpio
2337 extra_headers=math-68881.h
2341 tm_file=m68k/sun3mach.h
2343 extra_headers=math-68881.h
2347 if test x$gas = xyes
2349 tm_file=m68k/news3gas.h
2351 tm_file=m68k/news3.h
2354 extra_headers=math-68881.h
2357 m68k-sony-bsd* | m68k-sony-newsos*)
2358 if test x$gas = xyes
2360 tm_file=m68k/newsgas.h
2365 extra_headers=math-68881.h
2368 m68k-next-nextstep2*)
2369 tm_file=m68k/next21.h
2370 xm_file="m68k/xm-next.h ${xm_file}"
2371 tmake_file=m68k/t-next
2372 xmake_file=m68k/x-next
2373 extra_objs=nextstep.o
2374 extra_headers=math-68881.h
2379 m68k-next-nextstep[34]*)
2382 xm_file="m68k/xm-next.h ${xm_file}"
2383 tmake_file=m68k/t-next
2384 xmake_file=m68k/x-next
2385 extra_objs=nextstep.o
2386 extra_parts="crtbegin.o crtend.o"
2387 extra_headers=math-68881.h
2389 if test x$enable_threads = xyes; then
2394 if test x$with_fp = xno
2396 tm_file=m68k/sun3n3.h
2398 tm_file=m68k/sun3o3.h
2402 extra_headers=math-68881.h
2404 m68k-sun-sunos*) # For SunOS 4 (the default).
2405 if test x$with_fp = xno
2407 tm_file=m68k/sun3n.h
2413 extra_headers=math-68881.h
2416 tm_file=m68k/vxm68k.h
2417 tmake_file=m68k/t-vxworks68
2418 extra_headers=math-68881.h
2419 thread_file='vxworks'
2423 tmake_file=m68k/t-m68kbare
2424 tm_file="m68k/m68k-aout.h libgloss.h"
2425 extra_headers=math-68881.h
2429 tmake_file=m68k/t-m68kbare
2430 tm_file="m68k/m68k-coff.h dbx.h"
2431 extra_headers=math-68881.h
2434 m68020-*-elf* | m68k-*-elf*)
2435 tm_file="m68k/m68020-elf.h"
2436 xm_file=m68k/xm-m68kv.h
2437 tmake_file=m68k/t-m68kelf
2438 header_files=math-68881.h
2441 if test x$gas = xyes
2445 tm_file=m68k/lynx-ng.h
2447 xm_file=m68k/xm-lynx.h
2449 tmake_file=m68k/t-lynx
2450 extra_headers=math-68881.h
2454 tm_file=m68k/netbsd.h
2461 # we need collect2 until our bug is fixed...
2464 m68k-*-sysv3*) # Motorola m68k's running system V.3
2465 xm_file="xm-alloca.h ${xm_file}"
2467 xmake_file=m68k/x-m68kv
2468 extra_parts="crtbegin.o crtend.o"
2469 extra_headers=math-68881.h
2472 m68k-*-sysv4*) # Motorola m68k's running system V.4
2473 tm_file=m68k/m68kv4.h
2474 xm_file="xm-alloca.h ${xm_file}"
2477 extra_parts="crtbegin.o crtend.o"
2478 extra_headers=math-68881.h
2481 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2484 tm_file=m68k/linux-aout.h
2485 tmake_file="t-linux-aout m68k/t-linux-aout"
2486 extra_headers=math-68881.h
2490 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2491 # with ELF format using the
2492 # GNU/Linux C library 5
2494 tm_file=m68k/linux.h
2495 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2496 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2497 extra_headers=math-68881.h
2501 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2502 # with ELF format using glibc 2
2503 # aka the GNU/Linux C library 6.
2505 tm_file=m68k/linux.h
2506 tmake_file="t-linux m68k/t-linux"
2507 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2508 extra_headers=math-68881.h
2511 if test x$enable_threads = xyes; then
2516 tmake_file=m68k/t-m68kbare
2517 tm_file=m68k/m68k-psos.h
2518 extra_headers=math-68881.h
2522 tmake_file="m68k/t-m68kbare t-rtems"
2523 tm_file=m68k/rtems.h
2524 extra_headers=math-68881.h
2527 m68k-*-rtemself*|m68k-*-rtems*)
2528 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2529 tm_file=m68k/rtemself.h
2530 extra_headers=math-68881.h
2536 tm_file=m88k/dguxbcs.h
2537 tmake_file=m88k/t-dguxbcs
2541 tmake_file=m88k/t-dgux
2544 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2545 xmake_file=m88k/x-dgux
2546 if test x$gas = xyes
2548 tmake_file=m88k/t-dgux-gas
2551 m88k-dolphin-sysv3*)
2552 tm_file=m88k/dolph.h
2553 extra_parts="crtbegin.o crtend.o"
2554 xm_file="m88k/xm-sysv3.h ${xm_file}"
2555 xmake_file=m88k/x-dolph
2556 if test x$gas = xyes
2558 tmake_file=m88k/t-m88k-gas
2561 m88k-tektronix-sysv3)
2562 tm_file=m88k/tekXD88.h
2563 extra_parts="crtbegin.o crtend.o"
2564 xm_file="m88k/xm-sysv3.h ${xm_file}"
2565 xmake_file=m88k/x-tekXD88
2566 if test x$gas = xyes
2568 tmake_file=m88k/t-m88k-gas
2572 tm_file=m88k/m88k-aout.h
2575 tm_file=m88k/m88k-coff.h
2576 tmake_file=m88k/t-bug
2580 extra_parts="crtbegin.o crtend.o"
2581 if test x$gas = xyes
2583 tmake_file=m88k/t-luna-gas
2585 tmake_file=m88k/t-luna
2589 tmake_file="${tmake_file} m88k/t-luna-gas"
2590 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2591 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2594 tm_file=m88k/sysv3.h
2595 extra_parts="crtbegin.o crtend.o"
2596 xm_file="m88k/xm-sysv3.h ${xm_file}"
2597 xmake_file=m88k/x-sysv3
2598 if test x$gas = xyes
2600 tmake_file=m88k/t-m88k-gas
2604 tm_file=m88k/sysv4.h
2605 extra_parts="crtbegin.o crtend.o"
2606 xmake_file=m88k/x-sysv4
2607 tmake_file=m88k/t-sysv4
2610 tm_file=mcore/mcore-elf.h
2611 tmake_file=mcore/t-mcore
2614 tm_file=mcore/mcore-pe.h
2615 tmake_file=mcore/t-mcore-pe
2617 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2618 if test "x$gnu_ld" = xyes
2620 tm_file="mips/iris6.h mips/iris6gld.h"
2622 tm_file=mips/iris6.h
2624 tmake_file=mips/t-iris6
2625 xm_file=mips/xm-iris6.h
2626 xmake_file=mips/x-iris6
2627 # if test x$enable_threads = xyes; then
2628 # thread_file='irix'
2632 tm_file="mips/elf.h mips/vxworks.h"
2633 tmake_file=mips/t-ecoff
2636 extra_parts="crtbegin.o crtend.o"
2637 thread_file='vxworks'
2639 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2640 tm_file="mips/iris6.h mips/cross64.h"
2642 xm_file="mips/xm-iris5.h"
2643 xmake_file=mips/x-iris
2644 tmake_file=mips/t-cross64
2645 # See comment in mips/iris[56].h files.
2647 # if test x$enable_threads = xyes; then
2648 # thread_file='irix'
2652 if test x$gas = xyes
2654 if test x$stabs = xyes
2656 tm_file=mips/iris5gdb.h
2658 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2661 tm_file=mips/sni-svr4.h
2664 xmake_file=mips/x-sni-svr4
2665 tmake_file=mips/t-mips-gas
2666 if test x$gnu_ld != xyes
2671 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2672 if test x$gas = xyes
2674 tm_file="mips/iris5.h mips/iris5gas.h"
2675 if test x$stabs = xyes
2677 tm_file="${tm_file} dbx.h"
2680 tm_file=mips/iris5.h
2683 xm_file="mips/xm-iris5.h"
2684 xmake_file=mips/x-iris
2685 # mips-tfile doesn't work yet
2686 tmake_file=mips/t-mips-gas
2687 # See comment in mips/iris5.h file.
2689 # if test x$enable_threads = xyes; then
2690 # thread_file='irix'
2693 mips-sgi-irix4loser*) # Mostly like a MIPS.
2694 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2695 if test x$stabs = xyes; then
2696 tm_file="${tm_file} dbx.h"
2699 xmake_file=mips/x-iris
2700 if test x$gas = xyes
2702 tmake_file=mips/t-mips-gas
2704 extra_passes="mips-tfile mips-tdump"
2706 if test x$gnu_ld != xyes
2710 # if test x$enable_threads = xyes; then
2711 # thread_file='irix'
2714 mips-sgi-irix4*) # Mostly like a MIPS.
2715 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2716 if test x$stabs = xyes; then
2717 tm_file="${tm_file} dbx.h"
2720 xmake_file=mips/x-iris
2721 if test x$gas = xyes
2723 tmake_file=mips/t-mips-gas
2725 extra_passes="mips-tfile mips-tdump"
2727 if test x$gnu_ld != xyes
2731 # if test x$enable_threads = xyes; then
2732 # thread_file='irix'
2735 mips-sgi-*) # Mostly like a MIPS.
2736 tm_file="mips/iris3.h ${tm_file}"
2737 if test x$stabs = xyes; then
2738 tm_file="${tm_file} dbx.h"
2741 xmake_file=mips/x-iris3
2742 if test x$gas = xyes
2744 tmake_file=mips/t-mips-gas
2746 extra_passes="mips-tfile mips-tdump"
2748 if test x$gnu_ld != xyes
2753 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2754 tm_file="mips/osfrose.h ${tm_file}"
2755 xmake_file=mips/x-osfrose
2756 tmake_file=mips/t-osfrose
2757 extra_objs=halfpic.o
2760 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2761 tm_file=mips/dec-osf1.h
2762 if test x$stabs = xyes; then
2763 tm_file="${tm_file} dbx.h"
2765 xmake_file=mips/x-dec-osf1
2766 if test x$gas = xyes
2768 tmake_file=mips/t-mips-gas
2770 tmake_file=mips/t-ultrix
2771 extra_passes="mips-tfile mips-tdump"
2773 if test x$gnu_ld != xyes
2778 mips-dec-bsd*) # Decstation running 4.4 BSD
2779 tm_file=mips/dec-bsd.h
2780 if test x$gas = xyes
2782 tmake_file=mips/t-mips-gas
2784 tmake_file=mips/t-ultrix
2785 extra_passes="mips-tfile mips-tdump"
2787 if test x$gnu_ld != xyes
2792 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2793 tm_file=mips/netbsd.h
2794 # On NetBSD, the headers are already okay, except for math.h.
2797 mips*-*-linux*) # Linux MIPS, either endian.
2800 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2801 *) tm_file="mips/elf.h mips/linux.h" ;;
2804 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2807 if test x$enable_threads = xyes; then
2811 mips*el-*-openbsd*) # mips little endian
2812 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2814 mips*-*-openbsd*) # mips big endian
2815 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2816 tm_file="mips/openbsd-be.h ${tm_file}"
2818 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2819 tm_file="mips/news4.h ${tm_file}"
2820 if test x$stabs = xyes; then
2821 tm_file="${tm_file} dbx.h"
2823 if test x$gas = xyes
2825 tmake_file=mips/t-mips-gas
2827 extra_passes="mips-tfile mips-tdump"
2829 if test x$gnu_ld != xyes
2833 xmake_file=mips/x-sony
2835 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2836 # That is based on svr4.
2837 # t-svr4 is not right because this system doesn't use ELF.
2838 tm_file="mips/news5.h ${tm_file}"
2839 if test x$stabs = xyes; then
2840 tm_file="${tm_file} dbx.h"
2843 if test x$gas = xyes
2845 tmake_file=mips/t-mips-gas
2847 extra_passes="mips-tfile mips-tdump"
2849 if test x$gnu_ld != xyes
2854 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2855 tm_file="mips/svr4-5.h mips/svr4-t.h"
2856 if test x$stabs = xyes; then
2857 tm_file="${tm_file} dbx.h"
2860 xmake_file=mips/x-sysv
2861 if test x$gas = xyes
2863 tmake_file=mips/t-mips-gas
2864 extra_parts="crtbegin.o crtend.o"
2866 tmake_file=mips/t-mips
2867 extra_passes="mips-tfile mips-tdump"
2869 if test x$gnu_ld != xyes
2874 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2875 tm_file="mips/ultrix.h ${tm_file}"
2876 if test x$stabs = xyes; then
2877 tm_file="${tm_file} dbx.h"
2879 xmake_file=mips/x-ultrix
2880 if test x$gas = xyes
2882 tmake_file=mips/t-mips-gas
2884 tmake_file=mips/t-ultrix
2885 extra_passes="mips-tfile mips-tdump"
2887 if test x$gnu_ld != xyes
2893 mips-*-riscos[56789]bsd*)
2895 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2896 if test x$stabs = xyes; then
2897 tm_file="${tm_file} dbx.h"
2899 if test x$gas = xyes
2901 tmake_file=mips/t-bsd-gas
2903 tmake_file=mips/t-bsd
2904 extra_passes="mips-tfile mips-tdump"
2906 if test x$gnu_ld != xyes
2912 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2914 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2915 if test x$stabs = xyes; then
2916 tm_file="${tm_file} dbx.h"
2918 if test x$gas = xyes
2920 tmake_file=mips/t-bsd-gas
2922 tmake_file=mips/t-bsd
2923 extra_passes="mips-tfile mips-tdump"
2925 if test x$gnu_ld != xyes
2931 mips-*-riscos[56789]sysv4*)
2933 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2934 if test x$stabs = xyes; then
2935 tm_file="${tm_file} dbx.h"
2937 xmake_file=mips/x-sysv
2938 if test x$gas = xyes
2940 tmake_file=mips/t-svr4-gas
2942 tmake_file=mips/t-svr4
2943 extra_passes="mips-tfile mips-tdump"
2945 if test x$gnu_ld != xyes
2951 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2953 tm_file="mips/svr4-4.h ${tm_file}"
2954 if test x$stabs = xyes; then
2955 tm_file="${tm_file} dbx.h"
2958 xmake_file=mips/x-sysv
2959 if test x$gas = xyes
2961 tmake_file=mips/t-svr4-gas
2963 tmake_file=mips/t-svr4
2964 extra_passes="mips-tfile mips-tdump"
2966 if test x$gnu_ld != xyes
2972 mips-*-riscos[56789]sysv*)
2974 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2975 if test x$stabs = xyes; then
2976 tm_file="${tm_file} dbx.h"
2979 xmake_file=mips/x-sysv
2980 if test x$gas = xyes
2982 tmake_file=mips/t-svr3-gas
2984 tmake_file=mips/t-svr3
2985 extra_passes="mips-tfile mips-tdump"
2987 if test x$gnu_ld != xyes
2992 mips-*-sysv* | mips-*-riscos*sysv*)
2993 tm_file="mips/svr3-4.h ${tm_file}"
2994 if test x$stabs = xyes; then
2995 tm_file="${tm_file} dbx.h"
2998 xmake_file=mips/x-sysv
2999 if test x$gas = xyes
3001 tmake_file=mips/t-svr3-gas
3003 tmake_file=mips/t-svr3
3004 extra_passes="mips-tfile mips-tdump"
3006 if test x$gnu_ld != xyes
3012 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3014 tm_file=mips/mips-5.h
3015 if test x$stabs = xyes; then
3016 tm_file="${tm_file} dbx.h"
3018 if test x$gas = xyes
3020 tmake_file=mips/t-mips-gas
3022 extra_passes="mips-tfile mips-tdump"
3024 if test x$gnu_ld != xyes
3032 tm_file=mips/ecoffl.h
3033 if test x$stabs = xyes; then
3034 tm_file="${tm_file} dbx.h"
3036 tmake_file=mips/t-ecoff
3039 tm_file="gofast.h mips/ecoff.h"
3040 if test x$stabs = xyes; then
3041 tm_file="${tm_file} dbx.h"
3043 tmake_file=mips/t-ecoff
3046 tm_file="mips/elfl.h"
3047 tmake_file=mips/t-elf
3050 tm_file="mips/elf.h"
3051 tmake_file=mips/t-elf
3054 tm_file="mips/elfl64.h"
3055 tmake_file=mips/t-elf
3057 mips64orionel-*-elf*)
3058 tm_file="mips/elforion.h mips/elfl64.h"
3059 tmake_file=mips/t-elf
3062 tm_file="mips/elf64.h"
3063 tmake_file=mips/t-elf
3066 tm_file="mips/elforion.h mips/elf64.h"
3067 tmake_file=mips/t-elf
3069 mips64orion-*-rtems*)
3070 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3071 tmake_file="mips/t-elf t-rtems"
3074 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3075 tmake_file=mips/t-r3900
3078 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3079 tmake_file=mips/t-r3900
3081 mips-*-*) # Default MIPS RISC-OS 4.0.
3082 if test x$stabs = xyes; then
3083 tm_file="${tm_file} dbx.h"
3085 if test x$gas = xyes
3087 tmake_file=mips/t-mips-gas
3089 extra_passes="mips-tfile mips-tdump"
3091 if test x$gnu_ld != xyes
3099 tm_file="mn10200/mn10200.h"
3100 if test x$stabs = xyes
3102 tm_file="${tm_file} dbx.h"
3108 tm_file="mn10300/mn10300.h"
3109 if test x$stabs = xyes
3111 tm_file="${tm_file} dbx.h"
3116 tm_file=ns32k/encore.h
3120 tm_file=ns32k/sequent.h
3124 tm_file=ns32k/tek6100.h
3128 tm_file=ns32k/tek6200.h
3132 tm_file=ns32k/merlin.h
3136 tm_file=ns32k/pc532-mach.h
3140 tm_file=ns32k/pc532-min.h
3141 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3146 tm_file=ns32k/netbsd.h
3147 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3148 # On NetBSD, the headers are already okay, except for math.h.
3153 tm_file="${tm_file} pdp11/2bsd.h"
3163 tm_file="svr4.h pj/linux.h ${tm_file}"
3168 tm_file="svr4.h pj/pjl.h ${tm_file}"
3175 xmake_file=romp/x-mach
3182 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3186 tm_file=rs6000/beos.h
3187 xm_file=rs6000/xm-beos.h
3188 tmake_file=rs6000/t-beos
3189 xmake_file=rs6000/x-beos
3192 tm_file=rs6000/sysv4.h
3193 xm_file="rs6000/xm-sysv4.h"
3194 xm_defines="USG POSIX"
3195 extra_headers=ppc-asm.h
3196 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3197 xmake_file=rs6000/x-sysv4
3200 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3201 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3202 extra_headers=ppc-asm.h
3205 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3206 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3207 extra_headers=ppc-asm.h
3210 tm_file="rs6000/sysv4.h"
3211 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3212 extra_headers=ppc-asm.h
3215 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3216 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3217 extra_headers=ppc-asm.h
3220 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3221 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3222 extra_headers=ppc-asm.h
3224 powerpc-*-linux*libc1)
3225 tm_file="rs6000/sysv4.h rs6000/linux.h"
3226 xm_file=rs6000/xm-sysv4.h
3227 out_file=rs6000/rs6000.c
3228 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3230 extra_headers=ppc-asm.h
3231 if test x$enable_threads = xyes; then
3236 tm_file="rs6000/sysv4.h rs6000/linux.h"
3237 xm_file="rs6000/xm-sysv4.h"
3238 xm_defines="USG ${xm_defines}"
3239 out_file=rs6000/rs6000.c
3240 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3242 extra_headers=ppc-asm.h
3243 if test x$enable_threads = xyes; then
3247 powerpc-wrs-vxworks*)
3249 xm_file="rs6000/xm-sysv4.h"
3250 xm_defines="USG POSIX"
3251 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3252 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3253 extra_headers=ppc-asm.h
3254 thread_file='vxworks'
3256 powerpcle-wrs-vxworks*)
3258 xm_file="rs6000/xm-sysv4.h"
3259 xm_defines="USG POSIX"
3260 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3261 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3262 extra_headers=ppc-asm.h
3263 thread_file='vxworks'
3266 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3267 xm_file="rs6000/xm-sysv4.h"
3268 xm_defines="USG POSIX"
3269 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3270 xmake_file=rs6000/x-sysv4
3271 extra_headers=ppc-asm.h
3274 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3275 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3276 extra_headers=ppc-asm.h
3278 powerpcle-*-eabisim*)
3279 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3280 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3281 extra_headers=ppc-asm.h
3284 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3285 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3286 extra_headers=ppc-asm.h
3288 powerpcle-*-solaris2*)
3289 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3290 xm_file="rs6000/xm-sysv4.h"
3291 xm_defines="USG POSIX"
3292 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3293 xmake_file=rs6000/x-sysv4
3294 extra_headers=ppc-asm.h
3297 rs6000-ibm-aix3.[01]*)
3299 tm_file=rs6000/aix31.h
3300 xmake_file=rs6000/x-aix31
3305 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3307 tm_file=rs6000/aix3newas.h
3308 if test x$host != x$target
3310 tmake_file=rs6000/t-xnewas
3312 tmake_file=rs6000/t-newas
3318 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3320 tm_file=rs6000/aix41.h
3321 if test x$host != x$target
3323 tmake_file=rs6000/t-xnewas
3325 tmake_file=rs6000/t-newas
3327 if test "$gnu_ld" = yes
3329 xmake_file=rs6000/x-aix41-gld
3331 tmake_file='rs6000/t-newas'
3333 xmake_file=rs6000/x-aix41
3338 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3340 tm_file=rs6000/aix43.h
3341 tmake_file=rs6000/t-aix43
3342 xmake_file=rs6000/x-aix41
3348 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3350 tm_file=rs6000/aix43.h
3351 tmake_file=rs6000/t-aix43
3352 xmake_file=rs6000/x-aix41
3366 tm_file=rs6000/mach.h
3367 xm_file="${xm_file} rs6000/xm-mach.h"
3368 xmake_file=rs6000/x-mach
3372 tm_file=rs6000/lynx.h
3373 xm_file=rs6000/xm-lynx.h
3374 tmake_file=rs6000/t-rs6000
3375 xmake_file=rs6000/x-lynx
3379 tmake_file="sh/t-sh sh/t-elf"
3380 tm_file="sh/sh.h sh/elf.h"
3384 tmake_file="sh/t-sh sh/t-elf t-rtems"
3385 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
3389 tmake_file="sh/t-sh t-rtems"
3390 tm_file="sh/sh.h sh/rtems.h"
3394 tm_file="sh/sh.h sh/elf.h sh/linux.h"
3395 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3398 if test x$enable_threads = xyes; then
3408 xm_file="xm-alloca.h ${xm_file}"
3411 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3412 tm_file=sparc/vxsparc.h
3413 tmake_file=sparc/t-vxsparc
3415 thread_file='vxworks'
3418 tmake_file=sparc/t-sparcbare
3419 tm_file="sparc/aout.h libgloss.h"
3422 tm_file=sparc/netbsd.h
3427 # we need collect2 until our bug is fixed...
3435 tmake_file=sparc/t-elf
3436 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3440 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3441 xm_file="${xm_file} sparc/xm-linux.h"
3442 tm_file=sparc/linux-aout.h
3446 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3447 xm_file="${xm_file} sparc/xm-linux.h"
3449 tm_file=sparc/linux.h
3450 tmake_file="t-linux t-linux-gnulibc1"
3451 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3455 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3456 xm_file="${xm_file} sparc/xm-linux.h"
3458 tm_file=sparc/linux.h
3459 tmake_file="t-linux"
3460 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3462 if test x$enable_threads = xyes; then
3468 if test x$gas = xyes
3470 tm_file=sparc/lynx.h
3472 tm_file=sparc/lynx-ng.h
3474 xm_file=sparc/xm-lynx.h
3475 tmake_file=sparc/t-sunos41
3479 tmake_file="sparc/t-sparcbare t-rtems"
3480 tm_file=sparc/rtems.h
3482 sparc-*-rtems*|sparc-*-rtemself*)
3483 tm_file="sparc/rtemself.h"
3484 tmake_file="sparc/t-elf t-rtems"
3485 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3489 sparcv9-*-solaris2*)
3490 if test x$gnu_ld = xyes
3492 tm_file=sparc/sol2-64.h
3494 tm_file=sparc/sol2-sld-64.h
3496 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3497 xm_defines="USG POSIX"
3498 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3499 if test x$gnu_ld = xyes; then
3500 tmake_file="$tmake_file sparc/t-slibgcc"
3502 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3504 xmake_file=sparc/x-sysv4
3505 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3507 if test x${enable_threads} = x ; then
3508 enable_threads=$have_pthread_h
3509 if test x${enable_threads} = x ; then
3510 enable_threads=$have_thread_h
3513 if test x${enable_threads} = xyes ; then
3514 if test x${have_pthread_h} = xyes ; then
3517 thread_file='solaris'
3521 sparc-hal-solaris2*)
3522 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3523 xm_defines="USG POSIX"
3524 tm_file="sparc/sol2.h sparc/hal.h"
3525 tmake_file="sparc/t-halos sparc/t-sol2"
3526 if test x$gnu_ld = xyes; then
3527 tmake_file="$tmake_file sparc/t-slibgcc"
3529 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3531 xmake_file=sparc/x-sysv4
3532 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3543 thread_file='solaris'
3546 if test x$gnu_ld = xyes
3548 tm_file=sparc/sol2.h
3550 tm_file=sparc/sol2-sld.h
3552 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3553 xm_defines="USG POSIX"
3554 tmake_file=sparc/t-sol2
3555 if test x$gnu_ld = xyes; then
3556 tmake_file="$tmake_file sparc/t-slibgcc"
3558 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3560 xmake_file=sparc/x-sysv4
3561 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3562 # At the moment, 32-to-64 cross compilation doesn't work.
3565 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3566 #changequote([,])dnl
3568 # if test x$gnu_ld = xyes
3570 # tm_file=sparc/sol2-64.h
3572 # tm_file=sparc/sol2-sld-64.h
3574 # tmake_file="$tmake_file sparc/t-sol2-64"
3587 if test x${enable_threads} = x; then
3588 enable_threads=$have_pthread_h
3589 if test x${enable_threads} = x; then
3590 enable_threads=$have_thread_h
3593 if test x${enable_threads} = xyes; then
3594 if test x${have_pthread_h} = xyes; then
3597 thread_file='solaris'
3602 tm_file=sparc/sunos4.h
3603 tmake_file=sparc/t-sunos40
3607 tm_file=sparc/sunos4.h
3608 tmake_file=sparc/t-sunos41
3610 if test x$gas = xyes; then
3611 tm_file="${tm_file} sparc/sun4gas.h"
3615 tm_file=sparc/sun4o3.h
3619 tm_file=sparc/sysv4.h
3620 xm_file="sparc/xm-sysv4.h"
3621 xm_defines="USG POSIX"
3623 xmake_file=sparc/x-sysv4
3624 extra_parts="crtbegin.o crtend.o"
3627 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3628 xm_defines="USG POSIX"
3629 tm_file=sparc/vxsim.h
3630 tmake_file=sparc/t-vxsparc
3631 xmake_file=sparc/x-sysv4
3634 tm_file="sparc/splet.h libgloss.h"
3635 tmake_file=sparc/t-splet
3638 tm_file="sparc/litecoff.h libgloss.h"
3639 tmake_file=sparc/t-sparclite
3642 tm_file="sparc/lite.h aoutos.h libgloss.h"
3643 tmake_file=sparc/t-sparclite
3646 tm_file="sparc/liteelf.h"
3647 tmake_file=sparc/t-sparclite
3648 extra_parts="crtbegin.o crtend.o"
3651 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3652 tmake_file=sparc/t-sp86x
3655 tm_file="sparc/sp86x-elf.h"
3656 tmake_file=sparc/t-sp86x
3657 extra_parts="crtbegin.o crtend.o"
3660 tmake_file=sparc/t-sp64
3661 tm_file=sparc/sp64-aout.h
3664 tmake_file=sparc/t-sp64
3665 tm_file=sparc/sp64-elf.h
3666 extra_parts="crtbegin.o crtend.o"
3668 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3669 tmake_file="t-linux sparc/t-linux64"
3670 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3671 tm_file=sparc/linux64.h
3673 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3675 if test x$enable_threads = xyes; then
3682 *** The Thumb targets have been depreciated. The equivalent
3683 *** ARM based toolchain can now generated Thumb instructions
3684 *** when the -mthumb switch is given to the compiler.])
3688 tm_file="v850/rtems.h"
3689 xm_file="v850/xm-v850.h"
3690 tmake_file="v850/t-v850 t-rtems"
3691 if test x$stabs = xyes
3693 tm_file="${tm_file} dbx.h"
3698 target_cpu_default="TARGET_CPU_generic"
3700 tm_file="v850/v850.h"
3701 xm_file="v850/xm-v850.h"
3702 tmake_file=v850/t-v850
3703 if test x$stabs = xyes
3705 tm_file="${tm_file} dbx.h"
3709 vax-*-bsd*) # vaxen running BSD
3713 vax-*-sysv*) # vaxen running system V
3714 tm_file="${tm_file} vax/vaxv.h"
3719 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3725 tmake_file="${tmake_file} vax/t-openbsd"
3726 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3727 xm_file="xm-openbsd.h vax/xm-vax.h"
3731 vax-*-ultrix*) # vaxen running ultrix
3732 tm_file="${tm_file} vax/ultrix.h"
3735 vax-*-vms*) # vaxen running VMS
3736 xm_file=vax/xm-vms.h
3740 vax-*-*) # vax default entry
3744 xm_file="${xm_file} xm-svr3"
3748 echo "Configuration $machine not supported" 1>&2
3755 ;; # Existing GNU/Linux systems do not use the GNU setup.
3757 # On the GNU system, the setup is just about the same on
3758 # each different CPU. The specific machines that GNU
3759 # supports are matched above and just set $cpu_type.
3760 xm_file="xm-gnu.h ${xm_file}"
3761 tm_file=${cpu_type}/gnu.h
3762 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3763 # GNU always uses ELF.
3765 # GNU tools are the only tools.
3768 xmake_file=x-linux # These details are the same as Linux.
3769 tmake_file=t-gnu # These are not.
3772 xmake_try_sysv=x-sysv
3773 install_headers_dir=install-headers-cpio
3776 install_headers_dir=install-headers-cpio
3780 # Distinguish i[34567]86
3781 # Also, do not run mips-tfile on MIPS if using gas.
3782 # Process --with-cpu= for PowerPC/rs6000
3783 target_cpu_default2=
3786 target_cpu_default2=1
3789 case $target_alias in
3791 target_cpu_default2=4
3794 target_cpu_default2=2
3798 i686-*-* | i786-*-*)
3799 target_cpu_default2=3
3806 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3809 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3812 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3815 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3818 target_cpu_default2="MASK_CPU_EV5"
3822 if test x$gas = xyes
3824 if test "$target_cpu_default2" = ""
3826 target_cpu_default2="MASK_GAS"
3828 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3833 case "x$with_cpu" in
3836 target_cpu_default2="TARGET_CPU_generic"
3839 # Distinguish cores, and major variants
3840 # arm7m doesn't exist, but D & I don't affect code
3842 xarm[23678] | xarm250 | xarm[67][01]0 \
3843 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3844 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3845 | xstrongarm | xstrongarm110 | xstrongarm1100)
3847 target_cpu_default2="TARGET_CPU_$with_cpu"
3851 echo "--with-cpu must be passed a value" 1>&2
3856 if test x$pass2done = xyes
3858 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3865 mips*-*-ecoff* | mips*-*-elf*)
3866 if test x$gas = xyes
3868 if test x$gnu_ld = xyes
3870 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3872 target_cpu_default2="MASK_GAS"
3877 if test x$gas = xyes
3879 target_cpu_default2="MASK_GAS"
3882 powerpc*-*-* | rs6000-*-*)
3883 case "x$with_cpu" in
3887 xcommon | xpower | xpower2 | xpowerpc | xrios \
3888 | xrios1 | xrios2 | xrsc | xrsc1 \
3889 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3890 | xec603e | x740 | x750 | x401 \
3891 | x403 | x505 | x801 | x821 | x823 | x860)
3892 target_cpu_default2="\"$with_cpu\""
3896 echo "--with-cpu must be passed a value" 1>&2
3901 if test x$pass2done = xyes
3903 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3910 case ".$with_cpu" in
3912 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3914 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3915 target_cpu_default2="TARGET_CPU_$with_cpu"
3918 if test x$pass2done = xyes
3920 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3928 if test "$target_cpu_default2" != ""
3930 if test "$target_cpu_default" != ""
3932 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3934 target_cpu_default=$target_cpu_default2
3938 # No need for collect2 if we have the GNU linker.
3939 # Actually, there is now; GNU ld doesn't handle the EH info or
3940 # collecting for shared libraries.
3947 # Save data on machine being used to compile GCC in build_xm_file.
3948 # Save data on host machine in vars host_xm_file and host_xmake_file.
3949 if test x$pass1done = x
3951 if test x"$xm_file" = x
3952 then build_xm_file=$cpu_type/xm-$cpu_type.h
3953 else build_xm_file=$xm_file
3955 build_xm_defines=$xm_defines
3956 build_install_headers_dir=$install_headers_dir
3957 build_exeext=$exeext
3960 if test x$pass2done = x
3962 if test x"$xm_file" = x
3963 then host_xm_file=$cpu_type/xm-$cpu_type.h
3964 else host_xm_file=$xm_file
3966 host_xm_defines=$xm_defines
3967 if test x"$xmake_file" = x
3968 then xmake_file=$cpu_type/x-$cpu_type
3970 host_xmake_file="$xmake_file"
3971 host_truncate_target=$truncate_target
3972 host_extra_gcc_objs=$extra_gcc_objs
3973 host_extra_objs=$extra_host_objs
3980 extra_objs="${host_extra_objs} ${extra_objs}"
3982 # Default the target-machine variables that were not explicitly set.
3983 if test x"$tm_file" = x
3984 then tm_file=$cpu_type/$cpu_type.h; fi
3986 if test x$extra_headers = x
3987 then extra_headers=; fi
3989 if test x"$xm_file" = x
3990 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3992 if test x$md_file = x
3993 then md_file=$cpu_type/$cpu_type.md; fi
3995 if test x$out_file = x
3996 then out_file=$cpu_type/$cpu_type.c; fi
3998 if test x"$tmake_file" = x
3999 then tmake_file=$cpu_type/t-$cpu_type
4002 if test x"$dwarf2" = xyes
4003 then tm_file="$tm_file tm-dwarf2.h"
4006 if test x$float_format = x
4007 then float_format=i64
4010 if test $float_format = none
4011 then float_h_file=Makefile.in
4012 else float_h_file=float-$float_format.h
4015 # Handle cpp installation.
4016 if test x$enable_cpp != xno
4018 tmake_file="$tmake_file t-install-cpp"
4021 # Say what files are being used for the output code and MD file.
4022 echo "Using \`$srcdir/config/$out_file' to output insns."
4023 echo "Using \`$srcdir/config/$md_file' as machine description file."
4026 for f in $tm_file; do
4029 if test $count = ax; then
4030 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4032 echo "Using the following target machine macro files:"
4033 for f in $tm_file; do
4034 echo " $srcdir/config/$f"
4039 for f in $host_xm_file; do
4042 if test $count = ax; then
4043 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4045 echo "Using the following host machine macro files:"
4046 for f in $host_xm_file; do
4047 echo " $srcdir/config/$f"
4051 if test "$host_xm_file" != "$build_xm_file"; then
4053 for f in $build_xm_file; do
4056 if test $count = ax; then
4057 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4059 echo "Using the following build machine macro files:"
4060 for f in $build_xm_file; do
4061 echo " $srcdir/config/$f"
4066 if test x$thread_file = x; then
4067 if test x$target_thread_file != x; then
4068 thread_file=$target_thread_file
4070 thread_file='single'
4074 # Set up the header files.
4075 # $links is the list of header files to create.
4076 # $vars is the list of shell variables with file names to include.
4077 # auto-host.h is the file containing items generated by autoconf and is
4078 # the first file included by config.h.
4080 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4082 # If host=build, it is correct to have hconfig include auto-host.h
4083 # as well. If host!=build, we are in error and need to do more
4084 # work to find out the build config parameters.
4085 if test x$host = x$build
4087 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4089 # We create a subdir, then run autoconf in the subdir.
4090 # To prevent recursion we set host and build for the new
4091 # invocation of configure to the build for this invocation
4098 /*) realsrcdir=${srcdir};;
4099 *) realsrcdir=../${srcdir};;
4101 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4102 --target=$target --host=$build --build=$build
4104 # We just finished tests for the build machine, so rename
4105 # the file auto-build.h in the gcc directory.
4106 mv auto-host.h ../auto-build.h
4109 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4112 xm_file="gansidecl.h ${xm_file}"
4113 tm_file="gansidecl.h ${tm_file}"
4115 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4116 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4117 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4120 if test -f config.status; then mv -f config.status config.bak; fi
4123 while test -n "$vars"
4125 set $vars; var=$1; shift; vars=$*
4126 set $links; link=$1; shift; links=$*
4127 set $defines; define=$1; shift; defines=$*
4130 # Make sure the file is created, even if it is empty.
4133 # Define TARGET_CPU_DEFAULT if the system wants one.
4134 # This substitutes for lots of *.h files.
4135 if test "$target_cpu_default" != "" -a $link = tm.h
4137 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4140 for file in `eval echo '$'$var`; do
4142 auto-host.h | auto-build.h )
4145 echo '#ifdef IN_GCC' >>$link
4148 echo "#include \"$file\"" >>$link
4150 auto-host.h | auto-build.h )
4153 echo '#endif' >>$link
4158 for def in `eval echo '$'$define`; do
4159 echo "#ifndef $def" >>$link
4160 echo "#define $def" >>$link
4161 echo "#endif" >>$link
4165 # Truncate the target if necessary
4166 if test x$host_truncate_target != x; then
4167 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4170 # Get the version trigger filename from the toplevel
4171 if test "${with_gcc_version_trigger+set}" = set; then
4172 gcc_version_trigger=$with_gcc_version_trigger
4174 gcc_version_trigger=${srcdir}/version.c
4177 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
4180 # Internationalization
4182 VERSION="$gcc_version"
4183 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4184 [Define to the name of the distribution.])
4185 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4186 [Define to the version of the distribution.])
4192 # Enable NLS support by default
4194 [ --enable-nls use Native Language Support (default)],
4197 # if cross compiling, disable NLS support.
4198 # It's not worth the trouble, at least for now.
4200 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4201 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4205 # if NLS is enabled, also enable check in po subdir
4206 if test $enable_nls = yes; then
4215 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4217 # Windows32 Registry support for specifying GCC installation paths.
4218 AC_ARG_ENABLE(win32-registry,
4219 [ --disable-win32-registry
4220 Disable lookup of installation paths in the
4221 Registry on Windows hosts.
4222 --enable-win32-registry Enable registry lookup (default).
4223 --enable-win32-registry=KEY
4224 Use KEY instead of GCC version as the last portion
4225 of the registry key.],,)
4227 AC_MSG_CHECKING(whether windows registry support is requested)
4228 if test x$enable_win32_registry != xno; then
4229 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4230 [Define to 1 if installation paths should be looked up in Windows32
4231 Registry. Ignored on non windows32 hosts.])
4237 # Check if user specified a different registry key.
4238 case x${enable_win32_registry} in
4241 gcc_cv_win32_registry_key="$VERSION"
4244 # no registry lookup.
4245 gcc_cv_win32_registry_key=''
4248 # user-specified key.
4249 gcc_cv_win32_registry_key="$enable_win32_registry"
4253 if test x$enable_win32_registry != xno; then
4254 AC_MSG_CHECKING(registry key on windows hosts)
4255 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4256 [Define to be the last portion of registry key on windows hosts.])
4257 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4260 # Get an absolute path to the GCC top-level source directory
4266 # Conditionalize the makefile for this host machine.
4267 # Make-host contains the concatenation of all host makefile fragments
4268 # [there can be more than one]. This file is built by configure.frag.
4269 host_overrides=Make-host
4270 dep_host_xmake_file=
4271 for f in .. ${host_xmake_file}
4273 if test -f ${srcdir}/config/$f
4275 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4279 # Conditionalize the makefile for this target machine.
4280 # Make-target contains the concatenation of all host makefile fragments
4281 # [there can be more than one]. This file is built by configure.frag.
4282 target_overrides=Make-target
4284 for f in .. ${tmake_file}
4286 if test -f ${srcdir}/config/$f
4288 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4292 # If the host doesn't support symlinks, modify CC in
4293 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4294 # Otherwise, we can use "CC=$(CC)".
4296 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4298 cc_set_by_configure="\$(CC)"
4299 quoted_cc_set_by_configure="\$(CC)"
4300 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4303 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4305 symbolic_link="cp -p"
4309 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4310 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4311 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4315 out_object_file=`basename $out_file .c`.o
4318 for f in $tm_file; do
4321 tm_file_list="${tm_file_list} $f" ;;
4322 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4327 for f in $host_xm_file; do
4329 auto-host.h | gansidecl.h | hwint.h )
4330 host_xm_file_list="${host_xm_file_list} $f" ;;
4331 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4336 for f in $build_xm_file; do
4338 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4339 build_xm_file_list="${build_xm_file_list} $f" ;;
4340 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4344 # Define macro CROSS_COMPILE in compilation
4345 # if this is a cross-compiler.
4346 # Also use all.cross instead of all.internal
4347 # and add cross-make to Makefile.
4348 cross_overrides="/dev/null"
4349 if test x$host != x$target
4351 cross_defines="CROSS=-DCROSS_COMPILE"
4352 cross_overrides="${topdir}/cross-make"
4355 # If this is a cross-compiler that does not
4356 # have its own set of headers then define
4359 # If this is using newlib, then define inhibit_libc in
4360 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4361 # libgcc.a, but that's OK because newlib should have its own version of
4364 if [test x$host != x$target] && [test x$with_headers = x]; then
4365 inhibit_libc=-Dinhibit_libc
4367 if [test x$with_newlib = xyes]; then
4368 inhibit_libc=-Dinhibit_libc
4371 AC_SUBST(inhibit_libc)
4373 # When building gcc with a cross-compiler, we need to fix a few things.
4374 # This must come after cross-make as we want all.build to override
4376 build_overrides="/dev/null"
4377 if test x$build != x$host
4379 build_overrides="${topdir}/build-make"
4382 # Expand extra_headers to include complete path.
4383 # This substitutes for lots of t-* files.
4385 if test "x$extra_headers" = x
4388 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4389 for file in $extra_headers;
4391 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4395 if test x$use_collect2 = xno; then
4399 # Add a definition of USE_COLLECT2 if system wants one.
4400 # Also tell toplev.c what to do.
4401 # This substitutes for lots of t-* files.
4402 if test x$use_collect2 = x
4407 will_use_collect2="collect2"
4408 maybe_use_collect2="-DUSE_COLLECT2"
4412 # Set MD_DEPS if the real md file is in md.pre-cpp.
4413 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4414 # for line oriented comments, so we must always use a GNU cpp. If
4415 # building gcc with a cross compiler, use the cross compiler just
4416 # built. Otherwise, we can use the cpp just built.
4418 if test "x$md_cppflags" = x
4420 md_file_sub=$srcdir/config/$md_file
4425 # If we have gas in the build tree, make a link to it.
4426 if test -f ../gas/Makefile; then
4427 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4430 # If we have nm in the build tree, make a link to it.
4431 if test -f ../binutils/Makefile; then
4432 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4435 # If we have ld in the build tree, make a link to it.
4436 if test -f ../ld/Makefile; then
4437 # if test x$use_collect2 = x; then
4438 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4440 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4444 # Figure out what assembler we will be using.
4445 AC_MSG_CHECKING(what assembler to use)
4447 gcc_cv_gas_major_version=
4448 gcc_cv_gas_minor_version=
4449 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4450 if test -x "$DEFAULT_ASSEMBLER"; then
4451 gcc_cv_as="$DEFAULT_ASSEMBLER"
4452 elif test -x "$AS"; then
4454 elif test -x as$host_exeext; then
4455 # Build using assembler in the current directory.
4456 gcc_cv_as=./as$host_exeext
4457 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4458 # Single tree build which includes gas.
4459 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4462 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4464 if test x$gcc_cv_gas_version != x; then
4469 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4470 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4474 if test "x$gcc_cv_as" = x -a x$host = x$target; then
4476 # Search the same directories that the installed compiler will
4477 # search. Else we may find the wrong assembler and lose. If we
4478 # do not find a suitable assembler binary, then try the user's
4481 # Also note we have to check MD_EXEC_PREFIX before checking the
4482 # user's path. Unfortunately, there is no good way to get at the
4483 # value of MD_EXEC_PREFIX here. So we do a brute force search
4484 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4485 # to be fixed as part of the make/configure rewrite too.
4487 if test "x$exec_prefix" = xNONE; then
4488 if test "x$prefix" = xNONE; then
4489 test_prefix=/usr/local
4494 test_prefix=$exec_prefix
4497 # If the loop below does not find an assembler, then use whatever
4498 # one we can find in the users's path.
4502 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4503 $test_prefix/lib/gcc-lib/$target \
4504 /usr/lib/gcc/$target/$gcc_version \
4505 /usr/lib/gcc/$target \
4506 $test_prefix/$target/bin/$target/$gcc_version \
4507 $test_prefix/$target/bin \
4512 /bsd43/usr/lib/cmplrs/cc \
4513 /usr/cross64/usr/bin \
4514 /usr/lib/cmplrs/cc \
4515 /sysv/usr/lib/cmplrs/cc \
4516 /svr4/usr/lib/cmplrs/cc \
4519 for dir in $test_dirs; do
4520 if test -f $dir/as$host_exeext; then
4521 gcc_cv_as=$dir/as$host_exeext
4526 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4527 AC_MSG_RESULT("newly built gas")
4529 AC_MSG_RESULT($gcc_cv_as)
4532 # Figure out what nm we will be using.
4533 AC_MSG_CHECKING(what nm to use)
4534 if test -x nm$host_exeext; then
4535 gcc_cv_nm=./nm$host_exeext
4536 elif test x$host = x$target; then
4538 gcc_cv_nm=nm$host_exeext
4540 AC_MSG_RESULT($gcc_cv_nm)
4542 # Figure out what assembler alignment features are present.
4543 AC_MSG_CHECKING(assembler alignment features)
4544 gcc_cv_as_alignment_features=
4545 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4546 # Gas version 2.6 and later support for .balign and .p2align.
4547 # bytes to skip when using .p2align.
4548 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
4549 gcc_cv_as_alignment_features=".balign and .p2align"
4550 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4552 # Gas version 2.8 and later support specifying the maximum
4553 # bytes to skip when using .p2align.
4554 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
4555 gcc_cv_as_alignment_features=".p2align including maximum skip"
4556 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4558 elif test x$gcc_cv_as != x; then
4559 # Check if we have .balign and .p2align
4560 echo ".balign 4" > conftest.s
4561 echo ".p2align 2" >> conftest.s
4562 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4563 gcc_cv_as_alignment_features=".balign and .p2align"
4564 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4566 rm -f conftest.s conftest.o
4567 # Check if specifying the maximum bytes to skip when
4568 # using .p2align is supported.
4569 echo ".p2align 4,,7" > conftest.s
4570 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4571 gcc_cv_as_alignment_features=".p2align including maximum skip"
4572 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4574 rm -f conftest.s conftest.o
4576 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4578 AC_MSG_CHECKING(assembler subsection support)
4579 gcc_cv_as_subsections=
4580 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4581 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
4582 gcc_cv_as_subsections="working .subsection -1"
4584 elif test x$gcc_cv_as != x; then
4585 # Check if we have .subsection
4586 echo ".subsection 1" > conftest.s
4587 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4588 gcc_cv_as_subsections=".subsection"
4589 if test x$gcc_cv_nm != x; then
4590 cat > conftest.s <<EOF
4591 conftest_label1: .word 0
4593 conftest_label2: .word 0
4596 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4597 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4598 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4599 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4602 gcc_cv_as_subsections="working .subsection -1"
4607 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4609 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
4610 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4611 [Define if your assembler supports .subsection and .subsection -1 starts
4612 emitting at the beginning of your section.])
4614 AC_MSG_RESULT($gcc_cv_as_subsections)
4616 AC_MSG_CHECKING(assembler weak support)
4618 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4619 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 2 -o "$gcc_cv_gas_major_version" -gt 2; then
4620 gcc_cv_as_weak="yes"
4622 elif test x$gcc_cv_as != x; then
4623 # Check if we have .weak
4624 echo " .weak foobar" > conftest.s
4625 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4626 gcc_cv_as_weak="yes"
4628 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4630 if test x"$gcc_cv_as_weak" = xyes; then
4631 AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])
4633 AC_MSG_RESULT($gcc_cv_as_weak)
4635 AC_MSG_CHECKING(assembler hidden support)
4637 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4638 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 10 -o "$gcc_cv_gas_major_version" -gt 2 && grep 'obj_format = elf' ../gas/Makefile > /dev/null; then
4639 gcc_cv_as_hidden="yes"
4641 elif test x$gcc_cv_as != x; then
4642 # Check if we have .hidden
4643 echo " .hidden foobar" > conftest.s
4644 echo "foobar:" >> conftest.s
4645 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4646 gcc_cv_as_hidden="yes"
4648 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4650 if test x"$gcc_cv_as_hidden" = xyes; then
4651 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4652 [Define if your assembler supports .hidden.])
4654 AC_MSG_RESULT($gcc_cv_as_hidden)
4658 AC_CACHE_CHECK([assembler .register pseudo-op support],
4659 gcc_cv_as_register_pseudo_op, [
4660 gcc_cv_as_register_pseudo_op=unknown
4661 if test x$gcc_cv_as != x; then
4662 # Check if we have .register
4663 echo ".register %g2, #scratch" > conftest.s
4664 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4665 gcc_cv_as_register_pseudo_op=yes
4667 gcc_cv_as_register_pseudo_op=no
4669 rm -f conftest.s conftest.o
4672 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4673 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4674 [Define if your assembler supports .register.])
4677 AC_CACHE_CHECK([assembler supports -relax],
4678 gcc_cv_as_relax_opt, [
4679 gcc_cv_as_relax_opt=unknown
4680 if test x$gcc_cv_as != x; then
4681 # Check if gas supports -relax
4682 echo ".text" > conftest.s
4683 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4684 gcc_cv_as_relax_opt=yes
4686 gcc_cv_as_relax_opt=no
4688 rm -f conftest.s conftest.o
4691 if test "x$gcc_cv_as_relax_opt" = xyes; then
4692 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4693 [Define if your assembler supports -relax option.])
4698 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4699 gcc_cv_as_flags64, [
4700 if test -n "$gcc_cv_as"; then
4701 echo ".xword foo" > conftest.s
4702 gcc_cv_as_flags64=no
4703 for flag in "-xarch=v9" "-64 -Av9"; do
4704 if $gcc_cv_as $flag -o conftest.o conftest.s \
4705 > /dev/null 2>&1; then
4706 gcc_cv_as_flags64=$flag
4710 rm -f conftest.s conftest.o
4712 if test "$gas" = yes; then
4713 gcc_cv_as_flags64="-64 -Av9"
4715 gcc_cv_as_flags64="-xarch=v9"
4719 if test "x$gcc_cv_as_flags64" = xno; then
4721 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4722 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4725 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4726 [Define if the assembler supports 64bit sparc.])
4729 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4733 if test "x$gcc_cv_as_flags64" != xno; then
4734 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4735 gcc_cv_as_offsetable_lo10, [
4736 gcc_cv_as_offsetable_lo10=unknown
4737 if test "x$gcc_cv_as" != x; then
4738 # Check if assembler has offsetable %lo()
4739 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4740 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4741 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4743 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4744 > /dev/null 2>&1; then
4745 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4746 gcc_cv_as_offsetable_lo10=no
4748 gcc_cv_as_offsetable_lo10=yes
4751 gcc_cv_as_offsetable_lo10=no
4753 rm -f conftest.s conftest.o conftest1.s conftest1.o
4756 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4757 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4758 [Define if your assembler supports offsetable %lo().])
4766 AC_MSG_CHECKING(assembler instructions)
4767 gcc_cv_as_instructions=
4768 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4769 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 9 -o "$gcc_cv_gas_major_version" -gt 2; then
4770 gcc_cv_as_instructions="filds fists"
4772 elif test x$gcc_cv_as != x; then
4773 set "filds fists" "filds mem; fists mem"
4776 echo "$2" > conftest.s
4777 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4778 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4782 rm -f conftest.s conftest.o
4784 if test x"$gcc_cv_as_instructions" != x; then
4785 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$gcc_cv_as_instructions" | tr '[a-z ]' '[A-Z_]'`)
4787 AC_MSG_RESULT($gcc_cv_as_instructions)
4791 # Figure out what language subdirectories are present.
4792 # Look if the user specified --enable-languages="..."; if not, use
4793 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4795 if test x"${enable_languages+set}" != xset; then
4796 if test x"${LANGUAGES+set}" = xset; then
4797 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4799 enable_languages=all
4802 if test x"${enable_languages}" = x; then
4803 AC_MSG_ERROR([--enable-languages needs at least one argument])
4807 for lang in ${srcdir}/*/config-lang.in ..
4811 # The odd quoting in the next line works around
4812 # an apparent bug in bash 1.12 on linux.
4814 ${srcdir}/[*]/config-lang.in) ;;
4816 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4817 if test "x$lang_alias" = x
4819 echo "$lang doesn't set \$language." 1>&2
4822 if test x"${enable_languages}" = xall && test x"${lang_alias}" != xCHILL; then
4825 case "${enable_languages}" in
4826 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4834 if test x"${add_this_lang}" = xyes; then
4836 ${srcdir}/ada/config-lang.in)
4837 if test x$gnat = xyes ; then
4838 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4842 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4851 # Make gthr-default.h if we have a thread file.
4853 if test $thread_file != single; then
4854 rm -f gthr-default.h
4855 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4856 gthread_flags=-DHAVE_GTHR_DEFAULT
4858 AC_SUBST(gthread_flags)
4860 # Find out what GC implementation we want, or may, use.
4862 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4863 with the compiler.],
4869 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4872 [if test $ac_cv_func_mmap_anywhere = yes \
4873 || test $ac_cv_func_valloc = yes; then
4879 echo "Using $GGC for garbage collection."
4881 # Use the system's zlib library.
4883 zlibinc="-I\$(srcdir)/../zlib"
4884 AC_ARG_WITH(system-zlib,
4885 [ --with-system-zlib use installed libz],
4892 # Build a new-abi (c++) system
4893 AC_ARG_ENABLE(new-gxx-abi,
4894 [ --enable-new-gxx-abi
4895 select the new abi for g++. You must select an ABI
4896 at configuration time, so that the correct runtime
4897 support is built. You cannot mix ABIs.],
4898 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4899 [Define if you want to always select the new-abi for g++.])
4900 GXX_ABI_FLAG='-fnew-abi'
4901 echo "Building a new-abi g++ compiler."
4903 AC_SUBST(GXX_ABI_FLAG)
4905 # Build a new-libstdc++ system (ie libstdc++-v3)
4906 AC_MSG_CHECKING([for libstdc++ to install])
4907 AC_ARG_ENABLE(libstdcxx-v3,
4908 [ --enable-libstdcxx-v3
4909 enable libstdc++-v3 for building and installation],
4910 [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=no])
4912 if test x$enable_libstdcxx_v3 = xyes; then
4921 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4922 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4923 AC_SUBST(HAVE_LIBSTDCXX_V3)
4925 dnl Very limited version of automake's enable-maintainer-mode
4927 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4928 dnl maintainer-mode is disabled by default
4929 AC_ARG_ENABLE(maintainer-mode,
4930 [ --enable-maintainer-mode enable make rules and dependencies not useful
4931 (and sometimes confusing) to the casual installer],
4932 maintainer_mode=$enableval,
4935 AC_MSG_RESULT($maintainer_mode)
4937 if test "$maintainer_mode" = "yes"; then
4944 # Make empty files to contain the specs and options for each language.
4945 # Then add #include lines to for a compiler that has specs and/or options.
4950 rm -f specs.h options.h gencheck.h
4951 touch specs.h options.h gencheck.h
4952 for subdir in . $subdirs
4954 if test -f $srcdir/$subdir/lang-specs.h; then
4955 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4956 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4958 if test -f $srcdir/$subdir/lang-options.h; then
4959 echo "#include \"$subdir/lang-options.h\"" >>options.h
4960 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4962 if test -f $srcdir/$subdir/$subdir-tree.def; then
4963 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4964 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4968 # These (without "all_") are set in each config-lang.in.
4969 # `language' must be a single word so is spelled singularly.
4975 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
4976 # List of language makefile fragments.
4981 # Add the language fragments.
4982 # Languages are added via two mechanisms. Some information must be
4983 # recorded in makefile variables, these are defined in config-lang.in.
4984 # We accumulate them and plug them into the main Makefile.
4985 # The other mechanism is a set of hooks for each of the main targets
4986 # like `clean', `install', etc.
4988 language_fragments="Make-lang"
4989 language_hooks="Make-hooks"
4991 for s in .. $subdirs
5003 . ${srcdir}/$s/config-lang.in
5004 if test "x$language" = x
5006 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5009 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in $outputs"
5010 all_languages="$all_languages $language"
5011 if test "x$boot_language" = xyes
5013 all_boot_languages="$all_boot_languages $language"
5015 all_compilers="$all_compilers $compilers"
5016 all_stagestuff="$all_stagestuff $stagestuff"
5017 all_diff_excludes="$all_diff_excludes $diff_excludes"
5018 all_headers="$all_headers $headers"
5019 all_outputs="$all_outputs $outputs"
5020 all_lib2funcs="$all_lib2funcs $lib2funcs"
5024 # Since we can't use `::' targets, we link each language in
5025 # with a set of hooks, reached indirectly via lang.${target}.
5029 target_list="all.build all.cross start.encap rest.encap \
5031 install-normal install-common install-info install-man \
5033 mostlyclean clean distclean extraclean maintainer-clean \
5034 stage1 stage2 stage3 stage4"
5035 for t in $target_list
5038 for lang in .. $all_languages
5040 if test $lang != ".."; then
5044 echo "lang.$t: $x" >> Make-hooks
5047 # If we're not building in srcdir, create .gdbinit.
5049 if test ! -f Makefile.in; then
5050 echo "dir ." > .gdbinit
5051 echo "dir ${srcdir}" >> .gdbinit
5052 if test x$gdb_needs_out_file_path = xyes
5054 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5056 if test "x$subdirs" != x; then
5059 echo "dir ${srcdir}/$s" >> .gdbinit
5062 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5065 # Define variables host_canonical and build_canonical
5066 # because some Cygnus local changes in the Makefile depend on them.
5067 build_canonical=${build}
5068 host_canonical=${host}
5070 if test "${host}" != "${target}" ; then
5071 target_subdir=${target}/
5073 AC_SUBST(build_canonical)
5074 AC_SUBST(host_canonical)
5075 AC_SUBST(target_subdir)
5077 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
5078 # absolute path for gcc_tooldir based on inserting the number of up-directory
5079 # movements required to get from $(exec_prefix) to $(prefix) into the basic
5080 # $(libsubdir)/@(unlibsubdir) based path.
5081 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
5082 # make and thus we'd get different behavior depending on where we built the
5084 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
5085 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
5087 changequote(<<, >>)dnl
5088 # An explanation of the sed strings:
5089 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
5090 # -e 's|/$||' match a trailing forward slash and eliminates it
5091 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
5092 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
5094 # (*) Note this pattern overwrites the first character of the string
5095 # with a forward slash if one is not already present. This is not a
5096 # problem because the exact names of the sub-directories concerned is
5097 # unimportant, just the number of them matters.
5099 # The practical upshot of these patterns is like this:
5101 # prefix exec_prefix result
5102 # ------ ----------- ------
5104 # /foo/ /foo/bar ../
5105 # /foo /foo/bar/ ../
5106 # /foo/ /foo/bar/ ../
5107 # /foo /foo/bar/ugg ../../
5110 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
5111 changequote([, ])dnl
5113 AC_SUBST(gcc_tooldir)
5116 # Nothing to do for FLOAT_H, float_format already handled.
5120 # Process the language and host/target makefile fragments.
5121 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5123 # Substitute configuration variables
5125 AC_SUBST(all_boot_languages)
5126 AC_SUBST(all_compilers)
5127 AC_SUBST(all_diff_excludes)
5128 AC_SUBST(all_headers)
5129 AC_SUBST(all_lang_makefiles)
5130 AC_SUBST(all_languages)
5131 AC_SUBST(all_lib2funcs)
5132 AC_SUBST(all_stagestuff)
5133 AC_SUBST(build_exeext)
5134 AC_SUBST(build_install_headers_dir)
5135 AC_SUBST(build_xm_file_list)
5136 AC_SUBST(cc_set_by_configure)
5137 AC_SUBST(quoted_cc_set_by_configure)
5138 AC_SUBST(cpp_install_dir)
5139 AC_SUBST(dep_host_xmake_file)
5140 AC_SUBST(dep_tmake_file)
5141 AC_SUBST(extra_c_flags)
5142 AC_SUBST(extra_headers_list)
5143 AC_SUBST(extra_objs)
5144 AC_SUBST(extra_parts)
5145 AC_SUBST(extra_passes)
5146 AC_SUBST(extra_programs)
5147 AC_SUBST(float_h_file)
5148 AC_SUBST(gcc_gxx_include_dir)
5149 AC_SUBST(gcc_version)
5150 AC_SUBST(gcc_version_trigger)
5151 AC_SUBST(host_exeext)
5152 AC_SUBST(host_extra_gcc_objs)
5153 AC_SUBST(host_xm_file_list)
5155 AC_SUBST(lang_options_files)
5156 AC_SUBST(lang_specs_files)
5157 AC_SUBST(lang_tree_files)
5158 AC_SUBST(local_prefix)
5159 AC_SUBST(maybe_use_collect2)
5161 AC_SUBST(objc_boehm_gc)
5163 AC_SUBST(out_object_file)
5164 AC_SUBST(stage_prefix_set_by_configure)
5165 AC_SUBST(symbolic_link)
5166 AC_SUBST(thread_file)
5167 AC_SUBST(tm_file_list)
5168 AC_SUBST(will_use_collect2)
5171 AC_SUBST_FILE(target_overrides)
5172 AC_SUBST_FILE(host_overrides)
5173 AC_SUBST(cross_defines)
5174 AC_SUBST_FILE(cross_overrides)
5175 AC_SUBST_FILE(build_overrides)
5176 AC_SUBST_FILE(language_fragments)
5177 AC_SUBST_FILE(language_hooks)
5179 # Echo that links are built
5180 if test x$host = x$target
5188 if test x$host != x$build
5190 str3=" on a $build system"
5193 if test "x$str2" != x || test "x$str3" != x
5198 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5200 if test "x$str2" != x || test "x$str3" != x
5202 echo " ${str2}${str3}." 1>&2
5205 # Truncate the target if necessary
5206 if test x$host_truncate_target != x; then
5207 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5210 # Configure the subdirectories
5211 # AC_CONFIG_SUBDIRS($subdirs)
5213 # Create the Makefile
5214 # and configure language subdirectories
5215 AC_OUTPUT($all_outputs,
5217 case x$CONFIG_HEADERS in
5218 xauto-host.h:config.in)
5221 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5222 # bootstrapping and the installation procedure can still use
5223 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5224 # FLAGS_TO_PASS has been modified to solve the problem there.
5225 # This is virtually a duplicate of what happens in configure.lang; we do
5226 # an extra check to make sure this only happens if ln -s can be used.
5227 if test "$symbolic_link" = "ln -s"; then
5228 for d in .. ${subdirs} ; do
5229 if test $d != ..; then
5232 for t in stage1 stage2 stage3 stage4 include
5235 $symbolic_link ../$t $t 2>/dev/null
5241 # Avoid having to add intl to our include paths.
5242 if test -f intl/libintl.h; then
5243 echo creating libintl.h
5244 echo '#include "intl/libintl.h"' >libintl.h
5251 target_alias='${target_alias}'
5253 subdirs='${subdirs}'
5254 symbolic_link='${symbolic_link}'
5255 program_transform_set='${program_transform_set}'
5256 program_transform_name='${program_transform_name}'
5257 dep_host_xmake_file='${dep_host_xmake_file}'
5258 host_xmake_file='${host_xmake_file}'
5259 dep_tmake_file='${dep_tmake_file}'
5260 tmake_file='${tmake_file}'
5261 thread_file='${thread_file}'
5262 gcc_version='${gcc_version}'
5263 gcc_version_trigger='${gcc_version_trigger}'
5264 local_prefix='${local_prefix}'
5265 build_install_headers_dir='${build_install_headers_dir}'
5266 build_exeext='${build_exeext}'
5267 host_exeext='${host_exeext}'
5268 out_file='${out_file}'
5269 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5270 SET_MAKE='${SET_MAKE}'
5271 target_list='${target_list}'
5272 target_overrides='${target_overrides}'
5273 host_overrides='${host_overrides}'
5274 cross_defines='${cross_defines}'
5275 cross_overrides='${cross_overrides}'
5276 build_overrides='${build_overrides}'
5277 cpp_install_dir='${cpp_install_dir}'