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 strsignal)
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 \
319 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
320 #include <sys/types.h>
321 #ifdef HAVE_SYS_RESOURCE_H
322 #include <sys/resource.h>
336 build_install_headers_dir=install-headers-tar
341 host_truncate_target=
344 # Decode the host machine, then the target machine.
345 # For the host machine, we save the xm_file variable as host_xm_file;
346 # then we decode the target machine and forget everything else
347 # that came from the host machine.
348 for machine in $build $host $target; do
362 # Set this to force installation and use of collect2.
364 # Set this to override the default target model.
366 # Set this to control which fixincludes program to use.
367 if test x$fast_fixinc != xyes; then
368 fixincludes=fixincludes
369 else fixincludes=fixinc.sh ; fi
370 # Set this to control how the header file directory is installed.
371 install_headers_dir=install-headers-tar
372 # Set this to a non-empty list of args to pass to cpp if the target
373 # wants its .md file passed through cpp.
375 # Set this if directory names should be truncated to 14 characters.
377 # Set this if gdb needs a dir command with `dirname $out_file`
378 gdb_needs_out_file_path=
379 # Set this if the build machine requires executables to have a
382 # Set this to control which thread package will be used.
384 # Reinitialize these from the flag values every loop pass, since some
385 # configure entries modify them.
387 gnu_ld="$gnu_ld_flag"
388 enable_threads=$enable_threads_flag
390 # Set default cpu_type, tm_file and xm_file so it can be updated in
391 # each machine entry.
392 cpu_type=`echo $machine | sed 's/-.*$//'`
428 tm_file=${cpu_type}/${cpu_type}.h
429 xm_file=${cpu_type}/xm-${cpu_type}.h
431 # Set the default macros to define for GNU/Linux systems.
434 xm_defines="HAVE_ATEXIT POSIX BSTRING"
439 # Support site-specific machine types.
441 cpu_type=`echo $machine | sed -e 's/-.*//'`
442 rest=`echo $machine | sed -e "s/$cpu_type-//"`
443 xm_file=${cpu_type}/xm-$rest.h
444 tm_file=${cpu_type}/$rest.h
445 if test -f $srcdir/config/${cpu_type}/x-$rest; \
446 then xmake_file=${cpu_type}/x-$rest; \
449 if test -f $srcdir/config/${cpu_type}/t-$rest; \
450 then tmake_file=${cpu_type}/t-$rest; \
456 a29k-*-bsd* | a29k-*-sym1*)
457 tm_file="${tm_file} a29k/unix.h"
459 xmake_file=a29k/x-unix
462 a29k-*-udi | a29k-*-coff)
463 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
464 tmake_file=a29k/t-a29kbare
467 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
468 tmake_file=a29k/t-vx29k
469 extra_parts="crtbegin.o crtend.o"
470 thread_file='vxworks'
472 a29k-*-*) # Default a29k environment.
475 alpha*-*-linux-gnuecoff*)
476 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
477 target_cpu_default="MASK_GAS"
482 alpha*-*-linux-gnulibc1*)
483 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
484 target_cpu_default="MASK_GAS"
485 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
486 extra_parts="crtbegin.o crtend.o"
487 fixincludes=fixinc.wrap
490 if test x$enable_threads = xyes; then
495 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
496 target_cpu_default="MASK_GAS"
497 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
498 extra_parts="crtbegin.o crtend.o"
500 fixincludes=Makefile.in
502 if test x$enable_threads = xyes; then
507 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
508 target_cpu_default="MASK_GAS"
509 tmake_file="alpha/t-crtbe"
510 extra_parts="crtbegin.o crtend.o"
512 fixincludes=fixinc.wrap
517 if test x$stabs = xyes
519 tm_file="${tm_file} dbx.h"
521 if test x$gas != xyes
523 extra_passes="mips-tfile mips-tdump"
528 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
533 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
536 tm_file="${tm_file} alpha/osf.h"
537 # Some versions of OSF4 (specifically X4.0-9 296.7) have
538 # a broken tar, so we use cpio instead.
539 install_headers_dir=install-headers-cpio
544 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
546 target_cpu_default=MASK_SUPPORT_ARCH
551 tm_file="${tm_file} dbx.h alpha/vxworks.h"
554 extra_passes="mips-tfile mips-tdump"
559 tm_file="${tm_file} alpha/win-nt.h"
560 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
562 xmake_file=winnt/x-winnt
563 extra_host_objs=oldnames.o
564 extra_gcc_objs="spawnv.o oldnames.o"
565 fixincludes=fixinc.winnt
566 if test x$gnu_ld != xyes
568 extra_programs=ld.exe
570 if test x$enable_threads = xyes; then
576 xm_file="${xm_file} alpha/xm-vms.h"
577 tmake_file=alpha/t-vms
578 fixincludes=Makefile.in
581 extra_parts="crtinit.o crtfini.o"
583 arm-*-coff* | armel-*-coff*)
585 tmake_file=arm/t-bare
588 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
590 tm_file=arm/riscix1-1.h
593 arm-*-riscix*) # Acorn RISC machine
596 tm_file=arm/rix-gas.h
600 xmake_file=arm/x-riscix
601 tmake_file=arm/t-riscix
604 arm-semi-aout | armel-semi-aout)
606 tmake_file=arm/t-semi
607 fixincludes=Makefile.in # There is nothing to fix
609 arm-semi-aof | armel-semi-aof)
610 tm_file=arm/semiaof.h
611 tmake_file=arm/t-semiaof
612 fixincludes=Makefile.in # There is nothing to fix
616 xm_file="arm/xm-netbsd.h ${xm_file}"
617 tmake_file="t-netbsd arm/t-netbsd"
618 # On NetBSD, the headers are already okay, except for math.h.
619 fixincludes=fixinc.wrap
621 arm-*-linux-gnuaout*) # ARM GNU/Linux
624 tm_file=arm/linux-gas.h
625 tmake_file=arm/t-linux
626 fixincludes=Makefile.in
631 tmake_file=arm/t-bare
633 c1-convex-*) # Convex C1
636 fixincludes=Makefile.in
638 c2-convex-*) # Convex C2
641 fixincludes=Makefile.in
646 fixincludes=Makefile.in
651 fixincludes=Makefile.in
654 target_cpu_default=16
656 fixincludes=Makefile.in
662 clipper-intergraph-clix*)
663 tm_file="${tm_file} svr3.h clipper/clix.h"
664 xm_file=clipper/xm-clix.h
665 xmake_file=clipper/x-clix
666 extra_headers=va-clipper.h
667 extra_parts="crtbegin.o crtend.o"
668 install_headers_dir=install-headers-cpio
675 # This hasn't been upgraded to GCC 2.
676 # fx80-alliant-*) # Alliant FX/80
682 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
683 xm_file=pa/xm-papro.h
688 tm_file="${tm_file} pa/pa-osf.h"
690 fixincludes=Makefile.in
693 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
694 xm_file=pa/xm-papro.h
698 tm_file="${tm_file} pa/pa-osf.h"
700 fixincludes=Makefile.in
705 fixincludes=Makefile.in
709 fixincludes=Makefile.in
712 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
713 xm_file=pa/xm-pahpux.h
714 xmake_file=pa/x-pa-hpux
717 tm_file="${tm_file} pa/gas.h"
719 install_headers_dir=install-headers-cpio
723 hppa1.0-*-hpux8.0[0-2]*)
725 tm_file="${tm_file} pa/pa-hpux.h"
726 xm_file=pa/xm-pahpux.h
727 xmake_file=pa/x-pa-hpux
730 tm_file="${tm_file} pa/pa-gas.h"
732 tm_file="pa/pa-oldas.h ${tm_file}"
734 install_headers_dir=install-headers-cpio
738 hppa1.1-*-hpux8.0[0-2]*)
741 tm_file="${tm_file} pa/pa-hpux.h"
742 xm_file=pa/xm-pahpux.h
743 xmake_file=pa/x-pa-hpux
746 tm_file="${tm_file} pa/pa-gas.h"
748 tm_file="pa/pa-oldas.h ${tm_file}"
750 install_headers_dir=install-headers-cpio
755 tm_file="${tm_file} pa/pa-hpux.h"
756 xm_file=pa/xm-pahpux.h
757 xmake_file=pa/x-pa-hpux
760 tm_file="${tm_file} pa/pa-gas.h"
762 install_headers_dir=install-headers-cpio
766 tm_file="${tm_file} pa/pa-hpux.h"
767 xm_file=pa/xm-pahpux.h
768 xmake_file=pa/x-pa-hpux
771 tm_file="${tm_file} pa/pa-gas.h"
773 install_headers_dir=install-headers-cpio
778 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
779 xm_file=pa/xm-pahpux.h
780 xmake_file=pa/x-pa-hpux
784 tm_file="${tm_file} pa/pa-gas.h"
786 if test x$enable_threads = x; then
787 enable_threads=$have_pthread_h
789 if test x$enable_threads = xyes; then
791 tmake_file="${tmake_file} pa/t-dce-thr"
793 install_headers_dir=install-headers-cpio
797 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
798 xm_file=pa/xm-pahpux.h
799 xmake_file=pa/x-pa-hpux
802 tm_file="${tm_file} pa/pa-gas.h"
804 if test x$enable_threads = x; then
805 enable_threads=$have_pthread_h
807 if test x$enable_threads = xyes; then
809 tmake_file="${tmake_file} pa/t-dce-thr"
811 install_headers_dir=install-headers-cpio
816 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
817 xm_file=pa/xm-pahpux.h
818 xmake_file=pa/x-pa-hpux
821 tm_file="${tm_file} pa/pa-gas.h"
823 install_headers_dir=install-headers-cpio
827 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
828 xm_file=pa/xm-pahpux.h
829 xmake_file=pa/x-pa-hpux
832 tm_file="${tm_file} pa/pa-gas.h"
834 install_headers_dir=install-headers-cpio
839 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
840 xm_file=pa/xm-pahpux.h
841 xmake_file=pa/x-pa-hpux
844 tm_file="${tm_file} pa/pa-gas.h"
846 install_headers_dir=install-headers-cpio
850 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
851 xm_file=pa/xm-pahpux.h
852 xmake_file=pa/x-pa-hpux
855 tm_file="${tm_file} pa/pa-gas.h"
857 install_headers_dir=install-headers-cpio
863 fixincludes=Makefile.in
868 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
872 tm_file=i386/aix386.h
873 extra_parts="crtbegin.o crtend.o"
874 tmake_file=i386/t-crtstuff
876 tm_file=i386/aix386ng.h
879 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
881 xmake_file=i386/x-aix
884 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
886 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
887 xm_defines="USG POSIX SMALL_ARG_MAX"
888 xmake_file=i386/x-ncr3000
889 if test x$stabs = xyes -a x$gas = xyes
891 tm_file=i386/sysv4gdb.h
895 extra_parts="crtbegin.o crtend.o"
896 tmake_file=i386/t-crtpic
902 xm_file=i386/xm-next.h
903 tmake_file=i386/t-next
904 xmake_file=i386/x-next
905 extra_objs=nextstep.o
906 extra_parts="crtbegin.o crtend.o"
907 if test x$enable_threads = xyes; then
912 i[34567]86-sequent-bsd*) # 80386 from Sequent
917 tm_file=i386/seq-gas.h
919 tm_file=i386/sequent.h
923 i[34567]86-sequent-ptx1*)
925 xm_defines="USG SVR3"
926 xmake_file=i386/x-sysv3
927 tm_file=i386/seq-sysv3.h
928 tmake_file=i386/t-crtstuff
929 fixincludes=fixinc.ptx
930 extra_parts="crtbegin.o crtend.o"
931 install_headers_dir=install-headers-cpio
934 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
936 xm_defines="USG SVR3"
937 xmake_file=i386/x-sysv3
938 tm_file=i386/seq2-sysv3.h
939 tmake_file=i386/t-crtstuff
940 extra_parts="crtbegin.o crtend.o"
941 fixincludes=fixinc.ptx
942 install_headers_dir=install-headers-cpio
945 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
947 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
948 xm_defines="USG POSIX SMALL_ARG_MAX"
950 tm_file=i386/ptx4-i.h
952 extra_parts="crtbegin.o crtend.o"
953 fixincludes=fixinc.ptx
954 install_headers_dir=install-headers-cpio
956 i386-sun-sunos*) # Sun i386 roadrunner
962 i[34567]86-wrs-vxworks*)
964 tm_file=i386/vxi386.h
965 tmake_file=i386/t-i386bare
970 tm_file=i386/i386-aout.h
971 tmake_file=i386/t-i386bare
974 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
976 tm_file=i386/bsd386.h
977 # tmake_file=t-libc-ok
982 tm_file=i386/386bsd.h
983 # tmake_file=t-libc-ok
984 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
988 i[34567]86-*-freebsdelf*)
990 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
991 # On FreeBSD, the headers are already ok, except for math.h.
992 fixincludes=fixinc.wrap
993 tmake_file=i386/t-freebsd
999 i[34567]86-*-freebsd*)
1001 tm_file=i386/freebsd.h
1002 # On FreeBSD, the headers are already ok, except for math.h.
1003 fixincludes=fixinc.wrap
1004 tmake_file=i386/t-freebsd
1007 i[34567]86-*-netbsd*)
1009 tm_file=i386/netbsd.h
1010 # On NetBSD, the headers are already okay, except for math.h.
1011 fixincludes=fixinc.wrap
1017 tm_file=i386/i386-coff.h
1018 tmake_file=i386/t-i386bare
1021 i[34567]86-*-isc*) # 80386 running ISC system
1023 xm_file="${xm_file} i386/xm-isc.h"
1024 xm_defines="USG SVR3"
1027 i[34567]86-*-isc[34]*)
1029 xmake_file=i386/x-isc3
1032 xmake_file=i386/x-isc
1035 if test x$gas = xyes -a x$stabs = xyes
1037 tm_file=i386/iscdbx.h
1038 tmake_file=i386/t-svr3dbx
1039 extra_parts="svr3.ifile svr3z.ifile"
1041 tm_file=i386/isccoff.h
1042 tmake_file=i386/t-crtstuff
1043 extra_parts="crtbegin.o crtend.o"
1045 install_headers_dir=install-headers-cpio
1048 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1049 changequote([,])dnl # with a.out format using
1051 xmake_file=x-linux-aout
1052 tmake_file="t-linux-aout i386/t-crtstuff"
1053 tm_file=i386/linux-oldld.h
1054 fixincludes=Makefile.in #On Linux, the headers are ok already.
1059 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1060 changequote([,])dnl # with a.out format
1061 xmake_file=x-linux-aout
1062 tmake_file="t-linux-aout i386/t-crtstuff"
1063 tm_file=i386/linux-aout.h
1064 fixincludes=Makefile.in #On Linux, the headers are ok already.
1069 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1070 changequote([,])dnl # with ELF format using the
1071 # GNU/Linux C library 5
1073 tm_file=i386/linux.h
1074 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1075 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1076 fixincludes=Makefile.in #On Linux, the headers are ok already.
1079 if test x$enable_threads = xyes; then
1080 thread_file='single'
1084 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1085 changequote([,])dnl # with ELF format using glibc 2
1086 # aka GNU/Linux C library 6
1088 tm_file=i386/linux.h
1089 tmake_file="t-linux i386/t-crtstuff"
1090 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1091 fixincludes=Makefile.in #On Linux, the headers are ok already.
1094 if test x$enable_threads = xyes; then
1103 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1105 xm_file=i386/xm-go32.h
1107 tmake_file=i386/t-go32
1110 i[34567]86-pc-msdosdjgpp*)
1112 xm_file=i386/xm-go32.h
1114 tmake_file=i386/t-go32
1119 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1122 tmake_file=t-libc-ok
1123 fixincludes=Makefile.in
1128 i[34567]86-*-lynxos*)
1130 if test x$gas = xyes
1134 tm_file=i386/lynx-ng.h
1136 xm_file=i386/xm-lynx.h
1137 tmake_file=i386/t-i386bare
1144 # tmake_file=t-libc-ok
1148 i[34567]86-*-osfrose*) # 386 using OSF/rose
1150 if test x$elf = xyes
1152 tm_file=i386/osfelf.h
1155 tm_file=i386/osfrose.h
1158 xm_file="i386/xm-osf.h ${xm_file}"
1159 xmake_file=i386/x-osfrose
1160 tmake_file=i386/t-osf
1161 extra_objs=halfpic.o
1164 i[34567]86-go32-rtems*)
1167 xm_file=i386/xm-go32.h
1168 tm_file=i386/go32-rtems.h
1169 tmake_file="i386/t-go32 t-rtems"
1172 i[34567]86-*-rtemself*)
1175 tm_file=i386/rtemself.h
1176 tmake_file="i386/t-i386bare t-rtems"
1179 i[34567]86-*-rtems*)
1182 tm_file=i386/rtems.h
1183 tmake_file="i386/t-i386bare t-rtems"
1186 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1188 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1189 xm_defines="USG SVR3"
1190 xmake_file=i386/x-sco5
1191 fixincludes=fixinc.sco
1192 install_headers_dir=install-headers-cpio
1194 if test x$gas = xyes
1196 tm_file="i386/sco5gas.h ${tm_file}"
1197 tmake_file=i386/t-sco5gas
1199 tmake_file=i386/t-sco5
1201 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1204 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1206 xm_file="${xm_file} i386/xm-sco.h"
1207 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1208 xmake_file=i386/x-sco4
1209 fixincludes=fixinc.sco
1210 install_headers_dir=install-headers-cpio
1211 if test x$stabs = xyes
1213 tm_file=i386/sco4dbx.h
1214 tmake_file=i386/t-svr3dbx
1215 extra_parts="svr3.ifile svr3z.rfile"
1218 tmake_file=i386/t-crtstuff
1219 extra_parts="crtbegin.o crtend.o"
1224 i[34567]86-*-sco*) # 80386 running SCO system
1226 xm_file=i386/xm-sco.h
1227 xmake_file=i386/x-sco
1228 install_headers_dir=install-headers-cpio
1229 if test x$stabs = xyes
1231 tm_file=i386/scodbx.h
1232 tmake_file=i386/t-svr3dbx
1233 extra_parts="svr3.ifile svr3z.rfile"
1236 extra_parts="crtbegin.o crtend.o"
1237 tmake_file=i386/t-crtstuff
1242 i[34567]86-*-solaris2*)
1244 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1245 xm_defines="USG POSIX SMALL_ARG_MAX"
1246 if test x$stabs = xyes
1248 tm_file=i386/sol2dbg.h
1252 tmake_file=i386/t-sol2
1253 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1259 fixincludes=fixinc.svr4;;
1261 fixincludes=fixinc.wrap;;
1263 if test x$enable_threads = xyes; then
1264 thread_file='solaris'
1268 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1270 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1271 xm_defines="USG POSIX"
1272 tm_file=i386/sysv4.h
1273 if test x$stabs = xyes
1275 tm_file="${tm_file} dbx.h"
1277 tmake_file=i386/t-crtpic
1279 extra_parts="crtbegin.o crtend.o"
1280 fixincludes=Makefile.in # The headers are just fine, thank you.
1283 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1285 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1286 xm_defines="USG POSIX SMALL_ARG_MAX"
1287 tm_file=i386/sysv4.h
1288 if test x$stabs = xyes
1290 tm_file="${tm_file} dbx.h"
1292 tmake_file=i386/t-crtpic
1294 extra_parts="crtbegin.o crtend.o"
1297 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1300 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1301 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1302 fixincludes=Makefile.in #Don't do it on OSF/1
1303 if test x$stabs = xyes
1305 tm_file=i386/osf1elfgdb.h
1307 tm_file=i386/osf1elf.h
1309 tmake_file=i386/t-osf1elf
1310 xmake_file=i386/x-osf1elf
1311 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1314 i[34567]86-*-sysv*) # Intel 80386's running system V
1316 xm_defines="USG SVR3"
1317 xmake_file=i386/x-sysv3
1318 if test x$gas = xyes
1320 if test x$stabs = xyes
1322 tm_file=i386/svr3dbx.h
1323 tmake_file=i386/t-svr3dbx
1324 extra_parts="svr3.ifile svr3z.rfile"
1326 tm_file=i386/svr3gas.h
1327 extra_parts="crtbegin.o crtend.o"
1328 tmake_file=i386/t-crtstuff
1331 tm_file=i386/sysv3.h
1332 extra_parts="crtbegin.o crtend.o"
1333 tmake_file=i386/t-crtstuff
1336 i386-*-vsta) # Intel 80386's running VSTa kernel
1337 xm_file="${xm_file} i386/xm-vsta.h"
1339 tmake_file=i386/t-vsta
1340 xmake_file=i386/x-vsta
1345 xm_file="${xm_file} i386/xm-cygwin32.h"
1346 tmake_file=i386/t-cygwin32
1347 tm_file=i386/win32.h
1348 xmake_file=i386/x-cygwin32
1350 fixincludes=Makefile.in
1351 if test x$enable_threads = xyes; then
1357 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1359 xm_file="${xm_file} i386/xm-cygwin32.h"
1360 tmake_file=i386/t-cygwin32
1361 tm_file=i386/cygwin32.h
1362 xmake_file=i386/x-cygwin32
1364 fixincludes=Makefile.in
1365 if test x$enable_threads = xyes; then
1371 i[34567]86-*-mingw32*)
1373 tm_file=i386/mingw32.h
1374 xm_file="${xm_file} i386/xm-mingw32.h"
1375 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1377 xmake_file=i386/x-cygwin32
1378 fixincludes=Makefile.in
1379 if test x$enable_threads = xyes; then
1386 *minwg32crt* | *mingw32*)
1387 tm_file="${tm_file} i386/crtdll.h"
1392 i[34567]86-*-winnt3*)
1394 tm_file=i386/win-nt.h
1395 out_file=i386/i386.c
1396 xm_file="xm-winnt.h ${xm_file}"
1397 xmake_file=winnt/x-winnt
1398 tmake_file=i386/t-winnt
1399 extra_host_objs="winnt.o oldnames.o"
1400 extra_gcc_objs="spawnv.o oldnames.o"
1401 fixincludes=fixinc.winnt
1402 if test x$gnu_ld != xyes
1404 extra_programs=ld.exe
1406 if test x$enable_threads = xyes; then
1411 i[34567]86-dg-dgux*)
1413 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1414 xm_defines="USG POSIX"
1415 out_file=i386/dgux.c
1417 tmake_file=i386/t-dgux
1418 xmake_file=i386/x-dgux
1419 fixincludes=fixinc.dgux
1420 install_headers_dir=install-headers-cpio
1422 i860-alliant-*) # Alliant FX/2800
1423 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1424 xm_file="${xm_file}"
1425 xmake_file=i860/x-fx2800
1426 tmake_file=i860/t-fx2800
1427 extra_parts="crtbegin.o crtend.o"
1430 tm_file="${tm_file} i860/bsd.h"
1431 if test x$gas = xyes
1433 tm_file="${tm_file} i860/bsd-gas.h"
1438 tm_file="${tm_file} i860/mach.h"
1439 tmake_file=t-libc-ok
1441 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1442 tm_file="${tm_file} svr3.h i860/paragon.h"
1443 xm_defines="USG SVR3"
1447 tm_file="${tm_file} svr3.h i860/sysv3.h"
1448 xm_defines="USG SVR3"
1449 xmake_file=i860/x-sysv3
1450 extra_parts="crtbegin.o crtend.o"
1453 tm_file="${tm_file} svr4.h i860/sysv4.h"
1454 xm_defines="USG SVR3"
1455 xmake_file=i860/x-sysv4
1457 extra_parts="crtbegin.o crtend.o"
1459 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1460 tm_file="${tm_file} i960/vx960.h"
1461 tmake_file=i960/t-vxworks960
1463 thread_file='vxworks'
1465 i960-wrs-vxworks5* | i960-wrs-vxworks)
1466 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1467 tmake_file=i960/t-vxworks960
1469 thread_file='vxworks'
1472 tm_file="${tm_file} i960/vx960.h"
1473 tmake_file=i960/t-vxworks960
1475 thread_file='vxworks'
1478 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1479 tmake_file=i960/t-960bare
1483 tmake_file="i960/t-960bare t-rtems"
1484 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1487 i960-*-*) # Default i960 environment.
1491 extra_parts="crtinit.o crtfini.o"
1493 m68000-convergent-sysv*)
1495 xm_file="m68k/xm-3b1.h ${xm_file}"
1498 extra_headers=math-68881.h
1500 m68000-hp-bsd*) # HP 9000/200 running BSD
1501 tm_file=m68k/hp2bsd.h
1502 xmake_file=m68k/x-hp2bsd
1504 extra_headers=math-68881.h
1506 m68000-hp-hpux*) # HP 9000 series 300
1507 xm_file="xm_alloca.h ${xm_file}"
1508 xm_defines="USG NO_SYS_SIGLIST"
1509 if test x$gas = xyes
1511 xmake_file=m68k/x-hp320g
1512 tm_file=m68k/hp310g.h
1514 xmake_file=m68k/x-hp320
1515 tm_file=m68k/hp310.h
1517 install_headers_dir=install-headers-cpio
1519 extra_headers=math-68881.h
1524 extra_headers=math-68881.h
1527 tm_file=m68k/sun2o4.h
1529 extra_headers=math-68881.h
1532 xm_file="m68k/xm-3b1.h ${xm_file}"
1534 if test x$gas = xyes
1541 extra_headers=math-68881.h
1543 m68k-apple-aux*) # Apple Macintosh running A/UX
1544 xm_defines="USG AUX"
1545 tmake_file=m68k/t-aux
1546 install_headers_dir=install-headers-cpio
1547 extra_headers=math-68881.h
1548 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1550 if test "$gnu_ld" = yes
1552 tm_file="${tm_file} m68k/auxgld.h"
1554 tm_file="${tm_file} m68k/auxld.h"
1556 if test "$gas" = yes
1558 tm_file="${tm_file} m68k/auxgas.h"
1560 tm_file="${tm_file} m68k/auxas.h"
1562 tm_file="${tm_file} m68k/a-ux.h"
1566 tm_file=m68k/apollo68.h
1567 xmake_file=m68k/x-apollo68
1569 extra_headers=math-68881.h
1572 m68k-altos-sysv*) # Altos 3068
1573 if test x$gas = xyes
1575 tm_file=m68k/altos3068.h
1578 echo "The Altos is supported only with the GNU assembler" 1>&2
1581 extra_headers=math-68881.h
1583 m68k-bull-sysv*) # Bull DPX/2
1584 if test x$gas = xyes
1586 if test x$stabs = xyes
1588 tm_file=m68k/dpx2cdbx.h
1590 tm_file=m68k/dpx2g.h
1595 xm_file="xm-alloca.h ${xm_file}"
1597 xmake_file=m68k/x-dpx2
1599 extra_headers=math-68881.h
1601 m68k-atari-sysv4*) # Atari variant of V.4.
1602 tm_file=m68k/atari.h
1603 xm_file="xm-alloca.h ${xm_file}"
1604 xm_defines="USG FULL_PROTOTYPES"
1606 extra_parts="crtbegin.o crtend.o"
1607 extra_headers=math-68881.h
1610 m68k-motorola-sysv*)
1611 tm_file=m68k/mot3300.h
1612 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1613 xm_defines=NO_SYS_SIGLIST
1614 if test x$gas = xyes
1616 xmake_file=m68k/x-mot3300-gas
1617 if test x$gnu_ld = xyes
1619 tmake_file=m68k/t-mot3300-gald
1621 tmake_file=m68k/t-mot3300-gas
1625 xmake_file=m68k/x-mot3300
1626 if test x$gnu_ld = xyes
1628 tmake_file=m68k/t-mot3300-gld
1630 tmake_file=m68k/t-mot3300
1634 gdb_needs_out_file_path=yes
1635 extra_parts="crt0.o mcrt0.o"
1636 extra_headers=math-68881.h
1639 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1640 tm_file=m68k/tower-as.h
1641 xm_defines="USG SVR3"
1642 xmake_file=m68k/x-tower
1643 extra_parts="crtbegin.o crtend.o"
1644 extra_headers=math-68881.h
1647 tm_file=m68k/plexus.h
1648 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1651 extra_headers=math-68881.h
1655 xm_file="xm-alloca.h ${xm_file}"
1657 extra_headers=math-68881.h
1660 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1661 xm_defines="USG unos"
1662 xmake_file=m68k/x-crds
1665 extra_headers=math-68881.h
1667 m68k-cbm-sysv4*) # Commodore variant of V.4.
1669 xm_file="xm-alloca.h ${xm_file}"
1670 xm_defines="USG FULL_PROTOTYPES"
1671 xmake_file=m68k/x-amix
1673 extra_parts="crtbegin.o crtend.o"
1674 extra_headers=math-68881.h
1678 tm_file=m68k/ccur-GAS.h
1679 xmake_file=m68k/x-ccur
1680 extra_headers=math-68881.h
1684 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1685 tm_file=m68k/hp3bsd44.h
1686 xmake_file=m68k/x-hp3bsd44
1688 extra_headers=math-68881.h
1691 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1692 tm_file=m68k/hp3bsd.h
1694 extra_headers=math-68881.h
1698 if test x$with_fp = xno
1700 tm_file=m68k/isi-nfp.h
1706 extra_headers=math-68881.h
1708 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1709 xm_file="xm_alloca.h ${xm_file}"
1710 xm_defines="USG NO_SYS_SIGLIST"
1711 if test x$gas = xyes
1713 xmake_file=m68k/x-hp320g
1714 tm_file=m68k/hp320g.h
1716 xmake_file=m68k/x-hp320
1717 tm_file=m68k/hpux7.h
1719 install_headers_dir=install-headers-cpio
1721 extra_headers=math-68881.h
1724 m68k-hp-hpux*) # HP 9000 series 300
1725 xm_file="xm_alloca.h ${xm_file}"
1726 xm_defines="USG NO_SYS_SIGLIST"
1727 if test x$gas = xyes
1729 xmake_file=m68k/x-hp320g
1730 tm_file=m68k/hp320g.h
1732 xmake_file=m68k/x-hp320
1733 tm_file=m68k/hp320.h
1735 install_headers_dir=install-headers-cpio
1737 extra_headers=math-68881.h
1741 tm_file=m68k/sun3mach.h
1743 extra_headers=math-68881.h
1747 if test x$gas = xyes
1749 tm_file=m68k/news3gas.h
1751 tm_file=m68k/news3.h
1754 extra_headers=math-68881.h
1757 m68k-sony-bsd* | m68k-sony-newsos*)
1758 if test x$gas = xyes
1760 tm_file=m68k/newsgas.h
1765 extra_headers=math-68881.h
1768 m68k-next-nextstep2*)
1769 tm_file=m68k/next21.h
1770 xm_file="m68k/xm-next.h ${xm_file}"
1771 tmake_file=m68k/t-next
1772 xmake_file=m68k/x-next
1773 extra_objs=nextstep.o
1774 extra_headers=math-68881.h
1778 m68k-next-nextstep3*)
1780 xm_file="m68k/xm-next.h ${xm_file}"
1781 tmake_file=m68k/t-next
1782 xmake_file=m68k/x-next
1783 extra_objs=nextstep.o
1784 extra_parts="crtbegin.o crtend.o"
1785 extra_headers=math-68881.h
1787 if test x$enable_threads = xyes; then
1792 if test x$with_fp = xno
1794 tm_file=m68k/sun3n3.h
1796 tm_file=m68k/sun3o3.h
1800 extra_headers=math-68881.h
1802 m68k-sun-sunos*) # For SunOS 4 (the default).
1803 if test x$with_fp = xno
1805 tm_file=m68k/sun3n.h
1811 extra_headers=math-68881.h
1814 tm_file=m68k/vxm68k.h
1815 tmake_file=m68k/t-vxworks68
1816 extra_headers=math-68881.h
1817 thread_file='vxworks'
1821 tmake_file=m68k/t-m68kbare
1822 tm_file="m68k/m68k-aout.h libgloss.h"
1823 extra_headers=math-68881.h
1827 tmake_file=m68k/t-m68kbare
1828 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1829 extra_headers=math-68881.h
1833 if test x$gas = xyes
1837 tm_file=m68k/lynx-ng.h
1839 xm_file=m68k/xm-lynx.h
1841 tmake_file=m68k/t-lynx
1842 extra_headers=math-68881.h
1846 tm_file=m68k/netbsd.h
1847 # On NetBSD, the headers are already okay, except for math.h.
1848 fixincludes=fixinc.wrap
1852 m68k-*-sysv3*) # Motorola m68k's running system V.3
1853 xm_file="xm-alloca.h ${xm_file}"
1855 xmake_file=m68k/x-m68kv
1856 extra_parts="crtbegin.o crtend.o"
1857 extra_headers=math-68881.h
1860 m68k-*-sysv4*) # Motorola m68k's running system V.4
1861 tm_file=m68k/m68kv4.h
1862 xm_file="xm-alloca.h ${xm_file}"
1865 extra_parts="crtbegin.o crtend.o"
1866 extra_headers=math-68881.h
1869 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1872 tm_file=m68k/linux-aout.h
1873 tmake_file="t-linux-aout m68k/t-linux-aout"
1874 fixincludes=Makefile.in # The headers are ok already.
1875 extra_headers=math-68881.h
1879 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1880 # with ELF format using the
1881 # GNU/Linux C library 5
1883 tm_file=m68k/linux.h
1884 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1885 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1886 fixincludes=Makefile.in # The headers are ok already.
1887 extra_headers=math-68881.h
1891 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1892 # with ELF format using glibc 2
1893 # aka the GNU/Linux C library 6.
1895 tm_file=m68k/linux.h
1896 tmake_file="t-linux m68k/t-linux"
1897 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1898 fixincludes=Makefile.in # The headers are ok already.
1899 extra_headers=math-68881.h
1902 if test x$enable_threads = xyes; then
1907 tmake_file=m68k/t-m68kbare
1908 tm_file=m68k/m68k-psos.h
1909 extra_headers=math-68881.h
1913 tmake_file="m68k/t-m68kbare t-rtems"
1914 tm_file=m68k/rtems.h
1915 extra_headers=math-68881.h
1922 tm_file=m88k/dguxbcs.h
1923 tmake_file=m88k/t-dguxbcs
1927 tmake_file=m88k/t-dgux
1930 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1931 xmake_file=m88k/x-dgux
1932 if test x$gas = xyes
1934 tmake_file=m88k/t-dgux-gas
1936 fixincludes=fixinc.dgux
1938 m88k-dolphin-sysv3*)
1939 tm_file=m88k/dolph.h
1940 extra_parts="crtbegin.o crtend.o"
1941 xm_file="m88k/xm-sysv3.h ${xm_file}"
1942 xmake_file=m88k/x-dolph
1943 if test x$gas = xyes
1945 tmake_file=m88k/t-m88k-gas
1948 m88k-tektronix-sysv3)
1949 tm_file=m88k/tekXD88.h
1950 extra_parts="crtbegin.o crtend.o"
1951 xm_file="m88k/xm-sysv3.h ${xm_file}"
1952 xmake_file=m88k/x-tekXD88
1953 if test x$gas = xyes
1955 tmake_file=m88k/t-m88k-gas
1959 tm_file=m88k/m88k-aout.h
1962 tm_file=m88k/m88k-coff.h
1963 tmake_file=m88k/t-bug
1967 extra_parts="crtbegin.o crtend.o"
1968 if test x$gas = xyes
1970 tmake_file=m88k/t-luna-gas
1972 tmake_file=m88k/t-luna
1976 tm_file=m88k/sysv3.h
1977 extra_parts="crtbegin.o crtend.o"
1978 xm_file="m88k/xm-sysv3.h ${xm_file}"
1979 xmake_file=m88k/x-sysv3
1980 if test x$gas = xyes
1982 tmake_file=m88k/t-m88k-gas
1986 tm_file=m88k/sysv4.h
1987 extra_parts="crtbegin.o crtend.o"
1988 xmake_file=m88k/x-sysv4
1989 tmake_file=m88k/t-sysv4
1991 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1992 tm_file=mips/iris6.h
1993 xm_file=mips/xm-iris6.h
1994 fixincludes=fixinc.irix
1995 xmake_file=mips/x-iris6
1996 tmake_file=mips/t-iris6
1997 # if test x$enable_threads = xyes; then
1998 # thread_file='irix'
2002 tm_file="mips/elf.h libgloss.h"
2003 tmake_file=mips/t-ecoff
2006 extra_parts="crtbegin.o crtend.o"
2007 # thread_file='vxworks'
2009 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2010 tm_file="mips/iris6.h mips/cross64.h"
2012 xm_file="mips/xm-iris5.h"
2013 fixincludes=Makefile.in
2014 xmake_file=mips/x-iris
2015 tmake_file=mips/t-cross64
2016 # See comment in mips/iris[56].h files.
2018 # if test x$enable_threads = xyes; then
2019 # thread_file='irix'
2023 if test x$gas = xyes
2025 if test x$stabs = xyes
2027 tm_file=mips/iris5gdb.h
2029 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2032 tm_file=mips/sni-svr4.h
2035 xmake_file=mips/x-sni-svr4
2036 tmake_file=mips/t-mips-gas
2037 if test x$gnu_ld != xyes
2042 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2043 if test x$gas = xyes
2045 tm_file="mips/iris5.h mips/iris5gas.h"
2046 if test x$stabs = xyes
2048 tm_file="${tm_file} dbx.h"
2051 tm_file=mips/iris5.h
2054 xm_file="mips/xm-iris5.h"
2055 fixincludes=fixinc.irix
2056 xmake_file=mips/x-iris
2057 # mips-tfile doesn't work yet
2058 tmake_file=mips/t-mips-gas
2059 # See comment in mips/iris5.h file.
2061 # if test x$enable_threads = xyes; then
2062 # thread_file='irix'
2065 mips-sgi-irix4loser*) # Mostly like a MIPS.
2066 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2067 if test x$stabs = xyes; then
2068 tm_file="${tm_file} dbx.h"
2071 xmake_file=mips/x-iris
2072 if test x$gas = xyes
2074 tmake_file=mips/t-mips-gas
2076 extra_passes="mips-tfile mips-tdump"
2078 if test x$gnu_ld != xyes
2082 # if test x$enable_threads = xyes; then
2083 # thread_file='irix'
2086 mips-sgi-irix4*) # Mostly like a MIPS.
2087 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2088 if test x$stabs = xyes; then
2089 tm_file="${tm_file} dbx.h"
2092 xmake_file=mips/x-iris
2093 if test x$gas = xyes
2095 tmake_file=mips/t-mips-gas
2097 extra_passes="mips-tfile mips-tdump"
2099 if test x$gnu_ld != xyes
2103 # if test x$enable_threads = xyes; then
2104 # thread_file='irix'
2107 mips-sgi-*) # Mostly like a MIPS.
2108 tm_file="mips/iris3.h ${tm_file}"
2109 if test x$stabs = xyes; then
2110 tm_file="${tm_file} dbx.h"
2113 xmake_file=mips/x-iris3
2114 if test x$gas = xyes
2116 tmake_file=mips/t-mips-gas
2118 extra_passes="mips-tfile mips-tdump"
2120 if test x$gnu_ld != xyes
2125 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2126 tm_file="mips/osfrose.h ${tm_file}"
2127 xmake_file=mips/x-osfrose
2128 tmake_file=mips/t-osfrose
2129 extra_objs=halfpic.o
2132 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2133 tm_file=mips/dec-osf1.h
2134 if test x$stabs = xyes; then
2135 tm_file="${tm_file} dbx.h"
2137 xmake_file=mips/x-dec-osf1
2138 if test x$gas = xyes
2140 tmake_file=mips/t-mips-gas
2142 tmake_file=mips/t-ultrix
2143 extra_passes="mips-tfile mips-tdump"
2145 if test x$gnu_ld != xyes
2150 mips-dec-bsd*) # Decstation running 4.4 BSD
2151 tm_file=mips/dec-bsd.h
2153 if test x$gas = xyes
2155 tmake_file=mips/t-mips-gas
2157 tmake_file=mips/t-ultrix
2158 extra_passes="mips-tfile mips-tdump"
2160 if test x$gnu_ld != xyes
2165 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2166 tm_file=mips/netbsd.h
2167 # On NetBSD, the headers are already okay, except for math.h.
2168 fixincludes=fixinc.wrap
2171 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2172 tm_file="mips/news4.h ${tm_file}"
2173 if test x$stabs = xyes; then
2174 tm_file="${tm_file} dbx.h"
2176 if test x$gas = xyes
2178 tmake_file=mips/t-mips-gas
2180 extra_passes="mips-tfile mips-tdump"
2182 if test x$gnu_ld != xyes
2186 xmake_file=mips/x-sony
2188 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2189 # That is based on svr4.
2190 # t-svr4 is not right because this system doesn't use ELF.
2191 tm_file="mips/news5.h ${tm_file}"
2192 if test x$stabs = xyes; then
2193 tm_file="${tm_file} dbx.h"
2195 xm_file="xm-siglist.h ${xm_file}"
2197 if test x$gas = xyes
2199 tmake_file=mips/t-mips-gas
2201 extra_passes="mips-tfile mips-tdump"
2203 if test x$gnu_ld != xyes
2208 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2209 tm_file="mips/svr4-5.h mips/svr4-t.h"
2210 if test x$stabs = xyes; then
2211 tm_file="${tm_file} dbx.h"
2213 xm_file="xm-siglist.h ${xm_file}"
2215 xmake_file=mips/x-sysv
2216 if test x$gas = xyes
2218 tmake_file=mips/t-mips-gas
2219 extra_parts="crtbegin.o crtend.o"
2221 tmake_file=mips/t-mips
2222 extra_passes="mips-tfile mips-tdump"
2224 if test x$gnu_ld != xyes
2229 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2230 tm_file="mips/ultrix.h ${tm_file}"
2231 if test x$stabs = xyes; then
2232 tm_file="${tm_file} dbx.h"
2234 xmake_file=mips/x-ultrix
2235 if test x$gas = xyes
2237 tmake_file=mips/t-mips-gas
2239 tmake_file=mips/t-ultrix
2240 extra_passes="mips-tfile mips-tdump"
2242 if test x$gnu_ld != xyes
2248 mips-*-riscos[56789]bsd*)
2250 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2251 if test x$stabs = xyes; then
2252 tm_file="${tm_file} dbx.h"
2254 if test x$gas = xyes
2256 tmake_file=mips/t-bsd-gas
2258 tmake_file=mips/t-bsd
2259 extra_passes="mips-tfile mips-tdump"
2261 if test x$gnu_ld != xyes
2267 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2269 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2270 if test x$stabs = xyes; then
2271 tm_file="${tm_file} dbx.h"
2273 if test x$gas = xyes
2275 tmake_file=mips/t-bsd-gas
2277 tmake_file=mips/t-bsd
2278 extra_passes="mips-tfile mips-tdump"
2280 if test x$gnu_ld != xyes
2286 mips-*-riscos[56789]sysv4*)
2288 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2289 if test x$stabs = xyes; then
2290 tm_file="${tm_file} dbx.h"
2292 xm_file="xm-siglist.h ${xm_file}"
2293 xmake_file=mips/x-sysv
2294 if test x$gas = xyes
2296 tmake_file=mips/t-svr4-gas
2298 tmake_file=mips/t-svr4
2299 extra_passes="mips-tfile mips-tdump"
2301 if test x$gnu_ld != xyes
2307 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2309 tm_file="mips/svr4-4.h ${tm_file}"
2310 if test x$stabs = xyes; then
2311 tm_file="${tm_file} dbx.h"
2314 xmake_file=mips/x-sysv
2315 if test x$gas = xyes
2317 tmake_file=mips/t-svr4-gas
2319 tmake_file=mips/t-svr4
2320 extra_passes="mips-tfile mips-tdump"
2322 if test x$gnu_ld != xyes
2328 mips-*-riscos[56789]sysv*)
2330 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2331 if test x$stabs = xyes; then
2332 tm_file="${tm_file} dbx.h"
2335 xmake_file=mips/x-sysv
2336 if test x$gas = xyes
2338 tmake_file=mips/t-svr3-gas
2340 tmake_file=mips/t-svr3
2341 extra_passes="mips-tfile mips-tdump"
2343 if test x$gnu_ld != xyes
2348 mips-*-sysv* | mips-*-riscos*sysv*)
2349 tm_file="mips/svr3-4.h ${tm_file}"
2350 if test x$stabs = xyes; then
2351 tm_file="${tm_file} dbx.h"
2354 xmake_file=mips/x-sysv
2355 if test x$gas = xyes
2357 tmake_file=mips/t-svr3-gas
2359 tmake_file=mips/t-svr3
2360 extra_passes="mips-tfile mips-tdump"
2362 if test x$gnu_ld != xyes
2368 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2370 tm_file=mips/mips-5.h
2371 if test x$stabs = xyes; then
2372 tm_file="${tm_file} dbx.h"
2374 if test x$gas = xyes
2376 tmake_file=mips/t-mips-gas
2378 extra_passes="mips-tfile mips-tdump"
2380 if test x$gnu_ld != xyes
2388 tm_file=mips/ecoffl.h
2389 if test x$stabs = xyes; then
2390 tm_file="${tm_file} dbx.h"
2392 tmake_file=mips/t-ecoff
2395 tm_file="gofast.h mips/ecoff.h"
2396 if test x$stabs = xyes; then
2397 tm_file="${tm_file} dbx.h"
2399 tmake_file=mips/t-ecoff
2402 tm_file="mips/elfl.h libgloss.h"
2403 tmake_file=mips/t-ecoff
2406 tm_file="mips/elf.h libgloss.h"
2407 tmake_file=mips/t-ecoff
2410 tm_file="mips/elfl64.h libgloss.h"
2411 tmake_file=mips/t-ecoff
2413 mips64orionel-*-elf*)
2414 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2415 tmake_file=mips/t-ecoff
2418 tm_file="mips/elf64.h libgloss.h"
2419 tmake_file=mips/t-ecoff
2422 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2423 tmake_file=mips/t-ecoff
2425 mips64orion-*-rtems*)
2426 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2427 tmake_file="mips/t-ecoff t-rtems"
2430 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2431 tmake_file=mips/t-r3900
2434 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2435 tmake_file=mips/t-r3900
2436 # FIXME mips-elf should be fixed to use crtstuff.
2439 mips-*-*) # Default MIPS RISC-OS 4.0.
2440 if test x$stabs = xyes; then
2441 tm_file="${tm_file} dbx.h"
2443 if test x$gas = xyes
2445 tmake_file=mips/t-mips-gas
2447 extra_passes="mips-tfile mips-tdump"
2449 if test x$gnu_ld != xyes
2456 tm_file="mn10200/mn10200.h"
2457 if test x$stabs = xyes
2459 tm_file="${tm_file} dbx.h"
2465 tm_file="mn10300/mn10300.h"
2466 if test x$stabs = xyes
2468 tm_file="${tm_file} dbx.h"
2473 tm_file=ns32k/encore.h
2477 tm_file=ns32k/sequent.h
2481 tm_file=ns32k/tek6100.h
2485 tm_file=ns32k/tek6200.h
2488 # This has not been updated to GCC 2.
2491 # xmake_file=ns32k/x-genix
2492 # tm_file=ns32k/genix.h
2496 tm_file=ns32k/merlin.h
2500 tm_file=ns32k/pc532-mach.h
2504 tm_file=ns32k/pc532-min.h
2505 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2510 tm_file=ns32k/netbsd.h
2511 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2512 # On NetBSD, the headers are already okay, except for math.h.
2513 fixincludes=fixinc.wrap
2517 tm_file="${tm_file} pdp11/2bsd.h"
2523 xmake_file=pyr/x-pyr
2530 xmake_file=romp/x-mach
2535 tm_file=rs6000/beos.h
2536 xm_file=rs6000/xm-beos.h
2537 tmake_file=rs6000/t-beos
2538 xmake_file=rs6000/x-beos
2540 powerpc-*-sysv* | powerpc-*-elf*)
2541 tm_file=rs6000/sysv4.h
2542 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2543 xm_defines="USG POSIX"
2544 extra_headers=ppc-asm.h
2545 if test x$gas = xyes
2547 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2549 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2551 xmake_file=rs6000/x-sysv4
2554 tm_file=rs6000/eabiaix.h
2555 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2556 fixincludes=Makefile.in
2557 extra_headers=ppc-asm.h
2560 tm_file=rs6000/eabisim.h
2561 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2562 fixincludes=Makefile.in
2563 extra_headers=ppc-asm.h
2566 tm_file=rs6000/eabi.h
2567 if test x$gas = xyes
2569 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2571 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2573 fixincludes=Makefile.in
2574 extra_headers=ppc-asm.h
2577 tm_file=rs6000/rtems.h
2578 if test x$gas = xyes
2580 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2582 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2584 fixincludes=Makefile.in
2585 extra_headers=ppc-asm.h
2587 powerpc-*-linux-gnulibc1)
2588 tm_file=rs6000/linux.h
2589 xm_file=rs6000/xm-sysv4.h
2590 out_file=rs6000/rs6000.c
2591 if test x$gas = xyes
2593 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2595 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2598 fixincludes=Makefile.in
2599 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2600 extra_headers=ppc-asm.h
2601 if test x$enable_threads = xyes; then
2605 powerpc-*-linux-gnu*)
2606 tm_file=rs6000/linux.h
2607 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2608 xm_defines="USG ${xm_defines}"
2609 out_file=rs6000/rs6000.c
2610 if test x$gas = xyes
2612 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2614 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2617 fixincludes=Makefile.in
2618 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2619 extra_headers=ppc-asm.h
2620 if test x$enable_threads = xyes; then
2624 powerpc-wrs-vxworks*)
2626 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2627 xm_defines="USG POSIX"
2628 tm_file=rs6000/vxppc.h
2629 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2630 extra_headers=ppc-asm.h
2631 thread_file='vxworks'
2633 powerpcle-*-sysv* | powerpcle-*-elf*)
2634 tm_file=rs6000/sysv4le.h
2635 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2636 xm_defines="USG POSIX"
2637 if test x$gas = xyes
2639 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2641 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2643 xmake_file=rs6000/x-sysv4
2644 extra_headers=ppc-asm.h
2646 powerpcle-*-eabisim*)
2647 tm_file=rs6000/eabilesim.h
2648 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2649 fixincludes=Makefile.in
2650 extra_headers=ppc-asm.h
2653 tm_file=rs6000/eabile.h
2654 if test x$gas = xyes
2656 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2658 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2660 fixincludes=Makefile.in
2661 extra_headers=ppc-asm.h
2663 powerpcle-*-winnt* )
2664 tm_file=rs6000/win-nt.h
2665 tmake_file=rs6000/t-winnt
2667 fixincludes=Makefile.in
2668 if test x$enable_threads = xyes; then
2671 extra_headers=ppc-asm.h
2673 powerpcle-*-pe | powerpcle-*-cygwin32)
2674 tm_file=rs6000/cygwin32.h
2675 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2676 tmake_file=rs6000/t-winnt
2677 xmake_file=rs6000/x-cygwin32
2679 fixincludes=Makefile.in
2680 if test x$enable_threads = xyes; then
2684 extra_headers=ppc-asm.h
2686 powerpcle-*-solaris2*)
2687 tm_file=rs6000/sol2.h
2688 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2689 xm_defines="USG POSIX"
2690 if test x$gas = xyes
2692 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2694 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2696 xmake_file=rs6000/x-sysv4
2701 fixincludes=fixinc.svr4;;
2703 fixincludes=fixinc.wrap;;
2705 extra_headers=ppc-asm.h
2708 rs6000-ibm-aix3.[01]*)
2710 tm_file=rs6000/aix31.h
2711 xmake_file=rs6000/x-aix31
2715 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2717 tm_file=rs6000/aix3newas.h
2718 if test x$host != x$target
2720 tmake_file=rs6000/t-xnewas
2722 tmake_file=rs6000/t-newas
2727 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2729 tm_file=rs6000/aix41.h
2730 if test x$host != x$target
2732 tmake_file=rs6000/t-xnewas
2734 tmake_file=rs6000/t-newas
2736 xmake_file=rs6000/x-aix41
2740 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2742 tm_file=rs6000/aix43.h
2743 if test x$host != x$target
2745 tmake_file=rs6000/t-xaix43
2747 tmake_file=rs6000/t-aix43
2749 xmake_file=rs6000/x-aix43
2753 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2755 tm_file=rs6000/aix43.h
2756 if test x$host != x$target
2758 tmake_file=rs6000/t-xaix43
2760 tmake_file=rs6000/t-aix43
2762 xmake_file=rs6000/x-aix43
2772 tm_file=rs6000/mach.h
2773 xm_file="${xm_file} rs6000/xm-mach.h"
2774 xmake_file=rs6000/x-mach
2778 tm_file=rs6000/lynx.h
2779 xm_file=rs6000/xm-lynx.h
2780 tmake_file=rs6000/t-rs6000
2781 xmake_file=rs6000/x-lynx
2789 tmake_file="sh/t-sh t-rtems"
2790 tm_file=sh/rtemself.h
2794 tmake_file="sh/t-sh t-rtems"
2803 xm_file="xm-alloca.h ${xm_file}"
2806 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2807 tm_file=sparc/vxsparc.h
2808 tmake_file=sparc/t-vxsparc
2810 thread_file='vxworks'
2813 tmake_file=sparc/t-sparcbare
2814 tm_file="sparc/aout.h libgloss.h"
2817 tm_file=sparc/netbsd.h
2818 # On NetBSD, the headers are already okay, except for math.h.
2819 fixincludes=fixinc.wrap
2827 tmake_file=sparc/t-elf
2828 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2832 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2833 xm_file="${xm_file} sparc/xm-linux.h"
2834 tm_file=sparc/linux-aout.h
2836 fixincludes=Makefile.in #On Linux, the headers are ok already.
2839 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2840 xm_file="${xm_file} sparc/xm-linux.h"
2842 tm_file=sparc/linux.h
2843 tmake_file="t-linux t-linux-gnulibc1"
2844 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2845 fixincludes=Makefile.in #On Linux, the headers are ok already.
2848 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2849 xm_file="${xm_file} sparc/xm-linux.h"
2851 tm_file=sparc/linux.h
2852 tmake_file="t-linux"
2853 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2854 fixincludes=Makefile.in #On Linux, the headers are ok already.
2856 if test x$enable_threads = xyes; then
2861 if test x$gas = xyes
2863 tm_file=sparc/lynx.h
2865 tm_file=sparc/lynx-ng.h
2867 xm_file=sparc/xm-lynx.h
2868 tmake_file=sparc/t-sunos41
2872 tmake_file="sparc/t-sparcbare t-rtems"
2873 tm_file=sparc/rtems.h
2875 sparcv9-*-solaris2*)
2876 tm_file=sparc/sol2-sld-64.h
2877 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2878 xm_defines="USG POSIX"
2879 tmake_file=sparc/t-sol2
2880 xmake_file=sparc/x-sysv4
2881 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2882 fixincludes=fixinc.wrap
2884 if test x${enable_threads} = x ; then
2885 enable_threads=$have_pthread_h
2886 if test x${enable_threads} = x ; then
2887 enable_threads=$have_thread_h
2890 if test x${enable_threads} = xyes ; then
2891 if test x${have_pthread_h} = xyes ; then
2894 thread_file='solaris'
2899 if test x$gnu_ld = xyes
2901 tm_file=sparc/sol2.h
2903 tm_file=sparc/sol2-sld.h
2905 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2906 xm_defines="USG POSIX"
2907 tmake_file=sparc/t-sol2
2908 xmake_file=sparc/x-sysv4
2909 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2914 fixincludes=fixinc.svr4;;
2916 fixincludes=fixinc.wrap;;
2919 if test x${enable_threads} = x; then
2920 enable_threads=$have_pthread_h
2921 if test x${enable_threads} = x; then
2922 enable_threads=$have_thread_h
2925 if test x${enable_threads} = xyes; then
2926 if test x${have_pthread_h} = xyes; then
2929 thread_file='solaris'
2934 tm_file=sparc/sunos4.h
2935 tmake_file=sparc/t-sunos40
2939 tm_file=sparc/sunos4.h
2940 tmake_file=sparc/t-sunos41
2942 if test x$gas = xyes; then
2943 tm_file="${tm_file} sparc/sun4gas.h"
2947 tm_file=sparc/sun4o3.h
2951 tm_file=sparc/sysv4.h
2952 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2953 xm_defines="USG POSIX"
2955 xmake_file=sparc/x-sysv4
2956 extra_parts="crtbegin.o crtend.o"
2959 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2960 xm_defines="USG POSIX"
2961 tm_file=sparc/vxsim.h
2962 tmake_file=sparc/t-vxsparc
2963 xmake_file=sparc/x-sysv4
2966 tm_file="sparc/splet.h libgloss.h"
2967 tmake_file=sparc/t-splet
2970 tm_file="sparc/litecoff.h libgloss.h"
2971 tmake_file=sparc/t-sparclite
2974 tm_file="sparc/lite.h aoutos.h libgloss.h"
2975 tmake_file=sparc/t-sparclite
2978 tmake_file=sparc/t-sp64
2979 tm_file=sparc/sp64-aout.h
2982 tmake_file=sparc/t-sp64
2983 tm_file=sparc/sp64-elf.h
2984 extra_parts="crtbegin.o crtend.o"
2986 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2987 tmake_file=sparc/t-sp64
2988 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2989 tm_file=sparc/linux64.h
2991 fixincludes=Makefile.in # The headers are ok already.
2994 # This hasn't been upgraded to GCC 2.
2995 # tahoe-harris-*) # Harris tahoe, using COFF.
2996 # tm_file=tahoe/harris.h
2998 # tahoe-*-bsd*) # tahoe running BSD
3000 thumb-*-coff* | thumbel-*-coff*)
3002 out_file=arm/thumb.c
3003 xm_file=arm/xm-thumb.h
3004 md_file=arm/thumb.md
3005 tmake_file=arm/t-thumb
3006 fixincludes=Makefile.in # There is nothing to fix
3008 # This hasn't been upgraded to GCC 2.
3015 tm_file="v850/v850.h"
3016 xm_file="v850/xm-v850.h"
3017 tmake_file=v850/t-v850
3018 if test x$stabs = xyes
3020 tm_file="${tm_file} dbx.h"
3024 vax-*-bsd*) # vaxen running BSD
3028 vax-*-sysv*) # vaxen running system V
3029 tm_file="${tm_file} vax/vaxv.h"
3034 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3035 # On NetBSD, the headers are already okay, except for math.h.
3036 fixincludes=fixinc.wrap
3040 vax-*-ultrix*) # vaxen running ultrix
3041 tm_file="${tm_file} vax/ultrix.h"
3045 vax-*-vms*) # vaxen running VMS
3046 xm_file=vax/xm-vms.h
3050 vax-*-*) # vax default entry
3054 xm_file="${xm_file} xm-svr3"
3058 echo "Configuration $machine not supported" 1>&2
3065 ;; # Existing GNU/Linux systems do not use the GNU setup.
3067 # On the GNU system, the setup is just about the same on
3068 # each different CPU. The specific machines that GNU
3069 # supports are matched above and just set $cpu_type.
3070 xm_file="xm-gnu.h ${xm_file}"
3071 tm_file=${cpu_type}/gnu.h
3072 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3073 # GNU always uses ELF.
3075 # GNU tools are the only tools.
3078 # On GNU, the headers are already okay.
3079 fixincludes=Makefile.in
3080 xmake_file=x-linux # These details are the same as Linux.
3081 tmake_file=t-gnu # These are not.
3084 fixincludes=fixinc.svr4
3085 xmake_try_sysv=x-sysv
3086 install_headers_dir=install-headers-cpio
3089 install_headers_dir=install-headers-cpio
3093 # Distinguish i[34567]86
3094 # Also, do not run mips-tfile on MIPS if using gas.
3095 # Process --with-cpu= for PowerPC/rs6000
3096 target_cpu_default2=
3099 target_cpu_default2=1
3102 target_cpu_default2=2
3104 i686-*-* | i786-*-*)
3105 target_cpu_default2=3
3110 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3113 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3116 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3119 target_cpu_default2="MASK_CPU_EV5"
3123 if test x$gas = xyes
3125 if test "$target_cpu_default2" = ""
3127 target_cpu_default2="MASK_GAS"
3129 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3134 case "x$with_cpu" in
3137 target_cpu_default2="TARGET_CPU_generic"
3140 # Distinguish cores, and major variants
3141 # arm7m doesn't exist, but D & I don't affect code
3142 xarm[23678] | xarm250 | xarm[67][01]0 \
3143 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3144 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3145 | xstrongarm | xstrongarm110)
3146 target_cpu_default2="TARGET_CPU_$with_cpu"
3150 echo "--with-cpu must be passed a value" 1>&2
3155 if test x$pass2done = xyes
3157 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3164 mips*-*-ecoff* | mips*-*-elf*)
3165 if test x$gas = xyes
3167 if test x$gnu_ld = xyes
3169 target_cpu_default2=20
3171 target_cpu_default2=16
3176 if test x$gas = xyes
3178 target_cpu_default2=16
3181 powerpc*-*-* | rs6000-*-*)
3182 case "x$with_cpu" in
3186 xcommon | xpower | xpower2 | xpowerpc | xrios \
3187 | xrios1 | xrios2 | xrsc | xrsc1 \
3188 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3189 | x403 | x505 | x801 | x821 | x823 | x860)
3190 target_cpu_default2="\"$with_cpu\""
3194 echo "--with-cpu must be passed a value" 1>&2
3199 if test x$pass2done = xyes
3201 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3208 case ".$with_cpu" in
3210 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3212 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3213 target_cpu_default2="TARGET_CPU_$with_cpu"
3216 if test x$pass2done = xyes
3218 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3226 if test "$target_cpu_default2" != ""
3228 if test "$target_cpu_default" != ""
3230 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3232 target_cpu_default=$target_cpu_default2
3236 # No need for collect2 if we have the GNU linker.
3237 # Actually, there is now; GNU ld doesn't handle the EH info or
3238 # collecting for shared libraries.
3245 # Save data on machine being used to compile GCC in build_xm_file.
3246 # Save data on host machine in vars host_xm_file and host_xmake_file.
3247 if test x$pass1done = x
3249 if test x"$xm_file" = x
3250 then build_xm_file=$cpu_type/xm-$cpu_type.h
3251 else build_xm_file=$xm_file
3253 build_xm_defines=$xm_defines
3254 build_install_headers_dir=$install_headers_dir
3255 build_exeext=$exeext
3258 if test x$pass2done = x
3260 if test x"$xm_file" = x
3261 then host_xm_file=$cpu_type/xm-$cpu_type.h
3262 else host_xm_file=$xm_file
3264 host_xm_defines=$xm_defines
3265 if test x"$xmake_file" = x
3266 then xmake_file=$cpu_type/x-$cpu_type
3268 host_xmake_file="$xmake_file"
3269 host_truncate_target=$truncate_target
3270 host_extra_gcc_objs=$extra_gcc_objs
3271 host_extra_objs=$extra_host_objs
3278 extra_objs="${host_extra_objs} ${extra_objs}"
3280 # Default the target-machine variables that were not explicitly set.
3281 if test x"$tm_file" = x
3282 then tm_file=$cpu_type/$cpu_type.h; fi
3284 if test x$extra_headers = x
3285 then extra_headers=; fi
3287 if test x"$xm_file" = x
3288 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3290 if test x$md_file = x
3291 then md_file=$cpu_type/$cpu_type.md; fi
3293 if test x$out_file = x
3294 then out_file=$cpu_type/$cpu_type.c; fi
3296 if test x"$tmake_file" = x
3297 then tmake_file=$cpu_type/t-$cpu_type
3300 if test x$float_format = x
3301 then float_format=i64
3304 if test x$enable_haifa = x
3307 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3312 # Say what files are being used for the output code and MD file.
3313 echo "Using \`$srcdir/config/$out_file' to output insns."
3314 echo "Using \`$srcdir/config/$md_file' as machine description file."
3317 for f in $tm_file; do
3320 if test $count = ax; then
3321 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3323 echo "Using the following target machine macro files:"
3324 for f in $tm_file; do
3325 echo " $srcdir/config/$f"
3330 for f in $host_xm_file; do
3333 if test $count = ax; then
3334 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3336 echo "Using the following host machine macro files:"
3337 for f in $host_xm_file; do
3338 echo " $srcdir/config/$f"
3342 if test "$host_xm_file" != "$build_xm_file"; then
3344 for f in $build_xm_file; do
3347 if test $count = ax; then
3348 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3350 echo "Using the following build machine macro files:"
3351 for f in $build_xm_file; do
3352 echo " $srcdir/config/$f"
3357 if test x$thread_file = x; then
3358 if test x$target_thread_file != x; then
3359 thread_file=$target_thread_file
3361 thread_file='single'
3365 # Set up the header files.
3366 # $links is the list of header files to create.
3367 # $vars is the list of shell variables with file names to include.
3368 # auto-host.h is the file containing items generated by autoconf and is
3369 # the first file included by config.h.
3371 host_xm_file="auto-host.h ${host_xm_file}"
3373 # If host=build, it is correct to have hconfig include auto-host.h
3374 # as well. If host!=build, we are in error and need to do more
3375 # work to find out the build config parameters.
3376 if test x$host = x$build
3378 build_xm_file="auto-host.h ${build_xm_file}"
3380 # We create a subdir, then run autoconf in the subdir.
3381 # To prevent recursion we set host and build for the new
3382 # invocation of configure to the build for this invocation
3389 /*) realsrcdir=${srcdir};;
3390 *) realsrcdir=../${srcdir};;
3392 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3393 --target=$target --host=$build --build=$build
3395 # We just finished tests for the build machine, so rename
3396 # the file auto-build.h in the gcc directory.
3397 mv auto-host.h ../auto-build.h
3400 build_xm_file="auto-build.h ${build_xm_file}"
3403 vars="host_xm_file tm_file xm_file build_xm_file"
3404 links="config.h tm.h tconfig.h hconfig.h"
3405 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3408 if test -f config.status; then mv -f config.status config.bak; fi
3411 while test -n "$vars"
3413 set $vars; var=$1; shift; vars=$*
3414 set $links; link=$1; shift; links=$*
3415 set $defines; define=$1; shift; defines=$*
3419 # Define TARGET_CPU_DEFAULT if the system wants one.
3420 # This substitutes for lots of *.h files.
3421 if test "$target_cpu_default" != "" -a $link = tm.h
3423 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3426 for file in `eval echo '$'$var`; do
3427 echo "#include \"$file\"" >>$link
3430 for def in `eval echo '$'$define`; do
3431 echo "#ifndef $def" >>$link
3432 echo "#define $def" >>$link
3433 echo "#endif" >>$link
3437 # Truncate the target if necessary
3438 if test x$host_truncate_target != x; then
3439 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3442 # Get the version trigger filename from the toplevel
3443 if test "${with_gcc_version_trigger+set}" = set; then
3444 gcc_version_trigger=$with_gcc_version_trigger
3446 gcc_version_trigger=${srcdir}/version.c
3449 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3452 # Get an absolute path to the GCC top-level source directory
3458 # Conditionalize the makefile for this host machine.
3459 # Make-host contains the concatenation of all host makefile fragments
3460 # [there can be more than one]. This file is built by configure.frag.
3461 host_overrides=Make-host
3462 dep_host_xmake_file=
3463 for f in .. ${host_xmake_file}
3465 if test -f ${srcdir}/config/$f
3467 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3471 # Conditionalize the makefile for this target machine.
3472 # Make-target contains the concatenation of all host makefile fragments
3473 # [there can be more than one]. This file is built by configure.frag.
3474 target_overrides=Make-target
3476 for f in .. ${tmake_file}
3478 if test -f ${srcdir}/config/$f
3480 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3484 # If the host doesn't support symlinks, modify CC in
3485 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3486 # Otherwise, we can use "CC=$(CC)".
3488 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3490 cc_set_by_configure="\$(CC)"
3491 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3494 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3496 symbolic_link="cp -p"
3500 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3501 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3505 out_object_file=`basename $out_file .c`.o
3508 for f in $tm_file; do
3509 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3513 for f in $host_xm_file; do
3514 if test $f != "auto-host.h"; then
3515 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3517 host_xm_file_list="${host_xm_file_list} auto-host.h"
3522 for f in $build_xm_file; do
3523 if test $f != "auto-build.h"; then
3524 if test $f != "auto-host.h"; then
3525 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3527 build_xm_file_list="${build_xm_file_list} auto-host.h"
3530 build_xm_file_list="${build_xm_file_list} auto-build.h"
3534 # Define macro CROSS_COMPILE in compilation
3535 # if this is a cross-compiler.
3536 # Also use all.cross instead of all.internal
3537 # and add cross-make to Makefile.
3538 cross_overrides="/dev/null"
3539 if test x$host != x$target
3541 cross_defines="CROSS=-DCROSS_COMPILE"
3542 cross_overrides="${topdir}/cross-make"
3545 # When building gcc with a cross-compiler, we need to fix a few things.
3546 # This must come after cross-make as we want all.build to override
3548 build_overrides="/dev/null"
3549 if test x$build != x$host
3551 build_overrides="${topdir}/build-make"
3554 # Expand extra_headers to include complete path.
3555 # This substitutes for lots of t-* files.
3557 if test "x$extra_headers" = x
3560 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3561 for file in $extra_headers;
3563 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3567 if test x$use_collect2 = xno; then
3571 # Add a definition of USE_COLLECT2 if system wants one.
3572 # Also tell toplev.c what to do.
3573 # This substitutes for lots of t-* files.
3574 if test x$use_collect2 = x
3579 will_use_collect2="collect2"
3580 maybe_use_collect2="-DUSE_COLLECT2"
3584 # Set MD_DEPS if the real md file is in md.pre-cpp.
3585 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3586 # for line oriented comments, so we must always use a GNU cpp. If
3587 # building gcc with a cross compiler, use the cross compiler just
3588 # built. Otherwise, we can use the cpp just built.
3590 if test "x$md_cppflags" = x
3592 md_file_sub=$srcdir/config/$md_file
3597 # If we have gas in the build tree, make a link to it.
3598 if test -f ../gas/Makefile; then
3599 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3602 # If we have nm in the build tree, make a link to it.
3603 if test -f ../binutils/Makefile; then
3604 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3607 # If we have ld in the build tree, make a link to it.
3608 if test -f ../ld/Makefile; then
3609 # if test x$use_collect2 = x; then
3610 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3612 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3616 # Figure out what assembler alignment features are present.
3617 AC_MSG_CHECKING(assembler alignment features)
3619 gcc_cv_as_alignment_features=
3620 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3621 if test -x as$host_exeext; then
3622 # Build using assembler in the current directory.
3623 gcc_cv_as=./as$host_exeext
3624 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3625 # Single tree build which includes gas.
3626 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3629 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3631 if test x$gcc_cv_gas_version != x; then
3636 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3637 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3639 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3640 # Gas version 2.6 and later support for .balign and .p2align.
3641 # bytes to skip when using .p2align.
3642 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
3643 gcc_cv_as_alignment_features=".balign and .p2align"
3644 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3646 # Gas version 2.8 and later support specifying the maximum
3647 # bytes to skip when using .p2align.
3648 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
3649 gcc_cv_as_alignment_features=".p2align including maximum skip"
3650 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3653 elif test x$host = x$target; then
3655 gcc_cv_as=as$host_exeext
3657 if test x$gcc_cv_as != x; then
3658 # Check if we have .balign and .p2align
3659 echo ".balign 4" > conftest.s
3660 echo ".p2align 2" >> conftest.s
3661 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3662 gcc_cv_as_alignment_features=".balign and .p2align"
3663 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3665 rm -f conftest.s conftest.o
3666 # Check if specifying the maximum bytes to skip when
3667 # using .p2align is supported.
3668 echo ".p2align 4,,7" > conftest.s
3669 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3670 gcc_cv_as_alignment_features=".p2align including maximum skip"
3671 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3673 rm -f conftest.s conftest.o
3675 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3677 AC_MSG_CHECKING(assembler subsection support)
3678 gcc_cv_as_subsections=
3679 if test x$gcc_cv_as != x; then
3680 # Check if we have .subsection
3681 echo ".subsection 1" > conftest.s
3682 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3683 gcc_cv_as_subsections=".subsection"
3684 if test -x nm$host_exeext; then
3685 gcc_cv_nm=./nm$host_exeext
3686 elif test x$host = x$target; then
3688 gcc_cv_nm=nm$host_exeext
3690 if test x$gcc_cv_nm != x; then
3691 cat > conftest.s <<EOF
3692 conftest_label1: .word 0
3694 conftest_label2: .word 0
3697 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3698 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3699 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3700 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3703 gcc_cv_as_subsections="working .subsection -1"
3704 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3709 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3711 AC_MSG_RESULT($gcc_cv_as_subsections)
3713 # Figure out what language subdirectories are present.
3715 for lang in ${srcdir}/*/config-lang.in ..
3719 # The odd quoting in the next line works around
3720 # an apparent bug in bash 1.12 on linux.
3722 ${srcdir}/ada/config-lang.in)
3723 if test x$gnat = xyes ; then
3724 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3727 ${srcdir}/[*]/config-lang.in) ;;
3728 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3733 # Make gthr-default.h if we have a thread file.
3735 if test $thread_file != single; then
3736 rm -f gthr-default.h
3737 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3738 gthread_flags=-DHAVE_GTHR_DEFAULT
3740 AC_SUBST(gthread_flags)
3742 # Make empty files to contain the specs and options for each language.
3743 # Then add #include lines to for a compiler that has specs and/or options.
3748 rm -f specs.h options.h gencheck.h
3749 touch specs.h options.h gencheck.h
3750 for subdir in . $subdirs
3752 if test -f $srcdir/$subdir/lang-specs.h; then
3753 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3754 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3756 if test -f $srcdir/$subdir/lang-options.h; then
3757 echo "#include \"$subdir/lang-options.h\"" >>options.h
3758 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3760 if test -f $srcdir/$subdir/$subdir-tree.def; then
3761 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3762 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3766 # These (without "all_") are set in each config-lang.in.
3767 # `language' must be a single word so is spelled singularly.
3773 all_outputs=Makefile
3774 # List of language makefile fragments.
3779 # Add the language fragments.
3780 # Languages are added via two mechanisms. Some information must be
3781 # recorded in makefile variables, these are defined in config-lang.in.
3782 # We accumulate them and plug them into the main Makefile.
3783 # The other mechanism is a set of hooks for each of the main targets
3784 # like `clean', `install', etc.
3786 language_fragments="Make-lang"
3787 language_hooks="Make-hooks"
3790 for s in .. $subdirs
3802 . ${srcdir}/$s/config-lang.in
3803 if test "x$language" = x
3805 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3808 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3809 all_languages="$all_languages $language"
3810 if test "x$boot_language" = xyes
3812 all_boot_languages="$all_boot_languages $language"
3814 all_compilers="$all_compilers $compilers"
3815 all_stagestuff="$all_stagestuff $stagestuff"
3816 all_diff_excludes="$all_diff_excludes $diff_excludes"
3817 all_headers="$all_headers $headers"
3818 all_outputs="$all_outputs $outputs"
3819 if test x$outputs = x
3821 oldstyle_subdirs="$oldstyle_subdirs $s"
3823 all_lib2funcs="$all_lib2funcs $lib2funcs"
3827 # Since we can't use `::' targets, we link each language in
3828 # with a set of hooks, reached indirectly via lang.${target}.
3832 target_list="all.build all.cross start.encap rest.encap \
3834 install-normal install-common install-info install-man \
3836 mostlyclean clean distclean extraclean maintainer-clean \
3837 stage1 stage2 stage3 stage4"
3838 for t in $target_list
3841 for l in .. $all_languages
3843 if test $l != ".."; then
3847 echo "lang.$t: $x" >> Make-hooks
3850 # If we're not building in srcdir, create .gdbinit.
3852 if test ! -f Makefile.in; then
3853 echo "dir ." > .gdbinit
3854 echo "dir ${srcdir}" >> .gdbinit
3855 if test x$gdb_needs_out_file_path = xyes
3857 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3859 if test "x$subdirs" != x; then
3862 echo "dir ${srcdir}/$s" >> .gdbinit
3865 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3868 # Define variables host_canonical and build_canonical
3869 # because some Cygnus local changes in the Makefile depend on them.
3870 build_canonical=${build}
3871 host_canonical=${host}
3873 if test "${host}" != "${target}" ; then
3874 target_subdir=${target}/
3876 AC_SUBST(build_canonical)
3877 AC_SUBST(host_canonical)
3878 AC_SUBST(target_subdir)
3880 # If this is using newlib, then define inhibit_libc in
3881 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3882 # libgcc.a, but that's OK because newib should have its own version of
3885 if test x$with_newlib = xyes; then
3886 inhibit_libc=-Dinhibit_libc
3888 AC_SUBST(inhibit_libc)
3890 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3893 if test x$enable_haifa = xyes; then
3894 echo "Using the Haifa scheduler."
3896 sched_cflags=-DHAIFA
3898 AC_SUBST(sched_prefix)
3899 AC_SUBST(sched_cflags)
3900 if test x$enable_haifa != x; then
3901 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3902 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3910 # Warn if using init_priority.
3911 AC_MSG_CHECKING(whether to enable init_priority by default)
3912 if test x$enable_init_priority != xyes; then
3913 enable_init_priority=no
3915 AC_MSG_RESULT($enable_init_priority)
3917 # Nothing to do for FLOAT_H, float_format already handled.
3921 # Process the language and host/target makefile fragments.
3922 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3924 # Substitute configuration variables
3926 AC_SUBST(all_languages)
3927 AC_SUBST(all_boot_languages)
3928 AC_SUBST(all_compilers)
3929 AC_SUBST(all_lang_makefiles)
3930 AC_SUBST(all_stagestuff)
3931 AC_SUBST(all_diff_excludes)
3932 AC_SUBST(all_lib2funcs)
3933 AC_SUBST(all_headers)
3935 AC_SUBST(extra_passes)
3936 AC_SUBST(extra_programs)
3937 AC_SUBST(extra_parts)
3938 AC_SUBST(extra_c_objs)
3939 AC_SUBST(extra_cxx_objs)
3940 AC_SUBST(extra_cpp_objs)
3941 AC_SUBST(extra_c_flags)
3942 AC_SUBST(extra_objs)
3943 AC_SUBST(host_extra_gcc_objs)
3944 AC_SUBST(extra_headers_list)
3945 AC_SUBST(dep_host_xmake_file)
3946 AC_SUBST(dep_tmake_file)
3948 AC_SUBST(out_object_file)
3950 AC_SUBST(tm_file_list)
3951 AC_SUBST(build_xm_file_list)
3952 AC_SUBST(host_xm_file_list)
3953 AC_SUBST(lang_specs_files)
3954 AC_SUBST(lang_options_files)
3955 AC_SUBST(lang_tree_files)
3956 AC_SUBST(thread_file)
3957 AC_SUBST(objc_boehm_gc)
3958 AC_SUBST(gcc_version)
3959 AC_SUBST(gcc_version_trigger)
3960 AC_SUBST(local_prefix)
3961 AC_SUBST(gxx_include_dir)
3962 AC_SUBST(fixincludes)
3963 AC_SUBST(build_install_headers_dir)
3964 AC_SUBST(build_exeext)
3965 AC_SUBST(host_exeext)
3966 AC_SUBST(float_format)
3967 AC_SUBST(will_use_collect2)
3968 AC_SUBST(maybe_use_collect2)
3969 AC_SUBST(cc_set_by_configure)
3970 AC_SUBST(stage_prefix_set_by_configure)
3972 AC_SUBST(symbolic_link)
3974 AC_SUBST_FILE(target_overrides)
3975 AC_SUBST_FILE(host_overrides)
3976 AC_SUBST(cross_defines)
3977 AC_SUBST_FILE(cross_overrides)
3978 AC_SUBST_FILE(build_overrides)
3979 AC_SUBST_FILE(language_fragments)
3980 AC_SUBST_FILE(language_hooks)
3982 # Echo that links are built
3983 if test x$host = x$target
3991 if test x$host != x$build
3993 str3=" on a $build system"
3996 if test "x$str2" != x || test "x$str3" != x
4001 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4003 if test "x$str2" != x || test "x$str3" != x
4005 echo " ${str2}${str3}." 1>&2
4008 # Truncate the target if necessary
4009 if test x$host_truncate_target != x; then
4010 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4013 # Configure the subdirectories
4014 # AC_CONFIG_SUBDIRS($subdirs)
4016 # Create the Makefile
4017 # and configure language subdirectories
4018 AC_OUTPUT($all_outputs,
4020 . $srcdir/configure.lang
4021 case x$CONFIG_HEADERS in
4022 xauto-host.h:config.in)
4025 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4026 # bootstrapping and the installation procedure can still use
4027 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4028 # FLAGS_TO_PASS has been modified to solve the problem there.
4029 # This is virtually a duplicate of what happens in configure.lang; we do
4030 # an extra check to make sure this only happens if ln -s can be used.
4031 if test "$symbolic_link" = "ln -s"; then
4032 for d in .. ${subdirs} ; do
4033 if test $d != ..; then
4036 for t in stage1 stage2 stage3 stage4 include
4039 $symbolic_link ../$t $t 2>/dev/null
4050 target_alias='${target_alias}'
4052 subdirs='${subdirs}'
4053 oldstyle_subdirs='${oldstyle_subdirs}'
4054 symbolic_link='${symbolic_link}'
4055 program_transform_set='${program_transform_set}'
4056 program_transform_name='${program_transform_name}'
4057 dep_host_xmake_file='${dep_host_xmake_file}'
4058 host_xmake_file='${host_xmake_file}'
4059 dep_tmake_file='${dep_tmake_file}'
4060 tmake_file='${tmake_file}'
4061 thread_file='${thread_file}'
4062 gcc_version='${gcc_version}'
4063 gcc_version_trigger='${gcc_version_trigger}'
4064 local_prefix='${local_prefix}'
4065 build_install_headers_dir='${build_install_headers_dir}'
4066 build_exeext='${build_exeext}'
4067 host_exeext='${host_exeext}'
4068 out_file='${out_file}'
4069 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4070 SET_MAKE='${SET_MAKE}'
4071 target_list='${target_list}'
4072 target_overrides='${target_overrides}'
4073 host_overrides='${host_overrides}'
4074 cross_defines='${cross_defines}'
4075 cross_overrides='${cross_overrides}'
4076 build_overrides='${build_overrides}'