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 additional parameters
36 [ --with-gnu-ld arrange to work with GNU ld.],
37 gnu_ld_flag="$with_gnu_ld",
42 [ --with-gnu-as arrange to work with GNU as.],
43 gas_flag="$with_gnu_as",
48 [ --with-stabs arrange to use stabs instead of host debug format.],
54 [ --with-elf arrange to use ELF instead of host debug format.],
58 # Specify the local prefix
59 AC_ARG_WITH(local-prefix,
60 [ --with-local-prefix=DIR specifies directory to put local include.],
61 local_prefix=$with_local_prefix,
62 local_prefix=/usr/local)
64 # Default local prefix if it is empty
65 if [[ x$local_prefix = x ]]; then
66 local_prefix=/usr/local
69 # Specify the g++ header file directory
70 AC_ARG_WITH(gxx-include-dir,
71 [ --with-gxx-include-dir=DIR
72 specifies directory to put g++ header files.],
73 gxx_include_dir=$with_gxx_include_dir,
74 gxx_include_dir='${prefix}/include/g++')
76 # Default g++ header file directory if it is empty
77 if [[ x$gxx_include_dir = x ]]; then
78 gxx_include_dir='${prefix}/include/g++'
81 # Enable expensive internal checks
82 AC_ARG_ENABLE(checking,
83 [ --enable-checking enable expensive run-time checks.],
84 AC_DEFINE(ENABLE_CHECKING)
87 # Enable use of cpplib for C.
88 AC_ARG_ENABLE(c-cpplib,
89 [ --enable-c-cpplib Use cpplib for C.],
90 if [[[ x$enable_c_cpplib != xno ]]]; then
91 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
92 extra_c_flags=-DUSE_CPPLIB=1
95 # Enable Haifa scheduler.
97 [ --enable-haifa Use the experimental scheduler.
98 --disable-haifa Don't use the experimental scheduler for the
99 targets which normally enable it.])
102 # This is a work in progress...
103 AC_ARG_WITH(fast-fixincludes,
104 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
105 fast_fixinc="$with_fast_fixincludes",
109 # Pass with no value to take the default
110 # Pass with a value to specify a thread package
111 AC_ARG_ENABLE(threads,
112 [ --enable-threads enable thread usage for target GCC.
113 --enable-threads=LIB use LIB thread package for target GCC.],
114 if [[[ x$enable_threads = xno ]]]; then
119 enable_threads_flag=$enable_threads
120 # Check if a valid thread package
121 case x${enable_threads_flag} in
124 target_thread_file='single'
128 target_thread_file=''
130 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
131 xsolaris | xwin32 | xdce | xvxworks)
132 target_thread_file=$enable_threads_flag
135 echo "$enable_threads is an unknown thread package" 1>&2
140 # Determine the host, build, and target systems
143 # Find the native compiler
147 # Find some useful tools
159 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)
161 # Check for thread headers.
162 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
163 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
165 # See if the system preprocessor understands the ANSI C preprocessor
166 # stringification operator.
167 AC_MSG_CHECKING(whether cpp understands the stringify operator)
168 AC_CACHE_VAL(gcc_cv_c_have_stringify,
171 char *test = S(foo);],
172 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
173 AC_MSG_RESULT($gcc_cv_c_have_stringify)
174 if test $gcc_cv_c_have_stringify = yes; then
175 AC_DEFINE(HAVE_CPP_STRINGIFY)
178 # Use <inttypes.h> only if it exists,
179 # doesn't clash with <sys/types.h>, and declares intmax_t.
180 AC_MSG_CHECKING(for inttypes.h)
181 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
183 [#include <sys/types.h>
184 #include <inttypes.h>],
186 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
187 gcc_cv_header_inttypes_h=yes],
188 gcc_cv_header_inttypes_h=no)])
189 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
191 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
192 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
195 GCC_FUNC_VFPRINTF_DOPRNT
198 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
199 index rindex getenv atol sbrk abort atof)
211 build_install_headers_dir=install-headers-tar
216 host_truncate_target=
219 # Decode the host machine, then the target machine.
220 # For the host machine, we save the xm_file variable as host_xm_file;
221 # then we decode the target machine and forget everything else
222 # that came from the host machine.
223 for machine in $build $host $target; do
237 # Set this to force installation and use of collect2.
239 # Set this to override the default target model.
241 # Set this to control which fixincludes program to use.
242 if [[ x$fast_fixinc != xyes ]] ; then
243 fixincludes=fixincludes
244 else fixincludes=fixinc.sh ; fi
245 # Set this to control how the header file directory is installed.
246 install_headers_dir=install-headers-tar
247 # Set this to a non-empty list of args to pass to cpp if the target
248 # wants its .md file passed through cpp.
250 # Set this if directory names should be truncated to 14 characters.
252 # Set this if gdb needs a dir command with `dirname $out_file`
253 gdb_needs_out_file_path=
254 # Set this if the build machine requires executables to have a
257 # Set this to control which thread package will be used.
259 # Reinitialize these from the flag values every loop pass, since some
260 # configure entries modify them.
262 gnu_ld="$gnu_ld_flag"
263 enable_threads=$enable_threads_flag
265 # Set default cpu_type, tm_file and xm_file so it can be updated in
266 # each machine entry.
267 cpu_type=`echo $machine | sed 's/-.*$//'`
301 tm_file=${cpu_type}/${cpu_type}.h
302 xm_file=${cpu_type}/xm-${cpu_type}.h
304 # Set the default macros to define for GNU/Linux systems.
307 xm_defines="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
312 # Support site-specific machine types.
314 cpu_type=`echo $machine | sed -e 's/-.*//'`
315 rest=`echo $machine | sed -e "s/$cpu_type-//"`
316 xm_file=${cpu_type}/xm-$rest.h
317 tm_file=${cpu_type}/$rest.h
318 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
319 then xmake_file=${cpu_type}/x-$rest; \
322 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
323 then tmake_file=${cpu_type}/t-$rest; \
329 a29k-*-bsd* | a29k-*-sym1*)
330 tm_file="${tm_file} a29k/unix.h"
332 xmake_file=a29k/x-unix
335 a29k-*-udi | a29k-*-coff)
336 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
337 tmake_file=a29k/t-a29kbare
340 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
341 tmake_file=a29k/t-vx29k
342 extra_parts="crtbegin.o crtend.o"
343 thread_file='vxworks'
345 a29k-*-*) # Default a29k environment.
348 alpha*-*-linux-gnuecoff*)
349 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
350 target_cpu_default="MASK_GAS"
355 alpha*-*-linux-gnulibc1*)
356 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
357 target_cpu_default="MASK_GAS"
358 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
359 extra_parts="crtbegin.o crtend.o"
360 fixincludes=fixinc.wrap
363 if [[ x$enable_threads = xyes ]]; then
368 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
369 target_cpu_default="MASK_GAS"
370 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
371 extra_parts="crtbegin.o crtend.o"
373 fixincludes=Makefile.in
375 if [[ x$enable_threads = xyes ]]; then
380 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
381 target_cpu_default="MASK_GAS"
382 tmake_file="alpha/t-crtbe"
383 extra_parts="crtbegin.o crtend.o"
385 fixincludes=fixinc.wrap
390 if [[ x$stabs = xyes ]]
392 tm_file="${tm_file} dbx.h"
394 if [[ x$gas != xyes ]]
396 extra_passes="mips-tfile mips-tdump"
401 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
404 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
407 tm_file="${tm_file} alpha/osf.h"
408 # Some versions of OSF4 (specifically X4.0-9 296.7) have
409 # a broken tar, so we use cpio instead.
410 install_headers_dir=install-headers-cpio
414 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
415 target_cpu_default=MASK_SUPPORT_ARCH
420 tm_file="${tm_file} alpha/win-nt.h"
421 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
423 xmake_file=winnt/x-winnt
424 extra_host_objs=oldnames.o
425 extra_gcc_objs="spawnv.o oldnames.o"
426 fixincludes=fixinc.winnt
427 if [[ x$gnu_ld != xyes ]]
429 extra_programs=ld.exe
431 if [[ x$enable_threads = xyes ]]; then
437 xm_file="${xm_file} alpha/xm-vms.h"
438 tmake_file=alpha/t-vms
439 fixincludes=Makefile.in
442 extra_parts="crtinit.o crtfini.o"
444 arm-*-coff* | armel-*-coff*)
446 tmake_file=arm/t-bare
448 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
449 tm_file=arm/riscix1-1.h
452 arm-*-riscix*) # Acorn RISC machine
453 if [[ x$gas = xyes ]]
455 tm_file=arm/rix-gas.h
459 xmake_file=arm/x-riscix
460 tmake_file=arm/t-riscix
463 arm-semi-aout | armel-semi-aout)
465 tmake_file=arm/t-semi
466 fixincludes=Makefile.in # There is nothing to fix
468 arm-semi-aof | armel-semi-aof)
469 tm_file=arm/semiaof.h
470 tmake_file=arm/t-semiaof
471 fixincludes=Makefile.in # There is nothing to fix
475 xm_file="xm-siglist.h ${xm_file}"
476 tmake_file="t-netbsd arm/t-netbsd"
477 # On NetBSD, the headers are already okay, except for math.h.
478 fixincludes=fixinc.wrap
480 arm-*-linux-gnuaout*) # ARM GNU/Linux
483 tm_file=arm/linux-gas.h
484 tmake_file=arm/t-linux
485 fixincludes=Makefile.in
490 tmake_file=arm/t-bare
492 c1-convex-*) # Convex C1
495 fixincludes=Makefile.in
497 c2-convex-*) # Convex C2
500 fixincludes=Makefile.in
505 fixincludes=Makefile.in
510 fixincludes=Makefile.in
513 target_cpu_default=16
515 fixincludes=Makefile.in
517 clipper-intergraph-clix*)
518 tm_file="${tm_file} svr3.h clipper/clix.h"
519 xm_file=clipper/xm-clix.h
520 xmake_file=clipper/x-clix
521 extra_headers=va-clipper.h
522 extra_parts="crtbegin.o crtend.o"
523 install_headers_dir=install-headers-cpio
530 # This hasn't been upgraded to GCC 2.
531 # fx80-alliant-*) # Alliant FX/80
537 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
538 xm_file=pa/xm-papro.h
543 tm_file="${tm_file} pa/pa-osf.h"
545 fixincludes=Makefile.in
548 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
549 xm_file=pa/xm-papro.h
553 tm_file="${tm_file} pa/pa-osf.h"
555 fixincludes=Makefile.in
560 fixincludes=Makefile.in
564 fixincludes=Makefile.in
567 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
568 xm_file=pa/xm-pahpux.h
569 xmake_file=pa/x-pa-hpux
570 if [[ x$gas = xyes ]]
572 tm_file="${tm_file} pa/gas.h"
574 install_headers_dir=install-headers-cpio
577 hppa1.0-*-hpux8.0[[0-2]]*)
578 tm_file="${tm_file} pa/pa-hpux.h"
579 xm_file=pa/xm-pahpux.h
580 xmake_file=pa/x-pa-hpux
581 if [[ x$gas = xyes ]]
583 tm_file="${tm_file} pa/pa-gas.h"
585 tm_file="pa/pa-oldas.h ${tm_file}"
587 install_headers_dir=install-headers-cpio
590 hppa1.1-*-hpux8.0[[0-2]]*)
592 tm_file="${tm_file} pa/pa-hpux.h"
593 xm_file=pa/xm-pahpux.h
594 xmake_file=pa/x-pa-hpux
595 if [[ x$gas = xyes ]]
597 tm_file="${tm_file} pa/pa-gas.h"
599 tm_file="pa/pa-oldas.h ${tm_file}"
601 install_headers_dir=install-headers-cpio
606 tm_file="${tm_file} pa/pa-hpux.h"
607 xm_file=pa/xm-pahpux.h
608 xmake_file=pa/x-pa-hpux
609 if [[ x$gas = xyes ]]
611 tm_file="${tm_file} pa/pa-gas.h"
613 install_headers_dir=install-headers-cpio
617 tm_file="${tm_file} pa/pa-hpux.h"
618 xm_file=pa/xm-pahpux.h
619 xmake_file=pa/x-pa-hpux
620 if [[ x$gas = xyes ]]
622 tm_file="${tm_file} pa/pa-gas.h"
624 install_headers_dir=install-headers-cpio
629 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
630 xm_file=pa/xm-pahpux.h
631 xmake_file=pa/x-pa-hpux
633 if [[ x$gas = xyes ]]
635 tm_file="${tm_file} pa/pa-gas.h"
637 if [[ x$enable_threads = x ]]; then
638 enable_threads=$have_pthread_h
640 if [[ x$enable_threads = xyes ]]; then
642 tmake_file="${tmake_file} pa/t-dce-thr"
644 install_headers_dir=install-headers-cpio
648 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
649 xm_file=pa/xm-pahpux.h
650 xmake_file=pa/x-pa-hpux
651 if [[ x$gas = xyes ]]
653 tm_file="${tm_file} pa/pa-gas.h"
655 if [[ x$enable_threads = x ]]; then
656 enable_threads=$have_pthread_h
658 if [[ x$enable_threads = xyes ]]; then
660 tmake_file="${tmake_file} pa/t-dce-thr"
662 install_headers_dir=install-headers-cpio
667 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
668 xm_file=pa/xm-pahpux.h
669 xmake_file=pa/x-pa-hpux
670 if [[ x$gas = xyes ]]
672 tm_file="${tm_file} pa/pa-gas.h"
674 install_headers_dir=install-headers-cpio
678 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
679 xm_file=pa/xm-pahpux.h
680 xmake_file=pa/x-pa-hpux
681 if [[ x$gas = xyes ]]
683 tm_file="${tm_file} pa/pa-gas.h"
685 install_headers_dir=install-headers-cpio
690 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
691 xm_file=pa/xm-pahpux.h
692 xmake_file=pa/x-pa-hpux
693 if [[ x$gas = xyes ]]
695 tm_file="${tm_file} pa/pa-gas.h"
697 install_headers_dir=install-headers-cpio
701 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
702 xm_file=pa/xm-pahpux.h
703 xmake_file=pa/x-pa-hpux
704 if [[ x$gas = xyes ]]
706 tm_file="${tm_file} pa/pa-gas.h"
708 install_headers_dir=install-headers-cpio
714 fixincludes=Makefile.in
718 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
719 if [[ x$gas = xyes ]]
721 tm_file=i386/aix386.h
722 extra_parts="crtbegin.o crtend.o"
723 tmake_file=i386/t-crtstuff
725 tm_file=i386/aix386ng.h
728 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
730 xmake_file=i386/x-aix
732 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
733 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
734 xm_defines="USG POSIX SMALL_ARG_MAX"
735 xmake_file=i386/x-ncr3000
736 if [[ x$stabs = xyes -a x$gas = xyes ]]
738 tm_file=i386/sysv4gdb.h
742 extra_parts="crtbegin.o crtend.o"
743 tmake_file=i386/t-crtpic
747 xm_file=i386/xm-next.h
748 tmake_file=i386/t-next
749 xmake_file=i386/x-next
750 extra_objs=nextstep.o
751 if [[ x$enable_threads = xyes ]]; then
755 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
757 if [[ x$gas = xyes ]]
759 tm_file=i386/seq-gas.h
761 tm_file=i386/sequent.h
764 i[[34567]]86-sequent-ptx1*)
765 xm_defines="USG SVR3"
766 xmake_file=i386/x-sysv3
767 tm_file=i386/seq-sysv3.h
768 tmake_file=i386/t-crtstuff
769 fixincludes=fixinc.ptx
770 extra_parts="crtbegin.o crtend.o"
771 install_headers_dir=install-headers-cpio
773 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
774 xm_defines="USG SVR3"
775 xmake_file=i386/x-sysv3
776 tm_file=i386/seq2-sysv3.h
777 tmake_file=i386/t-crtstuff
778 extra_parts="crtbegin.o crtend.o"
779 fixincludes=fixinc.ptx
780 install_headers_dir=install-headers-cpio
782 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
783 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
784 xm_defines="USG POSIX SMALL_ARG_MAX"
786 tm_file=i386/ptx4-i.h
788 extra_parts="crtbegin.o crtend.o"
789 fixincludes=fixinc.ptx
790 install_headers_dir=install-headers-cpio
792 i386-sun-sunos*) # Sun i386 roadrunner
797 i[[34567]]86-wrs-vxworks*)
798 tm_file=i386/vxi386.h
799 tmake_file=i386/t-i386bare
801 i[[34567]]86-*-aout*)
802 tm_file=i386/i386-aout.h
803 tmake_file=i386/t-i386bare
805 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
806 tm_file=i386/bsd386.h
807 # tmake_file=t-libc-ok
810 tm_file=i386/386bsd.h
811 # tmake_file=t-libc-ok
812 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
815 i[[34567]]86-*-freebsdelf*)
816 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
817 # On FreeBSD, the headers are already ok, except for math.h.
818 fixincludes=fixinc.wrap
819 tmake_file=i386/t-freebsd
824 i[[34567]]86-*-freebsd*)
825 tm_file=i386/freebsd.h
826 # On FreeBSD, the headers are already ok, except for math.h.
827 fixincludes=fixinc.wrap
828 tmake_file=i386/t-freebsd
830 i[[34567]]86-*-netbsd*)
831 tm_file=i386/netbsd.h
832 # On NetBSD, the headers are already okay, except for math.h.
833 fixincludes=fixinc.wrap
836 i[[34567]]86-*-coff*)
837 tm_file=i386/i386-coff.h
838 tmake_file=i386/t-i386bare
840 i[[34567]]86-*-isc*) # 80386 running ISC system
841 xm_file="${xm_file} i386/xm-isc.h"
842 xm_defines="USG SVR3"
844 i[[34567]]86-*-isc[[34]]*)
845 xmake_file=i386/x-isc3
848 xmake_file=i386/x-isc
851 if [[ x$gas = xyes -a x$stabs = xyes ]]
853 tm_file=i386/iscdbx.h
854 tmake_file=i386/t-svr3dbx
855 extra_parts="svr3.ifile svr3z.ifile"
857 tm_file=i386/isccoff.h
858 tmake_file=i386/t-crtstuff
859 extra_parts="crtbegin.o crtend.o"
861 install_headers_dir=install-headers-cpio
863 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
864 # with a.out format using
866 xmake_file=x-linux-aout
867 tmake_file="t-linux-aout i386/t-crtstuff"
868 tm_file=i386/linux-oldld.h
869 fixincludes=Makefile.in #On Linux, the headers are ok already.
872 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
874 xmake_file=x-linux-aout
875 tmake_file="t-linux-aout i386/t-crtstuff"
876 tm_file=i386/linux-aout.h
877 fixincludes=Makefile.in #On Linux, the headers are ok already.
880 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
881 # with ELF format using the
882 # GNU/Linux C library 5
885 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
886 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
887 fixincludes=Makefile.in #On Linux, the headers are ok already.
889 if [[ x$enable_threads = xyes ]]; then
893 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
894 # with ELF format using glibc 2
895 # aka GNU/Linux C library 6
898 tmake_file="t-linux i386/t-crtstuff"
899 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
900 fixincludes=Makefile.in #On Linux, the headers are ok already.
902 if [[ x$enable_threads = xyes ]]; then
908 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
909 xm_file=i386/xm-go32.h
911 tmake_file=i386/t-go32
913 i[[34567]]86-pc-msdosdjgpp*)
914 xm_file=i386/xm-go32.h
916 tmake_file=i386/t-go32
920 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
923 fixincludes=Makefile.in
927 i[[34567]]86-*-lynxos*)
928 if [[ x$gas = xyes ]]
932 tm_file=i386/lynx-ng.h
934 xm_file=i386/xm-lynx.h
935 tmake_file=i386/t-i386bare
938 i[[34567]]86-*-mach*)
940 # tmake_file=t-libc-ok
943 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
944 if [[ x$elf = xyes ]]
946 tm_file=i386/osfelf.h
949 tm_file=i386/osfrose.h
952 xm_file="i386/xm-osf.h ${xm_file}"
953 xmake_file=i386/x-osfrose
954 tmake_file=i386/t-osf
957 i[[34567]]86-go32-rtems*)
959 xm_file=i386/xm-go32.h
960 tm_file=i386/go32-rtems.h
961 tmake_file="i386/t-go32 t-rtems"
963 i[[34567]]86-*-rtemself*)
965 tm_file=i386/rtemself.h
966 tmake_file="i386/t-i386bare t-rtems"
968 i[[34567]]86-*-rtems*)
971 tmake_file="i386/t-i386bare t-rtems"
973 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
974 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
975 xm_defines="USG SVR3"
976 xmake_file=i386/x-sco5
977 fixincludes=fixinc.sco
978 install_headers_dir=install-headers-cpio
980 tmake_file=i386/t-sco5
981 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
983 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
984 xm_file="${xm_file} i386/xm-sco.h"
985 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
986 xmake_file=i386/x-sco4
987 fixincludes=fixinc.sco
988 install_headers_dir=install-headers-cpio
989 if [[ x$stabs = xyes ]]
991 tm_file=i386/sco4dbx.h
992 tmake_file=i386/t-svr3dbx
993 extra_parts="svr3.ifile svr3z.rfile"
996 tmake_file=i386/t-crtstuff
997 extra_parts="crtbegin.o crtend.o"
1001 i[[34567]]86-*-sco*) # 80386 running SCO system
1002 xm_file=i386/xm-sco.h
1003 xmake_file=i386/x-sco
1004 install_headers_dir=install-headers-cpio
1005 if [[ x$stabs = xyes ]]
1007 tm_file=i386/scodbx.h
1008 tmake_file=i386/t-svr3dbx
1009 extra_parts="svr3.ifile svr3z.rfile"
1012 extra_parts="crtbegin.o crtend.o"
1013 tmake_file=i386/t-crtstuff
1017 i[[34567]]86-*-solaris2*)
1018 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1019 xm_defines="USG POSIX SMALL_ARG_MAX"
1020 if [[ x$stabs = xyes ]]
1022 tm_file=i386/sol2dbg.h
1026 tmake_file=i386/t-sol2
1027 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1030 *-*-solaris2.[[0-4]])
1031 fixincludes=fixinc.svr4;;
1033 fixincludes=fixinc.wrap;;
1035 if [[ x$enable_threads = xyes ]]; then
1036 thread_file='solaris'
1039 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1040 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1041 xm_defines="USG POSIX"
1042 tm_file=i386/sysv4.h
1043 if [[ x$stabs = xyes ]]
1045 tm_file="${tm_file} dbx.h"
1047 tmake_file=i386/t-crtpic
1049 extra_parts="crtbegin.o crtend.o"
1050 fixincludes=Makefile.in # The headers are just fine, thank you.
1052 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1053 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1054 xm_defines="USG POSIX SMALL_ARG_MAX"
1055 tm_file=i386/sysv4.h
1056 if [[ x$stabs = xyes ]]
1058 tm_file="${tm_file} dbx.h"
1060 tmake_file=i386/t-crtpic
1062 extra_parts="crtbegin.o crtend.o"
1064 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1066 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1067 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1068 fixincludes=Makefile.in #Don't do it on OSF/1
1069 if [[ x$stabs = xyes ]]
1071 tm_file=i386/osf1elfgdb.h
1073 tm_file=i386/osf1elf.h
1075 tmake_file=i386/t-osf1elf
1076 xmake_file=i386/x-osf1elf
1077 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1079 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1080 xm_defines="USG SVR3"
1081 xmake_file=i386/x-sysv3
1082 if [[ x$gas = xyes ]]
1084 if [[ x$stabs = xyes ]]
1086 tm_file=i386/svr3dbx.h
1087 tmake_file=i386/t-svr3dbx
1088 extra_parts="svr3.ifile svr3z.rfile"
1090 tm_file=i386/svr3gas.h
1091 extra_parts="crtbegin.o crtend.o"
1092 tmake_file=i386/t-crtstuff
1095 tm_file=i386/sysv3.h
1096 extra_parts="crtbegin.o crtend.o"
1097 tmake_file=i386/t-crtstuff
1100 i386-*-vsta) # Intel 80386's running VSTa kernel
1101 xm_file="${xm_file} i386/xm-vsta.h"
1103 tmake_file=i386/t-vsta
1104 xmake_file=i386/x-vsta
1106 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1107 xm_file="${xm_file} i386/xm-cygwin32.h"
1108 tmake_file=i386/t-cygwin32
1109 tm_file=i386/cygwin32.h
1110 xmake_file=i386/x-cygwin32
1112 fixincludes=Makefile.in
1113 if [[ x$enable_threads = xyes ]]; then
1118 i[[34567]]86-*-mingw32*)
1119 tm_file=i386/mingw32.h
1120 xm_file="${xm_file} i386/xm-mingw32.h"
1121 tmake_file=i386/t-cygwin32
1123 xmake_file=i386/x-cygwin32
1124 fixincludes=Makefile.in
1125 if [[ x$enable_threads = xyes ]]; then
1132 *minwg32crt* | *mingw32*)
1133 tm_file="${tm_file} i386/crtdll.h"
1137 i[[34567]]86-*-winnt3*)
1138 tm_file=i386/win-nt.h
1139 out_file=i386/i386.c
1140 xm_file="xm-winnt.h ${xm_file}"
1141 xmake_file=winnt/x-winnt
1142 tmake_file=i386/t-winnt
1143 extra_host_objs="winnt.o oldnames.o"
1144 extra_gcc_objs="spawnv.o oldnames.o"
1145 fixincludes=fixinc.winnt
1146 if [[ x$gnu_ld != xyes ]]
1148 extra_programs=ld.exe
1150 if [[ x$enable_threads = xyes ]]; then
1154 i[[34567]]86-dg-dgux*)
1155 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1156 xm_defines="USG POSIX"
1157 out_file=i386/dgux.c
1159 tmake_file=i386/t-dgux
1160 xmake_file=i386/x-dgux
1161 fixincludes=fixinc.dgux
1162 install_headers_dir=install-headers-cpio
1164 i860-alliant-*) # Alliant FX/2800
1165 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1166 xm_file="${xm_file}"
1167 xmake_file=i860/x-fx2800
1168 tmake_file=i860/t-fx2800
1169 extra_parts="crtbegin.o crtend.o"
1172 tm_file="${tm_file} i860/bsd.h"
1173 if [[ x$gas = xyes ]]
1175 tm_file="${tm_file} i860/bsd-gas.h"
1180 tm_file="${tm_file} i860/mach.h"
1181 tmake_file=t-libc-ok
1183 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1184 tm_file="${tm_file} svr3.h i860/paragon.h"
1185 xm_defines="USG SVR3"
1189 tm_file="${tm_file} svr3.h i860/sysv3.h"
1190 xm_defines="USG SVR3"
1191 xmake_file=i860/x-sysv3
1192 extra_parts="crtbegin.o crtend.o"
1195 tm_file="${tm_file} svr4.h i860/sysv4.h"
1196 xm_defines="USG SVR3"
1197 xmake_file=i860/x-sysv4
1199 extra_parts="crtbegin.o crtend.o"
1201 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1202 tm_file="${tm_file} i960/vx960.h"
1203 tmake_file=i960/t-vxworks960
1205 thread_file='vxworks'
1207 i960-wrs-vxworks5* | i960-wrs-vxworks)
1208 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1209 tmake_file=i960/t-vxworks960
1211 thread_file='vxworks'
1214 tm_file="${tm_file} i960/vx960.h"
1215 tmake_file=i960/t-vxworks960
1217 thread_file='vxworks'
1220 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1221 tmake_file=i960/t-960bare
1225 tmake_file="i960/t-960bare t-rtems"
1226 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1229 i960-*-*) # Default i960 environment.
1233 extra_parts="crtinit.o crtfini.o"
1235 m68000-convergent-sysv*)
1237 xm_file="m68k/xm-3b1.h ${xm_file}"
1240 extra_headers=math-68881.h
1242 m68000-hp-bsd*) # HP 9000/200 running BSD
1243 tm_file=m68k/hp2bsd.h
1244 xmake_file=m68k/x-hp2bsd
1246 extra_headers=math-68881.h
1248 m68000-hp-hpux*) # HP 9000 series 300
1249 xm_file="xm_alloca.h ${xm_file}"
1250 xm_defines="USG NO_SYS_SIGLIST"
1251 if [[ x$gas = xyes ]]
1253 xmake_file=m68k/x-hp320g
1254 tm_file=m68k/hp310g.h
1256 xmake_file=m68k/x-hp320
1257 tm_file=m68k/hp310.h
1259 install_headers_dir=install-headers-cpio
1261 extra_headers=math-68881.h
1266 extra_headers=math-68881.h
1269 tm_file=m68k/sun2o4.h
1271 extra_headers=math-68881.h
1274 xm_file="m68k/xm-3b1.h ${xm_file}"
1276 if [[ x$gas = xyes ]]
1283 extra_headers=math-68881.h
1285 m68k-apple-aux*) # Apple Macintosh running A/UX
1286 xm_defines="USG AUX"
1287 tmake_file=m68k/t-aux
1288 install_headers_dir=install-headers-cpio
1289 extra_headers=math-68881.h
1290 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1292 if [[ "$gnu_ld" = yes ]]
1294 tm_file="${tm_file} m68k/auxgld.h"
1296 tm_file="${tm_file} m68k/auxld.h"
1298 if [[ "$gas" = yes ]]
1300 tm_file="${tm_file} m68k/auxgas.h"
1302 tm_file="${tm_file} m68k/auxas.h"
1304 tm_file="${tm_file} m68k/a-ux.h"
1307 tm_file=m68k/apollo68.h
1308 xmake_file=m68k/x-apollo68
1310 extra_headers=math-68881.h
1312 m68k-altos-sysv*) # Altos 3068
1313 if [[ x$gas = xyes ]]
1315 tm_file=m68k/altos3068.h
1318 echo "The Altos is supported only with the GNU assembler" 1>&2
1321 extra_headers=math-68881.h
1323 m68k-bull-sysv*) # Bull DPX/2
1324 if [[ x$gas = xyes ]]
1326 if [[ x$stabs = xyes ]]
1328 tm_file=m68k/dpx2cdbx.h
1330 tm_file=m68k/dpx2g.h
1335 xm_file="xm-alloca.h ${xm_file}"
1337 xmake_file=m68k/x-dpx2
1339 extra_headers=math-68881.h
1341 m68k-atari-sysv4*) # Atari variant of V.4.
1342 tm_file=m68k/atari.h
1343 xm_file="xm-alloca.h ${xm_file}"
1344 xm_defines="USG FULL_PROTOTYPES"
1346 extra_parts="crtbegin.o crtend.o"
1347 extra_headers=math-68881.h
1349 m68k-motorola-sysv*)
1350 tm_file=m68k/mot3300.h
1351 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1352 xm_defines=NO_SYS_SIGLIST
1353 if [[ x$gas = xyes ]]
1355 xmake_file=m68k/x-mot3300-gas
1356 if [[ x$gnu_ld = xyes ]]
1358 tmake_file=m68k/t-mot3300-gald
1360 tmake_file=m68k/t-mot3300-gas
1364 xmake_file=m68k/x-mot3300
1365 if [[ x$gnu_ld = xyes ]]
1367 tmake_file=m68k/t-mot3300-gld
1369 tmake_file=m68k/t-mot3300
1373 gdb_needs_out_file_path=yes
1374 extra_parts="crt0.o mcrt0.o"
1375 extra_headers=math-68881.h
1377 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1378 tm_file=m68k/tower-as.h
1379 xm_defines="USG SVR3"
1380 xmake_file=m68k/x-tower
1381 extra_parts="crtbegin.o crtend.o"
1382 extra_headers=math-68881.h
1385 tm_file=m68k/plexus.h
1386 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1389 extra_headers=math-68881.h
1393 xm_file="xm-alloca.h ${xm_file}"
1395 extra_headers=math-68881.h
1398 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1399 xm_defines="USG unos"
1400 xmake_file=m68k/x-crds
1403 extra_headers=math-68881.h
1405 m68k-cbm-sysv4*) # Commodore variant of V.4.
1407 xm_file="xm-alloca.h ${xm_file}"
1408 xm_defines="USG FULL_PROTOTYPES"
1409 xmake_file=m68k/x-amix
1411 extra_parts="crtbegin.o crtend.o"
1412 extra_headers=math-68881.h
1415 tm_file=m68k/ccur-GAS.h
1416 xmake_file=m68k/x-ccur
1417 extra_headers=math-68881.h
1420 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1421 tm_file=m68k/hp3bsd44.h
1422 xmake_file=m68k/x-hp3bsd44
1424 extra_headers=math-68881.h
1426 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1427 tm_file=m68k/hp3bsd.h
1429 extra_headers=math-68881.h
1432 if [[ x$with_fp = xno ]]
1434 tm_file=m68k/isi-nfp.h
1439 extra_headers=math-68881.h
1441 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1442 xm_file="xm_alloca.h ${xm_file}"
1443 xm_defines="USG NO_SYS_SIGLIST"
1444 if [[ x$gas = xyes ]]
1446 xmake_file=m68k/x-hp320g
1447 tm_file=m68k/hp320g.h
1449 xmake_file=m68k/x-hp320
1450 tm_file=m68k/hpux7.h
1452 install_headers_dir=install-headers-cpio
1454 extra_headers=math-68881.h
1456 m68k-hp-hpux*) # HP 9000 series 300
1457 xm_file="xm_alloca.h ${xm_file}"
1458 xm_defines="USG NO_SYS_SIGLIST"
1459 if [[ x$gas = xyes ]]
1461 xmake_file=m68k/x-hp320g
1462 tm_file=m68k/hp320g.h
1464 xmake_file=m68k/x-hp320
1465 tm_file=m68k/hp320.h
1467 install_headers_dir=install-headers-cpio
1469 extra_headers=math-68881.h
1472 tm_file=m68k/sun3mach.h
1474 extra_headers=math-68881.h
1477 if [[ x$gas = xyes ]]
1479 tm_file=m68k/news3gas.h
1481 tm_file=m68k/news3.h
1484 extra_headers=math-68881.h
1486 m68k-sony-bsd* | m68k-sony-newsos*)
1487 if [[ x$gas = xyes ]]
1489 tm_file=m68k/newsgas.h
1494 extra_headers=math-68881.h
1496 m68k-next-nextstep2*)
1497 tm_file=m68k/next21.h
1498 xm_file="m68k/xm-next.h ${xm_file}"
1499 tmake_file=m68k/t-next
1500 xmake_file=m68k/x-next
1501 extra_objs=nextstep.o
1502 extra_headers=math-68881.h
1505 m68k-next-nextstep3*)
1507 xm_file="m68k/xm-next.h ${xm_file}"
1508 tmake_file=m68k/t-next
1509 xmake_file=m68k/x-next
1510 extra_objs=nextstep.o
1511 extra_headers=math-68881.h
1512 if [[ x$enable_threads = xyes ]]; then
1517 if [[ x$with_fp = xno ]]
1519 tm_file=m68k/sun3n3.h
1521 tm_file=m68k/sun3o3.h
1524 extra_headers=math-68881.h
1526 m68k-sun-sunos*) # For SunOS 4 (the default).
1527 if [[ x$with_fp = xno ]]
1529 tm_file=m68k/sun3n.h
1534 extra_headers=math-68881.h
1537 tm_file=m68k/vxm68k.h
1538 tmake_file=m68k/t-vxworks68
1539 extra_headers=math-68881.h
1540 thread_file='vxworks'
1543 tmake_file=m68k/t-m68kbare
1544 tm_file="m68k/m68k-aout.h libgloss.h"
1545 extra_headers=math-68881.h
1548 tmake_file=m68k/t-m68kbare
1549 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1550 extra_headers=math-68881.h
1553 if [[ x$gas = xyes ]]
1557 tm_file=m68k/lynx-ng.h
1559 xm_file=m68k/xm-lynx.h
1561 tmake_file=m68k/t-lynx
1562 extra_headers=math-68881.h
1565 tm_file=m68k/netbsd.h
1566 # On NetBSD, the headers are already okay, except for math.h.
1567 fixincludes=fixinc.wrap
1570 m68k-*-sysv3*) # Motorola m68k's running system V.3
1571 xm_file="xm-alloca.h ${xm_file}"
1573 xmake_file=m68k/x-m68kv
1574 extra_parts="crtbegin.o crtend.o"
1575 extra_headers=math-68881.h
1577 m68k-*-sysv4*) # Motorola m68k's running system V.4
1578 tm_file=m68k/m68kv4.h
1579 xm_file="xm-alloca.h ${xm_file}"
1582 extra_parts="crtbegin.o crtend.o"
1583 extra_headers=math-68881.h
1585 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1588 tm_file=m68k/linux-aout.h
1589 tmake_file="t-linux-aout m68k/t-linux-aout"
1590 fixincludes=Makefile.in # The headers are ok already.
1591 extra_headers=math-68881.h
1594 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1595 # with ELF format using the
1596 # GNU/Linux C library 5
1598 tm_file=m68k/linux.h
1599 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1600 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1601 fixincludes=Makefile.in # The headers are ok already.
1602 extra_headers=math-68881.h
1605 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1606 # with ELF format using glibc 2
1607 # aka the GNU/Linux C library 6.
1609 tm_file=m68k/linux.h
1610 tmake_file="t-linux m68k/t-linux"
1611 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1612 fixincludes=Makefile.in # The headers are ok already.
1613 extra_headers=math-68881.h
1615 if [[ x$enable_threads = xyes ]]; then
1620 tmake_file=m68k/t-m68kbare
1621 tm_file=m68k/m68k-psos.h
1622 extra_headers=math-68881.h
1625 tmake_file="m68k/t-m68kbare t-rtems"
1626 tm_file=m68k/rtems.h
1627 extra_headers=math-68881.h
1633 tm_file=m88k/dguxbcs.h
1634 tmake_file=m88k/t-dguxbcs
1638 tmake_file=m88k/t-dgux
1641 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1642 xmake_file=m88k/x-dgux
1643 if [[ x$gas = xyes ]]
1645 tmake_file=m88k/t-dgux-gas
1647 fixincludes=fixinc.dgux
1649 m88k-dolphin-sysv3*)
1650 tm_file=m88k/dolph.h
1651 extra_parts="crtbegin.o crtend.o"
1652 xm_file="m88k/xm-sysv3.h ${xm_file}"
1653 xmake_file=m88k/x-dolph
1654 if [[ x$gas = xyes ]]
1656 tmake_file=m88k/t-m88k-gas
1659 m88k-tektronix-sysv3)
1660 tm_file=m88k/tekXD88.h
1661 extra_parts="crtbegin.o crtend.o"
1662 xm_file="m88k/xm-sysv3.h ${xm_file}"
1663 xmake_file=m88k/x-tekXD88
1664 if [[ x$gas = xyes ]]
1666 tmake_file=m88k/t-m88k-gas
1670 tm_file=m88k/m88k-aout.h
1673 tm_file=m88k/m88k-coff.h
1674 tmake_file=m88k/t-bug
1678 extra_parts="crtbegin.o crtend.o"
1679 if [[ x$gas = xyes ]]
1681 tmake_file=m88k/t-luna-gas
1683 tmake_file=m88k/t-luna
1687 tm_file=m88k/sysv3.h
1688 extra_parts="crtbegin.o crtend.o"
1689 xm_file="m88k/xm-sysv3.h ${xm_file}"
1690 xmake_file=m88k/x-sysv3
1691 if [[ x$gas = xyes ]]
1693 tmake_file=m88k/t-m88k-gas
1697 tm_file=m88k/sysv4.h
1698 extra_parts="crtbegin.o crtend.o"
1699 xmake_file=m88k/x-sysv4
1700 tmake_file=m88k/t-sysv4
1702 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1703 tm_file=mips/iris6.h
1704 xm_file=mips/xm-iris6.h
1705 fixincludes=fixinc.irix
1706 xmake_file=mips/x-iris6
1707 tmake_file=mips/t-iris6
1708 if [[ x$enable_threads = xyes ]]; then
1713 tm_file="mips/elf.h libgloss.h"
1714 tmake_file=mips/t-ecoff
1717 extra_parts="crtbegin.o crtend.o"
1718 # thread_file='vxworks'
1720 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1721 tm_file="mips/iris6.h mips/cross64.h"
1722 xm_defines="USG HAVE_INTTYPES_H"
1723 fixincludes=Makefile.in
1724 xmake_file=mips/x-iris
1725 tmake_file=mips/t-cross64
1726 # See comment in mips/iris[56].h files.
1728 if [[ x$enable_threads = xyes ]]; then
1733 if [[ x$gas = xyes ]]
1735 if [[ x$stabs = xyes ]]
1737 tm_file=mips/iris5gdb.h
1739 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1742 tm_file=mips/sni-svr4.h
1745 xmake_file=mips/x-sni-svr4
1746 tmake_file=mips/t-mips-gas
1747 if [[ x$gnu_ld != xyes ]]
1752 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1753 if [[ x$gas = xyes ]]
1755 tm_file="mips/iris5.h mips/iris5gas.h"
1756 if [[ x$stabs = xyes ]]
1758 tm_file="${tm_file} dbx.h"
1761 tm_file=mips/iris5.h
1763 xm_defines="USG HAVE_INTTYPES_H"
1764 fixincludes=fixinc.irix
1765 xmake_file=mips/x-iris
1766 # mips-tfile doesn't work yet
1767 tmake_file=mips/t-mips-gas
1768 # See comment in mips/iris5.h file.
1770 if [[ x$enable_threads = xyes ]]; then
1774 mips-sgi-irix4loser*) # Mostly like a MIPS.
1775 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1776 if [[ x$stabs = xyes ]]; then
1777 tm_file="${tm_file} dbx.h"
1780 xmake_file=mips/x-iris
1781 if [[ x$gas = xyes ]]
1783 tmake_file=mips/t-mips-gas
1785 extra_passes="mips-tfile mips-tdump"
1787 if [[ x$gnu_ld != xyes ]]
1791 if [[ x$enable_threads = xyes ]]; then
1795 mips-sgi-irix4*) # Mostly like a MIPS.
1796 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1797 if [[ x$stabs = xyes ]]; then
1798 tm_file="${tm_file} dbx.h"
1801 xmake_file=mips/x-iris
1802 if [[ x$gas = xyes ]]
1804 tmake_file=mips/t-mips-gas
1806 extra_passes="mips-tfile mips-tdump"
1808 if [[ x$gnu_ld != xyes ]]
1812 if [[ x$enable_threads = xyes ]]; then
1816 mips-sgi-*) # Mostly like a MIPS.
1817 tm_file="mips/iris3.h ${tm_file}"
1818 if [[ x$stabs = xyes ]]; then
1819 tm_file="${tm_file} dbx.h"
1822 xmake_file=mips/x-iris3
1823 if [[ x$gas = xyes ]]
1825 tmake_file=mips/t-mips-gas
1827 extra_passes="mips-tfile mips-tdump"
1829 if [[ x$gnu_ld != xyes ]]
1834 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1835 tm_file="mips/osfrose.h ${tm_file}"
1836 xmake_file=mips/x-osfrose
1837 tmake_file=mips/t-osfrose
1838 extra_objs=halfpic.o
1841 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1842 tm_file=mips/dec-osf1.h
1843 if [[ x$stabs = xyes ]]; then
1844 tm_file="${tm_file} dbx.h"
1846 xmake_file=mips/x-dec-osf1
1847 if [[ x$gas = xyes ]]
1849 tmake_file=mips/t-mips-gas
1851 tmake_file=mips/t-ultrix
1852 extra_passes="mips-tfile mips-tdump"
1854 if [[ x$gnu_ld != xyes ]]
1859 mips-dec-bsd*) # Decstation running 4.4 BSD
1860 tm_file=mips/dec-bsd.h
1862 if [[ x$gas = xyes ]]
1864 tmake_file=mips/t-mips-gas
1866 tmake_file=mips/t-ultrix
1867 extra_passes="mips-tfile mips-tdump"
1869 if [[ x$gnu_ld != xyes ]]
1874 mips-dec-netbsd*) # Decstation running NetBSD
1875 tm_file=mips/netbsd.h
1876 # On NetBSD, the headers are already okay, except for math.h.
1877 fixincludes=fixinc.wrap
1880 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1881 tm_file="mips/news4.h ${tm_file}"
1882 if [[ x$stabs = xyes ]]; then
1883 tm_file="${tm_file} dbx.h"
1885 if [[ x$gas = xyes ]]
1887 tmake_file=mips/t-mips-gas
1889 extra_passes="mips-tfile mips-tdump"
1891 if [[ x$gnu_ld != xyes ]]
1895 xmake_file=mips/x-sony
1897 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1898 # That is based on svr4.
1899 # t-svr4 is not right because this system doesn't use ELF.
1900 tm_file="mips/news5.h ${tm_file}"
1901 if [[ x$stabs = xyes ]]; then
1902 tm_file="${tm_file} dbx.h"
1904 xm_file="xm-siglist.h ${xm_file}"
1906 if [[ x$gas = xyes ]]
1908 tmake_file=mips/t-mips-gas
1910 extra_passes="mips-tfile mips-tdump"
1912 if [[ x$gnu_ld != xyes ]]
1917 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1918 tm_file="mips/svr4-5.h mips/svr4-t.h"
1919 if [[ x$stabs = xyes ]]; then
1920 tm_file="${tm_file} dbx.h"
1922 xm_file="xm-siglist.h ${xm_file}"
1924 xmake_file=mips/x-sysv
1925 if [[ x$gas = xyes ]]
1927 tmake_file=mips/t-mips-gas
1928 extra_parts="crtbegin.o crtend.o"
1930 tmake_file=mips/t-mips
1931 extra_passes="mips-tfile mips-tdump"
1933 if [[ x$gnu_ld != xyes ]]
1938 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1939 tm_file="mips/ultrix.h ${tm_file}"
1940 if [[ x$stabs = xyes ]]; then
1941 tm_file="${tm_file} dbx.h"
1943 xmake_file=mips/x-ultrix
1944 if [[ x$gas = xyes ]]
1946 tmake_file=mips/t-mips-gas
1948 tmake_file=mips/t-ultrix
1949 extra_passes="mips-tfile mips-tdump"
1951 if [[ x$gnu_ld != xyes ]]
1956 mips-*-riscos[[56789]]bsd*)
1957 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1958 if [[ x$stabs = xyes ]]; then
1959 tm_file="${tm_file} dbx.h"
1961 if [[ x$gas = xyes ]]
1963 tmake_file=mips/t-bsd-gas
1965 tmake_file=mips/t-bsd
1966 extra_passes="mips-tfile mips-tdump"
1968 if [[ x$gnu_ld != xyes ]]
1973 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1974 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
1975 if [[ x$stabs = xyes ]]; then
1976 tm_file="${tm_file} dbx.h"
1978 if [[ x$gas = xyes ]]
1980 tmake_file=mips/t-bsd-gas
1982 tmake_file=mips/t-bsd
1983 extra_passes="mips-tfile mips-tdump"
1985 if [[ x$gnu_ld != xyes ]]
1990 mips-*-riscos[[56789]]sysv4*)
1991 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1992 if [[ x$stabs = xyes ]]; then
1993 tm_file="${tm_file} dbx.h"
1995 xm_file="xm-siglist.h ${xm_file}"
1996 xmake_file=mips/x-sysv
1997 if [[ x$gas = xyes ]]
1999 tmake_file=mips/t-svr4-gas
2001 tmake_file=mips/t-svr4
2002 extra_passes="mips-tfile mips-tdump"
2004 if [[ x$gnu_ld != xyes ]]
2009 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
2010 tm_file="mips/svr4-4.h ${tm_file}"
2011 if [[ x$stabs = xyes ]]; then
2012 tm_file="${tm_file} dbx.h"
2015 xmake_file=mips/x-sysv
2016 if [[ x$gas = xyes ]]
2018 tmake_file=mips/t-svr4-gas
2020 tmake_file=mips/t-svr4
2021 extra_passes="mips-tfile mips-tdump"
2023 if [[ x$gnu_ld != xyes ]]
2028 mips-*-riscos[[56789]]sysv*)
2029 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2030 if [[ x$stabs = xyes ]]; then
2031 tm_file="${tm_file} dbx.h"
2034 xmake_file=mips/x-sysv
2035 if [[ x$gas = xyes ]]
2037 tmake_file=mips/t-svr3-gas
2039 tmake_file=mips/t-svr3
2040 extra_passes="mips-tfile mips-tdump"
2042 if [[ x$gnu_ld != xyes ]]
2047 mips-*-sysv* | mips-*-riscos*sysv*)
2048 tm_file="mips/svr3-4.h ${tm_file}"
2049 if [[ x$stabs = xyes ]]; then
2050 tm_file="${tm_file} dbx.h"
2053 xmake_file=mips/x-sysv
2054 if [[ x$gas = xyes ]]
2056 tmake_file=mips/t-svr3-gas
2058 tmake_file=mips/t-svr3
2059 extra_passes="mips-tfile mips-tdump"
2061 if [[ x$gnu_ld != xyes ]]
2066 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2067 tm_file=mips/mips-5.h
2068 if [[ x$stabs = xyes ]]; then
2069 tm_file="${tm_file} dbx.h"
2071 if [[ x$gas = xyes ]]
2073 tmake_file=mips/t-mips-gas
2075 extra_passes="mips-tfile mips-tdump"
2077 if [[ x$gnu_ld != xyes ]]
2085 tm_file=mips/ecoffl.h
2086 if [[ x$stabs = xyes ]]; then
2087 tm_file="${tm_file} dbx.h"
2089 tmake_file=mips/t-ecoff
2092 tm_file="gofast.h mips/ecoff.h"
2093 if [[ x$stabs = xyes ]]; then
2094 tm_file="${tm_file} dbx.h"
2096 tmake_file=mips/t-ecoff
2099 tm_file="mips/elfl.h libgloss.h"
2100 tmake_file=mips/t-ecoff
2103 tm_file="mips/elf.h libgloss.h"
2104 tmake_file=mips/t-ecoff
2107 tm_file="mips/elfl64.h libgloss.h"
2108 tmake_file=mips/t-ecoff
2110 mips64orionel-*-elf*)
2111 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2112 tmake_file=mips/t-ecoff
2115 tm_file="mips/elf64.h libgloss.h"
2116 tmake_file=mips/t-ecoff
2119 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2120 tmake_file=mips/t-ecoff
2122 mips64orion-*-rtems*)
2123 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2124 tmake_file="mips/t-ecoff t-rtems"
2127 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2128 tmake_file=mips/t-r3900
2131 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2132 tmake_file=mips/t-r3900
2134 mips-*-*) # Default MIPS RISC-OS 4.0.
2135 if [[ x$stabs = xyes ]]; then
2136 tm_file="${tm_file} dbx.h"
2138 if [[ x$gas = xyes ]]
2140 tmake_file=mips/t-mips-gas
2142 extra_passes="mips-tfile mips-tdump"
2144 if [[ x$gnu_ld != xyes ]]
2151 tm_file="mn10200/mn10200.h"
2152 if [[ x$stabs = xyes ]]
2154 tm_file="${tm_file} dbx.h"
2160 tm_file="mn10300/mn10300.h"
2161 if [[ x$stabs = xyes ]]
2163 tm_file="${tm_file} dbx.h"
2168 tm_file=ns32k/encore.h
2172 tm_file=ns32k/sequent.h
2176 tm_file=ns32k/tek6100.h
2180 tm_file=ns32k/tek6200.h
2183 # This has not been updated to GCC 2.
2186 # xmake_file=ns32k/x-genix
2187 # tm_file=ns32k/genix.h
2191 tm_file=ns32k/merlin.h
2195 tm_file=ns32k/pc532-mach.h
2199 tm_file=ns32k/pc532-min.h
2200 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2204 ns32k-pc532-netbsd*)
2205 tm_file=ns32k/netbsd.h
2206 # On NetBSD, the headers are already okay, except for math.h.
2207 fixincludes=fixinc.wrap
2211 tm_file="${tm_file} pdp11/2bsd.h"
2217 xmake_file=pyr/x-pyr
2224 xmake_file=romp/x-mach
2229 tm_file=rs6000/beos.h
2230 xm_file=rs6000/xm-beos.h
2231 tmake_file=rs6000/t-beos
2232 xmake_file=rs6000/x-beos
2234 powerpc-*-sysv* | powerpc-*-elf*)
2235 tm_file=rs6000/sysv4.h
2236 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2237 xm_defines="USG POSIX"
2238 extra_headers=ppc-asm.h
2239 if [[ x$gas = xyes ]]
2241 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2243 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2245 xmake_file=rs6000/x-sysv4
2248 tm_file=rs6000/eabiaix.h
2249 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2250 fixincludes=Makefile.in
2251 extra_headers=ppc-asm.h
2254 tm_file=rs6000/eabisim.h
2255 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2256 fixincludes=Makefile.in
2257 extra_headers=ppc-asm.h
2260 tm_file=rs6000/eabi.h
2261 if [[ x$gas = xyes ]]
2263 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2265 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2267 fixincludes=Makefile.in
2268 extra_headers=ppc-asm.h
2271 tm_file=rs6000/rtems.h
2272 if [[ x$gas = xyes ]]
2274 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2276 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2278 fixincludes=Makefile.in
2279 extra_headers=ppc-asm.h
2281 powerpc-*-linux-gnulibc1)
2282 tm_file=rs6000/linux.h
2283 xm_file=rs6000/xm-sysv4.h
2284 out_file=rs6000/rs6000.c
2285 if [[ x$gas = xyes ]]
2287 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2289 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2292 fixincludes=Makefile.in
2293 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2294 extra_headers=ppc-asm.h
2295 if [[ x$enable_threads = xyes ]]; then
2299 powerpc-*-linux-gnu*)
2300 tm_file=rs6000/linux.h
2301 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2302 xm_defines="USG ${xm_defines}"
2303 out_file=rs6000/rs6000.c
2304 if [[ x$gas = xyes ]]
2306 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2308 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2311 fixincludes=Makefile.in
2312 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2313 extra_headers=ppc-asm.h
2314 if [[ x$enable_threads = xyes ]]; then
2318 powerpc-wrs-vxworks*)
2320 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2321 xm_defines="USG POSIX"
2322 tm_file=rs6000/vxppc.h
2323 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2324 extra_headers=ppc-asm.h
2325 thread_file='vxworks'
2327 powerpcle-*-sysv* | powerpcle-*-elf*)
2328 tm_file=rs6000/sysv4le.h
2329 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2330 xm_defines="USG POSIX"
2331 if [[ x$gas = xyes ]]
2333 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2335 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2337 xmake_file=rs6000/x-sysv4
2338 extra_headers=ppc-asm.h
2340 powerpcle-*-eabisim*)
2341 tm_file=rs6000/eabilesim.h
2342 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2343 fixincludes=Makefile.in
2344 extra_headers=ppc-asm.h
2347 tm_file=rs6000/eabile.h
2348 if [[ x$gas = xyes ]]
2350 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2352 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2354 fixincludes=Makefile.in
2355 extra_headers=ppc-asm.h
2357 powerpcle-*-winnt* )
2358 tm_file=rs6000/win-nt.h
2359 tmake_file=rs6000/t-winnt
2361 fixincludes=Makefile.in
2362 if [[ x$enable_threads = xyes ]]; then
2365 extra_headers=ppc-asm.h
2367 powerpcle-*-pe | powerpcle-*-cygwin32)
2368 tm_file=rs6000/cygwin32.h
2369 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2370 xm_defines=NO_STAB_H
2371 tmake_file=rs6000/t-winnt
2372 xmake_file=rs6000/x-cygwin32
2374 fixincludes=Makefile.in
2375 if [[ x$enable_threads = xyes ]]; then
2379 extra_headers=ppc-asm.h
2381 powerpcle-*-solaris2*)
2382 tm_file=rs6000/sol2.h
2383 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2384 xm_defines="USG POSIX"
2385 if [[ x$gas = xyes ]]
2387 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2389 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2391 xmake_file=rs6000/x-sysv4
2393 *-*-solaris2.[[0-4]])
2394 fixincludes=fixinc.svr4;;
2396 fixincludes=fixinc.wrap;;
2398 extra_headers=ppc-asm.h
2400 rs6000-ibm-aix3.[[01]]*)
2401 tm_file=rs6000/aix31.h
2402 xmake_file=rs6000/x-aix31
2405 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2406 tm_file=rs6000/aix3newas.h
2407 if [[ x$host != x$target ]]
2409 tmake_file=rs6000/t-xnewas
2411 tmake_file=rs6000/t-newas
2415 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2416 tm_file=rs6000/aix41.h
2417 if [[ x$host != x$target ]]
2419 tmake_file=rs6000/t-xnewas
2421 tmake_file=rs6000/t-newas
2423 xmake_file=rs6000/x-aix31
2433 tm_file=rs6000/mach.h
2434 xm_file="${xm_file} rs6000/xm-mach.h"
2435 xmake_file=rs6000/x-mach
2439 tm_file=rs6000/lynx.h
2440 xm_file=rs6000/xm-lynx.h
2441 tmake_file=rs6000/t-rs6000
2442 xmake_file=rs6000/x-lynx
2450 tmake_file="sh/t-sh t-rtems"
2459 xm_file="xm-alloca.h ${xm_file}"
2462 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2463 tm_file=sparc/vxsparc.h
2464 tmake_file=sparc/t-vxsparc
2466 thread_file='vxworks'
2469 tmake_file=sparc/t-sparcbare
2470 tm_file="sparc/aout.h libgloss.h"
2473 tm_file=sparc/netbsd.h
2474 # On NetBSD, the headers are already okay, except for math.h.
2475 fixincludes=fixinc.wrap
2483 tmake_file=sparc/t-elf
2484 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2488 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2489 xm_file="${xm_file} sparc/xm-linux.h"
2490 tm_file=sparc/linux-aout.h
2492 fixincludes=Makefile.in #On Linux, the headers are ok already.
2495 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2496 xm_file="${xm_file} sparc/xm-linux.h"
2498 tm_file=sparc/linux.h
2499 tmake_file="t-linux t-linux-gnulibc1"
2500 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2501 fixincludes=Makefile.in #On Linux, the headers are ok already.
2504 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2505 xm_file="${xm_file} sparc/xm-linux.h"
2507 tm_file=sparc/linux.h
2508 tmake_file="t-linux"
2509 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2510 fixincludes=Makefile.in #On Linux, the headers are ok already.
2512 if [[ x$enable_threads = xyes ]]; then
2517 if [[ x$gas = xyes ]]
2519 tm_file=sparc/lynx.h
2521 tm_file=sparc/lynx-ng.h
2523 xm_file=sparc/xm-lynx.h
2524 tmake_file=sparc/t-sunos41
2528 tmake_file="sparc/t-sparcbare t-rtems"
2529 tm_file=sparc/rtems.h
2532 if [[ x$gnu_ld = xyes ]]
2534 tm_file=sparc/sol2.h
2536 tm_file=sparc/sol2-sld.h
2538 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2539 xm_defines="USG POSIX"
2540 tmake_file=sparc/t-sol2
2541 xmake_file=sparc/x-sysv4
2542 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2544 *-*-solaris2.[[0-4]])
2545 fixincludes=fixinc.svr4;;
2547 fixincludes=fixinc.wrap;;
2550 if [[ x${enable_threads} = x ]]; then
2551 enable_threads=$have_pthread_h
2552 if [[ x${enable_threads} = x ]]; then
2553 enable_threads=$have_thread_h
2556 if [[ x${enable_threads} = xyes ]]; then
2557 if [[ x${have_pthread_h} = xyes ]]; then
2560 thread_file='solaris'
2565 tm_file=sparc/sunos4.h
2566 tmake_file=sparc/t-sunos40
2570 tm_file=sparc/sunos4.h
2571 tmake_file=sparc/t-sunos41
2573 if [[ x$gas = xyes ]]; then
2574 tm_file="${tm_file} sparc/sun4gas.h"
2578 tm_file=sparc/sun4o3.h
2582 tm_file=sparc/sysv4.h
2583 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2584 xm_defines="USG POSIX"
2586 xmake_file=sparc/x-sysv4
2587 extra_parts="crtbegin.o crtend.o"
2590 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2591 xm_defines="USG POSIX"
2592 tm_file=sparc/vxsim.h
2593 tmake_file=sparc/t-vxsparc
2594 xmake_file=sparc/x-sysv4
2597 tm_file="sparc/splet.h libgloss.h"
2598 tmake_file=sparc/t-splet
2601 tm_file="sparc/litecoff.h libgloss.h"
2602 tmake_file=sparc/t-sparclite
2605 tm_file="sparc/lite.h aoutos.h libgloss.h"
2606 tmake_file=sparc/t-sparclite
2609 tmake_file=sparc/t-sp64
2610 tm_file=sparc/sp64-aout.h
2613 tmake_file=sparc/t-sp64
2614 tm_file=sparc/sp64-elf.h
2615 extra_parts="crtbegin.o crtend.o"
2617 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2618 tmake_file=sparc/t-sp64
2619 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2620 tm_file=sparc/linux64.h
2622 fixincludes=Makefile.in # The headers are ok already.
2625 # This hasn't been upgraded to GCC 2.
2626 # tahoe-harris-*) # Harris tahoe, using COFF.
2627 # tm_file=tahoe/harris.h
2629 # tahoe-*-bsd*) # tahoe running BSD
2631 thumb-*-coff* | thumbel-*-coff*)
2633 out_file=arm/thumb.c
2634 xm_file=arm/xm-thumb.h
2635 md_file=arm/thumb.md
2636 tmake_file=arm/t-thumb
2638 # This hasn't been upgraded to GCC 2.
2645 tm_file="v850/v850.h"
2646 xm_file="v850/xm-v850.h"
2647 tmake_file=v850/t-v850
2648 if [[ x$stabs = xyes ]]
2650 tm_file="${tm_file} dbx.h"
2654 vax-*-bsd*) # vaxen running BSD
2658 vax-*-sysv*) # vaxen running system V
2659 tm_file="${tm_file} vax/vaxv.h"
2664 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2665 # On NetBSD, the headers are already okay, except for math.h.
2666 fixincludes=fixinc.wrap
2670 vax-*-ultrix*) # vaxen running ultrix
2671 tm_file="${tm_file} vax/ultrix.h"
2675 vax-*-vms*) # vaxen running VMS
2676 xm_file=vax/xm-vms.h
2680 vax-*-*) # vax default entry
2684 xm_file="${xm_file} xm-svr3"
2688 echo "Configuration $machine not supported" 1>&2
2695 ;; # Existing GNU/Linux systems do not use the GNU setup.
2697 # On the GNU system, the setup is just about the same on
2698 # each different CPU. The specific machines that GNU
2699 # supports are matched above and just set $cpu_type.
2700 xm_file="xm-gnu.h ${xm_file}"
2701 tm_file=${cpu_type}/gnu.h
2702 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2703 # GNU always uses ELF.
2705 # GNU tools are the only tools.
2708 # On GNU, the headers are already okay.
2709 fixincludes=Makefile.in
2710 xmake_file=x-linux # These details are the same as Linux.
2711 tmake_file=t-gnu # These are not.
2714 fixincludes=fixinc.svr4
2715 xmake_try_sysv=x-sysv
2716 install_headers_dir=install-headers-cpio
2719 install_headers_dir=install-headers-cpio
2723 # Distinguish i[34567]86
2724 # Also, do not run mips-tfile on MIPS if using gas.
2725 # Process --with-cpu= for PowerPC/rs6000
2726 target_cpu_default2=
2729 target_cpu_default2=1
2732 target_cpu_default2=2
2734 i686-*-* | i786-*-*)
2735 target_cpu_default2=3
2740 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2743 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2746 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2749 target_cpu_default2="MASK_CPU_EV5"
2753 if [[ x$gas = xyes ]]
2755 if [[ "$target_cpu_default2" = "" ]]
2757 target_cpu_default2="MASK_GAS"
2759 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2764 case "x$with_cpu" in
2767 target_cpu_default2="TARGET_CPU_generic"
2770 # Distinguish cores, and major variants
2771 # arm7m doesn't exist, but D & I don't affect code
2772 xarm[23678] | xarm250 | xarm[67][01]0 \
2773 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2774 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2775 | xstrongarm | xstrongarm110)
2776 target_cpu_default2="TARGET_CPU_$with_cpu"
2780 echo "--with-cpu must be passed a value" 1>&2
2785 if [[ x$pass2done = xyes ]]
2787 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2794 mips*-*-ecoff* | mips*-*-elf*)
2795 if [[ x$gas = xyes ]]
2797 if [[ x$gnu_ld = xyes ]]
2799 target_cpu_default2=20
2801 target_cpu_default2=16
2806 if [[ x$gas = xyes ]]
2808 target_cpu_default2=16
2811 powerpc*-*-* | rs6000-*-*)
2812 case "x$with_cpu" in
2816 xcommon | xpower | xpower2 | xpowerpc | xrios \
2817 | xrios1 | xrios2 | xrsc | xrsc1 \
2818 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2819 | x403 | x505 | x801 | x821 | x823 | x860)
2820 target_cpu_default2="\"$with_cpu\""
2824 echo "--with-cpu must be passed a value" 1>&2
2829 if [[ x$pass2done = xyes ]]
2831 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2838 case ".$with_cpu" in
2840 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2842 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2843 target_cpu_default2="TARGET_CPU_$with_cpu"
2846 if [[ x$pass2done = xyes ]]
2848 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2856 if [[ "$target_cpu_default2" != "" ]]
2858 if [[ "$target_cpu_default" != "" ]]
2860 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2862 target_cpu_default=$target_cpu_default2
2866 # No need for collect2 if we have the GNU linker.
2873 # Save data on machine being used to compile GCC in build_xm_file.
2874 # Save data on host machine in vars host_xm_file and host_xmake_file.
2875 if [[ x$pass1done = x ]]
2877 if [[ x"$xm_file" = x ]]
2878 then build_xm_file=$cpu_type/xm-$cpu_type.h
2879 else build_xm_file=$xm_file
2881 build_xm_defines=$xm_defines
2882 build_install_headers_dir=$install_headers_dir
2883 build_exeext=$exeext
2886 if [[ x$pass2done = x ]]
2888 if [[ x"$xm_file" = x ]]
2889 then host_xm_file=$cpu_type/xm-$cpu_type.h
2890 else host_xm_file=$xm_file
2892 host_xm_defines=$xm_defines
2893 if [[ x"$xmake_file" = x ]]
2894 then xmake_file=$cpu_type/x-$cpu_type
2896 host_xmake_file="$xmake_file"
2897 host_truncate_target=$truncate_target
2898 host_extra_gcc_objs=$extra_gcc_objs
2899 host_extra_objs=$extra_host_objs
2906 extra_objs="${host_extra_objs} ${extra_objs}"
2908 # Default the target-machine variables that were not explicitly set.
2909 if [[ x"$tm_file" = x ]]
2910 then tm_file=$cpu_type/$cpu_type.h; fi
2912 if [[ x$extra_headers = x ]]
2913 then extra_headers=; fi
2915 if [[ x"$xm_file" = x ]]
2916 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2918 if [[ x$md_file = x ]]
2919 then md_file=$cpu_type/$cpu_type.md; fi
2921 if [[ x$out_file = x ]]
2922 then out_file=$cpu_type/$cpu_type.c; fi
2924 if [[ x"$tmake_file" = x ]]
2925 then tmake_file=$cpu_type/t-$cpu_type
2928 if [[ x$float_format = x ]]
2929 then float_format=i64
2932 if [[ x$enable_haifa = x ]]
2935 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2940 # Say what files are being used for the output code and MD file.
2941 echo "Using \`$srcdir/config/$out_file' to output insns."
2942 echo "Using \`$srcdir/config/$md_file' as machine description file."
2945 for f in $tm_file; do
2948 if [[ $count = ax ]]; then
2949 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2951 echo "Using the following target machine macro files:"
2952 for f in $tm_file; do
2953 echo " $srcdir/config/$f"
2958 for f in $host_xm_file; do
2961 if [[ $count = ax ]]; then
2962 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2964 echo "Using the following host machine macro files:"
2965 for f in $host_xm_file; do
2966 echo " $srcdir/config/$f"
2970 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2972 for f in $build_xm_file; do
2975 if [[ $count = ax ]]; then
2976 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2978 echo "Using the following build machine macro files:"
2979 for f in $build_xm_file; do
2980 echo " $srcdir/config/$f"
2985 if [[ x$thread_file = x ]]; then
2986 if [[ x$target_thread_file != x ]]; then
2987 thread_file=$target_thread_file
2989 thread_file='single'
2993 # Set up the header files.
2994 # $links is the list of header files to create.
2995 # $vars is the list of shell variables with file names to include.
2996 # auto-host.h is the file containing items generated by autoconf and is
2997 # the first file included by config.h.
2999 host_xm_file="auto-host.h ${host_xm_file}"
3001 # If host=build, it is correct to have hconfig include auto-host.h
3002 # as well. If host!=build, we are in error and need to do more
3003 # work to find out the build config parameters.
3004 if [[ x$host = x$build ]]
3006 build_xm_file="auto-host.h ${build_xm_file}"
3008 # We create a subdir, then run autoconf in the subdir.
3009 # To prevent recursion we set host and build for the new
3010 # invocation of configure to the build for this invocation
3017 /*) realsrcdir=${srcdir};;
3018 *) realsrcdir=../${srcdir};;
3020 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3021 --target=$target --host=$build --build=$build
3023 # We just finished tests for the build machine, so rename
3024 # the file auto-build.h in the gcc directory.
3025 mv auto-host.h ../auto-build.h
3028 build_xm_file="auto-build.h ${build_xm_file}"
3031 vars="host_xm_file tm_file xm_file build_xm_file"
3032 links="config.h tm.h tconfig.h hconfig.h"
3033 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3036 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3039 while [[ -n "$vars" ]]
3041 set $vars; var=$1; shift; vars=$*
3042 set $links; link=$1; shift; links=$*
3043 set $defines; define=$1; shift; defines=$*
3047 # Define TARGET_CPU_DEFAULT if the system wants one.
3048 # This substitutes for lots of *.h files.
3049 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3051 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3054 for file in `eval echo '$'$var`; do
3055 echo "#include \"$file\"" >>$link
3058 for def in `eval echo '$'$define`; do
3059 echo "#ifndef $def" >>$link
3060 echo "#define $def" >>$link
3061 echo "#endif" >>$link
3065 # Truncate the target if necessary
3066 if [[ x$host_truncate_target != x ]]; then
3067 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3070 # Get the version number from the toplevel
3071 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3073 # Get an absolute path to the GCC top-level source directory
3079 # Conditionalize the makefile for this host machine.
3080 # Make-host contains the concatenation of all host makefile fragments
3081 # [there can be more than one]. This file is built by configure.frag.
3082 host_overrides=Make-host
3083 dep_host_xmake_file=
3084 for f in .. ${host_xmake_file}
3086 if [[ -f ${srcdir}/config/$f ]]
3088 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3092 # Conditionalize the makefile for this target machine.
3093 # Make-target contains the concatenation of all host makefile fragments
3094 # [there can be more than one]. This file is built by configure.frag.
3095 target_overrides=Make-target
3097 for f in .. ${tmake_file}
3099 if [[ -f ${srcdir}/config/$f ]]
3101 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3105 # If the host doesn't support symlinks, modify CC in
3106 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3107 # Otherwise, we can use "CC=$(CC)".
3109 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3111 cc_set_by_configure="\$(CC)"
3112 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3115 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3117 symbolic_link="cp -p"
3121 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3122 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3126 out_object_file=`basename $out_file .c`.o
3129 for f in $tm_file; do
3130 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3134 for f in $host_xm_file; do
3135 if test $f != "auto-host.h"; then
3136 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3138 host_xm_file_list="${host_xm_file_list} auto-host.h"
3143 for f in $build_xm_file; do
3144 if test $f != "auto-build.h"; then
3145 if test $f != "auto-host.h"; then
3146 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3148 build_xm_file_list="${build_xm_file_list} auto-host.h"
3151 build_xm_file_list="${build_xm_file_list} auto-build.h"
3155 # Define macro CROSS_COMPILE in compilation
3156 # if this is a cross-compiler.
3157 # Also use all.cross instead of all.internal
3158 # and add cross-make to Makefile.
3159 cross_overrides="/dev/null"
3160 if [[ x$host != x$target ]]
3162 cross_defines="CROSS=-DCROSS_COMPILE"
3163 cross_overrides="${topdir}/cross-make"
3166 # When building gcc with a cross-compiler, we need to fix a few things.
3167 # This must come after cross-make as we want all.build to override
3169 build_overrides="/dev/null"
3170 if [[ x$build != x$host ]]
3172 build_overrides="${topdir}/build-make"
3175 # Expand extra_headers to include complete path.
3176 # This substitutes for lots of t-* files.
3178 if [[ "x$extra_headers" = x ]]
3181 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3182 for file in $extra_headers;
3184 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3188 # Add a definition of USE_COLLECT2 if system wants one.
3189 # Also tell toplev.c what to do.
3190 # This substitutes for lots of t-* files.
3191 if [[ x$use_collect2 = x ]]
3196 will_use_collect2="collect2"
3197 maybe_use_collect2="-DUSE_COLLECT2"
3201 # Set MD_DEPS if the real md file is in md.pre-cpp.
3202 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3203 # for line oriented comments, so we must always use a GNU cpp. If
3204 # building gcc with a cross compiler, use the cross compiler just
3205 # built. Otherwise, we can use the cpp just built.
3207 if [[ "x$md_cppflags" = x ]]
3209 md_file_sub=$srcdir/config/$md_file
3214 # If we have gas in the build tree, make a link to it.
3215 if [[ -f ../gas/Makefile ]]; then
3216 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3219 # If we have ld in the build tree, make a link to it.
3220 if [[ -f ../ld/Makefile ]]; then
3221 # if [[ x$use_collect2 = x ]]; then
3222 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3224 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3228 # Figure out what language subdirectories are present.
3230 for lang in ${srcdir}/*/config-lang.in ..
3234 # The odd quoting in the next line works around
3235 # an apparent bug in bash 1.12 on linux.
3236 ${srcdir}/[[*]]/config-lang.in) ;;
3237 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3241 # Make gthr-default.h if we have a thread file.
3243 if [[ $thread_file != single ]]; then
3244 rm -f gthr-default.h
3245 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3246 gthread_flags=-DHAVE_GTHR_DEFAULT
3248 AC_SUBST(gthread_flags)
3250 # Make empty files to contain the specs and options for each language.
3251 # Then add #include lines to for a compiler that has specs and/or options.
3255 rm -f specs.h options.h
3256 touch specs.h options.h
3257 for subdir in . $subdirs
3259 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3260 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3261 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3263 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3264 echo "#include \"$subdir/lang-options.h\"" >>options.h
3265 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3269 # These (without "all_") are set in each config-lang.in.
3270 # `language' must be a single word so is spelled singularly.
3276 all_outputs=Makefile
3277 # List of language makefile fragments.
3282 # Add the language fragments.
3283 # Languages are added via two mechanisms. Some information must be
3284 # recorded in makefile variables, these are defined in config-lang.in.
3285 # We accumulate them and plug them into the main Makefile.
3286 # The other mechanism is a set of hooks for each of the main targets
3287 # like `clean', `install', etc.
3289 language_fragments="Make-lang"
3290 language_hooks="Make-hooks"
3293 for s in .. $subdirs
3305 . ${srcdir}/$s/config-lang.in
3306 if [[ "x$language" = x ]]
3308 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3311 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3312 all_languages="$all_languages $language"
3313 if [[ "x$boot_language" = xyes ]]
3315 all_boot_languages="$all_boot_languages $language"
3317 all_compilers="$all_compilers $compilers"
3318 all_stagestuff="$all_stagestuff $stagestuff"
3319 all_diff_excludes="$all_diff_excludes $diff_excludes"
3320 all_headers="$all_headers $headers"
3321 all_outputs="$all_outputs $outputs"
3322 if [[ x$outputs = x ]]
3324 oldstyle_subdirs="$oldstyle_subdirs $s"
3326 all_lib2funcs="$all_lib2funcs $lib2funcs"
3330 # Since we can't use `::' targets, we link each language in
3331 # with a set of hooks, reached indirectly via lang.${target}.
3335 target_list="all.build all.cross start.encap rest.encap \
3337 install-normal install-common install-info install-man \
3339 mostlyclean clean distclean extraclean maintainer-clean \
3340 stage1 stage2 stage3 stage4"
3341 for t in $target_list
3344 for l in .. $all_languages
3346 if [[ $l != ".." ]]; then
3350 echo "lang.$t: $x" >> Make-hooks
3353 # If we're not building in srcdir, create .gdbinit.
3355 if [[ ! -f Makefile.in ]]; then
3356 echo "dir ." > .gdbinit
3357 echo "dir ${srcdir}" >> .gdbinit
3358 if [[ x$gdb_needs_out_file_path = xyes ]]
3360 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3362 if [[ "x$subdirs" != x ]]; then
3365 echo "dir ${srcdir}/$s" >> .gdbinit
3368 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3371 # Define variables host_canonical and build_canonical
3372 # because some Cygnus local changes in the Makefile depend on them.
3373 build_canonical=${build}
3374 host_canonical=${host}
3376 if [[ "${host}" != "${target}" ]] ; then
3377 target_subdir=${target}/
3379 AC_SUBST(build_canonical)
3380 AC_SUBST(host_canonical)
3381 AC_SUBST(target_subdir)
3383 # If this is using newlib, then define inhibit_libc in
3384 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3385 # libgcc.a, but that's OK because newib should have its own version of
3388 if [[ x$with_newlib = xyes ]]; then
3389 inhibit_libc=-Dinhibit_libc
3391 AC_SUBST(inhibit_libc)
3393 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3396 if [[ x$enable_haifa = xyes ]]; then
3397 echo "Using the Haifa scheduler."
3399 sched_cflags=-DHAIFA
3401 AC_SUBST(sched_prefix)
3402 AC_SUBST(sched_cflags)
3403 if [[ x$enable_haifa != x ]]; then
3404 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3405 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3406 if [[ -f $x ]]; then
3413 # Nothing to do for FLOAT_H, float_format already handled.
3417 # Process the language and host/target makefile fragments.
3418 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3420 # Substitute configuration variables
3422 AC_SUBST(all_languages)
3423 AC_SUBST(all_boot_languages)
3424 AC_SUBST(all_compilers)
3425 AC_SUBST(all_lang_makefiles)
3426 AC_SUBST(all_stagestuff)
3427 AC_SUBST(all_diff_excludes)
3428 AC_SUBST(all_lib2funcs)
3429 AC_SUBST(all_headers)
3430 AC_SUBST(extra_passes)
3431 AC_SUBST(extra_programs)
3432 AC_SUBST(extra_parts)
3433 AC_SUBST(extra_c_objs)
3434 AC_SUBST(extra_c_flags)
3435 AC_SUBST(extra_objs)
3436 AC_SUBST(host_extra_gcc_objs)
3437 AC_SUBST(extra_headers_list)
3438 AC_SUBST(dep_host_xmake_file)
3439 AC_SUBST(dep_tmake_file)
3441 AC_SUBST(out_object_file)
3443 AC_SUBST(tm_file_list)
3444 AC_SUBST(build_xm_file_list)
3445 AC_SUBST(host_xm_file_list)
3446 AC_SUBST(lang_specs_files)
3447 AC_SUBST(lang_options_files)
3448 AC_SUBST(thread_file)
3450 AC_SUBST(local_prefix)
3451 AC_SUBST(gxx_include_dir)
3452 AC_SUBST(fixincludes)
3453 AC_SUBST(build_install_headers_dir)
3454 AC_SUBST(build_exeext)
3455 AC_SUBST(host_exeext)
3456 AC_SUBST(float_format)
3457 AC_SUBST(will_use_collect2)
3458 AC_SUBST(maybe_use_collect2)
3459 AC_SUBST(cc_set_by_configure)
3460 AC_SUBST(stage_prefix_set_by_configure)
3462 AC_SUBST(symbolic_link)
3464 AC_SUBST_FILE(target_overrides)
3465 AC_SUBST_FILE(host_overrides)
3466 AC_SUBST(cross_defines)
3467 AC_SUBST_FILE(cross_overrides)
3468 AC_SUBST_FILE(build_overrides)
3469 AC_SUBST_FILE(language_fragments)
3470 AC_SUBST_FILE(language_hooks)
3472 # Echo that links are built
3473 if [[ x$host = x$target ]]
3481 if [[ x$host != x$build ]]
3483 str3=" on a $build system"
3486 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3491 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3493 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3495 echo " ${str2}${str3}." 1>&2
3498 # Truncate the target if necessary
3499 if [[ x$host_truncate_target != x ]]; then
3500 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3503 # Configure the subdirectories
3504 # AC_CONFIG_SUBDIRS($subdirs)
3506 # Create the Makefile
3507 # and configure language subdirectories
3508 AC_OUTPUT($all_outputs,
3510 . $srcdir/configure.lang
3511 case x$CONFIG_HEADERS in
3512 xauto-host.h:config.in)
3515 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3516 # bootstrapping and the installation procedure can still use
3517 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3518 # FLAGS_TO_PASS has been modified to solve the problem there.
3519 # This is virtually a duplicate of what happens in configure.lang; we do
3520 # an extra check to make sure this only happens if ln -s can be used.
3521 if [[ "$symbolic_link" = "ln -s" ]]; then
3522 for d in .. ${subdirs} ; do
3523 if [[ $d != .. ]]; then
3526 for t in stage1 stage2 stage3 stage4 include
3529 $symbolic_link ../$t $t 2>/dev/null
3540 target_alias='${target_alias}'
3542 subdirs='${subdirs}'
3543 oldstyle_subdirs='${oldstyle_subdirs}'
3544 symbolic_link='${symbolic_link}'
3545 program_transform_set='${program_transform_set}'
3546 program_transform_name='${program_transform_name}'
3547 dep_host_xmake_file='${dep_host_xmake_file}'
3548 host_xmake_file='${host_xmake_file}'
3549 dep_tmake_file='${dep_tmake_file}'
3550 tmake_file='${tmake_file}'
3551 thread_file='${thread_file}'
3552 version='${version}'
3553 local_prefix='${local_prefix}'
3554 build_install_headers_dir='${build_install_headers_dir}'
3555 build_exeext='${build_exeext}'
3556 host_exeext='${host_exeext}'
3557 out_file='${out_file}'
3558 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3559 SET_MAKE='${SET_MAKE}'
3560 target_list='${target_list}'
3561 target_overrides='${target_overrides}'
3562 host_overrides='${host_overrides}'
3563 cross_defines='${cross_defines}'
3564 cross_overrides='${cross_overrides}'
3565 build_overrides='${build_overrides}'