1 # configure.in for GNU CC
2 # Process this file with autoconf to generate a configuration script.
4 # Copyright (C) 1997, 1998, 1999 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
152 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
153 # passed in by the toplevel make and thus we'd get different behavior
154 # depending on where we built the sources.
156 # Specify the g++ header file directory
157 AC_ARG_WITH(gxx-include-dir,
158 [ --with-gxx-include-dir=DIR
159 specifies directory to put g++ header files.],
160 [case "${withval}" in
161 yes) AC_MSG_ERROR(bad value ${withval} given for g++ include directory) ;;
163 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
166 if test x${gcc_gxx_include_dir} = x; then
167 if test x${enable_version_specific_runtime_libs} = xyes; then
168 gcc_gxx_include_dir='${libsubdir}/include/g++'
170 topsrcdir=${srcdir}/.. . ${srcdir}/../config.if
171 changequote(<<, >>)dnl
172 gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/g++"-${libstdcxx_interface}
177 # Enable expensive internal checks
178 AC_ARG_ENABLE(checking,
179 [ --enable-checking enable expensive run-time checks.],
180 [case "${enableval}" in
181 yes) AC_DEFINE(ENABLE_CHECKING) ;;
183 *) AC_MSG_ERROR(bad value ${enableval} given for checking option) ;;
186 # Use cpplib+cppmain for the preprocessor, but don't link it with the compiler.
188 AC_ARG_ENABLE(cpplib,
189 [ --enable-cpplib use cpplib for the C preprocessor.],
190 if test x$enable_cpplib != xno; then
194 # Link cpplib into the compiler proper, for C/C++/ObjC.
195 AC_ARG_ENABLE(c-cpplib,
196 [ --enable-c-cpplib link cpplib directly into C and C++ compilers
197 (implies --enable-cpplib).],
198 if test x$enable_c_cpplib != xno; then
199 extra_c_objs="${extra_c_objs} libcpp.a"
200 extra_cxx_objs="${extra_cxx_objs} ../libcpp.a"
201 extra_c_flags="${extra_c_flags} -DUSE_CPPLIB=1"
205 # Enable Multibyte Characters for C/C++
206 AC_ARG_ENABLE(c-mbchar,
207 [ --enable-c-mbchar enable multibyte characters for C and C++.],
208 if test x$enable_c_mbchar != xno; then
209 extra_c_flags=-DMULTIBYTE_CHARS=1
212 # Enable Haifa scheduler.
214 [ --enable-haifa use the experimental scheduler.
215 --disable-haifa don't use the experimental scheduler for the
216 targets which normally enable it.])
219 # This is a work in progress...
220 AC_ARG_WITH(fast-fixincludes,
221 [ --with-fast-fixincludes use a faster fixinclude program (experimental)],
222 fast_fixinc="$with_fast_fixincludes",
226 # Pass with no value to take the default
227 # Pass with a value to specify a thread package
228 AC_ARG_ENABLE(threads,
229 [ --enable-threads enable thread usage for target GCC.
230 --enable-threads=LIB use LIB thread package for target GCC.],
231 if test x$enable_threads = xno; then
236 enable_threads_flag=$enable_threads
237 # Check if a valid thread package
238 case x${enable_threads_flag} in
241 target_thread_file='single'
245 target_thread_file=''
247 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \
248 xsolaris | xwin32 | xdce | xvxworks)
249 target_thread_file=$enable_threads_flag
252 echo "$enable_threads is an unknown thread package" 1>&2
257 AC_ARG_ENABLE(objc-gc,
258 [ --enable-objc-gc enable the use of Boehm's garbage collector with
259 the GNU Objective-C runtime.],
260 if [[[ x$enable_objc_gc = xno ]]]; then
267 AC_ARG_ENABLE(java-gc,
268 changequote(<<,>>)dnl
269 << --enable-java-gc=TYPE choose garbage collector [boehm]>>,
275 [ --enable-dwarf2 enable DWARF2 debugging as default.],
276 dwarf2="$with_dwarf2",
279 # Determine the host, build, and target systems
282 # Find the native compiler
285 # If the native compiler is GCC, we can enable warnings even in stage1.
286 # That's useful for people building cross-compilers, or just running a
288 if test "x$GCC" = "xyes"; then
289 stage1_warn_cflags='$(WARN_CFLAGS)'
291 stage1_warn_cflags=""
293 AC_SUBST(stage1_warn_cflags)
297 AC_MSG_CHECKING([whether a default assembler was specified])
298 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
299 if test x"$with_gas" = x"no"; then
300 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER)])
302 AC_MSG_RESULT([yes ($DEFAULT_ASSEMBLER - GNU as)])
308 AC_MSG_CHECKING([whether a default linker was specified])
309 if test x"${DEFAULT_LINKER+set}" = x"set"; then
310 if test x"$with_gnu_ld" = x"no"; then
311 AC_MSG_RESULT([yes ($DEFAULT_LINKER)])
313 AC_MSG_RESULT([yes ($DEFAULT_LINKER - GNU ld)])
319 # Find some useful tools
333 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)
335 # Check for thread headers.
336 AC_CHECK_HEADER(thread.h, [have_thread_h=yes], [have_thread_h=])
337 AC_CHECK_HEADER(pthread.h, [have_pthread_h=yes], [have_pthread_h=])
339 # See if GNAT has been installed
340 AC_CHECK_PROG(gnat, gnatbind, yes, no)
342 # See if the system preprocessor understands the ANSI C preprocessor
343 # stringification operator.
344 AC_MSG_CHECKING(whether cpp understands the stringify operator)
345 AC_CACHE_VAL(gcc_cv_c_have_stringify,
348 char *test = S(foo);],
349 gcc_cv_c_have_stringify=yes, gcc_cv_c_have_stringify=no)])
350 AC_MSG_RESULT($gcc_cv_c_have_stringify)
351 if test $gcc_cv_c_have_stringify = yes; then
352 AC_DEFINE(HAVE_CPP_STRINGIFY)
355 # Use <inttypes.h> only if it exists,
356 # doesn't clash with <sys/types.h>, and declares intmax_t.
357 AC_MSG_CHECKING(for inttypes.h)
358 AC_CACHE_VAL(gcc_cv_header_inttypes_h,
360 [#include <sys/types.h>
361 #include <inttypes.h>],
363 [gcc_cv_header_inttypes_h=yes],
364 gcc_cv_header_inttypes_h=no)])
365 AC_MSG_RESULT($gcc_cv_header_inttypes_h)
366 if test $gcc_cv_header_inttypes_h = yes; then
367 AC_DEFINE(HAVE_INTTYPES_H)
370 AC_CHECK_FUNCS(strtoul bsearch strerror putenv popen bcopy bzero bcmp \
371 index rindex strchr strrchr kill getrlimit setrlimit atoll atoq \
372 sysconf isascii gettimeofday strsignal putc_unlocked fputc_unlocked \
375 # Make sure wchar_t is available
376 #AC_CHECK_TYPE(wchar_t, unsigned int)
378 GCC_FUNC_VFPRINTF_DOPRNT
383 # Under some versions of uwin, vfork is notoriously buggy and the test
384 # can hang configure; on other versions, vfork exists just as a stub.
385 # FIXME: This should be removed once vfork in uwin's runtime is fixed.
386 ac_cv_func_vfork_works=no
391 GCC_NEED_DECLARATIONS(malloc realloc calloc free bcopy bzero bcmp \
392 index rindex getenv atol sbrk abort atof strerror getcwd getwd \
395 GCC_NEED_DECLARATIONS(getrlimit setrlimit, [
396 #include <sys/types.h>
397 #ifdef HAVE_SYS_RESOURCE_H
398 #include <sys/resource.h>
412 build_install_headers_dir=install-headers-tar
417 host_truncate_target=
420 # It is relative to $prefix.
423 # Decode the host machine, then the target machine.
424 # For the host machine, we save the xm_file variable as host_xm_file;
425 # then we decode the target machine and forget everything else
426 # that came from the host machine.
427 for machine in $build $host $target; do
441 # Set this to force installation and use of collect2.
443 # Set this to override the default target model.
445 # Set this to control which fixincludes program to use.
446 if test x$fast_fixinc != xyes; then
447 fixincludes=fixincludes
448 else fixincludes=fixinc.sh ; fi
449 # Set this to control how the header file directory is installed.
450 install_headers_dir=install-headers-tar
451 # Set this to a non-empty list of args to pass to cpp if the target
452 # wants its .md file passed through cpp.
454 # Set this if directory names should be truncated to 14 characters.
456 # Set this if gdb needs a dir command with `dirname $out_file`
457 gdb_needs_out_file_path=
458 # Set this if the build machine requires executables to have a
461 # Set this to control which thread package will be used.
463 # Reinitialize these from the flag values every loop pass, since some
464 # configure entries modify them.
466 gnu_ld="$gnu_ld_flag"
467 enable_threads=$enable_threads_flag
469 # Set default cpu_type, tm_file and xm_file so it can be updated in
470 # each machine entry.
471 cpu_type=`echo $machine | sed 's/-.*$//'`
507 tm_file=${cpu_type}/${cpu_type}.h
508 xm_file=${cpu_type}/xm-${cpu_type}.h
510 # Common parts for linux-gnu and openbsd systems
513 xm_defines="HAVE_ATEXIT POSIX BSTRING"
516 tm_file=${cpu_type}/openbsd.h
517 # On OpenBSD systems, the headers are okay
518 fixincludes=Makefile.in
519 tmake_file="t-libc-ok t-openbsd"
520 # avoid surprises, always provide an xm-openbsd file
521 xm_file=${cpu_type}/xm-openbsd.h
522 if test x$enable_threads = xyes; then
524 tmake_file="${tmake_file} t-openbsd-thread"
530 # Support site-specific machine types.
532 cpu_type=`echo $machine | sed -e 's/-.*//'`
533 rest=`echo $machine | sed -e "s/$cpu_type-//"`
534 xm_file=${cpu_type}/xm-$rest.h
535 tm_file=${cpu_type}/$rest.h
536 if test -f $srcdir/config/${cpu_type}/x-$rest; \
537 then xmake_file=${cpu_type}/x-$rest; \
540 if test -f $srcdir/config/${cpu_type}/t-$rest; \
541 then tmake_file=${cpu_type}/t-$rest; \
547 a29k-*-bsd* | a29k-*-sym1*)
548 tm_file="${tm_file} a29k/unix.h"
550 xmake_file=a29k/x-unix
553 a29k-*-udi | a29k-*-coff)
554 tm_file="${tm_file} dbxcoff.h a29k/udi.h"
555 tmake_file=a29k/t-a29kbare
558 tm_file="${tm_file} dbxcoff.h a29k/udi.h a29k/vx29k.h"
559 tmake_file=a29k/t-vx29k
560 extra_parts="crtbegin.o crtend.o"
561 thread_file='vxworks'
563 a29k-*-*) # Default a29k environment.
566 alpha*-*-linux-gnuecoff*)
567 tm_file="${tm_file} alpha/linux-ecoff.h alpha/linux.h"
568 target_cpu_default="MASK_GAS"
573 alpha*-*-linux-gnulibc1*)
574 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
575 target_cpu_default="MASK_GAS"
576 tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux alpha/t-crtbe"
577 extra_parts="crtbegin.o crtend.o"
578 fixincludes=fixinc.wrap
581 if test x$enable_threads = xyes; then
586 tm_file="${tm_file} alpha/elf.h alpha/linux.h alpha/linux-elf.h"
587 target_cpu_default="MASK_GAS"
588 tmake_file="t-linux alpha/t-linux alpha/t-crtbe"
589 extra_parts="crtbegin.o crtend.o"
591 fixincludes=Makefile.in
593 if test x$enable_threads = xyes; then
598 tm_file="${tm_file} alpha/elf.h alpha/netbsd.h alpha/netbsd-elf.h"
599 target_cpu_default="MASK_GAS"
600 tmake_file="alpha/t-crtbe"
601 extra_parts="crtbegin.o crtend.o"
603 fixincludes=fixinc.wrap
608 # default x-alpha is only appropriate for dec-osf.
609 target_cpu_default="MASK_GAS"
614 if test x$stabs = xyes
616 tm_file="${tm_file} dbx.h"
618 if test x$gas != xyes
620 extra_passes="mips-tfile mips-tdump"
625 tm_file="${tm_file} alpha/osf.h alpha/osf12.h alpha/osf2or3.h"
630 tm_file="${tm_file} alpha/osf.h alpha/osf2or3.h"
633 tm_file="${tm_file} alpha/osf.h"
634 # Some versions of OSF4 (specifically X4.0-9 296.7) have
635 # a broken tar, so we use cpio instead.
636 install_headers_dir=install-headers-cpio
641 *-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
643 target_cpu_default=MASK_SUPPORT_ARCH
648 tm_file="${tm_file} dbx.h alpha/vxworks.h"
651 extra_passes="mips-tfile mips-tdump"
656 tm_file="${tm_file} alpha/win-nt.h"
657 xm_file="${xm_file} config/winnt/xm-winnt.h alpha/xm-winnt.h"
659 xmake_file=winnt/x-winnt
660 extra_host_objs=oldnames.o
661 extra_gcc_objs="spawnv.o oldnames.o"
662 fixincludes=fixinc.winnt
663 if test x$gnu_ld != xyes
665 extra_programs=ld.exe
667 if test x$enable_threads = xyes; then
673 xm_file="${xm_file} alpha/xm-vms.h"
674 tmake_file=alpha/t-vms
675 fixincludes=Makefile.in
678 extra_parts="crtinit.o crtfini.o"
680 arm-*-coff* | armel-*-coff*)
682 tmake_file=arm/t-bare
685 arm-*-riscix1.[01]*) # Acorn RISC machine (early versions)
687 tm_file=arm/riscix1-1.h
690 arm-*-riscix*) # Acorn RISC machine
693 tm_file=arm/rix-gas.h
697 xmake_file=arm/x-riscix
698 tmake_file=arm/t-riscix
701 arm-semi-aout | armel-semi-aout)
703 tmake_file=arm/t-semi
704 fixincludes=Makefile.in # There is nothing to fix
706 arm-semi-aof | armel-semi-aof)
707 tm_file=arm/semiaof.h
708 tmake_file=arm/t-semiaof
709 fixincludes=Makefile.in # There is nothing to fix
713 xm_file="arm/xm-netbsd.h ${xm_file}"
714 tmake_file="t-netbsd arm/t-netbsd"
715 # On NetBSD, the headers are already okay, except for math.h.
716 fixincludes=fixinc.wrap
718 arm*-*-linux-gnuaout*) # ARM GNU/Linux with a.out
721 tm_file=arm/linux-aout.h
722 tmake_file=arm/t-linux
723 fixincludes=Makefile.in
726 arm*-*-linux-gnu*) # ARM GNU/Linux with ELF
727 xm_file=arm/xm-linux.h
731 tm_file=arm/linux-elf26.h
734 tm_file=arm/linux-elf.h
737 tmake_file="t-linux arm/t-linux"
738 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
739 fixincludes=Makefile.in # Nothing to fix
744 tmake_file=arm/t-bare
747 tm_file=arm/ecos-elf.h
751 tm_file=arm/unknown-elf.h
752 tmake_file=arm/t-arm-elf
755 tm_file=arm/unknown-elf-oabi.h
756 tmake_file=arm/t-arm-elf
758 c1-convex-*) # Convex C1
761 fixincludes=Makefile.in
763 c2-convex-*) # Convex C2
766 fixincludes=Makefile.in
771 fixincludes=Makefile.in
776 fixincludes=Makefile.in
779 target_cpu_default=16
781 fixincludes=Makefile.in
787 clipper-intergraph-clix*)
788 tm_file="${tm_file} svr3.h clipper/clix.h"
789 xm_file=clipper/xm-clix.h
790 xmake_file=clipper/x-clix
791 extra_headers=va-clipper.h
792 extra_parts="crtbegin.o crtend.o"
793 install_headers_dir=install-headers-cpio
800 # This hasn't been upgraded to GCC 2.
801 # fx80-alliant-*) # Alliant FX/80
807 target_cpu_default="MASK_SNAKE"
808 tmake_file=pa/t-openbsd
811 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h"
812 xm_file=pa/xm-papro.h
816 target_cpu_default="MASK_SNAKE"
817 tm_file="${tm_file} pa/pa-osf.h"
819 fixincludes=Makefile.in
822 tm_file="pa/pa-pro.h ${tm_file} pa/pa-pro-end.h libgloss.h pa/rtems.h"
823 xm_file=pa/xm-papro.h
827 tm_file="${tm_file} pa/pa-osf.h"
829 fixincludes=Makefile.in
832 target_cpu_default="MASK_SNAKE"
834 fixincludes=Makefile.in
838 fixincludes=Makefile.in
841 tm_file="pa/pa-oldas.h ${tm_file} pa/pa-hpux7.h"
842 xm_file=pa/xm-pahpux.h
843 xmake_file=pa/x-pa-hpux
846 tm_file="${tm_file} pa/gas.h"
848 install_headers_dir=install-headers-cpio
852 hppa1.0-*-hpux8.0[0-2]*)
854 tm_file="${tm_file} pa/pa-hpux.h"
855 xm_file=pa/xm-pahpux.h
856 xmake_file=pa/x-pa-hpux
859 tm_file="${tm_file} pa/pa-gas.h"
861 tm_file="pa/pa-oldas.h ${tm_file}"
863 install_headers_dir=install-headers-cpio
867 hppa1.1-*-hpux8.0[0-2]*)
869 target_cpu_default="MASK_SNAKE"
870 tm_file="${tm_file} pa/pa-hpux.h"
871 xm_file=pa/xm-pahpux.h
872 xmake_file=pa/x-pa-hpux
875 tm_file="${tm_file} pa/pa-gas.h"
877 tm_file="pa/pa-oldas.h ${tm_file}"
879 install_headers_dir=install-headers-cpio
883 target_cpu_default="MASK_SNAKE"
884 tm_file="${tm_file} pa/pa-hpux.h"
885 xm_file=pa/xm-pahpux.h
886 xmake_file=pa/x-pa-hpux
889 tm_file="${tm_file} pa/pa-gas.h"
891 install_headers_dir=install-headers-cpio
895 tm_file="${tm_file} pa/pa-hpux.h"
896 xm_file=pa/xm-pahpux.h
897 xmake_file=pa/x-pa-hpux
900 tm_file="${tm_file} pa/pa-gas.h"
902 install_headers_dir=install-headers-cpio
905 hppa1.1-*-hpux10* | hppa2*-*-hpux10*)
906 target_cpu_default="MASK_SNAKE"
907 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
908 xm_file=pa/xm-pahpux.h
909 xmake_file=pa/x-pa-hpux
913 tm_file="${tm_file} pa/pa-gas.h"
915 if test x$enable_threads = x; then
916 enable_threads=$have_pthread_h
918 if test x$enable_threads = xyes; then
920 tmake_file="${tmake_file} pa/t-dce-thr"
922 install_headers_dir=install-headers-cpio
926 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux10.h"
927 xm_file=pa/xm-pahpux.h
928 xmake_file=pa/x-pa-hpux
932 tm_file="${tm_file} pa/pa-gas.h"
934 if test x$enable_threads = x; then
935 enable_threads=$have_pthread_h
937 if test x$enable_threads = xyes; then
939 tmake_file="${tmake_file} pa/t-dce-thr"
941 install_headers_dir=install-headers-cpio
944 hppa1.1-*-hpux* | hppa2*-*-hpux*)
945 target_cpu_default="MASK_SNAKE"
946 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
947 xm_file=pa/xm-pahpux.h
948 xmake_file=pa/x-pa-hpux
951 tm_file="${tm_file} pa/pa-gas.h"
953 install_headers_dir=install-headers-cpio
957 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hpux9.h"
958 xm_file=pa/xm-pahpux.h
959 xmake_file=pa/x-pa-hpux
962 tm_file="${tm_file} pa/pa-gas.h"
964 install_headers_dir=install-headers-cpio
967 hppa1.1-*-hiux* | hppa2*-*-hiux*)
968 target_cpu_default="MASK_SNAKE"
969 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
970 xm_file=pa/xm-pahpux.h
971 xmake_file=pa/x-pa-hpux
974 tm_file="${tm_file} pa/pa-gas.h"
976 install_headers_dir=install-headers-cpio
980 tm_file="${tm_file} pa/pa-hpux.h pa/pa-hiux.h"
981 xm_file=pa/xm-pahpux.h
982 xmake_file=pa/x-pa-hpux
985 tm_file="${tm_file} pa/pa-gas.h"
987 install_headers_dir=install-headers-cpio
991 target_cpu_default="MASK_SNAKE"
993 fixincludes=Makefile.in
998 i[34567]86-ibm-aix*) # IBM PS/2 running AIX
1000 if test x$gas = xyes
1002 tm_file=i386/aix386.h
1003 extra_parts="crtbegin.o crtend.o"
1004 tmake_file=i386/t-crtstuff
1006 tm_file=i386/aix386ng.h
1009 xm_file="xm-alloca.h i386/xm-aix.h ${xm_file}"
1011 xmake_file=i386/x-aix
1014 i[34567]86-ncr-sysv4*) # NCR 3000 - ix86 running system V.4
1016 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1017 xm_defines="USG POSIX SMALL_ARG_MAX"
1018 xmake_file=i386/x-ncr3000
1019 if test x$stabs = xyes -a x$gas = xyes
1021 tm_file=i386/sysv4gdb.h
1023 tm_file=i386/sysv4.h
1025 extra_parts="crtbegin.o crtend.o"
1026 tmake_file=i386/t-crtpic
1032 xm_file=i386/xm-next.h
1033 tmake_file=i386/t-next
1034 xmake_file=i386/x-next
1035 extra_objs=nextstep.o
1036 extra_parts="crtbegin.o crtend.o"
1037 if test x$enable_threads = xyes; then
1042 i[34567]86-sequent-bsd*) # 80386 from Sequent
1045 if test x$gas = xyes
1047 tm_file=i386/seq-gas.h
1049 tm_file=i386/sequent.h
1053 i[34567]86-sequent-ptx1*)
1055 xm_defines="USG SVR3"
1056 xmake_file=i386/x-sysv3
1057 tm_file=i386/seq-sysv3.h
1058 tmake_file=i386/t-crtstuff
1059 fixincludes=fixinc.ptx
1060 extra_parts="crtbegin.o crtend.o"
1061 install_headers_dir=install-headers-cpio
1064 i[34567]86-sequent-ptx2* | i[34567]86-sequent-sysv3*)
1066 xm_defines="USG SVR3"
1067 xmake_file=i386/x-sysv3
1068 tm_file=i386/seq2-sysv3.h
1069 tmake_file=i386/t-crtstuff
1070 extra_parts="crtbegin.o crtend.o"
1071 fixincludes=fixinc.ptx
1072 install_headers_dir=install-headers-cpio
1075 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
1077 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1078 xm_defines="USG POSIX SMALL_ARG_MAX"
1080 tm_file=i386/ptx4-i.h
1082 extra_parts="crtbegin.o crtend.o"
1083 fixincludes=fixinc.ptx
1084 install_headers_dir=install-headers-cpio
1086 i386-sun-sunos*) # Sun i386 roadrunner
1092 i[34567]86-wrs-vxworks*)
1094 tm_file=i386/vxi386.h
1095 tmake_file=i386/t-i386bare
1100 tm_file=i386/i386-aout.h
1101 tmake_file=i386/t-i386bare
1104 i[34567]86-*-bsdi* | i[34567]86-*-bsd386*)
1106 tm_file=i386/bsd386.h
1107 # tmake_file=t-libc-ok
1112 tm_file=i386/386bsd.h
1113 # tmake_file=t-libc-ok
1114 # Next line turned off because both 386BSD and BSD/386 use GNU ld.
1118 i[34567]86-*-freebsdelf*)
1120 tm_file="i386/i386.h i386/att.h linux.h i386/freebsd-elf.h i386/perform.h"
1121 # On FreeBSD, the headers are already ok, except for math.h.
1122 fixincludes=fixinc.wrap
1123 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1124 tmake_file=i386/t-freebsd
1130 i[34567]86-*-freebsd*)
1132 tm_file=i386/freebsd.h
1133 # On FreeBSD, the headers are already ok, except for math.h.
1134 fixincludes=fixinc.wrap
1135 tmake_file=i386/t-freebsd
1138 i[34567]86-*-netbsd*)
1140 tm_file=i386/netbsd.h
1141 # On NetBSD, the headers are already okay, except for math.h.
1142 fixincludes=fixinc.wrap
1146 i[34567]86-*-openbsd*)
1148 # Remove when the math emulator is fixed
1149 target_cpu_default="MASK_NO_FANCY_MATH_387"
1150 # we need collect2 until our bug is fixed...
1156 tm_file=i386/i386-coff.h
1157 tmake_file=i386/t-i386bare
1160 i[34567]86-*-isc*) # 80386 running ISC system
1162 xm_file="${xm_file} i386/xm-isc.h"
1163 xm_defines="USG SVR3"
1166 i[34567]86-*-isc[34]*)
1168 xmake_file=i386/x-isc3
1171 xmake_file=i386/x-isc
1174 if test x$gas = xyes -a x$stabs = xyes
1176 tm_file=i386/iscdbx.h
1177 tmake_file=i386/t-svr3dbx
1178 extra_parts="svr3.ifile svr3z.ifile"
1180 tm_file=i386/isccoff.h
1181 tmake_file=i386/t-crtstuff
1182 extra_parts="crtbegin.o crtend.o"
1184 install_headers_dir=install-headers-cpio
1187 i[34567]86-*-linux-gnuoldld*) # Intel 80386's running GNU/Linux
1188 changequote([,])dnl # with a.out format using
1190 xmake_file=x-linux-aout
1191 tmake_file="t-linux-aout i386/t-crtstuff"
1192 tm_file=i386/linux-oldld.h
1193 fixincludes=fixinc.x86-linux-gnu
1198 i[34567]86-*-linux-gnuaout*) # Intel 80386's running GNU/Linux
1199 changequote([,])dnl # with a.out format
1200 xmake_file=x-linux-aout
1201 tmake_file="t-linux-aout i386/t-crtstuff"
1202 tm_file=i386/linux-aout.h
1203 fixincludes=fixinc.x86-linux-gnu
1208 i[34567]86-*-linux-gnulibc1) # Intel 80386's running GNU/Linux
1209 changequote([,])dnl # with ELF format using the
1210 # GNU/Linux C library 5
1212 tm_file=i386/linux.h
1213 tmake_file="t-linux t-linux-gnulibc1 i386/t-crtstuff"
1214 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1215 fixincludes=fixinc.x86-linux-gnu
1218 if test x$enable_threads = xyes; then
1219 thread_file='single'
1223 i[34567]86-*-linux-gnu*) # Intel 80386's running GNU/Linux
1224 changequote([,])dnl # with ELF format using glibc 2
1225 # aka GNU/Linux C library 6
1227 tm_file=i386/linux.h
1228 tmake_file="t-linux i386/t-crtstuff"
1229 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
1230 fixincludes=fixinc.x86-linux-gnu
1233 if test x$enable_threads = xyes; then
1243 i[34567]86-go32-msdos | i[34567]86-*-go32*)
1245 xm_file=i386/xm-go32.h
1247 tmake_file=i386/t-go32
1250 i[34567]86-pc-msdosdjgpp*)
1252 xm_file=i386/xm-go32.h
1254 tmake_file=i386/t-go32
1255 xmake_file=i386/x-go32
1266 i[34567]86-moss-msdos* | i[34567]86-*-moss*)
1269 tmake_file=t-libc-ok
1270 fixincludes=Makefile.in
1275 i[34567]86-*-lynxos*)
1277 if test x$gas = xyes
1281 tm_file=i386/lynx-ng.h
1283 xm_file=i386/xm-lynx.h
1284 tmake_file=i386/t-i386bare
1291 # tmake_file=t-libc-ok
1295 i[34567]86-*-osfrose*) # 386 using OSF/rose
1297 if test x$elf = xyes
1299 tm_file=i386/osfelf.h
1302 tm_file=i386/osfrose.h
1305 xm_file="i386/xm-osf.h ${xm_file}"
1306 xmake_file=i386/x-osfrose
1307 tmake_file=i386/t-osf
1308 extra_objs=halfpic.o
1311 i[34567]86-go32-rtems*)
1314 xm_file=i386/xm-go32.h
1315 tm_file=i386/go32-rtems.h
1316 tmake_file="i386/t-go32 t-rtems"
1319 i[34567]86-*-rtemself*)
1322 tm_file=i386/rtemself.h
1323 tmake_file="i386/t-i386bare t-rtems"
1326 i[34567]86-*-rtems*)
1329 tm_file=i386/rtems.h
1330 tmake_file="i386/t-i386bare t-rtems"
1333 i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1335 xm_file="xm-siglist.h xm-alloca.h ${xm_file} i386/xm-sco5.h"
1336 xm_defines="USG SVR3"
1337 xmake_file=i386/x-sco5
1338 fixincludes=fixinc.sco
1339 install_headers_dir=install-headers-cpio
1341 if test x$gas = xyes
1343 tm_file="i386/sco5gas.h ${tm_file}"
1344 tmake_file=i386/t-sco5gas
1346 tmake_file=i386/t-sco5
1348 extra_parts="crti.o crtbegin.o crtend.o crtbeginS.o crtendS.o"
1351 i[34567]86-*-sco3.2v4*) # 80386 running SCO 3.2v4 system
1353 xm_file="${xm_file} i386/xm-sco.h"
1354 xm_defines="USG SVR3 BROKEN_LDEXP SMALL_ARG_MAX NO_SYS_SIGLIST"
1355 xmake_file=i386/x-sco4
1356 fixincludes=fixinc.sco
1357 install_headers_dir=install-headers-cpio
1358 if test x$stabs = xyes
1360 tm_file=i386/sco4dbx.h
1361 tmake_file=i386/t-svr3dbx
1362 extra_parts="svr3.ifile svr3z.rfile"
1365 tmake_file=i386/t-crtstuff
1366 extra_parts="crtbegin.o crtend.o"
1371 i[34567]86-*-sco*) # 80386 running SCO system
1373 xm_file=i386/xm-sco.h
1374 xmake_file=i386/x-sco
1375 install_headers_dir=install-headers-cpio
1376 if test x$stabs = xyes
1378 tm_file=i386/scodbx.h
1379 tmake_file=i386/t-svr3dbx
1380 extra_parts="svr3.ifile svr3z.rfile"
1383 extra_parts="crtbegin.o crtend.o"
1384 tmake_file=i386/t-crtstuff
1389 i[34567]86-*-solaris2*)
1391 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1392 xm_defines="USG POSIX SMALL_ARG_MAX"
1393 if test x$stabs = xyes
1395 tm_file=i386/sol2dbg.h
1399 tmake_file=i386/t-sol2
1400 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
1406 fixincludes=fixinc.svr4;;
1408 fixincludes=fixinc.wrap;;
1410 if test x$enable_threads = xyes; then
1411 thread_file='solaris'
1415 i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1417 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1418 xm_defines="USG POSIX"
1419 tm_file=i386/sysv4.h
1420 if test x$stabs = xyes
1422 tm_file="${tm_file} dbx.h"
1424 tmake_file=i386/t-crtpic
1426 extra_parts="crtbegin.o crtend.o"
1427 fixincludes=fixinc.svr4
1430 i[34567]86-*-sysv4*) # Intel 80386's running system V.4
1432 xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
1433 xm_defines="USG POSIX SMALL_ARG_MAX"
1434 tm_file=i386/sysv4.h
1435 if test x$stabs = xyes
1437 tm_file="${tm_file} dbx.h"
1439 tmake_file=i386/t-crtpic
1441 extra_parts="crtbegin.o crtend.o"
1444 i[34567]86-*-udk*) # Intel x86 on SCO UW/OSR5 Dev Kit
1446 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1447 xm_defines="USG POSIX"
1449 tmake_file="i386/t-crtpic i386/t-udk"
1451 extra_parts="crtbegin.o crtend.o"
1452 fixincludes="fixinc.svr4"
1455 i[34567]86-*-osf1*) # Intel 80386's running OSF/1 1.3+
1458 xm_file="${xm_file} xm-svr4.h i386/xm-sysv4.h i386/xm-osf1elf.h"
1459 xm_defines="USE_C_ALLOCA SMALL_ARG_MAX"
1460 fixincludes=Makefile.in #Don't do it on OSF/1
1461 if test x$stabs = xyes
1463 tm_file=i386/osf1elfgdb.h
1465 tm_file=i386/osf1elf.h
1467 tmake_file=i386/t-osf1elf
1468 xmake_file=i386/x-osf1elf
1469 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
1472 i[34567]86-*-sysv*) # Intel 80386's running system V
1474 xm_defines="USG SVR3"
1475 xmake_file=i386/x-sysv3
1476 if test x$gas = xyes
1478 if test x$stabs = xyes
1480 tm_file=i386/svr3dbx.h
1481 tmake_file=i386/t-svr3dbx
1482 extra_parts="svr3.ifile svr3z.rfile"
1484 tm_file=i386/svr3gas.h
1485 extra_parts="crtbegin.o crtend.o"
1486 tmake_file=i386/t-crtstuff
1489 tm_file=i386/sysv3.h
1490 extra_parts="crtbegin.o crtend.o"
1491 tmake_file=i386/t-crtstuff
1494 i386-*-vsta) # Intel 80386's running VSTa kernel
1495 xm_file="${xm_file} i386/xm-vsta.h"
1497 tmake_file=i386/t-vsta
1498 xmake_file=i386/x-vsta
1503 xm_file="${xm_file} i386/xm-cygwin.h"
1504 tmake_file=i386/t-cygwin
1505 tm_file=i386/win32.h
1506 xmake_file=i386/x-cygwin
1508 fixincludes=Makefile.in
1509 if test x$enable_threads = xyes; then
1515 i[34567]86-*-pe | i[34567]86-*-cygwin*)
1517 xm_file="${xm_file} i386/xm-cygwin.h"
1518 tmake_file=i386/t-cygwin
1519 tm_file=i386/cygwin.h
1520 xmake_file=i386/x-cygwin
1522 fixincludes=Makefile.in
1523 if test x$enable_threads = xyes; then
1529 i[34567]86-*-mingw32*)
1531 tm_file=i386/mingw32.h
1532 xm_file="${xm_file} i386/xm-mingw32.h"
1533 tmake_file="i386/t-cygwin i386/t-mingw32"
1535 xmake_file=i386/x-cygwin
1536 fixincludes=Makefile.in
1537 if test x$enable_threads = xyes; then
1544 *minwg32crt* | *mingw32*)
1545 tm_file="${tm_file} i386/crtdll.h"
1553 xm_file="${xm_file} i386/xm-uwin.h"
1554 xm_defines="USG NO_STAB_H NO_SYS_SIGLIST"
1555 tmake_file="i386/t-cygwin i386/t-uwin"
1557 xmake_file=i386/x-cygwin
1558 fixincludes=Makefile.in
1559 if test x$enable_threads = xyes; then
1565 i[34567]86-*-winnt3*)
1567 tm_file=i386/win-nt.h
1568 out_file=i386/i386.c
1569 xm_file="xm-winnt.h ${xm_file}"
1570 xmake_file=winnt/x-winnt
1571 tmake_file=i386/t-winnt
1572 extra_host_objs="winnt.o oldnames.o"
1573 extra_gcc_objs="spawnv.o oldnames.o"
1574 fixincludes=fixinc.winnt
1575 if test x$gnu_ld != xyes
1577 extra_programs=ld.exe
1579 if test x$enable_threads = xyes; then
1584 i[34567]86-dg-dgux*)
1586 xm_file="xm-alloca.h xm-siglist.h ${xm_file}"
1587 xm_defines="USG POSIX"
1588 out_file=i386/dgux.c
1590 tmake_file=i386/t-dgux
1591 xmake_file=i386/x-dgux
1592 fixincludes=fixinc.dgux
1593 install_headers_dir=install-headers-cpio
1595 i860-alliant-*) # Alliant FX/2800
1596 tm_file="${tm_file} svr4.h i860/sysv4.h i860/fx2800.h"
1597 xm_file="${xm_file}"
1598 xmake_file=i860/x-fx2800
1599 tmake_file=i860/t-fx2800
1600 extra_parts="crtbegin.o crtend.o"
1603 tm_file="${tm_file} i860/bsd.h"
1604 if test x$gas = xyes
1606 tm_file="${tm_file} i860/bsd-gas.h"
1611 tm_file="${tm_file} i860/mach.h"
1612 tmake_file=t-libc-ok
1614 i860-*-osf*) # Intel Paragon XP/S, OSF/1AD
1615 tm_file="${tm_file} svr3.h i860/paragon.h"
1616 xm_defines="USG SVR3"
1620 tm_file="${tm_file} svr3.h i860/sysv3.h"
1621 xm_defines="USG SVR3"
1622 xmake_file=i860/x-sysv3
1623 extra_parts="crtbegin.o crtend.o"
1626 tm_file="${tm_file} svr4.h i860/sysv4.h"
1627 xm_defines="USG SVR3"
1628 xmake_file=i860/x-sysv4
1630 extra_parts="crtbegin.o crtend.o"
1632 i960-wrs-vxworks5 | i960-wrs-vxworks5.0*)
1633 tm_file="${tm_file} i960/vx960.h"
1634 tmake_file=i960/t-vxworks960
1636 thread_file='vxworks'
1638 i960-wrs-vxworks5* | i960-wrs-vxworks)
1639 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h i960/vx960-coff.h"
1640 tmake_file=i960/t-vxworks960
1642 thread_file='vxworks'
1645 tm_file="${tm_file} i960/vx960.h"
1646 tmake_file=i960/t-vxworks960
1648 thread_file='vxworks'
1651 tm_file="${tm_file} dbxcoff.h i960/i960-coff.h libgloss.h"
1652 tmake_file=i960/t-960bare
1656 tmake_file="i960/t-960bare t-rtems"
1657 tm_file="${tm_file} dbxcoff.h i960/rtems.h"
1660 i960-*-*) # Default i960 environment.
1664 extra_parts="crtinit.o crtfini.o"
1666 m68000-convergent-sysv*)
1668 xm_file="m68k/xm-3b1.h ${xm_file}"
1671 extra_headers=math-68881.h
1673 m68000-hp-bsd*) # HP 9000/200 running BSD
1674 tm_file=m68k/hp2bsd.h
1675 xmake_file=m68k/x-hp2bsd
1677 extra_headers=math-68881.h
1679 m68000-hp-hpux*) # HP 9000 series 300
1680 xm_file="xm_alloca.h ${xm_file}"
1681 xm_defines="USG NO_SYS_SIGLIST"
1682 if test x$gas = xyes
1684 xmake_file=m68k/x-hp320g
1685 tm_file=m68k/hp310g.h
1687 xmake_file=m68k/x-hp320
1688 tm_file=m68k/hp310.h
1690 install_headers_dir=install-headers-cpio
1692 extra_headers=math-68881.h
1697 extra_headers=math-68881.h
1700 tm_file=m68k/sun2o4.h
1702 extra_headers=math-68881.h
1705 xm_file="m68k/xm-3b1.h ${xm_file}"
1707 if test x$gas = xyes
1714 extra_headers=math-68881.h
1716 m68k-apple-aux*) # Apple Macintosh running A/UX
1717 xm_defines="USG AUX"
1718 tmake_file=m68k/t-aux
1719 install_headers_dir=install-headers-cpio
1720 extra_headers=math-68881.h
1721 extra_parts="crt1.o mcrt1.o maccrt1.o crt2.o crtn.o"
1723 if test "$gnu_ld" = yes
1725 tm_file="${tm_file} m68k/auxgld.h"
1727 tm_file="${tm_file} m68k/auxld.h"
1729 if test "$gas" = yes
1731 tm_file="${tm_file} m68k/auxgas.h"
1733 tm_file="${tm_file} m68k/auxas.h"
1735 tm_file="${tm_file} m68k/a-ux.h"
1739 tm_file=m68k/apollo68.h
1740 xmake_file=m68k/x-apollo68
1742 extra_headers=math-68881.h
1745 m68k-altos-sysv*) # Altos 3068
1746 if test x$gas = xyes
1748 tm_file=m68k/altos3068.h
1751 echo "The Altos is supported only with the GNU assembler" 1>&2
1754 extra_headers=math-68881.h
1756 m68k-bull-sysv*) # Bull DPX/2
1757 if test x$gas = xyes
1759 if test x$stabs = xyes
1761 tm_file=m68k/dpx2cdbx.h
1763 tm_file=m68k/dpx2g.h
1768 xm_file="xm-alloca.h ${xm_file}"
1770 xmake_file=m68k/x-dpx2
1772 extra_headers=math-68881.h
1774 m68k-atari-sysv4*) # Atari variant of V.4.
1775 tm_file=m68k/atari.h
1776 xm_file="xm-alloca.h ${xm_file}"
1777 xm_defines="USG FULL_PROTOTYPES"
1779 extra_parts="crtbegin.o crtend.o"
1780 extra_headers=math-68881.h
1783 m68k-motorola-sysv*)
1784 tm_file=m68k/mot3300.h
1785 xm_file="xm-alloca.h m68k/xm-mot3300.h ${xm_file}"
1786 xm_defines=NO_SYS_SIGLIST
1787 if test x$gas = xyes
1789 xmake_file=m68k/x-mot3300-gas
1790 if test x$gnu_ld = xyes
1792 tmake_file=m68k/t-mot3300-gald
1794 tmake_file=m68k/t-mot3300-gas
1798 xmake_file=m68k/x-mot3300
1799 if test x$gnu_ld = xyes
1801 tmake_file=m68k/t-mot3300-gld
1803 tmake_file=m68k/t-mot3300
1807 gdb_needs_out_file_path=yes
1808 extra_parts="crt0.o mcrt0.o"
1809 extra_headers=math-68881.h
1812 m68k-ncr-sysv*) # NCR Tower 32 SVR3
1813 tm_file=m68k/tower-as.h
1814 xm_defines="USG SVR3"
1815 xmake_file=m68k/x-tower
1816 extra_parts="crtbegin.o crtend.o"
1817 extra_headers=math-68881.h
1820 tm_file=m68k/plexus.h
1821 xm_file="xm-alloca.h m68k/xm-plexus.h ${xm_file}"
1824 extra_headers=math-68881.h
1828 xm_file="xm-alloca.h ${xm_file}"
1830 extra_headers=math-68881.h
1833 xm_file="xm-alloca.h m68k/xm-crds.h ${xm_file}"
1834 xm_defines="USG unos"
1835 xmake_file=m68k/x-crds
1838 extra_headers=math-68881.h
1840 m68k-cbm-sysv4*) # Commodore variant of V.4.
1842 xm_file="xm-alloca.h ${xm_file}"
1843 xm_defines="USG FULL_PROTOTYPES"
1844 xmake_file=m68k/x-amix
1846 extra_parts="crtbegin.o crtend.o"
1847 extra_headers=math-68881.h
1851 tm_file=m68k/ccur-GAS.h
1852 xmake_file=m68k/x-ccur
1853 extra_headers=math-68881.h
1857 m68k-hp-bsd4.4*) # HP 9000/3xx running 4.4bsd
1858 tm_file=m68k/hp3bsd44.h
1859 xmake_file=m68k/x-hp3bsd44
1861 extra_headers=math-68881.h
1864 m68k-hp-bsd*) # HP 9000/3xx running Berkeley Unix
1865 tm_file=m68k/hp3bsd.h
1867 extra_headers=math-68881.h
1871 if test x$with_fp = xno
1873 tm_file=m68k/isi-nfp.h
1879 extra_headers=math-68881.h
1881 m68k-hp-hpux7*) # HP 9000 series 300 running HPUX version 7.
1882 xm_file="xm_alloca.h ${xm_file}"
1883 xm_defines="USG NO_SYS_SIGLIST"
1884 if test x$gas = xyes
1886 xmake_file=m68k/x-hp320g
1887 tm_file=m68k/hp320g.h
1889 xmake_file=m68k/x-hp320
1890 tm_file=m68k/hpux7.h
1892 install_headers_dir=install-headers-cpio
1894 extra_headers=math-68881.h
1897 m68k-hp-hpux*) # HP 9000 series 300
1898 xm_file="xm_alloca.h ${xm_file}"
1899 xm_defines="USG NO_SYS_SIGLIST"
1900 if test x$gas = xyes
1902 xmake_file=m68k/x-hp320g
1903 tm_file=m68k/hp320g.h
1905 xmake_file=m68k/x-hp320
1906 tm_file=m68k/hp320.h
1908 install_headers_dir=install-headers-cpio
1910 extra_headers=math-68881.h
1914 tm_file=m68k/sun3mach.h
1916 extra_headers=math-68881.h
1920 if test x$gas = xyes
1922 tm_file=m68k/news3gas.h
1924 tm_file=m68k/news3.h
1927 extra_headers=math-68881.h
1930 m68k-sony-bsd* | m68k-sony-newsos*)
1931 if test x$gas = xyes
1933 tm_file=m68k/newsgas.h
1938 extra_headers=math-68881.h
1941 m68k-next-nextstep2*)
1942 tm_file=m68k/next21.h
1943 xm_file="m68k/xm-next.h ${xm_file}"
1944 tmake_file=m68k/t-next
1945 xmake_file=m68k/x-next
1946 extra_objs=nextstep.o
1947 extra_headers=math-68881.h
1951 m68k-next-nextstep3*)
1953 xm_file="m68k/xm-next.h ${xm_file}"
1954 tmake_file=m68k/t-next
1955 xmake_file=m68k/x-next
1956 extra_objs=nextstep.o
1957 extra_parts="crtbegin.o crtend.o"
1958 extra_headers=math-68881.h
1960 if test x$enable_threads = xyes; then
1965 if test x$with_fp = xno
1967 tm_file=m68k/sun3n3.h
1969 tm_file=m68k/sun3o3.h
1973 extra_headers=math-68881.h
1975 m68k-sun-sunos*) # For SunOS 4 (the default).
1976 if test x$with_fp = xno
1978 tm_file=m68k/sun3n.h
1984 extra_headers=math-68881.h
1987 tm_file=m68k/vxm68k.h
1988 tmake_file=m68k/t-vxworks68
1989 extra_headers=math-68881.h
1990 thread_file='vxworks'
1994 tmake_file=m68k/t-m68kbare
1995 tm_file="m68k/m68k-aout.h libgloss.h"
1996 extra_headers=math-68881.h
2000 tmake_file=m68k/t-m68kbare
2001 tm_file="m68k/m68k-coff.h dbx.h libgloss.h"
2002 extra_headers=math-68881.h
2005 m68020-*-elf* | m68k-*-elf*)
2006 tm_file="m68k/m68020-elf.h libgloss.h"
2007 xm_file=m68k/xm-m68kv.h
2008 tmake_file=m68k/t-m68kelf
2009 header_files=math-68881.h
2012 if test x$gas = xyes
2016 tm_file=m68k/lynx-ng.h
2018 xm_file=m68k/xm-lynx.h
2020 tmake_file=m68k/t-lynx
2021 extra_headers=math-68881.h
2025 tm_file=m68k/netbsd.h
2026 # On NetBSD, the headers are already okay, except for math.h.
2027 fixincludes=fixinc.wrap
2033 # we need collect2 until our bug is fixed...
2036 m68k-*-sysv3*) # Motorola m68k's running system V.3
2037 xm_file="xm-alloca.h ${xm_file}"
2039 xmake_file=m68k/x-m68kv
2040 extra_parts="crtbegin.o crtend.o"
2041 extra_headers=math-68881.h
2044 m68k-*-sysv4*) # Motorola m68k's running system V.4
2045 tm_file=m68k/m68kv4.h
2046 xm_file="xm-alloca.h ${xm_file}"
2049 extra_parts="crtbegin.o crtend.o"
2050 extra_headers=math-68881.h
2053 m68k-*-linux-gnuaout*) # Motorola m68k's running GNU/Linux
2056 tm_file=m68k/linux-aout.h
2057 tmake_file="t-linux-aout m68k/t-linux-aout"
2058 fixincludes=Makefile.in # The headers are ok already.
2059 extra_headers=math-68881.h
2063 m68k-*-linux-gnulibc1) # Motorola m68k's running GNU/Linux
2064 # with ELF format using the
2065 # GNU/Linux C library 5
2067 tm_file=m68k/linux.h
2068 tmake_file="t-linux t-linux-gnulibc1 m68k/t-linux"
2069 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2070 fixincludes=Makefile.in # The headers are ok already.
2071 extra_headers=math-68881.h
2075 m68k-*-linux-gnu*) # Motorola m68k's running GNU/Linux
2076 # with ELF format using glibc 2
2077 # aka the GNU/Linux C library 6.
2079 tm_file=m68k/linux.h
2080 tmake_file="t-linux m68k/t-linux"
2081 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2082 fixincludes=Makefile.in # The headers are ok already.
2083 extra_headers=math-68881.h
2086 if test x$enable_threads = xyes; then
2091 tmake_file=m68k/t-m68kbare
2092 tm_file=m68k/m68k-psos.h
2093 extra_headers=math-68881.h
2097 tmake_file="m68k/t-m68kbare t-rtems"
2098 tm_file=m68k/rtems.h
2099 extra_headers=math-68881.h
2106 tm_file=m88k/dguxbcs.h
2107 tmake_file=m88k/t-dguxbcs
2111 tmake_file=m88k/t-dgux
2114 extra_parts="crtbegin.o bcscrtbegin.o crtend.o m88kdgux.ld"
2115 xmake_file=m88k/x-dgux
2116 if test x$gas = xyes
2118 tmake_file=m88k/t-dgux-gas
2120 fixincludes=fixinc.dgux
2122 m88k-dolphin-sysv3*)
2123 tm_file=m88k/dolph.h
2124 extra_parts="crtbegin.o crtend.o"
2125 xm_file="m88k/xm-sysv3.h ${xm_file}"
2126 xmake_file=m88k/x-dolph
2127 if test x$gas = xyes
2129 tmake_file=m88k/t-m88k-gas
2132 m88k-tektronix-sysv3)
2133 tm_file=m88k/tekXD88.h
2134 extra_parts="crtbegin.o crtend.o"
2135 xm_file="m88k/xm-sysv3.h ${xm_file}"
2136 xmake_file=m88k/x-tekXD88
2137 if test x$gas = xyes
2139 tmake_file=m88k/t-m88k-gas
2143 tm_file=m88k/m88k-aout.h
2146 tm_file=m88k/m88k-coff.h
2147 tmake_file=m88k/t-bug
2151 extra_parts="crtbegin.o crtend.o"
2152 if test x$gas = xyes
2154 tmake_file=m88k/t-luna-gas
2156 tmake_file=m88k/t-luna
2160 tmake_file="${tmake_file} m88k/t-luna-gas"
2163 tm_file=m88k/sysv3.h
2164 extra_parts="crtbegin.o crtend.o"
2165 xm_file="m88k/xm-sysv3.h ${xm_file}"
2166 xmake_file=m88k/x-sysv3
2167 if test x$gas = xyes
2169 tmake_file=m88k/t-m88k-gas
2173 tm_file=m88k/sysv4.h
2174 extra_parts="crtbegin.o crtend.o"
2175 xmake_file=m88k/x-sysv4
2176 tmake_file=m88k/t-sysv4
2178 mips-sgi-irix6*) # SGI System V.4., IRIX 6
2179 tm_file=mips/iris6.h
2180 xm_file=mips/xm-iris6.h
2181 fixincludes=fixinc.irix
2182 xmake_file=mips/x-iris6
2183 tmake_file=mips/t-iris6
2184 # if test x$enable_threads = xyes; then
2185 # thread_file='irix'
2189 tm_file="mips/elf.h libgloss.h"
2190 tmake_file=mips/t-ecoff
2193 extra_parts="crtbegin.o crtend.o"
2194 thread_file='vxworks'
2196 mips-sgi-irix5cross64) # Irix5 host, Irix 6 target, cross64
2197 tm_file="mips/iris6.h mips/cross64.h"
2199 xm_file="mips/xm-iris5.h"
2200 fixincludes=Makefile.in
2201 xmake_file=mips/x-iris
2202 tmake_file=mips/t-cross64
2203 # See comment in mips/iris[56].h files.
2205 # if test x$enable_threads = xyes; then
2206 # thread_file='irix'
2210 if test x$gas = xyes
2212 if test x$stabs = xyes
2214 tm_file=mips/iris5gdb.h
2216 tm_file="mips/sni-svr4.h mips/sni-gas.h"
2219 tm_file=mips/sni-svr4.h
2222 xmake_file=mips/x-sni-svr4
2223 tmake_file=mips/t-mips-gas
2224 if test x$gnu_ld != xyes
2229 mips-sgi-irix5*) # SGI System V.4., IRIX 5
2230 if test x$gas = xyes
2232 tm_file="mips/iris5.h mips/iris5gas.h"
2233 if test x$stabs = xyes
2235 tm_file="${tm_file} dbx.h"
2238 tm_file=mips/iris5.h
2241 xm_file="mips/xm-iris5.h"
2242 fixincludes=fixinc.irix
2243 xmake_file=mips/x-iris
2244 # mips-tfile doesn't work yet
2245 tmake_file=mips/t-mips-gas
2246 # See comment in mips/iris5.h file.
2248 # if test x$enable_threads = xyes; then
2249 # thread_file='irix'
2252 mips-sgi-irix4loser*) # Mostly like a MIPS.
2253 tm_file="mips/iris4loser.h mips/iris3.h ${tm_file} mips/iris4.h"
2254 if test x$stabs = xyes; then
2255 tm_file="${tm_file} dbx.h"
2258 xmake_file=mips/x-iris
2259 if test x$gas = xyes
2261 tmake_file=mips/t-mips-gas
2263 extra_passes="mips-tfile mips-tdump"
2265 if test x$gnu_ld != xyes
2269 # if test x$enable_threads = xyes; then
2270 # thread_file='irix'
2273 mips-sgi-irix4*) # Mostly like a MIPS.
2274 tm_file="mips/iris3.h ${tm_file} mips/iris4.h"
2275 if test x$stabs = xyes; then
2276 tm_file="${tm_file} dbx.h"
2279 xmake_file=mips/x-iris
2280 if test x$gas = xyes
2282 tmake_file=mips/t-mips-gas
2284 extra_passes="mips-tfile mips-tdump"
2286 if test x$gnu_ld != xyes
2290 # if test x$enable_threads = xyes; then
2291 # thread_file='irix'
2294 mips-sgi-*) # Mostly like a MIPS.
2295 tm_file="mips/iris3.h ${tm_file}"
2296 if test x$stabs = xyes; then
2297 tm_file="${tm_file} dbx.h"
2300 xmake_file=mips/x-iris3
2301 if test x$gas = xyes
2303 tmake_file=mips/t-mips-gas
2305 extra_passes="mips-tfile mips-tdump"
2307 if test x$gnu_ld != xyes
2312 mips-dec-osfrose*) # Decstation running OSF/1 reference port with OSF/rose.
2313 tm_file="mips/osfrose.h ${tm_file}"
2314 xmake_file=mips/x-osfrose
2315 tmake_file=mips/t-osfrose
2316 extra_objs=halfpic.o
2319 mips-dec-osf*) # Decstation running OSF/1 as shipped by DIGITAL
2320 tm_file=mips/dec-osf1.h
2321 if test x$stabs = xyes; then
2322 tm_file="${tm_file} dbx.h"
2324 xmake_file=mips/x-dec-osf1
2325 if test x$gas = xyes
2327 tmake_file=mips/t-mips-gas
2329 tmake_file=mips/t-ultrix
2330 extra_passes="mips-tfile mips-tdump"
2332 if test x$gnu_ld != xyes
2337 mips-dec-bsd*) # Decstation running 4.4 BSD
2338 tm_file=mips/dec-bsd.h
2340 if test x$gas = xyes
2342 tmake_file=mips/t-mips-gas
2344 tmake_file=mips/t-ultrix
2345 extra_passes="mips-tfile mips-tdump"
2347 if test x$gnu_ld != xyes
2352 mipsel-*-netbsd* | mips-dec-netbsd*) # Decstation running NetBSD
2353 tm_file=mips/netbsd.h
2354 # On NetBSD, the headers are already okay, except for math.h.
2355 fixincludes=fixinc.wrap
2358 mips*-*-linux*) # Linux MIPS, either endian.
2360 xm_file="xm-siglist.h ${xm_file}"
2362 mipsel-*) tm_file="mips/elfl.h mips/linux.h" ;;
2363 *) tm_file="mips/elf.h mips/linux.h" ;;
2365 extra_parts="crtbegin.o crtend.o"
2368 fixincludes=Makefile.in
2370 mips*el-*-openbsd*) # mips little endian
2371 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2372 tm_file=mips/openbsd.h
2375 mips*-*-openbsd*) # mips big endian
2376 target_cpu_default="MASK_GAS|MASK_ABICALLS"
2377 tm_file=mips/openbsd-be.h
2380 mips-sony-bsd* | mips-sony-newsos*) # Sony NEWS 3600 or risc/news.
2381 tm_file="mips/news4.h ${tm_file}"
2382 if test x$stabs = xyes; then
2383 tm_file="${tm_file} dbx.h"
2385 if test x$gas = xyes
2387 tmake_file=mips/t-mips-gas
2389 extra_passes="mips-tfile mips-tdump"
2391 if test x$gnu_ld != xyes
2395 xmake_file=mips/x-sony
2397 mips-sony-sysv*) # Sony NEWS 3800 with NEWSOS5.0.
2398 # That is based on svr4.
2399 # t-svr4 is not right because this system doesn't use ELF.
2400 tm_file="mips/news5.h ${tm_file}"
2401 if test x$stabs = xyes; then
2402 tm_file="${tm_file} dbx.h"
2404 xm_file="xm-siglist.h ${xm_file}"
2406 if test x$gas = xyes
2408 tmake_file=mips/t-mips-gas
2410 extra_passes="mips-tfile mips-tdump"
2412 if test x$gnu_ld != xyes
2417 mips-tandem-sysv4*) # Tandem S2 running NonStop UX
2418 tm_file="mips/svr4-5.h mips/svr4-t.h"
2419 if test x$stabs = xyes; then
2420 tm_file="${tm_file} dbx.h"
2422 xm_file="xm-siglist.h ${xm_file}"
2424 xmake_file=mips/x-sysv
2425 if test x$gas = xyes
2427 tmake_file=mips/t-mips-gas
2428 extra_parts="crtbegin.o crtend.o"
2430 tmake_file=mips/t-mips
2431 extra_passes="mips-tfile mips-tdump"
2433 if test x$gnu_ld != xyes
2438 mips-*-ultrix* | mips-dec-mach3) # Decstation.
2439 tm_file="mips/ultrix.h ${tm_file}"
2440 if test x$stabs = xyes; then
2441 tm_file="${tm_file} dbx.h"
2443 xmake_file=mips/x-ultrix
2444 if test x$gas = xyes
2446 tmake_file=mips/t-mips-gas
2448 tmake_file=mips/t-ultrix
2449 extra_passes="mips-tfile mips-tdump"
2451 if test x$gnu_ld != xyes
2457 mips-*-riscos[56789]bsd*)
2459 tm_file=mips/bsd-5.h # MIPS BSD 4.3, RISC-OS 5.0
2460 if test x$stabs = xyes; then
2461 tm_file="${tm_file} dbx.h"
2463 if test x$gas = xyes
2465 tmake_file=mips/t-bsd-gas
2467 tmake_file=mips/t-bsd
2468 extra_passes="mips-tfile mips-tdump"
2470 if test x$gnu_ld != xyes
2476 mips-*-bsd* | mips-*-riscosbsd* | mips-*-riscos[1234]bsd*)
2478 tm_file="mips/bsd-4.h ${tm_file}" # MIPS BSD 4.3, RISC-OS 4.0
2479 if test x$stabs = xyes; then
2480 tm_file="${tm_file} dbx.h"
2482 if test x$gas = xyes
2484 tmake_file=mips/t-bsd-gas
2486 tmake_file=mips/t-bsd
2487 extra_passes="mips-tfile mips-tdump"
2489 if test x$gnu_ld != xyes
2495 mips-*-riscos[56789]sysv4*)
2497 tm_file=mips/svr4-5.h # MIPS System V.4., RISC-OS 5.0
2498 if test x$stabs = xyes; then
2499 tm_file="${tm_file} dbx.h"
2501 xm_file="xm-siglist.h ${xm_file}"
2502 xmake_file=mips/x-sysv
2503 if test x$gas = xyes
2505 tmake_file=mips/t-svr4-gas
2507 tmake_file=mips/t-svr4
2508 extra_passes="mips-tfile mips-tdump"
2510 if test x$gnu_ld != xyes
2516 mips-*-sysv4* | mips-*-riscos[1234]sysv4* | mips-*-riscossysv4*)
2518 tm_file="mips/svr4-4.h ${tm_file}"
2519 if test x$stabs = xyes; then
2520 tm_file="${tm_file} dbx.h"
2523 xmake_file=mips/x-sysv
2524 if test x$gas = xyes
2526 tmake_file=mips/t-svr4-gas
2528 tmake_file=mips/t-svr4
2529 extra_passes="mips-tfile mips-tdump"
2531 if test x$gnu_ld != xyes
2537 mips-*-riscos[56789]sysv*)
2539 tm_file=mips/svr3-5.h # MIPS System V.3, RISC-OS 5.0
2540 if test x$stabs = xyes; then
2541 tm_file="${tm_file} dbx.h"
2544 xmake_file=mips/x-sysv
2545 if test x$gas = xyes
2547 tmake_file=mips/t-svr3-gas
2549 tmake_file=mips/t-svr3
2550 extra_passes="mips-tfile mips-tdump"
2552 if test x$gnu_ld != xyes
2557 mips-*-sysv* | mips-*-riscos*sysv*)
2558 tm_file="mips/svr3-4.h ${tm_file}"
2559 if test x$stabs = xyes; then
2560 tm_file="${tm_file} dbx.h"
2563 xmake_file=mips/x-sysv
2564 if test x$gas = xyes
2566 tmake_file=mips/t-svr3-gas
2568 tmake_file=mips/t-svr3
2569 extra_passes="mips-tfile mips-tdump"
2571 if test x$gnu_ld != xyes
2577 mips-*-riscos[56789]*) # Default MIPS RISC-OS 5.0.
2579 tm_file=mips/mips-5.h
2580 if test x$stabs = xyes; then
2581 tm_file="${tm_file} dbx.h"
2583 if test x$gas = xyes
2585 tmake_file=mips/t-mips-gas
2587 extra_passes="mips-tfile mips-tdump"
2589 if test x$gnu_ld != xyes
2597 tm_file=mips/ecoffl.h
2598 if test x$stabs = xyes; then
2599 tm_file="${tm_file} dbx.h"
2601 tmake_file=mips/t-ecoff
2604 tm_file="gofast.h mips/ecoff.h"
2605 if test x$stabs = xyes; then
2606 tm_file="${tm_file} dbx.h"
2608 tmake_file=mips/t-ecoff
2611 tm_file="mips/elfl.h libgloss.h"
2612 tmake_file=mips/t-ecoff
2615 tm_file="mips/elf.h libgloss.h"
2616 tmake_file=mips/t-ecoff
2619 tm_file="mips/elfl64.h libgloss.h"
2620 tmake_file=mips/t-ecoff
2622 mips64orionel-*-elf*)
2623 tm_file="mips/elforion.h mips/elfl64.h libgloss.h"
2624 tmake_file=mips/t-ecoff
2627 tm_file="mips/elf64.h libgloss.h"
2628 tmake_file=mips/t-ecoff
2631 tm_file="mips/elforion.h mips/elf64.h libgloss.h"
2632 tmake_file=mips/t-ecoff
2634 mips64orion-*-rtems*)
2635 tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h"
2636 tmake_file="mips/t-ecoff t-rtems"
2639 tm_file="mips/r3900.h mips/elfl.h mips/abi64.h libgloss.h"
2640 tmake_file=mips/t-r3900
2643 tm_file="mips/r3900.h mips/elf.h mips/abi64.h libgloss.h"
2644 tmake_file=mips/t-r3900
2645 # FIXME mips-elf should be fixed to use crtstuff.
2648 mips-*-*) # Default MIPS RISC-OS 4.0.
2649 if test x$stabs = xyes; then
2650 tm_file="${tm_file} dbx.h"
2652 if test x$gas = xyes
2654 tmake_file=mips/t-mips-gas
2656 extra_passes="mips-tfile mips-tdump"
2658 if test x$gnu_ld != xyes
2665 tm_file="mn10200/mn10200.h"
2666 if test x$stabs = xyes
2668 tm_file="${tm_file} dbx.h"
2674 tm_file="mn10300/mn10300.h"
2675 if test x$stabs = xyes
2677 tm_file="${tm_file} dbx.h"
2682 tm_file=ns32k/encore.h
2686 tm_file=ns32k/sequent.h
2690 tm_file=ns32k/tek6100.h
2694 tm_file=ns32k/tek6200.h
2697 # This has not been updated to GCC 2.
2700 # xmake_file=ns32k/x-genix
2701 # tm_file=ns32k/genix.h
2705 tm_file=ns32k/merlin.h
2709 tm_file=ns32k/pc532-mach.h
2713 tm_file=ns32k/pc532-min.h
2714 xm_file="ns32k/xm-pc532-min.h ${xm-file}"
2719 tm_file=ns32k/netbsd.h
2720 xm_file="ns32k/xm-netbsd.h ${xm_file}"
2721 # On NetBSD, the headers are already okay, except for math.h.
2722 fixincludes=fixinc.wrap
2726 tm_file="${tm_file} pdp11/2bsd.h"
2735 xmake_file=pyr/x-pyr
2742 xmake_file=romp/x-mach
2749 tmake_file="${tmake_file} rs6000/t-rs6000 rs6000/t-openbsd"
2754 tm_file=rs6000/beos.h
2755 xm_file=rs6000/xm-beos.h
2756 tmake_file=rs6000/t-beos
2757 xmake_file=rs6000/x-beos
2759 powerpc-*-sysv* | powerpc-*-elf*)
2760 tm_file=rs6000/sysv4.h
2761 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2762 xm_defines="USG POSIX"
2763 extra_headers=ppc-asm.h
2764 if test x$gas = xyes
2766 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2768 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2770 xmake_file=rs6000/x-sysv4
2773 tm_file=rs6000/eabiaix.h
2774 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2775 fixincludes=Makefile.in
2776 extra_headers=ppc-asm.h
2779 tm_file=rs6000/eabisim.h
2780 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2781 fixincludes=Makefile.in
2782 extra_headers=ppc-asm.h
2785 tm_file=rs6000/eabi.h
2786 if test x$gas = xyes
2788 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2790 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2792 fixincludes=Makefile.in
2793 extra_headers=ppc-asm.h
2796 tm_file=rs6000/rtems.h
2797 if test x$gas = xyes
2799 tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm"
2801 tmake_file="rs6000/t-ppc t-rtems rs6000/t-ppccomm"
2803 fixincludes=Makefile.in
2804 extra_headers=ppc-asm.h
2806 powerpc-*-linux-gnulibc1)
2807 tm_file=rs6000/linux.h
2808 xm_file=rs6000/xm-sysv4.h
2809 out_file=rs6000/rs6000.c
2810 if test x$gas = xyes
2812 tmake_file="rs6000/t-ppcos t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2814 tmake_file="rs6000/t-ppc t-linux t-linux-gnulibc1 rs6000/t-ppccomm"
2817 fixincludes=Makefile.in
2818 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2819 extra_headers=ppc-asm.h
2820 if test x$enable_threads = xyes; then
2824 powerpc-*-linux-gnu*)
2825 tm_file=rs6000/linux.h
2826 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2827 xm_defines="USG ${xm_defines}"
2828 out_file=rs6000/rs6000.c
2829 if test x$gas = xyes
2831 tmake_file="rs6000/t-ppcos t-linux rs6000/t-ppccomm"
2833 tmake_file="rs6000/t-ppc t-linux rs6000/t-ppccomm"
2836 fixincludes=Makefile.in
2837 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
2838 extra_headers=ppc-asm.h
2839 if test x$enable_threads = xyes; then
2843 powerpc-wrs-vxworks*)
2845 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2846 xm_defines="USG POSIX"
2847 tm_file=rs6000/vxppc.h
2848 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2849 extra_headers=ppc-asm.h
2850 thread_file='vxworks'
2852 powerpcle-*-sysv* | powerpcle-*-elf*)
2853 tm_file=rs6000/sysv4le.h
2854 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2855 xm_defines="USG POSIX"
2856 if test x$gas = xyes
2858 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2860 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2862 xmake_file=rs6000/x-sysv4
2863 extra_headers=ppc-asm.h
2865 powerpcle-*-eabisim*)
2866 tm_file=rs6000/eabilesim.h
2867 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2868 fixincludes=Makefile.in
2869 extra_headers=ppc-asm.h
2872 tm_file=rs6000/eabile.h
2873 if test x$gas = xyes
2875 tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
2877 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2879 fixincludes=Makefile.in
2880 extra_headers=ppc-asm.h
2882 powerpcle-*-winnt* )
2883 tm_file=rs6000/win-nt.h
2884 tmake_file=rs6000/t-winnt
2886 fixincludes=Makefile.in
2887 if test x$enable_threads = xyes; then
2890 extra_headers=ppc-asm.h
2892 powerpcle-*-pe | powerpcle-*-cygwin*)
2893 tm_file=rs6000/cygwin.h
2894 xm_file="rs6000/xm-cygwin.h ${xm_file}"
2895 tmake_file=rs6000/t-winnt
2896 xmake_file=rs6000/x-cygwin
2898 fixincludes=Makefile.in
2899 if test x$enable_threads = xyes; then
2903 extra_headers=ppc-asm.h
2905 powerpcle-*-solaris2*)
2906 tm_file=rs6000/sol2.h
2907 xm_file="xm-siglist.h rs6000/xm-sysv4.h"
2908 xm_defines="USG POSIX"
2909 if test x$gas = xyes
2911 tmake_file="rs6000/t-ppcos rs6000/t-ppccomm"
2913 tmake_file="rs6000/t-ppc rs6000/t-ppccomm"
2915 xmake_file=rs6000/x-sysv4
2920 fixincludes=fixinc.svr4;;
2922 fixincludes=fixinc.wrap;;
2924 extra_headers=ppc-asm.h
2927 rs6000-ibm-aix3.[01]*)
2929 tm_file=rs6000/aix31.h
2930 xmake_file=rs6000/x-aix31
2934 rs6000-ibm-aix3.2.[456789]* | powerpc-ibm-aix3.2.[456789]*)
2936 tm_file=rs6000/aix3newas.h
2937 if test x$host != x$target
2939 tmake_file=rs6000/t-xnewas
2941 tmake_file=rs6000/t-newas
2946 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
2948 if test "$gnu_ld" = yes
2950 tm_file=rs6000/aix41-gld.h
2952 tm_file=rs6000/aix41.h
2954 if test x$host != x$target
2956 tmake_file=rs6000/t-xnewas
2958 tmake_file=rs6000/t-newas
2960 xmake_file=rs6000/x-aix41
2964 rs6000-ibm-aix4.[3456789].* | powerpc-ibm-aix4.[3456789].*)
2966 tm_file=rs6000/aix43.h
2967 if test x$host != x$target
2969 tmake_file=rs6000/t-xaix43
2971 tmake_file=rs6000/t-aix43
2973 xmake_file=rs6000/x-aix43
2977 rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
2979 tm_file=rs6000/aix43.h
2980 if test x$host != x$target
2982 tmake_file=rs6000/t-xaix43
2984 tmake_file=rs6000/t-aix43
2986 xmake_file=rs6000/x-aix43
2996 tm_file=rs6000/mach.h
2997 xm_file="${xm_file} rs6000/xm-mach.h"
2998 xmake_file=rs6000/x-mach
3002 tm_file=rs6000/lynx.h
3003 xm_file=rs6000/xm-lynx.h
3004 tmake_file=rs6000/t-rs6000
3005 xmake_file=rs6000/x-lynx
3013 tmake_file="sh/t-sh t-rtems"
3014 tm_file=sh/rtemself.h
3018 tmake_file="sh/t-sh t-rtems"
3027 xm_file="xm-alloca.h ${xm_file}"
3030 sparc-wrs-vxworks* | sparclite-wrs-vxworks*)
3031 tm_file=sparc/vxsparc.h
3032 tmake_file=sparc/t-vxsparc
3034 thread_file='vxworks'
3037 tmake_file=sparc/t-sparcbare
3038 tm_file="sparc/aout.h libgloss.h"
3041 tm_file=sparc/netbsd.h
3042 # On NetBSD, the headers are already okay, except for math.h.
3043 fixincludes=fixinc.wrap
3047 # we need collect2 until our bug is fixed...
3055 tmake_file=sparc/t-elf
3056 extra_parts="crti.o crtn.o crtbegin.o crtend.o"
3060 sparc-*-linux-gnuaout*) # Sparc's running GNU/Linux, a.out
3061 xm_file="${xm_file} sparc/xm-linux.h"
3062 tm_file=sparc/linux-aout.h
3064 fixincludes=Makefile.in #On Linux, the headers are ok already.
3067 sparc-*-linux-gnulibc1*) # Sparc's running GNU/Linux, libc5
3068 xm_file="${xm_file} sparc/xm-linux.h"
3070 tm_file=sparc/linux.h
3071 tmake_file="t-linux t-linux-gnulibc1"
3072 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3073 fixincludes=Makefile.in #On Linux, the headers are ok already.
3076 sparc-*-linux-gnu*) # Sparc's running GNU/Linux, libc6
3077 xm_file="${xm_file} sparc/xm-linux.h"
3079 tm_file=sparc/linux.h
3080 tmake_file="t-linux"
3081 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3082 fixincludes=Makefile.in #On Linux, the headers are ok already.
3084 if test x$enable_threads = xyes; then
3089 if test x$gas = xyes
3091 tm_file=sparc/lynx.h
3093 tm_file=sparc/lynx-ng.h
3095 xm_file=sparc/xm-lynx.h
3096 tmake_file=sparc/t-sunos41
3100 tmake_file="sparc/t-sparcbare t-rtems"
3101 tm_file=sparc/rtems.h
3103 sparcv9-*-solaris2*)
3104 tm_file=sparc/sol2-sld-64.h
3105 xm_file="sparc/xm-sysv4-64.h sparc/xm-sol2.h"
3106 xm_defines="USG POSIX"
3107 tmake_file="sparc/t-sol2 sparc/t-sol2-64"
3108 xmake_file=sparc/x-sysv4
3109 extra_parts="crt1.o crti.o crtn.o gcrt1.o crtbegin.o crtend.o"
3110 fixincludes=fixinc.wrap
3112 if test x${enable_threads} = x ; then
3113 enable_threads=$have_pthread_h
3114 if test x${enable_threads} = x ; then
3115 enable_threads=$have_thread_h
3118 if test x${enable_threads} = xyes ; then
3119 if test x${have_pthread_h} = xyes ; then
3122 thread_file='solaris'
3126 sparc-hal-solaris2*)
3127 xm_file=sparc/xm-sol2.h
3128 tm_file="sparc/sol2.h sparc/hal.h"
3129 tmake_file="sparc/t-halos sparc/t-sol2"
3130 xmake_file=sparc/x-sysv4
3131 extra_parts="crt1.o crti.o crtn.o gmon.o crtbegin.o crtend.o"
3132 fixincludes=fixinc.svr4
3136 if test x$gnu_ld = xyes
3138 tm_file=sparc/sol2.h
3140 tm_file=sparc/sol2-sld.h
3142 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3143 xm_defines="USG POSIX"
3144 tmake_file=sparc/t-sol2
3145 xmake_file=sparc/x-sysv4
3146 extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
3151 fixincludes=fixinc.svr4
3155 fixincludes=fixinc.wrap
3159 if test x${enable_threads} = x; then
3160 enable_threads=$have_pthread_h
3161 if test x${enable_threads} = x; then
3162 enable_threads=$have_thread_h
3165 if test x${enable_threads} = xyes; then
3166 if test x${have_pthread_h} = xyes; then
3169 thread_file='solaris'
3174 tm_file=sparc/sunos4.h
3175 tmake_file=sparc/t-sunos40
3179 tm_file=sparc/sunos4.h
3180 tmake_file=sparc/t-sunos41
3182 if test x$gas = xyes; then
3183 tm_file="${tm_file} sparc/sun4gas.h"
3187 tm_file=sparc/sun4o3.h
3191 tm_file=sparc/sysv4.h
3192 xm_file="xm-siglist.h sparc/xm-sysv4.h"
3193 xm_defines="USG POSIX"
3195 xmake_file=sparc/x-sysv4
3196 extra_parts="crtbegin.o crtend.o"
3199 xm_file="xm-siglist.h sparc/xm-sysv4.h sparc/xm-sol2.h"
3200 xm_defines="USG POSIX"
3201 tm_file=sparc/vxsim.h
3202 tmake_file=sparc/t-vxsparc
3203 xmake_file=sparc/x-sysv4
3206 tm_file="sparc/splet.h libgloss.h"
3207 tmake_file=sparc/t-splet
3210 tm_file="sparc/litecoff.h libgloss.h"
3211 tmake_file=sparc/t-sparclite
3214 tm_file="sparc/lite.h aoutos.h libgloss.h"
3215 tmake_file=sparc/t-sparclite
3218 tmake_file=sparc/t-sp64
3219 tm_file=sparc/sp64-aout.h
3222 tmake_file=sparc/t-sp64
3223 tm_file=sparc/sp64-elf.h
3224 extra_parts="crtbegin.o crtend.o"
3226 sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux
3227 tmake_file="t-linux sparc/t-linux64"
3228 xm_file="sparc/xm-sp64.h sparc/xm-linux.h"
3229 tm_file=sparc/linux64.h
3231 fixincludes=Makefile.in # The headers are ok already.
3232 extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
3235 # This hasn't been upgraded to GCC 2.
3236 # tahoe-harris-*) # Harris tahoe, using COFF.
3237 # tm_file=tahoe/harris.h
3239 # tahoe-*-bsd*) # tahoe running BSD
3241 thumb-*-coff* | thumbel-*-coff*)
3243 out_file=arm/thumb.c
3244 xm_file=arm/xm-thumb.h
3245 md_file=arm/thumb.md
3246 tmake_file=arm/t-thumb
3247 fixincludes=Makefile.in # There is nothing to fix
3249 # This hasn't been upgraded to GCC 2.
3256 tm_file="v850/v850.h"
3257 xm_file="v850/xm-v850.h"
3258 tmake_file=v850/t-v850
3259 if test x$stabs = xyes
3261 tm_file="${tm_file} dbx.h"
3265 vax-*-bsd*) # vaxen running BSD
3269 vax-*-sysv*) # vaxen running system V
3270 tm_file="${tm_file} vax/vaxv.h"
3275 tm_file="${tm_file} netbsd.h vax/netbsd.h"
3276 # On NetBSD, the headers are already okay, except for math.h.
3277 fixincludes=fixinc.wrap
3282 tmake_file="${tm_file} vax/t-openbsd"
3284 vax-*-ultrix*) # vaxen running ultrix
3285 tm_file="${tm_file} vax/ultrix.h"
3289 vax-*-vms*) # vaxen running VMS
3290 xm_file=vax/xm-vms.h
3294 vax-*-*) # vax default entry
3298 xm_file="${xm_file} xm-svr3"
3302 echo "Configuration $machine not supported" 1>&2
3309 ;; # Existing GNU/Linux systems do not use the GNU setup.
3311 # On the GNU system, the setup is just about the same on
3312 # each different CPU. The specific machines that GNU
3313 # supports are matched above and just set $cpu_type.
3314 xm_file="xm-gnu.h ${xm_file}"
3315 tm_file=${cpu_type}/gnu.h
3316 extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
3317 # GNU always uses ELF.
3319 # GNU tools are the only tools.
3322 # On GNU, the headers are already okay.
3323 fixincludes=Makefile.in
3324 xmake_file=x-linux # These details are the same as Linux.
3325 tmake_file=t-gnu # These are not.
3328 fixincludes=fixinc.svr4
3329 xmake_try_sysv=x-sysv
3330 install_headers_dir=install-headers-cpio
3333 install_headers_dir=install-headers-cpio
3337 # Distinguish i[34567]86
3338 # Also, do not run mips-tfile on MIPS if using gas.
3339 # Process --with-cpu= for PowerPC/rs6000
3340 target_cpu_default2=
3343 target_cpu_default2=1
3346 target_cpu_default2=2
3348 i686-*-* | i786-*-*)
3349 target_cpu_default2=3
3354 target_cpu_default2="MASK_CPU_EV6|MASK_BWX|MASK_CIX|MASK_MAX"
3357 target_cpu_default2="MASK_CPU_EV5|MASK_BWX|MASK_MAX"
3360 target_cpu_default2="MASK_CPU_EV5|MASK_BWX"
3363 target_cpu_default2="MASK_CPU_EV5"
3367 if test x$gas = xyes
3369 if test "$target_cpu_default2" = ""
3371 target_cpu_default2="MASK_GAS"
3373 target_cpu_default2="${target_cpu_default2}|MASK_GAS"
3378 case "x$with_cpu" in
3381 target_cpu_default2="TARGET_CPU_generic"
3384 # Distinguish cores, and major variants
3385 # arm7m doesn't exist, but D & I don't affect code
3386 xarm[23678] | xarm250 | xarm[67][01]0 \
3387 | xarm7m | xarm7dm | xarm7dmi | xarm7tdmi \
3388 | xarm7100 | xarm7500 | xarm7500fe | xarm810 \
3389 | xstrongarm | xstrongarm110 | xstrongarm1100)
3390 target_cpu_default2="TARGET_CPU_$with_cpu"
3394 echo "--with-cpu must be passed a value" 1>&2
3399 if test x$pass2done = xyes
3401 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3408 mips*-*-ecoff* | mips*-*-elf*)
3409 if test x$gas = xyes
3411 if test x$gnu_ld = xyes
3413 target_cpu_default2=20
3415 target_cpu_default2=16
3420 if test x$gas = xyes
3422 target_cpu_default2=16
3425 powerpc*-*-* | rs6000-*-*)
3426 case "x$with_cpu" in
3430 xcommon | xpower | xpower2 | xpowerpc | xrios \
3431 | xrios1 | xrios2 | xrsc | xrsc1 \
3432 | x601 | x602 | x603 | x603e | x604 | x604e | x620 \
3433 | xec603e | x740 | x750 | x401 \
3434 | x403 | x505 | x801 | x821 | x823 | x860)
3435 target_cpu_default2="\"$with_cpu\""
3439 echo "--with-cpu must be passed a value" 1>&2
3444 if test x$pass2done = xyes
3446 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3453 case ".$with_cpu" in
3455 target_cpu_default2=TARGET_CPU_"`echo $machine | sed 's/-.*$//'`"
3457 .supersparc | .hypersparc | .ultrasparc | .v7 | .v8 | .v9)
3458 target_cpu_default2="TARGET_CPU_$with_cpu"
3461 if test x$pass2done = xyes
3463 echo "Unknown cpu used with --with-cpu=$with_cpu" 1>&2
3471 if test "$target_cpu_default2" != ""
3473 if test "$target_cpu_default" != ""
3475 target_cpu_default="(${target_cpu_default}|${target_cpu_default2})"
3477 target_cpu_default=$target_cpu_default2
3481 # No need for collect2 if we have the GNU linker.
3482 # Actually, there is now; GNU ld doesn't handle the EH info or
3483 # collecting for shared libraries.
3490 # Save data on machine being used to compile GCC in build_xm_file.
3491 # Save data on host machine in vars host_xm_file and host_xmake_file.
3492 if test x$pass1done = x
3494 if test x"$xm_file" = x
3495 then build_xm_file=$cpu_type/xm-$cpu_type.h
3496 else build_xm_file=$xm_file
3498 build_xm_defines=$xm_defines
3499 build_install_headers_dir=$install_headers_dir
3500 build_exeext=$exeext
3503 if test x$pass2done = x
3505 if test x"$xm_file" = x
3506 then host_xm_file=$cpu_type/xm-$cpu_type.h
3507 else host_xm_file=$xm_file
3509 host_xm_defines=$xm_defines
3510 if test x"$xmake_file" = x
3511 then xmake_file=$cpu_type/x-$cpu_type
3513 host_xmake_file="$xmake_file"
3514 host_truncate_target=$truncate_target
3515 host_extra_gcc_objs=$extra_gcc_objs
3516 host_extra_objs=$extra_host_objs
3523 extra_objs="${host_extra_objs} ${extra_objs}"
3525 # Default the target-machine variables that were not explicitly set.
3526 if test x"$tm_file" = x
3527 then tm_file=$cpu_type/$cpu_type.h; fi
3529 if test x$extra_headers = x
3530 then extra_headers=; fi
3532 if test x"$xm_file" = x
3533 then xm_file=$cpu_type/xm-$cpu_type.h; fi
3535 if test x$md_file = x
3536 then md_file=$cpu_type/$cpu_type.md; fi
3538 if test x$out_file = x
3539 then out_file=$cpu_type/$cpu_type.c; fi
3541 if test x"$tmake_file" = x
3542 then tmake_file=$cpu_type/t-$cpu_type
3545 if test x"$dwarf2" = xyes
3546 then tm_file="tm-dwarf2.h $tm_file"
3549 if test x$float_format = x
3550 then float_format=i64
3553 if test $float_format = none
3554 then float_h_file=Makefile.in
3555 else float_h_file=float-$float_format.h
3558 if test x$enable_haifa = x
3561 alpha*-* | hppa*-* | powerpc*-* | rs6000-* | *sparc*-* | m32r*-*)
3566 # Handle cpp installation.
3567 if [[ x$enable_cpp != x ]]
3569 tmake_file="$tmake_file t-install-cpp"
3572 # Say what files are being used for the output code and MD file.
3573 echo "Using \`$srcdir/config/$out_file' to output insns."
3574 echo "Using \`$srcdir/config/$md_file' as machine description file."
3577 for f in $tm_file; do
3580 if test $count = ax; then
3581 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
3583 echo "Using the following target machine macro files:"
3584 for f in $tm_file; do
3585 echo " $srcdir/config/$f"
3590 for f in $host_xm_file; do
3593 if test $count = ax; then
3594 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
3596 echo "Using the following host machine macro files:"
3597 for f in $host_xm_file; do
3598 echo " $srcdir/config/$f"
3602 if test "$host_xm_file" != "$build_xm_file"; then
3604 for f in $build_xm_file; do
3607 if test $count = ax; then
3608 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
3610 echo "Using the following build machine macro files:"
3611 for f in $build_xm_file; do
3612 echo " $srcdir/config/$f"
3617 if test x$thread_file = x; then
3618 if test x$target_thread_file != x; then
3619 thread_file=$target_thread_file
3621 thread_file='single'
3625 # Set up the header files.
3626 # $links is the list of header files to create.
3627 # $vars is the list of shell variables with file names to include.
3628 # auto-host.h is the file containing items generated by autoconf and is
3629 # the first file included by config.h.
3631 host_xm_file="auto-host.h gansidecl.h ${host_xm_file}"
3633 # If host=build, it is correct to have hconfig include auto-host.h
3634 # as well. If host!=build, we are in error and need to do more
3635 # work to find out the build config parameters.
3636 if test x$host = x$build
3638 build_xm_file="auto-host.h gansidecl.h ${build_xm_file}"
3640 # We create a subdir, then run autoconf in the subdir.
3641 # To prevent recursion we set host and build for the new
3642 # invocation of configure to the build for this invocation
3649 /*) realsrcdir=${srcdir};;
3650 *) realsrcdir=../${srcdir};;
3652 CC=${CC_FOR_BUILD} ${realsrcdir}/configure \
3653 --target=$target --host=$build --build=$build
3655 # We just finished tests for the build machine, so rename
3656 # the file auto-build.h in the gcc directory.
3657 mv auto-host.h ../auto-build.h
3660 build_xm_file="auto-build.h gansidecl.h ${build_xm_file}"
3663 xm_file="gansidecl.h ${xm_file}"
3664 tm_file="gansidecl.h ${tm_file}"
3666 vars="host_xm_file tm_file xm_file build_xm_file"
3667 links="config.h tm.h tconfig.h hconfig.h"
3668 defines="host_xm_defines null_defines xm_defines build_xm_defines"
3671 if test -f config.status; then mv -f config.status config.bak; fi
3674 while test -n "$vars"
3676 set $vars; var=$1; shift; vars=$*
3677 set $links; link=$1; shift; links=$*
3678 set $defines; define=$1; shift; defines=$*
3682 # Define TARGET_CPU_DEFAULT if the system wants one.
3683 # This substitutes for lots of *.h files.
3684 if test "$target_cpu_default" != "" -a $link = tm.h
3686 echo "#define TARGET_CPU_DEFAULT ($target_cpu_default)" >>$link
3689 for file in `eval echo '$'$var`; do
3694 echo '#ifdef IN_GCC' >>$link
3697 echo "#include \"$file\"" >>$link
3702 echo '#endif' >>$link
3707 for def in `eval echo '$'$define`; do
3708 echo "#ifndef $def" >>$link
3709 echo "#define $def" >>$link
3710 echo "#endif" >>$link
3714 # Truncate the target if necessary
3715 if test x$host_truncate_target != x; then
3716 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
3719 # Get the version trigger filename from the toplevel
3720 if test "${with_gcc_version_trigger+set}" = set; then
3721 gcc_version_trigger=$with_gcc_version_trigger
3723 gcc_version_trigger=${srcdir}/version.c
3726 gcc_version=`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ${gcc_version_trigger}`
3729 # Internationalization
3731 VERSION="$gcc_version"
3732 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
3733 AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
3739 # NLS support is still experimental, so disable it by default for now.
3741 [ --enable-nls use Native Language Support (disabled by default)],
3745 XGETTEXT="AWK='$AWK' \$(SHELL) \$(top_srcdir)/exgettext $XGETTEXT"
3747 # Get an absolute path to the GCC top-level source directory
3753 # Conditionalize the makefile for this host machine.
3754 # Make-host contains the concatenation of all host makefile fragments
3755 # [there can be more than one]. This file is built by configure.frag.
3756 host_overrides=Make-host
3757 dep_host_xmake_file=
3758 for f in .. ${host_xmake_file}
3760 if test -f ${srcdir}/config/$f
3762 dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
3766 # Conditionalize the makefile for this target machine.
3767 # Make-target contains the concatenation of all host makefile fragments
3768 # [there can be more than one]. This file is built by configure.frag.
3769 target_overrides=Make-target
3771 for f in .. ${tmake_file}
3773 if test -f ${srcdir}/config/$f
3775 dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
3779 # If the host doesn't support symlinks, modify CC in
3780 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
3781 # Otherwise, we can use "CC=$(CC)".
3783 if $symbolic_link $srcdir/gcc.c symtest.tem 2>/dev/null
3785 cc_set_by_configure="\$(CC)"
3786 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
3789 if cp -p $srcdir/gcc.c symtest.tem 2>/dev/null
3791 symbolic_link="cp -p"
3795 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
3796 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
3800 out_object_file=`basename $out_file .c`.o
3803 for f in $tm_file; do
3804 if test $f != "gansidecl.h" ; then
3805 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
3807 tm_file_list="${tm_file_list} $f"
3812 for f in $host_xm_file; do
3813 if test $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3814 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
3816 host_xm_file_list="${host_xm_file_list} $f"
3821 for f in $build_xm_file; do
3822 if test $f != "auto-build.h" -a $f != "auto-host.h" -a $f != "gansidecl.h" ; then
3823 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
3825 build_xm_file_list="${build_xm_file_list} $f"
3829 # Define macro CROSS_COMPILE in compilation
3830 # if this is a cross-compiler.
3831 # Also use all.cross instead of all.internal
3832 # and add cross-make to Makefile.
3833 cross_overrides="/dev/null"
3834 if test x$host != x$target
3836 cross_defines="CROSS=-DCROSS_COMPILE"
3837 cross_overrides="${topdir}/cross-make"
3840 # When building gcc with a cross-compiler, we need to fix a few things.
3841 # This must come after cross-make as we want all.build to override
3843 build_overrides="/dev/null"
3844 if test x$build != x$host
3846 build_overrides="${topdir}/build-make"
3849 # Expand extra_headers to include complete path.
3850 # This substitutes for lots of t-* files.
3852 if test "x$extra_headers" = x
3855 # Prepend ${srcdir}/ginclude/ to every entry in extra_headers.
3856 for file in $extra_headers;
3858 extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/${file}"
3862 if test x$use_collect2 = xno; then
3866 # Add a definition of USE_COLLECT2 if system wants one.
3867 # Also tell toplev.c what to do.
3868 # This substitutes for lots of t-* files.
3869 if test x$use_collect2 = x
3874 will_use_collect2="collect2"
3875 maybe_use_collect2="-DUSE_COLLECT2"
3879 # Set MD_DEPS if the real md file is in md.pre-cpp.
3880 # Set MD_CPP to the cpp to pass the md file through. Md files use ';'
3881 # for line oriented comments, so we must always use a GNU cpp. If
3882 # building gcc with a cross compiler, use the cross compiler just
3883 # built. Otherwise, we can use the cpp just built.
3885 if test "x$md_cppflags" = x
3887 md_file_sub=$srcdir/config/$md_file
3892 # If we have gas in the build tree, make a link to it.
3893 if test -f ../gas/Makefile; then
3894 rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
3897 # If we have nm in the build tree, make a link to it.
3898 if test -f ../binutils/Makefile; then
3899 rm -f nm; $symbolic_link ../binutils/nm-new$host_exeext nm$host_exeext 2>/dev/null
3902 # If we have ld in the build tree, make a link to it.
3903 if test -f ../ld/Makefile; then
3904 # if test x$use_collect2 = x; then
3905 # rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
3907 rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
3911 # Figure out what assembler alignment features are present.
3912 AC_MSG_CHECKING(assembler alignment features)
3914 gcc_cv_as_alignment_features=
3915 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
3916 if test -x "$DEFAULT_ASSEMBLER"; then
3917 gcc_cv_as="$DEFAULT_ASSEMBLER"
3918 elif test -x "$AS"; then
3920 elif test -x as$host_exeext; then
3921 # Build using assembler in the current directory.
3922 gcc_cv_as=./as$host_exeext
3923 elif test -f $gcc_cv_as_gas_srcdir/configure.in -a -f ../gas/Makefile; then
3924 # Single tree build which includes gas.
3925 for f in $gcc_cv_as_gas_srcdir/configure $gcc_cv_as_gas_srcdir/configure.in $gcc_cv_as_gas_srcdir/Makefile.in
3928 gcc_cv_gas_version=`grep '^VERSION=[0-9]*\.[0-9]*' $f`
3930 if test x$gcc_cv_gas_version != x; then
3935 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
3936 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
3938 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then
3939 # Gas version 2.6 and later support for .balign and .p2align.
3940 # bytes to skip when using .p2align.
3941 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
3942 gcc_cv_as_alignment_features=".balign and .p2align"
3943 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3945 # Gas version 2.8 and later support specifying the maximum
3946 # bytes to skip when using .p2align.
3947 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
3948 gcc_cv_as_alignment_features=".p2align including maximum skip"
3949 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3952 elif test x$host = x$target; then
3954 gcc_cv_as=as$host_exeext
3956 if test x$gcc_cv_as != x; then
3957 # Check if we have .balign and .p2align
3958 echo ".balign 4" > conftest.s
3959 echo ".p2align 2" >> conftest.s
3960 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3961 gcc_cv_as_alignment_features=".balign and .p2align"
3962 AC_DEFINE(HAVE_GAS_BALIGN_AND_P2ALIGN)
3964 rm -f conftest.s conftest.o
3965 # Check if specifying the maximum bytes to skip when
3966 # using .p2align is supported.
3967 echo ".p2align 4,,7" > conftest.s
3968 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3969 gcc_cv_as_alignment_features=".p2align including maximum skip"
3970 AC_DEFINE(HAVE_GAS_MAX_SKIP_P2ALIGN)
3972 rm -f conftest.s conftest.o
3974 AC_MSG_RESULT($gcc_cv_as_alignment_features)
3976 AC_MSG_CHECKING(assembler subsection support)
3977 gcc_cv_as_subsections=
3978 if test x$gcc_cv_as != x; then
3979 # Check if we have .subsection
3980 echo ".subsection 1" > conftest.s
3981 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3982 gcc_cv_as_subsections=".subsection"
3983 if test -x nm$host_exeext; then
3984 gcc_cv_nm=./nm$host_exeext
3985 elif test x$host = x$target; then
3987 gcc_cv_nm=nm$host_exeext
3989 if test x$gcc_cv_nm != x; then
3990 cat > conftest.s <<EOF
3991 conftest_label1: .word 0
3993 conftest_label2: .word 0
3996 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
3997 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
3998 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
3999 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1; then
4002 gcc_cv_as_subsections="working .subsection -1"
4003 AC_DEFINE(HAVE_GAS_SUBSECTION_ORDERING)
4008 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2
4010 AC_MSG_RESULT($gcc_cv_as_subsections)
4012 # Figure out what language subdirectories are present.
4013 # Look if the user specified --enable-languages="..."; if not, use
4014 # the environment variable $LANGUAGES if defined. $LANGUAGES might
4016 if test x"${enable_languages+set}" != xset; then
4017 if test x"${LANGUAGES+set}" = xset; then
4018 enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
4020 enable_languages=all
4024 for lang in ${srcdir}/*/config-lang.in ..
4028 # The odd quoting in the next line works around
4029 # an apparent bug in bash 1.12 on linux.
4031 ${srcdir}/[*]/config-lang.in) ;;
4033 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
4034 if test "x$lang_alias" = x
4036 echo "$lang doesn't set \$language." 1>&2
4039 if test x"${enable_languages}" = xall; then
4042 case "${enable_languages}" in
4043 ${lang_alias} | "${lang_alias},"* | *",${lang_alias},"* | *",${lang_alias}" )
4051 if test x"${add_this_lang}" = xyes; then
4053 ${srcdir}/ada/config-lang.in)
4054 if test x$gnat = xyes ; then
4055 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4059 subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
4068 # Make gthr-default.h if we have a thread file.
4070 if test $thread_file != single; then
4071 rm -f gthr-default.h
4072 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
4073 gthread_flags=-DHAVE_GTHR_DEFAULT
4075 AC_SUBST(gthread_flags)
4077 # Make empty files to contain the specs and options for each language.
4078 # Then add #include lines to for a compiler that has specs and/or options.
4083 rm -f specs.h options.h gencheck.h
4084 touch specs.h options.h gencheck.h
4085 for subdir in . $subdirs
4087 if test -f $srcdir/$subdir/lang-specs.h; then
4088 echo "#include \"$subdir/lang-specs.h\"" >>specs.h
4089 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
4091 if test -f $srcdir/$subdir/lang-options.h; then
4092 echo "#include \"$subdir/lang-options.h\"" >>options.h
4093 lang_options_files="$lang_options_files $srcdir/$subdir/lang-options.h"
4095 if test -f $srcdir/$subdir/$subdir-tree.def; then
4096 echo "#include \"$subdir/$subdir-tree.def\"" >>gencheck.h
4097 lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
4101 # These (without "all_") are set in each config-lang.in.
4102 # `language' must be a single word so is spelled singularly.
4108 all_outputs='Makefile intl/Makefile po/Makefile.in'
4109 # List of language makefile fragments.
4114 # Add the language fragments.
4115 # Languages are added via two mechanisms. Some information must be
4116 # recorded in makefile variables, these are defined in config-lang.in.
4117 # We accumulate them and plug them into the main Makefile.
4118 # The other mechanism is a set of hooks for each of the main targets
4119 # like `clean', `install', etc.
4121 language_fragments="Make-lang"
4122 language_hooks="Make-hooks"
4125 for s in .. $subdirs
4137 . ${srcdir}/$s/config-lang.in
4138 if test "x$language" = x
4140 echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
4143 all_lang_makefiles="$all_lang_makefiles ${srcdir}/$s/Make-lang.in ${srcdir}/$s/Makefile.in"
4144 all_languages="$all_languages $language"
4145 if test "x$boot_language" = xyes
4147 all_boot_languages="$all_boot_languages $language"
4149 all_compilers="$all_compilers $compilers"
4150 all_stagestuff="$all_stagestuff $stagestuff"
4151 all_diff_excludes="$all_diff_excludes $diff_excludes"
4152 all_headers="$all_headers $headers"
4153 all_outputs="$all_outputs $outputs"
4154 if test x$outputs = x
4156 oldstyle_subdirs="$oldstyle_subdirs $s"
4158 all_lib2funcs="$all_lib2funcs $lib2funcs"
4162 # Since we can't use `::' targets, we link each language in
4163 # with a set of hooks, reached indirectly via lang.${target}.
4167 target_list="all.build all.cross start.encap rest.encap \
4169 install-normal install-common install-info install-man \
4171 mostlyclean clean distclean extraclean maintainer-clean \
4172 stage1 stage2 stage3 stage4"
4173 for t in $target_list
4176 for lang in .. $all_languages
4178 if test $lang != ".."; then
4182 echo "lang.$t: $x" >> Make-hooks
4185 # If we're not building in srcdir, create .gdbinit.
4187 if test ! -f Makefile.in; then
4188 echo "dir ." > .gdbinit
4189 echo "dir ${srcdir}" >> .gdbinit
4190 if test x$gdb_needs_out_file_path = xyes
4192 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
4194 if test "x$subdirs" != x; then
4197 echo "dir ${srcdir}/$s" >> .gdbinit
4200 echo "source ${srcdir}/.gdbinit" >> .gdbinit
4203 # Define variables host_canonical and build_canonical
4204 # because some Cygnus local changes in the Makefile depend on them.
4205 build_canonical=${build}
4206 host_canonical=${host}
4208 if test "${host}" != "${target}" ; then
4209 target_subdir=${target}/
4211 AC_SUBST(build_canonical)
4212 AC_SUBST(host_canonical)
4213 AC_SUBST(target_subdir)
4215 # If this is using newlib, then define inhibit_libc in
4216 # LIBGCC2_CFLAGS. This will cause __eprintf to be left out of
4217 # libgcc.a, but that's OK because newib should have its own version of
4220 if test x$with_newlib = xyes; then
4221 inhibit_libc=-Dinhibit_libc
4223 AC_SUBST(inhibit_libc)
4225 # Override SCHED_OBJ and SCHED_CFLAGS to enable the Haifa scheduler.
4228 if test x$enable_haifa = xyes; then
4229 echo "Using the Haifa scheduler."
4231 sched_cflags=-DHAIFA
4233 AC_SUBST(sched_prefix)
4234 AC_SUBST(sched_cflags)
4235 if test x$enable_haifa != x; then
4236 # Explicitly remove files that need to be recompiled for the Haifa scheduler.
4237 for x in genattrtab.o toplev.o *sched.o; do
4245 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
4246 # absolute path for gcc_tooldir based on inserting the number of up-directory
4247 # movements required to get from $(exec_prefix) to $(prefix) into the basic
4248 # $(libsubdir)/@(unlibsubdir) based path.
4249 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
4250 # make and thus we'd get different behavior depending on where we built the
4252 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
4253 gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_alias)'
4255 changequote(<<, >>)dnl
4256 # An explanation of the sed strings:
4257 # -e 's|^\$(prefix)||' matches and eliminates 'prefix' from 'exec_prefix'
4258 # -e 's|/$||' match a trailing forward slash and eliminates it
4259 # -e 's|^[^/]|/|' forces the string to start with a forward slash (*)
4260 # -e 's|/[^/]*|../|g' replaces each occurance of /<directory> with ../
4262 # (*) Note this pattern overwrites the first character of the string
4263 # with a forward slash if one is not already present. This is not a
4264 # problem because the exact names of the sub-directories concerned is
4265 # unimportant, just the number of them matters.
4267 # The practical upshot of these patterns is like this:
4269 # prefix exec_prefix result
4270 # ------ ----------- ------
4272 # /foo/ /foo/bar ../
4273 # /foo /foo/bar/ ../
4274 # /foo/ /foo/bar/ ../
4275 # /foo /foo/bar/ugg ../../
4278 gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_alias)"
4279 changequote([, ])dnl
4281 AC_SUBST(gcc_tooldir)
4284 # Nothing to do for FLOAT_H, float_format already handled.
4288 # Process the language and host/target makefile fragments.
4289 ${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
4291 # Substitute configuration variables
4293 AC_SUBST(all_languages)
4294 AC_SUBST(all_boot_languages)
4295 AC_SUBST(all_compilers)
4296 AC_SUBST(all_lang_makefiles)
4297 AC_SUBST(all_stagestuff)
4298 AC_SUBST(all_diff_excludes)
4299 AC_SUBST(all_lib2funcs)
4300 AC_SUBST(all_headers)
4302 AC_SUBST(extra_passes)
4303 AC_SUBST(extra_programs)
4304 AC_SUBST(extra_parts)
4305 AC_SUBST(extra_c_objs)
4306 AC_SUBST(extra_cxx_objs)
4307 AC_SUBST(extra_cpp_objs)
4308 AC_SUBST(extra_c_flags)
4309 AC_SUBST(extra_objs)
4310 AC_SUBST(host_extra_gcc_objs)
4311 AC_SUBST(extra_headers_list)
4312 AC_SUBST(dep_host_xmake_file)
4313 AC_SUBST(dep_tmake_file)
4315 AC_SUBST(out_object_file)
4317 AC_SUBST(tm_file_list)
4318 AC_SUBST(build_xm_file_list)
4319 AC_SUBST(host_xm_file_list)
4320 AC_SUBST(lang_specs_files)
4321 AC_SUBST(lang_options_files)
4322 AC_SUBST(lang_tree_files)
4323 AC_SUBST(thread_file)
4324 AC_SUBST(objc_boehm_gc)
4326 AC_SUBST(gcc_version)
4327 AC_SUBST(gcc_version_trigger)
4328 AC_SUBST(local_prefix)
4329 AC_SUBST(gcc_gxx_include_dir)
4330 AC_SUBST(fixincludes)
4331 AC_SUBST(build_install_headers_dir)
4332 AC_SUBST(build_exeext)
4333 AC_SUBST(host_exeext)
4334 AC_SUBST(float_h_file)
4335 AC_SUBST(will_use_collect2)
4336 AC_SUBST(maybe_use_collect2)
4337 AC_SUBST(cc_set_by_configure)
4338 AC_SUBST(stage_prefix_set_by_configure)
4340 AC_SUBST(symbolic_link)
4341 AC_SUBST(cpp_install_dir)
4344 AC_SUBST_FILE(target_overrides)
4345 AC_SUBST_FILE(host_overrides)
4346 AC_SUBST(cross_defines)
4347 AC_SUBST_FILE(cross_overrides)
4348 AC_SUBST_FILE(build_overrides)
4349 AC_SUBST_FILE(language_fragments)
4350 AC_SUBST_FILE(language_hooks)
4352 # Echo that links are built
4353 if test x$host = x$target
4361 if test x$host != x$build
4363 str3=" on a $build system"
4366 if test "x$str2" != x || test "x$str3" != x
4371 echo "Links are now set up to build a ${str1}compiler for ${target}$str4" 1>&2
4373 if test "x$str2" != x || test "x$str3" != x
4375 echo " ${str2}${str3}." 1>&2
4378 # Truncate the target if necessary
4379 if test x$host_truncate_target != x; then
4380 target=`echo $target | sed -e 's/\(..............\).*/\1/'`
4383 # Configure the subdirectories
4384 # AC_CONFIG_SUBDIRS($subdirs)
4386 # Create the Makefile
4387 # and configure language subdirectories
4388 AC_OUTPUT($all_outputs,
4390 . $srcdir/configure.lang
4391 case x$CONFIG_HEADERS in
4392 xauto-host.h:config.in)
4395 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
4396 # bootstrapping and the installation procedure can still use
4397 # CC="stage1/xgcc -Bstage1/". If the host doesn't support symlinks,
4398 # FLAGS_TO_PASS has been modified to solve the problem there.
4399 # This is virtually a duplicate of what happens in configure.lang; we do
4400 # an extra check to make sure this only happens if ln -s can be used.
4401 if test "$symbolic_link" = "ln -s"; then
4402 for d in .. ${subdirs} ; do
4403 if test $d != ..; then
4406 for t in stage1 stage2 stage3 stage4 include
4409 $symbolic_link ../$t $t 2>/dev/null
4415 # Avoid having to add intl to our include paths.
4416 if test -f intl/libintl.h; then
4417 echo creating libintl.h
4418 echo '#include "intl/libintl.h"' >libintl.h
4425 target_alias='${target_alias}'
4427 subdirs='${subdirs}'
4428 oldstyle_subdirs='${oldstyle_subdirs}'
4429 symbolic_link='${symbolic_link}'
4430 program_transform_set='${program_transform_set}'
4431 program_transform_name='${program_transform_name}'
4432 dep_host_xmake_file='${dep_host_xmake_file}'
4433 host_xmake_file='${host_xmake_file}'
4434 dep_tmake_file='${dep_tmake_file}'
4435 tmake_file='${tmake_file}'
4436 thread_file='${thread_file}'
4437 gcc_version='${gcc_version}'
4438 gcc_version_trigger='${gcc_version_trigger}'
4439 local_prefix='${local_prefix}'
4440 build_install_headers_dir='${build_install_headers_dir}'
4441 build_exeext='${build_exeext}'
4442 host_exeext='${host_exeext}'
4443 out_file='${out_file}'
4444 gdb_needs_out_file_path='${gdb_needs_out_file_path}'
4445 SET_MAKE='${SET_MAKE}'
4446 target_list='${target_list}'
4447 target_overrides='${target_overrides}'
4448 host_overrides='${host_overrides}'
4449 cross_defines='${cross_defines}'
4450 cross_overrides='${cross_overrides}'
4451 build_overrides='${build_overrides}'
4452 cpp_install_dir='${cpp_install_dir}'