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
901 if test x$enable_threads = xyes; then
906 i[34567]86-sequent-bsd*) # 80386 from Sequent
911 tm_file=i386/seq-gas.h
913 tm_file=i386/sequent.h
917 i[34567]86-sequent-ptx1*)
919 xm_defines="USG SVR3"
920 xmake_file=i386/x-sysv3
921 tm_file=i386/seq-sysv3.h
922 tmake_file=i386/t-crtstuff
923 fixincludes=fixinc.ptx
924 extra_parts="crtbegin.o crtend.o"
925 install_headers_dir=install-headers-cpio
928 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
930 xm_defines="USG SVR3"
931 xmake_file=i386/x-sysv3
932 tm_file=i386/seq2-sysv3.h
933 tmake_file=i386/t-crtstuff
934 extra_parts="crtbegin.o crtend.o"
935 fixincludes=fixinc.ptx
936 install_headers_dir=install-headers-cpio
939 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
941 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
942 xm_defines="USG POSIX SMALL_ARG_MAX"
944 tm_file=i386/ptx4-i.h
946 extra_parts="crtbegin.o crtend.o"
947 fixincludes=fixinc.ptx
948 install_headers_dir=install-headers-cpio
950 i386-sun-sunos*) # Sun i386 roadrunner
956 i[34567]86-wrs-vxworks*)
958 tm_file=i386/vxi386.h
959 tmake_file=i386/t-i386bare
964 tm_file=i386/i386-aout.h
965 tmake_file=i386/t-i386bare
968 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
970 tm_file=i386/bsd386.h
971 # tmake_file=t-libc-ok
976 tm_file=i386/386bsd.h
977 # tmake_file=t-libc-ok
978 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
982 i[34567]86-*-freebsdelf*)
984 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
985 # On FreeBSD, the headers are already ok, except for math.h.
986 fixincludes=fixinc.wrap
987 tmake_file=i386/t-freebsd
993 i[34567]86-*-freebsd*)
995 tm_file=i386/freebsd.h
996 # On FreeBSD, the headers are already ok, except for math.h.
997 fixincludes=fixinc.wrap
998 tmake_file=i386/t-freebsd
1001 i[34567]86-*-netbsd*)
1003 tm_file=i386/netbsd.h
1004 # On NetBSD, the headers are already okay, except for math.h.
1005 fixincludes=fixinc.wrap
1011 tm_file=i386/i386-coff.h
1012 tmake_file=i386/t-i386bare
1015 i[34567]86-*-isc*) # 80386 running ISC system
1017 xm_file="${xm_file} i386/xm-isc.h"
1018 xm_defines="USG SVR3"
1021 i[34567]86-*-isc[34]*)
1023 xmake_file=i386/x-isc3
1026 xmake_file=i386/x-isc
1029 if test x$gas = xyes -a x$stabs = xyes
1031 tm_file=i386/iscdbx.h
1032 tmake_file=i386/t-svr3dbx
1033 extra_parts="svr3.ifile svr3z.ifile"
1035 tm_file=i386/isccoff.h
1036 tmake_file=i386/t-crtstuff
1037 extra_parts="crtbegin.o crtend.o"
1039 install_headers_dir=install-headers-cpio
1042 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1043 changequote([,])dnl # with a.out format using
1045 xmake_file=x-linux-aout
1046 tmake_file="t-linux-aout i386/t-crtstuff"
1047 tm_file=i386/linux-oldld.h
1048 fixincludes=Makefile.in #On Linux, the headers are ok already.
1053 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1054 changequote([,])dnl # with a.out format
1055 xmake_file=x-linux-aout
1056 tmake_file="t-linux-aout i386/t-crtstuff"
1057 tm_file=i386/linux-aout.h
1058 fixincludes=Makefile.in #On Linux, the headers are ok already.
1063 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1064 changequote([,])dnl # with ELF format using the
1065 # GNU/Linux C library 5
1067 tm_file=i386/linux.h
1068 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1069 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1070 fixincludes=Makefile.in #On Linux, the headers are ok already.
1073 if test x$enable_threads = xyes; then
1074 thread_file='single'
1078 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1079 changequote([,])dnl # with ELF format using glibc 2
1080 # aka GNU/Linux C library 6
1082 tm_file=i386/linux.h
1083 tmake_file="t-linux i386/t-crtstuff"
1084 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1085 fixincludes=Makefile.in #On Linux, the headers are ok already.
1088 if test x$enable_threads = xyes; then
1097 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1099 xm_file=i386/xm-go32.h
1101 tmake_file=i386/t-go32
1104 i[34567]86-pc-msdosdjgpp*)
1106 xm_file=i386/xm-go32.h
1108 tmake_file=i386/t-go32
1113 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1116 tmake_file=t-libc-ok
1117 fixincludes=Makefile.in
1122 i[34567]86-*-lynxos*)
1124 if test x$gas = xyes
1128 tm_file=i386/lynx-ng.h
1130 xm_file=i386/xm-lynx.h
1131 tmake_file=i386/t-i386bare
1138 # tmake_file=t-libc-ok
1142 i[34567]86-*-osfrose*) # 386 using OSF/rose
1144 if test x$elf = xyes
1146 tm_file=i386/osfelf.h
1149 tm_file=i386/osfrose.h
1152 xm_file="i386/xm-osf.h ${xm_file}"
1153 xmake_file=i386/x-osfrose
1154 tmake_file=i386/t-osf
1155 extra_objs=halfpic.o
1158 i[34567]86-go32-rtems*)
1161 xm_file=i386/xm-go32.h
1162 tm_file=i386/go32-rtems.h
1163 tmake_file="i386/t-go32 t-rtems"
1166 i[34567]86-*-rtemself*)
1169 tm_file=i386/rtemself.h
1170 tmake_file="i386/t-i386bare t-rtems"
1173 i[34567]86-*-rtems*)
1176 tm_file=i386/rtems.h
1177 tmake_file="i386/t-i386bare t-rtems"
1180 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1182 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1183 xm_defines="USG SVR3"
1184 xmake_file=i386/x-sco5
1185 fixincludes=fixinc.sco
1186 install_headers_dir=install-headers-cpio
1188 if test x$gas = xyes
1190 tm_file="i386/sco5gas.h ${tm_file}"
1191 tmake_file=i386/t-sco5gas
1193 tmake_file=i386/t-sco5
1195 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1198 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1200 xm_file="${xm_file} i386/xm-sco.h"
1201 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1202 xmake_file=i386/x-sco4
1203 fixincludes=fixinc.sco
1204 install_headers_dir=install-headers-cpio
1205 if test x$stabs = xyes
1207 tm_file=i386/sco4dbx.h
1208 tmake_file=i386/t-svr3dbx
1209 extra_parts="svr3.ifile svr3z.rfile"
1212 tmake_file=i386/t-crtstuff
1213 extra_parts="crtbegin.o crtend.o"
1218 i[34567]86-*-sco*) # 80386 running SCO system
1220 xm_file=i386/xm-sco.h
1221 xmake_file=i386/x-sco
1222 install_headers_dir=install-headers-cpio
1223 if test x$stabs = xyes
1225 tm_file=i386/scodbx.h
1226 tmake_file=i386/t-svr3dbx
1227 extra_parts="svr3.ifile svr3z.rfile"
1230 extra_parts="crtbegin.o crtend.o"
1231 tmake_file=i386/t-crtstuff
1236 i[34567]86-*-solaris2*)
1238 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1239 xm_defines="USG POSIX SMALL_ARG_MAX"
1240 if test x$stabs = xyes
1242 tm_file=i386/sol2dbg.h
1246 tmake_file=i386/t-sol2
1247 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1253 fixincludes=fixinc.svr4;;
1255 fixincludes=fixinc.wrap;;
1257 if test x$enable_threads = xyes; then
1258 thread_file='solaris'
1262 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1264 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1265 xm_defines="USG POSIX"
1266 tm_file=i386/sysv4.h
1267 if test x$stabs = xyes
1269 tm_file="${tm_file} dbx.h"
1271 tmake_file=i386/t-crtpic
1273 extra_parts="crtbegin.o crtend.o"
1274 fixincludes=Makefile.in # The headers are just fine, thank you.
1277 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1279 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1280 xm_defines="USG POSIX SMALL_ARG_MAX"
1281 tm_file=i386/sysv4.h
1282 if test x$stabs = xyes
1284 tm_file="${tm_file} dbx.h"
1286 tmake_file=i386/t-crtpic
1288 extra_parts="crtbegin.o crtend.o"
1291 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1294 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1295 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1296 fixincludes=Makefile.in #Don't do it on OSF/1
1297 if test x$stabs = xyes
1299 tm_file=i386/osf1elfgdb.h
1301 tm_file=i386/osf1elf.h
1303 tmake_file=i386/t-osf1elf
1304 xmake_file=i386/x-osf1elf
1305 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1308 i[34567]86-*-sysv*) # Intel 80386's running system V
1310 xm_defines="USG SVR3"
1311 xmake_file=i386/x-sysv3
1312 if test x$gas = xyes
1314 if test x$stabs = xyes
1316 tm_file=i386/svr3dbx.h
1317 tmake_file=i386/t-svr3dbx
1318 extra_parts="svr3.ifile svr3z.rfile"
1320 tm_file=i386/svr3gas.h
1321 extra_parts="crtbegin.o crtend.o"
1322 tmake_file=i386/t-crtstuff
1325 tm_file=i386/sysv3.h
1326 extra_parts="crtbegin.o crtend.o"
1327 tmake_file=i386/t-crtstuff
1330 i386-*-vsta) # Intel 80386's running VSTa kernel
1331 xm_file="${xm_file} i386/xm-vsta.h"
1333 tmake_file=i386/t-vsta
1334 xmake_file=i386/x-vsta
1339 xm_file="${xm_file} i386/xm-cygwin32.h"
1340 tmake_file=i386/t-cygwin32
1341 tm_file=i386/win32.h
1342 xmake_file=i386/x-cygwin32
1344 fixincludes=Makefile.in
1345 if test x$enable_threads = xyes; then
1351 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1353 xm_file="${xm_file} i386/xm-cygwin32.h"
1354 tmake_file=i386/t-cygwin32
1355 tm_file=i386/cygwin32.h
1356 xmake_file=i386/x-cygwin32
1358 fixincludes=Makefile.in
1359 if test x$enable_threads = xyes; then
1365 i[34567]86-*-mingw32*)
1367 tm_file=i386/mingw32.h
1368 xm_file="${xm_file} i386/xm-mingw32.h"
1369 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1371 xmake_file=i386/x-cygwin32
1372 fixincludes=Makefile.in
1373 if test x$enable_threads = xyes; then
1380 *minwg32crt* | *mingw32*)
1381 tm_file="${tm_file} i386/crtdll.h"
1386 i[34567]86-*-winnt3*)
1388 tm_file=i386/win-nt.h
1389 out_file=i386/i386.c
1390 xm_file="xm-winnt.h ${xm_file}"
1391 xmake_file=winnt/x-winnt
1392 tmake_file=i386/t-winnt
1393 extra_host_objs="winnt.o oldnames.o"
1394 extra_gcc_objs="spawnv.o oldnames.o"
1395 fixincludes=fixinc.winnt
1396 if test x$gnu_ld != xyes
1398 extra_programs=ld.exe
1400 if test x$enable_threads = xyes; then
1405 i[34567]86-dg-dgux*)
1407 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1408 xm_defines="USG POSIX"
1409 out_file=i386/dgux.c
1411 tmake_file=i386/t-dgux
1412 xmake_file=i386/x-dgux
1413 fixincludes=fixinc.dgux
1414 install_headers_dir=install-headers-cpio
1416 i860-alliant-*) # Alliant FX/2800
1417 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1418 xm_file="${xm_file}"
1419 xmake_file=i860/x-fx2800
1420 tmake_file=i860/t-fx2800
1421 extra_parts="crtbegin.o crtend.o"
1424 tm_file="${tm_file} i860/bsd.h"
1425 if test x$gas = xyes
1427 tm_file="${tm_file} i860/bsd-gas.h"
1432 tm_file="${tm_file} i860/mach.h"
1433 tmake_file=t-libc-ok
1435 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1436 tm_file="${tm_file} svr3.h i860/paragon.h"
1437 xm_defines="USG SVR3"
1441 tm_file="${tm_file} svr3.h i860/sysv3.h"
1442 xm_defines="USG SVR3"
1443 xmake_file=i860/x-sysv3
1444 extra_parts="crtbegin.o crtend.o"
1447 tm_file="${tm_file} svr4.h i860/sysv4.h"
1448 xm_defines="USG SVR3"
1449 xmake_file=i860/x-sysv4
1451 extra_parts="crtbegin.o crtend.o"
1453 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1454 tm_file="${tm_file} i960/vx960.h"
1455 tmake_file=i960/t-vxworks960
1457 thread_file='vxworks'
1459 i960-wrs-vxworks5* | i960-wrs-vxworks)
1460 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1461 tmake_file=i960/t-vxworks960
1463 thread_file='vxworks'
1466 tm_file="${tm_file} i960/vx960.h"
1467 tmake_file=i960/t-vxworks960
1469 thread_file='vxworks'
1472 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1473 tmake_file=i960/t-960bare
1477 tmake_file="i960/t-960bare t-rtems"
1478 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1481 i960-*-*) # Default i960 environment.
1485 extra_parts="crtinit.o crtfini.o"
1487 m68000-convergent-sysv*)
1489 xm_file="m68k/xm-3b1.h ${xm_file}"
1492 extra_headers=math-68881.h
1494 m68000-hp-bsd*) # HP 9000/200 running BSD
1495 tm_file=m68k/hp2bsd.h
1496 xmake_file=m68k/x-hp2bsd
1498 extra_headers=math-68881.h
1500 m68000-hp-hpux*) # HP 9000 series 300
1501 xm_file="xm_alloca.h ${xm_file}"
1502 xm_defines="USG NO_SYS_SIGLIST"
1503 if test x$gas = xyes
1505 xmake_file=m68k/x-hp320g
1506 tm_file=m68k/hp310g.h
1508 xmake_file=m68k/x-hp320
1509 tm_file=m68k/hp310.h
1511 install_headers_dir=install-headers-cpio
1513 extra_headers=math-68881.h
1518 extra_headers=math-68881.h
1521 tm_file=m68k/sun2o4.h
1523 extra_headers=math-68881.h
1526 xm_file="m68k/xm-3b1.h ${xm_file}"
1528 if test x$gas = xyes
1535 extra_headers=math-68881.h
1537 m68k-apple-aux*) # Apple Macintosh running A/UX
1538 xm_defines="USG AUX"
1539 tmake_file=m68k/t-aux
1540 install_headers_dir=install-headers-cpio
1541 extra_headers=math-68881.h
1542 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1544 if test "$gnu_ld" = yes
1546 tm_file="${tm_file} m68k/auxgld.h"
1548 tm_file="${tm_file} m68k/auxld.h"
1550 if test "$gas" = yes
1552 tm_file="${tm_file} m68k/auxgas.h"
1554 tm_file="${tm_file} m68k/auxas.h"
1556 tm_file="${tm_file} m68k/a-ux.h"
1560 tm_file=m68k/apollo68.h
1561 xmake_file=m68k/x-apollo68
1563 extra_headers=math-68881.h
1566 m68k-altos-sysv*) # Altos 3068
1567 if test x$gas = xyes
1569 tm_file=m68k/altos3068.h
1572 echo "The Altos is supported only with the GNU assembler" 1>&2
1575 extra_headers=math-68881.h
1577 m68k-bull-sysv*) # Bull DPX/2
1578 if test x$gas = xyes
1580 if test x$stabs = xyes
1582 tm_file=m68k/dpx2cdbx.h
1584 tm_file=m68k/dpx2g.h
1589 xm_file="xm-alloca.h ${xm_file}"
1591 xmake_file=m68k/x-dpx2
1593 extra_headers=math-68881.h
1595 m68k-atari-sysv4*) # Atari variant of V.4.
1596 tm_file=m68k/atari.h
1597 xm_file="xm-alloca.h ${xm_file}"
1598 xm_defines="USG FULL_PROTOTYPES"
1600 extra_parts="crtbegin.o crtend.o"
1601 extra_headers=math-68881.h
1604 m68k-motorola-sysv*)
1605 tm_file=m68k/mot3300.h
1606 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1607 xm_defines=NO_SYS_SIGLIST
1608 if test x$gas = xyes
1610 xmake_file=m68k/x-mot3300-gas
1611 if test x$gnu_ld = xyes
1613 tmake_file=m68k/t-mot3300-gald
1615 tmake_file=m68k/t-mot3300-gas
1619 xmake_file=m68k/x-mot3300
1620 if test x$gnu_ld = xyes
1622 tmake_file=m68k/t-mot3300-gld
1624 tmake_file=m68k/t-mot3300
1628 gdb_needs_out_file_path=yes
1629 extra_parts="crt0.o mcrt0.o"
1630 extra_headers=math-68881.h
1633 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1634 tm_file=m68k/tower-as.h
1635 xm_defines="USG SVR3"
1636 xmake_file=m68k/x-tower
1637 extra_parts="crtbegin.o crtend.o"
1638 extra_headers=math-68881.h
1641 tm_file=m68k/plexus.h
1642 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1645 extra_headers=math-68881.h
1649 xm_file="xm-alloca.h ${xm_file}"
1651 extra_headers=math-68881.h
1654 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1655 xm_defines="USG unos"
1656 xmake_file=m68k/x-crds
1659 extra_headers=math-68881.h
1661 m68k-cbm-sysv4*) # Commodore variant of V.4.
1663 xm_file="xm-alloca.h ${xm_file}"
1664 xm_defines="USG FULL_PROTOTYPES"
1665 xmake_file=m68k/x-amix
1667 extra_parts="crtbegin.o crtend.o"
1668 extra_headers=math-68881.h
1672 tm_file=m68k/ccur-GAS.h
1673 xmake_file=m68k/x-ccur
1674 extra_headers=math-68881.h
1678 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1679 tm_file=m68k/hp3bsd44.h
1680 xmake_file=m68k/x-hp3bsd44
1682 extra_headers=math-68881.h
1685 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1686 tm_file=m68k/hp3bsd.h
1688 extra_headers=math-68881.h
1692 if test x$with_fp = xno
1694 tm_file=m68k/isi-nfp.h
1700 extra_headers=math-68881.h
1702 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1703 xm_file="xm_alloca.h ${xm_file}"
1704 xm_defines="USG NO_SYS_SIGLIST"
1705 if test x$gas = xyes
1707 xmake_file=m68k/x-hp320g
1708 tm_file=m68k/hp320g.h
1710 xmake_file=m68k/x-hp320
1711 tm_file=m68k/hpux7.h
1713 install_headers_dir=install-headers-cpio
1715 extra_headers=math-68881.h
1718 m68k-hp-hpux*) # HP 9000 series 300
1719 xm_file="xm_alloca.h ${xm_file}"
1720 xm_defines="USG NO_SYS_SIGLIST"
1721 if test x$gas = xyes
1723 xmake_file=m68k/x-hp320g
1724 tm_file=m68k/hp320g.h
1726 xmake_file=m68k/x-hp320
1727 tm_file=m68k/hp320.h
1729 install_headers_dir=install-headers-cpio
1731 extra_headers=math-68881.h
1735 tm_file=m68k/sun3mach.h
1737 extra_headers=math-68881.h
1741 if test x$gas = xyes
1743 tm_file=m68k/news3gas.h
1745 tm_file=m68k/news3.h
1748 extra_headers=math-68881.h
1751 m68k-sony-bsd* | m68k-sony-newsos*)
1752 if test x$gas = xyes
1754 tm_file=m68k/newsgas.h
1759 extra_headers=math-68881.h
1762 m68k-next-nextstep2*)
1763 tm_file=m68k/next21.h
1764 xm_file="m68k/xm-next.h ${xm_file}"
1765 tmake_file=m68k/t-next
1766 xmake_file=m68k/x-next
1767 extra_objs=nextstep.o
1768 extra_headers=math-68881.h
1772 m68k-next-nextstep3*)
1774 xm_file="m68k/xm-next.h ${xm_file}"
1775 tmake_file=m68k/t-next
1776 xmake_file=m68k/x-next
1777 extra_objs=nextstep.o
1778 extra_headers=math-68881.h
1781 if test x$enable_threads = xyes; then
1786 if test x$with_fp = xno
1788 tm_file=m68k/sun3n3.h
1790 tm_file=m68k/sun3o3.h
1794 extra_headers=math-68881.h
1796 m68k-sun-sunos*) # For SunOS 4 (the default).
1797 if test x$with_fp = xno
1799 tm_file=m68k/sun3n.h
1805 extra_headers=math-68881.h
1808 tm_file=m68k/vxm68k.h
1809 tmake_file=m68k/t-vxworks68
1810 extra_headers=math-68881.h
1811 thread_file='vxworks'
1815 tmake_file=m68k/t-m68kbare
1816 tm_file="m68k/m68k-aout.h libgloss.h"
1817 extra_headers=math-68881.h
1821 tmake_file=m68k/t-m68kbare
1822 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1823 extra_headers=math-68881.h
1827 if test x$gas = xyes
1831 tm_file=m68k/lynx-ng.h
1833 xm_file=m68k/xm-lynx.h
1835 tmake_file=m68k/t-lynx
1836 extra_headers=math-68881.h
1840 tm_file=m68k/netbsd.h
1841 # On NetBSD, the headers are already okay, except for math.h.
1842 fixincludes=fixinc.wrap
1846 m68k-*-sysv3*) # Motorola m68k's running system V.3
1847 xm_file="xm-alloca.h ${xm_file}"
1849 xmake_file=m68k/x-m68kv
1850 extra_parts="crtbegin.o crtend.o"
1851 extra_headers=math-68881.h
1854 m68k-*-sysv4*) # Motorola m68k's running system V.4
1855 tm_file=m68k/m68kv4.h
1856 xm_file="xm-alloca.h ${xm_file}"
1859 extra_parts="crtbegin.o crtend.o"
1860 extra_headers=math-68881.h
1863 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1866 tm_file=m68k/linux-aout.h
1867 tmake_file="t-linux-aout m68k/t-linux-aout"
1868 fixincludes=Makefile.in # The headers are ok already.
1869 extra_headers=math-68881.h
1873 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1874 # with ELF format using the
1875 # GNU/Linux C library 5
1877 tm_file=m68k/linux.h
1878 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1879 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1880 fixincludes=Makefile.in # The headers are ok already.
1881 extra_headers=math-68881.h
1885 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1886 # with ELF format using glibc 2
1887 # aka the GNU/Linux C library 6.
1889 tm_file=m68k/linux.h
1890 tmake_file="t-linux m68k/t-linux"
1891 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1892 fixincludes=Makefile.in # The headers are ok already.
1893 extra_headers=math-68881.h
1896 if test x$enable_threads = xyes; then
1901 tmake_file=m68k/t-m68kbare
1902 tm_file=m68k/m68k-psos.h
1903 extra_headers=math-68881.h
1907 tmake_file="m68k/t-m68kbare t-rtems"
1908 tm_file=m68k/rtems.h
1909 extra_headers=math-68881.h
1916 tm_file=m88k/dguxbcs.h
1917 tmake_file=m88k/t-dguxbcs
1921 tmake_file=m88k/t-dgux
1924 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1925 xmake_file=m88k/x-dgux
1926 if test x$gas = xyes
1928 tmake_file=m88k/t-dgux-gas
1930 fixincludes=fixinc.dgux
1932 m88k-dolphin-sysv3*)
1933 tm_file=m88k/dolph.h
1934 extra_parts="crtbegin.o crtend.o"
1935 xm_file="m88k/xm-sysv3.h ${xm_file}"
1936 xmake_file=m88k/x-dolph
1937 if test x$gas = xyes
1939 tmake_file=m88k/t-m88k-gas
1942 m88k-tektronix-sysv3)
1943 tm_file=m88k/tekXD88.h
1944 extra_parts="crtbegin.o crtend.o"
1945 xm_file="m88k/xm-sysv3.h ${xm_file}"
1946 xmake_file=m88k/x-tekXD88
1947 if test x$gas = xyes
1949 tmake_file=m88k/t-m88k-gas
1953 tm_file=m88k/m88k-aout.h
1956 tm_file=m88k/m88k-coff.h
1957 tmake_file=m88k/t-bug
1961 extra_parts="crtbegin.o crtend.o"
1962 if test x$gas = xyes
1964 tmake_file=m88k/t-luna-gas
1966 tmake_file=m88k/t-luna
1970 tm_file=m88k/sysv3.h
1971 extra_parts="crtbegin.o crtend.o"
1972 xm_file="m88k/xm-sysv3.h ${xm_file}"
1973 xmake_file=m88k/x-sysv3
1974 if test x$gas = xyes
1976 tmake_file=m88k/t-m88k-gas
1980 tm_file=m88k/sysv4.h
1981 extra_parts="crtbegin.o crtend.o"
1982 xmake_file=m88k/x-sysv4
1983 tmake_file=m88k/t-sysv4
1985 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1986 tm_file=mips/iris6.h
1987 xm_file=mips/xm-iris6.h
1988 fixincludes=fixinc.irix
1989 xmake_file=mips/x-iris6
1990 tmake_file=mips/t-iris6
1991 # if test x$enable_threads = xyes; then
1992 # thread_file='irix'
1996 tm_file="mips/elf.h libgloss.h"
1997 tmake_file=mips/t-ecoff
2000 extra_parts="crtbegin.o crtend.o"
2001 # thread_file='vxworks'
2003 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2004 tm_file="mips/iris6.h mips/cross64.h"
2006 xm_file="mips/xm-iris5.h"
2007 fixincludes=Makefile.in
2008 xmake_file=mips/x-iris
2009 tmake_file=mips/t-cross64
2010 # See comment in mips/iris[56].h files.
2012 # if test x$enable_threads = xyes; then
2013 # thread_file='irix'
2017 if test x$gas = xyes
2019 if test x$stabs = xyes
2021 tm_file=mips/iris5gdb.h
2023 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2026 tm_file=mips/sni-svr4.h
2029 xmake_file=mips/x-sni-svr4
2030 tmake_file=mips/t-mips-gas
2031 if test x$gnu_ld != xyes
2036 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2037 if test x$gas = xyes
2039 tm_file="mips/iris5.h mips/iris5gas.h"
2040 if test x$stabs = xyes
2042 tm_file="${tm_file} dbx.h"
2045 tm_file=mips/iris5.h
2048 xm_file="mips/xm-iris5.h"
2049 fixincludes=fixinc.irix
2050 xmake_file=mips/x-iris
2051 # mips-tfile doesn't work yet
2052 tmake_file=mips/t-mips-gas
2053 # See comment in mips/iris5.h file.
2055 # if test x$enable_threads = xyes; then
2056 # thread_file='irix'
2059 mips-sgi-irix4loser*) # Mostly like a MIPS.
2060 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2061 if test x$stabs = xyes; then
2062 tm_file="${tm_file} dbx.h"
2065 xmake_file=mips/x-iris
2066 if test x$gas = xyes
2068 tmake_file=mips/t-mips-gas
2070 extra_passes="mips-tfile mips-tdump"
2072 if test x$gnu_ld != xyes
2076 # if test x$enable_threads = xyes; then
2077 # thread_file='irix'
2080 mips-sgi-irix4*) # Mostly like a MIPS.
2081 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2082 if test x$stabs = xyes; then
2083 tm_file="${tm_file} dbx.h"
2086 xmake_file=mips/x-iris
2087 if test x$gas = xyes
2089 tmake_file=mips/t-mips-gas
2091 extra_passes="mips-tfile mips-tdump"
2093 if test x$gnu_ld != xyes
2097 # if test x$enable_threads = xyes; then
2098 # thread_file='irix'
2101 mips-sgi-*) # Mostly like a MIPS.
2102 tm_file="mips/iris3.h ${tm_file}"
2103 if test x$stabs = xyes; then
2104 tm_file="${tm_file} dbx.h"
2107 xmake_file=mips/x-iris3
2108 if test x$gas = xyes
2110 tmake_file=mips/t-mips-gas
2112 extra_passes="mips-tfile mips-tdump"
2114 if test x$gnu_ld != xyes
2119 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2120 tm_file="mips/osfrose.h ${tm_file}"
2121 xmake_file=mips/x-osfrose
2122 tmake_file=mips/t-osfrose
2123 extra_objs=halfpic.o
2126 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2127 tm_file=mips/dec-osf1.h
2128 if test x$stabs = xyes; then
2129 tm_file="${tm_file} dbx.h"
2131 xmake_file=mips/x-dec-osf1
2132 if test x$gas = xyes
2134 tmake_file=mips/t-mips-gas
2136 tmake_file=mips/t-ultrix
2137 extra_passes="mips-tfile mips-tdump"
2139 if test x$gnu_ld != xyes
2144 mips-dec-bsd*) # Decstation running 4.4 BSD
2145 tm_file=mips/dec-bsd.h
2147 if test x$gas = xyes
2149 tmake_file=mips/t-mips-gas
2151 tmake_file=mips/t-ultrix
2152 extra_passes="mips-tfile mips-tdump"
2154 if test x$gnu_ld != xyes
2159 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2160 tm_file=mips/netbsd.h
2161 # On NetBSD, the headers are already okay, except for math.h.
2162 fixincludes=fixinc.wrap
2165 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2166 tm_file="mips/news4.h ${tm_file}"
2167 if test x$stabs = xyes; then
2168 tm_file="${tm_file} dbx.h"
2170 if test x$gas = xyes
2172 tmake_file=mips/t-mips-gas
2174 extra_passes="mips-tfile mips-tdump"
2176 if test x$gnu_ld != xyes
2180 xmake_file=mips/x-sony
2182 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2183 # That is based on svr4.
2184 # t-svr4 is not right because this system doesn't use ELF.
2185 tm_file="mips/news5.h ${tm_file}"
2186 if test x$stabs = xyes; then
2187 tm_file="${tm_file} dbx.h"
2189 xm_file="xm-siglist.h ${xm_file}"
2191 if test x$gas = xyes
2193 tmake_file=mips/t-mips-gas
2195 extra_passes="mips-tfile mips-tdump"
2197 if test x$gnu_ld != xyes
2202 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2203 tm_file="mips/svr4-5.h mips/svr4-t.h"
2204 if test x$stabs = xyes; then
2205 tm_file="${tm_file} dbx.h"
2207 xm_file="xm-siglist.h ${xm_file}"
2209 xmake_file=mips/x-sysv
2210 if test x$gas = xyes
2212 tmake_file=mips/t-mips-gas
2213 extra_parts="crtbegin.o crtend.o"
2215 tmake_file=mips/t-mips
2216 extra_passes="mips-tfile mips-tdump"
2218 if test x$gnu_ld != xyes
2223 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2224 tm_file="mips/ultrix.h ${tm_file}"
2225 if test x$stabs = xyes; then
2226 tm_file="${tm_file} dbx.h"
2228 xmake_file=mips/x-ultrix
2229 if test x$gas = xyes
2231 tmake_file=mips/t-mips-gas
2233 tmake_file=mips/t-ultrix
2234 extra_passes="mips-tfile mips-tdump"
2236 if test x$gnu_ld != xyes
2242 mips-*-riscos[56789]bsd*)
2244 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2245 if test x$stabs = xyes; then
2246 tm_file="${tm_file} dbx.h"
2248 if test x$gas = xyes
2250 tmake_file=mips/t-bsd-gas
2252 tmake_file=mips/t-bsd
2253 extra_passes="mips-tfile mips-tdump"
2255 if test x$gnu_ld != xyes
2261 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2263 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2264 if test x$stabs = xyes; then
2265 tm_file="${tm_file} dbx.h"
2267 if test x$gas = xyes
2269 tmake_file=mips/t-bsd-gas
2271 tmake_file=mips/t-bsd
2272 extra_passes="mips-tfile mips-tdump"
2274 if test x$gnu_ld != xyes
2280 mips-*-riscos[56789]sysv4*)
2282 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2283 if test x$stabs = xyes; then
2284 tm_file="${tm_file} dbx.h"
2286 xm_file="xm-siglist.h ${xm_file}"
2287 xmake_file=mips/x-sysv
2288 if test x$gas = xyes
2290 tmake_file=mips/t-svr4-gas
2292 tmake_file=mips/t-svr4
2293 extra_passes="mips-tfile mips-tdump"
2295 if test x$gnu_ld != xyes
2301 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2303 tm_file="mips/svr4-4.h ${tm_file}"
2304 if test x$stabs = xyes; then
2305 tm_file="${tm_file} dbx.h"
2308 xmake_file=mips/x-sysv
2309 if test x$gas = xyes
2311 tmake_file=mips/t-svr4-gas
2313 tmake_file=mips/t-svr4
2314 extra_passes="mips-tfile mips-tdump"
2316 if test x$gnu_ld != xyes
2322 mips-*-riscos[56789]sysv*)
2324 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2325 if test x$stabs = xyes; then
2326 tm_file="${tm_file} dbx.h"
2329 xmake_file=mips/x-sysv
2330 if test x$gas = xyes
2332 tmake_file=mips/t-svr3-gas
2334 tmake_file=mips/t-svr3
2335 extra_passes="mips-tfile mips-tdump"
2337 if test x$gnu_ld != xyes
2342 mips-*-sysv* | mips-*-riscos*sysv*)
2343 tm_file="mips/svr3-4.h ${tm_file}"
2344 if test x$stabs = xyes; then
2345 tm_file="${tm_file} dbx.h"
2348 xmake_file=mips/x-sysv
2349 if test x$gas = xyes
2351 tmake_file=mips/t-svr3-gas
2353 tmake_file=mips/t-svr3
2354 extra_passes="mips-tfile mips-tdump"
2356 if test x$gnu_ld != xyes
2362 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2364 tm_file=mips/mips-5.h
2365 if test x$stabs = xyes; then
2366 tm_file="${tm_file} dbx.h"
2368 if test x$gas = xyes
2370 tmake_file=mips/t-mips-gas
2372 extra_passes="mips-tfile mips-tdump"
2374 if test x$gnu_ld != xyes
2382 tm_file=mips/ecoffl.h
2383 if test x$stabs = xyes; then
2384 tm_file="${tm_file} dbx.h"
2386 tmake_file=mips/t-ecoff
2389 tm_file="gofast.h mips/ecoff.h"
2390 if test x$stabs = xyes; then
2391 tm_file="${tm_file} dbx.h"
2393 tmake_file=mips/t-ecoff
2396 tm_file="mips/elfl.h libgloss.h"
2397 tmake_file=mips/t-ecoff
2400 tm_file="mips/elf.h libgloss.h"
2401 tmake_file=mips/t-ecoff
2404 tm_file="mips/elfl64.h libgloss.h"
2405 tmake_file=mips/t-ecoff
2407 mips64orionel-*-elf*)
2408 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2409 tmake_file=mips/t-ecoff
2412 tm_file="mips/elf64.h libgloss.h"
2413 tmake_file=mips/t-ecoff
2416 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2417 tmake_file=mips/t-ecoff
2419 mips64orion-*-rtems*)
2420 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2421 tmake_file="mips/t-ecoff t-rtems"
2424 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2425 tmake_file=mips/t-r3900
2428 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2429 tmake_file=mips/t-r3900
2430 # FIXME mips-elf should be fixed to use crtstuff.
2433 mips-*-*) # Default MIPS RISC-OS 4.0.
2434 if test x$stabs = xyes; then
2435 tm_file="${tm_file} dbx.h"
2437 if test x$gas = xyes
2439 tmake_file=mips/t-mips-gas
2441 extra_passes="mips-tfile mips-tdump"
2443 if test x$gnu_ld != xyes
2450 tm_file="mn10200/mn10200.h"
2451 if test x$stabs = xyes
2453 tm_file="${tm_file} dbx.h"
2459 tm_file="mn10300/mn10300.h"
2460 if test x$stabs = xyes
2462 tm_file="${tm_file} dbx.h"
2467 tm_file=ns32k/encore.h
2471 tm_file=ns32k/sequent.h
2475 tm_file=ns32k/tek6100.h
2479 tm_file=ns32k/tek6200.h
2482 # This has not been updated to GCC 2.
2485 # xmake_file=ns32k/x-genix
2486 # tm_file=ns32k/genix.h
2490 tm_file=ns32k/merlin.h
2494 tm_file=ns32k/pc532-mach.h
2498 tm_file=ns32k/pc532-min.h
2499 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2504 tm_file=ns32k/netbsd.h
2505 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2506 # On NetBSD, the headers are already okay, except for math.h.
2507 fixincludes=fixinc.wrap
2511 tm_file="${tm_file} pdp11/2bsd.h"
2517 xmake_file=pyr/x-pyr
2524 xmake_file=romp/x-mach
2529 tm_file=rs6000/beos.h
2530 xm_file=rs6000/xm-beos.h
2531 tmake_file=rs6000/t-beos
2532 xmake_file=rs6000/x-beos
2534 powerpc-*-sysv* | powerpc-*-elf*)
2535 tm_file=rs6000/sysv4.h
2536 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2537 xm_defines="USG POSIX"
2538 extra_headers=ppc-asm.h
2539 if test x$gas = xyes
2541 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2543 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2545 xmake_file=rs6000/x-sysv4
2548 tm_file=rs6000/eabiaix.h
2549 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2550 fixincludes=Makefile.in
2551 extra_headers=ppc-asm.h
2554 tm_file=rs6000/eabisim.h
2555 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2556 fixincludes=Makefile.in
2557 extra_headers=ppc-asm.h
2560 tm_file=rs6000/eabi.h
2561 if test x$gas = xyes
2563 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2565 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2567 fixincludes=Makefile.in
2568 extra_headers=ppc-asm.h
2571 tm_file=rs6000/rtems.h
2572 if test x$gas = xyes
2574 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2576 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2578 fixincludes=Makefile.in
2579 extra_headers=ppc-asm.h
2581 powerpc-*-linux-gnulibc1)
2582 tm_file=rs6000/linux.h
2583 xm_file=rs6000/xm-sysv4.h
2584 out_file=rs6000/rs6000.c
2585 if test x$gas = xyes
2587 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2589 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2592 fixincludes=Makefile.in
2593 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2594 extra_headers=ppc-asm.h
2595 if test x$enable_threads = xyes; then
2599 powerpc-*-linux-gnu*)
2600 tm_file=rs6000/linux.h
2601 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2602 xm_defines="USG ${xm_defines}"
2603 out_file=rs6000/rs6000.c
2604 if test x$gas = xyes
2606 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2608 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2611 fixincludes=Makefile.in
2612 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2613 extra_headers=ppc-asm.h
2614 if test x$enable_threads = xyes; then
2618 powerpc-wrs-vxworks*)
2620 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2621 xm_defines="USG POSIX"
2622 tm_file=rs6000/vxppc.h
2623 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2624 extra_headers=ppc-asm.h
2625 thread_file='vxworks'
2627 powerpcle-*-sysv* | powerpcle-*-elf*)
2628 tm_file=rs6000/sysv4le.h
2629 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2630 xm_defines="USG POSIX"
2631 if test x$gas = xyes
2633 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2635 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2637 xmake_file=rs6000/x-sysv4
2638 extra_headers=ppc-asm.h
2640 powerpcle-*-eabisim*)
2641 tm_file=rs6000/eabilesim.h
2642 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2643 fixincludes=Makefile.in
2644 extra_headers=ppc-asm.h
2647 tm_file=rs6000/eabile.h
2648 if test x$gas = xyes
2650 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2652 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2654 fixincludes=Makefile.in
2655 extra_headers=ppc-asm.h
2657 powerpcle-*-winnt* )
2658 tm_file=rs6000/win-nt.h
2659 tmake_file=rs6000/t-winnt
2661 fixincludes=Makefile.in
2662 if test x$enable_threads = xyes; then
2665 extra_headers=ppc-asm.h
2667 powerpcle-*-pe | powerpcle-*-cygwin32)
2668 tm_file=rs6000/cygwin32.h
2669 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2670 tmake_file=rs6000/t-winnt
2671 xmake_file=rs6000/x-cygwin32
2673 fixincludes=Makefile.in
2674 if test x$enable_threads = xyes; then
2678 extra_headers=ppc-asm.h
2680 powerpcle-*-solaris2*)
2681 tm_file=rs6000/sol2.h
2682 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2683 xm_defines="USG POSIX"
2684 if test x$gas = xyes
2686 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2688 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2690 xmake_file=rs6000/x-sysv4
2695 fixincludes=fixinc.svr4;;
2697 fixincludes=fixinc.wrap;;
2699 extra_headers=ppc-asm.h
2702 rs6000-ibm-aix3.[01]*)
2704 tm_file=rs6000/aix31.h
2705 xmake_file=rs6000/x-aix31
2709 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2711 tm_file=rs6000/aix3newas.h
2712 if test x$host != x$target
2714 tmake_file=rs6000/t-xnewas
2716 tmake_file=rs6000/t-newas
2721 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2723 tm_file=rs6000/aix41.h
2724 if test x$host != x$target
2726 tmake_file=rs6000/t-xnewas
2728 tmake_file=rs6000/t-newas
2730 xmake_file=rs6000/x-aix41
2734 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2736 tm_file=rs6000/aix43.h
2737 if test x$host != x$target
2739 tmake_file=rs6000/t-xaix43
2741 tmake_file=rs6000/t-aix43
2743 xmake_file=rs6000/x-aix43
2747 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2749 tm_file=rs6000/aix43.h
2750 if test x$host != x$target
2752 tmake_file=rs6000/t-xaix43
2754 tmake_file=rs6000/t-aix43
2756 xmake_file=rs6000/x-aix43
2766 tm_file=rs6000/mach.h
2767 xm_file="${xm_file} rs6000/xm-mach.h"
2768 xmake_file=rs6000/x-mach
2772 tm_file=rs6000/lynx.h
2773 xm_file=rs6000/xm-lynx.h
2774 tmake_file=rs6000/t-rs6000
2775 xmake_file=rs6000/x-lynx
2783 tmake_file="sh/t-sh t-rtems"
2784 tm_file=sh/rtemself.h
2788 tmake_file="sh/t-sh t-rtems"
2797 xm_file="xm-alloca.h ${xm_file}"
2800 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2801 tm_file=sparc/vxsparc.h
2802 tmake_file=sparc/t-vxsparc
2804 thread_file='vxworks'
2807 tmake_file=sparc/t-sparcbare
2808 tm_file="sparc/aout.h libgloss.h"
2811 tm_file=sparc/netbsd.h
2812 # On NetBSD, the headers are already okay, except for math.h.
2813 fixincludes=fixinc.wrap
2821 tmake_file=sparc/t-elf
2822 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2826 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2827 xm_file="${xm_file} sparc/xm-linux.h"
2828 tm_file=sparc/linux-aout.h
2830 fixincludes=Makefile.in #On Linux, the headers are ok already.
2833 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2834 xm_file="${xm_file} sparc/xm-linux.h"
2836 tm_file=sparc/linux.h
2837 tmake_file="t-linux t-linux-gnulibc1"
2838 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2839 fixincludes=Makefile.in #On Linux, the headers are ok already.
2842 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2843 xm_file="${xm_file} sparc/xm-linux.h"
2845 tm_file=sparc/linux.h
2846 tmake_file="t-linux"
2847 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2848 fixincludes=Makefile.in #On Linux, the headers are ok already.
2850 if test x$enable_threads = xyes; then
2855 if test x$gas = xyes
2857 tm_file=sparc/lynx.h
2859 tm_file=sparc/lynx-ng.h
2861 xm_file=sparc/xm-lynx.h
2862 tmake_file=sparc/t-sunos41
2866 tmake_file="sparc/t-sparcbare t-rtems"
2867 tm_file=sparc/rtems.h
2870 if test x$gnu_ld = xyes
2872 tm_file=sparc/sol2.h
2874 tm_file=sparc/sol2-sld.h
2876 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2877 xm_defines="USG POSIX"
2878 tmake_file=sparc/t-sol2
2879 xmake_file=sparc/x-sysv4
2880 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2885 fixincludes=fixinc.svr4;;
2887 fixincludes=fixinc.wrap;;
2890 if test x${enable_threads} = x; then
2891 enable_threads=$have_pthread_h
2892 if test x${enable_threads} = x; then
2893 enable_threads=$have_thread_h
2896 if test x${enable_threads} = xyes; then
2897 if test x${have_pthread_h} = xyes; then
2900 thread_file='solaris'
2905 tm_file=sparc/sunos4.h
2906 tmake_file=sparc/t-sunos40
2910 tm_file=sparc/sunos4.h
2911 tmake_file=sparc/t-sunos41
2913 if test x$gas = xyes; then
2914 tm_file="${tm_file} sparc/sun4gas.h"
2918 tm_file=sparc/sun4o3.h
2922 tm_file=sparc/sysv4.h
2923 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2924 xm_defines="USG POSIX"
2926 xmake_file=sparc/x-sysv4
2927 extra_parts="crtbegin.o crtend.o"
2930 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2931 xm_defines="USG POSIX"
2932 tm_file=sparc/vxsim.h
2933 tmake_file=sparc/t-vxsparc
2934 xmake_file=sparc/x-sysv4
2937 tm_file="sparc/splet.h libgloss.h"
2938 tmake_file=sparc/t-splet
2941 tm_file="sparc/litecoff.h libgloss.h"
2942 tmake_file=sparc/t-sparclite
2945 tm_file="sparc/lite.h aoutos.h libgloss.h"
2946 tmake_file=sparc/t-sparclite
2949 tmake_file=sparc/t-sp64
2950 tm_file=sparc/sp64-aout.h
2953 tmake_file=sparc/t-sp64
2954 tm_file=sparc/sp64-elf.h
2955 extra_parts="crtbegin.o crtend.o"
2957 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2958 tmake_file=sparc/t-sp64
2959 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2960 tm_file=sparc/linux64.h
2962 fixincludes=Makefile.in # The headers are ok already.
2965 # This hasn't been upgraded to GCC 2.
2966 # tahoe-harris-*) # Harris tahoe, using COFF.
2967 # tm_file=tahoe/harris.h
2969 # tahoe-*-bsd*) # tahoe running BSD
2971 thumb-*-coff* | thumbel-*-coff*)
2973 out_file=arm/thumb.c
2974 xm_file=arm/xm-thumb.h
2975 md_file=arm/thumb.md
2976 tmake_file=arm/t-thumb
2977 fixincludes=Makefile.in # There is nothing to fix
2979 # This hasn't been upgraded to GCC 2.
2986 tm_file="v850/v850.h"
2987 xm_file="v850/xm-v850.h"
2988 tmake_file=v850/t-v850
2989 if test x$stabs = xyes
2991 tm_file="${tm_file} dbx.h"
2995 vax-*-bsd*) # vaxen running BSD
2999 vax-*-sysv*) # vaxen running system V
3000 tm_file="${tm_file} vax/vaxv.h"
3005 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3006 # On NetBSD, the headers are already okay, except for math.h.
3007 fixincludes=fixinc.wrap
3011 vax-*-ultrix*) # vaxen running ultrix
3012 tm_file="${tm_file} vax/ultrix.h"
3016 vax-*-vms*) # vaxen running VMS
3017 xm_file=vax/xm-vms.h
3021 vax-*-*) # vax default entry
3025 xm_file="${xm_file} xm-svr3"
3029 echo "Configuration $machine not supported" 1>&2
3036 ;; # Existing GNU/Linux systems do not use the GNU setup.
3038 # On the GNU system, the setup is just about the same on
3039 # each different CPU. The specific machines that GNU
3040 # supports are matched above and just set $cpu_type.
3041 xm_file="xm-gnu.h ${xm_file}"
3042 tm_file=${cpu_type}/gnu.h
3043 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3044 # GNU always uses ELF.
3046 # GNU tools are the only tools.
3049 # On GNU, the headers are already okay.
3050 fixincludes=Makefile.in
3051 xmake_file=x-linux # These details are the same as Linux.
3052 tmake_file=t-gnu # These are not.
3055 fixincludes=fixinc.svr4
3056 xmake_try_sysv=x-sysv
3057 install_headers_dir=install-headers-cpio
3060 install_headers_dir=install-headers-cpio
3064 # Distinguish i[34567]86
3065 # Also, do not run mips-tfile on MIPS if using gas.
3066 # Process --with-cpu= for PowerPC/rs6000
3067 target_cpu_default2=
3070 target_cpu_default2=1
3073 target_cpu_default2=2
3075 i686-*-* | i786-*-*)
3076 target_cpu_default2=3
3081 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3084 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3087 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3090 target_cpu_default2="MASK_CPU_EV5"
3094 if test x$gas = xyes
3096 if test "$target_cpu_default2" = ""
3098 target_cpu_default2="MASK_GAS"
3100 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3105 case "x$with_cpu" in
3108 target_cpu_default2="TARGET_CPU_generic"
3111 # Distinguish cores, and major variants
3112 # arm7m doesn't exist, but D & I don't affect code
3113 xarm[23678] | xarm250 | xarm[67][01]0 \
3114 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3115 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3116 | xstrongarm | xstrongarm110)
3117 target_cpu_default2="TARGET_CPU_$with_cpu"
3121 echo "--with-cpu must be passed a value" 1>&2
3126 if test x$pass2done = xyes
3128 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3135 mips*-*-ecoff* | mips*-*-elf*)
3136 if test x$gas = xyes
3138 if test x$gnu_ld = xyes
3140 target_cpu_default2=20
3142 target_cpu_default2=16
3147 if test x$gas = xyes
3149 target_cpu_default2=16
3152 powerpc*-*-* | rs6000-*-*)
3153 case "x$with_cpu" in
3157 xcommon | xpower | xpower2 | xpowerpc | xrios \
3158 | xrios1 | xrios2 | xrsc | xrsc1 \
3159 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3160 | x403 | x505 | x801 | x821 | x823 | x860)
3161 target_cpu_default2="\"$with_cpu\""
3165 echo "--with-cpu must be passed a value" 1>&2
3170 if test x$pass2done = xyes
3172 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3179 case ".$with_cpu" in
3181 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3183 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3184 target_cpu_default2="TARGET_CPU_$with_cpu"
3187 if test x$pass2done = xyes
3189 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3197 if test "$target_cpu_default2" != ""
3199 if test "$target_cpu_default" != ""
3201 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3203 target_cpu_default=$target_cpu_default2
3207 # No need for collect2 if we have the GNU linker.
3208 # Actually, there is now; GNU ld doesn't handle the EH info or
3209 # collecting for shared libraries.
3216 # Save data on machine being used to compile GCC in build_xm_file.
3217 # Save data on host machine in vars host_xm_file and host_xmake_file.
3218 if test x$pass1done = x
3220 if test x"$xm_file" = x
3221 then build_xm_file=$cpu_type/xm-$cpu_type.h
3222 else build_xm_file=$xm_file
3224 build_xm_defines=$xm_defines
3225 build_install_headers_dir=$install_headers_dir
3226 build_exeext=$exeext
3229 if test x$pass2done = x
3231 if test x"$xm_file" = x
3232 then host_xm_file=$cpu_type/xm-$cpu_type.h
3233 else host_xm_file=$xm_file
3235 host_xm_defines=$xm_defines
3236 if test x"$xmake_file" = x
3237 then xmake_file=$cpu_type/x-$cpu_type
3239 host_xmake_file="$xmake_file"
3240 host_truncate_target=$truncate_target
3241 host_extra_gcc_objs=$extra_gcc_objs
3242 host_extra_objs=$extra_host_objs
3249 extra_objs="${host_extra_objs} ${extra_objs}"
3251 # Default the target-machine variables that were not explicitly set.
3252 if test x"$tm_file" = x
3253 then tm_file=$cpu_type/$cpu_type.h; fi
3255 if test x$extra_headers = x
3256 then extra_headers=; fi
3258 if test x"$xm_file" = x
3259 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3261 if test x$md_file = x
3262 then md_file=$cpu_type/$cpu_type.md; fi
3264 if test x$out_file = x
3265 then out_file=$cpu_type/$cpu_type.c; fi
3267 if test x"$tmake_file" = x
3268 then tmake_file=$cpu_type/t-$cpu_type
3271 if test x$float_format = x
3272 then float_format=i64
3275 if test x$enable_haifa = x
3278 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3283 # Say what files are being used for the output code and MD file.
3284 echo "Using \`$srcdir/config/$out_file' to output insns."
3285 echo "Using \`$srcdir/config/$md_file' as machine description file."
3288 for f in $tm_file; do
3291 if test $count = ax; then
3292 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3294 echo "Using the following target machine macro files:"
3295 for f in $tm_file; do
3296 echo " $srcdir/config/$f"
3301 for f in $host_xm_file; do
3304 if test $count = ax; then
3305 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3307 echo "Using the following host machine macro files:"
3308 for f in $host_xm_file; do
3309 echo " $srcdir/config/$f"
3313 if test "$host_xm_file" != "$build_xm_file"; then
3315 for f in $build_xm_file; do
3318 if test $count = ax; then
3319 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3321 echo "Using the following build machine macro files:"
3322 for f in $build_xm_file; do
3323 echo " $srcdir/config/$f"
3328 if test x$thread_file = x; then
3329 if test x$target_thread_file != x; then
3330 thread_file=$target_thread_file
3332 thread_file='single'
3336 # Set up the header files.
3337 # $links is the list of header files to create.
3338 # $vars is the list of shell variables with file names to include.
3339 # auto-host.h is the file containing items generated by autoconf and is
3340 # the first file included by config.h.
3342 host_xm_file="auto-host.h ${host_xm_file}"
3344 # If host=build, it is correct to have hconfig include auto-host.h
3345 # as well. If host!=build, we are in error and need to do more
3346 # work to find out the build config parameters.
3347 if test x$host = x$build
3349 build_xm_file="auto-host.h ${build_xm_file}"
3351 # We create a subdir, then run autoconf in the subdir.
3352 # To prevent recursion we set host and build for the new
3353 # invocation of configure to the build for this invocation
3360 /*) realsrcdir=${srcdir};;
3361 *) realsrcdir=../${srcdir};;
3363 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3364 --target=$target --host=$build --build=$build
3366 # We just finished tests for the build machine, so rename
3367 # the file auto-build.h in the gcc directory.
3368 mv auto-host.h ../auto-build.h
3371 build_xm_file="auto-build.h ${build_xm_file}"
3374 vars="host_xm_file tm_file xm_file build_xm_file"
3375 links="config.h tm.h tconfig.h hconfig.h"
3376 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3379 if test -f config.status; then mv -f config.status config.bak; fi
3382 while test -n "$vars"
3384 set $vars; var=$1; shift; vars=$*
3385 set $links; link=$1; shift; links=$*
3386 set $defines; define=$1; shift; defines=$*
3390 # Define TARGET_CPU_DEFAULT if the system wants one.
3391 # This substitutes for lots of *.h files.
3392 if test "$target_cpu_default" != "" -a $link = tm.h
3394 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3397 for file in `eval echo '$'$var`; do
3398 echo "#include \"$file\"" >>$link
3401 for def in `eval echo '$'$define`; do
3402 echo "#ifndef $def" >>$link
3403 echo "#define $def" >>$link
3404 echo "#endif" >>$link
3408 # Truncate the target if necessary
3409 if test x$host_truncate_target != x; then
3410 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3413 # Get the version trigger filename from the toplevel
3414 if test "${with_gcc_version_trigger+set}" = set; then
3415 gcc_version_trigger=$with_gcc_version_trigger
3417 gcc_version_trigger=${srcdir}/version.c
3420 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3423 # Get an absolute path to the GCC top-level source directory
3429 # Conditionalize the makefile for this host machine.
3430 # Make-host contains the concatenation of all host makefile fragments
3431 # [there can be more than one]. This file is built by configure.frag.
3432 host_overrides=Make-host
3433 dep_host_xmake_file=
3434 for f in .. ${host_xmake_file}
3436 if test -f ${srcdir}/config/$f
3438 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3442 # Conditionalize the makefile for this target machine.
3443 # Make-target contains the concatenation of all host makefile fragments
3444 # [there can be more than one]. This file is built by configure.frag.
3445 target_overrides=Make-target
3447 for f in .. ${tmake_file}
3449 if test -f ${srcdir}/config/$f
3451 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3455 # If the host doesn't support symlinks, modify CC in
3456 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3457 # Otherwise, we can use "CC=$(CC)".
3459 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3461 cc_set_by_configure="\$(CC)"
3462 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3465 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3467 symbolic_link="cp -p"
3471 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3472 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3476 out_object_file=`basename $out_file .c`.o
3479 for f in $tm_file; do
3480 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3484 for f in $host_xm_file; do
3485 if test $f != "auto-host.h"; then
3486 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3488 host_xm_file_list="${host_xm_file_list} auto-host.h"
3493 for f in $build_xm_file; do
3494 if test $f != "auto-build.h"; then
3495 if test $f != "auto-host.h"; then
3496 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3498 build_xm_file_list="${build_xm_file_list} auto-host.h"
3501 build_xm_file_list="${build_xm_file_list} auto-build.h"
3505 # Define macro CROSS_COMPILE in compilation
3506 # if this is a cross-compiler.
3507 # Also use all.cross instead of all.internal
3508 # and add cross-make to Makefile.
3509 cross_overrides="/dev/null"
3510 if test x$host != x$target
3512 cross_defines="CROSS=-DCROSS_COMPILE"
3513 cross_overrides="${topdir}/cross-make"
3516 # When building gcc with a cross-compiler, we need to fix a few things.
3517 # This must come after cross-make as we want all.build to override
3519 build_overrides="/dev/null"
3520 if test x$build != x$host
3522 build_overrides="${topdir}/build-make"
3525 # Expand extra_headers to include complete path.
3526 # This substitutes for lots of t-* files.
3528 if test "x$extra_headers" = x
3531 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3532 for file in $extra_headers;
3534 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3538 if test x$use_collect2 = xno; then
3542 # Add a definition of USE_COLLECT2 if system wants one.
3543 # Also tell toplev.c what to do.
3544 # This substitutes for lots of t-* files.
3545 if test x$use_collect2 = x
3550 will_use_collect2="collect2"
3551 maybe_use_collect2="-DUSE_COLLECT2"
3555 # Set MD_DEPS if the real md file is in md.pre-cpp.
3556 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3557 # for line oriented comments, so we must always use a GNU cpp. If
3558 # building gcc with a cross compiler, use the cross compiler just
3559 # built. Otherwise, we can use the cpp just built.
3561 if test "x$md_cppflags" = x
3563 md_file_sub=$srcdir/config/$md_file
3568 # If we have gas in the build tree, make a link to it.
3569 if test -f ../gas/Makefile; then
3570 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3573 # If we have nm in the build tree, make a link to it.
3574 if test -f ../binutils/Makefile; then
3575 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3578 # If we have ld in the build tree, make a link to it.
3579 if test -f ../ld/Makefile; then
3580 # if test x$use_collect2 = x; then
3581 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3583 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3587 # Figure out what assembler alignment features are present.
3588 AC_MSG_CHECKING(assembler alignment features)
3590 gcc_cv_as_alignment_features=
3591 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3592 if test -x as$host_exeext; then
3593 # Build using assembler in the current directory.
3594 gcc_cv_as=./as$host_exeext
3595 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3596 # Single tree build which includes gas.
3597 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3600 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3602 if test x$gcc_cv_gas_version != x; then
3607 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3608 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3610 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3611 # Gas version 2.6 and later support for .balign and .p2align.
3612 # bytes to skip when using .p2align.
3613 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
3614 gcc_cv_as_alignment_features=".balign and .p2align"
3615 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3617 # Gas version 2.8 and later support specifying the maximum
3618 # bytes to skip when using .p2align.
3619 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
3620 gcc_cv_as_alignment_features=".p2align including maximum skip"
3621 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3624 elif test x$host = x$target; then
3626 gcc_cv_as=as$host_exeext
3628 if test x$gcc_cv_as != x; then
3629 # Check if we have .balign and .p2align
3630 echo ".balign 4" > conftest.s
3631 echo ".p2align 2" >> conftest.s
3632 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3633 gcc_cv_as_alignment_features=".balign and .p2align"
3634 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3636 rm -f conftest.s conftest.o
3637 # Check if specifying the maximum bytes to skip when
3638 # using .p2align is supported.
3639 echo ".p2align 4,,7" > conftest.s
3640 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3641 gcc_cv_as_alignment_features=".p2align including maximum skip"
3642 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3644 rm -f conftest.s conftest.o
3646 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3648 # Figure out what language subdirectories are present.
3650 for lang in ${srcdir}/*/config-lang.in ..
3654 # The odd quoting in the next line works around
3655 # an apparent bug in bash 1.12 on linux.
3657 ${srcdir}/ada/config-lang.in)
3658 if test x$gnat = xyes ; then
3659 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3662 ${srcdir}/[*]/config-lang.in) ;;
3663 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3668 # Make gthr-default.h if we have a thread file.
3670 if test $thread_file != single; then
3671 rm -f gthr-default.h
3672 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3673 gthread_flags=-DHAVE_GTHR_DEFAULT
3675 AC_SUBST(gthread_flags)
3677 # Make empty files to contain the specs and options for each language.
3678 # Then add #include lines to for a compiler that has specs and/or options.
3683 rm -f specs.h options.h gencheck.h
3684 touch specs.h options.h gencheck.h
3685 for subdir in . $subdirs
3687 if test -f $srcdir/$subdir/lang-specs.h; then
3688 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3689 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3691 if test -f $srcdir/$subdir/lang-options.h; then
3692 echo "#include \"$subdir/lang-options.h\"" >>options.h
3693 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3695 if test -f $srcdir/$subdir/$subdir-tree.def; then
3696 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3697 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3701 # These (without "all_") are set in each config-lang.in.
3702 # `language' must be a single word so is spelled singularly.
3708 all_outputs=Makefile
3709 # List of language makefile fragments.
3714 # Add the language fragments.
3715 # Languages are added via two mechanisms. Some information must be
3716 # recorded in makefile variables, these are defined in config-lang.in.
3717 # We accumulate them and plug them into the main Makefile.
3718 # The other mechanism is a set of hooks for each of the main targets
3719 # like `clean', `install', etc.
3721 language_fragments="Make-lang"
3722 language_hooks="Make-hooks"
3725 for s in .. $subdirs
3737 . ${srcdir}/$s/config-lang.in
3738 if test "x$language" = x
3740 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3743 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3744 all_languages="$all_languages $language"
3745 if test "x$boot_language" = xyes
3747 all_boot_languages="$all_boot_languages $language"
3749 all_compilers="$all_compilers $compilers"
3750 all_stagestuff="$all_stagestuff $stagestuff"
3751 all_diff_excludes="$all_diff_excludes $diff_excludes"
3752 all_headers="$all_headers $headers"
3753 all_outputs="$all_outputs $outputs"
3754 if test x$outputs = x
3756 oldstyle_subdirs="$oldstyle_subdirs $s"
3758 all_lib2funcs="$all_lib2funcs $lib2funcs"
3762 # Since we can't use `::' targets, we link each language in
3763 # with a set of hooks, reached indirectly via lang.${target}.
3767 target_list="all.build all.cross start.encap rest.encap \
3769 install-normal install-common install-info install-man \
3771 mostlyclean clean distclean extraclean maintainer-clean \
3772 stage1 stage2 stage3 stage4"
3773 for t in $target_list
3776 for l in .. $all_languages
3778 if test $l != ".."; then
3782 echo "lang.$t: $x" >> Make-hooks
3785 # If we're not building in srcdir, create .gdbinit.
3787 if test ! -f Makefile.in; then
3788 echo "dir ." > .gdbinit
3789 echo "dir ${srcdir}" >> .gdbinit
3790 if test x$gdb_needs_out_file_path = xyes
3792 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3794 if test "x$subdirs" != x; then
3797 echo "dir ${srcdir}/$s" >> .gdbinit
3800 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3803 # Define variables host_canonical and build_canonical
3804 # because some Cygnus local changes in the Makefile depend on them.
3805 build_canonical=${build}
3806 host_canonical=${host}
3808 if test "${host}" != "${target}" ; then
3809 target_subdir=${target}/
3811 AC_SUBST(build_canonical)
3812 AC_SUBST(host_canonical)
3813 AC_SUBST(target_subdir)
3815 # If this is using newlib, then define inhibit_libc in
3816 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3817 # libgcc.a, but that's OK because newib should have its own version of
3820 if test x$with_newlib = xyes; then
3821 inhibit_libc=-Dinhibit_libc
3823 AC_SUBST(inhibit_libc)
3825 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3828 if test x$enable_haifa = xyes; then
3829 echo "Using the Haifa scheduler."
3831 sched_cflags=-DHAIFA
3833 AC_SUBST(sched_prefix)
3834 AC_SUBST(sched_cflags)
3835 if test x$enable_haifa != x; then
3836 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3837 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3845 # Warn if using init_priority.
3846 AC_MSG_CHECKING(whether to enable init_priority by default)
3847 if test x$enable_init_priority != xyes; then
3848 enable_init_priority=no
3850 AC_MSG_RESULT($enable_init_priority)
3852 # Nothing to do for FLOAT_H, float_format already handled.
3856 # Process the language and host/target makefile fragments.
3857 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3859 # Substitute configuration variables
3861 AC_SUBST(all_languages)
3862 AC_SUBST(all_boot_languages)
3863 AC_SUBST(all_compilers)
3864 AC_SUBST(all_lang_makefiles)
3865 AC_SUBST(all_stagestuff)
3866 AC_SUBST(all_diff_excludes)
3867 AC_SUBST(all_lib2funcs)
3868 AC_SUBST(all_headers)
3870 AC_SUBST(extra_passes)
3871 AC_SUBST(extra_programs)
3872 AC_SUBST(extra_parts)
3873 AC_SUBST(extra_c_objs)
3874 AC_SUBST(extra_cxx_objs)
3875 AC_SUBST(extra_cpp_objs)
3876 AC_SUBST(extra_c_flags)
3877 AC_SUBST(extra_objs)
3878 AC_SUBST(host_extra_gcc_objs)
3879 AC_SUBST(extra_headers_list)
3880 AC_SUBST(dep_host_xmake_file)
3881 AC_SUBST(dep_tmake_file)
3883 AC_SUBST(out_object_file)
3885 AC_SUBST(tm_file_list)
3886 AC_SUBST(build_xm_file_list)
3887 AC_SUBST(host_xm_file_list)
3888 AC_SUBST(lang_specs_files)
3889 AC_SUBST(lang_options_files)
3890 AC_SUBST(lang_tree_files)
3891 AC_SUBST(thread_file)
3892 AC_SUBST(objc_boehm_gc)
3893 AC_SUBST(gcc_version)
3894 AC_SUBST(gcc_version_trigger)
3895 AC_SUBST(local_prefix)
3896 AC_SUBST(gxx_include_dir)
3897 AC_SUBST(fixincludes)
3898 AC_SUBST(build_install_headers_dir)
3899 AC_SUBST(build_exeext)
3900 AC_SUBST(host_exeext)
3901 AC_SUBST(float_format)
3902 AC_SUBST(will_use_collect2)
3903 AC_SUBST(maybe_use_collect2)
3904 AC_SUBST(cc_set_by_configure)
3905 AC_SUBST(stage_prefix_set_by_configure)
3907 AC_SUBST(symbolic_link)
3909 AC_SUBST_FILE(target_overrides)
3910 AC_SUBST_FILE(host_overrides)
3911 AC_SUBST(cross_defines)
3912 AC_SUBST_FILE(cross_overrides)
3913 AC_SUBST_FILE(build_overrides)
3914 AC_SUBST_FILE(language_fragments)
3915 AC_SUBST_FILE(language_hooks)
3917 # Echo that links are built
3918 if test x$host = x$target
3926 if test x$host != x$build
3928 str3=" on a $build system"
3931 if test "x$str2" != x || test "x$str3" != x
3936 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3938 if test "x$str2" != x || test "x$str3" != x
3940 echo " ${str2}${str3}." 1>&2
3943 # Truncate the target if necessary
3944 if test x$host_truncate_target != x; then
3945 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3948 # Configure the subdirectories
3949 # AC_CONFIG_SUBDIRS($subdirs)
3951 # Create the Makefile
3952 # and configure language subdirectories
3953 AC_OUTPUT($all_outputs,
3955 . $srcdir/configure.lang
3956 case x$CONFIG_HEADERS in
3957 xauto-host.h:config.in)
3960 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3961 # bootstrapping and the installation procedure can still use
3962 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3963 # FLAGS_TO_PASS has been modified to solve the problem there.
3964 # This is virtually a duplicate of what happens in configure.lang; we do
3965 # an extra check to make sure this only happens if ln -s can be used.
3966 if test "$symbolic_link" = "ln -s"; then
3967 for d in .. ${subdirs} ; do
3968 if test $d != ..; then
3971 for t in stage1 stage2 stage3 stage4 include
3974 $symbolic_link ../$t $t 2>/dev/null
3985 target_alias='${target_alias}'
3987 subdirs='${subdirs}'
3988 oldstyle_subdirs='${oldstyle_subdirs}'
3989 symbolic_link='${symbolic_link}'
3990 program_transform_set='${program_transform_set}'
3991 program_transform_name='${program_transform_name}'
3992 dep_host_xmake_file='${dep_host_xmake_file}'
3993 host_xmake_file='${host_xmake_file}'
3994 dep_tmake_file='${dep_tmake_file}'
3995 tmake_file='${tmake_file}'
3996 thread_file='${thread_file}'
3997 gcc_version='${gcc_version}'
3998 gcc_version_trigger='${gcc_version_trigger}'
3999 local_prefix='${local_prefix}'
4000 build_install_headers_dir='${build_install_headers_dir}'
4001 build_exeext='${build_exeext}'
4002 host_exeext='${host_exeext}'
4003 out_file='${out_file}'
4004 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4005 SET_MAKE='${SET_MAKE}'
4006 target_list='${target_list}'
4007 target_overrides='${target_overrides}'
4008 host_overrides='${host_overrides}'
4009 cross_defines='${cross_defines}'
4010 cross_overrides='${cross_overrides}'
4011 build_overrides='${build_overrides}'