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 use of cpplib for C.
82 AC_ARG_ENABLE(c-cpplib,
83 [ --enable-c-cpplib Use cpplib for C.],
84 if [[[ x$enable_c_cpplib != xno ]]]; then
85 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
86 extra_c_flags=-DUSE_CPPLIB=1
89 # Enable Haifa scheduler.
91 [ --enable-haifa Use the experimental scheduler.
92 --disable-haifa Don't use the experimental scheduler for the
93 targets which normally enable it.])
96 # This is a work in progress...
97 AC_ARG_WITH(fast-fixincludes,
98 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
99 fast_fixinc="$with_fast_fixincludes",
103 # Pass with no value to take the default
104 # Pass with a value to specify a thread package
105 AC_ARG_ENABLE(threads,
106 [ --enable-threads enable thread usage for target GCC.
107 --enable-threads=LIB use LIB thread package for target GCC.],
108 if [[[ x$enable_threads = xno ]]]; then
113 enable_threads_flag=$enable_threads
114 # Check if a valid thread package
115 case x${enable_threads_flag} in
118 target_thread_file='single'
122 target_thread_file=''
124 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
125 xsolaris | xwin32 | xdce | xvxworks)
126 target_thread_file=$enable_threads_flag
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
153 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)
155 # Check for thread headers.
156 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
157 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
159 # See if the system preprocessor understands the ANSI C preprocessor
160 # stringification operator.
161 AC_MSG_CHECKING(whether cpp understands the stringify operator)
162 AC_CACHE_VAL(gcc_cv_c_have_stringify,
165 char *test = S(foo);],
166 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
167 AC_MSG_RESULT($gcc_cv_c_have_stringify)
168 if test $gcc_cv_c_have_stringify = yes; then
169 AC_DEFINE(HAVE_CPP_STRINGIFY)
172 # Use <inttypes.h> only if it exists,
173 # doesn't clash with <sys/types.h>, and declares intmax_t.
174 AC_MSG_CHECKING(for inttypes.h)
175 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
177 [#include <sys/types.h>
178 #include <inttypes.h>],
180 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
181 gcc_cv_header_inttypes_h=yes],
182 gcc_cv_header_inttypes_h=no)])
183 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
185 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
186 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
189 GCC_FUNC_VFPRINTF_DOPRNT
192 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
193 index rindex getenv atol sbrk abort atof)
205 build_install_headers_dir=install-headers-tar
210 host_truncate_target=
213 # Decode the host machine, then the target machine.
214 # For the host machine, we save the xm_file variable as host_xm_file;
215 # then we decode the target machine and forget everything else
216 # that came from the host machine.
217 for machine in $build $host $target; do
231 # Set this to force installation and use of collect2.
233 # Set this to override the default target model.
235 # Set this to control which fixincludes program to use.
236 if [[ x$fast_fixinc != xyes ]] ; then
237 fixincludes=fixincludes
238 else fixincludes=fixinc.sh ; fi
239 # Set this to control how the header file directory is installed.
240 install_headers_dir=install-headers-tar
241 # Set this to a non-empty list of args to pass to cpp if the target
242 # wants its .md file passed through cpp.
244 # Set this if directory names should be truncated to 14 characters.
246 # Set this if gdb needs a dir command with `dirname $out_file`
247 gdb_needs_out_file_path=
248 # Set this if the build machine requires executables to have a
251 # Set this to control which thread package will be used.
253 # Reinitialize these from the flag values every loop pass, since some
254 # configure entries modify them.
256 gnu_ld="$gnu_ld_flag"
257 enable_threads=$enable_threads_flag
259 # Set default cpu_type, tm_file and xm_file so it can be updated in
260 # each machine entry.
261 cpu_type=`echo $machine | sed 's/-.*$//'`
295 tm_file=${cpu_type}/${cpu_type}.h
296 xm_file=${cpu_type}/xm-${cpu_type}.h
298 # Set the default macros to define for GNU/Linux systems.
301 xm_defines="HAVE_ATEXIT POSIX NO_STAB_H BSTRING"
306 # Support site-specific machine types.
308 cpu_type=`echo $machine | sed -e 's/-.*//'`
309 rest=`echo $machine | sed -e "s/$cpu_type-//"`
310 xm_file=${cpu_type}/xm-$rest.h
311 tm_file=${cpu_type}/$rest.h
312 if [[ -f $srcdir/config/${cpu_type}/x-$rest ]] ; \
313 then xmake_file=${cpu_type}/x-$rest; \
316 if [[ -f $srcdir/config/${cpu_type}/t-$rest ]] ; \
317 then tmake_file=${cpu_type}/t-$rest; \
323 a29k-*-bsd* | a29k-*-sym1*)
324 tm_file="${tm_file} a29k/unix.h"
326 xmake_file=a29k/x-unix
329 a29k-*-udi | a29k-*-coff)
330 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
331 tmake_file=a29k/t-a29kbare
334 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
335 tmake_file=a29k/t-vx29k
336 extra_parts="crtbegin.o crtend.o"
337 thread_file='vxworks'
339 a29k-*-*) # Default a29k environment.
342 alpha*-*-linux-gnuecoff*)
343 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
345 target_cpu_default="MASK_GAS"
350 alpha*-*-linux-gnulibc1*)
351 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
353 target_cpu_default="MASK_GAS"
354 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
355 extra_parts="crtbegin.o crtend.o"
358 if [[ x$enable_threads = xyes ]]; then
363 tm_file="${tm_file} alpha/elf.h alpha/linux-elf.h alpha/linux.h"
365 target_cpu_default="MASK_GAS"
366 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
367 extra_parts="crtbegin.o crtend.o"
369 fixincludes=Makefile.in
371 if [[ x$enable_threads = xyes ]]; then
376 if [[ x$stabs = xyes ]]
378 tm_file="${tm_file} dbx.h"
380 if [[ x$gas != xyes ]]
382 extra_passes="mips-tfile mips-tdump"
387 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
390 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
393 tm_file="${tm_file} alpha/osf.h"
394 # Some versions of OSF4 (specifically X4.0-9 296.7) have
395 # a broken tar, so we use cpio instead.
396 install_headers_dir=install-headers-cpio
400 *-*-osf4.0[[b-z]] | *-*-osf4.[[1-9]]*)
401 target_cpu_default=MASK_SUPPORT_ARCH
406 tm_file="${tm_file} alpha/win-nt.h"
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
476 tmake_file=arm/t-bare
478 c1-convex-*) # Convex C1
481 fixincludes=Makefile.in
483 c2-convex-*) # Convex C2
486 fixincludes=Makefile.in
491 fixincludes=Makefile.in
496 fixincludes=Makefile.in
499 target_cpu_default=16
501 fixincludes=Makefile.in
503 clipper-intergraph-clix*)
504 tm_file="${tm_file} svr3.h clipper/clix.h"
505 xm_file=clipper/xm-clix.h
506 xmake_file=clipper/x-clix
507 extra_headers=va-clipper.h
508 extra_parts="crtbegin.o crtend.o"
509 install_headers_dir=install-headers-cpio
516 # This hasn't been upgraded to GCC 2.
517 # fx80-alliant-*) # Alliant FX/80
523 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
524 xm_file=pa/xm-papro.h
529 tm_file="${tm_file} pa/pa-osf.h"
531 fixincludes=Makefile.in
534 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
535 xm_file=pa/xm-papro.h
539 tm_file="${tm_file} pa/pa-osf.h"
541 fixincludes=Makefile.in
546 fixincludes=Makefile.in
550 fixincludes=Makefile.in
553 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
554 xm_file=pa/xm-pahpux.h
555 xmake_file=pa/x-pa-hpux
556 if [[ x$gas = xyes ]]
558 tm_file="${tm_file} pa/gas.h"
560 install_headers_dir=install-headers-cpio
563 hppa1.0-*-hpux8.0[[0-2]]*)
564 tm_file="${tm_file} pa/pa-hpux.h"
565 xm_file=pa/xm-pahpux.h
566 xmake_file=pa/x-pa-hpux
567 if [[ x$gas = xyes ]]
569 tm_file="${tm_file} pa/pa-gas.h"
571 tm_file="pa/pa-oldas.h ${tm_file}"
573 install_headers_dir=install-headers-cpio
576 hppa1.1-*-hpux8.0[[0-2]]*)
578 tm_file="${tm_file} pa/pa-hpux.h"
579 xm_file=pa/xm-pahpux.h
580 xmake_file=pa/x-pa-hpux
581 if [[ x$gas = xyes ]]
583 tm_file="${tm_file} pa/pa-gas.h"
585 tm_file="pa/pa-oldas.h ${tm_file}"
587 install_headers_dir=install-headers-cpio
592 tm_file="${tm_file} pa/pa-hpux.h"
593 xm_file=pa/xm-pahpux.h
594 xmake_file=pa/x-pa-hpux
595 if [[ x$gas = xyes ]]
597 tm_file="${tm_file} pa/pa-gas.h"
599 install_headers_dir=install-headers-cpio
603 tm_file="${tm_file} pa/pa-hpux.h"
604 xm_file=pa/xm-pahpux.h
605 xmake_file=pa/x-pa-hpux
606 if [[ x$gas = xyes ]]
608 tm_file="${tm_file} pa/pa-gas.h"
610 install_headers_dir=install-headers-cpio
615 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
616 xm_file=pa/xm-pahpux.h
617 xmake_file=pa/x-pa-hpux
619 if [[ x$gas = xyes ]]
621 tm_file="${tm_file} pa/pa-gas.h"
623 if [[ x$enable_threads = x ]]; then
624 enable_threads=$have_pthread_h
626 if [[ x$enable_threads = xyes ]]; then
628 tmake_file="${tmake_file} pa/t-dce-thr"
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"
641 if [[ x$enable_threads = x ]]; then
642 enable_threads=$have_pthread_h
644 if [[ x$enable_threads = xyes ]]; then
646 tmake_file="${tmake_file} pa/t-dce-thr"
648 install_headers_dir=install-headers-cpio
653 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
654 xm_file=pa/xm-pahpux.h
655 xmake_file=pa/x-pa-hpux
656 if [[ x$gas = xyes ]]
658 tm_file="${tm_file} pa/pa-gas.h"
660 install_headers_dir=install-headers-cpio
664 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
665 xm_file=pa/xm-pahpux.h
666 xmake_file=pa/x-pa-hpux
667 if [[ x$gas = xyes ]]
669 tm_file="${tm_file} pa/pa-gas.h"
671 install_headers_dir=install-headers-cpio
676 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
677 xm_file=pa/xm-pahpux.h
678 xmake_file=pa/x-pa-hpux
679 if [[ x$gas = xyes ]]
681 tm_file="${tm_file} pa/pa-gas.h"
683 install_headers_dir=install-headers-cpio
687 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
688 xm_file=pa/xm-pahpux.h
689 xmake_file=pa/x-pa-hpux
690 if [[ x$gas = xyes ]]
692 tm_file="${tm_file} pa/pa-gas.h"
694 install_headers_dir=install-headers-cpio
700 fixincludes=Makefile.in
704 i[[34567]]86-ibm-aix*) # IBM PS/2 running AIX
705 if [[ x$gas = xyes ]]
707 tm_file=i386/aix386.h
708 extra_parts="crtbegin.o crtend.o"
709 tmake_file=i386/t-crtstuff
711 tm_file=i386/aix386ng.h
714 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
716 xmake_file=i386/x-aix
718 i[[34567]]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
719 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
720 xm_defines="USG POSIX SMALL_ARG_MAX"
721 xmake_file=i386/x-ncr3000
722 if [[ x$stabs = xyes -a x$gas = xyes ]]
724 tm_file=i386/sysv4gdb.h
728 extra_parts="crtbegin.o crtend.o"
729 tmake_file=i386/t-crtpic
733 xm_file=i386/xm-next.h
734 tmake_file=i386/t-next
735 xmake_file=i386/x-next
736 extra_objs=nextstep.o
737 if [[ x$enable_threads = xyes ]]; then
741 i[[34567]]86-sequent-bsd*) # 80386 from Sequent
743 if [[ x$gas = xyes ]]
745 tm_file=i386/seq-gas.h
747 tm_file=i386/sequent.h
750 i[[34567]]86-sequent-ptx1*)
751 xm_defines="USG SVR3"
752 xmake_file=i386/x-sysv3
753 tm_file=i386/seq-sysv3.h
754 tmake_file=i386/t-crtstuff
755 fixincludes=fixinc.ptx
756 extra_parts="crtbegin.o crtend.o"
757 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
768 i[[34567]]86-sequent-ptx4* | i[[34567]]86-sequent-sysv4*)
769 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
770 xm_defines="USG POSIX SMALL_ARG_MAX"
772 tm_file=i386/ptx4-i.h
774 extra_parts="crtbegin.o crtend.o"
775 fixincludes=fixinc.ptx
776 install_headers_dir=install-headers-cpio
778 i386-sun-sunos*) # Sun i386 roadrunner
783 i[[34567]]86-wrs-vxworks*)
784 tm_file=i386/vxi386.h
785 tmake_file=i386/t-i386bare
787 i[[34567]]86-*-aout*)
788 tm_file=i386/i386-aout.h
789 tmake_file=i386/t-i386bare
791 i[[34567]]86-*-bsdi* | i[[34567]]86-*-bsd386*)
792 tm_file=i386/bsd386.h
793 # tmake_file=t-libc-ok
796 tm_file=i386/386bsd.h
797 # tmake_file=t-libc-ok
798 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
801 i[[34567]]86-*-freebsdelf*)
802 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
803 # On FreeBSD, the headers are already ok, except for math.h.
804 fixincludes=fixinc.wrap
805 tmake_file=i386/t-freebsd
810 i[[34567]]86-*-freebsd*)
811 tm_file=i386/freebsd.h
812 # On FreeBSD, the headers are already ok, except for math.h.
813 fixincludes=fixinc.wrap
814 tmake_file=i386/t-freebsd
816 i[[34567]]86-*-netbsd*)
817 tm_file=i386/netbsd.h
818 # On NetBSD, the headers are already okay, except for math.h.
819 fixincludes=fixinc.wrap
822 i[[34567]]86-*-coff*)
823 tm_file=i386/i386-coff.h
824 tmake_file=i386/t-i386bare
826 i[[34567]]86-*-isc*) # 80386 running ISC system
827 xm_file="${xm_file} i386/xm-isc.h"
828 xm_defines="USG SVR3"
830 i[[34567]]86-*-isc[[34]]*)
831 xmake_file=i386/x-isc3
834 xmake_file=i386/x-isc
837 if [[ x$gas = xyes -a x$stabs = xyes ]]
839 tm_file=i386/iscdbx.h
840 tmake_file=i386/t-svr3dbx
841 extra_parts="svr3.ifile svr3z.ifile"
843 tm_file=i386/isccoff.h
844 tmake_file=i386/t-crtstuff
845 extra_parts="crtbegin.o crtend.o"
847 install_headers_dir=install-headers-cpio
849 i[[34567]]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
850 # with a.out format using
852 xmake_file=x-linux-aout
853 tmake_file="t-linux-aout i386/t-crtstuff"
854 tm_file=i386/linux-oldld.h
855 fixincludes=Makefile.in #On Linux, the headers are ok already.
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 #On Linux, the headers are ok already.
866 i[[34567]]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
867 # with ELF format using the
868 # GNU/Linux C library 5
871 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
872 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
873 fixincludes=Makefile.in #On Linux, the headers are ok already.
875 if [[ x$enable_threads = xyes ]]; then
879 i[[34567]]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
880 # with ELF format using glibc 2
881 # aka GNU/Linux C library 6
884 tmake_file="t-linux i386/t-crtstuff"
885 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
886 fixincludes=Makefile.in #On Linux, the headers are ok already.
888 if [[ x$enable_threads = xyes ]]; then
894 i[[34567]]86-go32-msdos | i[[34567]]86-*-go32*)
895 xm_file=i386/xm-go32.h
897 tmake_file=i386/t-go32
899 i[[34567]]86-pc-msdosdjgpp*)
900 xm_file=i386/xm-go32.h
902 tmake_file=i386/t-go32
906 i[[34567]]86-moss-msdos* | i[[34567]]86-*-moss*)
909 fixincludes=Makefile.in
913 i[[34567]]86-*-lynxos*)
914 if [[ x$gas = xyes ]]
918 tm_file=i386/lynx-ng.h
920 xm_file=i386/xm-lynx.h
921 tmake_file=i386/t-i386bare
924 i[[34567]]86-*-mach*)
926 # tmake_file=t-libc-ok
929 i[[34567]]86-*-osfrose*) # 386 using OSF/rose
930 if [[ x$elf = xyes ]]
932 tm_file=i386/osfelf.h
935 tm_file=i386/osfrose.h
938 xm_file="i386/xm-osf.h ${xm_file}"
939 xmake_file=i386/x-osfrose
940 tmake_file=i386/t-osf
943 i[[34567]]86-go32-rtems*)
945 xm_file=i386/xm-go32.h
946 tm_file=i386/go32-rtems.h
947 tmake_file="i386/t-go32 t-rtems"
949 i[[34567]]86-*-rtemself*)
951 tm_file=i386/rtemself.h
952 tmake_file="i386/t-i386bare t-rtems"
954 i[[34567]]86-*-rtems*)
957 tmake_file="i386/t-i386bare t-rtems"
959 i[[34567]]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
960 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
961 xm_defines="USG SVR3"
962 xmake_file=i386/x-sco5
963 fixincludes=fixinc.sco
964 install_headers_dir=install-headers-cpio
966 tmake_file=i386/t-sco5
967 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
969 i[[34567]]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
970 xm_file="${xm_file} i386/xm-sco.h"
971 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
972 xmake_file=i386/x-sco4
973 fixincludes=fixinc.sco
974 install_headers_dir=install-headers-cpio
975 if [[ x$stabs = xyes ]]
977 tm_file=i386/sco4dbx.h
978 tmake_file=i386/t-svr3dbx
979 extra_parts="svr3.ifile svr3z.rfile"
982 tmake_file=i386/t-crtstuff
983 extra_parts="crtbegin.o crtend.o"
987 i[[34567]]86-*-sco*) # 80386 running SCO system
988 xm_file=i386/xm-sco.h
989 xmake_file=i386/x-sco
990 install_headers_dir=install-headers-cpio
991 if [[ x$stabs = xyes ]]
993 tm_file=i386/scodbx.h
994 tmake_file=i386/t-svr3dbx
995 extra_parts="svr3.ifile svr3z.rfile"
998 extra_parts="crtbegin.o crtend.o"
999 tmake_file=i386/t-crtstuff
1003 i[[34567]]86-*-solaris2*)
1004 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1005 xm_defines="USG POSIX SMALL_ARG_MAX"
1006 if [[ x$stabs = xyes ]]
1008 tm_file=i386/sol2dbg.h
1012 tmake_file=i386/t-sol2
1013 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1016 *-*-solaris2.[[0-4]])
1017 fixincludes=fixinc.svr4;;
1019 fixincludes=fixinc.wrap;;
1021 if [[ x$enable_threads = xyes ]]; then
1022 thread_file='solaris'
1025 i[[34567]]86-*-sysv5*) # Intel x86 on System V Release 5
1026 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1027 xm_defines="USG POSIX"
1028 tm_file=i386/sysv4.h
1029 if [[ x$stabs = xyes ]]
1031 tm_file="${tm_file} dbx.h"
1033 tmake_file=i386/t-crtpic
1035 extra_parts="crtbegin.o crtend.o"
1036 fixincludes=Makefile.in # The headers are just fine, thank you.
1038 i[[34567]]86-*-sysv4*) # Intel 80386's running system V.4
1039 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1040 xm_defines="USG POSIX SMALL_ARG_MAX"
1041 tm_file=i386/sysv4.h
1042 if [[ x$stabs = xyes ]]
1044 tm_file="${tm_file} dbx.h"
1046 tmake_file=i386/t-crtpic
1048 extra_parts="crtbegin.o crtend.o"
1050 i[[34567]]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1052 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1053 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1054 fixincludes=Makefile.in #Don't do it on OSF/1
1055 if [[ x$stabs = xyes ]]
1057 tm_file=i386/osf1elfgdb.h
1059 tm_file=i386/osf1elf.h
1061 tmake_file=i386/t-osf1elf
1062 xmake_file=i386/x-osf1elf
1063 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1065 i[[34567]]86-*-sysv*) # Intel 80386's running system V
1066 xm_defines="USG SVR3"
1067 xmake_file=i386/x-sysv3
1068 if [[ x$gas = xyes ]]
1070 if [[ x$stabs = xyes ]]
1072 tm_file=i386/svr3dbx.h
1073 tmake_file=i386/t-svr3dbx
1074 extra_parts="svr3.ifile svr3z.rfile"
1076 tm_file=i386/svr3gas.h
1077 extra_parts="crtbegin.o crtend.o"
1078 tmake_file=i386/t-crtstuff
1081 tm_file=i386/sysv3.h
1082 extra_parts="crtbegin.o crtend.o"
1083 tmake_file=i386/t-crtstuff
1086 i386-*-vsta) # Intel 80386's running VSTa kernel
1087 xm_file="${xm_file} i386/xm-vsta.h"
1089 tmake_file=i386/t-vsta
1090 xmake_file=i386/x-vsta
1092 i[[34567]]86-*-pe | i[[34567]]86-*-cygwin32)
1093 xm_file="${xm_file} i386/xm-cygwin32.h"
1094 tmake_file=i386/t-cygwin32
1095 tm_file=i386/cygwin32.h
1096 xmake_file=i386/x-cygwin32
1098 fixincludes=Makefile.in
1099 if [[ x$enable_threads = xyes ]]; then
1104 i[[34567]]86-*-mingw32*)
1105 tm_file=i386/mingw32.h
1106 xm_file="${xm_file} i386/xm-mingw32.h"
1107 tmake_file=i386/t-cygwin32
1109 xmake_file=i386/x-cygwin32
1110 fixincludes=Makefile.in
1111 if [[ x$enable_threads = xyes ]]; then
1118 *minwg32crt* | *mingw32*)
1119 tm_file="${tm_file} i386/crtdll.h"
1123 i[[34567]]86-*-winnt3*)
1124 tm_file=i386/win-nt.h
1125 out_file=i386/i386.c
1126 xm_file="xm-winnt.h ${xm_file}"
1127 xmake_file=winnt/x-winnt
1128 tmake_file=i386/t-winnt
1129 extra_host_objs="winnt.o oldnames.o"
1130 extra_gcc_objs="spawnv.o oldnames.o"
1131 fixincludes=fixinc.winnt
1132 if [[ x$gnu_ld != xyes ]]
1134 extra_programs=ld.exe
1136 if [[ x$enable_threads = xyes ]]; then
1140 i[[34567]]86-dg-dgux*)
1141 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1142 xm_defines="USG POSIX"
1143 out_file=i386/dgux.c
1145 tmake_file=i386/t-dgux
1146 xmake_file=i386/x-dgux
1147 fixincludes=fixinc.dgux
1148 install_headers_dir=install-headers-cpio
1150 i860-alliant-*) # Alliant FX/2800
1151 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1152 xm_file="${xm_file}"
1153 xmake_file=i860/x-fx2800
1154 tmake_file=i860/t-fx2800
1155 extra_parts="crtbegin.o crtend.o"
1158 tm_file="${tm_file} i860/bsd.h"
1159 if [[ x$gas = xyes ]]
1161 tm_file="${tm_file} i860/bsd-gas.h"
1166 tm_file="${tm_file} i860/mach.h"
1167 tmake_file=t-libc-ok
1169 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1170 tm_file="${tm_file} svr3.h i860/paragon.h"
1171 xm_defines="USG SVR3"
1175 tm_file="${tm_file} svr3.h i860/sysv3.h"
1176 xm_defines="USG SVR3"
1177 xmake_file=i860/x-sysv3
1178 extra_parts="crtbegin.o crtend.o"
1181 tm_file="${tm_file} svr4.h i860/sysv4.h"
1182 xm_defines="USG SVR3"
1183 xmake_file=i860/x-sysv4
1185 extra_parts="crtbegin.o crtend.o"
1187 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1188 tm_file="${tm_file} i960/vx960.h"
1189 tmake_file=i960/t-vxworks960
1191 thread_file='vxworks'
1193 i960-wrs-vxworks5* | i960-wrs-vxworks)
1194 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1195 tmake_file=i960/t-vxworks960
1197 thread_file='vxworks'
1200 tm_file="${tm_file} i960/vx960.h"
1201 tmake_file=i960/t-vxworks960
1203 thread_file='vxworks'
1206 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1207 tmake_file=i960/t-960bare
1211 tmake_file="i960/t-960bare t-rtems"
1212 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1215 i960-*-*) # Default i960 environment.
1219 extra_parts="crtinit.o crtfini.o"
1221 m68000-convergent-sysv*)
1223 xm_file="m68k/xm-3b1.h ${xm_file}"
1226 extra_headers=math-68881.h
1228 m68000-hp-bsd*) # HP 9000/200 running BSD
1229 tm_file=m68k/hp2bsd.h
1230 xmake_file=m68k/x-hp2bsd
1232 extra_headers=math-68881.h
1234 m68000-hp-hpux*) # HP 9000 series 300
1235 xm_file="xm_alloca.h ${xm_file}"
1236 xm_defines="USG NO_SYS_SIGLIST"
1237 if [[ x$gas = xyes ]]
1239 xmake_file=m68k/x-hp320g
1240 tm_file=m68k/hp310g.h
1242 xmake_file=m68k/x-hp320
1243 tm_file=m68k/hp310.h
1245 install_headers_dir=install-headers-cpio
1247 extra_headers=math-68881.h
1252 extra_headers=math-68881.h
1255 tm_file=m68k/sun2o4.h
1257 extra_headers=math-68881.h
1260 xm_file="m68k/xm-3b1.h ${xm_file}"
1262 if [[ x$gas = xyes ]]
1269 extra_headers=math-68881.h
1271 m68k-apple-aux*) # Apple Macintosh running A/UX
1272 xm_defines="USG AUX"
1273 tmake_file=m68k/t-aux
1274 install_headers_dir=install-headers-cpio
1275 extra_headers=math-68881.h
1276 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1278 if [[ "$gnu_ld" = yes ]]
1280 tm_file="${tm_file} m68k/auxgld.h"
1282 tm_file="${tm_file} m68k/auxld.h"
1284 if [[ "$gas" = yes ]]
1286 tm_file="${tm_file} m68k/auxgas.h"
1288 tm_file="${tm_file} m68k/auxas.h"
1290 tm_file="${tm_file} m68k/a-ux.h"
1293 tm_file=m68k/apollo68.h
1294 xmake_file=m68k/x-apollo68
1296 extra_headers=math-68881.h
1298 m68k-altos-sysv*) # Altos 3068
1299 if [[ x$gas = xyes ]]
1301 tm_file=m68k/altos3068.h
1304 echo "The Altos is supported only with the GNU assembler" 1>&2
1307 extra_headers=math-68881.h
1309 m68k-bull-sysv*) # Bull DPX/2
1310 if [[ x$gas = xyes ]]
1312 if [[ x$stabs = xyes ]]
1314 tm_file=m68k/dpx2cdbx.h
1316 tm_file=m68k/dpx2g.h
1321 xm_file="xm-alloca.h ${xm_file}"
1323 xmake_file=m68k/x-dpx2
1325 extra_headers=math-68881.h
1327 m68k-atari-sysv4*) # Atari variant of V.4.
1328 tm_file=m68k/atari.h
1329 xm_file="xm-alloca.h ${xm_file}"
1330 xm_defines="USG FULL_PROTOTYPES"
1332 extra_parts="crtbegin.o crtend.o"
1333 extra_headers=math-68881.h
1335 m68k-motorola-sysv*)
1336 tm_file=m68k/mot3300.h
1337 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1338 xm_defines=NO_SYS_SIGLIST
1339 if [[ x$gas = xyes ]]
1341 xmake_file=m68k/x-mot3300-gas
1342 if [[ x$gnu_ld = xyes ]]
1344 tmake_file=m68k/t-mot3300-gald
1346 tmake_file=m68k/t-mot3300-gas
1350 xmake_file=m68k/x-mot3300
1351 if [[ x$gnu_ld = xyes ]]
1353 tmake_file=m68k/t-mot3300-gld
1355 tmake_file=m68k/t-mot3300
1359 gdb_needs_out_file_path=yes
1360 extra_parts="crt0.o mcrt0.o"
1361 extra_headers=math-68881.h
1363 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1364 tm_file=m68k/tower-as.h
1365 xm_defines="USG SVR3"
1366 xmake_file=m68k/x-tower
1367 extra_parts="crtbegin.o crtend.o"
1368 extra_headers=math-68881.h
1371 tm_file=m68k/plexus.h
1372 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1375 extra_headers=math-68881.h
1379 xm_file="xm-alloca.h ${xm_file}"
1381 extra_headers=math-68881.h
1384 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1385 xm_defines="USG unos"
1386 xmake_file=m68k/x-crds
1389 extra_headers=math-68881.h
1391 m68k-cbm-sysv4*) # Commodore variant of V.4.
1393 xm_file="xm-alloca.h ${xm_file}"
1394 xm_defines="USG FULL_PROTOTYPES"
1395 xmake_file=m68k/x-amix
1397 extra_parts="crtbegin.o crtend.o"
1398 extra_headers=math-68881.h
1401 tm_file=m68k/ccur-GAS.h
1402 xmake_file=m68k/x-ccur
1403 extra_headers=math-68881.h
1406 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1407 tm_file=m68k/hp3bsd44.h
1408 xmake_file=m68k/x-hp3bsd44
1410 extra_headers=math-68881.h
1412 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1413 tm_file=m68k/hp3bsd.h
1415 extra_headers=math-68881.h
1418 if [[ x$with_fp = xno ]]
1420 tm_file=m68k/isi-nfp.h
1425 extra_headers=math-68881.h
1427 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1428 xm_file="xm_alloca.h ${xm_file}"
1429 xm_defines="USG NO_SYS_SIGLIST"
1430 if [[ x$gas = xyes ]]
1432 xmake_file=m68k/x-hp320g
1433 tm_file=m68k/hp320g.h
1435 xmake_file=m68k/x-hp320
1436 tm_file=m68k/hpux7.h
1438 install_headers_dir=install-headers-cpio
1440 extra_headers=math-68881.h
1442 m68k-hp-hpux*) # HP 9000 series 300
1443 xm_file="xm_alloca.h ${xm_file}"
1444 xm_defines="USG NO_SYS_SIGLIST"
1445 if [[ x$gas = xyes ]]
1447 xmake_file=m68k/x-hp320g
1448 tm_file=m68k/hp320g.h
1450 xmake_file=m68k/x-hp320
1451 tm_file=m68k/hp320.h
1453 install_headers_dir=install-headers-cpio
1455 extra_headers=math-68881.h
1458 tm_file=m68k/sun3mach.h
1460 extra_headers=math-68881.h
1463 if [[ x$gas = xyes ]]
1465 tm_file=m68k/news3gas.h
1467 tm_file=m68k/news3.h
1470 extra_headers=math-68881.h
1472 m68k-sony-bsd* | m68k-sony-newsos*)
1473 if [[ x$gas = xyes ]]
1475 tm_file=m68k/newsgas.h
1480 extra_headers=math-68881.h
1482 m68k-next-nextstep2*)
1483 tm_file=m68k/next21.h
1484 xm_file="m68k/xm-next.h ${xm_file}"
1485 tmake_file=m68k/t-next
1486 xmake_file=m68k/x-next
1487 extra_objs=nextstep.o
1488 extra_headers=math-68881.h
1491 m68k-next-nextstep3*)
1493 xm_file="m68k/xm-next.h ${xm_file}"
1494 tmake_file=m68k/t-next
1495 xmake_file=m68k/x-next
1496 extra_objs=nextstep.o
1497 extra_headers=math-68881.h
1498 if [[ x$enable_threads = xyes ]]; then
1503 if [[ x$with_fp = xno ]]
1505 tm_file=m68k/sun3n3.h
1507 tm_file=m68k/sun3o3.h
1510 extra_headers=math-68881.h
1512 m68k-sun-sunos*) # For SunOS 4 (the default).
1513 if [[ x$with_fp = xno ]]
1515 tm_file=m68k/sun3n.h
1520 extra_headers=math-68881.h
1523 tm_file=m68k/vxm68k.h
1524 tmake_file=m68k/t-vxworks68
1525 extra_headers=math-68881.h
1526 thread_file='vxworks'
1529 tmake_file=m68k/t-m68kbare
1530 tm_file="m68k/m68k-aout.h libgloss.h"
1531 extra_headers=math-68881.h
1534 tmake_file=m68k/t-m68kbare
1535 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1536 extra_headers=math-68881.h
1539 if [[ x$gas = xyes ]]
1543 tm_file=m68k/lynx-ng.h
1545 xm_file=m68k/xm-lynx.h
1547 tmake_file=m68k/t-lynx
1548 extra_headers=math-68881.h
1551 tm_file=m68k/netbsd.h
1552 # On NetBSD, the headers are already okay, except for math.h.
1553 fixincludes=fixinc.wrap
1556 m68k-*-sysv3*) # Motorola m68k's running system V.3
1557 xm_file="xm-alloca.h ${xm_file}"
1559 xmake_file=m68k/x-m68kv
1560 extra_parts="crtbegin.o crtend.o"
1561 extra_headers=math-68881.h
1563 m68k-*-sysv4*) # Motorola m68k's running system V.4
1564 tm_file=m68k/m68kv4.h
1565 xm_file="xm-alloca.h ${xm_file}"
1568 extra_parts="crtbegin.o crtend.o"
1569 extra_headers=math-68881.h
1571 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1574 tm_file=m68k/linux-aout.h
1575 tmake_file="t-linux-aout m68k/t-linux-aout"
1576 fixincludes=Makefile.in # The headers are ok already.
1577 extra_headers=math-68881.h
1580 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1581 # with ELF format using the
1582 # GNU/Linux C library 5
1584 tm_file=m68k/linux.h
1585 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1586 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1587 fixincludes=Makefile.in # The headers are ok already.
1588 extra_headers=math-68881.h
1591 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1592 # with ELF format using glibc 2
1593 # aka the GNU/Linux C library 6.
1595 tm_file=m68k/linux.h
1596 tmake_file="t-linux m68k/t-linux"
1597 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1598 fixincludes=Makefile.in # The headers are ok already.
1599 extra_headers=math-68881.h
1601 if [[ x$enable_threads = xyes ]]; then
1606 tmake_file=m68k/t-m68kbare
1607 tm_file=m68k/m68k-psos.h
1608 extra_headers=math-68881.h
1611 tmake_file="m68k/t-m68kbare t-rtems"
1612 tm_file=m68k/rtems.h
1613 extra_headers=math-68881.h
1619 tm_file=m88k/dguxbcs.h
1620 tmake_file=m88k/t-dguxbcs
1624 tmake_file=m88k/t-dgux
1627 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1628 xmake_file=m88k/x-dgux
1629 if [[ x$gas = xyes ]]
1631 tmake_file=m88k/t-dgux-gas
1633 fixincludes=fixinc.dgux
1635 m88k-dolphin-sysv3*)
1636 tm_file=m88k/dolph.h
1637 extra_parts="crtbegin.o crtend.o"
1638 xm_file="m88k/xm-sysv3.h ${xm_file}"
1639 xmake_file=m88k/x-dolph
1640 if [[ x$gas = xyes ]]
1642 tmake_file=m88k/t-m88k-gas
1645 m88k-tektronix-sysv3)
1646 tm_file=m88k/tekXD88.h
1647 extra_parts="crtbegin.o crtend.o"
1648 xm_file="m88k/xm-sysv3.h ${xm_file}"
1649 xmake_file=m88k/x-tekXD88
1650 if [[ x$gas = xyes ]]
1652 tmake_file=m88k/t-m88k-gas
1656 tm_file=m88k/m88k-aout.h
1659 tm_file=m88k/m88k-coff.h
1660 tmake_file=m88k/t-bug
1664 extra_parts="crtbegin.o crtend.o"
1665 if [[ x$gas = xyes ]]
1667 tmake_file=m88k/t-luna-gas
1669 tmake_file=m88k/t-luna
1673 tm_file=m88k/sysv3.h
1674 extra_parts="crtbegin.o crtend.o"
1675 xm_file="m88k/xm-sysv3.h ${xm_file}"
1676 xmake_file=m88k/x-sysv3
1677 if [[ x$gas = xyes ]]
1679 tmake_file=m88k/t-m88k-gas
1683 tm_file=m88k/sysv4.h
1684 extra_parts="crtbegin.o crtend.o"
1685 xmake_file=m88k/x-sysv4
1686 tmake_file=m88k/t-sysv4
1688 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1689 tm_file=mips/iris6.h
1690 xm_file=mips/xm-iris6.h
1691 fixincludes=fixinc.irix
1692 xmake_file=mips/x-iris6
1693 tmake_file=mips/t-iris6
1694 if [[ x$enable_threads = xyes ]]; then
1699 tm_file="mips/elf.h libgloss.h"
1700 tmake_file=mips/t-ecoff
1703 extra_parts="crtbegin.o crtend.o"
1704 # thread_file='vxworks'
1706 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1707 tm_file="mips/iris6.h mips/cross64.h"
1708 xm_defines="USG HAVE_INTTYPES_H"
1709 fixincludes=Makefile.in
1710 xmake_file=mips/x-iris
1711 tmake_file=mips/t-cross64
1712 # See comment in mips/iris[56].h files.
1714 if [[ x$enable_threads = xyes ]]; then
1719 if [[ x$gas = xyes ]]
1721 if [[ x$stabs = xyes ]]
1723 tm_file=mips/iris5gdb.h
1725 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1728 tm_file=mips/sni-svr4.h
1731 xmake_file=mips/x-sni-svr4
1732 tmake_file=mips/t-mips-gas
1733 if [[ x$gnu_ld != xyes ]]
1738 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1739 if [[ x$gas = xyes ]]
1741 tm_file="mips/iris5.h mips/iris5gas.h"
1742 if [[ x$stabs = xyes ]]
1744 tm_file="${tm_file} dbx.h"
1747 tm_file=mips/iris5.h
1749 xm_defines="USG HAVE_INTTYPES_H"
1750 fixincludes=fixinc.irix
1751 xmake_file=mips/x-iris
1752 # mips-tfile doesn't work yet
1753 tmake_file=mips/t-mips-gas
1754 # See comment in mips/iris5.h file.
1756 if [[ x$enable_threads = xyes ]]; then
1760 mips-sgi-irix4loser*) # Mostly like a MIPS.
1761 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1762 if [[ x$stabs = xyes ]]; then
1763 tm_file="${tm_file} dbx.h"
1766 xmake_file=mips/x-iris
1767 if [[ x$gas = xyes ]]
1769 tmake_file=mips/t-mips-gas
1771 extra_passes="mips-tfile mips-tdump"
1773 if [[ x$gnu_ld != xyes ]]
1777 if [[ x$enable_threads = xyes ]]; then
1781 mips-sgi-irix4*) # Mostly like a MIPS.
1782 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
1783 if [[ x$stabs = xyes ]]; then
1784 tm_file="${tm_file} dbx.h"
1787 xmake_file=mips/x-iris
1788 if [[ x$gas = xyes ]]
1790 tmake_file=mips/t-mips-gas
1792 extra_passes="mips-tfile mips-tdump"
1794 if [[ x$gnu_ld != xyes ]]
1798 if [[ x$enable_threads = xyes ]]; then
1802 mips-sgi-*) # Mostly like a MIPS.
1803 tm_file="mips/iris3.h ${tm_file}"
1804 if [[ x$stabs = xyes ]]; then
1805 tm_file="${tm_file} dbx.h"
1808 xmake_file=mips/x-iris3
1809 if [[ x$gas = xyes ]]
1811 tmake_file=mips/t-mips-gas
1813 extra_passes="mips-tfile mips-tdump"
1815 if [[ x$gnu_ld != xyes ]]
1820 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
1821 tm_file="mips/osfrose.h ${tm_file}"
1822 xmake_file=mips/x-osfrose
1823 tmake_file=mips/t-osfrose
1824 extra_objs=halfpic.o
1827 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
1828 tm_file=mips/dec-osf1.h
1829 if [[ x$stabs = xyes ]]; then
1830 tm_file="${tm_file} dbx.h"
1832 xmake_file=mips/x-dec-osf1
1833 if [[ x$gas = xyes ]]
1835 tmake_file=mips/t-mips-gas
1837 tmake_file=mips/t-ultrix
1838 extra_passes="mips-tfile mips-tdump"
1840 if [[ x$gnu_ld != xyes ]]
1845 mips-dec-bsd*) # Decstation running 4.4 BSD
1846 tm_file=mips/dec-bsd.h
1848 if [[ x$gas = xyes ]]
1850 tmake_file=mips/t-mips-gas
1852 tmake_file=mips/t-ultrix
1853 extra_passes="mips-tfile mips-tdump"
1855 if [[ x$gnu_ld != xyes ]]
1860 mips-dec-netbsd*) # Decstation running NetBSD
1861 tm_file=mips/netbsd.h
1862 # On NetBSD, the headers are already okay, except for math.h.
1863 fixincludes=fixinc.wrap
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 ]]
1924 mips-*-ultrix* | mips-dec-mach3) # Decstation.
1925 tm_file="mips/ultrix.h ${tm_file}"
1926 if [[ x$stabs = xyes ]]; then
1927 tm_file="${tm_file} dbx.h"
1929 xmake_file=mips/x-ultrix
1930 if [[ x$gas = xyes ]]
1932 tmake_file=mips/t-mips-gas
1934 tmake_file=mips/t-ultrix
1935 extra_passes="mips-tfile mips-tdump"
1937 if [[ x$gnu_ld != xyes ]]
1942 mips-*-riscos[[56789]]bsd*)
1943 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
1944 if [[ x$stabs = xyes ]]; then
1945 tm_file="${tm_file} dbx.h"
1947 if [[ x$gas = xyes ]]
1949 tmake_file=mips/t-bsd-gas
1951 tmake_file=mips/t-bsd
1952 extra_passes="mips-tfile mips-tdump"
1954 if [[ x$gnu_ld != xyes ]]
1959 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[[1234]]bsd*)
1960 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
1961 if [[ x$stabs = xyes ]]; then
1962 tm_file="${tm_file} dbx.h"
1964 if [[ x$gas = xyes ]]
1966 tmake_file=mips/t-bsd-gas
1968 tmake_file=mips/t-bsd
1969 extra_passes="mips-tfile mips-tdump"
1971 if [[ x$gnu_ld != xyes ]]
1976 mips-*-riscos[[56789]]sysv4*)
1977 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
1978 if [[ x$stabs = xyes ]]; then
1979 tm_file="${tm_file} dbx.h"
1981 xm_file="xm-siglist.h ${xm_file}"
1982 xmake_file=mips/x-sysv
1983 if [[ x$gas = xyes ]]
1985 tmake_file=mips/t-svr4-gas
1987 tmake_file=mips/t-svr4
1988 extra_passes="mips-tfile mips-tdump"
1990 if [[ x$gnu_ld != xyes ]]
1995 mips-*-sysv4* | mips-*-riscos[[1234]]sysv4* | mips-*-riscossysv4*)
1996 tm_file="mips/svr4-4.h ${tm_file}"
1997 if [[ x$stabs = xyes ]]; then
1998 tm_file="${tm_file} dbx.h"
2001 xmake_file=mips/x-sysv
2002 if [[ x$gas = xyes ]]
2004 tmake_file=mips/t-svr4-gas
2006 tmake_file=mips/t-svr4
2007 extra_passes="mips-tfile mips-tdump"
2009 if [[ x$gnu_ld != xyes ]]
2014 mips-*-riscos[[56789]]sysv*)
2015 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2016 if [[ x$stabs = xyes ]]; then
2017 tm_file="${tm_file} dbx.h"
2020 xmake_file=mips/x-sysv
2021 if [[ x$gas = xyes ]]
2023 tmake_file=mips/t-svr3-gas
2025 tmake_file=mips/t-svr3
2026 extra_passes="mips-tfile mips-tdump"
2028 if [[ x$gnu_ld != xyes ]]
2033 mips-*-sysv* | mips-*-riscos*sysv*)
2034 tm_file="mips/svr3-4.h ${tm_file}"
2035 if [[ x$stabs = xyes ]]; then
2036 tm_file="${tm_file} dbx.h"
2039 xmake_file=mips/x-sysv
2040 if [[ x$gas = xyes ]]
2042 tmake_file=mips/t-svr3-gas
2044 tmake_file=mips/t-svr3
2045 extra_passes="mips-tfile mips-tdump"
2047 if [[ x$gnu_ld != xyes ]]
2052 mips-*-riscos[[56789]]*) # Default MIPS RISC-OS 5.0.
2053 tm_file=mips/mips-5.h
2054 if [[ x$stabs = xyes ]]; then
2055 tm_file="${tm_file} dbx.h"
2057 if [[ x$gas = xyes ]]
2059 tmake_file=mips/t-mips-gas
2061 extra_passes="mips-tfile mips-tdump"
2063 if [[ x$gnu_ld != xyes ]]
2071 tm_file=mips/ecoffl.h
2072 if [[ x$stabs = xyes ]]; then
2073 tm_file="${tm_file} dbx.h"
2075 tmake_file=mips/t-ecoff
2078 tm_file="gofast.h mips/ecoff.h"
2079 if [[ x$stabs = xyes ]]; then
2080 tm_file="${tm_file} dbx.h"
2082 tmake_file=mips/t-ecoff
2085 tm_file="mips/elfl.h libgloss.h"
2086 tmake_file=mips/t-ecoff
2089 tm_file="mips/elf.h libgloss.h"
2090 tmake_file=mips/t-ecoff
2093 tm_file="mips/elfl64.h libgloss.h"
2094 tmake_file=mips/t-ecoff
2096 mips64orionel-*-elf*)
2097 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2098 tmake_file=mips/t-ecoff
2101 tm_file="mips/elf64.h libgloss.h"
2102 tmake_file=mips/t-ecoff
2105 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2106 tmake_file=mips/t-ecoff
2108 mips64orion-*-rtems*)
2109 tm_file="mips/elforion.h mips/elfl64.h mips/rtems64.h"
2110 tmake_file="mips/t-ecoff t-rtems"
2113 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2114 tmake_file=mips/t-r3900
2117 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2118 tmake_file=mips/t-r3900
2120 mips-*-*) # Default MIPS RISC-OS 4.0.
2121 if [[ x$stabs = xyes ]]; then
2122 tm_file="${tm_file} dbx.h"
2124 if [[ x$gas = xyes ]]
2126 tmake_file=mips/t-mips-gas
2128 extra_passes="mips-tfile mips-tdump"
2130 if [[ x$gnu_ld != xyes ]]
2137 tm_file="mn10200/mn10200.h"
2138 if [[ x$stabs = xyes ]]
2140 tm_file="${tm_file} dbx.h"
2146 tm_file="mn10300/mn10300.h"
2147 if [[ x$stabs = xyes ]]
2149 tm_file="${tm_file} dbx.h"
2154 tm_file=ns32k/encore.h
2158 tm_file=ns32k/sequent.h
2162 tm_file=ns32k/tek6100.h
2166 tm_file=ns32k/tek6200.h
2169 # This has not been updated to GCC 2.
2172 # xmake_file=ns32k/x-genix
2173 # tm_file=ns32k/genix.h
2177 tm_file=ns32k/merlin.h
2181 tm_file=ns32k/pc532-mach.h
2185 tm_file=ns32k/pc532-min.h
2186 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2190 ns32k-pc532-netbsd*)
2191 tm_file=ns32k/netbsd.h
2192 # On NetBSD, the headers are already okay, except for math.h.
2193 fixincludes=fixinc.wrap
2197 tm_file="${tm_file} pdp11/2bsd.h"
2203 xmake_file=pyr/x-pyr
2210 xmake_file=romp/x-mach
2215 tm_file=rs6000/beos.h
2216 xm_file=rs6000/xm-beos.h
2217 tmake_file=rs6000/t-beos
2218 xmake_file=rs6000/x-beos
2220 powerpc-*-sysv* | powerpc-*-elf*)
2221 tm_file=rs6000/sysv4.h
2222 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2223 xm_defines="USG POSIX"
2224 extra_headers=ppc-asm.h
2225 if [[ x$gas = xyes ]]
2227 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2229 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2231 xmake_file=rs6000/x-sysv4
2234 tm_file=rs6000/eabiaix.h
2235 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2236 fixincludes=Makefile.in
2237 extra_headers=ppc-asm.h
2240 tm_file=rs6000/eabisim.h
2241 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2242 fixincludes=Makefile.in
2243 extra_headers=ppc-asm.h
2246 tm_file=rs6000/eabi.h
2247 if [[ x$gas = xyes ]]
2249 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2251 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2253 fixincludes=Makefile.in
2254 extra_headers=ppc-asm.h
2257 tm_file=rs6000/rtems.h
2258 if [[ x$gas = xyes ]]
2260 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2262 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2264 fixincludes=Makefile.in
2265 extra_headers=ppc-asm.h
2267 powerpc-*-linux-gnulibc1)
2268 tm_file=rs6000/linux.h
2269 xm_file=rs6000/xm-sysv4.h
2270 out_file=rs6000/rs6000.c
2271 if [[ x$gas = xyes ]]
2273 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2275 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2278 fixincludes=Makefile.in
2279 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2280 extra_headers=ppc-asm.h
2281 if [[ x$enable_threads = xyes ]]; then
2285 powerpc-*-linux-gnu*)
2286 tm_file=rs6000/linux.h
2287 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2288 xm_defines="USG ${xm_defines}"
2289 out_file=rs6000/rs6000.c
2290 if [[ x$gas = xyes ]]
2292 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2294 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2297 fixincludes=Makefile.in
2298 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2299 extra_headers=ppc-asm.h
2300 if [[ x$enable_threads = xyes ]]; then
2304 powerpc-wrs-vxworks*)
2306 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2307 xm_defines="USG POSIX"
2308 tm_file=rs6000/vxppc.h
2309 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2310 extra_headers=ppc-asm.h
2311 thread_file='vxworks'
2313 powerpcle-*-sysv* | powerpcle-*-elf*)
2314 tm_file=rs6000/sysv4le.h
2315 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2316 xm_defines="USG POSIX"
2317 if [[ x$gas = xyes ]]
2319 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2321 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2323 xmake_file=rs6000/x-sysv4
2324 extra_headers=ppc-asm.h
2326 powerpcle-*-eabisim*)
2327 tm_file=rs6000/eabilesim.h
2328 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2329 fixincludes=Makefile.in
2330 extra_headers=ppc-asm.h
2333 tm_file=rs6000/eabile.h
2334 if [[ x$gas = xyes ]]
2336 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2338 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2340 fixincludes=Makefile.in
2341 extra_headers=ppc-asm.h
2343 powerpcle-*-winnt* )
2344 tm_file=rs6000/win-nt.h
2345 tmake_file=rs6000/t-winnt
2347 fixincludes=Makefile.in
2348 if [[ x$enable_threads = xyes ]]; then
2351 extra_headers=ppc-asm.h
2353 powerpcle-*-pe | powerpcle-*-cygwin32)
2354 tm_file=rs6000/cygwin32.h
2355 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2356 xm_defines=NO_STAB_H
2357 tmake_file=rs6000/t-winnt
2358 xmake_file=rs6000/x-cygwin32
2360 fixincludes=Makefile.in
2361 if [[ x$enable_threads = xyes ]]; then
2365 extra_headers=ppc-asm.h
2367 powerpcle-*-solaris2*)
2368 tm_file=rs6000/sol2.h
2369 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2370 xm_defines="USG POSIX"
2371 if [[ x$gas = xyes ]]
2373 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2375 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2377 xmake_file=rs6000/x-sysv4
2379 *-*-solaris2.[[0-4]])
2380 fixincludes=fixinc.svr4;;
2382 fixincludes=fixinc.wrap;;
2384 extra_headers=ppc-asm.h
2386 rs6000-ibm-aix3.[[01]]*)
2387 tm_file=rs6000/aix31.h
2388 xmake_file=rs6000/x-aix31
2391 rs6000-ibm-aix3.2.[[456789]]* | powerpc-ibm-aix3.2.[[456789]]*)
2392 tm_file=rs6000/aix3newas.h
2393 if [[ x$host != x$target ]]
2395 tmake_file=rs6000/t-xnewas
2397 tmake_file=rs6000/t-newas
2401 rs6000-ibm-aix[[456789]].* | powerpc-ibm-aix[[456789]].*)
2402 tm_file=rs6000/aix41.h
2403 if [[ x$host != x$target ]]
2405 tmake_file=rs6000/t-xnewas
2407 tmake_file=rs6000/t-newas
2409 xmake_file=rs6000/x-aix31
2419 tm_file=rs6000/mach.h
2420 xm_file="${xm_file} rs6000/xm-mach.h"
2421 xmake_file=rs6000/x-mach
2425 tm_file=rs6000/lynx.h
2426 xm_file=rs6000/xm-lynx.h
2427 tmake_file=rs6000/t-rs6000
2428 xmake_file=rs6000/x-lynx
2436 tmake_file="sh/t-sh t-rtems"
2445 xm_file="xm-alloca.h ${xm_file}"
2448 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2449 tm_file=sparc/vxsparc.h
2450 tmake_file=sparc/t-vxsparc
2452 thread_file='vxworks'
2455 tmake_file=sparc/t-sparcbare
2456 tm_file="sparc/aout.h libgloss.h"
2459 tm_file=sparc/netbsd.h
2460 # On NetBSD, the headers are already okay, except for math.h.
2461 fixincludes=fixinc.wrap
2469 tmake_file=sparc/t-elf
2470 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2474 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2475 xm_file="${xm_file} sparc/xm-linux.h"
2476 tm_file=sparc/linux-aout.h
2478 fixincludes=Makefile.in #On Linux, the headers are ok already.
2481 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2482 xm_file="${xm_file} sparc/xm-linux.h"
2484 tm_file=sparc/linux.h
2485 tmake_file="t-linux t-linux-gnulibc1"
2486 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2487 fixincludes=Makefile.in #On Linux, the headers are ok already.
2490 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2491 xm_file="${xm_file} sparc/xm-linux.h"
2493 tm_file=sparc/linux.h
2494 tmake_file="t-linux"
2495 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2496 fixincludes=Makefile.in #On Linux, the headers are ok already.
2498 if [[ x$enable_threads = xyes ]]; then
2503 if [[ x$gas = xyes ]]
2505 tm_file=sparc/lynx.h
2507 tm_file=sparc/lynx-ng.h
2509 xm_file=sparc/xm-lynx.h
2510 tmake_file=sparc/t-sunos41
2514 tmake_file="sparc/t-sparcbare t-rtems"
2515 tm_file=sparc/rtems.h
2518 if [[ x$gnu_ld = xyes ]]
2520 tm_file=sparc/sol2.h
2522 tm_file=sparc/sol2-sld.h
2524 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2525 xm_defines="USG POSIX"
2526 tmake_file=sparc/t-sol2
2527 xmake_file=sparc/x-sysv4
2528 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2530 *-*-solaris2.[[0-4]])
2531 fixincludes=fixinc.svr4;;
2533 fixincludes=fixinc.wrap;;
2536 if [[ x${enable_threads} = x ]]; then
2537 enable_threads=$have_pthread_h
2538 if [[ x${enable_threads} = x ]]; then
2539 enable_threads=$have_thread_h
2542 if [[ x${enable_threads} = xyes ]]; then
2543 if [[ x${have_pthread_h} = xyes ]]; then
2546 thread_file='solaris'
2551 tm_file=sparc/sunos4.h
2552 tmake_file=sparc/t-sunos40
2556 tm_file=sparc/sunos4.h
2557 tmake_file=sparc/t-sunos41
2559 if [[ x$gas = xyes ]]; then
2560 tm_file="${tm_file} sparc/sun4gas.h"
2564 tm_file=sparc/sun4o3.h
2568 tm_file=sparc/sysv4.h
2569 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2570 xm_defines="USG POSIX"
2572 xmake_file=sparc/x-sysv4
2573 extra_parts="crtbegin.o crtend.o"
2576 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2577 xm_defines="USG POSIX"
2578 tm_file=sparc/vxsim.h
2579 tmake_file=sparc/t-vxsparc
2580 xmake_file=sparc/x-sysv4
2583 tm_file="sparc/splet.h libgloss.h"
2584 tmake_file=sparc/t-splet
2587 tm_file="sparc/litecoff.h libgloss.h"
2588 tmake_file=sparc/t-sparclite
2591 tm_file="sparc/lite.h aoutos.h libgloss.h"
2592 tmake_file=sparc/t-sparclite
2595 tmake_file=sparc/t-sp64
2596 tm_file=sparc/sp64-aout.h
2599 tmake_file=sparc/t-sp64
2600 tm_file=sparc/sp64-elf.h
2601 extra_parts="crtbegin.o crtend.o"
2603 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2604 tmake_file=sparc/t-sp64
2605 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2606 tm_file=sparc/linux64.h
2608 fixincludes=Makefile.in # The headers are ok already.
2611 # This hasn't been upgraded to GCC 2.
2612 # tahoe-harris-*) # Harris tahoe, using COFF.
2613 # tm_file=tahoe/harris.h
2615 # tahoe-*-bsd*) # tahoe running BSD
2617 thumb-*-coff* | thumbel-*-coff*)
2619 out_file=arm/thumb.c
2620 xm_file=arm/xm-thumb.h
2621 md_file=arm/thumb.md
2622 tmake_file=arm/t-thumb
2624 # This hasn't been upgraded to GCC 2.
2631 tm_file="v850/v850.h"
2632 xm_file="v850/xm-v850.h"
2633 tmake_file=v850/t-v850
2634 if [[ x$stabs = xyes ]]
2636 tm_file="${tm_file} dbx.h"
2640 vax-*-bsd*) # vaxen running BSD
2644 vax-*-sysv*) # vaxen running system V
2645 tm_file="${tm_file} vax/vaxv.h"
2650 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2651 # On NetBSD, the headers are already okay, except for math.h.
2652 fixincludes=fixinc.wrap
2656 vax-*-ultrix*) # vaxen running ultrix
2657 tm_file="${tm_file} vax/ultrix.h"
2661 vax-*-vms*) # vaxen running VMS
2662 xm_file=vax/xm-vms.h
2666 vax-*-*) # vax default entry
2670 xm_file="${xm_file} xm-svr3"
2674 echo "Configuration $machine not supported" 1>&2
2681 ;; # Existing GNU/Linux systems do not use the GNU setup.
2683 # On the GNU system, the setup is just about the same on
2684 # each different CPU. The specific machines that GNU
2685 # supports are matched above and just set $cpu_type.
2686 xm_file="xm-gnu.h ${xm_file}"
2687 tm_file=${cpu_type}/gnu.h
2688 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2689 # GNU always uses ELF.
2691 # GNU tools are the only tools.
2694 # On GNU, the headers are already okay.
2695 fixincludes=Makefile.in
2696 xmake_file=x-linux # These details are the same as Linux.
2697 tmake_file=t-gnu # These are not.
2700 fixincludes=fixinc.svr4
2701 xmake_try_sysv=x-sysv
2702 install_headers_dir=install-headers-cpio
2705 install_headers_dir=install-headers-cpio
2709 # Distinguish i[34567]86
2710 # Also, do not run mips-tfile on MIPS if using gas.
2711 # Process --with-cpu= for PowerPC/rs6000
2712 target_cpu_default2=
2715 target_cpu_default2=1
2718 target_cpu_default2=2
2720 i686-*-* | i786-*-*)
2721 target_cpu_default2=3
2726 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
2729 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
2732 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
2735 target_cpu_default2="MASK_CPU_EV5"
2739 if [[ x$gas = xyes ]]
2741 if [[ "$target_cpu_default2" = "" ]]
2743 target_cpu_default2="MASK_GAS"
2745 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
2750 case "x$with_cpu" in
2753 target_cpu_default2="TARGET_CPU_generic"
2756 # Distinguish cores, and major variants
2757 # arm7m doesn't exist, but D & I don't affect code
2758 xarm[23678] | xarm250 | xarm[67][01]0 \
2759 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
2760 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
2761 | xstrongarm | xstrongarm110)
2762 target_cpu_default2="TARGET_CPU_$with_cpu"
2766 echo "--with-cpu must be passed a value" 1>&2
2771 if [[ x$pass2done = xyes ]]
2773 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2780 mips*-*-ecoff* | mips*-*-elf*)
2781 if [[ x$gas = xyes ]]
2783 if [[ x$gnu_ld = xyes ]]
2785 target_cpu_default2=20
2787 target_cpu_default2=16
2792 if [[ x$gas = xyes ]]
2794 target_cpu_default2=16
2797 powerpc*-*-* | rs6000-*-*)
2798 case "x$with_cpu" in
2802 xcommon | xpower | xpower2 | xpowerpc | xrios \
2803 | xrios1 | xrios2 | xrsc | xrsc1 \
2804 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
2805 | x403 | x505 | x801 | x821 | x823 | x860)
2806 target_cpu_default2="\"$with_cpu\""
2810 echo "--with-cpu must be passed a value" 1>&2
2815 if [[ x$pass2done = xyes ]]
2817 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2824 case ".$with_cpu" in
2826 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
2828 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
2829 target_cpu_default2="TARGET_CPU_$with_cpu"
2832 if [[ x$pass2done = xyes ]]
2834 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
2842 if [[ "$target_cpu_default2" != "" ]]
2844 if [[ "$target_cpu_default" != "" ]]
2846 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
2848 target_cpu_default=$target_cpu_default2
2852 # No need for collect2 if we have the GNU linker.
2859 # Save data on machine being used to compile GCC in build_xm_file.
2860 # Save data on host machine in vars host_xm_file and host_xmake_file.
2861 if [[ x$pass1done = x ]]
2863 if [[ x"$xm_file" = x ]]
2864 then build_xm_file=$cpu_type/xm-$cpu_type.h
2865 else build_xm_file=$xm_file
2867 build_xm_defines=$xm_defines
2868 build_install_headers_dir=$install_headers_dir
2869 build_exeext=$exeext
2872 if [[ x$pass2done = x ]]
2874 if [[ x"$xm_file" = x ]]
2875 then host_xm_file=$cpu_type/xm-$cpu_type.h
2876 else host_xm_file=$xm_file
2878 host_xm_defines=$xm_defines
2879 if [[ x"$xmake_file" = x ]]
2880 then xmake_file=$cpu_type/x-$cpu_type
2882 host_xmake_file="$xmake_file"
2883 host_truncate_target=$truncate_target
2884 host_extra_gcc_objs=$extra_gcc_objs
2885 host_extra_objs=$extra_host_objs
2892 extra_objs="${host_extra_objs} ${extra_objs}"
2894 # Default the target-machine variables that were not explicitly set.
2895 if [[ x"$tm_file" = x ]]
2896 then tm_file=$cpu_type/$cpu_type.h; fi
2898 if [[ x$extra_headers = x ]]
2899 then extra_headers=; fi
2901 if [[ x"$xm_file" = x ]]
2902 then xm_file=$cpu_type/xm-$cpu_type.h; fi
2904 if [[ x$md_file = x ]]
2905 then md_file=$cpu_type/$cpu_type.md; fi
2907 if [[ x$out_file = x ]]
2908 then out_file=$cpu_type/$cpu_type.c; fi
2910 if [[ x"$tmake_file" = x ]]
2911 then tmake_file=$cpu_type/t-$cpu_type
2914 if [[ x$float_format = x ]]
2915 then float_format=i64
2918 if [[ x$enable_haifa = x ]]
2921 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc-* | m32r*-*)
2926 # Say what files are being used for the output code and MD file.
2927 echo "Using \`$srcdir/config/$out_file' to output insns."
2928 echo "Using \`$srcdir/config/$md_file' as machine description file."
2931 for f in $tm_file; do
2934 if [[ $count = ax ]]; then
2935 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
2937 echo "Using the following target machine macro files:"
2938 for f in $tm_file; do
2939 echo " $srcdir/config/$f"
2944 for f in $host_xm_file; do
2947 if [[ $count = ax ]]; then
2948 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
2950 echo "Using the following host machine macro files:"
2951 for f in $host_xm_file; do
2952 echo " $srcdir/config/$f"
2956 if [[ "$host_xm_file" != "$build_xm_file" ]]; then
2958 for f in $build_xm_file; do
2961 if [[ $count = ax ]]; then
2962 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
2964 echo "Using the following build machine macro files:"
2965 for f in $build_xm_file; do
2966 echo " $srcdir/config/$f"
2971 if [[ x$thread_file = x ]]; then
2972 if [[ x$target_thread_file != x ]]; then
2973 thread_file=$target_thread_file
2975 thread_file='single'
2979 # Set up the header files.
2980 # $links is the list of header files to create.
2981 # $vars is the list of shell variables with file names to include.
2982 # auto-host.h is the file containing items generated by autoconf and is
2983 # the first file included by config.h.
2985 host_xm_file="auto-host.h ${host_xm_file}"
2987 # If host=build, it is correct to have hconfig include auto-host.h
2988 # as well. If host!=build, we are in error and need to do more
2989 # work to find out the build config parameters.
2990 if [[ x$host = x$build ]]
2992 build_xm_file="auto-host.h ${build_xm_file}"
2994 # We create a subdir, then run autoconf in the subdir.
2995 # To prevent recursion we set host and build for the new
2996 # invocation of configure to the build for this invocation
3003 /*) realsrcdir=${srcdir};;
3004 *) realsrcdir=../${srcdir};;
3006 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3007 --target=$target --host=$build --build=$build
3009 # We just finished tests for the build machine, so rename
3010 # the file auto-build.h in the gcc directory.
3011 mv auto-host.h ../auto-build.h
3014 build_xm_file="auto-build.h ${build_xm_file}"
3017 vars="host_xm_file tm_file xm_file build_xm_file"
3018 links="config.h tm.h tconfig.h hconfig.h"
3019 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3022 if [[ -f config.status ]]; then mv -f config.status config.bak; fi
3025 while [[ -n "$vars" ]]
3027 set $vars; var=$1; shift; vars=$*
3028 set $links; link=$1; shift; links=$*
3029 set $defines; define=$1; shift; defines=$*
3033 # Define TARGET_CPU_DEFAULT if the system wants one.
3034 # This substitutes for lots of *.h files.
3035 if [[ "$target_cpu_default" != "" -a $link = tm.h ]]
3037 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3040 for file in `eval echo '$'$var`; do
3041 echo "#include \"$file\"" >>$link
3044 for def in `eval echo '$'$define`; do
3045 echo "#ifndef $def" >>$link
3046 echo "#define $def" >>$link
3047 echo "#endif" >>$link
3051 # Truncate the target if necessary
3052 if [[ x$host_truncate_target != x ]]; then
3053 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3056 # Get the version number from the toplevel
3057 version=`sed -e 's/.*\"\([[^ \"]]*\)[[ \"]].*/\1/' < ${srcdir}/version.c`
3059 # Get an absolute path to the GCC top-level source directory
3065 # Conditionalize the makefile for this host machine.
3066 # Make-host contains the concatenation of all host makefile fragments
3067 # [there can be more than one]. This file is built by configure.frag.
3068 host_overrides=Make-host
3069 dep_host_xmake_file=
3070 for f in .. ${host_xmake_file}
3072 if [[ -f ${srcdir}/config/$f ]]
3074 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3078 # Conditionalize the makefile for this target machine.
3079 # Make-target contains the concatenation of all host makefile fragments
3080 # [there can be more than one]. This file is built by configure.frag.
3081 target_overrides=Make-target
3083 for f in .. ${tmake_file}
3085 if [[ -f ${srcdir}/config/$f ]]
3087 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3091 # If the host doesn't support symlinks, modify CC in
3092 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3093 # Otherwise, we can use "CC=$(CC)".
3095 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3097 cc_set_by_configure="\$(CC)"
3098 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3101 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3103 symbolic_link="cp -p"
3107 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3108 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3112 out_object_file=`basename $out_file .c`.o
3115 for f in $tm_file; do
3116 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3120 for f in $host_xm_file; do
3121 if test $f != "auto-host.h"; then
3122 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3124 host_xm_file_list="${host_xm_file_list} auto-host.h"
3129 for f in $build_xm_file; do
3130 if test $f != "auto-build.h"; then
3131 if test $f != "auto-host.h"; then
3132 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3134 build_xm_file_list="${build_xm_file_list} auto-host.h"
3137 build_xm_file_list="${build_xm_file_list} auto-build.h"
3141 # Define macro CROSS_COMPILE in compilation
3142 # if this is a cross-compiler.
3143 # Also use all.cross instead of all.internal
3144 # and add cross-make to Makefile.
3145 cross_overrides="/dev/null"
3146 if [[ x$host != x$target ]]
3148 cross_defines="CROSS=-DCROSS_COMPILE"
3149 cross_overrides="${topdir}/cross-make"
3152 # When building gcc with a cross-compiler, we need to fix a few things.
3153 # This must come after cross-make as we want all.build to override
3155 build_overrides="/dev/null"
3156 if [[ x$build != x$host ]]
3158 build_overrides="${topdir}/build-make"
3161 # Expand extra_headers to include complete path.
3162 # This substitutes for lots of t-* files.
3164 if [[ "x$extra_headers" = x ]]
3167 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3168 for file in $extra_headers;
3170 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3174 # Add a definition of USE_COLLECT2 if system wants one.
3175 # Also tell toplev.c what to do.
3176 # This substitutes for lots of t-* files.
3177 if [[ x$use_collect2 = x ]]
3182 will_use_collect2="collect2"
3183 maybe_use_collect2="-DUSE_COLLECT2"
3187 # Set MD_DEPS if the real md file is in md.pre-cpp.
3188 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3189 # for line oriented comments, so we must always use a GNU cpp. If
3190 # building gcc with a cross compiler, use the cross compiler just
3191 # built. Otherwise, we can use the cpp just built.
3193 if [[ "x$md_cppflags" = x ]]
3195 md_file_sub=$srcdir/config/$md_file
3200 # If we have gas in the build tree, make a link to it.
3201 if [[ -f ../gas/Makefile ]]; then
3202 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3205 # If we have ld in the build tree, make a link to it.
3206 if [[ -f ../ld/Makefile ]]; then
3207 # if [[ x$use_collect2 = x ]]; then
3208 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3210 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3214 # Figure out what language subdirectories are present.
3216 for lang in ${srcdir}/*/config-lang.in ..
3220 # The odd quoting in the next line works around
3221 # an apparent bug in bash 1.12 on linux.
3222 ${srcdir}/[[*]]/config-lang.in) ;;
3223 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([[^/]]*\)/config-lang.in$,\1,'`" ;;
3227 # Make gthr-default.h if we have a thread file.
3229 if [[ $thread_file != single ]]; then
3230 rm -f gthr-default.h
3231 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3232 gthread_flags=-DHAVE_GTHR_DEFAULT
3234 AC_SUBST(gthread_flags)
3236 # Make empty files to contain the specs and options for each language.
3237 # Then add #include lines to for a compiler that has specs and/or options.
3241 rm -f specs.h options.h
3242 touch specs.h options.h
3243 for subdir in . $subdirs
3245 if [[ -f $srcdir/$subdir/lang-specs.h ]]; then
3246 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3247 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3249 if [[ -f $srcdir/$subdir/lang-options.h ]]; then
3250 echo "#include \"$subdir/lang-options.h\"" >>options.h
3251 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3255 # These (without "all_") are set in each config-lang.in.
3256 # `language' must be a single word so is spelled singularly.
3262 all_outputs=Makefile
3263 # List of language makefile fragments.
3268 # Add the language fragments.
3269 # Languages are added via two mechanisms. Some information must be
3270 # recorded in makefile variables, these are defined in config-lang.in.
3271 # We accumulate them and plug them into the main Makefile.
3272 # The other mechanism is a set of hooks for each of the main targets
3273 # like `clean', `install', etc.
3275 language_fragments="Make-lang"
3276 language_hooks="Make-hooks"
3279 for s in .. $subdirs
3291 . ${srcdir}/$s/config-lang.in
3292 if [[ "x$language" = x ]]
3294 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3297 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3298 all_languages="$all_languages $language"
3299 if [[ "x$boot_language" = xyes ]]
3301 all_boot_languages="$all_boot_languages $language"
3303 all_compilers="$all_compilers $compilers"
3304 all_stagestuff="$all_stagestuff $stagestuff"
3305 all_diff_excludes="$all_diff_excludes $diff_excludes"
3306 all_headers="$all_headers $headers"
3307 all_outputs="$all_outputs $outputs"
3308 if [[ x$outputs = x ]]
3310 oldstyle_subdirs="$oldstyle_subdirs $s"
3312 all_lib2funcs="$all_lib2funcs $lib2funcs"
3316 # Since we can't use `::' targets, we link each language in
3317 # with a set of hooks, reached indirectly via lang.${target}.
3321 target_list="all.build all.cross start.encap rest.encap \
3323 install-normal install-common install-info install-man \
3325 mostlyclean clean distclean extraclean maintainer-clean \
3326 stage1 stage2 stage3 stage4"
3327 for t in $target_list
3330 for l in .. $all_languages
3332 if [[ $l != ".." ]]; then
3336 echo "lang.$t: $x" >> Make-hooks
3339 # If we're not building in srcdir, create .gdbinit.
3341 if [[ ! -f Makefile.in ]]; then
3342 echo "dir ." > .gdbinit
3343 echo "dir ${srcdir}" >> .gdbinit
3344 if [[ x$gdb_needs_out_file_path = xyes ]]
3346 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3348 if [[ "x$subdirs" != x ]]; then
3351 echo "dir ${srcdir}/$s" >> .gdbinit
3354 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3357 # If this is using newlib, then define inhibit_libc in
3358 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3359 # libgcc.a, but that's OK because newib should have its own version of
3362 if [[ x$with_newlib = xyes ]]; then
3363 inhibit_libc=-Dinhibit_libc
3365 AC_SUBST(inhibit_libc)
3367 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3370 if [[ x$enable_haifa = xyes ]]; then
3371 echo "Using the Haifa scheduler."
3373 sched_cflags=-DHAIFA
3375 AC_SUBST(sched_prefix)
3376 AC_SUBST(sched_cflags)
3377 if [[ x$enable_haifa != x ]]; then
3378 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3379 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3380 if [[ -f $x ]]; then
3387 # Process the language and host/target makefile fragments.
3388 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3390 # Substitute configuration variables
3392 AC_SUBST(all_languages)
3393 AC_SUBST(all_boot_languages)
3394 AC_SUBST(all_compilers)
3395 AC_SUBST(all_lang_makefiles)
3396 AC_SUBST(all_stagestuff)
3397 AC_SUBST(all_diff_excludes)
3398 AC_SUBST(all_lib2funcs)
3399 AC_SUBST(all_headers)
3400 AC_SUBST(extra_passes)
3401 AC_SUBST(extra_programs)
3402 AC_SUBST(extra_parts)
3403 AC_SUBST(extra_c_objs)
3404 AC_SUBST(extra_c_flags)
3405 AC_SUBST(extra_objs)
3406 AC_SUBST(host_extra_gcc_objs)
3407 AC_SUBST(extra_headers_list)
3408 AC_SUBST(dep_host_xmake_file)
3409 AC_SUBST(dep_tmake_file)
3411 AC_SUBST(out_object_file)
3413 AC_SUBST(tm_file_list)
3414 AC_SUBST(build_xm_file_list)
3415 AC_SUBST(host_xm_file_list)
3416 AC_SUBST(lang_specs_files)
3417 AC_SUBST(lang_options_files)
3418 AC_SUBST(thread_file)
3420 AC_SUBST(local_prefix)
3421 AC_SUBST(gxx_include_dir)
3422 AC_SUBST(fixincludes)
3423 AC_SUBST(build_install_headers_dir)
3424 AC_SUBST(build_exeext)
3425 AC_SUBST(host_exeext)
3426 AC_SUBST(float_format)
3427 AC_SUBST(will_use_collect2)
3428 AC_SUBST(maybe_use_collect2)
3429 AC_SUBST(cc_set_by_configure)
3430 AC_SUBST(stage_prefix_set_by_configure)
3432 AC_SUBST(symbolic_link)
3434 AC_SUBST_FILE(target_overrides)
3435 AC_SUBST_FILE(host_overrides)
3436 AC_SUBST(cross_defines)
3437 AC_SUBST_FILE(cross_overrides)
3438 AC_SUBST_FILE(build_overrides)
3439 AC_SUBST_FILE(language_fragments)
3440 AC_SUBST_FILE(language_hooks)
3442 # Echo that links are built
3443 if [[ x$host = x$target ]]
3451 if [[ x$host != x$build ]]
3453 str3=" on a $build system"
3456 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3461 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3463 if [[ "x$str2" != x ]] || [[ "x$str3" != x ]]
3465 echo " ${str2}${str3}." 1>&2
3468 # Truncate the target if necessary
3469 if [[ x$host_truncate_target != x ]]; then
3470 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3473 # Configure the subdirectories
3474 # AC_CONFIG_SUBDIRS($subdirs)
3476 # Create the Makefile
3477 # and configure language subdirectories
3478 AC_OUTPUT($all_outputs,
3480 . $srcdir/configure.lang
3481 case x$CONFIG_HEADERS in
3482 xauto-host.h:config.in)
3485 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3486 # bootstrapping and the installation procedure can still use
3487 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3488 # FLAGS_TO_PASS has been modified to solve the problem there.
3489 # This is virtually a duplicate of what happens in configure.lang; we do
3490 # an extra check to make sure this only happens if ln -s can be used.
3491 if [[ "$symbolic_link" = "ln -s" ]]; then
3492 for d in .. ${subdirs} ; do
3493 if [[ $d != .. ]]; then
3496 for t in stage1 stage2 stage3 stage4 include
3499 $symbolic_link ../$t $t 2>/dev/null
3510 target_alias='${target_alias}'
3512 subdirs='${subdirs}'
3513 oldstyle_subdirs='${oldstyle_subdirs}'
3514 symbolic_link='${symbolic_link}'
3515 program_transform_set='${program_transform_set}'
3516 program_transform_name='${program_transform_name}'
3517 dep_host_xmake_file='${dep_host_xmake_file}'
3518 host_xmake_file='${host_xmake_file}'
3519 dep_tmake_file='${dep_tmake_file}'
3520 tmake_file='${tmake_file}'
3521 thread_file='${thread_file}'
3522 version='${version}'
3523 local_prefix='${local_prefix}'
3524 build_install_headers_dir='${build_install_headers_dir}'
3525 build_exeext='${build_exeext}'
3526 host_exeext='${host_exeext}'
3527 out_file='${out_file}'
3528 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3529 SET_MAKE='${SET_MAKE}'
3530 target_list='${target_list}'
3531 target_overrides='${target_overrides}'
3532 host_overrides='${host_overrides}'
3533 cross_defines='${cross_defines}'
3534 cross_overrides='${cross_overrides}'
3535 build_overrides='${build_overrides}'