1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998 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
25 AC_CONFIG_HEADER(auto-host.h:config.in)
32 # Check for bogus environment variables.
33 # Test if LIBRARY_PATH contains the notation for the current directory
34 # since this would lead to problems installing/building glibc.
35 # LIBRARY_PATH contains the current directory if one of the following
37 # - one of the terminals (":" and ";") is the first or last sign
38 # - two terminals occur directly after each other
39 # - the path contains an element with a dot in it
40 AC_MSG_CHECKING(LIBRARY_PATH variable)
42 case ${LIBRARY_PATH} in
43 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
44 library_path_setting="contains current directory"
47 library_path_setting="ok"
51 AC_MSG_RESULT($library_path_setting)
52 if test "$library_path_setting" != "ok"; then
54 *** LIBRARY_PATH shouldn't contain the current directory when
55 *** building egcs. Please change the environment variable
56 *** and run configure again.])
59 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
60 # since this would lead to problems installing/building glibc.
61 # GCC_EXEC_PREFIX contains the current directory if one of the following
63 # - one of the terminals (":" and ";") is the first or last sign
64 # - two terminals occur directly after each other
65 # - the path contains an element with a dot in it
66 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
68 case ${GCC_EXEC_PREFIX} in
69 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
70 gcc_exec_prefix_setting="contains current directory"
73 gcc_exec_prefix_setting="ok"
77 AC_MSG_RESULT($gcc_exec_prefix_setting)
78 if test "$gcc_exec_prefix_setting" != "ok"; then
80 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
81 *** building egcs. Please change the environment variable
82 *** and run configure again.])
85 # Check for additional parameters
89 [ --with-gnu-ld arrange to work with GNU ld.],
90 gnu_ld_flag="$with_gnu_ld",
95 [ --with-gnu-as arrange to work with GNU as.],
96 gas_flag="$with_gnu_as",
101 [ --with-stabs arrange to use stabs instead of host debug format.],
107 [ --with-elf arrange to use ELF instead of host debug format.],
111 # Specify the local prefix
113 AC_ARG_WITH(local-prefix,
114 [ --with-local-prefix=DIR specifies directory to put local include.],
115 [case "${withval}" in
116 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
118 *) local_prefix=$with_local_prefix ;;
121 # Default local prefix if it is empty
122 if test x$local_prefix = x; then
123 local_prefix=/usr/local
127 # Specify the g++ header file directory
128 AC_ARG_WITH(gxx-include-dir,
129 [ --with-gxx-include-dir=DIR
130 specifies directory to put g++ header files.],
131 [case "${withval}" in
132 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
134 *) gxx_include_dir=$with_gxx_include_dir ;;
137 if test x${gxx_include_dir} = x; then
138 if test x${enable_version_specific_runtime_libs} = xyes; then
139 gxx_include_dir='${libsubdir}/include/g++'
141 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
142 gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface}
146 # Enable expensive internal checks
147 AC_ARG_ENABLE(checking,
148 [ --enable-checking enable expensive run-time checks.],
149 [case "${enableval}" in
150 yes) AC_DEFINE(ENABLE_CHECKING) ;;
152 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
155 # Enable use of cpplib for C.
157 AC_ARG_ENABLE(c-cpplib,
158 [ --enable-c-cpplib Use cpplib for C and C++.],
159 if test x$enable_c_cpplib != xno; then
160 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
161 extra_c_objs="${extra_c_objs} prefix.o"
162 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
163 extra_c_flags=-DUSE_CPPLIB=1
167 # Enable Multibyte Characters for C/C++
168 AC_ARG_ENABLE(c-mbchar,
169 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
170 if test x$enable_c_mbchar != xno; then
171 extra_c_flags=-DMULTIBYTE_CHARS=1
174 # Enable Haifa scheduler.
176 [ --enable-haifa Use the experimental scheduler.
177 --disable-haifa Don't use the experimental scheduler for the
178 targets which normally enable it.])
181 # This is a work in progress...
182 AC_ARG_WITH(fast-fixincludes,
183 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
184 fast_fixinc="$with_fast_fixincludes",
187 # Enable init_priority.
188 AC_ARG_ENABLE(init-priority,
189 [ --enable-init-priority Use attributes to assign initialization order
191 --disable-init-priority Conform to ISO C++ rules for ordering static objects
192 (i.e. initialized in order of declaration). ],
193 if test x$enable_init_priority != xno; then
194 extra_c_flags=-DUSE_INIT_PRIORITY
198 # Pass with no value to take the default
199 # Pass with a value to specify a thread package
200 AC_ARG_ENABLE(threads,
201 [ --enable-threads enable thread usage for target GCC.
202 --enable-threads=LIB use LIB thread package for target GCC.],
203 if test x$enable_threads = xno; then
208 enable_threads_flag=$enable_threads
209 # Check if a valid thread package
210 case x${enable_threads_flag} in
213 target_thread_file='single'
217 target_thread_file=''
219 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
220 xsolaris | xwin32 | xdce | xvxworks)
221 target_thread_file=$enable_threads_flag
224 echo "$enable_threads is an unknown thread package" 1>&2
229 AC_ARG_ENABLE(objc-gc,
230 [ --enable-objc-gc enable the use of Boehm's garbage collector with
231 the GNU Objective-C runtime.],
232 if [[[ x$enable_objc_gc = xno ]]]; then
239 # Determine the host, build, and target systems
242 # Find the native compiler
245 # If the native compiler is GCC, we can enable warnings even in stage1.
246 # That's useful for people building cross-compilers, or just running a
248 if test "x$GCC" = "xyes"; then
249 stage1_warn_cflags='$(WARN_CFLAGS)'
251 stage1_warn_cflags=""
253 AC_SUBST(stage1_warn_cflags)
257 # Find some useful tools
270 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h fcntl.h unistd.h stab.h sys/file.h sys/time.h sys/resource.h sys/param.h sys/times.h wait.h sys/wait.h)
272 # Check for thread headers.
273 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
274 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
276 # See if GNAT has been installed
277 AC_CHECK_PROG(gnat, gnatbind, yes, no)
279 # See if the system preprocessor understands the ANSI C preprocessor
280 # stringification operator.
281 AC_MSG_CHECKING(whether cpp understands the stringify operator)
282 AC_CACHE_VAL(gcc_cv_c_have_stringify,
285 char *test = S(foo);],
286 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
287 AC_MSG_RESULT($gcc_cv_c_have_stringify)
288 if test $gcc_cv_c_have_stringify = yes; then
289 AC_DEFINE(HAVE_CPP_STRINGIFY)
292 # Use <inttypes.h> only if it exists,
293 # doesn't clash with <sys/types.h>, and declares intmax_t.
294 AC_MSG_CHECKING(for inttypes.h)
295 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
297 [#include <sys/types.h>
298 #include <inttypes.h>],
300 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
301 gcc_cv_header_inttypes_h=yes],
302 gcc_cv_header_inttypes_h=no)])
303 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
305 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
306 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
307 sysconf isascii gettimeofday)
309 # Make sure wchar_t is available
310 #AC_CHECK_TYPE(wchar_t, unsigned int)
312 GCC_FUNC_VFPRINTF_DOPRNT
315 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
316 index rindex getenv atol sbrk abort atof strerror getcwd getwd)
318 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
319 #include <sys/types.h>
320 #ifdef HAVE_SYS_RESOURCE_H
321 #include <sys/resource.h>
335 build_install_headers_dir=install-headers-tar
340 host_truncate_target=
343 # Decode the host machine, then the target machine.
344 # For the host machine, we save the xm_file variable as host_xm_file;
345 # then we decode the target machine and forget everything else
346 # that came from the host machine.
347 for machine in $build $host $target; do
361 # Set this to force installation and use of collect2.
363 # Set this to override the default target model.
365 # Set this to control which fixincludes program to use.
366 if test x$fast_fixinc != xyes; then
367 fixincludes=fixincludes
368 else fixincludes=fixinc.sh ; fi
369 # Set this to control how the header file directory is installed.
370 install_headers_dir=install-headers-tar
371 # Set this to a non-empty list of args to pass to cpp if the target
372 # wants its .md file passed through cpp.
374 # Set this if directory names should be truncated to 14 characters.
376 # Set this if gdb needs a dir command with `dirname $out_file`
377 gdb_needs_out_file_path=
378 # Set this if the build machine requires executables to have a
381 # Set this to control which thread package will be used.
383 # Reinitialize these from the flag values every loop pass, since some
384 # configure entries modify them.
386 gnu_ld="$gnu_ld_flag"
387 enable_threads=$enable_threads_flag
389 # Set default cpu_type, tm_file and xm_file so it can be updated in
390 # each machine entry.
391 cpu_type=`echo $machine | sed 's/-.*$//'`
427 tm_file=${cpu_type}/${cpu_type}.h
428 xm_file=${cpu_type}/xm-${cpu_type}.h
430 # Set the default macros to define for GNU/Linux systems.
433 xm_defines="HAVE_ATEXIT POSIX BSTRING"
438 # Support site-specific machine types.
440 cpu_type=`echo $machine | sed -e 's/-.*//'`
441 rest=`echo $machine | sed -e "s/$cpu_type-//"`
442 xm_file=${cpu_type}/xm-$rest.h
443 tm_file=${cpu_type}/$rest.h
444 if test -f $srcdir/config/${cpu_type}/x-$rest; \
445 then xmake_file=${cpu_type}/x-$rest; \
448 if test -f $srcdir/config/${cpu_type}/t-$rest; \
449 then tmake_file=${cpu_type}/t-$rest; \
455 a29k-*-bsd* | a29k-*-sym1*)
456 tm_file="${tm_file} a29k/unix.h"
458 xmake_file=a29k/x-unix
461 a29k-*-udi | a29k-*-coff)
462 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
463 tmake_file=a29k/t-a29kbare
466 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
467 tmake_file=a29k/t-vx29k
468 extra_parts="crtbegin.o crtend.o"
469 thread_file='vxworks'
471 a29k-*-*) # Default a29k environment.
474 alpha*-*-linux-gnuecoff*)
475 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
476 target_cpu_default="MASK_GAS"
481 alpha*-*-linux-gnulibc1*)
482 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
483 target_cpu_default="MASK_GAS"
484 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
485 extra_parts="crtbegin.o crtend.o"
486 fixincludes=fixinc.wrap
489 if test x$enable_threads = xyes; then
494 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
495 target_cpu_default="MASK_GAS"
496 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
497 extra_parts="crtbegin.o crtend.o"
499 fixincludes=Makefile.in
501 if test x$enable_threads = xyes; then
506 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
507 target_cpu_default="MASK_GAS"
508 tmake_file="alpha/t-crtbe"
509 extra_parts="crtbegin.o crtend.o"
511 fixincludes=fixinc.wrap
516 if test x$stabs = xyes
518 tm_file="${tm_file} dbx.h"
520 if test x$gas != xyes
522 extra_passes="mips-tfile mips-tdump"
527 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
532 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
535 tm_file="${tm_file} alpha/osf.h"
536 # Some versions of OSF4 (specifically X4.0-9 296.7) have
537 # a broken tar, so we use cpio instead.
538 install_headers_dir=install-headers-cpio
543 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
545 target_cpu_default=MASK_SUPPORT_ARCH
550 tm_file="${tm_file} dbx.h alpha/vxworks.h"
553 extra_passes="mips-tfile mips-tdump"
558 tm_file="${tm_file} alpha/win-nt.h"
559 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
561 xmake_file=winnt/x-winnt
562 extra_host_objs=oldnames.o
563 extra_gcc_objs="spawnv.o oldnames.o"
564 fixincludes=fixinc.winnt
565 if test x$gnu_ld != xyes
567 extra_programs=ld.exe
569 if test x$enable_threads = xyes; then
575 xm_file="${xm_file} alpha/xm-vms.h"
576 tmake_file=alpha/t-vms
577 fixincludes=Makefile.in
580 extra_parts="crtinit.o crtfini.o"
582 arm-*-coff* | armel-*-coff*)
584 tmake_file=arm/t-bare
587 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
589 tm_file=arm/riscix1-1.h
592 arm-*-riscix*) # Acorn RISC machine
595 tm_file=arm/rix-gas.h
599 xmake_file=arm/x-riscix
600 tmake_file=arm/t-riscix
603 arm-semi-aout | armel-semi-aout)
605 tmake_file=arm/t-semi
606 fixincludes=Makefile.in # There is nothing to fix
608 arm-semi-aof | armel-semi-aof)
609 tm_file=arm/semiaof.h
610 tmake_file=arm/t-semiaof
611 fixincludes=Makefile.in # There is nothing to fix
615 xm_file="arm/xm-netbsd.h ${xm_file}"
616 tmake_file="t-netbsd arm/t-netbsd"
617 # On NetBSD, the headers are already okay, except for math.h.
618 fixincludes=fixinc.wrap
620 arm-*-linux-gnuaout*) # ARM GNU/Linux
623 tm_file=arm/linux-gas.h
624 tmake_file=arm/t-linux
625 fixincludes=Makefile.in
630 tmake_file=arm/t-bare
632 c1-convex-*) # Convex C1
635 fixincludes=Makefile.in
637 c2-convex-*) # Convex C2
640 fixincludes=Makefile.in
645 fixincludes=Makefile.in
650 fixincludes=Makefile.in
653 target_cpu_default=16
655 fixincludes=Makefile.in
657 clipper-intergraph-clix*)
658 tm_file="${tm_file} svr3.h clipper/clix.h"
659 xm_file=clipper/xm-clix.h
660 xmake_file=clipper/x-clix
661 extra_headers=va-clipper.h
662 extra_parts="crtbegin.o crtend.o"
663 install_headers_dir=install-headers-cpio
670 # This hasn't been upgraded to GCC 2.
671 # fx80-alliant-*) # Alliant FX/80
677 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
678 xm_file=pa/xm-papro.h
683 tm_file="${tm_file} pa/pa-osf.h"
685 fixincludes=Makefile.in
688 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
689 xm_file=pa/xm-papro.h
693 tm_file="${tm_file} pa/pa-osf.h"
695 fixincludes=Makefile.in
700 fixincludes=Makefile.in
704 fixincludes=Makefile.in
707 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
708 xm_file=pa/xm-pahpux.h
709 xmake_file=pa/x-pa-hpux
712 tm_file="${tm_file} pa/gas.h"
714 install_headers_dir=install-headers-cpio
718 hppa1.0-*-hpux8.0[0-2]*)
720 tm_file="${tm_file} pa/pa-hpux.h"
721 xm_file=pa/xm-pahpux.h
722 xmake_file=pa/x-pa-hpux
725 tm_file="${tm_file} pa/pa-gas.h"
727 tm_file="pa/pa-oldas.h ${tm_file}"
729 install_headers_dir=install-headers-cpio
733 hppa1.1-*-hpux8.0[0-2]*)
736 tm_file="${tm_file} pa/pa-hpux.h"
737 xm_file=pa/xm-pahpux.h
738 xmake_file=pa/x-pa-hpux
741 tm_file="${tm_file} pa/pa-gas.h"
743 tm_file="pa/pa-oldas.h ${tm_file}"
745 install_headers_dir=install-headers-cpio
750 tm_file="${tm_file} pa/pa-hpux.h"
751 xm_file=pa/xm-pahpux.h
752 xmake_file=pa/x-pa-hpux
755 tm_file="${tm_file} pa/pa-gas.h"
757 install_headers_dir=install-headers-cpio
761 tm_file="${tm_file} pa/pa-hpux.h"
762 xm_file=pa/xm-pahpux.h
763 xmake_file=pa/x-pa-hpux
766 tm_file="${tm_file} pa/pa-gas.h"
768 install_headers_dir=install-headers-cpio
773 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
774 xm_file=pa/xm-pahpux.h
775 xmake_file=pa/x-pa-hpux
779 tm_file="${tm_file} pa/pa-gas.h"
781 if test x$enable_threads = x; then
782 enable_threads=$have_pthread_h
784 if test x$enable_threads = xyes; then
786 tmake_file="${tmake_file} pa/t-dce-thr"
788 install_headers_dir=install-headers-cpio
792 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
793 xm_file=pa/xm-pahpux.h
794 xmake_file=pa/x-pa-hpux
797 tm_file="${tm_file} pa/pa-gas.h"
799 if test x$enable_threads = x; then
800 enable_threads=$have_pthread_h
802 if test x$enable_threads = xyes; then
804 tmake_file="${tmake_file} pa/t-dce-thr"
806 install_headers_dir=install-headers-cpio
811 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
812 xm_file=pa/xm-pahpux.h
813 xmake_file=pa/x-pa-hpux
816 tm_file="${tm_file} pa/pa-gas.h"
818 install_headers_dir=install-headers-cpio
822 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
823 xm_file=pa/xm-pahpux.h
824 xmake_file=pa/x-pa-hpux
827 tm_file="${tm_file} pa/pa-gas.h"
829 install_headers_dir=install-headers-cpio
834 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
835 xm_file=pa/xm-pahpux.h
836 xmake_file=pa/x-pa-hpux
839 tm_file="${tm_file} pa/pa-gas.h"
841 install_headers_dir=install-headers-cpio
845 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
846 xm_file=pa/xm-pahpux.h
847 xmake_file=pa/x-pa-hpux
850 tm_file="${tm_file} pa/pa-gas.h"
852 install_headers_dir=install-headers-cpio
858 fixincludes=Makefile.in
863 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
867 tm_file=i386/aix386.h
868 extra_parts="crtbegin.o crtend.o"
869 tmake_file=i386/t-crtstuff
871 tm_file=i386/aix386ng.h
874 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
876 xmake_file=i386/x-aix
879 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
881 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
882 xm_defines="USG POSIX SMALL_ARG_MAX"
883 xmake_file=i386/x-ncr3000
884 if test x$stabs = xyes -a x$gas = xyes
886 tm_file=i386/sysv4gdb.h
890 extra_parts="crtbegin.o crtend.o"
891 tmake_file=i386/t-crtpic
897 xm_file=i386/xm-next.h
898 tmake_file=i386/t-next
899 xmake_file=i386/x-next
900 extra_objs=nextstep.o
902 if test x$enable_threads = xyes; then
907 i[34567]86-sequent-bsd*) # 80386 from Sequent
912 tm_file=i386/seq-gas.h
914 tm_file=i386/sequent.h
918 i[34567]86-sequent-ptx1*)
920 xm_defines="USG SVR3"
921 xmake_file=i386/x-sysv3
922 tm_file=i386/seq-sysv3.h
923 tmake_file=i386/t-crtstuff
924 fixincludes=fixinc.ptx
925 extra_parts="crtbegin.o crtend.o"
926 install_headers_dir=install-headers-cpio
929 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
931 xm_defines="USG SVR3"
932 xmake_file=i386/x-sysv3
933 tm_file=i386/seq2-sysv3.h
934 tmake_file=i386/t-crtstuff
935 extra_parts="crtbegin.o crtend.o"
936 fixincludes=fixinc.ptx
937 install_headers_dir=install-headers-cpio
940 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
942 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
943 xm_defines="USG POSIX SMALL_ARG_MAX"
945 tm_file=i386/ptx4-i.h
947 extra_parts="crtbegin.o crtend.o"
948 fixincludes=fixinc.ptx
949 install_headers_dir=install-headers-cpio
951 i386-sun-sunos*) # Sun i386 roadrunner
957 i[34567]86-wrs-vxworks*)
959 tm_file=i386/vxi386.h
960 tmake_file=i386/t-i386bare
965 tm_file=i386/i386-aout.h
966 tmake_file=i386/t-i386bare
969 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
971 tm_file=i386/bsd386.h
972 # tmake_file=t-libc-ok
977 tm_file=i386/386bsd.h
978 # tmake_file=t-libc-ok
979 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
983 i[34567]86-*-freebsdelf*)
985 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
986 # On FreeBSD, the headers are already ok, except for math.h.
987 fixincludes=fixinc.wrap
988 tmake_file=i386/t-freebsd
994 i[34567]86-*-freebsd*)
996 tm_file=i386/freebsd.h
997 # On FreeBSD, the headers are already ok, except for math.h.
998 fixincludes=fixinc.wrap
999 tmake_file=i386/t-freebsd
1002 i[34567]86-*-netbsd*)
1004 tm_file=i386/netbsd.h
1005 # On NetBSD, the headers are already okay, except for math.h.
1006 fixincludes=fixinc.wrap
1012 tm_file=i386/i386-coff.h
1013 tmake_file=i386/t-i386bare
1016 i[34567]86-*-isc*) # 80386 running ISC system
1018 xm_file="${xm_file} i386/xm-isc.h"
1019 xm_defines="USG SVR3"
1022 i[34567]86-*-isc[34]*)
1024 xmake_file=i386/x-isc3
1027 xmake_file=i386/x-isc
1030 if test x$gas = xyes -a x$stabs = xyes
1032 tm_file=i386/iscdbx.h
1033 tmake_file=i386/t-svr3dbx
1034 extra_parts="svr3.ifile svr3z.ifile"
1036 tm_file=i386/isccoff.h
1037 tmake_file=i386/t-crtstuff
1038 extra_parts="crtbegin.o crtend.o"
1040 install_headers_dir=install-headers-cpio
1043 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1044 changequote([,])dnl # with a.out format using
1046 xmake_file=x-linux-aout
1047 tmake_file="t-linux-aout i386/t-crtstuff"
1048 tm_file=i386/linux-oldld.h
1049 fixincludes=Makefile.in #On Linux, the headers are ok already.
1054 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1055 changequote([,])dnl # with a.out format
1056 xmake_file=x-linux-aout
1057 tmake_file="t-linux-aout i386/t-crtstuff"
1058 tm_file=i386/linux-aout.h
1059 fixincludes=Makefile.in #On Linux, the headers are ok already.
1064 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1065 changequote([,])dnl # with ELF format using the
1066 # GNU/Linux C library 5
1068 tm_file=i386/linux.h
1069 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1070 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1071 fixincludes=Makefile.in #On Linux, the headers are ok already.
1074 if test x$enable_threads = xyes; then
1075 thread_file='single'
1079 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1080 changequote([,])dnl # with ELF format using glibc 2
1081 # aka GNU/Linux C library 6
1083 tm_file=i386/linux.h
1084 tmake_file="t-linux i386/t-crtstuff"
1085 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1086 fixincludes=Makefile.in #On Linux, the headers are ok already.
1089 if test x$enable_threads = xyes; then
1098 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1100 xm_file=i386/xm-go32.h
1102 tmake_file=i386/t-go32
1105 i[34567]86-pc-msdosdjgpp*)
1107 xm_file=i386/xm-go32.h
1109 tmake_file=i386/t-go32
1114 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1117 tmake_file=t-libc-ok
1118 fixincludes=Makefile.in
1123 i[34567]86-*-lynxos*)
1125 if test x$gas = xyes
1129 tm_file=i386/lynx-ng.h
1131 xm_file=i386/xm-lynx.h
1132 tmake_file=i386/t-i386bare
1139 # tmake_file=t-libc-ok
1143 i[34567]86-*-osfrose*) # 386 using OSF/rose
1145 if test x$elf = xyes
1147 tm_file=i386/osfelf.h
1150 tm_file=i386/osfrose.h
1153 xm_file="i386/xm-osf.h ${xm_file}"
1154 xmake_file=i386/x-osfrose
1155 tmake_file=i386/t-osf
1156 extra_objs=halfpic.o
1159 i[34567]86-go32-rtems*)
1162 xm_file=i386/xm-go32.h
1163 tm_file=i386/go32-rtems.h
1164 tmake_file="i386/t-go32 t-rtems"
1167 i[34567]86-*-rtemself*)
1170 tm_file=i386/rtemself.h
1171 tmake_file="i386/t-i386bare t-rtems"
1174 i[34567]86-*-rtems*)
1177 tm_file=i386/rtems.h
1178 tmake_file="i386/t-i386bare t-rtems"
1181 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1183 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1184 xm_defines="USG SVR3"
1185 xmake_file=i386/x-sco5
1186 fixincludes=fixinc.sco
1187 install_headers_dir=install-headers-cpio
1189 if test x$gas = xyes
1191 tm_file="i386/sco5gas.h ${tm_file}"
1192 tmake_file=i386/t-sco5gas
1194 tmake_file=i386/t-sco5
1196 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1199 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1201 xm_file="${xm_file} i386/xm-sco.h"
1202 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1203 xmake_file=i386/x-sco4
1204 fixincludes=fixinc.sco
1205 install_headers_dir=install-headers-cpio
1206 if test x$stabs = xyes
1208 tm_file=i386/sco4dbx.h
1209 tmake_file=i386/t-svr3dbx
1210 extra_parts="svr3.ifile svr3z.rfile"
1213 tmake_file=i386/t-crtstuff
1214 extra_parts="crtbegin.o crtend.o"
1219 i[34567]86-*-sco*) # 80386 running SCO system
1221 xm_file=i386/xm-sco.h
1222 xmake_file=i386/x-sco
1223 install_headers_dir=install-headers-cpio
1224 if test x$stabs = xyes
1226 tm_file=i386/scodbx.h
1227 tmake_file=i386/t-svr3dbx
1228 extra_parts="svr3.ifile svr3z.rfile"
1231 extra_parts="crtbegin.o crtend.o"
1232 tmake_file=i386/t-crtstuff
1237 i[34567]86-*-solaris2*)
1239 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1240 xm_defines="USG POSIX SMALL_ARG_MAX"
1241 if test x$stabs = xyes
1243 tm_file=i386/sol2dbg.h
1247 tmake_file=i386/t-sol2
1248 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1254 fixincludes=fixinc.svr4;;
1256 fixincludes=fixinc.wrap;;
1258 if test x$enable_threads = xyes; then
1259 thread_file='solaris'
1263 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1265 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1266 xm_defines="USG POSIX"
1267 tm_file=i386/sysv4.h
1268 if test x$stabs = xyes
1270 tm_file="${tm_file} dbx.h"
1272 tmake_file=i386/t-crtpic
1274 extra_parts="crtbegin.o crtend.o"
1275 fixincludes=Makefile.in # The headers are just fine, thank you.
1278 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1280 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1281 xm_defines="USG POSIX SMALL_ARG_MAX"
1282 tm_file=i386/sysv4.h
1283 if test x$stabs = xyes
1285 tm_file="${tm_file} dbx.h"
1287 tmake_file=i386/t-crtpic
1289 extra_parts="crtbegin.o crtend.o"
1292 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1295 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1296 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1297 fixincludes=Makefile.in #Don't do it on OSF/1
1298 if test x$stabs = xyes
1300 tm_file=i386/osf1elfgdb.h
1302 tm_file=i386/osf1elf.h
1304 tmake_file=i386/t-osf1elf
1305 xmake_file=i386/x-osf1elf
1306 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1309 i[34567]86-*-sysv*) # Intel 80386's running system V
1311 xm_defines="USG SVR3"
1312 xmake_file=i386/x-sysv3
1313 if test x$gas = xyes
1315 if test x$stabs = xyes
1317 tm_file=i386/svr3dbx.h
1318 tmake_file=i386/t-svr3dbx
1319 extra_parts="svr3.ifile svr3z.rfile"
1321 tm_file=i386/svr3gas.h
1322 extra_parts="crtbegin.o crtend.o"
1323 tmake_file=i386/t-crtstuff
1326 tm_file=i386/sysv3.h
1327 extra_parts="crtbegin.o crtend.o"
1328 tmake_file=i386/t-crtstuff
1331 i386-*-vsta) # Intel 80386's running VSTa kernel
1332 xm_file="${xm_file} i386/xm-vsta.h"
1334 tmake_file=i386/t-vsta
1335 xmake_file=i386/x-vsta
1340 xm_file="${xm_file} i386/xm-cygwin32.h"
1341 tmake_file=i386/t-cygwin32
1342 tm_file=i386/win32.h
1343 xmake_file=i386/x-cygwin32
1345 fixincludes=Makefile.in
1346 if test x$enable_threads = xyes; then
1352 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1354 xm_file="${xm_file} i386/xm-cygwin32.h"
1355 tmake_file=i386/t-cygwin32
1356 tm_file=i386/cygwin32.h
1357 xmake_file=i386/x-cygwin32
1359 fixincludes=Makefile.in
1360 if test x$enable_threads = xyes; then
1366 i[34567]86-*-mingw32*)
1368 tm_file=i386/mingw32.h
1369 xm_file="${xm_file} i386/xm-mingw32.h"
1370 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1372 xmake_file=i386/x-cygwin32
1373 fixincludes=Makefile.in
1374 if test x$enable_threads = xyes; then
1381 *minwg32crt* | *mingw32*)
1382 tm_file="${tm_file} i386/crtdll.h"
1387 i[34567]86-*-winnt3*)
1389 tm_file=i386/win-nt.h
1390 out_file=i386/i386.c
1391 xm_file="xm-winnt.h ${xm_file}"
1392 xmake_file=winnt/x-winnt
1393 tmake_file=i386/t-winnt
1394 extra_host_objs="winnt.o oldnames.o"
1395 extra_gcc_objs="spawnv.o oldnames.o"
1396 fixincludes=fixinc.winnt
1397 if test x$gnu_ld != xyes
1399 extra_programs=ld.exe
1401 if test x$enable_threads = xyes; then
1406 i[34567]86-dg-dgux*)
1408 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1409 xm_defines="USG POSIX"
1410 out_file=i386/dgux.c
1412 tmake_file=i386/t-dgux
1413 xmake_file=i386/x-dgux
1414 fixincludes=fixinc.dgux
1415 install_headers_dir=install-headers-cpio
1417 i860-alliant-*) # Alliant FX/2800
1418 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1419 xm_file="${xm_file}"
1420 xmake_file=i860/x-fx2800
1421 tmake_file=i860/t-fx2800
1422 extra_parts="crtbegin.o crtend.o"
1425 tm_file="${tm_file} i860/bsd.h"
1426 if test x$gas = xyes
1428 tm_file="${tm_file} i860/bsd-gas.h"
1433 tm_file="${tm_file} i860/mach.h"
1434 tmake_file=t-libc-ok
1436 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1437 tm_file="${tm_file} svr3.h i860/paragon.h"
1438 xm_defines="USG SVR3"
1442 tm_file="${tm_file} svr3.h i860/sysv3.h"
1443 xm_defines="USG SVR3"
1444 xmake_file=i860/x-sysv3
1445 extra_parts="crtbegin.o crtend.o"
1448 tm_file="${tm_file} svr4.h i860/sysv4.h"
1449 xm_defines="USG SVR3"
1450 xmake_file=i860/x-sysv4
1452 extra_parts="crtbegin.o crtend.o"
1454 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1455 tm_file="${tm_file} i960/vx960.h"
1456 tmake_file=i960/t-vxworks960
1458 thread_file='vxworks'
1460 i960-wrs-vxworks5* | i960-wrs-vxworks)
1461 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1462 tmake_file=i960/t-vxworks960
1464 thread_file='vxworks'
1467 tm_file="${tm_file} i960/vx960.h"
1468 tmake_file=i960/t-vxworks960
1470 thread_file='vxworks'
1473 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1474 tmake_file=i960/t-960bare
1478 tmake_file="i960/t-960bare t-rtems"
1479 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1482 i960-*-*) # Default i960 environment.
1486 extra_parts="crtinit.o crtfini.o"
1488 m68000-convergent-sysv*)
1490 xm_file="m68k/xm-3b1.h ${xm_file}"
1493 extra_headers=math-68881.h
1495 m68000-hp-bsd*) # HP 9000/200 running BSD
1496 tm_file=m68k/hp2bsd.h
1497 xmake_file=m68k/x-hp2bsd
1499 extra_headers=math-68881.h
1501 m68000-hp-hpux*) # HP 9000 series 300
1502 xm_file="xm_alloca.h ${xm_file}"
1503 xm_defines="USG NO_SYS_SIGLIST"
1504 if test x$gas = xyes
1506 xmake_file=m68k/x-hp320g
1507 tm_file=m68k/hp310g.h
1509 xmake_file=m68k/x-hp320
1510 tm_file=m68k/hp310.h
1512 install_headers_dir=install-headers-cpio
1514 extra_headers=math-68881.h
1519 extra_headers=math-68881.h
1522 tm_file=m68k/sun2o4.h
1524 extra_headers=math-68881.h
1527 xm_file="m68k/xm-3b1.h ${xm_file}"
1529 if test x$gas = xyes
1536 extra_headers=math-68881.h
1538 m68k-apple-aux*) # Apple Macintosh running A/UX
1539 xm_defines="USG AUX"
1540 tmake_file=m68k/t-aux
1541 install_headers_dir=install-headers-cpio
1542 extra_headers=math-68881.h
1543 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1545 if test "$gnu_ld" = yes
1547 tm_file="${tm_file} m68k/auxgld.h"
1549 tm_file="${tm_file} m68k/auxld.h"
1551 if test "$gas" = yes
1553 tm_file="${tm_file} m68k/auxgas.h"
1555 tm_file="${tm_file} m68k/auxas.h"
1557 tm_file="${tm_file} m68k/a-ux.h"
1561 tm_file=m68k/apollo68.h
1562 xmake_file=m68k/x-apollo68
1564 extra_headers=math-68881.h
1567 m68k-altos-sysv*) # Altos 3068
1568 if test x$gas = xyes
1570 tm_file=m68k/altos3068.h
1573 echo "The Altos is supported only with the GNU assembler" 1>&2
1576 extra_headers=math-68881.h
1578 m68k-bull-sysv*) # Bull DPX/2
1579 if test x$gas = xyes
1581 if test x$stabs = xyes
1583 tm_file=m68k/dpx2cdbx.h
1585 tm_file=m68k/dpx2g.h
1590 xm_file="xm-alloca.h ${xm_file}"
1592 xmake_file=m68k/x-dpx2
1594 extra_headers=math-68881.h
1596 m68k-atari-sysv4*) # Atari variant of V.4.
1597 tm_file=m68k/atari.h
1598 xm_file="xm-alloca.h ${xm_file}"
1599 xm_defines="USG FULL_PROTOTYPES"
1601 extra_parts="crtbegin.o crtend.o"
1602 extra_headers=math-68881.h
1605 m68k-motorola-sysv*)
1606 tm_file=m68k/mot3300.h
1607 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1608 xm_defines=NO_SYS_SIGLIST
1609 if test x$gas = xyes
1611 xmake_file=m68k/x-mot3300-gas
1612 if test x$gnu_ld = xyes
1614 tmake_file=m68k/t-mot3300-gald
1616 tmake_file=m68k/t-mot3300-gas
1620 xmake_file=m68k/x-mot3300
1621 if test x$gnu_ld = xyes
1623 tmake_file=m68k/t-mot3300-gld
1625 tmake_file=m68k/t-mot3300
1629 gdb_needs_out_file_path=yes
1630 extra_parts="crt0.o mcrt0.o"
1631 extra_headers=math-68881.h
1634 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1635 tm_file=m68k/tower-as.h
1636 xm_defines="USG SVR3"
1637 xmake_file=m68k/x-tower
1638 extra_parts="crtbegin.o crtend.o"
1639 extra_headers=math-68881.h
1642 tm_file=m68k/plexus.h
1643 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1646 extra_headers=math-68881.h
1650 xm_file="xm-alloca.h ${xm_file}"
1652 extra_headers=math-68881.h
1655 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1656 xm_defines="USG unos"
1657 xmake_file=m68k/x-crds
1660 extra_headers=math-68881.h
1662 m68k-cbm-sysv4*) # Commodore variant of V.4.
1664 xm_file="xm-alloca.h ${xm_file}"
1665 xm_defines="USG FULL_PROTOTYPES"
1666 xmake_file=m68k/x-amix
1668 extra_parts="crtbegin.o crtend.o"
1669 extra_headers=math-68881.h
1673 tm_file=m68k/ccur-GAS.h
1674 xmake_file=m68k/x-ccur
1675 extra_headers=math-68881.h
1679 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1680 tm_file=m68k/hp3bsd44.h
1681 xmake_file=m68k/x-hp3bsd44
1683 extra_headers=math-68881.h
1686 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1687 tm_file=m68k/hp3bsd.h
1689 extra_headers=math-68881.h
1693 if test x$with_fp = xno
1695 tm_file=m68k/isi-nfp.h
1701 extra_headers=math-68881.h
1703 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1704 xm_file="xm_alloca.h ${xm_file}"
1705 xm_defines="USG NO_SYS_SIGLIST"
1706 if test x$gas = xyes
1708 xmake_file=m68k/x-hp320g
1709 tm_file=m68k/hp320g.h
1711 xmake_file=m68k/x-hp320
1712 tm_file=m68k/hpux7.h
1714 install_headers_dir=install-headers-cpio
1716 extra_headers=math-68881.h
1719 m68k-hp-hpux*) # HP 9000 series 300
1720 xm_file="xm_alloca.h ${xm_file}"
1721 xm_defines="USG NO_SYS_SIGLIST"
1722 if test x$gas = xyes
1724 xmake_file=m68k/x-hp320g
1725 tm_file=m68k/hp320g.h
1727 xmake_file=m68k/x-hp320
1728 tm_file=m68k/hp320.h
1730 install_headers_dir=install-headers-cpio
1732 extra_headers=math-68881.h
1736 tm_file=m68k/sun3mach.h
1738 extra_headers=math-68881.h
1742 if test x$gas = xyes
1744 tm_file=m68k/news3gas.h
1746 tm_file=m68k/news3.h
1749 extra_headers=math-68881.h
1752 m68k-sony-bsd* | m68k-sony-newsos*)
1753 if test x$gas = xyes
1755 tm_file=m68k/newsgas.h
1760 extra_headers=math-68881.h
1763 m68k-next-nextstep2*)
1764 tm_file=m68k/next21.h
1765 xm_file="m68k/xm-next.h ${xm_file}"
1766 tmake_file=m68k/t-next
1767 xmake_file=m68k/x-next
1768 extra_objs=nextstep.o
1769 extra_headers=math-68881.h
1773 m68k-next-nextstep3*)
1775 xm_file="m68k/xm-next.h ${xm_file}"
1776 tmake_file=m68k/t-next
1777 xmake_file=m68k/x-next
1778 extra_objs=nextstep.o
1779 extra_headers=math-68881.h
1782 if test x$enable_threads = xyes; then
1787 if test x$with_fp = xno
1789 tm_file=m68k/sun3n3.h
1791 tm_file=m68k/sun3o3.h
1795 extra_headers=math-68881.h
1797 m68k-sun-sunos*) # For SunOS 4 (the default).
1798 if test x$with_fp = xno
1800 tm_file=m68k/sun3n.h
1806 extra_headers=math-68881.h
1809 tm_file=m68k/vxm68k.h
1810 tmake_file=m68k/t-vxworks68
1811 extra_headers=math-68881.h
1812 thread_file='vxworks'
1816 tmake_file=m68k/t-m68kbare
1817 tm_file="m68k/m68k-aout.h libgloss.h"
1818 extra_headers=math-68881.h
1822 tmake_file=m68k/t-m68kbare
1823 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1824 extra_headers=math-68881.h
1828 if test x$gas = xyes
1832 tm_file=m68k/lynx-ng.h
1834 xm_file=m68k/xm-lynx.h
1836 tmake_file=m68k/t-lynx
1837 extra_headers=math-68881.h
1841 tm_file=m68k/netbsd.h
1842 # On NetBSD, the headers are already okay, except for math.h.
1843 fixincludes=fixinc.wrap
1847 m68k-*-sysv3*) # Motorola m68k's running system V.3
1848 xm_file="xm-alloca.h ${xm_file}"
1850 xmake_file=m68k/x-m68kv
1851 extra_parts="crtbegin.o crtend.o"
1852 extra_headers=math-68881.h
1855 m68k-*-sysv4*) # Motorola m68k's running system V.4
1856 tm_file=m68k/m68kv4.h
1857 xm_file="xm-alloca.h ${xm_file}"
1860 extra_parts="crtbegin.o crtend.o"
1861 extra_headers=math-68881.h
1864 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1867 tm_file=m68k/linux-aout.h
1868 tmake_file="t-linux-aout m68k/t-linux-aout"
1869 fixincludes=Makefile.in # The headers are ok already.
1870 extra_headers=math-68881.h
1874 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1875 # with ELF format using the
1876 # GNU/Linux C library 5
1878 tm_file=m68k/linux.h
1879 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1880 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1881 fixincludes=Makefile.in # The headers are ok already.
1882 extra_headers=math-68881.h
1886 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1887 # with ELF format using glibc 2
1888 # aka the GNU/Linux C library 6.
1890 tm_file=m68k/linux.h
1891 tmake_file="t-linux m68k/t-linux"
1892 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1893 fixincludes=Makefile.in # The headers are ok already.
1894 extra_headers=math-68881.h
1897 if test x$enable_threads = xyes; then
1902 tmake_file=m68k/t-m68kbare
1903 tm_file=m68k/m68k-psos.h
1904 extra_headers=math-68881.h
1908 tmake_file="m68k/t-m68kbare t-rtems"
1909 tm_file=m68k/rtems.h
1910 extra_headers=math-68881.h
1917 tm_file=m88k/dguxbcs.h
1918 tmake_file=m88k/t-dguxbcs
1922 tmake_file=m88k/t-dgux
1925 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1926 xmake_file=m88k/x-dgux
1927 if test x$gas = xyes
1929 tmake_file=m88k/t-dgux-gas
1931 fixincludes=fixinc.dgux
1933 m88k-dolphin-sysv3*)
1934 tm_file=m88k/dolph.h
1935 extra_parts="crtbegin.o crtend.o"
1936 xm_file="m88k/xm-sysv3.h ${xm_file}"
1937 xmake_file=m88k/x-dolph
1938 if test x$gas = xyes
1940 tmake_file=m88k/t-m88k-gas
1943 m88k-tektronix-sysv3)
1944 tm_file=m88k/tekXD88.h
1945 extra_parts="crtbegin.o crtend.o"
1946 xm_file="m88k/xm-sysv3.h ${xm_file}"
1947 xmake_file=m88k/x-tekXD88
1948 if test x$gas = xyes
1950 tmake_file=m88k/t-m88k-gas
1954 tm_file=m88k/m88k-aout.h
1957 tm_file=m88k/m88k-coff.h
1958 tmake_file=m88k/t-bug
1962 extra_parts="crtbegin.o crtend.o"
1963 if test x$gas = xyes
1965 tmake_file=m88k/t-luna-gas
1967 tmake_file=m88k/t-luna
1971 tm_file=m88k/sysv3.h
1972 extra_parts="crtbegin.o crtend.o"
1973 xm_file="m88k/xm-sysv3.h ${xm_file}"
1974 xmake_file=m88k/x-sysv3
1975 if test x$gas = xyes
1977 tmake_file=m88k/t-m88k-gas
1981 tm_file=m88k/sysv4.h
1982 extra_parts="crtbegin.o crtend.o"
1983 xmake_file=m88k/x-sysv4
1984 tmake_file=m88k/t-sysv4
1986 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1987 tm_file=mips/iris6.h
1988 xm_file=mips/xm-iris6.h
1989 fixincludes=fixinc.irix
1990 xmake_file=mips/x-iris6
1991 tmake_file=mips/t-iris6
1992 # if test x$enable_threads = xyes; then
1993 # thread_file='irix'
1997 tm_file="mips/elf.h libgloss.h"
1998 tmake_file=mips/t-ecoff
2001 extra_parts="crtbegin.o crtend.o"
2002 # thread_file='vxworks'
2004 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2005 tm_file="mips/iris6.h mips/cross64.h"
2007 xm_file="mips/xm-iris5.h"
2008 fixincludes=Makefile.in
2009 xmake_file=mips/x-iris
2010 tmake_file=mips/t-cross64
2011 # See comment in mips/iris[56].h files.
2013 # if test x$enable_threads = xyes; then
2014 # thread_file='irix'
2018 if test x$gas = xyes
2020 if test x$stabs = xyes
2022 tm_file=mips/iris5gdb.h
2024 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2027 tm_file=mips/sni-svr4.h
2030 xmake_file=mips/x-sni-svr4
2031 tmake_file=mips/t-mips-gas
2032 if test x$gnu_ld != xyes
2037 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2038 if test x$gas = xyes
2040 tm_file="mips/iris5.h mips/iris5gas.h"
2041 if test x$stabs = xyes
2043 tm_file="${tm_file} dbx.h"
2046 tm_file=mips/iris5.h
2049 xm_file="mips/xm-iris5.h"
2050 fixincludes=fixinc.irix
2051 xmake_file=mips/x-iris
2052 # mips-tfile doesn't work yet
2053 tmake_file=mips/t-mips-gas
2054 # See comment in mips/iris5.h file.
2056 # if test x$enable_threads = xyes; then
2057 # thread_file='irix'
2060 mips-sgi-irix4loser*) # Mostly like a MIPS.
2061 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2062 if test x$stabs = xyes; then
2063 tm_file="${tm_file} dbx.h"
2066 xmake_file=mips/x-iris
2067 if test x$gas = xyes
2069 tmake_file=mips/t-mips-gas
2071 extra_passes="mips-tfile mips-tdump"
2073 if test x$gnu_ld != xyes
2077 # if test x$enable_threads = xyes; then
2078 # thread_file='irix'
2081 mips-sgi-irix4*) # Mostly like a MIPS.
2082 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2083 if test x$stabs = xyes; then
2084 tm_file="${tm_file} dbx.h"
2087 xmake_file=mips/x-iris
2088 if test x$gas = xyes
2090 tmake_file=mips/t-mips-gas
2092 extra_passes="mips-tfile mips-tdump"
2094 if test x$gnu_ld != xyes
2098 # if test x$enable_threads = xyes; then
2099 # thread_file='irix'
2102 mips-sgi-*) # Mostly like a MIPS.
2103 tm_file="mips/iris3.h ${tm_file}"
2104 if test x$stabs = xyes; then
2105 tm_file="${tm_file} dbx.h"
2108 xmake_file=mips/x-iris3
2109 if test x$gas = xyes
2111 tmake_file=mips/t-mips-gas
2113 extra_passes="mips-tfile mips-tdump"
2115 if test x$gnu_ld != xyes
2120 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2121 tm_file="mips/osfrose.h ${tm_file}"
2122 xmake_file=mips/x-osfrose
2123 tmake_file=mips/t-osfrose
2124 extra_objs=halfpic.o
2127 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2128 tm_file=mips/dec-osf1.h
2129 if test x$stabs = xyes; then
2130 tm_file="${tm_file} dbx.h"
2132 xmake_file=mips/x-dec-osf1
2133 if test x$gas = xyes
2135 tmake_file=mips/t-mips-gas
2137 tmake_file=mips/t-ultrix
2138 extra_passes="mips-tfile mips-tdump"
2140 if test x$gnu_ld != xyes
2145 mips-dec-bsd*) # Decstation running 4.4 BSD
2146 tm_file=mips/dec-bsd.h
2148 if test x$gas = xyes
2150 tmake_file=mips/t-mips-gas
2152 tmake_file=mips/t-ultrix
2153 extra_passes="mips-tfile mips-tdump"
2155 if test x$gnu_ld != xyes
2160 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2161 tm_file=mips/netbsd.h
2162 # On NetBSD, the headers are already okay, except for math.h.
2163 fixincludes=fixinc.wrap
2166 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2167 tm_file="mips/news4.h ${tm_file}"
2168 if test x$stabs = xyes; then
2169 tm_file="${tm_file} dbx.h"
2171 if test x$gas = xyes
2173 tmake_file=mips/t-mips-gas
2175 extra_passes="mips-tfile mips-tdump"
2177 if test x$gnu_ld != xyes
2181 xmake_file=mips/x-sony
2183 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2184 # That is based on svr4.
2185 # t-svr4 is not right because this system doesn't use ELF.
2186 tm_file="mips/news5.h ${tm_file}"
2187 if test x$stabs = xyes; then
2188 tm_file="${tm_file} dbx.h"
2190 xm_file="xm-siglist.h ${xm_file}"
2192 if test x$gas = xyes
2194 tmake_file=mips/t-mips-gas
2196 extra_passes="mips-tfile mips-tdump"
2198 if test x$gnu_ld != xyes
2203 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2204 tm_file="mips/svr4-5.h mips/svr4-t.h"
2205 if test x$stabs = xyes; then
2206 tm_file="${tm_file} dbx.h"
2208 xm_file="xm-siglist.h ${xm_file}"
2210 xmake_file=mips/x-sysv
2211 if test x$gas = xyes
2213 tmake_file=mips/t-mips-gas
2214 extra_parts="crtbegin.o crtend.o"
2216 tmake_file=mips/t-mips
2217 extra_passes="mips-tfile mips-tdump"
2219 if test x$gnu_ld != xyes
2224 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2225 tm_file="mips/ultrix.h ${tm_file}"
2226 if test x$stabs = xyes; then
2227 tm_file="${tm_file} dbx.h"
2229 xmake_file=mips/x-ultrix
2230 if test x$gas = xyes
2232 tmake_file=mips/t-mips-gas
2234 tmake_file=mips/t-ultrix
2235 extra_passes="mips-tfile mips-tdump"
2237 if test x$gnu_ld != xyes
2243 mips-*-riscos[56789]bsd*)
2245 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2246 if test x$stabs = xyes; then
2247 tm_file="${tm_file} dbx.h"
2249 if test x$gas = xyes
2251 tmake_file=mips/t-bsd-gas
2253 tmake_file=mips/t-bsd
2254 extra_passes="mips-tfile mips-tdump"
2256 if test x$gnu_ld != xyes
2262 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2264 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2265 if test x$stabs = xyes; then
2266 tm_file="${tm_file} dbx.h"
2268 if test x$gas = xyes
2270 tmake_file=mips/t-bsd-gas
2272 tmake_file=mips/t-bsd
2273 extra_passes="mips-tfile mips-tdump"
2275 if test x$gnu_ld != xyes
2281 mips-*-riscos[56789]sysv4*)
2283 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2284 if test x$stabs = xyes; then
2285 tm_file="${tm_file} dbx.h"
2287 xm_file="xm-siglist.h ${xm_file}"
2288 xmake_file=mips/x-sysv
2289 if test x$gas = xyes
2291 tmake_file=mips/t-svr4-gas
2293 tmake_file=mips/t-svr4
2294 extra_passes="mips-tfile mips-tdump"
2296 if test x$gnu_ld != xyes
2302 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2304 tm_file="mips/svr4-4.h ${tm_file}"
2305 if test x$stabs = xyes; then
2306 tm_file="${tm_file} dbx.h"
2309 xmake_file=mips/x-sysv
2310 if test x$gas = xyes
2312 tmake_file=mips/t-svr4-gas
2314 tmake_file=mips/t-svr4
2315 extra_passes="mips-tfile mips-tdump"
2317 if test x$gnu_ld != xyes
2323 mips-*-riscos[56789]sysv*)
2325 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2326 if test x$stabs = xyes; then
2327 tm_file="${tm_file} dbx.h"
2330 xmake_file=mips/x-sysv
2331 if test x$gas = xyes
2333 tmake_file=mips/t-svr3-gas
2335 tmake_file=mips/t-svr3
2336 extra_passes="mips-tfile mips-tdump"
2338 if test x$gnu_ld != xyes
2343 mips-*-sysv* | mips-*-riscos*sysv*)
2344 tm_file="mips/svr3-4.h ${tm_file}"
2345 if test x$stabs = xyes; then
2346 tm_file="${tm_file} dbx.h"
2349 xmake_file=mips/x-sysv
2350 if test x$gas = xyes
2352 tmake_file=mips/t-svr3-gas
2354 tmake_file=mips/t-svr3
2355 extra_passes="mips-tfile mips-tdump"
2357 if test x$gnu_ld != xyes
2363 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2365 tm_file=mips/mips-5.h
2366 if test x$stabs = xyes; then
2367 tm_file="${tm_file} dbx.h"
2369 if test x$gas = xyes
2371 tmake_file=mips/t-mips-gas
2373 extra_passes="mips-tfile mips-tdump"
2375 if test x$gnu_ld != xyes
2383 tm_file=mips/ecoffl.h
2384 if test x$stabs = xyes; then
2385 tm_file="${tm_file} dbx.h"
2387 tmake_file=mips/t-ecoff
2390 tm_file="gofast.h mips/ecoff.h"
2391 if test x$stabs = xyes; then
2392 tm_file="${tm_file} dbx.h"
2394 tmake_file=mips/t-ecoff
2397 tm_file="mips/elfl.h libgloss.h"
2398 tmake_file=mips/t-ecoff
2401 tm_file="mips/elf.h libgloss.h"
2402 tmake_file=mips/t-ecoff
2405 tm_file="mips/elfl64.h libgloss.h"
2406 tmake_file=mips/t-ecoff
2408 mips64orionel-*-elf*)
2409 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2410 tmake_file=mips/t-ecoff
2413 tm_file="mips/elf64.h libgloss.h"
2414 tmake_file=mips/t-ecoff
2417 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2418 tmake_file=mips/t-ecoff
2420 mips64orion-*-rtems*)
2421 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2422 tmake_file="mips/t-ecoff t-rtems"
2425 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2426 tmake_file=mips/t-r3900
2429 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2430 tmake_file=mips/t-r3900
2431 # FIXME mips-elf should be fixed to use crtstuff.
2434 mips-*-*) # Default MIPS RISC-OS 4.0.
2435 if test x$stabs = xyes; then
2436 tm_file="${tm_file} dbx.h"
2438 if test x$gas = xyes
2440 tmake_file=mips/t-mips-gas
2442 extra_passes="mips-tfile mips-tdump"
2444 if test x$gnu_ld != xyes
2451 tm_file="mn10200/mn10200.h"
2452 if test x$stabs = xyes
2454 tm_file="${tm_file} dbx.h"
2460 tm_file="mn10300/mn10300.h"
2461 if test x$stabs = xyes
2463 tm_file="${tm_file} dbx.h"
2468 tm_file=ns32k/encore.h
2472 tm_file=ns32k/sequent.h
2476 tm_file=ns32k/tek6100.h
2480 tm_file=ns32k/tek6200.h
2483 # This has not been updated to GCC 2.
2486 # xmake_file=ns32k/x-genix
2487 # tm_file=ns32k/genix.h
2491 tm_file=ns32k/merlin.h
2495 tm_file=ns32k/pc532-mach.h
2499 tm_file=ns32k/pc532-min.h
2500 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2505 tm_file=ns32k/netbsd.h
2506 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2507 # On NetBSD, the headers are already okay, except for math.h.
2508 fixincludes=fixinc.wrap
2512 tm_file="${tm_file} pdp11/2bsd.h"
2518 xmake_file=pyr/x-pyr
2525 xmake_file=romp/x-mach
2530 tm_file=rs6000/beos.h
2531 xm_file=rs6000/xm-beos.h
2532 tmake_file=rs6000/t-beos
2533 xmake_file=rs6000/x-beos
2535 powerpc-*-sysv* | powerpc-*-elf*)
2536 tm_file=rs6000/sysv4.h
2537 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2538 xm_defines="USG POSIX"
2539 extra_headers=ppc-asm.h
2540 if test x$gas = xyes
2542 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2544 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2546 xmake_file=rs6000/x-sysv4
2549 tm_file=rs6000/eabiaix.h
2550 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2551 fixincludes=Makefile.in
2552 extra_headers=ppc-asm.h
2555 tm_file=rs6000/eabisim.h
2556 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2557 fixincludes=Makefile.in
2558 extra_headers=ppc-asm.h
2561 tm_file=rs6000/eabi.h
2562 if test x$gas = xyes
2564 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2566 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2568 fixincludes=Makefile.in
2569 extra_headers=ppc-asm.h
2572 tm_file=rs6000/rtems.h
2573 if test x$gas = xyes
2575 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2577 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2579 fixincludes=Makefile.in
2580 extra_headers=ppc-asm.h
2582 powerpc-*-linux-gnulibc1)
2583 tm_file=rs6000/linux.h
2584 xm_file=rs6000/xm-sysv4.h
2585 out_file=rs6000/rs6000.c
2586 if test x$gas = xyes
2588 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2590 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2593 fixincludes=Makefile.in
2594 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2595 extra_headers=ppc-asm.h
2596 if test x$enable_threads = xyes; then
2600 powerpc-*-linux-gnu*)
2601 tm_file=rs6000/linux.h
2602 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2603 xm_defines="USG ${xm_defines}"
2604 out_file=rs6000/rs6000.c
2605 if test x$gas = xyes
2607 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2609 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2612 fixincludes=Makefile.in
2613 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2614 extra_headers=ppc-asm.h
2615 if test x$enable_threads = xyes; then
2619 powerpc-wrs-vxworks*)
2621 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2622 xm_defines="USG POSIX"
2623 tm_file=rs6000/vxppc.h
2624 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2625 extra_headers=ppc-asm.h
2626 thread_file='vxworks'
2628 powerpcle-*-sysv* | powerpcle-*-elf*)
2629 tm_file=rs6000/sysv4le.h
2630 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2631 xm_defines="USG POSIX"
2632 if test x$gas = xyes
2634 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2636 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2638 xmake_file=rs6000/x-sysv4
2639 extra_headers=ppc-asm.h
2641 powerpcle-*-eabisim*)
2642 tm_file=rs6000/eabilesim.h
2643 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2644 fixincludes=Makefile.in
2645 extra_headers=ppc-asm.h
2648 tm_file=rs6000/eabile.h
2649 if test x$gas = xyes
2651 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2653 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2655 fixincludes=Makefile.in
2656 extra_headers=ppc-asm.h
2658 powerpcle-*-winnt* )
2659 tm_file=rs6000/win-nt.h
2660 tmake_file=rs6000/t-winnt
2662 fixincludes=Makefile.in
2663 if test x$enable_threads = xyes; then
2666 extra_headers=ppc-asm.h
2668 powerpcle-*-pe | powerpcle-*-cygwin32)
2669 tm_file=rs6000/cygwin32.h
2670 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2671 tmake_file=rs6000/t-winnt
2672 xmake_file=rs6000/x-cygwin32
2674 fixincludes=Makefile.in
2675 if test x$enable_threads = xyes; then
2679 extra_headers=ppc-asm.h
2681 powerpcle-*-solaris2*)
2682 tm_file=rs6000/sol2.h
2683 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2684 xm_defines="USG POSIX"
2685 if test x$gas = xyes
2687 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2689 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2691 xmake_file=rs6000/x-sysv4
2696 fixincludes=fixinc.svr4;;
2698 fixincludes=fixinc.wrap;;
2700 extra_headers=ppc-asm.h
2703 rs6000-ibm-aix3.[01]*)
2705 tm_file=rs6000/aix31.h
2706 xmake_file=rs6000/x-aix31
2710 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2712 tm_file=rs6000/aix3newas.h
2713 if test x$host != x$target
2715 tmake_file=rs6000/t-xnewas
2717 tmake_file=rs6000/t-newas
2722 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2724 tm_file=rs6000/aix41.h
2725 if test x$host != x$target
2727 tmake_file=rs6000/t-xnewas
2729 tmake_file=rs6000/t-newas
2731 xmake_file=rs6000/x-aix41
2735 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2737 tm_file=rs6000/aix43.h
2738 if test x$host != x$target
2740 tmake_file=rs6000/t-xaix43
2742 tmake_file=rs6000/t-aix43
2744 xmake_file=rs6000/x-aix43
2748 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2750 tm_file=rs6000/aix43.h
2751 if test x$host != x$target
2753 tmake_file=rs6000/t-xaix43
2755 tmake_file=rs6000/t-aix43
2757 xmake_file=rs6000/x-aix43
2767 tm_file=rs6000/mach.h
2768 xm_file="${xm_file} rs6000/xm-mach.h"
2769 xmake_file=rs6000/x-mach
2773 tm_file=rs6000/lynx.h
2774 xm_file=rs6000/xm-lynx.h
2775 tmake_file=rs6000/t-rs6000
2776 xmake_file=rs6000/x-lynx
2784 tmake_file="sh/t-sh t-rtems"
2785 tm_file=sh/rtemself.h
2789 tmake_file="sh/t-sh t-rtems"
2798 xm_file="xm-alloca.h ${xm_file}"
2801 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2802 tm_file=sparc/vxsparc.h
2803 tmake_file=sparc/t-vxsparc
2805 thread_file='vxworks'
2808 tmake_file=sparc/t-sparcbare
2809 tm_file="sparc/aout.h libgloss.h"
2812 tm_file=sparc/netbsd.h
2813 # On NetBSD, the headers are already okay, except for math.h.
2814 fixincludes=fixinc.wrap
2822 tmake_file=sparc/t-elf
2823 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2827 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2828 xm_file="${xm_file} sparc/xm-linux.h"
2829 tm_file=sparc/linux-aout.h
2831 fixincludes=Makefile.in #On Linux, the headers are ok already.
2834 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2835 xm_file="${xm_file} sparc/xm-linux.h"
2837 tm_file=sparc/linux.h
2838 tmake_file="t-linux t-linux-gnulibc1"
2839 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2840 fixincludes=Makefile.in #On Linux, the headers are ok already.
2843 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2844 xm_file="${xm_file} sparc/xm-linux.h"
2846 tm_file=sparc/linux.h
2847 tmake_file="t-linux"
2848 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2849 fixincludes=Makefile.in #On Linux, the headers are ok already.
2851 if test x$enable_threads = xyes; then
2856 if test x$gas = xyes
2858 tm_file=sparc/lynx.h
2860 tm_file=sparc/lynx-ng.h
2862 xm_file=sparc/xm-lynx.h
2863 tmake_file=sparc/t-sunos41
2867 tmake_file="sparc/t-sparcbare t-rtems"
2868 tm_file=sparc/rtems.h
2870 sparcv9-*-solaris2*)
2871 tm_file=sparc/sol2-sld-64.h
2872 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2873 xm_defines="USG POSIX"
2874 tmake_file=sparc/t-sol2
2875 xmake_file=sparc/x-sysv4
2876 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2877 fixincludes=fixinc.wrap
2879 if [ x${enable_threads} = x ]; then
2880 enable_threads=$have_pthread_h
2881 if [ x${enable_threads} = x ]; then
2882 enable_threads=$have_thread_h
2885 if [ x${enable_threads} = xyes ]; then
2886 if [ x${have_pthread_h} = xyes ]; then
2889 thread_file='solaris'
2894 if test x$gnu_ld = xyes
2896 tm_file=sparc/sol2.h
2898 tm_file=sparc/sol2-sld.h
2900 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2901 xm_defines="USG POSIX"
2902 tmake_file=sparc/t-sol2
2903 xmake_file=sparc/x-sysv4
2904 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2909 fixincludes=fixinc.svr4;;
2911 fixincludes=fixinc.wrap;;
2914 if test x${enable_threads} = x; then
2915 enable_threads=$have_pthread_h
2916 if test x${enable_threads} = x; then
2917 enable_threads=$have_thread_h
2920 if test x${enable_threads} = xyes; then
2921 if test x${have_pthread_h} = xyes; then
2924 thread_file='solaris'
2929 tm_file=sparc/sunos4.h
2930 tmake_file=sparc/t-sunos40
2934 tm_file=sparc/sunos4.h
2935 tmake_file=sparc/t-sunos41
2937 if test x$gas = xyes; then
2938 tm_file="${tm_file} sparc/sun4gas.h"
2942 tm_file=sparc/sun4o3.h
2946 tm_file=sparc/sysv4.h
2947 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2948 xm_defines="USG POSIX"
2950 xmake_file=sparc/x-sysv4
2951 extra_parts="crtbegin.o crtend.o"
2954 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2955 xm_defines="USG POSIX"
2956 tm_file=sparc/vxsim.h
2957 tmake_file=sparc/t-vxsparc
2958 xmake_file=sparc/x-sysv4
2961 tm_file="sparc/splet.h libgloss.h"
2962 tmake_file=sparc/t-splet
2965 tm_file="sparc/litecoff.h libgloss.h"
2966 tmake_file=sparc/t-sparclite
2969 tm_file="sparc/lite.h aoutos.h libgloss.h"
2970 tmake_file=sparc/t-sparclite
2973 tmake_file=sparc/t-sp64
2974 tm_file=sparc/sp64-aout.h
2977 tmake_file=sparc/t-sp64
2978 tm_file=sparc/sp64-elf.h
2979 extra_parts="crtbegin.o crtend.o"
2981 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2982 tmake_file=sparc/t-sp64
2983 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2984 tm_file=sparc/linux64.h
2986 fixincludes=Makefile.in # The headers are ok already.
2989 # This hasn't been upgraded to GCC 2.
2990 # tahoe-harris-*) # Harris tahoe, using COFF.
2991 # tm_file=tahoe/harris.h
2993 # tahoe-*-bsd*) # tahoe running BSD
2995 thumb-*-coff* | thumbel-*-coff*)
2997 out_file=arm/thumb.c
2998 xm_file=arm/xm-thumb.h
2999 md_file=arm/thumb.md
3000 tmake_file=arm/t-thumb
3001 fixincludes=Makefile.in # There is nothing to fix
3003 # This hasn't been upgraded to GCC 2.
3010 tm_file="v850/v850.h"
3011 xm_file="v850/xm-v850.h"
3012 tmake_file=v850/t-v850
3013 if test x$stabs = xyes
3015 tm_file="${tm_file} dbx.h"
3019 vax-*-bsd*) # vaxen running BSD
3023 vax-*-sysv*) # vaxen running system V
3024 tm_file="${tm_file} vax/vaxv.h"
3029 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3030 # On NetBSD, the headers are already okay, except for math.h.
3031 fixincludes=fixinc.wrap
3035 vax-*-ultrix*) # vaxen running ultrix
3036 tm_file="${tm_file} vax/ultrix.h"
3040 vax-*-vms*) # vaxen running VMS
3041 xm_file=vax/xm-vms.h
3045 vax-*-*) # vax default entry
3049 xm_file="${xm_file} xm-svr3"
3053 echo "Configuration $machine not supported" 1>&2
3060 ;; # Existing GNU/Linux systems do not use the GNU setup.
3062 # On the GNU system, the setup is just about the same on
3063 # each different CPU. The specific machines that GNU
3064 # supports are matched above and just set $cpu_type.
3065 xm_file="xm-gnu.h ${xm_file}"
3066 tm_file=${cpu_type}/gnu.h
3067 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3068 # GNU always uses ELF.
3070 # GNU tools are the only tools.
3073 # On GNU, the headers are already okay.
3074 fixincludes=Makefile.in
3075 xmake_file=x-linux # These details are the same as Linux.
3076 tmake_file=t-gnu # These are not.
3079 fixincludes=fixinc.svr4
3080 xmake_try_sysv=x-sysv
3081 install_headers_dir=install-headers-cpio
3084 install_headers_dir=install-headers-cpio
3088 # Distinguish i[34567]86
3089 # Also, do not run mips-tfile on MIPS if using gas.
3090 # Process --with-cpu= for PowerPC/rs6000
3091 target_cpu_default2=
3094 target_cpu_default2=1
3097 target_cpu_default2=2
3099 i686-*-* | i786-*-*)
3100 target_cpu_default2=3
3105 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3108 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3111 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3114 target_cpu_default2="MASK_CPU_EV5"
3118 if test x$gas = xyes
3120 if test "$target_cpu_default2" = ""
3122 target_cpu_default2="MASK_GAS"
3124 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3129 case "x$with_cpu" in
3132 target_cpu_default2="TARGET_CPU_generic"
3135 # Distinguish cores, and major variants
3136 # arm7m doesn't exist, but D & I don't affect code
3137 xarm[23678] | xarm250 | xarm[67][01]0 \
3138 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3139 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3140 | xstrongarm | xstrongarm110)
3141 target_cpu_default2="TARGET_CPU_$with_cpu"
3145 echo "--with-cpu must be passed a value" 1>&2
3150 if test x$pass2done = xyes
3152 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3159 mips*-*-ecoff* | mips*-*-elf*)
3160 if test x$gas = xyes
3162 if test x$gnu_ld = xyes
3164 target_cpu_default2=20
3166 target_cpu_default2=16
3171 if test x$gas = xyes
3173 target_cpu_default2=16
3176 powerpc*-*-* | rs6000-*-*)
3177 case "x$with_cpu" in
3181 xcommon | xpower | xpower2 | xpowerpc | xrios \
3182 | xrios1 | xrios2 | xrsc | xrsc1 \
3183 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3184 | x403 | x505 | x801 | x821 | x823 | x860)
3185 target_cpu_default2="\"$with_cpu\""
3189 echo "--with-cpu must be passed a value" 1>&2
3194 if test x$pass2done = xyes
3196 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3203 case ".$with_cpu" in
3205 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3207 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3208 target_cpu_default2="TARGET_CPU_$with_cpu"
3211 if test x$pass2done = xyes
3213 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3221 if test "$target_cpu_default2" != ""
3223 if test "$target_cpu_default" != ""
3225 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3227 target_cpu_default=$target_cpu_default2
3231 # No need for collect2 if we have the GNU linker.
3232 # Actually, there is now; GNU ld doesn't handle the EH info or
3233 # collecting for shared libraries.
3240 # Save data on machine being used to compile GCC in build_xm_file.
3241 # Save data on host machine in vars host_xm_file and host_xmake_file.
3242 if test x$pass1done = x
3244 if test x"$xm_file" = x
3245 then build_xm_file=$cpu_type/xm-$cpu_type.h
3246 else build_xm_file=$xm_file
3248 build_xm_defines=$xm_defines
3249 build_install_headers_dir=$install_headers_dir
3250 build_exeext=$exeext
3253 if test x$pass2done = x
3255 if test x"$xm_file" = x
3256 then host_xm_file=$cpu_type/xm-$cpu_type.h
3257 else host_xm_file=$xm_file
3259 host_xm_defines=$xm_defines
3260 if test x"$xmake_file" = x
3261 then xmake_file=$cpu_type/x-$cpu_type
3263 host_xmake_file="$xmake_file"
3264 host_truncate_target=$truncate_target
3265 host_extra_gcc_objs=$extra_gcc_objs
3266 host_extra_objs=$extra_host_objs
3273 extra_objs="${host_extra_objs} ${extra_objs}"
3275 # Default the target-machine variables that were not explicitly set.
3276 if test x"$tm_file" = x
3277 then tm_file=$cpu_type/$cpu_type.h; fi
3279 if test x$extra_headers = x
3280 then extra_headers=; fi
3282 if test x"$xm_file" = x
3283 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3285 if test x$md_file = x
3286 then md_file=$cpu_type/$cpu_type.md; fi
3288 if test x$out_file = x
3289 then out_file=$cpu_type/$cpu_type.c; fi
3291 if test x"$tmake_file" = x
3292 then tmake_file=$cpu_type/t-$cpu_type
3295 if test x$float_format = x
3296 then float_format=i64
3299 if test x$enable_haifa = x
3302 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3307 # Say what files are being used for the output code and MD file.
3308 echo "Using \`$srcdir/config/$out_file' to output insns."
3309 echo "Using \`$srcdir/config/$md_file' as machine description file."
3312 for f in $tm_file; do
3315 if test $count = ax; then
3316 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3318 echo "Using the following target machine macro files:"
3319 for f in $tm_file; do
3320 echo " $srcdir/config/$f"
3325 for f in $host_xm_file; do
3328 if test $count = ax; then
3329 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3331 echo "Using the following host machine macro files:"
3332 for f in $host_xm_file; do
3333 echo " $srcdir/config/$f"
3337 if test "$host_xm_file" != "$build_xm_file"; then
3339 for f in $build_xm_file; do
3342 if test $count = ax; then
3343 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3345 echo "Using the following build machine macro files:"
3346 for f in $build_xm_file; do
3347 echo " $srcdir/config/$f"
3352 if test x$thread_file = x; then
3353 if test x$target_thread_file != x; then
3354 thread_file=$target_thread_file
3356 thread_file='single'
3360 # Set up the header files.
3361 # $links is the list of header files to create.
3362 # $vars is the list of shell variables with file names to include.
3363 # auto-host.h is the file containing items generated by autoconf and is
3364 # the first file included by config.h.
3366 host_xm_file="auto-host.h ${host_xm_file}"
3368 # If host=build, it is correct to have hconfig include auto-host.h
3369 # as well. If host!=build, we are in error and need to do more
3370 # work to find out the build config parameters.
3371 if test x$host = x$build
3373 build_xm_file="auto-host.h ${build_xm_file}"
3375 # We create a subdir, then run autoconf in the subdir.
3376 # To prevent recursion we set host and build for the new
3377 # invocation of configure to the build for this invocation
3384 /*) realsrcdir=${srcdir};;
3385 *) realsrcdir=../${srcdir};;
3387 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3388 --target=$target --host=$build --build=$build
3390 # We just finished tests for the build machine, so rename
3391 # the file auto-build.h in the gcc directory.
3392 mv auto-host.h ../auto-build.h
3395 build_xm_file="auto-build.h ${build_xm_file}"
3398 vars="host_xm_file tm_file xm_file build_xm_file"
3399 links="config.h tm.h tconfig.h hconfig.h"
3400 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3403 if test -f config.status; then mv -f config.status config.bak; fi
3406 while test -n "$vars"
3408 set $vars; var=$1; shift; vars=$*
3409 set $links; link=$1; shift; links=$*
3410 set $defines; define=$1; shift; defines=$*
3414 # Define TARGET_CPU_DEFAULT if the system wants one.
3415 # This substitutes for lots of *.h files.
3416 if test "$target_cpu_default" != "" -a $link = tm.h
3418 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3421 for file in `eval echo '$'$var`; do
3422 echo "#include \"$file\"" >>$link
3425 for def in `eval echo '$'$define`; do
3426 echo "#ifndef $def" >>$link
3427 echo "#define $def" >>$link
3428 echo "#endif" >>$link
3432 # Truncate the target if necessary
3433 if test x$host_truncate_target != x; then
3434 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3437 # Get the version trigger filename from the toplevel
3438 if test "${with_gcc_version_trigger+set}" = set; then
3439 gcc_version_trigger=$with_gcc_version_trigger
3441 gcc_version_trigger=${srcdir}/version.c
3444 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3447 # Get an absolute path to the GCC top-level source directory
3453 # Conditionalize the makefile for this host machine.
3454 # Make-host contains the concatenation of all host makefile fragments
3455 # [there can be more than one]. This file is built by configure.frag.
3456 host_overrides=Make-host
3457 dep_host_xmake_file=
3458 for f in .. ${host_xmake_file}
3460 if test -f ${srcdir}/config/$f
3462 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3466 # Conditionalize the makefile for this target machine.
3467 # Make-target contains the concatenation of all host makefile fragments
3468 # [there can be more than one]. This file is built by configure.frag.
3469 target_overrides=Make-target
3471 for f in .. ${tmake_file}
3473 if test -f ${srcdir}/config/$f
3475 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3479 # If the host doesn't support symlinks, modify CC in
3480 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3481 # Otherwise, we can use "CC=$(CC)".
3483 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3485 cc_set_by_configure="\$(CC)"
3486 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3489 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3491 symbolic_link="cp -p"
3495 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3496 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3500 out_object_file=`basename $out_file .c`.o
3503 for f in $tm_file; do
3504 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3508 for f in $host_xm_file; do
3509 if test $f != "auto-host.h"; then
3510 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3512 host_xm_file_list="${host_xm_file_list} auto-host.h"
3517 for f in $build_xm_file; do
3518 if test $f != "auto-build.h"; then
3519 if test $f != "auto-host.h"; then
3520 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3522 build_xm_file_list="${build_xm_file_list} auto-host.h"
3525 build_xm_file_list="${build_xm_file_list} auto-build.h"
3529 # Define macro CROSS_COMPILE in compilation
3530 # if this is a cross-compiler.
3531 # Also use all.cross instead of all.internal
3532 # and add cross-make to Makefile.
3533 cross_overrides="/dev/null"
3534 if test x$host != x$target
3536 cross_defines="CROSS=-DCROSS_COMPILE"
3537 cross_overrides="${topdir}/cross-make"
3540 # When building gcc with a cross-compiler, we need to fix a few things.
3541 # This must come after cross-make as we want all.build to override
3543 build_overrides="/dev/null"
3544 if test x$build != x$host
3546 build_overrides="${topdir}/build-make"
3549 # Expand extra_headers to include complete path.
3550 # This substitutes for lots of t-* files.
3552 if test "x$extra_headers" = x
3555 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3556 for file in $extra_headers;
3558 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3562 if test x$use_collect2 = xno; then
3566 # Add a definition of USE_COLLECT2 if system wants one.
3567 # Also tell toplev.c what to do.
3568 # This substitutes for lots of t-* files.
3569 if test x$use_collect2 = x
3574 will_use_collect2="collect2"
3575 maybe_use_collect2="-DUSE_COLLECT2"
3579 # Set MD_DEPS if the real md file is in md.pre-cpp.
3580 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3581 # for line oriented comments, so we must always use a GNU cpp. If
3582 # building gcc with a cross compiler, use the cross compiler just
3583 # built. Otherwise, we can use the cpp just built.
3585 if test "x$md_cppflags" = x
3587 md_file_sub=$srcdir/config/$md_file
3592 # If we have gas in the build tree, make a link to it.
3593 if test -f ../gas/Makefile; then
3594 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3597 # If we have nm in the build tree, make a link to it.
3598 if test -f ../binutils/Makefile; then
3599 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3602 # If we have ld in the build tree, make a link to it.
3603 if test -f ../ld/Makefile; then
3604 # if test x$use_collect2 = x; then
3605 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3607 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3611 # Figure out what assembler alignment features are present.
3612 AC_MSG_CHECKING(assembler alignment features)
3614 gcc_cv_as_alignment_features=
3615 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3616 if test -x as$host_exeext; then
3617 # Build using assembler in the current directory.
3618 gcc_cv_as=./as$host_exeext
3619 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3620 # Single tree build which includes gas.
3621 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3624 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3626 if test x$gcc_cv_gas_version != x; then
3631 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3632 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3634 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3635 # Gas version 2.6 and later support for .balign and .p2align.
3636 # bytes to skip when using .p2align.
3637 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
3638 gcc_cv_as_alignment_features=".balign and .p2align"
3639 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3641 # Gas version 2.8 and later support specifying the maximum
3642 # bytes to skip when using .p2align.
3643 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
3644 gcc_cv_as_alignment_features=".p2align including maximum skip"
3645 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3648 elif test x$host = x$target; then
3650 gcc_cv_as=as$host_exeext
3652 if test x$gcc_cv_as != x; then
3653 # Check if we have .balign and .p2align
3654 echo ".balign 4" > conftest.s
3655 echo ".p2align 2" >> conftest.s
3656 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3657 gcc_cv_as_alignment_features=".balign and .p2align"
3658 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3660 rm -f conftest.s conftest.o
3661 # Check if specifying the maximum bytes to skip when
3662 # using .p2align is supported.
3663 echo ".p2align 4,,7" > conftest.s
3664 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3665 gcc_cv_as_alignment_features=".p2align including maximum skip"
3666 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3668 rm -f conftest.s conftest.o
3670 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3672 # Figure out what language subdirectories are present.
3674 for lang in ${srcdir}/*/config-lang.in ..
3678 # The odd quoting in the next line works around
3679 # an apparent bug in bash 1.12 on linux.
3681 ${srcdir}/ada/config-lang.in)
3682 if test x$gnat = xyes ; then
3683 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3686 ${srcdir}/[*]/config-lang.in) ;;
3687 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3692 # Make gthr-default.h if we have a thread file.
3694 if test $thread_file != single; then
3695 rm -f gthr-default.h
3696 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3697 gthread_flags=-DHAVE_GTHR_DEFAULT
3699 AC_SUBST(gthread_flags)
3701 # Make empty files to contain the specs and options for each language.
3702 # Then add #include lines to for a compiler that has specs and/or options.
3707 rm -f specs.h options.h gencheck.h
3708 touch specs.h options.h gencheck.h
3709 for subdir in . $subdirs
3711 if test -f $srcdir/$subdir/lang-specs.h; then
3712 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3713 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3715 if test -f $srcdir/$subdir/lang-options.h; then
3716 echo "#include \"$subdir/lang-options.h\"" >>options.h
3717 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3719 if test -f $srcdir/$subdir/$subdir-tree.def; then
3720 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3721 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3725 # These (without "all_") are set in each config-lang.in.
3726 # `language' must be a single word so is spelled singularly.
3732 all_outputs=Makefile
3733 # List of language makefile fragments.
3738 # Add the language fragments.
3739 # Languages are added via two mechanisms. Some information must be
3740 # recorded in makefile variables, these are defined in config-lang.in.
3741 # We accumulate them and plug them into the main Makefile.
3742 # The other mechanism is a set of hooks for each of the main targets
3743 # like `clean', `install', etc.
3745 language_fragments="Make-lang"
3746 language_hooks="Make-hooks"
3749 for s in .. $subdirs
3761 . ${srcdir}/$s/config-lang.in
3762 if test "x$language" = x
3764 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3767 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3768 all_languages="$all_languages $language"
3769 if test "x$boot_language" = xyes
3771 all_boot_languages="$all_boot_languages $language"
3773 all_compilers="$all_compilers $compilers"
3774 all_stagestuff="$all_stagestuff $stagestuff"
3775 all_diff_excludes="$all_diff_excludes $diff_excludes"
3776 all_headers="$all_headers $headers"
3777 all_outputs="$all_outputs $outputs"
3778 if test x$outputs = x
3780 oldstyle_subdirs="$oldstyle_subdirs $s"
3782 all_lib2funcs="$all_lib2funcs $lib2funcs"
3786 # Since we can't use `::' targets, we link each language in
3787 # with a set of hooks, reached indirectly via lang.${target}.
3791 target_list="all.build all.cross start.encap rest.encap \
3793 install-normal install-common install-info install-man \
3795 mostlyclean clean distclean extraclean maintainer-clean \
3796 stage1 stage2 stage3 stage4"
3797 for t in $target_list
3800 for l in .. $all_languages
3802 if test $l != ".."; then
3806 echo "lang.$t: $x" >> Make-hooks
3809 # If we're not building in srcdir, create .gdbinit.
3811 if test ! -f Makefile.in; then
3812 echo "dir ." > .gdbinit
3813 echo "dir ${srcdir}" >> .gdbinit
3814 if test x$gdb_needs_out_file_path = xyes
3816 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3818 if test "x$subdirs" != x; then
3821 echo "dir ${srcdir}/$s" >> .gdbinit
3824 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3827 # Define variables host_canonical and build_canonical
3828 # because some Cygnus local changes in the Makefile depend on them.
3829 build_canonical=${build}
3830 host_canonical=${host}
3832 if test "${host}" != "${target}" ; then
3833 target_subdir=${target}/
3835 AC_SUBST(build_canonical)
3836 AC_SUBST(host_canonical)
3837 AC_SUBST(target_subdir)
3839 # If this is using newlib, then define inhibit_libc in
3840 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3841 # libgcc.a, but that's OK because newib should have its own version of
3844 if test x$with_newlib = xyes; then
3845 inhibit_libc=-Dinhibit_libc
3847 AC_SUBST(inhibit_libc)
3849 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3852 if test x$enable_haifa = xyes; then
3853 echo "Using the Haifa scheduler."
3855 sched_cflags=-DHAIFA
3857 AC_SUBST(sched_prefix)
3858 AC_SUBST(sched_cflags)
3859 if test x$enable_haifa != x; then
3860 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3861 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3869 # Warn if using init_priority.
3870 AC_MSG_CHECKING(whether to enable init_priority by default)
3871 if test x$enable_init_priority != xyes; then
3872 enable_init_priority=no
3874 AC_MSG_RESULT($enable_init_priority)
3876 # Nothing to do for FLOAT_H, float_format already handled.
3880 # Process the language and host/target makefile fragments.
3881 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3883 # Substitute configuration variables
3885 AC_SUBST(all_languages)
3886 AC_SUBST(all_boot_languages)
3887 AC_SUBST(all_compilers)
3888 AC_SUBST(all_lang_makefiles)
3889 AC_SUBST(all_stagestuff)
3890 AC_SUBST(all_diff_excludes)
3891 AC_SUBST(all_lib2funcs)
3892 AC_SUBST(all_headers)
3894 AC_SUBST(extra_passes)
3895 AC_SUBST(extra_programs)
3896 AC_SUBST(extra_parts)
3897 AC_SUBST(extra_c_objs)
3898 AC_SUBST(extra_cxx_objs)
3899 AC_SUBST(extra_cpp_objs)
3900 AC_SUBST(extra_c_flags)
3901 AC_SUBST(extra_objs)
3902 AC_SUBST(host_extra_gcc_objs)
3903 AC_SUBST(extra_headers_list)
3904 AC_SUBST(dep_host_xmake_file)
3905 AC_SUBST(dep_tmake_file)
3907 AC_SUBST(out_object_file)
3909 AC_SUBST(tm_file_list)
3910 AC_SUBST(build_xm_file_list)
3911 AC_SUBST(host_xm_file_list)
3912 AC_SUBST(lang_specs_files)
3913 AC_SUBST(lang_options_files)
3914 AC_SUBST(lang_tree_files)
3915 AC_SUBST(thread_file)
3916 AC_SUBST(objc_boehm_gc)
3917 AC_SUBST(gcc_version)
3918 AC_SUBST(gcc_version_trigger)
3919 AC_SUBST(local_prefix)
3920 AC_SUBST(gxx_include_dir)
3921 AC_SUBST(fixincludes)
3922 AC_SUBST(build_install_headers_dir)
3923 AC_SUBST(build_exeext)
3924 AC_SUBST(host_exeext)
3925 AC_SUBST(float_format)
3926 AC_SUBST(will_use_collect2)
3927 AC_SUBST(maybe_use_collect2)
3928 AC_SUBST(cc_set_by_configure)
3929 AC_SUBST(stage_prefix_set_by_configure)
3931 AC_SUBST(symbolic_link)
3933 AC_SUBST_FILE(target_overrides)
3934 AC_SUBST_FILE(host_overrides)
3935 AC_SUBST(cross_defines)
3936 AC_SUBST_FILE(cross_overrides)
3937 AC_SUBST_FILE(build_overrides)
3938 AC_SUBST_FILE(language_fragments)
3939 AC_SUBST_FILE(language_hooks)
3941 # Echo that links are built
3942 if test x$host = x$target
3950 if test x$host != x$build
3952 str3=" on a $build system"
3955 if test "x$str2" != x || test "x$str3" != x
3960 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3962 if test "x$str2" != x || test "x$str3" != x
3964 echo " ${str2}${str3}." 1>&2
3967 # Truncate the target if necessary
3968 if test x$host_truncate_target != x; then
3969 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3972 # Configure the subdirectories
3973 # AC_CONFIG_SUBDIRS($subdirs)
3975 # Create the Makefile
3976 # and configure language subdirectories
3977 AC_OUTPUT($all_outputs,
3979 . $srcdir/configure.lang
3980 case x$CONFIG_HEADERS in
3981 xauto-host.h:config.in)
3984 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3985 # bootstrapping and the installation procedure can still use
3986 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3987 # FLAGS_TO_PASS has been modified to solve the problem there.
3988 # This is virtually a duplicate of what happens in configure.lang; we do
3989 # an extra check to make sure this only happens if ln -s can be used.
3990 if test "$symbolic_link" = "ln -s"; then
3991 for d in .. ${subdirs} ; do
3992 if test $d != ..; then
3995 for t in stage1 stage2 stage3 stage4 include
3998 $symbolic_link ../$t $t 2>/dev/null
4009 target_alias='${target_alias}'
4011 subdirs='${subdirs}'
4012 oldstyle_subdirs='${oldstyle_subdirs}'
4013 symbolic_link='${symbolic_link}'
4014 program_transform_set='${program_transform_set}'
4015 program_transform_name='${program_transform_name}'
4016 dep_host_xmake_file='${dep_host_xmake_file}'
4017 host_xmake_file='${host_xmake_file}'
4018 dep_tmake_file='${dep_tmake_file}'
4019 tmake_file='${tmake_file}'
4020 thread_file='${thread_file}'
4021 gcc_version='${gcc_version}'
4022 gcc_version_trigger='${gcc_version_trigger}'
4023 local_prefix='${local_prefix}'
4024 build_install_headers_dir='${build_install_headers_dir}'
4025 build_exeext='${build_exeext}'
4026 host_exeext='${host_exeext}'
4027 out_file='${out_file}'
4028 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4029 SET_MAKE='${SET_MAKE}'
4030 target_list='${target_list}'
4031 target_overrides='${target_overrides}'
4032 host_overrides='${host_overrides}'
4033 cross_defines='${cross_defines}'
4034 cross_overrides='${cross_overrides}'
4035 build_overrides='${build_overrides}'