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-ld arrange to use the specified ld (full pathname).],
97 if test x"${LD+set}" = x"set"; then
98 if test ! -x "$LD"; then
99 AC_MSG_WARN([cannot execute: $LD: check --with-ld or env. var. LD])
100 elif test "GNU" = `$LD -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
103 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$LD")
108 [ --with-gnu-as arrange to work with GNU as.],
109 gas_flag="$with_gnu_as",
113 [ --with-as arrange to use the specified as (full pathname).],
115 if test x"${AS+set}" = x"set"; then
116 if test ! -x "$AS"; then
117 AC_MSG_WARN([cannot execute: $AS: check --with-as or env. var. AS])
118 elif test "GNU" = `$AS -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
121 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$AS")
126 [ --with-stabs arrange to use stabs instead of host debug format.],
132 [ --with-elf arrange to use ELF instead of host debug format.],
136 # Specify the local prefix
138 AC_ARG_WITH(local-prefix,
139 [ --with-local-prefix=DIR specifies directory to put local include.],
140 [case "${withval}" in
141 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
143 *) local_prefix=$with_local_prefix ;;
146 # Default local prefix if it is empty
147 if test x$local_prefix = x; then
148 local_prefix=/usr/local
152 # Specify the g++ header file directory
153 AC_ARG_WITH(gxx-include-dir,
154 [ --with-gxx-include-dir=DIR
155 specifies directory to put g++ header files.],
156 [case "${withval}" in
157 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
159 *) gxx_include_dir=$with_gxx_include_dir ;;
162 if test x${gxx_include_dir} = x; then
163 if test x${enable_version_specific_runtime_libs} = xyes; then
164 gxx_include_dir='${libsubdir}/include/g++'
166 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
167 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
171 # Enable expensive internal checks
172 AC_ARG_ENABLE(checking,
173 [ --enable-checking enable expensive run-time checks.],
174 [case "${enableval}" in
175 yes) AC_DEFINE(ENABLE_CHECKING) ;;
177 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
180 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
182 AC_ARG_ENABLE(cpplib,
183 [ --enable-cpplib use cpplib for the C preprocessor.],
184 if test x$enable_cpplib != xno; then
188 # Link cpplib into the compiler proper, for C/C++/ObjC.
189 AC_ARG_ENABLE(c-cpplib,
190 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
191 (implies --enable-cpplib).],
192 if test x$enable_c_cpplib != xno; then
193 extra_c_objs="${extra_c_objs} libcpp.a"
194 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
195 extra_c_flags=-DUSE_CPPLIB=1
199 # Enable Multibyte Characters for C/C++
200 AC_ARG_ENABLE(c-mbchar,
201 [ --enable-c-mbchar enable multibyte characters for C and C++.],
202 if test x$enable_c_mbchar != xno; then
203 extra_c_flags=-DMULTIBYTE_CHARS=1
206 # Enable Haifa scheduler.
208 [ --enable-haifa use the experimental scheduler.
209 --disable-haifa don't use the experimental scheduler for the
210 targets which normally enable it.])
213 # This is a work in progress...
214 AC_ARG_WITH(fast-fixincludes,
215 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
216 fast_fixinc="$with_fast_fixincludes",
219 # Enable init_priority.
220 AC_ARG_ENABLE(init-priority,
221 [ --enable-init-priority use attributes to assign initialization order
223 --disable-init-priority conform to ISO C++ rules for ordering static objects
224 (i.e. initialized in order of declaration). ],
225 if test x$enable_init_priority != xno; then
226 extra_c_flags=-DUSE_INIT_PRIORITY
230 # Pass with no value to take the default
231 # Pass with a value to specify a thread package
232 AC_ARG_ENABLE(threads,
233 [ --enable-threads enable thread usage for target GCC.
234 --enable-threads=LIB use LIB thread package for target GCC.],
235 if test x$enable_threads = xno; then
240 enable_threads_flag=$enable_threads
241 # Check if a valid thread package
242 case x${enable_threads_flag} in
245 target_thread_file='single'
249 target_thread_file=''
251 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
252 xsolaris | xwin32 | xdce | xvxworks)
253 target_thread_file=$enable_threads_flag
256 echo "$enable_threads is an unknown thread package" 1>&2
261 AC_ARG_ENABLE(objc-gc,
262 [ --enable-objc-gc enable the use of Boehm's garbage collector with
263 the GNU Objective-C runtime.],
264 if [[[ x$enable_objc_gc = xno ]]]; then
271 # Determine the host, build, and target systems
274 # Find the native compiler
277 # If the native compiler is GCC, we can enable warnings even in stage1.
278 # That's useful for people building cross-compilers, or just running a
280 if test "x$GCC" = "xyes"; then
281 stage1_warn_cflags='$(WARN_CFLAGS)'
283 stage1_warn_cflags=""
285 AC_SUBST(stage1_warn_cflags)
289 AC_MSG_CHECKING([whether a default assembler was specified])
290 if test x"${AS+set}" = x"set"; then
291 if test x"$with_gas" = x"no"; then
292 AC_MSG_RESULT([yes ($AS)])
294 AC_MSG_RESULT([yes ($AS - GNU as)])
300 AC_MSG_CHECKING([whether a default linker was specified])
301 if test x"${LD+set}" = x"set"; then
302 if test x"$with_gnu_ld" = x"no"; then
303 AC_MSG_RESULT([yes ($LD)])
305 AC_MSG_RESULT([yes ($LD - GNU ld)])
311 # Find some useful tools
324 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)
326 # Check for thread headers.
327 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
328 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
330 # See if GNAT has been installed
331 AC_CHECK_PROG(gnat, gnatbind, yes, no)
333 # See if the system preprocessor understands the ANSI C preprocessor
334 # stringification operator.
335 AC_MSG_CHECKING(whether cpp understands the stringify operator)
336 AC_CACHE_VAL(gcc_cv_c_have_stringify,
339 char *test = S(foo);],
340 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
341 AC_MSG_RESULT($gcc_cv_c_have_stringify)
342 if test $gcc_cv_c_have_stringify = yes; then
343 AC_DEFINE(HAVE_CPP_STRINGIFY)
346 # Use <inttypes.h> only if it exists,
347 # doesn't clash with <sys/types.h>, and declares intmax_t.
348 AC_MSG_CHECKING(for inttypes.h)
349 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
351 [#include <sys/types.h>
352 #include <inttypes.h>],
354 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
355 gcc_cv_header_inttypes_h=yes],
356 gcc_cv_header_inttypes_h=no)])
357 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
359 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
360 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
361 sysconf isascii gettimeofday strsignal)
363 # Make sure wchar_t is available
364 #AC_CHECK_TYPE(wchar_t, unsigned int)
366 GCC_FUNC_VFPRINTF_DOPRNT
369 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
370 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
373 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
374 #include <sys/types.h>
375 #ifdef HAVE_SYS_RESOURCE_H
376 #include <sys/resource.h>
390 build_install_headers_dir=install-headers-tar
395 host_truncate_target=
398 # Decode the host machine, then the target machine.
399 # For the host machine, we save the xm_file variable as host_xm_file;
400 # then we decode the target machine and forget everything else
401 # that came from the host machine.
402 for machine in $build $host $target; do
416 # Set this to force installation and use of collect2.
418 # Set this to override the default target model.
420 # Set this to control which fixincludes program to use.
421 if test x$fast_fixinc != xyes; then
422 fixincludes=fixincludes
423 else fixincludes=fixinc.sh ; fi
424 # Set this to control how the header file directory is installed.
425 install_headers_dir=install-headers-tar
426 # Set this to a non-empty list of args to pass to cpp if the target
427 # wants its .md file passed through cpp.
429 # Set this if directory names should be truncated to 14 characters.
431 # Set this if gdb needs a dir command with `dirname $out_file`
432 gdb_needs_out_file_path=
433 # Set this if the build machine requires executables to have a
436 # Set this to control which thread package will be used.
438 # Reinitialize these from the flag values every loop pass, since some
439 # configure entries modify them.
441 gnu_ld="$gnu_ld_flag"
442 enable_threads=$enable_threads_flag
444 # Set default cpu_type, tm_file and xm_file so it can be updated in
445 # each machine entry.
446 cpu_type=`echo $machine | sed 's/-.*$//'`
482 tm_file=${cpu_type}/${cpu_type}.h
483 xm_file=${cpu_type}/xm-${cpu_type}.h
485 # Set the default macros to define for GNU/Linux systems.
488 xm_defines="HAVE_ATEXIT POSIX BSTRING"
493 # Support site-specific machine types.
495 cpu_type=`echo $machine | sed -e 's/-.*//'`
496 rest=`echo $machine | sed -e "s/$cpu_type-//"`
497 xm_file=${cpu_type}/xm-$rest.h
498 tm_file=${cpu_type}/$rest.h
499 if test -f $srcdir/config/${cpu_type}/x-$rest; \
500 then xmake_file=${cpu_type}/x-$rest; \
503 if test -f $srcdir/config/${cpu_type}/t-$rest; \
504 then tmake_file=${cpu_type}/t-$rest; \
510 a29k-*-bsd* | a29k-*-sym1*)
511 tm_file="${tm_file} a29k/unix.h"
513 xmake_file=a29k/x-unix
516 a29k-*-udi | a29k-*-coff)
517 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
518 tmake_file=a29k/t-a29kbare
521 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
522 tmake_file=a29k/t-vx29k
523 extra_parts="crtbegin.o crtend.o"
524 thread_file='vxworks'
526 a29k-*-*) # Default a29k environment.
529 alpha*-*-linux-gnuecoff*)
530 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
531 target_cpu_default="MASK_GAS"
536 alpha*-*-linux-gnulibc1*)
537 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
538 target_cpu_default="MASK_GAS"
539 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
540 extra_parts="crtbegin.o crtend.o"
541 fixincludes=fixinc.wrap
544 if test x$enable_threads = xyes; then
549 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
550 target_cpu_default="MASK_GAS"
551 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
552 extra_parts="crtbegin.o crtend.o"
554 fixincludes=Makefile.in
556 if test x$enable_threads = xyes; then
561 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
562 target_cpu_default="MASK_GAS"
563 tmake_file="alpha/t-crtbe"
564 extra_parts="crtbegin.o crtend.o"
566 fixincludes=fixinc.wrap
571 if test x$stabs = xyes
573 tm_file="${tm_file} dbx.h"
575 if test x$gas != xyes
577 extra_passes="mips-tfile mips-tdump"
582 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
587 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
590 tm_file="${tm_file} alpha/osf.h"
591 # Some versions of OSF4 (specifically X4.0-9 296.7) have
592 # a broken tar, so we use cpio instead.
593 install_headers_dir=install-headers-cpio
598 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
600 target_cpu_default=MASK_SUPPORT_ARCH
605 tm_file="${tm_file} dbx.h alpha/vxworks.h"
608 extra_passes="mips-tfile mips-tdump"
613 tm_file="${tm_file} alpha/win-nt.h"
614 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
616 xmake_file=winnt/x-winnt
617 extra_host_objs=oldnames.o
618 extra_gcc_objs="spawnv.o oldnames.o"
619 fixincludes=fixinc.winnt
620 if test x$gnu_ld != xyes
622 extra_programs=ld.exe
624 if test x$enable_threads = xyes; then
630 xm_file="${xm_file} alpha/xm-vms.h"
631 tmake_file=alpha/t-vms
632 fixincludes=Makefile.in
635 extra_parts="crtinit.o crtfini.o"
637 arm-*-coff* | armel-*-coff*)
639 tmake_file=arm/t-bare
642 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
644 tm_file=arm/riscix1-1.h
647 arm-*-riscix*) # Acorn RISC machine
650 tm_file=arm/rix-gas.h
654 xmake_file=arm/x-riscix
655 tmake_file=arm/t-riscix
658 arm-semi-aout | armel-semi-aout)
660 tmake_file=arm/t-semi
661 fixincludes=Makefile.in # There is nothing to fix
663 arm-semi-aof | armel-semi-aof)
664 tm_file=arm/semiaof.h
665 tmake_file=arm/t-semiaof
666 fixincludes=Makefile.in # There is nothing to fix
670 xm_file="arm/xm-netbsd.h ${xm_file}"
671 tmake_file="t-netbsd arm/t-netbsd"
672 # On NetBSD, the headers are already okay, except for math.h.
673 fixincludes=fixinc.wrap
675 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
678 tm_file=arm/linux-aout.h
679 tmake_file=arm/t-linux
680 fixincludes=Makefile.in
683 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
684 xm_file=arm/xm-linux.h
688 tm_file=arm/linux-elf26.h
691 tm_file=arm/linux-elf.h
694 tmake_file="t-linux arm/t-linux"
695 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
696 fixincludes=Makefile.in # Nothing to fix
701 tmake_file=arm/t-bare
704 tm_file=arm/unknown-elf.h
705 tmake_file=arm/t-arm-elf
707 c1-convex-*) # Convex C1
710 fixincludes=Makefile.in
712 c2-convex-*) # Convex C2
715 fixincludes=Makefile.in
720 fixincludes=Makefile.in
725 fixincludes=Makefile.in
728 target_cpu_default=16
730 fixincludes=Makefile.in
736 clipper-intergraph-clix*)
737 tm_file="${tm_file} svr3.h clipper/clix.h"
738 xm_file=clipper/xm-clix.h
739 xmake_file=clipper/x-clix
740 extra_headers=va-clipper.h
741 extra_parts="crtbegin.o crtend.o"
742 install_headers_dir=install-headers-cpio
749 # This hasn't been upgraded to GCC 2.
750 # fx80-alliant-*) # Alliant FX/80
756 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
757 xm_file=pa/xm-papro.h
762 tm_file="${tm_file} pa/pa-osf.h"
764 fixincludes=Makefile.in
767 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
768 xm_file=pa/xm-papro.h
772 tm_file="${tm_file} pa/pa-osf.h"
774 fixincludes=Makefile.in
779 fixincludes=Makefile.in
783 fixincludes=Makefile.in
786 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
787 xm_file=pa/xm-pahpux.h
788 xmake_file=pa/x-pa-hpux
791 tm_file="${tm_file} pa/gas.h"
793 install_headers_dir=install-headers-cpio
797 hppa1.0-*-hpux8.0[0-2]*)
799 tm_file="${tm_file} pa/pa-hpux.h"
800 xm_file=pa/xm-pahpux.h
801 xmake_file=pa/x-pa-hpux
804 tm_file="${tm_file} pa/pa-gas.h"
806 tm_file="pa/pa-oldas.h ${tm_file}"
808 install_headers_dir=install-headers-cpio
812 hppa1.1-*-hpux8.0[0-2]*)
815 tm_file="${tm_file} pa/pa-hpux.h"
816 xm_file=pa/xm-pahpux.h
817 xmake_file=pa/x-pa-hpux
820 tm_file="${tm_file} pa/pa-gas.h"
822 tm_file="pa/pa-oldas.h ${tm_file}"
824 install_headers_dir=install-headers-cpio
829 tm_file="${tm_file} pa/pa-hpux.h"
830 xm_file=pa/xm-pahpux.h
831 xmake_file=pa/x-pa-hpux
834 tm_file="${tm_file} pa/pa-gas.h"
836 install_headers_dir=install-headers-cpio
840 tm_file="${tm_file} pa/pa-hpux.h"
841 xm_file=pa/xm-pahpux.h
842 xmake_file=pa/x-pa-hpux
845 tm_file="${tm_file} pa/pa-gas.h"
847 install_headers_dir=install-headers-cpio
852 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
853 xm_file=pa/xm-pahpux.h
854 xmake_file=pa/x-pa-hpux
858 tm_file="${tm_file} pa/pa-gas.h"
860 if test x$enable_threads = x; then
861 enable_threads=$have_pthread_h
863 if test x$enable_threads = xyes; then
865 tmake_file="${tmake_file} pa/t-dce-thr"
867 install_headers_dir=install-headers-cpio
871 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
872 xm_file=pa/xm-pahpux.h
873 xmake_file=pa/x-pa-hpux
876 tm_file="${tm_file} pa/pa-gas.h"
878 if test x$enable_threads = x; then
879 enable_threads=$have_pthread_h
881 if test x$enable_threads = xyes; then
883 tmake_file="${tmake_file} pa/t-dce-thr"
885 install_headers_dir=install-headers-cpio
890 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
891 xm_file=pa/xm-pahpux.h
892 xmake_file=pa/x-pa-hpux
895 tm_file="${tm_file} pa/pa-gas.h"
897 install_headers_dir=install-headers-cpio
901 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
902 xm_file=pa/xm-pahpux.h
903 xmake_file=pa/x-pa-hpux
906 tm_file="${tm_file} pa/pa-gas.h"
908 install_headers_dir=install-headers-cpio
913 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
914 xm_file=pa/xm-pahpux.h
915 xmake_file=pa/x-pa-hpux
918 tm_file="${tm_file} pa/pa-gas.h"
920 install_headers_dir=install-headers-cpio
924 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
925 xm_file=pa/xm-pahpux.h
926 xmake_file=pa/x-pa-hpux
929 tm_file="${tm_file} pa/pa-gas.h"
931 install_headers_dir=install-headers-cpio
937 fixincludes=Makefile.in
942 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
946 tm_file=i386/aix386.h
947 extra_parts="crtbegin.o crtend.o"
948 tmake_file=i386/t-crtstuff
950 tm_file=i386/aix386ng.h
953 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
955 xmake_file=i386/x-aix
958 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
960 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
961 xm_defines="USG POSIX SMALL_ARG_MAX"
962 xmake_file=i386/x-ncr3000
963 if test x$stabs = xyes -a x$gas = xyes
965 tm_file=i386/sysv4gdb.h
969 extra_parts="crtbegin.o crtend.o"
970 tmake_file=i386/t-crtpic
976 xm_file=i386/xm-next.h
977 tmake_file=i386/t-next
978 xmake_file=i386/x-next
979 extra_objs=nextstep.o
980 extra_parts="crtbegin.o crtend.o"
981 if test x$enable_threads = xyes; then
986 i[34567]86-sequent-bsd*) # 80386 from Sequent
991 tm_file=i386/seq-gas.h
993 tm_file=i386/sequent.h
997 i[34567]86-sequent-ptx1*)
999 xm_defines="USG SVR3"
1000 xmake_file=i386/x-sysv3
1001 tm_file=i386/seq-sysv3.h
1002 tmake_file=i386/t-crtstuff
1003 fixincludes=fixinc.ptx
1004 extra_parts="crtbegin.o crtend.o"
1005 install_headers_dir=install-headers-cpio
1008 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1010 xm_defines="USG SVR3"
1011 xmake_file=i386/x-sysv3
1012 tm_file=i386/seq2-sysv3.h
1013 tmake_file=i386/t-crtstuff
1014 extra_parts="crtbegin.o crtend.o"
1015 fixincludes=fixinc.ptx
1016 install_headers_dir=install-headers-cpio
1019 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1021 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1022 xm_defines="USG POSIX SMALL_ARG_MAX"
1024 tm_file=i386/ptx4-i.h
1026 extra_parts="crtbegin.o crtend.o"
1027 fixincludes=fixinc.ptx
1028 install_headers_dir=install-headers-cpio
1030 i386-sun-sunos*) # Sun i386 roadrunner
1036 i[34567]86-wrs-vxworks*)
1038 tm_file=i386/vxi386.h
1039 tmake_file=i386/t-i386bare
1044 tm_file=i386/i386-aout.h
1045 tmake_file=i386/t-i386bare
1048 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1050 tm_file=i386/bsd386.h
1051 # tmake_file=t-libc-ok
1056 tm_file=i386/386bsd.h
1057 # tmake_file=t-libc-ok
1058 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1062 i[34567]86-*-freebsdelf*)
1064 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1065 # On FreeBSD, the headers are already ok, except for math.h.
1066 fixincludes=fixinc.wrap
1067 tmake_file=i386/t-freebsd
1073 i[34567]86-*-freebsd*)
1075 tm_file=i386/freebsd.h
1076 # On FreeBSD, the headers are already ok, except for math.h.
1077 fixincludes=fixinc.wrap
1078 tmake_file=i386/t-freebsd
1080 # We are hoping OpenBSD is still close enough to NetBSD that we can
1081 # share the configurations.
1083 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1085 tm_file=i386/netbsd.h
1086 # On NetBSD, the headers are already okay, except for math.h.
1087 fixincludes=fixinc.wrap
1093 tm_file=i386/i386-coff.h
1094 tmake_file=i386/t-i386bare
1097 i[34567]86-*-isc*) # 80386 running ISC system
1099 xm_file="${xm_file} i386/xm-isc.h"
1100 xm_defines="USG SVR3"
1103 i[34567]86-*-isc[34]*)
1105 xmake_file=i386/x-isc3
1108 xmake_file=i386/x-isc
1111 if test x$gas = xyes -a x$stabs = xyes
1113 tm_file=i386/iscdbx.h
1114 tmake_file=i386/t-svr3dbx
1115 extra_parts="svr3.ifile svr3z.ifile"
1117 tm_file=i386/isccoff.h
1118 tmake_file=i386/t-crtstuff
1119 extra_parts="crtbegin.o crtend.o"
1121 install_headers_dir=install-headers-cpio
1124 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1125 changequote([,])dnl # with a.out format using
1127 xmake_file=x-linux-aout
1128 tmake_file="t-linux-aout i386/t-crtstuff"
1129 tm_file=i386/linux-oldld.h
1130 fixincludes=Makefile.in #On Linux, the headers are ok already.
1135 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1136 changequote([,])dnl # with a.out format
1137 xmake_file=x-linux-aout
1138 tmake_file="t-linux-aout i386/t-crtstuff"
1139 tm_file=i386/linux-aout.h
1140 fixincludes=Makefile.in #On Linux, the headers are ok already.
1145 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1146 changequote([,])dnl # with ELF format using the
1147 # GNU/Linux C library 5
1149 tm_file=i386/linux.h
1150 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1151 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1152 fixincludes=Makefile.in #On Linux, the headers are ok already.
1155 if test x$enable_threads = xyes; then
1156 thread_file='single'
1160 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1161 changequote([,])dnl # with ELF format using glibc 2
1162 # aka GNU/Linux C library 6
1164 tm_file=i386/linux.h
1165 tmake_file="t-linux i386/t-crtstuff"
1166 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1167 fixincludes=Makefile.in #On Linux, the headers are ok already.
1170 if test x$enable_threads = xyes; then
1179 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1181 xm_file=i386/xm-go32.h
1183 tmake_file=i386/t-go32
1186 i[34567]86-pc-msdosdjgpp*)
1188 xm_file=i386/xm-go32.h
1190 tmake_file=i386/t-go32
1195 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1198 tmake_file=t-libc-ok
1199 fixincludes=Makefile.in
1204 i[34567]86-*-lynxos*)
1206 if test x$gas = xyes
1210 tm_file=i386/lynx-ng.h
1212 xm_file=i386/xm-lynx.h
1213 tmake_file=i386/t-i386bare
1220 # tmake_file=t-libc-ok
1224 i[34567]86-*-osfrose*) # 386 using OSF/rose
1226 if test x$elf = xyes
1228 tm_file=i386/osfelf.h
1231 tm_file=i386/osfrose.h
1234 xm_file="i386/xm-osf.h ${xm_file}"
1235 xmake_file=i386/x-osfrose
1236 tmake_file=i386/t-osf
1237 extra_objs=halfpic.o
1240 i[34567]86-go32-rtems*)
1243 xm_file=i386/xm-go32.h
1244 tm_file=i386/go32-rtems.h
1245 tmake_file="i386/t-go32 t-rtems"
1248 i[34567]86-*-rtemself*)
1251 tm_file=i386/rtemself.h
1252 tmake_file="i386/t-i386bare t-rtems"
1255 i[34567]86-*-rtems*)
1258 tm_file=i386/rtems.h
1259 tmake_file="i386/t-i386bare t-rtems"
1262 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1264 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1265 xm_defines="USG SVR3"
1266 xmake_file=i386/x-sco5
1267 fixincludes=fixinc.sco
1268 install_headers_dir=install-headers-cpio
1270 if test x$gas = xyes
1272 tm_file="i386/sco5gas.h ${tm_file}"
1273 tmake_file=i386/t-sco5gas
1275 tmake_file=i386/t-sco5
1277 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1280 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1282 xm_file="${xm_file} i386/xm-sco.h"
1283 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1284 xmake_file=i386/x-sco4
1285 fixincludes=fixinc.sco
1286 install_headers_dir=install-headers-cpio
1287 if test x$stabs = xyes
1289 tm_file=i386/sco4dbx.h
1290 tmake_file=i386/t-svr3dbx
1291 extra_parts="svr3.ifile svr3z.rfile"
1294 tmake_file=i386/t-crtstuff
1295 extra_parts="crtbegin.o crtend.o"
1300 i[34567]86-*-sco*) # 80386 running SCO system
1302 xm_file=i386/xm-sco.h
1303 xmake_file=i386/x-sco
1304 install_headers_dir=install-headers-cpio
1305 if test x$stabs = xyes
1307 tm_file=i386/scodbx.h
1308 tmake_file=i386/t-svr3dbx
1309 extra_parts="svr3.ifile svr3z.rfile"
1312 extra_parts="crtbegin.o crtend.o"
1313 tmake_file=i386/t-crtstuff
1318 i[34567]86-*-solaris2*)
1320 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1321 xm_defines="USG POSIX SMALL_ARG_MAX"
1322 if test x$stabs = xyes
1324 tm_file=i386/sol2dbg.h
1328 tmake_file=i386/t-sol2
1329 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1335 fixincludes=fixinc.svr4;;
1337 fixincludes=fixinc.wrap;;
1339 if test x$enable_threads = xyes; then
1340 thread_file='solaris'
1344 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1346 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1347 xm_defines="USG POSIX"
1348 tm_file=i386/sysv4.h
1349 if test x$stabs = xyes
1351 tm_file="${tm_file} dbx.h"
1353 tmake_file=i386/t-crtpic
1355 extra_parts="crtbegin.o crtend.o"
1356 fixincludes=fixinc.svr4
1359 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1361 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1362 xm_defines="USG POSIX SMALL_ARG_MAX"
1363 tm_file=i386/sysv4.h
1364 if test x$stabs = xyes
1366 tm_file="${tm_file} dbx.h"
1368 tmake_file=i386/t-crtpic
1370 extra_parts="crtbegin.o crtend.o"
1373 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1375 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1376 xm_defines="USG POSIX"
1378 tmake_file="i386/t-crtpic i386/t-udk"
1380 extra_parts="crtbegin.o crtend.o"
1381 fixincludes="fixinc.svr4"
1384 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1387 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1388 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1389 fixincludes=Makefile.in #Don't do it on OSF/1
1390 if test x$stabs = xyes
1392 tm_file=i386/osf1elfgdb.h
1394 tm_file=i386/osf1elf.h
1396 tmake_file=i386/t-osf1elf
1397 xmake_file=i386/x-osf1elf
1398 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1401 i[34567]86-*-sysv*) # Intel 80386's running system V
1403 xm_defines="USG SVR3"
1404 xmake_file=i386/x-sysv3
1405 if test x$gas = xyes
1407 if test x$stabs = xyes
1409 tm_file=i386/svr3dbx.h
1410 tmake_file=i386/t-svr3dbx
1411 extra_parts="svr3.ifile svr3z.rfile"
1413 tm_file=i386/svr3gas.h
1414 extra_parts="crtbegin.o crtend.o"
1415 tmake_file=i386/t-crtstuff
1418 tm_file=i386/sysv3.h
1419 extra_parts="crtbegin.o crtend.o"
1420 tmake_file=i386/t-crtstuff
1423 i386-*-vsta) # Intel 80386's running VSTa kernel
1424 xm_file="${xm_file} i386/xm-vsta.h"
1426 tmake_file=i386/t-vsta
1427 xmake_file=i386/x-vsta
1432 xm_file="${xm_file} i386/xm-cygwin32.h"
1433 tmake_file=i386/t-cygwin32
1434 tm_file=i386/win32.h
1435 xmake_file=i386/x-cygwin32
1437 fixincludes=Makefile.in
1438 if test x$enable_threads = xyes; then
1444 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1446 xm_file="${xm_file} i386/xm-cygwin32.h"
1447 tmake_file=i386/t-cygwin32
1448 tm_file=i386/cygwin32.h
1449 xmake_file=i386/x-cygwin32
1451 fixincludes=Makefile.in
1452 if test x$enable_threads = xyes; then
1458 i[34567]86-*-mingw32*)
1460 tm_file=i386/mingw32.h
1461 xm_file="${xm_file} i386/xm-mingw32.h"
1462 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1464 xmake_file=i386/x-cygwin32
1465 fixincludes=Makefile.in
1466 if test x$enable_threads = xyes; then
1473 *minwg32crt* | *mingw32*)
1474 tm_file="${tm_file} i386/crtdll.h"
1479 i[34567]86-*-winnt3*)
1481 tm_file=i386/win-nt.h
1482 out_file=i386/i386.c
1483 xm_file="xm-winnt.h ${xm_file}"
1484 xmake_file=winnt/x-winnt
1485 tmake_file=i386/t-winnt
1486 extra_host_objs="winnt.o oldnames.o"
1487 extra_gcc_objs="spawnv.o oldnames.o"
1488 fixincludes=fixinc.winnt
1489 if test x$gnu_ld != xyes
1491 extra_programs=ld.exe
1493 if test x$enable_threads = xyes; then
1498 i[34567]86-dg-dgux*)
1500 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1501 xm_defines="USG POSIX"
1502 out_file=i386/dgux.c
1504 tmake_file=i386/t-dgux
1505 xmake_file=i386/x-dgux
1506 fixincludes=fixinc.dgux
1507 install_headers_dir=install-headers-cpio
1509 i860-alliant-*) # Alliant FX/2800
1510 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1511 xm_file="${xm_file}"
1512 xmake_file=i860/x-fx2800
1513 tmake_file=i860/t-fx2800
1514 extra_parts="crtbegin.o crtend.o"
1517 tm_file="${tm_file} i860/bsd.h"
1518 if test x$gas = xyes
1520 tm_file="${tm_file} i860/bsd-gas.h"
1525 tm_file="${tm_file} i860/mach.h"
1526 tmake_file=t-libc-ok
1528 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1529 tm_file="${tm_file} svr3.h i860/paragon.h"
1530 xm_defines="USG SVR3"
1534 tm_file="${tm_file} svr3.h i860/sysv3.h"
1535 xm_defines="USG SVR3"
1536 xmake_file=i860/x-sysv3
1537 extra_parts="crtbegin.o crtend.o"
1540 tm_file="${tm_file} svr4.h i860/sysv4.h"
1541 xm_defines="USG SVR3"
1542 xmake_file=i860/x-sysv4
1544 extra_parts="crtbegin.o crtend.o"
1546 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1547 tm_file="${tm_file} i960/vx960.h"
1548 tmake_file=i960/t-vxworks960
1550 thread_file='vxworks'
1552 i960-wrs-vxworks5* | i960-wrs-vxworks)
1553 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1554 tmake_file=i960/t-vxworks960
1556 thread_file='vxworks'
1559 tm_file="${tm_file} i960/vx960.h"
1560 tmake_file=i960/t-vxworks960
1562 thread_file='vxworks'
1565 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1566 tmake_file=i960/t-960bare
1570 tmake_file="i960/t-960bare t-rtems"
1571 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1574 i960-*-*) # Default i960 environment.
1578 extra_parts="crtinit.o crtfini.o"
1580 m68000-convergent-sysv*)
1582 xm_file="m68k/xm-3b1.h ${xm_file}"
1585 extra_headers=math-68881.h
1587 m68000-hp-bsd*) # HP 9000/200 running BSD
1588 tm_file=m68k/hp2bsd.h
1589 xmake_file=m68k/x-hp2bsd
1591 extra_headers=math-68881.h
1593 m68000-hp-hpux*) # HP 9000 series 300
1594 xm_file="xm_alloca.h ${xm_file}"
1595 xm_defines="USG NO_SYS_SIGLIST"
1596 if test x$gas = xyes
1598 xmake_file=m68k/x-hp320g
1599 tm_file=m68k/hp310g.h
1601 xmake_file=m68k/x-hp320
1602 tm_file=m68k/hp310.h
1604 install_headers_dir=install-headers-cpio
1606 extra_headers=math-68881.h
1611 extra_headers=math-68881.h
1614 tm_file=m68k/sun2o4.h
1616 extra_headers=math-68881.h
1619 xm_file="m68k/xm-3b1.h ${xm_file}"
1621 if test x$gas = xyes
1628 extra_headers=math-68881.h
1630 m68k-apple-aux*) # Apple Macintosh running A/UX
1631 xm_defines="USG AUX"
1632 tmake_file=m68k/t-aux
1633 install_headers_dir=install-headers-cpio
1634 extra_headers=math-68881.h
1635 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1637 if test "$gnu_ld" = yes
1639 tm_file="${tm_file} m68k/auxgld.h"
1641 tm_file="${tm_file} m68k/auxld.h"
1643 if test "$gas" = yes
1645 tm_file="${tm_file} m68k/auxgas.h"
1647 tm_file="${tm_file} m68k/auxas.h"
1649 tm_file="${tm_file} m68k/a-ux.h"
1653 tm_file=m68k/apollo68.h
1654 xmake_file=m68k/x-apollo68
1656 extra_headers=math-68881.h
1659 m68k-altos-sysv*) # Altos 3068
1660 if test x$gas = xyes
1662 tm_file=m68k/altos3068.h
1665 echo "The Altos is supported only with the GNU assembler" 1>&2
1668 extra_headers=math-68881.h
1670 m68k-bull-sysv*) # Bull DPX/2
1671 if test x$gas = xyes
1673 if test x$stabs = xyes
1675 tm_file=m68k/dpx2cdbx.h
1677 tm_file=m68k/dpx2g.h
1682 xm_file="xm-alloca.h ${xm_file}"
1684 xmake_file=m68k/x-dpx2
1686 extra_headers=math-68881.h
1688 m68k-atari-sysv4*) # Atari variant of V.4.
1689 tm_file=m68k/atari.h
1690 xm_file="xm-alloca.h ${xm_file}"
1691 xm_defines="USG FULL_PROTOTYPES"
1693 extra_parts="crtbegin.o crtend.o"
1694 extra_headers=math-68881.h
1697 m68k-motorola-sysv*)
1698 tm_file=m68k/mot3300.h
1699 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1700 xm_defines=NO_SYS_SIGLIST
1701 if test x$gas = xyes
1703 xmake_file=m68k/x-mot3300-gas
1704 if test x$gnu_ld = xyes
1706 tmake_file=m68k/t-mot3300-gald
1708 tmake_file=m68k/t-mot3300-gas
1712 xmake_file=m68k/x-mot3300
1713 if test x$gnu_ld = xyes
1715 tmake_file=m68k/t-mot3300-gld
1717 tmake_file=m68k/t-mot3300
1721 gdb_needs_out_file_path=yes
1722 extra_parts="crt0.o mcrt0.o"
1723 extra_headers=math-68881.h
1726 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1727 tm_file=m68k/tower-as.h
1728 xm_defines="USG SVR3"
1729 xmake_file=m68k/x-tower
1730 extra_parts="crtbegin.o crtend.o"
1731 extra_headers=math-68881.h
1734 tm_file=m68k/plexus.h
1735 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1738 extra_headers=math-68881.h
1742 xm_file="xm-alloca.h ${xm_file}"
1744 extra_headers=math-68881.h
1747 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1748 xm_defines="USG unos"
1749 xmake_file=m68k/x-crds
1752 extra_headers=math-68881.h
1754 m68k-cbm-sysv4*) # Commodore variant of V.4.
1756 xm_file="xm-alloca.h ${xm_file}"
1757 xm_defines="USG FULL_PROTOTYPES"
1758 xmake_file=m68k/x-amix
1760 extra_parts="crtbegin.o crtend.o"
1761 extra_headers=math-68881.h
1765 tm_file=m68k/ccur-GAS.h
1766 xmake_file=m68k/x-ccur
1767 extra_headers=math-68881.h
1771 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1772 tm_file=m68k/hp3bsd44.h
1773 xmake_file=m68k/x-hp3bsd44
1775 extra_headers=math-68881.h
1778 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1779 tm_file=m68k/hp3bsd.h
1781 extra_headers=math-68881.h
1785 if test x$with_fp = xno
1787 tm_file=m68k/isi-nfp.h
1793 extra_headers=math-68881.h
1795 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1796 xm_file="xm_alloca.h ${xm_file}"
1797 xm_defines="USG NO_SYS_SIGLIST"
1798 if test x$gas = xyes
1800 xmake_file=m68k/x-hp320g
1801 tm_file=m68k/hp320g.h
1803 xmake_file=m68k/x-hp320
1804 tm_file=m68k/hpux7.h
1806 install_headers_dir=install-headers-cpio
1808 extra_headers=math-68881.h
1811 m68k-hp-hpux*) # HP 9000 series 300
1812 xm_file="xm_alloca.h ${xm_file}"
1813 xm_defines="USG NO_SYS_SIGLIST"
1814 if test x$gas = xyes
1816 xmake_file=m68k/x-hp320g
1817 tm_file=m68k/hp320g.h
1819 xmake_file=m68k/x-hp320
1820 tm_file=m68k/hp320.h
1822 install_headers_dir=install-headers-cpio
1824 extra_headers=math-68881.h
1828 tm_file=m68k/sun3mach.h
1830 extra_headers=math-68881.h
1834 if test x$gas = xyes
1836 tm_file=m68k/news3gas.h
1838 tm_file=m68k/news3.h
1841 extra_headers=math-68881.h
1844 m68k-sony-bsd* | m68k-sony-newsos*)
1845 if test x$gas = xyes
1847 tm_file=m68k/newsgas.h
1852 extra_headers=math-68881.h
1855 m68k-next-nextstep2*)
1856 tm_file=m68k/next21.h
1857 xm_file="m68k/xm-next.h ${xm_file}"
1858 tmake_file=m68k/t-next
1859 xmake_file=m68k/x-next
1860 extra_objs=nextstep.o
1861 extra_headers=math-68881.h
1865 m68k-next-nextstep3*)
1867 xm_file="m68k/xm-next.h ${xm_file}"
1868 tmake_file=m68k/t-next
1869 xmake_file=m68k/x-next
1870 extra_objs=nextstep.o
1871 extra_parts="crtbegin.o crtend.o"
1872 extra_headers=math-68881.h
1874 if test x$enable_threads = xyes; then
1879 if test x$with_fp = xno
1881 tm_file=m68k/sun3n3.h
1883 tm_file=m68k/sun3o3.h
1887 extra_headers=math-68881.h
1889 m68k-sun-sunos*) # For SunOS 4 (the default).
1890 if test x$with_fp = xno
1892 tm_file=m68k/sun3n.h
1898 extra_headers=math-68881.h
1901 tm_file=m68k/vxm68k.h
1902 tmake_file=m68k/t-vxworks68
1903 extra_headers=math-68881.h
1904 thread_file='vxworks'
1908 tmake_file=m68k/t-m68kbare
1909 tm_file="m68k/m68k-aout.h libgloss.h"
1910 extra_headers=math-68881.h
1914 tmake_file=m68k/t-m68kbare
1915 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1916 extra_headers=math-68881.h
1920 if test x$gas = xyes
1924 tm_file=m68k/lynx-ng.h
1926 xm_file=m68k/xm-lynx.h
1928 tmake_file=m68k/t-lynx
1929 extra_headers=math-68881.h
1933 tm_file=m68k/netbsd.h
1934 # On NetBSD, the headers are already okay, except for math.h.
1935 fixincludes=fixinc.wrap
1939 m68k-*-sysv3*) # Motorola m68k's running system V.3
1940 xm_file="xm-alloca.h ${xm_file}"
1942 xmake_file=m68k/x-m68kv
1943 extra_parts="crtbegin.o crtend.o"
1944 extra_headers=math-68881.h
1947 m68k-*-sysv4*) # Motorola m68k's running system V.4
1948 tm_file=m68k/m68kv4.h
1949 xm_file="xm-alloca.h ${xm_file}"
1952 extra_parts="crtbegin.o crtend.o"
1953 extra_headers=math-68881.h
1956 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1959 tm_file=m68k/linux-aout.h
1960 tmake_file="t-linux-aout m68k/t-linux-aout"
1961 fixincludes=Makefile.in # The headers are ok already.
1962 extra_headers=math-68881.h
1966 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1967 # with ELF format using the
1968 # GNU/Linux C library 5
1970 tm_file=m68k/linux.h
1971 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1972 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1973 fixincludes=Makefile.in # The headers are ok already.
1974 extra_headers=math-68881.h
1978 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1979 # with ELF format using glibc 2
1980 # aka the GNU/Linux C library 6.
1982 tm_file=m68k/linux.h
1983 tmake_file="t-linux m68k/t-linux"
1984 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1985 fixincludes=Makefile.in # The headers are ok already.
1986 extra_headers=math-68881.h
1989 if test x$enable_threads = xyes; then
1994 tmake_file=m68k/t-m68kbare
1995 tm_file=m68k/m68k-psos.h
1996 extra_headers=math-68881.h
2000 tmake_file="m68k/t-m68kbare t-rtems"
2001 tm_file=m68k/rtems.h
2002 extra_headers=math-68881.h
2009 tm_file=m88k/dguxbcs.h
2010 tmake_file=m88k/t-dguxbcs
2014 tmake_file=m88k/t-dgux
2017 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2018 xmake_file=m88k/x-dgux
2019 if test x$gas = xyes
2021 tmake_file=m88k/t-dgux-gas
2023 fixincludes=fixinc.dgux
2025 m88k-dolphin-sysv3*)
2026 tm_file=m88k/dolph.h
2027 extra_parts="crtbegin.o crtend.o"
2028 xm_file="m88k/xm-sysv3.h ${xm_file}"
2029 xmake_file=m88k/x-dolph
2030 if test x$gas = xyes
2032 tmake_file=m88k/t-m88k-gas
2035 m88k-tektronix-sysv3)
2036 tm_file=m88k/tekXD88.h
2037 extra_parts="crtbegin.o crtend.o"
2038 xm_file="m88k/xm-sysv3.h ${xm_file}"
2039 xmake_file=m88k/x-tekXD88
2040 if test x$gas = xyes
2042 tmake_file=m88k/t-m88k-gas
2046 tm_file=m88k/m88k-aout.h
2049 tm_file=m88k/m88k-coff.h
2050 tmake_file=m88k/t-bug
2054 extra_parts="crtbegin.o crtend.o"
2055 if test x$gas = xyes
2057 tmake_file=m88k/t-luna-gas
2059 tmake_file=m88k/t-luna
2063 tm_file=m88k/sysv3.h
2064 extra_parts="crtbegin.o crtend.o"
2065 xm_file="m88k/xm-sysv3.h ${xm_file}"
2066 xmake_file=m88k/x-sysv3
2067 if test x$gas = xyes
2069 tmake_file=m88k/t-m88k-gas
2073 tm_file=m88k/sysv4.h
2074 extra_parts="crtbegin.o crtend.o"
2075 xmake_file=m88k/x-sysv4
2076 tmake_file=m88k/t-sysv4
2078 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2079 tm_file=mips/iris6.h
2080 xm_file=mips/xm-iris6.h
2081 fixincludes=fixinc.irix
2082 xmake_file=mips/x-iris6
2083 tmake_file=mips/t-iris6
2084 # if test x$enable_threads = xyes; then
2085 # thread_file='irix'
2089 tm_file="mips/elf.h libgloss.h"
2090 tmake_file=mips/t-ecoff
2093 extra_parts="crtbegin.o crtend.o"
2094 # thread_file='vxworks'
2096 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2097 tm_file="mips/iris6.h mips/cross64.h"
2099 xm_file="mips/xm-iris5.h"
2100 fixincludes=Makefile.in
2101 xmake_file=mips/x-iris
2102 tmake_file=mips/t-cross64
2103 # See comment in mips/iris[56].h files.
2105 # if test x$enable_threads = xyes; then
2106 # thread_file='irix'
2110 if test x$gas = xyes
2112 if test x$stabs = xyes
2114 tm_file=mips/iris5gdb.h
2116 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2119 tm_file=mips/sni-svr4.h
2122 xmake_file=mips/x-sni-svr4
2123 tmake_file=mips/t-mips-gas
2124 if test x$gnu_ld != xyes
2129 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2130 if test x$gas = xyes
2132 tm_file="mips/iris5.h mips/iris5gas.h"
2133 if test x$stabs = xyes
2135 tm_file="${tm_file} dbx.h"
2138 tm_file=mips/iris5.h
2141 xm_file="mips/xm-iris5.h"
2142 fixincludes=fixinc.irix
2143 xmake_file=mips/x-iris
2144 # mips-tfile doesn't work yet
2145 tmake_file=mips/t-mips-gas
2146 # See comment in mips/iris5.h file.
2148 # if test x$enable_threads = xyes; then
2149 # thread_file='irix'
2152 mips-sgi-irix4loser*) # Mostly like a MIPS.
2153 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2154 if test x$stabs = xyes; then
2155 tm_file="${tm_file} dbx.h"
2158 xmake_file=mips/x-iris
2159 if test x$gas = xyes
2161 tmake_file=mips/t-mips-gas
2163 extra_passes="mips-tfile mips-tdump"
2165 if test x$gnu_ld != xyes
2169 # if test x$enable_threads = xyes; then
2170 # thread_file='irix'
2173 mips-sgi-irix4*) # Mostly like a MIPS.
2174 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2175 if test x$stabs = xyes; then
2176 tm_file="${tm_file} dbx.h"
2179 xmake_file=mips/x-iris
2180 if test x$gas = xyes
2182 tmake_file=mips/t-mips-gas
2184 extra_passes="mips-tfile mips-tdump"
2186 if test x$gnu_ld != xyes
2190 # if test x$enable_threads = xyes; then
2191 # thread_file='irix'
2194 mips-sgi-*) # Mostly like a MIPS.
2195 tm_file="mips/iris3.h ${tm_file}"
2196 if test x$stabs = xyes; then
2197 tm_file="${tm_file} dbx.h"
2200 xmake_file=mips/x-iris3
2201 if test x$gas = xyes
2203 tmake_file=mips/t-mips-gas
2205 extra_passes="mips-tfile mips-tdump"
2207 if test x$gnu_ld != xyes
2212 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2213 tm_file="mips/osfrose.h ${tm_file}"
2214 xmake_file=mips/x-osfrose
2215 tmake_file=mips/t-osfrose
2216 extra_objs=halfpic.o
2219 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2220 tm_file=mips/dec-osf1.h
2221 if test x$stabs = xyes; then
2222 tm_file="${tm_file} dbx.h"
2224 xmake_file=mips/x-dec-osf1
2225 if test x$gas = xyes
2227 tmake_file=mips/t-mips-gas
2229 tmake_file=mips/t-ultrix
2230 extra_passes="mips-tfile mips-tdump"
2232 if test x$gnu_ld != xyes
2237 mips-dec-bsd*) # Decstation running 4.4 BSD
2238 tm_file=mips/dec-bsd.h
2240 if test x$gas = xyes
2242 tmake_file=mips/t-mips-gas
2244 tmake_file=mips/t-ultrix
2245 extra_passes="mips-tfile mips-tdump"
2247 if test x$gnu_ld != xyes
2252 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2253 tm_file=mips/netbsd.h
2254 # On NetBSD, the headers are already okay, except for math.h.
2255 fixincludes=fixinc.wrap
2258 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2259 tm_file="mips/news4.h ${tm_file}"
2260 if test x$stabs = xyes; then
2261 tm_file="${tm_file} dbx.h"
2263 if test x$gas = xyes
2265 tmake_file=mips/t-mips-gas
2267 extra_passes="mips-tfile mips-tdump"
2269 if test x$gnu_ld != xyes
2273 xmake_file=mips/x-sony
2275 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2276 # That is based on svr4.
2277 # t-svr4 is not right because this system doesn't use ELF.
2278 tm_file="mips/news5.h ${tm_file}"
2279 if test x$stabs = xyes; then
2280 tm_file="${tm_file} dbx.h"
2282 xm_file="xm-siglist.h ${xm_file}"
2284 if test x$gas = xyes
2286 tmake_file=mips/t-mips-gas
2288 extra_passes="mips-tfile mips-tdump"
2290 if test x$gnu_ld != xyes
2295 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2296 tm_file="mips/svr4-5.h mips/svr4-t.h"
2297 if test x$stabs = xyes; then
2298 tm_file="${tm_file} dbx.h"
2300 xm_file="xm-siglist.h ${xm_file}"
2302 xmake_file=mips/x-sysv
2303 if test x$gas = xyes
2305 tmake_file=mips/t-mips-gas
2306 extra_parts="crtbegin.o crtend.o"
2308 tmake_file=mips/t-mips
2309 extra_passes="mips-tfile mips-tdump"
2311 if test x$gnu_ld != xyes
2316 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2317 tm_file="mips/ultrix.h ${tm_file}"
2318 if test x$stabs = xyes; then
2319 tm_file="${tm_file} dbx.h"
2321 xmake_file=mips/x-ultrix
2322 if test x$gas = xyes
2324 tmake_file=mips/t-mips-gas
2326 tmake_file=mips/t-ultrix
2327 extra_passes="mips-tfile mips-tdump"
2329 if test x$gnu_ld != xyes
2335 mips-*-riscos[56789]bsd*)
2337 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2338 if test x$stabs = xyes; then
2339 tm_file="${tm_file} dbx.h"
2341 if test x$gas = xyes
2343 tmake_file=mips/t-bsd-gas
2345 tmake_file=mips/t-bsd
2346 extra_passes="mips-tfile mips-tdump"
2348 if test x$gnu_ld != xyes
2354 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2356 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2357 if test x$stabs = xyes; then
2358 tm_file="${tm_file} dbx.h"
2360 if test x$gas = xyes
2362 tmake_file=mips/t-bsd-gas
2364 tmake_file=mips/t-bsd
2365 extra_passes="mips-tfile mips-tdump"
2367 if test x$gnu_ld != xyes
2373 mips-*-riscos[56789]sysv4*)
2375 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2376 if test x$stabs = xyes; then
2377 tm_file="${tm_file} dbx.h"
2379 xm_file="xm-siglist.h ${xm_file}"
2380 xmake_file=mips/x-sysv
2381 if test x$gas = xyes
2383 tmake_file=mips/t-svr4-gas
2385 tmake_file=mips/t-svr4
2386 extra_passes="mips-tfile mips-tdump"
2388 if test x$gnu_ld != xyes
2394 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2396 tm_file="mips/svr4-4.h ${tm_file}"
2397 if test x$stabs = xyes; then
2398 tm_file="${tm_file} dbx.h"
2401 xmake_file=mips/x-sysv
2402 if test x$gas = xyes
2404 tmake_file=mips/t-svr4-gas
2406 tmake_file=mips/t-svr4
2407 extra_passes="mips-tfile mips-tdump"
2409 if test x$gnu_ld != xyes
2415 mips-*-riscos[56789]sysv*)
2417 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2418 if test x$stabs = xyes; then
2419 tm_file="${tm_file} dbx.h"
2422 xmake_file=mips/x-sysv
2423 if test x$gas = xyes
2425 tmake_file=mips/t-svr3-gas
2427 tmake_file=mips/t-svr3
2428 extra_passes="mips-tfile mips-tdump"
2430 if test x$gnu_ld != xyes
2435 mips-*-sysv* | mips-*-riscos*sysv*)
2436 tm_file="mips/svr3-4.h ${tm_file}"
2437 if test x$stabs = xyes; then
2438 tm_file="${tm_file} dbx.h"
2441 xmake_file=mips/x-sysv
2442 if test x$gas = xyes
2444 tmake_file=mips/t-svr3-gas
2446 tmake_file=mips/t-svr3
2447 extra_passes="mips-tfile mips-tdump"
2449 if test x$gnu_ld != xyes
2455 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2457 tm_file=mips/mips-5.h
2458 if test x$stabs = xyes; then
2459 tm_file="${tm_file} dbx.h"
2461 if test x$gas = xyes
2463 tmake_file=mips/t-mips-gas
2465 extra_passes="mips-tfile mips-tdump"
2467 if test x$gnu_ld != xyes
2475 tm_file=mips/ecoffl.h
2476 if test x$stabs = xyes; then
2477 tm_file="${tm_file} dbx.h"
2479 tmake_file=mips/t-ecoff
2482 tm_file="gofast.h mips/ecoff.h"
2483 if test x$stabs = xyes; then
2484 tm_file="${tm_file} dbx.h"
2486 tmake_file=mips/t-ecoff
2489 tm_file="mips/elfl.h libgloss.h"
2490 tmake_file=mips/t-ecoff
2493 tm_file="mips/elf.h libgloss.h"
2494 tmake_file=mips/t-ecoff
2497 tm_file="mips/elfl64.h libgloss.h"
2498 tmake_file=mips/t-ecoff
2500 mips64orionel-*-elf*)
2501 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2502 tmake_file=mips/t-ecoff
2505 tm_file="mips/elf64.h libgloss.h"
2506 tmake_file=mips/t-ecoff
2509 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2510 tmake_file=mips/t-ecoff
2512 mips64orion-*-rtems*)
2513 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2514 tmake_file="mips/t-ecoff t-rtems"
2517 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2518 tmake_file=mips/t-r3900
2521 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2522 tmake_file=mips/t-r3900
2523 # FIXME mips-elf should be fixed to use crtstuff.
2526 mips-*-*) # Default MIPS RISC-OS 4.0.
2527 if test x$stabs = xyes; then
2528 tm_file="${tm_file} dbx.h"
2530 if test x$gas = xyes
2532 tmake_file=mips/t-mips-gas
2534 extra_passes="mips-tfile mips-tdump"
2536 if test x$gnu_ld != xyes
2543 tm_file="mn10200/mn10200.h"
2544 if test x$stabs = xyes
2546 tm_file="${tm_file} dbx.h"
2552 tm_file="mn10300/mn10300.h"
2553 if test x$stabs = xyes
2555 tm_file="${tm_file} dbx.h"
2560 tm_file=ns32k/encore.h
2564 tm_file=ns32k/sequent.h
2568 tm_file=ns32k/tek6100.h
2572 tm_file=ns32k/tek6200.h
2575 # This has not been updated to GCC 2.
2578 # xmake_file=ns32k/x-genix
2579 # tm_file=ns32k/genix.h
2583 tm_file=ns32k/merlin.h
2587 tm_file=ns32k/pc532-mach.h
2591 tm_file=ns32k/pc532-min.h
2592 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2597 tm_file=ns32k/netbsd.h
2598 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2599 # On NetBSD, the headers are already okay, except for math.h.
2600 fixincludes=fixinc.wrap
2604 tm_file="${tm_file} pdp11/2bsd.h"
2610 xmake_file=pyr/x-pyr
2617 xmake_file=romp/x-mach
2622 tm_file=rs6000/beos.h
2623 xm_file=rs6000/xm-beos.h
2624 tmake_file=rs6000/t-beos
2625 xmake_file=rs6000/x-beos
2627 powerpc-*-sysv* | powerpc-*-elf*)
2628 tm_file=rs6000/sysv4.h
2629 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2630 xm_defines="USG POSIX"
2631 extra_headers=ppc-asm.h
2632 if test x$gas = xyes
2634 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2636 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2638 xmake_file=rs6000/x-sysv4
2641 tm_file=rs6000/eabiaix.h
2642 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2643 fixincludes=Makefile.in
2644 extra_headers=ppc-asm.h
2647 tm_file=rs6000/eabisim.h
2648 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2649 fixincludes=Makefile.in
2650 extra_headers=ppc-asm.h
2653 tm_file=rs6000/eabi.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
2664 tm_file=rs6000/rtems.h
2665 if test x$gas = xyes
2667 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2669 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2671 fixincludes=Makefile.in
2672 extra_headers=ppc-asm.h
2674 powerpc-*-linux-gnulibc1)
2675 tm_file=rs6000/linux.h
2676 xm_file=rs6000/xm-sysv4.h
2677 out_file=rs6000/rs6000.c
2678 if test x$gas = xyes
2680 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2682 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2685 fixincludes=Makefile.in
2686 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2687 extra_headers=ppc-asm.h
2688 if test x$enable_threads = xyes; then
2692 powerpc-*-linux-gnu*)
2693 tm_file=rs6000/linux.h
2694 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2695 xm_defines="USG ${xm_defines}"
2696 out_file=rs6000/rs6000.c
2697 if test x$gas = xyes
2699 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2701 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2704 fixincludes=Makefile.in
2705 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2706 extra_headers=ppc-asm.h
2707 if test x$enable_threads = xyes; then
2711 powerpc-wrs-vxworks*)
2713 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2714 xm_defines="USG POSIX"
2715 tm_file=rs6000/vxppc.h
2716 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2717 extra_headers=ppc-asm.h
2718 thread_file='vxworks'
2720 powerpcle-*-sysv* | powerpcle-*-elf*)
2721 tm_file=rs6000/sysv4le.h
2722 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2723 xm_defines="USG POSIX"
2724 if test x$gas = xyes
2726 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2728 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2730 xmake_file=rs6000/x-sysv4
2731 extra_headers=ppc-asm.h
2733 powerpcle-*-eabisim*)
2734 tm_file=rs6000/eabilesim.h
2735 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2736 fixincludes=Makefile.in
2737 extra_headers=ppc-asm.h
2740 tm_file=rs6000/eabile.h
2741 if test x$gas = xyes
2743 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2745 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2747 fixincludes=Makefile.in
2748 extra_headers=ppc-asm.h
2750 powerpcle-*-winnt* )
2751 tm_file=rs6000/win-nt.h
2752 tmake_file=rs6000/t-winnt
2754 fixincludes=Makefile.in
2755 if test x$enable_threads = xyes; then
2758 extra_headers=ppc-asm.h
2760 powerpcle-*-pe | powerpcle-*-cygwin32)
2761 tm_file=rs6000/cygwin32.h
2762 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2763 tmake_file=rs6000/t-winnt
2764 xmake_file=rs6000/x-cygwin32
2766 fixincludes=Makefile.in
2767 if test x$enable_threads = xyes; then
2771 extra_headers=ppc-asm.h
2773 powerpcle-*-solaris2*)
2774 tm_file=rs6000/sol2.h
2775 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2776 xm_defines="USG POSIX"
2777 if test x$gas = xyes
2779 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2781 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2783 xmake_file=rs6000/x-sysv4
2788 fixincludes=fixinc.svr4;;
2790 fixincludes=fixinc.wrap;;
2792 extra_headers=ppc-asm.h
2795 rs6000-ibm-aix3.[01]*)
2797 tm_file=rs6000/aix31.h
2798 xmake_file=rs6000/x-aix31
2802 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2804 tm_file=rs6000/aix3newas.h
2805 if test x$host != x$target
2807 tmake_file=rs6000/t-xnewas
2809 tmake_file=rs6000/t-newas
2814 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2816 tm_file=rs6000/aix41.h
2817 if test x$host != x$target
2819 tmake_file=rs6000/t-xnewas
2821 tmake_file=rs6000/t-newas
2823 xmake_file=rs6000/x-aix41
2827 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2829 tm_file=rs6000/aix43.h
2830 if test x$host != x$target
2832 tmake_file=rs6000/t-xaix43
2834 tmake_file=rs6000/t-aix43
2836 xmake_file=rs6000/x-aix43
2840 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2842 tm_file=rs6000/aix43.h
2843 if test x$host != x$target
2845 tmake_file=rs6000/t-xaix43
2847 tmake_file=rs6000/t-aix43
2849 xmake_file=rs6000/x-aix43
2859 tm_file=rs6000/mach.h
2860 xm_file="${xm_file} rs6000/xm-mach.h"
2861 xmake_file=rs6000/x-mach
2865 tm_file=rs6000/lynx.h
2866 xm_file=rs6000/xm-lynx.h
2867 tmake_file=rs6000/t-rs6000
2868 xmake_file=rs6000/x-lynx
2876 tmake_file="sh/t-sh t-rtems"
2877 tm_file=sh/rtemself.h
2881 tmake_file="sh/t-sh t-rtems"
2890 xm_file="xm-alloca.h ${xm_file}"
2893 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2894 tm_file=sparc/vxsparc.h
2895 tmake_file=sparc/t-vxsparc
2897 thread_file='vxworks'
2900 tmake_file=sparc/t-sparcbare
2901 tm_file="sparc/aout.h libgloss.h"
2904 tm_file=sparc/netbsd.h
2905 # On NetBSD, the headers are already okay, except for math.h.
2906 fixincludes=fixinc.wrap
2914 tmake_file=sparc/t-elf
2915 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2919 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2920 xm_file="${xm_file} sparc/xm-linux.h"
2921 tm_file=sparc/linux-aout.h
2923 fixincludes=Makefile.in #On Linux, the headers are ok already.
2926 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2927 xm_file="${xm_file} sparc/xm-linux.h"
2929 tm_file=sparc/linux.h
2930 tmake_file="t-linux t-linux-gnulibc1"
2931 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2932 fixincludes=Makefile.in #On Linux, the headers are ok already.
2935 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2936 xm_file="${xm_file} sparc/xm-linux.h"
2938 tm_file=sparc/linux.h
2939 tmake_file="t-linux"
2940 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2941 fixincludes=Makefile.in #On Linux, the headers are ok already.
2943 if test x$enable_threads = xyes; then
2948 if test x$gas = xyes
2950 tm_file=sparc/lynx.h
2952 tm_file=sparc/lynx-ng.h
2954 xm_file=sparc/xm-lynx.h
2955 tmake_file=sparc/t-sunos41
2959 tmake_file="sparc/t-sparcbare t-rtems"
2960 tm_file=sparc/rtems.h
2962 sparcv9-*-solaris2*)
2963 tm_file=sparc/sol2-sld-64.h
2964 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2965 xm_defines="USG POSIX"
2966 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2967 xmake_file=sparc/x-sysv4
2968 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2969 fixincludes=fixinc.wrap
2971 if test x${enable_threads} = x ; then
2972 enable_threads=$have_pthread_h
2973 if test x${enable_threads} = x ; then
2974 enable_threads=$have_thread_h
2977 if test x${enable_threads} = xyes ; then
2978 if test x${have_pthread_h} = xyes ; then
2981 thread_file='solaris'
2986 if test x$gnu_ld = xyes
2988 tm_file=sparc/sol2.h
2990 tm_file=sparc/sol2-sld.h
2992 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2993 xm_defines="USG POSIX"
2994 tmake_file=sparc/t-sol2
2995 xmake_file=sparc/x-sysv4
2996 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3001 fixincludes=fixinc.svr4;;
3003 fixincludes=fixinc.wrap;;
3006 if test x${enable_threads} = x; then
3007 enable_threads=$have_pthread_h
3008 if test x${enable_threads} = x; then
3009 enable_threads=$have_thread_h
3012 if test x${enable_threads} = xyes; then
3013 if test x${have_pthread_h} = xyes; then
3016 thread_file='solaris'
3021 tm_file=sparc/sunos4.h
3022 tmake_file=sparc/t-sunos40
3026 tm_file=sparc/sunos4.h
3027 tmake_file=sparc/t-sunos41
3029 if test x$gas = xyes; then
3030 tm_file="${tm_file} sparc/sun4gas.h"
3034 tm_file=sparc/sun4o3.h
3038 tm_file=sparc/sysv4.h
3039 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3040 xm_defines="USG POSIX"
3042 xmake_file=sparc/x-sysv4
3043 extra_parts="crtbegin.o crtend.o"
3046 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3047 xm_defines="USG POSIX"
3048 tm_file=sparc/vxsim.h
3049 tmake_file=sparc/t-vxsparc
3050 xmake_file=sparc/x-sysv4
3053 tm_file="sparc/splet.h libgloss.h"
3054 tmake_file=sparc/t-splet
3057 tm_file="sparc/litecoff.h libgloss.h"
3058 tmake_file=sparc/t-sparclite
3061 tm_file="sparc/lite.h aoutos.h libgloss.h"
3062 tmake_file=sparc/t-sparclite
3065 tmake_file=sparc/t-sp64
3066 tm_file=sparc/sp64-aout.h
3069 tmake_file=sparc/t-sp64
3070 tm_file=sparc/sp64-elf.h
3071 extra_parts="crtbegin.o crtend.o"
3073 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3074 tmake_file="t-linux sparc/t-linux64"
3075 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3076 tm_file=sparc/linux64.h
3078 fixincludes=Makefile.in # The headers are ok already.
3079 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3082 # This hasn't been upgraded to GCC 2.
3083 # tahoe-harris-*) # Harris tahoe, using COFF.
3084 # tm_file=tahoe/harris.h
3086 # tahoe-*-bsd*) # tahoe running BSD
3088 thumb-*-coff* | thumbel-*-coff*)
3090 out_file=arm/thumb.c
3091 xm_file=arm/xm-thumb.h
3092 md_file=arm/thumb.md
3093 tmake_file=arm/t-thumb
3094 fixincludes=Makefile.in # There is nothing to fix
3096 # This hasn't been upgraded to GCC 2.
3103 tm_file="v850/v850.h"
3104 xm_file="v850/xm-v850.h"
3105 tmake_file=v850/t-v850
3106 if test x$stabs = xyes
3108 tm_file="${tm_file} dbx.h"
3112 vax-*-bsd*) # vaxen running BSD
3116 vax-*-sysv*) # vaxen running system V
3117 tm_file="${tm_file} vax/vaxv.h"
3122 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3123 # On NetBSD, the headers are already okay, except for math.h.
3124 fixincludes=fixinc.wrap
3128 vax-*-ultrix*) # vaxen running ultrix
3129 tm_file="${tm_file} vax/ultrix.h"
3133 vax-*-vms*) # vaxen running VMS
3134 xm_file=vax/xm-vms.h
3138 vax-*-*) # vax default entry
3142 xm_file="${xm_file} xm-svr3"
3146 echo "Configuration $machine not supported" 1>&2
3153 ;; # Existing GNU/Linux systems do not use the GNU setup.
3155 # On the GNU system, the setup is just about the same on
3156 # each different CPU. The specific machines that GNU
3157 # supports are matched above and just set $cpu_type.
3158 xm_file="xm-gnu.h ${xm_file}"
3159 tm_file=${cpu_type}/gnu.h
3160 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3161 # GNU always uses ELF.
3163 # GNU tools are the only tools.
3166 # On GNU, the headers are already okay.
3167 fixincludes=Makefile.in
3168 xmake_file=x-linux # These details are the same as Linux.
3169 tmake_file=t-gnu # These are not.
3172 fixincludes=fixinc.svr4
3173 xmake_try_sysv=x-sysv
3174 install_headers_dir=install-headers-cpio
3177 install_headers_dir=install-headers-cpio
3181 # Distinguish i[34567]86
3182 # Also, do not run mips-tfile on MIPS if using gas.
3183 # Process --with-cpu= for PowerPC/rs6000
3184 target_cpu_default2=
3187 target_cpu_default2=1
3190 target_cpu_default2=2
3192 i686-*-* | i786-*-*)
3193 target_cpu_default2=3
3198 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3201 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3204 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3207 target_cpu_default2="MASK_CPU_EV5"
3211 if test x$gas = xyes
3213 if test "$target_cpu_default2" = ""
3215 target_cpu_default2="MASK_GAS"
3217 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3222 case "x$with_cpu" in
3225 target_cpu_default2="TARGET_CPU_generic"
3228 # Distinguish cores, and major variants
3229 # arm7m doesn't exist, but D & I don't affect code
3230 xarm[23678] | xarm250 | xarm[67][01]0 \
3231 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3232 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3233 | xstrongarm | xstrongarm110)
3234 target_cpu_default2="TARGET_CPU_$with_cpu"
3238 echo "--with-cpu must be passed a value" 1>&2
3243 if test x$pass2done = xyes
3245 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3252 mips*-*-ecoff* | mips*-*-elf*)
3253 if test x$gas = xyes
3255 if test x$gnu_ld = xyes
3257 target_cpu_default2=20
3259 target_cpu_default2=16
3264 if test x$gas = xyes
3266 target_cpu_default2=16
3269 powerpc*-*-* | rs6000-*-*)
3270 case "x$with_cpu" in
3274 xcommon | xpower | xpower2 | xpowerpc | xrios \
3275 | xrios1 | xrios2 | xrsc | xrsc1 \
3276 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3277 | x403 | x505 | x801 | x821 | x823 | x860)
3278 target_cpu_default2="\"$with_cpu\""
3282 echo "--with-cpu must be passed a value" 1>&2
3287 if test x$pass2done = xyes
3289 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3296 case ".$with_cpu" in
3298 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3300 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3301 target_cpu_default2="TARGET_CPU_$with_cpu"
3304 if test x$pass2done = xyes
3306 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3314 if test "$target_cpu_default2" != ""
3316 if test "$target_cpu_default" != ""
3318 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3320 target_cpu_default=$target_cpu_default2
3324 # No need for collect2 if we have the GNU linker.
3325 # Actually, there is now; GNU ld doesn't handle the EH info or
3326 # collecting for shared libraries.
3333 # Save data on machine being used to compile GCC in build_xm_file.
3334 # Save data on host machine in vars host_xm_file and host_xmake_file.
3335 if test x$pass1done = x
3337 if test x"$xm_file" = x
3338 then build_xm_file=$cpu_type/xm-$cpu_type.h
3339 else build_xm_file=$xm_file
3341 build_xm_defines=$xm_defines
3342 build_install_headers_dir=$install_headers_dir
3343 build_exeext=$exeext
3346 if test x$pass2done = x
3348 if test x"$xm_file" = x
3349 then host_xm_file=$cpu_type/xm-$cpu_type.h
3350 else host_xm_file=$xm_file
3352 host_xm_defines=$xm_defines
3353 if test x"$xmake_file" = x
3354 then xmake_file=$cpu_type/x-$cpu_type
3356 host_xmake_file="$xmake_file"
3357 host_truncate_target=$truncate_target
3358 host_extra_gcc_objs=$extra_gcc_objs
3359 host_extra_objs=$extra_host_objs
3366 extra_objs="${host_extra_objs} ${extra_objs}"
3368 # Default the target-machine variables that were not explicitly set.
3369 if test x"$tm_file" = x
3370 then tm_file=$cpu_type/$cpu_type.h; fi
3372 if test x$extra_headers = x
3373 then extra_headers=; fi
3375 if test x"$xm_file" = x
3376 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3378 if test x$md_file = x
3379 then md_file=$cpu_type/$cpu_type.md; fi
3381 if test x$out_file = x
3382 then out_file=$cpu_type/$cpu_type.c; fi
3384 if test x"$tmake_file" = x
3385 then tmake_file=$cpu_type/t-$cpu_type
3388 if test x$float_format = x
3389 then float_format=i64
3392 if test x$enable_haifa = x
3395 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3400 # Say what files are being used for the output code and MD file.
3401 echo "Using \`$srcdir/config/$out_file' to output insns."
3402 echo "Using \`$srcdir/config/$md_file' as machine description file."
3405 for f in $tm_file; do
3408 if test $count = ax; then
3409 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3411 echo "Using the following target machine macro files:"
3412 for f in $tm_file; do
3413 echo " $srcdir/config/$f"
3418 for f in $host_xm_file; do
3421 if test $count = ax; then
3422 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3424 echo "Using the following host machine macro files:"
3425 for f in $host_xm_file; do
3426 echo " $srcdir/config/$f"
3430 if test "$host_xm_file" != "$build_xm_file"; then
3432 for f in $build_xm_file; do
3435 if test $count = ax; then
3436 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3438 echo "Using the following build machine macro files:"
3439 for f in $build_xm_file; do
3440 echo " $srcdir/config/$f"
3445 if test x$thread_file = x; then
3446 if test x$target_thread_file != x; then
3447 thread_file=$target_thread_file
3449 thread_file='single'
3453 # Set up the header files.
3454 # $links is the list of header files to create.
3455 # $vars is the list of shell variables with file names to include.
3456 # auto-host.h is the file containing items generated by autoconf and is
3457 # the first file included by config.h.
3459 host_xm_file="auto-host.h ${host_xm_file}"
3461 # If host=build, it is correct to have hconfig include auto-host.h
3462 # as well. If host!=build, we are in error and need to do more
3463 # work to find out the build config parameters.
3464 if test x$host = x$build
3466 build_xm_file="auto-host.h ${build_xm_file}"
3468 # We create a subdir, then run autoconf in the subdir.
3469 # To prevent recursion we set host and build for the new
3470 # invocation of configure to the build for this invocation
3477 /*) realsrcdir=${srcdir};;
3478 *) realsrcdir=../${srcdir};;
3480 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3481 --target=$target --host=$build --build=$build
3483 # We just finished tests for the build machine, so rename
3484 # the file auto-build.h in the gcc directory.
3485 mv auto-host.h ../auto-build.h
3488 build_xm_file="auto-build.h ${build_xm_file}"
3491 vars="host_xm_file tm_file xm_file build_xm_file"
3492 links="config.h tm.h tconfig.h hconfig.h"
3493 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3496 if test -f config.status; then mv -f config.status config.bak; fi
3499 while test -n "$vars"
3501 set $vars; var=$1; shift; vars=$*
3502 set $links; link=$1; shift; links=$*
3503 set $defines; define=$1; shift; defines=$*
3507 # Define TARGET_CPU_DEFAULT if the system wants one.
3508 # This substitutes for lots of *.h files.
3509 if test "$target_cpu_default" != "" -a $link = tm.h
3511 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3514 for file in `eval echo '$'$var`; do
3515 echo "#include \"$file\"" >>$link
3518 for def in `eval echo '$'$define`; do
3519 echo "#ifndef $def" >>$link
3520 echo "#define $def" >>$link
3521 echo "#endif" >>$link
3525 # Truncate the target if necessary
3526 if test x$host_truncate_target != x; then
3527 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3530 # Get the version trigger filename from the toplevel
3531 if test "${with_gcc_version_trigger+set}" = set; then
3532 gcc_version_trigger=$with_gcc_version_trigger
3534 gcc_version_trigger=${srcdir}/version.c
3537 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3540 # Get an absolute path to the GCC top-level source directory
3546 # Conditionalize the makefile for this host machine.
3547 # Make-host contains the concatenation of all host makefile fragments
3548 # [there can be more than one]. This file is built by configure.frag.
3549 host_overrides=Make-host
3550 dep_host_xmake_file=
3551 for f in .. ${host_xmake_file}
3553 if test -f ${srcdir}/config/$f
3555 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3559 # Conditionalize the makefile for this target machine.
3560 # Make-target contains the concatenation of all host makefile fragments
3561 # [there can be more than one]. This file is built by configure.frag.
3562 target_overrides=Make-target
3564 for f in .. ${tmake_file}
3566 if test -f ${srcdir}/config/$f
3568 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3572 # If the host doesn't support symlinks, modify CC in
3573 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3574 # Otherwise, we can use "CC=$(CC)".
3576 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3578 cc_set_by_configure="\$(CC)"
3579 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3582 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3584 symbolic_link="cp -p"
3588 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3589 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3593 out_object_file=`basename $out_file .c`.o
3596 for f in $tm_file; do
3597 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3601 for f in $host_xm_file; do
3602 if test $f != "auto-host.h"; then
3603 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3605 host_xm_file_list="${host_xm_file_list} auto-host.h"
3610 for f in $build_xm_file; do
3611 if test $f != "auto-build.h"; then
3612 if test $f != "auto-host.h"; then
3613 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3615 build_xm_file_list="${build_xm_file_list} auto-host.h"
3618 build_xm_file_list="${build_xm_file_list} auto-build.h"
3622 # Define macro CROSS_COMPILE in compilation
3623 # if this is a cross-compiler.
3624 # Also use all.cross instead of all.internal
3625 # and add cross-make to Makefile.
3626 cross_overrides="/dev/null"
3627 if test x$host != x$target
3629 cross_defines="CROSS=-DCROSS_COMPILE"
3630 cross_overrides="${topdir}/cross-make"
3633 # When building gcc with a cross-compiler, we need to fix a few things.
3634 # This must come after cross-make as we want all.build to override
3636 build_overrides="/dev/null"
3637 if test x$build != x$host
3639 build_overrides="${topdir}/build-make"
3642 # Expand extra_headers to include complete path.
3643 # This substitutes for lots of t-* files.
3645 if test "x$extra_headers" = x
3648 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3649 for file in $extra_headers;
3651 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3655 if test x$use_collect2 = xno; then
3659 # Add a definition of USE_COLLECT2 if system wants one.
3660 # Also tell toplev.c what to do.
3661 # This substitutes for lots of t-* files.
3662 if test x$use_collect2 = x
3667 will_use_collect2="collect2"
3668 maybe_use_collect2="-DUSE_COLLECT2"
3672 # Set MD_DEPS if the real md file is in md.pre-cpp.
3673 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3674 # for line oriented comments, so we must always use a GNU cpp. If
3675 # building gcc with a cross compiler, use the cross compiler just
3676 # built. Otherwise, we can use the cpp just built.
3678 if test "x$md_cppflags" = x
3680 md_file_sub=$srcdir/config/$md_file
3685 # If we have gas in the build tree, make a link to it.
3686 if test -f ../gas/Makefile; then
3687 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3690 # If we have nm in the build tree, make a link to it.
3691 if test -f ../binutils/Makefile; then
3692 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3695 # If we have ld in the build tree, make a link to it.
3696 if test -f ../ld/Makefile; then
3697 # if test x$use_collect2 = x; then
3698 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3700 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3704 # Figure out what assembler alignment features are present.
3705 AC_MSG_CHECKING(assembler alignment features)
3707 gcc_cv_as_alignment_features=
3708 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3709 if test -x "$AS"; then
3711 elif test -x as$host_exeext; then
3712 # Build using assembler in the current directory.
3713 gcc_cv_as=./as$host_exeext
3714 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3715 # Single tree build which includes gas.
3716 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3719 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3721 if test x$gcc_cv_gas_version != x; then
3726 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3727 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3729 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3730 # Gas version 2.6 and later support for .balign and .p2align.
3731 # bytes to skip when using .p2align.
3732 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
3733 gcc_cv_as_alignment_features=".balign and .p2align"
3734 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3736 # Gas version 2.8 and later support specifying the maximum
3737 # bytes to skip when using .p2align.
3738 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
3739 gcc_cv_as_alignment_features=".p2align including maximum skip"
3740 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3743 elif test x$host = x$target; then
3745 gcc_cv_as=as$host_exeext
3747 if test x$gcc_cv_as != x; then
3748 # Check if we have .balign and .p2align
3749 echo ".balign 4" > conftest.s
3750 echo ".p2align 2" >> conftest.s
3751 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3752 gcc_cv_as_alignment_features=".balign and .p2align"
3753 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3755 rm -f conftest.s conftest.o
3756 # Check if specifying the maximum bytes to skip when
3757 # using .p2align is supported.
3758 echo ".p2align 4,,7" > conftest.s
3759 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3760 gcc_cv_as_alignment_features=".p2align including maximum skip"
3761 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3763 rm -f conftest.s conftest.o
3765 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3767 AC_MSG_CHECKING(assembler subsection support)
3768 gcc_cv_as_subsections=
3769 if test x$gcc_cv_as != x; then
3770 # Check if we have .subsection
3771 echo ".subsection 1" > conftest.s
3772 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3773 gcc_cv_as_subsections=".subsection"
3774 if test -x nm$host_exeext; then
3775 gcc_cv_nm=./nm$host_exeext
3776 elif test x$host = x$target; then
3778 gcc_cv_nm=nm$host_exeext
3780 if test x$gcc_cv_nm != x; then
3781 cat > conftest.s <<EOF
3782 conftest_label1: .word 0
3784 conftest_label2: .word 0
3787 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3788 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3789 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3790 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3793 gcc_cv_as_subsections="working .subsection -1"
3794 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3799 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3801 AC_MSG_RESULT($gcc_cv_as_subsections)
3803 # Figure out what language subdirectories are present.
3805 for lang in ${srcdir}/*/config-lang.in ..
3809 # The odd quoting in the next line works around
3810 # an apparent bug in bash 1.12 on linux.
3812 ${srcdir}/ada/config-lang.in)
3813 if test x$gnat = xyes ; then
3814 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3817 ${srcdir}/[*]/config-lang.in) ;;
3818 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3823 # Make gthr-default.h if we have a thread file.
3825 if test $thread_file != single; then
3826 rm -f gthr-default.h
3827 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3828 gthread_flags=-DHAVE_GTHR_DEFAULT
3830 AC_SUBST(gthread_flags)
3832 # Make empty files to contain the specs and options for each language.
3833 # Then add #include lines to for a compiler that has specs and/or options.
3838 rm -f specs.h options.h gencheck.h
3839 touch specs.h options.h gencheck.h
3840 for subdir in . $subdirs
3842 if test -f $srcdir/$subdir/lang-specs.h; then
3843 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3844 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3846 if test -f $srcdir/$subdir/lang-options.h; then
3847 echo "#include \"$subdir/lang-options.h\"" >>options.h
3848 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3850 if test -f $srcdir/$subdir/$subdir-tree.def; then
3851 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3852 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3856 # These (without "all_") are set in each config-lang.in.
3857 # `language' must be a single word so is spelled singularly.
3863 all_outputs=Makefile
3864 # List of language makefile fragments.
3869 # Add the language fragments.
3870 # Languages are added via two mechanisms. Some information must be
3871 # recorded in makefile variables, these are defined in config-lang.in.
3872 # We accumulate them and plug them into the main Makefile.
3873 # The other mechanism is a set of hooks for each of the main targets
3874 # like `clean', `install', etc.
3876 language_fragments="Make-lang"
3877 language_hooks="Make-hooks"
3880 for s in .. $subdirs
3892 . ${srcdir}/$s/config-lang.in
3893 if test "x$language" = x
3895 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3898 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3899 all_languages="$all_languages $language"
3900 if test "x$boot_language" = xyes
3902 all_boot_languages="$all_boot_languages $language"
3904 all_compilers="$all_compilers $compilers"
3905 all_stagestuff="$all_stagestuff $stagestuff"
3906 all_diff_excludes="$all_diff_excludes $diff_excludes"
3907 all_headers="$all_headers $headers"
3908 all_outputs="$all_outputs $outputs"
3909 if test x$outputs = x
3911 oldstyle_subdirs="$oldstyle_subdirs $s"
3913 all_lib2funcs="$all_lib2funcs $lib2funcs"
3917 # Since we can't use `::' targets, we link each language in
3918 # with a set of hooks, reached indirectly via lang.${target}.
3922 target_list="all.build all.cross start.encap rest.encap \
3924 install-normal install-common install-info install-man \
3926 mostlyclean clean distclean extraclean maintainer-clean \
3927 stage1 stage2 stage3 stage4"
3928 for t in $target_list
3931 for l in .. $all_languages
3933 if test $l != ".."; then
3937 echo "lang.$t: $x" >> Make-hooks
3940 # If we're not building in srcdir, create .gdbinit.
3942 if test ! -f Makefile.in; then
3943 echo "dir ." > .gdbinit
3944 echo "dir ${srcdir}" >> .gdbinit
3945 if test x$gdb_needs_out_file_path = xyes
3947 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3949 if test "x$subdirs" != x; then
3952 echo "dir ${srcdir}/$s" >> .gdbinit
3955 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3958 # Define variables host_canonical and build_canonical
3959 # because some Cygnus local changes in the Makefile depend on them.
3960 build_canonical=${build}
3961 host_canonical=${host}
3963 if test "${host}" != "${target}" ; then
3964 target_subdir=${target}/
3966 AC_SUBST(build_canonical)
3967 AC_SUBST(host_canonical)
3968 AC_SUBST(target_subdir)
3970 # If this is using newlib, then define inhibit_libc in
3971 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3972 # libgcc.a, but that's OK because newib should have its own version of
3975 if test x$with_newlib = xyes; then
3976 inhibit_libc=-Dinhibit_libc
3978 AC_SUBST(inhibit_libc)
3980 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3983 if test x$enable_haifa = xyes; then
3984 echo "Using the Haifa scheduler."
3986 sched_cflags=-DHAIFA
3988 AC_SUBST(sched_prefix)
3989 AC_SUBST(sched_cflags)
3990 if test x$enable_haifa != x; then
3991 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3992 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4000 # Warn if using init_priority.
4001 AC_MSG_CHECKING(whether to enable init_priority by default)
4002 if test x$enable_init_priority != xyes; then
4003 enable_init_priority=no
4005 AC_MSG_RESULT($enable_init_priority)
4007 # Nothing to do for FLOAT_H, float_format already handled.
4011 # Process the language and host/target makefile fragments.
4012 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4014 # Substitute configuration variables
4016 AC_SUBST(all_languages)
4017 AC_SUBST(all_boot_languages)
4018 AC_SUBST(all_compilers)
4019 AC_SUBST(all_lang_makefiles)
4020 AC_SUBST(all_stagestuff)
4021 AC_SUBST(all_diff_excludes)
4022 AC_SUBST(all_lib2funcs)
4023 AC_SUBST(all_headers)
4025 AC_SUBST(extra_passes)
4026 AC_SUBST(extra_programs)
4027 AC_SUBST(extra_parts)
4028 AC_SUBST(extra_c_objs)
4029 AC_SUBST(extra_cxx_objs)
4030 AC_SUBST(extra_cpp_objs)
4031 AC_SUBST(extra_c_flags)
4032 AC_SUBST(extra_objs)
4033 AC_SUBST(host_extra_gcc_objs)
4034 AC_SUBST(extra_headers_list)
4035 AC_SUBST(dep_host_xmake_file)
4036 AC_SUBST(dep_tmake_file)
4038 AC_SUBST(out_object_file)
4040 AC_SUBST(tm_file_list)
4041 AC_SUBST(build_xm_file_list)
4042 AC_SUBST(host_xm_file_list)
4043 AC_SUBST(lang_specs_files)
4044 AC_SUBST(lang_options_files)
4045 AC_SUBST(lang_tree_files)
4046 AC_SUBST(thread_file)
4047 AC_SUBST(objc_boehm_gc)
4048 AC_SUBST(gcc_version)
4049 AC_SUBST(gcc_version_trigger)
4050 AC_SUBST(local_prefix)
4051 AC_SUBST(gxx_include_dir)
4052 AC_SUBST(fixincludes)
4053 AC_SUBST(build_install_headers_dir)
4054 AC_SUBST(build_exeext)
4055 AC_SUBST(host_exeext)
4056 AC_SUBST(float_format)
4057 AC_SUBST(will_use_collect2)
4058 AC_SUBST(maybe_use_collect2)
4059 AC_SUBST(cc_set_by_configure)
4060 AC_SUBST(stage_prefix_set_by_configure)
4062 AC_SUBST(symbolic_link)
4064 AC_SUBST_FILE(target_overrides)
4065 AC_SUBST_FILE(host_overrides)
4066 AC_SUBST(cross_defines)
4067 AC_SUBST_FILE(cross_overrides)
4068 AC_SUBST_FILE(build_overrides)
4069 AC_SUBST_FILE(language_fragments)
4070 AC_SUBST_FILE(language_hooks)
4072 # Echo that links are built
4073 if test x$host = x$target
4081 if test x$host != x$build
4083 str3=" on a $build system"
4086 if test "x$str2" != x || test "x$str3" != x
4091 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4093 if test "x$str2" != x || test "x$str3" != x
4095 echo " ${str2}${str3}." 1>&2
4098 # Truncate the target if necessary
4099 if test x$host_truncate_target != x; then
4100 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4103 # Configure the subdirectories
4104 # AC_CONFIG_SUBDIRS($subdirs)
4106 # Create the Makefile
4107 # and configure language subdirectories
4108 AC_OUTPUT($all_outputs,
4110 . $srcdir/configure.lang
4111 case x$CONFIG_HEADERS in
4112 xauto-host.h:config.in)
4115 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4116 # bootstrapping and the installation procedure can still use
4117 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4118 # FLAGS_TO_PASS has been modified to solve the problem there.
4119 # This is virtually a duplicate of what happens in configure.lang; we do
4120 # an extra check to make sure this only happens if ln -s can be used.
4121 if test "$symbolic_link" = "ln -s"; then
4122 for d in .. ${subdirs} ; do
4123 if test $d != ..; then
4126 for t in stage1 stage2 stage3 stage4 include
4129 $symbolic_link ../$t $t 2>/dev/null
4140 target_alias='${target_alias}'
4142 subdirs='${subdirs}'
4143 oldstyle_subdirs='${oldstyle_subdirs}'
4144 symbolic_link='${symbolic_link}'
4145 program_transform_set='${program_transform_set}'
4146 program_transform_name='${program_transform_name}'
4147 dep_host_xmake_file='${dep_host_xmake_file}'
4148 host_xmake_file='${host_xmake_file}'
4149 dep_tmake_file='${dep_tmake_file}'
4150 tmake_file='${tmake_file}'
4151 thread_file='${thread_file}'
4152 gcc_version='${gcc_version}'
4153 gcc_version_trigger='${gcc_version_trigger}'
4154 local_prefix='${local_prefix}'
4155 build_install_headers_dir='${build_install_headers_dir}'
4156 build_exeext='${build_exeext}'
4157 host_exeext='${host_exeext}'
4158 out_file='${out_file}'
4159 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4160 SET_MAKE='${SET_MAKE}'
4161 target_list='${target_list}'
4162 target_overrides='${target_overrides}'
4163 host_overrides='${host_overrides}'
4164 cross_defines='${cross_defines}'
4165 cross_overrides='${cross_overrides}'
4166 build_overrides='${build_overrides}'