1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
6 #This file is part of GNU CC.
8 #GNU CC is free software; you can redistribute it and/or modify
9 #it under the terms of the GNU General Public License as published by
10 #the Free Software Foundation; either version 2, or (at your option)
13 #GNU CC is distributed in the hope that it will be useful,
14 #but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 #GNU General Public License for more details.
18 #You should have received a copy of the GNU General Public License
19 #along with GNU CC; see the file COPYING. If not, write to
20 #the Free Software Foundation, 59 Temple Place - Suite 330,
21 #Boston, MA 02111-1307, USA.
23 # Initialization and defaults
26 AC_CONFIG_HEADER(auto-host.h:config.in)
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building gcc. Please change the environment variable
57 *** and run configure again.])
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building gcc. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
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 *) IFS="${IFS= }"; 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 [ --disable-cpplib use the old isolated C preprocessor.],
224 if test x$enable_cpplib = xno; then
228 dnl Disable this for the moment; the library interface is changing.
229 dnl # Link cpplib into the compiler proper, for C/C++/ObjC.
230 dnl AC_ARG_ENABLE(c-cpplib,
231 dnl [ --enable-c-cpplib link cpplib directly into C and C++ compilers
232 dnl (EXPERIMENTAL) (implies --enable-cpplib).],
233 dnl if test x$enable_c_cpplib != xno; then
234 dnl extra_c_objs="${extra_c_objs} libcpp.a"
235 dnl extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
236 dnl extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
240 # Enable Multibyte Characters for C/C++
241 AC_ARG_ENABLE(c-mbchar,
242 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
243 if test x$enable_c_mbchar != xno; then
244 extra_c_flags="${extra_c_flags} -DMULTIBYTE_CHARS=1"
248 # Pass with no value to take the default
249 # Pass with a value to specify a thread package
250 AC_ARG_ENABLE(threads,
251 [ --enable-threads enable thread usage for target GCC.
252 --enable-threads=LIB use LIB thread package for target GCC.],
253 if test x$enable_threads = xno; then
258 enable_threads_flag=$enable_threads
259 # Check if a valid thread package
260 case x${enable_threads_flag} in
263 target_thread_file='single'
267 target_thread_file=''
269 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
270 xsolaris | xwin32 | xdce | xvxworks)
271 target_thread_file=$enable_threads_flag
274 echo "$enable_threads is an unknown thread package" 1>&2
279 AC_ARG_ENABLE(objc-gc,
280 [ --enable-objc-gc enable the use of Boehm's garbage collector with
281 the GNU Objective-C runtime.],
282 if test x$enable_objc_gc = xno; then
290 [ --with-dwarf2 force the default debug format to be DWARF2.],
291 dwarf2="$with_dwarf2",
294 # Determine the host, build, and target systems
297 # Find the native compiler
301 # If the native compiler is GCC, we can enable warnings even in stage1.
302 # That's useful for people building cross-compilers, or just running a
304 if test "x$GCC" = "xyes"; then
305 stage1_warn_cflags='$(WARN_CFLAGS)'
307 stage1_warn_cflags=""
309 AC_SUBST(stage1_warn_cflags)
313 AC_MSG_CHECKING([whether a default assembler was specified])
314 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
315 if test x"$gas_flag" = x"no"; then
316 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
318 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
324 AC_MSG_CHECKING([whether a default linker was specified])
325 if test x"${DEFAULT_LINKER+set}" = x"set"; then
326 if test x"$gnu_ld_flag" = x"no"; then
327 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
329 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
335 # Find some useful tools
349 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
350 fcntl.h unistd.h stab.h sys/file.h sys/time.h \
351 sys/resource.h sys/param.h sys/times.h sys/stat.h \
354 # Check for thread headers.
355 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
356 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
358 # See if GNAT has been installed
359 AC_CHECK_PROG(gnat, gnatbind, yes, no)
361 # See if the stage1 system preprocessor understands the ANSI C
362 # preprocessor stringification operator.
365 # Use <inttypes.h> only if it exists,
366 # doesn't clash with <sys/types.h>, and declares intmax_t.
367 AC_MSG_CHECKING(for inttypes.h)
368 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
370 [#include <sys/types.h>
371 #include <inttypes.h>],
373 [gcc_cv_header_inttypes_h=yes],
374 gcc_cv_header_inttypes_h=no)])
375 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
376 if test $gcc_cv_header_inttypes_h = yes; then
377 AC_DEFINE(HAVE_INTTYPES_H)
381 # Determine if enumerated bitfields are unsigned. ISO C says they can
382 # be either signed or unsigned.
384 AC_CACHE_CHECK(for unsigned enumerated bitfields, gcc_cv_enum_bf_unsigned,
385 [AC_TRY_RUN(#include <stdlib.h>
386 enum t { BLAH = 128 } ;
387 struct s_t { enum t member : 8; } s ;
391 if (s.member < 0) exit(1);
394 }, gcc_cv_enum_bf_unsigned=yes, gcc_cv_enum_bf_unsigned=no, gcc_cv_enum_bf_unsigned=yes)])
395 AC_MSG_RESULT($gcc_cv_enum_bf_unsigned)
396 if test $gcc_cv_enum_bf_unsigned = yes; then
397 AC_DEFINE(ENUM_BITFIELDS_ARE_UNSIGNED, 1,
398 [Define if enumerated bitfields are treated as unsigned values.])
401 AC_CHECK_FUNCS(strtoul bsearch putenv popen bcopy bzero bcmp \
402 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
403 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
404 fputs_unlocked getrusage valloc)
406 # Make sure wchar_t is available
407 #AC_CHECK_TYPE(wchar_t, unsigned int)
409 GCC_FUNC_VFPRINTF_DOPRNT
414 # Under some versions of uwin, vfork is notoriously buggy and the test
415 # can hang configure; on other versions, vfork exists just as a stub.
416 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
417 ac_cv_func_vfork_works=no
421 AC_FUNC_MMAP_ANYWHERE
424 GCC_NEED_DECLARATIONS(bcopy bzero bcmp \
425 index rindex getenv atol sbrk abort atof getcwd getwd \
426 strsignal putc_unlocked fputs_unlocked strstr environ)
428 GCC_NEED_DECLARATIONS(malloc realloc calloc free, [
434 GCC_NEED_DECLARATIONS(getrlimit setrlimit getrusage, [
435 #include <sys/types.h>
436 #ifdef HAVE_SYS_RESOURCE_H
437 #include <sys/resource.h>
441 # mkdir takes a single argument on some systems.
442 GCC_FUNC_MKDIR_TAKES_ONE_ARG
452 build_install_headers_dir=install-headers-tar
457 host_truncate_target=
460 # Decode the host machine, then the target machine.
461 # For the host machine, we save the xm_file variable as host_xm_file;
462 # then we decode the target machine and forget everything else
463 # that came from the host machine.
464 for machine in $build $host $target; do
478 # Set this to force installation and use of collect2.
480 # Set this to override the default target model.
482 # Set this to control how the header file directory is installed.
483 install_headers_dir=install-headers-tar
484 # Set this to a non-empty list of args to pass to cpp if the target
485 # wants its .md file passed through cpp.
487 # Set this if directory names should be truncated to 14 characters.
489 # Set this if gdb needs a dir command with `dirname $out_file`
490 gdb_needs_out_file_path=
491 # Set this if the build machine requires executables to have a
494 # Set this to control which thread package will be used.
496 # Reinitialize these from the flag values every loop pass, since some
497 # configure entries modify them.
499 gnu_ld="$gnu_ld_flag"
500 enable_threads=$enable_threads_flag
502 # Set default cpu_type, tm_file, tm_p_file and xm_file so it can be
503 # updated in each machine entry.
505 cpu_type=`echo $machine | sed 's/-.*$//'`
544 tm_file=${cpu_type}/${cpu_type}.h
545 xm_file=${cpu_type}/xm-${cpu_type}.h
546 if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-protos.h;
548 tm_p_file=${cpu_type}/${cpu_type}-protos.h;
550 # On a.out targets, we need to use collect2.
557 # Common parts for linux-gnu and openbsd systems
560 xm_defines="HAVE_ATEXIT POSIX BSTRING"
563 tm_file=${cpu_type}/openbsd.h
564 tmake_file="t-libc-ok t-openbsd"
565 # avoid surprises, always provide an xm-openbsd file
566 xm_file=${cpu_type}/xm-openbsd.h
567 # don't depend on processor x-fragments as well
569 if test x$enable_threads = xyes; then
571 tmake_file="${tmake_file} t-openbsd-thread"
577 # Support site-specific machine types.
579 cpu_type=`echo $machine | sed -e 's/-.*//'`
580 rest=`echo $machine | sed -e "s/$cpu_type-//"`
581 xm_file=${cpu_type}/xm-$rest.h
582 tm_file=${cpu_type}/$rest.h
583 if test -f $srcdir/config/${cpu_type}/x-$rest; \
584 then xmake_file=${cpu_type}/x-$rest; \
587 if test -f $srcdir/config/${cpu_type}/t-$rest; \
588 then tmake_file=${cpu_type}/t-$rest; \
594 a29k-*-bsd* | a29k-*-sym1*)
595 tm_file="${tm_file} a29k/unix.h"
597 xmake_file=a29k/x-unix
600 a29k-*-udi | a29k-*-coff)
601 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
602 tmake_file=a29k/t-a29kbare
605 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
606 tmake_file=a29k/t-vx29k
607 extra_parts="crtbegin.o crtend.o"
608 thread_file='vxworks'
610 a29k-*-*) # Default a29k environment.
614 tm_file="${tm_file} alpha/alpha32.h interix.h alpha/alpha-interix.h"
616 # GAS + IEEE_CONFORMANT+IEEE (no inexact);
617 #target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT|MASK_IEEE"
619 # GAS + IEEE_CONFORMANT
620 target_cpu_default="MASK_GAS|MASK_IEEE_CONFORMANT"
622 xm_file="alpha/xm-alpha-interix.h xm-interix.h"
623 xmake_file="x-interix alpha/t-pe"
624 tmake_file="alpha/t-alpha alpha/t-interix alpha/t-ieee"
625 if test x$enable_threads = xyes ; then
628 if test x$stabs = xyes ; then
629 tm_file="${tm_file} dbxcoff.h"
631 #prefix='$$INTERIX_ROOT'/usr/contrib
632 #local_prefix='$$INTERIX_ROOT'/usr/contrib
634 alpha*-*-linux-gnuecoff*)
635 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
636 target_cpu_default="MASK_GAS"
637 tmake_file="alpha/t-alpha alpha/t-ieee"
642 alpha*-*-linux-gnulibc1*)
643 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
644 target_cpu_default="MASK_GAS"
645 tmake_file="t-linux t-linux-gnulibc1 alpha/t-alpha alpha/t-linux alpha/t-crtbe alpha/t-ieee"
646 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
649 if test x$enable_threads = xyes; then
654 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
655 target_cpu_default="MASK_GAS"
656 tmake_file="t-linux alpha/t-linux alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
657 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
660 if test x$enable_threads = xyes; then
665 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
666 target_cpu_default="MASK_GAS"
667 tmake_file="alpha/t-crtbe alpha/t-alpha alpha/t-ieee"
668 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
674 # default x-alpha is only appropriate for dec-osf.
675 target_cpu_default="MASK_GAS"
676 tmake_file="alpha/t-alpha alpha/t-ieee"
680 if test x$stabs = xyes
682 tm_file="${tm_file} dbx.h"
684 if test x$gas != xyes
686 extra_passes="mips-tfile mips-tdump"
689 tmake_file="alpha/t-alpha alpha/t-ieee"
692 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
697 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
700 tm_file="${tm_file} alpha/osf.h"
701 # Some versions of OSF4 (specifically X4.0-9 296.7) have
702 # a broken tar, so we use cpio instead.
703 install_headers_dir=install-headers-cpio
706 tm_file="${tm_file} alpha/osf.h alpha/osf5.h"
711 *-*-osf4.0[b-z] | *-*-osf4.[1-9]* | *-*-osf5*)
713 target_cpu_default=MASK_SUPPORT_ARCH
718 tm_file="${tm_file} dbx.h alpha/vxworks.h"
719 tmake_file="alpha/t-alpha alpha/t-ieee"
722 extra_passes="mips-tfile mips-tdump"
725 thread_file='vxworks'
728 tm_file="${tm_file} alpha/alpha32.h alpha/win-nt.h winnt/win-nt.h"
729 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
730 tmake_file="t-libc-ok alpha/t-alpha alpha/t-ieee"
731 xmake_file=winnt/x-winnt
732 extra_host_objs=oldnames.o
733 extra_gcc_objs="spawnv.o oldnames.o"
734 if test x$gnu_ld != xyes
736 extra_programs=ld.exe
738 if test x$enable_threads = xyes; then
744 xm_file="${xm_file} alpha/xm-vms.h"
745 tmake_file="alpha/t-alpha alpha/t-vms alpha/t-ieee"
748 extra_parts="crtinit.o crtfini.o"
750 arm-*-coff* | armel-*-coff*)
752 tmake_file=arm/t-arm-coff
756 tmake_file=arm/t-arm-coff
757 thread_file='vxworks'
760 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
762 tm_file=arm/riscix1-1.h
765 arm-*-riscix*) # Acorn RISC machine
768 tm_file=arm/rix-gas.h
772 xmake_file=arm/x-riscix
773 tmake_file=arm/t-riscix
776 arm-semi-aout | armel-semi-aout)
778 tmake_file=arm/t-semi
780 arm-semi-aof | armel-semi-aof)
781 tm_file=arm/semiaof.h
782 tmake_file=arm/t-semiaof
786 tmake_file="t-netbsd arm/t-netbsd"
789 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
792 tm_file=arm/linux-aout.h
793 tmake_file=arm/t-linux
796 arm*-*-linux-gnuoldld*) # ARM GNU/Linux with old ELF linker
797 xm_file=arm/xm-linux.h
799 tm_file="arm/linux-oldld.h arm/linux-elf.h"
802 tm_file="arm/linux-elf26.h $tm_file"
805 tmake_file="t-linux arm/t-linux"
806 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
808 case x${enable_threads} in
809 x | xyes | xpthreads | xposix)
814 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
815 xm_file=arm/xm-linux.h
817 tm_file="arm/linux-elf.h"
820 tm_file="arm/linux-elf26.h $tm_file"
823 tmake_file="t-linux arm/t-linux"
824 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
826 case x${enable_threads} in
827 x | xyes | xpthreads | xposix)
832 arm*-*-uclinux*) # ARM ucLinux
833 tm_file=arm/uclinux-elf.h
834 tmake_file=arm/t-arm-elf
838 tmake_file=arm/t-arm-aout
841 tm_file=arm/ecos-elf.h
842 tmake_file=arm/t-arm-elf
845 tm_file=arm/unknown-elf.h
846 tmake_file=arm/t-arm-elf
849 tm_file=arm/conix-elf.h
850 tmake_file=arm/t-arm-elf
853 tm_file=arm/unknown-elf-oabi.h
854 tmake_file=arm/t-arm-elf
863 c1-convex-*) # Convex C1
867 c2-convex-*) # Convex C2
880 target_cpu_default=16
887 clipper-intergraph-clix*)
888 tm_file="${tm_file} svr3.h clipper/clix.h"
889 xm_file=clipper/xm-clix.h
890 xmake_file=clipper/x-clix
891 extra_headers=va-clipper.h
892 extra_parts="crtbegin.o crtend.o"
893 install_headers_dir=install-headers-cpio
901 tm_file="fr30/fr30.h"
902 tmake_file=fr30/t-fr30
903 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
905 # This hasn't been upgraded to GCC 2.
906 # fx80-alliant-*) # Alliant FX/80
912 target_cpu_default="(MASK_PA_11 | MASK_GAS | MASK_JUMP_IN_DELAY)"
913 tm_file="${tm_file} pa/elf.h linux.h pa/pa-linux.h"
914 tmake_file="t-linux pa/t-linux"
915 extra_parts="crtbegin.o crtend.o"
918 if test x$enable_threads = xyes; then
923 target_cpu_default="MASK_PA_11"
924 tmake_file=pa/t-openbsd
927 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
928 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h"
929 xm_file=pa/xm-papro.h
933 target_cpu_default="MASK_PA_11"
934 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
938 target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)"
939 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h"
940 xm_file=pa/xm-papro.h
944 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h"
948 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
949 target_cpu_default="MASK_PA_11"
953 tm_file="${tm_file} pa/pa32-regs.h pa/som.h"
957 tm_file="pa/pa-oldas.h ${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux7.h"
958 xm_file=pa/xm-pahpux.h
959 xmake_file=pa/x-pa-hpux
962 tm_file="${tm_file} pa/gas.h"
964 install_headers_dir=install-headers-cpio
968 hppa1.0-*-hpux8.0[0-2]*)
970 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
971 xm_file=pa/xm-pahpux.h
972 xmake_file=pa/x-pa-hpux
975 tm_file="${tm_file} pa/pa-gas.h"
977 tm_file="pa/pa-oldas.h ${tm_file}"
979 install_headers_dir=install-headers-cpio
983 hppa1.1-*-hpux8.0[0-2]*)
985 target_cpu_default="MASK_PA_11"
986 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
987 xm_file=pa/xm-pahpux.h
988 xmake_file=pa/x-pa-hpux
991 tm_file="${tm_file} pa/pa-gas.h"
993 tm_file="pa/pa-oldas.h ${tm_file}"
995 install_headers_dir=install-headers-cpio
999 target_cpu_default="MASK_PA_11"
1000 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1001 xm_file=pa/xm-pahpux.h
1002 xmake_file=pa/x-pa-hpux
1003 if test x$gas = xyes
1005 tm_file="${tm_file} pa/pa-gas.h"
1007 install_headers_dir=install-headers-cpio
1011 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h"
1012 xm_file=pa/xm-pahpux.h
1013 xmake_file=pa/x-pa-hpux
1014 if test x$gas = xyes
1016 tm_file="${tm_file} pa/pa-gas.h"
1018 install_headers_dir=install-headers-cpio
1021 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
1022 target_cpu_default="MASK_PA_11"
1023 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1025 xm_file=pa/xm-pahpux.h
1026 xmake_file=pa/x-pa-hpux
1028 if test x$gas = xyes
1030 tm_file="${tm_file} pa/pa-gas.h"
1032 if test x$enable_threads = x; then
1033 enable_threads=$have_pthread_h
1035 if test x$enable_threads = xyes; then
1037 tmake_file="${tmake_file} pa/t-dce-thr"
1039 install_headers_dir=install-headers-cpio
1043 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux10.h"
1045 xm_file=pa/xm-pahpux.h
1046 xmake_file=pa/x-pa-hpux
1048 if test x$gas = xyes
1050 tm_file="${tm_file} pa/pa-gas.h"
1052 if test x$enable_threads = x; then
1053 enable_threads=$have_pthread_h
1055 if test x$enable_threads = xyes; then
1057 tmake_file="${tmake_file} pa/t-dce-thr"
1059 install_headers_dir=install-headers-cpio
1062 hppa1.1-*-hpux11* | hppa2*-*-hpux11*)
1063 target_cpu_default="MASK_PA_11"
1064 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1066 xm_file=pa/xm-pahpux.h
1067 xmake_file=pa/x-pa-hpux
1069 if test x$gas = xyes
1071 tm_file="${tm_file} pa/pa-gas.h"
1073 # if test x$enable_threads = x; then
1074 # enable_threads=$have_pthread_h
1076 # if test x$enable_threads = xyes; then
1078 # tmake_file="${tmake_file} pa/t-dce-thr"
1080 install_headers_dir=install-headers-cpio
1084 tm_file="${tm_file} pa/pa32-regs.h pa/long_double.h pa/som.h pa/pa-hpux.h pa/pa-hpux11.h"
1086 xm_file=pa/xm-pahpux.h
1087 xmake_file=pa/x-pa-hpux
1088 if test x$gas = xyes
1090 tm_file="${tm_file} pa/pa-gas.h"
1092 # if test x$enable_threads = x; then
1093 # enable_threads=$have_pthread_h
1095 # if test x$enable_threads = xyes; then
1097 # tmake_file="${tmake_file} pa/t-dce-thr"
1099 install_headers_dir=install-headers-cpio
1102 hppa1.1-*-hpux* | hppa2*-*-hpux*)
1103 target_cpu_default="MASK_PA_11"
1104 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1105 xm_file=pa/xm-pahpux.h
1106 xmake_file=pa/x-pa-hpux
1107 if test x$gas = xyes
1109 tm_file="${tm_file} pa/pa-gas.h"
1111 install_headers_dir=install-headers-cpio
1115 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hpux9.h"
1116 xm_file=pa/xm-pahpux.h
1117 xmake_file=pa/x-pa-hpux
1118 if test x$gas = xyes
1120 tm_file="${tm_file} pa/pa-gas.h"
1122 install_headers_dir=install-headers-cpio
1125 hppa1.1-*-hiux* | hppa2*-*-hiux*)
1126 target_cpu_default="MASK_PA_11"
1127 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1128 xm_file=pa/xm-pahpux.h
1129 xmake_file=pa/x-pa-hpux
1130 if test x$gas = xyes
1132 tm_file="${tm_file} pa/pa-gas.h"
1134 install_headers_dir=install-headers-cpio
1138 tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-hpux.h pa/pa-hiux.h"
1139 xm_file=pa/xm-pahpux.h
1140 xmake_file=pa/x-pa-hpux
1141 if test x$gas = xyes
1143 tm_file="${tm_file} pa/pa-gas.h"
1145 install_headers_dir=install-headers-cpio
1149 tm_file="${tm_file} pa/pa32-regs.h elfos.h pa/elf.h"
1150 target_cpu_default="MASK_PA_11"
1154 tm_file="${tm_file} pa/pa-mpeix.h"
1155 xm_file=pa/xm-pampeix.h
1156 xmake_file=pa/x-pa-mpeix
1157 echo "You must use gas. Assuming it is already installed."
1158 install_headers_dir=install-headers-tar
1161 i370-*-opened*) # IBM 360/370/390 Architecture
1162 xm_file=i370/xm-oe.h
1164 xmake_file=i370/x-oe
1165 tmake_file=i370/t-oe
1168 xm_file=i370/xm-mvs.h
1170 tmake_file=i370/t-mvs
1173 xm_file="xm-linux.h i370/xm-linux.h"
1175 tm_file="i370/linux.h ${tm_file}"
1176 tmake_file="t-linux i370/t-linux"
1177 # broken_install=yes
1178 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1179 # extra_parts="crtbegin.o crtend.o"
1183 if test x$enable_threads = xyes; then
1190 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h"
1191 tm_file=i386/i386elf.h
1192 tmake_file=i386/t-i386elf
1196 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1198 if test x$gas = xyes
1200 tm_file=i386/aix386.h
1201 extra_parts="crtbegin.o crtend.o"
1202 tmake_file=i386/t-crtstuff
1204 tm_file=i386/aix386ng.h
1207 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1209 xmake_file=i386/x-aix
1212 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1214 xm_file="xm-alloca.h ${xm_file}"
1215 xm_defines="USG POSIX SMALL_ARG_MAX"
1216 xmake_file=i386/x-ncr3000
1217 if test x$stabs = xyes -a x$gas = xyes
1219 tm_file=i386/sysv4gdb.h
1221 tm_file=i386/sysv4.h
1223 extra_parts="crtbegin.o crtend.o"
1224 tmake_file=i386/t-crtpic
1230 xm_file=i386/xm-next.h
1231 tmake_file=i386/t-next
1232 xmake_file=i386/x-next
1233 extra_objs=nextstep.o
1234 extra_parts="crtbegin.o crtend.o"
1235 if test x$enable_threads = xyes; then
1240 i[34567]86-sequent-bsd*) # 80386 from Sequent
1243 if test x$gas = xyes
1245 tm_file=i386/seq-gas.h
1247 tm_file=i386/sequent.h
1251 i[34567]86-sequent-ptx1*)
1253 xm_defines="USG SVR3"
1254 xmake_file=i386/x-sysv3
1255 tm_file=i386/seq-sysv3.h
1256 tmake_file=i386/t-crtstuff
1257 extra_parts="crtbegin.o crtend.o"
1258 install_headers_dir=install-headers-cpio
1261 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1263 xm_defines="USG SVR3"
1264 xmake_file=i386/x-sysv3
1265 tm_file=i386/seq2-sysv3.h
1266 tmake_file=i386/t-crtstuff
1267 extra_parts="crtbegin.o crtend.o"
1268 install_headers_dir=install-headers-cpio
1271 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1273 xm_file="xm-alloca.h ${xm_file}"
1274 xm_defines="USG POSIX SMALL_ARG_MAX"
1276 tm_file=i386/ptx4-i.h
1278 extra_parts="crtbegin.o crtend.o"
1279 install_headers_dir=install-headers-cpio
1281 i386-sun-sunos*) # Sun i386 roadrunner
1287 i[34567]86-wrs-vxworks*)
1289 tm_file=i386/vxi386.h
1290 tmake_file=i386/t-i386bare
1291 thread_file='vxworks'
1296 tm_file=i386/i386-aout.h
1297 tmake_file=i386/t-i386bare
1300 i[34567]86-*-beospe*)
1302 xm_file=i386/xm-beos.h
1303 xm_defines="USE_C_ALLOCA"
1304 tmake_file=i386/t-beos
1305 tm_file=i386/beos-pe.h
1306 xmake_file=i386/x-beos
1310 i[34567]86-*-beoself* | i[34567]86-*-beos*)
1312 xm_file=i386/xm-beos.h
1313 tmake_file='i386/t-beos i386/t-crtpic'
1314 tm_file=i386/beos-elf.h
1315 xmake_file=i386/x-beos
1317 extra_parts='crtbegin.o crtend.o'
1320 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1322 tm_file=i386/bsd386.h
1323 # tmake_file=t-libc-ok
1328 tm_file=i386/386bsd.h
1329 # tmake_file=t-libc-ok
1330 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1334 i[34567]86-*-freebsdelf*)
1336 tm_file="i386/i386.h i386/att.h svr4.h freebsd.h i386/freebsd-elf.h i386/perform.h"
1337 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1338 tmake_file=t-freebsd
1342 case x${enable_threads} in
1343 xyes | xpthreads | xposix)
1345 tmake_file="${tmake_file} t-freebsd-thread"
1350 i[34567]86-*-freebsd*)
1352 tm_file="i386/freebsd.h i386/perform.h"
1353 tmake_file=t-freebsd
1356 i[34567]86-*-netbsd*)
1358 tm_file=i386/netbsd.h
1363 i[34567]86-*-openbsd*)
1365 # we need collect2 until our bug is fixed...
1371 tm_file=i386/i386-coff.h
1372 tmake_file=i386/t-i386bare
1375 i[34567]86-*-isc*) # 80386 running ISC system
1377 xm_file="${xm_file} i386/xm-isc.h"
1378 xm_defines="USG SVR3"
1381 i[34567]86-*-isc[34]*)
1383 xmake_file=i386/x-isc3
1386 xmake_file=i386/x-isc
1389 if test x$gas = xyes -a x$stabs = xyes
1391 tm_file=i386/iscdbx.h
1392 tmake_file=i386/t-svr3dbx
1393 extra_parts="svr3.ifile svr3z.ifile"
1395 tm_file=i386/isccoff.h
1396 tmake_file=i386/t-crtstuff
1397 extra_parts="crtbegin.o crtend.o"
1399 install_headers_dir=install-headers-cpio
1402 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1403 changequote([,])dnl # with a.out format using
1405 xmake_file=x-linux-aout
1406 tmake_file="t-linux-aout i386/t-crtstuff"
1407 tm_file=i386/linux-oldld.h
1412 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1413 changequote([,])dnl # with a.out format
1414 xmake_file=x-linux-aout
1415 tmake_file="t-linux-aout i386/t-crtstuff"
1416 tm_file=i386/linux-aout.h
1421 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1422 changequote([,])dnl # with ELF format using the
1423 # GNU/Linux C library 5
1425 tm_file=i386/linux.h
1426 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1427 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1430 if test x$enable_threads = xyes; then
1431 thread_file='single'
1435 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1436 changequote([,])dnl # with ELF format using glibc 2
1437 # aka GNU/Linux C library 6
1439 tm_file=i386/linux.h
1440 tmake_file="t-linux i386/t-crtstuff"
1441 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1444 if test x$enable_threads = xyes; then
1454 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1456 echo "GO32/DJGPP V1.X is no longer supported. Use *-pc-msdosdjgpp for DJGPP V2.X instead."
1460 i[34567]86-pc-msdosdjgpp*)
1462 xm_file=i386/xm-djgpp.h
1463 tm_file=i386/djgpp.h
1464 tmake_file=i386/t-djgpp
1465 xmake_file=i386/x-djgpp
1469 case $host in *pc-msdosdjgpp*)
1475 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1478 tmake_file=t-libc-ok
1483 i[34567]86-*-lynxos*)
1485 if test x$gas = xyes
1489 tm_file=i386/lynx-ng.h
1491 xm_file=i386/xm-lynx.h
1492 tmake_file=i386/t-i386bare
1499 # tmake_file=t-libc-ok
1503 i[34567]86-*-osfrose*) # 386 using OSF/rose
1505 if test x$elf = xyes
1507 tm_file=i386/osfelf.h
1510 tm_file=i386/osfrose.h
1513 xm_file="i386/xm-osf.h ${xm_file}"
1514 xmake_file=i386/x-osfrose
1515 tmake_file=i386/t-osf
1516 extra_objs=halfpic.o
1519 i[34567]86-go32-rtems*)
1522 xm_file=i386/xm-go32.h
1523 tm_file=i386/go32-rtems.h
1524 tmake_file="i386/t-go32 t-rtems"
1527 i[34567]86-*-rtemscoff*)
1530 tm_file=i386/rtems.h
1531 tmake_file="i386/t-i386bare t-rtems"
1534 i[34567]86-*-rtems*|i[34567]86-*-rtemself*)
1537 tm_file=i386/rtemself.h
1538 extra_parts="crtbegin.o crtend.o crti.o crtn.o"
1539 tmake_file="i386/t-rtems-i386 i386/t-crtstuff t-rtems"
1542 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1544 xm_file="xm-alloca.h ${xm_file} i386/xm-sco5.h"
1545 xm_defines="USG SVR3"
1546 xmake_file=i386/x-sco5
1547 install_headers_dir=install-headers-cpio
1549 if test x$gas = xyes
1551 tm_file="i386/sco5gas.h ${tm_file}"
1552 tmake_file=i386/t-sco5gas
1554 tmake_file=i386/t-sco5
1556 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1559 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1561 xm_file="${xm_file} i386/xm-sco.h"
1562 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX"
1563 xmake_file=i386/x-sco4
1564 install_headers_dir=install-headers-cpio
1565 if test x$stabs = xyes
1567 tm_file=i386/sco4dbx.h
1568 tmake_file=i386/t-svr3dbx
1569 extra_parts="svr3.ifile svr3z.rfile"
1572 tmake_file=i386/t-crtstuff
1573 extra_parts="crtbegin.o crtend.o"
1575 # The default EAFS filesystem supports long file names.
1576 # Truncating the target makes $host != $target which
1577 # makes gcc think it is doing a cross-compile.
1578 # truncate_target=yes
1581 i[34567]86-*-sco*) # 80386 running SCO system
1583 xm_file=i386/xm-sco.h
1584 xmake_file=i386/x-sco
1585 install_headers_dir=install-headers-cpio
1586 if test x$stabs = xyes
1588 tm_file=i386/scodbx.h
1589 tmake_file=i386/t-svr3dbx
1590 extra_parts="svr3.ifile svr3z.rfile"
1593 extra_parts="crtbegin.o crtend.o"
1594 tmake_file=i386/t-crtstuff
1599 i[34567]86-*-solaris2*)
1601 xm_file="xm-alloca.h ${xm_file}"
1602 xm_defines="USG POSIX SMALL_ARG_MAX"
1604 if test x$gas = xyes; then
1605 # Only needed if gas does not support -s
1606 tm_file="i386/sol2gas.h ${tm_file}"
1608 tmake_file=i386/t-sol2
1609 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1611 if test x${enable_threads} = x; then
1612 enable_threads=$have_pthread_h
1613 if test x${enable_threads} = x; then
1614 enable_threads=$have_thread_h
1617 if test x${enable_threads} = xyes; then
1618 if test x${have_pthread_h} = xyes; then
1621 thread_file='solaris'
1626 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1628 xm_file="xm-alloca.h ${xm_file}"
1629 xm_defines="USG POSIX"
1630 tm_file=i386/sysv5.h
1631 if test x$stabs = xyes
1633 tm_file="${tm_file} dbx.h"
1635 tmake_file=i386/t-crtpic
1637 extra_parts="crtbegin.o crtend.o"
1638 if test x$enable_threads = xyes; then
1643 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1645 xm_file="xm-alloca.h ${xm_file}"
1646 xm_defines="USG POSIX SMALL_ARG_MAX"
1647 tm_file=i386/sysv4.h
1648 if test x$stabs = xyes
1650 tm_file="${tm_file} dbx.h"
1652 tmake_file=i386/t-crtpic
1654 extra_parts="crtbegin.o crtend.o"
1657 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1659 xm_file="xm-alloca.h ${xm_file}"
1660 xm_defines="USG POSIX"
1662 tmake_file="i386/t-crtpic i386/t-udk"
1664 extra_parts="crtbegin.o crtend.o"
1665 install_headers_dir=install-headers-cpio
1668 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1671 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1672 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1673 if test x$stabs = xyes
1675 tm_file=i386/osf1elfgdb.h
1677 tm_file=i386/osf1elf.h
1679 tmake_file=i386/t-osf1elf
1680 xmake_file=i386/x-osf1elf
1681 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1684 i[34567]86-*-sysv*) # Intel 80386's running system V
1686 xm_defines="USG SVR3"
1687 xmake_file=i386/x-sysv3
1688 if test x$gas = xyes
1690 if test x$stabs = xyes
1692 tm_file=i386/svr3dbx.h
1693 tmake_file=i386/t-svr3dbx
1694 extra_parts="svr3.ifile svr3z.rfile"
1696 tm_file=i386/svr3gas.h
1697 extra_parts="crtbegin.o crtend.o"
1698 tmake_file=i386/t-crtstuff
1701 tm_file=i386/sysv3.h
1702 extra_parts="crtbegin.o crtend.o"
1703 tmake_file=i386/t-crtstuff
1706 i386-*-vsta) # Intel 80386's running VSTa kernel
1707 xm_file="${xm_file} i386/xm-vsta.h"
1709 tmake_file=i386/t-vsta
1710 xmake_file=i386/x-vsta
1715 xm_file="${xm_file} i386/xm-cygwin.h"
1716 tmake_file=i386/t-cygwin
1717 tm_file=i386/win32.h
1718 xmake_file=i386/x-cygwin
1720 if test x$enable_threads = xyes; then
1726 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1728 xm_file="${xm_file} i386/xm-cygwin.h"
1729 tmake_file=i386/t-cygwin
1730 tm_file=i386/cygwin.h
1731 xmake_file=i386/x-cygwin
1733 if test x$enable_threads = xyes; then
1739 i[34567]86-*-mingw32*)
1741 tm_file=i386/mingw32.h
1742 xm_file="${xm_file} i386/xm-mingw32.h"
1743 tmake_file="i386/t-cygwin i386/t-mingw32"
1745 xmake_file=i386/x-cygwin
1746 if test x$enable_threads = xyes; then
1753 *minwg32crt* | *mingw32*)
1754 tm_file="${tm_file} i386/crtdll.h"
1762 xm_file="${xm_file} i386/xm-uwin.h"
1763 xm_defines="USG NO_STAB_H"
1764 tmake_file="i386/t-cygwin i386/t-uwin"
1766 xmake_file=i386/x-cygwin
1767 if test x$enable_threads = xyes; then
1773 i[34567]86-*-interix*)
1775 tm_file="i386/i386-interix.h interix.h"
1776 xm_file="i386/xm-i386-interix.h xm-interix.h"
1778 tmake_file="i386/t-interix"
1779 extra_objs=interix.o
1780 xmake_file=x-interix
1781 if test x$enable_threads = xyes ; then
1784 if test x$stabs = xyes ; then
1785 tm_file="${tm_file} dbxcoff.h"
1789 i[34567]86-*-winnt3*)
1791 tm_file=i386/win-nt.h
1792 out_file=i386/i386.c
1793 xm_file="xm-winnt.h ${xm_file}"
1794 xmake_file=winnt/x-winnt
1795 tmake_file=i386/t-winnt
1796 extra_host_objs="winnt.o oldnames.o"
1797 extra_gcc_objs="spawnv.o oldnames.o"
1798 if test x$gnu_ld != xyes
1800 extra_programs=ld.exe
1802 if test x$enable_threads = xyes; then
1807 i[34567]86-dg-dgux*)
1809 xm_file="xm-alloca.h ${xm_file}"
1810 xm_defines="USG POSIX"
1811 out_file=i386/dgux.c
1813 tmake_file=i386/t-dgux
1814 xmake_file=i386/x-dgux
1815 install_headers_dir=install-headers-cpio
1817 i860-alliant-*) # Alliant FX/2800
1818 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1819 xm_file="${xm_file}"
1820 xmake_file=i860/x-fx2800
1821 tmake_file=i860/t-fx2800
1822 extra_parts="crtbegin.o crtend.o"
1825 tm_file="${tm_file} i860/bsd.h"
1826 if test x$gas = xyes
1828 tm_file="${tm_file} i860/bsd-gas.h"
1833 tm_file="${tm_file} i860/mach.h"
1834 tmake_file=t-libc-ok
1836 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1837 tm_file="${tm_file} svr3.h i860/paragon.h"
1838 xm_defines="USG SVR3"
1842 tm_file="${tm_file} svr3.h i860/sysv3.h"
1843 xm_defines="USG SVR3"
1844 xmake_file=i860/x-sysv3
1845 extra_parts="crtbegin.o crtend.o"
1848 tm_file="${tm_file} svr4.h i860/sysv4.h"
1849 xm_defines="USG SVR3"
1850 xmake_file=i860/x-sysv4
1852 extra_parts="crtbegin.o crtend.o"
1854 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1855 tm_file="${tm_file} i960/vx960.h"
1856 tmake_file=i960/t-vxworks960
1858 thread_file='vxworks'
1860 i960-wrs-vxworks5* | i960-wrs-vxworks)
1861 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1862 tmake_file=i960/t-vxworks960
1864 thread_file='vxworks'
1867 tm_file="${tm_file} i960/vx960.h"
1868 tmake_file=i960/t-vxworks960
1870 thread_file='vxworks'
1873 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1874 tmake_file=i960/t-960bare
1878 tmake_file="i960/t-960bare t-rtems"
1879 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1882 i960-*-*) # Default i960 environment.
1887 tmake_file="ia64/t-ia64"
1888 target_cpu_default="0"
1889 if test x$gas = xyes
1891 target_cpu_default="${target_cpu_default}|MASK_GNU_AS"
1893 if test x$gnu_ld = xyes
1895 target_cpu_default="${target_cpu_default}|MASK_GNU_LD"
1899 tm_file=ia64/linux.h
1900 tmake_file="t-linux ia64/t-ia64"
1901 target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
1902 if test x$enable_threads = xyes; then
1907 extra_parts="crtinit.o crtfini.o"
1909 m68000-convergent-sysv*)
1911 xm_file="m68k/xm-3b1.h ${xm_file}"
1914 extra_headers=math-68881.h
1916 m68000-hp-bsd*) # HP 9000/200 running BSD
1917 tm_file=m68k/hp2bsd.h
1918 xmake_file=m68k/x-hp2bsd
1920 extra_headers=math-68881.h
1922 m68000-hp-hpux*) # HP 9000 series 300
1923 xm_file="xm-alloca.h ${xm_file}"
1925 if test x$gas = xyes
1927 xmake_file=m68k/x-hp320g
1928 tm_file=m68k/hp310g.h
1930 xmake_file=m68k/x-hp320
1931 tm_file=m68k/hp310.h
1933 install_headers_dir=install-headers-cpio
1935 extra_headers=math-68881.h
1940 extra_headers=math-68881.h
1943 tm_file=m68k/sun2o4.h
1945 extra_headers=math-68881.h
1948 xm_file="m68k/xm-3b1.h ${xm_file}"
1950 if test x$gas = xyes
1957 extra_headers=math-68881.h
1959 m68k-apple-aux*) # Apple Macintosh running A/UX
1960 xm_defines="USG AUX"
1961 tmake_file=m68k/t-aux
1962 install_headers_dir=install-headers-cpio
1963 extra_headers=math-68881.h
1964 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1966 if test "$gnu_ld" = yes
1968 tm_file="${tm_file} m68k/auxgld.h"
1970 tm_file="${tm_file} m68k/auxld.h"
1972 if test "$gas" = yes
1974 tm_file="${tm_file} m68k/auxgas.h"
1976 tm_file="${tm_file} m68k/auxas.h"
1978 tm_file="${tm_file} m68k/a-ux.h"
1982 tm_file=m68k/apollo68.h
1983 xmake_file=m68k/x-apollo68
1985 extra_headers=math-68881.h
1988 m68k-altos-sysv*) # Altos 3068
1989 if test x$gas = xyes
1991 tm_file=m68k/altos3068.h
1994 echo "The Altos is supported only with the GNU assembler" 1>&2
1997 extra_headers=math-68881.h
1999 m68k-bull-sysv*) # Bull DPX/2
2000 if test x$gas = xyes
2002 if test x$stabs = xyes
2004 tm_file=m68k/dpx2cdbx.h
2006 tm_file=m68k/dpx2g.h
2011 xm_file="xm-alloca.h ${xm_file}"
2013 xmake_file=m68k/x-dpx2
2015 extra_headers=math-68881.h
2017 m68k-atari-sysv4*) # Atari variant of V.4.
2018 tm_file=m68k/atari.h
2019 xm_file="xm-alloca.h ${xm_file}"
2020 xm_defines="USG FULL_PROTOTYPES"
2022 extra_parts="crtbegin.o crtend.o"
2023 extra_headers=math-68881.h
2026 m68k-motorola-sysv*)
2027 tm_file=m68k/mot3300.h
2028 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
2029 if test x$gas = xyes
2031 xmake_file=m68k/x-mot3300-gas
2032 if test x$gnu_ld = xyes
2034 tmake_file=m68k/t-mot3300-gald
2036 tmake_file=m68k/t-mot3300-gas
2040 xmake_file=m68k/x-mot3300
2041 if test x$gnu_ld = xyes
2043 tmake_file=m68k/t-mot3300-gld
2045 tmake_file=m68k/t-mot3300
2049 gdb_needs_out_file_path=yes
2050 extra_parts="crt0.o mcrt0.o"
2051 extra_headers=math-68881.h
2054 m68k-ncr-sysv*) # NCR Tower 32 SVR3
2055 tm_file=m68k/tower-as.h
2056 xm_defines="USG SVR3"
2057 xmake_file=m68k/x-tower
2058 extra_parts="crtbegin.o crtend.o"
2059 extra_headers=math-68881.h
2062 tm_file=m68k/plexus.h
2063 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
2066 extra_headers=math-68881.h
2070 xm_file="xm-alloca.h ${xm_file}"
2072 extra_headers=math-68881.h
2075 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
2076 xm_defines="USG unos"
2077 xmake_file=m68k/x-crds
2080 extra_headers=math-68881.h
2082 m68k-cbm-sysv4*) # Commodore variant of V.4.
2084 xm_file="xm-alloca.h ${xm_file}"
2085 xm_defines="USG FULL_PROTOTYPES"
2086 xmake_file=m68k/x-amix
2088 extra_parts="crtbegin.o crtend.o"
2089 extra_headers=math-68881.h
2093 tm_file=m68k/ccur-GAS.h
2094 xmake_file=m68k/x-ccur
2095 extra_headers=math-68881.h
2099 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
2100 tm_file=m68k/hp3bsd44.h
2101 xmake_file=m68k/x-hp3bsd44
2103 extra_headers=math-68881.h
2106 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
2107 tm_file=m68k/hp3bsd.h
2109 extra_headers=math-68881.h
2113 if test x$with_fp = xno
2115 tm_file=m68k/isi-nfp.h
2121 extra_headers=math-68881.h
2123 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
2124 xm_file="xm-alloca.h ${xm_file}"
2126 if test x$gas = xyes
2128 xmake_file=m68k/x-hp320g
2129 tm_file=m68k/hp320g.h
2131 xmake_file=m68k/x-hp320
2132 tm_file=m68k/hpux7.h
2134 install_headers_dir=install-headers-cpio
2136 extra_headers=math-68881.h
2139 m68k-hp-hpux*) # HP 9000 series 300
2140 xm_file="xm-alloca.h ${xm_file}"
2142 if test x$gas = xyes
2144 xmake_file=m68k/x-hp320g
2145 tm_file=m68k/hp320g.h
2147 xmake_file=m68k/x-hp320
2148 tm_file=m68k/hp320.h
2150 install_headers_dir=install-headers-cpio
2152 extra_headers=math-68881.h
2156 tm_file=m68k/sun3mach.h
2158 extra_headers=math-68881.h
2162 if test x$gas = xyes
2164 tm_file=m68k/news3gas.h
2166 tm_file=m68k/news3.h
2169 extra_headers=math-68881.h
2172 m68k-sony-bsd* | m68k-sony-newsos*)
2173 if test x$gas = xyes
2175 tm_file=m68k/newsgas.h
2180 extra_headers=math-68881.h
2183 m68k-next-nextstep2*)
2184 tm_file=m68k/next21.h
2185 xm_file="m68k/xm-next.h ${xm_file}"
2186 tmake_file=m68k/t-next
2187 xmake_file=m68k/x-next
2188 extra_objs=nextstep.o
2189 extra_headers=math-68881.h
2194 m68k-next-nextstep[34]*)
2197 xm_file="m68k/xm-next.h ${xm_file}"
2198 tmake_file=m68k/t-next
2199 xmake_file=m68k/x-next
2200 extra_objs=nextstep.o
2201 extra_parts="crtbegin.o crtend.o"
2202 extra_headers=math-68881.h
2204 if test x$enable_threads = xyes; then
2209 if test x$with_fp = xno
2211 tm_file=m68k/sun3n3.h
2213 tm_file=m68k/sun3o3.h
2217 extra_headers=math-68881.h
2219 m68k-sun-sunos*) # For SunOS 4 (the default).
2220 if test x$with_fp = xno
2222 tm_file=m68k/sun3n.h
2228 extra_headers=math-68881.h
2231 tm_file=m68k/vxm68k.h
2232 tmake_file=m68k/t-vxworks68
2233 extra_headers=math-68881.h
2234 thread_file='vxworks'
2238 tmake_file=m68k/t-m68kbare
2239 tm_file="m68k/m68k-aout.h libgloss.h"
2240 extra_headers=math-68881.h
2244 tmake_file=m68k/t-m68kbare
2245 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2246 extra_headers=math-68881.h
2249 m68020-*-elf* | m68k-*-elf*)
2250 tm_file="m68k/m68020-elf.h"
2251 xm_file=m68k/xm-m68kv.h
2252 tmake_file=m68k/t-m68kelf
2253 header_files=math-68881.h
2256 if test x$gas = xyes
2260 tm_file=m68k/lynx-ng.h
2262 xm_file=m68k/xm-lynx.h
2264 tmake_file=m68k/t-lynx
2265 extra_headers=math-68881.h
2269 tm_file=m68k/netbsd.h
2276 # we need collect2 until our bug is fixed...
2279 m68k-*-sysv3*) # Motorola m68k's running system V.3
2280 xm_file="xm-alloca.h ${xm_file}"
2282 xmake_file=m68k/x-m68kv
2283 extra_parts="crtbegin.o crtend.o"
2284 extra_headers=math-68881.h
2287 m68k-*-sysv4*) # Motorola m68k's running system V.4
2288 tm_file=m68k/m68kv4.h
2289 xm_file="xm-alloca.h ${xm_file}"
2292 extra_parts="crtbegin.o crtend.o"
2293 extra_headers=math-68881.h
2296 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2299 tm_file=m68k/linux-aout.h
2300 tmake_file="t-linux-aout m68k/t-linux-aout"
2301 extra_headers=math-68881.h
2305 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2306 # with ELF format using the
2307 # GNU/Linux C library 5
2309 tm_file=m68k/linux.h
2310 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2311 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2312 extra_headers=math-68881.h
2316 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2317 # with ELF format using glibc 2
2318 # aka the GNU/Linux C library 6.
2320 tm_file=m68k/linux.h
2321 tmake_file="t-linux m68k/t-linux"
2322 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2323 extra_headers=math-68881.h
2326 if test x$enable_threads = xyes; then
2331 tmake_file=m68k/t-m68kbare
2332 tm_file=m68k/m68k-psos.h
2333 extra_headers=math-68881.h
2337 tmake_file="m68k/t-m68kbare t-rtems"
2338 tm_file=m68k/rtems.h
2339 extra_headers=math-68881.h
2342 m68k-*-rtemself*|m68k-*-rtems*)
2343 tmake_file="m68k/t-m68kbare t-rtems m68k/t-crtstuff"
2344 tm_file=m68k/rtemself.h
2345 extra_headers=math-68881.h
2351 tm_file=m88k/dguxbcs.h
2352 tmake_file=m88k/t-dguxbcs
2356 tmake_file=m88k/t-dgux
2359 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2360 xmake_file=m88k/x-dgux
2361 if test x$gas = xyes
2363 tmake_file=m88k/t-dgux-gas
2366 m88k-dolphin-sysv3*)
2367 tm_file=m88k/dolph.h
2368 extra_parts="crtbegin.o crtend.o"
2369 xm_file="m88k/xm-sysv3.h ${xm_file}"
2370 xmake_file=m88k/x-dolph
2371 if test x$gas = xyes
2373 tmake_file=m88k/t-m88k-gas
2376 m88k-tektronix-sysv3)
2377 tm_file=m88k/tekXD88.h
2378 extra_parts="crtbegin.o crtend.o"
2379 xm_file="m88k/xm-sysv3.h ${xm_file}"
2380 xmake_file=m88k/x-tekXD88
2381 if test x$gas = xyes
2383 tmake_file=m88k/t-m88k-gas
2387 tm_file=m88k/m88k-aout.h
2390 tm_file=m88k/m88k-coff.h
2391 tmake_file=m88k/t-bug
2395 extra_parts="crtbegin.o crtend.o"
2396 if test x$gas = xyes
2398 tmake_file=m88k/t-luna-gas
2400 tmake_file=m88k/t-luna
2404 tmake_file="${tmake_file} m88k/t-luna-gas"
2407 tm_file=m88k/sysv3.h
2408 extra_parts="crtbegin.o crtend.o"
2409 xm_file="m88k/xm-sysv3.h ${xm_file}"
2410 xmake_file=m88k/x-sysv3
2411 if test x$gas = xyes
2413 tmake_file=m88k/t-m88k-gas
2417 tm_file=m88k/sysv4.h
2418 extra_parts="crtbegin.o crtend.o"
2419 xmake_file=m88k/x-sysv4
2420 tmake_file=m88k/t-sysv4
2423 tm_file=mcore/mcore-elf.h
2424 tmake_file=mcore/t-mcore
2427 tm_file=mcore/mcore-pe.h
2428 tmake_file=mcore/t-mcore-pe
2430 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2431 if test "x$gnu_ld" = xyes
2433 tm_file="mips/iris6.h mips/iris6gld.h"
2435 tm_file=mips/iris6.h
2437 tmake_file=mips/t-iris6
2438 xm_file=mips/xm-iris6.h
2439 xmake_file=mips/x-iris6
2440 # if test x$enable_threads = xyes; then
2441 # thread_file='irix'
2445 tm_file="mips/elf.h mips/vxworks.h"
2446 tmake_file=mips/t-ecoff
2449 extra_parts="crtbegin.o crtend.o"
2450 thread_file='vxworks'
2452 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2453 tm_file="mips/iris6.h mips/cross64.h"
2455 xm_file="mips/xm-iris5.h"
2456 xmake_file=mips/x-iris
2457 tmake_file=mips/t-cross64
2458 # See comment in mips/iris[56].h files.
2460 # if test x$enable_threads = xyes; then
2461 # thread_file='irix'
2465 if test x$gas = xyes
2467 if test x$stabs = xyes
2469 tm_file=mips/iris5gdb.h
2471 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2474 tm_file=mips/sni-svr4.h
2477 xmake_file=mips/x-sni-svr4
2478 tmake_file=mips/t-mips-gas
2479 if test x$gnu_ld != xyes
2484 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2485 if test x$gas = xyes
2487 tm_file="mips/iris5.h mips/iris5gas.h"
2488 if test x$stabs = xyes
2490 tm_file="${tm_file} dbx.h"
2493 tm_file=mips/iris5.h
2496 xm_file="mips/xm-iris5.h"
2497 xmake_file=mips/x-iris
2498 # mips-tfile doesn't work yet
2499 tmake_file=mips/t-mips-gas
2500 # See comment in mips/iris5.h file.
2502 # if test x$enable_threads = xyes; then
2503 # thread_file='irix'
2506 mips-sgi-irix4loser*) # Mostly like a MIPS.
2507 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2508 if test x$stabs = xyes; then
2509 tm_file="${tm_file} dbx.h"
2512 xmake_file=mips/x-iris
2513 if test x$gas = xyes
2515 tmake_file=mips/t-mips-gas
2517 extra_passes="mips-tfile mips-tdump"
2519 if test x$gnu_ld != xyes
2523 # if test x$enable_threads = xyes; then
2524 # thread_file='irix'
2527 mips-sgi-irix4*) # Mostly like a MIPS.
2528 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2529 if test x$stabs = xyes; then
2530 tm_file="${tm_file} dbx.h"
2533 xmake_file=mips/x-iris
2534 if test x$gas = xyes
2536 tmake_file=mips/t-mips-gas
2538 extra_passes="mips-tfile mips-tdump"
2540 if test x$gnu_ld != xyes
2544 # if test x$enable_threads = xyes; then
2545 # thread_file='irix'
2548 mips-sgi-*) # Mostly like a MIPS.
2549 tm_file="mips/iris3.h ${tm_file}"
2550 if test x$stabs = xyes; then
2551 tm_file="${tm_file} dbx.h"
2554 xmake_file=mips/x-iris3
2555 if test x$gas = xyes
2557 tmake_file=mips/t-mips-gas
2559 extra_passes="mips-tfile mips-tdump"
2561 if test x$gnu_ld != xyes
2566 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2567 tm_file="mips/osfrose.h ${tm_file}"
2568 xmake_file=mips/x-osfrose
2569 tmake_file=mips/t-osfrose
2570 extra_objs=halfpic.o
2573 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2574 tm_file=mips/dec-osf1.h
2575 if test x$stabs = xyes; then
2576 tm_file="${tm_file} dbx.h"
2578 xmake_file=mips/x-dec-osf1
2579 if test x$gas = xyes
2581 tmake_file=mips/t-mips-gas
2583 tmake_file=mips/t-ultrix
2584 extra_passes="mips-tfile mips-tdump"
2586 if test x$gnu_ld != xyes
2591 mips-dec-bsd*) # Decstation running 4.4 BSD
2592 tm_file=mips/dec-bsd.h
2593 if test x$gas = xyes
2595 tmake_file=mips/t-mips-gas
2597 tmake_file=mips/t-ultrix
2598 extra_passes="mips-tfile mips-tdump"
2600 if test x$gnu_ld != xyes
2605 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2606 tm_file=mips/netbsd.h
2607 # On NetBSD, the headers are already okay, except for math.h.
2610 mips*-*-linux*) # Linux MIPS, either endian.
2613 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2614 *) tm_file="mips/elf.h mips/linux.h" ;;
2616 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2619 if test x$enable_threads = xyes; then
2623 mips*el-*-openbsd*) # mips little endian
2624 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2626 mips*-*-openbsd*) # mips big endian
2627 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2628 tm_file="mips/openbsd-be.h ${tm_file}"
2630 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2631 tm_file="mips/news4.h ${tm_file}"
2632 if test x$stabs = xyes; then
2633 tm_file="${tm_file} dbx.h"
2635 if test x$gas = xyes
2637 tmake_file=mips/t-mips-gas
2639 extra_passes="mips-tfile mips-tdump"
2641 if test x$gnu_ld != xyes
2645 xmake_file=mips/x-sony
2647 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2648 # That is based on svr4.
2649 # t-svr4 is not right because this system doesn't use ELF.
2650 tm_file="mips/news5.h ${tm_file}"
2651 if test x$stabs = xyes; then
2652 tm_file="${tm_file} dbx.h"
2655 if test x$gas = xyes
2657 tmake_file=mips/t-mips-gas
2659 extra_passes="mips-tfile mips-tdump"
2661 if test x$gnu_ld != xyes
2666 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2667 tm_file="mips/svr4-5.h mips/svr4-t.h"
2668 if test x$stabs = xyes; then
2669 tm_file="${tm_file} dbx.h"
2672 xmake_file=mips/x-sysv
2673 if test x$gas = xyes
2675 tmake_file=mips/t-mips-gas
2676 extra_parts="crtbegin.o crtend.o"
2678 tmake_file=mips/t-mips
2679 extra_passes="mips-tfile mips-tdump"
2681 if test x$gnu_ld != xyes
2686 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2687 tm_file="mips/ultrix.h ${tm_file}"
2688 if test x$stabs = xyes; then
2689 tm_file="${tm_file} dbx.h"
2691 xmake_file=mips/x-ultrix
2692 if test x$gas = xyes
2694 tmake_file=mips/t-mips-gas
2696 tmake_file=mips/t-ultrix
2697 extra_passes="mips-tfile mips-tdump"
2699 if test x$gnu_ld != xyes
2705 mips-*-riscos[56789]bsd*)
2707 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2708 if test x$stabs = xyes; then
2709 tm_file="${tm_file} dbx.h"
2711 if test x$gas = xyes
2713 tmake_file=mips/t-bsd-gas
2715 tmake_file=mips/t-bsd
2716 extra_passes="mips-tfile mips-tdump"
2718 if test x$gnu_ld != xyes
2724 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2726 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2727 if test x$stabs = xyes; then
2728 tm_file="${tm_file} dbx.h"
2730 if test x$gas = xyes
2732 tmake_file=mips/t-bsd-gas
2734 tmake_file=mips/t-bsd
2735 extra_passes="mips-tfile mips-tdump"
2737 if test x$gnu_ld != xyes
2743 mips-*-riscos[56789]sysv4*)
2745 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2746 if test x$stabs = xyes; then
2747 tm_file="${tm_file} dbx.h"
2749 xmake_file=mips/x-sysv
2750 if test x$gas = xyes
2752 tmake_file=mips/t-svr4-gas
2754 tmake_file=mips/t-svr4
2755 extra_passes="mips-tfile mips-tdump"
2757 if test x$gnu_ld != xyes
2763 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2765 tm_file="mips/svr4-4.h ${tm_file}"
2766 if test x$stabs = xyes; then
2767 tm_file="${tm_file} dbx.h"
2770 xmake_file=mips/x-sysv
2771 if test x$gas = xyes
2773 tmake_file=mips/t-svr4-gas
2775 tmake_file=mips/t-svr4
2776 extra_passes="mips-tfile mips-tdump"
2778 if test x$gnu_ld != xyes
2784 mips-*-riscos[56789]sysv*)
2786 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2787 if test x$stabs = xyes; then
2788 tm_file="${tm_file} dbx.h"
2791 xmake_file=mips/x-sysv
2792 if test x$gas = xyes
2794 tmake_file=mips/t-svr3-gas
2796 tmake_file=mips/t-svr3
2797 extra_passes="mips-tfile mips-tdump"
2799 if test x$gnu_ld != xyes
2804 mips-*-sysv* | mips-*-riscos*sysv*)
2805 tm_file="mips/svr3-4.h ${tm_file}"
2806 if test x$stabs = xyes; then
2807 tm_file="${tm_file} dbx.h"
2810 xmake_file=mips/x-sysv
2811 if test x$gas = xyes
2813 tmake_file=mips/t-svr3-gas
2815 tmake_file=mips/t-svr3
2816 extra_passes="mips-tfile mips-tdump"
2818 if test x$gnu_ld != xyes
2824 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2826 tm_file=mips/mips-5.h
2827 if test x$stabs = xyes; then
2828 tm_file="${tm_file} dbx.h"
2830 if test x$gas = xyes
2832 tmake_file=mips/t-mips-gas
2834 extra_passes="mips-tfile mips-tdump"
2836 if test x$gnu_ld != xyes
2844 tm_file=mips/ecoffl.h
2845 if test x$stabs = xyes; then
2846 tm_file="${tm_file} dbx.h"
2848 tmake_file=mips/t-ecoff
2851 tm_file="gofast.h mips/ecoff.h"
2852 if test x$stabs = xyes; then
2853 tm_file="${tm_file} dbx.h"
2855 tmake_file=mips/t-ecoff
2858 tm_file="mips/elfl.h"
2859 tmake_file=mips/t-elf
2862 tm_file="mips/elf.h"
2863 tmake_file=mips/t-elf
2866 tm_file="mips/elfl64.h"
2867 tmake_file=mips/t-elf
2869 mips64orionel-*-elf*)
2870 tm_file="mips/elforion.h mips/elfl64.h"
2871 tmake_file=mips/t-elf
2874 tm_file="mips/elf64.h"
2875 tmake_file=mips/t-elf
2878 tm_file="mips/elforion.h mips/elf64.h"
2879 tmake_file=mips/t-elf
2881 mips64orion-*-rtems*)
2882 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2883 tmake_file="mips/t-elf t-rtems"
2886 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h"
2887 tmake_file=mips/t-r3900
2890 tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
2891 tmake_file=mips/t-r3900
2893 mips-*-*) # Default MIPS RISC-OS 4.0.
2894 if test x$stabs = xyes; then
2895 tm_file="${tm_file} dbx.h"
2897 if test x$gas = xyes
2899 tmake_file=mips/t-mips-gas
2901 extra_passes="mips-tfile mips-tdump"
2903 if test x$gnu_ld != xyes
2911 tm_file="mn10200/mn10200.h"
2912 if test x$stabs = xyes
2914 tm_file="${tm_file} dbx.h"
2920 tm_file="mn10300/mn10300.h"
2921 if test x$stabs = xyes
2923 tm_file="${tm_file} dbx.h"
2928 tm_file=ns32k/encore.h
2932 tm_file=ns32k/sequent.h
2936 tm_file=ns32k/tek6100.h
2940 tm_file=ns32k/tek6200.h
2943 # This has not been updated to GCC 2.
2946 # xmake_file=ns32k/x-genix
2947 # tm_file=ns32k/genix.h
2951 tm_file=ns32k/merlin.h
2955 tm_file=ns32k/pc532-mach.h
2959 tm_file=ns32k/pc532-min.h
2960 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2965 tm_file=ns32k/netbsd.h
2966 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2967 # On NetBSD, the headers are already okay, except for math.h.
2972 tm_file="${tm_file} pdp11/2bsd.h"
2981 # This has not been updated to GCC 2.
2984 # xmake_file=pyr/x-pyr
2989 tm_file="svr4.h pj/linux.h ${tm_file}"
2994 tm_file="svr4.h pj/pjl.h ${tm_file}"
3001 xmake_file=romp/x-mach
3008 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
3012 tm_file=rs6000/beos.h
3013 xm_file=rs6000/xm-beos.h
3014 tmake_file=rs6000/t-beos
3015 xmake_file=rs6000/x-beos
3018 tm_file=rs6000/sysv4.h
3019 xm_file="rs6000/xm-sysv4.h"
3020 xm_defines="USG POSIX"
3021 extra_headers=ppc-asm.h
3022 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3023 xmake_file=rs6000/x-sysv4
3026 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
3027 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3028 extra_headers=ppc-asm.h
3031 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h"
3032 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3033 extra_headers=ppc-asm.h
3036 tm_file="rs6000/sysv4.h"
3037 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3038 extra_headers=ppc-asm.h
3041 tm_file="rs6000/sysv4.h rs6000/eabi.h"
3042 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3043 extra_headers=ppc-asm.h
3046 tm_file="rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h"
3047 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
3048 extra_headers=ppc-asm.h
3050 powerpc-*-linux-gnulibc1)
3051 tm_file="rs6000/sysv4.h rs6000/linux.h"
3052 xm_file=rs6000/xm-sysv4.h
3053 out_file=rs6000/rs6000.c
3054 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
3056 extra_headers=ppc-asm.h
3057 if test x$enable_threads = xyes; then
3061 powerpc-*-linux-gnu*)
3062 tm_file="rs6000/sysv4.h rs6000/linux.h"
3063 xm_file="rs6000/xm-sysv4.h"
3064 xm_defines="USG ${xm_defines}"
3065 out_file=rs6000/rs6000.c
3066 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
3068 extra_headers=ppc-asm.h
3069 if test x$enable_threads = xyes; then
3073 powerpc-wrs-vxworks*)
3075 xm_file="rs6000/xm-sysv4.h"
3076 xm_defines="USG POSIX"
3077 tm_file="rs6000/sysv4.h rs6000/vxppc.h"
3078 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3079 extra_headers=ppc-asm.h
3080 thread_file='vxworks'
3082 powerpcle-wrs-vxworks*)
3084 xm_file="rs6000/xm-sysv4.h"
3085 xm_defines="USG POSIX"
3086 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/vxppc.h"
3087 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3088 extra_headers=ppc-asm.h
3089 thread_file='vxworks'
3092 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3093 xm_file="rs6000/xm-sysv4.h"
3094 xm_defines="USG POSIX"
3095 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3096 xmake_file=rs6000/x-sysv4
3097 extra_headers=ppc-asm.h
3100 tm_file="rs6000/sysv4.h rs6000/sysv4le.h"
3101 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3102 extra_headers=ppc-asm.h
3104 powerpcle-*-eabisim*)
3105 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h rs6000/eabisim.h"
3106 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3107 extra_headers=ppc-asm.h
3110 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/eabi.h"
3111 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
3112 extra_headers=ppc-asm.h
3114 powerpcle-*-solaris2*)
3115 tm_file="rs6000/sysv4.h rs6000/sysv4le.h rs6000/sol2.h"
3116 xm_file="rs6000/xm-sysv4.h"
3117 xm_defines="USG POSIX"
3118 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
3119 xmake_file=rs6000/x-sysv4
3120 extra_headers=ppc-asm.h
3123 rs6000-ibm-aix3.[01]*)
3125 tm_file=rs6000/aix31.h
3126 xmake_file=rs6000/x-aix31
3131 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
3133 tm_file=rs6000/aix3newas.h
3134 if test x$host != x$target
3136 tmake_file=rs6000/t-xnewas
3138 tmake_file=rs6000/t-newas
3144 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
3146 tm_file=rs6000/aix41.h
3147 if test x$host != x$target
3149 tmake_file=rs6000/t-xnewas
3151 tmake_file=rs6000/t-newas
3153 if test "$gnu_ld" = yes
3155 xmake_file=rs6000/x-aix41-gld
3157 tmake_file="rs6000/t-newas rs6000/t-aix41"
3159 xmake_file=rs6000/x-aix41
3164 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
3166 tm_file=rs6000/aix43.h
3167 tmake_file=rs6000/t-aix43
3168 xmake_file=rs6000/x-aix41
3173 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
3175 tm_file=rs6000/aix43.h
3176 tmake_file=rs6000/t-aix43
3177 xmake_file=rs6000/x-aix41
3190 tm_file=rs6000/mach.h
3191 xm_file="${xm_file} rs6000/xm-mach.h"
3192 xmake_file=rs6000/x-mach
3196 tm_file=rs6000/lynx.h
3197 xm_file=rs6000/xm-lynx.h
3198 tmake_file=rs6000/t-rs6000
3199 xmake_file=rs6000/x-lynx
3207 tmake_file="sh/t-sh t-rtems"
3208 tm_file=sh/rtemself.h
3212 tmake_file="sh/t-sh t-rtems"
3221 xm_file="xm-alloca.h ${xm_file}"
3224 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3225 tm_file=sparc/vxsparc.h
3226 tmake_file=sparc/t-vxsparc
3228 thread_file='vxworks'
3231 tmake_file=sparc/t-sparcbare
3232 tm_file="sparc/aout.h libgloss.h"
3235 tm_file=sparc/netbsd.h
3240 # we need collect2 until our bug is fixed...
3248 tmake_file=sparc/t-elf
3249 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3253 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3254 xm_file="${xm_file} sparc/xm-linux.h"
3255 tm_file=sparc/linux-aout.h
3259 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3260 xm_file="${xm_file} sparc/xm-linux.h"
3262 tm_file=sparc/linux.h
3263 tmake_file="t-linux t-linux-gnulibc1"
3264 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3268 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3269 xm_file="${xm_file} sparc/xm-linux.h"
3271 tm_file=sparc/linux.h
3272 tmake_file="t-linux"
3273 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3275 if test x$enable_threads = xyes; then
3281 if test x$gas = xyes
3283 tm_file=sparc/lynx.h
3285 tm_file=sparc/lynx-ng.h
3287 xm_file=sparc/xm-lynx.h
3288 tmake_file=sparc/t-sunos41
3292 tmake_file="sparc/t-sparcbare t-rtems"
3293 tm_file=sparc/rtems.h
3295 sparc-*-rtems*|sparc-*-rtemself*)
3296 tm_file="sparc/rtemself.h"
3297 tmake_file="sparc/t-elf t-rtems"
3298 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3302 sparcv9-*-solaris2*)
3303 if test x$gnu_ld = xyes
3305 tm_file=sparc/sol2-64.h
3307 tm_file=sparc/sol2-sld-64.h
3309 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3310 xm_defines="USG POSIX"
3311 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3312 xmake_file=sparc/x-sysv4
3313 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3315 if test x${enable_threads} = x ; then
3316 enable_threads=$have_pthread_h
3317 if test x${enable_threads} = x ; then
3318 enable_threads=$have_thread_h
3321 if test x${enable_threads} = xyes ; then
3322 if test x${have_pthread_h} = xyes ; then
3325 thread_file='solaris'
3329 sparc-hal-solaris2*)
3330 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3331 xm_defines="USG POSIX"
3332 tm_file="sparc/sol2.h sparc/hal.h"
3333 tmake_file="sparc/t-halos sparc/t-sol2"
3334 xmake_file=sparc/x-sysv4
3335 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3344 thread_file='solaris'
3347 if test x$gnu_ld = xyes
3349 tm_file=sparc/sol2.h
3351 tm_file=sparc/sol2-sld.h
3353 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3354 xm_defines="USG POSIX"
3355 tmake_file=sparc/t-sol2
3356 xmake_file=sparc/x-sysv4
3357 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3360 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3363 if test x$gnu_ld = xyes
3365 tm_file=sparc/sol2-64.h
3367 tm_file=sparc/sol2-sld-64.h
3369 tmake_file="$tmake_file sparc/t-sol2-64"
3382 if test x${enable_threads} = x; then
3383 enable_threads=$have_pthread_h
3384 if test x${enable_threads} = x; then
3385 enable_threads=$have_thread_h
3388 if test x${enable_threads} = xyes; then
3389 if test x${have_pthread_h} = xyes; then
3392 thread_file='solaris'
3397 tm_file=sparc/sunos4.h
3398 tmake_file=sparc/t-sunos40
3402 tm_file=sparc/sunos4.h
3403 tmake_file=sparc/t-sunos41
3405 if test x$gas = xyes; then
3406 tm_file="${tm_file} sparc/sun4gas.h"
3410 tm_file=sparc/sun4o3.h
3414 tm_file=sparc/sysv4.h
3415 xm_file="sparc/xm-sysv4.h"
3416 xm_defines="USG POSIX"
3418 xmake_file=sparc/x-sysv4
3419 extra_parts="crtbegin.o crtend.o"
3422 xm_file="sparc/xm-sysv4.h sparc/xm-sol2.h"
3423 xm_defines="USG POSIX"
3424 tm_file=sparc/vxsim.h
3425 tmake_file=sparc/t-vxsparc
3426 xmake_file=sparc/x-sysv4
3429 tm_file="sparc/splet.h libgloss.h"
3430 tmake_file=sparc/t-splet
3433 tm_file="sparc/litecoff.h libgloss.h"
3434 tmake_file=sparc/t-sparclite
3437 tm_file="sparc/lite.h aoutos.h libgloss.h"
3438 tmake_file=sparc/t-sparclite
3441 tm_file="sparc/liteelf.h"
3442 tmake_file=sparc/t-sparclite
3443 extra_parts="crtbegin.o crtend.o"
3446 tm_file="sparc/sp86x-aout.h aoutos.h libgloss.h"
3447 tmake_file=sparc/t-sp86x
3450 tm_file="sparc/sp86x-elf.h"
3451 tmake_file=sparc/t-sp86x
3452 extra_parts="crtbegin.o crtend.o"
3455 tmake_file=sparc/t-sp64
3456 tm_file=sparc/sp64-aout.h
3459 tmake_file=sparc/t-sp64
3460 tm_file=sparc/sp64-elf.h
3461 extra_parts="crtbegin.o crtend.o"
3463 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3464 tmake_file="t-linux sparc/t-linux64"
3465 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3466 tm_file=sparc/linux64.h
3468 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3470 if test x$enable_threads = xyes; then
3475 # This hasn't been upgraded to GCC 2.
3476 # tahoe-harris-*) # Harris tahoe, using COFF.
3477 # tm_file=tahoe/harris.h
3479 # tahoe-*-bsd*) # tahoe running BSD
3484 *** The Thumb targets have been depreciated. The equivalent
3485 *** ARM based toolchain can now generated Thumb instructions
3486 *** when the -mthumb switch is given to the compiler.])
3488 # This hasn't been upgraded to GCC 2.
3495 tm_file="v850/rtems.h"
3496 xm_file="v850/xm-v850.h"
3497 tmake_file="v850/t-v850 t-rtems"
3498 if test x$stabs = xyes
3500 tm_file="${tm_file} dbx.h"
3505 target_cpu_default="TARGET_CPU_generic"
3507 tm_file="v850/v850.h"
3508 xm_file="v850/xm-v850.h"
3509 tmake_file=v850/t-v850
3510 if test x$stabs = xyes
3512 tm_file="${tm_file} dbx.h"
3516 vax-*-bsd*) # vaxen running BSD
3520 vax-*-sysv*) # vaxen running system V
3521 tm_file="${tm_file} vax/vaxv.h"
3526 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3532 tmake_file="${tmake_file} vax/t-openbsd"
3534 vax-*-ultrix*) # vaxen running ultrix
3535 tm_file="${tm_file} vax/ultrix.h"
3539 vax-*-vms*) # vaxen running VMS
3540 xm_file=vax/xm-vms.h
3544 vax-*-*) # vax default entry
3548 xm_file="${xm_file} xm-svr3"
3552 echo "Configuration $machine not supported" 1>&2
3559 ;; # Existing GNU/Linux systems do not use the GNU setup.
3561 # On the GNU system, the setup is just about the same on
3562 # each different CPU. The specific machines that GNU
3563 # supports are matched above and just set $cpu_type.
3564 xm_file="xm-gnu.h ${xm_file}"
3565 tm_file=${cpu_type}/gnu.h
3566 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3567 # GNU always uses ELF.
3569 # GNU tools are the only tools.
3572 xmake_file=x-linux # These details are the same as Linux.
3573 tmake_file=t-gnu # These are not.
3576 xmake_try_sysv=x-sysv
3577 install_headers_dir=install-headers-cpio
3580 install_headers_dir=install-headers-cpio
3584 # Distinguish i[34567]86
3585 # Also, do not run mips-tfile on MIPS if using gas.
3586 # Process --with-cpu= for PowerPC/rs6000
3587 target_cpu_default2=
3590 target_cpu_default2=1
3593 case $target_alias in
3595 target_cpu_default2=4
3598 target_cpu_default2=2
3602 i686-*-* | i786-*-*)
3603 target_cpu_default2=3
3610 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX|MASK_CIX"
3613 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_MAX|MASK_FIX"
3616 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3619 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3622 target_cpu_default2="MASK_CPU_EV5"
3626 if test x$gas = xyes
3628 if test "$target_cpu_default2" = ""
3630 target_cpu_default2="MASK_GAS"
3632 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3637 case "x$with_cpu" in
3640 target_cpu_default2="TARGET_CPU_generic"
3643 # Distinguish cores, and major variants
3644 # arm7m doesn't exist, but D & I don't affect code
3646 xarm[23678] | xarm250 | xarm[67][01]0 \
3647 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3648 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3649 | xstrongarm | xstrongarm110 | xstrongarm1100)
3651 target_cpu_default2="TARGET_CPU_$with_cpu"
3655 echo "--with-cpu must be passed a value" 1>&2
3660 if test x$pass2done = xyes
3662 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3669 mips*-*-ecoff* | mips*-*-elf*)
3670 if test x$gas = xyes
3672 if test x$gnu_ld = xyes
3674 target_cpu_default2=20
3676 target_cpu_default2=16
3681 if test x$gas = xyes
3683 target_cpu_default2=16
3686 powerpc*-*-* | rs6000-*-*)
3687 case "x$with_cpu" in
3691 xcommon | xpower | xpower2 | xpowerpc | xrios \
3692 | xrios1 | xrios2 | xrsc | xrsc1 \
3693 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3694 | xec603e | x740 | x750 | x401 \
3695 | x403 | x505 | x801 | x821 | x823 | x860)
3696 target_cpu_default2="\"$with_cpu\""
3700 echo "--with-cpu must be passed a value" 1>&2
3705 if test x$pass2done = xyes
3707 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3714 case ".$with_cpu" in
3716 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3718 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3719 target_cpu_default2="TARGET_CPU_$with_cpu"
3722 if test x$pass2done = xyes
3724 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3732 if test "$target_cpu_default2" != ""
3734 if test "$target_cpu_default" != ""
3736 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3738 target_cpu_default=$target_cpu_default2
3742 # No need for collect2 if we have the GNU linker.
3743 # Actually, there is now; GNU ld doesn't handle the EH info or
3744 # collecting for shared libraries.
3751 # Save data on machine being used to compile GCC in build_xm_file.
3752 # Save data on host machine in vars host_xm_file and host_xmake_file.
3753 if test x$pass1done = x
3755 if test x"$xm_file" = x
3756 then build_xm_file=$cpu_type/xm-$cpu_type.h
3757 else build_xm_file=$xm_file
3759 build_xm_defines=$xm_defines
3760 build_install_headers_dir=$install_headers_dir
3761 build_exeext=$exeext
3764 if test x$pass2done = x
3766 if test x"$xm_file" = x
3767 then host_xm_file=$cpu_type/xm-$cpu_type.h
3768 else host_xm_file=$xm_file
3770 host_xm_defines=$xm_defines
3771 if test x"$xmake_file" = x
3772 then xmake_file=$cpu_type/x-$cpu_type
3774 host_xmake_file="$xmake_file"
3775 host_truncate_target=$truncate_target
3776 host_extra_gcc_objs=$extra_gcc_objs
3777 host_extra_objs=$extra_host_objs
3784 extra_objs="${host_extra_objs} ${extra_objs}"
3786 # Default the target-machine variables that were not explicitly set.
3787 if test x"$tm_file" = x
3788 then tm_file=$cpu_type/$cpu_type.h; fi
3790 if test x$extra_headers = x
3791 then extra_headers=; fi
3793 if test x"$xm_file" = x
3794 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3796 if test x$md_file = x
3797 then md_file=$cpu_type/$cpu_type.md; fi
3799 if test x$out_file = x
3800 then out_file=$cpu_type/$cpu_type.c; fi
3802 if test x"$tmake_file" = x
3803 then tmake_file=$cpu_type/t-$cpu_type
3806 if test x"$dwarf2" = xyes
3807 then tm_file="$tm_file tm-dwarf2.h"
3810 if test x$float_format = x
3811 then float_format=i64
3814 if test $float_format = none
3815 then float_h_file=Makefile.in
3816 else float_h_file=float-$float_format.h
3819 # Handle cpp installation.
3820 if test x$enable_cpp != xno
3822 tmake_file="$tmake_file t-install-cpp"
3825 # Say what files are being used for the output code and MD file.
3826 echo "Using \`$srcdir/config/$out_file' to output insns."
3827 echo "Using \`$srcdir/config/$md_file' as machine description file."
3830 for f in $tm_file; do
3833 if test $count = ax; then
3834 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3836 echo "Using the following target machine macro files:"
3837 for f in $tm_file; do
3838 echo " $srcdir/config/$f"
3843 for f in $host_xm_file; do
3846 if test $count = ax; then
3847 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3849 echo "Using the following host machine macro files:"
3850 for f in $host_xm_file; do
3851 echo " $srcdir/config/$f"
3855 if test "$host_xm_file" != "$build_xm_file"; then
3857 for f in $build_xm_file; do
3860 if test $count = ax; then
3861 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3863 echo "Using the following build machine macro files:"
3864 for f in $build_xm_file; do
3865 echo " $srcdir/config/$f"
3870 if test x$thread_file = x; then
3871 if test x$target_thread_file != x; then
3872 thread_file=$target_thread_file
3874 thread_file='single'
3878 # Set up the header files.
3879 # $links is the list of header files to create.
3880 # $vars is the list of shell variables with file names to include.
3881 # auto-host.h is the file containing items generated by autoconf and is
3882 # the first file included by config.h.
3884 host_xm_file="auto-host.h gansidecl.h ${host_xm_file} hwint.h"
3886 # If host=build, it is correct to have hconfig include auto-host.h
3887 # as well. If host!=build, we are in error and need to do more
3888 # work to find out the build config parameters.
3889 if test x$host = x$build
3891 build_xm_file="auto-host.h gansidecl.h ${build_xm_file} hwint.h"
3893 # We create a subdir, then run autoconf in the subdir.
3894 # To prevent recursion we set host and build for the new
3895 # invocation of configure to the build for this invocation
3902 /*) realsrcdir=${srcdir};;
3903 *) realsrcdir=../${srcdir};;
3905 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3906 --target=$target --host=$build --build=$build
3908 # We just finished tests for the build machine, so rename
3909 # the file auto-build.h in the gcc directory.
3910 mv auto-host.h ../auto-build.h
3913 build_xm_file="auto-build.h gansidecl.h ${build_xm_file} hwint.h"
3916 xm_file="gansidecl.h ${xm_file}"
3917 tm_file="gansidecl.h ${tm_file}"
3919 vars="host_xm_file tm_file tm_p_file xm_file build_xm_file"
3920 links="config.h tm.h tm_p.h tconfig.h hconfig.h"
3921 defines="host_xm_defines null_defines null_defines xm_defines build_xm_defines"
3924 if test -f config.status; then mv -f config.status config.bak; fi
3927 while test -n "$vars"
3929 set $vars; var=$1; shift; vars=$*
3930 set $links; link=$1; shift; links=$*
3931 set $defines; define=$1; shift; defines=$*
3934 # Make sure the file is created, even if it is empty.
3937 # Define TARGET_CPU_DEFAULT if the system wants one.
3938 # This substitutes for lots of *.h files.
3939 if test "$target_cpu_default" != "" -a $link = tm.h
3941 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3944 for file in `eval echo '$'$var`; do
3949 echo '#ifdef IN_GCC' >>$link
3952 echo "#include \"$file\"" >>$link
3957 echo '#endif' >>$link
3962 for def in `eval echo '$'$define`; do
3963 echo "#ifndef $def" >>$link
3964 echo "#define $def" >>$link
3965 echo "#endif" >>$link
3969 # Truncate the target if necessary
3970 if test x$host_truncate_target != x; then
3971 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3974 # Get the version trigger filename from the toplevel
3975 if test "${with_gcc_version_trigger+set}" = set; then
3976 gcc_version_trigger=$with_gcc_version_trigger
3978 gcc_version_trigger=${srcdir}/version.c
3981 gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'`
3984 # Internationalization
3986 VERSION="$gcc_version"
3987 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3988 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3994 # NLS support is still experimental, so disable it by default for now.
3996 [ --enable-nls use Native Language Support (disabled by default)],
4000 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
4002 # Windows32 Registry support for specifying GCC installation paths.
4003 AC_ARG_ENABLE(win32-registry,
4004 [ --disable-win32-registry
4005 Disable lookup of installation paths in the
4006 Registry on Windows hosts.
4007 --enable-win32-registry Enable registry lookup (default).
4008 --enable-win32-registry=KEY
4009 Use KEY instead of GCC version as the last portion
4010 of the registry key.],,)
4012 AC_MSG_CHECKING(whether windows registry support is requested)
4013 if test x$enable_win32_registry != xno; then
4014 AC_DEFINE(ENABLE_WIN32_REGISTRY)
4020 # Check if user specified a different registry key.
4021 case x${enable_win32_registry} in
4024 gcc_cv_win32_registry_key="$VERSION"
4027 # no registry lookup.
4028 gcc_cv_win32_registry_key=''
4031 # user-specified key.
4032 gcc_cv_win32_registry_key="$enable_win32_registry"
4036 if test x$enable_win32_registry != xno; then
4037 AC_MSG_CHECKING(registry key on windows hosts)
4038 AC_DEFINE_UNQUOTED(WIN32_REGISTRY_KEY, "$gcc_cv_win32_registry_key")
4039 AC_MSG_RESULT($gcc_cv_win32_registry_key)
4042 # Get an absolute path to the GCC top-level source directory
4048 # Conditionalize the makefile for this host machine.
4049 # Make-host contains the concatenation of all host makefile fragments
4050 # [there can be more than one]. This file is built by configure.frag.
4051 host_overrides=Make-host
4052 dep_host_xmake_file=
4053 for f in .. ${host_xmake_file}
4055 if test -f ${srcdir}/config/$f
4057 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
4061 # Conditionalize the makefile for this target machine.
4062 # Make-target contains the concatenation of all host makefile fragments
4063 # [there can be more than one]. This file is built by configure.frag.
4064 target_overrides=Make-target
4066 for f in .. ${tmake_file}
4068 if test -f ${srcdir}/config/$f
4070 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
4074 # If the host doesn't support symlinks, modify CC in
4075 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
4076 # Otherwise, we can use "CC=$(CC)".
4078 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
4080 cc_set_by_configure="\$(CC)"
4081 quoted_cc_set_by_configure="\$(CC)"
4082 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
4085 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
4087 symbolic_link="cp -p"
4091 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
4092 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
4093 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
4097 out_object_file=`basename $out_file .c`.o
4100 for f in $tm_file; do
4103 tm_file_list="${tm_file_list} $f" ;;
4104 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;;
4109 for f in $host_xm_file; do
4111 auto-host.h | gansidecl.h | hwint.h )
4112 host_xm_file_list="${host_xm_file_list} $f" ;;
4113 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;;
4118 for f in $build_xm_file; do
4120 auto-build.h | auto-host.h | gansidecl.h | hwint.h )
4121 build_xm_file_list="${build_xm_file_list} $f" ;;
4122 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;;
4126 # Define macro CROSS_COMPILE in compilation
4127 # if this is a cross-compiler.
4128 # Also use all.cross instead of all.internal
4129 # and add cross-make to Makefile.
4130 cross_overrides="/dev/null"
4131 if test x$host != x$target
4133 cross_defines="CROSS=-DCROSS_COMPILE"
4134 cross_overrides="${topdir}/cross-make"
4137 # When building gcc with a cross-compiler, we need to fix a few things.
4138 # This must come after cross-make as we want all.build to override
4140 build_overrides="/dev/null"
4141 if test x$build != x$host
4143 build_overrides="${topdir}/build-make"
4146 # Expand extra_headers to include complete path.
4147 # This substitutes for lots of t-* files.
4149 if test "x$extra_headers" = x
4152 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
4153 for file in $extra_headers;
4155 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
4159 if test x$use_collect2 = xno; then
4163 # Add a definition of USE_COLLECT2 if system wants one.
4164 # Also tell toplev.c what to do.
4165 # This substitutes for lots of t-* files.
4166 if test x$use_collect2 = x
4171 will_use_collect2="collect2"
4172 maybe_use_collect2="-DUSE_COLLECT2"
4176 # Set MD_DEPS if the real md file is in md.pre-cpp.
4177 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
4178 # for line oriented comments, so we must always use a GNU cpp. If
4179 # building gcc with a cross compiler, use the cross compiler just
4180 # built. Otherwise, we can use the cpp just built.
4182 if test "x$md_cppflags" = x
4184 md_file_sub=$srcdir/config/$md_file
4189 # If we have gas in the build tree, make a link to it.
4190 if test -f ../gas/Makefile; then
4191 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
4194 # If we have nm in the build tree, make a link to it.
4195 if test -f ../binutils/Makefile; then
4196 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
4199 # If we have ld in the build tree, make a link to it.
4200 if test -f ../ld/Makefile; then
4201 # if test x$use_collect2 = x; then
4202 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
4204 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
4208 # Figure out what assembler alignment features are present.
4209 AC_MSG_CHECKING(assembler alignment features)
4211 gcc_cv_as_alignment_features=
4212 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
4213 if test -x "$DEFAULT_ASSEMBLER"; then
4214 gcc_cv_as="$DEFAULT_ASSEMBLER"
4215 elif test -x "$AS"; then
4217 elif test -x as$host_exeext; then
4218 # Build using assembler in the current directory.
4219 gcc_cv_as=./as$host_exeext
4220 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
4221 # Single tree build which includes gas.
4222 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
4225 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
4227 if test x$gcc_cv_gas_version != x; then
4232 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
4233 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
4235 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
4236 # Gas version 2.6 and later support for .balign and .p2align.
4237 # bytes to skip when using .p2align.
4238 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
4239 gcc_cv_as_alignment_features=".balign and .p2align"
4240 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4242 # Gas version 2.8 and later support specifying the maximum
4243 # bytes to skip when using .p2align.
4244 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
4245 gcc_cv_as_alignment_features=".p2align including maximum skip"
4246 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4249 elif test x$host = x$target; then
4251 # Search the same directories that the installed compiler will
4252 # search. Else we may find the wrong assembler and lose. If we
4253 # do not find a suitable assembler binary, then try the user's
4256 # Also note we have to check MD_EXEC_PREFIX before checking the
4257 # user's path. Unfortunately, there is no good way to get at the
4258 # value of MD_EXEC_PREFIX here. So we do a brute force search
4259 # through all the known MD_EXEC_PREFIX values. Ugh. This needs
4260 # to be fixed as part of the make/configure rewrite too.
4262 if test "x$exec_prefix" = xNONE; then
4263 if test "x$prefix" = xNONE; then
4264 test_prefix=/usr/local
4269 test_prefix=$exec_prefix
4272 # If the loop below does not find an assembler, then use whatever
4273 # one we can find in the users's path.
4277 test_dirs="$test_prefix/lib/gcc-lib/$target/$gcc_version \
4278 $test_prefix/lib/gcc-lib/$target \
4279 /usr/lib/gcc/$target/$gcc_version \
4280 /usr/lib/gcc/$target \
4281 $test_prefix/$target/bin/$target/$gcc_version \
4282 $test_prefix/$target/bin \
4287 /bsd43/usr/lib/cmplrs/cc \
4288 /usr/cross64/usr/bin \
4289 /usr/lib/cmplrs/cc \
4290 /sysv/usr/lib/cmplrs/cc \
4291 /svr4/usr/lib/cmplrs/cc \
4294 for dir in $test_dirs; do
4295 if test -f $dir/as$host_exeext; then
4296 gcc_cv_as=$dir/as$host_exeext
4301 if test x$gcc_cv_as != x; then
4302 # Check if we have .balign and .p2align
4303 echo ".balign 4" > conftest.s
4304 echo ".p2align 2" >> conftest.s
4305 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4306 gcc_cv_as_alignment_features=".balign and .p2align"
4307 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
4309 rm -f conftest.s conftest.o
4310 # Check if specifying the maximum bytes to skip when
4311 # using .p2align is supported.
4312 echo ".p2align 4,,7" > conftest.s
4313 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4314 gcc_cv_as_alignment_features=".p2align including maximum skip"
4315 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
4317 rm -f conftest.s conftest.o
4319 AC_MSG_RESULT($gcc_cv_as_alignment_features)
4321 AC_MSG_CHECKING(assembler subsection support)
4322 gcc_cv_as_subsections=
4323 if test x$gcc_cv_as != x; then
4324 # Check if we have .subsection
4325 echo ".subsection 1" > conftest.s
4326 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4327 gcc_cv_as_subsections=".subsection"
4328 if test -x nm$host_exeext; then
4329 gcc_cv_nm=./nm$host_exeext
4330 elif test x$host = x$target; then
4332 gcc_cv_nm=nm$host_exeext
4334 if test x$gcc_cv_nm != x; then
4335 cat > conftest.s <<EOF
4336 conftest_label1: .word 0
4338 conftest_label2: .word 0
4341 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4342 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
4343 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
4344 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4347 gcc_cv_as_subsections="working .subsection -1"
4348 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
4353 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4355 AC_MSG_RESULT($gcc_cv_as_subsections)
4357 AC_MSG_CHECKING(assembler weak support)
4359 if test x$gcc_cv_as != x; then
4360 # Check if we have .weak
4361 echo " .weak foobar" > conftest.s
4362 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4363 AC_DEFINE(HAVE_GAS_WEAK)
4364 gcc_cv_as_weak="yes"
4366 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4368 AC_MSG_RESULT($gcc_cv_as_weak)
4370 AC_MSG_CHECKING(assembler hidden support)
4372 if test x$gcc_cv_as != x; then
4373 # Check if we have .hidden
4374 echo " .hidden foobar" > conftest.s
4375 echo "foobar:" >> conftest.s
4376 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4377 AC_DEFINE(HAVE_GAS_HIDDEN)
4378 gcc_cv_as_hidden="yes"
4380 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4382 AC_MSG_RESULT($gcc_cv_as_hidden)
4386 AC_CACHE_CHECK([assembler .register pseudo-op support],
4387 gcc_cv_as_register_pseudo_op, [
4388 gcc_cv_as_register_pseudo_op=unknown
4389 if test x$gcc_cv_as != x; then
4390 # Check if we have .register
4391 echo ".register %g2, #scratch" > conftest.s
4392 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4393 gcc_cv_as_register_pseudo_op=yes
4395 gcc_cv_as_register_pseudo_op=no
4397 rm -f conftest.s conftest.o
4400 if test "x$gcc_cv_as_register_pseudo_op" = xyes; then
4401 AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP)
4406 AC_CACHE_CHECK([for 64 bit support in assembler ($gcc_cv_as)],
4407 gcc_cv_as_flags64, [
4408 if test -n "$gcc_cv_as"; then
4409 echo ".xword foo" > conftest.s
4410 gcc_cv_as_flags64=no
4411 for flag in "-xarch=v9" "-64 -Av9"; do
4412 if $gcc_cv_as $flag -o conftest.o conftest.s \
4413 > /dev/null 2>&1; then
4414 gcc_cv_as_flags64=$flag
4418 rm -f conftest.s conftest.o
4420 if test "$gas" = yes; then
4421 gcc_cv_as_flags64="-64 -Av9"
4423 gcc_cv_as_flags64="-xarch=v9"
4427 if test "x$gcc_cv_as_flags64" = xno; then
4429 tmake_file=`echo " $tmake_file " | sed -e 's, sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4430 dep_tmake_file=`echo " $dep_tmake_file " | sed -e 's, [^ ]*/config/sparc/t-sol2-64 , ,' -e 's,^ ,,' -e 's, $,,'`
4433 AC_DEFINE_UNQUOTED(AS_SPARC64_FLAG, "$gcc_cv_as_flags64")
4436 *) gcc_cv_as_flags64=${gcc_cv_as_flags64-no}
4440 if test "x$gcc_cv_as_flags64" != xno; then
4441 AC_CACHE_CHECK([for assembler offsetable %lo() support],
4442 gcc_cv_as_offsetable_lo10, [
4443 gcc_cv_as_offsetable_lo10=unknown
4444 if test "x$gcc_cv_as" != x; then
4445 # Check if assembler has offsetable %lo()
4446 echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
4447 echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
4448 if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s \
4450 $gcc_cv_as $gcc_cv_as_flags64 -o conftest1.o conftest1.s \
4451 > /dev/null 2>&1; then
4452 if cmp conftest.o conftest1.o > /dev/null 2>&1; then
4453 gcc_cv_as_offsetable_lo10=no
4455 gcc_cv_as_offsetable_lo10=yes
4458 gcc_cv_as_offsetable_lo10=no
4460 rm -f conftest.s conftest.o conftest1.s conftest1.o
4463 if test "x$gcc_cv_as_offsetable_lo10" = xyes; then
4464 AC_DEFINE(HAVE_AS_OFFSETABLE_LO10)
4472 AC_MSG_CHECKING(assembler instructions)
4473 gcc_cv_as_instructions=
4474 if test x$gcc_cv_as != x; then
4475 set "filds fists" "filds mem; fists mem"
4478 echo "$2" > conftest.s
4479 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
4480 gcc_cv_as_instructions=${gcc_cv_as_instructions}$1" "
4481 AC_DEFINE_UNQUOTED(HAVE_GAS_`echo "$1" | tr '[a-z ]' '[A-Z_]'`)
4485 rm -f conftest.s conftest.o
4487 AC_MSG_RESULT($gcc_cv_as_instructions)
4491 # Figure out what language subdirectories are present.
4492 # Look if the user specified --enable-languages="..."; if not, use
4493 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4495 if test x"${enable_languages+set}" != xset; then
4496 if test x"${LANGUAGES+set}" = xset; then
4497 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4499 enable_languages=all
4503 for lang in ${srcdir}/*/config-lang.in ..
4507 # The odd quoting in the next line works around
4508 # an apparent bug in bash 1.12 on linux.
4510 ${srcdir}/[*]/config-lang.in) ;;
4512 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4513 if test "x$lang_alias" = x
4515 echo "$lang doesn't set \$language." 1>&2
4518 if test x"${enable_languages}" = xall; then
4521 case "${enable_languages}" in
4522 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4530 if test x"${add_this_lang}" = xyes; then
4532 ${srcdir}/ada/config-lang.in)
4533 if test x$gnat = xyes ; then
4534 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4538 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4547 # Make gthr-default.h if we have a thread file.
4549 if test $thread_file != single; then
4550 rm -f gthr-default.h
4551 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4552 gthread_flags=-DHAVE_GTHR_DEFAULT
4554 AC_SUBST(gthread_flags)
4556 # Find out what GC implementation we want, or may, use.
4558 [ --with-gc={simple,page} Choose the garbage collection mechanism to use
4559 with the compiler.],
4565 AC_MSG_ERROR([$withval is an invalid option to --with-gc])
4568 [if test $ac_cv_func_mmap_anywhere = yes \
4569 || test $ac_cv_func_valloc = yes; then
4575 echo "Using $GGC for garbage collection."
4577 # Build a new-abi (c++) system
4578 AC_ARG_ENABLE(new-gxx-abi,
4579 [ --enable-new-gxx-abi
4580 select the new abi for g++. You must select an ABI
4581 at configuration time, so that the correct runtime
4582 support is built. You cannot mix ABIs.],
4583 [AC_DEFINE(ENABLE_NEW_GXX_ABI)
4584 GXX_ABI_FLAG='-fnew-abi'
4585 echo "Building a new-abi g++ compiler."
4587 AC_SUBST(GXX_ABI_FLAG)
4589 # Build a new-libstdc++ system (ie libstdc++-v3)
4590 AC_MSG_CHECKING([for libstdc++ to install])
4591 AC_ARG_ENABLE(libstdcxx-v3,
4592 [ --enable-libstdcxx-v3
4593 enable libstdc++-v3 for building and installation],
4594 [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
4596 if test x$enable_libstdcxx_v3 = xyes; then
4598 AC_DEFINE(ENABLE_STD_NAMESPACE)
4604 # Make empty files to contain the specs and options for each language.
4605 # Then add #include lines to for a compiler that has specs and/or options.
4610 rm -f specs.h options.h gencheck.h
4611 touch specs.h options.h gencheck.h
4612 for subdir in . $subdirs
4614 if test -f $srcdir/$subdir/lang-specs.h; then
4615 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4616 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4618 if test -f $srcdir/$subdir/lang-options.h; then
4619 echo "#include \"$subdir/lang-options.h\"" >>options.h
4620 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4622 if test -f $srcdir/$subdir/$subdir-tree.def; then
4623 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4624 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4628 # These (without "all_") are set in each config-lang.in.
4629 # `language' must be a single word so is spelled singularly.
4635 all_outputs='Makefile intl/Makefile po/Makefile.in fixinc/Makefile gccbug'
4636 # List of language makefile fragments.
4641 # Add the language fragments.
4642 # Languages are added via two mechanisms. Some information must be
4643 # recorded in makefile variables, these are defined in config-lang.in.
4644 # We accumulate them and plug them into the main Makefile.
4645 # The other mechanism is a set of hooks for each of the main targets
4646 # like `clean', `install', etc.
4648 language_fragments="Make-lang"
4649 language_hooks="Make-hooks"
4652 for s in .. $subdirs
4664 . ${srcdir}/$s/config-lang.in
4665 if test "x$language" = x
4667 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4670 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4671 all_languages="$all_languages $language"
4672 if test "x$boot_language" = xyes
4674 all_boot_languages="$all_boot_languages $language"
4676 all_compilers="$all_compilers $compilers"
4677 all_stagestuff="$all_stagestuff $stagestuff"
4678 all_diff_excludes="$all_diff_excludes $diff_excludes"
4679 all_headers="$all_headers $headers"
4680 all_outputs="$all_outputs $outputs"
4681 if test x$outputs = x
4683 oldstyle_subdirs="$oldstyle_subdirs $s"
4685 all_lib2funcs="$all_lib2funcs $lib2funcs"
4689 # Since we can't use `::' targets, we link each language in
4690 # with a set of hooks, reached indirectly via lang.${target}.
4694 target_list="all.build all.cross start.encap rest.encap \
4696 install-normal install-common install-info install-man \
4698 mostlyclean clean distclean extraclean maintainer-clean \
4699 stage1 stage2 stage3 stage4"
4700 for t in $target_list
4703 for lang in .. $all_languages
4705 if test $lang != ".."; then
4709 echo "lang.$t: $x" >> Make-hooks
4712 # If we're not building in srcdir, create .gdbinit.
4714 if test ! -f Makefile.in; then
4715 echo "dir ." > .gdbinit
4716 echo "dir ${srcdir}" >> .gdbinit
4717 if test x$gdb_needs_out_file_path = xyes
4719 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4721 if test "x$subdirs" != x; then
4724 echo "dir ${srcdir}/$s" >> .gdbinit
4727 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4730 # Define variables host_canonical and build_canonical
4731 # because some Cygnus local changes in the Makefile depend on them.
4732 build_canonical=${build}
4733 host_canonical=${host}
4735 if test "${host}" != "${target}" ; then
4736 target_subdir=${target}/
4738 AC_SUBST(build_canonical)
4739 AC_SUBST(host_canonical)
4740 AC_SUBST(target_subdir)
4742 # If this is using newlib, then define inhibit_libc in
4743 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4744 # libgcc.a, but that's OK because newib should have its own version of
4747 if test x$with_newlib = xyes; then
4748 inhibit_libc=-Dinhibit_libc
4750 AC_SUBST(inhibit_libc)
4752 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4753 # absolute path for gcc_tooldir based on inserting the number of up-directory
4754 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4755 # $(libsubdir)/@(unlibsubdir) based path.
4756 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4757 # make and thus we'd get different behavior depending on where we built the
4759 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4760 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4762 changequote(<<, >>)dnl
4763 # An explanation of the sed strings:
4764 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4765 # -e 's|/$||' match a trailing forward slash and eliminates it
4766 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4767 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4769 # (*) Note this pattern overwrites the first character of the string
4770 # with a forward slash if one is not already present. This is not a
4771 # problem because the exact names of the sub-directories concerned is
4772 # unimportant, just the number of them matters.
4774 # The practical upshot of these patterns is like this:
4776 # prefix exec_prefix result
4777 # ------ ----------- ------
4779 # /foo/ /foo/bar ../
4780 # /foo /foo/bar/ ../
4781 # /foo/ /foo/bar/ ../
4782 # /foo /foo/bar/ugg ../../
4785 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4786 changequote([, ])dnl
4788 AC_SUBST(gcc_tooldir)
4791 # Nothing to do for FLOAT_H, float_format already handled.
4795 # Process the language and host/target makefile fragments.
4796 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4798 # Substitute configuration variables
4800 AC_SUBST(all_boot_languages)
4801 AC_SUBST(all_compilers)
4802 AC_SUBST(all_diff_excludes)
4803 AC_SUBST(all_headers)
4804 AC_SUBST(all_lang_makefiles)
4805 AC_SUBST(all_languages)
4806 AC_SUBST(all_lib2funcs)
4807 AC_SUBST(all_stagestuff)
4808 AC_SUBST(build_exeext)
4809 AC_SUBST(build_install_headers_dir)
4810 AC_SUBST(build_xm_file_list)
4811 AC_SUBST(cc_set_by_configure)
4812 AC_SUBST(quoted_cc_set_by_configure)
4813 AC_SUBST(cpp_install_dir)
4815 AC_SUBST(dep_host_xmake_file)
4816 AC_SUBST(dep_tmake_file)
4817 AC_SUBST(extra_c_flags)
4818 AC_SUBST(extra_c_objs)
4819 AC_SUBST(extra_cpp_objs)
4820 AC_SUBST(extra_cxx_objs)
4821 AC_SUBST(extra_headers_list)
4822 AC_SUBST(extra_objs)
4823 AC_SUBST(extra_parts)
4824 AC_SUBST(extra_passes)
4825 AC_SUBST(extra_programs)
4826 AC_SUBST(float_h_file)
4827 AC_SUBST(gcc_gxx_include_dir)
4828 AC_SUBST(gcc_version)
4829 AC_SUBST(gcc_version_trigger)
4830 AC_SUBST(host_exeext)
4831 AC_SUBST(host_extra_gcc_objs)
4832 AC_SUBST(host_xm_file_list)
4834 AC_SUBST(lang_options_files)
4835 AC_SUBST(lang_specs_files)
4836 AC_SUBST(lang_tree_files)
4837 AC_SUBST(local_prefix)
4838 AC_SUBST(maybe_use_collect2)
4840 AC_SUBST(objc_boehm_gc)
4842 AC_SUBST(out_object_file)
4843 AC_SUBST(stage_prefix_set_by_configure)
4844 AC_SUBST(symbolic_link)
4845 AC_SUBST(thread_file)
4846 AC_SUBST(tm_file_list)
4847 AC_SUBST(will_use_collect2)
4850 AC_SUBST_FILE(target_overrides)
4851 AC_SUBST_FILE(host_overrides)
4852 AC_SUBST(cross_defines)
4853 AC_SUBST_FILE(cross_overrides)
4854 AC_SUBST_FILE(build_overrides)
4855 AC_SUBST_FILE(language_fragments)
4856 AC_SUBST_FILE(language_hooks)
4858 # Echo that links are built
4859 if test x$host = x$target
4867 if test x$host != x$build
4869 str3=" on a $build system"
4872 if test "x$str2" != x || test "x$str3" != x
4877 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4879 if test "x$str2" != x || test "x$str3" != x
4881 echo " ${str2}${str3}." 1>&2
4884 # Truncate the target if necessary
4885 if test x$host_truncate_target != x; then
4886 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4889 # Configure the subdirectories
4890 # AC_CONFIG_SUBDIRS($subdirs)
4892 # Create the Makefile
4893 # and configure language subdirectories
4894 AC_OUTPUT($all_outputs,
4896 . $srcdir/configure.lang
4897 case x$CONFIG_HEADERS in
4898 xauto-host.h:config.in)
4901 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4902 # bootstrapping and the installation procedure can still use
4903 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4904 # FLAGS_TO_PASS has been modified to solve the problem there.
4905 # This is virtually a duplicate of what happens in configure.lang; we do
4906 # an extra check to make sure this only happens if ln -s can be used.
4907 if test "$symbolic_link" = "ln -s"; then
4908 for d in .. ${subdirs} ; do
4909 if test $d != ..; then
4912 for t in stage1 stage2 stage3 stage4 include
4915 $symbolic_link ../$t $t 2>/dev/null
4921 # Avoid having to add intl to our include paths.
4922 if test -f intl/libintl.h; then
4923 echo creating libintl.h
4924 echo '#include "intl/libintl.h"' >libintl.h
4931 target_alias='${target_alias}'
4933 subdirs='${subdirs}'
4934 oldstyle_subdirs='${oldstyle_subdirs}'
4935 symbolic_link='${symbolic_link}'
4936 program_transform_set='${program_transform_set}'
4937 program_transform_name='${program_transform_name}'
4938 dep_host_xmake_file='${dep_host_xmake_file}'
4939 host_xmake_file='${host_xmake_file}'
4940 dep_tmake_file='${dep_tmake_file}'
4941 tmake_file='${tmake_file}'
4942 thread_file='${thread_file}'
4943 gcc_version='${gcc_version}'
4944 gcc_version_trigger='${gcc_version_trigger}'
4945 local_prefix='${local_prefix}'
4946 build_install_headers_dir='${build_install_headers_dir}'
4947 build_exeext='${build_exeext}'
4948 host_exeext='${host_exeext}'
4949 out_file='${out_file}'
4950 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4951 SET_MAKE='${SET_MAKE}'
4952 target_list='${target_list}'
4953 target_overrides='${target_overrides}'
4954 host_overrides='${host_overrides}'
4955 cross_defines='${cross_defines}'
4956 cross_overrides='${cross_overrides}'
4957 build_overrides='${build_overrides}'
4958 cpp_install_dir='${cpp_install_dir}'