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-config.h:config.in)
33 # Check for additional parameters
37 [ --with-gnu-ld arrange to work with GNU ld.],
43 [ --with-gnu-as arrange to work with GNU as.],
49 [ --with-stabs arrange to use stabs instead of host debug format.],
55 [ --with-elf arrange to use ELF instead of host debug format.],
59 # Specify the local prefix
60 AC_ARG_WITH(local-prefix,
61 [ --with-local-prefix=DIR specifies directory to put local include.],
62 local_prefix=$with_local_prefix,
63 local_prefix=/usr/local)
65 # Default local prefix if it is empty
66 if [[ x$local_prefix = x ]]; then
67 local_prefix=/usr/local
70 # Specify the g++ header file directory
71 AC_ARG_WITH(gxx-include-dir,
72 [ --with-gxx-include-dir=DIR
73 specifies directory to put g++ header files.],
74 gxx_include_dir=$with_gxx_include_dir,
75 gxx_include_dir='${prefix}/include/g++')
77 # Default g++ header file directory if it is empty
78 if [[ x$gxx_include_dir = x ]]; then
79 gxx_include_dir='${prefix}/include/g++'
82 # Enable expensive internal checks
83 AC_ARG_ENABLE(checking,
84 [ --enable-checking enable expensive run-time checks.],
85 AC_DEFINE(ENABLE_CHECKING)
88 # Enable use of cpplib for C.
89 AC_ARG_ENABLE(c-cpplib,
90 [ --enable-c-cpplib Use cpplib for C.],
91 if [[[ x$enable_c_cpplib != xno ]]]; then
92 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
93 extra_c_flags=-DUSE_CPPLIB=1
96 # Enable Multibyte Characters for C/C++
97 AC_ARG_ENABLE(c-mbchar,
98 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
99 if [[[ x$enable_c_mbchar != xno ]]]; then
100 extra_c_flags=-DMULTIBYTE_CHARS=1
104 # Pass with no value to take the default
105 # Pass with a value to specify a thread package
106 AC_ARG_ENABLE(threads,
107 [ --enable-threads enable thread usage for target GCC.
108 --enable-threads=LIB use LIB thread package for target GCC.],
109 if [[[ x$enable_threads = xno ]]]; then
114 # Check if a valid thread package
115 case x${enable_threads} in
124 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
126 thread_file=$enable_threads
129 echo "$enable_threads is an unknown thread package" 1>&2
134 # Determine the host, build, and target systems
137 # Find the native compiler
141 # Find some useful tools
154 AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h time.h \
155 fcntl.h unistd.h stab.h sys/file.h sys/time.h malloc.h \
156 sys/resource.h sys/param.h sys/times.h sys/types.h sys/stat.h)
158 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp index \
159 rindex kill getrlimit setrlimit atoll atoq sysconf isascii \
160 gettimeofday strsignal)
163 GCC_FUNC_VFPRINTF_DOPRNT
167 GCC_NEED_DECLARATIONS(bcopy bzero bcmp index rindex getenv atol sbrk abort \
168 strerror getcwd getwd strsignal)
170 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
171 #include <sys/types.h>
172 #ifdef HAVE_SYS_RESOURCE_H
173 #include <sys/resource.h>
177 GCC_NEED_DECLARATIONS(malloc realloc calloc free, [
194 build_broken_install=
195 build_install_headers_dir=install-headers-tar
200 host_truncate_target=
202 # Decode the host machine, then the target machine.
203 # For the host machine, we save the xm_file variable as host_xm_file;
204 # then we decode the target machine and forget everything else
205 # that came from the host machine.
206 for machine in $build $host $target; do
220 # Set this to force installation and use of collect2.
222 # Set this to override the default target model.
224 # Set this to force use of install.sh.
226 # Set this to control which fixincludes program to use.
227 fixincludes=fixincludes
228 # Set this to control how the header file directory is installed.
229 install_headers_dir=install-headers-tar
230 # Set this to a non-empty list of args to pass to cpp if the target
231 # wants its .md file passed through cpp.
233 # Set this if directory names should be truncated to 14 characters.
235 # Set this if gdb needs a dir command with `dirname $out_file`
236 gdb_needs_out_file_path=
237 # Set this if the build machine requires executables to have a
241 # Set default cpu_type, tm_file and xm_file so it can be updated in
242 # each machine entry.
243 cpu_type=`echo $machine | sed 's/-.*$//'`
277 tm_file=${cpu_type}/${cpu_type}.h
278 xm_file=${cpu_type}/xm-${cpu_type}.h
280 # Set the default macros to define for GNU/Linux systems.
283 xm_defines="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
288 # Support site-specific machine types.
290 cpu_type=`echo $machine | sed -e 's/-.*//'`
291 rest=`echo $machine | sed -e "s/$cpu_type-//"`
292 xm_file=${cpu_type}/xm-$rest.h
293 tm_file=${cpu_type}/$rest.h
294 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
295 then xmake_file=${cpu_type}/x-$rest; \
298 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
299 then tmake_file=${cpu_type}/t-$rest; \
305 a29k-*-bsd* | a29k-*-sym1*)
306 tm_file="${tm_file} a29k/unix.h"
308 xmake_file=a29k/x-unix
311 a29k-*-udi | a29k-*-coff)
312 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
313 tmake_file=a29k/t-a29kbare
316 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
317 tmake_file=a29k/t-vx29k
318 extra_parts="crtbegin.o crtend.o"
320 a29k-*-*) # Default a29k environment.
323 alpha*-*-linux-gnuecoff*)
324 tm_file="${tm_file} alpha/linux.h"
326 target_cpu_default="MASK_GAS"
329 fixincludes=Makefile.in
332 alpha*-*-linux-gnulibc1*)
333 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
335 target_cpu_default="MASK_GAS"
336 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
337 extra_parts="crtbegin.o crtend.o"
339 fixincludes=Makefile.in
341 if [[ x$enable_threads = xyes ]]; then
346 tm_file="${tm_file} alpha/linux.h alpha/elf.h"
348 target_cpu_default="MASK_GAS"
349 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
350 extra_parts="crtbegin.o crtend.o"
352 fixincludes=Makefile.in
354 if [[ x$enable_threads = xyes ]]; then
359 if [[ x$stabs = xyes ]]
361 tm_file="${tm_file} dbx.h"
363 if [[ x$gas != xyes ]]
365 extra_passes="mips-tfile mips-tdump"
371 tm_file="${tm_file} alpha/osf12.h alpha/osf2or3.h"
374 tm_file="${tm_file} alpha/osf2or3.h"
377 # Some versions of OSF4 (specifically X4.0-9 296.7) have
378 # a broken tar, so we use cpio instead.
379 install_headers_dir=install-headers-cpio
383 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
384 target_cpu_default=MASK_SUPPORT_ARCH
389 tm_file="${tm_file} dbx.h alpha/vxworks.h"
390 # If we're on an Alpha, we assume we use the system assembler,
391 # so check it to see if we should put in .arch lines.
393 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
394 target_cpu_default=MASK_SUPPORT_ARCH
399 extra_passes="mips-tfile mips-tdump"
405 tm_file="${tm_file} alpha/win-nt.h"
406 target_cpu_default=MASK_WINDOWS_NT
407 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
409 xmake_file=winnt/x-winnt
410 extra_host_objs=oldnames.o
411 extra_gcc_objs="spawnv.o oldnames.o"
412 fixincludes=fixinc.winnt
413 if [[ x$gnu_ld != xyes ]]
415 extra_programs=ld.exe
417 if [[ x$enable_threads = xyes ]]; then
423 xm_file="${xm_file} alpha/xm-vms.h"
424 tmake_file=alpha/t-vms
425 fixincludes=Makefile.in
428 extra_parts="crtinit.o crtfini.o"
430 arm-*-coff* | armel-*-coff*)
432 tmake_file=arm/t-bare
434 arm-*-riscix1.[[01]]*) # Acorn RISC machine (early versions)
435 tm_file=arm/riscix1-1.h
438 arm-*-riscix*) # Acorn RISC machine
439 if [[ x$gas = xyes ]]
441 tm_file=arm/rix-gas.h
445 xmake_file=arm/x-riscix
446 tmake_file=arm/t-riscix
449 arm-semi-aout | armel-semi-aout)
451 tmake_file=arm/t-semi
452 fixincludes=Makefile.in # There is nothing to fix
454 arm-semi-aof | armel-semi-aof)
455 tm_file=arm/semiaof.h
456 tmake_file=arm/t-semiaof
457 fixincludes=Makefile.in # There is nothing to fix
461 xm_file="xm-siglist.h ${xm_file}"
462 tmake_file="t-netbsd arm/t-netbsd"
463 # On NetBSD, the headers are already okay, except for math.h.
464 fixincludes=fixinc.wrap
466 arm-*-linux-gnuaout*) # ARM GNU/Linux
469 tm_file=arm/linux-gas.h
470 tmake_file=arm/t-linux
471 fixincludes=Makefile.in
477 tmake_file=arm/t-bare
479 c1-convex-*) # Convex C1
482 fixincludes=Makefile.in
484 c2-convex-*) # Convex C2
487 fixincludes=Makefile.in
492 fixincludes=Makefile.in
497 fixincludes=Makefile.in
500 target_cpu_default=16
502 fixincludes=Makefile.in
504 clipper-intergraph-clix*)
505 tm_file="${tm_file} svr3.h clipper/clix.h"
506 xm_file=clipper/xm-clix.h
507 xmake_file=clipper/x-clix
508 extra_headers=va-clipper.h
509 extra_parts="crtbegin.o crtend.o"
510 install_headers_dir=install-headers-cpio
518 # This hasn't been upgraded to GCC 2.
519 # fx80-alliant-*) # Alliant FX/80
525 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
526 xm_file=pa/xm-papro.h
531 tm_file="${tm_file} pa/pa-osf.h"
533 fixincludes=Makefile.in
536 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
537 xm_file=pa/xm-papro.h
541 tm_file="${tm_file} pa/pa-osf.h"
543 fixincludes=Makefile.in
548 fixincludes=Makefile.in
552 fixincludes=Makefile.in
555 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
556 xm_file=pa/xm-pahpux.h
557 xmake_file=pa/x-pa-hpux
558 if [[ x$gas = xyes ]]
560 tm_file="${tm_file} pa/gas.h"
563 install_headers_dir=install-headers-cpio
566 hppa1.0-*-hpux8.0[[0-2]]*)
567 tm_file="${tm_file} pa/pa-hpux.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/pa-gas.h"
574 tm_file="pa/pa-oldas.h ${tm_file}"
577 install_headers_dir=install-headers-cpio
580 hppa1.1-*-hpux8.0[[0-2]]*)
582 tm_file="${tm_file} pa/pa-hpux.h"
583 xm_file=pa/xm-pahpux.h
584 xmake_file=pa/x-pa-hpux
585 if [[ x$gas = xyes ]]
587 tm_file="${tm_file} pa/pa-gas.h"
589 tm_file="pa/pa-oldas.h ${tm_file}"
592 install_headers_dir=install-headers-cpio
597 tm_file="${tm_file} pa/pa-hpux.h"
598 xm_file=pa/xm-pahpux.h
599 xmake_file=pa/x-pa-hpux
600 if [[ x$gas = xyes ]]
602 tm_file="${tm_file} pa/pa-gas.h"
605 install_headers_dir=install-headers-cpio
609 tm_file="${tm_file} pa/pa-hpux.h"
610 xm_file=pa/xm-pahpux.h
611 xmake_file=pa/x-pa-hpux
612 if [[ x$gas = xyes ]]
614 tm_file="${tm_file} pa/pa-gas.h"
617 install_headers_dir=install-headers-cpio
622 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
623 xm_file=pa/xm-pahpux.h
624 xmake_file=pa/x-pa-hpux
625 if [[ x$gas = xyes ]]
627 tm_file="${tm_file} pa/pa-gas.h"
630 install_headers_dir=install-headers-cpio
634 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
635 xm_file=pa/xm-pahpux.h
636 xmake_file=pa/x-pa-hpux
637 if [[ x$gas = xyes ]]
639 tm_file="${tm_file} pa/pa-gas.h"
642 install_headers_dir=install-headers-cpio
647 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
648 xm_file=pa/xm-pahpux.h
649 xmake_file=pa/x-pa-hpux
650 if [[ x$gas = xyes ]]
652 tm_file="${tm_file} pa/pa-gas.h"
655 install_headers_dir=install-headers-cpio
659 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
660 xm_file=pa/xm-pahpux.h
661 xmake_file=pa/x-pa-hpux
662 if [[ x$gas = xyes ]]
664 tm_file="${tm_file} pa/pa-gas.h"
667 install_headers_dir=install-headers-cpio
672 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
673 xm_file=pa/xm-pahpux.h
674 xmake_file=pa/x-pa-hpux
675 if [[ x$gas = xyes ]]
677 tm_file="${tm_file} pa/pa-gas.h"
680 install_headers_dir=install-headers-cpio
684 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
685 xm_file=pa/xm-pahpux.h
686 xmake_file=pa/x-pa-hpux
687 if [[ x$gas = xyes ]]
689 tm_file="${tm_file} pa/pa-gas.h"
692 install_headers_dir=install-headers-cpio
698 fixincludes=Makefile.in
702 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
703 if [[ x$gas = xyes ]]
705 tm_file=i386/aix386.h
706 extra_parts="crtbegin.o crtend.o"
707 tmake_file=i386/t-crtstuff
709 tm_file=i386/aix386ng.h
712 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
714 xmake_file=i386/x-aix
717 i486-ncr-sysv4*) # NCR 3000 - i486 running system V.4
718 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
719 xm_defines="USG POSIX SMALL_ARG_MAX"
720 xmake_file=i386/x-ncr3000
721 if [[ x$stabs = xyes -a x$gas = xyes ]]
723 tm_file=i386/sysv4gdb.h
727 extra_parts="crtbegin.o crtend.o"
728 tmake_file=i386/t-crtpic
732 xm_file=i386/xm-next.h
733 tmake_file=i386/t-next
734 xmake_file=i386/x-next
735 extra_objs=nextstep.o
736 if [[ x$enable_threads = xyes ]]; then
740 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
742 if [[ x$gas = xyes ]]
744 tm_file=i386/seq-gas.h
746 tm_file=i386/sequent.h
749 i[[34567]]86-sequent-ptx1*)
750 xm_defines="USG SVR3"
751 xmake_file=i386/x-sysv3
752 tm_file=i386/seq-sysv3.h
753 tmake_file=i386/t-crtstuff
754 fixincludes=fixinc.ptx
755 extra_parts="crtbegin.o crtend.o"
756 install_headers_dir=install-headers-cpio
759 i[[34567]]86-sequent-ptx2* | i[[34567]]86-sequent-sysv3*)
760 xm_defines="USG SVR3"
761 xmake_file=i386/x-sysv3
762 tm_file=i386/seq2-sysv3.h
763 tmake_file=i386/t-crtstuff
764 extra_parts="crtbegin.o crtend.o"
765 fixincludes=fixinc.ptx
766 install_headers_dir=install-headers-cpio
769 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
770 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
771 xm_defines="USG POSIX SMALL_ARG_MAX"
773 tm_file=i386/ptx4-i.h
775 extra_parts="crtbegin.o crtend.o"
776 fixincludes=fixinc.ptx
777 install_headers_dir=install-headers-cpio
780 i386-sun-sunos*) # Sun i386 roadrunner
785 i[[34567]]86-*-aout*)
786 tm_file=i386/i386-aout.h
787 tmake_file=i386/t-i386bare
789 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
790 tm_file=i386/bsd386.h
791 # tmake_file=t-libc-ok
794 tm_file=i386/386bsd.h
795 # tmake_file=t-libc-ok
796 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
799 i[[34567]]86-*-freebsdelf*)
800 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
801 # On FreeBSD, the headers are already ok, except for math.h.
802 fixincludes=fixinc.wrap
803 tmake_file=i386/t-freebsd
808 i[[34567]]86-*-freebsd*)
809 tm_file=i386/freebsd.h
810 # On FreeBSD, the headers are already ok, except for math.h.
811 fixincludes=fixinc.wrap
812 tmake_file=i386/t-freebsd
814 i[[34567]]86-*-netbsd*)
815 tm_file=i386/netbsd.h
816 # On NetBSD, the headers are already okay, except for math.h.
817 fixincludes=fixinc.wrap
820 i[[34567]]86-*-coff*)
821 tm_file=i386/i386-coff.h
822 tmake_file=i386/t-i386bare
824 i[[34567]]86-*-isc*) # 80386 running ISC system
825 xm_file="${xm_file} i386/xm-isc.h"
826 xm_defines="USG SVR3"
828 i[[34567]]86-*-isc[[34]]*)
829 xmake_file=i386/x-isc3
832 xmake_file=i386/x-isc
835 if [[ x$gas = xyes -a x$stabs = xyes ]]
837 tm_file=i386/iscdbx.h
838 tmake_file=i386/t-svr3dbx
839 extra_parts="svr3.ifile svr3z.ifile"
841 tm_file=i386/isccoff.h
842 tmake_file=i386/t-crtstuff
843 extra_parts="crtbegin.o crtend.o"
845 install_headers_dir=install-headers-cpio
848 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
849 # with a.out format using
851 xmake_file=x-linux-aout
852 tmake_file="t-linux-aout i386/t-crtstuff"
853 tm_file=i386/linux-oldld.h
854 fixincludes=Makefile.in
858 i[[34567]]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
860 xmake_file=x-linux-aout
861 tmake_file="t-linux-aout i386/t-crtstuff"
862 tm_file=i386/linux-aout.h
863 fixincludes=Makefile.in #The headers are ok already.
867 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
868 # with ELF format using the
869 # GNU/Linux C library 5
872 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
873 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
874 fixincludes=Makefile.in # The headers are ok already.
877 if [[ x$enable_threads = xyes ]]; then
881 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
882 # with ELF format using glibc 2
883 # aka GNU/Linux C library 6
886 tmake_file="t-linux i386/t-crtstuff"
887 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
888 fixincludes=Makefile.in # The headers are ok already.
891 if [[ x$enable_threads = xyes ]]; then
897 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
898 xm_file=i386/xm-go32.h
900 tmake_file=i386/t-go32
902 i[[34567]]86-pc-msdosdjgpp*)
903 xm_file=i386/xm-go32.h
905 tmake_file=i386/t-go32
909 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
912 fixincludes=Makefile.in
916 i[[34567]]86-*-lynxos*)
917 if [[ x$gas = xyes ]]
921 tm_file=i386/lynx-ng.h
923 xm_file=i386/xm-lynx.h
924 tmake_file=i386/t-i386bare
927 i[[34567]]86-*-mach*)
929 # tmake_file=t-libc-ok
932 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
933 if [[ x$elf = xyes ]]
935 tm_file=i386/osfelf.h
938 tm_file=i386/osfrose.h
941 xm_file="i386/xm-osf.h ${xm_file}"
942 xmake_file=i386/x-osfrose
943 tmake_file=i386/t-osf
946 i[[34567]]86-go32-rtems*)
948 xm_file=i386/xm-go32.h
949 tm_file=i386/go32-rtems.h
950 tmake_file="i386/t-go32 t-rtems"
952 i[[34567]]86-*-rtemself*)
954 tm_file=i386/rtemself.h
955 tmake_file="i386/t-i386bare t-rtems"
957 i[[34567]]86-*-rtems*)
960 tmake_file="i386/t-i386bare t-rtems"
962 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
963 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
964 xm_defines="USG SVR3"
965 xmake_file=i386/x-sco5
966 fixincludes=fixinc.sco
968 install_headers_dir=install-headers-cpio
970 tmake_file=i386/t-sco5
971 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
973 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
974 xm_file="${xm_file} i386/xm-sco.h"
975 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
976 xmake_file=i386/x-sco4
977 fixincludes=fixinc.sco
979 install_headers_dir=install-headers-cpio
980 if [[ x$stabs = xyes ]]
982 tm_file=i386/sco4dbx.h
983 tmake_file=i386/t-svr3dbx
984 extra_parts="svr3.ifile svr3z.rfile"
987 tmake_file=i386/t-crtstuff
988 extra_parts="crtbegin.o crtend.o"
992 i[[34567]]86-*-sco*) # 80386 running SCO system
993 xm_file=i386/xm-sco.h
994 xmake_file=i386/x-sco
996 install_headers_dir=install-headers-cpio
997 if [[ x$stabs = xyes ]]
999 tm_file=i386/scodbx.h
1000 tmake_file=i386/t-svr3dbx
1001 extra_parts="svr3.ifile svr3z.rfile"
1004 extra_parts="crtbegin.o crtend.o"
1005 tmake_file=i386/t-crtstuff
1009 i[[34567]]86-*-solaris2*)
1010 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1011 xm_defines="USG POSIX SMALL_ARG_MAX"
1012 if [[ x$stabs = xyes ]]
1014 tm_file=i386/sol2dbg.h
1018 tmake_file=i386/t-sol2
1019 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1022 *-*-solaris2.[[0-4]])
1023 fixincludes=fixinc.svr4;;
1025 fixincludes=fixinc.wrap;;
1028 if [[ x$enable_threads = xyes ]]; then
1029 thread_file='solaris'
1032 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1033 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1034 xm_defines="USG POSIX SMALL_ARG_MAX"
1035 tm_file=i386/sysv4.h
1036 if [[ x$stabs = xyes ]]
1038 tm_file="${tm_file} dbx.h"
1040 tmake_file=i386/t-crtpic
1042 extra_parts="crtbegin.o crtend.o"
1044 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1046 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1047 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1048 fixincludes=Makefile.in #Don't do it on OSF/1
1049 if [[ x$stabs = xyes ]]
1051 tm_file=i386/osf1elfgdb.h
1053 tm_file=i386/osf1elf.h
1055 tmake_file=i386/t-osf1elf
1056 xmake_file=i386/x-osf1elf
1057 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1059 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1060 xm_defines="USG SVR3"
1061 xmake_file=i386/x-sysv3
1062 if [[ x$gas = xyes ]]
1064 if [[ x$stabs = xyes ]]
1066 tm_file=i386/svr3dbx.h
1067 tmake_file=i386/t-svr3dbx
1068 extra_parts="svr3.ifile svr3z.rfile"
1070 tm_file=i386/svr3gas.h
1071 extra_parts="crtbegin.o crtend.o"
1072 tmake_file=i386/t-crtstuff
1075 tm_file=i386/sysv3.h
1076 extra_parts="crtbegin.o crtend.o"
1077 tmake_file=i386/t-crtstuff
1080 i386-*-vsta) # Intel 80386's running VSTa kernel
1081 xm_file="${xm_file} i386/xm-vsta.h"
1083 tmake_file=i386/t-vsta
1084 xmake_file=i386/x-vsta
1086 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1087 xm_file="${xm_file} i386/xm-cygwin32.h"
1088 tmake_file=i386/t-cygwin32
1089 tm_file=i386/cygwin32.h
1090 xmake_file=i386/x-cygwin32
1092 fixincludes=Makefile.in
1093 if [[ x$enable_threads = xyes ]]; then
1098 i[[34567]]86-*-mingw32*)
1099 tm_file=i386/mingw32.h
1100 xm_file="${xm_file} i386/xm-mingw32.h"
1101 tmake_file=i386/t-cygwin32
1103 xmake_file=i386/x-cygwin32
1104 fixincludes=Makefile.in
1105 if [[ x$enable_threads = xyes ]]; then
1112 *minwg32crt* | *mingw32*)
1113 tm_file="${tm_file} i386/crtdll.h"
1117 i[[34567]]86-*-winnt3*)
1118 tm_file=i386/win-nt.h
1119 out_file=i386/i386.c
1120 xm_file="xm-winnt.h ${xm_file}"
1121 xmake_file=winnt/x-winnt
1122 tmake_file=i386/t-winnt
1123 extra_host_objs="winnt.o oldnames.o"
1124 extra_gcc_objs="spawnv.o oldnames.o"
1125 fixincludes=fixinc.winnt
1126 if [[ x$gnu_ld != xyes ]]
1128 extra_programs=ld.exe
1130 if [[ x$enable_threads = xyes ]]; then
1134 i[[34567]]86-dg-dgux*)
1135 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1136 xm_defines="USG POSIX"
1137 out_file=i386/dgux.c
1139 tmake_file=i386/t-dgux
1140 xmake_file=i386/x-dgux
1141 fixincludes=Makefile.in # There is nothing to fix
1142 install_headers_dir=install-headers-cpio
1144 i860-alliant-*) # Alliant FX/2800
1145 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1146 xm_file="${xm_file}"
1147 xmake_file=i860/x-fx2800
1148 tmake_file=i860/t-fx2800
1149 extra_parts="crtbegin.o crtend.o"
1152 tm_file="${tm_file} i860/bsd.h"
1153 if [[ x$gas = xyes ]]
1155 tm_file="${tm_file} i860/bsd-gas.h"
1160 tm_file="${tm_file} i860/mach.h"
1161 tmake_file=t-libc-ok
1163 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1164 tm_file="${tm_file} svr3.h i860/paragon.h"
1165 xm_defines="USG SVR3"
1170 tm_file="${tm_file} svr3.h i860/sysv3.h"
1171 xm_defines="USG SVR3"
1172 xmake_file=i860/x-sysv3
1173 extra_parts="crtbegin.o crtend.o"
1176 tm_file="${tm_file} svr4.h i860/sysv4.h"
1177 xm_defines="USG SVR3"
1178 xmake_file=i860/x-sysv4
1180 extra_parts="crtbegin.o crtend.o"
1182 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1183 tm_file="${tm_file} i960/vx960.h"
1184 tmake_file=i960/t-vxworks960
1187 i960-wrs-vxworks5* | i960-wrs-vxworks)
1188 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1189 tmake_file=i960/t-vxworks960
1193 tm_file="${tm_file} i960/vx960.h"
1194 tmake_file=i960/t-vxworks960
1198 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1199 tmake_file=i960/t-960bare
1203 tmake_file="i960/t-960bare t-rtems"
1204 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1207 i960-*-*) # Default i960 environment.
1211 extra_parts="crtinit.o crtfini.o"
1213 m68000-convergent-sysv*)
1215 xm_file="m68k/xm-3b1.h ${xm_file}"
1218 extra_headers=math-68881.h
1220 m68000-hp-bsd*) # HP 9000/200 running BSD
1221 tm_file=m68k/hp2bsd.h
1222 xmake_file=m68k/x-hp2bsd
1224 extra_headers=math-68881.h
1226 m68000-hp-hpux*) # HP 9000 series 300
1227 xm_file="xm_alloca.h ${xm_file}"
1228 xm_defines="USG NO_SYS_SIGLIST"
1229 if [[ x$gas = xyes ]]
1231 xmake_file=m68k/x-hp320g
1232 tm_file=m68k/hp310g.h
1234 xmake_file=m68k/x-hp320
1235 tm_file=m68k/hp310.h
1238 install_headers_dir=install-headers-cpio
1240 extra_headers=math-68881.h
1245 extra_headers=math-68881.h
1248 tm_file=m68k/sun2o4.h
1250 extra_headers=math-68881.h
1253 xm_file="m68k/xm-3b1.h ${xm_file}"
1255 if [[ x$gas = xyes ]]
1262 extra_headers=math-68881.h
1264 m68k-apple-aux*) # Apple Macintosh running A/UX
1265 xm_defines="USG AUX"
1266 tmake_file=m68k/t-aux
1268 install_headers_dir=install-headers-cpio
1269 extra_headers=math-68881.h
1270 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1272 if [[ "$gnu_ld" = yes ]]
1274 tm_file="${tm_file} m68k/auxgld.h"
1276 tm_file="${tm_file} m68k/auxld.h"
1278 if [[ "$gas" = yes ]]
1280 tm_file="${tm_file} m68k/auxgas.h"
1282 tm_file="${tm_file} m68k/auxas.h"
1284 tm_file="${tm_file} m68k/a-ux.h"
1287 tm_file=m68k/apollo68.h
1288 xmake_file=m68k/x-apollo68
1290 extra_headers=math-68881.h
1292 m68k-altos-sysv*) # Altos 3068
1293 if [[ x$gas = xyes ]]
1295 tm_file=m68k/altos3068.h
1298 echo "The Altos is supported only with the GNU assembler" 1>&2
1301 extra_headers=math-68881.h
1303 m68k-bull-sysv*) # Bull DPX/2
1304 if [[ x$gas = xyes ]]
1306 if [[ x$stabs = xyes ]]
1308 tm_file=m68k/dpx2cdbx.h
1310 tm_file=m68k/dpx2g.h
1315 xm_file="xm-alloca.h ${xm_file}"
1317 xmake_file=m68k/x-dpx2
1319 extra_headers=math-68881.h
1321 m68k-atari-sysv4*) # Atari variant of V.4.
1322 tm_file=m68k/atari.h
1323 xm_file="xm-alloca.h ${xm_file}"
1324 xm_defines="USG FULL_PROTOTYPES"
1326 extra_parts="crtbegin.o crtend.o"
1327 extra_headers=math-68881.h
1329 m68k-motorola-sysv*)
1330 tm_file=m68k/mot3300.h
1331 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1332 xm_defines=NO_SYS_SIGLIST
1333 if [[ x$gas = xyes ]]
1335 xmake_file=m68k/x-mot3300-gas
1336 if [[ x$gnu_ld = xyes ]]
1338 tmake_file=m68k/t-mot3300-gald
1340 tmake_file=m68k/t-mot3300-gas
1344 xmake_file=m68k/x-mot3300
1345 if [[ x$gnu_ld = xyes ]]
1347 tmake_file=m68k/t-mot3300-gld
1349 tmake_file=m68k/t-mot3300
1353 gdb_needs_out_file_path=yes
1354 extra_parts="crt0.o mcrt0.o"
1355 extra_headers=math-68881.h
1357 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1358 tm_file=m68k/tower-as.h
1359 xm_defines="USG SVR3"
1360 xmake_file=m68k/x-tower
1361 extra_parts="crtbegin.o crtend.o"
1362 extra_headers=math-68881.h
1365 tm_file=m68k/plexus.h
1366 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1369 extra_headers=math-68881.h
1373 xm_file="xm-alloca.h ${xm_file}"
1375 extra_headers=math-68881.h
1378 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1379 xm_defines="USG unos"
1380 xmake_file=m68k/x-crds
1384 extra_headers=math-68881.h
1386 m68k-cbm-sysv4*) # Commodore variant of V.4.
1388 xm_file="xm-alloca.h ${xm_file}"
1389 xm_defines="USG FULL_PROTOTYPES"
1390 xmake_file=m68k/x-amix
1392 extra_parts="crtbegin.o crtend.o"
1393 extra_headers=math-68881.h
1396 tm_file=m68k/ccur-GAS.h
1397 xmake_file=m68k/x-ccur
1398 extra_headers=math-68881.h
1402 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1403 tm_file=m68k/hp3bsd44.h
1404 xmake_file=m68k/x-hp3bsd44
1406 extra_headers=math-68881.h
1408 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1409 tm_file=m68k/hp3bsd.h
1411 extra_headers=math-68881.h
1414 if [[ x$with_fp = xno ]]
1416 tm_file=m68k/isi-nfp.h
1421 extra_headers=math-68881.h
1423 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1424 xm_file="xm_alloca.h ${xm_file}"
1425 xm_defines="USG NO_SYS_SIGLIST"
1426 if [[ x$gas = xyes ]]
1428 xmake_file=m68k/x-hp320g
1429 tm_file=m68k/hp320g.h
1431 xmake_file=m68k/x-hp320
1432 tm_file=m68k/hpux7.h
1435 install_headers_dir=install-headers-cpio
1437 extra_headers=math-68881.h
1439 m68k-hp-hpux*) # HP 9000 series 300
1440 xm_file="xm_alloca.h ${xm_file}"
1441 xm_defines="USG NO_SYS_SIGLIST"
1442 if [[ x$gas = xyes ]]
1444 xmake_file=m68k/x-hp320g
1445 tm_file=m68k/hp320g.h
1447 xmake_file=m68k/x-hp320
1448 tm_file=m68k/hp320.h
1451 install_headers_dir=install-headers-cpio
1453 extra_headers=math-68881.h
1456 tm_file=m68k/sun3mach.h
1458 extra_headers=math-68881.h
1461 if [[ x$gas = xyes ]]
1463 tm_file=m68k/news3gas.h
1465 tm_file=m68k/news3.h
1468 extra_headers=math-68881.h
1470 m68k-sony-bsd* | m68k-sony-newsos*)
1471 if [[ x$gas = xyes ]]
1473 tm_file=m68k/newsgas.h
1478 extra_headers=math-68881.h
1480 m68k-next-nextstep2*)
1481 tm_file=m68k/next21.h
1482 xm_file="m68k/xm-next.h ${xm_file}"
1483 tmake_file=m68k/t-next
1484 xmake_file=m68k/x-next
1485 extra_objs=nextstep.o
1486 extra_headers=math-68881.h
1489 m68k-next-nextstep3*)
1491 xm_file="m68k/xm-next.h ${xm_file}"
1492 tmake_file=m68k/t-next
1493 xmake_file=m68k/x-next
1494 extra_objs=nextstep.o
1495 extra_headers=math-68881.h
1496 if [[ x$enable_threads = xyes ]]; then
1501 if [[ x$with_fp = xno ]]
1503 tm_file=m68k/sun3n3.h
1505 tm_file=m68k/sun3o3.h
1508 extra_headers=math-68881.h
1510 m68k-sun-sunos*) # For SunOS 4 (the default).
1511 if [[ x$with_fp = xno ]]
1513 tm_file=m68k/sun3n.h
1518 extra_headers=math-68881.h
1521 tm_file=m68k/vxm68k.h
1522 tmake_file=m68k/t-vxworks68
1523 extra_headers=math-68881.h
1526 tmake_file=m68k/t-m68kbare
1527 tm_file="m68k/m68k-aout.h libgloss.h"
1528 extra_headers=math-68881.h
1531 tmake_file=m68k/t-m68kbare
1532 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1533 extra_headers=math-68881.h
1536 if [[ x$gas = xyes ]]
1540 tm_file=m68k/lynx-ng.h
1542 xm_file=m68k/xm-lynx.h
1544 tmake_file=m68k/t-lynx
1545 extra_headers=math-68881.h
1548 tm_file=m68k/netbsd.h
1549 # On NetBSD, the headers are already okay, except for math.h.
1550 fixincludes=fixinc.wrap
1553 m68k-*-sysv3*) # Motorola m68k's running system V.3
1554 xm_file="xm-alloca.h ${xm_file}"
1556 xmake_file=m68k/x-m68kv
1557 extra_parts="crtbegin.o crtend.o"
1558 extra_headers=math-68881.h
1560 m68k-*-sysv4*) # Motorola m68k's running system V.4
1561 tm_file=m68k/m68kv4.h
1562 xm_file="xm-alloca.h ${xm_file}"
1565 extra_parts="crtbegin.o crtend.o"
1566 extra_headers=math-68881.h
1568 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1571 tm_file=m68k/linux-aout.h
1572 tmake_file="t-linux-aout m68k/t-linux-aout"
1573 fixincludes=Makefile.in # The headers are ok already.
1574 extra_headers=math-68881.h
1577 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1578 # with ELF format using the
1579 # GNU/Linux C library 5
1581 tm_file=m68k/linux.h
1582 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1583 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1584 fixincludes=Makefile.in # The headers are ok already.
1585 extra_headers=math-68881.h
1588 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1589 # with ELF format using glibc 2
1590 # aka the GNU/Linux C library 6.
1592 tm_file=m68k/linux.h
1593 tmake_file="t-linux m68k/t-linux"
1594 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1595 fixincludes=Makefile.in # The headers are ok already.
1596 extra_headers=math-68881.h
1598 if [[ x$enable_threads = xyes ]]; then
1603 tmake_file=m68k/t-m68kbare
1604 tm_file=m68k/m68k-psos.h
1605 extra_headers=math-68881.h
1608 tmake_file="m68k/t-m68kbare t-rtems"
1609 tm_file=m68k/rtems.h
1610 extra_headers=math-68881.h
1616 tm_file=m88k/dguxbcs.h
1617 tmake_file=m88k/t-dguxbcs
1621 tmake_file=m88k/t-dgux
1624 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1626 xmake_file=m88k/x-dgux
1627 if [[ x$gas = xyes ]]
1629 tmake_file=m88k/t-dgux-gas
1631 fixincludes=fixinc.dgux
1633 m88k-dolphin-sysv3*)
1634 tm_file=m88k/dolph.h
1635 extra_parts="crtbegin.o crtend.o"
1636 xm_file="m88k/xm-sysv3.h ${xm_file}"
1637 xmake_file=m88k/x-dolph
1638 if [[ x$gas = xyes ]]
1640 tmake_file=m88k/t-m88k-gas
1643 m88k-tektronix-sysv3)
1644 tm_file=m88k/tekXD88.h
1645 extra_parts="crtbegin.o crtend.o"
1646 xm_file="m88k/xm-sysv3.h ${xm_file}"
1647 xmake_file=m88k/x-tekXD88
1648 if [[ x$gas = xyes ]]
1650 tmake_file=m88k/t-m88k-gas
1654 tm_file=m88k/m88k-aout.h
1657 tm_file=m88k/m88k-coff.h
1658 tmake_file=m88k/t-bug
1662 extra_parts="crtbegin.o crtend.o"
1663 if [[ x$gas = xyes ]]
1665 tmake_file=m88k/t-luna-gas
1667 tmake_file=m88k/t-luna
1671 tm_file=m88k/sysv3.h
1672 extra_parts="crtbegin.o crtend.o"
1673 xm_file="m88k/xm-sysv3.h ${xm_file}"
1674 xmake_file=m88k/x-sysv3
1675 if [[ x$gas = xyes ]]
1677 tmake_file=m88k/t-m88k-gas
1681 tm_file=m88k/sysv4.h
1682 extra_parts="crtbegin.o crtend.o"
1683 xmake_file=m88k/x-sysv4
1684 tmake_file=m88k/t-sysv4
1686 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1687 tm_file=mips/iris6.h
1688 xm_file=mips/xm-iris6.h
1690 fixincludes=fixinc.irix
1691 xmake_file=mips/x-iris6
1692 tmake_file=mips/t-iris6
1693 if [[ x$enable_threads = xyes ]]; then
1697 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1698 tm_file="mips/iris6.h mips/cross64.h"
1699 xm_defines="USG HAVE_INTTYPES_H"
1701 fixincludes=Makefile.in
1702 xmake_file=mips/x-iris
1703 tmake_file=mips/t-cross64
1704 # See comment in mips/iris[56].h files.
1706 if [[ x$enable_threads = xyes ]]; then
1711 if [[ x$gas = xyes ]]
1713 if [[ x$stabs = xyes ]]
1715 tm_file=mips/iris5gdb.h
1717 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1720 tm_file=mips/sni-svr4.h
1723 xmake_file=mips/x-sni-svr4
1724 tmake_file=mips/t-mips-gas
1725 if [[ x$gnu_ld != xyes ]]
1731 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1732 if [[ x$gas = xyes ]]
1734 tm_file="mips/iris5.h mips/iris5gas.h"
1735 if [[ x$stabs = xyes ]]
1737 tm_file="${tm_file} dbx.h"
1740 tm_file=mips/iris5.h
1742 xm_defines="USG HAVE_INTTYPES_H"
1744 fixincludes=fixinc.irix
1745 xmake_file=mips/x-iris
1746 # mips-tfile doesn't work yet
1747 tmake_file=mips/t-mips-gas
1748 # See comment in mips/iris5.h file.
1750 if [[ x$enable_threads = xyes ]]; then
1754 mips-sgi-irix4loser*) # Mostly like a MIPS.
1755 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1756 if [[ x$stabs = xyes ]]; then
1757 tm_file="${tm_file} dbx.h"
1761 xmake_file=mips/x-iris
1762 if [[ x$gas = xyes ]]
1764 tmake_file=mips/t-mips-gas
1766 extra_passes="mips-tfile mips-tdump"
1768 if [[ x$gnu_ld != xyes ]]
1772 if [[ x$enable_threads = xyes ]]; then
1776 mips-sgi-irix4*) # Mostly like a MIPS.
1777 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1778 if [[ x$stabs = xyes ]]; then
1779 tm_file="${tm_file} dbx.h"
1783 xmake_file=mips/x-iris
1784 if [[ x$gas = xyes ]]
1786 tmake_file=mips/t-mips-gas
1788 extra_passes="mips-tfile mips-tdump"
1790 if [[ x$gnu_ld != xyes ]]
1794 if [[ x$enable_threads = xyes ]]; then
1798 mips-sgi-*) # Mostly like a MIPS.
1799 tm_file="mips/iris3.h ${tm_file}"
1800 if [[ x$stabs = xyes ]]; then
1801 tm_file="${tm_file} dbx.h"
1805 xmake_file=mips/x-iris3
1806 if [[ x$gas = xyes ]]
1808 tmake_file=mips/t-mips-gas
1810 extra_passes="mips-tfile mips-tdump"
1812 if [[ x$gnu_ld != xyes ]]
1817 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1818 tm_file="mips/osfrose.h ${tm_file}"
1819 xmake_file=mips/x-osfrose
1820 tmake_file=mips/t-osfrose
1821 extra_objs=halfpic.o
1824 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1825 tm_file=mips/dec-osf1.h
1826 if [[ x$stabs = xyes ]]; then
1827 tm_file="${tm_file} dbx.h"
1829 xmake_file=mips/x-dec-osf1
1830 if [[ x$gas = xyes ]]
1832 tmake_file=mips/t-mips-gas
1834 tmake_file=mips/t-ultrix
1835 extra_passes="mips-tfile mips-tdump"
1837 if [[ x$gnu_ld != xyes ]]
1842 mips-dec-bsd*) # Decstation running 4.4 BSD
1843 tm_file=mips/dec-bsd.h
1845 if [[ x$gas = xyes ]]
1847 tmake_file=mips/t-mips-gas
1849 tmake_file=mips/t-ultrix
1850 extra_passes="mips-tfile mips-tdump"
1852 if [[ x$gnu_ld != xyes ]]
1857 mips-dec-netbsd*) # Decstation running NetBSD
1858 tm_file=mips/netbsd.h
1859 # On NetBSD, the headers are already okay, except for math.h.
1860 fixincludes=fixinc.wrap
1862 if [[ x$prefix = xNONE ]]; then
1863 prefix=$native_prefix
1866 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
1867 tm_file="mips/news4.h ${tm_file}"
1868 if [[ x$stabs = xyes ]]; then
1869 tm_file="${tm_file} dbx.h"
1871 if [[ x$gas = xyes ]]
1873 tmake_file=mips/t-mips-gas
1875 extra_passes="mips-tfile mips-tdump"
1877 if [[ x$gnu_ld != xyes ]]
1881 xmake_file=mips/x-sony
1883 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
1884 # That is based on svr4.
1885 # t-svr4 is not right because this system doesn't use ELF.
1886 tm_file="mips/news5.h ${tm_file}"
1887 if [[ x$stabs = xyes ]]; then
1888 tm_file="${tm_file} dbx.h"
1890 xm_file="xm-siglist.h ${xm_file}"
1892 if [[ x$gas = xyes ]]
1894 tmake_file=mips/t-mips-gas
1896 extra_passes="mips-tfile mips-tdump"
1898 if [[ x$gnu_ld != xyes ]]
1903 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
1904 tm_file="mips/svr4-5.h mips/svr4-t.h"
1905 if [[ x$stabs = xyes ]]; then
1906 tm_file="${tm_file} dbx.h"
1908 xm_file="xm-siglist.h ${xm_file}"
1910 xmake_file=mips/x-sysv
1911 if [[ x$gas = xyes ]]
1913 tmake_file=mips/t-mips-gas
1914 extra_parts="crtbegin.o crtend.o"
1916 tmake_file=mips/t-mips
1917 extra_passes="mips-tfile mips-tdump"
1919 if [[ x$gnu_ld != xyes ]]
1925 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1926 tm_file="mips/ultrix.h ${tm_file}"
1927 if [[ x$stabs = xyes ]]; then
1928 tm_file="${tm_file} dbx.h"
1930 xmake_file=mips/x-ultrix
1931 if [[ x$gas = xyes ]]
1933 tmake_file=mips/t-mips-gas
1935 tmake_file=mips/t-ultrix
1936 extra_passes="mips-tfile mips-tdump"
1938 if [[ x$gnu_ld != xyes ]]
1943 mips-*-riscos[[56789]]bsd*)
1944 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1945 if [[ x$stabs = xyes ]]; then
1946 tm_file="${tm_file} dbx.h"
1948 if [[ x$gas = xyes ]]
1950 tmake_file=mips/t-bsd-gas
1952 tmake_file=mips/t-bsd
1953 extra_passes="mips-tfile mips-tdump"
1955 if [[ x$gnu_ld != xyes ]]
1961 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1962 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
1963 if [[ x$stabs = xyes ]]; then
1964 tm_file="${tm_file} dbx.h"
1966 if [[ x$gas = xyes ]]
1968 tmake_file=mips/t-bsd-gas
1970 tmake_file=mips/t-bsd
1971 extra_passes="mips-tfile mips-tdump"
1973 if [[ x$gnu_ld != xyes ]]
1979 mips-*-riscos[[56789]]sysv4*)
1980 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1981 if [[ x$stabs = xyes ]]; then
1982 tm_file="${tm_file} dbx.h"
1984 xm_file="xm-siglist.h ${xm_file}"
1985 xmake_file=mips/x-sysv
1986 if [[ x$gas = xyes ]]
1988 tmake_file=mips/t-svr4-gas
1990 tmake_file=mips/t-svr4
1991 extra_passes="mips-tfile mips-tdump"
1993 if [[ x$gnu_ld != xyes ]]
1999 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
2000 tm_file="mips/svr4-4.h ${tm_file}"
2001 if [[ x$stabs = xyes ]]; then
2002 tm_file="${tm_file} dbx.h"
2005 xmake_file=mips/x-sysv
2006 if [[ x$gas = xyes ]]
2008 tmake_file=mips/t-svr4-gas
2010 tmake_file=mips/t-svr4
2011 extra_passes="mips-tfile mips-tdump"
2013 if [[ x$gnu_ld != xyes ]]
2019 mips-*-riscos[[56789]]sysv*)
2020 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2021 if [[ x$stabs = xyes ]]; then
2022 tm_file="${tm_file} dbx.h"
2025 xmake_file=mips/x-sysv
2026 if [[ x$gas = xyes ]]
2028 tmake_file=mips/t-svr3-gas
2030 tmake_file=mips/t-svr3
2031 extra_passes="mips-tfile mips-tdump"
2033 if [[ x$gnu_ld != xyes ]]
2039 mips-*-sysv* | mips-*-riscos*sysv*)
2040 tm_file="mips/svr3-4.h ${tm_file}"
2041 if [[ x$stabs = xyes ]]; then
2042 tm_file="${tm_file} dbx.h"
2045 xmake_file=mips/x-sysv
2046 if [[ x$gas = xyes ]]
2048 tmake_file=mips/t-svr3-gas
2050 tmake_file=mips/t-svr3
2051 extra_passes="mips-tfile mips-tdump"
2053 if [[ x$gnu_ld != xyes ]]
2059 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2060 tm_file=mips/mips-5.h
2061 if [[ x$stabs = xyes ]]; then
2062 tm_file="${tm_file} dbx.h"
2064 if [[ x$gas = xyes ]]
2066 tmake_file=mips/t-mips-gas
2068 extra_passes="mips-tfile mips-tdump"
2070 if [[ x$gnu_ld != xyes ]]
2079 tm_file=mips/ecoffl.h
2080 if [[ x$stabs = xyes ]]; then
2081 tm_file="${tm_file} dbx.h"
2083 tmake_file=mips/t-ecoff
2086 tm_file="${tm_file} gofast.h mips/ecoff.h"
2087 if [[ x$stabs = xyes ]]; then
2088 tm_file="${tm_file} dbx.h"
2090 tmake_file=mips/t-ecoff
2094 tm_file="mips/elfl.h libgloss.h"
2095 tmake_file=mips/t-ecoff
2098 tm_file="mips/elf.h libgloss.h"
2099 tmake_file=mips/t-ecoff
2102 tm_file="mips/elfl64.h libgloss.h"
2103 tmake_file=mips/t-ecoff
2105 mips64orionel-*-elf*)
2106 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2107 tmake_file=mips/t-ecoff
2110 tm_file="mips/elf64.h libgloss.h"
2111 tmake_file=mips/t-ecoff
2114 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2115 tmake_file=mips/t-ecoff
2117 mips64orion-*-rtems*)
2118 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2119 tmake_file="mips/t-ecoff t-rtems"
2122 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2123 tmake_file=mips/t-ecoff
2126 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2127 tmake_file=mips/t-ecoff
2129 mips-*-*) # Default MIPS RISC-OS 4.0.
2130 if [[ x$stabs = xyes ]]; then
2131 tm_file="${tm_file} dbx.h"
2133 if [[ x$gas = xyes ]]
2135 tmake_file=mips/t-mips-gas
2137 extra_passes="mips-tfile mips-tdump"
2139 if [[ x$gnu_ld != xyes ]]
2146 tm_file="mn10200/mn10200.h"
2147 if [[ x$stabs = xyes ]]
2149 tm_file="${tm_file} dbx.h"
2155 tm_file="mn10300/mn10300.h"
2156 if [[ x$stabs = xyes ]]
2158 tm_file="${tm_file} dbx.h"
2163 tm_file=ns32k/encore.h
2167 tm_file=ns32k/sequent.h
2171 tm_file=ns32k/tek6100.h
2176 tm_file=ns32k/tek6200.h
2180 # This has not been updated to GCC 2.
2183 # xmake_file=ns32k/x-genix
2184 # tm_file=ns32k/genix.h
2185 # broken_install=yes
2189 tm_file=ns32k/merlin.h
2193 tm_file=ns32k/pc532-mach.h
2197 tm_file=ns32k/pc532-min.h
2198 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2202 ns32k-pc532-netbsd*)
2203 tm_file=ns32k/netbsd.h
2204 # On NetBSD, the headers are already okay, except for math.h.
2205 fixincludes=fixinc.wrap
2209 tm_file="${tm_file} pdp11/2bsd.h"
2215 xmake_file=pyr/x-pyr
2222 xmake_file=romp/x-mach
2225 powerpc-*-sysv* | powerpc-*-elf*)
2226 tm_file=rs6000/sysv4.h
2227 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2228 xm_defines="USG POSIX"
2229 extra_headers=ppc-asm.h
2230 if [[ x$gas = xyes ]]
2232 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2234 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2236 xmake_file=rs6000/x-sysv4
2239 tm_file=rs6000/eabiaix.h
2240 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2241 fixincludes=Makefile.in
2242 extra_headers=ppc-asm.h
2245 tm_file=rs6000/eabisim.h
2246 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2247 fixincludes=Makefile.in
2248 extra_headers=ppc-asm.h
2251 tm_file=rs6000/eabi.h
2252 if [[ x$gas = xyes ]]
2254 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2256 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2258 fixincludes=Makefile.in
2259 extra_headers=ppc-asm.h
2262 tm_file=rs6000/rtems.h
2263 if [[ x$gas = xyes ]]
2265 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2267 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2269 fixincludes=Makefile.in
2270 extra_headers=ppc-asm.h
2272 powerpc-*-linux-gnu*)
2273 tm_file=rs6000/linux.h
2274 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2275 xm_defines="USG ${xm_defines}"
2276 out_file=rs6000/rs6000.c
2277 if [[ x$gas = xyes ]]
2279 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2281 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2284 fixincludes=Makefile.in
2285 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2286 extra_headers=ppc-asm.h
2287 if [[ x$enable_threads = xyes ]]; then
2293 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2294 xm_defines="USG POSIX"
2295 tm_file=rs6000/vxppc.h
2296 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2297 extra_headers=ppc-asm.h
2299 powerpcle-*-sysv* | powerpcle-*-elf*)
2300 tm_file=rs6000/sysv4le.h
2301 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2302 xm_defines="USG POSIX"
2303 if [[ x$gas = xyes ]]
2305 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2307 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2309 xmake_file=rs6000/x-sysv4
2310 extra_headers=ppc-asm.h
2312 powerpcle-*-eabisim*)
2313 tm_file=rs6000/eabilesim.h
2314 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2315 fixincludes=Makefile.in
2316 extra_headers=ppc-asm.h
2319 tm_file=rs6000/eabile.h
2320 if [[ x$gas = xyes ]]
2322 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2324 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2326 fixincludes=Makefile.in
2327 extra_headers=ppc-asm.h
2329 powerpcle-*-winnt* )
2330 tm_file=rs6000/win-nt.h
2331 tmake_file=rs6000/t-winnt
2333 fixincludes=Makefile.in
2334 if [[ x$enable_threads = xyes ]]; then
2337 extra_headers=ppc-asm.h
2339 powerpcle-*-pe | powerpcle-*-cygwin32)
2340 tm_file=rs6000/cygwin32.h
2341 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2342 xm_defines=NO_STAB_H
2343 tmake_file=rs6000/t-winnt
2344 xmake_file=rs6000/x-cygwin32
2346 fixincludes=Makefile.in
2347 if [[ x$enable_threads = xyes ]]; then
2351 extra_headers=ppc-asm.h
2353 powerpcle-*-solaris2*)
2354 tm_file=rs6000/sol2.h
2355 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2356 xm_defines="USG POSIX"
2357 if [[ x$gas = xyes ]]
2359 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2361 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2363 xmake_file=rs6000/x-sysv4
2365 *-*-solaris2.[[0-4]])
2366 fixincludes=fixinc.svr4;;
2368 fixincludes=fixinc.wrap;;
2370 extra_headers=ppc-asm.h
2372 rs6000-ibm-aix3.[[01]]*)
2373 tm_file=rs6000/aix31.h
2374 xmake_file=rs6000/x-aix31
2377 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2378 tm_file=rs6000/aix3newas.h
2379 if [[ x$host != x$target ]]
2381 tmake_file=rs6000/t-xnewas
2383 tmake_file=rs6000/t-newas
2387 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2388 tm_file=rs6000/aix41.h
2389 if [[ x$host != x$target ]]
2391 tmake_file=rs6000/t-xnewas
2393 tmake_file=rs6000/t-newas
2395 xmake_file=rs6000/x-aix31
2405 tm_file=rs6000/mach.h
2406 xm_file="${xm_file} rs6000/xm-mach.h"
2407 xmake_file=rs6000/x-mach
2411 tm_file=rs6000/lynx.h
2412 xm_file=rs6000/xm-lynx.h
2413 tmake_file=rs6000/t-rs6000
2414 xmake_file=rs6000/x-lynx
2422 tmake_file="sh/t-sh t-rtems"
2431 xm_file="xm-alloca.h ${xm_file}"
2434 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2435 tm_file=sparc/vxsparc.h
2436 tmake_file=sparc/t-vxsparc
2440 tmake_file=sparc/t-sparcbare
2441 tm_file="sparc/aout.h libgloss.h"
2444 tm_file=sparc/netbsd.h
2445 # On NetBSD, the headers are already okay, except for math.h.
2446 fixincludes=fixinc.wrap
2454 tmake_file=sparc/t-elf
2455 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2459 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2460 xm_file="${xm_file} sparc/xm-linux.h"
2461 tm_file=sparc/linux-aout.h
2463 fixincludes=Makefile.in # The headers are ok already.
2467 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2468 xm_file="${xm_file} sparc/xm-linux.h"
2470 tm_file=sparc/linux.h
2471 tmake_file="t-linux t-linux-gnulibc1 sparc/t-linux"
2472 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2473 fixincludes=Makefile.in # The headers are ok already.
2477 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2478 xm_file="${xm_file} sparc/xm-linux.h"
2480 tm_file=sparc/linux.h
2481 tmake_file="t-linux sparc/t-linux"
2482 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2483 fixincludes=Makefile.in # The headers are ok already.
2486 if [[ x$enable_threads = xyes ]]; then
2491 if [[ x$gas = xyes ]]
2493 tm_file=sparc/lynx.h
2495 tm_file=sparc/lynx-ng.h
2497 xm_file=sparc/xm-lynx.h
2498 tmake_file=sparc/t-sunos41
2502 tmake_file="sparc/t-sparcbare t-rtems"
2503 tm_file=sparc/rtems.h
2505 sparc-hal-solaris2*)
2506 xm_file=sparc/xm-sol2.h
2507 tm_file="sparc/sol2.h sparc/hal.h"
2508 tmake_file="sparc/t-halos sparc/t-sol2"
2509 xmake_file=sparc/x-sysv4
2510 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
2511 fixincludes=fixinc.svr4
2515 if [[ x$gnu_ld = xyes ]]
2517 tm_file=sparc/sol2.h
2519 tm_file=sparc/sol2-sld.h
2521 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2522 xm_defines="USG POSIX"
2523 tmake_file=sparc/t-sol2
2524 xmake_file=sparc/x-sysv4
2525 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2527 *-*-solaris2.[[0-4]])
2528 fixincludes=fixinc.svr4;;
2530 fixincludes=fixinc.wrap;;
2534 if [[ x$enable_threads = xyes ]]; then
2535 thread_file='solaris'
2539 tm_file=sparc/sunos4.h
2540 tmake_file=sparc/t-sunos40
2544 tm_file=sparc/sunos4.h
2545 tmake_file=sparc/t-sunos41
2547 if [[ x$gas = xyes ]]; then
2548 tm_file="${tm_file} sparc/sun4gas.h"
2552 tm_file=sparc/sun4o3.h
2556 tm_file=sparc/sysv4.h
2557 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2558 xm_defines="USG POSIX"
2560 xmake_file=sparc/x-sysv4
2561 extra_parts="crtbegin.o crtend.o"
2564 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2565 xm_defines="USG POSIX"
2566 tm_file=sparc/vxsim.h
2567 tmake_file=sparc/t-vxsparc
2568 xmake_file=sparc/x-sysv4
2571 tm_file="sparc/splet.h libgloss.h"
2572 tmake_file=sparc/t-splet
2575 tm_file="sparc/litecoff.h libgloss.h"
2576 tmake_file=sparc/t-sparclite
2579 tm_file="sparc/lite.h aoutos.h libgloss.h"
2580 tmake_file=sparc/t-sparclite
2583 tmake_file=sparc/t-sp64
2584 tm_file=sparc/sp64-aout.h
2587 tmake_file=sparc/t-sp64
2588 tm_file=sparc/sp64-elf.h
2589 extra_parts="crtbegin.o crtend.o"
2591 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2592 tmake_file=sparc/t-sp64
2593 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2594 tm_file=sparc/linux64.h
2596 fixincludes=Makefile.in # The headers are ok already.
2599 # This hasn't been upgraded to GCC 2.
2600 # tahoe-harris-*) # Harris tahoe, using COFF.
2601 # tm_file=tahoe/harris.h
2603 # tahoe-*-bsd*) # tahoe running BSD
2605 # This hasn't been upgraded to GCC 2.
2612 tm_file="v850/v850.h"
2613 xm_file="v850/xm-v850.h"
2614 if [[ x$stabs = xyes ]]
2616 tm_file="${tm_file} dbx.h"
2620 vax-*-bsd*) # vaxen running BSD
2624 vax-*-sysv*) # vaxen running system V
2625 tm_file="${tm_file} vax/vaxv.h"
2630 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2631 # On NetBSD, the headers are already okay, except for math.h.
2632 fixincludes=fixinc.wrap
2636 vax-*-ultrix*) # vaxen running ultrix
2637 tm_file="${tm_file} vax/ultrix.h"
2641 vax-*-vms*) # vaxen running VMS
2642 xm_file=vax/xm-vms.h
2646 vax-*-*) # vax default entry
2650 xm_file="${xm_file} xm-svr3"
2654 echo "Configuration $machine not supported" 1>&2
2661 ;; # Existing GNU/Linux systems do not use the GNU setup.
2663 # On the GNU system, the setup is just about the same on
2664 # each different CPU. The specific machines that GNU
2665 # supports are matched above and just set $cpu_type.
2666 xm_file="xm-gnu.h ${xm_file}"
2667 tm_file=${cpu_type}/gnu.h
2668 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2669 # GNU always uses ELF.
2671 # GNU tools are the only tools.
2674 # On GNU, the headers are already okay.
2675 fixincludes=Makefile.in
2676 xmake_file=x-linux # These details are the same as Linux.
2677 tmake_file=t-gnu # These are not.
2680 fixincludes=fixinc.svr4
2681 xmake_try_sysv=x-sysv
2683 install_headers_dir=install-headers-cpio
2687 install_headers_dir=install-headers-cpio
2691 # Distinguish i[34567]86
2692 # Also, do not run mips-tfile on MIPS if using gas.
2693 # Process --with-cpu= for PowerPC/rs6000
2694 target_cpu_default2=
2697 target_cpu_default2=1
2700 target_cpu_default2=2
2702 i686-*-* | i786-*-*)
2703 target_cpu_default2=3
2708 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2711 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|TASK_MAX"
2714 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2717 target_cpu_default2="MASK_CPU_EV5"
2721 if [[ x$gas = xyes ]]
2723 if [[ x$target_cpu_default2 = x ]]
2725 target_cpu_default2="MASK_GAS"
2727 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2732 case "x$with_cpu" in
2735 target_cpu_default2="TARGET_CPU_generic"
2738 # Distinguish cores, and major variants
2739 # arm7m doesn't exist, but D & I don't affect code
2740 xarm[23678] | xarm250 | xarm[67][01]0 \
2741 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2742 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2743 | xstrongarm | xstrongarm110)
2744 target_cpu_default2="TARGET_CPU_$with_cpu"
2748 echo "--with-cpu must be passed a value" 1>&2
2753 if [[ x$pass2done = xyes ]]
2755 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2762 mips*-*-ecoff* | mips*-*-elf*)
2763 if [[ x$gas = xyes ]]
2765 if [[ x$gnu_ld = xyes ]]
2767 target_cpu_default2=20
2769 target_cpu_default2=16
2774 if [[ x$gas = xyes ]]
2776 target_cpu_default2=16
2779 powerpc*-*-* | rs6000-*-*)
2780 case "x$with_cpu" in
2784 xcommon | xpower | xpower2 | xpowerpc | xrios \
2785 | xrios1 | xrios2 | xrsc | xrsc1 \
2786 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2787 | x403 | x505 | x801 | x821 | x823 | x860)
2788 target_cpu_default2="\"$with_cpu\""
2792 echo "--with-cpu must be passed a value" 1>&2
2797 if [[ x$pass2done = xyes ]]
2799 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2806 case ".$with_cpu" in
2808 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2810 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2811 target_cpu_default2="TARGET_CPU_$with_cpu"
2814 if [[ x$pass2done = xyes ]]
2816 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2824 if [[ x$target_cpu_default2 != x ]]
2826 if [[ x$target_cpu_default != x ]]
2828 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2830 target_cpu_default=$target_cpu_default2
2834 # No need for collect2 if we have the GNU linker.
2841 # Save data on machine being used to compile GCC in build_xm_file.
2842 # Save data on host machine in vars host_xm_file and host_xmake_file.
2843 if [[ x$pass1done = x ]]
2845 if [[ x"$xm_file" = x ]]
2846 then build_xm_file=$cpu_type/xm-$cpu_type.h
2847 else build_xm_file=$xm_file
2849 build_xm_defines=$xm_defines
2850 build_broken_install=$broken_install
2851 build_install_headers_dir=$install_headers_dir
2852 build_exeext=$exeext
2855 if [[ x$pass2done = x ]]
2857 if [[ x"$xm_file" = x ]]
2858 then host_xm_file=$cpu_type/xm-$cpu_type.h
2859 else host_xm_file=$xm_file
2861 host_xm_defines=$xm_defines
2862 if [[ x"$xmake_file" = x ]]
2863 then xmake_file=$cpu_type/x-$cpu_type
2865 host_xmake_file="$xmake_file"
2866 host_truncate_target=$truncate_target
2867 host_extra_gcc_objs=$extra_gcc_objs
2868 host_extra_objs=$extra_host_objs
2874 extra_objs="${host_extra_objs} ${extra_objs}"
2876 # Default the target-machine variables that were not explicitly set.
2877 if [[ x"$tm_file" = x ]]
2878 then tm_file=$cpu_type/$cpu_type.h; fi
2880 if [[ x$extra_headers = x ]]
2881 then extra_headers=; fi
2883 if [[ x"$xm_file" = x ]]
2884 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2886 md_file=$cpu_type/$cpu_type.md
2888 if [[ x$out_file = x ]]
2889 then out_file=$cpu_type/$cpu_type.c; fi
2891 if [[ x"$tmake_file" = x ]]
2892 then tmake_file=$cpu_type/t-$cpu_type
2895 if [[ x$float_format = x ]]
2896 then float_format=i64
2899 # Say what files are being used for the output code and MD file.
2900 echo "Using \`$srcdir/config/$out_file' to output insns."
2901 echo "Using \`$srcdir/config/$md_file' as machine description file."
2904 for f in $tm_file; do
2907 if [[ $count = ax ]]; then
2908 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2910 echo "Using the following target machine macro files:"
2911 for f in $tm_file; do
2912 echo " $srcdir/config/$f"
2917 for f in $host_xm_file; do
2920 if [[ $count = ax ]]; then
2921 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2923 echo "Using the following host machine macro files:"
2924 for f in $host_xm_file; do
2925 echo " $srcdir/config/$f"
2929 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2931 for f in $build_xm_file; do
2934 if [[ $count = ax ]]; then
2935 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2937 echo "Using the following build machine macro files:"
2938 for f in $build_xm_file; do
2939 echo " $srcdir/config/$f"
2944 if [[ x$thread_file = x ]]
2945 then thread_file='single'
2948 # Set up the header files.
2949 # $links is the list of header files to create.
2950 # $vars is the list of shell variables with file names to include.
2951 # auto-config.h is the file containing items generated by autoconf and is
2952 # the first file included by config.h.
2954 host_xm_file="auto-config.h ${host_xm_file}"
2956 # If host=build, it is correct to have hconfig include auto-config.h
2957 # as well. If host!=build, we are in error and need to do more
2958 # work to find out the build config parameters.
2959 if test x$host = x$build
2961 build_xm_file="auto-config.h ${build_xm_file}"
2963 # We create a subdir, then run autoconf in the subdir.
2964 # To prevent recursion we set host and build for the new
2965 # invocation of configure to the build for this invocation
2972 /*) realsrcdir=${srcdir};;
2973 *) realsrcdir=../${srcdir};;
2975 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
2976 --target=$target --host=$build --build=$build
2978 # We just finished tests for the build machine, so rename
2979 # the file auto-build.h in the gcc directory.
2980 mv auto-config.h ../auto-build.h
2983 build_xm_file="auto-build.h ${build_xm_file}"
2986 vars="host_xm_file tm_file xm_file build_xm_file"
2987 links="config.h tm.h tconfig.h hconfig.h"
2988 defines="host_xm_defines null_defines xm_defines build_xm_defines"
2991 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
2994 while [[ -n "$vars" ]]
2996 set $vars; var=$1; shift; vars=$*
2997 set $links; link=$1; shift; links=$*
2998 set $defines; define=$1; shift; defines=$*
3002 # Define TARGET_CPU_DEFAULT if the system wants one.
3003 # This substitutes for lots of *.h files.
3004 if [[ x$target_cpu_default != x -a $link = tm.h ]]
3006 echo "#define TARGET_CPU_DEFAULT $target_cpu_default" >>$link
3009 for file in `eval echo '$'$var`; do
3014 echo '#ifdef IN_GCC' >>$link
3017 echo "#include \"$file\"" >>$link
3022 echo '#endif' >>$link
3027 for def in `eval echo '$'$define`; do
3028 echo "#ifndef $def" >>$link
3029 echo "#define $def" >>$link
3030 echo "#endif" >>$link
3034 # If we have a CVS directory, set up a rule so verion.c will be made
3035 # from CVS tag information and use a dummy version number here if we
3036 # don't have version.c.
3039 if [[ -d $srcdir/CVS ]]; then
3040 version_dep=ChangeLog
3043 if [[ ! -f $srcdir/version.c -a -d $srcdir/CVS ]]
3047 # Get the version number from the toplevel
3048 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3051 # Internationalization
3054 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3055 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3061 # NLS support is still experimental, so disable it by default for now.
3063 [ --enable-nls use Native Language Support (disabled by default)],
3067 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3069 # Are we using gcc as the native compiler?
3071 *linux* | *cygwin32* | *mingw32*)
3072 if [[ x$prefix = xNONE ]]; then
3073 prefix=$native_prefix
3078 # Get an absolute path to the GCC top-level source directory
3084 # Conditionalize the makefile for this host machine.
3085 # Make-host contains the concatenation of all host makefile fragments
3086 # [there can be more than one]. This file is built by configure.frag.
3087 host_overrides=Make-host
3088 dep_host_xmake_file=
3089 for f in .. ${host_xmake_file}
3091 if [[ -f ${srcdir}/config/$f ]]
3093 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3097 # Conditionalize the makefile for this target machine.
3098 # Make-target contains the concatenation of all host makefile fragments
3099 # [there can be more than one]. This file is built by configure.frag.
3100 target_overrides=Make-target
3102 for f in .. ${tmake_file}
3104 if [[ -f ${srcdir}/config/$f ]]
3106 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3110 # If the host doesn't support symlinks, modify CC in
3111 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3112 # Otherwise, we can use "CC=$(CC)".
3114 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3116 cc_set_by_configure="\$(CC)"
3117 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3120 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3122 symbolic_link="cp -p"
3126 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3127 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3131 out_object_file=`basename $out_file .c`.o
3134 for f in $tm_file; do
3135 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3139 for f in $host_xm_file; do
3140 if [[ $f != "auto-config.h" ]]; then
3141 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3143 host_xm_file_list="${host_xm_file_list} $f"
3148 for f in $build_xm_file; do
3149 if [[ $f != "auto-config.h" -a $f != "auto-build.h" ]]; then
3150 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3152 build_xm_file_list="${build_xm_file_list} $f"
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="ld"
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 as 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 ld 2>/dev/null
3225 rm -f collect-ld; $symbolic_link ../ld/ld.new collect-ld 2>/dev/null
3229 # Figure out what language subdirectories are present.
3231 for lang in ${srcdir}/*/config-lang.in ..
3235 # The odd quoting in the next line works around
3236 # an apparent bug in bash 1.12 on linux.
3237 ${srcdir}/[[*]]/config-lang.in) ;;
3238 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3242 # Make empty files to contain the specs and options for each language.
3243 # Then add #include lines to for a compiler that has specs and/or options.
3247 rm -f specs.h options.h
3248 touch specs.h options.h
3249 for subdir in . $subdirs
3251 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3252 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3253 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3255 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3256 echo "#include \"$subdir/lang-options.h\"" >>options.h
3257 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3261 # These (without "all_") are set in each config-lang.in.
3262 # `language' must be a single word so is spelled singularly.
3268 all_outputs='Makefile intl/Makefile po/Makefile.in'
3269 # List of language makefile fragments.
3274 # Add the language fragments.
3275 # Languages are added via two mechanisms. Some information must be
3276 # recorded in makefile variables, these are defined in config-lang.in.
3277 # We accumulate them and plug them into the main Makefile.
3278 # The other mechanism is a set of hooks for each of the main targets
3279 # like `clean', `install', etc.
3281 language_fragments="Make-lang"
3282 language_hooks="Make-hooks"
3285 for s in .. $subdirs
3297 . ${srcdir}/$s/config-lang.in
3298 if [[ "x$language" = x ]]
3300 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3303 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3304 all_languages="$all_languages $language"
3305 if [[ "x$boot_language" = xyes ]]
3307 all_boot_languages="$all_boot_languages $language"
3309 all_compilers="$all_compilers $compilers"
3310 all_stagestuff="$all_stagestuff $stagestuff"
3311 all_diff_excludes="$all_diff_excludes $diff_excludes"
3312 all_headers="$all_headers $headers"
3313 all_outputs="$all_outputs $outputs"
3314 if [[ x$outputs = x ]]
3316 oldstyle_subdirs="$oldstyle_subdirs $s"
3318 all_lib2funcs="$all_lib2funcs $lib2funcs"
3322 # Since we can't use `::' targets, we link each language in
3323 # with a set of hooks, reached indirectly via lang.${target}.
3327 target_list="all.build all.cross start.encap rest.encap \
3329 install-normal install-common install-info install-man \
3331 mostlyclean clean distclean extraclean maintainer-clean \
3332 stage1 stage2 stage3 stage4"
3333 for t in $target_list
3336 for lang in .. $all_languages
3338 if [[ $lang != ".." ]]; then
3342 echo "lang.$t: $x" >> Make-hooks
3345 # If we're not building in srcdir, create .gdbinit.
3347 if [[ ! -f Makefile.in ]]; then
3348 echo "dir ." > .gdbinit
3349 echo "dir ${srcdir}" >> .gdbinit
3350 if [[ x$gdb_needs_out_file_path = xyes ]]
3352 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3354 if [[ "x$subdirs" != x ]]; then
3357 echo "dir ${srcdir}/$s" >> .gdbinit
3360 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3363 # Process the language and host/target makefile fragments.
3364 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3366 # Substitute configuration variables
3368 AC_SUBST(all_languages)
3369 AC_SUBST(all_boot_languages)
3370 AC_SUBST(all_compilers)
3371 AC_SUBST(all_lang_makefiles)
3372 AC_SUBST(all_stagestuff)
3373 AC_SUBST(all_diff_excludes)
3374 AC_SUBST(all_lib2funcs)
3375 AC_SUBST(all_headers)
3376 AC_SUBST(extra_passes)
3377 AC_SUBST(extra_programs)
3378 AC_SUBST(extra_parts)
3379 AC_SUBST(extra_c_objs)
3380 AC_SUBST(extra_c_flags)
3381 AC_SUBST(extra_objs)
3382 AC_SUBST(host_extra_gcc_objs)
3383 AC_SUBST(extra_headers_list)
3384 AC_SUBST(dep_host_xmake_file)
3385 AC_SUBST(dep_tmake_file)
3387 AC_SUBST(out_object_file)
3389 AC_SUBST(tm_file_list)
3390 AC_SUBST(build_xm_file_list)
3391 AC_SUBST(host_xm_file_list)
3392 AC_SUBST(lang_specs_files)
3393 AC_SUBST(lang_options_files)
3394 AC_SUBST(thread_file)
3396 AC_SUBST(local_prefix)
3397 AC_SUBST(gxx_include_dir)
3398 AC_SUBST(fixincludes)
3399 AC_SUBST(build_install_headers_dir)
3400 AC_SUBST(build_exeext)
3401 AC_SUBST(float_format)
3402 AC_SUBST(will_use_collect2)
3403 AC_SUBST(maybe_use_collect2)
3404 AC_SUBST(cc_set_by_configure)
3405 AC_SUBST(stage_prefix_set_by_configure)
3406 AC_SUBST(symbolic_link)
3407 AC_SUBST(version_dep)
3409 AC_SUBST_FILE(target_overrides)
3410 AC_SUBST_FILE(host_overrides)
3411 AC_SUBST(cross_defines)
3412 AC_SUBST_FILE(cross_overrides)
3413 AC_SUBST_FILE(build_overrides)
3414 AC_SUBST_FILE(language_fragments)
3415 AC_SUBST_FILE(language_hooks)
3417 # Echo that links are built
3418 if [[ x$host = x$target ]]
3426 if [[ x$host != x$build ]]
3428 str3=" on a $build system"
3431 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3436 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3438 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3440 echo " ${str2}${str3}." 1>&2
3443 # Truncate the target if necessary
3444 if [[ x$host_truncate_target != x ]]; then
3445 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3448 # Configure the subdirectories
3449 # AC_CONFIG_SUBDIRS($subdirs)
3451 # Create the Makefile
3452 # and configure language subdirectories
3453 AC_OUTPUT($all_outputs,
3455 . $srcdir/configure.lang
3456 case x$CONFIG_HEADERS in
3457 xauto-config.h:config.in)
3460 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3461 # bootstrapping and the installation procedure can still use
3462 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3463 # FLAGS_TO_PASS has been modified to solve the problem there.
3464 # This is virtually a duplicate of what happens in configure.lang; we do
3465 # an extra check to make sure this only happens if ln -s can be used.
3466 if [[ "$symbolic_link" = "ln -s" ]]; then
3467 for d in .. ${subdirs} ; do
3468 if [[ $d != .. ]]; then
3471 for t in stage1 stage2 stage3 stage4 include
3474 $symbolic_link ../$t $t 2>/dev/null
3480 # Avoid having to add intl to our include paths.
3481 if test -f intl/libintl.h; then
3482 echo creating libintl.h
3483 echo '#include "intl/libintl.h"' >libintl.h
3490 target_alias='${target_alias}'
3492 subdirs='${subdirs}'
3493 oldstyle_subdirs='${oldstyle_subdirs}'
3494 symbolic_link='${symbolic_link}'
3495 version_dep='${version_dep}'
3496 program_transform_set='${program_transform_set}'
3497 program_transform_name='${program_transform_name}'
3498 dep_host_xmake_file='${dep_host_xmake_file}'
3499 host_xmake_file='${host_xmake_file}'
3500 dep_tmake_file='${dep_tmake_file}'
3501 tmake_file='${tmake_file}'
3502 thread_file='${thread_file}'
3503 version='${version}'
3504 local_prefix='${local_prefix}'
3505 build_install_headers_dir='${build_install_headers_dir}'
3506 build_exeext='${build_exeext}'
3507 out_file='${out_file}'
3508 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3509 SET_MAKE='${SET_MAKE}'
3510 build_broken_install='${build_broken_install}'
3511 target_list='${target_list}'
3512 target_overrides='${target_overrides}'
3513 host_overrides='${host_overrides}'
3514 cross_defines='${cross_defines}'
3515 cross_overrides='${cross_overrides}'
3516 build_overrides='${build_overrides}'