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
1780 if test x$enable_threads = xyes; then
1785 if test x$with_fp = xno
1787 tm_file=m68k/sun3n3.h
1789 tm_file=m68k/sun3o3.h
1793 extra_headers=math-68881.h
1795 m68k-sun-sunos*) # For SunOS 4 (the default).
1796 if test x$with_fp = xno
1798 tm_file=m68k/sun3n.h
1804 extra_headers=math-68881.h
1807 tm_file=m68k/vxm68k.h
1808 tmake_file=m68k/t-vxworks68
1809 extra_headers=math-68881.h
1810 thread_file='vxworks'
1814 tmake_file=m68k/t-m68kbare
1815 tm_file="m68k/m68k-aout.h libgloss.h"
1816 extra_headers=math-68881.h
1820 tmake_file=m68k/t-m68kbare
1821 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1822 extra_headers=math-68881.h
1826 if test x$gas = xyes
1830 tm_file=m68k/lynx-ng.h
1832 xm_file=m68k/xm-lynx.h
1834 tmake_file=m68k/t-lynx
1835 extra_headers=math-68881.h
1839 tm_file=m68k/netbsd.h
1840 # On NetBSD, the headers are already okay, except for math.h.
1841 fixincludes=fixinc.wrap
1845 m68k-*-sysv3*) # Motorola m68k's running system V.3
1846 xm_file="xm-alloca.h ${xm_file}"
1848 xmake_file=m68k/x-m68kv
1849 extra_parts="crtbegin.o crtend.o"
1850 extra_headers=math-68881.h
1853 m68k-*-sysv4*) # Motorola m68k's running system V.4
1854 tm_file=m68k/m68kv4.h
1855 xm_file="xm-alloca.h ${xm_file}"
1858 extra_parts="crtbegin.o crtend.o"
1859 extra_headers=math-68881.h
1862 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1865 tm_file=m68k/linux-aout.h
1866 tmake_file="t-linux-aout m68k/t-linux-aout"
1867 fixincludes=Makefile.in # The headers are ok already.
1868 extra_headers=math-68881.h
1872 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1873 # with ELF format using the
1874 # GNU/Linux C library 5
1876 tm_file=m68k/linux.h
1877 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1878 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1879 fixincludes=Makefile.in # The headers are ok already.
1880 extra_headers=math-68881.h
1884 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1885 # with ELF format using glibc 2
1886 # aka the GNU/Linux C library 6.
1888 tm_file=m68k/linux.h
1889 tmake_file="t-linux m68k/t-linux"
1890 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1891 fixincludes=Makefile.in # The headers are ok already.
1892 extra_headers=math-68881.h
1895 if test x$enable_threads = xyes; then
1900 tmake_file=m68k/t-m68kbare
1901 tm_file=m68k/m68k-psos.h
1902 extra_headers=math-68881.h
1906 tmake_file="m68k/t-m68kbare t-rtems"
1907 tm_file=m68k/rtems.h
1908 extra_headers=math-68881.h
1915 tm_file=m88k/dguxbcs.h
1916 tmake_file=m88k/t-dguxbcs
1920 tmake_file=m88k/t-dgux
1923 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1924 xmake_file=m88k/x-dgux
1925 if test x$gas = xyes
1927 tmake_file=m88k/t-dgux-gas
1929 fixincludes=fixinc.dgux
1931 m88k-dolphin-sysv3*)
1932 tm_file=m88k/dolph.h
1933 extra_parts="crtbegin.o crtend.o"
1934 xm_file="m88k/xm-sysv3.h ${xm_file}"
1935 xmake_file=m88k/x-dolph
1936 if test x$gas = xyes
1938 tmake_file=m88k/t-m88k-gas
1941 m88k-tektronix-sysv3)
1942 tm_file=m88k/tekXD88.h
1943 extra_parts="crtbegin.o crtend.o"
1944 xm_file="m88k/xm-sysv3.h ${xm_file}"
1945 xmake_file=m88k/x-tekXD88
1946 if test x$gas = xyes
1948 tmake_file=m88k/t-m88k-gas
1952 tm_file=m88k/m88k-aout.h
1955 tm_file=m88k/m88k-coff.h
1956 tmake_file=m88k/t-bug
1960 extra_parts="crtbegin.o crtend.o"
1961 if test x$gas = xyes
1963 tmake_file=m88k/t-luna-gas
1965 tmake_file=m88k/t-luna
1969 tm_file=m88k/sysv3.h
1970 extra_parts="crtbegin.o crtend.o"
1971 xm_file="m88k/xm-sysv3.h ${xm_file}"
1972 xmake_file=m88k/x-sysv3
1973 if test x$gas = xyes
1975 tmake_file=m88k/t-m88k-gas
1979 tm_file=m88k/sysv4.h
1980 extra_parts="crtbegin.o crtend.o"
1981 xmake_file=m88k/x-sysv4
1982 tmake_file=m88k/t-sysv4
1984 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1985 tm_file=mips/iris6.h
1986 xm_file=mips/xm-iris6.h
1987 fixincludes=fixinc.irix
1988 xmake_file=mips/x-iris6
1989 tmake_file=mips/t-iris6
1990 # if test x$enable_threads = xyes; then
1991 # thread_file='irix'
1995 tm_file="mips/elf.h libgloss.h"
1996 tmake_file=mips/t-ecoff
1999 extra_parts="crtbegin.o crtend.o"
2000 # thread_file='vxworks'
2002 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2003 tm_file="mips/iris6.h mips/cross64.h"
2005 xm_file="mips/xm-iris5.h"
2006 fixincludes=Makefile.in
2007 xmake_file=mips/x-iris
2008 tmake_file=mips/t-cross64
2009 # See comment in mips/iris[56].h files.
2011 # if test x$enable_threads = xyes; then
2012 # thread_file='irix'
2016 if test x$gas = xyes
2018 if test x$stabs = xyes
2020 tm_file=mips/iris5gdb.h
2022 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2025 tm_file=mips/sni-svr4.h
2028 xmake_file=mips/x-sni-svr4
2029 tmake_file=mips/t-mips-gas
2030 if test x$gnu_ld != xyes
2035 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2036 if test x$gas = xyes
2038 tm_file="mips/iris5.h mips/iris5gas.h"
2039 if test x$stabs = xyes
2041 tm_file="${tm_file} dbx.h"
2044 tm_file=mips/iris5.h
2047 xm_file="mips/xm-iris5.h"
2048 fixincludes=fixinc.irix
2049 xmake_file=mips/x-iris
2050 # mips-tfile doesn't work yet
2051 tmake_file=mips/t-mips-gas
2052 # See comment in mips/iris5.h file.
2054 # if test x$enable_threads = xyes; then
2055 # thread_file='irix'
2058 mips-sgi-irix4loser*) # Mostly like a MIPS.
2059 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2060 if test x$stabs = xyes; then
2061 tm_file="${tm_file} dbx.h"
2064 xmake_file=mips/x-iris
2065 if test x$gas = xyes
2067 tmake_file=mips/t-mips-gas
2069 extra_passes="mips-tfile mips-tdump"
2071 if test x$gnu_ld != xyes
2075 # if test x$enable_threads = xyes; then
2076 # thread_file='irix'
2079 mips-sgi-irix4*) # Mostly like a MIPS.
2080 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2081 if test x$stabs = xyes; then
2082 tm_file="${tm_file} dbx.h"
2085 xmake_file=mips/x-iris
2086 if test x$gas = xyes
2088 tmake_file=mips/t-mips-gas
2090 extra_passes="mips-tfile mips-tdump"
2092 if test x$gnu_ld != xyes
2096 # if test x$enable_threads = xyes; then
2097 # thread_file='irix'
2100 mips-sgi-*) # Mostly like a MIPS.
2101 tm_file="mips/iris3.h ${tm_file}"
2102 if test x$stabs = xyes; then
2103 tm_file="${tm_file} dbx.h"
2106 xmake_file=mips/x-iris3
2107 if test x$gas = xyes
2109 tmake_file=mips/t-mips-gas
2111 extra_passes="mips-tfile mips-tdump"
2113 if test x$gnu_ld != xyes
2118 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2119 tm_file="mips/osfrose.h ${tm_file}"
2120 xmake_file=mips/x-osfrose
2121 tmake_file=mips/t-osfrose
2122 extra_objs=halfpic.o
2125 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2126 tm_file=mips/dec-osf1.h
2127 if test x$stabs = xyes; then
2128 tm_file="${tm_file} dbx.h"
2130 xmake_file=mips/x-dec-osf1
2131 if test x$gas = xyes
2133 tmake_file=mips/t-mips-gas
2135 tmake_file=mips/t-ultrix
2136 extra_passes="mips-tfile mips-tdump"
2138 if test x$gnu_ld != xyes
2143 mips-dec-bsd*) # Decstation running 4.4 BSD
2144 tm_file=mips/dec-bsd.h
2146 if test x$gas = xyes
2148 tmake_file=mips/t-mips-gas
2150 tmake_file=mips/t-ultrix
2151 extra_passes="mips-tfile mips-tdump"
2153 if test x$gnu_ld != xyes
2158 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2159 tm_file=mips/netbsd.h
2160 # On NetBSD, the headers are already okay, except for math.h.
2161 fixincludes=fixinc.wrap
2164 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2165 tm_file="mips/news4.h ${tm_file}"
2166 if test x$stabs = xyes; then
2167 tm_file="${tm_file} dbx.h"
2169 if test x$gas = xyes
2171 tmake_file=mips/t-mips-gas
2173 extra_passes="mips-tfile mips-tdump"
2175 if test x$gnu_ld != xyes
2179 xmake_file=mips/x-sony
2181 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2182 # That is based on svr4.
2183 # t-svr4 is not right because this system doesn't use ELF.
2184 tm_file="mips/news5.h ${tm_file}"
2185 if test x$stabs = xyes; then
2186 tm_file="${tm_file} dbx.h"
2188 xm_file="xm-siglist.h ${xm_file}"
2190 if test x$gas = xyes
2192 tmake_file=mips/t-mips-gas
2194 extra_passes="mips-tfile mips-tdump"
2196 if test x$gnu_ld != xyes
2201 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2202 tm_file="mips/svr4-5.h mips/svr4-t.h"
2203 if test x$stabs = xyes; then
2204 tm_file="${tm_file} dbx.h"
2206 xm_file="xm-siglist.h ${xm_file}"
2208 xmake_file=mips/x-sysv
2209 if test x$gas = xyes
2211 tmake_file=mips/t-mips-gas
2212 extra_parts="crtbegin.o crtend.o"
2214 tmake_file=mips/t-mips
2215 extra_passes="mips-tfile mips-tdump"
2217 if test x$gnu_ld != xyes
2222 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2223 tm_file="mips/ultrix.h ${tm_file}"
2224 if test x$stabs = xyes; then
2225 tm_file="${tm_file} dbx.h"
2227 xmake_file=mips/x-ultrix
2228 if test x$gas = xyes
2230 tmake_file=mips/t-mips-gas
2232 tmake_file=mips/t-ultrix
2233 extra_passes="mips-tfile mips-tdump"
2235 if test x$gnu_ld != xyes
2241 mips-*-riscos[56789]bsd*)
2243 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2244 if test x$stabs = xyes; then
2245 tm_file="${tm_file} dbx.h"
2247 if test x$gas = xyes
2249 tmake_file=mips/t-bsd-gas
2251 tmake_file=mips/t-bsd
2252 extra_passes="mips-tfile mips-tdump"
2254 if test x$gnu_ld != xyes
2260 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2262 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2263 if test x$stabs = xyes; then
2264 tm_file="${tm_file} dbx.h"
2266 if test x$gas = xyes
2268 tmake_file=mips/t-bsd-gas
2270 tmake_file=mips/t-bsd
2271 extra_passes="mips-tfile mips-tdump"
2273 if test x$gnu_ld != xyes
2279 mips-*-riscos[56789]sysv4*)
2281 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2282 if test x$stabs = xyes; then
2283 tm_file="${tm_file} dbx.h"
2285 xm_file="xm-siglist.h ${xm_file}"
2286 xmake_file=mips/x-sysv
2287 if test x$gas = xyes
2289 tmake_file=mips/t-svr4-gas
2291 tmake_file=mips/t-svr4
2292 extra_passes="mips-tfile mips-tdump"
2294 if test x$gnu_ld != xyes
2300 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2302 tm_file="mips/svr4-4.h ${tm_file}"
2303 if test x$stabs = xyes; then
2304 tm_file="${tm_file} dbx.h"
2307 xmake_file=mips/x-sysv
2308 if test x$gas = xyes
2310 tmake_file=mips/t-svr4-gas
2312 tmake_file=mips/t-svr4
2313 extra_passes="mips-tfile mips-tdump"
2315 if test x$gnu_ld != xyes
2321 mips-*-riscos[56789]sysv*)
2323 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2324 if test x$stabs = xyes; then
2325 tm_file="${tm_file} dbx.h"
2328 xmake_file=mips/x-sysv
2329 if test x$gas = xyes
2331 tmake_file=mips/t-svr3-gas
2333 tmake_file=mips/t-svr3
2334 extra_passes="mips-tfile mips-tdump"
2336 if test x$gnu_ld != xyes
2341 mips-*-sysv* | mips-*-riscos*sysv*)
2342 tm_file="mips/svr3-4.h ${tm_file}"
2343 if test x$stabs = xyes; then
2344 tm_file="${tm_file} dbx.h"
2347 xmake_file=mips/x-sysv
2348 if test x$gas = xyes
2350 tmake_file=mips/t-svr3-gas
2352 tmake_file=mips/t-svr3
2353 extra_passes="mips-tfile mips-tdump"
2355 if test x$gnu_ld != xyes
2361 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2363 tm_file=mips/mips-5.h
2364 if test x$stabs = xyes; then
2365 tm_file="${tm_file} dbx.h"
2367 if test x$gas = xyes
2369 tmake_file=mips/t-mips-gas
2371 extra_passes="mips-tfile mips-tdump"
2373 if test x$gnu_ld != xyes
2381 tm_file=mips/ecoffl.h
2382 if test x$stabs = xyes; then
2383 tm_file="${tm_file} dbx.h"
2385 tmake_file=mips/t-ecoff
2388 tm_file="gofast.h mips/ecoff.h"
2389 if test x$stabs = xyes; then
2390 tm_file="${tm_file} dbx.h"
2392 tmake_file=mips/t-ecoff
2395 tm_file="mips/elfl.h libgloss.h"
2396 tmake_file=mips/t-ecoff
2399 tm_file="mips/elf.h libgloss.h"
2400 tmake_file=mips/t-ecoff
2403 tm_file="mips/elfl64.h libgloss.h"
2404 tmake_file=mips/t-ecoff
2406 mips64orionel-*-elf*)
2407 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2408 tmake_file=mips/t-ecoff
2411 tm_file="mips/elf64.h libgloss.h"
2412 tmake_file=mips/t-ecoff
2415 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2416 tmake_file=mips/t-ecoff
2418 mips64orion-*-rtems*)
2419 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2420 tmake_file="mips/t-ecoff t-rtems"
2423 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2424 tmake_file=mips/t-r3900
2427 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2428 tmake_file=mips/t-r3900
2429 # FIXME mips-elf should be fixed to use crtstuff.
2432 mips-*-*) # Default MIPS RISC-OS 4.0.
2433 if test x$stabs = xyes; then
2434 tm_file="${tm_file} dbx.h"
2436 if test x$gas = xyes
2438 tmake_file=mips/t-mips-gas
2440 extra_passes="mips-tfile mips-tdump"
2442 if test x$gnu_ld != xyes
2449 tm_file="mn10200/mn10200.h"
2450 if test x$stabs = xyes
2452 tm_file="${tm_file} dbx.h"
2458 tm_file="mn10300/mn10300.h"
2459 if test x$stabs = xyes
2461 tm_file="${tm_file} dbx.h"
2466 tm_file=ns32k/encore.h
2470 tm_file=ns32k/sequent.h
2474 tm_file=ns32k/tek6100.h
2478 tm_file=ns32k/tek6200.h
2481 # This has not been updated to GCC 2.
2484 # xmake_file=ns32k/x-genix
2485 # tm_file=ns32k/genix.h
2489 tm_file=ns32k/merlin.h
2493 tm_file=ns32k/pc532-mach.h
2497 tm_file=ns32k/pc532-min.h
2498 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2503 tm_file=ns32k/netbsd.h
2504 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2505 # On NetBSD, the headers are already okay, except for math.h.
2506 fixincludes=fixinc.wrap
2510 tm_file="${tm_file} pdp11/2bsd.h"
2516 xmake_file=pyr/x-pyr
2523 xmake_file=romp/x-mach
2528 tm_file=rs6000/beos.h
2529 xm_file=rs6000/xm-beos.h
2530 tmake_file=rs6000/t-beos
2531 xmake_file=rs6000/x-beos
2533 powerpc-*-sysv* | powerpc-*-elf*)
2534 tm_file=rs6000/sysv4.h
2535 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2536 xm_defines="USG POSIX"
2537 extra_headers=ppc-asm.h
2538 if test x$gas = xyes
2540 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2542 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2544 xmake_file=rs6000/x-sysv4
2547 tm_file=rs6000/eabiaix.h
2548 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2549 fixincludes=Makefile.in
2550 extra_headers=ppc-asm.h
2553 tm_file=rs6000/eabisim.h
2554 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2555 fixincludes=Makefile.in
2556 extra_headers=ppc-asm.h
2559 tm_file=rs6000/eabi.h
2560 if test x$gas = xyes
2562 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2564 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2566 fixincludes=Makefile.in
2567 extra_headers=ppc-asm.h
2570 tm_file=rs6000/rtems.h
2571 if test x$gas = xyes
2573 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2575 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2577 fixincludes=Makefile.in
2578 extra_headers=ppc-asm.h
2580 powerpc-*-linux-gnulibc1)
2581 tm_file=rs6000/linux.h
2582 xm_file=rs6000/xm-sysv4.h
2583 out_file=rs6000/rs6000.c
2584 if test x$gas = xyes
2586 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2588 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2591 fixincludes=Makefile.in
2592 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2593 extra_headers=ppc-asm.h
2594 if test x$enable_threads = xyes; then
2598 powerpc-*-linux-gnu*)
2599 tm_file=rs6000/linux.h
2600 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2601 xm_defines="USG ${xm_defines}"
2602 out_file=rs6000/rs6000.c
2603 if test x$gas = xyes
2605 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2607 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2610 fixincludes=Makefile.in
2611 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2612 extra_headers=ppc-asm.h
2613 if test x$enable_threads = xyes; then
2617 powerpc-wrs-vxworks*)
2619 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2620 xm_defines="USG POSIX"
2621 tm_file=rs6000/vxppc.h
2622 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2623 extra_headers=ppc-asm.h
2624 thread_file='vxworks'
2626 powerpcle-*-sysv* | powerpcle-*-elf*)
2627 tm_file=rs6000/sysv4le.h
2628 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2629 xm_defines="USG POSIX"
2630 if test x$gas = xyes
2632 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2634 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2636 xmake_file=rs6000/x-sysv4
2637 extra_headers=ppc-asm.h
2639 powerpcle-*-eabisim*)
2640 tm_file=rs6000/eabilesim.h
2641 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2642 fixincludes=Makefile.in
2643 extra_headers=ppc-asm.h
2646 tm_file=rs6000/eabile.h
2647 if test x$gas = xyes
2649 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2651 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2653 fixincludes=Makefile.in
2654 extra_headers=ppc-asm.h
2656 powerpcle-*-winnt* )
2657 tm_file=rs6000/win-nt.h
2658 tmake_file=rs6000/t-winnt
2660 fixincludes=Makefile.in
2661 if test x$enable_threads = xyes; then
2664 extra_headers=ppc-asm.h
2666 powerpcle-*-pe | powerpcle-*-cygwin32)
2667 tm_file=rs6000/cygwin32.h
2668 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2669 tmake_file=rs6000/t-winnt
2670 xmake_file=rs6000/x-cygwin32
2672 fixincludes=Makefile.in
2673 if test x$enable_threads = xyes; then
2677 extra_headers=ppc-asm.h
2679 powerpcle-*-solaris2*)
2680 tm_file=rs6000/sol2.h
2681 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2682 xm_defines="USG POSIX"
2683 if test x$gas = xyes
2685 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2687 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2689 xmake_file=rs6000/x-sysv4
2694 fixincludes=fixinc.svr4;;
2696 fixincludes=fixinc.wrap;;
2698 extra_headers=ppc-asm.h
2701 rs6000-ibm-aix3.[01]*)
2703 tm_file=rs6000/aix31.h
2704 xmake_file=rs6000/x-aix31
2708 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2710 tm_file=rs6000/aix3newas.h
2711 if test x$host != x$target
2713 tmake_file=rs6000/t-xnewas
2715 tmake_file=rs6000/t-newas
2720 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2722 tm_file=rs6000/aix41.h
2723 if test x$host != x$target
2725 tmake_file=rs6000/t-xnewas
2727 tmake_file=rs6000/t-newas
2729 xmake_file=rs6000/x-aix41
2733 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2735 tm_file=rs6000/aix43.h
2736 if test x$host != x$target
2738 tmake_file=rs6000/t-xaix43
2740 tmake_file=rs6000/t-aix43
2742 xmake_file=rs6000/x-aix43
2746 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2748 tm_file=rs6000/aix43.h
2749 if test x$host != x$target
2751 tmake_file=rs6000/t-xaix43
2753 tmake_file=rs6000/t-aix43
2755 xmake_file=rs6000/x-aix43
2765 tm_file=rs6000/mach.h
2766 xm_file="${xm_file} rs6000/xm-mach.h"
2767 xmake_file=rs6000/x-mach
2771 tm_file=rs6000/lynx.h
2772 xm_file=rs6000/xm-lynx.h
2773 tmake_file=rs6000/t-rs6000
2774 xmake_file=rs6000/x-lynx
2782 tmake_file="sh/t-sh t-rtems"
2783 tm_file=sh/rtemself.h
2787 tmake_file="sh/t-sh t-rtems"
2796 xm_file="xm-alloca.h ${xm_file}"
2799 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2800 tm_file=sparc/vxsparc.h
2801 tmake_file=sparc/t-vxsparc
2803 thread_file='vxworks'
2806 tmake_file=sparc/t-sparcbare
2807 tm_file="sparc/aout.h libgloss.h"
2810 tm_file=sparc/netbsd.h
2811 # On NetBSD, the headers are already okay, except for math.h.
2812 fixincludes=fixinc.wrap
2820 tmake_file=sparc/t-elf
2821 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2825 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2826 xm_file="${xm_file} sparc/xm-linux.h"
2827 tm_file=sparc/linux-aout.h
2829 fixincludes=Makefile.in #On Linux, the headers are ok already.
2832 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2833 xm_file="${xm_file} sparc/xm-linux.h"
2835 tm_file=sparc/linux.h
2836 tmake_file="t-linux t-linux-gnulibc1"
2837 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2838 fixincludes=Makefile.in #On Linux, the headers are ok already.
2841 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2842 xm_file="${xm_file} sparc/xm-linux.h"
2844 tm_file=sparc/linux.h
2845 tmake_file="t-linux"
2846 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2847 fixincludes=Makefile.in #On Linux, the headers are ok already.
2849 if test x$enable_threads = xyes; then
2854 if test x$gas = xyes
2856 tm_file=sparc/lynx.h
2858 tm_file=sparc/lynx-ng.h
2860 xm_file=sparc/xm-lynx.h
2861 tmake_file=sparc/t-sunos41
2865 tmake_file="sparc/t-sparcbare t-rtems"
2866 tm_file=sparc/rtems.h
2869 if test x$gnu_ld = xyes
2871 tm_file=sparc/sol2.h
2873 tm_file=sparc/sol2-sld.h
2875 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2876 xm_defines="USG POSIX"
2877 tmake_file=sparc/t-sol2
2878 xmake_file=sparc/x-sysv4
2879 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2884 fixincludes=fixinc.svr4;;
2886 fixincludes=fixinc.wrap;;
2889 if test x${enable_threads} = x; then
2890 enable_threads=$have_pthread_h
2891 if test x${enable_threads} = x; then
2892 enable_threads=$have_thread_h
2895 if test x${enable_threads} = xyes; then
2896 if test x${have_pthread_h} = xyes; then
2899 thread_file='solaris'
2904 tm_file=sparc/sunos4.h
2905 tmake_file=sparc/t-sunos40
2909 tm_file=sparc/sunos4.h
2910 tmake_file=sparc/t-sunos41
2912 if test x$gas = xyes; then
2913 tm_file="${tm_file} sparc/sun4gas.h"
2917 tm_file=sparc/sun4o3.h
2921 tm_file=sparc/sysv4.h
2922 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2923 xm_defines="USG POSIX"
2925 xmake_file=sparc/x-sysv4
2926 extra_parts="crtbegin.o crtend.o"
2929 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2930 xm_defines="USG POSIX"
2931 tm_file=sparc/vxsim.h
2932 tmake_file=sparc/t-vxsparc
2933 xmake_file=sparc/x-sysv4
2936 tm_file="sparc/splet.h libgloss.h"
2937 tmake_file=sparc/t-splet
2940 tm_file="sparc/litecoff.h libgloss.h"
2941 tmake_file=sparc/t-sparclite
2944 tm_file="sparc/lite.h aoutos.h libgloss.h"
2945 tmake_file=sparc/t-sparclite
2948 tmake_file=sparc/t-sp64
2949 tm_file=sparc/sp64-aout.h
2952 tmake_file=sparc/t-sp64
2953 tm_file=sparc/sp64-elf.h
2954 extra_parts="crtbegin.o crtend.o"
2956 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2957 tmake_file=sparc/t-sp64
2958 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2959 tm_file=sparc/linux64.h
2961 fixincludes=Makefile.in # The headers are ok already.
2964 # This hasn't been upgraded to GCC 2.
2965 # tahoe-harris-*) # Harris tahoe, using COFF.
2966 # tm_file=tahoe/harris.h
2968 # tahoe-*-bsd*) # tahoe running BSD
2970 thumb-*-coff* | thumbel-*-coff*)
2972 out_file=arm/thumb.c
2973 xm_file=arm/xm-thumb.h
2974 md_file=arm/thumb.md
2975 tmake_file=arm/t-thumb
2976 fixincludes=Makefile.in # There is nothing to fix
2978 # This hasn't been upgraded to GCC 2.
2985 tm_file="v850/v850.h"
2986 xm_file="v850/xm-v850.h"
2987 tmake_file=v850/t-v850
2988 if test x$stabs = xyes
2990 tm_file="${tm_file} dbx.h"
2994 vax-*-bsd*) # vaxen running BSD
2998 vax-*-sysv*) # vaxen running system V
2999 tm_file="${tm_file} vax/vaxv.h"
3004 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3005 # On NetBSD, the headers are already okay, except for math.h.
3006 fixincludes=fixinc.wrap
3010 vax-*-ultrix*) # vaxen running ultrix
3011 tm_file="${tm_file} vax/ultrix.h"
3015 vax-*-vms*) # vaxen running VMS
3016 xm_file=vax/xm-vms.h
3020 vax-*-*) # vax default entry
3024 xm_file="${xm_file} xm-svr3"
3028 echo "Configuration $machine not supported" 1>&2
3035 ;; # Existing GNU/Linux systems do not use the GNU setup.
3037 # On the GNU system, the setup is just about the same on
3038 # each different CPU. The specific machines that GNU
3039 # supports are matched above and just set $cpu_type.
3040 xm_file="xm-gnu.h ${xm_file}"
3041 tm_file=${cpu_type}/gnu.h
3042 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3043 # GNU always uses ELF.
3045 # GNU tools are the only tools.
3048 # On GNU, the headers are already okay.
3049 fixincludes=Makefile.in
3050 xmake_file=x-linux # These details are the same as Linux.
3051 tmake_file=t-gnu # These are not.
3054 fixincludes=fixinc.svr4
3055 xmake_try_sysv=x-sysv
3056 install_headers_dir=install-headers-cpio
3059 install_headers_dir=install-headers-cpio
3063 # Distinguish i[34567]86
3064 # Also, do not run mips-tfile on MIPS if using gas.
3065 # Process --with-cpu= for PowerPC/rs6000
3066 target_cpu_default2=
3069 target_cpu_default2=1
3072 target_cpu_default2=2
3074 i686-*-* | i786-*-*)
3075 target_cpu_default2=3
3080 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3083 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3086 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3089 target_cpu_default2="MASK_CPU_EV5"
3093 if test x$gas = xyes
3095 if test "$target_cpu_default2" = ""
3097 target_cpu_default2="MASK_GAS"
3099 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3104 case "x$with_cpu" in
3107 target_cpu_default2="TARGET_CPU_generic"
3110 # Distinguish cores, and major variants
3111 # arm7m doesn't exist, but D & I don't affect code
3112 xarm[23678] | xarm250 | xarm[67][01]0 \
3113 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3114 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3115 | xstrongarm | xstrongarm110)
3116 target_cpu_default2="TARGET_CPU_$with_cpu"
3120 echo "--with-cpu must be passed a value" 1>&2
3125 if test x$pass2done = xyes
3127 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3134 mips*-*-ecoff* | mips*-*-elf*)
3135 if test x$gas = xyes
3137 if test x$gnu_ld = xyes
3139 target_cpu_default2=20
3141 target_cpu_default2=16
3146 if test x$gas = xyes
3148 target_cpu_default2=16
3151 powerpc*-*-* | rs6000-*-*)
3152 case "x$with_cpu" in
3156 xcommon | xpower | xpower2 | xpowerpc | xrios \
3157 | xrios1 | xrios2 | xrsc | xrsc1 \
3158 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3159 | x403 | x505 | x801 | x821 | x823 | x860)
3160 target_cpu_default2="\"$with_cpu\""
3164 echo "--with-cpu must be passed a value" 1>&2
3169 if test x$pass2done = xyes
3171 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3178 case ".$with_cpu" in
3180 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3182 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3183 target_cpu_default2="TARGET_CPU_$with_cpu"
3186 if test x$pass2done = xyes
3188 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3196 if test "$target_cpu_default2" != ""
3198 if test "$target_cpu_default" != ""
3200 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3202 target_cpu_default=$target_cpu_default2
3206 # No need for collect2 if we have the GNU linker.
3207 # Actually, there is now; GNU ld doesn't handle the EH info or
3208 # collecting for shared libraries.
3215 # Save data on machine being used to compile GCC in build_xm_file.
3216 # Save data on host machine in vars host_xm_file and host_xmake_file.
3217 if test x$pass1done = x
3219 if test x"$xm_file" = x
3220 then build_xm_file=$cpu_type/xm-$cpu_type.h
3221 else build_xm_file=$xm_file
3223 build_xm_defines=$xm_defines
3224 build_install_headers_dir=$install_headers_dir
3225 build_exeext=$exeext
3228 if test x$pass2done = x
3230 if test x"$xm_file" = x
3231 then host_xm_file=$cpu_type/xm-$cpu_type.h
3232 else host_xm_file=$xm_file
3234 host_xm_defines=$xm_defines
3235 if test x"$xmake_file" = x
3236 then xmake_file=$cpu_type/x-$cpu_type
3238 host_xmake_file="$xmake_file"
3239 host_truncate_target=$truncate_target
3240 host_extra_gcc_objs=$extra_gcc_objs
3241 host_extra_objs=$extra_host_objs
3248 extra_objs="${host_extra_objs} ${extra_objs}"
3250 # Default the target-machine variables that were not explicitly set.
3251 if test x"$tm_file" = x
3252 then tm_file=$cpu_type/$cpu_type.h; fi
3254 if test x$extra_headers = x
3255 then extra_headers=; fi
3257 if test x"$xm_file" = x
3258 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3260 if test x$md_file = x
3261 then md_file=$cpu_type/$cpu_type.md; fi
3263 if test x$out_file = x
3264 then out_file=$cpu_type/$cpu_type.c; fi
3266 if test x"$tmake_file" = x
3267 then tmake_file=$cpu_type/t-$cpu_type
3270 if test x$float_format = x
3271 then float_format=i64
3274 if test x$enable_haifa = x
3277 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3282 # Say what files are being used for the output code and MD file.
3283 echo "Using \`$srcdir/config/$out_file' to output insns."
3284 echo "Using \`$srcdir/config/$md_file' as machine description file."
3287 for f in $tm_file; do
3290 if test $count = ax; then
3291 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3293 echo "Using the following target machine macro files:"
3294 for f in $tm_file; do
3295 echo " $srcdir/config/$f"
3300 for f in $host_xm_file; do
3303 if test $count = ax; then
3304 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3306 echo "Using the following host machine macro files:"
3307 for f in $host_xm_file; do
3308 echo " $srcdir/config/$f"
3312 if test "$host_xm_file" != "$build_xm_file"; then
3314 for f in $build_xm_file; do
3317 if test $count = ax; then
3318 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3320 echo "Using the following build machine macro files:"
3321 for f in $build_xm_file; do
3322 echo " $srcdir/config/$f"
3327 if test x$thread_file = x; then
3328 if test x$target_thread_file != x; then
3329 thread_file=$target_thread_file
3331 thread_file='single'
3335 # Set up the header files.
3336 # $links is the list of header files to create.
3337 # $vars is the list of shell variables with file names to include.
3338 # auto-host.h is the file containing items generated by autoconf and is
3339 # the first file included by config.h.
3341 host_xm_file="auto-host.h ${host_xm_file}"
3343 # If host=build, it is correct to have hconfig include auto-host.h
3344 # as well. If host!=build, we are in error and need to do more
3345 # work to find out the build config parameters.
3346 if test x$host = x$build
3348 build_xm_file="auto-host.h ${build_xm_file}"
3350 # We create a subdir, then run autoconf in the subdir.
3351 # To prevent recursion we set host and build for the new
3352 # invocation of configure to the build for this invocation
3359 /*) realsrcdir=${srcdir};;
3360 *) realsrcdir=../${srcdir};;
3362 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3363 --target=$target --host=$build --build=$build
3365 # We just finished tests for the build machine, so rename
3366 # the file auto-build.h in the gcc directory.
3367 mv auto-host.h ../auto-build.h
3370 build_xm_file="auto-build.h ${build_xm_file}"
3373 vars="host_xm_file tm_file xm_file build_xm_file"
3374 links="config.h tm.h tconfig.h hconfig.h"
3375 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3378 if test -f config.status; then mv -f config.status config.bak; fi
3381 while test -n "$vars"
3383 set $vars; var=$1; shift; vars=$*
3384 set $links; link=$1; shift; links=$*
3385 set $defines; define=$1; shift; defines=$*
3389 # Define TARGET_CPU_DEFAULT if the system wants one.
3390 # This substitutes for lots of *.h files.
3391 if test "$target_cpu_default" != "" -a $link = tm.h
3393 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3396 for file in `eval echo '$'$var`; do
3397 echo "#include \"$file\"" >>$link
3400 for def in `eval echo '$'$define`; do
3401 echo "#ifndef $def" >>$link
3402 echo "#define $def" >>$link
3403 echo "#endif" >>$link
3407 # Truncate the target if necessary
3408 if test x$host_truncate_target != x; then
3409 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3412 # Get the version trigger filename from the toplevel
3413 if test "${with_gcc_version_trigger+set}" = set; then
3414 gcc_version_trigger=$with_gcc_version_trigger
3416 gcc_version_trigger=${srcdir}/version.c
3419 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3422 # Get an absolute path to the GCC top-level source directory
3428 # Conditionalize the makefile for this host machine.
3429 # Make-host contains the concatenation of all host makefile fragments
3430 # [there can be more than one]. This file is built by configure.frag.
3431 host_overrides=Make-host
3432 dep_host_xmake_file=
3433 for f in .. ${host_xmake_file}
3435 if test -f ${srcdir}/config/$f
3437 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3441 # Conditionalize the makefile for this target machine.
3442 # Make-target contains the concatenation of all host makefile fragments
3443 # [there can be more than one]. This file is built by configure.frag.
3444 target_overrides=Make-target
3446 for f in .. ${tmake_file}
3448 if test -f ${srcdir}/config/$f
3450 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3454 # If the host doesn't support symlinks, modify CC in
3455 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3456 # Otherwise, we can use "CC=$(CC)".
3458 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3460 cc_set_by_configure="\$(CC)"
3461 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3464 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3466 symbolic_link="cp -p"
3470 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3471 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3475 out_object_file=`basename $out_file .c`.o
3478 for f in $tm_file; do
3479 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3483 for f in $host_xm_file; do
3484 if test $f != "auto-host.h"; then
3485 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3487 host_xm_file_list="${host_xm_file_list} auto-host.h"
3492 for f in $build_xm_file; do
3493 if test $f != "auto-build.h"; then
3494 if test $f != "auto-host.h"; then
3495 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3497 build_xm_file_list="${build_xm_file_list} auto-host.h"
3500 build_xm_file_list="${build_xm_file_list} auto-build.h"
3504 # Define macro CROSS_COMPILE in compilation
3505 # if this is a cross-compiler.
3506 # Also use all.cross instead of all.internal
3507 # and add cross-make to Makefile.
3508 cross_overrides="/dev/null"
3509 if test x$host != x$target
3511 cross_defines="CROSS=-DCROSS_COMPILE"
3512 cross_overrides="${topdir}/cross-make"
3515 # When building gcc with a cross-compiler, we need to fix a few things.
3516 # This must come after cross-make as we want all.build to override
3518 build_overrides="/dev/null"
3519 if test x$build != x$host
3521 build_overrides="${topdir}/build-make"
3524 # Expand extra_headers to include complete path.
3525 # This substitutes for lots of t-* files.
3527 if test "x$extra_headers" = x
3530 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3531 for file in $extra_headers;
3533 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3537 if test x$use_collect2 = xno; then
3541 # Add a definition of USE_COLLECT2 if system wants one.
3542 # Also tell toplev.c what to do.
3543 # This substitutes for lots of t-* files.
3544 if test x$use_collect2 = x
3549 will_use_collect2="collect2"
3550 maybe_use_collect2="-DUSE_COLLECT2"
3554 # Set MD_DEPS if the real md file is in md.pre-cpp.
3555 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3556 # for line oriented comments, so we must always use a GNU cpp. If
3557 # building gcc with a cross compiler, use the cross compiler just
3558 # built. Otherwise, we can use the cpp just built.
3560 if test "x$md_cppflags" = x
3562 md_file_sub=$srcdir/config/$md_file
3567 # If we have gas in the build tree, make a link to it.
3568 if test -f ../gas/Makefile; then
3569 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3572 # If we have nm in the build tree, make a link to it.
3573 if test -f ../binutils/Makefile; then
3574 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3577 # If we have ld in the build tree, make a link to it.
3578 if test -f ../ld/Makefile; then
3579 # if test x$use_collect2 = x; then
3580 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3582 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3586 # Figure out what assembler alignment features are present.
3587 AC_MSG_CHECKING(assembler alignment features)
3589 gcc_cv_as_alignment_features=
3590 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'`
3591 if test -x as$host_exeext; then
3592 # Build using assembler in the current directory.
3593 gcc_cv_as=./as$host_exeext
3594 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3595 # Single tree build which includes gas.
3596 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3599 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3601 if test x$gcc_cv_gas_version != x; then
3606 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3607 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3609 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3610 # Gas version 2.6 and later support for .balign and .p2align.
3611 # bytes to skip when using .p2align.
3612 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
3613 gcc_cv_as_alignment_features=".balign and .p2align"
3614 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3616 # Gas version 2.8 and later support specifying the maximum
3617 # bytes to skip when using .p2align.
3618 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
3619 gcc_cv_as_alignment_features=".p2align including maximum skip"
3620 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3623 elif test x$host = x$target; then
3625 gcc_cv_as=as$host_exeext
3627 if test x$gcc_cv_as != x; then
3628 # Check if we have .balign and .p2align
3629 echo ".balign 4" > conftest.s
3630 echo ".p2align 2" >> conftest.s
3631 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3632 gcc_cv_as_alignment_features=".balign and .p2align"
3633 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3635 rm -f conftest.s conftest.o
3636 # Check if specifying the maximum bytes to skip when
3637 # using .p2align is supported.
3638 echo ".p2align 4,,7" > conftest.s
3639 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3640 gcc_cv_as_alignment_features=".p2align including maximum skip"
3641 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3643 rm -f conftest.s conftest.o
3645 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3647 # Figure out what language subdirectories are present.
3649 for lang in ${srcdir}/*/config-lang.in ..
3653 # The odd quoting in the next line works around
3654 # an apparent bug in bash 1.12 on linux.
3656 ${srcdir}/ada/config-lang.in)
3657 if test x$gnat = xyes ; then
3658 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3661 ${srcdir}/[*]/config-lang.in) ;;
3662 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3667 # Make gthr-default.h if we have a thread file.
3669 if test $thread_file != single; then
3670 rm -f gthr-default.h
3671 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3672 gthread_flags=-DHAVE_GTHR_DEFAULT
3674 AC_SUBST(gthread_flags)
3676 # Make empty files to contain the specs and options for each language.
3677 # Then add #include lines to for a compiler that has specs and/or options.
3682 rm -f specs.h options.h gencheck.h
3683 touch specs.h options.h gencheck.h
3684 for subdir in . $subdirs
3686 if test -f $srcdir/$subdir/lang-specs.h; then
3687 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3688 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3690 if test -f $srcdir/$subdir/lang-options.h; then
3691 echo "#include \"$subdir/lang-options.h\"" >>options.h
3692 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3694 if test -f $srcdir/$subdir/$subdir-tree.def; then
3695 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3696 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3700 # These (without "all_") are set in each config-lang.in.
3701 # `language' must be a single word so is spelled singularly.
3707 all_outputs=Makefile
3708 # List of language makefile fragments.
3713 # Add the language fragments.
3714 # Languages are added via two mechanisms. Some information must be
3715 # recorded in makefile variables, these are defined in config-lang.in.
3716 # We accumulate them and plug them into the main Makefile.
3717 # The other mechanism is a set of hooks for each of the main targets
3718 # like `clean', `install', etc.
3720 language_fragments="Make-lang"
3721 language_hooks="Make-hooks"
3724 for s in .. $subdirs
3736 . ${srcdir}/$s/config-lang.in
3737 if test "x$language" = x
3739 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3742 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3743 all_languages="$all_languages $language"
3744 if test "x$boot_language" = xyes
3746 all_boot_languages="$all_boot_languages $language"
3748 all_compilers="$all_compilers $compilers"
3749 all_stagestuff="$all_stagestuff $stagestuff"
3750 all_diff_excludes="$all_diff_excludes $diff_excludes"
3751 all_headers="$all_headers $headers"
3752 all_outputs="$all_outputs $outputs"
3753 if test x$outputs = x
3755 oldstyle_subdirs="$oldstyle_subdirs $s"
3757 all_lib2funcs="$all_lib2funcs $lib2funcs"
3761 # Since we can't use `::' targets, we link each language in
3762 # with a set of hooks, reached indirectly via lang.${target}.
3766 target_list="all.build all.cross start.encap rest.encap \
3768 install-normal install-common install-info install-man \
3770 mostlyclean clean distclean extraclean maintainer-clean \
3771 stage1 stage2 stage3 stage4"
3772 for t in $target_list
3775 for l in .. $all_languages
3777 if test $l != ".."; then
3781 echo "lang.$t: $x" >> Make-hooks
3784 # If we're not building in srcdir, create .gdbinit.
3786 if test ! -f Makefile.in; then
3787 echo "dir ." > .gdbinit
3788 echo "dir ${srcdir}" >> .gdbinit
3789 if test x$gdb_needs_out_file_path = xyes
3791 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3793 if test "x$subdirs" != x; then
3796 echo "dir ${srcdir}/$s" >> .gdbinit
3799 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3802 # Define variables host_canonical and build_canonical
3803 # because some Cygnus local changes in the Makefile depend on them.
3804 build_canonical=${build}
3805 host_canonical=${host}
3807 if test "${host}" != "${target}" ; then
3808 target_subdir=${target}/
3810 AC_SUBST(build_canonical)
3811 AC_SUBST(host_canonical)
3812 AC_SUBST(target_subdir)
3814 # If this is using newlib, then define inhibit_libc in
3815 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3816 # libgcc.a, but that's OK because newib should have its own version of
3819 if test x$with_newlib = xyes; then
3820 inhibit_libc=-Dinhibit_libc
3822 AC_SUBST(inhibit_libc)
3824 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3827 if test x$enable_haifa = xyes; then
3828 echo "Using the Haifa scheduler."
3830 sched_cflags=-DHAIFA
3832 AC_SUBST(sched_prefix)
3833 AC_SUBST(sched_cflags)
3834 if test x$enable_haifa != x; then
3835 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3836 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3844 # Warn if using init_priority.
3845 AC_MSG_CHECKING(whether to enable init_priority by default)
3846 if test x$enable_init_priority != xyes; then
3847 enable_init_priority=no
3849 AC_MSG_RESULT($enable_init_priority)
3851 # Nothing to do for FLOAT_H, float_format already handled.
3855 # Process the language and host/target makefile fragments.
3856 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3858 # Substitute configuration variables
3860 AC_SUBST(all_languages)
3861 AC_SUBST(all_boot_languages)
3862 AC_SUBST(all_compilers)
3863 AC_SUBST(all_lang_makefiles)
3864 AC_SUBST(all_stagestuff)
3865 AC_SUBST(all_diff_excludes)
3866 AC_SUBST(all_lib2funcs)
3867 AC_SUBST(all_headers)
3869 AC_SUBST(extra_passes)
3870 AC_SUBST(extra_programs)
3871 AC_SUBST(extra_parts)
3872 AC_SUBST(extra_c_objs)
3873 AC_SUBST(extra_cxx_objs)
3874 AC_SUBST(extra_cpp_objs)
3875 AC_SUBST(extra_c_flags)
3876 AC_SUBST(extra_objs)
3877 AC_SUBST(host_extra_gcc_objs)
3878 AC_SUBST(extra_headers_list)
3879 AC_SUBST(dep_host_xmake_file)
3880 AC_SUBST(dep_tmake_file)
3882 AC_SUBST(out_object_file)
3884 AC_SUBST(tm_file_list)
3885 AC_SUBST(build_xm_file_list)
3886 AC_SUBST(host_xm_file_list)
3887 AC_SUBST(lang_specs_files)
3888 AC_SUBST(lang_options_files)
3889 AC_SUBST(lang_tree_files)
3890 AC_SUBST(thread_file)
3891 AC_SUBST(objc_boehm_gc)
3892 AC_SUBST(gcc_version)
3893 AC_SUBST(gcc_version_trigger)
3894 AC_SUBST(local_prefix)
3895 AC_SUBST(gxx_include_dir)
3896 AC_SUBST(fixincludes)
3897 AC_SUBST(build_install_headers_dir)
3898 AC_SUBST(build_exeext)
3899 AC_SUBST(host_exeext)
3900 AC_SUBST(float_format)
3901 AC_SUBST(will_use_collect2)
3902 AC_SUBST(maybe_use_collect2)
3903 AC_SUBST(cc_set_by_configure)
3904 AC_SUBST(stage_prefix_set_by_configure)
3906 AC_SUBST(symbolic_link)
3908 AC_SUBST_FILE(target_overrides)
3909 AC_SUBST_FILE(host_overrides)
3910 AC_SUBST(cross_defines)
3911 AC_SUBST_FILE(cross_overrides)
3912 AC_SUBST_FILE(build_overrides)
3913 AC_SUBST_FILE(language_fragments)
3914 AC_SUBST_FILE(language_hooks)
3916 # Echo that links are built
3917 if test x$host = x$target
3925 if test x$host != x$build
3927 str3=" on a $build system"
3930 if test "x$str2" != x || test "x$str3" != x
3935 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3937 if test "x$str2" != x || test "x$str3" != x
3939 echo " ${str2}${str3}." 1>&2
3942 # Truncate the target if necessary
3943 if test x$host_truncate_target != x; then
3944 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3947 # Configure the subdirectories
3948 # AC_CONFIG_SUBDIRS($subdirs)
3950 # Create the Makefile
3951 # and configure language subdirectories
3952 AC_OUTPUT($all_outputs,
3954 . $srcdir/configure.lang
3955 case x$CONFIG_HEADERS in
3956 xauto-host.h:config.in)
3959 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3960 # bootstrapping and the installation procedure can still use
3961 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3962 # FLAGS_TO_PASS has been modified to solve the problem there.
3963 # This is virtually a duplicate of what happens in configure.lang; we do
3964 # an extra check to make sure this only happens if ln -s can be used.
3965 if test "$symbolic_link" = "ln -s"; then
3966 for d in .. ${subdirs} ; do
3967 if test $d != ..; then
3970 for t in stage1 stage2 stage3 stage4 include
3973 $symbolic_link ../$t $t 2>/dev/null
3984 target_alias='${target_alias}'
3986 subdirs='${subdirs}'
3987 oldstyle_subdirs='${oldstyle_subdirs}'
3988 symbolic_link='${symbolic_link}'
3989 program_transform_set='${program_transform_set}'
3990 program_transform_name='${program_transform_name}'
3991 dep_host_xmake_file='${dep_host_xmake_file}'
3992 host_xmake_file='${host_xmake_file}'
3993 dep_tmake_file='${dep_tmake_file}'
3994 tmake_file='${tmake_file}'
3995 thread_file='${thread_file}'
3996 gcc_version='${gcc_version}'
3997 gcc_version_trigger='${gcc_version_trigger}'
3998 local_prefix='${local_prefix}'
3999 build_install_headers_dir='${build_install_headers_dir}'
4000 build_exeext='${build_exeext}'
4001 host_exeext='${host_exeext}'
4002 out_file='${out_file}'
4003 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4004 SET_MAKE='${SET_MAKE}'
4005 target_list='${target_list}'
4006 target_overrides='${target_overrides}'
4007 host_overrides='${host_overrides}'
4008 cross_defines='${cross_defines}'
4009 cross_overrides='${cross_overrides}'
4010 build_overrides='${build_overrides}'