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 # Determine the host, build, and target systems
179 # Find the native compiler
182 # If the native compiler is GCC, we can enable warnings even in stage1.
183 # That's useful for people building cross-compilers, or just running a
185 if test "x$GCC" = "xyes"; then
186 stage1_warn_cflags='$(WARN_CFLAGS)'
188 stage1_warn_cflags=""
190 AC_SUBST(stage1_warn_cflags)
194 # Find some useful tools
206 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)
208 # Check for thread headers.
209 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
210 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
212 # See if the system preprocessor understands the ANSI C preprocessor
213 # stringification operator.
214 AC_MSG_CHECKING(whether cpp understands the stringify operator)
215 AC_CACHE_VAL(gcc_cv_c_have_stringify,
218 char *test = S(foo);],
219 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
220 AC_MSG_RESULT($gcc_cv_c_have_stringify)
221 if test $gcc_cv_c_have_stringify = yes; then
222 AC_DEFINE(HAVE_CPP_STRINGIFY)
225 # Use <inttypes.h> only if it exists,
226 # doesn't clash with <sys/types.h>, and declares intmax_t.
227 AC_MSG_CHECKING(for inttypes.h)
228 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
230 [#include <sys/types.h>
231 #include <inttypes.h>],
233 [AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H)
234 gcc_cv_header_inttypes_h=yes],
235 gcc_cv_header_inttypes_h=no)])
236 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
238 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
239 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
240 sysconf isascii gettimeofday)
242 # Make sure wchar_t is available
243 #AC_CHECK_TYPE(wchar_t, unsigned int)
245 GCC_FUNC_VFPRINTF_DOPRNT
248 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
249 index rindex getenv atol sbrk abort atof strerror getcwd getwd)
251 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
252 #include <sys/types.h>
253 #ifdef HAVE_SYS_RESOURCE_H
254 #include <sys/resource.h>
268 build_install_headers_dir=install-headers-tar
273 host_truncate_target=
276 # Decode the host machine, then the target machine.
277 # For the host machine, we save the xm_file variable as host_xm_file;
278 # then we decode the target machine and forget everything else
279 # that came from the host machine.
280 for machine in $build $host $target; do
294 # Set this to force installation and use of collect2.
296 # Set this to override the default target model.
298 # Set this to control which fixincludes program to use.
299 if test x$fast_fixinc != xyes; then
300 fixincludes=fixincludes
301 else fixincludes=fixinc.sh ; fi
302 # Set this to control how the header file directory is installed.
303 install_headers_dir=install-headers-tar
304 # Set this to a non-empty list of args to pass to cpp if the target
305 # wants its .md file passed through cpp.
307 # Set this if directory names should be truncated to 14 characters.
309 # Set this if gdb needs a dir command with `dirname $out_file`
310 gdb_needs_out_file_path=
311 # Set this if the build machine requires executables to have a
314 # Set this to control which thread package will be used.
316 # Reinitialize these from the flag values every loop pass, since some
317 # configure entries modify them.
319 gnu_ld="$gnu_ld_flag"
320 enable_threads=$enable_threads_flag
322 # Set default cpu_type, tm_file and xm_file so it can be updated in
323 # each machine entry.
324 cpu_type=`echo $machine | sed 's/-.*$//'`
360 tm_file=${cpu_type}/${cpu_type}.h
361 xm_file=${cpu_type}/xm-${cpu_type}.h
363 # Set the default macros to define for GNU/Linux systems.
366 xm_defines="HAVE_ATEXIT POSIX BSTRING"
371 # Support site-specific machine types.
373 cpu_type=`echo $machine | sed -e 's/-.*//'`
374 rest=`echo $machine | sed -e "s/$cpu_type-//"`
375 xm_file=${cpu_type}/xm-$rest.h
376 tm_file=${cpu_type}/$rest.h
377 if test -f $srcdir/config/${cpu_type}/x-$rest; \
378 then xmake_file=${cpu_type}/x-$rest; \
381 if test -f $srcdir/config/${cpu_type}/t-$rest; \
382 then tmake_file=${cpu_type}/t-$rest; \
388 a29k-*-bsd* | a29k-*-sym1*)
389 tm_file="${tm_file} a29k/unix.h"
391 xmake_file=a29k/x-unix
394 a29k-*-udi | a29k-*-coff)
395 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
396 tmake_file=a29k/t-a29kbare
399 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
400 tmake_file=a29k/t-vx29k
401 extra_parts="crtbegin.o crtend.o"
402 thread_file='vxworks'
404 a29k-*-*) # Default a29k environment.
407 alpha*-*-linux-gnuecoff*)
408 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
409 target_cpu_default="MASK_GAS"
414 alpha*-*-linux-gnulibc1*)
415 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
416 target_cpu_default="MASK_GAS"
417 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
418 extra_parts="crtbegin.o crtend.o"
419 fixincludes=fixinc.wrap
422 if test x$enable_threads = xyes; then
427 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
428 target_cpu_default="MASK_GAS"
429 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
430 extra_parts="crtbegin.o crtend.o"
432 fixincludes=Makefile.in
434 if test x$enable_threads = xyes; then
439 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsdl-elf.h"
440 xm_file="xm-netbsd.h ${xm_file}"
441 target_cpu_default="MASK_GAS"
442 tmake_file="alpha/t-crtbe"
443 extra_parts="crtbegin.o crtend.o"
445 fixincludes=fixinc.wrap
450 if test x$stabs = xyes
452 tm_file="${tm_file} dbx.h"
454 if test x$gas != xyes
456 extra_passes="mips-tfile mips-tdump"
461 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
466 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
469 tm_file="${tm_file} alpha/osf.h"
470 # Some versions of OSF4 (specifically X4.0-9 296.7) have
471 # a broken tar, so we use cpio instead.
472 install_headers_dir=install-headers-cpio
477 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
479 target_cpu_default=MASK_SUPPORT_ARCH
484 tm_file="${tm_file} dbx.h alpha/vxworks.h"
487 extra_passes="mips-tfile mips-tdump"
492 tm_file="${tm_file} alpha/win-nt.h"
493 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
495 xmake_file=winnt/x-winnt
496 extra_host_objs=oldnames.o
497 extra_gcc_objs="spawnv.o oldnames.o"
498 fixincludes=fixinc.winnt
499 if test x$gnu_ld != xyes
501 extra_programs=ld.exe
503 if test x$enable_threads = xyes; then
509 xm_file="${xm_file} alpha/xm-vms.h"
510 tmake_file=alpha/t-vms
511 fixincludes=Makefile.in
514 extra_parts="crtinit.o crtfini.o"
516 arm-*-coff* | armel-*-coff*)
518 tmake_file=arm/t-bare
521 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
523 tm_file=arm/riscix1-1.h
526 arm-*-riscix*) # Acorn RISC machine
529 tm_file=arm/rix-gas.h
533 xmake_file=arm/x-riscix
534 tmake_file=arm/t-riscix
537 arm-semi-aout | armel-semi-aout)
539 tmake_file=arm/t-semi
540 fixincludes=Makefile.in # There is nothing to fix
542 arm-semi-aof | armel-semi-aof)
543 tm_file=arm/semiaof.h
544 tmake_file=arm/t-semiaof
545 fixincludes=Makefile.in # There is nothing to fix
549 xm_file="xm-netbsd.h ${xm_file}"
550 tmake_file="t-netbsd arm/t-netbsd"
551 # On NetBSD, the headers are already okay, except for math.h.
552 fixincludes=fixinc.wrap
554 arm-*-linux-gnuaout*) # ARM GNU/Linux
557 tm_file=arm/linux-gas.h
558 tmake_file=arm/t-linux
559 fixincludes=Makefile.in
564 tmake_file=arm/t-bare
566 c1-convex-*) # Convex C1
569 fixincludes=Makefile.in
571 c2-convex-*) # Convex C2
574 fixincludes=Makefile.in
579 fixincludes=Makefile.in
584 fixincludes=Makefile.in
587 target_cpu_default=16
589 fixincludes=Makefile.in
591 clipper-intergraph-clix*)
592 tm_file="${tm_file} svr3.h clipper/clix.h"
593 xm_file=clipper/xm-clix.h
594 xmake_file=clipper/x-clix
595 extra_headers=va-clipper.h
596 extra_parts="crtbegin.o crtend.o"
597 install_headers_dir=install-headers-cpio
604 # This hasn't been upgraded to GCC 2.
605 # fx80-alliant-*) # Alliant FX/80
611 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
612 xm_file=pa/xm-papro.h
617 tm_file="${tm_file} pa/pa-osf.h"
619 fixincludes=Makefile.in
622 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
623 xm_file=pa/xm-papro.h
627 tm_file="${tm_file} pa/pa-osf.h"
629 fixincludes=Makefile.in
634 fixincludes=Makefile.in
638 fixincludes=Makefile.in
641 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
642 xm_file=pa/xm-pahpux.h
643 xmake_file=pa/x-pa-hpux
646 tm_file="${tm_file} pa/gas.h"
648 install_headers_dir=install-headers-cpio
652 hppa1.0-*-hpux8.0[0-2]*)
654 tm_file="${tm_file} pa/pa-hpux.h"
655 xm_file=pa/xm-pahpux.h
656 xmake_file=pa/x-pa-hpux
659 tm_file="${tm_file} pa/pa-gas.h"
661 tm_file="pa/pa-oldas.h ${tm_file}"
663 install_headers_dir=install-headers-cpio
667 hppa1.1-*-hpux8.0[0-2]*)
670 tm_file="${tm_file} pa/pa-hpux.h"
671 xm_file=pa/xm-pahpux.h
672 xmake_file=pa/x-pa-hpux
675 tm_file="${tm_file} pa/pa-gas.h"
677 tm_file="pa/pa-oldas.h ${tm_file}"
679 install_headers_dir=install-headers-cpio
684 tm_file="${tm_file} pa/pa-hpux.h"
685 xm_file=pa/xm-pahpux.h
686 xmake_file=pa/x-pa-hpux
689 tm_file="${tm_file} pa/pa-gas.h"
691 install_headers_dir=install-headers-cpio
695 tm_file="${tm_file} pa/pa-hpux.h"
696 xm_file=pa/xm-pahpux.h
697 xmake_file=pa/x-pa-hpux
700 tm_file="${tm_file} pa/pa-gas.h"
702 install_headers_dir=install-headers-cpio
707 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
708 xm_file=pa/xm-pahpux.h
709 xmake_file=pa/x-pa-hpux
713 tm_file="${tm_file} pa/pa-gas.h"
715 if test x$enable_threads = x; then
716 enable_threads=$have_pthread_h
718 if test x$enable_threads = xyes; then
720 tmake_file="${tmake_file} pa/t-dce-thr"
722 install_headers_dir=install-headers-cpio
726 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
727 xm_file=pa/xm-pahpux.h
728 xmake_file=pa/x-pa-hpux
731 tm_file="${tm_file} pa/pa-gas.h"
733 if test x$enable_threads = x; then
734 enable_threads=$have_pthread_h
736 if test x$enable_threads = xyes; then
738 tmake_file="${tmake_file} pa/t-dce-thr"
740 install_headers_dir=install-headers-cpio
745 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
746 xm_file=pa/xm-pahpux.h
747 xmake_file=pa/x-pa-hpux
750 tm_file="${tm_file} pa/pa-gas.h"
752 install_headers_dir=install-headers-cpio
756 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
757 xm_file=pa/xm-pahpux.h
758 xmake_file=pa/x-pa-hpux
761 tm_file="${tm_file} pa/pa-gas.h"
763 install_headers_dir=install-headers-cpio
768 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
769 xm_file=pa/xm-pahpux.h
770 xmake_file=pa/x-pa-hpux
773 tm_file="${tm_file} pa/pa-gas.h"
775 install_headers_dir=install-headers-cpio
779 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
780 xm_file=pa/xm-pahpux.h
781 xmake_file=pa/x-pa-hpux
784 tm_file="${tm_file} pa/pa-gas.h"
786 install_headers_dir=install-headers-cpio
792 fixincludes=Makefile.in
797 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
801 tm_file=i386/aix386.h
802 extra_parts="crtbegin.o crtend.o"
803 tmake_file=i386/t-crtstuff
805 tm_file=i386/aix386ng.h
808 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
810 xmake_file=i386/x-aix
813 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
815 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
816 xm_defines="USG POSIX SMALL_ARG_MAX"
817 xmake_file=i386/x-ncr3000
818 if test x$stabs = xyes -a x$gas = xyes
820 tm_file=i386/sysv4gdb.h
824 extra_parts="crtbegin.o crtend.o"
825 tmake_file=i386/t-crtpic
831 xm_file=i386/xm-next.h
832 tmake_file=i386/t-next
833 xmake_file=i386/x-next
834 extra_objs=nextstep.o
835 if test x$enable_threads = xyes; then
840 i[34567]86-sequent-bsd*) # 80386 from Sequent
845 tm_file=i386/seq-gas.h
847 tm_file=i386/sequent.h
851 i[34567]86-sequent-ptx1*)
853 xm_defines="USG SVR3"
854 xmake_file=i386/x-sysv3
855 tm_file=i386/seq-sysv3.h
856 tmake_file=i386/t-crtstuff
857 fixincludes=fixinc.ptx
858 extra_parts="crtbegin.o crtend.o"
859 install_headers_dir=install-headers-cpio
862 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
864 xm_defines="USG SVR3"
865 xmake_file=i386/x-sysv3
866 tm_file=i386/seq2-sysv3.h
867 tmake_file=i386/t-crtstuff
868 extra_parts="crtbegin.o crtend.o"
869 fixincludes=fixinc.ptx
870 install_headers_dir=install-headers-cpio
873 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
875 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
876 xm_defines="USG POSIX SMALL_ARG_MAX"
878 tm_file=i386/ptx4-i.h
880 extra_parts="crtbegin.o crtend.o"
881 fixincludes=fixinc.ptx
882 install_headers_dir=install-headers-cpio
884 i386-sun-sunos*) # Sun i386 roadrunner
890 i[34567]86-wrs-vxworks*)
892 tm_file=i386/vxi386.h
893 tmake_file=i386/t-i386bare
898 tm_file=i386/i386-aout.h
899 tmake_file=i386/t-i386bare
902 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
904 tm_file=i386/bsd386.h
905 # tmake_file=t-libc-ok
910 tm_file=i386/386bsd.h
911 # tmake_file=t-libc-ok
912 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
916 i[34567]86-*-freebsdelf*)
918 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
919 # On FreeBSD, the headers are already ok, except for math.h.
920 fixincludes=fixinc.wrap
921 tmake_file=i386/t-freebsd
927 i[34567]86-*-freebsd*)
929 tm_file=i386/freebsd.h
930 # On FreeBSD, the headers are already ok, except for math.h.
931 fixincludes=fixinc.wrap
932 tmake_file=i386/t-freebsd
935 i[34567]86-*-netbsd*)
937 tm_file=i386/netbsd.h
938 xm_file="xm-netbsd.h ${xm_file}"
939 # On NetBSD, the headers are already okay, except for math.h.
940 fixincludes=fixinc.wrap
946 tm_file=i386/i386-coff.h
947 tmake_file=i386/t-i386bare
950 i[34567]86-*-isc*) # 80386 running ISC system
952 xm_file="${xm_file} i386/xm-isc.h"
953 xm_defines="USG SVR3"
956 i[34567]86-*-isc[34]*)
958 xmake_file=i386/x-isc3
961 xmake_file=i386/x-isc
964 if test x$gas = xyes -a x$stabs = xyes
966 tm_file=i386/iscdbx.h
967 tmake_file=i386/t-svr3dbx
968 extra_parts="svr3.ifile svr3z.ifile"
970 tm_file=i386/isccoff.h
971 tmake_file=i386/t-crtstuff
972 extra_parts="crtbegin.o crtend.o"
974 install_headers_dir=install-headers-cpio
977 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
978 changequote([,])dnl # with a.out format using
980 xmake_file=x-linux-aout
981 tmake_file="t-linux-aout i386/t-crtstuff"
982 tm_file=i386/linux-oldld.h
983 fixincludes=Makefile.in #On Linux, the headers are ok already.
988 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
989 changequote([,])dnl # with a.out format
990 xmake_file=x-linux-aout
991 tmake_file="t-linux-aout i386/t-crtstuff"
992 tm_file=i386/linux-aout.h
993 fixincludes=Makefile.in #On Linux, the headers are ok already.
998 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
999 changequote([,])dnl # with ELF format using the
1000 # GNU/Linux C library 5
1002 tm_file=i386/linux.h
1003 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1004 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1005 fixincludes=Makefile.in #On Linux, the headers are ok already.
1008 if test x$enable_threads = xyes; then
1009 thread_file='single'
1013 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1014 changequote([,])dnl # with ELF format using glibc 2
1015 # aka GNU/Linux C library 6
1017 tm_file=i386/linux.h
1018 tmake_file="t-linux i386/t-crtstuff"
1019 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1020 fixincludes=Makefile.in #On Linux, the headers are ok already.
1023 if test x$enable_threads = xyes; then
1032 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1034 xm_file=i386/xm-go32.h
1036 tmake_file=i386/t-go32
1039 i[34567]86-pc-msdosdjgpp*)
1041 xm_file=i386/xm-go32.h
1043 tmake_file=i386/t-go32
1048 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1051 tmake_file=t-libc-ok
1052 fixincludes=Makefile.in
1057 i[34567]86-*-lynxos*)
1059 if test x$gas = xyes
1063 tm_file=i386/lynx-ng.h
1065 xm_file=i386/xm-lynx.h
1066 tmake_file=i386/t-i386bare
1073 # tmake_file=t-libc-ok
1077 i[34567]86-*-osfrose*) # 386 using OSF/rose
1079 if test x$elf = xyes
1081 tm_file=i386/osfelf.h
1084 tm_file=i386/osfrose.h
1087 xm_file="i386/xm-osf.h ${xm_file}"
1088 xmake_file=i386/x-osfrose
1089 tmake_file=i386/t-osf
1090 extra_objs=halfpic.o
1093 i[34567]86-go32-rtems*)
1096 xm_file=i386/xm-go32.h
1097 tm_file=i386/go32-rtems.h
1098 tmake_file="i386/t-go32 t-rtems"
1101 i[34567]86-*-rtemself*)
1104 tm_file=i386/rtemself.h
1105 tmake_file="i386/t-i386bare t-rtems"
1108 i[34567]86-*-rtems*)
1111 tm_file=i386/rtems.h
1112 tmake_file="i386/t-i386bare t-rtems"
1115 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1117 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1118 xm_defines="USG SVR3"
1119 xmake_file=i386/x-sco5
1120 fixincludes=fixinc.sco
1121 install_headers_dir=install-headers-cpio
1123 if test x$gas = xyes
1125 tm_file="i386/sco5gas.h ${tm_file}"
1126 tmake_file=i386/t-sco5gas
1128 tmake_file=i386/t-sco5
1130 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1133 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1135 xm_file="${xm_file} i386/xm-sco.h"
1136 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1137 xmake_file=i386/x-sco4
1138 fixincludes=fixinc.sco
1139 install_headers_dir=install-headers-cpio
1140 if test x$stabs = xyes
1142 tm_file=i386/sco4dbx.h
1143 tmake_file=i386/t-svr3dbx
1144 extra_parts="svr3.ifile svr3z.rfile"
1147 tmake_file=i386/t-crtstuff
1148 extra_parts="crtbegin.o crtend.o"
1153 i[34567]86-*-sco*) # 80386 running SCO system
1155 xm_file=i386/xm-sco.h
1156 xmake_file=i386/x-sco
1157 install_headers_dir=install-headers-cpio
1158 if test x$stabs = xyes
1160 tm_file=i386/scodbx.h
1161 tmake_file=i386/t-svr3dbx
1162 extra_parts="svr3.ifile svr3z.rfile"
1165 extra_parts="crtbegin.o crtend.o"
1166 tmake_file=i386/t-crtstuff
1171 i[34567]86-*-solaris2*)
1173 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1174 xm_defines="USG POSIX SMALL_ARG_MAX"
1175 if test x$stabs = xyes
1177 tm_file=i386/sol2dbg.h
1181 tmake_file=i386/t-sol2
1182 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1188 fixincludes=fixinc.svr4;;
1190 fixincludes=fixinc.wrap;;
1192 if test x$enable_threads = xyes; then
1193 thread_file='solaris'
1197 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1199 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1200 xm_defines="USG POSIX"
1201 tm_file=i386/sysv4.h
1202 if test x$stabs = xyes
1204 tm_file="${tm_file} dbx.h"
1206 tmake_file=i386/t-crtpic
1208 extra_parts="crtbegin.o crtend.o"
1209 fixincludes=Makefile.in # The headers are just fine, thank you.
1212 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1214 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1215 xm_defines="USG POSIX SMALL_ARG_MAX"
1216 tm_file=i386/sysv4.h
1217 if test x$stabs = xyes
1219 tm_file="${tm_file} dbx.h"
1221 tmake_file=i386/t-crtpic
1223 extra_parts="crtbegin.o crtend.o"
1226 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1229 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1230 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1231 fixincludes=Makefile.in #Don't do it on OSF/1
1232 if test x$stabs = xyes
1234 tm_file=i386/osf1elfgdb.h
1236 tm_file=i386/osf1elf.h
1238 tmake_file=i386/t-osf1elf
1239 xmake_file=i386/x-osf1elf
1240 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1243 i[34567]86-*-sysv*) # Intel 80386's running system V
1245 xm_defines="USG SVR3"
1246 xmake_file=i386/x-sysv3
1247 if test x$gas = xyes
1249 if test x$stabs = xyes
1251 tm_file=i386/svr3dbx.h
1252 tmake_file=i386/t-svr3dbx
1253 extra_parts="svr3.ifile svr3z.rfile"
1255 tm_file=i386/svr3gas.h
1256 extra_parts="crtbegin.o crtend.o"
1257 tmake_file=i386/t-crtstuff
1260 tm_file=i386/sysv3.h
1261 extra_parts="crtbegin.o crtend.o"
1262 tmake_file=i386/t-crtstuff
1265 i386-*-vsta) # Intel 80386's running VSTa kernel
1266 xm_file="${xm_file} i386/xm-vsta.h"
1268 tmake_file=i386/t-vsta
1269 xmake_file=i386/x-vsta
1274 xm_file="${xm_file} i386/xm-cygwin32.h"
1275 tmake_file=i386/t-cygwin32
1276 tm_file=i386/win32.h
1277 xmake_file=i386/x-cygwin32
1279 fixincludes=Makefile.in
1280 if test x$enable_threads = xyes; then
1286 i[34567]86-*-pe | i[34567]86-*-cygwin32)
1288 xm_file="${xm_file} i386/xm-cygwin32.h"
1289 tmake_file=i386/t-cygwin32
1290 tm_file=i386/cygwin32.h
1291 xmake_file=i386/x-cygwin32
1293 fixincludes=Makefile.in
1294 if test x$enable_threads = xyes; then
1300 i[34567]86-*-mingw32*)
1302 tm_file=i386/mingw32.h
1303 xm_file="${xm_file} i386/xm-mingw32.h"
1304 tmake_file="i386/t-cygwin32 i386/t-mingw32"
1306 xmake_file=i386/x-cygwin32
1307 fixincludes=Makefile.in
1308 if test x$enable_threads = xyes; then
1315 *minwg32crt* | *mingw32*)
1316 tm_file="${tm_file} i386/crtdll.h"
1321 i[34567]86-*-winnt3*)
1323 tm_file=i386/win-nt.h
1324 out_file=i386/i386.c
1325 xm_file="xm-winnt.h ${xm_file}"
1326 xmake_file=winnt/x-winnt
1327 tmake_file=i386/t-winnt
1328 extra_host_objs="winnt.o oldnames.o"
1329 extra_gcc_objs="spawnv.o oldnames.o"
1330 fixincludes=fixinc.winnt
1331 if test x$gnu_ld != xyes
1333 extra_programs=ld.exe
1335 if test x$enable_threads = xyes; then
1340 i[34567]86-dg-dgux*)
1342 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1343 xm_defines="USG POSIX"
1344 out_file=i386/dgux.c
1346 tmake_file=i386/t-dgux
1347 xmake_file=i386/x-dgux
1348 fixincludes=fixinc.dgux
1349 install_headers_dir=install-headers-cpio
1351 i860-alliant-*) # Alliant FX/2800
1352 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1353 xm_file="${xm_file}"
1354 xmake_file=i860/x-fx2800
1355 tmake_file=i860/t-fx2800
1356 extra_parts="crtbegin.o crtend.o"
1359 tm_file="${tm_file} i860/bsd.h"
1360 if test x$gas = xyes
1362 tm_file="${tm_file} i860/bsd-gas.h"
1367 tm_file="${tm_file} i860/mach.h"
1368 tmake_file=t-libc-ok
1370 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1371 tm_file="${tm_file} svr3.h i860/paragon.h"
1372 xm_defines="USG SVR3"
1376 tm_file="${tm_file} svr3.h i860/sysv3.h"
1377 xm_defines="USG SVR3"
1378 xmake_file=i860/x-sysv3
1379 extra_parts="crtbegin.o crtend.o"
1382 tm_file="${tm_file} svr4.h i860/sysv4.h"
1383 xm_defines="USG SVR3"
1384 xmake_file=i860/x-sysv4
1386 extra_parts="crtbegin.o crtend.o"
1388 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1389 tm_file="${tm_file} i960/vx960.h"
1390 tmake_file=i960/t-vxworks960
1392 thread_file='vxworks'
1394 i960-wrs-vxworks5* | i960-wrs-vxworks)
1395 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1396 tmake_file=i960/t-vxworks960
1398 thread_file='vxworks'
1401 tm_file="${tm_file} i960/vx960.h"
1402 tmake_file=i960/t-vxworks960
1404 thread_file='vxworks'
1407 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1408 tmake_file=i960/t-960bare
1412 tmake_file="i960/t-960bare t-rtems"
1413 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1416 i960-*-*) # Default i960 environment.
1420 extra_parts="crtinit.o crtfini.o"
1422 m68000-convergent-sysv*)
1424 xm_file="m68k/xm-3b1.h ${xm_file}"
1427 extra_headers=math-68881.h
1429 m68000-hp-bsd*) # HP 9000/200 running BSD
1430 tm_file=m68k/hp2bsd.h
1431 xmake_file=m68k/x-hp2bsd
1433 extra_headers=math-68881.h
1435 m68000-hp-hpux*) # HP 9000 series 300
1436 xm_file="xm_alloca.h ${xm_file}"
1437 xm_defines="USG NO_SYS_SIGLIST"
1438 if test x$gas = xyes
1440 xmake_file=m68k/x-hp320g
1441 tm_file=m68k/hp310g.h
1443 xmake_file=m68k/x-hp320
1444 tm_file=m68k/hp310.h
1446 install_headers_dir=install-headers-cpio
1448 extra_headers=math-68881.h
1453 extra_headers=math-68881.h
1456 tm_file=m68k/sun2o4.h
1458 extra_headers=math-68881.h
1461 xm_file="m68k/xm-3b1.h ${xm_file}"
1463 if test x$gas = xyes
1470 extra_headers=math-68881.h
1472 m68k-apple-aux*) # Apple Macintosh running A/UX
1473 xm_defines="USG AUX"
1474 tmake_file=m68k/t-aux
1475 install_headers_dir=install-headers-cpio
1476 extra_headers=math-68881.h
1477 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1479 if test "$gnu_ld" = yes
1481 tm_file="${tm_file} m68k/auxgld.h"
1483 tm_file="${tm_file} m68k/auxld.h"
1485 if test "$gas" = yes
1487 tm_file="${tm_file} m68k/auxgas.h"
1489 tm_file="${tm_file} m68k/auxas.h"
1491 tm_file="${tm_file} m68k/a-ux.h"
1495 tm_file=m68k/apollo68.h
1496 xmake_file=m68k/x-apollo68
1498 extra_headers=math-68881.h
1501 m68k-altos-sysv*) # Altos 3068
1502 if test x$gas = xyes
1504 tm_file=m68k/altos3068.h
1507 echo "The Altos is supported only with the GNU assembler" 1>&2
1510 extra_headers=math-68881.h
1512 m68k-bull-sysv*) # Bull DPX/2
1513 if test x$gas = xyes
1515 if test x$stabs = xyes
1517 tm_file=m68k/dpx2cdbx.h
1519 tm_file=m68k/dpx2g.h
1524 xm_file="xm-alloca.h ${xm_file}"
1526 xmake_file=m68k/x-dpx2
1528 extra_headers=math-68881.h
1530 m68k-atari-sysv4*) # Atari variant of V.4.
1531 tm_file=m68k/atari.h
1532 xm_file="xm-alloca.h ${xm_file}"
1533 xm_defines="USG FULL_PROTOTYPES"
1535 extra_parts="crtbegin.o crtend.o"
1536 extra_headers=math-68881.h
1539 m68k-motorola-sysv*)
1540 tm_file=m68k/mot3300.h
1541 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1542 xm_defines=NO_SYS_SIGLIST
1543 if test x$gas = xyes
1545 xmake_file=m68k/x-mot3300-gas
1546 if test x$gnu_ld = xyes
1548 tmake_file=m68k/t-mot3300-gald
1550 tmake_file=m68k/t-mot3300-gas
1554 xmake_file=m68k/x-mot3300
1555 if test x$gnu_ld = xyes
1557 tmake_file=m68k/t-mot3300-gld
1559 tmake_file=m68k/t-mot3300
1563 gdb_needs_out_file_path=yes
1564 extra_parts="crt0.o mcrt0.o"
1565 extra_headers=math-68881.h
1568 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1569 tm_file=m68k/tower-as.h
1570 xm_defines="USG SVR3"
1571 xmake_file=m68k/x-tower
1572 extra_parts="crtbegin.o crtend.o"
1573 extra_headers=math-68881.h
1576 tm_file=m68k/plexus.h
1577 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1580 extra_headers=math-68881.h
1584 xm_file="xm-alloca.h ${xm_file}"
1586 extra_headers=math-68881.h
1589 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1590 xm_defines="USG unos"
1591 xmake_file=m68k/x-crds
1594 extra_headers=math-68881.h
1596 m68k-cbm-sysv4*) # Commodore variant of V.4.
1598 xm_file="xm-alloca.h ${xm_file}"
1599 xm_defines="USG FULL_PROTOTYPES"
1600 xmake_file=m68k/x-amix
1602 extra_parts="crtbegin.o crtend.o"
1603 extra_headers=math-68881.h
1607 tm_file=m68k/ccur-GAS.h
1608 xmake_file=m68k/x-ccur
1609 extra_headers=math-68881.h
1613 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1614 tm_file=m68k/hp3bsd44.h
1615 xmake_file=m68k/x-hp3bsd44
1617 extra_headers=math-68881.h
1620 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1621 tm_file=m68k/hp3bsd.h
1623 extra_headers=math-68881.h
1627 if test x$with_fp = xno
1629 tm_file=m68k/isi-nfp.h
1635 extra_headers=math-68881.h
1637 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1638 xm_file="xm_alloca.h ${xm_file}"
1639 xm_defines="USG NO_SYS_SIGLIST"
1640 if test x$gas = xyes
1642 xmake_file=m68k/x-hp320g
1643 tm_file=m68k/hp320g.h
1645 xmake_file=m68k/x-hp320
1646 tm_file=m68k/hpux7.h
1648 install_headers_dir=install-headers-cpio
1650 extra_headers=math-68881.h
1653 m68k-hp-hpux*) # HP 9000 series 300
1654 xm_file="xm_alloca.h ${xm_file}"
1655 xm_defines="USG NO_SYS_SIGLIST"
1656 if test x$gas = xyes
1658 xmake_file=m68k/x-hp320g
1659 tm_file=m68k/hp320g.h
1661 xmake_file=m68k/x-hp320
1662 tm_file=m68k/hp320.h
1664 install_headers_dir=install-headers-cpio
1666 extra_headers=math-68881.h
1670 tm_file=m68k/sun3mach.h
1672 extra_headers=math-68881.h
1676 if test x$gas = xyes
1678 tm_file=m68k/news3gas.h
1680 tm_file=m68k/news3.h
1683 extra_headers=math-68881.h
1686 m68k-sony-bsd* | m68k-sony-newsos*)
1687 if test x$gas = xyes
1689 tm_file=m68k/newsgas.h
1694 extra_headers=math-68881.h
1697 m68k-next-nextstep2*)
1698 tm_file=m68k/next21.h
1699 xm_file="m68k/xm-next.h ${xm_file}"
1700 tmake_file=m68k/t-next
1701 xmake_file=m68k/x-next
1702 extra_objs=nextstep.o
1703 extra_headers=math-68881.h
1707 m68k-next-nextstep3*)
1709 xm_file="m68k/xm-next.h ${xm_file}"
1710 tmake_file=m68k/t-next
1711 xmake_file=m68k/x-next
1712 extra_objs=nextstep.o
1713 extra_headers=math-68881.h
1715 if test x$enable_threads = xyes; then
1720 if test x$with_fp = xno
1722 tm_file=m68k/sun3n3.h
1724 tm_file=m68k/sun3o3.h
1728 extra_headers=math-68881.h
1730 m68k-sun-sunos*) # For SunOS 4 (the default).
1731 if test x$with_fp = xno
1733 tm_file=m68k/sun3n.h
1739 extra_headers=math-68881.h
1742 tm_file=m68k/vxm68k.h
1743 tmake_file=m68k/t-vxworks68
1744 extra_headers=math-68881.h
1745 thread_file='vxworks'
1749 tmake_file=m68k/t-m68kbare
1750 tm_file="m68k/m68k-aout.h libgloss.h"
1751 extra_headers=math-68881.h
1755 tmake_file=m68k/t-m68kbare
1756 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1757 extra_headers=math-68881.h
1761 if test x$gas = xyes
1765 tm_file=m68k/lynx-ng.h
1767 xm_file=m68k/xm-lynx.h
1769 tmake_file=m68k/t-lynx
1770 extra_headers=math-68881.h
1774 tm_file=m68k/netbsd.h
1775 xm_file="xm-netbsd.h ${xm_file}"
1776 # On NetBSD, the headers are already okay, except for math.h.
1777 fixincludes=fixinc.wrap
1781 m68k-*-sysv3*) # Motorola m68k's running system V.3
1782 xm_file="xm-alloca.h ${xm_file}"
1784 xmake_file=m68k/x-m68kv
1785 extra_parts="crtbegin.o crtend.o"
1786 extra_headers=math-68881.h
1789 m68k-*-sysv4*) # Motorola m68k's running system V.4
1790 tm_file=m68k/m68kv4.h
1791 xm_file="xm-alloca.h ${xm_file}"
1794 extra_parts="crtbegin.o crtend.o"
1795 extra_headers=math-68881.h
1798 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1801 tm_file=m68k/linux-aout.h
1802 tmake_file="t-linux-aout m68k/t-linux-aout"
1803 fixincludes=Makefile.in # The headers are ok already.
1804 extra_headers=math-68881.h
1808 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1809 # with ELF format using the
1810 # GNU/Linux C library 5
1812 tm_file=m68k/linux.h
1813 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
1814 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1815 fixincludes=Makefile.in # The headers are ok already.
1816 extra_headers=math-68881.h
1820 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
1821 # with ELF format using glibc 2
1822 # aka the GNU/Linux C library 6.
1824 tm_file=m68k/linux.h
1825 tmake_file="t-linux m68k/t-linux"
1826 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1827 fixincludes=Makefile.in # The headers are ok already.
1828 extra_headers=math-68881.h
1831 if test x$enable_threads = xyes; then
1836 tmake_file=m68k/t-m68kbare
1837 tm_file=m68k/m68k-psos.h
1838 extra_headers=math-68881.h
1842 tmake_file="m68k/t-m68kbare t-rtems"
1843 tm_file=m68k/rtems.h
1844 extra_headers=math-68881.h
1851 tm_file=m88k/dguxbcs.h
1852 tmake_file=m88k/t-dguxbcs
1856 tmake_file=m88k/t-dgux
1859 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
1860 xmake_file=m88k/x-dgux
1861 if test x$gas = xyes
1863 tmake_file=m88k/t-dgux-gas
1865 fixincludes=fixinc.dgux
1867 m88k-dolphin-sysv3*)
1868 tm_file=m88k/dolph.h
1869 extra_parts="crtbegin.o crtend.o"
1870 xm_file="m88k/xm-sysv3.h ${xm_file}"
1871 xmake_file=m88k/x-dolph
1872 if test x$gas = xyes
1874 tmake_file=m88k/t-m88k-gas
1877 m88k-tektronix-sysv3)
1878 tm_file=m88k/tekXD88.h
1879 extra_parts="crtbegin.o crtend.o"
1880 xm_file="m88k/xm-sysv3.h ${xm_file}"
1881 xmake_file=m88k/x-tekXD88
1882 if test x$gas = xyes
1884 tmake_file=m88k/t-m88k-gas
1888 tm_file=m88k/m88k-aout.h
1891 tm_file=m88k/m88k-coff.h
1892 tmake_file=m88k/t-bug
1896 extra_parts="crtbegin.o crtend.o"
1897 if test x$gas = xyes
1899 tmake_file=m88k/t-luna-gas
1901 tmake_file=m88k/t-luna
1905 tm_file=m88k/sysv3.h
1906 extra_parts="crtbegin.o crtend.o"
1907 xm_file="m88k/xm-sysv3.h ${xm_file}"
1908 xmake_file=m88k/x-sysv3
1909 if test x$gas = xyes
1911 tmake_file=m88k/t-m88k-gas
1915 tm_file=m88k/sysv4.h
1916 extra_parts="crtbegin.o crtend.o"
1917 xmake_file=m88k/x-sysv4
1918 tmake_file=m88k/t-sysv4
1920 mips-sgi-irix6*) # SGI System V.4., IRIX 6
1921 tm_file=mips/iris6.h
1922 xm_file=mips/xm-iris6.h
1923 fixincludes=fixinc.irix
1924 xmake_file=mips/x-iris6
1925 tmake_file=mips/t-iris6
1926 # if test x$enable_threads = xyes; then
1927 # thread_file='irix'
1931 tm_file="mips/elf.h libgloss.h"
1932 tmake_file=mips/t-ecoff
1935 extra_parts="crtbegin.o crtend.o"
1936 # thread_file='vxworks'
1938 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
1939 tm_file="mips/iris6.h mips/cross64.h"
1941 xm_file="mips/xm-iris5.h"
1942 fixincludes=Makefile.in
1943 xmake_file=mips/x-iris
1944 tmake_file=mips/t-cross64
1945 # See comment in mips/iris[56].h files.
1947 # if test x$enable_threads = xyes; then
1948 # thread_file='irix'
1952 if test x$gas = xyes
1954 if test x$stabs = xyes
1956 tm_file=mips/iris5gdb.h
1958 tm_file="mips/sni-svr4.h mips/sni-gas.h"
1961 tm_file=mips/sni-svr4.h
1964 xmake_file=mips/x-sni-svr4
1965 tmake_file=mips/t-mips-gas
1966 if test x$gnu_ld != xyes
1971 mips-sgi-irix5*) # SGI System V.4., IRIX 5
1972 if test x$gas = xyes
1974 tm_file="mips/iris5.h mips/iris5gas.h"
1975 if test x$stabs = xyes
1977 tm_file="${tm_file} dbx.h"
1980 tm_file=mips/iris5.h
1983 xm_file="mips/xm-iris5.h"
1984 fixincludes=fixinc.irix
1985 xmake_file=mips/x-iris
1986 # mips-tfile doesn't work yet
1987 tmake_file=mips/t-mips-gas
1988 # See comment in mips/iris5.h file.
1990 # if test x$enable_threads = xyes; then
1991 # thread_file='irix'
1994 mips-sgi-irix4loser*) # Mostly like a MIPS.
1995 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
1996 if test x$stabs = xyes; then
1997 tm_file="${tm_file} dbx.h"
2000 xmake_file=mips/x-iris
2001 if test x$gas = xyes
2003 tmake_file=mips/t-mips-gas
2005 extra_passes="mips-tfile mips-tdump"
2007 if test x$gnu_ld != xyes
2011 # if test x$enable_threads = xyes; then
2012 # thread_file='irix'
2015 mips-sgi-irix4*) # Mostly like a MIPS.
2016 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2017 if test x$stabs = xyes; then
2018 tm_file="${tm_file} dbx.h"
2021 xmake_file=mips/x-iris
2022 if test x$gas = xyes
2024 tmake_file=mips/t-mips-gas
2026 extra_passes="mips-tfile mips-tdump"
2028 if test x$gnu_ld != xyes
2032 # if test x$enable_threads = xyes; then
2033 # thread_file='irix'
2036 mips-sgi-*) # Mostly like a MIPS.
2037 tm_file="mips/iris3.h ${tm_file}"
2038 if test x$stabs = xyes; then
2039 tm_file="${tm_file} dbx.h"
2042 xmake_file=mips/x-iris3
2043 if test x$gas = xyes
2045 tmake_file=mips/t-mips-gas
2047 extra_passes="mips-tfile mips-tdump"
2049 if test x$gnu_ld != xyes
2054 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2055 tm_file="mips/osfrose.h ${tm_file}"
2056 xmake_file=mips/x-osfrose
2057 tmake_file=mips/t-osfrose
2058 extra_objs=halfpic.o
2061 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2062 tm_file=mips/dec-osf1.h
2063 if test x$stabs = xyes; then
2064 tm_file="${tm_file} dbx.h"
2066 xmake_file=mips/x-dec-osf1
2067 if test x$gas = xyes
2069 tmake_file=mips/t-mips-gas
2071 tmake_file=mips/t-ultrix
2072 extra_passes="mips-tfile mips-tdump"
2074 if test x$gnu_ld != xyes
2079 mips-dec-bsd*) # Decstation running 4.4 BSD
2080 tm_file=mips/dec-bsd.h
2082 if test x$gas = xyes
2084 tmake_file=mips/t-mips-gas
2086 tmake_file=mips/t-ultrix
2087 extra_passes="mips-tfile mips-tdump"
2089 if test x$gnu_ld != xyes
2094 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2095 tm_file=mips/netbsd.h
2096 xm_file="xm-netbsd.h ${xm_file}"
2097 # On NetBSD, the headers are already okay, except for math.h.
2098 fixincludes=fixinc.wrap
2101 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2102 tm_file="mips/news4.h ${tm_file}"
2103 if test x$stabs = xyes; then
2104 tm_file="${tm_file} dbx.h"
2106 if test x$gas = xyes
2108 tmake_file=mips/t-mips-gas
2110 extra_passes="mips-tfile mips-tdump"
2112 if test x$gnu_ld != xyes
2116 xmake_file=mips/x-sony
2118 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2119 # That is based on svr4.
2120 # t-svr4 is not right because this system doesn't use ELF.
2121 tm_file="mips/news5.h ${tm_file}"
2122 if test x$stabs = xyes; then
2123 tm_file="${tm_file} dbx.h"
2125 xm_file="xm-siglist.h ${xm_file}"
2127 if test x$gas = xyes
2129 tmake_file=mips/t-mips-gas
2131 extra_passes="mips-tfile mips-tdump"
2133 if test x$gnu_ld != xyes
2138 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2139 tm_file="mips/svr4-5.h mips/svr4-t.h"
2140 if test x$stabs = xyes; then
2141 tm_file="${tm_file} dbx.h"
2143 xm_file="xm-siglist.h ${xm_file}"
2145 xmake_file=mips/x-sysv
2146 if test x$gas = xyes
2148 tmake_file=mips/t-mips-gas
2149 extra_parts="crtbegin.o crtend.o"
2151 tmake_file=mips/t-mips
2152 extra_passes="mips-tfile mips-tdump"
2154 if test x$gnu_ld != xyes
2159 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2160 tm_file="mips/ultrix.h ${tm_file}"
2161 if test x$stabs = xyes; then
2162 tm_file="${tm_file} dbx.h"
2164 xmake_file=mips/x-ultrix
2165 if test x$gas = xyes
2167 tmake_file=mips/t-mips-gas
2169 tmake_file=mips/t-ultrix
2170 extra_passes="mips-tfile mips-tdump"
2172 if test x$gnu_ld != xyes
2178 mips-*-riscos[56789]bsd*)
2180 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2181 if test x$stabs = xyes; then
2182 tm_file="${tm_file} dbx.h"
2184 if test x$gas = xyes
2186 tmake_file=mips/t-bsd-gas
2188 tmake_file=mips/t-bsd
2189 extra_passes="mips-tfile mips-tdump"
2191 if test x$gnu_ld != xyes
2197 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2199 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2200 if test x$stabs = xyes; then
2201 tm_file="${tm_file} dbx.h"
2203 if test x$gas = xyes
2205 tmake_file=mips/t-bsd-gas
2207 tmake_file=mips/t-bsd
2208 extra_passes="mips-tfile mips-tdump"
2210 if test x$gnu_ld != xyes
2216 mips-*-riscos[56789]sysv4*)
2218 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2219 if test x$stabs = xyes; then
2220 tm_file="${tm_file} dbx.h"
2222 xm_file="xm-siglist.h ${xm_file}"
2223 xmake_file=mips/x-sysv
2224 if test x$gas = xyes
2226 tmake_file=mips/t-svr4-gas
2228 tmake_file=mips/t-svr4
2229 extra_passes="mips-tfile mips-tdump"
2231 if test x$gnu_ld != xyes
2237 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2239 tm_file="mips/svr4-4.h ${tm_file}"
2240 if test x$stabs = xyes; then
2241 tm_file="${tm_file} dbx.h"
2244 xmake_file=mips/x-sysv
2245 if test x$gas = xyes
2247 tmake_file=mips/t-svr4-gas
2249 tmake_file=mips/t-svr4
2250 extra_passes="mips-tfile mips-tdump"
2252 if test x$gnu_ld != xyes
2258 mips-*-riscos[56789]sysv*)
2260 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2261 if test x$stabs = xyes; then
2262 tm_file="${tm_file} dbx.h"
2265 xmake_file=mips/x-sysv
2266 if test x$gas = xyes
2268 tmake_file=mips/t-svr3-gas
2270 tmake_file=mips/t-svr3
2271 extra_passes="mips-tfile mips-tdump"
2273 if test x$gnu_ld != xyes
2278 mips-*-sysv* | mips-*-riscos*sysv*)
2279 tm_file="mips/svr3-4.h ${tm_file}"
2280 if test x$stabs = xyes; then
2281 tm_file="${tm_file} dbx.h"
2284 xmake_file=mips/x-sysv
2285 if test x$gas = xyes
2287 tmake_file=mips/t-svr3-gas
2289 tmake_file=mips/t-svr3
2290 extra_passes="mips-tfile mips-tdump"
2292 if test x$gnu_ld != xyes
2298 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2300 tm_file=mips/mips-5.h
2301 if test x$stabs = xyes; then
2302 tm_file="${tm_file} dbx.h"
2304 if test x$gas = xyes
2306 tmake_file=mips/t-mips-gas
2308 extra_passes="mips-tfile mips-tdump"
2310 if test x$gnu_ld != xyes
2318 tm_file=mips/ecoffl.h
2319 if test x$stabs = xyes; then
2320 tm_file="${tm_file} dbx.h"
2322 tmake_file=mips/t-ecoff
2325 tm_file="gofast.h mips/ecoff.h"
2326 if test x$stabs = xyes; then
2327 tm_file="${tm_file} dbx.h"
2329 tmake_file=mips/t-ecoff
2332 tm_file="mips/elfl.h libgloss.h"
2333 tmake_file=mips/t-ecoff
2336 tm_file="mips/elf.h libgloss.h"
2337 tmake_file=mips/t-ecoff
2340 tm_file="mips/elfl64.h libgloss.h"
2341 tmake_file=mips/t-ecoff
2343 mips64orionel-*-elf*)
2344 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2345 tmake_file=mips/t-ecoff
2348 tm_file="mips/elf64.h libgloss.h"
2349 tmake_file=mips/t-ecoff
2352 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2353 tmake_file=mips/t-ecoff
2355 mips64orion-*-rtems*)
2356 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2357 tmake_file="mips/t-ecoff t-rtems"
2360 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2361 tmake_file=mips/t-r3900
2364 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2365 tmake_file=mips/t-r3900
2366 # FIXME mips-elf should be fixed to use crtstuff.
2369 mips-*-*) # Default MIPS RISC-OS 4.0.
2370 if test x$stabs = xyes; then
2371 tm_file="${tm_file} dbx.h"
2373 if test x$gas = xyes
2375 tmake_file=mips/t-mips-gas
2377 extra_passes="mips-tfile mips-tdump"
2379 if test x$gnu_ld != xyes
2386 tm_file="mn10200/mn10200.h"
2387 if test x$stabs = xyes
2389 tm_file="${tm_file} dbx.h"
2395 tm_file="mn10300/mn10300.h"
2396 if test x$stabs = xyes
2398 tm_file="${tm_file} dbx.h"
2403 tm_file=ns32k/encore.h
2407 tm_file=ns32k/sequent.h
2411 tm_file=ns32k/tek6100.h
2415 tm_file=ns32k/tek6200.h
2418 # This has not been updated to GCC 2.
2421 # xmake_file=ns32k/x-genix
2422 # tm_file=ns32k/genix.h
2426 tm_file=ns32k/merlin.h
2430 tm_file=ns32k/pc532-mach.h
2434 tm_file=ns32k/pc532-min.h
2435 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2440 tm_file=ns32k/netbsd.h
2441 xm_file="xm-netbsd.h ${xm_file}"
2442 # On NetBSD, the headers are already okay, except for math.h.
2443 fixincludes=fixinc.wrap
2447 tm_file="${tm_file} pdp11/2bsd.h"
2453 xmake_file=pyr/x-pyr
2460 xmake_file=romp/x-mach
2465 tm_file=rs6000/beos.h
2466 xm_file=rs6000/xm-beos.h
2467 tmake_file=rs6000/t-beos
2468 xmake_file=rs6000/x-beos
2470 powerpc-*-sysv* | powerpc-*-elf*)
2471 tm_file=rs6000/sysv4.h
2472 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2473 xm_defines="USG POSIX"
2474 extra_headers=ppc-asm.h
2475 if test x$gas = xyes
2477 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2479 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2481 xmake_file=rs6000/x-sysv4
2484 tm_file=rs6000/eabiaix.h
2485 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2486 fixincludes=Makefile.in
2487 extra_headers=ppc-asm.h
2490 tm_file=rs6000/eabisim.h
2491 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2492 fixincludes=Makefile.in
2493 extra_headers=ppc-asm.h
2496 tm_file=rs6000/eabi.h
2497 if test x$gas = xyes
2499 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2501 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2503 fixincludes=Makefile.in
2504 extra_headers=ppc-asm.h
2507 tm_file=rs6000/rtems.h
2508 if test x$gas = xyes
2510 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2512 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2514 fixincludes=Makefile.in
2515 extra_headers=ppc-asm.h
2517 powerpc-*-linux-gnulibc1)
2518 tm_file=rs6000/linux.h
2519 xm_file=rs6000/xm-sysv4.h
2520 out_file=rs6000/rs6000.c
2521 if test x$gas = xyes
2523 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2525 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2528 fixincludes=Makefile.in
2529 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2530 extra_headers=ppc-asm.h
2531 if test x$enable_threads = xyes; then
2535 powerpc-*-linux-gnu*)
2536 tm_file=rs6000/linux.h
2537 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2538 xm_defines="USG ${xm_defines}"
2539 out_file=rs6000/rs6000.c
2540 if test x$gas = xyes
2542 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2544 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2547 fixincludes=Makefile.in
2548 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2549 extra_headers=ppc-asm.h
2550 if test x$enable_threads = xyes; then
2554 powerpc-wrs-vxworks*)
2556 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2557 xm_defines="USG POSIX"
2558 tm_file=rs6000/vxppc.h
2559 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2560 extra_headers=ppc-asm.h
2561 thread_file='vxworks'
2563 powerpcle-*-sysv* | powerpcle-*-elf*)
2564 tm_file=rs6000/sysv4le.h
2565 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2566 xm_defines="USG POSIX"
2567 if test x$gas = xyes
2569 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2571 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2573 xmake_file=rs6000/x-sysv4
2574 extra_headers=ppc-asm.h
2576 powerpcle-*-eabisim*)
2577 tm_file=rs6000/eabilesim.h
2578 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2579 fixincludes=Makefile.in
2580 extra_headers=ppc-asm.h
2583 tm_file=rs6000/eabile.h
2584 if test x$gas = xyes
2586 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2588 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2590 fixincludes=Makefile.in
2591 extra_headers=ppc-asm.h
2593 powerpcle-*-winnt* )
2594 tm_file=rs6000/win-nt.h
2595 tmake_file=rs6000/t-winnt
2597 fixincludes=Makefile.in
2598 if test x$enable_threads = xyes; then
2601 extra_headers=ppc-asm.h
2603 powerpcle-*-pe | powerpcle-*-cygwin32)
2604 tm_file=rs6000/cygwin32.h
2605 xm_file="rs6000/xm-cygwin32.h ${xm_file}"
2606 tmake_file=rs6000/t-winnt
2607 xmake_file=rs6000/x-cygwin32
2609 fixincludes=Makefile.in
2610 if test x$enable_threads = xyes; then
2614 extra_headers=ppc-asm.h
2616 powerpcle-*-solaris2*)
2617 tm_file=rs6000/sol2.h
2618 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2619 xm_defines="USG POSIX"
2620 if test x$gas = xyes
2622 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2624 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2626 xmake_file=rs6000/x-sysv4
2631 fixincludes=fixinc.svr4;;
2633 fixincludes=fixinc.wrap;;
2635 extra_headers=ppc-asm.h
2638 rs6000-ibm-aix3.[01]*)
2640 tm_file=rs6000/aix31.h
2641 xmake_file=rs6000/x-aix31
2645 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2647 tm_file=rs6000/aix3newas.h
2648 if test x$host != x$target
2650 tmake_file=rs6000/t-xnewas
2652 tmake_file=rs6000/t-newas
2657 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2659 tm_file=rs6000/aix41.h
2660 if test x$host != x$target
2662 tmake_file=rs6000/t-xnewas
2664 tmake_file=rs6000/t-newas
2666 xmake_file=rs6000/x-aix41
2670 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2672 tm_file=rs6000/aix43.h
2673 if test x$host != x$target
2675 tmake_file=rs6000/t-xaix43
2677 tmake_file=rs6000/t-aix43
2679 xmake_file=rs6000/x-aix43
2683 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2685 tm_file=rs6000/aix43.h
2686 if test x$host != x$target
2688 tmake_file=rs6000/t-xaix43
2690 tmake_file=rs6000/t-aix43
2692 xmake_file=rs6000/x-aix43
2702 tm_file=rs6000/mach.h
2703 xm_file="${xm_file} rs6000/xm-mach.h"
2704 xmake_file=rs6000/x-mach
2708 tm_file=rs6000/lynx.h
2709 xm_file=rs6000/xm-lynx.h
2710 tmake_file=rs6000/t-rs6000
2711 xmake_file=rs6000/x-lynx
2719 tmake_file="sh/t-sh t-rtems"
2720 tm_file=sh/rtemself.h
2724 tmake_file="sh/t-sh t-rtems"
2733 xm_file="xm-alloca.h ${xm_file}"
2736 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2737 tm_file=sparc/vxsparc.h
2738 tmake_file=sparc/t-vxsparc
2740 thread_file='vxworks'
2743 tmake_file=sparc/t-sparcbare
2744 tm_file="sparc/aout.h libgloss.h"
2747 tm_file=sparc/netbsd.h
2748 xm_file="xm-netbsd.h ${xm_file}"
2749 # On NetBSD, the headers are already okay, except for math.h.
2750 fixincludes=fixinc.wrap
2758 tmake_file=sparc/t-elf
2759 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2763 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2764 xm_file="${xm_file} sparc/xm-linux.h"
2765 tm_file=sparc/linux-aout.h
2767 fixincludes=Makefile.in #On Linux, the headers are ok already.
2770 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2771 xm_file="${xm_file} sparc/xm-linux.h"
2773 tm_file=sparc/linux.h
2774 tmake_file="t-linux t-linux-gnulibc1"
2775 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2776 fixincludes=Makefile.in #On Linux, the headers are ok already.
2779 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2780 xm_file="${xm_file} sparc/xm-linux.h"
2782 tm_file=sparc/linux.h
2783 tmake_file="t-linux"
2784 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2785 fixincludes=Makefile.in #On Linux, the headers are ok already.
2787 if test x$enable_threads = xyes; then
2792 if test x$gas = xyes
2794 tm_file=sparc/lynx.h
2796 tm_file=sparc/lynx-ng.h
2798 xm_file=sparc/xm-lynx.h
2799 tmake_file=sparc/t-sunos41
2803 tmake_file="sparc/t-sparcbare t-rtems"
2804 tm_file=sparc/rtems.h
2807 if test x$gnu_ld = xyes
2809 tm_file=sparc/sol2.h
2811 tm_file=sparc/sol2-sld.h
2813 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2814 xm_defines="USG POSIX"
2815 tmake_file=sparc/t-sol2
2816 xmake_file=sparc/x-sysv4
2817 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
2822 fixincludes=fixinc.svr4;;
2824 fixincludes=fixinc.wrap;;
2827 if test x${enable_threads} = x; then
2828 enable_threads=$have_pthread_h
2829 if test x${enable_threads} = x; then
2830 enable_threads=$have_thread_h
2833 if test x${enable_threads} = xyes; then
2834 if test x${have_pthread_h} = xyes; then
2837 thread_file='solaris'
2842 tm_file=sparc/sunos4.h
2843 tmake_file=sparc/t-sunos40
2847 tm_file=sparc/sunos4.h
2848 tmake_file=sparc/t-sunos41
2850 if test x$gas = xyes; then
2851 tm_file="${tm_file} sparc/sun4gas.h"
2855 tm_file=sparc/sun4o3.h
2859 tm_file=sparc/sysv4.h
2860 xm_file="xm-siglist.h sparc/xm-sysv4.h"
2861 xm_defines="USG POSIX"
2863 xmake_file=sparc/x-sysv4
2864 extra_parts="crtbegin.o crtend.o"
2867 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
2868 xm_defines="USG POSIX"
2869 tm_file=sparc/vxsim.h
2870 tmake_file=sparc/t-vxsparc
2871 xmake_file=sparc/x-sysv4
2874 tm_file="sparc/splet.h libgloss.h"
2875 tmake_file=sparc/t-splet
2878 tm_file="sparc/litecoff.h libgloss.h"
2879 tmake_file=sparc/t-sparclite
2882 tm_file="sparc/lite.h aoutos.h libgloss.h"
2883 tmake_file=sparc/t-sparclite
2886 tmake_file=sparc/t-sp64
2887 tm_file=sparc/sp64-aout.h
2890 tmake_file=sparc/t-sp64
2891 tm_file=sparc/sp64-elf.h
2892 extra_parts="crtbegin.o crtend.o"
2894 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
2895 tmake_file=sparc/t-sp64
2896 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
2897 tm_file=sparc/linux64.h
2899 fixincludes=Makefile.in # The headers are ok already.
2902 # This hasn't been upgraded to GCC 2.
2903 # tahoe-harris-*) # Harris tahoe, using COFF.
2904 # tm_file=tahoe/harris.h
2906 # tahoe-*-bsd*) # tahoe running BSD
2908 thumb-*-coff* | thumbel-*-coff*)
2910 out_file=arm/thumb.c
2911 xm_file=arm/xm-thumb.h
2912 md_file=arm/thumb.md
2913 tmake_file=arm/t-thumb
2914 fixincludes=Makefile.in # There is nothing to fix
2916 # This hasn't been upgraded to GCC 2.
2923 tm_file="v850/v850.h"
2924 xm_file="v850/xm-v850.h"
2925 tmake_file=v850/t-v850
2926 if test x$stabs = xyes
2928 tm_file="${tm_file} dbx.h"
2932 vax-*-bsd*) # vaxen running BSD
2936 vax-*-sysv*) # vaxen running system V
2937 tm_file="${tm_file} vax/vaxv.h"
2942 tm_file="${tm_file} netbsd.h vax/netbsd.h"
2943 xm_file="xm-netbsd.h ${xm_file}"
2944 # On NetBSD, the headers are already okay, except for math.h.
2945 fixincludes=fixinc.wrap
2949 vax-*-ultrix*) # vaxen running ultrix
2950 tm_file="${tm_file} vax/ultrix.h"
2954 vax-*-vms*) # vaxen running VMS
2955 xm_file=vax/xm-vms.h
2959 vax-*-*) # vax default entry
2963 xm_file="${xm_file} xm-svr3"
2967 echo "Configuration $machine not supported" 1>&2
2974 ;; # Existing GNU/Linux systems do not use the GNU setup.
2976 # On the GNU system, the setup is just about the same on
2977 # each different CPU. The specific machines that GNU
2978 # supports are matched above and just set $cpu_type.
2979 xm_file="xm-gnu.h ${xm_file}"
2980 tm_file=${cpu_type}/gnu.h
2981 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
2982 # GNU always uses ELF.
2984 # GNU tools are the only tools.
2987 # On GNU, the headers are already okay.
2988 fixincludes=Makefile.in
2989 xmake_file=x-linux # These details are the same as Linux.
2990 tmake_file=t-gnu # These are not.
2993 fixincludes=fixinc.svr4
2994 xmake_try_sysv=x-sysv
2995 install_headers_dir=install-headers-cpio
2998 install_headers_dir=install-headers-cpio
3002 # Distinguish i[34567]86
3003 # Also, do not run mips-tfile on MIPS if using gas.
3004 # Process --with-cpu= for PowerPC/rs6000
3005 target_cpu_default2=
3008 target_cpu_default2=1
3011 target_cpu_default2=2
3013 i686-*-* | i786-*-*)
3014 target_cpu_default2=3
3019 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3022 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3025 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3028 target_cpu_default2="MASK_CPU_EV5"
3032 if test x$gas = xyes
3034 if test "$target_cpu_default2" = ""
3036 target_cpu_default2="MASK_GAS"
3038 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3043 case "x$with_cpu" in
3046 target_cpu_default2="TARGET_CPU_generic"
3049 # Distinguish cores, and major variants
3050 # arm7m doesn't exist, but D & I don't affect code
3051 xarm[23678] | xarm250 | xarm[67][01]0 \
3052 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3053 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3054 | xstrongarm | xstrongarm110)
3055 target_cpu_default2="TARGET_CPU_$with_cpu"
3059 echo "--with-cpu must be passed a value" 1>&2
3064 if test x$pass2done = xyes
3066 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3073 mips*-*-ecoff* | mips*-*-elf*)
3074 if test x$gas = xyes
3076 if test x$gnu_ld = xyes
3078 target_cpu_default2=20
3080 target_cpu_default2=16
3085 if test x$gas = xyes
3087 target_cpu_default2=16
3090 powerpc*-*-* | rs6000-*-*)
3091 case "x$with_cpu" in
3095 xcommon | xpower | xpower2 | xpowerpc | xrios \
3096 | xrios1 | xrios2 | xrsc | xrsc1 \
3097 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3098 | x403 | x505 | x801 | x821 | x823 | x860)
3099 target_cpu_default2="\"$with_cpu\""
3103 echo "--with-cpu must be passed a value" 1>&2
3108 if test x$pass2done = xyes
3110 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3117 case ".$with_cpu" in
3119 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3121 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3122 target_cpu_default2="TARGET_CPU_$with_cpu"
3125 if test x$pass2done = xyes
3127 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3135 if test "$target_cpu_default2" != ""
3137 if test "$target_cpu_default" != ""
3139 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3141 target_cpu_default=$target_cpu_default2
3145 # No need for collect2 if we have the GNU linker.
3146 # Actually, there is now; GNU ld doesn't handle the EH info or
3147 # collecting for shared libraries.
3154 # Save data on machine being used to compile GCC in build_xm_file.
3155 # Save data on host machine in vars host_xm_file and host_xmake_file.
3156 if test x$pass1done = x
3158 if test x"$xm_file" = x
3159 then build_xm_file=$cpu_type/xm-$cpu_type.h
3160 else build_xm_file=$xm_file
3162 build_xm_defines=$xm_defines
3163 build_install_headers_dir=$install_headers_dir
3164 build_exeext=$exeext
3167 if test x$pass2done = x
3169 if test x"$xm_file" = x
3170 then host_xm_file=$cpu_type/xm-$cpu_type.h
3171 else host_xm_file=$xm_file
3173 host_xm_defines=$xm_defines
3174 if test x"$xmake_file" = x
3175 then xmake_file=$cpu_type/x-$cpu_type
3177 host_xmake_file="$xmake_file"
3178 host_truncate_target=$truncate_target
3179 host_extra_gcc_objs=$extra_gcc_objs
3180 host_extra_objs=$extra_host_objs
3187 extra_objs="${host_extra_objs} ${extra_objs}"
3189 # Default the target-machine variables that were not explicitly set.
3190 if test x"$tm_file" = x
3191 then tm_file=$cpu_type/$cpu_type.h; fi
3193 if test x$extra_headers = x
3194 then extra_headers=; fi
3196 if test x"$xm_file" = x
3197 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3199 if test x$md_file = x
3200 then md_file=$cpu_type/$cpu_type.md; fi
3202 if test x$out_file = x
3203 then out_file=$cpu_type/$cpu_type.c; fi
3205 if test x"$tmake_file" = x
3206 then tmake_file=$cpu_type/t-$cpu_type
3209 if test x$float_format = x
3210 then float_format=i64
3213 if test x$enable_haifa = x
3216 alpha*-* | hppa1.?-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3221 # Say what files are being used for the output code and MD file.
3222 echo "Using \`$srcdir/config/$out_file' to output insns."
3223 echo "Using \`$srcdir/config/$md_file' as machine description file."
3226 for f in $tm_file; do
3229 if test $count = ax; then
3230 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3232 echo "Using the following target machine macro files:"
3233 for f in $tm_file; do
3234 echo " $srcdir/config/$f"
3239 for f in $host_xm_file; do
3242 if test $count = ax; then
3243 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3245 echo "Using the following host machine macro files:"
3246 for f in $host_xm_file; do
3247 echo " $srcdir/config/$f"
3251 if test "$host_xm_file" != "$build_xm_file"; then
3253 for f in $build_xm_file; do
3256 if test $count = ax; then
3257 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3259 echo "Using the following build machine macro files:"
3260 for f in $build_xm_file; do
3261 echo " $srcdir/config/$f"
3266 if test x$thread_file = x; then
3267 if test x$target_thread_file != x; then
3268 thread_file=$target_thread_file
3270 thread_file='single'
3274 # Set up the header files.
3275 # $links is the list of header files to create.
3276 # $vars is the list of shell variables with file names to include.
3277 # auto-host.h is the file containing items generated by autoconf and is
3278 # the first file included by config.h.
3280 host_xm_file="auto-host.h ${host_xm_file}"
3282 # If host=build, it is correct to have hconfig include auto-host.h
3283 # as well. If host!=build, we are in error and need to do more
3284 # work to find out the build config parameters.
3285 if test x$host = x$build
3287 build_xm_file="auto-host.h ${build_xm_file}"
3289 # We create a subdir, then run autoconf in the subdir.
3290 # To prevent recursion we set host and build for the new
3291 # invocation of configure to the build for this invocation
3298 /*) realsrcdir=${srcdir};;
3299 *) realsrcdir=../${srcdir};;
3301 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3302 --target=$target --host=$build --build=$build
3304 # We just finished tests for the build machine, so rename
3305 # the file auto-build.h in the gcc directory.
3306 mv auto-host.h ../auto-build.h
3309 build_xm_file="auto-build.h ${build_xm_file}"
3312 vars="host_xm_file tm_file xm_file build_xm_file"
3313 links="config.h tm.h tconfig.h hconfig.h"
3314 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3317 if test -f config.status; then mv -f config.status config.bak; fi
3320 while test -n "$vars"
3322 set $vars; var=$1; shift; vars=$*
3323 set $links; link=$1; shift; links=$*
3324 set $defines; define=$1; shift; defines=$*
3328 # Define TARGET_CPU_DEFAULT if the system wants one.
3329 # This substitutes for lots of *.h files.
3330 if test "$target_cpu_default" != "" -a $link = tm.h
3332 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3335 for file in `eval echo '$'$var`; do
3336 echo "#include \"$file\"" >>$link
3339 for def in `eval echo '$'$define`; do
3340 echo "#ifndef $def" >>$link
3341 echo "#define $def" >>$link
3342 echo "#endif" >>$link
3346 # Truncate the target if necessary
3347 if test x$host_truncate_target != x; then
3348 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3351 # Get the version trigger filename from the toplevel
3352 if test "${with_gcc_version_trigger+set}" = set; then
3353 gcc_version_trigger=$with_gcc_version_trigger
3355 gcc_version_trigger=${srcdir}/version.c
3358 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3361 # Get an absolute path to the GCC top-level source directory
3367 # Conditionalize the makefile for this host machine.
3368 # Make-host contains the concatenation of all host makefile fragments
3369 # [there can be more than one]. This file is built by configure.frag.
3370 host_overrides=Make-host
3371 dep_host_xmake_file=
3372 for f in .. ${host_xmake_file}
3374 if test -f ${srcdir}/config/$f
3376 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3380 # Conditionalize the makefile for this target machine.
3381 # Make-target contains the concatenation of all host makefile fragments
3382 # [there can be more than one]. This file is built by configure.frag.
3383 target_overrides=Make-target
3385 for f in .. ${tmake_file}
3387 if test -f ${srcdir}/config/$f
3389 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3393 # If the host doesn't support symlinks, modify CC in
3394 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3395 # Otherwise, we can use "CC=$(CC)".
3397 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3399 cc_set_by_configure="\$(CC)"
3400 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3403 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3405 symbolic_link="cp -p"
3409 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3410 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3414 out_object_file=`basename $out_file .c`.o
3417 for f in $tm_file; do
3418 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3422 for f in $host_xm_file; do
3423 if test $f != "auto-host.h"; then
3424 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3426 host_xm_file_list="${host_xm_file_list} auto-host.h"
3431 for f in $build_xm_file; do
3432 if test $f != "auto-build.h"; then
3433 if test $f != "auto-host.h"; then
3434 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3436 build_xm_file_list="${build_xm_file_list} auto-host.h"
3439 build_xm_file_list="${build_xm_file_list} auto-build.h"
3443 # Define macro CROSS_COMPILE in compilation
3444 # if this is a cross-compiler.
3445 # Also use all.cross instead of all.internal
3446 # and add cross-make to Makefile.
3447 cross_overrides="/dev/null"
3448 if test x$host != x$target
3450 cross_defines="CROSS=-DCROSS_COMPILE"
3451 cross_overrides="${topdir}/cross-make"
3454 # When building gcc with a cross-compiler, we need to fix a few things.
3455 # This must come after cross-make as we want all.build to override
3457 build_overrides="/dev/null"
3458 if test x$build != x$host
3460 build_overrides="${topdir}/build-make"
3463 # Expand extra_headers to include complete path.
3464 # This substitutes for lots of t-* files.
3466 if test "x$extra_headers" = x
3469 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3470 for file in $extra_headers;
3472 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3476 if test x$use_collect2 = xno; then
3480 # Add a definition of USE_COLLECT2 if system wants one.
3481 # Also tell toplev.c what to do.
3482 # This substitutes for lots of t-* files.
3483 if test x$use_collect2 = x
3488 will_use_collect2="collect2"
3489 maybe_use_collect2="-DUSE_COLLECT2"
3493 # Set MD_DEPS if the real md file is in md.pre-cpp.
3494 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3495 # for line oriented comments, so we must always use a GNU cpp. If
3496 # building gcc with a cross compiler, use the cross compiler just
3497 # built. Otherwise, we can use the cpp just built.
3499 if test "x$md_cppflags" = x
3501 md_file_sub=$srcdir/config/$md_file
3506 # If we have gas in the build tree, make a link to it.
3507 if test -f ../gas/Makefile; then
3508 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3511 # If we have nm in the build tree, make a link to it.
3512 if test -f ../binutils/Makefile; then
3513 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3516 # If we have ld in the build tree, make a link to it.
3517 if test -f ../ld/Makefile; then
3518 # if test x$use_collect2 = x; then
3519 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3521 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3525 # Figure out what assembler alignment features are present.
3526 AC_MSG_CHECKING(assembler alignment features)
3528 gcc_cv_as_alignment_features=
3529 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,gcc$,gas,'`
3530 if test -x as$host_exeext; then
3531 # Build using assembler in the current directory.
3532 gcc_cv_as=./as$host_exeext
3533 elif test -f $gcc_cv_as_gas_srcdir/configure.in; then
3534 # Single tree build which includes gas.
3535 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3538 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3540 if test x$gcc_cv_gas_version != x; then
3545 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3546 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3548 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3549 # Gas version 2.6 and later support for .balign and .p2align.
3550 # bytes to skip when using .p2align.
3551 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
3552 gcc_cv_as_alignment_features=".balign and .p2align"
3553 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3555 # Gas version 2.8 and later support specifying the maximum
3556 # bytes to skip when using .p2align.
3557 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
3558 gcc_cv_as_alignment_features=".p2align including maximum skip"
3559 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3562 elif test x$host = x$target; then
3564 gcc_cv_as=as$host_exeext
3566 if test x$gcc_cv_as != x; then
3567 # Check if we have .balign and .p2align
3568 echo ".balign 4" > conftest.s
3569 echo ".p2align 2" >> conftest.s
3570 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3571 gcc_cv_as_alignment_features=".balign and .p2align"
3572 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3574 rm -f conftest.s conftest.o
3575 # Check if specifying the maximum bytes to skip when
3576 # using .p2align is supported.
3577 echo ".p2align 4,,7" > conftest.s
3578 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3579 gcc_cv_as_alignment_features=".p2align including maximum skip"
3580 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3582 rm -f conftest.s conftest.o
3584 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3586 # Figure out what language subdirectories are present.
3588 for lang in ${srcdir}/*/config-lang.in ..
3592 # The odd quoting in the next line works around
3593 # an apparent bug in bash 1.12 on linux.
3595 ${srcdir}/[*]/config-lang.in) ;;
3596 *) subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
3601 # Make gthr-default.h if we have a thread file.
3603 if test $thread_file != single; then
3604 rm -f gthr-default.h
3605 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3606 gthread_flags=-DHAVE_GTHR_DEFAULT
3608 AC_SUBST(gthread_flags)
3610 # Make empty files to contain the specs and options for each language.
3611 # Then add #include lines to for a compiler that has specs and/or options.
3616 rm -f specs.h options.h gencheck.h
3617 touch specs.h options.h gencheck.h
3618 for subdir in . $subdirs
3620 if test -f $srcdir/$subdir/lang-specs.h; then
3621 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3622 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3624 if test -f $srcdir/$subdir/lang-options.h; then
3625 echo "#include \"$subdir/lang-options.h\"" >>options.h
3626 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3628 if test -f $srcdir/$subdir/$subdir-tree.def; then
3629 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3630 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3634 # These (without "all_") are set in each config-lang.in.
3635 # `language' must be a single word so is spelled singularly.
3641 all_outputs=Makefile
3642 # List of language makefile fragments.
3647 # Add the language fragments.
3648 # Languages are added via two mechanisms. Some information must be
3649 # recorded in makefile variables, these are defined in config-lang.in.
3650 # We accumulate them and plug them into the main Makefile.
3651 # The other mechanism is a set of hooks for each of the main targets
3652 # like `clean', `install', etc.
3654 language_fragments="Make-lang"
3655 language_hooks="Make-hooks"
3658 for s in .. $subdirs
3670 . ${srcdir}/$s/config-lang.in
3671 if test "x$language" = x
3673 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3676 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3677 all_languages="$all_languages $language"
3678 if test "x$boot_language" = xyes
3680 all_boot_languages="$all_boot_languages $language"
3682 all_compilers="$all_compilers $compilers"
3683 all_stagestuff="$all_stagestuff $stagestuff"
3684 all_diff_excludes="$all_diff_excludes $diff_excludes"
3685 all_headers="$all_headers $headers"
3686 all_outputs="$all_outputs $outputs"
3687 if test x$outputs = x
3689 oldstyle_subdirs="$oldstyle_subdirs $s"
3691 all_lib2funcs="$all_lib2funcs $lib2funcs"
3695 # Since we can't use `::' targets, we link each language in
3696 # with a set of hooks, reached indirectly via lang.${target}.
3700 target_list="all.build all.cross start.encap rest.encap \
3702 install-normal install-common install-info install-man \
3704 mostlyclean clean distclean extraclean maintainer-clean \
3705 stage1 stage2 stage3 stage4"
3706 for t in $target_list
3709 for l in .. $all_languages
3711 if test $l != ".."; then
3715 echo "lang.$t: $x" >> Make-hooks
3718 # If we're not building in srcdir, create .gdbinit.
3720 if test ! -f Makefile.in; then
3721 echo "dir ." > .gdbinit
3722 echo "dir ${srcdir}" >> .gdbinit
3723 if test x$gdb_needs_out_file_path = xyes
3725 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
3727 if test "x$subdirs" != x; then
3730 echo "dir ${srcdir}/$s" >> .gdbinit
3733 echo "source ${srcdir}/.gdbinit" >> .gdbinit
3736 # Define variables host_canonical and build_canonical
3737 # because some Cygnus local changes in the Makefile depend on them.
3738 build_canonical=${build}
3739 host_canonical=${host}
3741 if test "${host}" != "${target}" ; then
3742 target_subdir=${target}/
3744 AC_SUBST(build_canonical)
3745 AC_SUBST(host_canonical)
3746 AC_SUBST(target_subdir)
3748 # If this is using newlib, then define inhibit_libc in
3749 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
3750 # libgcc.a, but that's OK because newib should have its own version of
3753 if test x$with_newlib = xyes; then
3754 inhibit_libc=-Dinhibit_libc
3756 AC_SUBST(inhibit_libc)
3758 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
3761 if test x$enable_haifa = xyes; then
3762 echo "Using the Haifa scheduler."
3764 sched_cflags=-DHAIFA
3766 AC_SUBST(sched_prefix)
3767 AC_SUBST(sched_cflags)
3768 if test x$enable_haifa != x; then
3769 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
3770 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
3778 # Warn if using init_priority.
3779 AC_MSG_CHECKING(whether to enable init_priority by default)
3780 if test x$enable_init_priority != xyes; then
3781 enable_init_priority=no
3783 AC_MSG_RESULT($enable_init_priority)
3785 # Nothing to do for FLOAT_H, float_format already handled.
3789 # Process the language and host/target makefile fragments.
3790 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
3792 # Substitute configuration variables
3794 AC_SUBST(all_languages)
3795 AC_SUBST(all_boot_languages)
3796 AC_SUBST(all_compilers)
3797 AC_SUBST(all_lang_makefiles)
3798 AC_SUBST(all_stagestuff)
3799 AC_SUBST(all_diff_excludes)
3800 AC_SUBST(all_lib2funcs)
3801 AC_SUBST(all_headers)
3803 AC_SUBST(extra_passes)
3804 AC_SUBST(extra_programs)
3805 AC_SUBST(extra_parts)
3806 AC_SUBST(extra_c_objs)
3807 AC_SUBST(extra_cxx_objs)
3808 AC_SUBST(extra_cpp_objs)
3809 AC_SUBST(extra_c_flags)
3810 AC_SUBST(extra_objs)
3811 AC_SUBST(host_extra_gcc_objs)
3812 AC_SUBST(extra_headers_list)
3813 AC_SUBST(dep_host_xmake_file)
3814 AC_SUBST(dep_tmake_file)
3816 AC_SUBST(out_object_file)
3818 AC_SUBST(tm_file_list)
3819 AC_SUBST(build_xm_file_list)
3820 AC_SUBST(host_xm_file_list)
3821 AC_SUBST(lang_specs_files)
3822 AC_SUBST(lang_options_files)
3823 AC_SUBST(lang_tree_files)
3824 AC_SUBST(thread_file)
3825 AC_SUBST(gcc_version)
3826 AC_SUBST(gcc_version_trigger)
3827 AC_SUBST(local_prefix)
3828 AC_SUBST(gxx_include_dir)
3829 AC_SUBST(fixincludes)
3830 AC_SUBST(build_install_headers_dir)
3831 AC_SUBST(build_exeext)
3832 AC_SUBST(host_exeext)
3833 AC_SUBST(float_format)
3834 AC_SUBST(will_use_collect2)
3835 AC_SUBST(maybe_use_collect2)
3836 AC_SUBST(cc_set_by_configure)
3837 AC_SUBST(stage_prefix_set_by_configure)
3839 AC_SUBST(symbolic_link)
3841 AC_SUBST_FILE(target_overrides)
3842 AC_SUBST_FILE(host_overrides)
3843 AC_SUBST(cross_defines)
3844 AC_SUBST_FILE(cross_overrides)
3845 AC_SUBST_FILE(build_overrides)
3846 AC_SUBST_FILE(language_fragments)
3847 AC_SUBST_FILE(language_hooks)
3849 # Echo that links are built
3850 if test x$host = x$target
3858 if test x$host != x$build
3860 str3=" on a $build system"
3863 if test "x$str2" != x || test "x$str3" != x
3868 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
3870 if test "x$str2" != x || test "x$str3" != x
3872 echo " ${str2}${str3}." 1>&2
3875 # Truncate the target if necessary
3876 if test x$host_truncate_target != x; then
3877 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3880 # Configure the subdirectories
3881 # AC_CONFIG_SUBDIRS($subdirs)
3883 # Create the Makefile
3884 # and configure language subdirectories
3885 AC_OUTPUT($all_outputs,
3887 . $srcdir/configure.lang
3888 case x$CONFIG_HEADERS in
3889 xauto-host.h:config.in)
3892 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
3893 # bootstrapping and the installation procedure can still use
3894 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
3895 # FLAGS_TO_PASS has been modified to solve the problem there.
3896 # This is virtually a duplicate of what happens in configure.lang; we do
3897 # an extra check to make sure this only happens if ln -s can be used.
3898 if test "$symbolic_link" = "ln -s"; then
3899 for d in .. ${subdirs} ; do
3900 if test $d != ..; then
3903 for t in stage1 stage2 stage3 stage4 include
3906 $symbolic_link ../$t $t 2>/dev/null
3917 target_alias='${target_alias}'
3919 subdirs='${subdirs}'
3920 oldstyle_subdirs='${oldstyle_subdirs}'
3921 symbolic_link='${symbolic_link}'
3922 program_transform_set='${program_transform_set}'
3923 program_transform_name='${program_transform_name}'
3924 dep_host_xmake_file='${dep_host_xmake_file}'
3925 host_xmake_file='${host_xmake_file}'
3926 dep_tmake_file='${dep_tmake_file}'
3927 tmake_file='${tmake_file}'
3928 thread_file='${thread_file}'
3929 gcc_version='${gcc_version}'
3930 gcc_version_trigger='${gcc_version_trigger}'
3931 local_prefix='${local_prefix}'
3932 build_install_headers_dir='${build_install_headers_dir}'
3933 build_exeext='${build_exeext}'
3934 host_exeext='${host_exeext}'
3935 out_file='${out_file}'
3936 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
3937 SET_MAKE='${SET_MAKE}'
3938 target_list='${target_list}'
3939 target_overrides='${target_overrides}'
3940 host_overrides='${host_overrides}'
3941 cross_defines='${cross_defines}'
3942 cross_overrides='${cross_overrides}'
3943 build_overrides='${build_overrides}'