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_objs="${extra_c_objs} prefix.o"
93 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
94 extra_c_flags=-DUSE_CPPLIB=1
97 # Enable Haifa scheduler.
99 [ --enable-haifa Use the experimental scheduler.
100 --disable-haifa Don't use the experimental scheduler for the
101 targets which normally enable it.])
104 # This is a work in progress...
105 AC_ARG_WITH(fast-fixincludes,
106 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
107 fast_fixinc="$with_fast_fixincludes",
111 # Pass with no value to take the default
112 # Pass with a value to specify a thread package
113 AC_ARG_ENABLE(threads,
114 [ --enable-threads enable thread usage for target GCC.
115 --enable-threads=LIB use LIB thread package for target GCC.],
116 if [[[ x$enable_threads = xno ]]]; then
121 enable_threads_flag=$enable_threads
122 # Check if a valid thread package
123 case x${enable_threads_flag} in
126 target_thread_file='single'
130 target_thread_file=''
132 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
133 xsolaris | xwin32 | xdce | xvxworks)
134 target_thread_file=$enable_threads_flag
137 echo "$enable_threads is an unknown thread package" 1>&2
142 # Determine the host, build, and target systems
145 # Find the native compiler
149 # Find some useful tools
161 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)
163 # Check for thread headers.
164 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
165 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
167 # See if the system preprocessor understands the ANSI C preprocessor
168 # stringification operator.
169 AC_MSG_CHECKING(whether cpp understands the stringify operator)
170 AC_CACHE_VAL(gcc_cv_c_have_stringify,
173 char *test = S(foo);],
174 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
175 AC_MSG_RESULT($gcc_cv_c_have_stringify)
176 if test $gcc_cv_c_have_stringify = yes; then
177 AC_DEFINE(HAVE_CPP_STRINGIFY)
180 # Use <inttypes.h> only if it exists,
181 # doesn't clash with <sys/types.h>, and declares intmax_t.
182 AC_MSG_CHECKING(for inttypes.h)
183 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
185 [#include <sys/types.h>
186 #include <inttypes.h>],
188 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
189 gcc_cv_header_inttypes_h=yes],
190 gcc_cv_header_inttypes_h=no)])
191 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
193 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
194 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
197 GCC_FUNC_VFPRINTF_DOPRNT
200 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
201 index rindex getenv atol sbrk abort atof)
213 build_install_headers_dir=install-headers-tar
218 host_truncate_target=
221 # Decode the host machine, then the target machine.
222 # For the host machine, we save the xm_file variable as host_xm_file;
223 # then we decode the target machine and forget everything else
224 # that came from the host machine.
225 for machine in $build $host $target; do
239 # Set this to force installation and use of collect2.
241 # Set this to override the default target model.
243 # Set this to control which fixincludes program to use.
244 if [[ x$fast_fixinc != xyes ]] ; then
245 fixincludes=fixincludes
246 else fixincludes=fixinc.sh ; fi
247 # Set this to control how the header file directory is installed.
248 install_headers_dir=install-headers-tar
249 # Set this to a non-empty list of args to pass to cpp if the target
250 # wants its .md file passed through cpp.
252 # Set this if directory names should be truncated to 14 characters.
254 # Set this if gdb needs a dir command with `dirname $out_file`
255 gdb_needs_out_file_path=
256 # Set this if the build machine requires executables to have a
259 # Set this to control which thread package will be used.
261 # Reinitialize these from the flag values every loop pass, since some
262 # configure entries modify them.
264 gnu_ld="$gnu_ld_flag"
265 enable_threads=$enable_threads_flag
267 # Set default cpu_type, tm_file and xm_file so it can be updated in
268 # each machine entry.
269 cpu_type=`echo $machine | sed 's/-.*$//'`
303 tm_file=${cpu_type}/${cpu_type}.h
304 xm_file=${cpu_type}/xm-${cpu_type}.h
306 # Set the default macros to define for GNU/Linux systems.
309 xm_defines="HAVE_ATEXIT POSIX BSTRING"
314 # Support site-specific machine types.
316 cpu_type=`echo $machine | sed -e 's/-.*//'`
317 rest=`echo $machine | sed -e "s/$cpu_type-//"`
318 xm_file=${cpu_type}/xm-$rest.h
319 tm_file=${cpu_type}/$rest.h
320 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
321 then xmake_file=${cpu_type}/x-$rest; \
324 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
325 then tmake_file=${cpu_type}/t-$rest; \
331 a29k-*-bsd* | a29k-*-sym1*)
332 tm_file="${tm_file} a29k/unix.h"
334 xmake_file=a29k/x-unix
337 a29k-*-udi | a29k-*-coff)
338 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
339 tmake_file=a29k/t-a29kbare
342 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
343 tmake_file=a29k/t-vx29k
344 extra_parts="crtbegin.o crtend.o"
345 thread_file='vxworks'
347 a29k-*-*) # Default a29k environment.
350 alpha*-*-linux-gnuecoff*)
351 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
352 target_cpu_default="MASK_GAS"
357 alpha*-*-linux-gnulibc1*)
358 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
359 target_cpu_default="MASK_GAS"
360 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
361 extra_parts="crtbegin.o crtend.o"
362 fixincludes=fixinc.wrap
365 if [[ x$enable_threads = xyes ]]; then
370 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
371 target_cpu_default="MASK_GAS"
372 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
373 extra_parts="crtbegin.o crtend.o"
375 fixincludes=Makefile.in
377 if [[ x$enable_threads = xyes ]]; then
382 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
383 target_cpu_default="MASK_GAS"
384 tmake_file="alpha/t-crtbe"
385 extra_parts="crtbegin.o crtend.o"
387 fixincludes=fixinc.wrap
392 if [[ x$stabs = xyes ]]
394 tm_file="${tm_file} dbx.h"
396 if [[ x$gas != xyes ]]
398 extra_passes="mips-tfile mips-tdump"
403 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
406 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
409 tm_file="${tm_file} alpha/osf.h"
410 # Some versions of OSF4 (specifically X4.0-9 296.7) have
411 # a broken tar, so we use cpio instead.
412 install_headers_dir=install-headers-cpio
416 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
417 target_cpu_default=MASK_SUPPORT_ARCH
422 tm_file="${tm_file} alpha/win-nt.h"
423 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
425 xmake_file=winnt/x-winnt
426 extra_host_objs=oldnames.o
427 extra_gcc_objs="spawnv.o oldnames.o"
428 fixincludes=fixinc.winnt
429 if [[ x$gnu_ld != xyes ]]
431 extra_programs=ld.exe
433 if [[ x$enable_threads = xyes ]]; then
439 xm_file="${xm_file} alpha/xm-vms.h"
440 tmake_file=alpha/t-vms
441 fixincludes=Makefile.in
444 extra_parts="crtinit.o crtfini.o"
446 arm-*-coff* | armel-*-coff*)
448 tmake_file=arm/t-bare
450 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
451 tm_file=arm/riscix1-1.h
454 arm-*-riscix*) # Acorn RISC machine
455 if [[ x$gas = xyes ]]
457 tm_file=arm/rix-gas.h
461 xmake_file=arm/x-riscix
462 tmake_file=arm/t-riscix
465 arm-semi-aout | armel-semi-aout)
467 tmake_file=arm/t-semi
468 fixincludes=Makefile.in # There is nothing to fix
470 arm-semi-aof | armel-semi-aof)
471 tm_file=arm/semiaof.h
472 tmake_file=arm/t-semiaof
473 fixincludes=Makefile.in # There is nothing to fix
477 xm_file="xm-siglist.h ${xm_file}"
478 tmake_file="t-netbsd arm/t-netbsd"
479 # On NetBSD, the headers are already okay, except for math.h.
480 fixincludes=fixinc.wrap
482 arm-*-linux-gnuaout*) # ARM GNU/Linux
485 tm_file=arm/linux-gas.h
486 tmake_file=arm/t-linux
487 fixincludes=Makefile.in
492 tmake_file=arm/t-bare
494 c1-convex-*) # Convex C1
497 fixincludes=Makefile.in
499 c2-convex-*) # Convex C2
502 fixincludes=Makefile.in
507 fixincludes=Makefile.in
512 fixincludes=Makefile.in
515 target_cpu_default=16
517 fixincludes=Makefile.in
519 clipper-intergraph-clix*)
520 tm_file="${tm_file} svr3.h clipper/clix.h"
521 xm_file=clipper/xm-clix.h
522 xmake_file=clipper/x-clix
523 extra_headers=va-clipper.h
524 extra_parts="crtbegin.o crtend.o"
525 install_headers_dir=install-headers-cpio
532 # This hasn't been upgraded to GCC 2.
533 # fx80-alliant-*) # Alliant FX/80
539 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
540 xm_file=pa/xm-papro.h
545 tm_file="${tm_file} pa/pa-osf.h"
547 fixincludes=Makefile.in
550 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
551 xm_file=pa/xm-papro.h
555 tm_file="${tm_file} pa/pa-osf.h"
557 fixincludes=Makefile.in
562 fixincludes=Makefile.in
566 fixincludes=Makefile.in
569 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
570 xm_file=pa/xm-pahpux.h
571 xmake_file=pa/x-pa-hpux
572 if [[ x$gas = xyes ]]
574 tm_file="${tm_file} pa/gas.h"
576 install_headers_dir=install-headers-cpio
579 hppa1.0-*-hpux8.0[[0-2]]*)
580 tm_file="${tm_file} pa/pa-hpux.h"
581 xm_file=pa/xm-pahpux.h
582 xmake_file=pa/x-pa-hpux
583 if [[ x$gas = xyes ]]
585 tm_file="${tm_file} pa/pa-gas.h"
587 tm_file="pa/pa-oldas.h ${tm_file}"
589 install_headers_dir=install-headers-cpio
592 hppa1.1-*-hpux8.0[[0-2]]*)
594 tm_file="${tm_file} pa/pa-hpux.h"
595 xm_file=pa/xm-pahpux.h
596 xmake_file=pa/x-pa-hpux
597 if [[ x$gas = xyes ]]
599 tm_file="${tm_file} pa/pa-gas.h"
601 tm_file="pa/pa-oldas.h ${tm_file}"
603 install_headers_dir=install-headers-cpio
608 tm_file="${tm_file} pa/pa-hpux.h"
609 xm_file=pa/xm-pahpux.h
610 xmake_file=pa/x-pa-hpux
611 if [[ x$gas = xyes ]]
613 tm_file="${tm_file} pa/pa-gas.h"
615 install_headers_dir=install-headers-cpio
619 tm_file="${tm_file} pa/pa-hpux.h"
620 xm_file=pa/xm-pahpux.h
621 xmake_file=pa/x-pa-hpux
622 if [[ x$gas = xyes ]]
624 tm_file="${tm_file} pa/pa-gas.h"
626 install_headers_dir=install-headers-cpio
631 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
632 xm_file=pa/xm-pahpux.h
633 xmake_file=pa/x-pa-hpux
635 if [[ x$gas = xyes ]]
637 tm_file="${tm_file} pa/pa-gas.h"
639 if [[ x$enable_threads = x ]]; then
640 enable_threads=$have_pthread_h
642 if [[ x$enable_threads = xyes ]]; then
644 tmake_file="${tmake_file} pa/t-dce-thr"
646 install_headers_dir=install-headers-cpio
650 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
651 xm_file=pa/xm-pahpux.h
652 xmake_file=pa/x-pa-hpux
653 if [[ x$gas = xyes ]]
655 tm_file="${tm_file} pa/pa-gas.h"
657 if [[ x$enable_threads = x ]]; then
658 enable_threads=$have_pthread_h
660 if [[ x$enable_threads = xyes ]]; then
662 tmake_file="${tmake_file} pa/t-dce-thr"
664 install_headers_dir=install-headers-cpio
669 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
670 xm_file=pa/xm-pahpux.h
671 xmake_file=pa/x-pa-hpux
672 if [[ x$gas = xyes ]]
674 tm_file="${tm_file} pa/pa-gas.h"
676 install_headers_dir=install-headers-cpio
680 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
681 xm_file=pa/xm-pahpux.h
682 xmake_file=pa/x-pa-hpux
683 if [[ x$gas = xyes ]]
685 tm_file="${tm_file} pa/pa-gas.h"
687 install_headers_dir=install-headers-cpio
692 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
693 xm_file=pa/xm-pahpux.h
694 xmake_file=pa/x-pa-hpux
695 if [[ x$gas = xyes ]]
697 tm_file="${tm_file} pa/pa-gas.h"
699 install_headers_dir=install-headers-cpio
703 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
704 xm_file=pa/xm-pahpux.h
705 xmake_file=pa/x-pa-hpux
706 if [[ x$gas = xyes ]]
708 tm_file="${tm_file} pa/pa-gas.h"
710 install_headers_dir=install-headers-cpio
716 fixincludes=Makefile.in
720 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
721 if [[ x$gas = xyes ]]
723 tm_file=i386/aix386.h
724 extra_parts="crtbegin.o crtend.o"
725 tmake_file=i386/t-crtstuff
727 tm_file=i386/aix386ng.h
730 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
732 xmake_file=i386/x-aix
734 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
735 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
736 xm_defines="USG POSIX SMALL_ARG_MAX"
737 xmake_file=i386/x-ncr3000
738 if [[ x$stabs = xyes -a x$gas = xyes ]]
740 tm_file=i386/sysv4gdb.h
744 extra_parts="crtbegin.o crtend.o"
745 tmake_file=i386/t-crtpic
749 xm_file=i386/xm-next.h
750 tmake_file=i386/t-next
751 xmake_file=i386/x-next
752 extra_objs=nextstep.o
753 if [[ x$enable_threads = xyes ]]; then
757 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
759 if [[ x$gas = xyes ]]
761 tm_file=i386/seq-gas.h
763 tm_file=i386/sequent.h
766 i[[34567]]86-sequent-ptx1*)
767 xm_defines="USG SVR3"
768 xmake_file=i386/x-sysv3
769 tm_file=i386/seq-sysv3.h
770 tmake_file=i386/t-crtstuff
771 fixincludes=fixinc.ptx
772 extra_parts="crtbegin.o crtend.o"
773 install_headers_dir=install-headers-cpio
775 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
776 xm_defines="USG SVR3"
777 xmake_file=i386/x-sysv3
778 tm_file=i386/seq2-sysv3.h
779 tmake_file=i386/t-crtstuff
780 extra_parts="crtbegin.o crtend.o"
781 fixincludes=fixinc.ptx
782 install_headers_dir=install-headers-cpio
784 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
785 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
786 xm_defines="USG POSIX SMALL_ARG_MAX"
788 tm_file=i386/ptx4-i.h
790 extra_parts="crtbegin.o crtend.o"
791 fixincludes=fixinc.ptx
792 install_headers_dir=install-headers-cpio
794 i386-sun-sunos*) # Sun i386 roadrunner
799 i[[34567]]86-wrs-vxworks*)
800 tm_file=i386/vxi386.h
801 tmake_file=i386/t-i386bare
803 i[[34567]]86-*-aout*)
804 tm_file=i386/i386-aout.h
805 tmake_file=i386/t-i386bare
807 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
808 tm_file=i386/bsd386.h
809 # tmake_file=t-libc-ok
812 tm_file=i386/386bsd.h
813 # tmake_file=t-libc-ok
814 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
817 i[[34567]]86-*-freebsdelf*)
818 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
819 # On FreeBSD, the headers are already ok, except for math.h.
820 fixincludes=fixinc.wrap
821 tmake_file=i386/t-freebsd
826 i[[34567]]86-*-freebsd*)
827 tm_file=i386/freebsd.h
828 # On FreeBSD, the headers are already ok, except for math.h.
829 fixincludes=fixinc.wrap
830 tmake_file=i386/t-freebsd
832 i[[34567]]86-*-netbsd*)
833 tm_file=i386/netbsd.h
834 # On NetBSD, the headers are already okay, except for math.h.
835 fixincludes=fixinc.wrap
838 i[[34567]]86-*-coff*)
839 tm_file=i386/i386-coff.h
840 tmake_file=i386/t-i386bare
842 i[[34567]]86-*-isc*) # 80386 running ISC system
843 xm_file="${xm_file} i386/xm-isc.h"
844 xm_defines="USG SVR3"
846 i[[34567]]86-*-isc[[34]]*)
847 xmake_file=i386/x-isc3
850 xmake_file=i386/x-isc
853 if [[ x$gas = xyes -a x$stabs = xyes ]]
855 tm_file=i386/iscdbx.h
856 tmake_file=i386/t-svr3dbx
857 extra_parts="svr3.ifile svr3z.ifile"
859 tm_file=i386/isccoff.h
860 tmake_file=i386/t-crtstuff
861 extra_parts="crtbegin.o crtend.o"
863 install_headers_dir=install-headers-cpio
865 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
866 # with a.out format using
868 xmake_file=x-linux-aout
869 tmake_file="t-linux-aout i386/t-crtstuff"
870 tm_file=i386/linux-oldld.h
871 fixincludes=Makefile.in #On Linux, the headers are ok already.
874 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
876 xmake_file=x-linux-aout
877 tmake_file="t-linux-aout i386/t-crtstuff"
878 tm_file=i386/linux-aout.h
879 fixincludes=Makefile.in #On Linux, the headers are ok already.
882 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
883 # with ELF format using the
884 # GNU/Linux C library 5
887 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
888 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
889 fixincludes=Makefile.in #On Linux, the headers are ok already.
891 if [[ x$enable_threads = xyes ]]; then
895 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
896 # with ELF format using glibc 2
897 # aka GNU/Linux C library 6
900 tmake_file="t-linux i386/t-crtstuff"
901 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
902 fixincludes=Makefile.in #On Linux, the headers are ok already.
904 if [[ x$enable_threads = xyes ]]; then
910 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
911 xm_file=i386/xm-go32.h
913 tmake_file=i386/t-go32
915 i[[34567]]86-pc-msdosdjgpp*)
916 xm_file=i386/xm-go32.h
918 tmake_file=i386/t-go32
922 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
925 fixincludes=Makefile.in
929 i[[34567]]86-*-lynxos*)
930 if [[ x$gas = xyes ]]
934 tm_file=i386/lynx-ng.h
936 xm_file=i386/xm-lynx.h
937 tmake_file=i386/t-i386bare
940 i[[34567]]86-*-mach*)
942 # tmake_file=t-libc-ok
945 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
946 if [[ x$elf = xyes ]]
948 tm_file=i386/osfelf.h
951 tm_file=i386/osfrose.h
954 xm_file="i386/xm-osf.h ${xm_file}"
955 xmake_file=i386/x-osfrose
956 tmake_file=i386/t-osf
959 i[[34567]]86-go32-rtems*)
961 xm_file=i386/xm-go32.h
962 tm_file=i386/go32-rtems.h
963 tmake_file="i386/t-go32 t-rtems"
965 i[[34567]]86-*-rtemself*)
967 tm_file=i386/rtemself.h
968 tmake_file="i386/t-i386bare t-rtems"
970 i[[34567]]86-*-rtems*)
973 tmake_file="i386/t-i386bare t-rtems"
975 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
976 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
977 xm_defines="USG SVR3"
978 xmake_file=i386/x-sco5
979 fixincludes=fixinc.sco
980 install_headers_dir=install-headers-cpio
982 tmake_file=i386/t-sco5
983 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
985 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
986 xm_file="${xm_file} i386/xm-sco.h"
987 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
988 xmake_file=i386/x-sco4
989 fixincludes=fixinc.sco
990 install_headers_dir=install-headers-cpio
991 if [[ x$stabs = xyes ]]
993 tm_file=i386/sco4dbx.h
994 tmake_file=i386/t-svr3dbx
995 extra_parts="svr3.ifile svr3z.rfile"
998 tmake_file=i386/t-crtstuff
999 extra_parts="crtbegin.o crtend.o"
1003 i[[34567]]86-*-sco*) # 80386 running SCO system
1004 xm_file=i386/xm-sco.h
1005 xmake_file=i386/x-sco
1006 install_headers_dir=install-headers-cpio
1007 if [[ x$stabs = xyes ]]
1009 tm_file=i386/scodbx.h
1010 tmake_file=i386/t-svr3dbx
1011 extra_parts="svr3.ifile svr3z.rfile"
1014 extra_parts="crtbegin.o crtend.o"
1015 tmake_file=i386/t-crtstuff
1019 i[[34567]]86-*-solaris2*)
1020 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1021 xm_defines="USG POSIX SMALL_ARG_MAX"
1022 if [[ x$stabs = xyes ]]
1024 tm_file=i386/sol2dbg.h
1028 tmake_file=i386/t-sol2
1029 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1032 *-*-solaris2.[[0-4]])
1033 fixincludes=fixinc.svr4;;
1035 fixincludes=fixinc.wrap;;
1037 if [[ x$enable_threads = xyes ]]; then
1038 thread_file='solaris'
1041 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1042 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1043 xm_defines="USG POSIX"
1044 tm_file=i386/sysv4.h
1045 if [[ x$stabs = xyes ]]
1047 tm_file="${tm_file} dbx.h"
1049 tmake_file=i386/t-crtpic
1051 extra_parts="crtbegin.o crtend.o"
1052 fixincludes=Makefile.in # The headers are just fine, thank you.
1054 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1055 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1056 xm_defines="USG POSIX SMALL_ARG_MAX"
1057 tm_file=i386/sysv4.h
1058 if [[ x$stabs = xyes ]]
1060 tm_file="${tm_file} dbx.h"
1062 tmake_file=i386/t-crtpic
1064 extra_parts="crtbegin.o crtend.o"
1066 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1068 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1069 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1070 fixincludes=Makefile.in #Don't do it on OSF/1
1071 if [[ x$stabs = xyes ]]
1073 tm_file=i386/osf1elfgdb.h
1075 tm_file=i386/osf1elf.h
1077 tmake_file=i386/t-osf1elf
1078 xmake_file=i386/x-osf1elf
1079 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1081 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1082 xm_defines="USG SVR3"
1083 xmake_file=i386/x-sysv3
1084 if [[ x$gas = xyes ]]
1086 if [[ x$stabs = xyes ]]
1088 tm_file=i386/svr3dbx.h
1089 tmake_file=i386/t-svr3dbx
1090 extra_parts="svr3.ifile svr3z.rfile"
1092 tm_file=i386/svr3gas.h
1093 extra_parts="crtbegin.o crtend.o"
1094 tmake_file=i386/t-crtstuff
1097 tm_file=i386/sysv3.h
1098 extra_parts="crtbegin.o crtend.o"
1099 tmake_file=i386/t-crtstuff
1102 i386-*-vsta) # Intel 80386's running VSTa kernel
1103 xm_file="${xm_file} i386/xm-vsta.h"
1105 tmake_file=i386/t-vsta
1106 xmake_file=i386/x-vsta
1108 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1109 xm_file="${xm_file} i386/xm-cygwin32.h"
1110 tmake_file=i386/t-cygwin32
1111 tm_file=i386/cygwin32.h
1112 xmake_file=i386/x-cygwin32
1114 fixincludes=Makefile.in
1115 if [[ x$enable_threads = xyes ]]; then
1120 i[[34567]]86-*-mingw32*)
1121 tm_file=i386/mingw32.h
1122 xm_file="${xm_file} i386/xm-mingw32.h"
1123 tmake_file=i386/t-cygwin32
1125 xmake_file=i386/x-cygwin32
1126 fixincludes=Makefile.in
1127 if [[ x$enable_threads = xyes ]]; then
1134 *minwg32crt* | *mingw32*)
1135 tm_file="${tm_file} i386/crtdll.h"
1139 i[[34567]]86-*-winnt3*)
1140 tm_file=i386/win-nt.h
1141 out_file=i386/i386.c
1142 xm_file="xm-winnt.h ${xm_file}"
1143 xmake_file=winnt/x-winnt
1144 tmake_file=i386/t-winnt
1145 extra_host_objs="winnt.o oldnames.o"
1146 extra_gcc_objs="spawnv.o oldnames.o"
1147 fixincludes=fixinc.winnt
1148 if [[ x$gnu_ld != xyes ]]
1150 extra_programs=ld.exe
1152 if [[ x$enable_threads = xyes ]]; then
1156 i[[34567]]86-dg-dgux*)
1157 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1158 xm_defines="USG POSIX"
1159 out_file=i386/dgux.c
1161 tmake_file=i386/t-dgux
1162 xmake_file=i386/x-dgux
1163 fixincludes=fixinc.dgux
1164 install_headers_dir=install-headers-cpio
1166 i860-alliant-*) # Alliant FX/2800
1167 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1168 xm_file="${xm_file}"
1169 xmake_file=i860/x-fx2800
1170 tmake_file=i860/t-fx2800
1171 extra_parts="crtbegin.o crtend.o"
1174 tm_file="${tm_file} i860/bsd.h"
1175 if [[ x$gas = xyes ]]
1177 tm_file="${tm_file} i860/bsd-gas.h"
1182 tm_file="${tm_file} i860/mach.h"
1183 tmake_file=t-libc-ok
1185 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1186 tm_file="${tm_file} svr3.h i860/paragon.h"
1187 xm_defines="USG SVR3"
1191 tm_file="${tm_file} svr3.h i860/sysv3.h"
1192 xm_defines="USG SVR3"
1193 xmake_file=i860/x-sysv3
1194 extra_parts="crtbegin.o crtend.o"
1197 tm_file="${tm_file} svr4.h i860/sysv4.h"
1198 xm_defines="USG SVR3"
1199 xmake_file=i860/x-sysv4
1201 extra_parts="crtbegin.o crtend.o"
1203 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1204 tm_file="${tm_file} i960/vx960.h"
1205 tmake_file=i960/t-vxworks960
1207 thread_file='vxworks'
1209 i960-wrs-vxworks5* | i960-wrs-vxworks)
1210 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1211 tmake_file=i960/t-vxworks960
1213 thread_file='vxworks'
1216 tm_file="${tm_file} i960/vx960.h"
1217 tmake_file=i960/t-vxworks960
1219 thread_file='vxworks'
1222 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1223 tmake_file=i960/t-960bare
1227 tmake_file="i960/t-960bare t-rtems"
1228 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1231 i960-*-*) # Default i960 environment.
1235 extra_parts="crtinit.o crtfini.o"
1237 m68000-convergent-sysv*)
1239 xm_file="m68k/xm-3b1.h ${xm_file}"
1242 extra_headers=math-68881.h
1244 m68000-hp-bsd*) # HP 9000/200 running BSD
1245 tm_file=m68k/hp2bsd.h
1246 xmake_file=m68k/x-hp2bsd
1248 extra_headers=math-68881.h
1250 m68000-hp-hpux*) # HP 9000 series 300
1251 xm_file="xm_alloca.h ${xm_file}"
1252 xm_defines="USG NO_SYS_SIGLIST"
1253 if [[ x$gas = xyes ]]
1255 xmake_file=m68k/x-hp320g
1256 tm_file=m68k/hp310g.h
1258 xmake_file=m68k/x-hp320
1259 tm_file=m68k/hp310.h
1261 install_headers_dir=install-headers-cpio
1263 extra_headers=math-68881.h
1268 extra_headers=math-68881.h
1271 tm_file=m68k/sun2o4.h
1273 extra_headers=math-68881.h
1276 xm_file="m68k/xm-3b1.h ${xm_file}"
1278 if [[ x$gas = xyes ]]
1285 extra_headers=math-68881.h
1287 m68k-apple-aux*) # Apple Macintosh running A/UX
1288 xm_defines="USG AUX"
1289 tmake_file=m68k/t-aux
1290 install_headers_dir=install-headers-cpio
1291 extra_headers=math-68881.h
1292 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1294 if [[ "$gnu_ld" = yes ]]
1296 tm_file="${tm_file} m68k/auxgld.h"
1298 tm_file="${tm_file} m68k/auxld.h"
1300 if [[ "$gas" = yes ]]
1302 tm_file="${tm_file} m68k/auxgas.h"
1304 tm_file="${tm_file} m68k/auxas.h"
1306 tm_file="${tm_file} m68k/a-ux.h"
1309 tm_file=m68k/apollo68.h
1310 xmake_file=m68k/x-apollo68
1312 extra_headers=math-68881.h
1314 m68k-altos-sysv*) # Altos 3068
1315 if [[ x$gas = xyes ]]
1317 tm_file=m68k/altos3068.h
1320 echo "The Altos is supported only with the GNU assembler" 1>&2
1323 extra_headers=math-68881.h
1325 m68k-bull-sysv*) # Bull DPX/2
1326 if [[ x$gas = xyes ]]
1328 if [[ x$stabs = xyes ]]
1330 tm_file=m68k/dpx2cdbx.h
1332 tm_file=m68k/dpx2g.h
1337 xm_file="xm-alloca.h ${xm_file}"
1339 xmake_file=m68k/x-dpx2
1341 extra_headers=math-68881.h
1343 m68k-atari-sysv4*) # Atari variant of V.4.
1344 tm_file=m68k/atari.h
1345 xm_file="xm-alloca.h ${xm_file}"
1346 xm_defines="USG FULL_PROTOTYPES"
1348 extra_parts="crtbegin.o crtend.o"
1349 extra_headers=math-68881.h
1351 m68k-motorola-sysv*)
1352 tm_file=m68k/mot3300.h
1353 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1354 xm_defines=NO_SYS_SIGLIST
1355 if [[ x$gas = xyes ]]
1357 xmake_file=m68k/x-mot3300-gas
1358 if [[ x$gnu_ld = xyes ]]
1360 tmake_file=m68k/t-mot3300-gald
1362 tmake_file=m68k/t-mot3300-gas
1366 xmake_file=m68k/x-mot3300
1367 if [[ x$gnu_ld = xyes ]]
1369 tmake_file=m68k/t-mot3300-gld
1371 tmake_file=m68k/t-mot3300
1375 gdb_needs_out_file_path=yes
1376 extra_parts="crt0.o mcrt0.o"
1377 extra_headers=math-68881.h
1379 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1380 tm_file=m68k/tower-as.h
1381 xm_defines="USG SVR3"
1382 xmake_file=m68k/x-tower
1383 extra_parts="crtbegin.o crtend.o"
1384 extra_headers=math-68881.h
1387 tm_file=m68k/plexus.h
1388 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1391 extra_headers=math-68881.h
1395 xm_file="xm-alloca.h ${xm_file}"
1397 extra_headers=math-68881.h
1400 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1401 xm_defines="USG unos"
1402 xmake_file=m68k/x-crds
1405 extra_headers=math-68881.h
1407 m68k-cbm-sysv4*) # Commodore variant of V.4.
1409 xm_file="xm-alloca.h ${xm_file}"
1410 xm_defines="USG FULL_PROTOTYPES"
1411 xmake_file=m68k/x-amix
1413 extra_parts="crtbegin.o crtend.o"
1414 extra_headers=math-68881.h
1417 tm_file=m68k/ccur-GAS.h
1418 xmake_file=m68k/x-ccur
1419 extra_headers=math-68881.h
1422 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1423 tm_file=m68k/hp3bsd44.h
1424 xmake_file=m68k/x-hp3bsd44
1426 extra_headers=math-68881.h
1428 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1429 tm_file=m68k/hp3bsd.h
1431 extra_headers=math-68881.h
1434 if [[ x$with_fp = xno ]]
1436 tm_file=m68k/isi-nfp.h
1441 extra_headers=math-68881.h
1443 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1444 xm_file="xm_alloca.h ${xm_file}"
1445 xm_defines="USG NO_SYS_SIGLIST"
1446 if [[ x$gas = xyes ]]
1448 xmake_file=m68k/x-hp320g
1449 tm_file=m68k/hp320g.h
1451 xmake_file=m68k/x-hp320
1452 tm_file=m68k/hpux7.h
1454 install_headers_dir=install-headers-cpio
1456 extra_headers=math-68881.h
1458 m68k-hp-hpux*) # HP 9000 series 300
1459 xm_file="xm_alloca.h ${xm_file}"
1460 xm_defines="USG NO_SYS_SIGLIST"
1461 if [[ x$gas = xyes ]]
1463 xmake_file=m68k/x-hp320g
1464 tm_file=m68k/hp320g.h
1466 xmake_file=m68k/x-hp320
1467 tm_file=m68k/hp320.h
1469 install_headers_dir=install-headers-cpio
1471 extra_headers=math-68881.h
1474 tm_file=m68k/sun3mach.h
1476 extra_headers=math-68881.h
1479 if [[ x$gas = xyes ]]
1481 tm_file=m68k/news3gas.h
1483 tm_file=m68k/news3.h
1486 extra_headers=math-68881.h
1488 m68k-sony-bsd* | m68k-sony-newsos*)
1489 if [[ x$gas = xyes ]]
1491 tm_file=m68k/newsgas.h
1496 extra_headers=math-68881.h
1498 m68k-next-nextstep2*)
1499 tm_file=m68k/next21.h
1500 xm_file="m68k/xm-next.h ${xm_file}"
1501 tmake_file=m68k/t-next
1502 xmake_file=m68k/x-next
1503 extra_objs=nextstep.o
1504 extra_headers=math-68881.h
1507 m68k-next-nextstep3*)
1509 xm_file="m68k/xm-next.h ${xm_file}"
1510 tmake_file=m68k/t-next
1511 xmake_file=m68k/x-next
1512 extra_objs=nextstep.o
1513 extra_headers=math-68881.h
1514 if [[ x$enable_threads = xyes ]]; then
1519 if [[ x$with_fp = xno ]]
1521 tm_file=m68k/sun3n3.h
1523 tm_file=m68k/sun3o3.h
1526 extra_headers=math-68881.h
1528 m68k-sun-sunos*) # For SunOS 4 (the default).
1529 if [[ x$with_fp = xno ]]
1531 tm_file=m68k/sun3n.h
1536 extra_headers=math-68881.h
1539 tm_file=m68k/vxm68k.h
1540 tmake_file=m68k/t-vxworks68
1541 extra_headers=math-68881.h
1542 thread_file='vxworks'
1545 tmake_file=m68k/t-m68kbare
1546 tm_file="m68k/m68k-aout.h libgloss.h"
1547 extra_headers=math-68881.h
1550 tmake_file=m68k/t-m68kbare
1551 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1552 extra_headers=math-68881.h
1555 if [[ x$gas = xyes ]]
1559 tm_file=m68k/lynx-ng.h
1561 xm_file=m68k/xm-lynx.h
1563 tmake_file=m68k/t-lynx
1564 extra_headers=math-68881.h
1567 tm_file=m68k/netbsd.h
1568 # On NetBSD, the headers are already okay, except for math.h.
1569 fixincludes=fixinc.wrap
1572 m68k-*-sysv3*) # Motorola m68k's running system V.3
1573 xm_file="xm-alloca.h ${xm_file}"
1575 xmake_file=m68k/x-m68kv
1576 extra_parts="crtbegin.o crtend.o"
1577 extra_headers=math-68881.h
1579 m68k-*-sysv4*) # Motorola m68k's running system V.4
1580 tm_file=m68k/m68kv4.h
1581 xm_file="xm-alloca.h ${xm_file}"
1584 extra_parts="crtbegin.o crtend.o"
1585 extra_headers=math-68881.h
1587 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1590 tm_file=m68k/linux-aout.h
1591 tmake_file="t-linux-aout m68k/t-linux-aout"
1592 fixincludes=Makefile.in # The headers are ok already.
1593 extra_headers=math-68881.h
1596 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1597 # with ELF format using the
1598 # GNU/Linux C library 5
1600 tm_file=m68k/linux.h
1601 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1602 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1603 fixincludes=Makefile.in # The headers are ok already.
1604 extra_headers=math-68881.h
1607 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1608 # with ELF format using glibc 2
1609 # aka the GNU/Linux C library 6.
1611 tm_file=m68k/linux.h
1612 tmake_file="t-linux m68k/t-linux"
1613 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1614 fixincludes=Makefile.in # The headers are ok already.
1615 extra_headers=math-68881.h
1617 if [[ x$enable_threads = xyes ]]; then
1622 tmake_file=m68k/t-m68kbare
1623 tm_file=m68k/m68k-psos.h
1624 extra_headers=math-68881.h
1627 tmake_file="m68k/t-m68kbare t-rtems"
1628 tm_file=m68k/rtems.h
1629 extra_headers=math-68881.h
1635 tm_file=m88k/dguxbcs.h
1636 tmake_file=m88k/t-dguxbcs
1640 tmake_file=m88k/t-dgux
1643 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1644 xmake_file=m88k/x-dgux
1645 if [[ x$gas = xyes ]]
1647 tmake_file=m88k/t-dgux-gas
1649 fixincludes=fixinc.dgux
1651 m88k-dolphin-sysv3*)
1652 tm_file=m88k/dolph.h
1653 extra_parts="crtbegin.o crtend.o"
1654 xm_file="m88k/xm-sysv3.h ${xm_file}"
1655 xmake_file=m88k/x-dolph
1656 if [[ x$gas = xyes ]]
1658 tmake_file=m88k/t-m88k-gas
1661 m88k-tektronix-sysv3)
1662 tm_file=m88k/tekXD88.h
1663 extra_parts="crtbegin.o crtend.o"
1664 xm_file="m88k/xm-sysv3.h ${xm_file}"
1665 xmake_file=m88k/x-tekXD88
1666 if [[ x$gas = xyes ]]
1668 tmake_file=m88k/t-m88k-gas
1672 tm_file=m88k/m88k-aout.h
1675 tm_file=m88k/m88k-coff.h
1676 tmake_file=m88k/t-bug
1680 extra_parts="crtbegin.o crtend.o"
1681 if [[ x$gas = xyes ]]
1683 tmake_file=m88k/t-luna-gas
1685 tmake_file=m88k/t-luna
1689 tm_file=m88k/sysv3.h
1690 extra_parts="crtbegin.o crtend.o"
1691 xm_file="m88k/xm-sysv3.h ${xm_file}"
1692 xmake_file=m88k/x-sysv3
1693 if [[ x$gas = xyes ]]
1695 tmake_file=m88k/t-m88k-gas
1699 tm_file=m88k/sysv4.h
1700 extra_parts="crtbegin.o crtend.o"
1701 xmake_file=m88k/x-sysv4
1702 tmake_file=m88k/t-sysv4
1704 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1705 tm_file=mips/iris6.h
1706 xm_file=mips/xm-iris6.h
1707 fixincludes=fixinc.irix
1708 xmake_file=mips/x-iris6
1709 tmake_file=mips/t-iris6
1710 if [[ x$enable_threads = xyes ]]; then
1715 tm_file="mips/elf.h libgloss.h"
1716 tmake_file=mips/t-ecoff
1719 extra_parts="crtbegin.o crtend.o"
1720 # thread_file='vxworks'
1722 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1723 tm_file="mips/iris6.h mips/cross64.h"
1724 xm_defines="USG HAVE_INTTYPES_H"
1725 fixincludes=Makefile.in
1726 xmake_file=mips/x-iris
1727 tmake_file=mips/t-cross64
1728 # See comment in mips/iris[56].h files.
1730 if [[ x$enable_threads = xyes ]]; then
1735 if [[ x$gas = xyes ]]
1737 if [[ x$stabs = xyes ]]
1739 tm_file=mips/iris5gdb.h
1741 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1744 tm_file=mips/sni-svr4.h
1747 xmake_file=mips/x-sni-svr4
1748 tmake_file=mips/t-mips-gas
1749 if [[ x$gnu_ld != xyes ]]
1754 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1755 if [[ x$gas = xyes ]]
1757 tm_file="mips/iris5.h mips/iris5gas.h"
1758 if [[ x$stabs = xyes ]]
1760 tm_file="${tm_file} dbx.h"
1763 tm_file=mips/iris5.h
1765 xm_defines="USG HAVE_INTTYPES_H"
1766 fixincludes=fixinc.irix
1767 xmake_file=mips/x-iris
1768 # mips-tfile doesn't work yet
1769 tmake_file=mips/t-mips-gas
1770 # See comment in mips/iris5.h file.
1772 if [[ x$enable_threads = xyes ]]; then
1776 mips-sgi-irix4loser*) # Mostly like a MIPS.
1777 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1778 if [[ x$stabs = xyes ]]; then
1779 tm_file="${tm_file} dbx.h"
1782 xmake_file=mips/x-iris
1783 if [[ x$gas = xyes ]]
1785 tmake_file=mips/t-mips-gas
1787 extra_passes="mips-tfile mips-tdump"
1789 if [[ x$gnu_ld != xyes ]]
1793 if [[ x$enable_threads = xyes ]]; then
1797 mips-sgi-irix4*) # Mostly like a MIPS.
1798 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1799 if [[ x$stabs = xyes ]]; then
1800 tm_file="${tm_file} dbx.h"
1803 xmake_file=mips/x-iris
1804 if [[ x$gas = xyes ]]
1806 tmake_file=mips/t-mips-gas
1808 extra_passes="mips-tfile mips-tdump"
1810 if [[ x$gnu_ld != xyes ]]
1814 if [[ x$enable_threads = xyes ]]; then
1818 mips-sgi-*) # Mostly like a MIPS.
1819 tm_file="mips/iris3.h ${tm_file}"
1820 if [[ x$stabs = xyes ]]; then
1821 tm_file="${tm_file} dbx.h"
1824 xmake_file=mips/x-iris3
1825 if [[ x$gas = xyes ]]
1827 tmake_file=mips/t-mips-gas
1829 extra_passes="mips-tfile mips-tdump"
1831 if [[ x$gnu_ld != xyes ]]
1836 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1837 tm_file="mips/osfrose.h ${tm_file}"
1838 xmake_file=mips/x-osfrose
1839 tmake_file=mips/t-osfrose
1840 extra_objs=halfpic.o
1843 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1844 tm_file=mips/dec-osf1.h
1845 if [[ x$stabs = xyes ]]; then
1846 tm_file="${tm_file} dbx.h"
1848 xmake_file=mips/x-dec-osf1
1849 if [[ x$gas = xyes ]]
1851 tmake_file=mips/t-mips-gas
1853 tmake_file=mips/t-ultrix
1854 extra_passes="mips-tfile mips-tdump"
1856 if [[ x$gnu_ld != xyes ]]
1861 mips-dec-bsd*) # Decstation running 4.4 BSD
1862 tm_file=mips/dec-bsd.h
1864 if [[ x$gas = xyes ]]
1866 tmake_file=mips/t-mips-gas
1868 tmake_file=mips/t-ultrix
1869 extra_passes="mips-tfile mips-tdump"
1871 if [[ x$gnu_ld != xyes ]]
1876 mips-dec-netbsd*) # Decstation running NetBSD
1877 tm_file=mips/netbsd.h
1878 # On NetBSD, the headers are already okay, except for math.h.
1879 fixincludes=fixinc.wrap
1882 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1883 tm_file="mips/news4.h ${tm_file}"
1884 if [[ x$stabs = xyes ]]; then
1885 tm_file="${tm_file} dbx.h"
1887 if [[ x$gas = xyes ]]
1889 tmake_file=mips/t-mips-gas
1891 extra_passes="mips-tfile mips-tdump"
1893 if [[ x$gnu_ld != xyes ]]
1897 xmake_file=mips/x-sony
1899 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1900 # That is based on svr4.
1901 # t-svr4 is not right because this system doesn't use ELF.
1902 tm_file="mips/news5.h ${tm_file}"
1903 if [[ x$stabs = xyes ]]; then
1904 tm_file="${tm_file} dbx.h"
1906 xm_file="xm-siglist.h ${xm_file}"
1908 if [[ x$gas = xyes ]]
1910 tmake_file=mips/t-mips-gas
1912 extra_passes="mips-tfile mips-tdump"
1914 if [[ x$gnu_ld != xyes ]]
1919 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1920 tm_file="mips/svr4-5.h mips/svr4-t.h"
1921 if [[ x$stabs = xyes ]]; then
1922 tm_file="${tm_file} dbx.h"
1924 xm_file="xm-siglist.h ${xm_file}"
1926 xmake_file=mips/x-sysv
1927 if [[ x$gas = xyes ]]
1929 tmake_file=mips/t-mips-gas
1930 extra_parts="crtbegin.o crtend.o"
1932 tmake_file=mips/t-mips
1933 extra_passes="mips-tfile mips-tdump"
1935 if [[ x$gnu_ld != xyes ]]
1940 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1941 tm_file="mips/ultrix.h ${tm_file}"
1942 if [[ x$stabs = xyes ]]; then
1943 tm_file="${tm_file} dbx.h"
1945 xmake_file=mips/x-ultrix
1946 if [[ x$gas = xyes ]]
1948 tmake_file=mips/t-mips-gas
1950 tmake_file=mips/t-ultrix
1951 extra_passes="mips-tfile mips-tdump"
1953 if [[ x$gnu_ld != xyes ]]
1958 mips-*-riscos[[56789]]bsd*)
1959 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1960 if [[ x$stabs = xyes ]]; then
1961 tm_file="${tm_file} dbx.h"
1963 if [[ x$gas = xyes ]]
1965 tmake_file=mips/t-bsd-gas
1967 tmake_file=mips/t-bsd
1968 extra_passes="mips-tfile mips-tdump"
1970 if [[ x$gnu_ld != xyes ]]
1975 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1976 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
1977 if [[ x$stabs = xyes ]]; then
1978 tm_file="${tm_file} dbx.h"
1980 if [[ x$gas = xyes ]]
1982 tmake_file=mips/t-bsd-gas
1984 tmake_file=mips/t-bsd
1985 extra_passes="mips-tfile mips-tdump"
1987 if [[ x$gnu_ld != xyes ]]
1992 mips-*-riscos[[56789]]sysv4*)
1993 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1994 if [[ x$stabs = xyes ]]; then
1995 tm_file="${tm_file} dbx.h"
1997 xm_file="xm-siglist.h ${xm_file}"
1998 xmake_file=mips/x-sysv
1999 if [[ x$gas = xyes ]]
2001 tmake_file=mips/t-svr4-gas
2003 tmake_file=mips/t-svr4
2004 extra_passes="mips-tfile mips-tdump"
2006 if [[ x$gnu_ld != xyes ]]
2011 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
2012 tm_file="mips/svr4-4.h ${tm_file}"
2013 if [[ x$stabs = xyes ]]; then
2014 tm_file="${tm_file} dbx.h"
2017 xmake_file=mips/x-sysv
2018 if [[ x$gas = xyes ]]
2020 tmake_file=mips/t-svr4-gas
2022 tmake_file=mips/t-svr4
2023 extra_passes="mips-tfile mips-tdump"
2025 if [[ x$gnu_ld != xyes ]]
2030 mips-*-riscos[[56789]]sysv*)
2031 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2032 if [[ x$stabs = xyes ]]; then
2033 tm_file="${tm_file} dbx.h"
2036 xmake_file=mips/x-sysv
2037 if [[ x$gas = xyes ]]
2039 tmake_file=mips/t-svr3-gas
2041 tmake_file=mips/t-svr3
2042 extra_passes="mips-tfile mips-tdump"
2044 if [[ x$gnu_ld != xyes ]]
2049 mips-*-sysv* | mips-*-riscos*sysv*)
2050 tm_file="mips/svr3-4.h ${tm_file}"
2051 if [[ x$stabs = xyes ]]; then
2052 tm_file="${tm_file} dbx.h"
2055 xmake_file=mips/x-sysv
2056 if [[ x$gas = xyes ]]
2058 tmake_file=mips/t-svr3-gas
2060 tmake_file=mips/t-svr3
2061 extra_passes="mips-tfile mips-tdump"
2063 if [[ x$gnu_ld != xyes ]]
2068 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2069 tm_file=mips/mips-5.h
2070 if [[ x$stabs = xyes ]]; then
2071 tm_file="${tm_file} dbx.h"
2073 if [[ x$gas = xyes ]]
2075 tmake_file=mips/t-mips-gas
2077 extra_passes="mips-tfile mips-tdump"
2079 if [[ x$gnu_ld != xyes ]]
2087 tm_file=mips/ecoffl.h
2088 if [[ x$stabs = xyes ]]; then
2089 tm_file="${tm_file} dbx.h"
2091 tmake_file=mips/t-ecoff
2094 tm_file="gofast.h mips/ecoff.h"
2095 if [[ x$stabs = xyes ]]; then
2096 tm_file="${tm_file} dbx.h"
2098 tmake_file=mips/t-ecoff
2101 tm_file="mips/elfl.h libgloss.h"
2102 tmake_file=mips/t-ecoff
2105 tm_file="mips/elf.h libgloss.h"
2106 tmake_file=mips/t-ecoff
2109 tm_file="mips/elfl64.h libgloss.h"
2110 tmake_file=mips/t-ecoff
2112 mips64orionel-*-elf*)
2113 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2114 tmake_file=mips/t-ecoff
2117 tm_file="mips/elf64.h libgloss.h"
2118 tmake_file=mips/t-ecoff
2121 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2122 tmake_file=mips/t-ecoff
2124 mips64orion-*-rtems*)
2125 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2126 tmake_file="mips/t-ecoff t-rtems"
2129 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2130 tmake_file=mips/t-r3900
2133 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2134 tmake_file=mips/t-r3900
2136 mips-*-*) # Default MIPS RISC-OS 4.0.
2137 if [[ x$stabs = xyes ]]; then
2138 tm_file="${tm_file} dbx.h"
2140 if [[ x$gas = xyes ]]
2142 tmake_file=mips/t-mips-gas
2144 extra_passes="mips-tfile mips-tdump"
2146 if [[ x$gnu_ld != xyes ]]
2153 tm_file="mn10200/mn10200.h"
2154 if [[ x$stabs = xyes ]]
2156 tm_file="${tm_file} dbx.h"
2162 tm_file="mn10300/mn10300.h"
2163 if [[ x$stabs = xyes ]]
2165 tm_file="${tm_file} dbx.h"
2170 tm_file=ns32k/encore.h
2174 tm_file=ns32k/sequent.h
2178 tm_file=ns32k/tek6100.h
2182 tm_file=ns32k/tek6200.h
2185 # This has not been updated to GCC 2.
2188 # xmake_file=ns32k/x-genix
2189 # tm_file=ns32k/genix.h
2193 tm_file=ns32k/merlin.h
2197 tm_file=ns32k/pc532-mach.h
2201 tm_file=ns32k/pc532-min.h
2202 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2206 ns32k-pc532-netbsd*)
2207 tm_file=ns32k/netbsd.h
2208 # On NetBSD, the headers are already okay, except for math.h.
2209 fixincludes=fixinc.wrap
2213 tm_file="${tm_file} pdp11/2bsd.h"
2219 xmake_file=pyr/x-pyr
2226 xmake_file=romp/x-mach
2231 tm_file=rs6000/beos.h
2232 xm_file=rs6000/xm-beos.h
2233 tmake_file=rs6000/t-beos
2234 xmake_file=rs6000/x-beos
2236 powerpc-*-sysv* | powerpc-*-elf*)
2237 tm_file=rs6000/sysv4.h
2238 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2239 xm_defines="USG POSIX"
2240 extra_headers=ppc-asm.h
2241 if [[ x$gas = xyes ]]
2243 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2245 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2247 xmake_file=rs6000/x-sysv4
2250 tm_file=rs6000/eabiaix.h
2251 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2252 fixincludes=Makefile.in
2253 extra_headers=ppc-asm.h
2256 tm_file=rs6000/eabisim.h
2257 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2258 fixincludes=Makefile.in
2259 extra_headers=ppc-asm.h
2262 tm_file=rs6000/eabi.h
2263 if [[ x$gas = xyes ]]
2265 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2267 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2269 fixincludes=Makefile.in
2270 extra_headers=ppc-asm.h
2273 tm_file=rs6000/rtems.h
2274 if [[ x$gas = xyes ]]
2276 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2278 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2280 fixincludes=Makefile.in
2281 extra_headers=ppc-asm.h
2283 powerpc-*-linux-gnulibc1)
2284 tm_file=rs6000/linux.h
2285 xm_file=rs6000/xm-sysv4.h
2286 out_file=rs6000/rs6000.c
2287 if [[ x$gas = xyes ]]
2289 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2291 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2294 fixincludes=Makefile.in
2295 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2296 extra_headers=ppc-asm.h
2297 if [[ x$enable_threads = xyes ]]; then
2301 powerpc-*-linux-gnu*)
2302 tm_file=rs6000/linux.h
2303 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2304 xm_defines="USG ${xm_defines}"
2305 out_file=rs6000/rs6000.c
2306 if [[ x$gas = xyes ]]
2308 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2310 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2313 fixincludes=Makefile.in
2314 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2315 extra_headers=ppc-asm.h
2316 if [[ x$enable_threads = xyes ]]; then
2320 powerpc-wrs-vxworks*)
2322 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2323 xm_defines="USG POSIX"
2324 tm_file=rs6000/vxppc.h
2325 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2326 extra_headers=ppc-asm.h
2327 thread_file='vxworks'
2329 powerpcle-*-sysv* | powerpcle-*-elf*)
2330 tm_file=rs6000/sysv4le.h
2331 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2332 xm_defines="USG POSIX"
2333 if [[ x$gas = xyes ]]
2335 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2337 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2339 xmake_file=rs6000/x-sysv4
2340 extra_headers=ppc-asm.h
2342 powerpcle-*-eabisim*)
2343 tm_file=rs6000/eabilesim.h
2344 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2345 fixincludes=Makefile.in
2346 extra_headers=ppc-asm.h
2349 tm_file=rs6000/eabile.h
2350 if [[ x$gas = xyes ]]
2352 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2354 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2356 fixincludes=Makefile.in
2357 extra_headers=ppc-asm.h
2359 powerpcle-*-winnt* )
2360 tm_file=rs6000/win-nt.h
2361 tmake_file=rs6000/t-winnt
2363 fixincludes=Makefile.in
2364 if [[ x$enable_threads = xyes ]]; then
2367 extra_headers=ppc-asm.h
2369 powerpcle-*-pe | powerpcle-*-cygwin32)
2370 tm_file=rs6000/cygwin32.h
2371 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2372 tmake_file=rs6000/t-winnt
2373 xmake_file=rs6000/x-cygwin32
2375 fixincludes=Makefile.in
2376 if [[ x$enable_threads = xyes ]]; then
2380 extra_headers=ppc-asm.h
2382 powerpcle-*-solaris2*)
2383 tm_file=rs6000/sol2.h
2384 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2385 xm_defines="USG POSIX"
2386 if [[ x$gas = xyes ]]
2388 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2390 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2392 xmake_file=rs6000/x-sysv4
2394 *-*-solaris2.[[0-4]])
2395 fixincludes=fixinc.svr4;;
2397 fixincludes=fixinc.wrap;;
2399 extra_headers=ppc-asm.h
2401 rs6000-ibm-aix3.[[01]]*)
2402 tm_file=rs6000/aix31.h
2403 xmake_file=rs6000/x-aix31
2406 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2407 tm_file=rs6000/aix3newas.h
2408 if [[ x$host != x$target ]]
2410 tmake_file=rs6000/t-xnewas
2412 tmake_file=rs6000/t-newas
2416 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2417 tm_file=rs6000/aix41.h
2418 if [[ x$host != x$target ]]
2420 tmake_file=rs6000/t-xnewas
2422 tmake_file=rs6000/t-newas
2424 xmake_file=rs6000/x-aix31
2434 tm_file=rs6000/mach.h
2435 xm_file="${xm_file} rs6000/xm-mach.h"
2436 xmake_file=rs6000/x-mach
2440 tm_file=rs6000/lynx.h
2441 xm_file=rs6000/xm-lynx.h
2442 tmake_file=rs6000/t-rs6000
2443 xmake_file=rs6000/x-lynx
2451 tmake_file="sh/t-sh t-rtems"
2460 xm_file="xm-alloca.h ${xm_file}"
2463 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2464 tm_file=sparc/vxsparc.h
2465 tmake_file=sparc/t-vxsparc
2467 thread_file='vxworks'
2470 tmake_file=sparc/t-sparcbare
2471 tm_file="sparc/aout.h libgloss.h"
2474 tm_file=sparc/netbsd.h
2475 # On NetBSD, the headers are already okay, except for math.h.
2476 fixincludes=fixinc.wrap
2484 tmake_file=sparc/t-elf
2485 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2489 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2490 xm_file="${xm_file} sparc/xm-linux.h"
2491 tm_file=sparc/linux-aout.h
2493 fixincludes=Makefile.in #On Linux, the headers are ok already.
2496 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2497 xm_file="${xm_file} sparc/xm-linux.h"
2499 tm_file=sparc/linux.h
2500 tmake_file="t-linux t-linux-gnulibc1"
2501 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2502 fixincludes=Makefile.in #On Linux, the headers are ok already.
2505 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2506 xm_file="${xm_file} sparc/xm-linux.h"
2508 tm_file=sparc/linux.h
2509 tmake_file="t-linux"
2510 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2511 fixincludes=Makefile.in #On Linux, the headers are ok already.
2513 if [[ x$enable_threads = xyes ]]; then
2518 if [[ x$gas = xyes ]]
2520 tm_file=sparc/lynx.h
2522 tm_file=sparc/lynx-ng.h
2524 xm_file=sparc/xm-lynx.h
2525 tmake_file=sparc/t-sunos41
2529 tmake_file="sparc/t-sparcbare t-rtems"
2530 tm_file=sparc/rtems.h
2533 if [[ x$gnu_ld = xyes ]]
2535 tm_file=sparc/sol2.h
2537 tm_file=sparc/sol2-sld.h
2539 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2540 xm_defines="USG POSIX"
2541 tmake_file=sparc/t-sol2
2542 xmake_file=sparc/x-sysv4
2543 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2545 *-*-solaris2.[[0-4]])
2546 fixincludes=fixinc.svr4;;
2548 fixincludes=fixinc.wrap;;
2551 if [[ x${enable_threads} = x ]]; then
2552 enable_threads=$have_pthread_h
2553 if [[ x${enable_threads} = x ]]; then
2554 enable_threads=$have_thread_h
2557 if [[ x${enable_threads} = xyes ]]; then
2558 if [[ x${have_pthread_h} = xyes ]]; then
2561 thread_file='solaris'
2566 tm_file=sparc/sunos4.h
2567 tmake_file=sparc/t-sunos40
2571 tm_file=sparc/sunos4.h
2572 tmake_file=sparc/t-sunos41
2574 if [[ x$gas = xyes ]]; then
2575 tm_file="${tm_file} sparc/sun4gas.h"
2579 tm_file=sparc/sun4o3.h
2583 tm_file=sparc/sysv4.h
2584 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2585 xm_defines="USG POSIX"
2587 xmake_file=sparc/x-sysv4
2588 extra_parts="crtbegin.o crtend.o"
2591 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2592 xm_defines="USG POSIX"
2593 tm_file=sparc/vxsim.h
2594 tmake_file=sparc/t-vxsparc
2595 xmake_file=sparc/x-sysv4
2598 tm_file="sparc/splet.h libgloss.h"
2599 tmake_file=sparc/t-splet
2602 tm_file="sparc/litecoff.h libgloss.h"
2603 tmake_file=sparc/t-sparclite
2606 tm_file="sparc/lite.h aoutos.h libgloss.h"
2607 tmake_file=sparc/t-sparclite
2610 tmake_file=sparc/t-sp64
2611 tm_file=sparc/sp64-aout.h
2614 tmake_file=sparc/t-sp64
2615 tm_file=sparc/sp64-elf.h
2616 extra_parts="crtbegin.o crtend.o"
2618 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2619 tmake_file=sparc/t-sp64
2620 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2621 tm_file=sparc/linux64.h
2623 fixincludes=Makefile.in # The headers are ok already.
2626 # This hasn't been upgraded to GCC 2.
2627 # tahoe-harris-*) # Harris tahoe, using COFF.
2628 # tm_file=tahoe/harris.h
2630 # tahoe-*-bsd*) # tahoe running BSD
2632 thumb-*-coff* | thumbel-*-coff*)
2634 out_file=arm/thumb.c
2635 xm_file=arm/xm-thumb.h
2636 md_file=arm/thumb.md
2637 tmake_file=arm/t-thumb
2639 # This hasn't been upgraded to GCC 2.
2646 tm_file="v850/v850.h"
2647 xm_file="v850/xm-v850.h"
2648 tmake_file=v850/t-v850
2649 if [[ x$stabs = xyes ]]
2651 tm_file="${tm_file} dbx.h"
2655 vax-*-bsd*) # vaxen running BSD
2659 vax-*-sysv*) # vaxen running system V
2660 tm_file="${tm_file} vax/vaxv.h"
2665 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2666 # On NetBSD, the headers are already okay, except for math.h.
2667 fixincludes=fixinc.wrap
2671 vax-*-ultrix*) # vaxen running ultrix
2672 tm_file="${tm_file} vax/ultrix.h"
2676 vax-*-vms*) # vaxen running VMS
2677 xm_file=vax/xm-vms.h
2681 vax-*-*) # vax default entry
2685 xm_file="${xm_file} xm-svr3"
2689 echo "Configuration $machine not supported" 1>&2
2696 ;; # Existing GNU/Linux systems do not use the GNU setup.
2698 # On the GNU system, the setup is just about the same on
2699 # each different CPU. The specific machines that GNU
2700 # supports are matched above and just set $cpu_type.
2701 xm_file="xm-gnu.h ${xm_file}"
2702 tm_file=${cpu_type}/gnu.h
2703 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2704 # GNU always uses ELF.
2706 # GNU tools are the only tools.
2709 # On GNU, the headers are already okay.
2710 fixincludes=Makefile.in
2711 xmake_file=x-linux # These details are the same as Linux.
2712 tmake_file=t-gnu # These are not.
2715 fixincludes=fixinc.svr4
2716 xmake_try_sysv=x-sysv
2717 install_headers_dir=install-headers-cpio
2720 install_headers_dir=install-headers-cpio
2724 # Distinguish i[34567]86
2725 # Also, do not run mips-tfile on MIPS if using gas.
2726 # Process --with-cpu= for PowerPC/rs6000
2727 target_cpu_default2=
2730 target_cpu_default2=1
2733 target_cpu_default2=2
2735 i686-*-* | i786-*-*)
2736 target_cpu_default2=3
2741 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2744 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2747 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2750 target_cpu_default2="MASK_CPU_EV5"
2754 if [[ x$gas = xyes ]]
2756 if [[ "$target_cpu_default2" = "" ]]
2758 target_cpu_default2="MASK_GAS"
2760 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2765 case "x$with_cpu" in
2768 target_cpu_default2="TARGET_CPU_generic"
2771 # Distinguish cores, and major variants
2772 # arm7m doesn't exist, but D & I don't affect code
2773 xarm[23678] | xarm250 | xarm[67][01]0 \
2774 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2775 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2776 | xstrongarm | xstrongarm110)
2777 target_cpu_default2="TARGET_CPU_$with_cpu"
2781 echo "--with-cpu must be passed a value" 1>&2
2786 if [[ x$pass2done = xyes ]]
2788 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2795 mips*-*-ecoff* | mips*-*-elf*)
2796 if [[ x$gas = xyes ]]
2798 if [[ x$gnu_ld = xyes ]]
2800 target_cpu_default2=20
2802 target_cpu_default2=16
2807 if [[ x$gas = xyes ]]
2809 target_cpu_default2=16
2812 powerpc*-*-* | rs6000-*-*)
2813 case "x$with_cpu" in
2817 xcommon | xpower | xpower2 | xpowerpc | xrios \
2818 | xrios1 | xrios2 | xrsc | xrsc1 \
2819 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2820 | x403 | x505 | x801 | x821 | x823 | x860)
2821 target_cpu_default2="\"$with_cpu\""
2825 echo "--with-cpu must be passed a value" 1>&2
2830 if [[ x$pass2done = xyes ]]
2832 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2839 case ".$with_cpu" in
2841 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2843 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2844 target_cpu_default2="TARGET_CPU_$with_cpu"
2847 if [[ x$pass2done = xyes ]]
2849 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2857 if [[ "$target_cpu_default2" != "" ]]
2859 if [[ "$target_cpu_default" != "" ]]
2861 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2863 target_cpu_default=$target_cpu_default2
2867 # No need for collect2 if we have the GNU linker.
2874 # Save data on machine being used to compile GCC in build_xm_file.
2875 # Save data on host machine in vars host_xm_file and host_xmake_file.
2876 if [[ x$pass1done = x ]]
2878 if [[ x"$xm_file" = x ]]
2879 then build_xm_file=$cpu_type/xm-$cpu_type.h
2880 else build_xm_file=$xm_file
2882 build_xm_defines=$xm_defines
2883 build_install_headers_dir=$install_headers_dir
2884 build_exeext=$exeext
2887 if [[ x$pass2done = x ]]
2889 if [[ x"$xm_file" = x ]]
2890 then host_xm_file=$cpu_type/xm-$cpu_type.h
2891 else host_xm_file=$xm_file
2893 host_xm_defines=$xm_defines
2894 if [[ x"$xmake_file" = x ]]
2895 then xmake_file=$cpu_type/x-$cpu_type
2897 host_xmake_file="$xmake_file"
2898 host_truncate_target=$truncate_target
2899 host_extra_gcc_objs=$extra_gcc_objs
2900 host_extra_objs=$extra_host_objs
2907 extra_objs="${host_extra_objs} ${extra_objs}"
2909 # Default the target-machine variables that were not explicitly set.
2910 if [[ x"$tm_file" = x ]]
2911 then tm_file=$cpu_type/$cpu_type.h; fi
2913 if [[ x$extra_headers = x ]]
2914 then extra_headers=; fi
2916 if [[ x"$xm_file" = x ]]
2917 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2919 if [[ x$md_file = x ]]
2920 then md_file=$cpu_type/$cpu_type.md; fi
2922 if [[ x$out_file = x ]]
2923 then out_file=$cpu_type/$cpu_type.c; fi
2925 if [[ x"$tmake_file" = x ]]
2926 then tmake_file=$cpu_type/t-$cpu_type
2929 if [[ x$float_format = x ]]
2930 then float_format=i64
2933 if [[ x$enable_haifa = x ]]
2936 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2941 # Say what files are being used for the output code and MD file.
2942 echo "Using \`$srcdir/config/$out_file' to output insns."
2943 echo "Using \`$srcdir/config/$md_file' as machine description file."
2946 for f in $tm_file; do
2949 if [[ $count = ax ]]; then
2950 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2952 echo "Using the following target machine macro files:"
2953 for f in $tm_file; do
2954 echo " $srcdir/config/$f"
2959 for f in $host_xm_file; do
2962 if [[ $count = ax ]]; then
2963 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2965 echo "Using the following host machine macro files:"
2966 for f in $host_xm_file; do
2967 echo " $srcdir/config/$f"
2971 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2973 for f in $build_xm_file; do
2976 if [[ $count = ax ]]; then
2977 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2979 echo "Using the following build machine macro files:"
2980 for f in $build_xm_file; do
2981 echo " $srcdir/config/$f"
2986 if [[ x$thread_file = x ]]; then
2987 if [[ x$target_thread_file != x ]]; then
2988 thread_file=$target_thread_file
2990 thread_file='single'
2994 # Set up the header files.
2995 # $links is the list of header files to create.
2996 # $vars is the list of shell variables with file names to include.
2997 # auto-host.h is the file containing items generated by autoconf and is
2998 # the first file included by config.h.
3000 host_xm_file="auto-host.h ${host_xm_file}"
3002 # If host=build, it is correct to have hconfig include auto-host.h
3003 # as well. If host!=build, we are in error and need to do more
3004 # work to find out the build config parameters.
3005 if [[ x$host = x$build ]]
3007 build_xm_file="auto-host.h ${build_xm_file}"
3009 # We create a subdir, then run autoconf in the subdir.
3010 # To prevent recursion we set host and build for the new
3011 # invocation of configure to the build for this invocation
3018 /*) realsrcdir=${srcdir};;
3019 *) realsrcdir=../${srcdir};;
3021 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3022 --target=$target --host=$build --build=$build
3024 # We just finished tests for the build machine, so rename
3025 # the file auto-build.h in the gcc directory.
3026 mv auto-host.h ../auto-build.h
3029 build_xm_file="auto-build.h ${build_xm_file}"
3032 vars="host_xm_file tm_file xm_file build_xm_file"
3033 links="config.h tm.h tconfig.h hconfig.h"
3034 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3037 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3040 while [[ -n "$vars" ]]
3042 set $vars; var=$1; shift; vars=$*
3043 set $links; link=$1; shift; links=$*
3044 set $defines; define=$1; shift; defines=$*
3048 # Define TARGET_CPU_DEFAULT if the system wants one.
3049 # This substitutes for lots of *.h files.
3050 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3052 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3055 for file in `eval echo '$'$var`; do
3056 echo "#include \"$file\"" >>$link
3059 for def in `eval echo '$'$define`; do
3060 echo "#ifndef $def" >>$link
3061 echo "#define $def" >>$link
3062 echo "#endif" >>$link
3066 # Truncate the target if necessary
3067 if [[ x$host_truncate_target != x ]]; then
3068 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3071 # Get the version number from the toplevel
3072 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3074 # Get an absolute path to the GCC top-level source directory
3080 # Conditionalize the makefile for this host machine.
3081 # Make-host contains the concatenation of all host makefile fragments
3082 # [there can be more than one]. This file is built by configure.frag.
3083 host_overrides=Make-host
3084 dep_host_xmake_file=
3085 for f in .. ${host_xmake_file}
3087 if [[ -f ${srcdir}/config/$f ]]
3089 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3093 # Conditionalize the makefile for this target machine.
3094 # Make-target contains the concatenation of all host makefile fragments
3095 # [there can be more than one]. This file is built by configure.frag.
3096 target_overrides=Make-target
3098 for f in .. ${tmake_file}
3100 if [[ -f ${srcdir}/config/$f ]]
3102 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3106 # If the host doesn't support symlinks, modify CC in
3107 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3108 # Otherwise, we can use "CC=$(CC)".
3110 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3112 cc_set_by_configure="\$(CC)"
3113 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3116 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3118 symbolic_link="cp -p"
3122 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3123 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3127 out_object_file=`basename $out_file .c`.o
3130 for f in $tm_file; do
3131 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3135 for f in $host_xm_file; do
3136 if test $f != "auto-host.h"; then
3137 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3139 host_xm_file_list="${host_xm_file_list} auto-host.h"
3144 for f in $build_xm_file; do
3145 if test $f != "auto-build.h"; then
3146 if test $f != "auto-host.h"; then
3147 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3149 build_xm_file_list="${build_xm_file_list} auto-host.h"
3152 build_xm_file_list="${build_xm_file_list} auto-build.h"
3156 # Define macro CROSS_COMPILE in compilation
3157 # if this is a cross-compiler.
3158 # Also use all.cross instead of all.internal
3159 # and add cross-make to Makefile.
3160 cross_overrides="/dev/null"
3161 if [[ x$host != x$target ]]
3163 cross_defines="CROSS=-DCROSS_COMPILE"
3164 cross_overrides="${topdir}/cross-make"
3167 # When building gcc with a cross-compiler, we need to fix a few things.
3168 # This must come after cross-make as we want all.build to override
3170 build_overrides="/dev/null"
3171 if [[ x$build != x$host ]]
3173 build_overrides="${topdir}/build-make"
3176 # Expand extra_headers to include complete path.
3177 # This substitutes for lots of t-* files.
3179 if [[ "x$extra_headers" = x ]]
3182 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3183 for file in $extra_headers;
3185 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3189 # Add a definition of USE_COLLECT2 if system wants one.
3190 # Also tell toplev.c what to do.
3191 # This substitutes for lots of t-* files.
3192 if [[ x$use_collect2 = x ]]
3197 will_use_collect2="collect2"
3198 maybe_use_collect2="-DUSE_COLLECT2"
3202 # Set MD_DEPS if the real md file is in md.pre-cpp.
3203 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3204 # for line oriented comments, so we must always use a GNU cpp. If
3205 # building gcc with a cross compiler, use the cross compiler just
3206 # built. Otherwise, we can use the cpp just built.
3208 if [[ "x$md_cppflags" = x ]]
3210 md_file_sub=$srcdir/config/$md_file
3215 # If we have gas in the build tree, make a link to it.
3216 if [[ -f ../gas/Makefile ]]; then
3217 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3220 # If we have ld in the build tree, make a link to it.
3221 if [[ -f ../ld/Makefile ]]; then
3222 # if [[ x$use_collect2 = x ]]; then
3223 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3225 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3229 # Figure out what assembler alignment features are present.
3230 AC_MSG_CHECKING(assembler alignment features)
3232 gcc_cv_as_alignment_features=
3233 if [[ -x as$host_exeext ]]; then
3234 # Build using assembler in the current directory.
3235 gcc_cv_as=./as$host_exeext
3236 elif [[ -f $srcdir/../gas/configure.in ]]; then
3237 # Single tree build which includes gas.
3238 for f in $srcdir/../gas/configure.in $srcdir/../gas/Makefile.in
3240 gcc_cv_gas_version=`grep '^VERSION=[[0-9]]*\.[[0-9]]*' $f`
3241 if [[ x$gcc_cv_gas_version != x ]]; then
3245 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([[0-9]]*\)"`
3246 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[[0-9]]*\.\([[0-9]]*\)"`
3247 # Gas version 2.8 and later support specifying the maximum
3248 # bytes to skip when using .p2align.
3249 if [[ "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2 ]]; then
3250 gcc_cv_as_alignment_features=".p2align including maximum skip"
3251 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3253 elif [[ x$host = x$target ]]; then
3255 gcc_cv_as=as$host_exeext
3257 if [[ x$gcc_cv_as != x ]]; then
3258 # Check if specifying the maximum bytes to skip when
3259 # using .p2align is supported.
3260 echo ".p2align 4,,7" > conftest.s
3261 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3262 gcc_cv_as_alignment_features=".p2align including maximum skip"
3263 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3265 rm -f conftest.s conftest.o
3267 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3269 # Figure out what language subdirectories are present.
3271 for lang in ${srcdir}/*/config-lang.in ..
3275 # The odd quoting in the next line works around
3276 # an apparent bug in bash 1.12 on linux.
3277 ${srcdir}/[[*]]/config-lang.in) ;;
3278 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3282 # Make gthr-default.h if we have a thread file.
3284 if [[ $thread_file != single ]]; then
3285 rm -f gthr-default.h
3286 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3287 gthread_flags=-DHAVE_GTHR_DEFAULT
3289 AC_SUBST(gthread_flags)
3291 # Make empty files to contain the specs and options for each language.
3292 # Then add #include lines to for a compiler that has specs and/or options.
3296 rm -f specs.h options.h
3297 touch specs.h options.h
3298 for subdir in . $subdirs
3300 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3301 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3302 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3304 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3305 echo "#include \"$subdir/lang-options.h\"" >>options.h
3306 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3310 # These (without "all_") are set in each config-lang.in.
3311 # `language' must be a single word so is spelled singularly.
3317 all_outputs=Makefile
3318 # List of language makefile fragments.
3323 # Add the language fragments.
3324 # Languages are added via two mechanisms. Some information must be
3325 # recorded in makefile variables, these are defined in config-lang.in.
3326 # We accumulate them and plug them into the main Makefile.
3327 # The other mechanism is a set of hooks for each of the main targets
3328 # like `clean', `install', etc.
3330 language_fragments="Make-lang"
3331 language_hooks="Make-hooks"
3334 for s in .. $subdirs
3346 . ${srcdir}/$s/config-lang.in
3347 if [[ "x$language" = x ]]
3349 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3352 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3353 all_languages="$all_languages $language"
3354 if [[ "x$boot_language" = xyes ]]
3356 all_boot_languages="$all_boot_languages $language"
3358 all_compilers="$all_compilers $compilers"
3359 all_stagestuff="$all_stagestuff $stagestuff"
3360 all_diff_excludes="$all_diff_excludes $diff_excludes"
3361 all_headers="$all_headers $headers"
3362 all_outputs="$all_outputs $outputs"
3363 if [[ x$outputs = x ]]
3365 oldstyle_subdirs="$oldstyle_subdirs $s"
3367 all_lib2funcs="$all_lib2funcs $lib2funcs"
3371 # Since we can't use `::' targets, we link each language in
3372 # with a set of hooks, reached indirectly via lang.${target}.
3376 target_list="all.build all.cross start.encap rest.encap \
3378 install-normal install-common install-info install-man \
3380 mostlyclean clean distclean extraclean maintainer-clean \
3381 stage1 stage2 stage3 stage4"
3382 for t in $target_list
3385 for l in .. $all_languages
3387 if [[ $l != ".." ]]; then
3391 echo "lang.$t: $x" >> Make-hooks
3394 # If we're not building in srcdir, create .gdbinit.
3396 if [[ ! -f Makefile.in ]]; then
3397 echo "dir ." > .gdbinit
3398 echo "dir ${srcdir}" >> .gdbinit
3399 if [[ x$gdb_needs_out_file_path = xyes ]]
3401 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3403 if [[ "x$subdirs" != x ]]; then
3406 echo "dir ${srcdir}/$s" >> .gdbinit
3409 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3412 # Define variables host_canonical and build_canonical
3413 # because some Cygnus local changes in the Makefile depend on them.
3414 build_canonical=${build}
3415 host_canonical=${host}
3417 if [[ "${host}" != "${target}" ]] ; then
3418 target_subdir=${target}/
3420 AC_SUBST(build_canonical)
3421 AC_SUBST(host_canonical)
3422 AC_SUBST(target_subdir)
3424 # If this is using newlib, then define inhibit_libc in
3425 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3426 # libgcc.a, but that's OK because newib should have its own version of
3429 if [[ x$with_newlib = xyes ]]; then
3430 inhibit_libc=-Dinhibit_libc
3432 AC_SUBST(inhibit_libc)
3434 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3437 if [[ x$enable_haifa = xyes ]]; then
3438 echo "Using the Haifa scheduler."
3440 sched_cflags=-DHAIFA
3442 AC_SUBST(sched_prefix)
3443 AC_SUBST(sched_cflags)
3444 if [[ x$enable_haifa != x ]]; then
3445 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3446 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3447 if [[ -f $x ]]; then
3454 # Nothing to do for FLOAT_H, float_format already handled.
3458 # Process the language and host/target makefile fragments.
3459 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3461 # Substitute configuration variables
3463 AC_SUBST(all_languages)
3464 AC_SUBST(all_boot_languages)
3465 AC_SUBST(all_compilers)
3466 AC_SUBST(all_lang_makefiles)
3467 AC_SUBST(all_stagestuff)
3468 AC_SUBST(all_diff_excludes)
3469 AC_SUBST(all_lib2funcs)
3470 AC_SUBST(all_headers)
3471 AC_SUBST(extra_passes)
3472 AC_SUBST(extra_programs)
3473 AC_SUBST(extra_parts)
3474 AC_SUBST(extra_c_objs)
3475 AC_SUBST(extra_cxx_objs)
3476 AC_SUBST(extra_c_flags)
3477 AC_SUBST(extra_objs)
3478 AC_SUBST(host_extra_gcc_objs)
3479 AC_SUBST(extra_headers_list)
3480 AC_SUBST(dep_host_xmake_file)
3481 AC_SUBST(dep_tmake_file)
3483 AC_SUBST(out_object_file)
3485 AC_SUBST(tm_file_list)
3486 AC_SUBST(build_xm_file_list)
3487 AC_SUBST(host_xm_file_list)
3488 AC_SUBST(lang_specs_files)
3489 AC_SUBST(lang_options_files)
3490 AC_SUBST(thread_file)
3492 AC_SUBST(local_prefix)
3493 AC_SUBST(gxx_include_dir)
3494 AC_SUBST(fixincludes)
3495 AC_SUBST(build_install_headers_dir)
3496 AC_SUBST(build_exeext)
3497 AC_SUBST(host_exeext)
3498 AC_SUBST(float_format)
3499 AC_SUBST(will_use_collect2)
3500 AC_SUBST(maybe_use_collect2)
3501 AC_SUBST(cc_set_by_configure)
3502 AC_SUBST(stage_prefix_set_by_configure)
3504 AC_SUBST(symbolic_link)
3506 AC_SUBST_FILE(target_overrides)
3507 AC_SUBST_FILE(host_overrides)
3508 AC_SUBST(cross_defines)
3509 AC_SUBST_FILE(cross_overrides)
3510 AC_SUBST_FILE(build_overrides)
3511 AC_SUBST_FILE(language_fragments)
3512 AC_SUBST_FILE(language_hooks)
3514 # Echo that links are built
3515 if [[ x$host = x$target ]]
3523 if [[ x$host != x$build ]]
3525 str3=" on a $build system"
3528 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3533 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3535 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3537 echo " ${str2}${str3}." 1>&2
3540 # Truncate the target if necessary
3541 if [[ x$host_truncate_target != x ]]; then
3542 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3545 # Configure the subdirectories
3546 # AC_CONFIG_SUBDIRS($subdirs)
3548 # Create the Makefile
3549 # and configure language subdirectories
3550 AC_OUTPUT($all_outputs,
3552 . $srcdir/configure.lang
3553 case x$CONFIG_HEADERS in
3554 xauto-host.h:config.in)
3557 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3558 # bootstrapping and the installation procedure can still use
3559 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3560 # FLAGS_TO_PASS has been modified to solve the problem there.
3561 # This is virtually a duplicate of what happens in configure.lang; we do
3562 # an extra check to make sure this only happens if ln -s can be used.
3563 if [[ "$symbolic_link" = "ln -s" ]]; then
3564 for d in .. ${subdirs} ; do
3565 if [[ $d != .. ]]; then
3568 for t in stage1 stage2 stage3 stage4 include
3571 $symbolic_link ../$t $t 2>/dev/null
3582 target_alias='${target_alias}'
3584 subdirs='${subdirs}'
3585 oldstyle_subdirs='${oldstyle_subdirs}'
3586 symbolic_link='${symbolic_link}'
3587 program_transform_set='${program_transform_set}'
3588 program_transform_name='${program_transform_name}'
3589 dep_host_xmake_file='${dep_host_xmake_file}'
3590 host_xmake_file='${host_xmake_file}'
3591 dep_tmake_file='${dep_tmake_file}'
3592 tmake_file='${tmake_file}'
3593 thread_file='${thread_file}'
3594 version='${version}'
3595 local_prefix='${local_prefix}'
3596 build_install_headers_dir='${build_install_headers_dir}'
3597 build_exeext='${build_exeext}'
3598 host_exeext='${host_exeext}'
3599 out_file='${out_file}'
3600 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3601 SET_MAKE='${SET_MAKE}'
3602 target_list='${target_list}'
3603 target_overrides='${target_overrides}'
3604 host_overrides='${host_overrides}'
3605 cross_defines='${cross_defines}'
3606 cross_overrides='${cross_overrides}'
3607 build_overrides='${build_overrides}'