1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999 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")
109 [ --with-gnu-as arrange to work with GNU as.],
110 gas_flag="$with_gnu_as",
114 [ --with-as arrange to use the specified as (full pathname).],
115 DEFAULT_ASSEMBLER="$with_as")
116 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
117 if test ! -x "$DEFAULT_ASSEMBLER"; then
118 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
119 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
122 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
127 [ --with-stabs arrange to use stabs instead of host debug format.],
133 [ --with-elf arrange to use ELF instead of host debug format.],
137 # Specify the local prefix
139 AC_ARG_WITH(local-prefix,
140 [ --with-local-prefix=DIR specifies directory to put local include.],
141 [case "${withval}" in
142 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
144 *) local_prefix=$with_local_prefix ;;
147 # Default local prefix if it is empty
148 if test x$local_prefix = x; then
149 local_prefix=/usr/local
152 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
153 # passed in by the toplevel make and thus we'd get different behavior
154 # depending on where we built the sources.
156 # Specify the g++ header file directory
157 AC_ARG_WITH(gxx-include-dir,
158 [ --with-gxx-include-dir=DIR
159 specifies directory to put g++ header files.],
160 [case "${withval}" in
161 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
163 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
166 if test x${gcc_gxx_include_dir} = x; then
167 if test x${enable_version_specific_runtime_libs} = xyes; then
168 gcc_gxx_include_dir='${libsubdir}/include/g++'
170 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
171 changequote(<<, >>)dnl
172 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
177 # Enable expensive internal checks
178 AC_ARG_ENABLE(checking,
179 [ --enable-checking[=LIST]
180 enable expensive run-time checks. With LIST,
181 enable only specific categories of checks.
182 Categories are: misc,tree,rtl,gc,gcac; default
184 [case "${enableval}" in
185 yes) AC_DEFINE(ENABLE_CHECKING)
186 AC_DEFINE(ENABLE_TREE_CHECKING)
187 AC_DEFINE(ENABLE_RTL_CHECKING) ;;
189 *) ac_save_IFS="$IFS" IFS="$IFS,"
190 set fnord $enableval; shift
195 misc) AC_DEFINE(ENABLE_CHECKING) ;;
196 tree) AC_DEFINE(ENABLE_TREE_CHECKING) ;;
197 rtl) AC_DEFINE(ENABLE_RTL_CHECKING) ;;
198 gc) AC_DEFINE(ENABLE_GC_CHECKING) ;;
199 gcac) AC_DEFINE(ENABLE_GC_ALWAYS_COLLECT) ;;
200 *) AC_MSG_ERROR(unknown check category $check) ;;
207 [ --disable-cpp don't provide a user-visible C preprocessor.],
208 [], [enable_cpp=yes])
210 AC_ARG_WITH(cpp_install_dir,
211 [ --with-cpp-install-dir=DIR
212 install the user visible C preprocessor in DIR
213 (relative to PREFIX) as well as PREFIX/bin.],
214 [if test x$withval = xyes; then
215 AC_MSG_ERROR([option --with-cpp-install-dir requires an argument])
216 elif test x$withval != xno; then
217 cpp_install_dir=$withval
220 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
222 AC_ARG_ENABLE(cpplib,
223 [ --enable-cpplib use cpplib for the C preprocessor.],
224 if test x$enable_cpplib != xno; then
228 # Link cpplib into the compiler proper, for C/C++/ObjC.
229 AC_ARG_ENABLE(c-cpplib,
230 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
231 (EXPERIMENTAL) (implies --enable-cpplib).],
232 if test x$enable_c_cpplib != xno; then
233 extra_c_objs="${extra_c_objs} libcpp.a"
234 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
235 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
239 # Disable fast fixincludes
240 AC_ARG_ENABLE(fast-fixincludes,
241 [ --disable-fast-fixincludes
242 Disable the new fast fixincludes.
243 Run the old fixincludes script unconditionally],
244 if test x$enable_fast_fixincludes = xno ; then
245 cp $srcdir/fixincludes ./fixinc.sh
248 # Enable Multibyte Characters for C/C++
249 AC_ARG_ENABLE(c-mbchar,
250 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
251 if test x$enable_c_mbchar != xno; then
252 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
256 # Pass with no value to take the default
257 # Pass with a value to specify a thread package
258 AC_ARG_ENABLE(threads,
259 [ --enable-threads enable thread usage for target GCC.
260 --enable-threads=LIB use LIB thread package for target GCC.],
261 if test x$enable_threads = xno; then
266 enable_threads_flag=$enable_threads
267 # Check if a valid thread package
268 case x${enable_threads_flag} in
271 target_thread_file='single'
275 target_thread_file=''
277 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
278 xsolaris | xwin32 | xdce | xvxworks)
279 target_thread_file=$enable_threads_flag
282 echo "$enable_threads is an unknown thread package" 1>&2
287 AC_ARG_ENABLE(objc-gc,
288 [ --enable-objc-gc enable the use of Boehm's garbage collector with
289 the GNU Objective-C runtime.],
290 if test x$enable_objc_gc = xno; then
298 [ --enable-dwarf2 enable DWARF2 debugging as default.],
299 dwarf2="$with_dwarf2",
302 # Determine the host, build, and target systems
305 # Find the native compiler
309 # If the native compiler is GCC, we can enable warnings even in stage1.
310 # That's useful for people building cross-compilers, or just running a
312 if test "x$GCC" = "xyes"; then
313 stage1_warn_cflags='$(WARN_CFLAGS)'
315 stage1_warn_cflags=""
317 AC_SUBST(stage1_warn_cflags)
321 AC_MSG_CHECKING([whether a default assembler was specified])
322 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
323 if test x"$gas_flag" = x"no"; then
324 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
326 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
332 AC_MSG_CHECKING([whether a default linker was specified])
333 if test x"${DEFAULT_LINKER+set}" = x"set"; then
334 if test x"$gnu_ld_flag" = x"no"; then
335 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
337 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
343 # Find some useful tools
357 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
358 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
359 sys/resource.h sys/param.h sys/times.h sys/stat.h \
362 # Check for thread headers.
363 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
364 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
366 # See if GNAT has been installed
367 AC_CHECK_PROG(gnat, gnatbind, yes, no)
369 # See if the stage1 system preprocessor understands the ANSI C
370 # preprocessor stringification operator.
373 # Use <inttypes.h> only if it exists,
374 # doesn't clash with <sys/types.h>, and declares intmax_t.
375 AC_MSG_CHECKING(for inttypes.h)
376 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
378 [#include <sys/types.h>
379 #include <inttypes.h>],
381 [gcc_cv_header_inttypes_h=yes],
382 gcc_cv_header_inttypes_h=no)])
383 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
384 if test $gcc_cv_header_inttypes_h = yes; then
385 AC_DEFINE(HAVE_INTTYPES_H)
388 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
389 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
390 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
391 fputs_unlocked getrusage valloc)
393 # Make sure wchar_t is available
394 #AC_CHECK_TYPE(wchar_t, unsigned int)
396 GCC_FUNC_VFPRINTF_DOPRNT
401 # Under some versions of uwin, vfork is notoriously buggy and the test
402 # can hang configure; on other versions, vfork exists just as a stub.
403 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
404 ac_cv_func_vfork_works=no
410 GCC_NEED_DECLARATIONS(bcopy bzero bcmp \
411 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
412 strsignal putc_unlocked fputs_unlocked strstr)
414 GCC_NEED_DECLARATIONS(malloc realloc calloc free, [
420 GCC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
421 #include <sys/types.h>
422 #ifdef HAVE_SYS_RESOURCE_H
423 #include <sys/resource.h>
427 # mkdir takes a single argument on some systems.
428 GCC_FUNC_MKDIR_TAKES_ONE_ARG
438 build_install_headers_dir=install-headers-tar
443 host_truncate_target=
446 # Decode the host machine, then the target machine.
447 # For the host machine, we save the xm_file variable as host_xm_file;
448 # then we decode the target machine and forget everything else
449 # that came from the host machine.
450 for machine in $build $host $target; do
464 # Set this to force installation and use of collect2.
466 # Set this to override the default target model.
468 # Set this to control how the header file directory is installed.
469 install_headers_dir=install-headers-tar
470 # Set this to a non-empty list of args to pass to cpp if the target
471 # wants its .md file passed through cpp.
473 # Set this if directory names should be truncated to 14 characters.
475 # Set this if gdb needs a dir command with `dirname $out_file`
476 gdb_needs_out_file_path=
477 # Set this if the build machine requires executables to have a
480 # Set this to control which thread package will be used.
482 # Reinitialize these from the flag values every loop pass, since some
483 # configure entries modify them.
485 gnu_ld="$gnu_ld_flag"
486 enable_threads=$enable_threads_flag
488 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
489 # updated in each machine entry.
491 cpu_type=`echo $machine | sed 's/-.*$//'`
527 tm_file=${cpu_type}/${cpu_type}.h
528 xm_file=${cpu_type}/xm-${cpu_type}.h
529 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
531 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
533 # On a.out targets, we need to use collect2.
540 # Common parts for linux-gnu and openbsd systems
543 xm_defines="HAVE_ATEXIT POSIX BSTRING"
546 tm_file=${cpu_type}/openbsd.h
547 tmake_file="t-libc-ok t-openbsd"
548 # avoid surprises, always provide an xm-openbsd file
549 xm_file=${cpu_type}/xm-openbsd.h
550 # don't depend on processor x-fragments as well
552 if test x$enable_threads = xyes; then
554 tmake_file="${tmake_file} t-openbsd-thread"
560 # Support site-specific machine types.
562 cpu_type=`echo $machine | sed -e 's/-.*//'`
563 rest=`echo $machine | sed -e "s/$cpu_type-//"`
564 xm_file=${cpu_type}/xm-$rest.h
565 tm_file=${cpu_type}/$rest.h
566 if test -f $srcdir/config/${cpu_type}/x-$rest; \
567 then xmake_file=${cpu_type}/x-$rest; \
570 if test -f $srcdir/config/${cpu_type}/t-$rest; \
571 then tmake_file=${cpu_type}/t-$rest; \
577 a29k-*-bsd* | a29k-*-sym1*)
578 tm_file="${tm_file} a29k/unix.h"
580 xmake_file=a29k/x-unix
583 a29k-*-udi | a29k-*-coff)
584 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
585 tmake_file=a29k/t-a29kbare
588 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
589 tmake_file=a29k/t-vx29k
590 extra_parts="crtbegin.o crtend.o"
591 thread_file='vxworks'
593 a29k-*-*) # Default a29k environment.
597 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
599 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
600 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
602 # GAS + IEEE_CONFORMANT
603 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
605 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
606 xmake_file="x-interix alpha/t-pe"
607 tmake_file="alpha/t-interix alpha/t-ieee"
608 if test x$enable_threads = xyes ; then
611 if test x$stabs = xyes ; then
612 tm_file="${tm_file} dbxcoff.h"
614 #prefix='$$INTERIX_ROOT'/usr/contrib
615 #local_prefix='$$INTERIX_ROOT'/usr/contrib
617 alpha*-*-linux-gnuecoff*)
618 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
619 target_cpu_default="MASK_GAS"
620 tmake_file="alpha/t-ieee"
625 alpha*-*-linux-gnulibc1*)
626 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
627 target_cpu_default="MASK_GAS"
628 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe alpha/t-ieee"
629 extra_parts="crtbegin.o crtend.o"
632 if test x$enable_threads = xyes; then
637 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
638 target_cpu_default="MASK_GAS"
639 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-ieee"
640 extra_parts="crtbegin.o crtend.o"
643 if test x$enable_threads = xyes; then
648 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
649 target_cpu_default="MASK_GAS"
650 tmake_file="alpha/t-crtbe alpha/t-ieee"
651 extra_parts="crtbegin.o crtend.o"
657 # default x-alpha is only appropriate for dec-osf.
658 target_cpu_default="MASK_GAS"
659 tmake_file="alpha/t-ieee"
663 if test x$stabs = xyes
665 tm_file="${tm_file} dbx.h"
667 if test x$gas != xyes
669 extra_passes="mips-tfile mips-tdump"
672 tmake_file="alpha/t-ieee"
675 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
680 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
683 tm_file="${tm_file} alpha/osf.h"
684 # Some versions of OSF4 (specifically X4.0-9 296.7) have
685 # a broken tar, so we use cpio instead.
686 install_headers_dir=install-headers-cpio
689 tm_file="${tm_file} alpha/osf.h"
694 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
696 target_cpu_default=MASK_SUPPORT_ARCH
701 tm_file="${tm_file} dbx.h alpha/vxworks.h"
702 tmake_file="alpha/t-ieee"
705 extra_passes="mips-tfile mips-tdump"
708 thread_file='vxworks'
711 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
712 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
713 tmake_file="t-libc-ok alpha/t-ieee"
714 xmake_file=winnt/x-winnt
715 extra_host_objs=oldnames.o
716 extra_gcc_objs="spawnv.o oldnames.o"
717 if test x$gnu_ld != xyes
719 extra_programs=ld.exe
721 if test x$enable_threads = xyes; then
727 xm_file="${xm_file} alpha/xm-vms.h"
728 tmake_file="alpha/t-vms alpha/t-ieee"
731 extra_parts="crtinit.o crtfini.o"
733 arm-*-coff* | armel-*-coff*)
735 tmake_file=arm/t-bare
739 tmake_file=arm/t-bare
740 thread_file='vxworks'
743 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
745 tm_file=arm/riscix1-1.h
748 arm-*-riscix*) # Acorn RISC machine
751 tm_file=arm/rix-gas.h
755 xmake_file=arm/x-riscix
756 tmake_file=arm/t-riscix
759 arm-semi-aout | armel-semi-aout)
761 tmake_file=arm/t-semi
763 arm-semi-aof | armel-semi-aof)
764 tm_file=arm/semiaof.h
765 tmake_file=arm/t-semiaof
769 tmake_file="t-netbsd arm/t-netbsd"
772 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
775 tm_file=arm/linux-aout.h
776 tmake_file=arm/t-linux
779 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
780 xm_file=arm/xm-linux.h
782 tm_file="arm/linux-oldld.h arm/linux-elf.h"
785 tm_file="arm/linux-elf26.h $tm_file"
788 tmake_file="t-linux arm/t-linux"
789 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
791 case x${enable_threads} in
792 x | xyes | xpthreads | xposix)
797 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
798 xm_file=arm/xm-linux.h
800 tm_file="arm/linux-elf.h"
803 tm_file="arm/linux-elf26.h $tm_file"
806 tmake_file="t-linux arm/t-linux"
807 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
809 case x${enable_threads} in
810 x | xyes | xpthreads | xposix)
815 arm*-*-uclinux*) # ARM ucLinux
816 tm_file=arm/uclinux-elf.h
817 tmake_file=arm/t-arm-elf
821 tmake_file=arm/t-bare
824 tm_file=arm/ecos-elf.h
828 tm_file=arm/unknown-elf.h
829 tmake_file=arm/t-arm-elf
832 tm_file=arm/unknown-elf-oabi.h
833 tmake_file=arm/t-arm-elf
840 c1-convex-*) # Convex C1
844 c2-convex-*) # Convex C2
857 target_cpu_default=16
864 clipper-intergraph-clix*)
865 tm_file="${tm_file} svr3.h clipper/clix.h"
866 xm_file=clipper/xm-clix.h
867 xmake_file=clipper/x-clix
868 extra_headers=va-clipper.h
869 extra_parts="crtbegin.o crtend.o"
870 install_headers_dir=install-headers-cpio
878 tm_file="fr30/fr30.h"
879 tmake_file=fr30/t-fr30
880 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
882 # This hasn't been upgraded to GCC 2.
883 # fx80-alliant-*) # Alliant FX/80
889 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
890 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
891 tmake_file="t-linux pa/t-linux"
892 extra_parts="crtbegin.o crtend.o"
895 if test x$enable_threads = xyes; then
900 target_cpu_default="MASK_PA_11"
901 tmake_file=pa/t-openbsd
904 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
905 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
906 xm_file=pa/xm-papro.h
910 target_cpu_default="MASK_PA_11"
911 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
915 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
916 tm_file="${tm_file} elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
917 xm_file=pa/xm-papro.h
921 tm_file="${tm_file} pa/som.h pa/pa-osf.h"
925 tm_file="${tm_file} pa/som.h"
926 target_cpu_default="MASK_PA_11"
930 tm_file="${tm_file} pa/som.h"
934 tm_file="pa/pa-oldas.h ${tm_file} pa/som.h pa/pa-hpux7.h"
935 xm_file=pa/xm-pahpux.h
936 xmake_file=pa/x-pa-hpux
939 tm_file="${tm_file} pa/gas.h"
941 install_headers_dir=install-headers-cpio
945 hppa1.0-*-hpux8.0[0-2]*)
947 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
948 xm_file=pa/xm-pahpux.h
949 xmake_file=pa/x-pa-hpux
952 tm_file="${tm_file} pa/pa-gas.h"
954 tm_file="pa/pa-oldas.h ${tm_file}"
956 install_headers_dir=install-headers-cpio
960 hppa1.1-*-hpux8.0[0-2]*)
962 target_cpu_default="MASK_PA_11"
963 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
964 xm_file=pa/xm-pahpux.h
965 xmake_file=pa/x-pa-hpux
968 tm_file="${tm_file} pa/pa-gas.h"
970 tm_file="pa/pa-oldas.h ${tm_file}"
972 install_headers_dir=install-headers-cpio
976 target_cpu_default="MASK_PA_11"
977 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
978 xm_file=pa/xm-pahpux.h
979 xmake_file=pa/x-pa-hpux
982 tm_file="${tm_file} pa/pa-gas.h"
984 install_headers_dir=install-headers-cpio
988 tm_file="${tm_file} pa/som.h pa/pa-hpux.h"
989 xm_file=pa/xm-pahpux.h
990 xmake_file=pa/x-pa-hpux
993 tm_file="${tm_file} pa/pa-gas.h"
995 install_headers_dir=install-headers-cpio
998 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
999 target_cpu_default="MASK_PA_11"
1000 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1001 xm_file=pa/xm-pahpux.h
1002 xmake_file=pa/x-pa-hpux
1004 if test x$gas = xyes
1006 tm_file="${tm_file} pa/pa-gas.h"
1008 if test x$enable_threads = x; then
1009 enable_threads=$have_pthread_h
1011 if test x$enable_threads = xyes; then
1013 tmake_file="${tmake_file} pa/t-dce-thr"
1015 install_headers_dir=install-headers-cpio
1019 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1020 xm_file=pa/xm-pahpux.h
1021 xmake_file=pa/x-pa-hpux
1023 if test x$gas = xyes
1025 tm_file="${tm_file} pa/pa-gas.h"
1027 if test x$enable_threads = x; then
1028 enable_threads=$have_pthread_h
1030 if test x$enable_threads = xyes; then
1032 tmake_file="${tmake_file} pa/t-dce-thr"
1034 install_headers_dir=install-headers-cpio
1037 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1038 target_cpu_default="MASK_PA_11"
1039 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1040 xm_file=pa/xm-pahpux.h
1041 xmake_file=pa/x-pa-hpux
1043 if test x$gas = xyes
1045 tm_file="${tm_file} pa/pa-gas.h"
1047 # if test x$enable_threads = x; then
1048 # enable_threads=$have_pthread_h
1050 # if test x$enable_threads = xyes; then
1052 # tmake_file="${tmake_file} pa/t-dce-thr"
1054 install_headers_dir=install-headers-cpio
1058 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1059 xm_file=pa/xm-pahpux.h
1060 xmake_file=pa/x-pa-hpux
1061 if test x$gas = xyes
1063 tm_file="${tm_file} pa/pa-gas.h"
1065 # if test x$enable_threads = x; then
1066 # enable_threads=$have_pthread_h
1068 # if test x$enable_threads = xyes; then
1070 # tmake_file="${tmake_file} pa/t-dce-thr"
1072 install_headers_dir=install-headers-cpio
1075 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1076 target_cpu_default="MASK_PA_11"
1077 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1078 xm_file=pa/xm-pahpux.h
1079 xmake_file=pa/x-pa-hpux
1080 if test x$gas = xyes
1082 tm_file="${tm_file} pa/pa-gas.h"
1084 install_headers_dir=install-headers-cpio
1088 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1089 xm_file=pa/xm-pahpux.h
1090 xmake_file=pa/x-pa-hpux
1091 if test x$gas = xyes
1093 tm_file="${tm_file} pa/pa-gas.h"
1095 install_headers_dir=install-headers-cpio
1098 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1099 target_cpu_default="MASK_PA_11"
1100 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1101 xm_file=pa/xm-pahpux.h
1102 xmake_file=pa/x-pa-hpux
1103 if test x$gas = xyes
1105 tm_file="${tm_file} pa/pa-gas.h"
1107 install_headers_dir=install-headers-cpio
1111 tm_file="${tm_file} pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1112 xm_file=pa/xm-pahpux.h
1113 xmake_file=pa/x-pa-hpux
1114 if test x$gas = xyes
1116 tm_file="${tm_file} pa/pa-gas.h"
1118 install_headers_dir=install-headers-cpio
1122 tm_file="${tm_file} elfos.h pa/elf.h"
1123 target_cpu_default="MASK_PA_11"
1127 tm_file="${tm_file} pa/pa-mpeix.h"
1128 xm_file=pa/xm-pampeix.h
1129 xmake_file=pa/x-pa-mpeix
1130 echo "You must use gas. Assuming it is already installed."
1131 install_headers_dir=install-headers-tar
1132 fixincludes=Makefile.in
1135 i370-*-opened*) # IBM 360/370/390 Architecture
1136 xm_file=i370/xm-oe.h
1138 xmake_file=i370/x-oe
1139 tmake_file=i370/t-oe
1140 fixincludes=Makefile.in # Headers are wierd, don't mess with
1143 xm_file=i370/xm-mvs.h
1145 tmake_file=i370/t-mvs
1146 fixincludes=Makefile.in # Headers are wierd, don't mess with
1149 xm_file="xm-linux.h i370/xm-linux.h"
1151 tm_file="i370/linux.h ${tm_file}"
1152 tmake_file="t-linux i370/t-linux"
1153 fixincludes=Makefile.in # The headers are ok already.
1154 # broken_install=yes
1155 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1156 # extra_parts="crtbegin.o crtend.o"
1160 if test x$enable_threads = xyes; then
1167 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1168 tm_file=i386/i386elf.h
1169 tmake_file=i386/t-i386elf
1173 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1175 if test x$gas = xyes
1177 tm_file=i386/aix386.h
1178 extra_parts="crtbegin.o crtend.o"
1179 tmake_file=i386/t-crtstuff
1181 tm_file=i386/aix386ng.h
1184 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1186 xmake_file=i386/x-aix
1189 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1191 xm_file="xm-alloca.h ${xm_file}"
1192 xm_defines="USG POSIX SMALL_ARG_MAX"
1193 xmake_file=i386/x-ncr3000
1194 if test x$stabs = xyes -a x$gas = xyes
1196 tm_file=i386/sysv4gdb.h
1198 tm_file=i386/sysv4.h
1200 extra_parts="crtbegin.o crtend.o"
1201 tmake_file=i386/t-crtpic
1207 xm_file=i386/xm-next.h
1208 tmake_file=i386/t-next
1209 xmake_file=i386/x-next
1210 extra_objs=nextstep.o
1211 extra_parts="crtbegin.o crtend.o"
1212 if test x$enable_threads = xyes; then
1217 i[34567]86-sequent-bsd*) # 80386 from Sequent
1220 if test x$gas = xyes
1222 tm_file=i386/seq-gas.h
1224 tm_file=i386/sequent.h
1228 i[34567]86-sequent-ptx1*)
1230 xm_defines="USG SVR3"
1231 xmake_file=i386/x-sysv3
1232 tm_file=i386/seq-sysv3.h
1233 tmake_file=i386/t-crtstuff
1234 extra_parts="crtbegin.o crtend.o"
1235 install_headers_dir=install-headers-cpio
1238 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1240 xm_defines="USG SVR3"
1241 xmake_file=i386/x-sysv3
1242 tm_file=i386/seq2-sysv3.h
1243 tmake_file=i386/t-crtstuff
1244 extra_parts="crtbegin.o crtend.o"
1245 install_headers_dir=install-headers-cpio
1248 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1250 xm_file="xm-alloca.h ${xm_file}"
1251 xm_defines="USG POSIX SMALL_ARG_MAX"
1253 tm_file=i386/ptx4-i.h
1255 extra_parts="crtbegin.o crtend.o"
1256 install_headers_dir=install-headers-cpio
1258 i386-sun-sunos*) # Sun i386 roadrunner
1264 i[34567]86-wrs-vxworks*)
1266 tm_file=i386/vxi386.h
1267 tmake_file=i386/t-i386bare
1268 thread_file='vxworks'
1273 tm_file=i386/i386-aout.h
1274 tmake_file=i386/t-i386bare
1277 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1279 tm_file=i386/bsd386.h
1280 # tmake_file=t-libc-ok
1285 tm_file=i386/386bsd.h
1286 # tmake_file=t-libc-ok
1287 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1291 i[34567]86-*-freebsdelf*)
1293 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1294 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1295 tmake_file=t-freebsd
1299 case x${enable_threads} in
1300 xyes | xpthreads | xposix)
1302 tmake_file="${tmake_file} t-freebsd-thread"
1307 i[34567]86-*-freebsd*)
1309 tm_file="i386/freebsd.h i386/perform.h"
1310 tmake_file=t-freebsd
1313 i[34567]86-*-netbsd*)
1315 tm_file=i386/netbsd.h
1320 i[34567]86-*-openbsd*)
1322 # we need collect2 until our bug is fixed...
1328 tm_file=i386/i386-coff.h
1329 tmake_file=i386/t-i386bare
1332 i[34567]86-*-isc*) # 80386 running ISC system
1334 xm_file="${xm_file} i386/xm-isc.h"
1335 xm_defines="USG SVR3"
1338 i[34567]86-*-isc[34]*)
1340 xmake_file=i386/x-isc3
1343 xmake_file=i386/x-isc
1346 if test x$gas = xyes -a x$stabs = xyes
1348 tm_file=i386/iscdbx.h
1349 tmake_file=i386/t-svr3dbx
1350 extra_parts="svr3.ifile svr3z.ifile"
1352 tm_file=i386/isccoff.h
1353 tmake_file=i386/t-crtstuff
1354 extra_parts="crtbegin.o crtend.o"
1356 install_headers_dir=install-headers-cpio
1359 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1360 changequote([,])dnl # with a.out format using
1362 xmake_file=x-linux-aout
1363 tmake_file="t-linux-aout i386/t-crtstuff"
1364 tm_file=i386/linux-oldld.h
1369 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1370 changequote([,])dnl # with a.out format
1371 xmake_file=x-linux-aout
1372 tmake_file="t-linux-aout i386/t-crtstuff"
1373 tm_file=i386/linux-aout.h
1378 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1379 changequote([,])dnl # with ELF format using the
1380 # GNU/Linux C library 5
1382 tm_file=i386/linux.h
1383 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1384 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1387 if test x$enable_threads = xyes; then
1388 thread_file='single'
1392 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1393 changequote([,])dnl # with ELF format using glibc 2
1394 # aka GNU/Linux C library 6
1396 tm_file=i386/linux.h
1397 tmake_file="t-linux i386/t-crtstuff"
1398 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1401 if test x$enable_threads = xyes; then
1411 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1413 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1417 i[34567]86-pc-msdosdjgpp*)
1419 xm_file=i386/xm-djgpp.h
1420 tm_file=i386/djgpp.h
1421 tmake_file=i386/t-djgpp
1422 xmake_file=i386/x-djgpp
1426 case $host in *pc-msdosdjgpp*)
1432 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1435 tmake_file=t-libc-ok
1440 i[34567]86-*-lynxos*)
1442 if test x$gas = xyes
1446 tm_file=i386/lynx-ng.h
1448 xm_file=i386/xm-lynx.h
1449 tmake_file=i386/t-i386bare
1456 # tmake_file=t-libc-ok
1460 i[34567]86-*-osfrose*) # 386 using OSF/rose
1462 if test x$elf = xyes
1464 tm_file=i386/osfelf.h
1467 tm_file=i386/osfrose.h
1470 xm_file="i386/xm-osf.h ${xm_file}"
1471 xmake_file=i386/x-osfrose
1472 tmake_file=i386/t-osf
1473 extra_objs=halfpic.o
1476 i[34567]86-go32-rtems*)
1479 xm_file=i386/xm-go32.h
1480 tm_file=i386/go32-rtems.h
1481 tmake_file="i386/t-go32 t-rtems"
1484 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1487 tm_file=i386/rtemself.h
1488 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1489 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1492 i[34567]86-*-rtemscoff*)
1495 tm_file=i386/rtems.h
1496 tmake_file="i386/t-i386bare t-rtems"
1499 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1501 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1502 xm_defines="USG SVR3"
1503 xmake_file=i386/x-sco5
1504 install_headers_dir=install-headers-cpio
1506 if test x$gas = xyes
1508 tm_file="i386/sco5gas.h ${tm_file}"
1509 tmake_file=i386/t-sco5gas
1511 tmake_file=i386/t-sco5
1513 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1516 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1518 xm_file="${xm_file} i386/xm-sco.h"
1519 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1520 xmake_file=i386/x-sco4
1521 install_headers_dir=install-headers-cpio
1522 if test x$stabs = xyes
1524 tm_file=i386/sco4dbx.h
1525 tmake_file=i386/t-svr3dbx
1526 extra_parts="svr3.ifile svr3z.rfile"
1529 tmake_file=i386/t-crtstuff
1530 extra_parts="crtbegin.o crtend.o"
1532 # The default EAFS filesystem supports long file names.
1533 # Truncating the target makes $host != $target which
1534 # makes gcc think it is doing a cross-compile.
1535 # truncate_target=yes
1538 i[34567]86-*-sco*) # 80386 running SCO system
1540 xm_file=i386/xm-sco.h
1541 xmake_file=i386/x-sco
1542 install_headers_dir=install-headers-cpio
1543 if test x$stabs = xyes
1545 tm_file=i386/scodbx.h
1546 tmake_file=i386/t-svr3dbx
1547 extra_parts="svr3.ifile svr3z.rfile"
1550 extra_parts="crtbegin.o crtend.o"
1551 tmake_file=i386/t-crtstuff
1556 i[34567]86-*-solaris2*)
1558 xm_file="xm-alloca.h ${xm_file}"
1559 xm_defines="USG POSIX SMALL_ARG_MAX"
1561 if test x$gas = xyes; then
1562 # Only needed if gas does not support -s
1563 tm_file="i386/sol2gas.h ${tm_file}"
1565 tmake_file=i386/t-sol2
1566 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1568 if test x${enable_threads} = x; then
1569 enable_threads=$have_pthread_h
1570 if test x${enable_threads} = x; then
1571 enable_threads=$have_thread_h
1574 if test x${enable_threads} = xyes; then
1575 if test x${have_pthread_h} = xyes; then
1578 thread_file='solaris'
1583 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1585 xm_file="xm-alloca.h ${xm_file}"
1586 xm_defines="USG POSIX"
1587 tm_file=i386/sysv5.h
1588 if test x$stabs = xyes
1590 tm_file="${tm_file} dbx.h"
1592 tmake_file=i386/t-crtpic
1594 extra_parts="crtbegin.o crtend.o"
1595 if test x$enable_threads = xyes; then
1600 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1602 xm_file="xm-alloca.h ${xm_file}"
1603 xm_defines="USG POSIX SMALL_ARG_MAX"
1604 tm_file=i386/sysv4.h
1605 if test x$stabs = xyes
1607 tm_file="${tm_file} dbx.h"
1609 tmake_file=i386/t-crtpic
1611 extra_parts="crtbegin.o crtend.o"
1614 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1616 xm_file="xm-alloca.h ${xm_file}"
1617 xm_defines="USG POSIX"
1619 tmake_file="i386/t-crtpic i386/t-udk"
1621 extra_parts="crtbegin.o crtend.o"
1622 install_headers_dir=install-headers-cpio
1625 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1628 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1629 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1630 if test x$stabs = xyes
1632 tm_file=i386/osf1elfgdb.h
1634 tm_file=i386/osf1elf.h
1636 tmake_file=i386/t-osf1elf
1637 xmake_file=i386/x-osf1elf
1638 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1641 i[34567]86-*-sysv*) # Intel 80386's running system V
1643 xm_defines="USG SVR3"
1644 xmake_file=i386/x-sysv3
1645 if test x$gas = xyes
1647 if test x$stabs = xyes
1649 tm_file=i386/svr3dbx.h
1650 tmake_file=i386/t-svr3dbx
1651 extra_parts="svr3.ifile svr3z.rfile"
1653 tm_file=i386/svr3gas.h
1654 extra_parts="crtbegin.o crtend.o"
1655 tmake_file=i386/t-crtstuff
1658 tm_file=i386/sysv3.h
1659 extra_parts="crtbegin.o crtend.o"
1660 tmake_file=i386/t-crtstuff
1663 i386-*-vsta) # Intel 80386's running VSTa kernel
1664 xm_file="${xm_file} i386/xm-vsta.h"
1666 tmake_file=i386/t-vsta
1667 xmake_file=i386/x-vsta
1672 xm_file="${xm_file} i386/xm-cygwin.h"
1673 tmake_file=i386/t-cygwin
1674 tm_file=i386/win32.h
1675 xmake_file=i386/x-cygwin
1677 if test x$enable_threads = xyes; then
1683 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1685 xm_file="${xm_file} i386/xm-cygwin.h"
1686 tmake_file=i386/t-cygwin
1687 tm_file=i386/cygwin.h
1688 xmake_file=i386/x-cygwin
1690 if test x$enable_threads = xyes; then
1696 i[34567]86-*-mingw32*)
1698 tm_file=i386/mingw32.h
1699 xm_file="${xm_file} i386/xm-mingw32.h"
1700 tmake_file="i386/t-cygwin i386/t-mingw32"
1702 xmake_file=i386/x-cygwin
1703 if test x$enable_threads = xyes; then
1710 *minwg32crt* | *mingw32*)
1711 tm_file="${tm_file} i386/crtdll.h"
1719 xm_file="${xm_file} i386/xm-uwin.h"
1720 xm_defines="USG NO_STAB_H"
1721 tmake_file="i386/t-cygwin i386/t-uwin"
1723 xmake_file=i386/x-cygwin
1724 if test x$enable_threads = xyes; then
1730 i[34567]86-*-interix*)
1732 tm_file="i386/i386-interix.h interix.h"
1733 xm_file="i386/xm-i386-interix.h xm-interix.h"
1735 tmake_file="i386/t-interix"
1736 extra_objs=interix.o
1737 xmake_file=x-interix
1738 if test x$enable_threads = xyes ; then
1741 if test x$stabs = xyes ; then
1742 tm_file="${tm_file} dbxcoff.h"
1746 i[34567]86-*-winnt3*)
1748 tm_file=i386/win-nt.h
1749 out_file=i386/i386.c
1750 xm_file="xm-winnt.h ${xm_file}"
1751 xmake_file=winnt/x-winnt
1752 tmake_file=i386/t-winnt
1753 extra_host_objs="winnt.o oldnames.o"
1754 extra_gcc_objs="spawnv.o oldnames.o"
1755 if test x$gnu_ld != xyes
1757 extra_programs=ld.exe
1759 if test x$enable_threads = xyes; then
1764 i[34567]86-dg-dgux*)
1766 xm_file="xm-alloca.h ${xm_file}"
1767 xm_defines="USG POSIX"
1768 out_file=i386/dgux.c
1770 tmake_file=i386/t-dgux
1771 xmake_file=i386/x-dgux
1772 install_headers_dir=install-headers-cpio
1774 i860-alliant-*) # Alliant FX/2800
1775 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1776 xm_file="${xm_file}"
1777 xmake_file=i860/x-fx2800
1778 tmake_file=i860/t-fx2800
1779 extra_parts="crtbegin.o crtend.o"
1782 tm_file="${tm_file} i860/bsd.h"
1783 if test x$gas = xyes
1785 tm_file="${tm_file} i860/bsd-gas.h"
1790 tm_file="${tm_file} i860/mach.h"
1791 tmake_file=t-libc-ok
1793 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1794 tm_file="${tm_file} svr3.h i860/paragon.h"
1795 xm_defines="USG SVR3"
1799 tm_file="${tm_file} svr3.h i860/sysv3.h"
1800 xm_defines="USG SVR3"
1801 xmake_file=i860/x-sysv3
1802 extra_parts="crtbegin.o crtend.o"
1805 tm_file="${tm_file} svr4.h i860/sysv4.h"
1806 xm_defines="USG SVR3"
1807 xmake_file=i860/x-sysv4
1809 extra_parts="crtbegin.o crtend.o"
1811 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1812 tm_file="${tm_file} i960/vx960.h"
1813 tmake_file=i960/t-vxworks960
1815 thread_file='vxworks'
1817 i960-wrs-vxworks5* | i960-wrs-vxworks)
1818 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1819 tmake_file=i960/t-vxworks960
1821 thread_file='vxworks'
1824 tm_file="${tm_file} i960/vx960.h"
1825 tmake_file=i960/t-vxworks960
1827 thread_file='vxworks'
1830 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1831 tmake_file=i960/t-960bare
1835 tmake_file="i960/t-960bare t-rtems"
1836 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1839 i960-*-*) # Default i960 environment.
1843 extra_parts="crtinit.o crtfini.o"
1845 m68000-convergent-sysv*)
1847 xm_file="m68k/xm-3b1.h ${xm_file}"
1850 extra_headers=math-68881.h
1852 m68000-hp-bsd*) # HP 9000/200 running BSD
1853 tm_file=m68k/hp2bsd.h
1854 xmake_file=m68k/x-hp2bsd
1856 extra_headers=math-68881.h
1858 m68000-hp-hpux*) # HP 9000 series 300
1859 xm_file="xm-alloca.h ${xm_file}"
1861 if test x$gas = xyes
1863 xmake_file=m68k/x-hp320g
1864 tm_file=m68k/hp310g.h
1866 xmake_file=m68k/x-hp320
1867 tm_file=m68k/hp310.h
1869 install_headers_dir=install-headers-cpio
1871 extra_headers=math-68881.h
1876 extra_headers=math-68881.h
1879 tm_file=m68k/sun2o4.h
1881 extra_headers=math-68881.h
1884 xm_file="m68k/xm-3b1.h ${xm_file}"
1886 if test x$gas = xyes
1893 extra_headers=math-68881.h
1895 m68k-apple-aux*) # Apple Macintosh running A/UX
1896 xm_defines="USG AUX"
1897 tmake_file=m68k/t-aux
1898 install_headers_dir=install-headers-cpio
1899 extra_headers=math-68881.h
1900 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1902 if test "$gnu_ld" = yes
1904 tm_file="${tm_file} m68k/auxgld.h"
1906 tm_file="${tm_file} m68k/auxld.h"
1908 if test "$gas" = yes
1910 tm_file="${tm_file} m68k/auxgas.h"
1912 tm_file="${tm_file} m68k/auxas.h"
1914 tm_file="${tm_file} m68k/a-ux.h"
1918 tm_file=m68k/apollo68.h
1919 xmake_file=m68k/x-apollo68
1921 extra_headers=math-68881.h
1924 m68k-altos-sysv*) # Altos 3068
1925 if test x$gas = xyes
1927 tm_file=m68k/altos3068.h
1930 echo "The Altos is supported only with the GNU assembler" 1>&2
1933 extra_headers=math-68881.h
1935 m68k-bull-sysv*) # Bull DPX/2
1936 if test x$gas = xyes
1938 if test x$stabs = xyes
1940 tm_file=m68k/dpx2cdbx.h
1942 tm_file=m68k/dpx2g.h
1947 xm_file="xm-alloca.h ${xm_file}"
1949 xmake_file=m68k/x-dpx2
1951 extra_headers=math-68881.h
1953 m68k-atari-sysv4*) # Atari variant of V.4.
1954 tm_file=m68k/atari.h
1955 xm_file="xm-alloca.h ${xm_file}"
1956 xm_defines="USG FULL_PROTOTYPES"
1958 extra_parts="crtbegin.o crtend.o"
1959 extra_headers=math-68881.h
1962 m68k-motorola-sysv*)
1963 tm_file=m68k/mot3300.h
1964 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1965 if test x$gas = xyes
1967 xmake_file=m68k/x-mot3300-gas
1968 if test x$gnu_ld = xyes
1970 tmake_file=m68k/t-mot3300-gald
1972 tmake_file=m68k/t-mot3300-gas
1976 xmake_file=m68k/x-mot3300
1977 if test x$gnu_ld = xyes
1979 tmake_file=m68k/t-mot3300-gld
1981 tmake_file=m68k/t-mot3300
1985 gdb_needs_out_file_path=yes
1986 extra_parts="crt0.o mcrt0.o"
1987 extra_headers=math-68881.h
1990 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1991 tm_file=m68k/tower-as.h
1992 xm_defines="USG SVR3"
1993 xmake_file=m68k/x-tower
1994 extra_parts="crtbegin.o crtend.o"
1995 extra_headers=math-68881.h
1998 tm_file=m68k/plexus.h
1999 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2002 extra_headers=math-68881.h
2006 xm_file="xm-alloca.h ${xm_file}"
2008 extra_headers=math-68881.h
2011 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2012 xm_defines="USG unos"
2013 xmake_file=m68k/x-crds
2016 extra_headers=math-68881.h
2018 m68k-cbm-sysv4*) # Commodore variant of V.4.
2020 xm_file="xm-alloca.h ${xm_file}"
2021 xm_defines="USG FULL_PROTOTYPES"
2022 xmake_file=m68k/x-amix
2024 extra_parts="crtbegin.o crtend.o"
2025 extra_headers=math-68881.h
2029 tm_file=m68k/ccur-GAS.h
2030 xmake_file=m68k/x-ccur
2031 extra_headers=math-68881.h
2035 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2036 tm_file=m68k/hp3bsd44.h
2037 xmake_file=m68k/x-hp3bsd44
2039 extra_headers=math-68881.h
2042 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2043 tm_file=m68k/hp3bsd.h
2045 extra_headers=math-68881.h
2049 if test x$with_fp = xno
2051 tm_file=m68k/isi-nfp.h
2057 extra_headers=math-68881.h
2059 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2060 xm_file="xm-alloca.h ${xm_file}"
2062 if test x$gas = xyes
2064 xmake_file=m68k/x-hp320g
2065 tm_file=m68k/hp320g.h
2067 xmake_file=m68k/x-hp320
2068 tm_file=m68k/hpux7.h
2070 install_headers_dir=install-headers-cpio
2072 extra_headers=math-68881.h
2075 m68k-hp-hpux*) # HP 9000 series 300
2076 xm_file="xm-alloca.h ${xm_file}"
2078 if test x$gas = xyes
2080 xmake_file=m68k/x-hp320g
2081 tm_file=m68k/hp320g.h
2083 xmake_file=m68k/x-hp320
2084 tm_file=m68k/hp320.h
2086 install_headers_dir=install-headers-cpio
2088 extra_headers=math-68881.h
2092 tm_file=m68k/sun3mach.h
2094 extra_headers=math-68881.h
2098 if test x$gas = xyes
2100 tm_file=m68k/news3gas.h
2102 tm_file=m68k/news3.h
2105 extra_headers=math-68881.h
2108 m68k-sony-bsd* | m68k-sony-newsos*)
2109 if test x$gas = xyes
2111 tm_file=m68k/newsgas.h
2116 extra_headers=math-68881.h
2119 m68k-next-nextstep2*)
2120 tm_file=m68k/next21.h
2121 xm_file="m68k/xm-next.h ${xm_file}"
2122 tmake_file=m68k/t-next
2123 xmake_file=m68k/x-next
2124 extra_objs=nextstep.o
2125 extra_headers=math-68881.h
2130 m68k-next-nextstep[34]*)
2133 xm_file="m68k/xm-next.h ${xm_file}"
2134 tmake_file=m68k/t-next
2135 xmake_file=m68k/x-next
2136 extra_objs=nextstep.o
2137 extra_parts="crtbegin.o crtend.o"
2138 extra_headers=math-68881.h
2140 if test x$enable_threads = xyes; then
2145 if test x$with_fp = xno
2147 tm_file=m68k/sun3n3.h
2149 tm_file=m68k/sun3o3.h
2153 extra_headers=math-68881.h
2155 m68k-sun-sunos*) # For SunOS 4 (the default).
2156 if test x$with_fp = xno
2158 tm_file=m68k/sun3n.h
2164 extra_headers=math-68881.h
2167 tm_file=m68k/vxm68k.h
2168 tmake_file=m68k/t-vxworks68
2169 extra_headers=math-68881.h
2170 thread_file='vxworks'
2174 tmake_file=m68k/t-m68kbare
2175 tm_file="m68k/m68k-aout.h libgloss.h"
2176 extra_headers=math-68881.h
2180 tmake_file=m68k/t-m68kbare
2181 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2182 extra_headers=math-68881.h
2185 m68020-*-elf* | m68k-*-elf*)
2186 tm_file="m68k/m68020-elf.h"
2187 xm_file=m68k/xm-m68kv.h
2188 tmake_file=m68k/t-m68kelf
2189 header_files=math-68881.h
2192 if test x$gas = xyes
2196 tm_file=m68k/lynx-ng.h
2198 xm_file=m68k/xm-lynx.h
2200 tmake_file=m68k/t-lynx
2201 extra_headers=math-68881.h
2205 tm_file=m68k/netbsd.h
2212 # we need collect2 until our bug is fixed...
2215 m68k-*-sysv3*) # Motorola m68k's running system V.3
2216 xm_file="xm-alloca.h ${xm_file}"
2218 xmake_file=m68k/x-m68kv
2219 extra_parts="crtbegin.o crtend.o"
2220 extra_headers=math-68881.h
2223 m68k-*-sysv4*) # Motorola m68k's running system V.4
2224 tm_file=m68k/m68kv4.h
2225 xm_file="xm-alloca.h ${xm_file}"
2228 extra_parts="crtbegin.o crtend.o"
2229 extra_headers=math-68881.h
2232 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2235 tm_file=m68k/linux-aout.h
2236 tmake_file="t-linux-aout m68k/t-linux-aout"
2237 extra_headers=math-68881.h
2241 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2242 # with ELF format using the
2243 # GNU/Linux C library 5
2245 tm_file=m68k/linux.h
2246 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2247 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2248 extra_headers=math-68881.h
2252 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2253 # with ELF format using glibc 2
2254 # aka the GNU/Linux C library 6.
2256 tm_file=m68k/linux.h
2257 tmake_file="t-linux m68k/t-linux"
2258 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2259 extra_headers=math-68881.h
2262 if test x$enable_threads = xyes; then
2267 tmake_file=m68k/t-m68kbare
2268 tm_file=m68k/m68k-psos.h
2269 extra_headers=math-68881.h
2272 m68k-*-rtemscoff*|m68k-*-rtems*)
2273 tmake_file="m68k/t-m68kbare t-rtems"
2274 tm_file=m68k/rtems.h
2275 extra_headers=math-68881.h
2279 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2280 tm_file=m68k/rtemself.h
2281 extra_headers=math-68881.h
2287 tm_file=m88k/dguxbcs.h
2288 tmake_file=m88k/t-dguxbcs
2292 tmake_file=m88k/t-dgux
2295 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2296 xmake_file=m88k/x-dgux
2297 if test x$gas = xyes
2299 tmake_file=m88k/t-dgux-gas
2302 m88k-dolphin-sysv3*)
2303 tm_file=m88k/dolph.h
2304 extra_parts="crtbegin.o crtend.o"
2305 xm_file="m88k/xm-sysv3.h ${xm_file}"
2306 xmake_file=m88k/x-dolph
2307 if test x$gas = xyes
2309 tmake_file=m88k/t-m88k-gas
2312 m88k-tektronix-sysv3)
2313 tm_file=m88k/tekXD88.h
2314 extra_parts="crtbegin.o crtend.o"
2315 xm_file="m88k/xm-sysv3.h ${xm_file}"
2316 xmake_file=m88k/x-tekXD88
2317 if test x$gas = xyes
2319 tmake_file=m88k/t-m88k-gas
2323 tm_file=m88k/m88k-aout.h
2326 tm_file=m88k/m88k-coff.h
2327 tmake_file=m88k/t-bug
2331 extra_parts="crtbegin.o crtend.o"
2332 if test x$gas = xyes
2334 tmake_file=m88k/t-luna-gas
2336 tmake_file=m88k/t-luna
2340 tmake_file="${tmake_file} m88k/t-luna-gas"
2343 tm_file=m88k/sysv3.h
2344 extra_parts="crtbegin.o crtend.o"
2345 xm_file="m88k/xm-sysv3.h ${xm_file}"
2346 xmake_file=m88k/x-sysv3
2347 if test x$gas = xyes
2349 tmake_file=m88k/t-m88k-gas
2353 tm_file=m88k/sysv4.h
2354 extra_parts="crtbegin.o crtend.o"
2355 xmake_file=m88k/x-sysv4
2356 tmake_file=m88k/t-sysv4
2358 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2359 if test "x$gnu_ld" = xyes
2361 tm_file="mips/iris6.h mips/iris6gld.h"
2363 tm_file=mips/iris6.h
2365 tmake_file=mips/t-iris6
2366 xm_file=mips/xm-iris6.h
2367 xmake_file=mips/x-iris6
2368 # if test x$enable_threads = xyes; then
2369 # thread_file='irix'
2373 tm_file="mips/elf.h mips/vxworks.h"
2374 tmake_file=mips/t-ecoff
2377 extra_parts="crtbegin.o crtend.o"
2378 thread_file='vxworks'
2380 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2381 tm_file="mips/iris6.h mips/cross64.h"
2383 xm_file="mips/xm-iris5.h"
2384 xmake_file=mips/x-iris
2385 tmake_file=mips/t-cross64
2386 # See comment in mips/iris[56].h files.
2388 # if test x$enable_threads = xyes; then
2389 # thread_file='irix'
2393 if test x$gas = xyes
2395 if test x$stabs = xyes
2397 tm_file=mips/iris5gdb.h
2399 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2402 tm_file=mips/sni-svr4.h
2405 xmake_file=mips/x-sni-svr4
2406 tmake_file=mips/t-mips-gas
2407 if test x$gnu_ld != xyes
2412 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2413 if test x$gas = xyes
2415 tm_file="mips/iris5.h mips/iris5gas.h"
2416 if test x$stabs = xyes
2418 tm_file="${tm_file} dbx.h"
2421 tm_file=mips/iris5.h
2424 xm_file="mips/xm-iris5.h"
2425 xmake_file=mips/x-iris
2426 # mips-tfile doesn't work yet
2427 tmake_file=mips/t-mips-gas
2428 # See comment in mips/iris5.h file.
2430 # if test x$enable_threads = xyes; then
2431 # thread_file='irix'
2434 mips-sgi-irix4loser*) # Mostly like a MIPS.
2435 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2436 if test x$stabs = xyes; then
2437 tm_file="${tm_file} dbx.h"
2440 xmake_file=mips/x-iris
2441 if test x$gas = xyes
2443 tmake_file=mips/t-mips-gas
2445 extra_passes="mips-tfile mips-tdump"
2447 if test x$gnu_ld != xyes
2451 # if test x$enable_threads = xyes; then
2452 # thread_file='irix'
2455 mips-sgi-irix4*) # Mostly like a MIPS.
2456 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2457 if test x$stabs = xyes; then
2458 tm_file="${tm_file} dbx.h"
2461 xmake_file=mips/x-iris
2462 if test x$gas = xyes
2464 tmake_file=mips/t-mips-gas
2466 extra_passes="mips-tfile mips-tdump"
2468 if test x$gnu_ld != xyes
2472 # if test x$enable_threads = xyes; then
2473 # thread_file='irix'
2476 mips-sgi-*) # Mostly like a MIPS.
2477 tm_file="mips/iris3.h ${tm_file}"
2478 if test x$stabs = xyes; then
2479 tm_file="${tm_file} dbx.h"
2482 xmake_file=mips/x-iris3
2483 if test x$gas = xyes
2485 tmake_file=mips/t-mips-gas
2487 extra_passes="mips-tfile mips-tdump"
2489 if test x$gnu_ld != xyes
2494 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2495 tm_file="mips/osfrose.h ${tm_file}"
2496 xmake_file=mips/x-osfrose
2497 tmake_file=mips/t-osfrose
2498 extra_objs=halfpic.o
2501 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2502 tm_file=mips/dec-osf1.h
2503 if test x$stabs = xyes; then
2504 tm_file="${tm_file} dbx.h"
2506 xmake_file=mips/x-dec-osf1
2507 if test x$gas = xyes
2509 tmake_file=mips/t-mips-gas
2511 tmake_file=mips/t-ultrix
2512 extra_passes="mips-tfile mips-tdump"
2514 if test x$gnu_ld != xyes
2519 mips-dec-bsd*) # Decstation running 4.4 BSD
2520 tm_file=mips/dec-bsd.h
2521 if test x$gas = xyes
2523 tmake_file=mips/t-mips-gas
2525 tmake_file=mips/t-ultrix
2526 extra_passes="mips-tfile mips-tdump"
2528 if test x$gnu_ld != xyes
2533 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2534 tm_file=mips/netbsd.h
2535 # On NetBSD, the headers are already okay, except for math.h.
2538 mips*-*-linux*) # Linux MIPS, either endian.
2541 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2542 *) tm_file="mips/elf.h mips/linux.h" ;;
2544 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2547 if test x$enable_threads = xyes; then
2551 mips*el-*-openbsd*) # mips little endian
2552 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2554 mips*-*-openbsd*) # mips big endian
2555 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2556 tm_file="mips/openbsd-be.h ${tm_file}"
2558 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2559 tm_file="mips/news4.h ${tm_file}"
2560 if test x$stabs = xyes; then
2561 tm_file="${tm_file} dbx.h"
2563 if test x$gas = xyes
2565 tmake_file=mips/t-mips-gas
2567 extra_passes="mips-tfile mips-tdump"
2569 if test x$gnu_ld != xyes
2573 xmake_file=mips/x-sony
2575 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2576 # That is based on svr4.
2577 # t-svr4 is not right because this system doesn't use ELF.
2578 tm_file="mips/news5.h ${tm_file}"
2579 if test x$stabs = xyes; then
2580 tm_file="${tm_file} dbx.h"
2583 if test x$gas = xyes
2585 tmake_file=mips/t-mips-gas
2587 extra_passes="mips-tfile mips-tdump"
2589 if test x$gnu_ld != xyes
2594 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2595 tm_file="mips/svr4-5.h mips/svr4-t.h"
2596 if test x$stabs = xyes; then
2597 tm_file="${tm_file} dbx.h"
2600 xmake_file=mips/x-sysv
2601 if test x$gas = xyes
2603 tmake_file=mips/t-mips-gas
2604 extra_parts="crtbegin.o crtend.o"
2606 tmake_file=mips/t-mips
2607 extra_passes="mips-tfile mips-tdump"
2609 if test x$gnu_ld != xyes
2614 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2615 tm_file="mips/ultrix.h ${tm_file}"
2616 if test x$stabs = xyes; then
2617 tm_file="${tm_file} dbx.h"
2619 xmake_file=mips/x-ultrix
2620 if test x$gas = xyes
2622 tmake_file=mips/t-mips-gas
2624 tmake_file=mips/t-ultrix
2625 extra_passes="mips-tfile mips-tdump"
2627 if test x$gnu_ld != xyes
2633 mips-*-riscos[56789]bsd*)
2635 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2636 if test x$stabs = xyes; then
2637 tm_file="${tm_file} dbx.h"
2639 if test x$gas = xyes
2641 tmake_file=mips/t-bsd-gas
2643 tmake_file=mips/t-bsd
2644 extra_passes="mips-tfile mips-tdump"
2646 if test x$gnu_ld != xyes
2652 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2654 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2655 if test x$stabs = xyes; then
2656 tm_file="${tm_file} dbx.h"
2658 if test x$gas = xyes
2660 tmake_file=mips/t-bsd-gas
2662 tmake_file=mips/t-bsd
2663 extra_passes="mips-tfile mips-tdump"
2665 if test x$gnu_ld != xyes
2671 mips-*-riscos[56789]sysv4*)
2673 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2674 if test x$stabs = xyes; then
2675 tm_file="${tm_file} dbx.h"
2677 xmake_file=mips/x-sysv
2678 if test x$gas = xyes
2680 tmake_file=mips/t-svr4-gas
2682 tmake_file=mips/t-svr4
2683 extra_passes="mips-tfile mips-tdump"
2685 if test x$gnu_ld != xyes
2691 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2693 tm_file="mips/svr4-4.h ${tm_file}"
2694 if test x$stabs = xyes; then
2695 tm_file="${tm_file} dbx.h"
2698 xmake_file=mips/x-sysv
2699 if test x$gas = xyes
2701 tmake_file=mips/t-svr4-gas
2703 tmake_file=mips/t-svr4
2704 extra_passes="mips-tfile mips-tdump"
2706 if test x$gnu_ld != xyes
2712 mips-*-riscos[56789]sysv*)
2714 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2715 if test x$stabs = xyes; then
2716 tm_file="${tm_file} dbx.h"
2719 xmake_file=mips/x-sysv
2720 if test x$gas = xyes
2722 tmake_file=mips/t-svr3-gas
2724 tmake_file=mips/t-svr3
2725 extra_passes="mips-tfile mips-tdump"
2727 if test x$gnu_ld != xyes
2732 mips-*-sysv* | mips-*-riscos*sysv*)
2733 tm_file="mips/svr3-4.h ${tm_file}"
2734 if test x$stabs = xyes; then
2735 tm_file="${tm_file} dbx.h"
2738 xmake_file=mips/x-sysv
2739 if test x$gas = xyes
2741 tmake_file=mips/t-svr3-gas
2743 tmake_file=mips/t-svr3
2744 extra_passes="mips-tfile mips-tdump"
2746 if test x$gnu_ld != xyes
2752 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2754 tm_file=mips/mips-5.h
2755 if test x$stabs = xyes; then
2756 tm_file="${tm_file} dbx.h"
2758 if test x$gas = xyes
2760 tmake_file=mips/t-mips-gas
2762 extra_passes="mips-tfile mips-tdump"
2764 if test x$gnu_ld != xyes
2772 tm_file=mips/ecoffl.h
2773 if test x$stabs = xyes; then
2774 tm_file="${tm_file} dbx.h"
2776 tmake_file=mips/t-ecoff
2779 tm_file="gofast.h mips/ecoff.h"
2780 if test x$stabs = xyes; then
2781 tm_file="${tm_file} dbx.h"
2783 tmake_file=mips/t-ecoff
2786 tm_file="mips/elfl.h"
2787 tmake_file=mips/t-elf
2790 tm_file="mips/elf.h"
2791 tmake_file=mips/t-elf
2794 tm_file="mips/elfl64.h"
2795 tmake_file=mips/t-elf
2797 mips64orionel-*-elf*)
2798 tm_file="mips/elforion.h mips/elfl64.h"
2799 tmake_file=mips/t-elf
2802 tm_file="mips/elf64.h"
2803 tmake_file=mips/t-elf
2806 tm_file="mips/elforion.h mips/elf64.h"
2807 tmake_file=mips/t-elf
2809 mips64orion-*-rtems*)
2810 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2811 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2812 tmake_file="mips/t-elf t-rtems"
2815 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2816 tmake_file=mips/t-r3900
2819 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2820 tmake_file=mips/t-r3900
2822 mips-*-*) # Default MIPS RISC-OS 4.0.
2823 if test x$stabs = xyes; then
2824 tm_file="${tm_file} dbx.h"
2826 if test x$gas = xyes
2828 tmake_file=mips/t-mips-gas
2830 extra_passes="mips-tfile mips-tdump"
2832 if test x$gnu_ld != xyes
2839 tm_file="mn10200/mn10200.h"
2840 if test x$stabs = xyes
2842 tm_file="${tm_file} dbx.h"
2848 tm_file="mn10300/mn10300.h"
2849 if test x$stabs = xyes
2851 tm_file="${tm_file} dbx.h"
2856 tm_file=ns32k/encore.h
2860 tm_file=ns32k/sequent.h
2864 tm_file=ns32k/tek6100.h
2868 tm_file=ns32k/tek6200.h
2871 # This has not been updated to GCC 2.
2874 # xmake_file=ns32k/x-genix
2875 # tm_file=ns32k/genix.h
2879 tm_file=ns32k/merlin.h
2883 tm_file=ns32k/pc532-mach.h
2887 tm_file=ns32k/pc532-min.h
2888 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2893 tm_file=ns32k/netbsd.h
2894 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2895 # On NetBSD, the headers are already okay, except for math.h.
2900 tm_file="${tm_file} pdp11/2bsd.h"
2907 # This has not been updated to GCC 2.
2910 # xmake_file=pyr/x-pyr
2917 xmake_file=romp/x-mach
2924 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2928 tm_file=rs6000/beos.h
2929 xm_file=rs6000/xm-beos.h
2930 tmake_file=rs6000/t-beos
2931 xmake_file=rs6000/x-beos
2933 powerpc-*-sysv* | powerpc-*-elf*)
2934 tm_file=rs6000/sysv4.h
2935 xm_file="rs6000/xm-sysv4.h"
2936 xm_defines="USG POSIX"
2937 extra_headers=ppc-asm.h
2938 if test x$gas = xyes
2940 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2942 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2944 xmake_file=rs6000/x-sysv4
2947 tm_file=rs6000/eabiaix.h
2948 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2949 extra_headers=ppc-asm.h
2952 tm_file=rs6000/eabisim.h
2953 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2954 extra_headers=ppc-asm.h
2957 tm_file=rs6000/eabi.h
2958 if test x$gas = xyes
2960 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2962 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2964 extra_headers=ppc-asm.h
2967 tm_file=rs6000/rtems.h
2968 if test x$gas = xyes
2970 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2972 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2974 extra_headers=ppc-asm.h
2976 powerpc-*-linux-gnulibc1)
2977 tm_file=rs6000/linux.h
2978 xm_file=rs6000/xm-sysv4.h
2979 out_file=rs6000/rs6000.c
2980 if test x$gas = xyes
2982 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2984 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2987 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2988 extra_headers=ppc-asm.h
2989 if test x$enable_threads = xyes; then
2993 powerpc-*-linux-gnu*)
2994 tm_file=rs6000/linux.h
2995 xm_file="rs6000/xm-sysv4.h"
2996 xm_defines="USG ${xm_defines}"
2997 out_file=rs6000/rs6000.c
2998 if test x$gas = xyes
3000 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3002 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
3005 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3006 extra_headers=ppc-asm.h
3007 if test x$enable_threads = xyes; then
3011 powerpc-wrs-vxworks*)
3013 xm_file="rs6000/xm-sysv4.h"
3014 xm_defines="USG POSIX"
3015 tm_file=rs6000/vxppc.h
3016 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3017 extra_headers=ppc-asm.h
3018 thread_file='vxworks'
3020 powerpcle-*-sysv* | powerpcle-*-elf*)
3021 tm_file=rs6000/sysv4le.h
3022 xm_file="rs6000/xm-sysv4.h"
3023 xm_defines="USG POSIX"
3024 if test x$gas = xyes
3026 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3028 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3030 xmake_file=rs6000/x-sysv4
3031 extra_headers=ppc-asm.h
3033 powerpcle-*-eabisim*)
3034 tm_file=rs6000/eabilesim.h
3035 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3036 extra_headers=ppc-asm.h
3039 tm_file=rs6000/eabile.h
3040 if test x$gas = xyes
3042 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3044 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3046 extra_headers=ppc-asm.h
3048 powerpcle-*-winnt* )
3049 tm_file=rs6000/win-nt.h
3050 tmake_file=rs6000/t-winnt
3052 if test x$enable_threads = xyes; then
3055 extra_headers=ppc-asm.h
3057 powerpcle-*-pe | powerpcle-*-cygwin*)
3058 tm_file=rs6000/cygwin.h
3059 xm_file="rs6000/xm-cygwin.h ${xm_file}"
3060 tmake_file=rs6000/t-winnt
3061 xmake_file=rs6000/x-cygwin
3063 if test x$enable_threads = xyes; then
3067 extra_headers=ppc-asm.h
3069 powerpcle-*-solaris2*)
3070 tm_file=rs6000/sol2.h
3071 xm_file="rs6000/xm-sysv4.h"
3072 xm_defines="USG POSIX"
3073 if test x$gas = xyes
3075 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3077 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
3079 xmake_file=rs6000/x-sysv4
3080 extra_headers=ppc-asm.h
3083 rs6000-ibm-aix3.[01]*)
3085 tm_file=rs6000/aix31.h
3086 xmake_file=rs6000/x-aix31
3091 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3093 tm_file=rs6000/aix3newas.h
3094 if test x$host != x$target
3096 tmake_file=rs6000/t-xnewas
3098 tmake_file=rs6000/t-newas
3104 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3106 tm_file=rs6000/aix41.h
3107 if test x$host != x$target
3109 tmake_file=rs6000/t-xnewas
3111 tmake_file=rs6000/t-newas
3113 if test "$gnu_ld" = yes
3115 xmake_file=rs6000/x-aix41-gld
3117 xmake_file=rs6000/x-aix41
3123 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3125 tm_file=rs6000/aix43.h
3126 if test x$host != x$target
3128 tmake_file=rs6000/t-xaix43
3130 tmake_file=rs6000/t-aix43
3132 xmake_file=rs6000/x-aix43
3137 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3139 tm_file=rs6000/aix43.h
3140 if test x$host != x$target
3142 tmake_file=rs6000/t-xaix43
3144 tmake_file=rs6000/t-aix43
3146 xmake_file=rs6000/x-aix43
3159 tm_file=rs6000/mach.h
3160 xm_file="${xm_file} rs6000/xm-mach.h"
3161 xmake_file=rs6000/x-mach
3165 tm_file=rs6000/lynx.h
3166 xm_file=rs6000/xm-lynx.h
3167 tmake_file=rs6000/t-rs6000
3168 xmake_file=rs6000/x-lynx
3176 tmake_file="sh/t-sh t-rtems"
3177 tm_file=sh/rtemself.h
3181 tmake_file="sh/t-sh t-rtems"
3190 xm_file="xm-alloca.h ${xm_file}"
3193 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3194 tm_file=sparc/vxsparc.h
3195 tmake_file=sparc/t-vxsparc
3197 thread_file='vxworks'
3200 tmake_file=sparc/t-sparcbare
3201 tm_file="sparc/aout.h libgloss.h"
3204 tm_file=sparc/netbsd.h
3209 # we need collect2 until our bug is fixed...
3217 tmake_file=sparc/t-elf
3218 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3222 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3223 xm_file="${xm_file} sparc/xm-linux.h"
3224 tm_file=sparc/linux-aout.h
3228 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3229 xm_file="${xm_file} sparc/xm-linux.h"
3231 tm_file=sparc/linux.h
3232 tmake_file="t-linux t-linux-gnulibc1"
3233 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3237 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3238 xm_file="${xm_file} sparc/xm-linux.h"
3240 tm_file=sparc/linux.h
3241 tmake_file="t-linux"
3242 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3244 if test x$enable_threads = xyes; then
3250 if test x$gas = xyes
3252 tm_file=sparc/lynx.h
3254 tm_file=sparc/lynx-ng.h
3256 xm_file=sparc/xm-lynx.h
3257 tmake_file=sparc/t-sunos41
3260 sparc-*-rtems*|sparc-*-rtemself*)
3261 tm_file="sparc/rtemself.h"
3262 tmake_file="sparc/t-elf t-rtems"
3263 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3268 tmake_file="sparc/t-sparcbare t-rtems"
3269 tm_file=sparc/rtems.h
3271 sparcv9-*-solaris2*)
3272 if test x$gnu_ld = xyes
3274 tm_file=sparc/sol2-64.h
3276 tm_file=sparc/sol2-sld-64.h
3278 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3279 xm_defines="USG POSIX"
3280 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3281 xmake_file=sparc/x-sysv4
3282 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3284 if test x${enable_threads} = x ; then
3285 enable_threads=$have_pthread_h
3286 if test x${enable_threads} = x ; then
3287 enable_threads=$have_thread_h
3290 if test x${enable_threads} = xyes ; then
3291 if test x${have_pthread_h} = xyes ; then
3294 thread_file='solaris'
3298 sparc-hal-solaris2*)
3299 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3300 xm_defines="USG POSIX"
3301 tm_file="sparc/sol2.h sparc/hal.h"
3302 tmake_file="sparc/t-halos sparc/t-sol2"
3303 xmake_file=sparc/x-sysv4
3304 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3313 thread_file='solaris'
3316 if test x$gnu_ld = xyes
3318 tm_file=sparc/sol2.h
3320 tm_file=sparc/sol2-sld.h
3322 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3323 xm_defines="USG POSIX"
3324 tmake_file=sparc/t-sol2
3325 xmake_file=sparc/x-sysv4
3326 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3329 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3332 if test x$gnu_ld = xyes
3334 tm_file=sparc/sol2-64.h
3336 tm_file=sparc/sol2-sld-64.h
3338 tmake_file="$tmake_file sparc/t-sol2-64"
3351 if test x${enable_threads} = x; then
3352 enable_threads=$have_pthread_h
3353 if test x${enable_threads} = x; then
3354 enable_threads=$have_thread_h
3357 if test x${enable_threads} = xyes; then
3358 if test x${have_pthread_h} = xyes; then
3361 thread_file='solaris'
3366 tm_file=sparc/sunos4.h
3367 tmake_file=sparc/t-sunos40
3371 tm_file=sparc/sunos4.h
3372 tmake_file=sparc/t-sunos41
3374 if test x$gas = xyes; then
3375 tm_file="${tm_file} sparc/sun4gas.h"
3379 tm_file=sparc/sun4o3.h
3383 tm_file=sparc/sysv4.h
3384 xm_file="sparc/xm-sysv4.h"
3385 xm_defines="USG POSIX"
3387 xmake_file=sparc/x-sysv4
3388 extra_parts="crtbegin.o crtend.o"
3391 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3392 xm_defines="USG POSIX"
3393 tm_file=sparc/vxsim.h
3394 tmake_file=sparc/t-vxsparc
3395 xmake_file=sparc/x-sysv4
3398 tm_file="sparc/splet.h libgloss.h"
3399 tmake_file=sparc/t-splet
3402 tm_file="sparc/litecoff.h libgloss.h"
3403 tmake_file=sparc/t-sparclite
3406 tm_file="sparc/lite.h aoutos.h libgloss.h"
3407 tmake_file=sparc/t-sparclite
3410 tm_file="sparc/liteelf.h"
3411 tmake_file=sparc/t-sparclite
3412 extra_parts="crtbegin.o crtend.o"
3415 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3416 tmake_file=sparc/t-sp86x
3419 tm_file="sparc/sp86x-elf.h"
3420 tmake_file=sparc/t-sp86x
3421 extra_parts="crtbegin.o crtend.o"
3424 tmake_file=sparc/t-sp64
3425 tm_file=sparc/sp64-aout.h
3428 tmake_file=sparc/t-sp64
3429 tm_file=sparc/sp64-elf.h
3430 extra_parts="crtbegin.o crtend.o"
3432 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3433 tmake_file="t-linux sparc/t-linux64"
3434 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3435 tm_file=sparc/linux64.h
3437 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3439 if test x$enable_threads = xyes; then
3444 # This hasn't been upgraded to GCC 2.
3445 # tahoe-harris-*) # Harris tahoe, using COFF.
3446 # tm_file=tahoe/harris.h
3448 # tahoe-*-bsd*) # tahoe running BSD
3450 thumb-*-coff* | thumbel-*-coff*)
3452 out_file=arm/thumb.c
3453 xm_file=arm/xm-thumb.h
3454 md_file=arm/thumb.md
3455 tmake_file=arm/t-thumb
3457 thumb-*-elf* | thumbel-*-elf*)
3459 out_file=arm/thumb.c
3460 xm_file=arm/xm-thumb.h
3461 md_file=arm/thumb.md
3462 tmake_file=arm/t-thumb-elf
3465 tm_file=arm/linux-telf.h
3466 out_file=arm/thumb.c
3467 xm_file=arm/xm-thumb.h
3468 md_file=arm/thumb.md
3469 tmake_file=arm/t-thumb-linux
3472 tm_file=arm/uclinux-telf.h
3473 out_file=arm/thumb.c
3474 md_file=arm/thumb.md
3475 tmake_file=arm/t-thumb-linux
3476 xm_file=arm/xm-thumb.h
3480 out_file=arm/thumb.c
3481 xm_file=arm/xm-thumb.h
3482 md_file=arm/thumb.md
3483 tmake_file=arm/t-thumb
3484 thread_file='vxworks'
3488 out_file=arm/thumb.c
3489 xm_file=arm/xm-thumb.h
3490 md_file=arm/thumb.md
3491 tmake_file=arm/t-pe-thumb
3494 # This hasn't been upgraded to GCC 2.
3500 target_cpu_default="TARGET_CPU_generic"
3502 tm_file="v850/v850.h"
3503 xm_file="v850/xm-v850.h"
3504 tmake_file=v850/t-v850
3505 if test x$stabs = xyes
3507 tm_file="${tm_file} dbx.h"
3511 vax-*-bsd*) # vaxen running BSD
3515 vax-*-sysv*) # vaxen running system V
3516 tm_file="${tm_file} vax/vaxv.h"
3521 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3527 tmake_file="${tmake_file} vax/t-openbsd"
3529 vax-*-ultrix*) # vaxen running ultrix
3530 tm_file="${tm_file} vax/ultrix.h"
3534 vax-*-vms*) # vaxen running VMS
3535 xm_file=vax/xm-vms.h
3539 vax-*-*) # vax default entry
3543 xm_file="${xm_file} xm-svr3"
3547 echo "Configuration $machine not supported" 1>&2
3554 ;; # Existing GNU/Linux systems do not use the GNU setup.
3556 # On the GNU system, the setup is just about the same on
3557 # each different CPU. The specific machines that GNU
3558 # supports are matched above and just set $cpu_type.
3559 xm_file="xm-gnu.h ${xm_file}"
3560 tm_file=${cpu_type}/gnu.h
3561 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3562 # GNU always uses ELF.
3564 # GNU tools are the only tools.
3567 xmake_file=x-linux # These details are the same as Linux.
3568 tmake_file=t-gnu # These are not.
3571 xmake_try_sysv=x-sysv
3572 install_headers_dir=install-headers-cpio
3575 install_headers_dir=install-headers-cpio
3579 # Distinguish i[34567]86
3580 # Also, do not run mips-tfile on MIPS if using gas.
3581 # Process --with-cpu= for PowerPC/rs6000
3582 target_cpu_default2=
3585 target_cpu_default2=1
3588 case $target_alias in
3590 target_cpu_default2=4
3593 target_cpu_default2=2
3597 i686-*-* | i786-*-*)
3598 target_cpu_default2=3
3605 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3608 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3611 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3614 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3617 target_cpu_default2="MASK_CPU_EV5"
3621 if test x$gas = xyes
3623 if test "$target_cpu_default2" = ""
3625 target_cpu_default2="MASK_GAS"
3627 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3632 case "x$with_cpu" in
3635 target_cpu_default2="TARGET_CPU_generic"
3638 # Distinguish cores, and major variants
3639 # arm7m doesn't exist, but D & I don't affect code
3641 xarm[23678] | xarm250 | xarm[67][01]0 \
3642 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3643 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3644 | xstrongarm | xstrongarm110 | xstrongarm1100)
3646 target_cpu_default2="TARGET_CPU_$with_cpu"
3650 echo "--with-cpu must be passed a value" 1>&2
3655 if test x$pass2done = xyes
3657 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3664 mips*-*-ecoff* | mips*-*-elf*)
3665 if test x$gas = xyes
3667 if test x$gnu_ld = xyes
3669 target_cpu_default2=20
3671 target_cpu_default2=16
3676 if test x$gas = xyes
3678 target_cpu_default2=16
3681 powerpc*-*-* | rs6000-*-*)
3682 case "x$with_cpu" in
3686 xcommon | xpower | xpower2 | xpowerpc | xrios \
3687 | xrios1 | xrios2 | xrsc | xrsc1 \
3688 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3689 | xec603e | x740 | x750 | x401 \
3690 | x403 | x505 | x801 | x821 | x823 | x860)
3691 target_cpu_default2="\"$with_cpu\""
3695 echo "--with-cpu must be passed a value" 1>&2
3700 if test x$pass2done = xyes
3702 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3709 case ".$with_cpu" in
3711 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3713 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3714 target_cpu_default2="TARGET_CPU_$with_cpu"
3717 if test x$pass2done = xyes
3719 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3727 if test "$target_cpu_default2" != ""
3729 if test "$target_cpu_default" != ""
3731 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3733 target_cpu_default=$target_cpu_default2
3737 # No need for collect2 if we have the GNU linker.
3738 # Actually, there is now; GNU ld doesn't handle the EH info or
3739 # collecting for shared libraries.
3746 # Save data on machine being used to compile GCC in build_xm_file.
3747 # Save data on host machine in vars host_xm_file and host_xmake_file.
3748 if test x$pass1done = x
3750 if test x"$xm_file" = x
3751 then build_xm_file=$cpu_type/xm-$cpu_type.h
3752 else build_xm_file=$xm_file
3754 build_xm_defines=$xm_defines
3755 build_install_headers_dir=$install_headers_dir
3756 build_exeext=$exeext
3759 if test x$pass2done = x
3761 if test x"$xm_file" = x
3762 then host_xm_file=$cpu_type/xm-$cpu_type.h
3763 else host_xm_file=$xm_file
3765 host_xm_defines=$xm_defines
3766 if test x"$xmake_file" = x
3767 then xmake_file=$cpu_type/x-$cpu_type
3769 host_xmake_file="$xmake_file"
3770 host_truncate_target=$truncate_target
3771 host_extra_gcc_objs=$extra_gcc_objs
3772 host_extra_objs=$extra_host_objs
3779 extra_objs="${host_extra_objs} ${extra_objs}"
3781 # Default the target-machine variables that were not explicitly set.
3782 if test x"$tm_file" = x
3783 then tm_file=$cpu_type/$cpu_type.h; fi
3785 if test x$extra_headers = x
3786 then extra_headers=; fi
3788 if test x"$xm_file" = x
3789 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3791 if test x$md_file = x
3792 then md_file=$cpu_type/$cpu_type.md; fi
3794 if test x$out_file = x
3795 then out_file=$cpu_type/$cpu_type.c; fi
3797 if test x"$tmake_file" = x
3798 then tmake_file=$cpu_type/t-$cpu_type
3801 if test x"$dwarf2" = xyes
3802 then tm_file="tm-dwarf2.h $tm_file"
3805 if test x$float_format = x
3806 then float_format=i64
3809 if test $float_format = none
3810 then float_h_file=Makefile.in
3811 else float_h_file=float-$float_format.h
3814 # Handle cpp installation.
3815 if test x$enable_cpp != xno
3817 tmake_file="$tmake_file t-install-cpp"
3820 # Say what files are being used for the output code and MD file.
3821 echo "Using \`$srcdir/config/$out_file' to output insns."
3822 echo "Using \`$srcdir/config/$md_file' as machine description file."
3825 for f in $tm_file; do
3828 if test $count = ax; then
3829 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3831 echo "Using the following target machine macro files:"
3832 for f in $tm_file; do
3833 echo " $srcdir/config/$f"
3838 for f in $host_xm_file; do
3841 if test $count = ax; then
3842 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3844 echo "Using the following host machine macro files:"
3845 for f in $host_xm_file; do
3846 echo " $srcdir/config/$f"
3850 if test "$host_xm_file" != "$build_xm_file"; then
3852 for f in $build_xm_file; do
3855 if test $count = ax; then
3856 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3858 echo "Using the following build machine macro files:"
3859 for f in $build_xm_file; do
3860 echo " $srcdir/config/$f"
3865 if test x$thread_file = x; then
3866 if test x$target_thread_file != x; then
3867 thread_file=$target_thread_file
3869 thread_file='single'
3873 # Set up the header files.
3874 # $links is the list of header files to create.
3875 # $vars is the list of shell variables with file names to include.
3876 # auto-host.h is the file containing items generated by autoconf and is
3877 # the first file included by config.h.
3879 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3881 # If host=build, it is correct to have hconfig include auto-host.h
3882 # as well. If host!=build, we are in error and need to do more
3883 # work to find out the build config parameters.
3884 if test x$host = x$build
3886 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
3888 # We create a subdir, then run autoconf in the subdir.
3889 # To prevent recursion we set host and build for the new
3890 # invocation of configure to the build for this invocation
3897 /*) realsrcdir=${srcdir};;
3898 *) realsrcdir=../${srcdir};;
3900 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3901 --target=$target --host=$build --build=$build
3903 # We just finished tests for the build machine, so rename
3904 # the file auto-build.h in the gcc directory.
3905 mv auto-host.h ../auto-build.h
3908 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
3911 xm_file="gansidecl.h ${xm_file}"
3912 tm_file="gansidecl.h ${tm_file}"
3914 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
3915 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
3916 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
3919 if test -f config.status; then mv -f config.status config.bak; fi
3922 while test -n "$vars"
3924 set $vars; var=$1; shift; vars=$*
3925 set $links; link=$1; shift; links=$*
3926 set $defines; define=$1; shift; defines=$*
3929 # Make sure the file is created, even if it is empty.
3932 # Define TARGET_CPU_DEFAULT if the system wants one.
3933 # This substitutes for lots of *.h files.
3934 if test "$target_cpu_default" != "" -a $link = tm.h
3936 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3939 for file in `eval echo '$'$var`; do
3944 echo '#ifdef IN_GCC' >>$link
3947 echo "#include \"$file\"" >>$link
3952 echo '#endif' >>$link
3957 for def in `eval echo '$'$define`; do
3958 echo "#ifndef $def" >>$link
3959 echo "#define $def" >>$link
3960 echo "#endif" >>$link
3964 # Truncate the target if necessary
3965 if test x$host_truncate_target != x; then
3966 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3969 # Get the version trigger filename from the toplevel
3970 if test "${with_gcc_version_trigger+set}" = set; then
3971 gcc_version_trigger=$with_gcc_version_trigger
3973 gcc_version_trigger=${srcdir}/version.c
3976 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3979 # Internationalization
3981 VERSION="$gcc_version"
3982 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3983 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3989 # NLS support is still experimental, so disable it by default for now.
3991 [ --enable-nls use Native Language Support (disabled by default)],
3995 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3997 # Windows32 Registry support for specifying GCC installation paths.
3998 AC_ARG_ENABLE(win32-registry,
3999 [ --disable-win32-registry
4000 Disable lookup of installation paths in the
4001 Registry on Windows hosts.
4002 --enable-win32-registry Enable registry lookup (default).
4003 --enable-win32-registry=KEY
4004 Use KEY instead of GCC version as the last portion
4005 of the registry key.],,)
4007 AC_MSG_CHECKING(whether windows registry support is requested)
4008 if test x$enable_win32_registry != xno; then
4009 AC_DEFINE(ENABLE_WIN32_REGISTRY)
4015 # Check if user specified a different registry key.
4016 case x${enable_win32_registry} in
4019 gcc_cv_win32_registry_key="$VERSION"
4022 # no registry lookup.
4023 gcc_cv_win32_registry_key=''
4026 # user-specified key.
4027 gcc_cv_win32_registry_key="$enable_win32_registry"
4031 if test x$enable_win32_registry != xno; then
4032 AC_MSG_CHECKING(registry key on windows hosts)
4033 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key")
4034 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4037 # Get an absolute path to the GCC top-level source directory
4043 # Conditionalize the makefile for this host machine.
4044 # Make-host contains the concatenation of all host makefile fragments
4045 # [there can be more than one]. This file is built by configure.frag.
4046 host_overrides=Make-host
4047 dep_host_xmake_file=
4048 for f in .. ${host_xmake_file}
4050 if test -f ${srcdir}/config/$f
4052 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4056 # Conditionalize the makefile for this target machine.
4057 # Make-target contains the concatenation of all host makefile fragments
4058 # [there can be more than one]. This file is built by configure.frag.
4059 target_overrides=Make-target
4061 for f in .. ${tmake_file}
4063 if test -f ${srcdir}/config/$f
4065 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4069 # If the host doesn't support symlinks, modify CC in
4070 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4071 # Otherwise, we can use "CC=$(CC)".
4073 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4075 cc_set_by_configure="\$(CC)"
4076 quoted_cc_set_by_configure="\$(CC)"
4077 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4080 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4082 symbolic_link="cp -p"
4086 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4087 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4088 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4092 out_object_file=`basename $out_file .c`.o
4095 for f in $tm_file; do
4098 tm_file_list="${tm_file_list} $f" ;;
4099 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4104 for f in $host_xm_file; do
4106 auto-host.h | gansidecl.h | hwint.h )
4107 host_xm_file_list="${host_xm_file_list} $f" ;;
4108 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4113 for f in $build_xm_file; do
4115 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4116 build_xm_file_list="${build_xm_file_list} $f" ;;
4117 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4121 # Define macro CROSS_COMPILE in compilation
4122 # if this is a cross-compiler.
4123 # Also use all.cross instead of all.internal
4124 # and add cross-make to Makefile.
4125 cross_overrides="/dev/null"
4126 if test x$host != x$target
4128 cross_defines="CROSS=-DCROSS_COMPILE"
4129 cross_overrides="${topdir}/cross-make"
4132 # When building gcc with a cross-compiler, we need to fix a few things.
4133 # This must come after cross-make as we want all.build to override
4135 build_overrides="/dev/null"
4136 if test x$build != x$host
4138 build_overrides="${topdir}/build-make"
4141 # Expand extra_headers to include complete path.
4142 # This substitutes for lots of t-* files.
4144 if test "x$extra_headers" = x
4147 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4148 for file in $extra_headers;
4150 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4154 if test x$use_collect2 = xno; then
4158 # Add a definition of USE_COLLECT2 if system wants one.
4159 # Also tell toplev.c what to do.
4160 # This substitutes for lots of t-* files.
4161 if test x$use_collect2 = x
4166 will_use_collect2="collect2"
4167 maybe_use_collect2="-DUSE_COLLECT2"
4171 # Set MD_DEPS if the real md file is in md.pre-cpp.
4172 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4173 # for line oriented comments, so we must always use a GNU cpp. If
4174 # building gcc with a cross compiler, use the cross compiler just
4175 # built. Otherwise, we can use the cpp just built.
4177 if test "x$md_cppflags" = x
4179 md_file_sub=$srcdir/config/$md_file
4184 # If we have gas in the build tree, make a link to it.
4185 if test -f ../gas/Makefile; then
4186 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4189 # If we have nm in the build tree, make a link to it.
4190 if test -f ../binutils/Makefile; then
4191 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4194 # If we have ld in the build tree, make a link to it.
4195 if test -f ../ld/Makefile; then
4196 # if test x$use_collect2 = x; then
4197 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4199 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4203 # Figure out what assembler alignment features are present.
4204 AC_MSG_CHECKING(assembler alignment features)
4206 gcc_cv_as_alignment_features=
4207 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4208 if test -x "$DEFAULT_ASSEMBLER"; then
4209 gcc_cv_as="$DEFAULT_ASSEMBLER"
4210 elif test -x "$AS"; then
4212 elif test -x as$host_exeext; then
4213 # Build using assembler in the current directory.
4214 gcc_cv_as=./as$host_exeext
4215 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4216 # Single tree build which includes gas.
4217 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4220 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4222 if test x$gcc_cv_gas_version != x; then
4227 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4228 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4230 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4231 # Gas version 2.6 and later support for .balign and .p2align.
4232 # bytes to skip when using .p2align.
4233 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
4234 gcc_cv_as_alignment_features=".balign and .p2align"
4235 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4237 # Gas version 2.8 and later support specifying the maximum
4238 # bytes to skip when using .p2align.
4239 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
4240 gcc_cv_as_alignment_features=".p2align including maximum skip"
4241 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4244 elif test x$host = x$target; then
4246 # Search the same directories that the installed compiler will
4247 # search. Else we may find the wrong assembler and lose. If we
4248 # do not find a suitable assembler binary, then try the user's
4251 # Also note we have to check MD_EXEC_PREFIX before checking the
4252 # user's path. Unfortunately, there is no good way to get at the
4253 # value of MD_EXEC_PREFIX here. So we do a brute force search
4254 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4255 # to be fixed as part of the make/configure rewrite too.
4257 if test "x$exec_prefix" = xNONE; then
4258 if test "x$prefix" = xNONE; then
4259 test_prefix=/usr/local
4264 test_prefix=$exec_prefix
4267 # If the loop below does not find an assembler, then use whatever
4268 # one we can find in the users's path.
4272 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4273 $test_prefix/lib/gcc-lib/$target \
4274 /usr/lib/gcc/$target/$gcc_version \
4275 /usr/lib/gcc/$target \
4276 $test_prefix/$target/bin/$target/$gcc_version \
4277 $test_prefix/$target/bin \
4282 /bsd43/usr/lib/cmplrs/cc \
4283 /usr/cross64/usr/bin \
4284 /usr/lib/cmplrs/cc \
4285 /sysv/usr/lib/cmplrs/cc \
4286 /svr4/usr/lib/cmplrs/cc \
4289 for dir in $test_dirs; do
4290 if test -f $dir/as$host_exeext; then
4291 gcc_cv_as=$dir/as$host_exeext
4296 if test x$gcc_cv_as != x; then
4297 # Check if we have .balign and .p2align
4298 echo ".balign 4" > conftest.s
4299 echo ".p2align 2" >> conftest.s
4300 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4301 gcc_cv_as_alignment_features=".balign and .p2align"
4302 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4304 rm -f conftest.s conftest.o
4305 # Check if specifying the maximum bytes to skip when
4306 # using .p2align is supported.
4307 echo ".p2align 4,,7" > conftest.s
4308 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4309 gcc_cv_as_alignment_features=".p2align including maximum skip"
4310 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4312 rm -f conftest.s conftest.o
4314 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4316 AC_MSG_CHECKING(assembler subsection support)
4317 gcc_cv_as_subsections=
4318 if test x$gcc_cv_as != x; then
4319 # Check if we have .subsection
4320 echo ".subsection 1" > conftest.s
4321 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4322 gcc_cv_as_subsections=".subsection"
4323 if test -x nm$host_exeext; then
4324 gcc_cv_nm=./nm$host_exeext
4325 elif test x$host = x$target; then
4327 gcc_cv_nm=nm$host_exeext
4329 if test x$gcc_cv_nm != x; then
4330 cat > conftest.s <<EOF
4331 conftest_label1: .word 0
4333 conftest_label2: .word 0
4336 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4337 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4338 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4339 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4342 gcc_cv_as_subsections="working .subsection -1"
4343 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
4348 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4350 AC_MSG_RESULT($gcc_cv_as_subsections)
4354 AC_CACHE_CHECK([assembler .register pseudo-op support],
4355 gcc_cv_as_register_pseudo_op, [
4356 gcc_cv_as_register_pseudo_op=unknown
4357 if test x$gcc_cv_as != x; then
4358 # Check if we have .register
4359 echo ".register %g2, #scratch" > conftest.s
4360 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4361 gcc_cv_as_register_pseudo_op=yes
4363 gcc_cv_as_register_pseudo_op=no
4365 rm -f conftest.s conftest.o
4368 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4369 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP)
4374 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4375 gcc_cv_as_flags64, [
4376 if test -n "$gcc_cv_as"; then
4377 echo ".xword foo" > conftest.s
4378 gcc_cv_as_flags64=no
4379 for flag in "-xarch=v9" "-64 -Av9"; do
4380 if $gcc_cv_as $flag -o conftest.o conftest.s \
4381 > /dev/null 2>&1; then
4382 gcc_cv_as_flags64=$flag
4386 rm -f conftest.s conftest.o
4388 if test "$gas" = yes; then
4389 gcc_cv_as_flags64="-64 -Av9"
4391 gcc_cv_as_flags64="-xarch=v9"
4395 if test "x$gcc_cv_as_flags64" = xno; then
4397 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4398 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4401 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64")
4404 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4408 if test "x$gcc_cv_as_flags64" != xno; then
4409 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4410 gcc_cv_as_offsetable_lo10, [
4411 gcc_cv_as_offsetable_lo10=unknown
4412 if test "x$gcc_cv_as" != x; then
4413 # Check if assembler has offsetable %lo()
4414 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4415 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4416 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4418 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4419 > /dev/null 2>&1; then
4420 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4421 gcc_cv_as_offsetable_lo10=no
4423 gcc_cv_as_offsetable_lo10=yes
4426 gcc_cv_as_offsetable_lo10=no
4428 rm -f conftest.s conftest.o conftest1.s conftest1.o
4431 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4432 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10)
4440 AC_MSG_CHECKING(assembler instructions)
4441 gcc_cv_as_instructions=
4442 if test x$gcc_cv_as != x; then
4443 set "filds fists" "filds mem; fists mem"
4446 echo "$2" > conftest.s
4447 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4448 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4449 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4453 rm -f conftest.s conftest.o
4455 AC_MSG_RESULT($gcc_cv_as_instructions)
4459 # Figure out what language subdirectories are present.
4460 # Look if the user specified --enable-languages="..."; if not, use
4461 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4463 if test x"${enable_languages+set}" != xset; then
4464 if test x"${LANGUAGES+set}" = xset; then
4465 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4467 enable_languages=all
4471 for lang in ${srcdir}/*/config-lang.in ..
4475 # The odd quoting in the next line works around
4476 # an apparent bug in bash 1.12 on linux.
4478 ${srcdir}/[*]/config-lang.in) ;;
4480 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4481 if test "x$lang_alias" = x
4483 echo "$lang doesn't set \$language." 1>&2
4486 if test x"${enable_languages}" = xall; then
4489 case "${enable_languages}" in
4490 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4498 if test x"${add_this_lang}" = xyes; then
4500 ${srcdir}/ada/config-lang.in)
4501 if test x$gnat = xyes ; then
4502 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4506 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4515 # Make gthr-default.h if we have a thread file.
4517 if test $thread_file != single; then
4518 rm -f gthr-default.h
4519 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4520 gthread_flags=-DHAVE_GTHR_DEFAULT
4522 AC_SUBST(gthread_flags)
4524 # Find out what GC implementation we want, or may, use.
4526 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4527 with the compiler.],
4533 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4536 [if test $ac_cv_func_mmap_fixed_mapped = yes; then
4538 elif test $ac_cv_func_valloc = yes; then
4544 echo "Using $GGC for garbage collection."
4546 # Make empty files to contain the specs and options for each language.
4547 # Then add #include lines to for a compiler that has specs and/or options.
4552 rm -f specs.h options.h gencheck.h
4553 touch specs.h options.h gencheck.h
4554 for subdir in . $subdirs
4556 if test -f $srcdir/$subdir/lang-specs.h; then
4557 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4558 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4560 if test -f $srcdir/$subdir/lang-options.h; then
4561 echo "#include \"$subdir/lang-options.h\"" >>options.h
4562 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4564 if test -f $srcdir/$subdir/$subdir-tree.def; then
4565 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4566 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4570 # These (without "all_") are set in each config-lang.in.
4571 # `language' must be a single word so is spelled singularly.
4577 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile'
4578 # List of language makefile fragments.
4583 # Add the language fragments.
4584 # Languages are added via two mechanisms. Some information must be
4585 # recorded in makefile variables, these are defined in config-lang.in.
4586 # We accumulate them and plug them into the main Makefile.
4587 # The other mechanism is a set of hooks for each of the main targets
4588 # like `clean', `install', etc.
4590 language_fragments="Make-lang"
4591 language_hooks="Make-hooks"
4594 for s in .. $subdirs
4606 . ${srcdir}/$s/config-lang.in
4607 if test "x$language" = x
4609 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4612 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4613 all_languages="$all_languages $language"
4614 if test "x$boot_language" = xyes
4616 all_boot_languages="$all_boot_languages $language"
4618 all_compilers="$all_compilers $compilers"
4619 all_stagestuff="$all_stagestuff $stagestuff"
4620 all_diff_excludes="$all_diff_excludes $diff_excludes"
4621 all_headers="$all_headers $headers"
4622 all_outputs="$all_outputs $outputs"
4623 if test x$outputs = x
4625 oldstyle_subdirs="$oldstyle_subdirs $s"
4627 all_lib2funcs="$all_lib2funcs $lib2funcs"
4631 # Since we can't use `::' targets, we link each language in
4632 # with a set of hooks, reached indirectly via lang.${target}.
4636 target_list="all.build all.cross start.encap rest.encap \
4638 install-normal install-common install-info install-man \
4640 mostlyclean clean distclean extraclean maintainer-clean \
4641 stage1 stage2 stage3 stage4"
4642 for t in $target_list
4645 for lang in .. $all_languages
4647 if test $lang != ".."; then
4651 echo "lang.$t: $x" >> Make-hooks
4654 # If we're not building in srcdir, create .gdbinit.
4656 if test ! -f Makefile.in; then
4657 echo "dir ." > .gdbinit
4658 echo "dir ${srcdir}" >> .gdbinit
4659 if test x$gdb_needs_out_file_path = xyes
4661 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4663 if test "x$subdirs" != x; then
4666 echo "dir ${srcdir}/$s" >> .gdbinit
4669 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4672 # Define variables host_canonical and build_canonical
4673 # because some Cygnus local changes in the Makefile depend on them.
4674 build_canonical=${build}
4675 host_canonical=${host}
4677 if test "${host}" != "${target}" ; then
4678 target_subdir=${target}/
4680 AC_SUBST(build_canonical)
4681 AC_SUBST(host_canonical)
4682 AC_SUBST(target_subdir)
4684 # If this is using newlib, then define inhibit_libc in
4685 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4686 # libgcc.a, but that's OK because newib should have its own version of
4689 if test x$with_newlib = xyes; then
4690 inhibit_libc=-Dinhibit_libc
4692 AC_SUBST(inhibit_libc)
4694 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4695 # absolute path for gcc_tooldir based on inserting the number of up-directory
4696 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4697 # $(libsubdir)/@(unlibsubdir) based path.
4698 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4699 # make and thus we'd get different behavior depending on where we built the
4701 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4702 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4704 changequote(<<, >>)dnl
4705 # An explanation of the sed strings:
4706 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4707 # -e 's|/$||' match a trailing forward slash and eliminates it
4708 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4709 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4711 # (*) Note this pattern overwrites the first character of the string
4712 # with a forward slash if one is not already present. This is not a
4713 # problem because the exact names of the sub-directories concerned is
4714 # unimportant, just the number of them matters.
4716 # The practical upshot of these patterns is like this:
4718 # prefix exec_prefix result
4719 # ------ ----------- ------
4721 # /foo/ /foo/bar ../
4722 # /foo /foo/bar/ ../
4723 # /foo/ /foo/bar/ ../
4724 # /foo /foo/bar/ugg ../../
4727 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4728 changequote([, ])dnl
4730 AC_SUBST(gcc_tooldir)
4733 # Nothing to do for FLOAT_H, float_format already handled.
4737 # Process the language and host/target makefile fragments.
4738 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4740 # Substitute configuration variables
4742 AC_SUBST(all_boot_languages)
4743 AC_SUBST(all_compilers)
4744 AC_SUBST(all_diff_excludes)
4745 AC_SUBST(all_headers)
4746 AC_SUBST(all_lang_makefiles)
4747 AC_SUBST(all_languages)
4748 AC_SUBST(all_lib2funcs)
4749 AC_SUBST(all_stagestuff)
4750 AC_SUBST(build_exeext)
4751 AC_SUBST(build_install_headers_dir)
4752 AC_SUBST(build_xm_file_list)
4753 AC_SUBST(cc_set_by_configure)
4754 AC_SUBST(quoted_cc_set_by_configure)
4755 AC_SUBST(cpp_install_dir)
4757 AC_SUBST(dep_host_xmake_file)
4758 AC_SUBST(dep_tmake_file)
4759 AC_SUBST(extra_c_flags)
4760 AC_SUBST(extra_c_objs)
4761 AC_SUBST(extra_cpp_objs)
4762 AC_SUBST(extra_cxx_objs)
4763 AC_SUBST(extra_headers_list)
4764 AC_SUBST(extra_objs)
4765 AC_SUBST(extra_parts)
4766 AC_SUBST(extra_passes)
4767 AC_SUBST(extra_programs)
4768 AC_SUBST(fixinc_defs)
4769 AC_SUBST(float_h_file)
4770 AC_SUBST(gcc_gxx_include_dir)
4771 AC_SUBST(gcc_version)
4772 AC_SUBST(gcc_version_trigger)
4773 AC_SUBST(host_exeext)
4774 AC_SUBST(host_extra_gcc_objs)
4775 AC_SUBST(host_xm_file_list)
4777 AC_SUBST(lang_options_files)
4778 AC_SUBST(lang_specs_files)
4779 AC_SUBST(lang_tree_files)
4780 AC_SUBST(local_prefix)
4781 AC_SUBST(maybe_use_collect2)
4783 AC_SUBST(objc_boehm_gc)
4785 AC_SUBST(out_object_file)
4786 AC_SUBST(stage_prefix_set_by_configure)
4787 AC_SUBST(symbolic_link)
4788 AC_SUBST(thread_file)
4789 AC_SUBST(tm_file_list)
4790 AC_SUBST(will_use_collect2)
4793 AC_SUBST_FILE(target_overrides)
4794 AC_SUBST_FILE(host_overrides)
4795 AC_SUBST(cross_defines)
4796 AC_SUBST_FILE(cross_overrides)
4797 AC_SUBST_FILE(build_overrides)
4798 AC_SUBST_FILE(language_fragments)
4799 AC_SUBST_FILE(language_hooks)
4801 # Echo that links are built
4802 if test x$host = x$target
4810 if test x$host != x$build
4812 str3=" on a $build system"
4815 if test "x$str2" != x || test "x$str3" != x
4820 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4822 if test "x$str2" != x || test "x$str3" != x
4824 echo " ${str2}${str3}." 1>&2
4827 # Truncate the target if necessary
4828 if test x$host_truncate_target != x; then
4829 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4832 # Configure the subdirectories
4833 # AC_CONFIG_SUBDIRS($subdirs)
4835 # Create the Makefile
4836 # and configure language subdirectories
4837 AC_OUTPUT($all_outputs,
4839 . $srcdir/configure.lang
4840 case x$CONFIG_HEADERS in
4841 xauto-host.h:config.in)
4844 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4845 # bootstrapping and the installation procedure can still use
4846 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4847 # FLAGS_TO_PASS has been modified to solve the problem there.
4848 # This is virtually a duplicate of what happens in configure.lang; we do
4849 # an extra check to make sure this only happens if ln -s can be used.
4850 if test "$symbolic_link" = "ln -s"; then
4851 for d in .. ${subdirs} ; do
4852 if test $d != ..; then
4855 for t in stage1 stage2 stage3 stage4 include
4858 $symbolic_link ../$t $t 2>/dev/null
4864 # Avoid having to add intl to our include paths.
4865 if test -f intl/libintl.h; then
4866 echo creating libintl.h
4867 echo '#include "intl/libintl.h"' >libintl.h
4874 target_alias='${target_alias}'
4876 subdirs='${subdirs}'
4877 oldstyle_subdirs='${oldstyle_subdirs}'
4878 symbolic_link='${symbolic_link}'
4879 program_transform_set='${program_transform_set}'
4880 program_transform_name='${program_transform_name}'
4881 dep_host_xmake_file='${dep_host_xmake_file}'
4882 host_xmake_file='${host_xmake_file}'
4883 dep_tmake_file='${dep_tmake_file}'
4884 tmake_file='${tmake_file}'
4885 thread_file='${thread_file}'
4886 gcc_version='${gcc_version}'
4887 gcc_version_trigger='${gcc_version_trigger}'
4888 local_prefix='${local_prefix}'
4889 build_install_headers_dir='${build_install_headers_dir}'
4890 build_exeext='${build_exeext}'
4891 host_exeext='${host_exeext}'
4892 out_file='${out_file}'
4893 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4894 SET_MAKE='${SET_MAKE}'
4895 target_list='${target_list}'
4896 target_overrides='${target_overrides}'
4897 host_overrides='${host_overrides}'
4898 cross_defines='${cross_defines}'
4899 cross_overrides='${cross_overrides}'
4900 build_overrides='${build_overrides}'
4901 cpp_install_dir='${cpp_install_dir}'