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
60 AC_ARG_WITH(local-prefix,
61 [ --with-local-prefix=DIR specifies directory to put local include.],
63 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
65 *) local_prefix=$with_local_prefix ;;
68 # Default local prefix if it is empty
69 if test x$local_prefix = x; then
70 local_prefix=/usr/local
74 # Specify the g++ header file directory
75 AC_ARG_WITH(gxx-include-dir,
76 [ --with-gxx-include-dir=DIR
77 specifies directory to put g++ header files.],
79 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
81 *) gxx_include_dir=$with_gxx_include_dir ;;
84 if test x${gxx_include_dir} = x; then
85 if test x${enable_version_specific_runtime_libs} = xyes; then
86 gxx_include_dir='${libsubdir}/include/g++'
88 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
89 gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface}
93 # Enable expensive internal checks
94 AC_ARG_ENABLE(checking,
95 [ --enable-checking enable expensive run-time checks.],
96 [case "${enableval}" in
97 yes) AC_DEFINE(ENABLE_CHECKING) ;;
99 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
102 # Enable use of cpplib for C.
104 AC_ARG_ENABLE(c-cpplib,
105 [ --enable-c-cpplib Use cpplib for C and C++.],
106 if test x$enable_c_cpplib != xno; then
107 extra_c_objs="${extra_c_objs} cpplib.o cppexp.o cpphash.o cpperror.o"
108 extra_c_objs="${extra_c_objs} prefix.o"
109 extra_cxx_objs="${extra_cxx_objs} ../cpplib.o ../cppexp.o ../cpphash.o ../cpperror.o ../prefix.o"
110 extra_c_flags=-DUSE_CPPLIB=1
114 # Enable Multibyte Characters for C/C++
115 AC_ARG_ENABLE(c-mbchar,
116 [ --enable-c-mbchar Enable multibyte characters for C and C++.],
117 if test x$enable_c_mbchar != xno; then
118 extra_c_flags=-DMULTIBYTE_CHARS=1
121 # Enable Haifa scheduler.
123 [ --enable-haifa Use the experimental scheduler.
124 --disable-haifa Don't use the experimental scheduler for the
125 targets which normally enable it.])
128 # This is a work in progress...
129 AC_ARG_WITH(fast-fixincludes,
130 [ --with-fast-fixincludes Use a faster fixinclude program. Experimental],
131 fast_fixinc="$with_fast_fixincludes",
134 # Enable init_priority.
135 AC_ARG_ENABLE(init-priority,
136 [ --enable-init-priority Use attributes to assign initialization order
138 --disable-init-priority Conform to ISO C++ rules for ordering static objects
139 (i.e. initialized in order of declaration). ],
140 if test x$enable_init_priority != xno; then
141 extra_c_flags=-DUSE_INIT_PRIORITY
145 # Pass with no value to take the default
146 # Pass with a value to specify a thread package
147 AC_ARG_ENABLE(threads,
148 [ --enable-threads enable thread usage for target GCC.
149 --enable-threads=LIB use LIB thread package for target GCC.],
150 if test x$enable_threads = xno; then
155 enable_threads_flag=$enable_threads
156 # Check if a valid thread package
157 case x${enable_threads_flag} in
160 target_thread_file='single'
164 target_thread_file=''
166 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
167 xsolaris | xwin32 | xdce | xvxworks)
168 target_thread_file=$enable_threads_flag
171 echo "$enable_threads is an unknown thread package" 1>&2
176 AC_ARG_ENABLE(objc-gc,
177 [ --enable-objc-gc enable the use of Boehm's garbage collector with
178 the GNU Objective-C runtime.],
179 if [[[ x$enable_objc_gc = xno ]]]; then
186 # Determine the host, build, and target systems
189 # Find the native compiler
192 # If the native compiler is GCC, we can enable warnings even in stage1.
193 # That's useful for people building cross-compilers, or just running a
195 if test "x$GCC" = "xyes"; then
196 stage1_warn_cflags='$(WARN_CFLAGS)'
198 stage1_warn_cflags=""
200 AC_SUBST(stage1_warn_cflags)
204 # Find some useful tools
217 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)
219 # Check for thread headers.
220 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
221 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
223 # See if GNAT has been installed
224 AC_CHECK_PROG(gnat, gnatbind, yes, no)
226 # See if the system preprocessor understands the ANSI C preprocessor
227 # stringification operator.
228 AC_MSG_CHECKING(whether cpp understands the stringify operator)
229 AC_CACHE_VAL(gcc_cv_c_have_stringify,
232 char *test = S(foo);],
233 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
234 AC_MSG_RESULT($gcc_cv_c_have_stringify)
235 if test $gcc_cv_c_have_stringify = yes; then
236 AC_DEFINE(HAVE_CPP_STRINGIFY)
239 # Use <inttypes.h> only if it exists,
240 # doesn't clash with <sys/types.h>, and declares intmax_t.
241 AC_MSG_CHECKING(for inttypes.h)
242 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
244 [#include <sys/types.h>
245 #include <inttypes.h>],
247 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
248 gcc_cv_header_inttypes_h=yes],
249 gcc_cv_header_inttypes_h=no)])
250 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
252 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
253 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
254 sysconf isascii gettimeofday)
256 # Make sure wchar_t is available
257 #AC_CHECK_TYPE(wchar_t, unsigned int)
259 GCC_FUNC_VFPRINTF_DOPRNT
262 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
263 index rindex getenv atol sbrk abort atof strerror getcwd getwd)
265 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
266 #include <sys/types.h>
267 #ifdef HAVE_SYS_RESOURCE_H
268 #include <sys/resource.h>
282 build_install_headers_dir=install-headers-tar
287 host_truncate_target=
290 # Decode the host machine, then the target machine.
291 # For the host machine, we save the xm_file variable as host_xm_file;
292 # then we decode the target machine and forget everything else
293 # that came from the host machine.
294 for machine in $build $host $target; do
308 # Set this to force installation and use of collect2.
310 # Set this to override the default target model.
312 # Set this to control which fixincludes program to use.
313 if test x$fast_fixinc != xyes; then
314 fixincludes=fixincludes
315 else fixincludes=fixinc.sh ; fi
316 # Set this to control how the header file directory is installed.
317 install_headers_dir=install-headers-tar
318 # Set this to a non-empty list of args to pass to cpp if the target
319 # wants its .md file passed through cpp.
321 # Set this if directory names should be truncated to 14 characters.
323 # Set this if gdb needs a dir command with `dirname $out_file`
324 gdb_needs_out_file_path=
325 # Set this if the build machine requires executables to have a
328 # Set this to control which thread package will be used.
330 # Reinitialize these from the flag values every loop pass, since some
331 # configure entries modify them.
333 gnu_ld="$gnu_ld_flag"
334 enable_threads=$enable_threads_flag
336 # Set default cpu_type, tm_file and xm_file so it can be updated in
337 # each machine entry.
338 cpu_type=`echo $machine | sed 's/-.*$//'`
374 tm_file=${cpu_type}/${cpu_type}.h
375 xm_file=${cpu_type}/xm-${cpu_type}.h
377 # Set the default macros to define for GNU/Linux systems.
380 xm_defines="HAVE_ATEXIT POSIX BSTRING"
385 # Support site-specific machine types.
387 cpu_type=`echo $machine | sed -e 's/-.*//'`
388 rest=`echo $machine | sed -e "s/$cpu_type-//"`
389 xm_file=${cpu_type}/xm-$rest.h
390 tm_file=${cpu_type}/$rest.h
391 if test -f $srcdir/config/${cpu_type}/x-$rest; \
392 then xmake_file=${cpu_type}/x-$rest; \
395 if test -f $srcdir/config/${cpu_type}/t-$rest; \
396 then tmake_file=${cpu_type}/t-$rest; \
402 a29k-*-bsd* | a29k-*-sym1*)
403 tm_file="${tm_file} a29k/unix.h"
405 xmake_file=a29k/x-unix
408 a29k-*-udi | a29k-*-coff)
409 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
410 tmake_file=a29k/t-a29kbare
413 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
414 tmake_file=a29k/t-vx29k
415 extra_parts="crtbegin.o crtend.o"
416 thread_file='vxworks'
418 a29k-*-*) # Default a29k environment.
421 alpha*-*-linux-gnuecoff*)
422 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
423 target_cpu_default="MASK_GAS"
428 alpha*-*-linux-gnulibc1*)
429 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
430 target_cpu_default="MASK_GAS"
431 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
432 extra_parts="crtbegin.o crtend.o"
433 fixincludes=fixinc.wrap
436 if test x$enable_threads = xyes; then
441 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
442 target_cpu_default="MASK_GAS"
443 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
444 extra_parts="crtbegin.o crtend.o"
446 fixincludes=Makefile.in
448 if test x$enable_threads = xyes; then
453 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
454 target_cpu_default="MASK_GAS"
455 tmake_file="alpha/t-crtbe"
456 extra_parts="crtbegin.o crtend.o"
458 fixincludes=fixinc.wrap
463 if test x$stabs = xyes
465 tm_file="${tm_file} dbx.h"
467 if test x$gas != xyes
469 extra_passes="mips-tfile mips-tdump"
474 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
479 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
482 tm_file="${tm_file} alpha/osf.h"
483 # Some versions of OSF4 (specifically X4.0-9 296.7) have
484 # a broken tar, so we use cpio instead.
485 install_headers_dir=install-headers-cpio
490 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
492 target_cpu_default=MASK_SUPPORT_ARCH
497 tm_file="${tm_file} dbx.h alpha/vxworks.h"
500 extra_passes="mips-tfile mips-tdump"
505 tm_file="${tm_file} alpha/win-nt.h"
506 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
508 xmake_file=winnt/x-winnt
509 extra_host_objs=oldnames.o
510 extra_gcc_objs="spawnv.o oldnames.o"
511 fixincludes=fixinc.winnt
512 if test x$gnu_ld != xyes
514 extra_programs=ld.exe
516 if test x$enable_threads = xyes; then
522 xm_file="${xm_file} alpha/xm-vms.h"
523 tmake_file=alpha/t-vms
524 fixincludes=Makefile.in
527 extra_parts="crtinit.o crtfini.o"
529 arm-*-coff* | armel-*-coff*)
531 tmake_file=arm/t-bare
534 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
536 tm_file=arm/riscix1-1.h
539 arm-*-riscix*) # Acorn RISC machine
542 tm_file=arm/rix-gas.h
546 xmake_file=arm/x-riscix
547 tmake_file=arm/t-riscix
550 arm-semi-aout | armel-semi-aout)
552 tmake_file=arm/t-semi
553 fixincludes=Makefile.in # There is nothing to fix
555 arm-semi-aof | armel-semi-aof)
556 tm_file=arm/semiaof.h
557 tmake_file=arm/t-semiaof
558 fixincludes=Makefile.in # There is nothing to fix
562 xm_file="arm/xm-netbsd.h ${xm_file}"
563 tmake_file="t-netbsd arm/t-netbsd"
564 # On NetBSD, the headers are already okay, except for math.h.
565 fixincludes=fixinc.wrap
567 arm-*-linux-gnuaout*) # ARM GNU/Linux
570 tm_file=arm/linux-gas.h
571 tmake_file=arm/t-linux
572 fixincludes=Makefile.in
577 tmake_file=arm/t-bare
579 c1-convex-*) # Convex C1
582 fixincludes=Makefile.in
584 c2-convex-*) # Convex C2
587 fixincludes=Makefile.in
592 fixincludes=Makefile.in
597 fixincludes=Makefile.in
600 target_cpu_default=16
602 fixincludes=Makefile.in
604 clipper-intergraph-clix*)
605 tm_file="${tm_file} svr3.h clipper/clix.h"
606 xm_file=clipper/xm-clix.h
607 xmake_file=clipper/x-clix
608 extra_headers=va-clipper.h
609 extra_parts="crtbegin.o crtend.o"
610 install_headers_dir=install-headers-cpio
617 # This hasn't been upgraded to GCC 2.
618 # fx80-alliant-*) # Alliant FX/80
624 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
625 xm_file=pa/xm-papro.h
630 tm_file="${tm_file} pa/pa-osf.h"
632 fixincludes=Makefile.in
635 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
636 xm_file=pa/xm-papro.h
640 tm_file="${tm_file} pa/pa-osf.h"
642 fixincludes=Makefile.in
647 fixincludes=Makefile.in
651 fixincludes=Makefile.in
654 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
655 xm_file=pa/xm-pahpux.h
656 xmake_file=pa/x-pa-hpux
659 tm_file="${tm_file} pa/gas.h"
661 install_headers_dir=install-headers-cpio
665 hppa1.0-*-hpux8.0[0-2]*)
667 tm_file="${tm_file} pa/pa-hpux.h"
668 xm_file=pa/xm-pahpux.h
669 xmake_file=pa/x-pa-hpux
672 tm_file="${tm_file} pa/pa-gas.h"
674 tm_file="pa/pa-oldas.h ${tm_file}"
676 install_headers_dir=install-headers-cpio
680 hppa1.1-*-hpux8.0[0-2]*)
683 tm_file="${tm_file} pa/pa-hpux.h"
684 xm_file=pa/xm-pahpux.h
685 xmake_file=pa/x-pa-hpux
688 tm_file="${tm_file} pa/pa-gas.h"
690 tm_file="pa/pa-oldas.h ${tm_file}"
692 install_headers_dir=install-headers-cpio
697 tm_file="${tm_file} pa/pa-hpux.h"
698 xm_file=pa/xm-pahpux.h
699 xmake_file=pa/x-pa-hpux
702 tm_file="${tm_file} pa/pa-gas.h"
704 install_headers_dir=install-headers-cpio
708 tm_file="${tm_file} pa/pa-hpux.h"
709 xm_file=pa/xm-pahpux.h
710 xmake_file=pa/x-pa-hpux
713 tm_file="${tm_file} pa/pa-gas.h"
715 install_headers_dir=install-headers-cpio
720 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
721 xm_file=pa/xm-pahpux.h
722 xmake_file=pa/x-pa-hpux
726 tm_file="${tm_file} pa/pa-gas.h"
728 if test x$enable_threads = x; then
729 enable_threads=$have_pthread_h
731 if test x$enable_threads = xyes; then
733 tmake_file="${tmake_file} pa/t-dce-thr"
735 install_headers_dir=install-headers-cpio
739 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
740 xm_file=pa/xm-pahpux.h
741 xmake_file=pa/x-pa-hpux
744 tm_file="${tm_file} pa/pa-gas.h"
746 if test x$enable_threads = x; then
747 enable_threads=$have_pthread_h
749 if test x$enable_threads = xyes; then
751 tmake_file="${tmake_file} pa/t-dce-thr"
753 install_headers_dir=install-headers-cpio
758 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
759 xm_file=pa/xm-pahpux.h
760 xmake_file=pa/x-pa-hpux
763 tm_file="${tm_file} pa/pa-gas.h"
765 install_headers_dir=install-headers-cpio
769 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
770 xm_file=pa/xm-pahpux.h
771 xmake_file=pa/x-pa-hpux
774 tm_file="${tm_file} pa/pa-gas.h"
776 install_headers_dir=install-headers-cpio
781 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
782 xm_file=pa/xm-pahpux.h
783 xmake_file=pa/x-pa-hpux
786 tm_file="${tm_file} pa/pa-gas.h"
788 install_headers_dir=install-headers-cpio
792 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
793 xm_file=pa/xm-pahpux.h
794 xmake_file=pa/x-pa-hpux
797 tm_file="${tm_file} pa/pa-gas.h"
799 install_headers_dir=install-headers-cpio
805 fixincludes=Makefile.in
810 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
814 tm_file=i386/aix386.h
815 extra_parts="crtbegin.o crtend.o"
816 tmake_file=i386/t-crtstuff
818 tm_file=i386/aix386ng.h
821 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
823 xmake_file=i386/x-aix
826 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
828 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
829 xm_defines="USG POSIX SMALL_ARG_MAX"
830 xmake_file=i386/x-ncr3000
831 if test x$stabs = xyes -a x$gas = xyes
833 tm_file=i386/sysv4gdb.h
837 extra_parts="crtbegin.o crtend.o"
838 tmake_file=i386/t-crtpic
844 xm_file=i386/xm-next.h
845 tmake_file=i386/t-next
846 xmake_file=i386/x-next
847 extra_objs=nextstep.o
848 if test x$enable_threads = xyes; then
853 i[34567]86-sequent-bsd*) # 80386 from Sequent
858 tm_file=i386/seq-gas.h
860 tm_file=i386/sequent.h
864 i[34567]86-sequent-ptx1*)
866 xm_defines="USG SVR3"
867 xmake_file=i386/x-sysv3
868 tm_file=i386/seq-sysv3.h
869 tmake_file=i386/t-crtstuff
870 fixincludes=fixinc.ptx
871 extra_parts="crtbegin.o crtend.o"
872 install_headers_dir=install-headers-cpio
875 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
877 xm_defines="USG SVR3"
878 xmake_file=i386/x-sysv3
879 tm_file=i386/seq2-sysv3.h
880 tmake_file=i386/t-crtstuff
881 extra_parts="crtbegin.o crtend.o"
882 fixincludes=fixinc.ptx
883 install_headers_dir=install-headers-cpio
886 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
888 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
889 xm_defines="USG POSIX SMALL_ARG_MAX"
891 tm_file=i386/ptx4-i.h
893 extra_parts="crtbegin.o crtend.o"
894 fixincludes=fixinc.ptx
895 install_headers_dir=install-headers-cpio
897 i386-sun-sunos*) # Sun i386 roadrunner
903 i[34567]86-wrs-vxworks*)
905 tm_file=i386/vxi386.h
906 tmake_file=i386/t-i386bare
911 tm_file=i386/i386-aout.h
912 tmake_file=i386/t-i386bare
915 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
917 tm_file=i386/bsd386.h
918 # tmake_file=t-libc-ok
923 tm_file=i386/386bsd.h
924 # tmake_file=t-libc-ok
925 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
929 i[34567]86-*-freebsdelf*)
931 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
932 # On FreeBSD, the headers are already ok, except for math.h.
933 fixincludes=fixinc.wrap
934 tmake_file=i386/t-freebsd
940 i[34567]86-*-freebsd*)
942 tm_file=i386/freebsd.h
943 # On FreeBSD, the headers are already ok, except for math.h.
944 fixincludes=fixinc.wrap
945 tmake_file=i386/t-freebsd
948 i[34567]86-*-netbsd*)
950 tm_file=i386/netbsd.h
951 # On NetBSD, the headers are already okay, except for math.h.
952 fixincludes=fixinc.wrap
958 tm_file=i386/i386-coff.h
959 tmake_file=i386/t-i386bare
962 i[34567]86-*-isc*) # 80386 running ISC system
964 xm_file="${xm_file} i386/xm-isc.h"
965 xm_defines="USG SVR3"
968 i[34567]86-*-isc[34]*)
970 xmake_file=i386/x-isc3
973 xmake_file=i386/x-isc
976 if test x$gas = xyes -a x$stabs = xyes
978 tm_file=i386/iscdbx.h
979 tmake_file=i386/t-svr3dbx
980 extra_parts="svr3.ifile svr3z.ifile"
982 tm_file=i386/isccoff.h
983 tmake_file=i386/t-crtstuff
984 extra_parts="crtbegin.o crtend.o"
986 install_headers_dir=install-headers-cpio
989 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
990 changequote([,])dnl # with a.out format using
992 xmake_file=x-linux-aout
993 tmake_file="t-linux-aout i386/t-crtstuff"
994 tm_file=i386/linux-oldld.h
995 fixincludes=Makefile.in #On Linux, the headers are ok already.
1000 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1001 changequote([,])dnl # with a.out format
1002 xmake_file=x-linux-aout
1003 tmake_file="t-linux-aout i386/t-crtstuff"
1004 tm_file=i386/linux-aout.h
1005 fixincludes=Makefile.in #On Linux, the headers are ok already.
1010 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1011 changequote([,])dnl # with ELF format using the
1012 # GNU/Linux C library 5
1014 tm_file=i386/linux.h
1015 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1016 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1017 fixincludes=Makefile.in #On Linux, the headers are ok already.
1020 if test x$enable_threads = xyes; then
1021 thread_file='single'
1025 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1026 changequote([,])dnl # with ELF format using glibc 2
1027 # aka GNU/Linux C library 6
1029 tm_file=i386/linux.h
1030 tmake_file="t-linux i386/t-crtstuff"
1031 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1032 fixincludes=Makefile.in #On Linux, the headers are ok already.
1035 if test x$enable_threads = xyes; then
1044 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1046 xm_file=i386/xm-go32.h
1048 tmake_file=i386/t-go32
1051 i[34567]86-pc-msdosdjgpp*)
1053 xm_file=i386/xm-go32.h
1055 tmake_file=i386/t-go32
1060 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1063 tmake_file=t-libc-ok
1064 fixincludes=Makefile.in
1069 i[34567]86-*-lynxos*)
1071 if test x$gas = xyes
1075 tm_file=i386/lynx-ng.h
1077 xm_file=i386/xm-lynx.h
1078 tmake_file=i386/t-i386bare
1085 # tmake_file=t-libc-ok
1089 i[34567]86-*-osfrose*) # 386 using OSF/rose
1091 if test x$elf = xyes
1093 tm_file=i386/osfelf.h
1096 tm_file=i386/osfrose.h
1099 xm_file="i386/xm-osf.h ${xm_file}"
1100 xmake_file=i386/x-osfrose
1101 tmake_file=i386/t-osf
1102 extra_objs=halfpic.o
1105 i[34567]86-go32-rtems*)
1108 xm_file=i386/xm-go32.h
1109 tm_file=i386/go32-rtems.h
1110 tmake_file="i386/t-go32 t-rtems"
1113 i[34567]86-*-rtemself*)
1116 tm_file=i386/rtemself.h
1117 tmake_file="i386/t-i386bare t-rtems"
1120 i[34567]86-*-rtems*)
1123 tm_file=i386/rtems.h
1124 tmake_file="i386/t-i386bare t-rtems"
1127 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1129 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1130 xm_defines="USG SVR3"
1131 xmake_file=i386/x-sco5
1132 fixincludes=fixinc.sco
1133 install_headers_dir=install-headers-cpio
1135 if test x$gas = xyes
1137 tm_file="i386/sco5gas.h ${tm_file}"
1138 tmake_file=i386/t-sco5gas
1140 tmake_file=i386/t-sco5
1142 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1145 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1147 xm_file="${xm_file} i386/xm-sco.h"
1148 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1149 xmake_file=i386/x-sco4
1150 fixincludes=fixinc.sco
1151 install_headers_dir=install-headers-cpio
1152 if test x$stabs = xyes
1154 tm_file=i386/sco4dbx.h
1155 tmake_file=i386/t-svr3dbx
1156 extra_parts="svr3.ifile svr3z.rfile"
1159 tmake_file=i386/t-crtstuff
1160 extra_parts="crtbegin.o crtend.o"
1165 i[34567]86-*-sco*) # 80386 running SCO system
1167 xm_file=i386/xm-sco.h
1168 xmake_file=i386/x-sco
1169 install_headers_dir=install-headers-cpio
1170 if test x$stabs = xyes
1172 tm_file=i386/scodbx.h
1173 tmake_file=i386/t-svr3dbx
1174 extra_parts="svr3.ifile svr3z.rfile"
1177 extra_parts="crtbegin.o crtend.o"
1178 tmake_file=i386/t-crtstuff
1183 i[34567]86-*-solaris2*)
1185 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1186 xm_defines="USG POSIX SMALL_ARG_MAX"
1187 if test x$stabs = xyes
1189 tm_file=i386/sol2dbg.h
1193 tmake_file=i386/t-sol2
1194 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1200 fixincludes=fixinc.svr4;;
1202 fixincludes=fixinc.wrap;;
1204 if test x$enable_threads = xyes; then
1205 thread_file='solaris'
1209 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1211 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1212 xm_defines="USG POSIX"
1213 tm_file=i386/sysv4.h
1214 if test x$stabs = xyes
1216 tm_file="${tm_file} dbx.h"
1218 tmake_file=i386/t-crtpic
1220 extra_parts="crtbegin.o crtend.o"
1221 fixincludes=Makefile.in # The headers are just fine, thank you.
1224 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1226 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1227 xm_defines="USG POSIX SMALL_ARG_MAX"
1228 tm_file=i386/sysv4.h
1229 if test x$stabs = xyes
1231 tm_file="${tm_file} dbx.h"
1233 tmake_file=i386/t-crtpic
1235 extra_parts="crtbegin.o crtend.o"
1238 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1241 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1242 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1243 fixincludes=Makefile.in #Don't do it on OSF/1
1244 if test x$stabs = xyes
1246 tm_file=i386/osf1elfgdb.h
1248 tm_file=i386/osf1elf.h
1250 tmake_file=i386/t-osf1elf
1251 xmake_file=i386/x-osf1elf
1252 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1255 i[34567]86-*-sysv*) # Intel 80386's running system V
1257 xm_defines="USG SVR3"
1258 xmake_file=i386/x-sysv3
1259 if test x$gas = xyes
1261 if test x$stabs = xyes
1263 tm_file=i386/svr3dbx.h
1264 tmake_file=i386/t-svr3dbx
1265 extra_parts="svr3.ifile svr3z.rfile"
1267 tm_file=i386/svr3gas.h
1268 extra_parts="crtbegin.o crtend.o"
1269 tmake_file=i386/t-crtstuff
1272 tm_file=i386/sysv3.h
1273 extra_parts="crtbegin.o crtend.o"
1274 tmake_file=i386/t-crtstuff
1277 i386-*-vsta) # Intel 80386's running VSTa kernel
1278 xm_file="${xm_file} i386/xm-vsta.h"
1280 tmake_file=i386/t-vsta
1281 xmake_file=i386/x-vsta
1286 xm_file="${xm_file} i386/xm-cygwin32.h"
1287 tmake_file=i386/t-cygwin32
1288 tm_file=i386/win32.h
1289 xmake_file=i386/x-cygwin32
1291 fixincludes=Makefile.in
1292 if test x$enable_threads = xyes; then
1298 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1300 xm_file="${xm_file} i386/xm-cygwin32.h"
1301 tmake_file=i386/t-cygwin32
1302 tm_file=i386/cygwin32.h
1303 xmake_file=i386/x-cygwin32
1305 fixincludes=Makefile.in
1306 if test x$enable_threads = xyes; then
1312 i[34567]86-*-mingw32*)
1314 tm_file=i386/mingw32.h
1315 xm_file="${xm_file} i386/xm-mingw32.h"
1316 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1318 xmake_file=i386/x-cygwin32
1319 fixincludes=Makefile.in
1320 if test x$enable_threads = xyes; then
1327 *minwg32crt* | *mingw32*)
1328 tm_file="${tm_file} i386/crtdll.h"
1333 i[34567]86-*-winnt3*)
1335 tm_file=i386/win-nt.h
1336 out_file=i386/i386.c
1337 xm_file="xm-winnt.h ${xm_file}"
1338 xmake_file=winnt/x-winnt
1339 tmake_file=i386/t-winnt
1340 extra_host_objs="winnt.o oldnames.o"
1341 extra_gcc_objs="spawnv.o oldnames.o"
1342 fixincludes=fixinc.winnt
1343 if test x$gnu_ld != xyes
1345 extra_programs=ld.exe
1347 if test x$enable_threads = xyes; then
1352 i[34567]86-dg-dgux*)
1354 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1355 xm_defines="USG POSIX"
1356 out_file=i386/dgux.c
1358 tmake_file=i386/t-dgux
1359 xmake_file=i386/x-dgux
1360 fixincludes=fixinc.dgux
1361 install_headers_dir=install-headers-cpio
1363 i860-alliant-*) # Alliant FX/2800
1364 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1365 xm_file="${xm_file}"
1366 xmake_file=i860/x-fx2800
1367 tmake_file=i860/t-fx2800
1368 extra_parts="crtbegin.o crtend.o"
1371 tm_file="${tm_file} i860/bsd.h"
1372 if test x$gas = xyes
1374 tm_file="${tm_file} i860/bsd-gas.h"
1379 tm_file="${tm_file} i860/mach.h"
1380 tmake_file=t-libc-ok
1382 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1383 tm_file="${tm_file} svr3.h i860/paragon.h"
1384 xm_defines="USG SVR3"
1388 tm_file="${tm_file} svr3.h i860/sysv3.h"
1389 xm_defines="USG SVR3"
1390 xmake_file=i860/x-sysv3
1391 extra_parts="crtbegin.o crtend.o"
1394 tm_file="${tm_file} svr4.h i860/sysv4.h"
1395 xm_defines="USG SVR3"
1396 xmake_file=i860/x-sysv4
1398 extra_parts="crtbegin.o crtend.o"
1400 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1401 tm_file="${tm_file} i960/vx960.h"
1402 tmake_file=i960/t-vxworks960
1404 thread_file='vxworks'
1406 i960-wrs-vxworks5* | i960-wrs-vxworks)
1407 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1408 tmake_file=i960/t-vxworks960
1410 thread_file='vxworks'
1413 tm_file="${tm_file} i960/vx960.h"
1414 tmake_file=i960/t-vxworks960
1416 thread_file='vxworks'
1419 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1420 tmake_file=i960/t-960bare
1424 tmake_file="i960/t-960bare t-rtems"
1425 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1428 i960-*-*) # Default i960 environment.
1432 extra_parts="crtinit.o crtfini.o"
1434 m68000-convergent-sysv*)
1436 xm_file="m68k/xm-3b1.h ${xm_file}"
1439 extra_headers=math-68881.h
1441 m68000-hp-bsd*) # HP 9000/200 running BSD
1442 tm_file=m68k/hp2bsd.h
1443 xmake_file=m68k/x-hp2bsd
1445 extra_headers=math-68881.h
1447 m68000-hp-hpux*) # HP 9000 series 300
1448 xm_file="xm_alloca.h ${xm_file}"
1449 xm_defines="USG NO_SYS_SIGLIST"
1450 if test x$gas = xyes
1452 xmake_file=m68k/x-hp320g
1453 tm_file=m68k/hp310g.h
1455 xmake_file=m68k/x-hp320
1456 tm_file=m68k/hp310.h
1458 install_headers_dir=install-headers-cpio
1460 extra_headers=math-68881.h
1465 extra_headers=math-68881.h
1468 tm_file=m68k/sun2o4.h
1470 extra_headers=math-68881.h
1473 xm_file="m68k/xm-3b1.h ${xm_file}"
1475 if test x$gas = xyes
1482 extra_headers=math-68881.h
1484 m68k-apple-aux*) # Apple Macintosh running A/UX
1485 xm_defines="USG AUX"
1486 tmake_file=m68k/t-aux
1487 install_headers_dir=install-headers-cpio
1488 extra_headers=math-68881.h
1489 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1491 if test "$gnu_ld" = yes
1493 tm_file="${tm_file} m68k/auxgld.h"
1495 tm_file="${tm_file} m68k/auxld.h"
1497 if test "$gas" = yes
1499 tm_file="${tm_file} m68k/auxgas.h"
1501 tm_file="${tm_file} m68k/auxas.h"
1503 tm_file="${tm_file} m68k/a-ux.h"
1507 tm_file=m68k/apollo68.h
1508 xmake_file=m68k/x-apollo68
1510 extra_headers=math-68881.h
1513 m68k-altos-sysv*) # Altos 3068
1514 if test x$gas = xyes
1516 tm_file=m68k/altos3068.h
1519 echo "The Altos is supported only with the GNU assembler" 1>&2
1522 extra_headers=math-68881.h
1524 m68k-bull-sysv*) # Bull DPX/2
1525 if test x$gas = xyes
1527 if test x$stabs = xyes
1529 tm_file=m68k/dpx2cdbx.h
1531 tm_file=m68k/dpx2g.h
1536 xm_file="xm-alloca.h ${xm_file}"
1538 xmake_file=m68k/x-dpx2
1540 extra_headers=math-68881.h
1542 m68k-atari-sysv4*) # Atari variant of V.4.
1543 tm_file=m68k/atari.h
1544 xm_file="xm-alloca.h ${xm_file}"
1545 xm_defines="USG FULL_PROTOTYPES"
1547 extra_parts="crtbegin.o crtend.o"
1548 extra_headers=math-68881.h
1551 m68k-motorola-sysv*)
1552 tm_file=m68k/mot3300.h
1553 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1554 xm_defines=NO_SYS_SIGLIST
1555 if test x$gas = xyes
1557 xmake_file=m68k/x-mot3300-gas
1558 if test x$gnu_ld = xyes
1560 tmake_file=m68k/t-mot3300-gald
1562 tmake_file=m68k/t-mot3300-gas
1566 xmake_file=m68k/x-mot3300
1567 if test x$gnu_ld = xyes
1569 tmake_file=m68k/t-mot3300-gld
1571 tmake_file=m68k/t-mot3300
1575 gdb_needs_out_file_path=yes
1576 extra_parts="crt0.o mcrt0.o"
1577 extra_headers=math-68881.h
1580 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1581 tm_file=m68k/tower-as.h
1582 xm_defines="USG SVR3"
1583 xmake_file=m68k/x-tower
1584 extra_parts="crtbegin.o crtend.o"
1585 extra_headers=math-68881.h
1588 tm_file=m68k/plexus.h
1589 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1592 extra_headers=math-68881.h
1596 xm_file="xm-alloca.h ${xm_file}"
1598 extra_headers=math-68881.h
1601 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1602 xm_defines="USG unos"
1603 xmake_file=m68k/x-crds
1606 extra_headers=math-68881.h
1608 m68k-cbm-sysv4*) # Commodore variant of V.4.
1610 xm_file="xm-alloca.h ${xm_file}"
1611 xm_defines="USG FULL_PROTOTYPES"
1612 xmake_file=m68k/x-amix
1614 extra_parts="crtbegin.o crtend.o"
1615 extra_headers=math-68881.h
1619 tm_file=m68k/ccur-GAS.h
1620 xmake_file=m68k/x-ccur
1621 extra_headers=math-68881.h
1625 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1626 tm_file=m68k/hp3bsd44.h
1627 xmake_file=m68k/x-hp3bsd44
1629 extra_headers=math-68881.h
1632 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1633 tm_file=m68k/hp3bsd.h
1635 extra_headers=math-68881.h
1639 if test x$with_fp = xno
1641 tm_file=m68k/isi-nfp.h
1647 extra_headers=math-68881.h
1649 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1650 xm_file="xm_alloca.h ${xm_file}"
1651 xm_defines="USG NO_SYS_SIGLIST"
1652 if test x$gas = xyes
1654 xmake_file=m68k/x-hp320g
1655 tm_file=m68k/hp320g.h
1657 xmake_file=m68k/x-hp320
1658 tm_file=m68k/hpux7.h
1660 install_headers_dir=install-headers-cpio
1662 extra_headers=math-68881.h
1665 m68k-hp-hpux*) # HP 9000 series 300
1666 xm_file="xm_alloca.h ${xm_file}"
1667 xm_defines="USG NO_SYS_SIGLIST"
1668 if test x$gas = xyes
1670 xmake_file=m68k/x-hp320g
1671 tm_file=m68k/hp320g.h
1673 xmake_file=m68k/x-hp320
1674 tm_file=m68k/hp320.h
1676 install_headers_dir=install-headers-cpio
1678 extra_headers=math-68881.h
1682 tm_file=m68k/sun3mach.h
1684 extra_headers=math-68881.h
1688 if test x$gas = xyes
1690 tm_file=m68k/news3gas.h
1692 tm_file=m68k/news3.h
1695 extra_headers=math-68881.h
1698 m68k-sony-bsd* | m68k-sony-newsos*)
1699 if test x$gas = xyes
1701 tm_file=m68k/newsgas.h
1706 extra_headers=math-68881.h
1709 m68k-next-nextstep2*)
1710 tm_file=m68k/next21.h
1711 xm_file="m68k/xm-next.h ${xm_file}"
1712 tmake_file=m68k/t-next
1713 xmake_file=m68k/x-next
1714 extra_objs=nextstep.o
1715 extra_headers=math-68881.h
1719 m68k-next-nextstep3*)
1721 xm_file="m68k/xm-next.h ${xm_file}"
1722 tmake_file=m68k/t-next
1723 xmake_file=m68k/x-next
1724 extra_objs=nextstep.o
1725 extra_headers=math-68881.h
1727 if test x$enable_threads = xyes; then
1732 if test x$with_fp = xno
1734 tm_file=m68k/sun3n3.h
1736 tm_file=m68k/sun3o3.h
1740 extra_headers=math-68881.h
1742 m68k-sun-sunos*) # For SunOS 4 (the default).
1743 if test x$with_fp = xno
1745 tm_file=m68k/sun3n.h
1751 extra_headers=math-68881.h
1754 tm_file=m68k/vxm68k.h
1755 tmake_file=m68k/t-vxworks68
1756 extra_headers=math-68881.h
1757 thread_file='vxworks'
1761 tmake_file=m68k/t-m68kbare
1762 tm_file="m68k/m68k-aout.h libgloss.h"
1763 extra_headers=math-68881.h
1767 tmake_file=m68k/t-m68kbare
1768 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1769 extra_headers=math-68881.h
1773 if test x$gas = xyes
1777 tm_file=m68k/lynx-ng.h
1779 xm_file=m68k/xm-lynx.h
1781 tmake_file=m68k/t-lynx
1782 extra_headers=math-68881.h
1786 tm_file=m68k/netbsd.h
1787 # On NetBSD, the headers are already okay, except for math.h.
1788 fixincludes=fixinc.wrap
1792 m68k-*-sysv3*) # Motorola m68k's running system V.3
1793 xm_file="xm-alloca.h ${xm_file}"
1795 xmake_file=m68k/x-m68kv
1796 extra_parts="crtbegin.o crtend.o"
1797 extra_headers=math-68881.h
1800 m68k-*-sysv4*) # Motorola m68k's running system V.4
1801 tm_file=m68k/m68kv4.h
1802 xm_file="xm-alloca.h ${xm_file}"
1805 extra_parts="crtbegin.o crtend.o"
1806 extra_headers=math-68881.h
1809 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1812 tm_file=m68k/linux-aout.h
1813 tmake_file="t-linux-aout m68k/t-linux-aout"
1814 fixincludes=Makefile.in # The headers are ok already.
1815 extra_headers=math-68881.h
1819 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1820 # with ELF format using the
1821 # GNU/Linux C library 5
1823 tm_file=m68k/linux.h
1824 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1825 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1826 fixincludes=Makefile.in # The headers are ok already.
1827 extra_headers=math-68881.h
1831 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1832 # with ELF format using glibc 2
1833 # aka the GNU/Linux C library 6.
1835 tm_file=m68k/linux.h
1836 tmake_file="t-linux m68k/t-linux"
1837 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1838 fixincludes=Makefile.in # The headers are ok already.
1839 extra_headers=math-68881.h
1842 if test x$enable_threads = xyes; then
1847 tmake_file=m68k/t-m68kbare
1848 tm_file=m68k/m68k-psos.h
1849 extra_headers=math-68881.h
1853 tmake_file="m68k/t-m68kbare t-rtems"
1854 tm_file=m68k/rtems.h
1855 extra_headers=math-68881.h
1862 tm_file=m88k/dguxbcs.h
1863 tmake_file=m88k/t-dguxbcs
1867 tmake_file=m88k/t-dgux
1870 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1871 xmake_file=m88k/x-dgux
1872 if test x$gas = xyes
1874 tmake_file=m88k/t-dgux-gas
1876 fixincludes=fixinc.dgux
1878 m88k-dolphin-sysv3*)
1879 tm_file=m88k/dolph.h
1880 extra_parts="crtbegin.o crtend.o"
1881 xm_file="m88k/xm-sysv3.h ${xm_file}"
1882 xmake_file=m88k/x-dolph
1883 if test x$gas = xyes
1885 tmake_file=m88k/t-m88k-gas
1888 m88k-tektronix-sysv3)
1889 tm_file=m88k/tekXD88.h
1890 extra_parts="crtbegin.o crtend.o"
1891 xm_file="m88k/xm-sysv3.h ${xm_file}"
1892 xmake_file=m88k/x-tekXD88
1893 if test x$gas = xyes
1895 tmake_file=m88k/t-m88k-gas
1899 tm_file=m88k/m88k-aout.h
1902 tm_file=m88k/m88k-coff.h
1903 tmake_file=m88k/t-bug
1907 extra_parts="crtbegin.o crtend.o"
1908 if test x$gas = xyes
1910 tmake_file=m88k/t-luna-gas
1912 tmake_file=m88k/t-luna
1916 tm_file=m88k/sysv3.h
1917 extra_parts="crtbegin.o crtend.o"
1918 xm_file="m88k/xm-sysv3.h ${xm_file}"
1919 xmake_file=m88k/x-sysv3
1920 if test x$gas = xyes
1922 tmake_file=m88k/t-m88k-gas
1926 tm_file=m88k/sysv4.h
1927 extra_parts="crtbegin.o crtend.o"
1928 xmake_file=m88k/x-sysv4
1929 tmake_file=m88k/t-sysv4
1931 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1932 tm_file=mips/iris6.h
1933 xm_file=mips/xm-iris6.h
1934 fixincludes=fixinc.irix
1935 xmake_file=mips/x-iris6
1936 tmake_file=mips/t-iris6
1937 # if test x$enable_threads = xyes; then
1938 # thread_file='irix'
1942 tm_file="mips/elf.h libgloss.h"
1943 tmake_file=mips/t-ecoff
1946 extra_parts="crtbegin.o crtend.o"
1947 # thread_file='vxworks'
1949 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1950 tm_file="mips/iris6.h mips/cross64.h"
1952 xm_file="mips/xm-iris5.h"
1953 fixincludes=Makefile.in
1954 xmake_file=mips/x-iris
1955 tmake_file=mips/t-cross64
1956 # See comment in mips/iris[56].h files.
1958 # if test x$enable_threads = xyes; then
1959 # thread_file='irix'
1963 if test x$gas = xyes
1965 if test x$stabs = xyes
1967 tm_file=mips/iris5gdb.h
1969 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1972 tm_file=mips/sni-svr4.h
1975 xmake_file=mips/x-sni-svr4
1976 tmake_file=mips/t-mips-gas
1977 if test x$gnu_ld != xyes
1982 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1983 if test x$gas = xyes
1985 tm_file="mips/iris5.h mips/iris5gas.h"
1986 if test x$stabs = xyes
1988 tm_file="${tm_file} dbx.h"
1991 tm_file=mips/iris5.h
1994 xm_file="mips/xm-iris5.h"
1995 fixincludes=fixinc.irix
1996 xmake_file=mips/x-iris
1997 # mips-tfile doesn't work yet
1998 tmake_file=mips/t-mips-gas
1999 # See comment in mips/iris5.h file.
2001 # if test x$enable_threads = xyes; then
2002 # thread_file='irix'
2005 mips-sgi-irix4loser*) # Mostly like a MIPS.
2006 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2007 if test x$stabs = xyes; then
2008 tm_file="${tm_file} dbx.h"
2011 xmake_file=mips/x-iris
2012 if test x$gas = xyes
2014 tmake_file=mips/t-mips-gas
2016 extra_passes="mips-tfile mips-tdump"
2018 if test x$gnu_ld != xyes
2022 # if test x$enable_threads = xyes; then
2023 # thread_file='irix'
2026 mips-sgi-irix4*) # Mostly like a MIPS.
2027 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2028 if test x$stabs = xyes; then
2029 tm_file="${tm_file} dbx.h"
2032 xmake_file=mips/x-iris
2033 if test x$gas = xyes
2035 tmake_file=mips/t-mips-gas
2037 extra_passes="mips-tfile mips-tdump"
2039 if test x$gnu_ld != xyes
2043 # if test x$enable_threads = xyes; then
2044 # thread_file='irix'
2047 mips-sgi-*) # Mostly like a MIPS.
2048 tm_file="mips/iris3.h ${tm_file}"
2049 if test x$stabs = xyes; then
2050 tm_file="${tm_file} dbx.h"
2053 xmake_file=mips/x-iris3
2054 if test x$gas = xyes
2056 tmake_file=mips/t-mips-gas
2058 extra_passes="mips-tfile mips-tdump"
2060 if test x$gnu_ld != xyes
2065 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2066 tm_file="mips/osfrose.h ${tm_file}"
2067 xmake_file=mips/x-osfrose
2068 tmake_file=mips/t-osfrose
2069 extra_objs=halfpic.o
2072 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2073 tm_file=mips/dec-osf1.h
2074 if test x$stabs = xyes; then
2075 tm_file="${tm_file} dbx.h"
2077 xmake_file=mips/x-dec-osf1
2078 if test x$gas = xyes
2080 tmake_file=mips/t-mips-gas
2082 tmake_file=mips/t-ultrix
2083 extra_passes="mips-tfile mips-tdump"
2085 if test x$gnu_ld != xyes
2090 mips-dec-bsd*) # Decstation running 4.4 BSD
2091 tm_file=mips/dec-bsd.h
2093 if test x$gas = xyes
2095 tmake_file=mips/t-mips-gas
2097 tmake_file=mips/t-ultrix
2098 extra_passes="mips-tfile mips-tdump"
2100 if test x$gnu_ld != xyes
2105 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2106 tm_file=mips/netbsd.h
2107 # On NetBSD, the headers are already okay, except for math.h.
2108 fixincludes=fixinc.wrap
2111 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2112 tm_file="mips/news4.h ${tm_file}"
2113 if test x$stabs = xyes; then
2114 tm_file="${tm_file} dbx.h"
2116 if test x$gas = xyes
2118 tmake_file=mips/t-mips-gas
2120 extra_passes="mips-tfile mips-tdump"
2122 if test x$gnu_ld != xyes
2126 xmake_file=mips/x-sony
2128 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2129 # That is based on svr4.
2130 # t-svr4 is not right because this system doesn't use ELF.
2131 tm_file="mips/news5.h ${tm_file}"
2132 if test x$stabs = xyes; then
2133 tm_file="${tm_file} dbx.h"
2135 xm_file="xm-siglist.h ${xm_file}"
2137 if test x$gas = xyes
2139 tmake_file=mips/t-mips-gas
2141 extra_passes="mips-tfile mips-tdump"
2143 if test x$gnu_ld != xyes
2148 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2149 tm_file="mips/svr4-5.h mips/svr4-t.h"
2150 if test x$stabs = xyes; then
2151 tm_file="${tm_file} dbx.h"
2153 xm_file="xm-siglist.h ${xm_file}"
2155 xmake_file=mips/x-sysv
2156 if test x$gas = xyes
2158 tmake_file=mips/t-mips-gas
2159 extra_parts="crtbegin.o crtend.o"
2161 tmake_file=mips/t-mips
2162 extra_passes="mips-tfile mips-tdump"
2164 if test x$gnu_ld != xyes
2169 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2170 tm_file="mips/ultrix.h ${tm_file}"
2171 if test x$stabs = xyes; then
2172 tm_file="${tm_file} dbx.h"
2174 xmake_file=mips/x-ultrix
2175 if test x$gas = xyes
2177 tmake_file=mips/t-mips-gas
2179 tmake_file=mips/t-ultrix
2180 extra_passes="mips-tfile mips-tdump"
2182 if test x$gnu_ld != xyes
2188 mips-*-riscos[56789]bsd*)
2190 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2191 if test x$stabs = xyes; then
2192 tm_file="${tm_file} dbx.h"
2194 if test x$gas = xyes
2196 tmake_file=mips/t-bsd-gas
2198 tmake_file=mips/t-bsd
2199 extra_passes="mips-tfile mips-tdump"
2201 if test x$gnu_ld != xyes
2207 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2209 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2210 if test x$stabs = xyes; then
2211 tm_file="${tm_file} dbx.h"
2213 if test x$gas = xyes
2215 tmake_file=mips/t-bsd-gas
2217 tmake_file=mips/t-bsd
2218 extra_passes="mips-tfile mips-tdump"
2220 if test x$gnu_ld != xyes
2226 mips-*-riscos[56789]sysv4*)
2228 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2229 if test x$stabs = xyes; then
2230 tm_file="${tm_file} dbx.h"
2232 xm_file="xm-siglist.h ${xm_file}"
2233 xmake_file=mips/x-sysv
2234 if test x$gas = xyes
2236 tmake_file=mips/t-svr4-gas
2238 tmake_file=mips/t-svr4
2239 extra_passes="mips-tfile mips-tdump"
2241 if test x$gnu_ld != xyes
2247 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2249 tm_file="mips/svr4-4.h ${tm_file}"
2250 if test x$stabs = xyes; then
2251 tm_file="${tm_file} dbx.h"
2254 xmake_file=mips/x-sysv
2255 if test x$gas = xyes
2257 tmake_file=mips/t-svr4-gas
2259 tmake_file=mips/t-svr4
2260 extra_passes="mips-tfile mips-tdump"
2262 if test x$gnu_ld != xyes
2268 mips-*-riscos[56789]sysv*)
2270 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2271 if test x$stabs = xyes; then
2272 tm_file="${tm_file} dbx.h"
2275 xmake_file=mips/x-sysv
2276 if test x$gas = xyes
2278 tmake_file=mips/t-svr3-gas
2280 tmake_file=mips/t-svr3
2281 extra_passes="mips-tfile mips-tdump"
2283 if test x$gnu_ld != xyes
2288 mips-*-sysv* | mips-*-riscos*sysv*)
2289 tm_file="mips/svr3-4.h ${tm_file}"
2290 if test x$stabs = xyes; then
2291 tm_file="${tm_file} dbx.h"
2294 xmake_file=mips/x-sysv
2295 if test x$gas = xyes
2297 tmake_file=mips/t-svr3-gas
2299 tmake_file=mips/t-svr3
2300 extra_passes="mips-tfile mips-tdump"
2302 if test x$gnu_ld != xyes
2308 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2310 tm_file=mips/mips-5.h
2311 if test x$stabs = xyes; then
2312 tm_file="${tm_file} dbx.h"
2314 if test x$gas = xyes
2316 tmake_file=mips/t-mips-gas
2318 extra_passes="mips-tfile mips-tdump"
2320 if test x$gnu_ld != xyes
2328 tm_file=mips/ecoffl.h
2329 if test x$stabs = xyes; then
2330 tm_file="${tm_file} dbx.h"
2332 tmake_file=mips/t-ecoff
2335 tm_file="gofast.h mips/ecoff.h"
2336 if test x$stabs = xyes; then
2337 tm_file="${tm_file} dbx.h"
2339 tmake_file=mips/t-ecoff
2342 tm_file="mips/elfl.h libgloss.h"
2343 tmake_file=mips/t-ecoff
2346 tm_file="mips/elf.h libgloss.h"
2347 tmake_file=mips/t-ecoff
2350 tm_file="mips/elfl64.h libgloss.h"
2351 tmake_file=mips/t-ecoff
2353 mips64orionel-*-elf*)
2354 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2355 tmake_file=mips/t-ecoff
2358 tm_file="mips/elf64.h libgloss.h"
2359 tmake_file=mips/t-ecoff
2362 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2363 tmake_file=mips/t-ecoff
2365 mips64orion-*-rtems*)
2366 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2367 tmake_file="mips/t-ecoff t-rtems"
2370 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2371 tmake_file=mips/t-r3900
2374 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2375 tmake_file=mips/t-r3900
2376 # FIXME mips-elf should be fixed to use crtstuff.
2379 mips-*-*) # Default MIPS RISC-OS 4.0.
2380 if test x$stabs = xyes; then
2381 tm_file="${tm_file} dbx.h"
2383 if test x$gas = xyes
2385 tmake_file=mips/t-mips-gas
2387 extra_passes="mips-tfile mips-tdump"
2389 if test x$gnu_ld != xyes
2396 tm_file="mn10200/mn10200.h"
2397 if test x$stabs = xyes
2399 tm_file="${tm_file} dbx.h"
2405 tm_file="mn10300/mn10300.h"
2406 if test x$stabs = xyes
2408 tm_file="${tm_file} dbx.h"
2413 tm_file=ns32k/encore.h
2417 tm_file=ns32k/sequent.h
2421 tm_file=ns32k/tek6100.h
2425 tm_file=ns32k/tek6200.h
2428 # This has not been updated to GCC 2.
2431 # xmake_file=ns32k/x-genix
2432 # tm_file=ns32k/genix.h
2436 tm_file=ns32k/merlin.h
2440 tm_file=ns32k/pc532-mach.h
2444 tm_file=ns32k/pc532-min.h
2445 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2450 tm_file=ns32k/netbsd.h
2451 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2452 # On NetBSD, the headers are already okay, except for math.h.
2453 fixincludes=fixinc.wrap
2457 tm_file="${tm_file} pdp11/2bsd.h"
2463 xmake_file=pyr/x-pyr
2470 xmake_file=romp/x-mach
2475 tm_file=rs6000/beos.h
2476 xm_file=rs6000/xm-beos.h
2477 tmake_file=rs6000/t-beos
2478 xmake_file=rs6000/x-beos
2480 powerpc-*-sysv* | powerpc-*-elf*)
2481 tm_file=rs6000/sysv4.h
2482 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2483 xm_defines="USG POSIX"
2484 extra_headers=ppc-asm.h
2485 if test x$gas = xyes
2487 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2489 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2491 xmake_file=rs6000/x-sysv4
2494 tm_file=rs6000/eabiaix.h
2495 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2496 fixincludes=Makefile.in
2497 extra_headers=ppc-asm.h
2500 tm_file=rs6000/eabisim.h
2501 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2502 fixincludes=Makefile.in
2503 extra_headers=ppc-asm.h
2506 tm_file=rs6000/eabi.h
2507 if test x$gas = xyes
2509 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2511 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2513 fixincludes=Makefile.in
2514 extra_headers=ppc-asm.h
2517 tm_file=rs6000/rtems.h
2518 if test x$gas = xyes
2520 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2522 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2524 fixincludes=Makefile.in
2525 extra_headers=ppc-asm.h
2527 powerpc-*-linux-gnulibc1)
2528 tm_file=rs6000/linux.h
2529 xm_file=rs6000/xm-sysv4.h
2530 out_file=rs6000/rs6000.c
2531 if test x$gas = xyes
2533 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2535 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2538 fixincludes=Makefile.in
2539 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2540 extra_headers=ppc-asm.h
2541 if test x$enable_threads = xyes; then
2545 powerpc-*-linux-gnu*)
2546 tm_file=rs6000/linux.h
2547 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2548 xm_defines="USG ${xm_defines}"
2549 out_file=rs6000/rs6000.c
2550 if test x$gas = xyes
2552 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2554 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2557 fixincludes=Makefile.in
2558 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2559 extra_headers=ppc-asm.h
2560 if test x$enable_threads = xyes; then
2564 powerpc-wrs-vxworks*)
2566 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2567 xm_defines="USG POSIX"
2568 tm_file=rs6000/vxppc.h
2569 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2570 extra_headers=ppc-asm.h
2571 thread_file='vxworks'
2573 powerpcle-*-sysv* | powerpcle-*-elf*)
2574 tm_file=rs6000/sysv4le.h
2575 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2576 xm_defines="USG POSIX"
2577 if test x$gas = xyes
2579 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2581 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2583 xmake_file=rs6000/x-sysv4
2584 extra_headers=ppc-asm.h
2586 powerpcle-*-eabisim*)
2587 tm_file=rs6000/eabilesim.h
2588 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2589 fixincludes=Makefile.in
2590 extra_headers=ppc-asm.h
2593 tm_file=rs6000/eabile.h
2594 if test x$gas = xyes
2596 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2598 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2600 fixincludes=Makefile.in
2601 extra_headers=ppc-asm.h
2603 powerpcle-*-winnt* )
2604 tm_file=rs6000/win-nt.h
2605 tmake_file=rs6000/t-winnt
2607 fixincludes=Makefile.in
2608 if test x$enable_threads = xyes; then
2611 extra_headers=ppc-asm.h
2613 powerpcle-*-pe | powerpcle-*-cygwin32)
2614 tm_file=rs6000/cygwin32.h
2615 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2616 tmake_file=rs6000/t-winnt
2617 xmake_file=rs6000/x-cygwin32
2619 fixincludes=Makefile.in
2620 if test x$enable_threads = xyes; then
2624 extra_headers=ppc-asm.h
2626 powerpcle-*-solaris2*)
2627 tm_file=rs6000/sol2.h
2628 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2629 xm_defines="USG POSIX"
2630 if test x$gas = xyes
2632 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2634 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2636 xmake_file=rs6000/x-sysv4
2641 fixincludes=fixinc.svr4;;
2643 fixincludes=fixinc.wrap;;
2645 extra_headers=ppc-asm.h
2648 rs6000-ibm-aix3.[01]*)
2650 tm_file=rs6000/aix31.h
2651 xmake_file=rs6000/x-aix31
2655 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2657 tm_file=rs6000/aix3newas.h
2658 if test x$host != x$target
2660 tmake_file=rs6000/t-xnewas
2662 tmake_file=rs6000/t-newas
2667 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2669 tm_file=rs6000/aix41.h
2670 if test x$host != x$target
2672 tmake_file=rs6000/t-xnewas
2674 tmake_file=rs6000/t-newas
2676 xmake_file=rs6000/x-aix41
2680 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2682 tm_file=rs6000/aix43.h
2683 if test x$host != x$target
2685 tmake_file=rs6000/t-xaix43
2687 tmake_file=rs6000/t-aix43
2689 xmake_file=rs6000/x-aix43
2693 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2695 tm_file=rs6000/aix43.h
2696 if test x$host != x$target
2698 tmake_file=rs6000/t-xaix43
2700 tmake_file=rs6000/t-aix43
2702 xmake_file=rs6000/x-aix43
2712 tm_file=rs6000/mach.h
2713 xm_file="${xm_file} rs6000/xm-mach.h"
2714 xmake_file=rs6000/x-mach
2718 tm_file=rs6000/lynx.h
2719 xm_file=rs6000/xm-lynx.h
2720 tmake_file=rs6000/t-rs6000
2721 xmake_file=rs6000/x-lynx
2729 tmake_file="sh/t-sh t-rtems"
2730 tm_file=sh/rtemself.h
2734 tmake_file="sh/t-sh t-rtems"
2743 xm_file="xm-alloca.h ${xm_file}"
2746 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2747 tm_file=sparc/vxsparc.h
2748 tmake_file=sparc/t-vxsparc
2750 thread_file='vxworks'
2753 tmake_file=sparc/t-sparcbare
2754 tm_file="sparc/aout.h libgloss.h"
2757 tm_file=sparc/netbsd.h
2758 # On NetBSD, the headers are already okay, except for math.h.
2759 fixincludes=fixinc.wrap
2767 tmake_file=sparc/t-elf
2768 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2772 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2773 xm_file="${xm_file} sparc/xm-linux.h"
2774 tm_file=sparc/linux-aout.h
2776 fixincludes=Makefile.in #On Linux, the headers are ok already.
2779 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2780 xm_file="${xm_file} sparc/xm-linux.h"
2782 tm_file=sparc/linux.h
2783 tmake_file="t-linux t-linux-gnulibc1"
2784 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2785 fixincludes=Makefile.in #On Linux, the headers are ok already.
2788 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2789 xm_file="${xm_file} sparc/xm-linux.h"
2791 tm_file=sparc/linux.h
2792 tmake_file="t-linux"
2793 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2794 fixincludes=Makefile.in #On Linux, the headers are ok already.
2796 if test x$enable_threads = xyes; then
2801 if test x$gas = xyes
2803 tm_file=sparc/lynx.h
2805 tm_file=sparc/lynx-ng.h
2807 xm_file=sparc/xm-lynx.h
2808 tmake_file=sparc/t-sunos41
2812 tmake_file="sparc/t-sparcbare t-rtems"
2813 tm_file=sparc/rtems.h
2816 if test x$gnu_ld = xyes
2818 tm_file=sparc/sol2.h
2820 tm_file=sparc/sol2-sld.h
2822 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2823 xm_defines="USG POSIX"
2824 tmake_file=sparc/t-sol2
2825 xmake_file=sparc/x-sysv4
2826 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2831 fixincludes=fixinc.svr4;;
2833 fixincludes=fixinc.wrap;;
2836 if test x${enable_threads} = x; then
2837 enable_threads=$have_pthread_h
2838 if test x${enable_threads} = x; then
2839 enable_threads=$have_thread_h
2842 if test x${enable_threads} = xyes; then
2843 if test x${have_pthread_h} = xyes; then
2846 thread_file='solaris'
2851 tm_file=sparc/sunos4.h
2852 tmake_file=sparc/t-sunos40
2856 tm_file=sparc/sunos4.h
2857 tmake_file=sparc/t-sunos41
2859 if test x$gas = xyes; then
2860 tm_file="${tm_file} sparc/sun4gas.h"
2864 tm_file=sparc/sun4o3.h
2868 tm_file=sparc/sysv4.h
2869 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2870 xm_defines="USG POSIX"
2872 xmake_file=sparc/x-sysv4
2873 extra_parts="crtbegin.o crtend.o"
2876 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2877 xm_defines="USG POSIX"
2878 tm_file=sparc/vxsim.h
2879 tmake_file=sparc/t-vxsparc
2880 xmake_file=sparc/x-sysv4
2883 tm_file="sparc/splet.h libgloss.h"
2884 tmake_file=sparc/t-splet
2887 tm_file="sparc/litecoff.h libgloss.h"
2888 tmake_file=sparc/t-sparclite
2891 tm_file="sparc/lite.h aoutos.h libgloss.h"
2892 tmake_file=sparc/t-sparclite
2895 tmake_file=sparc/t-sp64
2896 tm_file=sparc/sp64-aout.h
2899 tmake_file=sparc/t-sp64
2900 tm_file=sparc/sp64-elf.h
2901 extra_parts="crtbegin.o crtend.o"
2903 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2904 tmake_file=sparc/t-sp64
2905 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2906 tm_file=sparc/linux64.h
2908 fixincludes=Makefile.in # The headers are ok already.
2911 # This hasn't been upgraded to GCC 2.
2912 # tahoe-harris-*) # Harris tahoe, using COFF.
2913 # tm_file=tahoe/harris.h
2915 # tahoe-*-bsd*) # tahoe running BSD
2917 thumb-*-coff* | thumbel-*-coff*)
2919 out_file=arm/thumb.c
2920 xm_file=arm/xm-thumb.h
2921 md_file=arm/thumb.md
2922 tmake_file=arm/t-thumb
2923 fixincludes=Makefile.in # There is nothing to fix
2925 # This hasn't been upgraded to GCC 2.
2932 tm_file="v850/v850.h"
2933 xm_file="v850/xm-v850.h"
2934 tmake_file=v850/t-v850
2935 if test x$stabs = xyes
2937 tm_file="${tm_file} dbx.h"
2941 vax-*-bsd*) # vaxen running BSD
2945 vax-*-sysv*) # vaxen running system V
2946 tm_file="${tm_file} vax/vaxv.h"
2951 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2952 # On NetBSD, the headers are already okay, except for math.h.
2953 fixincludes=fixinc.wrap
2957 vax-*-ultrix*) # vaxen running ultrix
2958 tm_file="${tm_file} vax/ultrix.h"
2962 vax-*-vms*) # vaxen running VMS
2963 xm_file=vax/xm-vms.h
2967 vax-*-*) # vax default entry
2971 xm_file="${xm_file} xm-svr3"
2975 echo "Configuration $machine not supported" 1>&2
2982 ;; # Existing GNU/Linux systems do not use the GNU setup.
2984 # On the GNU system, the setup is just about the same on
2985 # each different CPU. The specific machines that GNU
2986 # supports are matched above and just set $cpu_type.
2987 xm_file="xm-gnu.h ${xm_file}"
2988 tm_file=${cpu_type}/gnu.h
2989 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2990 # GNU always uses ELF.
2992 # GNU tools are the only tools.
2995 # On GNU, the headers are already okay.
2996 fixincludes=Makefile.in
2997 xmake_file=x-linux # These details are the same as Linux.
2998 tmake_file=t-gnu # These are not.
3001 fixincludes=fixinc.svr4
3002 xmake_try_sysv=x-sysv
3003 install_headers_dir=install-headers-cpio
3006 install_headers_dir=install-headers-cpio
3010 # Distinguish i[34567]86
3011 # Also, do not run mips-tfile on MIPS if using gas.
3012 # Process --with-cpu= for PowerPC/rs6000
3013 target_cpu_default2=
3016 target_cpu_default2=1
3019 target_cpu_default2=2
3021 i686-*-* | i786-*-*)
3022 target_cpu_default2=3
3027 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3030 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3033 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3036 target_cpu_default2="MASK_CPU_EV5"
3040 if test x$gas = xyes
3042 if test "$target_cpu_default2" = ""
3044 target_cpu_default2="MASK_GAS"
3046 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3051 case "x$with_cpu" in
3054 target_cpu_default2="TARGET_CPU_generic"
3057 # Distinguish cores, and major variants
3058 # arm7m doesn't exist, but D & I don't affect code
3059 xarm[23678] | xarm250 | xarm[67][01]0 \
3060 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3061 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3062 | xstrongarm | xstrongarm110)
3063 target_cpu_default2="TARGET_CPU_$with_cpu"
3067 echo "--with-cpu must be passed a value" 1>&2
3072 if test x$pass2done = xyes
3074 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3081 mips*-*-ecoff* | mips*-*-elf*)
3082 if test x$gas = xyes
3084 if test x$gnu_ld = xyes
3086 target_cpu_default2=20
3088 target_cpu_default2=16
3093 if test x$gas = xyes
3095 target_cpu_default2=16
3098 powerpc*-*-* | rs6000-*-*)
3099 case "x$with_cpu" in
3103 xcommon | xpower | xpower2 | xpowerpc | xrios \
3104 | xrios1 | xrios2 | xrsc | xrsc1 \
3105 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3106 | x403 | x505 | x801 | x821 | x823 | x860)
3107 target_cpu_default2="\"$with_cpu\""
3111 echo "--with-cpu must be passed a value" 1>&2
3116 if test x$pass2done = xyes
3118 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3125 case ".$with_cpu" in
3127 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3129 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3130 target_cpu_default2="TARGET_CPU_$with_cpu"
3133 if test x$pass2done = xyes
3135 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3143 if test "$target_cpu_default2" != ""
3145 if test "$target_cpu_default" != ""
3147 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3149 target_cpu_default=$target_cpu_default2
3153 # No need for collect2 if we have the GNU linker.
3154 # Actually, there is now; GNU ld doesn't handle the EH info or
3155 # collecting for shared libraries.
3162 # Save data on machine being used to compile GCC in build_xm_file.
3163 # Save data on host machine in vars host_xm_file and host_xmake_file.
3164 if test x$pass1done = x
3166 if test x"$xm_file" = x
3167 then build_xm_file=$cpu_type/xm-$cpu_type.h
3168 else build_xm_file=$xm_file
3170 build_xm_defines=$xm_defines
3171 build_install_headers_dir=$install_headers_dir
3172 build_exeext=$exeext
3175 if test x$pass2done = x
3177 if test x"$xm_file" = x
3178 then host_xm_file=$cpu_type/xm-$cpu_type.h
3179 else host_xm_file=$xm_file
3181 host_xm_defines=$xm_defines
3182 if test x"$xmake_file" = x
3183 then xmake_file=$cpu_type/x-$cpu_type
3185 host_xmake_file="$xmake_file"
3186 host_truncate_target=$truncate_target
3187 host_extra_gcc_objs=$extra_gcc_objs
3188 host_extra_objs=$extra_host_objs
3195 extra_objs="${host_extra_objs} ${extra_objs}"
3197 # Default the target-machine variables that were not explicitly set.
3198 if test x"$tm_file" = x
3199 then tm_file=$cpu_type/$cpu_type.h; fi
3201 if test x$extra_headers = x
3202 then extra_headers=; fi
3204 if test x"$xm_file" = x
3205 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3207 if test x$md_file = x
3208 then md_file=$cpu_type/$cpu_type.md; fi
3210 if test x$out_file = x
3211 then out_file=$cpu_type/$cpu_type.c; fi
3213 if test x"$tmake_file" = x
3214 then tmake_file=$cpu_type/t-$cpu_type
3217 if test x$float_format = x
3218 then float_format=i64
3221 if test x$enable_haifa = x
3224 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3229 # Say what files are being used for the output code and MD file.
3230 echo "Using \`$srcdir/config/$out_file' to output insns."
3231 echo "Using \`$srcdir/config/$md_file' as machine description file."
3234 for f in $tm_file; do
3237 if test $count = ax; then
3238 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3240 echo "Using the following target machine macro files:"
3241 for f in $tm_file; do
3242 echo " $srcdir/config/$f"
3247 for f in $host_xm_file; do
3250 if test $count = ax; then
3251 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3253 echo "Using the following host machine macro files:"
3254 for f in $host_xm_file; do
3255 echo " $srcdir/config/$f"
3259 if test "$host_xm_file" != "$build_xm_file"; then
3261 for f in $build_xm_file; do
3264 if test $count = ax; then
3265 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3267 echo "Using the following build machine macro files:"
3268 for f in $build_xm_file; do
3269 echo " $srcdir/config/$f"
3274 if test x$thread_file = x; then
3275 if test x$target_thread_file != x; then
3276 thread_file=$target_thread_file
3278 thread_file='single'
3282 # Set up the header files.
3283 # $links is the list of header files to create.
3284 # $vars is the list of shell variables with file names to include.
3285 # auto-host.h is the file containing items generated by autoconf and is
3286 # the first file included by config.h.
3288 host_xm_file="auto-host.h ${host_xm_file}"
3290 # If host=build, it is correct to have hconfig include auto-host.h
3291 # as well. If host!=build, we are in error and need to do more
3292 # work to find out the build config parameters.
3293 if test x$host = x$build
3295 build_xm_file="auto-host.h ${build_xm_file}"
3297 # We create a subdir, then run autoconf in the subdir.
3298 # To prevent recursion we set host and build for the new
3299 # invocation of configure to the build for this invocation
3306 /*) realsrcdir=${srcdir};;
3307 *) realsrcdir=../${srcdir};;
3309 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3310 --target=$target --host=$build --build=$build
3312 # We just finished tests for the build machine, so rename
3313 # the file auto-build.h in the gcc directory.
3314 mv auto-host.h ../auto-build.h
3317 build_xm_file="auto-build.h ${build_xm_file}"
3320 vars="host_xm_file tm_file xm_file build_xm_file"
3321 links="config.h tm.h tconfig.h hconfig.h"
3322 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3325 if test -f config.status; then mv -f config.status config.bak; fi
3328 while test -n "$vars"
3330 set $vars; var=$1; shift; vars=$*
3331 set $links; link=$1; shift; links=$*
3332 set $defines; define=$1; shift; defines=$*
3336 # Define TARGET_CPU_DEFAULT if the system wants one.
3337 # This substitutes for lots of *.h files.
3338 if test "$target_cpu_default" != "" -a $link = tm.h
3340 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3343 for file in `eval echo '$'$var`; do
3344 echo "#include \"$file\"" >>$link
3347 for def in `eval echo '$'$define`; do
3348 echo "#ifndef $def" >>$link
3349 echo "#define $def" >>$link
3350 echo "#endif" >>$link
3354 # Truncate the target if necessary
3355 if test x$host_truncate_target != x; then
3356 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3359 # Get the version trigger filename from the toplevel
3360 if test "${with_gcc_version_trigger+set}" = set; then
3361 gcc_version_trigger=$with_gcc_version_trigger
3363 gcc_version_trigger=${srcdir}/version.c
3366 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3369 # Get an absolute path to the GCC top-level source directory
3375 # Conditionalize the makefile for this host machine.
3376 # Make-host contains the concatenation of all host makefile fragments
3377 # [there can be more than one]. This file is built by configure.frag.
3378 host_overrides=Make-host
3379 dep_host_xmake_file=
3380 for f in .. ${host_xmake_file}
3382 if test -f ${srcdir}/config/$f
3384 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3388 # Conditionalize the makefile for this target machine.
3389 # Make-target contains the concatenation of all host makefile fragments
3390 # [there can be more than one]. This file is built by configure.frag.
3391 target_overrides=Make-target
3393 for f in .. ${tmake_file}
3395 if test -f ${srcdir}/config/$f
3397 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3401 # If the host doesn't support symlinks, modify CC in
3402 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3403 # Otherwise, we can use "CC=$(CC)".
3405 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3407 cc_set_by_configure="\$(CC)"
3408 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3411 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3413 symbolic_link="cp -p"
3417 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3418 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3422 out_object_file=`basename $out_file .c`.o
3425 for f in $tm_file; do
3426 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3430 for f in $host_xm_file; do
3431 if test $f != "auto-host.h"; then
3432 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3434 host_xm_file_list="${host_xm_file_list} auto-host.h"
3439 for f in $build_xm_file; do
3440 if test $f != "auto-build.h"; then
3441 if test $f != "auto-host.h"; then
3442 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3444 build_xm_file_list="${build_xm_file_list} auto-host.h"
3447 build_xm_file_list="${build_xm_file_list} auto-build.h"
3451 # Define macro CROSS_COMPILE in compilation
3452 # if this is a cross-compiler.
3453 # Also use all.cross instead of all.internal
3454 # and add cross-make to Makefile.
3455 cross_overrides="/dev/null"
3456 if test x$host != x$target
3458 cross_defines="CROSS=-DCROSS_COMPILE"
3459 cross_overrides="${topdir}/cross-make"
3462 # When building gcc with a cross-compiler, we need to fix a few things.
3463 # This must come after cross-make as we want all.build to override
3465 build_overrides="/dev/null"
3466 if test x$build != x$host
3468 build_overrides="${topdir}/build-make"
3471 # Expand extra_headers to include complete path.
3472 # This substitutes for lots of t-* files.
3474 if test "x$extra_headers" = x
3477 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3478 for file in $extra_headers;
3480 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3484 if test x$use_collect2 = xno; then
3488 # Add a definition of USE_COLLECT2 if system wants one.
3489 # Also tell toplev.c what to do.
3490 # This substitutes for lots of t-* files.
3491 if test x$use_collect2 = x
3496 will_use_collect2="collect2"
3497 maybe_use_collect2="-DUSE_COLLECT2"
3501 # Set MD_DEPS if the real md file is in md.pre-cpp.
3502 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3503 # for line oriented comments, so we must always use a GNU cpp. If
3504 # building gcc with a cross compiler, use the cross compiler just
3505 # built. Otherwise, we can use the cpp just built.
3507 if test "x$md_cppflags" = x
3509 md_file_sub=$srcdir/config/$md_file
3514 # If we have gas in the build tree, make a link to it.
3515 if test -f ../gas/Makefile; then
3516 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3519 # If we have nm in the build tree, make a link to it.
3520 if test -f ../binutils/Makefile; then
3521 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3524 # If we have ld in the build tree, make a link to it.
3525 if test -f ../ld/Makefile; then
3526 # if test x$use_collect2 = x; then
3527 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3529 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3533 # Figure out what assembler alignment features are present.
3534 AC_MSG_CHECKING(assembler alignment features)
3536 gcc_cv_as_alignment_features=
3537 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'`
3538 if test -x as$host_exeext; then
3539 # Build using assembler in the current directory.
3540 gcc_cv_as=./as$host_exeext
3541 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3542 # Single tree build which includes gas.
3543 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3546 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3548 if test x$gcc_cv_gas_version != x; then
3553 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3554 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3556 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3557 # Gas version 2.6 and later support for .balign and .p2align.
3558 # bytes to skip when using .p2align.
3559 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 6 -o "$gcc_cv_gas_major_version" -gt 2; then
3560 gcc_cv_as_alignment_features=".balign and .p2align"
3561 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3563 # Gas version 2.8 and later support specifying the maximum
3564 # bytes to skip when using .p2align.
3565 if test "$gcc_cv_gas_major_version" -eq 2 -a "$gcc_cv_gas_minor_version" -ge 8 -o "$gcc_cv_gas_major_version" -gt 2; then
3566 gcc_cv_as_alignment_features=".p2align including maximum skip"
3567 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3570 elif test x$host = x$target; then
3572 gcc_cv_as=as$host_exeext
3574 if test x$gcc_cv_as != x; then
3575 # Check if we have .balign and .p2align
3576 echo ".balign 4" > conftest.s
3577 echo ".p2align 2" >> conftest.s
3578 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3579 gcc_cv_as_alignment_features=".balign and .p2align"
3580 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3582 rm -f conftest.s conftest.o
3583 # Check if specifying the maximum bytes to skip when
3584 # using .p2align is supported.
3585 echo ".p2align 4,,7" > conftest.s
3586 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3587 gcc_cv_as_alignment_features=".p2align including maximum skip"
3588 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3590 rm -f conftest.s conftest.o
3592 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3594 # Figure out what language subdirectories are present.
3596 for lang in ${srcdir}/*/config-lang.in ..
3600 # The odd quoting in the next line works around
3601 # an apparent bug in bash 1.12 on linux.
3603 ${srcdir}/ada/config-lang.in)
3604 if test x$gnat = xyes ; then
3605 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3608 ${srcdir}/[*]/config-lang.in) ;;
3609 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3614 # Make gthr-default.h if we have a thread file.
3616 if test $thread_file != single; then
3617 rm -f gthr-default.h
3618 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3619 gthread_flags=-DHAVE_GTHR_DEFAULT
3621 AC_SUBST(gthread_flags)
3623 # Make empty files to contain the specs and options for each language.
3624 # Then add #include lines to for a compiler that has specs and/or options.
3629 rm -f specs.h options.h gencheck.h
3630 touch specs.h options.h gencheck.h
3631 for subdir in . $subdirs
3633 if test -f $srcdir/$subdir/lang-specs.h; then
3634 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3635 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3637 if test -f $srcdir/$subdir/lang-options.h; then
3638 echo "#include \"$subdir/lang-options.h\"" >>options.h
3639 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3641 if test -f $srcdir/$subdir/$subdir-tree.def; then
3642 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3643 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3647 # These (without "all_") are set in each config-lang.in.
3648 # `language' must be a single word so is spelled singularly.
3654 all_outputs=Makefile
3655 # List of language makefile fragments.
3660 # Add the language fragments.
3661 # Languages are added via two mechanisms. Some information must be
3662 # recorded in makefile variables, these are defined in config-lang.in.
3663 # We accumulate them and plug them into the main Makefile.
3664 # The other mechanism is a set of hooks for each of the main targets
3665 # like `clean', `install', etc.
3667 language_fragments="Make-lang"
3668 language_hooks="Make-hooks"
3671 for s in .. $subdirs
3683 . ${srcdir}/$s/config-lang.in
3684 if test "x$language" = x
3686 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3689 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3690 all_languages="$all_languages $language"
3691 if test "x$boot_language" = xyes
3693 all_boot_languages="$all_boot_languages $language"
3695 all_compilers="$all_compilers $compilers"
3696 all_stagestuff="$all_stagestuff $stagestuff"
3697 all_diff_excludes="$all_diff_excludes $diff_excludes"
3698 all_headers="$all_headers $headers"
3699 all_outputs="$all_outputs $outputs"
3700 if test x$outputs = x
3702 oldstyle_subdirs="$oldstyle_subdirs $s"
3704 all_lib2funcs="$all_lib2funcs $lib2funcs"
3708 # Since we can't use `::' targets, we link each language in
3709 # with a set of hooks, reached indirectly via lang.${target}.
3713 target_list="all.build all.cross start.encap rest.encap \
3715 install-normal install-common install-info install-man \
3717 mostlyclean clean distclean extraclean maintainer-clean \
3718 stage1 stage2 stage3 stage4"
3719 for t in $target_list
3722 for l in .. $all_languages
3724 if test $l != ".."; then
3728 echo "lang.$t: $x" >> Make-hooks
3731 # If we're not building in srcdir, create .gdbinit.
3733 if test ! -f Makefile.in; then
3734 echo "dir ." > .gdbinit
3735 echo "dir ${srcdir}" >> .gdbinit
3736 if test x$gdb_needs_out_file_path = xyes
3738 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3740 if test "x$subdirs" != x; then
3743 echo "dir ${srcdir}/$s" >> .gdbinit
3746 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3749 # Define variables host_canonical and build_canonical
3750 # because some Cygnus local changes in the Makefile depend on them.
3751 build_canonical=${build}
3752 host_canonical=${host}
3754 if test "${host}" != "${target}" ; then
3755 target_subdir=${target}/
3757 AC_SUBST(build_canonical)
3758 AC_SUBST(host_canonical)
3759 AC_SUBST(target_subdir)
3761 # If this is using newlib, then define inhibit_libc in
3762 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3763 # libgcc.a, but that's OK because newib should have its own version of
3766 if test x$with_newlib = xyes; then
3767 inhibit_libc=-Dinhibit_libc
3769 AC_SUBST(inhibit_libc)
3771 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3774 if test x$enable_haifa = xyes; then
3775 echo "Using the Haifa scheduler."
3777 sched_cflags=-DHAIFA
3779 AC_SUBST(sched_prefix)
3780 AC_SUBST(sched_cflags)
3781 if test x$enable_haifa != x; then
3782 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3783 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3791 # Warn if using init_priority.
3792 AC_MSG_CHECKING(whether to enable init_priority by default)
3793 if test x$enable_init_priority != xyes; then
3794 enable_init_priority=no
3796 AC_MSG_RESULT($enable_init_priority)
3798 # Nothing to do for FLOAT_H, float_format already handled.
3802 # Process the language and host/target makefile fragments.
3803 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3805 # Substitute configuration variables
3807 AC_SUBST(all_languages)
3808 AC_SUBST(all_boot_languages)
3809 AC_SUBST(all_compilers)
3810 AC_SUBST(all_lang_makefiles)
3811 AC_SUBST(all_stagestuff)
3812 AC_SUBST(all_diff_excludes)
3813 AC_SUBST(all_lib2funcs)
3814 AC_SUBST(all_headers)
3816 AC_SUBST(extra_passes)
3817 AC_SUBST(extra_programs)
3818 AC_SUBST(extra_parts)
3819 AC_SUBST(extra_c_objs)
3820 AC_SUBST(extra_cxx_objs)
3821 AC_SUBST(extra_cpp_objs)
3822 AC_SUBST(extra_c_flags)
3823 AC_SUBST(extra_objs)
3824 AC_SUBST(host_extra_gcc_objs)
3825 AC_SUBST(extra_headers_list)
3826 AC_SUBST(dep_host_xmake_file)
3827 AC_SUBST(dep_tmake_file)
3829 AC_SUBST(out_object_file)
3831 AC_SUBST(tm_file_list)
3832 AC_SUBST(build_xm_file_list)
3833 AC_SUBST(host_xm_file_list)
3834 AC_SUBST(lang_specs_files)
3835 AC_SUBST(lang_options_files)
3836 AC_SUBST(lang_tree_files)
3837 AC_SUBST(thread_file)
3838 AC_SUBST(objc_boehm_gc)
3839 AC_SUBST(gcc_version)
3840 AC_SUBST(gcc_version_trigger)
3841 AC_SUBST(local_prefix)
3842 AC_SUBST(gxx_include_dir)
3843 AC_SUBST(fixincludes)
3844 AC_SUBST(build_install_headers_dir)
3845 AC_SUBST(build_exeext)
3846 AC_SUBST(host_exeext)
3847 AC_SUBST(float_format)
3848 AC_SUBST(will_use_collect2)
3849 AC_SUBST(maybe_use_collect2)
3850 AC_SUBST(cc_set_by_configure)
3851 AC_SUBST(stage_prefix_set_by_configure)
3853 AC_SUBST(symbolic_link)
3855 AC_SUBST_FILE(target_overrides)
3856 AC_SUBST_FILE(host_overrides)
3857 AC_SUBST(cross_defines)
3858 AC_SUBST_FILE(cross_overrides)
3859 AC_SUBST_FILE(build_overrides)
3860 AC_SUBST_FILE(language_fragments)
3861 AC_SUBST_FILE(language_hooks)
3863 # Echo that links are built
3864 if test x$host = x$target
3872 if test x$host != x$build
3874 str3=" on a $build system"
3877 if test "x$str2" != x || test "x$str3" != x
3882 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3884 if test "x$str2" != x || test "x$str3" != x
3886 echo " ${str2}${str3}." 1>&2
3889 # Truncate the target if necessary
3890 if test x$host_truncate_target != x; then
3891 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3894 # Configure the subdirectories
3895 # AC_CONFIG_SUBDIRS($subdirs)
3897 # Create the Makefile
3898 # and configure language subdirectories
3899 AC_OUTPUT($all_outputs,
3901 . $srcdir/configure.lang
3902 case x$CONFIG_HEADERS in
3903 xauto-host.h:config.in)
3906 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3907 # bootstrapping and the installation procedure can still use
3908 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3909 # FLAGS_TO_PASS has been modified to solve the problem there.
3910 # This is virtually a duplicate of what happens in configure.lang; we do
3911 # an extra check to make sure this only happens if ln -s can be used.
3912 if test "$symbolic_link" = "ln -s"; then
3913 for d in .. ${subdirs} ; do
3914 if test $d != ..; then
3917 for t in stage1 stage2 stage3 stage4 include
3920 $symbolic_link ../$t $t 2>/dev/null
3931 target_alias='${target_alias}'
3933 subdirs='${subdirs}'
3934 oldstyle_subdirs='${oldstyle_subdirs}'
3935 symbolic_link='${symbolic_link}'
3936 program_transform_set='${program_transform_set}'
3937 program_transform_name='${program_transform_name}'
3938 dep_host_xmake_file='${dep_host_xmake_file}'
3939 host_xmake_file='${host_xmake_file}'
3940 dep_tmake_file='${dep_tmake_file}'
3941 tmake_file='${tmake_file}'
3942 thread_file='${thread_file}'
3943 gcc_version='${gcc_version}'
3944 gcc_version_trigger='${gcc_version_trigger}'
3945 local_prefix='${local_prefix}'
3946 build_install_headers_dir='${build_install_headers_dir}'
3947 build_exeext='${build_exeext}'
3948 host_exeext='${host_exeext}'
3949 out_file='${out_file}'
3950 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3951 SET_MAKE='${SET_MAKE}'
3952 target_list='${target_list}'
3953 target_overrides='${target_overrides}'
3954 host_overrides='${host_overrides}'
3955 cross_defines='${cross_defines}'
3956 cross_overrides='${cross_overrides}'
3957 build_overrides='${build_overrides}'