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
26 AC_CONFIG_HEADER(auto-host.h:config.in)
33 # Check for bogus environment variables.
34 # Test if LIBRARY_PATH contains the notation for the current directory
35 # since this would lead to problems installing/building glibc.
36 # LIBRARY_PATH contains the current directory if one of the following
38 # - one of the terminals (":" and ";") is the first or last sign
39 # - two terminals occur directly after each other
40 # - the path contains an element with a dot in it
41 AC_MSG_CHECKING(LIBRARY_PATH variable)
43 case ${LIBRARY_PATH} in
44 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
45 library_path_setting="contains current directory"
48 library_path_setting="ok"
52 AC_MSG_RESULT($library_path_setting)
53 if test "$library_path_setting" != "ok"; then
55 *** LIBRARY_PATH shouldn't contain the current directory when
56 *** building egcs. Please change the environment variable
57 *** and run configure again.])
60 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
61 # since this would lead to problems installing/building glibc.
62 # GCC_EXEC_PREFIX contains the current directory if one of the following
64 # - one of the terminals (":" and ";") is the first or last sign
65 # - two terminals occur directly after each other
66 # - the path contains an element with a dot in it
67 AC_MSG_CHECKING(GCC_EXEC_PREFIX variable)
69 case ${GCC_EXEC_PREFIX} in
70 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
71 gcc_exec_prefix_setting="contains current directory"
74 gcc_exec_prefix_setting="ok"
78 AC_MSG_RESULT($gcc_exec_prefix_setting)
79 if test "$gcc_exec_prefix_setting" != "ok"; then
81 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
82 *** building egcs. Please change the environment variable
83 *** and run configure again.])
86 # Check for additional parameters
90 [ --with-gnu-ld arrange to work with GNU ld.],
91 gnu_ld_flag="$with_gnu_ld",
96 [ --with-ld arrange to use the specified ld (full pathname).],
97 DEFAULT_LINKER="$with_ld")
98 if test x"${DEFAULT_LINKER+set}" = x"set"; then
99 if test ! -x "$DEFAULT_LINKER"; then
100 AC_MSG_WARN([cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER])
101 elif test "GNU" = `$DEFAULT_LINKER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
104 AC_DEFINE_UNQUOTED(DEFAULT_LINKER,"$DEFAULT_LINKER")
109 [ --with-gnu-as arrange to work with GNU as.],
110 gas_flag="$with_gnu_as",
114 [ --with-as arrange to use the specified as (full pathname).],
115 DEFAULT_ASSEMBLER="$with_as")
116 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
117 if test ! -x "$DEFAULT_ASSEMBLER"; then
118 AC_MSG_WARN([cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER])
119 elif test "GNU" = `$DEFAULT_ASSEMBLER -v </dev/null 2>&1 | sed '1s/^GNU.*/GNU/;q'`; then
122 AC_DEFINE_UNQUOTED(DEFAULT_ASSEMBLER,"$DEFAULT_ASSEMBLER")
127 [ --with-stabs arrange to use stabs instead of host debug format.],
133 [ --with-elf arrange to use ELF instead of host debug format.],
137 # Specify the local prefix
139 AC_ARG_WITH(local-prefix,
140 [ --with-local-prefix=DIR specifies directory to put local include.],
141 [case "${withval}" in
142 yes) AC_MSG_ERROR(bad value ${withval} given for local include directory prefix) ;;
144 *) local_prefix=$with_local_prefix ;;
147 # Default local prefix if it is empty
148 if test x$local_prefix = x; then
149 local_prefix=/usr/local
153 # Specify the g++ header file directory
154 AC_ARG_WITH(gxx-include-dir,
155 [ --with-gxx-include-dir=DIR
156 specifies directory to put g++ header files.],
157 [case "${withval}" in
158 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
160 *) gxx_include_dir=$with_gxx_include_dir ;;
163 if test x${gxx_include_dir} = x; then
164 if test x${enable_version_specific_runtime_libs} = xyes; then
165 gxx_include_dir='${libsubdir}/include/g++'
167 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
168 changequote(<<, >>)dnl
169 gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
174 # Enable expensive internal checks
175 AC_ARG_ENABLE(checking,
176 [ --enable-checking enable expensive run-time checks.],
177 [case "${enableval}" in
178 yes) AC_DEFINE(ENABLE_CHECKING) ;;
180 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
183 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
185 AC_ARG_ENABLE(cpplib,
186 [ --enable-cpplib use cpplib for the C preprocessor.],
187 if test x$enable_cpplib != xno; then
191 # Link cpplib into the compiler proper, for C/C++/ObjC.
192 AC_ARG_ENABLE(c-cpplib,
193 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
194 (implies --enable-cpplib).],
195 if test x$enable_c_cpplib != xno; then
196 extra_c_objs="${extra_c_objs} libcpp.a"
197 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
198 extra_c_flags=-DUSE_CPPLIB=1
202 # Enable Multibyte Characters for C/C++
203 AC_ARG_ENABLE(c-mbchar,
204 [ --enable-c-mbchar enable multibyte characters for C and C++.],
205 if test x$enable_c_mbchar != xno; then
206 extra_c_flags=-DMULTIBYTE_CHARS=1
209 # Enable Haifa scheduler.
211 [ --enable-haifa use the experimental scheduler.
212 --disable-haifa don't use the experimental scheduler for the
213 targets which normally enable it.])
216 # This is a work in progress...
217 AC_ARG_WITH(fast-fixincludes,
218 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
219 fast_fixinc="$with_fast_fixincludes",
222 # Enable init_priority.
223 AC_ARG_ENABLE(init-priority,
224 [ --enable-init-priority use attributes to assign initialization order
226 --disable-init-priority conform to ISO C++ rules for ordering static objects
227 (i.e. initialized in order of declaration). ],
228 if test x$enable_init_priority != xno; then
229 extra_c_flags=-DUSE_INIT_PRIORITY
233 # Pass with no value to take the default
234 # Pass with a value to specify a thread package
235 AC_ARG_ENABLE(threads,
236 [ --enable-threads enable thread usage for target GCC.
237 --enable-threads=LIB use LIB thread package for target GCC.],
238 if test x$enable_threads = xno; then
243 enable_threads_flag=$enable_threads
244 # Check if a valid thread package
245 case x${enable_threads_flag} in
248 target_thread_file='single'
252 target_thread_file=''
254 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
255 xsolaris | xwin32 | xdce | xvxworks)
256 target_thread_file=$enable_threads_flag
259 echo "$enable_threads is an unknown thread package" 1>&2
264 AC_ARG_ENABLE(objc-gc,
265 [ --enable-objc-gc enable the use of Boehm's garbage collector with
266 the GNU Objective-C runtime.],
267 if [[[ x$enable_objc_gc = xno ]]]; then
274 AC_ARG_ENABLE(java-gc,
275 changequote(<<,>>)dnl
276 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
281 # Determine the host, build, and target systems
284 # Find the native compiler
287 # If the native compiler is GCC, we can enable warnings even in stage1.
288 # That's useful for people building cross-compilers, or just running a
290 if test "x$GCC" = "xyes"; then
291 stage1_warn_cflags='$(WARN_CFLAGS)'
293 stage1_warn_cflags=""
295 AC_SUBST(stage1_warn_cflags)
299 AC_MSG_CHECKING([whether a default assembler was specified])
300 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
301 if test x"$with_gas" = x"no"; then
302 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
304 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
310 AC_MSG_CHECKING([whether a default linker was specified])
311 if test x"${DEFAULT_LINKER+set}" = x"set"; then
312 if test x"$with_gnu_ld" = x"no"; then
313 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
315 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
321 # Find some useful tools
335 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 sys/stat.h)
337 # Check for thread headers.
338 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
339 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
341 # See if GNAT has been installed
342 AC_CHECK_PROG(gnat, gnatbind, yes, no)
344 # See if the system preprocessor understands the ANSI C preprocessor
345 # stringification operator.
346 AC_MSG_CHECKING(whether cpp understands the stringify operator)
347 AC_CACHE_VAL(gcc_cv_c_have_stringify,
350 char *test = S(foo);],
351 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
352 AC_MSG_RESULT($gcc_cv_c_have_stringify)
353 if test $gcc_cv_c_have_stringify = yes; then
354 AC_DEFINE(HAVE_CPP_STRINGIFY)
357 # Use <inttypes.h> only if it exists,
358 # doesn't clash with <sys/types.h>, and declares intmax_t.
359 AC_MSG_CHECKING(for inttypes.h)
360 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
362 [#include <sys/types.h>
363 #include <inttypes.h>],
365 [gcc_cv_header_inttypes_h=yes],
366 gcc_cv_header_inttypes_h=no)])
367 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
368 if test $gcc_cv_header_inttypes_h = yes; then
369 AC_DEFINE(HAVE_INTTYPES_H)
372 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
373 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
374 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
377 # Make sure wchar_t is available
378 #AC_CHECK_TYPE(wchar_t, unsigned int)
380 GCC_FUNC_VFPRINTF_DOPRNT
384 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
385 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
388 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
389 #include <sys/types.h>
390 #ifdef HAVE_SYS_RESOURCE_H
391 #include <sys/resource.h>
405 build_install_headers_dir=install-headers-tar
410 host_truncate_target=
413 # Decode the host machine, then the target machine.
414 # For the host machine, we save the xm_file variable as host_xm_file;
415 # then we decode the target machine and forget everything else
416 # that came from the host machine.
417 for machine in $build $host $target; do
431 # Set this to force installation and use of collect2.
433 # Set this to override the default target model.
435 # Set this to control which fixincludes program to use.
436 if test x$fast_fixinc != xyes; then
437 fixincludes=fixincludes
438 else fixincludes=fixinc.sh ; fi
439 # Set this to control how the header file directory is installed.
440 install_headers_dir=install-headers-tar
441 # Set this to a non-empty list of args to pass to cpp if the target
442 # wants its .md file passed through cpp.
444 # Set this if directory names should be truncated to 14 characters.
446 # Set this if gdb needs a dir command with `dirname $out_file`
447 gdb_needs_out_file_path=
448 # Set this if the build machine requires executables to have a
451 # Set this to control which thread package will be used.
453 # Reinitialize these from the flag values every loop pass, since some
454 # configure entries modify them.
456 gnu_ld="$gnu_ld_flag"
457 enable_threads=$enable_threads_flag
459 # Set default cpu_type, tm_file and xm_file so it can be updated in
460 # each machine entry.
461 cpu_type=`echo $machine | sed 's/-.*$//'`
497 tm_file=${cpu_type}/${cpu_type}.h
498 xm_file=${cpu_type}/xm-${cpu_type}.h
500 # Set the default macros to define for GNU/Linux systems.
503 xm_defines="HAVE_ATEXIT POSIX BSTRING"
508 # Support site-specific machine types.
510 cpu_type=`echo $machine | sed -e 's/-.*//'`
511 rest=`echo $machine | sed -e "s/$cpu_type-//"`
512 xm_file=${cpu_type}/xm-$rest.h
513 tm_file=${cpu_type}/$rest.h
514 if test -f $srcdir/config/${cpu_type}/x-$rest; \
515 then xmake_file=${cpu_type}/x-$rest; \
518 if test -f $srcdir/config/${cpu_type}/t-$rest; \
519 then tmake_file=${cpu_type}/t-$rest; \
525 a29k-*-bsd* | a29k-*-sym1*)
526 tm_file="${tm_file} a29k/unix.h"
528 xmake_file=a29k/x-unix
531 a29k-*-udi | a29k-*-coff)
532 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
533 tmake_file=a29k/t-a29kbare
536 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
537 tmake_file=a29k/t-vx29k
538 extra_parts="crtbegin.o crtend.o"
539 thread_file='vxworks'
541 a29k-*-*) # Default a29k environment.
544 alpha*-*-linux-gnuecoff*)
545 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
546 target_cpu_default="MASK_GAS"
551 alpha*-*-linux-gnulibc1*)
552 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
553 target_cpu_default="MASK_GAS"
554 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
555 extra_parts="crtbegin.o crtend.o"
556 fixincludes=fixinc.wrap
559 if test x$enable_threads = xyes; then
564 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
565 target_cpu_default="MASK_GAS"
566 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
567 extra_parts="crtbegin.o crtend.o"
569 fixincludes=Makefile.in
571 if test x$enable_threads = xyes; then
576 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
577 target_cpu_default="MASK_GAS"
578 tmake_file="alpha/t-crtbe"
579 extra_parts="crtbegin.o crtend.o"
581 fixincludes=fixinc.wrap
586 if test x$stabs = xyes
588 tm_file="${tm_file} dbx.h"
590 if test x$gas != xyes
592 extra_passes="mips-tfile mips-tdump"
597 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
602 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
605 tm_file="${tm_file} alpha/osf.h"
606 # Some versions of OSF4 (specifically X4.0-9 296.7) have
607 # a broken tar, so we use cpio instead.
608 install_headers_dir=install-headers-cpio
613 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
615 target_cpu_default=MASK_SUPPORT_ARCH
620 tm_file="${tm_file} dbx.h alpha/vxworks.h"
623 extra_passes="mips-tfile mips-tdump"
628 tm_file="${tm_file} alpha/win-nt.h"
629 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
631 xmake_file=winnt/x-winnt
632 extra_host_objs=oldnames.o
633 extra_gcc_objs="spawnv.o oldnames.o"
634 fixincludes=fixinc.winnt
635 if test x$gnu_ld != xyes
637 extra_programs=ld.exe
639 if test x$enable_threads = xyes; then
645 xm_file="${xm_file} alpha/xm-vms.h"
646 tmake_file=alpha/t-vms
647 fixincludes=Makefile.in
650 extra_parts="crtinit.o crtfini.o"
652 arm-*-coff* | armel-*-coff*)
654 tmake_file=arm/t-bare
657 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
659 tm_file=arm/riscix1-1.h
662 arm-*-riscix*) # Acorn RISC machine
665 tm_file=arm/rix-gas.h
669 xmake_file=arm/x-riscix
670 tmake_file=arm/t-riscix
673 arm-semi-aout | armel-semi-aout)
675 tmake_file=arm/t-semi
676 fixincludes=Makefile.in # There is nothing to fix
678 arm-semi-aof | armel-semi-aof)
679 tm_file=arm/semiaof.h
680 tmake_file=arm/t-semiaof
681 fixincludes=Makefile.in # There is nothing to fix
685 xm_file="arm/xm-netbsd.h ${xm_file}"
686 tmake_file="t-netbsd arm/t-netbsd"
687 # On NetBSD, the headers are already okay, except for math.h.
688 fixincludes=fixinc.wrap
690 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
693 tm_file=arm/linux-aout.h
694 tmake_file=arm/t-linux
695 fixincludes=Makefile.in
698 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
699 xm_file=arm/xm-linux.h
703 tm_file=arm/linux-elf26.h
706 tm_file=arm/linux-elf.h
709 tmake_file="t-linux arm/t-linux"
710 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
711 fixincludes=Makefile.in # Nothing to fix
716 tmake_file=arm/t-bare
719 tm_file=arm/ecos-elf.h
723 tm_file=arm/unknown-elf.h
724 tmake_file=arm/t-arm-elf
726 c1-convex-*) # Convex C1
729 fixincludes=Makefile.in
731 c2-convex-*) # Convex C2
734 fixincludes=Makefile.in
739 fixincludes=Makefile.in
744 fixincludes=Makefile.in
747 target_cpu_default=16
749 fixincludes=Makefile.in
755 clipper-intergraph-clix*)
756 tm_file="${tm_file} svr3.h clipper/clix.h"
757 xm_file=clipper/xm-clix.h
758 xmake_file=clipper/x-clix
759 extra_headers=va-clipper.h
760 extra_parts="crtbegin.o crtend.o"
761 install_headers_dir=install-headers-cpio
768 # This hasn't been upgraded to GCC 2.
769 # fx80-alliant-*) # Alliant FX/80
775 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
776 xm_file=pa/xm-papro.h
781 tm_file="${tm_file} pa/pa-osf.h"
783 fixincludes=Makefile.in
786 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
787 xm_file=pa/xm-papro.h
791 tm_file="${tm_file} pa/pa-osf.h"
793 fixincludes=Makefile.in
798 fixincludes=Makefile.in
802 fixincludes=Makefile.in
805 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
806 xm_file=pa/xm-pahpux.h
807 xmake_file=pa/x-pa-hpux
810 tm_file="${tm_file} pa/gas.h"
812 install_headers_dir=install-headers-cpio
816 hppa1.0-*-hpux8.0[0-2]*)
818 tm_file="${tm_file} pa/pa-hpux.h"
819 xm_file=pa/xm-pahpux.h
820 xmake_file=pa/x-pa-hpux
823 tm_file="${tm_file} pa/pa-gas.h"
825 tm_file="pa/pa-oldas.h ${tm_file}"
827 install_headers_dir=install-headers-cpio
831 hppa1.1-*-hpux8.0[0-2]*)
834 tm_file="${tm_file} pa/pa-hpux.h"
835 xm_file=pa/xm-pahpux.h
836 xmake_file=pa/x-pa-hpux
839 tm_file="${tm_file} pa/pa-gas.h"
841 tm_file="pa/pa-oldas.h ${tm_file}"
843 install_headers_dir=install-headers-cpio
848 tm_file="${tm_file} pa/pa-hpux.h"
849 xm_file=pa/xm-pahpux.h
850 xmake_file=pa/x-pa-hpux
853 tm_file="${tm_file} pa/pa-gas.h"
855 install_headers_dir=install-headers-cpio
859 tm_file="${tm_file} pa/pa-hpux.h"
860 xm_file=pa/xm-pahpux.h
861 xmake_file=pa/x-pa-hpux
864 tm_file="${tm_file} pa/pa-gas.h"
866 install_headers_dir=install-headers-cpio
869 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
871 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
872 xm_file=pa/xm-pahpux.h
873 xmake_file=pa/x-pa-hpux
877 tm_file="${tm_file} pa/pa-gas.h"
879 if test x$enable_threads = x; then
880 enable_threads=$have_pthread_h
882 if test x$enable_threads = xyes; then
884 tmake_file="${tmake_file} pa/t-dce-thr"
886 install_headers_dir=install-headers-cpio
890 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
891 xm_file=pa/xm-pahpux.h
892 xmake_file=pa/x-pa-hpux
895 tm_file="${tm_file} pa/pa-gas.h"
897 if test x$enable_threads = x; then
898 enable_threads=$have_pthread_h
900 if test x$enable_threads = xyes; then
902 tmake_file="${tmake_file} pa/t-dce-thr"
904 install_headers_dir=install-headers-cpio
907 hppa1.1-*-hpux* | hppa2*-*-hpux*)
909 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
910 xm_file=pa/xm-pahpux.h
911 xmake_file=pa/x-pa-hpux
914 tm_file="${tm_file} pa/pa-gas.h"
916 install_headers_dir=install-headers-cpio
920 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
921 xm_file=pa/xm-pahpux.h
922 xmake_file=pa/x-pa-hpux
925 tm_file="${tm_file} pa/pa-gas.h"
927 install_headers_dir=install-headers-cpio
930 hppa1.1-*-hiux* | hppa2*-*-hiux*)
932 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
933 xm_file=pa/xm-pahpux.h
934 xmake_file=pa/x-pa-hpux
937 tm_file="${tm_file} pa/pa-gas.h"
939 install_headers_dir=install-headers-cpio
943 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
944 xm_file=pa/xm-pahpux.h
945 xmake_file=pa/x-pa-hpux
948 tm_file="${tm_file} pa/pa-gas.h"
950 install_headers_dir=install-headers-cpio
956 fixincludes=Makefile.in
961 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
965 tm_file=i386/aix386.h
966 extra_parts="crtbegin.o crtend.o"
967 tmake_file=i386/t-crtstuff
969 tm_file=i386/aix386ng.h
972 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
974 xmake_file=i386/x-aix
977 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
979 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
980 xm_defines="USG POSIX SMALL_ARG_MAX"
981 xmake_file=i386/x-ncr3000
982 if test x$stabs = xyes -a x$gas = xyes
984 tm_file=i386/sysv4gdb.h
988 extra_parts="crtbegin.o crtend.o"
989 tmake_file=i386/t-crtpic
995 xm_file=i386/xm-next.h
996 tmake_file=i386/t-next
997 xmake_file=i386/x-next
998 extra_objs=nextstep.o
999 extra_parts="crtbegin.o crtend.o"
1000 if test x$enable_threads = xyes; then
1005 i[34567]86-sequent-bsd*) # 80386 from Sequent
1008 if test x$gas = xyes
1010 tm_file=i386/seq-gas.h
1012 tm_file=i386/sequent.h
1016 i[34567]86-sequent-ptx1*)
1018 xm_defines="USG SVR3"
1019 xmake_file=i386/x-sysv3
1020 tm_file=i386/seq-sysv3.h
1021 tmake_file=i386/t-crtstuff
1022 fixincludes=fixinc.ptx
1023 extra_parts="crtbegin.o crtend.o"
1024 install_headers_dir=install-headers-cpio
1027 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1029 xm_defines="USG SVR3"
1030 xmake_file=i386/x-sysv3
1031 tm_file=i386/seq2-sysv3.h
1032 tmake_file=i386/t-crtstuff
1033 extra_parts="crtbegin.o crtend.o"
1034 fixincludes=fixinc.ptx
1035 install_headers_dir=install-headers-cpio
1038 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1040 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1041 xm_defines="USG POSIX SMALL_ARG_MAX"
1043 tm_file=i386/ptx4-i.h
1045 extra_parts="crtbegin.o crtend.o"
1046 fixincludes=fixinc.ptx
1047 install_headers_dir=install-headers-cpio
1049 i386-sun-sunos*) # Sun i386 roadrunner
1055 i[34567]86-wrs-vxworks*)
1057 tm_file=i386/vxi386.h
1058 tmake_file=i386/t-i386bare
1063 tm_file=i386/i386-aout.h
1064 tmake_file=i386/t-i386bare
1067 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1069 tm_file=i386/bsd386.h
1070 # tmake_file=t-libc-ok
1075 tm_file=i386/386bsd.h
1076 # tmake_file=t-libc-ok
1077 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1081 i[34567]86-*-freebsdelf*)
1083 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1084 # On FreeBSD, the headers are already ok, except for math.h.
1085 fixincludes=fixinc.wrap
1086 tmake_file=i386/t-freebsd
1092 i[34567]86-*-freebsd*)
1094 tm_file=i386/freebsd.h
1095 # On FreeBSD, the headers are already ok, except for math.h.
1096 fixincludes=fixinc.wrap
1097 tmake_file=i386/t-freebsd
1099 # We are hoping OpenBSD is still close enough to NetBSD that we can
1100 # share the configurations.
1102 i[34567]86-*-netbsd* | i[34567]86-*-openbsd*)
1104 tm_file=i386/netbsd.h
1105 # On NetBSD, the headers are already okay, except for math.h.
1106 fixincludes=fixinc.wrap
1112 tm_file=i386/i386-coff.h
1113 tmake_file=i386/t-i386bare
1116 i[34567]86-*-isc*) # 80386 running ISC system
1118 xm_file="${xm_file} i386/xm-isc.h"
1119 xm_defines="USG SVR3"
1122 i[34567]86-*-isc[34]*)
1124 xmake_file=i386/x-isc3
1127 xmake_file=i386/x-isc
1130 if test x$gas = xyes -a x$stabs = xyes
1132 tm_file=i386/iscdbx.h
1133 tmake_file=i386/t-svr3dbx
1134 extra_parts="svr3.ifile svr3z.ifile"
1136 tm_file=i386/isccoff.h
1137 tmake_file=i386/t-crtstuff
1138 extra_parts="crtbegin.o crtend.o"
1140 install_headers_dir=install-headers-cpio
1143 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1144 changequote([,])dnl # with a.out format using
1146 xmake_file=x-linux-aout
1147 tmake_file="t-linux-aout i386/t-crtstuff"
1148 tm_file=i386/linux-oldld.h
1149 fixincludes=Makefile.in #On Linux, the headers are ok already.
1154 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1155 changequote([,])dnl # with a.out format
1156 xmake_file=x-linux-aout
1157 tmake_file="t-linux-aout i386/t-crtstuff"
1158 tm_file=i386/linux-aout.h
1159 fixincludes=Makefile.in #On Linux, the headers are ok already.
1164 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1165 changequote([,])dnl # with ELF format using the
1166 # GNU/Linux C library 5
1168 tm_file=i386/linux.h
1169 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1170 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1171 fixincludes=Makefile.in #On Linux, the headers are ok already.
1174 if test x$enable_threads = xyes; then
1175 thread_file='single'
1179 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1180 changequote([,])dnl # with ELF format using glibc 2
1181 # aka GNU/Linux C library 6
1183 tm_file=i386/linux.h
1184 tmake_file="t-linux i386/t-crtstuff"
1185 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1186 fixincludes=Makefile.in #On Linux, the headers are ok already.
1189 if test x$enable_threads = xyes; then
1198 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1200 xm_file=i386/xm-go32.h
1202 tmake_file=i386/t-go32
1205 i[34567]86-pc-msdosdjgpp*)
1207 xm_file=i386/xm-go32.h
1209 tmake_file=i386/t-go32
1220 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1223 tmake_file=t-libc-ok
1224 fixincludes=Makefile.in
1229 i[34567]86-*-lynxos*)
1231 if test x$gas = xyes
1235 tm_file=i386/lynx-ng.h
1237 xm_file=i386/xm-lynx.h
1238 tmake_file=i386/t-i386bare
1245 # tmake_file=t-libc-ok
1249 i[34567]86-*-osfrose*) # 386 using OSF/rose
1251 if test x$elf = xyes
1253 tm_file=i386/osfelf.h
1256 tm_file=i386/osfrose.h
1259 xm_file="i386/xm-osf.h ${xm_file}"
1260 xmake_file=i386/x-osfrose
1261 tmake_file=i386/t-osf
1262 extra_objs=halfpic.o
1265 i[34567]86-go32-rtems*)
1268 xm_file=i386/xm-go32.h
1269 tm_file=i386/go32-rtems.h
1270 tmake_file="i386/t-go32 t-rtems"
1273 i[34567]86-*-rtemself*)
1276 tm_file=i386/rtemself.h
1277 tmake_file="i386/t-i386bare t-rtems"
1280 i[34567]86-*-rtems*)
1283 tm_file=i386/rtems.h
1284 tmake_file="i386/t-i386bare t-rtems"
1287 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1289 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1290 xm_defines="USG SVR3"
1291 xmake_file=i386/x-sco5
1292 fixincludes=fixinc.sco
1293 install_headers_dir=install-headers-cpio
1295 if test x$gas = xyes
1297 tm_file="i386/sco5gas.h ${tm_file}"
1298 tmake_file=i386/t-sco5gas
1300 tmake_file=i386/t-sco5
1302 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
1305 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1307 xm_file="${xm_file} i386/xm-sco.h"
1308 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1309 xmake_file=i386/x-sco4
1310 fixincludes=fixinc.sco
1311 install_headers_dir=install-headers-cpio
1312 if test x$stabs = xyes
1314 tm_file=i386/sco4dbx.h
1315 tmake_file=i386/t-svr3dbx
1316 extra_parts="svr3.ifile svr3z.rfile"
1319 tmake_file=i386/t-crtstuff
1320 extra_parts="crtbegin.o crtend.o"
1325 i[34567]86-*-sco*) # 80386 running SCO system
1327 xm_file=i386/xm-sco.h
1328 xmake_file=i386/x-sco
1329 install_headers_dir=install-headers-cpio
1330 if test x$stabs = xyes
1332 tm_file=i386/scodbx.h
1333 tmake_file=i386/t-svr3dbx
1334 extra_parts="svr3.ifile svr3z.rfile"
1337 extra_parts="crtbegin.o crtend.o"
1338 tmake_file=i386/t-crtstuff
1343 i[34567]86-*-solaris2*)
1345 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1346 xm_defines="USG POSIX SMALL_ARG_MAX"
1347 if test x$stabs = xyes
1349 tm_file=i386/sol2dbg.h
1353 tmake_file=i386/t-sol2
1354 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1360 fixincludes=fixinc.svr4;;
1362 fixincludes=fixinc.wrap;;
1364 if test x$enable_threads = xyes; then
1365 thread_file='solaris'
1369 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1371 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1372 xm_defines="USG POSIX"
1373 tm_file=i386/sysv4.h
1374 if test x$stabs = xyes
1376 tm_file="${tm_file} dbx.h"
1378 tmake_file=i386/t-crtpic
1380 extra_parts="crtbegin.o crtend.o"
1381 fixincludes=fixinc.svr4
1384 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1386 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1387 xm_defines="USG POSIX SMALL_ARG_MAX"
1388 tm_file=i386/sysv4.h
1389 if test x$stabs = xyes
1391 tm_file="${tm_file} dbx.h"
1393 tmake_file=i386/t-crtpic
1395 extra_parts="crtbegin.o crtend.o"
1398 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1400 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1401 xm_defines="USG POSIX"
1403 tmake_file="i386/t-crtpic i386/t-udk"
1405 extra_parts="crtbegin.o crtend.o"
1406 fixincludes="fixinc.svr4"
1409 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1412 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1413 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1414 fixincludes=Makefile.in #Don't do it on OSF/1
1415 if test x$stabs = xyes
1417 tm_file=i386/osf1elfgdb.h
1419 tm_file=i386/osf1elf.h
1421 tmake_file=i386/t-osf1elf
1422 xmake_file=i386/x-osf1elf
1423 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1426 i[34567]86-*-sysv*) # Intel 80386's running system V
1428 xm_defines="USG SVR3"
1429 xmake_file=i386/x-sysv3
1430 if test x$gas = xyes
1432 if test x$stabs = xyes
1434 tm_file=i386/svr3dbx.h
1435 tmake_file=i386/t-svr3dbx
1436 extra_parts="svr3.ifile svr3z.rfile"
1438 tm_file=i386/svr3gas.h
1439 extra_parts="crtbegin.o crtend.o"
1440 tmake_file=i386/t-crtstuff
1443 tm_file=i386/sysv3.h
1444 extra_parts="crtbegin.o crtend.o"
1445 tmake_file=i386/t-crtstuff
1448 i386-*-vsta) # Intel 80386's running VSTa kernel
1449 xm_file="${xm_file} i386/xm-vsta.h"
1451 tmake_file=i386/t-vsta
1452 xmake_file=i386/x-vsta
1457 xm_file="${xm_file} i386/xm-cygwin.h"
1458 tmake_file=i386/t-cygwin
1459 tm_file=i386/win32.h
1460 xmake_file=i386/x-cygwin
1462 fixincludes=Makefile.in
1463 if test x$enable_threads = xyes; then
1469 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1471 xm_file="${xm_file} i386/xm-cygwin.h"
1472 tmake_file=i386/t-cygwin
1473 tm_file=i386/cygwin.h
1474 xmake_file=i386/x-cygwin
1476 fixincludes=Makefile.in
1477 if test x$enable_threads = xyes; then
1483 i[34567]86-*-mingw32*)
1485 tm_file=i386/mingw32.h
1486 xm_file="${xm_file} i386/xm-mingw32.h"
1487 tmake_file="i386/t-cygwin i386/t-mingw32"
1489 xmake_file=i386/x-cygwin
1490 fixincludes=Makefile.in
1491 if test x$enable_threads = xyes; then
1498 *minwg32crt* | *mingw32*)
1499 tm_file="${tm_file} i386/crtdll.h"
1504 i[34567]86-*-winnt3*)
1506 tm_file=i386/win-nt.h
1507 out_file=i386/i386.c
1508 xm_file="xm-winnt.h ${xm_file}"
1509 xmake_file=winnt/x-winnt
1510 tmake_file=i386/t-winnt
1511 extra_host_objs="winnt.o oldnames.o"
1512 extra_gcc_objs="spawnv.o oldnames.o"
1513 fixincludes=fixinc.winnt
1514 if test x$gnu_ld != xyes
1516 extra_programs=ld.exe
1518 if test x$enable_threads = xyes; then
1523 i[34567]86-dg-dgux*)
1525 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1526 xm_defines="USG POSIX"
1527 out_file=i386/dgux.c
1529 tmake_file=i386/t-dgux
1530 xmake_file=i386/x-dgux
1531 fixincludes=fixinc.dgux
1532 install_headers_dir=install-headers-cpio
1534 i860-alliant-*) # Alliant FX/2800
1535 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1536 xm_file="${xm_file}"
1537 xmake_file=i860/x-fx2800
1538 tmake_file=i860/t-fx2800
1539 extra_parts="crtbegin.o crtend.o"
1542 tm_file="${tm_file} i860/bsd.h"
1543 if test x$gas = xyes
1545 tm_file="${tm_file} i860/bsd-gas.h"
1550 tm_file="${tm_file} i860/mach.h"
1551 tmake_file=t-libc-ok
1553 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1554 tm_file="${tm_file} svr3.h i860/paragon.h"
1555 xm_defines="USG SVR3"
1559 tm_file="${tm_file} svr3.h i860/sysv3.h"
1560 xm_defines="USG SVR3"
1561 xmake_file=i860/x-sysv3
1562 extra_parts="crtbegin.o crtend.o"
1565 tm_file="${tm_file} svr4.h i860/sysv4.h"
1566 xm_defines="USG SVR3"
1567 xmake_file=i860/x-sysv4
1569 extra_parts="crtbegin.o crtend.o"
1571 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1572 tm_file="${tm_file} i960/vx960.h"
1573 tmake_file=i960/t-vxworks960
1575 thread_file='vxworks'
1577 i960-wrs-vxworks5* | i960-wrs-vxworks)
1578 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1579 tmake_file=i960/t-vxworks960
1581 thread_file='vxworks'
1584 tm_file="${tm_file} i960/vx960.h"
1585 tmake_file=i960/t-vxworks960
1587 thread_file='vxworks'
1590 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1591 tmake_file=i960/t-960bare
1595 tmake_file="i960/t-960bare t-rtems"
1596 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1599 i960-*-*) # Default i960 environment.
1603 extra_parts="crtinit.o crtfini.o"
1605 m68000-convergent-sysv*)
1607 xm_file="m68k/xm-3b1.h ${xm_file}"
1610 extra_headers=math-68881.h
1612 m68000-hp-bsd*) # HP 9000/200 running BSD
1613 tm_file=m68k/hp2bsd.h
1614 xmake_file=m68k/x-hp2bsd
1616 extra_headers=math-68881.h
1618 m68000-hp-hpux*) # HP 9000 series 300
1619 xm_file="xm_alloca.h ${xm_file}"
1620 xm_defines="USG NO_SYS_SIGLIST"
1621 if test x$gas = xyes
1623 xmake_file=m68k/x-hp320g
1624 tm_file=m68k/hp310g.h
1626 xmake_file=m68k/x-hp320
1627 tm_file=m68k/hp310.h
1629 install_headers_dir=install-headers-cpio
1631 extra_headers=math-68881.h
1636 extra_headers=math-68881.h
1639 tm_file=m68k/sun2o4.h
1641 extra_headers=math-68881.h
1644 xm_file="m68k/xm-3b1.h ${xm_file}"
1646 if test x$gas = xyes
1653 extra_headers=math-68881.h
1655 m68k-apple-aux*) # Apple Macintosh running A/UX
1656 xm_defines="USG AUX"
1657 tmake_file=m68k/t-aux
1658 install_headers_dir=install-headers-cpio
1659 extra_headers=math-68881.h
1660 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1662 if test "$gnu_ld" = yes
1664 tm_file="${tm_file} m68k/auxgld.h"
1666 tm_file="${tm_file} m68k/auxld.h"
1668 if test "$gas" = yes
1670 tm_file="${tm_file} m68k/auxgas.h"
1672 tm_file="${tm_file} m68k/auxas.h"
1674 tm_file="${tm_file} m68k/a-ux.h"
1678 tm_file=m68k/apollo68.h
1679 xmake_file=m68k/x-apollo68
1681 extra_headers=math-68881.h
1684 m68k-altos-sysv*) # Altos 3068
1685 if test x$gas = xyes
1687 tm_file=m68k/altos3068.h
1690 echo "The Altos is supported only with the GNU assembler" 1>&2
1693 extra_headers=math-68881.h
1695 m68k-bull-sysv*) # Bull DPX/2
1696 if test x$gas = xyes
1698 if test x$stabs = xyes
1700 tm_file=m68k/dpx2cdbx.h
1702 tm_file=m68k/dpx2g.h
1707 xm_file="xm-alloca.h ${xm_file}"
1709 xmake_file=m68k/x-dpx2
1711 extra_headers=math-68881.h
1713 m68k-atari-sysv4*) # Atari variant of V.4.
1714 tm_file=m68k/atari.h
1715 xm_file="xm-alloca.h ${xm_file}"
1716 xm_defines="USG FULL_PROTOTYPES"
1718 extra_parts="crtbegin.o crtend.o"
1719 extra_headers=math-68881.h
1722 m68k-motorola-sysv*)
1723 tm_file=m68k/mot3300.h
1724 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1725 xm_defines=NO_SYS_SIGLIST
1726 if test x$gas = xyes
1728 xmake_file=m68k/x-mot3300-gas
1729 if test x$gnu_ld = xyes
1731 tmake_file=m68k/t-mot3300-gald
1733 tmake_file=m68k/t-mot3300-gas
1737 xmake_file=m68k/x-mot3300
1738 if test x$gnu_ld = xyes
1740 tmake_file=m68k/t-mot3300-gld
1742 tmake_file=m68k/t-mot3300
1746 gdb_needs_out_file_path=yes
1747 extra_parts="crt0.o mcrt0.o"
1748 extra_headers=math-68881.h
1751 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1752 tm_file=m68k/tower-as.h
1753 xm_defines="USG SVR3"
1754 xmake_file=m68k/x-tower
1755 extra_parts="crtbegin.o crtend.o"
1756 extra_headers=math-68881.h
1759 tm_file=m68k/plexus.h
1760 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1763 extra_headers=math-68881.h
1767 xm_file="xm-alloca.h ${xm_file}"
1769 extra_headers=math-68881.h
1772 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1773 xm_defines="USG unos"
1774 xmake_file=m68k/x-crds
1777 extra_headers=math-68881.h
1779 m68k-cbm-sysv4*) # Commodore variant of V.4.
1781 xm_file="xm-alloca.h ${xm_file}"
1782 xm_defines="USG FULL_PROTOTYPES"
1783 xmake_file=m68k/x-amix
1785 extra_parts="crtbegin.o crtend.o"
1786 extra_headers=math-68881.h
1790 tm_file=m68k/ccur-GAS.h
1791 xmake_file=m68k/x-ccur
1792 extra_headers=math-68881.h
1796 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1797 tm_file=m68k/hp3bsd44.h
1798 xmake_file=m68k/x-hp3bsd44
1800 extra_headers=math-68881.h
1803 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1804 tm_file=m68k/hp3bsd.h
1806 extra_headers=math-68881.h
1810 if test x$with_fp = xno
1812 tm_file=m68k/isi-nfp.h
1818 extra_headers=math-68881.h
1820 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1821 xm_file="xm_alloca.h ${xm_file}"
1822 xm_defines="USG NO_SYS_SIGLIST"
1823 if test x$gas = xyes
1825 xmake_file=m68k/x-hp320g
1826 tm_file=m68k/hp320g.h
1828 xmake_file=m68k/x-hp320
1829 tm_file=m68k/hpux7.h
1831 install_headers_dir=install-headers-cpio
1833 extra_headers=math-68881.h
1836 m68k-hp-hpux*) # HP 9000 series 300
1837 xm_file="xm_alloca.h ${xm_file}"
1838 xm_defines="USG NO_SYS_SIGLIST"
1839 if test x$gas = xyes
1841 xmake_file=m68k/x-hp320g
1842 tm_file=m68k/hp320g.h
1844 xmake_file=m68k/x-hp320
1845 tm_file=m68k/hp320.h
1847 install_headers_dir=install-headers-cpio
1849 extra_headers=math-68881.h
1853 tm_file=m68k/sun3mach.h
1855 extra_headers=math-68881.h
1859 if test x$gas = xyes
1861 tm_file=m68k/news3gas.h
1863 tm_file=m68k/news3.h
1866 extra_headers=math-68881.h
1869 m68k-sony-bsd* | m68k-sony-newsos*)
1870 if test x$gas = xyes
1872 tm_file=m68k/newsgas.h
1877 extra_headers=math-68881.h
1880 m68k-next-nextstep2*)
1881 tm_file=m68k/next21.h
1882 xm_file="m68k/xm-next.h ${xm_file}"
1883 tmake_file=m68k/t-next
1884 xmake_file=m68k/x-next
1885 extra_objs=nextstep.o
1886 extra_headers=math-68881.h
1890 m68k-next-nextstep3*)
1892 xm_file="m68k/xm-next.h ${xm_file}"
1893 tmake_file=m68k/t-next
1894 xmake_file=m68k/x-next
1895 extra_objs=nextstep.o
1896 extra_parts="crtbegin.o crtend.o"
1897 extra_headers=math-68881.h
1899 if test x$enable_threads = xyes; then
1904 if test x$with_fp = xno
1906 tm_file=m68k/sun3n3.h
1908 tm_file=m68k/sun3o3.h
1912 extra_headers=math-68881.h
1914 m68k-sun-sunos*) # For SunOS 4 (the default).
1915 if test x$with_fp = xno
1917 tm_file=m68k/sun3n.h
1923 extra_headers=math-68881.h
1926 tm_file=m68k/vxm68k.h
1927 tmake_file=m68k/t-vxworks68
1928 extra_headers=math-68881.h
1929 thread_file='vxworks'
1933 tmake_file=m68k/t-m68kbare
1934 tm_file="m68k/m68k-aout.h libgloss.h"
1935 extra_headers=math-68881.h
1939 tmake_file=m68k/t-m68kbare
1940 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
1941 extra_headers=math-68881.h
1944 m68020-*-elf* | m68k-*-elf*)
1945 tm_file="m68k/m68020-elf.h libgloss.h"
1946 xm_file=m68k/xm-m68kv.h
1947 tmake_file=m68k/t-m68kelf
1948 header_files=math-68881.h
1951 if test x$gas = xyes
1955 tm_file=m68k/lynx-ng.h
1957 xm_file=m68k/xm-lynx.h
1959 tmake_file=m68k/t-lynx
1960 extra_headers=math-68881.h
1964 tm_file=m68k/netbsd.h
1965 # On NetBSD, the headers are already okay, except for math.h.
1966 fixincludes=fixinc.wrap
1970 m68k-*-sysv3*) # Motorola m68k's running system V.3
1971 xm_file="xm-alloca.h ${xm_file}"
1973 xmake_file=m68k/x-m68kv
1974 extra_parts="crtbegin.o crtend.o"
1975 extra_headers=math-68881.h
1978 m68k-*-sysv4*) # Motorola m68k's running system V.4
1979 tm_file=m68k/m68kv4.h
1980 xm_file="xm-alloca.h ${xm_file}"
1983 extra_parts="crtbegin.o crtend.o"
1984 extra_headers=math-68881.h
1987 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
1990 tm_file=m68k/linux-aout.h
1991 tmake_file="t-linux-aout m68k/t-linux-aout"
1992 fixincludes=Makefile.in # The headers are ok already.
1993 extra_headers=math-68881.h
1997 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
1998 # with ELF format using the
1999 # GNU/Linux C library 5
2001 tm_file=m68k/linux.h
2002 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2003 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2004 fixincludes=Makefile.in # The headers are ok already.
2005 extra_headers=math-68881.h
2009 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2010 # with ELF format using glibc 2
2011 # aka the GNU/Linux C library 6.
2013 tm_file=m68k/linux.h
2014 tmake_file="t-linux m68k/t-linux"
2015 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2016 fixincludes=Makefile.in # The headers are ok already.
2017 extra_headers=math-68881.h
2020 if test x$enable_threads = xyes; then
2025 tmake_file=m68k/t-m68kbare
2026 tm_file=m68k/m68k-psos.h
2027 extra_headers=math-68881.h
2031 tmake_file="m68k/t-m68kbare t-rtems"
2032 tm_file=m68k/rtems.h
2033 extra_headers=math-68881.h
2040 tm_file=m88k/dguxbcs.h
2041 tmake_file=m88k/t-dguxbcs
2045 tmake_file=m88k/t-dgux
2048 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2049 xmake_file=m88k/x-dgux
2050 if test x$gas = xyes
2052 tmake_file=m88k/t-dgux-gas
2054 fixincludes=fixinc.dgux
2056 m88k-dolphin-sysv3*)
2057 tm_file=m88k/dolph.h
2058 extra_parts="crtbegin.o crtend.o"
2059 xm_file="m88k/xm-sysv3.h ${xm_file}"
2060 xmake_file=m88k/x-dolph
2061 if test x$gas = xyes
2063 tmake_file=m88k/t-m88k-gas
2066 m88k-tektronix-sysv3)
2067 tm_file=m88k/tekXD88.h
2068 extra_parts="crtbegin.o crtend.o"
2069 xm_file="m88k/xm-sysv3.h ${xm_file}"
2070 xmake_file=m88k/x-tekXD88
2071 if test x$gas = xyes
2073 tmake_file=m88k/t-m88k-gas
2077 tm_file=m88k/m88k-aout.h
2080 tm_file=m88k/m88k-coff.h
2081 tmake_file=m88k/t-bug
2085 extra_parts="crtbegin.o crtend.o"
2086 if test x$gas = xyes
2088 tmake_file=m88k/t-luna-gas
2090 tmake_file=m88k/t-luna
2094 tm_file=m88k/sysv3.h
2095 extra_parts="crtbegin.o crtend.o"
2096 xm_file="m88k/xm-sysv3.h ${xm_file}"
2097 xmake_file=m88k/x-sysv3
2098 if test x$gas = xyes
2100 tmake_file=m88k/t-m88k-gas
2104 tm_file=m88k/sysv4.h
2105 extra_parts="crtbegin.o crtend.o"
2106 xmake_file=m88k/x-sysv4
2107 tmake_file=m88k/t-sysv4
2109 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2110 tm_file=mips/iris6.h
2111 xm_file=mips/xm-iris6.h
2112 fixincludes=fixinc.irix
2113 xmake_file=mips/x-iris6
2114 tmake_file=mips/t-iris6
2115 # if test x$enable_threads = xyes; then
2116 # thread_file='irix'
2120 tm_file="mips/elf.h libgloss.h"
2121 tmake_file=mips/t-ecoff
2124 extra_parts="crtbegin.o crtend.o"
2125 # thread_file='vxworks'
2127 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2128 tm_file="mips/iris6.h mips/cross64.h"
2130 xm_file="mips/xm-iris5.h"
2131 fixincludes=Makefile.in
2132 xmake_file=mips/x-iris
2133 tmake_file=mips/t-cross64
2134 # See comment in mips/iris[56].h files.
2136 # if test x$enable_threads = xyes; then
2137 # thread_file='irix'
2141 if test x$gas = xyes
2143 if test x$stabs = xyes
2145 tm_file=mips/iris5gdb.h
2147 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2150 tm_file=mips/sni-svr4.h
2153 xmake_file=mips/x-sni-svr4
2154 tmake_file=mips/t-mips-gas
2155 if test x$gnu_ld != xyes
2160 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2161 if test x$gas = xyes
2163 tm_file="mips/iris5.h mips/iris5gas.h"
2164 if test x$stabs = xyes
2166 tm_file="${tm_file} dbx.h"
2169 tm_file=mips/iris5.h
2172 xm_file="mips/xm-iris5.h"
2173 fixincludes=fixinc.irix
2174 xmake_file=mips/x-iris
2175 # mips-tfile doesn't work yet
2176 tmake_file=mips/t-mips-gas
2177 # See comment in mips/iris5.h file.
2179 # if test x$enable_threads = xyes; then
2180 # thread_file='irix'
2183 mips-sgi-irix4loser*) # Mostly like a MIPS.
2184 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2185 if test x$stabs = xyes; then
2186 tm_file="${tm_file} dbx.h"
2189 xmake_file=mips/x-iris
2190 if test x$gas = xyes
2192 tmake_file=mips/t-mips-gas
2194 extra_passes="mips-tfile mips-tdump"
2196 if test x$gnu_ld != xyes
2200 # if test x$enable_threads = xyes; then
2201 # thread_file='irix'
2204 mips-sgi-irix4*) # Mostly like a MIPS.
2205 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2206 if test x$stabs = xyes; then
2207 tm_file="${tm_file} dbx.h"
2210 xmake_file=mips/x-iris
2211 if test x$gas = xyes
2213 tmake_file=mips/t-mips-gas
2215 extra_passes="mips-tfile mips-tdump"
2217 if test x$gnu_ld != xyes
2221 # if test x$enable_threads = xyes; then
2222 # thread_file='irix'
2225 mips-sgi-*) # Mostly like a MIPS.
2226 tm_file="mips/iris3.h ${tm_file}"
2227 if test x$stabs = xyes; then
2228 tm_file="${tm_file} dbx.h"
2231 xmake_file=mips/x-iris3
2232 if test x$gas = xyes
2234 tmake_file=mips/t-mips-gas
2236 extra_passes="mips-tfile mips-tdump"
2238 if test x$gnu_ld != xyes
2243 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2244 tm_file="mips/osfrose.h ${tm_file}"
2245 xmake_file=mips/x-osfrose
2246 tmake_file=mips/t-osfrose
2247 extra_objs=halfpic.o
2250 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2251 tm_file=mips/dec-osf1.h
2252 if test x$stabs = xyes; then
2253 tm_file="${tm_file} dbx.h"
2255 xmake_file=mips/x-dec-osf1
2256 if test x$gas = xyes
2258 tmake_file=mips/t-mips-gas
2260 tmake_file=mips/t-ultrix
2261 extra_passes="mips-tfile mips-tdump"
2263 if test x$gnu_ld != xyes
2268 mips-dec-bsd*) # Decstation running 4.4 BSD
2269 tm_file=mips/dec-bsd.h
2271 if test x$gas = xyes
2273 tmake_file=mips/t-mips-gas
2275 tmake_file=mips/t-ultrix
2276 extra_passes="mips-tfile mips-tdump"
2278 if test x$gnu_ld != xyes
2283 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2284 tm_file=mips/netbsd.h
2285 # On NetBSD, the headers are already okay, except for math.h.
2286 fixincludes=fixinc.wrap
2289 mips*-*-linux*) # Linux MIPS, either endian.
2291 xm_file="xm-siglist.h ${xm_file}"
2293 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2294 *) tm_file="mips/elf.h mips/linux.h" ;;
2296 extra_parts="crtbegin.o crtend.o"
2299 fixincludes=Makefile.in
2301 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2302 tm_file="mips/news4.h ${tm_file}"
2303 if test x$stabs = xyes; then
2304 tm_file="${tm_file} dbx.h"
2306 if test x$gas = xyes
2308 tmake_file=mips/t-mips-gas
2310 extra_passes="mips-tfile mips-tdump"
2312 if test x$gnu_ld != xyes
2316 xmake_file=mips/x-sony
2318 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2319 # That is based on svr4.
2320 # t-svr4 is not right because this system doesn't use ELF.
2321 tm_file="mips/news5.h ${tm_file}"
2322 if test x$stabs = xyes; then
2323 tm_file="${tm_file} dbx.h"
2325 xm_file="xm-siglist.h ${xm_file}"
2327 if test x$gas = xyes
2329 tmake_file=mips/t-mips-gas
2331 extra_passes="mips-tfile mips-tdump"
2333 if test x$gnu_ld != xyes
2338 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2339 tm_file="mips/svr4-5.h mips/svr4-t.h"
2340 if test x$stabs = xyes; then
2341 tm_file="${tm_file} dbx.h"
2343 xm_file="xm-siglist.h ${xm_file}"
2345 xmake_file=mips/x-sysv
2346 if test x$gas = xyes
2348 tmake_file=mips/t-mips-gas
2349 extra_parts="crtbegin.o crtend.o"
2351 tmake_file=mips/t-mips
2352 extra_passes="mips-tfile mips-tdump"
2354 if test x$gnu_ld != xyes
2359 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2360 tm_file="mips/ultrix.h ${tm_file}"
2361 if test x$stabs = xyes; then
2362 tm_file="${tm_file} dbx.h"
2364 xmake_file=mips/x-ultrix
2365 if test x$gas = xyes
2367 tmake_file=mips/t-mips-gas
2369 tmake_file=mips/t-ultrix
2370 extra_passes="mips-tfile mips-tdump"
2372 if test x$gnu_ld != xyes
2378 mips-*-riscos[56789]bsd*)
2380 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2381 if test x$stabs = xyes; then
2382 tm_file="${tm_file} dbx.h"
2384 if test x$gas = xyes
2386 tmake_file=mips/t-bsd-gas
2388 tmake_file=mips/t-bsd
2389 extra_passes="mips-tfile mips-tdump"
2391 if test x$gnu_ld != xyes
2397 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2399 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2400 if test x$stabs = xyes; then
2401 tm_file="${tm_file} dbx.h"
2403 if test x$gas = xyes
2405 tmake_file=mips/t-bsd-gas
2407 tmake_file=mips/t-bsd
2408 extra_passes="mips-tfile mips-tdump"
2410 if test x$gnu_ld != xyes
2416 mips-*-riscos[56789]sysv4*)
2418 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2419 if test x$stabs = xyes; then
2420 tm_file="${tm_file} dbx.h"
2422 xm_file="xm-siglist.h ${xm_file}"
2423 xmake_file=mips/x-sysv
2424 if test x$gas = xyes
2426 tmake_file=mips/t-svr4-gas
2428 tmake_file=mips/t-svr4
2429 extra_passes="mips-tfile mips-tdump"
2431 if test x$gnu_ld != xyes
2437 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2439 tm_file="mips/svr4-4.h ${tm_file}"
2440 if test x$stabs = xyes; then
2441 tm_file="${tm_file} dbx.h"
2444 xmake_file=mips/x-sysv
2445 if test x$gas = xyes
2447 tmake_file=mips/t-svr4-gas
2449 tmake_file=mips/t-svr4
2450 extra_passes="mips-tfile mips-tdump"
2452 if test x$gnu_ld != xyes
2458 mips-*-riscos[56789]sysv*)
2460 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2461 if test x$stabs = xyes; then
2462 tm_file="${tm_file} dbx.h"
2465 xmake_file=mips/x-sysv
2466 if test x$gas = xyes
2468 tmake_file=mips/t-svr3-gas
2470 tmake_file=mips/t-svr3
2471 extra_passes="mips-tfile mips-tdump"
2473 if test x$gnu_ld != xyes
2478 mips-*-sysv* | mips-*-riscos*sysv*)
2479 tm_file="mips/svr3-4.h ${tm_file}"
2480 if test x$stabs = xyes; then
2481 tm_file="${tm_file} dbx.h"
2484 xmake_file=mips/x-sysv
2485 if test x$gas = xyes
2487 tmake_file=mips/t-svr3-gas
2489 tmake_file=mips/t-svr3
2490 extra_passes="mips-tfile mips-tdump"
2492 if test x$gnu_ld != xyes
2498 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2500 tm_file=mips/mips-5.h
2501 if test x$stabs = xyes; then
2502 tm_file="${tm_file} dbx.h"
2504 if test x$gas = xyes
2506 tmake_file=mips/t-mips-gas
2508 extra_passes="mips-tfile mips-tdump"
2510 if test x$gnu_ld != xyes
2518 tm_file=mips/ecoffl.h
2519 if test x$stabs = xyes; then
2520 tm_file="${tm_file} dbx.h"
2522 tmake_file=mips/t-ecoff
2525 tm_file="gofast.h mips/ecoff.h"
2526 if test x$stabs = xyes; then
2527 tm_file="${tm_file} dbx.h"
2529 tmake_file=mips/t-ecoff
2532 tm_file="mips/elfl.h libgloss.h"
2533 tmake_file=mips/t-ecoff
2536 tm_file="mips/elf.h libgloss.h"
2537 tmake_file=mips/t-ecoff
2540 tm_file="mips/elfl64.h libgloss.h"
2541 tmake_file=mips/t-ecoff
2543 mips64orionel-*-elf*)
2544 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2545 tmake_file=mips/t-ecoff
2548 tm_file="mips/elf64.h libgloss.h"
2549 tmake_file=mips/t-ecoff
2552 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2553 tmake_file=mips/t-ecoff
2555 mips64orion-*-rtems*)
2556 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2557 tmake_file="mips/t-ecoff t-rtems"
2560 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2561 tmake_file=mips/t-r3900
2564 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2565 tmake_file=mips/t-r3900
2566 # FIXME mips-elf should be fixed to use crtstuff.
2569 mips-*-*) # Default MIPS RISC-OS 4.0.
2570 if test x$stabs = xyes; then
2571 tm_file="${tm_file} dbx.h"
2573 if test x$gas = xyes
2575 tmake_file=mips/t-mips-gas
2577 extra_passes="mips-tfile mips-tdump"
2579 if test x$gnu_ld != xyes
2586 tm_file="mn10200/mn10200.h"
2587 if test x$stabs = xyes
2589 tm_file="${tm_file} dbx.h"
2595 tm_file="mn10300/mn10300.h"
2596 if test x$stabs = xyes
2598 tm_file="${tm_file} dbx.h"
2603 tm_file=ns32k/encore.h
2607 tm_file=ns32k/sequent.h
2611 tm_file=ns32k/tek6100.h
2615 tm_file=ns32k/tek6200.h
2618 # This has not been updated to GCC 2.
2621 # xmake_file=ns32k/x-genix
2622 # tm_file=ns32k/genix.h
2626 tm_file=ns32k/merlin.h
2630 tm_file=ns32k/pc532-mach.h
2634 tm_file=ns32k/pc532-min.h
2635 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2640 tm_file=ns32k/netbsd.h
2641 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2642 # On NetBSD, the headers are already okay, except for math.h.
2643 fixincludes=fixinc.wrap
2647 tm_file="${tm_file} pdp11/2bsd.h"
2653 xmake_file=pyr/x-pyr
2660 xmake_file=romp/x-mach
2665 tm_file=rs6000/beos.h
2666 xm_file=rs6000/xm-beos.h
2667 tmake_file=rs6000/t-beos
2668 xmake_file=rs6000/x-beos
2670 powerpc-*-sysv* | powerpc-*-elf*)
2671 tm_file=rs6000/sysv4.h
2672 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2673 xm_defines="USG POSIX"
2674 extra_headers=ppc-asm.h
2675 if test x$gas = xyes
2677 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2679 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2681 xmake_file=rs6000/x-sysv4
2684 tm_file=rs6000/eabiaix.h
2685 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2686 fixincludes=Makefile.in
2687 extra_headers=ppc-asm.h
2690 tm_file=rs6000/eabisim.h
2691 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2692 fixincludes=Makefile.in
2693 extra_headers=ppc-asm.h
2696 tm_file=rs6000/eabi.h
2697 if test x$gas = xyes
2699 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2701 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2703 fixincludes=Makefile.in
2704 extra_headers=ppc-asm.h
2707 tm_file=rs6000/rtems.h
2708 if test x$gas = xyes
2710 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2712 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2714 fixincludes=Makefile.in
2715 extra_headers=ppc-asm.h
2717 powerpc-*-linux-gnulibc1)
2718 tm_file=rs6000/linux.h
2719 xm_file=rs6000/xm-sysv4.h
2720 out_file=rs6000/rs6000.c
2721 if test x$gas = xyes
2723 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2725 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2728 fixincludes=Makefile.in
2729 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2730 extra_headers=ppc-asm.h
2731 if test x$enable_threads = xyes; then
2735 powerpc-*-linux-gnu*)
2736 tm_file=rs6000/linux.h
2737 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2738 xm_defines="USG ${xm_defines}"
2739 out_file=rs6000/rs6000.c
2740 if test x$gas = xyes
2742 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2744 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2747 fixincludes=Makefile.in
2748 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2749 extra_headers=ppc-asm.h
2750 if test x$enable_threads = xyes; then
2754 powerpc-wrs-vxworks*)
2756 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2757 xm_defines="USG POSIX"
2758 tm_file=rs6000/vxppc.h
2759 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2760 extra_headers=ppc-asm.h
2761 thread_file='vxworks'
2763 powerpcle-*-sysv* | powerpcle-*-elf*)
2764 tm_file=rs6000/sysv4le.h
2765 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2766 xm_defines="USG POSIX"
2767 if test x$gas = xyes
2769 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2771 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2773 xmake_file=rs6000/x-sysv4
2774 extra_headers=ppc-asm.h
2776 powerpcle-*-eabisim*)
2777 tm_file=rs6000/eabilesim.h
2778 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2779 fixincludes=Makefile.in
2780 extra_headers=ppc-asm.h
2783 tm_file=rs6000/eabile.h
2784 if test x$gas = xyes
2786 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2788 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2790 fixincludes=Makefile.in
2791 extra_headers=ppc-asm.h
2793 powerpcle-*-winnt* )
2794 tm_file=rs6000/win-nt.h
2795 tmake_file=rs6000/t-winnt
2797 fixincludes=Makefile.in
2798 if test x$enable_threads = xyes; then
2801 extra_headers=ppc-asm.h
2803 powerpcle-*-pe | powerpcle-*-cygwin*)
2804 tm_file=rs6000/cygwin.h
2805 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2806 tmake_file=rs6000/t-winnt
2807 xmake_file=rs6000/x-cygwin
2809 fixincludes=Makefile.in
2810 if test x$enable_threads = xyes; then
2814 extra_headers=ppc-asm.h
2816 powerpcle-*-solaris2*)
2817 tm_file=rs6000/sol2.h
2818 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2819 xm_defines="USG POSIX"
2820 if test x$gas = xyes
2822 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2824 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2826 xmake_file=rs6000/x-sysv4
2831 fixincludes=fixinc.svr4;;
2833 fixincludes=fixinc.wrap;;
2835 extra_headers=ppc-asm.h
2838 rs6000-ibm-aix3.[01]*)
2840 tm_file=rs6000/aix31.h
2841 xmake_file=rs6000/x-aix31
2845 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2847 tm_file=rs6000/aix3newas.h
2848 if test x$host != x$target
2850 tmake_file=rs6000/t-xnewas
2852 tmake_file=rs6000/t-newas
2857 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2859 tm_file=rs6000/aix41.h
2860 if test x$host != x$target
2862 tmake_file=rs6000/t-xnewas
2864 tmake_file=rs6000/t-newas
2866 xmake_file=rs6000/x-aix41
2870 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2872 tm_file=rs6000/aix43.h
2873 if test x$host != x$target
2875 tmake_file=rs6000/t-xaix43
2877 tmake_file=rs6000/t-aix43
2879 xmake_file=rs6000/x-aix43
2883 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2885 tm_file=rs6000/aix43.h
2886 if test x$host != x$target
2888 tmake_file=rs6000/t-xaix43
2890 tmake_file=rs6000/t-aix43
2892 xmake_file=rs6000/x-aix43
2902 tm_file=rs6000/mach.h
2903 xm_file="${xm_file} rs6000/xm-mach.h"
2904 xmake_file=rs6000/x-mach
2908 tm_file=rs6000/lynx.h
2909 xm_file=rs6000/xm-lynx.h
2910 tmake_file=rs6000/t-rs6000
2911 xmake_file=rs6000/x-lynx
2919 tmake_file="sh/t-sh t-rtems"
2920 tm_file=sh/rtemself.h
2924 tmake_file="sh/t-sh t-rtems"
2933 xm_file="xm-alloca.h ${xm_file}"
2936 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
2937 tm_file=sparc/vxsparc.h
2938 tmake_file=sparc/t-vxsparc
2940 thread_file='vxworks'
2943 tmake_file=sparc/t-sparcbare
2944 tm_file="sparc/aout.h libgloss.h"
2947 tm_file=sparc/netbsd.h
2948 # On NetBSD, the headers are already okay, except for math.h.
2949 fixincludes=fixinc.wrap
2957 tmake_file=sparc/t-elf
2958 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
2962 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
2963 xm_file="${xm_file} sparc/xm-linux.h"
2964 tm_file=sparc/linux-aout.h
2966 fixincludes=Makefile.in #On Linux, the headers are ok already.
2969 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
2970 xm_file="${xm_file} sparc/xm-linux.h"
2972 tm_file=sparc/linux.h
2973 tmake_file="t-linux t-linux-gnulibc1"
2974 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2975 fixincludes=Makefile.in #On Linux, the headers are ok already.
2978 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
2979 xm_file="${xm_file} sparc/xm-linux.h"
2981 tm_file=sparc/linux.h
2982 tmake_file="t-linux"
2983 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2984 fixincludes=Makefile.in #On Linux, the headers are ok already.
2986 if test x$enable_threads = xyes; then
2991 if test x$gas = xyes
2993 tm_file=sparc/lynx.h
2995 tm_file=sparc/lynx-ng.h
2997 xm_file=sparc/xm-lynx.h
2998 tmake_file=sparc/t-sunos41
3002 tmake_file="sparc/t-sparcbare t-rtems"
3003 tm_file=sparc/rtems.h
3005 sparcv9-*-solaris2*)
3006 tm_file=sparc/sol2-sld-64.h
3007 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3008 xm_defines="USG POSIX"
3009 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3010 xmake_file=sparc/x-sysv4
3011 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3012 fixincludes=fixinc.wrap
3014 if test x${enable_threads} = x ; then
3015 enable_threads=$have_pthread_h
3016 if test x${enable_threads} = x ; then
3017 enable_threads=$have_thread_h
3020 if test x${enable_threads} = xyes ; then
3021 if test x${have_pthread_h} = xyes ; then
3024 thread_file='solaris'
3029 if test x$gnu_ld = xyes
3031 tm_file=sparc/sol2.h
3033 tm_file=sparc/sol2-sld.h
3035 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3036 xm_defines="USG POSIX"
3037 tmake_file=sparc/t-sol2
3038 xmake_file=sparc/x-sysv4
3039 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3044 fixincludes=fixinc.svr4;;
3046 fixincludes=fixinc.wrap;;
3049 if test x${enable_threads} = x; then
3050 enable_threads=$have_pthread_h
3051 if test x${enable_threads} = x; then
3052 enable_threads=$have_thread_h
3055 if test x${enable_threads} = xyes; then
3056 if test x${have_pthread_h} = xyes; then
3059 thread_file='solaris'
3064 tm_file=sparc/sunos4.h
3065 tmake_file=sparc/t-sunos40
3069 tm_file=sparc/sunos4.h
3070 tmake_file=sparc/t-sunos41
3072 if test x$gas = xyes; then
3073 tm_file="${tm_file} sparc/sun4gas.h"
3077 tm_file=sparc/sun4o3.h
3081 tm_file=sparc/sysv4.h
3082 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3083 xm_defines="USG POSIX"
3085 xmake_file=sparc/x-sysv4
3086 extra_parts="crtbegin.o crtend.o"
3089 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3090 xm_defines="USG POSIX"
3091 tm_file=sparc/vxsim.h
3092 tmake_file=sparc/t-vxsparc
3093 xmake_file=sparc/x-sysv4
3096 tm_file="sparc/splet.h libgloss.h"
3097 tmake_file=sparc/t-splet
3100 tm_file="sparc/litecoff.h libgloss.h"
3101 tmake_file=sparc/t-sparclite
3104 tm_file="sparc/lite.h aoutos.h libgloss.h"
3105 tmake_file=sparc/t-sparclite
3108 tmake_file=sparc/t-sp64
3109 tm_file=sparc/sp64-aout.h
3112 tmake_file=sparc/t-sp64
3113 tm_file=sparc/sp64-elf.h
3114 extra_parts="crtbegin.o crtend.o"
3116 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3117 tmake_file="t-linux sparc/t-linux64"
3118 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3119 tm_file=sparc/linux64.h
3121 fixincludes=Makefile.in # The headers are ok already.
3122 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3125 # This hasn't been upgraded to GCC 2.
3126 # tahoe-harris-*) # Harris tahoe, using COFF.
3127 # tm_file=tahoe/harris.h
3129 # tahoe-*-bsd*) # tahoe running BSD
3131 thumb-*-coff* | thumbel-*-coff*)
3133 out_file=arm/thumb.c
3134 xm_file=arm/xm-thumb.h
3135 md_file=arm/thumb.md
3136 tmake_file=arm/t-thumb
3137 fixincludes=Makefile.in # There is nothing to fix
3139 # This hasn't been upgraded to GCC 2.
3146 tm_file="v850/v850.h"
3147 xm_file="v850/xm-v850.h"
3148 tmake_file=v850/t-v850
3149 if test x$stabs = xyes
3151 tm_file="${tm_file} dbx.h"
3155 vax-*-bsd*) # vaxen running BSD
3159 vax-*-sysv*) # vaxen running system V
3160 tm_file="${tm_file} vax/vaxv.h"
3165 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3166 # On NetBSD, the headers are already okay, except for math.h.
3167 fixincludes=fixinc.wrap
3171 vax-*-ultrix*) # vaxen running ultrix
3172 tm_file="${tm_file} vax/ultrix.h"
3176 vax-*-vms*) # vaxen running VMS
3177 xm_file=vax/xm-vms.h
3181 vax-*-*) # vax default entry
3185 xm_file="${xm_file} xm-svr3"
3189 echo "Configuration $machine not supported" 1>&2
3196 ;; # Existing GNU/Linux systems do not use the GNU setup.
3198 # On the GNU system, the setup is just about the same on
3199 # each different CPU. The specific machines that GNU
3200 # supports are matched above and just set $cpu_type.
3201 xm_file="xm-gnu.h ${xm_file}"
3202 tm_file=${cpu_type}/gnu.h
3203 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3204 # GNU always uses ELF.
3206 # GNU tools are the only tools.
3209 # On GNU, the headers are already okay.
3210 fixincludes=Makefile.in
3211 xmake_file=x-linux # These details are the same as Linux.
3212 tmake_file=t-gnu # These are not.
3215 fixincludes=fixinc.svr4
3216 xmake_try_sysv=x-sysv
3217 install_headers_dir=install-headers-cpio
3220 install_headers_dir=install-headers-cpio
3224 # Distinguish i[34567]86
3225 # Also, do not run mips-tfile on MIPS if using gas.
3226 # Process --with-cpu= for PowerPC/rs6000
3227 target_cpu_default2=
3230 target_cpu_default2=1
3233 target_cpu_default2=2
3235 i686-*-* | i786-*-*)
3236 target_cpu_default2=3
3241 target_cpu_default2="MASK_CPU_EV6|MASK_BXW|MASK_CIX|MASK_MAX"
3244 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3247 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3250 target_cpu_default2="MASK_CPU_EV5"
3254 if test x$gas = xyes
3256 if test "$target_cpu_default2" = ""
3258 target_cpu_default2="MASK_GAS"
3260 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3265 case "x$with_cpu" in
3268 target_cpu_default2="TARGET_CPU_generic"
3271 # Distinguish cores, and major variants
3272 # arm7m doesn't exist, but D & I don't affect code
3273 xarm[23678] | xarm250 | xarm[67][01]0 \
3274 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3275 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3276 | xstrongarm | xstrongarm110)
3277 target_cpu_default2="TARGET_CPU_$with_cpu"
3281 echo "--with-cpu must be passed a value" 1>&2
3286 if test x$pass2done = xyes
3288 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3295 mips*-*-ecoff* | mips*-*-elf*)
3296 if test x$gas = xyes
3298 if test x$gnu_ld = xyes
3300 target_cpu_default2=20
3302 target_cpu_default2=16
3307 if test x$gas = xyes
3309 target_cpu_default2=16
3312 powerpc*-*-* | rs6000-*-*)
3313 case "x$with_cpu" in
3317 xcommon | xpower | xpower2 | xpowerpc | xrios \
3318 | xrios1 | xrios2 | xrsc | xrsc1 \
3319 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3320 | x403 | x505 | x801 | x821 | x823 | x860)
3321 target_cpu_default2="\"$with_cpu\""
3325 echo "--with-cpu must be passed a value" 1>&2
3330 if test x$pass2done = xyes
3332 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3339 case ".$with_cpu" in
3341 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3343 .supersparc | .ultrasparc | .v7 | .v8 | .v9)
3344 target_cpu_default2="TARGET_CPU_$with_cpu"
3347 if test x$pass2done = xyes
3349 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3357 if test "$target_cpu_default2" != ""
3359 if test "$target_cpu_default" != ""
3361 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3363 target_cpu_default=$target_cpu_default2
3367 # No need for collect2 if we have the GNU linker.
3368 # Actually, there is now; GNU ld doesn't handle the EH info or
3369 # collecting for shared libraries.
3376 # Save data on machine being used to compile GCC in build_xm_file.
3377 # Save data on host machine in vars host_xm_file and host_xmake_file.
3378 if test x$pass1done = x
3380 if test x"$xm_file" = x
3381 then build_xm_file=$cpu_type/xm-$cpu_type.h
3382 else build_xm_file=$xm_file
3384 build_xm_defines=$xm_defines
3385 build_install_headers_dir=$install_headers_dir
3386 build_exeext=$exeext
3389 if test x$pass2done = x
3391 if test x"$xm_file" = x
3392 then host_xm_file=$cpu_type/xm-$cpu_type.h
3393 else host_xm_file=$xm_file
3395 host_xm_defines=$xm_defines
3396 if test x"$xmake_file" = x
3397 then xmake_file=$cpu_type/x-$cpu_type
3399 host_xmake_file="$xmake_file"
3400 host_truncate_target=$truncate_target
3401 host_extra_gcc_objs=$extra_gcc_objs
3402 host_extra_objs=$extra_host_objs
3409 extra_objs="${host_extra_objs} ${extra_objs}"
3411 # Default the target-machine variables that were not explicitly set.
3412 if test x"$tm_file" = x
3413 then tm_file=$cpu_type/$cpu_type.h; fi
3415 if test x$extra_headers = x
3416 then extra_headers=; fi
3418 if test x"$xm_file" = x
3419 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3421 if test x$md_file = x
3422 then md_file=$cpu_type/$cpu_type.md; fi
3424 if test x$out_file = x
3425 then out_file=$cpu_type/$cpu_type.c; fi
3427 if test x"$tmake_file" = x
3428 then tmake_file=$cpu_type/t-$cpu_type
3431 if test x$float_format = x
3432 then float_format=i64
3435 if test x$enable_haifa = x
3438 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3443 # Say what files are being used for the output code and MD file.
3444 echo "Using \`$srcdir/config/$out_file' to output insns."
3445 echo "Using \`$srcdir/config/$md_file' as machine description file."
3448 for f in $tm_file; do
3451 if test $count = ax; then
3452 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3454 echo "Using the following target machine macro files:"
3455 for f in $tm_file; do
3456 echo " $srcdir/config/$f"
3461 for f in $host_xm_file; do
3464 if test $count = ax; then
3465 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3467 echo "Using the following host machine macro files:"
3468 for f in $host_xm_file; do
3469 echo " $srcdir/config/$f"
3473 if test "$host_xm_file" != "$build_xm_file"; then
3475 for f in $build_xm_file; do
3478 if test $count = ax; then
3479 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3481 echo "Using the following build machine macro files:"
3482 for f in $build_xm_file; do
3483 echo " $srcdir/config/$f"
3488 if test x$thread_file = x; then
3489 if test x$target_thread_file != x; then
3490 thread_file=$target_thread_file
3492 thread_file='single'
3496 # Set up the header files.
3497 # $links is the list of header files to create.
3498 # $vars is the list of shell variables with file names to include.
3499 # auto-host.h is the file containing items generated by autoconf and is
3500 # the first file included by config.h.
3502 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3504 # If host=build, it is correct to have hconfig include auto-host.h
3505 # as well. If host!=build, we are in error and need to do more
3506 # work to find out the build config parameters.
3507 if test x$host = x$build
3509 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3511 # We create a subdir, then run autoconf in the subdir.
3512 # To prevent recursion we set host and build for the new
3513 # invocation of configure to the build for this invocation
3520 /*) realsrcdir=${srcdir};;
3521 *) realsrcdir=../${srcdir};;
3523 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3524 --target=$target --host=$build --build=$build
3526 # We just finished tests for the build machine, so rename
3527 # the file auto-build.h in the gcc directory.
3528 mv auto-host.h ../auto-build.h
3531 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3534 xm_file="gansidecl.h ${xm_file}"
3535 tm_file="gansidecl.h ${tm_file}"
3537 vars="host_xm_file tm_file xm_file build_xm_file"
3538 links="config.h tm.h tconfig.h hconfig.h"
3539 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3542 if test -f config.status; then mv -f config.status config.bak; fi
3545 while test -n "$vars"
3547 set $vars; var=$1; shift; vars=$*
3548 set $links; link=$1; shift; links=$*
3549 set $defines; define=$1; shift; defines=$*
3553 # Define TARGET_CPU_DEFAULT if the system wants one.
3554 # This substitutes for lots of *.h files.
3555 if test "$target_cpu_default" != "" -a $link = tm.h
3557 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3560 for file in `eval echo '$'$var`; do
3561 echo "#include \"$file\"" >>$link
3564 for def in `eval echo '$'$define`; do
3565 echo "#ifndef $def" >>$link
3566 echo "#define $def" >>$link
3567 echo "#endif" >>$link
3571 # Truncate the target if necessary
3572 if test x$host_truncate_target != x; then
3573 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3576 # Get the version trigger filename from the toplevel
3577 if test "${with_gcc_version_trigger+set}" = set; then
3578 gcc_version_trigger=$with_gcc_version_trigger
3580 gcc_version_trigger=${srcdir}/version.c
3583 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3586 # Get an absolute path to the GCC top-level source directory
3592 # Conditionalize the makefile for this host machine.
3593 # Make-host contains the concatenation of all host makefile fragments
3594 # [there can be more than one]. This file is built by configure.frag.
3595 host_overrides=Make-host
3596 dep_host_xmake_file=
3597 for f in .. ${host_xmake_file}
3599 if test -f ${srcdir}/config/$f
3601 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3605 # Conditionalize the makefile for this target machine.
3606 # Make-target contains the concatenation of all host makefile fragments
3607 # [there can be more than one]. This file is built by configure.frag.
3608 target_overrides=Make-target
3610 for f in .. ${tmake_file}
3612 if test -f ${srcdir}/config/$f
3614 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3618 # If the host doesn't support symlinks, modify CC in
3619 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3620 # Otherwise, we can use "CC=$(CC)".
3622 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3624 cc_set_by_configure="\$(CC)"
3625 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3628 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3630 symbolic_link="cp -p"
3634 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3635 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3639 out_object_file=`basename $out_file .c`.o
3642 for f in $tm_file; do
3643 if test $f != "gansidecl.h" ; then
3644 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3646 tm_file_list="${tm_file_list} $f"
3651 for f in $host_xm_file; do
3652 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3653 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3655 host_xm_file_list="${host_xm_file_list} $f"
3660 for f in $build_xm_file; do
3661 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3662 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3664 build_xm_file_list="${build_xm_file_list} $f"
3668 # Define macro CROSS_COMPILE in compilation
3669 # if this is a cross-compiler.
3670 # Also use all.cross instead of all.internal
3671 # and add cross-make to Makefile.
3672 cross_overrides="/dev/null"
3673 if test x$host != x$target
3675 cross_defines="CROSS=-DCROSS_COMPILE"
3676 cross_overrides="${topdir}/cross-make"
3679 # When building gcc with a cross-compiler, we need to fix a few things.
3680 # This must come after cross-make as we want all.build to override
3682 build_overrides="/dev/null"
3683 if test x$build != x$host
3685 build_overrides="${topdir}/build-make"
3688 # Expand extra_headers to include complete path.
3689 # This substitutes for lots of t-* files.
3691 if test "x$extra_headers" = x
3694 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3695 for file in $extra_headers;
3697 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3701 if test x$use_collect2 = xno; then
3705 # Add a definition of USE_COLLECT2 if system wants one.
3706 # Also tell toplev.c what to do.
3707 # This substitutes for lots of t-* files.
3708 if test x$use_collect2 = x
3713 will_use_collect2="collect2"
3714 maybe_use_collect2="-DUSE_COLLECT2"
3718 # Set MD_DEPS if the real md file is in md.pre-cpp.
3719 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3720 # for line oriented comments, so we must always use a GNU cpp. If
3721 # building gcc with a cross compiler, use the cross compiler just
3722 # built. Otherwise, we can use the cpp just built.
3724 if test "x$md_cppflags" = x
3726 md_file_sub=$srcdir/config/$md_file
3731 # If we have gas in the build tree, make a link to it.
3732 if test -f ../gas/Makefile; then
3733 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3736 # If we have nm in the build tree, make a link to it.
3737 if test -f ../binutils/Makefile; then
3738 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3741 # If we have ld in the build tree, make a link to it.
3742 if test -f ../ld/Makefile; then
3743 # if test x$use_collect2 = x; then
3744 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3746 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3750 # Figure out what assembler alignment features are present.
3751 AC_MSG_CHECKING(assembler alignment features)
3753 gcc_cv_as_alignment_features=
3754 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3755 if test -x "$DEFAULT_ASSEMBLER"; then
3756 gcc_cv_as="$DEFAULT_ASSEMBLER"
3757 elif test -x "$AS"; then
3759 elif test -x as$host_exeext; then
3760 # Build using assembler in the current directory.
3761 gcc_cv_as=./as$host_exeext
3762 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3763 # Single tree build which includes gas.
3764 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3767 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3769 if test x$gcc_cv_gas_version != x; then
3774 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3775 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3777 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3778 # Gas version 2.6 and later support for .balign and .p2align.
3779 # bytes to skip when using .p2align.
3780 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
3781 gcc_cv_as_alignment_features=".balign and .p2align"
3782 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3784 # Gas version 2.8 and later support specifying the maximum
3785 # bytes to skip when using .p2align.
3786 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
3787 gcc_cv_as_alignment_features=".p2align including maximum skip"
3788 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3791 elif test x$host = x$target; then
3793 gcc_cv_as=as$host_exeext
3795 if test x$gcc_cv_as != x; then
3796 # Check if we have .balign and .p2align
3797 echo ".balign 4" > conftest.s
3798 echo ".p2align 2" >> conftest.s
3799 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3800 gcc_cv_as_alignment_features=".balign and .p2align"
3801 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3803 rm -f conftest.s conftest.o
3804 # Check if specifying the maximum bytes to skip when
3805 # using .p2align is supported.
3806 echo ".p2align 4,,7" > conftest.s
3807 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3808 gcc_cv_as_alignment_features=".p2align including maximum skip"
3809 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3811 rm -f conftest.s conftest.o
3813 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3815 AC_MSG_CHECKING(assembler subsection support)
3816 gcc_cv_as_subsections=
3817 if test x$gcc_cv_as != x; then
3818 # Check if we have .subsection
3819 echo ".subsection 1" > conftest.s
3820 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3821 gcc_cv_as_subsections=".subsection"
3822 if test -x nm$host_exeext; then
3823 gcc_cv_nm=./nm$host_exeext
3824 elif test x$host = x$target; then
3826 gcc_cv_nm=nm$host_exeext
3828 if test x$gcc_cv_nm != x; then
3829 cat > conftest.s <<EOF
3830 conftest_label1: .word 0
3832 conftest_label2: .word 0
3835 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3836 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3837 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3838 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
3841 gcc_cv_as_subsections="working .subsection -1"
3842 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
3847 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
3849 AC_MSG_RESULT($gcc_cv_as_subsections)
3851 # Figure out what language subdirectories are present.
3852 # Look if the user specified --enable-languages="..."; if not, use
3853 # the environment variable $LANGUAGES if defined. $LANGUAGES might
3855 if test x"${enable_languages+set}" != xset; then
3856 if test x"${LANGUAGES+set}" = xset; then
3857 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
3859 enable_languages=all
3863 for lang in ${srcdir}/*/config-lang.in ..
3867 # The odd quoting in the next line works around
3868 # an apparent bug in bash 1.12 on linux.
3870 ${srcdir}/[*]/config-lang.in) ;;
3872 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
3873 if test "x$lang_alias" = x
3875 echo "$lang doesn't set \$language." 1>&2
3878 if test x"${enable_languages}" = xall; then
3881 case "${enable_languages}" in
3882 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
3890 if test x"${add_this_lang}" = xyes; then
3892 ${srcdir}/ada/config-lang.in)
3893 if test x$gnat = xyes ; then
3894 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3898 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
3907 # Make gthr-default.h if we have a thread file.
3909 if test $thread_file != single; then
3910 rm -f gthr-default.h
3911 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
3912 gthread_flags=-DHAVE_GTHR_DEFAULT
3914 AC_SUBST(gthread_flags)
3916 # Make empty files to contain the specs and options for each language.
3917 # Then add #include lines to for a compiler that has specs and/or options.
3922 rm -f specs.h options.h gencheck.h
3923 touch specs.h options.h gencheck.h
3924 for subdir in . $subdirs
3926 if test -f $srcdir/$subdir/lang-specs.h; then
3927 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
3928 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
3930 if test -f $srcdir/$subdir/lang-options.h; then
3931 echo "#include \"$subdir/lang-options.h\"" >>options.h
3932 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
3934 if test -f $srcdir/$subdir/$subdir-tree.def; then
3935 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
3936 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
3940 # These (without "all_") are set in each config-lang.in.
3941 # `language' must be a single word so is spelled singularly.
3947 all_outputs=Makefile
3948 # List of language makefile fragments.
3953 # Add the language fragments.
3954 # Languages are added via two mechanisms. Some information must be
3955 # recorded in makefile variables, these are defined in config-lang.in.
3956 # We accumulate them and plug them into the main Makefile.
3957 # The other mechanism is a set of hooks for each of the main targets
3958 # like `clean', `install', etc.
3960 language_fragments="Make-lang"
3961 language_hooks="Make-hooks"
3964 for s in .. $subdirs
3976 . ${srcdir}/$s/config-lang.in
3977 if test "x$language" = x
3979 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
3982 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
3983 all_languages="$all_languages $language"
3984 if test "x$boot_language" = xyes
3986 all_boot_languages="$all_boot_languages $language"
3988 all_compilers="$all_compilers $compilers"
3989 all_stagestuff="$all_stagestuff $stagestuff"
3990 all_diff_excludes="$all_diff_excludes $diff_excludes"
3991 all_headers="$all_headers $headers"
3992 all_outputs="$all_outputs $outputs"
3993 if test x$outputs = x
3995 oldstyle_subdirs="$oldstyle_subdirs $s"
3997 all_lib2funcs="$all_lib2funcs $lib2funcs"
4001 # Since we can't use `::' targets, we link each language in
4002 # with a set of hooks, reached indirectly via lang.${target}.
4006 target_list="all.build all.cross start.encap rest.encap \
4008 install-normal install-common install-info install-man \
4010 mostlyclean clean distclean extraclean maintainer-clean \
4011 stage1 stage2 stage3 stage4"
4012 for t in $target_list
4015 for l in .. $all_languages
4017 if test $l != ".."; then
4021 echo "lang.$t: $x" >> Make-hooks
4024 # If we're not building in srcdir, create .gdbinit.
4026 if test ! -f Makefile.in; then
4027 echo "dir ." > .gdbinit
4028 echo "dir ${srcdir}" >> .gdbinit
4029 if test x$gdb_needs_out_file_path = xyes
4031 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4033 if test "x$subdirs" != x; then
4036 echo "dir ${srcdir}/$s" >> .gdbinit
4039 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4042 # Define variables host_canonical and build_canonical
4043 # because some Cygnus local changes in the Makefile depend on them.
4044 build_canonical=${build}
4045 host_canonical=${host}
4047 if test "${host}" != "${target}" ; then
4048 target_subdir=${target}/
4050 AC_SUBST(build_canonical)
4051 AC_SUBST(host_canonical)
4052 AC_SUBST(target_subdir)
4054 # If this is using newlib, then define inhibit_libc in
4055 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4056 # libgcc.a, but that's OK because newib should have its own version of
4059 if test x$with_newlib = xyes; then
4060 inhibit_libc=-Dinhibit_libc
4062 AC_SUBST(inhibit_libc)
4064 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4067 if test x$enable_haifa = xyes; then
4068 echo "Using the Haifa scheduler."
4070 sched_cflags=-DHAIFA
4072 AC_SUBST(sched_prefix)
4073 AC_SUBST(sched_cflags)
4074 if test x$enable_haifa != x; then
4075 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4076 for x in genattrtab.o toplev.o loop.o unroll.o *sched.o; do
4084 # Warn if using init_priority.
4085 AC_MSG_CHECKING(whether to enable init_priority by default)
4086 if test x$enable_init_priority != xyes; then
4087 enable_init_priority=no
4089 AC_MSG_RESULT($enable_init_priority)
4091 # Nothing to do for FLOAT_H, float_format already handled.
4095 # Process the language and host/target makefile fragments.
4096 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4098 # Substitute configuration variables
4100 AC_SUBST(all_languages)
4101 AC_SUBST(all_boot_languages)
4102 AC_SUBST(all_compilers)
4103 AC_SUBST(all_lang_makefiles)
4104 AC_SUBST(all_stagestuff)
4105 AC_SUBST(all_diff_excludes)
4106 AC_SUBST(all_lib2funcs)
4107 AC_SUBST(all_headers)
4109 AC_SUBST(extra_passes)
4110 AC_SUBST(extra_programs)
4111 AC_SUBST(extra_parts)
4112 AC_SUBST(extra_c_objs)
4113 AC_SUBST(extra_cxx_objs)
4114 AC_SUBST(extra_cpp_objs)
4115 AC_SUBST(extra_c_flags)
4116 AC_SUBST(extra_objs)
4117 AC_SUBST(host_extra_gcc_objs)
4118 AC_SUBST(extra_headers_list)
4119 AC_SUBST(dep_host_xmake_file)
4120 AC_SUBST(dep_tmake_file)
4122 AC_SUBST(out_object_file)
4124 AC_SUBST(tm_file_list)
4125 AC_SUBST(build_xm_file_list)
4126 AC_SUBST(host_xm_file_list)
4127 AC_SUBST(lang_specs_files)
4128 AC_SUBST(lang_options_files)
4129 AC_SUBST(lang_tree_files)
4130 AC_SUBST(thread_file)
4131 AC_SUBST(objc_boehm_gc)
4133 AC_SUBST(gcc_version)
4134 AC_SUBST(gcc_version_trigger)
4135 AC_SUBST(local_prefix)
4136 AC_SUBST(gxx_include_dir)
4137 AC_SUBST(fixincludes)
4138 AC_SUBST(build_install_headers_dir)
4139 AC_SUBST(build_exeext)
4140 AC_SUBST(host_exeext)
4141 AC_SUBST(float_format)
4142 AC_SUBST(will_use_collect2)
4143 AC_SUBST(maybe_use_collect2)
4144 AC_SUBST(cc_set_by_configure)
4145 AC_SUBST(stage_prefix_set_by_configure)
4147 AC_SUBST(symbolic_link)
4149 AC_SUBST_FILE(target_overrides)
4150 AC_SUBST_FILE(host_overrides)
4151 AC_SUBST(cross_defines)
4152 AC_SUBST_FILE(cross_overrides)
4153 AC_SUBST_FILE(build_overrides)
4154 AC_SUBST_FILE(language_fragments)
4155 AC_SUBST_FILE(language_hooks)
4157 # Echo that links are built
4158 if test x$host = x$target
4166 if test x$host != x$build
4168 str3=" on a $build system"
4171 if test "x$str2" != x || test "x$str3" != x
4176 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4178 if test "x$str2" != x || test "x$str3" != x
4180 echo " ${str2}${str3}." 1>&2
4183 # Truncate the target if necessary
4184 if test x$host_truncate_target != x; then
4185 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4188 # Configure the subdirectories
4189 # AC_CONFIG_SUBDIRS($subdirs)
4191 # Create the Makefile
4192 # and configure language subdirectories
4193 AC_OUTPUT($all_outputs,
4195 . $srcdir/configure.lang
4196 case x$CONFIG_HEADERS in
4197 xauto-host.h:config.in)
4200 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4201 # bootstrapping and the installation procedure can still use
4202 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4203 # FLAGS_TO_PASS has been modified to solve the problem there.
4204 # This is virtually a duplicate of what happens in configure.lang; we do
4205 # an extra check to make sure this only happens if ln -s can be used.
4206 if test "$symbolic_link" = "ln -s"; then
4207 for d in .. ${subdirs} ; do
4208 if test $d != ..; then
4211 for t in stage1 stage2 stage3 stage4 include
4214 $symbolic_link ../$t $t 2>/dev/null
4225 target_alias='${target_alias}'
4227 subdirs='${subdirs}'
4228 oldstyle_subdirs='${oldstyle_subdirs}'
4229 symbolic_link='${symbolic_link}'
4230 program_transform_set='${program_transform_set}'
4231 program_transform_name='${program_transform_name}'
4232 dep_host_xmake_file='${dep_host_xmake_file}'
4233 host_xmake_file='${host_xmake_file}'
4234 dep_tmake_file='${dep_tmake_file}'
4235 tmake_file='${tmake_file}'
4236 thread_file='${thread_file}'
4237 gcc_version='${gcc_version}'
4238 gcc_version_trigger='${gcc_version_trigger}'
4239 local_prefix='${local_prefix}'
4240 build_install_headers_dir='${build_install_headers_dir}'
4241 build_exeext='${build_exeext}'
4242 host_exeext='${host_exeext}'
4243 out_file='${out_file}'
4244 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4245 SET_MAKE='${SET_MAKE}'
4246 target_list='${target_list}'
4247 target_overrides='${target_overrides}'
4248 host_overrides='${host_overrides}'
4249 cross_defines='${cross_defines}'
4250 cross_overrides='${cross_overrides}'
4251 build_overrides='${build_overrides}'