1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
8 #GNU CC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2, or (at your option)
13 #GNU CC is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details.
18 #You should have received a copy of the GNU General Public License
19 #along with GNU CC; see the file COPYING. If not, write to
20 #the Free Software Foundation, 59 Temple Place - Suite 330,
21 #Boston, MA 02111-1307, USA.
23 # Initialization and defaults
26 AC_CONFIG_HEADER(auto-host.h:config.in)
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building gcc. Please change the environment variable
57 *** and run configure again.])
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building gcc. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER",
105 [Define to enable the use of a default linker.])
110 [ --with-gnu-as arrange to work with GNU as.],
111 gas_flag="$with_gnu_as",
115 [ --with-as arrange to use the specified as (full pathname).],
116 DEFAULT_ASSEMBLER="$with_as")
117 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
118 if test ! -x "$DEFAULT_ASSEMBLER"; then
119 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
120 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
123 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER",
124 [Define to enable the use of a default assembler.])
129 [ --with-stabs arrange to use stabs instead of host debug format.],
135 [ --with-elf arrange to use ELF instead of host debug format.],
139 # Specify the local prefix
141 AC_ARG_WITH(local-prefix,
142 [ --with-local-prefix=DIR specifies directory to put local include.],
143 [case "${withval}" in
144 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
146 *) local_prefix=$with_local_prefix ;;
149 # Default local prefix if it is empty
150 if test x$local_prefix = x; then
151 local_prefix=/usr/local
154 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
155 # passed in by the toplevel make and thus we'd get different behavior
156 # depending on where we built the sources.
158 # Specify the g++ header file directory
159 AC_ARG_WITH(gxx-include-dir,
160 [ --with-gxx-include-dir=DIR
161 specifies directory to put g++ header files.],
162 [case "${withval}" in
163 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
165 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
168 if test x${gcc_gxx_include_dir} = x; then
169 if test x${enable_version_specific_runtime_libs} = xyes; then
170 gcc_gxx_include_dir='${libsubdir}/include/g++'
172 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
173 changequote(<<, >>)dnl
174 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
179 # Enable expensive internal checks
180 AC_ARG_ENABLE(checking,
181 [ --enable-checking[=LIST]
182 enable expensive run-time checks. With LIST,
183 enable only specific categories of checks.
184 Categories are: misc,tree,rtl,gc,gcac; default
190 ac_gc_always_collect=
191 case "${enableval}" in
192 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;;
194 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
195 set fnord $enableval; shift
200 misc) ac_checking=1 ;;
201 tree) ac_tree_checking=1 ;;
202 rtl) ac_rtl_checking=1 ;;
203 gc) ac_gc_checking=1 ;;
204 gcac) ac_gc_always_collect=1 ;;
205 *) AC_MSG_ERROR(unknown check category $check) ;;
211 # Enable some checks by default for development versions of GCC
212 [ac_checking=1; ac_tree_checking=1; ac_gc_checking=1;])
213 if test x$ac_checking != x ; then
214 AC_DEFINE(ENABLE_CHECKING, 1,
215 [Define if you want more run-time sanity checks. This one gets a grab
216 bag of miscellaneous but relatively cheap checks.])
218 if test x$ac_tree_checking != x ; then
219 AC_DEFINE(ENABLE_TREE_CHECKING, 1,
220 [Define if you want all operations on trees (the basic data
221 structure of the front ends) to be checked for dynamic type safety
222 at runtime. This is moderately expensive.])
224 if test x$ac_rtl_checking != x ; then
225 AC_DEFINE(ENABLE_RTL_CHECKING, 1,
226 [Define if you want all operations on RTL (the basic data structure
227 of the optimizer and back end) to be checked for dynamic type safety
228 at runtime. This is quite expensive.])
230 if test x$ac_gc_checking != x ; then
231 AC_DEFINE(ENABLE_GC_CHECKING, 1,
232 [Define if you want the garbage collector to do object poisoning and
233 other memory allocation checks. This is quite expensive.])
235 if test x$ac_gc_always_collect != x ; then
236 AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT, 1,
237 [Define if you want the garbage collector to operate in maximally
238 paranoid mode, validating the entire heap and collecting garbage at
239 every opportunity. This is extremely expensive.])
244 [ --disable-cpp don't provide a user-visible C preprocessor.],
245 [], [enable_cpp=yes])
247 AC_ARG_WITH(cpp_install_dir,
248 [ --with-cpp-install-dir=DIR
249 install the user visible C preprocessor in DIR
250 (relative to PREFIX) as well as PREFIX/bin.],
251 [if test x$withval = xyes; then
252 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
253 elif test x$withval != xno; then
254 cpp_install_dir=$withval
257 # Link cpplib into the compiler proper, for C/C++/ObjC. Defaults to on.
258 maybe_cpplib=libcpp.a
259 AC_ARG_ENABLE(c-cpplib,
260 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
261 (HIGHLY EXPERIMENTAL).],
262 [if test x$enable_c_cpplib != xyes; then
266 if test x$maybe_cpplib != x ; then
267 AC_DEFINE(USE_CPPLIB, 1,
268 [Define if you want the preprocessor merged into the C and C++ compilers.])
270 AC_SUBST(maybe_cpplib)
272 # Enable Multibyte Characters for C/C++
273 AC_ARG_ENABLE(c-mbchar,
274 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
275 if test x$enable_c_mbchar != xno; then
276 AC_DEFINE(MULTIBYTE_CHARS, 1,
277 [Define if you want the C and C++ compilers to support multibyte
278 character sets for source code.])
282 # Pass with no value to take the default
283 # Pass with a value to specify a thread package
284 AC_ARG_ENABLE(threads,
285 [ --enable-threads enable thread usage for target GCC.
286 --enable-threads=LIB use LIB thread package for target GCC.],,
289 enable_threads_flag=$enable_threads
290 # Check if a valid thread package
291 case x${enable_threads_flag} in
294 target_thread_file='single'
298 target_thread_file=''
300 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
301 xsolaris | xwin32 | xdce | xvxworks | xaix)
302 target_thread_file=$enable_threads_flag
305 echo "$enable_threads is an unknown thread package" 1>&2
310 AC_ARG_ENABLE(objc-gc,
311 [ --enable-objc-gc enable the use of Boehm's garbage collector with
312 the GNU Objective-C runtime.],
313 if test x$enable_objc_gc = xno; then
321 [ --with-dwarf2 force the default debug format to be DWARF2.],
322 dwarf2="$with_dwarf2",
325 AC_ARG_ENABLE(shared,
326 [ --disable-shared don't provide a shared libgcc.],
327 [], [enable_shared=yes])
328 AC_SUBST(enable_shared)
330 # Determine the host, build, and target systems
333 # Find the native compiler
336 # autoconf is lame and doesn't give us any substitution variable for this.
337 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
338 NO_MINUS_C_MINUS_O=yes
340 OUTPUT_OPTION='-o $@'
342 AC_SUBST(NO_MINUS_C_MINUS_O)
343 AC_SUBST(OUTPUT_OPTION)
347 AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
348 ac_cv_prog_cc_no_long_long,
349 [save_CFLAGS="$CFLAGS"
350 CFLAGS="-Wno-long-long"
351 AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
352 ac_cv_prog_cc_no_long_long=no)
353 CFLAGS="$save_CFLAGS"])
355 if test $ac_cv_prog_cc_no_long_long = yes; then
356 strict1_warn="-pedantic -Wno-long-long"
358 AC_SUBST(strict1_warn)
360 # If the native compiler is GCC, we can enable warnings even in stage1.
361 # That's useful for people building cross-compilers, or just running a
364 if test "x$GCC" = "xyes"; then
365 warn_cflags='$(GCC_WARN_CFLAGS)'
367 AC_SUBST(warn_cflags)
369 # Stage specific cflags for build.
375 stage1_cflags="-Wa,-J"
381 AC_SUBST(stage1_cflags)
385 AC_MSG_CHECKING([whether a default assembler was specified])
386 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
387 if test x"$gas_flag" = x"no"; then
388 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
390 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
396 AC_MSG_CHECKING([whether a default linker was specified])
397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
398 if test x"$gnu_ld_flag" = x"no"; then
399 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
401 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
407 AC_MSG_CHECKING(for GNU C library)
408 AC_CACHE_VAL(gcc_cv_glibc,
410 [#include <features.h>],[
411 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
412 #error Not a GNU C library system
416 AC_MSG_RESULT($gcc_cv_glibc)
417 if test $gcc_cv_glibc = yes; then
418 AC_DEFINE(_GNU_SOURCE, 1, [Always define this when using the GNU C Library])
423 # Find some useful tools
435 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
436 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
437 sys/resource.h sys/param.h sys/times.h sys/stat.h \
438 direct.h malloc.h langinfo.h iconv.h)
440 # Check for thread headers.
441 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
442 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
444 # See if GNAT has been installed
445 AC_CHECK_PROG(gnat, gnatbind, yes, no)
447 # Do we have a single-tree copy of texinfo?
448 if test -f $srcdir/../texinfo/Makefile.in; then
449 MAKEINFO='$(objdir)/../texinfo/makeinfo/makeinfo'
450 gcc_cv_prog_makeinfo_modern=yes
451 AC_MSG_RESULT([Using makeinfo from the unified source tree.])
453 # See if makeinfo has been installed and is modern enough
454 # that we can use it.
455 gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version,
456 [GNU texinfo.* \([0-9][0-9.]*\)],
457 [3.1[2-9] | 3.[2-9][0-9] | 4.* | 1.6[89] | 1.7[0-9]])
460 if test $gcc_cv_prog_makeinfo_modern = no; then
462 *** Makeinfo is missing or too old.
463 *** Info documentation will not be built or installed.])
467 BUILD_INFO=info AC_SUBST(BUILD_INFO)
468 INSTALL_INFO=install-info AC_SUBST(INSTALL_INFO)
472 dnl Don't use AC_PROG_LEX; we insist on flex.
473 dnl LEXLIB is not useful in gcc.
474 if test -f $srcdir/../flex/skel.c; then
475 FLEX='$(objdir)/../flex/flex'
477 AC_CHECK_PROG(FLEX, flex, flex, false)
481 # The -L switch is so bison can find its skeleton file.
482 if test -f $srcdir/../bison/bison.simple; then
483 BISON='$(objdir)/../bison/bison -L $(srcdir)/../bison/'
485 AC_CHECK_PROG(BISON, bison, bison, false)
488 # See if the stage1 system preprocessor understands the ANSI C
489 # preprocessor stringification operator.
492 # Use <inttypes.h> only if it exists,
493 # doesn't clash with <sys/types.h>, and declares intmax_t.
494 AC_MSG_CHECKING(for inttypes.h)
495 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
497 [#include <sys/types.h>
498 #include <inttypes.h>],
500 [gcc_cv_header_inttypes_h=yes],
501 gcc_cv_header_inttypes_h=no)])
502 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
503 if test $gcc_cv_header_inttypes_h = yes; then
504 AC_DEFINE(HAVE_INTTYPES_H, 1,
505 [Define if you have a working <inttypes.h> header file.])
509 # Determine if enumerated bitfields are unsigned. ISO C says they can
510 # be either signed or unsigned.
512 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
513 [AC_TRY_RUN(#include <stdlib.h>
514 enum t { BLAH = 128 } ;
515 struct s_t { enum t member : 8; } s ;
519 if (s.member < 0) exit(1);
522 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
523 if test $gcc_cv_enum_bf_unsigned = yes; then
524 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
525 [Define if enumerated bitfields are treated as unsigned values.])
528 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy \
529 strchr strrchr kill getrlimit setrlimit atoll atoq \
530 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
531 fputs_unlocked getrusage valloc iconv nl_langinfo)
533 AC_CHECK_TYPE(ssize_t, int)
535 # Try to determine the array type of the second argument of getgroups
536 # for the target system (int or gid_t).
538 if test "${target}" = "${build}"; then
539 TARGET_GETGROUPS_T=$ac_cv_type_getgroups
542 # This condition may need some tweaking. It should include all
543 # targets where the array type of the second argument of getgroups
544 # is int and the type of gid_t is not equivalent to int.
545 *-*-sunos* | *-*-ultrix*)
546 TARGET_GETGROUPS_T=int
549 TARGET_GETGROUPS_T=gid_t
553 AC_SUBST(TARGET_GETGROUPS_T)
555 gcc_AC_FUNC_VFPRINTF_DOPRNT
556 gcc_AC_FUNC_PRINTF_PTR
560 # Under some versions of uwin, vfork is notoriously buggy and the test
561 # can hang configure; on other versions, vfork exists just as a stub.
562 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
563 ac_cv_func_vfork_works=no
567 AC_FUNC_MMAP_ANYWHERE
570 # We will need to find libiberty.h and ansidecl.h
571 saved_CFLAGS="$CFLAGS"
572 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
573 gcc_AC_CHECK_DECLS(bcopy \
574 getenv atol sbrk abort atof getcwd getwd \
575 strsignal putc_unlocked fputs_unlocked strstr environ \
576 malloc realloc calloc free basename getopt, , ,[
577 #include "gansidecl.h"
578 #include "system.h"])
580 gcc_AC_CHECK_DECLS(getrlimit setrlimit getrusage, , ,[
581 #include "gansidecl.h"
583 #ifdef HAVE_SYS_RESOURCE_H
584 #include <sys/resource.h>
588 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
589 CFLAGS="$saved_CFLAGS"
591 # mkdir takes a single argument on some systems.
592 gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG
602 build_install_headers_dir=install-headers-tar
607 host_truncate_target=
610 # Decode the host machine, then the target machine.
611 # For the host machine, we save the xm_file variable as host_xm_file;
612 # then we decode the target machine and forget everything else
613 # that came from the host machine.
614 for machine in $build $host $target; do
628 # Set this to force installation and use of collect2.
630 # Set this to override the default target model.
632 # Set this to control how the header file directory is installed.
633 install_headers_dir=install-headers-tar
634 # Set this to a non-empty list of args to pass to cpp if the target
635 # wants its .md file passed through cpp.
637 # Set this if directory names should be truncated to 14 characters.
639 # Set this if gdb needs a dir command with `dirname $out_file`
640 gdb_needs_out_file_path=
641 # Set this if the build machine requires executables to have a
644 # Set this to control which thread package will be used.
646 # Reinitialize these from the flag values every loop pass, since some
647 # configure entries modify them.
649 gnu_ld="$gnu_ld_flag"
650 enable_threads=$enable_threads_flag
652 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
653 # updated in each machine entry.
655 cpu_type=`echo $machine | sed 's/-.*$//'`
697 tm_file=${cpu_type}/${cpu_type}.h
698 xm_file=${cpu_type}/xm-${cpu_type}.h
699 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
701 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
703 # On a.out targets, we need to use collect2.
710 # Common parts for linux and openbsd systems
713 xm_defines="HAVE_ATEXIT POSIX BSTRING"
716 tm_file=${cpu_type}/openbsd.h
717 tmake_file="t-libc-ok t-openbsd"
718 # avoid surprises, always provide an xm-openbsd file
719 xm_file=${cpu_type}/xm-openbsd.h
720 # don't depend on processor x-fragments as well
722 if test x$enable_threads = xyes; then
724 tmake_file="${tmake_file} t-openbsd-thread"
730 # Support site-specific machine types.
732 cpu_type=`echo $machine | sed -e 's/-.*//'`
733 rest=`echo $machine | sed -e "s/$cpu_type-//"`
734 xm_file=${cpu_type}/xm-$rest.h
735 tm_file=${cpu_type}/$rest.h
736 if test -f $srcdir/config/${cpu_type}/x-$rest; \
737 then xmake_file=${cpu_type}/x-$rest; \
740 if test -f $srcdir/config/${cpu_type}/t-$rest; \
741 then tmake_file=${cpu_type}/t-$rest; \
747 a29k-*-bsd* | a29k-*-sym1*)
748 tm_file="${tm_file} a29k/unix.h"
750 xmake_file=a29k/x-unix
753 a29k-*-udi | a29k-*-coff)
754 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
755 tmake_file=a29k/t-a29kbare
758 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
759 tmake_file=a29k/t-vx29k
760 extra_parts="crtbegin.o crtend.o"
761 thread_file='vxworks'
763 a29k-*-*) # Default a29k environment.
767 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
769 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
770 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
772 # GAS + IEEE_CONFORMANT
773 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
775 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
776 xmake_file="x-interix alpha/t-pe"
777 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
778 if test x$enable_threads = xyes ; then
781 if test x$stabs = xyes ; then
782 tm_file="${tm_file} dbxcoff.h"
784 #prefix='$$INTERIX_ROOT'/usr/contrib
785 #local_prefix='$$INTERIX_ROOT'/usr/contrib
787 alpha*-*-linux*ecoff*)
788 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
789 target_cpu_default="MASK_GAS"
790 tmake_file="alpha/t-alpha alpha/t-ieee"
795 alpha*-*-linux*libc1*)
796 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
797 target_cpu_default="MASK_GAS"
798 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-crtbe alpha/t-ieee"
799 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
802 if test x$enable_threads = xyes; then
807 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
808 target_cpu_default="MASK_GAS"
809 tmake_file="t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
810 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
813 if test x$enable_threads = xyes; then
818 tm_file="${tm_file} freebsd.h alpha/elf.h alpha/freebsd.h"
819 target_cpu_default="MASK_GAS"
820 tmake_file="t-freebsd alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
821 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
825 case x${enable_threads} in
826 xyes | xpthreads | xposix)
828 tmake_file="${tmake_file} t-freebsd-thread"
833 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
834 target_cpu_default="MASK_GAS"
835 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
836 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
842 # default x-alpha is only appropriate for dec-osf.
843 target_cpu_default="MASK_GAS"
844 tmake_file="alpha/t-alpha alpha/t-ieee"
848 if test x$stabs = xyes
850 tm_file="${tm_file} dbx.h"
852 if test x$gas != xyes
854 extra_passes="mips-tfile mips-tdump"
857 tmake_file="alpha/t-alpha alpha/t-ieee alpha/t-osf"
858 xmake_file=alpha/x-osf
861 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
866 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
869 tm_file="${tm_file} alpha/osf.h"
870 tmake_file="$tmake_file alpha/t-osf4"
871 # Some versions of OSF4 (specifically X4.0-9 296.7) have
872 # a broken tar, so we use cpio instead.
873 install_headers_dir=install-headers-cpio
876 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
877 tmake_file="$tmake_file alpha/t-osf4"
882 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
884 target_cpu_default=MASK_SUPPORT_ARCH
889 tm_file="${tm_file} dbx.h alpha/vxworks.h"
890 tmake_file="alpha/t-alpha alpha/t-ieee"
893 extra_passes="mips-tfile mips-tdump"
896 thread_file='vxworks'
899 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
900 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
901 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
902 xmake_file=winnt/x-winnt
903 extra_host_objs=oldnames.o
904 extra_gcc_objs="spawnv.o oldnames.o"
905 if test x$gnu_ld != xyes
907 extra_programs=ld.exe
909 if test x$enable_threads = xyes; then
915 xm_file="${xm_file} alpha/xm-vms.h"
916 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
919 extra_parts="crtinit.o crtfini.o"
921 arm-*-coff* | armel-*-coff*)
923 tmake_file=arm/t-arm-coff
927 tmake_file=arm/t-arm-coff
928 thread_file='vxworks'
931 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
933 tm_file=arm/riscix1-1.h
936 arm-*-riscix*) # Acorn RISC machine
939 tm_file=arm/rix-gas.h
943 xmake_file=arm/x-riscix
944 tmake_file=arm/t-riscix
947 arm-semi-aout | armel-semi-aout)
949 tmake_file=arm/t-semi
951 arm-semi-aof | armel-semi-aof)
952 tm_file=arm/semiaof.h
953 tmake_file=arm/t-semiaof
957 tmake_file="t-netbsd arm/t-netbsd"
960 arm*-*-linux*oldld*) # ARM GNU/Linux with old ELF linker
961 xm_file=arm/xm-linux.h
963 tm_file="arm/linux-oldld.h arm/linux-elf.h"
966 tm_file="arm/linux-elf26.h $tm_file"
969 tmake_file="t-linux arm/t-linux"
970 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
972 case x${enable_threads} in
973 x | xyes | xpthreads | xposix)
978 arm*-*-linux*) # ARM GNU/Linux with ELF
979 xm_file=arm/xm-linux.h
981 tm_file="arm/linux-elf.h"
984 tm_file="arm/linux-elf26.h $tm_file"
987 tmake_file="t-linux arm/t-linux"
988 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
990 case x${enable_threads} in
991 x | xyes | xpthreads | xposix)
996 arm*-*-uclinux*) # ARM ucLinux
997 tm_file=arm/uclinux-elf.h
998 tmake_file=arm/t-arm-elf
1002 tmake_file=arm/t-arm-aout
1005 tm_file=arm/ecos-elf.h
1006 tmake_file=arm/t-arm-elf
1009 tm_file=arm/unknown-elf.h
1010 tmake_file=arm/t-arm-elf
1013 tm_file=arm/conix-elf.h
1014 tmake_file=arm/t-arm-elf
1017 tm_file=arm/unknown-elf-oabi.h
1018 tmake_file=arm/t-arm-elf
1027 c1-convex-*) # Convex C1
1028 target_cpu_default=1
1031 c2-convex-*) # Convex C2
1032 target_cpu_default=2
1036 target_cpu_default=4
1040 target_cpu_default=8
1044 target_cpu_default=16
1050 tmake_file=c4x/t-c4x
1052 clipper-intergraph-clix*)
1053 tm_file="${tm_file} svr3.h clipper/clix.h"
1054 xm_file=clipper/xm-clix.h
1055 xmake_file=clipper/x-clix
1056 extra_headers=va-clipper.h
1057 extra_parts="crtbegin.o crtend.o"
1058 install_headers_dir=install-headers-cpio
1069 tm_file="fr30/fr30.h"
1070 tmake_file=fr30/t-fr30
1071 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1077 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
1078 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
1079 tmake_file="t-linux pa/t-linux"
1080 extra_parts="crtbegin.o crtend.o"
1083 if test x$enable_threads = xyes; then
1088 target_cpu_default="MASK_PA_11"
1089 tmake_file=pa/t-openbsd
1092 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1093 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
1094 xm_file=pa/xm-papro.h
1098 target_cpu_default="MASK_PA_11"
1099 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1103 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
1104 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
1105 xm_file=pa/xm-papro.h
1109 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
1113 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1114 target_cpu_default="MASK_PA_11"
1118 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
1122 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
1123 xm_file=pa/xm-pahpux.h
1124 xmake_file=pa/x-pa-hpux
1125 if test x$gas = xyes
1127 tm_file="${tm_file} pa/gas.h"
1129 install_headers_dir=install-headers-cpio
1133 hppa1.0-*-hpux8.0[0-2]*)
1135 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1136 xm_file=pa/xm-pahpux.h
1137 xmake_file=pa/x-pa-hpux
1138 if test x$gas = xyes
1140 tm_file="${tm_file} pa/pa-gas.h"
1142 tm_file="pa/pa-oldas.h ${tm_file}"
1144 install_headers_dir=install-headers-cpio
1148 hppa1.1-*-hpux8.0[0-2]*)
1150 target_cpu_default="MASK_PA_11"
1151 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1152 xm_file=pa/xm-pahpux.h
1153 xmake_file=pa/x-pa-hpux
1154 if test x$gas = xyes
1156 tm_file="${tm_file} pa/pa-gas.h"
1158 tm_file="pa/pa-oldas.h ${tm_file}"
1160 install_headers_dir=install-headers-cpio
1164 target_cpu_default="MASK_PA_11"
1165 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1166 xm_file=pa/xm-pahpux.h
1167 xmake_file=pa/x-pa-hpux
1168 if test x$gas = xyes
1170 tm_file="${tm_file} pa/pa-gas.h"
1172 install_headers_dir=install-headers-cpio
1176 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1177 xm_file=pa/xm-pahpux.h
1178 xmake_file=pa/x-pa-hpux
1179 if test x$gas = xyes
1181 tm_file="${tm_file} pa/pa-gas.h"
1183 install_headers_dir=install-headers-cpio
1186 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1187 target_cpu_default="MASK_PA_11"
1188 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1190 xm_file=pa/xm-pahpux.h
1191 xmake_file=pa/x-pa-hpux
1193 if test x$gas = xyes
1195 tm_file="${tm_file} pa/pa-gas.h"
1197 if test x$enable_threads = x; then
1198 enable_threads=$have_pthread_h
1200 case x${enable_threads} in
1202 tmake_file="${tmake_file} pa/t-dce-thr"
1205 install_headers_dir=install-headers-cpio
1209 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1211 xm_file=pa/xm-pahpux.h
1212 xmake_file=pa/x-pa-hpux
1214 if test x$gas = xyes
1216 tm_file="${tm_file} pa/pa-gas.h"
1218 if test x$enable_threads = x; then
1219 enable_threads=$have_pthread_h
1221 case x${enable_threads} in
1223 tmake_file="${tmake_file} pa/t-dce-thr"
1226 install_headers_dir=install-headers-cpio
1230 target_cpu_default="MASK_PA_11"
1231 xm_file=pa/xm-pa64hpux.h
1232 xmake_file=pa/x-pa-hpux
1234 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"
1236 tmake_file=pa/t-pa64
1237 target_cpu_default="(MASK_PA_11|MASK_PA_20)"
1239 if [[ x$gas = xyes ]]
1241 tm_file="${tm_file} pa/pa-gas.h"
1243 # if [[ x$enable_threads = x ]]; then
1244 # enable_threads=$have_pthread_h
1246 # if [[ x$enable_threads = xyes ]]; then
1248 # tmake_file="${tmake_file} pa/t-dce-thr"
1250 install_headers_dir=install-headers-cpio
1253 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1254 target_cpu_default="MASK_PA_11"
1255 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1257 xm_file=pa/xm-pahpux.h
1258 xmake_file=pa/x-pa-hpux
1260 if test x$gas = xyes
1262 tm_file="${tm_file} pa/pa-gas.h"
1264 # if test x$enable_threads = x; then
1265 # enable_threads=$have_pthread_h
1267 # if test x$enable_threads = xyes; then
1269 # tmake_file="${tmake_file} pa/t-dce-thr"
1271 install_headers_dir=install-headers-cpio
1275 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1277 xm_file=pa/xm-pahpux.h
1278 xmake_file=pa/x-pa-hpux
1279 if test x$gas = xyes
1281 tm_file="${tm_file} pa/pa-gas.h"
1283 # if test x$enable_threads = x; then
1284 # enable_threads=$have_pthread_h
1286 # if test x$enable_threads = xyes; then
1288 # tmake_file="${tmake_file} pa/t-dce-thr"
1290 install_headers_dir=install-headers-cpio
1293 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1294 target_cpu_default="MASK_PA_11"
1295 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1296 xm_file=pa/xm-pahpux.h
1297 xmake_file=pa/x-pa-hpux
1298 if test x$gas = xyes
1300 tm_file="${tm_file} pa/pa-gas.h"
1302 install_headers_dir=install-headers-cpio
1306 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1307 xm_file=pa/xm-pahpux.h
1308 xmake_file=pa/x-pa-hpux
1309 if test x$gas = xyes
1311 tm_file="${tm_file} pa/pa-gas.h"
1313 install_headers_dir=install-headers-cpio
1316 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1317 target_cpu_default="MASK_PA_11"
1318 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1319 xm_file=pa/xm-pahpux.h
1320 xmake_file=pa/x-pa-hpux
1321 if test x$gas = xyes
1323 tm_file="${tm_file} pa/pa-gas.h"
1325 install_headers_dir=install-headers-cpio
1329 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1330 xm_file=pa/xm-pahpux.h
1331 xmake_file=pa/x-pa-hpux
1332 if test x$gas = xyes
1334 tm_file="${tm_file} pa/pa-gas.h"
1336 install_headers_dir=install-headers-cpio
1340 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1341 target_cpu_default="MASK_PA_11"
1345 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-mpeix.h"
1346 xm_file=pa/xm-pampeix.h
1347 xmake_file=pa/x-pa-mpeix
1348 echo "You must use gas. Assuming it is already installed."
1349 install_headers_dir=install-headers-tar
1352 i370-*-opened*) # IBM 360/370/390 Architecture
1353 xm_file=i370/xm-oe.h
1355 xmake_file=i370/x-oe
1356 tmake_file=i370/t-oe
1359 xm_file=i370/xm-mvs.h
1361 tmake_file=i370/t-mvs
1364 xm_file="xm-linux.h i370/xm-linux.h"
1366 tm_file="i370/linux.h ${tm_file}"
1367 tmake_file="t-linux i370/t-linux"
1368 # broken_install=yes
1369 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1370 # extra_parts="crtbegin.o crtend.o"
1374 if test x$enable_threads = xyes; then
1381 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1382 tm_file=i386/i386elf.h
1383 tmake_file=i386/t-i386elf
1387 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1389 if test x$gas = xyes
1391 tm_file=i386/aix386.h
1392 extra_parts="crtbegin.o crtend.o"
1393 tmake_file=i386/t-crtstuff
1395 tm_file=i386/aix386ng.h
1398 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1400 xmake_file=i386/x-aix
1403 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1405 xm_file="xm-alloca.h ${xm_file}"
1406 xm_defines="USG POSIX SMALL_ARG_MAX"
1407 xmake_file=i386/x-ncr3000
1408 if test x$stabs = xyes -a x$gas = xyes
1410 tm_file=i386/sysv4gdb.h
1412 tm_file=i386/sysv4.h
1414 extra_parts="crtbegin.o crtend.o"
1415 tmake_file=i386/t-crtpic
1421 xm_file=i386/xm-next.h
1422 tmake_file=i386/t-next
1423 xmake_file=i386/x-next
1424 extra_objs=nextstep.o
1425 extra_parts="crtbegin.o crtend.o"
1426 if test x$enable_threads = xyes; then
1431 i[34567]86-*-netware) # Intel 80386's running netware
1433 tm_file=i386/netware.h
1434 tmake_file=i386/t-netware
1437 i[34567]86-sequent-bsd*) # 80386 from Sequent
1440 if test x$gas = xyes
1442 tm_file=i386/seq-gas.h
1444 tm_file=i386/sequent.h
1448 i[34567]86-sequent-ptx1*)
1450 xm_defines="USG SVR3"
1451 xmake_file=i386/x-sysv3
1452 tm_file=i386/seq-sysv3.h
1453 tmake_file=i386/t-crtstuff
1454 extra_parts="crtbegin.o crtend.o"
1455 install_headers_dir=install-headers-cpio
1458 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1460 xm_defines="USG SVR3"
1461 xmake_file=i386/x-sysv3
1462 tm_file=i386/seq2-sysv3.h
1463 tmake_file=i386/t-crtstuff
1464 extra_parts="crtbegin.o crtend.o"
1465 install_headers_dir=install-headers-cpio
1468 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1470 xm_file="xm-alloca.h ${xm_file}"
1471 xm_defines="USG POSIX SMALL_ARG_MAX"
1473 tm_file=i386/ptx4-i.h
1475 extra_parts="crtbegin.o crtend.o"
1476 install_headers_dir=install-headers-cpio
1478 i386-sun-sunos*) # Sun i386 roadrunner
1484 i[34567]86-wrs-vxworks*)
1486 tm_file=i386/vxi386.h
1487 tmake_file=i386/t-i386bare
1488 thread_file='vxworks'
1493 tm_file=i386/i386-aout.h
1494 tmake_file=i386/t-i386bare
1497 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1499 xm_file=i386/xm-beos.h
1500 tmake_file='i386/t-beos i386/t-crtpic'
1501 tm_file=i386/beos-elf.h
1502 xmake_file=i386/x-beos
1503 extra_parts='crtbegin.o crtend.o'
1506 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1508 tm_file=i386/bsd386.h
1509 # tmake_file=t-libc-ok
1514 tm_file=i386/386bsd.h
1515 # tmake_file=t-libc-ok
1516 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1520 i[34567]86-*-freebsd[12] | i[34567]86-*-freebsd[12].* | i[34567]86-*-freebsd*aout*)
1522 tm_file="i386/freebsd-aout.h i386/perform.h"
1523 tmake_file=t-freebsd
1526 i[34567]86-*-freebsd*)
1528 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd.h i386/perform.h"
1529 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1530 tmake_file=t-freebsd
1534 case x${enable_threads} in
1535 xyes | xpthreads | xposix)
1537 tmake_file="${tmake_file} t-freebsd-thread"
1542 i[34567]86-*-netbsd*)
1544 tm_file=i386/netbsd.h
1549 i[34567]86-*-openbsd*)
1551 # we need collect2 until our bug is fixed...
1557 tm_file=i386/i386-coff.h
1558 tmake_file=i386/t-i386bare
1561 i[34567]86-*-isc*) # 80386 running ISC system
1563 xm_file="${xm_file} i386/xm-isc.h"
1564 xm_defines="USG SVR3"
1567 i[34567]86-*-isc[34]*)
1569 xmake_file=i386/x-isc3
1572 xmake_file=i386/x-isc
1575 if test x$gas = xyes -a x$stabs = xyes
1577 tm_file=i386/iscdbx.h
1578 tmake_file=i386/t-svr3dbx
1579 extra_parts="svr3.ifile svr3z.ifile"
1581 tm_file=i386/isccoff.h
1582 tmake_file=i386/t-crtstuff
1583 extra_parts="crtbegin.o crtend.o"
1585 tmake_file="$tmake_file i386/t-i386bare"
1586 install_headers_dir=install-headers-cpio
1589 i[34567]86-*-linux*oldld*) # Intel 80386's running GNU/Linux
1590 changequote([,])dnl # with a.out format using
1592 xmake_file=x-linux-aout
1593 tmake_file="t-linux-aout i386/t-crtstuff"
1594 tm_file=i386/linux-oldld.h
1599 i[34567]86-*-linux*aout*) # Intel 80386's running GNU/Linux
1600 changequote([,])dnl # with a.out format
1601 xmake_file=x-linux-aout
1602 tmake_file="t-linux-aout i386/t-crtstuff"
1603 tm_file=i386/linux-aout.h
1608 i[34567]86-*-linux*libc1) # Intel 80386's running GNU/Linux
1609 changequote([,])dnl # with ELF format using the
1610 # GNU/Linux C library 5
1612 tm_file=i386/linux.h
1613 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1614 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1617 if test x$enable_threads = xyes; then
1618 thread_file='single'
1622 i[34567]86-*-linux*) # Intel 80386's running GNU/Linux
1623 changequote([,])dnl # with ELF format using glibc 2
1624 # aka GNU/Linux C library 6
1626 tm_file=i386/linux.h
1627 tmake_file="t-linux i386/t-crtstuff"
1628 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1631 if test x$enable_threads = xyes; then
1641 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1643 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1647 i[34567]86-pc-msdosdjgpp*)
1649 xm_file=i386/xm-djgpp.h
1650 tm_file=i386/djgpp.h
1651 tmake_file=i386/t-djgpp
1652 xmake_file=i386/x-djgpp
1657 case $host in *pc-msdosdjgpp*)
1663 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1666 tmake_file=t-libc-ok
1671 i[34567]86-*-lynxos*)
1673 if test x$gas = xyes
1677 tm_file=i386/lynx-ng.h
1679 xm_file=i386/xm-lynx.h
1680 tmake_file=i386/t-i386bare
1687 # tmake_file=t-libc-ok
1691 i[34567]86-*-osfrose*) # 386 using OSF/rose
1693 if test x$elf = xyes
1695 tm_file=i386/osfelf.h
1698 tm_file=i386/osfrose.h
1701 xm_file="i386/xm-osf.h ${xm_file}"
1702 xmake_file=i386/x-osfrose
1703 tmake_file=i386/t-osf
1704 extra_objs=halfpic.o
1707 i[34567]86-go32-rtems*)
1710 xm_file=i386/xm-go32.h
1711 tm_file=i386/go32-rtems.h
1712 tmake_file="i386/t-go32 t-rtems"
1715 i[34567]86-*-rtemscoff*)
1718 tm_file=i386/rtems.h
1719 tmake_file="i386/t-i386bare t-rtems"
1722 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1725 tm_file=i386/rtemself.h
1726 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1727 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1730 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1732 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1733 xm_defines="USG SVR3"
1734 xmake_file=i386/x-sco5
1735 install_headers_dir=install-headers-cpio
1737 if test x$gas = xyes
1739 tm_file="i386/sco5gas.h ${tm_file}"
1740 tmake_file=i386/t-sco5gas
1742 tmake_file=i386/t-sco5
1744 tmake_file="$tmake_file i386/t-i386bare"
1745 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1748 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1750 xm_file="${xm_file} i386/xm-sco.h"
1751 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1752 xmake_file=i386/x-sco4
1753 install_headers_dir=install-headers-cpio
1754 if test x$stabs = xyes
1756 tm_file=i386/sco4dbx.h
1757 tmake_file=i386/t-svr3dbx
1758 extra_parts="svr3.ifile svr3z.rfile"
1761 tmake_file=i386/t-crtstuff
1762 extra_parts="crtbegin.o crtend.o"
1764 tmake_file="$tmake_file i386/t-i386bare"
1765 # The default EAFS filesystem supports long file names.
1766 # Truncating the target makes $host != $target which
1767 # makes gcc think it is doing a cross-compile.
1768 # truncate_target=yes
1771 i[34567]86-*-sco*) # 80386 running SCO system
1773 xm_file=i386/xm-sco.h
1774 xmake_file=i386/x-sco
1775 install_headers_dir=install-headers-cpio
1776 if test x$stabs = xyes
1778 tm_file=i386/scodbx.h
1779 tmake_file=i386/t-svr3dbx
1780 extra_parts="svr3.ifile svr3z.rfile"
1783 extra_parts="crtbegin.o crtend.o"
1784 tmake_file=i386/t-crtstuff
1786 tmake_file="$tmake_file i386/t-i386bare"
1790 i[34567]86-*-solaris2*)
1792 xm_file="xm-alloca.h ${xm_file}"
1793 xm_defines="USG POSIX SMALL_ARG_MAX"
1795 if test x$gas = xyes; then
1796 # Only needed if gas does not support -s
1797 tm_file="i386/sol2gas.h ${tm_file}"
1799 tmake_file="i386/t-i386bare i386/t-sol2"
1800 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1802 if test x${enable_threads} = x; then
1803 enable_threads=$have_pthread_h
1804 if test x${enable_threads} = x; then
1805 enable_threads=$have_thread_h
1808 if test x${enable_threads} = xyes; then
1809 if test x${have_pthread_h} = xyes; then
1812 thread_file='solaris'
1817 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1819 xm_file="xm-alloca.h ${xm_file}"
1820 xm_defines="USG POSIX"
1821 tm_file=i386/sysv5.h
1822 if test x$stabs = xyes
1824 tm_file="${tm_file} dbx.h"
1826 tmake_file="i386/t-i386bare i386/t-crtpic"
1828 extra_parts="crtbegin.o crtend.o"
1829 if test x$enable_threads = xyes; then
1834 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1836 xm_file="xm-alloca.h ${xm_file}"
1837 xm_defines="USG POSIX SMALL_ARG_MAX"
1838 tm_file=i386/sysv4.h
1839 if test x$stabs = xyes
1841 tm_file="${tm_file} dbx.h"
1843 tmake_file="i386/t-i386bare i386/t-crtpic"
1845 extra_parts="crtbegin.o crtend.o"
1848 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1850 xm_file="xm-alloca.h ${xm_file}"
1851 xm_defines="USG POSIX"
1853 tmake_file="i386/t-i386bare i386/t-crtpic i386/t-udk"
1855 extra_parts="crtbegin.o crtend.o"
1856 install_headers_dir=install-headers-cpio
1859 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1862 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1863 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1864 if test x$stabs = xyes
1866 tm_file=i386/osf1elfgdb.h
1868 tm_file=i386/osf1elf.h
1870 tmake_file=i386/t-osf1elf
1871 xmake_file=i386/x-osf1elf
1872 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1875 i[34567]86-*-sysv*) # Intel 80386's running system V
1877 xm_defines="USG SVR3"
1878 xmake_file=i386/x-sysv3
1879 if test x$gas = xyes
1881 if test x$stabs = xyes
1883 tm_file=i386/svr3dbx.h
1884 tmake_file=i386/t-svr3dbx
1885 extra_parts="svr3.ifile svr3z.rfile"
1887 tm_file=i386/svr3gas.h
1888 extra_parts="crtbegin.o crtend.o"
1889 tmake_file=i386/t-crtstuff
1892 tm_file=i386/sysv3.h
1893 extra_parts="crtbegin.o crtend.o"
1894 tmake_file=i386/t-crtstuff
1896 tmake_file="$tmake_file i386/t-crtpic"
1898 i386-*-vsta) # Intel 80386's running VSTa kernel
1899 xm_file="${xm_file} i386/xm-vsta.h"
1901 tmake_file=i386/t-vsta
1902 xmake_file=i386/x-vsta
1907 xm_file="${xm_file} i386/xm-cygwin.h"
1908 tmake_file=i386/t-cygwin
1909 tm_file=i386/win32.h
1910 xmake_file=i386/x-cygwin
1912 if test x$enable_threads = xyes; then
1918 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1920 xm_file="${xm_file} i386/xm-cygwin.h"
1921 tmake_file=i386/t-cygwin
1922 tm_file=i386/cygwin.h
1923 xmake_file=i386/x-cygwin
1925 if test x$enable_threads = xyes; then
1931 i[34567]86-*-mingw32*)
1933 tm_file=i386/mingw32.h
1934 xm_file="${xm_file} i386/xm-mingw32.h"
1935 tmake_file="i386/t-cygwin i386/t-mingw32"
1937 xmake_file=i386/x-cygwin
1938 if test x$enable_threads = xyes; then
1945 *minwg32crt* | *mingw32*)
1946 tm_file="${tm_file} i386/crtdll.h"
1954 xm_file="${xm_file} i386/xm-uwin.h"
1955 xm_defines="USG NO_STAB_H"
1956 tmake_file="i386/t-cygwin i386/t-uwin"
1958 xmake_file=i386/x-cygwin
1959 if test x$enable_threads = xyes; then
1965 i[34567]86-*-interix*)
1967 tm_file="i386/i386-interix.h interix.h"
1968 xm_file="i386/xm-i386-interix.h xm-interix.h"
1970 tmake_file="i386/t-interix"
1971 extra_objs=interix.o
1972 xmake_file=x-interix
1973 if test x$enable_threads = xyes ; then
1976 if test x$stabs = xyes ; then
1977 tm_file="${tm_file} dbxcoff.h"
1981 i[34567]86-*-winnt3*)
1983 tm_file=i386/win-nt.h
1984 out_file=i386/i386.c
1985 xm_file="xm-winnt.h ${xm_file}"
1986 xmake_file=winnt/x-winnt
1987 tmake_file=i386/t-winnt
1988 extra_host_objs="winnt.o oldnames.o"
1989 extra_gcc_objs="spawnv.o oldnames.o"
1990 if test x$gnu_ld != xyes
1992 extra_programs=ld.exe
1994 if test x$enable_threads = xyes; then
1999 i[34567]86-dg-dgux*)
2001 xm_file="xm-alloca.h ${xm_file}"
2002 xm_defines="USG POSIX"
2003 out_file=i386/dgux.c
2005 tmake_file=i386/t-dgux
2006 xmake_file=i386/x-dgux
2007 install_headers_dir=install-headers-cpio
2009 i860-alliant-*) # Alliant FX/2800
2010 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
2011 xm_file="${xm_file}"
2012 xmake_file=i860/x-fx2800
2013 tmake_file=i860/t-fx2800
2014 extra_parts="crtbegin.o crtend.o"
2017 tm_file="${tm_file} i860/bsd.h"
2018 if test x$gas = xyes
2020 tm_file="${tm_file} i860/bsd-gas.h"
2025 tm_file="${tm_file} i860/mach.h"
2026 tmake_file=t-libc-ok
2028 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
2029 tm_file="${tm_file} svr3.h i860/paragon.h"
2030 xm_defines="USG SVR3"
2034 tm_file="${tm_file} svr3.h i860/sysv3.h"
2035 xm_defines="USG SVR3"
2036 xmake_file=i860/x-sysv3
2037 extra_parts="crtbegin.o crtend.o"
2040 tm_file="${tm_file} svr4.h i860/sysv4.h"
2041 xm_defines="USG SVR3"
2042 xmake_file=i860/x-sysv4
2044 extra_parts="crtbegin.o crtend.o"
2046 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
2047 tm_file="${tm_file} i960/vx960.h"
2048 tmake_file=i960/t-vxworks960
2050 thread_file='vxworks'
2052 i960-wrs-vxworks5* | i960-wrs-vxworks)
2053 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
2054 tmake_file=i960/t-vxworks960
2056 thread_file='vxworks'
2059 tm_file="${tm_file} i960/vx960.h"
2060 tmake_file=i960/t-vxworks960
2062 thread_file='vxworks'
2065 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
2066 tmake_file=i960/t-960bare
2070 tmake_file="i960/t-960bare t-rtems"
2071 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
2074 i960-*-*) # Default i960 environment.
2079 tmake_file="ia64/t-ia64"
2080 target_cpu_default="0"
2081 if test x$gas = xyes
2083 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
2085 if test x$gnu_ld = xyes
2087 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
2092 tm_file=ia64/linux.h
2093 tmake_file="t-linux ia64/t-ia64 ia64/t-glibc"
2094 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
2095 if test x$enable_threads = xyes; then
2101 extra_parts="crtinit.o crtfini.o"
2103 # m68hc11 and m68hc12 share the same machine description.
2104 m68hc11-*-*|m6811-*-*)
2105 tm_file="m68hc11/m68hc11.h"
2106 xm_file="m68hc11/xm-m68hc11.h"
2107 tm_p_file="m68hc11/m68hc11-protos.h"
2108 md_file="m68hc11/m68hc11.md"
2109 out_file="m68hc11/m68hc11.c"
2110 tmake_file="m68hc11/t-m68hc11-gas"
2112 m68hc12-*-*|m6812-*-*)
2113 tm_file="m68hc11/m68hc12.h"
2114 tm_p_file="m68hc11/m68hc11-protos.h"
2115 xm_file="m68hc11/xm-m68hc11.h"
2116 md_file="m68hc11/m68hc11.md"
2117 out_file="m68hc11/m68hc11.c"
2118 tmake_file="m68hc11/t-m68hc11-gas"
2120 m68000-convergent-sysv*)
2122 xm_file="m68k/xm-3b1.h ${xm_file}"
2125 extra_headers=math-68881.h
2127 m68000-hp-bsd*) # HP 9000/200 running BSD
2128 tm_file=m68k/hp2bsd.h
2129 xmake_file=m68k/x-hp2bsd
2131 extra_headers=math-68881.h
2133 m68000-hp-hpux*) # HP 9000 series 300
2134 xm_file="xm-alloca.h ${xm_file}"
2136 if test x$gas = xyes
2138 xmake_file=m68k/x-hp320g
2139 tm_file=m68k/hp310g.h
2141 xmake_file=m68k/x-hp320
2142 tm_file=m68k/hp310.h
2144 install_headers_dir=install-headers-cpio
2146 extra_headers=math-68881.h
2151 extra_headers=math-68881.h
2154 tm_file=m68k/sun2o4.h
2156 extra_headers=math-68881.h
2159 xm_file="m68k/xm-3b1.h ${xm_file}"
2161 if test x$gas = xyes
2168 extra_headers=math-68881.h
2170 m68k-apple-aux*) # Apple Macintosh running A/UX
2171 xm_defines="USG AUX"
2172 tmake_file=m68k/t-aux
2173 install_headers_dir=install-headers-cpio
2174 extra_headers=math-68881.h
2175 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
2177 if test "$gnu_ld" = yes
2179 tm_file="${tm_file} m68k/auxgld.h"
2181 tm_file="${tm_file} m68k/auxld.h"
2183 if test "$gas" = yes
2185 tm_file="${tm_file} m68k/auxgas.h"
2187 tm_file="${tm_file} m68k/auxas.h"
2189 tm_file="${tm_file} m68k/a-ux.h"
2193 tm_file=m68k/apollo68.h
2194 xmake_file=m68k/x-apollo68
2196 extra_headers=math-68881.h
2199 m68k-altos-sysv*) # Altos 3068
2200 if test x$gas = xyes
2202 tm_file=m68k/altos3068.h
2205 echo "The Altos is supported only with the GNU assembler" 1>&2
2208 extra_headers=math-68881.h
2210 m68k-bull-sysv*) # Bull DPX/2
2211 if test x$gas = xyes
2213 if test x$stabs = xyes
2215 tm_file=m68k/dpx2cdbx.h
2217 tm_file=m68k/dpx2g.h
2222 xm_file="xm-alloca.h ${xm_file}"
2224 xmake_file=m68k/x-dpx2
2226 extra_headers=math-68881.h
2228 m68k-atari-sysv4*) # Atari variant of V.4.
2229 tm_file=m68k/atari.h
2230 xm_file="xm-alloca.h ${xm_file}"
2231 xm_defines="USG FULL_PROTOTYPES"
2233 extra_parts="crtbegin.o crtend.o"
2234 extra_headers=math-68881.h
2237 m68k-motorola-sysv*)
2238 tm_file=m68k/mot3300.h
2239 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2240 if test x$gas = xyes
2242 xmake_file=m68k/x-mot3300-gas
2243 if test x$gnu_ld = xyes
2245 tmake_file=m68k/t-mot3300-gald
2247 tmake_file=m68k/t-mot3300-gas
2251 xmake_file=m68k/x-mot3300
2252 if test x$gnu_ld = xyes
2254 tmake_file=m68k/t-mot3300-gld
2256 tmake_file=m68k/t-mot3300
2260 gdb_needs_out_file_path=yes
2261 extra_parts="crt0.o mcrt0.o"
2262 extra_headers=math-68881.h
2265 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2266 tm_file=m68k/tower-as.h
2267 xm_defines="USG SVR3"
2268 xmake_file=m68k/x-tower
2269 extra_parts="crtbegin.o crtend.o"
2270 extra_headers=math-68881.h
2273 tm_file=m68k/plexus.h
2274 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2277 extra_headers=math-68881.h
2281 xm_file="xm-alloca.h ${xm_file}"
2283 extra_headers=math-68881.h
2286 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2287 xm_defines="USG unos"
2288 xmake_file=m68k/x-crds
2291 extra_headers=math-68881.h
2293 m68k-cbm-sysv4*) # Commodore variant of V.4.
2295 xm_file="xm-alloca.h ${xm_file}"
2296 xm_defines="USG FULL_PROTOTYPES"
2297 xmake_file=m68k/x-amix
2299 extra_parts="crtbegin.o crtend.o"
2300 extra_headers=math-68881.h
2304 tm_file=m68k/ccur-GAS.h
2305 xmake_file=m68k/x-ccur
2306 extra_headers=math-68881.h
2310 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2311 tm_file=m68k/hp3bsd44.h
2312 xmake_file=m68k/x-hp3bsd44
2314 extra_headers=math-68881.h
2317 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2318 tm_file=m68k/hp3bsd.h
2320 extra_headers=math-68881.h
2324 if test x$with_fp = xno
2326 tm_file=m68k/isi-nfp.h
2332 extra_headers=math-68881.h
2334 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2335 xm_file="xm-alloca.h ${xm_file}"
2337 if test x$gas = xyes
2339 xmake_file=m68k/x-hp320g
2340 tm_file=m68k/hp320g.h
2342 xmake_file=m68k/x-hp320
2343 tm_file=m68k/hpux7.h
2345 install_headers_dir=install-headers-cpio
2347 extra_headers=math-68881.h
2350 m68k-hp-hpux*) # HP 9000 series 300
2351 xm_file="xm-alloca.h ${xm_file}"
2353 if test x$gas = xyes
2355 xmake_file=m68k/x-hp320g
2356 tm_file=m68k/hp320g.h
2358 xmake_file=m68k/x-hp320
2359 tm_file=m68k/hp320.h
2361 install_headers_dir=install-headers-cpio
2363 extra_headers=math-68881.h
2367 tm_file=m68k/sun3mach.h
2369 extra_headers=math-68881.h
2373 if test x$gas = xyes
2375 tm_file=m68k/news3gas.h
2377 tm_file=m68k/news3.h
2380 extra_headers=math-68881.h
2383 m68k-sony-bsd* | m68k-sony-newsos*)
2384 if test x$gas = xyes
2386 tm_file=m68k/newsgas.h
2391 extra_headers=math-68881.h
2394 m68k-next-nextstep2*)
2395 tm_file=m68k/next21.h
2396 xm_file="m68k/xm-next.h ${xm_file}"
2397 tmake_file=m68k/t-next
2398 xmake_file=m68k/x-next
2399 extra_objs=nextstep.o
2400 extra_headers=math-68881.h
2405 m68k-next-nextstep[34]*)
2408 xm_file="m68k/xm-next.h ${xm_file}"
2409 tmake_file=m68k/t-next
2410 xmake_file=m68k/x-next
2411 extra_objs=nextstep.o
2412 extra_parts="crtbegin.o crtend.o"
2413 extra_headers=math-68881.h
2415 if test x$enable_threads = xyes; then
2420 if test x$with_fp = xno
2422 tm_file=m68k/sun3n3.h
2424 tm_file=m68k/sun3o3.h
2428 extra_headers=math-68881.h
2430 m68k-sun-sunos*) # For SunOS 4 (the default).
2431 if test x$with_fp = xno
2433 tm_file=m68k/sun3n.h
2439 extra_headers=math-68881.h
2442 tm_file=m68k/vxm68k.h
2443 tmake_file=m68k/t-vxworks68
2444 extra_headers=math-68881.h
2445 thread_file='vxworks'
2449 tmake_file=m68k/t-m68kbare
2450 tm_file="m68k/m68k-aout.h libgloss.h"
2451 extra_headers=math-68881.h
2455 tmake_file=m68k/t-m68kbare
2456 tm_file="m68k/m68k-coff.h dbx.h"
2457 extra_headers=math-68881.h
2460 m68020-*-elf* | m68k-*-elf*)
2461 tm_file="m68k/m68020-elf.h"
2462 xm_file=m68k/xm-m68kv.h
2463 tmake_file=m68k/t-m68kelf
2464 header_files=math-68881.h
2467 if test x$gas = xyes
2471 tm_file=m68k/lynx-ng.h
2473 xm_file=m68k/xm-lynx.h
2475 tmake_file=m68k/t-lynx
2476 extra_headers=math-68881.h
2480 tm_file=m68k/netbsd.h
2487 # we need collect2 until our bug is fixed...
2490 m68k-*-sysv3*) # Motorola m68k's running system V.3
2491 xm_file="xm-alloca.h ${xm_file}"
2493 xmake_file=m68k/x-m68kv
2494 extra_parts="crtbegin.o crtend.o"
2495 extra_headers=math-68881.h
2498 m68k-*-sysv4*) # Motorola m68k's running system V.4
2499 tm_file=m68k/m68kv4.h
2500 xm_file="xm-alloca.h ${xm_file}"
2503 extra_parts="crtbegin.o crtend.o"
2504 extra_headers=math-68881.h
2507 m68k-*-linux*aout*) # Motorola m68k's running GNU/Linux
2510 tm_file=m68k/linux-aout.h
2511 tmake_file="t-linux-aout m68k/t-linux-aout"
2512 extra_headers=math-68881.h
2516 m68k-*-linux*libc1) # Motorola m68k's running GNU/Linux
2517 # with ELF format using the
2518 # GNU/Linux C library 5
2520 tm_file=m68k/linux.h
2521 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2522 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2523 extra_headers=math-68881.h
2527 m68k-*-linux*) # Motorola m68k's running GNU/Linux
2528 # with ELF format using glibc 2
2529 # aka the GNU/Linux C library 6.
2531 tm_file=m68k/linux.h
2532 tmake_file="t-linux m68k/t-linux"
2533 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2534 extra_headers=math-68881.h
2537 if test x$enable_threads = xyes; then
2542 tmake_file=m68k/t-m68kbare
2543 tm_file=m68k/m68k-psos.h
2544 extra_headers=math-68881.h
2548 tmake_file="m68k/t-m68kbare t-rtems"
2549 tm_file=m68k/rtems.h
2550 extra_headers=math-68881.h
2553 m68k-*-rtemself*|m68k-*-rtems*)
2554 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2555 tm_file=m68k/rtemself.h
2556 extra_headers=math-68881.h
2562 tm_file=m88k/dguxbcs.h
2563 tmake_file=m88k/t-dguxbcs
2567 tmake_file=m88k/t-dgux
2570 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2571 xmake_file=m88k/x-dgux
2572 if test x$gas = xyes
2574 tmake_file=m88k/t-dgux-gas
2577 m88k-dolphin-sysv3*)
2578 tm_file=m88k/dolph.h
2579 extra_parts="crtbegin.o crtend.o"
2580 xm_file="m88k/xm-sysv3.h ${xm_file}"
2581 xmake_file=m88k/x-dolph
2582 if test x$gas = xyes
2584 tmake_file=m88k/t-m88k-gas
2587 m88k-tektronix-sysv3)
2588 tm_file=m88k/tekXD88.h
2589 extra_parts="crtbegin.o crtend.o"
2590 xm_file="m88k/xm-sysv3.h ${xm_file}"
2591 xmake_file=m88k/x-tekXD88
2592 if test x$gas = xyes
2594 tmake_file=m88k/t-m88k-gas
2598 tm_file=m88k/m88k-aout.h
2601 tm_file=m88k/m88k-coff.h
2602 tmake_file=m88k/t-bug
2606 extra_parts="crtbegin.o crtend.o"
2607 if test x$gas = xyes
2609 tmake_file=m88k/t-luna-gas
2611 tmake_file=m88k/t-luna
2615 tmake_file="${tmake_file} m88k/t-luna-gas"
2616 tm_file="m88k/aout-dbx.h aoutos.h m88k/m88k.h openbsd.h ${tm_file}"
2617 xm_file="xm-openbsd.h m88k/xm-m88k.h ${xm_file}"
2620 tm_file=m88k/sysv3.h
2621 extra_parts="crtbegin.o crtend.o"
2622 xm_file="m88k/xm-sysv3.h ${xm_file}"
2623 xmake_file=m88k/x-sysv3
2624 if test x$gas = xyes
2626 tmake_file=m88k/t-m88k-gas
2630 tm_file=m88k/sysv4.h
2631 extra_parts="crtbegin.o crtend.o"
2632 xmake_file=m88k/x-sysv4
2633 tmake_file=m88k/t-sysv4
2636 tm_file=mcore/mcore-elf.h
2637 tmake_file=mcore/t-mcore
2640 tm_file=mcore/mcore-pe.h
2641 tmake_file=mcore/t-mcore-pe
2643 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2644 if test "x$gnu_ld" = xyes
2646 tm_file="mips/iris6.h mips/iris6gld.h"
2648 tm_file=mips/iris6.h
2650 tmake_file=mips/t-iris6
2651 xm_file=mips/xm-iris6.h
2652 xmake_file=mips/x-iris6
2653 # if test x$enable_threads = xyes; then
2654 # thread_file='irix'
2658 tm_file="mips/elf.h mips/vxworks.h"
2659 tmake_file=mips/t-ecoff
2662 extra_parts="crtbegin.o crtend.o"
2663 thread_file='vxworks'
2665 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2666 tm_file="mips/iris6.h mips/cross64.h"
2668 xm_file="mips/xm-iris5.h"
2669 xmake_file=mips/x-iris
2670 tmake_file=mips/t-cross64
2671 # See comment in mips/iris[56].h files.
2673 # if test x$enable_threads = xyes; then
2674 # thread_file='irix'
2678 if test x$gas = xyes
2680 if test x$stabs = xyes
2682 tm_file=mips/iris5gdb.h
2684 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2687 tm_file=mips/sni-svr4.h
2690 xmake_file=mips/x-sni-svr4
2691 tmake_file=mips/t-mips-gas
2692 if test x$gnu_ld != xyes
2697 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2698 if test x$gas = xyes
2700 tm_file="mips/iris5.h mips/iris5gas.h"
2701 if test x$stabs = xyes
2703 tm_file="${tm_file} dbx.h"
2706 tm_file=mips/iris5.h
2709 xm_file="mips/xm-iris5.h"
2710 xmake_file=mips/x-iris
2711 # mips-tfile doesn't work yet
2712 tmake_file=mips/t-mips-gas
2713 # See comment in mips/iris5.h file.
2715 # if test x$enable_threads = xyes; then
2716 # thread_file='irix'
2719 mips-sgi-irix4loser*) # Mostly like a MIPS.
2720 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2721 if test x$stabs = xyes; then
2722 tm_file="${tm_file} dbx.h"
2725 xmake_file=mips/x-iris
2726 if test x$gas = xyes
2728 tmake_file=mips/t-mips-gas
2730 extra_passes="mips-tfile mips-tdump"
2732 if test x$gnu_ld != xyes
2736 # if test x$enable_threads = xyes; then
2737 # thread_file='irix'
2740 mips-sgi-irix4*) # Mostly like a MIPS.
2741 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2742 if test x$stabs = xyes; then
2743 tm_file="${tm_file} dbx.h"
2746 xmake_file=mips/x-iris
2747 if test x$gas = xyes
2749 tmake_file=mips/t-mips-gas
2751 extra_passes="mips-tfile mips-tdump"
2753 if test x$gnu_ld != xyes
2757 # if test x$enable_threads = xyes; then
2758 # thread_file='irix'
2761 mips-sgi-*) # Mostly like a MIPS.
2762 tm_file="mips/iris3.h ${tm_file}"
2763 if test x$stabs = xyes; then
2764 tm_file="${tm_file} dbx.h"
2767 xmake_file=mips/x-iris3
2768 if test x$gas = xyes
2770 tmake_file=mips/t-mips-gas
2772 extra_passes="mips-tfile mips-tdump"
2774 if test x$gnu_ld != xyes
2779 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2780 tm_file="mips/osfrose.h ${tm_file}"
2781 xmake_file=mips/x-osfrose
2782 tmake_file=mips/t-osfrose
2783 extra_objs=halfpic.o
2786 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2787 tm_file=mips/dec-osf1.h
2788 if test x$stabs = xyes; then
2789 tm_file="${tm_file} dbx.h"
2791 xmake_file=mips/x-dec-osf1
2792 if test x$gas = xyes
2794 tmake_file=mips/t-mips-gas
2796 tmake_file=mips/t-ultrix
2797 extra_passes="mips-tfile mips-tdump"
2799 if test x$gnu_ld != xyes
2804 mips-dec-bsd*) # Decstation running 4.4 BSD
2805 tm_file=mips/dec-bsd.h
2806 if test x$gas = xyes
2808 tmake_file=mips/t-mips-gas
2810 tmake_file=mips/t-ultrix
2811 extra_passes="mips-tfile mips-tdump"
2813 if test x$gnu_ld != xyes
2818 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2819 tm_file=mips/netbsd.h
2820 # On NetBSD, the headers are already okay, except for math.h.
2823 mips*-*-linux*) # Linux MIPS, either endian.
2826 mips*el-*) tm_file="mips/elfl.h mips/linux.h" ;;
2827 *) tm_file="mips/elf.h mips/linux.h" ;;
2830 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2833 if test x$enable_threads = xyes; then
2837 mips*el-*-openbsd*) # mips little endian
2838 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2840 mips*-*-openbsd*) # mips big endian
2841 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2842 tm_file="mips/openbsd-be.h ${tm_file}"
2844 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2845 tm_file="mips/news4.h ${tm_file}"
2846 if test x$stabs = xyes; then
2847 tm_file="${tm_file} dbx.h"
2849 if test x$gas = xyes
2851 tmake_file=mips/t-mips-gas
2853 extra_passes="mips-tfile mips-tdump"
2855 if test x$gnu_ld != xyes
2859 xmake_file=mips/x-sony
2861 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2862 # That is based on svr4.
2863 # t-svr4 is not right because this system doesn't use ELF.
2864 tm_file="mips/news5.h ${tm_file}"
2865 if test x$stabs = xyes; then
2866 tm_file="${tm_file} dbx.h"
2869 if test x$gas = xyes
2871 tmake_file=mips/t-mips-gas
2873 extra_passes="mips-tfile mips-tdump"
2875 if test x$gnu_ld != xyes
2880 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2881 tm_file="mips/svr4-5.h mips/svr4-t.h"
2882 if test x$stabs = xyes; then
2883 tm_file="${tm_file} dbx.h"
2886 xmake_file=mips/x-sysv
2887 if test x$gas = xyes
2889 tmake_file=mips/t-mips-gas
2890 extra_parts="crtbegin.o crtend.o"
2892 tmake_file=mips/t-mips
2893 extra_passes="mips-tfile mips-tdump"
2895 if test x$gnu_ld != xyes
2900 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2901 tm_file="mips/ultrix.h ${tm_file}"
2902 if test x$stabs = xyes; then
2903 tm_file="${tm_file} dbx.h"
2905 xmake_file=mips/x-ultrix
2906 if test x$gas = xyes
2908 tmake_file=mips/t-mips-gas
2910 tmake_file=mips/t-ultrix
2911 extra_passes="mips-tfile mips-tdump"
2913 if test x$gnu_ld != xyes
2919 mips-*-riscos[56789]bsd*)
2921 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2922 if test x$stabs = xyes; then
2923 tm_file="${tm_file} dbx.h"
2925 if test x$gas = xyes
2927 tmake_file=mips/t-bsd-gas
2929 tmake_file=mips/t-bsd
2930 extra_passes="mips-tfile mips-tdump"
2932 if test x$gnu_ld != xyes
2938 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2940 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2941 if test x$stabs = xyes; then
2942 tm_file="${tm_file} dbx.h"
2944 if test x$gas = xyes
2946 tmake_file=mips/t-bsd-gas
2948 tmake_file=mips/t-bsd
2949 extra_passes="mips-tfile mips-tdump"
2951 if test x$gnu_ld != xyes
2957 mips-*-riscos[56789]sysv4*)
2959 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2960 if test x$stabs = xyes; then
2961 tm_file="${tm_file} dbx.h"
2963 xmake_file=mips/x-sysv
2964 if test x$gas = xyes
2966 tmake_file=mips/t-svr4-gas
2968 tmake_file=mips/t-svr4
2969 extra_passes="mips-tfile mips-tdump"
2971 if test x$gnu_ld != xyes
2977 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2979 tm_file="mips/svr4-4.h ${tm_file}"
2980 if test x$stabs = xyes; then
2981 tm_file="${tm_file} dbx.h"
2984 xmake_file=mips/x-sysv
2985 if test x$gas = xyes
2987 tmake_file=mips/t-svr4-gas
2989 tmake_file=mips/t-svr4
2990 extra_passes="mips-tfile mips-tdump"
2992 if test x$gnu_ld != xyes
2998 mips-*-riscos[56789]sysv*)
3000 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
3001 if test x$stabs = xyes; then
3002 tm_file="${tm_file} dbx.h"
3005 xmake_file=mips/x-sysv
3006 if test x$gas = xyes
3008 tmake_file=mips/t-svr3-gas
3010 tmake_file=mips/t-svr3
3011 extra_passes="mips-tfile mips-tdump"
3013 if test x$gnu_ld != xyes
3018 mips-*-sysv* | mips-*-riscos*sysv*)
3019 tm_file="mips/svr3-4.h ${tm_file}"
3020 if test x$stabs = xyes; then
3021 tm_file="${tm_file} dbx.h"
3024 xmake_file=mips/x-sysv
3025 if test x$gas = xyes
3027 tmake_file=mips/t-svr3-gas
3029 tmake_file=mips/t-svr3
3030 extra_passes="mips-tfile mips-tdump"
3032 if test x$gnu_ld != xyes
3038 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
3040 tm_file=mips/mips-5.h
3041 if test x$stabs = xyes; then
3042 tm_file="${tm_file} dbx.h"
3044 if test x$gas = xyes
3046 tmake_file=mips/t-mips-gas
3048 extra_passes="mips-tfile mips-tdump"
3050 if test x$gnu_ld != xyes
3058 tm_file=mips/ecoffl.h
3059 if test x$stabs = xyes; then
3060 tm_file="${tm_file} dbx.h"
3062 tmake_file=mips/t-ecoff
3065 tm_file="gofast.h mips/ecoff.h"
3066 if test x$stabs = xyes; then
3067 tm_file="${tm_file} dbx.h"
3069 tmake_file=mips/t-ecoff
3072 tm_file="mips/elfl.h"
3073 tmake_file=mips/t-elf
3076 tm_file="mips/elf.h"
3077 tmake_file=mips/t-elf
3080 tm_file="mips/elfl64.h"
3081 tmake_file=mips/t-elf
3083 mips64orionel-*-elf*)
3084 tm_file="mips/elforion.h mips/elfl64.h"
3085 tmake_file=mips/t-elf
3088 tm_file="mips/elf64.h"
3089 tmake_file=mips/t-elf
3092 tm_file="mips/elforion.h mips/elf64.h"
3093 tmake_file=mips/t-elf
3095 mips64orion-*-rtems*)
3096 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
3097 tmake_file="mips/t-elf t-rtems"
3100 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
3101 tmake_file=mips/t-r3900
3104 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
3105 tmake_file=mips/t-r3900
3107 mips-*-*) # Default MIPS RISC-OS 4.0.
3108 if test x$stabs = xyes; then
3109 tm_file="${tm_file} dbx.h"
3111 if test x$gas = xyes
3113 tmake_file=mips/t-mips-gas
3115 extra_passes="mips-tfile mips-tdump"
3117 if test x$gnu_ld != xyes
3125 tm_file="mn10200/mn10200.h"
3126 if test x$stabs = xyes
3128 tm_file="${tm_file} dbx.h"
3134 tm_file="mn10300/mn10300.h"
3135 if test x$stabs = xyes
3137 tm_file="${tm_file} dbx.h"
3142 tm_file=ns32k/encore.h
3146 tm_file=ns32k/sequent.h
3150 tm_file=ns32k/tek6100.h
3154 tm_file=ns32k/tek6200.h
3158 tm_file=ns32k/merlin.h
3162 tm_file=ns32k/pc532-mach.h
3166 tm_file=ns32k/pc532-min.h
3167 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
3172 tm_file=ns32k/netbsd.h
3173 xm_file="ns32k/xm-netbsd.h ${xm_file}"
3174 # On NetBSD, the headers are already okay, except for math.h.
3179 tm_file="${tm_file} pdp11/2bsd.h"
3189 tm_file="svr4.h pj/linux.h ${tm_file}"
3194 tm_file="svr4.h pj/pjl.h ${tm_file}"
3201 xmake_file=romp/x-mach
3208 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3212 tm_file=rs6000/beos.h
3213 xm_file=rs6000/xm-beos.h
3214 tmake_file=rs6000/t-beos
3215 xmake_file=rs6000/x-beos
3218 tm_file=rs6000/sysv4.h
3219 xm_file="rs6000/xm-sysv4.h"
3220 xm_defines="USG POSIX"
3221 extra_headers=ppc-asm.h
3222 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3223 xmake_file=rs6000/x-sysv4
3226 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3227 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3228 extra_headers=ppc-asm.h
3231 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3232 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3233 extra_headers=ppc-asm.h
3236 tm_file="rs6000/sysv4.h"
3237 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3238 extra_headers=ppc-asm.h
3241 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3242 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3243 extra_headers=ppc-asm.h
3246 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3247 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3248 extra_headers=ppc-asm.h
3250 powerpc-*-linux*libc1)
3251 tm_file="rs6000/sysv4.h rs6000/linux.h"
3252 xm_file=rs6000/xm-sysv4.h
3253 out_file=rs6000/rs6000.c
3254 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3256 extra_headers=ppc-asm.h
3257 if test x$enable_threads = xyes; then
3262 tm_file="rs6000/sysv4.h rs6000/linux.h"
3263 xm_file="rs6000/xm-sysv4.h"
3264 xm_defines="USG ${xm_defines}"
3265 out_file=rs6000/rs6000.c
3266 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3268 extra_headers=ppc-asm.h
3269 if test x$enable_threads = xyes; then
3273 powerpc-wrs-vxworks*)
3275 xm_file="rs6000/xm-sysv4.h"
3276 xm_defines="USG POSIX"
3277 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3278 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3279 extra_headers=ppc-asm.h
3280 thread_file='vxworks'
3282 powerpcle-wrs-vxworks*)
3284 xm_file="rs6000/xm-sysv4.h"
3285 xm_defines="USG POSIX"
3286 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3287 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3288 extra_headers=ppc-asm.h
3289 thread_file='vxworks'
3292 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3293 xm_file="rs6000/xm-sysv4.h"
3294 xm_defines="USG POSIX"
3295 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3296 xmake_file=rs6000/x-sysv4
3297 extra_headers=ppc-asm.h
3300 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3301 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3302 extra_headers=ppc-asm.h
3304 powerpcle-*-eabisim*)
3305 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3306 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3307 extra_headers=ppc-asm.h
3310 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3311 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3312 extra_headers=ppc-asm.h
3314 powerpcle-*-solaris2*)
3315 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3316 xm_file="rs6000/xm-sysv4.h"
3317 xm_defines="USG POSIX"
3318 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3319 xmake_file=rs6000/x-sysv4
3320 extra_headers=ppc-asm.h
3323 rs6000-ibm-aix3.[01]*)
3325 tm_file=rs6000/aix31.h
3326 xmake_file=rs6000/x-aix31
3331 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3333 tm_file=rs6000/aix3newas.h
3334 if test x$host != x$target
3336 tmake_file=rs6000/t-xnewas
3338 tmake_file=rs6000/t-newas
3344 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3346 tm_file=rs6000/aix41.h
3347 if test x$host != x$target
3349 tmake_file=rs6000/t-xnewas
3351 tmake_file=rs6000/t-newas
3353 if test "$gnu_ld" = yes
3355 xmake_file=rs6000/x-aix41-gld
3357 tmake_file='rs6000/t-newas'
3359 xmake_file=rs6000/x-aix41
3364 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3366 tm_file=rs6000/aix43.h
3367 tmake_file=rs6000/t-aix43
3368 xmake_file=rs6000/x-aix41
3374 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3376 tm_file=rs6000/aix43.h
3377 tmake_file=rs6000/t-aix43
3378 xmake_file=rs6000/x-aix41
3392 tm_file=rs6000/mach.h
3393 xm_file="${xm_file} rs6000/xm-mach.h"
3394 xmake_file=rs6000/x-mach
3398 tm_file=rs6000/lynx.h
3399 xm_file=rs6000/xm-lynx.h
3400 tmake_file=rs6000/t-rs6000
3401 xmake_file=rs6000/x-lynx
3405 tmake_file="sh/t-sh sh/t-elf"
3406 tm_file="sh/sh.h sh/elf.h"
3410 tmake_file="sh/t-sh sh/t-elf t-rtems"
3411 tm_file="sh/sh.h sh/elf.h sh/rtemself.h"
3415 tmake_file="sh/t-sh t-rtems"
3416 tm_file="sh/sh.h sh/rtems.h"
3420 tm_file="sh/sh.h sh/elf.h sh/linux.h"
3421 tmake_file="sh/t-sh sh/t-elf sh/t-linux"
3424 if test x$enable_threads = xyes; then
3434 xm_file="xm-alloca.h ${xm_file}"
3437 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3438 tm_file=sparc/vxsparc.h
3439 tmake_file=sparc/t-vxsparc
3441 thread_file='vxworks'
3444 tmake_file=sparc/t-sparcbare
3445 tm_file="sparc/aout.h libgloss.h"
3448 tm_file=sparc/netbsd.h
3453 # we need collect2 until our bug is fixed...
3461 tmake_file=sparc/t-elf
3462 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3466 sparc-*-linux*aout*) # Sparc's running GNU/Linux, a.out
3467 xm_file="${xm_file} sparc/xm-linux.h"
3468 tm_file=sparc/linux-aout.h
3472 sparc-*-linux*libc1*) # Sparc's running GNU/Linux, libc5
3473 xm_file="${xm_file} sparc/xm-linux.h"
3475 tm_file=sparc/linux.h
3476 tmake_file="t-linux t-linux-gnulibc1"
3477 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3481 sparc-*-linux*) # Sparc's running GNU/Linux, libc6
3482 xm_file="${xm_file} sparc/xm-linux.h"
3484 tm_file=sparc/linux.h
3485 tmake_file="t-linux"
3486 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3488 if test x$enable_threads = xyes; then
3494 if test x$gas = xyes
3496 tm_file=sparc/lynx.h
3498 tm_file=sparc/lynx-ng.h
3500 xm_file=sparc/xm-lynx.h
3501 tmake_file=sparc/t-sunos41
3505 tmake_file="sparc/t-sparcbare t-rtems"
3506 tm_file=sparc/rtems.h
3508 sparc-*-rtems*|sparc-*-rtemself*)
3509 tm_file="sparc/rtemself.h"
3510 tmake_file="sparc/t-elf t-rtems"
3511 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3515 sparcv9-*-solaris2*)
3516 if test x$gnu_ld = xyes
3518 tm_file=sparc/sol2-64.h
3520 tm_file=sparc/sol2-sld-64.h
3522 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3523 xm_defines="USG POSIX"
3524 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3525 if test x$gnu_ld = xyes; then
3526 tmake_file="$tmake_file sparc/t-slibgcc"
3528 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3530 xmake_file=sparc/x-sysv4
3531 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3533 if test x${enable_threads} = x ; then
3534 enable_threads=$have_pthread_h
3535 if test x${enable_threads} = x ; then
3536 enable_threads=$have_thread_h
3539 if test x${enable_threads} = xyes ; then
3540 if test x${have_pthread_h} = xyes ; then
3543 thread_file='solaris'
3547 sparc-hal-solaris2*)
3548 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3549 xm_defines="USG POSIX"
3550 tm_file="sparc/sol2.h sparc/hal.h"
3551 tmake_file="sparc/t-halos sparc/t-sol2"
3552 if test x$gnu_ld = xyes; then
3553 tmake_file="$tmake_file sparc/t-slibgcc"
3555 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3557 xmake_file=sparc/x-sysv4
3558 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3569 thread_file='solaris'
3572 if test x$gnu_ld = xyes
3574 tm_file=sparc/sol2.h
3576 tm_file=sparc/sol2-sld.h
3578 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3579 xm_defines="USG POSIX"
3580 tmake_file=sparc/t-sol2
3581 if test x$gnu_ld = xyes; then
3582 tmake_file="$tmake_file sparc/t-slibgcc"
3584 tmake_file="$tmake_file sparc/t-slibgcc-sld"
3586 xmake_file=sparc/x-sysv4
3587 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3588 # At the moment, 32-to-64 cross compilation doesn't work.
3591 # *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3592 #changequote([,])dnl
3594 # if test x$gnu_ld = xyes
3596 # tm_file=sparc/sol2-64.h
3598 # tm_file=sparc/sol2-sld-64.h
3600 # tmake_file="$tmake_file sparc/t-sol2-64"
3613 if test x${enable_threads} = x; then
3614 enable_threads=$have_pthread_h
3615 if test x${enable_threads} = x; then
3616 enable_threads=$have_thread_h
3619 if test x${enable_threads} = xyes; then
3620 if test x${have_pthread_h} = xyes; then
3623 thread_file='solaris'
3628 tm_file=sparc/sunos4.h
3629 tmake_file=sparc/t-sunos40
3633 tm_file=sparc/sunos4.h
3634 tmake_file=sparc/t-sunos41
3636 if test x$gas = xyes; then
3637 tm_file="${tm_file} sparc/sun4gas.h"
3641 tm_file=sparc/sun4o3.h
3645 tm_file=sparc/sysv4.h
3646 xm_file="sparc/xm-sysv4.h"
3647 xm_defines="USG POSIX"
3649 xmake_file=sparc/x-sysv4
3650 extra_parts="crtbegin.o crtend.o"
3653 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3654 xm_defines="USG POSIX"
3655 tm_file=sparc/vxsim.h
3656 tmake_file=sparc/t-vxsparc
3657 xmake_file=sparc/x-sysv4
3660 tm_file="sparc/splet.h libgloss.h"
3661 tmake_file=sparc/t-splet
3664 tm_file="sparc/litecoff.h libgloss.h"
3665 tmake_file=sparc/t-sparclite
3668 tm_file="sparc/lite.h aoutos.h libgloss.h"
3669 tmake_file=sparc/t-sparclite
3672 tm_file="sparc/liteelf.h"
3673 tmake_file=sparc/t-sparclite
3674 extra_parts="crtbegin.o crtend.o"
3677 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3678 tmake_file=sparc/t-sp86x
3681 tm_file="sparc/sp86x-elf.h"
3682 tmake_file=sparc/t-sp86x
3683 extra_parts="crtbegin.o crtend.o"
3686 tmake_file=sparc/t-sp64
3687 tm_file=sparc/sp64-aout.h
3690 tmake_file=sparc/t-sp64
3691 tm_file=sparc/sp64-elf.h
3692 extra_parts="crtbegin.o crtend.o"
3694 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3695 tmake_file="t-linux sparc/t-linux64"
3696 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3697 tm_file=sparc/linux64.h
3699 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3701 if test x$enable_threads = xyes; then
3708 *** The Thumb targets have been depreciated. The equivalent
3709 *** ARM based toolchain can now generated Thumb instructions
3710 *** when the -mthumb switch is given to the compiler.])
3714 tm_file="v850/rtems.h"
3715 xm_file="v850/xm-v850.h"
3716 tmake_file="v850/t-v850 t-rtems"
3717 if test x$stabs = xyes
3719 tm_file="${tm_file} dbx.h"
3724 target_cpu_default="TARGET_CPU_generic"
3726 tm_file="v850/v850.h"
3727 xm_file="v850/xm-v850.h"
3728 tmake_file=v850/t-v850
3729 if test x$stabs = xyes
3731 tm_file="${tm_file} dbx.h"
3735 vax-*-bsd*) # vaxen running BSD
3739 vax-*-sysv*) # vaxen running system V
3740 tm_file="${tm_file} vax/vaxv.h"
3745 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3751 tmake_file="${tmake_file} vax/t-openbsd"
3752 tm_file="vax/vax.h vax/openbsd1.h openbsd.h ${tm_file}"
3753 xm_file="xm-openbsd.h vax/xm-vax.h"
3757 vax-*-ultrix*) # vaxen running ultrix
3758 tm_file="${tm_file} vax/ultrix.h"
3761 vax-*-vms*) # vaxen running VMS
3762 xm_file=vax/xm-vms.h
3766 vax-*-*) # vax default entry
3770 xm_file="${xm_file} xm-svr3"
3774 echo "Configuration $machine not supported" 1>&2
3781 ;; # Existing GNU/Linux systems do not use the GNU setup.
3783 # On the GNU system, the setup is just about the same on
3784 # each different CPU. The specific machines that GNU
3785 # supports are matched above and just set $cpu_type.
3786 xm_file="xm-gnu.h ${xm_file}"
3787 tm_file=${cpu_type}/gnu.h
3788 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3789 # GNU always uses ELF.
3791 # GNU tools are the only tools.
3794 xmake_file=x-linux # These details are the same as Linux.
3795 tmake_file=t-gnu # These are not.
3798 xmake_try_sysv=x-sysv
3799 install_headers_dir=install-headers-cpio
3802 install_headers_dir=install-headers-cpio
3806 # Distinguish i[34567]86
3807 # Also, do not run mips-tfile on MIPS if using gas.
3808 # Process --with-cpu= for PowerPC/rs6000
3809 target_cpu_default2=
3812 target_cpu_default2=1
3815 case $target_alias in
3817 target_cpu_default2=4
3820 target_cpu_default2=2
3824 i686-*-* | i786-*-*)
3825 target_cpu_default2=3
3832 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3835 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3838 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3841 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3844 target_cpu_default2="MASK_CPU_EV5"
3848 if test x$gas = xyes
3850 if test "$target_cpu_default2" = ""
3852 target_cpu_default2="MASK_GAS"
3854 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3859 case "x$with_cpu" in
3862 target_cpu_default2="TARGET_CPU_generic"
3865 # Distinguish cores, and major variants
3866 # arm7m doesn't exist, but D & I don't affect code
3868 xarm[23678] | xarm250 | xarm[67][01]0 \
3869 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3870 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3871 | xstrongarm | xstrongarm110 | xstrongarm1100)
3873 target_cpu_default2="TARGET_CPU_$with_cpu"
3877 echo "--with-cpu must be passed a value" 1>&2
3882 if test x$pass2done = xyes
3884 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3891 mips*-*-ecoff* | mips*-*-elf*)
3892 if test x$gas = xyes
3894 if test x$gnu_ld = xyes
3896 target_cpu_default2="MASK_GAS|MASK_SPLIT_ADDR"
3898 target_cpu_default2="MASK_GAS"
3903 if test x$gas = xyes
3905 target_cpu_default2="MASK_GAS"
3908 powerpc*-*-* | rs6000-*-*)
3909 case "x$with_cpu" in
3913 xcommon | xpower | xpower2 | xpowerpc | xrios \
3914 | xrios1 | xrios2 | xrsc | xrsc1 \
3915 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3916 | xec603e | x740 | x750 | x401 \
3917 | x403 | x505 | x801 | x821 | x823 | x860)
3918 target_cpu_default2="\"$with_cpu\""
3922 echo "--with-cpu must be passed a value" 1>&2
3927 if test x$pass2done = xyes
3929 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3936 case ".$with_cpu" in
3938 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3940 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3941 target_cpu_default2="TARGET_CPU_$with_cpu"
3944 if test x$pass2done = xyes
3946 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3954 if test "$target_cpu_default2" != ""
3956 if test "$target_cpu_default" != ""
3958 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3960 target_cpu_default=$target_cpu_default2
3964 # No need for collect2 if we have the GNU linker.
3965 # Actually, there is now; GNU ld doesn't handle the EH info or
3966 # collecting for shared libraries.
3973 # Save data on machine being used to compile GCC in build_xm_file.
3974 # Save data on host machine in vars host_xm_file and host_xmake_file.
3975 if test x$pass1done = x
3977 if test x"$xm_file" = x
3978 then build_xm_file=$cpu_type/xm-$cpu_type.h
3979 else build_xm_file=$xm_file
3981 build_xm_defines=$xm_defines
3982 build_install_headers_dir=$install_headers_dir
3983 build_exeext=$exeext
3986 if test x$pass2done = x
3988 if test x"$xm_file" = x
3989 then host_xm_file=$cpu_type/xm-$cpu_type.h
3990 else host_xm_file=$xm_file
3992 host_xm_defines=$xm_defines
3993 if test x"$xmake_file" = x
3994 then xmake_file=$cpu_type/x-$cpu_type
3996 host_xmake_file="$xmake_file"
3997 host_truncate_target=$truncate_target
3998 host_extra_gcc_objs=$extra_gcc_objs
3999 host_extra_objs=$extra_host_objs
4006 extra_objs="${host_extra_objs} ${extra_objs}"
4008 # Default the target-machine variables that were not explicitly set.
4009 if test x"$tm_file" = x
4010 then tm_file=$cpu_type/$cpu_type.h; fi
4012 if test x$extra_headers = x
4013 then extra_headers=; fi
4015 if test x"$xm_file" = x
4016 then xm_file=$cpu_type/xm-$cpu_type.h; fi
4018 if test x$md_file = x
4019 then md_file=$cpu_type/$cpu_type.md; fi
4021 if test x$out_file = x
4022 then out_file=$cpu_type/$cpu_type.c; fi
4024 if test x"$tmake_file" = x
4025 then tmake_file=$cpu_type/t-$cpu_type
4028 if test x"$dwarf2" = xyes
4029 then tm_file="$tm_file tm-dwarf2.h"
4032 if test x$float_format = x
4033 then float_format=i64
4036 if test $float_format = none
4037 then float_h_file=Makefile.in
4038 else float_h_file=float-$float_format.h
4041 # Handle cpp installation.
4042 if test x$enable_cpp != xno
4044 tmake_file="$tmake_file t-install-cpp"
4047 # Say what files are being used for the output code and MD file.
4048 echo "Using \`$srcdir/config/$out_file' to output insns."
4049 echo "Using \`$srcdir/config/$md_file' as machine description file."
4052 for f in $tm_file; do
4055 if test $count = ax; then
4056 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
4058 echo "Using the following target machine macro files:"
4059 for f in $tm_file; do
4060 echo " $srcdir/config/$f"
4065 for f in $host_xm_file; do
4068 if test $count = ax; then
4069 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
4071 echo "Using the following host machine macro files:"
4072 for f in $host_xm_file; do
4073 echo " $srcdir/config/$f"
4077 if test "$host_xm_file" != "$build_xm_file"; then
4079 for f in $build_xm_file; do
4082 if test $count = ax; then
4083 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
4085 echo "Using the following build machine macro files:"
4086 for f in $build_xm_file; do
4087 echo " $srcdir/config/$f"
4092 if test x$thread_file = x; then
4093 if test x$target_thread_file != x; then
4094 thread_file=$target_thread_file
4096 thread_file='single'
4100 # Set up the header files.
4101 # $links is the list of header files to create.
4102 # $vars is the list of shell variables with file names to include.
4103 # auto-host.h is the file containing items generated by autoconf and is
4104 # the first file included by config.h.
4106 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
4108 # If host=build, it is correct to have hconfig include auto-host.h
4109 # as well. If host!=build, we are in error and need to do more
4110 # work to find out the build config parameters.
4111 if test x$host = x$build
4113 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
4115 # We create a subdir, then run autoconf in the subdir.
4116 # To prevent recursion we set host and build for the new
4117 # invocation of configure to the build for this invocation
4124 /*) realsrcdir=${srcdir};;
4125 *) realsrcdir=../${srcdir};;
4127 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
4128 --target=$target --host=$build --build=$build
4130 # We just finished tests for the build machine, so rename
4131 # the file auto-build.h in the gcc directory.
4132 mv auto-host.h ../auto-build.h
4135 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
4138 xm_file="gansidecl.h ${xm_file}"
4139 tm_file="gansidecl.h ${tm_file}"
4141 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
4142 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
4143 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
4146 if test -f config.status; then mv -f config.status config.bak; fi
4149 while test -n "$vars"
4151 set $vars; var=$1; shift; vars=$*
4152 set $links; link=$1; shift; links=$*
4153 set $defines; define=$1; shift; defines=$*
4156 # Make sure the file is created, even if it is empty.
4159 # Define TARGET_CPU_DEFAULT if the system wants one.
4160 # This substitutes for lots of *.h files.
4161 if test "$target_cpu_default" != "" -a $link = tm.h
4163 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
4166 for file in `eval echo '$'$var`; do
4168 auto-host.h | auto-build.h )
4171 echo '#ifdef IN_GCC' >>$link
4174 echo "#include \"$file\"" >>$link
4176 auto-host.h | auto-build.h )
4179 echo '#endif' >>$link
4184 for def in `eval echo '$'$define`; do
4185 echo "#ifndef $def" >>$link
4186 echo "#define $def" >>$link
4187 echo "#endif" >>$link
4191 # Truncate the target if necessary
4192 if test x$host_truncate_target != x; then
4193 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4196 # Get the version trigger filename from the toplevel
4197 if test "${with_gcc_version_trigger+set}" = set; then
4198 gcc_version_trigger=$with_gcc_version_trigger
4200 gcc_version_trigger=${srcdir}/version.c
4203 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
4204 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
4207 # Internationalization
4209 VERSION="$gcc_version"
4210 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE",
4211 [Define to the name of the distribution.])
4212 AC_DEFINE_UNQUOTED(VERSION, "$VERSION",
4213 [Define to the version of the distribution.])
4219 # Enable NLS support by default
4221 [ --enable-nls use Native Language Support (default)],
4224 # if cross compiling, disable NLS support.
4225 # It's not worth the trouble, at least for now.
4227 if test "${build}" != "${host}" && test "x$enable_nls" = "xyes"; then
4228 AC_MSG_WARN(Disabling NLS support for canadian cross compiler.)
4232 # if NLS is enabled, also enable check in po subdir
4233 if test $enable_nls = yes; then
4242 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4244 # Windows32 Registry support for specifying GCC installation paths.
4245 AC_ARG_ENABLE(win32-registry,
4246 [ --disable-win32-registry
4247 Disable lookup of installation paths in the
4248 Registry on Windows hosts.
4249 --enable-win32-registry Enable registry lookup (default).
4250 --enable-win32-registry=KEY
4251 Use KEY instead of GCC version as the last portion
4252 of the registry key.],,)
4254 AC_MSG_CHECKING(whether windows registry support is requested)
4255 if test x$enable_win32_registry != xno; then
4256 AC_DEFINE(ENABLE_WIN32_REGISTRY, 1,
4257 [Define to 1 if installation paths should be looked up in Windows32
4258 Registry. Ignored on non windows32 hosts.])
4264 # Check if user specified a different registry key.
4265 case x${enable_win32_registry} in
4268 gcc_cv_win32_registry_key="$VERSION"
4271 # no registry lookup.
4272 gcc_cv_win32_registry_key=''
4275 # user-specified key.
4276 gcc_cv_win32_registry_key="$enable_win32_registry"
4280 if test x$enable_win32_registry != xno; then
4281 AC_MSG_CHECKING(registry key on windows hosts)
4282 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key",
4283 [Define to be the last portion of registry key on windows hosts.])
4284 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4287 # Get an absolute path to the GCC top-level source directory
4293 # Conditionalize the makefile for this host machine.
4294 # Make-host contains the concatenation of all host makefile fragments
4295 # [there can be more than one]. This file is built by configure.frag.
4296 host_overrides=Make-host
4297 dep_host_xmake_file=
4298 for f in .. ${host_xmake_file}
4300 if test -f ${srcdir}/config/$f
4302 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4306 # Conditionalize the makefile for this target machine.
4307 # Make-target contains the concatenation of all host makefile fragments
4308 # [there can be more than one]. This file is built by configure.frag.
4309 target_overrides=Make-target
4311 for f in .. ${tmake_file}
4313 if test -f ${srcdir}/config/$f
4315 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4319 # If the host doesn't support symlinks, modify CC in
4320 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4321 # Otherwise, we can use "CC=$(CC)".
4323 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4325 cc_set_by_configure="\$(CC)"
4326 quoted_cc_set_by_configure="\$(CC)"
4327 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4330 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4332 symbolic_link="cp -p"
4336 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4337 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4338 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4342 out_object_file=`basename $out_file .c`.o
4345 for f in $tm_file; do
4348 tm_file_list="${tm_file_list} $f" ;;
4349 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4354 for f in $host_xm_file; do
4356 auto-host.h | gansidecl.h | hwint.h )
4357 host_xm_file_list="${host_xm_file_list} $f" ;;
4358 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4363 for f in $build_xm_file; do
4365 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4366 build_xm_file_list="${build_xm_file_list} $f" ;;
4367 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4371 # Define macro CROSS_COMPILE in compilation
4372 # if this is a cross-compiler.
4373 # Also use all.cross instead of all.internal
4374 # and add cross-make to Makefile.
4375 cross_overrides="/dev/null"
4376 if test x$host != x$target
4378 cross_defines="CROSS=-DCROSS_COMPILE"
4379 cross_overrides="${topdir}/cross-make"
4382 # If this is a cross-compiler that does not
4383 # have its own set of headers then define
4386 # If this is using newlib, then define inhibit_libc in
4387 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4388 # libgcc.a, but that's OK because newlib should have its own version of
4391 if [test x$host != x$target] && [test x$with_headers = x]; then
4392 inhibit_libc=-Dinhibit_libc
4394 if [test x$with_newlib = xyes]; then
4395 inhibit_libc=-Dinhibit_libc
4398 AC_SUBST(inhibit_libc)
4400 # When building gcc with a cross-compiler, we need to fix a few things.
4401 # This must come after cross-make as we want all.build to override
4403 build_overrides="/dev/null"
4404 if test x$build != x$host
4406 build_overrides="${topdir}/build-make"
4409 # Expand extra_headers to include complete path.
4410 # This substitutes for lots of t-* files.
4412 if test "x$extra_headers" = x
4415 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4416 for file in $extra_headers;
4418 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4422 if test x$use_collect2 = xno; then
4426 # Add a definition of USE_COLLECT2 if system wants one.
4427 # Also tell toplev.c what to do.
4428 # This substitutes for lots of t-* files.
4429 if test x$use_collect2 = x
4434 will_use_collect2="collect2"
4435 maybe_use_collect2="-DUSE_COLLECT2"
4439 # Set MD_DEPS if the real md file is in md.pre-cpp.
4440 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4441 # for line oriented comments, so we must always use a GNU cpp. If
4442 # building gcc with a cross compiler, use the cross compiler just
4443 # built. Otherwise, we can use the cpp just built.
4445 if test "x$md_cppflags" = x
4447 md_file_sub=$srcdir/config/$md_file
4452 # If we have gas in the build tree, make a link to it.
4453 if test -f ../gas/Makefile; then
4454 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4457 # If we have nm in the build tree, make a link to it.
4458 if test -f ../binutils/Makefile; then
4459 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4462 # If we have ld in the build tree, make a link to it.
4463 if test -f ../ld/Makefile; then
4464 # if test x$use_collect2 = x; then
4465 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4467 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4471 # Figure out what assembler we will be using.
4472 AC_MSG_CHECKING(what assembler to use)
4474 gcc_cv_gas_major_version=
4475 gcc_cv_gas_minor_version=
4476 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4477 if test -x "$DEFAULT_ASSEMBLER"; then
4478 gcc_cv_as="$DEFAULT_ASSEMBLER"
4479 elif test -x "$AS"; then
4481 elif test -x as$host_exeext; then
4482 # Build using assembler in the current directory.
4483 gcc_cv_as=./as$host_exeext
4484 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4485 # Single tree build which includes gas.
4486 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4489 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4491 if test x$gcc_cv_gas_version != x; then
4496 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4497 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4501 if test "x$gcc_cv_as" = x -a x$host = x$target; then
4503 # Search the same directories that the installed compiler will
4504 # search. Else we may find the wrong assembler and lose. If we
4505 # do not find a suitable assembler binary, then try the user's
4508 # Also note we have to check MD_EXEC_PREFIX before checking the
4509 # user's path. Unfortunately, there is no good way to get at the
4510 # value of MD_EXEC_PREFIX here. So we do a brute force search
4511 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4512 # to be fixed as part of the make/configure rewrite too.
4514 if test "x$exec_prefix" = xNONE; then
4515 if test "x$prefix" = xNONE; then
4516 test_prefix=/usr/local
4521 test_prefix=$exec_prefix
4524 # If the loop below does not find an assembler, then use whatever
4525 # one we can find in the users's path.
4529 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4530 $test_prefix/lib/gcc-lib/$target \
4531 /usr/lib/gcc/$target/$gcc_version \
4532 /usr/lib/gcc/$target \
4533 $test_prefix/$target/bin/$target/$gcc_version \
4534 $test_prefix/$target/bin \
4539 /bsd43/usr/lib/cmplrs/cc \
4540 /usr/cross64/usr/bin \
4541 /usr/lib/cmplrs/cc \
4542 /sysv/usr/lib/cmplrs/cc \
4543 /svr4/usr/lib/cmplrs/cc \
4546 for dir in $test_dirs; do
4547 if test -f $dir/as$host_exeext; then
4548 gcc_cv_as=$dir/as$host_exeext
4553 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4554 AC_MSG_RESULT("newly built gas")
4556 AC_MSG_RESULT($gcc_cv_as)
4559 # Figure out what nm we will be using.
4560 AC_MSG_CHECKING(what nm to use)
4561 if test -x nm$host_exeext; then
4562 gcc_cv_nm=./nm$host_exeext
4563 elif test x$host = x$target; then
4565 gcc_cv_nm=nm$host_exeext
4567 AC_MSG_RESULT($gcc_cv_nm)
4569 # Figure out what assembler alignment features are present.
4570 AC_MSG_CHECKING(assembler alignment features)
4571 gcc_cv_as_alignment_features=
4572 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4573 # Gas version 2.6 and later support for .balign and .p2align.
4574 # bytes to skip when using .p2align.
4575 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
4576 gcc_cv_as_alignment_features=".balign and .p2align"
4577 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4579 # Gas version 2.8 and later support specifying the maximum
4580 # bytes to skip when using .p2align.
4581 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
4582 gcc_cv_as_alignment_features=".p2align including maximum skip"
4583 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4585 elif test x$gcc_cv_as != x; then
4586 # Check if we have .balign and .p2align
4587 echo ".balign 4" > conftest.s
4588 echo ".p2align 2" >> conftest.s
4589 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4590 gcc_cv_as_alignment_features=".balign and .p2align"
4591 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4593 rm -f conftest.s conftest.o
4594 # Check if specifying the maximum bytes to skip when
4595 # using .p2align is supported.
4596 echo ".p2align 4,,7" > conftest.s
4597 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4598 gcc_cv_as_alignment_features=".p2align including maximum skip"
4599 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4601 rm -f conftest.s conftest.o
4603 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4605 AC_MSG_CHECKING(assembler subsection support)
4606 gcc_cv_as_subsections=
4607 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4608 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
4609 gcc_cv_as_subsections="working .subsection -1"
4611 elif test x$gcc_cv_as != x; then
4612 # Check if we have .subsection
4613 echo ".subsection 1" > conftest.s
4614 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4615 gcc_cv_as_subsections=".subsection"
4616 if test x$gcc_cv_nm != x; then
4617 cat > conftest.s <<EOF
4618 conftest_label1: .word 0
4620 conftest_label2: .word 0
4623 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4624 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4625 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4626 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4629 gcc_cv_as_subsections="working .subsection -1"
4634 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4636 if test x"$gcc_cv_as_subsections" = x"working .subsection -1"; then
4637 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING, 1,
4638 [Define if your assembler supports .subsection and .subsection -1 starts
4639 emitting at the beginning of your section.])
4641 AC_MSG_RESULT($gcc_cv_as_subsections)
4643 AC_MSG_CHECKING(assembler weak support)
4645 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4646 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
4647 gcc_cv_as_weak="yes"
4649 elif test x$gcc_cv_as != x; then
4650 # Check if we have .weak
4651 echo " .weak foobar" > conftest.s
4652 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4653 gcc_cv_as_weak="yes"
4655 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4657 if test x"$gcc_cv_as_weak" = xyes; then
4658 AC_DEFINE(HAVE_GAS_WEAK, 1, [Define if your assembler supports .weak.])
4660 AC_MSG_RESULT($gcc_cv_as_weak)
4662 AC_MSG_CHECKING(assembler hidden support)
4664 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4665 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
4666 gcc_cv_as_hidden="yes"
4668 elif test x$gcc_cv_as != x; then
4669 # Check if we have .hidden
4670 echo " .hidden foobar" > conftest.s
4671 echo "foobar:" >> conftest.s
4672 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4673 gcc_cv_as_hidden="yes"
4675 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4677 if test x"$gcc_cv_as_hidden" = xyes; then
4678 AC_DEFINE(HAVE_GAS_HIDDEN, 1,
4679 [Define if your assembler supports .hidden.])
4681 AC_MSG_RESULT($gcc_cv_as_hidden)
4685 AC_CACHE_CHECK([assembler .register pseudo-op support],
4686 gcc_cv_as_register_pseudo_op, [
4687 gcc_cv_as_register_pseudo_op=unknown
4688 if test x$gcc_cv_as != x; then
4689 # Check if we have .register
4690 echo ".register %g2, #scratch" > conftest.s
4691 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4692 gcc_cv_as_register_pseudo_op=yes
4694 gcc_cv_as_register_pseudo_op=no
4696 rm -f conftest.s conftest.o
4699 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4700 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
4701 [Define if your assembler supports .register.])
4704 AC_CACHE_CHECK([assembler supports -relax],
4705 gcc_cv_as_relax_opt, [
4706 gcc_cv_as_relax_opt=unknown
4707 if test x$gcc_cv_as != x; then
4708 # Check if gas supports -relax
4709 echo ".text" > conftest.s
4710 if $gcc_cv_as -relax -o conftest.o conftest.s > /dev/null 2>&1; then
4711 gcc_cv_as_relax_opt=yes
4713 gcc_cv_as_relax_opt=no
4715 rm -f conftest.s conftest.o
4718 if test "x$gcc_cv_as_relax_opt" = xyes; then
4719 AC_DEFINE(HAVE_AS_RELAX_OPTION, 1,
4720 [Define if your assembler supports -relax option.])
4725 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4726 gcc_cv_as_flags64, [
4727 if test -n "$gcc_cv_as"; then
4728 echo ".xword foo" > conftest.s
4729 gcc_cv_as_flags64=no
4730 for flag in "-xarch=v9" "-64 -Av9"; do
4731 if $gcc_cv_as $flag -o conftest.o conftest.s \
4732 > /dev/null 2>&1; then
4733 gcc_cv_as_flags64=$flag
4737 rm -f conftest.s conftest.o
4739 if test "$gas" = yes; then
4740 gcc_cv_as_flags64="-64 -Av9"
4742 gcc_cv_as_flags64="-xarch=v9"
4746 if test "x$gcc_cv_as_flags64" = xno; then
4748 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4749 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4752 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64",
4753 [Define if the assembler supports 64bit sparc.])
4756 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4760 if test "x$gcc_cv_as_flags64" != xno; then
4761 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4762 gcc_cv_as_offsetable_lo10, [
4763 gcc_cv_as_offsetable_lo10=unknown
4764 if test "x$gcc_cv_as" != x; then
4765 # Check if assembler has offsetable %lo()
4766 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4767 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4768 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4770 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4771 > /dev/null 2>&1; then
4772 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4773 gcc_cv_as_offsetable_lo10=no
4775 gcc_cv_as_offsetable_lo10=yes
4778 gcc_cv_as_offsetable_lo10=no
4780 rm -f conftest.s conftest.o conftest1.s conftest1.o
4783 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4784 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10, 1,
4785 [Define if your assembler supports offsetable %lo().])
4793 AC_MSG_CHECKING(assembler instructions)
4794 gcc_cv_as_instructions=
4795 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4796 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
4797 gcc_cv_as_instructions="filds fists"
4799 elif test x$gcc_cv_as != x; then
4800 set "filds fists" "filds mem; fists mem"
4803 echo "$2" > conftest.s
4804 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4805 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4809 rm -f conftest.s conftest.o
4811 if test x"$gcc_cv_as_instructions" != x; then
4812 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$gcc_cv_as_instructions" | sed -e 's/ $//' | tr '[a-z ]' '[A-Z_]'`)
4814 AC_MSG_RESULT($gcc_cv_as_instructions)
4818 # Figure out what language subdirectories are present.
4819 # Look if the user specified --enable-languages="..."; if not, use
4820 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4822 if test x"${enable_languages+set}" != xset; then
4823 if test x"${LANGUAGES+set}" = xset; then
4824 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4826 enable_languages=all
4829 if test x"${enable_languages}" = x; then
4830 AC_MSG_ERROR([--enable-languages needs at least one argument])
4834 for lang in ${srcdir}/*/config-lang.in ..
4838 # The odd quoting in the next line works around
4839 # an apparent bug in bash 1.12 on linux.
4841 ${srcdir}/[*]/config-lang.in) ;;
4843 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4844 if test "x$lang_alias" = x
4846 echo "$lang doesn't set \$language." 1>&2
4849 if test x"${enable_languages}" = xall && test x"${lang_alias}" != xCHILL; then
4852 case "${enable_languages}" in
4853 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4861 if test x"${add_this_lang}" = xyes; then
4863 ${srcdir}/ada/config-lang.in)
4864 if test x$gnat = xyes ; then
4865 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4869 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4878 # Make gthr-default.h if we have a thread file.
4880 if test $thread_file != single; then
4881 rm -f gthr-default.h
4882 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4883 gthread_flags=-DHAVE_GTHR_DEFAULT
4885 AC_SUBST(gthread_flags)
4887 # Find out what GC implementation we want, or may, use.
4889 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4890 with the compiler.],
4896 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4899 [if test $ac_cv_func_mmap_anywhere = yes \
4900 || test $ac_cv_func_valloc = yes; then
4906 echo "Using $GGC for garbage collection."
4908 # Use the system's zlib library.
4910 zlibinc="-I\$(srcdir)/../zlib"
4911 AC_ARG_WITH(system-zlib,
4912 [ --with-system-zlib use installed libz],
4919 # Build a new-abi (c++) system
4920 AC_ARG_ENABLE(new-gxx-abi,
4921 [ --enable-new-gxx-abi
4922 select the new abi for g++. You must select an ABI
4923 at configuration time, so that the correct runtime
4924 support is built. You cannot mix ABIs.],
4925 [AC_DEFINE(ENABLE_NEW_GXX_ABI, 1,
4926 [Define if you want to always select the new-abi for g++.])
4927 GXX_ABI_FLAG='-fnew-abi'
4928 echo "Building a new-abi g++ compiler."
4930 AC_SUBST(GXX_ABI_FLAG)
4932 # Build a new-libstdc++ system (ie libstdc++-v3)
4933 AC_MSG_CHECKING([for libstdc++ to install])
4934 AC_ARG_ENABLE(libstdcxx-v3,
4935 [ --enable-libstdcxx-v3
4936 enable libstdc++-v3 for building and installation],
4937 [enable_libstdcxx_v3="$enableval"], [enable_libstdcxx_v3=yes])
4939 if test x$enable_libstdcxx_v3 = xyes; then
4948 AC_DEFINE_UNQUOTED(ENABLE_STD_NAMESPACE, $ac_esn,
4949 [Define to 1 if you want to enable namespaces (-fhonor-std) by default.])
4950 AC_SUBST(HAVE_LIBSTDCXX_V3)
4952 dnl Very limited version of automake's enable-maintainer-mode
4954 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
4955 dnl maintainer-mode is disabled by default
4956 AC_ARG_ENABLE(maintainer-mode,
4957 [ --enable-maintainer-mode enable make rules and dependencies not useful
4958 (and sometimes confusing) to the casual installer],
4959 maintainer_mode=$enableval,
4962 AC_MSG_RESULT($maintainer_mode)
4964 if test "$maintainer_mode" = "yes"; then
4971 # Make empty files to contain the specs and options for each language.
4972 # Then add #include lines to for a compiler that has specs and/or options.
4977 rm -f specs.h options.h gencheck.h
4978 touch specs.h options.h gencheck.h
4979 for subdir in . $subdirs
4981 if test -f $srcdir/$subdir/lang-specs.h; then
4982 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4983 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4985 if test -f $srcdir/$subdir/lang-options.h; then
4986 echo "#include \"$subdir/lang-options.h\"" >>options.h
4987 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4989 if test -f $srcdir/$subdir/$subdir-tree.def; then
4990 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4991 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4995 # These (without "all_") are set in each config-lang.in.
4996 # `language' must be a single word so is spelled singularly.
5002 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug mklibgcc'
5003 # List of language makefile fragments.
5008 # Add the language fragments.
5009 # Languages are added via two mechanisms. Some information must be
5010 # recorded in makefile variables, these are defined in config-lang.in.
5011 # We accumulate them and plug them into the main Makefile.
5012 # The other mechanism is a set of hooks for each of the main targets
5013 # like `clean', `install', etc.
5015 language_fragments="Make-lang"
5016 language_hooks="Make-hooks"
5018 for s in .. $subdirs
5030 . ${srcdir}/$s/config-lang.in
5031 if test "x$language" = x
5033 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
5036 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in"
5037 if test -f ${srcdir}/$s/Makefile.in
5038 then all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Makefile.in"
5040 all_languages="$all_languages $language"
5041 if test "x$boot_language" = xyes
5043 all_boot_languages="$all_boot_languages $language"
5045 all_compilers="$all_compilers $compilers"
5046 all_stagestuff="$all_stagestuff $stagestuff"
5047 all_diff_excludes="$all_diff_excludes $diff_excludes"
5048 all_headers="$all_headers $headers"
5049 all_outputs="$all_outputs $outputs"
5050 all_lib2funcs="$all_lib2funcs $lib2funcs"
5054 # Since we can't use `::' targets, we link each language in
5055 # with a set of hooks, reached indirectly via lang.${target}.
5059 target_list="all.build all.cross start.encap rest.encap \
5061 install-normal install-common install-info install-man \
5063 mostlyclean clean distclean extraclean maintainer-clean \
5064 stage1 stage2 stage3 stage4"
5065 for t in $target_list
5068 for lang in .. $all_languages
5070 if test $lang != ".."; then
5074 echo "lang.$t: $x" >> Make-hooks
5077 # If we're not building in srcdir, create .gdbinit.
5079 if test ! -f Makefile.in; then
5080 echo "dir ." > .gdbinit
5081 echo "dir ${srcdir}" >> .gdbinit
5082 if test x$gdb_needs_out_file_path = xyes
5084 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
5086 if test "x$subdirs" != x; then
5089 echo "dir ${srcdir}/$s" >> .gdbinit
5092 echo "source ${srcdir}/.gdbinit" >> .gdbinit
5095 # Define variables host_canonical and build_canonical
5096 # because some Cygnus local changes in the Makefile depend on them.
5097 build_canonical=${build}
5098 host_canonical=${host}
5100 if test "${host}" != "${target}" ; then
5101 target_subdir=${target}/
5103 AC_SUBST(build_canonical)
5104 AC_SUBST(host_canonical)
5105 AC_SUBST(target_subdir)
5107 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
5108 # absolute path for gcc_tooldir based on inserting the number of up-directory
5109 # movements required to get from $(exec_prefix) to $(prefix) into the basic
5110 # $(libsubdir)/@(unlibsubdir) based path.
5111 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
5112 # make and thus we'd get different behavior depending on where we built the
5114 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
5115 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
5117 changequote(<<, >>)dnl
5118 # An explanation of the sed strings:
5119 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
5120 # -e 's|/$||' match a trailing forward slash and eliminates it
5121 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
5122 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
5124 # (*) Note this pattern overwrites the first character of the string
5125 # with a forward slash if one is not already present. This is not a
5126 # problem because the exact names of the sub-directories concerned is
5127 # unimportant, just the number of them matters.
5129 # The practical upshot of these patterns is like this:
5131 # prefix exec_prefix result
5132 # ------ ----------- ------
5134 # /foo/ /foo/bar ../
5135 # /foo /foo/bar/ ../
5136 # /foo/ /foo/bar/ ../
5137 # /foo /foo/bar/ugg ../../
5140 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
5141 changequote([, ])dnl
5143 AC_SUBST(gcc_tooldir)
5146 # Nothing to do for FLOAT_H, float_format already handled.
5150 # Process the language and host/target makefile fragments.
5151 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
5153 # Substitute configuration variables
5155 AC_SUBST(all_boot_languages)
5156 AC_SUBST(all_compilers)
5157 AC_SUBST(all_diff_excludes)
5158 AC_SUBST(all_headers)
5159 AC_SUBST(all_lang_makefiles)
5160 AC_SUBST(all_languages)
5161 AC_SUBST(all_lib2funcs)
5162 AC_SUBST(all_stagestuff)
5163 AC_SUBST(build_exeext)
5164 AC_SUBST(build_install_headers_dir)
5165 AC_SUBST(build_xm_file_list)
5166 AC_SUBST(cc_set_by_configure)
5167 AC_SUBST(quoted_cc_set_by_configure)
5168 AC_SUBST(cpp_install_dir)
5169 AC_SUBST(dep_host_xmake_file)
5170 AC_SUBST(dep_tmake_file)
5171 AC_SUBST(extra_c_flags)
5172 AC_SUBST(extra_headers_list)
5173 AC_SUBST(extra_objs)
5174 AC_SUBST(extra_parts)
5175 AC_SUBST(extra_passes)
5176 AC_SUBST(extra_programs)
5177 AC_SUBST(float_h_file)
5178 AC_SUBST(gcc_gxx_include_dir)
5179 AC_SUBST(gcc_version)
5180 AC_SUBST(gcc_version_full)
5181 AC_SUBST(gcc_version_trigger)
5182 AC_SUBST(host_exeext)
5183 AC_SUBST(host_extra_gcc_objs)
5184 AC_SUBST(host_xm_file_list)
5186 AC_SUBST(lang_options_files)
5187 AC_SUBST(lang_specs_files)
5188 AC_SUBST(lang_tree_files)
5189 AC_SUBST(local_prefix)
5190 AC_SUBST(maybe_use_collect2)
5192 AC_SUBST(objc_boehm_gc)
5194 AC_SUBST(out_object_file)
5195 AC_SUBST(stage_prefix_set_by_configure)
5196 AC_SUBST(symbolic_link)
5197 AC_SUBST(thread_file)
5198 AC_SUBST(tm_file_list)
5199 AC_SUBST(will_use_collect2)
5202 AC_SUBST_FILE(target_overrides)
5203 AC_SUBST_FILE(host_overrides)
5204 AC_SUBST(cross_defines)
5205 AC_SUBST_FILE(cross_overrides)
5206 AC_SUBST_FILE(build_overrides)
5207 AC_SUBST_FILE(language_fragments)
5208 AC_SUBST_FILE(language_hooks)
5210 # Echo that links are built
5211 if test x$host = x$target
5219 if test x$host != x$build
5221 str3=" on a $build system"
5224 if test "x$str2" != x || test "x$str3" != x
5229 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
5231 if test "x$str2" != x || test "x$str3" != x
5233 echo " ${str2}${str3}." 1>&2
5236 # Truncate the target if necessary
5237 if test x$host_truncate_target != x; then
5238 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
5241 # Configure the subdirectories
5242 # AC_CONFIG_SUBDIRS($subdirs)
5244 # Create the Makefile
5245 # and configure language subdirectories
5246 AC_OUTPUT($all_outputs,
5248 case x$CONFIG_HEADERS in
5249 xauto-host.h:config.in)
5252 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
5253 # bootstrapping and the installation procedure can still use
5254 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
5255 # FLAGS_TO_PASS has been modified to solve the problem there.
5256 # This is virtually a duplicate of what happens in configure.lang; we do
5257 # an extra check to make sure this only happens if ln -s can be used.
5258 if test "$symbolic_link" = "ln -s"; then
5259 for d in .. ${subdirs} ; do
5260 if test $d != ..; then
5263 for t in stage1 stage2 stage3 stage4 include
5266 $symbolic_link ../$t $t 2>/dev/null
5272 # Avoid having to add intl to our include paths.
5273 if test -f intl/libintl.h; then
5274 echo creating libintl.h
5275 echo '#include "intl/libintl.h"' >libintl.h
5282 target_alias='${target_alias}'
5284 subdirs='${subdirs}'
5285 symbolic_link='${symbolic_link}'
5286 program_transform_set='${program_transform_set}'
5287 program_transform_name='${program_transform_name}'
5288 dep_host_xmake_file='${dep_host_xmake_file}'
5289 host_xmake_file='${host_xmake_file}'
5290 dep_tmake_file='${dep_tmake_file}'
5291 tmake_file='${tmake_file}'
5292 thread_file='${thread_file}'
5293 gcc_version='${gcc_version}'
5294 gcc_version_full='${gcc_version_full}'
5295 gcc_version_trigger='${gcc_version_trigger}'
5296 local_prefix='${local_prefix}'
5297 build_install_headers_dir='${build_install_headers_dir}'
5298 build_exeext='${build_exeext}'
5299 host_exeext='${host_exeext}'
5300 out_file='${out_file}'
5301 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
5302 SET_MAKE='${SET_MAKE}'
5303 target_list='${target_list}'
5304 target_overrides='${target_overrides}'
5305 host_overrides='${host_overrides}'
5306 cross_defines='${cross_defines}'
5307 cross_overrides='${cross_overrides}'
5308 build_overrides='${build_overrides}'
5309 cpp_install_dir='${cpp_install_dir}'