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
1201 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1204 tmake_file=t-libc-ok
1205 fixincludes=Makefile.in
1210 i[34567]86-*-lynxos*)
1212 if test x$gas = xyes
1216 tm_file=i386/lynx-ng.h
1218 xm_file=i386/xm-lynx.h
1219 tmake_file=i386/t-i386bare
1226 # tmake_file=t-libc-ok
1230 i[34567]86-*-osfrose*) # 386 using OSF/rose
1232 if test x$elf = xyes
1234 tm_file=i386/osfelf.h
1237 tm_file=i386/osfrose.h
1240 xm_file="i386/xm-osf.h ${xm_file}"
1241 xmake_file=i386/x-osfrose
1242 tmake_file=i386/t-osf
1243 extra_objs=halfpic.o
1246 i[34567]86-go32-rtems*)
1249 xm_file=i386/xm-go32.h
1250 tm_file=i386/go32-rtems.h
1251 tmake_file="i386/t-go32 t-rtems"
1254 i[34567]86-*-rtemself*)
1257 tm_file=i386/rtemself.h
1258 tmake_file="i386/t-i386bare t-rtems"
1261 i[34567]86-*-rtems*)
1264 tm_file=i386/rtems.h
1265 tmake_file="i386/t-i386bare t-rtems"
1268 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1270 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1271 xm_defines="USG SVR3"
1272 xmake_file=i386/x-sco5
1273 fixincludes=fixinc.sco
1274 install_headers_dir=install-headers-cpio
1276 if test x$gas = xyes
1278 tm_file="i386/sco5gas.h ${tm_file}"
1279 tmake_file=i386/t-sco5gas
1281 tmake_file=i386/t-sco5
1283 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1286 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1288 xm_file="${xm_file} i386/xm-sco.h"
1289 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1290 xmake_file=i386/x-sco4
1291 fixincludes=fixinc.sco
1292 install_headers_dir=install-headers-cpio
1293 if test x$stabs = xyes
1295 tm_file=i386/sco4dbx.h
1296 tmake_file=i386/t-svr3dbx
1297 extra_parts="svr3.ifile svr3z.rfile"
1300 tmake_file=i386/t-crtstuff
1301 extra_parts="crtbegin.o crtend.o"
1306 i[34567]86-*-sco*) # 80386 running SCO system
1308 xm_file=i386/xm-sco.h
1309 xmake_file=i386/x-sco
1310 install_headers_dir=install-headers-cpio
1311 if test x$stabs = xyes
1313 tm_file=i386/scodbx.h
1314 tmake_file=i386/t-svr3dbx
1315 extra_parts="svr3.ifile svr3z.rfile"
1318 extra_parts="crtbegin.o crtend.o"
1319 tmake_file=i386/t-crtstuff
1324 i[34567]86-*-solaris2*)
1326 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1327 xm_defines="USG POSIX SMALL_ARG_MAX"
1328 if test x$stabs = xyes
1330 tm_file=i386/sol2dbg.h
1334 tmake_file=i386/t-sol2
1335 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1341 fixincludes=fixinc.svr4;;
1343 fixincludes=fixinc.wrap;;
1345 if test x$enable_threads = xyes; then
1346 thread_file='solaris'
1350 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1352 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1353 xm_defines="USG POSIX"
1354 tm_file=i386/sysv4.h
1355 if test x$stabs = xyes
1357 tm_file="${tm_file} dbx.h"
1359 tmake_file=i386/t-crtpic
1361 extra_parts="crtbegin.o crtend.o"
1362 fixincludes=fixinc.svr4
1365 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1367 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1368 xm_defines="USG POSIX SMALL_ARG_MAX"
1369 tm_file=i386/sysv4.h
1370 if test x$stabs = xyes
1372 tm_file="${tm_file} dbx.h"
1374 tmake_file=i386/t-crtpic
1376 extra_parts="crtbegin.o crtend.o"
1379 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1381 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1382 xm_defines="USG POSIX"
1384 tmake_file="i386/t-crtpic i386/t-udk"
1386 extra_parts="crtbegin.o crtend.o"
1387 fixincludes="fixinc.svr4"
1390 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1393 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1394 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1395 fixincludes=Makefile.in #Don't do it on OSF/1
1396 if test x$stabs = xyes
1398 tm_file=i386/osf1elfgdb.h
1400 tm_file=i386/osf1elf.h
1402 tmake_file=i386/t-osf1elf
1403 xmake_file=i386/x-osf1elf
1404 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1407 i[34567]86-*-sysv*) # Intel 80386's running system V
1409 xm_defines="USG SVR3"
1410 xmake_file=i386/x-sysv3
1411 if test x$gas = xyes
1413 if test x$stabs = xyes
1415 tm_file=i386/svr3dbx.h
1416 tmake_file=i386/t-svr3dbx
1417 extra_parts="svr3.ifile svr3z.rfile"
1419 tm_file=i386/svr3gas.h
1420 extra_parts="crtbegin.o crtend.o"
1421 tmake_file=i386/t-crtstuff
1424 tm_file=i386/sysv3.h
1425 extra_parts="crtbegin.o crtend.o"
1426 tmake_file=i386/t-crtstuff
1429 i386-*-vsta) # Intel 80386's running VSTa kernel
1430 xm_file="${xm_file} i386/xm-vsta.h"
1432 tmake_file=i386/t-vsta
1433 xmake_file=i386/x-vsta
1438 xm_file="${xm_file} i386/xm-cygwin32.h"
1439 tmake_file=i386/t-cygwin32
1440 tm_file=i386/win32.h
1441 xmake_file=i386/x-cygwin32
1443 fixincludes=Makefile.in
1444 if test x$enable_threads = xyes; then
1450 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1452 xm_file="${xm_file} i386/xm-cygwin32.h"
1453 tmake_file=i386/t-cygwin32
1454 tm_file=i386/cygwin32.h
1455 xmake_file=i386/x-cygwin32
1457 fixincludes=Makefile.in
1458 if test x$enable_threads = xyes; then
1464 i[34567]86-*-mingw32*)
1466 tm_file=i386/mingw32.h
1467 xm_file="${xm_file} i386/xm-mingw32.h"
1468 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1470 xmake_file=i386/x-cygwin32
1471 fixincludes=Makefile.in
1472 if test x$enable_threads = xyes; then
1479 *minwg32crt* | *mingw32*)
1480 tm_file="${tm_file} i386/crtdll.h"
1485 i[34567]86-*-winnt3*)
1487 tm_file=i386/win-nt.h
1488 out_file=i386/i386.c
1489 xm_file="xm-winnt.h ${xm_file}"
1490 xmake_file=winnt/x-winnt
1491 tmake_file=i386/t-winnt
1492 extra_host_objs="winnt.o oldnames.o"
1493 extra_gcc_objs="spawnv.o oldnames.o"
1494 fixincludes=fixinc.winnt
1495 if test x$gnu_ld != xyes
1497 extra_programs=ld.exe
1499 if test x$enable_threads = xyes; then
1504 i[34567]86-dg-dgux*)
1506 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1507 xm_defines="USG POSIX"
1508 out_file=i386/dgux.c
1510 tmake_file=i386/t-dgux
1511 xmake_file=i386/x-dgux
1512 fixincludes=fixinc.dgux
1513 install_headers_dir=install-headers-cpio
1515 i860-alliant-*) # Alliant FX/2800
1516 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1517 xm_file="${xm_file}"
1518 xmake_file=i860/x-fx2800
1519 tmake_file=i860/t-fx2800
1520 extra_parts="crtbegin.o crtend.o"
1523 tm_file="${tm_file} i860/bsd.h"
1524 if test x$gas = xyes
1526 tm_file="${tm_file} i860/bsd-gas.h"
1531 tm_file="${tm_file} i860/mach.h"
1532 tmake_file=t-libc-ok
1534 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1535 tm_file="${tm_file} svr3.h i860/paragon.h"
1536 xm_defines="USG SVR3"
1540 tm_file="${tm_file} svr3.h i860/sysv3.h"
1541 xm_defines="USG SVR3"
1542 xmake_file=i860/x-sysv3
1543 extra_parts="crtbegin.o crtend.o"
1546 tm_file="${tm_file} svr4.h i860/sysv4.h"
1547 xm_defines="USG SVR3"
1548 xmake_file=i860/x-sysv4
1550 extra_parts="crtbegin.o crtend.o"
1552 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1553 tm_file="${tm_file} i960/vx960.h"
1554 tmake_file=i960/t-vxworks960
1556 thread_file='vxworks'
1558 i960-wrs-vxworks5* | i960-wrs-vxworks)
1559 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1560 tmake_file=i960/t-vxworks960
1562 thread_file='vxworks'
1565 tm_file="${tm_file} i960/vx960.h"
1566 tmake_file=i960/t-vxworks960
1568 thread_file='vxworks'
1571 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1572 tmake_file=i960/t-960bare
1576 tmake_file="i960/t-960bare t-rtems"
1577 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1580 i960-*-*) # Default i960 environment.
1584 extra_parts="crtinit.o crtfini.o"
1586 m68000-convergent-sysv*)
1588 xm_file="m68k/xm-3b1.h ${xm_file}"
1591 extra_headers=math-68881.h
1593 m68000-hp-bsd*) # HP 9000/200 running BSD
1594 tm_file=m68k/hp2bsd.h
1595 xmake_file=m68k/x-hp2bsd
1597 extra_headers=math-68881.h
1599 m68000-hp-hpux*) # HP 9000 series 300
1600 xm_file="xm_alloca.h ${xm_file}"
1601 xm_defines="USG NO_SYS_SIGLIST"
1602 if test x$gas = xyes
1604 xmake_file=m68k/x-hp320g
1605 tm_file=m68k/hp310g.h
1607 xmake_file=m68k/x-hp320
1608 tm_file=m68k/hp310.h
1610 install_headers_dir=install-headers-cpio
1612 extra_headers=math-68881.h
1617 extra_headers=math-68881.h
1620 tm_file=m68k/sun2o4.h
1622 extra_headers=math-68881.h
1625 xm_file="m68k/xm-3b1.h ${xm_file}"
1627 if test x$gas = xyes
1634 extra_headers=math-68881.h
1636 m68k-apple-aux*) # Apple Macintosh running A/UX
1637 xm_defines="USG AUX"
1638 tmake_file=m68k/t-aux
1639 install_headers_dir=install-headers-cpio
1640 extra_headers=math-68881.h
1641 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1643 if test "$gnu_ld" = yes
1645 tm_file="${tm_file} m68k/auxgld.h"
1647 tm_file="${tm_file} m68k/auxld.h"
1649 if test "$gas" = yes
1651 tm_file="${tm_file} m68k/auxgas.h"
1653 tm_file="${tm_file} m68k/auxas.h"
1655 tm_file="${tm_file} m68k/a-ux.h"
1659 tm_file=m68k/apollo68.h
1660 xmake_file=m68k/x-apollo68
1662 extra_headers=math-68881.h
1665 m68k-altos-sysv*) # Altos 3068
1666 if test x$gas = xyes
1668 tm_file=m68k/altos3068.h
1671 echo "The Altos is supported only with the GNU assembler" 1>&2
1674 extra_headers=math-68881.h
1676 m68k-bull-sysv*) # Bull DPX/2
1677 if test x$gas = xyes
1679 if test x$stabs = xyes
1681 tm_file=m68k/dpx2cdbx.h
1683 tm_file=m68k/dpx2g.h
1688 xm_file="xm-alloca.h ${xm_file}"
1690 xmake_file=m68k/x-dpx2
1692 extra_headers=math-68881.h
1694 m68k-atari-sysv4*) # Atari variant of V.4.
1695 tm_file=m68k/atari.h
1696 xm_file="xm-alloca.h ${xm_file}"
1697 xm_defines="USG FULL_PROTOTYPES"
1699 extra_parts="crtbegin.o crtend.o"
1700 extra_headers=math-68881.h
1703 m68k-motorola-sysv*)
1704 tm_file=m68k/mot3300.h
1705 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1706 xm_defines=NO_SYS_SIGLIST
1707 if test x$gas = xyes
1709 xmake_file=m68k/x-mot3300-gas
1710 if test x$gnu_ld = xyes
1712 tmake_file=m68k/t-mot3300-gald
1714 tmake_file=m68k/t-mot3300-gas
1718 xmake_file=m68k/x-mot3300
1719 if test x$gnu_ld = xyes
1721 tmake_file=m68k/t-mot3300-gld
1723 tmake_file=m68k/t-mot3300
1727 gdb_needs_out_file_path=yes
1728 extra_parts="crt0.o mcrt0.o"
1729 extra_headers=math-68881.h
1732 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1733 tm_file=m68k/tower-as.h
1734 xm_defines="USG SVR3"
1735 xmake_file=m68k/x-tower
1736 extra_parts="crtbegin.o crtend.o"
1737 extra_headers=math-68881.h
1740 tm_file=m68k/plexus.h
1741 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1744 extra_headers=math-68881.h
1748 xm_file="xm-alloca.h ${xm_file}"
1750 extra_headers=math-68881.h
1753 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1754 xm_defines="USG unos"
1755 xmake_file=m68k/x-crds
1758 extra_headers=math-68881.h
1760 m68k-cbm-sysv4*) # Commodore variant of V.4.
1762 xm_file="xm-alloca.h ${xm_file}"
1763 xm_defines="USG FULL_PROTOTYPES"
1764 xmake_file=m68k/x-amix
1766 extra_parts="crtbegin.o crtend.o"
1767 extra_headers=math-68881.h
1771 tm_file=m68k/ccur-GAS.h
1772 xmake_file=m68k/x-ccur
1773 extra_headers=math-68881.h
1777 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1778 tm_file=m68k/hp3bsd44.h
1779 xmake_file=m68k/x-hp3bsd44
1781 extra_headers=math-68881.h
1784 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1785 tm_file=m68k/hp3bsd.h
1787 extra_headers=math-68881.h
1791 if test x$with_fp = xno
1793 tm_file=m68k/isi-nfp.h
1799 extra_headers=math-68881.h
1801 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1802 xm_file="xm_alloca.h ${xm_file}"
1803 xm_defines="USG NO_SYS_SIGLIST"
1804 if test x$gas = xyes
1806 xmake_file=m68k/x-hp320g
1807 tm_file=m68k/hp320g.h
1809 xmake_file=m68k/x-hp320
1810 tm_file=m68k/hpux7.h
1812 install_headers_dir=install-headers-cpio
1814 extra_headers=math-68881.h
1817 m68k-hp-hpux*) # HP 9000 series 300
1818 xm_file="xm_alloca.h ${xm_file}"
1819 xm_defines="USG NO_SYS_SIGLIST"
1820 if test x$gas = xyes
1822 xmake_file=m68k/x-hp320g
1823 tm_file=m68k/hp320g.h
1825 xmake_file=m68k/x-hp320
1826 tm_file=m68k/hp320.h
1828 install_headers_dir=install-headers-cpio
1830 extra_headers=math-68881.h
1834 tm_file=m68k/sun3mach.h
1836 extra_headers=math-68881.h
1840 if test x$gas = xyes
1842 tm_file=m68k/news3gas.h
1844 tm_file=m68k/news3.h
1847 extra_headers=math-68881.h
1850 m68k-sony-bsd* | m68k-sony-newsos*)
1851 if test x$gas = xyes
1853 tm_file=m68k/newsgas.h
1858 extra_headers=math-68881.h
1861 m68k-next-nextstep2*)
1862 tm_file=m68k/next21.h
1863 xm_file="m68k/xm-next.h ${xm_file}"
1864 tmake_file=m68k/t-next
1865 xmake_file=m68k/x-next
1866 extra_objs=nextstep.o
1867 extra_headers=math-68881.h
1871 m68k-next-nextstep3*)
1873 xm_file="m68k/xm-next.h ${xm_file}"
1874 tmake_file=m68k/t-next
1875 xmake_file=m68k/x-next
1876 extra_objs=nextstep.o
1877 extra_parts="crtbegin.o crtend.o"
1878 extra_headers=math-68881.h
1880 if test x$enable_threads = xyes; then
1885 if test x$with_fp = xno
1887 tm_file=m68k/sun3n3.h
1889 tm_file=m68k/sun3o3.h
1893 extra_headers=math-68881.h
1895 m68k-sun-sunos*) # For SunOS 4 (the default).
1896 if test x$with_fp = xno
1898 tm_file=m68k/sun3n.h
1904 extra_headers=math-68881.h
1907 tm_file=m68k/vxm68k.h
1908 tmake_file=m68k/t-vxworks68
1909 extra_headers=math-68881.h
1910 thread_file='vxworks'
1914 tmake_file=m68k/t-m68kbare
1915 tm_file="m68k/m68k-aout.h libgloss.h"
1916 extra_headers=math-68881.h
1920 tmake_file=m68k/t-m68kbare
1921 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1922 extra_headers=math-68881.h
1926 if test x$gas = xyes
1930 tm_file=m68k/lynx-ng.h
1932 xm_file=m68k/xm-lynx.h
1934 tmake_file=m68k/t-lynx
1935 extra_headers=math-68881.h
1939 tm_file=m68k/netbsd.h
1940 # On NetBSD, the headers are already okay, except for math.h.
1941 fixincludes=fixinc.wrap
1945 m68k-*-sysv3*) # Motorola m68k's running system V.3
1946 xm_file="xm-alloca.h ${xm_file}"
1948 xmake_file=m68k/x-m68kv
1949 extra_parts="crtbegin.o crtend.o"
1950 extra_headers=math-68881.h
1953 m68k-*-sysv4*) # Motorola m68k's running system V.4
1954 tm_file=m68k/m68kv4.h
1955 xm_file="xm-alloca.h ${xm_file}"
1958 extra_parts="crtbegin.o crtend.o"
1959 extra_headers=math-68881.h
1962 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1965 tm_file=m68k/linux-aout.h
1966 tmake_file="t-linux-aout m68k/t-linux-aout"
1967 fixincludes=Makefile.in # The headers are ok already.
1968 extra_headers=math-68881.h
1972 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1973 # with ELF format using the
1974 # GNU/Linux C library 5
1976 tm_file=m68k/linux.h
1977 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1978 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1979 fixincludes=Makefile.in # The headers are ok already.
1980 extra_headers=math-68881.h
1984 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1985 # with ELF format using glibc 2
1986 # aka the GNU/Linux C library 6.
1988 tm_file=m68k/linux.h
1989 tmake_file="t-linux m68k/t-linux"
1990 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1991 fixincludes=Makefile.in # The headers are ok already.
1992 extra_headers=math-68881.h
1995 if test x$enable_threads = xyes; then
2000 tmake_file=m68k/t-m68kbare
2001 tm_file=m68k/m68k-psos.h
2002 extra_headers=math-68881.h
2006 tmake_file="m68k/t-m68kbare t-rtems"
2007 tm_file=m68k/rtems.h
2008 extra_headers=math-68881.h
2015 tm_file=m88k/dguxbcs.h
2016 tmake_file=m88k/t-dguxbcs
2020 tmake_file=m88k/t-dgux
2023 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2024 xmake_file=m88k/x-dgux
2025 if test x$gas = xyes
2027 tmake_file=m88k/t-dgux-gas
2029 fixincludes=fixinc.dgux
2031 m88k-dolphin-sysv3*)
2032 tm_file=m88k/dolph.h
2033 extra_parts="crtbegin.o crtend.o"
2034 xm_file="m88k/xm-sysv3.h ${xm_file}"
2035 xmake_file=m88k/x-dolph
2036 if test x$gas = xyes
2038 tmake_file=m88k/t-m88k-gas
2041 m88k-tektronix-sysv3)
2042 tm_file=m88k/tekXD88.h
2043 extra_parts="crtbegin.o crtend.o"
2044 xm_file="m88k/xm-sysv3.h ${xm_file}"
2045 xmake_file=m88k/x-tekXD88
2046 if test x$gas = xyes
2048 tmake_file=m88k/t-m88k-gas
2052 tm_file=m88k/m88k-aout.h
2055 tm_file=m88k/m88k-coff.h
2056 tmake_file=m88k/t-bug
2060 extra_parts="crtbegin.o crtend.o"
2061 if test x$gas = xyes
2063 tmake_file=m88k/t-luna-gas
2065 tmake_file=m88k/t-luna
2069 tm_file=m88k/sysv3.h
2070 extra_parts="crtbegin.o crtend.o"
2071 xm_file="m88k/xm-sysv3.h ${xm_file}"
2072 xmake_file=m88k/x-sysv3
2073 if test x$gas = xyes
2075 tmake_file=m88k/t-m88k-gas
2079 tm_file=m88k/sysv4.h
2080 extra_parts="crtbegin.o crtend.o"
2081 xmake_file=m88k/x-sysv4
2082 tmake_file=m88k/t-sysv4
2084 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2085 tm_file=mips/iris6.h
2086 xm_file=mips/xm-iris6.h
2087 fixincludes=fixinc.irix
2088 xmake_file=mips/x-iris6
2089 tmake_file=mips/t-iris6
2090 # if test x$enable_threads = xyes; then
2091 # thread_file='irix'
2095 tm_file="mips/elf.h libgloss.h"
2096 tmake_file=mips/t-ecoff
2099 extra_parts="crtbegin.o crtend.o"
2100 # thread_file='vxworks'
2102 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2103 tm_file="mips/iris6.h mips/cross64.h"
2105 xm_file="mips/xm-iris5.h"
2106 fixincludes=Makefile.in
2107 xmake_file=mips/x-iris
2108 tmake_file=mips/t-cross64
2109 # See comment in mips/iris[56].h files.
2111 # if test x$enable_threads = xyes; then
2112 # thread_file='irix'
2116 if test x$gas = xyes
2118 if test x$stabs = xyes
2120 tm_file=mips/iris5gdb.h
2122 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2125 tm_file=mips/sni-svr4.h
2128 xmake_file=mips/x-sni-svr4
2129 tmake_file=mips/t-mips-gas
2130 if test x$gnu_ld != xyes
2135 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2136 if test x$gas = xyes
2138 tm_file="mips/iris5.h mips/iris5gas.h"
2139 if test x$stabs = xyes
2141 tm_file="${tm_file} dbx.h"
2144 tm_file=mips/iris5.h
2147 xm_file="mips/xm-iris5.h"
2148 fixincludes=fixinc.irix
2149 xmake_file=mips/x-iris
2150 # mips-tfile doesn't work yet
2151 tmake_file=mips/t-mips-gas
2152 # See comment in mips/iris5.h file.
2154 # if test x$enable_threads = xyes; then
2155 # thread_file='irix'
2158 mips-sgi-irix4loser*) # Mostly like a MIPS.
2159 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2160 if test x$stabs = xyes; then
2161 tm_file="${tm_file} dbx.h"
2164 xmake_file=mips/x-iris
2165 if test x$gas = xyes
2167 tmake_file=mips/t-mips-gas
2169 extra_passes="mips-tfile mips-tdump"
2171 if test x$gnu_ld != xyes
2175 # if test x$enable_threads = xyes; then
2176 # thread_file='irix'
2179 mips-sgi-irix4*) # Mostly like a MIPS.
2180 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2181 if test x$stabs = xyes; then
2182 tm_file="${tm_file} dbx.h"
2185 xmake_file=mips/x-iris
2186 if test x$gas = xyes
2188 tmake_file=mips/t-mips-gas
2190 extra_passes="mips-tfile mips-tdump"
2192 if test x$gnu_ld != xyes
2196 # if test x$enable_threads = xyes; then
2197 # thread_file='irix'
2200 mips-sgi-*) # Mostly like a MIPS.
2201 tm_file="mips/iris3.h ${tm_file}"
2202 if test x$stabs = xyes; then
2203 tm_file="${tm_file} dbx.h"
2206 xmake_file=mips/x-iris3
2207 if test x$gas = xyes
2209 tmake_file=mips/t-mips-gas
2211 extra_passes="mips-tfile mips-tdump"
2213 if test x$gnu_ld != xyes
2218 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2219 tm_file="mips/osfrose.h ${tm_file}"
2220 xmake_file=mips/x-osfrose
2221 tmake_file=mips/t-osfrose
2222 extra_objs=halfpic.o
2225 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2226 tm_file=mips/dec-osf1.h
2227 if test x$stabs = xyes; then
2228 tm_file="${tm_file} dbx.h"
2230 xmake_file=mips/x-dec-osf1
2231 if test x$gas = xyes
2233 tmake_file=mips/t-mips-gas
2235 tmake_file=mips/t-ultrix
2236 extra_passes="mips-tfile mips-tdump"
2238 if test x$gnu_ld != xyes
2243 mips-dec-bsd*) # Decstation running 4.4 BSD
2244 tm_file=mips/dec-bsd.h
2246 if test x$gas = xyes
2248 tmake_file=mips/t-mips-gas
2250 tmake_file=mips/t-ultrix
2251 extra_passes="mips-tfile mips-tdump"
2253 if test x$gnu_ld != xyes
2258 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2259 tm_file=mips/netbsd.h
2260 # On NetBSD, the headers are already okay, except for math.h.
2261 fixincludes=fixinc.wrap
2264 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2265 tm_file="mips/news4.h ${tm_file}"
2266 if test x$stabs = xyes; then
2267 tm_file="${tm_file} dbx.h"
2269 if test x$gas = xyes
2271 tmake_file=mips/t-mips-gas
2273 extra_passes="mips-tfile mips-tdump"
2275 if test x$gnu_ld != xyes
2279 xmake_file=mips/x-sony
2281 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2282 # That is based on svr4.
2283 # t-svr4 is not right because this system doesn't use ELF.
2284 tm_file="mips/news5.h ${tm_file}"
2285 if test x$stabs = xyes; then
2286 tm_file="${tm_file} dbx.h"
2288 xm_file="xm-siglist.h ${xm_file}"
2290 if test x$gas = xyes
2292 tmake_file=mips/t-mips-gas
2294 extra_passes="mips-tfile mips-tdump"
2296 if test x$gnu_ld != xyes
2301 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2302 tm_file="mips/svr4-5.h mips/svr4-t.h"
2303 if test x$stabs = xyes; then
2304 tm_file="${tm_file} dbx.h"
2306 xm_file="xm-siglist.h ${xm_file}"
2308 xmake_file=mips/x-sysv
2309 if test x$gas = xyes
2311 tmake_file=mips/t-mips-gas
2312 extra_parts="crtbegin.o crtend.o"
2314 tmake_file=mips/t-mips
2315 extra_passes="mips-tfile mips-tdump"
2317 if test x$gnu_ld != xyes
2322 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2323 tm_file="mips/ultrix.h ${tm_file}"
2324 if test x$stabs = xyes; then
2325 tm_file="${tm_file} dbx.h"
2327 xmake_file=mips/x-ultrix
2328 if test x$gas = xyes
2330 tmake_file=mips/t-mips-gas
2332 tmake_file=mips/t-ultrix
2333 extra_passes="mips-tfile mips-tdump"
2335 if test x$gnu_ld != xyes
2341 mips-*-riscos[56789]bsd*)
2343 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2344 if test x$stabs = xyes; then
2345 tm_file="${tm_file} dbx.h"
2347 if test x$gas = xyes
2349 tmake_file=mips/t-bsd-gas
2351 tmake_file=mips/t-bsd
2352 extra_passes="mips-tfile mips-tdump"
2354 if test x$gnu_ld != xyes
2360 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2362 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2363 if test x$stabs = xyes; then
2364 tm_file="${tm_file} dbx.h"
2366 if test x$gas = xyes
2368 tmake_file=mips/t-bsd-gas
2370 tmake_file=mips/t-bsd
2371 extra_passes="mips-tfile mips-tdump"
2373 if test x$gnu_ld != xyes
2379 mips-*-riscos[56789]sysv4*)
2381 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2382 if test x$stabs = xyes; then
2383 tm_file="${tm_file} dbx.h"
2385 xm_file="xm-siglist.h ${xm_file}"
2386 xmake_file=mips/x-sysv
2387 if test x$gas = xyes
2389 tmake_file=mips/t-svr4-gas
2391 tmake_file=mips/t-svr4
2392 extra_passes="mips-tfile mips-tdump"
2394 if test x$gnu_ld != xyes
2400 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2402 tm_file="mips/svr4-4.h ${tm_file}"
2403 if test x$stabs = xyes; then
2404 tm_file="${tm_file} dbx.h"
2407 xmake_file=mips/x-sysv
2408 if test x$gas = xyes
2410 tmake_file=mips/t-svr4-gas
2412 tmake_file=mips/t-svr4
2413 extra_passes="mips-tfile mips-tdump"
2415 if test x$gnu_ld != xyes
2421 mips-*-riscos[56789]sysv*)
2423 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2424 if test x$stabs = xyes; then
2425 tm_file="${tm_file} dbx.h"
2428 xmake_file=mips/x-sysv
2429 if test x$gas = xyes
2431 tmake_file=mips/t-svr3-gas
2433 tmake_file=mips/t-svr3
2434 extra_passes="mips-tfile mips-tdump"
2436 if test x$gnu_ld != xyes
2441 mips-*-sysv* | mips-*-riscos*sysv*)
2442 tm_file="mips/svr3-4.h ${tm_file}"
2443 if test x$stabs = xyes; then
2444 tm_file="${tm_file} dbx.h"
2447 xmake_file=mips/x-sysv
2448 if test x$gas = xyes
2450 tmake_file=mips/t-svr3-gas
2452 tmake_file=mips/t-svr3
2453 extra_passes="mips-tfile mips-tdump"
2455 if test x$gnu_ld != xyes
2461 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2463 tm_file=mips/mips-5.h
2464 if test x$stabs = xyes; then
2465 tm_file="${tm_file} dbx.h"
2467 if test x$gas = xyes
2469 tmake_file=mips/t-mips-gas
2471 extra_passes="mips-tfile mips-tdump"
2473 if test x$gnu_ld != xyes
2481 tm_file=mips/ecoffl.h
2482 if test x$stabs = xyes; then
2483 tm_file="${tm_file} dbx.h"
2485 tmake_file=mips/t-ecoff
2488 tm_file="gofast.h mips/ecoff.h"
2489 if test x$stabs = xyes; then
2490 tm_file="${tm_file} dbx.h"
2492 tmake_file=mips/t-ecoff
2495 tm_file="mips/elfl.h libgloss.h"
2496 tmake_file=mips/t-ecoff
2499 tm_file="mips/elf.h libgloss.h"
2500 tmake_file=mips/t-ecoff
2503 tm_file="mips/elfl64.h libgloss.h"
2504 tmake_file=mips/t-ecoff
2506 mips64orionel-*-elf*)
2507 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2508 tmake_file=mips/t-ecoff
2511 tm_file="mips/elf64.h libgloss.h"
2512 tmake_file=mips/t-ecoff
2515 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2516 tmake_file=mips/t-ecoff
2518 mips64orion-*-rtems*)
2519 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2520 tmake_file="mips/t-ecoff t-rtems"
2523 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2524 tmake_file=mips/t-r3900
2527 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2528 tmake_file=mips/t-r3900
2529 # FIXME mips-elf should be fixed to use crtstuff.
2532 mips-*-*) # Default MIPS RISC-OS 4.0.
2533 if test x$stabs = xyes; then
2534 tm_file="${tm_file} dbx.h"
2536 if test x$gas = xyes
2538 tmake_file=mips/t-mips-gas
2540 extra_passes="mips-tfile mips-tdump"
2542 if test x$gnu_ld != xyes
2549 tm_file="mn10200/mn10200.h"
2550 if test x$stabs = xyes
2552 tm_file="${tm_file} dbx.h"
2558 tm_file="mn10300/mn10300.h"
2559 if test x$stabs = xyes
2561 tm_file="${tm_file} dbx.h"
2566 tm_file=ns32k/encore.h
2570 tm_file=ns32k/sequent.h
2574 tm_file=ns32k/tek6100.h
2578 tm_file=ns32k/tek6200.h
2581 # This has not been updated to GCC 2.
2584 # xmake_file=ns32k/x-genix
2585 # tm_file=ns32k/genix.h
2589 tm_file=ns32k/merlin.h
2593 tm_file=ns32k/pc532-mach.h
2597 tm_file=ns32k/pc532-min.h
2598 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2603 tm_file=ns32k/netbsd.h
2604 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2605 # On NetBSD, the headers are already okay, except for math.h.
2606 fixincludes=fixinc.wrap
2610 tm_file="${tm_file} pdp11/2bsd.h"
2616 xmake_file=pyr/x-pyr
2623 xmake_file=romp/x-mach
2628 tm_file=rs6000/beos.h
2629 xm_file=rs6000/xm-beos.h
2630 tmake_file=rs6000/t-beos
2631 xmake_file=rs6000/x-beos
2633 powerpc-*-sysv* | powerpc-*-elf*)
2634 tm_file=rs6000/sysv4.h
2635 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2636 xm_defines="USG POSIX"
2637 extra_headers=ppc-asm.h
2638 if test x$gas = xyes
2640 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2642 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2644 xmake_file=rs6000/x-sysv4
2647 tm_file=rs6000/eabiaix.h
2648 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2649 fixincludes=Makefile.in
2650 extra_headers=ppc-asm.h
2653 tm_file=rs6000/eabisim.h
2654 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2655 fixincludes=Makefile.in
2656 extra_headers=ppc-asm.h
2659 tm_file=rs6000/eabi.h
2660 if test x$gas = xyes
2662 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2664 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2666 fixincludes=Makefile.in
2667 extra_headers=ppc-asm.h
2670 tm_file=rs6000/rtems.h
2671 if test x$gas = xyes
2673 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2675 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2677 fixincludes=Makefile.in
2678 extra_headers=ppc-asm.h
2680 powerpc-*-linux-gnulibc1)
2681 tm_file=rs6000/linux.h
2682 xm_file=rs6000/xm-sysv4.h
2683 out_file=rs6000/rs6000.c
2684 if test x$gas = xyes
2686 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2688 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2691 fixincludes=Makefile.in
2692 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2693 extra_headers=ppc-asm.h
2694 if test x$enable_threads = xyes; then
2698 powerpc-*-linux-gnu*)
2699 tm_file=rs6000/linux.h
2700 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2701 xm_defines="USG ${xm_defines}"
2702 out_file=rs6000/rs6000.c
2703 if test x$gas = xyes
2705 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2707 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2710 fixincludes=Makefile.in
2711 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2712 extra_headers=ppc-asm.h
2713 if test x$enable_threads = xyes; then
2717 powerpc-wrs-vxworks*)
2719 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2720 xm_defines="USG POSIX"
2721 tm_file=rs6000/vxppc.h
2722 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2723 extra_headers=ppc-asm.h
2724 thread_file='vxworks'
2726 powerpcle-*-sysv* | powerpcle-*-elf*)
2727 tm_file=rs6000/sysv4le.h
2728 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2729 xm_defines="USG POSIX"
2730 if test x$gas = xyes
2732 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2734 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2736 xmake_file=rs6000/x-sysv4
2737 extra_headers=ppc-asm.h
2739 powerpcle-*-eabisim*)
2740 tm_file=rs6000/eabilesim.h
2741 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2742 fixincludes=Makefile.in
2743 extra_headers=ppc-asm.h
2746 tm_file=rs6000/eabile.h
2747 if test x$gas = xyes
2749 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2751 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2753 fixincludes=Makefile.in
2754 extra_headers=ppc-asm.h
2756 powerpcle-*-winnt* )
2757 tm_file=rs6000/win-nt.h
2758 tmake_file=rs6000/t-winnt
2760 fixincludes=Makefile.in
2761 if test x$enable_threads = xyes; then
2764 extra_headers=ppc-asm.h
2766 powerpcle-*-pe | powerpcle-*-cygwin32)
2767 tm_file=rs6000/cygwin32.h
2768 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2769 tmake_file=rs6000/t-winnt
2770 xmake_file=rs6000/x-cygwin32
2772 fixincludes=Makefile.in
2773 if test x$enable_threads = xyes; then
2777 extra_headers=ppc-asm.h
2779 powerpcle-*-solaris2*)
2780 tm_file=rs6000/sol2.h
2781 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2782 xm_defines="USG POSIX"
2783 if test x$gas = xyes
2785 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2787 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2789 xmake_file=rs6000/x-sysv4
2794 fixincludes=fixinc.svr4;;
2796 fixincludes=fixinc.wrap;;
2798 extra_headers=ppc-asm.h
2801 rs6000-ibm-aix3.[01]*)
2803 tm_file=rs6000/aix31.h
2804 xmake_file=rs6000/x-aix31
2808 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2810 tm_file=rs6000/aix3newas.h
2811 if test x$host != x$target
2813 tmake_file=rs6000/t-xnewas
2815 tmake_file=rs6000/t-newas
2820 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2822 tm_file=rs6000/aix41.h
2823 if test x$host != x$target
2825 tmake_file=rs6000/t-xnewas
2827 tmake_file=rs6000/t-newas
2829 xmake_file=rs6000/x-aix41
2833 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2835 tm_file=rs6000/aix43.h
2836 if test x$host != x$target
2838 tmake_file=rs6000/t-xaix43
2840 tmake_file=rs6000/t-aix43
2842 xmake_file=rs6000/x-aix43
2846 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2848 tm_file=rs6000/aix43.h
2849 if test x$host != x$target
2851 tmake_file=rs6000/t-xaix43
2853 tmake_file=rs6000/t-aix43
2855 xmake_file=rs6000/x-aix43
2865 tm_file=rs6000/mach.h
2866 xm_file="${xm_file} rs6000/xm-mach.h"
2867 xmake_file=rs6000/x-mach
2871 tm_file=rs6000/lynx.h
2872 xm_file=rs6000/xm-lynx.h
2873 tmake_file=rs6000/t-rs6000
2874 xmake_file=rs6000/x-lynx
2882 tmake_file="sh/t-sh t-rtems"
2883 tm_file=sh/rtemself.h
2887 tmake_file="sh/t-sh t-rtems"
2896 xm_file="xm-alloca.h ${xm_file}"
2899 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2900 tm_file=sparc/vxsparc.h
2901 tmake_file=sparc/t-vxsparc
2903 thread_file='vxworks'
2906 tmake_file=sparc/t-sparcbare
2907 tm_file="sparc/aout.h libgloss.h"
2910 tm_file=sparc/netbsd.h
2911 # On NetBSD, the headers are already okay, except for math.h.
2912 fixincludes=fixinc.wrap
2920 tmake_file=sparc/t-elf
2921 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2925 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2926 xm_file="${xm_file} sparc/xm-linux.h"
2927 tm_file=sparc/linux-aout.h
2929 fixincludes=Makefile.in #On Linux, the headers are ok already.
2932 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2933 xm_file="${xm_file} sparc/xm-linux.h"
2935 tm_file=sparc/linux.h
2936 tmake_file="t-linux t-linux-gnulibc1"
2937 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2938 fixincludes=Makefile.in #On Linux, the headers are ok already.
2941 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2942 xm_file="${xm_file} sparc/xm-linux.h"
2944 tm_file=sparc/linux.h
2945 tmake_file="t-linux"
2946 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2947 fixincludes=Makefile.in #On Linux, the headers are ok already.
2949 if test x$enable_threads = xyes; then
2954 if test x$gas = xyes
2956 tm_file=sparc/lynx.h
2958 tm_file=sparc/lynx-ng.h
2960 xm_file=sparc/xm-lynx.h
2961 tmake_file=sparc/t-sunos41
2965 tmake_file="sparc/t-sparcbare t-rtems"
2966 tm_file=sparc/rtems.h
2968 sparcv9-*-solaris2*)
2969 tm_file=sparc/sol2-sld-64.h
2970 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
2971 xm_defines="USG POSIX"
2972 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
2973 xmake_file=sparc/x-sysv4
2974 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
2975 fixincludes=fixinc.wrap
2977 if test x${enable_threads} = x ; then
2978 enable_threads=$have_pthread_h
2979 if test x${enable_threads} = x ; then
2980 enable_threads=$have_thread_h
2983 if test x${enable_threads} = xyes ; then
2984 if test x${have_pthread_h} = xyes ; then
2987 thread_file='solaris'
2992 if test x$gnu_ld = xyes
2994 tm_file=sparc/sol2.h
2996 tm_file=sparc/sol2-sld.h
2998 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2999 xm_defines="USG POSIX"
3000 tmake_file=sparc/t-sol2
3001 xmake_file=sparc/x-sysv4
3002 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3007 fixincludes=fixinc.svr4;;
3009 fixincludes=fixinc.wrap;;
3012 if test x${enable_threads} = x; then
3013 enable_threads=$have_pthread_h
3014 if test x${enable_threads} = x; then
3015 enable_threads=$have_thread_h
3018 if test x${enable_threads} = xyes; then
3019 if test x${have_pthread_h} = xyes; then
3022 thread_file='solaris'
3027 tm_file=sparc/sunos4.h
3028 tmake_file=sparc/t-sunos40
3032 tm_file=sparc/sunos4.h
3033 tmake_file=sparc/t-sunos41
3035 if test x$gas = xyes; then
3036 tm_file="${tm_file} sparc/sun4gas.h"
3040 tm_file=sparc/sun4o3.h
3044 tm_file=sparc/sysv4.h
3045 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3046 xm_defines="USG POSIX"
3048 xmake_file=sparc/x-sysv4
3049 extra_parts="crtbegin.o crtend.o"
3052 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3053 xm_defines="USG POSIX"
3054 tm_file=sparc/vxsim.h
3055 tmake_file=sparc/t-vxsparc
3056 xmake_file=sparc/x-sysv4
3059 tm_file="sparc/splet.h libgloss.h"
3060 tmake_file=sparc/t-splet
3063 tm_file="sparc/litecoff.h libgloss.h"
3064 tmake_file=sparc/t-sparclite
3067 tm_file="sparc/lite.h aoutos.h libgloss.h"
3068 tmake_file=sparc/t-sparclite
3071 tmake_file=sparc/t-sp64
3072 tm_file=sparc/sp64-aout.h
3075 tmake_file=sparc/t-sp64
3076 tm_file=sparc/sp64-elf.h
3077 extra_parts="crtbegin.o crtend.o"
3079 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3080 tmake_file="t-linux sparc/t-linux64"
3081 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3082 tm_file=sparc/linux64.h
3084 fixincludes=Makefile.in # The headers are ok already.
3085 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3088 # This hasn't been upgraded to GCC 2.
3089 # tahoe-harris-*) # Harris tahoe, using COFF.
3090 # tm_file=tahoe/harris.h
3092 # tahoe-*-bsd*) # tahoe running BSD
3094 thumb-*-coff* | thumbel-*-coff*)
3096 out_file=arm/thumb.c
3097 xm_file=arm/xm-thumb.h
3098 md_file=arm/thumb.md
3099 tmake_file=arm/t-thumb
3100 fixincludes=Makefile.in # There is nothing to fix
3102 # This hasn't been upgraded to GCC 2.
3109 tm_file="v850/v850.h"
3110 xm_file="v850/xm-v850.h"
3111 tmake_file=v850/t-v850
3112 if test x$stabs = xyes
3114 tm_file="${tm_file} dbx.h"
3118 vax-*-bsd*) # vaxen running BSD
3122 vax-*-sysv*) # vaxen running system V
3123 tm_file="${tm_file} vax/vaxv.h"
3128 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3129 # On NetBSD, the headers are already okay, except for math.h.
3130 fixincludes=fixinc.wrap
3134 vax-*-ultrix*) # vaxen running ultrix
3135 tm_file="${tm_file} vax/ultrix.h"
3139 vax-*-vms*) # vaxen running VMS
3140 xm_file=vax/xm-vms.h
3144 vax-*-*) # vax default entry
3148 xm_file="${xm_file} xm-svr3"
3152 echo "Configuration $machine not supported" 1>&2
3159 ;; # Existing GNU/Linux systems do not use the GNU setup.
3161 # On the GNU system, the setup is just about the same on
3162 # each different CPU. The specific machines that GNU
3163 # supports are matched above and just set $cpu_type.
3164 xm_file="xm-gnu.h ${xm_file}"
3165 tm_file=${cpu_type}/gnu.h
3166 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3167 # GNU always uses ELF.
3169 # GNU tools are the only tools.
3172 # On GNU, the headers are already okay.
3173 fixincludes=Makefile.in
3174 xmake_file=x-linux # These details are the same as Linux.
3175 tmake_file=t-gnu # These are not.
3178 fixincludes=fixinc.svr4
3179 xmake_try_sysv=x-sysv
3180 install_headers_dir=install-headers-cpio
3183 install_headers_dir=install-headers-cpio
3187 # Distinguish i[34567]86
3188 # Also, do not run mips-tfile on MIPS if using gas.
3189 # Process --with-cpu= for PowerPC/rs6000
3190 target_cpu_default2=
3193 target_cpu_default2=1
3196 target_cpu_default2=2
3198 i686-*-* | i786-*-*)
3199 target_cpu_default2=3
3204 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3207 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3210 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3213 target_cpu_default2="MASK_CPU_EV5"
3217 if test x$gas = xyes
3219 if test "$target_cpu_default2" = ""
3221 target_cpu_default2="MASK_GAS"
3223 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3228 case "x$with_cpu" in
3231 target_cpu_default2="TARGET_CPU_generic"
3234 # Distinguish cores, and major variants
3235 # arm7m doesn't exist, but D & I don't affect code
3236 xarm[23678] | xarm250 | xarm[67][01]0 \
3237 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3238 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3239 | xstrongarm | xstrongarm110)
3240 target_cpu_default2="TARGET_CPU_$with_cpu"
3244 echo "--with-cpu must be passed a value" 1>&2
3249 if test x$pass2done = xyes
3251 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3258 mips*-*-ecoff* | mips*-*-elf*)
3259 if test x$gas = xyes
3261 if test x$gnu_ld = xyes
3263 target_cpu_default2=20
3265 target_cpu_default2=16
3270 if test x$gas = xyes
3272 target_cpu_default2=16
3275 powerpc*-*-* | rs6000-*-*)
3276 case "x$with_cpu" in
3280 xcommon | xpower | xpower2 | xpowerpc | xrios \
3281 | xrios1 | xrios2 | xrsc | xrsc1 \
3282 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3283 | x403 | x505 | x801 | x821 | x823 | x860)
3284 target_cpu_default2="\"$with_cpu\""
3288 echo "--with-cpu must be passed a value" 1>&2
3293 if test x$pass2done = xyes
3295 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3302 case ".$with_cpu" in
3304 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3306 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3307 target_cpu_default2="TARGET_CPU_$with_cpu"
3310 if test x$pass2done = xyes
3312 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3320 if test "$target_cpu_default2" != ""
3322 if test "$target_cpu_default" != ""
3324 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3326 target_cpu_default=$target_cpu_default2
3330 # No need for collect2 if we have the GNU linker.
3331 # Actually, there is now; GNU ld doesn't handle the EH info or
3332 # collecting for shared libraries.
3339 # Save data on machine being used to compile GCC in build_xm_file.
3340 # Save data on host machine in vars host_xm_file and host_xmake_file.
3341 if test x$pass1done = x
3343 if test x"$xm_file" = x
3344 then build_xm_file=$cpu_type/xm-$cpu_type.h
3345 else build_xm_file=$xm_file
3347 build_xm_defines=$xm_defines
3348 build_install_headers_dir=$install_headers_dir
3349 build_exeext=$exeext
3352 if test x$pass2done = x
3354 if test x"$xm_file" = x
3355 then host_xm_file=$cpu_type/xm-$cpu_type.h
3356 else host_xm_file=$xm_file
3358 host_xm_defines=$xm_defines
3359 if test x"$xmake_file" = x
3360 then xmake_file=$cpu_type/x-$cpu_type
3362 host_xmake_file="$xmake_file"
3363 host_truncate_target=$truncate_target
3364 host_extra_gcc_objs=$extra_gcc_objs
3365 host_extra_objs=$extra_host_objs
3372 extra_objs="${host_extra_objs} ${extra_objs}"
3374 # Default the target-machine variables that were not explicitly set.
3375 if test x"$tm_file" = x
3376 then tm_file=$cpu_type/$cpu_type.h; fi
3378 if test x$extra_headers = x
3379 then extra_headers=; fi
3381 if test x"$xm_file" = x
3382 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3384 if test x$md_file = x
3385 then md_file=$cpu_type/$cpu_type.md; fi
3387 if test x$out_file = x
3388 then out_file=$cpu_type/$cpu_type.c; fi
3390 if test x"$tmake_file" = x
3391 then tmake_file=$cpu_type/t-$cpu_type
3394 if test x$float_format = x
3395 then float_format=i64
3398 if test x$enable_haifa = x
3401 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3406 # Say what files are being used for the output code and MD file.
3407 echo "Using \`$srcdir/config/$out_file' to output insns."
3408 echo "Using \`$srcdir/config/$md_file' as machine description file."
3411 for f in $tm_file; do
3414 if test $count = ax; then
3415 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3417 echo "Using the following target machine macro files:"
3418 for f in $tm_file; do
3419 echo " $srcdir/config/$f"
3424 for f in $host_xm_file; do
3427 if test $count = ax; then
3428 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3430 echo "Using the following host machine macro files:"
3431 for f in $host_xm_file; do
3432 echo " $srcdir/config/$f"
3436 if test "$host_xm_file" != "$build_xm_file"; then
3438 for f in $build_xm_file; do
3441 if test $count = ax; then
3442 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3444 echo "Using the following build machine macro files:"
3445 for f in $build_xm_file; do
3446 echo " $srcdir/config/$f"
3451 if test x$thread_file = x; then
3452 if test x$target_thread_file != x; then
3453 thread_file=$target_thread_file
3455 thread_file='single'
3459 # Set up the header files.
3460 # $links is the list of header files to create.
3461 # $vars is the list of shell variables with file names to include.
3462 # auto-host.h is the file containing items generated by autoconf and is
3463 # the first file included by config.h.
3465 host_xm_file="auto-host.h ${host_xm_file}"
3467 # If host=build, it is correct to have hconfig include auto-host.h
3468 # as well. If host!=build, we are in error and need to do more
3469 # work to find out the build config parameters.
3470 if test x$host = x$build
3472 build_xm_file="auto-host.h ${build_xm_file}"
3474 # We create a subdir, then run autoconf in the subdir.
3475 # To prevent recursion we set host and build for the new
3476 # invocation of configure to the build for this invocation
3483 /*) realsrcdir=${srcdir};;
3484 *) realsrcdir=../${srcdir};;
3486 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3487 --target=$target --host=$build --build=$build
3489 # We just finished tests for the build machine, so rename
3490 # the file auto-build.h in the gcc directory.
3491 mv auto-host.h ../auto-build.h
3494 build_xm_file="auto-build.h ${build_xm_file}"
3497 vars="host_xm_file tm_file xm_file build_xm_file"
3498 links="config.h tm.h tconfig.h hconfig.h"
3499 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3502 if test -f config.status; then mv -f config.status config.bak; fi
3505 while test -n "$vars"
3507 set $vars; var=$1; shift; vars=$*
3508 set $links; link=$1; shift; links=$*
3509 set $defines; define=$1; shift; defines=$*
3513 # Define TARGET_CPU_DEFAULT if the system wants one.
3514 # This substitutes for lots of *.h files.
3515 if test "$target_cpu_default" != "" -a $link = tm.h
3517 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3520 for file in `eval echo '$'$var`; do
3521 echo "#include \"$file\"" >>$link
3524 for def in `eval echo '$'$define`; do
3525 echo "#ifndef $def" >>$link
3526 echo "#define $def" >>$link
3527 echo "#endif" >>$link
3531 # Truncate the target if necessary
3532 if test x$host_truncate_target != x; then
3533 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3536 # Get the version trigger filename from the toplevel
3537 if test "${with_gcc_version_trigger+set}" = set; then
3538 gcc_version_trigger=$with_gcc_version_trigger
3540 gcc_version_trigger=${srcdir}/version.c
3543 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3546 # Get an absolute path to the GCC top-level source directory
3552 # Conditionalize the makefile for this host machine.
3553 # Make-host contains the concatenation of all host makefile fragments
3554 # [there can be more than one]. This file is built by configure.frag.
3555 host_overrides=Make-host
3556 dep_host_xmake_file=
3557 for f in .. ${host_xmake_file}
3559 if test -f ${srcdir}/config/$f
3561 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3565 # Conditionalize the makefile for this target machine.
3566 # Make-target contains the concatenation of all host makefile fragments
3567 # [there can be more than one]. This file is built by configure.frag.
3568 target_overrides=Make-target
3570 for f in .. ${tmake_file}
3572 if test -f ${srcdir}/config/$f
3574 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3578 # If the host doesn't support symlinks, modify CC in
3579 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3580 # Otherwise, we can use "CC=$(CC)".
3582 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3584 cc_set_by_configure="\$(CC)"
3585 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3588 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3590 symbolic_link="cp -p"
3594 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3595 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3599 out_object_file=`basename $out_file .c`.o
3602 for f in $tm_file; do
3603 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3607 for f in $host_xm_file; do
3608 if test $f != "auto-host.h"; then
3609 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3611 host_xm_file_list="${host_xm_file_list} auto-host.h"
3616 for f in $build_xm_file; do
3617 if test $f != "auto-build.h"; then
3618 if test $f != "auto-host.h"; then
3619 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3621 build_xm_file_list="${build_xm_file_list} auto-host.h"
3624 build_xm_file_list="${build_xm_file_list} auto-build.h"
3628 # Define macro CROSS_COMPILE in compilation
3629 # if this is a cross-compiler.
3630 # Also use all.cross instead of all.internal
3631 # and add cross-make to Makefile.
3632 cross_overrides="/dev/null"
3633 if test x$host != x$target
3635 cross_defines="CROSS=-DCROSS_COMPILE"
3636 cross_overrides="${topdir}/cross-make"
3639 # When building gcc with a cross-compiler, we need to fix a few things.
3640 # This must come after cross-make as we want all.build to override
3642 build_overrides="/dev/null"
3643 if test x$build != x$host
3645 build_overrides="${topdir}/build-make"
3648 # Expand extra_headers to include complete path.
3649 # This substitutes for lots of t-* files.
3651 if test "x$extra_headers" = x
3654 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3655 for file in $extra_headers;
3657 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3661 if test x$use_collect2 = xno; then
3665 # Add a definition of USE_COLLECT2 if system wants one.
3666 # Also tell toplev.c what to do.
3667 # This substitutes for lots of t-* files.
3668 if test x$use_collect2 = x
3673 will_use_collect2="collect2"
3674 maybe_use_collect2="-DUSE_COLLECT2"
3678 # Set MD_DEPS if the real md file is in md.pre-cpp.
3679 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3680 # for line oriented comments, so we must always use a GNU cpp. If
3681 # building gcc with a cross compiler, use the cross compiler just
3682 # built. Otherwise, we can use the cpp just built.
3684 if test "x$md_cppflags" = x
3686 md_file_sub=$srcdir/config/$md_file
3691 # If we have gas in the build tree, make a link to it.
3692 if test -f ../gas/Makefile; then
3693 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3696 # If we have nm in the build tree, make a link to it.
3697 if test -f ../binutils/Makefile; then
3698 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3701 # If we have ld in the build tree, make a link to it.
3702 if test -f ../ld/Makefile; then
3703 # if test x$use_collect2 = x; then
3704 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3706 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3710 # Figure out what assembler alignment features are present.
3711 AC_MSG_CHECKING(assembler alignment features)
3713 gcc_cv_as_alignment_features=
3714 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3715 if test -x "$AS"; then
3717 elif test -x as$host_exeext; then
3718 # Build using assembler in the current directory.
3719 gcc_cv_as=./as$host_exeext
3720 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3721 # Single tree build which includes gas.
3722 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3725 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3727 if test x$gcc_cv_gas_version != x; then
3732 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3733 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3735 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3736 # Gas version 2.6 and later support for .balign and .p2align.
3737 # bytes to skip when using .p2align.
3738 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
3739 gcc_cv_as_alignment_features=".balign and .p2align"
3740 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3742 # Gas version 2.8 and later support specifying the maximum
3743 # bytes to skip when using .p2align.
3744 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
3745 gcc_cv_as_alignment_features=".p2align including maximum skip"
3746 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3749 elif test x$host = x$target; then
3751 gcc_cv_as=as$host_exeext
3753 if test x$gcc_cv_as != x; then
3754 # Check if we have .balign and .p2align
3755 echo ".balign 4" > conftest.s
3756 echo ".p2align 2" >> conftest.s
3757 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3758 gcc_cv_as_alignment_features=".balign and .p2align"
3759 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3761 rm -f conftest.s conftest.o
3762 # Check if specifying the maximum bytes to skip when
3763 # using .p2align is supported.
3764 echo ".p2align 4,,7" > conftest.s
3765 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3766 gcc_cv_as_alignment_features=".p2align including maximum skip"
3767 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3769 rm -f conftest.s conftest.o
3771 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3773 AC_MSG_CHECKING(assembler subsection support)
3774 gcc_cv_as_subsections=
3775 if test x$gcc_cv_as != x; then
3776 # Check if we have .subsection
3777 echo ".subsection 1" > conftest.s
3778 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3779 gcc_cv_as_subsections=".subsection"
3780 if test -x nm$host_exeext; then
3781 gcc_cv_nm=./nm$host_exeext
3782 elif test x$host = x$target; then
3784 gcc_cv_nm=nm$host_exeext
3786 if test x$gcc_cv_nm != x; then
3787 cat > conftest.s <<EOF
3788 conftest_label1: .word 0
3790 conftest_label2: .word 0
3793 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3794 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3795 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3796 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3799 gcc_cv_as_subsections="working .subsection -1"
3800 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3805 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3807 AC_MSG_RESULT($gcc_cv_as_subsections)
3809 # Figure out what language subdirectories are present.
3811 for lang in ${srcdir}/*/config-lang.in ..
3815 # The odd quoting in the next line works around
3816 # an apparent bug in bash 1.12 on linux.
3818 ${srcdir}/ada/config-lang.in)
3819 if test x$gnat = xyes ; then
3820 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3823 ${srcdir}/[*]/config-lang.in) ;;
3824 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3829 # Make gthr-default.h if we have a thread file.
3831 if test $thread_file != single; then
3832 rm -f gthr-default.h
3833 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3834 gthread_flags=-DHAVE_GTHR_DEFAULT
3836 AC_SUBST(gthread_flags)
3838 # Make empty files to contain the specs and options for each language.
3839 # Then add #include lines to for a compiler that has specs and/or options.
3844 rm -f specs.h options.h gencheck.h
3845 touch specs.h options.h gencheck.h
3846 for subdir in . $subdirs
3848 if test -f $srcdir/$subdir/lang-specs.h; then
3849 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3850 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3852 if test -f $srcdir/$subdir/lang-options.h; then
3853 echo "#include \"$subdir/lang-options.h\"" >>options.h
3854 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3856 if test -f $srcdir/$subdir/$subdir-tree.def; then
3857 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3858 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3862 # These (without "all_") are set in each config-lang.in.
3863 # `language' must be a single word so is spelled singularly.
3869 all_outputs=Makefile
3870 # List of language makefile fragments.
3875 # Add the language fragments.
3876 # Languages are added via two mechanisms. Some information must be
3877 # recorded in makefile variables, these are defined in config-lang.in.
3878 # We accumulate them and plug them into the main Makefile.
3879 # The other mechanism is a set of hooks for each of the main targets
3880 # like `clean', `install', etc.
3882 language_fragments="Make-lang"
3883 language_hooks="Make-hooks"
3886 for s in .. $subdirs
3898 . ${srcdir}/$s/config-lang.in
3899 if test "x$language" = x
3901 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3904 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3905 all_languages="$all_languages $language"
3906 if test "x$boot_language" = xyes
3908 all_boot_languages="$all_boot_languages $language"
3910 all_compilers="$all_compilers $compilers"
3911 all_stagestuff="$all_stagestuff $stagestuff"
3912 all_diff_excludes="$all_diff_excludes $diff_excludes"
3913 all_headers="$all_headers $headers"
3914 all_outputs="$all_outputs $outputs"
3915 if test x$outputs = x
3917 oldstyle_subdirs="$oldstyle_subdirs $s"
3919 all_lib2funcs="$all_lib2funcs $lib2funcs"
3923 # Since we can't use `::' targets, we link each language in
3924 # with a set of hooks, reached indirectly via lang.${target}.
3928 target_list="all.build all.cross start.encap rest.encap \
3930 install-normal install-common install-info install-man \
3932 mostlyclean clean distclean extraclean maintainer-clean \
3933 stage1 stage2 stage3 stage4"
3934 for t in $target_list
3937 for l in .. $all_languages
3939 if test $l != ".."; then
3943 echo "lang.$t: $x" >> Make-hooks
3946 # If we're not building in srcdir, create .gdbinit.
3948 if test ! -f Makefile.in; then
3949 echo "dir ." > .gdbinit
3950 echo "dir ${srcdir}" >> .gdbinit
3951 if test x$gdb_needs_out_file_path = xyes
3953 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3955 if test "x$subdirs" != x; then
3958 echo "dir ${srcdir}/$s" >> .gdbinit
3961 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3964 # Define variables host_canonical and build_canonical
3965 # because some Cygnus local changes in the Makefile depend on them.
3966 build_canonical=${build}
3967 host_canonical=${host}
3969 if test "${host}" != "${target}" ; then
3970 target_subdir=${target}/
3972 AC_SUBST(build_canonical)
3973 AC_SUBST(host_canonical)
3974 AC_SUBST(target_subdir)
3976 # If this is using newlib, then define inhibit_libc in
3977 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3978 # libgcc.a, but that's OK because newib should have its own version of
3981 if test x$with_newlib = xyes; then
3982 inhibit_libc=-Dinhibit_libc
3984 AC_SUBST(inhibit_libc)
3986 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3989 if test x$enable_haifa = xyes; then
3990 echo "Using the Haifa scheduler."
3992 sched_cflags=-DHAIFA
3994 AC_SUBST(sched_prefix)
3995 AC_SUBST(sched_cflags)
3996 if test x$enable_haifa != x; then
3997 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3998 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4006 # Warn if using init_priority.
4007 AC_MSG_CHECKING(whether to enable init_priority by default)
4008 if test x$enable_init_priority != xyes; then
4009 enable_init_priority=no
4011 AC_MSG_RESULT($enable_init_priority)
4013 # Nothing to do for FLOAT_H, float_format already handled.
4017 # Process the language and host/target makefile fragments.
4018 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4020 # Substitute configuration variables
4022 AC_SUBST(all_languages)
4023 AC_SUBST(all_boot_languages)
4024 AC_SUBST(all_compilers)
4025 AC_SUBST(all_lang_makefiles)
4026 AC_SUBST(all_stagestuff)
4027 AC_SUBST(all_diff_excludes)
4028 AC_SUBST(all_lib2funcs)
4029 AC_SUBST(all_headers)
4031 AC_SUBST(extra_passes)
4032 AC_SUBST(extra_programs)
4033 AC_SUBST(extra_parts)
4034 AC_SUBST(extra_c_objs)
4035 AC_SUBST(extra_cxx_objs)
4036 AC_SUBST(extra_cpp_objs)
4037 AC_SUBST(extra_c_flags)
4038 AC_SUBST(extra_objs)
4039 AC_SUBST(host_extra_gcc_objs)
4040 AC_SUBST(extra_headers_list)
4041 AC_SUBST(dep_host_xmake_file)
4042 AC_SUBST(dep_tmake_file)
4044 AC_SUBST(out_object_file)
4046 AC_SUBST(tm_file_list)
4047 AC_SUBST(build_xm_file_list)
4048 AC_SUBST(host_xm_file_list)
4049 AC_SUBST(lang_specs_files)
4050 AC_SUBST(lang_options_files)
4051 AC_SUBST(lang_tree_files)
4052 AC_SUBST(thread_file)
4053 AC_SUBST(objc_boehm_gc)
4054 AC_SUBST(gcc_version)
4055 AC_SUBST(gcc_version_trigger)
4056 AC_SUBST(local_prefix)
4057 AC_SUBST(gxx_include_dir)
4058 AC_SUBST(fixincludes)
4059 AC_SUBST(build_install_headers_dir)
4060 AC_SUBST(build_exeext)
4061 AC_SUBST(host_exeext)
4062 AC_SUBST(float_format)
4063 AC_SUBST(will_use_collect2)
4064 AC_SUBST(maybe_use_collect2)
4065 AC_SUBST(cc_set_by_configure)
4066 AC_SUBST(stage_prefix_set_by_configure)
4068 AC_SUBST(symbolic_link)
4070 AC_SUBST_FILE(target_overrides)
4071 AC_SUBST_FILE(host_overrides)
4072 AC_SUBST(cross_defines)
4073 AC_SUBST_FILE(cross_overrides)
4074 AC_SUBST_FILE(build_overrides)
4075 AC_SUBST_FILE(language_fragments)
4076 AC_SUBST_FILE(language_hooks)
4078 # Echo that links are built
4079 if test x$host = x$target
4087 if test x$host != x$build
4089 str3=" on a $build system"
4092 if test "x$str2" != x || test "x$str3" != x
4097 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4099 if test "x$str2" != x || test "x$str3" != x
4101 echo " ${str2}${str3}." 1>&2
4104 # Truncate the target if necessary
4105 if test x$host_truncate_target != x; then
4106 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4109 # Configure the subdirectories
4110 # AC_CONFIG_SUBDIRS($subdirs)
4112 # Create the Makefile
4113 # and configure language subdirectories
4114 AC_OUTPUT($all_outputs,
4116 . $srcdir/configure.lang
4117 case x$CONFIG_HEADERS in
4118 xauto-host.h:config.in)
4121 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4122 # bootstrapping and the installation procedure can still use
4123 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4124 # FLAGS_TO_PASS has been modified to solve the problem there.
4125 # This is virtually a duplicate of what happens in configure.lang; we do
4126 # an extra check to make sure this only happens if ln -s can be used.
4127 if test "$symbolic_link" = "ln -s"; then
4128 for d in .. ${subdirs} ; do
4129 if test $d != ..; then
4132 for t in stage1 stage2 stage3 stage4 include
4135 $symbolic_link ../$t $t 2>/dev/null
4146 target_alias='${target_alias}'
4148 subdirs='${subdirs}'
4149 oldstyle_subdirs='${oldstyle_subdirs}'
4150 symbolic_link='${symbolic_link}'
4151 program_transform_set='${program_transform_set}'
4152 program_transform_name='${program_transform_name}'
4153 dep_host_xmake_file='${dep_host_xmake_file}'
4154 host_xmake_file='${host_xmake_file}'
4155 dep_tmake_file='${dep_tmake_file}'
4156 tmake_file='${tmake_file}'
4157 thread_file='${thread_file}'
4158 gcc_version='${gcc_version}'
4159 gcc_version_trigger='${gcc_version_trigger}'
4160 local_prefix='${local_prefix}'
4161 build_install_headers_dir='${build_install_headers_dir}'
4162 build_exeext='${build_exeext}'
4163 host_exeext='${host_exeext}'
4164 out_file='${out_file}'
4165 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4166 SET_MAKE='${SET_MAKE}'
4167 target_list='${target_list}'
4168 target_overrides='${target_overrides}'
4169 host_overrides='${host_overrides}'
4170 cross_defines='${cross_defines}'
4171 cross_overrides='${cross_overrides}'
4172 build_overrides='${build_overrides}'